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.

+ * + *

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 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 + 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 values) { @@ -1327,12 +1614,12 @@ public Builder addAllInstances(java.lang.Iterable - * 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 @@ -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 @@ -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_; + /** + * + * + *
+     * 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. + */ + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000010) != 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. + */ + public com.google.cloud.aiplatform.v1.Content getSystemInstruction() { + if (systemInstructionBuilder_ == null) { + return systemInstruction_ == null + ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance() + : systemInstruction_; + } else { + return systemInstructionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * 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]; + * + */ + public Builder setSystemInstruction(com.google.cloud.aiplatform.v1.Content value) { + if (systemInstructionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + systemInstruction_ = value; + } else { + systemInstructionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder setSystemInstruction( + com.google.cloud.aiplatform.v1.Content.Builder builderForValue) { + if (systemInstructionBuilder_ == null) { + systemInstruction_ = builderForValue.build(); + } else { + systemInstructionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder mergeSystemInstruction(com.google.cloud.aiplatform.v1.Content value) { + if (systemInstructionBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && systemInstruction_ != null + && systemInstruction_ != com.google.cloud.aiplatform.v1.Content.getDefaultInstance()) { + getSystemInstructionBuilder().mergeFrom(value); + } else { + systemInstruction_ = value; + } + } else { + systemInstructionBuilder_.mergeFrom(value); + } + if (systemInstruction_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder clearSystemInstruction() { + bitField0_ = (bitField0_ & ~0x00000010); + systemInstruction_ = null; + if (systemInstructionBuilder_ != null) { + systemInstructionBuilder_.dispose(); + systemInstructionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.cloud.aiplatform.v1.Content.Builder getSystemInstructionBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getSystemInstructionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.cloud.aiplatform.v1.ContentOrBuilder getSystemInstructionOrBuilder() { + if (systemInstructionBuilder_ != null) { + return systemInstructionBuilder_.getMessageOrBuilder(); + } else { + 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]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder> + getSystemInstructionFieldBuilder() { + if (systemInstructionBuilder_ == null) { + systemInstructionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder>( + getSystemInstruction(), getParentForChildren(), isClean()); + systemInstruction_ = null; + } + return systemInstructionBuilder_; + } + + private java.util.List tools_ = + java.util.Collections.emptyList(); + + private void ensureToolsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + tools_ = new java.util.ArrayList(tools_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Tool, + com.google.cloud.aiplatform.v1.Tool.Builder, + com.google.cloud.aiplatform.v1.ToolOrBuilder> + toolsBuilder_; + + /** + * + * + *
+     * 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]; + * + */ + public java.util.List getToolsList() { + if (toolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tools_); + } else { + return toolsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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]; + * + */ + public int getToolsCount() { + if (toolsBuilder_ == null) { + return tools_.size(); + } else { + return toolsBuilder_.getCount(); + } + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.cloud.aiplatform.v1.Tool getTools(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessage(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]; + * + */ + public Builder setTools(int index, com.google.cloud.aiplatform.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.set(index, value); + onChanged(); + } else { + toolsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder setTools( + int index, com.google.cloud.aiplatform.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder addTools(com.google.cloud.aiplatform.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(value); + onChanged(); + } else { + toolsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder addTools(int index, com.google.cloud.aiplatform.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(index, value); + onChanged(); + } else { + toolsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder addTools(com.google.cloud.aiplatform.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder addTools( + int index, com.google.cloud.aiplatform.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder addAllTools( + java.lang.Iterable values) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_); + onChanged(); + } else { + toolsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder clearTools() { + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + toolsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder removeTools(int index) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.remove(index); + onChanged(); + } else { + toolsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.cloud.aiplatform.v1.Tool.Builder getToolsBuilder(int index) { + return getToolsFieldBuilder().getBuilder(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]; + * + */ + public com.google.cloud.aiplatform.v1.ToolOrBuilder getToolsOrBuilder(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessageOrBuilder(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]; + * + */ + public java.util.List + getToolsOrBuilderList() { + if (toolsBuilder_ != null) { + return toolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(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]; + * + */ + public com.google.cloud.aiplatform.v1.Tool.Builder addToolsBuilder() { + return getToolsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.Tool.getDefaultInstance()); + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.cloud.aiplatform.v1.Tool.Builder addToolsBuilder(int index) { + return getToolsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.Tool.getDefaultInstance()); + } + /** + * + * + *
+     * 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]; + * + */ + public java.util.List getToolsBuilderList() { + return getToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Tool, + com.google.cloud.aiplatform.v1.Tool.Builder, + com.google.cloud.aiplatform.v1.ToolOrBuilder> + getToolsFieldBuilder() { + if (toolsBuilder_ == null) { + toolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Tool, + com.google.cloud.aiplatform.v1.Tool.Builder, + com.google.cloud.aiplatform.v1.ToolOrBuilder>( + tools_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + tools_ = null; + } + return toolsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensRequestOrBuilder.java index 3b4d82103ae9..412ac633f775 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensRequestOrBuilder.java @@ -61,12 +61,12 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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. */ @@ -75,12 +75,12 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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. */ @@ -90,11 +90,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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.util.List getInstancesList(); @@ -102,11 +102,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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]; * */ com.google.protobuf.Value getInstances(int index); @@ -114,11 +114,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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]; * */ int getInstancesCount(); @@ -126,11 +126,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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.util.List getInstancesOrBuilderList(); @@ -138,11 +138,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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]; * */ com.google.protobuf.ValueOrBuilder getInstancesOrBuilder(int index); @@ -151,11 +151,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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.util.List getContentsList(); @@ -163,11 +163,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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]; * */ com.google.cloud.aiplatform.v1.Content getContents(int index); @@ -175,11 +175,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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]; * */ int getContentsCount(); @@ -187,11 +187,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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.util.List @@ -200,12 +200,145 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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]; * */ com.google.cloud.aiplatform.v1.ContentOrBuilder getContentsOrBuilder(int index); + + /** + * + * + *
+   * 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. + */ + boolean hasSystemInstruction(); + /** + * + * + *
+   * 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. + */ + com.google.cloud.aiplatform.v1.Content getSystemInstruction(); + /** + * + * + *
+   * 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]; + * + */ + com.google.cloud.aiplatform.v1.ContentOrBuilder getSystemInstructionOrBuilder(); + + /** + * + * + *
+   * 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.util.List getToolsList(); + /** + * + * + *
+   * 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]; + * + */ + com.google.cloud.aiplatform.v1.Tool getTools(int 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]; + * + */ + int getToolsCount(); + /** + * + * + *
+   * 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.util.List getToolsOrBuilderList(); + /** + * + * + *
+   * 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]; + * + */ + com.google.cloud.aiplatform.v1.ToolOrBuilder getToolsOrBuilder(int index); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateNotebookExecutionJobOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateNotebookExecutionJobOperationMetadata.java new file mode 100644 index 000000000000..18a151e67c49 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateNotebookExecutionJobOperationMetadata.java @@ -0,0 +1,950 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Metadata information for
+ * [NotebookService.CreateNotebookExecutionJob][google.cloud.aiplatform.v1.NotebookService.CreateNotebookExecutionJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata} + */ +public final class CreateNotebookExecutionJobOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata) + CreateNotebookExecutionJobOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateNotebookExecutionJobOperationMetadata.newBuilder() to construct. + private CreateNotebookExecutionJobOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateNotebookExecutionJobOperationMetadata() { + progressMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateNotebookExecutionJobOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata.class, + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + public static final int PROGRESS_MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object progressMessage_ = ""; + /** + * + * + *
+   * A human-readable message that shows the intermediate progress details of
+   * NotebookRuntime.
+   * 
+ * + * string progress_message = 2; + * + * @return The progressMessage. + */ + @java.lang.Override + public java.lang.String getProgressMessage() { + java.lang.Object ref = progressMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + progressMessage_ = s; + return s; + } + } + /** + * + * + *
+   * A human-readable message that shows the intermediate progress details of
+   * NotebookRuntime.
+   * 
+ * + * string progress_message = 2; + * + * @return The bytes for progressMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProgressMessageBytes() { + java.lang.Object ref = progressMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + progressMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(progressMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, progressMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(progressMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, progressMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata other = + (com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getProgressMessage().equals(other.getProgressMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (37 * hash) + PROGRESS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getProgressMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata information for
+   * [NotebookService.CreateNotebookExecutionJob][google.cloud.aiplatform.v1.NotebookService.CreateNotebookExecutionJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata) + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata.class, + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGenericMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + progressMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata build() { + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata result = + new com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.progressMessage_ = progressMessage_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + if (!other.getProgressMessage().isEmpty()) { + progressMessage_ = other.progressMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + progressMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + getGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + private java.lang.Object progressMessage_ = ""; + /** + * + * + *
+     * A human-readable message that shows the intermediate progress details of
+     * NotebookRuntime.
+     * 
+ * + * string progress_message = 2; + * + * @return The progressMessage. + */ + public java.lang.String getProgressMessage() { + java.lang.Object ref = progressMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + progressMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A human-readable message that shows the intermediate progress details of
+     * NotebookRuntime.
+     * 
+ * + * string progress_message = 2; + * + * @return The bytes for progressMessage. + */ + public com.google.protobuf.ByteString getProgressMessageBytes() { + java.lang.Object ref = progressMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + progressMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A human-readable message that shows the intermediate progress details of
+     * NotebookRuntime.
+     * 
+ * + * string progress_message = 2; + * + * @param value The progressMessage to set. + * @return This builder for chaining. + */ + public Builder setProgressMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + progressMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A human-readable message that shows the intermediate progress details of
+     * NotebookRuntime.
+     * 
+ * + * string progress_message = 2; + * + * @return This builder for chaining. + */ + public Builder clearProgressMessage() { + progressMessage_ = getDefaultInstance().getProgressMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A human-readable message that shows the intermediate progress details of
+     * NotebookRuntime.
+     * 
+ * + * string progress_message = 2; + * + * @param value The bytes for progressMessage to set. + * @return This builder for chaining. + */ + public Builder setProgressMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + progressMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata) + private static final com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNotebookExecutionJobOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateNotebookExecutionJobOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateNotebookExecutionJobOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..2b67e57e545b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateNotebookExecutionJobOperationMetadataOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +public interface CreateNotebookExecutionJobOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder(); + + /** + * + * + *
+   * A human-readable message that shows the intermediate progress details of
+   * NotebookRuntime.
+   * 
+ * + * string progress_message = 2; + * + * @return The progressMessage. + */ + java.lang.String getProgressMessage(); + /** + * + * + *
+   * A human-readable message that shows the intermediate progress details of
+   * NotebookRuntime.
+   * 
+ * + * string progress_message = 2; + * + * @return The bytes for progressMessage. + */ + com.google.protobuf.ByteString getProgressMessageBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateNotebookExecutionJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateNotebookExecutionJobRequest.java new file mode 100644 index 000000000000..3d2699e4bee2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateNotebookExecutionJobRequest.java @@ -0,0 +1,1152 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [NotebookService.CreateNotebookExecutionJob]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest} + */ +public final class CreateNotebookExecutionJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest) + CreateNotebookExecutionJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateNotebookExecutionJobRequest.newBuilder() to construct. + private CreateNotebookExecutionJobRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateNotebookExecutionJobRequest() { + parent_ = ""; + notebookExecutionJobId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateNotebookExecutionJobRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest.class, + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the Location to create the
+   * NotebookExecutionJob. Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Location to create the
+   * NotebookExecutionJob. Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NOTEBOOK_EXECUTION_JOB_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.NotebookExecutionJob notebookExecutionJob_; + /** + * + * + *
+   * Required. The NotebookExecutionJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the notebookExecutionJob field is set. + */ + @java.lang.Override + public boolean hasNotebookExecutionJob() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The NotebookExecutionJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The notebookExecutionJob. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob getNotebookExecutionJob() { + return notebookExecutionJob_ == null + ? com.google.cloud.aiplatform.v1.NotebookExecutionJob.getDefaultInstance() + : notebookExecutionJob_; + } + /** + * + * + *
+   * Required. The NotebookExecutionJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJobOrBuilder + getNotebookExecutionJobOrBuilder() { + return notebookExecutionJob_ == null + ? com.google.cloud.aiplatform.v1.NotebookExecutionJob.getDefaultInstance() + : notebookExecutionJob_; + } + + public static final int NOTEBOOK_EXECUTION_JOB_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object notebookExecutionJobId_ = ""; + /** + * + * + *
+   * Optional. User specified ID for the NotebookExecutionJob.
+   * 
+ * + * string notebook_execution_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The notebookExecutionJobId. + */ + @java.lang.Override + public java.lang.String getNotebookExecutionJobId() { + java.lang.Object ref = notebookExecutionJobId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + notebookExecutionJobId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. User specified ID for the NotebookExecutionJob.
+   * 
+ * + * string notebook_execution_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for notebookExecutionJobId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNotebookExecutionJobIdBytes() { + java.lang.Object ref = notebookExecutionJobId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + notebookExecutionJobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getNotebookExecutionJob()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebookExecutionJobId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, notebookExecutionJobId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNotebookExecutionJob()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebookExecutionJobId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, notebookExecutionJobId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest other = + (com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasNotebookExecutionJob() != other.hasNotebookExecutionJob()) return false; + if (hasNotebookExecutionJob()) { + if (!getNotebookExecutionJob().equals(other.getNotebookExecutionJob())) return false; + } + if (!getNotebookExecutionJobId().equals(other.getNotebookExecutionJobId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasNotebookExecutionJob()) { + hash = (37 * hash) + NOTEBOOK_EXECUTION_JOB_FIELD_NUMBER; + hash = (53 * hash) + getNotebookExecutionJob().hashCode(); + } + hash = (37 * hash) + NOTEBOOK_EXECUTION_JOB_ID_FIELD_NUMBER; + hash = (53 * hash) + getNotebookExecutionJobId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [NotebookService.CreateNotebookExecutionJob]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest) + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest.class, + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getNotebookExecutionJobFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + notebookExecutionJob_ = null; + if (notebookExecutionJobBuilder_ != null) { + notebookExecutionJobBuilder_.dispose(); + notebookExecutionJobBuilder_ = null; + } + notebookExecutionJobId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest build() { + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest buildPartial() { + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest result = + new com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.notebookExecutionJob_ = + notebookExecutionJobBuilder_ == null + ? notebookExecutionJob_ + : notebookExecutionJobBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.notebookExecutionJobId_ = notebookExecutionJobId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest other) { + if (other + == com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasNotebookExecutionJob()) { + mergeNotebookExecutionJob(other.getNotebookExecutionJob()); + } + if (!other.getNotebookExecutionJobId().isEmpty()) { + notebookExecutionJobId_ = other.notebookExecutionJobId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getNotebookExecutionJobFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + notebookExecutionJobId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Location to create the
+     * NotebookExecutionJob. Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Location to create the
+     * NotebookExecutionJob. Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Location to create the
+     * NotebookExecutionJob. Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location to create the
+     * NotebookExecutionJob. Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location to create the
+     * NotebookExecutionJob. Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.NotebookExecutionJob notebookExecutionJob_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJobOrBuilder> + notebookExecutionJobBuilder_; + /** + * + * + *
+     * Required. The NotebookExecutionJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the notebookExecutionJob field is set. + */ + public boolean hasNotebookExecutionJob() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The NotebookExecutionJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The notebookExecutionJob. + */ + public com.google.cloud.aiplatform.v1.NotebookExecutionJob getNotebookExecutionJob() { + if (notebookExecutionJobBuilder_ == null) { + return notebookExecutionJob_ == null + ? com.google.cloud.aiplatform.v1.NotebookExecutionJob.getDefaultInstance() + : notebookExecutionJob_; + } else { + return notebookExecutionJobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The NotebookExecutionJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNotebookExecutionJob( + com.google.cloud.aiplatform.v1.NotebookExecutionJob value) { + if (notebookExecutionJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + notebookExecutionJob_ = value; + } else { + notebookExecutionJobBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The NotebookExecutionJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNotebookExecutionJob( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder builderForValue) { + if (notebookExecutionJobBuilder_ == null) { + notebookExecutionJob_ = builderForValue.build(); + } else { + notebookExecutionJobBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The NotebookExecutionJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeNotebookExecutionJob( + com.google.cloud.aiplatform.v1.NotebookExecutionJob value) { + if (notebookExecutionJobBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && notebookExecutionJob_ != null + && notebookExecutionJob_ + != com.google.cloud.aiplatform.v1.NotebookExecutionJob.getDefaultInstance()) { + getNotebookExecutionJobBuilder().mergeFrom(value); + } else { + notebookExecutionJob_ = value; + } + } else { + notebookExecutionJobBuilder_.mergeFrom(value); + } + if (notebookExecutionJob_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The NotebookExecutionJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearNotebookExecutionJob() { + bitField0_ = (bitField0_ & ~0x00000002); + notebookExecutionJob_ = null; + if (notebookExecutionJobBuilder_ != null) { + notebookExecutionJobBuilder_.dispose(); + notebookExecutionJobBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The NotebookExecutionJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder + getNotebookExecutionJobBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getNotebookExecutionJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The NotebookExecutionJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.NotebookExecutionJobOrBuilder + getNotebookExecutionJobOrBuilder() { + if (notebookExecutionJobBuilder_ != null) { + return notebookExecutionJobBuilder_.getMessageOrBuilder(); + } else { + return notebookExecutionJob_ == null + ? com.google.cloud.aiplatform.v1.NotebookExecutionJob.getDefaultInstance() + : notebookExecutionJob_; + } + } + /** + * + * + *
+     * Required. The NotebookExecutionJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJobOrBuilder> + getNotebookExecutionJobFieldBuilder() { + if (notebookExecutionJobBuilder_ == null) { + notebookExecutionJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJobOrBuilder>( + getNotebookExecutionJob(), getParentForChildren(), isClean()); + notebookExecutionJob_ = null; + } + return notebookExecutionJobBuilder_; + } + + private java.lang.Object notebookExecutionJobId_ = ""; + /** + * + * + *
+     * Optional. User specified ID for the NotebookExecutionJob.
+     * 
+ * + * string notebook_execution_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The notebookExecutionJobId. + */ + public java.lang.String getNotebookExecutionJobId() { + java.lang.Object ref = notebookExecutionJobId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + notebookExecutionJobId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. User specified ID for the NotebookExecutionJob.
+     * 
+ * + * string notebook_execution_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for notebookExecutionJobId. + */ + public com.google.protobuf.ByteString getNotebookExecutionJobIdBytes() { + java.lang.Object ref = notebookExecutionJobId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + notebookExecutionJobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. User specified ID for the NotebookExecutionJob.
+     * 
+ * + * string notebook_execution_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The notebookExecutionJobId to set. + * @return This builder for chaining. + */ + public Builder setNotebookExecutionJobId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + notebookExecutionJobId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User specified ID for the NotebookExecutionJob.
+     * 
+ * + * string notebook_execution_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNotebookExecutionJobId() { + notebookExecutionJobId_ = getDefaultInstance().getNotebookExecutionJobId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User specified ID for the NotebookExecutionJob.
+     * 
+ * + * string notebook_execution_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for notebookExecutionJobId to set. + * @return This builder for chaining. + */ + public Builder setNotebookExecutionJobIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notebookExecutionJobId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest) + private static final com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest(); + } + + public static com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNotebookExecutionJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateNotebookExecutionJobRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateNotebookExecutionJobRequestOrBuilder.java new file mode 100644 index 000000000000..3c0346d81f30 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateNotebookExecutionJobRequestOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +public interface CreateNotebookExecutionJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to create the
+   * NotebookExecutionJob. Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the Location to create the
+   * NotebookExecutionJob. Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The NotebookExecutionJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the notebookExecutionJob field is set. + */ + boolean hasNotebookExecutionJob(); + /** + * + * + *
+   * Required. The NotebookExecutionJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The notebookExecutionJob. + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJob getNotebookExecutionJob(); + /** + * + * + *
+   * Required. The NotebookExecutionJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJobOrBuilder getNotebookExecutionJobOrBuilder(); + + /** + * + * + *
+   * Optional. User specified ID for the NotebookExecutionJob.
+   * 
+ * + * string notebook_execution_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The notebookExecutionJobId. + */ + java.lang.String getNotebookExecutionJobId(); + /** + * + * + *
+   * Optional. User specified ID for the NotebookExecutionJob.
+   * 
+ * + * string notebook_execution_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for notebookExecutionJobId. + */ + com.google.protobuf.ByteString getNotebookExecutionJobIdBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java index 5836e35d7775..6c47cbe408bd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java @@ -138,16 +138,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ageSpec\022\037\n\022executor_image_uri\030\001 \001(\tB\003\340A\002" + "\022\031\n\014package_uris\030\002 \003(\tB\003\340A\002\022\032\n\rpython_mo" + "dule\030\003 \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\022/\n\003env\030\005 \003" - + "(\0132\".google.cloud.aiplatform.v1.EnvVar\"}" - + "\n\nScheduling\022*\n\007timeout\030\001 \001(\0132\031.google.p" - + "rotobuf.Duration\022%\n\035restart_job_on_worke" - + "r_restart\030\003 \001(\010\022\034\n\017disable_retries\030\005 \001(\010" - + "B\003\340A\001B\314\001\n\036com.google.cloud.aiplatform.v1" - + "B\016CustomJobProtoP\001Z>cloud.google.com/go/" - + "aiplatform/apiv1/aiplatformpb;aiplatform" - + "pb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google" - + "\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AI" - + "Platform::V1b\006proto3" + + "(\0132\".google.cloud.aiplatform.v1.EnvVar\"\210" + + "\002\n\nScheduling\022*\n\007timeout\030\001 \001(\0132\031.google." + + "protobuf.Duration\022%\n\035restart_job_on_work" + + "er_restart\030\003 \001(\010\022F\n\010strategy\030\004 \001(\0162/.goo" + + "gle.cloud.aiplatform.v1.Scheduling.Strat" + + "egyB\003\340A\001\022\034\n\017disable_retries\030\005 \001(\010B\003\340A\001\"A" + + "\n\010Strategy\022\030\n\024STRATEGY_UNSPECIFIED\020\000\022\r\n\t" + + "ON_DEMAND\020\001\022\014\n\010LOW_COST\020\002B\314\001\n\036com.google" + + ".cloud.aiplatform.v1B\016CustomJobProtoP\001Z>" + + "cloud.google.com/go/aiplatform/apiv1/aip" + + "latformpb;aiplatformpb\252\002\032Google.Cloud.AI" + + "Platform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1" + + "\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -256,7 +259,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_Scheduling_descriptor, new java.lang.String[] { - "Timeout", "RestartJobOnWorkerRestart", "DisableRetries", + "Timeout", "RestartJobOnWorkerRestart", "Strategy", "DisableRetries", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java index 7d223c1069f0..54406dfc51df 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java @@ -91,10 +91,12 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
-   * Output only. The resource name of the Dataset.
+   * Output only. Identifier. The resource name of the Dataset.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -114,10 +116,12 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name of the Dataset.
+   * Output only. Identifier. The resource name of the Dataset.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -1723,10 +1727,12 @@ public Builder mergeFrom( * * *
-     * Output only. The resource name of the Dataset.
+     * Output only. Identifier. The resource name of the Dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -1745,10 +1751,12 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name of the Dataset.
+     * Output only. Identifier. The resource name of the Dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -1767,10 +1775,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name of the Dataset.
+     * Output only. Identifier. The resource name of the Dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The name to set. * @return This builder for chaining. @@ -1788,10 +1798,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name of the Dataset.
+     * Output only. Identifier. The resource name of the Dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return This builder for chaining. */ @@ -1805,10 +1817,12 @@ public Builder clearName() { * * *
-     * Output only. The resource name of the Dataset.
+     * Output only. Identifier. The resource name of the Dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java index 04976161646e..797f31c95f8e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java @@ -28,10 +28,12 @@ public interface DatasetOrBuilder * * *
-   * Output only. The resource name of the Dataset.
+   * Output only. Identifier. The resource name of the Dataset.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -40,10 +42,12 @@ public interface DatasetOrBuilder * * *
-   * Output only. The resource name of the Dataset.
+   * Output only. Identifier. The resource name of the Dataset.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java index b5b1ae6527bc..ad2eaeb482bf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java @@ -77,58 +77,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tform/v1/io.proto\032,google/cloud/aiplatfo" + "rm/v1/saved_query.proto\032\034google/protobuf" + "/struct.proto\032\037google/protobuf/timestamp" - + ".proto\"\313\005\n\007Dataset\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030" - + "\020 \001(\t\022 \n\023metadata_schema_uri\030\003 \001(\tB\003\340A\002\022" - + "-\n\010metadata\030\010 \001(\0132\026.google.protobuf.Valu" - + "eB\003\340A\002\022\034\n\017data_item_count\030\n \001(\003B\003\340A\003\0224\n\013" - + "create_time\030\004 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\022\014\n\004etag\030\006 \001(\t\022?" - + "\n\006labels\030\007 \003(\0132/.google.cloud.aiplatform" - + ".v1.Dataset.LabelsEntry\022=\n\rsaved_queries" - + "\030\t \003(\0132&.google.cloud.aiplatform.v1.Save" - + "dQuery\022C\n\017encryption_spec\030\013 \001(\0132*.google" - + ".cloud.aiplatform.v1.EncryptionSpec\022\036\n\021m" - + "etadata_artifact\030\021 \001(\tB\003\340A\003\022\034\n\017model_ref" - + "erence\030\022 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:b\352A_\n!aiplatfor" - + "m.googleapis.com/Dataset\022:projects/{proj" - + "ect}/locations/{location}/datasets/{data" - + "set}\"\244\003\n\020ImportDataConfig\022;\n\ngcs_source\030" - + "\001 \001(\0132%.google.cloud.aiplatform.v1.GcsSo" - + "urceH\000\022Z\n\020data_item_labels\030\002 \003(\0132@.googl" - + "e.cloud.aiplatform.v1.ImportDataConfig.D" - + "ataItemLabelsEntry\022]\n\021annotation_labels\030" - + "\003 \003(\0132B.google.cloud.aiplatform.v1.Impor" - + "tDataConfig.AnnotationLabelsEntry\022\036\n\021imp" - + "ort_schema_uri\030\004 \001(\tB\003\340A\002\0325\n\023DataItemLab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\0327\n\025AnnotationLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001B\010\n\006source\"\345\003\n\020ExportDa" - + "taConfig\022E\n\017gcs_destination\030\001 \001(\0132*.goog" - + "le.cloud.aiplatform.v1.GcsDestinationH\000\022" - + "I\n\016fraction_split\030\005 \001(\0132/.google.cloud.a" - + "iplatform.v1.ExportFractionSplitH\001\022E\n\014fi" - + "lter_split\030\007 \001(\0132-.google.cloud.aiplatfo" - + "rm.v1.ExportFilterSplitH\001\022\032\n\022annotations" - + "_filter\030\002 \001(\t\022\026\n\016saved_query_id\030\013 \001(\t\022\035\n" - + "\025annotation_schema_uri\030\014 \001(\t\022J\n\nexport_u" - + "se\030\004 \001(\01626.google.cloud.aiplatform.v1.Ex" - + "portDataConfig.ExportUse\"A\n\tExportUse\022\032\n" - + "\026EXPORT_USE_UNSPECIFIED\020\000\022\030\n\024CUSTOM_CODE" - + "_TRAINING\020\006B\r\n\013destinationB\007\n\005split\"d\n\023E" - + "xportFractionSplit\022\031\n\021training_fraction\030" - + "\001 \001(\001\022\033\n\023validation_fraction\030\002 \001(\001\022\025\n\rte" - + "st_fraction\030\003 \001(\001\"k\n\021ExportFilterSplit\022\034" - + "\n\017training_filter\030\001 \001(\tB\003\340A\002\022\036\n\021validati" - + "on_filter\030\002 \001(\tB\003\340A\002\022\030\n\013test_filter\030\003 \001(" - + "\tB\003\340A\002B\312\001\n\036com.google.cloud.aiplatform.v" - + "1B\014DatasetProtoP\001Z>cloud.google.com/go/a" - + "iplatform/apiv1/aiplatformpb;aiplatformp" - + "b\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\" - + "Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIP" - + "latform::V1b\006proto3" + + ".proto\"\316\005\n\007Dataset\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\010" + + "\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013descripti" + + "on\030\020 \001(\t\022 \n\023metadata_schema_uri\030\003 \001(\tB\003\340" + + "A\002\022-\n\010metadata\030\010 \001(\0132\026.google.protobuf.V" + + "alueB\003\340A\002\022\034\n\017data_item_count\030\n \001(\003B\003\340A\003\022" + + "4\n\013create_time\030\004 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\022\014\n\004etag\030\006 \001(" + + "\t\022?\n\006labels\030\007 \003(\0132/.google.cloud.aiplatf" + + "orm.v1.Dataset.LabelsEntry\022=\n\rsaved_quer" + + "ies\030\t \003(\0132&.google.cloud.aiplatform.v1.S" + + "avedQuery\022C\n\017encryption_spec\030\013 \001(\0132*.goo" + + "gle.cloud.aiplatform.v1.EncryptionSpec\022\036" + + "\n\021metadata_artifact\030\021 \001(\tB\003\340A\003\022\034\n\017model_" + + "reference\030\022 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:b\352A_\n!aiplat" + + "form.googleapis.com/Dataset\022:projects/{p" + + "roject}/locations/{location}/datasets/{d" + + "ataset}\"\244\003\n\020ImportDataConfig\022;\n\ngcs_sour" + + "ce\030\001 \001(\0132%.google.cloud.aiplatform.v1.Gc" + + "sSourceH\000\022Z\n\020data_item_labels\030\002 \003(\0132@.go" + + "ogle.cloud.aiplatform.v1.ImportDataConfi" + + "g.DataItemLabelsEntry\022]\n\021annotation_labe" + + "ls\030\003 \003(\0132B.google.cloud.aiplatform.v1.Im" + + "portDataConfig.AnnotationLabelsEntry\022\036\n\021" + + "import_schema_uri\030\004 \001(\tB\003\340A\002\0325\n\023DataItem" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\0327\n\025AnnotationLabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006source\"\345\003\n\020Expor" + + "tDataConfig\022E\n\017gcs_destination\030\001 \001(\0132*.g" + + "oogle.cloud.aiplatform.v1.GcsDestination" + + "H\000\022I\n\016fraction_split\030\005 \001(\0132/.google.clou" + + "d.aiplatform.v1.ExportFractionSplitH\001\022E\n" + + "\014filter_split\030\007 \001(\0132-.google.cloud.aipla" + + "tform.v1.ExportFilterSplitH\001\022\032\n\022annotati" + + "ons_filter\030\002 \001(\t\022\026\n\016saved_query_id\030\013 \001(\t" + + "\022\035\n\025annotation_schema_uri\030\014 \001(\t\022J\n\nexpor" + + "t_use\030\004 \001(\01626.google.cloud.aiplatform.v1" + + ".ExportDataConfig.ExportUse\"A\n\tExportUse" + + "\022\032\n\026EXPORT_USE_UNSPECIFIED\020\000\022\030\n\024CUSTOM_C" + + "ODE_TRAINING\020\006B\r\n\013destinationB\007\n\005split\"d" + + "\n\023ExportFractionSplit\022\031\n\021training_fracti" + + "on\030\001 \001(\001\022\033\n\023validation_fraction\030\002 \001(\001\022\025\n" + + "\rtest_fraction\030\003 \001(\001\"k\n\021ExportFilterSpli" + + "t\022\034\n\017training_filter\030\001 \001(\tB\003\340A\002\022\036\n\021valid" + + "ation_filter\030\002 \001(\tB\003\340A\002\022\030\n\013test_filter\030\003" + + " \001(\tB\003\340A\002B\312\001\n\036com.google.cloud.aiplatfor" + + "m.v1B\014DatasetProtoP\001Z>cloud.google.com/g" + + "o/aiplatform/apiv1/aiplatformpb;aiplatfo" + + "rmpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Goog" + + "le\\Cloud\\AIPlatform\\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/DatasetVersion.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java index a63524130564..52f5ed57ee6a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java @@ -76,10 +76,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. The resource name of the DatasetVersion.
+   * Output only. Identifier. The resource name of the DatasetVersion.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -99,10 +101,12 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name of the DatasetVersion.
+   * Output only. Identifier. The resource name of the DatasetVersion.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -1032,10 +1036,12 @@ public Builder mergeFrom( * * *
-     * Output only. The resource name of the DatasetVersion.
+     * Output only. Identifier. The resource name of the DatasetVersion.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -1054,10 +1060,12 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name of the DatasetVersion.
+     * Output only. Identifier. The resource name of the DatasetVersion.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -1076,10 +1084,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name of the DatasetVersion.
+     * Output only. Identifier. The resource name of the DatasetVersion.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The name to set. * @return This builder for chaining. @@ -1097,10 +1107,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name of the DatasetVersion.
+     * Output only. Identifier. The resource name of the DatasetVersion.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return This builder for chaining. */ @@ -1114,10 +1126,12 @@ public Builder clearName() { * * *
-     * Output only. The resource name of the DatasetVersion.
+     * Output only. Identifier. The resource name of the DatasetVersion.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java index 4322237a5d58..e11b3158ba8d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java @@ -28,10 +28,12 @@ public interface DatasetVersionOrBuilder * * *
-   * Output only. The resource name of the DatasetVersion.
+   * Output only. Identifier. The resource name of the DatasetVersion.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -40,10 +42,12 @@ public interface DatasetVersionOrBuilder * * *
-   * Output only. The resource name of the DatasetVersion.
+   * Output only. Identifier. The resource name of the DatasetVersion.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java index c8180919f731..200376a8dc56 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java @@ -46,23 +46,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032\034google/protobuf/stru" + "ct.proto\032\037google/protobuf/timestamp.prot" - + "o\"\267\003\n\016DatasetVersion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" - + "4\n\013create_time\030\002 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\022\014\n\004etag\030\003 \001(" - + "\t\022#\n\026big_query_dataset_name\030\004 \001(\tB\003\340A\003\022\024" - + "\n\014display_name\030\007 \001(\t\0220\n\010metadata\030\010 \001(\0132\026" - + ".google.protobuf.ValueB\006\340A\003\340A\002\022\034\n\017model_" - + "reference\030\t \001(\tB\003\340A\003:\214\001\352A\210\001\n(aiplatform." - + "googleapis.com/DatasetVersion\022\\projects/" - + "{project}/locations/{location}/datasets/" - + "{dataset}/datasetVersions/{dataset_versi" - + "on}B\321\001\n\036com.google.cloud.aiplatform.v1B\023" - + "DatasetVersionProtoP\001Z>cloud.google.com/" - + "go/aiplatform/apiv1/aiplatformpb;aiplatf" - + "ormpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Goo" - + "gle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud:" - + ":AIPlatform::V1b\006proto3" + + "o\"\272\003\n\016DatasetVersion\022\024\n\004name\030\001 \001(\tB\006\340A\003\340" + + "A\010\0224\n\013create_time\030\002 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022\014\n\004etag\030\003" + + " \001(\t\022#\n\026big_query_dataset_name\030\004 \001(\tB\003\340A" + + "\003\022\024\n\014display_name\030\007 \001(\t\0220\n\010metadata\030\010 \001(" + + "\0132\026.google.protobuf.ValueB\006\340A\003\340A\002\022\034\n\017mod" + + "el_reference\030\t \001(\tB\003\340A\003:\214\001\352A\210\001\n(aiplatfo" + + "rm.googleapis.com/DatasetVersion\022\\projec" + + "ts/{project}/locations/{location}/datase" + + "ts/{dataset}/datasetVersions/{dataset_ve" + + "rsion}B\321\001\n\036com.google.cloud.aiplatform.v" + + "1B\023DatasetVersionProtoP\001Z>cloud.google.c" + + "om/go/aiplatform/apiv1/aiplatformpb;aipl" + + "atformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032" + + "Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Clo" + + "ud::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/DeleteNotebookExecutionJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteNotebookExecutionJobRequest.java new file mode 100644 index 000000000000..03e53c5719b1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteNotebookExecutionJobRequest.java @@ -0,0 +1,648 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [NotebookService.DeleteNotebookExecutionJob]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest} + */ +public final class DeleteNotebookExecutionJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest) + DeleteNotebookExecutionJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteNotebookExecutionJobRequest.newBuilder() to construct. + private DeleteNotebookExecutionJobRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteNotebookExecutionJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteNotebookExecutionJobRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteNotebookExecutionJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteNotebookExecutionJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest.class, + com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the NotebookExecutionJob resource to be deleted.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the NotebookExecutionJob resource to be deleted.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest other = + (com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [NotebookService.DeleteNotebookExecutionJob]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest) + com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteNotebookExecutionJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteNotebookExecutionJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest.class, + com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteNotebookExecutionJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest build() { + com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest buildPartial() { + com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest result = + new com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest other) { + if (other + == com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the NotebookExecutionJob resource to be deleted.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the NotebookExecutionJob resource to be deleted.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the NotebookExecutionJob resource to be deleted.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the NotebookExecutionJob resource to be deleted.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the NotebookExecutionJob resource to be deleted.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest) + private static final com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest(); + } + + public static com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNotebookExecutionJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteNotebookExecutionJobRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteNotebookExecutionJobRequestOrBuilder.java new file mode 100644 index 000000000000..b8d6cde89e8d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteNotebookExecutionJobRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +public interface DeleteNotebookExecutionJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the NotebookExecutionJob resource to be deleted.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the NotebookExecutionJob resource to be deleted.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java index 6fb7d061a0c9..67a754a26d4c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java @@ -47,6 +47,7 @@ private Endpoint() { etag_ = ""; network_ = ""; modelDeploymentMonitoringJob_ = ""; + dedicatedEndpointDns_ = ""; } @java.lang.Override @@ -1114,6 +1115,123 @@ public boolean hasPredictRequestResponseLoggingConfig() { : predictRequestResponseLoggingConfig_; } + public static final int DEDICATED_ENDPOINT_ENABLED_FIELD_NUMBER = 24; + private boolean dedicatedEndpointEnabled_ = false; + /** + * + * + *
+   * If true, the endpoint will be exposed through a dedicated
+   * DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS
+   * will be isolated from other users' traffic and will have better performance
+   * and reliability.
+   * Note: Once you enabled dedicated endpoint, you won't be able to send
+   * request to the shared DNS {region}-aiplatform.googleapis.com. The
+   * limitation will be removed soon.
+   * 
+ * + * bool dedicated_endpoint_enabled = 24; + * + * @return The dedicatedEndpointEnabled. + */ + @java.lang.Override + public boolean getDedicatedEndpointEnabled() { + return dedicatedEndpointEnabled_; + } + + public static final int DEDICATED_ENDPOINT_DNS_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") + private volatile java.lang.Object dedicatedEndpointDns_ = ""; + /** + * + * + *
+   * Output only. DNS of the dedicated endpoint. Will only be populated if
+   * dedicated_endpoint_enabled is true.
+   * Format:
+   * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+   * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dedicatedEndpointDns. + */ + @java.lang.Override + public java.lang.String getDedicatedEndpointDns() { + java.lang.Object ref = dedicatedEndpointDns_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dedicatedEndpointDns_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. DNS of the dedicated endpoint. Will only be populated if
+   * dedicated_endpoint_enabled is true.
+   * Format:
+   * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+   * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dedicatedEndpointDns. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDedicatedEndpointDnsBytes() { + java.lang.Object ref = dedicatedEndpointDns_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dedicatedEndpointDns_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SATISFIES_PZS_FIELD_NUMBER = 27; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 28; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1171,6 +1289,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(21, getPrivateServiceConnectConfig()); } + if (dedicatedEndpointEnabled_ != false) { + output.writeBool(24, dedicatedEndpointEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dedicatedEndpointDns_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 25, dedicatedEndpointDns_); + } + if (satisfiesPzs_ != false) { + output.writeBool(27, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + output.writeBool(28, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -1246,6 +1376,18 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 21, getPrivateServiceConnectConfig()); } + if (dedicatedEndpointEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, dedicatedEndpointEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dedicatedEndpointDns_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, dedicatedEndpointDns_); + } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(28, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1295,6 +1437,10 @@ public boolean equals(final java.lang.Object obj) { if (!getPredictRequestResponseLoggingConfig() .equals(other.getPredictRequestResponseLoggingConfig())) return false; } + if (getDedicatedEndpointEnabled() != other.getDedicatedEndpointEnabled()) return false; + if (!getDedicatedEndpointDns().equals(other.getDedicatedEndpointDns())) return false; + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1352,6 +1498,14 @@ public int hashCode() { hash = (37 * hash) + PREDICT_REQUEST_RESPONSE_LOGGING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPredictRequestResponseLoggingConfig().hashCode(); } + hash = (37 * hash) + DEDICATED_ENDPOINT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDedicatedEndpointEnabled()); + hash = (37 * hash) + DEDICATED_ENDPOINT_DNS_FIELD_NUMBER; + hash = (53 * hash) + getDedicatedEndpointDns().hashCode(); + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1573,6 +1727,10 @@ public Builder clear() { predictRequestResponseLoggingConfigBuilder_.dispose(); predictRequestResponseLoggingConfigBuilder_ = null; } + dedicatedEndpointEnabled_ = false; + dedicatedEndpointDns_ = ""; + satisfiesPzs_ = false; + satisfiesPzi_ = false; return this; } @@ -1679,6 +1837,18 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Endpoint result) { : predictRequestResponseLoggingConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.dedicatedEndpointEnabled_ = dedicatedEndpointEnabled_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.dedicatedEndpointDns_ = dedicatedEndpointDns_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } result.bitField0_ |= to_bitField0_; } @@ -1806,6 +1976,20 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Endpoint other) { if (other.hasPredictRequestResponseLoggingConfig()) { mergePredictRequestResponseLoggingConfig(other.getPredictRequestResponseLoggingConfig()); } + if (other.getDedicatedEndpointEnabled() != false) { + setDedicatedEndpointEnabled(other.getDedicatedEndpointEnabled()); + } + if (!other.getDedicatedEndpointDns().isEmpty()) { + dedicatedEndpointDns_ = other.dedicatedEndpointDns_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1944,6 +2128,30 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 170 + case 192: + { + dedicatedEndpointEnabled_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 192 + case 202: + { + dedicatedEndpointDns_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 202 + case 216: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00020000; + break; + } // case 216 + case 224: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00040000; + break; + } // case 224 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4779,6 +4987,304 @@ public Builder clearPredictRequestResponseLoggingConfig() { return predictRequestResponseLoggingConfigBuilder_; } + private boolean dedicatedEndpointEnabled_; + /** + * + * + *
+     * If true, the endpoint will be exposed through a dedicated
+     * DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS
+     * will be isolated from other users' traffic and will have better performance
+     * and reliability.
+     * Note: Once you enabled dedicated endpoint, you won't be able to send
+     * request to the shared DNS {region}-aiplatform.googleapis.com. The
+     * limitation will be removed soon.
+     * 
+ * + * bool dedicated_endpoint_enabled = 24; + * + * @return The dedicatedEndpointEnabled. + */ + @java.lang.Override + public boolean getDedicatedEndpointEnabled() { + return dedicatedEndpointEnabled_; + } + /** + * + * + *
+     * If true, the endpoint will be exposed through a dedicated
+     * DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS
+     * will be isolated from other users' traffic and will have better performance
+     * and reliability.
+     * Note: Once you enabled dedicated endpoint, you won't be able to send
+     * request to the shared DNS {region}-aiplatform.googleapis.com. The
+     * limitation will be removed soon.
+     * 
+ * + * bool dedicated_endpoint_enabled = 24; + * + * @param value The dedicatedEndpointEnabled to set. + * @return This builder for chaining. + */ + public Builder setDedicatedEndpointEnabled(boolean value) { + + dedicatedEndpointEnabled_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, the endpoint will be exposed through a dedicated
+     * DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS
+     * will be isolated from other users' traffic and will have better performance
+     * and reliability.
+     * Note: Once you enabled dedicated endpoint, you won't be able to send
+     * request to the shared DNS {region}-aiplatform.googleapis.com. The
+     * limitation will be removed soon.
+     * 
+ * + * bool dedicated_endpoint_enabled = 24; + * + * @return This builder for chaining. + */ + public Builder clearDedicatedEndpointEnabled() { + bitField0_ = (bitField0_ & ~0x00008000); + dedicatedEndpointEnabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object dedicatedEndpointDns_ = ""; + /** + * + * + *
+     * Output only. DNS of the dedicated endpoint. Will only be populated if
+     * dedicated_endpoint_enabled is true.
+     * Format:
+     * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+     * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dedicatedEndpointDns. + */ + public java.lang.String getDedicatedEndpointDns() { + java.lang.Object ref = dedicatedEndpointDns_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dedicatedEndpointDns_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. DNS of the dedicated endpoint. Will only be populated if
+     * dedicated_endpoint_enabled is true.
+     * Format:
+     * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+     * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dedicatedEndpointDns. + */ + public com.google.protobuf.ByteString getDedicatedEndpointDnsBytes() { + java.lang.Object ref = dedicatedEndpointDns_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dedicatedEndpointDns_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. DNS of the dedicated endpoint. Will only be populated if
+     * dedicated_endpoint_enabled is true.
+     * Format:
+     * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+     * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dedicatedEndpointDns to set. + * @return This builder for chaining. + */ + public Builder setDedicatedEndpointDns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dedicatedEndpointDns_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. DNS of the dedicated endpoint. Will only be populated if
+     * dedicated_endpoint_enabled is true.
+     * Format:
+     * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+     * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDedicatedEndpointDns() { + dedicatedEndpointDns_ = getDefaultInstance().getDedicatedEndpointDns(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. DNS of the dedicated endpoint. Will only be populated if
+     * dedicated_endpoint_enabled is true.
+     * Format:
+     * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+     * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for dedicatedEndpointDns to set. + * @return This builder for chaining. + */ + public Builder setDedicatedEndpointDnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dedicatedEndpointDns_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00020000); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00040000); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java index 077494b9a30d..b764c36d7e1f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java @@ -724,4 +724,80 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfigOrBuilder getPredictRequestResponseLoggingConfigOrBuilder(); + + /** + * + * + *
+   * If true, the endpoint will be exposed through a dedicated
+   * DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS
+   * will be isolated from other users' traffic and will have better performance
+   * and reliability.
+   * Note: Once you enabled dedicated endpoint, you won't be able to send
+   * request to the shared DNS {region}-aiplatform.googleapis.com. The
+   * limitation will be removed soon.
+   * 
+ * + * bool dedicated_endpoint_enabled = 24; + * + * @return The dedicatedEndpointEnabled. + */ + boolean getDedicatedEndpointEnabled(); + + /** + * + * + *
+   * Output only. DNS of the dedicated endpoint. Will only be populated if
+   * dedicated_endpoint_enabled is true.
+   * Format:
+   * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+   * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dedicatedEndpointDns. + */ + java.lang.String getDedicatedEndpointDns(); + /** + * + * + *
+   * Output only. DNS of the dedicated endpoint. Will only be populated if
+   * dedicated_endpoint_enabled is true.
+   * Format:
+   * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+   * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dedicatedEndpointDns. + */ + com.google.protobuf.ByteString getDedicatedEndpointDnsBytes(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java index 44a4ee6f3a1a..53a8119abcc4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java @@ -71,7 +71,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "iplatform/v1/machine_resources.proto\0323go" + "ogle/cloud/aiplatform/v1/service_network" + "ing.proto\032\037google/protobuf/timestamp.pro" - + "to\"\250\t\n\010Endpoint\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014di" + + "to\"\251\n\n\010Endpoint\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014di" + "splay_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001" + "(\t\022G\n\017deployed_models\030\004 \003(\0132).google.clo" + "ud.aiplatform.v1.DeployedModelB\003\340A\003\022M\n\rt" @@ -93,46 +93,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "leapis.com/ModelDeploymentMonitoringJob\022" + "p\n\'predict_request_response_logging_conf" + "ig\030\022 \001(\0132?.google.cloud.aiplatform.v1.Pr" - + "edictRequestResponseLoggingConfig\0323\n\021Tra" - + "fficSplitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\005:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:\265\001\352A\261\001\n\"aiplatform.googlea" - + "pis.com/Endpoint\022cloud.google.com/go/aiplatform/" - + "apiv1/aiplatformpb;aiplatformpb\252\002\032Google" - + ".Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPl" - + "atform\\V1\352\002\035Google::Cloud::AIPlatform::V" - + "1b\006proto3" + + "edictRequestResponseLoggingConfig\022\"\n\032ded" + + "icated_endpoint_enabled\030\030 \001(\010\022#\n\026dedicat" + + "ed_endpoint_dns\030\031 \001(\tB\003\340A\003\022\032\n\rsatisfies_" + + "pzs\030\033 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\034 \001(\010B\003\340" + + "A\003\0323\n\021TrafficSplitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\005:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\265\001\352A\261\001\n\"aiplatfor" + + "m.googleapis.com/Endpoint\022cloud.google.com/go/ai" + + "platform/apiv1/aiplatformpb;aiplatformpb" + + "\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\C" + + "loud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPl" + + "atform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -168,6 +171,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateServiceConnectConfig", "ModelDeploymentMonitoringJob", "PredictRequestResponseLoggingConfig", + "DedicatedEndpointEnabled", + "DedicatedEndpointDns", + "SatisfiesPzs", + "SatisfiesPzi", }); internal_static_google_cloud_aiplatform_v1_Endpoint_TrafficSplitEntry_descriptor = internal_static_google_cloud_aiplatform_v1_Endpoint_descriptor.getNestedTypes().get(0); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceProto.java index 01eb025a2169..84c39d3e96f7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceProto.java @@ -64,6 +64,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_StringFilter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_StringFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_NumericFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_NumericFilter_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -123,61 +127,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "uePairList.FeatureNameValuePair\032g\n\024Featu" + "reNameValuePair\0229\n\005value\030\002 \001(\0132(.google." + "cloud.aiplatform.v1.FeatureValueH\000\022\014\n\004na" - + "me\030\001 \001(\tB\006\n\004dataB\010\n\006format\"\363\004\n\024NearestNe" + + "me\030\001 \001(\tB\006\n\004dataB\010\n\006format\"\243\010\n\024NearestNe" + "ighborQuery\022\030\n\tentity_id\030\001 \001(\tB\003\340A\001H\000\022T\n" + "\tembedding\030\002 \001(\0132:.google.cloud.aiplatfo" + "rm.v1.NearestNeighborQuery.EmbeddingB\003\340A" + "\001H\000\022\033\n\016neighbor_count\030\003 \001(\005B\003\340A\001\022Z\n\016stri" + "ng_filters\030\004 \003(\0132=.google.cloud.aiplatfo" + "rm.v1.NearestNeighborQuery.StringFilterB" - + "\003\340A\001\0222\n%per_crowding_attribute_neighbor_" - + "count\030\005 \001(\005B\003\340A\001\022T\n\nparameters\030\007 \001(\0132;.g" - + "oogle.cloud.aiplatform.v1.NearestNeighbo" - + "rQuery.ParametersB\003\340A\001\032\037\n\tEmbedding\022\022\n\005v" - + "alue\030\001 \003(\002B\003\340A\001\032V\n\014StringFilter\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\002\022\031\n\014allow_tokens\030\002 \003(\tB\003\340A\001\022\030\n" - + "\013deny_tokens\030\003 \003(\tB\003\340A\001\032c\n\nParameters\022,\n" - + "\037approximate_neighbor_candidates\030\001 \001(\005B\003" - + "\340A\001\022\'\n\032leaf_nodes_search_fraction\030\002 \001(\001B" - + "\003\340A\001B\n\n\010instance\"\312\001\n\034SearchNearestEntiti" - + "esRequest\022C\n\014feature_view\030\001 \001(\tB-\340A\002\372A\'\n" - + "%aiplatform.googleapis.com/FeatureView\022D" - + "\n\005query\030\002 \001(\01320.google.cloud.aiplatform." - + "v1.NearestNeighborQueryB\003\340A\002\022\037\n\022return_f" - + "ull_entity\030\003 \001(\010B\003\340A\001\"\341\001\n\020NearestNeighbo" - + "rs\022H\n\tneighbors\030\001 \003(\01325.google.cloud.aip" - + "latform.v1.NearestNeighbors.Neighbor\032\202\001\n" - + "\010Neighbor\022\021\n\tentity_id\030\001 \001(\t\022\020\n\010distance" - + "\030\002 \001(\001\022Q\n\021entity_key_values\030\003 \001(\01326.goog" - + "le.cloud.aiplatform.v1.FetchFeatureValue" - + "sResponse\"h\n\035SearchNearestEntitiesRespon" - + "se\022G\n\021nearest_neighbors\030\001 \001(\0132,.google.c" - + "loud.aiplatform.v1.NearestNeighbors*b\n\025F" - + "eatureViewDataFormat\022(\n$FEATURE_VIEW_DAT" - + "A_FORMAT_UNSPECIFIED\020\000\022\r\n\tKEY_VALUE\020\001\022\020\n" - + "\014PROTO_STRUCT\020\0022\370\004\n\031FeatureOnlineStoreSe" - + "rvice\022\213\002\n\022FetchFeatureValues\0225.google.cl" - + "oud.aiplatform.v1.FetchFeatureValuesRequ" - + "est\0326.google.cloud.aiplatform.v1.FetchFe" - + "atureValuesResponse\"\205\001\332A\026feature_view, d" - + "ata_key\202\323\344\223\002f\"a/v1/{feature_view=project" - + "s/*/locations/*/featureOnlineStores/*/fe" - + "atureViews/*}:fetchFeatureValues:\001*\022\375\001\n\025" - + "SearchNearestEntities\0228.google.cloud.aip" - + "latform.v1.SearchNearestEntitiesRequest\032" - + "9.google.cloud.aiplatform.v1.SearchNeare" - + "stEntitiesResponse\"o\202\323\344\223\002i\"d/v1/{feature" - + "_view=projects/*/locations/*/featureOnli" - + "neStores/*/featureViews/*}:searchNearest" - + "Entities:\001*\032M\312A\031aiplatform.googleapis.co" - + "m\322A.https://www.googleapis.com/auth/clou" - + "d-platformB\334\001\n\036com.google.cloud.aiplatfo" - + "rm.v1B\036FeatureOnlineStoreServiceProtoP\001Z" - + ">cloud.google.com/go/aiplatform/apiv1/ai" - + "platformpb;aiplatformpb\252\002\032Google.Cloud.A" - + "IPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\V" - + "1\352\002\035Google::Cloud::AIPlatform::V1b\006proto" - + "3" + + "\003\340A\001\022\\\n\017numeric_filters\030\010 \003(\0132>.google.c" + + "loud.aiplatform.v1.NearestNeighborQuery." + + "NumericFilterB\003\340A\001\0222\n%per_crowding_attri" + + "bute_neighbor_count\030\005 \001(\005B\003\340A\001\022T\n\nparame" + + "ters\030\007 \001(\0132;.google.cloud.aiplatform.v1." + + "NearestNeighborQuery.ParametersB\003\340A\001\032\037\n\t" + + "Embedding\022\022\n\005value\030\001 \003(\002B\003\340A\001\032V\n\014StringF" + + "ilter\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014allow_tokens" + + "\030\002 \003(\tB\003\340A\001\022\030\n\013deny_tokens\030\003 \003(\tB\003\340A\001\032\317\002" + + "\n\rNumericFilter\022\023\n\tvalue_int\030\002 \001(\003H\000\022\025\n\013" + + "value_float\030\003 \001(\002H\000\022\026\n\014value_double\030\004 \001(" + + "\001H\000\022\021\n\004name\030\001 \001(\tB\003\340A\002\022]\n\002op\030\005 \001(\0162G.goo" + + "gle.cloud.aiplatform.v1.NearestNeighborQ" + + "uery.NumericFilter.OperatorB\003\340A\001H\001\210\001\001\"x\n" + + "\010Operator\022\030\n\024OPERATOR_UNSPECIFIED\020\000\022\010\n\004L" + + "ESS\020\001\022\016\n\nLESS_EQUAL\020\002\022\t\n\005EQUAL\020\003\022\021\n\rGREA" + + "TER_EQUAL\020\004\022\013\n\007GREATER\020\005\022\r\n\tNOT_EQUAL\020\006B" + + "\007\n\005ValueB\005\n\003_op\032c\n\nParameters\022,\n\037approxi" + + "mate_neighbor_candidates\030\001 \001(\005B\003\340A\001\022\'\n\032l" + + "eaf_nodes_search_fraction\030\002 \001(\001B\003\340A\001B\n\n\010" + + "instance\"\312\001\n\034SearchNearestEntitiesReques" + + "t\022C\n\014feature_view\030\001 \001(\tB-\340A\002\372A\'\n%aiplatf" + + "orm.googleapis.com/FeatureView\022D\n\005query\030" + + "\002 \001(\01320.google.cloud.aiplatform.v1.Neare" + + "stNeighborQueryB\003\340A\002\022\037\n\022return_full_enti" + + "ty\030\003 \001(\010B\003\340A\001\"\341\001\n\020NearestNeighbors\022H\n\tne" + + "ighbors\030\001 \003(\01325.google.cloud.aiplatform." + + "v1.NearestNeighbors.Neighbor\032\202\001\n\010Neighbo" + + "r\022\021\n\tentity_id\030\001 \001(\t\022\020\n\010distance\030\002 \001(\001\022Q" + + "\n\021entity_key_values\030\003 \001(\01326.google.cloud" + + ".aiplatform.v1.FetchFeatureValuesRespons" + + "e\"h\n\035SearchNearestEntitiesResponse\022G\n\021ne" + + "arest_neighbors\030\001 \001(\0132,.google.cloud.aip" + + "latform.v1.NearestNeighbors*b\n\025FeatureVi" + + "ewDataFormat\022(\n$FEATURE_VIEW_DATA_FORMAT" + + "_UNSPECIFIED\020\000\022\r\n\tKEY_VALUE\020\001\022\020\n\014PROTO_S" + + "TRUCT\020\0022\370\004\n\031FeatureOnlineStoreService\022\213\002" + + "\n\022FetchFeatureValues\0225.google.cloud.aipl" + + "atform.v1.FetchFeatureValuesRequest\0326.go" + + "ogle.cloud.aiplatform.v1.FetchFeatureVal" + + "uesResponse\"\205\001\332A\026feature_view, data_key\202" + + "\323\344\223\002f\"a/v1/{feature_view=projects/*/loca" + + "tions/*/featureOnlineStores/*/featureVie" + + "ws/*}:fetchFeatureValues:\001*\022\375\001\n\025SearchNe" + + "arestEntities\0228.google.cloud.aiplatform." + + "v1.SearchNearestEntitiesRequest\0329.google" + + ".cloud.aiplatform.v1.SearchNearestEntiti" + + "esResponse\"o\202\323\344\223\002i\"d/v1/{feature_view=pr" + + "ojects/*/locations/*/featureOnlineStores" + + "/*/featureViews/*}:searchNearestEntities" + + ":\001*\032M\312A\031aiplatform.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\334\001\n\036com.google.cloud.aiplatform.v1B\036F" + + "eatureOnlineStoreServiceProtoP\001Z>cloud.g" + + "oogle.com/go/aiplatform/apiv1/aiplatform" + + "pb;aiplatformpb\252\002\032Google.Cloud.AIPlatfor" + + "m.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Goog" + + "le::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -254,6 +268,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Embedding", "NeighborCount", "StringFilters", + "NumericFilters", "PerCrowdingAttributeNeighborCount", "Parameters", "Instance", @@ -278,10 +293,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "AllowTokens", "DenyTokens", }); - internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_descriptor = + internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_NumericFilter_descriptor = internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_descriptor .getNestedTypes() .get(2); + internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_NumericFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_NumericFilter_descriptor, + new java.lang.String[] { + "ValueInt", "ValueFloat", "ValueDouble", "Name", "Op", "Value", + }); + internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_descriptor = + internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_descriptor + .getNestedTypes() + .get(3); internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetNotebookExecutionJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetNotebookExecutionJobRequest.java new file mode 100644 index 000000000000..776935536560 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetNotebookExecutionJobRequest.java @@ -0,0 +1,817 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [NotebookService.GetNotebookExecutionJob]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest} + */ +public final class GetNotebookExecutionJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest) + GetNotebookExecutionJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetNotebookExecutionJobRequest.newBuilder() to construct. + private GetNotebookExecutionJobRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetNotebookExecutionJobRequest() { + name_ = ""; + view_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetNotebookExecutionJobRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_GetNotebookExecutionJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_GetNotebookExecutionJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest.class, + com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the NotebookExecutionJob resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the NotebookExecutionJob resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_FIELD_NUMBER = 6; + private int view_ = 0; + /** + * + * + *
+   * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+   * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJobView getView() { + com.google.cloud.aiplatform.v1.NotebookExecutionJobView result = + com.google.cloud.aiplatform.v1.NotebookExecutionJobView.forNumber(view_); + return result == null + ? com.google.cloud.aiplatform.v1.NotebookExecutionJobView.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (view_ + != com.google.cloud.aiplatform.v1.NotebookExecutionJobView + .NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, view_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (view_ + != com.google.cloud.aiplatform.v1.NotebookExecutionJobView + .NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, view_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest other = + (com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (view_ != other.view_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [NotebookService.GetNotebookExecutionJob]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest) + com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_GetNotebookExecutionJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_GetNotebookExecutionJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest.class, + com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + view_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_GetNotebookExecutionJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest build() { + com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest buildPartial() { + com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest result = + new com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.view_ = view_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest other) { + if (other + == com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 48: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the NotebookExecutionJob resource.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the NotebookExecutionJob resource.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the NotebookExecutionJob resource.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the NotebookExecutionJob resource.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the NotebookExecutionJob resource.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int view_ = 0; + /** + * + * + *
+     * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+     * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJobView getView() { + com.google.cloud.aiplatform.v1.NotebookExecutionJobView result = + com.google.cloud.aiplatform.v1.NotebookExecutionJobView.forNumber(view_); + return result == null + ? com.google.cloud.aiplatform.v1.NotebookExecutionJobView.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.aiplatform.v1.NotebookExecutionJobView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000002); + view_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest) + private static final com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest(); + } + + public static com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNotebookExecutionJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetNotebookExecutionJobRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetNotebookExecutionJobRequestOrBuilder.java new file mode 100644 index 000000000000..71564d6cb4e6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetNotebookExecutionJobRequestOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +public interface GetNotebookExecutionJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the NotebookExecutionJob resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the NotebookExecutionJob resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
+   * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJobView getView(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPublisherModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPublisherModelRequest.java index 36037051374c..deb184460027 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPublisherModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPublisherModelRequest.java @@ -134,7 +134,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Optional. The IETF BCP-47 language code representing the language in which
-   * the publisher model's text information should be written in (see go/bcp47).
+   * the publisher model's text information should be written in.
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -158,7 +158,7 @@ public java.lang.String getLanguageCode() { * *
    * Optional. The IETF BCP-47 language code representing the language in which
-   * the publisher model's text information should be written in (see go/bcp47).
+   * the publisher model's text information should be written in.
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -217,6 +217,25 @@ public com.google.cloud.aiplatform.v1.PublisherModelView getView() { return result == null ? com.google.cloud.aiplatform.v1.PublisherModelView.UNRECOGNIZED : result; } + public static final int IS_HUGGING_FACE_MODEL_FIELD_NUMBER = 5; + private boolean isHuggingFaceModel_ = false; + /** + * + * + *
+   * Optional. Boolean indicates whether the requested model is a Hugging Face
+   * model.
+   * 
+ * + * bool is_hugging_face_model = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isHuggingFaceModel. + */ + @java.lang.Override + public boolean getIsHuggingFaceModel() { + return isHuggingFaceModel_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -242,6 +261,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, view_); } + if (isHuggingFaceModel_ != false) { + output.writeBool(5, isHuggingFaceModel_); + } getUnknownFields().writeTo(output); } @@ -262,6 +284,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, view_); } + if (isHuggingFaceModel_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isHuggingFaceModel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -281,6 +306,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (view_ != other.view_) return false; + if (getIsHuggingFaceModel() != other.getIsHuggingFaceModel()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -298,6 +324,8 @@ public int hashCode() { hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + view_; + hash = (37 * hash) + IS_HUGGING_FACE_MODEL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsHuggingFaceModel()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -442,6 +470,7 @@ public Builder clear() { name_ = ""; languageCode_ = ""; view_ = 0; + isHuggingFaceModel_ = false; return this; } @@ -487,6 +516,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.GetPublisherModelReque if (((from_bitField0_ & 0x00000004) != 0)) { result.view_ = view_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isHuggingFaceModel_ = isHuggingFaceModel_; + } } @java.lang.Override @@ -548,6 +580,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetPublisherModelRequest if (other.view_ != 0) { setViewValue(other.getViewValue()); } + if (other.getIsHuggingFaceModel() != false) { + setIsHuggingFaceModel(other.getIsHuggingFaceModel()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -592,6 +627,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 40: + { + isHuggingFaceModel_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -743,7 +784,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher model's text information should be written in (see go/bcp47).
+     * the publisher model's text information should be written in.
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -766,7 +807,7 @@ public java.lang.String getLanguageCode() { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher model's text information should be written in (see go/bcp47).
+     * the publisher model's text information should be written in.
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -789,7 +830,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher model's text information should be written in (see go/bcp47).
+     * the publisher model's text information should be written in.
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -811,7 +852,7 @@ public Builder setLanguageCode(java.lang.String value) { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher model's text information should be written in (see go/bcp47).
+     * the publisher model's text information should be written in.
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -829,7 +870,7 @@ public Builder clearLanguageCode() { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher model's text information should be written in (see go/bcp47).
+     * the publisher model's text information should be written in.
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -950,6 +991,62 @@ public Builder clearView() { return this; } + private boolean isHuggingFaceModel_; + /** + * + * + *
+     * Optional. Boolean indicates whether the requested model is a Hugging Face
+     * model.
+     * 
+ * + * bool is_hugging_face_model = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isHuggingFaceModel. + */ + @java.lang.Override + public boolean getIsHuggingFaceModel() { + return isHuggingFaceModel_; + } + /** + * + * + *
+     * Optional. Boolean indicates whether the requested model is a Hugging Face
+     * model.
+     * 
+ * + * bool is_hugging_face_model = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The isHuggingFaceModel to set. + * @return This builder for chaining. + */ + public Builder setIsHuggingFaceModel(boolean value) { + + isHuggingFaceModel_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Boolean indicates whether the requested model is a Hugging Face
+     * model.
+     * 
+ * + * bool is_hugging_face_model = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIsHuggingFaceModel() { + bitField0_ = (bitField0_ & ~0x00000008); + isHuggingFaceModel_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPublisherModelRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPublisherModelRequestOrBuilder.java index b6cf61e98aa2..d0d0eb77c11a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPublisherModelRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPublisherModelRequestOrBuilder.java @@ -62,7 +62,7 @@ public interface GetPublisherModelRequestOrBuilder * *
    * Optional. The IETF BCP-47 language code representing the language in which
-   * the publisher model's text information should be written in (see go/bcp47).
+   * the publisher model's text information should be written in.
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -75,7 +75,7 @@ public interface GetPublisherModelRequestOrBuilder * *
    * Optional. The IETF BCP-47 language code representing the language in which
-   * the publisher model's text information should be written in (see go/bcp47).
+   * the publisher model's text information should be written in.
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -112,4 +112,18 @@ public interface GetPublisherModelRequestOrBuilder * @return The view. */ com.google.cloud.aiplatform.v1.PublisherModelView getView(); + + /** + * + * + *
+   * Optional. Boolean indicates whether the requested model is a Hugging Face
+   * model.
+   * 
+ * + * bool is_hugging_face_model = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isHuggingFaceModel. + */ + boolean getIsHuggingFaceModel(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingChunk.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingChunk.java new file mode 100644 index 000000000000..f4d74b849fbb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingChunk.java @@ -0,0 +1,3029 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Grounding chunk.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GroundingChunk} + */ +public final class GroundingChunk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GroundingChunk) + GroundingChunkOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroundingChunk.newBuilder() to construct. + private GroundingChunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroundingChunk() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroundingChunk(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GroundingChunk.class, + com.google.cloud.aiplatform.v1.GroundingChunk.Builder.class); + } + + public interface WebOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GroundingChunk.Web) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * URI reference of the chunk.
+     * 
+ * + * optional string uri = 1; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); + /** + * + * + *
+     * URI reference of the chunk.
+     * 
+ * + * optional string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+     * URI reference of the chunk.
+     * 
+ * + * optional string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+     * Title of the chunk.
+     * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + /** + * + * + *
+     * Title of the chunk.
+     * 
+ * + * optional string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + /** + * + * + *
+     * Title of the chunk.
+     * 
+ * + * optional string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + } + /** + * + * + *
+   * Chunk from the web.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GroundingChunk.Web} + */ + public static final class Web extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GroundingChunk.Web) + WebOrBuilder { + private static final long serialVersionUID = 0L; + // Use Web.newBuilder() to construct. + private Web(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Web() { + uri_ = ""; + title_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Web(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_Web_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_Web_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GroundingChunk.Web.class, + com.google.cloud.aiplatform.v1.GroundingChunk.Web.Builder.class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+     * URI reference of the chunk.
+     * 
+ * + * optional string uri = 1; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * URI reference of the chunk.
+     * 
+ * + * optional string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+     * URI reference of the chunk.
+     * 
+ * + * optional string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + /** + * + * + *
+     * Title of the chunk.
+     * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Title of the chunk.
+     * 
+ * + * optional string title = 2; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + /** + * + * + *
+     * Title of the chunk.
+     * 
+ * + * optional string title = 2; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.GroundingChunk.Web)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.GroundingChunk.Web other = + (com.google.cloud.aiplatform.v1.GroundingChunk.Web) obj; + + if (hasUri() != other.hasUri()) return false; + if (hasUri()) { + if (!getUri().equals(other.getUri())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUri()) { + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.Web parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.Web parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.Web parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.Web parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.Web parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.Web parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.Web parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.Web parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.Web parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.Web parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.Web parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.Web parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.GroundingChunk.Web prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Chunk from the web.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GroundingChunk.Web} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GroundingChunk.Web) + com.google.cloud.aiplatform.v1.GroundingChunk.WebOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_Web_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_Web_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GroundingChunk.Web.class, + com.google.cloud.aiplatform.v1.GroundingChunk.Web.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.GroundingChunk.Web.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + title_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_Web_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.Web getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.GroundingChunk.Web.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.Web build() { + com.google.cloud.aiplatform.v1.GroundingChunk.Web result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.Web buildPartial() { + com.google.cloud.aiplatform.v1.GroundingChunk.Web result = + new com.google.cloud.aiplatform.v1.GroundingChunk.Web(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.GroundingChunk.Web result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.GroundingChunk.Web) { + return mergeFrom((com.google.cloud.aiplatform.v1.GroundingChunk.Web) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.GroundingChunk.Web other) { + if (other == com.google.cloud.aiplatform.v1.GroundingChunk.Web.getDefaultInstance()) + return this; + if (other.hasUri()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + * + * + *
+       * URI reference of the chunk.
+       * 
+ * + * optional string uri = 1; + * + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * URI reference of the chunk.
+       * 
+ * + * optional string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * URI reference of the chunk.
+       * 
+ * + * optional string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * URI reference of the chunk.
+       * 
+ * + * optional string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * URI reference of the chunk.
+       * 
+ * + * optional string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * URI reference of the chunk.
+       * 
+ * + * optional string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+       * Title of the chunk.
+       * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Title of the chunk.
+       * 
+ * + * optional string title = 2; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Title of the chunk.
+       * 
+ * + * optional string title = 2; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Title of the chunk.
+       * 
+ * + * optional string title = 2; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Title of the chunk.
+       * 
+ * + * optional string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Title of the chunk.
+       * 
+ * + * optional string title = 2; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GroundingChunk.Web) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GroundingChunk.Web) + private static final com.google.cloud.aiplatform.v1.GroundingChunk.Web DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GroundingChunk.Web(); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.Web getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Web parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.Web getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RetrievedContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * URI reference of the attribution.
+     * 
+ * + * optional string uri = 1; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); + /** + * + * + *
+     * URI reference of the attribution.
+     * 
+ * + * optional string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+     * URI reference of the attribution.
+     * 
+ * + * optional string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+     * Title of the attribution.
+     * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + /** + * + * + *
+     * Title of the attribution.
+     * 
+ * + * optional string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + /** + * + * + *
+     * Title of the attribution.
+     * 
+ * + * optional string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + } + /** + * + * + *
+   * Chunk from context retrieved by the retrieval tools.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext} + */ + public static final class RetrievedContext extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) + RetrievedContextOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetrievedContext.newBuilder() to construct. + private RetrievedContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RetrievedContext() { + uri_ = ""; + title_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RetrievedContext(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_RetrievedContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_RetrievedContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.class, + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.Builder.class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+     * URI reference of the attribution.
+     * 
+ * + * optional string uri = 1; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * URI reference of the attribution.
+     * 
+ * + * optional string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+     * URI reference of the attribution.
+     * 
+ * + * optional string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + /** + * + * + *
+     * Title of the attribution.
+     * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Title of the attribution.
+     * 
+ * + * optional string title = 2; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + /** + * + * + *
+     * Title of the attribution.
+     * 
+ * + * optional string title = 2; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext other = + (com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) obj; + + if (hasUri() != other.hasUri()) return false; + if (hasUri()) { + if (!getUri().equals(other.getUri())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUri()) { + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Chunk from context retrieved by the retrieval tools.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_RetrievedContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_RetrievedContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.class, + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + title_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_RetrievedContext_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext build() { + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext buildPartial() { + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext result = + new com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) { + return mergeFrom((com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext other) { + if (other + == com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.getDefaultInstance()) + return this; + if (other.hasUri()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + * + * + *
+       * URI reference of the attribution.
+       * 
+ * + * optional string uri = 1; + * + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * URI reference of the attribution.
+       * 
+ * + * optional string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * URI reference of the attribution.
+       * 
+ * + * optional string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * URI reference of the attribution.
+       * 
+ * + * optional string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * URI reference of the attribution.
+       * 
+ * + * optional string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * URI reference of the attribution.
+       * 
+ * + * optional string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+       * Title of the attribution.
+       * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Title of the attribution.
+       * 
+ * + * optional string title = 2; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Title of the attribution.
+       * 
+ * + * optional string title = 2; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Title of the attribution.
+       * 
+ * + * optional string title = 2; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Title of the attribution.
+       * 
+ * + * optional string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Title of the attribution.
+       * 
+ * + * optional string title = 2; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) + private static final com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext(); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrievedContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int chunkTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object chunkType_; + + public enum ChunkTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + WEB(1), + RETRIEVED_CONTEXT(2), + CHUNKTYPE_NOT_SET(0); + private final int value; + + private ChunkTypeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ChunkTypeCase valueOf(int value) { + return forNumber(value); + } + + public static ChunkTypeCase forNumber(int value) { + switch (value) { + case 1: + return WEB; + case 2: + return RETRIEVED_CONTEXT; + case 0: + return CHUNKTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ChunkTypeCase getChunkTypeCase() { + return ChunkTypeCase.forNumber(chunkTypeCase_); + } + + public static final int WEB_FIELD_NUMBER = 1; + /** + * + * + *
+   * Grounding chunk from the web.
+   * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + * + * @return Whether the web field is set. + */ + @java.lang.Override + public boolean hasWeb() { + return chunkTypeCase_ == 1; + } + /** + * + * + *
+   * Grounding chunk from the web.
+   * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + * + * @return The web. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.Web getWeb() { + if (chunkTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1.GroundingChunk.Web) chunkType_; + } + return com.google.cloud.aiplatform.v1.GroundingChunk.Web.getDefaultInstance(); + } + /** + * + * + *
+   * Grounding chunk from the web.
+   * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.WebOrBuilder getWebOrBuilder() { + if (chunkTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1.GroundingChunk.Web) chunkType_; + } + return com.google.cloud.aiplatform.v1.GroundingChunk.Web.getDefaultInstance(); + } + + public static final int RETRIEVED_CONTEXT_FIELD_NUMBER = 2; + /** + * + * + *
+   * Grounding chunk from context retrieved by the retrieval tools.
+   * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + * @return Whether the retrievedContext field is set. + */ + @java.lang.Override + public boolean hasRetrievedContext() { + return chunkTypeCase_ == 2; + } + /** + * + * + *
+   * Grounding chunk from context retrieved by the retrieval tools.
+   * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + * @return The retrievedContext. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext getRetrievedContext() { + if (chunkTypeCase_ == 2) { + return (com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) chunkType_; + } + return com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.getDefaultInstance(); + } + /** + * + * + *
+   * Grounding chunk from context retrieved by the retrieval tools.
+   * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContextOrBuilder + getRetrievedContextOrBuilder() { + if (chunkTypeCase_ == 2) { + return (com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) chunkType_; + } + return com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (chunkTypeCase_ == 1) { + output.writeMessage(1, (com.google.cloud.aiplatform.v1.GroundingChunk.Web) chunkType_); + } + if (chunkTypeCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) chunkType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (chunkTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.aiplatform.v1.GroundingChunk.Web) chunkType_); + } + if (chunkTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) chunkType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.GroundingChunk)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.GroundingChunk other = + (com.google.cloud.aiplatform.v1.GroundingChunk) obj; + + if (!getChunkTypeCase().equals(other.getChunkTypeCase())) return false; + switch (chunkTypeCase_) { + case 1: + if (!getWeb().equals(other.getWeb())) return false; + break; + case 2: + if (!getRetrievedContext().equals(other.getRetrievedContext())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (chunkTypeCase_) { + case 1: + hash = (37 * hash) + WEB_FIELD_NUMBER; + hash = (53 * hash) + getWeb().hashCode(); + break; + case 2: + hash = (37 * hash) + RETRIEVED_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getRetrievedContext().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.GroundingChunk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Grounding chunk.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GroundingChunk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GroundingChunk) + com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GroundingChunk.class, + com.google.cloud.aiplatform.v1.GroundingChunk.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.GroundingChunk.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (webBuilder_ != null) { + webBuilder_.clear(); + } + if (retrievedContextBuilder_ != null) { + retrievedContextBuilder_.clear(); + } + chunkTypeCase_ = 0; + chunkType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.GroundingChunk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk build() { + com.google.cloud.aiplatform.v1.GroundingChunk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk buildPartial() { + com.google.cloud.aiplatform.v1.GroundingChunk result = + new com.google.cloud.aiplatform.v1.GroundingChunk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.GroundingChunk result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.GroundingChunk result) { + result.chunkTypeCase_ = chunkTypeCase_; + result.chunkType_ = this.chunkType_; + if (chunkTypeCase_ == 1 && webBuilder_ != null) { + result.chunkType_ = webBuilder_.build(); + } + if (chunkTypeCase_ == 2 && retrievedContextBuilder_ != null) { + result.chunkType_ = retrievedContextBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.GroundingChunk) { + return mergeFrom((com.google.cloud.aiplatform.v1.GroundingChunk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.GroundingChunk other) { + if (other == com.google.cloud.aiplatform.v1.GroundingChunk.getDefaultInstance()) return this; + switch (other.getChunkTypeCase()) { + case WEB: + { + mergeWeb(other.getWeb()); + break; + } + case RETRIEVED_CONTEXT: + { + mergeRetrievedContext(other.getRetrievedContext()); + break; + } + case CHUNKTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getWebFieldBuilder().getBuilder(), extensionRegistry); + chunkTypeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getRetrievedContextFieldBuilder().getBuilder(), extensionRegistry); + chunkTypeCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int chunkTypeCase_ = 0; + private java.lang.Object chunkType_; + + public ChunkTypeCase getChunkTypeCase() { + return ChunkTypeCase.forNumber(chunkTypeCase_); + } + + public Builder clearChunkType() { + chunkTypeCase_ = 0; + chunkType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GroundingChunk.Web, + com.google.cloud.aiplatform.v1.GroundingChunk.Web.Builder, + com.google.cloud.aiplatform.v1.GroundingChunk.WebOrBuilder> + webBuilder_; + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + * + * @return Whether the web field is set. + */ + @java.lang.Override + public boolean hasWeb() { + return chunkTypeCase_ == 1; + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + * + * @return The web. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.Web getWeb() { + if (webBuilder_ == null) { + if (chunkTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1.GroundingChunk.Web) chunkType_; + } + return com.google.cloud.aiplatform.v1.GroundingChunk.Web.getDefaultInstance(); + } else { + if (chunkTypeCase_ == 1) { + return webBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.GroundingChunk.Web.getDefaultInstance(); + } + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + */ + public Builder setWeb(com.google.cloud.aiplatform.v1.GroundingChunk.Web value) { + if (webBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkType_ = value; + onChanged(); + } else { + webBuilder_.setMessage(value); + } + chunkTypeCase_ = 1; + return this; + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + */ + public Builder setWeb( + com.google.cloud.aiplatform.v1.GroundingChunk.Web.Builder builderForValue) { + if (webBuilder_ == null) { + chunkType_ = builderForValue.build(); + onChanged(); + } else { + webBuilder_.setMessage(builderForValue.build()); + } + chunkTypeCase_ = 1; + return this; + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + */ + public Builder mergeWeb(com.google.cloud.aiplatform.v1.GroundingChunk.Web value) { + if (webBuilder_ == null) { + if (chunkTypeCase_ == 1 + && chunkType_ + != com.google.cloud.aiplatform.v1.GroundingChunk.Web.getDefaultInstance()) { + chunkType_ = + com.google.cloud.aiplatform.v1.GroundingChunk.Web.newBuilder( + (com.google.cloud.aiplatform.v1.GroundingChunk.Web) chunkType_) + .mergeFrom(value) + .buildPartial(); + } else { + chunkType_ = value; + } + onChanged(); + } else { + if (chunkTypeCase_ == 1) { + webBuilder_.mergeFrom(value); + } else { + webBuilder_.setMessage(value); + } + } + chunkTypeCase_ = 1; + return this; + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + */ + public Builder clearWeb() { + if (webBuilder_ == null) { + if (chunkTypeCase_ == 1) { + chunkTypeCase_ = 0; + chunkType_ = null; + onChanged(); + } + } else { + if (chunkTypeCase_ == 1) { + chunkTypeCase_ = 0; + chunkType_ = null; + } + webBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + */ + public com.google.cloud.aiplatform.v1.GroundingChunk.Web.Builder getWebBuilder() { + return getWebFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.WebOrBuilder getWebOrBuilder() { + if ((chunkTypeCase_ == 1) && (webBuilder_ != null)) { + return webBuilder_.getMessageOrBuilder(); + } else { + if (chunkTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1.GroundingChunk.Web) chunkType_; + } + return com.google.cloud.aiplatform.v1.GroundingChunk.Web.getDefaultInstance(); + } + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GroundingChunk.Web, + com.google.cloud.aiplatform.v1.GroundingChunk.Web.Builder, + com.google.cloud.aiplatform.v1.GroundingChunk.WebOrBuilder> + getWebFieldBuilder() { + if (webBuilder_ == null) { + if (!(chunkTypeCase_ == 1)) { + chunkType_ = com.google.cloud.aiplatform.v1.GroundingChunk.Web.getDefaultInstance(); + } + webBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GroundingChunk.Web, + com.google.cloud.aiplatform.v1.GroundingChunk.Web.Builder, + com.google.cloud.aiplatform.v1.GroundingChunk.WebOrBuilder>( + (com.google.cloud.aiplatform.v1.GroundingChunk.Web) chunkType_, + getParentForChildren(), + isClean()); + chunkType_ = null; + } + chunkTypeCase_ = 1; + onChanged(); + return webBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext, + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.Builder, + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContextOrBuilder> + retrievedContextBuilder_; + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + * + * @return Whether the retrievedContext field is set. + */ + @java.lang.Override + public boolean hasRetrievedContext() { + return chunkTypeCase_ == 2; + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + * + * @return The retrievedContext. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext getRetrievedContext() { + if (retrievedContextBuilder_ == null) { + if (chunkTypeCase_ == 2) { + return (com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) chunkType_; + } + return com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.getDefaultInstance(); + } else { + if (chunkTypeCase_ == 2) { + return retrievedContextBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.getDefaultInstance(); + } + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + public Builder setRetrievedContext( + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext value) { + if (retrievedContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkType_ = value; + onChanged(); + } else { + retrievedContextBuilder_.setMessage(value); + } + chunkTypeCase_ = 2; + return this; + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + public Builder setRetrievedContext( + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.Builder builderForValue) { + if (retrievedContextBuilder_ == null) { + chunkType_ = builderForValue.build(); + onChanged(); + } else { + retrievedContextBuilder_.setMessage(builderForValue.build()); + } + chunkTypeCase_ = 2; + return this; + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + public Builder mergeRetrievedContext( + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext value) { + if (retrievedContextBuilder_ == null) { + if (chunkTypeCase_ == 2 + && chunkType_ + != com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext + .getDefaultInstance()) { + chunkType_ = + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.newBuilder( + (com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) chunkType_) + .mergeFrom(value) + .buildPartial(); + } else { + chunkType_ = value; + } + onChanged(); + } else { + if (chunkTypeCase_ == 2) { + retrievedContextBuilder_.mergeFrom(value); + } else { + retrievedContextBuilder_.setMessage(value); + } + } + chunkTypeCase_ = 2; + return this; + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + public Builder clearRetrievedContext() { + if (retrievedContextBuilder_ == null) { + if (chunkTypeCase_ == 2) { + chunkTypeCase_ = 0; + chunkType_ = null; + onChanged(); + } + } else { + if (chunkTypeCase_ == 2) { + chunkTypeCase_ = 0; + chunkType_ = null; + } + retrievedContextBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + public com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.Builder + getRetrievedContextBuilder() { + return getRetrievedContextFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContextOrBuilder + getRetrievedContextOrBuilder() { + if ((chunkTypeCase_ == 2) && (retrievedContextBuilder_ != null)) { + return retrievedContextBuilder_.getMessageOrBuilder(); + } else { + if (chunkTypeCase_ == 2) { + return (com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) chunkType_; + } + return com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.getDefaultInstance(); + } + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext, + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.Builder, + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContextOrBuilder> + getRetrievedContextFieldBuilder() { + if (retrievedContextBuilder_ == null) { + if (!(chunkTypeCase_ == 2)) { + chunkType_ = + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.getDefaultInstance(); + } + retrievedContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext, + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.Builder, + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContextOrBuilder>( + (com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext) chunkType_, + getParentForChildren(), + isClean()); + chunkType_ = null; + } + chunkTypeCase_ = 2; + onChanged(); + return retrievedContextBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GroundingChunk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GroundingChunk) + private static final com.google.cloud.aiplatform.v1.GroundingChunk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GroundingChunk(); + } + + public static com.google.cloud.aiplatform.v1.GroundingChunk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroundingChunk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingChunkOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingChunkOrBuilder.java new file mode 100644 index 000000000000..a31d96fd1adc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingChunkOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +public interface GroundingChunkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GroundingChunk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Grounding chunk from the web.
+   * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + * + * @return Whether the web field is set. + */ + boolean hasWeb(); + /** + * + * + *
+   * Grounding chunk from the web.
+   * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + * + * @return The web. + */ + com.google.cloud.aiplatform.v1.GroundingChunk.Web getWeb(); + /** + * + * + *
+   * Grounding chunk from the web.
+   * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1; + */ + com.google.cloud.aiplatform.v1.GroundingChunk.WebOrBuilder getWebOrBuilder(); + + /** + * + * + *
+   * Grounding chunk from context retrieved by the retrieval tools.
+   * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + * @return Whether the retrievedContext field is set. + */ + boolean hasRetrievedContext(); + /** + * + * + *
+   * Grounding chunk from context retrieved by the retrieval tools.
+   * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + * @return The retrievedContext. + */ + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext getRetrievedContext(); + /** + * + * + *
+   * Grounding chunk from context retrieved by the retrieval tools.
+   * 
+ * + * .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2; + */ + com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContextOrBuilder + getRetrievedContextOrBuilder(); + + com.google.cloud.aiplatform.v1.GroundingChunk.ChunkTypeCase getChunkTypeCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java index a6df52e4a3cf..c9412c0b0f43 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java @@ -40,6 +40,8 @@ private GroundingMetadata(com.google.protobuf.GeneratedMessageV3.Builder buil private GroundingMetadata() { webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + groundingChunks_ = java.util.Collections.emptyList(); + groundingSupports_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -184,6 +186,161 @@ public com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder getSearchEntryPo : searchEntryPoint_; } + public static final int GROUNDING_CHUNKS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List groundingChunks_; + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + @java.lang.Override + public java.util.List getGroundingChunksList() { + return groundingChunks_; + } + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + @java.lang.Override + public java.util.List + getGroundingChunksOrBuilderList() { + return groundingChunks_; + } + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + @java.lang.Override + public int getGroundingChunksCount() { + return groundingChunks_.size(); + } + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunk getGroundingChunks(int index) { + return groundingChunks_.get(index); + } + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder getGroundingChunksOrBuilder( + int index) { + return groundingChunks_.get(index); + } + + public static final int GROUNDING_SUPPORTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List groundingSupports_; + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getGroundingSupportsList() { + return groundingSupports_; + } + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getGroundingSupportsOrBuilderList() { + return groundingSupports_; + } + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getGroundingSupportsCount() { + return groundingSupports_.size(); + } + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingSupport getGroundingSupports(int index) { + return groundingSupports_.get(index); + } + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingSupportOrBuilder getGroundingSupportsOrBuilder( + int index) { + return groundingSupports_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -204,6 +361,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getSearchEntryPoint()); } + for (int i = 0; i < groundingChunks_.size(); i++) { + output.writeMessage(5, groundingChunks_.get(i)); + } + for (int i = 0; i < groundingSupports_.size(); i++) { + output.writeMessage(6, groundingSupports_.get(i)); + } getUnknownFields().writeTo(output); } @@ -224,6 +387,13 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSearchEntryPoint()); } + for (int i = 0; i < groundingChunks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, groundingChunks_.get(i)); + } + for (int i = 0; i < groundingSupports_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, groundingSupports_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -245,6 +415,8 @@ public boolean equals(final java.lang.Object obj) { if (hasSearchEntryPoint()) { if (!getSearchEntryPoint().equals(other.getSearchEntryPoint())) return false; } + if (!getGroundingChunksList().equals(other.getGroundingChunksList())) return false; + if (!getGroundingSupportsList().equals(other.getGroundingSupportsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,6 +436,14 @@ public int hashCode() { hash = (37 * hash) + SEARCH_ENTRY_POINT_FIELD_NUMBER; hash = (53 * hash) + getSearchEntryPoint().hashCode(); } + if (getGroundingChunksCount() > 0) { + hash = (37 * hash) + GROUNDING_CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + getGroundingChunksList().hashCode(); + } + if (getGroundingSupportsCount() > 0) { + hash = (37 * hash) + GROUNDING_SUPPORTS_FIELD_NUMBER; + hash = (53 * hash) + getGroundingSupportsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -405,6 +585,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSearchEntryPointFieldBuilder(); + getGroundingChunksFieldBuilder(); + getGroundingSupportsFieldBuilder(); } } @@ -418,6 +600,20 @@ public Builder clear() { searchEntryPointBuilder_.dispose(); searchEntryPointBuilder_ = null; } + if (groundingChunksBuilder_ == null) { + groundingChunks_ = java.util.Collections.emptyList(); + } else { + groundingChunks_ = null; + groundingChunksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (groundingSupportsBuilder_ == null) { + groundingSupports_ = java.util.Collections.emptyList(); + } else { + groundingSupports_ = null; + groundingSupportsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -445,6 +641,7 @@ public com.google.cloud.aiplatform.v1.GroundingMetadata build() { public com.google.cloud.aiplatform.v1.GroundingMetadata buildPartial() { com.google.cloud.aiplatform.v1.GroundingMetadata result = new com.google.cloud.aiplatform.v1.GroundingMetadata(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -452,6 +649,28 @@ public com.google.cloud.aiplatform.v1.GroundingMetadata buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.GroundingMetadata result) { + if (groundingChunksBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + groundingChunks_ = java.util.Collections.unmodifiableList(groundingChunks_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.groundingChunks_ = groundingChunks_; + } else { + result.groundingChunks_ = groundingChunksBuilder_.build(); + } + if (groundingSupportsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + groundingSupports_ = java.util.Collections.unmodifiableList(groundingSupports_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.groundingSupports_ = groundingSupports_; + } else { + result.groundingSupports_ = groundingSupportsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.aiplatform.v1.GroundingMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -526,6 +745,60 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GroundingMetadata other) if (other.hasSearchEntryPoint()) { mergeSearchEntryPoint(other.getSearchEntryPoint()); } + if (groundingChunksBuilder_ == null) { + if (!other.groundingChunks_.isEmpty()) { + if (groundingChunks_.isEmpty()) { + groundingChunks_ = other.groundingChunks_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureGroundingChunksIsMutable(); + groundingChunks_.addAll(other.groundingChunks_); + } + onChanged(); + } + } else { + if (!other.groundingChunks_.isEmpty()) { + if (groundingChunksBuilder_.isEmpty()) { + groundingChunksBuilder_.dispose(); + groundingChunksBuilder_ = null; + groundingChunks_ = other.groundingChunks_; + bitField0_ = (bitField0_ & ~0x00000004); + groundingChunksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroundingChunksFieldBuilder() + : null; + } else { + groundingChunksBuilder_.addAllMessages(other.groundingChunks_); + } + } + } + if (groundingSupportsBuilder_ == null) { + if (!other.groundingSupports_.isEmpty()) { + if (groundingSupports_.isEmpty()) { + groundingSupports_ = other.groundingSupports_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureGroundingSupportsIsMutable(); + groundingSupports_.addAll(other.groundingSupports_); + } + onChanged(); + } + } else { + if (!other.groundingSupports_.isEmpty()) { + if (groundingSupportsBuilder_.isEmpty()) { + groundingSupportsBuilder_.dispose(); + groundingSupportsBuilder_ = null; + groundingSupports_ = other.groundingSupports_; + bitField0_ = (bitField0_ & ~0x00000008); + groundingSupportsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroundingSupportsFieldBuilder() + : null; + } else { + groundingSupportsBuilder_.addAllMessages(other.groundingSupports_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -566,6 +839,33 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 34 + case 42: + { + com.google.cloud.aiplatform.v1.GroundingChunk m = + input.readMessage( + com.google.cloud.aiplatform.v1.GroundingChunk.parser(), extensionRegistry); + if (groundingChunksBuilder_ == null) { + ensureGroundingChunksIsMutable(); + groundingChunks_.add(m); + } else { + groundingChunksBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + com.google.cloud.aiplatform.v1.GroundingSupport m = + input.readMessage( + com.google.cloud.aiplatform.v1.GroundingSupport.parser(), + extensionRegistry); + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(m); + } else { + groundingSupportsBuilder_.addMessage(m); + } + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -973,6 +1273,763 @@ public com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder getSearchEntryPo return searchEntryPointBuilder_; } + private java.util.List groundingChunks_ = + java.util.Collections.emptyList(); + + private void ensureGroundingChunksIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + groundingChunks_ = + new java.util.ArrayList( + groundingChunks_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.GroundingChunk, + com.google.cloud.aiplatform.v1.GroundingChunk.Builder, + com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder> + groundingChunksBuilder_; + + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public java.util.List getGroundingChunksList() { + if (groundingChunksBuilder_ == null) { + return java.util.Collections.unmodifiableList(groundingChunks_); + } else { + return groundingChunksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public int getGroundingChunksCount() { + if (groundingChunksBuilder_ == null) { + return groundingChunks_.size(); + } else { + return groundingChunksBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public com.google.cloud.aiplatform.v1.GroundingChunk getGroundingChunks(int index) { + if (groundingChunksBuilder_ == null) { + return groundingChunks_.get(index); + } else { + return groundingChunksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public Builder setGroundingChunks( + int index, com.google.cloud.aiplatform.v1.GroundingChunk value) { + if (groundingChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingChunksIsMutable(); + groundingChunks_.set(index, value); + onChanged(); + } else { + groundingChunksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public Builder setGroundingChunks( + int index, com.google.cloud.aiplatform.v1.GroundingChunk.Builder builderForValue) { + if (groundingChunksBuilder_ == null) { + ensureGroundingChunksIsMutable(); + groundingChunks_.set(index, builderForValue.build()); + onChanged(); + } else { + groundingChunksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public Builder addGroundingChunks(com.google.cloud.aiplatform.v1.GroundingChunk value) { + if (groundingChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingChunksIsMutable(); + groundingChunks_.add(value); + onChanged(); + } else { + groundingChunksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public Builder addGroundingChunks( + int index, com.google.cloud.aiplatform.v1.GroundingChunk value) { + if (groundingChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingChunksIsMutable(); + groundingChunks_.add(index, value); + onChanged(); + } else { + groundingChunksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public Builder addGroundingChunks( + com.google.cloud.aiplatform.v1.GroundingChunk.Builder builderForValue) { + if (groundingChunksBuilder_ == null) { + ensureGroundingChunksIsMutable(); + groundingChunks_.add(builderForValue.build()); + onChanged(); + } else { + groundingChunksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public Builder addGroundingChunks( + int index, com.google.cloud.aiplatform.v1.GroundingChunk.Builder builderForValue) { + if (groundingChunksBuilder_ == null) { + ensureGroundingChunksIsMutable(); + groundingChunks_.add(index, builderForValue.build()); + onChanged(); + } else { + groundingChunksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public Builder addAllGroundingChunks( + java.lang.Iterable values) { + if (groundingChunksBuilder_ == null) { + ensureGroundingChunksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingChunks_); + onChanged(); + } else { + groundingChunksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public Builder clearGroundingChunks() { + if (groundingChunksBuilder_ == null) { + groundingChunks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + groundingChunksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public Builder removeGroundingChunks(int index) { + if (groundingChunksBuilder_ == null) { + ensureGroundingChunksIsMutable(); + groundingChunks_.remove(index); + onChanged(); + } else { + groundingChunksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public com.google.cloud.aiplatform.v1.GroundingChunk.Builder getGroundingChunksBuilder( + int index) { + return getGroundingChunksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder getGroundingChunksOrBuilder( + int index) { + if (groundingChunksBuilder_ == null) { + return groundingChunks_.get(index); + } else { + return groundingChunksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public java.util.List + getGroundingChunksOrBuilderList() { + if (groundingChunksBuilder_ != null) { + return groundingChunksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groundingChunks_); + } + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public com.google.cloud.aiplatform.v1.GroundingChunk.Builder addGroundingChunksBuilder() { + return getGroundingChunksFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.GroundingChunk.getDefaultInstance()); + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public com.google.cloud.aiplatform.v1.GroundingChunk.Builder addGroundingChunksBuilder( + int index) { + return getGroundingChunksFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.GroundingChunk.getDefaultInstance()); + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + public java.util.List + getGroundingChunksBuilderList() { + return getGroundingChunksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.GroundingChunk, + com.google.cloud.aiplatform.v1.GroundingChunk.Builder, + com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder> + getGroundingChunksFieldBuilder() { + if (groundingChunksBuilder_ == null) { + groundingChunksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.GroundingChunk, + com.google.cloud.aiplatform.v1.GroundingChunk.Builder, + com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder>( + groundingChunks_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + groundingChunks_ = null; + } + return groundingChunksBuilder_; + } + + private java.util.List groundingSupports_ = + java.util.Collections.emptyList(); + + private void ensureGroundingSupportsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + groundingSupports_ = + new java.util.ArrayList( + groundingSupports_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.GroundingSupport, + com.google.cloud.aiplatform.v1.GroundingSupport.Builder, + com.google.cloud.aiplatform.v1.GroundingSupportOrBuilder> + groundingSupportsBuilder_; + + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getGroundingSupportsList() { + if (groundingSupportsBuilder_ == null) { + return java.util.Collections.unmodifiableList(groundingSupports_); + } else { + return groundingSupportsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getGroundingSupportsCount() { + if (groundingSupportsBuilder_ == null) { + return groundingSupports_.size(); + } else { + return groundingSupportsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.GroundingSupport getGroundingSupports(int index) { + if (groundingSupportsBuilder_ == null) { + return groundingSupports_.get(index); + } else { + return groundingSupportsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroundingSupports( + int index, com.google.cloud.aiplatform.v1.GroundingSupport value) { + if (groundingSupportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSupportsIsMutable(); + groundingSupports_.set(index, value); + onChanged(); + } else { + groundingSupportsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroundingSupports( + int index, com.google.cloud.aiplatform.v1.GroundingSupport.Builder builderForValue) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.set(index, builderForValue.build()); + onChanged(); + } else { + groundingSupportsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroundingSupports(com.google.cloud.aiplatform.v1.GroundingSupport value) { + if (groundingSupportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(value); + onChanged(); + } else { + groundingSupportsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroundingSupports( + int index, com.google.cloud.aiplatform.v1.GroundingSupport value) { + if (groundingSupportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(index, value); + onChanged(); + } else { + groundingSupportsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroundingSupports( + com.google.cloud.aiplatform.v1.GroundingSupport.Builder builderForValue) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(builderForValue.build()); + onChanged(); + } else { + groundingSupportsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroundingSupports( + int index, com.google.cloud.aiplatform.v1.GroundingSupport.Builder builderForValue) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(index, builderForValue.build()); + onChanged(); + } else { + groundingSupportsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllGroundingSupports( + java.lang.Iterable values) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingSupports_); + onChanged(); + } else { + groundingSupportsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGroundingSupports() { + if (groundingSupportsBuilder_ == null) { + groundingSupports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + groundingSupportsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeGroundingSupports(int index) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.remove(index); + onChanged(); + } else { + groundingSupportsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.GroundingSupport.Builder getGroundingSupportsBuilder( + int index) { + return getGroundingSupportsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.GroundingSupportOrBuilder getGroundingSupportsOrBuilder( + int index) { + if (groundingSupportsBuilder_ == null) { + return groundingSupports_.get(index); + } else { + return groundingSupportsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getGroundingSupportsOrBuilderList() { + if (groundingSupportsBuilder_ != null) { + return groundingSupportsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groundingSupports_); + } + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.GroundingSupport.Builder addGroundingSupportsBuilder() { + return getGroundingSupportsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.GroundingSupport.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.GroundingSupport.Builder addGroundingSupportsBuilder( + int index) { + return getGroundingSupportsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.GroundingSupport.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getGroundingSupportsBuilderList() { + return getGroundingSupportsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.GroundingSupport, + com.google.cloud.aiplatform.v1.GroundingSupport.Builder, + com.google.cloud.aiplatform.v1.GroundingSupportOrBuilder> + getGroundingSupportsFieldBuilder() { + if (groundingSupportsBuilder_ == null) { + groundingSupportsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.GroundingSupport, + com.google.cloud.aiplatform.v1.GroundingSupport.Builder, + com.google.cloud.aiplatform.v1.GroundingSupportOrBuilder>( + groundingSupports_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + groundingSupports_ = null; + } + return groundingSupportsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadataOrBuilder.java index e0391e16d464..c37ec427179e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadataOrBuilder.java @@ -115,4 +115,118 @@ public interface GroundingMetadataOrBuilder *
*/ com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder(); + + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + java.util.List getGroundingChunksList(); + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + com.google.cloud.aiplatform.v1.GroundingChunk getGroundingChunks(int index); + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + int getGroundingChunksCount(); + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + java.util.List + getGroundingChunksOrBuilderList(); + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5; + */ + com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder getGroundingChunksOrBuilder(int index); + + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getGroundingSupportsList(); + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.GroundingSupport getGroundingSupports(int index); + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getGroundingSupportsCount(); + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getGroundingSupportsOrBuilderList(); + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.GroundingSupportOrBuilder getGroundingSupportsOrBuilder(int index); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingSupport.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingSupport.java new file mode 100644 index 000000000000..714654d805ab --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingSupport.java @@ -0,0 +1,1262 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Grounding support.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GroundingSupport} + */ +public final class GroundingSupport extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GroundingSupport) + GroundingSupportOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroundingSupport.newBuilder() to construct. + private GroundingSupport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroundingSupport() { + groundingChunkIndices_ = emptyIntList(); + confidenceScores_ = emptyFloatList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroundingSupport(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingSupport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingSupport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GroundingSupport.class, + com.google.cloud.aiplatform.v1.GroundingSupport.Builder.class); + } + + private int bitField0_; + public static final int SEGMENT_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.Segment segment_; + /** + * + * + *
+   * Segment of the content this support belongs to.
+   * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + * + * @return Whether the segment field is set. + */ + @java.lang.Override + public boolean hasSegment() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Segment of the content this support belongs to.
+   * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + * + * @return The segment. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Segment getSegment() { + return segment_ == null + ? com.google.cloud.aiplatform.v1.Segment.getDefaultInstance() + : segment_; + } + /** + * + * + *
+   * Segment of the content this support belongs to.
+   * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SegmentOrBuilder getSegmentOrBuilder() { + return segment_ == null + ? com.google.cloud.aiplatform.v1.Segment.getDefaultInstance() + : segment_; + } + + public static final int GROUNDING_CHUNK_INDICES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList groundingChunkIndices_ = emptyIntList(); + /** + * + * + *
+   * A list of indices (into 'grounding_chunk') specifying the
+   * citations associated with the claim. For instance [1,3,4] means
+   * that grounding_chunk[1], grounding_chunk[3],
+   * grounding_chunk[4] are the retrieved content attributed to the claim.
+   * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @return A list containing the groundingChunkIndices. + */ + @java.lang.Override + public java.util.List getGroundingChunkIndicesList() { + return groundingChunkIndices_; + } + /** + * + * + *
+   * A list of indices (into 'grounding_chunk') specifying the
+   * citations associated with the claim. For instance [1,3,4] means
+   * that grounding_chunk[1], grounding_chunk[3],
+   * grounding_chunk[4] are the retrieved content attributed to the claim.
+   * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @return The count of groundingChunkIndices. + */ + public int getGroundingChunkIndicesCount() { + return groundingChunkIndices_.size(); + } + /** + * + * + *
+   * A list of indices (into 'grounding_chunk') specifying the
+   * citations associated with the claim. For instance [1,3,4] means
+   * that grounding_chunk[1], grounding_chunk[3],
+   * grounding_chunk[4] are the retrieved content attributed to the claim.
+   * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @param index The index of the element to return. + * @return The groundingChunkIndices at the given index. + */ + public int getGroundingChunkIndices(int index) { + return groundingChunkIndices_.getInt(index); + } + + private int groundingChunkIndicesMemoizedSerializedSize = -1; + + public static final int CONFIDENCE_SCORES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList confidenceScores_ = emptyFloatList(); + /** + * + * + *
+   * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+   * most confident. This list must have the same size as the
+   * grounding_chunk_indices.
+   * 
+ * + * repeated float confidence_scores = 3; + * + * @return A list containing the confidenceScores. + */ + @java.lang.Override + public java.util.List getConfidenceScoresList() { + return confidenceScores_; + } + /** + * + * + *
+   * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+   * most confident. This list must have the same size as the
+   * grounding_chunk_indices.
+   * 
+ * + * repeated float confidence_scores = 3; + * + * @return The count of confidenceScores. + */ + public int getConfidenceScoresCount() { + return confidenceScores_.size(); + } + /** + * + * + *
+   * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+   * most confident. This list must have the same size as the
+   * grounding_chunk_indices.
+   * 
+ * + * repeated float confidence_scores = 3; + * + * @param index The index of the element to return. + * @return The confidenceScores at the given index. + */ + public float getConfidenceScores(int index) { + return confidenceScores_.getFloat(index); + } + + private int confidenceScoresMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSegment()); + } + if (getGroundingChunkIndicesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(groundingChunkIndicesMemoizedSerializedSize); + } + for (int i = 0; i < groundingChunkIndices_.size(); i++) { + output.writeInt32NoTag(groundingChunkIndices_.getInt(i)); + } + if (getConfidenceScoresList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(confidenceScoresMemoizedSerializedSize); + } + for (int i = 0; i < confidenceScores_.size(); i++) { + output.writeFloatNoTag(confidenceScores_.getFloat(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSegment()); + } + { + int dataSize = 0; + for (int i = 0; i < groundingChunkIndices_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + groundingChunkIndices_.getInt(i)); + } + size += dataSize; + if (!getGroundingChunkIndicesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + groundingChunkIndicesMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 4 * getConfidenceScoresList().size(); + size += dataSize; + if (!getConfidenceScoresList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + confidenceScoresMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.GroundingSupport)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.GroundingSupport other = + (com.google.cloud.aiplatform.v1.GroundingSupport) obj; + + if (hasSegment() != other.hasSegment()) return false; + if (hasSegment()) { + if (!getSegment().equals(other.getSegment())) return false; + } + if (!getGroundingChunkIndicesList().equals(other.getGroundingChunkIndicesList())) return false; + if (!getConfidenceScoresList().equals(other.getConfidenceScoresList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSegment()) { + hash = (37 * hash) + SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getSegment().hashCode(); + } + if (getGroundingChunkIndicesCount() > 0) { + hash = (37 * hash) + GROUNDING_CHUNK_INDICES_FIELD_NUMBER; + hash = (53 * hash) + getGroundingChunkIndicesList().hashCode(); + } + if (getConfidenceScoresCount() > 0) { + hash = (37 * hash) + CONFIDENCE_SCORES_FIELD_NUMBER; + hash = (53 * hash) + getConfidenceScoresList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.GroundingSupport parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GroundingSupport parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingSupport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GroundingSupport parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingSupport parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GroundingSupport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingSupport parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GroundingSupport parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingSupport parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GroundingSupport parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GroundingSupport parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GroundingSupport parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.GroundingSupport prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Grounding support.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GroundingSupport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GroundingSupport) + com.google.cloud.aiplatform.v1.GroundingSupportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingSupport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingSupport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GroundingSupport.class, + com.google.cloud.aiplatform.v1.GroundingSupport.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.GroundingSupport.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSegmentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + segment_ = null; + if (segmentBuilder_ != null) { + segmentBuilder_.dispose(); + segmentBuilder_ = null; + } + groundingChunkIndices_ = emptyIntList(); + confidenceScores_ = emptyFloatList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingSupport_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingSupport getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.GroundingSupport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingSupport build() { + com.google.cloud.aiplatform.v1.GroundingSupport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingSupport buildPartial() { + com.google.cloud.aiplatform.v1.GroundingSupport result = + new com.google.cloud.aiplatform.v1.GroundingSupport(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.GroundingSupport result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.segment_ = segmentBuilder_ == null ? segment_ : segmentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + groundingChunkIndices_.makeImmutable(); + result.groundingChunkIndices_ = groundingChunkIndices_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + confidenceScores_.makeImmutable(); + result.confidenceScores_ = confidenceScores_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.GroundingSupport) { + return mergeFrom((com.google.cloud.aiplatform.v1.GroundingSupport) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.GroundingSupport other) { + if (other == com.google.cloud.aiplatform.v1.GroundingSupport.getDefaultInstance()) + return this; + if (other.hasSegment()) { + mergeSegment(other.getSegment()); + } + if (!other.groundingChunkIndices_.isEmpty()) { + if (groundingChunkIndices_.isEmpty()) { + groundingChunkIndices_ = other.groundingChunkIndices_; + groundingChunkIndices_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureGroundingChunkIndicesIsMutable(); + groundingChunkIndices_.addAll(other.groundingChunkIndices_); + } + onChanged(); + } + if (!other.confidenceScores_.isEmpty()) { + if (confidenceScores_.isEmpty()) { + confidenceScores_ = other.confidenceScores_; + confidenceScores_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureConfidenceScoresIsMutable(); + confidenceScores_.addAll(other.confidenceScores_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSegmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + int v = input.readInt32(); + ensureGroundingChunkIndicesIsMutable(); + groundingChunkIndices_.addInt(v); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureGroundingChunkIndicesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + groundingChunkIndices_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 18 + case 29: + { + float v = input.readFloat(); + ensureConfidenceScoresIsMutable(); + confidenceScores_.addFloat(v); + break; + } // case 29 + case 26: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureConfidenceScoresIsMutable(alloc / 4); + while (input.getBytesUntilLimit() > 0) { + confidenceScores_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.Segment segment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Segment, + com.google.cloud.aiplatform.v1.Segment.Builder, + com.google.cloud.aiplatform.v1.SegmentOrBuilder> + segmentBuilder_; + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + * + * @return Whether the segment field is set. + */ + public boolean hasSegment() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + * + * @return The segment. + */ + public com.google.cloud.aiplatform.v1.Segment getSegment() { + if (segmentBuilder_ == null) { + return segment_ == null + ? com.google.cloud.aiplatform.v1.Segment.getDefaultInstance() + : segment_; + } else { + return segmentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + */ + public Builder setSegment(com.google.cloud.aiplatform.v1.Segment value) { + if (segmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segment_ = value; + } else { + segmentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + */ + public Builder setSegment(com.google.cloud.aiplatform.v1.Segment.Builder builderForValue) { + if (segmentBuilder_ == null) { + segment_ = builderForValue.build(); + } else { + segmentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + */ + public Builder mergeSegment(com.google.cloud.aiplatform.v1.Segment value) { + if (segmentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && segment_ != null + && segment_ != com.google.cloud.aiplatform.v1.Segment.getDefaultInstance()) { + getSegmentBuilder().mergeFrom(value); + } else { + segment_ = value; + } + } else { + segmentBuilder_.mergeFrom(value); + } + if (segment_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + */ + public Builder clearSegment() { + bitField0_ = (bitField0_ & ~0x00000001); + segment_ = null; + if (segmentBuilder_ != null) { + segmentBuilder_.dispose(); + segmentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + */ + public com.google.cloud.aiplatform.v1.Segment.Builder getSegmentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSegmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + */ + public com.google.cloud.aiplatform.v1.SegmentOrBuilder getSegmentOrBuilder() { + if (segmentBuilder_ != null) { + return segmentBuilder_.getMessageOrBuilder(); + } else { + return segment_ == null + ? com.google.cloud.aiplatform.v1.Segment.getDefaultInstance() + : segment_; + } + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Segment, + com.google.cloud.aiplatform.v1.Segment.Builder, + com.google.cloud.aiplatform.v1.SegmentOrBuilder> + getSegmentFieldBuilder() { + if (segmentBuilder_ == null) { + segmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Segment, + com.google.cloud.aiplatform.v1.Segment.Builder, + com.google.cloud.aiplatform.v1.SegmentOrBuilder>( + getSegment(), getParentForChildren(), isClean()); + segment_ = null; + } + return segmentBuilder_; + } + + private com.google.protobuf.Internal.IntList groundingChunkIndices_ = emptyIntList(); + + private void ensureGroundingChunkIndicesIsMutable() { + if (!groundingChunkIndices_.isModifiable()) { + groundingChunkIndices_ = makeMutableCopy(groundingChunkIndices_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * A list of indices (into 'grounding_chunk') specifying the
+     * citations associated with the claim. For instance [1,3,4] means
+     * that grounding_chunk[1], grounding_chunk[3],
+     * grounding_chunk[4] are the retrieved content attributed to the claim.
+     * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @return A list containing the groundingChunkIndices. + */ + public java.util.List getGroundingChunkIndicesList() { + groundingChunkIndices_.makeImmutable(); + return groundingChunkIndices_; + } + /** + * + * + *
+     * A list of indices (into 'grounding_chunk') specifying the
+     * citations associated with the claim. For instance [1,3,4] means
+     * that grounding_chunk[1], grounding_chunk[3],
+     * grounding_chunk[4] are the retrieved content attributed to the claim.
+     * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @return The count of groundingChunkIndices. + */ + public int getGroundingChunkIndicesCount() { + return groundingChunkIndices_.size(); + } + /** + * + * + *
+     * A list of indices (into 'grounding_chunk') specifying the
+     * citations associated with the claim. For instance [1,3,4] means
+     * that grounding_chunk[1], grounding_chunk[3],
+     * grounding_chunk[4] are the retrieved content attributed to the claim.
+     * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @param index The index of the element to return. + * @return The groundingChunkIndices at the given index. + */ + public int getGroundingChunkIndices(int index) { + return groundingChunkIndices_.getInt(index); + } + /** + * + * + *
+     * A list of indices (into 'grounding_chunk') specifying the
+     * citations associated with the claim. For instance [1,3,4] means
+     * that grounding_chunk[1], grounding_chunk[3],
+     * grounding_chunk[4] are the retrieved content attributed to the claim.
+     * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @param index The index to set the value at. + * @param value The groundingChunkIndices to set. + * @return This builder for chaining. + */ + public Builder setGroundingChunkIndices(int index, int value) { + + ensureGroundingChunkIndicesIsMutable(); + groundingChunkIndices_.setInt(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of indices (into 'grounding_chunk') specifying the
+     * citations associated with the claim. For instance [1,3,4] means
+     * that grounding_chunk[1], grounding_chunk[3],
+     * grounding_chunk[4] are the retrieved content attributed to the claim.
+     * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @param value The groundingChunkIndices to add. + * @return This builder for chaining. + */ + public Builder addGroundingChunkIndices(int value) { + + ensureGroundingChunkIndicesIsMutable(); + groundingChunkIndices_.addInt(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of indices (into 'grounding_chunk') specifying the
+     * citations associated with the claim. For instance [1,3,4] means
+     * that grounding_chunk[1], grounding_chunk[3],
+     * grounding_chunk[4] are the retrieved content attributed to the claim.
+     * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @param values The groundingChunkIndices to add. + * @return This builder for chaining. + */ + public Builder addAllGroundingChunkIndices( + java.lang.Iterable values) { + ensureGroundingChunkIndicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingChunkIndices_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of indices (into 'grounding_chunk') specifying the
+     * citations associated with the claim. For instance [1,3,4] means
+     * that grounding_chunk[1], grounding_chunk[3],
+     * grounding_chunk[4] are the retrieved content attributed to the claim.
+     * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @return This builder for chaining. + */ + public Builder clearGroundingChunkIndices() { + groundingChunkIndices_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.FloatList confidenceScores_ = emptyFloatList(); + + private void ensureConfidenceScoresIsMutable() { + if (!confidenceScores_.isModifiable()) { + confidenceScores_ = makeMutableCopy(confidenceScores_); + } + bitField0_ |= 0x00000004; + } + + private void ensureConfidenceScoresIsMutable(int capacity) { + if (!confidenceScores_.isModifiable()) { + confidenceScores_ = makeMutableCopy(confidenceScores_, capacity); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+     * most confident. This list must have the same size as the
+     * grounding_chunk_indices.
+     * 
+ * + * repeated float confidence_scores = 3; + * + * @return A list containing the confidenceScores. + */ + public java.util.List getConfidenceScoresList() { + confidenceScores_.makeImmutable(); + return confidenceScores_; + } + /** + * + * + *
+     * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+     * most confident. This list must have the same size as the
+     * grounding_chunk_indices.
+     * 
+ * + * repeated float confidence_scores = 3; + * + * @return The count of confidenceScores. + */ + public int getConfidenceScoresCount() { + return confidenceScores_.size(); + } + /** + * + * + *
+     * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+     * most confident. This list must have the same size as the
+     * grounding_chunk_indices.
+     * 
+ * + * repeated float confidence_scores = 3; + * + * @param index The index of the element to return. + * @return The confidenceScores at the given index. + */ + public float getConfidenceScores(int index) { + return confidenceScores_.getFloat(index); + } + /** + * + * + *
+     * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+     * most confident. This list must have the same size as the
+     * grounding_chunk_indices.
+     * 
+ * + * repeated float confidence_scores = 3; + * + * @param index The index to set the value at. + * @param value The confidenceScores to set. + * @return This builder for chaining. + */ + public Builder setConfidenceScores(int index, float value) { + + ensureConfidenceScoresIsMutable(); + confidenceScores_.setFloat(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+     * most confident. This list must have the same size as the
+     * grounding_chunk_indices.
+     * 
+ * + * repeated float confidence_scores = 3; + * + * @param value The confidenceScores to add. + * @return This builder for chaining. + */ + public Builder addConfidenceScores(float value) { + + ensureConfidenceScoresIsMutable(); + confidenceScores_.addFloat(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+     * most confident. This list must have the same size as the
+     * grounding_chunk_indices.
+     * 
+ * + * repeated float confidence_scores = 3; + * + * @param values The confidenceScores to add. + * @return This builder for chaining. + */ + public Builder addAllConfidenceScores(java.lang.Iterable values) { + ensureConfidenceScoresIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceScores_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+     * most confident. This list must have the same size as the
+     * grounding_chunk_indices.
+     * 
+ * + * repeated float confidence_scores = 3; + * + * @return This builder for chaining. + */ + public Builder clearConfidenceScores() { + confidenceScores_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GroundingSupport) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GroundingSupport) + private static final com.google.cloud.aiplatform.v1.GroundingSupport DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GroundingSupport(); + } + + public static com.google.cloud.aiplatform.v1.GroundingSupport getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroundingSupport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GroundingSupport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingSupportOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingSupportOrBuilder.java new file mode 100644 index 000000000000..bddb08e78823 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingSupportOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +public interface GroundingSupportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GroundingSupport) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Segment of the content this support belongs to.
+   * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + * + * @return Whether the segment field is set. + */ + boolean hasSegment(); + /** + * + * + *
+   * Segment of the content this support belongs to.
+   * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + * + * @return The segment. + */ + com.google.cloud.aiplatform.v1.Segment getSegment(); + /** + * + * + *
+   * Segment of the content this support belongs to.
+   * 
+ * + * optional .google.cloud.aiplatform.v1.Segment segment = 1; + */ + com.google.cloud.aiplatform.v1.SegmentOrBuilder getSegmentOrBuilder(); + + /** + * + * + *
+   * A list of indices (into 'grounding_chunk') specifying the
+   * citations associated with the claim. For instance [1,3,4] means
+   * that grounding_chunk[1], grounding_chunk[3],
+   * grounding_chunk[4] are the retrieved content attributed to the claim.
+   * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @return A list containing the groundingChunkIndices. + */ + java.util.List getGroundingChunkIndicesList(); + /** + * + * + *
+   * A list of indices (into 'grounding_chunk') specifying the
+   * citations associated with the claim. For instance [1,3,4] means
+   * that grounding_chunk[1], grounding_chunk[3],
+   * grounding_chunk[4] are the retrieved content attributed to the claim.
+   * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @return The count of groundingChunkIndices. + */ + int getGroundingChunkIndicesCount(); + /** + * + * + *
+   * A list of indices (into 'grounding_chunk') specifying the
+   * citations associated with the claim. For instance [1,3,4] means
+   * that grounding_chunk[1], grounding_chunk[3],
+   * grounding_chunk[4] are the retrieved content attributed to the claim.
+   * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @param index The index of the element to return. + * @return The groundingChunkIndices at the given index. + */ + int getGroundingChunkIndices(int index); + + /** + * + * + *
+   * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+   * most confident. This list must have the same size as the
+   * grounding_chunk_indices.
+   * 
+ * + * repeated float confidence_scores = 3; + * + * @return A list containing the confidenceScores. + */ + java.util.List getConfidenceScoresList(); + /** + * + * + *
+   * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+   * most confident. This list must have the same size as the
+   * grounding_chunk_indices.
+   * 
+ * + * repeated float confidence_scores = 3; + * + * @return The count of confidenceScores. + */ + int getConfidenceScoresCount(); + /** + * + * + *
+   * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+   * most confident. This list must have the same size as the
+   * grounding_chunk_indices.
+   * 
+ * + * repeated float confidence_scores = 3; + * + * @param index The index of the element to return. + * @return The confidenceScores at the given index. + */ + float getConfidenceScores(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListNotebookExecutionJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListNotebookExecutionJobsRequest.java new file mode 100644 index 000000000000..509de3cf2708 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListNotebookExecutionJobsRequest.java @@ -0,0 +1,1627 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [NotebookService.ListNotebookExecutionJobs]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest} + */ +public final class ListNotebookExecutionJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest) + ListNotebookExecutionJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNotebookExecutionJobsRequest.newBuilder() to construct. + private ListNotebookExecutionJobsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNotebookExecutionJobsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + view_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListNotebookExecutionJobsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest.class, + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the Location from which to list the
+   * NotebookExecutionJobs.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Location from which to list the
+   * NotebookExecutionJobs.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. For field
+   * names both snake_case and camelCase are supported.
+   *
+   *   * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+   *   represents the NotebookExecutionJob ID.
+   *   * `displayName` supports = and != and regex.
+   *   * `schedule` supports = and != and regex.
+   *
+   * Some examples:
+   *   * `notebookExecutionJob="123"`
+   *   * `notebookExecutionJob="my-execution-job"`
+   *   * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. For field
+   * names both snake_case and camelCase are supported.
+   *
+   *   * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+   *   represents the NotebookExecutionJob ID.
+   *   * `displayName` supports = and != and regex.
+   *   * `schedule` supports = and != and regex.
+   *
+   * Some examples:
+   *   * `notebookExecutionJob="123"`
+   *   * `notebookExecutionJob="my-execution-job"`
+   *   * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListNotebookExecutionJobs.next_page_token][] of the previous
+   * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs]
+   * call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListNotebookExecutionJobs.next_page_token][] of the previous
+   * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs]
+   * call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending. Supported fields:
+   *
+   *   * `display_name`
+   *   * `create_time`
+   *   * `update_time`
+   *
+   * Example: `display_name, create_time desc`.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending. Supported fields:
+   *
+   *   * `display_name`
+   *   * `create_time`
+   *   * `update_time`
+   *
+   * Example: `display_name, create_time desc`.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_FIELD_NUMBER = 6; + private int view_ = 0; + /** + * + * + *
+   * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+   * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJobView getView() { + com.google.cloud.aiplatform.v1.NotebookExecutionJobView result = + com.google.cloud.aiplatform.v1.NotebookExecutionJobView.forNumber(view_); + return result == null + ? com.google.cloud.aiplatform.v1.NotebookExecutionJobView.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (view_ + != com.google.cloud.aiplatform.v1.NotebookExecutionJobView + .NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, view_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (view_ + != com.google.cloud.aiplatform.v1.NotebookExecutionJobView + .NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, view_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest other = + (com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (view_ != other.view_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [NotebookService.ListNotebookExecutionJobs]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest) + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest.class, + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + view_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest build() { + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest buildPartial() { + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest result = + new com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.view_ = view_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest other) { + if (other + == com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Location from which to list the
+     * NotebookExecutionJobs.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Location from which to list the
+     * NotebookExecutionJobs.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Location from which to list the
+     * NotebookExecutionJobs.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location from which to list the
+     * NotebookExecutionJobs.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location from which to list the
+     * NotebookExecutionJobs.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. For field
+     * names both snake_case and camelCase are supported.
+     *
+     *   * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+     *   represents the NotebookExecutionJob ID.
+     *   * `displayName` supports = and != and regex.
+     *   * `schedule` supports = and != and regex.
+     *
+     * Some examples:
+     *   * `notebookExecutionJob="123"`
+     *   * `notebookExecutionJob="my-execution-job"`
+     *   * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. For field
+     * names both snake_case and camelCase are supported.
+     *
+     *   * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+     *   represents the NotebookExecutionJob ID.
+     *   * `displayName` supports = and != and regex.
+     *   * `schedule` supports = and != and regex.
+     *
+     * Some examples:
+     *   * `notebookExecutionJob="123"`
+     *   * `notebookExecutionJob="my-execution-job"`
+     *   * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. For field
+     * names both snake_case and camelCase are supported.
+     *
+     *   * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+     *   represents the NotebookExecutionJob ID.
+     *   * `displayName` supports = and != and regex.
+     *   * `schedule` supports = and != and regex.
+     *
+     * Some examples:
+     *   * `notebookExecutionJob="123"`
+     *   * `notebookExecutionJob="my-execution-job"`
+     *   * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. For field
+     * names both snake_case and camelCase are supported.
+     *
+     *   * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+     *   represents the NotebookExecutionJob ID.
+     *   * `displayName` supports = and != and regex.
+     *   * `schedule` supports = and != and regex.
+     *
+     * Some examples:
+     *   * `notebookExecutionJob="123"`
+     *   * `notebookExecutionJob="my-execution-job"`
+     *   * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An expression for filtering the results of the request. For field
+     * names both snake_case and camelCase are supported.
+     *
+     *   * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+     *   represents the NotebookExecutionJob ID.
+     *   * `displayName` supports = and != and regex.
+     *   * `schedule` supports = and != and regex.
+     *
+     * Some examples:
+     *   * `notebookExecutionJob="123"`
+     *   * `notebookExecutionJob="my-execution-job"`
+     *   * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListNotebookExecutionJobs.next_page_token][] of the previous
+     * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs]
+     * call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListNotebookExecutionJobs.next_page_token][] of the previous
+     * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs]
+     * call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListNotebookExecutionJobs.next_page_token][] of the previous
+     * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs]
+     * call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListNotebookExecutionJobs.next_page_token][] of the previous
+     * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs]
+     * call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListNotebookExecutionJobs.next_page_token][] of the previous
+     * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs]
+     * call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending. Supported fields:
+     *
+     *   * `display_name`
+     *   * `create_time`
+     *   * `update_time`
+     *
+     * Example: `display_name, create_time desc`.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending. Supported fields:
+     *
+     *   * `display_name`
+     *   * `create_time`
+     *   * `update_time`
+     *
+     * Example: `display_name, create_time desc`.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending. Supported fields:
+     *
+     *   * `display_name`
+     *   * `create_time`
+     *   * `update_time`
+     *
+     * Example: `display_name, create_time desc`.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending. Supported fields:
+     *
+     *   * `display_name`
+     *   * `create_time`
+     *   * `update_time`
+     *
+     * Example: `display_name, create_time desc`.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending. Supported fields:
+     *
+     *   * `display_name`
+     *   * `create_time`
+     *   * `update_time`
+     *
+     * Example: `display_name, create_time desc`.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int view_ = 0; + /** + * + * + *
+     * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+     * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJobView getView() { + com.google.cloud.aiplatform.v1.NotebookExecutionJobView result = + com.google.cloud.aiplatform.v1.NotebookExecutionJobView.forNumber(view_); + return result == null + ? com.google.cloud.aiplatform.v1.NotebookExecutionJobView.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.aiplatform.v1.NotebookExecutionJobView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000020); + view_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest) + private static final com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest(); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotebookExecutionJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListNotebookExecutionJobsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListNotebookExecutionJobsRequestOrBuilder.java new file mode 100644 index 000000000000..084e64bdec1b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListNotebookExecutionJobsRequestOrBuilder.java @@ -0,0 +1,220 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +public interface ListNotebookExecutionJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location from which to list the
+   * NotebookExecutionJobs.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the Location from which to list the
+   * NotebookExecutionJobs.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. For field
+   * names both snake_case and camelCase are supported.
+   *
+   *   * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+   *   represents the NotebookExecutionJob ID.
+   *   * `displayName` supports = and != and regex.
+   *   * `schedule` supports = and != and regex.
+   *
+   * Some examples:
+   *   * `notebookExecutionJob="123"`
+   *   * `notebookExecutionJob="my-execution-job"`
+   *   * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. An expression for filtering the results of the request. For field
+   * names both snake_case and camelCase are supported.
+   *
+   *   * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+   *   represents the NotebookExecutionJob ID.
+   *   * `displayName` supports = and != and regex.
+   *   * `schedule` supports = and != and regex.
+   *
+   * Some examples:
+   *   * `notebookExecutionJob="123"`
+   *   * `notebookExecutionJob="my-execution-job"`
+   *   * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListNotebookExecutionJobs.next_page_token][] of the previous
+   * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs]
+   * call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListNotebookExecutionJobs.next_page_token][] of the previous
+   * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs]
+   * call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending. Supported fields:
+   *
+   *   * `display_name`
+   *   * `create_time`
+   *   * `update_time`
+   *
+   * Example: `display_name, create_time desc`.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending. Supported fields:
+   *
+   *   * `display_name`
+   *   * `create_time`
+   *   * `update_time`
+   *
+   * Example: `display_name, create_time desc`.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
+   * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJobView getView(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListNotebookExecutionJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListNotebookExecutionJobsResponse.java new file mode 100644 index 000000000000..d2724f8fc2f8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListNotebookExecutionJobsResponse.java @@ -0,0 +1,1185 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for [NotebookService.CreateNotebookExecutionJob]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse} + */ +public final class ListNotebookExecutionJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse) + ListNotebookExecutionJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNotebookExecutionJobsResponse.newBuilder() to construct. + private ListNotebookExecutionJobsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNotebookExecutionJobsResponse() { + notebookExecutionJobs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListNotebookExecutionJobsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.class, + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.Builder.class); + } + + public static final int NOTEBOOK_EXECUTION_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + notebookExecutionJobs_; + /** + * + * + *
+   * List of NotebookExecutionJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + @java.lang.Override + public java.util.List + getNotebookExecutionJobsList() { + return notebookExecutionJobs_; + } + /** + * + * + *
+   * List of NotebookExecutionJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + @java.lang.Override + public java.util.List + getNotebookExecutionJobsOrBuilderList() { + return notebookExecutionJobs_; + } + /** + * + * + *
+   * List of NotebookExecutionJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + @java.lang.Override + public int getNotebookExecutionJobsCount() { + return notebookExecutionJobs_.size(); + } + /** + * + * + *
+   * List of NotebookExecutionJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob getNotebookExecutionJobs(int index) { + return notebookExecutionJobs_.get(index); + } + /** + * + * + *
+   * List of NotebookExecutionJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJobOrBuilder + getNotebookExecutionJobsOrBuilder(int index) { + return notebookExecutionJobs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListNotebookExecutionJobs.page_token][] to obtain that
+   * page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListNotebookExecutionJobs.page_token][] to obtain that
+   * page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < notebookExecutionJobs_.size(); i++) { + output.writeMessage(1, notebookExecutionJobs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < notebookExecutionJobs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, notebookExecutionJobs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse other = + (com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse) obj; + + if (!getNotebookExecutionJobsList().equals(other.getNotebookExecutionJobsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNotebookExecutionJobsCount() > 0) { + hash = (37 * hash) + NOTEBOOK_EXECUTION_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getNotebookExecutionJobsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for [NotebookService.CreateNotebookExecutionJob]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse) + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.class, + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (notebookExecutionJobsBuilder_ == null) { + notebookExecutionJobs_ = java.util.Collections.emptyList(); + } else { + notebookExecutionJobs_ = null; + notebookExecutionJobsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto + .internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse build() { + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse buildPartial() { + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse result = + new com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse result) { + if (notebookExecutionJobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + notebookExecutionJobs_ = java.util.Collections.unmodifiableList(notebookExecutionJobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.notebookExecutionJobs_ = notebookExecutionJobs_; + } else { + result.notebookExecutionJobs_ = notebookExecutionJobsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse other) { + if (other + == com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.getDefaultInstance()) + return this; + if (notebookExecutionJobsBuilder_ == null) { + if (!other.notebookExecutionJobs_.isEmpty()) { + if (notebookExecutionJobs_.isEmpty()) { + notebookExecutionJobs_ = other.notebookExecutionJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNotebookExecutionJobsIsMutable(); + notebookExecutionJobs_.addAll(other.notebookExecutionJobs_); + } + onChanged(); + } + } else { + if (!other.notebookExecutionJobs_.isEmpty()) { + if (notebookExecutionJobsBuilder_.isEmpty()) { + notebookExecutionJobsBuilder_.dispose(); + notebookExecutionJobsBuilder_ = null; + notebookExecutionJobs_ = other.notebookExecutionJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + notebookExecutionJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNotebookExecutionJobsFieldBuilder() + : null; + } else { + notebookExecutionJobsBuilder_.addAllMessages(other.notebookExecutionJobs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1.NotebookExecutionJob m = + input.readMessage( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.parser(), + extensionRegistry); + if (notebookExecutionJobsBuilder_ == null) { + ensureNotebookExecutionJobsIsMutable(); + notebookExecutionJobs_.add(m); + } else { + notebookExecutionJobsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + notebookExecutionJobs_ = java.util.Collections.emptyList(); + + private void ensureNotebookExecutionJobsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + notebookExecutionJobs_ = + new java.util.ArrayList( + notebookExecutionJobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJobOrBuilder> + notebookExecutionJobsBuilder_; + + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public java.util.List + getNotebookExecutionJobsList() { + if (notebookExecutionJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notebookExecutionJobs_); + } else { + return notebookExecutionJobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public int getNotebookExecutionJobsCount() { + if (notebookExecutionJobsBuilder_ == null) { + return notebookExecutionJobs_.size(); + } else { + return notebookExecutionJobsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public com.google.cloud.aiplatform.v1.NotebookExecutionJob getNotebookExecutionJobs(int index) { + if (notebookExecutionJobsBuilder_ == null) { + return notebookExecutionJobs_.get(index); + } else { + return notebookExecutionJobsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public Builder setNotebookExecutionJobs( + int index, com.google.cloud.aiplatform.v1.NotebookExecutionJob value) { + if (notebookExecutionJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotebookExecutionJobsIsMutable(); + notebookExecutionJobs_.set(index, value); + onChanged(); + } else { + notebookExecutionJobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public Builder setNotebookExecutionJobs( + int index, com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder builderForValue) { + if (notebookExecutionJobsBuilder_ == null) { + ensureNotebookExecutionJobsIsMutable(); + notebookExecutionJobs_.set(index, builderForValue.build()); + onChanged(); + } else { + notebookExecutionJobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public Builder addNotebookExecutionJobs( + com.google.cloud.aiplatform.v1.NotebookExecutionJob value) { + if (notebookExecutionJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotebookExecutionJobsIsMutable(); + notebookExecutionJobs_.add(value); + onChanged(); + } else { + notebookExecutionJobsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public Builder addNotebookExecutionJobs( + int index, com.google.cloud.aiplatform.v1.NotebookExecutionJob value) { + if (notebookExecutionJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotebookExecutionJobsIsMutable(); + notebookExecutionJobs_.add(index, value); + onChanged(); + } else { + notebookExecutionJobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public Builder addNotebookExecutionJobs( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder builderForValue) { + if (notebookExecutionJobsBuilder_ == null) { + ensureNotebookExecutionJobsIsMutable(); + notebookExecutionJobs_.add(builderForValue.build()); + onChanged(); + } else { + notebookExecutionJobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public Builder addNotebookExecutionJobs( + int index, com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder builderForValue) { + if (notebookExecutionJobsBuilder_ == null) { + ensureNotebookExecutionJobsIsMutable(); + notebookExecutionJobs_.add(index, builderForValue.build()); + onChanged(); + } else { + notebookExecutionJobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public Builder addAllNotebookExecutionJobs( + java.lang.Iterable values) { + if (notebookExecutionJobsBuilder_ == null) { + ensureNotebookExecutionJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notebookExecutionJobs_); + onChanged(); + } else { + notebookExecutionJobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public Builder clearNotebookExecutionJobs() { + if (notebookExecutionJobsBuilder_ == null) { + notebookExecutionJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + notebookExecutionJobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public Builder removeNotebookExecutionJobs(int index) { + if (notebookExecutionJobsBuilder_ == null) { + ensureNotebookExecutionJobsIsMutable(); + notebookExecutionJobs_.remove(index); + onChanged(); + } else { + notebookExecutionJobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder + getNotebookExecutionJobsBuilder(int index) { + return getNotebookExecutionJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public com.google.cloud.aiplatform.v1.NotebookExecutionJobOrBuilder + getNotebookExecutionJobsOrBuilder(int index) { + if (notebookExecutionJobsBuilder_ == null) { + return notebookExecutionJobs_.get(index); + } else { + return notebookExecutionJobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public java.util.List + getNotebookExecutionJobsOrBuilderList() { + if (notebookExecutionJobsBuilder_ != null) { + return notebookExecutionJobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notebookExecutionJobs_); + } + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder + addNotebookExecutionJobsBuilder() { + return getNotebookExecutionJobsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.NotebookExecutionJob.getDefaultInstance()); + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder + addNotebookExecutionJobsBuilder(int index) { + return getNotebookExecutionJobsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.NotebookExecutionJob.getDefaultInstance()); + } + /** + * + * + *
+     * List of NotebookExecutionJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + public java.util.List + getNotebookExecutionJobsBuilderList() { + return getNotebookExecutionJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJobOrBuilder> + getNotebookExecutionJobsFieldBuilder() { + if (notebookExecutionJobsBuilder_ == null) { + notebookExecutionJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJobOrBuilder>( + notebookExecutionJobs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + notebookExecutionJobs_ = null; + } + return notebookExecutionJobsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListNotebookExecutionJobs.page_token][] to obtain that
+     * page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListNotebookExecutionJobs.page_token][] to obtain that
+     * page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListNotebookExecutionJobs.page_token][] to obtain that
+     * page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListNotebookExecutionJobs.page_token][] to obtain that
+     * page.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListNotebookExecutionJobs.page_token][] to obtain that
+     * page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse) + private static final com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse(); + } + + public static com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotebookExecutionJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListNotebookExecutionJobsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListNotebookExecutionJobsResponseOrBuilder.java new file mode 100644 index 000000000000..39d0cbd3e6f7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListNotebookExecutionJobsResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +public interface ListNotebookExecutionJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of NotebookExecutionJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + java.util.List + getNotebookExecutionJobsList(); + /** + * + * + *
+   * List of NotebookExecutionJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJob getNotebookExecutionJobs(int index); + /** + * + * + *
+   * List of NotebookExecutionJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + int getNotebookExecutionJobsCount(); + /** + * + * + *
+   * List of NotebookExecutionJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + java.util.List + getNotebookExecutionJobsOrBuilderList(); + /** + * + * + *
+   * List of NotebookExecutionJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_jobs = 1; + * + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJobOrBuilder getNotebookExecutionJobsOrBuilder( + int index); + + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListNotebookExecutionJobs.page_token][] to obtain that
+   * page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListNotebookExecutionJobs.page_token][] to obtain that
+   * page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceProto.java index 60757b6c3d34..95ac97364b3f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceProto.java @@ -47,28 +47,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e/api/client.proto\032\037google/api/field_beh" + "avior.proto\032\031google/api/resource.proto\0320" + "google/cloud/aiplatform/v1/publisher_mod" - + "el.proto\"\271\001\n\030GetPublisherModelRequest\022>\n" + + "el.proto\"\335\001\n\030GetPublisherModelRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n(aiplatform.googleap" + "is.com/PublisherModel\022\032\n\rlanguage_code\030\002" + " \001(\tB\003\340A\001\022A\n\004view\030\003 \001(\0162..google.cloud.a" - + "iplatform.v1.PublisherModelViewB\003\340A\001*\241\001\n" - + "\022PublisherModelView\022$\n PUBLISHER_MODEL_V" - + "IEW_UNSPECIFIED\020\000\022\036\n\032PUBLISHER_MODEL_VIE" - + "W_BASIC\020\001\022\035\n\031PUBLISHER_MODEL_VIEW_FULL\020\002" - + "\022&\n\"PUBLISHER_MODEL_VERSION_VIEW_BASIC\020\003" - + "2\214\002\n\022ModelGardenService\022\246\001\n\021GetPublisher" - + "Model\0224.google.cloud.aiplatform.v1.GetPu" - + "blisherModelRequest\032*.google.cloud.aipla" - + "tform.v1.PublisherModel\"/\332A\004name\202\323\344\223\002\"\022 " - + "/v1/{name=publishers/*/models/*}\032M\312A\031aip" - + "latform.googleapis.com\322A.https://www.goo" - + "gleapis.com/auth/cloud-platformB\325\001\n\036com." - + "google.cloud.aiplatform.v1B\027ModelGardenS" - + "erviceProtoP\001Z>cloud.google.com/go/aipla" - + "tform/apiv1/aiplatformpb;aiplatformpb\252\002\032" - + "Google.Cloud.AIPlatform.V1\312\002\032Google\\Clou" - + "d\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatf" - + "orm::V1b\006proto3" + + "iplatform.v1.PublisherModelViewB\003\340A\001\022\"\n\025" + + "is_hugging_face_model\030\005 \001(\010B\003\340A\001*\241\001\n\022Pub" + + "lisherModelView\022$\n PUBLISHER_MODEL_VIEW_" + + "UNSPECIFIED\020\000\022\036\n\032PUBLISHER_MODEL_VIEW_BA" + + "SIC\020\001\022\035\n\031PUBLISHER_MODEL_VIEW_FULL\020\002\022&\n\"" + + "PUBLISHER_MODEL_VERSION_VIEW_BASIC\020\0032\214\002\n" + + "\022ModelGardenService\022\246\001\n\021GetPublisherMode" + + "l\0224.google.cloud.aiplatform.v1.GetPublis" + + "herModelRequest\032*.google.cloud.aiplatfor" + + "m.v1.PublisherModel\"/\332A\004name\202\323\344\223\002\"\022 /v1/" + + "{name=publishers/*/models/*}\032M\312A\031aiplatf" + + "orm.googleapis.com\322A.https://www.googlea" + + "pis.com/auth/cloud-platformB\325\001\n\036com.goog" + + "le.cloud.aiplatform.v1B\027ModelGardenServi" + + "ceProtoP\001Z>cloud.google.com/go/aiplatfor" + + "m/apiv1/aiplatformpb;aiplatformpb\252\002\032Goog" + + "le.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AI" + + "Platform\\V1\352\002\035Google::Cloud::AIPlatform:" + + ":V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -86,7 +87,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GetPublisherModelRequest_descriptor, new java.lang.String[] { - "Name", "LanguageCode", "View", + "Name", "LanguageCode", "View", "IsHuggingFaceModel", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborQuery.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborQuery.java index fed6b3115992..5900cd7ebb32 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborQuery.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborQuery.java @@ -40,6 +40,7 @@ private NearestNeighborQuery(com.google.protobuf.GeneratedMessageV3.Builder b private NearestNeighborQuery() { stringFilters_ = java.util.Collections.emptyList(); + numericFilters_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -2113,132 +2114,733 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface ParametersOrBuilder + public interface NumericFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Optional. The number of neighbors to find via approximate search before
-     * exact reordering is performed; if set, this value must be >
-     * neighbor_count.
+     * int value type.
      * 
* - * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * int64 value_int = 2; * - * @return The approximateNeighborCandidates. + * @return Whether the valueInt field is set. */ - int getApproximateNeighborCandidates(); + boolean hasValueInt(); + /** + * + * + *
+     * int value type.
+     * 
+ * + * int64 value_int = 2; + * + * @return The valueInt. + */ + long getValueInt(); /** * * *
-     * Optional. The fraction of the number of leaves to search, set at query
-     * time allows user to tune search performance. This value increase result
-     * in both search accuracy and latency increase. The value should be between
-     * 0.0 and 1.0.
+     * float value type.
      * 
* - * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * float value_float = 3; * - * @return The leafNodesSearchFraction. + * @return Whether the valueFloat field is set. */ - double getLeafNodesSearchFraction(); + boolean hasValueFloat(); + /** + * + * + *
+     * float value type.
+     * 
+ * + * float value_float = 3; + * + * @return The valueFloat. + */ + float getValueFloat(); + + /** + * + * + *
+     * double value type.
+     * 
+ * + * double value_double = 4; + * + * @return Whether the valueDouble field is set. + */ + boolean hasValueDouble(); + /** + * + * + *
+     * double value type.
+     * 
+ * + * double value_double = 4; + * + * @return The valueDouble. + */ + double getValueDouble(); + + /** + * + * + *
+     * Required. Column name in BigQuery that used as filters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+     * Required. Column name in BigQuery that used as filters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * Optional. This MUST be specified for queries and must NOT be specified
+     * for database points.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the op field is set. + */ + boolean hasOp(); + /** + * + * + *
+     * Optional. This MUST be specified for queries and must NOT be specified
+     * for database points.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for op. + */ + int getOpValue(); + /** + * + * + *
+     * Optional. This MUST be specified for queries and must NOT be specified
+     * for database points.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The op. + */ + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator getOp(); + + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.ValueCase getValueCase(); } /** * * *
-   * Parameters that can be overrided in each query to tune query latency and
-   * recall.
+   * Numeric filter is used to search a subset of the entities by using boolean
+   * rules on numeric columns.
+   * For example:
+   * Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0}
+   * Database Point 1:  {name: “a” value_int: 10} {name: “b” value_float: 2.0}
+   * Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0}
+   * Query: {name: “a” value_int: 12 operator: LESS}    // Matches Point 1, 2
+   * {name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1
    * 
* - * Protobuf type {@code google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters} + * Protobuf type {@code google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter} */ - public static final class Parameters extends com.google.protobuf.GeneratedMessageV3 + public static final class NumericFilter extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) - ParametersOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter) + NumericFilterOrBuilder { private static final long serialVersionUID = 0L; - // Use Parameters.newBuilder() to construct. - private Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use NumericFilter.newBuilder() to construct. + private NumericFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Parameters() {} + private NumericFilter() { + name_ = ""; + op_ = 0; + } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Parameters(); + return new NumericFilter(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_descriptor; + .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_NumericFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_NumericFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.class, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.Builder.class); + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.class, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Builder.class); } - public static final int APPROXIMATE_NEIGHBOR_CANDIDATES_FIELD_NUMBER = 1; - private int approximateNeighborCandidates_ = 0; /** * * *
-     * Optional. The number of neighbors to find via approximate search before
-     * exact reordering is performed; if set, this value must be >
-     * neighbor_count.
+     * Datapoints for which Operator is true relative to the query’s Value
+     * field will be allowlisted.
      * 
* - * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The approximateNeighborCandidates. + * Protobuf enum {@code google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator} */ - @java.lang.Override - public int getApproximateNeighborCandidates() { - return approximateNeighborCandidates_; - } + public enum Operator implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified operator.
+       * 
+ * + * OPERATOR_UNSPECIFIED = 0; + */ + OPERATOR_UNSPECIFIED(0), + /** + * + * + *
+       * Entities are eligible if their value is < the query's.
+       * 
+ * + * LESS = 1; + */ + LESS(1), + /** + * + * + *
+       * Entities are eligible if their value is <= the query's.
+       * 
+ * + * LESS_EQUAL = 2; + */ + LESS_EQUAL(2), + /** + * + * + *
+       * Entities are eligible if their value is == the query's.
+       * 
+ * + * EQUAL = 3; + */ + EQUAL(3), + /** + * + * + *
+       * Entities are eligible if their value is >= the query's.
+       * 
+ * + * GREATER_EQUAL = 4; + */ + GREATER_EQUAL(4), + /** + * + * + *
+       * Entities are eligible if their value is > the query's.
+       * 
+ * + * GREATER = 5; + */ + GREATER(5), + /** + * + * + *
+       * Entities are eligible if their value is != the query's.
+       * 
+ * + * NOT_EQUAL = 6; + */ + NOT_EQUAL(6), + UNRECOGNIZED(-1), + ; - public static final int LEAF_NODES_SEARCH_FRACTION_FIELD_NUMBER = 2; - private double leafNodesSearchFraction_ = 0D; - /** - * - * - *
-     * Optional. The fraction of the number of leaves to search, set at query
-     * time allows user to tune search performance. This value increase result
-     * in both search accuracy and latency increase. The value should be between
-     * 0.0 and 1.0.
-     * 
- * - * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The leafNodesSearchFraction. - */ - @java.lang.Override - public double getLeafNodesSearchFraction() { - return leafNodesSearchFraction_; - } + /** + * + * + *
+       * Unspecified operator.
+       * 
+ * + * OPERATOR_UNSPECIFIED = 0; + */ + public static final int OPERATOR_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Entities are eligible if their value is < the query's.
+       * 
+ * + * LESS = 1; + */ + public static final int LESS_VALUE = 1; + /** + * + * + *
+       * Entities are eligible if their value is <= the query's.
+       * 
+ * + * LESS_EQUAL = 2; + */ + public static final int LESS_EQUAL_VALUE = 2; + /** + * + * + *
+       * Entities are eligible if their value is == the query's.
+       * 
+ * + * EQUAL = 3; + */ + public static final int EQUAL_VALUE = 3; + /** + * + * + *
+       * Entities are eligible if their value is >= the query's.
+       * 
+ * + * GREATER_EQUAL = 4; + */ + public static final int GREATER_EQUAL_VALUE = 4; + /** + * + * + *
+       * Entities are eligible if their value is > the query's.
+       * 
+ * + * GREATER = 5; + */ + public static final int GREATER_VALUE = 5; + /** + * + * + *
+       * Entities are eligible if their value is != the query's.
+       * 
+ * + * NOT_EQUAL = 6; + */ + public static final int NOT_EQUAL_VALUE = 6; - private byte memoizedIsInitialized = -1; + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } - @java.lang.Override - public final boolean isInitialized() { + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Operator valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Operator forNumber(int value) { + switch (value) { + case 0: + return OPERATOR_UNSPECIFIED; + case 1: + return LESS; + case 2: + return LESS_EQUAL; + case 3: + return EQUAL; + case 4: + return GREATER_EQUAL; + case 5: + return GREATER; + case 6: + return NOT_EQUAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operator findValueByNumber(int number) { + return Operator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Operator[] VALUES = values(); + + public static Operator valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Operator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator) + } + + private int bitField0_; + private int valueCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object value_; + + public enum ValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VALUE_INT(2), + VALUE_FLOAT(3), + VALUE_DOUBLE(4), + VALUE_NOT_SET(0); + private final int value; + + private ValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 2: + return VALUE_INT; + case 3: + return VALUE_FLOAT; + case 4: + return VALUE_DOUBLE; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int VALUE_INT_FIELD_NUMBER = 2; + /** + * + * + *
+     * int value type.
+     * 
+ * + * int64 value_int = 2; + * + * @return Whether the valueInt field is set. + */ + @java.lang.Override + public boolean hasValueInt() { + return valueCase_ == 2; + } + /** + * + * + *
+     * int value type.
+     * 
+ * + * int64 value_int = 2; + * + * @return The valueInt. + */ + @java.lang.Override + public long getValueInt() { + if (valueCase_ == 2) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int VALUE_FLOAT_FIELD_NUMBER = 3; + /** + * + * + *
+     * float value type.
+     * 
+ * + * float value_float = 3; + * + * @return Whether the valueFloat field is set. + */ + @java.lang.Override + public boolean hasValueFloat() { + return valueCase_ == 3; + } + /** + * + * + *
+     * float value type.
+     * 
+ * + * float value_float = 3; + * + * @return The valueFloat. + */ + @java.lang.Override + public float getValueFloat() { + if (valueCase_ == 3) { + return (java.lang.Float) value_; + } + return 0F; + } + + public static final int VALUE_DOUBLE_FIELD_NUMBER = 4; + /** + * + * + *
+     * double value type.
+     * 
+ * + * double value_double = 4; + * + * @return Whether the valueDouble field is set. + */ + @java.lang.Override + public boolean hasValueDouble() { + return valueCase_ == 4; + } + /** + * + * + *
+     * double value type.
+     * 
+ * + * double value_double = 4; + * + * @return The valueDouble. + */ + @java.lang.Override + public double getValueDouble() { + if (valueCase_ == 4) { + return (java.lang.Double) value_; + } + return 0D; + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Column name in BigQuery that used as filters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Column name in BigQuery that used as filters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OP_FIELD_NUMBER = 5; + private int op_ = 0; + /** + * + * + *
+     * Optional. This MUST be specified for queries and must NOT be specified
+     * for database points.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the op field is set. + */ + @java.lang.Override + public boolean hasOp() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. This MUST be specified for queries and must NOT be specified
+     * for database points.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for op. + */ + @java.lang.Override + public int getOpValue() { + return op_; + } + /** + * + * + *
+     * Optional. This MUST be specified for queries and must NOT be specified
+     * for database points.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The op. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator getOp() { + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator result = + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator.forNumber(op_); + return result == null + ? com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; @@ -2249,11 +2851,20 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (approximateNeighborCandidates_ != 0) { - output.writeInt32(1, approximateNeighborCandidates_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (java.lang.Double.doubleToRawLongBits(leafNodesSearchFraction_) != 0) { - output.writeDouble(2, leafNodesSearchFraction_); + if (valueCase_ == 2) { + output.writeInt64(2, (long) ((java.lang.Long) value_)); + } + if (valueCase_ == 3) { + output.writeFloat(3, (float) ((java.lang.Float) value_)); + } + if (valueCase_ == 4) { + output.writeDouble(4, (double) ((java.lang.Double) value_)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(5, op_); } getUnknownFields().writeTo(output); } @@ -2264,14 +2875,26 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (approximateNeighborCandidates_ != 0) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (valueCase_ == 2) { size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 1, approximateNeighborCandidates_); + com.google.protobuf.CodedOutputStream.computeInt64Size( + 2, (long) ((java.lang.Long) value_)); } - if (java.lang.Double.doubleToRawLongBits(leafNodesSearchFraction_) != 0) { + if (valueCase_ == 3) { size += - com.google.protobuf.CodedOutputStream.computeDoubleSize(2, leafNodesSearchFraction_); + com.google.protobuf.CodedOutputStream.computeFloatSize( + 3, (float) ((java.lang.Float) value_)); + } + if (valueCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 4, (double) ((java.lang.Double) value_)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, op_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2283,16 +2906,33 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters)) { + if (!(obj instanceof com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter)) { return super.equals(obj); } - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters other = - (com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) obj; + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter other = + (com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter) obj; - if (getApproximateNeighborCandidates() != other.getApproximateNeighborCandidates()) - return false; - if (java.lang.Double.doubleToLongBits(getLeafNodesSearchFraction()) - != java.lang.Double.doubleToLongBits(other.getLeafNodesSearchFraction())) return false; + if (!getName().equals(other.getName())) return false; + if (hasOp() != other.hasOp()) return false; + if (hasOp()) { + if (op_ != other.op_) return false; + } + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 2: + if (getValueInt() != other.getValueInt()) return false; + break; + case 3: + if (java.lang.Float.floatToIntBits(getValueFloat()) + != java.lang.Float.floatToIntBits(other.getValueFloat())) return false; + break; + case 4: + if (java.lang.Double.doubleToLongBits(getValueDouble()) + != java.lang.Double.doubleToLongBits(other.getValueDouble())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2304,83 +2944,102 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + APPROXIMATE_NEIGHBOR_CANDIDATES_FIELD_NUMBER; - hash = (53 * hash) + getApproximateNeighborCandidates(); - hash = (37 * hash) + LEAF_NODES_SEARCH_FRACTION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getLeafNodesSearchFraction())); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasOp()) { + hash = (37 * hash) + OP_FIELD_NUMBER; + hash = (53 * hash) + op_; + } + switch (valueCase_) { + case 2: + hash = (37 * hash) + VALUE_INT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValueInt()); + break; + case 3: + hash = (37 * hash) + VALUE_FLOAT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getValueFloat()); + break; + case 4: + hash = (37 * hash) + VALUE_DOUBLE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValueDouble())); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2398,7 +3057,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters prototype) { + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -2417,33 +3076,40 @@ protected Builder newBuilderForType( * * *
-     * Parameters that can be overrided in each query to tune query latency and
-     * recall.
+     * Numeric filter is used to search a subset of the entities by using boolean
+     * rules on numeric columns.
+     * For example:
+     * Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0}
+     * Database Point 1:  {name: “a” value_int: 10} {name: “b” value_float: 2.0}
+     * Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0}
+     * Query: {name: “a” value_int: 12 operator: LESS}    // Matches Point 1, 2
+     * {name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1
      * 
* - * Protobuf type {@code google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters} + * Protobuf type {@code google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) - com.google.cloud.aiplatform.v1.NearestNeighborQuery.ParametersOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter) + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_descriptor; + .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_NumericFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_NumericFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.class, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.Builder.class); + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.class, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Builder.class); } - // Construct using com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.newBuilder() + // Construct using + // com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -2454,26 +3120,29 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - approximateNeighborCandidates_ = 0; - leafNodesSearchFraction_ = 0D; + name_ = ""; + op_ = 0; + valueCase_ = 0; + value_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_descriptor; + .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_NumericFilter_descriptor; } @java.lang.Override - public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.getDefaultInstance(); + return com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters build() { - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters result = buildPartial(); + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter build() { + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2481,25 +3150,35 @@ public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters build() { } @java.lang.Override - public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters buildPartial() { - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters result = - new com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters(this); + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter buildPartial() { + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter result = + new com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter(this); if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0( - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters result) { + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.approximateNeighborCandidates_ = approximateNeighborCandidates_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.leafNodesSearchFraction_ = leafNodesSearchFraction_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.op_ = op_; + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter result) { + result.valueCase_ = valueCase_; + result.value_ = this.value_; } @java.lang.Override @@ -2539,8 +3218,9 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) { - return mergeFrom((com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) other); + if (other instanceof com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter) other); } else { super.mergeFrom(other); return this; @@ -2548,15 +3228,38 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters other) { + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter other) { if (other - == com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.getDefaultInstance()) - return this; - if (other.getApproximateNeighborCandidates() != 0) { - setApproximateNeighborCandidates(other.getApproximateNeighborCandidates()); + == com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); } - if (other.getLeafNodesSearchFraction() != 0D) { - setLeafNodesSearchFraction(other.getLeafNodesSearchFraction()); + if (other.hasOp()) { + setOp(other.getOp()); + } + switch (other.getValueCase()) { + case VALUE_INT: + { + setValueInt(other.getValueInt()); + break; + } + case VALUE_FLOAT: + { + setValueFloat(other.getValueFloat()); + break; + } + case VALUE_DOUBLE: + { + setValueDouble(other.getValueDouble()); + break; + } + case VALUE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2584,18 +3287,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: + case 10: { - approximateNeighborCandidates_ = input.readInt32(); - bitField0_ |= 0x00000001; + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; break; - } // case 8 - case 17: + } // case 10 + case 16: { - leafNodesSearchFraction_ = input.readDouble(); - bitField0_ |= 0x00000002; + value_ = input.readInt64(); + valueCase_ = 2; break; - } // case 17 + } // case 16 + case 29: + { + value_ = input.readFloat(); + valueCase_ = 3; + break; + } // case 29 + case 33: + { + value_ = input.readDouble(); + valueCase_ = 4; + break; + } // case 33 + case 40: + { + op_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2613,46 +3334,69 @@ public Builder mergeFrom( return this; } + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + private int bitField0_; - private int approximateNeighborCandidates_; /** * * *
-       * Optional. The number of neighbors to find via approximate search before
-       * exact reordering is performed; if set, this value must be >
-       * neighbor_count.
+       * int value type.
        * 
* - * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * int64 value_int = 2; * - * @return The approximateNeighborCandidates. + * @return Whether the valueInt field is set. */ - @java.lang.Override - public int getApproximateNeighborCandidates() { - return approximateNeighborCandidates_; + public boolean hasValueInt() { + return valueCase_ == 2; } /** * * *
-       * Optional. The number of neighbors to find via approximate search before
-       * exact reordering is performed; if set, this value must be >
-       * neighbor_count.
+       * int value type.
        * 
* - * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * int64 value_int = 2; * - * @param value The approximateNeighborCandidates to set. + * @return The valueInt. + */ + public long getValueInt() { + if (valueCase_ == 2) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + * + * + *
+       * int value type.
+       * 
+ * + * int64 value_int = 2; + * + * @param value The valueInt to set. * @return This builder for chaining. */ - public Builder setApproximateNeighborCandidates(int value) { + public Builder setValueInt(long value) { - approximateNeighborCandidates_ = value; - bitField0_ |= 0x00000001; + valueCase_ = 2; + value_ = value; onChanged(); return this; } @@ -2660,63 +3404,69 @@ public Builder setApproximateNeighborCandidates(int value) { * * *
-       * Optional. The number of neighbors to find via approximate search before
-       * exact reordering is performed; if set, this value must be >
-       * neighbor_count.
+       * int value type.
        * 
* - * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * int64 value_int = 2; * * @return This builder for chaining. */ - public Builder clearApproximateNeighborCandidates() { - bitField0_ = (bitField0_ & ~0x00000001); - approximateNeighborCandidates_ = 0; - onChanged(); + public Builder clearValueInt() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } return this; } - private double leafNodesSearchFraction_; /** * * *
-       * Optional. The fraction of the number of leaves to search, set at query
-       * time allows user to tune search performance. This value increase result
-       * in both search accuracy and latency increase. The value should be between
-       * 0.0 and 1.0.
+       * float value type.
        * 
* - * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * float value_float = 3; * - * @return The leafNodesSearchFraction. + * @return Whether the valueFloat field is set. */ - @java.lang.Override - public double getLeafNodesSearchFraction() { - return leafNodesSearchFraction_; + public boolean hasValueFloat() { + return valueCase_ == 3; } /** * * *
-       * Optional. The fraction of the number of leaves to search, set at query
-       * time allows user to tune search performance. This value increase result
-       * in both search accuracy and latency increase. The value should be between
-       * 0.0 and 1.0.
+       * float value type.
        * 
* - * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * float value_float = 3; * - * @param value The leafNodesSearchFraction to set. + * @return The valueFloat. + */ + public float getValueFloat() { + if (valueCase_ == 3) { + return (java.lang.Float) value_; + } + return 0F; + } + /** + * + * + *
+       * float value type.
+       * 
+ * + * float value_float = 3; + * + * @param value The valueFloat to set. * @return This builder for chaining. */ - public Builder setLeafNodesSearchFraction(double value) { + public Builder setValueFloat(float value) { - leafNodesSearchFraction_ = value; - bitField0_ |= 0x00000002; + valueCase_ = 3; + value_ = value; onChanged(); return this; } @@ -2724,67 +3474,369 @@ public Builder setLeafNodesSearchFraction(double value) { * * *
-       * Optional. The fraction of the number of leaves to search, set at query
-       * time allows user to tune search performance. This value increase result
-       * in both search accuracy and latency increase. The value should be between
-       * 0.0 and 1.0.
+       * float value type.
        * 
* - * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * float value_float = 3; * * @return This builder for chaining. */ - public Builder clearLeafNodesSearchFraction() { - bitField0_ = (bitField0_ & ~0x00000002); - leafNodesSearchFraction_ = 0D; - onChanged(); + public Builder clearValueFloat() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + /** + * + * + *
+       * double value type.
+       * 
+ * + * double value_double = 4; + * + * @return Whether the valueDouble field is set. + */ + public boolean hasValueDouble() { + return valueCase_ == 4; } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + /** + * + * + *
+       * double value type.
+       * 
+ * + * double value_double = 4; + * + * @return The valueDouble. + */ + public double getValueDouble() { + if (valueCase_ == 4) { + return (java.lang.Double) value_; + } + return 0D; } + /** + * + * + *
+       * double value type.
+       * 
+ * + * double value_double = 4; + * + * @param value The valueDouble to set. + * @return This builder for chaining. + */ + public Builder setValueDouble(double value) { - // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) - private static final com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters(); - } - - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * double value type.
+       * 
+ * + * double value_double = 4; + * + * @return This builder for chaining. + */ + public Builder clearValueDouble() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Parameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); + private java.lang.Object name_ = ""; + /** + * + * + *
+       * Required. Column name in BigQuery that used as filters.
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Column name in BigQuery that used as filters.
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Column name in BigQuery that used as filters.
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Column name in BigQuery that used as filters.
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Column name in BigQuery that used as filters.
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int op_ = 0; + /** + * + * + *
+       * Optional. This MUST be specified for queries and must NOT be specified
+       * for database points.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the op field is set. + */ + @java.lang.Override + public boolean hasOp() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+       * Optional. This MUST be specified for queries and must NOT be specified
+       * for database points.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for op. + */ + @java.lang.Override + public int getOpValue() { + return op_; + } + /** + * + * + *
+       * Optional. This MUST be specified for queries and must NOT be specified
+       * for database points.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for op to set. + * @return This builder for chaining. + */ + public Builder setOpValue(int value) { + op_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. This MUST be specified for queries and must NOT be specified
+       * for database points.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The op. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator getOp() { + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator result = + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator.forNumber( + op_); + return result == null + ? com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional. This MUST be specified for queries and must NOT be specified
+       * for database points.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The op to set. + * @return This builder for chaining. + */ + public Builder setOp( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + op_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. This MUST be specified for queries and must NOT be specified
+       * for database points.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearOp() { + bitField0_ = (bitField0_ & ~0x00000010); + op_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter) + private static final com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter(); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumericFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); @@ -2793,233 +3845,929 @@ public Parameters parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - private int bitField0_; - private int instanceCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object instance_; - - public enum InstanceCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - ENTITY_ID(1), - EMBEDDING(2), - INSTANCE_NOT_SET(0); - private final int value; + public interface ParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) + com.google.protobuf.MessageOrBuilder { - private InstanceCase(int value) { - this.value = value; - } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
+     * Optional. The number of neighbors to find via approximate search before
+     * exact reordering is performed; if set, this value must be >
+     * neighbor_count.
+     * 
+ * + * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The approximateNeighborCandidates. */ - @java.lang.Deprecated - public static InstanceCase valueOf(int value) { - return forNumber(value); - } + int getApproximateNeighborCandidates(); - public static InstanceCase forNumber(int value) { - switch (value) { - case 1: - return ENTITY_ID; - case 2: - return EMBEDDING; - case 0: - return INSTANCE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public InstanceCase getInstanceCase() { - return InstanceCase.forNumber(instanceCase_); - } - - public static final int ENTITY_ID_FIELD_NUMBER = 1; - /** - * - * - *
-   * Optional. The entity id whose similar entities should be searched for.
-   * If embedding is set, search will use embedding instead of
-   * entity_id.
-   * 
- * - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the entityId field is set. - */ - public boolean hasEntityId() { - return instanceCase_ == 1; + /** + * + * + *
+     * Optional. The fraction of the number of leaves to search, set at query
+     * time allows user to tune search performance. This value increase result
+     * in both search accuracy and latency increase. The value should be between
+     * 0.0 and 1.0.
+     * 
+ * + * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The leafNodesSearchFraction. + */ + double getLeafNodesSearchFraction(); } /** * * *
-   * Optional. The entity id whose similar entities should be searched for.
-   * If embedding is set, search will use embedding instead of
-   * entity_id.
+   * Parameters that can be overrided in each query to tune query latency and
+   * recall.
    * 
* - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The entityId. + * Protobuf type {@code google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters} */ - public java.lang.String getEntityId() { - java.lang.Object ref = ""; - if (instanceCase_ == 1) { - ref = instance_; + public static final class Parameters extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) + ParametersOrBuilder { + private static final long serialVersionUID = 0L; + // Use Parameters.newBuilder() to construct. + private Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (instanceCase_ == 1) { - instance_ = s; - } - return s; + + private Parameters() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Parameters(); } - } - /** - * - * - *
-   * Optional. The entity id whose similar entities should be searched for.
-   * If embedding is set, search will use embedding instead of
-   * entity_id.
-   * 
- * - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for entityId. - */ - public com.google.protobuf.ByteString getEntityIdBytes() { - java.lang.Object ref = ""; - if (instanceCase_ == 1) { - ref = instance_; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_descriptor; } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (instanceCase_ == 1) { - instance_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.class, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.Builder.class); } - } - public static final int EMBEDDING_FIELD_NUMBER = 2; - /** - * - * - *
-   * Optional. The embedding vector that be used for similar search.
-   * 
- * - * - * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the embedding field is set. - */ - @java.lang.Override - public boolean hasEmbedding() { - return instanceCase_ == 2; - } - /** - * - * - *
-   * Optional. The embedding vector that be used for similar search.
-   * 
- * - * - * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The embedding. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding getEmbedding() { - if (instanceCase_ == 2) { - return (com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding) instance_; + public static final int APPROXIMATE_NEIGHBOR_CANDIDATES_FIELD_NUMBER = 1; + private int approximateNeighborCandidates_ = 0; + /** + * + * + *
+     * Optional. The number of neighbors to find via approximate search before
+     * exact reordering is performed; if set, this value must be >
+     * neighbor_count.
+     * 
+ * + * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The approximateNeighborCandidates. + */ + @java.lang.Override + public int getApproximateNeighborCandidates() { + return approximateNeighborCandidates_; } - return com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. The embedding vector that be used for similar search.
-   * 
- * - * - * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.NearestNeighborQuery.EmbeddingOrBuilder - getEmbeddingOrBuilder() { - if (instanceCase_ == 2) { - return (com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding) instance_; + + public static final int LEAF_NODES_SEARCH_FRACTION_FIELD_NUMBER = 2; + private double leafNodesSearchFraction_ = 0D; + /** + * + * + *
+     * Optional. The fraction of the number of leaves to search, set at query
+     * time allows user to tune search performance. This value increase result
+     * in both search accuracy and latency increase. The value should be between
+     * 0.0 and 1.0.
+     * 
+ * + * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The leafNodesSearchFraction. + */ + @java.lang.Override + public double getLeafNodesSearchFraction() { + return leafNodesSearchFraction_; } - return com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.getDefaultInstance(); - } - public static final int NEIGHBOR_COUNT_FIELD_NUMBER = 3; - private int neighborCount_ = 0; - /** - * - * - *
-   * Optional. The number of similar entities to be retrieved from feature view
-   * for each query.
-   * 
- * - * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The neighborCount. - */ - @java.lang.Override - public int getNeighborCount() { - return neighborCount_; - } + private byte memoizedIsInitialized = -1; - public static final int STRING_FILTERS_FIELD_NUMBER = 4; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @SuppressWarnings("serial") - private java.util.List - stringFilters_; - /** - * - * + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (approximateNeighborCandidates_ != 0) { + output.writeInt32(1, approximateNeighborCandidates_); + } + if (java.lang.Double.doubleToRawLongBits(leafNodesSearchFraction_) != 0) { + output.writeDouble(2, leafNodesSearchFraction_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (approximateNeighborCandidates_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 1, approximateNeighborCandidates_); + } + if (java.lang.Double.doubleToRawLongBits(leafNodesSearchFraction_) != 0) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(2, leafNodesSearchFraction_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters other = + (com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) obj; + + if (getApproximateNeighborCandidates() != other.getApproximateNeighborCandidates()) + return false; + if (java.lang.Double.doubleToLongBits(getLeafNodesSearchFraction()) + != java.lang.Double.doubleToLongBits(other.getLeafNodesSearchFraction())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + APPROXIMATE_NEIGHBOR_CANDIDATES_FIELD_NUMBER; + hash = (53 * hash) + getApproximateNeighborCandidates(); + hash = (37 * hash) + LEAF_NODES_SEARCH_FRACTION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLeafNodesSearchFraction())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Parameters that can be overrided in each query to tune query latency and
+     * recall.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) + com.google.cloud.aiplatform.v1.NearestNeighborQuery.ParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.class, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + approximateNeighborCandidates_ = 0; + leafNodesSearchFraction_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_Parameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters build() { + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters buildPartial() { + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters result = + new com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.approximateNeighborCandidates_ = approximateNeighborCandidates_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.leafNodesSearchFraction_ = leafNodesSearchFraction_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) { + return mergeFrom((com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters other) { + if (other + == com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.getDefaultInstance()) + return this; + if (other.getApproximateNeighborCandidates() != 0) { + setApproximateNeighborCandidates(other.getApproximateNeighborCandidates()); + } + if (other.getLeafNodesSearchFraction() != 0D) { + setLeafNodesSearchFraction(other.getLeafNodesSearchFraction()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + approximateNeighborCandidates_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 17: + { + leafNodesSearchFraction_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int approximateNeighborCandidates_; + /** + * + * + *
+       * Optional. The number of neighbors to find via approximate search before
+       * exact reordering is performed; if set, this value must be >
+       * neighbor_count.
+       * 
+ * + * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The approximateNeighborCandidates. + */ + @java.lang.Override + public int getApproximateNeighborCandidates() { + return approximateNeighborCandidates_; + } + /** + * + * + *
+       * Optional. The number of neighbors to find via approximate search before
+       * exact reordering is performed; if set, this value must be >
+       * neighbor_count.
+       * 
+ * + * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The approximateNeighborCandidates to set. + * @return This builder for chaining. + */ + public Builder setApproximateNeighborCandidates(int value) { + + approximateNeighborCandidates_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The number of neighbors to find via approximate search before
+       * exact reordering is performed; if set, this value must be >
+       * neighbor_count.
+       * 
+ * + * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearApproximateNeighborCandidates() { + bitField0_ = (bitField0_ & ~0x00000001); + approximateNeighborCandidates_ = 0; + onChanged(); + return this; + } + + private double leafNodesSearchFraction_; + /** + * + * + *
+       * Optional. The fraction of the number of leaves to search, set at query
+       * time allows user to tune search performance. This value increase result
+       * in both search accuracy and latency increase. The value should be between
+       * 0.0 and 1.0.
+       * 
+ * + * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The leafNodesSearchFraction. + */ + @java.lang.Override + public double getLeafNodesSearchFraction() { + return leafNodesSearchFraction_; + } + /** + * + * + *
+       * Optional. The fraction of the number of leaves to search, set at query
+       * time allows user to tune search performance. This value increase result
+       * in both search accuracy and latency increase. The value should be between
+       * 0.0 and 1.0.
+       * 
+ * + * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The leafNodesSearchFraction to set. + * @return This builder for chaining. + */ + public Builder setLeafNodesSearchFraction(double value) { + + leafNodesSearchFraction_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The fraction of the number of leaves to search, set at query
+       * time allows user to tune search performance. This value increase result
+       * in both search accuracy and latency increase. The value should be between
+       * 0.0 and 1.0.
+       * 
+ * + * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearLeafNodesSearchFraction() { + bitField0_ = (bitField0_ & ~0x00000002); + leafNodesSearchFraction_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters) + private static final com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters(); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Parameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int instanceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object instance_; + + public enum InstanceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ENTITY_ID(1), + EMBEDDING(2), + INSTANCE_NOT_SET(0); + private final int value; + + private InstanceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InstanceCase valueOf(int value) { + return forNumber(value); + } + + public static InstanceCase forNumber(int value) { + switch (value) { + case 1: + return ENTITY_ID; + case 2: + return EMBEDDING; + case 0: + return INSTANCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public InstanceCase getInstanceCase() { + return InstanceCase.forNumber(instanceCase_); + } + + public static final int ENTITY_ID_FIELD_NUMBER = 1; + /** + * + * + *
+   * Optional. The entity id whose similar entities should be searched for.
+   * If embedding is set, search will use embedding instead of
+   * entity_id.
+   * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the entityId field is set. + */ + public boolean hasEntityId() { + return instanceCase_ == 1; + } + /** + * + * + *
+   * Optional. The entity id whose similar entities should be searched for.
+   * If embedding is set, search will use embedding instead of
+   * entity_id.
+   * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entityId. + */ + public java.lang.String getEntityId() { + java.lang.Object ref = ""; + if (instanceCase_ == 1) { + ref = instance_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (instanceCase_ == 1) { + instance_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional. The entity id whose similar entities should be searched for.
+   * If embedding is set, search will use embedding instead of
+   * entity_id.
+   * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entityId. + */ + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = ""; + if (instanceCase_ == 1) { + ref = instance_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (instanceCase_ == 1) { + instance_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMBEDDING_FIELD_NUMBER = 2; + /** + * + * + *
+   * Optional. The embedding vector that be used for similar search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the embedding field is set. + */ + @java.lang.Override + public boolean hasEmbedding() { + return instanceCase_ == 2; + } + /** + * + * + *
+   * Optional. The embedding vector that be used for similar search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The embedding. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding getEmbedding() { + if (instanceCase_ == 2) { + return (com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding) instance_; + } + return com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. The embedding vector that be used for similar search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.EmbeddingOrBuilder + getEmbeddingOrBuilder() { + if (instanceCase_ == 2) { + return (com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding) instance_; + } + return com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.getDefaultInstance(); + } + + public static final int NEIGHBOR_COUNT_FIELD_NUMBER = 3; + private int neighborCount_ = 0; + /** + * + * + *
+   * Optional. The number of similar entities to be retrieved from feature view
+   * for each query.
+   * 
+ * + * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The neighborCount. + */ + @java.lang.Override + public int getNeighborCount() { + return neighborCount_; + } + + public static final int STRING_FILTERS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List + stringFilters_; + /** + * + * *
    * Optional. The list of string filters.
    * 
@@ -3098,6 +4846,92 @@ public com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter getStrin return stringFilters_.get(index); } + public static final int NUMERIC_FILTERS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List + numericFilters_; + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getNumericFiltersList() { + return numericFilters_; + } + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilterOrBuilder> + getNumericFiltersOrBuilderList() { + return numericFilters_; + } + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getNumericFiltersCount() { + return numericFilters_.size(); + } + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter getNumericFilters( + int index) { + return numericFilters_.get(index); + } + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilterOrBuilder + getNumericFiltersOrBuilder(int index) { + return numericFilters_.get(index); + } + public static final int PER_CROWDING_ATTRIBUTE_NEIGHBOR_COUNT_FIELD_NUMBER = 5; private int perCrowdingAttributeNeighborCount_ = 0; /** @@ -3211,6 +5045,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getParameters()); } + for (int i = 0; i < numericFilters_.size(); i++) { + output.writeMessage(8, numericFilters_.get(i)); + } getUnknownFields().writeTo(output); } @@ -3242,6 +5079,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getParameters()); } + for (int i = 0; i < numericFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, numericFilters_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3260,6 +5100,7 @@ public boolean equals(final java.lang.Object obj) { if (getNeighborCount() != other.getNeighborCount()) return false; if (!getStringFiltersList().equals(other.getStringFiltersList())) return false; + if (!getNumericFiltersList().equals(other.getNumericFiltersList())) return false; if (getPerCrowdingAttributeNeighborCount() != other.getPerCrowdingAttributeNeighborCount()) return false; if (hasParameters() != other.hasParameters()) return false; @@ -3294,6 +5135,10 @@ public int hashCode() { hash = (37 * hash) + STRING_FILTERS_FIELD_NUMBER; hash = (53 * hash) + getStringFiltersList().hashCode(); } + if (getNumericFiltersCount() > 0) { + hash = (37 * hash) + NUMERIC_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getNumericFiltersList().hashCode(); + } hash = (37 * hash) + PER_CROWDING_ATTRIBUTE_NEIGHBOR_COUNT_FIELD_NUMBER; hash = (53 * hash) + getPerCrowdingAttributeNeighborCount(); if (hasParameters()) { @@ -3369,491 +5214,866 @@ public static com.google.cloud.aiplatform.v1.NearestNeighborQuery parseDelimited return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NearestNeighborQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.NearestNeighborQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A query to find a number of similar entities.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NearestNeighborQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.NearestNeighborQuery) + com.google.cloud.aiplatform.v1.NearestNeighborQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.class, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.NearestNeighborQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStringFiltersFieldBuilder(); + getNumericFiltersFieldBuilder(); + getParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (embeddingBuilder_ != null) { + embeddingBuilder_.clear(); + } + neighborCount_ = 0; + if (stringFiltersBuilder_ == null) { + stringFilters_ = java.util.Collections.emptyList(); + } else { + stringFilters_ = null; + stringFiltersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (numericFiltersBuilder_ == null) { + numericFilters_ = java.util.Collections.emptyList(); + } else { + numericFilters_ = null; + numericFiltersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + perCrowdingAttributeNeighborCount_ = 0; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + instanceCase_ = 0; + instance_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NearestNeighborQuery getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.NearestNeighborQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NearestNeighborQuery build() { + com.google.cloud.aiplatform.v1.NearestNeighborQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NearestNeighborQuery buildPartial() { + com.google.cloud.aiplatform.v1.NearestNeighborQuery result = + new com.google.cloud.aiplatform.v1.NearestNeighborQuery(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.NearestNeighborQuery result) { + if (stringFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + stringFilters_ = java.util.Collections.unmodifiableList(stringFilters_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.stringFilters_ = stringFilters_; + } else { + result.stringFilters_ = stringFiltersBuilder_.build(); + } + if (numericFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + numericFilters_ = java.util.Collections.unmodifiableList(numericFilters_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.numericFilters_ = numericFilters_; + } else { + result.numericFilters_ = numericFiltersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.NearestNeighborQuery result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.neighborCount_ = neighborCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.perCrowdingAttributeNeighborCount_ = perCrowdingAttributeNeighborCount_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.NearestNeighborQuery result) { + result.instanceCase_ = instanceCase_; + result.instance_ = this.instance_; + if (instanceCase_ == 2 && embeddingBuilder_ != null) { + result.instance_ = embeddingBuilder_.build(); + } + } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static com.google.cloud.aiplatform.v1.NearestNeighborQuery parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static Builder newBuilder(com.google.cloud.aiplatform.v1.NearestNeighborQuery prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A query to find a number of similar entities.
-   * 
- * - * Protobuf type {@code google.cloud.aiplatform.v1.NearestNeighborQuery} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.NearestNeighborQuery) - com.google.cloud.aiplatform.v1.NearestNeighborQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_descriptor; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.NearestNeighborQuery) { + return mergeFrom((com.google.cloud.aiplatform.v1.NearestNeighborQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.NearestNeighborQuery other) { + if (other == com.google.cloud.aiplatform.v1.NearestNeighborQuery.getDefaultInstance()) + return this; + if (other.getNeighborCount() != 0) { + setNeighborCount(other.getNeighborCount()); + } + if (stringFiltersBuilder_ == null) { + if (!other.stringFilters_.isEmpty()) { + if (stringFilters_.isEmpty()) { + stringFilters_ = other.stringFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureStringFiltersIsMutable(); + stringFilters_.addAll(other.stringFilters_); + } + onChanged(); + } + } else { + if (!other.stringFilters_.isEmpty()) { + if (stringFiltersBuilder_.isEmpty()) { + stringFiltersBuilder_.dispose(); + stringFiltersBuilder_ = null; + stringFilters_ = other.stringFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + stringFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStringFiltersFieldBuilder() + : null; + } else { + stringFiltersBuilder_.addAllMessages(other.stringFilters_); + } + } + } + if (numericFiltersBuilder_ == null) { + if (!other.numericFilters_.isEmpty()) { + if (numericFilters_.isEmpty()) { + numericFilters_ = other.numericFilters_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureNumericFiltersIsMutable(); + numericFilters_.addAll(other.numericFilters_); + } + onChanged(); + } + } else { + if (!other.numericFilters_.isEmpty()) { + if (numericFiltersBuilder_.isEmpty()) { + numericFiltersBuilder_.dispose(); + numericFiltersBuilder_ = null; + numericFilters_ = other.numericFilters_; + bitField0_ = (bitField0_ & ~0x00000010); + numericFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNumericFiltersFieldBuilder() + : null; + } else { + numericFiltersBuilder_.addAllMessages(other.numericFilters_); + } + } + } + if (other.getPerCrowdingAttributeNeighborCount() != 0) { + setPerCrowdingAttributeNeighborCount(other.getPerCrowdingAttributeNeighborCount()); + } + if (other.hasParameters()) { + mergeParameters(other.getParameters()); + } + switch (other.getInstanceCase()) { + case ENTITY_ID: + { + instanceCase_ = 1; + instance_ = other.instance_; + onChanged(); + break; + } + case EMBEDDING: + { + mergeEmbedding(other.getEmbedding()); + break; + } + case INSTANCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1.NearestNeighborQuery.class, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Builder.class); + public final boolean isInitialized() { + return true; } - // Construct using com.google.cloud.aiplatform.v1.NearestNeighborQuery.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + instanceCase_ = 1; + instance_ = s; + break; + } // case 10 + case 18: + { + input.readMessage(getEmbeddingFieldBuilder().getBuilder(), extensionRegistry); + instanceCase_ = 2; + break; + } // case 18 + case 24: + { + neighborCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter m = + input.readMessage( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.parser(), + extensionRegistry); + if (stringFiltersBuilder_ == null) { + ensureStringFiltersIsMutable(); + stringFilters_.add(m); + } else { + stringFiltersBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: + { + perCrowdingAttributeNeighborCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 58: + { + input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter m = + input.readMessage( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.parser(), + extensionRegistry); + if (numericFiltersBuilder_ == null) { + ensureNumericFiltersIsMutable(); + numericFilters_.add(m); + } else { + numericFiltersBuilder_.addMessage(m); + } + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + private int instanceCase_ = 0; + private java.lang.Object instance_; - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getStringFiltersFieldBuilder(); - getParametersFieldBuilder(); - } + public InstanceCase getInstanceCase() { + return InstanceCase.forNumber(instanceCase_); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (embeddingBuilder_ != null) { - embeddingBuilder_.clear(); - } - neighborCount_ = 0; - if (stringFiltersBuilder_ == null) { - stringFilters_ = java.util.Collections.emptyList(); - } else { - stringFilters_ = null; - stringFiltersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - perCrowdingAttributeNeighborCount_ = 0; - parameters_ = null; - if (parametersBuilder_ != null) { - parametersBuilder_.dispose(); - parametersBuilder_ = null; - } + public Builder clearInstance() { instanceCase_ = 0; instance_ = null; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1_NearestNeighborQuery_descriptor; - } + private int bitField0_; + /** + * + * + *
+     * Optional. The entity id whose similar entities should be searched for.
+     * If embedding is set, search will use embedding instead of
+     * entity_id.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the entityId field is set. + */ @java.lang.Override - public com.google.cloud.aiplatform.v1.NearestNeighborQuery getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1.NearestNeighborQuery.getDefaultInstance(); + public boolean hasEntityId() { + return instanceCase_ == 1; } - + /** + * + * + *
+     * Optional. The entity id whose similar entities should be searched for.
+     * If embedding is set, search will use embedding instead of
+     * entity_id.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entityId. + */ @java.lang.Override - public com.google.cloud.aiplatform.v1.NearestNeighborQuery build() { - com.google.cloud.aiplatform.v1.NearestNeighborQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public java.lang.String getEntityId() { + java.lang.Object ref = ""; + if (instanceCase_ == 1) { + ref = instance_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (instanceCase_ == 1) { + instance_ = s; + } + return s; + } else { + return (java.lang.String) ref; } - return result; } - + /** + * + * + *
+     * Optional. The entity id whose similar entities should be searched for.
+     * If embedding is set, search will use embedding instead of
+     * entity_id.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entityId. + */ @java.lang.Override - public com.google.cloud.aiplatform.v1.NearestNeighborQuery buildPartial() { - com.google.cloud.aiplatform.v1.NearestNeighborQuery result = - new com.google.cloud.aiplatform.v1.NearestNeighborQuery(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = ""; + if (instanceCase_ == 1) { + ref = instance_; } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.aiplatform.v1.NearestNeighborQuery result) { - if (stringFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - stringFilters_ = java.util.Collections.unmodifiableList(stringFilters_); - bitField0_ = (bitField0_ & ~0x00000008); + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (instanceCase_ == 1) { + instance_ = b; } - result.stringFilters_ = stringFilters_; + return b; } else { - result.stringFilters_ = stringFiltersBuilder_.build(); + return (com.google.protobuf.ByteString) ref; } } - - private void buildPartial0(com.google.cloud.aiplatform.v1.NearestNeighborQuery result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.neighborCount_ = neighborCount_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.perCrowdingAttributeNeighborCount_ = perCrowdingAttributeNeighborCount_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { - result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); - to_bitField0_ |= 0x00000001; + /** + * + * + *
+     * Optional. The entity id whose similar entities should be searched for.
+     * If embedding is set, search will use embedding instead of
+     * entity_id.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - result.bitField0_ |= to_bitField0_; + instanceCase_ = 1; + instance_ = value; + onChanged(); + return this; } - - private void buildPartialOneofs(com.google.cloud.aiplatform.v1.NearestNeighborQuery result) { - result.instanceCase_ = instanceCase_; - result.instance_ = this.instance_; - if (instanceCase_ == 2 && embeddingBuilder_ != null) { - result.instance_ = embeddingBuilder_.build(); + /** + * + * + *
+     * Optional. The entity id whose similar entities should be searched for.
+     * If embedding is set, search will use embedding instead of
+     * entity_id.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEntityId() { + if (instanceCase_ == 1) { + instanceCase_ = 0; + instance_ = null; + onChanged(); } + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
+     * Optional. The entity id whose similar entities should be searched for.
+     * If embedding is set, search will use embedding instead of
+     * entity_id.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceCase_ = 1; + instance_ = value; + onChanged(); + return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.Builder, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.EmbeddingOrBuilder> + embeddingBuilder_; + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the embedding field is set. + */ @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public boolean hasEmbedding() { + return instanceCase_ == 2; } - + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The embedding. + */ @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.aiplatform.v1.NearestNeighborQuery) { - return mergeFrom((com.google.cloud.aiplatform.v1.NearestNeighborQuery) other); + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding getEmbedding() { + if (embeddingBuilder_ == null) { + if (instanceCase_ == 2) { + return (com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding) instance_; + } + return com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.getDefaultInstance(); } else { - super.mergeFrom(other); - return this; + if (instanceCase_ == 2) { + return embeddingBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.getDefaultInstance(); } } - - public Builder mergeFrom(com.google.cloud.aiplatform.v1.NearestNeighborQuery other) { - if (other == com.google.cloud.aiplatform.v1.NearestNeighborQuery.getDefaultInstance()) - return this; - if (other.getNeighborCount() != 0) { - setNeighborCount(other.getNeighborCount()); - } - if (stringFiltersBuilder_ == null) { - if (!other.stringFilters_.isEmpty()) { - if (stringFilters_.isEmpty()) { - stringFilters_ = other.stringFilters_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureStringFiltersIsMutable(); - stringFilters_.addAll(other.stringFilters_); - } - onChanged(); + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEmbedding( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding value) { + if (embeddingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + instance_ = value; + onChanged(); } else { - if (!other.stringFilters_.isEmpty()) { - if (stringFiltersBuilder_.isEmpty()) { - stringFiltersBuilder_.dispose(); - stringFiltersBuilder_ = null; - stringFilters_ = other.stringFilters_; - bitField0_ = (bitField0_ & ~0x00000008); - stringFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStringFiltersFieldBuilder() - : null; - } else { - stringFiltersBuilder_.addAllMessages(other.stringFilters_); - } - } - } - if (other.getPerCrowdingAttributeNeighborCount() != 0) { - setPerCrowdingAttributeNeighborCount(other.getPerCrowdingAttributeNeighborCount()); - } - if (other.hasParameters()) { - mergeParameters(other.getParameters()); - } - switch (other.getInstanceCase()) { - case ENTITY_ID: - { - instanceCase_ = 1; - instance_ = other.instance_; - onChanged(); - break; - } - case EMBEDDING: - { - mergeEmbedding(other.getEmbedding()); - break; - } - case INSTANCE_NOT_SET: - { - break; - } + embeddingBuilder_.setMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + instanceCase_ = 2; return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEmbedding( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.Builder builderForValue) { + if (embeddingBuilder_ == null) { + instance_ = builderForValue.build(); + onChanged(); + } else { + embeddingBuilder_.setMessage(builderForValue.build()); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - instanceCase_ = 1; - instance_ = s; - break; - } // case 10 - case 18: - { - input.readMessage(getEmbeddingFieldBuilder().getBuilder(), extensionRegistry); - instanceCase_ = 2; - break; - } // case 18 - case 24: - { - neighborCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter m = - input.readMessage( - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.parser(), - extensionRegistry); - if (stringFiltersBuilder_ == null) { - ensureStringFiltersIsMutable(); - stringFilters_.add(m); - } else { - stringFiltersBuilder_.addMessage(m); - } - break; - } // case 34 - case 40: - { - perCrowdingAttributeNeighborCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 58: - { - input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + instanceCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEmbedding( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding value) { + if (embeddingBuilder_ == null) { + if (instanceCase_ == 2 + && instance_ + != com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding + .getDefaultInstance()) { + instance_ = + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.newBuilder( + (com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding) instance_) + .mergeFrom(value) + .buildPartial(); + } else { + instance_ = value; + } onChanged(); - } // finally + } else { + if (instanceCase_ == 2) { + embeddingBuilder_.mergeFrom(value); + } else { + embeddingBuilder_.setMessage(value); + } + } + instanceCase_ = 2; return this; } - - private int instanceCase_ = 0; - private java.lang.Object instance_; - - public InstanceCase getInstanceCase() { - return InstanceCase.forNumber(instanceCase_); - } - - public Builder clearInstance() { - instanceCase_ = 0; - instance_ = null; - onChanged(); + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEmbedding() { + if (embeddingBuilder_ == null) { + if (instanceCase_ == 2) { + instanceCase_ = 0; + instance_ = null; + onChanged(); + } + } else { + if (instanceCase_ == 2) { + instanceCase_ = 0; + instance_ = null; + } + embeddingBuilder_.clear(); + } return this; } - - private int bitField0_; - /** * * *
-     * Optional. The entity id whose similar entities should be searched for.
-     * If embedding is set, search will use embedding instead of
-     * entity_id.
+     * Optional. The embedding vector that be used for similar search.
      * 
* - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the entityId field is set. + * + * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean hasEntityId() { - return instanceCase_ == 1; + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.Builder + getEmbeddingBuilder() { + return getEmbeddingFieldBuilder().getBuilder(); } /** * * *
-     * Optional. The entity id whose similar entities should be searched for.
-     * If embedding is set, search will use embedding instead of
-     * entity_id.
+     * Optional. The embedding vector that be used for similar search.
      * 
* - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The entityId. + * + * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getEntityId() { - java.lang.Object ref = ""; - if (instanceCase_ == 1) { - ref = instance_; + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.EmbeddingOrBuilder + getEmbeddingOrBuilder() { + if ((instanceCase_ == 2) && (embeddingBuilder_ != null)) { + return embeddingBuilder_.getMessageOrBuilder(); + } else { + if (instanceCase_ == 2) { + return (com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding) instance_; + } + return com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.getDefaultInstance(); } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (instanceCase_ == 1) { - instance_ = s; + } + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.Builder, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.EmbeddingOrBuilder> + getEmbeddingFieldBuilder() { + if (embeddingBuilder_ == null) { + if (!(instanceCase_ == 2)) { + instance_ = + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.getDefaultInstance(); } - return s; - } else { - return (java.lang.String) ref; + embeddingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.Builder, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.EmbeddingOrBuilder>( + (com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding) instance_, + getParentForChildren(), + isClean()); + instance_ = null; } + instanceCase_ = 2; + onChanged(); + return embeddingBuilder_; } + + private int neighborCount_; /** * * *
-     * Optional. The entity id whose similar entities should be searched for.
-     * If embedding is set, search will use embedding instead of
-     * entity_id.
+     * Optional. The number of similar entities to be retrieved from feature view
+     * for each query.
      * 
* - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for entityId. + * @return The neighborCount. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityIdBytes() { - java.lang.Object ref = ""; - if (instanceCase_ == 1) { - ref = instance_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (instanceCase_ == 1) { - instance_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getNeighborCount() { + return neighborCount_; } /** * * *
-     * Optional. The entity id whose similar entities should be searched for.
-     * If embedding is set, search will use embedding instead of
-     * entity_id.
+     * Optional. The number of similar entities to be retrieved from feature view
+     * for each query.
      * 
* - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The entityId to set. + * @param value The neighborCount to set. * @return This builder for chaining. */ - public Builder setEntityId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - instanceCase_ = 1; - instance_ = value; + public Builder setNeighborCount(int value) { + + neighborCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3861,205 +6081,259 @@ public Builder setEntityId(java.lang.String value) { * * *
-     * Optional. The entity id whose similar entities should be searched for.
-     * If embedding is set, search will use embedding instead of
-     * entity_id.
+     * Optional. The number of similar entities to be retrieved from feature view
+     * for each query.
      * 
* - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearEntityId() { - if (instanceCase_ == 1) { - instanceCase_ = 0; - instance_ = null; - onChanged(); + public Builder clearNeighborCount() { + bitField0_ = (bitField0_ & ~0x00000004); + neighborCount_ = 0; + onChanged(); + return this; + } + + private java.util.List + stringFilters_ = java.util.Collections.emptyList(); + + private void ensureStringFiltersIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + stringFilters_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter>(stringFilters_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilterOrBuilder> + stringFiltersBuilder_; + + /** + * + * + *
+     * Optional. The list of string filters.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getStringFiltersList() { + if (stringFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(stringFilters_); + } else { + return stringFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. The list of string filters.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getStringFiltersCount() { + if (stringFiltersBuilder_ == null) { + return stringFilters_.size(); + } else { + return stringFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. The list of string filters.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter getStringFilters( + int index) { + if (stringFiltersBuilder_ == null) { + return stringFilters_.get(index); + } else { + return stringFiltersBuilder_.getMessage(index); } - return this; } /** * * *
-     * Optional. The entity id whose similar entities should be searched for.
-     * If embedding is set, search will use embedding instead of
-     * entity_id.
+     * Optional. The list of string filters.
      * 
* - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for entityId to set. - * @return This builder for chaining. + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setStringFilters( + int index, com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter value) { + if (stringFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStringFiltersIsMutable(); + stringFilters_.set(index, value); + onChanged(); + } else { + stringFiltersBuilder_.setMessage(index, value); } - checkByteStringIsUtf8(value); - instanceCase_ = 1; - instance_ = value; - onChanged(); return this; } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.Builder, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.EmbeddingOrBuilder> - embeddingBuilder_; /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the embedding field is set. */ - @java.lang.Override - public boolean hasEmbedding() { - return instanceCase_ == 2; + public Builder setStringFilters( + int index, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder builderForValue) { + if (stringFiltersBuilder_ == null) { + ensureStringFiltersIsMutable(); + stringFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + stringFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; } /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The embedding. */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding getEmbedding() { - if (embeddingBuilder_ == null) { - if (instanceCase_ == 2) { - return (com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding) instance_; + public Builder addStringFilters( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter value) { + if (stringFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - return com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.getDefaultInstance(); + ensureStringFiltersIsMutable(); + stringFilters_.add(value); + onChanged(); } else { - if (instanceCase_ == 2) { - return embeddingBuilder_.getMessage(); - } - return com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.getDefaultInstance(); + stringFiltersBuilder_.addMessage(value); } + return this; } /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setEmbedding( - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding value) { - if (embeddingBuilder_ == null) { + public Builder addStringFilters( + int index, com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter value) { + if (stringFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - instance_ = value; + ensureStringFiltersIsMutable(); + stringFilters_.add(index, value); onChanged(); } else { - embeddingBuilder_.setMessage(value); + stringFiltersBuilder_.addMessage(index, value); } - instanceCase_ = 2; return this; } /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setEmbedding( - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.Builder builderForValue) { - if (embeddingBuilder_ == null) { - instance_ = builderForValue.build(); + public Builder addStringFilters( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder builderForValue) { + if (stringFiltersBuilder_ == null) { + ensureStringFiltersIsMutable(); + stringFilters_.add(builderForValue.build()); onChanged(); } else { - embeddingBuilder_.setMessage(builderForValue.build()); + stringFiltersBuilder_.addMessage(builderForValue.build()); } - instanceCase_ = 2; return this; } /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeEmbedding( - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding value) { - if (embeddingBuilder_ == null) { - if (instanceCase_ == 2 - && instance_ - != com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding - .getDefaultInstance()) { - instance_ = - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.newBuilder( - (com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding) instance_) - .mergeFrom(value) - .buildPartial(); - } else { - instance_ = value; - } + public Builder addStringFilters( + int index, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder builderForValue) { + if (stringFiltersBuilder_ == null) { + ensureStringFiltersIsMutable(); + stringFilters_.add(index, builderForValue.build()); onChanged(); } else { - if (instanceCase_ == 2) { - embeddingBuilder_.mergeFrom(value); - } else { - embeddingBuilder_.setMessage(value); - } + stringFiltersBuilder_.addMessage(index, builderForValue.build()); } - instanceCase_ = 2; return this; } /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearEmbedding() { - if (embeddingBuilder_ == null) { - if (instanceCase_ == 2) { - instanceCase_ = 0; - instance_ = null; - onChanged(); - } + public Builder addAllStringFilters( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter> + values) { + if (stringFiltersBuilder_ == null) { + ensureStringFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stringFilters_); + onChanged(); } else { - if (instanceCase_ == 2) { - instanceCase_ = 0; - instance_ = null; - } - embeddingBuilder_.clear(); + stringFiltersBuilder_.addAllMessages(values); } return this; } @@ -4067,228 +6341,267 @@ public Builder clearEmbedding() { * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.Builder - getEmbeddingBuilder() { - return getEmbeddingFieldBuilder().getBuilder(); + public Builder clearStringFilters() { + if (stringFiltersBuilder_ == null) { + stringFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + stringFiltersBuilder_.clear(); + } + return this; } /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.NearestNeighborQuery.EmbeddingOrBuilder - getEmbeddingOrBuilder() { - if ((instanceCase_ == 2) && (embeddingBuilder_ != null)) { - return embeddingBuilder_.getMessageOrBuilder(); + public Builder removeStringFilters(int index) { + if (stringFiltersBuilder_ == null) { + ensureStringFiltersIsMutable(); + stringFilters_.remove(index); + onChanged(); } else { - if (instanceCase_ == 2) { - return (com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding) instance_; - } - return com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.getDefaultInstance(); + stringFiltersBuilder_.remove(index); } + return this; } /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.Builder, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.EmbeddingOrBuilder> - getEmbeddingFieldBuilder() { - if (embeddingBuilder_ == null) { - if (!(instanceCase_ == 2)) { - instance_ = - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.getDefaultInstance(); - } - embeddingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding.Builder, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.EmbeddingOrBuilder>( - (com.google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding) instance_, - getParentForChildren(), - isClean()); - instance_ = null; - } - instanceCase_ = 2; - onChanged(); - return embeddingBuilder_; + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder + getStringFiltersBuilder(int index) { + return getStringFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. The list of string filters.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilterOrBuilder + getStringFiltersOrBuilder(int index) { + if (stringFiltersBuilder_ == null) { + return stringFilters_.get(index); + } else { + return stringFiltersBuilder_.getMessageOrBuilder(index); + } } - - private int neighborCount_; /** * * *
-     * Optional. The number of similar entities to be retrieved from feature view
-     * for each query.
+     * Optional. The list of string filters.
      * 
* - * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The neighborCount. + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public int getNeighborCount() { - return neighborCount_; + public java.util.List< + ? extends com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilterOrBuilder> + getStringFiltersOrBuilderList() { + if (stringFiltersBuilder_ != null) { + return stringFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stringFilters_); + } } /** * * *
-     * Optional. The number of similar entities to be retrieved from feature view
-     * for each query.
+     * Optional. The list of string filters.
      * 
* - * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The neighborCount to set. - * @return This builder for chaining. + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setNeighborCount(int value) { - - neighborCount_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder + addStringFiltersBuilder() { + return getStringFiltersFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter + .getDefaultInstance()); } /** * * *
-     * Optional. The number of similar entities to be retrieved from feature view
-     * for each query.
+     * Optional. The list of string filters.
      * 
* - * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder + addStringFiltersBuilder(int index) { + return getStringFiltersFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter + .getDefaultInstance()); + } + /** * - * @return This builder for chaining. + * + *
+     * Optional. The list of string filters.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearNeighborCount() { - bitField0_ = (bitField0_ & ~0x00000004); - neighborCount_ = 0; - onChanged(); - return this; + public java.util.List + getStringFiltersBuilderList() { + return getStringFiltersFieldBuilder().getBuilderList(); } - private java.util.List - stringFilters_ = java.util.Collections.emptyList(); + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilterOrBuilder> + getStringFiltersFieldBuilder() { + if (stringFiltersBuilder_ == null) { + stringFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilterOrBuilder>( + stringFilters_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + stringFilters_ = null; + } + return stringFiltersBuilder_; + } - private void ensureStringFiltersIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - stringFilters_ = + private java.util.List + numericFilters_ = java.util.Collections.emptyList(); + + private void ensureNumericFiltersIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + numericFilters_ = new java.util.ArrayList< - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter>(stringFilters_); - bitField0_ |= 0x00000008; + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter>(numericFilters_); + bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilterOrBuilder> - stringFiltersBuilder_; + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Builder, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilterOrBuilder> + numericFiltersBuilder_; /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getStringFiltersList() { - if (stringFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(stringFilters_); + public java.util.List + getNumericFiltersList() { + if (numericFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(numericFilters_); } else { - return stringFiltersBuilder_.getMessageList(); + return numericFiltersBuilder_.getMessageList(); } } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public int getStringFiltersCount() { - if (stringFiltersBuilder_ == null) { - return stringFilters_.size(); + public int getNumericFiltersCount() { + if (numericFiltersBuilder_ == null) { + return numericFilters_.size(); } else { - return stringFiltersBuilder_.getCount(); + return numericFiltersBuilder_.getCount(); } } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter getStringFilters( + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter getNumericFilters( int index) { - if (stringFiltersBuilder_ == null) { - return stringFilters_.get(index); + if (numericFiltersBuilder_ == null) { + return numericFilters_.get(index); } else { - return stringFiltersBuilder_.getMessage(index); + return numericFiltersBuilder_.getMessage(index); } } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setStringFilters( - int index, com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter value) { - if (stringFiltersBuilder_ == null) { + public Builder setNumericFilters( + int index, com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter value) { + if (numericFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureStringFiltersIsMutable(); - stringFilters_.set(index, value); + ensureNumericFiltersIsMutable(); + numericFilters_.set(index, value); onChanged(); } else { - stringFiltersBuilder_.setMessage(index, value); + numericFiltersBuilder_.setMessage(index, value); } return this; } @@ -4296,22 +6609,22 @@ public Builder setStringFilters( * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setStringFilters( + public Builder setNumericFilters( int index, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder builderForValue) { - if (stringFiltersBuilder_ == null) { - ensureStringFiltersIsMutable(); - stringFilters_.set(index, builderForValue.build()); + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Builder builderForValue) { + if (numericFiltersBuilder_ == null) { + ensureNumericFiltersIsMutable(); + numericFilters_.set(index, builderForValue.build()); onChanged(); } else { - stringFiltersBuilder_.setMessage(index, builderForValue.build()); + numericFiltersBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -4319,24 +6632,24 @@ public Builder setStringFilters( * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addStringFilters( - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter value) { - if (stringFiltersBuilder_ == null) { + public Builder addNumericFilters( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter value) { + if (numericFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureStringFiltersIsMutable(); - stringFilters_.add(value); + ensureNumericFiltersIsMutable(); + numericFilters_.add(value); onChanged(); } else { - stringFiltersBuilder_.addMessage(value); + numericFiltersBuilder_.addMessage(value); } return this; } @@ -4344,24 +6657,24 @@ public Builder addStringFilters( * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addStringFilters( - int index, com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter value) { - if (stringFiltersBuilder_ == null) { + public Builder addNumericFilters( + int index, com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter value) { + if (numericFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureStringFiltersIsMutable(); - stringFilters_.add(index, value); + ensureNumericFiltersIsMutable(); + numericFilters_.add(index, value); onChanged(); } else { - stringFiltersBuilder_.addMessage(index, value); + numericFiltersBuilder_.addMessage(index, value); } return this; } @@ -4369,21 +6682,21 @@ public Builder addStringFilters( * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addStringFilters( - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder builderForValue) { - if (stringFiltersBuilder_ == null) { - ensureStringFiltersIsMutable(); - stringFilters_.add(builderForValue.build()); + public Builder addNumericFilters( + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Builder builderForValue) { + if (numericFiltersBuilder_ == null) { + ensureNumericFiltersIsMutable(); + numericFilters_.add(builderForValue.build()); onChanged(); } else { - stringFiltersBuilder_.addMessage(builderForValue.build()); + numericFiltersBuilder_.addMessage(builderForValue.build()); } return this; } @@ -4391,22 +6704,22 @@ public Builder addStringFilters( * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addStringFilters( + public Builder addNumericFilters( int index, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder builderForValue) { - if (stringFiltersBuilder_ == null) { - ensureStringFiltersIsMutable(); - stringFilters_.add(index, builderForValue.build()); + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Builder builderForValue) { + if (numericFiltersBuilder_ == null) { + ensureNumericFiltersIsMutable(); + numericFilters_.add(index, builderForValue.build()); onChanged(); } else { - stringFiltersBuilder_.addMessage(index, builderForValue.build()); + numericFiltersBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -4414,23 +6727,23 @@ public Builder addStringFilters( * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllStringFilters( + public Builder addAllNumericFilters( java.lang.Iterable< - ? extends com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter> + ? extends com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter> values) { - if (stringFiltersBuilder_ == null) { - ensureStringFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stringFilters_); + if (numericFiltersBuilder_ == null) { + ensureNumericFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, numericFilters_); onChanged(); } else { - stringFiltersBuilder_.addAllMessages(values); + numericFiltersBuilder_.addAllMessages(values); } return this; } @@ -4438,20 +6751,20 @@ public Builder addAllStringFilters( * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearStringFilters() { - if (stringFiltersBuilder_ == null) { - stringFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearNumericFilters() { + if (numericFiltersBuilder_ == null) { + numericFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { - stringFiltersBuilder_.clear(); + numericFiltersBuilder_.clear(); } return this; } @@ -4459,20 +6772,20 @@ public Builder clearStringFilters() { * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeStringFilters(int index) { - if (stringFiltersBuilder_ == null) { - ensureStringFiltersIsMutable(); - stringFilters_.remove(index); + public Builder removeNumericFilters(int index) { + if (numericFiltersBuilder_ == null) { + ensureNumericFiltersIsMutable(); + numericFilters_.remove(index); onChanged(); } else { - stringFiltersBuilder_.remove(index); + numericFiltersBuilder_.remove(index); } return this; } @@ -4480,127 +6793,127 @@ public Builder removeStringFilters(int index) { * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder - getStringFiltersBuilder(int index) { - return getStringFiltersFieldBuilder().getBuilder(index); + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Builder + getNumericFiltersBuilder(int index) { + return getNumericFiltersFieldBuilder().getBuilder(index); } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilterOrBuilder - getStringFiltersOrBuilder(int index) { - if (stringFiltersBuilder_ == null) { - return stringFilters_.get(index); + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilterOrBuilder + getNumericFiltersOrBuilder(int index) { + if (numericFiltersBuilder_ == null) { + return numericFilters_.get(index); } else { - return stringFiltersBuilder_.getMessageOrBuilder(index); + return numericFiltersBuilder_.getMessageOrBuilder(index); } } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List< - ? extends com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilterOrBuilder> - getStringFiltersOrBuilderList() { - if (stringFiltersBuilder_ != null) { - return stringFiltersBuilder_.getMessageOrBuilderList(); + ? extends com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilterOrBuilder> + getNumericFiltersOrBuilderList() { + if (numericFiltersBuilder_ != null) { + return numericFiltersBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(stringFilters_); + return java.util.Collections.unmodifiableList(numericFilters_); } } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder - addStringFiltersBuilder() { - return getStringFiltersFieldBuilder() + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Builder + addNumericFiltersBuilder() { + return getNumericFiltersFieldBuilder() .addBuilder( - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter .getDefaultInstance()); } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder - addStringFiltersBuilder(int index) { - return getStringFiltersFieldBuilder() + public com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Builder + addNumericFiltersBuilder(int index) { + return getNumericFiltersFieldBuilder() .addBuilder( index, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter .getDefaultInstance()); } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getStringFiltersBuilderList() { - return getStringFiltersFieldBuilder().getBuilderList(); + public java.util.List + getNumericFiltersBuilderList() { + return getNumericFiltersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilterOrBuilder> - getStringFiltersFieldBuilder() { - if (stringFiltersBuilder_ == null) { - stringFiltersBuilder_ = + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Builder, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilterOrBuilder> + getNumericFiltersFieldBuilder() { + if (numericFiltersBuilder_ == null) { + numericFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilter.Builder, - com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilterOrBuilder>( - stringFilters_, - ((bitField0_ & 0x00000008) != 0), + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Builder, + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilterOrBuilder>( + numericFilters_, + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - stringFilters_ = null; + numericFilters_ = null; } - return stringFiltersBuilder_; + return numericFiltersBuilder_; } private int perCrowdingAttributeNeighborCount_; @@ -4644,7 +6957,7 @@ public int getPerCrowdingAttributeNeighborCount() { public Builder setPerCrowdingAttributeNeighborCount(int value) { perCrowdingAttributeNeighborCount_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4665,7 +6978,7 @@ public Builder setPerCrowdingAttributeNeighborCount(int value) { * @return This builder for chaining. */ public Builder clearPerCrowdingAttributeNeighborCount() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); perCrowdingAttributeNeighborCount_ = 0; onChanged(); return this; @@ -4691,7 +7004,7 @@ public Builder clearPerCrowdingAttributeNeighborCount() { * @return Whether the parameters field is set. */ public boolean hasParameters() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -4736,7 +7049,7 @@ public Builder setParameters( } else { parametersBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4758,7 +7071,7 @@ public Builder setParameters( } else { parametersBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4776,7 +7089,7 @@ public Builder setParameters( public Builder mergeParameters( com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters value) { if (parametersBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && parameters_ != null && parameters_ != com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters @@ -4789,7 +7102,7 @@ public Builder mergeParameters( parametersBuilder_.mergeFrom(value); } if (parameters_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -4806,7 +7119,7 @@ public Builder mergeParameters( *
*/ public Builder clearParameters() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); parameters_ = null; if (parametersBuilder_ != null) { parametersBuilder_.dispose(); @@ -4828,7 +7141,7 @@ public Builder clearParameters() { */ public com.google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters.Builder getParametersBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getParametersFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborQueryOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborQueryOrBuilder.java index 99554cc3b142..7bb0c68cf864 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborQueryOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborQueryOrBuilder.java @@ -187,6 +187,71 @@ public interface NearestNeighborQueryOrBuilder com.google.cloud.aiplatform.v1.NearestNeighborQuery.StringFilterOrBuilder getStringFiltersOrBuilder(int index); + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getNumericFiltersList(); + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter getNumericFilters(int index); + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNumericFiltersCount(); + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilterOrBuilder> + getNumericFiltersOrBuilderList(); + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilterOrBuilder + getNumericFiltersOrBuilder(int index); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java new file mode 100644 index 000000000000..c4407eefd0e2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java @@ -0,0 +1,7446 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_execution_job.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * NotebookExecutionJob represents an instance of a notebook execution.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NotebookExecutionJob} + */ +public final class NotebookExecutionJob extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.NotebookExecutionJob) + NotebookExecutionJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use NotebookExecutionJob.newBuilder() to construct. + private NotebookExecutionJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NotebookExecutionJob() { + name_ = ""; + displayName_ = ""; + scheduleResourceName_ = ""; + jobState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NotebookExecutionJob(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 19: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.class, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder.class); + } + + public interface DataformRepositorySourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The resource name of the Dataform Repository. Format:
+     * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+     * 
+ * + * string dataform_repository_resource_name = 1; + * + * @return The dataformRepositoryResourceName. + */ + java.lang.String getDataformRepositoryResourceName(); + /** + * + * + *
+     * The resource name of the Dataform Repository. Format:
+     * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+     * 
+ * + * string dataform_repository_resource_name = 1; + * + * @return The bytes for dataformRepositoryResourceName. + */ + com.google.protobuf.ByteString getDataformRepositoryResourceNameBytes(); + + /** + * + * + *
+     * The commit SHA to read repository with. If unset, the file will be read
+     * at HEAD.
+     * 
+ * + * string commit_sha = 2; + * + * @return The commitSha. + */ + java.lang.String getCommitSha(); + /** + * + * + *
+     * The commit SHA to read repository with. If unset, the file will be read
+     * at HEAD.
+     * 
+ * + * string commit_sha = 2; + * + * @return The bytes for commitSha. + */ + com.google.protobuf.ByteString getCommitShaBytes(); + } + /** + * + * + *
+   * The Dataform Repository containing the input notebook.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource} + */ + public static final class DataformRepositorySource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) + DataformRepositorySourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataformRepositorySource.newBuilder() to construct. + private DataformRepositorySource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataformRepositorySource() { + dataformRepositoryResourceName_ = ""; + commitSha_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataformRepositorySource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DataformRepositorySource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DataformRepositorySource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource.class, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource.Builder + .class); + } + + public static final int DATAFORM_REPOSITORY_RESOURCE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataformRepositoryResourceName_ = ""; + /** + * + * + *
+     * The resource name of the Dataform Repository. Format:
+     * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+     * 
+ * + * string dataform_repository_resource_name = 1; + * + * @return The dataformRepositoryResourceName. + */ + @java.lang.Override + public java.lang.String getDataformRepositoryResourceName() { + java.lang.Object ref = dataformRepositoryResourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataformRepositoryResourceName_ = s; + return s; + } + } + /** + * + * + *
+     * The resource name of the Dataform Repository. Format:
+     * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+     * 
+ * + * string dataform_repository_resource_name = 1; + * + * @return The bytes for dataformRepositoryResourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataformRepositoryResourceNameBytes() { + java.lang.Object ref = dataformRepositoryResourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataformRepositoryResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_SHA_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitSha_ = ""; + /** + * + * + *
+     * The commit SHA to read repository with. If unset, the file will be read
+     * at HEAD.
+     * 
+ * + * string commit_sha = 2; + * + * @return The commitSha. + */ + @java.lang.Override + public java.lang.String getCommitSha() { + java.lang.Object ref = commitSha_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitSha_ = s; + return s; + } + } + /** + * + * + *
+     * The commit SHA to read repository with. If unset, the file will be read
+     * at HEAD.
+     * 
+ * + * string commit_sha = 2; + * + * @return The bytes for commitSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = commitSha_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataformRepositoryResourceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, dataformRepositoryResourceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitSha_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commitSha_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataformRepositoryResourceName_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 1, dataformRepositoryResourceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitSha_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commitSha_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource other = + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) obj; + + if (!getDataformRepositoryResourceName().equals(other.getDataformRepositoryResourceName())) + return false; + if (!getCommitSha().equals(other.getCommitSha())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATAFORM_REPOSITORY_RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDataformRepositoryResourceName().hashCode(); + hash = (37 * hash) + COMMIT_SHA_FIELD_NUMBER; + hash = (53 * hash) + getCommitSha().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The Dataform Repository containing the input notebook.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DataformRepositorySource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DataformRepositorySource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource.class, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataformRepositoryResourceName_ = ""; + commitSha_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DataformRepositorySource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource build() { + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + buildPartial() { + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource result = + new com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataformRepositoryResourceName_ = dataformRepositoryResourceName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.commitSha_ = commitSha_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource other) { + if (other + == com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + .getDefaultInstance()) return this; + if (!other.getDataformRepositoryResourceName().isEmpty()) { + dataformRepositoryResourceName_ = other.dataformRepositoryResourceName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCommitSha().isEmpty()) { + commitSha_ = other.commitSha_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dataformRepositoryResourceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + commitSha_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object dataformRepositoryResourceName_ = ""; + /** + * + * + *
+       * The resource name of the Dataform Repository. Format:
+       * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+       * 
+ * + * string dataform_repository_resource_name = 1; + * + * @return The dataformRepositoryResourceName. + */ + public java.lang.String getDataformRepositoryResourceName() { + java.lang.Object ref = dataformRepositoryResourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataformRepositoryResourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The resource name of the Dataform Repository. Format:
+       * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+       * 
+ * + * string dataform_repository_resource_name = 1; + * + * @return The bytes for dataformRepositoryResourceName. + */ + public com.google.protobuf.ByteString getDataformRepositoryResourceNameBytes() { + java.lang.Object ref = dataformRepositoryResourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataformRepositoryResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The resource name of the Dataform Repository. Format:
+       * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+       * 
+ * + * string dataform_repository_resource_name = 1; + * + * @param value The dataformRepositoryResourceName to set. + * @return This builder for chaining. + */ + public Builder setDataformRepositoryResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataformRepositoryResourceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The resource name of the Dataform Repository. Format:
+       * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+       * 
+ * + * string dataform_repository_resource_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDataformRepositoryResourceName() { + dataformRepositoryResourceName_ = getDefaultInstance().getDataformRepositoryResourceName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The resource name of the Dataform Repository. Format:
+       * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+       * 
+ * + * string dataform_repository_resource_name = 1; + * + * @param value The bytes for dataformRepositoryResourceName to set. + * @return This builder for chaining. + */ + public Builder setDataformRepositoryResourceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataformRepositoryResourceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object commitSha_ = ""; + /** + * + * + *
+       * The commit SHA to read repository with. If unset, the file will be read
+       * at HEAD.
+       * 
+ * + * string commit_sha = 2; + * + * @return The commitSha. + */ + public java.lang.String getCommitSha() { + java.lang.Object ref = commitSha_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitSha_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The commit SHA to read repository with. If unset, the file will be read
+       * at HEAD.
+       * 
+ * + * string commit_sha = 2; + * + * @return The bytes for commitSha. + */ + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = commitSha_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The commit SHA to read repository with. If unset, the file will be read
+       * at HEAD.
+       * 
+ * + * string commit_sha = 2; + * + * @param value The commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitSha_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The commit SHA to read repository with. If unset, the file will be read
+       * at HEAD.
+       * 
+ * + * string commit_sha = 2; + * + * @return This builder for chaining. + */ + public Builder clearCommitSha() { + commitSha_ = getDefaultInstance().getCommitSha(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * The commit SHA to read repository with. If unset, the file will be read
+       * at HEAD.
+       * 
+ * + * string commit_sha = 2; + * + * @param value The bytes for commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitSha_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) + private static final com.google.cloud.aiplatform.v1.NotebookExecutionJob + .DataformRepositorySource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource(); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataformRepositorySource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GcsNotebookSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The Cloud Storage uri pointing to the ipynb file. Format:
+     * `gs://bucket/notebook_file.ipynb`
+     * 
+ * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+     * The Cloud Storage uri pointing to the ipynb file. Format:
+     * `gs://bucket/notebook_file.ipynb`
+     * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+     * The version of the Cloud Storage object to read. If unset, the current
+     * version of the object is read. See
+     * https://cloud.google.com/storage/docs/metadata#generation-number.
+     * 
+ * + * string generation = 2; + * + * @return The generation. + */ + java.lang.String getGeneration(); + /** + * + * + *
+     * The version of the Cloud Storage object to read. If unset, the current
+     * version of the object is read. See
+     * https://cloud.google.com/storage/docs/metadata#generation-number.
+     * 
+ * + * string generation = 2; + * + * @return The bytes for generation. + */ + com.google.protobuf.ByteString getGenerationBytes(); + } + /** + * + * + *
+   * The Cloud Storage uri for the input notebook.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource} + */ + public static final class GcsNotebookSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) + GcsNotebookSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcsNotebookSource.newBuilder() to construct. + private GcsNotebookSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcsNotebookSource() { + uri_ = ""; + generation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsNotebookSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_GcsNotebookSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_GcsNotebookSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource.class, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+     * The Cloud Storage uri pointing to the ipynb file. Format:
+     * `gs://bucket/notebook_file.ipynb`
+     * 
+ * + * string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+     * The Cloud Storage uri pointing to the ipynb file. Format:
+     * `gs://bucket/notebook_file.ipynb`
+     * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GENERATION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object generation_ = ""; + /** + * + * + *
+     * The version of the Cloud Storage object to read. If unset, the current
+     * version of the object is read. See
+     * https://cloud.google.com/storage/docs/metadata#generation-number.
+     * 
+ * + * string generation = 2; + * + * @return The generation. + */ + @java.lang.Override + public java.lang.String getGeneration() { + java.lang.Object ref = generation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + generation_ = s; + return s; + } + } + /** + * + * + *
+     * The version of the Cloud Storage object to read. If unset, the current
+     * version of the object is read. See
+     * https://cloud.google.com/storage/docs/metadata#generation-number.
+     * 
+ * + * string generation = 2; + * + * @return The bytes for generation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGenerationBytes() { + java.lang.Object ref = generation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + generation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(generation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, generation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(generation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, generation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource other = + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getGeneration().equals(other.getGeneration())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + GENERATION_FIELD_NUMBER; + hash = (53 * hash) + getGeneration().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The Cloud Storage uri for the input notebook.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_GcsNotebookSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_GcsNotebookSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource.class, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + generation_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_GcsNotebookSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource build() { + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource buildPartial() { + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource result = + new com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.generation_ = generation_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource other) { + if (other + == com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + .getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getGeneration().isEmpty()) { + generation_ = other.generation_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + generation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + * + * + *
+       * The Cloud Storage uri pointing to the ipynb file. Format:
+       * `gs://bucket/notebook_file.ipynb`
+       * 
+ * + * string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The Cloud Storage uri pointing to the ipynb file. Format:
+       * `gs://bucket/notebook_file.ipynb`
+       * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The Cloud Storage uri pointing to the ipynb file. Format:
+       * `gs://bucket/notebook_file.ipynb`
+       * 
+ * + * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The Cloud Storage uri pointing to the ipynb file. Format:
+       * `gs://bucket/notebook_file.ipynb`
+       * 
+ * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The Cloud Storage uri pointing to the ipynb file. Format:
+       * `gs://bucket/notebook_file.ipynb`
+       * 
+ * + * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object generation_ = ""; + /** + * + * + *
+       * The version of the Cloud Storage object to read. If unset, the current
+       * version of the object is read. See
+       * https://cloud.google.com/storage/docs/metadata#generation-number.
+       * 
+ * + * string generation = 2; + * + * @return The generation. + */ + public java.lang.String getGeneration() { + java.lang.Object ref = generation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + generation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The version of the Cloud Storage object to read. If unset, the current
+       * version of the object is read. See
+       * https://cloud.google.com/storage/docs/metadata#generation-number.
+       * 
+ * + * string generation = 2; + * + * @return The bytes for generation. + */ + public com.google.protobuf.ByteString getGenerationBytes() { + java.lang.Object ref = generation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + generation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The version of the Cloud Storage object to read. If unset, the current
+       * version of the object is read. See
+       * https://cloud.google.com/storage/docs/metadata#generation-number.
+       * 
+ * + * string generation = 2; + * + * @param value The generation to set. + * @return This builder for chaining. + */ + public Builder setGeneration(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + generation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The version of the Cloud Storage object to read. If unset, the current
+       * version of the object is read. See
+       * https://cloud.google.com/storage/docs/metadata#generation-number.
+       * 
+ * + * string generation = 2; + * + * @return This builder for chaining. + */ + public Builder clearGeneration() { + generation_ = getDefaultInstance().getGeneration(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * The version of the Cloud Storage object to read. If unset, the current
+       * version of the object is read. See
+       * https://cloud.google.com/storage/docs/metadata#generation-number.
+       * 
+ * + * string generation = 2; + * + * @param value The bytes for generation to set. + * @return This builder for chaining. + */ + public Builder setGenerationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + generation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) + private static final com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource(); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsNotebookSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DirectNotebookSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The base64-encoded contents of the input notebook file.
+     * 
+ * + * bytes content = 1; + * + * @return The content. + */ + com.google.protobuf.ByteString getContent(); + } + /** + * + * + *
+   * The content of the input notebook in ipynb format.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource} + */ + public static final class DirectNotebookSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) + DirectNotebookSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use DirectNotebookSource.newBuilder() to construct. + private DirectNotebookSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DirectNotebookSource() { + content_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DirectNotebookSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DirectNotebookSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DirectNotebookSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource.class, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource.Builder + .class); + } + + public static final int CONTENT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * The base64-encoded contents of the input notebook file.
+     * 
+ * + * bytes content = 1; + * + * @return The content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContent() { + return content_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!content_.isEmpty()) { + output.writeBytes(1, content_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!content_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource other = + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) obj; + + if (!getContent().equals(other.getContent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The content of the input notebook in ipynb format.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DirectNotebookSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DirectNotebookSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource.class, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + content_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DirectNotebookSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource build() { + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + buildPartial() { + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource result = + new com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource other) { + if (other + == com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + .getDefaultInstance()) return this; + if (other.getContent() != com.google.protobuf.ByteString.EMPTY) { + setContent(other.getContent()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + content_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+       * The base64-encoded contents of the input notebook file.
+       * 
+ * + * bytes content = 1; + * + * @return The content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContent() { + return content_; + } + /** + * + * + *
+       * The base64-encoded contents of the input notebook file.
+       * 
+ * + * bytes content = 1; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The base64-encoded contents of the input notebook file.
+       * 
+ * + * bytes content = 1; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000001); + content_ = getDefaultInstance().getContent(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) + private static final com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource(); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DirectNotebookSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int notebookSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object notebookSource_; + + public enum NotebookSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DATAFORM_REPOSITORY_SOURCE(3), + GCS_NOTEBOOK_SOURCE(4), + DIRECT_NOTEBOOK_SOURCE(17), + NOTEBOOKSOURCE_NOT_SET(0); + private final int value; + + private NotebookSourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NotebookSourceCase valueOf(int value) { + return forNumber(value); + } + + public static NotebookSourceCase forNumber(int value) { + switch (value) { + case 3: + return DATAFORM_REPOSITORY_SOURCE; + case 4: + return GCS_NOTEBOOK_SOURCE; + case 17: + return DIRECT_NOTEBOOK_SOURCE; + case 0: + return NOTEBOOKSOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public NotebookSourceCase getNotebookSourceCase() { + return NotebookSourceCase.forNumber(notebookSourceCase_); + } + + private int environmentSpecCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object environmentSpec_; + + public enum EnvironmentSpecCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME(14), + ENVIRONMENTSPEC_NOT_SET(0); + private final int value; + + private EnvironmentSpecCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EnvironmentSpecCase valueOf(int value) { + return forNumber(value); + } + + public static EnvironmentSpecCase forNumber(int value) { + switch (value) { + case 14: + return NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME; + case 0: + return ENVIRONMENTSPEC_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EnvironmentSpecCase getEnvironmentSpecCase() { + return EnvironmentSpecCase.forNumber(environmentSpecCase_); + } + + private int executionSinkCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object executionSink_; + + public enum ExecutionSinkCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_OUTPUT_URI(8), + EXECUTIONSINK_NOT_SET(0); + private final int value; + + private ExecutionSinkCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExecutionSinkCase valueOf(int value) { + return forNumber(value); + } + + public static ExecutionSinkCase forNumber(int value) { + switch (value) { + case 8: + return GCS_OUTPUT_URI; + case 0: + return EXECUTIONSINK_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExecutionSinkCase getExecutionSinkCase() { + return ExecutionSinkCase.forNumber(executionSinkCase_); + } + + private int executionIdentityCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object executionIdentity_; + + public enum ExecutionIdentityCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EXECUTION_USER(9), + SERVICE_ACCOUNT(18), + EXECUTIONIDENTITY_NOT_SET(0); + private final int value; + + private ExecutionIdentityCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExecutionIdentityCase valueOf(int value) { + return forNumber(value); + } + + public static ExecutionIdentityCase forNumber(int value) { + switch (value) { + case 9: + return EXECUTION_USER; + case 18: + return SERVICE_ACCOUNT; + case 0: + return EXECUTIONIDENTITY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExecutionIdentityCase getExecutionIdentityCase() { + return ExecutionIdentityCase.forNumber(executionIdentityCase_); + } + + public static final int DATAFORM_REPOSITORY_SOURCE_FIELD_NUMBER = 3; + /** + * + * + *
+   * The Dataform Repository pointing to a single file notebook repository.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + * + * @return Whether the dataformRepositorySource field is set. + */ + @java.lang.Override + public boolean hasDataformRepositorySource() { + return notebookSourceCase_ == 3; + } + /** + * + * + *
+   * The Dataform Repository pointing to a single file notebook repository.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + * + * @return The dataformRepositorySource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + getDataformRepositorySource() { + if (notebookSourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) + notebookSource_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + .getDefaultInstance(); + } + /** + * + * + *
+   * The Dataform Repository pointing to a single file notebook repository.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySourceOrBuilder + getDataformRepositorySourceOrBuilder() { + if (notebookSourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) + notebookSource_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + .getDefaultInstance(); + } + + public static final int GCS_NOTEBOOK_SOURCE_FIELD_NUMBER = 4; + /** + * + * + *
+   * The Cloud Storage url pointing to the ipynb file. Format:
+   * `gs://bucket/notebook_file.ipynb`
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + * + * @return Whether the gcsNotebookSource field is set. + */ + @java.lang.Override + public boolean hasGcsNotebookSource() { + return notebookSourceCase_ == 4; + } + /** + * + * + *
+   * The Cloud Storage url pointing to the ipynb file. Format:
+   * `gs://bucket/notebook_file.ipynb`
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + * + * @return The gcsNotebookSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + getGcsNotebookSource() { + if (notebookSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) + notebookSource_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + .getDefaultInstance(); + } + /** + * + * + *
+   * The Cloud Storage url pointing to the ipynb file. Format:
+   * `gs://bucket/notebook_file.ipynb`
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSourceOrBuilder + getGcsNotebookSourceOrBuilder() { + if (notebookSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) + notebookSource_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + .getDefaultInstance(); + } + + public static final int DIRECT_NOTEBOOK_SOURCE_FIELD_NUMBER = 17; + /** + * + * + *
+   * The contents of an input notebook file.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + * + * @return Whether the directNotebookSource field is set. + */ + @java.lang.Override + public boolean hasDirectNotebookSource() { + return notebookSourceCase_ == 17; + } + /** + * + * + *
+   * The contents of an input notebook file.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + * + * @return The directNotebookSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + getDirectNotebookSource() { + if (notebookSourceCase_ == 17) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) + notebookSource_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + .getDefaultInstance(); + } + /** + * + * + *
+   * The contents of an input notebook file.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSourceOrBuilder + getDirectNotebookSourceOrBuilder() { + if (notebookSourceCase_ == 17) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) + notebookSource_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + .getDefaultInstance(); + } + + public static final int NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME_FIELD_NUMBER = 14; + /** + * + * + *
+   * The NotebookRuntimeTemplate to source compute configuration from.
+   * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return Whether the notebookRuntimeTemplateResourceName field is set. + */ + public boolean hasNotebookRuntimeTemplateResourceName() { + return environmentSpecCase_ == 14; + } + /** + * + * + *
+   * The NotebookRuntimeTemplate to source compute configuration from.
+   * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return The notebookRuntimeTemplateResourceName. + */ + public java.lang.String getNotebookRuntimeTemplateResourceName() { + java.lang.Object ref = ""; + if (environmentSpecCase_ == 14) { + ref = environmentSpec_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (environmentSpecCase_ == 14) { + environmentSpec_ = s; + } + return s; + } + } + /** + * + * + *
+   * The NotebookRuntimeTemplate to source compute configuration from.
+   * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for notebookRuntimeTemplateResourceName. + */ + public com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameBytes() { + java.lang.Object ref = ""; + if (environmentSpecCase_ == 14) { + ref = environmentSpec_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (environmentSpecCase_ == 14) { + environmentSpec_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCS_OUTPUT_URI_FIELD_NUMBER = 8; + /** + * + * + *
+   * The Cloud Storage location to upload the result to. Format:
+   * `gs://bucket-name`
+   * 
+ * + * string gcs_output_uri = 8; + * + * @return Whether the gcsOutputUri field is set. + */ + public boolean hasGcsOutputUri() { + return executionSinkCase_ == 8; + } + /** + * + * + *
+   * The Cloud Storage location to upload the result to. Format:
+   * `gs://bucket-name`
+   * 
+ * + * string gcs_output_uri = 8; + * + * @return The gcsOutputUri. + */ + public java.lang.String getGcsOutputUri() { + java.lang.Object ref = ""; + if (executionSinkCase_ == 8) { + ref = executionSink_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (executionSinkCase_ == 8) { + executionSink_ = s; + } + return s; + } + } + /** + * + * + *
+   * The Cloud Storage location to upload the result to. Format:
+   * `gs://bucket-name`
+   * 
+ * + * string gcs_output_uri = 8; + * + * @return The bytes for gcsOutputUri. + */ + public com.google.protobuf.ByteString getGcsOutputUriBytes() { + java.lang.Object ref = ""; + if (executionSinkCase_ == 8) { + ref = executionSink_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (executionSinkCase_ == 8) { + executionSink_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_USER_FIELD_NUMBER = 9; + /** + * + * + *
+   * The user email to run the execution as. Only supported by Colab runtimes.
+   * 
+ * + * string execution_user = 9; + * + * @return Whether the executionUser field is set. + */ + public boolean hasExecutionUser() { + return executionIdentityCase_ == 9; + } + /** + * + * + *
+   * The user email to run the execution as. Only supported by Colab runtimes.
+   * 
+ * + * string execution_user = 9; + * + * @return The executionUser. + */ + public java.lang.String getExecutionUser() { + java.lang.Object ref = ""; + if (executionIdentityCase_ == 9) { + ref = executionIdentity_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (executionIdentityCase_ == 9) { + executionIdentity_ = s; + } + return s; + } + } + /** + * + * + *
+   * The user email to run the execution as. Only supported by Colab runtimes.
+   * 
+ * + * string execution_user = 9; + * + * @return The bytes for executionUser. + */ + public com.google.protobuf.ByteString getExecutionUserBytes() { + java.lang.Object ref = ""; + if (executionIdentityCase_ == 9) { + ref = executionIdentity_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (executionIdentityCase_ == 9) { + executionIdentity_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 18; + /** + * + * + *
+   * The service account to run the execution as.
+   * 
+ * + * string service_account = 18; + * + * @return Whether the serviceAccount field is set. + */ + public boolean hasServiceAccount() { + return executionIdentityCase_ == 18; + } + /** + * + * + *
+   * The service account to run the execution as.
+   * 
+ * + * string service_account = 18; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = ""; + if (executionIdentityCase_ == 18) { + ref = executionIdentity_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (executionIdentityCase_ == 18) { + executionIdentity_ = s; + } + return s; + } + } + /** + * + * + *
+   * The service account to run the execution as.
+   * 
+ * + * string service_account = 18; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = ""; + if (executionIdentityCase_ == 18) { + ref = executionIdentity_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (executionIdentityCase_ == 18) { + executionIdentity_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name of this NotebookExecutionJob. Format:
+   * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of this NotebookExecutionJob. Format:
+   * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * The display name of the NotebookExecutionJob. The name can be up to 128
+   * characters long and can consist of any UTF-8 characters.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * The display name of the NotebookExecutionJob. The name can be up to 128
+   * characters long and can consist of any UTF-8 characters.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_TIMEOUT_FIELD_NUMBER = 5; + private com.google.protobuf.Duration executionTimeout_; + /** + * + * + *
+   * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+   * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + * + * @return Whether the executionTimeout field is set. + */ + @java.lang.Override + public boolean hasExecutionTimeout() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+   * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + * + * @return The executionTimeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getExecutionTimeout() { + return executionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : executionTimeout_; + } + /** + * + * + *
+   * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+   * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { + return executionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : executionTimeout_; + } + + public static final int SCHEDULE_RESOURCE_NAME_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object scheduleResourceName_ = ""; + /** + * + * + *
+   * Output only. The Schedule resource name if this job is triggered by one.
+   * Format:
+   * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+   * 
+ * + * + * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The scheduleResourceName. + */ + @java.lang.Override + public java.lang.String getScheduleResourceName() { + java.lang.Object ref = scheduleResourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scheduleResourceName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The Schedule resource name if this job is triggered by one.
+   * Format:
+   * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+   * 
+ * + * + * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scheduleResourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScheduleResourceNameBytes() { + java.lang.Object ref = scheduleResourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scheduleResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_STATE_FIELD_NUMBER = 10; + private int jobState_ = 0; + /** + * + * + *
+   * Output only. The state of the NotebookExecutionJob.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for jobState. + */ + @java.lang.Override + public int getJobStateValue() { + return jobState_; + } + /** + * + * + *
+   * Output only. The state of the NotebookExecutionJob.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The jobState. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.JobState getJobState() { + com.google.cloud.aiplatform.v1.JobState result = + com.google.cloud.aiplatform.v1.JobState.forNumber(jobState_); + return result == null ? com.google.cloud.aiplatform.v1.JobState.UNRECOGNIZED : result; + } + + public static final int STATUS_FIELD_NUMBER = 11; + private com.google.rpc.Status status_; + /** + * + * + *
+   * Output only. Populated when the NotebookExecutionJob is completed. When
+   * there is an error during notebook execution, the error details are
+   * populated.
+   * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Populated when the NotebookExecutionJob is completed. When
+   * there is an error during notebook execution, the error details are
+   * populated.
+   * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + @java.lang.Override + public com.google.rpc.Status getStatus() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + /** + * + * + *
+   * Output only. Populated when the NotebookExecutionJob is completed. When
+   * there is an error during notebook execution, the error details are
+   * populated.
+   * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 12; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this NotebookExecutionJob was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when this NotebookExecutionJob was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this NotebookExecutionJob was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 13; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this NotebookExecutionJob was most recently
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when this NotebookExecutionJob was most recently
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this NotebookExecutionJob was most recently
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 19; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize NotebookExecutionJobs.
+   *
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   *
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 19; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize NotebookExecutionJobs.
+   *
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   *
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 19; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize NotebookExecutionJobs.
+   *
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   *
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 19; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The labels with user-defined metadata to organize NotebookExecutionJobs.
+   *
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   *
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 19; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (notebookSourceCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) + notebookSource_); + } + if (notebookSourceCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) notebookSource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getExecutionTimeout()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheduleResourceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, scheduleResourceName_); + } + if (executionSinkCase_ == 8) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, executionSink_); + } + if (executionIdentityCase_ == 9) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, executionIdentity_); + } + if (jobState_ != com.google.cloud.aiplatform.v1.JobState.JOB_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(10, jobState_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(11, getStatus()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(12, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(13, getUpdateTime()); + } + if (environmentSpecCase_ == 14) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, environmentSpec_); + } + if (notebookSourceCase_ == 17) { + output.writeMessage( + 17, + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) + notebookSource_); + } + if (executionIdentityCase_ == 18) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, executionIdentity_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 19); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (notebookSourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) + notebookSource_); + } + if (notebookSourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) + notebookSource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExecutionTimeout()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheduleResourceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, scheduleResourceName_); + } + if (executionSinkCase_ == 8) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, executionSink_); + } + if (executionIdentityCase_ == 9) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, executionIdentity_); + } + if (jobState_ != com.google.cloud.aiplatform.v1.JobState.JOB_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, jobState_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getStatus()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getUpdateTime()); + } + if (environmentSpecCase_ == 14) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, environmentSpec_); + } + if (notebookSourceCase_ == 17) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) + notebookSource_); + } + if (executionIdentityCase_ == 18) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, executionIdentity_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, labels__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.NotebookExecutionJob)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.NotebookExecutionJob other = + (com.google.cloud.aiplatform.v1.NotebookExecutionJob) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasExecutionTimeout() != other.hasExecutionTimeout()) return false; + if (hasExecutionTimeout()) { + if (!getExecutionTimeout().equals(other.getExecutionTimeout())) return false; + } + if (!getScheduleResourceName().equals(other.getScheduleResourceName())) return false; + if (jobState_ != other.jobState_) return false; + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus().equals(other.getStatus())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getNotebookSourceCase().equals(other.getNotebookSourceCase())) return false; + switch (notebookSourceCase_) { + case 3: + if (!getDataformRepositorySource().equals(other.getDataformRepositorySource())) + return false; + break; + case 4: + if (!getGcsNotebookSource().equals(other.getGcsNotebookSource())) return false; + break; + case 17: + if (!getDirectNotebookSource().equals(other.getDirectNotebookSource())) return false; + break; + case 0: + default: + } + if (!getEnvironmentSpecCase().equals(other.getEnvironmentSpecCase())) return false; + switch (environmentSpecCase_) { + case 14: + if (!getNotebookRuntimeTemplateResourceName() + .equals(other.getNotebookRuntimeTemplateResourceName())) return false; + break; + case 0: + default: + } + if (!getExecutionSinkCase().equals(other.getExecutionSinkCase())) return false; + switch (executionSinkCase_) { + case 8: + if (!getGcsOutputUri().equals(other.getGcsOutputUri())) return false; + break; + case 0: + default: + } + if (!getExecutionIdentityCase().equals(other.getExecutionIdentityCase())) return false; + switch (executionIdentityCase_) { + case 9: + if (!getExecutionUser().equals(other.getExecutionUser())) return false; + break; + case 18: + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasExecutionTimeout()) { + hash = (37 * hash) + EXECUTION_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getExecutionTimeout().hashCode(); + } + hash = (37 * hash) + SCHEDULE_RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getScheduleResourceName().hashCode(); + hash = (37 * hash) + JOB_STATE_FIELD_NUMBER; + hash = (53 * hash) + jobState_; + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + switch (notebookSourceCase_) { + case 3: + hash = (37 * hash) + DATAFORM_REPOSITORY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDataformRepositorySource().hashCode(); + break; + case 4: + hash = (37 * hash) + GCS_NOTEBOOK_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsNotebookSource().hashCode(); + break; + case 17: + hash = (37 * hash) + DIRECT_NOTEBOOK_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDirectNotebookSource().hashCode(); + break; + case 0: + default: + } + switch (environmentSpecCase_) { + case 14: + hash = (37 * hash) + NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getNotebookRuntimeTemplateResourceName().hashCode(); + break; + case 0: + default: + } + switch (executionSinkCase_) { + case 8: + hash = (37 * hash) + GCS_OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsOutputUri().hashCode(); + break; + case 0: + default: + } + switch (executionIdentityCase_) { + case 9: + hash = (37 * hash) + EXECUTION_USER_FIELD_NUMBER; + hash = (53 * hash) + getExecutionUser().hashCode(); + break; + case 18: + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.NotebookExecutionJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * NotebookExecutionJob represents an instance of a notebook execution.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NotebookExecutionJob} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.NotebookExecutionJob) + com.google.cloud.aiplatform.v1.NotebookExecutionJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 19: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 19: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.class, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.NotebookExecutionJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExecutionTimeoutFieldBuilder(); + getStatusFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataformRepositorySourceBuilder_ != null) { + dataformRepositorySourceBuilder_.clear(); + } + if (gcsNotebookSourceBuilder_ != null) { + gcsNotebookSourceBuilder_.clear(); + } + if (directNotebookSourceBuilder_ != null) { + directNotebookSourceBuilder_.clear(); + } + name_ = ""; + displayName_ = ""; + executionTimeout_ = null; + if (executionTimeoutBuilder_ != null) { + executionTimeoutBuilder_.dispose(); + executionTimeoutBuilder_ = null; + } + scheduleResourceName_ = ""; + jobState_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + notebookSourceCase_ = 0; + notebookSource_ = null; + environmentSpecCase_ = 0; + environmentSpec_ = null; + executionSinkCase_ = 0; + executionSink_ = null; + executionIdentityCase_ = 0; + executionIdentity_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob build() { + com.google.cloud.aiplatform.v1.NotebookExecutionJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob buildPartial() { + com.google.cloud.aiplatform.v1.NotebookExecutionJob result = + new com.google.cloud.aiplatform.v1.NotebookExecutionJob(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.NotebookExecutionJob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.executionTimeout_ = + executionTimeoutBuilder_ == null ? executionTimeout_ : executionTimeoutBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.scheduleResourceName_ = scheduleResourceName_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.jobState_ = jobState_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.NotebookExecutionJob result) { + result.notebookSourceCase_ = notebookSourceCase_; + result.notebookSource_ = this.notebookSource_; + if (notebookSourceCase_ == 3 && dataformRepositorySourceBuilder_ != null) { + result.notebookSource_ = dataformRepositorySourceBuilder_.build(); + } + if (notebookSourceCase_ == 4 && gcsNotebookSourceBuilder_ != null) { + result.notebookSource_ = gcsNotebookSourceBuilder_.build(); + } + if (notebookSourceCase_ == 17 && directNotebookSourceBuilder_ != null) { + result.notebookSource_ = directNotebookSourceBuilder_.build(); + } + result.environmentSpecCase_ = environmentSpecCase_; + result.environmentSpec_ = this.environmentSpec_; + result.executionSinkCase_ = executionSinkCase_; + result.executionSink_ = this.executionSink_; + result.executionIdentityCase_ = executionIdentityCase_; + result.executionIdentity_ = this.executionIdentity_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.NotebookExecutionJob) { + return mergeFrom((com.google.cloud.aiplatform.v1.NotebookExecutionJob) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.NotebookExecutionJob other) { + if (other == com.google.cloud.aiplatform.v1.NotebookExecutionJob.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasExecutionTimeout()) { + mergeExecutionTimeout(other.getExecutionTimeout()); + } + if (!other.getScheduleResourceName().isEmpty()) { + scheduleResourceName_ = other.scheduleResourceName_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.jobState_ != 0) { + setJobStateValue(other.getJobStateValue()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00008000; + switch (other.getNotebookSourceCase()) { + case DATAFORM_REPOSITORY_SOURCE: + { + mergeDataformRepositorySource(other.getDataformRepositorySource()); + break; + } + case GCS_NOTEBOOK_SOURCE: + { + mergeGcsNotebookSource(other.getGcsNotebookSource()); + break; + } + case DIRECT_NOTEBOOK_SOURCE: + { + mergeDirectNotebookSource(other.getDirectNotebookSource()); + break; + } + case NOTEBOOKSOURCE_NOT_SET: + { + break; + } + } + switch (other.getEnvironmentSpecCase()) { + case NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME: + { + environmentSpecCase_ = 14; + environmentSpec_ = other.environmentSpec_; + onChanged(); + break; + } + case ENVIRONMENTSPEC_NOT_SET: + { + break; + } + } + switch (other.getExecutionSinkCase()) { + case GCS_OUTPUT_URI: + { + executionSinkCase_ = 8; + executionSink_ = other.executionSink_; + onChanged(); + break; + } + case EXECUTIONSINK_NOT_SET: + { + break; + } + } + switch (other.getExecutionIdentityCase()) { + case EXECUTION_USER: + { + executionIdentityCase_ = 9; + executionIdentity_ = other.executionIdentity_; + onChanged(); + break; + } + case SERVICE_ACCOUNT: + { + executionIdentityCase_ = 18; + executionIdentity_ = other.executionIdentity_; + onChanged(); + break; + } + case EXECUTIONIDENTITY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 18 + case 26: + { + input.readMessage( + getDataformRepositorySourceFieldBuilder().getBuilder(), extensionRegistry); + notebookSourceCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getGcsNotebookSourceFieldBuilder().getBuilder(), extensionRegistry); + notebookSourceCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getExecutionTimeoutFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 42 + case 50: + { + scheduleResourceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 50 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + executionSinkCase_ = 8; + executionSink_ = s; + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + executionIdentityCase_ = 9; + executionIdentity_ = s; + break; + } // case 74 + case 80: + { + jobState_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 80 + case 90: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 90 + case 98: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 98 + case 106: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 106 + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + environmentSpecCase_ = 14; + environmentSpec_ = s; + break; + } // case 114 + case 138: + { + input.readMessage( + getDirectNotebookSourceFieldBuilder().getBuilder(), extensionRegistry); + notebookSourceCase_ = 17; + break; + } // case 138 + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); + executionIdentityCase_ = 18; + executionIdentity_ = s; + break; + } // case 146 + case 154: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00008000; + break; + } // case 154 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int notebookSourceCase_ = 0; + private java.lang.Object notebookSource_; + + public NotebookSourceCase getNotebookSourceCase() { + return NotebookSourceCase.forNumber(notebookSourceCase_); + } + + public Builder clearNotebookSource() { + notebookSourceCase_ = 0; + notebookSource_ = null; + onChanged(); + return this; + } + + private int environmentSpecCase_ = 0; + private java.lang.Object environmentSpec_; + + public EnvironmentSpecCase getEnvironmentSpecCase() { + return EnvironmentSpecCase.forNumber(environmentSpecCase_); + } + + public Builder clearEnvironmentSpec() { + environmentSpecCase_ = 0; + environmentSpec_ = null; + onChanged(); + return this; + } + + private int executionSinkCase_ = 0; + private java.lang.Object executionSink_; + + public ExecutionSinkCase getExecutionSinkCase() { + return ExecutionSinkCase.forNumber(executionSinkCase_); + } + + public Builder clearExecutionSink() { + executionSinkCase_ = 0; + executionSink_ = null; + onChanged(); + return this; + } + + private int executionIdentityCase_ = 0; + private java.lang.Object executionIdentity_; + + public ExecutionIdentityCase getExecutionIdentityCase() { + return ExecutionIdentityCase.forNumber(executionIdentityCase_); + } + + public Builder clearExecutionIdentity() { + executionIdentityCase_ = 0; + executionIdentity_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySourceOrBuilder> + dataformRepositorySourceBuilder_; + /** + * + * + *
+     * The Dataform Repository pointing to a single file notebook repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + * + * @return Whether the dataformRepositorySource field is set. + */ + @java.lang.Override + public boolean hasDataformRepositorySource() { + return notebookSourceCase_ == 3; + } + /** + * + * + *
+     * The Dataform Repository pointing to a single file notebook repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + * + * @return The dataformRepositorySource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + getDataformRepositorySource() { + if (dataformRepositorySourceBuilder_ == null) { + if (notebookSourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) + notebookSource_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + .getDefaultInstance(); + } else { + if (notebookSourceCase_ == 3) { + return dataformRepositorySourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The Dataform Repository pointing to a single file notebook repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + */ + public Builder setDataformRepositorySource( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource value) { + if (dataformRepositorySourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + notebookSource_ = value; + onChanged(); + } else { + dataformRepositorySourceBuilder_.setMessage(value); + } + notebookSourceCase_ = 3; + return this; + } + /** + * + * + *
+     * The Dataform Repository pointing to a single file notebook repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + */ + public Builder setDataformRepositorySource( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource.Builder + builderForValue) { + if (dataformRepositorySourceBuilder_ == null) { + notebookSource_ = builderForValue.build(); + onChanged(); + } else { + dataformRepositorySourceBuilder_.setMessage(builderForValue.build()); + } + notebookSourceCase_ = 3; + return this; + } + /** + * + * + *
+     * The Dataform Repository pointing to a single file notebook repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + */ + public Builder mergeDataformRepositorySource( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource value) { + if (dataformRepositorySourceBuilder_ == null) { + if (notebookSourceCase_ == 3 + && notebookSource_ + != com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + .getDefaultInstance()) { + notebookSource_ = + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + .newBuilder( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) + notebookSource_) + .mergeFrom(value) + .buildPartial(); + } else { + notebookSource_ = value; + } + onChanged(); + } else { + if (notebookSourceCase_ == 3) { + dataformRepositorySourceBuilder_.mergeFrom(value); + } else { + dataformRepositorySourceBuilder_.setMessage(value); + } + } + notebookSourceCase_ = 3; + return this; + } + /** + * + * + *
+     * The Dataform Repository pointing to a single file notebook repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + */ + public Builder clearDataformRepositorySource() { + if (dataformRepositorySourceBuilder_ == null) { + if (notebookSourceCase_ == 3) { + notebookSourceCase_ = 0; + notebookSource_ = null; + onChanged(); + } + } else { + if (notebookSourceCase_ == 3) { + notebookSourceCase_ = 0; + notebookSource_ = null; + } + dataformRepositorySourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Dataform Repository pointing to a single file notebook repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + */ + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource.Builder + getDataformRepositorySourceBuilder() { + return getDataformRepositorySourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Dataform Repository pointing to a single file notebook repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySourceOrBuilder + getDataformRepositorySourceOrBuilder() { + if ((notebookSourceCase_ == 3) && (dataformRepositorySourceBuilder_ != null)) { + return dataformRepositorySourceBuilder_.getMessageOrBuilder(); + } else { + if (notebookSourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) + notebookSource_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The Dataform Repository pointing to a single file notebook repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySourceOrBuilder> + getDataformRepositorySourceFieldBuilder() { + if (dataformRepositorySourceBuilder_ == null) { + if (!(notebookSourceCase_ == 3)) { + notebookSource_ = + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + .getDefaultInstance(); + } + dataformRepositorySourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + .Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob + .DataformRepositorySourceOrBuilder>( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource) + notebookSource_, + getParentForChildren(), + isClean()); + notebookSource_ = null; + } + notebookSourceCase_ = 3; + onChanged(); + return dataformRepositorySourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSourceOrBuilder> + gcsNotebookSourceBuilder_; + /** + * + * + *
+     * The Cloud Storage url pointing to the ipynb file. Format:
+     * `gs://bucket/notebook_file.ipynb`
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + * + * @return Whether the gcsNotebookSource field is set. + */ + @java.lang.Override + public boolean hasGcsNotebookSource() { + return notebookSourceCase_ == 4; + } + /** + * + * + *
+     * The Cloud Storage url pointing to the ipynb file. Format:
+     * `gs://bucket/notebook_file.ipynb`
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + * + * @return The gcsNotebookSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + getGcsNotebookSource() { + if (gcsNotebookSourceBuilder_ == null) { + if (notebookSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) + notebookSource_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + .getDefaultInstance(); + } else { + if (notebookSourceCase_ == 4) { + return gcsNotebookSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The Cloud Storage url pointing to the ipynb file. Format:
+     * `gs://bucket/notebook_file.ipynb`
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + */ + public Builder setGcsNotebookSource( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource value) { + if (gcsNotebookSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + notebookSource_ = value; + onChanged(); + } else { + gcsNotebookSourceBuilder_.setMessage(value); + } + notebookSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * The Cloud Storage url pointing to the ipynb file. Format:
+     * `gs://bucket/notebook_file.ipynb`
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + */ + public Builder setGcsNotebookSource( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource.Builder + builderForValue) { + if (gcsNotebookSourceBuilder_ == null) { + notebookSource_ = builderForValue.build(); + onChanged(); + } else { + gcsNotebookSourceBuilder_.setMessage(builderForValue.build()); + } + notebookSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * The Cloud Storage url pointing to the ipynb file. Format:
+     * `gs://bucket/notebook_file.ipynb`
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + */ + public Builder mergeGcsNotebookSource( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource value) { + if (gcsNotebookSourceBuilder_ == null) { + if (notebookSourceCase_ == 4 + && notebookSource_ + != com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + .getDefaultInstance()) { + notebookSource_ = + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource.newBuilder( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) + notebookSource_) + .mergeFrom(value) + .buildPartial(); + } else { + notebookSource_ = value; + } + onChanged(); + } else { + if (notebookSourceCase_ == 4) { + gcsNotebookSourceBuilder_.mergeFrom(value); + } else { + gcsNotebookSourceBuilder_.setMessage(value); + } + } + notebookSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * The Cloud Storage url pointing to the ipynb file. Format:
+     * `gs://bucket/notebook_file.ipynb`
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + */ + public Builder clearGcsNotebookSource() { + if (gcsNotebookSourceBuilder_ == null) { + if (notebookSourceCase_ == 4) { + notebookSourceCase_ = 0; + notebookSource_ = null; + onChanged(); + } + } else { + if (notebookSourceCase_ == 4) { + notebookSourceCase_ = 0; + notebookSource_ = null; + } + gcsNotebookSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Cloud Storage url pointing to the ipynb file. Format:
+     * `gs://bucket/notebook_file.ipynb`
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + */ + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource.Builder + getGcsNotebookSourceBuilder() { + return getGcsNotebookSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Cloud Storage url pointing to the ipynb file. Format:
+     * `gs://bucket/notebook_file.ipynb`
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSourceOrBuilder + getGcsNotebookSourceOrBuilder() { + if ((notebookSourceCase_ == 4) && (gcsNotebookSourceBuilder_ != null)) { + return gcsNotebookSourceBuilder_.getMessageOrBuilder(); + } else { + if (notebookSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) + notebookSource_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The Cloud Storage url pointing to the ipynb file. Format:
+     * `gs://bucket/notebook_file.ipynb`
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSourceOrBuilder> + getGcsNotebookSourceFieldBuilder() { + if (gcsNotebookSourceBuilder_ == null) { + if (!(notebookSourceCase_ == 4)) { + notebookSource_ = + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource + .getDefaultInstance(); + } + gcsNotebookSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource) + notebookSource_, + getParentForChildren(), + isClean()); + notebookSource_ = null; + } + notebookSourceCase_ = 4; + onChanged(); + return gcsNotebookSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSourceOrBuilder> + directNotebookSourceBuilder_; + /** + * + * + *
+     * The contents of an input notebook file.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + * + * @return Whether the directNotebookSource field is set. + */ + @java.lang.Override + public boolean hasDirectNotebookSource() { + return notebookSourceCase_ == 17; + } + /** + * + * + *
+     * The contents of an input notebook file.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + * + * @return The directNotebookSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + getDirectNotebookSource() { + if (directNotebookSourceBuilder_ == null) { + if (notebookSourceCase_ == 17) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) + notebookSource_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + .getDefaultInstance(); + } else { + if (notebookSourceCase_ == 17) { + return directNotebookSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The contents of an input notebook file.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + */ + public Builder setDirectNotebookSource( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource value) { + if (directNotebookSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + notebookSource_ = value; + onChanged(); + } else { + directNotebookSourceBuilder_.setMessage(value); + } + notebookSourceCase_ = 17; + return this; + } + /** + * + * + *
+     * The contents of an input notebook file.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + */ + public Builder setDirectNotebookSource( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource.Builder + builderForValue) { + if (directNotebookSourceBuilder_ == null) { + notebookSource_ = builderForValue.build(); + onChanged(); + } else { + directNotebookSourceBuilder_.setMessage(builderForValue.build()); + } + notebookSourceCase_ = 17; + return this; + } + /** + * + * + *
+     * The contents of an input notebook file.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + */ + public Builder mergeDirectNotebookSource( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource value) { + if (directNotebookSourceBuilder_ == null) { + if (notebookSourceCase_ == 17 + && notebookSource_ + != com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + .getDefaultInstance()) { + notebookSource_ = + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource.newBuilder( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) + notebookSource_) + .mergeFrom(value) + .buildPartial(); + } else { + notebookSource_ = value; + } + onChanged(); + } else { + if (notebookSourceCase_ == 17) { + directNotebookSourceBuilder_.mergeFrom(value); + } else { + directNotebookSourceBuilder_.setMessage(value); + } + } + notebookSourceCase_ = 17; + return this; + } + /** + * + * + *
+     * The contents of an input notebook file.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + */ + public Builder clearDirectNotebookSource() { + if (directNotebookSourceBuilder_ == null) { + if (notebookSourceCase_ == 17) { + notebookSourceCase_ = 0; + notebookSource_ = null; + onChanged(); + } + } else { + if (notebookSourceCase_ == 17) { + notebookSourceCase_ = 0; + notebookSource_ = null; + } + directNotebookSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The contents of an input notebook file.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + */ + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource.Builder + getDirectNotebookSourceBuilder() { + return getDirectNotebookSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The contents of an input notebook file.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSourceOrBuilder + getDirectNotebookSourceOrBuilder() { + if ((notebookSourceCase_ == 17) && (directNotebookSourceBuilder_ != null)) { + return directNotebookSourceBuilder_.getMessageOrBuilder(); + } else { + if (notebookSourceCase_ == 17) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) + notebookSource_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The contents of an input notebook file.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSourceOrBuilder> + getDirectNotebookSourceFieldBuilder() { + if (directNotebookSourceBuilder_ == null) { + if (!(notebookSourceCase_ == 17)) { + notebookSource_ = + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + .getDefaultInstance(); + } + directNotebookSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource) + notebookSource_, + getParentForChildren(), + isClean()); + notebookSource_ = null; + } + notebookSourceCase_ = 17; + onChanged(); + return directNotebookSourceBuilder_; + } + + /** + * + * + *
+     * The NotebookRuntimeTemplate to source compute configuration from.
+     * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return Whether the notebookRuntimeTemplateResourceName field is set. + */ + @java.lang.Override + public boolean hasNotebookRuntimeTemplateResourceName() { + return environmentSpecCase_ == 14; + } + /** + * + * + *
+     * The NotebookRuntimeTemplate to source compute configuration from.
+     * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return The notebookRuntimeTemplateResourceName. + */ + @java.lang.Override + public java.lang.String getNotebookRuntimeTemplateResourceName() { + java.lang.Object ref = ""; + if (environmentSpecCase_ == 14) { + ref = environmentSpec_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (environmentSpecCase_ == 14) { + environmentSpec_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The NotebookRuntimeTemplate to source compute configuration from.
+     * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for notebookRuntimeTemplateResourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameBytes() { + java.lang.Object ref = ""; + if (environmentSpecCase_ == 14) { + ref = environmentSpec_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (environmentSpecCase_ == 14) { + environmentSpec_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The NotebookRuntimeTemplate to source compute configuration from.
+     * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param value The notebookRuntimeTemplateResourceName to set. + * @return This builder for chaining. + */ + public Builder setNotebookRuntimeTemplateResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + environmentSpecCase_ = 14; + environmentSpec_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The NotebookRuntimeTemplate to source compute configuration from.
+     * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNotebookRuntimeTemplateResourceName() { + if (environmentSpecCase_ == 14) { + environmentSpecCase_ = 0; + environmentSpec_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The NotebookRuntimeTemplate to source compute configuration from.
+     * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for notebookRuntimeTemplateResourceName to set. + * @return This builder for chaining. + */ + public Builder setNotebookRuntimeTemplateResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + environmentSpecCase_ = 14; + environmentSpec_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Cloud Storage location to upload the result to. Format:
+     * `gs://bucket-name`
+     * 
+ * + * string gcs_output_uri = 8; + * + * @return Whether the gcsOutputUri field is set. + */ + @java.lang.Override + public boolean hasGcsOutputUri() { + return executionSinkCase_ == 8; + } + /** + * + * + *
+     * The Cloud Storage location to upload the result to. Format:
+     * `gs://bucket-name`
+     * 
+ * + * string gcs_output_uri = 8; + * + * @return The gcsOutputUri. + */ + @java.lang.Override + public java.lang.String getGcsOutputUri() { + java.lang.Object ref = ""; + if (executionSinkCase_ == 8) { + ref = executionSink_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (executionSinkCase_ == 8) { + executionSink_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Cloud Storage location to upload the result to. Format:
+     * `gs://bucket-name`
+     * 
+ * + * string gcs_output_uri = 8; + * + * @return The bytes for gcsOutputUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsOutputUriBytes() { + java.lang.Object ref = ""; + if (executionSinkCase_ == 8) { + ref = executionSink_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (executionSinkCase_ == 8) { + executionSink_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Cloud Storage location to upload the result to. Format:
+     * `gs://bucket-name`
+     * 
+ * + * string gcs_output_uri = 8; + * + * @param value The gcsOutputUri to set. + * @return This builder for chaining. + */ + public Builder setGcsOutputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + executionSinkCase_ = 8; + executionSink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Storage location to upload the result to. Format:
+     * `gs://bucket-name`
+     * 
+ * + * string gcs_output_uri = 8; + * + * @return This builder for chaining. + */ + public Builder clearGcsOutputUri() { + if (executionSinkCase_ == 8) { + executionSinkCase_ = 0; + executionSink_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The Cloud Storage location to upload the result to. Format:
+     * `gs://bucket-name`
+     * 
+ * + * string gcs_output_uri = 8; + * + * @param value The bytes for gcsOutputUri to set. + * @return This builder for chaining. + */ + public Builder setGcsOutputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + executionSinkCase_ = 8; + executionSink_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The user email to run the execution as. Only supported by Colab runtimes.
+     * 
+ * + * string execution_user = 9; + * + * @return Whether the executionUser field is set. + */ + @java.lang.Override + public boolean hasExecutionUser() { + return executionIdentityCase_ == 9; + } + /** + * + * + *
+     * The user email to run the execution as. Only supported by Colab runtimes.
+     * 
+ * + * string execution_user = 9; + * + * @return The executionUser. + */ + @java.lang.Override + public java.lang.String getExecutionUser() { + java.lang.Object ref = ""; + if (executionIdentityCase_ == 9) { + ref = executionIdentity_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (executionIdentityCase_ == 9) { + executionIdentity_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The user email to run the execution as. Only supported by Colab runtimes.
+     * 
+ * + * string execution_user = 9; + * + * @return The bytes for executionUser. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecutionUserBytes() { + java.lang.Object ref = ""; + if (executionIdentityCase_ == 9) { + ref = executionIdentity_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (executionIdentityCase_ == 9) { + executionIdentity_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The user email to run the execution as. Only supported by Colab runtimes.
+     * 
+ * + * string execution_user = 9; + * + * @param value The executionUser to set. + * @return This builder for chaining. + */ + public Builder setExecutionUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + executionIdentityCase_ = 9; + executionIdentity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The user email to run the execution as. Only supported by Colab runtimes.
+     * 
+ * + * string execution_user = 9; + * + * @return This builder for chaining. + */ + public Builder clearExecutionUser() { + if (executionIdentityCase_ == 9) { + executionIdentityCase_ = 0; + executionIdentity_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The user email to run the execution as. Only supported by Colab runtimes.
+     * 
+ * + * string execution_user = 9; + * + * @param value The bytes for executionUser to set. + * @return This builder for chaining. + */ + public Builder setExecutionUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + executionIdentityCase_ = 9; + executionIdentity_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @return Whether the serviceAccount field is set. + */ + @java.lang.Override + public boolean hasServiceAccount() { + return executionIdentityCase_ == 18; + } + /** + * + * + *
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = ""; + if (executionIdentityCase_ == 18) { + ref = executionIdentity_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (executionIdentityCase_ == 18) { + executionIdentity_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = ""; + if (executionIdentityCase_ == 18) { + ref = executionIdentity_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (executionIdentityCase_ == 18) { + executionIdentity_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + executionIdentityCase_ = 18; + executionIdentity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + if (executionIdentityCase_ == 18) { + executionIdentityCase_ = 0; + executionIdentity_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + executionIdentityCase_ = 18; + executionIdentity_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of this NotebookExecutionJob. Format:
+     * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of this NotebookExecutionJob. Format:
+     * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of this NotebookExecutionJob. Format:
+     * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of this NotebookExecutionJob. Format:
+     * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of this NotebookExecutionJob. Format:
+     * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * The display name of the NotebookExecutionJob. The name can be up to 128
+     * characters long and can consist of any UTF-8 characters.
+     * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The display name of the NotebookExecutionJob. The name can be up to 128
+     * characters long and can consist of any UTF-8 characters.
+     * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The display name of the NotebookExecutionJob. The name can be up to 128
+     * characters long and can consist of any UTF-8 characters.
+     * 
+ * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * The display name of the NotebookExecutionJob. The name can be up to 128
+     * characters long and can consist of any UTF-8 characters.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * The display name of the NotebookExecutionJob. The name can be up to 128
+     * characters long and can consist of any UTF-8 characters.
+     * 
+ * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.protobuf.Duration executionTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + executionTimeoutBuilder_; + /** + * + * + *
+     * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+     * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + * + * @return Whether the executionTimeout field is set. + */ + public boolean hasExecutionTimeout() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+     * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+     * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + * + * @return The executionTimeout. + */ + public com.google.protobuf.Duration getExecutionTimeout() { + if (executionTimeoutBuilder_ == null) { + return executionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : executionTimeout_; + } else { + return executionTimeoutBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+     * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + */ + public Builder setExecutionTimeout(com.google.protobuf.Duration value) { + if (executionTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionTimeout_ = value; + } else { + executionTimeoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+     * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + */ + public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderForValue) { + if (executionTimeoutBuilder_ == null) { + executionTimeout_ = builderForValue.build(); + } else { + executionTimeoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+     * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + */ + public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { + if (executionTimeoutBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && executionTimeout_ != null + && executionTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + getExecutionTimeoutBuilder().mergeFrom(value); + } else { + executionTimeout_ = value; + } + } else { + executionTimeoutBuilder_.mergeFrom(value); + } + if (executionTimeout_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+     * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + */ + public Builder clearExecutionTimeout() { + bitField0_ = (bitField0_ & ~0x00000200); + executionTimeout_ = null; + if (executionTimeoutBuilder_ != null) { + executionTimeoutBuilder_.dispose(); + executionTimeoutBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+     * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + */ + public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getExecutionTimeoutFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+     * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + */ + public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { + if (executionTimeoutBuilder_ != null) { + return executionTimeoutBuilder_.getMessageOrBuilder(); + } else { + return executionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : executionTimeout_; + } + } + /** + * + * + *
+     * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+     * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getExecutionTimeoutFieldBuilder() { + if (executionTimeoutBuilder_ == null) { + executionTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getExecutionTimeout(), getParentForChildren(), isClean()); + executionTimeout_ = null; + } + return executionTimeoutBuilder_; + } + + private java.lang.Object scheduleResourceName_ = ""; + /** + * + * + *
+     * Output only. The Schedule resource name if this job is triggered by one.
+     * Format:
+     * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+     * 
+ * + * + * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The scheduleResourceName. + */ + public java.lang.String getScheduleResourceName() { + java.lang.Object ref = scheduleResourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scheduleResourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The Schedule resource name if this job is triggered by one.
+     * Format:
+     * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+     * 
+ * + * + * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scheduleResourceName. + */ + public com.google.protobuf.ByteString getScheduleResourceNameBytes() { + java.lang.Object ref = scheduleResourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scheduleResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The Schedule resource name if this job is triggered by one.
+     * Format:
+     * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+     * 
+ * + * + * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The scheduleResourceName to set. + * @return This builder for chaining. + */ + public Builder setScheduleResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scheduleResourceName_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Schedule resource name if this job is triggered by one.
+     * Format:
+     * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+     * 
+ * + * + * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearScheduleResourceName() { + scheduleResourceName_ = getDefaultInstance().getScheduleResourceName(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Schedule resource name if this job is triggered by one.
+     * Format:
+     * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+     * 
+ * + * + * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for scheduleResourceName to set. + * @return This builder for chaining. + */ + public Builder setScheduleResourceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scheduleResourceName_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private int jobState_ = 0; + /** + * + * + *
+     * Output only. The state of the NotebookExecutionJob.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for jobState. + */ + @java.lang.Override + public int getJobStateValue() { + return jobState_; + } + /** + * + * + *
+     * Output only. The state of the NotebookExecutionJob.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for jobState to set. + * @return This builder for chaining. + */ + public Builder setJobStateValue(int value) { + jobState_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of the NotebookExecutionJob.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The jobState. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.JobState getJobState() { + com.google.cloud.aiplatform.v1.JobState result = + com.google.cloud.aiplatform.v1.JobState.forNumber(jobState_); + return result == null ? com.google.cloud.aiplatform.v1.JobState.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The state of the NotebookExecutionJob.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The jobState to set. + * @return This builder for chaining. + */ + public Builder setJobState(com.google.cloud.aiplatform.v1.JobState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + jobState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of the NotebookExecutionJob.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearJobState() { + bitField0_ = (bitField0_ & ~0x00000800); + jobState_ = 0; + onChanged(); + return this; + } + + private com.google.rpc.Status status_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; + /** + * + * + *
+     * Output only. Populated when the NotebookExecutionJob is completed. When
+     * there is an error during notebook execution, the error details are
+     * populated.
+     * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
+     * Output only. Populated when the NotebookExecutionJob is completed. When
+     * there is an error during notebook execution, the error details are
+     * populated.
+     * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Populated when the NotebookExecutionJob is completed. When
+     * there is an error during notebook execution, the error details are
+     * populated.
+     * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Populated when the NotebookExecutionJob is completed. When
+     * there is an error during notebook execution, the error details are
+     * populated.
+     * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Populated when the NotebookExecutionJob is completed. When
+     * there is an error during notebook execution, the error details are
+     * populated.
+     * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Populated when the NotebookExecutionJob is completed. When
+     * there is an error during notebook execution, the error details are
+     * populated.
+     * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00001000); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Populated when the NotebookExecutionJob is completed. When
+     * there is an error during notebook execution, the error details are
+     * populated.
+     * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Populated when the NotebookExecutionJob is completed. When
+     * there is an error during notebook execution, the error details are
+     * populated.
+     * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + } + /** + * + * + *
+     * Output only. Populated when the NotebookExecutionJob is completed. When
+     * there is an error during notebook execution, the error details are
+     * populated.
+     * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); + status_ = null; + } + return statusBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00002000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was most recently
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was most recently
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was most recently
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was most recently
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was most recently
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was most recently
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00004000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was most recently
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was most recently
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this NotebookExecutionJob was most recently
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00008000; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize NotebookExecutionJobs.
+     *
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     *
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 19; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize NotebookExecutionJobs.
+     *
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     *
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 19; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize NotebookExecutionJobs.
+     *
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     *
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 19; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize NotebookExecutionJobs.
+     *
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     *
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 19; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00008000); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize NotebookExecutionJobs.
+     *
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     *
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 19; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00008000; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize NotebookExecutionJobs.
+     *
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     *
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 19; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00008000; + return this; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize NotebookExecutionJobs.
+     *
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     *
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+     * and are immutable.
+     * 
+ * + * map<string, string> labels = 19; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00008000; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.NotebookExecutionJob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.NotebookExecutionJob) + private static final com.google.cloud.aiplatform.v1.NotebookExecutionJob DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.NotebookExecutionJob(); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotebookExecutionJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobName.java new file mode 100644 index 000000000000..3e35a6f4f275 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobName.java @@ -0,0 +1,232 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class NotebookExecutionJobName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_NOTEBOOK_EXECUTION_JOB = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String notebookExecutionJob; + + @Deprecated + protected NotebookExecutionJobName() { + project = null; + location = null; + notebookExecutionJob = null; + } + + private NotebookExecutionJobName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + notebookExecutionJob = Preconditions.checkNotNull(builder.getNotebookExecutionJob()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getNotebookExecutionJob() { + return notebookExecutionJob; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static NotebookExecutionJobName of( + String project, String location, String notebookExecutionJob) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setNotebookExecutionJob(notebookExecutionJob) + .build(); + } + + public static String format(String project, String location, String notebookExecutionJob) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setNotebookExecutionJob(notebookExecutionJob) + .build() + .toString(); + } + + public static NotebookExecutionJobName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_NOTEBOOK_EXECUTION_JOB.validatedMatch( + formattedString, "NotebookExecutionJobName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("notebook_execution_job")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (NotebookExecutionJobName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_NOTEBOOK_EXECUTION_JOB.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (notebookExecutionJob != null) { + fieldMapBuilder.put("notebook_execution_job", notebookExecutionJob); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_NOTEBOOK_EXECUTION_JOB.instantiate( + "project", project, "location", location, "notebook_execution_job", notebookExecutionJob); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + NotebookExecutionJobName that = ((NotebookExecutionJobName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.notebookExecutionJob, that.notebookExecutionJob); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(notebookExecutionJob); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}. + */ + public static class Builder { + private String project; + private String location; + private String notebookExecutionJob; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getNotebookExecutionJob() { + return notebookExecutionJob; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setNotebookExecutionJob(String notebookExecutionJob) { + this.notebookExecutionJob = notebookExecutionJob; + return this; + } + + private Builder(NotebookExecutionJobName notebookExecutionJobName) { + this.project = notebookExecutionJobName.project; + this.location = notebookExecutionJobName.location; + this.notebookExecutionJob = notebookExecutionJobName.notebookExecutionJob; + } + + public NotebookExecutionJobName build() { + return new NotebookExecutionJobName(this); + } + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java new file mode 100644 index 000000000000..1121ff209b65 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java @@ -0,0 +1,692 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_execution_job.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +public interface NotebookExecutionJobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.NotebookExecutionJob) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Dataform Repository pointing to a single file notebook repository.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + * + * @return Whether the dataformRepositorySource field is set. + */ + boolean hasDataformRepositorySource(); + /** + * + * + *
+   * The Dataform Repository pointing to a single file notebook repository.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + * + * @return The dataformRepositorySource. + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource + getDataformRepositorySource(); + /** + * + * + *
+   * The Dataform Repository pointing to a single file notebook repository.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3; + * + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DataformRepositorySourceOrBuilder + getDataformRepositorySourceOrBuilder(); + + /** + * + * + *
+   * The Cloud Storage url pointing to the ipynb file. Format:
+   * `gs://bucket/notebook_file.ipynb`
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + * + * @return Whether the gcsNotebookSource field is set. + */ + boolean hasGcsNotebookSource(); + /** + * + * + *
+   * The Cloud Storage url pointing to the ipynb file. Format:
+   * `gs://bucket/notebook_file.ipynb`
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + * + * @return The gcsNotebookSource. + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource getGcsNotebookSource(); + /** + * + * + *
+   * The Cloud Storage url pointing to the ipynb file. Format:
+   * `gs://bucket/notebook_file.ipynb`
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4; + * + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJob.GcsNotebookSourceOrBuilder + getGcsNotebookSourceOrBuilder(); + + /** + * + * + *
+   * The contents of an input notebook file.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + * + * @return Whether the directNotebookSource field is set. + */ + boolean hasDirectNotebookSource(); + /** + * + * + *
+   * The contents of an input notebook file.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + * + * @return The directNotebookSource. + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource + getDirectNotebookSource(); + /** + * + * + *
+   * The contents of an input notebook file.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSource direct_notebook_source = 17; + * + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJob.DirectNotebookSourceOrBuilder + getDirectNotebookSourceOrBuilder(); + + /** + * + * + *
+   * The NotebookRuntimeTemplate to source compute configuration from.
+   * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return Whether the notebookRuntimeTemplateResourceName field is set. + */ + boolean hasNotebookRuntimeTemplateResourceName(); + /** + * + * + *
+   * The NotebookRuntimeTemplate to source compute configuration from.
+   * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return The notebookRuntimeTemplateResourceName. + */ + java.lang.String getNotebookRuntimeTemplateResourceName(); + /** + * + * + *
+   * The NotebookRuntimeTemplate to source compute configuration from.
+   * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for notebookRuntimeTemplateResourceName. + */ + com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameBytes(); + + /** + * + * + *
+   * The Cloud Storage location to upload the result to. Format:
+   * `gs://bucket-name`
+   * 
+ * + * string gcs_output_uri = 8; + * + * @return Whether the gcsOutputUri field is set. + */ + boolean hasGcsOutputUri(); + /** + * + * + *
+   * The Cloud Storage location to upload the result to. Format:
+   * `gs://bucket-name`
+   * 
+ * + * string gcs_output_uri = 8; + * + * @return The gcsOutputUri. + */ + java.lang.String getGcsOutputUri(); + /** + * + * + *
+   * The Cloud Storage location to upload the result to. Format:
+   * `gs://bucket-name`
+   * 
+ * + * string gcs_output_uri = 8; + * + * @return The bytes for gcsOutputUri. + */ + com.google.protobuf.ByteString getGcsOutputUriBytes(); + + /** + * + * + *
+   * The user email to run the execution as. Only supported by Colab runtimes.
+   * 
+ * + * string execution_user = 9; + * + * @return Whether the executionUser field is set. + */ + boolean hasExecutionUser(); + /** + * + * + *
+   * The user email to run the execution as. Only supported by Colab runtimes.
+   * 
+ * + * string execution_user = 9; + * + * @return The executionUser. + */ + java.lang.String getExecutionUser(); + /** + * + * + *
+   * The user email to run the execution as. Only supported by Colab runtimes.
+   * 
+ * + * string execution_user = 9; + * + * @return The bytes for executionUser. + */ + com.google.protobuf.ByteString getExecutionUserBytes(); + + /** + * + * + *
+   * The service account to run the execution as.
+   * 
+ * + * string service_account = 18; + * + * @return Whether the serviceAccount field is set. + */ + boolean hasServiceAccount(); + /** + * + * + *
+   * The service account to run the execution as.
+   * 
+ * + * string service_account = 18; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *
+   * The service account to run the execution as.
+   * 
+ * + * string service_account = 18; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
+   * Output only. The resource name of this NotebookExecutionJob. Format:
+   * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of this NotebookExecutionJob. Format:
+   * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The display name of the NotebookExecutionJob. The name can be up to 128
+   * characters long and can consist of any UTF-8 characters.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The display name of the NotebookExecutionJob. The name can be up to 128
+   * characters long and can consist of any UTF-8 characters.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+   * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + * + * @return Whether the executionTimeout field is set. + */ + boolean hasExecutionTimeout(); + /** + * + * + *
+   * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+   * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + * + * @return The executionTimeout. + */ + com.google.protobuf.Duration getExecutionTimeout(); + /** + * + * + *
+   * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+   * 
+ * + * .google.protobuf.Duration execution_timeout = 5; + */ + com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder(); + + /** + * + * + *
+   * Output only. The Schedule resource name if this job is triggered by one.
+   * Format:
+   * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+   * 
+ * + * + * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The scheduleResourceName. + */ + java.lang.String getScheduleResourceName(); + /** + * + * + *
+   * Output only. The Schedule resource name if this job is triggered by one.
+   * Format:
+   * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+   * 
+ * + * + * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scheduleResourceName. + */ + com.google.protobuf.ByteString getScheduleResourceNameBytes(); + + /** + * + * + *
+   * Output only. The state of the NotebookExecutionJob.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for jobState. + */ + int getJobStateValue(); + /** + * + * + *
+   * Output only. The state of the NotebookExecutionJob.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The jobState. + */ + com.google.cloud.aiplatform.v1.JobState getJobState(); + + /** + * + * + *
+   * Output only. Populated when the NotebookExecutionJob is completed. When
+   * there is an error during notebook execution, the error details are
+   * populated.
+   * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * + * + *
+   * Output only. Populated when the NotebookExecutionJob is completed. When
+   * there is an error during notebook execution, the error details are
+   * populated.
+   * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + com.google.rpc.Status getStatus(); + /** + * + * + *
+   * Output only. Populated when the NotebookExecutionJob is completed. When
+   * there is an error during notebook execution, the error details are
+   * populated.
+   * 
+ * + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getStatusOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this NotebookExecutionJob was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this NotebookExecutionJob was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this NotebookExecutionJob was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this NotebookExecutionJob was most recently
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this NotebookExecutionJob was most recently
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this NotebookExecutionJob was most recently
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * The labels with user-defined metadata to organize NotebookExecutionJobs.
+   *
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   *
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 19; + */ + int getLabelsCount(); + /** + * + * + *
+   * The labels with user-defined metadata to organize NotebookExecutionJobs.
+   *
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   *
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 19; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * The labels with user-defined metadata to organize NotebookExecutionJobs.
+   *
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   *
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 19; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The labels with user-defined metadata to organize NotebookExecutionJobs.
+   *
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   *
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 19; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * The labels with user-defined metadata to organize NotebookExecutionJobs.
+   *
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   *
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * System reserved label keys are prefixed with "aiplatform.googleapis.com/"
+   * and are immutable.
+   * 
+ * + * map<string, string> labels = 19; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + com.google.cloud.aiplatform.v1.NotebookExecutionJob.NotebookSourceCase getNotebookSourceCase(); + + com.google.cloud.aiplatform.v1.NotebookExecutionJob.EnvironmentSpecCase getEnvironmentSpecCase(); + + com.google.cloud.aiplatform.v1.NotebookExecutionJob.ExecutionSinkCase getExecutionSinkCase(); + + com.google.cloud.aiplatform.v1.NotebookExecutionJob.ExecutionIdentityCase + getExecutionIdentityCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java new file mode 100644 index 000000000000..8e6ea60d3c43 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java @@ -0,0 +1,205 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_execution_job.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +public final class NotebookExecutionJobProto { + private NotebookExecutionJobProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DataformRepositorySource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DataformRepositorySource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_GcsNotebookSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_GcsNotebookSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DirectNotebookSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DirectNotebookSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/aiplatform/v1/notebook_ex" + + "ecution_job.proto\022\032google.cloud.aiplatfo" + + "rm.v1\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032*google/cloud/" + + "aiplatform/v1/job_state.proto\032\036google/pr" + + "otobuf/duration.proto\032\037google/protobuf/t" + + "imestamp.proto\032\027google/rpc/status.proto\"" + + "\315\013\n\024NotebookExecutionJob\022o\n\032dataform_rep" + + "ository_source\030\003 \001(\0132I.google.cloud.aipl" + + "atform.v1.NotebookExecutionJob.DataformR" + + "epositorySourceH\000\022a\n\023gcs_notebook_source" + + "\030\004 \001(\0132B.google.cloud.aiplatform.v1.Note" + + "bookExecutionJob.GcsNotebookSourceH\000\022g\n\026" + + "direct_notebook_source\030\021 \001(\0132E.google.cl" + + "oud.aiplatform.v1.NotebookExecutionJob.D" + + "irectNotebookSourceH\000\022i\n\'notebook_runtim" + + "e_template_resource_name\030\016 \001(\tB6\372A3\n1aip" + + "latform.googleapis.com/NotebookRuntimeTe" + + "mplateH\001\022\030\n\016gcs_output_uri\030\010 \001(\tH\002\022\030\n\016ex" + + "ecution_user\030\t \001(\tH\003\022\031\n\017service_account\030" + + "\022 \001(\tH\003\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_na" + + "me\030\002 \001(\t\0224\n\021execution_timeout\030\005 \001(\0132\031.go" + + "ogle.protobuf.Duration\022J\n\026schedule_resou" + + "rce_name\030\006 \001(\tB*\340A\003\372A$\n\"aiplatform.googl" + + "eapis.com/Schedule\022<\n\tjob_state\030\n \001(\0162$." + + "google.cloud.aiplatform.v1.JobStateB\003\340A\003" + + "\022\'\n\006status\030\013 \001(\0132\022.google.rpc.StatusB\003\340A" + + "\003\0224\n\013create_time\030\014 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\r \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022L\n\006labels\030" + + "\023 \003(\0132<.google.cloud.aiplatform.v1.Noteb" + + "ookExecutionJob.LabelsEntry\032Y\n\030DataformR" + + "epositorySource\022)\n!dataform_repository_r" + + "esource_name\030\001 \001(\t\022\022\n\ncommit_sha\030\002 \001(\t\0324" + + "\n\021GcsNotebookSource\022\013\n\003uri\030\001 \001(\t\022\022\n\ngene" + + "ration\030\002 \001(\t\032\'\n\024DirectNotebookSource\022\017\n\007" + + "content\030\001 \001(\014\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001:\271\001\352A\265\001\n.aiplatform." + + "googleapis.com/NotebookExecutionJob\022Vpro" + + "jects/{project}/locations/{location}/not" + + "ebookExecutionJobs/{notebook_execution_j" + + "ob}*\025notebookExecutionJobs2\024notebookExec" + + "utionJobB\021\n\017notebook_sourceB\022\n\020environme" + + "nt_specB\020\n\016execution_sinkB\024\n\022execution_i" + + "dentityB\327\001\n\036com.google.cloud.aiplatform." + + "v1B\031NotebookExecutionJobProtoP\001Z>cloud.g" + + "oogle.com/go/aiplatform/apiv1/aiplatform" + + "pb;aiplatformpb\252\002\032Google.Cloud.AIPlatfor" + + "m.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Goog" + + "le::Cloud::AIPlatform::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1.JobStateProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor, + new java.lang.String[] { + "DataformRepositorySource", + "GcsNotebookSource", + "DirectNotebookSource", + "NotebookRuntimeTemplateResourceName", + "GcsOutputUri", + "ExecutionUser", + "ServiceAccount", + "Name", + "DisplayName", + "ExecutionTimeout", + "ScheduleResourceName", + "JobState", + "Status", + "CreateTime", + "UpdateTime", + "Labels", + "NotebookSource", + "EnvironmentSpec", + "ExecutionSink", + "ExecutionIdentity", + }); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DataformRepositorySource_descriptor = + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DataformRepositorySource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DataformRepositorySource_descriptor, + new java.lang.String[] { + "DataformRepositoryResourceName", "CommitSha", + }); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_GcsNotebookSource_descriptor = + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_GcsNotebookSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_GcsNotebookSource_descriptor, + new java.lang.String[] { + "Uri", "Generation", + }); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DirectNotebookSource_descriptor = + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DirectNotebookSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DirectNotebookSource_descriptor, + new java.lang.String[] { + "Content", + }); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1.JobStateProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobView.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobView.java new file mode 100644 index 000000000000..02d0c92a1cfe --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobView.java @@ -0,0 +1,182 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Views for Get/List NotebookExecutionJob
+ * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.NotebookExecutionJobView} + */ +public enum NotebookExecutionJobView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * When unspecified, the API defaults to the BASIC view.
+   * 
+ * + * NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED = 0; + */ + NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * Includes all fields except for direct notebook inputs.
+   * 
+ * + * NOTEBOOK_EXECUTION_JOB_VIEW_BASIC = 1; + */ + NOTEBOOK_EXECUTION_JOB_VIEW_BASIC(1), + /** + * + * + *
+   * Includes all fields.
+   * 
+ * + * NOTEBOOK_EXECUTION_JOB_VIEW_FULL = 2; + */ + NOTEBOOK_EXECUTION_JOB_VIEW_FULL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * When unspecified, the API defaults to the BASIC view.
+   * 
+ * + * NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED = 0; + */ + public static final int NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Includes all fields except for direct notebook inputs.
+   * 
+ * + * NOTEBOOK_EXECUTION_JOB_VIEW_BASIC = 1; + */ + public static final int NOTEBOOK_EXECUTION_JOB_VIEW_BASIC_VALUE = 1; + /** + * + * + *
+   * Includes all fields.
+   * 
+ * + * NOTEBOOK_EXECUTION_JOB_VIEW_FULL = 2; + */ + public static final int NOTEBOOK_EXECUTION_JOB_VIEW_FULL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NotebookExecutionJobView valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static NotebookExecutionJobView forNumber(int value) { + switch (value) { + case 0: + return NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED; + case 1: + return NOTEBOOK_EXECUTION_JOB_VIEW_BASIC; + case 2: + return NOTEBOOK_EXECUTION_JOB_VIEW_FULL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NotebookExecutionJobView findValueByNumber(int number) { + return NotebookExecutionJobView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookServiceProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final NotebookExecutionJobView[] VALUES = values(); + + public static NotebookExecutionJobView valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NotebookExecutionJobView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.NotebookExecutionJobView) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceProto.java index eaaa170bd682..82236e7f2f3b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceProto.java @@ -104,6 +104,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_StartNotebookRuntimeResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_StartNotebookRuntimeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_GetNotebookExecutionJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_GetNotebookExecutionJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_DeleteNotebookExecutionJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_DeleteNotebookExecutionJobRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -117,161 +141,219 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rvice.proto\022\032google.cloud.aiplatform.v1\032" + "\034google/api/annotations.proto\032\027google/ap" + "i/client.proto\032\037google/api/field_behavio" - + "r.proto\032\031google/api/resource.proto\0321goog" - + "le/cloud/aiplatform/v1/notebook_runtime." - + "proto\032*google/cloud/aiplatform/v1/operat" - + "ion.proto\032#google/longrunning/operations" - + ".proto\032\033google/protobuf/empty.proto\032 goo" - + "gle/protobuf/field_mask.proto\"\351\001\n$Create" - + "NotebookRuntimeTemplateRequest\0229\n\006parent" - + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" - + "/Location\022[\n\031notebook_runtime_template\030\002" - + " \001(\01323.google.cloud.aiplatform.v1.Notebo" - + "okRuntimeTemplateB\003\340A\002\022)\n\034notebook_runti" - + "me_template_id\030\003 \001(\tB\003\340A\001\"\200\001\n.CreateNote" - + "bookRuntimeTemplateOperationMetadata\022N\n\020" - + "generic_metadata\030\001 \001(\01324.google.cloud.ai" - + "platform.v1.GenericOperationMetadata\"l\n!" - + "GetNotebookRuntimeTemplateRequest\022G\n\004nam" - + "e\030\001 \001(\tB9\340A\002\372A3\n1aiplatform.googleapis.c" - + "om/NotebookRuntimeTemplate\"\361\001\n#ListNoteb" - + "ookRuntimeTemplatesRequest\0229\n\006parent\030\001 \001" - + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" - + "ation\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030" - + "\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\0222\n\tr" - + "ead_mask\030\005 \001(\0132\032.google.protobuf.FieldMa" - + "skB\003\340A\001\022\025\n\010order_by\030\006 \001(\tB\003\340A\001\"\230\001\n$ListN" - + "otebookRuntimeTemplatesResponse\022W\n\032noteb" - + "ook_runtime_templates\030\001 \003(\01323.google.clo" - + "ud.aiplatform.v1.NotebookRuntimeTemplate" - + "\022\027\n\017next_page_token\030\002 \001(\t\"o\n$DeleteNoteb" - + "ookRuntimeTemplateRequest\022G\n\004name\030\001 \001(\tB" - + "9\340A\002\372A3\n1aiplatform.googleapis.com/Noteb" - + "ookRuntimeTemplate\"\271\001\n$UpdateNotebookRun" - + "timeTemplateRequest\022[\n\031notebook_runtime_" - + "template\030\001 \001(\01323.google.cloud.aiplatform" - + ".v1.NotebookRuntimeTemplateB\003\340A\002\0224\n\013upda" - + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "kB\003\340A\002\"\245\002\n\034AssignNotebookRuntimeRequest\022" - + "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl" - + "eapis.com/Location\022\\\n\031notebook_runtime_t" - + "emplate\030\002 \001(\tB9\340A\002\372A3\n1aiplatform.google" - + "apis.com/NotebookRuntimeTemplate\022J\n\020note" - + "book_runtime\030\003 \001(\0132+.google.cloud.aiplat" - + "form.v1.NotebookRuntimeB\003\340A\002\022 \n\023notebook" - + "_runtime_id\030\004 \001(\tB\003\340A\001\"\222\001\n&AssignNoteboo" - + "kRuntimeOperationMetadata\022N\n\020generic_met" - + "adata\030\001 \001(\01324.google.cloud.aiplatform.v1" - + ".GenericOperationMetadata\022\030\n\020progress_me" - + "ssage\030\002 \001(\t\"\\\n\031GetNotebookRuntimeRequest" - + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googl" - + "eapis.com/NotebookRuntime\"\351\001\n\033ListNotebo" - + "okRuntimesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A" - + "#\n!locations.googleapis.com/Location\022\023\n\006" - + "filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A" - + "\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\0222\n\tread_mask\030" - + "\005 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\025" - + "\n\010order_by\030\006 \001(\tB\003\340A\001\"\177\n\034ListNotebookRun" - + "timesResponse\022F\n\021notebook_runtimes\030\001 \003(\013" - + "2+.google.cloud.aiplatform.v1.NotebookRu" - + "ntime\022\027\n\017next_page_token\030\002 \001(\t\"_\n\034Delete" - + "NotebookRuntimeRequest\022?\n\004name\030\001 \001(\tB1\340A" - + "\002\372A+\n)aiplatform.googleapis.com/Notebook" - + "Runtime\"`\n\035UpgradeNotebookRuntimeRequest" - + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googl" - + "eapis.com/NotebookRuntime\"\223\001\n\'UpgradeNot" - + "ebookRuntimeOperationMetadata\022N\n\020generic" - + "_metadata\030\001 \001(\01324.google.cloud.aiplatfor" - + "m.v1.GenericOperationMetadata\022\030\n\020progres" - + "s_message\030\002 \001(\t\" \n\036UpgradeNotebookRuntim" - + "eResponse\"^\n\033StartNotebookRuntimeRequest" - + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googl" - + "eapis.com/NotebookRuntime\"\221\001\n%StartNoteb" - + "ookRuntimeOperationMetadata\022N\n\020generic_m" - + "etadata\030\001 \001(\01324.google.cloud.aiplatform." - + "v1.GenericOperationMetadata\022\030\n\020progress_" - + "message\030\002 \001(\t\"\036\n\034StartNotebookRuntimeRes" - + "ponse2\274\027\n\017NotebookService\022\356\002\n\035CreateNote" - + "bookRuntimeTemplate\022@.google.cloud.aipla" - + "tform.v1.CreateNotebookRuntimeTemplateRe" - + "quest\032\035.google.longrunning.Operation\"\353\001\312" - + "AI\n\027NotebookRuntimeTemplate\022.CreateNoteb" - + "ookRuntimeTemplateOperationMetadata\332A=pa" - + "rent,notebook_runtime_template,notebook_" - + "runtime_template_id\202\323\344\223\002Y\"\022\022" - + "*cloud.g" - + "oogle.com/go/aiplatform/apiv1/aiplatform" - + "pb;aiplatformpb\252\002\032Google.Cloud.AIPlatfor" - + "m.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Goog" - + "le::Cloud::AIPlatform::V1b\006proto3" + + "B\003\340A\002\022 \n\023notebook_runtime_id\030\004 \001(\tB\003\340A\001\"" + + "\222\001\n&AssignNotebookRuntimeOperationMetada" + + "ta\022N\n\020generic_metadata\030\001 \001(\01324.google.cl" + + "oud.aiplatform.v1.GenericOperationMetada" + + "ta\022\030\n\020progress_message\030\002 \001(\t\"\\\n\031GetNoteb" + + "ookRuntimeRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")aiplatform.googleapis.com/NotebookRunti" + + "me\"\351\001\n\033ListNotebookRuntimesRequest\0229\n\006pa" + + "rent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis" + + ".com/Location\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpa" + + "ge_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003" + + "\340A\001\0222\n\tread_mask\030\005 \001(\0132\032.google.protobuf" + + ".FieldMaskB\003\340A\001\022\025\n\010order_by\030\006 \001(\tB\003\340A\001\"\177" + + "\n\034ListNotebookRuntimesResponse\022F\n\021notebo" + + "ok_runtimes\030\001 \003(\0132+.google.cloud.aiplatf" + + "orm.v1.NotebookRuntime\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"_\n\034DeleteNotebookRuntimeRequest\022" + + "?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.google" + + "apis.com/NotebookRuntime\"`\n\035UpgradeNoteb" + + "ookRuntimeRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")aiplatform.googleapis.com/NotebookRunti" + + "me\"\223\001\n\'UpgradeNotebookRuntimeOperationMe" + + "tadata\022N\n\020generic_metadata\030\001 \001(\01324.googl" + + "e.cloud.aiplatform.v1.GenericOperationMe" + + "tadata\022\030\n\020progress_message\030\002 \001(\t\" \n\036Upgr" + + "adeNotebookRuntimeResponse\"^\n\033StartNoteb" + + "ookRuntimeRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")aiplatform.googleapis.com/NotebookRunti" + + "me\"\221\001\n%StartNotebookRuntimeOperationMeta" + + "data\022N\n\020generic_metadata\030\001 \001(\01324.google." + + "cloud.aiplatform.v1.GenericOperationMeta" + + "data\022\030\n\020progress_message\030\002 \001(\t\"\036\n\034StartN" + + "otebookRuntimeResponse\"\335\001\n!CreateNoteboo" + + "kExecutionJobRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "U\n\026notebook_execution_job\030\002 \001(\01320.google" + + ".cloud.aiplatform.v1.NotebookExecutionJo" + + "bB\003\340A\002\022&\n\031notebook_execution_job_id\030\003 \001(" + + "\tB\003\340A\001\"\227\001\n+CreateNotebookExecutionJobOpe" + + "rationMetadata\022N\n\020generic_metadata\030\001 \001(\013" + + "24.google.cloud.aiplatform.v1.GenericOpe" + + "rationMetadata\022\030\n\020progress_message\030\002 \001(\t" + + "\"\257\001\n\036GetNotebookExecutionJobRequest\022D\n\004n" + + "ame\030\001 \001(\tB6\340A\002\372A0\n.aiplatform.googleapis" + + ".com/NotebookExecutionJob\022G\n\004view\030\006 \001(\0162" + + "4.google.cloud.aiplatform.v1.NotebookExe" + + "cutionJobViewB\003\340A\001\"\203\002\n ListNotebookExecu" + + "tionJobsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\023\n\006fi" + + "lter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022" + + "\027\n\npage_token\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001" + + "(\tB\003\340A\001\022G\n\004view\030\006 \001(\01624.google.cloud.aip" + + "latform.v1.NotebookExecutionJobViewB\003\340A\001" + + "\"\217\001\n!ListNotebookExecutionJobsResponse\022Q" + + "\n\027notebook_execution_jobs\030\001 \003(\01320.google" + + ".cloud.aiplatform.v1.NotebookExecutionJo" + + "b\022\027\n\017next_page_token\030\002 \001(\t\"i\n!DeleteNote" + + "bookExecutionJobRequest\022D\n\004name\030\001 \001(\tB6\340" + + "A\002\372A0\n.aiplatform.googleapis.com/Noteboo" + + "kExecutionJob*\224\001\n\030NotebookExecutionJobVi" + + "ew\022+\n\'NOTEBOOK_EXECUTION_JOB_VIEW_UNSPEC" + + "IFIED\020\000\022%\n!NOTEBOOK_EXECUTION_JOB_VIEW_B" + + "ASIC\020\001\022$\n NOTEBOOK_EXECUTION_JOB_VIEW_FU" + + "LL\020\0022\312\037\n\017NotebookService\022\356\002\n\035CreateNoteb" + + "ookRuntimeTemplate\022@.google.cloud.aiplat" + + "form.v1.CreateNotebookRuntimeTemplateReq" + + "uest\032\035.google.longrunning.Operation\"\353\001\312A" + + "I\n\027NotebookRuntimeTemplate\022.CreateNotebo" + + "okRuntimeTemplateOperationMetadata\332A=par" + + "ent,notebook_runtime_template,notebook_r" + + "untime_template_id\202\323\344\223\002Y\"\022\022<" + + "/v1/{parent=projects/*/locations/*}/note" + + "bookRuntimeTemplates\022\200\002\n\035DeleteNotebookR" + + "untimeTemplate\022@.google.cloud.aiplatform" + + ".v1.DeleteNotebookRuntimeTemplateRequest" + + "\032\035.google.longrunning.Operation\"~\312A0\n\025go" + + "ogle.protobuf.Empty\022\027DeleteOperationMeta" + + "data\332A\004name\202\323\344\223\002>*cloud.goog" + + "le.com/go/aiplatform/apiv1/aiplatformpb;" + + "aiplatformpb\252\002\032Google.Cloud.AIPlatform.V" + + "1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google:" + + ":Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -281,6 +363,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1.NotebookExecutionJobProto.getDescriptor(), com.google.cloud.aiplatform.v1.NotebookRuntimeProto.getDescriptor(), com.google.cloud.aiplatform.v1.OperationProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), @@ -435,6 +518,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_StartNotebookRuntimeResponse_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobRequest_descriptor, + new java.lang.String[] { + "Parent", "NotebookExecutionJob", "NotebookExecutionJobId", + }); + internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CreateNotebookExecutionJobOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", "ProgressMessage", + }); + internal_static_google_cloud_aiplatform_v1_GetNotebookExecutionJobRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_aiplatform_v1_GetNotebookExecutionJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_GetNotebookExecutionJobRequest_descriptor, + new java.lang.String[] { + "Name", "View", + }); + internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "View", + }); + internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListNotebookExecutionJobsResponse_descriptor, + new java.lang.String[] { + "NotebookExecutionJobs", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1_DeleteNotebookExecutionJobRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_aiplatform_v1_DeleteNotebookExecutionJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_DeleteNotebookExecutionJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -450,6 +581,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1.NotebookExecutionJobProto.getDescriptor(); com.google.cloud.aiplatform.v1.NotebookRuntimeProto.getDescriptor(); com.google.cloud.aiplatform.v1.OperationProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceProto.java index 0c0e8b311ecb..b94331a0b238 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceProto.java @@ -72,6 +72,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_RayMetricSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_RayMetricSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RayLogsSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RayLogsSpec_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -132,28 +136,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "eSpec\022Q\n\024service_account_spec\030\002 \001(\0132..go" + "ogle.cloud.aiplatform.v1.ServiceAccountS" + "pecB\003\340A\001\022:\n\010ray_spec\030\001 \001(\0132#.google.clou" - + "d.aiplatform.v1.RaySpecB\003\340A\001\"\256\002\n\007RaySpec" + + "d.aiplatform.v1.RaySpecB\003\340A\001\"\363\002\n\007RaySpec" + "\022\026\n\timage_uri\030\001 \001(\tB\003\340A\001\022^\n\024resource_poo" + "l_images\030\006 \003(\0132;.google.cloud.aiplatform" + ".v1.RaySpec.ResourcePoolImagesEntryB\003\340A\001" + "\022\'\n\032head_node_resource_pool_id\030\007 \001(\tB\003\340A" + "\001\022G\n\017ray_metric_spec\030\010 \001(\0132).google.clou" - + "d.aiplatform.v1.RayMetricSpecB\003\340A\001\0329\n\027Re" - + "sourcePoolImagesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001\"\233\001\n\017ResourceRuntime\022U\n\013acc" - + "ess_uris\030\001 \003(\0132;.google.cloud.aiplatform" - + ".v1.ResourceRuntime.AccessUrisEntryB\003\340A\003" - + "\0321\n\017AccessUrisEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"^\n\022ServiceAccountSpec\022*\n\035ena" - + "ble_custom_service_account\030\001 \001(\010B\003\340A\002\022\034\n" - + "\017service_account\030\002 \001(\tB\003\340A\001\"&\n\rRayMetric" - + "Spec\022\025\n\010disabled\030\001 \001(\010B\003\340A\001B\325\001\n\036com.goog" - + "le.cloud.aiplatform.v1B\027PersistentResour" - + "ceProtoP\001Z>cloud.google.com/go/aiplatfor" - + "m/apiv1/aiplatformpb;aiplatformpb\252\002\032Goog" - + "le.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AI" - + "Platform\\V1\352\002\035Google::Cloud::AIPlatform:" - + ":V1b\006proto3" + + "d.aiplatform.v1.RayMetricSpecB\003\340A\001\022C\n\rra" + + "y_logs_spec\030\n \001(\0132\'.google.cloud.aiplatf" + + "orm.v1.RayLogsSpecB\003\340A\001\0329\n\027ResourcePoolI" + + "magesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"\233\001\n\017ResourceRuntime\022U\n\013access_uris\030\001 " + + "\003(\0132;.google.cloud.aiplatform.v1.Resourc" + + "eRuntime.AccessUrisEntryB\003\340A\003\0321\n\017AccessU" + + "risEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"^\n\022ServiceAccountSpec\022*\n\035enable_custom_" + + "service_account\030\001 \001(\010B\003\340A\002\022\034\n\017service_ac" + + "count\030\002 \001(\tB\003\340A\001\"&\n\rRayMetricSpec\022\025\n\010dis" + + "abled\030\001 \001(\010B\003\340A\001\"$\n\013RayLogsSpec\022\025\n\010disab" + + "led\030\001 \001(\010B\003\340A\001B\325\001\n\036com.google.cloud.aipl" + + "atform.v1B\027PersistentResourceProtoP\001Z>cl" + + "oud.google.com/go/aiplatform/apiv1/aipla" + + "tformpb;aiplatformpb\252\002\032Google.Cloud.AIPl" + + "atform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002" + + "\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -232,7 +238,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_RaySpec_descriptor, new java.lang.String[] { - "ImageUri", "ResourcePoolImages", "HeadNodeResourcePoolId", "RayMetricSpec", + "ImageUri", + "ResourcePoolImages", + "HeadNodeResourcePoolId", + "RayMetricSpec", + "RayLogsSpec", }); internal_static_google_cloud_aiplatform_v1_RaySpec_ResourcePoolImagesEntry_descriptor = internal_static_google_cloud_aiplatform_v1_RaySpec_descriptor.getNestedTypes().get(0); @@ -276,6 +286,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Disabled", }); + internal_static_google_cloud_aiplatform_v1_RayLogsSpec_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1_RayLogsSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RayLogsSpec_descriptor, + new java.lang.String[] { + "Disabled", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java index f3bbd74455e7..be3766bc2721 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java @@ -210,128 +210,131 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nResponse\022=\n\014explanations\030\001 \003(\0132\'.google" + ".cloud.aiplatform.v1.Explanation\022\031\n\021depl" + "oyed_model_id\030\002 \001(\t\022+\n\013predictions\030\003 \003(\013" - + "2\026.google.protobuf.Value\"\322\001\n\022CountTokens" + + "2\026.google.protobuf.Value\"\352\002\n\022CountTokens" + "Request\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aipla" + "tform.googleapis.com/Endpoint\022\022\n\005model\030\003" - + " \001(\tB\003\340A\002\022.\n\tinstances\030\002 \003(\0132\026.google.pr" - + "otobuf.ValueB\003\340A\002\022:\n\010contents\030\004 \003(\0132#.go" - + "ogle.cloud.aiplatform.v1.ContentB\003\340A\002\"N\n" - + "\023CountTokensResponse\022\024\n\014total_tokens\030\001 \001" - + "(\005\022!\n\031total_billable_characters\030\002 \001(\005\"\331\003" - + "\n\026GenerateContentRequest\022\022\n\005model\030\005 \001(\tB" - + "\003\340A\002\022:\n\010contents\030\002 \003(\0132#.google.cloud.ai" - + "platform.v1.ContentB\003\340A\002\022I\n\022system_instr" - + "uction\030\010 \001(\0132#.google.cloud.aiplatform.v" - + "1.ContentB\003\340A\001H\000\210\001\001\0224\n\005tools\030\006 \003(\0132 .goo" - + "gle.cloud.aiplatform.v1.ToolB\003\340A\001\022@\n\013too" - + "l_config\030\007 \001(\0132&.google.cloud.aiplatform" - + ".v1.ToolConfigB\003\340A\001\022G\n\017safety_settings\030\003" - + " \003(\0132).google.cloud.aiplatform.v1.Safety" - + "SettingB\003\340A\001\022L\n\021generation_config\030\004 \001(\0132" - + ",.google.cloud.aiplatform.v1.GenerationC" - + "onfigB\003\340A\001B\025\n\023_system_instruction\"\327\005\n\027Ge" - + "nerateContentResponse\022>\n\ncandidates\030\002 \003(" - + "\0132%.google.cloud.aiplatform.v1.Candidate" - + "B\003\340A\003\022`\n\017prompt_feedback\030\003 \001(\0132B.google." - + "cloud.aiplatform.v1.GenerateContentRespo" - + "nse.PromptFeedbackB\003\340A\003\022Y\n\016usage_metadat" - + "a\030\004 \001(\0132A.google.cloud.aiplatform.v1.Gen" - + "erateContentResponse.UsageMetadata\032\326\002\n\016P" - + "romptFeedback\022k\n\014block_reason\030\001 \001(\0162P.go" - + "ogle.cloud.aiplatform.v1.GenerateContent" - + "Response.PromptFeedback.BlockedReasonB\003\340" - + "A\003\022E\n\016safety_ratings\030\002 \003(\0132(.google.clou" - + "d.aiplatform.v1.SafetyRatingB\003\340A\003\022!\n\024blo" - + "ck_reason_message\030\003 \001(\tB\003\340A\003\"m\n\rBlockedR" - + "eason\022\036\n\032BLOCKED_REASON_UNSPECIFIED\020\000\022\n\n" - + "\006SAFETY\020\001\022\t\n\005OTHER\020\002\022\r\n\tBLOCKLIST\020\003\022\026\n\022P" - + "ROHIBITED_CONTENT\020\004\032f\n\rUsageMetadata\022\032\n\022" - + "prompt_token_count\030\001 \001(\005\022\036\n\026candidates_t" - + "oken_count\030\002 \001(\005\022\031\n\021total_token_count\030\003 " - + "\001(\0052\232\030\n\021PredictionService\022\224\002\n\007Predict\022*." - + "google.cloud.aiplatform.v1.PredictReques" - + "t\032+.google.cloud.aiplatform.v1.PredictRe" - + "sponse\"\257\001\332A\035endpoint,instances,parameter" - + "s\202\323\344\223\002\210\001\"9/v1/{endpoint=projects/*/locat" - + "ions/*/endpoints/*}:predict:\001*ZH\"C/v1/{e" - + "ndpoint=projects/*/locations/*/publisher" - + "s/*/models/*}:predict:\001*\022\376\001\n\nRawPredict\022" - + "-.google.cloud.aiplatform.v1.RawPredictR" - + "equest\032\024.google.api.HttpBody\"\252\001\332A\022endpoi" - + "nt,http_body\202\323\344\223\002\216\001\"\"9/v1/{endpoint=projects/*/loca" - + "tions/*/endpoints/*}:explain:\001*\022\247\002\n\017Gene" - + "rateContent\0222.google.cloud.aiplatform.v1" - + ".GenerateContentRequest\0323.google.cloud.a" - + "iplatform.v1.GenerateContentResponse\"\252\001\332" - + "A\016model,contents\202\323\344\223\002\222\001\">/v1/{model=proj" - + "ects/*/locations/*/endpoints/*}:generate" - + "Content:\001*ZM\"H/v1/{model=projects/*/loca" - + "tions/*/publishers/*/models/*}:generateC" - + "ontent:\001*\022\273\002\n\025StreamGenerateContent\0222.go" - + "ogle.cloud.aiplatform.v1.GenerateContent" - + "Request\0323.google.cloud.aiplatform.v1.Gen" - + "erateContentResponse\"\266\001\332A\016model,contents" - + "\202\323\344\223\002\236\001\"D/v1/{model=projects/*/locations" - + "/*/endpoints/*}:streamGenerateContent:\001*" - + "ZS\"N/v1/{model=projects/*/locations/*/pu" - + "blishers/*/models/*}:streamGenerateConte" - + "nt:\001*0\001\032\206\001\312A\031aiplatform.googleapis.com\322A" - + "ghttps://www.googleapis.com/auth/cloud-p" - + "latform,https://www.googleapis.com/auth/" - + "cloud-platform.read-onlyB\324\001\n\036com.google." - + "cloud.aiplatform.v1B\026PredictionServicePr" - + "otoP\001Z>cloud.google.com/go/aiplatform/ap" - + "iv1/aiplatformpb;aiplatformpb\252\002\032Google.C" - + "loud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlat" - + "form\\V1\352\002\035Google::Cloud::AIPlatform::V1b" - + "\006proto3" + + " \001(\tB\003\340A\001\022.\n\tinstances\030\002 \003(\0132\026.google.pr" + + "otobuf.ValueB\003\340A\001\022:\n\010contents\030\004 \003(\0132#.go" + + "ogle.cloud.aiplatform.v1.ContentB\003\340A\001\022I\n" + + "\022system_instruction\030\005 \001(\0132#.google.cloud" + + ".aiplatform.v1.ContentB\003\340A\001H\000\210\001\001\0224\n\005tool" + + "s\030\006 \003(\0132 .google.cloud.aiplatform.v1.Too" + + "lB\003\340A\001B\025\n\023_system_instruction\"N\n\023CountTo" + + "kensResponse\022\024\n\014total_tokens\030\001 \001(\005\022!\n\031to" + + "tal_billable_characters\030\002 \001(\005\"\331\003\n\026Genera" + + "teContentRequest\022\022\n\005model\030\005 \001(\tB\003\340A\002\022:\n\010" + + "contents\030\002 \003(\0132#.google.cloud.aiplatform" + + ".v1.ContentB\003\340A\002\022I\n\022system_instruction\030\010" + + " \001(\0132#.google.cloud.aiplatform.v1.Conten" + + "tB\003\340A\001H\000\210\001\001\0224\n\005tools\030\006 \003(\0132 .google.clou" + + "d.aiplatform.v1.ToolB\003\340A\001\022@\n\013tool_config" + + "\030\007 \001(\0132&.google.cloud.aiplatform.v1.Tool" + + "ConfigB\003\340A\001\022G\n\017safety_settings\030\003 \003(\0132).g" + + "oogle.cloud.aiplatform.v1.SafetySettingB" + + "\003\340A\001\022L\n\021generation_config\030\004 \001(\0132,.google" + + ".cloud.aiplatform.v1.GenerationConfigB\003\340" + + "A\001B\025\n\023_system_instruction\"\327\005\n\027GenerateCo" + + "ntentResponse\022>\n\ncandidates\030\002 \003(\0132%.goog" + + "le.cloud.aiplatform.v1.CandidateB\003\340A\003\022`\n" + + "\017prompt_feedback\030\003 \001(\0132B.google.cloud.ai" + + "platform.v1.GenerateContentResponse.Prom" + + "ptFeedbackB\003\340A\003\022Y\n\016usage_metadata\030\004 \001(\0132" + + "A.google.cloud.aiplatform.v1.GenerateCon" + + "tentResponse.UsageMetadata\032\326\002\n\016PromptFee" + + "dback\022k\n\014block_reason\030\001 \001(\0162P.google.clo" + + "ud.aiplatform.v1.GenerateContentResponse" + + ".PromptFeedback.BlockedReasonB\003\340A\003\022E\n\016sa" + + "fety_ratings\030\002 \003(\0132(.google.cloud.aiplat" + + "form.v1.SafetyRatingB\003\340A\003\022!\n\024block_reaso" + + "n_message\030\003 \001(\tB\003\340A\003\"m\n\rBlockedReason\022\036\n" + + "\032BLOCKED_REASON_UNSPECIFIED\020\000\022\n\n\006SAFETY\020" + + "\001\022\t\n\005OTHER\020\002\022\r\n\tBLOCKLIST\020\003\022\026\n\022PROHIBITE" + + "D_CONTENT\020\004\032f\n\rUsageMetadata\022\032\n\022prompt_t" + + "oken_count\030\001 \001(\005\022\036\n\026candidates_token_cou" + + "nt\030\002 \001(\005\022\031\n\021total_token_count\030\003 \001(\0052\232\030\n\021" + + "PredictionService\022\224\002\n\007Predict\022*.google.c" + + "loud.aiplatform.v1.PredictRequest\032+.goog" + + "le.cloud.aiplatform.v1.PredictResponse\"\257" + + "\001\332A\035endpoint,instances,parameters\202\323\344\223\002\210\001" + + "\"9/v1/{endpoint=projects/*/locations/*/e" + + "ndpoints/*}:predict:\001*ZH\"C/v1/{endpoint=" + + "projects/*/locations/*/publishers/*/mode" + + "ls/*}:predict:\001*\022\376\001\n\nRawPredict\022-.google" + + ".cloud.aiplatform.v1.RawPredictRequest\032\024" + + ".google.api.HttpBody\"\252\001\332A\022endpoint,http_" + + "body\202\323\344\223\002\216\001\"\"9/v1/{endpoint=projects/*/locations/*/" + + "endpoints/*}:explain:\001*\022\247\002\n\017GenerateCont" + + "ent\0222.google.cloud.aiplatform.v1.Generat" + + "eContentRequest\0323.google.cloud.aiplatfor" + + "m.v1.GenerateContentResponse\"\252\001\332A\016model," + + "contents\202\323\344\223\002\222\001\">/v1/{model=projects/*/l" + + "ocations/*/endpoints/*}:generateContent:" + + "\001*ZM\"H/v1/{model=projects/*/locations/*/" + + "publishers/*/models/*}:generateContent:\001" + + "*\022\273\002\n\025StreamGenerateContent\0222.google.clo" + + "ud.aiplatform.v1.GenerateContentRequest\032" + + "3.google.cloud.aiplatform.v1.GenerateCon" + + "tentResponse\"\266\001\332A\016model,contents\202\323\344\223\002\236\001\"" + + "D/v1/{model=projects/*/locations/*/endpo" + + "ints/*}:streamGenerateContent:\001*ZS\"N/v1/" + + "{model=projects/*/locations/*/publishers" + + "/*/models/*}:streamGenerateContent:\001*0\001\032" + + "\206\001\312A\031aiplatform.googleapis.com\322Aghttps:/" + + "/www.googleapis.com/auth/cloud-platform," + + "https://www.googleapis.com/auth/cloud-pl" + + "atform.read-onlyB\324\001\n\036com.google.cloud.ai" + + "platform.v1B\026PredictionServiceProtoP\001Z>c" + + "loud.google.com/go/aiplatform/apiv1/aipl" + + "atformpb;aiplatformpb\252\002\032Google.Cloud.AIP" + + "latform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352" + + "\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -503,7 +506,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_CountTokensRequest_descriptor, new java.lang.String[] { - "Endpoint", "Model", "Instances", "Contents", + "Endpoint", "Model", "Instances", "Contents", "SystemInstruction", "Tools", }); internal_static_google_cloud_aiplatform_v1_CountTokensResponse_descriptor = getDescriptor().getMessageTypes().get(19); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RayLogsSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RayLogsSpec.java new file mode 100644 index 000000000000..9fef24d66d11 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RayLogsSpec.java @@ -0,0 +1,534 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/persistent_resource.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Configuration for the Ray OSS Logs.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RayLogsSpec} + */ +public final class RayLogsSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RayLogsSpec) + RayLogsSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use RayLogsSpec.newBuilder() to construct. + private RayLogsSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RayLogsSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RayLogsSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PersistentResourceProto + .internal_static_google_cloud_aiplatform_v1_RayLogsSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PersistentResourceProto + .internal_static_google_cloud_aiplatform_v1_RayLogsSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RayLogsSpec.class, + com.google.cloud.aiplatform.v1.RayLogsSpec.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_ = false; + /** + * + * + *
+   * Optional. Flag to disable the export of Ray OSS logs to Cloud Logging.
+   * 
+ * + * bool disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.RayLogsSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RayLogsSpec other = + (com.google.cloud.aiplatform.v1.RayLogsSpec) obj; + + if (getDisabled() != other.getDisabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RayLogsSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RayLogsSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.RayLogsSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RayLogsSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.RayLogsSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RayLogsSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.RayLogsSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RayLogsSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.RayLogsSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RayLogsSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.RayLogsSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RayLogsSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.RayLogsSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for the Ray OSS Logs.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RayLogsSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RayLogsSpec) + com.google.cloud.aiplatform.v1.RayLogsSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PersistentResourceProto + .internal_static_google_cloud_aiplatform_v1_RayLogsSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PersistentResourceProto + .internal_static_google_cloud_aiplatform_v1_RayLogsSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RayLogsSpec.class, + com.google.cloud.aiplatform.v1.RayLogsSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RayLogsSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.PersistentResourceProto + .internal_static_google_cloud_aiplatform_v1_RayLogsSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RayLogsSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RayLogsSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RayLogsSpec build() { + com.google.cloud.aiplatform.v1.RayLogsSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RayLogsSpec buildPartial() { + com.google.cloud.aiplatform.v1.RayLogsSpec result = + new com.google.cloud.aiplatform.v1.RayLogsSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RayLogsSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.RayLogsSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1.RayLogsSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RayLogsSpec other) { + if (other == com.google.cloud.aiplatform.v1.RayLogsSpec.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean disabled_; + /** + * + * + *
+     * Optional. Flag to disable the export of Ray OSS logs to Cloud Logging.
+     * 
+ * + * bool disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Optional. Flag to disable the export of Ray OSS logs to Cloud Logging.
+     * 
+ * + * bool disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Flag to disable the export of Ray OSS logs to Cloud Logging.
+     * 
+ * + * bool disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000001); + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.RayLogsSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RayLogsSpec) + private static final com.google.cloud.aiplatform.v1.RayLogsSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RayLogsSpec(); + } + + public static com.google.cloud.aiplatform.v1.RayLogsSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RayLogsSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RayLogsSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RayLogsSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RayLogsSpecOrBuilder.java new file mode 100644 index 000000000000..467548d30c6b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RayLogsSpecOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/persistent_resource.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +public interface RayLogsSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RayLogsSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Flag to disable the export of Ray OSS logs to Cloud Logging.
+   * 
+ * + * bool disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RaySpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RaySpec.java index f537088d65fa..94a4dc6bea11 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RaySpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RaySpec.java @@ -400,6 +400,62 @@ public com.google.cloud.aiplatform.v1.RayMetricSpecOrBuilder getRayMetricSpecOrB : rayMetricSpec_; } + public static final int RAY_LOGS_SPEC_FIELD_NUMBER = 10; + private com.google.cloud.aiplatform.v1.RayLogsSpec rayLogsSpec_; + /** + * + * + *
+   * Optional. OSS Ray logging configurations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayLogsSpec field is set. + */ + @java.lang.Override + public boolean hasRayLogsSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. OSS Ray logging configurations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayLogsSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RayLogsSpec getRayLogsSpec() { + return rayLogsSpec_ == null + ? com.google.cloud.aiplatform.v1.RayLogsSpec.getDefaultInstance() + : rayLogsSpec_; + } + /** + * + * + *
+   * Optional. OSS Ray logging configurations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RayLogsSpecOrBuilder getRayLogsSpecOrBuilder() { + return rayLogsSpec_ == null + ? com.google.cloud.aiplatform.v1.RayLogsSpec.getDefaultInstance() + : rayLogsSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -428,6 +484,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(8, getRayMetricSpec()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10, getRayLogsSpec()); + } getUnknownFields().writeTo(output); } @@ -456,6 +515,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRayMetricSpec()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getRayLogsSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -479,6 +541,10 @@ public boolean equals(final java.lang.Object obj) { if (hasRayMetricSpec()) { if (!getRayMetricSpec().equals(other.getRayMetricSpec())) return false; } + if (hasRayLogsSpec() != other.hasRayLogsSpec()) return false; + if (hasRayLogsSpec()) { + if (!getRayLogsSpec().equals(other.getRayLogsSpec())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -502,6 +568,10 @@ public int hashCode() { hash = (37 * hash) + RAY_METRIC_SPEC_FIELD_NUMBER; hash = (53 * hash) + getRayMetricSpec().hashCode(); } + if (hasRayLogsSpec()) { + hash = (37 * hash) + RAY_LOGS_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getRayLogsSpec().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -668,6 +738,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRayMetricSpecFieldBuilder(); + getRayLogsSpecFieldBuilder(); } } @@ -683,6 +754,11 @@ public Builder clear() { rayMetricSpecBuilder_.dispose(); rayMetricSpecBuilder_ = null; } + rayLogsSpec_ = null; + if (rayLogsSpecBuilder_ != null) { + rayLogsSpecBuilder_.dispose(); + rayLogsSpecBuilder_ = null; + } return this; } @@ -735,6 +811,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.RaySpec result) { rayMetricSpecBuilder_ == null ? rayMetricSpec_ : rayMetricSpecBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.rayLogsSpec_ = + rayLogsSpecBuilder_ == null ? rayLogsSpec_ : rayLogsSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -798,6 +879,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.RaySpec other) { if (other.hasRayMetricSpec()) { mergeRayMetricSpec(other.getRayMetricSpec()); } + if (other.hasRayLogsSpec()) { + mergeRayLogsSpec(other.getRayLogsSpec()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -855,6 +939,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 66 + case 82: + { + input.readMessage(getRayLogsSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1571,6 +1661,210 @@ public com.google.cloud.aiplatform.v1.RayMetricSpecOrBuilder getRayMetricSpecOrB return rayMetricSpecBuilder_; } + private com.google.cloud.aiplatform.v1.RayLogsSpec rayLogsSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RayLogsSpec, + com.google.cloud.aiplatform.v1.RayLogsSpec.Builder, + com.google.cloud.aiplatform.v1.RayLogsSpecOrBuilder> + rayLogsSpecBuilder_; + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayLogsSpec field is set. + */ + public boolean hasRayLogsSpec() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayLogsSpec. + */ + public com.google.cloud.aiplatform.v1.RayLogsSpec getRayLogsSpec() { + if (rayLogsSpecBuilder_ == null) { + return rayLogsSpec_ == null + ? com.google.cloud.aiplatform.v1.RayLogsSpec.getDefaultInstance() + : rayLogsSpec_; + } else { + return rayLogsSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayLogsSpec(com.google.cloud.aiplatform.v1.RayLogsSpec value) { + if (rayLogsSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rayLogsSpec_ = value; + } else { + rayLogsSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayLogsSpec( + com.google.cloud.aiplatform.v1.RayLogsSpec.Builder builderForValue) { + if (rayLogsSpecBuilder_ == null) { + rayLogsSpec_ = builderForValue.build(); + } else { + rayLogsSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRayLogsSpec(com.google.cloud.aiplatform.v1.RayLogsSpec value) { + if (rayLogsSpecBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && rayLogsSpec_ != null + && rayLogsSpec_ != com.google.cloud.aiplatform.v1.RayLogsSpec.getDefaultInstance()) { + getRayLogsSpecBuilder().mergeFrom(value); + } else { + rayLogsSpec_ = value; + } + } else { + rayLogsSpecBuilder_.mergeFrom(value); + } + if (rayLogsSpec_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRayLogsSpec() { + bitField0_ = (bitField0_ & ~0x00000010); + rayLogsSpec_ = null; + if (rayLogsSpecBuilder_ != null) { + rayLogsSpecBuilder_.dispose(); + rayLogsSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RayLogsSpec.Builder getRayLogsSpecBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getRayLogsSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RayLogsSpecOrBuilder getRayLogsSpecOrBuilder() { + if (rayLogsSpecBuilder_ != null) { + return rayLogsSpecBuilder_.getMessageOrBuilder(); + } else { + return rayLogsSpec_ == null + ? com.google.cloud.aiplatform.v1.RayLogsSpec.getDefaultInstance() + : rayLogsSpec_; + } + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RayLogsSpec, + com.google.cloud.aiplatform.v1.RayLogsSpec.Builder, + com.google.cloud.aiplatform.v1.RayLogsSpecOrBuilder> + getRayLogsSpecFieldBuilder() { + if (rayLogsSpecBuilder_ == null) { + rayLogsSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RayLogsSpec, + com.google.cloud.aiplatform.v1.RayLogsSpec.Builder, + com.google.cloud.aiplatform.v1.RayLogsSpecOrBuilder>( + getRayLogsSpec(), getParentForChildren(), isClean()); + rayLogsSpec_ = null; + } + return rayLogsSpecBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RaySpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RaySpecOrBuilder.java index a37139cfd275..90bdb703ed20 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RaySpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RaySpecOrBuilder.java @@ -238,4 +238,45 @@ java.lang.String getResourcePoolImagesOrDefault( * */ com.google.cloud.aiplatform.v1.RayMetricSpecOrBuilder getRayMetricSpecOrBuilder(); + + /** + * + * + *
+   * Optional. OSS Ray logging configurations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayLogsSpec field is set. + */ + boolean hasRayLogsSpec(); + /** + * + * + *
+   * Optional. OSS Ray logging configurations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayLogsSpec. + */ + com.google.cloud.aiplatform.v1.RayLogsSpec getRayLogsSpec(); + /** + * + * + *
+   * Optional. OSS Ray logging configurations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.RayLogsSpecOrBuilder getRayLogsSpecOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java index 74742c99d390..e2a9a136c1b5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java @@ -164,16 +164,19 @@ public com.google.cloud.aiplatform.v1.VertexAISearchOrBuilder getVertexAiSearchO * * *
-   * Optional. Disable using the result from this tool in detecting grounding
-   * attribution. This does not affect how the result is given to the model for
-   * generation.
+   * Optional. Deprecated. This option is no longer supported.
    * 
* - * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool disable_attribution = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See + * google/cloud/aiplatform/v1/tool.proto;l=130 * @return The disableAttribution. */ @java.lang.Override + @java.lang.Deprecated public boolean getDisableAttribution() { return disableAttribution_; } @@ -799,16 +802,19 @@ public com.google.cloud.aiplatform.v1.VertexAISearchOrBuilder getVertexAiSearchO * * *
-     * Optional. Disable using the result from this tool in detecting grounding
-     * attribution. This does not affect how the result is given to the model for
-     * generation.
+     * Optional. Deprecated. This option is no longer supported.
      * 
* - * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool disable_attribution = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See + * google/cloud/aiplatform/v1/tool.proto;l=130 * @return The disableAttribution. */ @java.lang.Override + @java.lang.Deprecated public boolean getDisableAttribution() { return disableAttribution_; } @@ -816,16 +822,19 @@ public boolean getDisableAttribution() { * * *
-     * Optional. Disable using the result from this tool in detecting grounding
-     * attribution. This does not affect how the result is given to the model for
-     * generation.
+     * Optional. Deprecated. This option is no longer supported.
      * 
* - * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool disable_attribution = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See + * google/cloud/aiplatform/v1/tool.proto;l=130 * @param value The disableAttribution to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setDisableAttribution(boolean value) { disableAttribution_ = value; @@ -837,15 +846,18 @@ public Builder setDisableAttribution(boolean value) { * * *
-     * Optional. Disable using the result from this tool in detecting grounding
-     * attribution. This does not affect how the result is given to the model for
-     * generation.
+     * Optional. Deprecated. This option is no longer supported.
      * 
* - * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool disable_attribution = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See + * google/cloud/aiplatform/v1/tool.proto;l=130 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearDisableAttribution() { bitField0_ = (bitField0_ & ~0x00000002); disableAttribution_ = false; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java index cad344d25f4f..8ffdc9e042e4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java @@ -63,15 +63,18 @@ public interface RetrievalOrBuilder * * *
-   * Optional. Disable using the result from this tool in detecting grounding
-   * attribution. This does not affect how the result is given to the model for
-   * generation.
+   * Optional. Deprecated. This option is no longer supported.
    * 
* - * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool disable_attribution = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See + * google/cloud/aiplatform/v1/tool.proto;l=130 * @return The disableAttribution. */ + @java.lang.Deprecated boolean getDisableAttribution(); com.google.cloud.aiplatform.v1.Retrieval.SourceCase getSourceCase(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java index 854edf3d1a0e..59e6afce31ab 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java @@ -38,7 +38,9 @@ private Scheduling(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Scheduling() {} + private Scheduling() { + strategy_ = 0; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -61,6 +63,167 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1.Scheduling.Builder.class); } + /** + * + * + *
+   * Optional. This determines which type of scheduling strategy to use. Right
+   * now users have two options such as ON_DEMAND which will use regular on
+   * demand resources to schedule the job, the other is LOW_COST which would
+   * leverage spot resources alongwith regular resources to schedule
+   * the job.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.Scheduling.Strategy} + */ + public enum Strategy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Strategy will default to ON_DEMAND.
+     * 
+ * + * STRATEGY_UNSPECIFIED = 0; + */ + STRATEGY_UNSPECIFIED(0), + /** + * + * + *
+     * Regular on-demand provisioning strategy.
+     * 
+ * + * ON_DEMAND = 1; + */ + ON_DEMAND(1), + /** + * + * + *
+     * Low cost by making potential use of spot resources.
+     * 
+ * + * LOW_COST = 2; + */ + LOW_COST(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Strategy will default to ON_DEMAND.
+     * 
+ * + * STRATEGY_UNSPECIFIED = 0; + */ + public static final int STRATEGY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Regular on-demand provisioning strategy.
+     * 
+ * + * ON_DEMAND = 1; + */ + public static final int ON_DEMAND_VALUE = 1; + /** + * + * + *
+     * Low cost by making potential use of spot resources.
+     * 
+ * + * LOW_COST = 2; + */ + public static final int LOW_COST_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Strategy valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Strategy forNumber(int value) { + switch (value) { + case 0: + return STRATEGY_UNSPECIFIED; + case 1: + return ON_DEMAND; + case 2: + return LOW_COST; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Strategy findValueByNumber(int number) { + return Strategy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.Scheduling.getDescriptor().getEnumTypes().get(0); + } + + private static final Strategy[] VALUES = values(); + + public static Strategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Strategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.Scheduling.Strategy) + } + private int bitField0_; public static final int TIMEOUT_FIELD_NUMBER = 1; private com.google.protobuf.Duration timeout_; @@ -128,6 +291,47 @@ public boolean getRestartJobOnWorkerRestart() { return restartJobOnWorkerRestart_; } + public static final int STRATEGY_FIELD_NUMBER = 4; + private int strategy_ = 0; + /** + * + * + *
+   * Optional. This determines which type of scheduling strategy to use.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for strategy. + */ + @java.lang.Override + public int getStrategyValue() { + return strategy_; + } + /** + * + * + *
+   * Optional. This determines which type of scheduling strategy to use.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The strategy. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Scheduling.Strategy getStrategy() { + com.google.cloud.aiplatform.v1.Scheduling.Strategy result = + com.google.cloud.aiplatform.v1.Scheduling.Strategy.forNumber(strategy_); + return result == null + ? com.google.cloud.aiplatform.v1.Scheduling.Strategy.UNRECOGNIZED + : result; + } + public static final int DISABLE_RETRIES_FIELD_NUMBER = 5; private boolean disableRetries_ = false; /** @@ -168,6 +372,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (restartJobOnWorkerRestart_ != false) { output.writeBool(3, restartJobOnWorkerRestart_); } + if (strategy_ + != com.google.cloud.aiplatform.v1.Scheduling.Strategy.STRATEGY_UNSPECIFIED.getNumber()) { + output.writeEnum(4, strategy_); + } if (disableRetries_ != false) { output.writeBool(5, disableRetries_); } @@ -186,6 +394,10 @@ public int getSerializedSize() { if (restartJobOnWorkerRestart_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, restartJobOnWorkerRestart_); } + if (strategy_ + != com.google.cloud.aiplatform.v1.Scheduling.Strategy.STRATEGY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, strategy_); + } if (disableRetries_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disableRetries_); } @@ -210,6 +422,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTimeout().equals(other.getTimeout())) return false; } if (getRestartJobOnWorkerRestart() != other.getRestartJobOnWorkerRestart()) return false; + if (strategy_ != other.strategy_) return false; if (getDisableRetries() != other.getDisableRetries()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -228,6 +441,8 @@ public int hashCode() { } hash = (37 * hash) + RESTART_JOB_ON_WORKER_RESTART_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRestartJobOnWorkerRestart()); + hash = (37 * hash) + STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + strategy_; hash = (37 * hash) + DISABLE_RETRIES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableRetries()); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -384,6 +599,7 @@ public Builder clear() { timeoutBuilder_ = null; } restartJobOnWorkerRestart_ = false; + strategy_ = 0; disableRetries_ = false; return this; } @@ -430,6 +646,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Scheduling result) { result.restartJobOnWorkerRestart_ = restartJobOnWorkerRestart_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.strategy_ = strategy_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.disableRetries_ = disableRetries_; } result.bitField0_ |= to_bitField0_; @@ -486,6 +705,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Scheduling other) { if (other.getRestartJobOnWorkerRestart() != false) { setRestartJobOnWorkerRestart(other.getRestartJobOnWorkerRestart()); } + if (other.strategy_ != 0) { + setStrategyValue(other.getStrategyValue()); + } if (other.getDisableRetries() != false) { setDisableRetries(other.getDisableRetries()); } @@ -527,10 +749,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 32: + { + strategy_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 case 40: { disableRetries_ = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 40 default: @@ -792,6 +1020,108 @@ public Builder clearRestartJobOnWorkerRestart() { return this; } + private int strategy_ = 0; + /** + * + * + *
+     * Optional. This determines which type of scheduling strategy to use.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for strategy. + */ + @java.lang.Override + public int getStrategyValue() { + return strategy_; + } + /** + * + * + *
+     * Optional. This determines which type of scheduling strategy to use.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for strategy to set. + * @return This builder for chaining. + */ + public Builder setStrategyValue(int value) { + strategy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This determines which type of scheduling strategy to use.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The strategy. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Scheduling.Strategy getStrategy() { + com.google.cloud.aiplatform.v1.Scheduling.Strategy result = + com.google.cloud.aiplatform.v1.Scheduling.Strategy.forNumber(strategy_); + return result == null + ? com.google.cloud.aiplatform.v1.Scheduling.Strategy.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. This determines which type of scheduling strategy to use.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The strategy to set. + * @return This builder for chaining. + */ + public Builder setStrategy(com.google.cloud.aiplatform.v1.Scheduling.Strategy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + strategy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This determines which type of scheduling strategy to use.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearStrategy() { + bitField0_ = (bitField0_ & ~0x00000004); + strategy_ = 0; + onChanged(); + return this; + } + private boolean disableRetries_; /** * @@ -827,7 +1157,7 @@ public boolean getDisableRetries() { public Builder setDisableRetries(boolean value) { disableRetries_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -845,7 +1175,7 @@ public Builder setDisableRetries(boolean value) { * @return This builder for chaining. */ public Builder clearDisableRetries() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); disableRetries_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SchedulingOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SchedulingOrBuilder.java index ae713239e828..3f5b7be18e7c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SchedulingOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SchedulingOrBuilder.java @@ -74,6 +74,35 @@ public interface SchedulingOrBuilder */ boolean getRestartJobOnWorkerRestart(); + /** + * + * + *
+   * Optional. This determines which type of scheduling strategy to use.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for strategy. + */ + int getStrategyValue(); + /** + * + * + *
+   * Optional. This determines which type of scheduling strategy to use.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The strategy. + */ + com.google.cloud.aiplatform.v1.Scheduling.Strategy getStrategy(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Segment.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Segment.java new file mode 100644 index 000000000000..deab90fd51e7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Segment.java @@ -0,0 +1,910 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Segment of the content.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Segment} + */ +public final class Segment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Segment) + SegmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Segment.newBuilder() to construct. + private Segment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Segment() { + text_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Segment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Segment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Segment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Segment.class, + com.google.cloud.aiplatform.v1.Segment.Builder.class); + } + + public static final int PART_INDEX_FIELD_NUMBER = 1; + private int partIndex_ = 0; + /** + * + * + *
+   * Output only. The index of a Part object within its parent Content object.
+   * 
+ * + * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The partIndex. + */ + @java.lang.Override + public int getPartIndex() { + return partIndex_; + } + + public static final int START_INDEX_FIELD_NUMBER = 2; + private int startIndex_ = 0; + /** + * + * + *
+   * Output only. Start index in the given Part, measured in bytes. Offset from
+   * the start of the Part, inclusive, starting at zero.
+   * 
+ * + * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + public static final int END_INDEX_FIELD_NUMBER = 3; + private int endIndex_ = 0; + /** + * + * + *
+   * Output only. End index in the given Part, measured in bytes. Offset from
+   * the start of the Part, exclusive, starting at zero.
+   * 
+ * + * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + + public static final int TEXT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + /** + * + * + *
+   * Output only. The text corresponding to the segment from the response.
+   * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The text corresponding to the segment from the response.
+   * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (partIndex_ != 0) { + output.writeInt32(1, partIndex_); + } + if (startIndex_ != 0) { + output.writeInt32(2, startIndex_); + } + if (endIndex_ != 0) { + output.writeInt32(3, endIndex_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, text_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (partIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, partIndex_); + } + if (startIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, startIndex_); + } + if (endIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, endIndex_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, text_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.Segment)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.Segment other = (com.google.cloud.aiplatform.v1.Segment) obj; + + if (getPartIndex() != other.getPartIndex()) return false; + if (getStartIndex() != other.getStartIndex()) return false; + if (getEndIndex() != other.getEndIndex()) return false; + if (!getText().equals(other.getText())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PART_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getPartIndex(); + hash = (37 * hash) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.Segment parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Segment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Segment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Segment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Segment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Segment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Segment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Segment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Segment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Segment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Segment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Segment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.Segment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Segment of the content.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Segment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Segment) + com.google.cloud.aiplatform.v1.SegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Segment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Segment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Segment.class, + com.google.cloud.aiplatform.v1.Segment.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.Segment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + partIndex_ = 0; + startIndex_ = 0; + endIndex_ = 0; + text_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Segment_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Segment getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.Segment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Segment build() { + com.google.cloud.aiplatform.v1.Segment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Segment buildPartial() { + com.google.cloud.aiplatform.v1.Segment result = + new com.google.cloud.aiplatform.v1.Segment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Segment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.partIndex_ = partIndex_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startIndex_ = startIndex_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endIndex_ = endIndex_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.text_ = text_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.Segment) { + return mergeFrom((com.google.cloud.aiplatform.v1.Segment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.Segment other) { + if (other == com.google.cloud.aiplatform.v1.Segment.getDefaultInstance()) return this; + if (other.getPartIndex() != 0) { + setPartIndex(other.getPartIndex()); + } + if (other.getStartIndex() != 0) { + setStartIndex(other.getStartIndex()); + } + if (other.getEndIndex() != 0) { + setEndIndex(other.getEndIndex()); + } + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + partIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + startIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + endIndex_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int partIndex_; + /** + * + * + *
+     * Output only. The index of a Part object within its parent Content object.
+     * 
+ * + * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The partIndex. + */ + @java.lang.Override + public int getPartIndex() { + return partIndex_; + } + /** + * + * + *
+     * Output only. The index of a Part object within its parent Content object.
+     * 
+ * + * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The partIndex to set. + * @return This builder for chaining. + */ + public Builder setPartIndex(int value) { + + partIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The index of a Part object within its parent Content object.
+     * 
+ * + * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPartIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + partIndex_ = 0; + onChanged(); + return this; + } + + private int startIndex_; + /** + * + * + *
+     * Output only. Start index in the given Part, measured in bytes. Offset from
+     * the start of the Part, inclusive, starting at zero.
+     * 
+ * + * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + /** + * + * + *
+     * Output only. Start index in the given Part, measured in bytes. Offset from
+     * the start of the Part, inclusive, starting at zero.
+     * 
+ * + * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The startIndex to set. + * @return This builder for chaining. + */ + public Builder setStartIndex(int value) { + + startIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Start index in the given Part, measured in bytes. Offset from
+     * the start of the Part, inclusive, starting at zero.
+     * 
+ * + * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + startIndex_ = 0; + onChanged(); + return this; + } + + private int endIndex_; + /** + * + * + *
+     * Output only. End index in the given Part, measured in bytes. Offset from
+     * the start of the Part, exclusive, starting at zero.
+     * 
+ * + * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + /** + * + * + *
+     * Output only. End index in the given Part, measured in bytes. Offset from
+     * the start of the Part, exclusive, starting at zero.
+     * 
+ * + * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The endIndex to set. + * @return This builder for chaining. + */ + public Builder setEndIndex(int value) { + + endIndex_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. End index in the given Part, measured in bytes. Offset from
+     * the start of the Part, exclusive, starting at zero.
+     * 
+ * + * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEndIndex() { + bitField0_ = (bitField0_ & ~0x00000004); + endIndex_ = 0; + onChanged(); + return this; + } + + private java.lang.Object text_ = ""; + /** + * + * + *
+     * Output only. The text corresponding to the segment from the response.
+     * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The text corresponding to the segment from the response.
+     * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The text corresponding to the segment from the response.
+     * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The text corresponding to the segment from the response.
+     * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The text corresponding to the segment from the response.
+     * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Segment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Segment) + private static final com.google.cloud.aiplatform.v1.Segment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Segment(); + } + + public static com.google.cloud.aiplatform.v1.Segment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Segment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Segment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SegmentOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SegmentOrBuilder.java new file mode 100644 index 000000000000..c474f1901bf3 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SegmentOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1; + +public interface SegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Segment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The index of a Part object within its parent Content object.
+   * 
+ * + * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The partIndex. + */ + int getPartIndex(); + + /** + * + * + *
+   * Output only. Start index in the given Part, measured in bytes. Offset from
+   * the start of the Part, inclusive, starting at zero.
+   * 
+ * + * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The startIndex. + */ + int getStartIndex(); + + /** + * + * + *
+   * Output only. End index in the given Part, measured in bytes. Offset from
+   * the start of the Part, exclusive, starting at zero.
+   * 
+ * + * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endIndex. + */ + int getEndIndex(); + + /** + * + * + *
+   * Output only. The text corresponding to the segment from the response.
+   * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The text. + */ + java.lang.String getText(); + /** + * + * + *
+   * Output only. The text corresponding to the segment from the response.
+   * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStats.java index 5a7f384013ba..6af5fbee9d8c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStats.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStats.java @@ -111,16 +111,38 @@ public long getTotalTuningCharacterCount() { * Output only. Number of billable characters in the tuning dataset. * * - * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 total_billable_character_count = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.aiplatform.v1.SupervisedTuningDataStats.total_billable_character_count + * is deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=212 * @return The totalBillableCharacterCount. */ @java.lang.Override + @java.lang.Deprecated public long getTotalBillableCharacterCount() { return totalBillableCharacterCount_; } + public static final int TOTAL_BILLABLE_TOKEN_COUNT_FIELD_NUMBER = 9; + private long totalBillableTokenCount_ = 0L; + /** + * + * + *
+   * Output only. Number of billable tokens in the tuning dataset.
+   * 
+ * + * int64 total_billable_token_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalBillableTokenCount. + */ + @java.lang.Override + public long getTotalBillableTokenCount() { + return totalBillableTokenCount_; + } + public static final int TUNING_STEP_COUNT_FIELD_NUMBER = 4; private long tuningStepCount_ = 0L; /** @@ -436,6 +458,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < userDatasetExamples_.size(); i++) { output.writeMessage(8, userDatasetExamples_.get(i)); } + if (totalBillableTokenCount_ != 0L) { + output.writeInt64(9, totalBillableTokenCount_); + } getUnknownFields().writeTo(output); } @@ -477,6 +502,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, userDatasetExamples_.get(i)); } + if (totalBillableTokenCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, totalBillableTokenCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -496,6 +524,7 @@ public boolean equals(final java.lang.Object obj) { if (getTuningDatasetExampleCount() != other.getTuningDatasetExampleCount()) return false; if (getTotalTuningCharacterCount() != other.getTotalTuningCharacterCount()) return false; if (getTotalBillableCharacterCount() != other.getTotalBillableCharacterCount()) return false; + if (getTotalBillableTokenCount() != other.getTotalBillableTokenCount()) return false; if (getTuningStepCount() != other.getTuningStepCount()) return false; if (hasUserInputTokenDistribution() != other.hasUserInputTokenDistribution()) return false; if (hasUserInputTokenDistribution()) { @@ -531,6 +560,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalTuningCharacterCount()); hash = (37 * hash) + TOTAL_BILLABLE_CHARACTER_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacterCount()); + hash = (37 * hash) + TOTAL_BILLABLE_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableTokenCount()); hash = (37 * hash) + TUNING_STEP_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTuningStepCount()); if (hasUserInputTokenDistribution()) { @@ -704,6 +735,7 @@ public Builder clear() { tuningDatasetExampleCount_ = 0L; totalTuningCharacterCount_ = 0L; totalBillableCharacterCount_ = 0L; + totalBillableTokenCount_ = 0L; tuningStepCount_ = 0L; userInputTokenDistribution_ = null; if (userInputTokenDistributionBuilder_ != null) { @@ -726,7 +758,7 @@ public Builder clear() { userDatasetExamples_ = null; userDatasetExamplesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); return this; } @@ -765,9 +797,9 @@ public com.google.cloud.aiplatform.v1.SupervisedTuningDataStats buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.aiplatform.v1.SupervisedTuningDataStats result) { if (userDatasetExamplesBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { userDatasetExamples_ = java.util.Collections.unmodifiableList(userDatasetExamples_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } result.userDatasetExamples_ = userDatasetExamples_; } else { @@ -787,24 +819,27 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.SupervisedTuningDataSt result.totalBillableCharacterCount_ = totalBillableCharacterCount_; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.totalBillableTokenCount_ = totalBillableTokenCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.tuningStepCount_ = tuningStepCount_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.userInputTokenDistribution_ = userInputTokenDistributionBuilder_ == null ? userInputTokenDistribution_ : userInputTokenDistributionBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.userOutputTokenDistribution_ = userOutputTokenDistributionBuilder_ == null ? userOutputTokenDistribution_ : userOutputTokenDistributionBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.userMessagePerExampleDistribution_ = userMessagePerExampleDistributionBuilder_ == null ? userMessagePerExampleDistribution_ @@ -869,6 +904,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SupervisedTuningDataStat if (other.getTotalBillableCharacterCount() != 0L) { setTotalBillableCharacterCount(other.getTotalBillableCharacterCount()); } + if (other.getTotalBillableTokenCount() != 0L) { + setTotalBillableTokenCount(other.getTotalBillableTokenCount()); + } if (other.getTuningStepCount() != 0L) { setTuningStepCount(other.getTuningStepCount()); } @@ -885,7 +923,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SupervisedTuningDataStat if (!other.userDatasetExamples_.isEmpty()) { if (userDatasetExamples_.isEmpty()) { userDatasetExamples_ = other.userDatasetExamples_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureUserDatasetExamplesIsMutable(); userDatasetExamples_.addAll(other.userDatasetExamples_); @@ -898,7 +936,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SupervisedTuningDataStat userDatasetExamplesBuilder_.dispose(); userDatasetExamplesBuilder_ = null; userDatasetExamples_ = other.userDatasetExamples_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); userDatasetExamplesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUserDatasetExamplesFieldBuilder() @@ -955,21 +993,21 @@ public Builder mergeFrom( case 32: { tuningStepCount_ = input.readInt64(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 32 case 42: { input.readMessage( getUserInputTokenDistributionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 case 50: { input.readMessage( getUserOutputTokenDistributionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 58: @@ -977,7 +1015,7 @@ public Builder mergeFrom( input.readMessage( getUserMessagePerExampleDistributionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 58 case 66: @@ -993,6 +1031,12 @@ public Builder mergeFrom( } break; } // case 66 + case 72: + { + totalBillableTokenCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1132,12 +1176,17 @@ public Builder clearTotalTuningCharacterCount() { * Output only. Number of billable characters in the tuning dataset. * * - * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 total_billable_character_count = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated + * google.cloud.aiplatform.v1.SupervisedTuningDataStats.total_billable_character_count is + * deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=212 * @return The totalBillableCharacterCount. */ @java.lang.Override + @java.lang.Deprecated public long getTotalBillableCharacterCount() { return totalBillableCharacterCount_; } @@ -1148,12 +1197,17 @@ public long getTotalBillableCharacterCount() { * Output only. Number of billable characters in the tuning dataset. * * - * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 total_billable_character_count = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated + * google.cloud.aiplatform.v1.SupervisedTuningDataStats.total_billable_character_count is + * deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=212 * @param value The totalBillableCharacterCount to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setTotalBillableCharacterCount(long value) { totalBillableCharacterCount_ = value; @@ -1168,11 +1222,16 @@ public Builder setTotalBillableCharacterCount(long value) { * Output only. Number of billable characters in the tuning dataset. * * - * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 total_billable_character_count = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated + * google.cloud.aiplatform.v1.SupervisedTuningDataStats.total_billable_character_count is + * deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=212 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearTotalBillableCharacterCount() { bitField0_ = (bitField0_ & ~0x00000004); totalBillableCharacterCount_ = 0L; @@ -1180,6 +1239,62 @@ public Builder clearTotalBillableCharacterCount() { return this; } + private long totalBillableTokenCount_; + /** + * + * + *
+     * Output only. Number of billable tokens in the tuning dataset.
+     * 
+ * + * int64 total_billable_token_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalBillableTokenCount. + */ + @java.lang.Override + public long getTotalBillableTokenCount() { + return totalBillableTokenCount_; + } + /** + * + * + *
+     * Output only. Number of billable tokens in the tuning dataset.
+     * 
+ * + * int64 total_billable_token_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The totalBillableTokenCount to set. + * @return This builder for chaining. + */ + public Builder setTotalBillableTokenCount(long value) { + + totalBillableTokenCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Number of billable tokens in the tuning dataset.
+     * 
+ * + * int64 total_billable_token_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTotalBillableTokenCount() { + bitField0_ = (bitField0_ & ~0x00000008); + totalBillableTokenCount_ = 0L; + onChanged(); + return this; + } + private long tuningStepCount_; /** * @@ -1211,7 +1326,7 @@ public long getTuningStepCount() { public Builder setTuningStepCount(long value) { tuningStepCount_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1227,7 +1342,7 @@ public Builder setTuningStepCount(long value) { * @return This builder for chaining. */ public Builder clearTuningStepCount() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); tuningStepCount_ = 0L; onChanged(); return this; @@ -1254,7 +1369,7 @@ public Builder clearTuningStepCount() { * @return Whether the userInputTokenDistribution field is set. */ public boolean hasUserInputTokenDistribution() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1301,7 +1416,7 @@ public Builder setUserInputTokenDistribution( } else { userInputTokenDistributionBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1324,7 +1439,7 @@ public Builder setUserInputTokenDistribution( } else { userInputTokenDistributionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1342,7 +1457,7 @@ public Builder setUserInputTokenDistribution( public Builder mergeUserInputTokenDistribution( com.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution value) { if (userInputTokenDistributionBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && userInputTokenDistribution_ != null && userInputTokenDistribution_ != com.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution @@ -1355,7 +1470,7 @@ public Builder mergeUserInputTokenDistribution( userInputTokenDistributionBuilder_.mergeFrom(value); } if (userInputTokenDistribution_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -1372,7 +1487,7 @@ public Builder mergeUserInputTokenDistribution( *
*/ public Builder clearUserInputTokenDistribution() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); userInputTokenDistribution_ = null; if (userInputTokenDistributionBuilder_ != null) { userInputTokenDistributionBuilder_.dispose(); @@ -1394,7 +1509,7 @@ public Builder clearUserInputTokenDistribution() { */ public com.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution.Builder getUserInputTokenDistributionBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getUserInputTokenDistributionFieldBuilder().getBuilder(); } @@ -1469,7 +1584,7 @@ public Builder clearUserInputTokenDistribution() { * @return Whether the userOutputTokenDistribution field is set. */ public boolean hasUserOutputTokenDistribution() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1516,7 +1631,7 @@ public Builder setUserOutputTokenDistribution( } else { userOutputTokenDistributionBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1539,7 +1654,7 @@ public Builder setUserOutputTokenDistribution( } else { userOutputTokenDistributionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1557,7 +1672,7 @@ public Builder setUserOutputTokenDistribution( public Builder mergeUserOutputTokenDistribution( com.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution value) { if (userOutputTokenDistributionBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && userOutputTokenDistribution_ != null && userOutputTokenDistribution_ != com.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution @@ -1570,7 +1685,7 @@ public Builder mergeUserOutputTokenDistribution( userOutputTokenDistributionBuilder_.mergeFrom(value); } if (userOutputTokenDistribution_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -1587,7 +1702,7 @@ public Builder mergeUserOutputTokenDistribution( *
*/ public Builder clearUserOutputTokenDistribution() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); userOutputTokenDistribution_ = null; if (userOutputTokenDistributionBuilder_ != null) { userOutputTokenDistributionBuilder_.dispose(); @@ -1609,7 +1724,7 @@ public Builder clearUserOutputTokenDistribution() { */ public com.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution.Builder getUserOutputTokenDistributionBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getUserOutputTokenDistributionFieldBuilder().getBuilder(); } @@ -1684,7 +1799,7 @@ public Builder clearUserOutputTokenDistribution() { * @return Whether the userMessagePerExampleDistribution field is set. */ public boolean hasUserMessagePerExampleDistribution() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -1731,7 +1846,7 @@ public Builder setUserMessagePerExampleDistribution( } else { userMessagePerExampleDistributionBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1754,7 +1869,7 @@ public Builder setUserMessagePerExampleDistribution( } else { userMessagePerExampleDistributionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1772,7 +1887,7 @@ public Builder setUserMessagePerExampleDistribution( public Builder mergeUserMessagePerExampleDistribution( com.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution value) { if (userMessagePerExampleDistributionBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && userMessagePerExampleDistribution_ != null && userMessagePerExampleDistribution_ != com.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution @@ -1785,7 +1900,7 @@ public Builder mergeUserMessagePerExampleDistribution( userMessagePerExampleDistributionBuilder_.mergeFrom(value); } if (userMessagePerExampleDistribution_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -1802,7 +1917,7 @@ public Builder mergeUserMessagePerExampleDistribution( *
*/ public Builder clearUserMessagePerExampleDistribution() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); userMessagePerExampleDistribution_ = null; if (userMessagePerExampleDistributionBuilder_ != null) { userMessagePerExampleDistributionBuilder_.dispose(); @@ -1824,7 +1939,7 @@ public Builder clearUserMessagePerExampleDistribution() { */ public com.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution.Builder getUserMessagePerExampleDistributionBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getUserMessagePerExampleDistributionFieldBuilder().getBuilder(); } @@ -1882,10 +1997,10 @@ public Builder clearUserMessagePerExampleDistribution() { java.util.Collections.emptyList(); private void ensureUserDatasetExamplesIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { userDatasetExamples_ = new java.util.ArrayList(userDatasetExamples_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } @@ -2123,7 +2238,7 @@ public Builder addAllUserDatasetExamples( public Builder clearUserDatasetExamples() { if (userDatasetExamplesBuilder_ == null) { userDatasetExamples_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { userDatasetExamplesBuilder_.clear(); @@ -2261,7 +2376,7 @@ public com.google.cloud.aiplatform.v1.Content.Builder addUserDatasetExamplesBuil com.google.cloud.aiplatform.v1.Content.Builder, com.google.cloud.aiplatform.v1.ContentOrBuilder>( userDatasetExamples_, - ((bitField0_ & 0x00000080) != 0), + ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); userDatasetExamples_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStatsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStatsOrBuilder.java index b7b6e7b6438a..a2069bb42f4e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStatsOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStatsOrBuilder.java @@ -59,13 +59,30 @@ public interface SupervisedTuningDataStatsOrBuilder * Output only. Number of billable characters in the tuning dataset. * * - * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 total_billable_character_count = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.aiplatform.v1.SupervisedTuningDataStats.total_billable_character_count + * is deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=212 * @return The totalBillableCharacterCount. */ + @java.lang.Deprecated long getTotalBillableCharacterCount(); + /** + * + * + *
+   * Output only. Number of billable tokens in the tuning dataset.
+   * 
+ * + * int64 total_billable_token_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalBillableTokenCount. + */ + long getTotalBillableTokenCount(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDatasetDistribution.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDatasetDistribution.java index b2b55523db69..15e01978f3d2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDatasetDistribution.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDatasetDistribution.java @@ -882,6 +882,24 @@ public long getSum() { return sum_; } + public static final int BILLABLE_SUM_FIELD_NUMBER = 9; + private long billableSum_ = 0L; + /** + * + * + *
+   * Output only. Sum of a given population of values that are billable.
+   * 
+ * + * int64 billable_sum = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The billableSum. + */ + @java.lang.Override + public long getBillableSum() { + return billableSum_; + } + public static final int MIN_FIELD_NUMBER = 2; private double min_ = 0D; /** @@ -1118,6 +1136,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < buckets_.size(); i++) { output.writeMessage(8, buckets_.get(i)); } + if (billableSum_ != 0L) { + output.writeInt64(9, billableSum_); + } getUnknownFields().writeTo(output); } @@ -1151,6 +1172,9 @@ public int getSerializedSize() { for (int i = 0; i < buckets_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, buckets_.get(i)); } + if (billableSum_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, billableSum_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1168,6 +1192,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution) obj; if (getSum() != other.getSum()) return false; + if (getBillableSum() != other.getBillableSum()) return false; if (java.lang.Double.doubleToLongBits(getMin()) != java.lang.Double.doubleToLongBits(other.getMin())) return false; if (java.lang.Double.doubleToLongBits(getMax()) @@ -1194,6 +1219,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSum()); + hash = (37 * hash) + BILLABLE_SUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBillableSum()); hash = (37 * hash) + MIN_FIELD_NUMBER; hash = (53 * hash) @@ -1365,6 +1392,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; sum_ = 0L; + billableSum_ = 0L; min_ = 0D; max_ = 0D; mean_ = 0D; @@ -1377,7 +1405,7 @@ public Builder clear() { buckets_ = null; bucketsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); return this; } @@ -1418,9 +1446,9 @@ public com.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution buildP private void buildPartialRepeatedFields( com.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution result) { if (bucketsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { buckets_ = java.util.Collections.unmodifiableList(buckets_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } result.buckets_ = buckets_; } else { @@ -1435,21 +1463,24 @@ private void buildPartial0( result.sum_ = sum_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.min_ = min_; + result.billableSum_ = billableSum_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.max_ = max_; + result.min_ = min_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.mean_ = mean_; + result.max_ = max_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.median_ = median_; + result.mean_ = mean_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.p5_ = p5_; + result.median_ = median_; } if (((from_bitField0_ & 0x00000040) != 0)) { + result.p5_ = p5_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { result.p95_ = p95_; } } @@ -1506,6 +1537,9 @@ public Builder mergeFrom( if (other.getSum() != 0L) { setSum(other.getSum()); } + if (other.getBillableSum() != 0L) { + setBillableSum(other.getBillableSum()); + } if (other.getMin() != 0D) { setMin(other.getMin()); } @@ -1528,7 +1562,7 @@ public Builder mergeFrom( if (!other.buckets_.isEmpty()) { if (buckets_.isEmpty()) { buckets_ = other.buckets_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureBucketsIsMutable(); buckets_.addAll(other.buckets_); @@ -1541,7 +1575,7 @@ public Builder mergeFrom( bucketsBuilder_.dispose(); bucketsBuilder_ = null; buckets_ = other.buckets_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); bucketsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBucketsFieldBuilder() @@ -1586,37 +1620,37 @@ public Builder mergeFrom( case 17: { min_ = input.readDouble(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 17 case 25: { max_ = input.readDouble(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 25 case 33: { mean_ = input.readDouble(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 33 case 41: { median_ = input.readDouble(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 41 case 49: { p5_ = input.readDouble(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 49 case 57: { p95_ = input.readDouble(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 57 case 66: @@ -1634,6 +1668,12 @@ public Builder mergeFrom( } break; } // case 66 + case 72: + { + billableSum_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1706,6 +1746,59 @@ public Builder clearSum() { return this; } + private long billableSum_; + /** + * + * + *
+     * Output only. Sum of a given population of values that are billable.
+     * 
+ * + * int64 billable_sum = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The billableSum. + */ + @java.lang.Override + public long getBillableSum() { + return billableSum_; + } + /** + * + * + *
+     * Output only. Sum of a given population of values that are billable.
+     * 
+ * + * int64 billable_sum = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The billableSum to set. + * @return This builder for chaining. + */ + public Builder setBillableSum(long value) { + + billableSum_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Sum of a given population of values that are billable.
+     * 
+ * + * int64 billable_sum = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBillableSum() { + bitField0_ = (bitField0_ & ~0x00000002); + billableSum_ = 0L; + onChanged(); + return this; + } + private double min_; /** * @@ -1737,7 +1830,7 @@ public double getMin() { public Builder setMin(double value) { min_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1753,7 +1846,7 @@ public Builder setMin(double value) { * @return This builder for chaining. */ public Builder clearMin() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); min_ = 0D; onChanged(); return this; @@ -1790,7 +1883,7 @@ public double getMax() { public Builder setMax(double value) { max_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1806,7 +1899,7 @@ public Builder setMax(double value) { * @return This builder for chaining. */ public Builder clearMax() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); max_ = 0D; onChanged(); return this; @@ -1843,7 +1936,7 @@ public double getMean() { public Builder setMean(double value) { mean_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1859,7 +1952,7 @@ public Builder setMean(double value) { * @return This builder for chaining. */ public Builder clearMean() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); mean_ = 0D; onChanged(); return this; @@ -1896,7 +1989,7 @@ public double getMedian() { public Builder setMedian(double value) { median_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1912,7 +2005,7 @@ public Builder setMedian(double value) { * @return This builder for chaining. */ public Builder clearMedian() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); median_ = 0D; onChanged(); return this; @@ -1949,7 +2042,7 @@ public double getP5() { public Builder setP5(double value) { p5_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1965,7 +2058,7 @@ public Builder setP5(double value) { * @return This builder for chaining. */ public Builder clearP5() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); p5_ = 0D; onChanged(); return this; @@ -2002,7 +2095,7 @@ public double getP95() { public Builder setP95(double value) { p95_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2018,7 +2111,7 @@ public Builder setP95(double value) { * @return This builder for chaining. */ public Builder clearP95() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); p95_ = 0D; onChanged(); return this; @@ -2029,12 +2122,12 @@ public Builder clearP95() { buckets_ = java.util.Collections.emptyList(); private void ensureBucketsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { buckets_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution.DatasetBucket>( buckets_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } @@ -2291,7 +2384,7 @@ public Builder addAllBuckets( public Builder clearBuckets() { if (bucketsBuilder_ == null) { buckets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { bucketsBuilder_.clear(); @@ -2445,7 +2538,7 @@ public Builder removeBuckets(int index) { .Builder, com.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution .DatasetBucketOrBuilder>( - buckets_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + buckets_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); buckets_ = null; } return bucketsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDatasetDistributionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDatasetDistributionOrBuilder.java index 8f428ad32af2..952ea2d89390 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDatasetDistributionOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDatasetDistributionOrBuilder.java @@ -37,6 +37,19 @@ public interface SupervisedTuningDatasetDistributionOrBuilder */ long getSum(); + /** + * + * + *
+   * Output only. Sum of a given population of values that are billable.
+   * 
+ * + * int64 billable_sum = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The billableSum. + */ + long getBillableSum(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java index fe512567abf5..0f8b42a44571 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java @@ -91,25 +91,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB\003\340A\002\022*\n\004args\030\002 \001(\0132\027.google.protobu" + "f.StructB\003\340A\001\"U\n\020FunctionResponse\022\021\n\004nam" + "e\030\001 \001(\tB\003\340A\002\022.\n\010response\030\002 \001(\0132\027.google." - + "protobuf.StructB\003\340A\002\"\177\n\tRetrieval\022F\n\020ver" - + "tex_ai_search\030\002 \001(\0132*.google.cloud.aipla" - + "tform.v1.VertexAISearchH\000\022 \n\023disable_att" - + "ribution\030\003 \001(\010B\003\340A\001B\010\n\006source\"(\n\016VertexA" - + "ISearch\022\026\n\tdatastore\030\001 \001(\tB\003\340A\002\"\027\n\025Googl" - + "eSearchRetrieval\"e\n\nToolConfig\022W\n\027functi" - + "on_calling_config\030\001 \001(\01321.google.cloud.a" - + "iplatform.v1.FunctionCallingConfigB\003\340A\001\"" - + "\302\001\n\025FunctionCallingConfig\022I\n\004mode\030\001 \001(\0162" - + "6.google.cloud.aiplatform.v1.FunctionCal" - + "lingConfig.ModeB\003\340A\001\022#\n\026allowed_function" - + "_names\030\002 \003(\tB\003\340A\001\"9\n\004Mode\022\024\n\020MODE_UNSPEC" - + "IFIED\020\000\022\010\n\004AUTO\020\001\022\007\n\003ANY\020\002\022\010\n\004NONE\020\003B\307\001\n" - + "\036com.google.cloud.aiplatform.v1B\tToolPro" - + "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" + + "protobuf.StructB\003\340A\002\"\201\001\n\tRetrieval\022F\n\020ve" + + "rtex_ai_search\030\002 \001(\0132*.google.cloud.aipl" + + "atform.v1.VertexAISearchH\000\022\"\n\023disable_at" + + "tribution\030\003 \001(\010B\005\030\001\340A\001B\010\n\006source\"(\n\016Vert" + + "exAISearch\022\026\n\tdatastore\030\001 \001(\tB\003\340A\002\"\027\n\025Go" + + "ogleSearchRetrieval\"e\n\nToolConfig\022W\n\027fun" + + "ction_calling_config\030\001 \001(\01321.google.clou" + + "d.aiplatform.v1.FunctionCallingConfigB\003\340" + + "A\001\"\302\001\n\025FunctionCallingConfig\022I\n\004mode\030\001 \001" + + "(\01626.google.cloud.aiplatform.v1.Function" + + "CallingConfig.ModeB\003\340A\001\022#\n\026allowed_funct" + + "ion_names\030\002 \003(\tB\003\340A\001\"9\n\004Mode\022\024\n\020MODE_UNS" + + "PECIFIED\020\000\022\010\n\004AUTO\020\001\022\007\n\003ANY\020\002\022\010\n\004NONE\020\003B" + + "\307\001\n\036com.google.cloud.aiplatform.v1B\tTool" + + "ProtoP\001Z>cloud.google.com/go/aiplatform/" + + "apiv1/aiplatformpb;aiplatformpb\252\002\032Google" + + ".Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPl" + + "atform\\V1\352\002\035Google::Cloud::AIPlatform::V" + + "1b\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/TrialContext.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialContext.java index b4fde92c216a..1504dd7431e7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialContext.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialContext.java @@ -19,15 +19,7 @@ // Protobuf Java Version: 3.25.3 package com.google.cloud.aiplatform.v1; -/** - * - * - *
- * Next ID: 3
- * 
- * - * Protobuf type {@code google.cloud.aiplatform.v1.TrialContext} - */ +/** Protobuf type {@code google.cloud.aiplatform.v1.TrialContext} */ public final class TrialContext extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.TrialContext) @@ -398,15 +390,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** - * - * - *
-   * Next ID: 3
-   * 
- * - * Protobuf type {@code google.cloud.aiplatform.v1.TrialContext} - */ + /** Protobuf type {@code google.cloud.aiplatform.v1.TrialContext} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.TrialContext) diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobProto.java index e17e95629c87..bda693da99c4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobProto.java @@ -111,52 +111,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"\202\001\n\nTunedModel\0226\n\005model\030\001 \001(\tB\'\340A\003\372A!\n\037" + "aiplatform.googleapis.com/Model\022<\n\010endpo" + "int\030\002 \001(\tB*\340A\003\372A$\n\"aiplatform.googleapis" - + ".com/Endpoint\"\327\002\n#SupervisedTuningDatase" - + "tDistribution\022\020\n\003sum\030\001 \001(\003B\003\340A\003\022\020\n\003min\030\002" - + " \001(\001B\003\340A\003\022\020\n\003max\030\003 \001(\001B\003\340A\003\022\021\n\004mean\030\004 \001(" - + "\001B\003\340A\003\022\023\n\006median\030\005 \001(\001B\003\340A\003\022\017\n\002p5\030\006 \001(\001B" - + "\003\340A\003\022\020\n\003p95\030\007 \001(\001B\003\340A\003\022c\n\007buckets\030\010 \003(\0132" - + "M.google.cloud.aiplatform.v1.SupervisedT" - + "uningDatasetDistribution.DatasetBucketB\003" - + "\340A\003\032J\n\rDatasetBucket\022\022\n\005count\030\001 \001(\001B\003\340A\003" - + "\022\021\n\004left\030\002 \001(\001B\003\340A\003\022\022\n\005right\030\003 \001(\001B\003\340A\003\"" - + "\327\004\n\031SupervisedTuningDataStats\022)\n\034tuning_" - + "dataset_example_count\030\001 \001(\003B\003\340A\003\022)\n\034tota" - + "l_tuning_character_count\030\002 \001(\003B\003\340A\003\022+\n\036t" - + "otal_billable_character_count\030\003 \001(\003B\003\340A\003" - + "\022\036\n\021tuning_step_count\030\004 \001(\003B\003\340A\003\022k\n\035user" - + "_input_token_distribution\030\005 \001(\0132?.google" - + ".cloud.aiplatform.v1.SupervisedTuningDat" - + "asetDistributionB\003\340A\003\022l\n\036user_output_tok" - + "en_distribution\030\006 \001(\0132?.google.cloud.aip" + + ".com/Endpoint\"\362\002\n#SupervisedTuningDatase" + + "tDistribution\022\020\n\003sum\030\001 \001(\003B\003\340A\003\022\031\n\014billa" + + "ble_sum\030\t \001(\003B\003\340A\003\022\020\n\003min\030\002 \001(\001B\003\340A\003\022\020\n\003" + + "max\030\003 \001(\001B\003\340A\003\022\021\n\004mean\030\004 \001(\001B\003\340A\003\022\023\n\006med" + + "ian\030\005 \001(\001B\003\340A\003\022\017\n\002p5\030\006 \001(\001B\003\340A\003\022\020\n\003p95\030\007" + + " \001(\001B\003\340A\003\022c\n\007buckets\030\010 \003(\0132M.google.clou" + + "d.aiplatform.v1.SupervisedTuningDatasetD" + + "istribution.DatasetBucketB\003\340A\003\032J\n\rDatase" + + "tBucket\022\022\n\005count\030\001 \001(\001B\003\340A\003\022\021\n\004left\030\002 \001(" + + "\001B\003\340A\003\022\022\n\005right\030\003 \001(\001B\003\340A\003\"\202\005\n\031Supervise" + + "dTuningDataStats\022)\n\034tuning_dataset_examp" + + "le_count\030\001 \001(\003B\003\340A\003\022)\n\034total_tuning_char" + + "acter_count\030\002 \001(\003B\003\340A\003\022-\n\036total_billable" + + "_character_count\030\003 \001(\003B\005\030\001\340A\003\022\'\n\032total_b" + + "illable_token_count\030\t \001(\003B\003\340A\003\022\036\n\021tuning" + + "_step_count\030\004 \001(\003B\003\340A\003\022k\n\035user_input_tok" + + "en_distribution\030\005 \001(\0132?.google.cloud.aip" + "latform.v1.SupervisedTuningDatasetDistri" - + "butionB\003\340A\003\022s\n%user_message_per_example_" - + "distribution\030\007 \001(\0132?.google.cloud.aiplat" - + "form.v1.SupervisedTuningDatasetDistribut" - + "ionB\003\340A\003\022G\n\025user_dataset_examples\030\010 \003(\0132" - + "#.google.cloud.aiplatform.v1.ContentB\003\340A" - + "\003\"\205\001\n\017TuningDataStats\022]\n\034supervised_tuni" - + "ng_data_stats\030\001 \001(\01325.google.cloud.aipla" - + "tform.v1.SupervisedTuningDataStatsH\000B\023\n\021" - + "tuning_data_stats\"\307\002\n\031SupervisedHyperPar" - + "ameters\022\030\n\013epoch_count\030\001 \001(\003B\003\340A\001\022%\n\030lea" - + "rning_rate_multiplier\030\002 \001(\001B\003\340A\001\022\\\n\014adap" - + "ter_size\030\003 \001(\0162A.google.cloud.aiplatform" - + ".v1.SupervisedHyperParameters.AdapterSiz" - + "eB\003\340A\001\"\212\001\n\013AdapterSize\022\034\n\030ADAPTER_SIZE_U" - + "NSPECIFIED\020\000\022\024\n\020ADAPTER_SIZE_ONE\020\001\022\025\n\021AD" - + "APTER_SIZE_FOUR\020\002\022\026\n\022ADAPTER_SIZE_EIGHT\020" - + "\003\022\030\n\024ADAPTER_SIZE_SIXTEEN\020\004\"\264\001\n\024Supervis" - + "edTuningSpec\022!\n\024training_dataset_uri\030\001 \001" - + "(\tB\003\340A\002\022#\n\026validation_dataset_uri\030\002 \001(\tB" - + "\003\340A\001\022T\n\020hyper_parameters\030\003 \001(\01325.google." - + "cloud.aiplatform.v1.SupervisedHyperParam" - + "etersB\003\340A\001B\314\001\n\036com.google.cloud.aiplatfo" - + "rm.v1B\016TuningJobProtoP\001Z>cloud.google.co" - + "m/go/aiplatform/apiv1/aiplatformpb;aipla" - + "tformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" - + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Clou" - + "d::AIPlatform::V1b\006proto3" + + "butionB\003\340A\003\022l\n\036user_output_token_distrib" + + "ution\030\006 \001(\0132?.google.cloud.aiplatform.v1" + + ".SupervisedTuningDatasetDistributionB\003\340A" + + "\003\022s\n%user_message_per_example_distributi" + + "on\030\007 \001(\0132?.google.cloud.aiplatform.v1.Su" + + "pervisedTuningDatasetDistributionB\003\340A\003\022G" + + "\n\025user_dataset_examples\030\010 \003(\0132#.google.c" + + "loud.aiplatform.v1.ContentB\003\340A\003\"\205\001\n\017Tuni" + + "ngDataStats\022]\n\034supervised_tuning_data_st" + + "ats\030\001 \001(\01325.google.cloud.aiplatform.v1.S" + + "upervisedTuningDataStatsH\000B\023\n\021tuning_dat" + + "a_stats\"\307\002\n\031SupervisedHyperParameters\022\030\n" + + "\013epoch_count\030\001 \001(\003B\003\340A\001\022%\n\030learning_rate" + + "_multiplier\030\002 \001(\001B\003\340A\001\022\\\n\014adapter_size\030\003" + + " \001(\0162A.google.cloud.aiplatform.v1.Superv" + + "isedHyperParameters.AdapterSizeB\003\340A\001\"\212\001\n" + + "\013AdapterSize\022\034\n\030ADAPTER_SIZE_UNSPECIFIED" + + "\020\000\022\024\n\020ADAPTER_SIZE_ONE\020\001\022\025\n\021ADAPTER_SIZE" + + "_FOUR\020\002\022\026\n\022ADAPTER_SIZE_EIGHT\020\003\022\030\n\024ADAPT" + + "ER_SIZE_SIXTEEN\020\004\"\264\001\n\024SupervisedTuningSp" + + "ec\022!\n\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022#\n" + + "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001\022T\n\020hy" + + "per_parameters\030\003 \001(\01325.google.cloud.aipl" + + "atform.v1.SupervisedHyperParametersB\003\340A\001" + + "B\314\001\n\036com.google.cloud.aiplatform.v1B\016Tun" + + "ingJobProtoP\001Z>cloud.google.com/go/aipla" + + "tform/apiv1/aiplatformpb;aiplatformpb\252\002\032" + + "Google.Cloud.AIPlatform.V1\312\002\032Google\\Clou" + + "d\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatf" + + "orm::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -217,7 +219,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_SupervisedTuningDatasetDistribution_descriptor, new java.lang.String[] { - "Sum", "Min", "Max", "Mean", "Median", "P5", "P95", "Buckets", + "Sum", "BillableSum", "Min", "Max", "Mean", "Median", "P5", "P95", "Buckets", }); internal_static_google_cloud_aiplatform_v1_SupervisedTuningDatasetDistribution_DatasetBucket_descriptor = internal_static_google_cloud_aiplatform_v1_SupervisedTuningDatasetDistribution_descriptor @@ -238,6 +240,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TuningDatasetExampleCount", "TotalTuningCharacterCount", "TotalBillableCharacterCount", + "TotalBillableTokenCount", "TuningStepCount", "UserInputTokenDistribution", "UserOutputTokenDistribution", diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureGroupRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureGroupRequest.java index f76bb350f61b..bbfac61270c8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureGroupRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureGroupRequest.java @@ -142,6 +142,9 @@ public com.google.cloud.aiplatform.v1.FeatureGroupOrBuilder getFeatureGroupOrBui * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -167,6 +170,9 @@ public boolean hasUpdateMask() { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -192,6 +198,9 @@ public com.google.protobuf.FieldMask getUpdateMask() { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -841,6 +850,9 @@ public com.google.cloud.aiplatform.v1.FeatureGroupOrBuilder getFeatureGroupOrBui * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -865,6 +877,9 @@ public boolean hasUpdateMask() { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -895,6 +910,9 @@ public com.google.protobuf.FieldMask getUpdateMask() { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -927,6 +945,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -956,6 +977,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -993,6 +1017,9 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1022,6 +1049,9 @@ public Builder clearUpdateMask() { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1046,6 +1076,9 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1074,6 +1107,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureGroupRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureGroupRequestOrBuilder.java index 049539c96672..3a91adfb6407 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureGroupRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureGroupRequestOrBuilder.java @@ -86,6 +86,9 @@ public interface UpdateFeatureGroupRequestOrBuilder * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -108,6 +111,9 @@ public interface UpdateFeatureGroupRequestOrBuilder * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -130,6 +136,9 @@ public interface UpdateFeatureGroupRequestOrBuilder * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureOnlineStoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureOnlineStoreRequest.java index 3ce03e90af55..d7ad67dedd8e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureOnlineStoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureOnlineStoreRequest.java @@ -143,10 +143,11 @@ public com.google.cloud.aiplatform.v1.FeatureOnlineStore getFeatureOnlineStore() * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -171,10 +172,11 @@ public boolean hasUpdateMask() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -199,10 +201,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -861,10 +864,11 @@ public Builder clearFeatureOnlineStore() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -888,10 +892,11 @@ public boolean hasUpdateMask() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -921,10 +926,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -956,10 +962,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -988,10 +995,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1028,10 +1036,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1060,10 +1069,11 @@ public Builder clearUpdateMask() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1087,10 +1097,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1118,10 +1129,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureOnlineStoreRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureOnlineStoreRequestOrBuilder.java index a889ececfeea..31bc5c0388d1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureOnlineStoreRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureOnlineStoreRequestOrBuilder.java @@ -85,10 +85,11 @@ public interface UpdateFeatureOnlineStoreRequestOrBuilder * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -110,10 +111,11 @@ public interface UpdateFeatureOnlineStoreRequestOrBuilder * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -135,10 +137,11 @@ public interface UpdateFeatureOnlineStoreRequestOrBuilder * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequest.java index 260835e03d64..676573b69d5f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequest.java @@ -151,7 +151,8 @@ public com.google.cloud.aiplatform.v1.FeatureOrBuilder getFeatureOrBuilder() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -178,7 +179,8 @@ public boolean hasUpdateMask() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -205,7 +207,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -873,7 +876,8 @@ public com.google.cloud.aiplatform.v1.FeatureOrBuilder getFeatureOrBuilder() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -899,7 +903,8 @@ public boolean hasUpdateMask() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -931,7 +936,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -965,7 +971,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -996,7 +1003,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -1035,7 +1043,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -1066,7 +1075,8 @@ public Builder clearUpdateMask() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -1092,7 +1102,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -1122,7 +1133,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequestOrBuilder.java index 6b93cd652249..457165ef7292 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequestOrBuilder.java @@ -93,7 +93,8 @@ public interface UpdateFeatureRequestOrBuilder * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -117,7 +118,8 @@ public interface UpdateFeatureRequestOrBuilder * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -141,7 +143,8 @@ public interface UpdateFeatureRequestOrBuilder * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureViewRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureViewRequest.java index 6fa3091daf63..df8f17280d9e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureViewRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureViewRequest.java @@ -142,7 +142,14 @@ public com.google.cloud.aiplatform.v1.FeatureViewOrBuilder getFeatureViewOrBuild * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -168,7 +175,14 @@ public boolean hasUpdateMask() { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -194,7 +208,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -844,7 +865,14 @@ public com.google.cloud.aiplatform.v1.FeatureViewOrBuilder getFeatureViewOrBuild * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -869,7 +897,14 @@ public boolean hasUpdateMask() { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -900,7 +935,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -933,7 +975,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -963,7 +1012,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1001,7 +1057,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1031,7 +1094,14 @@ public Builder clearUpdateMask() { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1056,7 +1126,14 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1085,7 +1162,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureViewRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureViewRequestOrBuilder.java index 555209ebd607..3998db8b2a1c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureViewRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureViewRequestOrBuilder.java @@ -86,7 +86,14 @@ public interface UpdateFeatureViewRequestOrBuilder * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -109,7 +116,14 @@ public interface UpdateFeatureViewRequestOrBuilder * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -132,7 +146,14 @@ public interface UpdateFeatureViewRequestOrBuilder * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto index bd01f486b79f..328f3151e4a7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto @@ -30,7 +30,7 @@ enum AcceleratorType { ACCELERATOR_TYPE_UNSPECIFIED = 0; // Nvidia Tesla K80 GPU. - NVIDIA_TESLA_K80 = 1; + NVIDIA_TESLA_K80 = 1 [deprecated = true]; // Nvidia Tesla P100 GPU. NVIDIA_TESLA_P100 = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto index 82cdb3f63e74..b3ae0348e7d3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto @@ -357,6 +357,9 @@ message Candidate { // Output only. Content parts of the candidate. Content content = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Confidence score of the candidate. + double score = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The reason why the model stopped generating tokens. // If empty, the model has not stopped generating the tokens. FinishReason finish_reason = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -381,6 +384,70 @@ message Candidate { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Segment of the content. +message Segment { + // Output only. The index of a Part object within its parent Content object. + int32 part_index = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Start index in the given Part, measured in bytes. Offset from + // the start of the Part, inclusive, starting at zero. + int32 start_index = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. End index in the given Part, measured in bytes. Offset from + // the start of the Part, exclusive, starting at zero. + int32 end_index = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The text corresponding to the segment from the response. + string text = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Grounding chunk. +message GroundingChunk { + // Chunk from the web. + message Web { + // URI reference of the chunk. + optional string uri = 1; + + // Title of the chunk. + optional string title = 2; + } + + // Chunk from context retrieved by the retrieval tools. + message RetrievedContext { + // URI reference of the attribution. + optional string uri = 1; + + // Title of the attribution. + optional string title = 2; + } + + // Chunk type. + oneof chunk_type { + // Grounding chunk from the web. + Web web = 1; + + // Grounding chunk from context retrieved by the retrieval tools. + RetrievedContext retrieved_context = 2; + } +} + +// Grounding support. +message GroundingSupport { + // Segment of the content this support belongs to. + optional Segment segment = 1; + + // A list of indices (into 'grounding_chunk') specifying the + // citations associated with the claim. For instance [1,3,4] means + // that grounding_chunk[1], grounding_chunk[3], + // grounding_chunk[4] are the retrieved content attributed to the claim. + repeated int32 grounding_chunk_indices = 2; + + // Confidence score of the support references. Ranges from 0 to 1. 1 is the + // most confident. This list must have the same size as the + // grounding_chunk_indices. + repeated float confidence_scores = 3; +} + // Metadata returned to client when grounding is enabled. message GroundingMetadata { // Optional. Web search queries for the following-up web search. @@ -390,6 +457,13 @@ message GroundingMetadata { // Optional. Google search entry for the following-up web searches. optional SearchEntryPoint search_entry_point = 4 [(google.api.field_behavior) = OPTIONAL]; + + // List of supporting references retrieved from specified grounding source. + repeated GroundingChunk grounding_chunks = 5; + + // Optional. List of grounding support. + repeated GroundingSupport grounding_supports = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Google search entry point. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto index 5c4bb4791b90..d3f2c140de31 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto @@ -351,6 +351,22 @@ message PythonPackageSpec { // All parameters related to queuing and scheduling of custom jobs. message Scheduling { + // Optional. This determines which type of scheduling strategy to use. Right + // now users have two options such as ON_DEMAND which will use regular on + // demand resources to schedule the job, the other is LOW_COST which would + // leverage spot resources alongwith regular resources to schedule + // the job. + enum Strategy { + // Strategy will default to ON_DEMAND. + STRATEGY_UNSPECIFIED = 0; + + // Regular on-demand provisioning strategy. + ON_DEMAND = 1; + + // Low cost by making potential use of spot resources. + LOW_COST = 2; + } + // The maximum job running time. The default is 7 days. google.protobuf.Duration timeout = 1; @@ -359,6 +375,9 @@ message Scheduling { // resilient to workers leaving and joining a job. bool restart_job_on_worker_restart = 3; + // Optional. This determines which type of scheduling strategy to use. + Strategy strategy = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Indicates if the job should retry for internal errors after the // job starts running. If true, overrides // `Scheduling.restart_job_on_worker_restart` to false. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto index 66b4e3efae34..1e9f3b966155 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto @@ -39,8 +39,11 @@ message Dataset { pattern: "projects/{project}/locations/{location}/datasets/{dataset}" }; - // Output only. The resource name of the Dataset. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Identifier. The resource name of the Dataset. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; // Required. The user-defined name of the Dataset. // The name can be up to 128 characters long and can consist of any UTF-8 diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto index 9ecf3a27468a..3880ad5433df 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto @@ -36,8 +36,11 @@ message DatasetVersion { pattern: "projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}" }; - // Output only. The resource name of the DatasetVersion. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Identifier. The resource name of the DatasetVersion. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; // Output only. Timestamp when this DatasetVersion was created. google.protobuf.Timestamp create_time = 2 diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto index 5c8292eb7226..30c74dfb21e1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto @@ -150,6 +150,28 @@ message Endpoint { // Configures the request-response logging for online prediction. PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + + // If true, the endpoint will be exposed through a dedicated + // DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS + // will be isolated from other users' traffic and will have better performance + // and reliability. + // Note: Once you enabled dedicated endpoint, you won't be able to send + // request to the shared DNS {region}-aiplatform.googleapis.com. The + // limitation will be removed soon. + bool dedicated_endpoint_enabled = 24; + + // Output only. DNS of the dedicated endpoint. Will only be populated if + // dedicated_endpoint_enabled is true. + // Format: + // `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`. + string dedicated_endpoint_dns = 25 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A deployment of a Model. Endpoints contain one or more DeployedModels. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto index 9e762747b1c0..4a738ee59945 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto @@ -318,10 +318,11 @@ message UpdateFeatureOnlineStoreRequest { // // Updatable fields: // - // * `big_query_source` - // * `bigtable` // * `labels` - // * `sync_config` + // * `description` + // * `bigtable` + // * `bigtable.auto_scaling` + // * `bigtable.enable_multi_region_replica` google.protobuf.FieldMask update_mask = 2; } @@ -481,7 +482,14 @@ message UpdateFeatureViewRequest { // Updatable fields: // // * `labels` - // * `serviceAgentType` + // * `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` google.protobuf.FieldMask update_mask = 2; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_service.proto index 2e3e82ce3682..64a4de7a1030 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_service.proto @@ -175,6 +175,61 @@ message NearestNeighborQuery { repeated string deny_tokens = 3 [(google.api.field_behavior) = OPTIONAL]; } + // Numeric filter is used to search a subset of the entities by using boolean + // rules on numeric columns. + // For example: + // Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0} + // Database Point 1: {name: “a” value_int: 10} {name: “b” value_float: 2.0} + // Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0} + // Query: {name: “a” value_int: 12 operator: LESS} // Matches Point 1, 2 + // {name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1 + message NumericFilter { + // Datapoints for which Operator is true relative to the query’s Value + // field will be allowlisted. + enum Operator { + // Unspecified operator. + OPERATOR_UNSPECIFIED = 0; + + // Entities are eligible if their value is < the query's. + LESS = 1; + + // Entities are eligible if their value is <= the query's. + LESS_EQUAL = 2; + + // Entities are eligible if their value is == the query's. + EQUAL = 3; + + // Entities are eligible if their value is >= the query's. + GREATER_EQUAL = 4; + + // Entities are eligible if their value is > the query's. + GREATER = 5; + + // Entities are eligible if their value is != the query's. + NOT_EQUAL = 6; + } + + // The type of Value must be consistent for all datapoints with a given + // name. This is verified at runtime. + oneof Value { + // int value type. + int64 value_int = 2; + + // float value type. + float value_float = 3; + + // double value type. + double value_double = 4; + } + + // Required. Column name in BigQuery that used as filters. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. This MUST be specified for queries and must NOT be specified + // for database points. + optional Operator op = 5 [(google.api.field_behavior) = OPTIONAL]; + } + // Parameters that can be overrided in each query to tune query latency and // recall. message Parameters { @@ -210,6 +265,10 @@ message NearestNeighborQuery { repeated StringFilter string_filters = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The list of numeric filters. + repeated NumericFilter numeric_filters = 8 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Crowding is a constraint on a neighbor list produced by nearest // neighbor search requiring that no more than // sper_crowding_attribute_neighbor_count of the k neighbors returned have the diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_registry_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_registry_service.proto index 951ab8d45e84..a113cac5b559 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_registry_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_registry_service.proto @@ -286,6 +286,9 @@ message UpdateFeatureGroupRequest { // Updatable fields: // // * `labels` + // * `description` + // * `big_query` + // * `big_query.entity_id_columns` google.protobuf.FieldMask update_mask = 2; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_service.proto index d7d5758a255d..ac8be931c515 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_service.proto @@ -1257,7 +1257,8 @@ message UpdateFeatureRequest { // // * `description` // * `labels` - // * `disable_monitoring` (Not supported for FeatureRegistry Feature) + // * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + // * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) google.protobuf.FieldMask update_mask = 2; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_garden_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_garden_service.proto index 06959c2c273d..d45fede2f8db 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_garden_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_garden_service.proto @@ -75,9 +75,13 @@ message GetPublisherModelRequest { ]; // Optional. The IETF BCP-47 language code representing the language in which - // the publisher model's text information should be written in (see go/bcp47). + // the publisher model's text information should be written in. string language_code = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. PublisherModel view specifying which fields to read. PublisherModelView view = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Boolean indicates whether the requested model is a Hugging Face + // model. + bool is_hugging_face_model = 5 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto new file mode 100644 index 000000000000..003bff43ad2c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto @@ -0,0 +1,158 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/job_state.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "NotebookExecutionJobProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// NotebookExecutionJob represents an instance of a notebook execution. +message NotebookExecutionJob { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/NotebookExecutionJob" + pattern: "projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}" + plural: "notebookExecutionJobs" + singular: "notebookExecutionJob" + }; + + // The Dataform Repository containing the input notebook. + message DataformRepositorySource { + // The resource name of the Dataform Repository. Format: + // `projects/{project_id}/locations/{location}/repositories/{repository_id}` + string dataform_repository_resource_name = 1; + + // The commit SHA to read repository with. If unset, the file will be read + // at HEAD. + string commit_sha = 2; + } + + // The Cloud Storage uri for the input notebook. + message GcsNotebookSource { + // The Cloud Storage uri pointing to the ipynb file. Format: + // `gs://bucket/notebook_file.ipynb` + string uri = 1; + + // The version of the Cloud Storage object to read. If unset, the current + // version of the object is read. See + // https://cloud.google.com/storage/docs/metadata#generation-number. + string generation = 2; + } + + // The content of the input notebook in ipynb format. + message DirectNotebookSource { + // The base64-encoded contents of the input notebook file. + bytes content = 1; + } + + // The input notebook. + oneof notebook_source { + // The Dataform Repository pointing to a single file notebook repository. + DataformRepositorySource dataform_repository_source = 3; + + // The Cloud Storage url pointing to the ipynb file. Format: + // `gs://bucket/notebook_file.ipynb` + GcsNotebookSource gcs_notebook_source = 4; + + // The contents of an input notebook file. + DirectNotebookSource direct_notebook_source = 17; + } + + // The compute config to use for an execution job. + oneof environment_spec { + // The NotebookRuntimeTemplate to source compute configuration from. + string notebook_runtime_template_resource_name = 14 + [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NotebookRuntimeTemplate" + }]; + } + + // The location to store the notebook execution result. + oneof execution_sink { + // The Cloud Storage location to upload the result to. Format: + // `gs://bucket-name` + string gcs_output_uri = 8; + } + + // The identity to run the execution as. + oneof execution_identity { + // The user email to run the execution as. Only supported by Colab runtimes. + string execution_user = 9; + + // The service account to run the execution as. + string service_account = 18; + } + + // Output only. The resource name of this NotebookExecutionJob. Format: + // `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The display name of the NotebookExecutionJob. The name can be up to 128 + // characters long and can consist of any UTF-8 characters. + string display_name = 2; + + // Max running time of the execution job in seconds (default 86400s / 24 hrs). + google.protobuf.Duration execution_timeout = 5; + + // Output only. The Schedule resource name if this job is triggered by one. + // Format: + // `projects/{project_id}/locations/{location}/schedules/{schedule_id}` + string schedule_resource_name = 6 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Schedule" + } + ]; + + // Output only. The state of the NotebookExecutionJob. + JobState job_state = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Populated when the NotebookExecutionJob is completed. When + // there is an error during notebook execution, the error details are + // populated. + google.rpc.Status status = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this NotebookExecutionJob was created. + google.protobuf.Timestamp create_time = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this NotebookExecutionJob was most recently + // updated. + google.protobuf.Timestamp update_time = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels with user-defined metadata to organize NotebookExecutionJobs. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + // System reserved label keys are prefixed with "aiplatform.googleapis.com/" + // and are immutable. + map labels = 19; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_service.proto index ae5ba9f491ad..e99b4199725d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_service.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/notebook_execution_job.proto"; import "google/cloud/aiplatform/v1/notebook_runtime.proto"; import "google/cloud/aiplatform/v1/operation.proto"; import "google/longrunning/operations.proto"; @@ -170,6 +171,64 @@ service NotebookService { metadata_type: "StartNotebookRuntimeOperationMetadata" }; } + + // Creates a NotebookExecutionJob. + rpc CreateNotebookExecutionJob(CreateNotebookExecutionJobRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/notebookExecutionJobs" + body: "notebook_execution_job" + }; + option (google.api.method_signature) = + "parent,notebook_execution_job,notebook_execution_job_id"; + option (google.longrunning.operation_info) = { + response_type: "NotebookExecutionJob" + metadata_type: "CreateNotebookExecutionJobOperationMetadata" + }; + } + + // Gets a NotebookExecutionJob. + rpc GetNotebookExecutionJob(GetNotebookExecutionJobRequest) + returns (NotebookExecutionJob) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists NotebookExecutionJobs in a Location. + rpc ListNotebookExecutionJobs(ListNotebookExecutionJobsRequest) + returns (ListNotebookExecutionJobsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/notebookExecutionJobs" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a NotebookExecutionJob. + rpc DeleteNotebookExecutionJob(DeleteNotebookExecutionJobRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } +} + +// Views for Get/List NotebookExecutionJob +enum NotebookExecutionJobView { + // When unspecified, the API defaults to the BASIC view. + NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED = 0; + + // Includes all fields except for direct notebook inputs. + NOTEBOOK_EXECUTION_JOB_VIEW_BASIC = 1; + + // Includes all fields. + NOTEBOOK_EXECUTION_JOB_VIEW_FULL = 2; } // Request message for @@ -538,3 +597,119 @@ message StartNotebookRuntimeOperationMetadata { // Response message for // [NotebookService.StartNotebookRuntime][google.cloud.aiplatform.v1.NotebookService.StartNotebookRuntime]. message StartNotebookRuntimeResponse {} + +// Request message for [NotebookService.CreateNotebookExecutionJob] +message CreateNotebookExecutionJobRequest { + // Required. The resource name of the Location to create the + // NotebookExecutionJob. Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The NotebookExecutionJob to create. + NotebookExecutionJob notebook_execution_job = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. User specified ID for the NotebookExecutionJob. + string notebook_execution_job_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Metadata information for +// [NotebookService.CreateNotebookExecutionJob][google.cloud.aiplatform.v1.NotebookService.CreateNotebookExecutionJob]. +message CreateNotebookExecutionJobOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; + + // A human-readable message that shows the intermediate progress details of + // NotebookRuntime. + string progress_message = 2; +} + +// Request message for [NotebookService.GetNotebookExecutionJob] +message GetNotebookExecutionJobRequest { + // Required. The name of the NotebookExecutionJob resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NotebookExecutionJob" + } + ]; + + // Optional. The NotebookExecutionJob view. Defaults to BASIC. + NotebookExecutionJobView view = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [NotebookService.ListNotebookExecutionJobs] +message ListNotebookExecutionJobsRequest { + // Required. The resource name of the Location from which to list the + // NotebookExecutionJobs. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. An expression for filtering the results of the request. For field + // names both snake_case and camelCase are supported. + // + // * `notebookExecutionJob` supports = and !=. `notebookExecutionJob` + // represents the NotebookExecutionJob ID. + // * `displayName` supports = and != and regex. + // * `schedule` supports = and != and regex. + // + // Some examples: + // * `notebookExecutionJob="123"` + // * `notebookExecutionJob="my-execution-job"` + // * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"` + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page size. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page token. + // Typically obtained via + // [ListNotebookExecutionJobs.next_page_token][] of the previous + // [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs] + // call. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A comma-separated list of fields to order by, sorted in ascending + // order. Use "desc" after a field name for descending. Supported fields: + // + // * `display_name` + // * `create_time` + // * `update_time` + // + // Example: `display_name, create_time desc`. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The NotebookExecutionJob view. Defaults to BASIC. + NotebookExecutionJobView view = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [NotebookService.CreateNotebookExecutionJob] +message ListNotebookExecutionJobsResponse { + // List of NotebookExecutionJobs in the requested page. + repeated NotebookExecutionJob notebook_execution_jobs = 1; + + // A token to retrieve next page of results. + // Pass to [ListNotebookExecutionJobs.page_token][] to obtain that + // page. + string next_page_token = 2; +} + +// Request message for [NotebookService.DeleteNotebookExecutionJob] +message DeleteNotebookExecutionJobRequest { + // Required. The name of the NotebookExecutionJob resource to be deleted. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NotebookExecutionJob" + } + ]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/persistent_resource.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/persistent_resource.proto index 83707aa22408..2519920cf968 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/persistent_resource.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/persistent_resource.proto @@ -253,6 +253,9 @@ message RaySpec { // Optional. Ray metrics configurations. RayMetricSpec ray_metric_spec = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. OSS Ray logging configurations. + RayLogsSpec ray_logs_spec = 10 [(google.api.field_behavior) = OPTIONAL]; } // Persistent Cluster runtime information as output @@ -295,3 +298,9 @@ message RayMetricSpec { // Optional. Flag to disable the Ray metrics collection. bool disabled = 1 [(google.api.field_behavior) = OPTIONAL]; } + +// Configuration for the Ray OSS Logs. +message RayLogsSpec { + // Optional. Flag to disable the export of Ray OSS logs to Cloud Logging. + bool disabled = 1 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto index 9e609e918a41..bc603c070533 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto @@ -611,18 +611,32 @@ message CountTokensRequest { } ]; - // 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]; - // 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]; + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input content. + repeated Content contents = 4 [(google.api.field_behavior) = OPTIONAL]; + + // 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 Content system_instruction = 5 + [(google.api.field_behavior) = OPTIONAL]; - // Required. Input content. - repeated Content contents = 4 [(google.api.field_behavior) = REQUIRED]; + // 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 Tool tools = 6 [(google.api.field_behavior) = OPTIONAL]; } // Response message for [PredictionService.CountTokens][]. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto index 231587ddb34c..db508c35f346 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto @@ -196,7 +196,6 @@ message Trial { [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Next ID: 3 message TrialContext { // A human-readable field which can store a description of this context. // This will become part of the resulting Trial's description field. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto index 48c10074b03a..c610e0598005 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto @@ -127,10 +127,9 @@ message Retrieval { VertexAISearch vertex_ai_search = 2; } - // Optional. Disable using the result from this tool in detecting grounding - // attribution. This does not affect how the result is given to the model for - // generation. - bool disable_attribution = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Deprecated. This option is no longer supported. + bool disable_attribution = 3 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } // Retrieve from Vertex AI Search datastore for grounding. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto index 803df1820765..cf3aa3f756f1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto @@ -173,6 +173,9 @@ message SupervisedTuningDatasetDistribution { // Output only. Sum of a given population of values. int64 sum = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Sum of a given population of values that are billable. + int64 billable_sum = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The minimum of the population values. double min = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -208,6 +211,10 @@ message SupervisedTuningDataStats { // Output only. Number of billable characters in the tuning dataset. int64 total_billable_character_count = 3 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of billable tokens in the tuning dataset. + int64 total_billable_token_count = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Number of tuning steps for this Tuning Job. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java index 1aabec35e8e7..95e8b259d9eb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java index 5d41ed1e3d1c..b0c3a5d2f1b6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java @@ -38,21 +38,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n6google/cloud/aiplatform/v1beta1/accele" + "rator_type.proto\022\037google.cloud.aiplatfor" - + "m.v1beta1*\257\002\n\017AcceleratorType\022 \n\034ACCELER" - + "ATOR_TYPE_UNSPECIFIED\020\000\022\024\n\020NVIDIA_TESLA_" - + "K80\020\001\022\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_T" - + "ESLA_V100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVID" - + "IA_TESLA_T4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010\022\024\n\020" - + "NVIDIA_A100_80GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n\020NVI" - + "DIA_H100_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\353\001\n#" - + "com.google.cloud.aiplatform.v1beta1B\024Acc" - + "eleratorTypeProtoP\001ZCcloud.google.com/go" - + "/aiplatform/apiv1beta1/aiplatformpb;aipl" - + "atformpb\252\002\037Google.Cloud.AIPlatform.V1Bet" - + "a1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"G" - + "oogle::Cloud::AIPlatform::V1beta1b\006proto" - + "3" + + "m.v1beta1*\263\002\n\017AcceleratorType\022 \n\034ACCELER" + + "ATOR_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\021NVID" + + "IA_TESLA_V100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017" + + "NVIDIA_TESLA_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_H100_80GB\020\r\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V" + + "3\020\007\022\016\n\nTPU_V4_POD\020\n\022\022\n\016TPU_V5_LITEPOD\020\014B" + + "\353\001\n#com.google.cloud.aiplatform.v1beta1B" + + "\024AcceleratorTypeProtoP\001ZCcloud.google.co" + + "m/go/aiplatform/apiv1beta1/aiplatformpb;" + + "aiplatformpb\252\002\037Google.Cloud.AIPlatform.V" + + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" + + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ApiAuth.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ApiAuth.java new file mode 100644 index 000000000000..5117acdd8243 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ApiAuth.java @@ -0,0 +1,1100 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/api_auth.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The generic reusable api auth config.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ApiAuth} + */ +public final class ApiAuth extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ApiAuth) + ApiAuthOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApiAuth.newBuilder() to construct. + private ApiAuth(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApiAuth() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApiAuth(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ApiAuth.class, + com.google.cloud.aiplatform.v1beta1.ApiAuth.Builder.class); + } + + public interface ApiKeyConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The SecretManager secret version resource name storing API key.
+     * e.g. projects/{project}/secrets/{secret}/versions/{version}
+     * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The apiKeySecretVersion. + */ + java.lang.String getApiKeySecretVersion(); + /** + * + * + *
+     * Required. The SecretManager secret version resource name storing API key.
+     * e.g. projects/{project}/secrets/{secret}/versions/{version}
+     * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for apiKeySecretVersion. + */ + com.google.protobuf.ByteString getApiKeySecretVersionBytes(); + } + /** + * + * + *
+   * The API secret.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig} + */ + public static final class ApiKeyConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig) + ApiKeyConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApiKeyConfig.newBuilder() to construct. + private ApiKeyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApiKeyConfig() { + apiKeySecretVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApiKeyConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_ApiKeyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_ApiKeyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.class, + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.Builder.class); + } + + public static final int API_KEY_SECRET_VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiKeySecretVersion_ = ""; + /** + * + * + *
+     * Required. The SecretManager secret version resource name storing API key.
+     * e.g. projects/{project}/secrets/{secret}/versions/{version}
+     * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The apiKeySecretVersion. + */ + @java.lang.Override + public java.lang.String getApiKeySecretVersion() { + java.lang.Object ref = apiKeySecretVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiKeySecretVersion_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The SecretManager secret version resource name storing API key.
+     * e.g. projects/{project}/secrets/{secret}/versions/{version}
+     * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for apiKeySecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiKeySecretVersionBytes() { + java.lang.Object ref = apiKeySecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKeySecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKeySecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiKeySecretVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKeySecretVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiKeySecretVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig other = + (com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig) obj; + + if (!getApiKeySecretVersion().equals(other.getApiKeySecretVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + API_KEY_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiKeySecretVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The API secret.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig) + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_ApiKeyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_ApiKeyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.class, + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apiKeySecretVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_ApiKeyConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig build() { + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig result = + new com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apiKeySecretVersion_ = apiKeySecretVersion_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.getDefaultInstance()) + return this; + if (!other.getApiKeySecretVersion().isEmpty()) { + apiKeySecretVersion_ = other.apiKeySecretVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + apiKeySecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object apiKeySecretVersion_ = ""; + /** + * + * + *
+       * Required. The SecretManager secret version resource name storing API key.
+       * e.g. projects/{project}/secrets/{secret}/versions/{version}
+       * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The apiKeySecretVersion. + */ + public java.lang.String getApiKeySecretVersion() { + java.lang.Object ref = apiKeySecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiKeySecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name storing API key.
+       * e.g. projects/{project}/secrets/{secret}/versions/{version}
+       * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for apiKeySecretVersion. + */ + public com.google.protobuf.ByteString getApiKeySecretVersionBytes() { + java.lang.Object ref = apiKeySecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKeySecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name storing API key.
+       * e.g. projects/{project}/secrets/{secret}/versions/{version}
+       * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The apiKeySecretVersion to set. + * @return This builder for chaining. + */ + public Builder setApiKeySecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiKeySecretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name storing API key.
+       * e.g. projects/{project}/secrets/{secret}/versions/{version}
+       * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearApiKeySecretVersion() { + apiKeySecretVersion_ = getDefaultInstance().getApiKeySecretVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name storing API key.
+       * e.g. projects/{project}/secrets/{secret}/versions/{version}
+       * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for apiKeySecretVersion to set. + * @return This builder for chaining. + */ + public Builder setApiKeySecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiKeySecretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig) + private static final com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiKeyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ApiAuth)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ApiAuth other = + (com.google.cloud.aiplatform.v1beta1.ApiAuth) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.ApiAuth prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The generic reusable api auth config.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ApiAuth} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ApiAuth) + com.google.cloud.aiplatform.v1beta1.ApiAuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ApiAuth.class, + com.google.cloud.aiplatform.v1beta1.ApiAuth.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ApiAuth.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ApiAuth getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ApiAuth.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ApiAuth build() { + com.google.cloud.aiplatform.v1beta1.ApiAuth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ApiAuth buildPartial() { + com.google.cloud.aiplatform.v1beta1.ApiAuth result = + new com.google.cloud.aiplatform.v1beta1.ApiAuth(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ApiAuth) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ApiAuth) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ApiAuth other) { + if (other == com.google.cloud.aiplatform.v1beta1.ApiAuth.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ApiAuth) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ApiAuth) + private static final com.google.cloud.aiplatform.v1beta1.ApiAuth DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ApiAuth(); + } + + public static com.google.cloud.aiplatform.v1beta1.ApiAuth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiAuth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ApiAuth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ApiAuthOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ApiAuthOrBuilder.java new file mode 100644 index 000000000000..2ece9d033057 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ApiAuthOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/api_auth.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface ApiAuthOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ApiAuth) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ApiAuthProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ApiAuthProto.java new file mode 100644 index 000000000000..82172cf555d4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ApiAuthProto.java @@ -0,0 +1,94 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/api_auth.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public final class ApiAuthProto { + private ApiAuthProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_ApiKeyConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_ApiKeyConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/aiplatform/v1beta1/api_au" + + "th.proto\022\037google.cloud.aiplatform.v1beta" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\"m\n\007ApiAuth\032b\n\014ApiK" + + "eyConfig\022R\n\026api_key_secret_version\030\001 \001(\t" + + "B2\340A\002\372A,\n*secretmanager.googleapis.com/S" + + "ecretVersionB\343\001\n#com.google.cloud.aiplat" + + "form.v1beta1B\014ApiAuthProtoP\001ZCcloud.goog" + + "le.com/go/aiplatform/apiv1beta1/aiplatfo" + + "rmpb;aiplatformpb\252\002\037Google.Cloud.AIPlatf" + + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" + + "beta1\352\002\"Google::Cloud::AIPlatform::V1bet" + + "a1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_ApiKeyConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_ApiKeyConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ApiAuth_ApiKeyConfig_descriptor, + new java.lang.String[] { + "ApiKeySecretVersion", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java index b320c7e6264b..e21c6d649df3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java @@ -9305,6 +9305,42 @@ public boolean getDisableContainerLogging() { return disableContainerLogging_; } + public static final int SATISFIES_PZS_FIELD_NUMBER = 36; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 37; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -9408,6 +9444,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disableContainerLogging_ != false) { output.writeBool(34, disableContainerLogging_); } + if (satisfiesPzs_ != false) { + output.writeBool(36, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + output.writeBool(37, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -9522,6 +9564,12 @@ public int getSerializedSize() { if (disableContainerLogging_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(34, disableContainerLogging_); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(36, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(37, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -9627,6 +9675,8 @@ public boolean equals(final java.lang.Object obj) { if (!getModelMonitoringStatus().equals(other.getModelMonitoringStatus())) return false; } if (getDisableContainerLogging() != other.getDisableContainerLogging()) return false; + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9742,6 +9792,10 @@ public int hashCode() { } hash = (37 * hash) + DISABLE_CONTAINER_LOGGING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableContainerLogging()); + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -10056,6 +10110,8 @@ public Builder clear() { modelMonitoringStatusBuilder_ = null; } disableContainerLogging_ = false; + satisfiesPzs_ = false; + satisfiesPzi_ = false; return this; } @@ -10246,6 +10302,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.BatchPredictionJo if (((from_bitField0_ & 0x20000000) != 0)) { result.disableContainerLogging_ = disableContainerLogging_; } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } result.bitField0_ |= to_bitField0_; } @@ -10443,6 +10505,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchPredictionJob if (other.getDisableContainerLogging() != false) { setDisableContainerLogging(other.getDisableContainerLogging()); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -10675,6 +10743,18 @@ public Builder mergeFrom( bitField0_ |= 0x20000000; break; } // case 272 + case 288: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x40000000; + break; + } // case 288 + case 296: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x80000000; + break; + } // case 296 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -16954,6 +17034,112 @@ public Builder clearDisableContainerLogging() { return this; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x40000000); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x80000000); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java index 5b92b8472b6d..f3f225532249 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java @@ -1394,4 +1394,30 @@ java.lang.String getLabelsOrDefault( * @return The disableContainerLogging. */ boolean getDisableContainerLogging(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java index a64ff09f04f9..af701c2fc31a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java @@ -81,7 +81,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tform/v1beta1/unmanaged_container_model." + "proto\032\034google/protobuf/struct.proto\032\037goo" + "gle/protobuf/timestamp.proto\032\027google/rpc" - + "/status.proto\"\215\026\n\022BatchPredictionJob\022\021\n\004" + + "/status.proto\"\305\026\n\022BatchPredictionJob\022\021\n\004" + "name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340" + "A\002\0223\n\005model\030\003 \001(\tB$\372A!\n\037aiplatform.googl" + "eapis.com/Model\022\035\n\020model_version_id\030\036 \001(" @@ -130,35 +130,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "latform.v1beta1.ModelMonitoringStatsAnom" + "alies\0228\n\027model_monitoring_status\030 \001(\0132\022" + ".google.rpc.StatusB\003\340A\003\022!\n\031disable_conta" - + "iner_logging\030\" \001(\010\032\304\001\n\013InputConfig\022@\n\ngc" - + "s_source\030\002 \001(\0132*.google.cloud.aiplatform" - + ".v1beta1.GcsSourceH\000\022J\n\017bigquery_source\030" - + "\003 \001(\0132/.google.cloud.aiplatform.v1beta1." - + "BigQuerySourceH\000\022\035\n\020instances_format\030\001 \001" - + "(\tB\003\340A\002B\010\n\006source\032l\n\016InstanceConfig\022\025\n\ri" - + "nstance_type\030\001 \001(\t\022\021\n\tkey_field\030\002 \001(\t\022\027\n" - + "\017included_fields\030\003 \003(\t\022\027\n\017excluded_field" - + "s\030\004 \003(\t\032\340\001\n\014OutputConfig\022J\n\017gcs_destinat" - + "ion\030\002 \001(\0132/.google.cloud.aiplatform.v1be" - + "ta1.GcsDestinationH\000\022T\n\024bigquery_destina" - + "tion\030\003 \001(\01324.google.cloud.aiplatform.v1b" - + "eta1.BigQueryDestinationH\000\022\037\n\022prediction" - + "s_format\030\001 \001(\tB\003\340A\002B\r\n\013destination\032\220\001\n\nO" - + "utputInfo\022#\n\024gcs_output_directory\030\001 \001(\tB" - + "\003\340A\003H\000\022&\n\027bigquery_output_dataset\030\002 \001(\tB" - + "\003\340A\003H\000\022\"\n\025bigquery_output_table\030\004 \001(\tB\003\340" - + "A\003B\021\n\017output_location\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\206\001\352A\202\001\n,aip" - + "latform.googleapis.com/BatchPredictionJo" - + "b\022Rprojects/{project}/locations/{locatio" - + "n}/batchPredictionJobs/{batch_prediction" - + "_job}B\356\001\n#com.google.cloud.aiplatform.v1" - + "beta1B\027BatchPredictionJobProtoP\001ZCcloud." - + "google.com/go/aiplatform/apiv1beta1/aipl" - + "atformpb;aiplatformpb\252\002\037Google.Cloud.AIP" - + "latform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfor" - + "m\\V1beta1\352\002\"Google::Cloud::AIPlatform::V" - + "1beta1b\006proto3" + + "iner_logging\030\" \001(\010\022\032\n\rsatisfies_pzs\030$ \001(" + + "\010B\003\340A\003\022\032\n\rsatisfies_pzi\030% \001(\010B\003\340A\003\032\304\001\n\013I" + + "nputConfig\022@\n\ngcs_source\030\002 \001(\0132*.google." + + "cloud.aiplatform.v1beta1.GcsSourceH\000\022J\n\017" + + "bigquery_source\030\003 \001(\0132/.google.cloud.aip" + + "latform.v1beta1.BigQuerySourceH\000\022\035\n\020inst" + + "ances_format\030\001 \001(\tB\003\340A\002B\010\n\006source\032l\n\016Ins" + + "tanceConfig\022\025\n\rinstance_type\030\001 \001(\t\022\021\n\tke" + + "y_field\030\002 \001(\t\022\027\n\017included_fields\030\003 \003(\t\022\027" + + "\n\017excluded_fields\030\004 \003(\t\032\340\001\n\014OutputConfig" + + "\022J\n\017gcs_destination\030\002 \001(\0132/.google.cloud" + + ".aiplatform.v1beta1.GcsDestinationH\000\022T\n\024" + + "bigquery_destination\030\003 \001(\01324.google.clou" + + "d.aiplatform.v1beta1.BigQueryDestination" + + "H\000\022\037\n\022predictions_format\030\001 \001(\tB\003\340A\002B\r\n\013d" + + "estination\032\220\001\n\nOutputInfo\022#\n\024gcs_output_" + + "directory\030\001 \001(\tB\003\340A\003H\000\022&\n\027bigquery_outpu" + + "t_dataset\030\002 \001(\tB\003\340A\003H\000\022\"\n\025bigquery_outpu" + + "t_table\030\004 \001(\tB\003\340A\003B\021\n\017output_location\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001:\206\001\352A\202\001\n,aiplatform.googleapis.com/B" + + "atchPredictionJob\022Rprojects/{project}/lo" + + "cations/{location}/batchPredictionJobs/{" + + "batch_prediction_job}B\356\001\n#com.google.clo" + + "ud.aiplatform.v1beta1B\027BatchPredictionJo" + + "bProtoP\001ZCcloud.google.com/go/aiplatform" + + "/apiv1beta1/aiplatformpb;aiplatformpb\252\002\037" + + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google" + + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clou" + + "d::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -216,6 +217,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ModelMonitoringStatsAnomalies", "ModelMonitoringStatus", "DisableContainerLogging", + "SatisfiesPzs", + "SatisfiesPzi", }); internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_InputConfig_descriptor = internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContent.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContent.java index 05364bc996c9..f692b0365c5d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContent.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContent.java @@ -41,6 +41,7 @@ private CachedContent(com.google.protobuf.GeneratedMessageV3.Builder builder) private CachedContent() { name_ = ""; + displayName_ = ""; model_ = ""; contents_ = java.util.Collections.emptyList(); tools_ = java.util.Collections.emptyList(); @@ -287,6 +288,63 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int DISPLAY_NAME_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Optional. Immutable. The user-generated meaningful display name of the
+   * cached content.
+   * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Immutable. The user-generated meaningful display name of the
+   * cached content.
+   * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int MODEL_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -769,6 +827,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (expirationCase_ == 10) { output.writeMessage(10, (com.google.protobuf.Duration) expiration_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, displayName_); + } getUnknownFields().writeTo(output); } @@ -812,6 +873,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, (com.google.protobuf.Duration) expiration_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, displayName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -829,6 +893,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.CachedContent) obj; if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getModel().equals(other.getModel())) return false; if (hasSystemInstruction() != other.hasSystemInstruction()) return false; if (hasSystemInstruction()) { @@ -872,6 +937,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); if (hasSystemInstruction()) { @@ -1071,6 +1138,7 @@ public Builder clear() { ttlBuilder_.clear(); } name_ = ""; + displayName_ = ""; model_ = ""; systemInstruction_ = null; if (systemInstructionBuilder_ != null) { @@ -1083,14 +1151,14 @@ public Builder clear() { contents_ = null; contentsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); if (toolsBuilder_ == null) { tools_ = java.util.Collections.emptyList(); } else { tools_ = null; toolsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); toolConfig_ = null; if (toolConfigBuilder_ != null) { toolConfigBuilder_.dispose(); @@ -1147,18 +1215,18 @@ public com.google.cloud.aiplatform.v1beta1.CachedContent buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.aiplatform.v1beta1.CachedContent result) { if (contentsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { contents_ = java.util.Collections.unmodifiableList(contents_); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); } result.contents_ = contents_; } else { result.contents_ = contentsBuilder_.build(); } if (toolsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { tools_ = java.util.Collections.unmodifiableList(tools_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); } result.tools_ = tools_; } else { @@ -1172,25 +1240,28 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CachedContent res result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.model_ = model_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.systemInstruction_ = systemInstructionBuilder_ == null ? systemInstruction_ : systemInstructionBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.toolConfig_ = toolConfigBuilder_ == null ? toolConfig_ : toolConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } @@ -1259,9 +1330,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CachedContent other bitField0_ |= 0x00000004; onChanged(); } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } if (!other.getModel().isEmpty()) { model_ = other.model_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasSystemInstruction()) { @@ -1271,7 +1347,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CachedContent other if (!other.contents_.isEmpty()) { if (contents_.isEmpty()) { contents_ = other.contents_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureContentsIsMutable(); contents_.addAll(other.contents_); @@ -1284,7 +1360,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CachedContent other contentsBuilder_.dispose(); contentsBuilder_ = null; contents_ = other.contents_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); contentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getContentsFieldBuilder() @@ -1298,7 +1374,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CachedContent other if (!other.tools_.isEmpty()) { if (tools_.isEmpty()) { tools_ = other.tools_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureToolsIsMutable(); tools_.addAll(other.tools_); @@ -1311,7 +1387,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CachedContent other toolsBuilder_.dispose(); toolsBuilder_ = null; tools_ = other.tools_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); toolsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getToolsFieldBuilder() @@ -1381,14 +1457,14 @@ public Builder mergeFrom( case 18: { model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 18 case 26: { input.readMessage( getSystemInstructionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: @@ -1420,19 +1496,19 @@ public Builder mergeFrom( case 50: { input.readMessage(getToolConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 50 case 58: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 58 case 66: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 66 case 74: @@ -1447,6 +1523,12 @@ public Builder mergeFrom( expirationCase_ = 10; break; } // case 82 + case 90: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2043,6 +2125,127 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional. Immutable. The user-generated meaningful display name of the
+     * cached content.
+     * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Immutable. The user-generated meaningful display name of the
+     * cached content.
+     * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Immutable. The user-generated meaningful display name of the
+     * cached content.
+     * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Immutable. The user-generated meaningful display name of the
+     * cached content.
+     * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Immutable. The user-generated meaningful display name of the
+     * cached content.
+     * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + private java.lang.Object model_ = ""; /** * @@ -2111,7 +2314,7 @@ public Builder setModel(java.lang.String value) { throw new NullPointerException(); } model_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2130,7 +2333,7 @@ public Builder setModel(java.lang.String value) { */ public Builder clearModel() { model_ = getDefaultInstance().getModel(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2154,7 +2357,7 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); model_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2180,7 +2383,7 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * @return Whether the systemInstruction field is set. */ public boolean hasSystemInstruction() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2226,7 +2429,7 @@ public Builder setSystemInstruction(com.google.cloud.aiplatform.v1beta1.Content } else { systemInstructionBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2249,7 +2452,7 @@ public Builder setSystemInstruction( } else { systemInstructionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2267,7 +2470,7 @@ public Builder setSystemInstruction( */ public Builder mergeSystemInstruction(com.google.cloud.aiplatform.v1beta1.Content value) { if (systemInstructionBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && systemInstruction_ != null && systemInstruction_ != com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()) { @@ -2279,7 +2482,7 @@ public Builder mergeSystemInstruction(com.google.cloud.aiplatform.v1beta1.Conten systemInstructionBuilder_.mergeFrom(value); } if (systemInstruction_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -2297,7 +2500,7 @@ public Builder mergeSystemInstruction(com.google.cloud.aiplatform.v1beta1.Conten *
*/ public Builder clearSystemInstruction() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); systemInstruction_ = null; if (systemInstructionBuilder_ != null) { systemInstructionBuilder_.dispose(); @@ -2319,7 +2522,7 @@ public Builder clearSystemInstruction() { * */ public com.google.cloud.aiplatform.v1beta1.Content.Builder getSystemInstructionBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getSystemInstructionFieldBuilder().getBuilder(); } @@ -2377,9 +2580,9 @@ public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getSystemInstruction java.util.Collections.emptyList(); private void ensureContentsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { contents_ = new java.util.ArrayList(contents_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } } @@ -2617,7 +2820,7 @@ public Builder addAllContents( public Builder clearContents() { if (contentsBuilder_ == null) { contents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { contentsBuilder_.clear(); @@ -2753,7 +2956,7 @@ public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder(in com.google.cloud.aiplatform.v1beta1.Content, com.google.cloud.aiplatform.v1beta1.Content.Builder, com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( - contents_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + contents_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); contents_ = null; } return contentsBuilder_; @@ -2763,9 +2966,9 @@ public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder(in java.util.Collections.emptyList(); private void ensureToolsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { tools_ = new java.util.ArrayList(tools_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } } @@ -3013,7 +3216,7 @@ public Builder addAllTools( public Builder clearTools() { if (toolsBuilder_ == null) { tools_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { toolsBuilder_.clear(); @@ -3155,7 +3358,7 @@ public java.util.List getTools com.google.cloud.aiplatform.v1beta1.Tool, com.google.cloud.aiplatform.v1beta1.Tool.Builder, com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>( - tools_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + tools_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); tools_ = null; } return toolsBuilder_; @@ -3182,7 +3385,7 @@ public java.util.List getTools * @return Whether the toolConfig field is set. */ public boolean hasToolConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -3228,7 +3431,7 @@ public Builder setToolConfig(com.google.cloud.aiplatform.v1beta1.ToolConfig valu } else { toolConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3251,7 +3454,7 @@ public Builder setToolConfig( } else { toolConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3269,7 +3472,7 @@ public Builder setToolConfig( */ public Builder mergeToolConfig(com.google.cloud.aiplatform.v1beta1.ToolConfig value) { if (toolConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && toolConfig_ != null && toolConfig_ != com.google.cloud.aiplatform.v1beta1.ToolConfig.getDefaultInstance()) { getToolConfigBuilder().mergeFrom(value); @@ -3280,7 +3483,7 @@ public Builder mergeToolConfig(com.google.cloud.aiplatform.v1beta1.ToolConfig va toolConfigBuilder_.mergeFrom(value); } if (toolConfig_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -3298,7 +3501,7 @@ public Builder mergeToolConfig(com.google.cloud.aiplatform.v1beta1.ToolConfig va * */ public Builder clearToolConfig() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); toolConfig_ = null; if (toolConfigBuilder_ != null) { toolConfigBuilder_.dispose(); @@ -3320,7 +3523,7 @@ public Builder clearToolConfig() { * */ public com.google.cloud.aiplatform.v1beta1.ToolConfig.Builder getToolConfigBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getToolConfigFieldBuilder().getBuilder(); } @@ -3394,7 +3597,7 @@ public com.google.cloud.aiplatform.v1beta1.ToolConfigOrBuilder getToolConfigOrBu * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3438,7 +3641,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3459,7 +3662,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3476,7 +3679,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -3487,7 +3690,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -3504,7 +3707,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -3525,7 +3728,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3597,7 +3800,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3641,7 +3844,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3662,7 +3865,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3679,7 +3882,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -3690,7 +3893,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -3707,7 +3910,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -3728,7 +3931,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentOrBuilder.java index d0ceba2509f7..677c415aeae5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentOrBuilder.java @@ -136,6 +136,37 @@ public interface CachedContentOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
+   * Optional. Immutable. The user-generated meaningful display name of the
+   * cached content.
+   * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional. Immutable. The user-generated meaningful display name of the
+   * cached content.
+   * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentProto.java index 0c3327c19449..f72f45052eb7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentProto.java @@ -48,31 +48,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "d/aiplatform/v1beta1/content.proto\032*goog" + "le/cloud/aiplatform/v1beta1/tool.proto\032\036" + "google/protobuf/duration.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\323\005\n\rCachedConten" + + "rotobuf/timestamp.proto\"\361\005\n\rCachedConten" + "t\0221\n\013expire_time\030\t \001(\0132\032.google.protobuf" + ".TimestampH\000\022-\n\003ttl\030\n \001(\0132\031.google.proto" + "buf.DurationB\003\340A\004H\000\022\024\n\004name\030\001 \001(\tB\006\340A\010\340A" - + "\005\022\022\n\005model\030\002 \001(\tB\003\340A\005\022O\n\022system_instruct" - + "ion\030\003 \001(\0132(.google.cloud.aiplatform.v1be" - + "ta1.ContentB\t\340A\001\340A\005\340A\004\022E\n\010contents\030\004 \003(\013" - + "2(.google.cloud.aiplatform.v1beta1.Conte" - + "ntB\t\340A\001\340A\005\340A\004\022?\n\005tools\030\005 \003(\0132%.google.cl" - + "oud.aiplatform.v1beta1.ToolB\t\340A\001\340A\005\340A\004\022K" - + "\n\013tool_config\030\006 \001(\0132+.google.cloud.aipla" - + "tform.v1beta1.ToolConfigB\t\340A\001\340A\005\340A\004\0224\n\013c" - + "reate_time\030\007 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003:\225\001\352A\221\001\n\'aiplatfo" - + "rm.googleapis.com/CachedContent\022Gproject" - + "s/{project}/locations/{location}/cachedC" - + "ontents/{cached_content}*\016cachedContents" - + "2\rcachedContentB\014\n\nexpirationB\351\001\n#com.go" - + "ogle.cloud.aiplatform.v1beta1B\022CachedCon" - + "tentProtoP\001ZCcloud.google.com/go/aiplatf" - + "orm/apiv1beta1/aiplatformpb;aiplatformpb" - + "\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goo" - + "gle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::C" - + "loud::AIPlatform::V1beta1b\006proto3" + + "\005\022\034\n\014display_name\030\013 \001(\tB\006\340A\001\340A\005\022\022\n\005model" + + "\030\002 \001(\tB\003\340A\005\022O\n\022system_instruction\030\003 \001(\0132" + + "(.google.cloud.aiplatform.v1beta1.Conten" + + "tB\t\340A\001\340A\005\340A\004\022E\n\010contents\030\004 \003(\0132(.google." + + "cloud.aiplatform.v1beta1.ContentB\t\340A\001\340A\005" + + "\340A\004\022?\n\005tools\030\005 \003(\0132%.google.cloud.aiplat" + + "form.v1beta1.ToolB\t\340A\001\340A\005\340A\004\022K\n\013tool_con" + + "fig\030\006 \001(\0132+.google.cloud.aiplatform.v1be" + + "ta1.ToolConfigB\t\340A\001\340A\005\340A\004\0224\n\013create_time" + + "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\010 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003:\225\001\352A\221\001\n\'aiplatform.googlea" + + "pis.com/CachedContent\022Gprojects/{project" + + "}/locations/{location}/cachedContents/{c" + + "ached_content}*\016cachedContents2\rcachedCo" + + "ntentB\014\n\nexpirationB\351\001\n#com.google.cloud" + + ".aiplatform.v1beta1B\022CachedContentProtoP" + + "\001ZCcloud.google.com/go/aiplatform/apiv1b" + + "eta1/aiplatformpb;aiplatformpb\252\002\037Google." + + "Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\" + + "AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPl" + + "atform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -94,6 +95,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExpireTime", "Ttl", "Name", + "DisplayName", "Model", "SystemInstruction", "Contents", diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensRequest.java index 0e553b08b3f8..79078a76f5c0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensRequest.java @@ -44,6 +44,7 @@ private CountTokensRequest() { model_ = ""; instances_ = java.util.Collections.emptyList(); contents_ = java.util.Collections.emptyList(); + tools_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.CountTokensRequest.Builder.class); } + private int bitField0_; public static final int ENDPOINT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -134,12 +136,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. */ @@ -159,12 +161,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. */ @@ -189,11 +191,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 @@ -204,11 +206,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 @@ -219,11 +221,11 @@ public java.util.List 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 @@ -234,11 +236,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 @@ -249,11 +251,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 @@ -269,11 +271,11 @@ public com.google.protobuf.ValueOrBuilder getInstancesOrBuilder(int index) { * * *
-   * Required. Input content.
+   * Optional. Input content.
    * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -284,11 +286,11 @@ public java.util.List getContentsLi * * *
-   * Required. Input content.
+   * Optional. Input content.
    * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -300,11 +302,11 @@ public java.util.List getContentsLi * * *
-   * Required. Input content.
+   * Optional. Input content.
    * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -315,11 +317,11 @@ public int getContentsCount() { * * *
-   * Required. Input content.
+   * Optional. Input content.
    * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -330,11 +332,11 @@ public com.google.cloud.aiplatform.v1beta1.Content getContents(int index) { * * *
-   * Required. Input content.
+   * Optional. Input content.
    * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -342,6 +344,174 @@ public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder return contents_.get(index); } + public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The systemInstruction. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getSystemInstruction() { + return systemInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getSystemInstructionOrBuilder() { + return systemInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + 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.v1beta1.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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index) { + return tools_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -368,6 +538,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); } @@ -389,6 +565,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; @@ -409,6 +591,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; } @@ -432,6 +619,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; @@ -563,10 +758,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.aiplatform.v1beta1.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 @@ -589,6 +796,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; } @@ -644,6 +863,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.v1beta1.CountTokensRequest result) { @@ -654,6 +882,15 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CountTokensReques 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 @@ -766,6 +1003,36 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CountTokensRequest } } } + 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; @@ -829,6 +1096,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.v1beta1.Tool m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Tool.parser(), extensionRegistry); + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(m); + } else { + toolsBuilder_.addMessage(m); + } + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -979,12 +1266,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. */ @@ -1003,12 +1290,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. */ @@ -1027,12 +1314,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. @@ -1050,12 +1337,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. */ @@ -1069,12 +1356,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. @@ -1110,12 +1397,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() { @@ -1129,12 +1416,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() { @@ -1148,12 +1435,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) { @@ -1167,12 +1454,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) { @@ -1192,12 +1479,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) { @@ -1214,12 +1501,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) { @@ -1239,12 +1526,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) { @@ -1264,12 +1551,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) { @@ -1286,12 +1573,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) { @@ -1308,12 +1595,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 values) { @@ -1330,12 +1617,12 @@ public Builder addAllInstances(java.lang.Iterable - * 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() { @@ -1352,12 +1639,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) { @@ -1374,12 +1661,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) { @@ -1389,12 +1676,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) { @@ -1408,12 +1695,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 @@ -1428,12 +1715,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() { @@ -1443,12 +1730,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) { @@ -1459,12 +1746,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() { @@ -1508,11 +1795,11 @@ private void ensureContentsIsMutable() { * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getContentsList() { @@ -1526,11 +1813,11 @@ public java.util.List getContentsLi * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getContentsCount() { @@ -1544,11 +1831,11 @@ public int getContentsCount() { * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.aiplatform.v1beta1.Content getContents(int index) { @@ -1562,11 +1849,11 @@ public com.google.cloud.aiplatform.v1beta1.Content getContents(int index) { * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setContents(int index, com.google.cloud.aiplatform.v1beta1.Content value) { @@ -1586,11 +1873,11 @@ public Builder setContents(int index, com.google.cloud.aiplatform.v1beta1.Conten * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setContents( @@ -1608,11 +1895,11 @@ public Builder setContents( * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addContents(com.google.cloud.aiplatform.v1beta1.Content value) { @@ -1632,11 +1919,11 @@ public Builder addContents(com.google.cloud.aiplatform.v1beta1.Content value) { * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addContents(int index, com.google.cloud.aiplatform.v1beta1.Content value) { @@ -1656,11 +1943,11 @@ public Builder addContents(int index, com.google.cloud.aiplatform.v1beta1.Conten * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addContents( @@ -1678,11 +1965,11 @@ public Builder addContents( * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addContents( @@ -1700,11 +1987,11 @@ public Builder addContents( * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllContents( @@ -1722,11 +2009,11 @@ public Builder addAllContents( * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearContents() { @@ -1743,11 +2030,11 @@ public Builder clearContents() { * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeContents(int index) { @@ -1764,11 +2051,11 @@ public Builder removeContents(int index) { * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.aiplatform.v1beta1.Content.Builder getContentsBuilder(int index) { @@ -1778,11 +2065,11 @@ public com.google.cloud.aiplatform.v1beta1.Content.Builder getContentsBuilder(in * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index) { @@ -1796,11 +2083,11 @@ public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List @@ -1815,11 +2102,11 @@ public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder() { @@ -1830,11 +2117,11 @@ public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder() * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder(int index) { @@ -1845,11 +2132,11 @@ public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder(in * * *
-     * Required. Input content.
+     * Optional. Input content.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List @@ -1874,6 +2161,703 @@ public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder(in return contentsBuilder_; } + private com.google.cloud.aiplatform.v1beta1.Content systemInstruction_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + systemInstructionBuilder_; + /** + * + * + *
+     * 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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the systemInstruction field is set. + */ + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000010) != 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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The systemInstruction. + */ + public com.google.cloud.aiplatform.v1beta1.Content getSystemInstruction() { + if (systemInstructionBuilder_ == null) { + return systemInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : systemInstruction_; + } else { + return systemInstructionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * 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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSystemInstruction(com.google.cloud.aiplatform.v1beta1.Content value) { + if (systemInstructionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + systemInstruction_ = value; + } else { + systemInstructionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * 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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSystemInstruction( + com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (systemInstructionBuilder_ == null) { + systemInstruction_ = builderForValue.build(); + } else { + systemInstructionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * 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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSystemInstruction(com.google.cloud.aiplatform.v1beta1.Content value) { + if (systemInstructionBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && systemInstruction_ != null + && systemInstruction_ + != com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()) { + getSystemInstructionBuilder().mergeFrom(value); + } else { + systemInstruction_ = value; + } + } else { + systemInstructionBuilder_.mergeFrom(value); + } + if (systemInstruction_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * 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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSystemInstruction() { + bitField0_ = (bitField0_ & ~0x00000010); + systemInstruction_ = null; + if (systemInstructionBuilder_ != null) { + systemInstructionBuilder_.dispose(); + systemInstructionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * 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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getSystemInstructionBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getSystemInstructionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * 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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getSystemInstructionOrBuilder() { + if (systemInstructionBuilder_ != null) { + return systemInstructionBuilder_.getMessageOrBuilder(); + } else { + return systemInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + getSystemInstructionFieldBuilder() { + if (systemInstructionBuilder_ == null) { + systemInstructionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + getSystemInstruction(), getParentForChildren(), isClean()); + systemInstruction_ = null; + } + return systemInstructionBuilder_; + } + + private java.util.List tools_ = + java.util.Collections.emptyList(); + + private void ensureToolsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + tools_ = new java.util.ArrayList(tools_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + toolsBuilder_; + + /** + * + * + *
+     * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsList() { + if (toolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tools_); + } else { + return toolsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolsCount() { + if (toolsBuilder_ == null) { + return tools_.size(); + } else { + return toolsBuilder_.getCount(); + } + } + /** + * + * + *
+     * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool getTools(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessage(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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.set(index, value); + onChanged(); + } else { + toolsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTools( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools(com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(value); + onChanged(); + } else { + toolsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(index, value); + onChanged(); + } else { + toolsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools(com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTools( + java.lang.Iterable values) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_); + onChanged(); + } else { + toolsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTools() { + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + toolsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTools(int index) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.remove(index); + onChanged(); + } else { + toolsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder getToolsBuilder(int index) { + return getToolsFieldBuilder().getBuilder(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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessageOrBuilder(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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolsOrBuilderList() { + if (toolsBuilder_ != null) { + return toolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolsBuilder() { + return getToolsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + /** + * + * + *
+     * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolsBuilder(int index) { + return getToolsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + /** + * + * + *
+     * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsBuilderList() { + return getToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + getToolsFieldBuilder() { + if (toolsBuilder_ == null) { + toolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>( + tools_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + tools_ = null; + } + return toolsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensRequestOrBuilder.java index 1e6bae03f5fc..4fbf264d46b0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensRequestOrBuilder.java @@ -61,12 +61,12 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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. */ @@ -75,12 +75,12 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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. */ @@ -90,11 +90,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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.util.List getInstancesList(); @@ -102,11 +102,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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]; * */ com.google.protobuf.Value getInstances(int index); @@ -114,11 +114,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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]; * */ int getInstancesCount(); @@ -126,11 +126,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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.util.List getInstancesOrBuilderList(); @@ -138,11 +138,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * 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]; * */ com.google.protobuf.ValueOrBuilder getInstancesOrBuilder(int index); @@ -151,11 +151,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * Required. Input content.
+   * Optional. Input content.
    * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List getContentsList(); @@ -163,11 +163,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * Required. Input content.
+   * Optional. Input content.
    * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.aiplatform.v1beta1.Content getContents(int index); @@ -175,11 +175,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * Required. Input content.
+   * Optional. Input content.
    * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ int getContentsCount(); @@ -187,11 +187,11 @@ public interface CountTokensRequestOrBuilder * * *
-   * Required. Input content.
+   * Optional. Input content.
    * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List @@ -200,12 +200,146 @@ public interface CountTokensRequestOrBuilder * * *
-   * Required. Input content.
+   * Optional. Input content.
    * 
* * - * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index); + + /** + * + * + *
+   * 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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the systemInstruction field is set. + */ + boolean hasSystemInstruction(); + /** + * + * + *
+   * 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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The systemInstruction. + */ + com.google.cloud.aiplatform.v1beta1.Content getSystemInstruction(); + /** + * + * + *
+   * 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.v1beta1.Content system_instruction = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getSystemInstructionOrBuilder(); + + /** + * + * + *
+   * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolsList(); + /** + * + * + *
+   * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Tool getTools(int 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolsCount(); + /** + * + * + *
+   * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getToolsOrBuilderList(); + /** + * + * + *
+   * 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java index cb63954c47b5..53fde50f167d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java @@ -141,16 +141,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "utor_image_uri\030\001 \001(\tB\003\340A\002\022\031\n\014package_uri" + "s\030\002 \003(\tB\003\340A\002\022\032\n\rpython_module\030\003 \001(\tB\003\340A\002" + "\022\014\n\004args\030\004 \003(\t\0224\n\003env\030\005 \003(\0132\'.google.clo" - + "ud.aiplatform.v1beta1.EnvVar\"}\n\nScheduli" - + "ng\022*\n\007timeout\030\001 \001(\0132\031.google.protobuf.Du" - + "ration\022%\n\035restart_job_on_worker_restart\030" - + "\003 \001(\010\022\034\n\017disable_retries\030\005 \001(\010B\003\340A\001B\345\001\n#" - + "com.google.cloud.aiplatform.v1beta1B\016Cus" - + "tomJobProtoP\001ZCcloud.google.com/go/aipla" - + "tform/apiv1beta1/aiplatformpb;aiplatform" - + "pb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G" - + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:" - + ":Cloud::AIPlatform::V1beta1b\006proto3" + + "ud.aiplatform.v1beta1.EnvVar\"\215\002\n\nSchedul" + + "ing\022*\n\007timeout\030\001 \001(\0132\031.google.protobuf.D" + + "uration\022%\n\035restart_job_on_worker_restart" + + "\030\003 \001(\010\022K\n\010strategy\030\004 \001(\01624.google.cloud." + + "aiplatform.v1beta1.Scheduling.StrategyB\003" + + "\340A\001\022\034\n\017disable_retries\030\005 \001(\010B\003\340A\001\"A\n\010Str" + + "ategy\022\030\n\024STRATEGY_UNSPECIFIED\020\000\022\r\n\tON_DE" + + "MAND\020\001\022\014\n\010LOW_COST\020\002B\345\001\n#com.google.clou" + + "d.aiplatform.v1beta1B\016CustomJobProtoP\001ZC" + + "cloud.google.com/go/aiplatform/apiv1beta" + + "1/aiplatformpb;aiplatformpb\252\002\037Google.Clo" + + "ud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIP" + + "latform\\V1beta1\352\002\"Google::Cloud::AIPlatf" + + "orm::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -263,7 +267,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Scheduling_descriptor, new java.lang.String[] { - "Timeout", "RestartJobOnWorkerRestart", "DisableRetries", + "Timeout", "RestartJobOnWorkerRestart", "Strategy", "DisableRetries", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItem.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItem.java index 178769cf038b..0444cdf48806 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItem.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItem.java @@ -480,6 +480,42 @@ public com.google.protobuf.ByteString getEtagBytes() { } } + public static final int SATISFIES_PZS_FIELD_NUMBER = 10; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 11; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -511,6 +547,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, etag_); } + if (satisfiesPzs_ != false) { + output.writeBool(10, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + output.writeBool(11, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -545,6 +587,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -576,6 +624,8 @@ public boolean equals(final java.lang.Object obj) { if (!getPayload().equals(other.getPayload())) return false; } if (!getEtag().equals(other.getEtag())) return false; + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -607,6 +657,10 @@ public int hashCode() { } hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -798,6 +852,8 @@ public Builder clear() { payloadBuilder_ = null; } etag_ = ""; + satisfiesPzs_ = false; + satisfiesPzi_ = false; return this; } @@ -857,6 +913,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DataItem result) if (((from_bitField0_ & 0x00000020) != 0)) { result.etag_ = etag_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } result.bitField0_ |= to_bitField0_; } @@ -926,6 +988,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DataItem other) { bitField0_ |= 0x00000020; onChanged(); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -994,6 +1062,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 58 + case 80: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 80 + case 88: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 88 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2086,6 +2166,112 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00000040); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00000080); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemOrBuilder.java index a39f06743d1b..b55960aa4962 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemOrBuilder.java @@ -306,4 +306,30 @@ java.lang.String getLabelsOrDefault( * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemProto.java index f8a49e894421..2b8a2a432753 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemProto.java @@ -50,24 +50,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "a1\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/resource.proto\032\034google/protobuf/" + "struct.proto\032\037google/protobuf/timestamp." - + "proto\"\300\003\n\010DataItem\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n" + + "proto\"\370\003\n\010DataItem\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim" + "estampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.googl" + "e.protobuf.TimestampB\003\340A\003\022J\n\006labels\030\003 \003(" + "\01325.google.cloud.aiplatform.v1beta1.Data" + "Item.LabelsEntryB\003\340A\001\022,\n\007payload\030\004 \001(\0132\026" + ".google.protobuf.ValueB\003\340A\002\022\021\n\004etag\030\007 \001(" - + "\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:y\352Av\n\"aiplatform.googleapi" - + "s.com/DataItem\022Pprojects/{project}/locat" - + "ions/{location}/datasets/{dataset}/dataI" - + "tems/{data_item}B\344\001\n#com.google.cloud.ai" - + "platform.v1beta1B\rDataItemProtoP\001ZCcloud" - + ".google.com/go/aiplatform/apiv1beta1/aip" - + "latformpb;aiplatformpb\252\002\037Google.Cloud.AI" - + "Platform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfo" - + "rm\\V1beta1\352\002\"Google::Cloud::AIPlatform::" - + "V1beta1b\006proto3" + + "\tB\003\340A\001\022\032\n\rsatisfies_pzs\030\n \001(\010B\003\340A\003\022\032\n\rsa" + + "tisfies_pzi\030\013 \001(\010B\003\340A\003\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:y\352Av\n\"aipl" + + "atform.googleapis.com/DataItem\022Pprojects" + + "/{project}/locations/{location}/datasets" + + "/{dataset}/dataItems/{data_item}B\344\001\n#com" + + ".google.cloud.aiplatform.v1beta1B\rDataIt" + + "emProtoP\001ZCcloud.google.com/go/aiplatfor" + + "m/apiv1beta1/aiplatformpb;aiplatformpb\252\002" + + "\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Googl" + + "e\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clo" + + "ud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -84,7 +85,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DataItem_descriptor, new java.lang.String[] { - "Name", "CreateTime", "UpdateTime", "Labels", "Payload", "Etag", + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "Payload", + "Etag", + "SatisfiesPzs", + "SatisfiesPzi", }); internal_static_google_cloud_aiplatform_v1beta1_DataItem_LabelsEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_DataItem_descriptor.getNestedTypes().get(0); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java index 61aeb4a6010a..06c448e54e6d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java @@ -91,10 +91,12 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
-   * Output only. The resource name of the Dataset.
+   * Output only. Identifier. The resource name of the Dataset.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -114,10 +116,12 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name of the Dataset.
+   * Output only. Identifier. The resource name of the Dataset.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -940,6 +944,42 @@ public com.google.protobuf.ByteString getModelReferenceBytes() { } } + public static final int SATISFIES_PZS_FIELD_NUMBER = 19; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 20; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -995,6 +1035,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelReference_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, modelReference_); } + if (satisfiesPzs_ != false) { + output.writeBool(19, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + output.writeBool(20, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -1053,6 +1099,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelReference_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, modelReference_); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1095,6 +1147,8 @@ public boolean equals(final java.lang.Object obj) { } if (!getMetadataArtifact().equals(other.getMetadataArtifact())) return false; if (!getModelReference().equals(other.getModelReference())) return false; + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1146,6 +1200,10 @@ public int hashCode() { hash = (53 * hash) + getMetadataArtifact().hashCode(); hash = (37 * hash) + MODEL_REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getModelReference().hashCode(); + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1356,6 +1414,8 @@ public Builder clear() { } metadataArtifact_ = ""; modelReference_ = ""; + satisfiesPzs_ = false; + satisfiesPzi_ = false; return this; } @@ -1451,6 +1511,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Dataset result) { if (((from_bitField0_ & 0x00002000) != 0)) { result.modelReference_ = modelReference_; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } result.bitField0_ |= to_bitField0_; } @@ -1578,6 +1644,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Dataset other) { bitField0_ |= 0x00002000; onChanged(); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1701,6 +1773,18 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 146 + case 152: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 152 + case 160: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 160 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1725,10 +1809,12 @@ public Builder mergeFrom( * * *
-     * Output only. The resource name of the Dataset.
+     * Output only. Identifier. The resource name of the Dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -1747,10 +1833,12 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name of the Dataset.
+     * Output only. Identifier. The resource name of the Dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -1769,10 +1857,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name of the Dataset.
+     * Output only. Identifier. The resource name of the Dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The name to set. * @return This builder for chaining. @@ -1790,10 +1880,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name of the Dataset.
+     * Output only. Identifier. The resource name of the Dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return This builder for chaining. */ @@ -1807,10 +1899,12 @@ public Builder clearName() { * * *
-     * Output only. The resource name of the Dataset.
+     * Output only. Identifier. The resource name of the Dataset.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The bytes for name to set. * @return This builder for chaining. @@ -4084,6 +4178,112 @@ public Builder setModelReferenceBytes(com.google.protobuf.ByteString value) { return this; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00004000); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00008000); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetDistribution.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetDistribution.java new file mode 100644 index 000000000000..bece1438dfa1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetDistribution.java @@ -0,0 +1,2481 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tuning_job.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Distribution computed over a tuning dataset.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DatasetDistribution} + */ +public final class DatasetDistribution extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DatasetDistribution) + DatasetDistributionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatasetDistribution.newBuilder() to construct. + private DatasetDistribution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatasetDistribution() { + buckets_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatasetDistribution(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.class, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder.class); + } + + public interface DistributionBucketOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Number of values in the bucket.
+     * 
+ * + * int64 count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count. + */ + long getCount(); + + /** + * + * + *
+     * Output only. Left bound of the bucket.
+     * 
+ * + * double left = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The left. + */ + double getLeft(); + + /** + * + * + *
+     * Output only. Right bound of the bucket.
+     * 
+ * + * double right = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The right. + */ + double getRight(); + } + /** + * + * + *
+   * Dataset bucket used to create a histogram for the distribution given a
+   * population of values.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket} + */ + public static final class DistributionBucket extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket) + DistributionBucketOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributionBucket.newBuilder() to construct. + private DistributionBucket(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DistributionBucket() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DistributionBucket(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_DistributionBucket_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_DistributionBucket_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.class, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.Builder + .class); + } + + public static final int COUNT_FIELD_NUMBER = 1; + private long count_ = 0L; + /** + * + * + *
+     * Output only. Number of values in the bucket.
+     * 
+ * + * int64 count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + + public static final int LEFT_FIELD_NUMBER = 2; + private double left_ = 0D; + /** + * + * + *
+     * Output only. Left bound of the bucket.
+     * 
+ * + * double left = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The left. + */ + @java.lang.Override + public double getLeft() { + return left_; + } + + public static final int RIGHT_FIELD_NUMBER = 3; + private double right_ = 0D; + /** + * + * + *
+     * Output only. Right bound of the bucket.
+     * 
+ * + * double right = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The right. + */ + @java.lang.Override + public double getRight() { + return right_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (count_ != 0L) { + output.writeInt64(1, count_); + } + if (java.lang.Double.doubleToRawLongBits(left_) != 0) { + output.writeDouble(2, left_); + } + if (java.lang.Double.doubleToRawLongBits(right_) != 0) { + output.writeDouble(3, right_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, count_); + } + if (java.lang.Double.doubleToRawLongBits(left_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, left_); + } + if (java.lang.Double.doubleToRawLongBits(right_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, right_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket other = + (com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket) obj; + + if (getCount() != other.getCount()) return false; + if (java.lang.Double.doubleToLongBits(getLeft()) + != java.lang.Double.doubleToLongBits(other.getLeft())) return false; + if (java.lang.Double.doubleToLongBits(getRight()) + != java.lang.Double.doubleToLongBits(other.getRight())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (37 * hash) + LEFT_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getLeft())); + hash = (37 * hash) + RIGHT_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRight())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Dataset bucket used to create a histogram for the distribution given a
+     * population of values.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket) + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucketOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_DistributionBucket_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_DistributionBucket_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.class, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + count_ = 0L; + left_ = 0D; + right_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_DistributionBucket_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket build() { + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + buildPartial() { + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket result = + new com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.count_ = count_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.left_ = left_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.right_ = right_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + .getDefaultInstance()) return this; + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + if (other.getLeft() != 0D) { + setLeft(other.getLeft()); + } + if (other.getRight() != 0D) { + setRight(other.getRight()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + count_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 17: + { + left_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: + { + right_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long count_; + /** + * + * + *
+       * Output only. Number of values in the bucket.
+       * 
+ * + * int64 count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + /** + * + * + *
+       * Output only. Number of values in the bucket.
+       * 
+ * + * int64 count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(long value) { + + count_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Number of values in the bucket.
+       * 
+ * + * int64 count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCount() { + bitField0_ = (bitField0_ & ~0x00000001); + count_ = 0L; + onChanged(); + return this; + } + + private double left_; + /** + * + * + *
+       * Output only. Left bound of the bucket.
+       * 
+ * + * double left = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The left. + */ + @java.lang.Override + public double getLeft() { + return left_; + } + /** + * + * + *
+       * Output only. Left bound of the bucket.
+       * 
+ * + * double left = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The left to set. + * @return This builder for chaining. + */ + public Builder setLeft(double value) { + + left_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Left bound of the bucket.
+       * 
+ * + * double left = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLeft() { + bitField0_ = (bitField0_ & ~0x00000002); + left_ = 0D; + onChanged(); + return this; + } + + private double right_; + /** + * + * + *
+       * Output only. Right bound of the bucket.
+       * 
+ * + * double right = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The right. + */ + @java.lang.Override + public double getRight() { + return right_; + } + /** + * + * + *
+       * Output only. Right bound of the bucket.
+       * 
+ * + * double right = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The right to set. + * @return This builder for chaining. + */ + public Builder setRight(double value) { + + right_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Right bound of the bucket.
+       * 
+ * + * double right = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRight() { + bitField0_ = (bitField0_ & ~0x00000004); + right_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket) + private static final com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket(); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributionBucket parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int SUM_FIELD_NUMBER = 1; + private double sum_ = 0D; + /** + * + * + *
+   * Output only. Sum of a given population of values.
+   * 
+ * + * double sum = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sum. + */ + @java.lang.Override + public double getSum() { + return sum_; + } + + public static final int MIN_FIELD_NUMBER = 2; + private double min_ = 0D; + /** + * + * + *
+   * Output only. The minimum of the population values.
+   * 
+ * + * double min = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The min. + */ + @java.lang.Override + public double getMin() { + return min_; + } + + public static final int MAX_FIELD_NUMBER = 3; + private double max_ = 0D; + /** + * + * + *
+   * Output only. The maximum of the population values.
+   * 
+ * + * double max = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The max. + */ + @java.lang.Override + public double getMax() { + return max_; + } + + public static final int MEAN_FIELD_NUMBER = 4; + private double mean_ = 0D; + /** + * + * + *
+   * Output only. The arithmetic mean of the values in the population.
+   * 
+ * + * double mean = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mean. + */ + @java.lang.Override + public double getMean() { + return mean_; + } + + public static final int MEDIAN_FIELD_NUMBER = 5; + private double median_ = 0D; + /** + * + * + *
+   * Output only. The median of the values in the population.
+   * 
+ * + * double median = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The median. + */ + @java.lang.Override + public double getMedian() { + return median_; + } + + public static final int P5_FIELD_NUMBER = 6; + private double p5_ = 0D; + /** + * + * + *
+   * Output only. The 5th percentile of the values in the population.
+   * 
+ * + * double p5 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The p5. + */ + @java.lang.Override + public double getP5() { + return p5_; + } + + public static final int P95_FIELD_NUMBER = 7; + private double p95_ = 0D; + /** + * + * + *
+   * Output only. The 95th percentile of the values in the population.
+   * 
+ * + * double p95 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The p95. + */ + @java.lang.Override + public double getP95() { + return p95_; + } + + public static final int BUCKETS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List + buckets_; + /** + * + * + *
+   * Output only. Defines the histogram bucket.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getBucketsList() { + return buckets_; + } + /** + * + * + *
+   * Output only. Defines the histogram bucket.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucketOrBuilder> + getBucketsOrBuilderList() { + return buckets_; + } + /** + * + * + *
+   * Output only. Defines the histogram bucket.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getBucketsCount() { + return buckets_.size(); + } + /** + * + * + *
+   * Output only. Defines the histogram bucket.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket getBuckets( + int index) { + return buckets_.get(index); + } + /** + * + * + *
+   * Output only. Defines the histogram bucket.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucketOrBuilder + getBucketsOrBuilder(int index) { + return buckets_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (java.lang.Double.doubleToRawLongBits(sum_) != 0) { + output.writeDouble(1, sum_); + } + if (java.lang.Double.doubleToRawLongBits(min_) != 0) { + output.writeDouble(2, min_); + } + if (java.lang.Double.doubleToRawLongBits(max_) != 0) { + output.writeDouble(3, max_); + } + if (java.lang.Double.doubleToRawLongBits(mean_) != 0) { + output.writeDouble(4, mean_); + } + if (java.lang.Double.doubleToRawLongBits(median_) != 0) { + output.writeDouble(5, median_); + } + if (java.lang.Double.doubleToRawLongBits(p5_) != 0) { + output.writeDouble(6, p5_); + } + if (java.lang.Double.doubleToRawLongBits(p95_) != 0) { + output.writeDouble(7, p95_); + } + for (int i = 0; i < buckets_.size(); i++) { + output.writeMessage(8, buckets_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(sum_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, sum_); + } + if (java.lang.Double.doubleToRawLongBits(min_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, min_); + } + if (java.lang.Double.doubleToRawLongBits(max_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, max_); + } + if (java.lang.Double.doubleToRawLongBits(mean_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, mean_); + } + if (java.lang.Double.doubleToRawLongBits(median_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, median_); + } + if (java.lang.Double.doubleToRawLongBits(p5_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, p5_); + } + if (java.lang.Double.doubleToRawLongBits(p95_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(7, p95_); + } + for (int i = 0; i < buckets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, buckets_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DatasetDistribution)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DatasetDistribution other = + (com.google.cloud.aiplatform.v1beta1.DatasetDistribution) obj; + + if (java.lang.Double.doubleToLongBits(getSum()) + != java.lang.Double.doubleToLongBits(other.getSum())) return false; + if (java.lang.Double.doubleToLongBits(getMin()) + != java.lang.Double.doubleToLongBits(other.getMin())) return false; + if (java.lang.Double.doubleToLongBits(getMax()) + != java.lang.Double.doubleToLongBits(other.getMax())) return false; + if (java.lang.Double.doubleToLongBits(getMean()) + != java.lang.Double.doubleToLongBits(other.getMean())) return false; + if (java.lang.Double.doubleToLongBits(getMedian()) + != java.lang.Double.doubleToLongBits(other.getMedian())) return false; + if (java.lang.Double.doubleToLongBits(getP5()) + != java.lang.Double.doubleToLongBits(other.getP5())) return false; + if (java.lang.Double.doubleToLongBits(getP95()) + != java.lang.Double.doubleToLongBits(other.getP95())) return false; + if (!getBucketsList().equals(other.getBucketsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUM_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getSum())); + hash = (37 * hash) + MIN_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMin())); + hash = (37 * hash) + MAX_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMax())); + hash = (37 * hash) + MEAN_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMean())); + hash = (37 * hash) + MEDIAN_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMedian())); + hash = (37 * hash) + P5_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getP5())); + hash = (37 * hash) + P95_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getP95())); + if (getBucketsCount() > 0) { + hash = (37 * hash) + BUCKETS_FIELD_NUMBER; + hash = (53 * hash) + getBucketsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Distribution computed over a tuning dataset.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DatasetDistribution} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DatasetDistribution) + com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.class, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DatasetDistribution.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sum_ = 0D; + min_ = 0D; + max_ = 0D; + mean_ = 0D; + median_ = 0D; + p5_ = 0D; + p95_ = 0D; + if (bucketsBuilder_ == null) { + buckets_ = java.util.Collections.emptyList(); + } else { + buckets_ = null; + bucketsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution build() { + com.google.cloud.aiplatform.v1beta1.DatasetDistribution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution buildPartial() { + com.google.cloud.aiplatform.v1beta1.DatasetDistribution result = + new com.google.cloud.aiplatform.v1beta1.DatasetDistribution(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution result) { + if (bucketsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + buckets_ = java.util.Collections.unmodifiableList(buckets_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.buckets_ = buckets_; + } else { + result.buckets_ = bucketsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DatasetDistribution result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sum_ = sum_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.min_ = min_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.max_ = max_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.mean_ = mean_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.median_ = median_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.p5_ = p5_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.p95_ = p95_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.DatasetDistribution) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DatasetDistribution) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DatasetDistribution other) { + if (other == com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance()) + return this; + if (other.getSum() != 0D) { + setSum(other.getSum()); + } + if (other.getMin() != 0D) { + setMin(other.getMin()); + } + if (other.getMax() != 0D) { + setMax(other.getMax()); + } + if (other.getMean() != 0D) { + setMean(other.getMean()); + } + if (other.getMedian() != 0D) { + setMedian(other.getMedian()); + } + if (other.getP5() != 0D) { + setP5(other.getP5()); + } + if (other.getP95() != 0D) { + setP95(other.getP95()); + } + if (bucketsBuilder_ == null) { + if (!other.buckets_.isEmpty()) { + if (buckets_.isEmpty()) { + buckets_ = other.buckets_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureBucketsIsMutable(); + buckets_.addAll(other.buckets_); + } + onChanged(); + } + } else { + if (!other.buckets_.isEmpty()) { + if (bucketsBuilder_.isEmpty()) { + bucketsBuilder_.dispose(); + bucketsBuilder_ = null; + buckets_ = other.buckets_; + bitField0_ = (bitField0_ & ~0x00000080); + bucketsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBucketsFieldBuilder() + : null; + } else { + bucketsBuilder_.addAllMessages(other.buckets_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + sum_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: + { + min_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: + { + max_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 33: + { + mean_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 41: + { + median_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 49: + { + p5_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 49 + case 57: + { + p95_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 57 + case 66: + { + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + .parser(), + extensionRegistry); + if (bucketsBuilder_ == null) { + ensureBucketsIsMutable(); + buckets_.add(m); + } else { + bucketsBuilder_.addMessage(m); + } + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private double sum_; + /** + * + * + *
+     * Output only. Sum of a given population of values.
+     * 
+ * + * double sum = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sum. + */ + @java.lang.Override + public double getSum() { + return sum_; + } + /** + * + * + *
+     * Output only. Sum of a given population of values.
+     * 
+ * + * double sum = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sum to set. + * @return This builder for chaining. + */ + public Builder setSum(double value) { + + sum_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Sum of a given population of values.
+     * 
+ * + * double sum = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSum() { + bitField0_ = (bitField0_ & ~0x00000001); + sum_ = 0D; + onChanged(); + return this; + } + + private double min_; + /** + * + * + *
+     * Output only. The minimum of the population values.
+     * 
+ * + * double min = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The min. + */ + @java.lang.Override + public double getMin() { + return min_; + } + /** + * + * + *
+     * Output only. The minimum of the population values.
+     * 
+ * + * double min = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The min to set. + * @return This builder for chaining. + */ + public Builder setMin(double value) { + + min_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The minimum of the population values.
+     * 
+ * + * double min = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMin() { + bitField0_ = (bitField0_ & ~0x00000002); + min_ = 0D; + onChanged(); + return this; + } + + private double max_; + /** + * + * + *
+     * Output only. The maximum of the population values.
+     * 
+ * + * double max = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The max. + */ + @java.lang.Override + public double getMax() { + return max_; + } + /** + * + * + *
+     * Output only. The maximum of the population values.
+     * 
+ * + * double max = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The max to set. + * @return This builder for chaining. + */ + public Builder setMax(double value) { + + max_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The maximum of the population values.
+     * 
+ * + * double max = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMax() { + bitField0_ = (bitField0_ & ~0x00000004); + max_ = 0D; + onChanged(); + return this; + } + + private double mean_; + /** + * + * + *
+     * Output only. The arithmetic mean of the values in the population.
+     * 
+ * + * double mean = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mean. + */ + @java.lang.Override + public double getMean() { + return mean_; + } + /** + * + * + *
+     * Output only. The arithmetic mean of the values in the population.
+     * 
+ * + * double mean = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The mean to set. + * @return This builder for chaining. + */ + public Builder setMean(double value) { + + mean_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The arithmetic mean of the values in the population.
+     * 
+ * + * double mean = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMean() { + bitField0_ = (bitField0_ & ~0x00000008); + mean_ = 0D; + onChanged(); + return this; + } + + private double median_; + /** + * + * + *
+     * Output only. The median of the values in the population.
+     * 
+ * + * double median = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The median. + */ + @java.lang.Override + public double getMedian() { + return median_; + } + /** + * + * + *
+     * Output only. The median of the values in the population.
+     * 
+ * + * double median = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The median to set. + * @return This builder for chaining. + */ + public Builder setMedian(double value) { + + median_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The median of the values in the population.
+     * 
+ * + * double median = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMedian() { + bitField0_ = (bitField0_ & ~0x00000010); + median_ = 0D; + onChanged(); + return this; + } + + private double p5_; + /** + * + * + *
+     * Output only. The 5th percentile of the values in the population.
+     * 
+ * + * double p5 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The p5. + */ + @java.lang.Override + public double getP5() { + return p5_; + } + /** + * + * + *
+     * Output only. The 5th percentile of the values in the population.
+     * 
+ * + * double p5 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The p5 to set. + * @return This builder for chaining. + */ + public Builder setP5(double value) { + + p5_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The 5th percentile of the values in the population.
+     * 
+ * + * double p5 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearP5() { + bitField0_ = (bitField0_ & ~0x00000020); + p5_ = 0D; + onChanged(); + return this; + } + + private double p95_; + /** + * + * + *
+     * Output only. The 95th percentile of the values in the population.
+     * 
+ * + * double p95 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The p95. + */ + @java.lang.Override + public double getP95() { + return p95_; + } + /** + * + * + *
+     * Output only. The 95th percentile of the values in the population.
+     * 
+ * + * double p95 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The p95 to set. + * @return This builder for chaining. + */ + public Builder setP95(double value) { + + p95_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The 95th percentile of the values in the population.
+     * 
+ * + * double p95 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearP95() { + bitField0_ = (bitField0_ & ~0x00000040); + p95_ = 0D; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket> + buckets_ = java.util.Collections.emptyList(); + + private void ensureBucketsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + buckets_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket>( + buckets_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucketOrBuilder> + bucketsBuilder_; + + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket> + getBucketsList() { + if (bucketsBuilder_ == null) { + return java.util.Collections.unmodifiableList(buckets_); + } else { + return bucketsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getBucketsCount() { + if (bucketsBuilder_ == null) { + return buckets_.size(); + } else { + return bucketsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket getBuckets( + int index) { + if (bucketsBuilder_ == null) { + return buckets_.get(index); + } else { + return bucketsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBuckets( + int index, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket value) { + if (bucketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBucketsIsMutable(); + buckets_.set(index, value); + onChanged(); + } else { + bucketsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBuckets( + int index, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.Builder + builderForValue) { + if (bucketsBuilder_ == null) { + ensureBucketsIsMutable(); + buckets_.set(index, builderForValue.build()); + onChanged(); + } else { + bucketsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBuckets( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket value) { + if (bucketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBucketsIsMutable(); + buckets_.add(value); + onChanged(); + } else { + bucketsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBuckets( + int index, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket value) { + if (bucketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBucketsIsMutable(); + buckets_.add(index, value); + onChanged(); + } else { + bucketsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBuckets( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.Builder + builderForValue) { + if (bucketsBuilder_ == null) { + ensureBucketsIsMutable(); + buckets_.add(builderForValue.build()); + onChanged(); + } else { + bucketsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBuckets( + int index, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.Builder + builderForValue) { + if (bucketsBuilder_ == null) { + ensureBucketsIsMutable(); + buckets_.add(index, builderForValue.build()); + onChanged(); + } else { + bucketsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllBuckets( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket> + values) { + if (bucketsBuilder_ == null) { + ensureBucketsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, buckets_); + onChanged(); + } else { + bucketsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearBuckets() { + if (bucketsBuilder_ == null) { + buckets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + bucketsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeBuckets(int index) { + if (bucketsBuilder_ == null) { + ensureBucketsIsMutable(); + buckets_.remove(index); + onChanged(); + } else { + bucketsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.Builder + getBucketsBuilder(int index) { + return getBucketsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucketOrBuilder + getBucketsOrBuilder(int index) { + if (bucketsBuilder_ == null) { + return buckets_.get(index); + } else { + return bucketsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucketOrBuilder> + getBucketsOrBuilderList() { + if (bucketsBuilder_ != null) { + return bucketsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(buckets_); + } + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.Builder + addBucketsBuilder() { + return getBucketsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.Builder + addBucketsBuilder(int index) { + return getBucketsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Defines the histogram bucket.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.Builder> + getBucketsBuilderList() { + return getBucketsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucketOrBuilder> + getBucketsFieldBuilder() { + if (bucketsBuilder_ == null) { + bucketsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution + .DistributionBucketOrBuilder>( + buckets_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + buckets_ = null; + } + return bucketsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DatasetDistribution) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DatasetDistribution) + private static final com.google.cloud.aiplatform.v1beta1.DatasetDistribution DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DatasetDistribution(); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetDistribution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetDistribution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetDistributionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetDistributionOrBuilder.java new file mode 100644 index 000000000000..1b3925f77103 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetDistributionOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tuning_job.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface DatasetDistributionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DatasetDistribution) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Sum of a given population of values.
+   * 
+ * + * double sum = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sum. + */ + double getSum(); + + /** + * + * + *
+   * Output only. The minimum of the population values.
+   * 
+ * + * double min = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The min. + */ + double getMin(); + + /** + * + * + *
+   * Output only. The maximum of the population values.
+   * 
+ * + * double max = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The max. + */ + double getMax(); + + /** + * + * + *
+   * Output only. The arithmetic mean of the values in the population.
+   * 
+ * + * double mean = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mean. + */ + double getMean(); + + /** + * + * + *
+   * Output only. The median of the values in the population.
+   * 
+ * + * double median = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The median. + */ + double getMedian(); + + /** + * + * + *
+   * Output only. The 5th percentile of the values in the population.
+   * 
+ * + * double p5 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The p5. + */ + double getP5(); + + /** + * + * + *
+   * Output only. The 95th percentile of the values in the population.
+   * 
+ * + * double p95 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The p95. + */ + double getP95(); + + /** + * + * + *
+   * Output only. Defines the histogram bucket.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getBucketsList(); + /** + * + * + *
+   * Output only. Defines the histogram bucket.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket getBuckets(int index); + /** + * + * + *
+   * Output only. Defines the histogram bucket.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getBucketsCount(); + /** + * + * + *
+   * Output only. Defines the histogram bucket.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucketOrBuilder> + getBucketsOrBuilderList(); + /** + * + * + *
+   * Output only. Defines the histogram bucket.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucket buckets = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.DistributionBucketOrBuilder + getBucketsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java index 0d7c4b4096d9..7350a55cd597 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java @@ -28,10 +28,12 @@ public interface DatasetOrBuilder * * *
-   * Output only. The resource name of the Dataset.
+   * Output only. Identifier. The resource name of the Dataset.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -40,10 +42,12 @@ public interface DatasetOrBuilder * * *
-   * Output only. The resource name of the Dataset.
+   * Output only. Identifier. The resource name of the Dataset.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -596,4 +600,30 @@ java.lang.String getLabelsOrDefault( * @return The bytes for modelReference. */ com.google.protobuf.ByteString getModelReferenceBytes(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java index c7c01625da30..67e34b5c2098 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java @@ -73,51 +73,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle/cloud/aiplatform/v1beta1/io.proto\0321g" + "oogle/cloud/aiplatform/v1beta1/saved_que" + "ry.proto\032\034google/protobuf/struct.proto\032\037" - + "google/protobuf/timestamp.proto\"\332\005\n\007Data" - + "set\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002" - + " \001(\tB\003\340A\002\022\023\n\013description\030\020 \001(\t\022 \n\023metada" - + "ta_schema_uri\030\003 \001(\tB\003\340A\002\022-\n\010metadata\030\010 \001" - + "(\0132\026.google.protobuf.ValueB\003\340A\002\022\034\n\017data_" - + "item_count\030\n \001(\003B\003\340A\003\0224\n\013create_time\030\004 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" - + "pdate_time\030\005 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022\014\n\004etag\030\006 \001(\t\022D\n\006labels\030\007 \003(\0132" - + "4.google.cloud.aiplatform.v1beta1.Datase" - + "t.LabelsEntry\022B\n\rsaved_queries\030\t \003(\0132+.g" - + "oogle.cloud.aiplatform.v1beta1.SavedQuer" - + "y\022H\n\017encryption_spec\030\013 \001(\0132/.google.clou" - + "d.aiplatform.v1beta1.EncryptionSpec\022\036\n\021m" - + "etadata_artifact\030\021 \001(\tB\003\340A\003\022\034\n\017model_ref" - + "erence\030\022 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:b\352A_\n!aiplatfor" - + "m.googleapis.com/Dataset\022:projects/{proj" - + "ect}/locations/{location}/datasets/{data" - + "set}\"\263\003\n\020ImportDataConfig\022@\n\ngcs_source\030" - + "\001 \001(\0132*.google.cloud.aiplatform.v1beta1." - + "GcsSourceH\000\022_\n\020data_item_labels\030\002 \003(\0132E." - + "google.cloud.aiplatform.v1beta1.ImportDa" - + "taConfig.DataItemLabelsEntry\022b\n\021annotati" - + "on_labels\030\003 \003(\0132G.google.cloud.aiplatfor" - + "m.v1beta1.ImportDataConfig.AnnotationLab" - + "elsEntry\022\036\n\021import_schema_uri\030\004 \001(\tB\003\340A\002" - + "\0325\n\023DataItemLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\0327\n\025AnnotationLabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006sour" - + "ce\"\342\001\n\020ExportDataConfig\022J\n\017gcs_destinati" - + "on\030\001 \001(\0132/.google.cloud.aiplatform.v1bet" - + "a1.GcsDestinationH\000\022N\n\016fraction_split\030\005 " - + "\001(\01324.google.cloud.aiplatform.v1beta1.Ex" - + "portFractionSplitH\001\022\032\n\022annotations_filte" - + "r\030\002 \001(\tB\r\n\013destinationB\007\n\005split\"d\n\023Expor" - + "tFractionSplit\022\031\n\021training_fraction\030\001 \001(" - + "\001\022\033\n\023validation_fraction\030\002 \001(\001\022\025\n\rtest_f" - + "raction\030\003 \001(\001B\343\001\n#com.google.cloud.aipla" - + "tform.v1beta1B\014DatasetProtoP\001ZCcloud.goo" - + "gle.com/go/aiplatform/apiv1beta1/aiplatf" - + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat" - + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" - + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be" - + "ta1b\006proto3" + + "google/protobuf/timestamp.proto\"\225\006\n\007Data" + + "set\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\010\022\031\n\014display_nam" + + "e\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\020 \001(\t\022 \n\023met" + + "adata_schema_uri\030\003 \001(\tB\003\340A\002\022-\n\010metadata\030" + + "\010 \001(\0132\026.google.protobuf.ValueB\003\340A\002\022\034\n\017da" + + "ta_item_count\030\n \001(\003B\003\340A\003\0224\n\013create_time\030" + + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013update_time\030\005 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022\014\n\004etag\030\006 \001(\t\022D\n\006labels\030\007 \003" + + "(\01324.google.cloud.aiplatform.v1beta1.Dat" + + "aset.LabelsEntry\022B\n\rsaved_queries\030\t \003(\0132" + + "+.google.cloud.aiplatform.v1beta1.SavedQ" + + "uery\022H\n\017encryption_spec\030\013 \001(\0132/.google.c" + + "loud.aiplatform.v1beta1.EncryptionSpec\022\036" + + "\n\021metadata_artifact\030\021 \001(\tB\003\340A\003\022\034\n\017model_" + + "reference\030\022 \001(\tB\003\340A\001\022\032\n\rsatisfies_pzs\030\023 " + + "\001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\024 \001(\010B\003\340A\003\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001:b\352A_\n!aiplatform.googleapis.com/Data" + + "set\022:projects/{project}/locations/{locat" + + "ion}/datasets/{dataset}\"\263\003\n\020ImportDataCo" + + "nfig\022@\n\ngcs_source\030\001 \001(\0132*.google.cloud." + + "aiplatform.v1beta1.GcsSourceH\000\022_\n\020data_i" + + "tem_labels\030\002 \003(\0132E.google.cloud.aiplatfo" + + "rm.v1beta1.ImportDataConfig.DataItemLabe" + + "lsEntry\022b\n\021annotation_labels\030\003 \003(\0132G.goo" + + "gle.cloud.aiplatform.v1beta1.ImportDataC" + + "onfig.AnnotationLabelsEntry\022\036\n\021import_sc" + + "hema_uri\030\004 \001(\tB\003\340A\002\0325\n\023DataItemLabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0327\n\025An" + + "notationLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001B\010\n\006source\"\342\001\n\020ExportDataConf" + + "ig\022J\n\017gcs_destination\030\001 \001(\0132/.google.clo" + + "ud.aiplatform.v1beta1.GcsDestinationH\000\022N" + + "\n\016fraction_split\030\005 \001(\01324.google.cloud.ai" + + "platform.v1beta1.ExportFractionSplitH\001\022\032" + + "\n\022annotations_filter\030\002 \001(\tB\r\n\013destinatio" + + "nB\007\n\005split\"d\n\023ExportFractionSplit\022\031\n\021tra" + + "ining_fraction\030\001 \001(\001\022\033\n\023validation_fract" + + "ion\030\002 \001(\001\022\025\n\rtest_fraction\030\003 \001(\001B\343\001\n#com" + + ".google.cloud.aiplatform.v1beta1B\014Datase" + + "tProtoP\001ZCcloud.google.com/go/aiplatform" + + "/apiv1beta1/aiplatformpb;aiplatformpb\252\002\037" + + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google" + + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clou" + + "d::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -151,6 +152,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EncryptionSpec", "MetadataArtifact", "ModelReference", + "SatisfiesPzs", + "SatisfiesPzi", }); internal_static_google_cloud_aiplatform_v1beta1_Dataset_LabelsEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_Dataset_descriptor.getNestedTypes().get(0); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetStats.java new file mode 100644 index 000000000000..0378654aa2ff --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetStats.java @@ -0,0 +1,2318 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tuning_job.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Statistics computed over a tuning dataset.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DatasetStats} + */ +public final class DatasetStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DatasetStats) + DatasetStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatasetStats.newBuilder() to construct. + private DatasetStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatasetStats() { + userDatasetExamples_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatasetStats(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DatasetStats.class, + com.google.cloud.aiplatform.v1beta1.DatasetStats.Builder.class); + } + + private int bitField0_; + public static final int TUNING_DATASET_EXAMPLE_COUNT_FIELD_NUMBER = 1; + private long tuningDatasetExampleCount_ = 0L; + /** + * + * + *
+   * Output only. Number of examples in the tuning dataset.
+   * 
+ * + * int64 tuning_dataset_example_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tuningDatasetExampleCount. + */ + @java.lang.Override + public long getTuningDatasetExampleCount() { + return tuningDatasetExampleCount_; + } + + public static final int TOTAL_TUNING_CHARACTER_COUNT_FIELD_NUMBER = 2; + private long totalTuningCharacterCount_ = 0L; + /** + * + * + *
+   * Output only. Number of tuning characters in the tuning dataset.
+   * 
+ * + * int64 total_tuning_character_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalTuningCharacterCount. + */ + @java.lang.Override + public long getTotalTuningCharacterCount() { + return totalTuningCharacterCount_; + } + + public static final int TOTAL_BILLABLE_CHARACTER_COUNT_FIELD_NUMBER = 3; + private long totalBillableCharacterCount_ = 0L; + /** + * + * + *
+   * Output only. Number of billable characters in the tuning dataset.
+   * 
+ * + * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalBillableCharacterCount. + */ + @java.lang.Override + public long getTotalBillableCharacterCount() { + return totalBillableCharacterCount_; + } + + public static final int TUNING_STEP_COUNT_FIELD_NUMBER = 4; + private long tuningStepCount_ = 0L; + /** + * + * + *
+   * Output only. Number of tuning steps for this Tuning Job.
+   * 
+ * + * int64 tuning_step_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tuningStepCount. + */ + @java.lang.Override + public long getTuningStepCount() { + return tuningStepCount_; + } + + public static final int USER_INPUT_TOKEN_DISTRIBUTION_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1beta1.DatasetDistribution userInputTokenDistribution_; + /** + * + * + *
+   * Output only. Dataset distributions for the user input tokens.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userInputTokenDistribution field is set. + */ + @java.lang.Override + public boolean hasUserInputTokenDistribution() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Dataset distributions for the user input tokens.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userInputTokenDistribution. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution getUserInputTokenDistribution() { + return userInputTokenDistribution_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance() + : userInputTokenDistribution_; + } + /** + * + * + *
+   * Output only. Dataset distributions for the user input tokens.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder + getUserInputTokenDistributionOrBuilder() { + return userInputTokenDistribution_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance() + : userInputTokenDistribution_; + } + + public static final int USER_OUTPUT_TOKEN_DISTRIBUTION_FIELD_NUMBER = 6; + private com.google.cloud.aiplatform.v1beta1.DatasetDistribution userOutputTokenDistribution_; + /** + * + * + *
+   * Output only. Dataset distributions for the user output tokens.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userOutputTokenDistribution field is set. + */ + @java.lang.Override + public boolean hasUserOutputTokenDistribution() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Dataset distributions for the user output tokens.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userOutputTokenDistribution. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution getUserOutputTokenDistribution() { + return userOutputTokenDistribution_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance() + : userOutputTokenDistribution_; + } + /** + * + * + *
+   * Output only. Dataset distributions for the user output tokens.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder + getUserOutputTokenDistributionOrBuilder() { + return userOutputTokenDistribution_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance() + : userOutputTokenDistribution_; + } + + public static final int USER_MESSAGE_PER_EXAMPLE_DISTRIBUTION_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1beta1.DatasetDistribution + userMessagePerExampleDistribution_; + /** + * + * + *
+   * Output only. Dataset distributions for the messages per example.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userMessagePerExampleDistribution field is set. + */ + @java.lang.Override + public boolean hasUserMessagePerExampleDistribution() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. Dataset distributions for the messages per example.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userMessagePerExampleDistribution. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution + getUserMessagePerExampleDistribution() { + return userMessagePerExampleDistribution_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance() + : userMessagePerExampleDistribution_; + } + /** + * + * + *
+   * Output only. Dataset distributions for the messages per example.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder + getUserMessagePerExampleDistributionOrBuilder() { + return userMessagePerExampleDistribution_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance() + : userMessagePerExampleDistribution_; + } + + public static final int USER_DATASET_EXAMPLES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List userDatasetExamples_; + /** + * + * + *
+   * Output only. Sample user messages in the training dataset uri.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getUserDatasetExamplesList() { + return userDatasetExamples_; + } + /** + * + * + *
+   * Output only. Sample user messages in the training dataset uri.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getUserDatasetExamplesOrBuilderList() { + return userDatasetExamples_; + } + /** + * + * + *
+   * Output only. Sample user messages in the training dataset uri.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getUserDatasetExamplesCount() { + return userDatasetExamples_.size(); + } + /** + * + * + *
+   * Output only. Sample user messages in the training dataset uri.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getUserDatasetExamples(int index) { + return userDatasetExamples_.get(index); + } + /** + * + * + *
+   * Output only. Sample user messages in the training dataset uri.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getUserDatasetExamplesOrBuilder( + int index) { + return userDatasetExamples_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (tuningDatasetExampleCount_ != 0L) { + output.writeInt64(1, tuningDatasetExampleCount_); + } + if (totalTuningCharacterCount_ != 0L) { + output.writeInt64(2, totalTuningCharacterCount_); + } + if (totalBillableCharacterCount_ != 0L) { + output.writeInt64(3, totalBillableCharacterCount_); + } + if (tuningStepCount_ != 0L) { + output.writeInt64(4, tuningStepCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getUserInputTokenDistribution()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getUserOutputTokenDistribution()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getUserMessagePerExampleDistribution()); + } + for (int i = 0; i < userDatasetExamples_.size(); i++) { + output.writeMessage(8, userDatasetExamples_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tuningDatasetExampleCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, tuningDatasetExampleCount_); + } + if (totalTuningCharacterCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, totalTuningCharacterCount_); + } + if (totalBillableCharacterCount_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(3, totalBillableCharacterCount_); + } + if (tuningStepCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, tuningStepCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getUserInputTokenDistribution()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getUserOutputTokenDistribution()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getUserMessagePerExampleDistribution()); + } + for (int i = 0; i < userDatasetExamples_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, userDatasetExamples_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DatasetStats)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DatasetStats other = + (com.google.cloud.aiplatform.v1beta1.DatasetStats) obj; + + if (getTuningDatasetExampleCount() != other.getTuningDatasetExampleCount()) return false; + if (getTotalTuningCharacterCount() != other.getTotalTuningCharacterCount()) return false; + if (getTotalBillableCharacterCount() != other.getTotalBillableCharacterCount()) return false; + if (getTuningStepCount() != other.getTuningStepCount()) return false; + if (hasUserInputTokenDistribution() != other.hasUserInputTokenDistribution()) return false; + if (hasUserInputTokenDistribution()) { + if (!getUserInputTokenDistribution().equals(other.getUserInputTokenDistribution())) + return false; + } + if (hasUserOutputTokenDistribution() != other.hasUserOutputTokenDistribution()) return false; + if (hasUserOutputTokenDistribution()) { + if (!getUserOutputTokenDistribution().equals(other.getUserOutputTokenDistribution())) + return false; + } + if (hasUserMessagePerExampleDistribution() != other.hasUserMessagePerExampleDistribution()) + return false; + if (hasUserMessagePerExampleDistribution()) { + if (!getUserMessagePerExampleDistribution() + .equals(other.getUserMessagePerExampleDistribution())) return false; + } + if (!getUserDatasetExamplesList().equals(other.getUserDatasetExamplesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TUNING_DATASET_EXAMPLE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTuningDatasetExampleCount()); + hash = (37 * hash) + TOTAL_TUNING_CHARACTER_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalTuningCharacterCount()); + hash = (37 * hash) + TOTAL_BILLABLE_CHARACTER_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacterCount()); + hash = (37 * hash) + TUNING_STEP_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTuningStepCount()); + if (hasUserInputTokenDistribution()) { + hash = (37 * hash) + USER_INPUT_TOKEN_DISTRIBUTION_FIELD_NUMBER; + hash = (53 * hash) + getUserInputTokenDistribution().hashCode(); + } + if (hasUserOutputTokenDistribution()) { + hash = (37 * hash) + USER_OUTPUT_TOKEN_DISTRIBUTION_FIELD_NUMBER; + hash = (53 * hash) + getUserOutputTokenDistribution().hashCode(); + } + if (hasUserMessagePerExampleDistribution()) { + hash = (37 * hash) + USER_MESSAGE_PER_EXAMPLE_DISTRIBUTION_FIELD_NUMBER; + hash = (53 * hash) + getUserMessagePerExampleDistribution().hashCode(); + } + if (getUserDatasetExamplesCount() > 0) { + hash = (37 * hash) + USER_DATASET_EXAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getUserDatasetExamplesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.DatasetStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Statistics computed over a tuning dataset.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DatasetStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DatasetStats) + com.google.cloud.aiplatform.v1beta1.DatasetStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DatasetStats.class, + com.google.cloud.aiplatform.v1beta1.DatasetStats.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DatasetStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUserInputTokenDistributionFieldBuilder(); + getUserOutputTokenDistributionFieldBuilder(); + getUserMessagePerExampleDistributionFieldBuilder(); + getUserDatasetExamplesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tuningDatasetExampleCount_ = 0L; + totalTuningCharacterCount_ = 0L; + totalBillableCharacterCount_ = 0L; + tuningStepCount_ = 0L; + userInputTokenDistribution_ = null; + if (userInputTokenDistributionBuilder_ != null) { + userInputTokenDistributionBuilder_.dispose(); + userInputTokenDistributionBuilder_ = null; + } + userOutputTokenDistribution_ = null; + if (userOutputTokenDistributionBuilder_ != null) { + userOutputTokenDistributionBuilder_.dispose(); + userOutputTokenDistributionBuilder_ = null; + } + userMessagePerExampleDistribution_ = null; + if (userMessagePerExampleDistributionBuilder_ != null) { + userMessagePerExampleDistributionBuilder_.dispose(); + userMessagePerExampleDistributionBuilder_ = null; + } + if (userDatasetExamplesBuilder_ == null) { + userDatasetExamples_ = java.util.Collections.emptyList(); + } else { + userDatasetExamples_ = null; + userDatasetExamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetStats getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetStats build() { + com.google.cloud.aiplatform.v1beta1.DatasetStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetStats buildPartial() { + com.google.cloud.aiplatform.v1beta1.DatasetStats result = + new com.google.cloud.aiplatform.v1beta1.DatasetStats(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.DatasetStats result) { + if (userDatasetExamplesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + userDatasetExamples_ = java.util.Collections.unmodifiableList(userDatasetExamples_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.userDatasetExamples_ = userDatasetExamples_; + } else { + result.userDatasetExamples_ = userDatasetExamplesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DatasetStats result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tuningDatasetExampleCount_ = tuningDatasetExampleCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalTuningCharacterCount_ = totalTuningCharacterCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalBillableCharacterCount_ = totalBillableCharacterCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tuningStepCount_ = tuningStepCount_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.userInputTokenDistribution_ = + userInputTokenDistributionBuilder_ == null + ? userInputTokenDistribution_ + : userInputTokenDistributionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.userOutputTokenDistribution_ = + userOutputTokenDistributionBuilder_ == null + ? userOutputTokenDistribution_ + : userOutputTokenDistributionBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.userMessagePerExampleDistribution_ = + userMessagePerExampleDistributionBuilder_ == null + ? userMessagePerExampleDistribution_ + : userMessagePerExampleDistributionBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.DatasetStats) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DatasetStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DatasetStats other) { + if (other == com.google.cloud.aiplatform.v1beta1.DatasetStats.getDefaultInstance()) + return this; + if (other.getTuningDatasetExampleCount() != 0L) { + setTuningDatasetExampleCount(other.getTuningDatasetExampleCount()); + } + if (other.getTotalTuningCharacterCount() != 0L) { + setTotalTuningCharacterCount(other.getTotalTuningCharacterCount()); + } + if (other.getTotalBillableCharacterCount() != 0L) { + setTotalBillableCharacterCount(other.getTotalBillableCharacterCount()); + } + if (other.getTuningStepCount() != 0L) { + setTuningStepCount(other.getTuningStepCount()); + } + if (other.hasUserInputTokenDistribution()) { + mergeUserInputTokenDistribution(other.getUserInputTokenDistribution()); + } + if (other.hasUserOutputTokenDistribution()) { + mergeUserOutputTokenDistribution(other.getUserOutputTokenDistribution()); + } + if (other.hasUserMessagePerExampleDistribution()) { + mergeUserMessagePerExampleDistribution(other.getUserMessagePerExampleDistribution()); + } + if (userDatasetExamplesBuilder_ == null) { + if (!other.userDatasetExamples_.isEmpty()) { + if (userDatasetExamples_.isEmpty()) { + userDatasetExamples_ = other.userDatasetExamples_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureUserDatasetExamplesIsMutable(); + userDatasetExamples_.addAll(other.userDatasetExamples_); + } + onChanged(); + } + } else { + if (!other.userDatasetExamples_.isEmpty()) { + if (userDatasetExamplesBuilder_.isEmpty()) { + userDatasetExamplesBuilder_.dispose(); + userDatasetExamplesBuilder_ = null; + userDatasetExamples_ = other.userDatasetExamples_; + bitField0_ = (bitField0_ & ~0x00000080); + userDatasetExamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUserDatasetExamplesFieldBuilder() + : null; + } else { + userDatasetExamplesBuilder_.addAllMessages(other.userDatasetExamples_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + tuningDatasetExampleCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + totalTuningCharacterCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + totalBillableCharacterCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + tuningStepCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + getUserInputTokenDistributionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + getUserOutputTokenDistributionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + getUserMessagePerExampleDistributionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.cloud.aiplatform.v1beta1.Content m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Content.parser(), extensionRegistry); + if (userDatasetExamplesBuilder_ == null) { + ensureUserDatasetExamplesIsMutable(); + userDatasetExamples_.add(m); + } else { + userDatasetExamplesBuilder_.addMessage(m); + } + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long tuningDatasetExampleCount_; + /** + * + * + *
+     * Output only. Number of examples in the tuning dataset.
+     * 
+ * + * int64 tuning_dataset_example_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tuningDatasetExampleCount. + */ + @java.lang.Override + public long getTuningDatasetExampleCount() { + return tuningDatasetExampleCount_; + } + /** + * + * + *
+     * Output only. Number of examples in the tuning dataset.
+     * 
+ * + * int64 tuning_dataset_example_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The tuningDatasetExampleCount to set. + * @return This builder for chaining. + */ + public Builder setTuningDatasetExampleCount(long value) { + + tuningDatasetExampleCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Number of examples in the tuning dataset.
+     * 
+ * + * int64 tuning_dataset_example_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTuningDatasetExampleCount() { + bitField0_ = (bitField0_ & ~0x00000001); + tuningDatasetExampleCount_ = 0L; + onChanged(); + return this; + } + + private long totalTuningCharacterCount_; + /** + * + * + *
+     * Output only. Number of tuning characters in the tuning dataset.
+     * 
+ * + * int64 total_tuning_character_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalTuningCharacterCount. + */ + @java.lang.Override + public long getTotalTuningCharacterCount() { + return totalTuningCharacterCount_; + } + /** + * + * + *
+     * Output only. Number of tuning characters in the tuning dataset.
+     * 
+ * + * int64 total_tuning_character_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The totalTuningCharacterCount to set. + * @return This builder for chaining. + */ + public Builder setTotalTuningCharacterCount(long value) { + + totalTuningCharacterCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Number of tuning characters in the tuning dataset.
+     * 
+ * + * int64 total_tuning_character_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTotalTuningCharacterCount() { + bitField0_ = (bitField0_ & ~0x00000002); + totalTuningCharacterCount_ = 0L; + onChanged(); + return this; + } + + private long totalBillableCharacterCount_; + /** + * + * + *
+     * Output only. Number of billable characters in the tuning dataset.
+     * 
+ * + * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalBillableCharacterCount. + */ + @java.lang.Override + public long getTotalBillableCharacterCount() { + return totalBillableCharacterCount_; + } + /** + * + * + *
+     * Output only. Number of billable characters in the tuning dataset.
+     * 
+ * + * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The totalBillableCharacterCount to set. + * @return This builder for chaining. + */ + public Builder setTotalBillableCharacterCount(long value) { + + totalBillableCharacterCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Number of billable characters in the tuning dataset.
+     * 
+ * + * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTotalBillableCharacterCount() { + bitField0_ = (bitField0_ & ~0x00000004); + totalBillableCharacterCount_ = 0L; + onChanged(); + return this; + } + + private long tuningStepCount_; + /** + * + * + *
+     * Output only. Number of tuning steps for this Tuning Job.
+     * 
+ * + * int64 tuning_step_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tuningStepCount. + */ + @java.lang.Override + public long getTuningStepCount() { + return tuningStepCount_; + } + /** + * + * + *
+     * Output only. Number of tuning steps for this Tuning Job.
+     * 
+ * + * int64 tuning_step_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The tuningStepCount to set. + * @return This builder for chaining. + */ + public Builder setTuningStepCount(long value) { + + tuningStepCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Number of tuning steps for this Tuning Job.
+     * 
+ * + * int64 tuning_step_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTuningStepCount() { + bitField0_ = (bitField0_ & ~0x00000008); + tuningStepCount_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.DatasetDistribution userInputTokenDistribution_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder> + userInputTokenDistributionBuilder_; + /** + * + * + *
+     * Output only. Dataset distributions for the user input tokens.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userInputTokenDistribution field is set. + */ + public boolean hasUserInputTokenDistribution() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Output only. Dataset distributions for the user input tokens.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userInputTokenDistribution. + */ + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution getUserInputTokenDistribution() { + if (userInputTokenDistributionBuilder_ == null) { + return userInputTokenDistribution_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance() + : userInputTokenDistribution_; + } else { + return userInputTokenDistributionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Dataset distributions for the user input tokens.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserInputTokenDistribution( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution value) { + if (userInputTokenDistributionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userInputTokenDistribution_ = value; + } else { + userInputTokenDistributionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Dataset distributions for the user input tokens.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserInputTokenDistribution( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder builderForValue) { + if (userInputTokenDistributionBuilder_ == null) { + userInputTokenDistribution_ = builderForValue.build(); + } else { + userInputTokenDistributionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Dataset distributions for the user input tokens.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUserInputTokenDistribution( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution value) { + if (userInputTokenDistributionBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && userInputTokenDistribution_ != null + && userInputTokenDistribution_ + != com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance()) { + getUserInputTokenDistributionBuilder().mergeFrom(value); + } else { + userInputTokenDistribution_ = value; + } + } else { + userInputTokenDistributionBuilder_.mergeFrom(value); + } + if (userInputTokenDistribution_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Dataset distributions for the user input tokens.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUserInputTokenDistribution() { + bitField0_ = (bitField0_ & ~0x00000010); + userInputTokenDistribution_ = null; + if (userInputTokenDistributionBuilder_ != null) { + userInputTokenDistributionBuilder_.dispose(); + userInputTokenDistributionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Dataset distributions for the user input tokens.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder + getUserInputTokenDistributionBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getUserInputTokenDistributionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Dataset distributions for the user input tokens.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder + getUserInputTokenDistributionOrBuilder() { + if (userInputTokenDistributionBuilder_ != null) { + return userInputTokenDistributionBuilder_.getMessageOrBuilder(); + } else { + return userInputTokenDistribution_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance() + : userInputTokenDistribution_; + } + } + /** + * + * + *
+     * Output only. Dataset distributions for the user input tokens.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder> + getUserInputTokenDistributionFieldBuilder() { + if (userInputTokenDistributionBuilder_ == null) { + userInputTokenDistributionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder>( + getUserInputTokenDistribution(), getParentForChildren(), isClean()); + userInputTokenDistribution_ = null; + } + return userInputTokenDistributionBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.DatasetDistribution userOutputTokenDistribution_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder> + userOutputTokenDistributionBuilder_; + /** + * + * + *
+     * Output only. Dataset distributions for the user output tokens.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userOutputTokenDistribution field is set. + */ + public boolean hasUserOutputTokenDistribution() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Output only. Dataset distributions for the user output tokens.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userOutputTokenDistribution. + */ + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution + getUserOutputTokenDistribution() { + if (userOutputTokenDistributionBuilder_ == null) { + return userOutputTokenDistribution_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance() + : userOutputTokenDistribution_; + } else { + return userOutputTokenDistributionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Dataset distributions for the user output tokens.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserOutputTokenDistribution( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution value) { + if (userOutputTokenDistributionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userOutputTokenDistribution_ = value; + } else { + userOutputTokenDistributionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Dataset distributions for the user output tokens.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserOutputTokenDistribution( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder builderForValue) { + if (userOutputTokenDistributionBuilder_ == null) { + userOutputTokenDistribution_ = builderForValue.build(); + } else { + userOutputTokenDistributionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Dataset distributions for the user output tokens.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUserOutputTokenDistribution( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution value) { + if (userOutputTokenDistributionBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && userOutputTokenDistribution_ != null + && userOutputTokenDistribution_ + != com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance()) { + getUserOutputTokenDistributionBuilder().mergeFrom(value); + } else { + userOutputTokenDistribution_ = value; + } + } else { + userOutputTokenDistributionBuilder_.mergeFrom(value); + } + if (userOutputTokenDistribution_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Dataset distributions for the user output tokens.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUserOutputTokenDistribution() { + bitField0_ = (bitField0_ & ~0x00000020); + userOutputTokenDistribution_ = null; + if (userOutputTokenDistributionBuilder_ != null) { + userOutputTokenDistributionBuilder_.dispose(); + userOutputTokenDistributionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Dataset distributions for the user output tokens.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder + getUserOutputTokenDistributionBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getUserOutputTokenDistributionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Dataset distributions for the user output tokens.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder + getUserOutputTokenDistributionOrBuilder() { + if (userOutputTokenDistributionBuilder_ != null) { + return userOutputTokenDistributionBuilder_.getMessageOrBuilder(); + } else { + return userOutputTokenDistribution_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance() + : userOutputTokenDistribution_; + } + } + /** + * + * + *
+     * Output only. Dataset distributions for the user output tokens.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder> + getUserOutputTokenDistributionFieldBuilder() { + if (userOutputTokenDistributionBuilder_ == null) { + userOutputTokenDistributionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder>( + getUserOutputTokenDistribution(), getParentForChildren(), isClean()); + userOutputTokenDistribution_ = null; + } + return userOutputTokenDistributionBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.DatasetDistribution + userMessagePerExampleDistribution_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder> + userMessagePerExampleDistributionBuilder_; + /** + * + * + *
+     * Output only. Dataset distributions for the messages per example.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userMessagePerExampleDistribution field is set. + */ + public boolean hasUserMessagePerExampleDistribution() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Output only. Dataset distributions for the messages per example.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userMessagePerExampleDistribution. + */ + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution + getUserMessagePerExampleDistribution() { + if (userMessagePerExampleDistributionBuilder_ == null) { + return userMessagePerExampleDistribution_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance() + : userMessagePerExampleDistribution_; + } else { + return userMessagePerExampleDistributionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Dataset distributions for the messages per example.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserMessagePerExampleDistribution( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution value) { + if (userMessagePerExampleDistributionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userMessagePerExampleDistribution_ = value; + } else { + userMessagePerExampleDistributionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Dataset distributions for the messages per example.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserMessagePerExampleDistribution( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder builderForValue) { + if (userMessagePerExampleDistributionBuilder_ == null) { + userMessagePerExampleDistribution_ = builderForValue.build(); + } else { + userMessagePerExampleDistributionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Dataset distributions for the messages per example.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUserMessagePerExampleDistribution( + com.google.cloud.aiplatform.v1beta1.DatasetDistribution value) { + if (userMessagePerExampleDistributionBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && userMessagePerExampleDistribution_ != null + && userMessagePerExampleDistribution_ + != com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance()) { + getUserMessagePerExampleDistributionBuilder().mergeFrom(value); + } else { + userMessagePerExampleDistribution_ = value; + } + } else { + userMessagePerExampleDistributionBuilder_.mergeFrom(value); + } + if (userMessagePerExampleDistribution_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Dataset distributions for the messages per example.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUserMessagePerExampleDistribution() { + bitField0_ = (bitField0_ & ~0x00000040); + userMessagePerExampleDistribution_ = null; + if (userMessagePerExampleDistributionBuilder_ != null) { + userMessagePerExampleDistributionBuilder_.dispose(); + userMessagePerExampleDistributionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Dataset distributions for the messages per example.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder + getUserMessagePerExampleDistributionBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getUserMessagePerExampleDistributionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Dataset distributions for the messages per example.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder + getUserMessagePerExampleDistributionOrBuilder() { + if (userMessagePerExampleDistributionBuilder_ != null) { + return userMessagePerExampleDistributionBuilder_.getMessageOrBuilder(); + } else { + return userMessagePerExampleDistribution_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetDistribution.getDefaultInstance() + : userMessagePerExampleDistribution_; + } + } + /** + * + * + *
+     * Output only. Dataset distributions for the messages per example.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder> + getUserMessagePerExampleDistributionFieldBuilder() { + if (userMessagePerExampleDistributionBuilder_ == null) { + userMessagePerExampleDistributionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetDistribution, + com.google.cloud.aiplatform.v1beta1.DatasetDistribution.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder>( + getUserMessagePerExampleDistribution(), getParentForChildren(), isClean()); + userMessagePerExampleDistribution_ = null; + } + return userMessagePerExampleDistributionBuilder_; + } + + private java.util.List userDatasetExamples_ = + java.util.Collections.emptyList(); + + private void ensureUserDatasetExamplesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + userDatasetExamples_ = + new java.util.ArrayList( + userDatasetExamples_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + userDatasetExamplesBuilder_; + + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getUserDatasetExamplesList() { + if (userDatasetExamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(userDatasetExamples_); + } else { + return userDatasetExamplesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getUserDatasetExamplesCount() { + if (userDatasetExamplesBuilder_ == null) { + return userDatasetExamples_.size(); + } else { + return userDatasetExamplesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content getUserDatasetExamples(int index) { + if (userDatasetExamplesBuilder_ == null) { + return userDatasetExamples_.get(index); + } else { + return userDatasetExamplesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserDatasetExamples( + int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (userDatasetExamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserDatasetExamplesIsMutable(); + userDatasetExamples_.set(index, value); + onChanged(); + } else { + userDatasetExamplesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserDatasetExamples( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (userDatasetExamplesBuilder_ == null) { + ensureUserDatasetExamplesIsMutable(); + userDatasetExamples_.set(index, builderForValue.build()); + onChanged(); + } else { + userDatasetExamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addUserDatasetExamples(com.google.cloud.aiplatform.v1beta1.Content value) { + if (userDatasetExamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserDatasetExamplesIsMutable(); + userDatasetExamples_.add(value); + onChanged(); + } else { + userDatasetExamplesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addUserDatasetExamples( + int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (userDatasetExamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserDatasetExamplesIsMutable(); + userDatasetExamples_.add(index, value); + onChanged(); + } else { + userDatasetExamplesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addUserDatasetExamples( + com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (userDatasetExamplesBuilder_ == null) { + ensureUserDatasetExamplesIsMutable(); + userDatasetExamples_.add(builderForValue.build()); + onChanged(); + } else { + userDatasetExamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addUserDatasetExamples( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (userDatasetExamplesBuilder_ == null) { + ensureUserDatasetExamplesIsMutable(); + userDatasetExamples_.add(index, builderForValue.build()); + onChanged(); + } else { + userDatasetExamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllUserDatasetExamples( + java.lang.Iterable values) { + if (userDatasetExamplesBuilder_ == null) { + ensureUserDatasetExamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userDatasetExamples_); + onChanged(); + } else { + userDatasetExamplesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUserDatasetExamples() { + if (userDatasetExamplesBuilder_ == null) { + userDatasetExamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + userDatasetExamplesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeUserDatasetExamples(int index) { + if (userDatasetExamplesBuilder_ == null) { + ensureUserDatasetExamplesIsMutable(); + userDatasetExamples_.remove(index); + onChanged(); + } else { + userDatasetExamplesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getUserDatasetExamplesBuilder( + int index) { + return getUserDatasetExamplesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getUserDatasetExamplesOrBuilder( + int index) { + if (userDatasetExamplesBuilder_ == null) { + return userDatasetExamples_.get(index); + } else { + return userDatasetExamplesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getUserDatasetExamplesOrBuilderList() { + if (userDatasetExamplesBuilder_ != null) { + return userDatasetExamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(userDatasetExamples_); + } + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addUserDatasetExamplesBuilder() { + return getUserDatasetExamplesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addUserDatasetExamplesBuilder( + int index) { + return getUserDatasetExamplesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Sample user messages in the training dataset uri.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getUserDatasetExamplesBuilderList() { + return getUserDatasetExamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + getUserDatasetExamplesFieldBuilder() { + if (userDatasetExamplesBuilder_ == null) { + userDatasetExamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + userDatasetExamples_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + userDatasetExamples_ = null; + } + return userDatasetExamplesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DatasetStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DatasetStats) + private static final com.google.cloud.aiplatform.v1beta1.DatasetStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DatasetStats(); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetStatsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetStatsOrBuilder.java new file mode 100644 index 000000000000..408dce052d62 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetStatsOrBuilder.java @@ -0,0 +1,269 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tuning_job.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface DatasetStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DatasetStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Number of examples in the tuning dataset.
+   * 
+ * + * int64 tuning_dataset_example_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tuningDatasetExampleCount. + */ + long getTuningDatasetExampleCount(); + + /** + * + * + *
+   * Output only. Number of tuning characters in the tuning dataset.
+   * 
+ * + * int64 total_tuning_character_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalTuningCharacterCount. + */ + long getTotalTuningCharacterCount(); + + /** + * + * + *
+   * Output only. Number of billable characters in the tuning dataset.
+   * 
+ * + * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalBillableCharacterCount. + */ + long getTotalBillableCharacterCount(); + + /** + * + * + *
+   * Output only. Number of tuning steps for this Tuning Job.
+   * 
+ * + * int64 tuning_step_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tuningStepCount. + */ + long getTuningStepCount(); + + /** + * + * + *
+   * Output only. Dataset distributions for the user input tokens.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userInputTokenDistribution field is set. + */ + boolean hasUserInputTokenDistribution(); + /** + * + * + *
+   * Output only. Dataset distributions for the user input tokens.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userInputTokenDistribution. + */ + com.google.cloud.aiplatform.v1beta1.DatasetDistribution getUserInputTokenDistribution(); + /** + * + * + *
+   * Output only. Dataset distributions for the user input tokens.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_input_token_distribution = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder + getUserInputTokenDistributionOrBuilder(); + + /** + * + * + *
+   * Output only. Dataset distributions for the user output tokens.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userOutputTokenDistribution field is set. + */ + boolean hasUserOutputTokenDistribution(); + /** + * + * + *
+   * Output only. Dataset distributions for the user output tokens.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userOutputTokenDistribution. + */ + com.google.cloud.aiplatform.v1beta1.DatasetDistribution getUserOutputTokenDistribution(); + /** + * + * + *
+   * Output only. Dataset distributions for the user output tokens.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.DatasetDistribution user_output_token_distribution = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder + getUserOutputTokenDistributionOrBuilder(); + + /** + * + * + *
+   * Output only. Dataset distributions for the messages per example.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userMessagePerExampleDistribution field is set. + */ + boolean hasUserMessagePerExampleDistribution(); + /** + * + * + *
+   * Output only. Dataset distributions for the messages per example.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userMessagePerExampleDistribution. + */ + com.google.cloud.aiplatform.v1beta1.DatasetDistribution getUserMessagePerExampleDistribution(); + /** + * + * + *
+   * Output only. Dataset distributions for the messages per example.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetDistribution user_message_per_example_distribution = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.DatasetDistributionOrBuilder + getUserMessagePerExampleDistributionOrBuilder(); + + /** + * + * + *
+   * Output only. Sample user messages in the training dataset uri.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getUserDatasetExamplesList(); + /** + * + * + *
+   * Output only. Sample user messages in the training dataset uri.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.Content getUserDatasetExamples(int index); + /** + * + * + *
+   * Output only. Sample user messages in the training dataset uri.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getUserDatasetExamplesCount(); + /** + * + * + *
+   * Output only. Sample user messages in the training dataset uri.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getUserDatasetExamplesOrBuilderList(); + /** + * + * + *
+   * Output only. Sample user messages in the training dataset uri.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content user_dataset_examples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getUserDatasetExamplesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java index 1f8dc732dcc7..ac7f51d5693f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java @@ -76,10 +76,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. The resource name of the DatasetVersion.
+   * Output only. Identifier. The resource name of the DatasetVersion.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -99,10 +101,12 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name of the DatasetVersion.
+   * Output only. Identifier. The resource name of the DatasetVersion.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -481,6 +485,42 @@ public com.google.protobuf.ByteString getModelReferenceBytes() { } } + public static final int SATISFIES_PZS_FIELD_NUMBER = 10; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 11; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -519,6 +559,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelReference_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, modelReference_); } + if (satisfiesPzs_ != false) { + output.writeBool(10, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + output.writeBool(11, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -552,6 +598,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelReference_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, modelReference_); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -585,6 +637,8 @@ public boolean equals(final java.lang.Object obj) { if (!getMetadata().equals(other.getMetadata())) return false; } if (!getModelReference().equals(other.getModelReference())) return false; + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -618,6 +672,10 @@ public int hashCode() { } hash = (37 * hash) + MODEL_REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getModelReference().hashCode(); + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -788,6 +846,8 @@ public Builder clear() { metadataBuilder_ = null; } modelReference_ = ""; + satisfiesPzs_ = false; + satisfiesPzi_ = false; return this; } @@ -852,6 +912,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DatasetVersion re if (((from_bitField0_ & 0x00000080) != 0)) { result.modelReference_ = modelReference_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } result.bitField0_ |= to_bitField0_; } @@ -935,6 +1001,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DatasetVersion othe bitField0_ |= 0x00000080; onChanged(); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1009,6 +1081,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 74 + case 80: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 80 + case 88: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 88 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1033,10 +1117,12 @@ public Builder mergeFrom( * * *
-     * Output only. The resource name of the DatasetVersion.
+     * Output only. Identifier. The resource name of the DatasetVersion.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -1055,10 +1141,12 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name of the DatasetVersion.
+     * Output only. Identifier. The resource name of the DatasetVersion.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -1077,10 +1165,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name of the DatasetVersion.
+     * Output only. Identifier. The resource name of the DatasetVersion.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The name to set. * @return This builder for chaining. @@ -1098,10 +1188,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name of the DatasetVersion.
+     * Output only. Identifier. The resource name of the DatasetVersion.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return This builder for chaining. */ @@ -1115,10 +1207,12 @@ public Builder clearName() { * * *
-     * Output only. The resource name of the DatasetVersion.
+     * Output only. Identifier. The resource name of the DatasetVersion.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The bytes for name to set. * @return This builder for chaining. @@ -2183,6 +2277,112 @@ public Builder setModelReferenceBytes(com.google.protobuf.ByteString value) { return this; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00000100); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00000200); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java index 1effa989e89a..b03ea07eba9c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java @@ -28,10 +28,12 @@ public interface DatasetVersionOrBuilder * * *
-   * Output only. The resource name of the DatasetVersion.
+   * Output only. Identifier. The resource name of the DatasetVersion.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -40,10 +42,12 @@ public interface DatasetVersionOrBuilder * * *
-   * Output only. The resource name of the DatasetVersion.
+   * Output only. Identifier. The resource name of the DatasetVersion.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -273,4 +277,30 @@ public interface DatasetVersionOrBuilder * @return The bytes for modelReference. */ com.google.protobuf.ByteString getModelReferenceBytes(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java index ee98b6d8fdf3..e4ac3421dbef 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java @@ -46,24 +46,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v1beta1\032\037google/api/field_behavior.prot" + "o\032\031google/api/resource.proto\032\034google/pro" + "tobuf/struct.proto\032\037google/protobuf/time" - + "stamp.proto\"\267\003\n\016DatasetVersion\022\021\n\004name\030\001" - + " \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\006" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" - + "\004etag\030\003 \001(\t\022#\n\026big_query_dataset_name\030\004 " - + "\001(\tB\003\340A\003\022\024\n\014display_name\030\007 \001(\t\0220\n\010metada" - + "ta\030\010 \001(\0132\026.google.protobuf.ValueB\006\340A\003\340A\002" - + "\022\034\n\017model_reference\030\t \001(\tB\003\340A\003:\214\001\352A\210\001\n(a" - + "iplatform.googleapis.com/DatasetVersion\022" - + "\\projects/{project}/locations/{location}" - + "/datasets/{dataset}/datasetVersions/{dat" - + "aset_version}B\352\001\n#com.google.cloud.aipla" - + "tform.v1beta1B\023DatasetVersionProtoP\001ZCcl" - + "oud.google.com/go/aiplatform/apiv1beta1/" - + "aiplatformpb;aiplatformpb\252\002\037Google.Cloud" - + ".AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPla" - + "tform\\V1beta1\352\002\"Google::Cloud::AIPlatfor" - + "m::V1beta1b\006proto3" + + "stamp.proto\"\362\003\n\016DatasetVersion\022\024\n\004name\030\001" + + " \001(\tB\006\340A\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" + + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022\014\n\004etag\030\003 \001(\t\022#\n\026big_query_dataset_name" + + "\030\004 \001(\tB\003\340A\003\022\024\n\014display_name\030\007 \001(\t\0220\n\010met" + + "adata\030\010 \001(\0132\026.google.protobuf.ValueB\006\340A\003" + + "\340A\002\022\034\n\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\rsat" + + "isfies_pzs\030\n \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\013" + + " \001(\010B\003\340A\003:\214\001\352A\210\001\n(aiplatform.googleapis." + + "com/DatasetVersion\022\\projects/{project}/l" + + "ocations/{location}/datasets/{dataset}/d" + + "atasetVersions/{dataset_version}B\352\001\n#com" + + ".google.cloud.aiplatform.v1beta1B\023Datase" + + "tVersionProtoP\001ZCcloud.google.com/go/aip" + + "latform/apiv1beta1/aiplatformpb;aiplatfo" + + "rmpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" + + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" + + "e::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -88,6 +89,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Metadata", "ModelReference", + "SatisfiesPzs", + "SatisfiesPzi", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java index 233a4da1d9e7..71046b11fb44 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java @@ -373,6 +373,42 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } + public static final int SATISFIES_PZS_FIELD_NUMBER = 8; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 9; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -405,6 +441,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disableContainerLogging_ != false) { output.writeBool(7, disableContainerLogging_); } + if (satisfiesPzs_ != false) { + output.writeBool(8, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + output.writeBool(9, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -432,6 +474,12 @@ public int getSerializedSize() { if (disableContainerLogging_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, disableContainerLogging_); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -463,6 +511,8 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -492,6 +542,10 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -662,6 +716,8 @@ public Builder clear() { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } + satisfiesPzs_ = false; + satisfiesPzi_ = false; return this; } @@ -724,6 +780,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeploymentResourc result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } result.bitField0_ |= to_bitField0_; } @@ -795,6 +857,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeploymentResourceP if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -858,6 +926,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 56 + case 64: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1827,6 +1907,112 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00000040); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00000080); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolOrBuilder.java index 64f6677207b8..98ba84829ccc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolOrBuilder.java @@ -231,4 +231,30 @@ public interface DeploymentResourcePoolOrBuilder *
*/ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolProto.java index 2c10bf8a0e98..212789eaebff 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolProto.java @@ -48,7 +48,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/cloud/aiplatform/v1beta1/encryptio" + "n_spec.proto\0327google/cloud/aiplatform/v1" + "beta1/machine_resources.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\323\003\n\026DeploymentRes" + + "otobuf/timestamp.proto\"\213\004\n\026DeploymentRes" + "ourcePool\022\021\n\004name\030\001 \001(\tB\003\340A\005\022U\n\023dedicate" + "d_resources\030\002 \001(\01323.google.cloud.aiplatf" + "orm.v1beta1.DedicatedResourcesB\003\340A\002\022H\n\017e" @@ -56,17 +56,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "atform.v1beta1.EncryptionSpec\022\027\n\017service" + "_account\030\006 \001(\t\022!\n\031disable_container_logg" + "ing\030\007 \001(\010\0224\n\013create_time\030\004 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003:\222\001\352A\216\001\n0aiplatfo" - + "rm.googleapis.com/DeploymentResourcePool" - + "\022Zprojects/{project}/locations/{location" - + "}/deploymentResourcePools/{deployment_re" - + "source_pool}B\362\001\n#com.google.cloud.aiplat" - + "form.v1beta1B\033DeploymentResourcePoolProt" - + "oP\001ZCcloud.google.com/go/aiplatform/apiv" - + "1beta1/aiplatformpb;aiplatformpb\252\002\037Googl" - + "e.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clou" - + "d\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AI" - + "Platform::V1beta1b\006proto3" + + "protobuf.TimestampB\003\340A\003\022\032\n\rsatisfies_pzs" + + "\030\010 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\t \001(\010B\003\340A\003:" + + "\222\001\352A\216\001\n0aiplatform.googleapis.com/Deploy" + + "mentResourcePool\022Zprojects/{project}/loc" + + "ations/{location}/deploymentResourcePool" + + "s/{deployment_resource_pool}B\362\001\n#com.goo" + + "gle.cloud.aiplatform.v1beta1B\033Deployment" + + "ResourcePoolProtoP\001ZCcloud.google.com/go" + + "/aiplatform/apiv1beta1/aiplatformpb;aipl" + + "atformpb\252\002\037Google.Cloud.AIPlatform.V1Bet" + + "a1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"G" + + "oogle::Cloud::AIPlatform::V1beta1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -90,6 +92,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccount", "DisableContainerLogging", "CreateTime", + "SatisfiesPzs", + "SatisfiesPzi", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationDataStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationDataStats.java new file mode 100644 index 000000000000..6c830b4cc388 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationDataStats.java @@ -0,0 +1,757 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tuning_job.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Statistics computed for datasets used for distillation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DistillationDataStats} + */ +public final class DistillationDataStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DistillationDataStats) + DistillationDataStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistillationDataStats.newBuilder() to construct. + private DistillationDataStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DistillationDataStats() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DistillationDataStats(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationDataStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationDataStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DistillationDataStats.class, + com.google.cloud.aiplatform.v1beta1.DistillationDataStats.Builder.class); + } + + private int bitField0_; + public static final int TRAINING_DATASET_STATS_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.DatasetStats trainingDatasetStats_; + /** + * + * + *
+   * Output only. Statistics computed for the training dataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trainingDatasetStats field is set. + */ + @java.lang.Override + public boolean hasTrainingDatasetStats() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Statistics computed for the training dataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trainingDatasetStats. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetStats getTrainingDatasetStats() { + return trainingDatasetStats_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetStats.getDefaultInstance() + : trainingDatasetStats_; + } + /** + * + * + *
+   * Output only. Statistics computed for the training dataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetStatsOrBuilder + getTrainingDatasetStatsOrBuilder() { + return trainingDatasetStats_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetStats.getDefaultInstance() + : trainingDatasetStats_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTrainingDatasetStats()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTrainingDatasetStats()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DistillationDataStats)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DistillationDataStats other = + (com.google.cloud.aiplatform.v1beta1.DistillationDataStats) obj; + + if (hasTrainingDatasetStats() != other.hasTrainingDatasetStats()) return false; + if (hasTrainingDatasetStats()) { + if (!getTrainingDatasetStats().equals(other.getTrainingDatasetStats())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTrainingDatasetStats()) { + hash = (37 * hash) + TRAINING_DATASET_STATS_FIELD_NUMBER; + hash = (53 * hash) + getTrainingDatasetStats().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationDataStats parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationDataStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationDataStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationDataStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationDataStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationDataStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationDataStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationDataStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationDataStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationDataStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationDataStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationDataStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.DistillationDataStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Statistics computed for datasets used for distillation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DistillationDataStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DistillationDataStats) + com.google.cloud.aiplatform.v1beta1.DistillationDataStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationDataStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationDataStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DistillationDataStats.class, + com.google.cloud.aiplatform.v1beta1.DistillationDataStats.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DistillationDataStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTrainingDatasetStatsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + trainingDatasetStats_ = null; + if (trainingDatasetStatsBuilder_ != null) { + trainingDatasetStatsBuilder_.dispose(); + trainingDatasetStatsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationDataStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationDataStats getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DistillationDataStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationDataStats build() { + com.google.cloud.aiplatform.v1beta1.DistillationDataStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationDataStats buildPartial() { + com.google.cloud.aiplatform.v1beta1.DistillationDataStats result = + new com.google.cloud.aiplatform.v1beta1.DistillationDataStats(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DistillationDataStats result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainingDatasetStats_ = + trainingDatasetStatsBuilder_ == null + ? trainingDatasetStats_ + : trainingDatasetStatsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.DistillationDataStats) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DistillationDataStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DistillationDataStats other) { + if (other == com.google.cloud.aiplatform.v1beta1.DistillationDataStats.getDefaultInstance()) + return this; + if (other.hasTrainingDatasetStats()) { + mergeTrainingDatasetStats(other.getTrainingDatasetStats()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getTrainingDatasetStatsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.DatasetStats trainingDatasetStats_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetStats, + com.google.cloud.aiplatform.v1beta1.DatasetStats.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetStatsOrBuilder> + trainingDatasetStatsBuilder_; + /** + * + * + *
+     * Output only. Statistics computed for the training dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trainingDatasetStats field is set. + */ + public boolean hasTrainingDatasetStats() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. Statistics computed for the training dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trainingDatasetStats. + */ + public com.google.cloud.aiplatform.v1beta1.DatasetStats getTrainingDatasetStats() { + if (trainingDatasetStatsBuilder_ == null) { + return trainingDatasetStats_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetStats.getDefaultInstance() + : trainingDatasetStats_; + } else { + return trainingDatasetStatsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Statistics computed for the training dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrainingDatasetStats(com.google.cloud.aiplatform.v1beta1.DatasetStats value) { + if (trainingDatasetStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingDatasetStats_ = value; + } else { + trainingDatasetStatsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Statistics computed for the training dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrainingDatasetStats( + com.google.cloud.aiplatform.v1beta1.DatasetStats.Builder builderForValue) { + if (trainingDatasetStatsBuilder_ == null) { + trainingDatasetStats_ = builderForValue.build(); + } else { + trainingDatasetStatsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Statistics computed for the training dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTrainingDatasetStats( + com.google.cloud.aiplatform.v1beta1.DatasetStats value) { + if (trainingDatasetStatsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && trainingDatasetStats_ != null + && trainingDatasetStats_ + != com.google.cloud.aiplatform.v1beta1.DatasetStats.getDefaultInstance()) { + getTrainingDatasetStatsBuilder().mergeFrom(value); + } else { + trainingDatasetStats_ = value; + } + } else { + trainingDatasetStatsBuilder_.mergeFrom(value); + } + if (trainingDatasetStats_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Statistics computed for the training dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTrainingDatasetStats() { + bitField0_ = (bitField0_ & ~0x00000001); + trainingDatasetStats_ = null; + if (trainingDatasetStatsBuilder_ != null) { + trainingDatasetStatsBuilder_.dispose(); + trainingDatasetStatsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Statistics computed for the training dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetStats.Builder + getTrainingDatasetStatsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTrainingDatasetStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Statistics computed for the training dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetStatsOrBuilder + getTrainingDatasetStatsOrBuilder() { + if (trainingDatasetStatsBuilder_ != null) { + return trainingDatasetStatsBuilder_.getMessageOrBuilder(); + } else { + return trainingDatasetStats_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetStats.getDefaultInstance() + : trainingDatasetStats_; + } + } + /** + * + * + *
+     * Output only. Statistics computed for the training dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetStats, + com.google.cloud.aiplatform.v1beta1.DatasetStats.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetStatsOrBuilder> + getTrainingDatasetStatsFieldBuilder() { + if (trainingDatasetStatsBuilder_ == null) { + trainingDatasetStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetStats, + com.google.cloud.aiplatform.v1beta1.DatasetStats.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetStatsOrBuilder>( + getTrainingDatasetStats(), getParentForChildren(), isClean()); + trainingDatasetStats_ = null; + } + return trainingDatasetStatsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DistillationDataStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DistillationDataStats) + private static final com.google.cloud.aiplatform.v1beta1.DistillationDataStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DistillationDataStats(); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationDataStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistillationDataStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationDataStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationDataStatsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationDataStatsOrBuilder.java new file mode 100644 index 000000000000..73b8013558e9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationDataStatsOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tuning_job.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface DistillationDataStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DistillationDataStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Statistics computed for the training dataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trainingDatasetStats field is set. + */ + boolean hasTrainingDatasetStats(); + /** + * + * + *
+   * Output only. Statistics computed for the training dataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trainingDatasetStats. + */ + com.google.cloud.aiplatform.v1beta1.DatasetStats getTrainingDatasetStats(); + /** + * + * + *
+   * Output only. Statistics computed for the training dataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetStats training_dataset_stats = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.DatasetStatsOrBuilder getTrainingDatasetStatsOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationHyperParameters.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationHyperParameters.java new file mode 100644 index 000000000000..26065e905317 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationHyperParameters.java @@ -0,0 +1,905 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tuning_job.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Hyperparameters for Distillation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DistillationHyperParameters} + */ +public final class DistillationHyperParameters extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DistillationHyperParameters) + DistillationHyperParametersOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistillationHyperParameters.newBuilder() to construct. + private DistillationHyperParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DistillationHyperParameters() { + adapterSize_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DistillationHyperParameters(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationHyperParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationHyperParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.class, + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.Builder.class); + } + + private int bitField0_; + public static final int EPOCH_COUNT_FIELD_NUMBER = 1; + private long epochCount_ = 0L; + /** + * + * + *
+   * Optional. Number of complete passes the model makes over the entire
+   * training dataset during training.
+   * 
+ * + * optional int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the epochCount field is set. + */ + @java.lang.Override + public boolean hasEpochCount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Number of complete passes the model makes over the entire
+   * training dataset during training.
+   * 
+ * + * optional int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The epochCount. + */ + @java.lang.Override + public long getEpochCount() { + return epochCount_; + } + + public static final int LEARNING_RATE_MULTIPLIER_FIELD_NUMBER = 2; + private double learningRateMultiplier_ = 0D; + /** + * + * + *
+   * Optional. Multiplier for adjusting the default learning rate.
+   * 
+ * + * optional double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the learningRateMultiplier field is set. + */ + @java.lang.Override + public boolean hasLearningRateMultiplier() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Multiplier for adjusting the default learning rate.
+   * 
+ * + * optional double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The learningRateMultiplier. + */ + @java.lang.Override + public double getLearningRateMultiplier() { + return learningRateMultiplier_; + } + + public static final int ADAPTER_SIZE_FIELD_NUMBER = 3; + private int adapterSize_ = 0; + /** + * + * + *
+   * Optional. Adapter size for distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize adapter_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for adapterSize. + */ + @java.lang.Override + public int getAdapterSizeValue() { + return adapterSize_; + } + /** + * + * + *
+   * Optional. Adapter size for distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize adapter_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The adapterSize. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize + getAdapterSize() { + com.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize result = + com.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize.forNumber( + adapterSize_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(1, epochCount_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(2, learningRateMultiplier_); + } + if (adapterSize_ + != com.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize + .ADAPTER_SIZE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, adapterSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, epochCount_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, learningRateMultiplier_); + } + if (adapterSize_ + != com.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize + .ADAPTER_SIZE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, adapterSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters other = + (com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters) obj; + + if (hasEpochCount() != other.hasEpochCount()) return false; + if (hasEpochCount()) { + if (getEpochCount() != other.getEpochCount()) return false; + } + if (hasLearningRateMultiplier() != other.hasLearningRateMultiplier()) return false; + if (hasLearningRateMultiplier()) { + if (java.lang.Double.doubleToLongBits(getLearningRateMultiplier()) + != java.lang.Double.doubleToLongBits(other.getLearningRateMultiplier())) return false; + } + if (adapterSize_ != other.adapterSize_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEpochCount()) { + hash = (37 * hash) + EPOCH_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEpochCount()); + } + if (hasLearningRateMultiplier()) { + hash = (37 * hash) + LEARNING_RATE_MULTIPLIER_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLearningRateMultiplier())); + } + hash = (37 * hash) + ADAPTER_SIZE_FIELD_NUMBER; + hash = (53 * hash) + adapterSize_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Hyperparameters for Distillation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DistillationHyperParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DistillationHyperParameters) + com.google.cloud.aiplatform.v1beta1.DistillationHyperParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationHyperParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationHyperParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.class, + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + epochCount_ = 0L; + learningRateMultiplier_ = 0D; + adapterSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationHyperParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters build() { + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters buildPartial() { + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters result = + new com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.epochCount_ = epochCount_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.learningRateMultiplier_ = learningRateMultiplier_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.adapterSize_ = adapterSize_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.getDefaultInstance()) + return this; + if (other.hasEpochCount()) { + setEpochCount(other.getEpochCount()); + } + if (other.hasLearningRateMultiplier()) { + setLearningRateMultiplier(other.getLearningRateMultiplier()); + } + if (other.adapterSize_ != 0) { + setAdapterSizeValue(other.getAdapterSizeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + epochCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 17: + { + learningRateMultiplier_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 24: + { + adapterSize_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long epochCount_; + /** + * + * + *
+     * Optional. Number of complete passes the model makes over the entire
+     * training dataset during training.
+     * 
+ * + * optional int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the epochCount field is set. + */ + @java.lang.Override + public boolean hasEpochCount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. Number of complete passes the model makes over the entire
+     * training dataset during training.
+     * 
+ * + * optional int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The epochCount. + */ + @java.lang.Override + public long getEpochCount() { + return epochCount_; + } + /** + * + * + *
+     * Optional. Number of complete passes the model makes over the entire
+     * training dataset during training.
+     * 
+ * + * optional int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The epochCount to set. + * @return This builder for chaining. + */ + public Builder setEpochCount(long value) { + + epochCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Number of complete passes the model makes over the entire
+     * training dataset during training.
+     * 
+ * + * optional int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEpochCount() { + bitField0_ = (bitField0_ & ~0x00000001); + epochCount_ = 0L; + onChanged(); + return this; + } + + private double learningRateMultiplier_; + /** + * + * + *
+     * Optional. Multiplier for adjusting the default learning rate.
+     * 
+ * + * optional double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the learningRateMultiplier field is set. + */ + @java.lang.Override + public boolean hasLearningRateMultiplier() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Multiplier for adjusting the default learning rate.
+     * 
+ * + * optional double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The learningRateMultiplier. + */ + @java.lang.Override + public double getLearningRateMultiplier() { + return learningRateMultiplier_; + } + /** + * + * + *
+     * Optional. Multiplier for adjusting the default learning rate.
+     * 
+ * + * optional double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The learningRateMultiplier to set. + * @return This builder for chaining. + */ + public Builder setLearningRateMultiplier(double value) { + + learningRateMultiplier_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Multiplier for adjusting the default learning rate.
+     * 
+ * + * optional double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearLearningRateMultiplier() { + bitField0_ = (bitField0_ & ~0x00000002); + learningRateMultiplier_ = 0D; + onChanged(); + return this; + } + + private int adapterSize_ = 0; + /** + * + * + *
+     * Optional. Adapter size for distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize adapter_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for adapterSize. + */ + @java.lang.Override + public int getAdapterSizeValue() { + return adapterSize_; + } + /** + * + * + *
+     * Optional. Adapter size for distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize adapter_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for adapterSize to set. + * @return This builder for chaining. + */ + public Builder setAdapterSizeValue(int value) { + adapterSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Adapter size for distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize adapter_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The adapterSize. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize + getAdapterSize() { + com.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize result = + com.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize.forNumber( + adapterSize_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Adapter size for distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize adapter_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The adapterSize to set. + * @return This builder for chaining. + */ + public Builder setAdapterSize( + com.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + adapterSize_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Adapter size for distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize adapter_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdapterSize() { + bitField0_ = (bitField0_ & ~0x00000004); + adapterSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DistillationHyperParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DistillationHyperParameters) + private static final com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters(); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistillationHyperParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationHyperParametersOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationHyperParametersOrBuilder.java new file mode 100644 index 000000000000..78736f698cd7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationHyperParametersOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tuning_job.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface DistillationHyperParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DistillationHyperParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Number of complete passes the model makes over the entire
+   * training dataset during training.
+   * 
+ * + * optional int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the epochCount field is set. + */ + boolean hasEpochCount(); + /** + * + * + *
+   * Optional. Number of complete passes the model makes over the entire
+   * training dataset during training.
+   * 
+ * + * optional int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The epochCount. + */ + long getEpochCount(); + + /** + * + * + *
+   * Optional. Multiplier for adjusting the default learning rate.
+   * 
+ * + * optional double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the learningRateMultiplier field is set. + */ + boolean hasLearningRateMultiplier(); + /** + * + * + *
+   * Optional. Multiplier for adjusting the default learning rate.
+   * 
+ * + * optional double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The learningRateMultiplier. + */ + double getLearningRateMultiplier(); + + /** + * + * + *
+   * Optional. Adapter size for distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize adapter_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for adapterSize. + */ + int getAdapterSizeValue(); + /** + * + * + *
+   * Optional. Adapter size for distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize adapter_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The adapterSize. + */ + com.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSize getAdapterSize(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationSpec.java new file mode 100644 index 000000000000..4f1e046b47e6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationSpec.java @@ -0,0 +1,2129 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tuning_job.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Tuning Spec for Distillation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DistillationSpec} + */ +public final class DistillationSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DistillationSpec) + DistillationSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistillationSpec.newBuilder() to construct. + private DistillationSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DistillationSpec() { + trainingDatasetUri_ = ""; + validationDatasetUri_ = ""; + studentModel_ = ""; + pipelineRootDirectory_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DistillationSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DistillationSpec.class, + com.google.cloud.aiplatform.v1beta1.DistillationSpec.Builder.class); + } + + private int bitField0_; + private int teacherModelCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object teacherModel_; + + public enum TeacherModelCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BASE_TEACHER_MODEL(5), + TUNED_TEACHER_MODEL_SOURCE(6), + TEACHERMODEL_NOT_SET(0); + private final int value; + + private TeacherModelCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TeacherModelCase valueOf(int value) { + return forNumber(value); + } + + public static TeacherModelCase forNumber(int value) { + switch (value) { + case 5: + return BASE_TEACHER_MODEL; + case 6: + return TUNED_TEACHER_MODEL_SOURCE; + case 0: + return TEACHERMODEL_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TeacherModelCase getTeacherModelCase() { + return TeacherModelCase.forNumber(teacherModelCase_); + } + + public static final int BASE_TEACHER_MODEL_FIELD_NUMBER = 5; + /** + * + * + *
+   * The base teacher model that is being distilled, e.g.,
+   * "gemini-1.0-pro-002".
+   * 
+ * + * string base_teacher_model = 5; + * + * @return Whether the baseTeacherModel field is set. + */ + public boolean hasBaseTeacherModel() { + return teacherModelCase_ == 5; + } + /** + * + * + *
+   * The base teacher model that is being distilled, e.g.,
+   * "gemini-1.0-pro-002".
+   * 
+ * + * string base_teacher_model = 5; + * + * @return The baseTeacherModel. + */ + public java.lang.String getBaseTeacherModel() { + java.lang.Object ref = ""; + if (teacherModelCase_ == 5) { + ref = teacherModel_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (teacherModelCase_ == 5) { + teacherModel_ = s; + } + return s; + } + } + /** + * + * + *
+   * The base teacher model that is being distilled, e.g.,
+   * "gemini-1.0-pro-002".
+   * 
+ * + * string base_teacher_model = 5; + * + * @return The bytes for baseTeacherModel. + */ + public com.google.protobuf.ByteString getBaseTeacherModelBytes() { + java.lang.Object ref = ""; + if (teacherModelCase_ == 5) { + ref = teacherModel_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (teacherModelCase_ == 5) { + teacherModel_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TUNED_TEACHER_MODEL_SOURCE_FIELD_NUMBER = 6; + /** + * + * + *
+   * The resource name of the Tuned teacher model. Format:
+   * `projects/{project}/locations/{location}/models/{model}`.
+   * 
+ * + * string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... } + * + * @return Whether the tunedTeacherModelSource field is set. + */ + public boolean hasTunedTeacherModelSource() { + return teacherModelCase_ == 6; + } + /** + * + * + *
+   * The resource name of the Tuned teacher model. Format:
+   * `projects/{project}/locations/{location}/models/{model}`.
+   * 
+ * + * string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... } + * + * @return The tunedTeacherModelSource. + */ + public java.lang.String getTunedTeacherModelSource() { + java.lang.Object ref = ""; + if (teacherModelCase_ == 6) { + ref = teacherModel_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (teacherModelCase_ == 6) { + teacherModel_ = s; + } + return s; + } + } + /** + * + * + *
+   * The resource name of the Tuned teacher model. Format:
+   * `projects/{project}/locations/{location}/models/{model}`.
+   * 
+ * + * string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for tunedTeacherModelSource. + */ + public com.google.protobuf.ByteString getTunedTeacherModelSourceBytes() { + java.lang.Object ref = ""; + if (teacherModelCase_ == 6) { + ref = teacherModel_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (teacherModelCase_ == 6) { + teacherModel_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRAINING_DATASET_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object trainingDatasetUri_ = ""; + /** + * + * + *
+   * Required. Cloud Storage path to file containing training dataset for
+   * tuning. The dataset must be formatted as a JSONL file.
+   * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The trainingDatasetUri. + */ + @java.lang.Override + public java.lang.String getTrainingDatasetUri() { + java.lang.Object ref = trainingDatasetUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trainingDatasetUri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Cloud Storage path to file containing training dataset for
+   * tuning. The dataset must be formatted as a JSONL file.
+   * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for trainingDatasetUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTrainingDatasetUriBytes() { + java.lang.Object ref = trainingDatasetUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trainingDatasetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATION_DATASET_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object validationDatasetUri_ = ""; + /** + * + * + *
+   * Optional. Cloud Storage path to file containing validation dataset for
+   * tuning. The dataset must be formatted as a JSONL file.
+   * 
+ * + * optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validationDatasetUri field is set. + */ + @java.lang.Override + public boolean hasValidationDatasetUri() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Cloud Storage path to file containing validation dataset for
+   * tuning. The dataset must be formatted as a JSONL file.
+   * 
+ * + * optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validationDatasetUri. + */ + @java.lang.Override + public java.lang.String getValidationDatasetUri() { + java.lang.Object ref = validationDatasetUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validationDatasetUri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Cloud Storage path to file containing validation dataset for
+   * tuning. The dataset must be formatted as a JSONL file.
+   * 
+ * + * optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for validationDatasetUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValidationDatasetUriBytes() { + java.lang.Object ref = validationDatasetUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + validationDatasetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HYPER_PARAMETERS_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyperParameters_; + /** + * + * + *
+   * Optional. Hyperparameters for Distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hyperParameters field is set. + */ + @java.lang.Override + public boolean hasHyperParameters() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Hyperparameters for Distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hyperParameters. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters getHyperParameters() { + return hyperParameters_ == null + ? com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.getDefaultInstance() + : hyperParameters_; + } + /** + * + * + *
+   * Optional. Hyperparameters for Distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationHyperParametersOrBuilder + getHyperParametersOrBuilder() { + return hyperParameters_ == null + ? com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.getDefaultInstance() + : hyperParameters_; + } + + public static final int STUDENT_MODEL_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object studentModel_ = ""; + /** + * + * + *
+   * The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
+   * 
+ * + * string student_model = 4; + * + * @return The studentModel. + */ + @java.lang.Override + public java.lang.String getStudentModel() { + java.lang.Object ref = studentModel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + studentModel_ = s; + return s; + } + } + /** + * + * + *
+   * The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
+   * 
+ * + * string student_model = 4; + * + * @return The bytes for studentModel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStudentModelBytes() { + java.lang.Object ref = studentModel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + studentModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PIPELINE_ROOT_DIRECTORY_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object pipelineRootDirectory_ = ""; + /** + * + * + *
+   * Required. A path in a Cloud Storage bucket, which will be treated as the
+   * root output directory of the distillation pipeline. It is used by the
+   * system to generate the paths of output artifacts.
+   * 
+ * + * string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pipelineRootDirectory. + */ + @java.lang.Override + public java.lang.String getPipelineRootDirectory() { + java.lang.Object ref = pipelineRootDirectory_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pipelineRootDirectory_ = s; + return s; + } + } + /** + * + * + *
+   * Required. A path in a Cloud Storage bucket, which will be treated as the
+   * root output directory of the distillation pipeline. It is used by the
+   * system to generate the paths of output artifacts.
+   * 
+ * + * string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pipelineRootDirectory. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPipelineRootDirectoryBytes() { + java.lang.Object ref = pipelineRootDirectory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pipelineRootDirectory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trainingDatasetUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trainingDatasetUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validationDatasetUri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getHyperParameters()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(studentModel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, studentModel_); + } + if (teacherModelCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, teacherModel_); + } + if (teacherModelCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, teacherModel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pipelineRootDirectory_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pipelineRootDirectory_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trainingDatasetUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trainingDatasetUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validationDatasetUri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHyperParameters()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(studentModel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, studentModel_); + } + if (teacherModelCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, teacherModel_); + } + if (teacherModelCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, teacherModel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pipelineRootDirectory_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pipelineRootDirectory_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DistillationSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DistillationSpec other = + (com.google.cloud.aiplatform.v1beta1.DistillationSpec) obj; + + if (!getTrainingDatasetUri().equals(other.getTrainingDatasetUri())) return false; + if (hasValidationDatasetUri() != other.hasValidationDatasetUri()) return false; + if (hasValidationDatasetUri()) { + if (!getValidationDatasetUri().equals(other.getValidationDatasetUri())) return false; + } + if (hasHyperParameters() != other.hasHyperParameters()) return false; + if (hasHyperParameters()) { + if (!getHyperParameters().equals(other.getHyperParameters())) return false; + } + if (!getStudentModel().equals(other.getStudentModel())) return false; + if (!getPipelineRootDirectory().equals(other.getPipelineRootDirectory())) return false; + if (!getTeacherModelCase().equals(other.getTeacherModelCase())) return false; + switch (teacherModelCase_) { + case 5: + if (!getBaseTeacherModel().equals(other.getBaseTeacherModel())) return false; + break; + case 6: + if (!getTunedTeacherModelSource().equals(other.getTunedTeacherModelSource())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TRAINING_DATASET_URI_FIELD_NUMBER; + hash = (53 * hash) + getTrainingDatasetUri().hashCode(); + if (hasValidationDatasetUri()) { + hash = (37 * hash) + VALIDATION_DATASET_URI_FIELD_NUMBER; + hash = (53 * hash) + getValidationDatasetUri().hashCode(); + } + if (hasHyperParameters()) { + hash = (37 * hash) + HYPER_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getHyperParameters().hashCode(); + } + hash = (37 * hash) + STUDENT_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getStudentModel().hashCode(); + hash = (37 * hash) + PIPELINE_ROOT_DIRECTORY_FIELD_NUMBER; + hash = (53 * hash) + getPipelineRootDirectory().hashCode(); + switch (teacherModelCase_) { + case 5: + hash = (37 * hash) + BASE_TEACHER_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getBaseTeacherModel().hashCode(); + break; + case 6: + hash = (37 * hash) + TUNED_TEACHER_MODEL_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getTunedTeacherModelSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.DistillationSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Tuning Spec for Distillation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DistillationSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DistillationSpec) + com.google.cloud.aiplatform.v1beta1.DistillationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DistillationSpec.class, + com.google.cloud.aiplatform.v1beta1.DistillationSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DistillationSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHyperParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + trainingDatasetUri_ = ""; + validationDatasetUri_ = ""; + hyperParameters_ = null; + if (hyperParametersBuilder_ != null) { + hyperParametersBuilder_.dispose(); + hyperParametersBuilder_ = null; + } + studentModel_ = ""; + pipelineRootDirectory_ = ""; + teacherModelCase_ = 0; + teacherModel_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_DistillationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DistillationSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationSpec build() { + com.google.cloud.aiplatform.v1beta1.DistillationSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.DistillationSpec result = + new com.google.cloud.aiplatform.v1beta1.DistillationSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DistillationSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trainingDatasetUri_ = trainingDatasetUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validationDatasetUri_ = validationDatasetUri_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.hyperParameters_ = + hyperParametersBuilder_ == null ? hyperParameters_ : hyperParametersBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.studentModel_ = studentModel_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pipelineRootDirectory_ = pipelineRootDirectory_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.DistillationSpec result) { + result.teacherModelCase_ = teacherModelCase_; + result.teacherModel_ = this.teacherModel_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.DistillationSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DistillationSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DistillationSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.DistillationSpec.getDefaultInstance()) + return this; + if (!other.getTrainingDatasetUri().isEmpty()) { + trainingDatasetUri_ = other.trainingDatasetUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasValidationDatasetUri()) { + validationDatasetUri_ = other.validationDatasetUri_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasHyperParameters()) { + mergeHyperParameters(other.getHyperParameters()); + } + if (!other.getStudentModel().isEmpty()) { + studentModel_ = other.studentModel_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getPipelineRootDirectory().isEmpty()) { + pipelineRootDirectory_ = other.pipelineRootDirectory_; + bitField0_ |= 0x00000040; + onChanged(); + } + switch (other.getTeacherModelCase()) { + case BASE_TEACHER_MODEL: + { + teacherModelCase_ = 5; + teacherModel_ = other.teacherModel_; + onChanged(); + break; + } + case TUNED_TEACHER_MODEL_SOURCE: + { + teacherModelCase_ = 6; + teacherModel_ = other.teacherModel_; + onChanged(); + break; + } + case TEACHERMODEL_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + trainingDatasetUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + validationDatasetUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage(getHyperParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + studentModel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + teacherModelCase_ = 5; + teacherModel_ = s; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + teacherModelCase_ = 6; + teacherModel_ = s; + break; + } // case 50 + case 58: + { + pipelineRootDirectory_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int teacherModelCase_ = 0; + private java.lang.Object teacherModel_; + + public TeacherModelCase getTeacherModelCase() { + return TeacherModelCase.forNumber(teacherModelCase_); + } + + public Builder clearTeacherModel() { + teacherModelCase_ = 0; + teacherModel_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * The base teacher model that is being distilled, e.g.,
+     * "gemini-1.0-pro-002".
+     * 
+ * + * string base_teacher_model = 5; + * + * @return Whether the baseTeacherModel field is set. + */ + @java.lang.Override + public boolean hasBaseTeacherModel() { + return teacherModelCase_ == 5; + } + /** + * + * + *
+     * The base teacher model that is being distilled, e.g.,
+     * "gemini-1.0-pro-002".
+     * 
+ * + * string base_teacher_model = 5; + * + * @return The baseTeacherModel. + */ + @java.lang.Override + public java.lang.String getBaseTeacherModel() { + java.lang.Object ref = ""; + if (teacherModelCase_ == 5) { + ref = teacherModel_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (teacherModelCase_ == 5) { + teacherModel_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The base teacher model that is being distilled, e.g.,
+     * "gemini-1.0-pro-002".
+     * 
+ * + * string base_teacher_model = 5; + * + * @return The bytes for baseTeacherModel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBaseTeacherModelBytes() { + java.lang.Object ref = ""; + if (teacherModelCase_ == 5) { + ref = teacherModel_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (teacherModelCase_ == 5) { + teacherModel_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The base teacher model that is being distilled, e.g.,
+     * "gemini-1.0-pro-002".
+     * 
+ * + * string base_teacher_model = 5; + * + * @param value The baseTeacherModel to set. + * @return This builder for chaining. + */ + public Builder setBaseTeacherModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + teacherModelCase_ = 5; + teacherModel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The base teacher model that is being distilled, e.g.,
+     * "gemini-1.0-pro-002".
+     * 
+ * + * string base_teacher_model = 5; + * + * @return This builder for chaining. + */ + public Builder clearBaseTeacherModel() { + if (teacherModelCase_ == 5) { + teacherModelCase_ = 0; + teacherModel_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The base teacher model that is being distilled, e.g.,
+     * "gemini-1.0-pro-002".
+     * 
+ * + * string base_teacher_model = 5; + * + * @param value The bytes for baseTeacherModel to set. + * @return This builder for chaining. + */ + public Builder setBaseTeacherModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + teacherModelCase_ = 5; + teacherModel_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The resource name of the Tuned teacher model. Format:
+     * `projects/{project}/locations/{location}/models/{model}`.
+     * 
+ * + * string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... } + * + * + * @return Whether the tunedTeacherModelSource field is set. + */ + @java.lang.Override + public boolean hasTunedTeacherModelSource() { + return teacherModelCase_ == 6; + } + /** + * + * + *
+     * The resource name of the Tuned teacher model. Format:
+     * `projects/{project}/locations/{location}/models/{model}`.
+     * 
+ * + * string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... } + * + * + * @return The tunedTeacherModelSource. + */ + @java.lang.Override + public java.lang.String getTunedTeacherModelSource() { + java.lang.Object ref = ""; + if (teacherModelCase_ == 6) { + ref = teacherModel_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (teacherModelCase_ == 6) { + teacherModel_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the Tuned teacher model. Format:
+     * `projects/{project}/locations/{location}/models/{model}`.
+     * 
+ * + * string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tunedTeacherModelSource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTunedTeacherModelSourceBytes() { + java.lang.Object ref = ""; + if (teacherModelCase_ == 6) { + ref = teacherModel_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (teacherModelCase_ == 6) { + teacherModel_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the Tuned teacher model. Format:
+     * `projects/{project}/locations/{location}/models/{model}`.
+     * 
+ * + * string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... } + * + * + * @param value The tunedTeacherModelSource to set. + * @return This builder for chaining. + */ + public Builder setTunedTeacherModelSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + teacherModelCase_ = 6; + teacherModel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the Tuned teacher model. Format:
+     * `projects/{project}/locations/{location}/models/{model}`.
+     * 
+ * + * string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTunedTeacherModelSource() { + if (teacherModelCase_ == 6) { + teacherModelCase_ = 0; + teacherModel_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The resource name of the Tuned teacher model. Format:
+     * `projects/{project}/locations/{location}/models/{model}`.
+     * 
+ * + * string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tunedTeacherModelSource to set. + * @return This builder for chaining. + */ + public Builder setTunedTeacherModelSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + teacherModelCase_ = 6; + teacherModel_ = value; + onChanged(); + return this; + } + + private java.lang.Object trainingDatasetUri_ = ""; + /** + * + * + *
+     * Required. Cloud Storage path to file containing training dataset for
+     * tuning. The dataset must be formatted as a JSONL file.
+     * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The trainingDatasetUri. + */ + public java.lang.String getTrainingDatasetUri() { + java.lang.Object ref = trainingDatasetUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trainingDatasetUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Cloud Storage path to file containing training dataset for
+     * tuning. The dataset must be formatted as a JSONL file.
+     * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for trainingDatasetUri. + */ + public com.google.protobuf.ByteString getTrainingDatasetUriBytes() { + java.lang.Object ref = trainingDatasetUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trainingDatasetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Cloud Storage path to file containing training dataset for
+     * tuning. The dataset must be formatted as a JSONL file.
+     * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The trainingDatasetUri to set. + * @return This builder for chaining. + */ + public Builder setTrainingDatasetUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + trainingDatasetUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Cloud Storage path to file containing training dataset for
+     * tuning. The dataset must be formatted as a JSONL file.
+     * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTrainingDatasetUri() { + trainingDatasetUri_ = getDefaultInstance().getTrainingDatasetUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Cloud Storage path to file containing training dataset for
+     * tuning. The dataset must be formatted as a JSONL file.
+     * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for trainingDatasetUri to set. + * @return This builder for chaining. + */ + public Builder setTrainingDatasetUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trainingDatasetUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object validationDatasetUri_ = ""; + /** + * + * + *
+     * Optional. Cloud Storage path to file containing validation dataset for
+     * tuning. The dataset must be formatted as a JSONL file.
+     * 
+ * + * optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validationDatasetUri field is set. + */ + public boolean hasValidationDatasetUri() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. Cloud Storage path to file containing validation dataset for
+     * tuning. The dataset must be formatted as a JSONL file.
+     * 
+ * + * optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validationDatasetUri. + */ + public java.lang.String getValidationDatasetUri() { + java.lang.Object ref = validationDatasetUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validationDatasetUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Cloud Storage path to file containing validation dataset for
+     * tuning. The dataset must be formatted as a JSONL file.
+     * 
+ * + * optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for validationDatasetUri. + */ + public com.google.protobuf.ByteString getValidationDatasetUriBytes() { + java.lang.Object ref = validationDatasetUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + validationDatasetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Cloud Storage path to file containing validation dataset for
+     * tuning. The dataset must be formatted as a JSONL file.
+     * 
+ * + * optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The validationDatasetUri to set. + * @return This builder for chaining. + */ + public Builder setValidationDatasetUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + validationDatasetUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Cloud Storage path to file containing validation dataset for
+     * tuning. The dataset must be formatted as a JSONL file.
+     * 
+ * + * optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearValidationDatasetUri() { + validationDatasetUri_ = getDefaultInstance().getValidationDatasetUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Cloud Storage path to file containing validation dataset for
+     * tuning. The dataset must be formatted as a JSONL file.
+     * 
+ * + * optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for validationDatasetUri to set. + * @return This builder for chaining. + */ + public Builder setValidationDatasetUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + validationDatasetUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyperParameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters, + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.Builder, + com.google.cloud.aiplatform.v1beta1.DistillationHyperParametersOrBuilder> + hyperParametersBuilder_; + /** + * + * + *
+     * Optional. Hyperparameters for Distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hyperParameters field is set. + */ + public boolean hasHyperParameters() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. Hyperparameters for Distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hyperParameters. + */ + public com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters getHyperParameters() { + if (hyperParametersBuilder_ == null) { + return hyperParameters_ == null + ? com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.getDefaultInstance() + : hyperParameters_; + } else { + return hyperParametersBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Hyperparameters for Distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHyperParameters( + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters value) { + if (hyperParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hyperParameters_ = value; + } else { + hyperParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Hyperparameters for Distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHyperParameters( + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.Builder builderForValue) { + if (hyperParametersBuilder_ == null) { + hyperParameters_ = builderForValue.build(); + } else { + hyperParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Hyperparameters for Distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeHyperParameters( + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters value) { + if (hyperParametersBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && hyperParameters_ != null + && hyperParameters_ + != com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters + .getDefaultInstance()) { + getHyperParametersBuilder().mergeFrom(value); + } else { + hyperParameters_ = value; + } + } else { + hyperParametersBuilder_.mergeFrom(value); + } + if (hyperParameters_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Hyperparameters for Distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearHyperParameters() { + bitField0_ = (bitField0_ & ~0x00000010); + hyperParameters_ = null; + if (hyperParametersBuilder_ != null) { + hyperParametersBuilder_.dispose(); + hyperParametersBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Hyperparameters for Distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.Builder + getHyperParametersBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getHyperParametersFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Hyperparameters for Distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DistillationHyperParametersOrBuilder + getHyperParametersOrBuilder() { + if (hyperParametersBuilder_ != null) { + return hyperParametersBuilder_.getMessageOrBuilder(); + } else { + return hyperParameters_ == null + ? com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.getDefaultInstance() + : hyperParameters_; + } + } + /** + * + * + *
+     * Optional. Hyperparameters for Distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters, + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.Builder, + com.google.cloud.aiplatform.v1beta1.DistillationHyperParametersOrBuilder> + getHyperParametersFieldBuilder() { + if (hyperParametersBuilder_ == null) { + hyperParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters, + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters.Builder, + com.google.cloud.aiplatform.v1beta1.DistillationHyperParametersOrBuilder>( + getHyperParameters(), getParentForChildren(), isClean()); + hyperParameters_ = null; + } + return hyperParametersBuilder_; + } + + private java.lang.Object studentModel_ = ""; + /** + * + * + *
+     * The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
+     * 
+ * + * string student_model = 4; + * + * @return The studentModel. + */ + public java.lang.String getStudentModel() { + java.lang.Object ref = studentModel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + studentModel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
+     * 
+ * + * string student_model = 4; + * + * @return The bytes for studentModel. + */ + public com.google.protobuf.ByteString getStudentModelBytes() { + java.lang.Object ref = studentModel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + studentModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
+     * 
+ * + * string student_model = 4; + * + * @param value The studentModel to set. + * @return This builder for chaining. + */ + public Builder setStudentModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + studentModel_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
+     * 
+ * + * string student_model = 4; + * + * @return This builder for chaining. + */ + public Builder clearStudentModel() { + studentModel_ = getDefaultInstance().getStudentModel(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
+     * 
+ * + * string student_model = 4; + * + * @param value The bytes for studentModel to set. + * @return This builder for chaining. + */ + public Builder setStudentModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + studentModel_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object pipelineRootDirectory_ = ""; + /** + * + * + *
+     * Required. A path in a Cloud Storage bucket, which will be treated as the
+     * root output directory of the distillation pipeline. It is used by the
+     * system to generate the paths of output artifacts.
+     * 
+ * + * string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pipelineRootDirectory. + */ + public java.lang.String getPipelineRootDirectory() { + java.lang.Object ref = pipelineRootDirectory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pipelineRootDirectory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. A path in a Cloud Storage bucket, which will be treated as the
+     * root output directory of the distillation pipeline. It is used by the
+     * system to generate the paths of output artifacts.
+     * 
+ * + * string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pipelineRootDirectory. + */ + public com.google.protobuf.ByteString getPipelineRootDirectoryBytes() { + java.lang.Object ref = pipelineRootDirectory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pipelineRootDirectory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. A path in a Cloud Storage bucket, which will be treated as the
+     * root output directory of the distillation pipeline. It is used by the
+     * system to generate the paths of output artifacts.
+     * 
+ * + * string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The pipelineRootDirectory to set. + * @return This builder for chaining. + */ + public Builder setPipelineRootDirectory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pipelineRootDirectory_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A path in a Cloud Storage bucket, which will be treated as the
+     * root output directory of the distillation pipeline. It is used by the
+     * system to generate the paths of output artifacts.
+     * 
+ * + * string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPipelineRootDirectory() { + pipelineRootDirectory_ = getDefaultInstance().getPipelineRootDirectory(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A path in a Cloud Storage bucket, which will be treated as the
+     * root output directory of the distillation pipeline. It is used by the
+     * system to generate the paths of output artifacts.
+     * 
+ * + * string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for pipelineRootDirectory to set. + * @return This builder for chaining. + */ + public Builder setPipelineRootDirectoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pipelineRootDirectory_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DistillationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DistillationSpec) + private static final com.google.cloud.aiplatform.v1beta1.DistillationSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DistillationSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.DistillationSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistillationSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationSpecOrBuilder.java new file mode 100644 index 000000000000..af488192edc6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationSpecOrBuilder.java @@ -0,0 +1,274 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tuning_job.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface DistillationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DistillationSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The base teacher model that is being distilled, e.g.,
+   * "gemini-1.0-pro-002".
+   * 
+ * + * string base_teacher_model = 5; + * + * @return Whether the baseTeacherModel field is set. + */ + boolean hasBaseTeacherModel(); + /** + * + * + *
+   * The base teacher model that is being distilled, e.g.,
+   * "gemini-1.0-pro-002".
+   * 
+ * + * string base_teacher_model = 5; + * + * @return The baseTeacherModel. + */ + java.lang.String getBaseTeacherModel(); + /** + * + * + *
+   * The base teacher model that is being distilled, e.g.,
+   * "gemini-1.0-pro-002".
+   * 
+ * + * string base_teacher_model = 5; + * + * @return The bytes for baseTeacherModel. + */ + com.google.protobuf.ByteString getBaseTeacherModelBytes(); + + /** + * + * + *
+   * The resource name of the Tuned teacher model. Format:
+   * `projects/{project}/locations/{location}/models/{model}`.
+   * 
+ * + * string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... } + * + * @return Whether the tunedTeacherModelSource field is set. + */ + boolean hasTunedTeacherModelSource(); + /** + * + * + *
+   * The resource name of the Tuned teacher model. Format:
+   * `projects/{project}/locations/{location}/models/{model}`.
+   * 
+ * + * string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... } + * + * @return The tunedTeacherModelSource. + */ + java.lang.String getTunedTeacherModelSource(); + /** + * + * + *
+   * The resource name of the Tuned teacher model. Format:
+   * `projects/{project}/locations/{location}/models/{model}`.
+   * 
+ * + * string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for tunedTeacherModelSource. + */ + com.google.protobuf.ByteString getTunedTeacherModelSourceBytes(); + + /** + * + * + *
+   * Required. Cloud Storage path to file containing training dataset for
+   * tuning. The dataset must be formatted as a JSONL file.
+   * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The trainingDatasetUri. + */ + java.lang.String getTrainingDatasetUri(); + /** + * + * + *
+   * Required. Cloud Storage path to file containing training dataset for
+   * tuning. The dataset must be formatted as a JSONL file.
+   * 
+ * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for trainingDatasetUri. + */ + com.google.protobuf.ByteString getTrainingDatasetUriBytes(); + + /** + * + * + *
+   * Optional. Cloud Storage path to file containing validation dataset for
+   * tuning. The dataset must be formatted as a JSONL file.
+   * 
+ * + * optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validationDatasetUri field is set. + */ + boolean hasValidationDatasetUri(); + /** + * + * + *
+   * Optional. Cloud Storage path to file containing validation dataset for
+   * tuning. The dataset must be formatted as a JSONL file.
+   * 
+ * + * optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validationDatasetUri. + */ + java.lang.String getValidationDatasetUri(); + /** + * + * + *
+   * Optional. Cloud Storage path to file containing validation dataset for
+   * tuning. The dataset must be formatted as a JSONL file.
+   * 
+ * + * optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for validationDatasetUri. + */ + com.google.protobuf.ByteString getValidationDatasetUriBytes(); + + /** + * + * + *
+   * Optional. Hyperparameters for Distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hyperParameters field is set. + */ + boolean hasHyperParameters(); + /** + * + * + *
+   * Optional. Hyperparameters for Distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hyperParameters. + */ + com.google.cloud.aiplatform.v1beta1.DistillationHyperParameters getHyperParameters(); + /** + * + * + *
+   * Optional. Hyperparameters for Distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.DistillationHyperParametersOrBuilder + getHyperParametersOrBuilder(); + + /** + * + * + *
+   * The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
+   * 
+ * + * string student_model = 4; + * + * @return The studentModel. + */ + java.lang.String getStudentModel(); + /** + * + * + *
+   * The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
+   * 
+ * + * string student_model = 4; + * + * @return The bytes for studentModel. + */ + com.google.protobuf.ByteString getStudentModelBytes(); + + /** + * + * + *
+   * Required. A path in a Cloud Storage bucket, which will be treated as the
+   * root output directory of the distillation pipeline. It is used by the
+   * system to generate the paths of output artifacts.
+   * 
+ * + * string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pipelineRootDirectory. + */ + java.lang.String getPipelineRootDirectory(); + /** + * + * + *
+   * Required. A path in a Cloud Storage bucket, which will be treated as the
+   * root output directory of the distillation pipeline. It is used by the
+   * system to generate the paths of output artifacts.
+   * 
+ * + * string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pipelineRootDirectory. + */ + com.google.protobuf.ByteString getPipelineRootDirectoryBytes(); + + com.google.cloud.aiplatform.v1beta1.DistillationSpec.TeacherModelCase getTeacherModelCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java index 52bb3ebc96c8..52be27b2963e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java @@ -47,6 +47,7 @@ private Endpoint() { etag_ = ""; network_ = ""; modelDeploymentMonitoringJob_ = ""; + dedicatedEndpointDns_ = ""; } @java.lang.Override @@ -1117,6 +1118,123 @@ public boolean hasPredictRequestResponseLoggingConfig() { : predictRequestResponseLoggingConfig_; } + public static final int DEDICATED_ENDPOINT_ENABLED_FIELD_NUMBER = 24; + private boolean dedicatedEndpointEnabled_ = false; + /** + * + * + *
+   * If true, the endpoint will be exposed through a dedicated
+   * DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS
+   * will be isolated from other users' traffic and will have better performance
+   * and reliability.
+   * Note: Once you enabled dedicated endpoint, you won't be able to send
+   * request to the shared DNS {region}-aiplatform.googleapis.com. The
+   * limitation will be removed soon.
+   * 
+ * + * bool dedicated_endpoint_enabled = 24; + * + * @return The dedicatedEndpointEnabled. + */ + @java.lang.Override + public boolean getDedicatedEndpointEnabled() { + return dedicatedEndpointEnabled_; + } + + public static final int DEDICATED_ENDPOINT_DNS_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") + private volatile java.lang.Object dedicatedEndpointDns_ = ""; + /** + * + * + *
+   * Output only. DNS of the dedicated endpoint. Will only be populated if
+   * dedicated_endpoint_enabled is true.
+   * Format:
+   * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+   * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dedicatedEndpointDns. + */ + @java.lang.Override + public java.lang.String getDedicatedEndpointDns() { + java.lang.Object ref = dedicatedEndpointDns_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dedicatedEndpointDns_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. DNS of the dedicated endpoint. Will only be populated if
+   * dedicated_endpoint_enabled is true.
+   * Format:
+   * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+   * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dedicatedEndpointDns. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDedicatedEndpointDnsBytes() { + java.lang.Object ref = dedicatedEndpointDns_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dedicatedEndpointDns_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SATISFIES_PZS_FIELD_NUMBER = 27; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 28; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1174,6 +1292,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(21, getPrivateServiceConnectConfig()); } + if (dedicatedEndpointEnabled_ != false) { + output.writeBool(24, dedicatedEndpointEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dedicatedEndpointDns_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 25, dedicatedEndpointDns_); + } + if (satisfiesPzs_ != false) { + output.writeBool(27, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + output.writeBool(28, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -1249,6 +1379,18 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 21, getPrivateServiceConnectConfig()); } + if (dedicatedEndpointEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, dedicatedEndpointEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dedicatedEndpointDns_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, dedicatedEndpointDns_); + } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(28, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1299,6 +1441,10 @@ public boolean equals(final java.lang.Object obj) { if (!getPredictRequestResponseLoggingConfig() .equals(other.getPredictRequestResponseLoggingConfig())) return false; } + if (getDedicatedEndpointEnabled() != other.getDedicatedEndpointEnabled()) return false; + if (!getDedicatedEndpointDns().equals(other.getDedicatedEndpointDns())) return false; + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1356,6 +1502,14 @@ public int hashCode() { hash = (37 * hash) + PREDICT_REQUEST_RESPONSE_LOGGING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPredictRequestResponseLoggingConfig().hashCode(); } + hash = (37 * hash) + DEDICATED_ENDPOINT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDedicatedEndpointEnabled()); + hash = (37 * hash) + DEDICATED_ENDPOINT_DNS_FIELD_NUMBER; + hash = (53 * hash) + getDedicatedEndpointDns().hashCode(); + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1577,6 +1731,10 @@ public Builder clear() { predictRequestResponseLoggingConfigBuilder_.dispose(); predictRequestResponseLoggingConfigBuilder_ = null; } + dedicatedEndpointEnabled_ = false; + dedicatedEndpointDns_ = ""; + satisfiesPzs_ = false; + satisfiesPzi_ = false; return this; } @@ -1683,6 +1841,18 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Endpoint result) : predictRequestResponseLoggingConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.dedicatedEndpointEnabled_ = dedicatedEndpointEnabled_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.dedicatedEndpointDns_ = dedicatedEndpointDns_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } result.bitField0_ |= to_bitField0_; } @@ -1810,6 +1980,20 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Endpoint other) { if (other.hasPredictRequestResponseLoggingConfig()) { mergePredictRequestResponseLoggingConfig(other.getPredictRequestResponseLoggingConfig()); } + if (other.getDedicatedEndpointEnabled() != false) { + setDedicatedEndpointEnabled(other.getDedicatedEndpointEnabled()); + } + if (!other.getDedicatedEndpointDns().isEmpty()) { + dedicatedEndpointDns_ = other.dedicatedEndpointDns_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1949,6 +2133,30 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 170 + case 192: + { + dedicatedEndpointEnabled_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 192 + case 202: + { + dedicatedEndpointDns_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 202 + case 216: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00020000; + break; + } // case 216 + case 224: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00040000; + break; + } // case 224 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4789,6 +4997,304 @@ public Builder clearPredictRequestResponseLoggingConfig() { return predictRequestResponseLoggingConfigBuilder_; } + private boolean dedicatedEndpointEnabled_; + /** + * + * + *
+     * If true, the endpoint will be exposed through a dedicated
+     * DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS
+     * will be isolated from other users' traffic and will have better performance
+     * and reliability.
+     * Note: Once you enabled dedicated endpoint, you won't be able to send
+     * request to the shared DNS {region}-aiplatform.googleapis.com. The
+     * limitation will be removed soon.
+     * 
+ * + * bool dedicated_endpoint_enabled = 24; + * + * @return The dedicatedEndpointEnabled. + */ + @java.lang.Override + public boolean getDedicatedEndpointEnabled() { + return dedicatedEndpointEnabled_; + } + /** + * + * + *
+     * If true, the endpoint will be exposed through a dedicated
+     * DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS
+     * will be isolated from other users' traffic and will have better performance
+     * and reliability.
+     * Note: Once you enabled dedicated endpoint, you won't be able to send
+     * request to the shared DNS {region}-aiplatform.googleapis.com. The
+     * limitation will be removed soon.
+     * 
+ * + * bool dedicated_endpoint_enabled = 24; + * + * @param value The dedicatedEndpointEnabled to set. + * @return This builder for chaining. + */ + public Builder setDedicatedEndpointEnabled(boolean value) { + + dedicatedEndpointEnabled_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, the endpoint will be exposed through a dedicated
+     * DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS
+     * will be isolated from other users' traffic and will have better performance
+     * and reliability.
+     * Note: Once you enabled dedicated endpoint, you won't be able to send
+     * request to the shared DNS {region}-aiplatform.googleapis.com. The
+     * limitation will be removed soon.
+     * 
+ * + * bool dedicated_endpoint_enabled = 24; + * + * @return This builder for chaining. + */ + public Builder clearDedicatedEndpointEnabled() { + bitField0_ = (bitField0_ & ~0x00008000); + dedicatedEndpointEnabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object dedicatedEndpointDns_ = ""; + /** + * + * + *
+     * Output only. DNS of the dedicated endpoint. Will only be populated if
+     * dedicated_endpoint_enabled is true.
+     * Format:
+     * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+     * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dedicatedEndpointDns. + */ + public java.lang.String getDedicatedEndpointDns() { + java.lang.Object ref = dedicatedEndpointDns_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dedicatedEndpointDns_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. DNS of the dedicated endpoint. Will only be populated if
+     * dedicated_endpoint_enabled is true.
+     * Format:
+     * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+     * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dedicatedEndpointDns. + */ + public com.google.protobuf.ByteString getDedicatedEndpointDnsBytes() { + java.lang.Object ref = dedicatedEndpointDns_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dedicatedEndpointDns_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. DNS of the dedicated endpoint. Will only be populated if
+     * dedicated_endpoint_enabled is true.
+     * Format:
+     * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+     * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dedicatedEndpointDns to set. + * @return This builder for chaining. + */ + public Builder setDedicatedEndpointDns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dedicatedEndpointDns_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. DNS of the dedicated endpoint. Will only be populated if
+     * dedicated_endpoint_enabled is true.
+     * Format:
+     * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+     * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDedicatedEndpointDns() { + dedicatedEndpointDns_ = getDefaultInstance().getDedicatedEndpointDns(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. DNS of the dedicated endpoint. Will only be populated if
+     * dedicated_endpoint_enabled is true.
+     * Format:
+     * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+     * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for dedicatedEndpointDns to set. + * @return This builder for chaining. + */ + public Builder setDedicatedEndpointDnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dedicatedEndpointDns_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00020000); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00040000); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java index b878da558be5..014e0f559555 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java @@ -724,4 +724,80 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfigOrBuilder getPredictRequestResponseLoggingConfigOrBuilder(); + + /** + * + * + *
+   * If true, the endpoint will be exposed through a dedicated
+   * DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS
+   * will be isolated from other users' traffic and will have better performance
+   * and reliability.
+   * Note: Once you enabled dedicated endpoint, you won't be able to send
+   * request to the shared DNS {region}-aiplatform.googleapis.com. The
+   * limitation will be removed soon.
+   * 
+ * + * bool dedicated_endpoint_enabled = 24; + * + * @return The dedicatedEndpointEnabled. + */ + boolean getDedicatedEndpointEnabled(); + + /** + * + * + *
+   * Output only. DNS of the dedicated endpoint. Will only be populated if
+   * dedicated_endpoint_enabled is true.
+   * Format:
+   * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+   * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dedicatedEndpointDns. + */ + java.lang.String getDedicatedEndpointDns(); + /** + * + * + *
+   * Output only. DNS of the dedicated endpoint. Will only be populated if
+   * dedicated_endpoint_enabled is true.
+   * Format:
+   * `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
+   * 
+ * + * string dedicated_endpoint_dns = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dedicatedEndpointDns. + */ + com.google.protobuf.ByteString getDedicatedEndpointDnsBytes(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java index 71e69d63ebda..6b9f52eb2d7d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java @@ -71,7 +71,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/io.proto\0327google/cloud/aiplatform/v1bet" + "a1/machine_resources.proto\0328google/cloud" + "/aiplatform/v1beta1/service_networking.p" - + "roto\032\037google/protobuf/timestamp.proto\"\306\t" + + "roto\032\037google/protobuf/timestamp.proto\"\307\n" + "\n\010Endpoint\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display" + "_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022L\n" + "\017deployed_models\030\004 \003(\0132..google.cloud.ai" @@ -95,47 +95,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oymentMonitoringJob\022u\n\'predict_request_r" + "esponse_logging_config\030\022 \001(\0132D.google.cl" + "oud.aiplatform.v1beta1.PredictRequestRes" - + "ponseLoggingConfig\0323\n\021TrafficSplitEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\032-\n\013Label" - + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\265" - + "\001\352A\261\001\n\"aiplatform.googleapis.com/Endpoin" - + "t\022.google.cloud.aiplatfor" - + "m.v1beta1.SearchNearestEntitiesResponse\"" - + "t\202\323\344\223\002n\"i/v1beta1/{feature_view=projects" - + "/*/locations/*/featureOnlineStores/*/fea" - + "tureViews/*}:searchNearestEntities:\001*\032M\312" - + "A\031aiplatform.googleapis.com\322A.https://ww" - + "w.googleapis.com/auth/cloud-platformB\365\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\036Fe" - + "atureOnlineStoreServiceProtoP\001ZCcloud.go" - + "ogle.com/go/aiplatform/apiv1beta1/aiplat" - + "formpb;aiplatformpb\252\002\037Google.Cloud.AIPla" - + "tform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\" - + "V1beta1\352\002\"Google::Cloud::AIPlatform::V1b" - + "eta1b\006proto3" + + "lterB\003\340A\001\022a\n\017numeric_filters\030\010 \003(\0132C.goo" + + "gle.cloud.aiplatform.v1beta1.NearestNeig" + + "hborQuery.NumericFilterB\003\340A\001\0222\n%per_crow" + + "ding_attribute_neighbor_count\030\005 \001(\005B\003\340A\001" + + "\022Y\n\nparameters\030\007 \001(\0132@.google.cloud.aipl" + + "atform.v1beta1.NearestNeighborQuery.Para" + + "metersB\003\340A\001\032\037\n\tEmbedding\022\022\n\005value\030\001 \003(\002B" + + "\003\340A\001\032V\n\014StringFilter\022\021\n\004name\030\001 \001(\tB\003\340A\002\022" + + "\031\n\014allow_tokens\030\002 \003(\tB\003\340A\001\022\030\n\013deny_token" + + "s\030\003 \003(\tB\003\340A\001\032\324\002\n\rNumericFilter\022\023\n\tvalue_" + + "int\030\002 \001(\003H\000\022\025\n\013value_float\030\003 \001(\002H\000\022\026\n\014va" + + "lue_double\030\004 \001(\001H\000\022\021\n\004name\030\001 \001(\tB\003\340A\002\022b\n" + + "\002op\030\005 \001(\0162L.google.cloud.aiplatform.v1be" + + "ta1.NearestNeighborQuery.NumericFilter.O" + + "peratorB\003\340A\001H\001\210\001\001\"x\n\010Operator\022\030\n\024OPERATO" + + "R_UNSPECIFIED\020\000\022\010\n\004LESS\020\001\022\016\n\nLESS_EQUAL\020" + + "\002\022\t\n\005EQUAL\020\003\022\021\n\rGREATER_EQUAL\020\004\022\013\n\007GREAT" + + "ER\020\005\022\r\n\tNOT_EQUAL\020\006B\007\n\005ValueB\005\n\003_op\032c\n\nP" + + "arameters\022,\n\037approximate_neighbor_candid" + + "ates\030\001 \001(\005B\003\340A\001\022\'\n\032leaf_nodes_search_fra" + + "ction\030\002 \001(\001B\003\340A\001B\n\n\010instance\"\317\001\n\034SearchN" + + "earestEntitiesRequest\022C\n\014feature_view\030\001 " + + "\001(\tB-\340A\002\372A\'\n%aiplatform.googleapis.com/F" + + "eatureView\022I\n\005query\030\002 \001(\01325.google.cloud" + + ".aiplatform.v1beta1.NearestNeighborQuery" + + "B\003\340A\002\022\037\n\022return_full_entity\030\003 \001(\010B\003\340A\001\"\353" + + "\001\n\020NearestNeighbors\022M\n\tneighbors\030\001 \003(\0132:" + + ".google.cloud.aiplatform.v1beta1.Nearest" + + "Neighbors.Neighbor\032\207\001\n\010Neighbor\022\021\n\tentit" + + "y_id\030\001 \001(\t\022\020\n\010distance\030\002 \001(\001\022V\n\021entity_k" + + "ey_values\030\003 \001(\0132;.google.cloud.aiplatfor" + + "m.v1beta1.FetchFeatureValuesResponse\"m\n\035" + + "SearchNearestEntitiesResponse\022L\n\021nearest" + + "_neighbors\030\001 \001(\01321.google.cloud.aiplatfo" + + "rm.v1beta1.NearestNeighbors*b\n\025FeatureVi" + + "ewDataFormat\022(\n$FEATURE_VIEW_DATA_FORMAT" + + "_UNSPECIFIED\020\000\022\r\n\tKEY_VALUE\020\001\022\020\n\014PROTO_S" + + "TRUCT\020\0022\334\007\n\031FeatureOnlineStoreService\022\232\002" + + "\n\022FetchFeatureValues\022:.google.cloud.aipl" + + "atform.v1beta1.FetchFeatureValuesRequest" + + "\032;.google.cloud.aiplatform.v1beta1.Fetch" + + "FeatureValuesResponse\"\212\001\332A\026feature_view," + + " data_key\202\323\344\223\002k\"f/v1beta1/{feature_view=" + + "projects/*/locations/*/featureOnlineStor" + + "es/*/featureViews/*}:fetchFeatureValues:" + + "\001*\022\303\002\n\033StreamingFetchFeatureValues\022C.goo" + + "gle.cloud.aiplatform.v1beta1.StreamingFe" + + "tchFeatureValuesRequest\032D.google.cloud.a" + + "iplatform.v1beta1.StreamingFetchFeatureV" + + "aluesResponse\"\224\001\332A\027feature_view, data_ke" + + "ys\202\323\344\223\002t\"o/v1beta1/{feature_view=project" + + "s/*/locations/*/featureOnlineStores/*/fe" + + "atureViews/*}:streamingFetchFeatureValue" + + "s:\001*(\0010\001\022\214\002\n\025SearchNearestEntities\022=.goo" + + "gle.cloud.aiplatform.v1beta1.SearchNeare" + + "stEntitiesRequest\032>.google.cloud.aiplatf" + + "orm.v1beta1.SearchNearestEntitiesRespons" + + "e\"t\202\323\344\223\002n\"i/v1beta1/{feature_view=projec" + + "ts/*/locations/*/featureOnlineStores/*/f" + + "eatureViews/*}:searchNearestEntities:\001*\032" + + "M\312A\031aiplatform.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\365" + + "\001\n#com.google.cloud.aiplatform.v1beta1B\036" + + "FeatureOnlineStoreServiceProtoP\001ZCcloud." + + "google.com/go/aiplatform/apiv1beta1/aipl" + + "atformpb;aiplatformpb\252\002\037Google.Cloud.AIP" + + "latform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfor" + + "m\\V1beta1\352\002\"Google::Cloud::AIPlatform::V" + + "1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -308,6 +323,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Embedding", "NeighborCount", "StringFilters", + "NumericFilters", "PerCrowdingAttributeNeighborCount", "Parameters", "Instance", @@ -332,10 +348,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "AllowTokens", "DenyTokens", }); - internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_Parameters_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_NumericFilter_descriptor = internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_descriptor .getNestedTypes() .get(2); + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_NumericFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_NumericFilter_descriptor, + new java.lang.String[] { + "ValueInt", "ValueFloat", "ValueDouble", "Name", "Op", "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_Parameters_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_descriptor + .getNestedTypes() + .get(3); internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_Parameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_Parameters_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateVideoResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateVideoResponse.java new file mode 100644 index 000000000000..8de843640e2f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateVideoResponse.java @@ -0,0 +1,1133 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/prediction_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Generate video response.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenerateVideoResponse} + */ +public final class GenerateVideoResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GenerateVideoResponse) + GenerateVideoResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerateVideoResponse.newBuilder() to construct. + private GenerateVideoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerateVideoResponse() { + generatedSamples_ = com.google.protobuf.LazyStringArrayList.emptyList(); + raiMediaFilteredReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateVideoResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateVideoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateVideoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.class, + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.Builder.class); + } + + private int bitField0_; + public static final int GENERATED_SAMPLES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList generatedSamples_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * The cloud storage uris of the generated videos.
+   * 
+ * + * repeated string generated_samples = 1; + * + * @return A list containing the generatedSamples. + */ + public com.google.protobuf.ProtocolStringList getGeneratedSamplesList() { + return generatedSamples_; + } + /** + * + * + *
+   * The cloud storage uris of the generated videos.
+   * 
+ * + * repeated string generated_samples = 1; + * + * @return The count of generatedSamples. + */ + public int getGeneratedSamplesCount() { + return generatedSamples_.size(); + } + /** + * + * + *
+   * The cloud storage uris of the generated videos.
+   * 
+ * + * repeated string generated_samples = 1; + * + * @param index The index of the element to return. + * @return The generatedSamples at the given index. + */ + public java.lang.String getGeneratedSamples(int index) { + return generatedSamples_.get(index); + } + /** + * + * + *
+   * The cloud storage uris of the generated videos.
+   * 
+ * + * repeated string generated_samples = 1; + * + * @param index The index of the value to return. + * @return The bytes of the generatedSamples at the given index. + */ + public com.google.protobuf.ByteString getGeneratedSamplesBytes(int index) { + return generatedSamples_.getByteString(index); + } + + public static final int RAI_MEDIA_FILTERED_COUNT_FIELD_NUMBER = 2; + private int raiMediaFilteredCount_ = 0; + /** + * + * + *
+   * Returns if any videos were filtered due to RAI policies.
+   * 
+ * + * optional int32 rai_media_filtered_count = 2; + * + * @return Whether the raiMediaFilteredCount field is set. + */ + @java.lang.Override + public boolean hasRaiMediaFilteredCount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Returns if any videos were filtered due to RAI policies.
+   * 
+ * + * optional int32 rai_media_filtered_count = 2; + * + * @return The raiMediaFilteredCount. + */ + @java.lang.Override + public int getRaiMediaFilteredCount() { + return raiMediaFilteredCount_; + } + + public static final int RAI_MEDIA_FILTERED_REASONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList raiMediaFilteredReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Returns rai failure reasons if any.
+   * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @return A list containing the raiMediaFilteredReasons. + */ + public com.google.protobuf.ProtocolStringList getRaiMediaFilteredReasonsList() { + return raiMediaFilteredReasons_; + } + /** + * + * + *
+   * Returns rai failure reasons if any.
+   * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @return The count of raiMediaFilteredReasons. + */ + public int getRaiMediaFilteredReasonsCount() { + return raiMediaFilteredReasons_.size(); + } + /** + * + * + *
+   * Returns rai failure reasons if any.
+   * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @param index The index of the element to return. + * @return The raiMediaFilteredReasons at the given index. + */ + public java.lang.String getRaiMediaFilteredReasons(int index) { + return raiMediaFilteredReasons_.get(index); + } + /** + * + * + *
+   * Returns rai failure reasons if any.
+   * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @param index The index of the value to return. + * @return The bytes of the raiMediaFilteredReasons at the given index. + */ + public com.google.protobuf.ByteString getRaiMediaFilteredReasonsBytes(int index) { + return raiMediaFilteredReasons_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < generatedSamples_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, generatedSamples_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(2, raiMediaFilteredCount_); + } + for (int i = 0; i < raiMediaFilteredReasons_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, raiMediaFilteredReasons_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < generatedSamples_.size(); i++) { + dataSize += computeStringSizeNoTag(generatedSamples_.getRaw(i)); + } + size += dataSize; + size += 1 * getGeneratedSamplesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, raiMediaFilteredCount_); + } + { + int dataSize = 0; + for (int i = 0; i < raiMediaFilteredReasons_.size(); i++) { + dataSize += computeStringSizeNoTag(raiMediaFilteredReasons_.getRaw(i)); + } + size += dataSize; + size += 1 * getRaiMediaFilteredReasonsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse other = + (com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse) obj; + + if (!getGeneratedSamplesList().equals(other.getGeneratedSamplesList())) return false; + if (hasRaiMediaFilteredCount() != other.hasRaiMediaFilteredCount()) return false; + if (hasRaiMediaFilteredCount()) { + if (getRaiMediaFilteredCount() != other.getRaiMediaFilteredCount()) return false; + } + if (!getRaiMediaFilteredReasonsList().equals(other.getRaiMediaFilteredReasonsList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getGeneratedSamplesCount() > 0) { + hash = (37 * hash) + GENERATED_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getGeneratedSamplesList().hashCode(); + } + if (hasRaiMediaFilteredCount()) { + hash = (37 * hash) + RAI_MEDIA_FILTERED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getRaiMediaFilteredCount(); + } + if (getRaiMediaFilteredReasonsCount() > 0) { + hash = (37 * hash) + RAI_MEDIA_FILTERED_REASONS_FIELD_NUMBER; + hash = (53 * hash) + getRaiMediaFilteredReasonsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Generate video response.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenerateVideoResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GenerateVideoResponse) + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateVideoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateVideoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.class, + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + generatedSamples_ = com.google.protobuf.LazyStringArrayList.emptyList(); + raiMediaFilteredCount_ = 0; + raiMediaFilteredReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateVideoResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse build() { + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse result = + new com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + generatedSamples_.makeImmutable(); + result.generatedSamples_ = generatedSamples_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.raiMediaFilteredCount_ = raiMediaFilteredCount_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + raiMediaFilteredReasons_.makeImmutable(); + result.raiMediaFilteredReasons_ = raiMediaFilteredReasons_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.getDefaultInstance()) + return this; + if (!other.generatedSamples_.isEmpty()) { + if (generatedSamples_.isEmpty()) { + generatedSamples_ = other.generatedSamples_; + bitField0_ |= 0x00000001; + } else { + ensureGeneratedSamplesIsMutable(); + generatedSamples_.addAll(other.generatedSamples_); + } + onChanged(); + } + if (other.hasRaiMediaFilteredCount()) { + setRaiMediaFilteredCount(other.getRaiMediaFilteredCount()); + } + if (!other.raiMediaFilteredReasons_.isEmpty()) { + if (raiMediaFilteredReasons_.isEmpty()) { + raiMediaFilteredReasons_ = other.raiMediaFilteredReasons_; + bitField0_ |= 0x00000004; + } else { + ensureRaiMediaFilteredReasonsIsMutable(); + raiMediaFilteredReasons_.addAll(other.raiMediaFilteredReasons_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureGeneratedSamplesIsMutable(); + generatedSamples_.add(s); + break; + } // case 10 + case 16: + { + raiMediaFilteredCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRaiMediaFilteredReasonsIsMutable(); + raiMediaFilteredReasons_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList generatedSamples_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureGeneratedSamplesIsMutable() { + if (!generatedSamples_.isModifiable()) { + generatedSamples_ = new com.google.protobuf.LazyStringArrayList(generatedSamples_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+     * The cloud storage uris of the generated videos.
+     * 
+ * + * repeated string generated_samples = 1; + * + * @return A list containing the generatedSamples. + */ + public com.google.protobuf.ProtocolStringList getGeneratedSamplesList() { + generatedSamples_.makeImmutable(); + return generatedSamples_; + } + /** + * + * + *
+     * The cloud storage uris of the generated videos.
+     * 
+ * + * repeated string generated_samples = 1; + * + * @return The count of generatedSamples. + */ + public int getGeneratedSamplesCount() { + return generatedSamples_.size(); + } + /** + * + * + *
+     * The cloud storage uris of the generated videos.
+     * 
+ * + * repeated string generated_samples = 1; + * + * @param index The index of the element to return. + * @return The generatedSamples at the given index. + */ + public java.lang.String getGeneratedSamples(int index) { + return generatedSamples_.get(index); + } + /** + * + * + *
+     * The cloud storage uris of the generated videos.
+     * 
+ * + * repeated string generated_samples = 1; + * + * @param index The index of the value to return. + * @return The bytes of the generatedSamples at the given index. + */ + public com.google.protobuf.ByteString getGeneratedSamplesBytes(int index) { + return generatedSamples_.getByteString(index); + } + /** + * + * + *
+     * The cloud storage uris of the generated videos.
+     * 
+ * + * repeated string generated_samples = 1; + * + * @param index The index to set the value at. + * @param value The generatedSamples to set. + * @return This builder for chaining. + */ + public Builder setGeneratedSamples(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneratedSamplesIsMutable(); + generatedSamples_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The cloud storage uris of the generated videos.
+     * 
+ * + * repeated string generated_samples = 1; + * + * @param value The generatedSamples to add. + * @return This builder for chaining. + */ + public Builder addGeneratedSamples(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneratedSamplesIsMutable(); + generatedSamples_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The cloud storage uris of the generated videos.
+     * 
+ * + * repeated string generated_samples = 1; + * + * @param values The generatedSamples to add. + * @return This builder for chaining. + */ + public Builder addAllGeneratedSamples(java.lang.Iterable values) { + ensureGeneratedSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, generatedSamples_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The cloud storage uris of the generated videos.
+     * 
+ * + * repeated string generated_samples = 1; + * + * @return This builder for chaining. + */ + public Builder clearGeneratedSamples() { + generatedSamples_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * The cloud storage uris of the generated videos.
+     * 
+ * + * repeated string generated_samples = 1; + * + * @param value The bytes of the generatedSamples to add. + * @return This builder for chaining. + */ + public Builder addGeneratedSamplesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGeneratedSamplesIsMutable(); + generatedSamples_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int raiMediaFilteredCount_; + /** + * + * + *
+     * Returns if any videos were filtered due to RAI policies.
+     * 
+ * + * optional int32 rai_media_filtered_count = 2; + * + * @return Whether the raiMediaFilteredCount field is set. + */ + @java.lang.Override + public boolean hasRaiMediaFilteredCount() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Returns if any videos were filtered due to RAI policies.
+     * 
+ * + * optional int32 rai_media_filtered_count = 2; + * + * @return The raiMediaFilteredCount. + */ + @java.lang.Override + public int getRaiMediaFilteredCount() { + return raiMediaFilteredCount_; + } + /** + * + * + *
+     * Returns if any videos were filtered due to RAI policies.
+     * 
+ * + * optional int32 rai_media_filtered_count = 2; + * + * @param value The raiMediaFilteredCount to set. + * @return This builder for chaining. + */ + public Builder setRaiMediaFilteredCount(int value) { + + raiMediaFilteredCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Returns if any videos were filtered due to RAI policies.
+     * 
+ * + * optional int32 rai_media_filtered_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearRaiMediaFilteredCount() { + bitField0_ = (bitField0_ & ~0x00000002); + raiMediaFilteredCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList raiMediaFilteredReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRaiMediaFilteredReasonsIsMutable() { + if (!raiMediaFilteredReasons_.isModifiable()) { + raiMediaFilteredReasons_ = + new com.google.protobuf.LazyStringArrayList(raiMediaFilteredReasons_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Returns rai failure reasons if any.
+     * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @return A list containing the raiMediaFilteredReasons. + */ + public com.google.protobuf.ProtocolStringList getRaiMediaFilteredReasonsList() { + raiMediaFilteredReasons_.makeImmutable(); + return raiMediaFilteredReasons_; + } + /** + * + * + *
+     * Returns rai failure reasons if any.
+     * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @return The count of raiMediaFilteredReasons. + */ + public int getRaiMediaFilteredReasonsCount() { + return raiMediaFilteredReasons_.size(); + } + /** + * + * + *
+     * Returns rai failure reasons if any.
+     * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @param index The index of the element to return. + * @return The raiMediaFilteredReasons at the given index. + */ + public java.lang.String getRaiMediaFilteredReasons(int index) { + return raiMediaFilteredReasons_.get(index); + } + /** + * + * + *
+     * Returns rai failure reasons if any.
+     * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @param index The index of the value to return. + * @return The bytes of the raiMediaFilteredReasons at the given index. + */ + public com.google.protobuf.ByteString getRaiMediaFilteredReasonsBytes(int index) { + return raiMediaFilteredReasons_.getByteString(index); + } + /** + * + * + *
+     * Returns rai failure reasons if any.
+     * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @param index The index to set the value at. + * @param value The raiMediaFilteredReasons to set. + * @return This builder for chaining. + */ + public Builder setRaiMediaFilteredReasons(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRaiMediaFilteredReasonsIsMutable(); + raiMediaFilteredReasons_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Returns rai failure reasons if any.
+     * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @param value The raiMediaFilteredReasons to add. + * @return This builder for chaining. + */ + public Builder addRaiMediaFilteredReasons(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRaiMediaFilteredReasonsIsMutable(); + raiMediaFilteredReasons_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Returns rai failure reasons if any.
+     * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @param values The raiMediaFilteredReasons to add. + * @return This builder for chaining. + */ + public Builder addAllRaiMediaFilteredReasons(java.lang.Iterable values) { + ensureRaiMediaFilteredReasonsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, raiMediaFilteredReasons_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Returns rai failure reasons if any.
+     * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @return This builder for chaining. + */ + public Builder clearRaiMediaFilteredReasons() { + raiMediaFilteredReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Returns rai failure reasons if any.
+     * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @param value The bytes of the raiMediaFilteredReasons to add. + * @return This builder for chaining. + */ + public Builder addRaiMediaFilteredReasonsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRaiMediaFilteredReasonsIsMutable(); + raiMediaFilteredReasons_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GenerateVideoResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GenerateVideoResponse) + private static final com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateVideoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateVideoResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateVideoResponseOrBuilder.java new file mode 100644 index 000000000000..94b35ee9599f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateVideoResponseOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/prediction_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface GenerateVideoResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GenerateVideoResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The cloud storage uris of the generated videos.
+   * 
+ * + * repeated string generated_samples = 1; + * + * @return A list containing the generatedSamples. + */ + java.util.List getGeneratedSamplesList(); + /** + * + * + *
+   * The cloud storage uris of the generated videos.
+   * 
+ * + * repeated string generated_samples = 1; + * + * @return The count of generatedSamples. + */ + int getGeneratedSamplesCount(); + /** + * + * + *
+   * The cloud storage uris of the generated videos.
+   * 
+ * + * repeated string generated_samples = 1; + * + * @param index The index of the element to return. + * @return The generatedSamples at the given index. + */ + java.lang.String getGeneratedSamples(int index); + /** + * + * + *
+   * The cloud storage uris of the generated videos.
+   * 
+ * + * repeated string generated_samples = 1; + * + * @param index The index of the value to return. + * @return The bytes of the generatedSamples at the given index. + */ + com.google.protobuf.ByteString getGeneratedSamplesBytes(int index); + + /** + * + * + *
+   * Returns if any videos were filtered due to RAI policies.
+   * 
+ * + * optional int32 rai_media_filtered_count = 2; + * + * @return Whether the raiMediaFilteredCount field is set. + */ + boolean hasRaiMediaFilteredCount(); + /** + * + * + *
+   * Returns if any videos were filtered due to RAI policies.
+   * 
+ * + * optional int32 rai_media_filtered_count = 2; + * + * @return The raiMediaFilteredCount. + */ + int getRaiMediaFilteredCount(); + + /** + * + * + *
+   * Returns rai failure reasons if any.
+   * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @return A list containing the raiMediaFilteredReasons. + */ + java.util.List getRaiMediaFilteredReasonsList(); + /** + * + * + *
+   * Returns rai failure reasons if any.
+   * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @return The count of raiMediaFilteredReasons. + */ + int getRaiMediaFilteredReasonsCount(); + /** + * + * + *
+   * Returns rai failure reasons if any.
+   * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @param index The index of the element to return. + * @return The raiMediaFilteredReasons at the given index. + */ + java.lang.String getRaiMediaFilteredReasons(int index); + /** + * + * + *
+   * Returns rai failure reasons if any.
+   * 
+ * + * repeated string rai_media_filtered_reasons = 3; + * + * @param index The index of the value to return. + * @return The bytes of the raiMediaFilteredReasons at the given index. + */ + com.google.protobuf.ByteString getRaiMediaFilteredReasonsBytes(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPublisherModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPublisherModelRequest.java index d65cf60d80ea..2749c36abe6c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPublisherModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPublisherModelRequest.java @@ -134,7 +134,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Optional. The IETF BCP-47 language code representing the language in which
-   * the publisher model's text information should be written in (see go/bcp47).
+   * the publisher model's text information should be written in.
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -158,7 +158,7 @@ public java.lang.String getLanguageCode() { * *
    * Optional. The IETF BCP-47 language code representing the language in which
-   * the publisher model's text information should be written in (see go/bcp47).
+   * the publisher model's text information should be written in.
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -219,6 +219,25 @@ public com.google.cloud.aiplatform.v1beta1.PublisherModelView getView() { : result; } + public static final int IS_HUGGING_FACE_MODEL_FIELD_NUMBER = 5; + private boolean isHuggingFaceModel_ = false; + /** + * + * + *
+   * Optional. Boolean indicates whether the requested model is a Hugging Face
+   * model.
+   * 
+ * + * bool is_hugging_face_model = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isHuggingFaceModel. + */ + @java.lang.Override + public boolean getIsHuggingFaceModel() { + return isHuggingFaceModel_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -244,6 +263,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, view_); } + if (isHuggingFaceModel_ != false) { + output.writeBool(5, isHuggingFaceModel_); + } getUnknownFields().writeTo(output); } @@ -264,6 +286,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, view_); } + if (isHuggingFaceModel_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isHuggingFaceModel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -283,6 +308,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (view_ != other.view_) return false; + if (getIsHuggingFaceModel() != other.getIsHuggingFaceModel()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,6 +326,8 @@ public int hashCode() { hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + view_; + hash = (37 * hash) + IS_HUGGING_FACE_MODEL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsHuggingFaceModel()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -444,6 +472,7 @@ public Builder clear() { name_ = ""; languageCode_ = ""; view_ = 0; + isHuggingFaceModel_ = false; return this; } @@ -491,6 +520,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.view_ = view_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isHuggingFaceModel_ = isHuggingFaceModel_; + } } @java.lang.Override @@ -553,6 +585,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetPublisherModelRe if (other.view_ != 0) { setViewValue(other.getViewValue()); } + if (other.getIsHuggingFaceModel() != false) { + setIsHuggingFaceModel(other.getIsHuggingFaceModel()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -597,6 +632,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 40: + { + isHuggingFaceModel_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -748,7 +789,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher model's text information should be written in (see go/bcp47).
+     * the publisher model's text information should be written in.
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -771,7 +812,7 @@ public java.lang.String getLanguageCode() { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher model's text information should be written in (see go/bcp47).
+     * the publisher model's text information should be written in.
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -794,7 +835,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher model's text information should be written in (see go/bcp47).
+     * the publisher model's text information should be written in.
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -816,7 +857,7 @@ public Builder setLanguageCode(java.lang.String value) { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher model's text information should be written in (see go/bcp47).
+     * the publisher model's text information should be written in.
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -834,7 +875,7 @@ public Builder clearLanguageCode() { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher model's text information should be written in (see go/bcp47).
+     * the publisher model's text information should be written in.
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -955,6 +996,62 @@ public Builder clearView() { return this; } + private boolean isHuggingFaceModel_; + /** + * + * + *
+     * Optional. Boolean indicates whether the requested model is a Hugging Face
+     * model.
+     * 
+ * + * bool is_hugging_face_model = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isHuggingFaceModel. + */ + @java.lang.Override + public boolean getIsHuggingFaceModel() { + return isHuggingFaceModel_; + } + /** + * + * + *
+     * Optional. Boolean indicates whether the requested model is a Hugging Face
+     * model.
+     * 
+ * + * bool is_hugging_face_model = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The isHuggingFaceModel to set. + * @return This builder for chaining. + */ + public Builder setIsHuggingFaceModel(boolean value) { + + isHuggingFaceModel_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Boolean indicates whether the requested model is a Hugging Face
+     * model.
+     * 
+ * + * bool is_hugging_face_model = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIsHuggingFaceModel() { + bitField0_ = (bitField0_ & ~0x00000008); + isHuggingFaceModel_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPublisherModelRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPublisherModelRequestOrBuilder.java index 6b63ca00ddb9..5c8cfd7ccee4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPublisherModelRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPublisherModelRequestOrBuilder.java @@ -62,7 +62,7 @@ public interface GetPublisherModelRequestOrBuilder * *
    * Optional. The IETF BCP-47 language code representing the language in which
-   * the publisher model's text information should be written in (see go/bcp47).
+   * the publisher model's text information should be written in.
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -75,7 +75,7 @@ public interface GetPublisherModelRequestOrBuilder * *
    * Optional. The IETF BCP-47 language code representing the language in which
-   * the publisher model's text information should be written in (see go/bcp47).
+   * the publisher model's text information should be written in.
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -112,4 +112,18 @@ public interface GetPublisherModelRequestOrBuilder * @return The view. */ com.google.cloud.aiplatform.v1beta1.PublisherModelView getView(); + + /** + * + * + *
+   * Optional. Boolean indicates whether the requested model is a Hugging Face
+   * model.
+   * 
+ * + * bool is_hugging_face_model = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isHuggingFaceModel. + */ + boolean getIsHuggingFaceModel(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java index c284a568311f..78db3c4a3f10 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java @@ -73,6 +73,8 @@ public enum ImportSourceCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(2), GOOGLE_DRIVE_SOURCE(3), + SLACK_SOURCE(6), + JIRA_SOURCE(7), IMPORTSOURCE_NOT_SET(0); private final int value; @@ -95,6 +97,10 @@ public static ImportSourceCase forNumber(int value) { return GCS_SOURCE; case 3: return GOOGLE_DRIVE_SOURCE; + case 6: + return SLACK_SOURCE; + case 7: + return JIRA_SOURCE; case 0: return IMPORTSOURCE_NOT_SET; default: @@ -226,6 +232,108 @@ public com.google.cloud.aiplatform.v1beta1.GoogleDriveSource getGoogleDriveSourc return com.google.cloud.aiplatform.v1beta1.GoogleDriveSource.getDefaultInstance(); } + public static final int SLACK_SOURCE_FIELD_NUMBER = 6; + /** + * + * + *
+   * Slack channels with their corresponding access tokens.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + * + * @return Whether the slackSource field is set. + */ + @java.lang.Override + public boolean hasSlackSource() { + return importSourceCase_ == 6; + } + /** + * + * + *
+   * Slack channels with their corresponding access tokens.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + * + * @return The slackSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource getSlackSource() { + if (importSourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.SlackSource) importSource_; + } + return com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance(); + } + /** + * + * + *
+   * Slack channels with their corresponding access tokens.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSourceOrBuilder getSlackSourceOrBuilder() { + if (importSourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.SlackSource) importSource_; + } + return com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance(); + } + + public static final int JIRA_SOURCE_FIELD_NUMBER = 7; + /** + * + * + *
+   * Jira queries with their corresponding authentication.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + * + * @return Whether the jiraSource field is set. + */ + @java.lang.Override + public boolean hasJiraSource() { + return importSourceCase_ == 7; + } + /** + * + * + *
+   * Jira queries with their corresponding authentication.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + * + * @return The jiraSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSource getJiraSource() { + if (importSourceCase_ == 7) { + return (com.google.cloud.aiplatform.v1beta1.JiraSource) importSource_; + } + return com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance(); + } + /** + * + * + *
+   * Jira queries with their corresponding authentication.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSourceOrBuilder getJiraSourceOrBuilder() { + if (importSourceCase_ == 7) { + return (com.google.cloud.aiplatform.v1beta1.JiraSource) importSource_; + } + return com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance(); + } + public static final int RAG_FILE_CHUNKING_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig ragFileChunkingConfig_; /** @@ -329,6 +437,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxEmbeddingRequestsPerMin_ != 0) { output.writeInt32(5, maxEmbeddingRequestsPerMin_); } + if (importSourceCase_ == 6) { + output.writeMessage(6, (com.google.cloud.aiplatform.v1beta1.SlackSource) importSource_); + } + if (importSourceCase_ == 7) { + output.writeMessage(7, (com.google.cloud.aiplatform.v1beta1.JiraSource) importSource_); + } getUnknownFields().writeTo(output); } @@ -356,6 +470,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxEmbeddingRequestsPerMin_); } + if (importSourceCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.aiplatform.v1beta1.SlackSource) importSource_); + } + if (importSourceCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.aiplatform.v1beta1.JiraSource) importSource_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -385,6 +509,12 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getGoogleDriveSource().equals(other.getGoogleDriveSource())) return false; break; + case 6: + if (!getSlackSource().equals(other.getSlackSource())) return false; + break; + case 7: + if (!getJiraSource().equals(other.getJiraSource())) return false; + break; case 0: default: } @@ -414,6 +544,14 @@ public int hashCode() { hash = (37 * hash) + GOOGLE_DRIVE_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getGoogleDriveSource().hashCode(); break; + case 6: + hash = (37 * hash) + SLACK_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSlackSource().hashCode(); + break; + case 7: + hash = (37 * hash) + JIRA_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getJiraSource().hashCode(); + break; case 0: default: } @@ -572,6 +710,12 @@ public Builder clear() { if (googleDriveSourceBuilder_ != null) { googleDriveSourceBuilder_.clear(); } + if (slackSourceBuilder_ != null) { + slackSourceBuilder_.clear(); + } + if (jiraSourceBuilder_ != null) { + jiraSourceBuilder_.clear(); + } ragFileChunkingConfig_ = null; if (ragFileChunkingConfigBuilder_ != null) { ragFileChunkingConfigBuilder_.dispose(); @@ -618,14 +762,14 @@ public com.google.cloud.aiplatform.v1beta1.ImportRagFilesConfig buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ImportRagFilesConfig result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.ragFileChunkingConfig_ = ragFileChunkingConfigBuilder_ == null ? ragFileChunkingConfig_ : ragFileChunkingConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.maxEmbeddingRequestsPerMin_ = maxEmbeddingRequestsPerMin_; } result.bitField0_ |= to_bitField0_; @@ -641,6 +785,12 @@ private void buildPartialOneofs( if (importSourceCase_ == 3 && googleDriveSourceBuilder_ != null) { result.importSource_ = googleDriveSourceBuilder_.build(); } + if (importSourceCase_ == 6 && slackSourceBuilder_ != null) { + result.importSource_ = slackSourceBuilder_.build(); + } + if (importSourceCase_ == 7 && jiraSourceBuilder_ != null) { + result.importSource_ = jiraSourceBuilder_.build(); + } } @java.lang.Override @@ -706,6 +856,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ImportRagFilesConfi mergeGoogleDriveSource(other.getGoogleDriveSource()); break; } + case SLACK_SOURCE: + { + mergeSlackSource(other.getSlackSource()); + break; + } + case JIRA_SOURCE: + { + mergeJiraSource(other.getJiraSource()); + break; + } case IMPORTSOURCE_NOT_SET: { break; @@ -754,15 +914,27 @@ public Builder mergeFrom( { input.readMessage( getRagFileChunkingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 34 case 40: { maxEmbeddingRequestsPerMin_ = input.readInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 40 + case 50: + { + input.readMessage(getSlackSourceFieldBuilder().getBuilder(), extensionRegistry); + importSourceCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getJiraSourceFieldBuilder().getBuilder(), extensionRegistry); + importSourceCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1257,6 +1429,426 @@ public Builder clearGoogleDriveSource() { return googleDriveSourceBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SlackSource, + com.google.cloud.aiplatform.v1beta1.SlackSource.Builder, + com.google.cloud.aiplatform.v1beta1.SlackSourceOrBuilder> + slackSourceBuilder_; + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + * + * @return Whether the slackSource field is set. + */ + @java.lang.Override + public boolean hasSlackSource() { + return importSourceCase_ == 6; + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + * + * @return The slackSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource getSlackSource() { + if (slackSourceBuilder_ == null) { + if (importSourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.SlackSource) importSource_; + } + return com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance(); + } else { + if (importSourceCase_ == 6) { + return slackSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + */ + public Builder setSlackSource(com.google.cloud.aiplatform.v1beta1.SlackSource value) { + if (slackSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importSource_ = value; + onChanged(); + } else { + slackSourceBuilder_.setMessage(value); + } + importSourceCase_ = 6; + return this; + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + */ + public Builder setSlackSource( + com.google.cloud.aiplatform.v1beta1.SlackSource.Builder builderForValue) { + if (slackSourceBuilder_ == null) { + importSource_ = builderForValue.build(); + onChanged(); + } else { + slackSourceBuilder_.setMessage(builderForValue.build()); + } + importSourceCase_ = 6; + return this; + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + */ + public Builder mergeSlackSource(com.google.cloud.aiplatform.v1beta1.SlackSource value) { + if (slackSourceBuilder_ == null) { + if (importSourceCase_ == 6 + && importSource_ + != com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance()) { + importSource_ = + com.google.cloud.aiplatform.v1beta1.SlackSource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.SlackSource) importSource_) + .mergeFrom(value) + .buildPartial(); + } else { + importSource_ = value; + } + onChanged(); + } else { + if (importSourceCase_ == 6) { + slackSourceBuilder_.mergeFrom(value); + } else { + slackSourceBuilder_.setMessage(value); + } + } + importSourceCase_ = 6; + return this; + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + */ + public Builder clearSlackSource() { + if (slackSourceBuilder_ == null) { + if (importSourceCase_ == 6) { + importSourceCase_ = 0; + importSource_ = null; + onChanged(); + } + } else { + if (importSourceCase_ == 6) { + importSourceCase_ = 0; + importSource_ = null; + } + slackSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + */ + public com.google.cloud.aiplatform.v1beta1.SlackSource.Builder getSlackSourceBuilder() { + return getSlackSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSourceOrBuilder getSlackSourceOrBuilder() { + if ((importSourceCase_ == 6) && (slackSourceBuilder_ != null)) { + return slackSourceBuilder_.getMessageOrBuilder(); + } else { + if (importSourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.SlackSource) importSource_; + } + return com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SlackSource, + com.google.cloud.aiplatform.v1beta1.SlackSource.Builder, + com.google.cloud.aiplatform.v1beta1.SlackSourceOrBuilder> + getSlackSourceFieldBuilder() { + if (slackSourceBuilder_ == null) { + if (!(importSourceCase_ == 6)) { + importSource_ = com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance(); + } + slackSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SlackSource, + com.google.cloud.aiplatform.v1beta1.SlackSource.Builder, + com.google.cloud.aiplatform.v1beta1.SlackSourceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.SlackSource) importSource_, + getParentForChildren(), + isClean()); + importSource_ = null; + } + importSourceCase_ = 6; + onChanged(); + return slackSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.JiraSource, + com.google.cloud.aiplatform.v1beta1.JiraSource.Builder, + com.google.cloud.aiplatform.v1beta1.JiraSourceOrBuilder> + jiraSourceBuilder_; + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + * + * @return Whether the jiraSource field is set. + */ + @java.lang.Override + public boolean hasJiraSource() { + return importSourceCase_ == 7; + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + * + * @return The jiraSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSource getJiraSource() { + if (jiraSourceBuilder_ == null) { + if (importSourceCase_ == 7) { + return (com.google.cloud.aiplatform.v1beta1.JiraSource) importSource_; + } + return com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance(); + } else { + if (importSourceCase_ == 7) { + return jiraSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + */ + public Builder setJiraSource(com.google.cloud.aiplatform.v1beta1.JiraSource value) { + if (jiraSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importSource_ = value; + onChanged(); + } else { + jiraSourceBuilder_.setMessage(value); + } + importSourceCase_ = 7; + return this; + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + */ + public Builder setJiraSource( + com.google.cloud.aiplatform.v1beta1.JiraSource.Builder builderForValue) { + if (jiraSourceBuilder_ == null) { + importSource_ = builderForValue.build(); + onChanged(); + } else { + jiraSourceBuilder_.setMessage(builderForValue.build()); + } + importSourceCase_ = 7; + return this; + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + */ + public Builder mergeJiraSource(com.google.cloud.aiplatform.v1beta1.JiraSource value) { + if (jiraSourceBuilder_ == null) { + if (importSourceCase_ == 7 + && importSource_ + != com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance()) { + importSource_ = + com.google.cloud.aiplatform.v1beta1.JiraSource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.JiraSource) importSource_) + .mergeFrom(value) + .buildPartial(); + } else { + importSource_ = value; + } + onChanged(); + } else { + if (importSourceCase_ == 7) { + jiraSourceBuilder_.mergeFrom(value); + } else { + jiraSourceBuilder_.setMessage(value); + } + } + importSourceCase_ = 7; + return this; + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + */ + public Builder clearJiraSource() { + if (jiraSourceBuilder_ == null) { + if (importSourceCase_ == 7) { + importSourceCase_ = 0; + importSource_ = null; + onChanged(); + } + } else { + if (importSourceCase_ == 7) { + importSourceCase_ = 0; + importSource_ = null; + } + jiraSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + */ + public com.google.cloud.aiplatform.v1beta1.JiraSource.Builder getJiraSourceBuilder() { + return getJiraSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSourceOrBuilder getJiraSourceOrBuilder() { + if ((importSourceCase_ == 7) && (jiraSourceBuilder_ != null)) { + return jiraSourceBuilder_.getMessageOrBuilder(); + } else { + if (importSourceCase_ == 7) { + return (com.google.cloud.aiplatform.v1beta1.JiraSource) importSource_; + } + return com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.JiraSource, + com.google.cloud.aiplatform.v1beta1.JiraSource.Builder, + com.google.cloud.aiplatform.v1beta1.JiraSourceOrBuilder> + getJiraSourceFieldBuilder() { + if (jiraSourceBuilder_ == null) { + if (!(importSourceCase_ == 7)) { + importSource_ = com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance(); + } + jiraSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.JiraSource, + com.google.cloud.aiplatform.v1beta1.JiraSource.Builder, + com.google.cloud.aiplatform.v1beta1.JiraSourceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.JiraSource) importSource_, + getParentForChildren(), + isClean()); + importSource_ = null; + } + importSourceCase_ = 7; + onChanged(); + return jiraSourceBuilder_; + } + private com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig ragFileChunkingConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig, @@ -1276,7 +1868,7 @@ public Builder clearGoogleDriveSource() { * @return Whether the ragFileChunkingConfig field is set. */ public boolean hasRagFileChunkingConfig() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1319,7 +1911,7 @@ public Builder setRagFileChunkingConfig( } else { ragFileChunkingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1340,7 +1932,7 @@ public Builder setRagFileChunkingConfig( } else { ragFileChunkingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1357,7 +1949,7 @@ public Builder setRagFileChunkingConfig( public Builder mergeRagFileChunkingConfig( com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig value) { if (ragFileChunkingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000010) != 0) && ragFileChunkingConfig_ != null && ragFileChunkingConfig_ != com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.getDefaultInstance()) { @@ -1369,7 +1961,7 @@ public Builder mergeRagFileChunkingConfig( ragFileChunkingConfigBuilder_.mergeFrom(value); } if (ragFileChunkingConfig_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -1385,7 +1977,7 @@ public Builder mergeRagFileChunkingConfig( *
*/ public Builder clearRagFileChunkingConfig() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); ragFileChunkingConfig_ = null; if (ragFileChunkingConfigBuilder_ != null) { ragFileChunkingConfigBuilder_.dispose(); @@ -1406,7 +1998,7 @@ public Builder clearRagFileChunkingConfig() { */ public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.Builder getRagFileChunkingConfigBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return getRagFileChunkingConfigFieldBuilder().getBuilder(); } @@ -1498,7 +2090,7 @@ public int getMaxEmbeddingRequestsPerMin() { public Builder setMaxEmbeddingRequestsPerMin(int value) { maxEmbeddingRequestsPerMin_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1519,7 +2111,7 @@ public Builder setMaxEmbeddingRequestsPerMin(int value) { * @return This builder for chaining. */ public Builder clearMaxEmbeddingRequestsPerMin() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); maxEmbeddingRequestsPerMin_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java index 5bd8358eecd8..f29152e04154 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java @@ -106,6 +106,76 @@ public interface ImportRagFilesConfigOrBuilder */ com.google.cloud.aiplatform.v1beta1.GoogleDriveSourceOrBuilder getGoogleDriveSourceOrBuilder(); + /** + * + * + *
+   * Slack channels with their corresponding access tokens.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + * + * @return Whether the slackSource field is set. + */ + boolean hasSlackSource(); + /** + * + * + *
+   * Slack channels with their corresponding access tokens.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + * + * @return The slackSource. + */ + com.google.cloud.aiplatform.v1beta1.SlackSource getSlackSource(); + /** + * + * + *
+   * Slack channels with their corresponding access tokens.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6; + */ + com.google.cloud.aiplatform.v1beta1.SlackSourceOrBuilder getSlackSourceOrBuilder(); + + /** + * + * + *
+   * Jira queries with their corresponding authentication.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + * + * @return Whether the jiraSource field is set. + */ + boolean hasJiraSource(); + /** + * + * + *
+   * Jira queries with their corresponding authentication.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + * + * @return The jiraSource. + */ + com.google.cloud.aiplatform.v1beta1.JiraSource getJiraSource(); + /** + * + * + *
+   * Jira queries with their corresponding authentication.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7; + */ + com.google.cloud.aiplatform.v1beta1.JiraSourceOrBuilder getJiraSourceOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java index 85ce43c5866a..424271780e0d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java @@ -76,6 +76,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_DirectUploadSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_DirectUploadSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_SlackChannel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_SlackChannel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_JiraSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_JiraSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_JiraSource_JiraQueries_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_JiraSource_JiraQueries_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -87,43 +107,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n(google/cloud/aiplatform/v1beta1/io.pro" + "to\022\037google.cloud.aiplatform.v1beta1\032\037goo" - + "gle/api/field_behavior.proto\"Q\n\nAvroSour" - + "ce\022C\n\ngcs_source\030\001 \001(\0132*.google.cloud.ai" - + "platform.v1beta1.GcsSourceB\003\340A\002\"P\n\tCsvSo" - + "urce\022C\n\ngcs_source\030\001 \001(\0132*.google.cloud." - + "aiplatform.v1beta1.GcsSourceB\003\340A\002\"\036\n\tGcs" - + "Source\022\021\n\004uris\030\001 \003(\tB\003\340A\002\"0\n\016GcsDestinat" - + "ion\022\036\n\021output_uri_prefix\030\001 \001(\tB\003\340A\002\"(\n\016B" - + "igQuerySource\022\026\n\tinput_uri\030\001 \001(\tB\003\340A\002\".\n" - + "\023BigQueryDestination\022\027\n\noutput_uri\030\001 \001(\t" - + "B\003\340A\002\"_\n\016CsvDestination\022M\n\017gcs_destinati" - + "on\030\001 \001(\0132/.google.cloud.aiplatform.v1bet" - + "a1.GcsDestinationB\003\340A\002\"d\n\023TFRecordDestin" - + "ation\022M\n\017gcs_destination\030\001 \001(\0132/.google." - + "cloud.aiplatform.v1beta1.GcsDestinationB" - + "\003\340A\002\"7\n\034ContainerRegistryDestination\022\027\n\n" - + "output_uri\030\001 \001(\tB\003\340A\002\"\337\002\n\021GoogleDriveSou" - + "rce\022X\n\014resource_ids\030\001 \003(\0132=.google.cloud" - + ".aiplatform.v1beta1.GoogleDriveSource.Re" - + "sourceIdB\003\340A\002\032\357\001\n\nResourceId\022f\n\rresource" - + "_type\030\001 \001(\0162J.google.cloud.aiplatform.v1" - + "beta1.GoogleDriveSource.ResourceId.Resou" - + "rceTypeB\003\340A\002\022\030\n\013resource_id\030\002 \001(\tB\003\340A\002\"_" - + "\n\014ResourceType\022\035\n\031RESOURCE_TYPE_UNSPECIF" - + "IED\020\000\022\026\n\022RESOURCE_TYPE_FILE\020\001\022\030\n\024RESOURC" - + "E_TYPE_FOLDER\020\002\"\024\n\022DirectUploadSourceB\336\001" - + "\n#com.google.cloud.aiplatform.v1beta1B\007I" - + "oProtoP\001ZCcloud.google.com/go/aiplatform" - + "/apiv1beta1/aiplatformpb;aiplatformpb\252\002\037" - + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google" - + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clou" - + "d::AIPlatform::V1beta1b\006proto3" + + "gle/api/field_behavior.proto\032.google/clo" + + "ud/aiplatform/v1beta1/api_auth.proto\032\037go" + + "ogle/protobuf/timestamp.proto\"Q\n\nAvroSou" + + "rce\022C\n\ngcs_source\030\001 \001(\0132*.google.cloud.a" + + "iplatform.v1beta1.GcsSourceB\003\340A\002\"P\n\tCsvS" + + "ource\022C\n\ngcs_source\030\001 \001(\0132*.google.cloud" + + ".aiplatform.v1beta1.GcsSourceB\003\340A\002\"\036\n\tGc" + + "sSource\022\021\n\004uris\030\001 \003(\tB\003\340A\002\"0\n\016GcsDestina" + + "tion\022\036\n\021output_uri_prefix\030\001 \001(\tB\003\340A\002\"(\n\016" + + "BigQuerySource\022\026\n\tinput_uri\030\001 \001(\tB\003\340A\002\"." + + "\n\023BigQueryDestination\022\027\n\noutput_uri\030\001 \001(" + + "\tB\003\340A\002\"_\n\016CsvDestination\022M\n\017gcs_destinat" + + "ion\030\001 \001(\0132/.google.cloud.aiplatform.v1be" + + "ta1.GcsDestinationB\003\340A\002\"d\n\023TFRecordDesti" + + "nation\022M\n\017gcs_destination\030\001 \001(\0132/.google" + + ".cloud.aiplatform.v1beta1.GcsDestination" + + "B\003\340A\002\"7\n\034ContainerRegistryDestination\022\027\n" + + "\noutput_uri\030\001 \001(\tB\003\340A\002\"\337\002\n\021GoogleDriveSo" + + "urce\022X\n\014resource_ids\030\001 \003(\0132=.google.clou" + + "d.aiplatform.v1beta1.GoogleDriveSource.R" + + "esourceIdB\003\340A\002\032\357\001\n\nResourceId\022f\n\rresourc" + + "e_type\030\001 \001(\0162J.google.cloud.aiplatform.v" + + "1beta1.GoogleDriveSource.ResourceId.Reso" + + "urceTypeB\003\340A\002\022\030\n\013resource_id\030\002 \001(\tB\003\340A\002\"" + + "_\n\014ResourceType\022\035\n\031RESOURCE_TYPE_UNSPECI" + + "FIED\020\000\022\026\n\022RESOURCE_TYPE_FILE\020\001\022\030\n\024RESOUR" + + "CE_TYPE_FOLDER\020\002\"\024\n\022DirectUploadSource\"\270" + + "\003\n\013SlackSource\022Q\n\010channels\030\001 \003(\0132:.googl" + + "e.cloud.aiplatform.v1beta1.SlackSource.S" + + "lackChannelsB\003\340A\002\032\325\002\n\rSlackChannels\022^\n\010c" + + "hannels\030\001 \003(\0132G.google.cloud.aiplatform." + + "v1beta1.SlackSource.SlackChannels.SlackC" + + "hannelB\003\340A\002\022R\n\016api_key_config\030\003 \001(\01325.go" + + "ogle.cloud.aiplatform.v1beta1.ApiAuth.Ap" + + "iKeyConfigB\003\340A\002\032\217\001\n\014SlackChannel\022\027\n\nchan" + + "nel_id\030\001 \001(\tB\003\340A\002\0223\n\nstart_time\030\002 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\001\0221\n\010end_ti" + + "me\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\001\"\233\002\n\nJiraSource\022R\n\014jira_queries\030\001 \003(\01327" + + ".google.cloud.aiplatform.v1beta1.JiraSou" + + "rce.JiraQueriesB\003\340A\002\032\270\001\n\013JiraQueries\022\020\n\010" + + "projects\030\003 \003(\t\022\026\n\016custom_queries\030\004 \003(\t\022\022" + + "\n\005email\030\005 \001(\tB\003\340A\002\022\027\n\nserver_uri\030\006 \001(\tB\003" + + "\340A\002\022R\n\016api_key_config\030\007 \001(\01325.google.clo" + + "ud.aiplatform.v1beta1.ApiAuth.ApiKeyConf" + + "igB\003\340A\002B\336\001\n#com.google.cloud.aiplatform." + + "v1beta1B\007IoProtoP\001ZCcloud.google.com/go/" + + "aiplatform/apiv1beta1/aiplatformpb;aipla" + + "tformpb\252\002\037Google.Cloud.AIPlatform.V1Beta" + + "1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Go" + + "ogle::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ApiAuthProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_AvroSource_descriptor = getDescriptor().getMessageTypes().get(0); @@ -221,12 +263,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DirectUploadSource_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_descriptor, + new java.lang.String[] { + "Channels", + }); + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_descriptor, + new java.lang.String[] { + "Channels", "ApiKeyConfig", + }); + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_SlackChannel_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_SlackChannel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_SlackChannel_descriptor, + new java.lang.String[] { + "ChannelId", "StartTime", "EndTime", + }); + internal_static_google_cloud_aiplatform_v1beta1_JiraSource_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_aiplatform_v1beta1_JiraSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_JiraSource_descriptor, + new java.lang.String[] { + "JiraQueries", + }); + internal_static_google_cloud_aiplatform_v1beta1_JiraSource_JiraQueries_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_JiraSource_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_JiraSource_JiraQueries_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_JiraSource_JiraQueries_descriptor, + new java.lang.String[] { + "Projects", "CustomQueries", "Email", "ServerUri", "ApiKeyConfig", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ApiAuthProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JiraSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JiraSource.java new file mode 100644 index 000000000000..b1f45e073979 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JiraSource.java @@ -0,0 +1,2943 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/io.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The Jira source for the ImportRagFilesRequest.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.JiraSource} + */ +public final class JiraSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.JiraSource) + JiraSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use JiraSource.newBuilder() to construct. + private JiraSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JiraSource() { + jiraQueries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new JiraSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_JiraSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_JiraSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.JiraSource.class, + com.google.cloud.aiplatform.v1beta1.JiraSource.Builder.class); + } + + public interface JiraQueriesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @return A list containing the projects. + */ + java.util.List getProjectsList(); + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @return The count of projects. + */ + int getProjectsCount(); + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @param index The index of the element to return. + * @return The projects at the given index. + */ + java.lang.String getProjects(int index); + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @param index The index of the value to return. + * @return The bytes of the projects at the given index. + */ + com.google.protobuf.ByteString getProjectsBytes(int index); + + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @return A list containing the customQueries. + */ + java.util.List getCustomQueriesList(); + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @return The count of customQueries. + */ + int getCustomQueriesCount(); + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @param index The index of the element to return. + * @return The customQueries at the given index. + */ + java.lang.String getCustomQueries(int index); + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @param index The index of the value to return. + * @return The bytes of the customQueries at the given index. + */ + com.google.protobuf.ByteString getCustomQueriesBytes(int index); + + /** + * + * + *
+     * Required. The Jira email address.
+     * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The email. + */ + java.lang.String getEmail(); + /** + * + * + *
+     * Required. The Jira email address.
+     * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for email. + */ + com.google.protobuf.ByteString getEmailBytes(); + + /** + * + * + *
+     * Required. The Jira server URI.
+     * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serverUri. + */ + java.lang.String getServerUri(); + /** + * + * + *
+     * Required. The Jira server URI.
+     * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serverUri. + */ + com.google.protobuf.ByteString getServerUriBytes(); + + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Jira API key
+     * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + boolean hasApiKeyConfig(); + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Jira API key
+     * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The apiKeyConfig. + */ + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig getApiKeyConfig(); + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Jira API key
+     * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder(); + } + /** + * + * + *
+   * JiraQueries contains the Jira queries and corresponding authentication.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries} + */ + public static final class JiraQueries extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries) + JiraQueriesOrBuilder { + private static final long serialVersionUID = 0L; + // Use JiraQueries.newBuilder() to construct. + private JiraQueries(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JiraQueries() { + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + customQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + email_ = ""; + serverUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new JiraQueries(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_JiraSource_JiraQueries_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_JiraSource_JiraQueries_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.class, + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.Builder.class); + } + + private int bitField0_; + public static final int PROJECTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @return A list containing the projects. + */ + public com.google.protobuf.ProtocolStringList getProjectsList() { + return projects_; + } + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @return The count of projects. + */ + public int getProjectsCount() { + return projects_.size(); + } + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @param index The index of the element to return. + * @return The projects at the given index. + */ + public java.lang.String getProjects(int index) { + return projects_.get(index); + } + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @param index The index of the value to return. + * @return The bytes of the projects at the given index. + */ + public com.google.protobuf.ByteString getProjectsBytes(int index) { + return projects_.getByteString(index); + } + + public static final int CUSTOM_QUERIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList customQueries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @return A list containing the customQueries. + */ + public com.google.protobuf.ProtocolStringList getCustomQueriesList() { + return customQueries_; + } + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @return The count of customQueries. + */ + public int getCustomQueriesCount() { + return customQueries_.size(); + } + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @param index The index of the element to return. + * @return The customQueries at the given index. + */ + public java.lang.String getCustomQueries(int index) { + return customQueries_.get(index); + } + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @param index The index of the value to return. + * @return The bytes of the customQueries at the given index. + */ + public com.google.protobuf.ByteString getCustomQueriesBytes(int index) { + return customQueries_.getByteString(index); + } + + public static final int EMAIL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object email_ = ""; + /** + * + * + *
+     * Required. The Jira email address.
+     * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The Jira email address.
+     * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVER_URI_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object serverUri_ = ""; + /** + * + * + *
+     * Required. The Jira server URI.
+     * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serverUri. + */ + @java.lang.Override + public java.lang.String getServerUri() { + java.lang.Object ref = serverUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serverUri_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The Jira server URI.
+     * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serverUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServerUriBytes() { + java.lang.Object ref = serverUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int API_KEY_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig apiKeyConfig_; + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Jira API key
+     * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + @java.lang.Override + public boolean hasApiKeyConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Jira API key
+     * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The apiKeyConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig getApiKeyConfig() { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Jira API key
+     * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfigOrBuilder + getApiKeyConfigOrBuilder() { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < projects_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, projects_.getRaw(i)); + } + for (int i = 0; i < customQueries_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, customQueries_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, email_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serverUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getApiKeyConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < projects_.size(); i++) { + dataSize += computeStringSizeNoTag(projects_.getRaw(i)); + } + size += dataSize; + size += 1 * getProjectsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < customQueries_.size(); i++) { + dataSize += computeStringSizeNoTag(customQueries_.getRaw(i)); + } + size += dataSize; + size += 1 * getCustomQueriesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, email_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serverUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getApiKeyConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries other = + (com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries) obj; + + if (!getProjectsList().equals(other.getProjectsList())) return false; + if (!getCustomQueriesList().equals(other.getCustomQueriesList())) return false; + if (!getEmail().equals(other.getEmail())) return false; + if (!getServerUri().equals(other.getServerUri())) return false; + if (hasApiKeyConfig() != other.hasApiKeyConfig()) return false; + if (hasApiKeyConfig()) { + if (!getApiKeyConfig().equals(other.getApiKeyConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProjectsCount() > 0) { + hash = (37 * hash) + PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getProjectsList().hashCode(); + } + if (getCustomQueriesCount() > 0) { + hash = (37 * hash) + CUSTOM_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getCustomQueriesList().hashCode(); + } + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (37 * hash) + SERVER_URI_FIELD_NUMBER; + hash = (53 * hash) + getServerUri().hashCode(); + if (hasApiKeyConfig()) { + hash = (37 * hash) + API_KEY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getApiKeyConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * JiraQueries contains the Jira queries and corresponding authentication.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries) + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueriesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_JiraSource_JiraQueries_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_JiraSource_JiraQueries_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.class, + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getApiKeyConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + customQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + email_ = ""; + serverUri_ = ""; + apiKeyConfig_ = null; + if (apiKeyConfigBuilder_ != null) { + apiKeyConfigBuilder_.dispose(); + apiKeyConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_JiraSource_JiraQueries_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries build() { + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries buildPartial() { + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries result = + new com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + projects_.makeImmutable(); + result.projects_ = projects_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + customQueries_.makeImmutable(); + result.customQueries_ = customQueries_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.email_ = email_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serverUri_ = serverUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.apiKeyConfig_ = + apiKeyConfigBuilder_ == null ? apiKeyConfig_ : apiKeyConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries other) { + if (other + == com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.getDefaultInstance()) + return this; + if (!other.projects_.isEmpty()) { + if (projects_.isEmpty()) { + projects_ = other.projects_; + bitField0_ |= 0x00000001; + } else { + ensureProjectsIsMutable(); + projects_.addAll(other.projects_); + } + onChanged(); + } + if (!other.customQueries_.isEmpty()) { + if (customQueries_.isEmpty()) { + customQueries_ = other.customQueries_; + bitField0_ |= 0x00000002; + } else { + ensureCustomQueriesIsMutable(); + customQueries_.addAll(other.customQueries_); + } + onChanged(); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getServerUri().isEmpty()) { + serverUri_ = other.serverUri_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasApiKeyConfig()) { + mergeApiKeyConfig(other.getApiKeyConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectsIsMutable(); + projects_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCustomQueriesIsMutable(); + customQueries_.add(s); + break; + } // case 34 + case 42: + { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 50: + { + serverUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 58: + { + input.readMessage(getApiKeyConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProjectsIsMutable() { + if (!projects_.isModifiable()) { + projects_ = new com.google.protobuf.LazyStringArrayList(projects_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @return A list containing the projects. + */ + public com.google.protobuf.ProtocolStringList getProjectsList() { + projects_.makeImmutable(); + return projects_; + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @return The count of projects. + */ + public int getProjectsCount() { + return projects_.size(); + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @param index The index of the element to return. + * @return The projects at the given index. + */ + public java.lang.String getProjects(int index) { + return projects_.get(index); + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @param index The index of the value to return. + * @return The bytes of the projects at the given index. + */ + public com.google.protobuf.ByteString getProjectsBytes(int index) { + return projects_.getByteString(index); + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @param index The index to set the value at. + * @param value The projects to set. + * @return This builder for chaining. + */ + public Builder setProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @param value The projects to add. + * @return This builder for chaining. + */ + public Builder addProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @param values The projects to add. + * @return This builder for chaining. + */ + public Builder addAllProjects(java.lang.Iterable values) { + ensureProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projects_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @return This builder for chaining. + */ + public Builder clearProjects() { + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @param value The bytes of the projects to add. + * @return This builder for chaining. + */ + public Builder addProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProjectsIsMutable(); + projects_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList customQueries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCustomQueriesIsMutable() { + if (!customQueries_.isModifiable()) { + customQueries_ = new com.google.protobuf.LazyStringArrayList(customQueries_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @return A list containing the customQueries. + */ + public com.google.protobuf.ProtocolStringList getCustomQueriesList() { + customQueries_.makeImmutable(); + return customQueries_; + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @return The count of customQueries. + */ + public int getCustomQueriesCount() { + return customQueries_.size(); + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @param index The index of the element to return. + * @return The customQueries at the given index. + */ + public java.lang.String getCustomQueries(int index) { + return customQueries_.get(index); + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @param index The index of the value to return. + * @return The bytes of the customQueries at the given index. + */ + public com.google.protobuf.ByteString getCustomQueriesBytes(int index) { + return customQueries_.getByteString(index); + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @param index The index to set the value at. + * @param value The customQueries to set. + * @return This builder for chaining. + */ + public Builder setCustomQueries(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomQueriesIsMutable(); + customQueries_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @param value The customQueries to add. + * @return This builder for chaining. + */ + public Builder addCustomQueries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomQueriesIsMutable(); + customQueries_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @param values The customQueries to add. + * @return This builder for chaining. + */ + public Builder addAllCustomQueries(java.lang.Iterable values) { + ensureCustomQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customQueries_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @return This builder for chaining. + */ + public Builder clearCustomQueries() { + customQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @param value The bytes of the customQueries to add. + * @return This builder for chaining. + */ + public Builder addCustomQueriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCustomQueriesIsMutable(); + customQueries_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object email_ = ""; + /** + * + * + *
+       * Required. The Jira email address.
+       * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The Jira email address.
+       * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for email. + */ + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The Jira email address.
+       * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + email_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Jira email address.
+       * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEmail() { + email_ = getDefaultInstance().getEmail(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Jira email address.
+       * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object serverUri_ = ""; + /** + * + * + *
+       * Required. The Jira server URI.
+       * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serverUri. + */ + public java.lang.String getServerUri() { + java.lang.Object ref = serverUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serverUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The Jira server URI.
+       * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serverUri. + */ + public com.google.protobuf.ByteString getServerUriBytes() { + java.lang.Object ref = serverUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The Jira server URI.
+       * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The serverUri to set. + * @return This builder for chaining. + */ + public Builder setServerUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serverUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Jira server URI.
+       * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearServerUri() { + serverUri_ = getDefaultInstance().getServerUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Jira server URI.
+       * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for serverUri to set. + * @return This builder for chaining. + */ + public Builder setServerUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serverUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig apiKeyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfigOrBuilder> + apiKeyConfigBuilder_; + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key
+       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + public boolean hasApiKeyConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key
+       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The apiKeyConfig. + */ + public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig getApiKeyConfig() { + if (apiKeyConfigBuilder_ == null) { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } else { + return apiKeyConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key
+       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApiKeyConfig( + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig value) { + if (apiKeyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + apiKeyConfig_ = value; + } else { + apiKeyConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key
+       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApiKeyConfig( + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.Builder builderForValue) { + if (apiKeyConfigBuilder_ == null) { + apiKeyConfig_ = builderForValue.build(); + } else { + apiKeyConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key
+       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeApiKeyConfig( + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig value) { + if (apiKeyConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && apiKeyConfig_ != null + && apiKeyConfig_ + != com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig + .getDefaultInstance()) { + getApiKeyConfigBuilder().mergeFrom(value); + } else { + apiKeyConfig_ = value; + } + } else { + apiKeyConfigBuilder_.mergeFrom(value); + } + if (apiKeyConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key
+       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearApiKeyConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + apiKeyConfig_ = null; + if (apiKeyConfigBuilder_ != null) { + apiKeyConfigBuilder_.dispose(); + apiKeyConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key
+       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.Builder + getApiKeyConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getApiKeyConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key
+       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfigOrBuilder + getApiKeyConfigOrBuilder() { + if (apiKeyConfigBuilder_ != null) { + return apiKeyConfigBuilder_.getMessageOrBuilder(); + } else { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key
+       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfigOrBuilder> + getApiKeyConfigFieldBuilder() { + if (apiKeyConfigBuilder_ == null) { + apiKeyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfigOrBuilder>( + getApiKeyConfig(), getParentForChildren(), isClean()); + apiKeyConfig_ = null; + } + return apiKeyConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries) + private static final com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries(); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JiraQueries parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int JIRA_QUERIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List jiraQueries_; + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getJiraQueriesList() { + return jiraQueries_; + } + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueriesOrBuilder> + getJiraQueriesOrBuilderList() { + return jiraQueries_; + } + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getJiraQueriesCount() { + return jiraQueries_.size(); + } + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries getJiraQueries(int index) { + return jiraQueries_.get(index); + } + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueriesOrBuilder + getJiraQueriesOrBuilder(int index) { + return jiraQueries_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < jiraQueries_.size(); i++) { + output.writeMessage(1, jiraQueries_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < jiraQueries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jiraQueries_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.JiraSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.JiraSource other = + (com.google.cloud.aiplatform.v1beta1.JiraSource) obj; + + if (!getJiraQueriesList().equals(other.getJiraQueriesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getJiraQueriesCount() > 0) { + hash = (37 * hash) + JIRA_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getJiraQueriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.JiraSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The Jira source for the ImportRagFilesRequest.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.JiraSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.JiraSource) + com.google.cloud.aiplatform.v1beta1.JiraSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_JiraSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_JiraSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.JiraSource.class, + com.google.cloud.aiplatform.v1beta1.JiraSource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.JiraSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (jiraQueriesBuilder_ == null) { + jiraQueries_ = java.util.Collections.emptyList(); + } else { + jiraQueries_ = null; + jiraQueriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_JiraSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSource getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSource build() { + com.google.cloud.aiplatform.v1beta1.JiraSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSource buildPartial() { + com.google.cloud.aiplatform.v1beta1.JiraSource result = + new com.google.cloud.aiplatform.v1beta1.JiraSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.JiraSource result) { + if (jiraQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + jiraQueries_ = java.util.Collections.unmodifiableList(jiraQueries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.jiraQueries_ = jiraQueries_; + } else { + result.jiraQueries_ = jiraQueriesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.JiraSource result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.JiraSource) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.JiraSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.JiraSource other) { + if (other == com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance()) return this; + if (jiraQueriesBuilder_ == null) { + if (!other.jiraQueries_.isEmpty()) { + if (jiraQueries_.isEmpty()) { + jiraQueries_ = other.jiraQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureJiraQueriesIsMutable(); + jiraQueries_.addAll(other.jiraQueries_); + } + onChanged(); + } + } else { + if (!other.jiraQueries_.isEmpty()) { + if (jiraQueriesBuilder_.isEmpty()) { + jiraQueriesBuilder_.dispose(); + jiraQueriesBuilder_ = null; + jiraQueries_ = other.jiraQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + jiraQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJiraQueriesFieldBuilder() + : null; + } else { + jiraQueriesBuilder_.addAllMessages(other.jiraQueries_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.parser(), + extensionRegistry); + if (jiraQueriesBuilder_ == null) { + ensureJiraQueriesIsMutable(); + jiraQueries_.add(m); + } else { + jiraQueriesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + jiraQueries_ = java.util.Collections.emptyList(); + + private void ensureJiraQueriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + jiraQueries_ = + new java.util.ArrayList( + jiraQueries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries, + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.Builder, + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueriesOrBuilder> + jiraQueriesBuilder_; + + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getJiraQueriesList() { + if (jiraQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(jiraQueries_); + } else { + return jiraQueriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getJiraQueriesCount() { + if (jiraQueriesBuilder_ == null) { + return jiraQueries_.size(); + } else { + return jiraQueriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries getJiraQueries(int index) { + if (jiraQueriesBuilder_ == null) { + return jiraQueries_.get(index); + } else { + return jiraQueriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setJiraQueries( + int index, com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries value) { + if (jiraQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJiraQueriesIsMutable(); + jiraQueries_.set(index, value); + onChanged(); + } else { + jiraQueriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setJiraQueries( + int index, + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.Builder builderForValue) { + if (jiraQueriesBuilder_ == null) { + ensureJiraQueriesIsMutable(); + jiraQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + jiraQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addJiraQueries( + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries value) { + if (jiraQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJiraQueriesIsMutable(); + jiraQueries_.add(value); + onChanged(); + } else { + jiraQueriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addJiraQueries( + int index, com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries value) { + if (jiraQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJiraQueriesIsMutable(); + jiraQueries_.add(index, value); + onChanged(); + } else { + jiraQueriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addJiraQueries( + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.Builder builderForValue) { + if (jiraQueriesBuilder_ == null) { + ensureJiraQueriesIsMutable(); + jiraQueries_.add(builderForValue.build()); + onChanged(); + } else { + jiraQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addJiraQueries( + int index, + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.Builder builderForValue) { + if (jiraQueriesBuilder_ == null) { + ensureJiraQueriesIsMutable(); + jiraQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + jiraQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllJiraQueries( + java.lang.Iterable + values) { + if (jiraQueriesBuilder_ == null) { + ensureJiraQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jiraQueries_); + onChanged(); + } else { + jiraQueriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearJiraQueries() { + if (jiraQueriesBuilder_ == null) { + jiraQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + jiraQueriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeJiraQueries(int index) { + if (jiraQueriesBuilder_ == null) { + ensureJiraQueriesIsMutable(); + jiraQueries_.remove(index); + onChanged(); + } else { + jiraQueriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.Builder getJiraQueriesBuilder( + int index) { + return getJiraQueriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueriesOrBuilder + getJiraQueriesOrBuilder(int index) { + if (jiraQueriesBuilder_ == null) { + return jiraQueries_.get(index); + } else { + return jiraQueriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueriesOrBuilder> + getJiraQueriesOrBuilderList() { + if (jiraQueriesBuilder_ != null) { + return jiraQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jiraQueries_); + } + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.Builder + addJiraQueriesBuilder() { + return getJiraQueriesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.Builder addJiraQueriesBuilder( + int index) { + return getJiraQueriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getJiraQueriesBuilderList() { + return getJiraQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries, + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.Builder, + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueriesOrBuilder> + getJiraQueriesFieldBuilder() { + if (jiraQueriesBuilder_ == null) { + jiraQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries, + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries.Builder, + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueriesOrBuilder>( + jiraQueries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + jiraQueries_ = null; + } + return jiraQueriesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.JiraSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.JiraSource) + private static final com.google.cloud.aiplatform.v1beta1.JiraSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.JiraSource(); + } + + public static com.google.cloud.aiplatform.v1beta1.JiraSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JiraSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JiraSourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JiraSourceOrBuilder.java new file mode 100644 index 000000000000..338ccf86eb56 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JiraSourceOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/io.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface JiraSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.JiraSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getJiraQueriesList(); + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries getJiraQueries(int index); + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getJiraQueriesCount(); + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getJiraQueriesOrBuilderList(); + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.JiraSource.JiraQueriesOrBuilder getJiraQueriesOrBuilder( + int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequest.java index bfdfd82b2193..d623edd86854 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequest.java @@ -355,8 +355,8 @@ public com.google.protobuf.ByteString getOrderByBytes() { * *
    * Optional. The IETF BCP-47 language code representing the language in which
-   * the publisher models' text information should be written in (see go/bcp47).
-   * If not set, by default English (en).
+   * the publisher models' text information should be written in. If not set, by
+   * default English (en).
    * 
* * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -380,8 +380,8 @@ public java.lang.String getLanguageCode() { * *
    * Optional. The IETF BCP-47 language code representing the language in which
-   * the publisher models' text information should be written in (see go/bcp47).
-   * If not set, by default English (en).
+   * the publisher models' text information should be written in. If not set, by
+   * default English (en).
    * 
* * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1512,8 +1512,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher models' text information should be written in (see go/bcp47).
-     * If not set, by default English (en).
+     * the publisher models' text information should be written in. If not set, by
+     * default English (en).
      * 
* * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1536,8 +1536,8 @@ public java.lang.String getLanguageCode() { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher models' text information should be written in (see go/bcp47).
-     * If not set, by default English (en).
+     * the publisher models' text information should be written in. If not set, by
+     * default English (en).
      * 
* * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1560,8 +1560,8 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher models' text information should be written in (see go/bcp47).
-     * If not set, by default English (en).
+     * the publisher models' text information should be written in. If not set, by
+     * default English (en).
      * 
* * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1583,8 +1583,8 @@ public Builder setLanguageCode(java.lang.String value) { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher models' text information should be written in (see go/bcp47).
-     * If not set, by default English (en).
+     * the publisher models' text information should be written in. If not set, by
+     * default English (en).
      * 
* * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1602,8 +1602,8 @@ public Builder clearLanguageCode() { * *
      * Optional. The IETF BCP-47 language code representing the language in which
-     * the publisher models' text information should be written in (see go/bcp47).
-     * If not set, by default English (en).
+     * the publisher models' text information should be written in. If not set, by
+     * default English (en).
      * 
* * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequestOrBuilder.java index f6f9cab36b12..5ae1ab88b81e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequestOrBuilder.java @@ -185,8 +185,8 @@ public interface ListPublisherModelsRequestOrBuilder * *
    * Optional. The IETF BCP-47 language code representing the language in which
-   * the publisher models' text information should be written in (see go/bcp47).
-   * If not set, by default English (en).
+   * the publisher models' text information should be written in. If not set, by
+   * default English (en).
    * 
* * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -199,8 +199,8 @@ public interface ListPublisherModelsRequestOrBuilder * *
    * Optional. The IETF BCP-47 language code representing the language in which
-   * the publisher models' text information should be written in (see go/bcp47).
-   * If not set, by default English (en).
+   * the publisher models' text information should be written in. If not set, by
+   * default English (en).
    * 
* * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java index cb42ce0e6a34..760d97916ff1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java @@ -55,44 +55,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\032\027google/api/client.proto\032\037google/api" + "/field_behavior.proto\032\031google/api/resour" + "ce.proto\0325google/cloud/aiplatform/v1beta" - + "1/publisher_model.proto\"\276\001\n\030GetPublisher" + + "1/publisher_model.proto\"\342\001\n\030GetPublisher" + "ModelRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(aipl" + "atform.googleapis.com/PublisherModel\022\032\n\r" + "language_code\030\002 \001(\tB\003\340A\001\022F\n\004view\030\003 \001(\01623" + ".google.cloud.aiplatform.v1beta1.Publish" - + "erModelViewB\003\340A\001\"\362\001\n\032ListPublisherModels" - + "Request\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\023\n\006filter\030\002" - + " \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npag" - + "e_token\030\004 \001(\tB\003\340A\001\022F\n\004view\030\005 \001(\01623.googl" - + "e.cloud.aiplatform.v1beta1.PublisherMode" - + "lViewB\003\340A\001\022\025\n\010order_by\030\006 \001(\tB\003\340A\001\022\032\n\rlan" - + "guage_code\030\007 \001(\tB\003\340A\001\"\201\001\n\033ListPublisherM" - + "odelsResponse\022I\n\020publisher_models\030\001 \003(\0132" - + "/.google.cloud.aiplatform.v1beta1.Publis" - + "herModel\022\027\n\017next_page_token\030\002 \001(\t*\241\001\n\022Pu" - + "blisherModelView\022$\n PUBLISHER_MODEL_VIEW" - + "_UNSPECIFIED\020\000\022\036\n\032PUBLISHER_MODEL_VIEW_B" - + "ASIC\020\001\022\035\n\031PUBLISHER_MODEL_VIEW_FULL\020\002\022&\n" - + "\"PUBLISHER_MODEL_VERSION_VIEW_BASIC\020\0032\346\003" - + "\n\022ModelGardenService\022\265\001\n\021GetPublisherMod" - + "el\0229.google.cloud.aiplatform.v1beta1.Get" - + "PublisherModelRequest\032/.google.cloud.aip" - + "latform.v1beta1.PublisherModel\"4\332A\004name\202" - + "\323\344\223\002\'\022%/v1beta1/{name=publishers/*/model" - + "s/*}\022\310\001\n\023ListPublisherModels\022;.google.cl" - + "oud.aiplatform.v1beta1.ListPublisherMode" - + "lsRequest\032<.google.cloud.aiplatform.v1be" - + "ta1.ListPublisherModelsResponse\"6\332A\006pare" - + "nt\202\323\344\223\002\'\022%/v1beta1/{parent=publishers/*}" - + "/models\032M\312A\031aiplatform.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-pl" - + "atformB\356\001\n#com.google.cloud.aiplatform.v" - + "1beta1B\027ModelGardenServiceProtoP\001ZCcloud" - + ".google.com/go/aiplatform/apiv1beta1/aip" - + "latformpb;aiplatformpb\252\002\037Google.Cloud.AI" - + "Platform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfo" - + "rm\\V1beta1\352\002\"Google::Cloud::AIPlatform::" - + "V1beta1b\006proto3" + + "erModelViewB\003\340A\001\022\"\n\025is_hugging_face_mode" + + "l\030\005 \001(\010B\003\340A\001\"\362\001\n\032ListPublisherModelsRequ" + + "est\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\023\n\006filter\030\002 \001(\t" + + "B\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\004 \001(\tB\003\340A\001\022F\n\004view\030\005 \001(\01623.google.cl" + + "oud.aiplatform.v1beta1.PublisherModelVie" + + "wB\003\340A\001\022\025\n\010order_by\030\006 \001(\tB\003\340A\001\022\032\n\rlanguag" + + "e_code\030\007 \001(\tB\003\340A\001\"\201\001\n\033ListPublisherModel" + + "sResponse\022I\n\020publisher_models\030\001 \003(\0132/.go" + + "ogle.cloud.aiplatform.v1beta1.PublisherM" + + "odel\022\027\n\017next_page_token\030\002 \001(\t*\241\001\n\022Publis" + + "herModelView\022$\n PUBLISHER_MODEL_VIEW_UNS" + + "PECIFIED\020\000\022\036\n\032PUBLISHER_MODEL_VIEW_BASIC" + + "\020\001\022\035\n\031PUBLISHER_MODEL_VIEW_FULL\020\002\022&\n\"PUB" + + "LISHER_MODEL_VERSION_VIEW_BASIC\020\0032\346\003\n\022Mo" + + "delGardenService\022\265\001\n\021GetPublisherModel\0229" + + ".google.cloud.aiplatform.v1beta1.GetPubl" + + "isherModelRequest\032/.google.cloud.aiplatf" + + "orm.v1beta1.PublisherModel\"4\332A\004name\202\323\344\223\002" + + "\'\022%/v1beta1/{name=publishers/*/models/*}" + + "\022\310\001\n\023ListPublisherModels\022;.google.cloud." + + "aiplatform.v1beta1.ListPublisherModelsRe" + + "quest\032<.google.cloud.aiplatform.v1beta1." + + "ListPublisherModelsResponse\"6\332A\006parent\202\323" + + "\344\223\002\'\022%/v1beta1/{parent=publishers/*}/mod" + + "els\032M\312A\031aiplatform.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\356\001\n#com.google.cloud.aiplatform.v1bet" + + "a1B\027ModelGardenServiceProtoP\001ZCcloud.goo" + + "gle.com/go/aiplatform/apiv1beta1/aiplatf" + + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat" + + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" + + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be" + + "ta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -110,7 +111,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetPublisherModelRequest_descriptor, new java.lang.String[] { - "Name", "LanguageCode", "View", + "Name", "LanguageCode", "View", "IsHuggingFaceModel", }); internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsRequest_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitor.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitor.java index 50cc97dc4a3f..4107609c83fd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitor.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitor.java @@ -2622,6 +2622,42 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } + public static final int SATISFIES_PZS_FIELD_NUMBER = 17; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 18; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2672,6 +2708,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(16, getExplanationSpec()); } + if (satisfiesPzs_ != false) { + output.writeBool(17, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + output.writeBool(18, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -2720,6 +2762,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getExplanationSpec()); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2770,6 +2818,8 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getDefaultObjectiveCase().equals(other.getDefaultObjectiveCase())) return false; switch (defaultObjectiveCase_) { case 11: @@ -2825,6 +2875,10 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); switch (defaultObjectiveCase_) { case 11: hash = (37 * hash) + TABULAR_OBJECTIVE_FIELD_NUMBER; @@ -3036,6 +3090,8 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } + satisfiesPzs_ = false; + satisfiesPzi_ = false; defaultObjectiveCase_ = 0; defaultObjective_ = null; return this; @@ -3123,6 +3179,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ModelMonitor resu result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000080; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } result.bitField0_ |= to_bitField0_; } @@ -3214,6 +3276,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelMonitor other) if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } switch (other.getDefaultObjectiveCase()) { case TABULAR_OBJECTIVE: { @@ -3321,6 +3389,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 130 + case 136: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 136 + case 144: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 144 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5570,6 +5650,112 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00000800); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00001000); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitorOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitorOrBuilder.java index 435cebd6e883..7163990a02a8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitorOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitorOrBuilder.java @@ -467,5 +467,31 @@ public interface ModelMonitorOrBuilder */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); + com.google.cloud.aiplatform.v1beta1.ModelMonitor.DefaultObjectiveCase getDefaultObjectiveCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitorProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitorProto.java index f620f14a421a..82fd706523f5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitorProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitorProto.java @@ -64,7 +64,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/aiplatform/v1beta1/explanation.proto\032;g" + "oogle/cloud/aiplatform/v1beta1/model_mon" + "itoring_spec.proto\032\037google/protobuf/time" - + "stamp.proto\"\232\t\n\014ModelMonitor\022k\n\021tabular_" + + "stamp.proto\"\322\t\n\014ModelMonitor\022k\n\021tabular_" + "objective\030\013 \001(\0132N.google.cloud.aiplatfor" + "m.v1beta1.ModelMonitoringObjectiveSpec.T" + "abularObjectiveH\000\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\024\n\014" @@ -84,32 +84,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "odelMonitoringSchema\0224\n\013create_time\030\006 \001(" + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + "date_time\030\007 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\032\364\001\n\025ModelMonitoringTarget\022m\n\014ve" - + "rtex_model\030\001 \001(\0132U.google.cloud.aiplatfo" - + "rm.v1beta1.ModelMonitor.ModelMonitoringT" - + "arget.VertexModelSourceH\000\032b\n\021VertexModel" - + "Source\0223\n\005model\030\001 \001(\tB$\372A!\n\037aiplatform.g" - + "oogleapis.com/Model\022\030\n\020model_version_id\030" - + "\002 \001(\tB\010\n\006source:r\352Ao\n&aiplatform.googlea" - + "pis.com/ModelMonitor\022Eprojects/{project}" - + "/locations/{location}/modelMonitors/{mod" - + "el_monitor}B\023\n\021default_objective\"\365\002\n\025Mod" - + "elMonitoringSchema\022Z\n\016feature_fields\030\001 \003" - + "(\0132B.google.cloud.aiplatform.v1beta1.Mod" - + "elMonitoringSchema.FieldSchema\022]\n\021predic" - + "tion_fields\030\002 \003(\0132B.google.cloud.aiplatf" - + "orm.v1beta1.ModelMonitoringSchema.FieldS" - + "chema\022_\n\023ground_truth_fields\030\003 \003(\0132B.goo" - + "gle.cloud.aiplatform.v1beta1.ModelMonito" - + "ringSchema.FieldSchema\032@\n\013FieldSchema\022\014\n" - + "\004name\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\020\n\010repeat" - + "ed\030\003 \001(\010B\350\001\n#com.google.cloud.aiplatform" - + ".v1beta1B\021ModelMonitorProtoP\001ZCcloud.goo" - + "gle.com/go/aiplatform/apiv1beta1/aiplatf" - + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat" - + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" - + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be" - + "ta1b\006proto3" + + "ampB\003\340A\003\022\032\n\rsatisfies_pzs\030\021 \001(\010B\003\340A\003\022\032\n\r" + + "satisfies_pzi\030\022 \001(\010B\003\340A\003\032\364\001\n\025ModelMonito" + + "ringTarget\022m\n\014vertex_model\030\001 \001(\0132U.googl" + + "e.cloud.aiplatform.v1beta1.ModelMonitor." + + "ModelMonitoringTarget.VertexModelSourceH" + + "\000\032b\n\021VertexModelSource\0223\n\005model\030\001 \001(\tB$\372" + + "A!\n\037aiplatform.googleapis.com/Model\022\030\n\020m" + + "odel_version_id\030\002 \001(\tB\010\n\006source:r\352Ao\n&ai" + + "platform.googleapis.com/ModelMonitor\022Epr" + + "ojects/{project}/locations/{location}/mo" + + "delMonitors/{model_monitor}B\023\n\021default_o" + + "bjective\"\365\002\n\025ModelMonitoringSchema\022Z\n\016fe" + + "ature_fields\030\001 \003(\0132B.google.cloud.aiplat" + + "form.v1beta1.ModelMonitoringSchema.Field" + + "Schema\022]\n\021prediction_fields\030\002 \003(\0132B.goog" + + "le.cloud.aiplatform.v1beta1.ModelMonitor" + + "ingSchema.FieldSchema\022_\n\023ground_truth_fi" + + "elds\030\003 \003(\0132B.google.cloud.aiplatform.v1b" + + "eta1.ModelMonitoringSchema.FieldSchema\032@" + + "\n\013FieldSchema\022\014\n\004name\030\001 \001(\t\022\021\n\tdata_type" + + "\030\002 \001(\t\022\020\n\010repeated\030\003 \001(\010B\350\001\n#com.google." + + "cloud.aiplatform.v1beta1B\021ModelMonitorPr" + + "otoP\001ZCcloud.google.com/go/aiplatform/ap" + + "iv1beta1/aiplatformpb;aiplatformpb\252\002\037Goo" + + "gle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cl" + + "oud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::" + + "AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -138,6 +139,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ModelMonitoringSchema", "CreateTime", "UpdateTime", + "SatisfiesPzs", + "SatisfiesPzi", "DefaultObjective", }); internal_static_google_cloud_aiplatform_v1beta1_ModelMonitor_ModelMonitoringTarget_descriptor = diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborQuery.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborQuery.java index 7e9f20d9ac03..9b5d6a585754 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborQuery.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborQuery.java @@ -40,6 +40,7 @@ private NearestNeighborQuery(com.google.protobuf.GeneratedMessageV3.Builder b private NearestNeighborQuery() { stringFilters_ = java.util.Collections.emptyList(); + numericFilters_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -2121,132 +2122,737 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface ParametersOrBuilder + public interface NumericFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Optional. The number of neighbors to find via approximate search before
-     * exact reordering is performed; if set, this value must be >
-     * neighbor_count.
+     * int value type.
      * 
* - * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * int64 value_int = 2; * - * @return The approximateNeighborCandidates. + * @return Whether the valueInt field is set. */ - int getApproximateNeighborCandidates(); + boolean hasValueInt(); + /** + * + * + *
+     * int value type.
+     * 
+ * + * int64 value_int = 2; + * + * @return The valueInt. + */ + long getValueInt(); /** * * *
-     * Optional. The fraction of the number of leaves to search, set at query
-     * time allows user to tune search performance. This value increase result
-     * in both search accuracy and latency increase. The value should be between
-     * 0.0 and 1.0.
+     * float value type.
      * 
* - * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * float value_float = 3; * - * @return The leafNodesSearchFraction. + * @return Whether the valueFloat field is set. */ - double getLeafNodesSearchFraction(); + boolean hasValueFloat(); + /** + * + * + *
+     * float value type.
+     * 
+ * + * float value_float = 3; + * + * @return The valueFloat. + */ + float getValueFloat(); + + /** + * + * + *
+     * double value type.
+     * 
+ * + * double value_double = 4; + * + * @return Whether the valueDouble field is set. + */ + boolean hasValueDouble(); + /** + * + * + *
+     * double value type.
+     * 
+ * + * double value_double = 4; + * + * @return The valueDouble. + */ + double getValueDouble(); + + /** + * + * + *
+     * Required. Column name in BigQuery that used as filters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+     * Required. Column name in BigQuery that used as filters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * Optional. This MUST be specified for queries and must NOT be specified
+     * for database points.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the op field is set. + */ + boolean hasOp(); + /** + * + * + *
+     * Optional. This MUST be specified for queries and must NOT be specified
+     * for database points.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for op. + */ + int getOpValue(); + /** + * + * + *
+     * Optional. This MUST be specified for queries and must NOT be specified
+     * for database points.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The op. + */ + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator getOp(); + + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.ValueCase getValueCase(); } /** * * *
-   * Parameters that can be overrided in each query to tune query latency and
-   * recall.
+   * Numeric filter is used to search a subset of the entities by using boolean
+   * rules on numeric columns.
+   * For example:
+   * Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0}
+   * Database Point 1:  {name: “a” value_int: 10} {name: “b” value_float: 2.0}
+   * Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0}
+   * Query: {name: “a” value_int: 12 operator: LESS}    // Matches Point 1, 2
+   * {name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1
    * 
* - * Protobuf type {@code google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters} + * Protobuf type {@code google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter} */ - public static final class Parameters extends com.google.protobuf.GeneratedMessageV3 + public static final class NumericFilter extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) - ParametersOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter) + NumericFilterOrBuilder { private static final long serialVersionUID = 0L; - // Use Parameters.newBuilder() to construct. - private Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use NumericFilter.newBuilder() to construct. + private NumericFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Parameters() {} + private NumericFilter() { + name_ = ""; + op_ = 0; + } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Parameters(); + return new NumericFilter(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_Parameters_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_NumericFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_Parameters_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_NumericFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters.class, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters.Builder.class); + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.class, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Builder.class); } - public static final int APPROXIMATE_NEIGHBOR_CANDIDATES_FIELD_NUMBER = 1; - private int approximateNeighborCandidates_ = 0; /** * * *
-     * Optional. The number of neighbors to find via approximate search before
-     * exact reordering is performed; if set, this value must be >
-     * neighbor_count.
+     * Datapoints for which Operator is true relative to the query’s Value
+     * field will be allowlisted.
      * 
* - * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The approximateNeighborCandidates. + * Protobuf enum {@code + * google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator} */ - @java.lang.Override - public int getApproximateNeighborCandidates() { - return approximateNeighborCandidates_; - } + public enum Operator implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified operator.
+       * 
+ * + * OPERATOR_UNSPECIFIED = 0; + */ + OPERATOR_UNSPECIFIED(0), + /** + * + * + *
+       * Entities are eligible if their value is < the query's.
+       * 
+ * + * LESS = 1; + */ + LESS(1), + /** + * + * + *
+       * Entities are eligible if their value is <= the query's.
+       * 
+ * + * LESS_EQUAL = 2; + */ + LESS_EQUAL(2), + /** + * + * + *
+       * Entities are eligible if their value is == the query's.
+       * 
+ * + * EQUAL = 3; + */ + EQUAL(3), + /** + * + * + *
+       * Entities are eligible if their value is >= the query's.
+       * 
+ * + * GREATER_EQUAL = 4; + */ + GREATER_EQUAL(4), + /** + * + * + *
+       * Entities are eligible if their value is > the query's.
+       * 
+ * + * GREATER = 5; + */ + GREATER(5), + /** + * + * + *
+       * Entities are eligible if their value is != the query's.
+       * 
+ * + * NOT_EQUAL = 6; + */ + NOT_EQUAL(6), + UNRECOGNIZED(-1), + ; - public static final int LEAF_NODES_SEARCH_FRACTION_FIELD_NUMBER = 2; - private double leafNodesSearchFraction_ = 0D; - /** - * - * - *
-     * Optional. The fraction of the number of leaves to search, set at query
-     * time allows user to tune search performance. This value increase result
-     * in both search accuracy and latency increase. The value should be between
-     * 0.0 and 1.0.
-     * 
- * - * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The leafNodesSearchFraction. - */ - @java.lang.Override - public double getLeafNodesSearchFraction() { - return leafNodesSearchFraction_; - } + /** + * + * + *
+       * Unspecified operator.
+       * 
+ * + * OPERATOR_UNSPECIFIED = 0; + */ + public static final int OPERATOR_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Entities are eligible if their value is < the query's.
+       * 
+ * + * LESS = 1; + */ + public static final int LESS_VALUE = 1; + /** + * + * + *
+       * Entities are eligible if their value is <= the query's.
+       * 
+ * + * LESS_EQUAL = 2; + */ + public static final int LESS_EQUAL_VALUE = 2; + /** + * + * + *
+       * Entities are eligible if their value is == the query's.
+       * 
+ * + * EQUAL = 3; + */ + public static final int EQUAL_VALUE = 3; + /** + * + * + *
+       * Entities are eligible if their value is >= the query's.
+       * 
+ * + * GREATER_EQUAL = 4; + */ + public static final int GREATER_EQUAL_VALUE = 4; + /** + * + * + *
+       * Entities are eligible if their value is > the query's.
+       * 
+ * + * GREATER = 5; + */ + public static final int GREATER_VALUE = 5; + /** + * + * + *
+       * Entities are eligible if their value is != the query's.
+       * 
+ * + * NOT_EQUAL = 6; + */ + public static final int NOT_EQUAL_VALUE = 6; - private byte memoizedIsInitialized = -1; + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } - @java.lang.Override - public final boolean isInitialized() { + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Operator valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Operator forNumber(int value) { + switch (value) { + case 0: + return OPERATOR_UNSPECIFIED; + case 1: + return LESS; + case 2: + return LESS_EQUAL; + case 3: + return EQUAL; + case 4: + return GREATER_EQUAL; + case 5: + return GREATER; + case 6: + return NOT_EQUAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operator findValueByNumber(int number) { + return Operator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Operator[] VALUES = values(); + + public static Operator valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Operator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator) + } + + private int bitField0_; + private int valueCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object value_; + + public enum ValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VALUE_INT(2), + VALUE_FLOAT(3), + VALUE_DOUBLE(4), + VALUE_NOT_SET(0); + private final int value; + + private ValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 2: + return VALUE_INT; + case 3: + return VALUE_FLOAT; + case 4: + return VALUE_DOUBLE; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int VALUE_INT_FIELD_NUMBER = 2; + /** + * + * + *
+     * int value type.
+     * 
+ * + * int64 value_int = 2; + * + * @return Whether the valueInt field is set. + */ + @java.lang.Override + public boolean hasValueInt() { + return valueCase_ == 2; + } + /** + * + * + *
+     * int value type.
+     * 
+ * + * int64 value_int = 2; + * + * @return The valueInt. + */ + @java.lang.Override + public long getValueInt() { + if (valueCase_ == 2) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int VALUE_FLOAT_FIELD_NUMBER = 3; + /** + * + * + *
+     * float value type.
+     * 
+ * + * float value_float = 3; + * + * @return Whether the valueFloat field is set. + */ + @java.lang.Override + public boolean hasValueFloat() { + return valueCase_ == 3; + } + /** + * + * + *
+     * float value type.
+     * 
+ * + * float value_float = 3; + * + * @return The valueFloat. + */ + @java.lang.Override + public float getValueFloat() { + if (valueCase_ == 3) { + return (java.lang.Float) value_; + } + return 0F; + } + + public static final int VALUE_DOUBLE_FIELD_NUMBER = 4; + /** + * + * + *
+     * double value type.
+     * 
+ * + * double value_double = 4; + * + * @return Whether the valueDouble field is set. + */ + @java.lang.Override + public boolean hasValueDouble() { + return valueCase_ == 4; + } + /** + * + * + *
+     * double value type.
+     * 
+ * + * double value_double = 4; + * + * @return The valueDouble. + */ + @java.lang.Override + public double getValueDouble() { + if (valueCase_ == 4) { + return (java.lang.Double) value_; + } + return 0D; + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Column name in BigQuery that used as filters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Column name in BigQuery that used as filters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OP_FIELD_NUMBER = 5; + private int op_ = 0; + /** + * + * + *
+     * Optional. This MUST be specified for queries and must NOT be specified
+     * for database points.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the op field is set. + */ + @java.lang.Override + public boolean hasOp() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. This MUST be specified for queries and must NOT be specified
+     * for database points.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for op. + */ + @java.lang.Override + public int getOpValue() { + return op_; + } + /** + * + * + *
+     * Optional. This MUST be specified for queries and must NOT be specified
+     * for database points.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The op. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator getOp() { + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator result = + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator.forNumber( + op_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; @@ -2257,11 +2863,20 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (approximateNeighborCandidates_ != 0) { - output.writeInt32(1, approximateNeighborCandidates_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (java.lang.Double.doubleToRawLongBits(leafNodesSearchFraction_) != 0) { - output.writeDouble(2, leafNodesSearchFraction_); + if (valueCase_ == 2) { + output.writeInt64(2, (long) ((java.lang.Long) value_)); + } + if (valueCase_ == 3) { + output.writeFloat(3, (float) ((java.lang.Float) value_)); + } + if (valueCase_ == 4) { + output.writeDouble(4, (double) ((java.lang.Double) value_)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(5, op_); } getUnknownFields().writeTo(output); } @@ -2272,14 +2887,26 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (approximateNeighborCandidates_ != 0) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (valueCase_ == 2) { size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 1, approximateNeighborCandidates_); + com.google.protobuf.CodedOutputStream.computeInt64Size( + 2, (long) ((java.lang.Long) value_)); } - if (java.lang.Double.doubleToRawLongBits(leafNodesSearchFraction_) != 0) { + if (valueCase_ == 3) { size += - com.google.protobuf.CodedOutputStream.computeDoubleSize(2, leafNodesSearchFraction_); + com.google.protobuf.CodedOutputStream.computeFloatSize( + 3, (float) ((java.lang.Float) value_)); + } + if (valueCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 4, (double) ((java.lang.Double) value_)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, op_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2291,16 +2918,34 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters)) { + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter)) { return super.equals(obj); } - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters other = - (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) obj; + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter other = + (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter) obj; - if (getApproximateNeighborCandidates() != other.getApproximateNeighborCandidates()) - return false; - if (java.lang.Double.doubleToLongBits(getLeafNodesSearchFraction()) - != java.lang.Double.doubleToLongBits(other.getLeafNodesSearchFraction())) return false; + if (!getName().equals(other.getName())) return false; + if (hasOp() != other.hasOp()) return false; + if (hasOp()) { + if (op_ != other.op_) return false; + } + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 2: + if (getValueInt() != other.getValueInt()) return false; + break; + case 3: + if (java.lang.Float.floatToIntBits(getValueFloat()) + != java.lang.Float.floatToIntBits(other.getValueFloat())) return false; + break; + case 4: + if (java.lang.Double.doubleToLongBits(getValueDouble()) + != java.lang.Double.doubleToLongBits(other.getValueDouble())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2312,71 +2957,89 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + APPROXIMATE_NEIGHBOR_CANDIDATES_FIELD_NUMBER; - hash = (53 * hash) + getApproximateNeighborCandidates(); - hash = (37 * hash) + LEAF_NODES_SEARCH_FRACTION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getLeafNodesSearchFraction())); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasOp()) { + hash = (37 * hash) + OP_FIELD_NUMBER; + hash = (53 * hash) + op_; + } + switch (valueCase_) { + case 2: + hash = (37 * hash) + VALUE_INT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValueInt()); + break; + case 3: + hash = (37 * hash) + VALUE_FLOAT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getValueFloat()); + break; + case 4: + hash = (37 * hash) + VALUE_DOUBLE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValueDouble())); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2384,12 +3047,12 @@ public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameter PARSER, input, extensionRegistry); } - public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2407,7 +3070,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters prototype) { + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -2426,34 +3089,41 @@ protected Builder newBuilderForType( * * *
-     * Parameters that can be overrided in each query to tune query latency and
-     * recall.
+     * Numeric filter is used to search a subset of the entities by using boolean
+     * rules on numeric columns.
+     * For example:
+     * Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0}
+     * Database Point 1:  {name: “a” value_int: 10} {name: “b” value_float: 2.0}
+     * Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0}
+     * Query: {name: “a” value_int: 12 operator: LESS}    // Matches Point 1, 2
+     * {name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1
      * 
* - * Protobuf type {@code google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters} + * Protobuf type {@code google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.ParametersOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter) + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_Parameters_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_NumericFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_Parameters_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_NumericFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters.class, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters.Builder.class); + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.class, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Builder + .class); } // Construct using - // com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters.newBuilder() + // com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -2464,27 +3134,30 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - approximateNeighborCandidates_ = 0; - leafNodesSearchFraction_ = 0D; + name_ = ""; + op_ = 0; + valueCase_ = 0; + value_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_Parameters_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_NumericFilter_descriptor; } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters + return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters build() { - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters result = buildPartial(); + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter build() { + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2492,25 +3165,35 @@ public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters build } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters buildPartial() { - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters result = - new com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters(this); + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter buildPartial() { + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter result = + new com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter(this); if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters result) { + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.approximateNeighborCandidates_ = approximateNeighborCandidates_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.leafNodesSearchFraction_ = leafNodesSearchFraction_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.op_ = op_; + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter result) { + result.valueCase_ = valueCase_; + result.value_ = this.value_; } @java.lang.Override @@ -2550,9 +3233,10 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter) { return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) other); + (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter) other); } else { super.mergeFrom(other); return this; @@ -2560,15 +3244,38 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters other) { + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter other) { if (other - == com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters + == com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter .getDefaultInstance()) return this; - if (other.getApproximateNeighborCandidates() != 0) { - setApproximateNeighborCandidates(other.getApproximateNeighborCandidates()); + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); } - if (other.getLeafNodesSearchFraction() != 0D) { - setLeafNodesSearchFraction(other.getLeafNodesSearchFraction()); + if (other.hasOp()) { + setOp(other.getOp()); + } + switch (other.getValueCase()) { + case VALUE_INT: + { + setValueInt(other.getValueInt()); + break; + } + case VALUE_FLOAT: + { + setValueFloat(other.getValueFloat()); + break; + } + case VALUE_DOUBLE: + { + setValueDouble(other.getValueDouble()); + break; + } + case VALUE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2596,18 +3303,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: + case 10: { - approximateNeighborCandidates_ = input.readInt32(); - bitField0_ |= 0x00000001; + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; break; - } // case 8 - case 17: + } // case 10 + case 16: { - leafNodesSearchFraction_ = input.readDouble(); - bitField0_ |= 0x00000002; + value_ = input.readInt64(); + valueCase_ = 2; break; - } // case 17 + } // case 16 + case 29: + { + value_ = input.readFloat(); + valueCase_ = 3; + break; + } // case 29 + case 33: + { + value_ = input.readDouble(); + valueCase_ = 4; + break; + } // case 33 + case 40: + { + op_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2625,46 +3350,69 @@ public Builder mergeFrom( return this; } + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + private int bitField0_; - private int approximateNeighborCandidates_; /** * * *
-       * Optional. The number of neighbors to find via approximate search before
-       * exact reordering is performed; if set, this value must be >
-       * neighbor_count.
+       * int value type.
        * 
* - * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * int64 value_int = 2; * - * @return The approximateNeighborCandidates. + * @return Whether the valueInt field is set. */ - @java.lang.Override - public int getApproximateNeighborCandidates() { - return approximateNeighborCandidates_; + public boolean hasValueInt() { + return valueCase_ == 2; } /** * * *
-       * Optional. The number of neighbors to find via approximate search before
-       * exact reordering is performed; if set, this value must be >
-       * neighbor_count.
+       * int value type.
        * 
* - * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * int64 value_int = 2; * - * @param value The approximateNeighborCandidates to set. + * @return The valueInt. + */ + public long getValueInt() { + if (valueCase_ == 2) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + * + * + *
+       * int value type.
+       * 
+ * + * int64 value_int = 2; + * + * @param value The valueInt to set. * @return This builder for chaining. */ - public Builder setApproximateNeighborCandidates(int value) { + public Builder setValueInt(long value) { - approximateNeighborCandidates_ = value; - bitField0_ |= 0x00000001; + valueCase_ = 2; + value_ = value; onChanged(); return this; } @@ -2672,63 +3420,69 @@ public Builder setApproximateNeighborCandidates(int value) { * * *
-       * Optional. The number of neighbors to find via approximate search before
-       * exact reordering is performed; if set, this value must be >
-       * neighbor_count.
+       * int value type.
        * 
* - * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * int64 value_int = 2; * * @return This builder for chaining. */ - public Builder clearApproximateNeighborCandidates() { - bitField0_ = (bitField0_ & ~0x00000001); - approximateNeighborCandidates_ = 0; - onChanged(); + public Builder clearValueInt() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } return this; } - private double leafNodesSearchFraction_; /** * * *
-       * Optional. The fraction of the number of leaves to search, set at query
-       * time allows user to tune search performance. This value increase result
-       * in both search accuracy and latency increase. The value should be between
-       * 0.0 and 1.0.
+       * float value type.
        * 
* - * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * float value_float = 3; * - * @return The leafNodesSearchFraction. + * @return Whether the valueFloat field is set. */ - @java.lang.Override - public double getLeafNodesSearchFraction() { - return leafNodesSearchFraction_; + public boolean hasValueFloat() { + return valueCase_ == 3; } /** * * *
-       * Optional. The fraction of the number of leaves to search, set at query
-       * time allows user to tune search performance. This value increase result
-       * in both search accuracy and latency increase. The value should be between
-       * 0.0 and 1.0.
+       * float value type.
        * 
* - * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * float value_float = 3; * - * @param value The leafNodesSearchFraction to set. + * @return The valueFloat. + */ + public float getValueFloat() { + if (valueCase_ == 3) { + return (java.lang.Float) value_; + } + return 0F; + } + /** + * + * + *
+       * float value type.
+       * 
+ * + * float value_float = 3; + * + * @param value The valueFloat to set. * @return This builder for chaining. */ - public Builder setLeafNodesSearchFraction(double value) { + public Builder setValueFloat(float value) { - leafNodesSearchFraction_ = value; - bitField0_ |= 0x00000002; + valueCase_ = 3; + value_ = value; onChanged(); return this; } @@ -2736,295 +3490,1299 @@ public Builder setLeafNodesSearchFraction(double value) { * * *
-       * Optional. The fraction of the number of leaves to search, set at query
-       * time allows user to tune search performance. This value increase result
-       * in both search accuracy and latency increase. The value should be between
-       * 0.0 and 1.0.
+       * float value type.
        * 
* - * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * float value_float = 3; * * @return This builder for chaining. */ - public Builder clearLeafNodesSearchFraction() { - bitField0_ = (bitField0_ & ~0x00000002); - leafNodesSearchFraction_ = 0D; - onChanged(); + public Builder clearValueFloat() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + /** + * + * + *
+       * double value type.
+       * 
+ * + * double value_double = 4; + * + * @return Whether the valueDouble field is set. + */ + public boolean hasValueDouble() { + return valueCase_ == 4; } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + /** + * + * + *
+       * double value type.
+       * 
+ * + * double value_double = 4; + * + * @return The valueDouble. + */ + public double getValueDouble() { + if (valueCase_ == 4) { + return (java.lang.Double) value_; + } + return 0D; } + /** + * + * + *
+       * double value type.
+       * 
+ * + * double value_double = 4; + * + * @param value The valueDouble to set. + * @return This builder for chaining. + */ + public Builder setValueDouble(double value) { - // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) - private static final com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters(); - } - - public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Parameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * double value type.
+       * 
+ * + * double value_double = 4; + * + * @return This builder for chaining. + */ + public Builder clearValueDouble() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } - public static com.google.protobuf.Parser parser() { + private java.lang.Object name_ = ""; + /** + * + * + *
+       * Required. Column name in BigQuery that used as filters.
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Column name in BigQuery that used as filters.
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Column name in BigQuery that used as filters.
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Column name in BigQuery that used as filters.
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Column name in BigQuery that used as filters.
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int op_ = 0; + /** + * + * + *
+       * Optional. This MUST be specified for queries and must NOT be specified
+       * for database points.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the op field is set. + */ + @java.lang.Override + public boolean hasOp() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+       * Optional. This MUST be specified for queries and must NOT be specified
+       * for database points.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for op. + */ + @java.lang.Override + public int getOpValue() { + return op_; + } + /** + * + * + *
+       * Optional. This MUST be specified for queries and must NOT be specified
+       * for database points.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for op to set. + * @return This builder for chaining. + */ + public Builder setOpValue(int value) { + op_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. This MUST be specified for queries and must NOT be specified
+       * for database points.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The op. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator + getOp() { + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator result = + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator + .forNumber(op_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional. This MUST be specified for queries and must NOT be specified
+       * for database points.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The op to set. + * @return This builder for chaining. + */ + public Builder setOp( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + op_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. This MUST be specified for queries and must NOT be specified
+       * for database points.
+       * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearOp() { + bitField0_ = (bitField0_ & ~0x00000010); + op_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter) + private static final com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter(); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumericFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - private int bitField0_; - private int instanceCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object instance_; - - public enum InstanceCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - ENTITY_ID(1), - EMBEDDING(2), - INSTANCE_NOT_SET(0); - private final int value; + public interface ParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) + com.google.protobuf.MessageOrBuilder { - private InstanceCase(int value) { - this.value = value; - } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InstanceCase valueOf(int value) { - return forNumber(value); - } - - public static InstanceCase forNumber(int value) { - switch (value) { - case 1: - return ENTITY_ID; - case 2: - return EMBEDDING; - case 0: - return INSTANCE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public InstanceCase getInstanceCase() { - return InstanceCase.forNumber(instanceCase_); - } + * + * + *
+     * Optional. The number of neighbors to find via approximate search before
+     * exact reordering is performed; if set, this value must be >
+     * neighbor_count.
+     * 
+ * + * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The approximateNeighborCandidates. + */ + int getApproximateNeighborCandidates(); - public static final int ENTITY_ID_FIELD_NUMBER = 1; - /** - * - * - *
-   * Optional. The entity id whose similar entities should be searched for.
-   * If embedding is set, search will use embedding instead of
-   * entity_id.
-   * 
- * - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the entityId field is set. - */ - public boolean hasEntityId() { - return instanceCase_ == 1; + /** + * + * + *
+     * Optional. The fraction of the number of leaves to search, set at query
+     * time allows user to tune search performance. This value increase result
+     * in both search accuracy and latency increase. The value should be between
+     * 0.0 and 1.0.
+     * 
+ * + * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The leafNodesSearchFraction. + */ + double getLeafNodesSearchFraction(); } /** * * *
-   * Optional. The entity id whose similar entities should be searched for.
-   * If embedding is set, search will use embedding instead of
-   * entity_id.
+   * Parameters that can be overrided in each query to tune query latency and
+   * recall.
    * 
* - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The entityId. + * Protobuf type {@code google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters} */ - public java.lang.String getEntityId() { - java.lang.Object ref = ""; - if (instanceCase_ == 1) { - ref = instance_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (instanceCase_ == 1) { - instance_ = s; - } - return s; + public static final class Parameters extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) + ParametersOrBuilder { + private static final long serialVersionUID = 0L; + // Use Parameters.newBuilder() to construct. + private Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - /** - * - * - *
-   * Optional. The entity id whose similar entities should be searched for.
-   * If embedding is set, search will use embedding instead of
-   * entity_id.
-   * 
- * - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for entityId. - */ - public com.google.protobuf.ByteString getEntityIdBytes() { - java.lang.Object ref = ""; - if (instanceCase_ == 1) { - ref = instance_; + + private Parameters() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Parameters(); } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (instanceCase_ == 1) { - instance_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_Parameters_descriptor; } - } - public static final int EMBEDDING_FIELD_NUMBER = 2; - /** - * - * - *
-   * Optional. The embedding vector that be used for similar search.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the embedding field is set. - */ - @java.lang.Override - public boolean hasEmbedding() { - return instanceCase_ == 2; - } - /** - * - * - *
-   * Optional. The embedding vector that be used for similar search.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The embedding. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding getEmbedding() { - if (instanceCase_ == 2) { - return (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding) instance_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_Parameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters.class, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters.Builder.class); } - return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. The embedding vector that be used for similar search.
-   * 
- * - * - * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.EmbeddingOrBuilder - getEmbeddingOrBuilder() { - if (instanceCase_ == 2) { - return (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding) instance_; + + public static final int APPROXIMATE_NEIGHBOR_CANDIDATES_FIELD_NUMBER = 1; + private int approximateNeighborCandidates_ = 0; + /** + * + * + *
+     * Optional. The number of neighbors to find via approximate search before
+     * exact reordering is performed; if set, this value must be >
+     * neighbor_count.
+     * 
+ * + * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The approximateNeighborCandidates. + */ + @java.lang.Override + public int getApproximateNeighborCandidates() { + return approximateNeighborCandidates_; } - return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.getDefaultInstance(); - } - public static final int NEIGHBOR_COUNT_FIELD_NUMBER = 3; - private int neighborCount_ = 0; - /** - * - * - *
-   * Optional. The number of similar entities to be retrieved from feature view
-   * for each query.
-   * 
- * - * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The neighborCount. - */ - @java.lang.Override - public int getNeighborCount() { - return neighborCount_; - } + public static final int LEAF_NODES_SEARCH_FRACTION_FIELD_NUMBER = 2; + private double leafNodesSearchFraction_ = 0D; + /** + * + * + *
+     * Optional. The fraction of the number of leaves to search, set at query
+     * time allows user to tune search performance. This value increase result
+     * in both search accuracy and latency increase. The value should be between
+     * 0.0 and 1.0.
+     * 
+ * + * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The leafNodesSearchFraction. + */ + @java.lang.Override + public double getLeafNodesSearchFraction() { + return leafNodesSearchFraction_; + } - public static final int STRING_FILTERS_FIELD_NUMBER = 4; + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (approximateNeighborCandidates_ != 0) { + output.writeInt32(1, approximateNeighborCandidates_); + } + if (java.lang.Double.doubleToRawLongBits(leafNodesSearchFraction_) != 0) { + output.writeDouble(2, leafNodesSearchFraction_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (approximateNeighborCandidates_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 1, approximateNeighborCandidates_); + } + if (java.lang.Double.doubleToRawLongBits(leafNodesSearchFraction_) != 0) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(2, leafNodesSearchFraction_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters other = + (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) obj; + + if (getApproximateNeighborCandidates() != other.getApproximateNeighborCandidates()) + return false; + if (java.lang.Double.doubleToLongBits(getLeafNodesSearchFraction()) + != java.lang.Double.doubleToLongBits(other.getLeafNodesSearchFraction())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + APPROXIMATE_NEIGHBOR_CANDIDATES_FIELD_NUMBER; + hash = (53 * hash) + getApproximateNeighborCandidates(); + hash = (37 * hash) + LEAF_NODES_SEARCH_FRACTION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLeafNodesSearchFraction())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Parameters that can be overrided in each query to tune query latency and
+     * recall.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.ParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_Parameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_Parameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters.class, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + approximateNeighborCandidates_ = 0; + leafNodesSearchFraction_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_Parameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters build() { + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters buildPartial() { + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters result = + new com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.approximateNeighborCandidates_ = approximateNeighborCandidates_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.leafNodesSearchFraction_ = leafNodesSearchFraction_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters other) { + if (other + == com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters + .getDefaultInstance()) return this; + if (other.getApproximateNeighborCandidates() != 0) { + setApproximateNeighborCandidates(other.getApproximateNeighborCandidates()); + } + if (other.getLeafNodesSearchFraction() != 0D) { + setLeafNodesSearchFraction(other.getLeafNodesSearchFraction()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + approximateNeighborCandidates_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 17: + { + leafNodesSearchFraction_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int approximateNeighborCandidates_; + /** + * + * + *
+       * Optional. The number of neighbors to find via approximate search before
+       * exact reordering is performed; if set, this value must be >
+       * neighbor_count.
+       * 
+ * + * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The approximateNeighborCandidates. + */ + @java.lang.Override + public int getApproximateNeighborCandidates() { + return approximateNeighborCandidates_; + } + /** + * + * + *
+       * Optional. The number of neighbors to find via approximate search before
+       * exact reordering is performed; if set, this value must be >
+       * neighbor_count.
+       * 
+ * + * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The approximateNeighborCandidates to set. + * @return This builder for chaining. + */ + public Builder setApproximateNeighborCandidates(int value) { + + approximateNeighborCandidates_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The number of neighbors to find via approximate search before
+       * exact reordering is performed; if set, this value must be >
+       * neighbor_count.
+       * 
+ * + * int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearApproximateNeighborCandidates() { + bitField0_ = (bitField0_ & ~0x00000001); + approximateNeighborCandidates_ = 0; + onChanged(); + return this; + } + + private double leafNodesSearchFraction_; + /** + * + * + *
+       * Optional. The fraction of the number of leaves to search, set at query
+       * time allows user to tune search performance. This value increase result
+       * in both search accuracy and latency increase. The value should be between
+       * 0.0 and 1.0.
+       * 
+ * + * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The leafNodesSearchFraction. + */ + @java.lang.Override + public double getLeafNodesSearchFraction() { + return leafNodesSearchFraction_; + } + /** + * + * + *
+       * Optional. The fraction of the number of leaves to search, set at query
+       * time allows user to tune search performance. This value increase result
+       * in both search accuracy and latency increase. The value should be between
+       * 0.0 and 1.0.
+       * 
+ * + * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The leafNodesSearchFraction to set. + * @return This builder for chaining. + */ + public Builder setLeafNodesSearchFraction(double value) { + + leafNodesSearchFraction_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The fraction of the number of leaves to search, set at query
+       * time allows user to tune search performance. This value increase result
+       * in both search accuracy and latency increase. The value should be between
+       * 0.0 and 1.0.
+       * 
+ * + * double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearLeafNodesSearchFraction() { + bitField0_ = (bitField0_ & ~0x00000002); + leafNodesSearchFraction_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters) + private static final com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters(); + } + + public static com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Parameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int instanceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object instance_; + + public enum InstanceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ENTITY_ID(1), + EMBEDDING(2), + INSTANCE_NOT_SET(0); + private final int value; + + private InstanceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InstanceCase valueOf(int value) { + return forNumber(value); + } + + public static InstanceCase forNumber(int value) { + switch (value) { + case 1: + return ENTITY_ID; + case 2: + return EMBEDDING; + case 0: + return INSTANCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public InstanceCase getInstanceCase() { + return InstanceCase.forNumber(instanceCase_); + } + + public static final int ENTITY_ID_FIELD_NUMBER = 1; + /** + * + * + *
+   * Optional. The entity id whose similar entities should be searched for.
+   * If embedding is set, search will use embedding instead of
+   * entity_id.
+   * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the entityId field is set. + */ + public boolean hasEntityId() { + return instanceCase_ == 1; + } + /** + * + * + *
+   * Optional. The entity id whose similar entities should be searched for.
+   * If embedding is set, search will use embedding instead of
+   * entity_id.
+   * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entityId. + */ + public java.lang.String getEntityId() { + java.lang.Object ref = ""; + if (instanceCase_ == 1) { + ref = instance_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (instanceCase_ == 1) { + instance_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional. The entity id whose similar entities should be searched for.
+   * If embedding is set, search will use embedding instead of
+   * entity_id.
+   * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entityId. + */ + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = ""; + if (instanceCase_ == 1) { + ref = instance_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (instanceCase_ == 1) { + instance_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMBEDDING_FIELD_NUMBER = 2; + /** + * + * + *
+   * Optional. The embedding vector that be used for similar search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the embedding field is set. + */ + @java.lang.Override + public boolean hasEmbedding() { + return instanceCase_ == 2; + } + /** + * + * + *
+   * Optional. The embedding vector that be used for similar search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The embedding. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding getEmbedding() { + if (instanceCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding) instance_; + } + return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. The embedding vector that be used for similar search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.EmbeddingOrBuilder + getEmbeddingOrBuilder() { + if (instanceCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding) instance_; + } + return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.getDefaultInstance(); + } + + public static final int NEIGHBOR_COUNT_FIELD_NUMBER = 3; + private int neighborCount_ = 0; + /** + * + * + *
+   * Optional. The number of similar entities to be retrieved from feature view
+   * for each query.
+   * 
+ * + * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The neighborCount. + */ + @java.lang.Override + public int getNeighborCount() { + return neighborCount_; + } + + public static final int STRING_FILTERS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List @@ -3110,6 +4868,92 @@ public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter get return stringFilters_.get(index); } + public static final int NUMERIC_FILTERS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List + numericFilters_; + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getNumericFiltersList() { + return numericFilters_; + } + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilterOrBuilder> + getNumericFiltersOrBuilderList() { + return numericFilters_; + } + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getNumericFiltersCount() { + return numericFilters_.size(); + } + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter getNumericFilters( + int index) { + return numericFilters_.get(index); + } + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilterOrBuilder + getNumericFiltersOrBuilder(int index) { + return numericFilters_.get(index); + } + public static final int PER_CROWDING_ATTRIBUTE_NEIGHBOR_COUNT_FIELD_NUMBER = 5; private int perCrowdingAttributeNeighborCount_ = 0; /** @@ -3223,6 +5067,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getParameters()); } + for (int i = 0; i < numericFilters_.size(); i++) { + output.writeMessage(8, numericFilters_.get(i)); + } getUnknownFields().writeTo(output); } @@ -3254,6 +5101,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getParameters()); } + for (int i = 0; i < numericFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, numericFilters_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3272,6 +5122,7 @@ public boolean equals(final java.lang.Object obj) { if (getNeighborCount() != other.getNeighborCount()) return false; if (!getStringFiltersList().equals(other.getStringFiltersList())) return false; + if (!getNumericFiltersList().equals(other.getNumericFiltersList())) return false; if (getPerCrowdingAttributeNeighborCount() != other.getPerCrowdingAttributeNeighborCount()) return false; if (hasParameters() != other.hasParameters()) return false; @@ -3306,6 +5157,10 @@ public int hashCode() { hash = (37 * hash) + STRING_FILTERS_FIELD_NUMBER; hash = (53 * hash) + getStringFiltersList().hashCode(); } + if (getNumericFiltersCount() > 0) { + hash = (37 * hash) + NUMERIC_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getNumericFiltersList().hashCode(); + } hash = (37 * hash) + PER_CROWDING_ATTRIBUTE_NEIGHBOR_COUNT_FIELD_NUMBER; hash = (53 * hash) + getPerCrowdingAttributeNeighborCount(); if (hasParameters()) { @@ -3406,490 +5261,970 @@ public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A query to find a number of similar entities.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.NearestNeighborQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NearestNeighborQuery) + com.google.cloud.aiplatform.v1beta1.NearestNeighborQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.class, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStringFiltersFieldBuilder(); + getNumericFiltersFieldBuilder(); + getParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (embeddingBuilder_ != null) { + embeddingBuilder_.clear(); + } + neighborCount_ = 0; + if (stringFiltersBuilder_ == null) { + stringFilters_ = java.util.Collections.emptyList(); + } else { + stringFilters_ = null; + stringFiltersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (numericFiltersBuilder_ == null) { + numericFilters_ = java.util.Collections.emptyList(); + } else { + numericFilters_ = null; + numericFiltersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + perCrowdingAttributeNeighborCount_ = 0; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + instanceCase_ = 0; + instance_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery build() { + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery buildPartial() { + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery result = + new com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery result) { + if (stringFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + stringFilters_ = java.util.Collections.unmodifiableList(stringFilters_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.stringFilters_ = stringFilters_; + } else { + result.stringFilters_ = stringFiltersBuilder_.build(); + } + if (numericFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + numericFilters_ = java.util.Collections.unmodifiableList(numericFilters_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.numericFilters_ = numericFilters_; + } else { + result.numericFilters_ = numericFiltersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.neighborCount_ = neighborCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.perCrowdingAttributeNeighborCount_ = perCrowdingAttributeNeighborCount_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery result) { + result.instanceCase_ = instanceCase_; + result.instance_ = this.instance_; + if (instanceCase_ == 2 && embeddingBuilder_ != null) { + result.instance_ = embeddingBuilder_.build(); + } + } - public static Builder newBuilder( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A query to find a number of similar entities.
-   * 
- * - * Protobuf type {@code google.cloud.aiplatform.v1beta1.NearestNeighborQuery} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NearestNeighborQuery) - com.google.cloud.aiplatform.v1beta1.NearestNeighborQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_descriptor; + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.class, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Builder.class); + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - // Construct using com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getStringFiltersFieldBuilder(); - getParametersFieldBuilder(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery) other); + } else { + super.mergeFrom(other); + return this; } } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (embeddingBuilder_ != null) { - embeddingBuilder_.clear(); + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery other) { + if (other == com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.getDefaultInstance()) + return this; + if (other.getNeighborCount() != 0) { + setNeighborCount(other.getNeighborCount()); } - neighborCount_ = 0; if (stringFiltersBuilder_ == null) { - stringFilters_ = java.util.Collections.emptyList(); + if (!other.stringFilters_.isEmpty()) { + if (stringFilters_.isEmpty()) { + stringFilters_ = other.stringFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureStringFiltersIsMutable(); + stringFilters_.addAll(other.stringFilters_); + } + onChanged(); + } } else { - stringFilters_ = null; - stringFiltersBuilder_.clear(); + if (!other.stringFilters_.isEmpty()) { + if (stringFiltersBuilder_.isEmpty()) { + stringFiltersBuilder_.dispose(); + stringFiltersBuilder_ = null; + stringFilters_ = other.stringFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + stringFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStringFiltersFieldBuilder() + : null; + } else { + stringFiltersBuilder_.addAllMessages(other.stringFilters_); + } + } } - bitField0_ = (bitField0_ & ~0x00000008); - perCrowdingAttributeNeighborCount_ = 0; - parameters_ = null; - if (parametersBuilder_ != null) { - parametersBuilder_.dispose(); - parametersBuilder_ = null; + if (numericFiltersBuilder_ == null) { + if (!other.numericFilters_.isEmpty()) { + if (numericFilters_.isEmpty()) { + numericFilters_ = other.numericFilters_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureNumericFiltersIsMutable(); + numericFilters_.addAll(other.numericFilters_); + } + onChanged(); + } + } else { + if (!other.numericFilters_.isEmpty()) { + if (numericFiltersBuilder_.isEmpty()) { + numericFiltersBuilder_.dispose(); + numericFiltersBuilder_ = null; + numericFilters_ = other.numericFilters_; + bitField0_ = (bitField0_ & ~0x00000010); + numericFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNumericFiltersFieldBuilder() + : null; + } else { + numericFiltersBuilder_.addAllMessages(other.numericFilters_); + } + } } - instanceCase_ = 0; - instance_ = null; + if (other.getPerCrowdingAttributeNeighborCount() != 0) { + setPerCrowdingAttributeNeighborCount(other.getPerCrowdingAttributeNeighborCount()); + } + if (other.hasParameters()) { + mergeParameters(other.getParameters()); + } + switch (other.getInstanceCase()) { + case ENTITY_ID: + { + instanceCase_ = 1; + instance_ = other.instance_; + onChanged(); + break; + } + case EMBEDDING: + { + mergeEmbedding(other.getEmbedding()); + break; + } + case INSTANCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + instanceCase_ = 1; + instance_ = s; + break; + } // case 10 + case 18: + { + input.readMessage(getEmbeddingFieldBuilder().getBuilder(), extensionRegistry); + instanceCase_ = 2; + break; + } // case 18 + case 24: + { + neighborCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter + .parser(), + extensionRegistry); + if (stringFiltersBuilder_ == null) { + ensureStringFiltersIsMutable(); + stringFilters_.add(m); + } else { + stringFiltersBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: + { + perCrowdingAttributeNeighborCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 58: + { + input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter + .parser(), + extensionRegistry); + if (numericFiltersBuilder_ == null) { + ensureNumericFiltersIsMutable(); + numericFilters_.add(m); + } else { + numericFiltersBuilder_.addMessage(m); + } + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_NearestNeighborQuery_descriptor; + private int instanceCase_ = 0; + private java.lang.Object instance_; + + public InstanceCase getInstanceCase() { + return InstanceCase.forNumber(instanceCase_); } - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.getDefaultInstance(); + public Builder clearInstance() { + instanceCase_ = 0; + instance_ = null; + onChanged(); + return this; } + private int bitField0_; + + /** + * + * + *
+     * Optional. The entity id whose similar entities should be searched for.
+     * If embedding is set, search will use embedding instead of
+     * entity_id.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the entityId field is set. + */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery build() { - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public boolean hasEntityId() { + return instanceCase_ == 1; } - + /** + * + * + *
+     * Optional. The entity id whose similar entities should be searched for.
+     * If embedding is set, search will use embedding instead of
+     * entity_id.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entityId. + */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery buildPartial() { - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery result = - new com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); + public java.lang.String getEntityId() { + java.lang.Object ref = ""; + if (instanceCase_ == 1) { + ref = instance_; } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery result) { - if (stringFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - stringFilters_ = java.util.Collections.unmodifiableList(stringFilters_); - bitField0_ = (bitField0_ & ~0x00000008); + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (instanceCase_ == 1) { + instance_ = s; } - result.stringFilters_ = stringFilters_; + return s; } else { - result.stringFilters_ = stringFiltersBuilder_.build(); + return (java.lang.String) ref; } } - - private void buildPartial0(com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.neighborCount_ = neighborCount_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.perCrowdingAttributeNeighborCount_ = perCrowdingAttributeNeighborCount_; + /** + * + * + *
+     * Optional. The entity id whose similar entities should be searched for.
+     * If embedding is set, search will use embedding instead of
+     * entity_id.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entityId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = ""; + if (instanceCase_ == 1) { + ref = instance_; } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { - result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); - to_bitField0_ |= 0x00000001; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (instanceCase_ == 1) { + instance_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - result.bitField0_ |= to_bitField0_; } - - private void buildPartialOneofs( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery result) { - result.instanceCase_ = instanceCase_; - result.instance_ = this.instance_; - if (instanceCase_ == 2 && embeddingBuilder_ != null) { - result.instance_ = embeddingBuilder_.build(); + /** + * + * + *
+     * Optional. The entity id whose similar entities should be searched for.
+     * If embedding is set, search will use embedding instead of
+     * entity_id.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + instanceCase_ = 1; + instance_ = value; + onChanged(); + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
+     * Optional. The entity id whose similar entities should be searched for.
+     * If embedding is set, search will use embedding instead of
+     * entity_id.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEntityId() { + if (instanceCase_ == 1) { + instanceCase_ = 0; + instance_ = null; + onChanged(); + } + return this; } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+     * Optional. The entity id whose similar entities should be searched for.
+     * If embedding is set, search will use embedding instead of
+     * entity_id.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceCase_ = 1; + instance_ = value; + onChanged(); + return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.EmbeddingOrBuilder> + embeddingBuilder_; + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the embedding field is set. + */ @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public boolean hasEmbedding() { + return instanceCase_ == 2; } - + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The embedding. + */ @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding getEmbedding() { + if (embeddingBuilder_ == null) { + if (instanceCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding) instance_; + } + return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding + .getDefaultInstance(); + } else { + if (instanceCase_ == 2) { + return embeddingBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding + .getDefaultInstance(); + } } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery) { - return mergeFrom((com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery) other); + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEmbedding( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding value) { + if (embeddingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + onChanged(); } else { - super.mergeFrom(other); - return this; + embeddingBuilder_.setMessage(value); } + instanceCase_ = 2; + return this; } - - public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery other) { - if (other == com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.getDefaultInstance()) - return this; - if (other.getNeighborCount() != 0) { - setNeighborCount(other.getNeighborCount()); + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEmbedding( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.Builder + builderForValue) { + if (embeddingBuilder_ == null) { + instance_ = builderForValue.build(); + onChanged(); + } else { + embeddingBuilder_.setMessage(builderForValue.build()); } - if (stringFiltersBuilder_ == null) { - if (!other.stringFilters_.isEmpty()) { - if (stringFilters_.isEmpty()) { - stringFilters_ = other.stringFilters_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureStringFiltersIsMutable(); - stringFilters_.addAll(other.stringFilters_); - } - onChanged(); + instanceCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEmbedding( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding value) { + if (embeddingBuilder_ == null) { + if (instanceCase_ == 2 + && instance_ + != com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding + .getDefaultInstance()) { + instance_ = + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.newBuilder( + (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding) + instance_) + .mergeFrom(value) + .buildPartial(); + } else { + instance_ = value; } + onChanged(); } else { - if (!other.stringFilters_.isEmpty()) { - if (stringFiltersBuilder_.isEmpty()) { - stringFiltersBuilder_.dispose(); - stringFiltersBuilder_ = null; - stringFilters_ = other.stringFilters_; - bitField0_ = (bitField0_ & ~0x00000008); - stringFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStringFiltersFieldBuilder() - : null; - } else { - stringFiltersBuilder_.addAllMessages(other.stringFilters_); - } + if (instanceCase_ == 2) { + embeddingBuilder_.mergeFrom(value); + } else { + embeddingBuilder_.setMessage(value); } } - if (other.getPerCrowdingAttributeNeighborCount() != 0) { - setPerCrowdingAttributeNeighborCount(other.getPerCrowdingAttributeNeighborCount()); - } - if (other.hasParameters()) { - mergeParameters(other.getParameters()); - } - switch (other.getInstanceCase()) { - case ENTITY_ID: - { - instanceCase_ = 1; - instance_ = other.instance_; - onChanged(); - break; - } - case EMBEDDING: - { - mergeEmbedding(other.getEmbedding()); - break; - } - case INSTANCE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + instanceCase_ = 2; return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - instanceCase_ = 1; - instance_ = s; - break; - } // case 10 - case 18: - { - input.readMessage(getEmbeddingFieldBuilder().getBuilder(), extensionRegistry); - instanceCase_ = 2; - break; - } // case 18 - case 24: - { - neighborCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter m = - input.readMessage( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter - .parser(), - extensionRegistry); - if (stringFiltersBuilder_ == null) { - ensureStringFiltersIsMutable(); - stringFilters_.add(m); - } else { - stringFiltersBuilder_.addMessage(m); - } - break; - } // case 34 - case 40: - { - perCrowdingAttributeNeighborCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 58: - { - input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEmbedding() { + if (embeddingBuilder_ == null) { + if (instanceCase_ == 2) { + instanceCase_ = 0; + instance_ = null; + onChanged(); + } + } else { + if (instanceCase_ == 2) { + instanceCase_ = 0; + instance_ = null; + } + embeddingBuilder_.clear(); + } return this; } - - private int instanceCase_ = 0; - private java.lang.Object instance_; - - public InstanceCase getInstanceCase() { - return InstanceCase.forNumber(instanceCase_); + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.Builder + getEmbeddingBuilder() { + return getEmbeddingFieldBuilder().getBuilder(); } - - public Builder clearInstance() { - instanceCase_ = 0; - instance_ = null; + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.EmbeddingOrBuilder + getEmbeddingOrBuilder() { + if ((instanceCase_ == 2) && (embeddingBuilder_ != null)) { + return embeddingBuilder_.getMessageOrBuilder(); + } else { + if (instanceCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding) instance_; + } + return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. The embedding vector that be used for similar search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.EmbeddingOrBuilder> + getEmbeddingFieldBuilder() { + if (embeddingBuilder_ == null) { + if (!(instanceCase_ == 2)) { + instance_ = + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding + .getDefaultInstance(); + } + embeddingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.EmbeddingOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding) instance_, + getParentForChildren(), + isClean()); + instance_ = null; + } + instanceCase_ = 2; onChanged(); - return this; + return embeddingBuilder_; } - private int bitField0_; - + private int neighborCount_; /** * * *
-     * Optional. The entity id whose similar entities should be searched for.
-     * If embedding is set, search will use embedding instead of
-     * entity_id.
+     * Optional. The number of similar entities to be retrieved from feature view
+     * for each query.
      * 
* - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return Whether the entityId field is set. + * @return The neighborCount. */ @java.lang.Override - public boolean hasEntityId() { - return instanceCase_ == 1; + public int getNeighborCount() { + return neighborCount_; } /** * * *
-     * Optional. The entity id whose similar entities should be searched for.
-     * If embedding is set, search will use embedding instead of
-     * entity_id.
+     * Optional. The number of similar entities to be retrieved from feature view
+     * for each query.
      * 
* - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The entityId. + * @param value The neighborCount to set. + * @return This builder for chaining. */ - @java.lang.Override - public java.lang.String getEntityId() { - java.lang.Object ref = ""; - if (instanceCase_ == 1) { - ref = instance_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (instanceCase_ == 1) { - instance_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + public Builder setNeighborCount(int value) { + + neighborCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } /** * * *
-     * Optional. The entity id whose similar entities should be searched for.
-     * If embedding is set, search will use embedding instead of
-     * entity_id.
+     * Optional. The number of similar entities to be retrieved from feature view
+     * for each query.
      * 
* - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for entityId. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.protobuf.ByteString getEntityIdBytes() { - java.lang.Object ref = ""; - if (instanceCase_ == 1) { - ref = instance_; + public Builder clearNeighborCount() { + bitField0_ = (bitField0_ & ~0x00000004); + neighborCount_ = 0; + onChanged(); + return this; + } + + private java.util.List + stringFilters_ = java.util.Collections.emptyList(); + + private void ensureStringFiltersIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + stringFilters_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter>( + stringFilters_); + bitField0_ |= 0x00000008; } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (instanceCase_ == 1) { - instance_ = b; - } - return b; + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilterOrBuilder> + stringFiltersBuilder_; + + /** + * + * + *
+     * Optional. The list of string filters.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getStringFiltersList() { + if (stringFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(stringFilters_); } else { - return (com.google.protobuf.ByteString) ref; + return stringFiltersBuilder_.getMessageList(); } } /** * * *
-     * Optional. The entity id whose similar entities should be searched for.
-     * If embedding is set, search will use embedding instead of
-     * entity_id.
+     * Optional. The list of string filters.
      * 
* - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The entityId to set. - * @return This builder for chaining. + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEntityId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public int getStringFiltersCount() { + if (stringFiltersBuilder_ == null) { + return stringFilters_.size(); + } else { + return stringFiltersBuilder_.getCount(); } - instanceCase_ = 1; - instance_ = value; - onChanged(); - return this; } /** * * *
-     * Optional. The entity id whose similar entities should be searched for.
-     * If embedding is set, search will use embedding instead of
-     * entity_id.
+     * Optional. The list of string filters.
      * 
* - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter getStringFilters( + int index) { + if (stringFiltersBuilder_ == null) { + return stringFilters_.get(index); + } else { + return stringFiltersBuilder_.getMessage(index); + } + } + /** * - * @return This builder for chaining. + * + *
+     * Optional. The list of string filters.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearEntityId() { - if (instanceCase_ == 1) { - instanceCase_ = 0; - instance_ = null; + public Builder setStringFilters( + int index, com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter value) { + if (stringFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStringFiltersIsMutable(); + stringFilters_.set(index, value); onChanged(); + } else { + stringFiltersBuilder_.setMessage(index, value); } return this; } @@ -3897,188 +6232,165 @@ public Builder clearEntityId() { * * *
-     * Optional. The entity id whose similar entities should be searched for.
-     * If embedding is set, search will use embedding instead of
-     * entity_id.
+     * Optional. The list of string filters.
      * 
* - * string entity_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for entityId to set. - * @return This builder for chaining. + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setStringFilters( + int index, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder + builderForValue) { + if (stringFiltersBuilder_ == null) { + ensureStringFiltersIsMutable(); + stringFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + stringFiltersBuilder_.setMessage(index, builderForValue.build()); } - checkByteStringIsUtf8(value); - instanceCase_ = 1; - instance_ = value; - onChanged(); return this; } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.Builder, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.EmbeddingOrBuilder> - embeddingBuilder_; /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the embedding field is set. */ - @java.lang.Override - public boolean hasEmbedding() { - return instanceCase_ == 2; + public Builder addStringFilters( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter value) { + if (stringFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStringFiltersIsMutable(); + stringFilters_.add(value); + onChanged(); + } else { + stringFiltersBuilder_.addMessage(value); + } + return this; } /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The embedding. */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding getEmbedding() { - if (embeddingBuilder_ == null) { - if (instanceCase_ == 2) { - return (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding) instance_; + public Builder addStringFilters( + int index, com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter value) { + if (stringFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding - .getDefaultInstance(); + ensureStringFiltersIsMutable(); + stringFilters_.add(index, value); + onChanged(); } else { - if (instanceCase_ == 2) { - return embeddingBuilder_.getMessage(); - } - return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding - .getDefaultInstance(); + stringFiltersBuilder_.addMessage(index, value); } + return this; } /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setEmbedding( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding value) { - if (embeddingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - instance_ = value; + public Builder addStringFilters( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder + builderForValue) { + if (stringFiltersBuilder_ == null) { + ensureStringFiltersIsMutable(); + stringFilters_.add(builderForValue.build()); onChanged(); } else { - embeddingBuilder_.setMessage(value); + stringFiltersBuilder_.addMessage(builderForValue.build()); } - instanceCase_ = 2; return this; } /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setEmbedding( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.Builder + public Builder addStringFilters( + int index, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder builderForValue) { - if (embeddingBuilder_ == null) { - instance_ = builderForValue.build(); + if (stringFiltersBuilder_ == null) { + ensureStringFiltersIsMutable(); + stringFilters_.add(index, builderForValue.build()); onChanged(); } else { - embeddingBuilder_.setMessage(builderForValue.build()); + stringFiltersBuilder_.addMessage(index, builderForValue.build()); } - instanceCase_ = 2; return this; } /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeEmbedding( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding value) { - if (embeddingBuilder_ == null) { - if (instanceCase_ == 2 - && instance_ - != com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding - .getDefaultInstance()) { - instance_ = - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.newBuilder( - (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding) - instance_) - .mergeFrom(value) - .buildPartial(); - } else { - instance_ = value; - } + public Builder addAllStringFilters( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter> + values) { + if (stringFiltersBuilder_ == null) { + ensureStringFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stringFilters_); onChanged(); } else { - if (instanceCase_ == 2) { - embeddingBuilder_.mergeFrom(value); - } else { - embeddingBuilder_.setMessage(value); - } + stringFiltersBuilder_.addAllMessages(values); } - instanceCase_ = 2; return this; } /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearEmbedding() { - if (embeddingBuilder_ == null) { - if (instanceCase_ == 2) { - instanceCase_ = 0; - instance_ = null; - onChanged(); - } + public Builder clearStringFilters() { + if (stringFiltersBuilder_ == null) { + stringFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); } else { - if (instanceCase_ == 2) { - instanceCase_ = 0; - instance_ = null; - } - embeddingBuilder_.clear(); + stringFiltersBuilder_.clear(); } return this; } @@ -4086,231 +6398,249 @@ public Builder clearEmbedding() { * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.Builder - getEmbeddingBuilder() { - return getEmbeddingFieldBuilder().getBuilder(); + public Builder removeStringFilters(int index) { + if (stringFiltersBuilder_ == null) { + ensureStringFiltersIsMutable(); + stringFilters_.remove(index); + onChanged(); + } else { + stringFiltersBuilder_.remove(index); + } + return this; } /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.EmbeddingOrBuilder - getEmbeddingOrBuilder() { - if ((instanceCase_ == 2) && (embeddingBuilder_ != null)) { - return embeddingBuilder_.getMessageOrBuilder(); - } else { - if (instanceCase_ == 2) { - return (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding) instance_; - } - return com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding - .getDefaultInstance(); - } + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder + getStringFiltersBuilder(int index) { + return getStringFiltersFieldBuilder().getBuilder(index); } /** * * *
-     * Optional. The embedding vector that be used for similar search.
+     * Optional. The list of string filters.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding embedding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.Builder, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.EmbeddingOrBuilder> - getEmbeddingFieldBuilder() { - if (embeddingBuilder_ == null) { - if (!(instanceCase_ == 2)) { - instance_ = - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding - .getDefaultInstance(); - } - embeddingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding.Builder, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.EmbeddingOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Embedding) instance_, - getParentForChildren(), - isClean()); - instance_ = null; + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilterOrBuilder + getStringFiltersOrBuilder(int index) { + if (stringFiltersBuilder_ == null) { + return stringFilters_.get(index); + } else { + return stringFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. The list of string filters.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilterOrBuilder> + getStringFiltersOrBuilderList() { + if (stringFiltersBuilder_ != null) { + return stringFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stringFilters_); } - instanceCase_ = 2; - onChanged(); - return embeddingBuilder_; } - - private int neighborCount_; /** * * *
-     * Optional. The number of similar entities to be retrieved from feature view
-     * for each query.
+     * Optional. The list of string filters.
      * 
* - * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The neighborCount. + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public int getNeighborCount() { - return neighborCount_; + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder + addStringFiltersBuilder() { + return getStringFiltersFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter + .getDefaultInstance()); } /** * * *
-     * Optional. The number of similar entities to be retrieved from feature view
-     * for each query.
+     * Optional. The list of string filters.
      * 
* - * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The neighborCount to set. - * @return This builder for chaining. + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setNeighborCount(int value) { - - neighborCount_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder + addStringFiltersBuilder(int index) { + return getStringFiltersFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter + .getDefaultInstance()); } /** * * *
-     * Optional. The number of similar entities to be retrieved from feature view
-     * for each query.
+     * Optional. The list of string filters.
      * 
* - * int32 neighbor_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearNeighborCount() { - bitField0_ = (bitField0_ & ~0x00000004); - neighborCount_ = 0; - onChanged(); - return this; + public java.util.List< + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder> + getStringFiltersBuilderList() { + return getStringFiltersFieldBuilder().getBuilderList(); } - private java.util.List - stringFilters_ = java.util.Collections.emptyList(); + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilterOrBuilder> + getStringFiltersFieldBuilder() { + if (stringFiltersBuilder_ == null) { + stringFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilterOrBuilder>( + stringFilters_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + stringFilters_ = null; + } + return stringFiltersBuilder_; + } - private void ensureStringFiltersIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - stringFilters_ = + private java.util.List + numericFilters_ = java.util.Collections.emptyList(); + + private void ensureNumericFiltersIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + numericFilters_ = new java.util.ArrayList< - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter>( - stringFilters_); - bitField0_ |= 0x00000008; + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter>( + numericFilters_); + bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilterOrBuilder> - stringFiltersBuilder_; + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilterOrBuilder> + numericFiltersBuilder_; /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getStringFiltersList() { - if (stringFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(stringFilters_); + public java.util.List + getNumericFiltersList() { + if (numericFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(numericFilters_); } else { - return stringFiltersBuilder_.getMessageList(); + return numericFiltersBuilder_.getMessageList(); } } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public int getStringFiltersCount() { - if (stringFiltersBuilder_ == null) { - return stringFilters_.size(); + public int getNumericFiltersCount() { + if (numericFiltersBuilder_ == null) { + return numericFilters_.size(); } else { - return stringFiltersBuilder_.getCount(); + return numericFiltersBuilder_.getCount(); } } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter getStringFilters( + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter getNumericFilters( int index) { - if (stringFiltersBuilder_ == null) { - return stringFilters_.get(index); + if (numericFiltersBuilder_ == null) { + return numericFilters_.get(index); } else { - return stringFiltersBuilder_.getMessage(index); + return numericFiltersBuilder_.getMessage(index); } } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setStringFilters( - int index, com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter value) { - if (stringFiltersBuilder_ == null) { + public Builder setNumericFilters( + int index, com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter value) { + if (numericFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureStringFiltersIsMutable(); - stringFilters_.set(index, value); + ensureNumericFiltersIsMutable(); + numericFilters_.set(index, value); onChanged(); } else { - stringFiltersBuilder_.setMessage(index, value); + numericFiltersBuilder_.setMessage(index, value); } return this; } @@ -4318,23 +6648,23 @@ public Builder setStringFilters( * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setStringFilters( + public Builder setNumericFilters( int index, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Builder builderForValue) { - if (stringFiltersBuilder_ == null) { - ensureStringFiltersIsMutable(); - stringFilters_.set(index, builderForValue.build()); + if (numericFiltersBuilder_ == null) { + ensureNumericFiltersIsMutable(); + numericFilters_.set(index, builderForValue.build()); onChanged(); } else { - stringFiltersBuilder_.setMessage(index, builderForValue.build()); + numericFiltersBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -4342,24 +6672,24 @@ public Builder setStringFilters( * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addStringFilters( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter value) { - if (stringFiltersBuilder_ == null) { + public Builder addNumericFilters( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter value) { + if (numericFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureStringFiltersIsMutable(); - stringFilters_.add(value); + ensureNumericFiltersIsMutable(); + numericFilters_.add(value); onChanged(); } else { - stringFiltersBuilder_.addMessage(value); + numericFiltersBuilder_.addMessage(value); } return this; } @@ -4367,24 +6697,24 @@ public Builder addStringFilters( * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addStringFilters( - int index, com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter value) { - if (stringFiltersBuilder_ == null) { + public Builder addNumericFilters( + int index, com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter value) { + if (numericFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureStringFiltersIsMutable(); - stringFilters_.add(index, value); + ensureNumericFiltersIsMutable(); + numericFilters_.add(index, value); onChanged(); } else { - stringFiltersBuilder_.addMessage(index, value); + numericFiltersBuilder_.addMessage(index, value); } return this; } @@ -4392,22 +6722,22 @@ public Builder addStringFilters( * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addStringFilters( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder + public Builder addNumericFilters( + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Builder builderForValue) { - if (stringFiltersBuilder_ == null) { - ensureStringFiltersIsMutable(); - stringFilters_.add(builderForValue.build()); + if (numericFiltersBuilder_ == null) { + ensureNumericFiltersIsMutable(); + numericFilters_.add(builderForValue.build()); onChanged(); } else { - stringFiltersBuilder_.addMessage(builderForValue.build()); + numericFiltersBuilder_.addMessage(builderForValue.build()); } return this; } @@ -4415,23 +6745,23 @@ public Builder addStringFilters( * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addStringFilters( + public Builder addNumericFilters( int index, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Builder builderForValue) { - if (stringFiltersBuilder_ == null) { - ensureStringFiltersIsMutable(); - stringFilters_.add(index, builderForValue.build()); + if (numericFiltersBuilder_ == null) { + ensureNumericFiltersIsMutable(); + numericFilters_.add(index, builderForValue.build()); onChanged(); } else { - stringFiltersBuilder_.addMessage(index, builderForValue.build()); + numericFiltersBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -4439,23 +6769,23 @@ public Builder addStringFilters( * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllStringFilters( + public Builder addAllNumericFilters( java.lang.Iterable< - ? extends com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter> + ? extends com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter> values) { - if (stringFiltersBuilder_ == null) { - ensureStringFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stringFilters_); + if (numericFiltersBuilder_ == null) { + ensureNumericFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, numericFilters_); onChanged(); } else { - stringFiltersBuilder_.addAllMessages(values); + numericFiltersBuilder_.addAllMessages(values); } return this; } @@ -4463,20 +6793,20 @@ public Builder addAllStringFilters( * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearStringFilters() { - if (stringFiltersBuilder_ == null) { - stringFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearNumericFilters() { + if (numericFiltersBuilder_ == null) { + numericFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { - stringFiltersBuilder_.clear(); + numericFiltersBuilder_.clear(); } return this; } @@ -4484,20 +6814,20 @@ public Builder clearStringFilters() { * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeStringFilters(int index) { - if (stringFiltersBuilder_ == null) { - ensureStringFiltersIsMutable(); - stringFilters_.remove(index); + public Builder removeNumericFilters(int index) { + if (numericFiltersBuilder_ == null) { + ensureNumericFiltersIsMutable(); + numericFilters_.remove(index); onChanged(); } else { - stringFiltersBuilder_.remove(index); + numericFiltersBuilder_.remove(index); } return this; } @@ -4505,129 +6835,129 @@ public Builder removeStringFilters(int index) { * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder - getStringFiltersBuilder(int index) { - return getStringFiltersFieldBuilder().getBuilder(index); + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Builder + getNumericFiltersBuilder(int index) { + return getNumericFiltersFieldBuilder().getBuilder(index); } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilterOrBuilder - getStringFiltersOrBuilder(int index) { - if (stringFiltersBuilder_ == null) { - return stringFilters_.get(index); + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilterOrBuilder + getNumericFiltersOrBuilder(int index) { + if (numericFiltersBuilder_ == null) { + return numericFilters_.get(index); } else { - return stringFiltersBuilder_.getMessageOrBuilder(index); + return numericFiltersBuilder_.getMessageOrBuilder(index); } } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List< ? extends - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilterOrBuilder> - getStringFiltersOrBuilderList() { - if (stringFiltersBuilder_ != null) { - return stringFiltersBuilder_.getMessageOrBuilderList(); + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilterOrBuilder> + getNumericFiltersOrBuilderList() { + if (numericFiltersBuilder_ != null) { + return numericFiltersBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(stringFilters_); + return java.util.Collections.unmodifiableList(numericFilters_); } } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder - addStringFiltersBuilder() { - return getStringFiltersFieldBuilder() + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Builder + addNumericFiltersBuilder() { + return getNumericFiltersFieldBuilder() .addBuilder( - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter .getDefaultInstance()); } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder - addStringFiltersBuilder(int index) { - return getStringFiltersFieldBuilder() + public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Builder + addNumericFiltersBuilder(int index) { + return getNumericFiltersFieldBuilder() .addBuilder( index, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter .getDefaultInstance()); } /** * * *
-     * Optional. The list of string filters.
+     * Optional. The list of numeric filters.
      * 
* * - * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter string_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List< - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder> - getStringFiltersBuilderList() { - return getStringFiltersFieldBuilder().getBuilderList(); + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Builder> + getNumericFiltersBuilderList() { + return getNumericFiltersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilterOrBuilder> - getStringFiltersFieldBuilder() { - if (stringFiltersBuilder_ == null) { - stringFiltersBuilder_ = + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilterOrBuilder> + getNumericFiltersFieldBuilder() { + if (numericFiltersBuilder_ == null) { + numericFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter.Builder, - com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilterOrBuilder>( - stringFilters_, - ((bitField0_ & 0x00000008) != 0), + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter.Builder, + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilterOrBuilder>( + numericFilters_, + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - stringFilters_ = null; + numericFilters_ = null; } - return stringFiltersBuilder_; + return numericFiltersBuilder_; } private int perCrowdingAttributeNeighborCount_; @@ -4671,7 +7001,7 @@ public int getPerCrowdingAttributeNeighborCount() { public Builder setPerCrowdingAttributeNeighborCount(int value) { perCrowdingAttributeNeighborCount_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4692,7 +7022,7 @@ public Builder setPerCrowdingAttributeNeighborCount(int value) { * @return This builder for chaining. */ public Builder clearPerCrowdingAttributeNeighborCount() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); perCrowdingAttributeNeighborCount_ = 0; onChanged(); return this; @@ -4718,7 +7048,7 @@ public Builder clearPerCrowdingAttributeNeighborCount() { * @return Whether the parameters field is set. */ public boolean hasParameters() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -4764,7 +7094,7 @@ public Builder setParameters( } else { parametersBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4787,7 +7117,7 @@ public Builder setParameters( } else { parametersBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4805,7 +7135,7 @@ public Builder setParameters( public Builder mergeParameters( com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters value) { if (parametersBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && parameters_ != null && parameters_ != com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters @@ -4818,7 +7148,7 @@ public Builder mergeParameters( parametersBuilder_.mergeFrom(value); } if (parameters_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -4835,7 +7165,7 @@ public Builder mergeParameters( * */ public Builder clearParameters() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); parameters_ = null; if (parametersBuilder_ != null) { parametersBuilder_.dispose(); @@ -4857,7 +7187,7 @@ public Builder clearParameters() { */ public com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.Parameters.Builder getParametersBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getParametersFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborQueryOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborQueryOrBuilder.java index 5e89eb96a3ba..799e79f8d9d7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborQueryOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborQueryOrBuilder.java @@ -188,6 +188,72 @@ public interface NearestNeighborQueryOrBuilder com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilterOrBuilder getStringFiltersOrBuilder(int index); + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getNumericFiltersList(); + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter getNumericFilters( + int index); + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNumericFiltersCount(); + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilterOrBuilder> + getNumericFiltersOrBuilderList(); + /** + * + * + *
+   * Optional. The list of numeric filters.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilter numeric_filters = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery.NumericFilterOrBuilder + getNumericFiltersOrBuilder(int index); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResource.java index 4698fd65e357..c986e16cb4bd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResource.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResource.java @@ -980,6 +980,63 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } + public static final int PSC_INTERFACE_CONFIG_FIELD_NUMBER = 17; + private com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig pscInterfaceConfig_; + /** + * + * + *
+   * Optional. Configuration for PSC-I for PersistentResource.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pscInterfaceConfig field is set. + */ + @java.lang.Override + public boolean hasPscInterfaceConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Optional. Configuration for PSC-I for PersistentResource.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscInterfaceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig getPscInterfaceConfig() { + return pscInterfaceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance() + : pscInterfaceConfig_; + } + /** + * + * + *
+   * Optional. Configuration for PSC-I for PersistentResource.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder + getPscInterfaceConfigOrBuilder() { + return pscInterfaceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance() + : pscInterfaceConfig_; + } + public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 12; private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; /** @@ -999,7 +1056,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { */ @java.lang.Override public boolean hasEncryptionSpec() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1060,7 +1117,7 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryption */ @java.lang.Override public boolean hasResourceRuntimeSpec() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1119,7 +1176,7 @@ public com.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec getResourceRuntim */ @java.lang.Override public boolean hasResourceRuntime() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -1296,18 +1353,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, network_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(12, getEncryptionSpec()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(13, getResourceRuntimeSpec()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(14, getResourceRuntime()); } for (int i = 0; i < reservedIpRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, reservedIpRanges_.getRaw(i)); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(17, getPscInterfaceConfig()); + } getUnknownFields().writeTo(output); } @@ -1356,14 +1416,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, network_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getEncryptionSpec()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getResourceRuntimeSpec()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getResourceRuntime()); } { @@ -1374,6 +1434,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getReservedIpRangesList().size(); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getPscInterfaceConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1412,6 +1475,10 @@ public boolean equals(final java.lang.Object obj) { } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getNetwork().equals(other.getNetwork())) return false; + if (hasPscInterfaceConfig() != other.hasPscInterfaceConfig()) return false; + if (hasPscInterfaceConfig()) { + if (!getPscInterfaceConfig().equals(other.getPscInterfaceConfig())) return false; + } if (hasEncryptionSpec() != other.hasEncryptionSpec()) return false; if (hasEncryptionSpec()) { if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; @@ -1468,6 +1535,10 @@ public int hashCode() { } hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().hashCode(); + if (hasPscInterfaceConfig()) { + hash = (37 * hash) + PSC_INTERFACE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPscInterfaceConfig().hashCode(); + } if (hasEncryptionSpec()) { hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getEncryptionSpec().hashCode(); @@ -1655,6 +1726,7 @@ private void maybeForceBuilderInitialization() { getCreateTimeFieldBuilder(); getStartTimeFieldBuilder(); getUpdateTimeFieldBuilder(); + getPscInterfaceConfigFieldBuilder(); getEncryptionSpecFieldBuilder(); getResourceRuntimeSpecFieldBuilder(); getResourceRuntimeFieldBuilder(); @@ -1697,6 +1769,11 @@ public Builder clear() { } internalGetMutableLabels().clear(); network_ = ""; + pscInterfaceConfig_ = null; + if (pscInterfaceConfigBuilder_ != null) { + pscInterfaceConfigBuilder_.dispose(); + pscInterfaceConfigBuilder_ = null; + } encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -1797,23 +1874,30 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PersistentResourc result.network_ = network_; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.encryptionSpec_ = - encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + result.pscInterfaceConfig_ = + pscInterfaceConfigBuilder_ == null + ? pscInterfaceConfig_ + : pscInterfaceConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000800) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00001000) != 0)) { result.resourceRuntimeSpec_ = resourceRuntimeSpecBuilder_ == null ? resourceRuntimeSpec_ : resourceRuntimeSpecBuilder_.build(); - to_bitField0_ |= 0x00000020; + to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.resourceRuntime_ = resourceRuntimeBuilder_ == null ? resourceRuntime_ : resourceRuntimeBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { reservedIpRanges_.makeImmutable(); result.reservedIpRanges_ = reservedIpRanges_; } @@ -1925,6 +2009,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PersistentResource bitField0_ |= 0x00000200; onChanged(); } + if (other.hasPscInterfaceConfig()) { + mergePscInterfaceConfig(other.getPscInterfaceConfig()); + } if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -1937,7 +2024,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PersistentResource if (!other.reservedIpRanges_.isEmpty()) { if (reservedIpRanges_.isEmpty()) { reservedIpRanges_ = other.reservedIpRanges_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } else { ensureReservedIpRangesIsMutable(); reservedIpRanges_.addAll(other.reservedIpRanges_); @@ -2047,20 +2134,20 @@ public Builder mergeFrom( case 98: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 98 case 106: { input.readMessage( getResourceRuntimeSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 106 case 114: { input.readMessage(getResourceRuntimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 114 case 122: @@ -2070,6 +2157,13 @@ public Builder mergeFrom( reservedIpRanges_.add(s); break; } // case 122 + case 138: + { + input.readMessage( + getPscInterfaceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3997,6 +4091,215 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig pscInterfaceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig, + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder> + pscInterfaceConfigBuilder_; + /** + * + * + *
+     * Optional. Configuration for PSC-I for PersistentResource.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pscInterfaceConfig field is set. + */ + public boolean hasPscInterfaceConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for PersistentResource.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscInterfaceConfig. + */ + public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig getPscInterfaceConfig() { + if (pscInterfaceConfigBuilder_ == null) { + return pscInterfaceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance() + : pscInterfaceConfig_; + } else { + return pscInterfaceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for PersistentResource.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPscInterfaceConfig( + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig value) { + if (pscInterfaceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pscInterfaceConfig_ = value; + } else { + pscInterfaceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for PersistentResource.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPscInterfaceConfig( + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder builderForValue) { + if (pscInterfaceConfigBuilder_ == null) { + pscInterfaceConfig_ = builderForValue.build(); + } else { + pscInterfaceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for PersistentResource.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePscInterfaceConfig( + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig value) { + if (pscInterfaceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && pscInterfaceConfig_ != null + && pscInterfaceConfig_ + != com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance()) { + getPscInterfaceConfigBuilder().mergeFrom(value); + } else { + pscInterfaceConfig_ = value; + } + } else { + pscInterfaceConfigBuilder_.mergeFrom(value); + } + if (pscInterfaceConfig_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for PersistentResource.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPscInterfaceConfig() { + bitField0_ = (bitField0_ & ~0x00000400); + pscInterfaceConfig_ = null; + if (pscInterfaceConfigBuilder_ != null) { + pscInterfaceConfigBuilder_.dispose(); + pscInterfaceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for PersistentResource.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder + getPscInterfaceConfigBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getPscInterfaceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for PersistentResource.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder + getPscInterfaceConfigOrBuilder() { + if (pscInterfaceConfigBuilder_ != null) { + return pscInterfaceConfigBuilder_.getMessageOrBuilder(); + } else { + return pscInterfaceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance() + : pscInterfaceConfig_; + } + } + /** + * + * + *
+     * Optional. Configuration for PSC-I for PersistentResource.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig, + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigFieldBuilder() { + if (pscInterfaceConfigBuilder_ == null) { + pscInterfaceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig, + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder>( + getPscInterfaceConfig(), getParentForChildren(), isClean()); + pscInterfaceConfig_ = null; + } + return pscInterfaceConfigBuilder_; + } + private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.EncryptionSpec, @@ -4019,7 +4322,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -4067,7 +4370,7 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS } else { encryptionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4091,7 +4394,7 @@ public Builder setEncryptionSpec( } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4110,7 +4413,7 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && encryptionSpec_ != null && encryptionSpec_ != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { @@ -4122,7 +4425,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio encryptionSpecBuilder_.mergeFrom(value); } if (encryptionSpec_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -4141,7 +4444,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * */ public Builder clearEncryptionSpec() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -4164,7 +4467,7 @@ public Builder clearEncryptionSpec() { * */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -4242,7 +4545,7 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS * @return Whether the resourceRuntimeSpec field is set. */ public boolean hasResourceRuntimeSpec() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -4289,7 +4592,7 @@ public Builder setResourceRuntimeSpec( } else { resourceRuntimeSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4312,7 +4615,7 @@ public Builder setResourceRuntimeSpec( } else { resourceRuntimeSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4331,7 +4634,7 @@ public Builder setResourceRuntimeSpec( public Builder mergeResourceRuntimeSpec( com.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec value) { if (resourceRuntimeSpecBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && resourceRuntimeSpec_ != null && resourceRuntimeSpec_ != com.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.getDefaultInstance()) { @@ -4343,7 +4646,7 @@ public Builder mergeResourceRuntimeSpec( resourceRuntimeSpecBuilder_.mergeFrom(value); } if (resourceRuntimeSpec_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -4361,7 +4664,7 @@ public Builder mergeResourceRuntimeSpec( * */ public Builder clearResourceRuntimeSpec() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); resourceRuntimeSpec_ = null; if (resourceRuntimeSpecBuilder_ != null) { resourceRuntimeSpecBuilder_.dispose(); @@ -4384,7 +4687,7 @@ public Builder clearResourceRuntimeSpec() { */ public com.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec.Builder getResourceRuntimeSpecBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return getResourceRuntimeSpecFieldBuilder().getBuilder(); } @@ -4459,7 +4762,7 @@ public Builder clearResourceRuntimeSpec() { * @return Whether the resourceRuntime field is set. */ public boolean hasResourceRuntime() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -4503,7 +4806,7 @@ public Builder setResourceRuntime(com.google.cloud.aiplatform.v1beta1.ResourceRu } else { resourceRuntimeBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4525,7 +4828,7 @@ public Builder setResourceRuntime( } else { resourceRuntimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4542,7 +4845,7 @@ public Builder setResourceRuntime( */ public Builder mergeResourceRuntime(com.google.cloud.aiplatform.v1beta1.ResourceRuntime value) { if (resourceRuntimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && resourceRuntime_ != null && resourceRuntime_ != com.google.cloud.aiplatform.v1beta1.ResourceRuntime.getDefaultInstance()) { @@ -4554,7 +4857,7 @@ public Builder mergeResourceRuntime(com.google.cloud.aiplatform.v1beta1.Resource resourceRuntimeBuilder_.mergeFrom(value); } if (resourceRuntime_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -4571,7 +4874,7 @@ public Builder mergeResourceRuntime(com.google.cloud.aiplatform.v1beta1.Resource * */ public Builder clearResourceRuntime() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); resourceRuntime_ = null; if (resourceRuntimeBuilder_ != null) { resourceRuntimeBuilder_.dispose(); @@ -4592,7 +4895,7 @@ public Builder clearResourceRuntime() { * */ public com.google.cloud.aiplatform.v1beta1.ResourceRuntime.Builder getResourceRuntimeBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return getResourceRuntimeFieldBuilder().getBuilder(); } @@ -4652,7 +4955,7 @@ private void ensureReservedIpRangesIsMutable() { if (!reservedIpRanges_.isModifiable()) { reservedIpRanges_ = new com.google.protobuf.LazyStringArrayList(reservedIpRanges_); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } /** * @@ -4772,7 +5075,7 @@ public Builder setReservedIpRanges(int index, java.lang.String value) { } ensureReservedIpRangesIsMutable(); reservedIpRanges_.set(index, value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4802,7 +5105,7 @@ public Builder addReservedIpRanges(java.lang.String value) { } ensureReservedIpRangesIsMutable(); reservedIpRanges_.add(value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4829,7 +5132,7 @@ public Builder addReservedIpRanges(java.lang.String value) { public Builder addAllReservedIpRanges(java.lang.Iterable values) { ensureReservedIpRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reservedIpRanges_); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4854,7 +5157,7 @@ public Builder addAllReservedIpRanges(java.lang.Iterable value */ public Builder clearReservedIpRanges() { reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); ; onChanged(); return this; @@ -4886,7 +5189,7 @@ public Builder addReservedIpRangesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureReservedIpRangesIsMutable(); reservedIpRanges_.add(value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceOrBuilder.java index d22ba97a6de8..e053aa64cbf7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceOrBuilder.java @@ -474,6 +474,47 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getNetworkBytes(); + /** + * + * + *
+   * Optional. Configuration for PSC-I for PersistentResource.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pscInterfaceConfig field is set. + */ + boolean hasPscInterfaceConfig(); + /** + * + * + *
+   * Optional. Configuration for PSC-I for PersistentResource.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscInterfaceConfig. + */ + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig getPscInterfaceConfig(); + /** + * + * + *
+   * Optional. Configuration for PSC-I for PersistentResource.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder getPscInterfaceConfigOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceProto.java index 79291b8a67e8..6531deacd814 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceProto.java @@ -72,6 +72,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_RayMetricSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_RayMetricSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RayLogsSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RayLogsSpec_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -87,78 +91,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\032\031google/api/resource.proto\0325google" + "/cloud/aiplatform/v1beta1/encryption_spe" + "c.proto\0327google/cloud/aiplatform/v1beta1" - + "/machine_resources.proto\032\037google/protobu" - + "f/timestamp.proto\032\027google/rpc/status.pro" - + "to\"\374\010\n\022PersistentResource\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\005\022\031\n\014display_name\030\002 \001(\tB\003\340A\001\022J\n\016resou" - + "rce_pools\030\004 \003(\0132-.google.cloud.aiplatfor" - + "m.v1beta1.ResourcePoolB\003\340A\002\022M\n\005state\030\005 \001" - + "(\01629.google.cloud.aiplatform.v1beta1.Per" - + "sistentResource.StateB\003\340A\003\022&\n\005error\030\006 \001(" - + "\0132\022.google.rpc.StatusB\003\340A\003\0224\n\013create_tim" - + "e\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0223\n\nstart_time\030\010 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\022T\n\006labels\030\n " - + "\003(\0132?.google.cloud.aiplatform.v1beta1.Pe" - + "rsistentResource.LabelsEntryB\003\340A\001\0227\n\007net" - + "work\030\013 \001(\tB&\340A\001\372A \n\036compute.googleapis.c" - + "om/Network\022M\n\017encryption_spec\030\014 \001(\0132/.go" - + "ogle.cloud.aiplatform.v1beta1.Encryption" - + "SpecB\003\340A\001\022X\n\025resource_runtime_spec\030\r \001(\013" - + "24.google.cloud.aiplatform.v1beta1.Resou" - + "rceRuntimeSpecB\003\340A\001\022O\n\020resource_runtime\030" - + "\016 \001(\01320.google.cloud.aiplatform.v1beta1." - + "ResourceRuntimeB\003\340A\003\022\037\n\022reserved_ip_rang" - + "es\030\017 \003(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"s\n\005State\022\025\n\021STATE_U" - + "NSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNIN" - + "G\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ERROR\020\005\022\r\n\tREBOOTIN" - + "G\020\006\022\014\n\010UPDATING\020\007:\205\001\352A\201\001\n,aiplatform.goo" - + "gleapis.com/PersistentResource\022Qprojects" - + "/{project}/locations/{location}/persiste" - + "ntResources/{persistent_resource}\"\352\003\n\014Re" - + "sourcePool\022\017\n\002id\030\001 \001(\tB\003\340A\005\022J\n\014machine_s" - + "pec\030\002 \001(\0132,.google.cloud.aiplatform.v1be" - + "ta1.MachineSpecB\006\340A\002\340A\005\022\037\n\rreplica_count" - + "\030\003 \001(\003B\003\340A\001H\000\210\001\001\022A\n\tdisk_spec\030\004 \001(\0132).go" - + "ogle.cloud.aiplatform.v1beta1.DiskSpecB\003" - + "\340A\001\022\037\n\022used_replica_count\030\006 \001(\003B\003\340A\003\022\\\n\020" - + "autoscaling_spec\030\007 \001(\0132=.google.cloud.ai" - + "platform.v1beta1.ResourcePool.Autoscalin" - + "gSpecB\003\340A\001\032\207\001\n\017AutoscalingSpec\022#\n\021min_re" - + "plica_count\030\001 \001(\003B\003\340A\001H\000\210\001\001\022#\n\021max_repli" - + "ca_count\030\002 \001(\003B\003\340A\001H\001\210\001\001B\024\n\022_min_replica" - + "_countB\024\n\022_max_replica_countB\020\n\016_replica" - + "_count\"\256\001\n\023ResourceRuntimeSpec\022V\n\024servic" - + "e_account_spec\030\002 \001(\01323.google.cloud.aipl" - + "atform.v1beta1.ServiceAccountSpecB\003\340A\001\022?" - + "\n\010ray_spec\030\001 \001(\0132(.google.cloud.aiplatfo" - + "rm.v1beta1.RaySpecB\003\340A\001\"\270\002\n\007RaySpec\022\026\n\ti" - + "mage_uri\030\001 \001(\tB\003\340A\001\022c\n\024resource_pool_ima" - + "ges\030\006 \003(\0132@.google.cloud.aiplatform.v1be" - + "ta1.RaySpec.ResourcePoolImagesEntryB\003\340A\001" - + "\022\'\n\032head_node_resource_pool_id\030\007 \001(\tB\003\340A" - + "\001\022L\n\017ray_metric_spec\030\010 \001(\0132..google.clou" - + "d.aiplatform.v1beta1.RayMetricSpecB\003\340A\001\032" - + "9\n\027ResourcePoolImagesEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001\"\200\002\n\017ResourceRuntime\022Z" - + "\n\013access_uris\030\001 \003(\0132@.google.cloud.aipla" - + "tform.v1beta1.ResourceRuntime.AccessUris" - + "EntryB\003\340A\003\022^\n\031notebook_runtime_template\030" - + "\002 \001(\tB;\030\001\340A\003\372A3\n1aiplatform.googleapis.c" - + "om/NotebookRuntimeTemplate\0321\n\017AccessUris" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"^\n" - + "\022ServiceAccountSpec\022*\n\035enable_custom_ser" - + "vice_account\030\001 \001(\010B\003\340A\002\022\034\n\017service_accou" - + "nt\030\002 \001(\tB\003\340A\001\"&\n\rRayMetricSpec\022\025\n\010disabl" - + "ed\030\001 \001(\010B\003\340A\001B\356\001\n#com.google.cloud.aipla" - + "tform.v1beta1B\027PersistentResourceProtoP\001" - + "ZCcloud.google.com/go/aiplatform/apiv1be" - + "ta1/aiplatformpb;aiplatformpb\252\002\037Google.C" - + "loud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\A" - + "IPlatform\\V1beta1\352\002\"Google::Cloud::AIPla" - + "tform::V1beta1b\006proto3" + + "/machine_resources.proto\0328google/cloud/a" + + "iplatform/v1beta1/service_networking.pro" + + "to\032\037google/protobuf/timestamp.proto\032\027goo" + + "gle/rpc/status.proto\"\324\t\n\022PersistentResou" + + "rce\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014display_name\030\002" + + " \001(\tB\003\340A\001\022J\n\016resource_pools\030\004 \003(\0132-.goog" + + "le.cloud.aiplatform.v1beta1.ResourcePool" + + "B\003\340A\002\022M\n\005state\030\005 \001(\01629.google.cloud.aipl" + + "atform.v1beta1.PersistentResource.StateB" + + "\003\340A\003\022&\n\005error\030\006 \001(\0132\022.google.rpc.StatusB" + + "\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0223\n\nstart_time\030\010 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\t \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022T\n\006labels\030\n \003(\0132?.google.cloud.aip" + + "latform.v1beta1.PersistentResource.Label" + + "sEntryB\003\340A\001\0227\n\007network\030\013 \001(\tB&\340A\001\372A \n\036co" + + "mpute.googleapis.com/Network\022V\n\024psc_inte" + + "rface_config\030\021 \001(\01323.google.cloud.aiplat" + + "form.v1beta1.PscInterfaceConfigB\003\340A\001\022M\n\017" + + "encryption_spec\030\014 \001(\0132/.google.cloud.aip" + + "latform.v1beta1.EncryptionSpecB\003\340A\001\022X\n\025r" + + "esource_runtime_spec\030\r \001(\01324.google.clou" + + "d.aiplatform.v1beta1.ResourceRuntimeSpec" + + "B\003\340A\001\022O\n\020resource_runtime\030\016 \001(\01320.google" + + ".cloud.aiplatform.v1beta1.ResourceRuntim" + + "eB\003\340A\003\022\037\n\022reserved_ip_ranges\030\017 \003(\tB\003\340A\001\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"s\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020" + + "\n\014PROVISIONING\020\001\022\013\n\007RUNNING\020\003\022\014\n\010STOPPIN" + + "G\020\004\022\t\n\005ERROR\020\005\022\r\n\tREBOOTING\020\006\022\014\n\010UPDATIN" + + "G\020\007:\205\001\352A\201\001\n,aiplatform.googleapis.com/Pe" + + "rsistentResource\022Qprojects/{project}/loc" + + "ations/{location}/persistentResources/{p" + + "ersistent_resource}\"\352\003\n\014ResourcePool\022\017\n\002" + + "id\030\001 \001(\tB\003\340A\005\022J\n\014machine_spec\030\002 \001(\0132,.go" + + "ogle.cloud.aiplatform.v1beta1.MachineSpe" + + "cB\006\340A\002\340A\005\022\037\n\rreplica_count\030\003 \001(\003B\003\340A\001H\000\210" + + "\001\001\022A\n\tdisk_spec\030\004 \001(\0132).google.cloud.aip" + + "latform.v1beta1.DiskSpecB\003\340A\001\022\037\n\022used_re" + + "plica_count\030\006 \001(\003B\003\340A\003\022\\\n\020autoscaling_sp" + + "ec\030\007 \001(\0132=.google.cloud.aiplatform.v1bet" + + "a1.ResourcePool.AutoscalingSpecB\003\340A\001\032\207\001\n" + + "\017AutoscalingSpec\022#\n\021min_replica_count\030\001 " + + "\001(\003B\003\340A\001H\000\210\001\001\022#\n\021max_replica_count\030\002 \001(\003" + + "B\003\340A\001H\001\210\001\001B\024\n\022_min_replica_countB\024\n\022_max" + + "_replica_countB\020\n\016_replica_count\"\256\001\n\023Res" + + "ourceRuntimeSpec\022V\n\024service_account_spec" + + "\030\002 \001(\01323.google.cloud.aiplatform.v1beta1" + + ".ServiceAccountSpecB\003\340A\001\022?\n\010ray_spec\030\001 \001" + + "(\0132(.google.cloud.aiplatform.v1beta1.Ray" + + "SpecB\003\340A\001\"\202\003\n\007RaySpec\022\026\n\timage_uri\030\001 \001(\t" + + "B\003\340A\001\022c\n\024resource_pool_images\030\006 \003(\0132@.go" + + "ogle.cloud.aiplatform.v1beta1.RaySpec.Re" + + "sourcePoolImagesEntryB\003\340A\001\022\'\n\032head_node_" + + "resource_pool_id\030\007 \001(\tB\003\340A\001\022L\n\017ray_metri" + + "c_spec\030\010 \001(\0132..google.cloud.aiplatform.v" + + "1beta1.RayMetricSpecB\003\340A\001\022H\n\rray_logs_sp" + + "ec\030\n \001(\0132,.google.cloud.aiplatform.v1bet" + + "a1.RayLogsSpecB\003\340A\001\0329\n\027ResourcePoolImage" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200" + + "\002\n\017ResourceRuntime\022Z\n\013access_uris\030\001 \003(\0132" + + "@.google.cloud.aiplatform.v1beta1.Resour" + + "ceRuntime.AccessUrisEntryB\003\340A\003\022^\n\031notebo" + + "ok_runtime_template\030\002 \001(\tB;\030\001\340A\003\372A3\n1aip" + + "latform.googleapis.com/NotebookRuntimeTe" + + "mplate\0321\n\017AccessUrisEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"^\n\022ServiceAccountSpec\022" + + "*\n\035enable_custom_service_account\030\001 \001(\010B\003" + + "\340A\002\022\034\n\017service_account\030\002 \001(\tB\003\340A\001\"&\n\rRay" + + "MetricSpec\022\025\n\010disabled\030\001 \001(\010B\003\340A\001\"$\n\013Ray" + + "LogsSpec\022\025\n\010disabled\030\001 \001(\010B\003\340A\001B\356\001\n#com." + + "google.cloud.aiplatform.v1beta1B\027Persist" + + "entResourceProtoP\001ZCcloud.google.com/go/" + + "aiplatform/apiv1beta1/aiplatformpb;aipla" + + "tformpb\252\002\037Google.Cloud.AIPlatform.V1Beta" + + "1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Go" + + "ogle::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -168,6 +178,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), }); @@ -187,6 +198,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "Labels", "Network", + "PscInterfaceConfig", "EncryptionSpec", "ResourceRuntimeSpec", "ResourceRuntime", @@ -239,7 +251,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_RaySpec_descriptor, new java.lang.String[] { - "ImageUri", "ResourcePoolImages", "HeadNodeResourcePoolId", "RayMetricSpec", + "ImageUri", + "ResourcePoolImages", + "HeadNodeResourcePoolId", + "RayMetricSpec", + "RayLogsSpec", }); internal_static_google_cloud_aiplatform_v1beta1_RaySpec_ResourcePoolImagesEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_RaySpec_descriptor.getNestedTypes().get(0); @@ -283,6 +299,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Disabled", }); + internal_static_google_cloud_aiplatform_v1beta1_RayLogsSpec_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1beta1_RayLogsSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RayLogsSpec_descriptor, + new java.lang.String[] { + "Disabled", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -294,6 +318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java index 8c95bdde0f22..fc714bf93d09 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java @@ -119,7 +119,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/pipeline_state.proto\032+google/cloud/aipl" + "atform/v1beta1/value.proto\032\034google/proto" + "buf/struct.proto\032\037google/protobuf/timest" - + "amp.proto\032\027google/rpc/status.proto\"\260\017\n\013P" + + "amp.proto\032\027google/rpc/status.proto\"\350\017\n\013P" + "ipelineJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display" + "_name\030\002 \001(\t\0224\n\013create_time\030\003 \001(\0132\032.googl" + "e.protobuf.TimestampB\003\340A\003\0223\n\nstart_time\030" @@ -145,98 +145,100 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01329.google.cloud.aiplatform.v1beta1.P" + "ipelineTemplateMetadataB\003\340A\003\022\032\n\rschedule" + "_name\030\026 \001(\tB\003\340A\003\022\"\n\025preflight_validation" - + "s\030\032 \001(\010B\003\340A\001\032\226\006\n\rRuntimeConfig\022b\n\nparame" - + "ters\030\001 \003(\0132J.google.cloud.aiplatform.v1b" - + "eta1.PipelineJob.RuntimeConfig.Parameter" - + "sEntryB\002\030\001\022!\n\024gcs_output_directory\030\002 \001(\t" - + "B\003\340A\002\022i\n\020parameter_values\030\003 \003(\0132O.google" - + ".cloud.aiplatform.v1beta1.PipelineJob.Ru" - + "ntimeConfig.ParameterValuesEntry\022N\n\016fail" - + "ure_policy\030\004 \001(\01626.google.cloud.aiplatfo" - + "rm.v1beta1.PipelineFailurePolicy\022g\n\017inpu" - + "t_artifacts\030\005 \003(\0132N.google.cloud.aiplatf" - + "orm.v1beta1.PipelineJob.RuntimeConfig.In" - + "putArtifactsEntry\032.\n\rInputArtifact\022\025\n\013ar" - + "tifact_id\030\001 \001(\tH\000B\006\n\004kind\032Y\n\017ParametersE" - + "ntry\022\013\n\003key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.googl" - + "e.cloud.aiplatform.v1beta1.Value:\0028\001\032N\n\024" - + "ParameterValuesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005val" - + "ue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\032\177\n\023" - + "InputArtifactsEntry\022\013\n\003key\030\001 \001(\t\022W\n\005valu" - + "e\030\002 \001(\0132H.google.cloud.aiplatform.v1beta" - + "1.PipelineJob.RuntimeConfig.InputArtifac" - + "t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001:o\352Al\n%aiplatform.googleapis" - + ".com/PipelineJob\022Cprojects/{project}/loc" - + "ations/{location}/pipelineJobs/{pipeline" - + "_job}\"+\n\030PipelineTemplateMetadata\022\017\n\007ver" - + "sion\030\003 \001(\t\"\371\001\n\021PipelineJobDetail\022G\n\020pipe" - + "line_context\030\001 \001(\0132(.google.cloud.aiplat" - + "form.v1beta1.ContextB\003\340A\003\022K\n\024pipeline_ru" - + "n_context\030\002 \001(\0132(.google.cloud.aiplatfor" - + "m.v1beta1.ContextB\003\340A\003\022N\n\014task_details\030\003" - + " \003(\01323.google.cloud.aiplatform.v1beta1.P" - + "ipelineTaskDetailB\003\340A\003\"\317\013\n\022PipelineTaskD" - + "etail\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016parent_ta" - + "sk_id\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB\003\340A\003" - + "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030" - + "\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Y" - + "\n\017executor_detail\030\006 \001(\0132;.google.cloud.a" - + "iplatform.v1beta1.PipelineTaskExecutorDe" - + "tailB\003\340A\003\022M\n\005state\030\007 \001(\01629.google.cloud." - + "aiplatform.v1beta1.PipelineTaskDetail.St" - + "ateB\003\340A\003\022B\n\texecution\030\010 \001(\0132*.google.clo" - + "ud.aiplatform.v1beta1.ExecutionB\003\340A\003\022&\n\005" - + "error\030\t \001(\0132\022.google.rpc.StatusB\003\340A\003\022i\n\024" - + "pipeline_task_status\030\r \003(\0132F.google.clou" - + "d.aiplatform.v1beta1.PipelineTaskDetail." - + "PipelineTaskStatusB\003\340A\003\022T\n\006inputs\030\n \003(\0132" - + "?.google.cloud.aiplatform.v1beta1.Pipeli" - + "neTaskDetail.InputsEntryB\003\340A\003\022V\n\007outputs" - + "\030\013 \003(\0132@.google.cloud.aiplatform.v1beta1" - + ".PipelineTaskDetail.OutputsEntryB\003\340A\003\032\301\001" - + "\n\022PipelineTaskStatus\0224\n\013update_time\030\001 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n\005st" - + "ate\030\002 \001(\01629.google.cloud.aiplatform.v1be" - + "ta1.PipelineTaskDetail.StateB\003\340A\003\022&\n\005err" - + "or\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032Q\n\014Art" - + "ifactList\022A\n\tartifacts\030\001 \003(\0132).google.cl" - + "oud.aiplatform.v1beta1.ArtifactB\003\340A\003\032o\n\013" - + "InputsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132" - + "@.google.cloud.aiplatform.v1beta1.Pipeli" - + "neTaskDetail.ArtifactList:\0028\001\032p\n\014Outputs" - + "Entry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.goog" - + "le.cloud.aiplatform.v1beta1.PipelineTask" - + "Detail.ArtifactList:\0028\001\"\246\001\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING" - + "\020\002\022\r\n\tSUCCEEDED\020\003\022\022\n\016CANCEL_PENDING\020\004\022\016\n" - + "\nCANCELLING\020\005\022\r\n\tCANCELLED\020\006\022\n\n\006FAILED\020\007" - + "\022\013\n\007SKIPPED\020\010\022\021\n\rNOT_TRIGGERED\020\t\"\325\004\n\032Pip" - + "elineTaskExecutorDetail\022l\n\020container_det" - + "ail\030\001 \001(\0132K.google.cloud.aiplatform.v1be" - + "ta1.PipelineTaskExecutorDetail.Container" - + "DetailB\003\340A\003H\000\022m\n\021custom_job_detail\030\002 \001(\013" - + "2K.google.cloud.aiplatform.v1beta1.Pipel" - + "ineTaskExecutorDetail.CustomJobDetailB\003\340" - + "A\003H\000\032\347\001\n\017ContainerDetail\022=\n\010main_job\030\001 \001" - + "(\tB+\340A\003\372A%\n#aiplatform.googleapis.com/Cu" - + "stomJob\022J\n\025pre_caching_check_job\030\002 \001(\tB+" - + "\340A\003\372A%\n#aiplatform.googleapis.com/Custom" - + "Job\022\035\n\020failed_main_jobs\030\003 \003(\tB\003\340A\003\022*\n\035fa" - + "iled_pre_caching_check_jobs\030\004 \003(\tB\003\340A\003\032e" - + "\n\017CustomJobDetail\0228\n\003job\030\001 \001(\tB+\340A\003\372A%\n#" - + "aiplatform.googleapis.com/CustomJob\022\030\n\013f" - + "ailed_jobs\030\003 \003(\tB\003\340A\003B\t\n\007detailsB\260\002\n#com" - + ".google.cloud.aiplatform.v1beta1B\010Pipeli" - + "neP\001ZCcloud.google.com/go/aiplatform/api" - + "v1beta1/aiplatformpb;aiplatformpb\252\002\037Goog" - + "le.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clo" - + "ud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::A" - + "IPlatform::V1beta1\352AN\n\036compute.googleapi" - + "s.com/Network\022,projects/{project}/global" - + "/networks/{network}b\006proto3" + + "s\030\032 \001(\010B\003\340A\001\022\032\n\rsatisfies_pzs\030\033 \001(\010B\003\340A\003" + + "\022\032\n\rsatisfies_pzi\030\034 \001(\010B\003\340A\003\032\226\006\n\rRuntime" + + "Config\022b\n\nparameters\030\001 \003(\0132J.google.clou" + + "d.aiplatform.v1beta1.PipelineJob.Runtime" + + "Config.ParametersEntryB\002\030\001\022!\n\024gcs_output" + + "_directory\030\002 \001(\tB\003\340A\002\022i\n\020parameter_value" + + "s\030\003 \003(\0132O.google.cloud.aiplatform.v1beta" + + "1.PipelineJob.RuntimeConfig.ParameterVal" + + "uesEntry\022N\n\016failure_policy\030\004 \001(\01626.googl" + + "e.cloud.aiplatform.v1beta1.PipelineFailu" + + "rePolicy\022g\n\017input_artifacts\030\005 \003(\0132N.goog" + + "le.cloud.aiplatform.v1beta1.PipelineJob." + + "RuntimeConfig.InputArtifactsEntry\032.\n\rInp" + + "utArtifact\022\025\n\013artifact_id\030\001 \001(\tH\000B\006\n\004kin" + + "d\032Y\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\0225\n\005val" + + "ue\030\002 \001(\0132&.google.cloud.aiplatform.v1bet" + + "a1.Value:\0028\001\032N\n\024ParameterValuesEntry\022\013\n\003" + + "key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protob" + + "uf.Value:\0028\001\032\177\n\023InputArtifactsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022W\n\005value\030\002 \001(\0132H.google.cloud.a" + + "iplatform.v1beta1.PipelineJob.RuntimeCon" + + "fig.InputArtifact:\0028\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o\352Al\n%aipla" + + "tform.googleapis.com/PipelineJob\022Cprojec" + + "ts/{project}/locations/{location}/pipeli" + + "neJobs/{pipeline_job}\"+\n\030PipelineTemplat" + + "eMetadata\022\017\n\007version\030\003 \001(\t\"\371\001\n\021PipelineJ" + + "obDetail\022G\n\020pipeline_context\030\001 \001(\0132(.goo" + + "gle.cloud.aiplatform.v1beta1.ContextB\003\340A" + + "\003\022K\n\024pipeline_run_context\030\002 \001(\0132(.google" + + ".cloud.aiplatform.v1beta1.ContextB\003\340A\003\022N" + + "\n\014task_details\030\003 \003(\01323.google.cloud.aipl" + + "atform.v1beta1.PipelineTaskDetailB\003\340A\003\"\317" + + "\013\n\022PipelineTaskDetail\022\024\n\007task_id\030\001 \001(\003B\003" + + "\340A\003\022\033\n\016parent_task_id\030\014 \001(\003B\003\340A\003\022\026\n\ttask" + + "_name\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0223\n\nstart_" + + "time\030\004 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0221\n\010end_time\030\005 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022Y\n\017executor_detail\030\006 \001(\0132" + + ";.google.cloud.aiplatform.v1beta1.Pipeli" + + "neTaskExecutorDetailB\003\340A\003\022M\n\005state\030\007 \001(\016" + + "29.google.cloud.aiplatform.v1beta1.Pipel" + + "ineTaskDetail.StateB\003\340A\003\022B\n\texecution\030\010 " + + "\001(\0132*.google.cloud.aiplatform.v1beta1.Ex" + + "ecutionB\003\340A\003\022&\n\005error\030\t \001(\0132\022.google.rpc" + + ".StatusB\003\340A\003\022i\n\024pipeline_task_status\030\r \003" + + "(\0132F.google.cloud.aiplatform.v1beta1.Pip" + + "elineTaskDetail.PipelineTaskStatusB\003\340A\003\022" + + "T\n\006inputs\030\n \003(\0132?.google.cloud.aiplatfor" + + "m.v1beta1.PipelineTaskDetail.InputsEntry" + + "B\003\340A\003\022V\n\007outputs\030\013 \003(\0132@.google.cloud.ai" + + "platform.v1beta1.PipelineTaskDetail.Outp" + + "utsEntryB\003\340A\003\032\301\001\n\022PipelineTaskStatus\0224\n\013" + + "update_time\030\001 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022M\n\005state\030\002 \001(\01629.google.cloud" + + ".aiplatform.v1beta1.PipelineTaskDetail.S" + + "tateB\003\340A\003\022&\n\005error\030\003 \001(\0132\022.google.rpc.St" + + "atusB\003\340A\003\032Q\n\014ArtifactList\022A\n\tartifacts\030\001" + + " \003(\0132).google.cloud.aiplatform.v1beta1.A" + + "rtifactB\003\340A\003\032o\n\013InputsEntry\022\013\n\003key\030\001 \001(\t" + + "\022O\n\005value\030\002 \001(\0132@.google.cloud.aiplatfor" + + "m.v1beta1.PipelineTaskDetail.ArtifactLis" + + "t:\0028\001\032p\n\014OutputsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005va" + + "lue\030\002 \001(\0132@.google.cloud.aiplatform.v1be" + + "ta1.PipelineTaskDetail.ArtifactList:\0028\001\"" + + "\246\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PEND" + + "ING\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\022\n\016CAN" + + "CEL_PENDING\020\004\022\016\n\nCANCELLING\020\005\022\r\n\tCANCELL" + + "ED\020\006\022\n\n\006FAILED\020\007\022\013\n\007SKIPPED\020\010\022\021\n\rNOT_TRI" + + "GGERED\020\t\"\325\004\n\032PipelineTaskExecutorDetail\022" + + "l\n\020container_detail\030\001 \001(\0132K.google.cloud" + + ".aiplatform.v1beta1.PipelineTaskExecutor" + + "Detail.ContainerDetailB\003\340A\003H\000\022m\n\021custom_" + + "job_detail\030\002 \001(\0132K.google.cloud.aiplatfo" + + "rm.v1beta1.PipelineTaskExecutorDetail.Cu" + + "stomJobDetailB\003\340A\003H\000\032\347\001\n\017ContainerDetail" + + "\022=\n\010main_job\030\001 \001(\tB+\340A\003\372A%\n#aiplatform.g" + + "oogleapis.com/CustomJob\022J\n\025pre_caching_c" + + "heck_job\030\002 \001(\tB+\340A\003\372A%\n#aiplatform.googl" + + "eapis.com/CustomJob\022\035\n\020failed_main_jobs\030" + + "\003 \003(\tB\003\340A\003\022*\n\035failed_pre_caching_check_j" + + "obs\030\004 \003(\tB\003\340A\003\032e\n\017CustomJobDetail\0228\n\003job" + + "\030\001 \001(\tB+\340A\003\372A%\n#aiplatform.googleapis.co" + + "m/CustomJob\022\030\n\013failed_jobs\030\003 \003(\tB\003\340A\003B\t\n" + + "\007detailsB\260\002\n#com.google.cloud.aiplatform" + + ".v1beta1B\010PipelineP\001ZCcloud.google.com/g" + + "o/aiplatform/apiv1beta1/aiplatformpb;aip" + + "latformpb\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1\352AN\n\036c" + + "ompute.googleapis.com/Network\022,projects/" + + "{project}/global/networks/{network}b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -281,6 +283,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TemplateMetadata", "ScheduleName", "PreflightValidations", + "SatisfiesPzs", + "SatisfiesPzi", }); internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor = internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java index 84218df26754..40437ba1db7f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java @@ -4817,6 +4817,42 @@ public boolean getPreflightValidations() { return preflightValidations_; } + public static final int SATISFIES_PZS_FIELD_NUMBER = 27; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 28; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4892,6 +4928,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (preflightValidations_ != false) { output.writeBool(26, preflightValidations_); } + if (satisfiesPzs_ != false) { + output.writeBool(27, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + output.writeBool(28, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -4975,6 +5017,12 @@ public int getSerializedSize() { if (preflightValidations_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(26, preflightValidations_); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(28, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5041,6 +5089,8 @@ public boolean equals(final java.lang.Object obj) { } if (!getScheduleName().equals(other.getScheduleName())) return false; if (getPreflightValidations() != other.getPreflightValidations()) return false; + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5116,6 +5166,10 @@ public int hashCode() { hash = (53 * hash) + getScheduleName().hashCode(); hash = (37 * hash) + PREFLIGHT_VALIDATIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreflightValidations()); + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5355,6 +5409,8 @@ public Builder clear() { } scheduleName_ = ""; preflightValidations_ = false; + satisfiesPzs_ = false; + satisfiesPzi_ = false; return this; } @@ -5468,6 +5524,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PipelineJob resul if (((from_bitField0_ & 0x00080000) != 0)) { result.preflightValidations_ = preflightValidations_; } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } result.bitField0_ |= to_bitField0_; } @@ -5595,6 +5657,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineJob other) if (other.getPreflightValidations() != false) { setPreflightValidations(other.getPreflightValidations()); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5749,6 +5817,18 @@ public Builder mergeFrom( bitField0_ |= 0x00080000; break; } // case 208 + case 216: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00100000; + break; + } // case 216 + case 224: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00200000; + break; + } // case 224 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9135,6 +9215,112 @@ public Builder clearPreflightValidations() { return this; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00100000); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00200000); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java index 60c6856175c1..adac8b9db98f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java @@ -839,4 +839,30 @@ java.lang.String getLabelsOrDefault( * @return The preflightValidations. */ boolean getPreflightValidations(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictLongRunningMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictLongRunningMetadata.java new file mode 100644 index 000000000000..9f39fcf692e5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictLongRunningMetadata.java @@ -0,0 +1,438 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/prediction_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Metadata for PredictLongRunning long running operations.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata} + */ +public final class PredictLongRunningMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata) + PredictLongRunningMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use PredictLongRunningMetadata.newBuilder() to construct. + private PredictLongRunningMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PredictLongRunningMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PredictLongRunningMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata.class, + com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata other = + (com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata for PredictLongRunning long running operations.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata) + com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata.class, + com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata build() { + com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata result = + new com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata) + private static final com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PredictLongRunningMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictLongRunningMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictLongRunningMetadataOrBuilder.java new file mode 100644 index 000000000000..71bfcf4dc630 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictLongRunningMetadataOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/prediction_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface PredictLongRunningMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PredictLongRunningMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictLongRunningResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictLongRunningResponse.java new file mode 100644 index 000000000000..52a019beaac4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictLongRunningResponse.java @@ -0,0 +1,845 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/prediction_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [PredictionService.PredictLongRunning]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PredictLongRunningResponse} + */ +public final class PredictLongRunningResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PredictLongRunningResponse) + PredictLongRunningResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PredictLongRunningResponse.newBuilder() to construct. + private PredictLongRunningResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PredictLongRunningResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PredictLongRunningResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse.class, + com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse.Builder.class); + } + + private int responseCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object response_; + + public enum ResponseCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GENERATE_VIDEO_RESPONSE(1), + RESPONSE_NOT_SET(0); + private final int value; + + private ResponseCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResponseCase valueOf(int value) { + return forNumber(value); + } + + public static ResponseCase forNumber(int value) { + switch (value) { + case 1: + return GENERATE_VIDEO_RESPONSE; + case 0: + return RESPONSE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); + } + + public static final int GENERATE_VIDEO_RESPONSE_FIELD_NUMBER = 1; + /** + * + * + *
+   * The response of the video generation prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + * + * @return Whether the generateVideoResponse field is set. + */ + @java.lang.Override + public boolean hasGenerateVideoResponse() { + return responseCase_ == 1; + } + /** + * + * + *
+   * The response of the video generation prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + * + * @return The generateVideoResponse. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse getGenerateVideoResponse() { + if (responseCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse) response_; + } + return com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.getDefaultInstance(); + } + /** + * + * + *
+   * The response of the video generation prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateVideoResponseOrBuilder + getGenerateVideoResponseOrBuilder() { + if (responseCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse) response_; + } + return com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (responseCase_ == 1) { + output.writeMessage(1, (com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse) response_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (responseCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse) response_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse other = + (com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse) obj; + + if (!getResponseCase().equals(other.getResponseCase())) return false; + switch (responseCase_) { + case 1: + if (!getGenerateVideoResponse().equals(other.getGenerateVideoResponse())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (responseCase_) { + case 1: + hash = (37 * hash) + GENERATE_VIDEO_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getGenerateVideoResponse().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for [PredictionService.PredictLongRunning]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PredictLongRunningResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PredictLongRunningResponse) + com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse.class, + com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (generateVideoResponseBuilder_ != null) { + generateVideoResponseBuilder_.clear(); + } + responseCase_ = 0; + response_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse build() { + com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse result = + new com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse result) { + result.responseCase_ = responseCase_; + result.response_ = this.response_; + if (responseCase_ == 1 && generateVideoResponseBuilder_ != null) { + result.response_ = generateVideoResponseBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse.getDefaultInstance()) + return this; + switch (other.getResponseCase()) { + case GENERATE_VIDEO_RESPONSE: + { + mergeGenerateVideoResponse(other.getGenerateVideoResponse()); + break; + } + case RESPONSE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getGenerateVideoResponseFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int responseCase_ = 0; + private java.lang.Object response_; + + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); + } + + public Builder clearResponse() { + responseCase_ = 0; + response_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse, + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.Builder, + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponseOrBuilder> + generateVideoResponseBuilder_; + /** + * + * + *
+     * The response of the video generation prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + * + * @return Whether the generateVideoResponse field is set. + */ + @java.lang.Override + public boolean hasGenerateVideoResponse() { + return responseCase_ == 1; + } + /** + * + * + *
+     * The response of the video generation prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + * + * @return The generateVideoResponse. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse getGenerateVideoResponse() { + if (generateVideoResponseBuilder_ == null) { + if (responseCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse) response_; + } + return com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.getDefaultInstance(); + } else { + if (responseCase_ == 1) { + return generateVideoResponseBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.getDefaultInstance(); + } + } + /** + * + * + *
+     * The response of the video generation prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + */ + public Builder setGenerateVideoResponse( + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse value) { + if (generateVideoResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + generateVideoResponseBuilder_.setMessage(value); + } + responseCase_ = 1; + return this; + } + /** + * + * + *
+     * The response of the video generation prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + */ + public Builder setGenerateVideoResponse( + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.Builder builderForValue) { + if (generateVideoResponseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + generateVideoResponseBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 1; + return this; + } + /** + * + * + *
+     * The response of the video generation prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + */ + public Builder mergeGenerateVideoResponse( + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse value) { + if (generateVideoResponseBuilder_ == null) { + if (responseCase_ == 1 + && response_ + != com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.getDefaultInstance()) { + response_ = + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.newBuilder( + (com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse) response_) + .mergeFrom(value) + .buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 1) { + generateVideoResponseBuilder_.mergeFrom(value); + } else { + generateVideoResponseBuilder_.setMessage(value); + } + } + responseCase_ = 1; + return this; + } + /** + * + * + *
+     * The response of the video generation prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + */ + public Builder clearGenerateVideoResponse() { + if (generateVideoResponseBuilder_ == null) { + if (responseCase_ == 1) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 1) { + responseCase_ = 0; + response_ = null; + } + generateVideoResponseBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The response of the video generation prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.Builder + getGenerateVideoResponseBuilder() { + return getGenerateVideoResponseFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The response of the video generation prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateVideoResponseOrBuilder + getGenerateVideoResponseOrBuilder() { + if ((responseCase_ == 1) && (generateVideoResponseBuilder_ != null)) { + return generateVideoResponseBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse) response_; + } + return com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.getDefaultInstance(); + } + } + /** + * + * + *
+     * The response of the video generation prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse, + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.Builder, + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponseOrBuilder> + getGenerateVideoResponseFieldBuilder() { + if (generateVideoResponseBuilder_ == null) { + if (!(responseCase_ == 1)) { + response_ = + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.getDefaultInstance(); + } + generateVideoResponseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse, + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse.Builder, + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponseOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse) response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 1; + onChanged(); + return generateVideoResponseBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PredictLongRunningResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PredictLongRunningResponse) + private static final com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PredictLongRunningResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictLongRunningResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictLongRunningResponseOrBuilder.java new file mode 100644 index 000000000000..7032b5e7d4a7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictLongRunningResponseOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/prediction_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface PredictLongRunningResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PredictLongRunningResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The response of the video generation prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + * + * @return Whether the generateVideoResponse field is set. + */ + boolean hasGenerateVideoResponse(); + /** + * + * + *
+   * The response of the video generation prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + * + * @return The generateVideoResponse. + */ + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponse getGenerateVideoResponse(); + /** + * + * + *
+   * The response of the video generation prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenerateVideoResponse generate_video_response = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.GenerateVideoResponseOrBuilder + getGenerateVideoResponseOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.PredictLongRunningResponse.ResponseCase getResponseCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java index 46a4ec4010fc..5a71c461731d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java @@ -140,6 +140,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ChatCompletionsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ChatCompletionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GenerateVideoResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GenerateVideoResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -244,153 +256,165 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "n\032\205\001\n\033ConcurrentExplanationsEntry\022\013\n\003key" + "\030\001 \001(\t\022U\n\005value\030\002 \001(\0132F.google.cloud.aip" + "latform.v1beta1.ExplainResponse.Concurre" - + "ntExplanation:\0028\001\"\327\001\n\022CountTokensRequest" + + "ntExplanation:\0028\001\"\371\002\n\022CountTokensRequest" + "\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.g" + "oogleapis.com/Endpoint\022\022\n\005model\030\003 \001(\tB\003\340" - + "A\002\022.\n\tinstances\030\002 \003(\0132\026.google.protobuf." - + "ValueB\003\340A\002\022?\n\010contents\030\004 \003(\0132(.google.cl" - + "oud.aiplatform.v1beta1.ContentB\003\340A\002\"N\n\023C" - + "ountTokensResponse\022\024\n\014total_tokens\030\001 \001(\005" - + "\022!\n\031total_billable_characters\030\002 \001(\005\"\300\004\n\026" - + "GenerateContentRequest\022\022\n\005model\030\005 \001(\tB\003\340" - + "A\002\022?\n\010contents\030\002 \003(\0132(.google.cloud.aipl" - + "atform.v1beta1.ContentB\003\340A\002\022N\n\022system_in" - + "struction\030\010 \001(\0132(.google.cloud.aiplatfor" - + "m.v1beta1.ContentB\003\340A\001H\000\210\001\001\022G\n\016cached_co" - + "ntent\030\t \001(\tB/\340A\001\372A)\n\'aiplatform.googleap" - + "is.com/CachedContent\0229\n\005tools\030\006 \003(\0132%.go" - + "ogle.cloud.aiplatform.v1beta1.ToolB\003\340A\001\022" - + "E\n\013tool_config\030\007 \001(\0132+.google.cloud.aipl" - + "atform.v1beta1.ToolConfigB\003\340A\001\022L\n\017safety" - + "_settings\030\003 \003(\0132..google.cloud.aiplatfor" - + "m.v1beta1.SafetySettingB\003\340A\001\022Q\n\021generati" - + "on_config\030\004 \001(\01321.google.cloud.aiplatfor" - + "m.v1beta1.GenerationConfigB\003\340A\001B\025\n\023_syst" - + "em_instruction\"\360\005\n\027GenerateContentRespon" - + "se\022C\n\ncandidates\030\002 \003(\0132*.google.cloud.ai" - + "platform.v1beta1.CandidateB\003\340A\003\022e\n\017promp" - + "t_feedback\030\003 \001(\0132G.google.cloud.aiplatfo" - + "rm.v1beta1.GenerateContentResponse.Promp" - + "tFeedbackB\003\340A\003\022^\n\016usage_metadata\030\004 \001(\0132F" - + ".google.cloud.aiplatform.v1beta1.Generat" - + "eContentResponse.UsageMetadata\032\340\002\n\016Promp" - + "tFeedback\022p\n\014block_reason\030\001 \001(\0162U.google" - + ".cloud.aiplatform.v1beta1.GenerateConten" - + "tResponse.PromptFeedback.BlockedReasonB\003" - + "\340A\003\022J\n\016safety_ratings\030\002 \003(\0132-.google.clo" - + "ud.aiplatform.v1beta1.SafetyRatingB\003\340A\003\022" - + "!\n\024block_reason_message\030\003 \001(\tB\003\340A\003\"m\n\rBl" - + "ockedReason\022\036\n\032BLOCKED_REASON_UNSPECIFIE" - + "D\020\000\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022\r\n\tBLOCKLIST\020" - + "\003\022\026\n\022PROHIBITED_CONTENT\020\004\032f\n\rUsageMetada" - + "ta\022\032\n\022prompt_token_count\030\001 \001(\005\022\036\n\026candid" - + "ates_token_count\030\002 \001(\005\022\031\n\021total_token_co" - + "unt\030\003 \001(\005\"\204\001\n\026ChatCompletionsRequest\022<\n\010" - + "endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googl" - + "eapis.com/Endpoint\022,\n\thttp_body\030\002 \001(\0132\024." - + "google.api.HttpBodyB\003\340A\0012\347\035\n\021PredictionS" - + "ervice\022\250\002\n\007Predict\022/.google.cloud.aiplat" - + "form.v1beta1.PredictRequest\0320.google.clo" - + "ud.aiplatform.v1beta1.PredictResponse\"\271\001" - + "\332A\035endpoint,instances,parameters\202\323\344\223\002\222\001\"" - + ">/v1beta1/{endpoint=projects/*/locations" - + "/*/endpoints/*}:predict:\001*ZM\"H/v1beta1/{" - + "endpoint=projects/*/locations/*/publishe" - + "rs/*/models/*}:predict:\001*\022\215\002\n\nRawPredict" - + "\0222.google.cloud.aiplatform.v1beta1.RawPr" - + "edictRequest\032\024.google.api.HttpBody\"\264\001\332A\022" - + "endpoint,http_body\202\323\344\223\002\230\001\"A/v1beta1/{end" - + "point=projects/*/locations/*/endpoints/*" - + "}:rawPredict:\001*ZP\"K/v1beta1/{endpoint=pr" - + "ojects/*/locations/*/publishers/*/models" - + "/*}:rawPredict:\001*\022\247\002\n\020StreamRawPredict\0228" - + ".google.cloud.aiplatform.v1beta1.StreamR" - + "awPredictRequest\032\024.google.api.HttpBody\"\300" - + "\001\332A\022endpoint,http_body\202\323\344\223\002\244\001\"G/v1beta1/" - + "{endpoint=projects/*/locations/*/endpoin" - + "ts/*}:streamRawPredict:\001*ZV\"Q/v1beta1/{e" - + "ndpoint=projects/*/locations/*/publisher" - + "s/*/models/*}:streamRawPredict:\001*0\001\022\317\001\n\r" - + "DirectPredict\0225.google.cloud.aiplatform." - + "v1beta1.DirectPredictRequest\0326.google.cl" - + "oud.aiplatform.v1beta1.DirectPredictResp" - + "onse\"O\202\323\344\223\002I\"D/v1beta1/{endpoint=project" - + "s/*/locations/*/endpoints/*}:directPredi" - + "ct:\001*\022\333\001\n\020DirectRawPredict\0228.google.clou" - + "d.aiplatform.v1beta1.DirectRawPredictReq" - + "uest\0329.google.cloud.aiplatform.v1beta1.D" - + "irectRawPredictResponse\"R\202\323\344\223\002L\"G/v1beta" - + "1/{endpoint=projects/*/locations/*/endpo" - + "ints/*}:directRawPredict:\001*\022\226\001\n\023StreamDi" - + "rectPredict\022;.google.cloud.aiplatform.v1" - + "beta1.StreamDirectPredictRequest\032<.googl" - + "e.cloud.aiplatform.v1beta1.StreamDirectP" - + "redictResponse\"\000(\0010\001\022\237\001\n\026StreamDirectRaw" - + "Predict\022>.google.cloud.aiplatform.v1beta" - + "1.StreamDirectRawPredictRequest\032?.google" - + ".cloud.aiplatform.v1beta1.StreamDirectRa" - + "wPredictResponse\"\000(\0010\001\022\215\001\n\020StreamingPred" - + "ict\0228.google.cloud.aiplatform.v1beta1.St" - + "reamingPredictRequest\0329.google.cloud.aip" - + "latform.v1beta1.StreamingPredictResponse" - + "\"\000(\0010\001\022\311\002\n\026ServerStreamingPredict\0228.goog" - + "le.cloud.aiplatform.v1beta1.StreamingPre" - + "dictRequest\0329.google.cloud.aiplatform.v1" - + "beta1.StreamingPredictResponse\"\267\001\202\323\344\223\002\260\001" - + "\"M/v1beta1/{endpoint=projects/*/location" - + "s/*/endpoints/*}:serverStreamingPredict:" - + "\001*Z\\\"W/v1beta1/{endpoint=projects/*/loca" - + "tions/*/publishers/*/models/*}:serverStr" - + "eamingPredict:\001*0\001\022\226\001\n\023StreamingRawPredi" - + "ct\022;.google.cloud.aiplatform.v1beta1.Str" - + "eamingRawPredictRequest\032<.google.cloud.a" - + "iplatform.v1beta1.StreamingRawPredictRes" - + "ponse\"\000(\0010\001\022\351\001\n\007Explain\022/.google.cloud.a" - + "iplatform.v1beta1.ExplainRequest\0320.googl" - + "e.cloud.aiplatform.v1beta1.ExplainRespon" - + "se\"{\332A/endpoint,instances,parameters,dep" - + "loyed_model_id\202\323\344\223\002C\">/v1beta1/{endpoint" - + "=projects/*/locations/*/endpoints/*}:exp" - + "lain:\001*\022\261\002\n\013CountTokens\0223.google.cloud.a" - + "iplatform.v1beta1.CountTokensRequest\0324.g" - + "oogle.cloud.aiplatform.v1beta1.CountToke" - + "nsResponse\"\266\001\332A\022endpoint,instances\202\323\344\223\002\232" - + "\001\"B/v1beta1/{endpoint=projects/*/locatio" - + "ns/*/endpoints/*}:countTokens:\001*ZQ\"L/v1b" - + "eta1/{endpoint=projects/*/locations/*/pu" - + "blishers/*/models/*}:countTokens:\001*\022\273\002\n\017" - + "GenerateContent\0227.google.cloud.aiplatfor" - + "m.v1beta1.GenerateContentRequest\0328.googl" - + "e.cloud.aiplatform.v1beta1.GenerateConte" - + "ntResponse\"\264\001\332A\016model,contents\202\323\344\223\002\234\001\"C/" - + "v1beta1/{model=projects/*/locations/*/en" - + "dpoints/*}:generateContent:\001*ZR\"M/v1beta" - + "1/{model=projects/*/locations/*/publishe" - + "rs/*/models/*}:generateContent:\001*\022\317\002\n\025St" - + "reamGenerateContent\0227.google.cloud.aipla" - + "tform.v1beta1.GenerateContentRequest\0328.g" - + "oogle.cloud.aiplatform.v1beta1.GenerateC" - + "ontentResponse\"\300\001\332A\016model,contents\202\323\344\223\002\250" - + "\001\"I/v1beta1/{model=projects/*/locations/" - + "*/endpoints/*}:streamGenerateContent:\001*Z" - + "X\"S/v1beta1/{model=projects/*/locations/" - + "*/publishers/*/models/*}:streamGenerateC" - + "ontent:\001*0\001\022\323\001\n\017ChatCompletions\0227.google" - + ".cloud.aiplatform.v1beta1.ChatCompletion" - + "sRequest\032\024.google.api.HttpBody\"o\332A\022endpo" - + "int,http_body\202\323\344\223\002T\"G/v1beta1/{endpoint=" - + "projects/*/locations/*/endpoints/*}/chat" - + "/completions:\thttp_body0\001\032\206\001\312A\031aiplatfor" - + "m.googleapis.com\322Aghttps://www.googleapi" - + "s.com/auth/cloud-platform,https://www.go" - + "ogleapis.com/auth/cloud-platform.read-on" - + "lyB\355\001\n#com.google.cloud.aiplatform.v1bet" - + "a1B\026PredictionServiceProtoP\001ZCcloud.goog" - + "le.com/go/aiplatform/apiv1beta1/aiplatfo" - + "rmpb;aiplatformpb\252\002\037Google.Cloud.AIPlatf" - + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" - + "beta1\352\002\"Google::Cloud::AIPlatform::V1bet" - + "a1b\006proto3" + + "A\001\022.\n\tinstances\030\002 \003(\0132\026.google.protobuf." + + "ValueB\003\340A\001\022?\n\010contents\030\004 \003(\0132(.google.cl" + + "oud.aiplatform.v1beta1.ContentB\003\340A\001\022N\n\022s" + + "ystem_instruction\030\005 \001(\0132(.google.cloud.a" + + "iplatform.v1beta1.ContentB\003\340A\001H\000\210\001\001\0229\n\005t" + + "ools\030\006 \003(\0132%.google.cloud.aiplatform.v1b" + + "eta1.ToolB\003\340A\001B\025\n\023_system_instruction\"N\n" + + "\023CountTokensResponse\022\024\n\014total_tokens\030\001 \001" + + "(\005\022!\n\031total_billable_characters\030\002 \001(\005\"\300\004" + + "\n\026GenerateContentRequest\022\022\n\005model\030\005 \001(\tB" + + "\003\340A\002\022?\n\010contents\030\002 \003(\0132(.google.cloud.ai" + + "platform.v1beta1.ContentB\003\340A\002\022N\n\022system_" + + "instruction\030\010 \001(\0132(.google.cloud.aiplatf" + + "orm.v1beta1.ContentB\003\340A\001H\000\210\001\001\022G\n\016cached_" + + "content\030\t \001(\tB/\340A\001\372A)\n\'aiplatform.google" + + "apis.com/CachedContent\0229\n\005tools\030\006 \003(\0132%." + + "google.cloud.aiplatform.v1beta1.ToolB\003\340A" + + "\001\022E\n\013tool_config\030\007 \001(\0132+.google.cloud.ai" + + "platform.v1beta1.ToolConfigB\003\340A\001\022L\n\017safe" + + "ty_settings\030\003 \003(\0132..google.cloud.aiplatf" + + "orm.v1beta1.SafetySettingB\003\340A\001\022Q\n\021genera" + + "tion_config\030\004 \001(\01321.google.cloud.aiplatf" + + "orm.v1beta1.GenerationConfigB\003\340A\001B\025\n\023_sy" + + "stem_instruction\"\360\005\n\027GenerateContentResp" + + "onse\022C\n\ncandidates\030\002 \003(\0132*.google.cloud." + + "aiplatform.v1beta1.CandidateB\003\340A\003\022e\n\017pro" + + "mpt_feedback\030\003 \001(\0132G.google.cloud.aiplat" + + "form.v1beta1.GenerateContentResponse.Pro" + + "mptFeedbackB\003\340A\003\022^\n\016usage_metadata\030\004 \001(\013" + + "2F.google.cloud.aiplatform.v1beta1.Gener" + + "ateContentResponse.UsageMetadata\032\340\002\n\016Pro" + + "mptFeedback\022p\n\014block_reason\030\001 \001(\0162U.goog" + + "le.cloud.aiplatform.v1beta1.GenerateCont" + + "entResponse.PromptFeedback.BlockedReason" + + "B\003\340A\003\022J\n\016safety_ratings\030\002 \003(\0132-.google.c" + + "loud.aiplatform.v1beta1.SafetyRatingB\003\340A" + + "\003\022!\n\024block_reason_message\030\003 \001(\tB\003\340A\003\"m\n\r" + + "BlockedReason\022\036\n\032BLOCKED_REASON_UNSPECIF" + + "IED\020\000\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022\r\n\tBLOCKLIS" + + "T\020\003\022\026\n\022PROHIBITED_CONTENT\020\004\032f\n\rUsageMeta" + + "data\022\032\n\022prompt_token_count\030\001 \001(\005\022\036\n\026cand" + + "idates_token_count\030\002 \001(\005\022\031\n\021total_token_" + + "count\030\003 \001(\005\"\204\001\n\026ChatCompletionsRequest\022<" + + "\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.goo" + + "gleapis.com/Endpoint\022,\n\thttp_body\030\002 \001(\0132" + + "\024.google.api.HttpBodyB\003\340A\001\"\203\001\n\032PredictLo" + + "ngRunningResponse\022Y\n\027generate_video_resp" + + "onse\030\001 \001(\01326.google.cloud.aiplatform.v1b" + + "eta1.GenerateVideoResponseH\000B\n\n\010response" + + "\"\034\n\032PredictLongRunningMetadata\"\232\001\n\025Gener" + + "ateVideoResponse\022\031\n\021generated_samples\030\001 " + + "\003(\t\022%\n\030rai_media_filtered_count\030\002 \001(\005H\000\210" + + "\001\001\022\"\n\032rai_media_filtered_reasons\030\003 \003(\tB\033" + + "\n\031_rai_media_filtered_count2\347\035\n\021Predicti" + + "onService\022\250\002\n\007Predict\022/.google.cloud.aip" + + "latform.v1beta1.PredictRequest\0320.google." + + "cloud.aiplatform.v1beta1.PredictResponse" + + "\"\271\001\332A\035endpoint,instances,parameters\202\323\344\223\002" + + "\222\001\">/v1beta1/{endpoint=projects/*/locati" + + "ons/*/endpoints/*}:predict:\001*ZM\"H/v1beta" + + "1/{endpoint=projects/*/locations/*/publi" + + "shers/*/models/*}:predict:\001*\022\215\002\n\nRawPred" + + "ict\0222.google.cloud.aiplatform.v1beta1.Ra" + + "wPredictRequest\032\024.google.api.HttpBody\"\264\001" + + "\332A\022endpoint,http_body\202\323\344\223\002\230\001\"A/v1beta1/{" + + "endpoint=projects/*/locations/*/endpoint" + + "s/*}:rawPredict:\001*ZP\"K/v1beta1/{endpoint" + + "=projects/*/locations/*/publishers/*/mod" + + "els/*}:rawPredict:\001*\022\247\002\n\020StreamRawPredic" + + "t\0228.google.cloud.aiplatform.v1beta1.Stre" + + "amRawPredictRequest\032\024.google.api.HttpBod" + + "y\"\300\001\332A\022endpoint,http_body\202\323\344\223\002\244\001\"G/v1bet" + + "a1/{endpoint=projects/*/locations/*/endp" + + "oints/*}:streamRawPredict:\001*ZV\"Q/v1beta1" + + "/{endpoint=projects/*/locations/*/publis" + + "hers/*/models/*}:streamRawPredict:\001*0\001\022\317" + + "\001\n\rDirectPredict\0225.google.cloud.aiplatfo" + + "rm.v1beta1.DirectPredictRequest\0326.google" + + ".cloud.aiplatform.v1beta1.DirectPredictR" + + "esponse\"O\202\323\344\223\002I\"D/v1beta1/{endpoint=proj" + + "ects/*/locations/*/endpoints/*}:directPr" + + "edict:\001*\022\333\001\n\020DirectRawPredict\0228.google.c" + + "loud.aiplatform.v1beta1.DirectRawPredict" + + "Request\0329.google.cloud.aiplatform.v1beta" + + "1.DirectRawPredictResponse\"R\202\323\344\223\002L\"G/v1b" + + "eta1/{endpoint=projects/*/locations/*/en" + + "dpoints/*}:directRawPredict:\001*\022\226\001\n\023Strea" + + "mDirectPredict\022;.google.cloud.aiplatform" + + ".v1beta1.StreamDirectPredictRequest\032<.go" + + "ogle.cloud.aiplatform.v1beta1.StreamDire" + + "ctPredictResponse\"\000(\0010\001\022\237\001\n\026StreamDirect" + + "RawPredict\022>.google.cloud.aiplatform.v1b" + + "eta1.StreamDirectRawPredictRequest\032?.goo" + + "gle.cloud.aiplatform.v1beta1.StreamDirec" + + "tRawPredictResponse\"\000(\0010\001\022\215\001\n\020StreamingP" + + "redict\0228.google.cloud.aiplatform.v1beta1" + + ".StreamingPredictRequest\0329.google.cloud." + + "aiplatform.v1beta1.StreamingPredictRespo" + + "nse\"\000(\0010\001\022\311\002\n\026ServerStreamingPredict\0228.g" + + "oogle.cloud.aiplatform.v1beta1.Streaming" + + "PredictRequest\0329.google.cloud.aiplatform" + + ".v1beta1.StreamingPredictResponse\"\267\001\202\323\344\223" + + "\002\260\001\"M/v1beta1/{endpoint=projects/*/locat" + + "ions/*/endpoints/*}:serverStreamingPredi" + + "ct:\001*Z\\\"W/v1beta1/{endpoint=projects/*/l" + + "ocations/*/publishers/*/models/*}:server" + + "StreamingPredict:\001*0\001\022\226\001\n\023StreamingRawPr" + + "edict\022;.google.cloud.aiplatform.v1beta1." + + "StreamingRawPredictRequest\032<.google.clou" + + "d.aiplatform.v1beta1.StreamingRawPredict" + + "Response\"\000(\0010\001\022\351\001\n\007Explain\022/.google.clou" + + "d.aiplatform.v1beta1.ExplainRequest\0320.go" + + "ogle.cloud.aiplatform.v1beta1.ExplainRes" + + "ponse\"{\332A/endpoint,instances,parameters," + + "deployed_model_id\202\323\344\223\002C\">/v1beta1/{endpo" + + "int=projects/*/locations/*/endpoints/*}:" + + "explain:\001*\022\261\002\n\013CountTokens\0223.google.clou" + + "d.aiplatform.v1beta1.CountTokensRequest\032" + + "4.google.cloud.aiplatform.v1beta1.CountT" + + "okensResponse\"\266\001\332A\022endpoint,instances\202\323\344" + + "\223\002\232\001\"B/v1beta1/{endpoint=projects/*/loca" + + "tions/*/endpoints/*}:countTokens:\001*ZQ\"L/" + + "v1beta1/{endpoint=projects/*/locations/*" + + "/publishers/*/models/*}:countTokens:\001*\022\273" + + "\002\n\017GenerateContent\0227.google.cloud.aiplat" + + "form.v1beta1.GenerateContentRequest\0328.go" + + "ogle.cloud.aiplatform.v1beta1.GenerateCo" + + "ntentResponse\"\264\001\332A\016model,contents\202\323\344\223\002\234\001" + + "\"C/v1beta1/{model=projects/*/locations/*" + + "/endpoints/*}:generateContent:\001*ZR\"M/v1b" + + "eta1/{model=projects/*/locations/*/publi" + + "shers/*/models/*}:generateContent:\001*\022\317\002\n" + + "\025StreamGenerateContent\0227.google.cloud.ai" + + "platform.v1beta1.GenerateContentRequest\032" + + "8.google.cloud.aiplatform.v1beta1.Genera" + + "teContentResponse\"\300\001\332A\016model,contents\202\323\344" + + "\223\002\250\001\"I/v1beta1/{model=projects/*/locatio" + + "ns/*/endpoints/*}:streamGenerateContent:" + + "\001*ZX\"S/v1beta1/{model=projects/*/locatio" + + "ns/*/publishers/*/models/*}:streamGenera" + + "teContent:\001*0\001\022\323\001\n\017ChatCompletions\0227.goo" + + "gle.cloud.aiplatform.v1beta1.ChatComplet" + + "ionsRequest\032\024.google.api.HttpBody\"o\332A\022en" + + "dpoint,http_body\202\323\344\223\002T\"G/v1beta1/{endpoi" + + "nt=projects/*/locations/*/endpoints/*}/c" + + "hat/completions:\thttp_body0\001\032\206\001\312A\031aiplat" + + "form.googleapis.com\322Aghttps://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/cloud-platform.read" + + "-onlyB\355\001\n#com.google.cloud.aiplatform.v1" + + "beta1B\026PredictionServiceProtoP\001ZCcloud.g" + + "oogle.com/go/aiplatform/apiv1beta1/aipla" + + "tformpb;aiplatformpb\252\002\037Google.Cloud.AIPl" + + "atform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform" + + "\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1" + + "beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -597,7 +621,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CountTokensRequest_descriptor, new java.lang.String[] { - "Endpoint", "Model", "Instances", "Contents", + "Endpoint", "Model", "Instances", "Contents", "SystemInstruction", "Tools", }); internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_descriptor = getDescriptor().getMessageTypes().get(19); @@ -658,6 +682,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Endpoint", "HttpBody", }); + internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningResponse_descriptor, + new java.lang.String[] { + "GenerateVideoResponse", "Response", + }); + internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PredictLongRunningMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1beta1_GenerateVideoResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_aiplatform_v1beta1_GenerateVideoResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GenerateVideoResponse_descriptor, + new java.lang.String[] { + "GeneratedSamples", "RaiMediaFilteredCount", "RaiMediaFilteredReasons", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PscInterfaceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PscInterfaceConfig.java new file mode 100644 index 000000000000..9b51716271b4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PscInterfaceConfig.java @@ -0,0 +1,717 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/service_networking.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Configuration for PSC-I.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PscInterfaceConfig} + */ +public final class PscInterfaceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PscInterfaceConfig) + PscInterfaceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PscInterfaceConfig.newBuilder() to construct. + private PscInterfaceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscInterfaceConfig() { + networkAttachment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscInterfaceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto + .internal_static_google_cloud_aiplatform_v1beta1_PscInterfaceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto + .internal_static_google_cloud_aiplatform_v1beta1_PscInterfaceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.class, + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder.class); + } + + public static final int NETWORK_ATTACHMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkAttachment_ = ""; + /** + * + * + *
+   * Optional. The full name of the Compute Engine
+   * [network
+   * attachment](https://cloud.google.com/vpc/docs/about-network-attachments) to
+   * attach to the resource.
+   * For example, `projects/12345/regions/us-central1/networkAttachments/myNA`.
+   * is of the form
+   * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+   * Where {project} is a project number, as in `12345`, and {networkAttachment}
+   * is a network attachment name.
+   * To specify this field, you must have already [created a network attachment]
+   * (https://cloud.google.com/vpc/docs/create-manage-network-attachments#create-network-attachments).
+   * This field is only used for resources using PSC-I.
+   * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The networkAttachment. + */ + @java.lang.Override + public java.lang.String getNetworkAttachment() { + java.lang.Object ref = networkAttachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkAttachment_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The full name of the Compute Engine
+   * [network
+   * attachment](https://cloud.google.com/vpc/docs/about-network-attachments) to
+   * attach to the resource.
+   * For example, `projects/12345/regions/us-central1/networkAttachments/myNA`.
+   * is of the form
+   * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+   * Where {project} is a project number, as in `12345`, and {networkAttachment}
+   * is a network attachment name.
+   * To specify this field, you must have already [created a network attachment]
+   * (https://cloud.google.com/vpc/docs/create-manage-network-attachments#create-network-attachments).
+   * This field is only used for resources using PSC-I.
+   * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for networkAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkAttachmentBytes() { + java.lang.Object ref = networkAttachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkAttachment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkAttachment_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkAttachment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkAttachment_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig other = + (com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig) obj; + + if (!getNetworkAttachment().equals(other.getNetworkAttachment())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NETWORK_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getNetworkAttachment().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for PSC-I.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PscInterfaceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PscInterfaceConfig) + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto + .internal_static_google_cloud_aiplatform_v1beta1_PscInterfaceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto + .internal_static_google_cloud_aiplatform_v1beta1_PscInterfaceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.class, + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + networkAttachment_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto + .internal_static_google_cloud_aiplatform_v1beta1_PscInterfaceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig build() { + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig result = + new com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.networkAttachment_ = networkAttachment_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance()) + return this; + if (!other.getNetworkAttachment().isEmpty()) { + networkAttachment_ = other.networkAttachment_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + networkAttachment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object networkAttachment_ = ""; + /** + * + * + *
+     * Optional. The full name of the Compute Engine
+     * [network
+     * attachment](https://cloud.google.com/vpc/docs/about-network-attachments) to
+     * attach to the resource.
+     * For example, `projects/12345/regions/us-central1/networkAttachments/myNA`.
+     * is of the form
+     * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+     * Where {project} is a project number, as in `12345`, and {networkAttachment}
+     * is a network attachment name.
+     * To specify this field, you must have already [created a network attachment]
+     * (https://cloud.google.com/vpc/docs/create-manage-network-attachments#create-network-attachments).
+     * This field is only used for resources using PSC-I.
+     * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The networkAttachment. + */ + public java.lang.String getNetworkAttachment() { + java.lang.Object ref = networkAttachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkAttachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The full name of the Compute Engine
+     * [network
+     * attachment](https://cloud.google.com/vpc/docs/about-network-attachments) to
+     * attach to the resource.
+     * For example, `projects/12345/regions/us-central1/networkAttachments/myNA`.
+     * is of the form
+     * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+     * Where {project} is a project number, as in `12345`, and {networkAttachment}
+     * is a network attachment name.
+     * To specify this field, you must have already [created a network attachment]
+     * (https://cloud.google.com/vpc/docs/create-manage-network-attachments#create-network-attachments).
+     * This field is only used for resources using PSC-I.
+     * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for networkAttachment. + */ + public com.google.protobuf.ByteString getNetworkAttachmentBytes() { + java.lang.Object ref = networkAttachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The full name of the Compute Engine
+     * [network
+     * attachment](https://cloud.google.com/vpc/docs/about-network-attachments) to
+     * attach to the resource.
+     * For example, `projects/12345/regions/us-central1/networkAttachments/myNA`.
+     * is of the form
+     * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+     * Where {project} is a project number, as in `12345`, and {networkAttachment}
+     * is a network attachment name.
+     * To specify this field, you must have already [created a network attachment]
+     * (https://cloud.google.com/vpc/docs/create-manage-network-attachments#create-network-attachments).
+     * This field is only used for resources using PSC-I.
+     * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The networkAttachment to set. + * @return This builder for chaining. + */ + public Builder setNetworkAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkAttachment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The full name of the Compute Engine
+     * [network
+     * attachment](https://cloud.google.com/vpc/docs/about-network-attachments) to
+     * attach to the resource.
+     * For example, `projects/12345/regions/us-central1/networkAttachments/myNA`.
+     * is of the form
+     * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+     * Where {project} is a project number, as in `12345`, and {networkAttachment}
+     * is a network attachment name.
+     * To specify this field, you must have already [created a network attachment]
+     * (https://cloud.google.com/vpc/docs/create-manage-network-attachments#create-network-attachments).
+     * This field is only used for resources using PSC-I.
+     * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetworkAttachment() { + networkAttachment_ = getDefaultInstance().getNetworkAttachment(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The full name of the Compute Engine
+     * [network
+     * attachment](https://cloud.google.com/vpc/docs/about-network-attachments) to
+     * attach to the resource.
+     * For example, `projects/12345/regions/us-central1/networkAttachments/myNA`.
+     * is of the form
+     * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+     * Where {project} is a project number, as in `12345`, and {networkAttachment}
+     * is a network attachment name.
+     * To specify this field, you must have already [created a network attachment]
+     * (https://cloud.google.com/vpc/docs/create-manage-network-attachments#create-network-attachments).
+     * This field is only used for resources using PSC-I.
+     * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for networkAttachment to set. + * @return This builder for chaining. + */ + public Builder setNetworkAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkAttachment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PscInterfaceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PscInterfaceConfig) + private static final com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscInterfaceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PscInterfaceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PscInterfaceConfigOrBuilder.java new file mode 100644 index 000000000000..ebcd4bcc3853 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PscInterfaceConfigOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/service_networking.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface PscInterfaceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PscInterfaceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The full name of the Compute Engine
+   * [network
+   * attachment](https://cloud.google.com/vpc/docs/about-network-attachments) to
+   * attach to the resource.
+   * For example, `projects/12345/regions/us-central1/networkAttachments/myNA`.
+   * is of the form
+   * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+   * Where {project} is a project number, as in `12345`, and {networkAttachment}
+   * is a network attachment name.
+   * To specify this field, you must have already [created a network attachment]
+   * (https://cloud.google.com/vpc/docs/create-manage-network-attachments#create-network-attachments).
+   * This field is only used for resources using PSC-I.
+   * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The networkAttachment. + */ + java.lang.String getNetworkAttachment(); + /** + * + * + *
+   * Optional. The full name of the Compute Engine
+   * [network
+   * attachment](https://cloud.google.com/vpc/docs/about-network-attachments) to
+   * attach to the resource.
+   * For example, `projects/12345/regions/us-central1/networkAttachments/myNA`.
+   * is of the form
+   * `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`.
+   * Where {project} is a project number, as in `12345`, and {networkAttachment}
+   * is a network attachment name.
+   * To specify this field, you must have already [created a network attachment]
+   * (https://cloud.google.com/vpc/docs/create-manage-network-attachments#create-network-attachments).
+   * This field is only used for resources using PSC-I.
+   * 
+ * + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for networkAttachment. + */ + com.google.protobuf.ByteString getNetworkAttachmentBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFile.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFile.java index dda09663d818..0ba183f31222 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFile.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFile.java @@ -236,6 +236,8 @@ public enum RagFileSourceCase GCS_SOURCE(8), GOOGLE_DRIVE_SOURCE(9), DIRECT_UPLOAD_SOURCE(10), + SLACK_SOURCE(11), + JIRA_SOURCE(12), RAGFILESOURCE_NOT_SET(0); private final int value; @@ -260,6 +262,10 @@ public static RagFileSourceCase forNumber(int value) { return GOOGLE_DRIVE_SOURCE; case 10: return DIRECT_UPLOAD_SOURCE; + case 11: + return SLACK_SOURCE; + case 12: + return JIRA_SOURCE; case 0: return RAGFILESOURCE_NOT_SET; default: @@ -458,6 +464,108 @@ public com.google.cloud.aiplatform.v1beta1.DirectUploadSource getDirectUploadSou return com.google.cloud.aiplatform.v1beta1.DirectUploadSource.getDefaultInstance(); } + public static final int SLACK_SOURCE_FIELD_NUMBER = 11; + /** + * + * + *
+   * The RagFile is imported from a Slack channel.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + * + * @return Whether the slackSource field is set. + */ + @java.lang.Override + public boolean hasSlackSource() { + return ragFileSourceCase_ == 11; + } + /** + * + * + *
+   * The RagFile is imported from a Slack channel.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + * + * @return The slackSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource getSlackSource() { + if (ragFileSourceCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.SlackSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance(); + } + /** + * + * + *
+   * The RagFile is imported from a Slack channel.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSourceOrBuilder getSlackSourceOrBuilder() { + if (ragFileSourceCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.SlackSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance(); + } + + public static final int JIRA_SOURCE_FIELD_NUMBER = 12; + /** + * + * + *
+   * The RagFile is imported from a Jira query.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + * + * @return Whether the jiraSource field is set. + */ + @java.lang.Override + public boolean hasJiraSource() { + return ragFileSourceCase_ == 12; + } + /** + * + * + *
+   * The RagFile is imported from a Jira query.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + * + * @return The jiraSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSource getJiraSource() { + if (ragFileSourceCase_ == 12) { + return (com.google.cloud.aiplatform.v1beta1.JiraSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance(); + } + /** + * + * + *
+   * The RagFile is imported from a Jira query.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSourceOrBuilder getJiraSourceOrBuilder() { + if (ragFileSourceCase_ == 12) { + return (com.google.cloud.aiplatform.v1beta1.JiraSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -820,6 +928,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 10, (com.google.cloud.aiplatform.v1beta1.DirectUploadSource) ragFileSource_); } + if (ragFileSourceCase_ == 11) { + output.writeMessage(11, (com.google.cloud.aiplatform.v1beta1.SlackSource) ragFileSource_); + } + if (ragFileSourceCase_ == 12) { + output.writeMessage(12, (com.google.cloud.aiplatform.v1beta1.JiraSource) ragFileSource_); + } getUnknownFields().writeTo(output); } @@ -867,6 +981,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, (com.google.cloud.aiplatform.v1beta1.DirectUploadSource) ragFileSource_); } + if (ragFileSourceCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.aiplatform.v1beta1.SlackSource) ragFileSource_); + } + if (ragFileSourceCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.aiplatform.v1beta1.JiraSource) ragFileSource_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -907,6 +1031,12 @@ public boolean equals(final java.lang.Object obj) { case 10: if (!getDirectUploadSource().equals(other.getDirectUploadSource())) return false; break; + case 11: + if (!getSlackSource().equals(other.getSlackSource())) return false; + break; + case 12: + if (!getJiraSource().equals(other.getJiraSource())) return false; + break; case 0: default: } @@ -952,6 +1082,14 @@ public int hashCode() { hash = (37 * hash) + DIRECT_UPLOAD_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getDirectUploadSource().hashCode(); break; + case 11: + hash = (37 * hash) + SLACK_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSlackSource().hashCode(); + break; + case 12: + hash = (37 * hash) + JIRA_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getJiraSource().hashCode(); + break; case 0: default: } @@ -1113,6 +1251,12 @@ public Builder clear() { if (directUploadSourceBuilder_ != null) { directUploadSourceBuilder_.clear(); } + if (slackSourceBuilder_ != null) { + slackSourceBuilder_.clear(); + } + if (jiraSourceBuilder_ != null) { + jiraSourceBuilder_.clear(); + } name_ = ""; displayName_ = ""; description_ = ""; @@ -1167,27 +1311,27 @@ public com.google.cloud.aiplatform.v1beta1.RagFile buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RagFile result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.description_ = description_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.sizeBytes_ = sizeBytes_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.ragFileType_ = ragFileType_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } @@ -1206,6 +1350,12 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.RagFile resu if (ragFileSourceCase_ == 10 && directUploadSourceBuilder_ != null) { result.ragFileSource_ = directUploadSourceBuilder_.build(); } + if (ragFileSourceCase_ == 11 && slackSourceBuilder_ != null) { + result.ragFileSource_ = slackSourceBuilder_.build(); + } + if (ragFileSourceCase_ == 12 && jiraSourceBuilder_ != null) { + result.ragFileSource_ = jiraSourceBuilder_.build(); + } } @java.lang.Override @@ -1255,17 +1405,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagFile other) { if (other == com.google.cloud.aiplatform.v1beta1.RagFile.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); } if (other.getSizeBytes() != 0L) { @@ -1296,6 +1446,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagFile other) { mergeDirectUploadSource(other.getDirectUploadSource()); break; } + case SLACK_SOURCE: + { + mergeSlackSource(other.getSlackSource()); + break; + } + case JIRA_SOURCE: + { + mergeJiraSource(other.getJiraSource()); + break; + } case RAGFILESOURCE_NOT_SET: { break; @@ -1330,43 +1490,43 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; break; } // case 26 case 32: { sizeBytes_ = input.readInt64(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; break; } // case 32 case 40: { ragFileType_ = input.readEnum(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; break; } // case 40 case 50: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; break; } // case 50 case 58: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 58 case 66: @@ -1389,6 +1549,18 @@ public Builder mergeFrom( ragFileSourceCase_ = 10; break; } // case 82 + case 90: + { + input.readMessage(getSlackSourceFieldBuilder().getBuilder(), extensionRegistry); + ragFileSourceCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage(getJiraSourceFieldBuilder().getBuilder(), extensionRegistry); + ragFileSourceCase_ = 12; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2143,6 +2315,426 @@ public Builder clearDirectUploadSource() { return directUploadSourceBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SlackSource, + com.google.cloud.aiplatform.v1beta1.SlackSource.Builder, + com.google.cloud.aiplatform.v1beta1.SlackSourceOrBuilder> + slackSourceBuilder_; + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + * + * @return Whether the slackSource field is set. + */ + @java.lang.Override + public boolean hasSlackSource() { + return ragFileSourceCase_ == 11; + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + * + * @return The slackSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource getSlackSource() { + if (slackSourceBuilder_ == null) { + if (ragFileSourceCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.SlackSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance(); + } else { + if (ragFileSourceCase_ == 11) { + return slackSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + */ + public Builder setSlackSource(com.google.cloud.aiplatform.v1beta1.SlackSource value) { + if (slackSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFileSource_ = value; + onChanged(); + } else { + slackSourceBuilder_.setMessage(value); + } + ragFileSourceCase_ = 11; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + */ + public Builder setSlackSource( + com.google.cloud.aiplatform.v1beta1.SlackSource.Builder builderForValue) { + if (slackSourceBuilder_ == null) { + ragFileSource_ = builderForValue.build(); + onChanged(); + } else { + slackSourceBuilder_.setMessage(builderForValue.build()); + } + ragFileSourceCase_ = 11; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + */ + public Builder mergeSlackSource(com.google.cloud.aiplatform.v1beta1.SlackSource value) { + if (slackSourceBuilder_ == null) { + if (ragFileSourceCase_ == 11 + && ragFileSource_ + != com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance()) { + ragFileSource_ = + com.google.cloud.aiplatform.v1beta1.SlackSource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.SlackSource) ragFileSource_) + .mergeFrom(value) + .buildPartial(); + } else { + ragFileSource_ = value; + } + onChanged(); + } else { + if (ragFileSourceCase_ == 11) { + slackSourceBuilder_.mergeFrom(value); + } else { + slackSourceBuilder_.setMessage(value); + } + } + ragFileSourceCase_ = 11; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + */ + public Builder clearSlackSource() { + if (slackSourceBuilder_ == null) { + if (ragFileSourceCase_ == 11) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + onChanged(); + } + } else { + if (ragFileSourceCase_ == 11) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + } + slackSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + */ + public com.google.cloud.aiplatform.v1beta1.SlackSource.Builder getSlackSourceBuilder() { + return getSlackSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSourceOrBuilder getSlackSourceOrBuilder() { + if ((ragFileSourceCase_ == 11) && (slackSourceBuilder_ != null)) { + return slackSourceBuilder_.getMessageOrBuilder(); + } else { + if (ragFileSourceCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.SlackSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SlackSource, + com.google.cloud.aiplatform.v1beta1.SlackSource.Builder, + com.google.cloud.aiplatform.v1beta1.SlackSourceOrBuilder> + getSlackSourceFieldBuilder() { + if (slackSourceBuilder_ == null) { + if (!(ragFileSourceCase_ == 11)) { + ragFileSource_ = com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance(); + } + slackSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SlackSource, + com.google.cloud.aiplatform.v1beta1.SlackSource.Builder, + com.google.cloud.aiplatform.v1beta1.SlackSourceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.SlackSource) ragFileSource_, + getParentForChildren(), + isClean()); + ragFileSource_ = null; + } + ragFileSourceCase_ = 11; + onChanged(); + return slackSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.JiraSource, + com.google.cloud.aiplatform.v1beta1.JiraSource.Builder, + com.google.cloud.aiplatform.v1beta1.JiraSourceOrBuilder> + jiraSourceBuilder_; + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + * + * @return Whether the jiraSource field is set. + */ + @java.lang.Override + public boolean hasJiraSource() { + return ragFileSourceCase_ == 12; + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + * + * @return The jiraSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSource getJiraSource() { + if (jiraSourceBuilder_ == null) { + if (ragFileSourceCase_ == 12) { + return (com.google.cloud.aiplatform.v1beta1.JiraSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance(); + } else { + if (ragFileSourceCase_ == 12) { + return jiraSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + */ + public Builder setJiraSource(com.google.cloud.aiplatform.v1beta1.JiraSource value) { + if (jiraSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFileSource_ = value; + onChanged(); + } else { + jiraSourceBuilder_.setMessage(value); + } + ragFileSourceCase_ = 12; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + */ + public Builder setJiraSource( + com.google.cloud.aiplatform.v1beta1.JiraSource.Builder builderForValue) { + if (jiraSourceBuilder_ == null) { + ragFileSource_ = builderForValue.build(); + onChanged(); + } else { + jiraSourceBuilder_.setMessage(builderForValue.build()); + } + ragFileSourceCase_ = 12; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + */ + public Builder mergeJiraSource(com.google.cloud.aiplatform.v1beta1.JiraSource value) { + if (jiraSourceBuilder_ == null) { + if (ragFileSourceCase_ == 12 + && ragFileSource_ + != com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance()) { + ragFileSource_ = + com.google.cloud.aiplatform.v1beta1.JiraSource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.JiraSource) ragFileSource_) + .mergeFrom(value) + .buildPartial(); + } else { + ragFileSource_ = value; + } + onChanged(); + } else { + if (ragFileSourceCase_ == 12) { + jiraSourceBuilder_.mergeFrom(value); + } else { + jiraSourceBuilder_.setMessage(value); + } + } + ragFileSourceCase_ = 12; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + */ + public Builder clearJiraSource() { + if (jiraSourceBuilder_ == null) { + if (ragFileSourceCase_ == 12) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + onChanged(); + } + } else { + if (ragFileSourceCase_ == 12) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + } + jiraSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + */ + public com.google.cloud.aiplatform.v1beta1.JiraSource.Builder getJiraSourceBuilder() { + return getJiraSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.JiraSourceOrBuilder getJiraSourceOrBuilder() { + if ((ragFileSourceCase_ == 12) && (jiraSourceBuilder_ != null)) { + return jiraSourceBuilder_.getMessageOrBuilder(); + } else { + if (ragFileSourceCase_ == 12) { + return (com.google.cloud.aiplatform.v1beta1.JiraSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.JiraSource, + com.google.cloud.aiplatform.v1beta1.JiraSource.Builder, + com.google.cloud.aiplatform.v1beta1.JiraSourceOrBuilder> + getJiraSourceFieldBuilder() { + if (jiraSourceBuilder_ == null) { + if (!(ragFileSourceCase_ == 12)) { + ragFileSource_ = com.google.cloud.aiplatform.v1beta1.JiraSource.getDefaultInstance(); + } + jiraSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.JiraSource, + com.google.cloud.aiplatform.v1beta1.JiraSource.Builder, + com.google.cloud.aiplatform.v1beta1.JiraSourceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.JiraSource) ragFileSource_, + getParentForChildren(), + isClean()); + ragFileSource_ = null; + } + ragFileSourceCase_ = 12; + onChanged(); + return jiraSourceBuilder_; + } + private java.lang.Object name_ = ""; /** * @@ -2205,7 +2797,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2222,7 +2814,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2244,7 +2836,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2317,7 +2909,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2336,7 +2928,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2360,7 +2952,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2427,7 +3019,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2444,7 +3036,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2466,7 +3058,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2502,7 +3094,7 @@ public long getSizeBytes() { public Builder setSizeBytes(long value) { sizeBytes_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2518,7 +3110,7 @@ public Builder setSizeBytes(long value) { * @return This builder for chaining. */ public Builder clearSizeBytes() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); sizeBytes_ = 0L; onChanged(); return this; @@ -2558,7 +3150,7 @@ public int getRagFileTypeValue() { */ public Builder setRagFileTypeValue(int value) { ragFileType_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2601,7 +3193,7 @@ public Builder setRagFileType(com.google.cloud.aiplatform.v1beta1.RagFile.RagFil if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; ragFileType_ = value.getNumber(); onChanged(); return this; @@ -2620,7 +3212,7 @@ public Builder setRagFileType(com.google.cloud.aiplatform.v1beta1.RagFile.RagFil * @return This builder for chaining. */ public Builder clearRagFileType() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000200); ragFileType_ = 0; onChanged(); return this; @@ -2646,7 +3238,7 @@ public Builder clearRagFileType() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -2690,7 +3282,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2711,7 +3303,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2728,7 +3320,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000400) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -2739,7 +3331,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -2756,7 +3348,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2777,7 +3369,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2849,7 +3441,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -2893,7 +3485,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -2914,7 +3506,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -2931,7 +3523,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000800) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -2942,7 +3534,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -2959,7 +3551,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -2980,7 +3572,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileOrBuilder.java index d542f415c45d..1cdbdc04feba 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileOrBuilder.java @@ -156,6 +156,76 @@ public interface RagFileOrBuilder */ com.google.cloud.aiplatform.v1beta1.DirectUploadSourceOrBuilder getDirectUploadSourceOrBuilder(); + /** + * + * + *
+   * The RagFile is imported from a Slack channel.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + * + * @return Whether the slackSource field is set. + */ + boolean hasSlackSource(); + /** + * + * + *
+   * The RagFile is imported from a Slack channel.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + * + * @return The slackSource. + */ + com.google.cloud.aiplatform.v1beta1.SlackSource getSlackSource(); + /** + * + * + *
+   * The RagFile is imported from a Slack channel.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.SlackSource slack_source = 11; + */ + com.google.cloud.aiplatform.v1beta1.SlackSourceOrBuilder getSlackSourceOrBuilder(); + + /** + * + * + *
+   * The RagFile is imported from a Jira query.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + * + * @return Whether the jiraSource field is set. + */ + boolean hasJiraSource(); + /** + * + * + *
+   * The RagFile is imported from a Jira query.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + * + * @return The jiraSource. + */ + com.google.cloud.aiplatform.v1beta1.JiraSource getJiraSource(); + /** + * + * + *
+   * The RagFile is imported from a Jira query.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.JiraSource jira_source = 12; + */ + com.google.cloud.aiplatform.v1beta1.JiraSourceOrBuilder getJiraSourceOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RayLogsSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RayLogsSpec.java new file mode 100644 index 000000000000..136befafdd0c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RayLogsSpec.java @@ -0,0 +1,535 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/persistent_resource.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Configuration for the Ray OSS Logs.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RayLogsSpec} + */ +public final class RayLogsSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RayLogsSpec) + RayLogsSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use RayLogsSpec.newBuilder() to construct. + private RayLogsSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RayLogsSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RayLogsSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceProto + .internal_static_google_cloud_aiplatform_v1beta1_RayLogsSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceProto + .internal_static_google_cloud_aiplatform_v1beta1_RayLogsSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RayLogsSpec.class, + com.google.cloud.aiplatform.v1beta1.RayLogsSpec.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_ = false; + /** + * + * + *
+   * Optional. Flag to disable the export of Ray OSS logs to Cloud Logging.
+   * 
+ * + * bool disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.RayLogsSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RayLogsSpec other = + (com.google.cloud.aiplatform.v1beta1.RayLogsSpec) obj; + + if (getDisabled() != other.getDisabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RayLogsSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RayLogsSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RayLogsSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RayLogsSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RayLogsSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RayLogsSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RayLogsSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RayLogsSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RayLogsSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RayLogsSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RayLogsSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RayLogsSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.RayLogsSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for the Ray OSS Logs.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RayLogsSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RayLogsSpec) + com.google.cloud.aiplatform.v1beta1.RayLogsSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceProto + .internal_static_google_cloud_aiplatform_v1beta1_RayLogsSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceProto + .internal_static_google_cloud_aiplatform_v1beta1_RayLogsSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RayLogsSpec.class, + com.google.cloud.aiplatform.v1beta1.RayLogsSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.RayLogsSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceProto + .internal_static_google_cloud_aiplatform_v1beta1_RayLogsSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RayLogsSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RayLogsSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RayLogsSpec build() { + com.google.cloud.aiplatform.v1beta1.RayLogsSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RayLogsSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.RayLogsSpec result = + new com.google.cloud.aiplatform.v1beta1.RayLogsSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RayLogsSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.RayLogsSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.RayLogsSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RayLogsSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.RayLogsSpec.getDefaultInstance()) + return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean disabled_; + /** + * + * + *
+     * Optional. Flag to disable the export of Ray OSS logs to Cloud Logging.
+     * 
+ * + * bool disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Optional. Flag to disable the export of Ray OSS logs to Cloud Logging.
+     * 
+ * + * bool disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Flag to disable the export of Ray OSS logs to Cloud Logging.
+     * 
+ * + * bool disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000001); + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.RayLogsSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RayLogsSpec) + private static final com.google.cloud.aiplatform.v1beta1.RayLogsSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RayLogsSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.RayLogsSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RayLogsSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RayLogsSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RayLogsSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RayLogsSpecOrBuilder.java new file mode 100644 index 000000000000..f047c98d76e7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RayLogsSpecOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/persistent_resource.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface RayLogsSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RayLogsSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Flag to disable the export of Ray OSS logs to Cloud Logging.
+   * 
+ * + * bool disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpec.java index 388aff772359..327651f9b003 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpec.java @@ -400,6 +400,62 @@ public com.google.cloud.aiplatform.v1beta1.RayMetricSpecOrBuilder getRayMetricSp : rayMetricSpec_; } + public static final int RAY_LOGS_SPEC_FIELD_NUMBER = 10; + private com.google.cloud.aiplatform.v1beta1.RayLogsSpec rayLogsSpec_; + /** + * + * + *
+   * Optional. OSS Ray logging configurations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayLogsSpec field is set. + */ + @java.lang.Override + public boolean hasRayLogsSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. OSS Ray logging configurations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayLogsSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RayLogsSpec getRayLogsSpec() { + return rayLogsSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.RayLogsSpec.getDefaultInstance() + : rayLogsSpec_; + } + /** + * + * + *
+   * Optional. OSS Ray logging configurations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RayLogsSpecOrBuilder getRayLogsSpecOrBuilder() { + return rayLogsSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.RayLogsSpec.getDefaultInstance() + : rayLogsSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -428,6 +484,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(8, getRayMetricSpec()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10, getRayLogsSpec()); + } getUnknownFields().writeTo(output); } @@ -456,6 +515,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRayMetricSpec()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getRayLogsSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -480,6 +542,10 @@ public boolean equals(final java.lang.Object obj) { if (hasRayMetricSpec()) { if (!getRayMetricSpec().equals(other.getRayMetricSpec())) return false; } + if (hasRayLogsSpec() != other.hasRayLogsSpec()) return false; + if (hasRayLogsSpec()) { + if (!getRayLogsSpec().equals(other.getRayLogsSpec())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -503,6 +569,10 @@ public int hashCode() { hash = (37 * hash) + RAY_METRIC_SPEC_FIELD_NUMBER; hash = (53 * hash) + getRayMetricSpec().hashCode(); } + if (hasRayLogsSpec()) { + hash = (37 * hash) + RAY_LOGS_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getRayLogsSpec().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -669,6 +739,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRayMetricSpecFieldBuilder(); + getRayLogsSpecFieldBuilder(); } } @@ -684,6 +755,11 @@ public Builder clear() { rayMetricSpecBuilder_.dispose(); rayMetricSpecBuilder_ = null; } + rayLogsSpec_ = null; + if (rayLogsSpecBuilder_ != null) { + rayLogsSpecBuilder_.dispose(); + rayLogsSpecBuilder_ = null; + } return this; } @@ -736,6 +812,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RaySpec result) { rayMetricSpecBuilder_ == null ? rayMetricSpec_ : rayMetricSpecBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.rayLogsSpec_ = + rayLogsSpecBuilder_ == null ? rayLogsSpec_ : rayLogsSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -799,6 +880,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RaySpec other) { if (other.hasRayMetricSpec()) { mergeRayMetricSpec(other.getRayMetricSpec()); } + if (other.hasRayLogsSpec()) { + mergeRayLogsSpec(other.getRayLogsSpec()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -856,6 +940,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 66 + case 82: + { + input.readMessage(getRayLogsSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1572,6 +1662,211 @@ public com.google.cloud.aiplatform.v1beta1.RayMetricSpecOrBuilder getRayMetricSp return rayMetricSpecBuilder_; } + private com.google.cloud.aiplatform.v1beta1.RayLogsSpec rayLogsSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RayLogsSpec, + com.google.cloud.aiplatform.v1beta1.RayLogsSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RayLogsSpecOrBuilder> + rayLogsSpecBuilder_; + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayLogsSpec field is set. + */ + public boolean hasRayLogsSpec() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayLogsSpec. + */ + public com.google.cloud.aiplatform.v1beta1.RayLogsSpec getRayLogsSpec() { + if (rayLogsSpecBuilder_ == null) { + return rayLogsSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.RayLogsSpec.getDefaultInstance() + : rayLogsSpec_; + } else { + return rayLogsSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayLogsSpec(com.google.cloud.aiplatform.v1beta1.RayLogsSpec value) { + if (rayLogsSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rayLogsSpec_ = value; + } else { + rayLogsSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayLogsSpec( + com.google.cloud.aiplatform.v1beta1.RayLogsSpec.Builder builderForValue) { + if (rayLogsSpecBuilder_ == null) { + rayLogsSpec_ = builderForValue.build(); + } else { + rayLogsSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRayLogsSpec(com.google.cloud.aiplatform.v1beta1.RayLogsSpec value) { + if (rayLogsSpecBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && rayLogsSpec_ != null + && rayLogsSpec_ + != com.google.cloud.aiplatform.v1beta1.RayLogsSpec.getDefaultInstance()) { + getRayLogsSpecBuilder().mergeFrom(value); + } else { + rayLogsSpec_ = value; + } + } else { + rayLogsSpecBuilder_.mergeFrom(value); + } + if (rayLogsSpec_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRayLogsSpec() { + bitField0_ = (bitField0_ & ~0x00000010); + rayLogsSpec_ = null; + if (rayLogsSpecBuilder_ != null) { + rayLogsSpecBuilder_.dispose(); + rayLogsSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RayLogsSpec.Builder getRayLogsSpecBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getRayLogsSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RayLogsSpecOrBuilder getRayLogsSpecOrBuilder() { + if (rayLogsSpecBuilder_ != null) { + return rayLogsSpecBuilder_.getMessageOrBuilder(); + } else { + return rayLogsSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.RayLogsSpec.getDefaultInstance() + : rayLogsSpec_; + } + } + /** + * + * + *
+     * Optional. OSS Ray logging configurations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RayLogsSpec, + com.google.cloud.aiplatform.v1beta1.RayLogsSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RayLogsSpecOrBuilder> + getRayLogsSpecFieldBuilder() { + if (rayLogsSpecBuilder_ == null) { + rayLogsSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RayLogsSpec, + com.google.cloud.aiplatform.v1beta1.RayLogsSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RayLogsSpecOrBuilder>( + getRayLogsSpec(), getParentForChildren(), isClean()); + rayLogsSpec_ = null; + } + return rayLogsSpecBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpecOrBuilder.java index 1ce339548b50..caf2a4e46ed6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpecOrBuilder.java @@ -238,4 +238,45 @@ java.lang.String getResourcePoolImagesOrDefault( * */ com.google.cloud.aiplatform.v1beta1.RayMetricSpecOrBuilder getRayMetricSpecOrBuilder(); + + /** + * + * + *
+   * Optional. OSS Ray logging configurations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayLogsSpec field is set. + */ + boolean hasRayLogsSpec(); + /** + * + * + *
+   * Optional. OSS Ray logging configurations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayLogsSpec. + */ + com.google.cloud.aiplatform.v1beta1.RayLogsSpec getRayLogsSpec(); + /** + * + * + *
+   * Optional. OSS Ray logging configurations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RayLogsSpec ray_logs_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.RayLogsSpecOrBuilder getRayLogsSpecOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntime.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntime.java index b5fbfe56f70f..b8c2423218f7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntime.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntime.java @@ -221,7 +221,7 @@ public java.lang.String getAccessUrisOrThrow(java.lang.String key) { * * * @deprecated google.cloud.aiplatform.v1beta1.ResourceRuntime.notebook_runtime_template is - * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=273 + * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=281 * @return The notebookRuntimeTemplate. */ @java.lang.Override @@ -253,7 +253,7 @@ public java.lang.String getNotebookRuntimeTemplate() { * * * @deprecated google.cloud.aiplatform.v1beta1.ResourceRuntime.notebook_runtime_template is - * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=273 + * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=281 * @return The bytes for notebookRuntimeTemplate. */ @java.lang.Override @@ -895,7 +895,7 @@ public Builder putAllAccessUris(java.util.Map * * @deprecated google.cloud.aiplatform.v1beta1.ResourceRuntime.notebook_runtime_template is - * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=273 + * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=281 * @return The notebookRuntimeTemplate. */ @java.lang.Deprecated @@ -926,7 +926,7 @@ public java.lang.String getNotebookRuntimeTemplate() { * * * @deprecated google.cloud.aiplatform.v1beta1.ResourceRuntime.notebook_runtime_template is - * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=273 + * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=281 * @return The bytes for notebookRuntimeTemplate. */ @java.lang.Deprecated @@ -957,7 +957,7 @@ public com.google.protobuf.ByteString getNotebookRuntimeTemplateBytes() { * * * @deprecated google.cloud.aiplatform.v1beta1.ResourceRuntime.notebook_runtime_template is - * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=273 + * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=281 * @param value The notebookRuntimeTemplate to set. * @return This builder for chaining. */ @@ -987,7 +987,7 @@ public Builder setNotebookRuntimeTemplate(java.lang.String value) { * * * @deprecated google.cloud.aiplatform.v1beta1.ResourceRuntime.notebook_runtime_template is - * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=273 + * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=281 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1013,7 +1013,7 @@ public Builder clearNotebookRuntimeTemplate() { * * * @deprecated google.cloud.aiplatform.v1beta1.ResourceRuntime.notebook_runtime_template is - * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=273 + * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=281 * @param value The bytes for notebookRuntimeTemplate to set. * @return This builder for chaining. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeOrBuilder.java index 07fe1ed1d7a8..c41889220fc3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeOrBuilder.java @@ -128,7 +128,7 @@ java.lang.String getAccessUrisOrDefault( * * * @deprecated google.cloud.aiplatform.v1beta1.ResourceRuntime.notebook_runtime_template is - * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=273 + * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=281 * @return The notebookRuntimeTemplate. */ @java.lang.Deprecated @@ -149,7 +149,7 @@ java.lang.String getAccessUrisOrDefault( * * * @deprecated google.cloud.aiplatform.v1beta1.ResourceRuntime.notebook_runtime_template is - * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=273 + * deprecated. See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=281 * @return The bytes for notebookRuntimeTemplate. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java index 9f24431ee742..b67721ed12f8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java @@ -221,16 +221,19 @@ public com.google.cloud.aiplatform.v1beta1.VertexRagStoreOrBuilder getVertexRagS * * *
-   * Optional. Disable using the result from this tool in detecting grounding
-   * attribution. This does not affect how the result is given to the model for
-   * generation.
+   * Optional. Deprecated. This option is no longer supported.
    * 
* - * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool disable_attribution = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See + * google/cloud/aiplatform/v1beta1/tool.proto;l=177 * @return The disableAttribution. */ @java.lang.Override + @java.lang.Deprecated public boolean getDisableAttribution() { return disableAttribution_; } @@ -1109,16 +1112,19 @@ public com.google.cloud.aiplatform.v1beta1.VertexRagStore.Builder getVertexRagSt * * *
-     * Optional. Disable using the result from this tool in detecting grounding
-     * attribution. This does not affect how the result is given to the model for
-     * generation.
+     * Optional. Deprecated. This option is no longer supported.
      * 
* - * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool disable_attribution = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See + * google/cloud/aiplatform/v1beta1/tool.proto;l=177 * @return The disableAttribution. */ @java.lang.Override + @java.lang.Deprecated public boolean getDisableAttribution() { return disableAttribution_; } @@ -1126,16 +1132,19 @@ public boolean getDisableAttribution() { * * *
-     * Optional. Disable using the result from this tool in detecting grounding
-     * attribution. This does not affect how the result is given to the model for
-     * generation.
+     * Optional. Deprecated. This option is no longer supported.
      * 
* - * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool disable_attribution = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See + * google/cloud/aiplatform/v1beta1/tool.proto;l=177 * @param value The disableAttribution to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setDisableAttribution(boolean value) { disableAttribution_ = value; @@ -1147,15 +1156,18 @@ public Builder setDisableAttribution(boolean value) { * * *
-     * Optional. Disable using the result from this tool in detecting grounding
-     * attribution. This does not affect how the result is given to the model for
-     * generation.
+     * Optional. Deprecated. This option is no longer supported.
      * 
* - * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool disable_attribution = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See + * google/cloud/aiplatform/v1beta1/tool.proto;l=177 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearDisableAttribution() { bitField0_ = (bitField0_ & ~0x00000004); disableAttribution_ = false; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java index e4b7abc7ca43..e7ca763d4214 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java @@ -101,15 +101,18 @@ public interface RetrievalOrBuilder * * *
-   * Optional. Disable using the result from this tool in detecting grounding
-   * attribution. This does not affect how the result is given to the model for
-   * generation.
+   * Optional. Deprecated. This option is no longer supported.
    * 
* - * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool disable_attribution = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See + * google/cloud/aiplatform/v1beta1/tool.proto;l=177 * @return The disableAttribution. */ + @java.lang.Deprecated boolean getDisableAttribution(); com.google.cloud.aiplatform.v1beta1.Retrieval.SourceCase getSourceCase(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java index cfd71f1f65ab..29138cfa47b6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java @@ -38,7 +38,9 @@ private Scheduling(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Scheduling() {} + private Scheduling() { + strategy_ = 0; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -61,6 +63,167 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.Scheduling.Builder.class); } + /** + * + * + *
+   * Optional. This determines which type of scheduling strategy to use. Right
+   * now users have two options such as ON_DEMAND which will use regular on
+   * demand resources to schedule the job, the other is LOW_COST which would
+   * leverage spot resources alongwith regular resources to schedule
+   * the job.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Scheduling.Strategy} + */ + public enum Strategy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Strategy will default to ON_DEMAND.
+     * 
+ * + * STRATEGY_UNSPECIFIED = 0; + */ + STRATEGY_UNSPECIFIED(0), + /** + * + * + *
+     * Regular on-demand provisioning strategy.
+     * 
+ * + * ON_DEMAND = 1; + */ + ON_DEMAND(1), + /** + * + * + *
+     * Low cost by making potential use of spot resources.
+     * 
+ * + * LOW_COST = 2; + */ + LOW_COST(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Strategy will default to ON_DEMAND.
+     * 
+ * + * STRATEGY_UNSPECIFIED = 0; + */ + public static final int STRATEGY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Regular on-demand provisioning strategy.
+     * 
+ * + * ON_DEMAND = 1; + */ + public static final int ON_DEMAND_VALUE = 1; + /** + * + * + *
+     * Low cost by making potential use of spot resources.
+     * 
+ * + * LOW_COST = 2; + */ + public static final int LOW_COST_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Strategy valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Strategy forNumber(int value) { + switch (value) { + case 0: + return STRATEGY_UNSPECIFIED; + case 1: + return ON_DEMAND; + case 2: + return LOW_COST; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Strategy findValueByNumber(int number) { + return Strategy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Scheduling.getDescriptor().getEnumTypes().get(0); + } + + private static final Strategy[] VALUES = values(); + + public static Strategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Strategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.Scheduling.Strategy) + } + private int bitField0_; public static final int TIMEOUT_FIELD_NUMBER = 1; private com.google.protobuf.Duration timeout_; @@ -128,6 +291,47 @@ public boolean getRestartJobOnWorkerRestart() { return restartJobOnWorkerRestart_; } + public static final int STRATEGY_FIELD_NUMBER = 4; + private int strategy_ = 0; + /** + * + * + *
+   * Optional. This determines which type of scheduling strategy to use.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for strategy. + */ + @java.lang.Override + public int getStrategyValue() { + return strategy_; + } + /** + * + * + *
+   * Optional. This determines which type of scheduling strategy to use.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The strategy. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Scheduling.Strategy getStrategy() { + com.google.cloud.aiplatform.v1beta1.Scheduling.Strategy result = + com.google.cloud.aiplatform.v1beta1.Scheduling.Strategy.forNumber(strategy_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Scheduling.Strategy.UNRECOGNIZED + : result; + } + public static final int DISABLE_RETRIES_FIELD_NUMBER = 5; private boolean disableRetries_ = false; /** @@ -168,6 +372,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (restartJobOnWorkerRestart_ != false) { output.writeBool(3, restartJobOnWorkerRestart_); } + if (strategy_ + != com.google.cloud.aiplatform.v1beta1.Scheduling.Strategy.STRATEGY_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, strategy_); + } if (disableRetries_ != false) { output.writeBool(5, disableRetries_); } @@ -186,6 +395,11 @@ public int getSerializedSize() { if (restartJobOnWorkerRestart_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, restartJobOnWorkerRestart_); } + if (strategy_ + != com.google.cloud.aiplatform.v1beta1.Scheduling.Strategy.STRATEGY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, strategy_); + } if (disableRetries_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disableRetries_); } @@ -210,6 +424,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTimeout().equals(other.getTimeout())) return false; } if (getRestartJobOnWorkerRestart() != other.getRestartJobOnWorkerRestart()) return false; + if (strategy_ != other.strategy_) return false; if (getDisableRetries() != other.getDisableRetries()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -228,6 +443,8 @@ public int hashCode() { } hash = (37 * hash) + RESTART_JOB_ON_WORKER_RESTART_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRestartJobOnWorkerRestart()); + hash = (37 * hash) + STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + strategy_; hash = (37 * hash) + DISABLE_RETRIES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableRetries()); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -384,6 +601,7 @@ public Builder clear() { timeoutBuilder_ = null; } restartJobOnWorkerRestart_ = false; + strategy_ = 0; disableRetries_ = false; return this; } @@ -430,6 +648,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Scheduling result result.restartJobOnWorkerRestart_ = restartJobOnWorkerRestart_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.strategy_ = strategy_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.disableRetries_ = disableRetries_; } result.bitField0_ |= to_bitField0_; @@ -486,6 +707,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Scheduling other) { if (other.getRestartJobOnWorkerRestart() != false) { setRestartJobOnWorkerRestart(other.getRestartJobOnWorkerRestart()); } + if (other.strategy_ != 0) { + setStrategyValue(other.getStrategyValue()); + } if (other.getDisableRetries() != false) { setDisableRetries(other.getDisableRetries()); } @@ -527,10 +751,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 32: + { + strategy_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 case 40: { disableRetries_ = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 40 default: @@ -792,6 +1022,108 @@ public Builder clearRestartJobOnWorkerRestart() { return this; } + private int strategy_ = 0; + /** + * + * + *
+     * Optional. This determines which type of scheduling strategy to use.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for strategy. + */ + @java.lang.Override + public int getStrategyValue() { + return strategy_; + } + /** + * + * + *
+     * Optional. This determines which type of scheduling strategy to use.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for strategy to set. + * @return This builder for chaining. + */ + public Builder setStrategyValue(int value) { + strategy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This determines which type of scheduling strategy to use.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The strategy. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Scheduling.Strategy getStrategy() { + com.google.cloud.aiplatform.v1beta1.Scheduling.Strategy result = + com.google.cloud.aiplatform.v1beta1.Scheduling.Strategy.forNumber(strategy_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Scheduling.Strategy.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. This determines which type of scheduling strategy to use.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The strategy to set. + * @return This builder for chaining. + */ + public Builder setStrategy(com.google.cloud.aiplatform.v1beta1.Scheduling.Strategy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + strategy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This determines which type of scheduling strategy to use.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearStrategy() { + bitField0_ = (bitField0_ & ~0x00000004); + strategy_ = 0; + onChanged(); + return this; + } + private boolean disableRetries_; /** * @@ -827,7 +1159,7 @@ public boolean getDisableRetries() { public Builder setDisableRetries(boolean value) { disableRetries_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -845,7 +1177,7 @@ public Builder setDisableRetries(boolean value) { * @return This builder for chaining. */ public Builder clearDisableRetries() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); disableRetries_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SchedulingOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SchedulingOrBuilder.java index 9a9bf4393c83..faf0f098be03 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SchedulingOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SchedulingOrBuilder.java @@ -74,6 +74,35 @@ public interface SchedulingOrBuilder */ boolean getRestartJobOnWorkerRestart(); + /** + * + * + *
+   * Optional. This determines which type of scheduling strategy to use.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for strategy. + */ + int getStrategyValue(); + /** + * + * + *
+   * Optional. This determines which type of scheduling strategy to use.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The strategy. + */ + com.google.cloud.aiplatform.v1beta1.Scheduling.Strategy getStrategy(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ServiceNetworkingProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ServiceNetworkingProto.java index ea16e54fd1df..4035a8260526 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ServiceNetworkingProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ServiceNetworkingProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_PscAutomatedEndpoints_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_PscAutomatedEndpoints_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PscInterfaceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PscInterfaceConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -53,13 +57,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_service_connect\030\001 \001(\010B\003\340A\002\022\031\n\021project_a" + "llowlist\030\002 \003(\t\"S\n\025PscAutomatedEndpoints\022" + "\022\n\nproject_id\030\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\r" - + "match_address\030\003 \001(\tB\355\001\n#com.google.cloud" - + ".aiplatform.v1beta1B\026ServiceNetworkingPr" - + "otoP\001ZCcloud.google.com/go/aiplatform/ap" - + "iv1beta1/aiplatformpb;aiplatformpb\252\002\037Goo" - + "gle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cl" - + "oud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::" - + "AIPlatform::V1beta1b\006proto3" + + "match_address\030\003 \001(\t\"b\n\022PscInterfaceConfi" + + "g\022L\n\022network_attachment\030\001 \001(\tB0\340A\001\372A*\n(c" + + "ompute.googleapis.com/NetworkAttachmentB" + + "\346\002\n#com.google.cloud.aiplatform.v1beta1B" + + "\026ServiceNetworkingProtoP\001ZCcloud.google." + + "com/go/aiplatform/apiv1beta1/aiplatformp" + + "b;aiplatformpb\252\002\037Google.Cloud.AIPlatform" + + ".V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1bet" + + "a1\352\002\"Google::Cloud::AIPlatform::V1beta1\352" + + "Av\n(compute.googleapis.com/NetworkAttach" + + "ment\022Jprojects/{project}/regions/{region" + + "}/networkAttachments/{networkattachment}" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -84,9 +94,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ProjectId", "Network", "MatchAddress", }); + internal_static_google_cloud_aiplatform_v1beta1_PscInterfaceConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_PscInterfaceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PscInterfaceConfig_descriptor, + new java.lang.String[] { + "NetworkAttachment", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SlackSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SlackSource.java new file mode 100644 index 000000000000..a7d219dce80d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SlackSource.java @@ -0,0 +1,3812 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/io.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The Slack source for the ImportRagFilesRequest.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SlackSource} + */ +public final class SlackSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SlackSource) + SlackSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use SlackSource.newBuilder() to construct. + private SlackSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SlackSource() { + channels_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SlackSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SlackSource.class, + com.google.cloud.aiplatform.v1beta1.SlackSource.Builder.class); + } + + public interface SlackChannelsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getChannelsList(); + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel getChannels( + int index); + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getChannelsCount(); + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannelOrBuilder> + getChannelsOrBuilderList(); + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannelOrBuilder + getChannelsOrBuilder(int index); + + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Slack channel access token that has access to the slack channel IDs.
+     * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + boolean hasApiKeyConfig(); + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Slack channel access token that has access to the slack channel IDs.
+     * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The apiKeyConfig. + */ + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig getApiKeyConfig(); + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Slack channel access token that has access to the slack channel IDs.
+     * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder(); + } + /** + * + * + *
+   * SlackChannels contains the Slack channels and corresponding access token.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels} + */ + public static final class SlackChannels extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels) + SlackChannelsOrBuilder { + private static final long serialVersionUID = 0L; + // Use SlackChannels.newBuilder() to construct. + private SlackChannels(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SlackChannels() { + channels_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SlackChannels(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.class, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.Builder.class); + } + + public interface SlackChannelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The Slack channel ID.
+       * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The channelId. + */ + java.lang.String getChannelId(); + /** + * + * + *
+       * Required. The Slack channel ID.
+       * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for channelId. + */ + com.google.protobuf.ByteString getChannelIdBytes(); + + /** + * + * + *
+       * Optional. The starting timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+       * Optional. The starting timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+       * Optional. The starting timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+       * Optional. The ending timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+       * Optional. The ending timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+       * Optional. The ending timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + } + /** + * + * + *
+     * SlackChannel contains the Slack channel ID and the time range to import.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel} + */ + public static final class SlackChannel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel) + SlackChannelOrBuilder { + private static final long serialVersionUID = 0L; + // Use SlackChannel.newBuilder() to construct. + private SlackChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SlackChannel() { + channelId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SlackChannel(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_SlackChannel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_SlackChannel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel.class, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel.Builder + .class); + } + + private int bitField0_; + public static final int CHANNEL_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object channelId_ = ""; + /** + * + * + *
+       * Required. The Slack channel ID.
+       * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The channelId. + */ + @java.lang.Override + public java.lang.String getChannelId() { + java.lang.Object ref = channelId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channelId_ = s; + return s; + } + } + /** + * + * + *
+       * Required. The Slack channel ID.
+       * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for channelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChannelIdBytes() { + java.lang.Object ref = channelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+       * Optional. The starting timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Optional. The starting timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+       * Optional. The starting timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+       * Optional. The ending timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Optional. The ending timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+       * Optional. The ending timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channelId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channelId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel other = + (com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel) obj; + + if (!getChannelId().equals(other.getChannelId())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getChannelId().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * SlackChannel contains the Slack channel ID and the time range to import.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel) + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_SlackChannel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_SlackChannel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel.class, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + channelId_ = ""; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_SlackChannel_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel build() { + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + buildPartial() { + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel result = + new com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.channelId_ = channelId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel other) { + if (other + == com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + .getDefaultInstance()) return this; + if (!other.getChannelId().isEmpty()) { + channelId_ = other.channelId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + channelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object channelId_ = ""; + /** + * + * + *
+         * Required. The Slack channel ID.
+         * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The channelId. + */ + public java.lang.String getChannelId() { + java.lang.Object ref = channelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Required. The Slack channel ID.
+         * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for channelId. + */ + public com.google.protobuf.ByteString getChannelIdBytes() { + java.lang.Object ref = channelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Required. The Slack channel ID.
+         * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The channelId to set. + * @return This builder for chaining. + */ + public Builder setChannelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + channelId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Required. The Slack channel ID.
+         * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearChannelId() { + channelId_ = getDefaultInstance().getChannelId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * Required. The Slack channel ID.
+         * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for channelId to set. + * @return This builder for chaining. + */ + public Builder setChannelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channelId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel) + private static final com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels + .SlackChannel + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel(); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SlackChannel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CHANNELS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel> + channels_; + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel> + getChannelsList() { + return channels_; + } + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannelOrBuilder> + getChannelsOrBuilderList() { + return channels_; + } + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getChannelsCount() { + return channels_.size(); + } + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel getChannels( + int index) { + return channels_.get(index); + } + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannelOrBuilder + getChannelsOrBuilder(int index) { + return channels_.get(index); + } + + public static final int API_KEY_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig apiKeyConfig_; + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Slack channel access token that has access to the slack channel IDs.
+     * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + @java.lang.Override + public boolean hasApiKeyConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Slack channel access token that has access to the slack channel IDs.
+     * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The apiKeyConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig getApiKeyConfig() { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Slack channel access token that has access to the slack channel IDs.
+     * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfigOrBuilder + getApiKeyConfigOrBuilder() { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < channels_.size(); i++) { + output.writeMessage(1, channels_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getApiKeyConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < channels_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, channels_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getApiKeyConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels other = + (com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels) obj; + + if (!getChannelsList().equals(other.getChannelsList())) return false; + if (hasApiKeyConfig() != other.hasApiKeyConfig()) return false; + if (hasApiKeyConfig()) { + if (!getApiKeyConfig().equals(other.getApiKeyConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getChannelsCount() > 0) { + hash = (37 * hash) + CHANNELS_FIELD_NUMBER; + hash = (53 * hash) + getChannelsList().hashCode(); + } + if (hasApiKeyConfig()) { + hash = (37 * hash) + API_KEY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getApiKeyConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * SlackChannels contains the Slack channels and corresponding access token.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels) + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannelsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.class, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getChannelsFieldBuilder(); + getApiKeyConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + } else { + channels_ = null; + channelsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + apiKeyConfig_ = null; + if (apiKeyConfigBuilder_ != null) { + apiKeyConfigBuilder_.dispose(); + apiKeyConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_SlackChannels_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels build() { + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels buildPartial() { + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels result = + new com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels result) { + if (channelsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + channels_ = java.util.Collections.unmodifiableList(channels_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.channels_ = channels_; + } else { + result.channels_ = channelsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.apiKeyConfig_ = + apiKeyConfigBuilder_ == null ? apiKeyConfig_ : apiKeyConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels other) { + if (other + == com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.getDefaultInstance()) + return this; + if (channelsBuilder_ == null) { + if (!other.channels_.isEmpty()) { + if (channels_.isEmpty()) { + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChannelsIsMutable(); + channels_.addAll(other.channels_); + } + onChanged(); + } + } else { + if (!other.channels_.isEmpty()) { + if (channelsBuilder_.isEmpty()) { + channelsBuilder_.dispose(); + channelsBuilder_ = null; + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000001); + channelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChannelsFieldBuilder() + : null; + } else { + channelsBuilder_.addAllMessages(other.channels_); + } + } + } + if (other.hasApiKeyConfig()) { + mergeApiKeyConfig(other.getApiKeyConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + .parser(), + extensionRegistry); + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(m); + } else { + channelsBuilder_.addMessage(m); + } + break; + } // case 10 + case 26: + { + input.readMessage(getApiKeyConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel> + channels_ = java.util.Collections.emptyList(); + + private void ensureChannelsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + channels_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel>( + channels_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel.Builder, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannelOrBuilder> + channelsBuilder_; + + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel> + getChannelsList() { + if (channelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(channels_); + } else { + return channelsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getChannelsCount() { + if (channelsBuilder_ == null) { + return channels_.size(); + } else { + return channelsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel getChannels( + int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChannels( + int index, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.set(index, value); + onChanged(); + } else { + channelsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChannels( + int index, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel.Builder + builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.set(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(value); + onChanged(); + } else { + channelsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + int index, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(index, value); + onChanged(); + } else { + channelsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel.Builder + builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + int index, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel.Builder + builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllChannels( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel> + values) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, channels_); + onChanged(); + } else { + channelsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearChannels() { + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + channelsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeChannels(int index) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.remove(index); + onChanged(); + } else { + channelsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel.Builder + getChannelsBuilder(int index) { + return getChannelsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannelOrBuilder + getChannelsOrBuilder(int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels + .SlackChannelOrBuilder> + getChannelsOrBuilderList() { + if (channelsBuilder_ != null) { + return channelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(channels_); + } + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel.Builder + addChannelsBuilder() { + return getChannelsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + .getDefaultInstance()); + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel.Builder + addChannelsBuilder(int index) { + return getChannelsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + .getDefaultInstance()); + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel.Builder> + getChannelsBuilderList() { + return getChannelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel.Builder, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannelOrBuilder> + getChannelsFieldBuilder() { + if (channelsBuilder_ == null) { + channelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel + .Builder, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels + .SlackChannelOrBuilder>( + channels_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + channels_ = null; + } + return channelsBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig apiKeyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfigOrBuilder> + apiKeyConfigBuilder_; + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + public boolean hasApiKeyConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The apiKeyConfig. + */ + public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig getApiKeyConfig() { + if (apiKeyConfigBuilder_ == null) { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } else { + return apiKeyConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApiKeyConfig( + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig value) { + if (apiKeyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + apiKeyConfig_ = value; + } else { + apiKeyConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApiKeyConfig( + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.Builder builderForValue) { + if (apiKeyConfigBuilder_ == null) { + apiKeyConfig_ = builderForValue.build(); + } else { + apiKeyConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeApiKeyConfig( + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig value) { + if (apiKeyConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && apiKeyConfig_ != null + && apiKeyConfig_ + != com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig + .getDefaultInstance()) { + getApiKeyConfigBuilder().mergeFrom(value); + } else { + apiKeyConfig_ = value; + } + } else { + apiKeyConfigBuilder_.mergeFrom(value); + } + if (apiKeyConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearApiKeyConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + apiKeyConfig_ = null; + if (apiKeyConfigBuilder_ != null) { + apiKeyConfigBuilder_.dispose(); + apiKeyConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.Builder + getApiKeyConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getApiKeyConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfigOrBuilder + getApiKeyConfigOrBuilder() { + if (apiKeyConfigBuilder_ != null) { + return apiKeyConfigBuilder_.getMessageOrBuilder(); + } else { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfigOrBuilder> + getApiKeyConfigFieldBuilder() { + if (apiKeyConfigBuilder_ == null) { + apiKeyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfigOrBuilder>( + getApiKeyConfig(), getParentForChildren(), isClean()); + apiKeyConfig_ = null; + } + return apiKeyConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels) + private static final com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels(); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SlackChannels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CHANNELS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List channels_; + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getChannelsList() { + return channels_; + } + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannelsOrBuilder> + getChannelsOrBuilderList() { + return channels_; + } + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getChannelsCount() { + return channels_.size(); + } + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels getChannels(int index) { + return channels_.get(index); + } + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannelsOrBuilder + getChannelsOrBuilder(int index) { + return channels_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < channels_.size(); i++) { + output.writeMessage(1, channels_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < channels_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, channels_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.SlackSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SlackSource other = + (com.google.cloud.aiplatform.v1beta1.SlackSource) obj; + + if (!getChannelsList().equals(other.getChannelsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getChannelsCount() > 0) { + hash = (37 * hash) + CHANNELS_FIELD_NUMBER; + hash = (53 * hash) + getChannelsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.SlackSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The Slack source for the ImportRagFilesRequest.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SlackSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SlackSource) + com.google.cloud.aiplatform.v1beta1.SlackSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SlackSource.class, + com.google.cloud.aiplatform.v1beta1.SlackSource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.SlackSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + } else { + channels_ = null; + channelsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_SlackSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource build() { + com.google.cloud.aiplatform.v1beta1.SlackSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource buildPartial() { + com.google.cloud.aiplatform.v1beta1.SlackSource result = + new com.google.cloud.aiplatform.v1beta1.SlackSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.SlackSource result) { + if (channelsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + channels_ = java.util.Collections.unmodifiableList(channels_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.channels_ = channels_; + } else { + result.channels_ = channelsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SlackSource result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.SlackSource) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SlackSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SlackSource other) { + if (other == com.google.cloud.aiplatform.v1beta1.SlackSource.getDefaultInstance()) + return this; + if (channelsBuilder_ == null) { + if (!other.channels_.isEmpty()) { + if (channels_.isEmpty()) { + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChannelsIsMutable(); + channels_.addAll(other.channels_); + } + onChanged(); + } + } else { + if (!other.channels_.isEmpty()) { + if (channelsBuilder_.isEmpty()) { + channelsBuilder_.dispose(); + channelsBuilder_ = null; + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000001); + channelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChannelsFieldBuilder() + : null; + } else { + channelsBuilder_.addAllMessages(other.channels_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.parser(), + extensionRegistry); + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(m); + } else { + channelsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + channels_ = java.util.Collections.emptyList(); + + private void ensureChannelsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + channels_ = + new java.util.ArrayList( + channels_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.Builder, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannelsOrBuilder> + channelsBuilder_; + + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getChannelsList() { + if (channelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(channels_); + } else { + return channelsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getChannelsCount() { + if (channelsBuilder_ == null) { + return channels_.size(); + } else { + return channelsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels getChannels(int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChannels( + int index, com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.set(index, value); + onChanged(); + } else { + channelsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChannels( + int index, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.set(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(value); + onChanged(); + } else { + channelsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + int index, com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(index, value); + onChanged(); + } else { + channelsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + int index, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllChannels( + java.lang.Iterable + values) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, channels_); + onChanged(); + } else { + channelsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearChannels() { + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + channelsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeChannels(int index) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.remove(index); + onChanged(); + } else { + channelsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.Builder getChannelsBuilder( + int index) { + return getChannelsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannelsOrBuilder + getChannelsOrBuilder(int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannelsOrBuilder> + getChannelsOrBuilderList() { + if (channelsBuilder_ != null) { + return channelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(channels_); + } + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.Builder + addChannelsBuilder() { + return getChannelsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.Builder addChannelsBuilder( + int index) { + return getChannelsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getChannelsBuilderList() { + return getChannelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.Builder, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannelsOrBuilder> + getChannelsFieldBuilder() { + if (channelsBuilder_ == null) { + channelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.Builder, + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannelsOrBuilder>( + channels_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + channels_ = null; + } + return channelsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.SlackSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SlackSource) + private static final com.google.cloud.aiplatform.v1beta1.SlackSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SlackSource(); + } + + public static com.google.cloud.aiplatform.v1beta1.SlackSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SlackSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SlackSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SlackSourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SlackSourceOrBuilder.java new file mode 100644 index 000000000000..c0b8243bef6b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SlackSourceOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/io.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface SlackSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SlackSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getChannelsList(); + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels getChannels(int index); + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getChannelsCount(); + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getChannelsOrBuilderList(); + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannelsOrBuilder getChannelsOrBuilder( + int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java index 73755a50e9f6..a75769cd1e9c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java @@ -22931,7 +22931,7 @@ public boolean hasMedianAutomatedStoppingSpec() { * * * @deprecated google.cloud.aiplatform.v1beta1.StudySpec.convex_stop_config is deprecated. See - * google/cloud/aiplatform/v1beta1/study.proto;l=693 + * google/cloud/aiplatform/v1beta1/study.proto;l=692 * @return Whether the convexStopConfig field is set. */ @java.lang.Override @@ -22952,7 +22952,7 @@ public boolean hasConvexStopConfig() { * * * @deprecated google.cloud.aiplatform.v1beta1.StudySpec.convex_stop_config is deprecated. See - * google/cloud/aiplatform/v1beta1/study.proto;l=693 + * google/cloud/aiplatform/v1beta1/study.proto;l=692 * @return The convexStopConfig. */ @java.lang.Override @@ -24787,7 +24787,7 @@ public Builder clearMedianAutomatedStoppingSpec() { * * * @deprecated google.cloud.aiplatform.v1beta1.StudySpec.convex_stop_config is deprecated. See - * google/cloud/aiplatform/v1beta1/study.proto;l=693 + * google/cloud/aiplatform/v1beta1/study.proto;l=692 * @return Whether the convexStopConfig field is set. */ @java.lang.Override @@ -24808,7 +24808,7 @@ public boolean hasConvexStopConfig() { * * * @deprecated google.cloud.aiplatform.v1beta1.StudySpec.convex_stop_config is deprecated. See - * google/cloud/aiplatform/v1beta1/study.proto;l=693 + * google/cloud/aiplatform/v1beta1/study.proto;l=692 * @return The convexStopConfig. */ @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpecOrBuilder.java index e3c628ef2f5a..f3f6c424edb7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpecOrBuilder.java @@ -123,7 +123,7 @@ public interface StudySpecOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.StudySpec.convex_stop_config is deprecated. See - * google/cloud/aiplatform/v1beta1/study.proto;l=693 + * google/cloud/aiplatform/v1beta1/study.proto;l=692 * @return Whether the convexStopConfig field is set. */ @java.lang.Deprecated @@ -141,7 +141,7 @@ public interface StudySpecOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.StudySpec.convex_stop_config is deprecated. See - * google/cloud/aiplatform/v1beta1/study.proto;l=693 + * google/cloud/aiplatform/v1beta1/study.proto;l=692 * @return The convexStopConfig. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java index f75ec71db676..86adbc65b7b4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java @@ -111,16 +111,39 @@ public long getTotalTuningCharacterCount() { * Output only. Number of billable characters in the tuning dataset. * * - * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 total_billable_character_count = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count is + * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=225 * @return The totalBillableCharacterCount. */ @java.lang.Override + @java.lang.Deprecated public long getTotalBillableCharacterCount() { return totalBillableCharacterCount_; } + public static final int TOTAL_BILLABLE_TOKEN_COUNT_FIELD_NUMBER = 9; + private long totalBillableTokenCount_ = 0L; + /** + * + * + *
+   * Output only. Number of billable tokens in the tuning dataset.
+   * 
+ * + * int64 total_billable_token_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalBillableTokenCount. + */ + @java.lang.Override + public long getTotalBillableTokenCount() { + return totalBillableTokenCount_; + } + public static final int TUNING_STEP_COUNT_FIELD_NUMBER = 4; private long tuningStepCount_ = 0L; /** @@ -442,6 +465,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < userDatasetExamples_.size(); i++) { output.writeMessage(8, userDatasetExamples_.get(i)); } + if (totalBillableTokenCount_ != 0L) { + output.writeInt64(9, totalBillableTokenCount_); + } getUnknownFields().writeTo(output); } @@ -483,6 +509,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, userDatasetExamples_.get(i)); } + if (totalBillableTokenCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, totalBillableTokenCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -502,6 +531,7 @@ public boolean equals(final java.lang.Object obj) { if (getTuningDatasetExampleCount() != other.getTuningDatasetExampleCount()) return false; if (getTotalTuningCharacterCount() != other.getTotalTuningCharacterCount()) return false; if (getTotalBillableCharacterCount() != other.getTotalBillableCharacterCount()) return false; + if (getTotalBillableTokenCount() != other.getTotalBillableTokenCount()) return false; if (getTuningStepCount() != other.getTuningStepCount()) return false; if (hasUserInputTokenDistribution() != other.hasUserInputTokenDistribution()) return false; if (hasUserInputTokenDistribution()) { @@ -537,6 +567,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalTuningCharacterCount()); hash = (37 * hash) + TOTAL_BILLABLE_CHARACTER_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableCharacterCount()); + hash = (37 * hash) + TOTAL_BILLABLE_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBillableTokenCount()); hash = (37 * hash) + TUNING_STEP_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTuningStepCount()); if (hasUserInputTokenDistribution()) { @@ -710,6 +742,7 @@ public Builder clear() { tuningDatasetExampleCount_ = 0L; totalTuningCharacterCount_ = 0L; totalBillableCharacterCount_ = 0L; + totalBillableTokenCount_ = 0L; tuningStepCount_ = 0L; userInputTokenDistribution_ = null; if (userInputTokenDistributionBuilder_ != null) { @@ -732,7 +765,7 @@ public Builder clear() { userDatasetExamples_ = null; userDatasetExamplesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); return this; } @@ -772,9 +805,9 @@ public com.google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats buildPartia private void buildPartialRepeatedFields( com.google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats result) { if (userDatasetExamplesBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { userDatasetExamples_ = java.util.Collections.unmodifiableList(userDatasetExamples_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } result.userDatasetExamples_ = userDatasetExamples_; } else { @@ -795,24 +828,27 @@ private void buildPartial0( result.totalBillableCharacterCount_ = totalBillableCharacterCount_; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.totalBillableTokenCount_ = totalBillableTokenCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.tuningStepCount_ = tuningStepCount_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.userInputTokenDistribution_ = userInputTokenDistributionBuilder_ == null ? userInputTokenDistribution_ : userInputTokenDistributionBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.userOutputTokenDistribution_ = userOutputTokenDistributionBuilder_ == null ? userOutputTokenDistribution_ : userOutputTokenDistributionBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.userMessagePerExampleDistribution_ = userMessagePerExampleDistributionBuilder_ == null ? userMessagePerExampleDistribution_ @@ -878,6 +914,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SupervisedTuningDat if (other.getTotalBillableCharacterCount() != 0L) { setTotalBillableCharacterCount(other.getTotalBillableCharacterCount()); } + if (other.getTotalBillableTokenCount() != 0L) { + setTotalBillableTokenCount(other.getTotalBillableTokenCount()); + } if (other.getTuningStepCount() != 0L) { setTuningStepCount(other.getTuningStepCount()); } @@ -894,7 +933,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SupervisedTuningDat if (!other.userDatasetExamples_.isEmpty()) { if (userDatasetExamples_.isEmpty()) { userDatasetExamples_ = other.userDatasetExamples_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureUserDatasetExamplesIsMutable(); userDatasetExamples_.addAll(other.userDatasetExamples_); @@ -907,7 +946,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SupervisedTuningDat userDatasetExamplesBuilder_.dispose(); userDatasetExamplesBuilder_ = null; userDatasetExamples_ = other.userDatasetExamples_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); userDatasetExamplesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUserDatasetExamplesFieldBuilder() @@ -964,21 +1003,21 @@ public Builder mergeFrom( case 32: { tuningStepCount_ = input.readInt64(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 32 case 42: { input.readMessage( getUserInputTokenDistributionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 case 50: { input.readMessage( getUserOutputTokenDistributionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 58: @@ -986,7 +1025,7 @@ public Builder mergeFrom( input.readMessage( getUserMessagePerExampleDistributionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 58 case 66: @@ -1002,6 +1041,12 @@ public Builder mergeFrom( } break; } // case 66 + case 72: + { + totalBillableTokenCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1141,12 +1186,17 @@ public Builder clearTotalTuningCharacterCount() { * Output only. Number of billable characters in the tuning dataset. * * - * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 total_billable_character_count = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=225 * @return The totalBillableCharacterCount. */ @java.lang.Override + @java.lang.Deprecated public long getTotalBillableCharacterCount() { return totalBillableCharacterCount_; } @@ -1157,12 +1207,17 @@ public long getTotalBillableCharacterCount() { * Output only. Number of billable characters in the tuning dataset. * * - * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 total_billable_character_count = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=225 * @param value The totalBillableCharacterCount to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setTotalBillableCharacterCount(long value) { totalBillableCharacterCount_ = value; @@ -1177,11 +1232,16 @@ public Builder setTotalBillableCharacterCount(long value) { * Output only. Number of billable characters in the tuning dataset. * * - * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 total_billable_character_count = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=225 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearTotalBillableCharacterCount() { bitField0_ = (bitField0_ & ~0x00000004); totalBillableCharacterCount_ = 0L; @@ -1189,6 +1249,62 @@ public Builder clearTotalBillableCharacterCount() { return this; } + private long totalBillableTokenCount_; + /** + * + * + *
+     * Output only. Number of billable tokens in the tuning dataset.
+     * 
+ * + * int64 total_billable_token_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalBillableTokenCount. + */ + @java.lang.Override + public long getTotalBillableTokenCount() { + return totalBillableTokenCount_; + } + /** + * + * + *
+     * Output only. Number of billable tokens in the tuning dataset.
+     * 
+ * + * int64 total_billable_token_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The totalBillableTokenCount to set. + * @return This builder for chaining. + */ + public Builder setTotalBillableTokenCount(long value) { + + totalBillableTokenCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Number of billable tokens in the tuning dataset.
+     * 
+ * + * int64 total_billable_token_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTotalBillableTokenCount() { + bitField0_ = (bitField0_ & ~0x00000008); + totalBillableTokenCount_ = 0L; + onChanged(); + return this; + } + private long tuningStepCount_; /** * @@ -1220,7 +1336,7 @@ public long getTuningStepCount() { public Builder setTuningStepCount(long value) { tuningStepCount_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1236,7 +1352,7 @@ public Builder setTuningStepCount(long value) { * @return This builder for chaining. */ public Builder clearTuningStepCount() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); tuningStepCount_ = 0L; onChanged(); return this; @@ -1263,7 +1379,7 @@ public Builder clearTuningStepCount() { * @return Whether the userInputTokenDistribution field is set. */ public boolean hasUserInputTokenDistribution() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1310,7 +1426,7 @@ public Builder setUserInputTokenDistribution( } else { userInputTokenDistributionBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1333,7 +1449,7 @@ public Builder setUserInputTokenDistribution( } else { userInputTokenDistributionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1351,7 +1467,7 @@ public Builder setUserInputTokenDistribution( public Builder mergeUserInputTokenDistribution( com.google.cloud.aiplatform.v1beta1.SupervisedTuningDatasetDistribution value) { if (userInputTokenDistributionBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && userInputTokenDistribution_ != null && userInputTokenDistribution_ != com.google.cloud.aiplatform.v1beta1.SupervisedTuningDatasetDistribution @@ -1364,7 +1480,7 @@ public Builder mergeUserInputTokenDistribution( userInputTokenDistributionBuilder_.mergeFrom(value); } if (userInputTokenDistribution_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -1381,7 +1497,7 @@ public Builder mergeUserInputTokenDistribution( *
*/ public Builder clearUserInputTokenDistribution() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); userInputTokenDistribution_ = null; if (userInputTokenDistributionBuilder_ != null) { userInputTokenDistributionBuilder_.dispose(); @@ -1403,7 +1519,7 @@ public Builder clearUserInputTokenDistribution() { */ public com.google.cloud.aiplatform.v1beta1.SupervisedTuningDatasetDistribution.Builder getUserInputTokenDistributionBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getUserInputTokenDistributionFieldBuilder().getBuilder(); } @@ -1478,7 +1594,7 @@ public Builder clearUserInputTokenDistribution() { * @return Whether the userOutputTokenDistribution field is set. */ public boolean hasUserOutputTokenDistribution() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1525,7 +1641,7 @@ public Builder setUserOutputTokenDistribution( } else { userOutputTokenDistributionBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1548,7 +1664,7 @@ public Builder setUserOutputTokenDistribution( } else { userOutputTokenDistributionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1566,7 +1682,7 @@ public Builder setUserOutputTokenDistribution( public Builder mergeUserOutputTokenDistribution( com.google.cloud.aiplatform.v1beta1.SupervisedTuningDatasetDistribution value) { if (userOutputTokenDistributionBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && userOutputTokenDistribution_ != null && userOutputTokenDistribution_ != com.google.cloud.aiplatform.v1beta1.SupervisedTuningDatasetDistribution @@ -1579,7 +1695,7 @@ public Builder mergeUserOutputTokenDistribution( userOutputTokenDistributionBuilder_.mergeFrom(value); } if (userOutputTokenDistribution_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -1596,7 +1712,7 @@ public Builder mergeUserOutputTokenDistribution( *
*/ public Builder clearUserOutputTokenDistribution() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); userOutputTokenDistribution_ = null; if (userOutputTokenDistributionBuilder_ != null) { userOutputTokenDistributionBuilder_.dispose(); @@ -1618,7 +1734,7 @@ public Builder clearUserOutputTokenDistribution() { */ public com.google.cloud.aiplatform.v1beta1.SupervisedTuningDatasetDistribution.Builder getUserOutputTokenDistributionBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getUserOutputTokenDistributionFieldBuilder().getBuilder(); } @@ -1693,7 +1809,7 @@ public Builder clearUserOutputTokenDistribution() { * @return Whether the userMessagePerExampleDistribution field is set. */ public boolean hasUserMessagePerExampleDistribution() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -1740,7 +1856,7 @@ public Builder setUserMessagePerExampleDistribution( } else { userMessagePerExampleDistributionBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1763,7 +1879,7 @@ public Builder setUserMessagePerExampleDistribution( } else { userMessagePerExampleDistributionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1781,7 +1897,7 @@ public Builder setUserMessagePerExampleDistribution( public Builder mergeUserMessagePerExampleDistribution( com.google.cloud.aiplatform.v1beta1.SupervisedTuningDatasetDistribution value) { if (userMessagePerExampleDistributionBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && userMessagePerExampleDistribution_ != null && userMessagePerExampleDistribution_ != com.google.cloud.aiplatform.v1beta1.SupervisedTuningDatasetDistribution @@ -1794,7 +1910,7 @@ public Builder mergeUserMessagePerExampleDistribution( userMessagePerExampleDistributionBuilder_.mergeFrom(value); } if (userMessagePerExampleDistribution_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -1811,7 +1927,7 @@ public Builder mergeUserMessagePerExampleDistribution( *
*/ public Builder clearUserMessagePerExampleDistribution() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); userMessagePerExampleDistribution_ = null; if (userMessagePerExampleDistributionBuilder_ != null) { userMessagePerExampleDistributionBuilder_.dispose(); @@ -1833,7 +1949,7 @@ public Builder clearUserMessagePerExampleDistribution() { */ public com.google.cloud.aiplatform.v1beta1.SupervisedTuningDatasetDistribution.Builder getUserMessagePerExampleDistributionBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getUserMessagePerExampleDistributionFieldBuilder().getBuilder(); } @@ -1891,11 +2007,11 @@ public Builder clearUserMessagePerExampleDistribution() { java.util.Collections.emptyList(); private void ensureUserDatasetExamplesIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { userDatasetExamples_ = new java.util.ArrayList( userDatasetExamples_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } @@ -2136,7 +2252,7 @@ public Builder addAllUserDatasetExamples( public Builder clearUserDatasetExamples() { if (userDatasetExamplesBuilder_ == null) { userDatasetExamples_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { userDatasetExamplesBuilder_.clear(); @@ -2276,7 +2392,7 @@ public com.google.cloud.aiplatform.v1beta1.Content.Builder addUserDatasetExample com.google.cloud.aiplatform.v1beta1.Content.Builder, com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( userDatasetExamples_, - ((bitField0_ & 0x00000080) != 0), + ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); userDatasetExamples_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java index b76da50f04bb..cda1d8238751 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java @@ -59,13 +59,31 @@ public interface SupervisedTuningDataStatsOrBuilder * Output only. Number of billable characters in the tuning dataset. * * - * int64 total_billable_character_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 total_billable_character_count = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count is + * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=225 * @return The totalBillableCharacterCount. */ + @java.lang.Deprecated long getTotalBillableCharacterCount(); + /** + * + * + *
+   * Output only. Number of billable tokens in the tuning dataset.
+   * 
+ * + * int64 total_billable_token_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalBillableTokenCount. + */ + long getTotalBillableTokenCount(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDatasetDistribution.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDatasetDistribution.java index 0f103573bd60..278a3613c359 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDatasetDistribution.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDatasetDistribution.java @@ -902,6 +902,24 @@ public long getSum() { return sum_; } + public static final int BILLABLE_SUM_FIELD_NUMBER = 9; + private long billableSum_ = 0L; + /** + * + * + *
+   * Output only. Sum of a given population of values that are billable.
+   * 
+ * + * int64 billable_sum = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The billableSum. + */ + @java.lang.Override + public long getBillableSum() { + return billableSum_; + } + public static final int MIN_FIELD_NUMBER = 2; private double min_ = 0D; /** @@ -1139,6 +1157,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < buckets_.size(); i++) { output.writeMessage(8, buckets_.get(i)); } + if (billableSum_ != 0L) { + output.writeInt64(9, billableSum_); + } getUnknownFields().writeTo(output); } @@ -1172,6 +1193,9 @@ public int getSerializedSize() { for (int i = 0; i < buckets_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, buckets_.get(i)); } + if (billableSum_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, billableSum_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1189,6 +1213,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.SupervisedTuningDatasetDistribution) obj; if (getSum() != other.getSum()) return false; + if (getBillableSum() != other.getBillableSum()) return false; if (java.lang.Double.doubleToLongBits(getMin()) != java.lang.Double.doubleToLongBits(other.getMin())) return false; if (java.lang.Double.doubleToLongBits(getMax()) @@ -1215,6 +1240,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSum()); + hash = (37 * hash) + BILLABLE_SUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBillableSum()); hash = (37 * hash) + MIN_FIELD_NUMBER; hash = (53 * hash) @@ -1387,6 +1414,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; sum_ = 0L; + billableSum_ = 0L; min_ = 0D; max_ = 0D; mean_ = 0D; @@ -1399,7 +1427,7 @@ public Builder clear() { buckets_ = null; bucketsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); return this; } @@ -1441,9 +1469,9 @@ public com.google.cloud.aiplatform.v1beta1.SupervisedTuningDatasetDistribution b private void buildPartialRepeatedFields( com.google.cloud.aiplatform.v1beta1.SupervisedTuningDatasetDistribution result) { if (bucketsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { buckets_ = java.util.Collections.unmodifiableList(buckets_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } result.buckets_ = buckets_; } else { @@ -1458,21 +1486,24 @@ private void buildPartial0( result.sum_ = sum_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.min_ = min_; + result.billableSum_ = billableSum_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.max_ = max_; + result.min_ = min_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.mean_ = mean_; + result.max_ = max_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.median_ = median_; + result.mean_ = mean_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.p5_ = p5_; + result.median_ = median_; } if (((from_bitField0_ & 0x00000040) != 0)) { + result.p5_ = p5_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { result.p95_ = p95_; } } @@ -1530,6 +1561,9 @@ public Builder mergeFrom( if (other.getSum() != 0L) { setSum(other.getSum()); } + if (other.getBillableSum() != 0L) { + setBillableSum(other.getBillableSum()); + } if (other.getMin() != 0D) { setMin(other.getMin()); } @@ -1552,7 +1586,7 @@ public Builder mergeFrom( if (!other.buckets_.isEmpty()) { if (buckets_.isEmpty()) { buckets_ = other.buckets_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureBucketsIsMutable(); buckets_.addAll(other.buckets_); @@ -1565,7 +1599,7 @@ public Builder mergeFrom( bucketsBuilder_.dispose(); bucketsBuilder_ = null; buckets_ = other.buckets_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); bucketsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBucketsFieldBuilder() @@ -1610,37 +1644,37 @@ public Builder mergeFrom( case 17: { min_ = input.readDouble(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 17 case 25: { max_ = input.readDouble(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 25 case 33: { mean_ = input.readDouble(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 33 case 41: { median_ = input.readDouble(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 41 case 49: { p5_ = input.readDouble(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 49 case 57: { p95_ = input.readDouble(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 57 case 66: @@ -1660,6 +1694,12 @@ public Builder mergeFrom( } break; } // case 66 + case 72: + { + billableSum_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1732,6 +1772,59 @@ public Builder clearSum() { return this; } + private long billableSum_; + /** + * + * + *
+     * Output only. Sum of a given population of values that are billable.
+     * 
+ * + * int64 billable_sum = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The billableSum. + */ + @java.lang.Override + public long getBillableSum() { + return billableSum_; + } + /** + * + * + *
+     * Output only. Sum of a given population of values that are billable.
+     * 
+ * + * int64 billable_sum = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The billableSum to set. + * @return This builder for chaining. + */ + public Builder setBillableSum(long value) { + + billableSum_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Sum of a given population of values that are billable.
+     * 
+ * + * int64 billable_sum = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBillableSum() { + bitField0_ = (bitField0_ & ~0x00000002); + billableSum_ = 0L; + onChanged(); + return this; + } + private double min_; /** * @@ -1763,7 +1856,7 @@ public double getMin() { public Builder setMin(double value) { min_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1779,7 +1872,7 @@ public Builder setMin(double value) { * @return This builder for chaining. */ public Builder clearMin() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); min_ = 0D; onChanged(); return this; @@ -1816,7 +1909,7 @@ public double getMax() { public Builder setMax(double value) { max_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1832,7 +1925,7 @@ public Builder setMax(double value) { * @return This builder for chaining. */ public Builder clearMax() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); max_ = 0D; onChanged(); return this; @@ -1869,7 +1962,7 @@ public double getMean() { public Builder setMean(double value) { mean_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1885,7 +1978,7 @@ public Builder setMean(double value) { * @return This builder for chaining. */ public Builder clearMean() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); mean_ = 0D; onChanged(); return this; @@ -1922,7 +2015,7 @@ public double getMedian() { public Builder setMedian(double value) { median_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1938,7 +2031,7 @@ public Builder setMedian(double value) { * @return This builder for chaining. */ public Builder clearMedian() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); median_ = 0D; onChanged(); return this; @@ -1975,7 +2068,7 @@ public double getP5() { public Builder setP5(double value) { p5_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1991,7 +2084,7 @@ public Builder setP5(double value) { * @return This builder for chaining. */ public Builder clearP5() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); p5_ = 0D; onChanged(); return this; @@ -2028,7 +2121,7 @@ public double getP95() { public Builder setP95(double value) { p95_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2044,7 +2137,7 @@ public Builder setP95(double value) { * @return This builder for chaining. */ public Builder clearP95() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); p95_ = 0D; onChanged(); return this; @@ -2055,12 +2148,12 @@ public Builder clearP95() { buckets_ = java.util.Collections.emptyList(); private void ensureBucketsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { buckets_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.SupervisedTuningDatasetDistribution .DatasetBucket>(buckets_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } @@ -2323,7 +2416,7 @@ public Builder addAllBuckets( public Builder clearBuckets() { if (bucketsBuilder_ == null) { buckets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { bucketsBuilder_.clear(); @@ -2482,7 +2575,7 @@ public Builder removeBuckets(int index) { .DatasetBucket.Builder, com.google.cloud.aiplatform.v1beta1.SupervisedTuningDatasetDistribution .DatasetBucketOrBuilder>( - buckets_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + buckets_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); buckets_ = null; } return bucketsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDatasetDistributionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDatasetDistributionOrBuilder.java index dd4df4fc934e..ad2edf5ffd6a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDatasetDistributionOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDatasetDistributionOrBuilder.java @@ -37,6 +37,19 @@ public interface SupervisedTuningDatasetDistributionOrBuilder */ long getSum(); + /** + * + * + *
+   * Output only. Sum of a given population of values that are billable.
+   * 
+ * + * int64 billable_sum = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The billableSum. + */ + long getBillableSum(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java index 73a35b8173b6..cf4fa887cccf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java @@ -120,39 +120,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nCall\022\021\n\004name\030\001 \001(\tB\003\340A\002\022*\n\004args\030\002 \001(\0132\027" + ".google.protobuf.StructB\003\340A\001\"U\n\020Function" + "Response\022\021\n\004name\030\001 \001(\tB\003\340A\002\022.\n\010response\030" - + "\002 \001(\0132\027.google.protobuf.StructB\003\340A\002\"\321\001\n\t" + + "\002 \001(\0132\027.google.protobuf.StructB\003\340A\002\"\323\001\n\t" + "Retrieval\022K\n\020vertex_ai_search\030\002 \001(\0132/.go" + "ogle.cloud.aiplatform.v1beta1.VertexAISe" + "archH\000\022K\n\020vertex_rag_store\030\004 \001(\0132/.googl" + "e.cloud.aiplatform.v1beta1.VertexRagStor" - + "eH\000\022 \n\023disable_attribution\030\003 \001(\010B\003\340A\001B\010\n" - + "\006source\"\234\003\n\016VertexRagStore\022B\n\013rag_corpor" - + "a\030\001 \003(\tB-\030\001\340A\001\372A%\n#aiplatform.googleapis" - + ".com/RagCorpus\022W\n\rrag_resources\030\004 \003(\0132;." - + "google.cloud.aiplatform.v1beta1.VertexRa" - + "gStore.RagResourceB\003\340A\001\022\"\n\020similarity_to" - + "p_k\030\002 \001(\005B\003\340A\001H\000\210\001\001\022+\n\031vector_distance_t" - + "hreshold\030\003 \001(\001B\003\340A\001H\001\210\001\001\032i\n\013RagResource\022" - + "?\n\nrag_corpus\030\001 \001(\tB+\340A\001\372A%\n#aiplatform." - + "googleapis.com/RagCorpus\022\031\n\014rag_file_ids" - + "\030\002 \003(\tB\003\340A\001B\023\n\021_similarity_top_kB\034\n\032_vec" - + "tor_distance_threshold\"(\n\016VertexAISearch" - + "\022\026\n\tdatastore\030\001 \001(\tB\003\340A\002\"9\n\025GoogleSearch" - + "Retrieval\022 \n\023disable_attribution\030\001 \001(\010B\003" - + "\340A\001\"j\n\nToolConfig\022\\\n\027function_calling_co" - + "nfig\030\001 \001(\01326.google.cloud.aiplatform.v1b" - + "eta1.FunctionCallingConfigB\003\340A\001\"\307\001\n\025Func" - + "tionCallingConfig\022N\n\004mode\030\001 \001(\0162;.google" - + ".cloud.aiplatform.v1beta1.FunctionCallin" - + "gConfig.ModeB\003\340A\001\022#\n\026allowed_function_na" - + "mes\030\002 \003(\tB\003\340A\001\"9\n\004Mode\022\024\n\020MODE_UNSPECIFI" - + "ED\020\000\022\010\n\004AUTO\020\001\022\007\n\003ANY\020\002\022\010\n\004NONE\020\003B\340\001\n#co" - + "m.google.cloud.aiplatform.v1beta1B\tToolP" - + "rotoP\001ZCcloud.google.com/go/aiplatform/a" - + "piv1beta1/aiplatformpb;aiplatformpb\252\002\037Go" - + "ogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\C" - + "loud\\AIPlatform\\V1beta1\352\002\"Google::Cloud:" - + ":AIPlatform::V1beta1b\006proto3" + + "eH\000\022\"\n\023disable_attribution\030\003 \001(\010B\005\030\001\340A\001B" + + "\010\n\006source\"\234\003\n\016VertexRagStore\022B\n\013rag_corp" + + "ora\030\001 \003(\tB-\030\001\340A\001\372A%\n#aiplatform.googleap" + + "is.com/RagCorpus\022W\n\rrag_resources\030\004 \003(\0132" + + ";.google.cloud.aiplatform.v1beta1.Vertex" + + "RagStore.RagResourceB\003\340A\001\022\"\n\020similarity_" + + "top_k\030\002 \001(\005B\003\340A\001H\000\210\001\001\022+\n\031vector_distance" + + "_threshold\030\003 \001(\001B\003\340A\001H\001\210\001\001\032i\n\013RagResourc" + + "e\022?\n\nrag_corpus\030\001 \001(\tB+\340A\001\372A%\n#aiplatfor" + + "m.googleapis.com/RagCorpus\022\031\n\014rag_file_i" + + "ds\030\002 \003(\tB\003\340A\001B\023\n\021_similarity_top_kB\034\n\032_v" + + "ector_distance_threshold\"(\n\016VertexAISear" + + "ch\022\026\n\tdatastore\030\001 \001(\tB\003\340A\002\"9\n\025GoogleSear" + + "chRetrieval\022 \n\023disable_attribution\030\001 \001(\010" + + "B\003\340A\001\"j\n\nToolConfig\022\\\n\027function_calling_" + + "config\030\001 \001(\01326.google.cloud.aiplatform.v" + + "1beta1.FunctionCallingConfigB\003\340A\001\"\307\001\n\025Fu" + + "nctionCallingConfig\022N\n\004mode\030\001 \001(\0162;.goog" + + "le.cloud.aiplatform.v1beta1.FunctionCall" + + "ingConfig.ModeB\003\340A\001\022#\n\026allowed_function_" + + "names\030\002 \003(\tB\003\340A\001\"9\n\004Mode\022\024\n\020MODE_UNSPECI" + + "FIED\020\000\022\010\n\004AUTO\020\001\022\007\n\003ANY\020\002\022\010\n\004NONE\020\003B\340\001\n#" + + "com.google.cloud.aiplatform.v1beta1B\tToo" + + "lProtoP\001ZCcloud.google.com/go/aiplatform" + + "/apiv1beta1/aiplatformpb;aiplatformpb\252\002\037" + + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google" + + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clou" + + "d::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialContext.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialContext.java index c8c689666877..c34bed99bbff 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialContext.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialContext.java @@ -19,15 +19,7 @@ // Protobuf Java Version: 3.25.3 package com.google.cloud.aiplatform.v1beta1; -/** - * - * - *
- * Next ID: 3
- * 
- * - * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrialContext} - */ +/** Protobuf type {@code google.cloud.aiplatform.v1beta1.TrialContext} */ public final class TrialContext extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrialContext) @@ -399,15 +391,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** - * - * - *
-   * Next ID: 3
-   * 
- * - * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrialContext} - */ + /** Protobuf type {@code google.cloud.aiplatform.v1beta1.TrialContext} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrialContext) diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningDataStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningDataStats.java index b954194005ce..4658b56254cc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningDataStats.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningDataStats.java @@ -72,6 +72,7 @@ public enum TuningDataStatsCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SUPERVISED_TUNING_DATA_STATS(1), + DISTILLATION_DATA_STATS(3), TUNINGDATASTATS_NOT_SET(0); private final int value; @@ -92,6 +93,8 @@ public static TuningDataStatsCase forNumber(int value) { switch (value) { case 1: return SUPERVISED_TUNING_DATA_STATS; + case 3: + return DISTILLATION_DATA_STATS; case 0: return TUNINGDATASTATS_NOT_SET; default: @@ -167,6 +170,64 @@ public boolean hasSupervisedTuningDataStats() { return com.google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.getDefaultInstance(); } + public static final int DISTILLATION_DATA_STATS_FIELD_NUMBER = 3; + /** + * + * + *
+   * Output only. Statistics for distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the distillationDataStats field is set. + */ + @java.lang.Override + public boolean hasDistillationDataStats() { + return tuningDataStatsCase_ == 3; + } + /** + * + * + *
+   * Output only. Statistics for distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The distillationDataStats. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationDataStats getDistillationDataStats() { + if (tuningDataStatsCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.DistillationDataStats) tuningDataStats_; + } + return com.google.cloud.aiplatform.v1beta1.DistillationDataStats.getDefaultInstance(); + } + /** + * + * + *
+   * Output only. Statistics for distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationDataStatsOrBuilder + getDistillationDataStatsOrBuilder() { + if (tuningDataStatsCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.DistillationDataStats) tuningDataStats_; + } + return com.google.cloud.aiplatform.v1beta1.DistillationDataStats.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -185,6 +246,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 1, (com.google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats) tuningDataStats_); } + if (tuningDataStatsCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.aiplatform.v1beta1.DistillationDataStats) tuningDataStats_); + } getUnknownFields().writeTo(output); } @@ -199,6 +264,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats) tuningDataStats_); } + if (tuningDataStatsCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.aiplatform.v1beta1.DistillationDataStats) tuningDataStats_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -221,6 +291,9 @@ public boolean equals(final java.lang.Object obj) { if (!getSupervisedTuningDataStats().equals(other.getSupervisedTuningDataStats())) return false; break; + case 3: + if (!getDistillationDataStats().equals(other.getDistillationDataStats())) return false; + break; case 0: default: } @@ -240,6 +313,10 @@ public int hashCode() { hash = (37 * hash) + SUPERVISED_TUNING_DATA_STATS_FIELD_NUMBER; hash = (53 * hash) + getSupervisedTuningDataStats().hashCode(); break; + case 3: + hash = (37 * hash) + DISTILLATION_DATA_STATS_FIELD_NUMBER; + hash = (53 * hash) + getDistillationDataStats().hashCode(); + break; case 0: default: } @@ -386,6 +463,9 @@ public Builder clear() { if (supervisedTuningDataStatsBuilder_ != null) { supervisedTuningDataStatsBuilder_.clear(); } + if (distillationDataStatsBuilder_ != null) { + distillationDataStatsBuilder_.clear(); + } tuningDataStatsCase_ = 0; tuningDataStats_ = null; return this; @@ -433,6 +513,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.TuningDataSt if (tuningDataStatsCase_ == 1 && supervisedTuningDataStatsBuilder_ != null) { result.tuningDataStats_ = supervisedTuningDataStatsBuilder_.build(); } + if (tuningDataStatsCase_ == 3 && distillationDataStatsBuilder_ != null) { + result.tuningDataStats_ = distillationDataStatsBuilder_.build(); + } } @java.lang.Override @@ -487,6 +570,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningDataStats oth mergeSupervisedTuningDataStats(other.getSupervisedTuningDataStats()); break; } + case DISTILLATION_DATA_STATS: + { + mergeDistillationDataStats(other.getDistillationDataStats()); + break; + } case TUNINGDATASTATS_NOT_SET: { break; @@ -525,6 +613,13 @@ public Builder mergeFrom( tuningDataStatsCase_ = 1; break; } // case 10 + case 26: + { + input.readMessage( + getDistillationDataStatsFieldBuilder().getBuilder(), extensionRegistry); + tuningDataStatsCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -794,6 +889,239 @@ public Builder clearSupervisedTuningDataStats() { return supervisedTuningDataStatsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DistillationDataStats, + com.google.cloud.aiplatform.v1beta1.DistillationDataStats.Builder, + com.google.cloud.aiplatform.v1beta1.DistillationDataStatsOrBuilder> + distillationDataStatsBuilder_; + /** + * + * + *
+     * Output only. Statistics for distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the distillationDataStats field is set. + */ + @java.lang.Override + public boolean hasDistillationDataStats() { + return tuningDataStatsCase_ == 3; + } + /** + * + * + *
+     * Output only. Statistics for distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The distillationDataStats. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationDataStats getDistillationDataStats() { + if (distillationDataStatsBuilder_ == null) { + if (tuningDataStatsCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.DistillationDataStats) tuningDataStats_; + } + return com.google.cloud.aiplatform.v1beta1.DistillationDataStats.getDefaultInstance(); + } else { + if (tuningDataStatsCase_ == 3) { + return distillationDataStatsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.DistillationDataStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. Statistics for distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDistillationDataStats( + com.google.cloud.aiplatform.v1beta1.DistillationDataStats value) { + if (distillationDataStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tuningDataStats_ = value; + onChanged(); + } else { + distillationDataStatsBuilder_.setMessage(value); + } + tuningDataStatsCase_ = 3; + return this; + } + /** + * + * + *
+     * Output only. Statistics for distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDistillationDataStats( + com.google.cloud.aiplatform.v1beta1.DistillationDataStats.Builder builderForValue) { + if (distillationDataStatsBuilder_ == null) { + tuningDataStats_ = builderForValue.build(); + onChanged(); + } else { + distillationDataStatsBuilder_.setMessage(builderForValue.build()); + } + tuningDataStatsCase_ = 3; + return this; + } + /** + * + * + *
+     * Output only. Statistics for distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDistillationDataStats( + com.google.cloud.aiplatform.v1beta1.DistillationDataStats value) { + if (distillationDataStatsBuilder_ == null) { + if (tuningDataStatsCase_ == 3 + && tuningDataStats_ + != com.google.cloud.aiplatform.v1beta1.DistillationDataStats.getDefaultInstance()) { + tuningDataStats_ = + com.google.cloud.aiplatform.v1beta1.DistillationDataStats.newBuilder( + (com.google.cloud.aiplatform.v1beta1.DistillationDataStats) tuningDataStats_) + .mergeFrom(value) + .buildPartial(); + } else { + tuningDataStats_ = value; + } + onChanged(); + } else { + if (tuningDataStatsCase_ == 3) { + distillationDataStatsBuilder_.mergeFrom(value); + } else { + distillationDataStatsBuilder_.setMessage(value); + } + } + tuningDataStatsCase_ = 3; + return this; + } + /** + * + * + *
+     * Output only. Statistics for distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDistillationDataStats() { + if (distillationDataStatsBuilder_ == null) { + if (tuningDataStatsCase_ == 3) { + tuningDataStatsCase_ = 0; + tuningDataStats_ = null; + onChanged(); + } + } else { + if (tuningDataStatsCase_ == 3) { + tuningDataStatsCase_ = 0; + tuningDataStats_ = null; + } + distillationDataStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Statistics for distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DistillationDataStats.Builder + getDistillationDataStatsBuilder() { + return getDistillationDataStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Statistics for distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationDataStatsOrBuilder + getDistillationDataStatsOrBuilder() { + if ((tuningDataStatsCase_ == 3) && (distillationDataStatsBuilder_ != null)) { + return distillationDataStatsBuilder_.getMessageOrBuilder(); + } else { + if (tuningDataStatsCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.DistillationDataStats) tuningDataStats_; + } + return com.google.cloud.aiplatform.v1beta1.DistillationDataStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. Statistics for distillation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DistillationDataStats, + com.google.cloud.aiplatform.v1beta1.DistillationDataStats.Builder, + com.google.cloud.aiplatform.v1beta1.DistillationDataStatsOrBuilder> + getDistillationDataStatsFieldBuilder() { + if (distillationDataStatsBuilder_ == null) { + if (!(tuningDataStatsCase_ == 3)) { + tuningDataStats_ = + com.google.cloud.aiplatform.v1beta1.DistillationDataStats.getDefaultInstance(); + } + distillationDataStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DistillationDataStats, + com.google.cloud.aiplatform.v1beta1.DistillationDataStats.Builder, + com.google.cloud.aiplatform.v1beta1.DistillationDataStatsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.DistillationDataStats) tuningDataStats_, + getParentForChildren(), + isClean()); + tuningDataStats_ = null; + } + tuningDataStatsCase_ = 3; + onChanged(); + return distillationDataStatsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningDataStatsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningDataStatsOrBuilder.java index ed8ea60a0c57..3157f1685045 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningDataStatsOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningDataStatsOrBuilder.java @@ -66,5 +66,47 @@ public interface TuningDataStatsOrBuilder com.google.cloud.aiplatform.v1beta1.SupervisedTuningDataStatsOrBuilder getSupervisedTuningDataStatsOrBuilder(); + /** + * + * + *
+   * Output only. Statistics for distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the distillationDataStats field is set. + */ + boolean hasDistillationDataStats(); + /** + * + * + *
+   * Output only. Statistics for distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The distillationDataStats. + */ + com.google.cloud.aiplatform.v1beta1.DistillationDataStats getDistillationDataStats(); + /** + * + * + *
+   * Output only. Statistics for distillation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DistillationDataStats distillation_data_stats = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.DistillationDataStatsOrBuilder + getDistillationDataStatsOrBuilder(); + com.google.cloud.aiplatform.v1beta1.TuningDataStats.TuningDataStatsCase getTuningDataStatsCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java index 71274c0b02af..577db15eee4b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java @@ -44,6 +44,7 @@ private TuningJob() { description_ = ""; state_ = 0; experiment_ = ""; + pipelineJob_ = ""; } @java.lang.Override @@ -136,6 +137,7 @@ public enum TuningSpecCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SUPERVISED_TUNING_SPEC(5), + DISTILLATION_SPEC(17), TUNINGSPEC_NOT_SET(0); private final int value; @@ -156,6 +158,8 @@ public static TuningSpecCase forNumber(int value) { switch (value) { case 5: return SUPERVISED_TUNING_SPEC; + case 17: + return DISTILLATION_SPEC; case 0: return TUNINGSPEC_NOT_SET; default: @@ -294,6 +298,58 @@ public com.google.cloud.aiplatform.v1beta1.SupervisedTuningSpec getSupervisedTun return com.google.cloud.aiplatform.v1beta1.SupervisedTuningSpec.getDefaultInstance(); } + public static final int DISTILLATION_SPEC_FIELD_NUMBER = 17; + /** + * + * + *
+   * Tuning Spec for Distillation.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + * + * @return Whether the distillationSpec field is set. + */ + @java.lang.Override + public boolean hasDistillationSpec() { + return tuningSpecCase_ == 17; + } + /** + * + * + *
+   * Tuning Spec for Distillation.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + * + * @return The distillationSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationSpec getDistillationSpec() { + if (tuningSpecCase_ == 17) { + return (com.google.cloud.aiplatform.v1beta1.DistillationSpec) tuningSpec_; + } + return com.google.cloud.aiplatform.v1beta1.DistillationSpec.getDefaultInstance(); + } + /** + * + * + *
+   * Tuning Spec for Distillation.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationSpecOrBuilder + getDistillationSpecOrBuilder() { + if (tuningSpecCase_ == 17) { + return (com.google.cloud.aiplatform.v1beta1.DistillationSpec) tuningSpec_; + } + return com.google.cloud.aiplatform.v1beta1.DistillationSpec.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1078,6 +1134,65 @@ public com.google.cloud.aiplatform.v1beta1.TuningDataStats getTuningDataStats() : tuningDataStats_; } + public static final int PIPELINE_JOB_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object pipelineJob_ = ""; + /** + * + * + *
+   * Output only. The resource name of the PipelineJob associated with the
+   * [TuningJob][google.cloud.aiplatform.v1.TuningJob]. Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`.
+   * 
+ * + * + * string pipeline_job = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The pipelineJob. + */ + @java.lang.Override + public java.lang.String getPipelineJob() { + java.lang.Object ref = pipelineJob_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pipelineJob_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the PipelineJob associated with the
+   * [TuningJob][google.cloud.aiplatform.v1.TuningJob]. Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`.
+   * 
+ * + * + * string pipeline_job = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for pipelineJob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPipelineJobBytes() { + java.lang.Object ref = pipelineJob_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pipelineJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 16; private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; /** @@ -1196,6 +1311,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(16, getEncryptionSpec()); } + if (tuningSpecCase_ == 17) { + output.writeMessage(17, (com.google.cloud.aiplatform.v1beta1.DistillationSpec) tuningSpec_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pipelineJob_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, pipelineJob_); + } getUnknownFields().writeTo(output); } @@ -1262,6 +1383,14 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getEncryptionSpec()); } + if (tuningSpecCase_ == 17) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, (com.google.cloud.aiplatform.v1beta1.DistillationSpec) tuningSpec_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pipelineJob_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, pipelineJob_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1312,6 +1441,7 @@ public boolean equals(final java.lang.Object obj) { if (hasTuningDataStats()) { if (!getTuningDataStats().equals(other.getTuningDataStats())) return false; } + if (!getPipelineJob().equals(other.getPipelineJob())) return false; if (hasEncryptionSpec() != other.hasEncryptionSpec()) return false; if (hasEncryptionSpec()) { if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; @@ -1329,6 +1459,9 @@ public boolean equals(final java.lang.Object obj) { case 5: if (!getSupervisedTuningSpec().equals(other.getSupervisedTuningSpec())) return false; break; + case 17: + if (!getDistillationSpec().equals(other.getDistillationSpec())) return false; + break; case 0: default: } @@ -1385,6 +1518,8 @@ public int hashCode() { hash = (37 * hash) + TUNING_DATA_STATS_FIELD_NUMBER; hash = (53 * hash) + getTuningDataStats().hashCode(); } + hash = (37 * hash) + PIPELINE_JOB_FIELD_NUMBER; + hash = (53 * hash) + getPipelineJob().hashCode(); if (hasEncryptionSpec()) { hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getEncryptionSpec().hashCode(); @@ -1402,6 +1537,10 @@ public int hashCode() { hash = (37 * hash) + SUPERVISED_TUNING_SPEC_FIELD_NUMBER; hash = (53 * hash) + getSupervisedTuningSpec().hashCode(); break; + case 17: + hash = (37 * hash) + DISTILLATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getDistillationSpec().hashCode(); + break; case 0: default: } @@ -1585,6 +1724,9 @@ public Builder clear() { if (supervisedTuningSpecBuilder_ != null) { supervisedTuningSpecBuilder_.clear(); } + if (distillationSpecBuilder_ != null) { + distillationSpecBuilder_.clear(); + } name_ = ""; tunedModelDisplayName_ = ""; description_ = ""; @@ -1626,6 +1768,7 @@ public Builder clear() { tuningDataStatsBuilder_.dispose(); tuningDataStatsBuilder_ = null; } + pipelineJob_ = ""; encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -1672,56 +1815,59 @@ public com.google.cloud.aiplatform.v1beta1.TuningJob buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TuningJob result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.tunedModelDisplayName_ = tunedModelDisplayName_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.description_ = description_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.state_ = state_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.experiment_ = experiment_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.tunedModel_ = tunedModelBuilder_ == null ? tunedModel_ : tunedModelBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.tuningDataStats_ = tuningDataStatsBuilder_ == null ? tuningDataStats_ : tuningDataStatsBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { + result.pipelineJob_ = pipelineJob_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { result.encryptionSpec_ = encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); to_bitField0_ |= 0x00000080; @@ -1737,6 +1883,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.TuningJob re if (tuningSpecCase_ == 5 && supervisedTuningSpecBuilder_ != null) { result.tuningSpec_ = supervisedTuningSpecBuilder_.build(); } + if (tuningSpecCase_ == 17 && distillationSpecBuilder_ != null) { + result.tuningSpec_ = distillationSpecBuilder_.build(); + } } @java.lang.Override @@ -1786,17 +1935,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { if (other == com.google.cloud.aiplatform.v1beta1.TuningJob.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getTunedModelDisplayName().isEmpty()) { tunedModelDisplayName_ = other.tunedModelDisplayName_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (other.state_ != 0) { @@ -1818,10 +1967,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { mergeError(other.getError()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; if (!other.getExperiment().isEmpty()) { experiment_ = other.experiment_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (other.hasTunedModel()) { @@ -1830,6 +1979,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { if (other.hasTuningDataStats()) { mergeTuningDataStats(other.getTuningDataStats()); } + if (!other.getPipelineJob().isEmpty()) { + pipelineJob_ = other.pipelineJob_; + bitField0_ |= 0x00010000; + onChanged(); + } if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -1852,6 +2006,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { mergeSupervisedTuningSpec(other.getSupervisedTuningSpec()); break; } + case DISTILLATION_SPEC: + { + mergeDistillationSpec(other.getDistillationSpec()); + break; + } case TUNINGSPEC_NOT_SET: { break; @@ -1886,19 +2045,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 case 18: { tunedModelDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: @@ -1918,37 +2077,37 @@ public Builder mergeFrom( case 48: { state_ = input.readEnum(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 48 case 58: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 58 case 66: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 66 case 74: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 74 case 82: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 82 case 90: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 90 case 98: @@ -1960,33 +2119,46 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 98 case 106: { experiment_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 106 case 114: { input.readMessage(getTunedModelFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 114 case 122: { input.readMessage(getTuningDataStatsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 122 case 130: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; break; } // case 130 + case 138: + { + input.readMessage( + getDistillationSpecFieldBuilder().getBuilder(), extensionRegistry); + tuningSpecCase_ = 17; + break; + } // case 138 + case 146: + { + pipelineJob_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2392,6 +2564,219 @@ public Builder clearSupervisedTuningSpec() { return supervisedTuningSpecBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DistillationSpec, + com.google.cloud.aiplatform.v1beta1.DistillationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.DistillationSpecOrBuilder> + distillationSpecBuilder_; + /** + * + * + *
+     * Tuning Spec for Distillation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + * + * @return Whether the distillationSpec field is set. + */ + @java.lang.Override + public boolean hasDistillationSpec() { + return tuningSpecCase_ == 17; + } + /** + * + * + *
+     * Tuning Spec for Distillation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + * + * @return The distillationSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationSpec getDistillationSpec() { + if (distillationSpecBuilder_ == null) { + if (tuningSpecCase_ == 17) { + return (com.google.cloud.aiplatform.v1beta1.DistillationSpec) tuningSpec_; + } + return com.google.cloud.aiplatform.v1beta1.DistillationSpec.getDefaultInstance(); + } else { + if (tuningSpecCase_ == 17) { + return distillationSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.DistillationSpec.getDefaultInstance(); + } + } + /** + * + * + *
+     * Tuning Spec for Distillation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + */ + public Builder setDistillationSpec(com.google.cloud.aiplatform.v1beta1.DistillationSpec value) { + if (distillationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tuningSpec_ = value; + onChanged(); + } else { + distillationSpecBuilder_.setMessage(value); + } + tuningSpecCase_ = 17; + return this; + } + /** + * + * + *
+     * Tuning Spec for Distillation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + */ + public Builder setDistillationSpec( + com.google.cloud.aiplatform.v1beta1.DistillationSpec.Builder builderForValue) { + if (distillationSpecBuilder_ == null) { + tuningSpec_ = builderForValue.build(); + onChanged(); + } else { + distillationSpecBuilder_.setMessage(builderForValue.build()); + } + tuningSpecCase_ = 17; + return this; + } + /** + * + * + *
+     * Tuning Spec for Distillation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + */ + public Builder mergeDistillationSpec( + com.google.cloud.aiplatform.v1beta1.DistillationSpec value) { + if (distillationSpecBuilder_ == null) { + if (tuningSpecCase_ == 17 + && tuningSpec_ + != com.google.cloud.aiplatform.v1beta1.DistillationSpec.getDefaultInstance()) { + tuningSpec_ = + com.google.cloud.aiplatform.v1beta1.DistillationSpec.newBuilder( + (com.google.cloud.aiplatform.v1beta1.DistillationSpec) tuningSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + tuningSpec_ = value; + } + onChanged(); + } else { + if (tuningSpecCase_ == 17) { + distillationSpecBuilder_.mergeFrom(value); + } else { + distillationSpecBuilder_.setMessage(value); + } + } + tuningSpecCase_ = 17; + return this; + } + /** + * + * + *
+     * Tuning Spec for Distillation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + */ + public Builder clearDistillationSpec() { + if (distillationSpecBuilder_ == null) { + if (tuningSpecCase_ == 17) { + tuningSpecCase_ = 0; + tuningSpec_ = null; + onChanged(); + } + } else { + if (tuningSpecCase_ == 17) { + tuningSpecCase_ = 0; + tuningSpec_ = null; + } + distillationSpecBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Tuning Spec for Distillation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + */ + public com.google.cloud.aiplatform.v1beta1.DistillationSpec.Builder + getDistillationSpecBuilder() { + return getDistillationSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Tuning Spec for Distillation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DistillationSpecOrBuilder + getDistillationSpecOrBuilder() { + if ((tuningSpecCase_ == 17) && (distillationSpecBuilder_ != null)) { + return distillationSpecBuilder_.getMessageOrBuilder(); + } else { + if (tuningSpecCase_ == 17) { + return (com.google.cloud.aiplatform.v1beta1.DistillationSpec) tuningSpec_; + } + return com.google.cloud.aiplatform.v1beta1.DistillationSpec.getDefaultInstance(); + } + } + /** + * + * + *
+     * Tuning Spec for Distillation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DistillationSpec, + com.google.cloud.aiplatform.v1beta1.DistillationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.DistillationSpecOrBuilder> + getDistillationSpecFieldBuilder() { + if (distillationSpecBuilder_ == null) { + if (!(tuningSpecCase_ == 17)) { + tuningSpec_ = com.google.cloud.aiplatform.v1beta1.DistillationSpec.getDefaultInstance(); + } + distillationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DistillationSpec, + com.google.cloud.aiplatform.v1beta1.DistillationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.DistillationSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.DistillationSpec) tuningSpec_, + getParentForChildren(), + isClean()); + tuningSpec_ = null; + } + tuningSpecCase_ = 17; + onChanged(); + return distillationSpecBuilder_; + } + private java.lang.Object name_ = ""; /** * @@ -2463,7 +2848,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2483,7 +2868,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2508,7 +2893,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2581,7 +2966,7 @@ public Builder setTunedModelDisplayName(java.lang.String value) { throw new NullPointerException(); } tunedModelDisplayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2600,7 +2985,7 @@ public Builder setTunedModelDisplayName(java.lang.String value) { */ public Builder clearTunedModelDisplayName() { tunedModelDisplayName_ = getDefaultInstance().getTunedModelDisplayName(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2624,7 +3009,7 @@ public Builder setTunedModelDisplayNameBytes(com.google.protobuf.ByteString valu } checkByteStringIsUtf8(value); tunedModelDisplayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2694,7 +3079,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2712,7 +3097,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2735,7 +3120,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2774,7 +3159,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2815,7 +3200,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; state_ = value.getNumber(); onChanged(); return this; @@ -2834,7 +3219,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); state_ = 0; onChanged(); return this; @@ -2861,7 +3246,7 @@ public Builder clearState() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2907,7 +3292,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2929,7 +3314,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2947,7 +3332,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -2958,7 +3343,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2976,7 +3361,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2998,7 +3383,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3073,7 +3458,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -3117,7 +3502,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3139,7 +3524,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu } else { startTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3157,7 +3542,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); @@ -3168,7 +3553,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { startTimeBuilder_.mergeFrom(value); } if (startTime_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -3186,7 +3571,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); @@ -3208,7 +3593,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -3281,7 +3666,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3325,7 +3710,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3347,7 +3732,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) } else { endTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3365,7 +3750,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && endTime_ != null && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); @@ -3376,7 +3761,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { endTimeBuilder_.mergeFrom(value); } if (endTime_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -3394,7 +3779,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); @@ -3416,7 +3801,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -3490,7 +3875,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3538,7 +3923,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3561,7 +3946,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3580,7 +3965,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -3591,7 +3976,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -3610,7 +3995,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -3633,7 +4018,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3706,7 +4091,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the error field is set. */ public boolean hasError() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -3746,7 +4131,7 @@ public Builder setError(com.google.rpc.Status value) { } else { errorBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3766,7 +4151,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { } else { errorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3782,7 +4167,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && error_ != null && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); @@ -3793,7 +4178,7 @@ public Builder mergeError(com.google.rpc.Status value) { errorBuilder_.mergeFrom(value); } if (error_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -3809,7 +4194,7 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); @@ -3829,7 +4214,7 @@ public Builder clearError() { * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -3891,7 +4276,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return labels_; } @@ -4012,7 +4397,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -4044,7 +4429,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; return internalGetMutableLabels().getMutableMap(); } /** @@ -4073,7 +4458,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; return this; } /** @@ -4096,7 +4481,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; return this; } @@ -4171,7 +4556,7 @@ public Builder setExperiment(java.lang.String value) { throw new NullPointerException(); } experiment_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4191,7 +4576,7 @@ public Builder setExperiment(java.lang.String value) { */ public Builder clearExperiment() { experiment_ = getDefaultInstance().getExperiment(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -4216,7 +4601,7 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); experiment_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4242,7 +4627,7 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) { * @return Whether the tunedModel field is set. */ public boolean hasTunedModel() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -4288,7 +4673,7 @@ public Builder setTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel valu } else { tunedModelBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4311,7 +4696,7 @@ public Builder setTunedModel( } else { tunedModelBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4329,7 +4714,7 @@ public Builder setTunedModel( */ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel value) { if (tunedModelBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && tunedModel_ != null && tunedModel_ != com.google.cloud.aiplatform.v1beta1.TunedModel.getDefaultInstance()) { getTunedModelBuilder().mergeFrom(value); @@ -4340,7 +4725,7 @@ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel va tunedModelBuilder_.mergeFrom(value); } if (tunedModel_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -4358,7 +4743,7 @@ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel va * */ public Builder clearTunedModel() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); tunedModel_ = null; if (tunedModelBuilder_ != null) { tunedModelBuilder_.dispose(); @@ -4380,7 +4765,7 @@ public Builder clearTunedModel() { * */ public com.google.cloud.aiplatform.v1beta1.TunedModel.Builder getTunedModelBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return getTunedModelFieldBuilder().getBuilder(); } @@ -4455,7 +4840,7 @@ public com.google.cloud.aiplatform.v1beta1.TunedModelOrBuilder getTunedModelOrBu * @return Whether the tuningDataStats field is set. */ public boolean hasTuningDataStats() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -4501,7 +4886,7 @@ public Builder setTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningData } else { tuningDataStatsBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4524,7 +4909,7 @@ public Builder setTuningDataStats( } else { tuningDataStatsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4542,7 +4927,7 @@ public Builder setTuningDataStats( */ public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDataStats value) { if (tuningDataStatsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && tuningDataStats_ != null && tuningDataStats_ != com.google.cloud.aiplatform.v1beta1.TuningDataStats.getDefaultInstance()) { @@ -4554,7 +4939,7 @@ public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDa tuningDataStatsBuilder_.mergeFrom(value); } if (tuningDataStats_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -4572,7 +4957,7 @@ public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDa * */ public Builder clearTuningDataStats() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); tuningDataStats_ = null; if (tuningDataStatsBuilder_ != null) { tuningDataStatsBuilder_.dispose(); @@ -4594,7 +4979,7 @@ public Builder clearTuningDataStats() { * */ public com.google.cloud.aiplatform.v1beta1.TuningDataStats.Builder getTuningDataStatsBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getTuningDataStatsFieldBuilder().getBuilder(); } @@ -4649,6 +5034,132 @@ public com.google.cloud.aiplatform.v1beta1.TuningDataStats.Builder getTuningData return tuningDataStatsBuilder_; } + private java.lang.Object pipelineJob_ = ""; + /** + * + * + *
+     * Output only. The resource name of the PipelineJob associated with the
+     * [TuningJob][google.cloud.aiplatform.v1.TuningJob]. Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`.
+     * 
+ * + * + * string pipeline_job = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The pipelineJob. + */ + public java.lang.String getPipelineJob() { + java.lang.Object ref = pipelineJob_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pipelineJob_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the PipelineJob associated with the
+     * [TuningJob][google.cloud.aiplatform.v1.TuningJob]. Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`.
+     * 
+ * + * + * string pipeline_job = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for pipelineJob. + */ + public com.google.protobuf.ByteString getPipelineJobBytes() { + java.lang.Object ref = pipelineJob_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pipelineJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the PipelineJob associated with the
+     * [TuningJob][google.cloud.aiplatform.v1.TuningJob]. Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`.
+     * 
+ * + * + * string pipeline_job = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The pipelineJob to set. + * @return This builder for chaining. + */ + public Builder setPipelineJob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pipelineJob_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the PipelineJob associated with the
+     * [TuningJob][google.cloud.aiplatform.v1.TuningJob]. Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`.
+     * 
+ * + * + * string pipeline_job = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPipelineJob() { + pipelineJob_ = getDefaultInstance().getPipelineJob(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the PipelineJob associated with the
+     * [TuningJob][google.cloud.aiplatform.v1.TuningJob]. Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`.
+     * 
+ * + * + * string pipeline_job = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for pipelineJob to set. + * @return This builder for chaining. + */ + public Builder setPipelineJobBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pipelineJob_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.EncryptionSpec, @@ -4669,7 +5180,7 @@ public com.google.cloud.aiplatform.v1beta1.TuningDataStats.Builder getTuningData * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -4713,7 +5224,7 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS } else { encryptionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -4735,7 +5246,7 @@ public Builder setEncryptionSpec( } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -4752,7 +5263,7 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00020000) != 0) && encryptionSpec_ != null && encryptionSpec_ != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { @@ -4764,7 +5275,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio encryptionSpecBuilder_.mergeFrom(value); } if (encryptionSpec_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -4781,7 +5292,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 16; */ public Builder clearEncryptionSpec() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00020000); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -4802,7 +5313,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 16; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java index 9157225ed131..103f776fa8cb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java @@ -97,6 +97,41 @@ public interface TuningJobOrBuilder com.google.cloud.aiplatform.v1beta1.SupervisedTuningSpecOrBuilder getSupervisedTuningSpecOrBuilder(); + /** + * + * + *
+   * Tuning Spec for Distillation.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + * + * @return Whether the distillationSpec field is set. + */ + boolean hasDistillationSpec(); + /** + * + * + *
+   * Tuning Spec for Distillation.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + * + * @return The distillationSpec. + */ + com.google.cloud.aiplatform.v1beta1.DistillationSpec getDistillationSpec(); + /** + * + * + *
+   * Tuning Spec for Distillation.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DistillationSpec distillation_spec = 17; + */ + com.google.cloud.aiplatform.v1beta1.DistillationSpecOrBuilder getDistillationSpecOrBuilder(); + /** * * @@ -646,6 +681,39 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.aiplatform.v1beta1.TuningDataStatsOrBuilder getTuningDataStatsOrBuilder(); + /** + * + * + *
+   * Output only. The resource name of the PipelineJob associated with the
+   * [TuningJob][google.cloud.aiplatform.v1.TuningJob]. Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`.
+   * 
+ * + * + * string pipeline_job = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The pipelineJob. + */ + java.lang.String getPipelineJob(); + /** + * + * + *
+   * Output only. The resource name of the PipelineJob associated with the
+   * [TuningJob][google.cloud.aiplatform.v1.TuningJob]. Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`.
+   * 
+ * + * + * string pipeline_job = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for pipelineJob. + */ + com.google.protobuf.ByteString getPipelineJobBytes(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java index 0f4377ac7869..c0f9bde15822 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java @@ -52,6 +52,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_SupervisedTuningDataStats_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_SupervisedTuningDataStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_DistributionBucket_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_DistributionBucket_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DatasetStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DatasetStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DistillationDataStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DistillationDataStats_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_TuningDataStats_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -64,6 +80,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_SupervisedTuningSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_SupervisedTuningSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DistillationSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DistillationSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DistillationHyperParameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DistillationHyperParameters_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -81,10 +105,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "loud/aiplatform/v1beta1/encryption_spec." + "proto\032/google/cloud/aiplatform/v1beta1/j" + "ob_state.proto\032\037google/protobuf/timestam" - + "p.proto\032\027google/rpc/status.proto\"\314\010\n\tTun" + + "p.proto\032\027google/rpc/status.proto\"\341\t\n\tTun" + "ingJob\022\024\n\nbase_model\030\004 \001(\tH\000\022W\n\026supervis" + "ed_tuning_spec\030\005 \001(\01325.google.cloud.aipl" - + "atform.v1beta1.SupervisedTuningSpecH\001\022\024\n" + + "atform.v1beta1.SupervisedTuningSpecH\001\022N\n" + + "\021distillation_spec\030\021 \001(\01321.google.cloud." + + "aiplatform.v1beta1.DistillationSpecH\001\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022%\n\030tuned_model_displ" + "ay_name\030\002 \001(\tB\003\340A\001\022\030\n\013description\030\003 \001(\tB" + "\003\340A\001\022=\n\005state\030\006 \001(\0162).google.cloud.aipla" @@ -102,64 +128,112 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "2+.google.cloud.aiplatform.v1beta1.Tuned" + "ModelB\003\340A\003\022P\n\021tuning_data_stats\030\017 \001(\01320." + "google.cloud.aiplatform.v1beta1.TuningDa" - + "taStatsB\003\340A\003\022H\n\017encryption_spec\030\020 \001(\0132/." - + "google.cloud.aiplatform.v1beta1.Encrypti" - + "onSpec\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:\200\001\352A}\n#aiplatform.googleap" - + "is.com/TuningJob\022?projects/{project}/loc" - + "ations/{location}/tuningJobs/{tuning_job" - + "}*\ntuningJobs2\ttuningJobB\016\n\014source_model" - + "B\r\n\013tuning_spec\"\202\001\n\nTunedModel\0226\n\005model\030" - + "\001 \001(\tB\'\340A\003\372A!\n\037aiplatform.googleapis.com" - + "/Model\022<\n\010endpoint\030\002 \001(\tB*\340A\003\372A$\n\"aiplat" - + "form.googleapis.com/Endpoint\"\334\002\n#Supervi" - + "sedTuningDatasetDistribution\022\020\n\003sum\030\001 \001(" - + "\003B\003\340A\003\022\020\n\003min\030\002 \001(\001B\003\340A\003\022\020\n\003max\030\003 \001(\001B\003\340" - + "A\003\022\021\n\004mean\030\004 \001(\001B\003\340A\003\022\023\n\006median\030\005 \001(\001B\003\340" - + "A\003\022\017\n\002p5\030\006 \001(\001B\003\340A\003\022\020\n\003p95\030\007 \001(\001B\003\340A\003\022h\n" - + "\007buckets\030\010 \003(\0132R.google.cloud.aiplatform" - + ".v1beta1.SupervisedTuningDatasetDistribu" - + "tion.DatasetBucketB\003\340A\003\032J\n\rDatasetBucket" - + "\022\022\n\005count\030\001 \001(\001B\003\340A\003\022\021\n\004left\030\002 \001(\001B\003\340A\003\022" - + "\022\n\005right\030\003 \001(\001B\003\340A\003\"\353\004\n\031SupervisedTuning" - + "DataStats\022)\n\034tuning_dataset_example_coun" - + "t\030\001 \001(\003B\003\340A\003\022)\n\034total_tuning_character_c" - + "ount\030\002 \001(\003B\003\340A\003\022+\n\036total_billable_charac" - + "ter_count\030\003 \001(\003B\003\340A\003\022\036\n\021tuning_step_coun" - + "t\030\004 \001(\003B\003\340A\003\022p\n\035user_input_token_distrib" - + "ution\030\005 \001(\0132D.google.cloud.aiplatform.v1" - + "beta1.SupervisedTuningDatasetDistributio" - + "nB\003\340A\003\022q\n\036user_output_token_distribution" - + "\030\006 \001(\0132D.google.cloud.aiplatform.v1beta1" - + ".SupervisedTuningDatasetDistributionB\003\340A" - + "\003\022x\n%user_message_per_example_distributi" - + "on\030\007 \001(\0132D.google.cloud.aiplatform.v1bet" - + "a1.SupervisedTuningDatasetDistributionB\003" - + "\340A\003\022L\n\025user_dataset_examples\030\010 \003(\0132(.goo" - + "gle.cloud.aiplatform.v1beta1.ContentB\003\340A" - + "\003\"\212\001\n\017TuningDataStats\022b\n\034supervised_tuni" - + "ng_data_stats\030\001 \001(\0132:.google.cloud.aipla" - + "tform.v1beta1.SupervisedTuningDataStatsH" - + "\000B\023\n\021tuning_data_stats\"\314\002\n\031SupervisedHyp" - + "erParameters\022\030\n\013epoch_count\030\001 \001(\003B\003\340A\001\022%" - + "\n\030learning_rate_multiplier\030\002 \001(\001B\003\340A\001\022a\n" - + "\014adapter_size\030\003 \001(\0162F.google.cloud.aipla" - + "tform.v1beta1.SupervisedHyperParameters." - + "AdapterSizeB\003\340A\001\"\212\001\n\013AdapterSize\022\034\n\030ADAP" - + "TER_SIZE_UNSPECIFIED\020\000\022\024\n\020ADAPTER_SIZE_O" - + "NE\020\001\022\025\n\021ADAPTER_SIZE_FOUR\020\002\022\026\n\022ADAPTER_S" - + "IZE_EIGHT\020\003\022\030\n\024ADAPTER_SIZE_SIXTEEN\020\004\"\271\001" - + "\n\024SupervisedTuningSpec\022!\n\024training_datas" - + "et_uri\030\001 \001(\tB\003\340A\002\022#\n\026validation_dataset_" - + "uri\030\002 \001(\tB\003\340A\001\022Y\n\020hyper_parameters\030\003 \001(\013" - + "2:.google.cloud.aiplatform.v1beta1.Super" - + "visedHyperParametersB\003\340A\001B\345\001\n#com.google" - + ".cloud.aiplatform.v1beta1B\016TuningJobProt" - + "oP\001ZCcloud.google.com/go/aiplatform/apiv" - + "1beta1/aiplatformpb;aiplatformpb\252\002\037Googl" - + "e.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clou" - + "d\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AI" - + "Platform::V1beta1b\006proto3" + + "taStatsB\003\340A\003\022C\n\014pipeline_job\030\022 \001(\tB-\340A\003\372" + + "A\'\n%aiplatform.googleapis.com/PipelineJo" + + "b\022H\n\017encryption_spec\030\020 \001(\0132/.google.clou" + + "d.aiplatform.v1beta1.EncryptionSpec\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001:\200\001\352A}\n#aiplatform.googleapis.com/Tuni" + + "ngJob\022?projects/{project}/locations/{loc" + + "ation}/tuningJobs/{tuning_job}*\ntuningJo" + + "bs2\ttuningJobB\016\n\014source_modelB\r\n\013tuning_" + + "spec\"\202\001\n\nTunedModel\0226\n\005model\030\001 \001(\tB\'\340A\003\372" + + "A!\n\037aiplatform.googleapis.com/Model\022<\n\010e" + + "ndpoint\030\002 \001(\tB*\340A\003\372A$\n\"aiplatform.google" + + "apis.com/Endpoint\"\367\002\n#SupervisedTuningDa" + + "tasetDistribution\022\020\n\003sum\030\001 \001(\003B\003\340A\003\022\031\n\014b" + + "illable_sum\030\t \001(\003B\003\340A\003\022\020\n\003min\030\002 \001(\001B\003\340A\003" + + "\022\020\n\003max\030\003 \001(\001B\003\340A\003\022\021\n\004mean\030\004 \001(\001B\003\340A\003\022\023\n" + + "\006median\030\005 \001(\001B\003\340A\003\022\017\n\002p5\030\006 \001(\001B\003\340A\003\022\020\n\003p" + + "95\030\007 \001(\001B\003\340A\003\022h\n\007buckets\030\010 \003(\0132R.google." + + "cloud.aiplatform.v1beta1.SupervisedTunin" + + "gDatasetDistribution.DatasetBucketB\003\340A\003\032" + + "J\n\rDatasetBucket\022\022\n\005count\030\001 \001(\001B\003\340A\003\022\021\n\004" + + "left\030\002 \001(\001B\003\340A\003\022\022\n\005right\030\003 \001(\001B\003\340A\003\"\226\005\n\031" + + "SupervisedTuningDataStats\022)\n\034tuning_data" + + "set_example_count\030\001 \001(\003B\003\340A\003\022)\n\034total_tu" + + "ning_character_count\030\002 \001(\003B\003\340A\003\022-\n\036total" + + "_billable_character_count\030\003 \001(\003B\005\030\001\340A\003\022\'" + + "\n\032total_billable_token_count\030\t \001(\003B\003\340A\003\022" + + "\036\n\021tuning_step_count\030\004 \001(\003B\003\340A\003\022p\n\035user_" + + "input_token_distribution\030\005 \001(\0132D.google." + + "cloud.aiplatform.v1beta1.SupervisedTunin" + + "gDatasetDistributionB\003\340A\003\022q\n\036user_output" + + "_token_distribution\030\006 \001(\0132D.google.cloud" + + ".aiplatform.v1beta1.SupervisedTuningData" + + "setDistributionB\003\340A\003\022x\n%user_message_per" + + "_example_distribution\030\007 \001(\0132D.google.clo" + + "ud.aiplatform.v1beta1.SupervisedTuningDa" + + "tasetDistributionB\003\340A\003\022L\n\025user_dataset_e" + + "xamples\030\010 \003(\0132(.google.cloud.aiplatform." + + "v1beta1.ContentB\003\340A\003\"\306\002\n\023DatasetDistribu" + + "tion\022\020\n\003sum\030\001 \001(\001B\003\340A\003\022\020\n\003min\030\002 \001(\001B\003\340A\003" + + "\022\020\n\003max\030\003 \001(\001B\003\340A\003\022\021\n\004mean\030\004 \001(\001B\003\340A\003\022\023\n" + + "\006median\030\005 \001(\001B\003\340A\003\022\017\n\002p5\030\006 \001(\001B\003\340A\003\022\020\n\003p" + + "95\030\007 \001(\001B\003\340A\003\022]\n\007buckets\030\010 \003(\0132G.google." + + "cloud.aiplatform.v1beta1.DatasetDistribu" + + "tion.DistributionBucketB\003\340A\003\032O\n\022Distribu" + + "tionBucket\022\022\n\005count\030\001 \001(\003B\003\340A\003\022\021\n\004left\030\002" + + " \001(\001B\003\340A\003\022\022\n\005right\030\003 \001(\001B\003\340A\003\"\326\004\n\014Datase" + + "tStats\022)\n\034tuning_dataset_example_count\030\001" + + " \001(\003B\003\340A\003\022)\n\034total_tuning_character_coun" + + "t\030\002 \001(\003B\003\340A\003\022+\n\036total_billable_character" + + "_count\030\003 \001(\003B\003\340A\003\022\036\n\021tuning_step_count\030\004" + + " \001(\003B\003\340A\003\022`\n\035user_input_token_distributi" + + "on\030\005 \001(\01324.google.cloud.aiplatform.v1bet" + + "a1.DatasetDistributionB\003\340A\003\022f\n\036user_outp" + + "ut_token_distribution\030\006 \001(\01324.google.clo" + + "ud.aiplatform.v1beta1.DatasetDistributio" + + "nB\003\340A\003H\000\210\001\001\022h\n%user_message_per_example_" + + "distribution\030\007 \001(\01324.google.cloud.aiplat" + + "form.v1beta1.DatasetDistributionB\003\340A\003\022L\n" + + "\025user_dataset_examples\030\010 \003(\0132(.google.cl" + + "oud.aiplatform.v1beta1.ContentB\003\340A\003B!\n\037_" + + "user_output_token_distribution\"k\n\025Distil" + + "lationDataStats\022R\n\026training_dataset_stat" + + "s\030\001 \001(\0132-.google.cloud.aiplatform.v1beta" + + "1.DatasetStatsB\003\340A\003\"\352\001\n\017TuningDataStats\022" + + "b\n\034supervised_tuning_data_stats\030\001 \001(\0132:." + + "google.cloud.aiplatform.v1beta1.Supervis" + + "edTuningDataStatsH\000\022^\n\027distillation_data" + + "_stats\030\003 \001(\01326.google.cloud.aiplatform.v" + + "1beta1.DistillationDataStatsB\003\340A\003H\000B\023\n\021t" + + "uning_data_stats\"\314\002\n\031SupervisedHyperPara" + + "meters\022\030\n\013epoch_count\030\001 \001(\003B\003\340A\001\022%\n\030lear" + + "ning_rate_multiplier\030\002 \001(\001B\003\340A\001\022a\n\014adapt" + + "er_size\030\003 \001(\0162F.google.cloud.aiplatform." + + "v1beta1.SupervisedHyperParameters.Adapte" + + "rSizeB\003\340A\001\"\212\001\n\013AdapterSize\022\034\n\030ADAPTER_SI" + + "ZE_UNSPECIFIED\020\000\022\024\n\020ADAPTER_SIZE_ONE\020\001\022\025" + + "\n\021ADAPTER_SIZE_FOUR\020\002\022\026\n\022ADAPTER_SIZE_EI" + + "GHT\020\003\022\030\n\024ADAPTER_SIZE_SIXTEEN\020\004\"\271\001\n\024Supe" + + "rvisedTuningSpec\022!\n\024training_dataset_uri" + + "\030\001 \001(\tB\003\340A\002\022#\n\026validation_dataset_uri\030\002 " + + "\001(\tB\003\340A\001\022Y\n\020hyper_parameters\030\003 \001(\0132:.goo" + + "gle.cloud.aiplatform.v1beta1.SupervisedH" + + "yperParametersB\003\340A\001\"\217\003\n\020DistillationSpec" + + "\022\034\n\022base_teacher_model\030\005 \001(\tH\000\022J\n\032tuned_" + + "teacher_model_source\030\006 \001(\tB$\372A!\n\037aiplatf" + + "orm.googleapis.com/ModelH\000\022!\n\024training_d" + + "ataset_uri\030\001 \001(\tB\003\340A\002\022(\n\026validation_data" + + "set_uri\030\002 \001(\tB\003\340A\001H\001\210\001\001\022[\n\020hyper_paramet" + + "ers\030\003 \001(\0132<.google.cloud.aiplatform.v1be" + + "ta1.DistillationHyperParametersB\003\340A\001\022\025\n\r" + + "student_model\030\004 \001(\t\022$\n\027pipeline_root_dir" + + "ectory\030\007 \001(\tB\003\340A\002B\017\n\rteacher_modelB\031\n\027_v" + + "alidation_dataset_uri\"\370\001\n\033DistillationHy" + + "perParameters\022\035\n\013epoch_count\030\001 \001(\003B\003\340A\001H" + + "\000\210\001\001\022*\n\030learning_rate_multiplier\030\002 \001(\001B\003" + + "\340A\001H\001\210\001\001\022a\n\014adapter_size\030\003 \001(\0162F.google." + + "cloud.aiplatform.v1beta1.SupervisedHyper" + + "Parameters.AdapterSizeB\003\340A\001B\016\n\014_epoch_co" + + "untB\033\n\031_learning_rate_multiplierB\345\001\n#com" + + ".google.cloud.aiplatform.v1beta1B\016Tuning" + + "JobProtoP\001ZCcloud.google.com/go/aiplatfo" + + "rm/apiv1beta1/aiplatformpb;aiplatformpb\252" + + "\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goog" + + "le\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cl" + + "oud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -181,6 +255,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "BaseModel", "SupervisedTuningSpec", + "DistillationSpec", "Name", "TunedModelDisplayName", "Description", @@ -194,6 +269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Experiment", "TunedModel", "TuningDataStats", + "PipelineJob", "EncryptionSpec", "SourceModel", "TuningSpec", @@ -222,7 +298,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SupervisedTuningDatasetDistribution_descriptor, new java.lang.String[] { - "Sum", "Min", "Max", "Mean", "Median", "P5", "P95", "Buckets", + "Sum", "BillableSum", "Min", "Max", "Mean", "Median", "P5", "P95", "Buckets", }); internal_static_google_cloud_aiplatform_v1beta1_SupervisedTuningDatasetDistribution_DatasetBucket_descriptor = internal_static_google_cloud_aiplatform_v1beta1_SupervisedTuningDatasetDistribution_descriptor @@ -243,22 +319,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TuningDatasetExampleCount", "TotalTuningCharacterCount", "TotalBillableCharacterCount", + "TotalBillableTokenCount", "TuningStepCount", "UserInputTokenDistribution", "UserOutputTokenDistribution", "UserMessagePerExampleDistribution", "UserDatasetExamples", }); - internal_static_google_cloud_aiplatform_v1beta1_TuningDataStats_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_descriptor, + new java.lang.String[] { + "Sum", "Min", "Max", "Mean", "Median", "P5", "P95", "Buckets", + }); + internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_DistributionBucket_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_DistributionBucket_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_DistributionBucket_descriptor, + new java.lang.String[] { + "Count", "Left", "Right", + }); + internal_static_google_cloud_aiplatform_v1beta1_DatasetStats_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1beta1_DatasetStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DatasetStats_descriptor, + new java.lang.String[] { + "TuningDatasetExampleCount", + "TotalTuningCharacterCount", + "TotalBillableCharacterCount", + "TuningStepCount", + "UserInputTokenDistribution", + "UserOutputTokenDistribution", + "UserMessagePerExampleDistribution", + "UserDatasetExamples", + }); + internal_static_google_cloud_aiplatform_v1beta1_DistillationDataStats_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1beta1_DistillationDataStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DistillationDataStats_descriptor, + new java.lang.String[] { + "TrainingDatasetStats", + }); + internal_static_google_cloud_aiplatform_v1beta1_TuningDataStats_descriptor = + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1beta1_TuningDataStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_TuningDataStats_descriptor, new java.lang.String[] { - "SupervisedTuningDataStats", "TuningDataStats", + "SupervisedTuningDataStats", "DistillationDataStats", "TuningDataStats", }); internal_static_google_cloud_aiplatform_v1beta1_SupervisedHyperParameters_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1beta1_SupervisedHyperParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SupervisedHyperParameters_descriptor, @@ -266,13 +384,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EpochCount", "LearningRateMultiplier", "AdapterSize", }); internal_static_google_cloud_aiplatform_v1beta1_SupervisedTuningSpec_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_aiplatform_v1beta1_SupervisedTuningSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SupervisedTuningSpec_descriptor, new java.lang.String[] { "TrainingDatasetUri", "ValidationDatasetUri", "HyperParameters", }); + internal_static_google_cloud_aiplatform_v1beta1_DistillationSpec_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_aiplatform_v1beta1_DistillationSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DistillationSpec_descriptor, + new java.lang.String[] { + "BaseTeacherModel", + "TunedTeacherModelSource", + "TrainingDatasetUri", + "ValidationDatasetUri", + "HyperParameters", + "StudentModel", + "PipelineRootDirectory", + "TeacherModel", + }); + internal_static_google_cloud_aiplatform_v1beta1_DistillationHyperParameters_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_aiplatform_v1beta1_DistillationHyperParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DistillationHyperParameters_descriptor, + new java.lang.String[] { + "EpochCount", "LearningRateMultiplier", "AdapterSize", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureGroupRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureGroupRequest.java index 804e7ab340e0..8385cffc5f3f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureGroupRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureGroupRequest.java @@ -142,6 +142,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureGroupOrBuilder getFeatureGroup * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -167,6 +170,9 @@ public boolean hasUpdateMask() { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -192,6 +198,9 @@ public com.google.protobuf.FieldMask getUpdateMask() { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -845,6 +854,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureGroupOrBuilder getFeatureGroup * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -869,6 +881,9 @@ public boolean hasUpdateMask() { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -899,6 +914,9 @@ public com.google.protobuf.FieldMask getUpdateMask() { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -931,6 +949,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -960,6 +981,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -997,6 +1021,9 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1026,6 +1053,9 @@ public Builder clearUpdateMask() { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1050,6 +1080,9 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1078,6 +1111,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureGroupRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureGroupRequestOrBuilder.java index 81ae7c8a3cd1..32cd39db39b8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureGroupRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureGroupRequestOrBuilder.java @@ -86,6 +86,9 @@ public interface UpdateFeatureGroupRequestOrBuilder * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -108,6 +111,9 @@ public interface UpdateFeatureGroupRequestOrBuilder * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; @@ -130,6 +136,9 @@ public interface UpdateFeatureGroupRequestOrBuilder * Updatable fields: * * * `labels` + * * `description` + * * `big_query` + * * `big_query.entity_id_columns` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureOnlineStoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureOnlineStoreRequest.java index 8c00c6c11fbf..8b05dee172e4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureOnlineStoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureOnlineStoreRequest.java @@ -143,10 +143,11 @@ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore getFeatureOnlineSt * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -171,10 +172,11 @@ public boolean hasUpdateMask() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -199,10 +201,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -867,10 +870,11 @@ public Builder clearFeatureOnlineStore() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -894,10 +898,11 @@ public boolean hasUpdateMask() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -927,10 +932,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -962,10 +968,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -994,10 +1001,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1034,10 +1042,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1066,10 +1075,11 @@ public Builder clearUpdateMask() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1093,10 +1103,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1124,10 +1135,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureOnlineStoreRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureOnlineStoreRequestOrBuilder.java index 318d66bdf74b..70ea0db92fa4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureOnlineStoreRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureOnlineStoreRequestOrBuilder.java @@ -85,10 +85,11 @@ public interface UpdateFeatureOnlineStoreRequestOrBuilder * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -110,10 +111,11 @@ public interface UpdateFeatureOnlineStoreRequestOrBuilder * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; @@ -135,10 +137,11 @@ public interface UpdateFeatureOnlineStoreRequestOrBuilder * * Updatable fields: * - * * `big_query_source` - * * `bigtable` * * `labels` - * * `sync_config` + * * `description` + * * `bigtable` + * * `bigtable.auto_scaling` + * * `bigtable.enable_multi_region_replica` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java index 78d41fdc46d5..8a20194c3419 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java @@ -151,7 +151,8 @@ public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeatureOrBuilder( * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -178,7 +179,8 @@ public boolean hasUpdateMask() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -205,7 +207,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -874,7 +877,8 @@ public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeatureOrBuilder( * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -900,7 +904,8 @@ public boolean hasUpdateMask() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -932,7 +937,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -966,7 +972,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -997,7 +1004,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -1036,7 +1044,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -1067,7 +1076,8 @@ public Builder clearUpdateMask() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -1093,7 +1103,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -1123,7 +1134,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequestOrBuilder.java index 7faedce87990..4796f89c1420 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequestOrBuilder.java @@ -93,7 +93,8 @@ public interface UpdateFeatureRequestOrBuilder * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -117,7 +118,8 @@ public interface UpdateFeatureRequestOrBuilder * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; @@ -141,7 +143,8 @@ public interface UpdateFeatureRequestOrBuilder * * * `description` * * `labels` - * * `disable_monitoring` (Not supported for FeatureRegistry Feature) + * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + * * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureViewRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureViewRequest.java index eede66ffa726..d8fde74fa965 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureViewRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureViewRequest.java @@ -142,7 +142,14 @@ public com.google.cloud.aiplatform.v1beta1.FeatureViewOrBuilder getFeatureViewOr * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -168,7 +175,14 @@ public boolean hasUpdateMask() { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -194,7 +208,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -848,7 +869,14 @@ public com.google.cloud.aiplatform.v1beta1.FeatureViewOrBuilder getFeatureViewOr * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -873,7 +901,14 @@ public boolean hasUpdateMask() { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -904,7 +939,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -937,7 +979,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -967,7 +1016,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1005,7 +1061,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1035,7 +1098,14 @@ public Builder clearUpdateMask() { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1060,7 +1130,14 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1089,7 +1166,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureViewRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureViewRequestOrBuilder.java index 40dc72dc4395..dd5fc44a512e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureViewRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureViewRequestOrBuilder.java @@ -86,7 +86,14 @@ public interface UpdateFeatureViewRequestOrBuilder * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -109,7 +116,14 @@ public interface UpdateFeatureViewRequestOrBuilder * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; @@ -132,7 +146,14 @@ public interface UpdateFeatureViewRequestOrBuilder * Updatable fields: * * * `labels` - * * `serviceAgentType` + * * `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` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java index 98914aa67717..8642f8f6e4eb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java @@ -89,46 +89,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rotobuf.TimestampB\003\340A\003:\200\001\352A}\n#aiplatform" + ".googleapis.com/RagCorpus\022?projects/{pro" + "ject}/locations/{location}/ragCorpora/{r" - + "ag_corpus}*\nragCorpora2\tragCorpus\"\242\006\n\007Ra" + + "ag_corpus}*\nragCorpora2\tragCorpus\"\254\007\n\007Ra" + "gFile\022E\n\ngcs_source\030\010 \001(\0132*.google.cloud" + ".aiplatform.v1beta1.GcsSourceB\003\340A\003H\000\022V\n\023" + "google_drive_source\030\t \001(\01322.google.cloud" + ".aiplatform.v1beta1.GoogleDriveSourceB\003\340" + "A\003H\000\022X\n\024direct_upload_source\030\n \001(\01323.goo" + "gle.cloud.aiplatform.v1beta1.DirectUploa" - + "dSourceB\003\340A\003H\000\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014dis" - + "play_name\030\002 \001(\tB\003\340A\002\022\030\n\013description\030\003 \001(" - + "\tB\003\340A\001\022\027\n\nsize_bytes\030\004 \001(\003B\003\340A\003\022P\n\rrag_f" - + "ile_type\030\005 \001(\01624.google.cloud.aiplatform" - + ".v1beta1.RagFile.RagFileTypeB\003\340A\003\0224\n\013cre" - + "ate_time\030\006 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\"Z\n\013RagFileType\022\035\n\031" - + "RAG_FILE_TYPE_UNSPECIFIED\020\000\022\025\n\021RAG_FILE_" - + "TYPE_TXT\020\001\022\025\n\021RAG_FILE_TYPE_PDF\020\002:\217\001\352A\213\001" - + "\n!aiplatform.googleapis.com/RagFile\022Spro" - + "jects/{project}/locations/{location}/rag" - + "Corpora/{rag_corpus}/ragFiles/{rag_file}" - + "*\010ragFiles2\007ragFileB\021\n\017rag_file_source\"B" - + "\n\025RagFileChunkingConfig\022\022\n\nchunk_size\030\001 " - + "\001(\005\022\025\n\rchunk_overlap\030\002 \001(\005\"o\n\023UploadRagF" - + "ileConfig\022X\n\030rag_file_chunking_config\030\001 " - + "\001(\01326.google.cloud.aiplatform.v1beta1.Ra" - + "gFileChunkingConfig\"\303\002\n\024ImportRagFilesCo" - + "nfig\022@\n\ngcs_source\030\002 \001(\0132*.google.cloud." - + "aiplatform.v1beta1.GcsSourceH\000\022Q\n\023google" - + "_drive_source\030\003 \001(\01322.google.cloud.aipla" - + "tform.v1beta1.GoogleDriveSourceH\000\022X\n\030rag" - + "_file_chunking_config\030\004 \001(\01326.google.clo" - + "ud.aiplatform.v1beta1.RagFileChunkingCon" - + "fig\022+\n\036max_embedding_requests_per_min\030\005 " - + "\001(\005B\003\340A\001B\017\n\rimport_sourceB\351\001\n#com.google" - + ".cloud.aiplatform.v1beta1B\022VertexRagData" - + "ProtoP\001ZCcloud.google.com/go/aiplatform/" - + "apiv1beta1/aiplatformpb;aiplatformpb\252\002\037G" - + "oogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\" - + "Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud" - + "::AIPlatform::V1beta1b\006proto3" + + "dSourceB\003\340A\003H\000\022D\n\014slack_source\030\013 \001(\0132,.g" + + "oogle.cloud.aiplatform.v1beta1.SlackSour" + + "ceH\000\022B\n\013jira_source\030\014 \001(\0132+.google.cloud" + + ".aiplatform.v1beta1.JiraSourceH\000\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\030" + + "\n\013description\030\003 \001(\tB\003\340A\001\022\027\n\nsize_bytes\030\004" + + " \001(\003B\003\340A\003\022P\n\rrag_file_type\030\005 \001(\01624.googl" + + "e.cloud.aiplatform.v1beta1.RagFile.RagFi" + + "leTypeB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" + + "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"" + + "Z\n\013RagFileType\022\035\n\031RAG_FILE_TYPE_UNSPECIF" + + "IED\020\000\022\025\n\021RAG_FILE_TYPE_TXT\020\001\022\025\n\021RAG_FILE" + + "_TYPE_PDF\020\002:\217\001\352A\213\001\n!aiplatform.googleapi" + + "s.com/RagFile\022Sprojects/{project}/locati" + + "ons/{location}/ragCorpora/{rag_corpus}/r" + + "agFiles/{rag_file}*\010ragFiles2\007ragFileB\021\n" + + "\017rag_file_source\"B\n\025RagFileChunkingConfi" + + "g\022\022\n\nchunk_size\030\001 \001(\005\022\025\n\rchunk_overlap\030\002" + + " \001(\005\"o\n\023UploadRagFileConfig\022X\n\030rag_file_" + + "chunking_config\030\001 \001(\01326.google.cloud.aip" + + "latform.v1beta1.RagFileChunkingConfig\"\315\003" + + "\n\024ImportRagFilesConfig\022@\n\ngcs_source\030\002 \001" + + "(\0132*.google.cloud.aiplatform.v1beta1.Gcs" + + "SourceH\000\022Q\n\023google_drive_source\030\003 \001(\01322." + + "google.cloud.aiplatform.v1beta1.GoogleDr" + + "iveSourceH\000\022D\n\014slack_source\030\006 \001(\0132,.goog" + + "le.cloud.aiplatform.v1beta1.SlackSourceH" + + "\000\022B\n\013jira_source\030\007 \001(\0132+.google.cloud.ai" + + "platform.v1beta1.JiraSourceH\000\022X\n\030rag_fil" + + "e_chunking_config\030\004 \001(\01326.google.cloud.a" + + "iplatform.v1beta1.RagFileChunkingConfig\022" + + "+\n\036max_embedding_requests_per_min\030\005 \001(\005B" + + "\003\340A\001B\017\n\rimport_sourceB\351\001\n#com.google.clo" + + "ud.aiplatform.v1beta1B\022VertexRagDataProt" + + "oP\001ZCcloud.google.com/go/aiplatform/apiv" + + "1beta1/aiplatformpb;aiplatformpb\252\002\037Googl" + + "e.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clou" + + "d\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AI" + + "Platform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -179,6 +186,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsSource", "GoogleDriveSource", "DirectUploadSource", + "SlackSource", + "JiraSource", "Name", "DisplayName", "Description", @@ -212,6 +221,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "GcsSource", "GoogleDriveSource", + "SlackSource", + "JiraSource", "RagFileChunkingConfig", "MaxEmbeddingRequestsPerMin", "ImportSource", diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java index a794ab25da3d..df33d06c7828 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java @@ -1112,7 +1112,7 @@ public com.google.protobuf.Parser getParserForType() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -1131,7 +1131,7 @@ public com.google.protobuf.ProtocolStringList getRagCorporaList() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -1150,7 +1150,7 @@ public int getRagCorporaCount() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -1170,7 +1170,7 @@ public java.lang.String getRagCorpora(int index) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -1861,7 +1861,7 @@ private void ensureRagCorporaIsMutable() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -1881,7 +1881,7 @@ public com.google.protobuf.ProtocolStringList getRagCorporaList() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -1900,7 +1900,7 @@ public int getRagCorporaCount() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -1920,7 +1920,7 @@ public java.lang.String getRagCorpora(int index) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -1940,7 +1940,7 @@ public com.google.protobuf.ByteString getRagCorporaBytes(int index) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @param index The index to set the value at. * @param value The ragCorpora to set. * @return This builder for chaining. @@ -1968,7 +1968,7 @@ public Builder setRagCorpora(int index, java.lang.String value) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @param value The ragCorpora to add. * @return This builder for chaining. */ @@ -1995,7 +1995,7 @@ public Builder addRagCorpora(java.lang.String value) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @param values The ragCorpora to add. * @return This builder for chaining. */ @@ -2019,7 +2019,7 @@ public Builder addAllRagCorpora(java.lang.Iterable values) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2042,7 +2042,7 @@ public Builder clearRagCorpora() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @param value The bytes of the ragCorpora to add. * @return This builder for chaining. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java index 758cca65de52..d02e7fcdf91e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java @@ -36,7 +36,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -70,7 +70,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -88,7 +88,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=202 + * google/cloud/aiplatform/v1beta1/tool.proto;l=201 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto index c617d9491a07..6ae4818b4d23 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto @@ -30,7 +30,7 @@ enum AcceleratorType { ACCELERATOR_TYPE_UNSPECIFIED = 0; // Nvidia Tesla K80 GPU. - NVIDIA_TESLA_K80 = 1; + NVIDIA_TESLA_K80 = 1 [deprecated = true]; // Nvidia Tesla P100 GPU. NVIDIA_TESLA_P100 = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/api_auth.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/api_auth.proto new file mode 100644 index 000000000000..e99b01472683 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/api_auth.proto @@ -0,0 +1,43 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "ApiAuthProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// The generic reusable api auth config. +message ApiAuth { + // The API secret. + message ApiKeyConfig { + // Required. The SecretManager secret version resource name storing API key. + // e.g. projects/{project}/secrets/{secret}/versions/{version} + string api_key_secret_version = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto index 0e7d1edf8aab..514e8ff24ddc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto @@ -474,4 +474,10 @@ message BatchPredictionJob { // // User can disable container logging by setting this flag to true. bool disable_container_logging = 34; + + // Output only. Reserved for future use. + bool satisfies_pzs = 36 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/cached_content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/cached_content.proto index b57cdea1af7b..922799d7ea9f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/cached_content.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/cached_content.proto @@ -62,6 +62,13 @@ message CachedContent { (google.api.field_behavior) = IMMUTABLE ]; + // Optional. Immutable. The user-generated meaningful display name of the + // cached content. + string display_name = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + // Immutable. The name of the publisher model to use for cached content. // Format: // projects/{project}/locations/{location}/publishers/{publisher}/models/{model} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto index 42474266bd52..aeed90cc78a5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -351,6 +351,22 @@ message PythonPackageSpec { // All parameters related to queuing and scheduling of custom jobs. message Scheduling { + // Optional. This determines which type of scheduling strategy to use. Right + // now users have two options such as ON_DEMAND which will use regular on + // demand resources to schedule the job, the other is LOW_COST which would + // leverage spot resources alongwith regular resources to schedule + // the job. + enum Strategy { + // Strategy will default to ON_DEMAND. + STRATEGY_UNSPECIFIED = 0; + + // Regular on-demand provisioning strategy. + ON_DEMAND = 1; + + // Low cost by making potential use of spot resources. + LOW_COST = 2; + } + // The maximum job running time. The default is 7 days. google.protobuf.Duration timeout = 1; @@ -359,6 +375,9 @@ message Scheduling { // resilient to workers leaving and joining a job. bool restart_job_on_worker_restart = 3; + // Optional. This determines which type of scheduling strategy to use. + Strategy strategy = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Indicates if the job should retry for internal errors after the // job starts running. If true, overrides // `Scheduling.restart_job_on_worker_restart` to false. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_item.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_item.proto index 50dbad174863..f59f0a4ff1b0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_item.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_item.proto @@ -71,4 +71,10 @@ message DataItem { // Optional. Used to perform consistent read-modify-write updates. If not set, // a blind "overwrite" update happens. string etag = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto index 640759a4b6b2..ac0d59911556 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto @@ -39,8 +39,11 @@ message Dataset { pattern: "projects/{project}/locations/{location}/datasets/{dataset}" }; - // Output only. The resource name of the Dataset. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Identifier. The resource name of the Dataset. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; // Required. The user-defined name of the Dataset. // The name can be up to 128 characters long and can consist of any UTF-8 @@ -115,6 +118,12 @@ message Dataset { // Optional. Reference to the public base model last used by the dataset. Only // set for prompt datasets. string model_reference = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Describes the location from where we import data into a Dataset, together diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto index 11c2a6e5f0e6..b3e9a2242ec6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto @@ -36,8 +36,11 @@ message DatasetVersion { pattern: "projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}" }; - // Output only. The resource name of the DatasetVersion. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Identifier. The resource name of the DatasetVersion. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; // Output only. Timestamp when this DatasetVersion was created. google.protobuf.Timestamp create_time = 2 @@ -68,4 +71,10 @@ message DatasetVersion { // Output only. Reference to the public base model last used by the dataset // version. Only set for prompt dataset versions. string model_reference = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto index ecd781a215ce..cdc101dc8eac 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto @@ -74,4 +74,10 @@ message DeploymentResourcePool { // Output only. Timestamp when this DeploymentResourcePool was created. google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto index 785d8a577393..c0110653d84a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto @@ -150,6 +150,28 @@ message Endpoint { // Configures the request-response logging for online prediction. PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + + // If true, the endpoint will be exposed through a dedicated + // DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS + // will be isolated from other users' traffic and will have better performance + // and reliability. + // Note: Once you enabled dedicated endpoint, you won't be able to send + // request to the shared DNS {region}-aiplatform.googleapis.com. The + // limitation will be removed soon. + bool dedicated_endpoint_enabled = 24; + + // Output only. DNS of the dedicated endpoint. Will only be populated if + // dedicated_endpoint_enabled is true. + // Format: + // `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`. + string dedicated_endpoint_dns = 25 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A deployment of a Model. Endpoints contain one or more DeployedModels. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto index 4e7bf701e585..a16a3b5e85a4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto @@ -318,10 +318,11 @@ message UpdateFeatureOnlineStoreRequest { // // Updatable fields: // - // * `big_query_source` - // * `bigtable` // * `labels` - // * `sync_config` + // * `description` + // * `bigtable` + // * `bigtable.auto_scaling` + // * `bigtable.enable_multi_region_replica` google.protobuf.FieldMask update_mask = 2; } @@ -481,7 +482,14 @@ message UpdateFeatureViewRequest { // Updatable fields: // // * `labels` - // * `serviceAgentType` + // * `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` google.protobuf.FieldMask update_mask = 2; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto index 8fc70adda4d6..1b60096a852c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto @@ -255,6 +255,61 @@ message NearestNeighborQuery { repeated string deny_tokens = 3 [(google.api.field_behavior) = OPTIONAL]; } + // Numeric filter is used to search a subset of the entities by using boolean + // rules on numeric columns. + // For example: + // Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0} + // Database Point 1: {name: “a” value_int: 10} {name: “b” value_float: 2.0} + // Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0} + // Query: {name: “a” value_int: 12 operator: LESS} // Matches Point 1, 2 + // {name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1 + message NumericFilter { + // Datapoints for which Operator is true relative to the query’s Value + // field will be allowlisted. + enum Operator { + // Unspecified operator. + OPERATOR_UNSPECIFIED = 0; + + // Entities are eligible if their value is < the query's. + LESS = 1; + + // Entities are eligible if their value is <= the query's. + LESS_EQUAL = 2; + + // Entities are eligible if their value is == the query's. + EQUAL = 3; + + // Entities are eligible if their value is >= the query's. + GREATER_EQUAL = 4; + + // Entities are eligible if their value is > the query's. + GREATER = 5; + + // Entities are eligible if their value is != the query's. + NOT_EQUAL = 6; + } + + // The type of Value must be consistent for all datapoints with a given + // name. This is verified at runtime. + oneof Value { + // int value type. + int64 value_int = 2; + + // float value type. + float value_float = 3; + + // double value type. + double value_double = 4; + } + + // Required. Column name in BigQuery that used as filters. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. This MUST be specified for queries and must NOT be specified + // for database points. + optional Operator op = 5 [(google.api.field_behavior) = OPTIONAL]; + } + // Parameters that can be overrided in each query to tune query latency and // recall. message Parameters { @@ -290,6 +345,10 @@ message NearestNeighborQuery { repeated StringFilter string_filters = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The list of numeric filters. + repeated NumericFilter numeric_filters = 8 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Crowding is a constraint on a neighbor list produced by nearest // neighbor search requiring that no more than // sper_crowding_attribute_neighbor_count of the k neighbors returned have the diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_registry_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_registry_service.proto index d9e792e35667..72e423503478 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_registry_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_registry_service.proto @@ -286,6 +286,9 @@ message UpdateFeatureGroupRequest { // Updatable fields: // // * `labels` + // * `description` + // * `big_query` + // * `big_query.entity_id_columns` google.protobuf.FieldMask update_mask = 2; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto index 2a32aca23738..c0a4c2792f6e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto @@ -1257,7 +1257,8 @@ message UpdateFeatureRequest { // // * `description` // * `labels` - // * `disable_monitoring` (Not supported for FeatureRegistry Feature) + // * `disable_monitoring` (Not supported for FeatureRegistryService Feature) + // * `point_of_contact` (Not supported for FeaturestoreService FeatureStore) google.protobuf.FieldMask update_mask = 2; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto index 42cea8ccf9f1..5bc34737c09f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto @@ -17,6 +17,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; +import "google/cloud/aiplatform/v1beta1/api_auth.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; @@ -137,3 +139,67 @@ message GoogleDriveSource { // The input content is encapsulated and uploaded in the request. message DirectUploadSource {} + +// The Slack source for the ImportRagFilesRequest. +message SlackSource { + // SlackChannels contains the Slack channels and corresponding access token. + message SlackChannels { + // SlackChannel contains the Slack channel ID and the time range to import. + message SlackChannel { + // Required. The Slack channel ID. + string channel_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The starting timestamp for messages to import. + google.protobuf.Timestamp start_time = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ending timestamp for messages to import. + google.protobuf.Timestamp end_time = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The Slack channel IDs. + repeated SlackChannel channels = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The SecretManager secret version resource name (e.g. + // projects/{project}/secrets/{secret}/versions/{version}) storing the + // Slack channel access token that has access to the slack channel IDs. + // See: https://api.slack.com/tutorials/tracks/getting-a-token. + ApiAuth.ApiKeyConfig api_key_config = 3 + [(google.api.field_behavior) = REQUIRED]; + } + + // Required. The Slack channels. + repeated SlackChannels channels = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The Jira source for the ImportRagFilesRequest. +message JiraSource { + // JiraQueries contains the Jira queries and corresponding authentication. + message JiraQueries { + // A list of Jira projects to import in their entirety. + repeated string projects = 3; + + // A list of custom Jira queries to import. For information about JQL (Jira + // Query Language), see + // https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/ + repeated string custom_queries = 4; + + // Required. The Jira email address. + string email = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Jira server URI. + string server_uri = 6 [(google.api.field_behavior) = REQUIRED]; + + // Required. The SecretManager secret version resource name (e.g. + // projects/{project}/secrets/{secret}/versions/{version}) storing the + // Jira API key + // (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/). + ApiAuth.ApiKeyConfig api_key_config = 7 + [(google.api.field_behavior) = REQUIRED]; + } + + // Required. The Jira queries. + repeated JiraQueries jira_queries = 1 + [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto index 972964282eb1..981782d0a5bb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto @@ -84,11 +84,15 @@ message GetPublisherModelRequest { ]; // Optional. The IETF BCP-47 language code representing the language in which - // the publisher model's text information should be written in (see go/bcp47). + // the publisher model's text information should be written in. string language_code = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. PublisherModel view specifying which fields to read. PublisherModelView view = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Boolean indicates whether the requested model is a Hugging Face + // model. + bool is_hugging_face_model = 5 [(google.api.field_behavior) = OPTIONAL]; } // Request message for @@ -120,8 +124,8 @@ message ListPublisherModelsRequest { string order_by = 6 [(google.api.field_behavior) = OPTIONAL]; // Optional. The IETF BCP-47 language code representing the language in which - // the publisher models' text information should be written in (see go/bcp47). - // If not set, by default English (en). + // the publisher models' text information should be written in. If not set, by + // default English (en). string language_code = 7 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitor.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitor.proto index b9b3c7095f69..033f2b964517 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitor.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitor.proto @@ -116,6 +116,12 @@ message ModelMonitor { // Output only. Timestamp when this ModelMonitor was updated most recently. google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The Model Monitoring Schema definition. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource.proto index 78a279edf4e5..e94b41d3ec3f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource.proto @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; +import "google/cloud/aiplatform/v1beta1/service_networking.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; @@ -131,6 +132,10 @@ message PersistentResource { (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; + // Optional. Configuration for PSC-I for PersistentResource. + PscInterfaceConfig psc_interface_config = 17 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Customer-managed encryption key spec for a PersistentResource. // If set, this PersistentResource and all sub-resources of this // PersistentResource will be secured by this key. @@ -253,6 +258,9 @@ message RaySpec { // Optional. Ray metrics configurations. RayMetricSpec ray_metric_spec = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. OSS Ray logging configurations. + RayLogsSpec ray_logs_spec = 10 [(google.api.field_behavior) = OPTIONAL]; } // Persistent Cluster runtime information as output @@ -308,3 +316,9 @@ message RayMetricSpec { // Optional. Flag to disable the Ray metrics collection. bool disabled = 1 [(google.api.field_behavior) = OPTIONAL]; } + +// Configuration for the Ray OSS Logs. +message RayLogsSpec { + // Optional. Flag to disable the export of Ray OSS logs to Cloud Logging. + bool disabled = 1 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto index 7a602ce1795e..bc6a36d97b71 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -216,6 +216,12 @@ message PipelineJob { // Optional. Whether to do component level validations before job creation. bool preflight_validations = 26 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Pipeline template metadata if diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto index 05650bd27c38..62cc50668c3e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto @@ -664,18 +664,32 @@ message CountTokensRequest { } ]; - // 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]; - // 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]; + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input content. + repeated Content contents = 4 [(google.api.field_behavior) = OPTIONAL]; + + // 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 Content system_instruction = 5 + [(google.api.field_behavior) = OPTIONAL]; - // Required. Input content. - repeated Content contents = 4 [(google.api.field_behavior) = REQUIRED]; + // 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 Tool tools = 6 [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -817,3 +831,27 @@ message ChatCompletionsRequest { // payload. google.api.HttpBody http_body = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// Response message for [PredictionService.PredictLongRunning] +message PredictLongRunningResponse { + // The response of the long running operation. + oneof response { + // The response of the video generation prediction. + GenerateVideoResponse generate_video_response = 1; + } +} + +// Metadata for PredictLongRunning long running operations. +message PredictLongRunningMetadata {} + +// Generate video response. +message GenerateVideoResponse { + // The cloud storage uris of the generated videos. + repeated string generated_samples = 1; + + // Returns if any videos were filtered due to RAI policies. + optional int32 rai_media_filtered_count = 2; + + // Returns rai failure reasons if any. + repeated string rai_media_filtered_reasons = 3; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/service_networking.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/service_networking.proto index 7131038e22ca..a1ffb2c4905e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/service_networking.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/service_networking.proto @@ -26,6 +26,10 @@ option java_outer_classname = "ServiceNetworkingProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/NetworkAttachment" + pattern: "projects/{project}/regions/{region}/networkAttachments/{networkattachment}" +}; // Represents configuration for private service connect. message PrivateServiceConnectConfig { @@ -50,3 +54,25 @@ message PscAutomatedEndpoints { // Ip Address created by the automated forwarding rule. string match_address = 3; } + +// Configuration for PSC-I. +message PscInterfaceConfig { + // Optional. The full name of the Compute Engine + // [network + // attachment](https://cloud.google.com/vpc/docs/about-network-attachments) to + // attach to the resource. + // For example, `projects/12345/regions/us-central1/networkAttachments/myNA`. + // is of the form + // `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`. + // Where {project} is a project number, as in `12345`, and {networkAttachment} + // is a network attachment name. + // To specify this field, you must have already [created a network attachment] + // (https://cloud.google.com/vpc/docs/create-manage-network-attachments#create-network-attachments). + // This field is only used for resources using PSC-I. + string network_attachment = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "compute.googleapis.com/NetworkAttachment" + } + ]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/study.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/study.proto index 69daae1b670b..fc575b0805f8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/study.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/study.proto @@ -196,7 +196,6 @@ message Trial { [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Next ID: 3 message TrialContext { // A human-readable field which can store a description of this context. // This will become part of the resulting Trial's description field. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto index 290001c42396..279dfd0e5631 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto @@ -174,10 +174,9 @@ message Retrieval { VertexRagStore vertex_rag_store = 4; } - // Optional. Disable using the result from this tool in detecting grounding - // attribution. This does not affect how the result is given to the model for - // generation. - bool disable_attribution = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Deprecated. This option is no longer supported. + bool disable_attribution = 3 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } // Retrieve from Vertex RAG Store for grounding. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto index 7dd52c5047e3..4bbf8d74c717 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto @@ -49,6 +49,9 @@ message TuningJob { oneof tuning_spec { // Tuning Spec for Supervised Fine Tuning. SupervisedTuningSpec supervised_tuning_spec = 5; + + // Tuning Spec for Distillation. + DistillationSpec distillation_spec = 17; } // Output only. Identifier. Resource name of a TuningJob. Format: @@ -127,6 +130,16 @@ message TuningJob { TuningDataStats tuning_data_stats = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The resource name of the PipelineJob associated with the + // [TuningJob][google.cloud.aiplatform.v1.TuningJob]. Format: + // `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`. + string pipeline_job = 18 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/PipelineJob" + } + ]; + // Customer-managed encryption key options for a TuningJob. If this is set, // then all resources created by the TuningJob will be encrypted with the // provided encryption key. @@ -173,6 +186,9 @@ message SupervisedTuningDatasetDistribution { // Output only. Sum of a given population of values. int64 sum = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Sum of a given population of values that are billable. + int64 billable_sum = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The minimum of the population values. double min = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -208,6 +224,10 @@ message SupervisedTuningDataStats { // Output only. Number of billable characters in the tuning dataset. int64 total_billable_character_count = 3 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of billable tokens in the tuning dataset. + int64 total_billable_token_count = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Number of tuning steps for this Tuning Job. @@ -230,12 +250,98 @@ message SupervisedTuningDataStats { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Distribution computed over a tuning dataset. +message DatasetDistribution { + // Dataset bucket used to create a histogram for the distribution given a + // population of values. + message DistributionBucket { + // Output only. Number of values in the bucket. + int64 count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Left bound of the bucket. + double left = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Right bound of the bucket. + double right = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. Sum of a given population of values. + double sum = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The minimum of the population values. + double min = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The maximum of the population values. + double max = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The arithmetic mean of the values in the population. + double mean = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The median of the values in the population. + double median = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The 5th percentile of the values in the population. + double p5 = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The 95th percentile of the values in the population. + double p95 = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Defines the histogram bucket. + repeated DistributionBucket buckets = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Statistics computed over a tuning dataset. +message DatasetStats { + // Output only. Number of examples in the tuning dataset. + int64 tuning_dataset_example_count = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of tuning characters in the tuning dataset. + int64 total_tuning_character_count = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of billable characters in the tuning dataset. + int64 total_billable_character_count = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of tuning steps for this Tuning Job. + int64 tuning_step_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Dataset distributions for the user input tokens. + DatasetDistribution user_input_token_distribution = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Dataset distributions for the user output tokens. + optional DatasetDistribution user_output_token_distribution = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Dataset distributions for the messages per example. + DatasetDistribution user_message_per_example_distribution = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Sample user messages in the training dataset uri. + repeated Content user_dataset_examples = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Statistics computed for datasets used for distillation. +message DistillationDataStats { + // Output only. Statistics computed for the training dataset. + DatasetStats training_dataset_stats = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // The tuning data statistic values for // [TuningJob][google.cloud.aiplatform.v1.TuningJob]. message TuningDataStats { oneof tuning_data_stats { // The SFT Tuning data stats. SupervisedTuningDataStats supervised_tuning_data_stats = 1; + + // Output only. Statistics for distillation. + DistillationDataStats distillation_data_stats = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } } @@ -284,3 +390,55 @@ message SupervisedTuningSpec { SupervisedHyperParameters hyper_parameters = 3 [(google.api.field_behavior) = OPTIONAL]; } + +// Tuning Spec for Distillation. +message DistillationSpec { + // The teacher model that is being distilled from, e.g., "gemini-1.0-pro-002". + oneof teacher_model { + // The base teacher model that is being distilled, e.g., + // "gemini-1.0-pro-002". + string base_teacher_model = 5; + + // The resource name of the Tuned teacher model. Format: + // `projects/{project}/locations/{location}/models/{model}`. + string tuned_teacher_model_source = 6 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + }]; + } + + // Required. Cloud Storage path to file containing training dataset for + // tuning. The dataset must be formatted as a JSONL file. + string training_dataset_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Cloud Storage path to file containing validation dataset for + // tuning. The dataset must be formatted as a JSONL file. + optional string validation_dataset_uri = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hyperparameters for Distillation. + DistillationHyperParameters hyper_parameters = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // The student model that is being tuned, e.g., "google/gemma-2b-1.1-it". + string student_model = 4; + + // Required. A path in a Cloud Storage bucket, which will be treated as the + // root output directory of the distillation pipeline. It is used by the + // system to generate the paths of output artifacts. + string pipeline_root_directory = 7 [(google.api.field_behavior) = REQUIRED]; +} + +// Hyperparameters for Distillation. +message DistillationHyperParameters { + // Optional. Number of complete passes the model makes over the entire + // training dataset during training. + optional int64 epoch_count = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Multiplier for adjusting the default learning rate. + optional double learning_rate_multiplier = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Adapter size for distillation. + SupervisedHyperParameters.AdapterSize adapter_size = 3 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto index 42aae758ee6e..ae8aff9915e9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto @@ -144,6 +144,12 @@ message RagFile { // UploadRagFile request. DirectUploadSource direct_upload_source = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The RagFile is imported from a Slack channel. + SlackSource slack_source = 11; + + // The RagFile is imported from a Jira query. + JiraSource jira_source = 12; } // Output only. The resource name of the RagFile. @@ -189,6 +195,7 @@ message UploadRagFileConfig { // Config for importing RagFiles. message ImportRagFilesConfig { + // The source of the import. oneof import_source { // Google Cloud Storage location. Supports importing individual files as // well as entire Google Cloud Storage directories. Sample formats: @@ -199,6 +206,12 @@ message ImportRagFilesConfig { // Google Drive location. Supports importing individual files as // well as Google Drive folders. GoogleDriveSource google_drive_source = 3; + + // Slack channels with their corresponding access tokens. + SlackSource slack_source = 6; + + // Jira queries with their corresponding authentication. + JiraSource jira_source = 7; } // Specifies the size and overlap of chunks after importing RagFiles. diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/llmutilityservice/counttokens/AsyncCountTokens.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/llmutilityservice/counttokens/AsyncCountTokens.java index 5c7c3c6c327c..436599a085b9 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/llmutilityservice/counttokens/AsyncCountTokens.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/llmutilityservice/counttokens/AsyncCountTokens.java @@ -23,6 +23,7 @@ import com.google.cloud.aiplatform.v1.CountTokensResponse; import com.google.cloud.aiplatform.v1.EndpointName; import com.google.cloud.aiplatform.v1.LlmUtilityServiceClient; +import com.google.cloud.aiplatform.v1.Tool; import com.google.protobuf.Value; import java.util.ArrayList; @@ -48,6 +49,8 @@ public static void asyncCountTokens() throws Exception { .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/samples/snippets/generated/com/google/cloud/aiplatform/v1/llmutilityservice/counttokens/SyncCountTokens.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/llmutilityservice/counttokens/SyncCountTokens.java index 375c2127c214..68463b2fe8e9 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/llmutilityservice/counttokens/SyncCountTokens.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/llmutilityservice/counttokens/SyncCountTokens.java @@ -22,6 +22,7 @@ import com.google.cloud.aiplatform.v1.CountTokensResponse; import com.google.cloud.aiplatform.v1.EndpointName; import com.google.cloud.aiplatform.v1.LlmUtilityServiceClient; +import com.google.cloud.aiplatform.v1.Tool; import com.google.protobuf.Value; import java.util.ArrayList; @@ -47,6 +48,8 @@ public static void syncCountTokens() throws Exception { .setModel("model104069929") .addAllInstances(new ArrayList()) .addAllContents(new ArrayList()) + .setSystemInstruction(Content.newBuilder().build()) + .addAllTools(new ArrayList()) .build(); CountTokensResponse response = llmUtilityServiceClient.countTokens(request); } diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelgardenservice/getpublishermodel/AsyncGetPublisherModel.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelgardenservice/getpublishermodel/AsyncGetPublisherModel.java index 50b26a22be83..77560d5c056f 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelgardenservice/getpublishermodel/AsyncGetPublisherModel.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelgardenservice/getpublishermodel/AsyncGetPublisherModel.java @@ -42,6 +42,7 @@ public static void asyncGetPublisherModel() throws Exception { .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/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelgardenservice/getpublishermodel/SyncGetPublisherModel.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelgardenservice/getpublishermodel/SyncGetPublisherModel.java index 35863b065b01..e3887134ef74 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelgardenservice/getpublishermodel/SyncGetPublisherModel.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelgardenservice/getpublishermodel/SyncGetPublisherModel.java @@ -41,6 +41,7 @@ public static void syncGetPublisherModel() throws Exception { .setName(PublisherModelName.of("[PUBLISHER]", "[MODEL]").toString()) .setLanguageCode("languageCode-2092349083") .setView(PublisherModelView.forNumber(0)) + .setIsHuggingFaceModel(true) .build(); PublisherModel response = modelGardenServiceClient.getPublisherModel(request); } diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/AsyncCreateNotebookExecutionJob.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/AsyncCreateNotebookExecutionJob.java new file mode 100644 index 000000000000..f3005b310d4e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/AsyncCreateNotebookExecutionJob.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_CreateNotebookExecutionJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.NotebookExecutionJob; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateNotebookExecutionJob { + + public static void main(String[] args) throws Exception { + asyncCreateNotebookExecutionJob(); + } + + public static void asyncCreateNotebookExecutionJob() throws Exception { + // 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()) { + 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. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1_generated_NotebookService_CreateNotebookExecutionJob_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/AsyncCreateNotebookExecutionJobLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/AsyncCreateNotebookExecutionJobLRO.java new file mode 100644 index 000000000000..aec31680c000 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/AsyncCreateNotebookExecutionJobLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_CreateNotebookExecutionJob_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobOperationMetadata; +import com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.NotebookExecutionJob; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; + +public class AsyncCreateNotebookExecutionJobLRO { + + public static void main(String[] args) throws Exception { + asyncCreateNotebookExecutionJobLRO(); + } + + public static void asyncCreateNotebookExecutionJobLRO() throws Exception { + // 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()) { + 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(); + } + } +} +// [END aiplatform_v1_generated_NotebookService_CreateNotebookExecutionJob_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/SyncCreateNotebookExecutionJob.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/SyncCreateNotebookExecutionJob.java new file mode 100644 index 000000000000..42a3c4adc6d1 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/SyncCreateNotebookExecutionJob.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_CreateNotebookExecutionJob_sync] +import com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.NotebookExecutionJob; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; + +public class SyncCreateNotebookExecutionJob { + + public static void main(String[] args) throws Exception { + syncCreateNotebookExecutionJob(); + } + + public static void syncCreateNotebookExecutionJob() throws Exception { + // 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()) { + CreateNotebookExecutionJobRequest request = + CreateNotebookExecutionJobRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setNotebookExecutionJob(NotebookExecutionJob.newBuilder().build()) + .setNotebookExecutionJobId("notebookExecutionJobId1598189627") + .build(); + NotebookExecutionJob response = + notebookServiceClient.createNotebookExecutionJobAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_NotebookService_CreateNotebookExecutionJob_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/SyncCreateNotebookExecutionJobLocationnameNotebookexecutionjobString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/SyncCreateNotebookExecutionJobLocationnameNotebookexecutionjobString.java new file mode 100644 index 000000000000..680757414eb9 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/SyncCreateNotebookExecutionJobLocationnameNotebookexecutionjobString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_CreateNotebookExecutionJob_LocationnameNotebookexecutionjobString_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.NotebookExecutionJob; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; + +public class SyncCreateNotebookExecutionJobLocationnameNotebookexecutionjobString { + + public static void main(String[] args) throws Exception { + syncCreateNotebookExecutionJobLocationnameNotebookexecutionjobString(); + } + + public static void syncCreateNotebookExecutionJobLocationnameNotebookexecutionjobString() + throws Exception { + // 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()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + NotebookExecutionJob notebookExecutionJob = NotebookExecutionJob.newBuilder().build(); + String notebookExecutionJobId = "notebookExecutionJobId1598189627"; + NotebookExecutionJob response = + notebookServiceClient + .createNotebookExecutionJobAsync(parent, notebookExecutionJob, notebookExecutionJobId) + .get(); + } + } +} +// [END aiplatform_v1_generated_NotebookService_CreateNotebookExecutionJob_LocationnameNotebookexecutionjobString_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/SyncCreateNotebookExecutionJobStringNotebookexecutionjobString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/SyncCreateNotebookExecutionJobStringNotebookexecutionjobString.java new file mode 100644 index 000000000000..a53c85334b77 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/createnotebookexecutionjob/SyncCreateNotebookExecutionJobStringNotebookexecutionjobString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_CreateNotebookExecutionJob_StringNotebookexecutionjobString_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.NotebookExecutionJob; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; + +public class SyncCreateNotebookExecutionJobStringNotebookexecutionjobString { + + public static void main(String[] args) throws Exception { + syncCreateNotebookExecutionJobStringNotebookexecutionjobString(); + } + + public static void syncCreateNotebookExecutionJobStringNotebookexecutionjobString() + throws Exception { + // 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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + NotebookExecutionJob notebookExecutionJob = NotebookExecutionJob.newBuilder().build(); + String notebookExecutionJobId = "notebookExecutionJobId1598189627"; + NotebookExecutionJob response = + notebookServiceClient + .createNotebookExecutionJobAsync(parent, notebookExecutionJob, notebookExecutionJobId) + .get(); + } + } +} +// [END aiplatform_v1_generated_NotebookService_CreateNotebookExecutionJob_StringNotebookexecutionjobString_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/AsyncDeleteNotebookExecutionJob.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/AsyncDeleteNotebookExecutionJob.java new file mode 100644 index 000000000000..376f43231c7f --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/AsyncDeleteNotebookExecutionJob.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_DeleteNotebookExecutionJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest; +import com.google.cloud.aiplatform.v1.NotebookExecutionJobName; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteNotebookExecutionJob { + + public static void main(String[] args) throws Exception { + asyncDeleteNotebookExecutionJob(); + } + + public static void asyncDeleteNotebookExecutionJob() throws Exception { + // 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(); + } + } +} +// [END aiplatform_v1_generated_NotebookService_DeleteNotebookExecutionJob_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/AsyncDeleteNotebookExecutionJobLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/AsyncDeleteNotebookExecutionJobLRO.java new file mode 100644 index 000000000000..a753530b08e9 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/AsyncDeleteNotebookExecutionJobLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_DeleteNotebookExecutionJob_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.NotebookExecutionJobName; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteNotebookExecutionJobLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteNotebookExecutionJobLRO(); + } + + public static void asyncDeleteNotebookExecutionJobLRO() throws Exception { + // 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(); + } + } +} +// [END aiplatform_v1_generated_NotebookService_DeleteNotebookExecutionJob_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJob.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJob.java new file mode 100644 index 000000000000..ebca0a56bc50 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJob.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_DeleteNotebookExecutionJob_sync] +import com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest; +import com.google.cloud.aiplatform.v1.NotebookExecutionJobName; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteNotebookExecutionJob { + + public static void main(String[] args) throws Exception { + syncDeleteNotebookExecutionJob(); + } + + public static void syncDeleteNotebookExecutionJob() throws Exception { + // 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(); + } + } +} +// [END aiplatform_v1_generated_NotebookService_DeleteNotebookExecutionJob_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJobNotebookexecutionjobname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJobNotebookexecutionjobname.java new file mode 100644 index 000000000000..ab235ec5eb3d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJobNotebookexecutionjobname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_DeleteNotebookExecutionJob_Notebookexecutionjobname_sync] +import com.google.cloud.aiplatform.v1.NotebookExecutionJobName; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteNotebookExecutionJobNotebookexecutionjobname { + + public static void main(String[] args) throws Exception { + syncDeleteNotebookExecutionJobNotebookexecutionjobname(); + } + + public static void syncDeleteNotebookExecutionJobNotebookexecutionjobname() throws Exception { + // 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(); + } + } +} +// [END aiplatform_v1_generated_NotebookService_DeleteNotebookExecutionJob_Notebookexecutionjobname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJobString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJobString.java new file mode 100644 index 000000000000..e41f6d7632a0 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJobString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_DeleteNotebookExecutionJob_String_sync] +import com.google.cloud.aiplatform.v1.NotebookExecutionJobName; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteNotebookExecutionJobString { + + public static void main(String[] args) throws Exception { + syncDeleteNotebookExecutionJobString(); + } + + public static void syncDeleteNotebookExecutionJobString() throws Exception { + // 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(); + } + } +} +// [END aiplatform_v1_generated_NotebookService_DeleteNotebookExecutionJob_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/getnotebookexecutionjob/AsyncGetNotebookExecutionJob.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/getnotebookexecutionjob/AsyncGetNotebookExecutionJob.java new file mode 100644 index 000000000000..c01b6b8a8f79 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/getnotebookexecutionjob/AsyncGetNotebookExecutionJob.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_GetNotebookExecutionJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest; +import com.google.cloud.aiplatform.v1.NotebookExecutionJob; +import com.google.cloud.aiplatform.v1.NotebookExecutionJobName; +import com.google.cloud.aiplatform.v1.NotebookExecutionJobView; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; + +public class AsyncGetNotebookExecutionJob { + + public static void main(String[] args) throws Exception { + asyncGetNotebookExecutionJob(); + } + + public static void asyncGetNotebookExecutionJob() throws Exception { + // 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()) { + GetNotebookExecutionJobRequest request = + GetNotebookExecutionJobRequest.newBuilder() + .setName( + NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]") + .toString()) + .setView(NotebookExecutionJobView.forNumber(0)) + .build(); + ApiFuture future = + notebookServiceClient.getNotebookExecutionJobCallable().futureCall(request); + // Do something. + NotebookExecutionJob response = future.get(); + } + } +} +// [END aiplatform_v1_generated_NotebookService_GetNotebookExecutionJob_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJob.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJob.java new file mode 100644 index 000000000000..22a455d1a71d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJob.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_GetNotebookExecutionJob_sync] +import com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest; +import com.google.cloud.aiplatform.v1.NotebookExecutionJob; +import com.google.cloud.aiplatform.v1.NotebookExecutionJobName; +import com.google.cloud.aiplatform.v1.NotebookExecutionJobView; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; + +public class SyncGetNotebookExecutionJob { + + public static void main(String[] args) throws Exception { + syncGetNotebookExecutionJob(); + } + + public static void syncGetNotebookExecutionJob() throws Exception { + // 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()) { + GetNotebookExecutionJobRequest request = + GetNotebookExecutionJobRequest.newBuilder() + .setName( + NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]") + .toString()) + .setView(NotebookExecutionJobView.forNumber(0)) + .build(); + NotebookExecutionJob response = notebookServiceClient.getNotebookExecutionJob(request); + } + } +} +// [END aiplatform_v1_generated_NotebookService_GetNotebookExecutionJob_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJobNotebookexecutionjobname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJobNotebookexecutionjobname.java new file mode 100644 index 000000000000..e3dc1dad7ea8 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJobNotebookexecutionjobname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_GetNotebookExecutionJob_Notebookexecutionjobname_sync] +import com.google.cloud.aiplatform.v1.NotebookExecutionJob; +import com.google.cloud.aiplatform.v1.NotebookExecutionJobName; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; + +public class SyncGetNotebookExecutionJobNotebookexecutionjobname { + + public static void main(String[] args) throws Exception { + syncGetNotebookExecutionJobNotebookexecutionjobname(); + } + + public static void syncGetNotebookExecutionJobNotebookexecutionjobname() throws Exception { + // 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]"); + NotebookExecutionJob response = notebookServiceClient.getNotebookExecutionJob(name); + } + } +} +// [END aiplatform_v1_generated_NotebookService_GetNotebookExecutionJob_Notebookexecutionjobname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJobString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJobString.java new file mode 100644 index 000000000000..7d34d0c2947d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJobString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_GetNotebookExecutionJob_String_sync] +import com.google.cloud.aiplatform.v1.NotebookExecutionJob; +import com.google.cloud.aiplatform.v1.NotebookExecutionJobName; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; + +public class SyncGetNotebookExecutionJobString { + + public static void main(String[] args) throws Exception { + syncGetNotebookExecutionJobString(); + } + + public static void syncGetNotebookExecutionJobString() throws Exception { + // 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(); + NotebookExecutionJob response = notebookServiceClient.getNotebookExecutionJob(name); + } + } +} +// [END aiplatform_v1_generated_NotebookService_GetNotebookExecutionJob_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/AsyncListNotebookExecutionJobs.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/AsyncListNotebookExecutionJobs.java new file mode 100644 index 000000000000..7d912aa28178 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/AsyncListNotebookExecutionJobs.java @@ -0,0 +1,58 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_ListNotebookExecutionJobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.NotebookExecutionJob; +import com.google.cloud.aiplatform.v1.NotebookExecutionJobView; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; + +public class AsyncListNotebookExecutionJobs { + + public static void main(String[] args) throws Exception { + asyncListNotebookExecutionJobs(); + } + + public static void asyncListNotebookExecutionJobs() throws Exception { + // 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); + } + } + } +} +// [END aiplatform_v1_generated_NotebookService_ListNotebookExecutionJobs_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/AsyncListNotebookExecutionJobsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/AsyncListNotebookExecutionJobsPaged.java new file mode 100644 index 000000000000..b0cbf1d519bc --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/AsyncListNotebookExecutionJobsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_ListNotebookExecutionJobs_Paged_async] +import com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest; +import com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.NotebookExecutionJob; +import com.google.cloud.aiplatform.v1.NotebookExecutionJobView; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; +import com.google.common.base.Strings; + +public class AsyncListNotebookExecutionJobsPaged { + + public static void main(String[] args) throws Exception { + asyncListNotebookExecutionJobsPaged(); + } + + public static void asyncListNotebookExecutionJobsPaged() throws Exception { + // 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; + } + } + } + } +} +// [END aiplatform_v1_generated_NotebookService_ListNotebookExecutionJobs_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobs.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobs.java new file mode 100644 index 000000000000..8e3b2e3697a8 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobs.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_ListNotebookExecutionJobs_sync] +import com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.NotebookExecutionJob; +import com.google.cloud.aiplatform.v1.NotebookExecutionJobView; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; + +public class SyncListNotebookExecutionJobs { + + public static void main(String[] args) throws Exception { + syncListNotebookExecutionJobs(); + } + + public static void syncListNotebookExecutionJobs() throws Exception { + // 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); + } + } + } +} +// [END aiplatform_v1_generated_NotebookService_ListNotebookExecutionJobs_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobsLocationname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobsLocationname.java new file mode 100644 index 000000000000..c5afb7b41ff9 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_ListNotebookExecutionJobs_Locationname_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.NotebookExecutionJob; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; + +public class SyncListNotebookExecutionJobsLocationname { + + public static void main(String[] args) throws Exception { + syncListNotebookExecutionJobsLocationname(); + } + + public static void syncListNotebookExecutionJobsLocationname() throws Exception { + // 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()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (NotebookExecutionJob element : + notebookServiceClient.listNotebookExecutionJobs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_NotebookService_ListNotebookExecutionJobs_Locationname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobsString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobsString.java new file mode 100644 index 000000000000..9af3515725f6 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_NotebookService_ListNotebookExecutionJobs_String_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.NotebookExecutionJob; +import com.google.cloud.aiplatform.v1.NotebookServiceClient; + +public class SyncListNotebookExecutionJobsString { + + public static void main(String[] args) throws Exception { + syncListNotebookExecutionJobsString(); + } + + public static void syncListNotebookExecutionJobsString() throws Exception { + // 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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (NotebookExecutionJob element : + notebookServiceClient.listNotebookExecutionJobs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_NotebookService_ListNotebookExecutionJobs_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/getpublishermodel/AsyncGetPublisherModel.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/getpublishermodel/AsyncGetPublisherModel.java index 8351c7c6148b..bfafd389fbbf 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/getpublishermodel/AsyncGetPublisherModel.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/getpublishermodel/AsyncGetPublisherModel.java @@ -42,6 +42,7 @@ public static void asyncGetPublisherModel() throws Exception { .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/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/getpublishermodel/SyncGetPublisherModel.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/getpublishermodel/SyncGetPublisherModel.java index f97eb47f7a3e..67e6b33c573b 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/getpublishermodel/SyncGetPublisherModel.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/getpublishermodel/SyncGetPublisherModel.java @@ -41,6 +41,7 @@ public static void syncGetPublisherModel() throws Exception { .setName(PublisherModelName.of("[PUBLISHER]", "[MODEL]").toString()) .setLanguageCode("languageCode-2092349083") .setView(PublisherModelView.forNumber(0)) + .setIsHuggingFaceModel(true) .build(); PublisherModel response = modelGardenServiceClient.getPublisherModel(request); } diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/AsyncCountTokens.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/AsyncCountTokens.java index b5f2706e3c0f..3b961ccffbea 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/AsyncCountTokens.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/AsyncCountTokens.java @@ -23,6 +23,7 @@ import com.google.cloud.aiplatform.v1beta1.CountTokensResponse; import com.google.cloud.aiplatform.v1beta1.EndpointName; import com.google.cloud.aiplatform.v1beta1.PredictionServiceClient; +import com.google.cloud.aiplatform.v1beta1.Tool; import com.google.protobuf.Value; import java.util.ArrayList; @@ -48,6 +49,8 @@ public static void asyncCountTokens() throws Exception { .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/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/SyncCountTokens.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/SyncCountTokens.java index 3e68d40c6cfd..f5c2b34eafac 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/SyncCountTokens.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/SyncCountTokens.java @@ -22,6 +22,7 @@ import com.google.cloud.aiplatform.v1beta1.CountTokensResponse; import com.google.cloud.aiplatform.v1beta1.EndpointName; import com.google.cloud.aiplatform.v1beta1.PredictionServiceClient; +import com.google.cloud.aiplatform.v1beta1.Tool; import com.google.protobuf.Value; import java.util.ArrayList; @@ -47,6 +48,8 @@ public static void syncCountTokens() throws Exception { .setModel("model104069929") .addAllInstances(new ArrayList()) .addAllContents(new ArrayList()) + .setSystemInstruction(Content.newBuilder().build()) + .addAllTools(new ArrayList()) .build(); CountTokensResponse response = predictionServiceClient.countTokens(request); } diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index a349b39203bb..4c4d00455805 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/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-alloydb-connectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.24.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-alloydb/README.md b/java-alloydb/README.md index f03764ff5ad6..2ff5391f0c99 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/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-alloydb.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/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-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java index 4417697c030d..b6ed7c321d2d 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.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; @@ -892,6 +893,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "alloydb.googleapis.com:443"; } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStubSettings.java index 8b5b27604b46..50016336923e 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStubSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStubSettings.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; @@ -959,6 +960,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "alloydb.googleapis.com:443"; } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStubSettings.java index d29a6ca49422..cbd49bcfc8af 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStubSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStubSettings.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; @@ -959,6 +960,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "alloydb.googleapis.com:443"; } diff --git a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json index 9a047c60d36f..4c8daeaf803c 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json +++ b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy", "queryAllDeclaredConstructors": true, diff --git a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json index f8bbbfee2f34..879075da4f66 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json +++ b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1beta.AutomatedBackupPolicy", "queryAllDeclaredConstructors": true, diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index 65ff037e1a4b..2df7d190546a 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/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.analytics/google-analytics-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.56.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-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java index ed9fbedc25ac..72e08b6712e0 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java @@ -252,6 +252,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; @@ -3210,6 +3211,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "analyticsadmin.googleapis.com:443"; } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java index d38dea792a50..b3d55bea94fa 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java @@ -105,7 +105,7 @@ *

DeleteAccount *

Marks target Account as soft-deleted (ie: "trashed") and returns it. *

This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI. - *

If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 + *

If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 *

Returns an error if the target is not found. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -227,7 +227,7 @@ *

DeleteProperty *

Marks target Property as soft-deleted (ie: "trashed") and returns it. *

This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. - *

If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 + *

If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 *

Returns an error if the target is not found, or is not a GA4 Property. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -544,7 +544,7 @@ * * *

CreateConversionEvent - *

Creates a conversion event with the specified attributes. + *

Deprecated: Use `CreateKeyEvent` instead. Creates a conversion event with the specified attributes. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    @@ -563,7 +563,7 @@ * * *

    UpdateConversionEvent - *

    Updates a conversion event with the specified attributes. + *

    Deprecated: Use `UpdateKeyEvent` instead. Updates a conversion event with the specified attributes. * *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      @@ -581,7 +581,7 @@ * * *

      GetConversionEvent - *

      Retrieve a single conversion event. + *

      Deprecated: Use `GetKeyEvent` instead. Retrieve a single conversion event. * *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      *
        @@ -600,7 +600,7 @@ * * *

        DeleteConversionEvent - *

        Deletes a conversion event in a property. + *

        Deprecated: Use `DeleteKeyEvent` instead. Deletes a conversion event in a property. * *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        *
          @@ -619,7 +619,7 @@ * * *

          ListConversionEvents - *

          Returns a list of conversion events in the specified parent property. + *

          Deprecated: Use `ListKeyEvents` instead. Returns a list of conversion events in the specified parent property. *

          Returns an empty list if no conversion events are found. * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          @@ -639,6 +639,101 @@ * * * + *

          CreateKeyEvent + *

          Creates a Key Event. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • createKeyEvent(CreateKeyEventRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • createKeyEvent(PropertyName parent, KeyEvent keyEvent) + *

          • createKeyEvent(String parent, KeyEvent keyEvent) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • createKeyEventCallable() + *

          + * + * + * + *

          UpdateKeyEvent + *

          Updates a Key Event. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • updateKeyEvent(UpdateKeyEventRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • updateKeyEvent(KeyEvent keyEvent, FieldMask updateMask) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • updateKeyEventCallable() + *

          + * + * + * + *

          GetKeyEvent + *

          Retrieve a single Key Event. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getKeyEvent(GetKeyEventRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getKeyEvent(KeyEventName name) + *

          • getKeyEvent(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • getKeyEventCallable() + *

          + * + * + * + *

          DeleteKeyEvent + *

          Deletes a Key Event. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • deleteKeyEvent(DeleteKeyEventRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • deleteKeyEvent(KeyEventName name) + *

          • deleteKeyEvent(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • deleteKeyEventCallable() + *

          + * + * + * + *

          ListKeyEvents + *

          Returns a list of Key Events in the specified parent property. Returns an empty list if no Key Events are found. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listKeyEvents(ListKeyEventsRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listKeyEvents(PropertyName parent) + *

          • listKeyEvents(String parent) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • listKeyEventsPagedCallable() + *

          • listKeyEventsCallable() + *

          + * + * + * *

          CreateCustomDimension *

          Creates a CustomDimension. * @@ -963,7 +1058,7 @@ * *

          RunAccessReport *

          Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. - *

          Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. + *

          Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. *

          These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          @@ -1323,7 +1418,7 @@ public final UnaryCallable listAccoun * restored using the Trash Can UI. * *

          If the accounts are not restored before the expiration time, the account and all child - * resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged. + * resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

          Returns an error if the target is not found. @@ -1361,7 +1456,7 @@ public final void deleteAccount(AccountName name) { * restored using the Trash Can UI. * *

          If the accounts are not restored before the expiration time, the account and all child - * resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged. + * resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

          Returns an error if the target is not found. @@ -1398,7 +1493,7 @@ public final void deleteAccount(String name) { * restored using the Trash Can UI. * *

          If the accounts are not restored before the expiration time, the account and all child - * resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged. + * resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

          Returns an error if the target is not found. @@ -1434,7 +1529,7 @@ public final void deleteAccount(DeleteAccountRequest request) { * restored using the Trash Can UI. * *

          If the accounts are not restored before the expiration time, the account and all child - * resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged. + * resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

          Returns an error if the target is not found. @@ -2050,7 +2145,7 @@ public final UnaryCallable createPropertyCallab * restored using the Trash Can UI. * *

          If the properties are not restored before the expiration time, the Property and all child - * resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. + * resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

          Returns an error if the target is not found, or is not a GA4 Property. @@ -2088,7 +2183,7 @@ public final Property deleteProperty(PropertyName name) { * restored using the Trash Can UI. * *

          If the properties are not restored before the expiration time, the Property and all child - * resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. + * resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

          Returns an error if the target is not found, or is not a GA4 Property. @@ -2125,7 +2220,7 @@ public final Property deleteProperty(String name) { * restored using the Trash Can UI. * *

          If the properties are not restored before the expiration time, the Property and all child - * resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. + * resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

          Returns an error if the target is not found, or is not a GA4 Property. @@ -2163,7 +2258,7 @@ public final Property deleteProperty(DeletePropertyRequest request) { * restored using the Trash Can UI. * *

          If the properties are not restored before the expiration time, the Property and all child - * resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. + * resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

          Returns an error if the target is not found, or is not a GA4 Property. @@ -2308,7 +2403,8 @@ public final UnaryCallable updatePropertyCallab * } * } * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 + * @param parent Required. Format: properties/{property_id} + *

          Example: `properties/1234` * @param firebaseLink Required. The Firebase link to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2343,7 +2439,8 @@ public final FirebaseLink createFirebaseLink(PropertyName parent, FirebaseLink f * } * } * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 + * @param parent Required. Format: properties/{property_id} + *

          Example: `properties/1234` * @param firebaseLink Required. The Firebase link to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2440,7 +2537,7 @@ public final UnaryCallable createFireba * } * * @param name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 + *

          Example: `properties/1234/firebaseLinks/5678` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteFirebaseLink(FirebaseLinkName name) { @@ -2471,7 +2568,7 @@ public final void deleteFirebaseLink(FirebaseLinkName name) { * } * * @param name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 + *

          Example: `properties/1234/firebaseLinks/5678` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteFirebaseLink(String name) { @@ -2560,7 +2657,8 @@ public final UnaryCallable deleteFirebaseLinkC * } * } * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 + * @param parent Required. Format: properties/{property_id} + *

          Example: `properties/1234` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFirebaseLinksPagedResponse listFirebaseLinks(PropertyName parent) { @@ -2593,7 +2691,8 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(PropertyName paren * } * } * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 + * @param parent Required. Format: properties/{property_id} + *

          Example: `properties/1234` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFirebaseLinksPagedResponse listFirebaseLinks(String parent) { @@ -3248,7 +3347,8 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks( * } * * @param name Required. The name of the settings to lookup. Format: - * accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" + * accounts/{account}/dataSharingSettings + *

          Example: `accounts/1000/dataSharingSettings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataSharingSettings getDataSharingSettings(DataSharingSettingsName name) { @@ -3279,7 +3379,8 @@ public final DataSharingSettings getDataSharingSettings(DataSharingSettingsName * } * * @param name Required. The name of the settings to lookup. Format: - * accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" + * accounts/{account}/dataSharingSettings + *

          Example: `accounts/1000/dataSharingSettings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataSharingSettings getDataSharingSettings(String name) { @@ -4236,7 +4337,8 @@ public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a conversion event with the specified attributes. + * Deprecated: Use `CreateKeyEvent` instead. Creates a conversion event with the specified + * attributes. * *

          Sample code: * @@ -4259,7 +4361,9 @@ public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( * will be created. Format: properties/123 * @param conversionEvent Required. The conversion event to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ConversionEvent createConversionEvent( PropertyName parent, ConversionEvent conversionEvent) { CreateConversionEventRequest request = @@ -4272,7 +4376,8 @@ public final ConversionEvent createConversionEvent( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a conversion event with the specified attributes. + * Deprecated: Use `CreateKeyEvent` instead. Creates a conversion event with the specified + * attributes. * *

          Sample code: * @@ -4295,7 +4400,9 @@ public final ConversionEvent createConversionEvent( * will be created. Format: properties/123 * @param conversionEvent Required. The conversion event to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ConversionEvent createConversionEvent( String parent, ConversionEvent conversionEvent) { CreateConversionEventRequest request = @@ -4308,7 +4415,8 @@ public final ConversionEvent createConversionEvent( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a conversion event with the specified attributes. + * Deprecated: Use `CreateKeyEvent` instead. Creates a conversion event with the specified + * attributes. * *

          Sample code: * @@ -4331,14 +4439,17 @@ public final ConversionEvent createConversionEvent( * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ConversionEvent createConversionEvent(CreateConversionEventRequest request) { return createConversionEventCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a conversion event with the specified attributes. + * Deprecated: Use `CreateKeyEvent` instead. Creates a conversion event with the specified + * attributes. * *

          Sample code: * @@ -4361,7 +4472,10 @@ public final ConversionEvent createConversionEvent(CreateConversionEventRequest * ConversionEvent response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable createConversionEventCallable() { return stub.createConversionEventCallable(); @@ -4369,7 +4483,8 @@ public final ConversionEvent createConversionEvent(CreateConversionEventRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a conversion event with the specified attributes. + * Deprecated: Use `UpdateKeyEvent` instead. Updates a conversion event with the specified + * attributes. * *

          Sample code: * @@ -4394,7 +4509,9 @@ public final ConversionEvent createConversionEvent(CreateConversionEventRequest * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire * entity, use one path with the string "*" to match all fields. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ConversionEvent updateConversionEvent( ConversionEvent conversionEvent, FieldMask updateMask) { UpdateConversionEventRequest request = @@ -4407,7 +4524,8 @@ public final ConversionEvent updateConversionEvent( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a conversion event with the specified attributes. + * Deprecated: Use `UpdateKeyEvent` instead. Updates a conversion event with the specified + * attributes. * *

          Sample code: * @@ -4430,14 +4548,17 @@ public final ConversionEvent updateConversionEvent( * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ConversionEvent updateConversionEvent(UpdateConversionEventRequest request) { return updateConversionEventCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a conversion event with the specified attributes. + * Deprecated: Use `UpdateKeyEvent` instead. Updates a conversion event with the specified + * attributes. * *

          Sample code: * @@ -4460,7 +4581,10 @@ public final ConversionEvent updateConversionEvent(UpdateConversionEventRequest * ConversionEvent response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable updateConversionEventCallable() { return stub.updateConversionEventCallable(); @@ -4468,7 +4592,7 @@ public final ConversionEvent updateConversionEvent(UpdateConversionEventRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieve a single conversion event. + * Deprecated: Use `GetKeyEvent` instead. Retrieve a single conversion event. * *

          Sample code: * @@ -4489,7 +4613,9 @@ public final ConversionEvent updateConversionEvent(UpdateConversionEventRequest * properties/{property}/conversionEvents/{conversion_event} Example: * "properties/123/conversionEvents/456" * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ConversionEvent getConversionEvent(ConversionEventName name) { GetConversionEventRequest request = GetConversionEventRequest.newBuilder() @@ -4500,7 +4626,7 @@ public final ConversionEvent getConversionEvent(ConversionEventName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieve a single conversion event. + * Deprecated: Use `GetKeyEvent` instead. Retrieve a single conversion event. * *

          Sample code: * @@ -4521,7 +4647,9 @@ public final ConversionEvent getConversionEvent(ConversionEventName name) { * properties/{property}/conversionEvents/{conversion_event} Example: * "properties/123/conversionEvents/456" * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ConversionEvent getConversionEvent(String name) { GetConversionEventRequest request = GetConversionEventRequest.newBuilder().setName(name).build(); @@ -4530,7 +4658,7 @@ public final ConversionEvent getConversionEvent(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieve a single conversion event. + * Deprecated: Use `GetKeyEvent` instead. Retrieve a single conversion event. * *

          Sample code: * @@ -4552,14 +4680,16 @@ public final ConversionEvent getConversionEvent(String name) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ConversionEvent getConversionEvent(GetConversionEventRequest request) { return getConversionEventCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieve a single conversion event. + * Deprecated: Use `GetKeyEvent` instead. Retrieve a single conversion event. * *

          Sample code: * @@ -4581,7 +4711,10 @@ public final ConversionEvent getConversionEvent(GetConversionEventRequest reques * ConversionEvent response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable getConversionEventCallable() { return stub.getConversionEventCallable(); @@ -4589,7 +4722,7 @@ public final ConversionEvent getConversionEvent(GetConversionEventRequest reques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a conversion event in a property. + * Deprecated: Use `DeleteKeyEvent` instead. Deletes a conversion event in a property. * *

          Sample code: * @@ -4610,7 +4743,9 @@ public final ConversionEvent getConversionEvent(GetConversionEventRequest reques * properties/{property}/conversionEvents/{conversion_event} Example: * "properties/123/conversionEvents/456" * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final void deleteConversionEvent(ConversionEventName name) { DeleteConversionEventRequest request = DeleteConversionEventRequest.newBuilder() @@ -4621,7 +4756,7 @@ public final void deleteConversionEvent(ConversionEventName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a conversion event in a property. + * Deprecated: Use `DeleteKeyEvent` instead. Deletes a conversion event in a property. * *

          Sample code: * @@ -4642,7 +4777,9 @@ public final void deleteConversionEvent(ConversionEventName name) { * properties/{property}/conversionEvents/{conversion_event} Example: * "properties/123/conversionEvents/456" * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final void deleteConversionEvent(String name) { DeleteConversionEventRequest request = DeleteConversionEventRequest.newBuilder().setName(name).build(); @@ -4651,7 +4788,7 @@ public final void deleteConversionEvent(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a conversion event in a property. + * Deprecated: Use `DeleteKeyEvent` instead. Deletes a conversion event in a property. * *

          Sample code: * @@ -4673,14 +4810,16 @@ public final void deleteConversionEvent(String name) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final void deleteConversionEvent(DeleteConversionEventRequest request) { deleteConversionEventCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a conversion event in a property. + * Deprecated: Use `DeleteKeyEvent` instead. Deletes a conversion event in a property. * *

          Sample code: * @@ -4702,14 +4841,18 @@ public final void deleteConversionEvent(DeleteConversionEventRequest request) { * future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable deleteConversionEventCallable() { return stub.deleteConversionEventCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a list of conversion events in the specified parent property. + * Deprecated: Use `ListKeyEvents` instead. Returns a list of conversion events in the specified + * parent property. * *

          Returns an empty list if no conversion events are found. * @@ -4733,7 +4876,9 @@ public final UnaryCallable deleteConversion * * @param parent Required. The resource name of the parent property. Example: 'properties/123' * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListConversionEventsPagedResponse listConversionEvents(PropertyName parent) { ListConversionEventsRequest request = ListConversionEventsRequest.newBuilder() @@ -4744,7 +4889,8 @@ public final ListConversionEventsPagedResponse listConversionEvents(PropertyName // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a list of conversion events in the specified parent property. + * Deprecated: Use `ListKeyEvents` instead. Returns a list of conversion events in the specified + * parent property. * *

          Returns an empty list if no conversion events are found. * @@ -4768,7 +4914,9 @@ public final ListConversionEventsPagedResponse listConversionEvents(PropertyName * * @param parent Required. The resource name of the parent property. Example: 'properties/123' * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListConversionEventsPagedResponse listConversionEvents(String parent) { ListConversionEventsRequest request = ListConversionEventsRequest.newBuilder().setParent(parent).build(); @@ -4777,7 +4925,8 @@ public final ListConversionEventsPagedResponse listConversionEvents(String paren // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a list of conversion events in the specified parent property. + * Deprecated: Use `ListKeyEvents` instead. Returns a list of conversion events in the specified + * parent property. * *

          Returns an empty list if no conversion events are found. * @@ -4806,7 +4955,9 @@ public final ListConversionEventsPagedResponse listConversionEvents(String paren * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListConversionEventsPagedResponse listConversionEvents( ListConversionEventsRequest request) { return listConversionEventsPagedCallable().call(request); @@ -4814,7 +4965,8 @@ public final ListConversionEventsPagedResponse listConversionEvents( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a list of conversion events in the specified parent property. + * Deprecated: Use `ListKeyEvents` instead. Returns a list of conversion events in the specified + * parent property. * *

          Returns an empty list if no conversion events are found. * @@ -4842,7 +4994,10 @@ public final ListConversionEventsPagedResponse listConversionEvents( * } * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable listConversionEventsPagedCallable() { return stub.listConversionEventsPagedCallable(); @@ -4850,7 +5005,8 @@ public final ListConversionEventsPagedResponse listConversionEvents( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a list of conversion events in the specified parent property. + * Deprecated: Use `ListKeyEvents` instead. Returns a list of conversion events in the specified + * parent property. * *

          Returns an empty list if no conversion events are found. * @@ -4885,7 +5041,10 @@ public final ListConversionEventsPagedResponse listConversionEvents( * } * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable listConversionEventsCallable() { return stub.listConversionEventsCallable(); @@ -4893,7 +5052,7 @@ public final ListConversionEventsPagedResponse listConversionEvents( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a CustomDimension. + * Creates a Key Event. * *

          Sample code: * @@ -4906,29 +5065,28 @@ public final ListConversionEventsPagedResponse listConversionEvents( * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * PropertyName parent = PropertyName.of("[PROPERTY]"); - * CustomDimension customDimension = CustomDimension.newBuilder().build(); - * CustomDimension response = - * analyticsAdminServiceClient.createCustomDimension(parent, customDimension); + * KeyEvent keyEvent = KeyEvent.newBuilder().build(); + * KeyEvent response = analyticsAdminServiceClient.createKeyEvent(parent, keyEvent); * } * } * - * @param parent Required. Example format: properties/1234 - * @param customDimension Required. The CustomDimension to create. + * @param parent Required. The resource name of the parent property where this Key Event will be + * created. Format: properties/123 + * @param keyEvent Required. The Key Event to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomDimension createCustomDimension( - PropertyName parent, CustomDimension customDimension) { - CreateCustomDimensionRequest request = - CreateCustomDimensionRequest.newBuilder() + public final KeyEvent createKeyEvent(PropertyName parent, KeyEvent keyEvent) { + CreateKeyEventRequest request = + CreateKeyEventRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setCustomDimension(customDimension) + .setKeyEvent(keyEvent) .build(); - return createCustomDimension(request); + return createKeyEvent(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a CustomDimension. + * Creates a Key Event. * *

          Sample code: * @@ -4941,29 +5099,25 @@ public final CustomDimension createCustomDimension( * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * String parent = PropertyName.of("[PROPERTY]").toString(); - * CustomDimension customDimension = CustomDimension.newBuilder().build(); - * CustomDimension response = - * analyticsAdminServiceClient.createCustomDimension(parent, customDimension); + * KeyEvent keyEvent = KeyEvent.newBuilder().build(); + * KeyEvent response = analyticsAdminServiceClient.createKeyEvent(parent, keyEvent); * } * } * - * @param parent Required. Example format: properties/1234 - * @param customDimension Required. The CustomDimension to create. + * @param parent Required. The resource name of the parent property where this Key Event will be + * created. Format: properties/123 + * @param keyEvent Required. The Key Event to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomDimension createCustomDimension( - String parent, CustomDimension customDimension) { - CreateCustomDimensionRequest request = - CreateCustomDimensionRequest.newBuilder() - .setParent(parent) - .setCustomDimension(customDimension) - .build(); - return createCustomDimension(request); + public final KeyEvent createKeyEvent(String parent, KeyEvent keyEvent) { + CreateKeyEventRequest request = + CreateKeyEventRequest.newBuilder().setParent(parent).setKeyEvent(keyEvent).build(); + return createKeyEvent(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a CustomDimension. + * Creates a Key Event. * *

          Sample code: * @@ -4975,25 +5129,25 @@ public final CustomDimension createCustomDimension( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateCustomDimensionRequest request = - * CreateCustomDimensionRequest.newBuilder() + * CreateKeyEventRequest request = + * CreateKeyEventRequest.newBuilder() + * .setKeyEvent(KeyEvent.newBuilder().build()) * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setCustomDimension(CustomDimension.newBuilder().build()) * .build(); - * CustomDimension response = analyticsAdminServiceClient.createCustomDimension(request); + * KeyEvent response = analyticsAdminServiceClient.createKeyEvent(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 CustomDimension createCustomDimension(CreateCustomDimensionRequest request) { - return createCustomDimensionCallable().call(request); + public final KeyEvent createKeyEvent(CreateKeyEventRequest request) { + return createKeyEventCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a CustomDimension. + * Creates a Key Event. * *

          Sample code: * @@ -5005,26 +5159,25 @@ public final CustomDimension createCustomDimension(CreateCustomDimensionRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateCustomDimensionRequest request = - * CreateCustomDimensionRequest.newBuilder() + * CreateKeyEventRequest request = + * CreateKeyEventRequest.newBuilder() + * .setKeyEvent(KeyEvent.newBuilder().build()) * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setCustomDimension(CustomDimension.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createCustomDimensionCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.createKeyEventCallable().futureCall(request); * // Do something. - * CustomDimension response = future.get(); + * KeyEvent response = future.get(); * } * } */ - public final UnaryCallable - createCustomDimensionCallable() { - return stub.createCustomDimensionCallable(); + public final UnaryCallable createKeyEventCallable() { + return stub.createKeyEventCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a CustomDimension on a property. + * Updates a Key Event. * *

          Sample code: * @@ -5036,32 +5189,28 @@ public final CustomDimension createCustomDimension(CreateCustomDimensionRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CustomDimension customDimension = CustomDimension.newBuilder().build(); + * KeyEvent keyEvent = KeyEvent.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); - * CustomDimension response = - * analyticsAdminServiceClient.updateCustomDimension(customDimension, updateMask); + * KeyEvent response = analyticsAdminServiceClient.updateKeyEvent(keyEvent, updateMask); * } * } * - * @param customDimension The CustomDimension to update - * @param updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to match all - * fields. + * @param keyEvent Required. The Key Event to update. The `name` field is used to identify the + * settings to be updated. + * @param updateMask Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire + * entity, use one path with the string "*" to match all fields. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomDimension updateCustomDimension( - CustomDimension customDimension, FieldMask updateMask) { - UpdateCustomDimensionRequest request = - UpdateCustomDimensionRequest.newBuilder() - .setCustomDimension(customDimension) - .setUpdateMask(updateMask) - .build(); - return updateCustomDimension(request); + public final KeyEvent updateKeyEvent(KeyEvent keyEvent, FieldMask updateMask) { + UpdateKeyEventRequest request = + UpdateKeyEventRequest.newBuilder().setKeyEvent(keyEvent).setUpdateMask(updateMask).build(); + return updateKeyEvent(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a CustomDimension on a property. + * Updates a Key Event. * *

          Sample code: * @@ -5073,25 +5222,25 @@ public final CustomDimension updateCustomDimension( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateCustomDimensionRequest request = - * UpdateCustomDimensionRequest.newBuilder() - * .setCustomDimension(CustomDimension.newBuilder().build()) + * UpdateKeyEventRequest request = + * UpdateKeyEventRequest.newBuilder() + * .setKeyEvent(KeyEvent.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * CustomDimension response = analyticsAdminServiceClient.updateCustomDimension(request); + * KeyEvent response = analyticsAdminServiceClient.updateKeyEvent(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 CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request) { - return updateCustomDimensionCallable().call(request); + public final KeyEvent updateKeyEvent(UpdateKeyEventRequest request) { + return updateKeyEventCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a CustomDimension on a property. + * Updates a Key Event. * *

          Sample code: * @@ -5103,26 +5252,25 @@ public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateCustomDimensionRequest request = - * UpdateCustomDimensionRequest.newBuilder() - * .setCustomDimension(CustomDimension.newBuilder().build()) + * UpdateKeyEventRequest request = + * UpdateKeyEventRequest.newBuilder() + * .setKeyEvent(KeyEvent.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.updateCustomDimensionCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.updateKeyEventCallable().futureCall(request); * // Do something. - * CustomDimension response = future.get(); + * KeyEvent response = future.get(); * } * } */ - public final UnaryCallable - updateCustomDimensionCallable() { - return stub.updateCustomDimensionCallable(); + public final UnaryCallable updateKeyEventCallable() { + return stub.updateKeyEventCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomDimensions on a property. + * Retrieve a single Key Event. * *

          Sample code: * @@ -5134,28 +5282,24 @@ public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (CustomDimension element : - * analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) { - * // doThingsWith(element); - * } + * KeyEventName name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]"); + * KeyEvent response = analyticsAdminServiceClient.getKeyEvent(name); * } * } * - * @param parent Required. Example format: properties/1234 + * @param name Required. The resource name of the Key Event to retrieve. Format: + * properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName parent) { - ListCustomDimensionsRequest request = - ListCustomDimensionsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listCustomDimensions(request); + public final KeyEvent getKeyEvent(KeyEventName name) { + GetKeyEventRequest request = + GetKeyEventRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getKeyEvent(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomDimensions on a property. + * Retrieve a single Key Event. * *

          Sample code: * @@ -5167,26 +5311,23 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (CustomDimension element : - * analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString(); + * KeyEvent response = analyticsAdminServiceClient.getKeyEvent(name); * } * } * - * @param parent Required. Example format: properties/1234 + * @param name Required. The resource name of the Key Event to retrieve. Format: + * properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomDimensionsPagedResponse listCustomDimensions(String parent) { - ListCustomDimensionsRequest request = - ListCustomDimensionsRequest.newBuilder().setParent(parent).build(); - return listCustomDimensions(request); + public final KeyEvent getKeyEvent(String name) { + GetKeyEventRequest request = GetKeyEventRequest.newBuilder().setName(name).build(); + return getKeyEvent(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomDimensions on a property. + * Retrieve a single Key Event. * *

          Sample code: * @@ -5198,30 +5339,24 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions(String paren * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListCustomDimensionsRequest request = - * ListCustomDimensionsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * GetKeyEventRequest request = + * GetKeyEventRequest.newBuilder() + * .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) * .build(); - * for (CustomDimension element : - * analyticsAdminServiceClient.listCustomDimensions(request).iterateAll()) { - * // doThingsWith(element); - * } + * KeyEvent response = analyticsAdminServiceClient.getKeyEvent(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 ListCustomDimensionsPagedResponse listCustomDimensions( - ListCustomDimensionsRequest request) { - return listCustomDimensionsPagedCallable().call(request); + public final KeyEvent getKeyEvent(GetKeyEventRequest request) { + return getKeyEventCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomDimensions on a property. + * Retrieve a single Key Event. * *

          Sample code: * @@ -5233,29 +5368,24 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListCustomDimensionsRequest request = - * ListCustomDimensionsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * GetKeyEventRequest request = + * GetKeyEventRequest.newBuilder() + * .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listCustomDimensionsPagedCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getKeyEventCallable().futureCall(request); * // Do something. - * for (CustomDimension element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * KeyEvent response = future.get(); * } * } */ - public final UnaryCallable - listCustomDimensionsPagedCallable() { - return stub.listCustomDimensionsPagedCallable(); + public final UnaryCallable getKeyEventCallable() { + return stub.getKeyEventCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomDimensions on a property. + * Deletes a Key Event. * *

          Sample code: * @@ -5267,36 +5397,24 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListCustomDimensionsRequest request = - * ListCustomDimensionsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * while (true) { - * ListCustomDimensionsResponse response = - * analyticsAdminServiceClient.listCustomDimensionsCallable().call(request); - * for (CustomDimension element : response.getCustomDimensionsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * KeyEventName name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]"); + * analyticsAdminServiceClient.deleteKeyEvent(name); * } * } + * + * @param name Required. The resource name of the Key Event to delete. Format: + * properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listCustomDimensionsCallable() { - return stub.listCustomDimensionsCallable(); + public final void deleteKeyEvent(KeyEventName name) { + DeleteKeyEventRequest request = + DeleteKeyEventRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteKeyEvent(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Archives a CustomDimension on a property. + * Deletes a Key Event. * *

          Sample code: * @@ -5308,26 +5426,23 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - * analyticsAdminServiceClient.archiveCustomDimension(name); + * String name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString(); + * analyticsAdminServiceClient.deleteKeyEvent(name); * } * } * - * @param name Required. The name of the CustomDimension to archive. Example format: - * properties/1234/customDimensions/5678 + * @param name Required. The resource name of the Key Event to delete. Format: + * properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void archiveCustomDimension(CustomDimensionName name) { - ArchiveCustomDimensionRequest request = - ArchiveCustomDimensionRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - archiveCustomDimension(request); + public final void deleteKeyEvent(String name) { + DeleteKeyEventRequest request = DeleteKeyEventRequest.newBuilder().setName(name).build(); + deleteKeyEvent(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Archives a CustomDimension on a property. + * Deletes a Key Event. * *

          Sample code: * @@ -5339,24 +5454,24 @@ public final void archiveCustomDimension(CustomDimensionName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString(); - * analyticsAdminServiceClient.archiveCustomDimension(name); + * DeleteKeyEventRequest request = + * DeleteKeyEventRequest.newBuilder() + * .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + * .build(); + * analyticsAdminServiceClient.deleteKeyEvent(request); * } * } * - * @param name Required. The name of the CustomDimension to archive. Example format: - * properties/1234/customDimensions/5678 + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void archiveCustomDimension(String name) { - ArchiveCustomDimensionRequest request = - ArchiveCustomDimensionRequest.newBuilder().setName(name).build(); - archiveCustomDimension(request); + public final void deleteKeyEvent(DeleteKeyEventRequest request) { + deleteKeyEventCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Archives a CustomDimension on a property. + * Deletes a Key Event. * *

          Sample code: * @@ -5368,11 +5483,676 @@ public final void archiveCustomDimension(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ArchiveCustomDimensionRequest request = - * ArchiveCustomDimensionRequest.newBuilder() - * .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + * DeleteKeyEventRequest request = + * DeleteKeyEventRequest.newBuilder() + * .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) * .build(); - * analyticsAdminServiceClient.archiveCustomDimension(request); + * ApiFuture future = + * analyticsAdminServiceClient.deleteKeyEventCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * } + */ + public final UnaryCallable deleteKeyEventCallable() { + return stub.deleteKeyEventCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of Key Events in the specified parent property. Returns an empty list if no Key + * Events are found. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   PropertyName parent = PropertyName.of("[PROPERTY]");
          +   *   for (KeyEvent element : analyticsAdminServiceClient.listKeyEvents(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the parent property. Example: 'properties/123' + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListKeyEventsPagedResponse listKeyEvents(PropertyName parent) { + ListKeyEventsRequest request = + ListKeyEventsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listKeyEvents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of Key Events in the specified parent property. Returns an empty list if no Key + * Events are found. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   String parent = PropertyName.of("[PROPERTY]").toString();
          +   *   for (KeyEvent element : analyticsAdminServiceClient.listKeyEvents(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The resource name of the parent property. Example: 'properties/123' + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListKeyEventsPagedResponse listKeyEvents(String parent) { + ListKeyEventsRequest request = ListKeyEventsRequest.newBuilder().setParent(parent).build(); + return listKeyEvents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of Key Events in the specified parent property. Returns an empty list if no Key + * Events are found. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   ListKeyEventsRequest request =
          +   *       ListKeyEventsRequest.newBuilder()
          +   *           .setParent(PropertyName.of("[PROPERTY]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   for (KeyEvent element : analyticsAdminServiceClient.listKeyEvents(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 ListKeyEventsPagedResponse listKeyEvents(ListKeyEventsRequest request) { + return listKeyEventsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of Key Events in the specified parent property. Returns an empty list if no Key + * Events are found. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   ListKeyEventsRequest request =
          +   *       ListKeyEventsRequest.newBuilder()
          +   *           .setParent(PropertyName.of("[PROPERTY]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       analyticsAdminServiceClient.listKeyEventsPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (KeyEvent element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listKeyEventsPagedCallable() { + return stub.listKeyEventsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of Key Events in the specified parent property. Returns an empty list if no Key + * Events are found. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   ListKeyEventsRequest request =
          +   *       ListKeyEventsRequest.newBuilder()
          +   *           .setParent(PropertyName.of("[PROPERTY]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   while (true) {
          +   *     ListKeyEventsResponse response =
          +   *         analyticsAdminServiceClient.listKeyEventsCallable().call(request);
          +   *     for (KeyEvent element : response.getKeyEventsList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable listKeyEventsCallable() { + return stub.listKeyEventsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a CustomDimension. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   PropertyName parent = PropertyName.of("[PROPERTY]");
          +   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
          +   *   CustomDimension response =
          +   *       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
          +   * }
          +   * }
          + * + * @param parent Required. Example format: properties/1234 + * @param customDimension Required. The CustomDimension to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomDimension createCustomDimension( + PropertyName parent, CustomDimension customDimension) { + CreateCustomDimensionRequest request = + CreateCustomDimensionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCustomDimension(customDimension) + .build(); + return createCustomDimension(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a CustomDimension. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   String parent = PropertyName.of("[PROPERTY]").toString();
          +   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
          +   *   CustomDimension response =
          +   *       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
          +   * }
          +   * }
          + * + * @param parent Required. Example format: properties/1234 + * @param customDimension Required. The CustomDimension to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomDimension createCustomDimension( + String parent, CustomDimension customDimension) { + CreateCustomDimensionRequest request = + CreateCustomDimensionRequest.newBuilder() + .setParent(parent) + .setCustomDimension(customDimension) + .build(); + return createCustomDimension(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a CustomDimension. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   CreateCustomDimensionRequest request =
          +   *       CreateCustomDimensionRequest.newBuilder()
          +   *           .setParent(PropertyName.of("[PROPERTY]").toString())
          +   *           .setCustomDimension(CustomDimension.newBuilder().build())
          +   *           .build();
          +   *   CustomDimension response = analyticsAdminServiceClient.createCustomDimension(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 CustomDimension createCustomDimension(CreateCustomDimensionRequest request) { + return createCustomDimensionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a CustomDimension. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   CreateCustomDimensionRequest request =
          +   *       CreateCustomDimensionRequest.newBuilder()
          +   *           .setParent(PropertyName.of("[PROPERTY]").toString())
          +   *           .setCustomDimension(CustomDimension.newBuilder().build())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       analyticsAdminServiceClient.createCustomDimensionCallable().futureCall(request);
          +   *   // Do something.
          +   *   CustomDimension response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable + createCustomDimensionCallable() { + return stub.createCustomDimensionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a CustomDimension on a property. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   CustomDimension response =
          +   *       analyticsAdminServiceClient.updateCustomDimension(customDimension, updateMask);
          +   * }
          +   * }
          + * + * @param customDimension The CustomDimension to update + * @param updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to match all + * fields. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomDimension updateCustomDimension( + CustomDimension customDimension, FieldMask updateMask) { + UpdateCustomDimensionRequest request = + UpdateCustomDimensionRequest.newBuilder() + .setCustomDimension(customDimension) + .setUpdateMask(updateMask) + .build(); + return updateCustomDimension(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a CustomDimension on a property. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   UpdateCustomDimensionRequest request =
          +   *       UpdateCustomDimensionRequest.newBuilder()
          +   *           .setCustomDimension(CustomDimension.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .build();
          +   *   CustomDimension response = analyticsAdminServiceClient.updateCustomDimension(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 CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request) { + return updateCustomDimensionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a CustomDimension on a property. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   UpdateCustomDimensionRequest request =
          +   *       UpdateCustomDimensionRequest.newBuilder()
          +   *           .setCustomDimension(CustomDimension.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       analyticsAdminServiceClient.updateCustomDimensionCallable().futureCall(request);
          +   *   // Do something.
          +   *   CustomDimension response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable + updateCustomDimensionCallable() { + return stub.updateCustomDimensionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomDimensions on a property. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   PropertyName parent = PropertyName.of("[PROPERTY]");
          +   *   for (CustomDimension element :
          +   *       analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. Example format: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName parent) { + ListCustomDimensionsRequest request = + ListCustomDimensionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCustomDimensions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomDimensions on a property. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   String parent = PropertyName.of("[PROPERTY]").toString();
          +   *   for (CustomDimension element :
          +   *       analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. Example format: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCustomDimensionsPagedResponse listCustomDimensions(String parent) { + ListCustomDimensionsRequest request = + ListCustomDimensionsRequest.newBuilder().setParent(parent).build(); + return listCustomDimensions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomDimensions on a property. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   ListCustomDimensionsRequest request =
          +   *       ListCustomDimensionsRequest.newBuilder()
          +   *           .setParent(PropertyName.of("[PROPERTY]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   for (CustomDimension element :
          +   *       analyticsAdminServiceClient.listCustomDimensions(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 ListCustomDimensionsPagedResponse listCustomDimensions( + ListCustomDimensionsRequest request) { + return listCustomDimensionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomDimensions on a property. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   ListCustomDimensionsRequest request =
          +   *       ListCustomDimensionsRequest.newBuilder()
          +   *           .setParent(PropertyName.of("[PROPERTY]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       analyticsAdminServiceClient.listCustomDimensionsPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (CustomDimension element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listCustomDimensionsPagedCallable() { + return stub.listCustomDimensionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomDimensions on a property. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   ListCustomDimensionsRequest request =
          +   *       ListCustomDimensionsRequest.newBuilder()
          +   *           .setParent(PropertyName.of("[PROPERTY]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   while (true) {
          +   *     ListCustomDimensionsResponse response =
          +   *         analyticsAdminServiceClient.listCustomDimensionsCallable().call(request);
          +   *     for (CustomDimension element : response.getCustomDimensionsList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listCustomDimensionsCallable() { + return stub.listCustomDimensionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a CustomDimension on a property. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]");
          +   *   analyticsAdminServiceClient.archiveCustomDimension(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the CustomDimension to archive. Example format: + * properties/1234/customDimensions/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void archiveCustomDimension(CustomDimensionName name) { + ArchiveCustomDimensionRequest request = + ArchiveCustomDimensionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + archiveCustomDimension(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a CustomDimension on a property. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   String name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString();
          +   *   analyticsAdminServiceClient.archiveCustomDimension(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the CustomDimension to archive. Example format: + * properties/1234/customDimensions/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void archiveCustomDimension(String name) { + ArchiveCustomDimensionRequest request = + ArchiveCustomDimensionRequest.newBuilder().setName(name).build(); + archiveCustomDimension(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a CustomDimension on a property. + * + *

          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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
          +   *     AnalyticsAdminServiceClient.create()) {
          +   *   ArchiveCustomDimensionRequest request =
          +   *       ArchiveCustomDimensionRequest.newBuilder()
          +   *           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
          +   *           .build();
          +   *   analyticsAdminServiceClient.archiveCustomDimension(request);
              * }
              * }
          * @@ -7007,8 +7787,9 @@ public final UnaryCallable getDataStreamCallab * Returns a customized report of data access records. The report provides records of each time a * user reads Google Analytics reporting data. Access records are retained for up to 2 years. * - *

          Data Access Reports can be requested for a property. The property must be in Google - * Analytics 360. This method is only available to Administrators. + *

          Data Access Reports can be requested for a property. Reports may be requested for any + * property, but dimensions that aren't related to quota can only be requested on Google Analytics + * 360 properties. This method is only available to Administrators. * *

          These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and * other products like Firebase & Admob that can retrieve data from Google Analytics through a @@ -7039,6 +7820,8 @@ public final UnaryCallable getDataStreamCallab * .setTimeZone("timeZone-2077180903") * .addAllOrderBys(new ArrayList()) * .setReturnEntityQuota(true) + * .setIncludeAllUsers(true) + * .setExpandGroups(true) * .build(); * RunAccessReportResponse response = analyticsAdminServiceClient.runAccessReport(request); * } @@ -7056,8 +7839,9 @@ public final RunAccessReportResponse runAccessReport(RunAccessReportRequest requ * Returns a customized report of data access records. The report provides records of each time a * user reads Google Analytics reporting data. Access records are retained for up to 2 years. * - *

          Data Access Reports can be requested for a property. The property must be in Google - * Analytics 360. This method is only available to Administrators. + *

          Data Access Reports can be requested for a property. Reports may be requested for any + * property, but dimensions that aren't related to quota can only be requested on Google Analytics + * 360 properties. This method is only available to Administrators. * *

          These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and * other products like Firebase & Admob that can retrieve data from Google Analytics through a @@ -7088,6 +7872,8 @@ public final RunAccessReportResponse runAccessReport(RunAccessReportRequest requ * .setTimeZone("timeZone-2077180903") * .addAllOrderBys(new ArrayList()) * .setReturnEntityQuota(true) + * .setIncludeAllUsers(true) + * .setExpandGroups(true) * .build(); * ApiFuture future = * analyticsAdminServiceClient.runAccessReportCallable().futureCall(request); @@ -7803,6 +8589,82 @@ protected ListConversionEventsFixedSizeCollection createCollection( } } + public static class ListKeyEventsPagedResponse + extends AbstractPagedListResponse< + ListKeyEventsRequest, + ListKeyEventsResponse, + KeyEvent, + ListKeyEventsPage, + ListKeyEventsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListKeyEventsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListKeyEventsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListKeyEventsPagedResponse(ListKeyEventsPage page) { + super(page, ListKeyEventsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListKeyEventsPage + extends AbstractPage< + ListKeyEventsRequest, ListKeyEventsResponse, KeyEvent, ListKeyEventsPage> { + + private ListKeyEventsPage( + PageContext context, + ListKeyEventsResponse response) { + super(context, response); + } + + private static ListKeyEventsPage createEmptyPage() { + return new ListKeyEventsPage(null, null); + } + + @Override + protected ListKeyEventsPage createPage( + PageContext context, + ListKeyEventsResponse response) { + return new ListKeyEventsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListKeyEventsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListKeyEventsRequest, + ListKeyEventsResponse, + KeyEvent, + ListKeyEventsPage, + ListKeyEventsFixedSizeCollection> { + + private ListKeyEventsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListKeyEventsFixedSizeCollection createEmptyCollection() { + return new ListKeyEventsFixedSizeCollection(null, 0); + } + + @Override + protected ListKeyEventsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListKeyEventsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListCustomDimensionsPagedResponse extends AbstractPagedListResponse< ListCustomDimensionsRequest, diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java index dea4c1e42bb0..a78342f90efb 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java @@ -24,6 +24,7 @@ import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListKeyEventsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; @@ -255,30 +256,55 @@ public UnaryCallSettings deleteGoogleAdsLinkS .searchChangeHistoryEventsSettings(); } - /** Returns the object with the settings used for calls to createConversionEvent. */ + /** + * Returns the object with the settings used for calls to createConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings createConversionEventSettings() { return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createConversionEventSettings(); } - /** Returns the object with the settings used for calls to updateConversionEvent. */ + /** + * Returns the object with the settings used for calls to updateConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings updateConversionEventSettings() { return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateConversionEventSettings(); } - /** Returns the object with the settings used for calls to getConversionEvent. */ + /** + * Returns the object with the settings used for calls to getConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getConversionEventSettings() { return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getConversionEventSettings(); } - /** Returns the object with the settings used for calls to deleteConversionEvent. */ + /** + * Returns the object with the settings used for calls to deleteConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings deleteConversionEventSettings() { return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteConversionEventSettings(); } - /** Returns the object with the settings used for calls to listConversionEvents. */ + /** + * Returns the object with the settings used for calls to listConversionEvents. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListConversionEventsRequest, ListConversionEventsResponse, @@ -287,6 +313,32 @@ public UnaryCallSettings deleteConversionEv return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listConversionEventsSettings(); } + /** Returns the object with the settings used for calls to createKeyEvent. */ + public UnaryCallSettings createKeyEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createKeyEventSettings(); + } + + /** Returns the object with the settings used for calls to updateKeyEvent. */ + public UnaryCallSettings updateKeyEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateKeyEventSettings(); + } + + /** Returns the object with the settings used for calls to getKeyEvent. */ + public UnaryCallSettings getKeyEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getKeyEventSettings(); + } + + /** Returns the object with the settings used for calls to deleteKeyEvent. */ + public UnaryCallSettings deleteKeyEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteKeyEventSettings(); + } + + /** Returns the object with the settings used for calls to listKeyEvents. */ + public PagedCallSettings + listKeyEventsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listKeyEventsSettings(); + } + /** Returns the object with the settings used for calls to createCustomDimension. */ public UnaryCallSettings createCustomDimensionSettings() { @@ -671,31 +723,56 @@ public UnaryCallSettings.Builder updateProperty return getStubSettingsBuilder().searchChangeHistoryEventsSettings(); } - /** Returns the builder for the settings used for calls to createConversionEvent. */ + /** + * Returns the builder for the settings used for calls to createConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder createConversionEventSettings() { return getStubSettingsBuilder().createConversionEventSettings(); } - /** Returns the builder for the settings used for calls to updateConversionEvent. */ + /** + * Returns the builder for the settings used for calls to updateConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder updateConversionEventSettings() { return getStubSettingsBuilder().updateConversionEventSettings(); } - /** Returns the builder for the settings used for calls to getConversionEvent. */ + /** + * Returns the builder for the settings used for calls to getConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getConversionEventSettings() { return getStubSettingsBuilder().getConversionEventSettings(); } - /** Returns the builder for the settings used for calls to deleteConversionEvent. */ + /** + * Returns the builder for the settings used for calls to deleteConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder deleteConversionEventSettings() { return getStubSettingsBuilder().deleteConversionEventSettings(); } - /** Returns the builder for the settings used for calls to listConversionEvents. */ + /** + * Returns the builder for the settings used for calls to listConversionEvents. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListConversionEventsRequest, ListConversionEventsResponse, @@ -704,6 +781,33 @@ public UnaryCallSettings.Builder updateProperty return getStubSettingsBuilder().listConversionEventsSettings(); } + /** Returns the builder for the settings used for calls to createKeyEvent. */ + public UnaryCallSettings.Builder createKeyEventSettings() { + return getStubSettingsBuilder().createKeyEventSettings(); + } + + /** Returns the builder for the settings used for calls to updateKeyEvent. */ + public UnaryCallSettings.Builder updateKeyEventSettings() { + return getStubSettingsBuilder().updateKeyEventSettings(); + } + + /** Returns the builder for the settings used for calls to getKeyEvent. */ + public UnaryCallSettings.Builder getKeyEventSettings() { + return getStubSettingsBuilder().getKeyEventSettings(); + } + + /** Returns the builder for the settings used for calls to deleteKeyEvent. */ + public UnaryCallSettings.Builder deleteKeyEventSettings() { + return getStubSettingsBuilder().deleteKeyEventSettings(); + } + + /** Returns the builder for the settings used for calls to listKeyEvents. */ + public PagedCallSettings.Builder< + ListKeyEventsRequest, ListKeyEventsResponse, ListKeyEventsPagedResponse> + listKeyEventsSettings() { + return getStubSettingsBuilder().listKeyEventsSettings(); + } + /** Returns the builder for the settings used for calls to createCustomDimension. */ public UnaryCallSettings.Builder createCustomDimensionSettings() { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/gapic_metadata.json b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/gapic_metadata.json index b4cc847a45d9..f270e1f067b7 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/gapic_metadata.json +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/gapic_metadata.json @@ -37,6 +37,9 @@ "CreateGoogleAdsLink": { "methods": ["createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLinkCallable"] }, + "CreateKeyEvent": { + "methods": ["createKeyEvent", "createKeyEvent", "createKeyEvent", "createKeyEventCallable"] + }, "CreateMeasurementProtocolSecret": { "methods": ["createMeasurementProtocolSecret", "createMeasurementProtocolSecret", "createMeasurementProtocolSecret", "createMeasurementProtocolSecretCallable"] }, @@ -58,6 +61,9 @@ "DeleteGoogleAdsLink": { "methods": ["deleteGoogleAdsLink", "deleteGoogleAdsLink", "deleteGoogleAdsLink", "deleteGoogleAdsLinkCallable"] }, + "DeleteKeyEvent": { + "methods": ["deleteKeyEvent", "deleteKeyEvent", "deleteKeyEvent", "deleteKeyEventCallable"] + }, "DeleteMeasurementProtocolSecret": { "methods": ["deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecretCallable"] }, @@ -85,6 +91,9 @@ "GetDataStream": { "methods": ["getDataStream", "getDataStream", "getDataStream", "getDataStreamCallable"] }, + "GetKeyEvent": { + "methods": ["getKeyEvent", "getKeyEvent", "getKeyEvent", "getKeyEventCallable"] + }, "GetMeasurementProtocolSecret": { "methods": ["getMeasurementProtocolSecret", "getMeasurementProtocolSecret", "getMeasurementProtocolSecret", "getMeasurementProtocolSecretCallable"] }, @@ -115,6 +124,9 @@ "ListGoogleAdsLinks": { "methods": ["listGoogleAdsLinks", "listGoogleAdsLinks", "listGoogleAdsLinks", "listGoogleAdsLinksPagedCallable", "listGoogleAdsLinksCallable"] }, + "ListKeyEvents": { + "methods": ["listKeyEvents", "listKeyEvents", "listKeyEvents", "listKeyEventsPagedCallable", "listKeyEventsCallable"] + }, "ListMeasurementProtocolSecrets": { "methods": ["listMeasurementProtocolSecrets", "listMeasurementProtocolSecrets", "listMeasurementProtocolSecrets", "listMeasurementProtocolSecretsPagedCallable", "listMeasurementProtocolSecretsCallable"] }, @@ -151,6 +163,9 @@ "UpdateGoogleAdsLink": { "methods": ["updateGoogleAdsLink", "updateGoogleAdsLink", "updateGoogleAdsLinkCallable"] }, + "UpdateKeyEvent": { + "methods": ["updateKeyEvent", "updateKeyEvent", "updateKeyEventCallable"] + }, "UpdateMeasurementProtocolSecret": { "methods": ["updateMeasurementProtocolSecret", "updateMeasurementProtocolSecret", "updateMeasurementProtocolSecretCallable"] }, diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStub.java index f8effff3182f..f671e616e84b 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStub.java @@ -24,6 +24,7 @@ import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListKeyEventsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; @@ -40,6 +41,7 @@ import com.google.analytics.admin.v1beta.CreateDataStreamRequest; import com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.CreateKeyEventRequest; import com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.CreatePropertyRequest; import com.google.analytics.admin.v1beta.CustomDimension; @@ -52,6 +54,7 @@ import com.google.analytics.admin.v1beta.DeleteDataStreamRequest; import com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.DeleteKeyEventRequest; import com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.DeletePropertyRequest; import com.google.analytics.admin.v1beta.FirebaseLink; @@ -62,9 +65,11 @@ import com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest; import com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest; import com.google.analytics.admin.v1beta.GetDataStreamRequest; +import com.google.analytics.admin.v1beta.GetKeyEventRequest; import com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.GetPropertyRequest; import com.google.analytics.admin.v1beta.GoogleAdsLink; +import com.google.analytics.admin.v1beta.KeyEvent; import com.google.analytics.admin.v1beta.ListAccountSummariesRequest; import com.google.analytics.admin.v1beta.ListAccountSummariesResponse; import com.google.analytics.admin.v1beta.ListAccountsRequest; @@ -81,6 +86,8 @@ import com.google.analytics.admin.v1beta.ListFirebaseLinksResponse; import com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest; import com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse; +import com.google.analytics.admin.v1beta.ListKeyEventsRequest; +import com.google.analytics.admin.v1beta.ListKeyEventsResponse; import com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest; import com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse; import com.google.analytics.admin.v1beta.ListPropertiesRequest; @@ -100,6 +107,7 @@ import com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest; import com.google.analytics.admin.v1beta.UpdateDataStreamRequest; import com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.UpdateKeyEventRequest; import com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.UpdatePropertyRequest; import com.google.api.core.BetaApi; @@ -278,34 +286,65 @@ public UnaryCallable deleteGoogleAdsLinkCalla throw new UnsupportedOperationException("Not implemented: searchChangeHistoryEventsCallable()"); } + @Deprecated public UnaryCallable createConversionEventCallable() { throw new UnsupportedOperationException("Not implemented: createConversionEventCallable()"); } + @Deprecated public UnaryCallable updateConversionEventCallable() { throw new UnsupportedOperationException("Not implemented: updateConversionEventCallable()"); } + @Deprecated public UnaryCallable getConversionEventCallable() { throw new UnsupportedOperationException("Not implemented: getConversionEventCallable()"); } + @Deprecated public UnaryCallable deleteConversionEventCallable() { throw new UnsupportedOperationException("Not implemented: deleteConversionEventCallable()"); } + @Deprecated public UnaryCallable listConversionEventsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listConversionEventsPagedCallable()"); } + @Deprecated public UnaryCallable listConversionEventsCallable() { throw new UnsupportedOperationException("Not implemented: listConversionEventsCallable()"); } + public UnaryCallable createKeyEventCallable() { + throw new UnsupportedOperationException("Not implemented: createKeyEventCallable()"); + } + + public UnaryCallable updateKeyEventCallable() { + throw new UnsupportedOperationException("Not implemented: updateKeyEventCallable()"); + } + + public UnaryCallable getKeyEventCallable() { + throw new UnsupportedOperationException("Not implemented: getKeyEventCallable()"); + } + + public UnaryCallable deleteKeyEventCallable() { + throw new UnsupportedOperationException("Not implemented: deleteKeyEventCallable()"); + } + + public UnaryCallable + listKeyEventsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listKeyEventsPagedCallable()"); + } + + public UnaryCallable listKeyEventsCallable() { + throw new UnsupportedOperationException("Not implemented: listKeyEventsCallable()"); + } + public UnaryCallable createCustomDimensionCallable() { throw new UnsupportedOperationException("Not implemented: createCustomDimensionCallable()"); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java index dd46c267a34b..f1b59e2604f3 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java @@ -24,6 +24,7 @@ import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListKeyEventsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; @@ -42,6 +43,7 @@ import com.google.analytics.admin.v1beta.CreateDataStreamRequest; import com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.CreateKeyEventRequest; import com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.CreatePropertyRequest; import com.google.analytics.admin.v1beta.CustomDimension; @@ -54,6 +56,7 @@ import com.google.analytics.admin.v1beta.DeleteDataStreamRequest; import com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.DeleteKeyEventRequest; import com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.DeletePropertyRequest; import com.google.analytics.admin.v1beta.FirebaseLink; @@ -64,9 +67,11 @@ import com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest; import com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest; import com.google.analytics.admin.v1beta.GetDataStreamRequest; +import com.google.analytics.admin.v1beta.GetKeyEventRequest; import com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.GetPropertyRequest; import com.google.analytics.admin.v1beta.GoogleAdsLink; +import com.google.analytics.admin.v1beta.KeyEvent; import com.google.analytics.admin.v1beta.ListAccountSummariesRequest; import com.google.analytics.admin.v1beta.ListAccountSummariesResponse; import com.google.analytics.admin.v1beta.ListAccountsRequest; @@ -83,6 +88,8 @@ import com.google.analytics.admin.v1beta.ListFirebaseLinksResponse; import com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest; import com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse; +import com.google.analytics.admin.v1beta.ListKeyEventsRequest; +import com.google.analytics.admin.v1beta.ListKeyEventsResponse; import com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest; import com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse; import com.google.analytics.admin.v1beta.ListPropertiesRequest; @@ -102,11 +109,13 @@ import com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest; import com.google.analytics.admin.v1beta.UpdateDataStreamRequest; import com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.UpdateKeyEventRequest; import com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.UpdatePropertyRequest; 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; @@ -259,6 +268,13 @@ public class AnalyticsAdminServiceStubSettings ListConversionEventsResponse, ListConversionEventsPagedResponse> listConversionEventsSettings; + private final UnaryCallSettings createKeyEventSettings; + private final UnaryCallSettings updateKeyEventSettings; + private final UnaryCallSettings getKeyEventSettings; + private final UnaryCallSettings deleteKeyEventSettings; + private final PagedCallSettings< + ListKeyEventsRequest, ListKeyEventsResponse, ListKeyEventsPagedResponse> + listKeyEventsSettings; private final UnaryCallSettings createCustomDimensionSettings; private final UnaryCallSettings @@ -625,6 +641,42 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor + LIST_KEY_EVENTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListKeyEventsRequest injectToken(ListKeyEventsRequest payload, String token) { + return ListKeyEventsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListKeyEventsRequest injectPageSize(ListKeyEventsRequest payload, int pageSize) { + return ListKeyEventsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListKeyEventsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListKeyEventsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListKeyEventsResponse payload) { + return payload.getKeyEventsList() == null + ? ImmutableList.of() + : payload.getKeyEventsList(); + } + }; + private static final PagedListDescriptor< ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension> LIST_CUSTOM_DIMENSIONS_PAGE_STR_DESC = @@ -929,6 +981,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListKeyEventsRequest, ListKeyEventsResponse, ListKeyEventsPagedResponse> + LIST_KEY_EVENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListKeyEventsRequest, ListKeyEventsResponse, ListKeyEventsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListKeyEventsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_KEY_EVENTS_PAGE_STR_DESC, request, context); + return ListKeyEventsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListCustomDimensionsRequest, ListCustomDimensionsResponse, @@ -1150,30 +1219,55 @@ public UnaryCallSettings deleteGoogleAdsLinkS return searchChangeHistoryEventsSettings; } - /** Returns the object with the settings used for calls to createConversionEvent. */ + /** + * Returns the object with the settings used for calls to createConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings createConversionEventSettings() { return createConversionEventSettings; } - /** Returns the object with the settings used for calls to updateConversionEvent. */ + /** + * Returns the object with the settings used for calls to updateConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings updateConversionEventSettings() { return updateConversionEventSettings; } - /** Returns the object with the settings used for calls to getConversionEvent. */ + /** + * Returns the object with the settings used for calls to getConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getConversionEventSettings() { return getConversionEventSettings; } - /** Returns the object with the settings used for calls to deleteConversionEvent. */ + /** + * Returns the object with the settings used for calls to deleteConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings deleteConversionEventSettings() { return deleteConversionEventSettings; } - /** Returns the object with the settings used for calls to listConversionEvents. */ + /** + * Returns the object with the settings used for calls to listConversionEvents. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListConversionEventsRequest, ListConversionEventsResponse, @@ -1182,6 +1276,32 @@ public UnaryCallSettings deleteConversionEv return listConversionEventsSettings; } + /** Returns the object with the settings used for calls to createKeyEvent. */ + public UnaryCallSettings createKeyEventSettings() { + return createKeyEventSettings; + } + + /** Returns the object with the settings used for calls to updateKeyEvent. */ + public UnaryCallSettings updateKeyEventSettings() { + return updateKeyEventSettings; + } + + /** Returns the object with the settings used for calls to getKeyEvent. */ + public UnaryCallSettings getKeyEventSettings() { + return getKeyEventSettings; + } + + /** Returns the object with the settings used for calls to deleteKeyEvent. */ + public UnaryCallSettings deleteKeyEventSettings() { + return deleteKeyEventSettings; + } + + /** Returns the object with the settings used for calls to listKeyEvents. */ + public PagedCallSettings + listKeyEventsSettings() { + return listKeyEventsSettings; + } + /** Returns the object with the settings used for calls to createCustomDimension. */ public UnaryCallSettings createCustomDimensionSettings() { @@ -1314,6 +1434,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "analyticsadmin.googleapis.com:443"; } @@ -1433,6 +1554,11 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx getConversionEventSettings = settingsBuilder.getConversionEventSettings().build(); deleteConversionEventSettings = settingsBuilder.deleteConversionEventSettings().build(); listConversionEventsSettings = settingsBuilder.listConversionEventsSettings().build(); + createKeyEventSettings = settingsBuilder.createKeyEventSettings().build(); + updateKeyEventSettings = settingsBuilder.updateKeyEventSettings().build(); + getKeyEventSettings = settingsBuilder.getKeyEventSettings().build(); + deleteKeyEventSettings = settingsBuilder.deleteKeyEventSettings().build(); + listKeyEventsSettings = settingsBuilder.listKeyEventsSettings().build(); createCustomDimensionSettings = settingsBuilder.createCustomDimensionSettings().build(); updateCustomDimensionSettings = settingsBuilder.updateCustomDimensionSettings().build(); listCustomDimensionsSettings = settingsBuilder.listCustomDimensionsSettings().build(); @@ -1534,6 +1660,13 @@ public static class Builder ListConversionEventsResponse, ListConversionEventsPagedResponse> listConversionEventsSettings; + private final UnaryCallSettings.Builder createKeyEventSettings; + private final UnaryCallSettings.Builder updateKeyEventSettings; + private final UnaryCallSettings.Builder getKeyEventSettings; + private final UnaryCallSettings.Builder deleteKeyEventSettings; + private final PagedCallSettings.Builder< + ListKeyEventsRequest, ListKeyEventsResponse, ListKeyEventsPagedResponse> + listKeyEventsSettings; private final UnaryCallSettings.Builder createCustomDimensionSettings; private final UnaryCallSettings.Builder @@ -1651,6 +1784,11 @@ protected Builder(ClientContext clientContext) { deleteConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listConversionEventsSettings = PagedCallSettings.newBuilder(LIST_CONVERSION_EVENTS_PAGE_STR_FACT); + createKeyEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateKeyEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getKeyEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteKeyEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listKeyEventsSettings = PagedCallSettings.newBuilder(LIST_KEY_EVENTS_PAGE_STR_FACT); createCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listCustomDimensionsSettings = @@ -1704,6 +1842,11 @@ protected Builder(ClientContext clientContext) { getConversionEventSettings, deleteConversionEventSettings, listConversionEventsSettings, + createKeyEventSettings, + updateKeyEventSettings, + getKeyEventSettings, + deleteKeyEventSettings, + listKeyEventsSettings, createCustomDimensionSettings, updateCustomDimensionSettings, listCustomDimensionsSettings, @@ -1765,6 +1908,11 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getConversionEventSettings = settings.getConversionEventSettings.toBuilder(); deleteConversionEventSettings = settings.deleteConversionEventSettings.toBuilder(); listConversionEventsSettings = settings.listConversionEventsSettings.toBuilder(); + createKeyEventSettings = settings.createKeyEventSettings.toBuilder(); + updateKeyEventSettings = settings.updateKeyEventSettings.toBuilder(); + getKeyEventSettings = settings.getKeyEventSettings.toBuilder(); + deleteKeyEventSettings = settings.deleteKeyEventSettings.toBuilder(); + listKeyEventsSettings = settings.listKeyEventsSettings.toBuilder(); createCustomDimensionSettings = settings.createCustomDimensionSettings.toBuilder(); updateCustomDimensionSettings = settings.updateCustomDimensionSettings.toBuilder(); listCustomDimensionsSettings = settings.listCustomDimensionsSettings.toBuilder(); @@ -1818,6 +1966,11 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getConversionEventSettings, deleteConversionEventSettings, listConversionEventsSettings, + createKeyEventSettings, + updateKeyEventSettings, + getKeyEventSettings, + deleteKeyEventSettings, + listKeyEventsSettings, createCustomDimensionSettings, updateCustomDimensionSettings, listCustomDimensionsSettings, @@ -2018,6 +2171,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .createKeyEventSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateKeyEventSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getKeyEventSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteKeyEventSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listKeyEventsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createCustomDimensionSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -2291,31 +2469,56 @@ public UnaryCallSettings.Builder updateProperty return searchChangeHistoryEventsSettings; } - /** Returns the builder for the settings used for calls to createConversionEvent. */ + /** + * Returns the builder for the settings used for calls to createConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder createConversionEventSettings() { return createConversionEventSettings; } - /** Returns the builder for the settings used for calls to updateConversionEvent. */ + /** + * Returns the builder for the settings used for calls to updateConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder updateConversionEventSettings() { return updateConversionEventSettings; } - /** Returns the builder for the settings used for calls to getConversionEvent. */ + /** + * Returns the builder for the settings used for calls to getConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getConversionEventSettings() { return getConversionEventSettings; } - /** Returns the builder for the settings used for calls to deleteConversionEvent. */ + /** + * Returns the builder for the settings used for calls to deleteConversionEvent. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder deleteConversionEventSettings() { return deleteConversionEventSettings; } - /** Returns the builder for the settings used for calls to listConversionEvents. */ + /** + * Returns the builder for the settings used for calls to listConversionEvents. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListConversionEventsRequest, ListConversionEventsResponse, @@ -2324,6 +2527,33 @@ public UnaryCallSettings.Builder updateProperty return listConversionEventsSettings; } + /** Returns the builder for the settings used for calls to createKeyEvent. */ + public UnaryCallSettings.Builder createKeyEventSettings() { + return createKeyEventSettings; + } + + /** Returns the builder for the settings used for calls to updateKeyEvent. */ + public UnaryCallSettings.Builder updateKeyEventSettings() { + return updateKeyEventSettings; + } + + /** Returns the builder for the settings used for calls to getKeyEvent. */ + public UnaryCallSettings.Builder getKeyEventSettings() { + return getKeyEventSettings; + } + + /** Returns the builder for the settings used for calls to deleteKeyEvent. */ + public UnaryCallSettings.Builder deleteKeyEventSettings() { + return deleteKeyEventSettings; + } + + /** Returns the builder for the settings used for calls to listKeyEvents. */ + public PagedCallSettings.Builder< + ListKeyEventsRequest, ListKeyEventsResponse, ListKeyEventsPagedResponse> + listKeyEventsSettings() { + return listKeyEventsSettings; + } + /** Returns the builder for the settings used for calls to createCustomDimension. */ public UnaryCallSettings.Builder createCustomDimensionSettings() { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceStub.java index 8562798d9ce7..02f655b48ae4 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceStub.java @@ -24,6 +24,7 @@ import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListKeyEventsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; @@ -40,6 +41,7 @@ import com.google.analytics.admin.v1beta.CreateDataStreamRequest; import com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.CreateKeyEventRequest; import com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.CreatePropertyRequest; import com.google.analytics.admin.v1beta.CustomDimension; @@ -52,6 +54,7 @@ import com.google.analytics.admin.v1beta.DeleteDataStreamRequest; import com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.DeleteKeyEventRequest; import com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.DeletePropertyRequest; import com.google.analytics.admin.v1beta.FirebaseLink; @@ -62,9 +65,11 @@ import com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest; import com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest; import com.google.analytics.admin.v1beta.GetDataStreamRequest; +import com.google.analytics.admin.v1beta.GetKeyEventRequest; import com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.GetPropertyRequest; import com.google.analytics.admin.v1beta.GoogleAdsLink; +import com.google.analytics.admin.v1beta.KeyEvent; import com.google.analytics.admin.v1beta.ListAccountSummariesRequest; import com.google.analytics.admin.v1beta.ListAccountSummariesResponse; import com.google.analytics.admin.v1beta.ListAccountsRequest; @@ -81,6 +86,8 @@ import com.google.analytics.admin.v1beta.ListFirebaseLinksResponse; import com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest; import com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse; +import com.google.analytics.admin.v1beta.ListKeyEventsRequest; +import com.google.analytics.admin.v1beta.ListKeyEventsResponse; import com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest; import com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse; import com.google.analytics.admin.v1beta.ListPropertiesRequest; @@ -100,6 +107,7 @@ import com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest; import com.google.analytics.admin.v1beta.UpdateDataStreamRequest; import com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.UpdateKeyEventRequest; import com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.UpdatePropertyRequest; import com.google.api.core.BetaApi; @@ -491,6 +499,59 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { ProtoUtils.marshaller(ListConversionEventsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + createKeyEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/CreateKeyEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateKeyEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(KeyEvent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateKeyEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateKeyEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateKeyEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(KeyEvent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getKeyEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.analytics.admin.v1beta.AnalyticsAdminService/GetKeyEvent") + .setRequestMarshaller(ProtoUtils.marshaller(GetKeyEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(KeyEvent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteKeyEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteKeyEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteKeyEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listKeyEventsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/ListKeyEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(ListKeyEventsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListKeyEventsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor createCustomDimensionMethodDescriptor = MethodDescriptor.newBuilder() @@ -764,6 +825,13 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { listConversionEventsCallable; private final UnaryCallable listConversionEventsPagedCallable; + private final UnaryCallable createKeyEventCallable; + private final UnaryCallable updateKeyEventCallable; + private final UnaryCallable getKeyEventCallable; + private final UnaryCallable deleteKeyEventCallable; + private final UnaryCallable listKeyEventsCallable; + private final UnaryCallable + listKeyEventsPagedCallable; private final UnaryCallable createCustomDimensionCallable; private final UnaryCallable @@ -1156,6 +1224,56 @@ protected GrpcAnalyticsAdminServiceStub( return builder.build(); }) .build(); + GrpcCallSettings createKeyEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createKeyEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateKeyEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateKeyEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("key_event.name", String.valueOf(request.getKeyEvent().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getKeyEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getKeyEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteKeyEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteKeyEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listKeyEventsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listKeyEventsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings createCustomDimensionTransportSettings = GrpcCallSettings.newBuilder() @@ -1525,6 +1643,24 @@ protected GrpcAnalyticsAdminServiceStub( listConversionEventsTransportSettings, settings.listConversionEventsSettings(), clientContext); + this.createKeyEventCallable = + callableFactory.createUnaryCallable( + createKeyEventTransportSettings, settings.createKeyEventSettings(), clientContext); + this.updateKeyEventCallable = + callableFactory.createUnaryCallable( + updateKeyEventTransportSettings, settings.updateKeyEventSettings(), clientContext); + this.getKeyEventCallable = + callableFactory.createUnaryCallable( + getKeyEventTransportSettings, settings.getKeyEventSettings(), clientContext); + this.deleteKeyEventCallable = + callableFactory.createUnaryCallable( + deleteKeyEventTransportSettings, settings.deleteKeyEventSettings(), clientContext); + this.listKeyEventsCallable = + callableFactory.createUnaryCallable( + listKeyEventsTransportSettings, settings.listKeyEventsSettings(), clientContext); + this.listKeyEventsPagedCallable = + callableFactory.createPagedCallable( + listKeyEventsTransportSettings, settings.listKeyEventsSettings(), clientContext); this.createCustomDimensionCallable = callableFactory.createUnaryCallable( createCustomDimensionTransportSettings, @@ -1842,6 +1978,37 @@ public UnaryCallable deleteConversionEventC return listConversionEventsPagedCallable; } + @Override + public UnaryCallable createKeyEventCallable() { + return createKeyEventCallable; + } + + @Override + public UnaryCallable updateKeyEventCallable() { + return updateKeyEventCallable; + } + + @Override + public UnaryCallable getKeyEventCallable() { + return getKeyEventCallable; + } + + @Override + public UnaryCallable deleteKeyEventCallable() { + return deleteKeyEventCallable; + } + + @Override + public UnaryCallable listKeyEventsCallable() { + return listKeyEventsCallable; + } + + @Override + public UnaryCallable + listKeyEventsPagedCallable() { + return listKeyEventsPagedCallable; + } + @Override public UnaryCallable createCustomDimensionCallable() { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceStub.java index 4d8b76a70ebc..8f68b0915636 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceStub.java @@ -24,6 +24,7 @@ import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListKeyEventsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; @@ -40,6 +41,7 @@ import com.google.analytics.admin.v1beta.CreateDataStreamRequest; import com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.CreateKeyEventRequest; import com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.CreatePropertyRequest; import com.google.analytics.admin.v1beta.CustomDimension; @@ -52,6 +54,7 @@ import com.google.analytics.admin.v1beta.DeleteDataStreamRequest; import com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.DeleteKeyEventRequest; import com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.DeletePropertyRequest; import com.google.analytics.admin.v1beta.FirebaseLink; @@ -62,9 +65,11 @@ import com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest; import com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest; import com.google.analytics.admin.v1beta.GetDataStreamRequest; +import com.google.analytics.admin.v1beta.GetKeyEventRequest; import com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.GetPropertyRequest; import com.google.analytics.admin.v1beta.GoogleAdsLink; +import com.google.analytics.admin.v1beta.KeyEvent; import com.google.analytics.admin.v1beta.ListAccountSummariesRequest; import com.google.analytics.admin.v1beta.ListAccountSummariesResponse; import com.google.analytics.admin.v1beta.ListAccountsRequest; @@ -81,6 +86,8 @@ import com.google.analytics.admin.v1beta.ListFirebaseLinksResponse; import com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest; import com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse; +import com.google.analytics.admin.v1beta.ListKeyEventsRequest; +import com.google.analytics.admin.v1beta.ListKeyEventsResponse; import com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest; import com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse; import com.google.analytics.admin.v1beta.ListPropertiesRequest; @@ -100,6 +107,7 @@ import com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest; import com.google.analytics.admin.v1beta.UpdateDataStreamRequest; import com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.UpdateKeyEventRequest; import com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1beta.UpdatePropertyRequest; import com.google.api.core.BetaApi; @@ -1312,6 +1320,190 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); + private static final ApiMethodDescriptor + createKeyEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/CreateKeyEvent") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=properties/*}/keyEvents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("keyEvent", request.getKeyEvent(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(KeyEvent.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateKeyEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateKeyEvent") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{keyEvent.name=properties/*/keyEvents/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "keyEvent.name", request.getKeyEvent().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("keyEvent", request.getKeyEvent(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(KeyEvent.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getKeyEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.analytics.admin.v1beta.AnalyticsAdminService/GetKeyEvent") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=properties/*/keyEvents/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(KeyEvent.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteKeyEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteKeyEvent") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=properties/*/keyEvents/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listKeyEventsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/ListKeyEvents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=properties/*}/keyEvents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListKeyEventsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor createCustomDimensionMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -2067,6 +2259,13 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub listConversionEventsCallable; private final UnaryCallable listConversionEventsPagedCallable; + private final UnaryCallable createKeyEventCallable; + private final UnaryCallable updateKeyEventCallable; + private final UnaryCallable getKeyEventCallable; + private final UnaryCallable deleteKeyEventCallable; + private final UnaryCallable listKeyEventsCallable; + private final UnaryCallable + listKeyEventsPagedCallable; private final UnaryCallable createCustomDimensionCallable; private final UnaryCallable @@ -2496,6 +2695,62 @@ protected HttpJsonAnalyticsAdminServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings createKeyEventTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createKeyEventMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateKeyEventTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateKeyEventMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("key_event.name", String.valueOf(request.getKeyEvent().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getKeyEventTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getKeyEventMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteKeyEventTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteKeyEventMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listKeyEventsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listKeyEventsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings createCustomDimensionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2890,6 +3145,24 @@ protected HttpJsonAnalyticsAdminServiceStub( listConversionEventsTransportSettings, settings.listConversionEventsSettings(), clientContext); + this.createKeyEventCallable = + callableFactory.createUnaryCallable( + createKeyEventTransportSettings, settings.createKeyEventSettings(), clientContext); + this.updateKeyEventCallable = + callableFactory.createUnaryCallable( + updateKeyEventTransportSettings, settings.updateKeyEventSettings(), clientContext); + this.getKeyEventCallable = + callableFactory.createUnaryCallable( + getKeyEventTransportSettings, settings.getKeyEventSettings(), clientContext); + this.deleteKeyEventCallable = + callableFactory.createUnaryCallable( + deleteKeyEventTransportSettings, settings.deleteKeyEventSettings(), clientContext); + this.listKeyEventsCallable = + callableFactory.createUnaryCallable( + listKeyEventsTransportSettings, settings.listKeyEventsSettings(), clientContext); + this.listKeyEventsPagedCallable = + callableFactory.createPagedCallable( + listKeyEventsTransportSettings, settings.listKeyEventsSettings(), clientContext); this.createCustomDimensionCallable = callableFactory.createUnaryCallable( createCustomDimensionTransportSettings, @@ -3018,6 +3291,11 @@ public static List getMethodDescriptors() { methodDescriptors.add(getConversionEventMethodDescriptor); methodDescriptors.add(deleteConversionEventMethodDescriptor); methodDescriptors.add(listConversionEventsMethodDescriptor); + methodDescriptors.add(createKeyEventMethodDescriptor); + methodDescriptors.add(updateKeyEventMethodDescriptor); + methodDescriptors.add(getKeyEventMethodDescriptor); + methodDescriptors.add(deleteKeyEventMethodDescriptor); + methodDescriptors.add(listKeyEventsMethodDescriptor); methodDescriptors.add(createCustomDimensionMethodDescriptor); methodDescriptors.add(updateCustomDimensionMethodDescriptor); methodDescriptors.add(listCustomDimensionsMethodDescriptor); @@ -3258,6 +3536,37 @@ public UnaryCallable deleteConversionEventC return listConversionEventsPagedCallable; } + @Override + public UnaryCallable createKeyEventCallable() { + return createKeyEventCallable; + } + + @Override + public UnaryCallable updateKeyEventCallable() { + return updateKeyEventCallable; + } + + @Override + public UnaryCallable getKeyEventCallable() { + return getKeyEventCallable; + } + + @Override + public UnaryCallable deleteKeyEventCallable() { + return deleteKeyEventCallable; + } + + @Override + public UnaryCallable listKeyEventsCallable() { + return listKeyEventsCallable; + } + + @Override + public UnaryCallable + listKeyEventsPagedCallable() { + return listKeyEventsPagedCallable; + } + @Override public UnaryCallable createCustomDimensionCallable() { diff --git a/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1beta/reflect-config.json b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1beta/reflect-config.json index bbf5801862e5..43be60e5efcf 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1beta/reflect-config.json +++ b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1beta/reflect-config.json @@ -602,6 +602,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1beta.ConversionEvent$DefaultConversionValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1beta.ConversionEvent$DefaultConversionValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1beta.CreateConversionEventRequest", "queryAllDeclaredConstructors": true, @@ -710,6 +728,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1beta.CreateKeyEventRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1beta.CreateKeyEventRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest", "queryAllDeclaredConstructors": true, @@ -1034,6 +1070,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1beta.DeleteKeyEventRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1beta.DeleteKeyEventRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest", "queryAllDeclaredConstructors": true, @@ -1214,6 +1268,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1beta.GetKeyEventRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1beta.GetKeyEventRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest", "queryAllDeclaredConstructors": true, @@ -1277,6 +1349,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1beta.KeyEvent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1beta.KeyEvent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1beta.KeyEvent$CountingMethod", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1beta.KeyEvent$DefaultValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1beta.KeyEvent$DefaultValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1beta.ListAccountSummariesRequest", "queryAllDeclaredConstructors": true, @@ -1565,6 +1682,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1beta.ListKeyEventsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1beta.ListKeyEventsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1beta.ListKeyEventsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1beta.ListKeyEventsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest", "queryAllDeclaredConstructors": true, @@ -1961,6 +2114,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1beta.UpdateKeyEventRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1beta.UpdateKeyEventRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest", "queryAllDeclaredConstructors": true, diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientHttpJsonTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientHttpJsonTest.java index a30bb52bc7a9..914c7b3702ea 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientHttpJsonTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientHttpJsonTest.java @@ -24,6 +24,7 @@ import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListKeyEventsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; @@ -100,6 +101,7 @@ public void getAccountTest() throws Exception { .setDisplayName("displayName1714148973") .setRegionCode("regionCode-1991004415") .setDeleted(true) + .setGmpOrganization("gmpOrganization-65424739") .build(); mockService.addResponse(expectedResponse); @@ -149,6 +151,7 @@ public void getAccountTest2() throws Exception { .setDisplayName("displayName1714148973") .setRegionCode("regionCode-1991004415") .setDeleted(true) + .setGmpOrganization("gmpOrganization-65424739") .build(); mockService.addResponse(expectedResponse); @@ -338,6 +341,7 @@ public void updateAccountTest() throws Exception { .setDisplayName("displayName1714148973") .setRegionCode("regionCode-1991004415") .setDeleted(true) + .setGmpOrganization("gmpOrganization-65424739") .build(); mockService.addResponse(expectedResponse); @@ -349,6 +353,7 @@ public void updateAccountTest() throws Exception { .setDisplayName("displayName1714148973") .setRegionCode("regionCode-1991004415") .setDeleted(true) + .setGmpOrganization("gmpOrganization-65424739") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -386,6 +391,7 @@ public void updateAccountExceptionTest() throws Exception { .setDisplayName("displayName1714148973") .setRegionCode("regionCode-1991004415") .setDeleted(true) + .setGmpOrganization("gmpOrganization-65424739") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateAccount(account, updateMask); @@ -2266,6 +2272,7 @@ public void createConversionEventTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2316,6 +2323,7 @@ public void createConversionEventTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2366,6 +2374,7 @@ public void updateConversionEventTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2376,6 +2385,7 @@ public void updateConversionEventTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2412,6 +2422,8 @@ public void updateConversionEventExceptionTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue( + ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateConversionEvent(conversionEvent, updateMask); @@ -2430,6 +2442,7 @@ public void getConversionEventTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2478,6 +2491,7 @@ public void getConversionEventTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2697,6 +2711,453 @@ public void listConversionEventsExceptionTest2() throws Exception { } } + @Test + public void createKeyEventTest() throws Exception { + KeyEvent expectedResponse = + KeyEvent.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .setDefaultValue(KeyEvent.DefaultValue.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + KeyEvent keyEvent = KeyEvent.newBuilder().build(); + + KeyEvent actualResponse = client.createKeyEvent(parent, keyEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createKeyEventExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + KeyEvent keyEvent = KeyEvent.newBuilder().build(); + client.createKeyEvent(parent, keyEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createKeyEventTest2() throws Exception { + KeyEvent expectedResponse = + KeyEvent.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .setDefaultValue(KeyEvent.DefaultValue.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "properties/propertie-2024"; + KeyEvent keyEvent = KeyEvent.newBuilder().build(); + + KeyEvent actualResponse = client.createKeyEvent(parent, keyEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createKeyEventExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "properties/propertie-2024"; + KeyEvent keyEvent = KeyEvent.newBuilder().build(); + client.createKeyEvent(parent, keyEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateKeyEventTest() throws Exception { + KeyEvent expectedResponse = + KeyEvent.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .setDefaultValue(KeyEvent.DefaultValue.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + KeyEvent keyEvent = + KeyEvent.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .setDefaultValue(KeyEvent.DefaultValue.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + KeyEvent actualResponse = client.updateKeyEvent(keyEvent, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateKeyEventExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + KeyEvent keyEvent = + KeyEvent.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .setDefaultValue(KeyEvent.DefaultValue.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateKeyEvent(keyEvent, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getKeyEventTest() throws Exception { + KeyEvent expectedResponse = + KeyEvent.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .setDefaultValue(KeyEvent.DefaultValue.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + KeyEventName name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]"); + + KeyEvent actualResponse = client.getKeyEvent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getKeyEventExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + KeyEventName name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]"); + client.getKeyEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getKeyEventTest2() throws Exception { + KeyEvent expectedResponse = + KeyEvent.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .setDefaultValue(KeyEvent.DefaultValue.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "properties/propertie-1843/keyEvents/keyEvent-1843"; + + KeyEvent actualResponse = client.getKeyEvent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getKeyEventExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "properties/propertie-1843/keyEvents/keyEvent-1843"; + client.getKeyEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteKeyEventTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + KeyEventName name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]"); + + client.deleteKeyEvent(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteKeyEventExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + KeyEventName name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]"); + client.deleteKeyEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteKeyEventTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "properties/propertie-1843/keyEvents/keyEvent-1843"; + + client.deleteKeyEvent(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteKeyEventExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "properties/propertie-1843/keyEvents/keyEvent-1843"; + client.deleteKeyEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listKeyEventsTest() throws Exception { + KeyEvent responsesElement = KeyEvent.newBuilder().build(); + ListKeyEventsResponse expectedResponse = + ListKeyEventsResponse.newBuilder() + .setNextPageToken("") + .addAllKeyEvents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListKeyEventsPagedResponse pagedListResponse = client.listKeyEvents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getKeyEventsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listKeyEventsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listKeyEvents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listKeyEventsTest2() throws Exception { + KeyEvent responsesElement = KeyEvent.newBuilder().build(); + ListKeyEventsResponse expectedResponse = + ListKeyEventsResponse.newBuilder() + .setNextPageToken("") + .addAllKeyEvents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "properties/propertie-2024"; + + ListKeyEventsPagedResponse pagedListResponse = client.listKeyEvents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getKeyEventsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listKeyEventsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "properties/propertie-2024"; + client.listKeyEvents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createCustomDimensionTest() throws Exception { CustomDimension expectedResponse = @@ -4181,6 +4642,8 @@ public void runAccessReportTest() throws Exception { .setTimeZone("timeZone-2077180903") .addAllOrderBys(new ArrayList()) .setReturnEntityQuota(true) + .setIncludeAllUsers(true) + .setExpandGroups(true) .build(); RunAccessReportResponse actualResponse = client.runAccessReport(request); @@ -4222,6 +4685,8 @@ public void runAccessReportExceptionTest() throws Exception { .setTimeZone("timeZone-2077180903") .addAllOrderBys(new ArrayList()) .setReturnEntityQuota(true) + .setIncludeAllUsers(true) + .setExpandGroups(true) .build(); client.runAccessReport(request); Assert.fail("No exception raised"); diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientTest.java index ec08f254b7bd..54fe42f0e779 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientTest.java @@ -24,6 +24,7 @@ import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListKeyEventsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; @@ -104,6 +105,7 @@ public void getAccountTest() throws Exception { .setDisplayName("displayName1714148973") .setRegionCode("regionCode-1991004415") .setDeleted(true) + .setGmpOrganization("gmpOrganization-65424739") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -147,6 +149,7 @@ public void getAccountTest2() throws Exception { .setDisplayName("displayName1714148973") .setRegionCode("regionCode-1991004415") .setDeleted(true) + .setGmpOrganization("gmpOrganization-65424739") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -314,6 +317,7 @@ public void updateAccountTest() throws Exception { .setDisplayName("displayName1714148973") .setRegionCode("regionCode-1991004415") .setDeleted(true) + .setGmpOrganization("gmpOrganization-65424739") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -1983,6 +1987,7 @@ public void createConversionEventTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -2029,6 +2034,7 @@ public void createConversionEventTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -2075,6 +2081,7 @@ public void updateConversionEventTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -2121,6 +2128,7 @@ public void getConversionEventTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -2163,6 +2171,7 @@ public void getConversionEventTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -2356,6 +2365,386 @@ public void listConversionEventsExceptionTest2() throws Exception { } } + @Test + public void createKeyEventTest() throws Exception { + KeyEvent expectedResponse = + KeyEvent.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .setDefaultValue(KeyEvent.DefaultValue.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + KeyEvent keyEvent = KeyEvent.newBuilder().build(); + + KeyEvent actualResponse = client.createKeyEvent(parent, keyEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateKeyEventRequest actualRequest = ((CreateKeyEventRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(keyEvent, actualRequest.getKeyEvent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createKeyEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + KeyEvent keyEvent = KeyEvent.newBuilder().build(); + client.createKeyEvent(parent, keyEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createKeyEventTest2() throws Exception { + KeyEvent expectedResponse = + KeyEvent.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .setDefaultValue(KeyEvent.DefaultValue.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + KeyEvent keyEvent = KeyEvent.newBuilder().build(); + + KeyEvent actualResponse = client.createKeyEvent(parent, keyEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateKeyEventRequest actualRequest = ((CreateKeyEventRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(keyEvent, actualRequest.getKeyEvent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createKeyEventExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + KeyEvent keyEvent = KeyEvent.newBuilder().build(); + client.createKeyEvent(parent, keyEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateKeyEventTest() throws Exception { + KeyEvent expectedResponse = + KeyEvent.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .setDefaultValue(KeyEvent.DefaultValue.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + KeyEvent keyEvent = KeyEvent.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + KeyEvent actualResponse = client.updateKeyEvent(keyEvent, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateKeyEventRequest actualRequest = ((UpdateKeyEventRequest) actualRequests.get(0)); + + Assert.assertEquals(keyEvent, actualRequest.getKeyEvent()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateKeyEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + KeyEvent keyEvent = KeyEvent.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateKeyEvent(keyEvent, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getKeyEventTest() throws Exception { + KeyEvent expectedResponse = + KeyEvent.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .setDefaultValue(KeyEvent.DefaultValue.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + KeyEventName name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]"); + + KeyEvent actualResponse = client.getKeyEvent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetKeyEventRequest actualRequest = ((GetKeyEventRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getKeyEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + KeyEventName name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]"); + client.getKeyEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getKeyEventTest2() throws Exception { + KeyEvent expectedResponse = + KeyEvent.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .setDefaultValue(KeyEvent.DefaultValue.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + KeyEvent actualResponse = client.getKeyEvent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetKeyEventRequest actualRequest = ((GetKeyEventRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getKeyEventExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getKeyEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteKeyEventTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + KeyEventName name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]"); + + client.deleteKeyEvent(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteKeyEventRequest actualRequest = ((DeleteKeyEventRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteKeyEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + KeyEventName name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]"); + client.deleteKeyEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteKeyEventTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteKeyEvent(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteKeyEventRequest actualRequest = ((DeleteKeyEventRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteKeyEventExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteKeyEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listKeyEventsTest() throws Exception { + KeyEvent responsesElement = KeyEvent.newBuilder().build(); + ListKeyEventsResponse expectedResponse = + ListKeyEventsResponse.newBuilder() + .setNextPageToken("") + .addAllKeyEvents(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListKeyEventsPagedResponse pagedListResponse = client.listKeyEvents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getKeyEventsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListKeyEventsRequest actualRequest = ((ListKeyEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listKeyEventsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listKeyEvents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listKeyEventsTest2() throws Exception { + KeyEvent responsesElement = KeyEvent.newBuilder().build(); + ListKeyEventsResponse expectedResponse = + ListKeyEventsResponse.newBuilder() + .setNextPageToken("") + .addAllKeyEvents(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListKeyEventsPagedResponse pagedListResponse = client.listKeyEvents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getKeyEventsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListKeyEventsRequest actualRequest = ((ListKeyEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listKeyEventsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listKeyEvents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createCustomDimensionTest() throws Exception { CustomDimension expectedResponse = @@ -3632,6 +4021,8 @@ public void runAccessReportTest() throws Exception { .setTimeZone("timeZone-2077180903") .addAllOrderBys(new ArrayList()) .setReturnEntityQuota(true) + .setIncludeAllUsers(true) + .setExpandGroups(true) .build(); RunAccessReportResponse actualResponse = client.runAccessReport(request); @@ -3652,6 +4043,8 @@ public void runAccessReportTest() throws Exception { Assert.assertEquals(request.getTimeZone(), actualRequest.getTimeZone()); Assert.assertEquals(request.getOrderBysList(), actualRequest.getOrderBysList()); Assert.assertEquals(request.getReturnEntityQuota(), actualRequest.getReturnEntityQuota()); + Assert.assertEquals(request.getIncludeAllUsers(), actualRequest.getIncludeAllUsers()); + Assert.assertEquals(request.getExpandGroups(), actualRequest.getExpandGroups()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3677,6 +4070,8 @@ public void runAccessReportExceptionTest() throws Exception { .setTimeZone("timeZone-2077180903") .addAllOrderBys(new ArrayList()) .setReturnEntityQuota(true) + .setIncludeAllUsers(true) + .setExpandGroups(true) .build(); client.runAccessReport(request); Assert.fail("No exception raised"); diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminServiceImpl.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminServiceImpl.java index 7a2cf4801d59..b82e262a7a34 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminServiceImpl.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminServiceImpl.java @@ -718,6 +718,110 @@ public void listConversionEvents( } } + @Override + public void createKeyEvent( + CreateKeyEventRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof KeyEvent) { + requests.add(request); + responseObserver.onNext(((KeyEvent) 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 CreateKeyEvent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + KeyEvent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateKeyEvent( + UpdateKeyEventRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof KeyEvent) { + requests.add(request); + responseObserver.onNext(((KeyEvent) 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 UpdateKeyEvent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + KeyEvent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getKeyEvent(GetKeyEventRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof KeyEvent) { + requests.add(request); + responseObserver.onNext(((KeyEvent) 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 GetKeyEvent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + KeyEvent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteKeyEvent( + DeleteKeyEventRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteKeyEvent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listKeyEvents( + ListKeyEventsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListKeyEventsResponse) { + requests.add(request); + responseObserver.onNext(((ListKeyEventsResponse) 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 ListKeyEvents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListKeyEventsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createCustomDimension( CreateCustomDimensionRequest request, StreamObserver responseObserver) { diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java b/java-analytics-admin/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java index bc72748a2bbc..89ac9cfaa8aa 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java +++ b/java-analytics-admin/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java @@ -1564,6 +1564,234 @@ private AnalyticsAdminServiceGrpc() {} return getListConversionEventsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateKeyEventRequest, + com.google.analytics.admin.v1beta.KeyEvent> + getCreateKeyEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateKeyEvent", + requestType = com.google.analytics.admin.v1beta.CreateKeyEventRequest.class, + responseType = com.google.analytics.admin.v1beta.KeyEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateKeyEventRequest, + com.google.analytics.admin.v1beta.KeyEvent> + getCreateKeyEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateKeyEventRequest, + com.google.analytics.admin.v1beta.KeyEvent> + getCreateKeyEventMethod; + if ((getCreateKeyEventMethod = AnalyticsAdminServiceGrpc.getCreateKeyEventMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateKeyEventMethod = AnalyticsAdminServiceGrpc.getCreateKeyEventMethod) == null) { + AnalyticsAdminServiceGrpc.getCreateKeyEventMethod = + getCreateKeyEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateKeyEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.CreateKeyEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateKeyEvent")) + .build(); + } + } + } + return getCreateKeyEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateKeyEventRequest, + com.google.analytics.admin.v1beta.KeyEvent> + getUpdateKeyEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateKeyEvent", + requestType = com.google.analytics.admin.v1beta.UpdateKeyEventRequest.class, + responseType = com.google.analytics.admin.v1beta.KeyEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateKeyEventRequest, + com.google.analytics.admin.v1beta.KeyEvent> + getUpdateKeyEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateKeyEventRequest, + com.google.analytics.admin.v1beta.KeyEvent> + getUpdateKeyEventMethod; + if ((getUpdateKeyEventMethod = AnalyticsAdminServiceGrpc.getUpdateKeyEventMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateKeyEventMethod = AnalyticsAdminServiceGrpc.getUpdateKeyEventMethod) == null) { + AnalyticsAdminServiceGrpc.getUpdateKeyEventMethod = + getUpdateKeyEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateKeyEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.UpdateKeyEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateKeyEvent")) + .build(); + } + } + } + return getUpdateKeyEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetKeyEventRequest, + com.google.analytics.admin.v1beta.KeyEvent> + getGetKeyEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetKeyEvent", + requestType = com.google.analytics.admin.v1beta.GetKeyEventRequest.class, + responseType = com.google.analytics.admin.v1beta.KeyEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetKeyEventRequest, + com.google.analytics.admin.v1beta.KeyEvent> + getGetKeyEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetKeyEventRequest, + com.google.analytics.admin.v1beta.KeyEvent> + getGetKeyEventMethod; + if ((getGetKeyEventMethod = AnalyticsAdminServiceGrpc.getGetKeyEventMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetKeyEventMethod = AnalyticsAdminServiceGrpc.getGetKeyEventMethod) == null) { + AnalyticsAdminServiceGrpc.getGetKeyEventMethod = + getGetKeyEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetKeyEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.GetKeyEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetKeyEvent")) + .build(); + } + } + } + return getGetKeyEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteKeyEventRequest, com.google.protobuf.Empty> + getDeleteKeyEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteKeyEvent", + requestType = com.google.analytics.admin.v1beta.DeleteKeyEventRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteKeyEventRequest, com.google.protobuf.Empty> + getDeleteKeyEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteKeyEventRequest, com.google.protobuf.Empty> + getDeleteKeyEventMethod; + if ((getDeleteKeyEventMethod = AnalyticsAdminServiceGrpc.getDeleteKeyEventMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteKeyEventMethod = AnalyticsAdminServiceGrpc.getDeleteKeyEventMethod) == null) { + AnalyticsAdminServiceGrpc.getDeleteKeyEventMethod = + getDeleteKeyEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteKeyEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.DeleteKeyEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteKeyEvent")) + .build(); + } + } + } + return getDeleteKeyEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListKeyEventsRequest, + com.google.analytics.admin.v1beta.ListKeyEventsResponse> + getListKeyEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListKeyEvents", + requestType = com.google.analytics.admin.v1beta.ListKeyEventsRequest.class, + responseType = com.google.analytics.admin.v1beta.ListKeyEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListKeyEventsRequest, + com.google.analytics.admin.v1beta.ListKeyEventsResponse> + getListKeyEventsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListKeyEventsRequest, + com.google.analytics.admin.v1beta.ListKeyEventsResponse> + getListKeyEventsMethod; + if ((getListKeyEventsMethod = AnalyticsAdminServiceGrpc.getListKeyEventsMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListKeyEventsMethod = AnalyticsAdminServiceGrpc.getListKeyEventsMethod) == null) { + AnalyticsAdminServiceGrpc.getListKeyEventsMethod = + getListKeyEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListKeyEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListKeyEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListKeyEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListKeyEvents")) + .build(); + } + } + } + return getListKeyEventsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1beta.CreateCustomDimensionRequest, com.google.analytics.admin.v1beta.CustomDimension> @@ -2534,7 +2762,7 @@ default void listAccounts( * However, they can be restored using the Trash Can UI. * If the accounts are not restored before the expiration time, the account * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * UserLinks) will be permanently purged. + * AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * Returns an error if the target is not found. * @@ -2646,7 +2874,7 @@ default void createProperty( * This API does not have a method to restore soft-deleted properties. * However, they can be restored using the Trash Can UI. * If the properties are not restored before the expiration time, the Property - * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) + * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) * will be permanently purged. * https://support.google.com/analytics/answer/6154772 * Returns an error if the target is not found, or is not a GA4 Property. @@ -2910,9 +3138,11 @@ default void searchChangeHistoryEvents( * * *

          +     * Deprecated: Use `CreateKeyEvent` instead.
                * Creates a conversion event with the specified attributes.
                * 
          */ + @java.lang.Deprecated default void createConversionEvent( com.google.analytics.admin.v1beta.CreateConversionEventRequest request, io.grpc.stub.StreamObserver @@ -2925,9 +3155,11 @@ default void createConversionEvent( * * *
          +     * Deprecated: Use `UpdateKeyEvent` instead.
                * Updates a conversion event with the specified attributes.
                * 
          */ + @java.lang.Deprecated default void updateConversionEvent( com.google.analytics.admin.v1beta.UpdateConversionEventRequest request, io.grpc.stub.StreamObserver @@ -2940,9 +3172,11 @@ default void updateConversionEvent( * * *
          +     * Deprecated: Use `GetKeyEvent` instead.
                * Retrieve a single conversion event.
                * 
          */ + @java.lang.Deprecated default void getConversionEvent( com.google.analytics.admin.v1beta.GetConversionEventRequest request, io.grpc.stub.StreamObserver @@ -2955,9 +3189,11 @@ default void getConversionEvent( * * *
          +     * Deprecated: Use `DeleteKeyEvent` instead.
                * Deletes a conversion event in a property.
                * 
          */ + @java.lang.Deprecated default void deleteConversionEvent( com.google.analytics.admin.v1beta.DeleteConversionEventRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -2969,10 +3205,12 @@ default void deleteConversionEvent( * * *
          +     * Deprecated: Use `ListKeyEvents` instead.
                * Returns a list of conversion events in the specified parent property.
                * Returns an empty list if no conversion events are found.
                * 
          */ + @java.lang.Deprecated default void listConversionEvents( com.google.analytics.admin.v1beta.ListConversionEventsRequest request, io.grpc.stub.StreamObserver @@ -2981,6 +3219,78 @@ default void listConversionEvents( getListConversionEventsMethod(), responseObserver); } + /** + * + * + *
          +     * Creates a Key Event.
          +     * 
          + */ + default void createKeyEvent( + com.google.analytics.admin.v1beta.CreateKeyEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateKeyEventMethod(), responseObserver); + } + + /** + * + * + *
          +     * Updates a Key Event.
          +     * 
          + */ + default void updateKeyEvent( + com.google.analytics.admin.v1beta.UpdateKeyEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateKeyEventMethod(), responseObserver); + } + + /** + * + * + *
          +     * Retrieve a single Key Event.
          +     * 
          + */ + default void getKeyEvent( + com.google.analytics.admin.v1beta.GetKeyEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetKeyEventMethod(), responseObserver); + } + + /** + * + * + *
          +     * Deletes a Key Event.
          +     * 
          + */ + default void deleteKeyEvent( + com.google.analytics.admin.v1beta.DeleteKeyEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteKeyEventMethod(), responseObserver); + } + + /** + * + * + *
          +     * Returns a list of Key Events in the specified parent property.
          +     * Returns an empty list if no Key Events are found.
          +     * 
          + */ + default void listKeyEvents( + com.google.analytics.admin.v1beta.ListKeyEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListKeyEventsMethod(), responseObserver); + } + /** * * @@ -3240,8 +3550,10 @@ default void getDataStream( * Returns a customized report of data access records. The report provides * records of each time a user reads Google Analytics reporting data. Access * records are retained for up to 2 years. - * Data Access Reports can be requested for a property. The property must be - * in Google Analytics 360. This method is only available to Administrators. + * Data Access Reports can be requested for a property. Reports may be + * requested for any property, but dimensions that aren't related to quota can + * only be requested on Google Analytics 360 properties. This method is only + * available to Administrators. * These data access records include GA4 UI Reporting, GA4 UI Explorations, * GA4 Data API, and other products like Firebase & Admob that can retrieve * data from Google Analytics through a linkage. These records don't include @@ -3337,7 +3649,7 @@ public void listAccounts( * However, they can be restored using the Trash Can UI. * If the accounts are not restored before the expiration time, the account * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * UserLinks) will be permanently purged. + * AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * Returns an error if the target is not found. * @@ -3463,7 +3775,7 @@ public void createProperty( * This API does not have a method to restore soft-deleted properties. * However, they can be restored using the Trash Can UI. * If the properties are not restored before the expiration time, the Property - * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) + * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) * will be permanently purged. * https://support.google.com/analytics/answer/6154772 * Returns an error if the target is not found, or is not a GA4 Property. @@ -3761,9 +4073,11 @@ public void searchChangeHistoryEvents( * * *
          +     * Deprecated: Use `CreateKeyEvent` instead.
                * Creates a conversion event with the specified attributes.
                * 
          */ + @java.lang.Deprecated public void createConversionEvent( com.google.analytics.admin.v1beta.CreateConversionEventRequest request, io.grpc.stub.StreamObserver @@ -3778,9 +4092,11 @@ public void createConversionEvent( * * *
          +     * Deprecated: Use `UpdateKeyEvent` instead.
                * Updates a conversion event with the specified attributes.
                * 
          */ + @java.lang.Deprecated public void updateConversionEvent( com.google.analytics.admin.v1beta.UpdateConversionEventRequest request, io.grpc.stub.StreamObserver @@ -3795,9 +4111,11 @@ public void updateConversionEvent( * * *
          +     * Deprecated: Use `GetKeyEvent` instead.
                * Retrieve a single conversion event.
                * 
          */ + @java.lang.Deprecated public void getConversionEvent( com.google.analytics.admin.v1beta.GetConversionEventRequest request, io.grpc.stub.StreamObserver @@ -3812,9 +4130,11 @@ public void getConversionEvent( * * *
          +     * Deprecated: Use `DeleteKeyEvent` instead.
                * Deletes a conversion event in a property.
                * 
          */ + @java.lang.Deprecated public void deleteConversionEvent( com.google.analytics.admin.v1beta.DeleteConversionEventRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -3828,10 +4148,12 @@ public void deleteConversionEvent( * * *
          +     * Deprecated: Use `ListKeyEvents` instead.
                * Returns a list of conversion events in the specified parent property.
                * Returns an empty list if no conversion events are found.
                * 
          */ + @java.lang.Deprecated public void listConversionEvents( com.google.analytics.admin.v1beta.ListConversionEventsRequest request, io.grpc.stub.StreamObserver @@ -3842,6 +4164,88 @@ public void listConversionEvents( responseObserver); } + /** + * + * + *
          +     * Creates a Key Event.
          +     * 
          + */ + public void createKeyEvent( + com.google.analytics.admin.v1beta.CreateKeyEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateKeyEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Updates a Key Event.
          +     * 
          + */ + public void updateKeyEvent( + com.google.analytics.admin.v1beta.UpdateKeyEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateKeyEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Retrieve a single Key Event.
          +     * 
          + */ + public void getKeyEvent( + com.google.analytics.admin.v1beta.GetKeyEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetKeyEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Deletes a Key Event.
          +     * 
          + */ + public void deleteKeyEvent( + com.google.analytics.admin.v1beta.DeleteKeyEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteKeyEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Returns a list of Key Events in the specified parent property.
          +     * Returns an empty list if no Key Events are found.
          +     * 
          + */ + public void listKeyEvents( + com.google.analytics.admin.v1beta.ListKeyEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListKeyEventsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -4135,8 +4539,10 @@ public void getDataStream( * Returns a customized report of data access records. The report provides * records of each time a user reads Google Analytics reporting data. Access * records are retained for up to 2 years. - * Data Access Reports can be requested for a property. The property must be - * in Google Analytics 360. This method is only available to Administrators. + * Data Access Reports can be requested for a property. Reports may be + * requested for any property, but dimensions that aren't related to quota can + * only be requested on Google Analytics 360 properties. This method is only + * available to Administrators. * These data access records include GA4 UI Reporting, GA4 UI Explorations, * GA4 Data API, and other products like Firebase & Admob that can retrieve * data from Google Analytics through a linkage. These records don't include @@ -4214,7 +4620,7 @@ public com.google.analytics.admin.v1beta.ListAccountsResponse listAccounts( * However, they can be restored using the Trash Can UI. * If the accounts are not restored before the expiration time, the account * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * UserLinks) will be permanently purged. + * AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * Returns an error if the target is not found. * @@ -4315,7 +4721,7 @@ public com.google.analytics.admin.v1beta.Property createProperty( * This API does not have a method to restore soft-deleted properties. * However, they can be restored using the Trash Can UI. * If the properties are not restored before the expiration time, the Property - * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) + * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) * will be permanently purged. * https://support.google.com/analytics/answer/6154772 * Returns an error if the target is not found, or is not a GA4 Property. @@ -4552,9 +4958,11 @@ public com.google.protobuf.Empty deleteMeasurementProtocolSecret( * * *
          +     * Deprecated: Use `CreateKeyEvent` instead.
                * Creates a conversion event with the specified attributes.
                * 
          */ + @java.lang.Deprecated public com.google.analytics.admin.v1beta.ConversionEvent createConversionEvent( com.google.analytics.admin.v1beta.CreateConversionEventRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -4565,9 +4973,11 @@ public com.google.analytics.admin.v1beta.ConversionEvent createConversionEvent( * * *
          +     * Deprecated: Use `UpdateKeyEvent` instead.
                * Updates a conversion event with the specified attributes.
                * 
          */ + @java.lang.Deprecated public com.google.analytics.admin.v1beta.ConversionEvent updateConversionEvent( com.google.analytics.admin.v1beta.UpdateConversionEventRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -4578,9 +4988,11 @@ public com.google.analytics.admin.v1beta.ConversionEvent updateConversionEvent( * * *
          +     * Deprecated: Use `GetKeyEvent` instead.
                * Retrieve a single conversion event.
                * 
          */ + @java.lang.Deprecated public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent( com.google.analytics.admin.v1beta.GetConversionEventRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -4591,9 +5003,11 @@ public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent( * * *
          +     * Deprecated: Use `DeleteKeyEvent` instead.
                * Deletes a conversion event in a property.
                * 
          */ + @java.lang.Deprecated public com.google.protobuf.Empty deleteConversionEvent( com.google.analytics.admin.v1beta.DeleteConversionEventRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -4604,16 +5018,84 @@ public com.google.protobuf.Empty deleteConversionEvent( * * *
          +     * Deprecated: Use `ListKeyEvents` instead.
                * Returns a list of conversion events in the specified parent property.
                * Returns an empty list if no conversion events are found.
                * 
          */ + @java.lang.Deprecated public com.google.analytics.admin.v1beta.ListConversionEventsResponse listConversionEvents( com.google.analytics.admin.v1beta.ListConversionEventsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListConversionEventsMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Creates a Key Event.
          +     * 
          + */ + public com.google.analytics.admin.v1beta.KeyEvent createKeyEvent( + com.google.analytics.admin.v1beta.CreateKeyEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateKeyEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Updates a Key Event.
          +     * 
          + */ + public com.google.analytics.admin.v1beta.KeyEvent updateKeyEvent( + com.google.analytics.admin.v1beta.UpdateKeyEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateKeyEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Retrieve a single Key Event.
          +     * 
          + */ + public com.google.analytics.admin.v1beta.KeyEvent getKeyEvent( + com.google.analytics.admin.v1beta.GetKeyEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetKeyEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes a Key Event.
          +     * 
          + */ + public com.google.protobuf.Empty deleteKeyEvent( + com.google.analytics.admin.v1beta.DeleteKeyEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteKeyEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Returns a list of Key Events in the specified parent property.
          +     * Returns an empty list if no Key Events are found.
          +     * 
          + */ + public com.google.analytics.admin.v1beta.ListKeyEventsResponse listKeyEvents( + com.google.analytics.admin.v1beta.ListKeyEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListKeyEventsMethod(), getCallOptions(), request); + } + /** * * @@ -4842,8 +5324,10 @@ public com.google.analytics.admin.v1beta.DataStream getDataStream( * Returns a customized report of data access records. The report provides * records of each time a user reads Google Analytics reporting data. Access * records are retained for up to 2 years. - * Data Access Reports can be requested for a property. The property must be - * in Google Analytics 360. This method is only available to Administrators. + * Data Access Reports can be requested for a property. Reports may be + * requested for any property, but dimensions that aren't related to quota can + * only be requested on Google Analytics 360 properties. This method is only + * available to Administrators. * These data access records include GA4 UI Reporting, GA4 UI Explorations, * GA4 Data API, and other products like Firebase & Admob that can retrieve * data from Google Analytics through a linkage. These records don't include @@ -4920,7 +5404,7 @@ protected AnalyticsAdminServiceFutureStub build( * However, they can be restored using the Trash Can UI. * If the accounts are not restored before the expiration time, the account * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * UserLinks) will be permanently purged. + * AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * Returns an error if the target is not found. * @@ -5029,7 +5513,7 @@ protected AnalyticsAdminServiceFutureStub build( * This API does not have a method to restore soft-deleted properties. * However, they can be restored using the Trash Can UI. * If the properties are not restored before the expiration time, the Property - * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) + * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) * will be permanently purged. * https://support.google.com/analytics/answer/6154772 * Returns an error if the target is not found, or is not a GA4 Property. @@ -5288,9 +5772,11 @@ protected AnalyticsAdminServiceFutureStub build( * * *
          +     * Deprecated: Use `CreateKeyEvent` instead.
                * Creates a conversion event with the specified attributes.
                * 
          */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1beta.ConversionEvent> createConversionEvent( @@ -5303,9 +5789,11 @@ protected AnalyticsAdminServiceFutureStub build( * * *
          +     * Deprecated: Use `UpdateKeyEvent` instead.
                * Updates a conversion event with the specified attributes.
                * 
          */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1beta.ConversionEvent> updateConversionEvent( @@ -5318,9 +5806,11 @@ protected AnalyticsAdminServiceFutureStub build( * * *
          +     * Deprecated: Use `GetKeyEvent` instead.
                * Retrieve a single conversion event.
                * 
          */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1beta.ConversionEvent> getConversionEvent(com.google.analytics.admin.v1beta.GetConversionEventRequest request) { @@ -5332,9 +5822,11 @@ protected AnalyticsAdminServiceFutureStub build( * * *
          +     * Deprecated: Use `DeleteKeyEvent` instead.
                * Deletes a conversion event in a property.
                * 
          */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture deleteConversionEvent( com.google.analytics.admin.v1beta.DeleteConversionEventRequest request) { @@ -5346,10 +5838,12 @@ protected AnalyticsAdminServiceFutureStub build( * * *
          +     * Deprecated: Use `ListKeyEvents` instead.
                * Returns a list of conversion events in the specified parent property.
                * Returns an empty list if no conversion events are found.
                * 
          */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1beta.ListConversionEventsResponse> listConversionEvents( @@ -5358,6 +5852,76 @@ protected AnalyticsAdminServiceFutureStub build( getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Creates a Key Event.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.KeyEvent> + createKeyEvent(com.google.analytics.admin.v1beta.CreateKeyEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateKeyEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Updates a Key Event.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.KeyEvent> + updateKeyEvent(com.google.analytics.admin.v1beta.UpdateKeyEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateKeyEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Retrieve a single Key Event.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.KeyEvent> + getKeyEvent(com.google.analytics.admin.v1beta.GetKeyEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetKeyEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Deletes a Key Event.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + deleteKeyEvent(com.google.analytics.admin.v1beta.DeleteKeyEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteKeyEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Returns a list of Key Events in the specified parent property.
          +     * Returns an empty list if no Key Events are found.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ListKeyEventsResponse> + listKeyEvents(com.google.analytics.admin.v1beta.ListKeyEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListKeyEventsMethod(), getCallOptions()), request); + } + /** * * @@ -5606,8 +6170,10 @@ protected AnalyticsAdminServiceFutureStub build( * Returns a customized report of data access records. The report provides * records of each time a user reads Google Analytics reporting data. Access * records are retained for up to 2 years. - * Data Access Reports can be requested for a property. The property must be - * in Google Analytics 360. This method is only available to Administrators. + * Data Access Reports can be requested for a property. Reports may be + * requested for any property, but dimensions that aren't related to quota can + * only be requested on Google Analytics 360 properties. This method is only + * available to Administrators. * These data access records include GA4 UI Reporting, GA4 UI Explorations, * GA4 Data API, and other products like Firebase & Admob that can retrieve * data from Google Analytics through a linkage. These records don't include @@ -5655,24 +6221,29 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_GET_CONVERSION_EVENT = 28; private static final int METHODID_DELETE_CONVERSION_EVENT = 29; private static final int METHODID_LIST_CONVERSION_EVENTS = 30; - private static final int METHODID_CREATE_CUSTOM_DIMENSION = 31; - private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 32; - private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 33; - private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 34; - private static final int METHODID_GET_CUSTOM_DIMENSION = 35; - private static final int METHODID_CREATE_CUSTOM_METRIC = 36; - private static final int METHODID_UPDATE_CUSTOM_METRIC = 37; - private static final int METHODID_LIST_CUSTOM_METRICS = 38; - private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 39; - private static final int METHODID_GET_CUSTOM_METRIC = 40; - private static final int METHODID_GET_DATA_RETENTION_SETTINGS = 41; - private static final int METHODID_UPDATE_DATA_RETENTION_SETTINGS = 42; - private static final int METHODID_CREATE_DATA_STREAM = 43; - private static final int METHODID_DELETE_DATA_STREAM = 44; - private static final int METHODID_UPDATE_DATA_STREAM = 45; - private static final int METHODID_LIST_DATA_STREAMS = 46; - private static final int METHODID_GET_DATA_STREAM = 47; - private static final int METHODID_RUN_ACCESS_REPORT = 48; + private static final int METHODID_CREATE_KEY_EVENT = 31; + private static final int METHODID_UPDATE_KEY_EVENT = 32; + private static final int METHODID_GET_KEY_EVENT = 33; + private static final int METHODID_DELETE_KEY_EVENT = 34; + private static final int METHODID_LIST_KEY_EVENTS = 35; + private static final int METHODID_CREATE_CUSTOM_DIMENSION = 36; + private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 37; + private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 38; + private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 39; + private static final int METHODID_GET_CUSTOM_DIMENSION = 40; + private static final int METHODID_CREATE_CUSTOM_METRIC = 41; + private static final int METHODID_UPDATE_CUSTOM_METRIC = 42; + private static final int METHODID_LIST_CUSTOM_METRICS = 43; + private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 44; + private static final int METHODID_GET_CUSTOM_METRIC = 45; + private static final int METHODID_GET_DATA_RETENTION_SETTINGS = 46; + private static final int METHODID_UPDATE_DATA_RETENTION_SETTINGS = 47; + private static final int METHODID_CREATE_DATA_STREAM = 48; + private static final int METHODID_DELETE_DATA_STREAM = 49; + private static final int METHODID_UPDATE_DATA_STREAM = 50; + private static final int METHODID_LIST_DATA_STREAMS = 51; + private static final int METHODID_GET_DATA_STREAM = 52; + private static final int METHODID_RUN_ACCESS_REPORT = 53; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -5884,6 +6455,35 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.admin.v1beta.ListConversionEventsResponse>) responseObserver); break; + case METHODID_CREATE_KEY_EVENT: + serviceImpl.createKeyEvent( + (com.google.analytics.admin.v1beta.CreateKeyEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_KEY_EVENT: + serviceImpl.updateKeyEvent( + (com.google.analytics.admin.v1beta.UpdateKeyEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_KEY_EVENT: + serviceImpl.getKeyEvent( + (com.google.analytics.admin.v1beta.GetKeyEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_KEY_EVENT: + serviceImpl.deleteKeyEvent( + (com.google.analytics.admin.v1beta.DeleteKeyEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_KEY_EVENTS: + serviceImpl.listKeyEvents( + (com.google.analytics.admin.v1beta.ListKeyEventsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_CREATE_CUSTOM_DIMENSION: serviceImpl.createCustomDimension( (com.google.analytics.admin.v1beta.CreateCustomDimensionRequest) request, @@ -6218,6 +6818,39 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.analytics.admin.v1beta.ListConversionEventsRequest, com.google.analytics.admin.v1beta.ListConversionEventsResponse>( service, METHODID_LIST_CONVERSION_EVENTS))) + .addMethod( + getCreateKeyEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.CreateKeyEventRequest, + com.google.analytics.admin.v1beta.KeyEvent>( + service, METHODID_CREATE_KEY_EVENT))) + .addMethod( + getUpdateKeyEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.UpdateKeyEventRequest, + com.google.analytics.admin.v1beta.KeyEvent>( + service, METHODID_UPDATE_KEY_EVENT))) + .addMethod( + getGetKeyEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.GetKeyEventRequest, + com.google.analytics.admin.v1beta.KeyEvent>(service, METHODID_GET_KEY_EVENT))) + .addMethod( + getDeleteKeyEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.DeleteKeyEventRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_KEY_EVENT))) + .addMethod( + getListKeyEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.ListKeyEventsRequest, + com.google.analytics.admin.v1beta.ListKeyEventsResponse>( + service, METHODID_LIST_KEY_EVENTS))) .addMethod( getCreateCustomDimensionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -6423,6 +7056,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetConversionEventMethod()) .addMethod(getDeleteConversionEventMethod()) .addMethod(getListConversionEventsMethod()) + .addMethod(getCreateKeyEventMethod()) + .addMethod(getUpdateKeyEventMethod()) + .addMethod(getGetKeyEventMethod()) + .addMethod(getDeleteKeyEventMethod()) + .addMethod(getListKeyEventsMethod()) .addMethod(getCreateCustomDimensionMethod()) .addMethod(getUpdateCustomDimensionMethod()) .addMethod(getListCustomDimensionsMethod()) diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessReportProto.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessReportProto.java index 73a199d92f08..cc645f142fca 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessReportProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessReportProto.java @@ -201,10 +201,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "kens_per_project_per_hour\030\005 \001(\01320.google" + ".analytics.admin.v1beta.AccessQuotaStatu" + "s\"8\n\021AccessQuotaStatus\022\020\n\010consumed\030\001 \001(\005" - + "\022\021\n\tremaining\030\002 \001(\005B|\n!com.google.analyt" - + "ics.admin.v1betaB\021AccessReportProtoP\001ZBg" - + "oogle.golang.org/genproto/googleapis/ana" - + "lytics/admin/v1beta;adminb\006proto3" + + "\022\021\n\tremaining\030\002 \001(\005Bw\n!com.google.analyt" + + "ics.admin.v1betaB\021AccessReportProtoP\001Z=c" + + "loud.google.com/go/analytics/admin/apiv1" + + "beta/adminpb;adminpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java index 3a39088757ac..f9e9b3bd19be 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java @@ -42,6 +42,7 @@ private Account() { name_ = ""; displayName_ = ""; regionCode_ = ""; + gmpOrganization_ = ""; } @java.lang.Override @@ -340,6 +341,65 @@ public boolean getDeleted() { return deleted_; } + public static final int GMP_ORGANIZATION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object gmpOrganization_ = ""; + /** + * + * + *
          +   * Output only. The URI for a Google Marketing Platform organization resource.
          +   * Only set when this account is connected to a GMP organization.
          +   * Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
          +   * 
          + * + * + * string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The gmpOrganization. + */ + @java.lang.Override + public java.lang.String getGmpOrganization() { + java.lang.Object ref = gmpOrganization_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gmpOrganization_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. The URI for a Google Marketing Platform organization resource.
          +   * Only set when this account is connected to a GMP organization.
          +   * Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
          +   * 
          + * + * + * string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for gmpOrganization. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGmpOrganizationBytes() { + java.lang.Object ref = gmpOrganization_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gmpOrganization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -372,6 +432,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (deleted_ != false) { output.writeBool(6, deleted_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gmpOrganization_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, gmpOrganization_); + } getUnknownFields().writeTo(output); } @@ -399,6 +462,9 @@ public int getSerializedSize() { if (deleted_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, deleted_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gmpOrganization_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, gmpOrganization_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -427,6 +493,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getRegionCode().equals(other.getRegionCode())) return false; if (getDeleted() != other.getDeleted()) return false; + if (!getGmpOrganization().equals(other.getGmpOrganization())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -454,6 +521,8 @@ public int hashCode() { hash = (53 * hash) + getRegionCode().hashCode(); hash = (37 * hash) + DELETED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted()); + hash = (37 * hash) + GMP_ORGANIZATION_FIELD_NUMBER; + hash = (53 * hash) + getGmpOrganization().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -617,6 +686,7 @@ public Builder clear() { displayName_ = ""; regionCode_ = ""; deleted_ = false; + gmpOrganization_ = ""; return this; } @@ -674,6 +744,9 @@ private void buildPartial0(com.google.analytics.admin.v1beta.Account result) { if (((from_bitField0_ & 0x00000020) != 0)) { result.deleted_ = deleted_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.gmpOrganization_ = gmpOrganization_; + } result.bitField0_ |= to_bitField0_; } @@ -746,6 +819,11 @@ public Builder mergeFrom(com.google.analytics.admin.v1beta.Account other) { if (other.getDeleted() != false) { setDeleted(other.getDeleted()); } + if (!other.getGmpOrganization().isEmpty()) { + gmpOrganization_ = other.gmpOrganization_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -808,6 +886,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 58: + { + gmpOrganization_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1617,6 +1701,132 @@ public Builder clearDeleted() { return this; } + private java.lang.Object gmpOrganization_ = ""; + /** + * + * + *
          +     * Output only. The URI for a Google Marketing Platform organization resource.
          +     * Only set when this account is connected to a GMP organization.
          +     * Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
          +     * 
          + * + * + * string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The gmpOrganization. + */ + public java.lang.String getGmpOrganization() { + java.lang.Object ref = gmpOrganization_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gmpOrganization_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. The URI for a Google Marketing Platform organization resource.
          +     * Only set when this account is connected to a GMP organization.
          +     * Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
          +     * 
          + * + * + * string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for gmpOrganization. + */ + public com.google.protobuf.ByteString getGmpOrganizationBytes() { + java.lang.Object ref = gmpOrganization_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gmpOrganization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. The URI for a Google Marketing Platform organization resource.
          +     * Only set when this account is connected to a GMP organization.
          +     * Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
          +     * 
          + * + * + * string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The gmpOrganization to set. + * @return This builder for chaining. + */ + public Builder setGmpOrganization(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gmpOrganization_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The URI for a Google Marketing Platform organization resource.
          +     * Only set when this account is connected to a GMP organization.
          +     * Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
          +     * 
          + * + * + * string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearGmpOrganization() { + gmpOrganization_ = getDefaultInstance().getGmpOrganization(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The URI for a Google Marketing Platform organization resource.
          +     * Only set when this account is connected to a GMP organization.
          +     * Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
          +     * 
          + * + * + * string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for gmpOrganization to set. + * @return This builder for chaining. + */ + public Builder setGmpOrganizationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gmpOrganization_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java index 0de0adc552e5..dddf0366de5a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java @@ -192,4 +192,37 @@ public interface AccountOrBuilder * @return The deleted. */ boolean getDeleted(); + + /** + * + * + *
          +   * Output only. The URI for a Google Marketing Platform organization resource.
          +   * Only set when this account is connected to a GMP organization.
          +   * Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
          +   * 
          + * + * + * string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The gmpOrganization. + */ + java.lang.String getGmpOrganization(); + /** + * + * + *
          +   * Output only. The URI for a Google Marketing Platform organization resource.
          +   * Only set when this account is connected to a GMP organization.
          +   * Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
          +   * 
          + * + * + * string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for gmpOrganization. + */ + com.google.protobuf.ByteString getGmpOrganizationBytes(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java index 2ff3b4d8a22a..a879ff966f55 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java @@ -200,6 +200,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_CreateKeyEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_CreateKeyEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_UpdateKeyEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_UpdateKeyEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_GetKeyEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_GetKeyEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_DeleteKeyEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_DeleteKeyEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListKeyEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListKeyEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListKeyEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListKeyEventsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -298,7 +322,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/api/field_behavior.proto\032\031google/a" + "pi/resource.proto\032\033google/protobuf/empty" + ".proto\032 google/protobuf/field_mask.proto" - + "\032\037google/protobuf/timestamp.proto\"\236\004\n\026Ru" + + "\032\037google/protobuf/timestamp.proto\"\332\004\n\026Ru" + "nAccessReportRequest\022\016\n\006entity\030\001 \001(\t\022B\n\n" + "dimensions\030\002 \003(\0132..google.analytics.admi" + "n.v1beta.AccessDimension\022<\n\007metrics\030\003 \003(" @@ -312,479 +336,521 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "fset\030\007 \001(\003\022\r\n\005limit\030\010 \001(\003\022\021\n\ttime_zone\030\t" + " \001(\t\022?\n\torder_bys\030\n \003(\0132,.google.analyti" + "cs.admin.v1beta.AccessOrderBy\022\033\n\023return_" - + "entity_quota\030\013 \001(\010\"\273\002\n\027RunAccessReportRe" - + "sponse\022O\n\021dimension_headers\030\001 \003(\01324.goog" - + "le.analytics.admin.v1beta.AccessDimensio" - + "nHeader\022I\n\016metric_headers\030\002 \003(\01321.google" - + ".analytics.admin.v1beta.AccessMetricHead" - + "er\0226\n\004rows\030\003 \003(\0132(.google.analytics.admi" - + "n.v1beta.AccessRow\022\021\n\trow_count\030\004 \001(\005\0229\n" - + "\005quota\030\005 \001(\0132*.google.analytics.admin.v1" - + "beta.AccessQuota\"P\n\021GetAccountRequest\022;\n" - + "\004name\030\001 \001(\tB-\340A\002\372A\'\n%analyticsadmin.goog" - + "leapis.com/Account\"R\n\023ListAccountsReques" - + "t\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t" - + "\022\024\n\014show_deleted\030\003 \001(\010\"i\n\024ListAccountsRe" - + "sponse\0228\n\010accounts\030\001 \003(\0132&.google.analyt" - + "ics.admin.v1beta.Account\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"S\n\024DeleteAccountRequest\022;\n\004nam" - + "e\030\001 \001(\tB-\340A\002\372A\'\n%analyticsadmin.googleap" - + "is.com/Account\"\212\001\n\024UpdateAccountRequest\022" - + "<\n\007account\030\001 \001(\0132&.google.analytics.admi" - + "n.v1beta.AccountB\003\340A\002\0224\n\013update_mask\030\002 \001" - + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"n\n\035P" - + "rovisionAccountTicketRequest\0227\n\007account\030" - + "\001 \001(\0132&.google.analytics.admin.v1beta.Ac" - + "count\022\024\n\014redirect_uri\030\002 \001(\t\";\n\036Provision" - + "AccountTicketResponse\022\031\n\021account_ticket_" - + "id\030\001 \001(\t\"R\n\022GetPropertyRequest\022<\n\004name\030\001" - + " \001(\tB.\340A\002\372A(\n&analyticsadmin.googleapis." - + "com/Property\"i\n\025ListPropertiesRequest\022\023\n" - + "\006filter\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n" - + "\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"" - + "n\n\026ListPropertiesResponse\022;\n\nproperties\030" - + "\001 \003(\0132\'.google.analytics.admin.v1beta.Pr" - + "operty\022\027\n\017next_page_token\030\002 \001(\t\"\215\001\n\025Upda" - + "tePropertyRequest\022>\n\010property\030\001 \001(\0132\'.go" - + "ogle.analytics.admin.v1beta.PropertyB\003\340A" + + "entity_quota\030\013 \001(\010\022\036\n\021include_all_users\030" + + "\014 \001(\010B\003\340A\001\022\032\n\rexpand_groups\030\r \001(\010B\003\340A\001\"\273" + + "\002\n\027RunAccessReportResponse\022O\n\021dimension_" + + "headers\030\001 \003(\01324.google.analytics.admin.v" + + "1beta.AccessDimensionHeader\022I\n\016metric_he" + + "aders\030\002 \003(\01321.google.analytics.admin.v1b" + + "eta.AccessMetricHeader\0226\n\004rows\030\003 \003(\0132(.g" + + "oogle.analytics.admin.v1beta.AccessRow\022\021" + + "\n\trow_count\030\004 \001(\005\0229\n\005quota\030\005 \001(\0132*.googl" + + "e.analytics.admin.v1beta.AccessQuota\"P\n\021" + + "GetAccountRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%analyticsadmin.googleapis.com/Account\"R" + + "\n\023ListAccountsRequest\022\021\n\tpage_size\030\001 \001(\005" + + "\022\022\n\npage_token\030\002 \001(\t\022\024\n\014show_deleted\030\003 \001" + + "(\010\"i\n\024ListAccountsResponse\0228\n\010accounts\030\001" + + " \003(\0132&.google.analytics.admin.v1beta.Acc" + + "ount\022\027\n\017next_page_token\030\002 \001(\t\"S\n\024DeleteA" + + "ccountRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%ana" + + "lyticsadmin.googleapis.com/Account\"\212\001\n\024U" + + "pdateAccountRequest\022<\n\007account\030\001 \001(\0132&.g" + + "oogle.analytics.admin.v1beta.AccountB\003\340A" + "\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf" - + ".FieldMaskB\003\340A\002\"W\n\025CreatePropertyRequest" - + "\022>\n\010property\030\001 \001(\0132\'.google.analytics.ad" - + "min.v1beta.PropertyB\003\340A\002\"U\n\025DeleteProper" - + "tyRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&analyti" - + "csadmin.googleapis.com/Property\"\250\001\n\031Crea" - + "teFirebaseLinkRequest\022B\n\006parent\030\001 \001(\tB2\340" - + "A\002\372A,\022*analyticsadmin.googleapis.com/Fir" - + "ebaseLink\022G\n\rfirebase_link\030\002 \001(\0132+.googl" - + "e.analytics.admin.v1beta.FirebaseLinkB\003\340" - + "A\002\"]\n\031DeleteFirebaseLinkRequest\022@\n\004name\030" - + "\001 \001(\tB2\340A\002\372A,\n*analyticsadmin.googleapis" - + ".com/FirebaseLink\"\205\001\n\030ListFirebaseLinksR" - + "equest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analytic" - + "sadmin.googleapis.com/FirebaseLink\022\021\n\tpa" - + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"y\n\031Lis" - + "tFirebaseLinksResponse\022C\n\016firebase_links" - + "\030\001 \003(\0132+.google.analytics.admin.v1beta.F" - + "irebaseLink\022\027\n\017next_page_token\030\002 \001(\t\"\255\001\n" - + "\032CreateGoogleAdsLinkRequest\022C\n\006parent\030\001 " - + "\001(\tB3\340A\002\372A-\022+analyticsadmin.googleapis.c" - + "om/GoogleAdsLink\022J\n\017google_ads_link\030\002 \001(" - + "\0132,.google.analytics.admin.v1beta.Google" - + "AdsLinkB\003\340A\002\"\231\001\n\032UpdateGoogleAdsLinkRequ" - + "est\022E\n\017google_ads_link\030\001 \001(\0132,.google.an" - + "alytics.admin.v1beta.GoogleAdsLink\0224\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "askB\003\340A\002\"_\n\032DeleteGoogleAdsLinkRequest\022A" - + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin.goo" - + "gleapis.com/GoogleAdsLink\"\207\001\n\031ListGoogle" - + "AdsLinksRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022" - + "+analyticsadmin.googleapis.com/GoogleAds" - + "Link\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\"}\n\032ListGoogleAdsLinksResponse\022F\n\020goo" - + "gle_ads_links\030\001 \003(\0132,.google.analytics.a" - + "dmin.v1beta.GoogleAdsLink\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"h\n\035GetDataSharingSettingsRequ" - + "est\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyticsadmi" - + "n.googleapis.com/DataSharingSettings\"D\n\033" - + "ListAccountSummariesRequest\022\021\n\tpage_size" - + "\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\201\001\n\034ListAccou" - + "ntSummariesResponse\022H\n\021account_summaries" - + "\030\001 \003(\0132-.google.analytics.admin.v1beta.A" - + "ccountSummary\022\027\n\017next_page_token\030\002 \001(\t\"\206" - + "\001\n$AcknowledgeUserDataCollectionRequest\022" - + "@\n\010property\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmi" - + "n.googleapis.com/Property\022\034\n\017acknowledge" - + "ment\030\002 \001(\tB\003\340A\002\"\'\n%AcknowledgeUserDataCo" - + "llectionResponse\"\201\004\n SearchChangeHistory" - + "EventsRequest\022>\n\007account\030\001 \001(\tB-\340A\002\372A\'\n%" - + "analyticsadmin.googleapis.com/Account\022@\n" - + "\010property\030\002 \001(\tB.\340A\001\372A(\n&analyticsadmin." - + "googleapis.com/Property\022T\n\rresource_type" - + "\030\003 \003(\01628.google.analytics.admin.v1beta.C" - + "hangeHistoryResourceTypeB\003\340A\001\022>\n\006action\030" - + "\004 \003(\0162).google.analytics.admin.v1beta.Ac" - + "tionTypeB\003\340A\001\022\030\n\013actor_email\030\005 \003(\tB\003\340A\001\022" - + "=\n\024earliest_change_time\030\006 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\001\022;\n\022latest_change_" - + "time\030\007 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\001\022\026\n\tpage_size\030\010 \001(\005B\003\340A\001\022\027\n\npage_toke" - + "n\030\t \001(\tB\003\340A\001\"\216\001\n!SearchChangeHistoryEven" - + "tsResponse\022P\n\025change_history_events\030\001 \003(" - + "\01321.google.analytics.admin.v1beta.Change" - + "HistoryEvent\022\027\n\017next_page_token\030\002 \001(\t\"t\n" - + "#GetMeasurementProtocolSecretRequest\022M\n\004" - + "name\030\001 \001(\tB?\340A\002\372A9\n7analyticsadmin.googl" - + "eapis.com/MeasurementProtocolSecret\"\335\001\n&" - + "CreateMeasurementProtocolSecretRequest\022O" - + "\n\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsadmin.g" - + "oogleapis.com/MeasurementProtocolSecret\022" - + "b\n\033measurement_protocol_secret\030\002 \001(\01328.g" - + "oogle.analytics.admin.v1beta.Measurement" - + "ProtocolSecretB\003\340A\002\"w\n&DeleteMeasurement" - + "ProtocolSecretRequest\022M\n\004name\030\001 \001(\tB?\340A\002" - + "\372A9\n7analyticsadmin.googleapis.com/Measu" - + "rementProtocolSecret\"\302\001\n&UpdateMeasureme" - + "ntProtocolSecretRequest\022b\n\033measurement_p" - + "rotocol_secret\030\001 \001(\01328.google.analytics." - + "admin.v1beta.MeasurementProtocolSecretB\003" - + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMaskB\003\340A\002\"\237\001\n%ListMeasurementPro" - + "tocolSecretsRequest\022O\n\006parent\030\001 \001(\tB?\340A\002" - + "\372A9\0227analyticsadmin.googleapis.com/Measu" - + "rementProtocolSecret\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\"\241\001\n&ListMeasurementP" - + "rotocolSecretsResponse\022^\n\034measurement_pr" - + "otocol_secrets\030\001 \003(\01328.google.analytics." - + "admin.v1beta.MeasurementProtocolSecret\022\027" - + "\n\017next_page_token\030\002 \001(\t\"\264\001\n\034CreateConver" - + "sionEventRequest\022M\n\020conversion_event\030\001 \001" - + "(\0132..google.analytics.admin.v1beta.Conve" - + "rsionEventB\003\340A\002\022E\n\006parent\030\002 \001(\tB5\340A\002\372A/\022" - + "-analyticsadmin.googleapis.com/Conversio" - + "nEvent\"\243\001\n\034UpdateConversionEventRequest\022" - + "M\n\020conversion_event\030\001 \001(\0132..google.analy" - + "tics.admin.v1beta.ConversionEventB\003\340A\002\0224" - + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\003\340A\002\"`\n\031GetConversionEventReques" - + "t\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin." - + "googleapis.com/ConversionEvent\"c\n\034Delete" - + "ConversionEventRequest\022C\n\004name\030\001 \001(\tB5\340A" - + "\002\372A/\n-analyticsadmin.googleapis.com/Conv" - + "ersionEvent\"\213\001\n\033ListConversionEventsRequ" - + "est\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyticsad" - + "min.googleapis.com/ConversionEvent\022\021\n\tpa" - + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n\034Li" - + "stConversionEventsResponse\022I\n\021conversion" - + "_events\030\001 \003(\0132..google.analytics.admin.v" - + "1beta.ConversionEvent\022\027\n\017next_page_token" - + "\030\002 \001(\t\"\264\001\n\034CreateCustomDimensionRequest\022" - + "E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin." - + "googleapis.com/CustomDimension\022M\n\020custom" - + "_dimension\030\002 \001(\0132..google.analytics.admi" - + "n.v1beta.CustomDimensionB\003\340A\002\"\236\001\n\034Update" - + "CustomDimensionRequest\022H\n\020custom_dimensi" - + "on\030\001 \001(\0132..google.analytics.admin.v1beta" - + ".CustomDimension\0224\n\013update_mask\030\002 \001(\0132\032." - + "google.protobuf.FieldMaskB\003\340A\002\"\213\001\n\033ListC" - + "ustomDimensionsRequest\022E\n\006parent\030\001 \001(\tB5" - + "\340A\002\372A/\022-analyticsadmin.googleapis.com/Cu" - + "stomDimension\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\"\202\001\n\034ListCustomDimensionsRes" - + "ponse\022I\n\021custom_dimensions\030\001 \003(\0132..googl" - + "e.analytics.admin.v1beta.CustomDimension" - + "\022\027\n\017next_page_token\030\002 \001(\t\"d\n\035ArchiveCust" - + "omDimensionRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/" - + "\n-analyticsadmin.googleapis.com/CustomDi" - + "mension\"`\n\031GetCustomDimensionRequest\022C\n\004" - + "name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.googl" - + "eapis.com/CustomDimension\"\250\001\n\031CreateCust" - + "omMetricRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022" - + "*analyticsadmin.googleapis.com/CustomMet" - + "ric\022G\n\rcustom_metric\030\002 \001(\0132+.google.anal" - + "ytics.admin.v1beta.CustomMetricB\003\340A\002\"\225\001\n" - + "\031UpdateCustomMetricRequest\022B\n\rcustom_met" - + "ric\030\001 \001(\0132+.google.analytics.admin.v1bet" - + "a.CustomMetric\0224\n\013update_mask\030\002 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\002\"\205\001\n\030ListCus" - + "tomMetricsRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A" - + ",\022*analyticsadmin.googleapis.com/CustomM" - + "etric\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" - + " \001(\t\"y\n\031ListCustomMetricsResponse\022C\n\016cus" - + "tom_metrics\030\001 \003(\0132+.google.analytics.adm" - + "in.v1beta.CustomMetric\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"^\n\032ArchiveCustomMetricRequest\022@\n" - + "\004name\030\001 \001(\tB2\340A\002\372A,\n*analyticsadmin.goog" - + "leapis.com/CustomMetric\"Z\n\026GetCustomMetr" - + "icRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analyti" - + "csadmin.googleapis.com/CustomMetric\"l\n\037G" - + "etDataRetentionSettingsRequest\022I\n\004name\030\001" - + " \001(\tB;\340A\002\372A5\n3analyticsadmin.googleapis." - + "com/DataRetentionSettings\"\266\001\n\"UpdateData" - + "RetentionSettingsRequest\022Z\n\027data_retenti" - + "on_settings\030\001 \001(\01324.google.analytics.adm" - + "in.v1beta.DataRetentionSettingsB\003\340A\002\0224\n\013" - + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" - + "dMaskB\003\340A\002\"\240\001\n\027CreateDataStreamRequest\022@" - + "\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(analyticsadmin.g" - + "oogleapis.com/DataStream\022C\n\013data_stream\030" - + "\002 \001(\0132).google.analytics.admin.v1beta.Da" - + "taStreamB\003\340A\002\"Y\n\027DeleteDataStreamRequest" - + "\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analyticsadmin.g" - + "oogleapis.com/DataStream\"\217\001\n\027UpdateDataS" - + "treamRequest\022>\n\013data_stream\030\001 \001(\0132).goog" - + "le.analytics.admin.v1beta.DataStream\0224\n\013" - + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" - + "dMaskB\003\340A\002\"\201\001\n\026ListDataStreamsRequest\022@\n" - + "\006parent\030\001 \001(\tB0\340A\002\372A*\022(analyticsadmin.go" - + "ogleapis.com/DataStream\022\021\n\tpage_size\030\002 \001" - + "(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\027ListDataStream" - + "sResponse\022?\n\014data_streams\030\001 \003(\0132).google" - + ".analytics.admin.v1beta.DataStream\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"V\n\024GetDataStreamRequ" - + "est\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analyticsadmi" - + "n.googleapis.com/DataStream2\333P\n\025Analytic" - + "sAdminService\022\220\001\n\nGetAccount\0220.google.an" - + "alytics.admin.v1beta.GetAccountRequest\032&" - + ".google.analytics.admin.v1beta.Account\"(" - + "\332A\004name\202\323\344\223\002\033\022\031/v1beta/{name=accounts/*}" - + "\022\221\001\n\014ListAccounts\0222.google.analytics.adm" - + "in.v1beta.ListAccountsRequest\0323.google.a" - + "nalytics.admin.v1beta.ListAccountsRespon" - + "se\"\030\202\323\344\223\002\022\022\020/v1beta/accounts\022\206\001\n\rDeleteA" - + "ccount\0223.google.analytics.admin.v1beta.D" - + "eleteAccountRequest\032\026.google.protobuf.Em" - + "pty\"(\332A\004name\202\323\344\223\002\033*\031/v1beta/{name=accoun" - + "ts/*}\022\266\001\n\rUpdateAccount\0223.google.analyti" - + "cs.admin.v1beta.UpdateAccountRequest\032&.g" - + "oogle.analytics.admin.v1beta.Account\"H\332A" - + "\023account,update_mask\202\323\344\223\002,2!/v1beta/{acc" - + "ount.name=accounts/*}:\007account\022\311\001\n\026Provi" - + "sionAccountTicket\022<.google.analytics.adm" - + "in.v1beta.ProvisionAccountTicketRequest\032" - + "=.google.analytics.admin.v1beta.Provisio" - + "nAccountTicketResponse\"2\202\323\344\223\002,\"\'/v1beta/" - + "accounts:provisionAccountTicket:\001*\022\261\001\n\024L" - + "istAccountSummaries\022:.google.analytics.a" - + "dmin.v1beta.ListAccountSummariesRequest\032" - + ";.google.analytics.admin.v1beta.ListAcco" - + "untSummariesResponse\" \202\323\344\223\002\032\022\030/v1beta/ac" - + "countSummaries\022\225\001\n\013GetProperty\0221.google." - + "analytics.admin.v1beta.GetPropertyReques" - + "t\032\'.google.analytics.admin.v1beta.Proper" - + "ty\"*\332A\004name\202\323\344\223\002\035\022\033/v1beta/{name=propert" - + "ies/*}\022\231\001\n\016ListProperties\0224.google.analy" - + "tics.admin.v1beta.ListPropertiesRequest\032" - + "5.google.analytics.admin.v1beta.ListProp" - + "ertiesResponse\"\032\202\323\344\223\002\024\022\022/v1beta/properti" - + "es\022\240\001\n\016CreateProperty\0224.google.analytics" - + ".admin.v1beta.CreatePropertyRequest\032\'.go" - + "ogle.analytics.admin.v1beta.Property\"/\332A" - + "\010property\202\323\344\223\002\036\"\022/v1beta/properties:\010pro" - + "perty\022\233\001\n\016DeleteProperty\0224.google.analyt" - + "ics.admin.v1beta.DeletePropertyRequest\032\'" - + ".google.analytics.admin.v1beta.Property\"" - + "*\332A\004name\202\323\344\223\002\035*\033/v1beta/{name=properties" - + "/*}\022\276\001\n\016UpdateProperty\0224.google.analytic" - + "s.admin.v1beta.UpdatePropertyRequest\032\'.g" - + "oogle.analytics.admin.v1beta.Property\"M\332" - + "A\024property,update_mask\202\323\344\223\00202$/v1beta/{p" - + "roperty.name=properties/*}:\010property\022\326\001\n" - + "\022CreateFirebaseLink\0228.google.analytics.a" - + "dmin.v1beta.CreateFirebaseLinkRequest\032+." - + "google.analytics.admin.v1beta.FirebaseLi" - + "nk\"Y\332A\024parent,firebase_link\202\323\344\223\002<\"+/v1be" - + "ta/{parent=properties/*}/firebaseLinks:\r" - + "firebase_link\022\242\001\n\022DeleteFirebaseLink\0228.g" - + "oogle.analytics.admin.v1beta.DeleteFireb" - + "aseLinkRequest\032\026.google.protobuf.Empty\":" - + "\332A\004name\202\323\344\223\002-*+/v1beta/{name=properties/" - + "*/firebaseLinks/*}\022\304\001\n\021ListFirebaseLinks" - + "\0227.google.analytics.admin.v1beta.ListFir" - + "ebaseLinksRequest\0328.google.analytics.adm" - + "in.v1beta.ListFirebaseLinksResponse\"<\332A\006" - + "parent\202\323\344\223\002-\022+/v1beta/{parent=properties" - + "/*}/firebaseLinks\022\336\001\n\023CreateGoogleAdsLin" - + "k\0229.google.analytics.admin.v1beta.Create" - + "GoogleAdsLinkRequest\032,.google.analytics." - + "admin.v1beta.GoogleAdsLink\"^\332A\026parent,go" - + "ogle_ads_link\202\323\344\223\002?\",/v1beta/{parent=pro" - + "perties/*}/googleAdsLinks:\017google_ads_li" - + "nk\022\363\001\n\023UpdateGoogleAdsLink\0229.google.anal" - + "ytics.admin.v1beta.UpdateGoogleAdsLinkRe" - + "quest\032,.google.analytics.admin.v1beta.Go" - + "ogleAdsLink\"s\332A\033google_ads_link,update_m" - + "ask\202\323\344\223\002O2\n" + + "\010property\030\001 \001(\0132\'.google.analytics.admin" + + ".v1beta.PropertyB\003\340A\002\0224\n\013update_mask\030\002 \001" + + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"W\n\025C" + + "reatePropertyRequest\022>\n\010property\030\001 \001(\0132\'" + + ".google.analytics.admin.v1beta.PropertyB" + + "\003\340A\002\"U\n\025DeletePropertyRequest\022<\n\004name\030\001 " + + "\001(\tB.\340A\002\372A(\n&analyticsadmin.googleapis.c" + + "om/Property\"\250\001\n\031CreateFirebaseLinkReques" + + "t\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmi" + + "n.googleapis.com/FirebaseLink\022G\n\rfirebas" + + "e_link\030\002 \001(\0132+.google.analytics.admin.v1" + + "beta.FirebaseLinkB\003\340A\002\"]\n\031DeleteFirebase" + + "LinkRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analy" + + "ticsadmin.googleapis.com/FirebaseLink\"\205\001" + + "\n\030ListFirebaseLinksRequest\022B\n\006parent\030\001 \001" + + "(\tB2\340A\002\372A,\022*analyticsadmin.googleapis.co" + + "m/FirebaseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\"y\n\031ListFirebaseLinksRespon" + + "se\022C\n\016firebase_links\030\001 \003(\0132+.google.anal" + + "ytics.admin.v1beta.FirebaseLink\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\255\001\n\032CreateGoogleAdsLink" + + "Request\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+analyti" + + "csadmin.googleapis.com/GoogleAdsLink\022J\n\017" + + "google_ads_link\030\002 \001(\0132,.google.analytics" + + ".admin.v1beta.GoogleAdsLinkB\003\340A\002\"\231\001\n\032Upd" + + "ateGoogleAdsLinkRequest\022E\n\017google_ads_li" + + "nk\030\001 \001(\0132,.google.analytics.admin.v1beta" + + ".GoogleAdsLink\0224\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\003\340A\002\"_\n\032DeleteGo" + + "ogleAdsLinkRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-" + + "\n+analyticsadmin.googleapis.com/GoogleAd" + + "sLink\"\207\001\n\031ListGoogleAdsLinksRequest\022C\n\006p" + + "arent\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.goog" + + "leapis.com/GoogleAdsLink\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"}\n\032ListGoogleAds" + + "LinksResponse\022F\n\020google_ads_links\030\001 \003(\0132" + + ",.google.analytics.admin.v1beta.GoogleAd" + + "sLink\022\027\n\017next_page_token\030\002 \001(\t\"h\n\035GetDat" + + "aSharingSettingsRequest\022G\n\004name\030\001 \001(\tB9\340" + + "A\002\372A3\n1analyticsadmin.googleapis.com/Dat" + + "aSharingSettings\"D\n\033ListAccountSummaries" + + "Request\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token" + + "\030\002 \001(\t\"\201\001\n\034ListAccountSummariesResponse\022" + + "H\n\021account_summaries\030\001 \003(\0132-.google.anal" + + "ytics.admin.v1beta.AccountSummary\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"\206\001\n$AcknowledgeUserDa" + + "taCollectionRequest\022@\n\010property\030\001 \001(\tB.\340" + + "A\002\372A(\n&analyticsadmin.googleapis.com/Pro" + + "perty\022\034\n\017acknowledgement\030\002 \001(\tB\003\340A\002\"\'\n%A" + + "cknowledgeUserDataCollectionResponse\"\201\004\n" + + " SearchChangeHistoryEventsRequest\022>\n\007acc" + + "ount\030\001 \001(\tB-\340A\002\372A\'\n%analyticsadmin.googl" + + "eapis.com/Account\022@\n\010property\030\002 \001(\tB.\340A\001" + + "\372A(\n&analyticsadmin.googleapis.com/Prope" + + "rty\022T\n\rresource_type\030\003 \003(\01628.google.anal" + + "ytics.admin.v1beta.ChangeHistoryResource" + + "TypeB\003\340A\001\022>\n\006action\030\004 \003(\0162).google.analy" + + "tics.admin.v1beta.ActionTypeB\003\340A\001\022\030\n\013act" + + "or_email\030\005 \003(\tB\003\340A\001\022=\n\024earliest_change_t" + + "ime\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\001\022;\n\022latest_change_time\030\007 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\001\022\026\n\tpage_size\030\010 \001" + + "(\005B\003\340A\001\022\027\n\npage_token\030\t \001(\tB\003\340A\001\"\216\001\n!Sea" + + "rchChangeHistoryEventsResponse\022P\n\025change" + + "_history_events\030\001 \003(\01321.google.analytics" + + ".admin.v1beta.ChangeHistoryEvent\022\027\n\017next" + + "_page_token\030\002 \001(\t\"t\n#GetMeasurementProto" + + "colSecretRequest\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7" + + "analyticsadmin.googleapis.com/Measuremen" + + "tProtocolSecret\"\335\001\n&CreateMeasurementPro" + + "tocolSecretRequest\022O\n\006parent\030\001 \001(\tB?\340A\002\372" + + "A9\0227analyticsadmin.googleapis.com/Measur" + + "ementProtocolSecret\022b\n\033measurement_proto" + + "col_secret\030\002 \001(\01328.google.analytics.admi" + + "n.v1beta.MeasurementProtocolSecretB\003\340A\002\"" + + "w\n&DeleteMeasurementProtocolSecretReques" + + "t\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analyticsadmin." + + "googleapis.com/MeasurementProtocolSecret" + + "\"\302\001\n&UpdateMeasurementProtocolSecretRequ" + + "est\022b\n\033measurement_protocol_secret\030\001 \001(\013" + + "28.google.analytics.admin.v1beta.Measure" + + "mentProtocolSecretB\003\340A\002\0224\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\237\001" + + "\n%ListMeasurementProtocolSecretsRequest\022" + + "O\n\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsadmin." + + "googleapis.com/MeasurementProtocolSecret" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" + + "\241\001\n&ListMeasurementProtocolSecretsRespon" + + "se\022^\n\034measurement_protocol_secrets\030\001 \003(\013" + + "28.google.analytics.admin.v1beta.Measure" + + "mentProtocolSecret\022\027\n\017next_page_token\030\002 " + + "\001(\t\"\264\001\n\034CreateConversionEventRequest\022M\n\020" + + "conversion_event\030\001 \001(\0132..google.analytic" + + "s.admin.v1beta.ConversionEventB\003\340A\002\022E\n\006p" + + "arent\030\002 \001(\tB5\340A\002\372A/\022-analyticsadmin.goog" + + "leapis.com/ConversionEvent\"\243\001\n\034UpdateCon" + + "versionEventRequest\022M\n\020conversion_event\030" + + "\001 \001(\0132..google.analytics.admin.v1beta.Co" + + "nversionEventB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\"`\n\031GetC" + + "onversionEventRequest\022C\n\004name\030\001 \001(\tB5\340A\002" + + "\372A/\n-analyticsadmin.googleapis.com/Conve" + + "rsionEvent\"c\n\034DeleteConversionEventReque" + + "st\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin" + + ".googleapis.com/ConversionEvent\"\213\001\n\033List" + + "ConversionEventsRequest\022E\n\006parent\030\001 \001(\tB" + + "5\340A\002\372A/\022-analyticsadmin.googleapis.com/C" + + "onversionEvent\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\"\202\001\n\034ListConversionEventsRe" + + "sponse\022I\n\021conversion_events\030\001 \003(\0132..goog" + + "le.analytics.admin.v1beta.ConversionEven" + + "t\022\027\n\017next_page_token\030\002 \001(\t\"\230\001\n\025CreateKey" + + "EventRequest\022?\n\tkey_event\030\001 \001(\0132\'.google" + + ".analytics.admin.v1beta.KeyEventB\003\340A\002\022>\n" + + "\006parent\030\002 \001(\tB.\340A\002\372A(\022&analyticsadmin.go" + + "ogleapis.com/KeyEvent\"\216\001\n\025UpdateKeyEvent" + + "Request\022?\n\tkey_event\030\001 \001(\0132\'.google.anal" + + "ytics.admin.v1beta.KeyEventB\003\340A\002\0224\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\003\340A\002\"R\n\022GetKeyEventRequest\022<\n\004name\030\001 \001" + + "(\tB.\340A\002\372A(\n&analyticsadmin.googleapis.co" + + "m/KeyEvent\"U\n\025DeleteKeyEventRequest\022<\n\004n" + + "ame\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.google" + + "apis.com/KeyEvent\"}\n\024ListKeyEventsReques" + + "t\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmi" + + "n.googleapis.com/KeyEvent\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"m\n\025ListKeyEvent" + + "sResponse\022;\n\nkey_events\030\001 \003(\0132\'.google.a" + + "nalytics.admin.v1beta.KeyEvent\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"\264\001\n\034CreateCustomDimensio" + + "nRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyt" + + "icsadmin.googleapis.com/CustomDimension\022" + + "M\n\020custom_dimension\030\002 \001(\0132..google.analy" + + "tics.admin.v1beta.CustomDimensionB\003\340A\002\"\236" + + "\001\n\034UpdateCustomDimensionRequest\022H\n\020custo" + + "m_dimension\030\001 \001(\0132..google.analytics.adm" + + "in.v1beta.CustomDimension\0224\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"" + + "\213\001\n\033ListCustomDimensionsRequest\022E\n\006paren" + + "t\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin.googleap" + + "is.com/CustomDimension\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n\034ListCustomDime" + + "nsionsResponse\022I\n\021custom_dimensions\030\001 \003(" + + "\0132..google.analytics.admin.v1beta.Custom" + + "Dimension\022\027\n\017next_page_token\030\002 \001(\t\"d\n\035Ar" + + "chiveCustomDimensionRequest\022C\n\004name\030\001 \001(" + + "\tB5\340A\002\372A/\n-analyticsadmin.googleapis.com" + + "/CustomDimension\"`\n\031GetCustomDimensionRe" + + "quest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsad" + + "min.googleapis.com/CustomDimension\"\250\001\n\031C" + + "reateCustomMetricRequest\022B\n\006parent\030\001 \001(\t" + + "B2\340A\002\372A,\022*analyticsadmin.googleapis.com/" + + "CustomMetric\022G\n\rcustom_metric\030\002 \001(\0132+.go" + + "ogle.analytics.admin.v1beta.CustomMetric" + + "B\003\340A\002\"\225\001\n\031UpdateCustomMetricRequest\022B\n\rc" + + "ustom_metric\030\001 \001(\0132+.google.analytics.ad" + + "min.v1beta.CustomMetric\0224\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\205\001" + + "\n\030ListCustomMetricsRequest\022B\n\006parent\030\001 \001" + + "(\tB2\340A\002\372A,\022*analyticsadmin.googleapis.co" + + "m/CustomMetric\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\"y\n\031ListCustomMetricsRespon" + + "se\022C\n\016custom_metrics\030\001 \003(\0132+.google.anal" + + "ytics.admin.v1beta.CustomMetric\022\027\n\017next_" + + "page_token\030\002 \001(\t\"^\n\032ArchiveCustomMetricR" + + "equest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analyticsa" + + "dmin.googleapis.com/CustomMetric\"Z\n\026GetC" + + "ustomMetricRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A," + + "\n*analyticsadmin.googleapis.com/CustomMe" + + "tric\"l\n\037GetDataRetentionSettingsRequest\022" + + "I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3analyticsadmin.go" + + "ogleapis.com/DataRetentionSettings\"\266\001\n\"U" + + "pdateDataRetentionSettingsRequest\022Z\n\027dat" + + "a_retention_settings\030\001 \001(\01324.google.anal" + + "ytics.admin.v1beta.DataRetentionSettings" + + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\"\240\001\n\027CreateDataStream" + + "Request\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(analyti" + + "csadmin.googleapis.com/DataStream\022C\n\013dat" + + "a_stream\030\002 \001(\0132).google.analytics.admin." + + "v1beta.DataStreamB\003\340A\002\"Y\n\027DeleteDataStre" + + "amRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analyti" + + "csadmin.googleapis.com/DataStream\"\217\001\n\027Up" + + "dateDataStreamRequest\022>\n\013data_stream\030\001 \001" + + "(\0132).google.analytics.admin.v1beta.DataS" + + "tream\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\"\201\001\n\026ListDataStreamsR" + + "equest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(analytic" + + "sadmin.googleapis.com/DataStream\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\027ListD" + + "ataStreamsResponse\022?\n\014data_streams\030\001 \003(\013" + + "2).google.analytics.admin.v1beta.DataStr" + + "eam\022\027\n\017next_page_token\030\002 \001(\t\"V\n\024GetDataS" + + "treamRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(anal" + + "yticsadmin.googleapis.com/DataStream2\357W\n" + + "\025AnalyticsAdminService\022\220\001\n\nGetAccount\0220." + + "google.analytics.admin.v1beta.GetAccount" + + "Request\032&.google.analytics.admin.v1beta." + + "Account\"(\332A\004name\202\323\344\223\002\033\022\031/v1beta/{name=ac" + + "counts/*}\022\221\001\n\014ListAccounts\0222.google.anal" + + "ytics.admin.v1beta.ListAccountsRequest\0323" + + ".google.analytics.admin.v1beta.ListAccou" + + "ntsResponse\"\030\202\323\344\223\002\022\022\020/v1beta/accounts\022\206\001" + + "\n\rDeleteAccount\0223.google.analytics.admin" + + ".v1beta.DeleteAccountRequest\032\026.google.pr" + + "otobuf.Empty\"(\332A\004name\202\323\344\223\002\033*\031/v1beta/{na" + + "me=accounts/*}\022\266\001\n\rUpdateAccount\0223.googl" + + "e.analytics.admin.v1beta.UpdateAccountRe" + + "quest\032&.google.analytics.admin.v1beta.Ac" + + "count\"H\332A\023account,update_mask\202\323\344\223\002,2!/v1" + + "beta/{account.name=accounts/*}:\007account\022" + + "\311\001\n\026ProvisionAccountTicket\022<.google.anal" + + "ytics.admin.v1beta.ProvisionAccountTicke" + + "tRequest\032=.google.analytics.admin.v1beta" + + ".ProvisionAccountTicketResponse\"2\202\323\344\223\002,\"" + + "\'/v1beta/accounts:provisionAccountTicket" + + ":\001*\022\261\001\n\024ListAccountSummaries\022:.google.an" + + "alytics.admin.v1beta.ListAccountSummarie" + + "sRequest\032;.google.analytics.admin.v1beta" + + ".ListAccountSummariesResponse\" \202\323\344\223\002\032\022\030/" + + "v1beta/accountSummaries\022\225\001\n\013GetProperty\022" + + "1.google.analytics.admin.v1beta.GetPrope" + + "rtyRequest\032\'.google.analytics.admin.v1be" + + "ta.Property\"*\332A\004name\202\323\344\223\002\035\022\033/v1beta/{nam" + + "e=properties/*}\022\231\001\n\016ListProperties\0224.goo" + + "gle.analytics.admin.v1beta.ListPropertie" + + "sRequest\0325.google.analytics.admin.v1beta" + + ".ListPropertiesResponse\"\032\202\323\344\223\002\024\022\022/v1beta" + + "/properties\022\240\001\n\016CreateProperty\0224.google." + + "analytics.admin.v1beta.CreatePropertyReq" + + "uest\032\'.google.analytics.admin.v1beta.Pro" + + "perty\"/\332A\010property\202\323\344\223\002\036\"\022/v1beta/proper" + + "ties:\010property\022\233\001\n\016DeleteProperty\0224.goog" + + "le.analytics.admin.v1beta.DeleteProperty" + + "Request\032\'.google.analytics.admin.v1beta." + + "Property\"*\332A\004name\202\323\344\223\002\035*\033/v1beta/{name=p" + + "roperties/*}\022\276\001\n\016UpdateProperty\0224.google" + + ".analytics.admin.v1beta.UpdatePropertyRe" + + "quest\032\'.google.analytics.admin.v1beta.Pr" + + "operty\"M\332A\024property,update_mask\202\323\344\223\00202$/" + + "v1beta/{property.name=properties/*}:\010pro" + + "perty\022\326\001\n\022CreateFirebaseLink\0228.google.an" + + "alytics.admin.v1beta.CreateFirebaseLinkR" + + "equest\032+.google.analytics.admin.v1beta.F" + + "irebaseLink\"Y\332A\024parent,firebase_link\202\323\344\223" + + "\002<\"+/v1beta/{parent=properties/*}/fireba" + + "seLinks:\rfirebase_link\022\242\001\n\022DeleteFirebas" + + "eLink\0228.google.analytics.admin.v1beta.De" + + "leteFirebaseLinkRequest\032\026.google.protobu" + + "f.Empty\":\332A\004name\202\323\344\223\002-*+/v1beta/{name=pr" + + "operties/*/firebaseLinks/*}\022\304\001\n\021ListFire" + + "baseLinks\0227.google.analytics.admin.v1bet" + + "a.ListFirebaseLinksRequest\0328.google.anal" + + "ytics.admin.v1beta.ListFirebaseLinksResp" + + "onse\"<\332A\006parent\202\323\344\223\002-\022+/v1beta/{parent=p" + + "roperties/*}/firebaseLinks\022\336\001\n\023CreateGoo" + + "gleAdsLink\0229.google.analytics.admin.v1be" + + "ta.CreateGoogleAdsLinkRequest\032,.google.a" + + "nalytics.admin.v1beta.GoogleAdsLink\"^\332A\026" + + "parent,google_ads_link\202\323\344\223\002?\",/v1beta/{p" + + "arent=properties/*}/googleAdsLinks:\017goog" + + "le_ads_link\022\363\001\n\023UpdateGoogleAdsLink\0229.go" + + "ogle.analytics.admin.v1beta.UpdateGoogle" + + "AdsLinkRequest\032,.google.analytics.admin." + + "v1beta.GoogleAdsLink\"s\332A\033google_ads_link" + + ",update_mask\202\323\344\223\002O221/v" + + "1beta/{key_event.name=properties/*/keyEv" + + "ents/*}:\tkey_event\022\241\001\n\013GetKeyEvent\0221.goo" + + "gle.analytics.admin.v1beta.GetKeyEventRe" + + "quest\032\'.google.analytics.admin.v1beta.Ke" + + "yEvent\"6\332A\004name\202\323\344\223\002)\022\'/v1beta/{name=pro" + + "perties/*/keyEvents/*}\022\226\001\n\016DeleteKeyEven" + + "t\0224.google.analytics.admin.v1beta.Delete" + + "KeyEventRequest\032\026.google.protobuf.Empty\"" + + "6\332A\004name\202\323\344\223\002)*\'/v1beta/{name=properties" + + "/*/keyEvents/*}\022\264\001\n\rListKeyEvents\0223.goog" + + "le.analytics.admin.v1beta.ListKeyEventsR" + + "equest\0324.google.analytics.admin.v1beta.L" + + "istKeyEventsResponse\"8\332A\006parent\202\323\344\223\002)\022\'/" + + "v1beta/{parent=properties/*}/keyEvents\022\350" + + "\001\n\025CreateCustomDimension\022;.google.analyt" + + "ics.admin.v1beta.CreateCustomDimensionRe" + + "quest\032..google.analytics.admin.v1beta.Cu" + + "stomDimension\"b\332A\027parent,custom_dimensio" + + "n\202\323\344\223\002B\"./v1beta/{parent=properties/*}/c" + + "ustomDimensions:\020custom_dimension\022\376\001\n\025Up" + + "dateCustomDimension\022;.google.analytics.a" + + "dmin.v1beta.UpdateCustomDimensionRequest" + "\032..google.analytics.admin.v1beta.CustomD" - + "imension\"b\332A\027parent,custom_dimension\202\323\344\223" - + "\002B\"./v1beta/{parent=properties/*}/custom" - + "Dimensions:\020custom_dimension\022\376\001\n\025UpdateC", - "ustomDimension\022;.google.analytics.admin." - + "v1beta.UpdateCustomDimensionRequest\032..go" - + "ogle.analytics.admin.v1beta.CustomDimens" - + "ion\"x\332A\034custom_dimension,update_mask\202\323\344\223" - + "\002S2?/v1beta/{custom_dimension.name=prope" - + "rties/*/customDimensions/*}:\020custom_dime" - + "nsion\022\320\001\n\024ListCustomDimensions\022:.google." - + "analytics.admin.v1beta.ListCustomDimensi" - + "onsRequest\032;.google.analytics.admin.v1be" - + "ta.ListCustomDimensionsResponse\"?\332A\006pare" - + "nt\202\323\344\223\0020\022./v1beta/{parent=properties/*}/" - + "customDimensions\022\270\001\n\026ArchiveCustomDimens" - + "ion\022<.google.analytics.admin.v1beta.Arch" - + "iveCustomDimensionRequest\032\026.google.proto" - + "buf.Empty\"H\332A\004name\202\323\344\223\002;\"6/v1beta/{name=" - + "properties/*/customDimensions/*}:archive" - + ":\001*\022\275\001\n\022GetCustomDimension\0228.google.anal" - + "ytics.admin.v1beta.GetCustomDimensionReq" - + "uest\032..google.analytics.admin.v1beta.Cus" - + "tomDimension\"=\332A\004name\202\323\344\223\0020\022./v1beta/{na" - + "me=properties/*/customDimensions/*}\022\326\001\n\022" - + "CreateCustomMetric\0228.google.analytics.ad" - + "min.v1beta.CreateCustomMetricRequest\032+.g" - + "oogle.analytics.admin.v1beta.CustomMetri" - + "c\"Y\332A\024parent,custom_metric\202\323\344\223\002<\"+/v1bet" - + "a/{parent=properties/*}/customMetrics:\rc" - + "ustom_metric\022\351\001\n\022UpdateCustomMetric\0228.go" - + "ogle.analytics.admin.v1beta.UpdateCustom" - + "MetricRequest\032+.google.analytics.admin.v" - + "1beta.CustomMetric\"l\332A\031custom_metric,upd" - + "ate_mask\202\323\344\223\002J29/v1beta/{custom_metric.n" - + "ame=properties/*/customMetrics/*}:\rcusto" - + "m_metric\022\304\001\n\021ListCustomMetrics\0227.google." - + "analytics.admin.v1beta.ListCustomMetrics" - + "Request\0328.google.analytics.admin.v1beta." - + "ListCustomMetricsResponse\"<\332A\006parent\202\323\344\223" - + "\002-\022+/v1beta/{parent=properties/*}/custom" - + "Metrics\022\257\001\n\023ArchiveCustomMetric\0229.google" - + ".analytics.admin.v1beta.ArchiveCustomMet" - + "ricRequest\032\026.google.protobuf.Empty\"E\332A\004n" - + "ame\202\323\344\223\0028\"3/v1beta/{name=properties/*/cu" - + "stomMetrics/*}:archive:\001*\022\261\001\n\017GetCustomM" - + "etric\0225.google.analytics.admin.v1beta.Ge" - + "tCustomMetricRequest\032+.google.analytics." - + "admin.v1beta.CustomMetric\":\332A\004name\202\323\344\223\002-" - + "\022+/v1beta/{name=properties/*/customMetri" - + "cs/*}\022\322\001\n\030GetDataRetentionSettings\022>.goo" - + "gle.analytics.admin.v1beta.GetDataRetent" - + "ionSettingsRequest\0324.google.analytics.ad" - + "min.v1beta.DataRetentionSettings\"@\332A\004nam" - + "e\202\323\344\223\0023\0221/v1beta/{name=properties/*/data" - + "RetentionSettings}\022\251\002\n\033UpdateDataRetenti" - + "onSettings\022A.google.analytics.admin.v1be" - + "ta.UpdateDataRetentionSettingsRequest\0324." - + "google.analytics.admin.v1beta.DataRetent" - + "ionSettings\"\220\001\332A#data_retention_settings" - + ",update_mask\202\323\344\223\002d2I/v1beta/{data_retent" - + "ion_settings.name=properties/*/dataReten" - + "tionSettings}:\027data_retention_settings\022\312" - + "\001\n\020CreateDataStream\0226.google.analytics.a" - + "dmin.v1beta.CreateDataStreamRequest\032).go" - + "ogle.analytics.admin.v1beta.DataStream\"S" - + "\332A\022parent,data_stream\202\323\344\223\0028\")/v1beta/{pa" - + "rent=properties/*}/dataStreams:\013data_str" - + "eam\022\234\001\n\020DeleteDataStream\0226.google.analyt" - + "ics.admin.v1beta.DeleteDataStreamRequest" - + "\032\026.google.protobuf.Empty\"8\332A\004name\202\323\344\223\002+*" - + ")/v1beta/{name=properties/*/dataStreams/" - + "*}\022\333\001\n\020UpdateDataStream\0226.google.analyti" - + "cs.admin.v1beta.UpdateDataStreamRequest\032" - + ").google.analytics.admin.v1beta.DataStre" - + "am\"d\332A\027data_stream,update_mask\202\323\344\223\002D25/v" - + "1beta/{data_stream.name=properties/*/dat" - + "aStreams/*}:\013data_stream\022\274\001\n\017ListDataStr" - + "eams\0225.google.analytics.admin.v1beta.Lis" - + "tDataStreamsRequest\0326.google.analytics.a" - + "dmin.v1beta.ListDataStreamsResponse\":\332A\006" - + "parent\202\323\344\223\002+\022)/v1beta/{parent=properties" - + "/*}/dataStreams\022\251\001\n\rGetDataStream\0223.goog" - + "le.analytics.admin.v1beta.GetDataStreamR" - + "equest\032).google.analytics.admin.v1beta.D" - + "ataStream\"8\332A\004name\202\323\344\223\002+\022)/v1beta/{name=" - + "properties/*/dataStreams/*}\022\354\001\n\017RunAcces" - + "sReport\0225.google.analytics.admin.v1beta." - + "RunAccessReportRequest\0326.google.analytic" - + "s.admin.v1beta.RunAccessReportResponse\"j" - + "\202\323\344\223\002d\"-/v1beta/{entity=properties/*}:ru" - + "nAccessReport:\001*Z0\"+/v1beta/{entity=acco" - + "unts/*}:runAccessReport:\001*\032\204\001\312A\035analytic" - + "sadmin.googleapis.com\322Aahttps://www.goog" - + "leapis.com/auth/analytics.edit,https://w" - + "ww.googleapis.com/auth/analytics.readonl" - + "yB~\n!com.google.analytics.admin.v1betaB\023" - + "AnalyticsAdminProtoP\001ZBgoogle.golang.org" - + "/genproto/googleapis/analytics/admin/v1b" - + "eta;adminb\006proto3" + + "imension\"x\332A\034custom_dimension,update_mas" + + "k\202\323\344\223\002S2?/v1beta/{custom_dimension.name=" + + "properties/*/customDimensions/*}:\020custom" + + "_dimension\022\320\001\n\024ListCustomDimensions\022:.go" + + "ogle.analytics.admin.v1beta.ListCustomDi" + + "mensionsRequest\032;.google.analytics.admin" + + ".v1beta.ListCustomDimensionsResponse\"?\332A" + + "\006parent\202\323\344\223\0020\022./v1beta/{parent=propertie" + + "s/*}/customDimensions\022\270\001\n\026ArchiveCustomD" + + "imension\022<.google.analytics.admin.v1beta" + + ".ArchiveCustomDimensionRequest\032\026.google." + + "protobuf.Empty\"H\332A\004name\202\323\344\223\002;\"6/v1beta/{" + + "name=properties/*/customDimensions/*}:ar" + + "chive:\001*\022\275\001\n\022GetCustomDimension\0228.google" + + ".analytics.admin.v1beta.GetCustomDimensi" + + "onRequest\032..google.analytics.admin.v1bet" + + "a.CustomDimension\"=\332A\004name\202\323\344\223\0020\022./v1bet" + + "a/{name=properties/*/customDimensions/*}" + + "\022\326\001\n\022CreateCustomMetric\0228.google.analyti" + + "cs.admin.v1beta.CreateCustomMetricReques" + + "t\032+.google.analytics.admin.v1beta.Custom" + + "Metric\"Y\332A\024parent,custom_metric\202\323\344\223\002<\"+/" + + "v1beta/{parent=properties/*}/customMetri" + + "cs:\rcustom_metric\022\351\001\n\022UpdateCustomMetric" + + "\0228.google.analytics.admin.v1beta.UpdateC" + + "ustomMetricRequest\032+.google.analytics.ad" + + "min.v1beta.CustomMetric\"l\332A\031custom_metri" + + "c,update_mask\202\323\344\223\002J29/v1beta/{custom_met" + + "ric.name=properties/*/customMetrics/*}:\r" + + "custom_metric\022\304\001\n\021ListCustomMetrics\0227.go" + + "ogle.analytics.admin.v1beta.ListCustomMe" + + "tricsRequest\0328.google.analytics.admin.v1" + + "beta.ListCustomMetricsResponse\"<\332A\006paren" + + "t\202\323\344\223\002-\022+/v1beta/{parent=properties/*}/c" + + "ustomMetrics\022\257\001\n\023ArchiveCustomMetric\0229.g" + + "oogle.analytics.admin.v1beta.ArchiveCust" + + "omMetricRequest\032\026.google.protobuf.Empty\"" + + "E\332A\004name\202\323\344\223\0028\"3/v1beta/{name=properties" + + "/*/customMetrics/*}:archive:\001*\022\261\001\n\017GetCu" + + "stomMetric\0225.google.analytics.admin.v1be" + + "ta.GetCustomMetricRequest\032+.google.analy" + + "tics.admin.v1beta.CustomMetric\":\332A\004name\202" + + "\323\344\223\002-\022+/v1beta/{name=properties/*/custom" + + "Metrics/*}\022\322\001\n\030GetDataRetentionSettings\022" + + ">.google.analytics.admin.v1beta.GetDataR" + + "etentionSettingsRequest\0324.google.analyti" + + "cs.admin.v1beta.DataRetentionSettings\"@\332" + + "A\004name\202\323\344\223\0023\0221/v1beta/{name=properties/*" + + "/dataRetentionSettings}\022\251\002\n\033UpdateDataRe" + + "tentionSettings\022A.google.analytics.admin" + + ".v1beta.UpdateDataRetentionSettingsReque" + + "st\0324.google.analytics.admin.v1beta.DataR" + + "etentionSettings\"\220\001\332A#data_retention_set" + + "tings,update_mask\202\323\344\223\002d2I/v1beta/{data_r" + + "etention_settings.name=properties/*/data" + + "RetentionSettings}:\027data_retention_setti" + + "ngs\022\312\001\n\020CreateDataStream\0226.google.analyt" + + "ics.admin.v1beta.CreateDataStreamRequest" + + "\032).google.analytics.admin.v1beta.DataStr" + + "eam\"S\332A\022parent,data_stream\202\323\344\223\0028\")/v1bet" + + "a/{parent=properties/*}/dataStreams:\013dat" + + "a_stream\022\234\001\n\020DeleteDataStream\0226.google.a" + + "nalytics.admin.v1beta.DeleteDataStreamRe" + + "quest\032\026.google.protobuf.Empty\"8\332A\004name\202\323" + + "\344\223\002+*)/v1beta/{name=properties/*/dataStr" + + "eams/*}\022\333\001\n\020UpdateDataStream\0226.google.an" + + "alytics.admin.v1beta.UpdateDataStreamReq" + + "uest\032).google.analytics.admin.v1beta.Dat" + + "aStream\"d\332A\027data_stream,update_mask\202\323\344\223\002" + + "D25/v1beta/{data_stream.name=properties/" + + "*/dataStreams/*}:\013data_stream\022\274\001\n\017ListDa" + + "taStreams\0225.google.analytics.admin.v1bet" + + "a.ListDataStreamsRequest\0326.google.analyt" + + "ics.admin.v1beta.ListDataStreamsResponse" + + "\":\332A\006parent\202\323\344\223\002+\022)/v1beta/{parent=prope" + + "rties/*}/dataStreams\022\251\001\n\rGetDataStream\0223" + + ".google.analytics.admin.v1beta.GetDataSt" + + "reamRequest\032).google.analytics.admin.v1b" + + "eta.DataStream\"8\332A\004name\202\323\344\223\002+\022)/v1beta/{" + + "name=properties/*/dataStreams/*}\022\354\001\n\017Run" + + "AccessReport\0225.google.analytics.admin.v1" + + "beta.RunAccessReportRequest\0326.google.ana" + + "lytics.admin.v1beta.RunAccessReportRespo" + + "nse\"j\202\323\344\223\002d\"-/v1beta/{entity=properties/" + + "*}:runAccessReport:\001*Z0\"+/v1beta/{entity" + + "=accounts/*}:runAccessReport:\001*\032\204\001\312A\035ana" + + "lyticsadmin.googleapis.com\322Aahttps://www" + + ".googleapis.com/auth/analytics.edit,http" + + "s://www.googleapis.com/auth/analytics.re" + + "adonlyBy\n!com.google.analytics.admin.v1b" + + "etaB\023AnalyticsAdminProtoP\001Z=cloud.google" + + ".com/go/analytics/admin/apiv1beta/adminp" + + "b;adminpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -817,6 +883,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeZone", "OrderBys", "ReturnEntityQuota", + "IncludeAllUsers", + "ExpandGroups", }); internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_descriptor = getDescriptor().getMessageTypes().get(1); @@ -1160,8 +1228,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ConversionEvents", "NextPageToken", }); - internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor = + internal_static_google_analytics_admin_v1beta_CreateKeyEventRequest_descriptor = getDescriptor().getMessageTypes().get(43); + internal_static_google_analytics_admin_v1beta_CreateKeyEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_CreateKeyEventRequest_descriptor, + new java.lang.String[] { + "KeyEvent", "Parent", + }); + internal_static_google_analytics_admin_v1beta_UpdateKeyEventRequest_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_analytics_admin_v1beta_UpdateKeyEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_UpdateKeyEventRequest_descriptor, + new java.lang.String[] { + "KeyEvent", "UpdateMask", + }); + internal_static_google_analytics_admin_v1beta_GetKeyEventRequest_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_analytics_admin_v1beta_GetKeyEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_GetKeyEventRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_DeleteKeyEventRequest_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_analytics_admin_v1beta_DeleteKeyEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_DeleteKeyEventRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_ListKeyEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_analytics_admin_v1beta_ListKeyEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListKeyEventsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1beta_ListKeyEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_analytics_admin_v1beta_ListKeyEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListKeyEventsResponse_descriptor, + new java.lang.String[] { + "KeyEvents", "NextPageToken", + }); + internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(49); internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor, @@ -1169,7 +1285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CustomDimension", }); internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(50); internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_descriptor, @@ -1177,7 +1293,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomDimension", "UpdateMask", }); internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(51); internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_descriptor, @@ -1185,7 +1301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(52); internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_descriptor, @@ -1193,7 +1309,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomDimensions", "NextPageToken", }); internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(53); internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_descriptor, @@ -1201,7 +1317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(54); internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_descriptor, @@ -1209,7 +1325,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(55); internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_descriptor, @@ -1217,7 +1333,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CustomMetric", }); internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(56); internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_descriptor, @@ -1225,7 +1341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomMetric", "UpdateMask", }); internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(57); internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_descriptor, @@ -1233,7 +1349,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(58); internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_descriptor, @@ -1241,7 +1357,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomMetrics", "NextPageToken", }); internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(59); internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_descriptor, @@ -1249,7 +1365,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(60); internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_descriptor, @@ -1257,7 +1373,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(61); internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_descriptor, @@ -1265,7 +1381,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(62); internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_descriptor, @@ -1273,7 +1389,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataRetentionSettings", "UpdateMask", }); internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(63); internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_descriptor, @@ -1281,7 +1397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DataStream", }); internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(64); internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_descriptor, @@ -1289,7 +1405,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(65); internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_descriptor, @@ -1297,7 +1413,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataStream", "UpdateMask", }); internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(66); internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_descriptor, @@ -1305,7 +1421,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(67); internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_descriptor, @@ -1313,7 +1429,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataStreams", "NextPageToken", }); internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(62); + getDescriptor().getMessageTypes().get(68); internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_descriptor, diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java index c959b84be602..d5e1b5b80097 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java @@ -230,6 +230,925 @@ private ConversionCountingMethod(int value) { // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod) } + public interface DefaultConversionValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +     * This value will be used to populate the value for all conversions
          +     * of the specified event_name where the event "value" parameter is unset.
          +     * 
          + * + * optional double value = 1; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * + * + *
          +     * This value will be used to populate the value for all conversions
          +     * of the specified event_name where the event "value" parameter is unset.
          +     * 
          + * + * optional double value = 1; + * + * @return The value. + */ + double getValue(); + + /** + * + * + *
          +     * When a conversion event for this event_name has no set currency,
          +     * this currency will be applied as the default. Must be in ISO 4217
          +     * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
          +     * more information.
          +     * 
          + * + * optional string currency_code = 2; + * + * @return Whether the currencyCode field is set. + */ + boolean hasCurrencyCode(); + /** + * + * + *
          +     * When a conversion event for this event_name has no set currency,
          +     * this currency will be applied as the default. Must be in ISO 4217
          +     * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
          +     * more information.
          +     * 
          + * + * optional string currency_code = 2; + * + * @return The currencyCode. + */ + java.lang.String getCurrencyCode(); + /** + * + * + *
          +     * When a conversion event for this event_name has no set currency,
          +     * this currency will be applied as the default. Must be in ISO 4217
          +     * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
          +     * more information.
          +     * 
          + * + * optional string currency_code = 2; + * + * @return The bytes for currencyCode. + */ + com.google.protobuf.ByteString getCurrencyCodeBytes(); + } + /** + * + * + *
          +   * Defines a default value/currency for a conversion event. Both value and
          +   * currency must be provided.
          +   * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue} + */ + public static final class DefaultConversionValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue) + DefaultConversionValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use DefaultConversionValue.newBuilder() to construct. + private DefaultConversionValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DefaultConversionValue() { + currencyCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DefaultConversionValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ConversionEvent_DefaultConversionValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ConversionEvent_DefaultConversionValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue.class, + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue.Builder + .class); + } + + private int bitField0_; + public static final int VALUE_FIELD_NUMBER = 1; + private double value_ = 0D; + /** + * + * + *
          +     * This value will be used to populate the value for all conversions
          +     * of the specified event_name where the event "value" parameter is unset.
          +     * 
          + * + * optional double value = 1; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +     * This value will be used to populate the value for all conversions
          +     * of the specified event_name where the event "value" parameter is unset.
          +     * 
          + * + * optional double value = 1; + * + * @return The value. + */ + @java.lang.Override + public double getValue() { + return value_; + } + + public static final int CURRENCY_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object currencyCode_ = ""; + /** + * + * + *
          +     * When a conversion event for this event_name has no set currency,
          +     * this currency will be applied as the default. Must be in ISO 4217
          +     * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
          +     * more information.
          +     * 
          + * + * optional string currency_code = 2; + * + * @return Whether the currencyCode field is set. + */ + @java.lang.Override + public boolean hasCurrencyCode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * When a conversion event for this event_name has no set currency,
          +     * this currency will be applied as the default. Must be in ISO 4217
          +     * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
          +     * more information.
          +     * 
          + * + * optional string currency_code = 2; + * + * @return The currencyCode. + */ + @java.lang.Override + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currencyCode_ = s; + return s; + } + } + /** + * + * + *
          +     * When a conversion event for this event_name has no set currency,
          +     * this currency will be applied as the default. Must be in ISO 4217
          +     * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
          +     * more information.
          +     * 
          + * + * optional string currency_code = 2; + * + * @return The bytes for currencyCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currencyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(1, value_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, currencyCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, value_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currencyCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue other = + (com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue) obj; + + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (java.lang.Double.doubleToLongBits(getValue()) + != java.lang.Double.doubleToLongBits(other.getValue())) return false; + } + if (hasCurrencyCode() != other.hasCurrencyCode()) return false; + if (hasCurrencyCode()) { + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); + } + if (hasCurrencyCode()) { + hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCurrencyCode().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +     * Defines a default value/currency for a conversion event. Both value and
          +     * currency must be provided.
          +     * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue) + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ConversionEvent_DefaultConversionValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ConversionEvent_DefaultConversionValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue.class, + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + value_ = 0D; + currencyCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ConversionEvent_DefaultConversionValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue build() { + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + buildPartial() { + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue result = + new com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.currencyCode_ = currencyCode_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue) { + return mergeFrom( + (com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue other) { + if (other + == com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + .getDefaultInstance()) return this; + if (other.hasValue()) { + setValue(other.getValue()); + } + if (other.hasCurrencyCode()) { + currencyCode_ = other.currencyCode_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + value_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 18: + { + currencyCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private double value_; + /** + * + * + *
          +       * This value will be used to populate the value for all conversions
          +       * of the specified event_name where the event "value" parameter is unset.
          +       * 
          + * + * optional double value = 1; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +       * This value will be used to populate the value for all conversions
          +       * of the specified event_name where the event "value" parameter is unset.
          +       * 
          + * + * optional double value = 1; + * + * @return The value. + */ + @java.lang.Override + public double getValue() { + return value_; + } + /** + * + * + *
          +       * This value will be used to populate the value for all conversions
          +       * of the specified event_name where the event "value" parameter is unset.
          +       * 
          + * + * optional double value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(double value) { + + value_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +       * This value will be used to populate the value for all conversions
          +       * of the specified event_name where the event "value" parameter is unset.
          +       * 
          + * + * optional double value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000001); + value_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object currencyCode_ = ""; + /** + * + * + *
          +       * When a conversion event for this event_name has no set currency,
          +       * this currency will be applied as the default. Must be in ISO 4217
          +       * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
          +       * more information.
          +       * 
          + * + * optional string currency_code = 2; + * + * @return Whether the currencyCode field is set. + */ + public boolean hasCurrencyCode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +       * When a conversion event for this event_name has no set currency,
          +       * this currency will be applied as the default. Must be in ISO 4217
          +       * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
          +       * more information.
          +       * 
          + * + * optional string currency_code = 2; + * + * @return The currencyCode. + */ + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currencyCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +       * When a conversion event for this event_name has no set currency,
          +       * this currency will be applied as the default. Must be in ISO 4217
          +       * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
          +       * more information.
          +       * 
          + * + * optional string currency_code = 2; + * + * @return The bytes for currencyCode. + */ + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currencyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +       * When a conversion event for this event_name has no set currency,
          +       * this currency will be applied as the default. Must be in ISO 4217
          +       * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
          +       * more information.
          +       * 
          + * + * optional string currency_code = 2; + * + * @param value The currencyCode to set. + * @return This builder for chaining. + */ + public Builder setCurrencyCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + currencyCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +       * When a conversion event for this event_name has no set currency,
          +       * this currency will be applied as the default. Must be in ISO 4217
          +       * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
          +       * more information.
          +       * 
          + * + * optional string currency_code = 2; + * + * @return This builder for chaining. + */ + public Builder clearCurrencyCode() { + currencyCode_ = getDefaultInstance().getCurrencyCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +       * When a conversion event for this event_name has no set currency,
          +       * this currency will be applied as the default. Must be in ISO 4217
          +       * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
          +       * more information.
          +       * 
          + * + * optional string currency_code = 2; + * + * @param value The bytes for currencyCode to set. + * @return This builder for chaining. + */ + public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue) + private static final com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue(); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefaultConversionValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -475,6 +1394,67 @@ public int getCountingMethodValue() { : result; } + public static final int DEFAULT_CONVERSION_VALUE_FIELD_NUMBER = 7; + private com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + defaultConversionValue_; + /** + * + * + *
          +   * Optional. Defines a default value/currency for a conversion event.
          +   * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultConversionValue field is set. + */ + @java.lang.Override + public boolean hasDefaultConversionValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Optional. Defines a default value/currency for a conversion event.
          +   * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultConversionValue. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + getDefaultConversionValue() { + return defaultConversionValue_ == null + ? com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + .getDefaultInstance() + : defaultConversionValue_; + } + /** + * + * + *
          +   * Optional. Defines a default value/currency for a conversion event.
          +   * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValueOrBuilder + getDefaultConversionValueOrBuilder() { + return defaultConversionValue_ == null + ? com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + .getDefaultInstance() + : defaultConversionValue_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -510,6 +1490,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(6, countingMethod_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getDefaultConversionValue()); + } getUnknownFields().writeTo(output); } @@ -540,6 +1523,10 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, countingMethod_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDefaultConversionValue()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -565,6 +1552,10 @@ public boolean equals(final java.lang.Object obj) { if (getDeletable() != other.getDeletable()) return false; if (getCustom() != other.getCustom()) return false; if (countingMethod_ != other.countingMethod_) return false; + if (hasDefaultConversionValue() != other.hasDefaultConversionValue()) return false; + if (hasDefaultConversionValue()) { + if (!getDefaultConversionValue().equals(other.getDefaultConversionValue())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -590,6 +1581,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCustom()); hash = (37 * hash) + COUNTING_METHOD_FIELD_NUMBER; hash = (53 * hash) + countingMethod_; + if (hasDefaultConversionValue()) { + hash = (37 * hash) + DEFAULT_CONVERSION_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultConversionValue().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -731,6 +1726,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); + getDefaultConversionValueFieldBuilder(); } } @@ -748,6 +1744,11 @@ public Builder clear() { deletable_ = false; custom_ = false; countingMethod_ = 0; + defaultConversionValue_ = null; + if (defaultConversionValueBuilder_ != null) { + defaultConversionValueBuilder_.dispose(); + defaultConversionValueBuilder_ = null; + } return this; } @@ -804,6 +1805,13 @@ private void buildPartial0(com.google.analytics.admin.v1beta.ConversionEvent res if (((from_bitField0_ & 0x00000020) != 0)) { result.countingMethod_ = countingMethod_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.defaultConversionValue_ = + defaultConversionValueBuilder_ == null + ? defaultConversionValue_ + : defaultConversionValueBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -875,6 +1883,9 @@ public Builder mergeFrom(com.google.analytics.admin.v1beta.ConversionEvent other if (other.countingMethod_ != 0) { setCountingMethodValue(other.getCountingMethodValue()); } + if (other.hasDefaultConversionValue()) { + mergeDefaultConversionValue(other.getDefaultConversionValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -937,6 +1948,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 58: + { + input.readMessage( + getDefaultConversionValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1620,6 +2638,221 @@ public Builder clearCountingMethod() { return this; } + private com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + defaultConversionValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue, + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue.Builder, + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValueOrBuilder> + defaultConversionValueBuilder_; + /** + * + * + *
          +     * Optional. Defines a default value/currency for a conversion event.
          +     * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultConversionValue field is set. + */ + public boolean hasDefaultConversionValue() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a conversion event.
          +     * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultConversionValue. + */ + public com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + getDefaultConversionValue() { + if (defaultConversionValueBuilder_ == null) { + return defaultConversionValue_ == null + ? com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + .getDefaultInstance() + : defaultConversionValue_; + } else { + return defaultConversionValueBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a conversion event.
          +     * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultConversionValue( + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue value) { + if (defaultConversionValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultConversionValue_ = value; + } else { + defaultConversionValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a conversion event.
          +     * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultConversionValue( + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue.Builder + builderForValue) { + if (defaultConversionValueBuilder_ == null) { + defaultConversionValue_ = builderForValue.build(); + } else { + defaultConversionValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a conversion event.
          +     * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDefaultConversionValue( + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue value) { + if (defaultConversionValueBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && defaultConversionValue_ != null + && defaultConversionValue_ + != com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + .getDefaultInstance()) { + getDefaultConversionValueBuilder().mergeFrom(value); + } else { + defaultConversionValue_ = value; + } + } else { + defaultConversionValueBuilder_.mergeFrom(value); + } + if (defaultConversionValue_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a conversion event.
          +     * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDefaultConversionValue() { + bitField0_ = (bitField0_ & ~0x00000040); + defaultConversionValue_ = null; + if (defaultConversionValueBuilder_ != null) { + defaultConversionValueBuilder_.dispose(); + defaultConversionValueBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a conversion event.
          +     * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue.Builder + getDefaultConversionValueBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getDefaultConversionValueFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a conversion event.
          +     * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValueOrBuilder + getDefaultConversionValueOrBuilder() { + if (defaultConversionValueBuilder_ != null) { + return defaultConversionValueBuilder_.getMessageOrBuilder(); + } else { + return defaultConversionValue_ == null + ? com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + .getDefaultInstance() + : defaultConversionValue_; + } + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a conversion event.
          +     * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue, + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue.Builder, + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValueOrBuilder> + getDefaultConversionValueFieldBuilder() { + if (defaultConversionValueBuilder_ == null) { + defaultConversionValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue, + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue.Builder, + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValueOrBuilder>( + getDefaultConversionValue(), getParentForChildren(), isClean()); + defaultConversionValue_ = null; + } + return defaultConversionValueBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java index 7d2bbdb05eb8..7e7d1d29a4d2 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java @@ -180,4 +180,47 @@ public interface ConversionEventOrBuilder * @return The countingMethod. */ com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod getCountingMethod(); + + /** + * + * + *
          +   * Optional. Defines a default value/currency for a conversion event.
          +   * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultConversionValue field is set. + */ + boolean hasDefaultConversionValue(); + /** + * + * + *
          +   * Optional. Defines a default value/currency for a conversion event.
          +   * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultConversionValue. + */ + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue + getDefaultConversionValue(); + /** + * + * + *
          +   * Optional. Defines a default value/currency for a conversion event.
          +   * 
          + * + * + * optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValueOrBuilder + getDefaultConversionValueOrBuilder(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequest.java index 3e2e0585c435..e32ce96b73be 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequest.java @@ -73,7 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
              * Required. Format: properties/{property_id}
          -   * Example: properties/1234
          +   *
          +   * Example: `properties/1234`
              * 
          * * @@ -99,7 +100,8 @@ public java.lang.String getParent() { * *
              * Required. Format: properties/{property_id}
          -   * Example: properties/1234
          +   *
          +   * Example: `properties/1234`
              * 
          * * @@ -570,7 +572,8 @@ public Builder mergeFrom( * *
                * Required. Format: properties/{property_id}
          -     * Example: properties/1234
          +     *
          +     * Example: `properties/1234`
                * 
          * * @@ -595,7 +598,8 @@ public java.lang.String getParent() { * *
                * Required. Format: properties/{property_id}
          -     * Example: properties/1234
          +     *
          +     * Example: `properties/1234`
                * 
          * * @@ -620,7 +624,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                * Required. Format: properties/{property_id}
          -     * Example: properties/1234
          +     *
          +     * Example: `properties/1234`
                * 
          * * @@ -644,7 +649,8 @@ public Builder setParent(java.lang.String value) { * *
                * Required. Format: properties/{property_id}
          -     * Example: properties/1234
          +     *
          +     * Example: `properties/1234`
                * 
          * * @@ -664,7 +670,8 @@ public Builder clearParent() { * *
                * Required. Format: properties/{property_id}
          -     * Example: properties/1234
          +     *
          +     * Example: `properties/1234`
                * 
          * * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequestOrBuilder.java index 8116b108467b..2fbff2fdc7d9 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequestOrBuilder.java @@ -29,7 +29,8 @@ public interface CreateFirebaseLinkRequestOrBuilder * *
              * Required. Format: properties/{property_id}
          -   * Example: properties/1234
          +   *
          +   * Example: `properties/1234`
              * 
          * * @@ -44,7 +45,8 @@ public interface CreateFirebaseLinkRequestOrBuilder * *
              * Required. Format: properties/{property_id}
          -   * Example: properties/1234
          +   *
          +   * Example: `properties/1234`
              * 
          * * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateKeyEventRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateKeyEventRequest.java new file mode 100644 index 000000000000..7dbc4937b313 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateKeyEventRequest.java @@ -0,0 +1,950 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1beta/analytics_admin.proto + +// Protobuf Java Version: 3.25.3 +package com.google.analytics.admin.v1beta; + +/** + * + * + *
          + * Request message for CreateKeyEvent RPC
          + * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.CreateKeyEventRequest} + */ +public final class CreateKeyEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateKeyEventRequest) + CreateKeyEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateKeyEventRequest.newBuilder() to construct. + private CreateKeyEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateKeyEventRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateKeyEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateKeyEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateKeyEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateKeyEventRequest.class, + com.google.analytics.admin.v1beta.CreateKeyEventRequest.Builder.class); + } + + private int bitField0_; + public static final int KEY_EVENT_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.KeyEvent keyEvent_; + /** + * + * + *
          +   * Required. The Key Event to create.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the keyEvent field is set. + */ + @java.lang.Override + public boolean hasKeyEvent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. The Key Event to create.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The keyEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent getKeyEvent() { + return keyEvent_ == null + ? com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance() + : keyEvent_; + } + /** + * + * + *
          +   * Required. The Key Event to create.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEventOrBuilder getKeyEventOrBuilder() { + return keyEvent_ == null + ? com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance() + : keyEvent_; + } + + public static final int PARENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The resource name of the parent property where this Key Event
          +   * will be created. Format: properties/123
          +   * 
          + * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The resource name of the parent property where this Key Event
          +   * will be created. Format: properties/123
          +   * 
          + * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getKeyEvent()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKeyEvent()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1beta.CreateKeyEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.CreateKeyEventRequest other = + (com.google.analytics.admin.v1beta.CreateKeyEventRequest) obj; + + if (hasKeyEvent() != other.hasKeyEvent()) return false; + if (hasKeyEvent()) { + if (!getKeyEvent().equals(other.getKeyEvent())) return false; + } + if (!getParent().equals(other.getParent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasKeyEvent()) { + hash = (37 * hash) + KEY_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getKeyEvent().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.CreateKeyEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateKeyEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateKeyEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateKeyEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateKeyEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateKeyEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateKeyEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateKeyEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateKeyEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateKeyEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateKeyEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateKeyEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.CreateKeyEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Request message for CreateKeyEvent RPC
          +   * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.CreateKeyEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateKeyEventRequest) + com.google.analytics.admin.v1beta.CreateKeyEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateKeyEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateKeyEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateKeyEventRequest.class, + com.google.analytics.admin.v1beta.CreateKeyEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.CreateKeyEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getKeyEventFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyEvent_ = null; + if (keyEventBuilder_ != null) { + keyEventBuilder_.dispose(); + keyEventBuilder_ = null; + } + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateKeyEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateKeyEventRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.CreateKeyEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateKeyEventRequest build() { + com.google.analytics.admin.v1beta.CreateKeyEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateKeyEventRequest buildPartial() { + com.google.analytics.admin.v1beta.CreateKeyEventRequest result = + new com.google.analytics.admin.v1beta.CreateKeyEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.CreateKeyEventRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keyEvent_ = keyEventBuilder_ == null ? keyEvent_ : keyEventBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parent_ = parent_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.CreateKeyEventRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.CreateKeyEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.CreateKeyEventRequest other) { + if (other == com.google.analytics.admin.v1beta.CreateKeyEventRequest.getDefaultInstance()) + return this; + if (other.hasKeyEvent()) { + mergeKeyEvent(other.getKeyEvent()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getKeyEventFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.KeyEvent keyEvent_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.KeyEvent, + com.google.analytics.admin.v1beta.KeyEvent.Builder, + com.google.analytics.admin.v1beta.KeyEventOrBuilder> + keyEventBuilder_; + /** + * + * + *
          +     * Required. The Key Event to create.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the keyEvent field is set. + */ + public boolean hasKeyEvent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +     * Required. The Key Event to create.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The keyEvent. + */ + public com.google.analytics.admin.v1beta.KeyEvent getKeyEvent() { + if (keyEventBuilder_ == null) { + return keyEvent_ == null + ? com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance() + : keyEvent_; + } else { + return keyEventBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The Key Event to create.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setKeyEvent(com.google.analytics.admin.v1beta.KeyEvent value) { + if (keyEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + keyEvent_ = value; + } else { + keyEventBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The Key Event to create.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setKeyEvent(com.google.analytics.admin.v1beta.KeyEvent.Builder builderForValue) { + if (keyEventBuilder_ == null) { + keyEvent_ = builderForValue.build(); + } else { + keyEventBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The Key Event to create.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeKeyEvent(com.google.analytics.admin.v1beta.KeyEvent value) { + if (keyEventBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && keyEvent_ != null + && keyEvent_ != com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance()) { + getKeyEventBuilder().mergeFrom(value); + } else { + keyEvent_ = value; + } + } else { + keyEventBuilder_.mergeFrom(value); + } + if (keyEvent_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The Key Event to create.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearKeyEvent() { + bitField0_ = (bitField0_ & ~0x00000001); + keyEvent_ = null; + if (keyEventBuilder_ != null) { + keyEventBuilder_.dispose(); + keyEventBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The Key Event to create.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.KeyEvent.Builder getKeyEventBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getKeyEventFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The Key Event to create.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.KeyEventOrBuilder getKeyEventOrBuilder() { + if (keyEventBuilder_ != null) { + return keyEventBuilder_.getMessageOrBuilder(); + } else { + return keyEvent_ == null + ? com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance() + : keyEvent_; + } + } + /** + * + * + *
          +     * Required. The Key Event to create.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.KeyEvent, + com.google.analytics.admin.v1beta.KeyEvent.Builder, + com.google.analytics.admin.v1beta.KeyEventOrBuilder> + getKeyEventFieldBuilder() { + if (keyEventBuilder_ == null) { + keyEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.KeyEvent, + com.google.analytics.admin.v1beta.KeyEvent.Builder, + com.google.analytics.admin.v1beta.KeyEventOrBuilder>( + getKeyEvent(), getParentForChildren(), isClean()); + keyEvent_ = null; + } + return keyEventBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The resource name of the parent property where this Key Event
          +     * will be created. Format: properties/123
          +     * 
          + * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The resource name of the parent property where this Key Event
          +     * will be created. Format: properties/123
          +     * 
          + * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The resource name of the parent property where this Key Event
          +     * will be created. Format: properties/123
          +     * 
          + * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The resource name of the parent property where this Key Event
          +     * will be created. Format: properties/123
          +     * 
          + * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The resource name of the parent property where this Key Event
          +     * will be created. Format: properties/123
          +     * 
          + * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateKeyEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateKeyEventRequest) + private static final com.google.analytics.admin.v1beta.CreateKeyEventRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreateKeyEventRequest(); + } + + public static com.google.analytics.admin.v1beta.CreateKeyEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateKeyEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateKeyEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateKeyEventRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateKeyEventRequestOrBuilder.java new file mode 100644 index 000000000000..8482407f4f1e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateKeyEventRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1beta/analytics_admin.proto + +// Protobuf Java Version: 3.25.3 +package com.google.analytics.admin.v1beta; + +public interface CreateKeyEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateKeyEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The Key Event to create.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the keyEvent field is set. + */ + boolean hasKeyEvent(); + /** + * + * + *
          +   * Required. The Key Event to create.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The keyEvent. + */ + com.google.analytics.admin.v1beta.KeyEvent getKeyEvent(); + /** + * + * + *
          +   * Required. The Key Event to create.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.KeyEventOrBuilder getKeyEventOrBuilder(); + + /** + * + * + *
          +   * Required. The resource name of the parent property where this Key Event
          +   * will be created. Format: properties/123
          +   * 
          + * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The resource name of the parent property where this Key Event
          +   * will be created. Format: properties/123
          +   * 
          + * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequest.java index 760ce0f349e8..8a51183830b6 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequest.java @@ -72,7 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
              * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
          -   * Example: properties/1234/firebaseLinks/5678
          +   *
          +   * Example: `properties/1234/firebaseLinks/5678`
              * 
          * * @@ -98,7 +99,8 @@ public java.lang.String getName() { * *
              * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
          -   * Example: properties/1234/firebaseLinks/5678
          +   *
          +   * Example: `properties/1234/firebaseLinks/5678`
              * 
          * * @@ -469,7 +471,8 @@ public Builder mergeFrom( * *
                * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
          -     * Example: properties/1234/firebaseLinks/5678
          +     *
          +     * Example: `properties/1234/firebaseLinks/5678`
                * 
          * * @@ -494,7 +497,8 @@ public java.lang.String getName() { * *
                * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
          -     * Example: properties/1234/firebaseLinks/5678
          +     *
          +     * Example: `properties/1234/firebaseLinks/5678`
                * 
          * * @@ -519,7 +523,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
          -     * Example: properties/1234/firebaseLinks/5678
          +     *
          +     * Example: `properties/1234/firebaseLinks/5678`
                * 
          * * @@ -543,7 +548,8 @@ public Builder setName(java.lang.String value) { * *
                * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
          -     * Example: properties/1234/firebaseLinks/5678
          +     *
          +     * Example: `properties/1234/firebaseLinks/5678`
                * 
          * * @@ -563,7 +569,8 @@ public Builder clearName() { * *
                * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
          -     * Example: properties/1234/firebaseLinks/5678
          +     *
          +     * Example: `properties/1234/firebaseLinks/5678`
                * 
          * * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequestOrBuilder.java index 67094c470703..6c7e9ac8bb51 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequestOrBuilder.java @@ -29,7 +29,8 @@ public interface DeleteFirebaseLinkRequestOrBuilder * *
              * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
          -   * Example: properties/1234/firebaseLinks/5678
          +   *
          +   * Example: `properties/1234/firebaseLinks/5678`
              * 
          * * @@ -44,7 +45,8 @@ public interface DeleteFirebaseLinkRequestOrBuilder * *
              * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
          -   * Example: properties/1234/firebaseLinks/5678
          +   *
          +   * Example: `properties/1234/firebaseLinks/5678`
              * 
          * * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteKeyEventRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteKeyEventRequest.java new file mode 100644 index 000000000000..9dd39e1affc5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteKeyEventRequest.java @@ -0,0 +1,654 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1beta/analytics_admin.proto + +// Protobuf Java Version: 3.25.3 +package com.google.analytics.admin.v1beta; + +/** + * + * + *
          + * Request message for DeleteKeyEvent RPC
          + * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.DeleteKeyEventRequest} + */ +public final class DeleteKeyEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeleteKeyEventRequest) + DeleteKeyEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteKeyEventRequest.newBuilder() to construct. + private DeleteKeyEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteKeyEventRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteKeyEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteKeyEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteKeyEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeleteKeyEventRequest.class, + com.google.analytics.admin.v1beta.DeleteKeyEventRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The resource name of the Key Event to delete.
          +   * Format: properties/{property}/keyEvents/{key_event}
          +   * Example: "properties/123/keyEvents/456"
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The resource name of the Key Event to delete.
          +   * Format: properties/{property}/keyEvents/{key_event}
          +   * Example: "properties/123/keyEvents/456"
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1beta.DeleteKeyEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.DeleteKeyEventRequest other = + (com.google.analytics.admin.v1beta.DeleteKeyEventRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.DeleteKeyEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteKeyEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteKeyEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteKeyEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteKeyEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteKeyEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteKeyEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteKeyEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteKeyEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteKeyEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteKeyEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteKeyEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.DeleteKeyEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Request message for DeleteKeyEvent RPC
          +   * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.DeleteKeyEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeleteKeyEventRequest) + com.google.analytics.admin.v1beta.DeleteKeyEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteKeyEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteKeyEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeleteKeyEventRequest.class, + com.google.analytics.admin.v1beta.DeleteKeyEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.DeleteKeyEventRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteKeyEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteKeyEventRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.DeleteKeyEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteKeyEventRequest build() { + com.google.analytics.admin.v1beta.DeleteKeyEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteKeyEventRequest buildPartial() { + com.google.analytics.admin.v1beta.DeleteKeyEventRequest result = + new com.google.analytics.admin.v1beta.DeleteKeyEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.DeleteKeyEventRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.DeleteKeyEventRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.DeleteKeyEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.DeleteKeyEventRequest other) { + if (other == com.google.analytics.admin.v1beta.DeleteKeyEventRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The resource name of the Key Event to delete.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * Example: "properties/123/keyEvents/456"
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The resource name of the Key Event to delete.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * Example: "properties/123/keyEvents/456"
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The resource name of the Key Event to delete.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * Example: "properties/123/keyEvents/456"
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The resource name of the Key Event to delete.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * Example: "properties/123/keyEvents/456"
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The resource name of the Key Event to delete.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * Example: "properties/123/keyEvents/456"
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DeleteKeyEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeleteKeyEventRequest) + private static final com.google.analytics.admin.v1beta.DeleteKeyEventRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DeleteKeyEventRequest(); + } + + public static com.google.analytics.admin.v1beta.DeleteKeyEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteKeyEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteKeyEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteKeyEventRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteKeyEventRequestOrBuilder.java new file mode 100644 index 000000000000..71057b38a342 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteKeyEventRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1beta/analytics_admin.proto + +// Protobuf Java Version: 3.25.3 +package com.google.analytics.admin.v1beta; + +public interface DeleteKeyEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeleteKeyEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The resource name of the Key Event to delete.
          +   * Format: properties/{property}/keyEvents/{key_event}
          +   * Example: "properties/123/keyEvents/456"
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The resource name of the Key Event to delete.
          +   * Format: properties/{property}/keyEvents/{key_event}
          +   * Example: "properties/123/keyEvents/456"
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequest.java index 090cb6d3602f..5bd7542f2c20 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequest.java @@ -73,7 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
              * Required. The name of the settings to lookup.
              * Format: accounts/{account}/dataSharingSettings
          -   * Example: "accounts/1000/dataSharingSettings"
          +   *
          +   * Example: `accounts/1000/dataSharingSettings`
              * 
          * * @@ -100,7 +101,8 @@ public java.lang.String getName() { *
              * Required. The name of the settings to lookup.
              * Format: accounts/{account}/dataSharingSettings
          -   * Example: "accounts/1000/dataSharingSettings"
          +   *
          +   * Example: `accounts/1000/dataSharingSettings`
              * 
          * * @@ -476,7 +478,8 @@ public Builder mergeFrom( *
                * Required. The name of the settings to lookup.
                * Format: accounts/{account}/dataSharingSettings
          -     * Example: "accounts/1000/dataSharingSettings"
          +     *
          +     * Example: `accounts/1000/dataSharingSettings`
                * 
          * * @@ -502,7 +505,8 @@ public java.lang.String getName() { *
                * Required. The name of the settings to lookup.
                * Format: accounts/{account}/dataSharingSettings
          -     * Example: "accounts/1000/dataSharingSettings"
          +     *
          +     * Example: `accounts/1000/dataSharingSettings`
                * 
          * * @@ -528,7 +532,8 @@ public com.google.protobuf.ByteString getNameBytes() { *
                * Required. The name of the settings to lookup.
                * Format: accounts/{account}/dataSharingSettings
          -     * Example: "accounts/1000/dataSharingSettings"
          +     *
          +     * Example: `accounts/1000/dataSharingSettings`
                * 
          * * @@ -553,7 +558,8 @@ public Builder setName(java.lang.String value) { *
                * Required. The name of the settings to lookup.
                * Format: accounts/{account}/dataSharingSettings
          -     * Example: "accounts/1000/dataSharingSettings"
          +     *
          +     * Example: `accounts/1000/dataSharingSettings`
                * 
          * * @@ -574,7 +580,8 @@ public Builder clearName() { *
                * Required. The name of the settings to lookup.
                * Format: accounts/{account}/dataSharingSettings
          -     * Example: "accounts/1000/dataSharingSettings"
          +     *
          +     * Example: `accounts/1000/dataSharingSettings`
                * 
          * * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequestOrBuilder.java index 02047039019a..3a5a334053a4 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequestOrBuilder.java @@ -30,7 +30,8 @@ public interface GetDataSharingSettingsRequestOrBuilder *
              * Required. The name of the settings to lookup.
              * Format: accounts/{account}/dataSharingSettings
          -   * Example: "accounts/1000/dataSharingSettings"
          +   *
          +   * Example: `accounts/1000/dataSharingSettings`
              * 
          * * @@ -46,7 +47,8 @@ public interface GetDataSharingSettingsRequestOrBuilder *
              * Required. The name of the settings to lookup.
              * Format: accounts/{account}/dataSharingSettings
          -   * Example: "accounts/1000/dataSharingSettings"
          +   *
          +   * Example: `accounts/1000/dataSharingSettings`
              * 
          * * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetKeyEventRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetKeyEventRequest.java new file mode 100644 index 000000000000..b681b1a5a0ca --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetKeyEventRequest.java @@ -0,0 +1,653 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1beta/analytics_admin.proto + +// Protobuf Java Version: 3.25.3 +package com.google.analytics.admin.v1beta; + +/** + * + * + *
          + * Request message for GetKeyEvent RPC
          + * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.GetKeyEventRequest} + */ +public final class GetKeyEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetKeyEventRequest) + GetKeyEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetKeyEventRequest.newBuilder() to construct. + private GetKeyEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetKeyEventRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetKeyEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetKeyEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetKeyEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetKeyEventRequest.class, + com.google.analytics.admin.v1beta.GetKeyEventRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The resource name of the Key Event to retrieve.
          +   * Format: properties/{property}/keyEvents/{key_event}
          +   * Example: "properties/123/keyEvents/456"
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The resource name of the Key Event to retrieve.
          +   * Format: properties/{property}/keyEvents/{key_event}
          +   * Example: "properties/123/keyEvents/456"
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1beta.GetKeyEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.GetKeyEventRequest other = + (com.google.analytics.admin.v1beta.GetKeyEventRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.GetKeyEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetKeyEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetKeyEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetKeyEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetKeyEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetKeyEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetKeyEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetKeyEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetKeyEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetKeyEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetKeyEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetKeyEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.GetKeyEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Request message for GetKeyEvent RPC
          +   * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.GetKeyEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetKeyEventRequest) + com.google.analytics.admin.v1beta.GetKeyEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetKeyEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetKeyEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetKeyEventRequest.class, + com.google.analytics.admin.v1beta.GetKeyEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.GetKeyEventRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetKeyEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetKeyEventRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.GetKeyEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetKeyEventRequest build() { + com.google.analytics.admin.v1beta.GetKeyEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetKeyEventRequest buildPartial() { + com.google.analytics.admin.v1beta.GetKeyEventRequest result = + new com.google.analytics.admin.v1beta.GetKeyEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.GetKeyEventRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.GetKeyEventRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.GetKeyEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.GetKeyEventRequest other) { + if (other == com.google.analytics.admin.v1beta.GetKeyEventRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The resource name of the Key Event to retrieve.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * Example: "properties/123/keyEvents/456"
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The resource name of the Key Event to retrieve.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * Example: "properties/123/keyEvents/456"
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The resource name of the Key Event to retrieve.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * Example: "properties/123/keyEvents/456"
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The resource name of the Key Event to retrieve.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * Example: "properties/123/keyEvents/456"
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The resource name of the Key Event to retrieve.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * Example: "properties/123/keyEvents/456"
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.GetKeyEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetKeyEventRequest) + private static final com.google.analytics.admin.v1beta.GetKeyEventRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetKeyEventRequest(); + } + + public static com.google.analytics.admin.v1beta.GetKeyEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetKeyEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetKeyEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetKeyEventRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetKeyEventRequestOrBuilder.java new file mode 100644 index 000000000000..2db8a47dc101 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetKeyEventRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1beta/analytics_admin.proto + +// Protobuf Java Version: 3.25.3 +package com.google.analytics.admin.v1beta; + +public interface GetKeyEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetKeyEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The resource name of the Key Event to retrieve.
          +   * Format: properties/{property}/keyEvents/{key_event}
          +   * Example: "properties/123/keyEvents/456"
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The resource name of the Key Event to retrieve.
          +   * Format: properties/{property}/keyEvents/{key_event}
          +   * Example: "properties/123/keyEvents/456"
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/KeyEvent.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/KeyEvent.java new file mode 100644 index 000000000000..e62cf53dbe98 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/KeyEvent.java @@ -0,0 +1,2757 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1beta/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.analytics.admin.v1beta; + +/** + * + * + *
          + * A key event in a Google Analytics property.
          + * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.KeyEvent} + */ +public final class KeyEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.KeyEvent) + KeyEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use KeyEvent.newBuilder() to construct. + private KeyEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private KeyEvent() { + name_ = ""; + eventName_ = ""; + countingMethod_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new KeyEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_KeyEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_KeyEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.KeyEvent.class, + com.google.analytics.admin.v1beta.KeyEvent.Builder.class); + } + + /** + * + * + *
          +   * The method by which Key Events will be counted across multiple events
          +   * within a session.
          +   * 
          + * + * Protobuf enum {@code google.analytics.admin.v1beta.KeyEvent.CountingMethod} + */ + public enum CountingMethod implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Counting method not specified.
          +     * 
          + * + * COUNTING_METHOD_UNSPECIFIED = 0; + */ + COUNTING_METHOD_UNSPECIFIED(0), + /** + * + * + *
          +     * Each Event instance is considered a Key Event.
          +     * 
          + * + * ONCE_PER_EVENT = 1; + */ + ONCE_PER_EVENT(1), + /** + * + * + *
          +     * An Event instance is considered a Key Event at most once per session per
          +     * user.
          +     * 
          + * + * ONCE_PER_SESSION = 2; + */ + ONCE_PER_SESSION(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * Counting method not specified.
          +     * 
          + * + * COUNTING_METHOD_UNSPECIFIED = 0; + */ + public static final int COUNTING_METHOD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * Each Event instance is considered a Key Event.
          +     * 
          + * + * ONCE_PER_EVENT = 1; + */ + public static final int ONCE_PER_EVENT_VALUE = 1; + /** + * + * + *
          +     * An Event instance is considered a Key Event at most once per session per
          +     * user.
          +     * 
          + * + * ONCE_PER_SESSION = 2; + */ + public static final int ONCE_PER_SESSION_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CountingMethod valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CountingMethod forNumber(int value) { + switch (value) { + case 0: + return COUNTING_METHOD_UNSPECIFIED; + case 1: + return ONCE_PER_EVENT; + case 2: + return ONCE_PER_SESSION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CountingMethod findValueByNumber(int number) { + return CountingMethod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.KeyEvent.getDescriptor().getEnumTypes().get(0); + } + + private static final CountingMethod[] VALUES = values(); + + public static CountingMethod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CountingMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.KeyEvent.CountingMethod) + } + + public interface DefaultValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.KeyEvent.DefaultValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +     * Required. This will be used to populate the "value" parameter for all
          +     * occurrences of this Key Event (specified by event_name) where that
          +     * parameter is unset.
          +     * 
          + * + * double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The numericValue. + */ + double getNumericValue(); + + /** + * + * + *
          +     * Required. When an occurrence of this Key Event (specified by event_name)
          +     * has no set currency this currency will be applied as the default. Must be
          +     * in ISO 4217 currency code format.
          +     *
          +     * See https://en.wikipedia.org/wiki/ISO_4217 for more information.
          +     * 
          + * + * string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The currencyCode. + */ + java.lang.String getCurrencyCode(); + /** + * + * + *
          +     * Required. When an occurrence of this Key Event (specified by event_name)
          +     * has no set currency this currency will be applied as the default. Must be
          +     * in ISO 4217 currency code format.
          +     *
          +     * See https://en.wikipedia.org/wiki/ISO_4217 for more information.
          +     * 
          + * + * string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for currencyCode. + */ + com.google.protobuf.ByteString getCurrencyCodeBytes(); + } + /** + * + * + *
          +   * Defines a default value/currency for a key event.
          +   * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.KeyEvent.DefaultValue} + */ + public static final class DefaultValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.KeyEvent.DefaultValue) + DefaultValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use DefaultValue.newBuilder() to construct. + private DefaultValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DefaultValue() { + currencyCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DefaultValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_KeyEvent_DefaultValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_KeyEvent_DefaultValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.class, + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.Builder.class); + } + + public static final int NUMERIC_VALUE_FIELD_NUMBER = 1; + private double numericValue_ = 0D; + /** + * + * + *
          +     * Required. This will be used to populate the "value" parameter for all
          +     * occurrences of this Key Event (specified by event_name) where that
          +     * parameter is unset.
          +     * 
          + * + * double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The numericValue. + */ + @java.lang.Override + public double getNumericValue() { + return numericValue_; + } + + public static final int CURRENCY_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object currencyCode_ = ""; + /** + * + * + *
          +     * Required. When an occurrence of this Key Event (specified by event_name)
          +     * has no set currency this currency will be applied as the default. Must be
          +     * in ISO 4217 currency code format.
          +     *
          +     * See https://en.wikipedia.org/wiki/ISO_4217 for more information.
          +     * 
          + * + * string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The currencyCode. + */ + @java.lang.Override + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currencyCode_ = s; + return s; + } + } + /** + * + * + *
          +     * Required. When an occurrence of this Key Event (specified by event_name)
          +     * has no set currency this currency will be applied as the default. Must be
          +     * in ISO 4217 currency code format.
          +     *
          +     * See https://en.wikipedia.org/wiki/ISO_4217 for more information.
          +     * 
          + * + * string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for currencyCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currencyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (java.lang.Double.doubleToRawLongBits(numericValue_) != 0) { + output.writeDouble(1, numericValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, currencyCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(numericValue_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, numericValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currencyCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1beta.KeyEvent.DefaultValue)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue other = + (com.google.analytics.admin.v1beta.KeyEvent.DefaultValue) obj; + + if (java.lang.Double.doubleToLongBits(getNumericValue()) + != java.lang.Double.doubleToLongBits(other.getNumericValue())) return false; + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NUMERIC_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNumericValue())); + hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCurrencyCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.KeyEvent.DefaultValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.KeyEvent.DefaultValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.KeyEvent.DefaultValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.KeyEvent.DefaultValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.KeyEvent.DefaultValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.KeyEvent.DefaultValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.KeyEvent.DefaultValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.KeyEvent.DefaultValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.KeyEvent.DefaultValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.KeyEvent.DefaultValue parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.KeyEvent.DefaultValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.KeyEvent.DefaultValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +     * Defines a default value/currency for a key event.
          +     * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.KeyEvent.DefaultValue} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.KeyEvent.DefaultValue) + com.google.analytics.admin.v1beta.KeyEvent.DefaultValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_KeyEvent_DefaultValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_KeyEvent_DefaultValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.class, + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + numericValue_ = 0D; + currencyCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_KeyEvent_DefaultValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent.DefaultValue getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent.DefaultValue build() { + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent.DefaultValue buildPartial() { + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue result = + new com.google.analytics.admin.v1beta.KeyEvent.DefaultValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.KeyEvent.DefaultValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.numericValue_ = numericValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.currencyCode_ = currencyCode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.KeyEvent.DefaultValue) { + return mergeFrom((com.google.analytics.admin.v1beta.KeyEvent.DefaultValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.KeyEvent.DefaultValue other) { + if (other == com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.getDefaultInstance()) + return this; + if (other.getNumericValue() != 0D) { + setNumericValue(other.getNumericValue()); + } + if (!other.getCurrencyCode().isEmpty()) { + currencyCode_ = other.currencyCode_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + numericValue_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 18: + { + currencyCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private double numericValue_; + /** + * + * + *
          +       * Required. This will be used to populate the "value" parameter for all
          +       * occurrences of this Key Event (specified by event_name) where that
          +       * parameter is unset.
          +       * 
          + * + * double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The numericValue. + */ + @java.lang.Override + public double getNumericValue() { + return numericValue_; + } + /** + * + * + *
          +       * Required. This will be used to populate the "value" parameter for all
          +       * occurrences of this Key Event (specified by event_name) where that
          +       * parameter is unset.
          +       * 
          + * + * double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The numericValue to set. + * @return This builder for chaining. + */ + public Builder setNumericValue(double value) { + + numericValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +       * Required. This will be used to populate the "value" parameter for all
          +       * occurrences of this Key Event (specified by event_name) where that
          +       * parameter is unset.
          +       * 
          + * + * double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNumericValue() { + bitField0_ = (bitField0_ & ~0x00000001); + numericValue_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object currencyCode_ = ""; + /** + * + * + *
          +       * Required. When an occurrence of this Key Event (specified by event_name)
          +       * has no set currency this currency will be applied as the default. Must be
          +       * in ISO 4217 currency code format.
          +       *
          +       * See https://en.wikipedia.org/wiki/ISO_4217 for more information.
          +       * 
          + * + * string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The currencyCode. + */ + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currencyCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +       * Required. When an occurrence of this Key Event (specified by event_name)
          +       * has no set currency this currency will be applied as the default. Must be
          +       * in ISO 4217 currency code format.
          +       *
          +       * See https://en.wikipedia.org/wiki/ISO_4217 for more information.
          +       * 
          + * + * string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for currencyCode. + */ + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currencyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +       * Required. When an occurrence of this Key Event (specified by event_name)
          +       * has no set currency this currency will be applied as the default. Must be
          +       * in ISO 4217 currency code format.
          +       *
          +       * See https://en.wikipedia.org/wiki/ISO_4217 for more information.
          +       * 
          + * + * string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The currencyCode to set. + * @return This builder for chaining. + */ + public Builder setCurrencyCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + currencyCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +       * Required. When an occurrence of this Key Event (specified by event_name)
          +       * has no set currency this currency will be applied as the default. Must be
          +       * in ISO 4217 currency code format.
          +       *
          +       * See https://en.wikipedia.org/wiki/ISO_4217 for more information.
          +       * 
          + * + * string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCurrencyCode() { + currencyCode_ = getDefaultInstance().getCurrencyCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +       * Required. When an occurrence of this Key Event (specified by event_name)
          +       * has no set currency this currency will be applied as the default. Must be
          +       * in ISO 4217 currency code format.
          +       *
          +       * See https://en.wikipedia.org/wiki/ISO_4217 for more information.
          +       * 
          + * + * string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for currencyCode to set. + * @return This builder for chaining. + */ + public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.KeyEvent.DefaultValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.KeyEvent.DefaultValue) + private static final com.google.analytics.admin.v1beta.KeyEvent.DefaultValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.KeyEvent.DefaultValue(); + } + + public static com.google.analytics.admin.v1beta.KeyEvent.DefaultValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefaultValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent.DefaultValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Output only. Resource name of this key event.
          +   * Format: properties/{property}/keyEvents/{key_event}
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. Resource name of this key event.
          +   * Format: properties/{property}/keyEvents/{key_event}
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object eventName_ = ""; + /** + * + * + *
          +   * Immutable. The event name for this key event.
          +   * Examples: 'click', 'purchase'
          +   * 
          + * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + @java.lang.Override + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } + } + /** + * + * + *
          +   * Immutable. The event name for this key event.
          +   * Examples: 'click', 'purchase'
          +   * 
          + * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
          +   * Output only. Time when this key event was created in the property.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Output only. Time when this key event was created in the property.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
          +   * Output only. Time when this key event was created in the property.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int DELETABLE_FIELD_NUMBER = 4; + private boolean deletable_ = false; + /** + * + * + *
          +   * Output only. If set to true, this event can be deleted.
          +   * 
          + * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deletable. + */ + @java.lang.Override + public boolean getDeletable() { + return deletable_; + } + + public static final int CUSTOM_FIELD_NUMBER = 5; + private boolean custom_ = false; + /** + * + * + *
          +   * Output only. If set to true, this key event refers to a custom event.  If
          +   * set to false, this key event refers to a default event in GA. Default
          +   * events typically have special meaning in GA. Default events are usually
          +   * created for you by the GA system, but in some cases can be created by
          +   * property admins. Custom events count towards the maximum number of
          +   * custom key events that may be created per property.
          +   * 
          + * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The custom. + */ + @java.lang.Override + public boolean getCustom() { + return custom_; + } + + public static final int COUNTING_METHOD_FIELD_NUMBER = 6; + private int countingMethod_ = 0; + /** + * + * + *
          +   * Required. The method by which Key Events will be counted across multiple
          +   * events within a session.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for countingMethod. + */ + @java.lang.Override + public int getCountingMethodValue() { + return countingMethod_; + } + /** + * + * + *
          +   * Required. The method by which Key Events will be counted across multiple
          +   * events within a session.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The countingMethod. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent.CountingMethod getCountingMethod() { + com.google.analytics.admin.v1beta.KeyEvent.CountingMethod result = + com.google.analytics.admin.v1beta.KeyEvent.CountingMethod.forNumber(countingMethod_); + return result == null + ? com.google.analytics.admin.v1beta.KeyEvent.CountingMethod.UNRECOGNIZED + : result; + } + + public static final int DEFAULT_VALUE_FIELD_NUMBER = 7; + private com.google.analytics.admin.v1beta.KeyEvent.DefaultValue defaultValue_; + /** + * + * + *
          +   * Optional. Defines a default value/currency for a key event.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Optional. Defines a default value/currency for a key event.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultValue. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent.DefaultValue getDefaultValue() { + return defaultValue_ == null + ? com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.getDefaultInstance() + : defaultValue_; + } + /** + * + * + *
          +   * Optional. Defines a default value/currency for a key event.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent.DefaultValueOrBuilder + getDefaultValueOrBuilder() { + return defaultValue_ == null + ? com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.getDefaultInstance() + : defaultValue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (deletable_ != false) { + output.writeBool(4, deletable_); + } + if (custom_ != false) { + output.writeBool(5, custom_); + } + if (countingMethod_ + != com.google.analytics.admin.v1beta.KeyEvent.CountingMethod.COUNTING_METHOD_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, countingMethod_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getDefaultValue()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (deletable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, deletable_); + } + if (custom_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, custom_); + } + if (countingMethod_ + != com.google.analytics.admin.v1beta.KeyEvent.CountingMethod.COUNTING_METHOD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, countingMethod_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDefaultValue()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1beta.KeyEvent)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.KeyEvent other = + (com.google.analytics.admin.v1beta.KeyEvent) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEventName().equals(other.getEventName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (getDeletable() != other.getDeletable()) return false; + if (getCustom() != other.getCustom()) return false; + if (countingMethod_ != other.countingMethod_) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue().equals(other.getDefaultValue())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + EVENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEventName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + DELETABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletable()); + hash = (37 * hash) + CUSTOM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCustom()); + hash = (37 * hash) + COUNTING_METHOD_FIELD_NUMBER; + hash = (53 * hash) + countingMethod_; + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.KeyEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.KeyEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.KeyEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.KeyEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.KeyEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.KeyEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.KeyEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.KeyEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.KeyEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.KeyEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.KeyEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.KeyEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.KeyEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A key event in a Google Analytics property.
          +   * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.KeyEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.KeyEvent) + com.google.analytics.admin.v1beta.KeyEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_KeyEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_KeyEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.KeyEvent.class, + com.google.analytics.admin.v1beta.KeyEvent.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.KeyEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getDefaultValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + eventName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + deletable_ = false; + custom_ = false; + countingMethod_ = 0; + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); + defaultValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_KeyEvent_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent build() { + com.google.analytics.admin.v1beta.KeyEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent buildPartial() { + com.google.analytics.admin.v1beta.KeyEvent result = + new com.google.analytics.admin.v1beta.KeyEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.KeyEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventName_ = eventName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deletable_ = deletable_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.custom_ = custom_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.countingMethod_ = countingMethod_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.defaultValue_ = + defaultValueBuilder_ == null ? defaultValue_ : defaultValueBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.KeyEvent) { + return mergeFrom((com.google.analytics.admin.v1beta.KeyEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.KeyEvent other) { + if (other == com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEventName().isEmpty()) { + eventName_ = other.eventName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.getDeletable() != false) { + setDeletable(other.getDeletable()); + } + if (other.getCustom() != false) { + setCustom(other.getCustom()); + } + if (other.countingMethod_ != 0) { + setCountingMethodValue(other.getCountingMethodValue()); + } + if (other.hasDefaultValue()) { + mergeDefaultValue(other.getDefaultValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + eventName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + deletable_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + custom_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + countingMethod_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + input.readMessage(getDefaultValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Output only. Resource name of this key event.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. Resource name of this key event.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. Resource name of this key event.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Resource name of this key event.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Resource name of this key event.
          +     * Format: properties/{property}/keyEvents/{key_event}
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object eventName_ = ""; + /** + * + * + *
          +     * Immutable. The event name for this key event.
          +     * Examples: 'click', 'purchase'
          +     * 
          + * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Immutable. The event name for this key event.
          +     * Examples: 'click', 'purchase'
          +     * 
          + * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Immutable. The event name for this key event.
          +     * Examples: 'click', 'purchase'
          +     * 
          + * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The eventName to set. + * @return This builder for chaining. + */ + public Builder setEventName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The event name for this key event.
          +     * Examples: 'click', 'purchase'
          +     * 
          + * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearEventName() { + eventName_ = getDefaultInstance().getEventName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The event name for this key event.
          +     * Examples: 'click', 'purchase'
          +     * 
          + * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for eventName to set. + * @return This builder for chaining. + */ + public Builder setEventNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this key event was created in the property.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * Output only. Time when this key event was created in the property.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this key event was created in the property.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this key event was created in the property.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this key event was created in the property.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this key event was created in the property.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this key event was created in the property.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this key event was created in the property.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this key event was created in the property.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private boolean deletable_; + /** + * + * + *
          +     * Output only. If set to true, this event can be deleted.
          +     * 
          + * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deletable. + */ + @java.lang.Override + public boolean getDeletable() { + return deletable_; + } + /** + * + * + *
          +     * Output only. If set to true, this event can be deleted.
          +     * 
          + * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deletable to set. + * @return This builder for chaining. + */ + public Builder setDeletable(boolean value) { + + deletable_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. If set to true, this event can be deleted.
          +     * 
          + * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeletable() { + bitField0_ = (bitField0_ & ~0x00000008); + deletable_ = false; + onChanged(); + return this; + } + + private boolean custom_; + /** + * + * + *
          +     * Output only. If set to true, this key event refers to a custom event.  If
          +     * set to false, this key event refers to a default event in GA. Default
          +     * events typically have special meaning in GA. Default events are usually
          +     * created for you by the GA system, but in some cases can be created by
          +     * property admins. Custom events count towards the maximum number of
          +     * custom key events that may be created per property.
          +     * 
          + * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The custom. + */ + @java.lang.Override + public boolean getCustom() { + return custom_; + } + /** + * + * + *
          +     * Output only. If set to true, this key event refers to a custom event.  If
          +     * set to false, this key event refers to a default event in GA. Default
          +     * events typically have special meaning in GA. Default events are usually
          +     * created for you by the GA system, but in some cases can be created by
          +     * property admins. Custom events count towards the maximum number of
          +     * custom key events that may be created per property.
          +     * 
          + * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The custom to set. + * @return This builder for chaining. + */ + public Builder setCustom(boolean value) { + + custom_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. If set to true, this key event refers to a custom event.  If
          +     * set to false, this key event refers to a default event in GA. Default
          +     * events typically have special meaning in GA. Default events are usually
          +     * created for you by the GA system, but in some cases can be created by
          +     * property admins. Custom events count towards the maximum number of
          +     * custom key events that may be created per property.
          +     * 
          + * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCustom() { + bitField0_ = (bitField0_ & ~0x00000010); + custom_ = false; + onChanged(); + return this; + } + + private int countingMethod_ = 0; + /** + * + * + *
          +     * Required. The method by which Key Events will be counted across multiple
          +     * events within a session.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for countingMethod. + */ + @java.lang.Override + public int getCountingMethodValue() { + return countingMethod_; + } + /** + * + * + *
          +     * Required. The method by which Key Events will be counted across multiple
          +     * events within a session.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for countingMethod to set. + * @return This builder for chaining. + */ + public Builder setCountingMethodValue(int value) { + countingMethod_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The method by which Key Events will be counted across multiple
          +     * events within a session.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The countingMethod. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent.CountingMethod getCountingMethod() { + com.google.analytics.admin.v1beta.KeyEvent.CountingMethod result = + com.google.analytics.admin.v1beta.KeyEvent.CountingMethod.forNumber(countingMethod_); + return result == null + ? com.google.analytics.admin.v1beta.KeyEvent.CountingMethod.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Required. The method by which Key Events will be counted across multiple
          +     * events within a session.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The countingMethod to set. + * @return This builder for chaining. + */ + public Builder setCountingMethod( + com.google.analytics.admin.v1beta.KeyEvent.CountingMethod value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + countingMethod_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The method by which Key Events will be counted across multiple
          +     * events within a session.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearCountingMethod() { + bitField0_ = (bitField0_ & ~0x00000020); + countingMethod_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1beta.KeyEvent.DefaultValue defaultValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue, + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.Builder, + com.google.analytics.admin.v1beta.KeyEvent.DefaultValueOrBuilder> + defaultValueBuilder_; + /** + * + * + *
          +     * Optional. Defines a default value/currency for a key event.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a key event.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultValue. + */ + public com.google.analytics.admin.v1beta.KeyEvent.DefaultValue getDefaultValue() { + if (defaultValueBuilder_ == null) { + return defaultValue_ == null + ? com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.getDefaultInstance() + : defaultValue_; + } else { + return defaultValueBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a key event.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultValue(com.google.analytics.admin.v1beta.KeyEvent.DefaultValue value) { + if (defaultValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + } else { + defaultValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a key event.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultValue( + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.Builder builderForValue) { + if (defaultValueBuilder_ == null) { + defaultValue_ = builderForValue.build(); + } else { + defaultValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a key event.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDefaultValue( + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue value) { + if (defaultValueBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && defaultValue_ != null + && defaultValue_ + != com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.getDefaultInstance()) { + getDefaultValueBuilder().mergeFrom(value); + } else { + defaultValue_ = value; + } + } else { + defaultValueBuilder_.mergeFrom(value); + } + if (defaultValue_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a key event.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000040); + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); + defaultValueBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a key event.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.Builder + getDefaultValueBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getDefaultValueFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a key event.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1beta.KeyEvent.DefaultValueOrBuilder + getDefaultValueOrBuilder() { + if (defaultValueBuilder_ != null) { + return defaultValueBuilder_.getMessageOrBuilder(); + } else { + return defaultValue_ == null + ? com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.getDefaultInstance() + : defaultValue_; + } + } + /** + * + * + *
          +     * Optional. Defines a default value/currency for a key event.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue, + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.Builder, + com.google.analytics.admin.v1beta.KeyEvent.DefaultValueOrBuilder> + getDefaultValueFieldBuilder() { + if (defaultValueBuilder_ == null) { + defaultValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue, + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue.Builder, + com.google.analytics.admin.v1beta.KeyEvent.DefaultValueOrBuilder>( + getDefaultValue(), getParentForChildren(), isClean()); + defaultValue_ = null; + } + return defaultValueBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.KeyEvent) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.KeyEvent) + private static final com.google.analytics.admin.v1beta.KeyEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.KeyEvent(); + } + + public static com.google.analytics.admin.v1beta.KeyEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/KeyEventName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/KeyEventName.java new file mode 100644 index 000000000000..fa45a47e9d48 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/KeyEventName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class KeyEventName implements ResourceName { + private static final PathTemplate PROPERTY_KEY_EVENT = + PathTemplate.createWithoutUrlEncoding("properties/{property}/keyEvents/{key_event}"); + private volatile Map fieldValuesMap; + private final String property; + private final String keyEvent; + + @Deprecated + protected KeyEventName() { + property = null; + keyEvent = null; + } + + private KeyEventName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + keyEvent = Preconditions.checkNotNull(builder.getKeyEvent()); + } + + public String getProperty() { + return property; + } + + public String getKeyEvent() { + return keyEvent; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static KeyEventName of(String property, String keyEvent) { + return newBuilder().setProperty(property).setKeyEvent(keyEvent).build(); + } + + public static String format(String property, String keyEvent) { + return newBuilder().setProperty(property).setKeyEvent(keyEvent).build().toString(); + } + + public static KeyEventName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY_KEY_EVENT.validatedMatch( + formattedString, "KeyEventName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("key_event")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (KeyEventName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY_KEY_EVENT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (property != null) { + fieldMapBuilder.put("property", property); + } + if (keyEvent != null) { + fieldMapBuilder.put("key_event", keyEvent); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY_KEY_EVENT.instantiate("property", property, "key_event", keyEvent); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + KeyEventName that = ((KeyEventName) o); + return Objects.equals(this.property, that.property) + && Objects.equals(this.keyEvent, that.keyEvent); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + h *= 1000003; + h ^= Objects.hashCode(keyEvent); + return h; + } + + /** Builder for properties/{property}/keyEvents/{key_event}. */ + public static class Builder { + private String property; + private String keyEvent; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public String getKeyEvent() { + return keyEvent; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setKeyEvent(String keyEvent) { + this.keyEvent = keyEvent; + return this; + } + + private Builder(KeyEventName keyEventName) { + this.property = keyEventName.property; + this.keyEvent = keyEventName.keyEvent; + } + + public KeyEventName build() { + return new KeyEventName(this); + } + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/KeyEventOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/KeyEventOrBuilder.java new file mode 100644 index 000000000000..fe4b1c604031 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/KeyEventOrBuilder.java @@ -0,0 +1,221 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1beta/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.analytics.admin.v1beta; + +public interface KeyEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.KeyEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. Resource name of this key event.
          +   * Format: properties/{property}/keyEvents/{key_event}
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Output only. Resource name of this key event.
          +   * Format: properties/{property}/keyEvents/{key_event}
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Immutable. The event name for this key event.
          +   * Examples: 'click', 'purchase'
          +   * 
          + * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + java.lang.String getEventName(); + /** + * + * + *
          +   * Immutable. The event name for this key event.
          +   * Examples: 'click', 'purchase'
          +   * 
          + * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + com.google.protobuf.ByteString getEventNameBytes(); + + /** + * + * + *
          +   * Output only. Time when this key event was created in the property.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
          +   * Output only. Time when this key event was created in the property.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
          +   * Output only. Time when this key event was created in the property.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. If set to true, this event can be deleted.
          +   * 
          + * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deletable. + */ + boolean getDeletable(); + + /** + * + * + *
          +   * Output only. If set to true, this key event refers to a custom event.  If
          +   * set to false, this key event refers to a default event in GA. Default
          +   * events typically have special meaning in GA. Default events are usually
          +   * created for you by the GA system, but in some cases can be created by
          +   * property admins. Custom events count towards the maximum number of
          +   * custom key events that may be created per property.
          +   * 
          + * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The custom. + */ + boolean getCustom(); + + /** + * + * + *
          +   * Required. The method by which Key Events will be counted across multiple
          +   * events within a session.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for countingMethod. + */ + int getCountingMethodValue(); + /** + * + * + *
          +   * Required. The method by which Key Events will be counted across multiple
          +   * events within a session.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The countingMethod. + */ + com.google.analytics.admin.v1beta.KeyEvent.CountingMethod getCountingMethod(); + + /** + * + * + *
          +   * Optional. Defines a default value/currency for a key event.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + /** + * + * + *
          +   * Optional. Defines a default value/currency for a key event.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultValue. + */ + com.google.analytics.admin.v1beta.KeyEvent.DefaultValue getDefaultValue(); + /** + * + * + *
          +   * Optional. Defines a default value/currency for a key event.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.admin.v1beta.KeyEvent.DefaultValueOrBuilder getDefaultValueOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java index d2c448e0f3a4..1e84def09b21 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java @@ -73,7 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
              * Required. Format: properties/{property_id}
          -   * Example: properties/1234
          +   *
          +   * Example: `properties/1234`
              * 
          * * @@ -99,7 +100,8 @@ public java.lang.String getParent() { * *
              * Required. Format: properties/{property_id}
          -   * Example: properties/1234
          +   *
          +   * Example: `properties/1234`
              * 
          * * @@ -594,7 +596,8 @@ public Builder mergeFrom( * *
                * Required. Format: properties/{property_id}
          -     * Example: properties/1234
          +     *
          +     * Example: `properties/1234`
                * 
          * * @@ -619,7 +622,8 @@ public java.lang.String getParent() { * *
                * Required. Format: properties/{property_id}
          -     * Example: properties/1234
          +     *
          +     * Example: `properties/1234`
                * 
          * * @@ -644,7 +648,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                * Required. Format: properties/{property_id}
          -     * Example: properties/1234
          +     *
          +     * Example: `properties/1234`
                * 
          * * @@ -668,7 +673,8 @@ public Builder setParent(java.lang.String value) { * *
                * Required. Format: properties/{property_id}
          -     * Example: properties/1234
          +     *
          +     * Example: `properties/1234`
                * 
          * * @@ -688,7 +694,8 @@ public Builder clearParent() { * *
                * Required. Format: properties/{property_id}
          -     * Example: properties/1234
          +     *
          +     * Example: `properties/1234`
                * 
          * * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java index 3c8735c892d5..08961209257a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java @@ -29,7 +29,8 @@ public interface ListFirebaseLinksRequestOrBuilder * *
              * Required. Format: properties/{property_id}
          -   * Example: properties/1234
          +   *
          +   * Example: `properties/1234`
              * 
          * * @@ -44,7 +45,8 @@ public interface ListFirebaseLinksRequestOrBuilder * *
              * Required. Format: properties/{property_id}
          -   * Example: properties/1234
          +   *
          +   * Example: `properties/1234`
              * 
          * * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequest.java new file mode 100644 index 000000000000..7593c0936dce --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequest.java @@ -0,0 +1,951 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1beta/analytics_admin.proto + +// Protobuf Java Version: 3.25.3 +package com.google.analytics.admin.v1beta; + +/** + * + * + *
          + * Request message for ListKeyEvents RPC
          + * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.ListKeyEventsRequest} + */ +public final class ListKeyEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListKeyEventsRequest) + ListKeyEventsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListKeyEventsRequest.newBuilder() to construct. + private ListKeyEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListKeyEventsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListKeyEventsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListKeyEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListKeyEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListKeyEventsRequest.class, + com.google.analytics.admin.v1beta.ListKeyEventsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The resource name of the parent property.
          +   * Example: 'properties/123'
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The resource name of the parent property.
          +   * Example: 'properties/123'
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
          +   * The maximum number of resources to return.
          +   * If unspecified, at most 50 resources will be returned.
          +   * The maximum value is 200; (higher values will be coerced to the maximum)
          +   * 
          + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
          +   * A page token, received from a previous `ListKeyEvents` call.
          +   * Provide this to retrieve the subsequent page.
          +   * When paginating, all other parameters provided to `ListKeyEvents`
          +   * must match the call that provided the page token.
          +   * 
          + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * A page token, received from a previous `ListKeyEvents` call.
          +   * Provide this to retrieve the subsequent page.
          +   * When paginating, all other parameters provided to `ListKeyEvents`
          +   * must match the call that provided the page token.
          +   * 
          + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1beta.ListKeyEventsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListKeyEventsRequest other = + (com.google.analytics.admin.v1beta.ListKeyEventsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListKeyEventsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Request message for ListKeyEvents RPC
          +   * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.ListKeyEventsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListKeyEventsRequest) + com.google.analytics.admin.v1beta.ListKeyEventsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListKeyEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListKeyEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListKeyEventsRequest.class, + com.google.analytics.admin.v1beta.ListKeyEventsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListKeyEventsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListKeyEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListKeyEventsRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListKeyEventsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListKeyEventsRequest build() { + com.google.analytics.admin.v1beta.ListKeyEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListKeyEventsRequest buildPartial() { + com.google.analytics.admin.v1beta.ListKeyEventsRequest result = + new com.google.analytics.admin.v1beta.ListKeyEventsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ListKeyEventsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListKeyEventsRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.ListKeyEventsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListKeyEventsRequest other) { + if (other == com.google.analytics.admin.v1beta.ListKeyEventsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The resource name of the parent property.
          +     * Example: 'properties/123'
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The resource name of the parent property.
          +     * Example: 'properties/123'
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The resource name of the parent property.
          +     * Example: 'properties/123'
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The resource name of the parent property.
          +     * Example: 'properties/123'
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The resource name of the parent property.
          +     * Example: 'properties/123'
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
          +     * The maximum number of resources to return.
          +     * If unspecified, at most 50 resources will be returned.
          +     * The maximum value is 200; (higher values will be coerced to the maximum)
          +     * 
          + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
          +     * The maximum number of resources to return.
          +     * If unspecified, at most 50 resources will be returned.
          +     * The maximum value is 200; (higher values will be coerced to the maximum)
          +     * 
          + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * The maximum number of resources to return.
          +     * If unspecified, at most 50 resources will be returned.
          +     * The maximum value is 200; (higher values will be coerced to the maximum)
          +     * 
          + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
          +     * A page token, received from a previous `ListKeyEvents` call.
          +     * Provide this to retrieve the subsequent page.
          +     * When paginating, all other parameters provided to `ListKeyEvents`
          +     * must match the call that provided the page token.
          +     * 
          + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * A page token, received from a previous `ListKeyEvents` call.
          +     * Provide this to retrieve the subsequent page.
          +     * When paginating, all other parameters provided to `ListKeyEvents`
          +     * must match the call that provided the page token.
          +     * 
          + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * A page token, received from a previous `ListKeyEvents` call.
          +     * Provide this to retrieve the subsequent page.
          +     * When paginating, all other parameters provided to `ListKeyEvents`
          +     * must match the call that provided the page token.
          +     * 
          + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * A page token, received from a previous `ListKeyEvents` call.
          +     * Provide this to retrieve the subsequent page.
          +     * When paginating, all other parameters provided to `ListKeyEvents`
          +     * must match the call that provided the page token.
          +     * 
          + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * A page token, received from a previous `ListKeyEvents` call.
          +     * Provide this to retrieve the subsequent page.
          +     * When paginating, all other parameters provided to `ListKeyEvents`
          +     * must match the call that provided the page token.
          +     * 
          + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListKeyEventsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListKeyEventsRequest) + private static final com.google.analytics.admin.v1beta.ListKeyEventsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListKeyEventsRequest(); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListKeyEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListKeyEventsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequestOrBuilder.java new file mode 100644 index 000000000000..38ba8f77d4cd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1beta/analytics_admin.proto + +// Protobuf Java Version: 3.25.3 +package com.google.analytics.admin.v1beta; + +public interface ListKeyEventsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListKeyEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The resource name of the parent property.
          +   * Example: 'properties/123'
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The resource name of the parent property.
          +   * Example: 'properties/123'
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * The maximum number of resources to return.
          +   * If unspecified, at most 50 resources will be returned.
          +   * The maximum value is 200; (higher values will be coerced to the maximum)
          +   * 
          + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * A page token, received from a previous `ListKeyEvents` call.
          +   * Provide this to retrieve the subsequent page.
          +   * When paginating, all other parameters provided to `ListKeyEvents`
          +   * must match the call that provided the page token.
          +   * 
          + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
          +   * A page token, received from a previous `ListKeyEvents` call.
          +   * Provide this to retrieve the subsequent page.
          +   * When paginating, all other parameters provided to `ListKeyEvents`
          +   * must match the call that provided the page token.
          +   * 
          + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsResponse.java new file mode 100644 index 000000000000..12a8718576b6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsResponse.java @@ -0,0 +1,1128 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1beta/analytics_admin.proto + +// Protobuf Java Version: 3.25.3 +package com.google.analytics.admin.v1beta; + +/** + * + * + *
          + * Response message for ListKeyEvents RPC.
          + * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.ListKeyEventsResponse} + */ +public final class ListKeyEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListKeyEventsResponse) + ListKeyEventsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListKeyEventsResponse.newBuilder() to construct. + private ListKeyEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListKeyEventsResponse() { + keyEvents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListKeyEventsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListKeyEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListKeyEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListKeyEventsResponse.class, + com.google.analytics.admin.v1beta.ListKeyEventsResponse.Builder.class); + } + + public static final int KEY_EVENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List keyEvents_; + /** + * + * + *
          +   * The requested Key Events
          +   * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + @java.lang.Override + public java.util.List getKeyEventsList() { + return keyEvents_; + } + /** + * + * + *
          +   * The requested Key Events
          +   * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + @java.lang.Override + public java.util.List + getKeyEventsOrBuilderList() { + return keyEvents_; + } + /** + * + * + *
          +   * The requested Key Events
          +   * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + @java.lang.Override + public int getKeyEventsCount() { + return keyEvents_.size(); + } + /** + * + * + *
          +   * The requested Key Events
          +   * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent getKeyEvents(int index) { + return keyEvents_.get(index); + } + /** + * + * + *
          +   * The requested Key Events
          +   * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEventOrBuilder getKeyEventsOrBuilder(int index) { + return keyEvents_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < keyEvents_.size(); i++) { + output.writeMessage(1, keyEvents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < keyEvents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keyEvents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1beta.ListKeyEventsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListKeyEventsResponse other = + (com.google.analytics.admin.v1beta.ListKeyEventsResponse) obj; + + if (!getKeyEventsList().equals(other.getKeyEventsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getKeyEventsCount() > 0) { + hash = (37 * hash) + KEY_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getKeyEventsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListKeyEventsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Response message for ListKeyEvents RPC.
          +   * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.ListKeyEventsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListKeyEventsResponse) + com.google.analytics.admin.v1beta.ListKeyEventsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListKeyEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListKeyEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListKeyEventsResponse.class, + com.google.analytics.admin.v1beta.ListKeyEventsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListKeyEventsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (keyEventsBuilder_ == null) { + keyEvents_ = java.util.Collections.emptyList(); + } else { + keyEvents_ = null; + keyEventsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListKeyEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListKeyEventsResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListKeyEventsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListKeyEventsResponse build() { + com.google.analytics.admin.v1beta.ListKeyEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListKeyEventsResponse buildPartial() { + com.google.analytics.admin.v1beta.ListKeyEventsResponse result = + new com.google.analytics.admin.v1beta.ListKeyEventsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.ListKeyEventsResponse result) { + if (keyEventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + keyEvents_ = java.util.Collections.unmodifiableList(keyEvents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keyEvents_ = keyEvents_; + } else { + result.keyEvents_ = keyEventsBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ListKeyEventsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListKeyEventsResponse) { + return mergeFrom((com.google.analytics.admin.v1beta.ListKeyEventsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListKeyEventsResponse other) { + if (other == com.google.analytics.admin.v1beta.ListKeyEventsResponse.getDefaultInstance()) + return this; + if (keyEventsBuilder_ == null) { + if (!other.keyEvents_.isEmpty()) { + if (keyEvents_.isEmpty()) { + keyEvents_ = other.keyEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKeyEventsIsMutable(); + keyEvents_.addAll(other.keyEvents_); + } + onChanged(); + } + } else { + if (!other.keyEvents_.isEmpty()) { + if (keyEventsBuilder_.isEmpty()) { + keyEventsBuilder_.dispose(); + keyEventsBuilder_ = null; + keyEvents_ = other.keyEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + keyEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getKeyEventsFieldBuilder() + : null; + } else { + keyEventsBuilder_.addAllMessages(other.keyEvents_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.KeyEvent m = + input.readMessage( + com.google.analytics.admin.v1beta.KeyEvent.parser(), extensionRegistry); + if (keyEventsBuilder_ == null) { + ensureKeyEventsIsMutable(); + keyEvents_.add(m); + } else { + keyEventsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List keyEvents_ = + java.util.Collections.emptyList(); + + private void ensureKeyEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + keyEvents_ = + new java.util.ArrayList(keyEvents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.KeyEvent, + com.google.analytics.admin.v1beta.KeyEvent.Builder, + com.google.analytics.admin.v1beta.KeyEventOrBuilder> + keyEventsBuilder_; + + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public java.util.List getKeyEventsList() { + if (keyEventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(keyEvents_); + } else { + return keyEventsBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public int getKeyEventsCount() { + if (keyEventsBuilder_ == null) { + return keyEvents_.size(); + } else { + return keyEventsBuilder_.getCount(); + } + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public com.google.analytics.admin.v1beta.KeyEvent getKeyEvents(int index) { + if (keyEventsBuilder_ == null) { + return keyEvents_.get(index); + } else { + return keyEventsBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public Builder setKeyEvents(int index, com.google.analytics.admin.v1beta.KeyEvent value) { + if (keyEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyEventsIsMutable(); + keyEvents_.set(index, value); + onChanged(); + } else { + keyEventsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public Builder setKeyEvents( + int index, com.google.analytics.admin.v1beta.KeyEvent.Builder builderForValue) { + if (keyEventsBuilder_ == null) { + ensureKeyEventsIsMutable(); + keyEvents_.set(index, builderForValue.build()); + onChanged(); + } else { + keyEventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public Builder addKeyEvents(com.google.analytics.admin.v1beta.KeyEvent value) { + if (keyEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyEventsIsMutable(); + keyEvents_.add(value); + onChanged(); + } else { + keyEventsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public Builder addKeyEvents(int index, com.google.analytics.admin.v1beta.KeyEvent value) { + if (keyEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyEventsIsMutable(); + keyEvents_.add(index, value); + onChanged(); + } else { + keyEventsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public Builder addKeyEvents( + com.google.analytics.admin.v1beta.KeyEvent.Builder builderForValue) { + if (keyEventsBuilder_ == null) { + ensureKeyEventsIsMutable(); + keyEvents_.add(builderForValue.build()); + onChanged(); + } else { + keyEventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public Builder addKeyEvents( + int index, com.google.analytics.admin.v1beta.KeyEvent.Builder builderForValue) { + if (keyEventsBuilder_ == null) { + ensureKeyEventsIsMutable(); + keyEvents_.add(index, builderForValue.build()); + onChanged(); + } else { + keyEventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public Builder addAllKeyEvents( + java.lang.Iterable values) { + if (keyEventsBuilder_ == null) { + ensureKeyEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keyEvents_); + onChanged(); + } else { + keyEventsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public Builder clearKeyEvents() { + if (keyEventsBuilder_ == null) { + keyEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + keyEventsBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public Builder removeKeyEvents(int index) { + if (keyEventsBuilder_ == null) { + ensureKeyEventsIsMutable(); + keyEvents_.remove(index); + onChanged(); + } else { + keyEventsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public com.google.analytics.admin.v1beta.KeyEvent.Builder getKeyEventsBuilder(int index) { + return getKeyEventsFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public com.google.analytics.admin.v1beta.KeyEventOrBuilder getKeyEventsOrBuilder(int index) { + if (keyEventsBuilder_ == null) { + return keyEvents_.get(index); + } else { + return keyEventsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public java.util.List + getKeyEventsOrBuilderList() { + if (keyEventsBuilder_ != null) { + return keyEventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(keyEvents_); + } + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public com.google.analytics.admin.v1beta.KeyEvent.Builder addKeyEventsBuilder() { + return getKeyEventsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance()); + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public com.google.analytics.admin.v1beta.KeyEvent.Builder addKeyEventsBuilder(int index) { + return getKeyEventsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance()); + } + /** + * + * + *
          +     * The requested Key Events
          +     * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + public java.util.List + getKeyEventsBuilderList() { + return getKeyEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.KeyEvent, + com.google.analytics.admin.v1beta.KeyEvent.Builder, + com.google.analytics.admin.v1beta.KeyEventOrBuilder> + getKeyEventsFieldBuilder() { + if (keyEventsBuilder_ == null) { + keyEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.KeyEvent, + com.google.analytics.admin.v1beta.KeyEvent.Builder, + com.google.analytics.admin.v1beta.KeyEventOrBuilder>( + keyEvents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + keyEvents_ = null; + } + return keyEventsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListKeyEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListKeyEventsResponse) + private static final com.google.analytics.admin.v1beta.ListKeyEventsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListKeyEventsResponse(); + } + + public static com.google.analytics.admin.v1beta.ListKeyEventsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListKeyEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListKeyEventsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsResponseOrBuilder.java new file mode 100644 index 000000000000..93f87545bda2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1beta/analytics_admin.proto + +// Protobuf Java Version: 3.25.3 +package com.google.analytics.admin.v1beta; + +public interface ListKeyEventsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListKeyEventsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The requested Key Events
          +   * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + java.util.List getKeyEventsList(); + /** + * + * + *
          +   * The requested Key Events
          +   * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + com.google.analytics.admin.v1beta.KeyEvent getKeyEvents(int index); + /** + * + * + *
          +   * The requested Key Events
          +   * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + int getKeyEventsCount(); + /** + * + * + *
          +   * The requested Key Events
          +   * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + java.util.List + getKeyEventsOrBuilderList(); + /** + * + * + *
          +   * The requested Key Events
          +   * 
          + * + * repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; + */ + com.google.analytics.admin.v1beta.KeyEventOrBuilder getKeyEventsOrBuilder(int index); + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java index c203c0d21365..067f393bfed1 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java @@ -135,8 +135,7 @@ public com.google.protobuf.ByteString getNameBytes() { *
              * Immutable. The property type for this Property resource. When creating a
              * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
          -   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
          -   * types cannot yet be created with the Google Analytics Admin API.
          +   * "ORDINARY_PROPERTY" will be implied.
              * 
          * * @@ -155,8 +154,7 @@ public int getPropertyTypeValue() { *
              * Immutable. The property type for this Property resource. When creating a
              * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
          -   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
          -   * types cannot yet be created with the Google Analytics Admin API.
          +   * "ORDINARY_PROPERTY" will be implied.
              * 
          * * @@ -1556,8 +1554,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
                * Immutable. The property type for this Property resource. When creating a
                * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
          -     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
          -     * types cannot yet be created with the Google Analytics Admin API.
          +     * "ORDINARY_PROPERTY" will be implied.
                * 
          * * @@ -1576,8 +1573,7 @@ public int getPropertyTypeValue() { *
                * Immutable. The property type for this Property resource. When creating a
                * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
          -     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
          -     * types cannot yet be created with the Google Analytics Admin API.
          +     * "ORDINARY_PROPERTY" will be implied.
                * 
          * * @@ -1599,8 +1595,7 @@ public Builder setPropertyTypeValue(int value) { *
                * Immutable. The property type for this Property resource. When creating a
                * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
          -     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
          -     * types cannot yet be created with the Google Analytics Admin API.
          +     * "ORDINARY_PROPERTY" will be implied.
                * 
          * * @@ -1621,8 +1616,7 @@ public com.google.analytics.admin.v1beta.PropertyType getPropertyType() { *
                * Immutable. The property type for this Property resource. When creating a
                * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
          -     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
          -     * types cannot yet be created with the Google Analytics Admin API.
          +     * "ORDINARY_PROPERTY" will be implied.
                * 
          * * @@ -1647,8 +1641,7 @@ public Builder setPropertyType(com.google.analytics.admin.v1beta.PropertyType va *
                * Immutable. The property type for this Property resource. When creating a
                * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
          -     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
          -     * types cannot yet be created with the Google Analytics Admin API.
          +     * "ORDINARY_PROPERTY" will be implied.
                * 
          * * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java index 45b2c9e9c90a..380d48530f45 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java @@ -59,8 +59,7 @@ public interface PropertyOrBuilder *
              * Immutable. The property type for this Property resource. When creating a
              * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
          -   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
          -   * types cannot yet be created with the Google Analytics Admin API.
          +   * "ORDINARY_PROPERTY" will be implied.
              * 
          * * @@ -76,8 +75,7 @@ public interface PropertyOrBuilder *
              * Immutable. The property type for this Property resource. When creating a
              * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
          -   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
          -   * types cannot yet be created with the Google Analytics Admin API.
          +   * "ORDINARY_PROPERTY" will be implied.
              * 
          * * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java index 0c4b39c7c9d3..3691bed63b62 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java @@ -92,6 +92,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1beta_ConversionEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ConversionEvent_DefaultConversionValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ConversionEvent_DefaultConversionValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_KeyEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_KeyEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_KeyEvent_DefaultValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_KeyEvent_DefaultValue_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -118,222 +130,247 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032\037google/protobuf/time" + "stamp.proto\032\036google/protobuf/wrappers.pr" - + "oto\"\216\002\n\007Account\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cr" + + "oto\"\344\002\n\007Account\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cr" + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" + "ampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.p" + "rotobuf.TimestampB\003\340A\003\022\031\n\014display_name\030\004" + " \001(\tB\003\340A\002\022\023\n\013region_code\030\005 \001(\t\022\024\n\007delete" - + "d\030\006 \001(\010B\003\340A\003:>\352A;\n%analyticsadmin.google" - + "apis.com/Account\022\022accounts/{account}\"\266\005\n" - + "\010Property\022\021\n\004name\030\001 \001(\tB\003\340A\003\022G\n\rproperty" - + "_type\030\016 \001(\0162+.google.analytics.admin.v1b" - + "eta.PropertyTypeB\003\340A\005\0224\n\013create_time\030\003 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" - + "pdate_time\030\004 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022\023\n\006parent\030\002 \001(\tB\003\340A\005\022\031\n\014displa" - + "y_name\030\005 \001(\tB\003\340A\002\022J\n\021industry_category\030\006" - + " \001(\0162/.google.analytics.admin.v1beta.Ind" - + "ustryCategory\022\026\n\ttime_zone\030\007 \001(\tB\003\340A\002\022\025\n" - + "\rcurrency_code\030\010 \001(\t\022G\n\rservice_level\030\n " - + "\001(\0162+.google.analytics.admin.v1beta.Serv" - + "iceLevelB\003\340A\003\0224\n\013delete_time\030\013 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0224\n\013expire_ti" - + "me\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022>\n\007account\030\r \001(\tB-\340A\005\372A\'\n%analyticsadm" - + "in.googleapis.com/Account:B\352A?\n&analytic" - + "sadmin.googleapis.com/Property\022\025properti" - + "es/{property}\"\360\007\n\nDataStream\022R\n\017web_stre" - + "am_data\030\006 \001(\01327.google.analytics.admin.v" - + "1beta.DataStream.WebStreamDataH\000\022a\n\027andr" - + "oid_app_stream_data\030\007 \001(\0132>.google.analy" - + "tics.admin.v1beta.DataStream.AndroidAppS" - + "treamDataH\000\022Y\n\023ios_app_stream_data\030\010 \001(\013" - + "2:.google.analytics.admin.v1beta.DataStr" - + "eam.IosAppStreamDataH\000\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\003\022N\n\004type\030\002 \001(\01628.google.analytics.admin" - + ".v1beta.DataStream.DataStreamTypeB\006\340A\005\340A" - + "\002\022\024\n\014display_name\030\003 \001(\t\0224\n\013create_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\005 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\032_\n\rWebStreamData\022\033\n\016measurem" - + "ent_id\030\001 \001(\tB\003\340A\003\022\034\n\017firebase_app_id\030\002 \001" - + "(\tB\003\340A\003\022\023\n\013default_uri\030\003 \001(\t\032O\n\024AndroidA" - + "ppStreamData\022\034\n\017firebase_app_id\030\001 \001(\tB\003\340" - + "A\003\022\031\n\014package_name\030\002 \001(\tB\003\340A\005\032K\n\020IosAppS" - + "treamData\022\034\n\017firebase_app_id\030\001 \001(\tB\003\340A\003\022" - + "\031\n\tbundle_id\030\002 \001(\tB\006\340A\005\340A\002\"}\n\016DataStream" - + "Type\022 \n\034DATA_STREAM_TYPE_UNSPECIFIED\020\000\022\023" - + "\n\017WEB_DATA_STREAM\020\001\022\033\n\027ANDROID_APP_DATA_" - + "STREAM\020\002\022\027\n\023IOS_APP_DATA_STREAM\020\003:^\352A[\n(" - + "analyticsadmin.googleapis.com/DataStream" - + "\022/properties/{property}/dataStreams/{dat" - + "a_stream}B\r\n\013stream_data\"\323\001\n\014FirebaseLin" - + "k\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007project\030\002 \001(\tB\003\340" - + "A\005\0224\n\013create_time\030\003 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003:d\352Aa\n*analyticsadmin.go" - + "ogleapis.com/FirebaseLink\0223properties/{p" - + "roperty}/firebaseLinks/{firebase_link}\"\230" - + "\003\n\rGoogleAdsLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\030\n\013c" - + "ustomer_id\030\003 \001(\tB\003\340A\005\022\037\n\022can_manage_clie" - + "nts\030\004 \001(\010B\003\340A\003\022?\n\033ads_personalization_en" - + "abled\030\005 \001(\0132\032.google.protobuf.BoolValue\022" - + "4\n\013create_time\030\007 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\022\"\n\025creator_e" - + "mail_address\030\t \001(\tB\003\340A\003:h\352Ae\n+analyticsa" - + "dmin.googleapis.com/GoogleAdsLink\0226prope" - + "rties/{property}/googleAdsLinks/{google_" - + "ads_link}\"\353\002\n\023DataSharingSettings\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\003\022+\n#sharing_with_google_supp" - + "ort_enabled\030\002 \001(\010\0222\n*sharing_with_google" - + "_assigned_sales_enabled\030\003 \001(\010\022-\n%sharing" - + "_with_google_any_sales_enabled\030\004 \001(\010\022,\n$" - + "sharing_with_google_products_enabled\030\005 \001" - + "(\010\022#\n\033sharing_with_others_enabled\030\006 \001(\010:" - + "^\352A[\n1analyticsadmin.googleapis.com/Data" - + "SharingSettings\022&accounts/{account}/data" - + "SharingSettings\"\224\002\n\016AccountSummary\022\014\n\004na" - + "me\030\001 \001(\t\022;\n\007account\030\002 \001(\tB*\372A\'\n%analytic" - + "sadmin.googleapis.com/Account\022\024\n\014display" - + "_name\030\003 \001(\t\022J\n\022property_summaries\030\004 \003(\0132" - + "..google.analytics.admin.v1beta.Property" - + "Summary:U\352AR\n,analyticsadmin.googleapis." - + "com/AccountSummary\022\"accountSummaries/{ac" - + "count_summary}\"\272\001\n\017PropertySummary\022=\n\010pr" - + "operty\030\001 \001(\tB+\372A(\n&analyticsadmin.google" - + "apis.com/Property\022\024\n\014display_name\030\002 \001(\t\022" - + "B\n\rproperty_type\030\003 \001(\0162+.google.analytic" - + "s.admin.v1beta.PropertyType\022\016\n\006parent\030\004 " - + "\001(\t\"\216\002\n\031MeasurementProtocolSecret\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022" - + "\031\n\014secret_value\030\003 \001(\tB\003\340A\003:\247\001\352A\243\001\n7analy" - + "ticsadmin.googleapis.com/MeasurementProt" - + "ocolSecret\022hproperties/{property}/dataSt" - + "reams/{data_stream}/measurementProtocolS" - + "ecrets/{measurement_protocol_secret}\"\210\002\n" - + "\022ChangeHistoryEvent\022\n\n\002id\030\001 \001(\t\022/\n\013chang" - + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" - + "\022<\n\nactor_type\030\003 \001(\0162(.google.analytics." - + "admin.v1beta.ActorType\022\030\n\020user_actor_ema" - + "il\030\004 \001(\t\022\030\n\020changes_filtered\030\005 \001(\010\022C\n\007ch" - + "anges\030\006 \003(\01322.google.analytics.admin.v1b" - + "eta.ChangeHistoryChange\"\252\007\n\023ChangeHistor" - + "yChange\022\020\n\010resource\030\001 \001(\t\0229\n\006action\030\002 \001(" - + "\0162).google.analytics.admin.v1beta.Action" - + "Type\022h\n\026resource_before_change\030\003 \001(\0132H.g" - + "oogle.analytics.admin.v1beta.ChangeHisto" - + "ryChange.ChangeHistoryResource\022g\n\025resour" - + "ce_after_change\030\004 \001(\0132H.google.analytics" - + ".admin.v1beta.ChangeHistoryChange.Change" - + "HistoryResource\032\362\004\n\025ChangeHistoryResourc" - + "e\0229\n\007account\030\001 \001(\0132&.google.analytics.ad" - + "min.v1beta.AccountH\000\022;\n\010property\030\002 \001(\0132\'" - + ".google.analytics.admin.v1beta.PropertyH" - + "\000\022D\n\rfirebase_link\030\006 \001(\0132+.google.analyt" - + "ics.admin.v1beta.FirebaseLinkH\000\022G\n\017googl" - + "e_ads_link\030\007 \001(\0132,.google.analytics.admi" - + "n.v1beta.GoogleAdsLinkH\000\022J\n\020conversion_e" - + "vent\030\013 \001(\0132..google.analytics.admin.v1be" - + "ta.ConversionEventH\000\022_\n\033measurement_prot" - + "ocol_secret\030\014 \001(\01328.google.analytics.adm" - + "in.v1beta.MeasurementProtocolSecretH\000\022W\n" - + "\027data_retention_settings\030\017 \001(\01324.google." - + "analytics.admin.v1beta.DataRetentionSett" - + "ingsH\000\022@\n\013data_stream\030\022 \001(\0132).google.ana" - + "lytics.admin.v1beta.DataStreamH\000B\n\n\010reso" - + "urce\"\350\003\n\017ConversionEvent\022\021\n\004name\030\001 \001(\tB\003" - + "\340A\003\022\027\n\nevent_name\030\002 \001(\tB\003\340A\005\0224\n\013create_t" - + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022\026\n\tdeletable\030\004 \001(\010B\003\340A\003\022\023\n\006custom\030\005 \001" - + "(\010B\003\340A\003\022e\n\017counting_method\030\006 \001(\0162G.googl" - + "e.analytics.admin.v1beta.ConversionEvent" - + ".ConversionCountingMethodB\003\340A\001\"p\n\030Conver" - + "sionCountingMethod\022*\n&CONVERSION_COUNTIN" - + "G_METHOD_UNSPECIFIED\020\000\022\022\n\016ONCE_PER_EVENT" - + "\020\001\022\024\n\020ONCE_PER_SESSION\020\002:m\352Aj\n-analytics" - + "admin.googleapis.com/ConversionEvent\0229pr" - + "operties/{property}/conversionEvents/{co" - + "nversion_event}\"\273\003\n\017CustomDimension\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\003\022\036\n\016parameter_name\030\002 \001(\tB\006" - + "\340A\002\340A\005\022\031\n\014display_name\030\003 \001(\tB\003\340A\002\022\030\n\013des" - + "cription\030\004 \001(\tB\003\340A\001\022T\n\005scope\030\005 \001(\0162=.goo" - + "gle.analytics.admin.v1beta.CustomDimensi" - + "on.DimensionScopeB\006\340A\002\340A\005\022)\n\034disallow_ad" - + "s_personalization\030\006 \001(\010B\003\340A\001\"P\n\016Dimensio" - + "nScope\022\037\n\033DIMENSION_SCOPE_UNSPECIFIED\020\000\022" - + "\t\n\005EVENT\020\001\022\010\n\004USER\020\002\022\010\n\004ITEM\020\003:m\352Aj\n-ana" - + "lyticsadmin.googleapis.com/CustomDimensi" - + "on\0229properties/{property}/customDimensio" - + "ns/{custom_dimension}\"\302\006\n\014CustomMetric\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\003\022\036\n\016parameter_name\030\002 \001(" - + "\tB\006\340A\002\340A\005\022\031\n\014display_name\030\003 \001(\tB\003\340A\002\022\030\n\013" - + "description\030\004 \001(\tB\003\340A\001\022Z\n\020measurement_un" - + "it\030\005 \001(\0162;.google.analytics.admin.v1beta" - + ".CustomMetric.MeasurementUnitB\003\340A\002\022N\n\005sc" - + "ope\030\006 \001(\01627.google.analytics.admin.v1bet" - + "a.CustomMetric.MetricScopeB\006\340A\002\340A\005\022e\n\026re" - + "stricted_metric_type\030\010 \003(\0162@.google.anal" - + "ytics.admin.v1beta.CustomMetric.Restrict" - + "edMetricTypeB\003\340A\001\"\267\001\n\017MeasurementUnit\022 \n" - + "\034MEASUREMENT_UNIT_UNSPECIFIED\020\000\022\014\n\010STAND" - + "ARD\020\001\022\014\n\010CURRENCY\020\002\022\010\n\004FEET\020\003\022\n\n\006METERS\020" - + "\004\022\016\n\nKILOMETERS\020\005\022\t\n\005MILES\020\006\022\020\n\014MILLISEC" - + "ONDS\020\007\022\013\n\007SECONDS\020\010\022\013\n\007MINUTES\020\t\022\t\n\005HOUR" - + "S\020\n\"6\n\013MetricScope\022\034\n\030METRIC_SCOPE_UNSPE" - + "CIFIED\020\000\022\t\n\005EVENT\020\001\"_\n\024RestrictedMetricT" - + "ype\022&\n\"RESTRICTED_METRIC_TYPE_UNSPECIFIE" - + "D\020\000\022\r\n\tCOST_DATA\020\001\022\020\n\014REVENUE_DATA\020\002:d\352A" - + "a\n*analyticsadmin.googleapis.com/CustomM" - + "etric\0223properties/{property}/customMetri" - + "cs/{custom_metric}\"\301\003\n\025DataRetentionSett" - + "ings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022d\n\024event_data_re" - + "tention\030\002 \001(\0162F.google.analytics.admin.v" - + "1beta.DataRetentionSettings.RetentionDur" - + "ation\022\'\n\037reset_user_data_on_new_activity" - + "\030\003 \001(\010\"\236\001\n\021RetentionDuration\022\"\n\036RETENTIO" - + "N_DURATION_UNSPECIFIED\020\000\022\016\n\nTWO_MONTHS\020\001" - + "\022\023\n\017FOURTEEN_MONTHS\020\003\022\025\n\021TWENTY_SIX_MONT" - + "HS\020\004\022\027\n\023THIRTY_EIGHT_MONTHS\020\005\022\020\n\014FIFTY_M" - + "ONTHS\020\006:e\352Ab\n3analyticsadmin.googleapis." - + "com/DataRetentionSettings\022+properties/{p" - + "roperty}/dataRetentionSettings*\252\004\n\020Indus" - + "tryCategory\022!\n\035INDUSTRY_CATEGORY_UNSPECI" - + "FIED\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BUSINESS_AND_I" - + "NDUSTRIAL_MARKETS\020\002\022\013\n\007FINANCE\020\003\022\016\n\nHEAL" - + "THCARE\020\004\022\016\n\nTECHNOLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005" - + "OTHER\020\007\022\032\n\026ARTS_AND_ENTERTAINMENT\020\010\022\026\n\022B" - + "EAUTY_AND_FITNESS\020\t\022\030\n\024BOOKS_AND_LITERAT" - + "URE\020\n\022\022\n\016FOOD_AND_DRINK\020\013\022\t\n\005GAMES\020\014\022\027\n\023" - + "HOBBIES_AND_LEISURE\020\r\022\023\n\017HOME_AND_GARDEN" - + "\020\016\022\030\n\024INTERNET_AND_TELECOM\020\017\022\026\n\022LAW_AND_" - + "GOVERNMENT\020\020\022\010\n\004NEWS\020\021\022\026\n\022ONLINE_COMMUNI" - + "TIES\020\022\022\026\n\022PEOPLE_AND_SOCIETY\020\023\022\024\n\020PETS_A" - + "ND_ANIMALS\020\024\022\017\n\013REAL_ESTATE\020\025\022\r\n\tREFEREN" - + "CE\020\026\022\013\n\007SCIENCE\020\027\022\n\n\006SPORTS\020\030\022\026\n\022JOBS_AN" - + "D_EDUCATION\020\031\022\014\n\010SHOPPING\020\032*f\n\014ServiceLe" - + "vel\022\035\n\031SERVICE_LEVEL_UNSPECIFIED\020\000\022\035\n\031GO" - + "OGLE_ANALYTICS_STANDARD\020\001\022\030\n\024GOOGLE_ANAL" - + "YTICS_360\020\002*J\n\tActorType\022\032\n\026ACTOR_TYPE_U" - + "NSPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\022\013\n\007SU" - + "PPORT\020\003*P\n\nActionType\022\033\n\027ACTION_TYPE_UNS" - + "PECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007UPDATED\020\002\022\013\n\007" - + "DELETED\020\003*\377\002\n\031ChangeHistoryResourceType\022" - + ",\n(CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIF" - + "IED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPERTY\020\002\022\021\n\rFIRE" - + "BASE_LINK\020\006\022\023\n\017GOOGLE_ADS_LINK\020\007\022\033\n\027GOOG" - + "LE_SIGNALS_SETTINGS\020\010\022\024\n\020CONVERSION_EVEN" - + "T\020\t\022\037\n\033MEASUREMENT_PROTOCOL_SECRET\020\n\022\033\n\027" - + "DATA_RETENTION_SETTINGS\020\r\022%\n!DISPLAY_VID" - + "EO_360_ADVERTISER_LINK\020\016\022.\n*DISPLAY_VIDE" - + "O_360_ADVERTISER_LINK_PROPOSAL\020\017\022\017\n\013DATA" - + "_STREAM\020\022\022\030\n\024ATTRIBUTION_SETTINGS\020\024*\202\001\n\014" - + "PropertyType\022\035\n\031PROPERTY_TYPE_UNSPECIFIE" - + "D\020\000\022\032\n\026PROPERTY_TYPE_ORDINARY\020\001\022\035\n\031PROPE" - + "RTY_TYPE_SUBPROPERTY\020\002\022\030\n\024PROPERTY_TYPE_" - + "ROLLUP\020\003By\n!com.google.analytics.admin.v" - + "1betaB\016ResourcesProtoP\001ZBgoogle.golang.o" - + "rg/genproto/googleapis/analytics/admin/v" - + "1beta;adminb\006proto3" + + "d\030\006 \001(\010B\003\340A\003\022T\n\020gmp_organization\030\007 \001(\tB:" + + "\340A\003\372A4\n2marketingplatformadmin.googleapi" + + "s.com/Organization:>\352A;\n%analyticsadmin." + + "googleapis.com/Account\022\022accounts/{accoun" + + "t}\"\266\005\n\010Property\022\021\n\004name\030\001 \001(\tB\003\340A\003\022G\n\rpr" + + "operty_type\030\016 \001(\0162+.google.analytics.adm" + + "in.v1beta.PropertyTypeB\003\340A\005\0224\n\013create_ti" + + "me\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0224\n\013update_time\030\004 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022\023\n\006parent\030\002 \001(\tB\003\340A\005\022\031\n\014" + + "display_name\030\005 \001(\tB\003\340A\002\022J\n\021industry_cate" + + "gory\030\006 \001(\0162/.google.analytics.admin.v1be" + + "ta.IndustryCategory\022\026\n\ttime_zone\030\007 \001(\tB\003" + + "\340A\002\022\025\n\rcurrency_code\030\010 \001(\t\022G\n\rservice_le" + + "vel\030\n \001(\0162+.google.analytics.admin.v1bet" + + "a.ServiceLevelB\003\340A\003\0224\n\013delete_time\030\013 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013exp" + + "ire_time\030\014 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022>\n\007account\030\r \001(\tB-\340A\005\372A\'\n%analyt" + + "icsadmin.googleapis.com/Account:B\352A?\n&an" + + "alyticsadmin.googleapis.com/Property\022\025pr" + + "operties/{property}\"\360\007\n\nDataStream\022R\n\017we" + + "b_stream_data\030\006 \001(\01327.google.analytics.a" + + "dmin.v1beta.DataStream.WebStreamDataH\000\022a" + + "\n\027android_app_stream_data\030\007 \001(\0132>.google" + + ".analytics.admin.v1beta.DataStream.Andro" + + "idAppStreamDataH\000\022Y\n\023ios_app_stream_data" + + "\030\010 \001(\0132:.google.analytics.admin.v1beta.D" + + "ataStream.IosAppStreamDataH\000\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022N\n\004type\030\002 \001(\01628.google.analytics" + + ".admin.v1beta.DataStream.DataStreamTypeB" + + "\006\340A\005\340A\002\022\024\n\014display_name\030\003 \001(\t\0224\n\013create_" + + "time\030\004 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\032_\n\rWebStreamData\022\033\n\016me" + + "asurement_id\030\001 \001(\tB\003\340A\003\022\034\n\017firebase_app_" + + "id\030\002 \001(\tB\003\340A\003\022\023\n\013default_uri\030\003 \001(\t\032O\n\024An" + + "droidAppStreamData\022\034\n\017firebase_app_id\030\001 " + + "\001(\tB\003\340A\003\022\031\n\014package_name\030\002 \001(\tB\003\340A\005\032K\n\020I" + + "osAppStreamData\022\034\n\017firebase_app_id\030\001 \001(\t" + + "B\003\340A\003\022\031\n\tbundle_id\030\002 \001(\tB\006\340A\005\340A\002\"}\n\016Data" + + "StreamType\022 \n\034DATA_STREAM_TYPE_UNSPECIFI" + + "ED\020\000\022\023\n\017WEB_DATA_STREAM\020\001\022\033\n\027ANDROID_APP" + + "_DATA_STREAM\020\002\022\027\n\023IOS_APP_DATA_STREAM\020\003:" + + "^\352A[\n(analyticsadmin.googleapis.com/Data" + + "Stream\022/properties/{property}/dataStream" + + "s/{data_stream}B\r\n\013stream_data\"\323\001\n\014Fireb" + + "aseLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007project\030\002 " + + "\001(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003:d\352Aa\n*analyticsad" + + "min.googleapis.com/FirebaseLink\0223propert" + + "ies/{property}/firebaseLinks/{firebase_l" + + "ink}\"\230\003\n\rGoogleAdsLink\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\022\030\n\013customer_id\030\003 \001(\tB\003\340A\005\022\037\n\022can_manag" + + "e_clients\030\004 \001(\010B\003\340A\003\022?\n\033ads_personalizat" + + "ion_enabled\030\005 \001(\0132\032.google.protobuf.Bool" + + "Value\0224\n\013create_time\030\007 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\010 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022\"\n\025cre" + + "ator_email_address\030\t \001(\tB\003\340A\003:h\352Ae\n+anal" + + "yticsadmin.googleapis.com/GoogleAdsLink\022" + + "6properties/{property}/googleAdsLinks/{g" + + "oogle_ads_link}\"\353\002\n\023DataSharingSettings\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022+\n#sharing_with_googl" + + "e_support_enabled\030\002 \001(\010\0222\n*sharing_with_" + + "google_assigned_sales_enabled\030\003 \001(\010\022-\n%s" + + "haring_with_google_any_sales_enabled\030\004 \001" + + "(\010\022,\n$sharing_with_google_products_enabl" + + "ed\030\005 \001(\010\022#\n\033sharing_with_others_enabled\030" + + "\006 \001(\010:^\352A[\n1analyticsadmin.googleapis.co" + + "m/DataSharingSettings\022&accounts/{account" + + "}/dataSharingSettings\"\224\002\n\016AccountSummary" + + "\022\014\n\004name\030\001 \001(\t\022;\n\007account\030\002 \001(\tB*\372A\'\n%an" + + "alyticsadmin.googleapis.com/Account\022\024\n\014d" + + "isplay_name\030\003 \001(\t\022J\n\022property_summaries\030" + + "\004 \003(\0132..google.analytics.admin.v1beta.Pr" + + "opertySummary:U\352AR\n,analyticsadmin.googl" + + "eapis.com/AccountSummary\022\"accountSummari" + + "es/{account_summary}\"\272\001\n\017PropertySummary" + + "\022=\n\010property\030\001 \001(\tB+\372A(\n&analyticsadmin." + + "googleapis.com/Property\022\024\n\014display_name\030" + + "\002 \001(\t\022B\n\rproperty_type\030\003 \001(\0162+.google.an" + + "alytics.admin.v1beta.PropertyType\022\016\n\006par" + + "ent\030\004 \001(\t\"\216\002\n\031MeasurementProtocolSecret\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\t" + + "B\003\340A\002\022\031\n\014secret_value\030\003 \001(\tB\003\340A\003:\247\001\352A\243\001\n" + + "7analyticsadmin.googleapis.com/Measureme" + + "ntProtocolSecret\022hproperties/{property}/" + + "dataStreams/{data_stream}/measurementPro" + + "tocolSecrets/{measurement_protocol_secre" + + "t}\"\210\002\n\022ChangeHistoryEvent\022\n\n\002id\030\001 \001(\t\022/\n" + + "\013change_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\022<\n\nactor_type\030\003 \001(\0162(.google.anal" + + "ytics.admin.v1beta.ActorType\022\030\n\020user_act" + + "or_email\030\004 \001(\t\022\030\n\020changes_filtered\030\005 \001(\010" + + "\022C\n\007changes\030\006 \003(\01322.google.analytics.adm" + + "in.v1beta.ChangeHistoryChange\"\252\007\n\023Change" + + "HistoryChange\022\020\n\010resource\030\001 \001(\t\0229\n\006actio" + + "n\030\002 \001(\0162).google.analytics.admin.v1beta." + + "ActionType\022h\n\026resource_before_change\030\003 \001" + + "(\0132H.google.analytics.admin.v1beta.Chang" + + "eHistoryChange.ChangeHistoryResource\022g\n\025" + + "resource_after_change\030\004 \001(\0132H.google.ana" + + "lytics.admin.v1beta.ChangeHistoryChange." + + "ChangeHistoryResource\032\362\004\n\025ChangeHistoryR" + + "esource\0229\n\007account\030\001 \001(\0132&.google.analyt" + + "ics.admin.v1beta.AccountH\000\022;\n\010property\030\002" + + " \001(\0132\'.google.analytics.admin.v1beta.Pro" + + "pertyH\000\022D\n\rfirebase_link\030\006 \001(\0132+.google." + + "analytics.admin.v1beta.FirebaseLinkH\000\022G\n" + + "\017google_ads_link\030\007 \001(\0132,.google.analytic" + + "s.admin.v1beta.GoogleAdsLinkH\000\022J\n\020conver" + + "sion_event\030\013 \001(\0132..google.analytics.admi" + + "n.v1beta.ConversionEventH\000\022_\n\033measuremen" + + "t_protocol_secret\030\014 \001(\01328.google.analyti" + + "cs.admin.v1beta.MeasurementProtocolSecre" + + "tH\000\022W\n\027data_retention_settings\030\017 \001(\01324.g" + + "oogle.analytics.admin.v1beta.DataRetenti" + + "onSettingsH\000\022@\n\013data_stream\030\022 \001(\0132).goog" + + "le.analytics.admin.v1beta.DataStreamH\000B\n" + + "\n\010resource\"\336\005\n\017ConversionEvent\022\021\n\004name\030\001" + + " \001(\tB\003\340A\003\022\027\n\nevent_name\030\002 \001(\tB\003\340A\005\0224\n\013cr" + + "eate_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022\026\n\tdeletable\030\004 \001(\010B\003\340A\003\022\023\n\006cust" + + "om\030\005 \001(\010B\003\340A\003\022e\n\017counting_method\030\006 \001(\0162G" + + ".google.analytics.admin.v1beta.Conversio" + + "nEvent.ConversionCountingMethodB\003\340A\001\022q\n\030" + + "default_conversion_value\030\007 \001(\0132E.google." + + "analytics.admin.v1beta.ConversionEvent.D" + + "efaultConversionValueB\003\340A\001H\000\210\001\001\032d\n\026Defau" + + "ltConversionValue\022\022\n\005value\030\001 \001(\001H\000\210\001\001\022\032\n" + + "\rcurrency_code\030\002 \001(\tH\001\210\001\001B\010\n\006_valueB\020\n\016_" + + "currency_code\"p\n\030ConversionCountingMetho" + + "d\022*\n&CONVERSION_COUNTING_METHOD_UNSPECIF" + + "IED\020\000\022\022\n\016ONCE_PER_EVENT\020\001\022\024\n\020ONCE_PER_SE" + + "SSION\020\002:m\352Aj\n-analyticsadmin.googleapis." + + "com/ConversionEvent\0229properties/{propert" + + "y}/conversionEvents/{conversion_event}B\033" + + "\n\031_default_conversion_value\"\325\004\n\010KeyEvent" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\027\n\nevent_name\030\002 \001(\tB" + + "\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\026\n\tdeletable\030\004 \001(\010B\003\340" + + "A\003\022\023\n\006custom\030\005 \001(\010B\003\340A\003\022T\n\017counting_meth" + + "od\030\006 \001(\01626.google.analytics.admin.v1beta" + + ".KeyEvent.CountingMethodB\003\340A\002\022P\n\rdefault" + + "_value\030\007 \001(\01324.google.analytics.admin.v1" + + "beta.KeyEvent.DefaultValueB\003\340A\001\032F\n\014Defau" + + "ltValue\022\032\n\rnumeric_value\030\001 \001(\001B\003\340A\002\022\032\n\rc" + + "urrency_code\030\002 \001(\tB\003\340A\002\"[\n\016CountingMetho" + + "d\022\037\n\033COUNTING_METHOD_UNSPECIFIED\020\000\022\022\n\016ON" + + "CE_PER_EVENT\020\001\022\024\n\020ONCE_PER_SESSION\020\002:m\352A" + + "j\n&analyticsadmin.googleapis.com/KeyEven" + + "t\022+properties/{property}/keyEvents/{key_" + + "event}*\tkeyEvents2\010keyEvent\"\273\003\n\017CustomDi" + + "mension\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\036\n\016parameter_" + + "name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n\014display_name\030\003 \001(\t" + + "B\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022T\n\005scope" + + "\030\005 \001(\0162=.google.analytics.admin.v1beta.C" + + "ustomDimension.DimensionScopeB\006\340A\002\340A\005\022)\n" + + "\034disallow_ads_personalization\030\006 \001(\010B\003\340A\001" + + "\"P\n\016DimensionScope\022\037\n\033DIMENSION_SCOPE_UN" + + "SPECIFIED\020\000\022\t\n\005EVENT\020\001\022\010\n\004USER\020\002\022\010\n\004ITEM" + + "\020\003:m\352Aj\n-analyticsadmin.googleapis.com/C" + + "ustomDimension\0229properties/{property}/cu" + + "stomDimensions/{custom_dimension}\"\302\006\n\014Cu" + + "stomMetric\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\036\n\016paramet" + + "er_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n\014display_name\030\003 " + + "\001(\tB\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022Z\n\020me" + + "asurement_unit\030\005 \001(\0162;.google.analytics." + + "admin.v1beta.CustomMetric.MeasurementUni" + + "tB\003\340A\002\022N\n\005scope\030\006 \001(\01627.google.analytics" + + ".admin.v1beta.CustomMetric.MetricScopeB\006" + + "\340A\002\340A\005\022e\n\026restricted_metric_type\030\010 \003(\0162@" + + ".google.analytics.admin.v1beta.CustomMet" + + "ric.RestrictedMetricTypeB\003\340A\001\"\267\001\n\017Measur" + + "ementUnit\022 \n\034MEASUREMENT_UNIT_UNSPECIFIE" + + "D\020\000\022\014\n\010STANDARD\020\001\022\014\n\010CURRENCY\020\002\022\010\n\004FEET\020" + + "\003\022\n\n\006METERS\020\004\022\016\n\nKILOMETERS\020\005\022\t\n\005MILES\020\006" + + "\022\020\n\014MILLISECONDS\020\007\022\013\n\007SECONDS\020\010\022\013\n\007MINUT" + + "ES\020\t\022\t\n\005HOURS\020\n\"6\n\013MetricScope\022\034\n\030METRIC" + + "_SCOPE_UNSPECIFIED\020\000\022\t\n\005EVENT\020\001\"_\n\024Restr" + + "ictedMetricType\022&\n\"RESTRICTED_METRIC_TYP" + + "E_UNSPECIFIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n\014REVENU" + + "E_DATA\020\002:d\352Aa\n*analyticsadmin.googleapis" + + ".com/CustomMetric\0223properties/{property}" + + "/customMetrics/{custom_metric}\"\301\003\n\025DataR" + + "etentionSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022d\n\024e" + + "vent_data_retention\030\002 \001(\0162F.google.analy" + + "tics.admin.v1beta.DataRetentionSettings." + + "RetentionDuration\022\'\n\037reset_user_data_on_" + + "new_activity\030\003 \001(\010\"\236\001\n\021RetentionDuration" + + "\022\"\n\036RETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\n" + + "TWO_MONTHS\020\001\022\023\n\017FOURTEEN_MONTHS\020\003\022\025\n\021TWE" + + "NTY_SIX_MONTHS\020\004\022\027\n\023THIRTY_EIGHT_MONTHS\020" + + "\005\022\020\n\014FIFTY_MONTHS\020\006:e\352Ab\n3analyticsadmin" + + ".googleapis.com/DataRetentionSettings\022+p" + + "roperties/{property}/dataRetentionSettin" + + "gs*\252\004\n\020IndustryCategory\022!\n\035INDUSTRY_CATE" + + "GORY_UNSPECIFIED\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BU" + + "SINESS_AND_INDUSTRIAL_MARKETS\020\002\022\013\n\007FINAN" + + "CE\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\nTECHNOLOGY\020\005\022\n\n\006" + + "TRAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_AND_ENTERTAI" + + "NMENT\020\010\022\026\n\022BEAUTY_AND_FITNESS\020\t\022\030\n\024BOOKS" + + "_AND_LITERATURE\020\n\022\022\n\016FOOD_AND_DRINK\020\013\022\t\n" + + "\005GAMES\020\014\022\027\n\023HOBBIES_AND_LEISURE\020\r\022\023\n\017HOM" + + "E_AND_GARDEN\020\016\022\030\n\024INTERNET_AND_TELECOM\020\017" + + "\022\026\n\022LAW_AND_GOVERNMENT\020\020\022\010\n\004NEWS\020\021\022\026\n\022ON" + + "LINE_COMMUNITIES\020\022\022\026\n\022PEOPLE_AND_SOCIETY" + + "\020\023\022\024\n\020PETS_AND_ANIMALS\020\024\022\017\n\013REAL_ESTATE\020" + + "\025\022\r\n\tREFERENCE\020\026\022\013\n\007SCIENCE\020\027\022\n\n\006SPORTS\020" + + "\030\022\026\n\022JOBS_AND_EDUCATION\020\031\022\014\n\010SHOPPING\020\032*" + + "f\n\014ServiceLevel\022\035\n\031SERVICE_LEVEL_UNSPECI" + + "FIED\020\000\022\035\n\031GOOGLE_ANALYTICS_STANDARD\020\001\022\030\n" + + "\024GOOGLE_ANALYTICS_360\020\002*J\n\tActorType\022\032\n\026" + + "ACTOR_TYPE_UNSPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006SY" + + "STEM\020\002\022\013\n\007SUPPORT\020\003*P\n\nActionType\022\033\n\027ACT" + + "ION_TYPE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007U" + + "PDATED\020\002\022\013\n\007DELETED\020\003*\377\002\n\031ChangeHistoryR" + + "esourceType\022,\n(CHANGE_HISTORY_RESOURCE_T" + + "YPE_UNSPECIFIED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPER" + + "TY\020\002\022\021\n\rFIREBASE_LINK\020\006\022\023\n\017GOOGLE_ADS_LI" + + "NK\020\007\022\033\n\027GOOGLE_SIGNALS_SETTINGS\020\010\022\024\n\020CON" + + "VERSION_EVENT\020\t\022\037\n\033MEASUREMENT_PROTOCOL_" + + "SECRET\020\n\022\033\n\027DATA_RETENTION_SETTINGS\020\r\022%\n" + + "!DISPLAY_VIDEO_360_ADVERTISER_LINK\020\016\022.\n*" + + "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOS" + + "AL\020\017\022\017\n\013DATA_STREAM\020\022\022\030\n\024ATTRIBUTION_SET" + + "TINGS\020\024*\202\001\n\014PropertyType\022\035\n\031PROPERTY_TYP" + + "E_UNSPECIFIED\020\000\022\032\n\026PROPERTY_TYPE_ORDINAR" + + "Y\020\001\022\035\n\031PROPERTY_TYPE_SUBPROPERTY\020\002\022\030\n\024PR" + + "OPERTY_TYPE_ROLLUP\020\003B\311\001\n!com.google.anal" + + "ytics.admin.v1betaB\016ResourcesProtoP\001Z=cl" + + "oud.google.com/go/analytics/admin/apiv1b" + + "eta/adminpb;adminpb\352AR\n2marketingplatfor" + + "madmin.googleapis.com/Organization\022\034orga" + + "nizations/{organization}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -350,7 +387,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_Account_descriptor, new java.lang.String[] { - "Name", "CreateTime", "UpdateTime", "DisplayName", "RegionCode", "Deleted", + "Name", + "CreateTime", + "UpdateTime", + "DisplayName", + "RegionCode", + "Deleted", + "GmpOrganization", }); internal_static_google_analytics_admin_v1beta_Property_descriptor = getDescriptor().getMessageTypes().get(1); @@ -511,10 +554,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor, new java.lang.String[] { - "Name", "EventName", "CreateTime", "Deletable", "Custom", "CountingMethod", + "Name", + "EventName", + "CreateTime", + "Deletable", + "Custom", + "CountingMethod", + "DefaultConversionValue", }); - internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor = + internal_static_google_analytics_admin_v1beta_ConversionEvent_DefaultConversionValue_descriptor = + internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1beta_ConversionEvent_DefaultConversionValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ConversionEvent_DefaultConversionValue_descriptor, + new java.lang.String[] { + "Value", "CurrencyCode", + }); + internal_static_google_analytics_admin_v1beta_KeyEvent_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_google_analytics_admin_v1beta_KeyEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_KeyEvent_descriptor, + new java.lang.String[] { + "Name", + "EventName", + "CreateTime", + "Deletable", + "Custom", + "CountingMethod", + "DefaultValue", + }); + internal_static_google_analytics_admin_v1beta_KeyEvent_DefaultValue_descriptor = + internal_static_google_analytics_admin_v1beta_KeyEvent_descriptor.getNestedTypes().get(0); + internal_static_google_analytics_admin_v1beta_KeyEvent_DefaultValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_KeyEvent_DefaultValue_descriptor, + new java.lang.String[] { + "NumericValue", "CurrencyCode", + }); + internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor = + getDescriptor().getMessageTypes().get(13); internal_static_google_analytics_admin_v1beta_CustomDimension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor, @@ -527,7 +608,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisallowAdsPersonalization", }); internal_static_google_analytics_admin_v1beta_CustomMetric_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_analytics_admin_v1beta_CustomMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_CustomMetric_descriptor, @@ -541,7 +622,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RestrictedMetricType", }); internal_static_google_analytics_admin_v1beta_DataRetentionSettings_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_analytics_admin_v1beta_DataRetentionSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_DataRetentionSettings_descriptor, @@ -552,6 +633,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequest.java index 1cdba0cbbcc5..b8bba8c1a5d3 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequest.java @@ -708,6 +708,49 @@ public boolean getReturnEntityQuota() { return returnEntityQuota_; } + public static final int INCLUDE_ALL_USERS_FIELD_NUMBER = 12; + private boolean includeAllUsers_ = false; + /** + * + * + *
          +   * Optional. Determines whether to include users who have never made an API
          +   * call in the response. If true, all users with access to the specified
          +   * property or account are included in the response, regardless of whether
          +   * they have made an API call or not. If false, only the users who have made
          +   * an API call will be included.
          +   * 
          + * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeAllUsers. + */ + @java.lang.Override + public boolean getIncludeAllUsers() { + return includeAllUsers_; + } + + public static final int EXPAND_GROUPS_FIELD_NUMBER = 13; + private boolean expandGroups_ = false; + /** + * + * + *
          +   * Optional. Decides whether to return the users within user groups. This
          +   * field works only when include_all_users is set to true. If true, it will
          +   * return all users with access to the specified property or account.
          +   * If false, only the users with direct access will be returned.
          +   * 
          + * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expandGroups. + */ + @java.lang.Override + public boolean getExpandGroups() { + return expandGroups_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -755,6 +798,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (returnEntityQuota_ != false) { output.writeBool(11, returnEntityQuota_); } + if (includeAllUsers_ != false) { + output.writeBool(12, includeAllUsers_); + } + if (expandGroups_ != false) { + output.writeBool(13, expandGroups_); + } getUnknownFields().writeTo(output); } @@ -797,6 +846,12 @@ public int getSerializedSize() { if (returnEntityQuota_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, returnEntityQuota_); } + if (includeAllUsers_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, includeAllUsers_); + } + if (expandGroups_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, expandGroups_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -830,6 +885,8 @@ public boolean equals(final java.lang.Object obj) { if (!getTimeZone().equals(other.getTimeZone())) return false; if (!getOrderBysList().equals(other.getOrderBysList())) return false; if (getReturnEntityQuota() != other.getReturnEntityQuota()) return false; + if (getIncludeAllUsers() != other.getIncludeAllUsers()) return false; + if (getExpandGroups() != other.getExpandGroups()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -875,6 +932,10 @@ public int hashCode() { } hash = (37 * hash) + RETURN_ENTITY_QUOTA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnEntityQuota()); + hash = (37 * hash) + INCLUDE_ALL_USERS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeAllUsers()); + hash = (37 * hash) + EXPAND_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExpandGroups()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1072,6 +1133,8 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000200); returnEntityQuota_ = false; + includeAllUsers_ = false; + expandGroups_ = false; return this; } @@ -1175,6 +1238,12 @@ private void buildPartial0(com.google.analytics.admin.v1beta.RunAccessReportRequ if (((from_bitField0_ & 0x00000400) != 0)) { result.returnEntityQuota_ = returnEntityQuota_; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.includeAllUsers_ = includeAllUsers_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.expandGroups_ = expandGroups_; + } result.bitField0_ |= to_bitField0_; } @@ -1357,6 +1426,12 @@ public Builder mergeFrom(com.google.analytics.admin.v1beta.RunAccessReportReques if (other.getReturnEntityQuota() != false) { setReturnEntityQuota(other.getReturnEntityQuota()); } + if (other.getIncludeAllUsers() != false) { + setIncludeAllUsers(other.getIncludeAllUsers()); + } + if (other.getExpandGroups() != false) { + setExpandGroups(other.getExpandGroups()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1480,6 +1555,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; break; } // case 88 + case 96: + { + includeAllUsers_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: + { + expandGroups_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3958,6 +4045,133 @@ public Builder clearReturnEntityQuota() { return this; } + private boolean includeAllUsers_; + /** + * + * + *
          +     * Optional. Determines whether to include users who have never made an API
          +     * call in the response. If true, all users with access to the specified
          +     * property or account are included in the response, regardless of whether
          +     * they have made an API call or not. If false, only the users who have made
          +     * an API call will be included.
          +     * 
          + * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeAllUsers. + */ + @java.lang.Override + public boolean getIncludeAllUsers() { + return includeAllUsers_; + } + /** + * + * + *
          +     * Optional. Determines whether to include users who have never made an API
          +     * call in the response. If true, all users with access to the specified
          +     * property or account are included in the response, regardless of whether
          +     * they have made an API call or not. If false, only the users who have made
          +     * an API call will be included.
          +     * 
          + * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The includeAllUsers to set. + * @return This builder for chaining. + */ + public Builder setIncludeAllUsers(boolean value) { + + includeAllUsers_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Determines whether to include users who have never made an API
          +     * call in the response. If true, all users with access to the specified
          +     * property or account are included in the response, regardless of whether
          +     * they have made an API call or not. If false, only the users who have made
          +     * an API call will be included.
          +     * 
          + * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIncludeAllUsers() { + bitField0_ = (bitField0_ & ~0x00000800); + includeAllUsers_ = false; + onChanged(); + return this; + } + + private boolean expandGroups_; + /** + * + * + *
          +     * Optional. Decides whether to return the users within user groups. This
          +     * field works only when include_all_users is set to true. If true, it will
          +     * return all users with access to the specified property or account.
          +     * If false, only the users with direct access will be returned.
          +     * 
          + * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expandGroups. + */ + @java.lang.Override + public boolean getExpandGroups() { + return expandGroups_; + } + /** + * + * + *
          +     * Optional. Decides whether to return the users within user groups. This
          +     * field works only when include_all_users is set to true. If true, it will
          +     * return all users with access to the specified property or account.
          +     * If false, only the users with direct access will be returned.
          +     * 
          + * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The expandGroups to set. + * @return This builder for chaining. + */ + public Builder setExpandGroups(boolean value) { + + expandGroups_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Decides whether to return the users within user groups. This
          +     * field works only when include_all_users is set to true. If true, it will
          +     * return all users with access to the specified property or account.
          +     * If false, only the users with direct access will be returned.
          +     * 
          + * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearExpandGroups() { + bitField0_ = (bitField0_ & ~0x00001000); + expandGroups_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequestOrBuilder.java index 121a9101290f..5a35deaa002e 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequestOrBuilder.java @@ -485,4 +485,37 @@ public interface RunAccessReportRequestOrBuilder * @return The returnEntityQuota. */ boolean getReturnEntityQuota(); + + /** + * + * + *
          +   * Optional. Determines whether to include users who have never made an API
          +   * call in the response. If true, all users with access to the specified
          +   * property or account are included in the response, regardless of whether
          +   * they have made an API call or not. If false, only the users who have made
          +   * an API call will be included.
          +   * 
          + * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeAllUsers. + */ + boolean getIncludeAllUsers(); + + /** + * + * + *
          +   * Optional. Decides whether to return the users within user groups. This
          +   * field works only when include_all_users is set to true. If true, it will
          +   * return all users with access to the specified property or account.
          +   * If false, only the users with direct access will be returned.
          +   * 
          + * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expandGroups. + */ + boolean getExpandGroups(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequest.java index b7b9549386dc..3437b896b8fb 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequest.java @@ -79,7 +79,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
              * Required. The account resource for which to return change history
          -   * resources.
          +   * resources. Format: accounts/{account}
          +   *
          +   * Example: `accounts/100`
              * 
          * * @@ -105,7 +107,9 @@ public java.lang.String getAccount() { * *
              * Required. The account resource for which to return change history
          -   * resources.
          +   * resources. Format: accounts/{account}
          +   *
          +   * Example: `accounts/100`
              * 
          * * @@ -137,6 +141,9 @@ public com.google.protobuf.ByteString getAccountBytes() { *
              * Optional. Resource name for a child property. If set, only return changes
              * made to this property or its child resources.
          +   * Format: properties/{propertyId}
          +   *
          +   * Example: `properties/100`
              * 
          * * @@ -163,6 +170,9 @@ public java.lang.String getProperty() { *
              * Optional. Resource name for a child property. If set, only return changes
              * made to this property or its child resources.
          +   * Format: properties/{propertyId}
          +   *
          +   * Example: `properties/100`
              * 
          * * @@ -1350,7 +1360,9 @@ public Builder mergeFrom( * *
                * Required. The account resource for which to return change history
          -     * resources.
          +     * resources. Format: accounts/{account}
          +     *
          +     * Example: `accounts/100`
                * 
          * * @@ -1375,7 +1387,9 @@ public java.lang.String getAccount() { * *
                * Required. The account resource for which to return change history
          -     * resources.
          +     * resources. Format: accounts/{account}
          +     *
          +     * Example: `accounts/100`
                * 
          * * @@ -1400,7 +1414,9 @@ public com.google.protobuf.ByteString getAccountBytes() { * *
                * Required. The account resource for which to return change history
          -     * resources.
          +     * resources. Format: accounts/{account}
          +     *
          +     * Example: `accounts/100`
                * 
          * * @@ -1424,7 +1440,9 @@ public Builder setAccount(java.lang.String value) { * *
                * Required. The account resource for which to return change history
          -     * resources.
          +     * resources. Format: accounts/{account}
          +     *
          +     * Example: `accounts/100`
                * 
          * * @@ -1444,7 +1462,9 @@ public Builder clearAccount() { * *
                * Required. The account resource for which to return change history
          -     * resources.
          +     * resources. Format: accounts/{account}
          +     *
          +     * Example: `accounts/100`
                * 
          * * @@ -1472,6 +1492,9 @@ public Builder setAccountBytes(com.google.protobuf.ByteString value) { *
                * Optional. Resource name for a child property. If set, only return changes
                * made to this property or its child resources.
          +     * Format: properties/{propertyId}
          +     *
          +     * Example: `properties/100`
                * 
          * * @@ -1497,6 +1520,9 @@ public java.lang.String getProperty() { *
                * Optional. Resource name for a child property. If set, only return changes
                * made to this property or its child resources.
          +     * Format: properties/{propertyId}
          +     *
          +     * Example: `properties/100`
                * 
          * * @@ -1522,6 +1548,9 @@ public com.google.protobuf.ByteString getPropertyBytes() { *
                * Optional. Resource name for a child property. If set, only return changes
                * made to this property or its child resources.
          +     * Format: properties/{propertyId}
          +     *
          +     * Example: `properties/100`
                * 
          * * @@ -1546,6 +1575,9 @@ public Builder setProperty(java.lang.String value) { *
                * Optional. Resource name for a child property. If set, only return changes
                * made to this property or its child resources.
          +     * Format: properties/{propertyId}
          +     *
          +     * Example: `properties/100`
                * 
          * * @@ -1566,6 +1598,9 @@ public Builder clearProperty() { *
                * Optional. Resource name for a child property. If set, only return changes
                * made to this property or its child resources.
          +     * Format: properties/{propertyId}
          +     *
          +     * Example: `properties/100`
                * 
          * * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequestOrBuilder.java index a9b045ddb26d..fdea150cbae7 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequestOrBuilder.java @@ -29,7 +29,9 @@ public interface SearchChangeHistoryEventsRequestOrBuilder * *
              * Required. The account resource for which to return change history
          -   * resources.
          +   * resources. Format: accounts/{account}
          +   *
          +   * Example: `accounts/100`
              * 
          * * @@ -44,7 +46,9 @@ public interface SearchChangeHistoryEventsRequestOrBuilder * *
              * Required. The account resource for which to return change history
          -   * resources.
          +   * resources. Format: accounts/{account}
          +   *
          +   * Example: `accounts/100`
              * 
          * * @@ -61,6 +65,9 @@ public interface SearchChangeHistoryEventsRequestOrBuilder *
              * Optional. Resource name for a child property. If set, only return changes
              * made to this property or its child resources.
          +   * Format: properties/{propertyId}
          +   *
          +   * Example: `properties/100`
              * 
          * * @@ -76,6 +83,9 @@ public interface SearchChangeHistoryEventsRequestOrBuilder *
              * Optional. Resource name for a child property. If set, only return changes
              * made to this property or its child resources.
          +   * Format: properties/{propertyId}
          +   *
          +   * Example: `properties/100`
              * 
          * * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateKeyEventRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateKeyEventRequest.java new file mode 100644 index 000000000000..9ce18534136b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateKeyEventRequest.java @@ -0,0 +1,1070 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1beta/analytics_admin.proto + +// Protobuf Java Version: 3.25.3 +package com.google.analytics.admin.v1beta; + +/** + * + * + *
          + * Request message for UpdateKeyEvent RPC
          + * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateKeyEventRequest} + */ +public final class UpdateKeyEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateKeyEventRequest) + UpdateKeyEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateKeyEventRequest.newBuilder() to construct. + private UpdateKeyEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateKeyEventRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateKeyEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateKeyEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateKeyEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateKeyEventRequest.class, + com.google.analytics.admin.v1beta.UpdateKeyEventRequest.Builder.class); + } + + private int bitField0_; + public static final int KEY_EVENT_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.KeyEvent keyEvent_; + /** + * + * + *
          +   * Required. The Key Event to update.
          +   * The `name` field is used to identify the settings to be updated.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the keyEvent field is set. + */ + @java.lang.Override + public boolean hasKeyEvent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. The Key Event to update.
          +   * The `name` field is used to identify the settings to be updated.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The keyEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEvent getKeyEvent() { + return keyEvent_ == null + ? com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance() + : keyEvent_; + } + /** + * + * + *
          +   * Required. The Key Event to update.
          +   * The `name` field is used to identify the settings to be updated.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.KeyEventOrBuilder getKeyEventOrBuilder() { + return keyEvent_ == null + ? com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance() + : keyEvent_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
          +   * Required. The list of fields to be updated. Field names must be in snake
          +   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +   * replace the entire entity, use one path with the string "*" to match all
          +   * fields.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Required. The list of fields to be updated. Field names must be in snake
          +   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +   * replace the entire entity, use one path with the string "*" to match all
          +   * fields.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
          +   * Required. The list of fields to be updated. Field names must be in snake
          +   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +   * replace the entire entity, use one path with the string "*" to match all
          +   * fields.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getKeyEvent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKeyEvent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1beta.UpdateKeyEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.UpdateKeyEventRequest other = + (com.google.analytics.admin.v1beta.UpdateKeyEventRequest) obj; + + if (hasKeyEvent() != other.hasKeyEvent()) return false; + if (hasKeyEvent()) { + if (!getKeyEvent().equals(other.getKeyEvent())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasKeyEvent()) { + hash = (37 * hash) + KEY_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getKeyEvent().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.UpdateKeyEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateKeyEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateKeyEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateKeyEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateKeyEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateKeyEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateKeyEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateKeyEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateKeyEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateKeyEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateKeyEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateKeyEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.UpdateKeyEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Request message for UpdateKeyEvent RPC
          +   * 
          + * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateKeyEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateKeyEventRequest) + com.google.analytics.admin.v1beta.UpdateKeyEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateKeyEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateKeyEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateKeyEventRequest.class, + com.google.analytics.admin.v1beta.UpdateKeyEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.UpdateKeyEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getKeyEventFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyEvent_ = null; + if (keyEventBuilder_ != null) { + keyEventBuilder_.dispose(); + keyEventBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateKeyEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateKeyEventRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.UpdateKeyEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateKeyEventRequest build() { + com.google.analytics.admin.v1beta.UpdateKeyEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateKeyEventRequest buildPartial() { + com.google.analytics.admin.v1beta.UpdateKeyEventRequest result = + new com.google.analytics.admin.v1beta.UpdateKeyEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.UpdateKeyEventRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keyEvent_ = keyEventBuilder_ == null ? keyEvent_ : keyEventBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.UpdateKeyEventRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.UpdateKeyEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateKeyEventRequest other) { + if (other == com.google.analytics.admin.v1beta.UpdateKeyEventRequest.getDefaultInstance()) + return this; + if (other.hasKeyEvent()) { + mergeKeyEvent(other.getKeyEvent()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getKeyEventFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.KeyEvent keyEvent_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.KeyEvent, + com.google.analytics.admin.v1beta.KeyEvent.Builder, + com.google.analytics.admin.v1beta.KeyEventOrBuilder> + keyEventBuilder_; + /** + * + * + *
          +     * Required. The Key Event to update.
          +     * The `name` field is used to identify the settings to be updated.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the keyEvent field is set. + */ + public boolean hasKeyEvent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +     * Required. The Key Event to update.
          +     * The `name` field is used to identify the settings to be updated.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The keyEvent. + */ + public com.google.analytics.admin.v1beta.KeyEvent getKeyEvent() { + if (keyEventBuilder_ == null) { + return keyEvent_ == null + ? com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance() + : keyEvent_; + } else { + return keyEventBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The Key Event to update.
          +     * The `name` field is used to identify the settings to be updated.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setKeyEvent(com.google.analytics.admin.v1beta.KeyEvent value) { + if (keyEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + keyEvent_ = value; + } else { + keyEventBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The Key Event to update.
          +     * The `name` field is used to identify the settings to be updated.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setKeyEvent(com.google.analytics.admin.v1beta.KeyEvent.Builder builderForValue) { + if (keyEventBuilder_ == null) { + keyEvent_ = builderForValue.build(); + } else { + keyEventBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The Key Event to update.
          +     * The `name` field is used to identify the settings to be updated.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeKeyEvent(com.google.analytics.admin.v1beta.KeyEvent value) { + if (keyEventBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && keyEvent_ != null + && keyEvent_ != com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance()) { + getKeyEventBuilder().mergeFrom(value); + } else { + keyEvent_ = value; + } + } else { + keyEventBuilder_.mergeFrom(value); + } + if (keyEvent_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The Key Event to update.
          +     * The `name` field is used to identify the settings to be updated.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearKeyEvent() { + bitField0_ = (bitField0_ & ~0x00000001); + keyEvent_ = null; + if (keyEventBuilder_ != null) { + keyEventBuilder_.dispose(); + keyEventBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The Key Event to update.
          +     * The `name` field is used to identify the settings to be updated.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.KeyEvent.Builder getKeyEventBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getKeyEventFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The Key Event to update.
          +     * The `name` field is used to identify the settings to be updated.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.KeyEventOrBuilder getKeyEventOrBuilder() { + if (keyEventBuilder_ != null) { + return keyEventBuilder_.getMessageOrBuilder(); + } else { + return keyEvent_ == null + ? com.google.analytics.admin.v1beta.KeyEvent.getDefaultInstance() + : keyEvent_; + } + } + /** + * + * + *
          +     * Required. The Key Event to update.
          +     * The `name` field is used to identify the settings to be updated.
          +     * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.KeyEvent, + com.google.analytics.admin.v1beta.KeyEvent.Builder, + com.google.analytics.admin.v1beta.KeyEventOrBuilder> + getKeyEventFieldBuilder() { + if (keyEventBuilder_ == null) { + keyEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.KeyEvent, + com.google.analytics.admin.v1beta.KeyEvent.Builder, + com.google.analytics.admin.v1beta.KeyEventOrBuilder>( + getKeyEvent(), getParentForChildren(), isClean()); + keyEvent_ = null; + } + return keyEventBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
          +     * Required. The list of fields to be updated. Field names must be in snake
          +     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +     * replace the entire entity, use one path with the string "*" to match all
          +     * fields.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * Required. The list of fields to be updated. Field names must be in snake
          +     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +     * replace the entire entity, use one path with the string "*" to match all
          +     * fields.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The list of fields to be updated. Field names must be in snake
          +     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +     * replace the entire entity, use one path with the string "*" to match all
          +     * fields.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The list of fields to be updated. Field names must be in snake
          +     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +     * replace the entire entity, use one path with the string "*" to match all
          +     * fields.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The list of fields to be updated. Field names must be in snake
          +     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +     * replace the entire entity, use one path with the string "*" to match all
          +     * fields.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The list of fields to be updated. Field names must be in snake
          +     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +     * replace the entire entity, use one path with the string "*" to match all
          +     * fields.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The list of fields to be updated. Field names must be in snake
          +     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +     * replace the entire entity, use one path with the string "*" to match all
          +     * fields.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The list of fields to be updated. Field names must be in snake
          +     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +     * replace the entire entity, use one path with the string "*" to match all
          +     * fields.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
          +     * Required. The list of fields to be updated. Field names must be in snake
          +     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +     * replace the entire entity, use one path with the string "*" to match all
          +     * fields.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateKeyEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateKeyEventRequest) + private static final com.google.analytics.admin.v1beta.UpdateKeyEventRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateKeyEventRequest(); + } + + public static com.google.analytics.admin.v1beta.UpdateKeyEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateKeyEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateKeyEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateKeyEventRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateKeyEventRequestOrBuilder.java new file mode 100644 index 000000000000..e5308aa72ed6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateKeyEventRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1beta/analytics_admin.proto + +// Protobuf Java Version: 3.25.3 +package com.google.analytics.admin.v1beta; + +public interface UpdateKeyEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateKeyEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The Key Event to update.
          +   * The `name` field is used to identify the settings to be updated.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the keyEvent field is set. + */ + boolean hasKeyEvent(); + /** + * + * + *
          +   * Required. The Key Event to update.
          +   * The `name` field is used to identify the settings to be updated.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The keyEvent. + */ + com.google.analytics.admin.v1beta.KeyEvent getKeyEvent(); + /** + * + * + *
          +   * Required. The Key Event to update.
          +   * The `name` field is used to identify the settings to be updated.
          +   * 
          + * + * + * .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.KeyEventOrBuilder getKeyEventOrBuilder(); + + /** + * + * + *
          +   * Required. The list of fields to be updated. Field names must be in snake
          +   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +   * replace the entire entity, use one path with the string "*" to match all
          +   * fields.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
          +   * Required. The list of fields to be updated. Field names must be in snake
          +   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +   * replace the entire entity, use one path with the string "*" to match all
          +   * fields.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
          +   * Required. The list of fields to be updated. Field names must be in snake
          +   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
          +   * replace the entire entity, use one path with the string "*" to match all
          +   * fields.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto index dde5181c36f0..5e4ddcf20313 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package google.analytics.admin.v1beta; -option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1beta;admin"; +option go_package = "cloud.google.com/go/analytics/admin/apiv1beta/adminpb;adminpb"; option java_multiple_files = true; option java_outer_classname = "AccessReportProto"; option java_package = "com.google.analytics.admin.v1beta"; diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto index 77c1091d4c64..84fb343415a3 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto @@ -26,7 +26,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1beta;admin"; +option go_package = "cloud.google.com/go/analytics/admin/apiv1beta/adminpb;adminpb"; option java_multiple_files = true; option java_outer_classname = "AnalyticsAdminProto"; option java_package = "com.google.analytics.admin.v1beta"; @@ -64,7 +64,7 @@ service AnalyticsAdminService { // // If the accounts are not restored before the expiration time, the account // and all child resources (eg: Properties, GoogleAdsLinks, Streams, - // UserLinks) will be permanently purged. + // AccessBindings) will be permanently purged. // https://support.google.com/analytics/answer/6154772 // // Returns an error if the target is not found. @@ -136,7 +136,7 @@ service AnalyticsAdminService { // However, they can be restored using the Trash Can UI. // // If the properties are not restored before the expiration time, the Property - // and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) + // and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) // will be permanently purged. // https://support.google.com/analytics/answer/6154772 // @@ -305,9 +305,11 @@ service AnalyticsAdminService { }; } + // Deprecated: Use `CreateKeyEvent` instead. // Creates a conversion event with the specified attributes. rpc CreateConversionEvent(CreateConversionEventRequest) returns (ConversionEvent) { + option deprecated = true; option (google.api.http) = { post: "/v1beta/{parent=properties/*}/conversionEvents" body: "conversion_event" @@ -315,9 +317,11 @@ service AnalyticsAdminService { option (google.api.method_signature) = "parent,conversion_event"; } + // Deprecated: Use `UpdateKeyEvent` instead. // Updates a conversion event with the specified attributes. rpc UpdateConversionEvent(UpdateConversionEventRequest) returns (ConversionEvent) { + option deprecated = true; option (google.api.http) = { patch: "/v1beta/{conversion_event.name=properties/*/conversionEvents/*}" body: "conversion_event" @@ -325,34 +329,83 @@ service AnalyticsAdminService { option (google.api.method_signature) = "conversion_event,update_mask"; } + // Deprecated: Use `GetKeyEvent` instead. // Retrieve a single conversion event. rpc GetConversionEvent(GetConversionEventRequest) returns (ConversionEvent) { + option deprecated = true; option (google.api.http) = { get: "/v1beta/{name=properties/*/conversionEvents/*}" }; option (google.api.method_signature) = "name"; } + // Deprecated: Use `DeleteKeyEvent` instead. // Deletes a conversion event in a property. rpc DeleteConversionEvent(DeleteConversionEventRequest) returns (google.protobuf.Empty) { + option deprecated = true; option (google.api.http) = { delete: "/v1beta/{name=properties/*/conversionEvents/*}" }; option (google.api.method_signature) = "name"; } + // Deprecated: Use `ListKeyEvents` instead. // Returns a list of conversion events in the specified parent property. // // Returns an empty list if no conversion events are found. rpc ListConversionEvents(ListConversionEventsRequest) returns (ListConversionEventsResponse) { + option deprecated = true; option (google.api.http) = { get: "/v1beta/{parent=properties/*}/conversionEvents" }; option (google.api.method_signature) = "parent"; } + // Creates a Key Event. + rpc CreateKeyEvent(CreateKeyEventRequest) returns (KeyEvent) { + option (google.api.http) = { + post: "/v1beta/{parent=properties/*}/keyEvents" + body: "key_event" + }; + option (google.api.method_signature) = "parent,key_event"; + } + + // Updates a Key Event. + rpc UpdateKeyEvent(UpdateKeyEventRequest) returns (KeyEvent) { + option (google.api.http) = { + patch: "/v1beta/{key_event.name=properties/*/keyEvents/*}" + body: "key_event" + }; + option (google.api.method_signature) = "key_event,update_mask"; + } + + // Retrieve a single Key Event. + rpc GetKeyEvent(GetKeyEventRequest) returns (KeyEvent) { + option (google.api.http) = { + get: "/v1beta/{name=properties/*/keyEvents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a Key Event. + rpc DeleteKeyEvent(DeleteKeyEventRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=properties/*/keyEvents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns a list of Key Events in the specified parent property. + // Returns an empty list if no Key Events are found. + rpc ListKeyEvents(ListKeyEventsRequest) returns (ListKeyEventsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=properties/*}/keyEvents" + }; + option (google.api.method_signature) = "parent"; + } + // Creates a CustomDimension. rpc CreateCustomDimension(CreateCustomDimensionRequest) returns (CustomDimension) { @@ -513,8 +566,10 @@ service AnalyticsAdminService { // records of each time a user reads Google Analytics reporting data. Access // records are retained for up to 2 years. // - // Data Access Reports can be requested for a property. The property must be - // in Google Analytics 360. This method is only available to Administrators. + // Data Access Reports can be requested for a property. Reports may be + // requested for any property, but dimensions that aren't related to quota can + // only be requested on Google Analytics 360 properties. This method is only + // available to Administrators. // // These data access records include GA4 UI Reporting, GA4 UI Explorations, // GA4 Data API, and other products like Firebase & Admob that can retrieve @@ -613,6 +668,19 @@ message RunAccessReportRequest { // quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level // requests, this field must be false. bool return_entity_quota = 11; + + // Optional. Determines whether to include users who have never made an API + // call in the response. If true, all users with access to the specified + // property or account are included in the response, regardless of whether + // they have made an API call or not. If false, only the users who have made + // an API call will be included. + bool include_all_users = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Decides whether to return the users within user groups. This + // field works only when include_all_users is set to true. If true, it will + // return all users with access to the specified property or account. + // If false, only the users with direct access will be returned. + bool expand_groups = 13 [(google.api.field_behavior) = OPTIONAL]; } // The customized Data Access Record Report response. @@ -830,7 +898,8 @@ message DeletePropertyRequest { // Request message for CreateFirebaseLink RPC message CreateFirebaseLinkRequest { // Required. Format: properties/{property_id} - // Example: properties/1234 + // + // Example: `properties/1234` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -845,7 +914,8 @@ message CreateFirebaseLinkRequest { // Request message for DeleteFirebaseLink RPC message DeleteFirebaseLinkRequest { // Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - // Example: properties/1234/firebaseLinks/5678 + // + // Example: `properties/1234/firebaseLinks/5678` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -857,7 +927,8 @@ message DeleteFirebaseLinkRequest { // Request message for ListFirebaseLinks RPC message ListFirebaseLinksRequest { // Required. Format: properties/{property_id} - // Example: properties/1234 + // + // Example: `properties/1234` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -965,7 +1036,8 @@ message ListGoogleAdsLinksResponse { message GetDataSharingSettingsRequest { // Required. The name of the settings to lookup. // Format: accounts/{account}/dataSharingSettings - // Example: "accounts/1000/dataSharingSettings" + // + // Example: `accounts/1000/dataSharingSettings` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1026,7 +1098,9 @@ message AcknowledgeUserDataCollectionResponse {} // Request message for SearchChangeHistoryEvents RPC. message SearchChangeHistoryEventsRequest { // Required. The account resource for which to return change history - // resources. + // resources. Format: accounts/{account} + // + // Example: `accounts/100` string account = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1036,6 +1110,9 @@ message SearchChangeHistoryEventsRequest { // Optional. Resource name for a child property. If set, only return changes // made to this property or its child resources. + // Format: properties/{propertyId} + // + // Example: `properties/100` string property = 2 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { @@ -1264,6 +1341,94 @@ message ListConversionEventsResponse { string next_page_token = 2; } +// Request message for CreateKeyEvent RPC +message CreateKeyEventRequest { + // Required. The Key Event to create. + KeyEvent key_event = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource name of the parent property where this Key Event + // will be created. Format: properties/123 + string parent = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/KeyEvent" + } + ]; +} + +// Request message for UpdateKeyEvent RPC +message UpdateKeyEventRequest { + // Required. The Key Event to update. + // The `name` field is used to identify the settings to be updated. + KeyEvent key_event = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to be updated. Field names must be in snake + // case (e.g., "field_to_update"). Omitted fields will not be updated. To + // replace the entire entity, use one path with the string "*" to match all + // fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for GetKeyEvent RPC +message GetKeyEventRequest { + // Required. The resource name of the Key Event to retrieve. + // Format: properties/{property}/keyEvents/{key_event} + // Example: "properties/123/keyEvents/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/KeyEvent" + } + ]; +} + +// Request message for DeleteKeyEvent RPC +message DeleteKeyEventRequest { + // Required. The resource name of the Key Event to delete. + // Format: properties/{property}/keyEvents/{key_event} + // Example: "properties/123/keyEvents/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/KeyEvent" + } + ]; +} + +// Request message for ListKeyEvents RPC +message ListKeyEventsRequest { + // Required. The resource name of the parent property. + // Example: 'properties/123' + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/KeyEvent" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 2; + + // A page token, received from a previous `ListKeyEvents` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListKeyEvents` + // must match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListKeyEvents RPC. +message ListKeyEventsResponse { + // The requested Key Events + repeated KeyEvent key_events = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + // Request message for CreateCustomDimension RPC. message CreateCustomDimensionRequest { // Required. Example format: properties/1234 diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto index b58cf2d552cf..0c290c15b122 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto @@ -21,10 +21,14 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; -option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1beta;admin"; +option go_package = "cloud.google.com/go/analytics/admin/apiv1beta/adminpb;adminpb"; option java_multiple_files = true; option java_outer_classname = "ResourcesProto"; option java_package = "com.google.analytics.admin.v1beta"; +option (google.api.resource_definition) = { + type: "marketingplatformadmin.googleapis.com/Organization" + pattern: "organizations/{organization}" +}; // The category selected for this property, used for industry benchmarking. enum IndustryCategory { @@ -239,6 +243,16 @@ message Account { // Output only. Indicates whether this Account is soft-deleted or not. Deleted // accounts are excluded from List results unless specifically requested. bool deleted = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The URI for a Google Marketing Platform organization resource. + // Only set when this account is connected to a GMP organization. + // Format: marketingplatformadmin.googleapis.com/organizations/{org_id} + string gmp_organization = 7 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "marketingplatformadmin.googleapis.com/Organization" + } + ]; } // A resource message representing a Google Analytics GA4 property. @@ -255,8 +269,7 @@ message Property { // Immutable. The property type for this Property resource. When creating a // property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - // "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" - // types cannot yet be created with the Google Analytics Admin API. + // "ORDINARY_PROPERTY" will be implied. PropertyType property_type = 14 [(google.api.field_behavior) = IMMUTABLE]; // Output only. Time when the entity was originally created. @@ -681,6 +694,20 @@ message ConversionEvent { pattern: "properties/{property}/conversionEvents/{conversion_event}" }; + // Defines a default value/currency for a conversion event. Both value and + // currency must be provided. + message DefaultConversionValue { + // This value will be used to populate the value for all conversions + // of the specified event_name where the event "value" parameter is unset. + optional double value = 1; + + // When a conversion event for this event_name has no set currency, + // this currency will be applied as the default. Must be in ISO 4217 + // currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for + // more information. + optional string currency_code = 2; + } + // The method by which conversions will be counted across multiple events // within a session. enum ConversionCountingMethod { @@ -724,6 +751,79 @@ message ConversionEvent { // `ONCE_PER_EVENT`. ConversionCountingMethod counting_method = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines a default value/currency for a conversion event. + optional DefaultConversionValue default_conversion_value = 7 + [(google.api.field_behavior) = OPTIONAL]; +} + +// A key event in a Google Analytics property. +message KeyEvent { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/KeyEvent" + pattern: "properties/{property}/keyEvents/{key_event}" + plural: "keyEvents" + singular: "keyEvent" + }; + + // Defines a default value/currency for a key event. + message DefaultValue { + // Required. This will be used to populate the "value" parameter for all + // occurrences of this Key Event (specified by event_name) where that + // parameter is unset. + double numeric_value = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. When an occurrence of this Key Event (specified by event_name) + // has no set currency this currency will be applied as the default. Must be + // in ISO 4217 currency code format. + // + // See https://en.wikipedia.org/wiki/ISO_4217 for more information. + string currency_code = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // The method by which Key Events will be counted across multiple events + // within a session. + enum CountingMethod { + // Counting method not specified. + COUNTING_METHOD_UNSPECIFIED = 0; + + // Each Event instance is considered a Key Event. + ONCE_PER_EVENT = 1; + + // An Event instance is considered a Key Event at most once per session per + // user. + ONCE_PER_SESSION = 2; + } + + // Output only. Resource name of this key event. + // Format: properties/{property}/keyEvents/{key_event} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The event name for this key event. + // Examples: 'click', 'purchase' + string event_name = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Time when this key event was created in the property. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set to true, this event can be deleted. + bool deletable = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set to true, this key event refers to a custom event. If + // set to false, this key event refers to a default event in GA. Default + // events typically have special meaning in GA. Default events are usually + // created for you by the GA system, but in some cases can be created by + // property admins. Custom events count towards the maximum number of + // custom key events that may be created per property. + bool custom = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The method by which Key Events will be counted across multiple + // events within a session. + CountingMethod counting_method = 6 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Defines a default value/currency for a key event. + DefaultValue default_value = 7 [(google.api.field_behavior) = OPTIONAL]; } // A definition for a CustomDimension. diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createkeyevent/AsyncCreateKeyEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createkeyevent/AsyncCreateKeyEvent.java new file mode 100644 index 000000000000..f11b0cd77069 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createkeyevent/AsyncCreateKeyEvent.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateKeyEvent_async] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.CreateKeyEventRequest; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.PropertyName; +import com.google.api.core.ApiFuture; + +public class AsyncCreateKeyEvent { + + public static void main(String[] args) throws Exception { + asyncCreateKeyEvent(); + } + + public static void asyncCreateKeyEvent() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + CreateKeyEventRequest request = + CreateKeyEventRequest.newBuilder() + .setKeyEvent(KeyEvent.newBuilder().build()) + .setParent(PropertyName.of("[PROPERTY]").toString()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.createKeyEventCallable().futureCall(request); + // Do something. + KeyEvent response = future.get(); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateKeyEvent_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createkeyevent/SyncCreateKeyEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createkeyevent/SyncCreateKeyEvent.java new file mode 100644 index 000000000000..fb98d14e3810 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createkeyevent/SyncCreateKeyEvent.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateKeyEvent_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.CreateKeyEventRequest; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.PropertyName; + +public class SyncCreateKeyEvent { + + public static void main(String[] args) throws Exception { + syncCreateKeyEvent(); + } + + public static void syncCreateKeyEvent() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + CreateKeyEventRequest request = + CreateKeyEventRequest.newBuilder() + .setKeyEvent(KeyEvent.newBuilder().build()) + .setParent(PropertyName.of("[PROPERTY]").toString()) + .build(); + KeyEvent response = analyticsAdminServiceClient.createKeyEvent(request); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateKeyEvent_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createkeyevent/SyncCreateKeyEventPropertynameKeyevent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createkeyevent/SyncCreateKeyEventPropertynameKeyevent.java new file mode 100644 index 000000000000..54f56478a27c --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createkeyevent/SyncCreateKeyEventPropertynameKeyevent.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateKeyEvent_PropertynameKeyevent_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.PropertyName; + +public class SyncCreateKeyEventPropertynameKeyevent { + + public static void main(String[] args) throws Exception { + syncCreateKeyEventPropertynameKeyevent(); + } + + public static void syncCreateKeyEventPropertynameKeyevent() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + PropertyName parent = PropertyName.of("[PROPERTY]"); + KeyEvent keyEvent = KeyEvent.newBuilder().build(); + KeyEvent response = analyticsAdminServiceClient.createKeyEvent(parent, keyEvent); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateKeyEvent_PropertynameKeyevent_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createkeyevent/SyncCreateKeyEventStringKeyevent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createkeyevent/SyncCreateKeyEventStringKeyevent.java new file mode 100644 index 000000000000..ab057e50e07a --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createkeyevent/SyncCreateKeyEventStringKeyevent.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateKeyEvent_StringKeyevent_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.PropertyName; + +public class SyncCreateKeyEventStringKeyevent { + + public static void main(String[] args) throws Exception { + syncCreateKeyEventStringKeyevent(); + } + + public static void syncCreateKeyEventStringKeyevent() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String parent = PropertyName.of("[PROPERTY]").toString(); + KeyEvent keyEvent = KeyEvent.newBuilder().build(); + KeyEvent response = analyticsAdminServiceClient.createKeyEvent(parent, keyEvent); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateKeyEvent_StringKeyevent_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletekeyevent/AsyncDeleteKeyEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletekeyevent/AsyncDeleteKeyEvent.java new file mode 100644 index 000000000000..d84db6dbb1c1 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletekeyevent/AsyncDeleteKeyEvent.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteKeyEvent_async] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.DeleteKeyEventRequest; +import com.google.analytics.admin.v1beta.KeyEventName; +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; + +public class AsyncDeleteKeyEvent { + + public static void main(String[] args) throws Exception { + asyncDeleteKeyEvent(); + } + + public static void asyncDeleteKeyEvent() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + DeleteKeyEventRequest request = + DeleteKeyEventRequest.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.deleteKeyEventCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteKeyEvent_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletekeyevent/SyncDeleteKeyEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletekeyevent/SyncDeleteKeyEvent.java new file mode 100644 index 000000000000..38211453668a --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletekeyevent/SyncDeleteKeyEvent.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteKeyEvent_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.DeleteKeyEventRequest; +import com.google.analytics.admin.v1beta.KeyEventName; +import com.google.protobuf.Empty; + +public class SyncDeleteKeyEvent { + + public static void main(String[] args) throws Exception { + syncDeleteKeyEvent(); + } + + public static void syncDeleteKeyEvent() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + DeleteKeyEventRequest request = + DeleteKeyEventRequest.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .build(); + analyticsAdminServiceClient.deleteKeyEvent(request); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteKeyEvent_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletekeyevent/SyncDeleteKeyEventKeyeventname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletekeyevent/SyncDeleteKeyEventKeyeventname.java new file mode 100644 index 000000000000..8282bc1c8cee --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletekeyevent/SyncDeleteKeyEventKeyeventname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteKeyEvent_Keyeventname_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.KeyEventName; +import com.google.protobuf.Empty; + +public class SyncDeleteKeyEventKeyeventname { + + public static void main(String[] args) throws Exception { + syncDeleteKeyEventKeyeventname(); + } + + public static void syncDeleteKeyEventKeyeventname() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + KeyEventName name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]"); + analyticsAdminServiceClient.deleteKeyEvent(name); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteKeyEvent_Keyeventname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletekeyevent/SyncDeleteKeyEventString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletekeyevent/SyncDeleteKeyEventString.java new file mode 100644 index 000000000000..5bc1c3c503a1 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletekeyevent/SyncDeleteKeyEventString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteKeyEvent_String_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.KeyEventName; +import com.google.protobuf.Empty; + +public class SyncDeleteKeyEventString { + + public static void main(String[] args) throws Exception { + syncDeleteKeyEventString(); + } + + public static void syncDeleteKeyEventString() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString(); + analyticsAdminServiceClient.deleteKeyEvent(name); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteKeyEvent_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getkeyevent/AsyncGetKeyEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getkeyevent/AsyncGetKeyEvent.java new file mode 100644 index 000000000000..5bf2ef1d263d --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getkeyevent/AsyncGetKeyEvent.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetKeyEvent_async] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.GetKeyEventRequest; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.KeyEventName; +import com.google.api.core.ApiFuture; + +public class AsyncGetKeyEvent { + + public static void main(String[] args) throws Exception { + asyncGetKeyEvent(); + } + + public static void asyncGetKeyEvent() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + GetKeyEventRequest request = + GetKeyEventRequest.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.getKeyEventCallable().futureCall(request); + // Do something. + KeyEvent response = future.get(); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetKeyEvent_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getkeyevent/SyncGetKeyEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getkeyevent/SyncGetKeyEvent.java new file mode 100644 index 000000000000..52e0e2571d08 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getkeyevent/SyncGetKeyEvent.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetKeyEvent_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.GetKeyEventRequest; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.KeyEventName; + +public class SyncGetKeyEvent { + + public static void main(String[] args) throws Exception { + syncGetKeyEvent(); + } + + public static void syncGetKeyEvent() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + GetKeyEventRequest request = + GetKeyEventRequest.newBuilder() + .setName(KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString()) + .build(); + KeyEvent response = analyticsAdminServiceClient.getKeyEvent(request); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetKeyEvent_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getkeyevent/SyncGetKeyEventKeyeventname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getkeyevent/SyncGetKeyEventKeyeventname.java new file mode 100644 index 000000000000..7aca3d8b1252 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getkeyevent/SyncGetKeyEventKeyeventname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetKeyEvent_Keyeventname_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.KeyEventName; + +public class SyncGetKeyEventKeyeventname { + + public static void main(String[] args) throws Exception { + syncGetKeyEventKeyeventname(); + } + + public static void syncGetKeyEventKeyeventname() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + KeyEventName name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]"); + KeyEvent response = analyticsAdminServiceClient.getKeyEvent(name); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetKeyEvent_Keyeventname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getkeyevent/SyncGetKeyEventString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getkeyevent/SyncGetKeyEventString.java new file mode 100644 index 000000000000..939ebf238ba0 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getkeyevent/SyncGetKeyEventString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_GetKeyEvent_String_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.KeyEventName; + +public class SyncGetKeyEventString { + + public static void main(String[] args) throws Exception { + syncGetKeyEventString(); + } + + public static void syncGetKeyEventString() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String name = KeyEventName.of("[PROPERTY]", "[KEY_EVENT]").toString(); + KeyEvent response = analyticsAdminServiceClient.getKeyEvent(name); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetKeyEvent_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/AsyncListKeyEvents.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/AsyncListKeyEvents.java new file mode 100644 index 000000000000..46500631aa7f --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/AsyncListKeyEvents.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListKeyEvents_async] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.ListKeyEventsRequest; +import com.google.analytics.admin.v1beta.PropertyName; +import com.google.api.core.ApiFuture; + +public class AsyncListKeyEvents { + + public static void main(String[] args) throws Exception { + asyncListKeyEvents(); + } + + public static void asyncListKeyEvents() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + ListKeyEventsRequest request = + ListKeyEventsRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + analyticsAdminServiceClient.listKeyEventsPagedCallable().futureCall(request); + // Do something. + for (KeyEvent element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListKeyEvents_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/AsyncListKeyEventsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/AsyncListKeyEventsPaged.java new file mode 100644 index 000000000000..9294958b9d77 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/AsyncListKeyEventsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListKeyEvents_Paged_async] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.ListKeyEventsRequest; +import com.google.analytics.admin.v1beta.ListKeyEventsResponse; +import com.google.analytics.admin.v1beta.PropertyName; +import com.google.common.base.Strings; + +public class AsyncListKeyEventsPaged { + + public static void main(String[] args) throws Exception { + asyncListKeyEventsPaged(); + } + + public static void asyncListKeyEventsPaged() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + ListKeyEventsRequest request = + ListKeyEventsRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListKeyEventsResponse response = + analyticsAdminServiceClient.listKeyEventsCallable().call(request); + for (KeyEvent element : response.getKeyEventsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListKeyEvents_Paged_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/SyncListKeyEvents.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/SyncListKeyEvents.java new file mode 100644 index 000000000000..8ad42ece2e4c --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/SyncListKeyEvents.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListKeyEvents_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.ListKeyEventsRequest; +import com.google.analytics.admin.v1beta.PropertyName; + +public class SyncListKeyEvents { + + public static void main(String[] args) throws Exception { + syncListKeyEvents(); + } + + public static void syncListKeyEvents() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + ListKeyEventsRequest request = + ListKeyEventsRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (KeyEvent element : analyticsAdminServiceClient.listKeyEvents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListKeyEvents_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/SyncListKeyEventsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/SyncListKeyEventsPropertyname.java new file mode 100644 index 000000000000..caccde0bb6be --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/SyncListKeyEventsPropertyname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListKeyEvents_Propertyname_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.PropertyName; + +public class SyncListKeyEventsPropertyname { + + public static void main(String[] args) throws Exception { + syncListKeyEventsPropertyname(); + } + + public static void syncListKeyEventsPropertyname() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + PropertyName parent = PropertyName.of("[PROPERTY]"); + for (KeyEvent element : analyticsAdminServiceClient.listKeyEvents(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListKeyEvents_Propertyname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/SyncListKeyEventsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/SyncListKeyEventsString.java new file mode 100644 index 000000000000..ec9808b955df --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listkeyevents/SyncListKeyEventsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_ListKeyEvents_String_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.PropertyName; + +public class SyncListKeyEventsString { + + public static void main(String[] args) throws Exception { + syncListKeyEventsString(); + } + + public static void syncListKeyEventsString() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String parent = PropertyName.of("[PROPERTY]").toString(); + for (KeyEvent element : analyticsAdminServiceClient.listKeyEvents(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListKeyEvents_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java index 95a5dd1e221c..53af7ba2bc85 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java @@ -55,6 +55,8 @@ public static void asyncRunAccessReport() throws Exception { .setTimeZone("timeZone-2077180903") .addAllOrderBys(new ArrayList()) .setReturnEntityQuota(true) + .setIncludeAllUsers(true) + .setExpandGroups(true) .build(); ApiFuture future = analyticsAdminServiceClient.runAccessReportCallable().futureCall(request); diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/SyncRunAccessReport.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/SyncRunAccessReport.java index 9237ee563dbb..e3044d0cb82a 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/SyncRunAccessReport.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/SyncRunAccessReport.java @@ -54,6 +54,8 @@ public static void syncRunAccessReport() throws Exception { .setTimeZone("timeZone-2077180903") .addAllOrderBys(new ArrayList()) .setReturnEntityQuota(true) + .setIncludeAllUsers(true) + .setExpandGroups(true) .build(); RunAccessReportResponse response = analyticsAdminServiceClient.runAccessReport(request); } diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatekeyevent/AsyncUpdateKeyEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatekeyevent/AsyncUpdateKeyEvent.java new file mode 100644 index 000000000000..c7575927ea25 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatekeyevent/AsyncUpdateKeyEvent.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateKeyEvent_async] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.UpdateKeyEventRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateKeyEvent { + + public static void main(String[] args) throws Exception { + asyncUpdateKeyEvent(); + } + + public static void asyncUpdateKeyEvent() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + UpdateKeyEventRequest request = + UpdateKeyEventRequest.newBuilder() + .setKeyEvent(KeyEvent.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.updateKeyEventCallable().futureCall(request); + // Do something. + KeyEvent response = future.get(); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateKeyEvent_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatekeyevent/SyncUpdateKeyEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatekeyevent/SyncUpdateKeyEvent.java new file mode 100644 index 000000000000..c1af1b9c5ef9 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatekeyevent/SyncUpdateKeyEvent.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateKeyEvent_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.analytics.admin.v1beta.UpdateKeyEventRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateKeyEvent { + + public static void main(String[] args) throws Exception { + syncUpdateKeyEvent(); + } + + public static void syncUpdateKeyEvent() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + UpdateKeyEventRequest request = + UpdateKeyEventRequest.newBuilder() + .setKeyEvent(KeyEvent.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + KeyEvent response = analyticsAdminServiceClient.updateKeyEvent(request); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateKeyEvent_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatekeyevent/SyncUpdateKeyEventKeyeventFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatekeyevent/SyncUpdateKeyEventKeyeventFieldmask.java new file mode 100644 index 000000000000..2378b82c332b --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatekeyevent/SyncUpdateKeyEventKeyeventFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1beta.samples; + +// [START analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateKeyEvent_KeyeventFieldmask_sync] +import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1beta.KeyEvent; +import com.google.protobuf.FieldMask; + +public class SyncUpdateKeyEventKeyeventFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateKeyEventKeyeventFieldmask(); + } + + public static void syncUpdateKeyEventKeyeventFieldmask() throws Exception { + // 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + KeyEvent keyEvent = KeyEvent.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + KeyEvent response = analyticsAdminServiceClient.updateKeyEvent(keyEvent, updateMask); + } + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateKeyEvent_KeyeventFieldmask_sync] diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index 8130386b3540..be04117c96e4 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/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.analytics/google-analytics-data.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.57.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-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java index 58e66004d94e..2475f4e70495 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java @@ -48,6 +48,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; @@ -480,6 +481,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "analyticsdata.googleapis.com:443"; } diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStubSettings.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStubSettings.java index 12c7f4053609..b388da366bab 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStubSettings.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStubSettings.java @@ -43,6 +43,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; @@ -309,6 +310,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "analyticsdata.googleapis.com:443"; } diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index cc970fd5f6e1..9fe5b0e288de 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/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-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java index be3e09d78384..a1c95be637da 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java +++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.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; @@ -693,6 +694,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "analyticshub.googleapis.com:443"; } diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index 4c335b18824e..767c9a08d128 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/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-api-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.46.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-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java b/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java index dfe1f0d52417..41a5ac102eac 100644 --- a/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java +++ b/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.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; @@ -485,6 +486,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "apigateway.googleapis.com:443"; } diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index 5b233310eeab..9c260d94f803 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/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-apigee-connect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.46.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-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java index 413e4a74e324..fb12fd0b0115 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java +++ b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.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; @@ -194,6 +195,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "apigeeconnect.googleapis.com:443"; } diff --git a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java index f12b23a81d5e..1c4419fedf23 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java +++ b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java @@ -17,6 +17,7 @@ package com.google.cloud.apigeeconnect.v1.stub; 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 "apigeeconnect.googleapis.com:443"; } diff --git a/java-apigee-registry/README.md b/java-apigee-registry/README.md index 95db5a292fa4..91442aba66ac 100644 --- a/java-apigee-registry/README.md +++ b/java-apigee-registry/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.cloud/google-cloud-apigee-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.46.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-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/ProvisioningStubSettings.java b/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/ProvisioningStubSettings.java index 263fc4752d68..bd25e782f266 100644 --- a/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/ProvisioningStubSettings.java +++ b/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/ProvisioningStubSettings.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; @@ -267,6 +268,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "apigeeregistry.googleapis.com:443"; } diff --git a/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/RegistryStubSettings.java b/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/RegistryStubSettings.java index 0683a26d12c5..06c0e39608d2 100644 --- a/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/RegistryStubSettings.java +++ b/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/RegistryStubSettings.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; @@ -943,6 +944,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "apigeeregistry.googleapis.com:443"; } diff --git a/java-apikeys/README.md b/java-apikeys/README.md index 767bd65d0c36..70cdff849382 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/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-apikeys.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.44.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-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/ApiKeysStubSettings.java b/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/ApiKeysStubSettings.java index 86d539e32542..3003b9547b69 100644 --- a/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/ApiKeysStubSettings.java +++ b/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/ApiKeysStubSettings.java @@ -33,6 +33,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; @@ -270,6 +271,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "apikeys.googleapis.com:443"; } diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index 290ffff2814c..0e69088c999d 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/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-appengine-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.46.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-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ApplicationsStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ApplicationsStubSettings.java index 36a71ac333df..ecdc03a09e14 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ApplicationsStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ApplicationsStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -178,6 +179,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "appengine.googleapis.com:443"; } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedCertificatesStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedCertificatesStubSettings.java index 861f0ff6c094..520e9dbda8e4 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedCertificatesStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedCertificatesStubSettings.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; @@ -261,6 +262,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "appengine.googleapis.com:443"; } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedDomainsStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedDomainsStubSettings.java index 6c88d05cddb2..4dd47c6af33a 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedDomainsStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedDomainsStubSettings.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; @@ -211,6 +212,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "appengine.googleapis.com:443"; } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/DomainMappingsStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/DomainMappingsStubSettings.java index 22f6ea2c0206..da9b41c4b727 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/DomainMappingsStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/DomainMappingsStubSettings.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; @@ -266,6 +267,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "appengine.googleapis.com:443"; } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/FirewallStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/FirewallStubSettings.java index 2888eeff6052..e61296f1308d 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/FirewallStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/FirewallStubSettings.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; @@ -238,6 +239,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "appengine.googleapis.com:443"; } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/InstancesStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/InstancesStubSettings.java index c81423b799b2..6da518cb8af1 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/InstancesStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/InstancesStubSettings.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; @@ -236,6 +237,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "appengine.googleapis.com:443"; } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ServicesStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ServicesStubSettings.java index 5c6bb8a8fd7f..7bad3a2f53ba 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ServicesStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ServicesStubSettings.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; @@ -236,6 +237,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "appengine.googleapis.com:443"; } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/VersionsStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/VersionsStubSettings.java index 2e4d6aaa6569..bab42dd6d1fa 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/VersionsStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/VersionsStubSettings.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; @@ -252,6 +253,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "appengine.googleapis.com:443"; } diff --git a/java-apphub/README.md b/java-apphub/README.md index 8f21898f2f82..82fd48bdd083 100644 --- a/java-apphub/README.md +++ b/java-apphub/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.cloud/google-cloud-apphub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.10.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-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/AppHubStubSettings.java b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/AppHubStubSettings.java index ae7a278c2702..bfa69d57a7a1 100644 --- a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/AppHubStubSettings.java +++ b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/AppHubStubSettings.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; @@ -973,6 +974,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "apphub.googleapis.com:443"; } diff --git a/java-apphub/google-cloud-apphub/src/main/resources/META-INF/native-image/com.google.cloud.apphub.v1/reflect-config.json b/java-apphub/google-cloud-apphub/src/main/resources/META-INF/native-image/com.google.cloud.apphub.v1/reflect-config.json index a2fdc9f6c703..4ec9233ea8ac 100644 --- a/java-apphub/google-cloud-apphub/src/main/resources/META-INF/native-image/com.google.cloud.apphub.v1/reflect-config.json +++ b/java-apphub/google-cloud-apphub/src/main/resources/META-INF/native-image/com.google.cloud.apphub.v1/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.apphub.v1.Application", "queryAllDeclaredConstructors": true, diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index f44dd6c0ce6f..3768a894d86f 100644 --- a/java-area120-tables/README.md +++ b/java-area120-tables/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.area120/google-area120-tables.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.50.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-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/TablesServiceStubSettings.java b/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/TablesServiceStubSettings.java index 26daca608185..97a2a0b735f8 100644 --- a/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/TablesServiceStubSettings.java +++ b/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/TablesServiceStubSettings.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; @@ -398,6 +399,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "area120tables.googleapis.com:443"; } diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index e9f5c8e40037..572143da435a 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/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-artifact-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.45.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-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java index 46544b17af31..e003469425bd 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java @@ -30,6 +30,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; @@ -1099,6 +1100,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "artifactregistry.googleapis.com:443"; } diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/ArtifactRegistryStubSettings.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/ArtifactRegistryStubSettings.java index 2263169da9eb..aa58a67b5aa8 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/ArtifactRegistryStubSettings.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/ArtifactRegistryStubSettings.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; @@ -746,6 +747,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "artifactregistry.googleapis.com:443"; } diff --git a/java-asset/README.md b/java-asset/README.md index eaad07e1df69..30a836cab19c 100644 --- a/java-asset/README.md +++ b/java-asset/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-asset.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.50.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-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java index bdc293f49b94..10b71e929f3d 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.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; @@ -864,6 +865,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudasset.googleapis.com:443"; } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java index ac47cc602b42..3e1dec08079e 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.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; @@ -288,6 +289,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudasset.googleapis.com:443"; } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java index 9b5f338a7fb5..dd38ab7411d3 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -154,6 +155,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudasset.googleapis.com:443"; } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java index ad1dead8b011..eb19dbb177a8 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.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; @@ -189,6 +190,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudasset.googleapis.com:443"; } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java index 181f7ed2ffc4..58f04a9d87c3 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -130,6 +131,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudasset.googleapis.com:443"; } diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index 6624fef3df1f..c6761550bfc2 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/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-assured-workloads.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.46.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-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java index 437706a0f3c7..f0834aa1e978 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.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; @@ -331,6 +332,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "assuredworkloads.googleapis.com:443"; } diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java index e4ab50b41a3f..a6bd2cfed3e3 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.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; @@ -257,6 +258,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "assuredworkloads.googleapis.com:443"; } diff --git a/java-automl/README.md b/java-automl/README.md index 95854dc1c3f9..96742e1d2c52 100644 --- a/java-automl/README.md +++ b/java-automl/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 @@ -206,7 +206,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-automl.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.46.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-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java index 68bcd7110fc7..44aba360e2d3 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.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; @@ -524,6 +525,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "automl.googleapis.com:443"; } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java index 1692f6de16e2..da4f59cdb087 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -146,6 +147,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "automl.googleapis.com:443"; } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java index 6ed857213036..49e77c67c5cc 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.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; @@ -693,6 +694,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "automl.googleapis.com:443"; } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java index f49471d52be2..97a0e4eed122 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -147,6 +148,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "automl.googleapis.com:443"; } diff --git a/java-backupdr/README.md b/java-backupdr/README.md index 0d63f3e7d4bd..46a58b8434d7 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/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-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java index 615e61431714..f00c1b70e31c 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.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; @@ -354,6 +355,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "backupdr.googleapis.com:443"; } diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index 4c0df4cb62e5..f1f932dc7a34 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/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.cloud/google-cloud-bare-metal-solution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.46.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-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java index 1503744c76ce..b4b33a5dd0cf 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java @@ -30,6 +30,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; @@ -1241,6 +1242,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "baremetalsolution.googleapis.com:443"; } diff --git a/java-batch/README.md b/java-batch/README.md index 7693556de6f1..8dba4942af9e 100644 --- a/java-batch/README.md +++ b/java-batch/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.cloud/google-cloud-batch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.46.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-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java index d31f919169d7..55b51abd6a47 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.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; @@ -368,6 +369,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "batch.googleapis.com:443"; } diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.java index f84ed7ca04ae..48c851fc7ef0 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.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; @@ -508,6 +509,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "batch.googleapis.com:443"; } diff --git a/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json b/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json index 0f3f3aef08a8..6862b2cce212 100644 --- a/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json +++ b/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.batch.v1.AllocationPolicy", "queryAllDeclaredConstructors": true, diff --git a/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1alpha/reflect-config.json b/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1alpha/reflect-config.json index 14f05b30ee9e..34382f844031 100644 --- a/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1alpha/reflect-config.json +++ b/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1alpha/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.batch.v1alpha.AllocationPolicy", "queryAllDeclaredConstructors": true, diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index 5845b4928876..3e0e2676a296 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/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.cloud/google-cloud-beyondcorp-appconnections.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.44.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-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/AppConnectionsServiceStubSettings.java b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/AppConnectionsServiceStubSettings.java index 31697f5c7659..3abb66c466ef 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/AppConnectionsServiceStubSettings.java +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/AppConnectionsServiceStubSettings.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; @@ -444,6 +445,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "beyondcorp.googleapis.com:443"; } diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index 49c37156ab02..3507f34d7a83 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/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.cloud/google-cloud-beyondcorp-appconnectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.44.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-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/AppConnectorsServiceStubSettings.java b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/AppConnectorsServiceStubSettings.java index 37d543041685..efad5d6930c3 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/AppConnectorsServiceStubSettings.java +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/AppConnectorsServiceStubSettings.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; @@ -369,6 +370,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "beyondcorp.googleapis.com:443"; } diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index 45d2a041543e..40aec03c3f1c 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/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.cloud/google-cloud-beyondcorp-appgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.44.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-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/AppGatewaysServiceStubSettings.java b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/AppGatewaysServiceStubSettings.java index 160b4bbc7342..857d33c0acd1 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/AppGatewaysServiceStubSettings.java +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/AppGatewaysServiceStubSettings.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; @@ -328,6 +329,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "beyondcorp.googleapis.com:443"; } diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index 64a691fbbbba..5b3c60661b1a 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/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.cloud/google-cloud-beyondcorp-clientconnectorservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.44.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-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/ClientConnectorServicesServiceStubSettings.java b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/ClientConnectorServicesServiceStubSettings.java index 0e4300413e4f..21ebf6d5e182 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/ClientConnectorServicesServiceStubSettings.java +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/ClientConnectorServicesServiceStubSettings.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; @@ -392,6 +393,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "beyondcorp.googleapis.com:443"; } diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index 4a0e521a9951..9736b593d908 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/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.cloud/google-cloud-beyondcorp-clientgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.44.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-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/ClientGatewaysServiceStubSettings.java b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/ClientGatewaysServiceStubSettings.java index 6edf1cecafa4..b32163a999a9 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/ClientGatewaysServiceStubSettings.java +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/ClientGatewaysServiceStubSettings.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; @@ -338,6 +339,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "beyondcorp.googleapis.com:443"; } diff --git a/java-biglake/README.md b/java-biglake/README.md index 199c0814dc9a..60574a96c5d2 100644 --- a/java-biglake/README.md +++ b/java-biglake/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.cloud/google-cloud-biglake.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.34.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-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/MetastoreServiceStubSettings.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/MetastoreServiceStubSettings.java index 285e1f556a01..7a20515d92dc 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/MetastoreServiceStubSettings.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/MetastoreServiceStubSettings.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; @@ -407,6 +408,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "biglake.googleapis.com:443"; } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/MetastoreServiceStubSettings.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/MetastoreServiceStubSettings.java index 811f72022a7d..622102891272 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/MetastoreServiceStubSettings.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/MetastoreServiceStubSettings.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; @@ -495,6 +496,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "biglake.googleapis.com:443"; } diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index f5c139b26482..15ed140ef60e 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/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.cloud/google-cloud-bigquery-data-exchange.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.41.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-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java index ca7e05d8f8bf..6a476f122c66 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.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; @@ -516,6 +517,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "analyticshub.googleapis.com:443"; } diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index da2e385a54b0..8e6e8c37745a 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/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-bigqueryconnection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.48.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-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java index 7638fbd9139f..f52fa79818b4 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -200,6 +201,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "bigqueryconnection.googleapis.com:443"; } diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java index a26a52cf118b..32d3a6fbb85b 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.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; @@ -252,6 +253,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "bigqueryconnection.googleapis.com:443"; } diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index 46add67c22d3..3ffc2f3e5ad8 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/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.cloud/google-cloud-bigquerydatapolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.43.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-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/DataPolicyServiceStubSettings.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/DataPolicyServiceStubSettings.java index 1ac0b75799f0..6b6a20e5c50f 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/DataPolicyServiceStubSettings.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/DataPolicyServiceStubSettings.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; @@ -261,6 +262,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "bigquerydatapolicy.googleapis.com:443"; } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/DataPolicyServiceStubSettings.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/DataPolicyServiceStubSettings.java index 8f3565aaf820..f868580951ca 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/DataPolicyServiceStubSettings.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/DataPolicyServiceStubSettings.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; @@ -255,6 +256,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "bigquerydatapolicy.googleapis.com:443"; } diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index 2b0d8e4d3b57..50b791cad5c7 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/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-bigquerydatatransfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.46.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-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java index d58a2a62a279..d6caa6ba426a 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.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; @@ -593,6 +594,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "bigquerydatatransfer.googleapis.com:443"; } diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index 1ca419ef6e87..88c4f5444458 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/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.cloud/google-cloud-bigquerymigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.49.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-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java index 1a3c12d5e62f..4b7267e7adcf 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/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; @@ -340,6 +341,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "bigquerymigration.googleapis.com:443"; } diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java index e8612ff2d694..af70cf0bfb85 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/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; @@ -341,6 +342,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "bigquerymigration.googleapis.com:443"; } diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStubSettings.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStubSettings.java index 9ff426557b68..1d8043803e6e 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStubSettings.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -127,6 +128,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "bigquerymigration.googleapis.com:443"; } diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2/reflect-config.json b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2/reflect-config.json index 0410fbc59510..01d193826a09 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2/reflect-config.json +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2/reflect-config.json @@ -656,6 +656,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.migration.v2.DB2Dialect", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.DB2Dialect$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest", "queryAllDeclaredConstructors": true, @@ -728,6 +746,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.migration.v2.GcsReportLogMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.GcsReportLogMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest", "queryAllDeclaredConstructors": true, @@ -764,6 +800,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.migration.v2.GreenplumDialect", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.GreenplumDialect$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.migration.v2.HiveQLDialect", "queryAllDeclaredConstructors": true, @@ -854,6 +908,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.migration.v2.Literal", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.Literal$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.migration.v2.MigrationSubtask", "queryAllDeclaredConstructors": true, @@ -908,6 +980,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.migration.v2.MigrationTaskResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.MigrationTaskResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.migration.v2.MigrationWorkflow", "queryAllDeclaredConstructors": true, @@ -1178,6 +1268,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.migration.v2.SQLiteDialect", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.SQLiteDialect$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.migration.v2.SnowflakeDialect", "queryAllDeclaredConstructors": true, @@ -1214,6 +1322,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.migration.v2.SourceEnvironment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.SourceEnvironment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.SourceSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.SourceSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.SourceTargetMapping", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.SourceTargetMapping$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.migration.v2.SparkSQLDialect", "queryAllDeclaredConstructors": true, @@ -1250,6 +1412,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.migration.v2.TargetSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.TargetSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.migration.v2.TeradataDialect", "queryAllDeclaredConstructors": true, @@ -1331,6 +1511,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.migration.v2.TranslationDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.TranslationDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.TranslationReportRecord", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.TranslationReportRecord$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.TranslationReportRecord$Severity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.TranslationTaskResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.migration.v2.TranslationTaskResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.migration.v2.TypedValue", "queryAllDeclaredConstructors": true, diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DB2Dialect.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DB2Dialect.java new file mode 100644 index 000000000000..c59bda0c1974 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DB2Dialect.java @@ -0,0 +1,432 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
          + * The dialect definition for DB2.
          + * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.DB2Dialect} + */ +public final class DB2Dialect extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.DB2Dialect) + DB2DialectOrBuilder { + private static final long serialVersionUID = 0L; + // Use DB2Dialect.newBuilder() to construct. + private DB2Dialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DB2Dialect() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DB2Dialect(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_DB2Dialect_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_DB2Dialect_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.DB2Dialect.class, + com.google.cloud.bigquery.migration.v2.DB2Dialect.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.migration.v2.DB2Dialect)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.DB2Dialect other = + (com.google.cloud.bigquery.migration.v2.DB2Dialect) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.migration.v2.DB2Dialect parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.DB2Dialect parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.DB2Dialect parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.DB2Dialect parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.DB2Dialect parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.DB2Dialect parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.DB2Dialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.DB2Dialect parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.DB2Dialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.DB2Dialect parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.DB2Dialect parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.DB2Dialect parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.DB2Dialect prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * The dialect definition for DB2.
          +   * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.DB2Dialect} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.DB2Dialect) + com.google.cloud.bigquery.migration.v2.DB2DialectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_DB2Dialect_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_DB2Dialect_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.DB2Dialect.class, + com.google.cloud.bigquery.migration.v2.DB2Dialect.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.DB2Dialect.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_DB2Dialect_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.DB2Dialect getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.DB2Dialect.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.DB2Dialect build() { + com.google.cloud.bigquery.migration.v2.DB2Dialect result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.DB2Dialect buildPartial() { + com.google.cloud.bigquery.migration.v2.DB2Dialect result = + new com.google.cloud.bigquery.migration.v2.DB2Dialect(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.migration.v2.DB2Dialect) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.DB2Dialect) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.DB2Dialect other) { + if (other == com.google.cloud.bigquery.migration.v2.DB2Dialect.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.DB2Dialect) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.DB2Dialect) + private static final com.google.cloud.bigquery.migration.v2.DB2Dialect DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.DB2Dialect(); + } + + public static com.google.cloud.bigquery.migration.v2.DB2Dialect getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DB2Dialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.DB2Dialect getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DB2DialectOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DB2DialectOrBuilder.java new file mode 100644 index 000000000000..ddfde7c39bf3 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DB2DialectOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public interface DB2DialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.DB2Dialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java index a73de2d7ddb7..4c9f035756e0 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java @@ -84,6 +84,9 @@ public enum DialectValueCase POSTGRESQL_DIALECT(12), PRESTO_DIALECT(13), MYSQL_DIALECT(14), + DB2_DIALECT(15), + SQLITE_DIALECT(16), + GREENPLUM_DIALECT(17), DIALECTVALUE_NOT_SET(0); private final int value; @@ -130,6 +133,12 @@ public static DialectValueCase forNumber(int value) { return PRESTO_DIALECT; case 14: return MYSQL_DIALECT; + case 15: + return DB2_DIALECT; + case 16: + return SQLITE_DIALECT; + case 17: + return GREENPLUM_DIALECT; case 0: return DIALECTVALUE_NOT_SET; default: @@ -870,6 +879,160 @@ public com.google.cloud.bigquery.migration.v2.MySQLDialectOrBuilder getMysqlDial return com.google.cloud.bigquery.migration.v2.MySQLDialect.getDefaultInstance(); } + public static final int DB2_DIALECT_FIELD_NUMBER = 15; + /** + * + * + *
          +   * DB2 dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + * + * @return Whether the db2Dialect field is set. + */ + @java.lang.Override + public boolean hasDb2Dialect() { + return dialectValueCase_ == 15; + } + /** + * + * + *
          +   * DB2 dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + * + * @return The db2Dialect. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.DB2Dialect getDb2Dialect() { + if (dialectValueCase_ == 15) { + return (com.google.cloud.bigquery.migration.v2.DB2Dialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.DB2Dialect.getDefaultInstance(); + } + /** + * + * + *
          +   * DB2 dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.DB2DialectOrBuilder getDb2DialectOrBuilder() { + if (dialectValueCase_ == 15) { + return (com.google.cloud.bigquery.migration.v2.DB2Dialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.DB2Dialect.getDefaultInstance(); + } + + public static final int SQLITE_DIALECT_FIELD_NUMBER = 16; + /** + * + * + *
          +   * SQLite dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + * + * @return Whether the sqliteDialect field is set. + */ + @java.lang.Override + public boolean hasSqliteDialect() { + return dialectValueCase_ == 16; + } + /** + * + * + *
          +   * SQLite dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + * + * @return The sqliteDialect. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLiteDialect getSqliteDialect() { + if (dialectValueCase_ == 16) { + return (com.google.cloud.bigquery.migration.v2.SQLiteDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.SQLiteDialect.getDefaultInstance(); + } + /** + * + * + *
          +   * SQLite dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLiteDialectOrBuilder getSqliteDialectOrBuilder() { + if (dialectValueCase_ == 16) { + return (com.google.cloud.bigquery.migration.v2.SQLiteDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.SQLiteDialect.getDefaultInstance(); + } + + public static final int GREENPLUM_DIALECT_FIELD_NUMBER = 17; + /** + * + * + *
          +   * Greenplum dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + * + * @return Whether the greenplumDialect field is set. + */ + @java.lang.Override + public boolean hasGreenplumDialect() { + return dialectValueCase_ == 17; + } + /** + * + * + *
          +   * Greenplum dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + * + * @return The greenplumDialect. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.GreenplumDialect getGreenplumDialect() { + if (dialectValueCase_ == 17) { + return (com.google.cloud.bigquery.migration.v2.GreenplumDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.GreenplumDialect.getDefaultInstance(); + } + /** + * + * + *
          +   * Greenplum dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.GreenplumDialectOrBuilder + getGreenplumDialectOrBuilder() { + if (dialectValueCase_ == 17) { + return (com.google.cloud.bigquery.migration.v2.GreenplumDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.GreenplumDialect.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -935,6 +1098,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dialectValueCase_ == 14) { output.writeMessage(14, (com.google.cloud.bigquery.migration.v2.MySQLDialect) dialectValue_); } + if (dialectValueCase_ == 15) { + output.writeMessage(15, (com.google.cloud.bigquery.migration.v2.DB2Dialect) dialectValue_); + } + if (dialectValueCase_ == 16) { + output.writeMessage(16, (com.google.cloud.bigquery.migration.v2.SQLiteDialect) dialectValue_); + } + if (dialectValueCase_ == 17) { + output.writeMessage( + 17, (com.google.cloud.bigquery.migration.v2.GreenplumDialect) dialectValue_); + } getUnknownFields().writeTo(output); } @@ -1014,6 +1187,21 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 14, (com.google.cloud.bigquery.migration.v2.MySQLDialect) dialectValue_); } + if (dialectValueCase_ == 15) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, (com.google.cloud.bigquery.migration.v2.DB2Dialect) dialectValue_); + } + if (dialectValueCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.cloud.bigquery.migration.v2.SQLiteDialect) dialectValue_); + } + if (dialectValueCase_ == 17) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, (com.google.cloud.bigquery.migration.v2.GreenplumDialect) dialectValue_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1074,6 +1262,15 @@ public boolean equals(final java.lang.Object obj) { case 14: if (!getMysqlDialect().equals(other.getMysqlDialect())) return false; break; + case 15: + if (!getDb2Dialect().equals(other.getDb2Dialect())) return false; + break; + case 16: + if (!getSqliteDialect().equals(other.getSqliteDialect())) return false; + break; + case 17: + if (!getGreenplumDialect().equals(other.getGreenplumDialect())) return false; + break; case 0: default: } @@ -1145,6 +1342,18 @@ public int hashCode() { hash = (37 * hash) + MYSQL_DIALECT_FIELD_NUMBER; hash = (53 * hash) + getMysqlDialect().hashCode(); break; + case 15: + hash = (37 * hash) + DB2_DIALECT_FIELD_NUMBER; + hash = (53 * hash) + getDb2Dialect().hashCode(); + break; + case 16: + hash = (37 * hash) + SQLITE_DIALECT_FIELD_NUMBER; + hash = (53 * hash) + getSqliteDialect().hashCode(); + break; + case 17: + hash = (37 * hash) + GREENPLUM_DIALECT_FIELD_NUMBER; + hash = (53 * hash) + getGreenplumDialect().hashCode(); + break; case 0: default: } @@ -1329,6 +1538,15 @@ public Builder clear() { if (mysqlDialectBuilder_ != null) { mysqlDialectBuilder_.clear(); } + if (db2DialectBuilder_ != null) { + db2DialectBuilder_.clear(); + } + if (sqliteDialectBuilder_ != null) { + sqliteDialectBuilder_.clear(); + } + if (greenplumDialectBuilder_ != null) { + greenplumDialectBuilder_.clear(); + } dialectValueCase_ = 0; dialectValue_ = null; return this; @@ -1415,6 +1633,15 @@ private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2.Dialect r if (dialectValueCase_ == 14 && mysqlDialectBuilder_ != null) { result.dialectValue_ = mysqlDialectBuilder_.build(); } + if (dialectValueCase_ == 15 && db2DialectBuilder_ != null) { + result.dialectValue_ = db2DialectBuilder_.build(); + } + if (dialectValueCase_ == 16 && sqliteDialectBuilder_ != null) { + result.dialectValue_ = sqliteDialectBuilder_.build(); + } + if (dialectValueCase_ == 17 && greenplumDialectBuilder_ != null) { + result.dialectValue_ = greenplumDialectBuilder_.build(); + } } @java.lang.Override @@ -1533,6 +1760,21 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.Dialect other) { mergeMysqlDialect(other.getMysqlDialect()); break; } + case DB2_DIALECT: + { + mergeDb2Dialect(other.getDb2Dialect()); + break; + } + case SQLITE_DIALECT: + { + mergeSqliteDialect(other.getSqliteDialect()); + break; + } + case GREENPLUM_DIALECT: + { + mergeGreenplumDialect(other.getGreenplumDialect()); + break; + } case DIALECTVALUE_NOT_SET: { break; @@ -1652,6 +1894,25 @@ public Builder mergeFrom( dialectValueCase_ = 14; break; } // case 114 + case 122: + { + input.readMessage(getDb2DialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 15; + break; + } // case 122 + case 130: + { + input.readMessage(getSqliteDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 16; + break; + } // case 130 + case 138: + { + input.readMessage( + getGreenplumDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 17; + break; + } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4686,6 +4947,642 @@ public com.google.cloud.bigquery.migration.v2.MySQLDialectOrBuilder getMysqlDial return mysqlDialectBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.DB2Dialect, + com.google.cloud.bigquery.migration.v2.DB2Dialect.Builder, + com.google.cloud.bigquery.migration.v2.DB2DialectOrBuilder> + db2DialectBuilder_; + /** + * + * + *
          +     * DB2 dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + * + * @return Whether the db2Dialect field is set. + */ + @java.lang.Override + public boolean hasDb2Dialect() { + return dialectValueCase_ == 15; + } + /** + * + * + *
          +     * DB2 dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + * + * @return The db2Dialect. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.DB2Dialect getDb2Dialect() { + if (db2DialectBuilder_ == null) { + if (dialectValueCase_ == 15) { + return (com.google.cloud.bigquery.migration.v2.DB2Dialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.DB2Dialect.getDefaultInstance(); + } else { + if (dialectValueCase_ == 15) { + return db2DialectBuilder_.getMessage(); + } + return com.google.cloud.bigquery.migration.v2.DB2Dialect.getDefaultInstance(); + } + } + /** + * + * + *
          +     * DB2 dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + */ + public Builder setDb2Dialect(com.google.cloud.bigquery.migration.v2.DB2Dialect value) { + if (db2DialectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dialectValue_ = value; + onChanged(); + } else { + db2DialectBuilder_.setMessage(value); + } + dialectValueCase_ = 15; + return this; + } + /** + * + * + *
          +     * DB2 dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + */ + public Builder setDb2Dialect( + com.google.cloud.bigquery.migration.v2.DB2Dialect.Builder builderForValue) { + if (db2DialectBuilder_ == null) { + dialectValue_ = builderForValue.build(); + onChanged(); + } else { + db2DialectBuilder_.setMessage(builderForValue.build()); + } + dialectValueCase_ = 15; + return this; + } + /** + * + * + *
          +     * DB2 dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + */ + public Builder mergeDb2Dialect(com.google.cloud.bigquery.migration.v2.DB2Dialect value) { + if (db2DialectBuilder_ == null) { + if (dialectValueCase_ == 15 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.DB2Dialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.DB2Dialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.DB2Dialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); + } else { + dialectValue_ = value; + } + onChanged(); + } else { + if (dialectValueCase_ == 15) { + db2DialectBuilder_.mergeFrom(value); + } else { + db2DialectBuilder_.setMessage(value); + } + } + dialectValueCase_ = 15; + return this; + } + /** + * + * + *
          +     * DB2 dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + */ + public Builder clearDb2Dialect() { + if (db2DialectBuilder_ == null) { + if (dialectValueCase_ == 15) { + dialectValueCase_ = 0; + dialectValue_ = null; + onChanged(); + } + } else { + if (dialectValueCase_ == 15) { + dialectValueCase_ = 0; + dialectValue_ = null; + } + db2DialectBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * DB2 dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + */ + public com.google.cloud.bigquery.migration.v2.DB2Dialect.Builder getDb2DialectBuilder() { + return getDb2DialectFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * DB2 dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.DB2DialectOrBuilder getDb2DialectOrBuilder() { + if ((dialectValueCase_ == 15) && (db2DialectBuilder_ != null)) { + return db2DialectBuilder_.getMessageOrBuilder(); + } else { + if (dialectValueCase_ == 15) { + return (com.google.cloud.bigquery.migration.v2.DB2Dialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.DB2Dialect.getDefaultInstance(); + } + } + /** + * + * + *
          +     * DB2 dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.DB2Dialect, + com.google.cloud.bigquery.migration.v2.DB2Dialect.Builder, + com.google.cloud.bigquery.migration.v2.DB2DialectOrBuilder> + getDb2DialectFieldBuilder() { + if (db2DialectBuilder_ == null) { + if (!(dialectValueCase_ == 15)) { + dialectValue_ = com.google.cloud.bigquery.migration.v2.DB2Dialect.getDefaultInstance(); + } + db2DialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.DB2Dialect, + com.google.cloud.bigquery.migration.v2.DB2Dialect.Builder, + com.google.cloud.bigquery.migration.v2.DB2DialectOrBuilder>( + (com.google.cloud.bigquery.migration.v2.DB2Dialect) dialectValue_, + getParentForChildren(), + isClean()); + dialectValue_ = null; + } + dialectValueCase_ = 15; + onChanged(); + return db2DialectBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SQLiteDialect, + com.google.cloud.bigquery.migration.v2.SQLiteDialect.Builder, + com.google.cloud.bigquery.migration.v2.SQLiteDialectOrBuilder> + sqliteDialectBuilder_; + /** + * + * + *
          +     * SQLite dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + * + * @return Whether the sqliteDialect field is set. + */ + @java.lang.Override + public boolean hasSqliteDialect() { + return dialectValueCase_ == 16; + } + /** + * + * + *
          +     * SQLite dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + * + * @return The sqliteDialect. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLiteDialect getSqliteDialect() { + if (sqliteDialectBuilder_ == null) { + if (dialectValueCase_ == 16) { + return (com.google.cloud.bigquery.migration.v2.SQLiteDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.SQLiteDialect.getDefaultInstance(); + } else { + if (dialectValueCase_ == 16) { + return sqliteDialectBuilder_.getMessage(); + } + return com.google.cloud.bigquery.migration.v2.SQLiteDialect.getDefaultInstance(); + } + } + /** + * + * + *
          +     * SQLite dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + */ + public Builder setSqliteDialect(com.google.cloud.bigquery.migration.v2.SQLiteDialect value) { + if (sqliteDialectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dialectValue_ = value; + onChanged(); + } else { + sqliteDialectBuilder_.setMessage(value); + } + dialectValueCase_ = 16; + return this; + } + /** + * + * + *
          +     * SQLite dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + */ + public Builder setSqliteDialect( + com.google.cloud.bigquery.migration.v2.SQLiteDialect.Builder builderForValue) { + if (sqliteDialectBuilder_ == null) { + dialectValue_ = builderForValue.build(); + onChanged(); + } else { + sqliteDialectBuilder_.setMessage(builderForValue.build()); + } + dialectValueCase_ = 16; + return this; + } + /** + * + * + *
          +     * SQLite dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + */ + public Builder mergeSqliteDialect(com.google.cloud.bigquery.migration.v2.SQLiteDialect value) { + if (sqliteDialectBuilder_ == null) { + if (dialectValueCase_ == 16 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.SQLiteDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.SQLiteDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.SQLiteDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); + } else { + dialectValue_ = value; + } + onChanged(); + } else { + if (dialectValueCase_ == 16) { + sqliteDialectBuilder_.mergeFrom(value); + } else { + sqliteDialectBuilder_.setMessage(value); + } + } + dialectValueCase_ = 16; + return this; + } + /** + * + * + *
          +     * SQLite dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + */ + public Builder clearSqliteDialect() { + if (sqliteDialectBuilder_ == null) { + if (dialectValueCase_ == 16) { + dialectValueCase_ = 0; + dialectValue_ = null; + onChanged(); + } + } else { + if (dialectValueCase_ == 16) { + dialectValueCase_ = 0; + dialectValue_ = null; + } + sqliteDialectBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * SQLite dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + */ + public com.google.cloud.bigquery.migration.v2.SQLiteDialect.Builder getSqliteDialectBuilder() { + return getSqliteDialectFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * SQLite dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLiteDialectOrBuilder + getSqliteDialectOrBuilder() { + if ((dialectValueCase_ == 16) && (sqliteDialectBuilder_ != null)) { + return sqliteDialectBuilder_.getMessageOrBuilder(); + } else { + if (dialectValueCase_ == 16) { + return (com.google.cloud.bigquery.migration.v2.SQLiteDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.SQLiteDialect.getDefaultInstance(); + } + } + /** + * + * + *
          +     * SQLite dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SQLiteDialect, + com.google.cloud.bigquery.migration.v2.SQLiteDialect.Builder, + com.google.cloud.bigquery.migration.v2.SQLiteDialectOrBuilder> + getSqliteDialectFieldBuilder() { + if (sqliteDialectBuilder_ == null) { + if (!(dialectValueCase_ == 16)) { + dialectValue_ = com.google.cloud.bigquery.migration.v2.SQLiteDialect.getDefaultInstance(); + } + sqliteDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SQLiteDialect, + com.google.cloud.bigquery.migration.v2.SQLiteDialect.Builder, + com.google.cloud.bigquery.migration.v2.SQLiteDialectOrBuilder>( + (com.google.cloud.bigquery.migration.v2.SQLiteDialect) dialectValue_, + getParentForChildren(), + isClean()); + dialectValue_ = null; + } + dialectValueCase_ = 16; + onChanged(); + return sqliteDialectBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.GreenplumDialect, + com.google.cloud.bigquery.migration.v2.GreenplumDialect.Builder, + com.google.cloud.bigquery.migration.v2.GreenplumDialectOrBuilder> + greenplumDialectBuilder_; + /** + * + * + *
          +     * Greenplum dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + * + * @return Whether the greenplumDialect field is set. + */ + @java.lang.Override + public boolean hasGreenplumDialect() { + return dialectValueCase_ == 17; + } + /** + * + * + *
          +     * Greenplum dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + * + * @return The greenplumDialect. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.GreenplumDialect getGreenplumDialect() { + if (greenplumDialectBuilder_ == null) { + if (dialectValueCase_ == 17) { + return (com.google.cloud.bigquery.migration.v2.GreenplumDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.GreenplumDialect.getDefaultInstance(); + } else { + if (dialectValueCase_ == 17) { + return greenplumDialectBuilder_.getMessage(); + } + return com.google.cloud.bigquery.migration.v2.GreenplumDialect.getDefaultInstance(); + } + } + /** + * + * + *
          +     * Greenplum dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + */ + public Builder setGreenplumDialect( + com.google.cloud.bigquery.migration.v2.GreenplumDialect value) { + if (greenplumDialectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dialectValue_ = value; + onChanged(); + } else { + greenplumDialectBuilder_.setMessage(value); + } + dialectValueCase_ = 17; + return this; + } + /** + * + * + *
          +     * Greenplum dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + */ + public Builder setGreenplumDialect( + com.google.cloud.bigquery.migration.v2.GreenplumDialect.Builder builderForValue) { + if (greenplumDialectBuilder_ == null) { + dialectValue_ = builderForValue.build(); + onChanged(); + } else { + greenplumDialectBuilder_.setMessage(builderForValue.build()); + } + dialectValueCase_ = 17; + return this; + } + /** + * + * + *
          +     * Greenplum dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + */ + public Builder mergeGreenplumDialect( + com.google.cloud.bigquery.migration.v2.GreenplumDialect value) { + if (greenplumDialectBuilder_ == null) { + if (dialectValueCase_ == 17 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.GreenplumDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.GreenplumDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.GreenplumDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); + } else { + dialectValue_ = value; + } + onChanged(); + } else { + if (dialectValueCase_ == 17) { + greenplumDialectBuilder_.mergeFrom(value); + } else { + greenplumDialectBuilder_.setMessage(value); + } + } + dialectValueCase_ = 17; + return this; + } + /** + * + * + *
          +     * Greenplum dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + */ + public Builder clearGreenplumDialect() { + if (greenplumDialectBuilder_ == null) { + if (dialectValueCase_ == 17) { + dialectValueCase_ = 0; + dialectValue_ = null; + onChanged(); + } + } else { + if (dialectValueCase_ == 17) { + dialectValueCase_ = 0; + dialectValue_ = null; + } + greenplumDialectBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Greenplum dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + */ + public com.google.cloud.bigquery.migration.v2.GreenplumDialect.Builder + getGreenplumDialectBuilder() { + return getGreenplumDialectFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Greenplum dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.GreenplumDialectOrBuilder + getGreenplumDialectOrBuilder() { + if ((dialectValueCase_ == 17) && (greenplumDialectBuilder_ != null)) { + return greenplumDialectBuilder_.getMessageOrBuilder(); + } else { + if (dialectValueCase_ == 17) { + return (com.google.cloud.bigquery.migration.v2.GreenplumDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.GreenplumDialect.getDefaultInstance(); + } + } + /** + * + * + *
          +     * Greenplum dialect
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.GreenplumDialect, + com.google.cloud.bigquery.migration.v2.GreenplumDialect.Builder, + com.google.cloud.bigquery.migration.v2.GreenplumDialectOrBuilder> + getGreenplumDialectFieldBuilder() { + if (greenplumDialectBuilder_ == null) { + if (!(dialectValueCase_ == 17)) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.GreenplumDialect.getDefaultInstance(); + } + greenplumDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.GreenplumDialect, + com.google.cloud.bigquery.migration.v2.GreenplumDialect.Builder, + com.google.cloud.bigquery.migration.v2.GreenplumDialectOrBuilder>( + (com.google.cloud.bigquery.migration.v2.GreenplumDialect) dialectValue_, + getParentForChildren(), + isClean()); + dialectValue_ = null; + } + dialectValueCase_ = 17; + onChanged(); + return greenplumDialectBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java index 9e99e7b8a135..eb2406b489bd 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java @@ -515,5 +515,110 @@ public interface DialectOrBuilder */ com.google.cloud.bigquery.migration.v2.MySQLDialectOrBuilder getMysqlDialectOrBuilder(); + /** + * + * + *
          +   * DB2 dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + * + * @return Whether the db2Dialect field is set. + */ + boolean hasDb2Dialect(); + /** + * + * + *
          +   * DB2 dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + * + * @return The db2Dialect. + */ + com.google.cloud.bigquery.migration.v2.DB2Dialect getDb2Dialect(); + /** + * + * + *
          +   * DB2 dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + */ + com.google.cloud.bigquery.migration.v2.DB2DialectOrBuilder getDb2DialectOrBuilder(); + + /** + * + * + *
          +   * SQLite dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + * + * @return Whether the sqliteDialect field is set. + */ + boolean hasSqliteDialect(); + /** + * + * + *
          +   * SQLite dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + * + * @return The sqliteDialect. + */ + com.google.cloud.bigquery.migration.v2.SQLiteDialect getSqliteDialect(); + /** + * + * + *
          +   * SQLite dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + */ + com.google.cloud.bigquery.migration.v2.SQLiteDialectOrBuilder getSqliteDialectOrBuilder(); + + /** + * + * + *
          +   * Greenplum dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + * + * @return Whether the greenplumDialect field is set. + */ + boolean hasGreenplumDialect(); + /** + * + * + *
          +   * Greenplum dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + * + * @return The greenplumDialect. + */ + com.google.cloud.bigquery.migration.v2.GreenplumDialect getGreenplumDialect(); + /** + * + * + *
          +   * Greenplum dialect
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + */ + com.google.cloud.bigquery.migration.v2.GreenplumDialectOrBuilder getGreenplumDialectOrBuilder(); + com.google.cloud.bigquery.migration.v2.Dialect.DialectValueCase getDialectValueCase(); } diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GcsReportLogMessage.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GcsReportLogMessage.java new file mode 100644 index 000000000000..27de58edb729 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GcsReportLogMessage.java @@ -0,0 +1,2276 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_usability.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
          + * A record in the aggregate CSV report for a migration workflow
          + * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.GcsReportLogMessage} + */ +public final class GcsReportLogMessage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.GcsReportLogMessage) + GcsReportLogMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcsReportLogMessage.newBuilder() to construct. + private GcsReportLogMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcsReportLogMessage() { + severity_ = ""; + category_ = ""; + filePath_ = ""; + filename_ = ""; + message_ = ""; + scriptContext_ = ""; + action_ = ""; + effect_ = ""; + objectName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsReportLogMessage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationUsabilityProto + .internal_static_google_cloud_bigquery_migration_v2_GcsReportLogMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationUsabilityProto + .internal_static_google_cloud_bigquery_migration_v2_GcsReportLogMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.class, + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.Builder.class); + } + + public static final int SEVERITY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object severity_ = ""; + /** + * + * + *
          +   * Severity of the translation record.
          +   * 
          + * + * string severity = 1; + * + * @return The severity. + */ + @java.lang.Override + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } + } + /** + * + * + *
          +   * Severity of the translation record.
          +   * 
          + * + * string severity = 1; + * + * @return The bytes for severity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object category_ = ""; + /** + * + * + *
          +   * Category of the error/warning. Example: SyntaxError
          +   * 
          + * + * string category = 2; + * + * @return The category. + */ + @java.lang.Override + public java.lang.String getCategory() { + java.lang.Object ref = category_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + category_ = s; + return s; + } + } + /** + * + * + *
          +   * Category of the error/warning. Example: SyntaxError
          +   * 
          + * + * string category = 2; + * + * @return The bytes for category. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryBytes() { + java.lang.Object ref = category_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + category_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_PATH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object filePath_ = ""; + /** + * + * + *
          +   * The file path in which the error occurred
          +   * 
          + * + * string file_path = 3; + * + * @return The filePath. + */ + @java.lang.Override + public java.lang.String getFilePath() { + java.lang.Object ref = filePath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filePath_ = s; + return s; + } + } + /** + * + * + *
          +   * The file path in which the error occurred
          +   * 
          + * + * string file_path = 3; + * + * @return The bytes for filePath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilePathBytes() { + java.lang.Object ref = filePath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILENAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filename_ = ""; + /** + * + * + *
          +   * The file name in which the error occurred
          +   * 
          + * + * string filename = 4; + * + * @return The filename. + */ + @java.lang.Override + public java.lang.String getFilename() { + java.lang.Object ref = filename_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filename_ = s; + return s; + } + } + /** + * + * + *
          +   * The file name in which the error occurred
          +   * 
          + * + * string filename = 4; + * + * @return The bytes for filename. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilenameBytes() { + java.lang.Object ref = filename_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_SCRIPT_LINE_FIELD_NUMBER = 5; + private int sourceScriptLine_ = 0; + /** + * + * + *
          +   * Specifies the row from the source text where the error occurred (0 based,
          +   * -1 for messages without line location). Example: 2
          +   * 
          + * + * int32 source_script_line = 5; + * + * @return The sourceScriptLine. + */ + @java.lang.Override + public int getSourceScriptLine() { + return sourceScriptLine_; + } + + public static final int SOURCE_SCRIPT_COLUMN_FIELD_NUMBER = 6; + private int sourceScriptColumn_ = 0; + /** + * + * + *
          +   * Specifies the column from the source texts where the error occurred. (0
          +   * based, -1 for messages without column location) example: 6
          +   * 
          + * + * int32 source_script_column = 6; + * + * @return The sourceScriptColumn. + */ + @java.lang.Override + public int getSourceScriptColumn() { + return sourceScriptColumn_; + } + + public static final int MESSAGE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + /** + * + * + *
          +   * Detailed message of the record.
          +   * 
          + * + * string message = 7; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
          +   * Detailed message of the record.
          +   * 
          + * + * string message = 7; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCRIPT_CONTEXT_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object scriptContext_ = ""; + /** + * + * + *
          +   * The script context (obfuscated) in which the error occurred
          +   * 
          + * + * string script_context = 8; + * + * @return The scriptContext. + */ + @java.lang.Override + public java.lang.String getScriptContext() { + java.lang.Object ref = scriptContext_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scriptContext_ = s; + return s; + } + } + /** + * + * + *
          +   * The script context (obfuscated) in which the error occurred
          +   * 
          + * + * string script_context = 8; + * + * @return The bytes for scriptContext. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScriptContextBytes() { + java.lang.Object ref = scriptContext_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scriptContext_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object action_ = ""; + /** + * + * + *
          +   * Category of the error/warning. Example: SyntaxError
          +   * 
          + * + * string action = 9; + * + * @return The action. + */ + @java.lang.Override + public java.lang.String getAction() { + java.lang.Object ref = action_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + action_ = s; + return s; + } + } + /** + * + * + *
          +   * Category of the error/warning. Example: SyntaxError
          +   * 
          + * + * string action = 9; + * + * @return The bytes for action. + */ + @java.lang.Override + public com.google.protobuf.ByteString getActionBytes() { + java.lang.Object ref = action_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + action_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECT_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object effect_ = ""; + /** + * + * + *
          +   * Effect of the error/warning. Example: COMPATIBILITY
          +   * 
          + * + * string effect = 10; + * + * @return The effect. + */ + @java.lang.Override + public java.lang.String getEffect() { + java.lang.Object ref = effect_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + effect_ = s; + return s; + } + } + /** + * + * + *
          +   * Effect of the error/warning. Example: COMPATIBILITY
          +   * 
          + * + * string effect = 10; + * + * @return The bytes for effect. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEffectBytes() { + java.lang.Object ref = effect_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + effect_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_NAME_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object objectName_ = ""; + /** + * + * + *
          +   * Name of the affected object in the log message.
          +   * 
          + * + * string object_name = 11; + * + * @return The objectName. + */ + @java.lang.Override + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectName_ = s; + return s; + } + } + /** + * + * + *
          +   * Name of the affected object in the log message.
          +   * 
          + * + * string object_name = 11; + * + * @return The bytes for objectName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, category_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filePath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filePath_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filename_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filename_); + } + if (sourceScriptLine_ != 0) { + output.writeInt32(5, sourceScriptLine_); + } + if (sourceScriptColumn_ != 0) { + output.writeInt32(6, sourceScriptColumn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scriptContext_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, scriptContext_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, action_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effect_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, effect_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, objectName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, category_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filePath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filePath_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filename_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filename_); + } + if (sourceScriptLine_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, sourceScriptLine_); + } + if (sourceScriptColumn_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, sourceScriptColumn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scriptContext_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, scriptContext_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, action_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effect_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, effect_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, objectName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.migration.v2.GcsReportLogMessage)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage other = + (com.google.cloud.bigquery.migration.v2.GcsReportLogMessage) obj; + + if (!getSeverity().equals(other.getSeverity())) return false; + if (!getCategory().equals(other.getCategory())) return false; + if (!getFilePath().equals(other.getFilePath())) return false; + if (!getFilename().equals(other.getFilename())) return false; + if (getSourceScriptLine() != other.getSourceScriptLine()) return false; + if (getSourceScriptColumn() != other.getSourceScriptColumn()) return false; + if (!getMessage().equals(other.getMessage())) return false; + if (!getScriptContext().equals(other.getScriptContext())) return false; + if (!getAction().equals(other.getAction())) return false; + if (!getEffect().equals(other.getEffect())) return false; + if (!getObjectName().equals(other.getObjectName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + getSeverity().hashCode(); + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getCategory().hashCode(); + hash = (37 * hash) + FILE_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFilePath().hashCode(); + hash = (37 * hash) + FILENAME_FIELD_NUMBER; + hash = (53 * hash) + getFilename().hashCode(); + hash = (37 * hash) + SOURCE_SCRIPT_LINE_FIELD_NUMBER; + hash = (53 * hash) + getSourceScriptLine(); + hash = (37 * hash) + SOURCE_SCRIPT_COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getSourceScriptColumn(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + SCRIPT_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getScriptContext().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + getAction().hashCode(); + hash = (37 * hash) + EFFECT_FIELD_NUMBER; + hash = (53 * hash) + getEffect().hashCode(); + hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getObjectName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.migration.v2.GcsReportLogMessage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.GcsReportLogMessage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.GcsReportLogMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.GcsReportLogMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.GcsReportLogMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.GcsReportLogMessage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.GcsReportLogMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.GcsReportLogMessage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.GcsReportLogMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.GcsReportLogMessage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.GcsReportLogMessage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.GcsReportLogMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A record in the aggregate CSV report for a migration workflow
          +   * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.GcsReportLogMessage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.GcsReportLogMessage) + com.google.cloud.bigquery.migration.v2.GcsReportLogMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationUsabilityProto + .internal_static_google_cloud_bigquery_migration_v2_GcsReportLogMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationUsabilityProto + .internal_static_google_cloud_bigquery_migration_v2_GcsReportLogMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.class, + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + severity_ = ""; + category_ = ""; + filePath_ = ""; + filename_ = ""; + sourceScriptLine_ = 0; + sourceScriptColumn_ = 0; + message_ = ""; + scriptContext_ = ""; + action_ = ""; + effect_ = ""; + objectName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationUsabilityProto + .internal_static_google_cloud_bigquery_migration_v2_GcsReportLogMessage_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.GcsReportLogMessage getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.GcsReportLogMessage build() { + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.GcsReportLogMessage buildPartial() { + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage result = + new com.google.cloud.bigquery.migration.v2.GcsReportLogMessage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.migration.v2.GcsReportLogMessage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.category_ = category_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filePath_ = filePath_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filename_ = filename_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sourceScriptLine_ = sourceScriptLine_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.sourceScriptColumn_ = sourceScriptColumn_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.scriptContext_ = scriptContext_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.action_ = action_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.effect_ = effect_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.objectName_ = objectName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.migration.v2.GcsReportLogMessage) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.GcsReportLogMessage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.GcsReportLogMessage other) { + if (other == com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.getDefaultInstance()) + return this; + if (!other.getSeverity().isEmpty()) { + severity_ = other.severity_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCategory().isEmpty()) { + category_ = other.category_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getFilePath().isEmpty()) { + filePath_ = other.filePath_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilename().isEmpty()) { + filename_ = other.filename_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getSourceScriptLine() != 0) { + setSourceScriptLine(other.getSourceScriptLine()); + } + if (other.getSourceScriptColumn() != 0) { + setSourceScriptColumn(other.getSourceScriptColumn()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getScriptContext().isEmpty()) { + scriptContext_ = other.scriptContext_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getAction().isEmpty()) { + action_ = other.action_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getEffect().isEmpty()) { + effect_ = other.effect_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getObjectName().isEmpty()) { + objectName_ = other.objectName_; + bitField0_ |= 0x00000400; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + severity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + category_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + filePath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filename_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + sourceScriptLine_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + sourceScriptColumn_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + scriptContext_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + effect_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + objectName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object severity_ = ""; + /** + * + * + *
          +     * Severity of the translation record.
          +     * 
          + * + * string severity = 1; + * + * @return The severity. + */ + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Severity of the translation record.
          +     * 
          + * + * string severity = 1; + * + * @return The bytes for severity. + */ + public com.google.protobuf.ByteString getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Severity of the translation record.
          +     * 
          + * + * string severity = 1; + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + severity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Severity of the translation record.
          +     * 
          + * + * string severity = 1; + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + severity_ = getDefaultInstance().getSeverity(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Severity of the translation record.
          +     * 
          + * + * string severity = 1; + * + * @param value The bytes for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + severity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object category_ = ""; + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string category = 2; + * + * @return The category. + */ + public java.lang.String getCategory() { + java.lang.Object ref = category_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + category_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string category = 2; + * + * @return The bytes for category. + */ + public com.google.protobuf.ByteString getCategoryBytes() { + java.lang.Object ref = category_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + category_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string category = 2; + * + * @param value The category to set. + * @return This builder for chaining. + */ + public Builder setCategory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + category_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string category = 2; + * + * @return This builder for chaining. + */ + public Builder clearCategory() { + category_ = getDefaultInstance().getCategory(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string category = 2; + * + * @param value The bytes for category to set. + * @return This builder for chaining. + */ + public Builder setCategoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + category_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object filePath_ = ""; + /** + * + * + *
          +     * The file path in which the error occurred
          +     * 
          + * + * string file_path = 3; + * + * @return The filePath. + */ + public java.lang.String getFilePath() { + java.lang.Object ref = filePath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filePath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The file path in which the error occurred
          +     * 
          + * + * string file_path = 3; + * + * @return The bytes for filePath. + */ + public com.google.protobuf.ByteString getFilePathBytes() { + java.lang.Object ref = filePath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The file path in which the error occurred
          +     * 
          + * + * string file_path = 3; + * + * @param value The filePath to set. + * @return This builder for chaining. + */ + public Builder setFilePath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filePath_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * The file path in which the error occurred
          +     * 
          + * + * string file_path = 3; + * + * @return This builder for chaining. + */ + public Builder clearFilePath() { + filePath_ = getDefaultInstance().getFilePath(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * The file path in which the error occurred
          +     * 
          + * + * string file_path = 3; + * + * @param value The bytes for filePath to set. + * @return This builder for chaining. + */ + public Builder setFilePathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filePath_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filename_ = ""; + /** + * + * + *
          +     * The file name in which the error occurred
          +     * 
          + * + * string filename = 4; + * + * @return The filename. + */ + public java.lang.String getFilename() { + java.lang.Object ref = filename_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filename_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The file name in which the error occurred
          +     * 
          + * + * string filename = 4; + * + * @return The bytes for filename. + */ + public com.google.protobuf.ByteString getFilenameBytes() { + java.lang.Object ref = filename_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The file name in which the error occurred
          +     * 
          + * + * string filename = 4; + * + * @param value The filename to set. + * @return This builder for chaining. + */ + public Builder setFilename(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filename_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * The file name in which the error occurred
          +     * 
          + * + * string filename = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilename() { + filename_ = getDefaultInstance().getFilename(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * The file name in which the error occurred
          +     * 
          + * + * string filename = 4; + * + * @param value The bytes for filename to set. + * @return This builder for chaining. + */ + public Builder setFilenameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filename_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int sourceScriptLine_; + /** + * + * + *
          +     * Specifies the row from the source text where the error occurred (0 based,
          +     * -1 for messages without line location). Example: 2
          +     * 
          + * + * int32 source_script_line = 5; + * + * @return The sourceScriptLine. + */ + @java.lang.Override + public int getSourceScriptLine() { + return sourceScriptLine_; + } + /** + * + * + *
          +     * Specifies the row from the source text where the error occurred (0 based,
          +     * -1 for messages without line location). Example: 2
          +     * 
          + * + * int32 source_script_line = 5; + * + * @param value The sourceScriptLine to set. + * @return This builder for chaining. + */ + public Builder setSourceScriptLine(int value) { + + sourceScriptLine_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Specifies the row from the source text where the error occurred (0 based,
          +     * -1 for messages without line location). Example: 2
          +     * 
          + * + * int32 source_script_line = 5; + * + * @return This builder for chaining. + */ + public Builder clearSourceScriptLine() { + bitField0_ = (bitField0_ & ~0x00000010); + sourceScriptLine_ = 0; + onChanged(); + return this; + } + + private int sourceScriptColumn_; + /** + * + * + *
          +     * Specifies the column from the source texts where the error occurred. (0
          +     * based, -1 for messages without column location) example: 6
          +     * 
          + * + * int32 source_script_column = 6; + * + * @return The sourceScriptColumn. + */ + @java.lang.Override + public int getSourceScriptColumn() { + return sourceScriptColumn_; + } + /** + * + * + *
          +     * Specifies the column from the source texts where the error occurred. (0
          +     * based, -1 for messages without column location) example: 6
          +     * 
          + * + * int32 source_script_column = 6; + * + * @param value The sourceScriptColumn to set. + * @return This builder for chaining. + */ + public Builder setSourceScriptColumn(int value) { + + sourceScriptColumn_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * Specifies the column from the source texts where the error occurred. (0
          +     * based, -1 for messages without column location) example: 6
          +     * 
          + * + * int32 source_script_column = 6; + * + * @return This builder for chaining. + */ + public Builder clearSourceScriptColumn() { + bitField0_ = (bitField0_ & ~0x00000020); + sourceScriptColumn_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * + * + *
          +     * Detailed message of the record.
          +     * 
          + * + * string message = 7; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Detailed message of the record.
          +     * 
          + * + * string message = 7; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Detailed message of the record.
          +     * 
          + * + * string message = 7; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Detailed message of the record.
          +     * 
          + * + * string message = 7; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
          +     * Detailed message of the record.
          +     * 
          + * + * string message = 7; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object scriptContext_ = ""; + /** + * + * + *
          +     * The script context (obfuscated) in which the error occurred
          +     * 
          + * + * string script_context = 8; + * + * @return The scriptContext. + */ + public java.lang.String getScriptContext() { + java.lang.Object ref = scriptContext_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scriptContext_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The script context (obfuscated) in which the error occurred
          +     * 
          + * + * string script_context = 8; + * + * @return The bytes for scriptContext. + */ + public com.google.protobuf.ByteString getScriptContextBytes() { + java.lang.Object ref = scriptContext_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scriptContext_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The script context (obfuscated) in which the error occurred
          +     * 
          + * + * string script_context = 8; + * + * @param value The scriptContext to set. + * @return This builder for chaining. + */ + public Builder setScriptContext(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scriptContext_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
          +     * The script context (obfuscated) in which the error occurred
          +     * 
          + * + * string script_context = 8; + * + * @return This builder for chaining. + */ + public Builder clearScriptContext() { + scriptContext_ = getDefaultInstance().getScriptContext(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
          +     * The script context (obfuscated) in which the error occurred
          +     * 
          + * + * string script_context = 8; + * + * @param value The bytes for scriptContext to set. + * @return This builder for chaining. + */ + public Builder setScriptContextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scriptContext_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object action_ = ""; + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string action = 9; + * + * @return The action. + */ + public java.lang.String getAction() { + java.lang.Object ref = action_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + action_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string action = 9; + * + * @return The bytes for action. + */ + public com.google.protobuf.ByteString getActionBytes() { + java.lang.Object ref = action_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + action_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string action = 9; + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string action = 9; + * + * @return This builder for chaining. + */ + public Builder clearAction() { + action_ = getDefaultInstance().getAction(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string action = 9; + * + * @param value The bytes for action to set. + * @return This builder for chaining. + */ + public Builder setActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + action_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object effect_ = ""; + /** + * + * + *
          +     * Effect of the error/warning. Example: COMPATIBILITY
          +     * 
          + * + * string effect = 10; + * + * @return The effect. + */ + public java.lang.String getEffect() { + java.lang.Object ref = effect_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + effect_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Effect of the error/warning. Example: COMPATIBILITY
          +     * 
          + * + * string effect = 10; + * + * @return The bytes for effect. + */ + public com.google.protobuf.ByteString getEffectBytes() { + java.lang.Object ref = effect_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + effect_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Effect of the error/warning. Example: COMPATIBILITY
          +     * 
          + * + * string effect = 10; + * + * @param value The effect to set. + * @return This builder for chaining. + */ + public Builder setEffect(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + effect_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
          +     * Effect of the error/warning. Example: COMPATIBILITY
          +     * 
          + * + * string effect = 10; + * + * @return This builder for chaining. + */ + public Builder clearEffect() { + effect_ = getDefaultInstance().getEffect(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
          +     * Effect of the error/warning. Example: COMPATIBILITY
          +     * 
          + * + * string effect = 10; + * + * @param value The bytes for effect to set. + * @return This builder for chaining. + */ + public Builder setEffectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + effect_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object objectName_ = ""; + /** + * + * + *
          +     * Name of the affected object in the log message.
          +     * 
          + * + * string object_name = 11; + * + * @return The objectName. + */ + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Name of the affected object in the log message.
          +     * 
          + * + * string object_name = 11; + * + * @return The bytes for objectName. + */ + public com.google.protobuf.ByteString getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Name of the affected object in the log message.
          +     * 
          + * + * string object_name = 11; + * + * @param value The objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + objectName_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
          +     * Name of the affected object in the log message.
          +     * 
          + * + * string object_name = 11; + * + * @return This builder for chaining. + */ + public Builder clearObjectName() { + objectName_ = getDefaultInstance().getObjectName(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
          +     * Name of the affected object in the log message.
          +     * 
          + * + * string object_name = 11; + * + * @param value The bytes for objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + objectName_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.GcsReportLogMessage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.GcsReportLogMessage) + private static final com.google.cloud.bigquery.migration.v2.GcsReportLogMessage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.GcsReportLogMessage(); + } + + public static com.google.cloud.bigquery.migration.v2.GcsReportLogMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsReportLogMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.GcsReportLogMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GcsReportLogMessageOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GcsReportLogMessageOrBuilder.java new file mode 100644 index 000000000000..6bde58884d54 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GcsReportLogMessageOrBuilder.java @@ -0,0 +1,279 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_usability.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public interface GcsReportLogMessageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.GcsReportLogMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Severity of the translation record.
          +   * 
          + * + * string severity = 1; + * + * @return The severity. + */ + java.lang.String getSeverity(); + /** + * + * + *
          +   * Severity of the translation record.
          +   * 
          + * + * string severity = 1; + * + * @return The bytes for severity. + */ + com.google.protobuf.ByteString getSeverityBytes(); + + /** + * + * + *
          +   * Category of the error/warning. Example: SyntaxError
          +   * 
          + * + * string category = 2; + * + * @return The category. + */ + java.lang.String getCategory(); + /** + * + * + *
          +   * Category of the error/warning. Example: SyntaxError
          +   * 
          + * + * string category = 2; + * + * @return The bytes for category. + */ + com.google.protobuf.ByteString getCategoryBytes(); + + /** + * + * + *
          +   * The file path in which the error occurred
          +   * 
          + * + * string file_path = 3; + * + * @return The filePath. + */ + java.lang.String getFilePath(); + /** + * + * + *
          +   * The file path in which the error occurred
          +   * 
          + * + * string file_path = 3; + * + * @return The bytes for filePath. + */ + com.google.protobuf.ByteString getFilePathBytes(); + + /** + * + * + *
          +   * The file name in which the error occurred
          +   * 
          + * + * string filename = 4; + * + * @return The filename. + */ + java.lang.String getFilename(); + /** + * + * + *
          +   * The file name in which the error occurred
          +   * 
          + * + * string filename = 4; + * + * @return The bytes for filename. + */ + com.google.protobuf.ByteString getFilenameBytes(); + + /** + * + * + *
          +   * Specifies the row from the source text where the error occurred (0 based,
          +   * -1 for messages without line location). Example: 2
          +   * 
          + * + * int32 source_script_line = 5; + * + * @return The sourceScriptLine. + */ + int getSourceScriptLine(); + + /** + * + * + *
          +   * Specifies the column from the source texts where the error occurred. (0
          +   * based, -1 for messages without column location) example: 6
          +   * 
          + * + * int32 source_script_column = 6; + * + * @return The sourceScriptColumn. + */ + int getSourceScriptColumn(); + + /** + * + * + *
          +   * Detailed message of the record.
          +   * 
          + * + * string message = 7; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
          +   * Detailed message of the record.
          +   * 
          + * + * string message = 7; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
          +   * The script context (obfuscated) in which the error occurred
          +   * 
          + * + * string script_context = 8; + * + * @return The scriptContext. + */ + java.lang.String getScriptContext(); + /** + * + * + *
          +   * The script context (obfuscated) in which the error occurred
          +   * 
          + * + * string script_context = 8; + * + * @return The bytes for scriptContext. + */ + com.google.protobuf.ByteString getScriptContextBytes(); + + /** + * + * + *
          +   * Category of the error/warning. Example: SyntaxError
          +   * 
          + * + * string action = 9; + * + * @return The action. + */ + java.lang.String getAction(); + /** + * + * + *
          +   * Category of the error/warning. Example: SyntaxError
          +   * 
          + * + * string action = 9; + * + * @return The bytes for action. + */ + com.google.protobuf.ByteString getActionBytes(); + + /** + * + * + *
          +   * Effect of the error/warning. Example: COMPATIBILITY
          +   * 
          + * + * string effect = 10; + * + * @return The effect. + */ + java.lang.String getEffect(); + /** + * + * + *
          +   * Effect of the error/warning. Example: COMPATIBILITY
          +   * 
          + * + * string effect = 10; + * + * @return The bytes for effect. + */ + com.google.protobuf.ByteString getEffectBytes(); + + /** + * + * + *
          +   * Name of the affected object in the log message.
          +   * 
          + * + * string object_name = 11; + * + * @return The objectName. + */ + java.lang.String getObjectName(); + /** + * + * + *
          +   * Name of the affected object in the log message.
          +   * 
          + * + * string object_name = 11; + * + * @return The bytes for objectName. + */ + com.google.protobuf.ByteString getObjectNameBytes(); +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GreenplumDialect.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GreenplumDialect.java new file mode 100644 index 000000000000..f6bd840e5f7c --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GreenplumDialect.java @@ -0,0 +1,433 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
          + * The dialect definition for Greenplum.
          + * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.GreenplumDialect} + */ +public final class GreenplumDialect extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.GreenplumDialect) + GreenplumDialectOrBuilder { + private static final long serialVersionUID = 0L; + // Use GreenplumDialect.newBuilder() to construct. + private GreenplumDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GreenplumDialect() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GreenplumDialect(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_GreenplumDialect_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_GreenplumDialect_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.GreenplumDialect.class, + com.google.cloud.bigquery.migration.v2.GreenplumDialect.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.migration.v2.GreenplumDialect)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.GreenplumDialect other = + (com.google.cloud.bigquery.migration.v2.GreenplumDialect) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.migration.v2.GreenplumDialect parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.GreenplumDialect parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.GreenplumDialect parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.GreenplumDialect parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.GreenplumDialect parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.GreenplumDialect parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.GreenplumDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.GreenplumDialect parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.GreenplumDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.GreenplumDialect parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.GreenplumDialect parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.GreenplumDialect parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.GreenplumDialect prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * The dialect definition for Greenplum.
          +   * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.GreenplumDialect} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.GreenplumDialect) + com.google.cloud.bigquery.migration.v2.GreenplumDialectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_GreenplumDialect_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_GreenplumDialect_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.GreenplumDialect.class, + com.google.cloud.bigquery.migration.v2.GreenplumDialect.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.GreenplumDialect.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_GreenplumDialect_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.GreenplumDialect getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.GreenplumDialect.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.GreenplumDialect build() { + com.google.cloud.bigquery.migration.v2.GreenplumDialect result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.GreenplumDialect buildPartial() { + com.google.cloud.bigquery.migration.v2.GreenplumDialect result = + new com.google.cloud.bigquery.migration.v2.GreenplumDialect(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.migration.v2.GreenplumDialect) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.GreenplumDialect) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.GreenplumDialect other) { + if (other == com.google.cloud.bigquery.migration.v2.GreenplumDialect.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.GreenplumDialect) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.GreenplumDialect) + private static final com.google.cloud.bigquery.migration.v2.GreenplumDialect DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.GreenplumDialect(); + } + + public static com.google.cloud.bigquery.migration.v2.GreenplumDialect getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GreenplumDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.GreenplumDialect getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GreenplumDialectOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GreenplumDialectOrBuilder.java new file mode 100644 index 000000000000..1720b492ef62 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GreenplumDialectOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public interface GreenplumDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.GreenplumDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Literal.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Literal.java new file mode 100644 index 000000000000..37fde039db09 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Literal.java @@ -0,0 +1,1074 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_details.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
          + * Literal data.
          + * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.Literal} + */ +public final class Literal extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.Literal) + LiteralOrBuilder { + private static final long serialVersionUID = 0L; + // Use Literal.newBuilder() to construct. + private Literal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Literal() { + relativePath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Literal(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_Literal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_Literal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.Literal.class, + com.google.cloud.bigquery.migration.v2.Literal.Builder.class); + } + + private int literalDataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object literalData_; + + public enum LiteralDataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + LITERAL_STRING(2), + LITERAL_BYTES(3), + LITERALDATA_NOT_SET(0); + private final int value; + + private LiteralDataCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LiteralDataCase valueOf(int value) { + return forNumber(value); + } + + public static LiteralDataCase forNumber(int value) { + switch (value) { + case 2: + return LITERAL_STRING; + case 3: + return LITERAL_BYTES; + case 0: + return LITERALDATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public LiteralDataCase getLiteralDataCase() { + return LiteralDataCase.forNumber(literalDataCase_); + } + + public static final int LITERAL_STRING_FIELD_NUMBER = 2; + /** + * + * + *
          +   * Literal string data.
          +   * 
          + * + * string literal_string = 2; + * + * @return Whether the literalString field is set. + */ + public boolean hasLiteralString() { + return literalDataCase_ == 2; + } + /** + * + * + *
          +   * Literal string data.
          +   * 
          + * + * string literal_string = 2; + * + * @return The literalString. + */ + public java.lang.String getLiteralString() { + java.lang.Object ref = ""; + if (literalDataCase_ == 2) { + ref = literalData_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (literalDataCase_ == 2) { + literalData_ = s; + } + return s; + } + } + /** + * + * + *
          +   * Literal string data.
          +   * 
          + * + * string literal_string = 2; + * + * @return The bytes for literalString. + */ + public com.google.protobuf.ByteString getLiteralStringBytes() { + java.lang.Object ref = ""; + if (literalDataCase_ == 2) { + ref = literalData_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (literalDataCase_ == 2) { + literalData_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LITERAL_BYTES_FIELD_NUMBER = 3; + /** + * + * + *
          +   * Literal byte data.
          +   * 
          + * + * bytes literal_bytes = 3; + * + * @return Whether the literalBytes field is set. + */ + @java.lang.Override + public boolean hasLiteralBytes() { + return literalDataCase_ == 3; + } + /** + * + * + *
          +   * Literal byte data.
          +   * 
          + * + * bytes literal_bytes = 3; + * + * @return The literalBytes. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLiteralBytes() { + if (literalDataCase_ == 3) { + return (com.google.protobuf.ByteString) literalData_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int RELATIVE_PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object relativePath_ = ""; + /** + * + * + *
          +   * Required. The identifier of the literal entry.
          +   * 
          + * + * string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The relativePath. + */ + @java.lang.Override + public java.lang.String getRelativePath() { + java.lang.Object ref = relativePath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + relativePath_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The identifier of the literal entry.
          +   * 
          + * + * string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for relativePath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRelativePathBytes() { + java.lang.Object ref = relativePath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + relativePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativePath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, relativePath_); + } + if (literalDataCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, literalData_); + } + if (literalDataCase_ == 3) { + output.writeBytes(3, (com.google.protobuf.ByteString) literalData_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativePath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, relativePath_); + } + if (literalDataCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, literalData_); + } + if (literalDataCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 3, (com.google.protobuf.ByteString) literalData_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.migration.v2.Literal)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.Literal other = + (com.google.cloud.bigquery.migration.v2.Literal) obj; + + if (!getRelativePath().equals(other.getRelativePath())) return false; + if (!getLiteralDataCase().equals(other.getLiteralDataCase())) return false; + switch (literalDataCase_) { + case 2: + if (!getLiteralString().equals(other.getLiteralString())) return false; + break; + case 3: + if (!getLiteralBytes().equals(other.getLiteralBytes())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RELATIVE_PATH_FIELD_NUMBER; + hash = (53 * hash) + getRelativePath().hashCode(); + switch (literalDataCase_) { + case 2: + hash = (37 * hash) + LITERAL_STRING_FIELD_NUMBER; + hash = (53 * hash) + getLiteralString().hashCode(); + break; + case 3: + hash = (37 * hash) + LITERAL_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getLiteralBytes().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.migration.v2.Literal parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.Literal parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.Literal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.Literal parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.Literal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.Literal parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.Literal parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.Literal parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.Literal parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.Literal parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.Literal parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.Literal parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.Literal prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Literal data.
          +   * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.Literal} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.Literal) + com.google.cloud.bigquery.migration.v2.LiteralOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_Literal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_Literal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.Literal.class, + com.google.cloud.bigquery.migration.v2.Literal.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.Literal.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + relativePath_ = ""; + literalDataCase_ = 0; + literalData_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_Literal_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.Literal getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.Literal.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.Literal build() { + com.google.cloud.bigquery.migration.v2.Literal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.Literal buildPartial() { + com.google.cloud.bigquery.migration.v2.Literal result = + new com.google.cloud.bigquery.migration.v2.Literal(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.migration.v2.Literal result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.relativePath_ = relativePath_; + } + } + + private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2.Literal result) { + result.literalDataCase_ = literalDataCase_; + result.literalData_ = this.literalData_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.migration.v2.Literal) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.Literal) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.Literal other) { + if (other == com.google.cloud.bigquery.migration.v2.Literal.getDefaultInstance()) return this; + if (!other.getRelativePath().isEmpty()) { + relativePath_ = other.relativePath_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getLiteralDataCase()) { + case LITERAL_STRING: + { + literalDataCase_ = 2; + literalData_ = other.literalData_; + onChanged(); + break; + } + case LITERAL_BYTES: + { + setLiteralBytes(other.getLiteralBytes()); + break; + } + case LITERALDATA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + relativePath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + literalDataCase_ = 2; + literalData_ = s; + break; + } // case 18 + case 26: + { + literalData_ = input.readBytes(); + literalDataCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int literalDataCase_ = 0; + private java.lang.Object literalData_; + + public LiteralDataCase getLiteralDataCase() { + return LiteralDataCase.forNumber(literalDataCase_); + } + + public Builder clearLiteralData() { + literalDataCase_ = 0; + literalData_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
          +     * Literal string data.
          +     * 
          + * + * string literal_string = 2; + * + * @return Whether the literalString field is set. + */ + @java.lang.Override + public boolean hasLiteralString() { + return literalDataCase_ == 2; + } + /** + * + * + *
          +     * Literal string data.
          +     * 
          + * + * string literal_string = 2; + * + * @return The literalString. + */ + @java.lang.Override + public java.lang.String getLiteralString() { + java.lang.Object ref = ""; + if (literalDataCase_ == 2) { + ref = literalData_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (literalDataCase_ == 2) { + literalData_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Literal string data.
          +     * 
          + * + * string literal_string = 2; + * + * @return The bytes for literalString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLiteralStringBytes() { + java.lang.Object ref = ""; + if (literalDataCase_ == 2) { + ref = literalData_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (literalDataCase_ == 2) { + literalData_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Literal string data.
          +     * 
          + * + * string literal_string = 2; + * + * @param value The literalString to set. + * @return This builder for chaining. + */ + public Builder setLiteralString(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + literalDataCase_ = 2; + literalData_ = value; + onChanged(); + return this; + } + /** + * + * + *
          +     * Literal string data.
          +     * 
          + * + * string literal_string = 2; + * + * @return This builder for chaining. + */ + public Builder clearLiteralString() { + if (literalDataCase_ == 2) { + literalDataCase_ = 0; + literalData_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Literal string data.
          +     * 
          + * + * string literal_string = 2; + * + * @param value The bytes for literalString to set. + * @return This builder for chaining. + */ + public Builder setLiteralStringBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + literalDataCase_ = 2; + literalData_ = value; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Literal byte data.
          +     * 
          + * + * bytes literal_bytes = 3; + * + * @return Whether the literalBytes field is set. + */ + public boolean hasLiteralBytes() { + return literalDataCase_ == 3; + } + /** + * + * + *
          +     * Literal byte data.
          +     * 
          + * + * bytes literal_bytes = 3; + * + * @return The literalBytes. + */ + public com.google.protobuf.ByteString getLiteralBytes() { + if (literalDataCase_ == 3) { + return (com.google.protobuf.ByteString) literalData_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + * + * + *
          +     * Literal byte data.
          +     * 
          + * + * bytes literal_bytes = 3; + * + * @param value The literalBytes to set. + * @return This builder for chaining. + */ + public Builder setLiteralBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + literalDataCase_ = 3; + literalData_ = value; + onChanged(); + return this; + } + /** + * + * + *
          +     * Literal byte data.
          +     * 
          + * + * bytes literal_bytes = 3; + * + * @return This builder for chaining. + */ + public Builder clearLiteralBytes() { + if (literalDataCase_ == 3) { + literalDataCase_ = 0; + literalData_ = null; + onChanged(); + } + return this; + } + + private java.lang.Object relativePath_ = ""; + /** + * + * + *
          +     * Required. The identifier of the literal entry.
          +     * 
          + * + * string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The relativePath. + */ + public java.lang.String getRelativePath() { + java.lang.Object ref = relativePath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + relativePath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The identifier of the literal entry.
          +     * 
          + * + * string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for relativePath. + */ + public com.google.protobuf.ByteString getRelativePathBytes() { + java.lang.Object ref = relativePath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + relativePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The identifier of the literal entry.
          +     * 
          + * + * string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The relativePath to set. + * @return This builder for chaining. + */ + public Builder setRelativePath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + relativePath_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The identifier of the literal entry.
          +     * 
          + * + * string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRelativePath() { + relativePath_ = getDefaultInstance().getRelativePath(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The identifier of the literal entry.
          +     * 
          + * + * string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for relativePath to set. + * @return This builder for chaining. + */ + public Builder setRelativePathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + relativePath_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.Literal) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.Literal) + private static final com.google.cloud.bigquery.migration.v2.Literal DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.Literal(); + } + + public static com.google.cloud.bigquery.migration.v2.Literal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Literal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.Literal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/LiteralOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/LiteralOrBuilder.java new file mode 100644 index 000000000000..57c6e54cc968 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/LiteralOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_details.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public interface LiteralOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.Literal) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Literal string data.
          +   * 
          + * + * string literal_string = 2; + * + * @return Whether the literalString field is set. + */ + boolean hasLiteralString(); + /** + * + * + *
          +   * Literal string data.
          +   * 
          + * + * string literal_string = 2; + * + * @return The literalString. + */ + java.lang.String getLiteralString(); + /** + * + * + *
          +   * Literal string data.
          +   * 
          + * + * string literal_string = 2; + * + * @return The bytes for literalString. + */ + com.google.protobuf.ByteString getLiteralStringBytes(); + + /** + * + * + *
          +   * Literal byte data.
          +   * 
          + * + * bytes literal_bytes = 3; + * + * @return Whether the literalBytes field is set. + */ + boolean hasLiteralBytes(); + /** + * + * + *
          +   * Literal byte data.
          +   * 
          + * + * bytes literal_bytes = 3; + * + * @return The literalBytes. + */ + com.google.protobuf.ByteString getLiteralBytes(); + + /** + * + * + *
          +   * Required. The identifier of the literal entry.
          +   * 
          + * + * string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The relativePath. + */ + java.lang.String getRelativePath(); + /** + * + * + *
          +   * Required. The identifier of the literal entry.
          +   * 
          + * + * string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for relativePath. + */ + com.google.protobuf.ByteString getRelativePathBytes(); + + com.google.cloud.bigquery.migration.v2.Literal.LiteralDataCase getLiteralDataCase(); +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java index f73e5a75fd70..45f36dad3964 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java @@ -44,6 +44,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_TranslationTaskResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_TranslationTaskResult_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -61,62 +69,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ion_error_details.proto\032:google/cloud/bi" + "gquery/migration/v2/migration_metrics.pr" + "oto\032;google/cloud/bigquery/migration/v2/" - + "translation_config.proto\032\037google/protobu" - + "f/timestamp.proto\032\036google/rpc/error_deta" - + "ils.proto\"\363\004\n\021MigrationWorkflow\022\024\n\004name\030" - + "\001 \001(\tB\006\340A\003\340A\005\022\024\n\014display_name\030\006 \001(\t\022O\n\005t" - + "asks\030\002 \003(\0132@.google.cloud.bigquery.migra" - + "tion.v2.MigrationWorkflow.TasksEntry\022O\n\005" - + "state\030\003 \001(\0162;.google.cloud.bigquery.migr" - + "ation.v2.MigrationWorkflow.StateB\003\340A\003\022/\n" - + "\013create_time\030\004 \001(\0132\032.google.protobuf.Tim" - + "estamp\0224\n\020last_update_time\030\005 \001(\0132\032.googl" - + "e.protobuf.Timestamp\032_\n\nTasksEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022@\n\005value\030\002 \001(\01321.google.cloud.bi" - + "gquery.migration.v2.MigrationTask:\0028\001\"Q\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001" - + "\022\013\n\007RUNNING\020\002\022\n\n\006PAUSED\020\003\022\r\n\tCOMPLETED\020\004" - + ":u\352Ar\n2bigquerymigration.googleapis.com/" - + "MigrationWorkflow\022google/cloud/bigquery/migration/" + + "v2/translation_usability.proto\032\037google/p" + + "rotobuf/timestamp.proto\032\036google/rpc/erro" + + "r_details.proto\"\366\004\n\021MigrationWorkflow\022\027\n" + + "\004name\030\001 \001(\tB\t\340A\003\340A\005\340A\010\022\024\n\014display_name\030\006" + + " \001(\t\022O\n\005tasks\030\002 \003(\0132@.google.cloud.bigqu" + + "ery.migration.v2.MigrationWorkflow.Tasks" + + "Entry\022O\n\005state\030\003 \001(\0162;.google.cloud.bigq" + + "uery.migration.v2.MigrationWorkflow.Stat" + + "eB\003\340A\003\022/\n\013create_time\030\004 \001(\0132\032.google.pro" + + "tobuf.Timestamp\0224\n\020last_update_time\030\005 \001(" + + "\0132\032.google.protobuf.Timestamp\032_\n\nTasksEn" + + "try\022\013\n\003key\030\001 \001(\t\022@\n\005value\030\002 \001(\01321.google" + + ".cloud.bigquery.migration.v2.MigrationTa" + + "sk:\0028\001\"Q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t" + + "\n\005DRAFT\020\001\022\013\n\007RUNNING\020\002\022\n\n\006PAUSED\020\003\022\r\n\tCO" + + "MPLETED\020\004:u\352Ar\n2bigquerymigration.google" + + "apis.com/MigrationWorkflow\022 - * Task configuration for Batch SQL Translation. + * Task configuration for CW Batch/Offline SQL Translation. * * * @@ -384,7 +389,7 @@ public boolean hasTranslationConfigDetails() { * * *
          -   * Task configuration for Batch SQL Translation.
          +   * Task configuration for CW Batch/Offline SQL Translation.
              * 
          * * @@ -405,7 +410,7 @@ public boolean hasTranslationConfigDetails() { * * *
          -   * Task configuration for Batch SQL Translation.
          +   * Task configuration for CW Batch/Offline SQL Translation.
              * 
          * * @@ -421,6 +426,58 @@ public boolean hasTranslationConfigDetails() { return com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.getDefaultInstance(); } + public static final int TRANSLATION_DETAILS_FIELD_NUMBER = 16; + /** + * + * + *
          +   * Task details for unified SQL Translation.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + * + * @return Whether the translationDetails field is set. + */ + @java.lang.Override + public boolean hasTranslationDetails() { + return taskDetailsCase_ == 16; + } + /** + * + * + *
          +   * Task details for unified SQL Translation.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + * + * @return The translationDetails. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationDetails getTranslationDetails() { + if (taskDetailsCase_ == 16) { + return (com.google.cloud.bigquery.migration.v2.TranslationDetails) taskDetails_; + } + return com.google.cloud.bigquery.migration.v2.TranslationDetails.getDefaultInstance(); + } + /** + * + * + *
          +   * Task details for unified SQL Translation.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationDetailsOrBuilder + getTranslationDetailsOrBuilder() { + if (taskDetailsCase_ == 16) { + return (com.google.cloud.bigquery.migration.v2.TranslationDetails) taskDetails_; + } + return com.google.cloud.bigquery.migration.v2.TranslationDetails.getDefaultInstance(); + } + public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -492,7 +549,7 @@ public com.google.protobuf.ByteString getIdBytes() { * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - * Translation_Postgresql2BQ. + * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. * * * string type = 2; @@ -521,7 +578,7 @@ public java.lang.String getType() { * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - * Translation_Postgresql2BQ. + * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. * * * string type = 2; @@ -734,6 +791,287 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { : lastUpdateTime_; } + public static final int RESOURCE_ERROR_DETAILS_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private java.util.List + resourceErrorDetails_; + /** + * + * + *
          +   * Output only. Provides details to errors and issues encountered while
          +   * processing the task. Presence of error details does not mean that the task
          +   * failed.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getResourceErrorDetailsList() { + return resourceErrorDetails_; + } + /** + * + * + *
          +   * Output only. Provides details to errors and issues encountered while
          +   * processing the task. Presence of error details does not mean that the task
          +   * failed.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder> + getResourceErrorDetailsOrBuilderList() { + return resourceErrorDetails_; + } + /** + * + * + *
          +   * Output only. Provides details to errors and issues encountered while
          +   * processing the task. Presence of error details does not mean that the task
          +   * failed.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getResourceErrorDetailsCount() { + return resourceErrorDetails_.size(); + } + /** + * + * + *
          +   * Output only. Provides details to errors and issues encountered while
          +   * processing the task. Presence of error details does not mean that the task
          +   * failed.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail getResourceErrorDetails( + int index) { + return resourceErrorDetails_.get(index); + } + /** + * + * + *
          +   * Output only. Provides details to errors and issues encountered while
          +   * processing the task. Presence of error details does not mean that the task
          +   * failed.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder + getResourceErrorDetailsOrBuilder(int index) { + return resourceErrorDetails_.get(index); + } + + public static final int RESOURCE_ERROR_COUNT_FIELD_NUMBER = 18; + private int resourceErrorCount_ = 0; + /** + * + * + *
          +   * The number or resources with errors. Note: This is not the total
          +   * number of errors as each resource can have more than one error.
          +   * This is used to indicate truncation by having a `resource_error_count`
          +   * that is higher than the size of `resource_error_details`.
          +   * 
          + * + * int32 resource_error_count = 18; + * + * @return The resourceErrorCount. + */ + @java.lang.Override + public int getResourceErrorCount() { + return resourceErrorCount_; + } + + public static final int METRICS_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private java.util.List metrics_; + /** + * + * + *
          +   * The metrics for the task.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + @java.lang.Override + public java.util.List getMetricsList() { + return metrics_; + } + /** + * + * + *
          +   * The metrics for the task.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + @java.lang.Override + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + /** + * + * + *
          +   * The metrics for the task.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + @java.lang.Override + public int getMetricsCount() { + return metrics_.size(); + } + /** + * + * + *
          +   * The metrics for the task.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index) { + return metrics_.get(index); + } + /** + * + * + *
          +   * The metrics for the task.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBuilder(int index) { + return metrics_.get(index); + } + + public static final int TASK_RESULT_FIELD_NUMBER = 20; + private com.google.cloud.bigquery.migration.v2.MigrationTaskResult taskResult_; + /** + * + * + *
          +   * Output only. The result of the task.
          +   * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the taskResult field is set. + */ + @java.lang.Override + public boolean hasTaskResult() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
          +   * Output only. The result of the task.
          +   * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The taskResult. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.MigrationTaskResult getTaskResult() { + return taskResult_ == null + ? com.google.cloud.bigquery.migration.v2.MigrationTaskResult.getDefaultInstance() + : taskResult_; + } + /** + * + * + *
          +   * Output only. The result of the task.
          +   * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.MigrationTaskResultOrBuilder + getTaskResultOrBuilder() { + return taskResult_ == null + ? com.google.cloud.bigquery.migration.v2.MigrationTaskResult.getDefaultInstance() + : taskResult_; + } + + public static final int TOTAL_PROCESSING_ERROR_COUNT_FIELD_NUMBER = 21; + private int totalProcessingErrorCount_ = 0; + /** + * + * + *
          +   * Count of all the processing errors in this task and its subtasks.
          +   * 
          + * + * int32 total_processing_error_count = 21; + * + * @return The totalProcessingErrorCount. + */ + @java.lang.Override + public int getTotalProcessingErrorCount() { + return totalProcessingErrorCount_; + } + + public static final int TOTAL_RESOURCE_ERROR_COUNT_FIELD_NUMBER = 22; + private int totalResourceErrorCount_ = 0; + /** + * + * + *
          +   * Count of all the resource errors in this task and its subtasks.
          +   * 
          + * + * int32 total_resource_error_count = 22; + * + * @return The totalResourceErrorCount. + */ + @java.lang.Override + public int getTotalResourceErrorCount() { + return totalResourceErrorCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -772,6 +1110,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 14, (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) taskDetails_); } + if (taskDetailsCase_ == 16) { + output.writeMessage( + 16, (com.google.cloud.bigquery.migration.v2.TranslationDetails) taskDetails_); + } + for (int i = 0; i < resourceErrorDetails_.size(); i++) { + output.writeMessage(17, resourceErrorDetails_.get(i)); + } + if (resourceErrorCount_ != 0) { + output.writeInt32(18, resourceErrorCount_); + } + for (int i = 0; i < metrics_.size(); i++) { + output.writeMessage(19, metrics_.get(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(20, getTaskResult()); + } + if (totalProcessingErrorCount_ != 0) { + output.writeInt32(21, totalProcessingErrorCount_); + } + if (totalResourceErrorCount_ != 0) { + output.writeInt32(22, totalResourceErrorCount_); + } getUnknownFields().writeTo(output); } @@ -806,6 +1166,32 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 14, (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) taskDetails_); } + if (taskDetailsCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.cloud.bigquery.migration.v2.TranslationDetails) taskDetails_); + } + for (int i = 0; i < resourceErrorDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, resourceErrorDetails_.get(i)); + } + if (resourceErrorCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(18, resourceErrorCount_); + } + for (int i = 0; i < metrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, metrics_.get(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getTaskResult()); + } + if (totalProcessingErrorCount_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(21, totalProcessingErrorCount_); + } + if (totalResourceErrorCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(22, totalResourceErrorCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -837,12 +1223,24 @@ public boolean equals(final java.lang.Object obj) { if (hasLastUpdateTime()) { if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } + if (!getResourceErrorDetailsList().equals(other.getResourceErrorDetailsList())) return false; + if (getResourceErrorCount() != other.getResourceErrorCount()) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; + if (hasTaskResult() != other.hasTaskResult()) return false; + if (hasTaskResult()) { + if (!getTaskResult().equals(other.getTaskResult())) return false; + } + if (getTotalProcessingErrorCount() != other.getTotalProcessingErrorCount()) return false; + if (getTotalResourceErrorCount() != other.getTotalResourceErrorCount()) return false; if (!getTaskDetailsCase().equals(other.getTaskDetailsCase())) return false; switch (taskDetailsCase_) { case 14: if (!getTranslationConfigDetails().equals(other.getTranslationConfigDetails())) return false; break; + case 16: + if (!getTranslationDetails().equals(other.getTranslationDetails())) return false; + break; case 0: default: } @@ -875,11 +1273,33 @@ public int hashCode() { hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastUpdateTime().hashCode(); } + if (getResourceErrorDetailsCount() > 0) { + hash = (37 * hash) + RESOURCE_ERROR_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getResourceErrorDetailsList().hashCode(); + } + hash = (37 * hash) + RESOURCE_ERROR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getResourceErrorCount(); + if (getMetricsCount() > 0) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + getMetricsList().hashCode(); + } + if (hasTaskResult()) { + hash = (37 * hash) + TASK_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getTaskResult().hashCode(); + } + hash = (37 * hash) + TOTAL_PROCESSING_ERROR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalProcessingErrorCount(); + hash = (37 * hash) + TOTAL_RESOURCE_ERROR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalResourceErrorCount(); switch (taskDetailsCase_) { case 14: hash = (37 * hash) + TRANSLATION_CONFIG_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getTranslationConfigDetails().hashCode(); break; + case 16: + hash = (37 * hash) + TRANSLATION_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getTranslationDetails().hashCode(); + break; case 0: default: } @@ -1027,6 +1447,9 @@ private void maybeForceBuilderInitialization() { getProcessingErrorFieldBuilder(); getCreateTimeFieldBuilder(); getLastUpdateTimeFieldBuilder(); + getResourceErrorDetailsFieldBuilder(); + getMetricsFieldBuilder(); + getTaskResultFieldBuilder(); } } @@ -1037,6 +1460,9 @@ public Builder clear() { if (translationConfigDetailsBuilder_ != null) { translationConfigDetailsBuilder_.clear(); } + if (translationDetailsBuilder_ != null) { + translationDetailsBuilder_.clear(); + } id_ = ""; type_ = ""; state_ = 0; @@ -1055,6 +1481,28 @@ public Builder clear() { lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } + if (resourceErrorDetailsBuilder_ == null) { + resourceErrorDetails_ = java.util.Collections.emptyList(); + } else { + resourceErrorDetails_ = null; + resourceErrorDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + resourceErrorCount_ = 0; + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + } else { + metrics_ = null; + metricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + taskResult_ = null; + if (taskResultBuilder_ != null) { + taskResultBuilder_.dispose(); + taskResultBuilder_ = null; + } + totalProcessingErrorCount_ = 0; + totalResourceErrorCount_ = 0; taskDetailsCase_ = 0; taskDetails_ = null; return this; @@ -1084,6 +1532,7 @@ public com.google.cloud.bigquery.migration.v2.MigrationTask build() { public com.google.cloud.bigquery.migration.v2.MigrationTask buildPartial() { com.google.cloud.bigquery.migration.v2.MigrationTask result = new com.google.cloud.bigquery.migration.v2.MigrationTask(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1092,32 +1541,67 @@ public com.google.cloud.bigquery.migration.v2.MigrationTask buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.migration.v2.MigrationTask result) { + if (resourceErrorDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + resourceErrorDetails_ = java.util.Collections.unmodifiableList(resourceErrorDetails_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.resourceErrorDetails_ = resourceErrorDetails_; + } else { + result.resourceErrorDetails_ = resourceErrorDetailsBuilder_.build(); + } + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.bigquery.migration.v2.MigrationTask result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.id_ = id_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.type_ = type_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.state_ = state_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.processingError_ = processingErrorBuilder_ == null ? processingError_ : processingErrorBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.resourceErrorCount_ = resourceErrorCount_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.taskResult_ = taskResultBuilder_ == null ? taskResult_ : taskResultBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.totalProcessingErrorCount_ = totalProcessingErrorCount_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.totalResourceErrorCount_ = totalResourceErrorCount_; + } result.bitField0_ |= to_bitField0_; } @@ -1127,6 +1611,9 @@ private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2.Migration if (taskDetailsCase_ == 14 && translationConfigDetailsBuilder_ != null) { result.taskDetails_ = translationConfigDetailsBuilder_.build(); } + if (taskDetailsCase_ == 16 && translationDetailsBuilder_ != null) { + result.taskDetails_ = translationDetailsBuilder_.build(); + } } @java.lang.Override @@ -1177,12 +1664,12 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationTask ot return this; if (!other.getId().isEmpty()) { id_ = other.id_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getType().isEmpty()) { type_ = other.type_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (other.state_ != 0) { @@ -1197,12 +1684,83 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationTask ot if (other.hasLastUpdateTime()) { mergeLastUpdateTime(other.getLastUpdateTime()); } + if (resourceErrorDetailsBuilder_ == null) { + if (!other.resourceErrorDetails_.isEmpty()) { + if (resourceErrorDetails_.isEmpty()) { + resourceErrorDetails_ = other.resourceErrorDetails_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureResourceErrorDetailsIsMutable(); + resourceErrorDetails_.addAll(other.resourceErrorDetails_); + } + onChanged(); + } + } else { + if (!other.resourceErrorDetails_.isEmpty()) { + if (resourceErrorDetailsBuilder_.isEmpty()) { + resourceErrorDetailsBuilder_.dispose(); + resourceErrorDetailsBuilder_ = null; + resourceErrorDetails_ = other.resourceErrorDetails_; + bitField0_ = (bitField0_ & ~0x00000100); + resourceErrorDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourceErrorDetailsFieldBuilder() + : null; + } else { + resourceErrorDetailsBuilder_.addAllMessages(other.resourceErrorDetails_); + } + } + } + if (other.getResourceErrorCount() != 0) { + setResourceErrorCount(other.getResourceErrorCount()); + } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000400); + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricsFieldBuilder() + : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (other.hasTaskResult()) { + mergeTaskResult(other.getTaskResult()); + } + if (other.getTotalProcessingErrorCount() != 0) { + setTotalProcessingErrorCount(other.getTotalProcessingErrorCount()); + } + if (other.getTotalResourceErrorCount() != 0) { + setTotalResourceErrorCount(other.getTotalResourceErrorCount()); + } switch (other.getTaskDetailsCase()) { case TRANSLATION_CONFIG_DETAILS: { mergeTranslationConfigDetails(other.getTranslationConfigDetails()); break; } + case TRANSLATION_DETAILS: + { + mergeTranslationDetails(other.getTranslationDetails()); + break; + } case TASKDETAILS_NOT_SET: { break; @@ -1237,37 +1795,37 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 10 case 18: { type_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 18 case 32: { state_ = input.readEnum(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 32 case 42: { input.readMessage(getProcessingErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 case 50: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 58: { input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 58 case 114: @@ -1277,6 +1835,65 @@ public Builder mergeFrom( taskDetailsCase_ = 14; break; } // case 114 + case 130: + { + input.readMessage( + getTranslationDetailsFieldBuilder().getBuilder(), extensionRegistry); + taskDetailsCase_ = 16; + break; + } // case 130 + case 138: + { + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail m = + input.readMessage( + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.parser(), + extensionRegistry); + if (resourceErrorDetailsBuilder_ == null) { + ensureResourceErrorDetailsIsMutable(); + resourceErrorDetails_.add(m); + } else { + resourceErrorDetailsBuilder_.addMessage(m); + } + break; + } // case 138 + case 144: + { + resourceErrorCount_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 144 + case 154: + { + com.google.cloud.bigquery.migration.v2.TimeSeries m = + input.readMessage( + com.google.cloud.bigquery.migration.v2.TimeSeries.parser(), + extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 154 + case 162: + { + input.readMessage(getTaskResultFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 162 + case 168: + { + totalProcessingErrorCount_ = input.readInt32(); + bitField0_ |= 0x00001000; + break; + } // case 168 + case 176: + { + totalResourceErrorCount_ = input.readInt32(); + bitField0_ |= 0x00002000; + break; + } // case 176 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1319,7 +1936,7 @@ public Builder clearTaskDetails() { * * *
          -     * Task configuration for Batch SQL Translation.
          +     * Task configuration for CW Batch/Offline SQL Translation.
                * 
          * * @@ -1336,7 +1953,7 @@ public boolean hasTranslationConfigDetails() { * * *
          -     * Task configuration for Batch SQL Translation.
          +     * Task configuration for CW Batch/Offline SQL Translation.
                * 
          * * @@ -1364,7 +1981,7 @@ public boolean hasTranslationConfigDetails() { * * *
          -     * Task configuration for Batch SQL Translation.
          +     * Task configuration for CW Batch/Offline SQL Translation.
                * 
          * * @@ -1389,7 +2006,7 @@ public Builder setTranslationConfigDetails( * * *
          -     * Task configuration for Batch SQL Translation.
          +     * Task configuration for CW Batch/Offline SQL Translation.
                * 
          * * @@ -1411,7 +2028,7 @@ public Builder setTranslationConfigDetails( * * *
          -     * Task configuration for Batch SQL Translation.
          +     * Task configuration for CW Batch/Offline SQL Translation.
                * 
          * * @@ -1449,7 +2066,7 @@ public Builder mergeTranslationConfigDetails( * * *
          -     * Task configuration for Batch SQL Translation.
          +     * Task configuration for CW Batch/Offline SQL Translation.
                * 
          * * @@ -1476,7 +2093,7 @@ public Builder clearTranslationConfigDetails() { * * *
          -     * Task configuration for Batch SQL Translation.
          +     * Task configuration for CW Batch/Offline SQL Translation.
                * 
          * * @@ -1491,7 +2108,7 @@ public Builder clearTranslationConfigDetails() { * * *
          -     * Task configuration for Batch SQL Translation.
          +     * Task configuration for CW Batch/Offline SQL Translation.
                * 
          * * @@ -1514,7 +2131,7 @@ public Builder clearTranslationConfigDetails() { * * *
          -     * Task configuration for Batch SQL Translation.
          +     * Task configuration for CW Batch/Offline SQL Translation.
                * 
          * * @@ -1546,6 +2163,221 @@ public Builder clearTranslationConfigDetails() { return translationConfigDetailsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TranslationDetails, + com.google.cloud.bigquery.migration.v2.TranslationDetails.Builder, + com.google.cloud.bigquery.migration.v2.TranslationDetailsOrBuilder> + translationDetailsBuilder_; + /** + * + * + *
          +     * Task details for unified SQL Translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + * + * @return Whether the translationDetails field is set. + */ + @java.lang.Override + public boolean hasTranslationDetails() { + return taskDetailsCase_ == 16; + } + /** + * + * + *
          +     * Task details for unified SQL Translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + * + * @return The translationDetails. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationDetails getTranslationDetails() { + if (translationDetailsBuilder_ == null) { + if (taskDetailsCase_ == 16) { + return (com.google.cloud.bigquery.migration.v2.TranslationDetails) taskDetails_; + } + return com.google.cloud.bigquery.migration.v2.TranslationDetails.getDefaultInstance(); + } else { + if (taskDetailsCase_ == 16) { + return translationDetailsBuilder_.getMessage(); + } + return com.google.cloud.bigquery.migration.v2.TranslationDetails.getDefaultInstance(); + } + } + /** + * + * + *
          +     * Task details for unified SQL Translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + */ + public Builder setTranslationDetails( + com.google.cloud.bigquery.migration.v2.TranslationDetails value) { + if (translationDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskDetails_ = value; + onChanged(); + } else { + translationDetailsBuilder_.setMessage(value); + } + taskDetailsCase_ = 16; + return this; + } + /** + * + * + *
          +     * Task details for unified SQL Translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + */ + public Builder setTranslationDetails( + com.google.cloud.bigquery.migration.v2.TranslationDetails.Builder builderForValue) { + if (translationDetailsBuilder_ == null) { + taskDetails_ = builderForValue.build(); + onChanged(); + } else { + translationDetailsBuilder_.setMessage(builderForValue.build()); + } + taskDetailsCase_ = 16; + return this; + } + /** + * + * + *
          +     * Task details for unified SQL Translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + */ + public Builder mergeTranslationDetails( + com.google.cloud.bigquery.migration.v2.TranslationDetails value) { + if (translationDetailsBuilder_ == null) { + if (taskDetailsCase_ == 16 + && taskDetails_ + != com.google.cloud.bigquery.migration.v2.TranslationDetails.getDefaultInstance()) { + taskDetails_ = + com.google.cloud.bigquery.migration.v2.TranslationDetails.newBuilder( + (com.google.cloud.bigquery.migration.v2.TranslationDetails) taskDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + taskDetails_ = value; + } + onChanged(); + } else { + if (taskDetailsCase_ == 16) { + translationDetailsBuilder_.mergeFrom(value); + } else { + translationDetailsBuilder_.setMessage(value); + } + } + taskDetailsCase_ = 16; + return this; + } + /** + * + * + *
          +     * Task details for unified SQL Translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + */ + public Builder clearTranslationDetails() { + if (translationDetailsBuilder_ == null) { + if (taskDetailsCase_ == 16) { + taskDetailsCase_ = 0; + taskDetails_ = null; + onChanged(); + } + } else { + if (taskDetailsCase_ == 16) { + taskDetailsCase_ = 0; + taskDetails_ = null; + } + translationDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Task details for unified SQL Translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + */ + public com.google.cloud.bigquery.migration.v2.TranslationDetails.Builder + getTranslationDetailsBuilder() { + return getTranslationDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Task details for unified SQL Translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationDetailsOrBuilder + getTranslationDetailsOrBuilder() { + if ((taskDetailsCase_ == 16) && (translationDetailsBuilder_ != null)) { + return translationDetailsBuilder_.getMessageOrBuilder(); + } else { + if (taskDetailsCase_ == 16) { + return (com.google.cloud.bigquery.migration.v2.TranslationDetails) taskDetails_; + } + return com.google.cloud.bigquery.migration.v2.TranslationDetails.getDefaultInstance(); + } + } + /** + * + * + *
          +     * Task details for unified SQL Translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TranslationDetails, + com.google.cloud.bigquery.migration.v2.TranslationDetails.Builder, + com.google.cloud.bigquery.migration.v2.TranslationDetailsOrBuilder> + getTranslationDetailsFieldBuilder() { + if (translationDetailsBuilder_ == null) { + if (!(taskDetailsCase_ == 16)) { + taskDetails_ = + com.google.cloud.bigquery.migration.v2.TranslationDetails.getDefaultInstance(); + } + translationDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TranslationDetails, + com.google.cloud.bigquery.migration.v2.TranslationDetails.Builder, + com.google.cloud.bigquery.migration.v2.TranslationDetailsOrBuilder>( + (com.google.cloud.bigquery.migration.v2.TranslationDetails) taskDetails_, + getParentForChildren(), + isClean()); + taskDetails_ = null; + } + taskDetailsCase_ = 16; + onChanged(); + return translationDetailsBuilder_; + } + private java.lang.Object id_ = ""; /** * @@ -1617,7 +2449,7 @@ public Builder setId(java.lang.String value) { throw new NullPointerException(); } id_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1637,7 +2469,7 @@ public Builder setId(java.lang.String value) { */ public Builder clearId() { id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1662,7 +2494,7 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); id_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1678,7 +2510,7 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - * Translation_Postgresql2BQ. + * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. * * * string type = 2; @@ -1706,7 +2538,7 @@ public java.lang.String getType() { * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - * Translation_Postgresql2BQ. + * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. * * * string type = 2; @@ -1734,7 +2566,7 @@ public com.google.protobuf.ByteString getTypeBytes() { * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - * Translation_Postgresql2BQ. + * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. * * * string type = 2; @@ -1747,7 +2579,7 @@ public Builder setType(java.lang.String value) { throw new NullPointerException(); } type_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1761,7 +2593,7 @@ public Builder setType(java.lang.String value) { * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - * Translation_Postgresql2BQ. + * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. * * * string type = 2; @@ -1770,7 +2602,7 @@ public Builder setType(java.lang.String value) { */ public Builder clearType() { type_ = getDefaultInstance().getType(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1784,7 +2616,7 @@ public Builder clearType() { * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - * Translation_Postgresql2BQ. + * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. * * * string type = 2; @@ -1798,7 +2630,7 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); type_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1837,7 +2669,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1880,7 +2712,7 @@ public Builder setState(com.google.cloud.bigquery.migration.v2.MigrationTask.Sta if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; state_ = value.getNumber(); onChanged(); return this; @@ -1899,7 +2731,7 @@ public Builder setState(com.google.cloud.bigquery.migration.v2.MigrationTask.Sta * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); state_ = 0; onChanged(); return this; @@ -1926,7 +2758,7 @@ public Builder clearState() { * @return Whether the processingError field is set. */ public boolean hasProcessingError() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1972,7 +2804,7 @@ public Builder setProcessingError(com.google.rpc.ErrorInfo value) { } else { processingErrorBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1994,7 +2826,7 @@ public Builder setProcessingError(com.google.rpc.ErrorInfo.Builder builderForVal } else { processingErrorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2012,7 +2844,7 @@ public Builder setProcessingError(com.google.rpc.ErrorInfo.Builder builderForVal */ public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) { if (processingErrorBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && processingError_ != null && processingError_ != com.google.rpc.ErrorInfo.getDefaultInstance()) { getProcessingErrorBuilder().mergeFrom(value); @@ -2023,7 +2855,7 @@ public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) { processingErrorBuilder_.mergeFrom(value); } if (processingError_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -2041,7 +2873,7 @@ public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) { *
          */ public Builder clearProcessingError() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); processingError_ = null; if (processingErrorBuilder_ != null) { processingErrorBuilder_.dispose(); @@ -2063,7 +2895,7 @@ public Builder clearProcessingError() { *
          */ public com.google.rpc.ErrorInfo.Builder getProcessingErrorBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getProcessingErrorFieldBuilder().getBuilder(); } @@ -2135,7 +2967,7 @@ public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2175,7 +3007,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2194,7 +3026,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2209,7 +3041,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -2220,7 +3052,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2235,7 +3067,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp create_time = 6; */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2254,7 +3086,7 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 6; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2320,7 +3152,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2360,7 +3192,7 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { } else { lastUpdateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2379,7 +3211,7 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo } else { lastUpdateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2394,7 +3226,7 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && lastUpdateTime_ != null && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); @@ -2405,7 +3237,7 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { lastUpdateTimeBuilder_.mergeFrom(value); } if (lastUpdateTime_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2420,7 +3252,7 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp last_update_time = 7; */ public Builder clearLastUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); lastUpdateTime_ = null; if (lastUpdateTimeBuilder_ != null) { lastUpdateTimeBuilder_.dispose(); @@ -2439,7 +3271,7 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 7; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } @@ -2487,6 +3319,1179 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { return lastUpdateTimeBuilder_; } + private java.util.List + resourceErrorDetails_ = java.util.Collections.emptyList(); + + private void ensureResourceErrorDetailsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + resourceErrorDetails_ = + new java.util.ArrayList( + resourceErrorDetails_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder> + resourceErrorDetailsBuilder_; + + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getResourceErrorDetailsList() { + if (resourceErrorDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceErrorDetails_); + } else { + return resourceErrorDetailsBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getResourceErrorDetailsCount() { + if (resourceErrorDetailsBuilder_ == null) { + return resourceErrorDetails_.size(); + } else { + return resourceErrorDetailsBuilder_.getCount(); + } + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail getResourceErrorDetails( + int index) { + if (resourceErrorDetailsBuilder_ == null) { + return resourceErrorDetails_.get(index); + } else { + return resourceErrorDetailsBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceErrorDetails( + int index, com.google.cloud.bigquery.migration.v2.ResourceErrorDetail value) { + if (resourceErrorDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceErrorDetailsIsMutable(); + resourceErrorDetails_.set(index, value); + onChanged(); + } else { + resourceErrorDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceErrorDetails( + int index, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder builderForValue) { + if (resourceErrorDetailsBuilder_ == null) { + ensureResourceErrorDetailsIsMutable(); + resourceErrorDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceErrorDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceErrorDetails( + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail value) { + if (resourceErrorDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceErrorDetailsIsMutable(); + resourceErrorDetails_.add(value); + onChanged(); + } else { + resourceErrorDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceErrorDetails( + int index, com.google.cloud.bigquery.migration.v2.ResourceErrorDetail value) { + if (resourceErrorDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceErrorDetailsIsMutable(); + resourceErrorDetails_.add(index, value); + onChanged(); + } else { + resourceErrorDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceErrorDetails( + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder builderForValue) { + if (resourceErrorDetailsBuilder_ == null) { + ensureResourceErrorDetailsIsMutable(); + resourceErrorDetails_.add(builderForValue.build()); + onChanged(); + } else { + resourceErrorDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceErrorDetails( + int index, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder builderForValue) { + if (resourceErrorDetailsBuilder_ == null) { + ensureResourceErrorDetailsIsMutable(); + resourceErrorDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceErrorDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllResourceErrorDetails( + java.lang.Iterable + values) { + if (resourceErrorDetailsBuilder_ == null) { + ensureResourceErrorDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceErrorDetails_); + onChanged(); + } else { + resourceErrorDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearResourceErrorDetails() { + if (resourceErrorDetailsBuilder_ == null) { + resourceErrorDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + resourceErrorDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeResourceErrorDetails(int index) { + if (resourceErrorDetailsBuilder_ == null) { + ensureResourceErrorDetailsIsMutable(); + resourceErrorDetails_.remove(index); + onChanged(); + } else { + resourceErrorDetailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder + getResourceErrorDetailsBuilder(int index) { + return getResourceErrorDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder + getResourceErrorDetailsOrBuilder(int index) { + if (resourceErrorDetailsBuilder_ == null) { + return resourceErrorDetails_.get(index); + } else { + return resourceErrorDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder> + getResourceErrorDetailsOrBuilderList() { + if (resourceErrorDetailsBuilder_ != null) { + return resourceErrorDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceErrorDetails_); + } + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder + addResourceErrorDetailsBuilder() { + return getResourceErrorDetailsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.getDefaultInstance()); + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder + addResourceErrorDetailsBuilder(int index) { + return getResourceErrorDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.getDefaultInstance()); + } + /** + * + * + *
          +     * Output only. Provides details to errors and issues encountered while
          +     * processing the task. Presence of error details does not mean that the task
          +     * failed.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getResourceErrorDetailsBuilderList() { + return getResourceErrorDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder> + getResourceErrorDetailsFieldBuilder() { + if (resourceErrorDetailsBuilder_ == null) { + resourceErrorDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder>( + resourceErrorDetails_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); + resourceErrorDetails_ = null; + } + return resourceErrorDetailsBuilder_; + } + + private int resourceErrorCount_; + /** + * + * + *
          +     * The number or resources with errors. Note: This is not the total
          +     * number of errors as each resource can have more than one error.
          +     * This is used to indicate truncation by having a `resource_error_count`
          +     * that is higher than the size of `resource_error_details`.
          +     * 
          + * + * int32 resource_error_count = 18; + * + * @return The resourceErrorCount. + */ + @java.lang.Override + public int getResourceErrorCount() { + return resourceErrorCount_; + } + /** + * + * + *
          +     * The number or resources with errors. Note: This is not the total
          +     * number of errors as each resource can have more than one error.
          +     * This is used to indicate truncation by having a `resource_error_count`
          +     * that is higher than the size of `resource_error_details`.
          +     * 
          + * + * int32 resource_error_count = 18; + * + * @param value The resourceErrorCount to set. + * @return This builder for chaining. + */ + public Builder setResourceErrorCount(int value) { + + resourceErrorCount_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
          +     * The number or resources with errors. Note: This is not the total
          +     * number of errors as each resource can have more than one error.
          +     * This is used to indicate truncation by having a `resource_error_count`
          +     * that is higher than the size of `resource_error_details`.
          +     * 
          + * + * int32 resource_error_count = 18; + * + * @return This builder for chaining. + */ + public Builder clearResourceErrorCount() { + bitField0_ = (bitField0_ & ~0x00000200); + resourceErrorCount_ = 0; + onChanged(); + return this; + } + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + metrics_ = + new java.util.ArrayList(metrics_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TimeSeries, + com.google.cloud.bigquery.migration.v2.TimeSeries.Builder, + com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder> + metricsBuilder_; + + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); + } else { + return metricsBuilder_.getCount(); + } + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public Builder setMetrics(int index, com.google.cloud.bigquery.migration.v2.TimeSeries value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public Builder setMetrics( + int index, com.google.cloud.bigquery.migration.v2.TimeSeries.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public Builder addMetrics(com.google.cloud.bigquery.migration.v2.TimeSeries value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public Builder addMetrics(int index, com.google.cloud.bigquery.migration.v2.TimeSeries value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public Builder addMetrics( + com.google.cloud.bigquery.migration.v2.TimeSeries.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public Builder addMetrics( + int index, com.google.cloud.bigquery.migration.v2.TimeSeries.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public Builder addAllMetrics( + java.lang.Iterable values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder getMetricsBuilder(int index) { + return getMetricsFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBuilder( + int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder addMetricsBuilder() { + return getMetricsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.migration.v2.TimeSeries.getDefaultInstance()); + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder addMetricsBuilder(int index) { + return getMetricsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.migration.v2.TimeSeries.getDefaultInstance()); + } + /** + * + * + *
          +     * The metrics for the task.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + public java.util.List + getMetricsBuilderList() { + return getMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TimeSeries, + com.google.cloud.bigquery.migration.v2.TimeSeries.Builder, + com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder> + getMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TimeSeries, + com.google.cloud.bigquery.migration.v2.TimeSeries.Builder, + com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder>( + metrics_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private com.google.cloud.bigquery.migration.v2.MigrationTaskResult taskResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.MigrationTaskResult, + com.google.cloud.bigquery.migration.v2.MigrationTaskResult.Builder, + com.google.cloud.bigquery.migration.v2.MigrationTaskResultOrBuilder> + taskResultBuilder_; + /** + * + * + *
          +     * Output only. The result of the task.
          +     * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the taskResult field is set. + */ + public boolean hasTaskResult() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
          +     * Output only. The result of the task.
          +     * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The taskResult. + */ + public com.google.cloud.bigquery.migration.v2.MigrationTaskResult getTaskResult() { + if (taskResultBuilder_ == null) { + return taskResult_ == null + ? com.google.cloud.bigquery.migration.v2.MigrationTaskResult.getDefaultInstance() + : taskResult_; + } else { + return taskResultBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. The result of the task.
          +     * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTaskResult(com.google.cloud.bigquery.migration.v2.MigrationTaskResult value) { + if (taskResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskResult_ = value; + } else { + taskResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The result of the task.
          +     * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTaskResult( + com.google.cloud.bigquery.migration.v2.MigrationTaskResult.Builder builderForValue) { + if (taskResultBuilder_ == null) { + taskResult_ = builderForValue.build(); + } else { + taskResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The result of the task.
          +     * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTaskResult( + com.google.cloud.bigquery.migration.v2.MigrationTaskResult value) { + if (taskResultBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && taskResult_ != null + && taskResult_ + != com.google.cloud.bigquery.migration.v2.MigrationTaskResult + .getDefaultInstance()) { + getTaskResultBuilder().mergeFrom(value); + } else { + taskResult_ = value; + } + } else { + taskResultBuilder_.mergeFrom(value); + } + if (taskResult_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. The result of the task.
          +     * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTaskResult() { + bitField0_ = (bitField0_ & ~0x00000800); + taskResult_ = null; + if (taskResultBuilder_ != null) { + taskResultBuilder_.dispose(); + taskResultBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The result of the task.
          +     * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.migration.v2.MigrationTaskResult.Builder + getTaskResultBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getTaskResultFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. The result of the task.
          +     * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.migration.v2.MigrationTaskResultOrBuilder + getTaskResultOrBuilder() { + if (taskResultBuilder_ != null) { + return taskResultBuilder_.getMessageOrBuilder(); + } else { + return taskResult_ == null + ? com.google.cloud.bigquery.migration.v2.MigrationTaskResult.getDefaultInstance() + : taskResult_; + } + } + /** + * + * + *
          +     * Output only. The result of the task.
          +     * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.MigrationTaskResult, + com.google.cloud.bigquery.migration.v2.MigrationTaskResult.Builder, + com.google.cloud.bigquery.migration.v2.MigrationTaskResultOrBuilder> + getTaskResultFieldBuilder() { + if (taskResultBuilder_ == null) { + taskResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.MigrationTaskResult, + com.google.cloud.bigquery.migration.v2.MigrationTaskResult.Builder, + com.google.cloud.bigquery.migration.v2.MigrationTaskResultOrBuilder>( + getTaskResult(), getParentForChildren(), isClean()); + taskResult_ = null; + } + return taskResultBuilder_; + } + + private int totalProcessingErrorCount_; + /** + * + * + *
          +     * Count of all the processing errors in this task and its subtasks.
          +     * 
          + * + * int32 total_processing_error_count = 21; + * + * @return The totalProcessingErrorCount. + */ + @java.lang.Override + public int getTotalProcessingErrorCount() { + return totalProcessingErrorCount_; + } + /** + * + * + *
          +     * Count of all the processing errors in this task and its subtasks.
          +     * 
          + * + * int32 total_processing_error_count = 21; + * + * @param value The totalProcessingErrorCount to set. + * @return This builder for chaining. + */ + public Builder setTotalProcessingErrorCount(int value) { + + totalProcessingErrorCount_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Count of all the processing errors in this task and its subtasks.
          +     * 
          + * + * int32 total_processing_error_count = 21; + * + * @return This builder for chaining. + */ + public Builder clearTotalProcessingErrorCount() { + bitField0_ = (bitField0_ & ~0x00001000); + totalProcessingErrorCount_ = 0; + onChanged(); + return this; + } + + private int totalResourceErrorCount_; + /** + * + * + *
          +     * Count of all the resource errors in this task and its subtasks.
          +     * 
          + * + * int32 total_resource_error_count = 22; + * + * @return The totalResourceErrorCount. + */ + @java.lang.Override + public int getTotalResourceErrorCount() { + return totalResourceErrorCount_; + } + /** + * + * + *
          +     * Count of all the resource errors in this task and its subtasks.
          +     * 
          + * + * int32 total_resource_error_count = 22; + * + * @param value The totalResourceErrorCount to set. + * @return This builder for chaining. + */ + public Builder setTotalResourceErrorCount(int value) { + + totalResourceErrorCount_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Count of all the resource errors in this task and its subtasks.
          +     * 
          + * + * int32 total_resource_error_count = 22; + * + * @return This builder for chaining. + */ + public Builder clearTotalResourceErrorCount() { + bitField0_ = (bitField0_ & ~0x00002000); + totalResourceErrorCount_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java index 5dc788295ccb..11420dec3a8d 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java @@ -28,7 +28,7 @@ public interface MigrationTaskOrBuilder * * *
          -   * Task configuration for Batch SQL Translation.
          +   * Task configuration for CW Batch/Offline SQL Translation.
              * 
          * * @@ -42,7 +42,7 @@ public interface MigrationTaskOrBuilder * * *
          -   * Task configuration for Batch SQL Translation.
          +   * Task configuration for CW Batch/Offline SQL Translation.
              * 
          * * @@ -56,7 +56,7 @@ public interface MigrationTaskOrBuilder * * *
          -   * Task configuration for Batch SQL Translation.
          +   * Task configuration for CW Batch/Offline SQL Translation.
              * 
          * * @@ -66,6 +66,42 @@ public interface MigrationTaskOrBuilder com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder getTranslationConfigDetailsOrBuilder(); + /** + * + * + *
          +   * Task details for unified SQL Translation.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + * + * @return Whether the translationDetails field is set. + */ + boolean hasTranslationDetails(); + /** + * + * + *
          +   * Task details for unified SQL Translation.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + * + * @return The translationDetails. + */ + com.google.cloud.bigquery.migration.v2.TranslationDetails getTranslationDetails(); + /** + * + * + *
          +   * Task details for unified SQL Translation.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + */ + com.google.cloud.bigquery.migration.v2.TranslationDetailsOrBuilder + getTranslationDetailsOrBuilder(); + /** * * @@ -107,7 +143,7 @@ public interface MigrationTaskOrBuilder * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - * Translation_Postgresql2BQ. + * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. * * * string type = 2; @@ -125,7 +161,7 @@ public interface MigrationTaskOrBuilder * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - * Translation_Postgresql2BQ. + * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. * * * string type = 2; @@ -274,5 +310,214 @@ public interface MigrationTaskOrBuilder */ com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); + /** + * + * + *
          +   * Output only. Provides details to errors and issues encountered while
          +   * processing the task. Presence of error details does not mean that the task
          +   * failed.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getResourceErrorDetailsList(); + /** + * + * + *
          +   * Output only. Provides details to errors and issues encountered while
          +   * processing the task. Presence of error details does not mean that the task
          +   * failed.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail getResourceErrorDetails(int index); + /** + * + * + *
          +   * Output only. Provides details to errors and issues encountered while
          +   * processing the task. Presence of error details does not mean that the task
          +   * failed.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getResourceErrorDetailsCount(); + /** + * + * + *
          +   * Output only. Provides details to errors and issues encountered while
          +   * processing the task. Presence of error details does not mean that the task
          +   * failed.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getResourceErrorDetailsOrBuilderList(); + /** + * + * + *
          +   * Output only. Provides details to errors and issues encountered while
          +   * processing the task. Presence of error details does not mean that the task
          +   * failed.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder + getResourceErrorDetailsOrBuilder(int index); + + /** + * + * + *
          +   * The number or resources with errors. Note: This is not the total
          +   * number of errors as each resource can have more than one error.
          +   * This is used to indicate truncation by having a `resource_error_count`
          +   * that is higher than the size of `resource_error_details`.
          +   * 
          + * + * int32 resource_error_count = 18; + * + * @return The resourceErrorCount. + */ + int getResourceErrorCount(); + + /** + * + * + *
          +   * The metrics for the task.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + java.util.List getMetricsList(); + /** + * + * + *
          +   * The metrics for the task.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index); + /** + * + * + *
          +   * The metrics for the task.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + int getMetricsCount(); + /** + * + * + *
          +   * The metrics for the task.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + java.util.List + getMetricsOrBuilderList(); + /** + * + * + *
          +   * The metrics for the task.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + */ + com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBuilder(int index); + + /** + * + * + *
          +   * Output only. The result of the task.
          +   * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the taskResult field is set. + */ + boolean hasTaskResult(); + /** + * + * + *
          +   * Output only. The result of the task.
          +   * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The taskResult. + */ + com.google.cloud.bigquery.migration.v2.MigrationTaskResult getTaskResult(); + /** + * + * + *
          +   * Output only. The result of the task.
          +   * 
          + * + * + * .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.bigquery.migration.v2.MigrationTaskResultOrBuilder getTaskResultOrBuilder(); + + /** + * + * + *
          +   * Count of all the processing errors in this task and its subtasks.
          +   * 
          + * + * int32 total_processing_error_count = 21; + * + * @return The totalProcessingErrorCount. + */ + int getTotalProcessingErrorCount(); + + /** + * + * + *
          +   * Count of all the resource errors in this task and its subtasks.
          +   * 
          + * + * int32 total_resource_error_count = 22; + * + * @return The totalResourceErrorCount. + */ + int getTotalResourceErrorCount(); + com.google.cloud.bigquery.migration.v2.MigrationTask.TaskDetailsCase getTaskDetailsCase(); } diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskResult.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskResult.java new file mode 100644 index 000000000000..d19e272e3413 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskResult.java @@ -0,0 +1,841 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/migration_entities.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
          + * The migration task result.
          + * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.MigrationTaskResult} + */ +public final class MigrationTaskResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.MigrationTaskResult) + MigrationTaskResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use MigrationTaskResult.newBuilder() to construct. + private MigrationTaskResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MigrationTaskResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MigrationTaskResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.MigrationTaskResult.class, + com.google.cloud.bigquery.migration.v2.MigrationTaskResult.Builder.class); + } + + private int detailsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object details_; + + public enum DetailsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TRANSLATION_TASK_RESULT(2), + DETAILS_NOT_SET(0); + private final int value; + + private DetailsCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DetailsCase valueOf(int value) { + return forNumber(value); + } + + public static DetailsCase forNumber(int value) { + switch (value) { + case 2: + return TRANSLATION_TASK_RESULT; + case 0: + return DETAILS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); + } + + public static final int TRANSLATION_TASK_RESULT_FIELD_NUMBER = 2; + /** + * + * + *
          +   * Details specific to translation task types.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + * + * @return Whether the translationTaskResult field is set. + */ + @java.lang.Override + public boolean hasTranslationTaskResult() { + return detailsCase_ == 2; + } + /** + * + * + *
          +   * Details specific to translation task types.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + * + * @return The translationTaskResult. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationTaskResult getTranslationTaskResult() { + if (detailsCase_ == 2) { + return (com.google.cloud.bigquery.migration.v2.TranslationTaskResult) details_; + } + return com.google.cloud.bigquery.migration.v2.TranslationTaskResult.getDefaultInstance(); + } + /** + * + * + *
          +   * Details specific to translation task types.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationTaskResultOrBuilder + getTranslationTaskResultOrBuilder() { + if (detailsCase_ == 2) { + return (com.google.cloud.bigquery.migration.v2.TranslationTaskResult) details_; + } + return com.google.cloud.bigquery.migration.v2.TranslationTaskResult.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (detailsCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.bigquery.migration.v2.TranslationTaskResult) details_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (detailsCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.bigquery.migration.v2.TranslationTaskResult) details_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.migration.v2.MigrationTaskResult)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.MigrationTaskResult other = + (com.google.cloud.bigquery.migration.v2.MigrationTaskResult) obj; + + if (!getDetailsCase().equals(other.getDetailsCase())) return false; + switch (detailsCase_) { + case 2: + if (!getTranslationTaskResult().equals(other.getTranslationTaskResult())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (detailsCase_) { + case 2: + hash = (37 * hash) + TRANSLATION_TASK_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getTranslationTaskResult().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.migration.v2.MigrationTaskResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.MigrationTaskResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.MigrationTaskResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.MigrationTaskResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.MigrationTaskResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.MigrationTaskResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.MigrationTaskResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.MigrationTaskResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.MigrationTaskResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.MigrationTaskResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.MigrationTaskResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.MigrationTaskResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.MigrationTaskResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * The migration task result.
          +   * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.MigrationTaskResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.MigrationTaskResult) + com.google.cloud.bigquery.migration.v2.MigrationTaskResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.MigrationTaskResult.class, + com.google.cloud.bigquery.migration.v2.MigrationTaskResult.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.MigrationTaskResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (translationTaskResultBuilder_ != null) { + translationTaskResultBuilder_.clear(); + } + detailsCase_ = 0; + details_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.MigrationTaskResult getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.MigrationTaskResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.MigrationTaskResult build() { + com.google.cloud.bigquery.migration.v2.MigrationTaskResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.MigrationTaskResult buildPartial() { + com.google.cloud.bigquery.migration.v2.MigrationTaskResult result = + new com.google.cloud.bigquery.migration.v2.MigrationTaskResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.migration.v2.MigrationTaskResult result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.bigquery.migration.v2.MigrationTaskResult result) { + result.detailsCase_ = detailsCase_; + result.details_ = this.details_; + if (detailsCase_ == 2 && translationTaskResultBuilder_ != null) { + result.details_ = translationTaskResultBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.migration.v2.MigrationTaskResult) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.MigrationTaskResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationTaskResult other) { + if (other == com.google.cloud.bigquery.migration.v2.MigrationTaskResult.getDefaultInstance()) + return this; + switch (other.getDetailsCase()) { + case TRANSLATION_TASK_RESULT: + { + mergeTranslationTaskResult(other.getTranslationTaskResult()); + break; + } + case DETAILS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage( + getTranslationTaskResultFieldBuilder().getBuilder(), extensionRegistry); + detailsCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int detailsCase_ = 0; + private java.lang.Object details_; + + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); + } + + public Builder clearDetails() { + detailsCase_ = 0; + details_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TranslationTaskResult, + com.google.cloud.bigquery.migration.v2.TranslationTaskResult.Builder, + com.google.cloud.bigquery.migration.v2.TranslationTaskResultOrBuilder> + translationTaskResultBuilder_; + /** + * + * + *
          +     * Details specific to translation task types.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + * + * @return Whether the translationTaskResult field is set. + */ + @java.lang.Override + public boolean hasTranslationTaskResult() { + return detailsCase_ == 2; + } + /** + * + * + *
          +     * Details specific to translation task types.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + * + * @return The translationTaskResult. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationTaskResult getTranslationTaskResult() { + if (translationTaskResultBuilder_ == null) { + if (detailsCase_ == 2) { + return (com.google.cloud.bigquery.migration.v2.TranslationTaskResult) details_; + } + return com.google.cloud.bigquery.migration.v2.TranslationTaskResult.getDefaultInstance(); + } else { + if (detailsCase_ == 2) { + return translationTaskResultBuilder_.getMessage(); + } + return com.google.cloud.bigquery.migration.v2.TranslationTaskResult.getDefaultInstance(); + } + } + /** + * + * + *
          +     * Details specific to translation task types.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + */ + public Builder setTranslationTaskResult( + com.google.cloud.bigquery.migration.v2.TranslationTaskResult value) { + if (translationTaskResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + translationTaskResultBuilder_.setMessage(value); + } + detailsCase_ = 2; + return this; + } + /** + * + * + *
          +     * Details specific to translation task types.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + */ + public Builder setTranslationTaskResult( + com.google.cloud.bigquery.migration.v2.TranslationTaskResult.Builder builderForValue) { + if (translationTaskResultBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + translationTaskResultBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 2; + return this; + } + /** + * + * + *
          +     * Details specific to translation task types.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + */ + public Builder mergeTranslationTaskResult( + com.google.cloud.bigquery.migration.v2.TranslationTaskResult value) { + if (translationTaskResultBuilder_ == null) { + if (detailsCase_ == 2 + && details_ + != com.google.cloud.bigquery.migration.v2.TranslationTaskResult + .getDefaultInstance()) { + details_ = + com.google.cloud.bigquery.migration.v2.TranslationTaskResult.newBuilder( + (com.google.cloud.bigquery.migration.v2.TranslationTaskResult) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 2) { + translationTaskResultBuilder_.mergeFrom(value); + } else { + translationTaskResultBuilder_.setMessage(value); + } + } + detailsCase_ = 2; + return this; + } + /** + * + * + *
          +     * Details specific to translation task types.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + */ + public Builder clearTranslationTaskResult() { + if (translationTaskResultBuilder_ == null) { + if (detailsCase_ == 2) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 2) { + detailsCase_ = 0; + details_ = null; + } + translationTaskResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Details specific to translation task types.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + */ + public com.google.cloud.bigquery.migration.v2.TranslationTaskResult.Builder + getTranslationTaskResultBuilder() { + return getTranslationTaskResultFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Details specific to translation task types.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationTaskResultOrBuilder + getTranslationTaskResultOrBuilder() { + if ((detailsCase_ == 2) && (translationTaskResultBuilder_ != null)) { + return translationTaskResultBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 2) { + return (com.google.cloud.bigquery.migration.v2.TranslationTaskResult) details_; + } + return com.google.cloud.bigquery.migration.v2.TranslationTaskResult.getDefaultInstance(); + } + } + /** + * + * + *
          +     * Details specific to translation task types.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TranslationTaskResult, + com.google.cloud.bigquery.migration.v2.TranslationTaskResult.Builder, + com.google.cloud.bigquery.migration.v2.TranslationTaskResultOrBuilder> + getTranslationTaskResultFieldBuilder() { + if (translationTaskResultBuilder_ == null) { + if (!(detailsCase_ == 2)) { + details_ = + com.google.cloud.bigquery.migration.v2.TranslationTaskResult.getDefaultInstance(); + } + translationTaskResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TranslationTaskResult, + com.google.cloud.bigquery.migration.v2.TranslationTaskResult.Builder, + com.google.cloud.bigquery.migration.v2.TranslationTaskResultOrBuilder>( + (com.google.cloud.bigquery.migration.v2.TranslationTaskResult) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 2; + onChanged(); + return translationTaskResultBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.MigrationTaskResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.MigrationTaskResult) + private static final com.google.cloud.bigquery.migration.v2.MigrationTaskResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.MigrationTaskResult(); + } + + public static com.google.cloud.bigquery.migration.v2.MigrationTaskResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationTaskResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.MigrationTaskResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskResultOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskResultOrBuilder.java new file mode 100644 index 000000000000..5df6a261098d --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskResultOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/migration_entities.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public interface MigrationTaskResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.MigrationTaskResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Details specific to translation task types.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + * + * @return Whether the translationTaskResult field is set. + */ + boolean hasTranslationTaskResult(); + /** + * + * + *
          +   * Details specific to translation task types.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + * + * @return The translationTaskResult. + */ + com.google.cloud.bigquery.migration.v2.TranslationTaskResult getTranslationTaskResult(); + /** + * + * + *
          +   * Details specific to translation task types.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * + */ + com.google.cloud.bigquery.migration.v2.TranslationTaskResultOrBuilder + getTranslationTaskResultOrBuilder(); + + com.google.cloud.bigquery.migration.v2.MigrationTaskResult.DetailsCase getDetailsCase(); +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java index 248529b32462..d9fbee1d4ff7 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java @@ -298,14 +298,14 @@ private State(int value) { * * *
          -   * Output only. Immutable. The unique identifier for the migration workflow.
          -   * The ID is server-generated.
          +   * Output only. Immutable. Identifier. The unique identifier for the migration
          +   * workflow. The ID is server-generated.
              *
              * Example: `projects/123/locations/us/workflows/345`
              * 
          * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; * * * @return The name. @@ -326,14 +326,14 @@ public java.lang.String getName() { * * *
          -   * Output only. Immutable. The unique identifier for the migration workflow.
          -   * The ID is server-generated.
          +   * Output only. Immutable. Identifier. The unique identifier for the migration
          +   * workflow. The ID is server-generated.
              *
              * Example: `projects/123/locations/us/workflows/345`
              * 
          * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; * * * @return The bytes for name. @@ -1201,14 +1201,14 @@ public Builder mergeFrom( * * *
          -     * Output only. Immutable. The unique identifier for the migration workflow.
          -     * The ID is server-generated.
          +     * Output only. Immutable. Identifier. The unique identifier for the migration
          +     * workflow. The ID is server-generated.
                *
                * Example: `projects/123/locations/us/workflows/345`
                * 
          * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; * * * @return The name. @@ -1228,14 +1228,14 @@ public java.lang.String getName() { * * *
          -     * Output only. Immutable. The unique identifier for the migration workflow.
          -     * The ID is server-generated.
          +     * Output only. Immutable. Identifier. The unique identifier for the migration
          +     * workflow. The ID is server-generated.
                *
                * Example: `projects/123/locations/us/workflows/345`
                * 
          * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; * * * @return The bytes for name. @@ -1255,14 +1255,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
          -     * Output only. Immutable. The unique identifier for the migration workflow.
          -     * The ID is server-generated.
          +     * Output only. Immutable. Identifier. The unique identifier for the migration
          +     * workflow. The ID is server-generated.
                *
                * Example: `projects/123/locations/us/workflows/345`
                * 
          * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; * * * @param value The name to set. @@ -1281,14 +1281,14 @@ public Builder setName(java.lang.String value) { * * *
          -     * Output only. Immutable. The unique identifier for the migration workflow.
          -     * The ID is server-generated.
          +     * Output only. Immutable. Identifier. The unique identifier for the migration
          +     * workflow. The ID is server-generated.
                *
                * Example: `projects/123/locations/us/workflows/345`
                * 
          * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; * * * @return This builder for chaining. @@ -1303,14 +1303,14 @@ public Builder clearName() { * * *
          -     * Output only. Immutable. The unique identifier for the migration workflow.
          -     * The ID is server-generated.
          +     * Output only. Immutable. Identifier. The unique identifier for the migration
          +     * workflow. The ID is server-generated.
                *
                * Example: `projects/123/locations/us/workflows/345`
                * 
          * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; * * * @param value The bytes for name to set. diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java index 8afc92237a5a..15aeda42afa3 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java @@ -28,14 +28,14 @@ public interface MigrationWorkflowOrBuilder * * *
          -   * Output only. Immutable. The unique identifier for the migration workflow.
          -   * The ID is server-generated.
          +   * Output only. Immutable. Identifier. The unique identifier for the migration
          +   * workflow. The ID is server-generated.
              *
              * Example: `projects/123/locations/us/workflows/345`
              * 
          * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; * * * @return The name. @@ -45,14 +45,14 @@ public interface MigrationWorkflowOrBuilder * * *
          -   * Output only. Immutable. The unique identifier for the migration workflow.
          -   * The ID is server-generated.
          +   * Output only. Immutable. Identifier. The unique identifier for the migration
          +   * workflow. The ID is server-generated.
              *
              * Example: `projects/123/locations/us/workflows/345`
              * 
          * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; * * * @return The bytes for name. diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLiteDialect.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLiteDialect.java new file mode 100644 index 000000000000..6068afa91813 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLiteDialect.java @@ -0,0 +1,432 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
          + * The dialect definition for SQLite.
          + * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.SQLiteDialect} + */ +public final class SQLiteDialect extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.SQLiteDialect) + SQLiteDialectOrBuilder { + private static final long serialVersionUID = 0L; + // Use SQLiteDialect.newBuilder() to construct. + private SQLiteDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SQLiteDialect() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SQLiteDialect(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLiteDialect_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLiteDialect_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.SQLiteDialect.class, + com.google.cloud.bigquery.migration.v2.SQLiteDialect.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.migration.v2.SQLiteDialect)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.SQLiteDialect other = + (com.google.cloud.bigquery.migration.v2.SQLiteDialect) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.migration.v2.SQLiteDialect parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SQLiteDialect parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SQLiteDialect parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SQLiteDialect parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SQLiteDialect parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SQLiteDialect parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SQLiteDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SQLiteDialect parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SQLiteDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SQLiteDialect parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SQLiteDialect parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SQLiteDialect parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.SQLiteDialect prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * The dialect definition for SQLite.
          +   * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.SQLiteDialect} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.SQLiteDialect) + com.google.cloud.bigquery.migration.v2.SQLiteDialectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLiteDialect_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLiteDialect_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.SQLiteDialect.class, + com.google.cloud.bigquery.migration.v2.SQLiteDialect.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.SQLiteDialect.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLiteDialect_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLiteDialect getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.SQLiteDialect.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLiteDialect build() { + com.google.cloud.bigquery.migration.v2.SQLiteDialect result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLiteDialect buildPartial() { + com.google.cloud.bigquery.migration.v2.SQLiteDialect result = + new com.google.cloud.bigquery.migration.v2.SQLiteDialect(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.migration.v2.SQLiteDialect) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.SQLiteDialect) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.SQLiteDialect other) { + if (other == com.google.cloud.bigquery.migration.v2.SQLiteDialect.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.SQLiteDialect) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.SQLiteDialect) + private static final com.google.cloud.bigquery.migration.v2.SQLiteDialect DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.SQLiteDialect(); + } + + public static com.google.cloud.bigquery.migration.v2.SQLiteDialect getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SQLiteDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLiteDialect getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLiteDialectOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLiteDialectOrBuilder.java new file mode 100644 index 000000000000..3d891bc5ed9a --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLiteDialectOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public interface SQLiteDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.SQLiteDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnv.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnv.java index d14e2a77d826..1aa440838191 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnv.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnv.java @@ -41,6 +41,7 @@ private SourceEnv(com.google.protobuf.GeneratedMessageV3.Builder builder) { private SourceEnv() { defaultDatabase_ = ""; schemaSearchPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + metadataStoreDataset_ = ""; } @java.lang.Override @@ -185,6 +186,67 @@ public com.google.protobuf.ByteString getSchemaSearchPathBytes(int index) { return schemaSearchPath_.getByteString(index); } + public static final int METADATA_STORE_DATASET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataStoreDataset_ = ""; + /** + * + * + *
          +   * Optional. Expects a valid BigQuery dataset ID that exists, e.g.,
          +   * project-123.metadata_store_123.  If specified, translation will search and
          +   * read the required schema information from a metadata store in this dataset.
          +   * If metadata store doesn't exist, translation will parse the metadata file
          +   * and upload the schema info to a temp table in the dataset to speed up
          +   * future translation jobs.
          +   * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataStoreDataset. + */ + @java.lang.Override + public java.lang.String getMetadataStoreDataset() { + java.lang.Object ref = metadataStoreDataset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataStoreDataset_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Expects a valid BigQuery dataset ID that exists, e.g.,
          +   * project-123.metadata_store_123.  If specified, translation will search and
          +   * read the required schema information from a metadata store in this dataset.
          +   * If metadata store doesn't exist, translation will parse the metadata file
          +   * and upload the schema info to a temp table in the dataset to speed up
          +   * future translation jobs.
          +   * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataStoreDataset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadataStoreDatasetBytes() { + java.lang.Object ref = metadataStoreDataset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataStoreDataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -205,6 +267,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < schemaSearchPath_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaSearchPath_.getRaw(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataStoreDataset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, metadataStoreDataset_); + } getUnknownFields().writeTo(output); } @@ -225,6 +290,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSchemaSearchPathList().size(); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataStoreDataset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, metadataStoreDataset_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -243,6 +311,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDefaultDatabase().equals(other.getDefaultDatabase())) return false; if (!getSchemaSearchPathList().equals(other.getSchemaSearchPathList())) return false; + if (!getMetadataStoreDataset().equals(other.getMetadataStoreDataset())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,6 +329,8 @@ public int hashCode() { hash = (37 * hash) + SCHEMA_SEARCH_PATH_FIELD_NUMBER; hash = (53 * hash) + getSchemaSearchPathList().hashCode(); } + hash = (37 * hash) + METADATA_STORE_DATASET_FIELD_NUMBER; + hash = (53 * hash) + getMetadataStoreDataset().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -401,6 +472,7 @@ public Builder clear() { bitField0_ = 0; defaultDatabase_ = ""; schemaSearchPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + metadataStoreDataset_ = ""; return this; } @@ -444,6 +516,9 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.SourceEnv resu schemaSearchPath_.makeImmutable(); result.schemaSearchPath_ = schemaSearchPath_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadataStoreDataset_ = metadataStoreDataset_; + } } @java.lang.Override @@ -507,6 +582,11 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.SourceEnv other) } onChanged(); } + if (!other.getMetadataStoreDataset().isEmpty()) { + metadataStoreDataset_ = other.metadataStoreDataset_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -546,6 +626,12 @@ public Builder mergeFrom( schemaSearchPath_.add(s); break; } // case 18 + case 26: + { + metadataStoreDataset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -859,6 +945,137 @@ public Builder addSchemaSearchPathBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object metadataStoreDataset_ = ""; + /** + * + * + *
          +     * Optional. Expects a valid BigQuery dataset ID that exists, e.g.,
          +     * project-123.metadata_store_123.  If specified, translation will search and
          +     * read the required schema information from a metadata store in this dataset.
          +     * If metadata store doesn't exist, translation will parse the metadata file
          +     * and upload the schema info to a temp table in the dataset to speed up
          +     * future translation jobs.
          +     * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataStoreDataset. + */ + public java.lang.String getMetadataStoreDataset() { + java.lang.Object ref = metadataStoreDataset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataStoreDataset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Expects a valid BigQuery dataset ID that exists, e.g.,
          +     * project-123.metadata_store_123.  If specified, translation will search and
          +     * read the required schema information from a metadata store in this dataset.
          +     * If metadata store doesn't exist, translation will parse the metadata file
          +     * and upload the schema info to a temp table in the dataset to speed up
          +     * future translation jobs.
          +     * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataStoreDataset. + */ + public com.google.protobuf.ByteString getMetadataStoreDatasetBytes() { + java.lang.Object ref = metadataStoreDataset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataStoreDataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Expects a valid BigQuery dataset ID that exists, e.g.,
          +     * project-123.metadata_store_123.  If specified, translation will search and
          +     * read the required schema information from a metadata store in this dataset.
          +     * If metadata store doesn't exist, translation will parse the metadata file
          +     * and upload the schema info to a temp table in the dataset to speed up
          +     * future translation jobs.
          +     * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The metadataStoreDataset to set. + * @return This builder for chaining. + */ + public Builder setMetadataStoreDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metadataStoreDataset_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Expects a valid BigQuery dataset ID that exists, e.g.,
          +     * project-123.metadata_store_123.  If specified, translation will search and
          +     * read the required schema information from a metadata store in this dataset.
          +     * If metadata store doesn't exist, translation will parse the metadata file
          +     * and upload the schema info to a temp table in the dataset to speed up
          +     * future translation jobs.
          +     * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMetadataStoreDataset() { + metadataStoreDataset_ = getDefaultInstance().getMetadataStoreDataset(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Expects a valid BigQuery dataset ID that exists, e.g.,
          +     * project-123.metadata_store_123.  If specified, translation will search and
          +     * read the required schema information from a metadata store in this dataset.
          +     * If metadata store doesn't exist, translation will parse the metadata file
          +     * and upload the schema info to a temp table in the dataset to speed up
          +     * future translation jobs.
          +     * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for metadataStoreDataset to set. + * @return This builder for chaining. + */ + public Builder setMetadataStoreDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metadataStoreDataset_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvOrBuilder.java index 53aac6ec389e..4de71899ee92 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvOrBuilder.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvOrBuilder.java @@ -105,4 +105,39 @@ public interface SourceEnvOrBuilder * @return The bytes of the schemaSearchPath at the given index. */ com.google.protobuf.ByteString getSchemaSearchPathBytes(int index); + + /** + * + * + *
          +   * Optional. Expects a valid BigQuery dataset ID that exists, e.g.,
          +   * project-123.metadata_store_123.  If specified, translation will search and
          +   * read the required schema information from a metadata store in this dataset.
          +   * If metadata store doesn't exist, translation will parse the metadata file
          +   * and upload the schema info to a temp table in the dataset to speed up
          +   * future translation jobs.
          +   * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataStoreDataset. + */ + java.lang.String getMetadataStoreDataset(); + /** + * + * + *
          +   * Optional. Expects a valid BigQuery dataset ID that exists, e.g.,
          +   * project-123.metadata_store_123.  If specified, translation will search and
          +   * read the required schema information from a metadata store in this dataset.
          +   * If metadata store doesn't exist, translation will parse the metadata file
          +   * and upload the schema info to a temp table in the dataset to speed up
          +   * future translation jobs.
          +   * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataStoreDataset. + */ + com.google.protobuf.ByteString getMetadataStoreDatasetBytes(); } diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvironment.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvironment.java new file mode 100644 index 000000000000..a3613501a39a --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvironment.java @@ -0,0 +1,1140 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_details.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
          + * Represents the default source environment values for the translation.
          + * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.SourceEnvironment} + */ +public final class SourceEnvironment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.SourceEnvironment) + SourceEnvironmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use SourceEnvironment.newBuilder() to construct. + private SourceEnvironment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SourceEnvironment() { + defaultDatabase_ = ""; + schemaSearchPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + metadataStoreDataset_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SourceEnvironment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceEnvironment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceEnvironment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.SourceEnvironment.class, + com.google.cloud.bigquery.migration.v2.SourceEnvironment.Builder.class); + } + + public static final int DEFAULT_DATABASE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultDatabase_ = ""; + /** + * + * + *
          +   * The default database name to fully qualify SQL objects when their database
          +   * name is missing.
          +   * 
          + * + * string default_database = 1; + * + * @return The defaultDatabase. + */ + @java.lang.Override + public java.lang.String getDefaultDatabase() { + java.lang.Object ref = defaultDatabase_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultDatabase_ = s; + return s; + } + } + /** + * + * + *
          +   * The default database name to fully qualify SQL objects when their database
          +   * name is missing.
          +   * 
          + * + * string default_database = 1; + * + * @return The bytes for defaultDatabase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultDatabaseBytes() { + java.lang.Object ref = defaultDatabase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultDatabase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_SEARCH_PATH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList schemaSearchPath_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * The schema search path. When SQL objects are missing schema name,
          +   * translation engine will search through this list to find the value.
          +   * 
          + * + * repeated string schema_search_path = 2; + * + * @return A list containing the schemaSearchPath. + */ + public com.google.protobuf.ProtocolStringList getSchemaSearchPathList() { + return schemaSearchPath_; + } + /** + * + * + *
          +   * The schema search path. When SQL objects are missing schema name,
          +   * translation engine will search through this list to find the value.
          +   * 
          + * + * repeated string schema_search_path = 2; + * + * @return The count of schemaSearchPath. + */ + public int getSchemaSearchPathCount() { + return schemaSearchPath_.size(); + } + /** + * + * + *
          +   * The schema search path. When SQL objects are missing schema name,
          +   * translation engine will search through this list to find the value.
          +   * 
          + * + * repeated string schema_search_path = 2; + * + * @param index The index of the element to return. + * @return The schemaSearchPath at the given index. + */ + public java.lang.String getSchemaSearchPath(int index) { + return schemaSearchPath_.get(index); + } + /** + * + * + *
          +   * The schema search path. When SQL objects are missing schema name,
          +   * translation engine will search through this list to find the value.
          +   * 
          + * + * repeated string schema_search_path = 2; + * + * @param index The index of the value to return. + * @return The bytes of the schemaSearchPath at the given index. + */ + public com.google.protobuf.ByteString getSchemaSearchPathBytes(int index) { + return schemaSearchPath_.getByteString(index); + } + + public static final int METADATA_STORE_DATASET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataStoreDataset_ = ""; + /** + * + * + *
          +   * Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
          +   * project-123.metadata_store_123.  If specified, translation will search and
          +   * read the required schema information from a metadata store in this dataset.
          +   * If metadata store doesn't exist, translation will parse the metadata file
          +   * and upload the schema info to a temp table in the dataset to speed up
          +   * future translation jobs.
          +   * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataStoreDataset. + */ + @java.lang.Override + public java.lang.String getMetadataStoreDataset() { + java.lang.Object ref = metadataStoreDataset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataStoreDataset_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
          +   * project-123.metadata_store_123.  If specified, translation will search and
          +   * read the required schema information from a metadata store in this dataset.
          +   * If metadata store doesn't exist, translation will parse the metadata file
          +   * and upload the schema info to a temp table in the dataset to speed up
          +   * future translation jobs.
          +   * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataStoreDataset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadataStoreDatasetBytes() { + java.lang.Object ref = metadataStoreDataset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataStoreDataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultDatabase_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultDatabase_); + } + for (int i = 0; i < schemaSearchPath_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaSearchPath_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataStoreDataset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, metadataStoreDataset_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultDatabase_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, defaultDatabase_); + } + { + int dataSize = 0; + for (int i = 0; i < schemaSearchPath_.size(); i++) { + dataSize += computeStringSizeNoTag(schemaSearchPath_.getRaw(i)); + } + size += dataSize; + size += 1 * getSchemaSearchPathList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataStoreDataset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, metadataStoreDataset_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.migration.v2.SourceEnvironment)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.SourceEnvironment other = + (com.google.cloud.bigquery.migration.v2.SourceEnvironment) obj; + + if (!getDefaultDatabase().equals(other.getDefaultDatabase())) return false; + if (!getSchemaSearchPathList().equals(other.getSchemaSearchPathList())) return false; + if (!getMetadataStoreDataset().equals(other.getMetadataStoreDataset())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEFAULT_DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultDatabase().hashCode(); + if (getSchemaSearchPathCount() > 0) { + hash = (37 * hash) + SCHEMA_SEARCH_PATH_FIELD_NUMBER; + hash = (53 * hash) + getSchemaSearchPathList().hashCode(); + } + hash = (37 * hash) + METADATA_STORE_DATASET_FIELD_NUMBER; + hash = (53 * hash) + getMetadataStoreDataset().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.migration.v2.SourceEnvironment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SourceEnvironment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceEnvironment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SourceEnvironment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceEnvironment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SourceEnvironment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceEnvironment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SourceEnvironment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceEnvironment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SourceEnvironment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceEnvironment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SourceEnvironment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.SourceEnvironment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Represents the default source environment values for the translation.
          +   * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.SourceEnvironment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.SourceEnvironment) + com.google.cloud.bigquery.migration.v2.SourceEnvironmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceEnvironment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceEnvironment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.SourceEnvironment.class, + com.google.cloud.bigquery.migration.v2.SourceEnvironment.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.SourceEnvironment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultDatabase_ = ""; + schemaSearchPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + metadataStoreDataset_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceEnvironment_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceEnvironment getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.SourceEnvironment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceEnvironment build() { + com.google.cloud.bigquery.migration.v2.SourceEnvironment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceEnvironment buildPartial() { + com.google.cloud.bigquery.migration.v2.SourceEnvironment result = + new com.google.cloud.bigquery.migration.v2.SourceEnvironment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.migration.v2.SourceEnvironment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultDatabase_ = defaultDatabase_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + schemaSearchPath_.makeImmutable(); + result.schemaSearchPath_ = schemaSearchPath_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadataStoreDataset_ = metadataStoreDataset_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.migration.v2.SourceEnvironment) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.SourceEnvironment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.SourceEnvironment other) { + if (other == com.google.cloud.bigquery.migration.v2.SourceEnvironment.getDefaultInstance()) + return this; + if (!other.getDefaultDatabase().isEmpty()) { + defaultDatabase_ = other.defaultDatabase_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.schemaSearchPath_.isEmpty()) { + if (schemaSearchPath_.isEmpty()) { + schemaSearchPath_ = other.schemaSearchPath_; + bitField0_ |= 0x00000002; + } else { + ensureSchemaSearchPathIsMutable(); + schemaSearchPath_.addAll(other.schemaSearchPath_); + } + onChanged(); + } + if (!other.getMetadataStoreDataset().isEmpty()) { + metadataStoreDataset_ = other.metadataStoreDataset_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + defaultDatabase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSchemaSearchPathIsMutable(); + schemaSearchPath_.add(s); + break; + } // case 18 + case 26: + { + metadataStoreDataset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object defaultDatabase_ = ""; + /** + * + * + *
          +     * The default database name to fully qualify SQL objects when their database
          +     * name is missing.
          +     * 
          + * + * string default_database = 1; + * + * @return The defaultDatabase. + */ + public java.lang.String getDefaultDatabase() { + java.lang.Object ref = defaultDatabase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultDatabase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The default database name to fully qualify SQL objects when their database
          +     * name is missing.
          +     * 
          + * + * string default_database = 1; + * + * @return The bytes for defaultDatabase. + */ + public com.google.protobuf.ByteString getDefaultDatabaseBytes() { + java.lang.Object ref = defaultDatabase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultDatabase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The default database name to fully qualify SQL objects when their database
          +     * name is missing.
          +     * 
          + * + * string default_database = 1; + * + * @param value The defaultDatabase to set. + * @return This builder for chaining. + */ + public Builder setDefaultDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultDatabase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * The default database name to fully qualify SQL objects when their database
          +     * name is missing.
          +     * 
          + * + * string default_database = 1; + * + * @return This builder for chaining. + */ + public Builder clearDefaultDatabase() { + defaultDatabase_ = getDefaultInstance().getDefaultDatabase(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * The default database name to fully qualify SQL objects when their database
          +     * name is missing.
          +     * 
          + * + * string default_database = 1; + * + * @param value The bytes for defaultDatabase to set. + * @return This builder for chaining. + */ + public Builder setDefaultDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultDatabase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList schemaSearchPath_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSchemaSearchPathIsMutable() { + if (!schemaSearchPath_.isModifiable()) { + schemaSearchPath_ = new com.google.protobuf.LazyStringArrayList(schemaSearchPath_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
          +     * The schema search path. When SQL objects are missing schema name,
          +     * translation engine will search through this list to find the value.
          +     * 
          + * + * repeated string schema_search_path = 2; + * + * @return A list containing the schemaSearchPath. + */ + public com.google.protobuf.ProtocolStringList getSchemaSearchPathList() { + schemaSearchPath_.makeImmutable(); + return schemaSearchPath_; + } + /** + * + * + *
          +     * The schema search path. When SQL objects are missing schema name,
          +     * translation engine will search through this list to find the value.
          +     * 
          + * + * repeated string schema_search_path = 2; + * + * @return The count of schemaSearchPath. + */ + public int getSchemaSearchPathCount() { + return schemaSearchPath_.size(); + } + /** + * + * + *
          +     * The schema search path. When SQL objects are missing schema name,
          +     * translation engine will search through this list to find the value.
          +     * 
          + * + * repeated string schema_search_path = 2; + * + * @param index The index of the element to return. + * @return The schemaSearchPath at the given index. + */ + public java.lang.String getSchemaSearchPath(int index) { + return schemaSearchPath_.get(index); + } + /** + * + * + *
          +     * The schema search path. When SQL objects are missing schema name,
          +     * translation engine will search through this list to find the value.
          +     * 
          + * + * repeated string schema_search_path = 2; + * + * @param index The index of the value to return. + * @return The bytes of the schemaSearchPath at the given index. + */ + public com.google.protobuf.ByteString getSchemaSearchPathBytes(int index) { + return schemaSearchPath_.getByteString(index); + } + /** + * + * + *
          +     * The schema search path. When SQL objects are missing schema name,
          +     * translation engine will search through this list to find the value.
          +     * 
          + * + * repeated string schema_search_path = 2; + * + * @param index The index to set the value at. + * @param value The schemaSearchPath to set. + * @return This builder for chaining. + */ + public Builder setSchemaSearchPath(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemaSearchPathIsMutable(); + schemaSearchPath_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * The schema search path. When SQL objects are missing schema name,
          +     * translation engine will search through this list to find the value.
          +     * 
          + * + * repeated string schema_search_path = 2; + * + * @param value The schemaSearchPath to add. + * @return This builder for chaining. + */ + public Builder addSchemaSearchPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemaSearchPathIsMutable(); + schemaSearchPath_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * The schema search path. When SQL objects are missing schema name,
          +     * translation engine will search through this list to find the value.
          +     * 
          + * + * repeated string schema_search_path = 2; + * + * @param values The schemaSearchPath to add. + * @return This builder for chaining. + */ + public Builder addAllSchemaSearchPath(java.lang.Iterable values) { + ensureSchemaSearchPathIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemaSearchPath_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * The schema search path. When SQL objects are missing schema name,
          +     * translation engine will search through this list to find the value.
          +     * 
          + * + * repeated string schema_search_path = 2; + * + * @return This builder for chaining. + */ + public Builder clearSchemaSearchPath() { + schemaSearchPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * The schema search path. When SQL objects are missing schema name,
          +     * translation engine will search through this list to find the value.
          +     * 
          + * + * repeated string schema_search_path = 2; + * + * @param value The bytes of the schemaSearchPath to add. + * @return This builder for chaining. + */ + public Builder addSchemaSearchPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSchemaSearchPathIsMutable(); + schemaSearchPath_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object metadataStoreDataset_ = ""; + /** + * + * + *
          +     * Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
          +     * project-123.metadata_store_123.  If specified, translation will search and
          +     * read the required schema information from a metadata store in this dataset.
          +     * If metadata store doesn't exist, translation will parse the metadata file
          +     * and upload the schema info to a temp table in the dataset to speed up
          +     * future translation jobs.
          +     * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataStoreDataset. + */ + public java.lang.String getMetadataStoreDataset() { + java.lang.Object ref = metadataStoreDataset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataStoreDataset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
          +     * project-123.metadata_store_123.  If specified, translation will search and
          +     * read the required schema information from a metadata store in this dataset.
          +     * If metadata store doesn't exist, translation will parse the metadata file
          +     * and upload the schema info to a temp table in the dataset to speed up
          +     * future translation jobs.
          +     * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataStoreDataset. + */ + public com.google.protobuf.ByteString getMetadataStoreDatasetBytes() { + java.lang.Object ref = metadataStoreDataset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataStoreDataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
          +     * project-123.metadata_store_123.  If specified, translation will search and
          +     * read the required schema information from a metadata store in this dataset.
          +     * If metadata store doesn't exist, translation will parse the metadata file
          +     * and upload the schema info to a temp table in the dataset to speed up
          +     * future translation jobs.
          +     * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The metadataStoreDataset to set. + * @return This builder for chaining. + */ + public Builder setMetadataStoreDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metadataStoreDataset_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
          +     * project-123.metadata_store_123.  If specified, translation will search and
          +     * read the required schema information from a metadata store in this dataset.
          +     * If metadata store doesn't exist, translation will parse the metadata file
          +     * and upload the schema info to a temp table in the dataset to speed up
          +     * future translation jobs.
          +     * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMetadataStoreDataset() { + metadataStoreDataset_ = getDefaultInstance().getMetadataStoreDataset(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
          +     * project-123.metadata_store_123.  If specified, translation will search and
          +     * read the required schema information from a metadata store in this dataset.
          +     * If metadata store doesn't exist, translation will parse the metadata file
          +     * and upload the schema info to a temp table in the dataset to speed up
          +     * future translation jobs.
          +     * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for metadataStoreDataset to set. + * @return This builder for chaining. + */ + public Builder setMetadataStoreDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metadataStoreDataset_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.SourceEnvironment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.SourceEnvironment) + private static final com.google.cloud.bigquery.migration.v2.SourceEnvironment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.SourceEnvironment(); + } + + public static com.google.cloud.bigquery.migration.v2.SourceEnvironment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceEnvironment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceEnvironment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvironmentOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvironmentOrBuilder.java new file mode 100644 index 000000000000..dec816c151aa --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvironmentOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_details.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public interface SourceEnvironmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.SourceEnvironment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The default database name to fully qualify SQL objects when their database
          +   * name is missing.
          +   * 
          + * + * string default_database = 1; + * + * @return The defaultDatabase. + */ + java.lang.String getDefaultDatabase(); + /** + * + * + *
          +   * The default database name to fully qualify SQL objects when their database
          +   * name is missing.
          +   * 
          + * + * string default_database = 1; + * + * @return The bytes for defaultDatabase. + */ + com.google.protobuf.ByteString getDefaultDatabaseBytes(); + + /** + * + * + *
          +   * The schema search path. When SQL objects are missing schema name,
          +   * translation engine will search through this list to find the value.
          +   * 
          + * + * repeated string schema_search_path = 2; + * + * @return A list containing the schemaSearchPath. + */ + java.util.List getSchemaSearchPathList(); + /** + * + * + *
          +   * The schema search path. When SQL objects are missing schema name,
          +   * translation engine will search through this list to find the value.
          +   * 
          + * + * repeated string schema_search_path = 2; + * + * @return The count of schemaSearchPath. + */ + int getSchemaSearchPathCount(); + /** + * + * + *
          +   * The schema search path. When SQL objects are missing schema name,
          +   * translation engine will search through this list to find the value.
          +   * 
          + * + * repeated string schema_search_path = 2; + * + * @param index The index of the element to return. + * @return The schemaSearchPath at the given index. + */ + java.lang.String getSchemaSearchPath(int index); + /** + * + * + *
          +   * The schema search path. When SQL objects are missing schema name,
          +   * translation engine will search through this list to find the value.
          +   * 
          + * + * repeated string schema_search_path = 2; + * + * @param index The index of the value to return. + * @return The bytes of the schemaSearchPath at the given index. + */ + com.google.protobuf.ByteString getSchemaSearchPathBytes(int index); + + /** + * + * + *
          +   * Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
          +   * project-123.metadata_store_123.  If specified, translation will search and
          +   * read the required schema information from a metadata store in this dataset.
          +   * If metadata store doesn't exist, translation will parse the metadata file
          +   * and upload the schema info to a temp table in the dataset to speed up
          +   * future translation jobs.
          +   * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataStoreDataset. + */ + java.lang.String getMetadataStoreDataset(); + /** + * + * + *
          +   * Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
          +   * project-123.metadata_store_123.  If specified, translation will search and
          +   * read the required schema information from a metadata store in this dataset.
          +   * If metadata store doesn't exist, translation will parse the metadata file
          +   * and upload the schema info to a temp table in the dataset to speed up
          +   * future translation jobs.
          +   * 
          + * + * string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataStoreDataset. + */ + com.google.protobuf.ByteString getMetadataStoreDatasetBytes(); +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceSpec.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceSpec.java new file mode 100644 index 000000000000..97ee46206972 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceSpec.java @@ -0,0 +1,1234 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_details.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
          + * Represents one path to the location that holds source data.
          + * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.SourceSpec} + */ +public final class SourceSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.SourceSpec) + SourceSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use SourceSpec.newBuilder() to construct. + private SourceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SourceSpec() { + encoding_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SourceSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.SourceSpec.class, + com.google.cloud.bigquery.migration.v2.SourceSpec.Builder.class); + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BASE_URI(1), + LITERAL(2), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 1: + return BASE_URI; + case 2: + return LITERAL; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int BASE_URI_FIELD_NUMBER = 1; + /** + * + * + *
          +   * The base URI for all files to be read in as sources for translation.
          +   * 
          + * + * string base_uri = 1; + * + * @return Whether the baseUri field is set. + */ + public boolean hasBaseUri() { + return sourceCase_ == 1; + } + /** + * + * + *
          +   * The base URI for all files to be read in as sources for translation.
          +   * 
          + * + * string base_uri = 1; + * + * @return The baseUri. + */ + public java.lang.String getBaseUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 1) { + source_ = s; + } + return s; + } + } + /** + * + * + *
          +   * The base URI for all files to be read in as sources for translation.
          +   * 
          + * + * string base_uri = 1; + * + * @return The bytes for baseUri. + */ + public com.google.protobuf.ByteString getBaseUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 1) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LITERAL_FIELD_NUMBER = 2; + /** + * + * + *
          +   * Source literal.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + * + * @return Whether the literal field is set. + */ + @java.lang.Override + public boolean hasLiteral() { + return sourceCase_ == 2; + } + /** + * + * + *
          +   * Source literal.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + * + * @return The literal. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.Literal getLiteral() { + if (sourceCase_ == 2) { + return (com.google.cloud.bigquery.migration.v2.Literal) source_; + } + return com.google.cloud.bigquery.migration.v2.Literal.getDefaultInstance(); + } + /** + * + * + *
          +   * Source literal.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.LiteralOrBuilder getLiteralOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.bigquery.migration.v2.Literal) source_; + } + return com.google.cloud.bigquery.migration.v2.Literal.getDefaultInstance(); + } + + public static final int ENCODING_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object encoding_ = ""; + /** + * + * + *
          +   * Optional. The optional field to specify the encoding of the sql bytes.
          +   * 
          + * + * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The encoding. + */ + @java.lang.Override + public java.lang.String getEncoding() { + java.lang.Object ref = encoding_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + encoding_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. The optional field to specify the encoding of the sql bytes.
          +   * 
          + * + * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for encoding. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodingBytes() { + java.lang.Object ref = encoding_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + encoding_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (sourceCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); + } + if (sourceCase_ == 2) { + output.writeMessage(2, (com.google.cloud.bigquery.migration.v2.Literal) source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, encoding_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.bigquery.migration.v2.Literal) source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, encoding_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.migration.v2.SourceSpec)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.SourceSpec other = + (com.google.cloud.bigquery.migration.v2.SourceSpec) obj; + + if (!getEncoding().equals(other.getEncoding())) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 1: + if (!getBaseUri().equals(other.getBaseUri())) return false; + break; + case 2: + if (!getLiteral().equals(other.getLiteral())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENCODING_FIELD_NUMBER; + hash = (53 * hash) + getEncoding().hashCode(); + switch (sourceCase_) { + case 1: + hash = (37 * hash) + BASE_URI_FIELD_NUMBER; + hash = (53 * hash) + getBaseUri().hashCode(); + break; + case 2: + hash = (37 * hash) + LITERAL_FIELD_NUMBER; + hash = (53 * hash) + getLiteral().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.migration.v2.SourceSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SourceSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SourceSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SourceSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SourceSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SourceSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SourceSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.SourceSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Represents one path to the location that holds source data.
          +   * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.SourceSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.SourceSpec) + com.google.cloud.bigquery.migration.v2.SourceSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.SourceSpec.class, + com.google.cloud.bigquery.migration.v2.SourceSpec.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.SourceSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (literalBuilder_ != null) { + literalBuilder_.clear(); + } + encoding_ = ""; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceSpec getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.SourceSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceSpec build() { + com.google.cloud.bigquery.migration.v2.SourceSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceSpec buildPartial() { + com.google.cloud.bigquery.migration.v2.SourceSpec result = + new com.google.cloud.bigquery.migration.v2.SourceSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.migration.v2.SourceSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.encoding_ = encoding_; + } + } + + private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2.SourceSpec result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && literalBuilder_ != null) { + result.source_ = literalBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.migration.v2.SourceSpec) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.SourceSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.SourceSpec other) { + if (other == com.google.cloud.bigquery.migration.v2.SourceSpec.getDefaultInstance()) + return this; + if (!other.getEncoding().isEmpty()) { + encoding_ = other.encoding_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getSourceCase()) { + case BASE_URI: + { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case LITERAL: + { + mergeLiteral(other.getLiteral()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 18: + { + input.readMessage(getLiteralFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: + { + encoding_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
          +     * The base URI for all files to be read in as sources for translation.
          +     * 
          + * + * string base_uri = 1; + * + * @return Whether the baseUri field is set. + */ + @java.lang.Override + public boolean hasBaseUri() { + return sourceCase_ == 1; + } + /** + * + * + *
          +     * The base URI for all files to be read in as sources for translation.
          +     * 
          + * + * string base_uri = 1; + * + * @return The baseUri. + */ + @java.lang.Override + public java.lang.String getBaseUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 1) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The base URI for all files to be read in as sources for translation.
          +     * 
          + * + * string base_uri = 1; + * + * @return The bytes for baseUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBaseUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 1) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The base URI for all files to be read in as sources for translation.
          +     * 
          + * + * string base_uri = 1; + * + * @param value The baseUri to set. + * @return This builder for chaining. + */ + public Builder setBaseUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + /** + * + * + *
          +     * The base URI for all files to be read in as sources for translation.
          +     * 
          + * + * string base_uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearBaseUri() { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * The base URI for all files to be read in as sources for translation.
          +     * 
          + * + * string base_uri = 1; + * + * @param value The bytes for baseUri to set. + * @return This builder for chaining. + */ + public Builder setBaseUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.Literal, + com.google.cloud.bigquery.migration.v2.Literal.Builder, + com.google.cloud.bigquery.migration.v2.LiteralOrBuilder> + literalBuilder_; + /** + * + * + *
          +     * Source literal.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + * + * @return Whether the literal field is set. + */ + @java.lang.Override + public boolean hasLiteral() { + return sourceCase_ == 2; + } + /** + * + * + *
          +     * Source literal.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + * + * @return The literal. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.Literal getLiteral() { + if (literalBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.bigquery.migration.v2.Literal) source_; + } + return com.google.cloud.bigquery.migration.v2.Literal.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return literalBuilder_.getMessage(); + } + return com.google.cloud.bigquery.migration.v2.Literal.getDefaultInstance(); + } + } + /** + * + * + *
          +     * Source literal.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + */ + public Builder setLiteral(com.google.cloud.bigquery.migration.v2.Literal value) { + if (literalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + literalBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
          +     * Source literal.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + */ + public Builder setLiteral( + com.google.cloud.bigquery.migration.v2.Literal.Builder builderForValue) { + if (literalBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + literalBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
          +     * Source literal.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + */ + public Builder mergeLiteral(com.google.cloud.bigquery.migration.v2.Literal value) { + if (literalBuilder_ == null) { + if (sourceCase_ == 2 + && source_ != com.google.cloud.bigquery.migration.v2.Literal.getDefaultInstance()) { + source_ = + com.google.cloud.bigquery.migration.v2.Literal.newBuilder( + (com.google.cloud.bigquery.migration.v2.Literal) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + literalBuilder_.mergeFrom(value); + } else { + literalBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
          +     * Source literal.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + */ + public Builder clearLiteral() { + if (literalBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + literalBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Source literal.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + */ + public com.google.cloud.bigquery.migration.v2.Literal.Builder getLiteralBuilder() { + return getLiteralFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Source literal.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.LiteralOrBuilder getLiteralOrBuilder() { + if ((sourceCase_ == 2) && (literalBuilder_ != null)) { + return literalBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.bigquery.migration.v2.Literal) source_; + } + return com.google.cloud.bigquery.migration.v2.Literal.getDefaultInstance(); + } + } + /** + * + * + *
          +     * Source literal.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.Literal, + com.google.cloud.bigquery.migration.v2.Literal.Builder, + com.google.cloud.bigquery.migration.v2.LiteralOrBuilder> + getLiteralFieldBuilder() { + if (literalBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = com.google.cloud.bigquery.migration.v2.Literal.getDefaultInstance(); + } + literalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.Literal, + com.google.cloud.bigquery.migration.v2.Literal.Builder, + com.google.cloud.bigquery.migration.v2.LiteralOrBuilder>( + (com.google.cloud.bigquery.migration.v2.Literal) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return literalBuilder_; + } + + private java.lang.Object encoding_ = ""; + /** + * + * + *
          +     * Optional. The optional field to specify the encoding of the sql bytes.
          +     * 
          + * + * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The encoding. + */ + public java.lang.String getEncoding() { + java.lang.Object ref = encoding_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + encoding_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. The optional field to specify the encoding of the sql bytes.
          +     * 
          + * + * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for encoding. + */ + public com.google.protobuf.ByteString getEncodingBytes() { + java.lang.Object ref = encoding_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + encoding_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. The optional field to specify the encoding of the sql bytes.
          +     * 
          + * + * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The encoding to set. + * @return This builder for chaining. + */ + public Builder setEncoding(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + encoding_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The optional field to specify the encoding of the sql bytes.
          +     * 
          + * + * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEncoding() { + encoding_ = getDefaultInstance().getEncoding(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The optional field to specify the encoding of the sql bytes.
          +     * 
          + * + * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for encoding to set. + * @return This builder for chaining. + */ + public Builder setEncodingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + encoding_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.SourceSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.SourceSpec) + private static final com.google.cloud.bigquery.migration.v2.SourceSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.SourceSpec(); + } + + public static com.google.cloud.bigquery.migration.v2.SourceSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceSpecOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceSpecOrBuilder.java new file mode 100644 index 000000000000..b60d1a0ac1ac --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceSpecOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_details.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public interface SourceSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.SourceSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The base URI for all files to be read in as sources for translation.
          +   * 
          + * + * string base_uri = 1; + * + * @return Whether the baseUri field is set. + */ + boolean hasBaseUri(); + /** + * + * + *
          +   * The base URI for all files to be read in as sources for translation.
          +   * 
          + * + * string base_uri = 1; + * + * @return The baseUri. + */ + java.lang.String getBaseUri(); + /** + * + * + *
          +   * The base URI for all files to be read in as sources for translation.
          +   * 
          + * + * string base_uri = 1; + * + * @return The bytes for baseUri. + */ + com.google.protobuf.ByteString getBaseUriBytes(); + + /** + * + * + *
          +   * Source literal.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + * + * @return Whether the literal field is set. + */ + boolean hasLiteral(); + /** + * + * + *
          +   * Source literal.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + * + * @return The literal. + */ + com.google.cloud.bigquery.migration.v2.Literal getLiteral(); + /** + * + * + *
          +   * Source literal.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.Literal literal = 2; + */ + com.google.cloud.bigquery.migration.v2.LiteralOrBuilder getLiteralOrBuilder(); + + /** + * + * + *
          +   * Optional. The optional field to specify the encoding of the sql bytes.
          +   * 
          + * + * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The encoding. + */ + java.lang.String getEncoding(); + /** + * + * + *
          +   * Optional. The optional field to specify the encoding of the sql bytes.
          +   * 
          + * + * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for encoding. + */ + com.google.protobuf.ByteString getEncodingBytes(); + + com.google.cloud.bigquery.migration.v2.SourceSpec.SourceCase getSourceCase(); +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceTargetMapping.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceTargetMapping.java new file mode 100644 index 000000000000..7813937a6857 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceTargetMapping.java @@ -0,0 +1,994 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_details.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
          + * Represents one mapping from a source SQL to a target SQL.
          + * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.SourceTargetMapping} + */ +public final class SourceTargetMapping extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.SourceTargetMapping) + SourceTargetMappingOrBuilder { + private static final long serialVersionUID = 0L; + // Use SourceTargetMapping.newBuilder() to construct. + private SourceTargetMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SourceTargetMapping() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SourceTargetMapping(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceTargetMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceTargetMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.SourceTargetMapping.class, + com.google.cloud.bigquery.migration.v2.SourceTargetMapping.Builder.class); + } + + private int bitField0_; + public static final int SOURCE_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.bigquery.migration.v2.SourceSpec sourceSpec_; + /** + * + * + *
          +   * The source SQL or the path to it.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + * + * @return Whether the sourceSpec field is set. + */ + @java.lang.Override + public boolean hasSourceSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * The source SQL or the path to it.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + * + * @return The sourceSpec. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceSpec getSourceSpec() { + return sourceSpec_ == null + ? com.google.cloud.bigquery.migration.v2.SourceSpec.getDefaultInstance() + : sourceSpec_; + } + /** + * + * + *
          +   * The source SQL or the path to it.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceSpecOrBuilder getSourceSpecOrBuilder() { + return sourceSpec_ == null + ? com.google.cloud.bigquery.migration.v2.SourceSpec.getDefaultInstance() + : sourceSpec_; + } + + public static final int TARGET_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.bigquery.migration.v2.TargetSpec targetSpec_; + /** + * + * + *
          +   * The target SQL or the path for it.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + * + * @return Whether the targetSpec field is set. + */ + @java.lang.Override + public boolean hasTargetSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * The target SQL or the path for it.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + * + * @return The targetSpec. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TargetSpec getTargetSpec() { + return targetSpec_ == null + ? com.google.cloud.bigquery.migration.v2.TargetSpec.getDefaultInstance() + : targetSpec_; + } + /** + * + * + *
          +   * The target SQL or the path for it.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TargetSpecOrBuilder getTargetSpecOrBuilder() { + return targetSpec_ == null + ? com.google.cloud.bigquery.migration.v2.TargetSpec.getDefaultInstance() + : targetSpec_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSourceSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTargetSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSourceSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTargetSpec()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.migration.v2.SourceTargetMapping)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.SourceTargetMapping other = + (com.google.cloud.bigquery.migration.v2.SourceTargetMapping) obj; + + if (hasSourceSpec() != other.hasSourceSpec()) return false; + if (hasSourceSpec()) { + if (!getSourceSpec().equals(other.getSourceSpec())) return false; + } + if (hasTargetSpec() != other.hasTargetSpec()) return false; + if (hasTargetSpec()) { + if (!getTargetSpec().equals(other.getTargetSpec())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSourceSpec()) { + hash = (37 * hash) + SOURCE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSourceSpec().hashCode(); + } + if (hasTargetSpec()) { + hash = (37 * hash) + TARGET_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getTargetSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.migration.v2.SourceTargetMapping parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SourceTargetMapping parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceTargetMapping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SourceTargetMapping parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceTargetMapping parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SourceTargetMapping parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceTargetMapping parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SourceTargetMapping parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceTargetMapping parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SourceTargetMapping parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SourceTargetMapping parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SourceTargetMapping parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.SourceTargetMapping prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Represents one mapping from a source SQL to a target SQL.
          +   * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.SourceTargetMapping} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.SourceTargetMapping) + com.google.cloud.bigquery.migration.v2.SourceTargetMappingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceTargetMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceTargetMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.SourceTargetMapping.class, + com.google.cloud.bigquery.migration.v2.SourceTargetMapping.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.SourceTargetMapping.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSourceSpecFieldBuilder(); + getTargetSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceSpec_ = null; + if (sourceSpecBuilder_ != null) { + sourceSpecBuilder_.dispose(); + sourceSpecBuilder_ = null; + } + targetSpec_ = null; + if (targetSpecBuilder_ != null) { + targetSpecBuilder_.dispose(); + targetSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SourceTargetMapping_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceTargetMapping getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.SourceTargetMapping.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceTargetMapping build() { + com.google.cloud.bigquery.migration.v2.SourceTargetMapping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceTargetMapping buildPartial() { + com.google.cloud.bigquery.migration.v2.SourceTargetMapping result = + new com.google.cloud.bigquery.migration.v2.SourceTargetMapping(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.migration.v2.SourceTargetMapping result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceSpec_ = sourceSpecBuilder_ == null ? sourceSpec_ : sourceSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetSpec_ = targetSpecBuilder_ == null ? targetSpec_ : targetSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.migration.v2.SourceTargetMapping) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.SourceTargetMapping) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.SourceTargetMapping other) { + if (other == com.google.cloud.bigquery.migration.v2.SourceTargetMapping.getDefaultInstance()) + return this; + if (other.hasSourceSpec()) { + mergeSourceSpec(other.getSourceSpec()); + } + if (other.hasTargetSpec()) { + mergeTargetSpec(other.getTargetSpec()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSourceSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getTargetSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.bigquery.migration.v2.SourceSpec sourceSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SourceSpec, + com.google.cloud.bigquery.migration.v2.SourceSpec.Builder, + com.google.cloud.bigquery.migration.v2.SourceSpecOrBuilder> + sourceSpecBuilder_; + /** + * + * + *
          +     * The source SQL or the path to it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + * + * @return Whether the sourceSpec field is set. + */ + public boolean hasSourceSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +     * The source SQL or the path to it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + * + * @return The sourceSpec. + */ + public com.google.cloud.bigquery.migration.v2.SourceSpec getSourceSpec() { + if (sourceSpecBuilder_ == null) { + return sourceSpec_ == null + ? com.google.cloud.bigquery.migration.v2.SourceSpec.getDefaultInstance() + : sourceSpec_; + } else { + return sourceSpecBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * The source SQL or the path to it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + */ + public Builder setSourceSpec(com.google.cloud.bigquery.migration.v2.SourceSpec value) { + if (sourceSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceSpec_ = value; + } else { + sourceSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * The source SQL or the path to it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + */ + public Builder setSourceSpec( + com.google.cloud.bigquery.migration.v2.SourceSpec.Builder builderForValue) { + if (sourceSpecBuilder_ == null) { + sourceSpec_ = builderForValue.build(); + } else { + sourceSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * The source SQL or the path to it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + */ + public Builder mergeSourceSpec(com.google.cloud.bigquery.migration.v2.SourceSpec value) { + if (sourceSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && sourceSpec_ != null + && sourceSpec_ + != com.google.cloud.bigquery.migration.v2.SourceSpec.getDefaultInstance()) { + getSourceSpecBuilder().mergeFrom(value); + } else { + sourceSpec_ = value; + } + } else { + sourceSpecBuilder_.mergeFrom(value); + } + if (sourceSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * The source SQL or the path to it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + */ + public Builder clearSourceSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + sourceSpec_ = null; + if (sourceSpecBuilder_ != null) { + sourceSpecBuilder_.dispose(); + sourceSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * The source SQL or the path to it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + */ + public com.google.cloud.bigquery.migration.v2.SourceSpec.Builder getSourceSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSourceSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * The source SQL or the path to it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + */ + public com.google.cloud.bigquery.migration.v2.SourceSpecOrBuilder getSourceSpecOrBuilder() { + if (sourceSpecBuilder_ != null) { + return sourceSpecBuilder_.getMessageOrBuilder(); + } else { + return sourceSpec_ == null + ? com.google.cloud.bigquery.migration.v2.SourceSpec.getDefaultInstance() + : sourceSpec_; + } + } + /** + * + * + *
          +     * The source SQL or the path to it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SourceSpec, + com.google.cloud.bigquery.migration.v2.SourceSpec.Builder, + com.google.cloud.bigquery.migration.v2.SourceSpecOrBuilder> + getSourceSpecFieldBuilder() { + if (sourceSpecBuilder_ == null) { + sourceSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SourceSpec, + com.google.cloud.bigquery.migration.v2.SourceSpec.Builder, + com.google.cloud.bigquery.migration.v2.SourceSpecOrBuilder>( + getSourceSpec(), getParentForChildren(), isClean()); + sourceSpec_ = null; + } + return sourceSpecBuilder_; + } + + private com.google.cloud.bigquery.migration.v2.TargetSpec targetSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TargetSpec, + com.google.cloud.bigquery.migration.v2.TargetSpec.Builder, + com.google.cloud.bigquery.migration.v2.TargetSpecOrBuilder> + targetSpecBuilder_; + /** + * + * + *
          +     * The target SQL or the path for it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + * + * @return Whether the targetSpec field is set. + */ + public boolean hasTargetSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * The target SQL or the path for it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + * + * @return The targetSpec. + */ + public com.google.cloud.bigquery.migration.v2.TargetSpec getTargetSpec() { + if (targetSpecBuilder_ == null) { + return targetSpec_ == null + ? com.google.cloud.bigquery.migration.v2.TargetSpec.getDefaultInstance() + : targetSpec_; + } else { + return targetSpecBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * The target SQL or the path for it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + */ + public Builder setTargetSpec(com.google.cloud.bigquery.migration.v2.TargetSpec value) { + if (targetSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetSpec_ = value; + } else { + targetSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * The target SQL or the path for it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + */ + public Builder setTargetSpec( + com.google.cloud.bigquery.migration.v2.TargetSpec.Builder builderForValue) { + if (targetSpecBuilder_ == null) { + targetSpec_ = builderForValue.build(); + } else { + targetSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * The target SQL or the path for it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + */ + public Builder mergeTargetSpec(com.google.cloud.bigquery.migration.v2.TargetSpec value) { + if (targetSpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && targetSpec_ != null + && targetSpec_ + != com.google.cloud.bigquery.migration.v2.TargetSpec.getDefaultInstance()) { + getTargetSpecBuilder().mergeFrom(value); + } else { + targetSpec_ = value; + } + } else { + targetSpecBuilder_.mergeFrom(value); + } + if (targetSpec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * The target SQL or the path for it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + */ + public Builder clearTargetSpec() { + bitField0_ = (bitField0_ & ~0x00000002); + targetSpec_ = null; + if (targetSpecBuilder_ != null) { + targetSpecBuilder_.dispose(); + targetSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * The target SQL or the path for it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + */ + public com.google.cloud.bigquery.migration.v2.TargetSpec.Builder getTargetSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTargetSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * The target SQL or the path for it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + */ + public com.google.cloud.bigquery.migration.v2.TargetSpecOrBuilder getTargetSpecOrBuilder() { + if (targetSpecBuilder_ != null) { + return targetSpecBuilder_.getMessageOrBuilder(); + } else { + return targetSpec_ == null + ? com.google.cloud.bigquery.migration.v2.TargetSpec.getDefaultInstance() + : targetSpec_; + } + } + /** + * + * + *
          +     * The target SQL or the path for it.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TargetSpec, + com.google.cloud.bigquery.migration.v2.TargetSpec.Builder, + com.google.cloud.bigquery.migration.v2.TargetSpecOrBuilder> + getTargetSpecFieldBuilder() { + if (targetSpecBuilder_ == null) { + targetSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TargetSpec, + com.google.cloud.bigquery.migration.v2.TargetSpec.Builder, + com.google.cloud.bigquery.migration.v2.TargetSpecOrBuilder>( + getTargetSpec(), getParentForChildren(), isClean()); + targetSpec_ = null; + } + return targetSpecBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.SourceTargetMapping) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.SourceTargetMapping) + private static final com.google.cloud.bigquery.migration.v2.SourceTargetMapping DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.SourceTargetMapping(); + } + + public static com.google.cloud.bigquery.migration.v2.SourceTargetMapping getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceTargetMapping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceTargetMapping getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceTargetMappingOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceTargetMappingOrBuilder.java new file mode 100644 index 000000000000..b9a6a9a7df96 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceTargetMappingOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_details.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public interface SourceTargetMappingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.SourceTargetMapping) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The source SQL or the path to it.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + * + * @return Whether the sourceSpec field is set. + */ + boolean hasSourceSpec(); + /** + * + * + *
          +   * The source SQL or the path to it.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + * + * @return The sourceSpec. + */ + com.google.cloud.bigquery.migration.v2.SourceSpec getSourceSpec(); + /** + * + * + *
          +   * The source SQL or the path to it.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + */ + com.google.cloud.bigquery.migration.v2.SourceSpecOrBuilder getSourceSpecOrBuilder(); + + /** + * + * + *
          +   * The target SQL or the path for it.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + * + * @return Whether the targetSpec field is set. + */ + boolean hasTargetSpec(); + /** + * + * + *
          +   * The target SQL or the path for it.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + * + * @return The targetSpec. + */ + com.google.cloud.bigquery.migration.v2.TargetSpec getTargetSpec(); + /** + * + * + *
          +   * The target SQL or the path for it.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + */ + com.google.cloud.bigquery.migration.v2.TargetSpecOrBuilder getTargetSpecOrBuilder(); +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TargetSpec.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TargetSpec.java new file mode 100644 index 000000000000..6df410b35420 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TargetSpec.java @@ -0,0 +1,639 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_details.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
          + * Represents one path to the location that holds target data.
          + * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.TargetSpec} + */ +public final class TargetSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.TargetSpec) + TargetSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TargetSpec.newBuilder() to construct. + private TargetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TargetSpec() { + relativePath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TargetSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_TargetSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_TargetSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.TargetSpec.class, + com.google.cloud.bigquery.migration.v2.TargetSpec.Builder.class); + } + + public static final int RELATIVE_PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object relativePath_ = ""; + /** + * + * + *
          +   * The relative path for the target data. Given source file
          +   * `base_uri/input/sql`, the output would be
          +   * `target_base_uri/sql/relative_path/input.sql`.
          +   * 
          + * + * string relative_path = 1; + * + * @return The relativePath. + */ + @java.lang.Override + public java.lang.String getRelativePath() { + java.lang.Object ref = relativePath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + relativePath_ = s; + return s; + } + } + /** + * + * + *
          +   * The relative path for the target data. Given source file
          +   * `base_uri/input/sql`, the output would be
          +   * `target_base_uri/sql/relative_path/input.sql`.
          +   * 
          + * + * string relative_path = 1; + * + * @return The bytes for relativePath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRelativePathBytes() { + java.lang.Object ref = relativePath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + relativePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativePath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, relativePath_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativePath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, relativePath_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.migration.v2.TargetSpec)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.TargetSpec other = + (com.google.cloud.bigquery.migration.v2.TargetSpec) obj; + + if (!getRelativePath().equals(other.getRelativePath())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RELATIVE_PATH_FIELD_NUMBER; + hash = (53 * hash) + getRelativePath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.migration.v2.TargetSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.TargetSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TargetSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.TargetSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TargetSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.TargetSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TargetSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.TargetSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TargetSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.TargetSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TargetSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.TargetSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.TargetSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Represents one path to the location that holds target data.
          +   * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.TargetSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.TargetSpec) + com.google.cloud.bigquery.migration.v2.TargetSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_TargetSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_TargetSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.TargetSpec.class, + com.google.cloud.bigquery.migration.v2.TargetSpec.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.TargetSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + relativePath_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_TargetSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TargetSpec getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.TargetSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TargetSpec build() { + com.google.cloud.bigquery.migration.v2.TargetSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TargetSpec buildPartial() { + com.google.cloud.bigquery.migration.v2.TargetSpec result = + new com.google.cloud.bigquery.migration.v2.TargetSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.migration.v2.TargetSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.relativePath_ = relativePath_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.migration.v2.TargetSpec) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.TargetSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.TargetSpec other) { + if (other == com.google.cloud.bigquery.migration.v2.TargetSpec.getDefaultInstance()) + return this; + if (!other.getRelativePath().isEmpty()) { + relativePath_ = other.relativePath_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + relativePath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object relativePath_ = ""; + /** + * + * + *
          +     * The relative path for the target data. Given source file
          +     * `base_uri/input/sql`, the output would be
          +     * `target_base_uri/sql/relative_path/input.sql`.
          +     * 
          + * + * string relative_path = 1; + * + * @return The relativePath. + */ + public java.lang.String getRelativePath() { + java.lang.Object ref = relativePath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + relativePath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The relative path for the target data. Given source file
          +     * `base_uri/input/sql`, the output would be
          +     * `target_base_uri/sql/relative_path/input.sql`.
          +     * 
          + * + * string relative_path = 1; + * + * @return The bytes for relativePath. + */ + public com.google.protobuf.ByteString getRelativePathBytes() { + java.lang.Object ref = relativePath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + relativePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The relative path for the target data. Given source file
          +     * `base_uri/input/sql`, the output would be
          +     * `target_base_uri/sql/relative_path/input.sql`.
          +     * 
          + * + * string relative_path = 1; + * + * @param value The relativePath to set. + * @return This builder for chaining. + */ + public Builder setRelativePath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + relativePath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * The relative path for the target data. Given source file
          +     * `base_uri/input/sql`, the output would be
          +     * `target_base_uri/sql/relative_path/input.sql`.
          +     * 
          + * + * string relative_path = 1; + * + * @return This builder for chaining. + */ + public Builder clearRelativePath() { + relativePath_ = getDefaultInstance().getRelativePath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * The relative path for the target data. Given source file
          +     * `base_uri/input/sql`, the output would be
          +     * `target_base_uri/sql/relative_path/input.sql`.
          +     * 
          + * + * string relative_path = 1; + * + * @param value The bytes for relativePath to set. + * @return This builder for chaining. + */ + public Builder setRelativePathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + relativePath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.TargetSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.TargetSpec) + private static final com.google.cloud.bigquery.migration.v2.TargetSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.TargetSpec(); + } + + public static com.google.cloud.bigquery.migration.v2.TargetSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TargetSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TargetSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TargetSpecOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TargetSpecOrBuilder.java new file mode 100644 index 000000000000..872ec41e197b --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TargetSpecOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_details.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public interface TargetSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.TargetSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The relative path for the target data. Given source file
          +   * `base_uri/input/sql`, the output would be
          +   * `target_base_uri/sql/relative_path/input.sql`.
          +   * 
          + * + * string relative_path = 1; + * + * @return The relativePath. + */ + java.lang.String getRelativePath(); + /** + * + * + *
          +   * The relative path for the target data. Given source file
          +   * `base_uri/input/sql`, the output would be
          +   * `target_base_uri/sql/relative_path/input.sql`.
          +   * 
          + * + * string relative_path = 1; + * + * @return The bytes for relativePath. + */ + com.google.protobuf.ByteString getRelativePathBytes(); +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetails.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetails.java index 092e8c3d2683..b6ddd59d6800 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetails.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetails.java @@ -41,6 +41,7 @@ private TranslationConfigDetails(com.google.protobuf.GeneratedMessageV3.Builder< private TranslationConfigDetails() { requestSource_ = ""; + targetTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -596,6 +597,82 @@ public com.google.protobuf.ByteString getRequestSourceBytes() { } } + public static final int TARGET_TYPES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +   * a default set of targets will be generated. Some additional target types
          +   * may be slower to generate. See the documentation for the set of available
          +   * target types.
          +   * 
          + * + * repeated string target_types = 9; + * + * @return A list containing the targetTypes. + */ + public com.google.protobuf.ProtocolStringList getTargetTypesList() { + return targetTypes_; + } + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +   * a default set of targets will be generated. Some additional target types
          +   * may be slower to generate. See the documentation for the set of available
          +   * target types.
          +   * 
          + * + * repeated string target_types = 9; + * + * @return The count of targetTypes. + */ + public int getTargetTypesCount() { + return targetTypes_.size(); + } + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +   * a default set of targets will be generated. Some additional target types
          +   * may be slower to generate. See the documentation for the set of available
          +   * target types.
          +   * 
          + * + * repeated string target_types = 9; + * + * @param index The index of the element to return. + * @return The targetTypes at the given index. + */ + public java.lang.String getTargetTypes(int index) { + return targetTypes_.get(index); + } + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +   * a default set of targets will be generated. Some additional target types
          +   * may be slower to generate. See the documentation for the set of available
          +   * target types.
          +   * 
          + * + * repeated string target_types = 9; + * + * @param index The index of the value to return. + * @return The bytes of the targetTypes at the given index. + */ + public com.google.protobuf.ByteString getTargetTypesBytes(int index) { + return targetTypes_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -632,6 +709,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestSource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, requestSource_); } + for (int i = 0; i < targetTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, targetTypes_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -664,6 +744,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestSource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, requestSource_); } + { + int dataSize = 0; + for (int i = 0; i < targetTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(targetTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetTypesList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -693,6 +781,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSourceEnv().equals(other.getSourceEnv())) return false; } if (!getRequestSource().equals(other.getRequestSource())) return false; + if (!getTargetTypesList().equals(other.getTargetTypesList())) return false; if (!getSourceLocationCase().equals(other.getSourceLocationCase())) return false; switch (sourceLocationCase_) { case 1: @@ -742,6 +831,10 @@ public int hashCode() { } hash = (37 * hash) + REQUEST_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getRequestSource().hashCode(); + if (getTargetTypesCount() > 0) { + hash = (37 * hash) + TARGET_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getTargetTypesList().hashCode(); + } switch (sourceLocationCase_) { case 1: hash = (37 * hash) + GCS_SOURCE_PATH_FIELD_NUMBER; @@ -937,6 +1030,7 @@ public Builder clear() { sourceEnvBuilder_ = null; } requestSource_ = ""; + targetTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); sourceLocationCase_ = 0; sourceLocation_ = null; targetLocationCase_ = 0; @@ -1000,6 +1094,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000040) != 0)) { result.requestSource_ = requestSource_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + targetTypes_.makeImmutable(); + result.targetTypes_ = targetTypes_; + } result.bitField0_ |= to_bitField0_; } @@ -1078,6 +1176,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; onChanged(); } + if (!other.targetTypes_.isEmpty()) { + if (targetTypes_.isEmpty()) { + targetTypes_ = other.targetTypes_; + bitField0_ |= 0x00000080; + } else { + ensureTargetTypesIsMutable(); + targetTypes_.addAll(other.targetTypes_); + } + onChanged(); + } switch (other.getSourceLocationCase()) { case GCS_SOURCE_PATH: { @@ -1185,6 +1293,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetTypesIsMutable(); + targetTypes_.add(s); + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2398,6 +2513,207 @@ public Builder setRequestSourceBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList targetTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetTypesIsMutable() { + if (!targetTypes_.isModifiable()) { + targetTypes_ = new com.google.protobuf.LazyStringArrayList(targetTypes_); + } + bitField0_ |= 0x00000080; + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +     * a default set of targets will be generated. Some additional target types
          +     * may be slower to generate. See the documentation for the set of available
          +     * target types.
          +     * 
          + * + * repeated string target_types = 9; + * + * @return A list containing the targetTypes. + */ + public com.google.protobuf.ProtocolStringList getTargetTypesList() { + targetTypes_.makeImmutable(); + return targetTypes_; + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +     * a default set of targets will be generated. Some additional target types
          +     * may be slower to generate. See the documentation for the set of available
          +     * target types.
          +     * 
          + * + * repeated string target_types = 9; + * + * @return The count of targetTypes. + */ + public int getTargetTypesCount() { + return targetTypes_.size(); + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +     * a default set of targets will be generated. Some additional target types
          +     * may be slower to generate. See the documentation for the set of available
          +     * target types.
          +     * 
          + * + * repeated string target_types = 9; + * + * @param index The index of the element to return. + * @return The targetTypes at the given index. + */ + public java.lang.String getTargetTypes(int index) { + return targetTypes_.get(index); + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +     * a default set of targets will be generated. Some additional target types
          +     * may be slower to generate. See the documentation for the set of available
          +     * target types.
          +     * 
          + * + * repeated string target_types = 9; + * + * @param index The index of the value to return. + * @return The bytes of the targetTypes at the given index. + */ + public com.google.protobuf.ByteString getTargetTypesBytes(int index) { + return targetTypes_.getByteString(index); + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +     * a default set of targets will be generated. Some additional target types
          +     * may be slower to generate. See the documentation for the set of available
          +     * target types.
          +     * 
          + * + * repeated string target_types = 9; + * + * @param index The index to set the value at. + * @param value The targetTypes to set. + * @return This builder for chaining. + */ + public Builder setTargetTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetTypesIsMutable(); + targetTypes_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +     * a default set of targets will be generated. Some additional target types
          +     * may be slower to generate. See the documentation for the set of available
          +     * target types.
          +     * 
          + * + * repeated string target_types = 9; + * + * @param value The targetTypes to add. + * @return This builder for chaining. + */ + public Builder addTargetTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetTypesIsMutable(); + targetTypes_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +     * a default set of targets will be generated. Some additional target types
          +     * may be slower to generate. See the documentation for the set of available
          +     * target types.
          +     * 
          + * + * repeated string target_types = 9; + * + * @param values The targetTypes to add. + * @return This builder for chaining. + */ + public Builder addAllTargetTypes(java.lang.Iterable values) { + ensureTargetTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetTypes_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +     * a default set of targets will be generated. Some additional target types
          +     * may be slower to generate. See the documentation for the set of available
          +     * target types.
          +     * 
          + * + * repeated string target_types = 9; + * + * @return This builder for chaining. + */ + public Builder clearTargetTypes() { + targetTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +     * a default set of targets will be generated. Some additional target types
          +     * may be slower to generate. See the documentation for the set of available
          +     * target types.
          +     * 
          + * + * repeated string target_types = 9; + * + * @param value The bytes of the targetTypes to add. + * @return This builder for chaining. + */ + public Builder addTargetTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetTypesIsMutable(); + targetTypes_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetailsOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetailsOrBuilder.java index 8510043898f0..853d9952f27d 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetailsOrBuilder.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetailsOrBuilder.java @@ -264,6 +264,69 @@ public interface TranslationConfigDetailsOrBuilder */ com.google.protobuf.ByteString getRequestSourceBytes(); + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +   * a default set of targets will be generated. Some additional target types
          +   * may be slower to generate. See the documentation for the set of available
          +   * target types.
          +   * 
          + * + * repeated string target_types = 9; + * + * @return A list containing the targetTypes. + */ + java.util.List getTargetTypesList(); + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +   * a default set of targets will be generated. Some additional target types
          +   * may be slower to generate. See the documentation for the set of available
          +   * target types.
          +   * 
          + * + * repeated string target_types = 9; + * + * @return The count of targetTypes. + */ + int getTargetTypesCount(); + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +   * a default set of targets will be generated. Some additional target types
          +   * may be slower to generate. See the documentation for the set of available
          +   * target types.
          +   * 
          + * + * repeated string target_types = 9; + * + * @param index The index of the element to return. + * @return The targetTypes at the given index. + */ + java.lang.String getTargetTypes(int index); + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata etc. If not specified,
          +   * a default set of targets will be generated. Some additional target types
          +   * may be slower to generate. See the documentation for the set of available
          +   * target types.
          +   * 
          + * + * repeated string target_types = 9; + * + * @param index The index of the value to return. + * @return The bytes of the targetTypes at the given index. + */ + com.google.protobuf.ByteString getTargetTypesBytes(int index); + com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.SourceLocationCase getSourceLocationCase(); diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java index f5efda707f1e..e36ad89590c0 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java @@ -92,6 +92,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_DB2Dialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_DB2Dialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_SQLiteDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_SQLiteDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_GreenplumDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_GreenplumDialect_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -123,85 +135,97 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n;google/cloud/bigquery/migration/v2/tra" + "nslation_config.proto\022\"google.cloud.bigq" - + "uery.migration.v2\"\312\003\n\030TranslationConfigD" - + "etails\022\031\n\017gcs_source_path\030\001 \001(\tH\000\022\031\n\017gcs" - + "_target_path\030\002 \001(\tH\001\022V\n\021name_mapping_lis" - + "t\030\005 \001(\01329.google.cloud.bigquery.migratio" - + "n.v2.ObjectNameMappingListH\002\022C\n\016source_d" - + "ialect\030\003 \001(\0132+.google.cloud.bigquery.mig" - + "ration.v2.Dialect\022C\n\016target_dialect\030\004 \001(" - + "\0132+.google.cloud.bigquery.migration.v2.D" - + "ialect\022A\n\nsource_env\030\006 \001(\0132-.google.clou" - + "d.bigquery.migration.v2.SourceEnv\022\026\n\016req" - + "uest_source\030\010 \001(\tB\021\n\017source_locationB\021\n\017" - + "target_locationB\025\n\023output_name_mapping\"\204" - + "\t\n\007Dialect\022O\n\020bigquery_dialect\030\001 \001(\01323.g" - + "oogle.cloud.bigquery.migration.v2.BigQue" - + "ryDialectH\000\022K\n\016hiveql_dialect\030\002 \001(\01321.go" - + "ogle.cloud.bigquery.migration.v2.HiveQLD" - + "ialectH\000\022O\n\020redshift_dialect\030\003 \001(\01323.goo" - + "gle.cloud.bigquery.migration.v2.Redshift" - + "DialectH\000\022O\n\020teradata_dialect\030\004 \001(\01323.go" - + "ogle.cloud.bigquery.migration.v2.Teradat" - + "aDialectH\000\022K\n\016oracle_dialect\030\005 \001(\01321.goo" - + "gle.cloud.bigquery.migration.v2.OracleDi" - + "alectH\000\022O\n\020sparksql_dialect\030\006 \001(\01323.goog" - + "le.cloud.bigquery.migration.v2.SparkSQLD" - + "ialectH\000\022Q\n\021snowflake_dialect\030\007 \001(\01324.go" - + "ogle.cloud.bigquery.migration.v2.Snowfla" - + "keDialectH\000\022M\n\017netezza_dialect\030\010 \001(\01322.g" - + "oogle.cloud.bigquery.migration.v2.Netezz" - + "aDialectH\000\022X\n\025azure_synapse_dialect\030\t \001(" - + "\01327.google.cloud.bigquery.migration.v2.A" - + "zureSynapseDialectH\000\022M\n\017vertica_dialect\030" - + "\n \001(\01322.google.cloud.bigquery.migration." - + "v2.VerticaDialectH\000\022R\n\022sql_server_dialec" - + "t\030\013 \001(\01324.google.cloud.bigquery.migratio" - + "n.v2.SQLServerDialectH\000\022S\n\022postgresql_di" - + "alect\030\014 \001(\01325.google.cloud.bigquery.migr" - + "ation.v2.PostgresqlDialectH\000\022K\n\016presto_d" - + "ialect\030\r \001(\01321.google.cloud.bigquery.mig" - + "ration.v2.PrestoDialectH\000\022I\n\rmysql_diale" - + "ct\030\016 \001(\01320.google.cloud.bigquery.migrati" - + "on.v2.MySQLDialectH\000B\017\n\rdialect_value\"\021\n" - + "\017BigQueryDialect\"\017\n\rHiveQLDialect\"\021\n\017Red" - + "shiftDialect\"\212\001\n\017TeradataDialect\022F\n\004mode" - + "\030\001 \001(\01628.google.cloud.bigquery.migration" - + ".v2.TeradataDialect.Mode\"/\n\004Mode\022\024\n\020MODE" - + "_UNSPECIFIED\020\000\022\007\n\003SQL\020\001\022\010\n\004BTEQ\020\002\"\017\n\rOra" - + "cleDialect\"\021\n\017SparkSQLDialect\"\022\n\020Snowfla" - + "keDialect\"\020\n\016NetezzaDialect\"\025\n\023AzureSyna" - + "pseDialect\"\020\n\016VerticaDialect\"\022\n\020SQLServe" - + "rDialect\"\023\n\021PostgresqlDialect\"\017\n\rPrestoD" - + "ialect\"\016\n\014MySQLDialect\"`\n\025ObjectNameMapp" - + "ingList\022G\n\010name_map\030\001 \003(\01325.google.cloud" - + ".bigquery.migration.v2.ObjectNameMapping" - + "\"\235\001\n\021ObjectNameMapping\022B\n\006source\030\001 \001(\01322" - + ".google.cloud.bigquery.migration.v2.Name" - + "MappingKey\022D\n\006target\030\002 \001(\01324.google.clou" - + "d.bigquery.migration.v2.NameMappingValue" - + "\"\253\002\n\016NameMappingKey\022E\n\004type\030\001 \001(\01627.goog" - + "le.cloud.bigquery.migration.v2.NameMappi" - + "ngKey.Type\022\020\n\010database\030\002 \001(\t\022\016\n\006schema\030\003" - + " \001(\t\022\020\n\010relation\030\004 \001(\t\022\021\n\tattribute\030\005 \001(" - + "\t\"\212\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\014\n\010DATA" - + "BASE\020\001\022\n\n\006SCHEMA\020\002\022\014\n\010RELATION\020\003\022\r\n\tATTR" - + "IBUTE\020\004\022\022\n\016RELATION_ALIAS\020\005\022\023\n\017ATTRIBUTE" - + "_ALIAS\020\006\022\014\n\010FUNCTION\020\007\"Y\n\020NameMappingVal" - + "ue\022\020\n\010database\030\001 \001(\t\022\016\n\006schema\030\002 \001(\t\022\020\n\010" - + "relation\030\003 \001(\t\022\021\n\tattribute\030\004 \001(\t\"A\n\tSou" - + "rceEnv\022\030\n\020default_database\030\001 \001(\t\022\032\n\022sche" - + "ma_search_path\030\002 \003(\tB\322\001\n&com.google.clou" - + "d.bigquery.migration.v2B\026TranslationConf" - + "igProtoP\001ZDcloud.google.com/go/bigquery/" - + "migration/apiv2/migrationpb;migrationpb\252" - + "\002\"Google.Cloud.BigQuery.Migration.V2\312\002\"G" - + "oogle\\Cloud\\BigQuery\\Migration\\V2b\006proto" - + "3" + + "uery.migration.v2\032\037google/api/field_beha" + + "vior.proto\"\340\003\n\030TranslationConfigDetails\022" + + "\031\n\017gcs_source_path\030\001 \001(\tH\000\022\031\n\017gcs_target" + + "_path\030\002 \001(\tH\001\022V\n\021name_mapping_list\030\005 \001(\013" + + "29.google.cloud.bigquery.migration.v2.Ob" + + "jectNameMappingListH\002\022C\n\016source_dialect\030" + + "\003 \001(\0132+.google.cloud.bigquery.migration." + + "v2.Dialect\022C\n\016target_dialect\030\004 \001(\0132+.goo" + + "gle.cloud.bigquery.migration.v2.Dialect\022" + + "A\n\nsource_env\030\006 \001(\0132-.google.cloud.bigqu" + + "ery.migration.v2.SourceEnv\022\026\n\016request_so" + + "urce\030\010 \001(\t\022\024\n\014target_types\030\t \003(\tB\021\n\017sour" + + "ce_locationB\021\n\017target_locationB\025\n\023output" + + "_name_mapping\"\353\n\n\007Dialect\022O\n\020bigquery_di" + + "alect\030\001 \001(\01323.google.cloud.bigquery.migr" + + "ation.v2.BigQueryDialectH\000\022K\n\016hiveql_dia" + + "lect\030\002 \001(\01321.google.cloud.bigquery.migra" + + "tion.v2.HiveQLDialectH\000\022O\n\020redshift_dial" + + "ect\030\003 \001(\01323.google.cloud.bigquery.migrat" + + "ion.v2.RedshiftDialectH\000\022O\n\020teradata_dia" + + "lect\030\004 \001(\01323.google.cloud.bigquery.migra" + + "tion.v2.TeradataDialectH\000\022K\n\016oracle_dial" + + "ect\030\005 \001(\01321.google.cloud.bigquery.migrat" + + "ion.v2.OracleDialectH\000\022O\n\020sparksql_diale" + + "ct\030\006 \001(\01323.google.cloud.bigquery.migrati" + + "on.v2.SparkSQLDialectH\000\022Q\n\021snowflake_dia" + + "lect\030\007 \001(\01324.google.cloud.bigquery.migra" + + "tion.v2.SnowflakeDialectH\000\022M\n\017netezza_di" + + "alect\030\010 \001(\01322.google.cloud.bigquery.migr" + + "ation.v2.NetezzaDialectH\000\022X\n\025azure_synap" + + "se_dialect\030\t \001(\01327.google.cloud.bigquery" + + ".migration.v2.AzureSynapseDialectH\000\022M\n\017v" + + "ertica_dialect\030\n \001(\01322.google.cloud.bigq" + + "uery.migration.v2.VerticaDialectH\000\022R\n\022sq" + + "l_server_dialect\030\013 \001(\01324.google.cloud.bi" + + "gquery.migration.v2.SQLServerDialectH\000\022S" + + "\n\022postgresql_dialect\030\014 \001(\01325.google.clou" + + "d.bigquery.migration.v2.PostgresqlDialec" + + "tH\000\022K\n\016presto_dialect\030\r \001(\01321.google.clo" + + "ud.bigquery.migration.v2.PrestoDialectH\000" + + "\022I\n\rmysql_dialect\030\016 \001(\01320.google.cloud.b" + + "igquery.migration.v2.MySQLDialectH\000\022E\n\013d" + + "b2_dialect\030\017 \001(\0132..google.cloud.bigquery" + + ".migration.v2.DB2DialectH\000\022K\n\016sqlite_dia" + + "lect\030\020 \001(\01321.google.cloud.bigquery.migra" + + "tion.v2.SQLiteDialectH\000\022Q\n\021greenplum_dia" + + "lect\030\021 \001(\01324.google.cloud.bigquery.migra" + + "tion.v2.GreenplumDialectH\000B\017\n\rdialect_va" + + "lue\"\021\n\017BigQueryDialect\"\017\n\rHiveQLDialect\"" + + "\021\n\017RedshiftDialect\"\212\001\n\017TeradataDialect\022F" + + "\n\004mode\030\001 \001(\01628.google.cloud.bigquery.mig" + + "ration.v2.TeradataDialect.Mode\"/\n\004Mode\022\024" + + "\n\020MODE_UNSPECIFIED\020\000\022\007\n\003SQL\020\001\022\010\n\004BTEQ\020\002\"" + + "\017\n\rOracleDialect\"\021\n\017SparkSQLDialect\"\022\n\020S" + + "nowflakeDialect\"\020\n\016NetezzaDialect\"\025\n\023Azu" + + "reSynapseDialect\"\020\n\016VerticaDialect\"\022\n\020SQ" + + "LServerDialect\"\023\n\021PostgresqlDialect\"\017\n\rP" + + "restoDialect\"\016\n\014MySQLDialect\"\014\n\nDB2Diale" + + "ct\"\017\n\rSQLiteDialect\"\022\n\020GreenplumDialect\"" + + "`\n\025ObjectNameMappingList\022G\n\010name_map\030\001 \003" + + "(\01325.google.cloud.bigquery.migration.v2." + + "ObjectNameMapping\"\235\001\n\021ObjectNameMapping\022" + + "B\n\006source\030\001 \001(\01322.google.cloud.bigquery." + + "migration.v2.NameMappingKey\022D\n\006target\030\002 " + + "\001(\01324.google.cloud.bigquery.migration.v2" + + ".NameMappingValue\"\253\002\n\016NameMappingKey\022E\n\004" + + "type\030\001 \001(\01627.google.cloud.bigquery.migra" + + "tion.v2.NameMappingKey.Type\022\020\n\010database\030" + + "\002 \001(\t\022\016\n\006schema\030\003 \001(\t\022\020\n\010relation\030\004 \001(\t\022" + + "\021\n\tattribute\030\005 \001(\t\"\212\001\n\004Type\022\024\n\020TYPE_UNSP" + + "ECIFIED\020\000\022\014\n\010DATABASE\020\001\022\n\n\006SCHEMA\020\002\022\014\n\010R" + + "ELATION\020\003\022\r\n\tATTRIBUTE\020\004\022\022\n\016RELATION_ALI" + + "AS\020\005\022\023\n\017ATTRIBUTE_ALIAS\020\006\022\014\n\010FUNCTION\020\007\"" + + "Y\n\020NameMappingValue\022\020\n\010database\030\001 \001(\t\022\016\n" + + "\006schema\030\002 \001(\t\022\020\n\010relation\030\003 \001(\t\022\021\n\tattri" + + "bute\030\004 \001(\t\"f\n\tSourceEnv\022\030\n\020default_datab" + + "ase\030\001 \001(\t\022\032\n\022schema_search_path\030\002 \003(\t\022#\n" + + "\026metadata_store_dataset\030\003 \001(\tB\003\340A\001B\322\001\n&c" + + "om.google.cloud.bigquery.migration.v2B\026T" + + "ranslationConfigProtoP\001ZDcloud.google.co" + + "m/go/bigquery/migration/apiv2/migrationp" + + "b;migrationpb\252\002\"Google.Cloud.BigQuery.Mi" + + "gration.V2\312\002\"Google\\Cloud\\BigQuery\\Migra" + + "tion\\V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_fieldAccessorTable = @@ -215,6 +239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetDialect", "SourceEnv", "RequestSource", + "TargetTypes", "SourceLocation", "TargetLocation", "OutputNameMapping", @@ -239,6 +264,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PostgresqlDialect", "PrestoDialect", "MysqlDialect", + "Db2Dialect", + "SqliteDialect", + "GreenplumDialect", "DialectValue", }); internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor = @@ -327,8 +355,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_descriptor, new java.lang.String[] {}); - internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor = + internal_static_google_cloud_bigquery_migration_v2_DB2Dialect_descriptor = getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_bigquery_migration_v2_DB2Dialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_DB2Dialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_SQLiteDialect_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_bigquery_migration_v2_SQLiteDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_SQLiteDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_GreenplumDialect_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_bigquery_migration_v2_GreenplumDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_GreenplumDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor = + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor, @@ -336,7 +382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NameMap", }); internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor, @@ -344,7 +390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Source", "Target", }); internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor, @@ -352,7 +398,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", "Database", "Schema", "Relation", "Attribute", }); internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor, @@ -360,13 +406,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", "Schema", "Relation", "Attribute", }); internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_bigquery_migration_v2_SourceEnv_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor, new java.lang.String[] { - "DefaultDatabase", "SchemaSearchPath", + "DefaultDatabase", "SchemaSearchPath", "MetadataStoreDataset", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetails.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetails.java new file mode 100644 index 000000000000..58ab8bdfddc8 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetails.java @@ -0,0 +1,2107 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_details.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
          + * The translation details to capture the necessary settings for a translation
          + * job.
          + * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.TranslationDetails} + */ +public final class TranslationDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.TranslationDetails) + TranslationDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TranslationDetails.newBuilder() to construct. + private TranslationDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TranslationDetails() { + sourceTargetMapping_ = java.util.Collections.emptyList(); + targetBaseUri_ = ""; + targetReturnLiterals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TranslationDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.TranslationDetails.class, + com.google.cloud.bigquery.migration.v2.TranslationDetails.Builder.class); + } + + private int bitField0_; + public static final int SOURCE_TARGET_MAPPING_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + sourceTargetMapping_; + /** + * + * + *
          +   * The mapping from source to target SQL.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + @java.lang.Override + public java.util.List + getSourceTargetMappingList() { + return sourceTargetMapping_; + } + /** + * + * + *
          +   * The mapping from source to target SQL.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2.SourceTargetMappingOrBuilder> + getSourceTargetMappingOrBuilderList() { + return sourceTargetMapping_; + } + /** + * + * + *
          +   * The mapping from source to target SQL.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + @java.lang.Override + public int getSourceTargetMappingCount() { + return sourceTargetMapping_.size(); + } + /** + * + * + *
          +   * The mapping from source to target SQL.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceTargetMapping getSourceTargetMapping( + int index) { + return sourceTargetMapping_.get(index); + } + /** + * + * + *
          +   * The mapping from source to target SQL.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceTargetMappingOrBuilder + getSourceTargetMappingOrBuilder(int index) { + return sourceTargetMapping_.get(index); + } + + public static final int TARGET_BASE_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetBaseUri_ = ""; + /** + * + * + *
          +   * The base URI for all writes to persistent storage.
          +   * 
          + * + * string target_base_uri = 2; + * + * @return The targetBaseUri. + */ + @java.lang.Override + public java.lang.String getTargetBaseUri() { + java.lang.Object ref = targetBaseUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetBaseUri_ = s; + return s; + } + } + /** + * + * + *
          +   * The base URI for all writes to persistent storage.
          +   * 
          + * + * string target_base_uri = 2; + * + * @return The bytes for targetBaseUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBaseUriBytes() { + java.lang.Object ref = targetBaseUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetBaseUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_ENVIRONMENT_FIELD_NUMBER = 3; + private com.google.cloud.bigquery.migration.v2.SourceEnvironment sourceEnvironment_; + /** + * + * + *
          +   * The default source environment values for the translation.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + * + * @return Whether the sourceEnvironment field is set. + */ + @java.lang.Override + public boolean hasSourceEnvironment() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * The default source environment values for the translation.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + * + * @return The sourceEnvironment. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceEnvironment getSourceEnvironment() { + return sourceEnvironment_ == null + ? com.google.cloud.bigquery.migration.v2.SourceEnvironment.getDefaultInstance() + : sourceEnvironment_; + } + /** + * + * + *
          +   * The default source environment values for the translation.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SourceEnvironmentOrBuilder + getSourceEnvironmentOrBuilder() { + return sourceEnvironment_ == null + ? com.google.cloud.bigquery.migration.v2.SourceEnvironment.getDefaultInstance() + : sourceEnvironment_; + } + + public static final int TARGET_RETURN_LITERALS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetReturnLiterals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * The list of literal targets that will be directly returned to the response.
          +   * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +   * providing a target_base_uri will prevent writing to persistent storage.
          +   * 
          + * + * repeated string target_return_literals = 4; + * + * @return A list containing the targetReturnLiterals. + */ + public com.google.protobuf.ProtocolStringList getTargetReturnLiteralsList() { + return targetReturnLiterals_; + } + /** + * + * + *
          +   * The list of literal targets that will be directly returned to the response.
          +   * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +   * providing a target_base_uri will prevent writing to persistent storage.
          +   * 
          + * + * repeated string target_return_literals = 4; + * + * @return The count of targetReturnLiterals. + */ + public int getTargetReturnLiteralsCount() { + return targetReturnLiterals_.size(); + } + /** + * + * + *
          +   * The list of literal targets that will be directly returned to the response.
          +   * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +   * providing a target_base_uri will prevent writing to persistent storage.
          +   * 
          + * + * repeated string target_return_literals = 4; + * + * @param index The index of the element to return. + * @return The targetReturnLiterals at the given index. + */ + public java.lang.String getTargetReturnLiterals(int index) { + return targetReturnLiterals_.get(index); + } + /** + * + * + *
          +   * The list of literal targets that will be directly returned to the response.
          +   * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +   * providing a target_base_uri will prevent writing to persistent storage.
          +   * 
          + * + * repeated string target_return_literals = 4; + * + * @param index The index of the value to return. + * @return The bytes of the targetReturnLiterals at the given index. + */ + public com.google.protobuf.ByteString getTargetReturnLiteralsBytes(int index) { + return targetReturnLiterals_.getByteString(index); + } + + public static final int TARGET_TYPES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata,
          +   * lineage_from_sql_scripts, etc. If not specified, a default set of
          +   * targets will be generated. Some additional target types may be slower to
          +   * generate. See the documentation for the set of available target types.
          +   * 
          + * + * repeated string target_types = 5; + * + * @return A list containing the targetTypes. + */ + public com.google.protobuf.ProtocolStringList getTargetTypesList() { + return targetTypes_; + } + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata,
          +   * lineage_from_sql_scripts, etc. If not specified, a default set of
          +   * targets will be generated. Some additional target types may be slower to
          +   * generate. See the documentation for the set of available target types.
          +   * 
          + * + * repeated string target_types = 5; + * + * @return The count of targetTypes. + */ + public int getTargetTypesCount() { + return targetTypes_.size(); + } + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata,
          +   * lineage_from_sql_scripts, etc. If not specified, a default set of
          +   * targets will be generated. Some additional target types may be slower to
          +   * generate. See the documentation for the set of available target types.
          +   * 
          + * + * repeated string target_types = 5; + * + * @param index The index of the element to return. + * @return The targetTypes at the given index. + */ + public java.lang.String getTargetTypes(int index) { + return targetTypes_.get(index); + } + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata,
          +   * lineage_from_sql_scripts, etc. If not specified, a default set of
          +   * targets will be generated. Some additional target types may be slower to
          +   * generate. See the documentation for the set of available target types.
          +   * 
          + * + * repeated string target_types = 5; + * + * @param index The index of the value to return. + * @return The bytes of the targetTypes at the given index. + */ + public com.google.protobuf.ByteString getTargetTypesBytes(int index) { + return targetTypes_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < sourceTargetMapping_.size(); i++) { + output.writeMessage(1, sourceTargetMapping_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetBaseUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetBaseUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSourceEnvironment()); + } + for (int i = 0; i < targetReturnLiterals_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, targetReturnLiterals_.getRaw(i)); + } + for (int i = 0; i < targetTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetTypes_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sourceTargetMapping_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, sourceTargetMapping_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetBaseUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetBaseUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSourceEnvironment()); + } + { + int dataSize = 0; + for (int i = 0; i < targetReturnLiterals_.size(); i++) { + dataSize += computeStringSizeNoTag(targetReturnLiterals_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetReturnLiteralsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < targetTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(targetTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetTypesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.migration.v2.TranslationDetails)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.TranslationDetails other = + (com.google.cloud.bigquery.migration.v2.TranslationDetails) obj; + + if (!getSourceTargetMappingList().equals(other.getSourceTargetMappingList())) return false; + if (!getTargetBaseUri().equals(other.getTargetBaseUri())) return false; + if (hasSourceEnvironment() != other.hasSourceEnvironment()) return false; + if (hasSourceEnvironment()) { + if (!getSourceEnvironment().equals(other.getSourceEnvironment())) return false; + } + if (!getTargetReturnLiteralsList().equals(other.getTargetReturnLiteralsList())) return false; + if (!getTargetTypesList().equals(other.getTargetTypesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSourceTargetMappingCount() > 0) { + hash = (37 * hash) + SOURCE_TARGET_MAPPING_FIELD_NUMBER; + hash = (53 * hash) + getSourceTargetMappingList().hashCode(); + } + hash = (37 * hash) + TARGET_BASE_URI_FIELD_NUMBER; + hash = (53 * hash) + getTargetBaseUri().hashCode(); + if (hasSourceEnvironment()) { + hash = (37 * hash) + SOURCE_ENVIRONMENT_FIELD_NUMBER; + hash = (53 * hash) + getSourceEnvironment().hashCode(); + } + if (getTargetReturnLiteralsCount() > 0) { + hash = (37 * hash) + TARGET_RETURN_LITERALS_FIELD_NUMBER; + hash = (53 * hash) + getTargetReturnLiteralsList().hashCode(); + } + if (getTargetTypesCount() > 0) { + hash = (37 * hash) + TARGET_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getTargetTypesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.migration.v2.TranslationDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationDetails parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.TranslationDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * The translation details to capture the necessary settings for a translation
          +   * job.
          +   * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.TranslationDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.TranslationDetails) + com.google.cloud.bigquery.migration.v2.TranslationDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.TranslationDetails.class, + com.google.cloud.bigquery.migration.v2.TranslationDetails.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.TranslationDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSourceTargetMappingFieldBuilder(); + getSourceEnvironmentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sourceTargetMappingBuilder_ == null) { + sourceTargetMapping_ = java.util.Collections.emptyList(); + } else { + sourceTargetMapping_ = null; + sourceTargetMappingBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + targetBaseUri_ = ""; + sourceEnvironment_ = null; + if (sourceEnvironmentBuilder_ != null) { + sourceEnvironmentBuilder_.dispose(); + sourceEnvironmentBuilder_ = null; + } + targetReturnLiterals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationDetails getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.TranslationDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationDetails build() { + com.google.cloud.bigquery.migration.v2.TranslationDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationDetails buildPartial() { + com.google.cloud.bigquery.migration.v2.TranslationDetails result = + new com.google.cloud.bigquery.migration.v2.TranslationDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.migration.v2.TranslationDetails result) { + if (sourceTargetMappingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sourceTargetMapping_ = java.util.Collections.unmodifiableList(sourceTargetMapping_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sourceTargetMapping_ = sourceTargetMapping_; + } else { + result.sourceTargetMapping_ = sourceTargetMappingBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.bigquery.migration.v2.TranslationDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetBaseUri_ = targetBaseUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceEnvironment_ = + sourceEnvironmentBuilder_ == null + ? sourceEnvironment_ + : sourceEnvironmentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + targetReturnLiterals_.makeImmutable(); + result.targetReturnLiterals_ = targetReturnLiterals_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + targetTypes_.makeImmutable(); + result.targetTypes_ = targetTypes_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.migration.v2.TranslationDetails) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.TranslationDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.TranslationDetails other) { + if (other == com.google.cloud.bigquery.migration.v2.TranslationDetails.getDefaultInstance()) + return this; + if (sourceTargetMappingBuilder_ == null) { + if (!other.sourceTargetMapping_.isEmpty()) { + if (sourceTargetMapping_.isEmpty()) { + sourceTargetMapping_ = other.sourceTargetMapping_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSourceTargetMappingIsMutable(); + sourceTargetMapping_.addAll(other.sourceTargetMapping_); + } + onChanged(); + } + } else { + if (!other.sourceTargetMapping_.isEmpty()) { + if (sourceTargetMappingBuilder_.isEmpty()) { + sourceTargetMappingBuilder_.dispose(); + sourceTargetMappingBuilder_ = null; + sourceTargetMapping_ = other.sourceTargetMapping_; + bitField0_ = (bitField0_ & ~0x00000001); + sourceTargetMappingBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSourceTargetMappingFieldBuilder() + : null; + } else { + sourceTargetMappingBuilder_.addAllMessages(other.sourceTargetMapping_); + } + } + } + if (!other.getTargetBaseUri().isEmpty()) { + targetBaseUri_ = other.targetBaseUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSourceEnvironment()) { + mergeSourceEnvironment(other.getSourceEnvironment()); + } + if (!other.targetReturnLiterals_.isEmpty()) { + if (targetReturnLiterals_.isEmpty()) { + targetReturnLiterals_ = other.targetReturnLiterals_; + bitField0_ |= 0x00000008; + } else { + ensureTargetReturnLiteralsIsMutable(); + targetReturnLiterals_.addAll(other.targetReturnLiterals_); + } + onChanged(); + } + if (!other.targetTypes_.isEmpty()) { + if (targetTypes_.isEmpty()) { + targetTypes_ = other.targetTypes_; + bitField0_ |= 0x00000010; + } else { + ensureTargetTypesIsMutable(); + targetTypes_.addAll(other.targetTypes_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.bigquery.migration.v2.SourceTargetMapping m = + input.readMessage( + com.google.cloud.bigquery.migration.v2.SourceTargetMapping.parser(), + extensionRegistry); + if (sourceTargetMappingBuilder_ == null) { + ensureSourceTargetMappingIsMutable(); + sourceTargetMapping_.add(m); + } else { + sourceTargetMappingBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + targetBaseUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getSourceEnvironmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetReturnLiteralsIsMutable(); + targetReturnLiterals_.add(s); + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetTypesIsMutable(); + targetTypes_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + sourceTargetMapping_ = java.util.Collections.emptyList(); + + private void ensureSourceTargetMappingIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sourceTargetMapping_ = + new java.util.ArrayList( + sourceTargetMapping_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SourceTargetMapping, + com.google.cloud.bigquery.migration.v2.SourceTargetMapping.Builder, + com.google.cloud.bigquery.migration.v2.SourceTargetMappingOrBuilder> + sourceTargetMappingBuilder_; + + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public java.util.List + getSourceTargetMappingList() { + if (sourceTargetMappingBuilder_ == null) { + return java.util.Collections.unmodifiableList(sourceTargetMapping_); + } else { + return sourceTargetMappingBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public int getSourceTargetMappingCount() { + if (sourceTargetMappingBuilder_ == null) { + return sourceTargetMapping_.size(); + } else { + return sourceTargetMappingBuilder_.getCount(); + } + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public com.google.cloud.bigquery.migration.v2.SourceTargetMapping getSourceTargetMapping( + int index) { + if (sourceTargetMappingBuilder_ == null) { + return sourceTargetMapping_.get(index); + } else { + return sourceTargetMappingBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public Builder setSourceTargetMapping( + int index, com.google.cloud.bigquery.migration.v2.SourceTargetMapping value) { + if (sourceTargetMappingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceTargetMappingIsMutable(); + sourceTargetMapping_.set(index, value); + onChanged(); + } else { + sourceTargetMappingBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public Builder setSourceTargetMapping( + int index, + com.google.cloud.bigquery.migration.v2.SourceTargetMapping.Builder builderForValue) { + if (sourceTargetMappingBuilder_ == null) { + ensureSourceTargetMappingIsMutable(); + sourceTargetMapping_.set(index, builderForValue.build()); + onChanged(); + } else { + sourceTargetMappingBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public Builder addSourceTargetMapping( + com.google.cloud.bigquery.migration.v2.SourceTargetMapping value) { + if (sourceTargetMappingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceTargetMappingIsMutable(); + sourceTargetMapping_.add(value); + onChanged(); + } else { + sourceTargetMappingBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public Builder addSourceTargetMapping( + int index, com.google.cloud.bigquery.migration.v2.SourceTargetMapping value) { + if (sourceTargetMappingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceTargetMappingIsMutable(); + sourceTargetMapping_.add(index, value); + onChanged(); + } else { + sourceTargetMappingBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public Builder addSourceTargetMapping( + com.google.cloud.bigquery.migration.v2.SourceTargetMapping.Builder builderForValue) { + if (sourceTargetMappingBuilder_ == null) { + ensureSourceTargetMappingIsMutable(); + sourceTargetMapping_.add(builderForValue.build()); + onChanged(); + } else { + sourceTargetMappingBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public Builder addSourceTargetMapping( + int index, + com.google.cloud.bigquery.migration.v2.SourceTargetMapping.Builder builderForValue) { + if (sourceTargetMappingBuilder_ == null) { + ensureSourceTargetMappingIsMutable(); + sourceTargetMapping_.add(index, builderForValue.build()); + onChanged(); + } else { + sourceTargetMappingBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public Builder addAllSourceTargetMapping( + java.lang.Iterable + values) { + if (sourceTargetMappingBuilder_ == null) { + ensureSourceTargetMappingIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceTargetMapping_); + onChanged(); + } else { + sourceTargetMappingBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public Builder clearSourceTargetMapping() { + if (sourceTargetMappingBuilder_ == null) { + sourceTargetMapping_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sourceTargetMappingBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public Builder removeSourceTargetMapping(int index) { + if (sourceTargetMappingBuilder_ == null) { + ensureSourceTargetMappingIsMutable(); + sourceTargetMapping_.remove(index); + onChanged(); + } else { + sourceTargetMappingBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public com.google.cloud.bigquery.migration.v2.SourceTargetMapping.Builder + getSourceTargetMappingBuilder(int index) { + return getSourceTargetMappingFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public com.google.cloud.bigquery.migration.v2.SourceTargetMappingOrBuilder + getSourceTargetMappingOrBuilder(int index) { + if (sourceTargetMappingBuilder_ == null) { + return sourceTargetMapping_.get(index); + } else { + return sourceTargetMappingBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2.SourceTargetMappingOrBuilder> + getSourceTargetMappingOrBuilderList() { + if (sourceTargetMappingBuilder_ != null) { + return sourceTargetMappingBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sourceTargetMapping_); + } + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public com.google.cloud.bigquery.migration.v2.SourceTargetMapping.Builder + addSourceTargetMappingBuilder() { + return getSourceTargetMappingFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.migration.v2.SourceTargetMapping.getDefaultInstance()); + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public com.google.cloud.bigquery.migration.v2.SourceTargetMapping.Builder + addSourceTargetMappingBuilder(int index) { + return getSourceTargetMappingFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.migration.v2.SourceTargetMapping.getDefaultInstance()); + } + /** + * + * + *
          +     * The mapping from source to target SQL.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + public java.util.List + getSourceTargetMappingBuilderList() { + return getSourceTargetMappingFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SourceTargetMapping, + com.google.cloud.bigquery.migration.v2.SourceTargetMapping.Builder, + com.google.cloud.bigquery.migration.v2.SourceTargetMappingOrBuilder> + getSourceTargetMappingFieldBuilder() { + if (sourceTargetMappingBuilder_ == null) { + sourceTargetMappingBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SourceTargetMapping, + com.google.cloud.bigquery.migration.v2.SourceTargetMapping.Builder, + com.google.cloud.bigquery.migration.v2.SourceTargetMappingOrBuilder>( + sourceTargetMapping_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sourceTargetMapping_ = null; + } + return sourceTargetMappingBuilder_; + } + + private java.lang.Object targetBaseUri_ = ""; + /** + * + * + *
          +     * The base URI for all writes to persistent storage.
          +     * 
          + * + * string target_base_uri = 2; + * + * @return The targetBaseUri. + */ + public java.lang.String getTargetBaseUri() { + java.lang.Object ref = targetBaseUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetBaseUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The base URI for all writes to persistent storage.
          +     * 
          + * + * string target_base_uri = 2; + * + * @return The bytes for targetBaseUri. + */ + public com.google.protobuf.ByteString getTargetBaseUriBytes() { + java.lang.Object ref = targetBaseUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetBaseUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The base URI for all writes to persistent storage.
          +     * 
          + * + * string target_base_uri = 2; + * + * @param value The targetBaseUri to set. + * @return This builder for chaining. + */ + public Builder setTargetBaseUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetBaseUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * The base URI for all writes to persistent storage.
          +     * 
          + * + * string target_base_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearTargetBaseUri() { + targetBaseUri_ = getDefaultInstance().getTargetBaseUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * The base URI for all writes to persistent storage.
          +     * 
          + * + * string target_base_uri = 2; + * + * @param value The bytes for targetBaseUri to set. + * @return This builder for chaining. + */ + public Builder setTargetBaseUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetBaseUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.bigquery.migration.v2.SourceEnvironment sourceEnvironment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SourceEnvironment, + com.google.cloud.bigquery.migration.v2.SourceEnvironment.Builder, + com.google.cloud.bigquery.migration.v2.SourceEnvironmentOrBuilder> + sourceEnvironmentBuilder_; + /** + * + * + *
          +     * The default source environment values for the translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + * + * @return Whether the sourceEnvironment field is set. + */ + public boolean hasSourceEnvironment() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * The default source environment values for the translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + * + * @return The sourceEnvironment. + */ + public com.google.cloud.bigquery.migration.v2.SourceEnvironment getSourceEnvironment() { + if (sourceEnvironmentBuilder_ == null) { + return sourceEnvironment_ == null + ? com.google.cloud.bigquery.migration.v2.SourceEnvironment.getDefaultInstance() + : sourceEnvironment_; + } else { + return sourceEnvironmentBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * The default source environment values for the translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + */ + public Builder setSourceEnvironment( + com.google.cloud.bigquery.migration.v2.SourceEnvironment value) { + if (sourceEnvironmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceEnvironment_ = value; + } else { + sourceEnvironmentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * The default source environment values for the translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + */ + public Builder setSourceEnvironment( + com.google.cloud.bigquery.migration.v2.SourceEnvironment.Builder builderForValue) { + if (sourceEnvironmentBuilder_ == null) { + sourceEnvironment_ = builderForValue.build(); + } else { + sourceEnvironmentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * The default source environment values for the translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + */ + public Builder mergeSourceEnvironment( + com.google.cloud.bigquery.migration.v2.SourceEnvironment value) { + if (sourceEnvironmentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && sourceEnvironment_ != null + && sourceEnvironment_ + != com.google.cloud.bigquery.migration.v2.SourceEnvironment.getDefaultInstance()) { + getSourceEnvironmentBuilder().mergeFrom(value); + } else { + sourceEnvironment_ = value; + } + } else { + sourceEnvironmentBuilder_.mergeFrom(value); + } + if (sourceEnvironment_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * The default source environment values for the translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + */ + public Builder clearSourceEnvironment() { + bitField0_ = (bitField0_ & ~0x00000004); + sourceEnvironment_ = null; + if (sourceEnvironmentBuilder_ != null) { + sourceEnvironmentBuilder_.dispose(); + sourceEnvironmentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * The default source environment values for the translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + */ + public com.google.cloud.bigquery.migration.v2.SourceEnvironment.Builder + getSourceEnvironmentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSourceEnvironmentFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * The default source environment values for the translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + */ + public com.google.cloud.bigquery.migration.v2.SourceEnvironmentOrBuilder + getSourceEnvironmentOrBuilder() { + if (sourceEnvironmentBuilder_ != null) { + return sourceEnvironmentBuilder_.getMessageOrBuilder(); + } else { + return sourceEnvironment_ == null + ? com.google.cloud.bigquery.migration.v2.SourceEnvironment.getDefaultInstance() + : sourceEnvironment_; + } + } + /** + * + * + *
          +     * The default source environment values for the translation.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SourceEnvironment, + com.google.cloud.bigquery.migration.v2.SourceEnvironment.Builder, + com.google.cloud.bigquery.migration.v2.SourceEnvironmentOrBuilder> + getSourceEnvironmentFieldBuilder() { + if (sourceEnvironmentBuilder_ == null) { + sourceEnvironmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SourceEnvironment, + com.google.cloud.bigquery.migration.v2.SourceEnvironment.Builder, + com.google.cloud.bigquery.migration.v2.SourceEnvironmentOrBuilder>( + getSourceEnvironment(), getParentForChildren(), isClean()); + sourceEnvironment_ = null; + } + return sourceEnvironmentBuilder_; + } + + private com.google.protobuf.LazyStringArrayList targetReturnLiterals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetReturnLiteralsIsMutable() { + if (!targetReturnLiterals_.isModifiable()) { + targetReturnLiterals_ = new com.google.protobuf.LazyStringArrayList(targetReturnLiterals_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
          +     * The list of literal targets that will be directly returned to the response.
          +     * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +     * providing a target_base_uri will prevent writing to persistent storage.
          +     * 
          + * + * repeated string target_return_literals = 4; + * + * @return A list containing the targetReturnLiterals. + */ + public com.google.protobuf.ProtocolStringList getTargetReturnLiteralsList() { + targetReturnLiterals_.makeImmutable(); + return targetReturnLiterals_; + } + /** + * + * + *
          +     * The list of literal targets that will be directly returned to the response.
          +     * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +     * providing a target_base_uri will prevent writing to persistent storage.
          +     * 
          + * + * repeated string target_return_literals = 4; + * + * @return The count of targetReturnLiterals. + */ + public int getTargetReturnLiteralsCount() { + return targetReturnLiterals_.size(); + } + /** + * + * + *
          +     * The list of literal targets that will be directly returned to the response.
          +     * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +     * providing a target_base_uri will prevent writing to persistent storage.
          +     * 
          + * + * repeated string target_return_literals = 4; + * + * @param index The index of the element to return. + * @return The targetReturnLiterals at the given index. + */ + public java.lang.String getTargetReturnLiterals(int index) { + return targetReturnLiterals_.get(index); + } + /** + * + * + *
          +     * The list of literal targets that will be directly returned to the response.
          +     * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +     * providing a target_base_uri will prevent writing to persistent storage.
          +     * 
          + * + * repeated string target_return_literals = 4; + * + * @param index The index of the value to return. + * @return The bytes of the targetReturnLiterals at the given index. + */ + public com.google.protobuf.ByteString getTargetReturnLiteralsBytes(int index) { + return targetReturnLiterals_.getByteString(index); + } + /** + * + * + *
          +     * The list of literal targets that will be directly returned to the response.
          +     * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +     * providing a target_base_uri will prevent writing to persistent storage.
          +     * 
          + * + * repeated string target_return_literals = 4; + * + * @param index The index to set the value at. + * @param value The targetReturnLiterals to set. + * @return This builder for chaining. + */ + public Builder setTargetReturnLiterals(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetReturnLiteralsIsMutable(); + targetReturnLiterals_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * The list of literal targets that will be directly returned to the response.
          +     * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +     * providing a target_base_uri will prevent writing to persistent storage.
          +     * 
          + * + * repeated string target_return_literals = 4; + * + * @param value The targetReturnLiterals to add. + * @return This builder for chaining. + */ + public Builder addTargetReturnLiterals(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetReturnLiteralsIsMutable(); + targetReturnLiterals_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * The list of literal targets that will be directly returned to the response.
          +     * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +     * providing a target_base_uri will prevent writing to persistent storage.
          +     * 
          + * + * repeated string target_return_literals = 4; + * + * @param values The targetReturnLiterals to add. + * @return This builder for chaining. + */ + public Builder addAllTargetReturnLiterals(java.lang.Iterable values) { + ensureTargetReturnLiteralsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetReturnLiterals_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * The list of literal targets that will be directly returned to the response.
          +     * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +     * providing a target_base_uri will prevent writing to persistent storage.
          +     * 
          + * + * repeated string target_return_literals = 4; + * + * @return This builder for chaining. + */ + public Builder clearTargetReturnLiterals() { + targetReturnLiterals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * The list of literal targets that will be directly returned to the response.
          +     * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +     * providing a target_base_uri will prevent writing to persistent storage.
          +     * 
          + * + * repeated string target_return_literals = 4; + * + * @param value The bytes of the targetReturnLiterals to add. + * @return This builder for chaining. + */ + public Builder addTargetReturnLiteralsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetReturnLiteralsIsMutable(); + targetReturnLiterals_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList targetTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetTypesIsMutable() { + if (!targetTypes_.isModifiable()) { + targetTypes_ = new com.google.protobuf.LazyStringArrayList(targetTypes_); + } + bitField0_ |= 0x00000010; + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata,
          +     * lineage_from_sql_scripts, etc. If not specified, a default set of
          +     * targets will be generated. Some additional target types may be slower to
          +     * generate. See the documentation for the set of available target types.
          +     * 
          + * + * repeated string target_types = 5; + * + * @return A list containing the targetTypes. + */ + public com.google.protobuf.ProtocolStringList getTargetTypesList() { + targetTypes_.makeImmutable(); + return targetTypes_; + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata,
          +     * lineage_from_sql_scripts, etc. If not specified, a default set of
          +     * targets will be generated. Some additional target types may be slower to
          +     * generate. See the documentation for the set of available target types.
          +     * 
          + * + * repeated string target_types = 5; + * + * @return The count of targetTypes. + */ + public int getTargetTypesCount() { + return targetTypes_.size(); + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata,
          +     * lineage_from_sql_scripts, etc. If not specified, a default set of
          +     * targets will be generated. Some additional target types may be slower to
          +     * generate. See the documentation for the set of available target types.
          +     * 
          + * + * repeated string target_types = 5; + * + * @param index The index of the element to return. + * @return The targetTypes at the given index. + */ + public java.lang.String getTargetTypes(int index) { + return targetTypes_.get(index); + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata,
          +     * lineage_from_sql_scripts, etc. If not specified, a default set of
          +     * targets will be generated. Some additional target types may be slower to
          +     * generate. See the documentation for the set of available target types.
          +     * 
          + * + * repeated string target_types = 5; + * + * @param index The index of the value to return. + * @return The bytes of the targetTypes at the given index. + */ + public com.google.protobuf.ByteString getTargetTypesBytes(int index) { + return targetTypes_.getByteString(index); + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata,
          +     * lineage_from_sql_scripts, etc. If not specified, a default set of
          +     * targets will be generated. Some additional target types may be slower to
          +     * generate. See the documentation for the set of available target types.
          +     * 
          + * + * repeated string target_types = 5; + * + * @param index The index to set the value at. + * @param value The targetTypes to set. + * @return This builder for chaining. + */ + public Builder setTargetTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetTypesIsMutable(); + targetTypes_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata,
          +     * lineage_from_sql_scripts, etc. If not specified, a default set of
          +     * targets will be generated. Some additional target types may be slower to
          +     * generate. See the documentation for the set of available target types.
          +     * 
          + * + * repeated string target_types = 5; + * + * @param value The targetTypes to add. + * @return This builder for chaining. + */ + public Builder addTargetTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetTypesIsMutable(); + targetTypes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata,
          +     * lineage_from_sql_scripts, etc. If not specified, a default set of
          +     * targets will be generated. Some additional target types may be slower to
          +     * generate. See the documentation for the set of available target types.
          +     * 
          + * + * repeated string target_types = 5; + * + * @param values The targetTypes to add. + * @return This builder for chaining. + */ + public Builder addAllTargetTypes(java.lang.Iterable values) { + ensureTargetTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetTypes_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata,
          +     * lineage_from_sql_scripts, etc. If not specified, a default set of
          +     * targets will be generated. Some additional target types may be slower to
          +     * generate. See the documentation for the set of available target types.
          +     * 
          + * + * repeated string target_types = 5; + * + * @return This builder for chaining. + */ + public Builder clearTargetTypes() { + targetTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * The types of output to generate, e.g. sql, metadata,
          +     * lineage_from_sql_scripts, etc. If not specified, a default set of
          +     * targets will be generated. Some additional target types may be slower to
          +     * generate. See the documentation for the set of available target types.
          +     * 
          + * + * repeated string target_types = 5; + * + * @param value The bytes of the targetTypes to add. + * @return This builder for chaining. + */ + public Builder addTargetTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetTypesIsMutable(); + targetTypes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.TranslationDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.TranslationDetails) + private static final com.google.cloud.bigquery.migration.v2.TranslationDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.TranslationDetails(); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetailsOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetailsOrBuilder.java new file mode 100644 index 000000000000..98ee38312903 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetailsOrBuilder.java @@ -0,0 +1,272 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_details.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public interface TranslationDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.TranslationDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The mapping from source to target SQL.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + java.util.List + getSourceTargetMappingList(); + /** + * + * + *
          +   * The mapping from source to target SQL.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + com.google.cloud.bigquery.migration.v2.SourceTargetMapping getSourceTargetMapping(int index); + /** + * + * + *
          +   * The mapping from source to target SQL.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + int getSourceTargetMappingCount(); + /** + * + * + *
          +   * The mapping from source to target SQL.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + java.util.List + getSourceTargetMappingOrBuilderList(); + /** + * + * + *
          +   * The mapping from source to target SQL.
          +   * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * + */ + com.google.cloud.bigquery.migration.v2.SourceTargetMappingOrBuilder + getSourceTargetMappingOrBuilder(int index); + + /** + * + * + *
          +   * The base URI for all writes to persistent storage.
          +   * 
          + * + * string target_base_uri = 2; + * + * @return The targetBaseUri. + */ + java.lang.String getTargetBaseUri(); + /** + * + * + *
          +   * The base URI for all writes to persistent storage.
          +   * 
          + * + * string target_base_uri = 2; + * + * @return The bytes for targetBaseUri. + */ + com.google.protobuf.ByteString getTargetBaseUriBytes(); + + /** + * + * + *
          +   * The default source environment values for the translation.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + * + * @return Whether the sourceEnvironment field is set. + */ + boolean hasSourceEnvironment(); + /** + * + * + *
          +   * The default source environment values for the translation.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + * + * @return The sourceEnvironment. + */ + com.google.cloud.bigquery.migration.v2.SourceEnvironment getSourceEnvironment(); + /** + * + * + *
          +   * The default source environment values for the translation.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + */ + com.google.cloud.bigquery.migration.v2.SourceEnvironmentOrBuilder getSourceEnvironmentOrBuilder(); + + /** + * + * + *
          +   * The list of literal targets that will be directly returned to the response.
          +   * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +   * providing a target_base_uri will prevent writing to persistent storage.
          +   * 
          + * + * repeated string target_return_literals = 4; + * + * @return A list containing the targetReturnLiterals. + */ + java.util.List getTargetReturnLiteralsList(); + /** + * + * + *
          +   * The list of literal targets that will be directly returned to the response.
          +   * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +   * providing a target_base_uri will prevent writing to persistent storage.
          +   * 
          + * + * repeated string target_return_literals = 4; + * + * @return The count of targetReturnLiterals. + */ + int getTargetReturnLiteralsCount(); + /** + * + * + *
          +   * The list of literal targets that will be directly returned to the response.
          +   * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +   * providing a target_base_uri will prevent writing to persistent storage.
          +   * 
          + * + * repeated string target_return_literals = 4; + * + * @param index The index of the element to return. + * @return The targetReturnLiterals at the given index. + */ + java.lang.String getTargetReturnLiterals(int index); + /** + * + * + *
          +   * The list of literal targets that will be directly returned to the response.
          +   * Each entry consists of the constructed path, EXCLUDING the base path. Not
          +   * providing a target_base_uri will prevent writing to persistent storage.
          +   * 
          + * + * repeated string target_return_literals = 4; + * + * @param index The index of the value to return. + * @return The bytes of the targetReturnLiterals at the given index. + */ + com.google.protobuf.ByteString getTargetReturnLiteralsBytes(int index); + + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata,
          +   * lineage_from_sql_scripts, etc. If not specified, a default set of
          +   * targets will be generated. Some additional target types may be slower to
          +   * generate. See the documentation for the set of available target types.
          +   * 
          + * + * repeated string target_types = 5; + * + * @return A list containing the targetTypes. + */ + java.util.List getTargetTypesList(); + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata,
          +   * lineage_from_sql_scripts, etc. If not specified, a default set of
          +   * targets will be generated. Some additional target types may be slower to
          +   * generate. See the documentation for the set of available target types.
          +   * 
          + * + * repeated string target_types = 5; + * + * @return The count of targetTypes. + */ + int getTargetTypesCount(); + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata,
          +   * lineage_from_sql_scripts, etc. If not specified, a default set of
          +   * targets will be generated. Some additional target types may be slower to
          +   * generate. See the documentation for the set of available target types.
          +   * 
          + * + * repeated string target_types = 5; + * + * @param index The index of the element to return. + * @return The targetTypes at the given index. + */ + java.lang.String getTargetTypes(int index); + /** + * + * + *
          +   * The types of output to generate, e.g. sql, metadata,
          +   * lineage_from_sql_scripts, etc. If not specified, a default set of
          +   * targets will be generated. Some additional target types may be slower to
          +   * generate. See the documentation for the set of available target types.
          +   * 
          + * + * repeated string target_types = 5; + * + * @param index The index of the value to return. + * @return The bytes of the targetTypes at the given index. + */ + com.google.protobuf.ByteString getTargetTypesBytes(int index); +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetailsProto.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetailsProto.java new file mode 100644 index 000000000000..41ed24590f05 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetailsProto.java @@ -0,0 +1,162 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_details.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public final class TranslationDetailsProto { + private TranslationDetailsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_TranslationDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_TranslationDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_SourceTargetMapping_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_SourceTargetMapping_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_SourceSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_SourceSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_TargetSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_TargetSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_Literal_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_Literal_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_SourceEnvironment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_SourceEnvironment_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\n\007literal\030\002 \001(\0132+.google.cloud.bigque" + + "ry.migration.v2.LiteralH\000\022\025\n\010encoding\030\003 " + + "\001(\tB\003\340A\001B\010\n\006source\"#\n\nTargetSpec\022\025\n\rrela" + + "tive_path\030\001 \001(\t\"h\n\007Literal\022\030\n\016literal_st" + + "ring\030\002 \001(\tH\000\022\027\n\rliteral_bytes\030\003 \001(\014H\000\022\032\n" + + "\rrelative_path\030\001 \001(\tB\003\340A\002B\016\n\014literal_dat" + + "a\"n\n\021SourceEnvironment\022\030\n\020default_databa" + + "se\030\001 \001(\t\022\032\n\022schema_search_path\030\002 \003(\t\022#\n\026" + + "metadata_store_dataset\030\003 \001(\tB\003\340A\001B\323\001\n&co" + + "m.google.cloud.bigquery.migration.v2B\027Tr" + + "anslationDetailsProtoP\001ZDcloud.google.co" + + "m/go/bigquery/migration/apiv2/migrationp" + + "b;migrationpb\252\002\"Google.Cloud.BigQuery.Mi" + + "gration.V2\312\002\"Google\\Cloud\\BigQuery\\Migra" + + "tion\\V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_migration_v2_TranslationDetails_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_migration_v2_TranslationDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_TranslationDetails_descriptor, + new java.lang.String[] { + "SourceTargetMapping", + "TargetBaseUri", + "SourceEnvironment", + "TargetReturnLiterals", + "TargetTypes", + }); + internal_static_google_cloud_bigquery_migration_v2_SourceTargetMapping_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_migration_v2_SourceTargetMapping_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_SourceTargetMapping_descriptor, + new java.lang.String[] { + "SourceSpec", "TargetSpec", + }); + internal_static_google_cloud_bigquery_migration_v2_SourceSpec_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_migration_v2_SourceSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_SourceSpec_descriptor, + new java.lang.String[] { + "BaseUri", "Literal", "Encoding", "Source", + }); + internal_static_google_cloud_bigquery_migration_v2_TargetSpec_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_migration_v2_TargetSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_TargetSpec_descriptor, + new java.lang.String[] { + "RelativePath", + }); + internal_static_google_cloud_bigquery_migration_v2_Literal_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_migration_v2_Literal_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_Literal_descriptor, + new java.lang.String[] { + "LiteralString", "LiteralBytes", "RelativePath", "LiteralData", + }); + internal_static_google_cloud_bigquery_migration_v2_SourceEnvironment_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_migration_v2_SourceEnvironment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_SourceEnvironment_descriptor, + new java.lang.String[] { + "DefaultDatabase", "SchemaSearchPath", "MetadataStoreDataset", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationReportRecord.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationReportRecord.java new file mode 100644 index 000000000000..da3b55b4e405 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationReportRecord.java @@ -0,0 +1,1357 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_suggestion.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
          + * Details about a record.
          + * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.TranslationReportRecord} + */ +public final class TranslationReportRecord extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.TranslationReportRecord) + TranslationReportRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use TranslationReportRecord.newBuilder() to construct. + private TranslationReportRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TranslationReportRecord() { + severity_ = 0; + category_ = ""; + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TranslationReportRecord(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationSuggestionProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationReportRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationSuggestionProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationReportRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.TranslationReportRecord.class, + com.google.cloud.bigquery.migration.v2.TranslationReportRecord.Builder.class); + } + + /** + * + * + *
          +   * The severity type of the record.
          +   * 
          + * + * Protobuf enum {@code google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity} + */ + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * SeverityType not specified.
          +     * 
          + * + * SEVERITY_UNSPECIFIED = 0; + */ + SEVERITY_UNSPECIFIED(0), + /** + * + * + *
          +     * INFO type.
          +     * 
          + * + * INFO = 1; + */ + INFO(1), + /** + * + * + *
          +     * WARNING type. The translated query may still provide useful information
          +     * if all the report records are WARNING.
          +     * 
          + * + * WARNING = 2; + */ + WARNING(2), + /** + * + * + *
          +     * ERROR type. Translation failed.
          +     * 
          + * + * ERROR = 3; + */ + ERROR(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * SeverityType not specified.
          +     * 
          + * + * SEVERITY_UNSPECIFIED = 0; + */ + public static final int SEVERITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * INFO type.
          +     * 
          + * + * INFO = 1; + */ + public static final int INFO_VALUE = 1; + /** + * + * + *
          +     * WARNING type. The translated query may still provide useful information
          +     * if all the report records are WARNING.
          +     * 
          + * + * WARNING = 2; + */ + public static final int WARNING_VALUE = 2; + /** + * + * + *
          +     * ERROR type. Translation failed.
          +     * 
          + * + * ERROR = 3; + */ + public static final int ERROR_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Severity valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Severity forNumber(int value) { + switch (value) { + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return INFO; + case 2: + return WARNING; + case 3: + return ERROR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationReportRecord.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Severity[] VALUES = values(); + + public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Severity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity) + } + + public static final int SEVERITY_FIELD_NUMBER = 1; + private int severity_ = 0; + /** + * + * + *
          +   * Severity of the translation record.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + /** + * + * + *
          +   * Severity of the translation record.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity getSeverity() { + com.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity result = + com.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity.forNumber( + severity_); + return result == null + ? com.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity.UNRECOGNIZED + : result; + } + + public static final int SCRIPT_LINE_FIELD_NUMBER = 2; + private int scriptLine_ = 0; + /** + * + * + *
          +   * Specifies the row from the source text where the error occurred (0 based).
          +   * Example: 2
          +   * 
          + * + * int32 script_line = 2; + * + * @return The scriptLine. + */ + @java.lang.Override + public int getScriptLine() { + return scriptLine_; + } + + public static final int SCRIPT_COLUMN_FIELD_NUMBER = 3; + private int scriptColumn_ = 0; + /** + * + * + *
          +   * Specifies the column from the source texts where the error occurred. (0
          +   * based) example: 6
          +   * 
          + * + * int32 script_column = 3; + * + * @return The scriptColumn. + */ + @java.lang.Override + public int getScriptColumn() { + return scriptColumn_; + } + + public static final int CATEGORY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object category_ = ""; + /** + * + * + *
          +   * Category of the error/warning. Example: SyntaxError
          +   * 
          + * + * string category = 4; + * + * @return The category. + */ + @java.lang.Override + public java.lang.String getCategory() { + java.lang.Object ref = category_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + category_ = s; + return s; + } + } + /** + * + * + *
          +   * Category of the error/warning. Example: SyntaxError
          +   * 
          + * + * string category = 4; + * + * @return The bytes for category. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryBytes() { + java.lang.Object ref = category_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + category_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + /** + * + * + *
          +   * Detailed message of the record.
          +   * 
          + * + * string message = 5; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
          +   * Detailed message of the record.
          +   * 
          + * + * string message = 5; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (severity_ + != com.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity + .SEVERITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, severity_); + } + if (scriptLine_ != 0) { + output.writeInt32(2, scriptLine_); + } + if (scriptColumn_ != 0) { + output.writeInt32(3, scriptColumn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, category_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (severity_ + != com.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity + .SEVERITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, severity_); + } + if (scriptLine_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, scriptLine_); + } + if (scriptColumn_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, scriptColumn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, category_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.migration.v2.TranslationReportRecord)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.TranslationReportRecord other = + (com.google.cloud.bigquery.migration.v2.TranslationReportRecord) obj; + + if (severity_ != other.severity_) return false; + if (getScriptLine() != other.getScriptLine()) return false; + if (getScriptColumn() != other.getScriptColumn()) return false; + if (!getCategory().equals(other.getCategory())) return false; + if (!getMessage().equals(other.getMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + hash = (37 * hash) + SCRIPT_LINE_FIELD_NUMBER; + hash = (53 * hash) + getScriptLine(); + hash = (37 * hash) + SCRIPT_COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getScriptColumn(); + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getCategory().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.migration.v2.TranslationReportRecord parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationReportRecord parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationReportRecord parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationReportRecord parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationReportRecord parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationReportRecord parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationReportRecord parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationReportRecord parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationReportRecord parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationReportRecord parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationReportRecord parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationReportRecord parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.TranslationReportRecord prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Details about a record.
          +   * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.TranslationReportRecord} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.TranslationReportRecord) + com.google.cloud.bigquery.migration.v2.TranslationReportRecordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationSuggestionProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationReportRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationSuggestionProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationReportRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.TranslationReportRecord.class, + com.google.cloud.bigquery.migration.v2.TranslationReportRecord.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.TranslationReportRecord.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + severity_ = 0; + scriptLine_ = 0; + scriptColumn_ = 0; + category_ = ""; + message_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationSuggestionProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationReportRecord_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationReportRecord + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.TranslationReportRecord.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationReportRecord build() { + com.google.cloud.bigquery.migration.v2.TranslationReportRecord result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationReportRecord buildPartial() { + com.google.cloud.bigquery.migration.v2.TranslationReportRecord result = + new com.google.cloud.bigquery.migration.v2.TranslationReportRecord(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.migration.v2.TranslationReportRecord result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scriptLine_ = scriptLine_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.scriptColumn_ = scriptColumn_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.category_ = category_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.message_ = message_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.migration.v2.TranslationReportRecord) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.TranslationReportRecord) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.TranslationReportRecord other) { + if (other + == com.google.cloud.bigquery.migration.v2.TranslationReportRecord.getDefaultInstance()) + return this; + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + if (other.getScriptLine() != 0) { + setScriptLine(other.getScriptLine()); + } + if (other.getScriptColumn() != 0) { + setScriptColumn(other.getScriptColumn()); + } + if (!other.getCategory().isEmpty()) { + category_ = other.category_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + severity_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + scriptLine_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + scriptColumn_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + category_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int severity_ = 0; + /** + * + * + *
          +     * Severity of the translation record.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + /** + * + * + *
          +     * Severity of the translation record.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; + * + * + * @param value The enum numeric value on the wire for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityValue(int value) { + severity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Severity of the translation record.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity getSeverity() { + com.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity result = + com.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity.forNumber( + severity_); + return result == null + ? com.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Severity of the translation record.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; + * + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity( + com.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + severity_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Severity of the translation record.
          +     * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000001); + severity_ = 0; + onChanged(); + return this; + } + + private int scriptLine_; + /** + * + * + *
          +     * Specifies the row from the source text where the error occurred (0 based).
          +     * Example: 2
          +     * 
          + * + * int32 script_line = 2; + * + * @return The scriptLine. + */ + @java.lang.Override + public int getScriptLine() { + return scriptLine_; + } + /** + * + * + *
          +     * Specifies the row from the source text where the error occurred (0 based).
          +     * Example: 2
          +     * 
          + * + * int32 script_line = 2; + * + * @param value The scriptLine to set. + * @return This builder for chaining. + */ + public Builder setScriptLine(int value) { + + scriptLine_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Specifies the row from the source text where the error occurred (0 based).
          +     * Example: 2
          +     * 
          + * + * int32 script_line = 2; + * + * @return This builder for chaining. + */ + public Builder clearScriptLine() { + bitField0_ = (bitField0_ & ~0x00000002); + scriptLine_ = 0; + onChanged(); + return this; + } + + private int scriptColumn_; + /** + * + * + *
          +     * Specifies the column from the source texts where the error occurred. (0
          +     * based) example: 6
          +     * 
          + * + * int32 script_column = 3; + * + * @return The scriptColumn. + */ + @java.lang.Override + public int getScriptColumn() { + return scriptColumn_; + } + /** + * + * + *
          +     * Specifies the column from the source texts where the error occurred. (0
          +     * based) example: 6
          +     * 
          + * + * int32 script_column = 3; + * + * @param value The scriptColumn to set. + * @return This builder for chaining. + */ + public Builder setScriptColumn(int value) { + + scriptColumn_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Specifies the column from the source texts where the error occurred. (0
          +     * based) example: 6
          +     * 
          + * + * int32 script_column = 3; + * + * @return This builder for chaining. + */ + public Builder clearScriptColumn() { + bitField0_ = (bitField0_ & ~0x00000004); + scriptColumn_ = 0; + onChanged(); + return this; + } + + private java.lang.Object category_ = ""; + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string category = 4; + * + * @return The category. + */ + public java.lang.String getCategory() { + java.lang.Object ref = category_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + category_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string category = 4; + * + * @return The bytes for category. + */ + public com.google.protobuf.ByteString getCategoryBytes() { + java.lang.Object ref = category_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + category_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string category = 4; + * + * @param value The category to set. + * @return This builder for chaining. + */ + public Builder setCategory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + category_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string category = 4; + * + * @return This builder for chaining. + */ + public Builder clearCategory() { + category_ = getDefaultInstance().getCategory(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Category of the error/warning. Example: SyntaxError
          +     * 
          + * + * string category = 4; + * + * @param value The bytes for category to set. + * @return This builder for chaining. + */ + public Builder setCategoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + category_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * + * + *
          +     * Detailed message of the record.
          +     * 
          + * + * string message = 5; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Detailed message of the record.
          +     * 
          + * + * string message = 5; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Detailed message of the record.
          +     * 
          + * + * string message = 5; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Detailed message of the record.
          +     * 
          + * + * string message = 5; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * Detailed message of the record.
          +     * 
          + * + * string message = 5; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.TranslationReportRecord) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.TranslationReportRecord) + private static final com.google.cloud.bigquery.migration.v2.TranslationReportRecord + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.TranslationReportRecord(); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationReportRecord + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationReportRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationReportRecord + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationReportRecordOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationReportRecordOrBuilder.java new file mode 100644 index 000000000000..a523320c50d4 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationReportRecordOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_suggestion.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public interface TranslationReportRecordOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.TranslationReportRecord) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Severity of the translation record.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; + * + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + /** + * + * + *
          +   * Severity of the translation record.
          +   * 
          + * + * .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; + * + * @return The severity. + */ + com.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity getSeverity(); + + /** + * + * + *
          +   * Specifies the row from the source text where the error occurred (0 based).
          +   * Example: 2
          +   * 
          + * + * int32 script_line = 2; + * + * @return The scriptLine. + */ + int getScriptLine(); + + /** + * + * + *
          +   * Specifies the column from the source texts where the error occurred. (0
          +   * based) example: 6
          +   * 
          + * + * int32 script_column = 3; + * + * @return The scriptColumn. + */ + int getScriptColumn(); + + /** + * + * + *
          +   * Category of the error/warning. Example: SyntaxError
          +   * 
          + * + * string category = 4; + * + * @return The category. + */ + java.lang.String getCategory(); + /** + * + * + *
          +   * Category of the error/warning. Example: SyntaxError
          +   * 
          + * + * string category = 4; + * + * @return The bytes for category. + */ + com.google.protobuf.ByteString getCategoryBytes(); + + /** + * + * + *
          +   * Detailed message of the record.
          +   * 
          + * + * string message = 5; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
          +   * Detailed message of the record.
          +   * 
          + * + * string message = 5; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationSuggestionProto.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationSuggestionProto.java new file mode 100644 index 000000000000..2854b4b243ed --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationSuggestionProto.java @@ -0,0 +1,82 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_suggestion.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public final class TranslationSuggestionProto { + private TranslationSuggestionProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_TranslationReportRecord_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_TranslationReportRecord_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n?google/cloud/bigquery/migration/v2/tra" + + "nslation_suggestion.proto\022\"google.cloud." + + "bigquery.migration.v2\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.prot" + + "o\"\210\002\n\027TranslationReportRecord\022V\n\010severit" + + "y\030\001 \001(\0162D.google.cloud.bigquery.migratio" + + "n.v2.TranslationReportRecord.Severity\022\023\n" + + "\013script_line\030\002 \001(\005\022\025\n\rscript_column\030\003 \001(" + + "\005\022\020\n\010category\030\004 \001(\t\022\017\n\007message\030\005 \001(\t\"F\n\010" + + "Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\010\n\004IN" + + "FO\020\001\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003B\326\001\n&com.goo" + + "gle.cloud.bigquery.migration.v2B\032Transla" + + "tionSuggestionProtoP\001ZDcloud.google.com/" + + "go/bigquery/migration/apiv2/migrationpb;" + + "migrationpb\252\002\"Google.Cloud.BigQuery.Migr" + + "ation.V2\312\002\"Google\\Cloud\\BigQuery\\Migrati" + + "on\\V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_migration_v2_TranslationReportRecord_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_migration_v2_TranslationReportRecord_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_TranslationReportRecord_descriptor, + new java.lang.String[] { + "Severity", "ScriptLine", "ScriptColumn", "Category", "Message", + }); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationTaskResult.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationTaskResult.java new file mode 100644 index 000000000000..14d332ea55ab --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationTaskResult.java @@ -0,0 +1,1514 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/migration_entities.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
          + * Translation specific result details from the migration task.
          + * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.TranslationTaskResult} + */ +public final class TranslationTaskResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.TranslationTaskResult) + TranslationTaskResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use TranslationTaskResult.newBuilder() to construct. + private TranslationTaskResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TranslationTaskResult() { + translatedLiterals_ = java.util.Collections.emptyList(); + reportLogMessages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TranslationTaskResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationTaskResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationTaskResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.TranslationTaskResult.class, + com.google.cloud.bigquery.migration.v2.TranslationTaskResult.Builder.class); + } + + public static final int TRANSLATED_LITERALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List translatedLiterals_; + /** + * + * + *
          +   * The list of the translated literals.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + @java.lang.Override + public java.util.List + getTranslatedLiteralsList() { + return translatedLiterals_; + } + /** + * + * + *
          +   * The list of the translated literals.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + @java.lang.Override + public java.util.List + getTranslatedLiteralsOrBuilderList() { + return translatedLiterals_; + } + /** + * + * + *
          +   * The list of the translated literals.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + @java.lang.Override + public int getTranslatedLiteralsCount() { + return translatedLiterals_.size(); + } + /** + * + * + *
          +   * The list of the translated literals.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.Literal getTranslatedLiterals(int index) { + return translatedLiterals_.get(index); + } + /** + * + * + *
          +   * The list of the translated literals.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.LiteralOrBuilder getTranslatedLiteralsOrBuilder( + int index) { + return translatedLiterals_.get(index); + } + + public static final int REPORT_LOG_MESSAGES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + reportLogMessages_; + /** + * + * + *
          +   * The records from the aggregate CSV report for a migration workflow.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + @java.lang.Override + public java.util.List + getReportLogMessagesList() { + return reportLogMessages_; + } + /** + * + * + *
          +   * The records from the aggregate CSV report for a migration workflow.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2.GcsReportLogMessageOrBuilder> + getReportLogMessagesOrBuilderList() { + return reportLogMessages_; + } + /** + * + * + *
          +   * The records from the aggregate CSV report for a migration workflow.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + @java.lang.Override + public int getReportLogMessagesCount() { + return reportLogMessages_.size(); + } + /** + * + * + *
          +   * The records from the aggregate CSV report for a migration workflow.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.GcsReportLogMessage getReportLogMessages( + int index) { + return reportLogMessages_.get(index); + } + /** + * + * + *
          +   * The records from the aggregate CSV report for a migration workflow.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.GcsReportLogMessageOrBuilder + getReportLogMessagesOrBuilder(int index) { + return reportLogMessages_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < translatedLiterals_.size(); i++) { + output.writeMessage(1, translatedLiterals_.get(i)); + } + for (int i = 0; i < reportLogMessages_.size(); i++) { + output.writeMessage(2, reportLogMessages_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < translatedLiterals_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, translatedLiterals_.get(i)); + } + for (int i = 0; i < reportLogMessages_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, reportLogMessages_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.migration.v2.TranslationTaskResult)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.TranslationTaskResult other = + (com.google.cloud.bigquery.migration.v2.TranslationTaskResult) obj; + + if (!getTranslatedLiteralsList().equals(other.getTranslatedLiteralsList())) return false; + if (!getReportLogMessagesList().equals(other.getReportLogMessagesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTranslatedLiteralsCount() > 0) { + hash = (37 * hash) + TRANSLATED_LITERALS_FIELD_NUMBER; + hash = (53 * hash) + getTranslatedLiteralsList().hashCode(); + } + if (getReportLogMessagesCount() > 0) { + hash = (37 * hash) + REPORT_LOG_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getReportLogMessagesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.migration.v2.TranslationTaskResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationTaskResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationTaskResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationTaskResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationTaskResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationTaskResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationTaskResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationTaskResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationTaskResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationTaskResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationTaskResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationTaskResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.TranslationTaskResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Translation specific result details from the migration task.
          +   * 
          + * + * Protobuf type {@code google.cloud.bigquery.migration.v2.TranslationTaskResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.TranslationTaskResult) + com.google.cloud.bigquery.migration.v2.TranslationTaskResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationTaskResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationTaskResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.TranslationTaskResult.class, + com.google.cloud.bigquery.migration.v2.TranslationTaskResult.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.TranslationTaskResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (translatedLiteralsBuilder_ == null) { + translatedLiterals_ = java.util.Collections.emptyList(); + } else { + translatedLiterals_ = null; + translatedLiteralsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (reportLogMessagesBuilder_ == null) { + reportLogMessages_ = java.util.Collections.emptyList(); + } else { + reportLogMessages_ = null; + reportLogMessagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_TranslationTaskResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationTaskResult + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.TranslationTaskResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationTaskResult build() { + com.google.cloud.bigquery.migration.v2.TranslationTaskResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationTaskResult buildPartial() { + com.google.cloud.bigquery.migration.v2.TranslationTaskResult result = + new com.google.cloud.bigquery.migration.v2.TranslationTaskResult(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.migration.v2.TranslationTaskResult result) { + if (translatedLiteralsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + translatedLiterals_ = java.util.Collections.unmodifiableList(translatedLiterals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.translatedLiterals_ = translatedLiterals_; + } else { + result.translatedLiterals_ = translatedLiteralsBuilder_.build(); + } + if (reportLogMessagesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + reportLogMessages_ = java.util.Collections.unmodifiableList(reportLogMessages_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.reportLogMessages_ = reportLogMessages_; + } else { + result.reportLogMessages_ = reportLogMessagesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.bigquery.migration.v2.TranslationTaskResult result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.migration.v2.TranslationTaskResult) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.TranslationTaskResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.TranslationTaskResult other) { + if (other + == com.google.cloud.bigquery.migration.v2.TranslationTaskResult.getDefaultInstance()) + return this; + if (translatedLiteralsBuilder_ == null) { + if (!other.translatedLiterals_.isEmpty()) { + if (translatedLiterals_.isEmpty()) { + translatedLiterals_ = other.translatedLiterals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTranslatedLiteralsIsMutable(); + translatedLiterals_.addAll(other.translatedLiterals_); + } + onChanged(); + } + } else { + if (!other.translatedLiterals_.isEmpty()) { + if (translatedLiteralsBuilder_.isEmpty()) { + translatedLiteralsBuilder_.dispose(); + translatedLiteralsBuilder_ = null; + translatedLiterals_ = other.translatedLiterals_; + bitField0_ = (bitField0_ & ~0x00000001); + translatedLiteralsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTranslatedLiteralsFieldBuilder() + : null; + } else { + translatedLiteralsBuilder_.addAllMessages(other.translatedLiterals_); + } + } + } + if (reportLogMessagesBuilder_ == null) { + if (!other.reportLogMessages_.isEmpty()) { + if (reportLogMessages_.isEmpty()) { + reportLogMessages_ = other.reportLogMessages_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureReportLogMessagesIsMutable(); + reportLogMessages_.addAll(other.reportLogMessages_); + } + onChanged(); + } + } else { + if (!other.reportLogMessages_.isEmpty()) { + if (reportLogMessagesBuilder_.isEmpty()) { + reportLogMessagesBuilder_.dispose(); + reportLogMessagesBuilder_ = null; + reportLogMessages_ = other.reportLogMessages_; + bitField0_ = (bitField0_ & ~0x00000002); + reportLogMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReportLogMessagesFieldBuilder() + : null; + } else { + reportLogMessagesBuilder_.addAllMessages(other.reportLogMessages_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.bigquery.migration.v2.Literal m = + input.readMessage( + com.google.cloud.bigquery.migration.v2.Literal.parser(), extensionRegistry); + if (translatedLiteralsBuilder_ == null) { + ensureTranslatedLiteralsIsMutable(); + translatedLiterals_.add(m); + } else { + translatedLiteralsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage m = + input.readMessage( + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.parser(), + extensionRegistry); + if (reportLogMessagesBuilder_ == null) { + ensureReportLogMessagesIsMutable(); + reportLogMessages_.add(m); + } else { + reportLogMessagesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List translatedLiterals_ = + java.util.Collections.emptyList(); + + private void ensureTranslatedLiteralsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + translatedLiterals_ = + new java.util.ArrayList( + translatedLiterals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.Literal, + com.google.cloud.bigquery.migration.v2.Literal.Builder, + com.google.cloud.bigquery.migration.v2.LiteralOrBuilder> + translatedLiteralsBuilder_; + + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public java.util.List + getTranslatedLiteralsList() { + if (translatedLiteralsBuilder_ == null) { + return java.util.Collections.unmodifiableList(translatedLiterals_); + } else { + return translatedLiteralsBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public int getTranslatedLiteralsCount() { + if (translatedLiteralsBuilder_ == null) { + return translatedLiterals_.size(); + } else { + return translatedLiteralsBuilder_.getCount(); + } + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public com.google.cloud.bigquery.migration.v2.Literal getTranslatedLiterals(int index) { + if (translatedLiteralsBuilder_ == null) { + return translatedLiterals_.get(index); + } else { + return translatedLiteralsBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public Builder setTranslatedLiterals( + int index, com.google.cloud.bigquery.migration.v2.Literal value) { + if (translatedLiteralsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTranslatedLiteralsIsMutable(); + translatedLiterals_.set(index, value); + onChanged(); + } else { + translatedLiteralsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public Builder setTranslatedLiterals( + int index, com.google.cloud.bigquery.migration.v2.Literal.Builder builderForValue) { + if (translatedLiteralsBuilder_ == null) { + ensureTranslatedLiteralsIsMutable(); + translatedLiterals_.set(index, builderForValue.build()); + onChanged(); + } else { + translatedLiteralsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public Builder addTranslatedLiterals(com.google.cloud.bigquery.migration.v2.Literal value) { + if (translatedLiteralsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTranslatedLiteralsIsMutable(); + translatedLiterals_.add(value); + onChanged(); + } else { + translatedLiteralsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public Builder addTranslatedLiterals( + int index, com.google.cloud.bigquery.migration.v2.Literal value) { + if (translatedLiteralsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTranslatedLiteralsIsMutable(); + translatedLiterals_.add(index, value); + onChanged(); + } else { + translatedLiteralsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public Builder addTranslatedLiterals( + com.google.cloud.bigquery.migration.v2.Literal.Builder builderForValue) { + if (translatedLiteralsBuilder_ == null) { + ensureTranslatedLiteralsIsMutable(); + translatedLiterals_.add(builderForValue.build()); + onChanged(); + } else { + translatedLiteralsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public Builder addTranslatedLiterals( + int index, com.google.cloud.bigquery.migration.v2.Literal.Builder builderForValue) { + if (translatedLiteralsBuilder_ == null) { + ensureTranslatedLiteralsIsMutable(); + translatedLiterals_.add(index, builderForValue.build()); + onChanged(); + } else { + translatedLiteralsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public Builder addAllTranslatedLiterals( + java.lang.Iterable values) { + if (translatedLiteralsBuilder_ == null) { + ensureTranslatedLiteralsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, translatedLiterals_); + onChanged(); + } else { + translatedLiteralsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public Builder clearTranslatedLiterals() { + if (translatedLiteralsBuilder_ == null) { + translatedLiterals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + translatedLiteralsBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public Builder removeTranslatedLiterals(int index) { + if (translatedLiteralsBuilder_ == null) { + ensureTranslatedLiteralsIsMutable(); + translatedLiterals_.remove(index); + onChanged(); + } else { + translatedLiteralsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public com.google.cloud.bigquery.migration.v2.Literal.Builder getTranslatedLiteralsBuilder( + int index) { + return getTranslatedLiteralsFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public com.google.cloud.bigquery.migration.v2.LiteralOrBuilder getTranslatedLiteralsOrBuilder( + int index) { + if (translatedLiteralsBuilder_ == null) { + return translatedLiterals_.get(index); + } else { + return translatedLiteralsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public java.util.List + getTranslatedLiteralsOrBuilderList() { + if (translatedLiteralsBuilder_ != null) { + return translatedLiteralsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(translatedLiterals_); + } + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public com.google.cloud.bigquery.migration.v2.Literal.Builder addTranslatedLiteralsBuilder() { + return getTranslatedLiteralsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.migration.v2.Literal.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public com.google.cloud.bigquery.migration.v2.Literal.Builder addTranslatedLiteralsBuilder( + int index) { + return getTranslatedLiteralsFieldBuilder() + .addBuilder(index, com.google.cloud.bigquery.migration.v2.Literal.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of the translated literals.
          +     * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + public java.util.List + getTranslatedLiteralsBuilderList() { + return getTranslatedLiteralsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.Literal, + com.google.cloud.bigquery.migration.v2.Literal.Builder, + com.google.cloud.bigquery.migration.v2.LiteralOrBuilder> + getTranslatedLiteralsFieldBuilder() { + if (translatedLiteralsBuilder_ == null) { + translatedLiteralsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.Literal, + com.google.cloud.bigquery.migration.v2.Literal.Builder, + com.google.cloud.bigquery.migration.v2.LiteralOrBuilder>( + translatedLiterals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + translatedLiterals_ = null; + } + return translatedLiteralsBuilder_; + } + + private java.util.List + reportLogMessages_ = java.util.Collections.emptyList(); + + private void ensureReportLogMessagesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + reportLogMessages_ = + new java.util.ArrayList( + reportLogMessages_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage, + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.Builder, + com.google.cloud.bigquery.migration.v2.GcsReportLogMessageOrBuilder> + reportLogMessagesBuilder_; + + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public java.util.List + getReportLogMessagesList() { + if (reportLogMessagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(reportLogMessages_); + } else { + return reportLogMessagesBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public int getReportLogMessagesCount() { + if (reportLogMessagesBuilder_ == null) { + return reportLogMessages_.size(); + } else { + return reportLogMessagesBuilder_.getCount(); + } + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public com.google.cloud.bigquery.migration.v2.GcsReportLogMessage getReportLogMessages( + int index) { + if (reportLogMessagesBuilder_ == null) { + return reportLogMessages_.get(index); + } else { + return reportLogMessagesBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public Builder setReportLogMessages( + int index, com.google.cloud.bigquery.migration.v2.GcsReportLogMessage value) { + if (reportLogMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReportLogMessagesIsMutable(); + reportLogMessages_.set(index, value); + onChanged(); + } else { + reportLogMessagesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public Builder setReportLogMessages( + int index, + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.Builder builderForValue) { + if (reportLogMessagesBuilder_ == null) { + ensureReportLogMessagesIsMutable(); + reportLogMessages_.set(index, builderForValue.build()); + onChanged(); + } else { + reportLogMessagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public Builder addReportLogMessages( + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage value) { + if (reportLogMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReportLogMessagesIsMutable(); + reportLogMessages_.add(value); + onChanged(); + } else { + reportLogMessagesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public Builder addReportLogMessages( + int index, com.google.cloud.bigquery.migration.v2.GcsReportLogMessage value) { + if (reportLogMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReportLogMessagesIsMutable(); + reportLogMessages_.add(index, value); + onChanged(); + } else { + reportLogMessagesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public Builder addReportLogMessages( + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.Builder builderForValue) { + if (reportLogMessagesBuilder_ == null) { + ensureReportLogMessagesIsMutable(); + reportLogMessages_.add(builderForValue.build()); + onChanged(); + } else { + reportLogMessagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public Builder addReportLogMessages( + int index, + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.Builder builderForValue) { + if (reportLogMessagesBuilder_ == null) { + ensureReportLogMessagesIsMutable(); + reportLogMessages_.add(index, builderForValue.build()); + onChanged(); + } else { + reportLogMessagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public Builder addAllReportLogMessages( + java.lang.Iterable + values) { + if (reportLogMessagesBuilder_ == null) { + ensureReportLogMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reportLogMessages_); + onChanged(); + } else { + reportLogMessagesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public Builder clearReportLogMessages() { + if (reportLogMessagesBuilder_ == null) { + reportLogMessages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + reportLogMessagesBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public Builder removeReportLogMessages(int index) { + if (reportLogMessagesBuilder_ == null) { + ensureReportLogMessagesIsMutable(); + reportLogMessages_.remove(index); + onChanged(); + } else { + reportLogMessagesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.Builder + getReportLogMessagesBuilder(int index) { + return getReportLogMessagesFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public com.google.cloud.bigquery.migration.v2.GcsReportLogMessageOrBuilder + getReportLogMessagesOrBuilder(int index) { + if (reportLogMessagesBuilder_ == null) { + return reportLogMessages_.get(index); + } else { + return reportLogMessagesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2.GcsReportLogMessageOrBuilder> + getReportLogMessagesOrBuilderList() { + if (reportLogMessagesBuilder_ != null) { + return reportLogMessagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(reportLogMessages_); + } + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.Builder + addReportLogMessagesBuilder() { + return getReportLogMessagesFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.getDefaultInstance()); + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.Builder + addReportLogMessagesBuilder(int index) { + return getReportLogMessagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.getDefaultInstance()); + } + /** + * + * + *
          +     * The records from the aggregate CSV report for a migration workflow.
          +     * 
          + * + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + public java.util.List + getReportLogMessagesBuilderList() { + return getReportLogMessagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage, + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.Builder, + com.google.cloud.bigquery.migration.v2.GcsReportLogMessageOrBuilder> + getReportLogMessagesFieldBuilder() { + if (reportLogMessagesBuilder_ == null) { + reportLogMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage, + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage.Builder, + com.google.cloud.bigquery.migration.v2.GcsReportLogMessageOrBuilder>( + reportLogMessages_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + reportLogMessages_ = null; + } + return reportLogMessagesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.TranslationTaskResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.TranslationTaskResult) + private static final com.google.cloud.bigquery.migration.v2.TranslationTaskResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.TranslationTaskResult(); + } + + public static com.google.cloud.bigquery.migration.v2.TranslationTaskResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationTaskResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TranslationTaskResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationTaskResultOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationTaskResultOrBuilder.java new file mode 100644 index 000000000000..63f3e516d735 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationTaskResultOrBuilder.java @@ -0,0 +1,137 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/migration_entities.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public interface TranslationTaskResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.TranslationTaskResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The list of the translated literals.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + java.util.List getTranslatedLiteralsList(); + /** + * + * + *
          +   * The list of the translated literals.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + com.google.cloud.bigquery.migration.v2.Literal getTranslatedLiterals(int index); + /** + * + * + *
          +   * The list of the translated literals.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + int getTranslatedLiteralsCount(); + /** + * + * + *
          +   * The list of the translated literals.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + java.util.List + getTranslatedLiteralsOrBuilderList(); + /** + * + * + *
          +   * The list of the translated literals.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + com.google.cloud.bigquery.migration.v2.LiteralOrBuilder getTranslatedLiteralsOrBuilder(int index); + + /** + * + * + *
          +   * The records from the aggregate CSV report for a migration workflow.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + java.util.List + getReportLogMessagesList(); + /** + * + * + *
          +   * The records from the aggregate CSV report for a migration workflow.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + com.google.cloud.bigquery.migration.v2.GcsReportLogMessage getReportLogMessages(int index); + /** + * + * + *
          +   * The records from the aggregate CSV report for a migration workflow.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + int getReportLogMessagesCount(); + /** + * + * + *
          +   * The records from the aggregate CSV report for a migration workflow.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + java.util.List + getReportLogMessagesOrBuilderList(); + /** + * + * + *
          +   * The records from the aggregate CSV report for a migration workflow.
          +   * 
          + * + * repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * + */ + com.google.cloud.bigquery.migration.v2.GcsReportLogMessageOrBuilder getReportLogMessagesOrBuilder( + int index); +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationUsabilityProto.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationUsabilityProto.java new file mode 100644 index 000000000000..3129210a52ac --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationUsabilityProto.java @@ -0,0 +1,91 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_usability.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.bigquery.migration.v2; + +public final class TranslationUsabilityProto { + private TranslationUsabilityProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_GcsReportLogMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_GcsReportLogMessage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n>google/cloud/bigquery/migration/v2/tra" + + "nslation_usability.proto\022\"google.cloud.b" + + "igquery.migration.v2\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto" + + "\"\366\001\n\023GcsReportLogMessage\022\020\n\010severity\030\001 \001" + + "(\t\022\020\n\010category\030\002 \001(\t\022\021\n\tfile_path\030\003 \001(\t\022" + + "\020\n\010filename\030\004 \001(\t\022\032\n\022source_script_line\030" + + "\005 \001(\005\022\034\n\024source_script_column\030\006 \001(\005\022\017\n\007m" + + "essage\030\007 \001(\t\022\026\n\016script_context\030\010 \001(\t\022\016\n\006" + + "action\030\t \001(\t\022\016\n\006effect\030\n \001(\t\022\023\n\013object_n" + + "ame\030\013 \001(\tB\325\001\n&com.google.cloud.bigquery." + + "migration.v2B\031TranslationUsabilityProtoP" + + "\001ZDcloud.google.com/go/bigquery/migratio" + + "n/apiv2/migrationpb;migrationpb\252\002\"Google" + + ".Cloud.BigQuery.Migration.V2\312\002\"Google\\Cl" + + "oud\\BigQuery\\Migration\\V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_migration_v2_GcsReportLogMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_migration_v2_GcsReportLogMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_GcsReportLogMessage_descriptor, + new java.lang.String[] { + "Severity", + "Category", + "FilePath", + "Filename", + "SourceScriptLine", + "SourceScriptColumn", + "Message", + "ScriptContext", + "Action", + "Effect", + "ObjectName", + }); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto index 1772544bbd98..34422f0dc4e6 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto @@ -21,6 +21,8 @@ import "google/api/resource.proto"; import "google/cloud/bigquery/migration/v2/migration_error_details.proto"; import "google/cloud/bigquery/migration/v2/migration_metrics.proto"; import "google/cloud/bigquery/migration/v2/translation_config.proto"; +import "google/cloud/bigquery/migration/v2/translation_details.proto"; +import "google/cloud/bigquery/migration/v2/translation_usability.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/error_details.proto"; @@ -61,13 +63,14 @@ message MigrationWorkflow { COMPLETED = 4; } - // Output only. Immutable. The unique identifier for the migration workflow. - // The ID is server-generated. + // Output only. Immutable. Identifier. The unique identifier for the migration + // workflow. The ID is server-generated. // // Example: `projects/123/locations/us/workflows/345` string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IMMUTABLE + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = IDENTIFIER ]; // The display name of the workflow. This can be set to give a workflow @@ -119,8 +122,11 @@ message MigrationTask { // The details of the task. oneof task_details { - // Task configuration for Batch SQL Translation. + // Task configuration for CW Batch/Offline SQL Translation. TranslationConfigDetails translation_config_details = 14; + + // Task details for unified SQL Translation. + TranslationDetails translation_details = 16; } // Output only. Immutable. The unique identifier for the migration task. The @@ -136,7 +142,7 @@ message MigrationTask { // Translation_Snowflake2BQ, Translation_Netezza2BQ, // Translation_AzureSynapse2BQ, Translation_Vertica2BQ, // Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - // Translation_Postgresql2BQ. + // Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. string type = 2; // Output only. The current state of the task. @@ -152,6 +158,31 @@ message MigrationTask { // Time when the task was last updated. google.protobuf.Timestamp last_update_time = 7; + + // Output only. Provides details to errors and issues encountered while + // processing the task. Presence of error details does not mean that the task + // failed. + repeated ResourceErrorDetail resource_error_details = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The number or resources with errors. Note: This is not the total + // number of errors as each resource can have more than one error. + // This is used to indicate truncation by having a `resource_error_count` + // that is higher than the size of `resource_error_details`. + int32 resource_error_count = 18; + + // The metrics for the task. + repeated TimeSeries metrics = 19; + + // Output only. The result of the task. + MigrationTaskResult task_result = 20 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Count of all the processing errors in this task and its subtasks. + int32 total_processing_error_count = 21; + + // Count of all the resource errors in this task and its subtasks. + int32 total_resource_error_count = 22; } // A subtask for a migration which carries details about the configuration of @@ -236,3 +267,21 @@ message MigrationSubtask { // The metrics for the subtask. repeated TimeSeries metrics = 11; } + +// The migration task result. +message MigrationTaskResult { + // Details specific to the task type. + oneof details { + // Details specific to translation task types. + TranslationTaskResult translation_task_result = 2; + } +} + +// Translation specific result details from the migration task. +message TranslationTaskResult { + // The list of the translated literals. + repeated Literal translated_literals = 1; + + // The records from the aggregate CSV report for a migration workflow. + repeated GcsReportLogMessage report_log_messages = 2; +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto index 902f27cf2498..a463a79f1374 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto @@ -16,6 +16,8 @@ syntax = "proto3"; package google.cloud.bigquery.migration.v2; +import "google/api/field_behavior.proto"; + option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2"; option go_package = "cloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb"; option java_multiple_files = true; @@ -56,6 +58,12 @@ message TranslationConfigDetails { // The indicator to show translation request initiator. string request_source = 8; + + // The types of output to generate, e.g. sql, metadata etc. If not specified, + // a default set of targets will be generated. Some additional target types + // may be slower to generate. See the documentation for the set of available + // target types. + repeated string target_types = 9; } // The possible dialect options for translation. @@ -103,6 +111,15 @@ message Dialect { // The MySQL dialect MySQLDialect mysql_dialect = 14; + + // DB2 dialect + DB2Dialect db2_dialect = 15; + + // SQLite dialect + SQLiteDialect sqlite_dialect = 16; + + // Greenplum dialect + GreenplumDialect greenplum_dialect = 17; } } @@ -163,6 +180,15 @@ message PrestoDialect {} // The dialect definition for MySQL. message MySQLDialect {} +// The dialect definition for DB2. +message DB2Dialect {} + +// The dialect definition for SQLite. +message SQLiteDialect {} + +// The dialect definition for Greenplum. +message GreenplumDialect {} + // Represents a map of name mappings using a list of key:value proto messages of // existing name to desired output name. message ObjectNameMappingList { @@ -257,4 +283,12 @@ message SourceEnv { // The schema search path. When SQL objects are missing schema name, // translation engine will search through this list to find the value. repeated string schema_search_path = 2; + + // Optional. Expects a valid BigQuery dataset ID that exists, e.g., + // project-123.metadata_store_123. If specified, translation will search and + // read the required schema information from a metadata store in this dataset. + // If metadata store doesn't exist, translation will parse the metadata file + // and upload the schema info to a temp table in the dataset to speed up + // future translation jobs. + string metadata_store_dataset = 3 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_details.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_details.proto new file mode 100644 index 000000000000..3325adc71ac4 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_details.proto @@ -0,0 +1,116 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.bigquery.migration.v2; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2"; +option go_package = "cloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb"; +option java_multiple_files = true; +option java_outer_classname = "TranslationDetailsProto"; +option java_package = "com.google.cloud.bigquery.migration.v2"; +option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2"; + +// The translation details to capture the necessary settings for a translation +// job. +message TranslationDetails { + // The mapping from source to target SQL. + repeated SourceTargetMapping source_target_mapping = 1; + + // The base URI for all writes to persistent storage. + string target_base_uri = 2; + + // The default source environment values for the translation. + SourceEnvironment source_environment = 3; + + // The list of literal targets that will be directly returned to the response. + // Each entry consists of the constructed path, EXCLUDING the base path. Not + // providing a target_base_uri will prevent writing to persistent storage. + repeated string target_return_literals = 4; + + // The types of output to generate, e.g. sql, metadata, + // lineage_from_sql_scripts, etc. If not specified, a default set of + // targets will be generated. Some additional target types may be slower to + // generate. See the documentation for the set of available target types. + repeated string target_types = 5; +} + +// Represents one mapping from a source SQL to a target SQL. +message SourceTargetMapping { + // The source SQL or the path to it. + SourceSpec source_spec = 1; + + // The target SQL or the path for it. + TargetSpec target_spec = 2; +} + +// Represents one path to the location that holds source data. +message SourceSpec { + // The specific source SQL. + oneof source { + // The base URI for all files to be read in as sources for translation. + string base_uri = 1; + + // Source literal. + Literal literal = 2; + } + + // Optional. The optional field to specify the encoding of the sql bytes. + string encoding = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents one path to the location that holds target data. +message TargetSpec { + // The relative path for the target data. Given source file + // `base_uri/input/sql`, the output would be + // `target_base_uri/sql/relative_path/input.sql`. + string relative_path = 1; +} + +// Literal data. +message Literal { + // The literal SQL contents. + oneof literal_data { + // Literal string data. + string literal_string = 2; + + // Literal byte data. + bytes literal_bytes = 3; + } + + // Required. The identifier of the literal entry. + string relative_path = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents the default source environment values for the translation. +message SourceEnvironment { + // The default database name to fully qualify SQL objects when their database + // name is missing. + string default_database = 1; + + // The schema search path. When SQL objects are missing schema name, + // translation engine will search through this list to find the value. + repeated string schema_search_path = 2; + + // Optional. Expects a validQ BigQuery dataset ID that exists, e.g., + // project-123.metadata_store_123. If specified, translation will search and + // read the required schema information from a metadata store in this dataset. + // If metadata store doesn't exist, translation will parse the metadata file + // and upload the schema info to a temp table in the dataset to speed up + // future translation jobs. + string metadata_store_dataset = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_suggestion.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_suggestion.proto new file mode 100644 index 000000000000..7b78509e79d3 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_suggestion.proto @@ -0,0 +1,63 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.bigquery.migration.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2"; +option go_package = "cloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb"; +option java_multiple_files = true; +option java_outer_classname = "TranslationSuggestionProto"; +option java_package = "com.google.cloud.bigquery.migration.v2"; +option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2"; + +// Details about a record. +message TranslationReportRecord { + // The severity type of the record. + enum Severity { + // SeverityType not specified. + SEVERITY_UNSPECIFIED = 0; + + // INFO type. + INFO = 1; + + // WARNING type. The translated query may still provide useful information + // if all the report records are WARNING. + WARNING = 2; + + // ERROR type. Translation failed. + ERROR = 3; + } + + // Severity of the translation record. + Severity severity = 1; + + // Specifies the row from the source text where the error occurred (0 based). + // Example: 2 + int32 script_line = 2; + + // Specifies the column from the source texts where the error occurred. (0 + // based) example: 6 + int32 script_column = 3; + + // Category of the error/warning. Example: SyntaxError + string category = 4; + + // Detailed message of the record. + string message = 5; +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_usability.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_usability.proto new file mode 100644 index 000000000000..6f3e0ea2a253 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_usability.proto @@ -0,0 +1,65 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.bigquery.migration.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2"; +option go_package = "cloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb"; +option java_multiple_files = true; +option java_outer_classname = "TranslationUsabilityProto"; +option java_package = "com.google.cloud.bigquery.migration.v2"; +option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2"; + +// A record in the aggregate CSV report for a migration workflow +message GcsReportLogMessage { + // Severity of the translation record. + string severity = 1; + + // Category of the error/warning. Example: SyntaxError + string category = 2; + + // The file path in which the error occurred + string file_path = 3; + + // The file name in which the error occurred + string filename = 4; + + // Specifies the row from the source text where the error occurred (0 based, + // -1 for messages without line location). Example: 2 + int32 source_script_line = 5; + + // Specifies the column from the source texts where the error occurred. (0 + // based, -1 for messages without column location) example: 6 + int32 source_script_column = 6; + + // Detailed message of the record. + string message = 7; + + // The script context (obfuscated) in which the error occurred + string script_context = 8; + + // Category of the error/warning. Example: SyntaxError + string action = 9; + + // Effect of the error/warning. Example: COMPATIBILITY + string effect = 10; + + // Name of the affected object in the log message. + string object_name = 11; +} diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index 8d2d52d7e305..012b86786ee1 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/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-bigqueryreservation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/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-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStubSettings.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStubSettings.java index ff91137240fd..f828a5d7d4fe 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStubSettings.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStubSettings.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; @@ -649,6 +650,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "bigqueryreservation.googleapis.com:443"; } diff --git a/java-billing/README.md b/java-billing/README.md index 61141e3489de..a668be7abe0b 100644 --- a/java-billing/README.md +++ b/java-billing/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-billing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.46.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-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java index 507a7806ef82..f584da29a693 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java +++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.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; @@ -367,6 +368,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudbilling.googleapis.com:443"; } diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java index 1b299f4cad18..81775f1396f3 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java +++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.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; @@ -257,6 +258,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudbilling.googleapis.com:443"; } diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index d021b51481c4..10cd9f3416aa 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/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-billingbudgets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.46.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-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java index 8209bde4223e..806bb984747b 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.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; @@ -221,6 +222,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "billingbudgets.googleapis.com:443"; } diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java index 5c35b17ef4cc..f274bb18cba8 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.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; @@ -214,6 +215,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "billingbudgets.googleapis.com:443"; } diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index a44ab8569bc8..faec15ee11e7 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/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-binary-authorization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.45.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-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java index db490a1fc802..9397cdb1117f 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.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; @@ -238,6 +239,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "binaryauthorization.googleapis.com:443"; } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java index 930e0b8fb462..c6d84d427821 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -125,6 +126,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "binaryauthorization.googleapis.com:443"; } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java index 1d406b3db7bb..8c2e4b2099d5 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.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; @@ -246,6 +247,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "binaryauthorization.googleapis.com:443"; } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java index fc58b9587f6d..80a3db4186ec 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -125,6 +126,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "binaryauthorization.googleapis.com:443"; } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java index ca2a46d75c48..dfd265e6c5ce 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -129,6 +130,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "binaryauthorization.googleapis.com:443"; } diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index 2bcb5f100ce5..d991d6174f03 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/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.cloud/google-cloud-certificate-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.49.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-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java index 9a2fca0922c7..9592e58c05a6 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.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; @@ -1036,6 +1037,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "certificatemanager.googleapis.com:443"; } diff --git a/java-channel/README.md b/java-channel/README.md index fe85269a58d3..e942d847020e 100644 --- a/java-channel/README.md +++ b/java-channel/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-channel.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.50.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-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelReportsServiceStubSettings.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelReportsServiceStubSettings.java index b637a72aa0a1..9b9e5c221054 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelReportsServiceStubSettings.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelReportsServiceStubSettings.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; @@ -305,6 +306,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudchannel.googleapis.com:443"; } diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStubSettings.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStubSettings.java index e9c39b914d9b..6cc05bd19240 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStubSettings.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStubSettings.java @@ -36,6 +36,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; @@ -1769,6 +1770,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudchannel.googleapis.com:443"; } diff --git a/java-chat/README.md b/java-chat/README.md index f74f8e9c68fe..9b0e25f61463 100644 --- a/java-chat/README.md +++ b/java-chat/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 diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java index 81e7f6d8e275..54cd7a6f3bc1 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java @@ -575,6 +575,49 @@ *
        * * + * + *

        GetSpaceEvent + *

        Returns an event from a Google Chat space. The [event payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the resource that changed. For example, if you request an event about a new message but the message was later updated, the server returns the updated `Message` resource in the event payload. + *

        Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). To get an event, the authenticated user must be a member of the space. + *

        For an example, see [Get details about an event from a Google Chat space](https://developers.google.com/workspace/chat/get-space-event). + * + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • getSpaceEvent(GetSpaceEventRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • getSpaceEvent(SpaceEventName name) + *

        • getSpaceEvent(String name) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • getSpaceEventCallable() + *

        + * + * + * + *

        ListSpaceEvents + *

        Lists events from a Google Chat space. For each event, the [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the Chat resource. For example, if you list events about new space members, the server returns `Membership` resources that contain the latest membership details. If new members were removed during the requested period, the event payload contains an empty `Membership` resource. + *

        Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). To list events, the authenticated user must be a member of the space. + *

        For an example, see [List events from a Google Chat space](https://developers.google.com/workspace/chat/list-space-events). + * + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • listSpaceEvents(ListSpaceEventsRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • listSpaceEvents(SpaceName parent, String filter) + *

        • listSpaceEvents(String parent, String filter) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • listSpaceEventsPagedCallable() + *

        • listSpaceEventsCallable() + *

        + * + * * * *

        See the individual methods for example code. @@ -4458,6 +4501,455 @@ public final ThreadReadState getThreadReadState(GetThreadReadStateRequest reques return stub.getThreadReadStateCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns an event from a Google Chat space. The [event + * payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) + * contains the most recent version of the resource that changed. For example, if you request an + * event about a new message but the message was later updated, the server returns the updated + * `Message` resource in the event payload. + * + *

        Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * To get an event, the authenticated user must be a member of the space. + * + *

        For an example, see [Get details about an event from a Google Chat + * space](https://developers.google.com/workspace/chat/get-space-event). + * + *

        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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
        +   *   SpaceEventName name = SpaceEventName.of("[SPACE]", "[SPACE_EVENT]");
        +   *   SpaceEvent response = chatServiceClient.getSpaceEvent(name);
        +   * }
        +   * }
        + * + * @param name Required. The resource name of the space event. + *

        Format: `spaces/{space}/spaceEvents/{spaceEvent}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SpaceEvent getSpaceEvent(SpaceEventName name) { + GetSpaceEventRequest request = + GetSpaceEventRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSpaceEvent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns an event from a Google Chat space. The [event + * payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) + * contains the most recent version of the resource that changed. For example, if you request an + * event about a new message but the message was later updated, the server returns the updated + * `Message` resource in the event payload. + * + *

        Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * To get an event, the authenticated user must be a member of the space. + * + *

        For an example, see [Get details about an event from a Google Chat + * space](https://developers.google.com/workspace/chat/get-space-event). + * + *

        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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
        +   *   String name = SpaceEventName.of("[SPACE]", "[SPACE_EVENT]").toString();
        +   *   SpaceEvent response = chatServiceClient.getSpaceEvent(name);
        +   * }
        +   * }
        + * + * @param name Required. The resource name of the space event. + *

        Format: `spaces/{space}/spaceEvents/{spaceEvent}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SpaceEvent getSpaceEvent(String name) { + GetSpaceEventRequest request = GetSpaceEventRequest.newBuilder().setName(name).build(); + return getSpaceEvent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns an event from a Google Chat space. The [event + * payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) + * contains the most recent version of the resource that changed. For example, if you request an + * event about a new message but the message was later updated, the server returns the updated + * `Message` resource in the event payload. + * + *

        Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * To get an event, the authenticated user must be a member of the space. + * + *

        For an example, see [Get details about an event from a Google Chat + * space](https://developers.google.com/workspace/chat/get-space-event). + * + *

        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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
        +   *   GetSpaceEventRequest request =
        +   *       GetSpaceEventRequest.newBuilder()
        +   *           .setName(SpaceEventName.of("[SPACE]", "[SPACE_EVENT]").toString())
        +   *           .build();
        +   *   SpaceEvent response = chatServiceClient.getSpaceEvent(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 SpaceEvent getSpaceEvent(GetSpaceEventRequest request) { + return getSpaceEventCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns an event from a Google Chat space. The [event + * payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) + * contains the most recent version of the resource that changed. For example, if you request an + * event about a new message but the message was later updated, the server returns the updated + * `Message` resource in the event payload. + * + *

        Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * To get an event, the authenticated user must be a member of the space. + * + *

        For an example, see [Get details about an event from a Google Chat + * space](https://developers.google.com/workspace/chat/get-space-event). + * + *

        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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
        +   *   GetSpaceEventRequest request =
        +   *       GetSpaceEventRequest.newBuilder()
        +   *           .setName(SpaceEventName.of("[SPACE]", "[SPACE_EVENT]").toString())
        +   *           .build();
        +   *   ApiFuture future = chatServiceClient.getSpaceEventCallable().futureCall(request);
        +   *   // Do something.
        +   *   SpaceEvent response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable getSpaceEventCallable() { + return stub.getSpaceEventCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists events from a Google Chat space. For each event, the + * [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) + * contains the most recent version of the Chat resource. For example, if you list events about + * new space members, the server returns `Membership` resources that contain the latest membership + * details. If new members were removed during the requested period, the event payload contains an + * empty `Membership` resource. + * + *

        Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * To list events, the authenticated user must be a member of the space. + * + *

        For an example, see [List events from a Google Chat + * space](https://developers.google.com/workspace/chat/list-space-events). + * + *

        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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
        +   *   SpaceName parent = SpaceName.of("[SPACE]");
        +   *   String filter = "filter-1274492040";
        +   *   for (SpaceEvent element : chatServiceClient.listSpaceEvents(parent, filter).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. Resource name of the [Google Chat + * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) where the + * events occurred. + *

        Format: `spaces/{space}`. + * @param filter Required. A query filter. + *

        You must specify at least one event type (`event_type`) using the has `:` operator. To + * filter by multiple event types, use the `OR` operator. Omit batch event types in your + * filter. The request automatically returns any related batch events. For example, if you + * filter by new reactions (`google.workspace.chat.reaction.v1.created`), the server also + * returns batch new reactions events (`google.workspace.chat.reaction.v1.batchCreated`). For + * a list of supported event types, see the [`SpaceEvents` reference + * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). + *

        Optionally, you can also filter by start time (`start_time`) and end time (`end_time`): + *

          + *
        • `start_time`: Exclusive timestamp from which to start listing space events. You can + * list events that occurred up to 28 days ago. If unspecified, lists space events from + * the past 28 days. + *
        • `end_time`: Inclusive timestamp until which space events are listed. If unspecified, + * lists events up to the time of the request. + *
        + *

        To specify a start or end time, use the equals `=` operator and format in + * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both `start_time` and + * `end_time`, use the `AND` operator. + *

        For example, the following queries are valid: + *

        ``` start_time="2023-08-23T19:20:33+00:00" AND end_time="2023-08-23T19:21:54+00:00" ``` + * ``` start_time="2023-08-23T19:20:33+00:00" AND + * (event_types:"google.workspace.chat.space.v1.updated" OR + * event_types:"google.workspace.chat.message.v1.created") ``` + *

        The following queries are invalid: + *

        ``` start_time="2023-08-23T19:20:33+00:00" OR end_time="2023-08-23T19:21:54+00:00" ``` + * ``` event_types:"google.workspace.chat.space.v1.updated" AND + * event_types:"google.workspace.chat.message.v1.created" ``` + *

        Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSpaceEventsPagedResponse listSpaceEvents(SpaceName parent, String filter) { + ListSpaceEventsRequest request = + ListSpaceEventsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return listSpaceEvents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists events from a Google Chat space. For each event, the + * [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) + * contains the most recent version of the Chat resource. For example, if you list events about + * new space members, the server returns `Membership` resources that contain the latest membership + * details. If new members were removed during the requested period, the event payload contains an + * empty `Membership` resource. + * + *

        Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * To list events, the authenticated user must be a member of the space. + * + *

        For an example, see [List events from a Google Chat + * space](https://developers.google.com/workspace/chat/list-space-events). + * + *

        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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
        +   *   String parent = SpaceName.of("[SPACE]").toString();
        +   *   String filter = "filter-1274492040";
        +   *   for (SpaceEvent element : chatServiceClient.listSpaceEvents(parent, filter).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. Resource name of the [Google Chat + * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) where the + * events occurred. + *

        Format: `spaces/{space}`. + * @param filter Required. A query filter. + *

        You must specify at least one event type (`event_type`) using the has `:` operator. To + * filter by multiple event types, use the `OR` operator. Omit batch event types in your + * filter. The request automatically returns any related batch events. For example, if you + * filter by new reactions (`google.workspace.chat.reaction.v1.created`), the server also + * returns batch new reactions events (`google.workspace.chat.reaction.v1.batchCreated`). For + * a list of supported event types, see the [`SpaceEvents` reference + * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). + *

        Optionally, you can also filter by start time (`start_time`) and end time (`end_time`): + *

          + *
        • `start_time`: Exclusive timestamp from which to start listing space events. You can + * list events that occurred up to 28 days ago. If unspecified, lists space events from + * the past 28 days. + *
        • `end_time`: Inclusive timestamp until which space events are listed. If unspecified, + * lists events up to the time of the request. + *
        + *

        To specify a start or end time, use the equals `=` operator and format in + * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both `start_time` and + * `end_time`, use the `AND` operator. + *

        For example, the following queries are valid: + *

        ``` start_time="2023-08-23T19:20:33+00:00" AND end_time="2023-08-23T19:21:54+00:00" ``` + * ``` start_time="2023-08-23T19:20:33+00:00" AND + * (event_types:"google.workspace.chat.space.v1.updated" OR + * event_types:"google.workspace.chat.message.v1.created") ``` + *

        The following queries are invalid: + *

        ``` start_time="2023-08-23T19:20:33+00:00" OR end_time="2023-08-23T19:21:54+00:00" ``` + * ``` event_types:"google.workspace.chat.space.v1.updated" AND + * event_types:"google.workspace.chat.message.v1.created" ``` + *

        Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSpaceEventsPagedResponse listSpaceEvents(String parent, String filter) { + ListSpaceEventsRequest request = + ListSpaceEventsRequest.newBuilder().setParent(parent).setFilter(filter).build(); + return listSpaceEvents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists events from a Google Chat space. For each event, the + * [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) + * contains the most recent version of the Chat resource. For example, if you list events about + * new space members, the server returns `Membership` resources that contain the latest membership + * details. If new members were removed during the requested period, the event payload contains an + * empty `Membership` resource. + * + *

        Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * To list events, the authenticated user must be a member of the space. + * + *

        For an example, see [List events from a Google Chat + * space](https://developers.google.com/workspace/chat/list-space-events). + * + *

        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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
        +   *   ListSpaceEventsRequest request =
        +   *       ListSpaceEventsRequest.newBuilder()
        +   *           .setParent(SpaceName.of("[SPACE]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .setFilter("filter-1274492040")
        +   *           .build();
        +   *   for (SpaceEvent element : chatServiceClient.listSpaceEvents(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 ListSpaceEventsPagedResponse listSpaceEvents(ListSpaceEventsRequest request) { + return listSpaceEventsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists events from a Google Chat space. For each event, the + * [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) + * contains the most recent version of the Chat resource. For example, if you list events about + * new space members, the server returns `Membership` resources that contain the latest membership + * details. If new members were removed during the requested period, the event payload contains an + * empty `Membership` resource. + * + *

        Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * To list events, the authenticated user must be a member of the space. + * + *

        For an example, see [List events from a Google Chat + * space](https://developers.google.com/workspace/chat/list-space-events). + * + *

        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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
        +   *   ListSpaceEventsRequest request =
        +   *       ListSpaceEventsRequest.newBuilder()
        +   *           .setParent(SpaceName.of("[SPACE]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .setFilter("filter-1274492040")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       chatServiceClient.listSpaceEventsPagedCallable().futureCall(request);
        +   *   // Do something.
        +   *   for (SpaceEvent element : future.get().iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listSpaceEventsPagedCallable() { + return stub.listSpaceEventsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists events from a Google Chat space. For each event, the + * [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) + * contains the most recent version of the Chat resource. For example, if you list events about + * new space members, the server returns `Membership` resources that contain the latest membership + * details. If new members were removed during the requested period, the event payload contains an + * empty `Membership` resource. + * + *

        Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * To list events, the authenticated user must be a member of the space. + * + *

        For an example, see [List events from a Google Chat + * space](https://developers.google.com/workspace/chat/list-space-events). + * + *

        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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
        +   *   ListSpaceEventsRequest request =
        +   *       ListSpaceEventsRequest.newBuilder()
        +   *           .setParent(SpaceName.of("[SPACE]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .setFilter("filter-1274492040")
        +   *           .build();
        +   *   while (true) {
        +   *     ListSpaceEventsResponse response =
        +   *         chatServiceClient.listSpaceEventsCallable().call(request);
        +   *     for (SpaceEvent element : response.getSpaceEventsList()) {
        +   *       // doThingsWith(element);
        +   *     }
        +   *     String nextPageToken = response.getNextPageToken();
        +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
        +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
        +   *     } else {
        +   *       break;
        +   *     }
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listSpaceEventsCallable() { + return stub.listSpaceEventsCallable(); + } + @Override public final void close() { stub.close(); @@ -4788,4 +5280,81 @@ protected ListReactionsFixedSizeCollection createCollection( return new ListReactionsFixedSizeCollection(pages, collectionSize); } } + + public static class ListSpaceEventsPagedResponse + extends AbstractPagedListResponse< + ListSpaceEventsRequest, + ListSpaceEventsResponse, + SpaceEvent, + ListSpaceEventsPage, + ListSpaceEventsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSpaceEventsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSpaceEventsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSpaceEventsPagedResponse(ListSpaceEventsPage page) { + super(page, ListSpaceEventsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSpaceEventsPage + extends AbstractPage< + ListSpaceEventsRequest, ListSpaceEventsResponse, SpaceEvent, ListSpaceEventsPage> { + + private ListSpaceEventsPage( + PageContext context, + ListSpaceEventsResponse response) { + super(context, response); + } + + private static ListSpaceEventsPage createEmptyPage() { + return new ListSpaceEventsPage(null, null); + } + + @Override + protected ListSpaceEventsPage createPage( + PageContext context, + ListSpaceEventsResponse response) { + return new ListSpaceEventsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSpaceEventsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSpaceEventsRequest, + ListSpaceEventsResponse, + SpaceEvent, + ListSpaceEventsPage, + ListSpaceEventsFixedSizeCollection> { + + private ListSpaceEventsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSpaceEventsFixedSizeCollection createEmptyCollection() { + return new ListSpaceEventsFixedSizeCollection(null, 0); + } + + @Override + protected ListSpaceEventsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSpaceEventsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java index e00a85b3fac2..7e92ca596fad 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java @@ -19,6 +19,7 @@ import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListReactionsPagedResponse; +import static com.google.chat.v1.ChatServiceClient.ListSpaceEventsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpacesPagedResponse; import com.google.api.core.ApiFunction; @@ -217,6 +218,18 @@ public UnaryCallSettings getSpaceReadS return ((ChatServiceStubSettings) getStubSettings()).getThreadReadStateSettings(); } + /** Returns the object with the settings used for calls to getSpaceEvent. */ + public UnaryCallSettings getSpaceEventSettings() { + return ((ChatServiceStubSettings) getStubSettings()).getSpaceEventSettings(); + } + + /** Returns the object with the settings used for calls to listSpaceEvents. */ + public PagedCallSettings< + ListSpaceEventsRequest, ListSpaceEventsResponse, ListSpaceEventsPagedResponse> + listSpaceEventsSettings() { + return ((ChatServiceStubSettings) getStubSettings()).listSpaceEventsSettings(); + } + public static final ChatServiceSettings create(ChatServiceStubSettings stub) throws IOException { return new ChatServiceSettings.Builder(stub.toBuilder()).build(); } @@ -473,6 +486,18 @@ public UnaryCallSettings.Builder deleteReactionSet return getStubSettingsBuilder().getThreadReadStateSettings(); } + /** Returns the builder for the settings used for calls to getSpaceEvent. */ + public UnaryCallSettings.Builder getSpaceEventSettings() { + return getStubSettingsBuilder().getSpaceEventSettings(); + } + + /** Returns the builder for the settings used for calls to listSpaceEvents. */ + public PagedCallSettings.Builder< + ListSpaceEventsRequest, ListSpaceEventsResponse, ListSpaceEventsPagedResponse> + listSpaceEventsSettings() { + return getStubSettingsBuilder().listSpaceEventsSettings(); + } + @Override public ChatServiceSettings build() throws IOException { return new ChatServiceSettings(this); diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json index 106f93340a5f..52e1712d9a9a 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json @@ -52,6 +52,9 @@ "GetSpace": { "methods": ["getSpace", "getSpace", "getSpace", "getSpaceCallable"] }, + "GetSpaceEvent": { + "methods": ["getSpaceEvent", "getSpaceEvent", "getSpaceEvent", "getSpaceEventCallable"] + }, "GetSpaceReadState": { "methods": ["getSpaceReadState", "getSpaceReadState", "getSpaceReadState", "getSpaceReadStateCallable"] }, @@ -67,6 +70,9 @@ "ListReactions": { "methods": ["listReactions", "listReactions", "listReactions", "listReactionsPagedCallable", "listReactionsCallable"] }, + "ListSpaceEvents": { + "methods": ["listSpaceEvents", "listSpaceEvents", "listSpaceEvents", "listSpaceEventsPagedCallable", "listSpaceEventsCallable"] + }, "ListSpaces": { "methods": ["listSpaces", "listSpaces", "listSpacesPagedCallable", "listSpacesCallable"] }, diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java index 62d883f1c42d..28928a5b08bb 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java @@ -19,6 +19,7 @@ import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListReactionsPagedResponse; +import static com.google.chat.v1.ChatServiceClient.ListSpaceEventsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpacesPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -38,6 +39,7 @@ import com.google.chat.v1.GetAttachmentRequest; import com.google.chat.v1.GetMembershipRequest; import com.google.chat.v1.GetMessageRequest; +import com.google.chat.v1.GetSpaceEventRequest; import com.google.chat.v1.GetSpaceReadStateRequest; import com.google.chat.v1.GetSpaceRequest; import com.google.chat.v1.GetThreadReadStateRequest; @@ -47,6 +49,8 @@ import com.google.chat.v1.ListMessagesResponse; import com.google.chat.v1.ListReactionsRequest; import com.google.chat.v1.ListReactionsResponse; +import com.google.chat.v1.ListSpaceEventsRequest; +import com.google.chat.v1.ListSpaceEventsResponse; import com.google.chat.v1.ListSpacesRequest; import com.google.chat.v1.ListSpacesResponse; import com.google.chat.v1.Membership; @@ -54,6 +58,7 @@ import com.google.chat.v1.Reaction; import com.google.chat.v1.SetUpSpaceRequest; import com.google.chat.v1.Space; +import com.google.chat.v1.SpaceEvent; import com.google.chat.v1.SpaceReadState; import com.google.chat.v1.ThreadReadState; import com.google.chat.v1.UpdateMembershipRequest; @@ -198,6 +203,19 @@ public UnaryCallable getThreadReadSt throw new UnsupportedOperationException("Not implemented: getThreadReadStateCallable()"); } + public UnaryCallable getSpaceEventCallable() { + throw new UnsupportedOperationException("Not implemented: getSpaceEventCallable()"); + } + + public UnaryCallable + listSpaceEventsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSpaceEventsPagedCallable()"); + } + + public UnaryCallable listSpaceEventsCallable() { + throw new UnsupportedOperationException("Not implemented: listSpaceEventsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java index 02cf40c1fb09..88ccfb525d0b 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java @@ -19,11 +19,13 @@ import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListReactionsPagedResponse; +import static com.google.chat.v1.ChatServiceClient.ListSpaceEventsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpacesPagedResponse; 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; @@ -61,6 +63,7 @@ import com.google.chat.v1.GetAttachmentRequest; import com.google.chat.v1.GetMembershipRequest; import com.google.chat.v1.GetMessageRequest; +import com.google.chat.v1.GetSpaceEventRequest; import com.google.chat.v1.GetSpaceReadStateRequest; import com.google.chat.v1.GetSpaceRequest; import com.google.chat.v1.GetThreadReadStateRequest; @@ -70,6 +73,8 @@ import com.google.chat.v1.ListMessagesResponse; import com.google.chat.v1.ListReactionsRequest; import com.google.chat.v1.ListReactionsResponse; +import com.google.chat.v1.ListSpaceEventsRequest; +import com.google.chat.v1.ListSpaceEventsResponse; import com.google.chat.v1.ListSpacesRequest; import com.google.chat.v1.ListSpacesResponse; import com.google.chat.v1.Membership; @@ -77,6 +82,7 @@ import com.google.chat.v1.Reaction; import com.google.chat.v1.SetUpSpaceRequest; import com.google.chat.v1.Space; +import com.google.chat.v1.SpaceEvent; import com.google.chat.v1.SpaceReadState; import com.google.chat.v1.ThreadReadState; import com.google.chat.v1.UpdateMembershipRequest; @@ -199,6 +205,10 @@ public class ChatServiceStubSettings extends StubSettings getThreadReadStateSettings; + private final UnaryCallSettings getSpaceEventSettings; + private final PagedCallSettings< + ListSpaceEventsRequest, ListSpaceEventsResponse, ListSpaceEventsPagedResponse> + listSpaceEventsSettings; private static final PagedListDescriptor LIST_MESSAGES_PAGE_STR_DESC = @@ -347,6 +357,45 @@ public Iterable extractResources(ListReactionsResponse payload) { } }; + private static final PagedListDescriptor< + ListSpaceEventsRequest, ListSpaceEventsResponse, SpaceEvent> + LIST_SPACE_EVENTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSpaceEventsRequest injectToken( + ListSpaceEventsRequest payload, String token) { + return ListSpaceEventsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSpaceEventsRequest injectPageSize( + ListSpaceEventsRequest payload, int pageSize) { + return ListSpaceEventsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSpaceEventsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSpaceEventsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSpaceEventsResponse payload) { + return payload.getSpaceEventsList() == null + ? ImmutableList.of() + : payload.getSpaceEventsList(); + } + }; + private static final PagedListResponseFactory< ListMessagesRequest, ListMessagesResponse, ListMessagesPagedResponse> LIST_MESSAGES_PAGE_STR_FACT = @@ -415,6 +464,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListSpaceEventsRequest, ListSpaceEventsResponse, ListSpaceEventsPagedResponse> + LIST_SPACE_EVENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSpaceEventsRequest, ListSpaceEventsResponse, ListSpaceEventsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSpaceEventsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SPACE_EVENTS_PAGE_STR_DESC, request, context); + return ListSpaceEventsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to createMessage. */ public UnaryCallSettings createMessageSettings() { return createMessageSettings; @@ -554,6 +620,18 @@ public UnaryCallSettings getSpaceReadS return getThreadReadStateSettings; } + /** Returns the object with the settings used for calls to getSpaceEvent. */ + public UnaryCallSettings getSpaceEventSettings() { + return getSpaceEventSettings; + } + + /** Returns the object with the settings used for calls to listSpaceEvents. */ + public PagedCallSettings< + ListSpaceEventsRequest, ListSpaceEventsResponse, ListSpaceEventsPagedResponse> + listSpaceEventsSettings() { + return listSpaceEventsSettings; + } + public ChatServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -582,6 +660,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "chat.googleapis.com:443"; } @@ -690,6 +769,8 @@ protected ChatServiceStubSettings(Builder settingsBuilder) throws IOException { getSpaceReadStateSettings = settingsBuilder.getSpaceReadStateSettings().build(); updateSpaceReadStateSettings = settingsBuilder.updateSpaceReadStateSettings().build(); getThreadReadStateSettings = settingsBuilder.getThreadReadStateSettings().build(); + getSpaceEventSettings = settingsBuilder.getSpaceEventSettings().build(); + listSpaceEventsSettings = settingsBuilder.listSpaceEventsSettings().build(); } /** Builder for ChatServiceStubSettings. */ @@ -738,6 +819,10 @@ public static class Builder extends StubSettings.Builder getThreadReadStateSettings; + private final UnaryCallSettings.Builder getSpaceEventSettings; + private final PagedCallSettings.Builder< + ListSpaceEventsRequest, ListSpaceEventsResponse, ListSpaceEventsPagedResponse> + listSpaceEventsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -802,6 +887,8 @@ protected Builder(ClientContext clientContext) { getSpaceReadStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateSpaceReadStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getThreadReadStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getSpaceEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSpaceEventsSettings = PagedCallSettings.newBuilder(LIST_SPACE_EVENTS_PAGE_STR_FACT); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -830,7 +917,9 @@ protected Builder(ClientContext clientContext) { deleteReactionSettings, getSpaceReadStateSettings, updateSpaceReadStateSettings, - getThreadReadStateSettings); + getThreadReadStateSettings, + getSpaceEventSettings, + listSpaceEventsSettings); initDefaults(this); } @@ -863,6 +952,8 @@ protected Builder(ChatServiceStubSettings settings) { getSpaceReadStateSettings = settings.getSpaceReadStateSettings.toBuilder(); updateSpaceReadStateSettings = settings.updateSpaceReadStateSettings.toBuilder(); getThreadReadStateSettings = settings.getThreadReadStateSettings.toBuilder(); + getSpaceEventSettings = settings.getSpaceEventSettings.toBuilder(); + listSpaceEventsSettings = settings.listSpaceEventsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -891,7 +982,9 @@ protected Builder(ChatServiceStubSettings settings) { deleteReactionSettings, getSpaceReadStateSettings, updateSpaceReadStateSettings, - getThreadReadStateSettings); + getThreadReadStateSettings, + getSpaceEventSettings, + listSpaceEventsSettings); } private static Builder createDefault() { @@ -1049,6 +1142,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .getSpaceEventSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listSpaceEventsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -1212,6 +1315,18 @@ public UnaryCallSettings.Builder deleteReactionSet return getThreadReadStateSettings; } + /** Returns the builder for the settings used for calls to getSpaceEvent. */ + public UnaryCallSettings.Builder getSpaceEventSettings() { + return getSpaceEventSettings; + } + + /** Returns the builder for the settings used for calls to listSpaceEvents. */ + public PagedCallSettings.Builder< + ListSpaceEventsRequest, ListSpaceEventsResponse, ListSpaceEventsPagedResponse> + listSpaceEventsSettings() { + return listSpaceEventsSettings; + } + @Override public ChatServiceStubSettings build() throws IOException { return new ChatServiceStubSettings(this); diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java index d4f433c6db4f..4020af1e9ce2 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java @@ -19,6 +19,7 @@ import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListReactionsPagedResponse; +import static com.google.chat.v1.ChatServiceClient.ListSpaceEventsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpacesPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -43,6 +44,7 @@ import com.google.chat.v1.GetAttachmentRequest; import com.google.chat.v1.GetMembershipRequest; import com.google.chat.v1.GetMessageRequest; +import com.google.chat.v1.GetSpaceEventRequest; import com.google.chat.v1.GetSpaceReadStateRequest; import com.google.chat.v1.GetSpaceRequest; import com.google.chat.v1.GetThreadReadStateRequest; @@ -52,6 +54,8 @@ import com.google.chat.v1.ListMessagesResponse; import com.google.chat.v1.ListReactionsRequest; import com.google.chat.v1.ListReactionsResponse; +import com.google.chat.v1.ListSpaceEventsRequest; +import com.google.chat.v1.ListSpaceEventsResponse; import com.google.chat.v1.ListSpacesRequest; import com.google.chat.v1.ListSpacesResponse; import com.google.chat.v1.Membership; @@ -59,6 +63,7 @@ import com.google.chat.v1.Reaction; import com.google.chat.v1.SetUpSpaceRequest; import com.google.chat.v1.Space; +import com.google.chat.v1.SpaceEvent; import com.google.chat.v1.SpaceReadState; import com.google.chat.v1.ThreadReadState; import com.google.chat.v1.UpdateMembershipRequest; @@ -332,6 +337,27 @@ public class GrpcChatServiceStub extends ChatServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(ThreadReadState.getDefaultInstance())) .build(); + private static final MethodDescriptor + getSpaceEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.chat.v1.ChatService/GetSpaceEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSpaceEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SpaceEvent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listSpaceEventsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.chat.v1.ChatService/ListSpaceEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSpaceEventsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSpaceEventsResponse.getDefaultInstance())) + .build(); + private final UnaryCallable createMessageCallable; private final UnaryCallable listMessagesCallable; private final UnaryCallable @@ -370,6 +396,11 @@ public class GrpcChatServiceStub extends ChatServiceStub { updateSpaceReadStateCallable; private final UnaryCallable getThreadReadStateCallable; + private final UnaryCallable getSpaceEventCallable; + private final UnaryCallable + listSpaceEventsCallable; + private final UnaryCallable + listSpaceEventsPagedCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -656,6 +687,27 @@ protected GrpcChatServiceStub( return builder.build(); }) .build(); + GrpcCallSettings getSpaceEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSpaceEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listSpaceEventsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSpaceEventsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.createMessageCallable = callableFactory.createUnaryCallable( @@ -757,6 +809,15 @@ protected GrpcChatServiceStub( getThreadReadStateTransportSettings, settings.getThreadReadStateSettings(), clientContext); + this.getSpaceEventCallable = + callableFactory.createUnaryCallable( + getSpaceEventTransportSettings, settings.getSpaceEventSettings(), clientContext); + this.listSpaceEventsCallable = + callableFactory.createUnaryCallable( + listSpaceEventsTransportSettings, settings.listSpaceEventsSettings(), clientContext); + this.listSpaceEventsPagedCallable = + callableFactory.createPagedCallable( + listSpaceEventsTransportSettings, settings.listSpaceEventsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -920,6 +981,22 @@ public UnaryCallable getThreadReadSt return getThreadReadStateCallable; } + @Override + public UnaryCallable getSpaceEventCallable() { + return getSpaceEventCallable; + } + + @Override + public UnaryCallable listSpaceEventsCallable() { + return listSpaceEventsCallable; + } + + @Override + public UnaryCallable + listSpaceEventsPagedCallable() { + return listSpaceEventsPagedCallable; + } + @Override public final void close() { try { diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java index d64ff0c3c7b2..a62da16ee6dd 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java @@ -19,6 +19,7 @@ import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListReactionsPagedResponse; +import static com.google.chat.v1.ChatServiceClient.ListSpaceEventsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpacesPagedResponse; import com.google.api.core.InternalApi; @@ -48,6 +49,7 @@ import com.google.chat.v1.GetAttachmentRequest; import com.google.chat.v1.GetMembershipRequest; import com.google.chat.v1.GetMessageRequest; +import com.google.chat.v1.GetSpaceEventRequest; import com.google.chat.v1.GetSpaceReadStateRequest; import com.google.chat.v1.GetSpaceRequest; import com.google.chat.v1.GetThreadReadStateRequest; @@ -57,6 +59,8 @@ import com.google.chat.v1.ListMessagesResponse; import com.google.chat.v1.ListReactionsRequest; import com.google.chat.v1.ListReactionsResponse; +import com.google.chat.v1.ListSpaceEventsRequest; +import com.google.chat.v1.ListSpaceEventsResponse; import com.google.chat.v1.ListSpacesRequest; import com.google.chat.v1.ListSpacesResponse; import com.google.chat.v1.Membership; @@ -64,6 +68,7 @@ import com.google.chat.v1.Reaction; import com.google.chat.v1.SetUpSpaceRequest; import com.google.chat.v1.Space; +import com.google.chat.v1.SpaceEvent; import com.google.chat.v1.SpaceReadState; import com.google.chat.v1.ThreadReadState; import com.google.chat.v1.UpdateMembershipRequest; @@ -1035,6 +1040,77 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + getSpaceEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.chat.v1.ChatService/GetSpaceEvent") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=spaces/*/spaceEvents/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SpaceEvent.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSpaceEventsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.chat.v1.ChatService/ListSpaceEvents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=spaces/*}/spaceEvents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSpaceEventsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable createMessageCallable; private final UnaryCallable listMessagesCallable; private final UnaryCallable @@ -1073,6 +1149,11 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { updateSpaceReadStateCallable; private final UnaryCallable getThreadReadStateCallable; + private final UnaryCallable getSpaceEventCallable; + private final UnaryCallable + listSpaceEventsCallable; + private final UnaryCallable + listSpaceEventsPagedCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -1388,6 +1469,29 @@ protected HttpJsonChatServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings getSpaceEventTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSpaceEventMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listSpaceEventsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSpaceEventsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.createMessageCallable = callableFactory.createUnaryCallable( @@ -1489,6 +1593,15 @@ protected HttpJsonChatServiceStub( getThreadReadStateTransportSettings, settings.getThreadReadStateSettings(), clientContext); + this.getSpaceEventCallable = + callableFactory.createUnaryCallable( + getSpaceEventTransportSettings, settings.getSpaceEventSettings(), clientContext); + this.listSpaceEventsCallable = + callableFactory.createUnaryCallable( + listSpaceEventsTransportSettings, settings.listSpaceEventsSettings(), clientContext); + this.listSpaceEventsPagedCallable = + callableFactory.createPagedCallable( + listSpaceEventsTransportSettings, settings.listSpaceEventsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1523,6 +1636,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(getSpaceReadStateMethodDescriptor); methodDescriptors.add(updateSpaceReadStateMethodDescriptor); methodDescriptors.add(getThreadReadStateMethodDescriptor); + methodDescriptors.add(getSpaceEventMethodDescriptor); + methodDescriptors.add(listSpaceEventsMethodDescriptor); return methodDescriptors; } @@ -1680,6 +1795,22 @@ public UnaryCallable getThreadReadSt return getThreadReadStateCallable; } + @Override + public UnaryCallable getSpaceEventCallable() { + return getSpaceEventCallable; + } + + @Override + public UnaryCallable listSpaceEventsCallable() { + return listSpaceEventsCallable; + } + + @Override + public UnaryCallable + listSpaceEventsPagedCallable() { + return listSpaceEventsPagedCallable; + } + @Override public final void close() { try { diff --git a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json index 72df52a50004..5aad79bac943 100644 --- a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json +++ b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json @@ -1871,6 +1871,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.GetSpaceEventRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.GetSpaceEventRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.GetSpaceReadStateRequest", "queryAllDeclaredConstructors": true, @@ -2060,6 +2078,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.ListSpaceEventsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.ListSpaceEventsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.ListSpaceEventsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.ListSpaceEventsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.ListSpacesRequest", "queryAllDeclaredConstructors": true, @@ -2150,6 +2204,114 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.MembershipBatchCreatedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MembershipBatchCreatedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MembershipBatchDeletedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MembershipBatchDeletedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MembershipBatchUpdatedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MembershipBatchUpdatedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MembershipCreatedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MembershipCreatedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MembershipDeletedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MembershipDeletedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MembershipUpdatedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MembershipUpdatedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.Message", "queryAllDeclaredConstructors": true, @@ -2168,6 +2330,114 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.MessageBatchCreatedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MessageBatchCreatedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MessageBatchDeletedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MessageBatchDeletedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MessageBatchUpdatedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MessageBatchUpdatedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MessageCreatedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MessageCreatedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MessageDeletedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MessageDeletedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MessageUpdatedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.MessageUpdatedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.QuotedMessageMetadata", "queryAllDeclaredConstructors": true, @@ -2204,6 +2474,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.ReactionBatchCreatedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.ReactionBatchCreatedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.ReactionBatchDeletedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.ReactionBatchDeletedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.ReactionCreatedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.ReactionCreatedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.ReactionDeletedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.ReactionDeletedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.RichLinkMetadata", "queryAllDeclaredConstructors": true, @@ -2384,6 +2726,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.SpaceBatchUpdatedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.SpaceBatchUpdatedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.SpaceEvent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.SpaceEvent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.SpaceReadState", "queryAllDeclaredConstructors": true, @@ -2402,6 +2780,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.SpaceUpdatedEventData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.SpaceUpdatedEventData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.Thread", "queryAllDeclaredConstructors": true, diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java index 137ecbddff0b..31b84bb677c0 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java @@ -19,6 +19,7 @@ import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListReactionsPagedResponse; +import static com.google.chat.v1.ChatServiceClient.ListSpaceEventsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpacesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -2320,4 +2321,200 @@ public void getThreadReadStateExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getSpaceEventTest() throws Exception { + SpaceEvent expectedResponse = + SpaceEvent.newBuilder() + .setName(SpaceEventName.of("[SPACE]", "[SPACE_EVENT]").toString()) + .setEventTime(Timestamp.newBuilder().build()) + .setEventType("eventType31430900") + .build(); + mockService.addResponse(expectedResponse); + + SpaceEventName name = SpaceEventName.of("[SPACE]", "[SPACE_EVENT]"); + + SpaceEvent actualResponse = client.getSpaceEvent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSpaceEventExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceEventName name = SpaceEventName.of("[SPACE]", "[SPACE_EVENT]"); + client.getSpaceEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSpaceEventTest2() throws Exception { + SpaceEvent expectedResponse = + SpaceEvent.newBuilder() + .setName(SpaceEventName.of("[SPACE]", "[SPACE_EVENT]").toString()) + .setEventTime(Timestamp.newBuilder().build()) + .setEventType("eventType31430900") + .build(); + mockService.addResponse(expectedResponse); + + String name = "spaces/space-8926/spaceEvents/spaceEvent-8926"; + + SpaceEvent actualResponse = client.getSpaceEvent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSpaceEventExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "spaces/space-8926/spaceEvents/spaceEvent-8926"; + client.getSpaceEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSpaceEventsTest() throws Exception { + SpaceEvent responsesElement = SpaceEvent.newBuilder().build(); + ListSpaceEventsResponse expectedResponse = + ListSpaceEventsResponse.newBuilder() + .setNextPageToken("") + .addAllSpaceEvents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[SPACE]"); + String filter = "filter-1274492040"; + + ListSpaceEventsPagedResponse pagedListResponse = client.listSpaceEvents(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSpaceEventsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSpaceEventsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[SPACE]"); + String filter = "filter-1274492040"; + client.listSpaceEvents(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSpaceEventsTest2() throws Exception { + SpaceEvent responsesElement = SpaceEvent.newBuilder().build(); + ListSpaceEventsResponse expectedResponse = + ListSpaceEventsResponse.newBuilder() + .setNextPageToken("") + .addAllSpaceEvents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "spaces/space-3870"; + String filter = "filter-1274492040"; + + ListSpaceEventsPagedResponse pagedListResponse = client.listSpaceEvents(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSpaceEventsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSpaceEventsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "spaces/space-3870"; + String filter = "filter-1274492040"; + client.listSpaceEvents(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java index fcee26952e82..ecd9d8a377cb 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java @@ -19,6 +19,7 @@ import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListReactionsPagedResponse; +import static com.google.chat.v1.ChatServiceClient.ListSpaceEventsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpacesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -1984,4 +1985,178 @@ public void getThreadReadStateExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getSpaceEventTest() throws Exception { + SpaceEvent expectedResponse = + SpaceEvent.newBuilder() + .setName(SpaceEventName.of("[SPACE]", "[SPACE_EVENT]").toString()) + .setEventTime(Timestamp.newBuilder().build()) + .setEventType("eventType31430900") + .build(); + mockChatService.addResponse(expectedResponse); + + SpaceEventName name = SpaceEventName.of("[SPACE]", "[SPACE_EVENT]"); + + SpaceEvent actualResponse = client.getSpaceEvent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSpaceEventRequest actualRequest = ((GetSpaceEventRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSpaceEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + SpaceEventName name = SpaceEventName.of("[SPACE]", "[SPACE_EVENT]"); + client.getSpaceEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSpaceEventTest2() throws Exception { + SpaceEvent expectedResponse = + SpaceEvent.newBuilder() + .setName(SpaceEventName.of("[SPACE]", "[SPACE_EVENT]").toString()) + .setEventTime(Timestamp.newBuilder().build()) + .setEventType("eventType31430900") + .build(); + mockChatService.addResponse(expectedResponse); + + String name = "name3373707"; + + SpaceEvent actualResponse = client.getSpaceEvent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSpaceEventRequest actualRequest = ((GetSpaceEventRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSpaceEventExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + String name = "name3373707"; + client.getSpaceEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSpaceEventsTest() throws Exception { + SpaceEvent responsesElement = SpaceEvent.newBuilder().build(); + ListSpaceEventsResponse expectedResponse = + ListSpaceEventsResponse.newBuilder() + .setNextPageToken("") + .addAllSpaceEvents(Arrays.asList(responsesElement)) + .build(); + mockChatService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[SPACE]"); + String filter = "filter-1274492040"; + + ListSpaceEventsPagedResponse pagedListResponse = client.listSpaceEvents(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSpaceEventsList().get(0), resources.get(0)); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSpaceEventsRequest actualRequest = ((ListSpaceEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSpaceEventsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[SPACE]"); + String filter = "filter-1274492040"; + client.listSpaceEvents(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSpaceEventsTest2() throws Exception { + SpaceEvent responsesElement = SpaceEvent.newBuilder().build(); + ListSpaceEventsResponse expectedResponse = + ListSpaceEventsResponse.newBuilder() + .setNextPageToken("") + .addAllSpaceEvents(Arrays.asList(responsesElement)) + .build(); + mockChatService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String filter = "filter-1274492040"; + + ListSpaceEventsPagedResponse pagedListResponse = client.listSpaceEvents(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSpaceEventsList().get(0), resources.get(0)); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSpaceEventsRequest actualRequest = ((ListSpaceEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSpaceEventsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + String parent = "parent-995424086"; + String filter = "filter-1274492040"; + client.listSpaceEvents(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java index 82951fb95525..5c00a4d4b787 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java @@ -598,4 +598,46 @@ public void getThreadReadState( Exception.class.getName()))); } } + + @Override + public void getSpaceEvent( + GetSpaceEventRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SpaceEvent) { + requests.add(request); + responseObserver.onNext(((SpaceEvent) 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 GetSpaceEvent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SpaceEvent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSpaceEvents( + ListSpaceEventsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSpaceEventsResponse) { + requests.add(request); + responseObserver.onNext(((ListSpaceEventsResponse) 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 ListSpaceEvents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSpaceEventsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java index 85c22e4e66fd..9b1f14e5983e 100644 --- a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java +++ b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java @@ -1084,6 +1084,87 @@ private ChatServiceGrpc() {} return getGetThreadReadStateMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.chat.v1.GetSpaceEventRequest, com.google.chat.v1.SpaceEvent> + getGetSpaceEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpaceEvent", + requestType = com.google.chat.v1.GetSpaceEventRequest.class, + responseType = com.google.chat.v1.SpaceEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.chat.v1.GetSpaceEventRequest, com.google.chat.v1.SpaceEvent> + getGetSpaceEventMethod() { + io.grpc.MethodDescriptor + getGetSpaceEventMethod; + if ((getGetSpaceEventMethod = ChatServiceGrpc.getGetSpaceEventMethod) == null) { + synchronized (ChatServiceGrpc.class) { + if ((getGetSpaceEventMethod = ChatServiceGrpc.getGetSpaceEventMethod) == null) { + ChatServiceGrpc.getGetSpaceEventMethod = + getGetSpaceEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpaceEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.GetSpaceEventRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.SpaceEvent.getDefaultInstance())) + .setSchemaDescriptor(new ChatServiceMethodDescriptorSupplier("GetSpaceEvent")) + .build(); + } + } + } + return getGetSpaceEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.chat.v1.ListSpaceEventsRequest, com.google.chat.v1.ListSpaceEventsResponse> + getListSpaceEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSpaceEvents", + requestType = com.google.chat.v1.ListSpaceEventsRequest.class, + responseType = com.google.chat.v1.ListSpaceEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.chat.v1.ListSpaceEventsRequest, com.google.chat.v1.ListSpaceEventsResponse> + getListSpaceEventsMethod() { + io.grpc.MethodDescriptor< + com.google.chat.v1.ListSpaceEventsRequest, com.google.chat.v1.ListSpaceEventsResponse> + getListSpaceEventsMethod; + if ((getListSpaceEventsMethod = ChatServiceGrpc.getListSpaceEventsMethod) == null) { + synchronized (ChatServiceGrpc.class) { + if ((getListSpaceEventsMethod = ChatServiceGrpc.getListSpaceEventsMethod) == null) { + ChatServiceGrpc.getListSpaceEventsMethod = + getListSpaceEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpaceEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.ListSpaceEventsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.ListSpaceEventsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ChatServiceMethodDescriptorSupplier("ListSpaceEvents")) + .build(); + } + } + } + return getListSpaceEventsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ChatServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1754,6 +1835,56 @@ default void getThreadReadState( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetThreadReadStateMethod(), responseObserver); } + + /** + * + * + *
        +     * Returns an event from a Google Chat space. The [event
        +     * payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
        +     * contains the most recent version of the resource that changed. For example,
        +     * if you request an event about a new message but the message was later
        +     * updated, the server returns the updated `Message` resource in the event
        +     * payload.
        +     * Requires [user
        +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
        +     * To get an event, the authenticated user must be a member of the space.
        +     * For an example, see [Get details about an
        +     * event from a Google Chat
        +     * space](https://developers.google.com/workspace/chat/get-space-event).
        +     * 
        + */ + default void getSpaceEvent( + com.google.chat.v1.GetSpaceEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSpaceEventMethod(), responseObserver); + } + + /** + * + * + *
        +     * Lists events from a Google Chat space. For each event, the
        +     * [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
        +     * contains the most recent version of the Chat resource. For example, if you
        +     * list events about new space members, the server returns `Membership`
        +     * resources that contain the latest membership details. If new members were
        +     * removed during the requested period, the event payload contains an empty
        +     * `Membership` resource.
        +     * Requires [user
        +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
        +     * To list events, the authenticated user must be a member of the space.
        +     * For an example, see [List events from a Google Chat
        +     * space](https://developers.google.com/workspace/chat/list-space-events).
        +     * 
        + */ + default void listSpaceEvents( + com.google.chat.v1.ListSpaceEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSpaceEventsMethod(), responseObserver); + } } /** @@ -2460,6 +2591,60 @@ public void getThreadReadState( request, responseObserver); } + + /** + * + * + *
        +     * Returns an event from a Google Chat space. The [event
        +     * payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
        +     * contains the most recent version of the resource that changed. For example,
        +     * if you request an event about a new message but the message was later
        +     * updated, the server returns the updated `Message` resource in the event
        +     * payload.
        +     * Requires [user
        +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
        +     * To get an event, the authenticated user must be a member of the space.
        +     * For an example, see [Get details about an
        +     * event from a Google Chat
        +     * space](https://developers.google.com/workspace/chat/get-space-event).
        +     * 
        + */ + public void getSpaceEvent( + com.google.chat.v1.GetSpaceEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpaceEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Lists events from a Google Chat space. For each event, the
        +     * [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
        +     * contains the most recent version of the Chat resource. For example, if you
        +     * list events about new space members, the server returns `Membership`
        +     * resources that contain the latest membership details. If new members were
        +     * removed during the requested period, the event payload contains an empty
        +     * `Membership` resource.
        +     * Requires [user
        +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
        +     * To list events, the authenticated user must be a member of the space.
        +     * For an example, see [List events from a Google Chat
        +     * space](https://developers.google.com/workspace/chat/list-space-events).
        +     * 
        + */ + public void listSpaceEvents( + com.google.chat.v1.ListSpaceEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSpaceEventsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -3073,6 +3258,54 @@ public com.google.chat.v1.ThreadReadState getThreadReadState( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetThreadReadStateMethod(), getCallOptions(), request); } + + /** + * + * + *
        +     * Returns an event from a Google Chat space. The [event
        +     * payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
        +     * contains the most recent version of the resource that changed. For example,
        +     * if you request an event about a new message but the message was later
        +     * updated, the server returns the updated `Message` resource in the event
        +     * payload.
        +     * Requires [user
        +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
        +     * To get an event, the authenticated user must be a member of the space.
        +     * For an example, see [Get details about an
        +     * event from a Google Chat
        +     * space](https://developers.google.com/workspace/chat/get-space-event).
        +     * 
        + */ + public com.google.chat.v1.SpaceEvent getSpaceEvent( + com.google.chat.v1.GetSpaceEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpaceEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Lists events from a Google Chat space. For each event, the
        +     * [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
        +     * contains the most recent version of the Chat resource. For example, if you
        +     * list events about new space members, the server returns `Membership`
        +     * resources that contain the latest membership details. If new members were
        +     * removed during the requested period, the event payload contains an empty
        +     * `Membership` resource.
        +     * Requires [user
        +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
        +     * To list events, the authenticated user must be a member of the space.
        +     * For an example, see [List events from a Google Chat
        +     * space](https://developers.google.com/workspace/chat/list-space-events).
        +     * 
        + */ + public com.google.chat.v1.ListSpaceEventsResponse listSpaceEvents( + com.google.chat.v1.ListSpaceEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSpaceEventsMethod(), getCallOptions(), request); + } } /** @@ -3697,6 +3930,55 @@ public com.google.common.util.concurrent.ListenableFuture + * Returns an event from a Google Chat space. The [event + * payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) + * contains the most recent version of the resource that changed. For example, + * if you request an event about a new message but the message was later + * updated, the server returns the updated `Message` resource in the event + * payload. + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * To get an event, the authenticated user must be a member of the space. + * For an example, see [Get details about an + * event from a Google Chat + * space](https://developers.google.com/workspace/chat/get-space-event). + * + */ + public com.google.common.util.concurrent.ListenableFuture + getSpaceEvent(com.google.chat.v1.GetSpaceEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpaceEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Lists events from a Google Chat space. For each event, the
        +     * [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
        +     * contains the most recent version of the Chat resource. For example, if you
        +     * list events about new space members, the server returns `Membership`
        +     * resources that contain the latest membership details. If new members were
        +     * removed during the requested period, the event payload contains an empty
        +     * `Membership` resource.
        +     * Requires [user
        +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
        +     * To list events, the authenticated user must be a member of the space.
        +     * For an example, see [List events from a Google Chat
        +     * space](https://developers.google.com/workspace/chat/list-space-events).
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.chat.v1.ListSpaceEventsResponse> + listSpaceEvents(com.google.chat.v1.ListSpaceEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSpaceEventsMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_MESSAGE = 0; @@ -3725,6 +4007,8 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3879,6 +4163,17 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.chat.v1.GetThreadReadStateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_SPACE_EVENT: + serviceImpl.getSpaceEvent( + (com.google.chat.v1.GetSpaceEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SPACE_EVENTS: + serviceImpl.listSpaceEvents( + (com.google.chat.v1.ListSpaceEventsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -4052,6 +4347,19 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.chat.v1.GetThreadReadStateRequest, com.google.chat.v1.ThreadReadState>(service, METHODID_GET_THREAD_READ_STATE))) + .addMethod( + getGetSpaceEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.chat.v1.GetSpaceEventRequest, com.google.chat.v1.SpaceEvent>( + service, METHODID_GET_SPACE_EVENT))) + .addMethod( + getListSpaceEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.chat.v1.ListSpaceEventsRequest, + com.google.chat.v1.ListSpaceEventsResponse>( + service, METHODID_LIST_SPACE_EVENTS))) .build(); } @@ -4129,6 +4437,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetSpaceReadStateMethod()) .addMethod(getUpdateSpaceReadStateMethod()) .addMethod(getGetThreadReadStateMethod()) + .addMethod(getGetSpaceEventMethod()) + .addMethod(getListSpaceEventsMethod()) .build(); } } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java index 7deb5ec5cd0f..5cc7821c9744 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java @@ -42,140 +42,148 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "v1/attachment.proto\032\037google/chat/v1/memb" + "ership.proto\032\034google/chat/v1/message.pro" + "to\032\035google/chat/v1/reaction.proto\032\032googl" - + "e/chat/v1/space.proto\032%google/chat/v1/sp" - + "ace_read_state.proto\032 google/chat/v1/spa" - + "ce_setup.proto\032&google/chat/v1/thread_re" - + "ad_state.proto\032\033google/protobuf/empty.pr" - + "oto2\364&\n\013ChatService\022\233\001\n\rCreateMessage\022$." - + "google.chat.v1.CreateMessageRequest\032\027.go" - + "ogle.chat.v1.Message\"K\332A\031parent,message," - + "message_id\202\323\344\223\002)\"\036/v1/{parent=spaces/*}/" - + "messages:\007message\022\212\001\n\014ListMessages\022#.goo" - + "gle.chat.v1.ListMessagesRequest\032$.google" - + ".chat.v1.ListMessagesResponse\"/\332A\006parent" - + "\202\323\344\223\002 \022\036/v1/{parent=spaces/*}/messages\022\222" - + "\001\n\017ListMemberships\022&.google.chat.v1.List" - + "MembershipsRequest\032\'.google.chat.v1.List" - + "MembershipsResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v" - + "1/{parent=spaces/*}/members\022\177\n\rGetMember" - + "ship\022$.google.chat.v1.GetMembershipReque" - + "st\032\032.google.chat.v1.Membership\",\332A\004name\202" - + "\323\344\223\002\037\022\035/v1/{name=spaces/*/members/*}\022w\n\n" - + "GetMessage\022!.google.chat.v1.GetMessageRe" - + "quest\032\027.google.chat.v1.Message\"-\332A\004name\202" - + "\323\344\223\002 \022\036/v1/{name=spaces/*/messages/*}\022\321\001" - + "\n\rUpdateMessage\022$.google.chat.v1.UpdateM" - + "essageRequest\032\027.google.chat.v1.Message\"\200" - + "\001\332A\023message,update_mask\202\323\344\223\002d\032&/v1/{mess" - + "age.name=spaces/*/messages/*}:\007messageZ1" - + "2&/v1/{message.name=spaces/*/messages/*}" - + ":\007message\022|\n\rDeleteMessage\022$.google.chat" - + ".v1.DeleteMessageRequest\032\026.google.protob" - + "uf.Empty\"-\332A\004name\202\323\344\223\002 *\036/v1/{name=space" - + "s/*/messages/*}\022\216\001\n\rGetAttachment\022$.goog" - + "le.chat.v1.GetAttachmentRequest\032\032.google" - + ".chat.v1.Attachment\";\332A\004name\202\323\344\223\002.\022,/v1/" - + "{name=spaces/*/messages/*/attachments/*}" - + "\022\232\001\n\020UploadAttachment\022\'.google.chat.v1.U" - + "ploadAttachmentRequest\032(.google.chat.v1." - + "UploadAttachmentResponse\"3\202\323\344\223\002-\"(/v1/{p" - + "arent=spaces/*}/attachments:upload:\001*\022j\n" - + "\nListSpaces\022!.google.chat.v1.ListSpacesR" - + "equest\032\".google.chat.v1.ListSpacesRespon" - + "se\"\025\332A\000\202\323\344\223\002\014\022\n/v1/spaces\022f\n\010GetSpace\022\037." - + "google.chat.v1.GetSpaceRequest\032\025.google." - + "chat.v1.Space\"\"\332A\004name\202\323\344\223\002\025\022\023/v1/{name=" - + "spaces/*}\022k\n\013CreateSpace\022\".google.chat.v" - + "1.CreateSpaceRequest\032\025.google.chat.v1.Sp" - + "ace\"!\332A\005space\202\323\344\223\002\023\"\n/v1/spaces:\005space\022c" - + "\n\nSetUpSpace\022!.google.chat.v1.SetUpSpace" - + "Request\032\025.google.chat.v1.Space\"\033\202\323\344\223\002\025\"\020" - + "/v1/spaces:setup:\001*\022\206\001\n\013UpdateSpace\022\".go" - + "ogle.chat.v1.UpdateSpaceRequest\032\025.google" - + ".chat.v1.Space\"<\332A\021space,update_mask\202\323\344\223" - + "\002\"2\031/v1/{space.name=spaces/*}:\005space\022m\n\013" - + "DeleteSpace\022\".google.chat.v1.DeleteSpace" - + "Request\032\026.google.protobuf.Empty\"\"\332A\004name" - + "\202\323\344\223\002\025*\023/v1/{name=spaces/*}\022\235\001\n\023Complete" - + "ImportSpace\022*.google.chat.v1.CompleteImp" - + "ortSpaceRequest\032+.google.chat.v1.Complet" - + "eImportSpaceResponse\"-\202\323\344\223\002\'\"\"/v1/{name=" - + "spaces/*}:completeImport:\001*\022z\n\021FindDirec" - + "tMessage\022(.google.chat.v1.FindDirectMess" - + "ageRequest\032\025.google.chat.v1.Space\"$\202\323\344\223\002" - + "\036\022\034/v1/spaces:findDirectMessage\022\236\001\n\020Crea" - + "teMembership\022\'.google.chat.v1.CreateMemb" - + "ershipRequest\032\032.google.chat.v1.Membershi" - + "p\"E\332A\021parent,membership\202\323\344\223\002+\"\035/v1/{pare" - + "nt=spaces/*}/members:\nmembership\022\256\001\n\020Upd" - + "ateMembership\022\'.google.chat.v1.UpdateMem" - + "bershipRequest\032\032.google.chat.v1.Membersh" - + "ip\"U\332A\026membership,update_mask\202\323\344\223\00262(/v1" - + "/{membership.name=spaces/*/members/*}:\nm" - + "embership\022\205\001\n\020DeleteMembership\022\'.google." - + "chat.v1.DeleteMembershipRequest\032\032.google" - + ".chat.v1.Membership\",\332A\004name\202\323\344\223\002\037*\035/v1/" - + "{name=spaces/*/members/*}\022\241\001\n\016CreateReac" - + "tion\022%.google.chat.v1.CreateReactionRequ" - + "est\032\030.google.chat.v1.Reaction\"N\332A\017parent" - + ",reaction\202\323\344\223\0026\"*/v1/{parent=spaces/*/me" - + "ssages/*}/reactions:\010reaction\022\231\001\n\rListRe" - + "actions\022$.google.chat.v1.ListReactionsRe" - + "quest\032%.google.chat.v1.ListReactionsResp" - + "onse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=space" - + "s/*/messages/*}/reactions\022\212\001\n\016DeleteReac" - + "tion\022%.google.chat.v1.DeleteReactionRequ" - + "est\032\026.google.protobuf.Empty\"9\332A\004name\202\323\344\223" - + "\002,**/v1/{name=spaces/*/messages/*/reacti" - + "ons/*}\022\230\001\n\021GetSpaceReadState\022(.google.ch" - + "at.v1.GetSpaceReadStateRequest\032\036.google." - + "chat.v1.SpaceReadState\"9\332A\004name\202\323\344\223\002,\022*/" - + "v1/{name=users/*/spaces/*/spaceReadState" - + "}\022\331\001\n\024UpdateSpaceReadState\022+.google.chat" - + ".v1.UpdateSpaceReadStateRequest\032\036.google" - + ".chat.v1.SpaceReadState\"t\332A\034space_read_s" - + "tate,update_mask\202\323\344\223\002O2;/v1/{space_read_" - + "state.name=users/*/spaces/*/spaceReadSta" - + "te}:\020space_read_state\022\246\001\n\022GetThreadReadS" - + "tate\022).google.chat.v1.GetThreadReadState" - + "Request\032\037.google.chat.v1.ThreadReadState" - + "\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=users/*/space" - + "s/*/threads/*/threadReadState}\032\251\t\312A\023chat" - + ".googleapis.com\322A\217\thttps://www.googleapi" - + "s.com/auth/chat.admin.delete,https://www" - + ".googleapis.com/auth/chat.admin.membersh" - + "ips,https://www.googleapis.com/auth/chat" - + ".admin.memberships.readonly,https://www." - + "googleapis.com/auth/chat.admin.spaces,ht" - + "tps://www.googleapis.com/auth/chat.admin" - + ".spaces.readonly,https://www.googleapis." - + "com/auth/chat.bot,https://www.googleapis" - + ".com/auth/chat.delete,https://www.google" - + "apis.com/auth/chat.import,https://www.go" - + "ogleapis.com/auth/chat.memberships,https" - + "://www.googleapis.com/auth/chat.membersh" - + "ips.app,https://www.googleapis.com/auth/" - + "chat.memberships.readonly,https://www.go" - + "ogleapis.com/auth/chat.messages,https://" - + "www.googleapis.com/auth/chat.messages.cr" - + "eate,https://www.googleapis.com/auth/cha" - + "t.messages.reactions,https://www.googlea" - + "pis.com/auth/chat.messages.reactions.cre" - + "ate,https://www.googleapis.com/auth/chat" - + ".messages.reactions.readonly,https://www" - + ".googleapis.com/auth/chat.messages.reado" - + "nly,https://www.googleapis.com/auth/chat" - + ".spaces,https://www.googleapis.com/auth/" - + "chat.spaces.create,https://www.googleapi" - + "s.com/auth/chat.spaces.readonly,https://" - + "www.googleapis.com/auth/chat.users.reads" - + "tate,https://www.googleapis.com/auth/cha" - + "t.users.readstate.readonlyB\251\001\n\022com.googl" - + "e.chat.v1B\020ChatServiceProtoP\001Z,cloud.goo" - + "gle.com/go/chat/apiv1/chatpb;chatpb\242\002\013DY" - + "NAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023Google" - + "\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006" - + "proto3" + + "e/chat/v1/space.proto\032 google/chat/v1/sp" + + "ace_event.proto\032%google/chat/v1/space_re" + + "ad_state.proto\032 google/chat/v1/space_set" + + "up.proto\032&google/chat/v1/thread_read_sta" + + "te.proto\032\033google/protobuf/empty.proto2\232)" + + "\n\013ChatService\022\233\001\n\rCreateMessage\022$.google" + + ".chat.v1.CreateMessageRequest\032\027.google.c" + + "hat.v1.Message\"K\332A\031parent,message,messag" + + "e_id\202\323\344\223\002)\"\036/v1/{parent=spaces/*}/messag" + + "es:\007message\022\212\001\n\014ListMessages\022#.google.ch" + + "at.v1.ListMessagesRequest\032$.google.chat." + + "v1.ListMessagesResponse\"/\332A\006parent\202\323\344\223\002 " + + "\022\036/v1/{parent=spaces/*}/messages\022\222\001\n\017Lis" + + "tMemberships\022&.google.chat.v1.ListMember" + + "shipsRequest\032\'.google.chat.v1.ListMember" + + "shipsResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v1/{par" + + "ent=spaces/*}/members\022\177\n\rGetMembership\022$" + + ".google.chat.v1.GetMembershipRequest\032\032.g" + + "oogle.chat.v1.Membership\",\332A\004name\202\323\344\223\002\037\022" + + "\035/v1/{name=spaces/*/members/*}\022w\n\nGetMes" + + "sage\022!.google.chat.v1.GetMessageRequest\032" + + "\027.google.chat.v1.Message\"-\332A\004name\202\323\344\223\002 \022" + + "\036/v1/{name=spaces/*/messages/*}\022\321\001\n\rUpda" + + "teMessage\022$.google.chat.v1.UpdateMessage" + + "Request\032\027.google.chat.v1.Message\"\200\001\332A\023me" + + "ssage,update_mask\202\323\344\223\002d\032&/v1/{message.na" + + "me=spaces/*/messages/*}:\007messageZ12&/v1/" + + "{message.name=spaces/*/messages/*}:\007mess" + + "age\022|\n\rDeleteMessage\022$.google.chat.v1.De" + + "leteMessageRequest\032\026.google.protobuf.Emp" + + "ty\"-\332A\004name\202\323\344\223\002 *\036/v1/{name=spaces/*/me" + + "ssages/*}\022\216\001\n\rGetAttachment\022$.google.cha" + + "t.v1.GetAttachmentRequest\032\032.google.chat." + + "v1.Attachment\";\332A\004name\202\323\344\223\002.\022,/v1/{name=" + + "spaces/*/messages/*/attachments/*}\022\232\001\n\020U" + + "ploadAttachment\022\'.google.chat.v1.UploadA" + + "ttachmentRequest\032(.google.chat.v1.Upload" + + "AttachmentResponse\"3\202\323\344\223\002-\"(/v1/{parent=" + + "spaces/*}/attachments:upload:\001*\022j\n\nListS" + + "paces\022!.google.chat.v1.ListSpacesRequest" + + "\032\".google.chat.v1.ListSpacesResponse\"\025\332A" + + "\000\202\323\344\223\002\014\022\n/v1/spaces\022f\n\010GetSpace\022\037.google" + + ".chat.v1.GetSpaceRequest\032\025.google.chat.v" + + "1.Space\"\"\332A\004name\202\323\344\223\002\025\022\023/v1/{name=spaces" + + "/*}\022k\n\013CreateSpace\022\".google.chat.v1.Crea" + + "teSpaceRequest\032\025.google.chat.v1.Space\"!\332" + + "A\005space\202\323\344\223\002\023\"\n/v1/spaces:\005space\022c\n\nSetU" + + "pSpace\022!.google.chat.v1.SetUpSpaceReques" + + "t\032\025.google.chat.v1.Space\"\033\202\323\344\223\002\025\"\020/v1/sp" + + "aces:setup:\001*\022\206\001\n\013UpdateSpace\022\".google.c" + + "hat.v1.UpdateSpaceRequest\032\025.google.chat." + + "v1.Space\"<\332A\021space,update_mask\202\323\344\223\002\"2\031/v" + + "1/{space.name=spaces/*}:\005space\022m\n\013Delete" + + "Space\022\".google.chat.v1.DeleteSpaceReques" + + "t\032\026.google.protobuf.Empty\"\"\332A\004name\202\323\344\223\002\025" + + "*\023/v1/{name=spaces/*}\022\235\001\n\023CompleteImport" + + "Space\022*.google.chat.v1.CompleteImportSpa" + + "ceRequest\032+.google.chat.v1.CompleteImpor" + + "tSpaceResponse\"-\202\323\344\223\002\'\"\"/v1/{name=spaces" + + "/*}:completeImport:\001*\022z\n\021FindDirectMessa" + + "ge\022(.google.chat.v1.FindDirectMessageReq" + + "uest\032\025.google.chat.v1.Space\"$\202\323\344\223\002\036\022\034/v1" + + "/spaces:findDirectMessage\022\236\001\n\020CreateMemb" + + "ership\022\'.google.chat.v1.CreateMembership" + + "Request\032\032.google.chat.v1.Membership\"E\332A\021" + + "parent,membership\202\323\344\223\002+\"\035/v1/{parent=spa" + + "ces/*}/members:\nmembership\022\256\001\n\020UpdateMem" + + "bership\022\'.google.chat.v1.UpdateMembershi" + + "pRequest\032\032.google.chat.v1.Membership\"U\332A" + + "\026membership,update_mask\202\323\344\223\00262(/v1/{memb" + + "ership.name=spaces/*/members/*}:\nmembers" + + "hip\022\205\001\n\020DeleteMembership\022\'.google.chat.v" + + "1.DeleteMembershipRequest\032\032.google.chat." + + "v1.Membership\",\332A\004name\202\323\344\223\002\037*\035/v1/{name=" + + "spaces/*/members/*}\022\241\001\n\016CreateReaction\022%" + + ".google.chat.v1.CreateReactionRequest\032\030." + + "google.chat.v1.Reaction\"N\332A\017parent,react" + + "ion\202\323\344\223\0026\"*/v1/{parent=spaces/*/messages" + + "/*}/reactions:\010reaction\022\231\001\n\rListReaction" + + "s\022$.google.chat.v1.ListReactionsRequest\032" + + "%.google.chat.v1.ListReactionsResponse\";" + + "\332A\006parent\202\323\344\223\002,\022*/v1/{parent=spaces/*/me" + + "ssages/*}/reactions\022\212\001\n\016DeleteReaction\022%" + + ".google.chat.v1.DeleteReactionRequest\032\026." + + "google.protobuf.Empty\"9\332A\004name\202\323\344\223\002,**/v" + + "1/{name=spaces/*/messages/*/reactions/*}" + + "\022\230\001\n\021GetSpaceReadState\022(.google.chat.v1." + + "GetSpaceReadStateRequest\032\036.google.chat.v" + + "1.SpaceReadState\"9\332A\004name\202\323\344\223\002,\022*/v1/{na" + + "me=users/*/spaces/*/spaceReadState}\022\331\001\n\024" + + "UpdateSpaceReadState\022+.google.chat.v1.Up" + + "dateSpaceReadStateRequest\032\036.google.chat." + + "v1.SpaceReadState\"t\332A\034space_read_state,u" + + "pdate_mask\202\323\344\223\002O2;/v1/{space_read_state." + + "name=users/*/spaces/*/spaceReadState}:\020s" + + "pace_read_state\022\246\001\n\022GetThreadReadState\022)" + + ".google.chat.v1.GetThreadReadStateReques" + + "t\032\037.google.chat.v1.ThreadReadState\"D\332A\004n" + + "ame\202\323\344\223\0027\0225/v1/{name=users/*/spaces/*/th" + + "reads/*/threadReadState}\022\203\001\n\rGetSpaceEve" + + "nt\022$.google.chat.v1.GetSpaceEventRequest" + + "\032\032.google.chat.v1.SpaceEvent\"0\332A\004name\202\323\344" + + "\223\002#\022!/v1/{name=spaces/*/spaceEvents/*}\022\235" + + "\001\n\017ListSpaceEvents\022&.google.chat.v1.List" + + "SpaceEventsRequest\032\'.google.chat.v1.List" + + "SpaceEventsResponse\"9\332A\rparent,filter\202\323\344" + + "\223\002#\022!/v1/{parent=spaces/*}/spaceEvents\032\251" + + "\t\312A\023chat.googleapis.com\322A\217\thttps://www.g" + + "oogleapis.com/auth/chat.admin.delete,htt" + + "ps://www.googleapis.com/auth/chat.admin." + + "memberships,https://www.googleapis.com/a" + + "uth/chat.admin.memberships.readonly,http" + + "s://www.googleapis.com/auth/chat.admin.s" + + "paces,https://www.googleapis.com/auth/ch" + + "at.admin.spaces.readonly,https://www.goo" + + "gleapis.com/auth/chat.bot,https://www.go" + + "ogleapis.com/auth/chat.delete,https://ww" + + "w.googleapis.com/auth/chat.import,https:" + + "//www.googleapis.com/auth/chat.membershi" + + "ps,https://www.googleapis.com/auth/chat." + + "memberships.app,https://www.googleapis.c" + + "om/auth/chat.memberships.readonly,https:" + + "//www.googleapis.com/auth/chat.messages," + + "https://www.googleapis.com/auth/chat.mes" + + "sages.create,https://www.googleapis.com/" + + "auth/chat.messages.reactions,https://www" + + ".googleapis.com/auth/chat.messages.react" + + "ions.create,https://www.googleapis.com/a" + + "uth/chat.messages.reactions.readonly,htt" + + "ps://www.googleapis.com/auth/chat.messag" + + "es.readonly,https://www.googleapis.com/a" + + "uth/chat.spaces,https://www.googleapis.c" + + "om/auth/chat.spaces.create,https://www.g" + + "oogleapis.com/auth/chat.spaces.readonly," + + "https://www.googleapis.com/auth/chat.use" + + "rs.readstate,https://www.googleapis.com/" + + "auth/chat.users.readstate.readonlyB\251\001\n\022c" + + "om.google.chat.v1B\020ChatServiceProtoP\001Z,c" + + "loud.google.com/go/chat/apiv1/chatpb;cha" + + "tpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312" + + "\002\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Ch" + + "at::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -188,6 +196,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.chat.v1.MessageProto.getDescriptor(), com.google.chat.v1.ReactionProto.getDescriptor(), com.google.chat.v1.SpaceProto.getDescriptor(), + com.google.chat.v1.SpaceEventProto.getDescriptor(), com.google.chat.v1.SpaceReadStateProto.getDescriptor(), com.google.chat.v1.SpaceSetupProto.getDescriptor(), com.google.chat.v1.ThreadReadStateProto.getDescriptor(), @@ -208,6 +217,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.chat.v1.MessageProto.getDescriptor(); com.google.chat.v1.ReactionProto.getDescriptor(); com.google.chat.v1.SpaceProto.getDescriptor(); + com.google.chat.v1.SpaceEventProto.getDescriptor(); com.google.chat.v1.SpaceReadStateProto.getDescriptor(); com.google.chat.v1.SpaceSetupProto.getDescriptor(); com.google.chat.v1.ThreadReadStateProto.getDescriptor(); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EventPayloadProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EventPayloadProto.java new file mode 100644 index 000000000000..7e5b15d5ef94 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EventPayloadProto.java @@ -0,0 +1,323 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public final class EventPayloadProto { + private EventPayloadProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MembershipCreatedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_MembershipCreatedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MembershipDeletedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_MembershipDeletedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MembershipUpdatedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_MembershipUpdatedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MembershipBatchCreatedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_MembershipBatchCreatedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MembershipBatchUpdatedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_MembershipBatchUpdatedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MembershipBatchDeletedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_MembershipBatchDeletedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MessageCreatedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_MessageCreatedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MessageUpdatedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_MessageUpdatedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MessageDeletedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_MessageDeletedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MessageBatchCreatedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_MessageBatchCreatedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MessageBatchUpdatedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_MessageBatchUpdatedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_MessageBatchDeletedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_MessageBatchDeletedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_SpaceUpdatedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_SpaceUpdatedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_SpaceBatchUpdatedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_SpaceBatchUpdatedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_ReactionCreatedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_ReactionCreatedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_ReactionDeletedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_ReactionDeletedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_ReactionBatchCreatedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_ReactionBatchCreatedEventData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_ReactionBatchDeletedEventData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_ReactionBatchDeletedEventData_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\"google/chat/v1/event_payload.proto\022\016go" + + "ogle.chat.v1\032\037google/api/field_behavior." + + "proto\032\037google/chat/v1/membership.proto\032\034" + + "google/chat/v1/message.proto\032\035google/cha" + + "t/v1/reaction.proto\032\032google/chat/v1/spac" + + "e.proto\"L\n\032MembershipCreatedEventData\022.\n" + + "\nmembership\030\001 \001(\0132\032.google.chat.v1.Membe" + + "rship\"L\n\032MembershipDeletedEventData\022.\n\nm" + + "embership\030\001 \001(\0132\032.google.chat.v1.Members" + + "hip\"L\n\032MembershipUpdatedEventData\022.\n\nmem" + + "bership\030\001 \001(\0132\032.google.chat.v1.Membershi" + + "p\"b\n\037MembershipBatchCreatedEventData\022?\n\013" + + "memberships\030\001 \003(\0132*.google.chat.v1.Membe" + + "rshipCreatedEventData\"b\n\037MembershipBatch" + + "UpdatedEventData\022?\n\013memberships\030\001 \003(\0132*." + + "google.chat.v1.MembershipUpdatedEventDat" + + "a\"b\n\037MembershipBatchDeletedEventData\022?\n\013" + + "memberships\030\001 \003(\0132*.google.chat.v1.Membe" + + "rshipDeletedEventData\"C\n\027MessageCreatedE" + + "ventData\022(\n\007message\030\001 \001(\0132\027.google.chat." + + "v1.Message\"C\n\027MessageUpdatedEventData\022(\n" + + "\007message\030\001 \001(\0132\027.google.chat.v1.Message\"" + + "C\n\027MessageDeletedEventData\022(\n\007message\030\001 " + + "\001(\0132\027.google.chat.v1.Message\"Y\n\034MessageB" + + "atchCreatedEventData\0229\n\010messages\030\001 \003(\0132\'" + + ".google.chat.v1.MessageCreatedEventData\"" + + "Y\n\034MessageBatchUpdatedEventData\0229\n\010messa" + + "ges\030\001 \003(\0132\'.google.chat.v1.MessageUpdate" + + "dEventData\"Y\n\034MessageBatchDeletedEventDa" + + "ta\0229\n\010messages\030\001 \003(\0132\'.google.chat.v1.Me" + + "ssageDeletedEventData\"=\n\025SpaceUpdatedEve" + + "ntData\022$\n\005space\030\001 \001(\0132\025.google.chat.v1.S" + + "pace\"S\n\032SpaceBatchUpdatedEventData\0225\n\006sp" + + "aces\030\001 \003(\0132%.google.chat.v1.SpaceUpdated" + + "EventData\"F\n\030ReactionCreatedEventData\022*\n" + + "\010reaction\030\001 \001(\0132\030.google.chat.v1.Reactio" + + "n\"F\n\030ReactionDeletedEventData\022*\n\010reactio" + + "n\030\001 \001(\0132\030.google.chat.v1.Reaction\"\\\n\035Rea" + + "ctionBatchCreatedEventData\022;\n\treactions\030" + + "\001 \003(\0132(.google.chat.v1.ReactionCreatedEv" + + "entData\"\\\n\035ReactionBatchDeletedEventData" + + "\022;\n\treactions\030\001 \003(\0132(.google.chat.v1.Rea" + + "ctionDeletedEventDataB\252\001\n\022com.google.cha" + + "t.v1B\021EventPayloadProtoP\001Z,cloud.google." + + "com/go/chat/apiv1/chatpb;chatpb\242\002\013DYNAPI" + + "Proto\252\002\023Google.Apps.Chat.V1\312\002\023Google\\App" + + "s\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006prot" + + "o3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.chat.v1.MembershipProto.getDescriptor(), + com.google.chat.v1.MessageProto.getDescriptor(), + com.google.chat.v1.ReactionProto.getDescriptor(), + com.google.chat.v1.SpaceProto.getDescriptor(), + }); + internal_static_google_chat_v1_MembershipCreatedEventData_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_chat_v1_MembershipCreatedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_MembershipCreatedEventData_descriptor, + new java.lang.String[] { + "Membership", + }); + internal_static_google_chat_v1_MembershipDeletedEventData_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_chat_v1_MembershipDeletedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_MembershipDeletedEventData_descriptor, + new java.lang.String[] { + "Membership", + }); + internal_static_google_chat_v1_MembershipUpdatedEventData_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_chat_v1_MembershipUpdatedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_MembershipUpdatedEventData_descriptor, + new java.lang.String[] { + "Membership", + }); + internal_static_google_chat_v1_MembershipBatchCreatedEventData_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_chat_v1_MembershipBatchCreatedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_MembershipBatchCreatedEventData_descriptor, + new java.lang.String[] { + "Memberships", + }); + internal_static_google_chat_v1_MembershipBatchUpdatedEventData_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_chat_v1_MembershipBatchUpdatedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_MembershipBatchUpdatedEventData_descriptor, + new java.lang.String[] { + "Memberships", + }); + internal_static_google_chat_v1_MembershipBatchDeletedEventData_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_chat_v1_MembershipBatchDeletedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_MembershipBatchDeletedEventData_descriptor, + new java.lang.String[] { + "Memberships", + }); + internal_static_google_chat_v1_MessageCreatedEventData_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_chat_v1_MessageCreatedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_MessageCreatedEventData_descriptor, + new java.lang.String[] { + "Message", + }); + internal_static_google_chat_v1_MessageUpdatedEventData_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_chat_v1_MessageUpdatedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_MessageUpdatedEventData_descriptor, + new java.lang.String[] { + "Message", + }); + internal_static_google_chat_v1_MessageDeletedEventData_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_chat_v1_MessageDeletedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_MessageDeletedEventData_descriptor, + new java.lang.String[] { + "Message", + }); + internal_static_google_chat_v1_MessageBatchCreatedEventData_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_chat_v1_MessageBatchCreatedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_MessageBatchCreatedEventData_descriptor, + new java.lang.String[] { + "Messages", + }); + internal_static_google_chat_v1_MessageBatchUpdatedEventData_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_chat_v1_MessageBatchUpdatedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_MessageBatchUpdatedEventData_descriptor, + new java.lang.String[] { + "Messages", + }); + internal_static_google_chat_v1_MessageBatchDeletedEventData_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_chat_v1_MessageBatchDeletedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_MessageBatchDeletedEventData_descriptor, + new java.lang.String[] { + "Messages", + }); + internal_static_google_chat_v1_SpaceUpdatedEventData_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_chat_v1_SpaceUpdatedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_SpaceUpdatedEventData_descriptor, + new java.lang.String[] { + "Space", + }); + internal_static_google_chat_v1_SpaceBatchUpdatedEventData_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_chat_v1_SpaceBatchUpdatedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_SpaceBatchUpdatedEventData_descriptor, + new java.lang.String[] { + "Spaces", + }); + internal_static_google_chat_v1_ReactionCreatedEventData_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_chat_v1_ReactionCreatedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_ReactionCreatedEventData_descriptor, + new java.lang.String[] { + "Reaction", + }); + internal_static_google_chat_v1_ReactionDeletedEventData_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_chat_v1_ReactionDeletedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_ReactionDeletedEventData_descriptor, + new java.lang.String[] { + "Reaction", + }); + internal_static_google_chat_v1_ReactionBatchCreatedEventData_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_chat_v1_ReactionBatchCreatedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_ReactionBatchCreatedEventData_descriptor, + new java.lang.String[] { + "Reactions", + }); + internal_static_google_chat_v1_ReactionBatchDeletedEventData_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_chat_v1_ReactionBatchDeletedEventData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_ReactionBatchDeletedEventData_descriptor, + new java.lang.String[] { + "Reactions", + }); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.chat.v1.MembershipProto.getDescriptor(); + com.google.chat.v1.MessageProto.getDescriptor(); + com.google.chat.v1.ReactionProto.getDescriptor(); + com.google.chat.v1.SpaceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetSpaceEventRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetSpaceEventRequest.java new file mode 100644 index 000000000000..846c24274af3 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetSpaceEventRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/space_event.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Request message for getting a space event.
        + * 
        + * + * Protobuf type {@code google.chat.v1.GetSpaceEventRequest} + */ +public final class GetSpaceEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.GetSpaceEventRequest) + GetSpaceEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSpaceEventRequest.newBuilder() to construct. + private GetSpaceEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSpaceEventRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSpaceEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_GetSpaceEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_GetSpaceEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.GetSpaceEventRequest.class, + com.google.chat.v1.GetSpaceEventRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
        +   * Required. The resource name of the space event.
        +   *
        +   * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
        +   * Required. The resource name of the space event.
        +   *
        +   * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.GetSpaceEventRequest)) { + return super.equals(obj); + } + com.google.chat.v1.GetSpaceEventRequest other = (com.google.chat.v1.GetSpaceEventRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.GetSpaceEventRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.GetSpaceEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.GetSpaceEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.GetSpaceEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.GetSpaceEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.GetSpaceEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.GetSpaceEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.GetSpaceEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.GetSpaceEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.GetSpaceEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.GetSpaceEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.GetSpaceEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.GetSpaceEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Request message for getting a space event.
        +   * 
        + * + * Protobuf type {@code google.chat.v1.GetSpaceEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.GetSpaceEventRequest) + com.google.chat.v1.GetSpaceEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_GetSpaceEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_GetSpaceEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.GetSpaceEventRequest.class, + com.google.chat.v1.GetSpaceEventRequest.Builder.class); + } + + // Construct using com.google.chat.v1.GetSpaceEventRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_GetSpaceEventRequest_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.GetSpaceEventRequest getDefaultInstanceForType() { + return com.google.chat.v1.GetSpaceEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.GetSpaceEventRequest build() { + com.google.chat.v1.GetSpaceEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.GetSpaceEventRequest buildPartial() { + com.google.chat.v1.GetSpaceEventRequest result = + new com.google.chat.v1.GetSpaceEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.GetSpaceEventRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.GetSpaceEventRequest) { + return mergeFrom((com.google.chat.v1.GetSpaceEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.GetSpaceEventRequest other) { + if (other == com.google.chat.v1.GetSpaceEventRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
        +     * Required. The resource name of the space event.
        +     *
        +     * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Required. The resource name of the space event.
        +     *
        +     * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Required. The resource name of the space event.
        +     *
        +     * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. The resource name of the space event.
        +     *
        +     * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. The resource name of the space event.
        +     *
        +     * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.GetSpaceEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.GetSpaceEventRequest) + private static final com.google.chat.v1.GetSpaceEventRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.GetSpaceEventRequest(); + } + + public static com.google.chat.v1.GetSpaceEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpaceEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.GetSpaceEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetSpaceEventRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetSpaceEventRequestOrBuilder.java new file mode 100644 index 000000000000..610d6961e0a9 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetSpaceEventRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/space_event.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface GetSpaceEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.GetSpaceEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The resource name of the space event.
        +   *
        +   * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
        +   * Required. The resource name of the space event.
        +   *
        +   * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsRequest.java new file mode 100644 index 000000000000..0cd1b63695b7 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsRequest.java @@ -0,0 +1,1527 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/space_event.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Request message for listing space events.
        + * 
        + * + * Protobuf type {@code google.chat.v1.ListSpaceEventsRequest} + */ +public final class ListSpaceEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.ListSpaceEventsRequest) + ListSpaceEventsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSpaceEventsRequest.newBuilder() to construct. + private ListSpaceEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSpaceEventsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSpaceEventsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_ListSpaceEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_ListSpaceEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ListSpaceEventsRequest.class, + com.google.chat.v1.ListSpaceEventsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
        +   * Required. Resource name of the [Google Chat
        +   * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
        +   * where the events occurred.
        +   *
        +   * Format: `spaces/{space}`.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
        +   * Required. Resource name of the [Google Chat
        +   * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
        +   * where the events occurred.
        +   *
        +   * Format: `spaces/{space}`.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 5; + private int pageSize_ = 0; + /** + * + * + *
        +   * Optional. The maximum number of space events returned. The service might
        +   * return fewer than this value.
        +   *
        +   * Negative values return an `INVALID_ARGUMENT` error.
        +   * 
        + * + * int32 page_size = 5; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
        +   * A page token, received from a previous list space events call. Provide this
        +   * to retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to list space events must
        +   * match the call that provided the page token. Passing different values to
        +   * the other parameters might lead to unexpected results.
        +   * 
        + * + * string page_token = 6; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
        +   * A page token, received from a previous list space events call. Provide this
        +   * to retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to list space events must
        +   * match the call that provided the page token. Passing different values to
        +   * the other parameters might lead to unexpected results.
        +   * 
        + * + * string page_token = 6; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
        +   * Required. A query filter.
        +   *
        +   * You must specify at least one event type (`event_type`)
        +   * using the has `:` operator. To filter by multiple event types, use the `OR`
        +   * operator. Omit batch event types in your filter. The request automatically
        +   * returns any related batch events. For example, if you filter by new
        +   * reactions
        +   * (`google.workspace.chat.reaction.v1.created`), the server also returns
        +   * batch new reactions events
        +   * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported
        +   * event types, see the [`SpaceEvents` reference
        +   * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type).
        +   *
        +   * Optionally, you can also filter by start time (`start_time`) and
        +   * end time (`end_time`):
        +   *
        +   * * `start_time`: Exclusive timestamp from which to start listing space
        +   * events.
        +   *  You can list events that occurred up to 28 days ago. If unspecified, lists
        +   *  space events from the past 28 days.
        +   * * `end_time`: Inclusive timestamp until which space events are listed.
        +   *  If unspecified, lists events up to the time of the request.
        +   *
        +   * To specify a start or end time, use the equals `=` operator and format in
        +   * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both
        +   * `start_time` and `end_time`, use the `AND` operator.
        +   *
        +   * For example, the following queries are valid:
        +   *
        +   * ```
        +   * start_time="2023-08-23T19:20:33+00:00" AND
        +   * end_time="2023-08-23T19:21:54+00:00"
        +   * ```
        +   * ```
        +   * start_time="2023-08-23T19:20:33+00:00" AND
        +   * (event_types:"google.workspace.chat.space.v1.updated" OR
        +   * event_types:"google.workspace.chat.message.v1.created")
        +   * ```
        +   *
        +   * The following queries are invalid:
        +   *
        +   * ```
        +   * start_time="2023-08-23T19:20:33+00:00" OR
        +   * end_time="2023-08-23T19:21:54+00:00"
        +   * ```
        +   * ```
        +   * event_types:"google.workspace.chat.space.v1.updated" AND
        +   * event_types:"google.workspace.chat.message.v1.created"
        +   * ```
        +   *
        +   * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
        +   * error.
        +   * 
        + * + * string filter = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
        +   * Required. A query filter.
        +   *
        +   * You must specify at least one event type (`event_type`)
        +   * using the has `:` operator. To filter by multiple event types, use the `OR`
        +   * operator. Omit batch event types in your filter. The request automatically
        +   * returns any related batch events. For example, if you filter by new
        +   * reactions
        +   * (`google.workspace.chat.reaction.v1.created`), the server also returns
        +   * batch new reactions events
        +   * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported
        +   * event types, see the [`SpaceEvents` reference
        +   * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type).
        +   *
        +   * Optionally, you can also filter by start time (`start_time`) and
        +   * end time (`end_time`):
        +   *
        +   * * `start_time`: Exclusive timestamp from which to start listing space
        +   * events.
        +   *  You can list events that occurred up to 28 days ago. If unspecified, lists
        +   *  space events from the past 28 days.
        +   * * `end_time`: Inclusive timestamp until which space events are listed.
        +   *  If unspecified, lists events up to the time of the request.
        +   *
        +   * To specify a start or end time, use the equals `=` operator and format in
        +   * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both
        +   * `start_time` and `end_time`, use the `AND` operator.
        +   *
        +   * For example, the following queries are valid:
        +   *
        +   * ```
        +   * start_time="2023-08-23T19:20:33+00:00" AND
        +   * end_time="2023-08-23T19:21:54+00:00"
        +   * ```
        +   * ```
        +   * start_time="2023-08-23T19:20:33+00:00" AND
        +   * (event_types:"google.workspace.chat.space.v1.updated" OR
        +   * event_types:"google.workspace.chat.message.v1.created")
        +   * ```
        +   *
        +   * The following queries are invalid:
        +   *
        +   * ```
        +   * start_time="2023-08-23T19:20:33+00:00" OR
        +   * end_time="2023-08-23T19:21:54+00:00"
        +   * ```
        +   * ```
        +   * event_types:"google.workspace.chat.space.v1.updated" AND
        +   * event_types:"google.workspace.chat.message.v1.created"
        +   * ```
        +   *
        +   * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
        +   * error.
        +   * 
        + * + * string filter = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(5, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.ListSpaceEventsRequest)) { + return super.equals(obj); + } + com.google.chat.v1.ListSpaceEventsRequest other = + (com.google.chat.v1.ListSpaceEventsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.ListSpaceEventsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ListSpaceEventsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ListSpaceEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ListSpaceEventsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ListSpaceEventsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ListSpaceEventsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ListSpaceEventsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ListSpaceEventsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ListSpaceEventsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ListSpaceEventsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ListSpaceEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ListSpaceEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.ListSpaceEventsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Request message for listing space events.
        +   * 
        + * + * Protobuf type {@code google.chat.v1.ListSpaceEventsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.ListSpaceEventsRequest) + com.google.chat.v1.ListSpaceEventsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_ListSpaceEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_ListSpaceEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ListSpaceEventsRequest.class, + com.google.chat.v1.ListSpaceEventsRequest.Builder.class); + } + + // Construct using com.google.chat.v1.ListSpaceEventsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_ListSpaceEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.ListSpaceEventsRequest getDefaultInstanceForType() { + return com.google.chat.v1.ListSpaceEventsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.ListSpaceEventsRequest build() { + com.google.chat.v1.ListSpaceEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.ListSpaceEventsRequest buildPartial() { + com.google.chat.v1.ListSpaceEventsRequest result = + new com.google.chat.v1.ListSpaceEventsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.ListSpaceEventsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.ListSpaceEventsRequest) { + return mergeFrom((com.google.chat.v1.ListSpaceEventsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.ListSpaceEventsRequest other) { + if (other == com.google.chat.v1.ListSpaceEventsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 40: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 40 + case 50: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 66: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
        +     * Required. Resource name of the [Google Chat
        +     * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
        +     * where the events occurred.
        +     *
        +     * Format: `spaces/{space}`.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Required. Resource name of the [Google Chat
        +     * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
        +     * where the events occurred.
        +     *
        +     * Format: `spaces/{space}`.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Required. Resource name of the [Google Chat
        +     * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
        +     * where the events occurred.
        +     *
        +     * Format: `spaces/{space}`.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Resource name of the [Google Chat
        +     * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
        +     * where the events occurred.
        +     *
        +     * Format: `spaces/{space}`.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Resource name of the [Google Chat
        +     * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
        +     * where the events occurred.
        +     *
        +     * Format: `spaces/{space}`.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
        +     * Optional. The maximum number of space events returned. The service might
        +     * return fewer than this value.
        +     *
        +     * Negative values return an `INVALID_ARGUMENT` error.
        +     * 
        + * + * int32 page_size = 5; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
        +     * Optional. The maximum number of space events returned. The service might
        +     * return fewer than this value.
        +     *
        +     * Negative values return an `INVALID_ARGUMENT` error.
        +     * 
        + * + * int32 page_size = 5; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. The maximum number of space events returned. The service might
        +     * return fewer than this value.
        +     *
        +     * Negative values return an `INVALID_ARGUMENT` error.
        +     * 
        + * + * int32 page_size = 5; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
        +     * A page token, received from a previous list space events call. Provide this
        +     * to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to list space events must
        +     * match the call that provided the page token. Passing different values to
        +     * the other parameters might lead to unexpected results.
        +     * 
        + * + * string page_token = 6; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * A page token, received from a previous list space events call. Provide this
        +     * to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to list space events must
        +     * match the call that provided the page token. Passing different values to
        +     * the other parameters might lead to unexpected results.
        +     * 
        + * + * string page_token = 6; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * A page token, received from a previous list space events call. Provide this
        +     * to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to list space events must
        +     * match the call that provided the page token. Passing different values to
        +     * the other parameters might lead to unexpected results.
        +     * 
        + * + * string page_token = 6; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * A page token, received from a previous list space events call. Provide this
        +     * to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to list space events must
        +     * match the call that provided the page token. Passing different values to
        +     * the other parameters might lead to unexpected results.
        +     * 
        + * + * string page_token = 6; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +     * A page token, received from a previous list space events call. Provide this
        +     * to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to list space events must
        +     * match the call that provided the page token. Passing different values to
        +     * the other parameters might lead to unexpected results.
        +     * 
        + * + * string page_token = 6; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
        +     * Required. A query filter.
        +     *
        +     * You must specify at least one event type (`event_type`)
        +     * using the has `:` operator. To filter by multiple event types, use the `OR`
        +     * operator. Omit batch event types in your filter. The request automatically
        +     * returns any related batch events. For example, if you filter by new
        +     * reactions
        +     * (`google.workspace.chat.reaction.v1.created`), the server also returns
        +     * batch new reactions events
        +     * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported
        +     * event types, see the [`SpaceEvents` reference
        +     * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type).
        +     *
        +     * Optionally, you can also filter by start time (`start_time`) and
        +     * end time (`end_time`):
        +     *
        +     * * `start_time`: Exclusive timestamp from which to start listing space
        +     * events.
        +     *  You can list events that occurred up to 28 days ago. If unspecified, lists
        +     *  space events from the past 28 days.
        +     * * `end_time`: Inclusive timestamp until which space events are listed.
        +     *  If unspecified, lists events up to the time of the request.
        +     *
        +     * To specify a start or end time, use the equals `=` operator and format in
        +     * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both
        +     * `start_time` and `end_time`, use the `AND` operator.
        +     *
        +     * For example, the following queries are valid:
        +     *
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" AND
        +     * end_time="2023-08-23T19:21:54+00:00"
        +     * ```
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" AND
        +     * (event_types:"google.workspace.chat.space.v1.updated" OR
        +     * event_types:"google.workspace.chat.message.v1.created")
        +     * ```
        +     *
        +     * The following queries are invalid:
        +     *
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" OR
        +     * end_time="2023-08-23T19:21:54+00:00"
        +     * ```
        +     * ```
        +     * event_types:"google.workspace.chat.space.v1.updated" AND
        +     * event_types:"google.workspace.chat.message.v1.created"
        +     * ```
        +     *
        +     * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
        +     * error.
        +     * 
        + * + * string filter = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Required. A query filter.
        +     *
        +     * You must specify at least one event type (`event_type`)
        +     * using the has `:` operator. To filter by multiple event types, use the `OR`
        +     * operator. Omit batch event types in your filter. The request automatically
        +     * returns any related batch events. For example, if you filter by new
        +     * reactions
        +     * (`google.workspace.chat.reaction.v1.created`), the server also returns
        +     * batch new reactions events
        +     * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported
        +     * event types, see the [`SpaceEvents` reference
        +     * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type).
        +     *
        +     * Optionally, you can also filter by start time (`start_time`) and
        +     * end time (`end_time`):
        +     *
        +     * * `start_time`: Exclusive timestamp from which to start listing space
        +     * events.
        +     *  You can list events that occurred up to 28 days ago. If unspecified, lists
        +     *  space events from the past 28 days.
        +     * * `end_time`: Inclusive timestamp until which space events are listed.
        +     *  If unspecified, lists events up to the time of the request.
        +     *
        +     * To specify a start or end time, use the equals `=` operator and format in
        +     * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both
        +     * `start_time` and `end_time`, use the `AND` operator.
        +     *
        +     * For example, the following queries are valid:
        +     *
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" AND
        +     * end_time="2023-08-23T19:21:54+00:00"
        +     * ```
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" AND
        +     * (event_types:"google.workspace.chat.space.v1.updated" OR
        +     * event_types:"google.workspace.chat.message.v1.created")
        +     * ```
        +     *
        +     * The following queries are invalid:
        +     *
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" OR
        +     * end_time="2023-08-23T19:21:54+00:00"
        +     * ```
        +     * ```
        +     * event_types:"google.workspace.chat.space.v1.updated" AND
        +     * event_types:"google.workspace.chat.message.v1.created"
        +     * ```
        +     *
        +     * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
        +     * error.
        +     * 
        + * + * string filter = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Required. A query filter.
        +     *
        +     * You must specify at least one event type (`event_type`)
        +     * using the has `:` operator. To filter by multiple event types, use the `OR`
        +     * operator. Omit batch event types in your filter. The request automatically
        +     * returns any related batch events. For example, if you filter by new
        +     * reactions
        +     * (`google.workspace.chat.reaction.v1.created`), the server also returns
        +     * batch new reactions events
        +     * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported
        +     * event types, see the [`SpaceEvents` reference
        +     * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type).
        +     *
        +     * Optionally, you can also filter by start time (`start_time`) and
        +     * end time (`end_time`):
        +     *
        +     * * `start_time`: Exclusive timestamp from which to start listing space
        +     * events.
        +     *  You can list events that occurred up to 28 days ago. If unspecified, lists
        +     *  space events from the past 28 days.
        +     * * `end_time`: Inclusive timestamp until which space events are listed.
        +     *  If unspecified, lists events up to the time of the request.
        +     *
        +     * To specify a start or end time, use the equals `=` operator and format in
        +     * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both
        +     * `start_time` and `end_time`, use the `AND` operator.
        +     *
        +     * For example, the following queries are valid:
        +     *
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" AND
        +     * end_time="2023-08-23T19:21:54+00:00"
        +     * ```
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" AND
        +     * (event_types:"google.workspace.chat.space.v1.updated" OR
        +     * event_types:"google.workspace.chat.message.v1.created")
        +     * ```
        +     *
        +     * The following queries are invalid:
        +     *
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" OR
        +     * end_time="2023-08-23T19:21:54+00:00"
        +     * ```
        +     * ```
        +     * event_types:"google.workspace.chat.space.v1.updated" AND
        +     * event_types:"google.workspace.chat.message.v1.created"
        +     * ```
        +     *
        +     * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
        +     * error.
        +     * 
        + * + * string filter = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. A query filter.
        +     *
        +     * You must specify at least one event type (`event_type`)
        +     * using the has `:` operator. To filter by multiple event types, use the `OR`
        +     * operator. Omit batch event types in your filter. The request automatically
        +     * returns any related batch events. For example, if you filter by new
        +     * reactions
        +     * (`google.workspace.chat.reaction.v1.created`), the server also returns
        +     * batch new reactions events
        +     * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported
        +     * event types, see the [`SpaceEvents` reference
        +     * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type).
        +     *
        +     * Optionally, you can also filter by start time (`start_time`) and
        +     * end time (`end_time`):
        +     *
        +     * * `start_time`: Exclusive timestamp from which to start listing space
        +     * events.
        +     *  You can list events that occurred up to 28 days ago. If unspecified, lists
        +     *  space events from the past 28 days.
        +     * * `end_time`: Inclusive timestamp until which space events are listed.
        +     *  If unspecified, lists events up to the time of the request.
        +     *
        +     * To specify a start or end time, use the equals `=` operator and format in
        +     * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both
        +     * `start_time` and `end_time`, use the `AND` operator.
        +     *
        +     * For example, the following queries are valid:
        +     *
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" AND
        +     * end_time="2023-08-23T19:21:54+00:00"
        +     * ```
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" AND
        +     * (event_types:"google.workspace.chat.space.v1.updated" OR
        +     * event_types:"google.workspace.chat.message.v1.created")
        +     * ```
        +     *
        +     * The following queries are invalid:
        +     *
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" OR
        +     * end_time="2023-08-23T19:21:54+00:00"
        +     * ```
        +     * ```
        +     * event_types:"google.workspace.chat.space.v1.updated" AND
        +     * event_types:"google.workspace.chat.message.v1.created"
        +     * ```
        +     *
        +     * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
        +     * error.
        +     * 
        + * + * string filter = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. A query filter.
        +     *
        +     * You must specify at least one event type (`event_type`)
        +     * using the has `:` operator. To filter by multiple event types, use the `OR`
        +     * operator. Omit batch event types in your filter. The request automatically
        +     * returns any related batch events. For example, if you filter by new
        +     * reactions
        +     * (`google.workspace.chat.reaction.v1.created`), the server also returns
        +     * batch new reactions events
        +     * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported
        +     * event types, see the [`SpaceEvents` reference
        +     * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type).
        +     *
        +     * Optionally, you can also filter by start time (`start_time`) and
        +     * end time (`end_time`):
        +     *
        +     * * `start_time`: Exclusive timestamp from which to start listing space
        +     * events.
        +     *  You can list events that occurred up to 28 days ago. If unspecified, lists
        +     *  space events from the past 28 days.
        +     * * `end_time`: Inclusive timestamp until which space events are listed.
        +     *  If unspecified, lists events up to the time of the request.
        +     *
        +     * To specify a start or end time, use the equals `=` operator and format in
        +     * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both
        +     * `start_time` and `end_time`, use the `AND` operator.
        +     *
        +     * For example, the following queries are valid:
        +     *
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" AND
        +     * end_time="2023-08-23T19:21:54+00:00"
        +     * ```
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" AND
        +     * (event_types:"google.workspace.chat.space.v1.updated" OR
        +     * event_types:"google.workspace.chat.message.v1.created")
        +     * ```
        +     *
        +     * The following queries are invalid:
        +     *
        +     * ```
        +     * start_time="2023-08-23T19:20:33+00:00" OR
        +     * end_time="2023-08-23T19:21:54+00:00"
        +     * ```
        +     * ```
        +     * event_types:"google.workspace.chat.space.v1.updated" AND
        +     * event_types:"google.workspace.chat.message.v1.created"
        +     * ```
        +     *
        +     * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
        +     * error.
        +     * 
        + * + * string filter = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.ListSpaceEventsRequest) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.ListSpaceEventsRequest) + private static final com.google.chat.v1.ListSpaceEventsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.ListSpaceEventsRequest(); + } + + public static com.google.chat.v1.ListSpaceEventsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpaceEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.ListSpaceEventsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsRequestOrBuilder.java new file mode 100644 index 000000000000..547822bf9882 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsRequestOrBuilder.java @@ -0,0 +1,241 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/space_event.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface ListSpaceEventsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.ListSpaceEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. Resource name of the [Google Chat
        +   * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
        +   * where the events occurred.
        +   *
        +   * Format: `spaces/{space}`.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
        +   * Required. Resource name of the [Google Chat
        +   * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
        +   * where the events occurred.
        +   *
        +   * Format: `spaces/{space}`.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
        +   * Optional. The maximum number of space events returned. The service might
        +   * return fewer than this value.
        +   *
        +   * Negative values return an `INVALID_ARGUMENT` error.
        +   * 
        + * + * int32 page_size = 5; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
        +   * A page token, received from a previous list space events call. Provide this
        +   * to retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to list space events must
        +   * match the call that provided the page token. Passing different values to
        +   * the other parameters might lead to unexpected results.
        +   * 
        + * + * string page_token = 6; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
        +   * A page token, received from a previous list space events call. Provide this
        +   * to retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to list space events must
        +   * match the call that provided the page token. Passing different values to
        +   * the other parameters might lead to unexpected results.
        +   * 
        + * + * string page_token = 6; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
        +   * Required. A query filter.
        +   *
        +   * You must specify at least one event type (`event_type`)
        +   * using the has `:` operator. To filter by multiple event types, use the `OR`
        +   * operator. Omit batch event types in your filter. The request automatically
        +   * returns any related batch events. For example, if you filter by new
        +   * reactions
        +   * (`google.workspace.chat.reaction.v1.created`), the server also returns
        +   * batch new reactions events
        +   * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported
        +   * event types, see the [`SpaceEvents` reference
        +   * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type).
        +   *
        +   * Optionally, you can also filter by start time (`start_time`) and
        +   * end time (`end_time`):
        +   *
        +   * * `start_time`: Exclusive timestamp from which to start listing space
        +   * events.
        +   *  You can list events that occurred up to 28 days ago. If unspecified, lists
        +   *  space events from the past 28 days.
        +   * * `end_time`: Inclusive timestamp until which space events are listed.
        +   *  If unspecified, lists events up to the time of the request.
        +   *
        +   * To specify a start or end time, use the equals `=` operator and format in
        +   * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both
        +   * `start_time` and `end_time`, use the `AND` operator.
        +   *
        +   * For example, the following queries are valid:
        +   *
        +   * ```
        +   * start_time="2023-08-23T19:20:33+00:00" AND
        +   * end_time="2023-08-23T19:21:54+00:00"
        +   * ```
        +   * ```
        +   * start_time="2023-08-23T19:20:33+00:00" AND
        +   * (event_types:"google.workspace.chat.space.v1.updated" OR
        +   * event_types:"google.workspace.chat.message.v1.created")
        +   * ```
        +   *
        +   * The following queries are invalid:
        +   *
        +   * ```
        +   * start_time="2023-08-23T19:20:33+00:00" OR
        +   * end_time="2023-08-23T19:21:54+00:00"
        +   * ```
        +   * ```
        +   * event_types:"google.workspace.chat.space.v1.updated" AND
        +   * event_types:"google.workspace.chat.message.v1.created"
        +   * ```
        +   *
        +   * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
        +   * error.
        +   * 
        + * + * string filter = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
        +   * Required. A query filter.
        +   *
        +   * You must specify at least one event type (`event_type`)
        +   * using the has `:` operator. To filter by multiple event types, use the `OR`
        +   * operator. Omit batch event types in your filter. The request automatically
        +   * returns any related batch events. For example, if you filter by new
        +   * reactions
        +   * (`google.workspace.chat.reaction.v1.created`), the server also returns
        +   * batch new reactions events
        +   * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported
        +   * event types, see the [`SpaceEvents` reference
        +   * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type).
        +   *
        +   * Optionally, you can also filter by start time (`start_time`) and
        +   * end time (`end_time`):
        +   *
        +   * * `start_time`: Exclusive timestamp from which to start listing space
        +   * events.
        +   *  You can list events that occurred up to 28 days ago. If unspecified, lists
        +   *  space events from the past 28 days.
        +   * * `end_time`: Inclusive timestamp until which space events are listed.
        +   *  If unspecified, lists events up to the time of the request.
        +   *
        +   * To specify a start or end time, use the equals `=` operator and format in
        +   * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both
        +   * `start_time` and `end_time`, use the `AND` operator.
        +   *
        +   * For example, the following queries are valid:
        +   *
        +   * ```
        +   * start_time="2023-08-23T19:20:33+00:00" AND
        +   * end_time="2023-08-23T19:21:54+00:00"
        +   * ```
        +   * ```
        +   * start_time="2023-08-23T19:20:33+00:00" AND
        +   * (event_types:"google.workspace.chat.space.v1.updated" OR
        +   * event_types:"google.workspace.chat.message.v1.created")
        +   * ```
        +   *
        +   * The following queries are invalid:
        +   *
        +   * ```
        +   * start_time="2023-08-23T19:20:33+00:00" OR
        +   * end_time="2023-08-23T19:21:54+00:00"
        +   * ```
        +   * ```
        +   * event_types:"google.workspace.chat.space.v1.updated" AND
        +   * event_types:"google.workspace.chat.message.v1.created"
        +   * ```
        +   *
        +   * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
        +   * error.
        +   * 
        + * + * string filter = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsResponse.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsResponse.java new file mode 100644 index 000000000000..d26a23825b79 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsResponse.java @@ -0,0 +1,1121 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/space_event.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Response message for listing space events.
        + * 
        + * + * Protobuf type {@code google.chat.v1.ListSpaceEventsResponse} + */ +public final class ListSpaceEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.ListSpaceEventsResponse) + ListSpaceEventsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSpaceEventsResponse.newBuilder() to construct. + private ListSpaceEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSpaceEventsResponse() { + spaceEvents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSpaceEventsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_ListSpaceEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_ListSpaceEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ListSpaceEventsResponse.class, + com.google.chat.v1.ListSpaceEventsResponse.Builder.class); + } + + public static final int SPACE_EVENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List spaceEvents_; + /** + * + * + *
        +   * Results are returned in chronological order (oldest event first).
        +   * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + @java.lang.Override + public java.util.List getSpaceEventsList() { + return spaceEvents_; + } + /** + * + * + *
        +   * Results are returned in chronological order (oldest event first).
        +   * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + @java.lang.Override + public java.util.List + getSpaceEventsOrBuilderList() { + return spaceEvents_; + } + /** + * + * + *
        +   * Results are returned in chronological order (oldest event first).
        +   * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + @java.lang.Override + public int getSpaceEventsCount() { + return spaceEvents_.size(); + } + /** + * + * + *
        +   * Results are returned in chronological order (oldest event first).
        +   * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + @java.lang.Override + public com.google.chat.v1.SpaceEvent getSpaceEvents(int index) { + return spaceEvents_.get(index); + } + /** + * + * + *
        +   * Results are returned in chronological order (oldest event first).
        +   * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + @java.lang.Override + public com.google.chat.v1.SpaceEventOrBuilder getSpaceEventsOrBuilder(int index) { + return spaceEvents_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
        +   * Continuation token used to fetch more events.
        +   * If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
        +   * Continuation token used to fetch more events.
        +   * If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < spaceEvents_.size(); i++) { + output.writeMessage(1, spaceEvents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < spaceEvents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spaceEvents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.ListSpaceEventsResponse)) { + return super.equals(obj); + } + com.google.chat.v1.ListSpaceEventsResponse other = + (com.google.chat.v1.ListSpaceEventsResponse) obj; + + if (!getSpaceEventsList().equals(other.getSpaceEventsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSpaceEventsCount() > 0) { + hash = (37 * hash) + SPACE_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getSpaceEventsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.ListSpaceEventsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ListSpaceEventsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ListSpaceEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ListSpaceEventsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ListSpaceEventsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ListSpaceEventsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ListSpaceEventsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ListSpaceEventsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ListSpaceEventsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ListSpaceEventsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ListSpaceEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ListSpaceEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.ListSpaceEventsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Response message for listing space events.
        +   * 
        + * + * Protobuf type {@code google.chat.v1.ListSpaceEventsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.ListSpaceEventsResponse) + com.google.chat.v1.ListSpaceEventsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_ListSpaceEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_ListSpaceEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ListSpaceEventsResponse.class, + com.google.chat.v1.ListSpaceEventsResponse.Builder.class); + } + + // Construct using com.google.chat.v1.ListSpaceEventsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (spaceEventsBuilder_ == null) { + spaceEvents_ = java.util.Collections.emptyList(); + } else { + spaceEvents_ = null; + spaceEventsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_ListSpaceEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.ListSpaceEventsResponse getDefaultInstanceForType() { + return com.google.chat.v1.ListSpaceEventsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.ListSpaceEventsResponse build() { + com.google.chat.v1.ListSpaceEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.ListSpaceEventsResponse buildPartial() { + com.google.chat.v1.ListSpaceEventsResponse result = + new com.google.chat.v1.ListSpaceEventsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.chat.v1.ListSpaceEventsResponse result) { + if (spaceEventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + spaceEvents_ = java.util.Collections.unmodifiableList(spaceEvents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.spaceEvents_ = spaceEvents_; + } else { + result.spaceEvents_ = spaceEventsBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.ListSpaceEventsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.ListSpaceEventsResponse) { + return mergeFrom((com.google.chat.v1.ListSpaceEventsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.ListSpaceEventsResponse other) { + if (other == com.google.chat.v1.ListSpaceEventsResponse.getDefaultInstance()) return this; + if (spaceEventsBuilder_ == null) { + if (!other.spaceEvents_.isEmpty()) { + if (spaceEvents_.isEmpty()) { + spaceEvents_ = other.spaceEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSpaceEventsIsMutable(); + spaceEvents_.addAll(other.spaceEvents_); + } + onChanged(); + } + } else { + if (!other.spaceEvents_.isEmpty()) { + if (spaceEventsBuilder_.isEmpty()) { + spaceEventsBuilder_.dispose(); + spaceEventsBuilder_ = null; + spaceEvents_ = other.spaceEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + spaceEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSpaceEventsFieldBuilder() + : null; + } else { + spaceEventsBuilder_.addAllMessages(other.spaceEvents_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.chat.v1.SpaceEvent m = + input.readMessage(com.google.chat.v1.SpaceEvent.parser(), extensionRegistry); + if (spaceEventsBuilder_ == null) { + ensureSpaceEventsIsMutable(); + spaceEvents_.add(m); + } else { + spaceEventsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List spaceEvents_ = + java.util.Collections.emptyList(); + + private void ensureSpaceEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + spaceEvents_ = new java.util.ArrayList(spaceEvents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.SpaceEvent, + com.google.chat.v1.SpaceEvent.Builder, + com.google.chat.v1.SpaceEventOrBuilder> + spaceEventsBuilder_; + + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public java.util.List getSpaceEventsList() { + if (spaceEventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(spaceEvents_); + } else { + return spaceEventsBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public int getSpaceEventsCount() { + if (spaceEventsBuilder_ == null) { + return spaceEvents_.size(); + } else { + return spaceEventsBuilder_.getCount(); + } + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public com.google.chat.v1.SpaceEvent getSpaceEvents(int index) { + if (spaceEventsBuilder_ == null) { + return spaceEvents_.get(index); + } else { + return spaceEventsBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public Builder setSpaceEvents(int index, com.google.chat.v1.SpaceEvent value) { + if (spaceEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpaceEventsIsMutable(); + spaceEvents_.set(index, value); + onChanged(); + } else { + spaceEventsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public Builder setSpaceEvents( + int index, com.google.chat.v1.SpaceEvent.Builder builderForValue) { + if (spaceEventsBuilder_ == null) { + ensureSpaceEventsIsMutable(); + spaceEvents_.set(index, builderForValue.build()); + onChanged(); + } else { + spaceEventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public Builder addSpaceEvents(com.google.chat.v1.SpaceEvent value) { + if (spaceEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpaceEventsIsMutable(); + spaceEvents_.add(value); + onChanged(); + } else { + spaceEventsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public Builder addSpaceEvents(int index, com.google.chat.v1.SpaceEvent value) { + if (spaceEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpaceEventsIsMutable(); + spaceEvents_.add(index, value); + onChanged(); + } else { + spaceEventsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public Builder addSpaceEvents(com.google.chat.v1.SpaceEvent.Builder builderForValue) { + if (spaceEventsBuilder_ == null) { + ensureSpaceEventsIsMutable(); + spaceEvents_.add(builderForValue.build()); + onChanged(); + } else { + spaceEventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public Builder addSpaceEvents( + int index, com.google.chat.v1.SpaceEvent.Builder builderForValue) { + if (spaceEventsBuilder_ == null) { + ensureSpaceEventsIsMutable(); + spaceEvents_.add(index, builderForValue.build()); + onChanged(); + } else { + spaceEventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public Builder addAllSpaceEvents( + java.lang.Iterable values) { + if (spaceEventsBuilder_ == null) { + ensureSpaceEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spaceEvents_); + onChanged(); + } else { + spaceEventsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public Builder clearSpaceEvents() { + if (spaceEventsBuilder_ == null) { + spaceEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + spaceEventsBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public Builder removeSpaceEvents(int index) { + if (spaceEventsBuilder_ == null) { + ensureSpaceEventsIsMutable(); + spaceEvents_.remove(index); + onChanged(); + } else { + spaceEventsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public com.google.chat.v1.SpaceEvent.Builder getSpaceEventsBuilder(int index) { + return getSpaceEventsFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public com.google.chat.v1.SpaceEventOrBuilder getSpaceEventsOrBuilder(int index) { + if (spaceEventsBuilder_ == null) { + return spaceEvents_.get(index); + } else { + return spaceEventsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public java.util.List + getSpaceEventsOrBuilderList() { + if (spaceEventsBuilder_ != null) { + return spaceEventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(spaceEvents_); + } + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public com.google.chat.v1.SpaceEvent.Builder addSpaceEventsBuilder() { + return getSpaceEventsFieldBuilder() + .addBuilder(com.google.chat.v1.SpaceEvent.getDefaultInstance()); + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public com.google.chat.v1.SpaceEvent.Builder addSpaceEventsBuilder(int index) { + return getSpaceEventsFieldBuilder() + .addBuilder(index, com.google.chat.v1.SpaceEvent.getDefaultInstance()); + } + /** + * + * + *
        +     * Results are returned in chronological order (oldest event first).
        +     * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + public java.util.List getSpaceEventsBuilderList() { + return getSpaceEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.SpaceEvent, + com.google.chat.v1.SpaceEvent.Builder, + com.google.chat.v1.SpaceEventOrBuilder> + getSpaceEventsFieldBuilder() { + if (spaceEventsBuilder_ == null) { + spaceEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.SpaceEvent, + com.google.chat.v1.SpaceEvent.Builder, + com.google.chat.v1.SpaceEventOrBuilder>( + spaceEvents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + spaceEvents_ = null; + } + return spaceEventsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
        +     * Continuation token used to fetch more events.
        +     * If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Continuation token used to fetch more events.
        +     * If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Continuation token used to fetch more events.
        +     * If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Continuation token used to fetch more events.
        +     * If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
        +     * Continuation token used to fetch more events.
        +     * If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.ListSpaceEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.ListSpaceEventsResponse) + private static final com.google.chat.v1.ListSpaceEventsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.ListSpaceEventsResponse(); + } + + public static com.google.chat.v1.ListSpaceEventsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpaceEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.ListSpaceEventsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsResponseOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsResponseOrBuilder.java new file mode 100644 index 000000000000..a0fcb45ad49b --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/space_event.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface ListSpaceEventsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.ListSpaceEventsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Results are returned in chronological order (oldest event first).
        +   * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + java.util.List getSpaceEventsList(); + /** + * + * + *
        +   * Results are returned in chronological order (oldest event first).
        +   * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + com.google.chat.v1.SpaceEvent getSpaceEvents(int index); + /** + * + * + *
        +   * Results are returned in chronological order (oldest event first).
        +   * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + int getSpaceEventsCount(); + /** + * + * + *
        +   * Results are returned in chronological order (oldest event first).
        +   * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + java.util.List getSpaceEventsOrBuilderList(); + /** + * + * + *
        +   * Results are returned in chronological order (oldest event first).
        +   * 
        + * + * repeated .google.chat.v1.SpaceEvent space_events = 1; + */ + com.google.chat.v1.SpaceEventOrBuilder getSpaceEventsOrBuilder(int index); + + /** + * + * + *
        +   * Continuation token used to fetch more events.
        +   * If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
        +   * Continuation token used to fetch more events.
        +   * If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchCreatedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchCreatedEventData.java new file mode 100644 index 000000000000..d3269a7c2644 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchCreatedEventData.java @@ -0,0 +1,944 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for multiple new memberships.
        + *
        + * Event type: `google.workspace.chat.membership.v1.batchCreated`
        + * 
        + * + * Protobuf type {@code google.chat.v1.MembershipBatchCreatedEventData} + */ +public final class MembershipBatchCreatedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MembershipBatchCreatedEventData) + MembershipBatchCreatedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use MembershipBatchCreatedEventData.newBuilder() to construct. + private MembershipBatchCreatedEventData( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MembershipBatchCreatedEventData() { + memberships_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MembershipBatchCreatedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchCreatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchCreatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MembershipBatchCreatedEventData.class, + com.google.chat.v1.MembershipBatchCreatedEventData.Builder.class); + } + + public static final int MEMBERSHIPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List memberships_; + /** + * + * + *
        +   * A list of new memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + @java.lang.Override + public java.util.List getMembershipsList() { + return memberships_; + } + /** + * + * + *
        +   * A list of new memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + @java.lang.Override + public java.util.List + getMembershipsOrBuilderList() { + return memberships_; + } + /** + * + * + *
        +   * A list of new memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + @java.lang.Override + public int getMembershipsCount() { + return memberships_.size(); + } + /** + * + * + *
        +   * A list of new memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + @java.lang.Override + public com.google.chat.v1.MembershipCreatedEventData getMemberships(int index) { + return memberships_.get(index); + } + /** + * + * + *
        +   * A list of new memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + @java.lang.Override + public com.google.chat.v1.MembershipCreatedEventDataOrBuilder getMembershipsOrBuilder(int index) { + return memberships_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < memberships_.size(); i++) { + output.writeMessage(1, memberships_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < memberships_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, memberships_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.MembershipBatchCreatedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.MembershipBatchCreatedEventData other = + (com.google.chat.v1.MembershipBatchCreatedEventData) obj; + + if (!getMembershipsList().equals(other.getMembershipsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMembershipsCount() > 0) { + hash = (37 * hash) + MEMBERSHIPS_FIELD_NUMBER; + hash = (53 * hash) + getMembershipsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.MembershipBatchCreatedEventData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipBatchCreatedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchCreatedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipBatchCreatedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchCreatedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipBatchCreatedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchCreatedEventData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipBatchCreatedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchCreatedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipBatchCreatedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchCreatedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipBatchCreatedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MembershipBatchCreatedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for multiple new memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.MembershipBatchCreatedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MembershipBatchCreatedEventData) + com.google.chat.v1.MembershipBatchCreatedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchCreatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchCreatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MembershipBatchCreatedEventData.class, + com.google.chat.v1.MembershipBatchCreatedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.MembershipBatchCreatedEventData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (membershipsBuilder_ == null) { + memberships_ = java.util.Collections.emptyList(); + } else { + memberships_ = null; + membershipsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchCreatedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MembershipBatchCreatedEventData getDefaultInstanceForType() { + return com.google.chat.v1.MembershipBatchCreatedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MembershipBatchCreatedEventData build() { + com.google.chat.v1.MembershipBatchCreatedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MembershipBatchCreatedEventData buildPartial() { + com.google.chat.v1.MembershipBatchCreatedEventData result = + new com.google.chat.v1.MembershipBatchCreatedEventData(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.chat.v1.MembershipBatchCreatedEventData result) { + if (membershipsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + memberships_ = java.util.Collections.unmodifiableList(memberships_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.memberships_ = memberships_; + } else { + result.memberships_ = membershipsBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.MembershipBatchCreatedEventData result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.MembershipBatchCreatedEventData) { + return mergeFrom((com.google.chat.v1.MembershipBatchCreatedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MembershipBatchCreatedEventData other) { + if (other == com.google.chat.v1.MembershipBatchCreatedEventData.getDefaultInstance()) + return this; + if (membershipsBuilder_ == null) { + if (!other.memberships_.isEmpty()) { + if (memberships_.isEmpty()) { + memberships_ = other.memberships_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembershipsIsMutable(); + memberships_.addAll(other.memberships_); + } + onChanged(); + } + } else { + if (!other.memberships_.isEmpty()) { + if (membershipsBuilder_.isEmpty()) { + membershipsBuilder_.dispose(); + membershipsBuilder_ = null; + memberships_ = other.memberships_; + bitField0_ = (bitField0_ & ~0x00000001); + membershipsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMembershipsFieldBuilder() + : null; + } else { + membershipsBuilder_.addAllMessages(other.memberships_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.chat.v1.MembershipCreatedEventData m = + input.readMessage( + com.google.chat.v1.MembershipCreatedEventData.parser(), extensionRegistry); + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(m); + } else { + membershipsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List memberships_ = + java.util.Collections.emptyList(); + + private void ensureMembershipsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + memberships_ = + new java.util.ArrayList(memberships_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MembershipCreatedEventData, + com.google.chat.v1.MembershipCreatedEventData.Builder, + com.google.chat.v1.MembershipCreatedEventDataOrBuilder> + membershipsBuilder_; + + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public java.util.List getMembershipsList() { + if (membershipsBuilder_ == null) { + return java.util.Collections.unmodifiableList(memberships_); + } else { + return membershipsBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public int getMembershipsCount() { + if (membershipsBuilder_ == null) { + return memberships_.size(); + } else { + return membershipsBuilder_.getCount(); + } + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipCreatedEventData getMemberships(int index) { + if (membershipsBuilder_ == null) { + return memberships_.get(index); + } else { + return membershipsBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public Builder setMemberships(int index, com.google.chat.v1.MembershipCreatedEventData value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.set(index, value); + onChanged(); + } else { + membershipsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public Builder setMemberships( + int index, com.google.chat.v1.MembershipCreatedEventData.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.set(index, builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public Builder addMemberships(com.google.chat.v1.MembershipCreatedEventData value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.add(value); + onChanged(); + } else { + membershipsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public Builder addMemberships(int index, com.google.chat.v1.MembershipCreatedEventData value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.add(index, value); + onChanged(); + } else { + membershipsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public Builder addMemberships( + com.google.chat.v1.MembershipCreatedEventData.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public Builder addMemberships( + int index, com.google.chat.v1.MembershipCreatedEventData.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(index, builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public Builder addAllMemberships( + java.lang.Iterable values) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, memberships_); + onChanged(); + } else { + membershipsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public Builder clearMemberships() { + if (membershipsBuilder_ == null) { + memberships_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membershipsBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public Builder removeMemberships(int index) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.remove(index); + onChanged(); + } else { + membershipsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipCreatedEventData.Builder getMembershipsBuilder(int index) { + return getMembershipsFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipCreatedEventDataOrBuilder getMembershipsOrBuilder( + int index) { + if (membershipsBuilder_ == null) { + return memberships_.get(index); + } else { + return membershipsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public java.util.List + getMembershipsOrBuilderList() { + if (membershipsBuilder_ != null) { + return membershipsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(memberships_); + } + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipCreatedEventData.Builder addMembershipsBuilder() { + return getMembershipsFieldBuilder() + .addBuilder(com.google.chat.v1.MembershipCreatedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipCreatedEventData.Builder addMembershipsBuilder(int index) { + return getMembershipsFieldBuilder() + .addBuilder(index, com.google.chat.v1.MembershipCreatedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of new memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + public java.util.List + getMembershipsBuilderList() { + return getMembershipsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MembershipCreatedEventData, + com.google.chat.v1.MembershipCreatedEventData.Builder, + com.google.chat.v1.MembershipCreatedEventDataOrBuilder> + getMembershipsFieldBuilder() { + if (membershipsBuilder_ == null) { + membershipsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MembershipCreatedEventData, + com.google.chat.v1.MembershipCreatedEventData.Builder, + com.google.chat.v1.MembershipCreatedEventDataOrBuilder>( + memberships_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + memberships_ = null; + } + return membershipsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.MembershipBatchCreatedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MembershipBatchCreatedEventData) + private static final com.google.chat.v1.MembershipBatchCreatedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MembershipBatchCreatedEventData(); + } + + public static com.google.chat.v1.MembershipBatchCreatedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipBatchCreatedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MembershipBatchCreatedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchCreatedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchCreatedEventDataOrBuilder.java new file mode 100644 index 000000000000..720854845605 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchCreatedEventDataOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface MembershipBatchCreatedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MembershipBatchCreatedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * A list of new memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + java.util.List getMembershipsList(); + /** + * + * + *
        +   * A list of new memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + com.google.chat.v1.MembershipCreatedEventData getMemberships(int index); + /** + * + * + *
        +   * A list of new memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + int getMembershipsCount(); + /** + * + * + *
        +   * A list of new memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + java.util.List + getMembershipsOrBuilderList(); + /** + * + * + *
        +   * A list of new memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; + */ + com.google.chat.v1.MembershipCreatedEventDataOrBuilder getMembershipsOrBuilder(int index); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchDeletedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchDeletedEventData.java new file mode 100644 index 000000000000..d157f066f23b --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchDeletedEventData.java @@ -0,0 +1,944 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for multiple deleted memberships.
        + *
        + * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        + * 
        + * + * Protobuf type {@code google.chat.v1.MembershipBatchDeletedEventData} + */ +public final class MembershipBatchDeletedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MembershipBatchDeletedEventData) + MembershipBatchDeletedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use MembershipBatchDeletedEventData.newBuilder() to construct. + private MembershipBatchDeletedEventData( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MembershipBatchDeletedEventData() { + memberships_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MembershipBatchDeletedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchDeletedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchDeletedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MembershipBatchDeletedEventData.class, + com.google.chat.v1.MembershipBatchDeletedEventData.Builder.class); + } + + public static final int MEMBERSHIPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List memberships_; + /** + * + * + *
        +   * A list of deleted memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + @java.lang.Override + public java.util.List getMembershipsList() { + return memberships_; + } + /** + * + * + *
        +   * A list of deleted memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + @java.lang.Override + public java.util.List + getMembershipsOrBuilderList() { + return memberships_; + } + /** + * + * + *
        +   * A list of deleted memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + @java.lang.Override + public int getMembershipsCount() { + return memberships_.size(); + } + /** + * + * + *
        +   * A list of deleted memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + @java.lang.Override + public com.google.chat.v1.MembershipDeletedEventData getMemberships(int index) { + return memberships_.get(index); + } + /** + * + * + *
        +   * A list of deleted memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + @java.lang.Override + public com.google.chat.v1.MembershipDeletedEventDataOrBuilder getMembershipsOrBuilder(int index) { + return memberships_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < memberships_.size(); i++) { + output.writeMessage(1, memberships_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < memberships_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, memberships_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.MembershipBatchDeletedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.MembershipBatchDeletedEventData other = + (com.google.chat.v1.MembershipBatchDeletedEventData) obj; + + if (!getMembershipsList().equals(other.getMembershipsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMembershipsCount() > 0) { + hash = (37 * hash) + MEMBERSHIPS_FIELD_NUMBER; + hash = (53 * hash) + getMembershipsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.MembershipBatchDeletedEventData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipBatchDeletedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchDeletedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipBatchDeletedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchDeletedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipBatchDeletedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchDeletedEventData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipBatchDeletedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchDeletedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipBatchDeletedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchDeletedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipBatchDeletedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MembershipBatchDeletedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for multiple deleted memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.MembershipBatchDeletedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MembershipBatchDeletedEventData) + com.google.chat.v1.MembershipBatchDeletedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchDeletedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchDeletedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MembershipBatchDeletedEventData.class, + com.google.chat.v1.MembershipBatchDeletedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.MembershipBatchDeletedEventData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (membershipsBuilder_ == null) { + memberships_ = java.util.Collections.emptyList(); + } else { + memberships_ = null; + membershipsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchDeletedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MembershipBatchDeletedEventData getDefaultInstanceForType() { + return com.google.chat.v1.MembershipBatchDeletedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MembershipBatchDeletedEventData build() { + com.google.chat.v1.MembershipBatchDeletedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MembershipBatchDeletedEventData buildPartial() { + com.google.chat.v1.MembershipBatchDeletedEventData result = + new com.google.chat.v1.MembershipBatchDeletedEventData(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.chat.v1.MembershipBatchDeletedEventData result) { + if (membershipsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + memberships_ = java.util.Collections.unmodifiableList(memberships_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.memberships_ = memberships_; + } else { + result.memberships_ = membershipsBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.MembershipBatchDeletedEventData result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.MembershipBatchDeletedEventData) { + return mergeFrom((com.google.chat.v1.MembershipBatchDeletedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MembershipBatchDeletedEventData other) { + if (other == com.google.chat.v1.MembershipBatchDeletedEventData.getDefaultInstance()) + return this; + if (membershipsBuilder_ == null) { + if (!other.memberships_.isEmpty()) { + if (memberships_.isEmpty()) { + memberships_ = other.memberships_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembershipsIsMutable(); + memberships_.addAll(other.memberships_); + } + onChanged(); + } + } else { + if (!other.memberships_.isEmpty()) { + if (membershipsBuilder_.isEmpty()) { + membershipsBuilder_.dispose(); + membershipsBuilder_ = null; + memberships_ = other.memberships_; + bitField0_ = (bitField0_ & ~0x00000001); + membershipsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMembershipsFieldBuilder() + : null; + } else { + membershipsBuilder_.addAllMessages(other.memberships_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.chat.v1.MembershipDeletedEventData m = + input.readMessage( + com.google.chat.v1.MembershipDeletedEventData.parser(), extensionRegistry); + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(m); + } else { + membershipsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List memberships_ = + java.util.Collections.emptyList(); + + private void ensureMembershipsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + memberships_ = + new java.util.ArrayList(memberships_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MembershipDeletedEventData, + com.google.chat.v1.MembershipDeletedEventData.Builder, + com.google.chat.v1.MembershipDeletedEventDataOrBuilder> + membershipsBuilder_; + + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public java.util.List getMembershipsList() { + if (membershipsBuilder_ == null) { + return java.util.Collections.unmodifiableList(memberships_); + } else { + return membershipsBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public int getMembershipsCount() { + if (membershipsBuilder_ == null) { + return memberships_.size(); + } else { + return membershipsBuilder_.getCount(); + } + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipDeletedEventData getMemberships(int index) { + if (membershipsBuilder_ == null) { + return memberships_.get(index); + } else { + return membershipsBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public Builder setMemberships(int index, com.google.chat.v1.MembershipDeletedEventData value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.set(index, value); + onChanged(); + } else { + membershipsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public Builder setMemberships( + int index, com.google.chat.v1.MembershipDeletedEventData.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.set(index, builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public Builder addMemberships(com.google.chat.v1.MembershipDeletedEventData value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.add(value); + onChanged(); + } else { + membershipsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public Builder addMemberships(int index, com.google.chat.v1.MembershipDeletedEventData value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.add(index, value); + onChanged(); + } else { + membershipsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public Builder addMemberships( + com.google.chat.v1.MembershipDeletedEventData.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public Builder addMemberships( + int index, com.google.chat.v1.MembershipDeletedEventData.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(index, builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public Builder addAllMemberships( + java.lang.Iterable values) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, memberships_); + onChanged(); + } else { + membershipsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public Builder clearMemberships() { + if (membershipsBuilder_ == null) { + memberships_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membershipsBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public Builder removeMemberships(int index) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.remove(index); + onChanged(); + } else { + membershipsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipDeletedEventData.Builder getMembershipsBuilder(int index) { + return getMembershipsFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipDeletedEventDataOrBuilder getMembershipsOrBuilder( + int index) { + if (membershipsBuilder_ == null) { + return memberships_.get(index); + } else { + return membershipsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public java.util.List + getMembershipsOrBuilderList() { + if (membershipsBuilder_ != null) { + return membershipsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(memberships_); + } + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipDeletedEventData.Builder addMembershipsBuilder() { + return getMembershipsFieldBuilder() + .addBuilder(com.google.chat.v1.MembershipDeletedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipDeletedEventData.Builder addMembershipsBuilder(int index) { + return getMembershipsFieldBuilder() + .addBuilder(index, com.google.chat.v1.MembershipDeletedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of deleted memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + public java.util.List + getMembershipsBuilderList() { + return getMembershipsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MembershipDeletedEventData, + com.google.chat.v1.MembershipDeletedEventData.Builder, + com.google.chat.v1.MembershipDeletedEventDataOrBuilder> + getMembershipsFieldBuilder() { + if (membershipsBuilder_ == null) { + membershipsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MembershipDeletedEventData, + com.google.chat.v1.MembershipDeletedEventData.Builder, + com.google.chat.v1.MembershipDeletedEventDataOrBuilder>( + memberships_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + memberships_ = null; + } + return membershipsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.MembershipBatchDeletedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MembershipBatchDeletedEventData) + private static final com.google.chat.v1.MembershipBatchDeletedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MembershipBatchDeletedEventData(); + } + + public static com.google.chat.v1.MembershipBatchDeletedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipBatchDeletedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MembershipBatchDeletedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchDeletedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchDeletedEventDataOrBuilder.java new file mode 100644 index 000000000000..510aa64c37f2 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchDeletedEventDataOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface MembershipBatchDeletedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MembershipBatchDeletedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * A list of deleted memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + java.util.List getMembershipsList(); + /** + * + * + *
        +   * A list of deleted memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + com.google.chat.v1.MembershipDeletedEventData getMemberships(int index); + /** + * + * + *
        +   * A list of deleted memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + int getMembershipsCount(); + /** + * + * + *
        +   * A list of deleted memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + java.util.List + getMembershipsOrBuilderList(); + /** + * + * + *
        +   * A list of deleted memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; + */ + com.google.chat.v1.MembershipDeletedEventDataOrBuilder getMembershipsOrBuilder(int index); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchUpdatedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchUpdatedEventData.java new file mode 100644 index 000000000000..7f47bacd66e0 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchUpdatedEventData.java @@ -0,0 +1,944 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for multiple updated memberships.
        + *
        + * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        + * 
        + * + * Protobuf type {@code google.chat.v1.MembershipBatchUpdatedEventData} + */ +public final class MembershipBatchUpdatedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MembershipBatchUpdatedEventData) + MembershipBatchUpdatedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use MembershipBatchUpdatedEventData.newBuilder() to construct. + private MembershipBatchUpdatedEventData( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MembershipBatchUpdatedEventData() { + memberships_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MembershipBatchUpdatedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchUpdatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchUpdatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MembershipBatchUpdatedEventData.class, + com.google.chat.v1.MembershipBatchUpdatedEventData.Builder.class); + } + + public static final int MEMBERSHIPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List memberships_; + /** + * + * + *
        +   * A list of updated memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + @java.lang.Override + public java.util.List getMembershipsList() { + return memberships_; + } + /** + * + * + *
        +   * A list of updated memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + @java.lang.Override + public java.util.List + getMembershipsOrBuilderList() { + return memberships_; + } + /** + * + * + *
        +   * A list of updated memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + @java.lang.Override + public int getMembershipsCount() { + return memberships_.size(); + } + /** + * + * + *
        +   * A list of updated memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + @java.lang.Override + public com.google.chat.v1.MembershipUpdatedEventData getMemberships(int index) { + return memberships_.get(index); + } + /** + * + * + *
        +   * A list of updated memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + @java.lang.Override + public com.google.chat.v1.MembershipUpdatedEventDataOrBuilder getMembershipsOrBuilder(int index) { + return memberships_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < memberships_.size(); i++) { + output.writeMessage(1, memberships_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < memberships_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, memberships_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.MembershipBatchUpdatedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.MembershipBatchUpdatedEventData other = + (com.google.chat.v1.MembershipBatchUpdatedEventData) obj; + + if (!getMembershipsList().equals(other.getMembershipsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMembershipsCount() > 0) { + hash = (37 * hash) + MEMBERSHIPS_FIELD_NUMBER; + hash = (53 * hash) + getMembershipsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.MembershipBatchUpdatedEventData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipBatchUpdatedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchUpdatedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipBatchUpdatedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchUpdatedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipBatchUpdatedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchUpdatedEventData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipBatchUpdatedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchUpdatedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipBatchUpdatedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MembershipBatchUpdatedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipBatchUpdatedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MembershipBatchUpdatedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for multiple updated memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.MembershipBatchUpdatedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MembershipBatchUpdatedEventData) + com.google.chat.v1.MembershipBatchUpdatedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchUpdatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchUpdatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MembershipBatchUpdatedEventData.class, + com.google.chat.v1.MembershipBatchUpdatedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.MembershipBatchUpdatedEventData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (membershipsBuilder_ == null) { + memberships_ = java.util.Collections.emptyList(); + } else { + memberships_ = null; + membershipsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipBatchUpdatedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MembershipBatchUpdatedEventData getDefaultInstanceForType() { + return com.google.chat.v1.MembershipBatchUpdatedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MembershipBatchUpdatedEventData build() { + com.google.chat.v1.MembershipBatchUpdatedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MembershipBatchUpdatedEventData buildPartial() { + com.google.chat.v1.MembershipBatchUpdatedEventData result = + new com.google.chat.v1.MembershipBatchUpdatedEventData(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.chat.v1.MembershipBatchUpdatedEventData result) { + if (membershipsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + memberships_ = java.util.Collections.unmodifiableList(memberships_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.memberships_ = memberships_; + } else { + result.memberships_ = membershipsBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.MembershipBatchUpdatedEventData result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.MembershipBatchUpdatedEventData) { + return mergeFrom((com.google.chat.v1.MembershipBatchUpdatedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MembershipBatchUpdatedEventData other) { + if (other == com.google.chat.v1.MembershipBatchUpdatedEventData.getDefaultInstance()) + return this; + if (membershipsBuilder_ == null) { + if (!other.memberships_.isEmpty()) { + if (memberships_.isEmpty()) { + memberships_ = other.memberships_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembershipsIsMutable(); + memberships_.addAll(other.memberships_); + } + onChanged(); + } + } else { + if (!other.memberships_.isEmpty()) { + if (membershipsBuilder_.isEmpty()) { + membershipsBuilder_.dispose(); + membershipsBuilder_ = null; + memberships_ = other.memberships_; + bitField0_ = (bitField0_ & ~0x00000001); + membershipsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMembershipsFieldBuilder() + : null; + } else { + membershipsBuilder_.addAllMessages(other.memberships_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.chat.v1.MembershipUpdatedEventData m = + input.readMessage( + com.google.chat.v1.MembershipUpdatedEventData.parser(), extensionRegistry); + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(m); + } else { + membershipsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List memberships_ = + java.util.Collections.emptyList(); + + private void ensureMembershipsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + memberships_ = + new java.util.ArrayList(memberships_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MembershipUpdatedEventData, + com.google.chat.v1.MembershipUpdatedEventData.Builder, + com.google.chat.v1.MembershipUpdatedEventDataOrBuilder> + membershipsBuilder_; + + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public java.util.List getMembershipsList() { + if (membershipsBuilder_ == null) { + return java.util.Collections.unmodifiableList(memberships_); + } else { + return membershipsBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public int getMembershipsCount() { + if (membershipsBuilder_ == null) { + return memberships_.size(); + } else { + return membershipsBuilder_.getCount(); + } + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipUpdatedEventData getMemberships(int index) { + if (membershipsBuilder_ == null) { + return memberships_.get(index); + } else { + return membershipsBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public Builder setMemberships(int index, com.google.chat.v1.MembershipUpdatedEventData value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.set(index, value); + onChanged(); + } else { + membershipsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public Builder setMemberships( + int index, com.google.chat.v1.MembershipUpdatedEventData.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.set(index, builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public Builder addMemberships(com.google.chat.v1.MembershipUpdatedEventData value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.add(value); + onChanged(); + } else { + membershipsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public Builder addMemberships(int index, com.google.chat.v1.MembershipUpdatedEventData value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.add(index, value); + onChanged(); + } else { + membershipsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public Builder addMemberships( + com.google.chat.v1.MembershipUpdatedEventData.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public Builder addMemberships( + int index, com.google.chat.v1.MembershipUpdatedEventData.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(index, builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public Builder addAllMemberships( + java.lang.Iterable values) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, memberships_); + onChanged(); + } else { + membershipsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public Builder clearMemberships() { + if (membershipsBuilder_ == null) { + memberships_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membershipsBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public Builder removeMemberships(int index) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.remove(index); + onChanged(); + } else { + membershipsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipUpdatedEventData.Builder getMembershipsBuilder(int index) { + return getMembershipsFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipUpdatedEventDataOrBuilder getMembershipsOrBuilder( + int index) { + if (membershipsBuilder_ == null) { + return memberships_.get(index); + } else { + return membershipsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public java.util.List + getMembershipsOrBuilderList() { + if (membershipsBuilder_ != null) { + return membershipsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(memberships_); + } + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipUpdatedEventData.Builder addMembershipsBuilder() { + return getMembershipsFieldBuilder() + .addBuilder(com.google.chat.v1.MembershipUpdatedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public com.google.chat.v1.MembershipUpdatedEventData.Builder addMembershipsBuilder(int index) { + return getMembershipsFieldBuilder() + .addBuilder(index, com.google.chat.v1.MembershipUpdatedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of updated memberships.
        +     * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + public java.util.List + getMembershipsBuilderList() { + return getMembershipsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MembershipUpdatedEventData, + com.google.chat.v1.MembershipUpdatedEventData.Builder, + com.google.chat.v1.MembershipUpdatedEventDataOrBuilder> + getMembershipsFieldBuilder() { + if (membershipsBuilder_ == null) { + membershipsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MembershipUpdatedEventData, + com.google.chat.v1.MembershipUpdatedEventData.Builder, + com.google.chat.v1.MembershipUpdatedEventDataOrBuilder>( + memberships_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + memberships_ = null; + } + return membershipsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.MembershipBatchUpdatedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MembershipBatchUpdatedEventData) + private static final com.google.chat.v1.MembershipBatchUpdatedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MembershipBatchUpdatedEventData(); + } + + public static com.google.chat.v1.MembershipBatchUpdatedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipBatchUpdatedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MembershipBatchUpdatedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchUpdatedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchUpdatedEventDataOrBuilder.java new file mode 100644 index 000000000000..1538084f9be4 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipBatchUpdatedEventDataOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface MembershipBatchUpdatedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MembershipBatchUpdatedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * A list of updated memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + java.util.List getMembershipsList(); + /** + * + * + *
        +   * A list of updated memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + com.google.chat.v1.MembershipUpdatedEventData getMemberships(int index); + /** + * + * + *
        +   * A list of updated memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + int getMembershipsCount(); + /** + * + * + *
        +   * A list of updated memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + java.util.List + getMembershipsOrBuilderList(); + /** + * + * + *
        +   * A list of updated memberships.
        +   * 
        + * + * repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; + */ + com.google.chat.v1.MembershipUpdatedEventDataOrBuilder getMembershipsOrBuilder(int index); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipCreatedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipCreatedEventData.java new file mode 100644 index 000000000000..f4434bec82bb --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipCreatedEventData.java @@ -0,0 +1,720 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for a new membership.
        + *
        + * Event type: `google.workspace.chat.membership.v1.created`.
        + * 
        + * + * Protobuf type {@code google.chat.v1.MembershipCreatedEventData} + */ +public final class MembershipCreatedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MembershipCreatedEventData) + MembershipCreatedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use MembershipCreatedEventData.newBuilder() to construct. + private MembershipCreatedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MembershipCreatedEventData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MembershipCreatedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipCreatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipCreatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MembershipCreatedEventData.class, + com.google.chat.v1.MembershipCreatedEventData.Builder.class); + } + + private int bitField0_; + public static final int MEMBERSHIP_FIELD_NUMBER = 1; + private com.google.chat.v1.Membership membership_; + /** + * + * + *
        +   * The new membership.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return Whether the membership field is set. + */ + @java.lang.Override + public boolean hasMembership() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * The new membership.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return The membership. + */ + @java.lang.Override + public com.google.chat.v1.Membership getMembership() { + return membership_ == null ? com.google.chat.v1.Membership.getDefaultInstance() : membership_; + } + /** + * + * + *
        +   * The new membership.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + @java.lang.Override + public com.google.chat.v1.MembershipOrBuilder getMembershipOrBuilder() { + return membership_ == null ? com.google.chat.v1.Membership.getDefaultInstance() : membership_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMembership()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMembership()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.MembershipCreatedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.MembershipCreatedEventData other = + (com.google.chat.v1.MembershipCreatedEventData) obj; + + if (hasMembership() != other.hasMembership()) return false; + if (hasMembership()) { + if (!getMembership().equals(other.getMembership())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMembership()) { + hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; + hash = (53 * hash) + getMembership().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.MembershipCreatedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipCreatedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipCreatedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipCreatedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipCreatedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipCreatedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipCreatedEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipCreatedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MembershipCreatedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipCreatedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MembershipCreatedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipCreatedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MembershipCreatedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for a new membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.created`.
        +   * 
        + * + * Protobuf type {@code google.chat.v1.MembershipCreatedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MembershipCreatedEventData) + com.google.chat.v1.MembershipCreatedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipCreatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipCreatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MembershipCreatedEventData.class, + com.google.chat.v1.MembershipCreatedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.MembershipCreatedEventData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMembershipFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + membership_ = null; + if (membershipBuilder_ != null) { + membershipBuilder_.dispose(); + membershipBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipCreatedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MembershipCreatedEventData getDefaultInstanceForType() { + return com.google.chat.v1.MembershipCreatedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MembershipCreatedEventData build() { + com.google.chat.v1.MembershipCreatedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MembershipCreatedEventData buildPartial() { + com.google.chat.v1.MembershipCreatedEventData result = + new com.google.chat.v1.MembershipCreatedEventData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.MembershipCreatedEventData result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.membership_ = membershipBuilder_ == null ? membership_ : membershipBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.MembershipCreatedEventData) { + return mergeFrom((com.google.chat.v1.MembershipCreatedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MembershipCreatedEventData other) { + if (other == com.google.chat.v1.MembershipCreatedEventData.getDefaultInstance()) return this; + if (other.hasMembership()) { + mergeMembership(other.getMembership()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getMembershipFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.chat.v1.Membership membership_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Membership, + com.google.chat.v1.Membership.Builder, + com.google.chat.v1.MembershipOrBuilder> + membershipBuilder_; + /** + * + * + *
        +     * The new membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return Whether the membership field is set. + */ + public boolean hasMembership() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * The new membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return The membership. + */ + public com.google.chat.v1.Membership getMembership() { + if (membershipBuilder_ == null) { + return membership_ == null + ? com.google.chat.v1.Membership.getDefaultInstance() + : membership_; + } else { + return membershipBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The new membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public Builder setMembership(com.google.chat.v1.Membership value) { + if (membershipBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + membership_ = value; + } else { + membershipBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The new membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public Builder setMembership(com.google.chat.v1.Membership.Builder builderForValue) { + if (membershipBuilder_ == null) { + membership_ = builderForValue.build(); + } else { + membershipBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The new membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public Builder mergeMembership(com.google.chat.v1.Membership value) { + if (membershipBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && membership_ != null + && membership_ != com.google.chat.v1.Membership.getDefaultInstance()) { + getMembershipBuilder().mergeFrom(value); + } else { + membership_ = value; + } + } else { + membershipBuilder_.mergeFrom(value); + } + if (membership_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The new membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public Builder clearMembership() { + bitField0_ = (bitField0_ & ~0x00000001); + membership_ = null; + if (membershipBuilder_ != null) { + membershipBuilder_.dispose(); + membershipBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The new membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public com.google.chat.v1.Membership.Builder getMembershipBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMembershipFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The new membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public com.google.chat.v1.MembershipOrBuilder getMembershipOrBuilder() { + if (membershipBuilder_ != null) { + return membershipBuilder_.getMessageOrBuilder(); + } else { + return membership_ == null + ? com.google.chat.v1.Membership.getDefaultInstance() + : membership_; + } + } + /** + * + * + *
        +     * The new membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Membership, + com.google.chat.v1.Membership.Builder, + com.google.chat.v1.MembershipOrBuilder> + getMembershipFieldBuilder() { + if (membershipBuilder_ == null) { + membershipBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Membership, + com.google.chat.v1.Membership.Builder, + com.google.chat.v1.MembershipOrBuilder>( + getMembership(), getParentForChildren(), isClean()); + membership_ = null; + } + return membershipBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.MembershipCreatedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MembershipCreatedEventData) + private static final com.google.chat.v1.MembershipCreatedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MembershipCreatedEventData(); + } + + public static com.google.chat.v1.MembershipCreatedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipCreatedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MembershipCreatedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipCreatedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipCreatedEventDataOrBuilder.java new file mode 100644 index 000000000000..e961ef3324e3 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipCreatedEventDataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface MembershipCreatedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MembershipCreatedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The new membership.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return Whether the membership field is set. + */ + boolean hasMembership(); + /** + * + * + *
        +   * The new membership.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return The membership. + */ + com.google.chat.v1.Membership getMembership(); + /** + * + * + *
        +   * The new membership.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + com.google.chat.v1.MembershipOrBuilder getMembershipOrBuilder(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipDeletedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipDeletedEventData.java new file mode 100644 index 000000000000..e5c0646e4e79 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipDeletedEventData.java @@ -0,0 +1,720 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for a deleted membership.
        + *
        + * Event type: `google.workspace.chat.membership.v1.deleted`
        + * 
        + * + * Protobuf type {@code google.chat.v1.MembershipDeletedEventData} + */ +public final class MembershipDeletedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MembershipDeletedEventData) + MembershipDeletedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use MembershipDeletedEventData.newBuilder() to construct. + private MembershipDeletedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MembershipDeletedEventData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MembershipDeletedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipDeletedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipDeletedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MembershipDeletedEventData.class, + com.google.chat.v1.MembershipDeletedEventData.Builder.class); + } + + private int bitField0_; + public static final int MEMBERSHIP_FIELD_NUMBER = 1; + private com.google.chat.v1.Membership membership_; + /** + * + * + *
        +   * The deleted membership. Only the `name` and `state` fields are populated.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return Whether the membership field is set. + */ + @java.lang.Override + public boolean hasMembership() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * The deleted membership. Only the `name` and `state` fields are populated.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return The membership. + */ + @java.lang.Override + public com.google.chat.v1.Membership getMembership() { + return membership_ == null ? com.google.chat.v1.Membership.getDefaultInstance() : membership_; + } + /** + * + * + *
        +   * The deleted membership. Only the `name` and `state` fields are populated.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + @java.lang.Override + public com.google.chat.v1.MembershipOrBuilder getMembershipOrBuilder() { + return membership_ == null ? com.google.chat.v1.Membership.getDefaultInstance() : membership_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMembership()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMembership()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.MembershipDeletedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.MembershipDeletedEventData other = + (com.google.chat.v1.MembershipDeletedEventData) obj; + + if (hasMembership() != other.hasMembership()) return false; + if (hasMembership()) { + if (!getMembership().equals(other.getMembership())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMembership()) { + hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; + hash = (53 * hash) + getMembership().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.MembershipDeletedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipDeletedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipDeletedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipDeletedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipDeletedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipDeletedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipDeletedEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipDeletedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MembershipDeletedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipDeletedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MembershipDeletedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipDeletedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MembershipDeletedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for a deleted membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.deleted`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.MembershipDeletedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MembershipDeletedEventData) + com.google.chat.v1.MembershipDeletedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipDeletedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipDeletedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MembershipDeletedEventData.class, + com.google.chat.v1.MembershipDeletedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.MembershipDeletedEventData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMembershipFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + membership_ = null; + if (membershipBuilder_ != null) { + membershipBuilder_.dispose(); + membershipBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipDeletedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MembershipDeletedEventData getDefaultInstanceForType() { + return com.google.chat.v1.MembershipDeletedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MembershipDeletedEventData build() { + com.google.chat.v1.MembershipDeletedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MembershipDeletedEventData buildPartial() { + com.google.chat.v1.MembershipDeletedEventData result = + new com.google.chat.v1.MembershipDeletedEventData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.MembershipDeletedEventData result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.membership_ = membershipBuilder_ == null ? membership_ : membershipBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.MembershipDeletedEventData) { + return mergeFrom((com.google.chat.v1.MembershipDeletedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MembershipDeletedEventData other) { + if (other == com.google.chat.v1.MembershipDeletedEventData.getDefaultInstance()) return this; + if (other.hasMembership()) { + mergeMembership(other.getMembership()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getMembershipFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.chat.v1.Membership membership_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Membership, + com.google.chat.v1.Membership.Builder, + com.google.chat.v1.MembershipOrBuilder> + membershipBuilder_; + /** + * + * + *
        +     * The deleted membership. Only the `name` and `state` fields are populated.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return Whether the membership field is set. + */ + public boolean hasMembership() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * The deleted membership. Only the `name` and `state` fields are populated.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return The membership. + */ + public com.google.chat.v1.Membership getMembership() { + if (membershipBuilder_ == null) { + return membership_ == null + ? com.google.chat.v1.Membership.getDefaultInstance() + : membership_; + } else { + return membershipBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The deleted membership. Only the `name` and `state` fields are populated.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public Builder setMembership(com.google.chat.v1.Membership value) { + if (membershipBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + membership_ = value; + } else { + membershipBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The deleted membership. Only the `name` and `state` fields are populated.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public Builder setMembership(com.google.chat.v1.Membership.Builder builderForValue) { + if (membershipBuilder_ == null) { + membership_ = builderForValue.build(); + } else { + membershipBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The deleted membership. Only the `name` and `state` fields are populated.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public Builder mergeMembership(com.google.chat.v1.Membership value) { + if (membershipBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && membership_ != null + && membership_ != com.google.chat.v1.Membership.getDefaultInstance()) { + getMembershipBuilder().mergeFrom(value); + } else { + membership_ = value; + } + } else { + membershipBuilder_.mergeFrom(value); + } + if (membership_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The deleted membership. Only the `name` and `state` fields are populated.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public Builder clearMembership() { + bitField0_ = (bitField0_ & ~0x00000001); + membership_ = null; + if (membershipBuilder_ != null) { + membershipBuilder_.dispose(); + membershipBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The deleted membership. Only the `name` and `state` fields are populated.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public com.google.chat.v1.Membership.Builder getMembershipBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMembershipFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The deleted membership. Only the `name` and `state` fields are populated.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public com.google.chat.v1.MembershipOrBuilder getMembershipOrBuilder() { + if (membershipBuilder_ != null) { + return membershipBuilder_.getMessageOrBuilder(); + } else { + return membership_ == null + ? com.google.chat.v1.Membership.getDefaultInstance() + : membership_; + } + } + /** + * + * + *
        +     * The deleted membership. Only the `name` and `state` fields are populated.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Membership, + com.google.chat.v1.Membership.Builder, + com.google.chat.v1.MembershipOrBuilder> + getMembershipFieldBuilder() { + if (membershipBuilder_ == null) { + membershipBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Membership, + com.google.chat.v1.Membership.Builder, + com.google.chat.v1.MembershipOrBuilder>( + getMembership(), getParentForChildren(), isClean()); + membership_ = null; + } + return membershipBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.MembershipDeletedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MembershipDeletedEventData) + private static final com.google.chat.v1.MembershipDeletedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MembershipDeletedEventData(); + } + + public static com.google.chat.v1.MembershipDeletedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipDeletedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MembershipDeletedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipDeletedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipDeletedEventDataOrBuilder.java new file mode 100644 index 000000000000..6f358696127b --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipDeletedEventDataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface MembershipDeletedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MembershipDeletedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The deleted membership. Only the `name` and `state` fields are populated.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return Whether the membership field is set. + */ + boolean hasMembership(); + /** + * + * + *
        +   * The deleted membership. Only the `name` and `state` fields are populated.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return The membership. + */ + com.google.chat.v1.Membership getMembership(); + /** + * + * + *
        +   * The deleted membership. Only the `name` and `state` fields are populated.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + com.google.chat.v1.MembershipOrBuilder getMembershipOrBuilder(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipUpdatedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipUpdatedEventData.java new file mode 100644 index 000000000000..f25eee24776f --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipUpdatedEventData.java @@ -0,0 +1,720 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for an updated membership.
        + *
        + * Event type: `google.workspace.chat.membership.v1.updated`
        + * 
        + * + * Protobuf type {@code google.chat.v1.MembershipUpdatedEventData} + */ +public final class MembershipUpdatedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MembershipUpdatedEventData) + MembershipUpdatedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use MembershipUpdatedEventData.newBuilder() to construct. + private MembershipUpdatedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MembershipUpdatedEventData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MembershipUpdatedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipUpdatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipUpdatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MembershipUpdatedEventData.class, + com.google.chat.v1.MembershipUpdatedEventData.Builder.class); + } + + private int bitField0_; + public static final int MEMBERSHIP_FIELD_NUMBER = 1; + private com.google.chat.v1.Membership membership_; + /** + * + * + *
        +   * The updated membership.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return Whether the membership field is set. + */ + @java.lang.Override + public boolean hasMembership() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * The updated membership.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return The membership. + */ + @java.lang.Override + public com.google.chat.v1.Membership getMembership() { + return membership_ == null ? com.google.chat.v1.Membership.getDefaultInstance() : membership_; + } + /** + * + * + *
        +   * The updated membership.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + @java.lang.Override + public com.google.chat.v1.MembershipOrBuilder getMembershipOrBuilder() { + return membership_ == null ? com.google.chat.v1.Membership.getDefaultInstance() : membership_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMembership()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMembership()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.MembershipUpdatedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.MembershipUpdatedEventData other = + (com.google.chat.v1.MembershipUpdatedEventData) obj; + + if (hasMembership() != other.hasMembership()) return false; + if (hasMembership()) { + if (!getMembership().equals(other.getMembership())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMembership()) { + hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; + hash = (53 * hash) + getMembership().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.MembershipUpdatedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipUpdatedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipUpdatedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipUpdatedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipUpdatedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MembershipUpdatedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MembershipUpdatedEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipUpdatedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MembershipUpdatedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipUpdatedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MembershipUpdatedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MembershipUpdatedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MembershipUpdatedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for an updated membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.updated`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.MembershipUpdatedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MembershipUpdatedEventData) + com.google.chat.v1.MembershipUpdatedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipUpdatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipUpdatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MembershipUpdatedEventData.class, + com.google.chat.v1.MembershipUpdatedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.MembershipUpdatedEventData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMembershipFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + membership_ = null; + if (membershipBuilder_ != null) { + membershipBuilder_.dispose(); + membershipBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MembershipUpdatedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MembershipUpdatedEventData getDefaultInstanceForType() { + return com.google.chat.v1.MembershipUpdatedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MembershipUpdatedEventData build() { + com.google.chat.v1.MembershipUpdatedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MembershipUpdatedEventData buildPartial() { + com.google.chat.v1.MembershipUpdatedEventData result = + new com.google.chat.v1.MembershipUpdatedEventData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.MembershipUpdatedEventData result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.membership_ = membershipBuilder_ == null ? membership_ : membershipBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.MembershipUpdatedEventData) { + return mergeFrom((com.google.chat.v1.MembershipUpdatedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MembershipUpdatedEventData other) { + if (other == com.google.chat.v1.MembershipUpdatedEventData.getDefaultInstance()) return this; + if (other.hasMembership()) { + mergeMembership(other.getMembership()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getMembershipFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.chat.v1.Membership membership_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Membership, + com.google.chat.v1.Membership.Builder, + com.google.chat.v1.MembershipOrBuilder> + membershipBuilder_; + /** + * + * + *
        +     * The updated membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return Whether the membership field is set. + */ + public boolean hasMembership() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * The updated membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return The membership. + */ + public com.google.chat.v1.Membership getMembership() { + if (membershipBuilder_ == null) { + return membership_ == null + ? com.google.chat.v1.Membership.getDefaultInstance() + : membership_; + } else { + return membershipBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The updated membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public Builder setMembership(com.google.chat.v1.Membership value) { + if (membershipBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + membership_ = value; + } else { + membershipBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The updated membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public Builder setMembership(com.google.chat.v1.Membership.Builder builderForValue) { + if (membershipBuilder_ == null) { + membership_ = builderForValue.build(); + } else { + membershipBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The updated membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public Builder mergeMembership(com.google.chat.v1.Membership value) { + if (membershipBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && membership_ != null + && membership_ != com.google.chat.v1.Membership.getDefaultInstance()) { + getMembershipBuilder().mergeFrom(value); + } else { + membership_ = value; + } + } else { + membershipBuilder_.mergeFrom(value); + } + if (membership_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The updated membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public Builder clearMembership() { + bitField0_ = (bitField0_ & ~0x00000001); + membership_ = null; + if (membershipBuilder_ != null) { + membershipBuilder_.dispose(); + membershipBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The updated membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public com.google.chat.v1.Membership.Builder getMembershipBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMembershipFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The updated membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + public com.google.chat.v1.MembershipOrBuilder getMembershipOrBuilder() { + if (membershipBuilder_ != null) { + return membershipBuilder_.getMessageOrBuilder(); + } else { + return membership_ == null + ? com.google.chat.v1.Membership.getDefaultInstance() + : membership_; + } + } + /** + * + * + *
        +     * The updated membership.
        +     * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Membership, + com.google.chat.v1.Membership.Builder, + com.google.chat.v1.MembershipOrBuilder> + getMembershipFieldBuilder() { + if (membershipBuilder_ == null) { + membershipBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Membership, + com.google.chat.v1.Membership.Builder, + com.google.chat.v1.MembershipOrBuilder>( + getMembership(), getParentForChildren(), isClean()); + membership_ = null; + } + return membershipBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.MembershipUpdatedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MembershipUpdatedEventData) + private static final com.google.chat.v1.MembershipUpdatedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MembershipUpdatedEventData(); + } + + public static com.google.chat.v1.MembershipUpdatedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipUpdatedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MembershipUpdatedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipUpdatedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipUpdatedEventDataOrBuilder.java new file mode 100644 index 000000000000..81ab14fb4c62 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipUpdatedEventDataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface MembershipUpdatedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MembershipUpdatedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The updated membership.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return Whether the membership field is set. + */ + boolean hasMembership(); + /** + * + * + *
        +   * The updated membership.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + * + * @return The membership. + */ + com.google.chat.v1.Membership getMembership(); + /** + * + * + *
        +   * The updated membership.
        +   * 
        + * + * .google.chat.v1.Membership membership = 1; + */ + com.google.chat.v1.MembershipOrBuilder getMembershipOrBuilder(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchCreatedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchCreatedEventData.java new file mode 100644 index 000000000000..3845f92f0bc9 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchCreatedEventData.java @@ -0,0 +1,940 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for multiple new messages.
        + *
        + * Event type: `google.workspace.chat.message.v1.batchCreated`
        + * 
        + * + * Protobuf type {@code google.chat.v1.MessageBatchCreatedEventData} + */ +public final class MessageBatchCreatedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MessageBatchCreatedEventData) + MessageBatchCreatedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use MessageBatchCreatedEventData.newBuilder() to construct. + private MessageBatchCreatedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MessageBatchCreatedEventData() { + messages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MessageBatchCreatedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchCreatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchCreatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MessageBatchCreatedEventData.class, + com.google.chat.v1.MessageBatchCreatedEventData.Builder.class); + } + + public static final int MESSAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List messages_; + /** + * + * + *
        +   * A list of new messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + @java.lang.Override + public java.util.List getMessagesList() { + return messages_; + } + /** + * + * + *
        +   * A list of new messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + @java.lang.Override + public java.util.List + getMessagesOrBuilderList() { + return messages_; + } + /** + * + * + *
        +   * A list of new messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + @java.lang.Override + public int getMessagesCount() { + return messages_.size(); + } + /** + * + * + *
        +   * A list of new messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + @java.lang.Override + public com.google.chat.v1.MessageCreatedEventData getMessages(int index) { + return messages_.get(index); + } + /** + * + * + *
        +   * A list of new messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + @java.lang.Override + public com.google.chat.v1.MessageCreatedEventDataOrBuilder getMessagesOrBuilder(int index) { + return messages_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < messages_.size(); i++) { + output.writeMessage(1, messages_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < messages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, messages_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.MessageBatchCreatedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.MessageBatchCreatedEventData other = + (com.google.chat.v1.MessageBatchCreatedEventData) obj; + + if (!getMessagesList().equals(other.getMessagesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.MessageBatchCreatedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageBatchCreatedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchCreatedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageBatchCreatedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchCreatedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageBatchCreatedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchCreatedEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageBatchCreatedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchCreatedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageBatchCreatedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchCreatedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageBatchCreatedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MessageBatchCreatedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for multiple new messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchCreated`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.MessageBatchCreatedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MessageBatchCreatedEventData) + com.google.chat.v1.MessageBatchCreatedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchCreatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchCreatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MessageBatchCreatedEventData.class, + com.google.chat.v1.MessageBatchCreatedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.MessageBatchCreatedEventData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + } else { + messages_ = null; + messagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchCreatedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MessageBatchCreatedEventData getDefaultInstanceForType() { + return com.google.chat.v1.MessageBatchCreatedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MessageBatchCreatedEventData build() { + com.google.chat.v1.MessageBatchCreatedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MessageBatchCreatedEventData buildPartial() { + com.google.chat.v1.MessageBatchCreatedEventData result = + new com.google.chat.v1.MessageBatchCreatedEventData(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.chat.v1.MessageBatchCreatedEventData result) { + if (messagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + messages_ = java.util.Collections.unmodifiableList(messages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.messages_ = messages_; + } else { + result.messages_ = messagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.MessageBatchCreatedEventData result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.MessageBatchCreatedEventData) { + return mergeFrom((com.google.chat.v1.MessageBatchCreatedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MessageBatchCreatedEventData other) { + if (other == com.google.chat.v1.MessageBatchCreatedEventData.getDefaultInstance()) + return this; + if (messagesBuilder_ == null) { + if (!other.messages_.isEmpty()) { + if (messages_.isEmpty()) { + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMessagesIsMutable(); + messages_.addAll(other.messages_); + } + onChanged(); + } + } else { + if (!other.messages_.isEmpty()) { + if (messagesBuilder_.isEmpty()) { + messagesBuilder_.dispose(); + messagesBuilder_ = null; + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000001); + messagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessagesFieldBuilder() + : null; + } else { + messagesBuilder_.addAllMessages(other.messages_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.chat.v1.MessageCreatedEventData m = + input.readMessage( + com.google.chat.v1.MessageCreatedEventData.parser(), extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List messages_ = + java.util.Collections.emptyList(); + + private void ensureMessagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + messages_ = new java.util.ArrayList(messages_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MessageCreatedEventData, + com.google.chat.v1.MessageCreatedEventData.Builder, + com.google.chat.v1.MessageCreatedEventDataOrBuilder> + messagesBuilder_; + + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public java.util.List getMessagesList() { + if (messagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(messages_); + } else { + return messagesBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public int getMessagesCount() { + if (messagesBuilder_ == null) { + return messages_.size(); + } else { + return messagesBuilder_.getCount(); + } + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public com.google.chat.v1.MessageCreatedEventData getMessages(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public Builder setMessages(int index, com.google.chat.v1.MessageCreatedEventData value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.set(index, value); + onChanged(); + } else { + messagesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public Builder setMessages( + int index, com.google.chat.v1.MessageCreatedEventData.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.set(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public Builder addMessages(com.google.chat.v1.MessageCreatedEventData value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(value); + onChanged(); + } else { + messagesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public Builder addMessages(int index, com.google.chat.v1.MessageCreatedEventData value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(index, value); + onChanged(); + } else { + messagesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public Builder addMessages(com.google.chat.v1.MessageCreatedEventData.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public Builder addMessages( + int index, com.google.chat.v1.MessageCreatedEventData.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public Builder addAllMessages( + java.lang.Iterable values) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + onChanged(); + } else { + messagesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public Builder clearMessages() { + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + messagesBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public Builder removeMessages(int index) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.remove(index); + onChanged(); + } else { + messagesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public com.google.chat.v1.MessageCreatedEventData.Builder getMessagesBuilder(int index) { + return getMessagesFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public com.google.chat.v1.MessageCreatedEventDataOrBuilder getMessagesOrBuilder(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public java.util.List + getMessagesOrBuilderList() { + if (messagesBuilder_ != null) { + return messagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messages_); + } + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public com.google.chat.v1.MessageCreatedEventData.Builder addMessagesBuilder() { + return getMessagesFieldBuilder() + .addBuilder(com.google.chat.v1.MessageCreatedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public com.google.chat.v1.MessageCreatedEventData.Builder addMessagesBuilder(int index) { + return getMessagesFieldBuilder() + .addBuilder(index, com.google.chat.v1.MessageCreatedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of new messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + public java.util.List + getMessagesBuilderList() { + return getMessagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MessageCreatedEventData, + com.google.chat.v1.MessageCreatedEventData.Builder, + com.google.chat.v1.MessageCreatedEventDataOrBuilder> + getMessagesFieldBuilder() { + if (messagesBuilder_ == null) { + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MessageCreatedEventData, + com.google.chat.v1.MessageCreatedEventData.Builder, + com.google.chat.v1.MessageCreatedEventDataOrBuilder>( + messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + messages_ = null; + } + return messagesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.MessageBatchCreatedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MessageBatchCreatedEventData) + private static final com.google.chat.v1.MessageBatchCreatedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MessageBatchCreatedEventData(); + } + + public static com.google.chat.v1.MessageBatchCreatedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageBatchCreatedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MessageBatchCreatedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchCreatedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchCreatedEventDataOrBuilder.java new file mode 100644 index 000000000000..27cfbd36d74c --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchCreatedEventDataOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface MessageBatchCreatedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MessageBatchCreatedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * A list of new messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + java.util.List getMessagesList(); + /** + * + * + *
        +   * A list of new messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + com.google.chat.v1.MessageCreatedEventData getMessages(int index); + /** + * + * + *
        +   * A list of new messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + int getMessagesCount(); + /** + * + * + *
        +   * A list of new messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + java.util.List + getMessagesOrBuilderList(); + /** + * + * + *
        +   * A list of new messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageCreatedEventData messages = 1; + */ + com.google.chat.v1.MessageCreatedEventDataOrBuilder getMessagesOrBuilder(int index); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchDeletedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchDeletedEventData.java new file mode 100644 index 000000000000..9c27ad4c4934 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchDeletedEventData.java @@ -0,0 +1,940 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for multiple deleted messages.
        + *
        + * Event type: `google.workspace.chat.message.v1.batchDeleted`
        + * 
        + * + * Protobuf type {@code google.chat.v1.MessageBatchDeletedEventData} + */ +public final class MessageBatchDeletedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MessageBatchDeletedEventData) + MessageBatchDeletedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use MessageBatchDeletedEventData.newBuilder() to construct. + private MessageBatchDeletedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MessageBatchDeletedEventData() { + messages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MessageBatchDeletedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchDeletedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchDeletedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MessageBatchDeletedEventData.class, + com.google.chat.v1.MessageBatchDeletedEventData.Builder.class); + } + + public static final int MESSAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List messages_; + /** + * + * + *
        +   * A list of deleted messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + @java.lang.Override + public java.util.List getMessagesList() { + return messages_; + } + /** + * + * + *
        +   * A list of deleted messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + @java.lang.Override + public java.util.List + getMessagesOrBuilderList() { + return messages_; + } + /** + * + * + *
        +   * A list of deleted messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + @java.lang.Override + public int getMessagesCount() { + return messages_.size(); + } + /** + * + * + *
        +   * A list of deleted messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + @java.lang.Override + public com.google.chat.v1.MessageDeletedEventData getMessages(int index) { + return messages_.get(index); + } + /** + * + * + *
        +   * A list of deleted messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + @java.lang.Override + public com.google.chat.v1.MessageDeletedEventDataOrBuilder getMessagesOrBuilder(int index) { + return messages_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < messages_.size(); i++) { + output.writeMessage(1, messages_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < messages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, messages_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.MessageBatchDeletedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.MessageBatchDeletedEventData other = + (com.google.chat.v1.MessageBatchDeletedEventData) obj; + + if (!getMessagesList().equals(other.getMessagesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.MessageBatchDeletedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageBatchDeletedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchDeletedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageBatchDeletedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchDeletedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageBatchDeletedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchDeletedEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageBatchDeletedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchDeletedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageBatchDeletedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchDeletedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageBatchDeletedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MessageBatchDeletedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for multiple deleted messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.MessageBatchDeletedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MessageBatchDeletedEventData) + com.google.chat.v1.MessageBatchDeletedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchDeletedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchDeletedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MessageBatchDeletedEventData.class, + com.google.chat.v1.MessageBatchDeletedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.MessageBatchDeletedEventData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + } else { + messages_ = null; + messagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchDeletedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MessageBatchDeletedEventData getDefaultInstanceForType() { + return com.google.chat.v1.MessageBatchDeletedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MessageBatchDeletedEventData build() { + com.google.chat.v1.MessageBatchDeletedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MessageBatchDeletedEventData buildPartial() { + com.google.chat.v1.MessageBatchDeletedEventData result = + new com.google.chat.v1.MessageBatchDeletedEventData(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.chat.v1.MessageBatchDeletedEventData result) { + if (messagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + messages_ = java.util.Collections.unmodifiableList(messages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.messages_ = messages_; + } else { + result.messages_ = messagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.MessageBatchDeletedEventData result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.MessageBatchDeletedEventData) { + return mergeFrom((com.google.chat.v1.MessageBatchDeletedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MessageBatchDeletedEventData other) { + if (other == com.google.chat.v1.MessageBatchDeletedEventData.getDefaultInstance()) + return this; + if (messagesBuilder_ == null) { + if (!other.messages_.isEmpty()) { + if (messages_.isEmpty()) { + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMessagesIsMutable(); + messages_.addAll(other.messages_); + } + onChanged(); + } + } else { + if (!other.messages_.isEmpty()) { + if (messagesBuilder_.isEmpty()) { + messagesBuilder_.dispose(); + messagesBuilder_ = null; + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000001); + messagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessagesFieldBuilder() + : null; + } else { + messagesBuilder_.addAllMessages(other.messages_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.chat.v1.MessageDeletedEventData m = + input.readMessage( + com.google.chat.v1.MessageDeletedEventData.parser(), extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List messages_ = + java.util.Collections.emptyList(); + + private void ensureMessagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + messages_ = new java.util.ArrayList(messages_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MessageDeletedEventData, + com.google.chat.v1.MessageDeletedEventData.Builder, + com.google.chat.v1.MessageDeletedEventDataOrBuilder> + messagesBuilder_; + + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public java.util.List getMessagesList() { + if (messagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(messages_); + } else { + return messagesBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public int getMessagesCount() { + if (messagesBuilder_ == null) { + return messages_.size(); + } else { + return messagesBuilder_.getCount(); + } + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public com.google.chat.v1.MessageDeletedEventData getMessages(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public Builder setMessages(int index, com.google.chat.v1.MessageDeletedEventData value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.set(index, value); + onChanged(); + } else { + messagesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public Builder setMessages( + int index, com.google.chat.v1.MessageDeletedEventData.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.set(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public Builder addMessages(com.google.chat.v1.MessageDeletedEventData value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(value); + onChanged(); + } else { + messagesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public Builder addMessages(int index, com.google.chat.v1.MessageDeletedEventData value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(index, value); + onChanged(); + } else { + messagesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public Builder addMessages(com.google.chat.v1.MessageDeletedEventData.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public Builder addMessages( + int index, com.google.chat.v1.MessageDeletedEventData.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public Builder addAllMessages( + java.lang.Iterable values) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + onChanged(); + } else { + messagesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public Builder clearMessages() { + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + messagesBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public Builder removeMessages(int index) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.remove(index); + onChanged(); + } else { + messagesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public com.google.chat.v1.MessageDeletedEventData.Builder getMessagesBuilder(int index) { + return getMessagesFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public com.google.chat.v1.MessageDeletedEventDataOrBuilder getMessagesOrBuilder(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public java.util.List + getMessagesOrBuilderList() { + if (messagesBuilder_ != null) { + return messagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messages_); + } + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public com.google.chat.v1.MessageDeletedEventData.Builder addMessagesBuilder() { + return getMessagesFieldBuilder() + .addBuilder(com.google.chat.v1.MessageDeletedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public com.google.chat.v1.MessageDeletedEventData.Builder addMessagesBuilder(int index) { + return getMessagesFieldBuilder() + .addBuilder(index, com.google.chat.v1.MessageDeletedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of deleted messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + public java.util.List + getMessagesBuilderList() { + return getMessagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MessageDeletedEventData, + com.google.chat.v1.MessageDeletedEventData.Builder, + com.google.chat.v1.MessageDeletedEventDataOrBuilder> + getMessagesFieldBuilder() { + if (messagesBuilder_ == null) { + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MessageDeletedEventData, + com.google.chat.v1.MessageDeletedEventData.Builder, + com.google.chat.v1.MessageDeletedEventDataOrBuilder>( + messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + messages_ = null; + } + return messagesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.MessageBatchDeletedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MessageBatchDeletedEventData) + private static final com.google.chat.v1.MessageBatchDeletedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MessageBatchDeletedEventData(); + } + + public static com.google.chat.v1.MessageBatchDeletedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageBatchDeletedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MessageBatchDeletedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchDeletedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchDeletedEventDataOrBuilder.java new file mode 100644 index 000000000000..252337750328 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchDeletedEventDataOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface MessageBatchDeletedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MessageBatchDeletedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * A list of deleted messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + java.util.List getMessagesList(); + /** + * + * + *
        +   * A list of deleted messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + com.google.chat.v1.MessageDeletedEventData getMessages(int index); + /** + * + * + *
        +   * A list of deleted messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + int getMessagesCount(); + /** + * + * + *
        +   * A list of deleted messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + java.util.List + getMessagesOrBuilderList(); + /** + * + * + *
        +   * A list of deleted messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageDeletedEventData messages = 1; + */ + com.google.chat.v1.MessageDeletedEventDataOrBuilder getMessagesOrBuilder(int index); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchUpdatedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchUpdatedEventData.java new file mode 100644 index 000000000000..ba74ff8a2994 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchUpdatedEventData.java @@ -0,0 +1,940 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for multiple updated messages.
        + *
        + * Event type: `google.workspace.chat.message.v1.batchUpdated`
        + * 
        + * + * Protobuf type {@code google.chat.v1.MessageBatchUpdatedEventData} + */ +public final class MessageBatchUpdatedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MessageBatchUpdatedEventData) + MessageBatchUpdatedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use MessageBatchUpdatedEventData.newBuilder() to construct. + private MessageBatchUpdatedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MessageBatchUpdatedEventData() { + messages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MessageBatchUpdatedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchUpdatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchUpdatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MessageBatchUpdatedEventData.class, + com.google.chat.v1.MessageBatchUpdatedEventData.Builder.class); + } + + public static final int MESSAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List messages_; + /** + * + * + *
        +   * A list of updated messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + @java.lang.Override + public java.util.List getMessagesList() { + return messages_; + } + /** + * + * + *
        +   * A list of updated messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + @java.lang.Override + public java.util.List + getMessagesOrBuilderList() { + return messages_; + } + /** + * + * + *
        +   * A list of updated messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + @java.lang.Override + public int getMessagesCount() { + return messages_.size(); + } + /** + * + * + *
        +   * A list of updated messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + @java.lang.Override + public com.google.chat.v1.MessageUpdatedEventData getMessages(int index) { + return messages_.get(index); + } + /** + * + * + *
        +   * A list of updated messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + @java.lang.Override + public com.google.chat.v1.MessageUpdatedEventDataOrBuilder getMessagesOrBuilder(int index) { + return messages_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < messages_.size(); i++) { + output.writeMessage(1, messages_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < messages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, messages_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.MessageBatchUpdatedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.MessageBatchUpdatedEventData other = + (com.google.chat.v1.MessageBatchUpdatedEventData) obj; + + if (!getMessagesList().equals(other.getMessagesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.MessageBatchUpdatedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageBatchUpdatedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchUpdatedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageBatchUpdatedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchUpdatedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageBatchUpdatedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchUpdatedEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageBatchUpdatedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchUpdatedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageBatchUpdatedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MessageBatchUpdatedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageBatchUpdatedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MessageBatchUpdatedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for multiple updated messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.MessageBatchUpdatedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MessageBatchUpdatedEventData) + com.google.chat.v1.MessageBatchUpdatedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchUpdatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchUpdatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MessageBatchUpdatedEventData.class, + com.google.chat.v1.MessageBatchUpdatedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.MessageBatchUpdatedEventData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + } else { + messages_ = null; + messagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageBatchUpdatedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MessageBatchUpdatedEventData getDefaultInstanceForType() { + return com.google.chat.v1.MessageBatchUpdatedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MessageBatchUpdatedEventData build() { + com.google.chat.v1.MessageBatchUpdatedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MessageBatchUpdatedEventData buildPartial() { + com.google.chat.v1.MessageBatchUpdatedEventData result = + new com.google.chat.v1.MessageBatchUpdatedEventData(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.chat.v1.MessageBatchUpdatedEventData result) { + if (messagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + messages_ = java.util.Collections.unmodifiableList(messages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.messages_ = messages_; + } else { + result.messages_ = messagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.MessageBatchUpdatedEventData result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.MessageBatchUpdatedEventData) { + return mergeFrom((com.google.chat.v1.MessageBatchUpdatedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MessageBatchUpdatedEventData other) { + if (other == com.google.chat.v1.MessageBatchUpdatedEventData.getDefaultInstance()) + return this; + if (messagesBuilder_ == null) { + if (!other.messages_.isEmpty()) { + if (messages_.isEmpty()) { + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMessagesIsMutable(); + messages_.addAll(other.messages_); + } + onChanged(); + } + } else { + if (!other.messages_.isEmpty()) { + if (messagesBuilder_.isEmpty()) { + messagesBuilder_.dispose(); + messagesBuilder_ = null; + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000001); + messagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessagesFieldBuilder() + : null; + } else { + messagesBuilder_.addAllMessages(other.messages_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.chat.v1.MessageUpdatedEventData m = + input.readMessage( + com.google.chat.v1.MessageUpdatedEventData.parser(), extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List messages_ = + java.util.Collections.emptyList(); + + private void ensureMessagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + messages_ = new java.util.ArrayList(messages_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MessageUpdatedEventData, + com.google.chat.v1.MessageUpdatedEventData.Builder, + com.google.chat.v1.MessageUpdatedEventDataOrBuilder> + messagesBuilder_; + + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public java.util.List getMessagesList() { + if (messagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(messages_); + } else { + return messagesBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public int getMessagesCount() { + if (messagesBuilder_ == null) { + return messages_.size(); + } else { + return messagesBuilder_.getCount(); + } + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public com.google.chat.v1.MessageUpdatedEventData getMessages(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public Builder setMessages(int index, com.google.chat.v1.MessageUpdatedEventData value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.set(index, value); + onChanged(); + } else { + messagesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public Builder setMessages( + int index, com.google.chat.v1.MessageUpdatedEventData.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.set(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public Builder addMessages(com.google.chat.v1.MessageUpdatedEventData value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(value); + onChanged(); + } else { + messagesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public Builder addMessages(int index, com.google.chat.v1.MessageUpdatedEventData value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(index, value); + onChanged(); + } else { + messagesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public Builder addMessages(com.google.chat.v1.MessageUpdatedEventData.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public Builder addMessages( + int index, com.google.chat.v1.MessageUpdatedEventData.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public Builder addAllMessages( + java.lang.Iterable values) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + onChanged(); + } else { + messagesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public Builder clearMessages() { + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + messagesBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public Builder removeMessages(int index) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.remove(index); + onChanged(); + } else { + messagesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public com.google.chat.v1.MessageUpdatedEventData.Builder getMessagesBuilder(int index) { + return getMessagesFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public com.google.chat.v1.MessageUpdatedEventDataOrBuilder getMessagesOrBuilder(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public java.util.List + getMessagesOrBuilderList() { + if (messagesBuilder_ != null) { + return messagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messages_); + } + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public com.google.chat.v1.MessageUpdatedEventData.Builder addMessagesBuilder() { + return getMessagesFieldBuilder() + .addBuilder(com.google.chat.v1.MessageUpdatedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public com.google.chat.v1.MessageUpdatedEventData.Builder addMessagesBuilder(int index) { + return getMessagesFieldBuilder() + .addBuilder(index, com.google.chat.v1.MessageUpdatedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of updated messages.
        +     * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + public java.util.List + getMessagesBuilderList() { + return getMessagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MessageUpdatedEventData, + com.google.chat.v1.MessageUpdatedEventData.Builder, + com.google.chat.v1.MessageUpdatedEventDataOrBuilder> + getMessagesFieldBuilder() { + if (messagesBuilder_ == null) { + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.MessageUpdatedEventData, + com.google.chat.v1.MessageUpdatedEventData.Builder, + com.google.chat.v1.MessageUpdatedEventDataOrBuilder>( + messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + messages_ = null; + } + return messagesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.MessageBatchUpdatedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MessageBatchUpdatedEventData) + private static final com.google.chat.v1.MessageBatchUpdatedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MessageBatchUpdatedEventData(); + } + + public static com.google.chat.v1.MessageBatchUpdatedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageBatchUpdatedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MessageBatchUpdatedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchUpdatedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchUpdatedEventDataOrBuilder.java new file mode 100644 index 000000000000..325a8fbac0f2 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageBatchUpdatedEventDataOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface MessageBatchUpdatedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MessageBatchUpdatedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * A list of updated messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + java.util.List getMessagesList(); + /** + * + * + *
        +   * A list of updated messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + com.google.chat.v1.MessageUpdatedEventData getMessages(int index); + /** + * + * + *
        +   * A list of updated messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + int getMessagesCount(); + /** + * + * + *
        +   * A list of updated messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + java.util.List + getMessagesOrBuilderList(); + /** + * + * + *
        +   * A list of updated messages.
        +   * 
        + * + * repeated .google.chat.v1.MessageUpdatedEventData messages = 1; + */ + com.google.chat.v1.MessageUpdatedEventDataOrBuilder getMessagesOrBuilder(int index); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageCreatedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageCreatedEventData.java new file mode 100644 index 000000000000..370b9155faa5 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageCreatedEventData.java @@ -0,0 +1,716 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for a new message.
        + *
        + * Event type: `google.workspace.chat.message.v1.created`
        + * 
        + * + * Protobuf type {@code google.chat.v1.MessageCreatedEventData} + */ +public final class MessageCreatedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MessageCreatedEventData) + MessageCreatedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use MessageCreatedEventData.newBuilder() to construct. + private MessageCreatedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MessageCreatedEventData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MessageCreatedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageCreatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageCreatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MessageCreatedEventData.class, + com.google.chat.v1.MessageCreatedEventData.Builder.class); + } + + private int bitField0_; + public static final int MESSAGE_FIELD_NUMBER = 1; + private com.google.chat.v1.Message message_; + /** + * + * + *
        +   * The new message.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return Whether the message field is set. + */ + @java.lang.Override + public boolean hasMessage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * The new message.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return The message. + */ + @java.lang.Override + public com.google.chat.v1.Message getMessage() { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } + /** + * + * + *
        +   * The new message.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + */ + @java.lang.Override + public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMessage()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMessage()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.MessageCreatedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.MessageCreatedEventData other = + (com.google.chat.v1.MessageCreatedEventData) obj; + + if (hasMessage() != other.hasMessage()) return false; + if (hasMessage()) { + if (!getMessage().equals(other.getMessage())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.MessageCreatedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageCreatedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageCreatedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageCreatedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageCreatedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageCreatedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageCreatedEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageCreatedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MessageCreatedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageCreatedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MessageCreatedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageCreatedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MessageCreatedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for a new message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.created`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.MessageCreatedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MessageCreatedEventData) + com.google.chat.v1.MessageCreatedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageCreatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageCreatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MessageCreatedEventData.class, + com.google.chat.v1.MessageCreatedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.MessageCreatedEventData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMessageFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); + messageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageCreatedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MessageCreatedEventData getDefaultInstanceForType() { + return com.google.chat.v1.MessageCreatedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MessageCreatedEventData build() { + com.google.chat.v1.MessageCreatedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MessageCreatedEventData buildPartial() { + com.google.chat.v1.MessageCreatedEventData result = + new com.google.chat.v1.MessageCreatedEventData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.MessageCreatedEventData result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.MessageCreatedEventData) { + return mergeFrom((com.google.chat.v1.MessageCreatedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MessageCreatedEventData other) { + if (other == com.google.chat.v1.MessageCreatedEventData.getDefaultInstance()) return this; + if (other.hasMessage()) { + mergeMessage(other.getMessage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getMessageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.chat.v1.Message message_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Message, + com.google.chat.v1.Message.Builder, + com.google.chat.v1.MessageOrBuilder> + messageBuilder_; + /** + * + * + *
        +     * The new message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return Whether the message field is set. + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * The new message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return The message. + */ + public com.google.chat.v1.Message getMessage() { + if (messageBuilder_ == null) { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } else { + return messageBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The new message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public Builder setMessage(com.google.chat.v1.Message value) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + } else { + messageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The new message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public Builder setMessage(com.google.chat.v1.Message.Builder builderForValue) { + if (messageBuilder_ == null) { + message_ = builderForValue.build(); + } else { + messageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The new message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public Builder mergeMessage(com.google.chat.v1.Message value) { + if (messageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && message_ != null + && message_ != com.google.chat.v1.Message.getDefaultInstance()) { + getMessageBuilder().mergeFrom(value); + } else { + message_ = value; + } + } else { + messageBuilder_.mergeFrom(value); + } + if (message_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The new message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public Builder clearMessage() { + bitField0_ = (bitField0_ & ~0x00000001); + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); + messageBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The new message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public com.google.chat.v1.Message.Builder getMessageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMessageFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The new message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { + if (messageBuilder_ != null) { + return messageBuilder_.getMessageOrBuilder(); + } else { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } + } + /** + * + * + *
        +     * The new message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Message, + com.google.chat.v1.Message.Builder, + com.google.chat.v1.MessageOrBuilder> + getMessageFieldBuilder() { + if (messageBuilder_ == null) { + messageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Message, + com.google.chat.v1.Message.Builder, + com.google.chat.v1.MessageOrBuilder>( + getMessage(), getParentForChildren(), isClean()); + message_ = null; + } + return messageBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.MessageCreatedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MessageCreatedEventData) + private static final com.google.chat.v1.MessageCreatedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MessageCreatedEventData(); + } + + public static com.google.chat.v1.MessageCreatedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageCreatedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MessageCreatedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageCreatedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageCreatedEventDataOrBuilder.java new file mode 100644 index 000000000000..79f0aab69b21 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageCreatedEventDataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface MessageCreatedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MessageCreatedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The new message.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return Whether the message field is set. + */ + boolean hasMessage(); + /** + * + * + *
        +   * The new message.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return The message. + */ + com.google.chat.v1.Message getMessage(); + /** + * + * + *
        +   * The new message.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + */ + com.google.chat.v1.MessageOrBuilder getMessageOrBuilder(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageDeletedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageDeletedEventData.java new file mode 100644 index 000000000000..faae753e99da --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageDeletedEventData.java @@ -0,0 +1,728 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for a deleted message.
        + *
        + * Event type: `google.workspace.chat.message.v1.deleted`
        + * 
        + * + * Protobuf type {@code google.chat.v1.MessageDeletedEventData} + */ +public final class MessageDeletedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MessageDeletedEventData) + MessageDeletedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use MessageDeletedEventData.newBuilder() to construct. + private MessageDeletedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MessageDeletedEventData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MessageDeletedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageDeletedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageDeletedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MessageDeletedEventData.class, + com.google.chat.v1.MessageDeletedEventData.Builder.class); + } + + private int bitField0_; + public static final int MESSAGE_FIELD_NUMBER = 1; + private com.google.chat.v1.Message message_; + /** + * + * + *
        +   * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +   * `deletionMetadata` fields are populated.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return Whether the message field is set. + */ + @java.lang.Override + public boolean hasMessage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +   * `deletionMetadata` fields are populated.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return The message. + */ + @java.lang.Override + public com.google.chat.v1.Message getMessage() { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } + /** + * + * + *
        +   * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +   * `deletionMetadata` fields are populated.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + */ + @java.lang.Override + public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMessage()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMessage()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.MessageDeletedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.MessageDeletedEventData other = + (com.google.chat.v1.MessageDeletedEventData) obj; + + if (hasMessage() != other.hasMessage()) return false; + if (hasMessage()) { + if (!getMessage().equals(other.getMessage())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.MessageDeletedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageDeletedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageDeletedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageDeletedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageDeletedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageDeletedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageDeletedEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageDeletedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MessageDeletedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageDeletedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MessageDeletedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageDeletedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MessageDeletedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for a deleted message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.deleted`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.MessageDeletedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MessageDeletedEventData) + com.google.chat.v1.MessageDeletedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageDeletedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageDeletedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MessageDeletedEventData.class, + com.google.chat.v1.MessageDeletedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.MessageDeletedEventData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMessageFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); + messageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageDeletedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MessageDeletedEventData getDefaultInstanceForType() { + return com.google.chat.v1.MessageDeletedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MessageDeletedEventData build() { + com.google.chat.v1.MessageDeletedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MessageDeletedEventData buildPartial() { + com.google.chat.v1.MessageDeletedEventData result = + new com.google.chat.v1.MessageDeletedEventData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.MessageDeletedEventData result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.MessageDeletedEventData) { + return mergeFrom((com.google.chat.v1.MessageDeletedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MessageDeletedEventData other) { + if (other == com.google.chat.v1.MessageDeletedEventData.getDefaultInstance()) return this; + if (other.hasMessage()) { + mergeMessage(other.getMessage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getMessageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.chat.v1.Message message_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Message, + com.google.chat.v1.Message.Builder, + com.google.chat.v1.MessageOrBuilder> + messageBuilder_; + /** + * + * + *
        +     * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +     * `deletionMetadata` fields are populated.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return Whether the message field is set. + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +     * `deletionMetadata` fields are populated.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return The message. + */ + public com.google.chat.v1.Message getMessage() { + if (messageBuilder_ == null) { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } else { + return messageBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +     * `deletionMetadata` fields are populated.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public Builder setMessage(com.google.chat.v1.Message value) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + } else { + messageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +     * `deletionMetadata` fields are populated.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public Builder setMessage(com.google.chat.v1.Message.Builder builderForValue) { + if (messageBuilder_ == null) { + message_ = builderForValue.build(); + } else { + messageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +     * `deletionMetadata` fields are populated.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public Builder mergeMessage(com.google.chat.v1.Message value) { + if (messageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && message_ != null + && message_ != com.google.chat.v1.Message.getDefaultInstance()) { + getMessageBuilder().mergeFrom(value); + } else { + message_ = value; + } + } else { + messageBuilder_.mergeFrom(value); + } + if (message_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +     * `deletionMetadata` fields are populated.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public Builder clearMessage() { + bitField0_ = (bitField0_ & ~0x00000001); + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); + messageBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +     * `deletionMetadata` fields are populated.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public com.google.chat.v1.Message.Builder getMessageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMessageFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +     * `deletionMetadata` fields are populated.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { + if (messageBuilder_ != null) { + return messageBuilder_.getMessageOrBuilder(); + } else { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } + } + /** + * + * + *
        +     * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +     * `deletionMetadata` fields are populated.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Message, + com.google.chat.v1.Message.Builder, + com.google.chat.v1.MessageOrBuilder> + getMessageFieldBuilder() { + if (messageBuilder_ == null) { + messageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Message, + com.google.chat.v1.Message.Builder, + com.google.chat.v1.MessageOrBuilder>( + getMessage(), getParentForChildren(), isClean()); + message_ = null; + } + return messageBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.MessageDeletedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MessageDeletedEventData) + private static final com.google.chat.v1.MessageDeletedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MessageDeletedEventData(); + } + + public static com.google.chat.v1.MessageDeletedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageDeletedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MessageDeletedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageDeletedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageDeletedEventDataOrBuilder.java new file mode 100644 index 000000000000..e6f70359e7e8 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageDeletedEventDataOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface MessageDeletedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MessageDeletedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +   * `deletionMetadata` fields are populated.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return Whether the message field is set. + */ + boolean hasMessage(); + /** + * + * + *
        +   * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +   * `deletionMetadata` fields are populated.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return The message. + */ + com.google.chat.v1.Message getMessage(); + /** + * + * + *
        +   * The deleted message. Only the `name`, `createTime`, `deleteTime`, and
        +   * `deletionMetadata` fields are populated.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + */ + com.google.chat.v1.MessageOrBuilder getMessageOrBuilder(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageUpdatedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageUpdatedEventData.java new file mode 100644 index 000000000000..85e75e43672f --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageUpdatedEventData.java @@ -0,0 +1,716 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for an updated message.
        + *
        + * Event type: `google.workspace.chat.message.v1.updated`
        + * 
        + * + * Protobuf type {@code google.chat.v1.MessageUpdatedEventData} + */ +public final class MessageUpdatedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.MessageUpdatedEventData) + MessageUpdatedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use MessageUpdatedEventData.newBuilder() to construct. + private MessageUpdatedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MessageUpdatedEventData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MessageUpdatedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageUpdatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageUpdatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MessageUpdatedEventData.class, + com.google.chat.v1.MessageUpdatedEventData.Builder.class); + } + + private int bitField0_; + public static final int MESSAGE_FIELD_NUMBER = 1; + private com.google.chat.v1.Message message_; + /** + * + * + *
        +   * The updated message.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return Whether the message field is set. + */ + @java.lang.Override + public boolean hasMessage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * The updated message.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return The message. + */ + @java.lang.Override + public com.google.chat.v1.Message getMessage() { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } + /** + * + * + *
        +   * The updated message.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + */ + @java.lang.Override + public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMessage()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMessage()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.MessageUpdatedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.MessageUpdatedEventData other = + (com.google.chat.v1.MessageUpdatedEventData) obj; + + if (hasMessage() != other.hasMessage()) return false; + if (hasMessage()) { + if (!getMessage().equals(other.getMessage())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.MessageUpdatedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageUpdatedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageUpdatedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageUpdatedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageUpdatedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.MessageUpdatedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.MessageUpdatedEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageUpdatedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MessageUpdatedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageUpdatedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.MessageUpdatedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.MessageUpdatedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.MessageUpdatedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for an updated message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.updated`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.MessageUpdatedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.MessageUpdatedEventData) + com.google.chat.v1.MessageUpdatedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageUpdatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageUpdatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.MessageUpdatedEventData.class, + com.google.chat.v1.MessageUpdatedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.MessageUpdatedEventData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMessageFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); + messageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_MessageUpdatedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.MessageUpdatedEventData getDefaultInstanceForType() { + return com.google.chat.v1.MessageUpdatedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.MessageUpdatedEventData build() { + com.google.chat.v1.MessageUpdatedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.MessageUpdatedEventData buildPartial() { + com.google.chat.v1.MessageUpdatedEventData result = + new com.google.chat.v1.MessageUpdatedEventData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.MessageUpdatedEventData result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.MessageUpdatedEventData) { + return mergeFrom((com.google.chat.v1.MessageUpdatedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.MessageUpdatedEventData other) { + if (other == com.google.chat.v1.MessageUpdatedEventData.getDefaultInstance()) return this; + if (other.hasMessage()) { + mergeMessage(other.getMessage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getMessageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.chat.v1.Message message_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Message, + com.google.chat.v1.Message.Builder, + com.google.chat.v1.MessageOrBuilder> + messageBuilder_; + /** + * + * + *
        +     * The updated message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return Whether the message field is set. + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * The updated message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return The message. + */ + public com.google.chat.v1.Message getMessage() { + if (messageBuilder_ == null) { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } else { + return messageBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The updated message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public Builder setMessage(com.google.chat.v1.Message value) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + } else { + messageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The updated message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public Builder setMessage(com.google.chat.v1.Message.Builder builderForValue) { + if (messageBuilder_ == null) { + message_ = builderForValue.build(); + } else { + messageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The updated message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public Builder mergeMessage(com.google.chat.v1.Message value) { + if (messageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && message_ != null + && message_ != com.google.chat.v1.Message.getDefaultInstance()) { + getMessageBuilder().mergeFrom(value); + } else { + message_ = value; + } + } else { + messageBuilder_.mergeFrom(value); + } + if (message_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The updated message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public Builder clearMessage() { + bitField0_ = (bitField0_ & ~0x00000001); + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); + messageBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The updated message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public com.google.chat.v1.Message.Builder getMessageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMessageFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The updated message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { + if (messageBuilder_ != null) { + return messageBuilder_.getMessageOrBuilder(); + } else { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } + } + /** + * + * + *
        +     * The updated message.
        +     * 
        + * + * .google.chat.v1.Message message = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Message, + com.google.chat.v1.Message.Builder, + com.google.chat.v1.MessageOrBuilder> + getMessageFieldBuilder() { + if (messageBuilder_ == null) { + messageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Message, + com.google.chat.v1.Message.Builder, + com.google.chat.v1.MessageOrBuilder>( + getMessage(), getParentForChildren(), isClean()); + message_ = null; + } + return messageBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.MessageUpdatedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.MessageUpdatedEventData) + private static final com.google.chat.v1.MessageUpdatedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.MessageUpdatedEventData(); + } + + public static com.google.chat.v1.MessageUpdatedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageUpdatedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.MessageUpdatedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageUpdatedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageUpdatedEventDataOrBuilder.java new file mode 100644 index 000000000000..2f84cbc8ac72 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageUpdatedEventDataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface MessageUpdatedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.MessageUpdatedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The updated message.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return Whether the message field is set. + */ + boolean hasMessage(); + /** + * + * + *
        +   * The updated message.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + * + * @return The message. + */ + com.google.chat.v1.Message getMessage(); + /** + * + * + *
        +   * The updated message.
        +   * 
        + * + * .google.chat.v1.Message message = 1; + */ + com.google.chat.v1.MessageOrBuilder getMessageOrBuilder(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionBatchCreatedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionBatchCreatedEventData.java new file mode 100644 index 000000000000..f53702bf59e6 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionBatchCreatedEventData.java @@ -0,0 +1,942 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for multiple new reactions.
        + *
        + * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        + * 
        + * + * Protobuf type {@code google.chat.v1.ReactionBatchCreatedEventData} + */ +public final class ReactionBatchCreatedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.ReactionBatchCreatedEventData) + ReactionBatchCreatedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReactionBatchCreatedEventData.newBuilder() to construct. + private ReactionBatchCreatedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReactionBatchCreatedEventData() { + reactions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReactionBatchCreatedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionBatchCreatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionBatchCreatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ReactionBatchCreatedEventData.class, + com.google.chat.v1.ReactionBatchCreatedEventData.Builder.class); + } + + public static final int REACTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List reactions_; + /** + * + * + *
        +   * A list of new reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + @java.lang.Override + public java.util.List getReactionsList() { + return reactions_; + } + /** + * + * + *
        +   * A list of new reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + @java.lang.Override + public java.util.List + getReactionsOrBuilderList() { + return reactions_; + } + /** + * + * + *
        +   * A list of new reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + @java.lang.Override + public int getReactionsCount() { + return reactions_.size(); + } + /** + * + * + *
        +   * A list of new reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + @java.lang.Override + public com.google.chat.v1.ReactionCreatedEventData getReactions(int index) { + return reactions_.get(index); + } + /** + * + * + *
        +   * A list of new reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + @java.lang.Override + public com.google.chat.v1.ReactionCreatedEventDataOrBuilder getReactionsOrBuilder(int index) { + return reactions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < reactions_.size(); i++) { + output.writeMessage(1, reactions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < reactions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, reactions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.ReactionBatchCreatedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.ReactionBatchCreatedEventData other = + (com.google.chat.v1.ReactionBatchCreatedEventData) obj; + + if (!getReactionsList().equals(other.getReactionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getReactionsCount() > 0) { + hash = (37 * hash) + REACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getReactionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.ReactionBatchCreatedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReactionBatchCreatedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ReactionBatchCreatedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReactionBatchCreatedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ReactionBatchCreatedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReactionBatchCreatedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ReactionBatchCreatedEventData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReactionBatchCreatedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ReactionBatchCreatedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReactionBatchCreatedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ReactionBatchCreatedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReactionBatchCreatedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.ReactionBatchCreatedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for multiple new reactions.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.ReactionBatchCreatedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.ReactionBatchCreatedEventData) + com.google.chat.v1.ReactionBatchCreatedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionBatchCreatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionBatchCreatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ReactionBatchCreatedEventData.class, + com.google.chat.v1.ReactionBatchCreatedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.ReactionBatchCreatedEventData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (reactionsBuilder_ == null) { + reactions_ = java.util.Collections.emptyList(); + } else { + reactions_ = null; + reactionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionBatchCreatedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.ReactionBatchCreatedEventData getDefaultInstanceForType() { + return com.google.chat.v1.ReactionBatchCreatedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.ReactionBatchCreatedEventData build() { + com.google.chat.v1.ReactionBatchCreatedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.ReactionBatchCreatedEventData buildPartial() { + com.google.chat.v1.ReactionBatchCreatedEventData result = + new com.google.chat.v1.ReactionBatchCreatedEventData(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.chat.v1.ReactionBatchCreatedEventData result) { + if (reactionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + reactions_ = java.util.Collections.unmodifiableList(reactions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.reactions_ = reactions_; + } else { + result.reactions_ = reactionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.ReactionBatchCreatedEventData result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.ReactionBatchCreatedEventData) { + return mergeFrom((com.google.chat.v1.ReactionBatchCreatedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.ReactionBatchCreatedEventData other) { + if (other == com.google.chat.v1.ReactionBatchCreatedEventData.getDefaultInstance()) + return this; + if (reactionsBuilder_ == null) { + if (!other.reactions_.isEmpty()) { + if (reactions_.isEmpty()) { + reactions_ = other.reactions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReactionsIsMutable(); + reactions_.addAll(other.reactions_); + } + onChanged(); + } + } else { + if (!other.reactions_.isEmpty()) { + if (reactionsBuilder_.isEmpty()) { + reactionsBuilder_.dispose(); + reactionsBuilder_ = null; + reactions_ = other.reactions_; + bitField0_ = (bitField0_ & ~0x00000001); + reactionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReactionsFieldBuilder() + : null; + } else { + reactionsBuilder_.addAllMessages(other.reactions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.chat.v1.ReactionCreatedEventData m = + input.readMessage( + com.google.chat.v1.ReactionCreatedEventData.parser(), extensionRegistry); + if (reactionsBuilder_ == null) { + ensureReactionsIsMutable(); + reactions_.add(m); + } else { + reactionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List reactions_ = + java.util.Collections.emptyList(); + + private void ensureReactionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + reactions_ = + new java.util.ArrayList(reactions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.ReactionCreatedEventData, + com.google.chat.v1.ReactionCreatedEventData.Builder, + com.google.chat.v1.ReactionCreatedEventDataOrBuilder> + reactionsBuilder_; + + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public java.util.List getReactionsList() { + if (reactionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(reactions_); + } else { + return reactionsBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public int getReactionsCount() { + if (reactionsBuilder_ == null) { + return reactions_.size(); + } else { + return reactionsBuilder_.getCount(); + } + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public com.google.chat.v1.ReactionCreatedEventData getReactions(int index) { + if (reactionsBuilder_ == null) { + return reactions_.get(index); + } else { + return reactionsBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public Builder setReactions(int index, com.google.chat.v1.ReactionCreatedEventData value) { + if (reactionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReactionsIsMutable(); + reactions_.set(index, value); + onChanged(); + } else { + reactionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public Builder setReactions( + int index, com.google.chat.v1.ReactionCreatedEventData.Builder builderForValue) { + if (reactionsBuilder_ == null) { + ensureReactionsIsMutable(); + reactions_.set(index, builderForValue.build()); + onChanged(); + } else { + reactionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public Builder addReactions(com.google.chat.v1.ReactionCreatedEventData value) { + if (reactionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReactionsIsMutable(); + reactions_.add(value); + onChanged(); + } else { + reactionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public Builder addReactions(int index, com.google.chat.v1.ReactionCreatedEventData value) { + if (reactionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReactionsIsMutable(); + reactions_.add(index, value); + onChanged(); + } else { + reactionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public Builder addReactions( + com.google.chat.v1.ReactionCreatedEventData.Builder builderForValue) { + if (reactionsBuilder_ == null) { + ensureReactionsIsMutable(); + reactions_.add(builderForValue.build()); + onChanged(); + } else { + reactionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public Builder addReactions( + int index, com.google.chat.v1.ReactionCreatedEventData.Builder builderForValue) { + if (reactionsBuilder_ == null) { + ensureReactionsIsMutable(); + reactions_.add(index, builderForValue.build()); + onChanged(); + } else { + reactionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public Builder addAllReactions( + java.lang.Iterable values) { + if (reactionsBuilder_ == null) { + ensureReactionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reactions_); + onChanged(); + } else { + reactionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public Builder clearReactions() { + if (reactionsBuilder_ == null) { + reactions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + reactionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public Builder removeReactions(int index) { + if (reactionsBuilder_ == null) { + ensureReactionsIsMutable(); + reactions_.remove(index); + onChanged(); + } else { + reactionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public com.google.chat.v1.ReactionCreatedEventData.Builder getReactionsBuilder(int index) { + return getReactionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public com.google.chat.v1.ReactionCreatedEventDataOrBuilder getReactionsOrBuilder(int index) { + if (reactionsBuilder_ == null) { + return reactions_.get(index); + } else { + return reactionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public java.util.List + getReactionsOrBuilderList() { + if (reactionsBuilder_ != null) { + return reactionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(reactions_); + } + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public com.google.chat.v1.ReactionCreatedEventData.Builder addReactionsBuilder() { + return getReactionsFieldBuilder() + .addBuilder(com.google.chat.v1.ReactionCreatedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public com.google.chat.v1.ReactionCreatedEventData.Builder addReactionsBuilder(int index) { + return getReactionsFieldBuilder() + .addBuilder(index, com.google.chat.v1.ReactionCreatedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of new reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + public java.util.List + getReactionsBuilderList() { + return getReactionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.ReactionCreatedEventData, + com.google.chat.v1.ReactionCreatedEventData.Builder, + com.google.chat.v1.ReactionCreatedEventDataOrBuilder> + getReactionsFieldBuilder() { + if (reactionsBuilder_ == null) { + reactionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.ReactionCreatedEventData, + com.google.chat.v1.ReactionCreatedEventData.Builder, + com.google.chat.v1.ReactionCreatedEventDataOrBuilder>( + reactions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + reactions_ = null; + } + return reactionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.ReactionBatchCreatedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.ReactionBatchCreatedEventData) + private static final com.google.chat.v1.ReactionBatchCreatedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.ReactionBatchCreatedEventData(); + } + + public static com.google.chat.v1.ReactionBatchCreatedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReactionBatchCreatedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.ReactionBatchCreatedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionBatchCreatedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionBatchCreatedEventDataOrBuilder.java new file mode 100644 index 000000000000..f6d184b4dcaa --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionBatchCreatedEventDataOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface ReactionBatchCreatedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.ReactionBatchCreatedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * A list of new reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + java.util.List getReactionsList(); + /** + * + * + *
        +   * A list of new reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + com.google.chat.v1.ReactionCreatedEventData getReactions(int index); + /** + * + * + *
        +   * A list of new reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + int getReactionsCount(); + /** + * + * + *
        +   * A list of new reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + java.util.List + getReactionsOrBuilderList(); + /** + * + * + *
        +   * A list of new reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; + */ + com.google.chat.v1.ReactionCreatedEventDataOrBuilder getReactionsOrBuilder(int index); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionBatchDeletedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionBatchDeletedEventData.java new file mode 100644 index 000000000000..4bf27141f808 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionBatchDeletedEventData.java @@ -0,0 +1,942 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for multiple deleted reactions.
        + *
        + * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        + * 
        + * + * Protobuf type {@code google.chat.v1.ReactionBatchDeletedEventData} + */ +public final class ReactionBatchDeletedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.ReactionBatchDeletedEventData) + ReactionBatchDeletedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReactionBatchDeletedEventData.newBuilder() to construct. + private ReactionBatchDeletedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReactionBatchDeletedEventData() { + reactions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReactionBatchDeletedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionBatchDeletedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionBatchDeletedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ReactionBatchDeletedEventData.class, + com.google.chat.v1.ReactionBatchDeletedEventData.Builder.class); + } + + public static final int REACTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List reactions_; + /** + * + * + *
        +   * A list of deleted reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + @java.lang.Override + public java.util.List getReactionsList() { + return reactions_; + } + /** + * + * + *
        +   * A list of deleted reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + @java.lang.Override + public java.util.List + getReactionsOrBuilderList() { + return reactions_; + } + /** + * + * + *
        +   * A list of deleted reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + @java.lang.Override + public int getReactionsCount() { + return reactions_.size(); + } + /** + * + * + *
        +   * A list of deleted reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + @java.lang.Override + public com.google.chat.v1.ReactionDeletedEventData getReactions(int index) { + return reactions_.get(index); + } + /** + * + * + *
        +   * A list of deleted reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + @java.lang.Override + public com.google.chat.v1.ReactionDeletedEventDataOrBuilder getReactionsOrBuilder(int index) { + return reactions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < reactions_.size(); i++) { + output.writeMessage(1, reactions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < reactions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, reactions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.ReactionBatchDeletedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.ReactionBatchDeletedEventData other = + (com.google.chat.v1.ReactionBatchDeletedEventData) obj; + + if (!getReactionsList().equals(other.getReactionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getReactionsCount() > 0) { + hash = (37 * hash) + REACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getReactionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.ReactionBatchDeletedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReactionBatchDeletedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ReactionBatchDeletedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReactionBatchDeletedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ReactionBatchDeletedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReactionBatchDeletedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ReactionBatchDeletedEventData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReactionBatchDeletedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ReactionBatchDeletedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReactionBatchDeletedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ReactionBatchDeletedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReactionBatchDeletedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.ReactionBatchDeletedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for multiple deleted reactions.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.ReactionBatchDeletedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.ReactionBatchDeletedEventData) + com.google.chat.v1.ReactionBatchDeletedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionBatchDeletedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionBatchDeletedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ReactionBatchDeletedEventData.class, + com.google.chat.v1.ReactionBatchDeletedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.ReactionBatchDeletedEventData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (reactionsBuilder_ == null) { + reactions_ = java.util.Collections.emptyList(); + } else { + reactions_ = null; + reactionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionBatchDeletedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.ReactionBatchDeletedEventData getDefaultInstanceForType() { + return com.google.chat.v1.ReactionBatchDeletedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.ReactionBatchDeletedEventData build() { + com.google.chat.v1.ReactionBatchDeletedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.ReactionBatchDeletedEventData buildPartial() { + com.google.chat.v1.ReactionBatchDeletedEventData result = + new com.google.chat.v1.ReactionBatchDeletedEventData(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.chat.v1.ReactionBatchDeletedEventData result) { + if (reactionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + reactions_ = java.util.Collections.unmodifiableList(reactions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.reactions_ = reactions_; + } else { + result.reactions_ = reactionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.ReactionBatchDeletedEventData result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.ReactionBatchDeletedEventData) { + return mergeFrom((com.google.chat.v1.ReactionBatchDeletedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.ReactionBatchDeletedEventData other) { + if (other == com.google.chat.v1.ReactionBatchDeletedEventData.getDefaultInstance()) + return this; + if (reactionsBuilder_ == null) { + if (!other.reactions_.isEmpty()) { + if (reactions_.isEmpty()) { + reactions_ = other.reactions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReactionsIsMutable(); + reactions_.addAll(other.reactions_); + } + onChanged(); + } + } else { + if (!other.reactions_.isEmpty()) { + if (reactionsBuilder_.isEmpty()) { + reactionsBuilder_.dispose(); + reactionsBuilder_ = null; + reactions_ = other.reactions_; + bitField0_ = (bitField0_ & ~0x00000001); + reactionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReactionsFieldBuilder() + : null; + } else { + reactionsBuilder_.addAllMessages(other.reactions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.chat.v1.ReactionDeletedEventData m = + input.readMessage( + com.google.chat.v1.ReactionDeletedEventData.parser(), extensionRegistry); + if (reactionsBuilder_ == null) { + ensureReactionsIsMutable(); + reactions_.add(m); + } else { + reactionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List reactions_ = + java.util.Collections.emptyList(); + + private void ensureReactionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + reactions_ = + new java.util.ArrayList(reactions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.ReactionDeletedEventData, + com.google.chat.v1.ReactionDeletedEventData.Builder, + com.google.chat.v1.ReactionDeletedEventDataOrBuilder> + reactionsBuilder_; + + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public java.util.List getReactionsList() { + if (reactionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(reactions_); + } else { + return reactionsBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public int getReactionsCount() { + if (reactionsBuilder_ == null) { + return reactions_.size(); + } else { + return reactionsBuilder_.getCount(); + } + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public com.google.chat.v1.ReactionDeletedEventData getReactions(int index) { + if (reactionsBuilder_ == null) { + return reactions_.get(index); + } else { + return reactionsBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public Builder setReactions(int index, com.google.chat.v1.ReactionDeletedEventData value) { + if (reactionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReactionsIsMutable(); + reactions_.set(index, value); + onChanged(); + } else { + reactionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public Builder setReactions( + int index, com.google.chat.v1.ReactionDeletedEventData.Builder builderForValue) { + if (reactionsBuilder_ == null) { + ensureReactionsIsMutable(); + reactions_.set(index, builderForValue.build()); + onChanged(); + } else { + reactionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public Builder addReactions(com.google.chat.v1.ReactionDeletedEventData value) { + if (reactionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReactionsIsMutable(); + reactions_.add(value); + onChanged(); + } else { + reactionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public Builder addReactions(int index, com.google.chat.v1.ReactionDeletedEventData value) { + if (reactionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReactionsIsMutable(); + reactions_.add(index, value); + onChanged(); + } else { + reactionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public Builder addReactions( + com.google.chat.v1.ReactionDeletedEventData.Builder builderForValue) { + if (reactionsBuilder_ == null) { + ensureReactionsIsMutable(); + reactions_.add(builderForValue.build()); + onChanged(); + } else { + reactionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public Builder addReactions( + int index, com.google.chat.v1.ReactionDeletedEventData.Builder builderForValue) { + if (reactionsBuilder_ == null) { + ensureReactionsIsMutable(); + reactions_.add(index, builderForValue.build()); + onChanged(); + } else { + reactionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public Builder addAllReactions( + java.lang.Iterable values) { + if (reactionsBuilder_ == null) { + ensureReactionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reactions_); + onChanged(); + } else { + reactionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public Builder clearReactions() { + if (reactionsBuilder_ == null) { + reactions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + reactionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public Builder removeReactions(int index) { + if (reactionsBuilder_ == null) { + ensureReactionsIsMutable(); + reactions_.remove(index); + onChanged(); + } else { + reactionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public com.google.chat.v1.ReactionDeletedEventData.Builder getReactionsBuilder(int index) { + return getReactionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public com.google.chat.v1.ReactionDeletedEventDataOrBuilder getReactionsOrBuilder(int index) { + if (reactionsBuilder_ == null) { + return reactions_.get(index); + } else { + return reactionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public java.util.List + getReactionsOrBuilderList() { + if (reactionsBuilder_ != null) { + return reactionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(reactions_); + } + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public com.google.chat.v1.ReactionDeletedEventData.Builder addReactionsBuilder() { + return getReactionsFieldBuilder() + .addBuilder(com.google.chat.v1.ReactionDeletedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public com.google.chat.v1.ReactionDeletedEventData.Builder addReactionsBuilder(int index) { + return getReactionsFieldBuilder() + .addBuilder(index, com.google.chat.v1.ReactionDeletedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of deleted reactions.
        +     * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + public java.util.List + getReactionsBuilderList() { + return getReactionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.ReactionDeletedEventData, + com.google.chat.v1.ReactionDeletedEventData.Builder, + com.google.chat.v1.ReactionDeletedEventDataOrBuilder> + getReactionsFieldBuilder() { + if (reactionsBuilder_ == null) { + reactionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.ReactionDeletedEventData, + com.google.chat.v1.ReactionDeletedEventData.Builder, + com.google.chat.v1.ReactionDeletedEventDataOrBuilder>( + reactions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + reactions_ = null; + } + return reactionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.ReactionBatchDeletedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.ReactionBatchDeletedEventData) + private static final com.google.chat.v1.ReactionBatchDeletedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.ReactionBatchDeletedEventData(); + } + + public static com.google.chat.v1.ReactionBatchDeletedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReactionBatchDeletedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.ReactionBatchDeletedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionBatchDeletedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionBatchDeletedEventDataOrBuilder.java new file mode 100644 index 000000000000..f0f5996e4945 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionBatchDeletedEventDataOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface ReactionBatchDeletedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.ReactionBatchDeletedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * A list of deleted reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + java.util.List getReactionsList(); + /** + * + * + *
        +   * A list of deleted reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + com.google.chat.v1.ReactionDeletedEventData getReactions(int index); + /** + * + * + *
        +   * A list of deleted reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + int getReactionsCount(); + /** + * + * + *
        +   * A list of deleted reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + java.util.List + getReactionsOrBuilderList(); + /** + * + * + *
        +   * A list of deleted reactions.
        +   * 
        + * + * repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; + */ + com.google.chat.v1.ReactionDeletedEventDataOrBuilder getReactionsOrBuilder(int index); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionCreatedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionCreatedEventData.java new file mode 100644 index 000000000000..24abbb40a67e --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionCreatedEventData.java @@ -0,0 +1,716 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for a new reaction.
        + *
        + * Event type: `google.workspace.chat.reaction.v1.created`
        + * 
        + * + * Protobuf type {@code google.chat.v1.ReactionCreatedEventData} + */ +public final class ReactionCreatedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.ReactionCreatedEventData) + ReactionCreatedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReactionCreatedEventData.newBuilder() to construct. + private ReactionCreatedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReactionCreatedEventData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReactionCreatedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionCreatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionCreatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ReactionCreatedEventData.class, + com.google.chat.v1.ReactionCreatedEventData.Builder.class); + } + + private int bitField0_; + public static final int REACTION_FIELD_NUMBER = 1; + private com.google.chat.v1.Reaction reaction_; + /** + * + * + *
        +   * The new reaction.
        +   * 
        + * + * .google.chat.v1.Reaction reaction = 1; + * + * @return Whether the reaction field is set. + */ + @java.lang.Override + public boolean hasReaction() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * The new reaction.
        +   * 
        + * + * .google.chat.v1.Reaction reaction = 1; + * + * @return The reaction. + */ + @java.lang.Override + public com.google.chat.v1.Reaction getReaction() { + return reaction_ == null ? com.google.chat.v1.Reaction.getDefaultInstance() : reaction_; + } + /** + * + * + *
        +   * The new reaction.
        +   * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + @java.lang.Override + public com.google.chat.v1.ReactionOrBuilder getReactionOrBuilder() { + return reaction_ == null ? com.google.chat.v1.Reaction.getDefaultInstance() : reaction_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getReaction()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReaction()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.ReactionCreatedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.ReactionCreatedEventData other = + (com.google.chat.v1.ReactionCreatedEventData) obj; + + if (hasReaction() != other.hasReaction()) return false; + if (hasReaction()) { + if (!getReaction().equals(other.getReaction())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReaction()) { + hash = (37 * hash) + REACTION_FIELD_NUMBER; + hash = (53 * hash) + getReaction().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.ReactionCreatedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReactionCreatedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ReactionCreatedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReactionCreatedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ReactionCreatedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReactionCreatedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ReactionCreatedEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReactionCreatedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ReactionCreatedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReactionCreatedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ReactionCreatedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReactionCreatedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.ReactionCreatedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for a new reaction.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.created`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.ReactionCreatedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.ReactionCreatedEventData) + com.google.chat.v1.ReactionCreatedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionCreatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionCreatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ReactionCreatedEventData.class, + com.google.chat.v1.ReactionCreatedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.ReactionCreatedEventData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReactionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reaction_ = null; + if (reactionBuilder_ != null) { + reactionBuilder_.dispose(); + reactionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionCreatedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.ReactionCreatedEventData getDefaultInstanceForType() { + return com.google.chat.v1.ReactionCreatedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.ReactionCreatedEventData build() { + com.google.chat.v1.ReactionCreatedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.ReactionCreatedEventData buildPartial() { + com.google.chat.v1.ReactionCreatedEventData result = + new com.google.chat.v1.ReactionCreatedEventData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.ReactionCreatedEventData result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reaction_ = reactionBuilder_ == null ? reaction_ : reactionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.ReactionCreatedEventData) { + return mergeFrom((com.google.chat.v1.ReactionCreatedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.ReactionCreatedEventData other) { + if (other == com.google.chat.v1.ReactionCreatedEventData.getDefaultInstance()) return this; + if (other.hasReaction()) { + mergeReaction(other.getReaction()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getReactionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.chat.v1.Reaction reaction_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Reaction, + com.google.chat.v1.Reaction.Builder, + com.google.chat.v1.ReactionOrBuilder> + reactionBuilder_; + /** + * + * + *
        +     * The new reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + * + * @return Whether the reaction field is set. + */ + public boolean hasReaction() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * The new reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + * + * @return The reaction. + */ + public com.google.chat.v1.Reaction getReaction() { + if (reactionBuilder_ == null) { + return reaction_ == null ? com.google.chat.v1.Reaction.getDefaultInstance() : reaction_; + } else { + return reactionBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The new reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + public Builder setReaction(com.google.chat.v1.Reaction value) { + if (reactionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reaction_ = value; + } else { + reactionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The new reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + public Builder setReaction(com.google.chat.v1.Reaction.Builder builderForValue) { + if (reactionBuilder_ == null) { + reaction_ = builderForValue.build(); + } else { + reactionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The new reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + public Builder mergeReaction(com.google.chat.v1.Reaction value) { + if (reactionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && reaction_ != null + && reaction_ != com.google.chat.v1.Reaction.getDefaultInstance()) { + getReactionBuilder().mergeFrom(value); + } else { + reaction_ = value; + } + } else { + reactionBuilder_.mergeFrom(value); + } + if (reaction_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The new reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + public Builder clearReaction() { + bitField0_ = (bitField0_ & ~0x00000001); + reaction_ = null; + if (reactionBuilder_ != null) { + reactionBuilder_.dispose(); + reactionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The new reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + public com.google.chat.v1.Reaction.Builder getReactionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getReactionFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The new reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + public com.google.chat.v1.ReactionOrBuilder getReactionOrBuilder() { + if (reactionBuilder_ != null) { + return reactionBuilder_.getMessageOrBuilder(); + } else { + return reaction_ == null ? com.google.chat.v1.Reaction.getDefaultInstance() : reaction_; + } + } + /** + * + * + *
        +     * The new reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Reaction, + com.google.chat.v1.Reaction.Builder, + com.google.chat.v1.ReactionOrBuilder> + getReactionFieldBuilder() { + if (reactionBuilder_ == null) { + reactionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Reaction, + com.google.chat.v1.Reaction.Builder, + com.google.chat.v1.ReactionOrBuilder>( + getReaction(), getParentForChildren(), isClean()); + reaction_ = null; + } + return reactionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.ReactionCreatedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.ReactionCreatedEventData) + private static final com.google.chat.v1.ReactionCreatedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.ReactionCreatedEventData(); + } + + public static com.google.chat.v1.ReactionCreatedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReactionCreatedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.ReactionCreatedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionCreatedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionCreatedEventDataOrBuilder.java new file mode 100644 index 000000000000..8399f113e6c2 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionCreatedEventDataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface ReactionCreatedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.ReactionCreatedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The new reaction.
        +   * 
        + * + * .google.chat.v1.Reaction reaction = 1; + * + * @return Whether the reaction field is set. + */ + boolean hasReaction(); + /** + * + * + *
        +   * The new reaction.
        +   * 
        + * + * .google.chat.v1.Reaction reaction = 1; + * + * @return The reaction. + */ + com.google.chat.v1.Reaction getReaction(); + /** + * + * + *
        +   * The new reaction.
        +   * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + com.google.chat.v1.ReactionOrBuilder getReactionOrBuilder(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionDeletedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionDeletedEventData.java new file mode 100644 index 000000000000..b9643cf9ce48 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionDeletedEventData.java @@ -0,0 +1,716 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for a deleted reaction.
        + *
        + * Type: `google.workspace.chat.reaction.v1.deleted`
        + * 
        + * + * Protobuf type {@code google.chat.v1.ReactionDeletedEventData} + */ +public final class ReactionDeletedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.ReactionDeletedEventData) + ReactionDeletedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReactionDeletedEventData.newBuilder() to construct. + private ReactionDeletedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReactionDeletedEventData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReactionDeletedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionDeletedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionDeletedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ReactionDeletedEventData.class, + com.google.chat.v1.ReactionDeletedEventData.Builder.class); + } + + private int bitField0_; + public static final int REACTION_FIELD_NUMBER = 1; + private com.google.chat.v1.Reaction reaction_; + /** + * + * + *
        +   * The deleted reaction.
        +   * 
        + * + * .google.chat.v1.Reaction reaction = 1; + * + * @return Whether the reaction field is set. + */ + @java.lang.Override + public boolean hasReaction() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * The deleted reaction.
        +   * 
        + * + * .google.chat.v1.Reaction reaction = 1; + * + * @return The reaction. + */ + @java.lang.Override + public com.google.chat.v1.Reaction getReaction() { + return reaction_ == null ? com.google.chat.v1.Reaction.getDefaultInstance() : reaction_; + } + /** + * + * + *
        +   * The deleted reaction.
        +   * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + @java.lang.Override + public com.google.chat.v1.ReactionOrBuilder getReactionOrBuilder() { + return reaction_ == null ? com.google.chat.v1.Reaction.getDefaultInstance() : reaction_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getReaction()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReaction()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.ReactionDeletedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.ReactionDeletedEventData other = + (com.google.chat.v1.ReactionDeletedEventData) obj; + + if (hasReaction() != other.hasReaction()) return false; + if (hasReaction()) { + if (!getReaction().equals(other.getReaction())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReaction()) { + hash = (37 * hash) + REACTION_FIELD_NUMBER; + hash = (53 * hash) + getReaction().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.ReactionDeletedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReactionDeletedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ReactionDeletedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReactionDeletedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ReactionDeletedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReactionDeletedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ReactionDeletedEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReactionDeletedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ReactionDeletedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReactionDeletedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ReactionDeletedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReactionDeletedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.ReactionDeletedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for a deleted reaction.
        +   *
        +   * Type: `google.workspace.chat.reaction.v1.deleted`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.ReactionDeletedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.ReactionDeletedEventData) + com.google.chat.v1.ReactionDeletedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionDeletedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionDeletedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ReactionDeletedEventData.class, + com.google.chat.v1.ReactionDeletedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.ReactionDeletedEventData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReactionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reaction_ = null; + if (reactionBuilder_ != null) { + reactionBuilder_.dispose(); + reactionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_ReactionDeletedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.ReactionDeletedEventData getDefaultInstanceForType() { + return com.google.chat.v1.ReactionDeletedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.ReactionDeletedEventData build() { + com.google.chat.v1.ReactionDeletedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.ReactionDeletedEventData buildPartial() { + com.google.chat.v1.ReactionDeletedEventData result = + new com.google.chat.v1.ReactionDeletedEventData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.ReactionDeletedEventData result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reaction_ = reactionBuilder_ == null ? reaction_ : reactionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.ReactionDeletedEventData) { + return mergeFrom((com.google.chat.v1.ReactionDeletedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.ReactionDeletedEventData other) { + if (other == com.google.chat.v1.ReactionDeletedEventData.getDefaultInstance()) return this; + if (other.hasReaction()) { + mergeReaction(other.getReaction()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getReactionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.chat.v1.Reaction reaction_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Reaction, + com.google.chat.v1.Reaction.Builder, + com.google.chat.v1.ReactionOrBuilder> + reactionBuilder_; + /** + * + * + *
        +     * The deleted reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + * + * @return Whether the reaction field is set. + */ + public boolean hasReaction() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * The deleted reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + * + * @return The reaction. + */ + public com.google.chat.v1.Reaction getReaction() { + if (reactionBuilder_ == null) { + return reaction_ == null ? com.google.chat.v1.Reaction.getDefaultInstance() : reaction_; + } else { + return reactionBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The deleted reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + public Builder setReaction(com.google.chat.v1.Reaction value) { + if (reactionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reaction_ = value; + } else { + reactionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The deleted reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + public Builder setReaction(com.google.chat.v1.Reaction.Builder builderForValue) { + if (reactionBuilder_ == null) { + reaction_ = builderForValue.build(); + } else { + reactionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The deleted reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + public Builder mergeReaction(com.google.chat.v1.Reaction value) { + if (reactionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && reaction_ != null + && reaction_ != com.google.chat.v1.Reaction.getDefaultInstance()) { + getReactionBuilder().mergeFrom(value); + } else { + reaction_ = value; + } + } else { + reactionBuilder_.mergeFrom(value); + } + if (reaction_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The deleted reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + public Builder clearReaction() { + bitField0_ = (bitField0_ & ~0x00000001); + reaction_ = null; + if (reactionBuilder_ != null) { + reactionBuilder_.dispose(); + reactionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The deleted reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + public com.google.chat.v1.Reaction.Builder getReactionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getReactionFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The deleted reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + public com.google.chat.v1.ReactionOrBuilder getReactionOrBuilder() { + if (reactionBuilder_ != null) { + return reactionBuilder_.getMessageOrBuilder(); + } else { + return reaction_ == null ? com.google.chat.v1.Reaction.getDefaultInstance() : reaction_; + } + } + /** + * + * + *
        +     * The deleted reaction.
        +     * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Reaction, + com.google.chat.v1.Reaction.Builder, + com.google.chat.v1.ReactionOrBuilder> + getReactionFieldBuilder() { + if (reactionBuilder_ == null) { + reactionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Reaction, + com.google.chat.v1.Reaction.Builder, + com.google.chat.v1.ReactionOrBuilder>( + getReaction(), getParentForChildren(), isClean()); + reaction_ = null; + } + return reactionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.ReactionDeletedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.ReactionDeletedEventData) + private static final com.google.chat.v1.ReactionDeletedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.ReactionDeletedEventData(); + } + + public static com.google.chat.v1.ReactionDeletedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReactionDeletedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.ReactionDeletedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionDeletedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionDeletedEventDataOrBuilder.java new file mode 100644 index 000000000000..cbe909f291a2 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionDeletedEventDataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface ReactionDeletedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.ReactionDeletedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The deleted reaction.
        +   * 
        + * + * .google.chat.v1.Reaction reaction = 1; + * + * @return Whether the reaction field is set. + */ + boolean hasReaction(); + /** + * + * + *
        +   * The deleted reaction.
        +   * 
        + * + * .google.chat.v1.Reaction reaction = 1; + * + * @return The reaction. + */ + com.google.chat.v1.Reaction getReaction(); + /** + * + * + *
        +   * The deleted reaction.
        +   * 
        + * + * .google.chat.v1.Reaction reaction = 1; + */ + com.google.chat.v1.ReactionOrBuilder getReactionOrBuilder(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceBatchUpdatedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceBatchUpdatedEventData.java new file mode 100644 index 000000000000..646ac4e582ff --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceBatchUpdatedEventData.java @@ -0,0 +1,937 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for multiple updates to a space.
        + *
        + * Event type: `google.workspace.chat.space.v1.batchUpdated`
        + * 
        + * + * Protobuf type {@code google.chat.v1.SpaceBatchUpdatedEventData} + */ +public final class SpaceBatchUpdatedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.SpaceBatchUpdatedEventData) + SpaceBatchUpdatedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use SpaceBatchUpdatedEventData.newBuilder() to construct. + private SpaceBatchUpdatedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpaceBatchUpdatedEventData() { + spaces_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpaceBatchUpdatedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_SpaceBatchUpdatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_SpaceBatchUpdatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.SpaceBatchUpdatedEventData.class, + com.google.chat.v1.SpaceBatchUpdatedEventData.Builder.class); + } + + public static final int SPACES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List spaces_; + /** + * + * + *
        +   * A list of updated spaces.
        +   * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + @java.lang.Override + public java.util.List getSpacesList() { + return spaces_; + } + /** + * + * + *
        +   * A list of updated spaces.
        +   * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + @java.lang.Override + public java.util.List + getSpacesOrBuilderList() { + return spaces_; + } + /** + * + * + *
        +   * A list of updated spaces.
        +   * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + @java.lang.Override + public int getSpacesCount() { + return spaces_.size(); + } + /** + * + * + *
        +   * A list of updated spaces.
        +   * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + @java.lang.Override + public com.google.chat.v1.SpaceUpdatedEventData getSpaces(int index) { + return spaces_.get(index); + } + /** + * + * + *
        +   * A list of updated spaces.
        +   * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + @java.lang.Override + public com.google.chat.v1.SpaceUpdatedEventDataOrBuilder getSpacesOrBuilder(int index) { + return spaces_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < spaces_.size(); i++) { + output.writeMessage(1, spaces_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < spaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spaces_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.SpaceBatchUpdatedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.SpaceBatchUpdatedEventData other = + (com.google.chat.v1.SpaceBatchUpdatedEventData) obj; + + if (!getSpacesList().equals(other.getSpacesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSpacesCount() > 0) { + hash = (37 * hash) + SPACES_FIELD_NUMBER; + hash = (53 * hash) + getSpacesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.SpaceBatchUpdatedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SpaceBatchUpdatedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SpaceBatchUpdatedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SpaceBatchUpdatedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SpaceBatchUpdatedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SpaceBatchUpdatedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SpaceBatchUpdatedEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SpaceBatchUpdatedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.SpaceBatchUpdatedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SpaceBatchUpdatedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.SpaceBatchUpdatedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SpaceBatchUpdatedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.SpaceBatchUpdatedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for multiple updates to a space.
        +   *
        +   * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.SpaceBatchUpdatedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.SpaceBatchUpdatedEventData) + com.google.chat.v1.SpaceBatchUpdatedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_SpaceBatchUpdatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_SpaceBatchUpdatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.SpaceBatchUpdatedEventData.class, + com.google.chat.v1.SpaceBatchUpdatedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.SpaceBatchUpdatedEventData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (spacesBuilder_ == null) { + spaces_ = java.util.Collections.emptyList(); + } else { + spaces_ = null; + spacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_SpaceBatchUpdatedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.SpaceBatchUpdatedEventData getDefaultInstanceForType() { + return com.google.chat.v1.SpaceBatchUpdatedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.SpaceBatchUpdatedEventData build() { + com.google.chat.v1.SpaceBatchUpdatedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.SpaceBatchUpdatedEventData buildPartial() { + com.google.chat.v1.SpaceBatchUpdatedEventData result = + new com.google.chat.v1.SpaceBatchUpdatedEventData(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.chat.v1.SpaceBatchUpdatedEventData result) { + if (spacesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + spaces_ = java.util.Collections.unmodifiableList(spaces_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.spaces_ = spaces_; + } else { + result.spaces_ = spacesBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.SpaceBatchUpdatedEventData result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.SpaceBatchUpdatedEventData) { + return mergeFrom((com.google.chat.v1.SpaceBatchUpdatedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.SpaceBatchUpdatedEventData other) { + if (other == com.google.chat.v1.SpaceBatchUpdatedEventData.getDefaultInstance()) return this; + if (spacesBuilder_ == null) { + if (!other.spaces_.isEmpty()) { + if (spaces_.isEmpty()) { + spaces_ = other.spaces_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSpacesIsMutable(); + spaces_.addAll(other.spaces_); + } + onChanged(); + } + } else { + if (!other.spaces_.isEmpty()) { + if (spacesBuilder_.isEmpty()) { + spacesBuilder_.dispose(); + spacesBuilder_ = null; + spaces_ = other.spaces_; + bitField0_ = (bitField0_ & ~0x00000001); + spacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSpacesFieldBuilder() + : null; + } else { + spacesBuilder_.addAllMessages(other.spaces_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.chat.v1.SpaceUpdatedEventData m = + input.readMessage( + com.google.chat.v1.SpaceUpdatedEventData.parser(), extensionRegistry); + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.add(m); + } else { + spacesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List spaces_ = + java.util.Collections.emptyList(); + + private void ensureSpacesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + spaces_ = new java.util.ArrayList(spaces_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.SpaceUpdatedEventData, + com.google.chat.v1.SpaceUpdatedEventData.Builder, + com.google.chat.v1.SpaceUpdatedEventDataOrBuilder> + spacesBuilder_; + + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public java.util.List getSpacesList() { + if (spacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(spaces_); + } else { + return spacesBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public int getSpacesCount() { + if (spacesBuilder_ == null) { + return spaces_.size(); + } else { + return spacesBuilder_.getCount(); + } + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public com.google.chat.v1.SpaceUpdatedEventData getSpaces(int index) { + if (spacesBuilder_ == null) { + return spaces_.get(index); + } else { + return spacesBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public Builder setSpaces(int index, com.google.chat.v1.SpaceUpdatedEventData value) { + if (spacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpacesIsMutable(); + spaces_.set(index, value); + onChanged(); + } else { + spacesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public Builder setSpaces( + int index, com.google.chat.v1.SpaceUpdatedEventData.Builder builderForValue) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.set(index, builderForValue.build()); + onChanged(); + } else { + spacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public Builder addSpaces(com.google.chat.v1.SpaceUpdatedEventData value) { + if (spacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpacesIsMutable(); + spaces_.add(value); + onChanged(); + } else { + spacesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public Builder addSpaces(int index, com.google.chat.v1.SpaceUpdatedEventData value) { + if (spacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpacesIsMutable(); + spaces_.add(index, value); + onChanged(); + } else { + spacesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public Builder addSpaces(com.google.chat.v1.SpaceUpdatedEventData.Builder builderForValue) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.add(builderForValue.build()); + onChanged(); + } else { + spacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public Builder addSpaces( + int index, com.google.chat.v1.SpaceUpdatedEventData.Builder builderForValue) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.add(index, builderForValue.build()); + onChanged(); + } else { + spacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public Builder addAllSpaces( + java.lang.Iterable values) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spaces_); + onChanged(); + } else { + spacesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public Builder clearSpaces() { + if (spacesBuilder_ == null) { + spaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + spacesBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public Builder removeSpaces(int index) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.remove(index); + onChanged(); + } else { + spacesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public com.google.chat.v1.SpaceUpdatedEventData.Builder getSpacesBuilder(int index) { + return getSpacesFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public com.google.chat.v1.SpaceUpdatedEventDataOrBuilder getSpacesOrBuilder(int index) { + if (spacesBuilder_ == null) { + return spaces_.get(index); + } else { + return spacesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public java.util.List + getSpacesOrBuilderList() { + if (spacesBuilder_ != null) { + return spacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(spaces_); + } + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public com.google.chat.v1.SpaceUpdatedEventData.Builder addSpacesBuilder() { + return getSpacesFieldBuilder() + .addBuilder(com.google.chat.v1.SpaceUpdatedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public com.google.chat.v1.SpaceUpdatedEventData.Builder addSpacesBuilder(int index) { + return getSpacesFieldBuilder() + .addBuilder(index, com.google.chat.v1.SpaceUpdatedEventData.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of updated spaces.
        +     * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + public java.util.List getSpacesBuilderList() { + return getSpacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.SpaceUpdatedEventData, + com.google.chat.v1.SpaceUpdatedEventData.Builder, + com.google.chat.v1.SpaceUpdatedEventDataOrBuilder> + getSpacesFieldBuilder() { + if (spacesBuilder_ == null) { + spacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.chat.v1.SpaceUpdatedEventData, + com.google.chat.v1.SpaceUpdatedEventData.Builder, + com.google.chat.v1.SpaceUpdatedEventDataOrBuilder>( + spaces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + spaces_ = null; + } + return spacesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.SpaceBatchUpdatedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.SpaceBatchUpdatedEventData) + private static final com.google.chat.v1.SpaceBatchUpdatedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.SpaceBatchUpdatedEventData(); + } + + public static com.google.chat.v1.SpaceBatchUpdatedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpaceBatchUpdatedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.SpaceBatchUpdatedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceBatchUpdatedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceBatchUpdatedEventDataOrBuilder.java new file mode 100644 index 000000000000..a39d20c57961 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceBatchUpdatedEventDataOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface SpaceBatchUpdatedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.SpaceBatchUpdatedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * A list of updated spaces.
        +   * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + java.util.List getSpacesList(); + /** + * + * + *
        +   * A list of updated spaces.
        +   * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + com.google.chat.v1.SpaceUpdatedEventData getSpaces(int index); + /** + * + * + *
        +   * A list of updated spaces.
        +   * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + int getSpacesCount(); + /** + * + * + *
        +   * A list of updated spaces.
        +   * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + java.util.List + getSpacesOrBuilderList(); + /** + * + * + *
        +   * A list of updated spaces.
        +   * 
        + * + * repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; + */ + com.google.chat.v1.SpaceUpdatedEventDataOrBuilder getSpacesOrBuilder(int index); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEvent.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEvent.java new file mode 100644 index 000000000000..00b7af737f03 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEvent.java @@ -0,0 +1,7458 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/space_event.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * An event that represents a change or activity in a Google Chat space. To
        + * learn more, see [Work with events from Google
        + * Chat](https://developers.google.com/workspace/chat/events-overview).
        + * 
        + * + * Protobuf type {@code google.chat.v1.SpaceEvent} + */ +public final class SpaceEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.SpaceEvent) + SpaceEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use SpaceEvent.newBuilder() to construct. + private SpaceEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpaceEvent() { + name_ = ""; + eventType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpaceEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceEventProto.internal_static_google_chat_v1_SpaceEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_SpaceEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.SpaceEvent.class, com.google.chat.v1.SpaceEvent.Builder.class); + } + + private int bitField0_; + private int payloadCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object payload_; + + public enum PayloadCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MESSAGE_CREATED_EVENT_DATA(12), + MESSAGE_UPDATED_EVENT_DATA(13), + MESSAGE_DELETED_EVENT_DATA(14), + MESSAGE_BATCH_CREATED_EVENT_DATA(26), + MESSAGE_BATCH_UPDATED_EVENT_DATA(27), + MESSAGE_BATCH_DELETED_EVENT_DATA(28), + SPACE_UPDATED_EVENT_DATA(15), + SPACE_BATCH_UPDATED_EVENT_DATA(29), + MEMBERSHIP_CREATED_EVENT_DATA(17), + MEMBERSHIP_UPDATED_EVENT_DATA(18), + MEMBERSHIP_DELETED_EVENT_DATA(219), + MEMBERSHIP_BATCH_CREATED_EVENT_DATA(31), + MEMBERSHIP_BATCH_UPDATED_EVENT_DATA(32), + MEMBERSHIP_BATCH_DELETED_EVENT_DATA(33), + REACTION_CREATED_EVENT_DATA(21), + REACTION_DELETED_EVENT_DATA(22), + REACTION_BATCH_CREATED_EVENT_DATA(34), + REACTION_BATCH_DELETED_EVENT_DATA(35), + PAYLOAD_NOT_SET(0); + private final int value; + + private PayloadCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PayloadCase valueOf(int value) { + return forNumber(value); + } + + public static PayloadCase forNumber(int value) { + switch (value) { + case 12: + return MESSAGE_CREATED_EVENT_DATA; + case 13: + return MESSAGE_UPDATED_EVENT_DATA; + case 14: + return MESSAGE_DELETED_EVENT_DATA; + case 26: + return MESSAGE_BATCH_CREATED_EVENT_DATA; + case 27: + return MESSAGE_BATCH_UPDATED_EVENT_DATA; + case 28: + return MESSAGE_BATCH_DELETED_EVENT_DATA; + case 15: + return SPACE_UPDATED_EVENT_DATA; + case 29: + return SPACE_BATCH_UPDATED_EVENT_DATA; + case 17: + return MEMBERSHIP_CREATED_EVENT_DATA; + case 18: + return MEMBERSHIP_UPDATED_EVENT_DATA; + case 219: + return MEMBERSHIP_DELETED_EVENT_DATA; + case 31: + return MEMBERSHIP_BATCH_CREATED_EVENT_DATA; + case 32: + return MEMBERSHIP_BATCH_UPDATED_EVENT_DATA; + case 33: + return MEMBERSHIP_BATCH_DELETED_EVENT_DATA; + case 21: + return REACTION_CREATED_EVENT_DATA; + case 22: + return REACTION_DELETED_EVENT_DATA; + case 34: + return REACTION_BATCH_CREATED_EVENT_DATA; + case 35: + return REACTION_BATCH_DELETED_EVENT_DATA; + case 0: + return PAYLOAD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
        +   * Resource name of the space event.
        +   *
        +   * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +   * 
        + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
        +   * Resource name of the space event.
        +   *
        +   * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +   * 
        + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp eventTime_; + /** + * + * + *
        +   * Time when the event occurred.
        +   * 
        + * + * .google.protobuf.Timestamp event_time = 3; + * + * @return Whether the eventTime field is set. + */ + @java.lang.Override + public boolean hasEventTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * Time when the event occurred.
        +   * 
        + * + * .google.protobuf.Timestamp event_time = 3; + * + * @return The eventTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEventTime() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + /** + * + * + *
        +   * Time when the event occurred.
        +   * 
        + * + * .google.protobuf.Timestamp event_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + public static final int EVENT_TYPE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object eventType_ = ""; + /** + * + * + *
        +   * Type of space event. Each event type has a batch version, which
        +   * represents multiple instances of the event type that occur in a short
        +   * period of time. For `spaceEvents.list()` requests, omit batch event types
        +   * in your query filter. By default, the server returns both event type and
        +   * its batch version.
        +   *
        +   * Supported event types for
        +   * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages):
        +   *
        +   *    * New message: `google.workspace.chat.message.v1.created`
        +   *    * Updated message: `google.workspace.chat.message.v1.updated`
        +   *    * Deleted message: `google.workspace.chat.message.v1.deleted`
        +   *    * Multiple new messages: `google.workspace.chat.message.v1.batchCreated`
        +   *    * Multiple updated messages:
        +   *    `google.workspace.chat.message.v1.batchUpdated`
        +   *    * Multiple deleted messages:
        +   *    `google.workspace.chat.message.v1.batchDeleted`
        +   *
        +   * Supported event types for
        +   * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members):
        +   *
        +   *   * New membership: `google.workspace.chat.membership.v1.created`
        +   *   * Updated membership: `google.workspace.chat.membership.v1.updated`
        +   *   * Deleted membership: `google.workspace.chat.membership.v1.deleted`
        +   *   * Multiple new memberships:
        +   *   `google.workspace.chat.membership.v1.batchCreated`
        +   *   * Multiple updated memberships:
        +   *   `google.workspace.chat.membership.v1.batchUpdated`
        +   *   * Multiple deleted memberships:
        +   *   `google.workspace.chat.membership.v1.batchDeleted`
        +   *
        +   * Supported event types for
        +   * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions):
        +   *
        +   *   * New reaction: `google.workspace.chat.reaction.v1.created`
        +   *   * Deleted reaction: `google.workspace.chat.reaction.v1.deleted`
        +   *   * Multiple new reactions:
        +   *   `google.workspace.chat.reaction.v1.batchCreated`
        +   *   * Multiple deleted reactions:
        +   *   `google.workspace.chat.reaction.v1.batchDeleted`
        +   *
        +   * Supported event types about the
        +   * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces):
        +   *
        +   *   * Updated space: `google.workspace.chat.space.v1.updated`
        +   *   * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated`
        +   * 
        + * + * string event_type = 6; + * + * @return The eventType. + */ + @java.lang.Override + public java.lang.String getEventType() { + java.lang.Object ref = eventType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } + } + /** + * + * + *
        +   * Type of space event. Each event type has a batch version, which
        +   * represents multiple instances of the event type that occur in a short
        +   * period of time. For `spaceEvents.list()` requests, omit batch event types
        +   * in your query filter. By default, the server returns both event type and
        +   * its batch version.
        +   *
        +   * Supported event types for
        +   * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages):
        +   *
        +   *    * New message: `google.workspace.chat.message.v1.created`
        +   *    * Updated message: `google.workspace.chat.message.v1.updated`
        +   *    * Deleted message: `google.workspace.chat.message.v1.deleted`
        +   *    * Multiple new messages: `google.workspace.chat.message.v1.batchCreated`
        +   *    * Multiple updated messages:
        +   *    `google.workspace.chat.message.v1.batchUpdated`
        +   *    * Multiple deleted messages:
        +   *    `google.workspace.chat.message.v1.batchDeleted`
        +   *
        +   * Supported event types for
        +   * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members):
        +   *
        +   *   * New membership: `google.workspace.chat.membership.v1.created`
        +   *   * Updated membership: `google.workspace.chat.membership.v1.updated`
        +   *   * Deleted membership: `google.workspace.chat.membership.v1.deleted`
        +   *   * Multiple new memberships:
        +   *   `google.workspace.chat.membership.v1.batchCreated`
        +   *   * Multiple updated memberships:
        +   *   `google.workspace.chat.membership.v1.batchUpdated`
        +   *   * Multiple deleted memberships:
        +   *   `google.workspace.chat.membership.v1.batchDeleted`
        +   *
        +   * Supported event types for
        +   * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions):
        +   *
        +   *   * New reaction: `google.workspace.chat.reaction.v1.created`
        +   *   * Deleted reaction: `google.workspace.chat.reaction.v1.deleted`
        +   *   * Multiple new reactions:
        +   *   `google.workspace.chat.reaction.v1.batchCreated`
        +   *   * Multiple deleted reactions:
        +   *   `google.workspace.chat.reaction.v1.batchDeleted`
        +   *
        +   * Supported event types about the
        +   * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces):
        +   *
        +   *   * Updated space: `google.workspace.chat.space.v1.updated`
        +   *   * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated`
        +   * 
        + * + * string event_type = 6; + * + * @return The bytes for eventType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventTypeBytes() { + java.lang.Object ref = eventType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_CREATED_EVENT_DATA_FIELD_NUMBER = 12; + /** + * + * + *
        +   * Event payload for a new message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.created`
        +   * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + * + * @return Whether the messageCreatedEventData field is set. + */ + @java.lang.Override + public boolean hasMessageCreatedEventData() { + return payloadCase_ == 12; + } + /** + * + * + *
        +   * Event payload for a new message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.created`
        +   * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + * + * @return The messageCreatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MessageCreatedEventData getMessageCreatedEventData() { + if (payloadCase_ == 12) { + return (com.google.chat.v1.MessageCreatedEventData) payload_; + } + return com.google.chat.v1.MessageCreatedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for a new message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.created`
        +   * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + */ + @java.lang.Override + public com.google.chat.v1.MessageCreatedEventDataOrBuilder getMessageCreatedEventDataOrBuilder() { + if (payloadCase_ == 12) { + return (com.google.chat.v1.MessageCreatedEventData) payload_; + } + return com.google.chat.v1.MessageCreatedEventData.getDefaultInstance(); + } + + public static final int MESSAGE_UPDATED_EVENT_DATA_FIELD_NUMBER = 13; + /** + * + * + *
        +   * Event payload for an updated message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.updated`
        +   * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + * + * @return Whether the messageUpdatedEventData field is set. + */ + @java.lang.Override + public boolean hasMessageUpdatedEventData() { + return payloadCase_ == 13; + } + /** + * + * + *
        +   * Event payload for an updated message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.updated`
        +   * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + * + * @return The messageUpdatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MessageUpdatedEventData getMessageUpdatedEventData() { + if (payloadCase_ == 13) { + return (com.google.chat.v1.MessageUpdatedEventData) payload_; + } + return com.google.chat.v1.MessageUpdatedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for an updated message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.updated`
        +   * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + */ + @java.lang.Override + public com.google.chat.v1.MessageUpdatedEventDataOrBuilder getMessageUpdatedEventDataOrBuilder() { + if (payloadCase_ == 13) { + return (com.google.chat.v1.MessageUpdatedEventData) payload_; + } + return com.google.chat.v1.MessageUpdatedEventData.getDefaultInstance(); + } + + public static final int MESSAGE_DELETED_EVENT_DATA_FIELD_NUMBER = 14; + /** + * + * + *
        +   * Event payload for a deleted message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.deleted`
        +   * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + * + * @return Whether the messageDeletedEventData field is set. + */ + @java.lang.Override + public boolean hasMessageDeletedEventData() { + return payloadCase_ == 14; + } + /** + * + * + *
        +   * Event payload for a deleted message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.deleted`
        +   * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + * + * @return The messageDeletedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MessageDeletedEventData getMessageDeletedEventData() { + if (payloadCase_ == 14) { + return (com.google.chat.v1.MessageDeletedEventData) payload_; + } + return com.google.chat.v1.MessageDeletedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for a deleted message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.deleted`
        +   * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + */ + @java.lang.Override + public com.google.chat.v1.MessageDeletedEventDataOrBuilder getMessageDeletedEventDataOrBuilder() { + if (payloadCase_ == 14) { + return (com.google.chat.v1.MessageDeletedEventData) payload_; + } + return com.google.chat.v1.MessageDeletedEventData.getDefaultInstance(); + } + + public static final int MESSAGE_BATCH_CREATED_EVENT_DATA_FIELD_NUMBER = 26; + /** + * + * + *
        +   * Event payload for multiple new messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + * + * @return Whether the messageBatchCreatedEventData field is set. + */ + @java.lang.Override + public boolean hasMessageBatchCreatedEventData() { + return payloadCase_ == 26; + } + /** + * + * + *
        +   * Event payload for multiple new messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + * + * @return The messageBatchCreatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MessageBatchCreatedEventData getMessageBatchCreatedEventData() { + if (payloadCase_ == 26) { + return (com.google.chat.v1.MessageBatchCreatedEventData) payload_; + } + return com.google.chat.v1.MessageBatchCreatedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for multiple new messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + */ + @java.lang.Override + public com.google.chat.v1.MessageBatchCreatedEventDataOrBuilder + getMessageBatchCreatedEventDataOrBuilder() { + if (payloadCase_ == 26) { + return (com.google.chat.v1.MessageBatchCreatedEventData) payload_; + } + return com.google.chat.v1.MessageBatchCreatedEventData.getDefaultInstance(); + } + + public static final int MESSAGE_BATCH_UPDATED_EVENT_DATA_FIELD_NUMBER = 27; + /** + * + * + *
        +   * Event payload for multiple updated messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + * + * @return Whether the messageBatchUpdatedEventData field is set. + */ + @java.lang.Override + public boolean hasMessageBatchUpdatedEventData() { + return payloadCase_ == 27; + } + /** + * + * + *
        +   * Event payload for multiple updated messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + * + * @return The messageBatchUpdatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MessageBatchUpdatedEventData getMessageBatchUpdatedEventData() { + if (payloadCase_ == 27) { + return (com.google.chat.v1.MessageBatchUpdatedEventData) payload_; + } + return com.google.chat.v1.MessageBatchUpdatedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for multiple updated messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + */ + @java.lang.Override + public com.google.chat.v1.MessageBatchUpdatedEventDataOrBuilder + getMessageBatchUpdatedEventDataOrBuilder() { + if (payloadCase_ == 27) { + return (com.google.chat.v1.MessageBatchUpdatedEventData) payload_; + } + return com.google.chat.v1.MessageBatchUpdatedEventData.getDefaultInstance(); + } + + public static final int MESSAGE_BATCH_DELETED_EVENT_DATA_FIELD_NUMBER = 28; + /** + * + * + *
        +   * Event payload for multiple deleted messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + * + * @return Whether the messageBatchDeletedEventData field is set. + */ + @java.lang.Override + public boolean hasMessageBatchDeletedEventData() { + return payloadCase_ == 28; + } + /** + * + * + *
        +   * Event payload for multiple deleted messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + * + * @return The messageBatchDeletedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MessageBatchDeletedEventData getMessageBatchDeletedEventData() { + if (payloadCase_ == 28) { + return (com.google.chat.v1.MessageBatchDeletedEventData) payload_; + } + return com.google.chat.v1.MessageBatchDeletedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for multiple deleted messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + */ + @java.lang.Override + public com.google.chat.v1.MessageBatchDeletedEventDataOrBuilder + getMessageBatchDeletedEventDataOrBuilder() { + if (payloadCase_ == 28) { + return (com.google.chat.v1.MessageBatchDeletedEventData) payload_; + } + return com.google.chat.v1.MessageBatchDeletedEventData.getDefaultInstance(); + } + + public static final int SPACE_UPDATED_EVENT_DATA_FIELD_NUMBER = 15; + /** + * + * + *
        +   * Event payload for a space update.
        +   *
        +   * Event type: `google.workspace.chat.space.v1.updated`
        +   * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + * + * @return Whether the spaceUpdatedEventData field is set. + */ + @java.lang.Override + public boolean hasSpaceUpdatedEventData() { + return payloadCase_ == 15; + } + /** + * + * + *
        +   * Event payload for a space update.
        +   *
        +   * Event type: `google.workspace.chat.space.v1.updated`
        +   * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + * + * @return The spaceUpdatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.SpaceUpdatedEventData getSpaceUpdatedEventData() { + if (payloadCase_ == 15) { + return (com.google.chat.v1.SpaceUpdatedEventData) payload_; + } + return com.google.chat.v1.SpaceUpdatedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for a space update.
        +   *
        +   * Event type: `google.workspace.chat.space.v1.updated`
        +   * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + */ + @java.lang.Override + public com.google.chat.v1.SpaceUpdatedEventDataOrBuilder getSpaceUpdatedEventDataOrBuilder() { + if (payloadCase_ == 15) { + return (com.google.chat.v1.SpaceUpdatedEventData) payload_; + } + return com.google.chat.v1.SpaceUpdatedEventData.getDefaultInstance(); + } + + public static final int SPACE_BATCH_UPDATED_EVENT_DATA_FIELD_NUMBER = 29; + /** + * + * + *
        +   * Event payload for multiple updates to a space.
        +   *
        +   * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + * + * @return Whether the spaceBatchUpdatedEventData field is set. + */ + @java.lang.Override + public boolean hasSpaceBatchUpdatedEventData() { + return payloadCase_ == 29; + } + /** + * + * + *
        +   * Event payload for multiple updates to a space.
        +   *
        +   * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + * + * @return The spaceBatchUpdatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.SpaceBatchUpdatedEventData getSpaceBatchUpdatedEventData() { + if (payloadCase_ == 29) { + return (com.google.chat.v1.SpaceBatchUpdatedEventData) payload_; + } + return com.google.chat.v1.SpaceBatchUpdatedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for multiple updates to a space.
        +   *
        +   * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + */ + @java.lang.Override + public com.google.chat.v1.SpaceBatchUpdatedEventDataOrBuilder + getSpaceBatchUpdatedEventDataOrBuilder() { + if (payloadCase_ == 29) { + return (com.google.chat.v1.SpaceBatchUpdatedEventData) payload_; + } + return com.google.chat.v1.SpaceBatchUpdatedEventData.getDefaultInstance(); + } + + public static final int MEMBERSHIP_CREATED_EVENT_DATA_FIELD_NUMBER = 17; + /** + * + * + *
        +   * Event payload for a new membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.created`
        +   * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + * + * @return Whether the membershipCreatedEventData field is set. + */ + @java.lang.Override + public boolean hasMembershipCreatedEventData() { + return payloadCase_ == 17; + } + /** + * + * + *
        +   * Event payload for a new membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.created`
        +   * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + * + * @return The membershipCreatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MembershipCreatedEventData getMembershipCreatedEventData() { + if (payloadCase_ == 17) { + return (com.google.chat.v1.MembershipCreatedEventData) payload_; + } + return com.google.chat.v1.MembershipCreatedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for a new membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.created`
        +   * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + */ + @java.lang.Override + public com.google.chat.v1.MembershipCreatedEventDataOrBuilder + getMembershipCreatedEventDataOrBuilder() { + if (payloadCase_ == 17) { + return (com.google.chat.v1.MembershipCreatedEventData) payload_; + } + return com.google.chat.v1.MembershipCreatedEventData.getDefaultInstance(); + } + + public static final int MEMBERSHIP_UPDATED_EVENT_DATA_FIELD_NUMBER = 18; + /** + * + * + *
        +   * Event payload for an updated membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.updated`
        +   * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + * + * @return Whether the membershipUpdatedEventData field is set. + */ + @java.lang.Override + public boolean hasMembershipUpdatedEventData() { + return payloadCase_ == 18; + } + /** + * + * + *
        +   * Event payload for an updated membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.updated`
        +   * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + * + * @return The membershipUpdatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MembershipUpdatedEventData getMembershipUpdatedEventData() { + if (payloadCase_ == 18) { + return (com.google.chat.v1.MembershipUpdatedEventData) payload_; + } + return com.google.chat.v1.MembershipUpdatedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for an updated membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.updated`
        +   * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + */ + @java.lang.Override + public com.google.chat.v1.MembershipUpdatedEventDataOrBuilder + getMembershipUpdatedEventDataOrBuilder() { + if (payloadCase_ == 18) { + return (com.google.chat.v1.MembershipUpdatedEventData) payload_; + } + return com.google.chat.v1.MembershipUpdatedEventData.getDefaultInstance(); + } + + public static final int MEMBERSHIP_DELETED_EVENT_DATA_FIELD_NUMBER = 219; + /** + * + * + *
        +   * Event payload for a deleted membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.deleted`
        +   * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + * + * @return Whether the membershipDeletedEventData field is set. + */ + @java.lang.Override + public boolean hasMembershipDeletedEventData() { + return payloadCase_ == 219; + } + /** + * + * + *
        +   * Event payload for a deleted membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.deleted`
        +   * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + * + * @return The membershipDeletedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MembershipDeletedEventData getMembershipDeletedEventData() { + if (payloadCase_ == 219) { + return (com.google.chat.v1.MembershipDeletedEventData) payload_; + } + return com.google.chat.v1.MembershipDeletedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for a deleted membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.deleted`
        +   * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + */ + @java.lang.Override + public com.google.chat.v1.MembershipDeletedEventDataOrBuilder + getMembershipDeletedEventDataOrBuilder() { + if (payloadCase_ == 219) { + return (com.google.chat.v1.MembershipDeletedEventData) payload_; + } + return com.google.chat.v1.MembershipDeletedEventData.getDefaultInstance(); + } + + public static final int MEMBERSHIP_BATCH_CREATED_EVENT_DATA_FIELD_NUMBER = 31; + /** + * + * + *
        +   * Event payload for multiple new memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + * + * @return Whether the membershipBatchCreatedEventData field is set. + */ + @java.lang.Override + public boolean hasMembershipBatchCreatedEventData() { + return payloadCase_ == 31; + } + /** + * + * + *
        +   * Event payload for multiple new memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + * + * @return The membershipBatchCreatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MembershipBatchCreatedEventData getMembershipBatchCreatedEventData() { + if (payloadCase_ == 31) { + return (com.google.chat.v1.MembershipBatchCreatedEventData) payload_; + } + return com.google.chat.v1.MembershipBatchCreatedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for multiple new memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + */ + @java.lang.Override + public com.google.chat.v1.MembershipBatchCreatedEventDataOrBuilder + getMembershipBatchCreatedEventDataOrBuilder() { + if (payloadCase_ == 31) { + return (com.google.chat.v1.MembershipBatchCreatedEventData) payload_; + } + return com.google.chat.v1.MembershipBatchCreatedEventData.getDefaultInstance(); + } + + public static final int MEMBERSHIP_BATCH_UPDATED_EVENT_DATA_FIELD_NUMBER = 32; + /** + * + * + *
        +   * Event payload for multiple updated memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + * + * @return Whether the membershipBatchUpdatedEventData field is set. + */ + @java.lang.Override + public boolean hasMembershipBatchUpdatedEventData() { + return payloadCase_ == 32; + } + /** + * + * + *
        +   * Event payload for multiple updated memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + * + * @return The membershipBatchUpdatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MembershipBatchUpdatedEventData getMembershipBatchUpdatedEventData() { + if (payloadCase_ == 32) { + return (com.google.chat.v1.MembershipBatchUpdatedEventData) payload_; + } + return com.google.chat.v1.MembershipBatchUpdatedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for multiple updated memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + */ + @java.lang.Override + public com.google.chat.v1.MembershipBatchUpdatedEventDataOrBuilder + getMembershipBatchUpdatedEventDataOrBuilder() { + if (payloadCase_ == 32) { + return (com.google.chat.v1.MembershipBatchUpdatedEventData) payload_; + } + return com.google.chat.v1.MembershipBatchUpdatedEventData.getDefaultInstance(); + } + + public static final int MEMBERSHIP_BATCH_DELETED_EVENT_DATA_FIELD_NUMBER = 33; + /** + * + * + *
        +   * Event payload for multiple deleted memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + * + * @return Whether the membershipBatchDeletedEventData field is set. + */ + @java.lang.Override + public boolean hasMembershipBatchDeletedEventData() { + return payloadCase_ == 33; + } + /** + * + * + *
        +   * Event payload for multiple deleted memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + * + * @return The membershipBatchDeletedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MembershipBatchDeletedEventData getMembershipBatchDeletedEventData() { + if (payloadCase_ == 33) { + return (com.google.chat.v1.MembershipBatchDeletedEventData) payload_; + } + return com.google.chat.v1.MembershipBatchDeletedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for multiple deleted memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + */ + @java.lang.Override + public com.google.chat.v1.MembershipBatchDeletedEventDataOrBuilder + getMembershipBatchDeletedEventDataOrBuilder() { + if (payloadCase_ == 33) { + return (com.google.chat.v1.MembershipBatchDeletedEventData) payload_; + } + return com.google.chat.v1.MembershipBatchDeletedEventData.getDefaultInstance(); + } + + public static final int REACTION_CREATED_EVENT_DATA_FIELD_NUMBER = 21; + /** + * + * + *
        +   * Event payload for a new reaction.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.created`
        +   * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + * + * @return Whether the reactionCreatedEventData field is set. + */ + @java.lang.Override + public boolean hasReactionCreatedEventData() { + return payloadCase_ == 21; + } + /** + * + * + *
        +   * Event payload for a new reaction.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.created`
        +   * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + * + * @return The reactionCreatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.ReactionCreatedEventData getReactionCreatedEventData() { + if (payloadCase_ == 21) { + return (com.google.chat.v1.ReactionCreatedEventData) payload_; + } + return com.google.chat.v1.ReactionCreatedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for a new reaction.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.created`
        +   * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + */ + @java.lang.Override + public com.google.chat.v1.ReactionCreatedEventDataOrBuilder + getReactionCreatedEventDataOrBuilder() { + if (payloadCase_ == 21) { + return (com.google.chat.v1.ReactionCreatedEventData) payload_; + } + return com.google.chat.v1.ReactionCreatedEventData.getDefaultInstance(); + } + + public static final int REACTION_DELETED_EVENT_DATA_FIELD_NUMBER = 22; + /** + * + * + *
        +   * Event payload for a deleted reaction.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.deleted`
        +   * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + * + * @return Whether the reactionDeletedEventData field is set. + */ + @java.lang.Override + public boolean hasReactionDeletedEventData() { + return payloadCase_ == 22; + } + /** + * + * + *
        +   * Event payload for a deleted reaction.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.deleted`
        +   * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + * + * @return The reactionDeletedEventData. + */ + @java.lang.Override + public com.google.chat.v1.ReactionDeletedEventData getReactionDeletedEventData() { + if (payloadCase_ == 22) { + return (com.google.chat.v1.ReactionDeletedEventData) payload_; + } + return com.google.chat.v1.ReactionDeletedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for a deleted reaction.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.deleted`
        +   * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + */ + @java.lang.Override + public com.google.chat.v1.ReactionDeletedEventDataOrBuilder + getReactionDeletedEventDataOrBuilder() { + if (payloadCase_ == 22) { + return (com.google.chat.v1.ReactionDeletedEventData) payload_; + } + return com.google.chat.v1.ReactionDeletedEventData.getDefaultInstance(); + } + + public static final int REACTION_BATCH_CREATED_EVENT_DATA_FIELD_NUMBER = 34; + /** + * + * + *
        +   * Event payload for multiple new reactions.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + * + * @return Whether the reactionBatchCreatedEventData field is set. + */ + @java.lang.Override + public boolean hasReactionBatchCreatedEventData() { + return payloadCase_ == 34; + } + /** + * + * + *
        +   * Event payload for multiple new reactions.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + * + * @return The reactionBatchCreatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.ReactionBatchCreatedEventData getReactionBatchCreatedEventData() { + if (payloadCase_ == 34) { + return (com.google.chat.v1.ReactionBatchCreatedEventData) payload_; + } + return com.google.chat.v1.ReactionBatchCreatedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for multiple new reactions.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + */ + @java.lang.Override + public com.google.chat.v1.ReactionBatchCreatedEventDataOrBuilder + getReactionBatchCreatedEventDataOrBuilder() { + if (payloadCase_ == 34) { + return (com.google.chat.v1.ReactionBatchCreatedEventData) payload_; + } + return com.google.chat.v1.ReactionBatchCreatedEventData.getDefaultInstance(); + } + + public static final int REACTION_BATCH_DELETED_EVENT_DATA_FIELD_NUMBER = 35; + /** + * + * + *
        +   * Event payload for multiple deleted reactions.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + * + * @return Whether the reactionBatchDeletedEventData field is set. + */ + @java.lang.Override + public boolean hasReactionBatchDeletedEventData() { + return payloadCase_ == 35; + } + /** + * + * + *
        +   * Event payload for multiple deleted reactions.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + * + * @return The reactionBatchDeletedEventData. + */ + @java.lang.Override + public com.google.chat.v1.ReactionBatchDeletedEventData getReactionBatchDeletedEventData() { + if (payloadCase_ == 35) { + return (com.google.chat.v1.ReactionBatchDeletedEventData) payload_; + } + return com.google.chat.v1.ReactionBatchDeletedEventData.getDefaultInstance(); + } + /** + * + * + *
        +   * Event payload for multiple deleted reactions.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + */ + @java.lang.Override + public com.google.chat.v1.ReactionBatchDeletedEventDataOrBuilder + getReactionBatchDeletedEventDataOrBuilder() { + if (payloadCase_ == 35) { + return (com.google.chat.v1.ReactionBatchDeletedEventData) payload_; + } + return com.google.chat.v1.ReactionBatchDeletedEventData.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getEventTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, eventType_); + } + if (payloadCase_ == 12) { + output.writeMessage(12, (com.google.chat.v1.MessageCreatedEventData) payload_); + } + if (payloadCase_ == 13) { + output.writeMessage(13, (com.google.chat.v1.MessageUpdatedEventData) payload_); + } + if (payloadCase_ == 14) { + output.writeMessage(14, (com.google.chat.v1.MessageDeletedEventData) payload_); + } + if (payloadCase_ == 15) { + output.writeMessage(15, (com.google.chat.v1.SpaceUpdatedEventData) payload_); + } + if (payloadCase_ == 17) { + output.writeMessage(17, (com.google.chat.v1.MembershipCreatedEventData) payload_); + } + if (payloadCase_ == 18) { + output.writeMessage(18, (com.google.chat.v1.MembershipUpdatedEventData) payload_); + } + if (payloadCase_ == 21) { + output.writeMessage(21, (com.google.chat.v1.ReactionCreatedEventData) payload_); + } + if (payloadCase_ == 22) { + output.writeMessage(22, (com.google.chat.v1.ReactionDeletedEventData) payload_); + } + if (payloadCase_ == 26) { + output.writeMessage(26, (com.google.chat.v1.MessageBatchCreatedEventData) payload_); + } + if (payloadCase_ == 27) { + output.writeMessage(27, (com.google.chat.v1.MessageBatchUpdatedEventData) payload_); + } + if (payloadCase_ == 28) { + output.writeMessage(28, (com.google.chat.v1.MessageBatchDeletedEventData) payload_); + } + if (payloadCase_ == 29) { + output.writeMessage(29, (com.google.chat.v1.SpaceBatchUpdatedEventData) payload_); + } + if (payloadCase_ == 31) { + output.writeMessage(31, (com.google.chat.v1.MembershipBatchCreatedEventData) payload_); + } + if (payloadCase_ == 32) { + output.writeMessage(32, (com.google.chat.v1.MembershipBatchUpdatedEventData) payload_); + } + if (payloadCase_ == 33) { + output.writeMessage(33, (com.google.chat.v1.MembershipBatchDeletedEventData) payload_); + } + if (payloadCase_ == 34) { + output.writeMessage(34, (com.google.chat.v1.ReactionBatchCreatedEventData) payload_); + } + if (payloadCase_ == 35) { + output.writeMessage(35, (com.google.chat.v1.ReactionBatchDeletedEventData) payload_); + } + if (payloadCase_ == 219) { + output.writeMessage(219, (com.google.chat.v1.MembershipDeletedEventData) payload_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEventTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, eventType_); + } + if (payloadCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.chat.v1.MessageCreatedEventData) payload_); + } + if (payloadCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.chat.v1.MessageUpdatedEventData) payload_); + } + if (payloadCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.chat.v1.MessageDeletedEventData) payload_); + } + if (payloadCase_ == 15) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, (com.google.chat.v1.SpaceUpdatedEventData) payload_); + } + if (payloadCase_ == 17) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, (com.google.chat.v1.MembershipCreatedEventData) payload_); + } + if (payloadCase_ == 18) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, (com.google.chat.v1.MembershipUpdatedEventData) payload_); + } + if (payloadCase_ == 21) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, (com.google.chat.v1.ReactionCreatedEventData) payload_); + } + if (payloadCase_ == 22) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, (com.google.chat.v1.ReactionDeletedEventData) payload_); + } + if (payloadCase_ == 26) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, (com.google.chat.v1.MessageBatchCreatedEventData) payload_); + } + if (payloadCase_ == 27) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 27, (com.google.chat.v1.MessageBatchUpdatedEventData) payload_); + } + if (payloadCase_ == 28) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, (com.google.chat.v1.MessageBatchDeletedEventData) payload_); + } + if (payloadCase_ == 29) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 29, (com.google.chat.v1.SpaceBatchUpdatedEventData) payload_); + } + if (payloadCase_ == 31) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 31, (com.google.chat.v1.MembershipBatchCreatedEventData) payload_); + } + if (payloadCase_ == 32) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 32, (com.google.chat.v1.MembershipBatchUpdatedEventData) payload_); + } + if (payloadCase_ == 33) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 33, (com.google.chat.v1.MembershipBatchDeletedEventData) payload_); + } + if (payloadCase_ == 34) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 34, (com.google.chat.v1.ReactionBatchCreatedEventData) payload_); + } + if (payloadCase_ == 35) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 35, (com.google.chat.v1.ReactionBatchDeletedEventData) payload_); + } + if (payloadCase_ == 219) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 219, (com.google.chat.v1.MembershipDeletedEventData) payload_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.SpaceEvent)) { + return super.equals(obj); + } + com.google.chat.v1.SpaceEvent other = (com.google.chat.v1.SpaceEvent) obj; + + if (!getName().equals(other.getName())) return false; + if (hasEventTime() != other.hasEventTime()) return false; + if (hasEventTime()) { + if (!getEventTime().equals(other.getEventTime())) return false; + } + if (!getEventType().equals(other.getEventType())) return false; + if (!getPayloadCase().equals(other.getPayloadCase())) return false; + switch (payloadCase_) { + case 12: + if (!getMessageCreatedEventData().equals(other.getMessageCreatedEventData())) return false; + break; + case 13: + if (!getMessageUpdatedEventData().equals(other.getMessageUpdatedEventData())) return false; + break; + case 14: + if (!getMessageDeletedEventData().equals(other.getMessageDeletedEventData())) return false; + break; + case 26: + if (!getMessageBatchCreatedEventData().equals(other.getMessageBatchCreatedEventData())) + return false; + break; + case 27: + if (!getMessageBatchUpdatedEventData().equals(other.getMessageBatchUpdatedEventData())) + return false; + break; + case 28: + if (!getMessageBatchDeletedEventData().equals(other.getMessageBatchDeletedEventData())) + return false; + break; + case 15: + if (!getSpaceUpdatedEventData().equals(other.getSpaceUpdatedEventData())) return false; + break; + case 29: + if (!getSpaceBatchUpdatedEventData().equals(other.getSpaceBatchUpdatedEventData())) + return false; + break; + case 17: + if (!getMembershipCreatedEventData().equals(other.getMembershipCreatedEventData())) + return false; + break; + case 18: + if (!getMembershipUpdatedEventData().equals(other.getMembershipUpdatedEventData())) + return false; + break; + case 219: + if (!getMembershipDeletedEventData().equals(other.getMembershipDeletedEventData())) + return false; + break; + case 31: + if (!getMembershipBatchCreatedEventData() + .equals(other.getMembershipBatchCreatedEventData())) return false; + break; + case 32: + if (!getMembershipBatchUpdatedEventData() + .equals(other.getMembershipBatchUpdatedEventData())) return false; + break; + case 33: + if (!getMembershipBatchDeletedEventData() + .equals(other.getMembershipBatchDeletedEventData())) return false; + break; + case 21: + if (!getReactionCreatedEventData().equals(other.getReactionCreatedEventData())) + return false; + break; + case 22: + if (!getReactionDeletedEventData().equals(other.getReactionDeletedEventData())) + return false; + break; + case 34: + if (!getReactionBatchCreatedEventData().equals(other.getReactionBatchCreatedEventData())) + return false; + break; + case 35: + if (!getReactionBatchDeletedEventData().equals(other.getReactionBatchDeletedEventData())) + return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasEventTime()) { + hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEventTime().hashCode(); + } + hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getEventType().hashCode(); + switch (payloadCase_) { + case 12: + hash = (37 * hash) + MESSAGE_CREATED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getMessageCreatedEventData().hashCode(); + break; + case 13: + hash = (37 * hash) + MESSAGE_UPDATED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getMessageUpdatedEventData().hashCode(); + break; + case 14: + hash = (37 * hash) + MESSAGE_DELETED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getMessageDeletedEventData().hashCode(); + break; + case 26: + hash = (37 * hash) + MESSAGE_BATCH_CREATED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getMessageBatchCreatedEventData().hashCode(); + break; + case 27: + hash = (37 * hash) + MESSAGE_BATCH_UPDATED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getMessageBatchUpdatedEventData().hashCode(); + break; + case 28: + hash = (37 * hash) + MESSAGE_BATCH_DELETED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getMessageBatchDeletedEventData().hashCode(); + break; + case 15: + hash = (37 * hash) + SPACE_UPDATED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getSpaceUpdatedEventData().hashCode(); + break; + case 29: + hash = (37 * hash) + SPACE_BATCH_UPDATED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getSpaceBatchUpdatedEventData().hashCode(); + break; + case 17: + hash = (37 * hash) + MEMBERSHIP_CREATED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getMembershipCreatedEventData().hashCode(); + break; + case 18: + hash = (37 * hash) + MEMBERSHIP_UPDATED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getMembershipUpdatedEventData().hashCode(); + break; + case 219: + hash = (37 * hash) + MEMBERSHIP_DELETED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getMembershipDeletedEventData().hashCode(); + break; + case 31: + hash = (37 * hash) + MEMBERSHIP_BATCH_CREATED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getMembershipBatchCreatedEventData().hashCode(); + break; + case 32: + hash = (37 * hash) + MEMBERSHIP_BATCH_UPDATED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getMembershipBatchUpdatedEventData().hashCode(); + break; + case 33: + hash = (37 * hash) + MEMBERSHIP_BATCH_DELETED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getMembershipBatchDeletedEventData().hashCode(); + break; + case 21: + hash = (37 * hash) + REACTION_CREATED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getReactionCreatedEventData().hashCode(); + break; + case 22: + hash = (37 * hash) + REACTION_DELETED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getReactionDeletedEventData().hashCode(); + break; + case 34: + hash = (37 * hash) + REACTION_BATCH_CREATED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getReactionBatchCreatedEventData().hashCode(); + break; + case 35: + hash = (37 * hash) + REACTION_BATCH_DELETED_EVENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getReactionBatchDeletedEventData().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.SpaceEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SpaceEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SpaceEvent parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SpaceEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SpaceEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SpaceEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SpaceEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SpaceEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.SpaceEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SpaceEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.SpaceEvent parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SpaceEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.SpaceEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * An event that represents a change or activity in a Google Chat space. To
        +   * learn more, see [Work with events from Google
        +   * Chat](https://developers.google.com/workspace/chat/events-overview).
        +   * 
        + * + * Protobuf type {@code google.chat.v1.SpaceEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.SpaceEvent) + com.google.chat.v1.SpaceEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_SpaceEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_SpaceEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.SpaceEvent.class, com.google.chat.v1.SpaceEvent.Builder.class); + } + + // Construct using com.google.chat.v1.SpaceEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEventTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + eventType_ = ""; + if (messageCreatedEventDataBuilder_ != null) { + messageCreatedEventDataBuilder_.clear(); + } + if (messageUpdatedEventDataBuilder_ != null) { + messageUpdatedEventDataBuilder_.clear(); + } + if (messageDeletedEventDataBuilder_ != null) { + messageDeletedEventDataBuilder_.clear(); + } + if (messageBatchCreatedEventDataBuilder_ != null) { + messageBatchCreatedEventDataBuilder_.clear(); + } + if (messageBatchUpdatedEventDataBuilder_ != null) { + messageBatchUpdatedEventDataBuilder_.clear(); + } + if (messageBatchDeletedEventDataBuilder_ != null) { + messageBatchDeletedEventDataBuilder_.clear(); + } + if (spaceUpdatedEventDataBuilder_ != null) { + spaceUpdatedEventDataBuilder_.clear(); + } + if (spaceBatchUpdatedEventDataBuilder_ != null) { + spaceBatchUpdatedEventDataBuilder_.clear(); + } + if (membershipCreatedEventDataBuilder_ != null) { + membershipCreatedEventDataBuilder_.clear(); + } + if (membershipUpdatedEventDataBuilder_ != null) { + membershipUpdatedEventDataBuilder_.clear(); + } + if (membershipDeletedEventDataBuilder_ != null) { + membershipDeletedEventDataBuilder_.clear(); + } + if (membershipBatchCreatedEventDataBuilder_ != null) { + membershipBatchCreatedEventDataBuilder_.clear(); + } + if (membershipBatchUpdatedEventDataBuilder_ != null) { + membershipBatchUpdatedEventDataBuilder_.clear(); + } + if (membershipBatchDeletedEventDataBuilder_ != null) { + membershipBatchDeletedEventDataBuilder_.clear(); + } + if (reactionCreatedEventDataBuilder_ != null) { + reactionCreatedEventDataBuilder_.clear(); + } + if (reactionDeletedEventDataBuilder_ != null) { + reactionDeletedEventDataBuilder_.clear(); + } + if (reactionBatchCreatedEventDataBuilder_ != null) { + reactionBatchCreatedEventDataBuilder_.clear(); + } + if (reactionBatchDeletedEventDataBuilder_ != null) { + reactionBatchDeletedEventDataBuilder_.clear(); + } + payloadCase_ = 0; + payload_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.SpaceEventProto + .internal_static_google_chat_v1_SpaceEvent_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.SpaceEvent getDefaultInstanceForType() { + return com.google.chat.v1.SpaceEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.SpaceEvent build() { + com.google.chat.v1.SpaceEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.SpaceEvent buildPartial() { + com.google.chat.v1.SpaceEvent result = new com.google.chat.v1.SpaceEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.SpaceEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventType_ = eventType_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.chat.v1.SpaceEvent result) { + result.payloadCase_ = payloadCase_; + result.payload_ = this.payload_; + if (payloadCase_ == 12 && messageCreatedEventDataBuilder_ != null) { + result.payload_ = messageCreatedEventDataBuilder_.build(); + } + if (payloadCase_ == 13 && messageUpdatedEventDataBuilder_ != null) { + result.payload_ = messageUpdatedEventDataBuilder_.build(); + } + if (payloadCase_ == 14 && messageDeletedEventDataBuilder_ != null) { + result.payload_ = messageDeletedEventDataBuilder_.build(); + } + if (payloadCase_ == 26 && messageBatchCreatedEventDataBuilder_ != null) { + result.payload_ = messageBatchCreatedEventDataBuilder_.build(); + } + if (payloadCase_ == 27 && messageBatchUpdatedEventDataBuilder_ != null) { + result.payload_ = messageBatchUpdatedEventDataBuilder_.build(); + } + if (payloadCase_ == 28 && messageBatchDeletedEventDataBuilder_ != null) { + result.payload_ = messageBatchDeletedEventDataBuilder_.build(); + } + if (payloadCase_ == 15 && spaceUpdatedEventDataBuilder_ != null) { + result.payload_ = spaceUpdatedEventDataBuilder_.build(); + } + if (payloadCase_ == 29 && spaceBatchUpdatedEventDataBuilder_ != null) { + result.payload_ = spaceBatchUpdatedEventDataBuilder_.build(); + } + if (payloadCase_ == 17 && membershipCreatedEventDataBuilder_ != null) { + result.payload_ = membershipCreatedEventDataBuilder_.build(); + } + if (payloadCase_ == 18 && membershipUpdatedEventDataBuilder_ != null) { + result.payload_ = membershipUpdatedEventDataBuilder_.build(); + } + if (payloadCase_ == 219 && membershipDeletedEventDataBuilder_ != null) { + result.payload_ = membershipDeletedEventDataBuilder_.build(); + } + if (payloadCase_ == 31 && membershipBatchCreatedEventDataBuilder_ != null) { + result.payload_ = membershipBatchCreatedEventDataBuilder_.build(); + } + if (payloadCase_ == 32 && membershipBatchUpdatedEventDataBuilder_ != null) { + result.payload_ = membershipBatchUpdatedEventDataBuilder_.build(); + } + if (payloadCase_ == 33 && membershipBatchDeletedEventDataBuilder_ != null) { + result.payload_ = membershipBatchDeletedEventDataBuilder_.build(); + } + if (payloadCase_ == 21 && reactionCreatedEventDataBuilder_ != null) { + result.payload_ = reactionCreatedEventDataBuilder_.build(); + } + if (payloadCase_ == 22 && reactionDeletedEventDataBuilder_ != null) { + result.payload_ = reactionDeletedEventDataBuilder_.build(); + } + if (payloadCase_ == 34 && reactionBatchCreatedEventDataBuilder_ != null) { + result.payload_ = reactionBatchCreatedEventDataBuilder_.build(); + } + if (payloadCase_ == 35 && reactionBatchDeletedEventDataBuilder_ != null) { + result.payload_ = reactionBatchDeletedEventDataBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.SpaceEvent) { + return mergeFrom((com.google.chat.v1.SpaceEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.SpaceEvent other) { + if (other == com.google.chat.v1.SpaceEvent.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEventTime()) { + mergeEventTime(other.getEventTime()); + } + if (!other.getEventType().isEmpty()) { + eventType_ = other.eventType_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getPayloadCase()) { + case MESSAGE_CREATED_EVENT_DATA: + { + mergeMessageCreatedEventData(other.getMessageCreatedEventData()); + break; + } + case MESSAGE_UPDATED_EVENT_DATA: + { + mergeMessageUpdatedEventData(other.getMessageUpdatedEventData()); + break; + } + case MESSAGE_DELETED_EVENT_DATA: + { + mergeMessageDeletedEventData(other.getMessageDeletedEventData()); + break; + } + case MESSAGE_BATCH_CREATED_EVENT_DATA: + { + mergeMessageBatchCreatedEventData(other.getMessageBatchCreatedEventData()); + break; + } + case MESSAGE_BATCH_UPDATED_EVENT_DATA: + { + mergeMessageBatchUpdatedEventData(other.getMessageBatchUpdatedEventData()); + break; + } + case MESSAGE_BATCH_DELETED_EVENT_DATA: + { + mergeMessageBatchDeletedEventData(other.getMessageBatchDeletedEventData()); + break; + } + case SPACE_UPDATED_EVENT_DATA: + { + mergeSpaceUpdatedEventData(other.getSpaceUpdatedEventData()); + break; + } + case SPACE_BATCH_UPDATED_EVENT_DATA: + { + mergeSpaceBatchUpdatedEventData(other.getSpaceBatchUpdatedEventData()); + break; + } + case MEMBERSHIP_CREATED_EVENT_DATA: + { + mergeMembershipCreatedEventData(other.getMembershipCreatedEventData()); + break; + } + case MEMBERSHIP_UPDATED_EVENT_DATA: + { + mergeMembershipUpdatedEventData(other.getMembershipUpdatedEventData()); + break; + } + case MEMBERSHIP_DELETED_EVENT_DATA: + { + mergeMembershipDeletedEventData(other.getMembershipDeletedEventData()); + break; + } + case MEMBERSHIP_BATCH_CREATED_EVENT_DATA: + { + mergeMembershipBatchCreatedEventData(other.getMembershipBatchCreatedEventData()); + break; + } + case MEMBERSHIP_BATCH_UPDATED_EVENT_DATA: + { + mergeMembershipBatchUpdatedEventData(other.getMembershipBatchUpdatedEventData()); + break; + } + case MEMBERSHIP_BATCH_DELETED_EVENT_DATA: + { + mergeMembershipBatchDeletedEventData(other.getMembershipBatchDeletedEventData()); + break; + } + case REACTION_CREATED_EVENT_DATA: + { + mergeReactionCreatedEventData(other.getReactionCreatedEventData()); + break; + } + case REACTION_DELETED_EVENT_DATA: + { + mergeReactionDeletedEventData(other.getReactionDeletedEventData()); + break; + } + case REACTION_BATCH_CREATED_EVENT_DATA: + { + mergeReactionBatchCreatedEventData(other.getReactionBatchCreatedEventData()); + break; + } + case REACTION_BATCH_DELETED_EVENT_DATA: + { + mergeReactionBatchDeletedEventData(other.getReactionBatchDeletedEventData()); + break; + } + case PAYLOAD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 50: + { + eventType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 98: + { + input.readMessage( + getMessageCreatedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + getMessageUpdatedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage( + getMessageDeletedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 14; + break; + } // case 114 + case 122: + { + input.readMessage( + getSpaceUpdatedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 15; + break; + } // case 122 + case 138: + { + input.readMessage( + getMembershipCreatedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 17; + break; + } // case 138 + case 146: + { + input.readMessage( + getMembershipUpdatedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 18; + break; + } // case 146 + case 170: + { + input.readMessage( + getReactionCreatedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 21; + break; + } // case 170 + case 178: + { + input.readMessage( + getReactionDeletedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 22; + break; + } // case 178 + case 210: + { + input.readMessage( + getMessageBatchCreatedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 26; + break; + } // case 210 + case 218: + { + input.readMessage( + getMessageBatchUpdatedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 27; + break; + } // case 218 + case 226: + { + input.readMessage( + getMessageBatchDeletedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 28; + break; + } // case 226 + case 234: + { + input.readMessage( + getSpaceBatchUpdatedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 29; + break; + } // case 234 + case 250: + { + input.readMessage( + getMembershipBatchCreatedEventDataFieldBuilder().getBuilder(), + extensionRegistry); + payloadCase_ = 31; + break; + } // case 250 + case 258: + { + input.readMessage( + getMembershipBatchUpdatedEventDataFieldBuilder().getBuilder(), + extensionRegistry); + payloadCase_ = 32; + break; + } // case 258 + case 266: + { + input.readMessage( + getMembershipBatchDeletedEventDataFieldBuilder().getBuilder(), + extensionRegistry); + payloadCase_ = 33; + break; + } // case 266 + case 274: + { + input.readMessage( + getReactionBatchCreatedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 34; + break; + } // case 274 + case 282: + { + input.readMessage( + getReactionBatchDeletedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 35; + break; + } // case 282 + case 1754: + { + input.readMessage( + getMembershipDeletedEventDataFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 219; + break; + } // case 1754 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int payloadCase_ = 0; + private java.lang.Object payload_; + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); + } + + public Builder clearPayload() { + payloadCase_ = 0; + payload_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
        +     * Resource name of the space event.
        +     *
        +     * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +     * 
        + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Resource name of the space event.
        +     *
        +     * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +     * 
        + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Resource name of the space event.
        +     *
        +     * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +     * 
        + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Resource name of the space event.
        +     *
        +     * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +     * 
        + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * Resource name of the space event.
        +     *
        +     * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +     * 
        + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp eventTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; + /** + * + * + *
        +     * Time when the event occurred.
        +     * 
        + * + * .google.protobuf.Timestamp event_time = 3; + * + * @return Whether the eventTime field is set. + */ + public boolean hasEventTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +     * Time when the event occurred.
        +     * 
        + * + * .google.protobuf.Timestamp event_time = 3; + * + * @return The eventTime. + */ + public com.google.protobuf.Timestamp getEventTime() { + if (eventTimeBuilder_ == null) { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } else { + return eventTimeBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Time when the event occurred.
        +     * 
        + * + * .google.protobuf.Timestamp event_time = 3; + */ + public Builder setEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTime_ = value; + } else { + eventTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Time when the event occurred.
        +     * 
        + * + * .google.protobuf.Timestamp event_time = 3; + */ + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (eventTimeBuilder_ == null) { + eventTime_ = builderForValue.build(); + } else { + eventTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Time when the event occurred.
        +     * 
        + * + * .google.protobuf.Timestamp event_time = 3; + */ + public Builder mergeEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEventTimeBuilder().mergeFrom(value); + } else { + eventTime_ = value; + } + } else { + eventTimeBuilder_.mergeFrom(value); + } + if (eventTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Time when the event occurred.
        +     * 
        + * + * .google.protobuf.Timestamp event_time = 3; + */ + public Builder clearEventTime() { + bitField0_ = (bitField0_ & ~0x00000002); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Time when the event occurred.
        +     * 
        + * + * .google.protobuf.Timestamp event_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEventTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Time when the event occurred.
        +     * 
        + * + * .google.protobuf.Timestamp event_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + if (eventTimeBuilder_ != null) { + return eventTimeBuilder_.getMessageOrBuilder(); + } else { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + } + /** + * + * + *
        +     * Time when the event occurred.
        +     * 
        + * + * .google.protobuf.Timestamp event_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEventTimeFieldBuilder() { + if (eventTimeBuilder_ == null) { + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); + eventTime_ = null; + } + return eventTimeBuilder_; + } + + private java.lang.Object eventType_ = ""; + /** + * + * + *
        +     * Type of space event. Each event type has a batch version, which
        +     * represents multiple instances of the event type that occur in a short
        +     * period of time. For `spaceEvents.list()` requests, omit batch event types
        +     * in your query filter. By default, the server returns both event type and
        +     * its batch version.
        +     *
        +     * Supported event types for
        +     * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages):
        +     *
        +     *    * New message: `google.workspace.chat.message.v1.created`
        +     *    * Updated message: `google.workspace.chat.message.v1.updated`
        +     *    * Deleted message: `google.workspace.chat.message.v1.deleted`
        +     *    * Multiple new messages: `google.workspace.chat.message.v1.batchCreated`
        +     *    * Multiple updated messages:
        +     *    `google.workspace.chat.message.v1.batchUpdated`
        +     *    * Multiple deleted messages:
        +     *    `google.workspace.chat.message.v1.batchDeleted`
        +     *
        +     * Supported event types for
        +     * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members):
        +     *
        +     *   * New membership: `google.workspace.chat.membership.v1.created`
        +     *   * Updated membership: `google.workspace.chat.membership.v1.updated`
        +     *   * Deleted membership: `google.workspace.chat.membership.v1.deleted`
        +     *   * Multiple new memberships:
        +     *   `google.workspace.chat.membership.v1.batchCreated`
        +     *   * Multiple updated memberships:
        +     *   `google.workspace.chat.membership.v1.batchUpdated`
        +     *   * Multiple deleted memberships:
        +     *   `google.workspace.chat.membership.v1.batchDeleted`
        +     *
        +     * Supported event types for
        +     * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions):
        +     *
        +     *   * New reaction: `google.workspace.chat.reaction.v1.created`
        +     *   * Deleted reaction: `google.workspace.chat.reaction.v1.deleted`
        +     *   * Multiple new reactions:
        +     *   `google.workspace.chat.reaction.v1.batchCreated`
        +     *   * Multiple deleted reactions:
        +     *   `google.workspace.chat.reaction.v1.batchDeleted`
        +     *
        +     * Supported event types about the
        +     * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces):
        +     *
        +     *   * Updated space: `google.workspace.chat.space.v1.updated`
        +     *   * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated`
        +     * 
        + * + * string event_type = 6; + * + * @return The eventType. + */ + public java.lang.String getEventType() { + java.lang.Object ref = eventType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Type of space event. Each event type has a batch version, which
        +     * represents multiple instances of the event type that occur in a short
        +     * period of time. For `spaceEvents.list()` requests, omit batch event types
        +     * in your query filter. By default, the server returns both event type and
        +     * its batch version.
        +     *
        +     * Supported event types for
        +     * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages):
        +     *
        +     *    * New message: `google.workspace.chat.message.v1.created`
        +     *    * Updated message: `google.workspace.chat.message.v1.updated`
        +     *    * Deleted message: `google.workspace.chat.message.v1.deleted`
        +     *    * Multiple new messages: `google.workspace.chat.message.v1.batchCreated`
        +     *    * Multiple updated messages:
        +     *    `google.workspace.chat.message.v1.batchUpdated`
        +     *    * Multiple deleted messages:
        +     *    `google.workspace.chat.message.v1.batchDeleted`
        +     *
        +     * Supported event types for
        +     * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members):
        +     *
        +     *   * New membership: `google.workspace.chat.membership.v1.created`
        +     *   * Updated membership: `google.workspace.chat.membership.v1.updated`
        +     *   * Deleted membership: `google.workspace.chat.membership.v1.deleted`
        +     *   * Multiple new memberships:
        +     *   `google.workspace.chat.membership.v1.batchCreated`
        +     *   * Multiple updated memberships:
        +     *   `google.workspace.chat.membership.v1.batchUpdated`
        +     *   * Multiple deleted memberships:
        +     *   `google.workspace.chat.membership.v1.batchDeleted`
        +     *
        +     * Supported event types for
        +     * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions):
        +     *
        +     *   * New reaction: `google.workspace.chat.reaction.v1.created`
        +     *   * Deleted reaction: `google.workspace.chat.reaction.v1.deleted`
        +     *   * Multiple new reactions:
        +     *   `google.workspace.chat.reaction.v1.batchCreated`
        +     *   * Multiple deleted reactions:
        +     *   `google.workspace.chat.reaction.v1.batchDeleted`
        +     *
        +     * Supported event types about the
        +     * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces):
        +     *
        +     *   * Updated space: `google.workspace.chat.space.v1.updated`
        +     *   * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated`
        +     * 
        + * + * string event_type = 6; + * + * @return The bytes for eventType. + */ + public com.google.protobuf.ByteString getEventTypeBytes() { + java.lang.Object ref = eventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Type of space event. Each event type has a batch version, which
        +     * represents multiple instances of the event type that occur in a short
        +     * period of time. For `spaceEvents.list()` requests, omit batch event types
        +     * in your query filter. By default, the server returns both event type and
        +     * its batch version.
        +     *
        +     * Supported event types for
        +     * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages):
        +     *
        +     *    * New message: `google.workspace.chat.message.v1.created`
        +     *    * Updated message: `google.workspace.chat.message.v1.updated`
        +     *    * Deleted message: `google.workspace.chat.message.v1.deleted`
        +     *    * Multiple new messages: `google.workspace.chat.message.v1.batchCreated`
        +     *    * Multiple updated messages:
        +     *    `google.workspace.chat.message.v1.batchUpdated`
        +     *    * Multiple deleted messages:
        +     *    `google.workspace.chat.message.v1.batchDeleted`
        +     *
        +     * Supported event types for
        +     * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members):
        +     *
        +     *   * New membership: `google.workspace.chat.membership.v1.created`
        +     *   * Updated membership: `google.workspace.chat.membership.v1.updated`
        +     *   * Deleted membership: `google.workspace.chat.membership.v1.deleted`
        +     *   * Multiple new memberships:
        +     *   `google.workspace.chat.membership.v1.batchCreated`
        +     *   * Multiple updated memberships:
        +     *   `google.workspace.chat.membership.v1.batchUpdated`
        +     *   * Multiple deleted memberships:
        +     *   `google.workspace.chat.membership.v1.batchDeleted`
        +     *
        +     * Supported event types for
        +     * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions):
        +     *
        +     *   * New reaction: `google.workspace.chat.reaction.v1.created`
        +     *   * Deleted reaction: `google.workspace.chat.reaction.v1.deleted`
        +     *   * Multiple new reactions:
        +     *   `google.workspace.chat.reaction.v1.batchCreated`
        +     *   * Multiple deleted reactions:
        +     *   `google.workspace.chat.reaction.v1.batchDeleted`
        +     *
        +     * Supported event types about the
        +     * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces):
        +     *
        +     *   * Updated space: `google.workspace.chat.space.v1.updated`
        +     *   * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated`
        +     * 
        + * + * string event_type = 6; + * + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Type of space event. Each event type has a batch version, which
        +     * represents multiple instances of the event type that occur in a short
        +     * period of time. For `spaceEvents.list()` requests, omit batch event types
        +     * in your query filter. By default, the server returns both event type and
        +     * its batch version.
        +     *
        +     * Supported event types for
        +     * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages):
        +     *
        +     *    * New message: `google.workspace.chat.message.v1.created`
        +     *    * Updated message: `google.workspace.chat.message.v1.updated`
        +     *    * Deleted message: `google.workspace.chat.message.v1.deleted`
        +     *    * Multiple new messages: `google.workspace.chat.message.v1.batchCreated`
        +     *    * Multiple updated messages:
        +     *    `google.workspace.chat.message.v1.batchUpdated`
        +     *    * Multiple deleted messages:
        +     *    `google.workspace.chat.message.v1.batchDeleted`
        +     *
        +     * Supported event types for
        +     * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members):
        +     *
        +     *   * New membership: `google.workspace.chat.membership.v1.created`
        +     *   * Updated membership: `google.workspace.chat.membership.v1.updated`
        +     *   * Deleted membership: `google.workspace.chat.membership.v1.deleted`
        +     *   * Multiple new memberships:
        +     *   `google.workspace.chat.membership.v1.batchCreated`
        +     *   * Multiple updated memberships:
        +     *   `google.workspace.chat.membership.v1.batchUpdated`
        +     *   * Multiple deleted memberships:
        +     *   `google.workspace.chat.membership.v1.batchDeleted`
        +     *
        +     * Supported event types for
        +     * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions):
        +     *
        +     *   * New reaction: `google.workspace.chat.reaction.v1.created`
        +     *   * Deleted reaction: `google.workspace.chat.reaction.v1.deleted`
        +     *   * Multiple new reactions:
        +     *   `google.workspace.chat.reaction.v1.batchCreated`
        +     *   * Multiple deleted reactions:
        +     *   `google.workspace.chat.reaction.v1.batchDeleted`
        +     *
        +     * Supported event types about the
        +     * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces):
        +     *
        +     *   * Updated space: `google.workspace.chat.space.v1.updated`
        +     *   * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated`
        +     * 
        + * + * string event_type = 6; + * + * @return This builder for chaining. + */ + public Builder clearEventType() { + eventType_ = getDefaultInstance().getEventType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +     * Type of space event. Each event type has a batch version, which
        +     * represents multiple instances of the event type that occur in a short
        +     * period of time. For `spaceEvents.list()` requests, omit batch event types
        +     * in your query filter. By default, the server returns both event type and
        +     * its batch version.
        +     *
        +     * Supported event types for
        +     * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages):
        +     *
        +     *    * New message: `google.workspace.chat.message.v1.created`
        +     *    * Updated message: `google.workspace.chat.message.v1.updated`
        +     *    * Deleted message: `google.workspace.chat.message.v1.deleted`
        +     *    * Multiple new messages: `google.workspace.chat.message.v1.batchCreated`
        +     *    * Multiple updated messages:
        +     *    `google.workspace.chat.message.v1.batchUpdated`
        +     *    * Multiple deleted messages:
        +     *    `google.workspace.chat.message.v1.batchDeleted`
        +     *
        +     * Supported event types for
        +     * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members):
        +     *
        +     *   * New membership: `google.workspace.chat.membership.v1.created`
        +     *   * Updated membership: `google.workspace.chat.membership.v1.updated`
        +     *   * Deleted membership: `google.workspace.chat.membership.v1.deleted`
        +     *   * Multiple new memberships:
        +     *   `google.workspace.chat.membership.v1.batchCreated`
        +     *   * Multiple updated memberships:
        +     *   `google.workspace.chat.membership.v1.batchUpdated`
        +     *   * Multiple deleted memberships:
        +     *   `google.workspace.chat.membership.v1.batchDeleted`
        +     *
        +     * Supported event types for
        +     * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions):
        +     *
        +     *   * New reaction: `google.workspace.chat.reaction.v1.created`
        +     *   * Deleted reaction: `google.workspace.chat.reaction.v1.deleted`
        +     *   * Multiple new reactions:
        +     *   `google.workspace.chat.reaction.v1.batchCreated`
        +     *   * Multiple deleted reactions:
        +     *   `google.workspace.chat.reaction.v1.batchDeleted`
        +     *
        +     * Supported event types about the
        +     * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces):
        +     *
        +     *   * Updated space: `google.workspace.chat.space.v1.updated`
        +     *   * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated`
        +     * 
        + * + * string event_type = 6; + * + * @param value The bytes for eventType to set. + * @return This builder for chaining. + */ + public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageCreatedEventData, + com.google.chat.v1.MessageCreatedEventData.Builder, + com.google.chat.v1.MessageCreatedEventDataOrBuilder> + messageCreatedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for a new message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.created`
        +     * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + * + * @return Whether the messageCreatedEventData field is set. + */ + @java.lang.Override + public boolean hasMessageCreatedEventData() { + return payloadCase_ == 12; + } + /** + * + * + *
        +     * Event payload for a new message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.created`
        +     * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + * + * @return The messageCreatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MessageCreatedEventData getMessageCreatedEventData() { + if (messageCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 12) { + return (com.google.chat.v1.MessageCreatedEventData) payload_; + } + return com.google.chat.v1.MessageCreatedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 12) { + return messageCreatedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.MessageCreatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for a new message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.created`
        +     * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + */ + public Builder setMessageCreatedEventData(com.google.chat.v1.MessageCreatedEventData value) { + if (messageCreatedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + messageCreatedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 12; + return this; + } + /** + * + * + *
        +     * Event payload for a new message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.created`
        +     * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + */ + public Builder setMessageCreatedEventData( + com.google.chat.v1.MessageCreatedEventData.Builder builderForValue) { + if (messageCreatedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + messageCreatedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 12; + return this; + } + /** + * + * + *
        +     * Event payload for a new message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.created`
        +     * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + */ + public Builder mergeMessageCreatedEventData(com.google.chat.v1.MessageCreatedEventData value) { + if (messageCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 12 + && payload_ != com.google.chat.v1.MessageCreatedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.MessageCreatedEventData.newBuilder( + (com.google.chat.v1.MessageCreatedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 12) { + messageCreatedEventDataBuilder_.mergeFrom(value); + } else { + messageCreatedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 12; + return this; + } + /** + * + * + *
        +     * Event payload for a new message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.created`
        +     * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + */ + public Builder clearMessageCreatedEventData() { + if (messageCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 12) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 12) { + payloadCase_ = 0; + payload_ = null; + } + messageCreatedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for a new message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.created`
        +     * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + */ + public com.google.chat.v1.MessageCreatedEventData.Builder getMessageCreatedEventDataBuilder() { + return getMessageCreatedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for a new message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.created`
        +     * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + */ + @java.lang.Override + public com.google.chat.v1.MessageCreatedEventDataOrBuilder + getMessageCreatedEventDataOrBuilder() { + if ((payloadCase_ == 12) && (messageCreatedEventDataBuilder_ != null)) { + return messageCreatedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 12) { + return (com.google.chat.v1.MessageCreatedEventData) payload_; + } + return com.google.chat.v1.MessageCreatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for a new message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.created`
        +     * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageCreatedEventData, + com.google.chat.v1.MessageCreatedEventData.Builder, + com.google.chat.v1.MessageCreatedEventDataOrBuilder> + getMessageCreatedEventDataFieldBuilder() { + if (messageCreatedEventDataBuilder_ == null) { + if (!(payloadCase_ == 12)) { + payload_ = com.google.chat.v1.MessageCreatedEventData.getDefaultInstance(); + } + messageCreatedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageCreatedEventData, + com.google.chat.v1.MessageCreatedEventData.Builder, + com.google.chat.v1.MessageCreatedEventDataOrBuilder>( + (com.google.chat.v1.MessageCreatedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 12; + onChanged(); + return messageCreatedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageUpdatedEventData, + com.google.chat.v1.MessageUpdatedEventData.Builder, + com.google.chat.v1.MessageUpdatedEventDataOrBuilder> + messageUpdatedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for an updated message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.updated`
        +     * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + * + * @return Whether the messageUpdatedEventData field is set. + */ + @java.lang.Override + public boolean hasMessageUpdatedEventData() { + return payloadCase_ == 13; + } + /** + * + * + *
        +     * Event payload for an updated message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.updated`
        +     * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + * + * @return The messageUpdatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MessageUpdatedEventData getMessageUpdatedEventData() { + if (messageUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 13) { + return (com.google.chat.v1.MessageUpdatedEventData) payload_; + } + return com.google.chat.v1.MessageUpdatedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 13) { + return messageUpdatedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.MessageUpdatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for an updated message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.updated`
        +     * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + */ + public Builder setMessageUpdatedEventData(com.google.chat.v1.MessageUpdatedEventData value) { + if (messageUpdatedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + messageUpdatedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 13; + return this; + } + /** + * + * + *
        +     * Event payload for an updated message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.updated`
        +     * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + */ + public Builder setMessageUpdatedEventData( + com.google.chat.v1.MessageUpdatedEventData.Builder builderForValue) { + if (messageUpdatedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + messageUpdatedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 13; + return this; + } + /** + * + * + *
        +     * Event payload for an updated message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.updated`
        +     * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + */ + public Builder mergeMessageUpdatedEventData(com.google.chat.v1.MessageUpdatedEventData value) { + if (messageUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 13 + && payload_ != com.google.chat.v1.MessageUpdatedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.MessageUpdatedEventData.newBuilder( + (com.google.chat.v1.MessageUpdatedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 13) { + messageUpdatedEventDataBuilder_.mergeFrom(value); + } else { + messageUpdatedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 13; + return this; + } + /** + * + * + *
        +     * Event payload for an updated message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.updated`
        +     * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + */ + public Builder clearMessageUpdatedEventData() { + if (messageUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 13) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 13) { + payloadCase_ = 0; + payload_ = null; + } + messageUpdatedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for an updated message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.updated`
        +     * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + */ + public com.google.chat.v1.MessageUpdatedEventData.Builder getMessageUpdatedEventDataBuilder() { + return getMessageUpdatedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for an updated message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.updated`
        +     * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + */ + @java.lang.Override + public com.google.chat.v1.MessageUpdatedEventDataOrBuilder + getMessageUpdatedEventDataOrBuilder() { + if ((payloadCase_ == 13) && (messageUpdatedEventDataBuilder_ != null)) { + return messageUpdatedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 13) { + return (com.google.chat.v1.MessageUpdatedEventData) payload_; + } + return com.google.chat.v1.MessageUpdatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for an updated message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.updated`
        +     * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageUpdatedEventData, + com.google.chat.v1.MessageUpdatedEventData.Builder, + com.google.chat.v1.MessageUpdatedEventDataOrBuilder> + getMessageUpdatedEventDataFieldBuilder() { + if (messageUpdatedEventDataBuilder_ == null) { + if (!(payloadCase_ == 13)) { + payload_ = com.google.chat.v1.MessageUpdatedEventData.getDefaultInstance(); + } + messageUpdatedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageUpdatedEventData, + com.google.chat.v1.MessageUpdatedEventData.Builder, + com.google.chat.v1.MessageUpdatedEventDataOrBuilder>( + (com.google.chat.v1.MessageUpdatedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 13; + onChanged(); + return messageUpdatedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageDeletedEventData, + com.google.chat.v1.MessageDeletedEventData.Builder, + com.google.chat.v1.MessageDeletedEventDataOrBuilder> + messageDeletedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for a deleted message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + * + * @return Whether the messageDeletedEventData field is set. + */ + @java.lang.Override + public boolean hasMessageDeletedEventData() { + return payloadCase_ == 14; + } + /** + * + * + *
        +     * Event payload for a deleted message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + * + * @return The messageDeletedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MessageDeletedEventData getMessageDeletedEventData() { + if (messageDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 14) { + return (com.google.chat.v1.MessageDeletedEventData) payload_; + } + return com.google.chat.v1.MessageDeletedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 14) { + return messageDeletedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.MessageDeletedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for a deleted message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + */ + public Builder setMessageDeletedEventData(com.google.chat.v1.MessageDeletedEventData value) { + if (messageDeletedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + messageDeletedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 14; + return this; + } + /** + * + * + *
        +     * Event payload for a deleted message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + */ + public Builder setMessageDeletedEventData( + com.google.chat.v1.MessageDeletedEventData.Builder builderForValue) { + if (messageDeletedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + messageDeletedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 14; + return this; + } + /** + * + * + *
        +     * Event payload for a deleted message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + */ + public Builder mergeMessageDeletedEventData(com.google.chat.v1.MessageDeletedEventData value) { + if (messageDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 14 + && payload_ != com.google.chat.v1.MessageDeletedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.MessageDeletedEventData.newBuilder( + (com.google.chat.v1.MessageDeletedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 14) { + messageDeletedEventDataBuilder_.mergeFrom(value); + } else { + messageDeletedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 14; + return this; + } + /** + * + * + *
        +     * Event payload for a deleted message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + */ + public Builder clearMessageDeletedEventData() { + if (messageDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 14) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 14) { + payloadCase_ = 0; + payload_ = null; + } + messageDeletedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for a deleted message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + */ + public com.google.chat.v1.MessageDeletedEventData.Builder getMessageDeletedEventDataBuilder() { + return getMessageDeletedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for a deleted message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + */ + @java.lang.Override + public com.google.chat.v1.MessageDeletedEventDataOrBuilder + getMessageDeletedEventDataOrBuilder() { + if ((payloadCase_ == 14) && (messageDeletedEventDataBuilder_ != null)) { + return messageDeletedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 14) { + return (com.google.chat.v1.MessageDeletedEventData) payload_; + } + return com.google.chat.v1.MessageDeletedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for a deleted message.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageDeletedEventData, + com.google.chat.v1.MessageDeletedEventData.Builder, + com.google.chat.v1.MessageDeletedEventDataOrBuilder> + getMessageDeletedEventDataFieldBuilder() { + if (messageDeletedEventDataBuilder_ == null) { + if (!(payloadCase_ == 14)) { + payload_ = com.google.chat.v1.MessageDeletedEventData.getDefaultInstance(); + } + messageDeletedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageDeletedEventData, + com.google.chat.v1.MessageDeletedEventData.Builder, + com.google.chat.v1.MessageDeletedEventDataOrBuilder>( + (com.google.chat.v1.MessageDeletedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 14; + onChanged(); + return messageDeletedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageBatchCreatedEventData, + com.google.chat.v1.MessageBatchCreatedEventData.Builder, + com.google.chat.v1.MessageBatchCreatedEventDataOrBuilder> + messageBatchCreatedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for multiple new messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + * + * @return Whether the messageBatchCreatedEventData field is set. + */ + @java.lang.Override + public boolean hasMessageBatchCreatedEventData() { + return payloadCase_ == 26; + } + /** + * + * + *
        +     * Event payload for multiple new messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + * + * @return The messageBatchCreatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MessageBatchCreatedEventData getMessageBatchCreatedEventData() { + if (messageBatchCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 26) { + return (com.google.chat.v1.MessageBatchCreatedEventData) payload_; + } + return com.google.chat.v1.MessageBatchCreatedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 26) { + return messageBatchCreatedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.MessageBatchCreatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple new messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + */ + public Builder setMessageBatchCreatedEventData( + com.google.chat.v1.MessageBatchCreatedEventData value) { + if (messageBatchCreatedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + messageBatchCreatedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 26; + return this; + } + /** + * + * + *
        +     * Event payload for multiple new messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + */ + public Builder setMessageBatchCreatedEventData( + com.google.chat.v1.MessageBatchCreatedEventData.Builder builderForValue) { + if (messageBatchCreatedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + messageBatchCreatedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 26; + return this; + } + /** + * + * + *
        +     * Event payload for multiple new messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + */ + public Builder mergeMessageBatchCreatedEventData( + com.google.chat.v1.MessageBatchCreatedEventData value) { + if (messageBatchCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 26 + && payload_ != com.google.chat.v1.MessageBatchCreatedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.MessageBatchCreatedEventData.newBuilder( + (com.google.chat.v1.MessageBatchCreatedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 26) { + messageBatchCreatedEventDataBuilder_.mergeFrom(value); + } else { + messageBatchCreatedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 26; + return this; + } + /** + * + * + *
        +     * Event payload for multiple new messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + */ + public Builder clearMessageBatchCreatedEventData() { + if (messageBatchCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 26) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 26) { + payloadCase_ = 0; + payload_ = null; + } + messageBatchCreatedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for multiple new messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + */ + public com.google.chat.v1.MessageBatchCreatedEventData.Builder + getMessageBatchCreatedEventDataBuilder() { + return getMessageBatchCreatedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for multiple new messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + */ + @java.lang.Override + public com.google.chat.v1.MessageBatchCreatedEventDataOrBuilder + getMessageBatchCreatedEventDataOrBuilder() { + if ((payloadCase_ == 26) && (messageBatchCreatedEventDataBuilder_ != null)) { + return messageBatchCreatedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 26) { + return (com.google.chat.v1.MessageBatchCreatedEventData) payload_; + } + return com.google.chat.v1.MessageBatchCreatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple new messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageBatchCreatedEventData, + com.google.chat.v1.MessageBatchCreatedEventData.Builder, + com.google.chat.v1.MessageBatchCreatedEventDataOrBuilder> + getMessageBatchCreatedEventDataFieldBuilder() { + if (messageBatchCreatedEventDataBuilder_ == null) { + if (!(payloadCase_ == 26)) { + payload_ = com.google.chat.v1.MessageBatchCreatedEventData.getDefaultInstance(); + } + messageBatchCreatedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageBatchCreatedEventData, + com.google.chat.v1.MessageBatchCreatedEventData.Builder, + com.google.chat.v1.MessageBatchCreatedEventDataOrBuilder>( + (com.google.chat.v1.MessageBatchCreatedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 26; + onChanged(); + return messageBatchCreatedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageBatchUpdatedEventData, + com.google.chat.v1.MessageBatchUpdatedEventData.Builder, + com.google.chat.v1.MessageBatchUpdatedEventDataOrBuilder> + messageBatchUpdatedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for multiple updated messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + * + * @return Whether the messageBatchUpdatedEventData field is set. + */ + @java.lang.Override + public boolean hasMessageBatchUpdatedEventData() { + return payloadCase_ == 27; + } + /** + * + * + *
        +     * Event payload for multiple updated messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + * + * @return The messageBatchUpdatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MessageBatchUpdatedEventData getMessageBatchUpdatedEventData() { + if (messageBatchUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 27) { + return (com.google.chat.v1.MessageBatchUpdatedEventData) payload_; + } + return com.google.chat.v1.MessageBatchUpdatedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 27) { + return messageBatchUpdatedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.MessageBatchUpdatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple updated messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + */ + public Builder setMessageBatchUpdatedEventData( + com.google.chat.v1.MessageBatchUpdatedEventData value) { + if (messageBatchUpdatedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + messageBatchUpdatedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 27; + return this; + } + /** + * + * + *
        +     * Event payload for multiple updated messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + */ + public Builder setMessageBatchUpdatedEventData( + com.google.chat.v1.MessageBatchUpdatedEventData.Builder builderForValue) { + if (messageBatchUpdatedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + messageBatchUpdatedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 27; + return this; + } + /** + * + * + *
        +     * Event payload for multiple updated messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + */ + public Builder mergeMessageBatchUpdatedEventData( + com.google.chat.v1.MessageBatchUpdatedEventData value) { + if (messageBatchUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 27 + && payload_ != com.google.chat.v1.MessageBatchUpdatedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.MessageBatchUpdatedEventData.newBuilder( + (com.google.chat.v1.MessageBatchUpdatedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 27) { + messageBatchUpdatedEventDataBuilder_.mergeFrom(value); + } else { + messageBatchUpdatedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 27; + return this; + } + /** + * + * + *
        +     * Event payload for multiple updated messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + */ + public Builder clearMessageBatchUpdatedEventData() { + if (messageBatchUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 27) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 27) { + payloadCase_ = 0; + payload_ = null; + } + messageBatchUpdatedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for multiple updated messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + */ + public com.google.chat.v1.MessageBatchUpdatedEventData.Builder + getMessageBatchUpdatedEventDataBuilder() { + return getMessageBatchUpdatedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for multiple updated messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + */ + @java.lang.Override + public com.google.chat.v1.MessageBatchUpdatedEventDataOrBuilder + getMessageBatchUpdatedEventDataOrBuilder() { + if ((payloadCase_ == 27) && (messageBatchUpdatedEventDataBuilder_ != null)) { + return messageBatchUpdatedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 27) { + return (com.google.chat.v1.MessageBatchUpdatedEventData) payload_; + } + return com.google.chat.v1.MessageBatchUpdatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple updated messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageBatchUpdatedEventData, + com.google.chat.v1.MessageBatchUpdatedEventData.Builder, + com.google.chat.v1.MessageBatchUpdatedEventDataOrBuilder> + getMessageBatchUpdatedEventDataFieldBuilder() { + if (messageBatchUpdatedEventDataBuilder_ == null) { + if (!(payloadCase_ == 27)) { + payload_ = com.google.chat.v1.MessageBatchUpdatedEventData.getDefaultInstance(); + } + messageBatchUpdatedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageBatchUpdatedEventData, + com.google.chat.v1.MessageBatchUpdatedEventData.Builder, + com.google.chat.v1.MessageBatchUpdatedEventDataOrBuilder>( + (com.google.chat.v1.MessageBatchUpdatedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 27; + onChanged(); + return messageBatchUpdatedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageBatchDeletedEventData, + com.google.chat.v1.MessageBatchDeletedEventData.Builder, + com.google.chat.v1.MessageBatchDeletedEventDataOrBuilder> + messageBatchDeletedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for multiple deleted messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + * + * @return Whether the messageBatchDeletedEventData field is set. + */ + @java.lang.Override + public boolean hasMessageBatchDeletedEventData() { + return payloadCase_ == 28; + } + /** + * + * + *
        +     * Event payload for multiple deleted messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + * + * @return The messageBatchDeletedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MessageBatchDeletedEventData getMessageBatchDeletedEventData() { + if (messageBatchDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 28) { + return (com.google.chat.v1.MessageBatchDeletedEventData) payload_; + } + return com.google.chat.v1.MessageBatchDeletedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 28) { + return messageBatchDeletedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.MessageBatchDeletedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple deleted messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + */ + public Builder setMessageBatchDeletedEventData( + com.google.chat.v1.MessageBatchDeletedEventData value) { + if (messageBatchDeletedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + messageBatchDeletedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 28; + return this; + } + /** + * + * + *
        +     * Event payload for multiple deleted messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + */ + public Builder setMessageBatchDeletedEventData( + com.google.chat.v1.MessageBatchDeletedEventData.Builder builderForValue) { + if (messageBatchDeletedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + messageBatchDeletedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 28; + return this; + } + /** + * + * + *
        +     * Event payload for multiple deleted messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + */ + public Builder mergeMessageBatchDeletedEventData( + com.google.chat.v1.MessageBatchDeletedEventData value) { + if (messageBatchDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 28 + && payload_ != com.google.chat.v1.MessageBatchDeletedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.MessageBatchDeletedEventData.newBuilder( + (com.google.chat.v1.MessageBatchDeletedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 28) { + messageBatchDeletedEventDataBuilder_.mergeFrom(value); + } else { + messageBatchDeletedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 28; + return this; + } + /** + * + * + *
        +     * Event payload for multiple deleted messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + */ + public Builder clearMessageBatchDeletedEventData() { + if (messageBatchDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 28) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 28) { + payloadCase_ = 0; + payload_ = null; + } + messageBatchDeletedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for multiple deleted messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + */ + public com.google.chat.v1.MessageBatchDeletedEventData.Builder + getMessageBatchDeletedEventDataBuilder() { + return getMessageBatchDeletedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for multiple deleted messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + */ + @java.lang.Override + public com.google.chat.v1.MessageBatchDeletedEventDataOrBuilder + getMessageBatchDeletedEventDataOrBuilder() { + if ((payloadCase_ == 28) && (messageBatchDeletedEventDataBuilder_ != null)) { + return messageBatchDeletedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 28) { + return (com.google.chat.v1.MessageBatchDeletedEventData) payload_; + } + return com.google.chat.v1.MessageBatchDeletedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple deleted messages.
        +     *
        +     * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageBatchDeletedEventData, + com.google.chat.v1.MessageBatchDeletedEventData.Builder, + com.google.chat.v1.MessageBatchDeletedEventDataOrBuilder> + getMessageBatchDeletedEventDataFieldBuilder() { + if (messageBatchDeletedEventDataBuilder_ == null) { + if (!(payloadCase_ == 28)) { + payload_ = com.google.chat.v1.MessageBatchDeletedEventData.getDefaultInstance(); + } + messageBatchDeletedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MessageBatchDeletedEventData, + com.google.chat.v1.MessageBatchDeletedEventData.Builder, + com.google.chat.v1.MessageBatchDeletedEventDataOrBuilder>( + (com.google.chat.v1.MessageBatchDeletedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 28; + onChanged(); + return messageBatchDeletedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.SpaceUpdatedEventData, + com.google.chat.v1.SpaceUpdatedEventData.Builder, + com.google.chat.v1.SpaceUpdatedEventDataOrBuilder> + spaceUpdatedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for a space update.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.updated`
        +     * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + * + * @return Whether the spaceUpdatedEventData field is set. + */ + @java.lang.Override + public boolean hasSpaceUpdatedEventData() { + return payloadCase_ == 15; + } + /** + * + * + *
        +     * Event payload for a space update.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.updated`
        +     * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + * + * @return The spaceUpdatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.SpaceUpdatedEventData getSpaceUpdatedEventData() { + if (spaceUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 15) { + return (com.google.chat.v1.SpaceUpdatedEventData) payload_; + } + return com.google.chat.v1.SpaceUpdatedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 15) { + return spaceUpdatedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.SpaceUpdatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for a space update.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.updated`
        +     * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + */ + public Builder setSpaceUpdatedEventData(com.google.chat.v1.SpaceUpdatedEventData value) { + if (spaceUpdatedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + spaceUpdatedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 15; + return this; + } + /** + * + * + *
        +     * Event payload for a space update.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.updated`
        +     * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + */ + public Builder setSpaceUpdatedEventData( + com.google.chat.v1.SpaceUpdatedEventData.Builder builderForValue) { + if (spaceUpdatedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + spaceUpdatedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 15; + return this; + } + /** + * + * + *
        +     * Event payload for a space update.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.updated`
        +     * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + */ + public Builder mergeSpaceUpdatedEventData(com.google.chat.v1.SpaceUpdatedEventData value) { + if (spaceUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 15 + && payload_ != com.google.chat.v1.SpaceUpdatedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.SpaceUpdatedEventData.newBuilder( + (com.google.chat.v1.SpaceUpdatedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 15) { + spaceUpdatedEventDataBuilder_.mergeFrom(value); + } else { + spaceUpdatedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 15; + return this; + } + /** + * + * + *
        +     * Event payload for a space update.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.updated`
        +     * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + */ + public Builder clearSpaceUpdatedEventData() { + if (spaceUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 15) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 15) { + payloadCase_ = 0; + payload_ = null; + } + spaceUpdatedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for a space update.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.updated`
        +     * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + */ + public com.google.chat.v1.SpaceUpdatedEventData.Builder getSpaceUpdatedEventDataBuilder() { + return getSpaceUpdatedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for a space update.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.updated`
        +     * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + */ + @java.lang.Override + public com.google.chat.v1.SpaceUpdatedEventDataOrBuilder getSpaceUpdatedEventDataOrBuilder() { + if ((payloadCase_ == 15) && (spaceUpdatedEventDataBuilder_ != null)) { + return spaceUpdatedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 15) { + return (com.google.chat.v1.SpaceUpdatedEventData) payload_; + } + return com.google.chat.v1.SpaceUpdatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for a space update.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.updated`
        +     * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.SpaceUpdatedEventData, + com.google.chat.v1.SpaceUpdatedEventData.Builder, + com.google.chat.v1.SpaceUpdatedEventDataOrBuilder> + getSpaceUpdatedEventDataFieldBuilder() { + if (spaceUpdatedEventDataBuilder_ == null) { + if (!(payloadCase_ == 15)) { + payload_ = com.google.chat.v1.SpaceUpdatedEventData.getDefaultInstance(); + } + spaceUpdatedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.SpaceUpdatedEventData, + com.google.chat.v1.SpaceUpdatedEventData.Builder, + com.google.chat.v1.SpaceUpdatedEventDataOrBuilder>( + (com.google.chat.v1.SpaceUpdatedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 15; + onChanged(); + return spaceUpdatedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.SpaceBatchUpdatedEventData, + com.google.chat.v1.SpaceBatchUpdatedEventData.Builder, + com.google.chat.v1.SpaceBatchUpdatedEventDataOrBuilder> + spaceBatchUpdatedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for multiple updates to a space.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + * + * @return Whether the spaceBatchUpdatedEventData field is set. + */ + @java.lang.Override + public boolean hasSpaceBatchUpdatedEventData() { + return payloadCase_ == 29; + } + /** + * + * + *
        +     * Event payload for multiple updates to a space.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + * + * @return The spaceBatchUpdatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.SpaceBatchUpdatedEventData getSpaceBatchUpdatedEventData() { + if (spaceBatchUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 29) { + return (com.google.chat.v1.SpaceBatchUpdatedEventData) payload_; + } + return com.google.chat.v1.SpaceBatchUpdatedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 29) { + return spaceBatchUpdatedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.SpaceBatchUpdatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple updates to a space.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + */ + public Builder setSpaceBatchUpdatedEventData( + com.google.chat.v1.SpaceBatchUpdatedEventData value) { + if (spaceBatchUpdatedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + spaceBatchUpdatedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 29; + return this; + } + /** + * + * + *
        +     * Event payload for multiple updates to a space.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + */ + public Builder setSpaceBatchUpdatedEventData( + com.google.chat.v1.SpaceBatchUpdatedEventData.Builder builderForValue) { + if (spaceBatchUpdatedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + spaceBatchUpdatedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 29; + return this; + } + /** + * + * + *
        +     * Event payload for multiple updates to a space.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + */ + public Builder mergeSpaceBatchUpdatedEventData( + com.google.chat.v1.SpaceBatchUpdatedEventData value) { + if (spaceBatchUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 29 + && payload_ != com.google.chat.v1.SpaceBatchUpdatedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.SpaceBatchUpdatedEventData.newBuilder( + (com.google.chat.v1.SpaceBatchUpdatedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 29) { + spaceBatchUpdatedEventDataBuilder_.mergeFrom(value); + } else { + spaceBatchUpdatedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 29; + return this; + } + /** + * + * + *
        +     * Event payload for multiple updates to a space.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + */ + public Builder clearSpaceBatchUpdatedEventData() { + if (spaceBatchUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 29) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 29) { + payloadCase_ = 0; + payload_ = null; + } + spaceBatchUpdatedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for multiple updates to a space.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + */ + public com.google.chat.v1.SpaceBatchUpdatedEventData.Builder + getSpaceBatchUpdatedEventDataBuilder() { + return getSpaceBatchUpdatedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for multiple updates to a space.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + */ + @java.lang.Override + public com.google.chat.v1.SpaceBatchUpdatedEventDataOrBuilder + getSpaceBatchUpdatedEventDataOrBuilder() { + if ((payloadCase_ == 29) && (spaceBatchUpdatedEventDataBuilder_ != null)) { + return spaceBatchUpdatedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 29) { + return (com.google.chat.v1.SpaceBatchUpdatedEventData) payload_; + } + return com.google.chat.v1.SpaceBatchUpdatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple updates to a space.
        +     *
        +     * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +     * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.SpaceBatchUpdatedEventData, + com.google.chat.v1.SpaceBatchUpdatedEventData.Builder, + com.google.chat.v1.SpaceBatchUpdatedEventDataOrBuilder> + getSpaceBatchUpdatedEventDataFieldBuilder() { + if (spaceBatchUpdatedEventDataBuilder_ == null) { + if (!(payloadCase_ == 29)) { + payload_ = com.google.chat.v1.SpaceBatchUpdatedEventData.getDefaultInstance(); + } + spaceBatchUpdatedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.SpaceBatchUpdatedEventData, + com.google.chat.v1.SpaceBatchUpdatedEventData.Builder, + com.google.chat.v1.SpaceBatchUpdatedEventDataOrBuilder>( + (com.google.chat.v1.SpaceBatchUpdatedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 29; + onChanged(); + return spaceBatchUpdatedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipCreatedEventData, + com.google.chat.v1.MembershipCreatedEventData.Builder, + com.google.chat.v1.MembershipCreatedEventDataOrBuilder> + membershipCreatedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for a new membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.created`
        +     * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + * + * @return Whether the membershipCreatedEventData field is set. + */ + @java.lang.Override + public boolean hasMembershipCreatedEventData() { + return payloadCase_ == 17; + } + /** + * + * + *
        +     * Event payload for a new membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.created`
        +     * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + * + * @return The membershipCreatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MembershipCreatedEventData getMembershipCreatedEventData() { + if (membershipCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 17) { + return (com.google.chat.v1.MembershipCreatedEventData) payload_; + } + return com.google.chat.v1.MembershipCreatedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 17) { + return membershipCreatedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.MembershipCreatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for a new membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.created`
        +     * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + */ + public Builder setMembershipCreatedEventData( + com.google.chat.v1.MembershipCreatedEventData value) { + if (membershipCreatedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + membershipCreatedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 17; + return this; + } + /** + * + * + *
        +     * Event payload for a new membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.created`
        +     * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + */ + public Builder setMembershipCreatedEventData( + com.google.chat.v1.MembershipCreatedEventData.Builder builderForValue) { + if (membershipCreatedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + membershipCreatedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 17; + return this; + } + /** + * + * + *
        +     * Event payload for a new membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.created`
        +     * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + */ + public Builder mergeMembershipCreatedEventData( + com.google.chat.v1.MembershipCreatedEventData value) { + if (membershipCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 17 + && payload_ != com.google.chat.v1.MembershipCreatedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.MembershipCreatedEventData.newBuilder( + (com.google.chat.v1.MembershipCreatedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 17) { + membershipCreatedEventDataBuilder_.mergeFrom(value); + } else { + membershipCreatedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 17; + return this; + } + /** + * + * + *
        +     * Event payload for a new membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.created`
        +     * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + */ + public Builder clearMembershipCreatedEventData() { + if (membershipCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 17) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 17) { + payloadCase_ = 0; + payload_ = null; + } + membershipCreatedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for a new membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.created`
        +     * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + */ + public com.google.chat.v1.MembershipCreatedEventData.Builder + getMembershipCreatedEventDataBuilder() { + return getMembershipCreatedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for a new membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.created`
        +     * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + */ + @java.lang.Override + public com.google.chat.v1.MembershipCreatedEventDataOrBuilder + getMembershipCreatedEventDataOrBuilder() { + if ((payloadCase_ == 17) && (membershipCreatedEventDataBuilder_ != null)) { + return membershipCreatedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 17) { + return (com.google.chat.v1.MembershipCreatedEventData) payload_; + } + return com.google.chat.v1.MembershipCreatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for a new membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.created`
        +     * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipCreatedEventData, + com.google.chat.v1.MembershipCreatedEventData.Builder, + com.google.chat.v1.MembershipCreatedEventDataOrBuilder> + getMembershipCreatedEventDataFieldBuilder() { + if (membershipCreatedEventDataBuilder_ == null) { + if (!(payloadCase_ == 17)) { + payload_ = com.google.chat.v1.MembershipCreatedEventData.getDefaultInstance(); + } + membershipCreatedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipCreatedEventData, + com.google.chat.v1.MembershipCreatedEventData.Builder, + com.google.chat.v1.MembershipCreatedEventDataOrBuilder>( + (com.google.chat.v1.MembershipCreatedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 17; + onChanged(); + return membershipCreatedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipUpdatedEventData, + com.google.chat.v1.MembershipUpdatedEventData.Builder, + com.google.chat.v1.MembershipUpdatedEventDataOrBuilder> + membershipUpdatedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for an updated membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.updated`
        +     * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + * + * @return Whether the membershipUpdatedEventData field is set. + */ + @java.lang.Override + public boolean hasMembershipUpdatedEventData() { + return payloadCase_ == 18; + } + /** + * + * + *
        +     * Event payload for an updated membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.updated`
        +     * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + * + * @return The membershipUpdatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MembershipUpdatedEventData getMembershipUpdatedEventData() { + if (membershipUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 18) { + return (com.google.chat.v1.MembershipUpdatedEventData) payload_; + } + return com.google.chat.v1.MembershipUpdatedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 18) { + return membershipUpdatedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.MembershipUpdatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for an updated membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.updated`
        +     * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + */ + public Builder setMembershipUpdatedEventData( + com.google.chat.v1.MembershipUpdatedEventData value) { + if (membershipUpdatedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + membershipUpdatedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 18; + return this; + } + /** + * + * + *
        +     * Event payload for an updated membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.updated`
        +     * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + */ + public Builder setMembershipUpdatedEventData( + com.google.chat.v1.MembershipUpdatedEventData.Builder builderForValue) { + if (membershipUpdatedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + membershipUpdatedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 18; + return this; + } + /** + * + * + *
        +     * Event payload for an updated membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.updated`
        +     * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + */ + public Builder mergeMembershipUpdatedEventData( + com.google.chat.v1.MembershipUpdatedEventData value) { + if (membershipUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 18 + && payload_ != com.google.chat.v1.MembershipUpdatedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.MembershipUpdatedEventData.newBuilder( + (com.google.chat.v1.MembershipUpdatedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 18) { + membershipUpdatedEventDataBuilder_.mergeFrom(value); + } else { + membershipUpdatedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 18; + return this; + } + /** + * + * + *
        +     * Event payload for an updated membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.updated`
        +     * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + */ + public Builder clearMembershipUpdatedEventData() { + if (membershipUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 18) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 18) { + payloadCase_ = 0; + payload_ = null; + } + membershipUpdatedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for an updated membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.updated`
        +     * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + */ + public com.google.chat.v1.MembershipUpdatedEventData.Builder + getMembershipUpdatedEventDataBuilder() { + return getMembershipUpdatedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for an updated membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.updated`
        +     * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + */ + @java.lang.Override + public com.google.chat.v1.MembershipUpdatedEventDataOrBuilder + getMembershipUpdatedEventDataOrBuilder() { + if ((payloadCase_ == 18) && (membershipUpdatedEventDataBuilder_ != null)) { + return membershipUpdatedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 18) { + return (com.google.chat.v1.MembershipUpdatedEventData) payload_; + } + return com.google.chat.v1.MembershipUpdatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for an updated membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.updated`
        +     * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipUpdatedEventData, + com.google.chat.v1.MembershipUpdatedEventData.Builder, + com.google.chat.v1.MembershipUpdatedEventDataOrBuilder> + getMembershipUpdatedEventDataFieldBuilder() { + if (membershipUpdatedEventDataBuilder_ == null) { + if (!(payloadCase_ == 18)) { + payload_ = com.google.chat.v1.MembershipUpdatedEventData.getDefaultInstance(); + } + membershipUpdatedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipUpdatedEventData, + com.google.chat.v1.MembershipUpdatedEventData.Builder, + com.google.chat.v1.MembershipUpdatedEventDataOrBuilder>( + (com.google.chat.v1.MembershipUpdatedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 18; + onChanged(); + return membershipUpdatedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipDeletedEventData, + com.google.chat.v1.MembershipDeletedEventData.Builder, + com.google.chat.v1.MembershipDeletedEventDataOrBuilder> + membershipDeletedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for a deleted membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + * + * @return Whether the membershipDeletedEventData field is set. + */ + @java.lang.Override + public boolean hasMembershipDeletedEventData() { + return payloadCase_ == 219; + } + /** + * + * + *
        +     * Event payload for a deleted membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + * + * @return The membershipDeletedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MembershipDeletedEventData getMembershipDeletedEventData() { + if (membershipDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 219) { + return (com.google.chat.v1.MembershipDeletedEventData) payload_; + } + return com.google.chat.v1.MembershipDeletedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 219) { + return membershipDeletedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.MembershipDeletedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for a deleted membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + */ + public Builder setMembershipDeletedEventData( + com.google.chat.v1.MembershipDeletedEventData value) { + if (membershipDeletedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + membershipDeletedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 219; + return this; + } + /** + * + * + *
        +     * Event payload for a deleted membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + */ + public Builder setMembershipDeletedEventData( + com.google.chat.v1.MembershipDeletedEventData.Builder builderForValue) { + if (membershipDeletedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + membershipDeletedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 219; + return this; + } + /** + * + * + *
        +     * Event payload for a deleted membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + */ + public Builder mergeMembershipDeletedEventData( + com.google.chat.v1.MembershipDeletedEventData value) { + if (membershipDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 219 + && payload_ != com.google.chat.v1.MembershipDeletedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.MembershipDeletedEventData.newBuilder( + (com.google.chat.v1.MembershipDeletedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 219) { + membershipDeletedEventDataBuilder_.mergeFrom(value); + } else { + membershipDeletedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 219; + return this; + } + /** + * + * + *
        +     * Event payload for a deleted membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + */ + public Builder clearMembershipDeletedEventData() { + if (membershipDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 219) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 219) { + payloadCase_ = 0; + payload_ = null; + } + membershipDeletedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for a deleted membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + */ + public com.google.chat.v1.MembershipDeletedEventData.Builder + getMembershipDeletedEventDataBuilder() { + return getMembershipDeletedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for a deleted membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + */ + @java.lang.Override + public com.google.chat.v1.MembershipDeletedEventDataOrBuilder + getMembershipDeletedEventDataOrBuilder() { + if ((payloadCase_ == 219) && (membershipDeletedEventDataBuilder_ != null)) { + return membershipDeletedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 219) { + return (com.google.chat.v1.MembershipDeletedEventData) payload_; + } + return com.google.chat.v1.MembershipDeletedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for a deleted membership.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.deleted`
        +     * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipDeletedEventData, + com.google.chat.v1.MembershipDeletedEventData.Builder, + com.google.chat.v1.MembershipDeletedEventDataOrBuilder> + getMembershipDeletedEventDataFieldBuilder() { + if (membershipDeletedEventDataBuilder_ == null) { + if (!(payloadCase_ == 219)) { + payload_ = com.google.chat.v1.MembershipDeletedEventData.getDefaultInstance(); + } + membershipDeletedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipDeletedEventData, + com.google.chat.v1.MembershipDeletedEventData.Builder, + com.google.chat.v1.MembershipDeletedEventDataOrBuilder>( + (com.google.chat.v1.MembershipDeletedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 219; + onChanged(); + return membershipDeletedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipBatchCreatedEventData, + com.google.chat.v1.MembershipBatchCreatedEventData.Builder, + com.google.chat.v1.MembershipBatchCreatedEventDataOrBuilder> + membershipBatchCreatedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for multiple new memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + * + * @return Whether the membershipBatchCreatedEventData field is set. + */ + @java.lang.Override + public boolean hasMembershipBatchCreatedEventData() { + return payloadCase_ == 31; + } + /** + * + * + *
        +     * Event payload for multiple new memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + * + * @return The membershipBatchCreatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MembershipBatchCreatedEventData getMembershipBatchCreatedEventData() { + if (membershipBatchCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 31) { + return (com.google.chat.v1.MembershipBatchCreatedEventData) payload_; + } + return com.google.chat.v1.MembershipBatchCreatedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 31) { + return membershipBatchCreatedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.MembershipBatchCreatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple new memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + */ + public Builder setMembershipBatchCreatedEventData( + com.google.chat.v1.MembershipBatchCreatedEventData value) { + if (membershipBatchCreatedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + membershipBatchCreatedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 31; + return this; + } + /** + * + * + *
        +     * Event payload for multiple new memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + */ + public Builder setMembershipBatchCreatedEventData( + com.google.chat.v1.MembershipBatchCreatedEventData.Builder builderForValue) { + if (membershipBatchCreatedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + membershipBatchCreatedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 31; + return this; + } + /** + * + * + *
        +     * Event payload for multiple new memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + */ + public Builder mergeMembershipBatchCreatedEventData( + com.google.chat.v1.MembershipBatchCreatedEventData value) { + if (membershipBatchCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 31 + && payload_ + != com.google.chat.v1.MembershipBatchCreatedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.MembershipBatchCreatedEventData.newBuilder( + (com.google.chat.v1.MembershipBatchCreatedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 31) { + membershipBatchCreatedEventDataBuilder_.mergeFrom(value); + } else { + membershipBatchCreatedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 31; + return this; + } + /** + * + * + *
        +     * Event payload for multiple new memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + */ + public Builder clearMembershipBatchCreatedEventData() { + if (membershipBatchCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 31) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 31) { + payloadCase_ = 0; + payload_ = null; + } + membershipBatchCreatedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for multiple new memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + */ + public com.google.chat.v1.MembershipBatchCreatedEventData.Builder + getMembershipBatchCreatedEventDataBuilder() { + return getMembershipBatchCreatedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for multiple new memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + */ + @java.lang.Override + public com.google.chat.v1.MembershipBatchCreatedEventDataOrBuilder + getMembershipBatchCreatedEventDataOrBuilder() { + if ((payloadCase_ == 31) && (membershipBatchCreatedEventDataBuilder_ != null)) { + return membershipBatchCreatedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 31) { + return (com.google.chat.v1.MembershipBatchCreatedEventData) payload_; + } + return com.google.chat.v1.MembershipBatchCreatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple new memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipBatchCreatedEventData, + com.google.chat.v1.MembershipBatchCreatedEventData.Builder, + com.google.chat.v1.MembershipBatchCreatedEventDataOrBuilder> + getMembershipBatchCreatedEventDataFieldBuilder() { + if (membershipBatchCreatedEventDataBuilder_ == null) { + if (!(payloadCase_ == 31)) { + payload_ = com.google.chat.v1.MembershipBatchCreatedEventData.getDefaultInstance(); + } + membershipBatchCreatedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipBatchCreatedEventData, + com.google.chat.v1.MembershipBatchCreatedEventData.Builder, + com.google.chat.v1.MembershipBatchCreatedEventDataOrBuilder>( + (com.google.chat.v1.MembershipBatchCreatedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 31; + onChanged(); + return membershipBatchCreatedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipBatchUpdatedEventData, + com.google.chat.v1.MembershipBatchUpdatedEventData.Builder, + com.google.chat.v1.MembershipBatchUpdatedEventDataOrBuilder> + membershipBatchUpdatedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for multiple updated memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + * + * @return Whether the membershipBatchUpdatedEventData field is set. + */ + @java.lang.Override + public boolean hasMembershipBatchUpdatedEventData() { + return payloadCase_ == 32; + } + /** + * + * + *
        +     * Event payload for multiple updated memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + * + * @return The membershipBatchUpdatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MembershipBatchUpdatedEventData getMembershipBatchUpdatedEventData() { + if (membershipBatchUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 32) { + return (com.google.chat.v1.MembershipBatchUpdatedEventData) payload_; + } + return com.google.chat.v1.MembershipBatchUpdatedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 32) { + return membershipBatchUpdatedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.MembershipBatchUpdatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple updated memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + */ + public Builder setMembershipBatchUpdatedEventData( + com.google.chat.v1.MembershipBatchUpdatedEventData value) { + if (membershipBatchUpdatedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + membershipBatchUpdatedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 32; + return this; + } + /** + * + * + *
        +     * Event payload for multiple updated memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + */ + public Builder setMembershipBatchUpdatedEventData( + com.google.chat.v1.MembershipBatchUpdatedEventData.Builder builderForValue) { + if (membershipBatchUpdatedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + membershipBatchUpdatedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 32; + return this; + } + /** + * + * + *
        +     * Event payload for multiple updated memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + */ + public Builder mergeMembershipBatchUpdatedEventData( + com.google.chat.v1.MembershipBatchUpdatedEventData value) { + if (membershipBatchUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 32 + && payload_ + != com.google.chat.v1.MembershipBatchUpdatedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.MembershipBatchUpdatedEventData.newBuilder( + (com.google.chat.v1.MembershipBatchUpdatedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 32) { + membershipBatchUpdatedEventDataBuilder_.mergeFrom(value); + } else { + membershipBatchUpdatedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 32; + return this; + } + /** + * + * + *
        +     * Event payload for multiple updated memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + */ + public Builder clearMembershipBatchUpdatedEventData() { + if (membershipBatchUpdatedEventDataBuilder_ == null) { + if (payloadCase_ == 32) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 32) { + payloadCase_ = 0; + payload_ = null; + } + membershipBatchUpdatedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for multiple updated memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + */ + public com.google.chat.v1.MembershipBatchUpdatedEventData.Builder + getMembershipBatchUpdatedEventDataBuilder() { + return getMembershipBatchUpdatedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for multiple updated memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + */ + @java.lang.Override + public com.google.chat.v1.MembershipBatchUpdatedEventDataOrBuilder + getMembershipBatchUpdatedEventDataOrBuilder() { + if ((payloadCase_ == 32) && (membershipBatchUpdatedEventDataBuilder_ != null)) { + return membershipBatchUpdatedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 32) { + return (com.google.chat.v1.MembershipBatchUpdatedEventData) payload_; + } + return com.google.chat.v1.MembershipBatchUpdatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple updated memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipBatchUpdatedEventData, + com.google.chat.v1.MembershipBatchUpdatedEventData.Builder, + com.google.chat.v1.MembershipBatchUpdatedEventDataOrBuilder> + getMembershipBatchUpdatedEventDataFieldBuilder() { + if (membershipBatchUpdatedEventDataBuilder_ == null) { + if (!(payloadCase_ == 32)) { + payload_ = com.google.chat.v1.MembershipBatchUpdatedEventData.getDefaultInstance(); + } + membershipBatchUpdatedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipBatchUpdatedEventData, + com.google.chat.v1.MembershipBatchUpdatedEventData.Builder, + com.google.chat.v1.MembershipBatchUpdatedEventDataOrBuilder>( + (com.google.chat.v1.MembershipBatchUpdatedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 32; + onChanged(); + return membershipBatchUpdatedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipBatchDeletedEventData, + com.google.chat.v1.MembershipBatchDeletedEventData.Builder, + com.google.chat.v1.MembershipBatchDeletedEventDataOrBuilder> + membershipBatchDeletedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for multiple deleted memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + * + * @return Whether the membershipBatchDeletedEventData field is set. + */ + @java.lang.Override + public boolean hasMembershipBatchDeletedEventData() { + return payloadCase_ == 33; + } + /** + * + * + *
        +     * Event payload for multiple deleted memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + * + * @return The membershipBatchDeletedEventData. + */ + @java.lang.Override + public com.google.chat.v1.MembershipBatchDeletedEventData getMembershipBatchDeletedEventData() { + if (membershipBatchDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 33) { + return (com.google.chat.v1.MembershipBatchDeletedEventData) payload_; + } + return com.google.chat.v1.MembershipBatchDeletedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 33) { + return membershipBatchDeletedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.MembershipBatchDeletedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple deleted memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + */ + public Builder setMembershipBatchDeletedEventData( + com.google.chat.v1.MembershipBatchDeletedEventData value) { + if (membershipBatchDeletedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + membershipBatchDeletedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 33; + return this; + } + /** + * + * + *
        +     * Event payload for multiple deleted memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + */ + public Builder setMembershipBatchDeletedEventData( + com.google.chat.v1.MembershipBatchDeletedEventData.Builder builderForValue) { + if (membershipBatchDeletedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + membershipBatchDeletedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 33; + return this; + } + /** + * + * + *
        +     * Event payload for multiple deleted memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + */ + public Builder mergeMembershipBatchDeletedEventData( + com.google.chat.v1.MembershipBatchDeletedEventData value) { + if (membershipBatchDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 33 + && payload_ + != com.google.chat.v1.MembershipBatchDeletedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.MembershipBatchDeletedEventData.newBuilder( + (com.google.chat.v1.MembershipBatchDeletedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 33) { + membershipBatchDeletedEventDataBuilder_.mergeFrom(value); + } else { + membershipBatchDeletedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 33; + return this; + } + /** + * + * + *
        +     * Event payload for multiple deleted memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + */ + public Builder clearMembershipBatchDeletedEventData() { + if (membershipBatchDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 33) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 33) { + payloadCase_ = 0; + payload_ = null; + } + membershipBatchDeletedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for multiple deleted memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + */ + public com.google.chat.v1.MembershipBatchDeletedEventData.Builder + getMembershipBatchDeletedEventDataBuilder() { + return getMembershipBatchDeletedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for multiple deleted memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + */ + @java.lang.Override + public com.google.chat.v1.MembershipBatchDeletedEventDataOrBuilder + getMembershipBatchDeletedEventDataOrBuilder() { + if ((payloadCase_ == 33) && (membershipBatchDeletedEventDataBuilder_ != null)) { + return membershipBatchDeletedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 33) { + return (com.google.chat.v1.MembershipBatchDeletedEventData) payload_; + } + return com.google.chat.v1.MembershipBatchDeletedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple deleted memberships.
        +     *
        +     * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +     * 
        + * + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipBatchDeletedEventData, + com.google.chat.v1.MembershipBatchDeletedEventData.Builder, + com.google.chat.v1.MembershipBatchDeletedEventDataOrBuilder> + getMembershipBatchDeletedEventDataFieldBuilder() { + if (membershipBatchDeletedEventDataBuilder_ == null) { + if (!(payloadCase_ == 33)) { + payload_ = com.google.chat.v1.MembershipBatchDeletedEventData.getDefaultInstance(); + } + membershipBatchDeletedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.MembershipBatchDeletedEventData, + com.google.chat.v1.MembershipBatchDeletedEventData.Builder, + com.google.chat.v1.MembershipBatchDeletedEventDataOrBuilder>( + (com.google.chat.v1.MembershipBatchDeletedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 33; + onChanged(); + return membershipBatchDeletedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.ReactionCreatedEventData, + com.google.chat.v1.ReactionCreatedEventData.Builder, + com.google.chat.v1.ReactionCreatedEventDataOrBuilder> + reactionCreatedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for a new reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.created`
        +     * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + * + * @return Whether the reactionCreatedEventData field is set. + */ + @java.lang.Override + public boolean hasReactionCreatedEventData() { + return payloadCase_ == 21; + } + /** + * + * + *
        +     * Event payload for a new reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.created`
        +     * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + * + * @return The reactionCreatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.ReactionCreatedEventData getReactionCreatedEventData() { + if (reactionCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 21) { + return (com.google.chat.v1.ReactionCreatedEventData) payload_; + } + return com.google.chat.v1.ReactionCreatedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 21) { + return reactionCreatedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.ReactionCreatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for a new reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.created`
        +     * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + */ + public Builder setReactionCreatedEventData(com.google.chat.v1.ReactionCreatedEventData value) { + if (reactionCreatedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + reactionCreatedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 21; + return this; + } + /** + * + * + *
        +     * Event payload for a new reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.created`
        +     * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + */ + public Builder setReactionCreatedEventData( + com.google.chat.v1.ReactionCreatedEventData.Builder builderForValue) { + if (reactionCreatedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + reactionCreatedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 21; + return this; + } + /** + * + * + *
        +     * Event payload for a new reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.created`
        +     * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + */ + public Builder mergeReactionCreatedEventData( + com.google.chat.v1.ReactionCreatedEventData value) { + if (reactionCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 21 + && payload_ != com.google.chat.v1.ReactionCreatedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.ReactionCreatedEventData.newBuilder( + (com.google.chat.v1.ReactionCreatedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 21) { + reactionCreatedEventDataBuilder_.mergeFrom(value); + } else { + reactionCreatedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 21; + return this; + } + /** + * + * + *
        +     * Event payload for a new reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.created`
        +     * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + */ + public Builder clearReactionCreatedEventData() { + if (reactionCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 21) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 21) { + payloadCase_ = 0; + payload_ = null; + } + reactionCreatedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for a new reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.created`
        +     * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + */ + public com.google.chat.v1.ReactionCreatedEventData.Builder + getReactionCreatedEventDataBuilder() { + return getReactionCreatedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for a new reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.created`
        +     * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + */ + @java.lang.Override + public com.google.chat.v1.ReactionCreatedEventDataOrBuilder + getReactionCreatedEventDataOrBuilder() { + if ((payloadCase_ == 21) && (reactionCreatedEventDataBuilder_ != null)) { + return reactionCreatedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 21) { + return (com.google.chat.v1.ReactionCreatedEventData) payload_; + } + return com.google.chat.v1.ReactionCreatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for a new reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.created`
        +     * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.ReactionCreatedEventData, + com.google.chat.v1.ReactionCreatedEventData.Builder, + com.google.chat.v1.ReactionCreatedEventDataOrBuilder> + getReactionCreatedEventDataFieldBuilder() { + if (reactionCreatedEventDataBuilder_ == null) { + if (!(payloadCase_ == 21)) { + payload_ = com.google.chat.v1.ReactionCreatedEventData.getDefaultInstance(); + } + reactionCreatedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.ReactionCreatedEventData, + com.google.chat.v1.ReactionCreatedEventData.Builder, + com.google.chat.v1.ReactionCreatedEventDataOrBuilder>( + (com.google.chat.v1.ReactionCreatedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 21; + onChanged(); + return reactionCreatedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.ReactionDeletedEventData, + com.google.chat.v1.ReactionDeletedEventData.Builder, + com.google.chat.v1.ReactionDeletedEventDataOrBuilder> + reactionDeletedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for a deleted reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.deleted`
        +     * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + * + * @return Whether the reactionDeletedEventData field is set. + */ + @java.lang.Override + public boolean hasReactionDeletedEventData() { + return payloadCase_ == 22; + } + /** + * + * + *
        +     * Event payload for a deleted reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.deleted`
        +     * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + * + * @return The reactionDeletedEventData. + */ + @java.lang.Override + public com.google.chat.v1.ReactionDeletedEventData getReactionDeletedEventData() { + if (reactionDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 22) { + return (com.google.chat.v1.ReactionDeletedEventData) payload_; + } + return com.google.chat.v1.ReactionDeletedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 22) { + return reactionDeletedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.ReactionDeletedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for a deleted reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.deleted`
        +     * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + */ + public Builder setReactionDeletedEventData(com.google.chat.v1.ReactionDeletedEventData value) { + if (reactionDeletedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + reactionDeletedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 22; + return this; + } + /** + * + * + *
        +     * Event payload for a deleted reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.deleted`
        +     * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + */ + public Builder setReactionDeletedEventData( + com.google.chat.v1.ReactionDeletedEventData.Builder builderForValue) { + if (reactionDeletedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + reactionDeletedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 22; + return this; + } + /** + * + * + *
        +     * Event payload for a deleted reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.deleted`
        +     * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + */ + public Builder mergeReactionDeletedEventData( + com.google.chat.v1.ReactionDeletedEventData value) { + if (reactionDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 22 + && payload_ != com.google.chat.v1.ReactionDeletedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.ReactionDeletedEventData.newBuilder( + (com.google.chat.v1.ReactionDeletedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 22) { + reactionDeletedEventDataBuilder_.mergeFrom(value); + } else { + reactionDeletedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 22; + return this; + } + /** + * + * + *
        +     * Event payload for a deleted reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.deleted`
        +     * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + */ + public Builder clearReactionDeletedEventData() { + if (reactionDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 22) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 22) { + payloadCase_ = 0; + payload_ = null; + } + reactionDeletedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for a deleted reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.deleted`
        +     * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + */ + public com.google.chat.v1.ReactionDeletedEventData.Builder + getReactionDeletedEventDataBuilder() { + return getReactionDeletedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for a deleted reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.deleted`
        +     * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + */ + @java.lang.Override + public com.google.chat.v1.ReactionDeletedEventDataOrBuilder + getReactionDeletedEventDataOrBuilder() { + if ((payloadCase_ == 22) && (reactionDeletedEventDataBuilder_ != null)) { + return reactionDeletedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 22) { + return (com.google.chat.v1.ReactionDeletedEventData) payload_; + } + return com.google.chat.v1.ReactionDeletedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for a deleted reaction.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.deleted`
        +     * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.ReactionDeletedEventData, + com.google.chat.v1.ReactionDeletedEventData.Builder, + com.google.chat.v1.ReactionDeletedEventDataOrBuilder> + getReactionDeletedEventDataFieldBuilder() { + if (reactionDeletedEventDataBuilder_ == null) { + if (!(payloadCase_ == 22)) { + payload_ = com.google.chat.v1.ReactionDeletedEventData.getDefaultInstance(); + } + reactionDeletedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.ReactionDeletedEventData, + com.google.chat.v1.ReactionDeletedEventData.Builder, + com.google.chat.v1.ReactionDeletedEventDataOrBuilder>( + (com.google.chat.v1.ReactionDeletedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 22; + onChanged(); + return reactionDeletedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.ReactionBatchCreatedEventData, + com.google.chat.v1.ReactionBatchCreatedEventData.Builder, + com.google.chat.v1.ReactionBatchCreatedEventDataOrBuilder> + reactionBatchCreatedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for multiple new reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + * + * @return Whether the reactionBatchCreatedEventData field is set. + */ + @java.lang.Override + public boolean hasReactionBatchCreatedEventData() { + return payloadCase_ == 34; + } + /** + * + * + *
        +     * Event payload for multiple new reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + * + * @return The reactionBatchCreatedEventData. + */ + @java.lang.Override + public com.google.chat.v1.ReactionBatchCreatedEventData getReactionBatchCreatedEventData() { + if (reactionBatchCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 34) { + return (com.google.chat.v1.ReactionBatchCreatedEventData) payload_; + } + return com.google.chat.v1.ReactionBatchCreatedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 34) { + return reactionBatchCreatedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.ReactionBatchCreatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple new reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + */ + public Builder setReactionBatchCreatedEventData( + com.google.chat.v1.ReactionBatchCreatedEventData value) { + if (reactionBatchCreatedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + reactionBatchCreatedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 34; + return this; + } + /** + * + * + *
        +     * Event payload for multiple new reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + */ + public Builder setReactionBatchCreatedEventData( + com.google.chat.v1.ReactionBatchCreatedEventData.Builder builderForValue) { + if (reactionBatchCreatedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + reactionBatchCreatedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 34; + return this; + } + /** + * + * + *
        +     * Event payload for multiple new reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + */ + public Builder mergeReactionBatchCreatedEventData( + com.google.chat.v1.ReactionBatchCreatedEventData value) { + if (reactionBatchCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 34 + && payload_ != com.google.chat.v1.ReactionBatchCreatedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.ReactionBatchCreatedEventData.newBuilder( + (com.google.chat.v1.ReactionBatchCreatedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 34) { + reactionBatchCreatedEventDataBuilder_.mergeFrom(value); + } else { + reactionBatchCreatedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 34; + return this; + } + /** + * + * + *
        +     * Event payload for multiple new reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + */ + public Builder clearReactionBatchCreatedEventData() { + if (reactionBatchCreatedEventDataBuilder_ == null) { + if (payloadCase_ == 34) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 34) { + payloadCase_ = 0; + payload_ = null; + } + reactionBatchCreatedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for multiple new reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + */ + public com.google.chat.v1.ReactionBatchCreatedEventData.Builder + getReactionBatchCreatedEventDataBuilder() { + return getReactionBatchCreatedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for multiple new reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + */ + @java.lang.Override + public com.google.chat.v1.ReactionBatchCreatedEventDataOrBuilder + getReactionBatchCreatedEventDataOrBuilder() { + if ((payloadCase_ == 34) && (reactionBatchCreatedEventDataBuilder_ != null)) { + return reactionBatchCreatedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 34) { + return (com.google.chat.v1.ReactionBatchCreatedEventData) payload_; + } + return com.google.chat.v1.ReactionBatchCreatedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple new reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +     * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.ReactionBatchCreatedEventData, + com.google.chat.v1.ReactionBatchCreatedEventData.Builder, + com.google.chat.v1.ReactionBatchCreatedEventDataOrBuilder> + getReactionBatchCreatedEventDataFieldBuilder() { + if (reactionBatchCreatedEventDataBuilder_ == null) { + if (!(payloadCase_ == 34)) { + payload_ = com.google.chat.v1.ReactionBatchCreatedEventData.getDefaultInstance(); + } + reactionBatchCreatedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.ReactionBatchCreatedEventData, + com.google.chat.v1.ReactionBatchCreatedEventData.Builder, + com.google.chat.v1.ReactionBatchCreatedEventDataOrBuilder>( + (com.google.chat.v1.ReactionBatchCreatedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 34; + onChanged(); + return reactionBatchCreatedEventDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.ReactionBatchDeletedEventData, + com.google.chat.v1.ReactionBatchDeletedEventData.Builder, + com.google.chat.v1.ReactionBatchDeletedEventDataOrBuilder> + reactionBatchDeletedEventDataBuilder_; + /** + * + * + *
        +     * Event payload for multiple deleted reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + * + * @return Whether the reactionBatchDeletedEventData field is set. + */ + @java.lang.Override + public boolean hasReactionBatchDeletedEventData() { + return payloadCase_ == 35; + } + /** + * + * + *
        +     * Event payload for multiple deleted reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + * + * @return The reactionBatchDeletedEventData. + */ + @java.lang.Override + public com.google.chat.v1.ReactionBatchDeletedEventData getReactionBatchDeletedEventData() { + if (reactionBatchDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 35) { + return (com.google.chat.v1.ReactionBatchDeletedEventData) payload_; + } + return com.google.chat.v1.ReactionBatchDeletedEventData.getDefaultInstance(); + } else { + if (payloadCase_ == 35) { + return reactionBatchDeletedEventDataBuilder_.getMessage(); + } + return com.google.chat.v1.ReactionBatchDeletedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple deleted reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + */ + public Builder setReactionBatchDeletedEventData( + com.google.chat.v1.ReactionBatchDeletedEventData value) { + if (reactionBatchDeletedEventDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + reactionBatchDeletedEventDataBuilder_.setMessage(value); + } + payloadCase_ = 35; + return this; + } + /** + * + * + *
        +     * Event payload for multiple deleted reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + */ + public Builder setReactionBatchDeletedEventData( + com.google.chat.v1.ReactionBatchDeletedEventData.Builder builderForValue) { + if (reactionBatchDeletedEventDataBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + reactionBatchDeletedEventDataBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 35; + return this; + } + /** + * + * + *
        +     * Event payload for multiple deleted reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + */ + public Builder mergeReactionBatchDeletedEventData( + com.google.chat.v1.ReactionBatchDeletedEventData value) { + if (reactionBatchDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 35 + && payload_ != com.google.chat.v1.ReactionBatchDeletedEventData.getDefaultInstance()) { + payload_ = + com.google.chat.v1.ReactionBatchDeletedEventData.newBuilder( + (com.google.chat.v1.ReactionBatchDeletedEventData) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 35) { + reactionBatchDeletedEventDataBuilder_.mergeFrom(value); + } else { + reactionBatchDeletedEventDataBuilder_.setMessage(value); + } + } + payloadCase_ = 35; + return this; + } + /** + * + * + *
        +     * Event payload for multiple deleted reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + */ + public Builder clearReactionBatchDeletedEventData() { + if (reactionBatchDeletedEventDataBuilder_ == null) { + if (payloadCase_ == 35) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 35) { + payloadCase_ = 0; + payload_ = null; + } + reactionBatchDeletedEventDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Event payload for multiple deleted reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + */ + public com.google.chat.v1.ReactionBatchDeletedEventData.Builder + getReactionBatchDeletedEventDataBuilder() { + return getReactionBatchDeletedEventDataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Event payload for multiple deleted reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + */ + @java.lang.Override + public com.google.chat.v1.ReactionBatchDeletedEventDataOrBuilder + getReactionBatchDeletedEventDataOrBuilder() { + if ((payloadCase_ == 35) && (reactionBatchDeletedEventDataBuilder_ != null)) { + return reactionBatchDeletedEventDataBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 35) { + return (com.google.chat.v1.ReactionBatchDeletedEventData) payload_; + } + return com.google.chat.v1.ReactionBatchDeletedEventData.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Event payload for multiple deleted reactions.
        +     *
        +     * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +     * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.ReactionBatchDeletedEventData, + com.google.chat.v1.ReactionBatchDeletedEventData.Builder, + com.google.chat.v1.ReactionBatchDeletedEventDataOrBuilder> + getReactionBatchDeletedEventDataFieldBuilder() { + if (reactionBatchDeletedEventDataBuilder_ == null) { + if (!(payloadCase_ == 35)) { + payload_ = com.google.chat.v1.ReactionBatchDeletedEventData.getDefaultInstance(); + } + reactionBatchDeletedEventDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.ReactionBatchDeletedEventData, + com.google.chat.v1.ReactionBatchDeletedEventData.Builder, + com.google.chat.v1.ReactionBatchDeletedEventDataOrBuilder>( + (com.google.chat.v1.ReactionBatchDeletedEventData) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 35; + onChanged(); + return reactionBatchDeletedEventDataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.SpaceEvent) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.SpaceEvent) + private static final com.google.chat.v1.SpaceEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.SpaceEvent(); + } + + public static com.google.chat.v1.SpaceEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpaceEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.SpaceEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventName.java new file mode 100644 index 000000000000..038497d844b0 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SpaceEventName implements ResourceName { + private static final PathTemplate SPACE_SPACE_EVENT = + PathTemplate.createWithoutUrlEncoding("spaces/{space}/spaceEvents/{space_event}"); + private volatile Map fieldValuesMap; + private final String space; + private final String spaceEvent; + + @Deprecated + protected SpaceEventName() { + space = null; + spaceEvent = null; + } + + private SpaceEventName(Builder builder) { + space = Preconditions.checkNotNull(builder.getSpace()); + spaceEvent = Preconditions.checkNotNull(builder.getSpaceEvent()); + } + + public String getSpace() { + return space; + } + + public String getSpaceEvent() { + return spaceEvent; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SpaceEventName of(String space, String spaceEvent) { + return newBuilder().setSpace(space).setSpaceEvent(spaceEvent).build(); + } + + public static String format(String space, String spaceEvent) { + return newBuilder().setSpace(space).setSpaceEvent(spaceEvent).build().toString(); + } + + public static SpaceEventName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + SPACE_SPACE_EVENT.validatedMatch( + formattedString, "SpaceEventName.parse: formattedString not in valid format"); + return of(matchMap.get("space"), matchMap.get("space_event")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SpaceEventName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return SPACE_SPACE_EVENT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (space != null) { + fieldMapBuilder.put("space", space); + } + if (spaceEvent != null) { + fieldMapBuilder.put("space_event", spaceEvent); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return SPACE_SPACE_EVENT.instantiate("space", space, "space_event", spaceEvent); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SpaceEventName that = ((SpaceEventName) o); + return Objects.equals(this.space, that.space) + && Objects.equals(this.spaceEvent, that.spaceEvent); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(space); + h *= 1000003; + h ^= Objects.hashCode(spaceEvent); + return h; + } + + /** Builder for spaces/{space}/spaceEvents/{space_event}. */ + public static class Builder { + private String space; + private String spaceEvent; + + protected Builder() {} + + public String getSpace() { + return space; + } + + public String getSpaceEvent() { + return spaceEvent; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setSpaceEvent(String spaceEvent) { + this.spaceEvent = spaceEvent; + return this; + } + + private Builder(SpaceEventName spaceEventName) { + this.space = spaceEventName.space; + this.spaceEvent = spaceEventName.spaceEvent; + } + + public SpaceEventName build() { + return new SpaceEventName(this); + } + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventOrBuilder.java new file mode 100644 index 000000000000..6d87cd311bf7 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventOrBuilder.java @@ -0,0 +1,977 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/space_event.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface SpaceEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.SpaceEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Resource name of the space event.
        +   *
        +   * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +   * 
        + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
        +   * Resource name of the space event.
        +   *
        +   * Format: `spaces/{space}/spaceEvents/{spaceEvent}`
        +   * 
        + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
        +   * Time when the event occurred.
        +   * 
        + * + * .google.protobuf.Timestamp event_time = 3; + * + * @return Whether the eventTime field is set. + */ + boolean hasEventTime(); + /** + * + * + *
        +   * Time when the event occurred.
        +   * 
        + * + * .google.protobuf.Timestamp event_time = 3; + * + * @return The eventTime. + */ + com.google.protobuf.Timestamp getEventTime(); + /** + * + * + *
        +   * Time when the event occurred.
        +   * 
        + * + * .google.protobuf.Timestamp event_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); + + /** + * + * + *
        +   * Type of space event. Each event type has a batch version, which
        +   * represents multiple instances of the event type that occur in a short
        +   * period of time. For `spaceEvents.list()` requests, omit batch event types
        +   * in your query filter. By default, the server returns both event type and
        +   * its batch version.
        +   *
        +   * Supported event types for
        +   * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages):
        +   *
        +   *    * New message: `google.workspace.chat.message.v1.created`
        +   *    * Updated message: `google.workspace.chat.message.v1.updated`
        +   *    * Deleted message: `google.workspace.chat.message.v1.deleted`
        +   *    * Multiple new messages: `google.workspace.chat.message.v1.batchCreated`
        +   *    * Multiple updated messages:
        +   *    `google.workspace.chat.message.v1.batchUpdated`
        +   *    * Multiple deleted messages:
        +   *    `google.workspace.chat.message.v1.batchDeleted`
        +   *
        +   * Supported event types for
        +   * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members):
        +   *
        +   *   * New membership: `google.workspace.chat.membership.v1.created`
        +   *   * Updated membership: `google.workspace.chat.membership.v1.updated`
        +   *   * Deleted membership: `google.workspace.chat.membership.v1.deleted`
        +   *   * Multiple new memberships:
        +   *   `google.workspace.chat.membership.v1.batchCreated`
        +   *   * Multiple updated memberships:
        +   *   `google.workspace.chat.membership.v1.batchUpdated`
        +   *   * Multiple deleted memberships:
        +   *   `google.workspace.chat.membership.v1.batchDeleted`
        +   *
        +   * Supported event types for
        +   * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions):
        +   *
        +   *   * New reaction: `google.workspace.chat.reaction.v1.created`
        +   *   * Deleted reaction: `google.workspace.chat.reaction.v1.deleted`
        +   *   * Multiple new reactions:
        +   *   `google.workspace.chat.reaction.v1.batchCreated`
        +   *   * Multiple deleted reactions:
        +   *   `google.workspace.chat.reaction.v1.batchDeleted`
        +   *
        +   * Supported event types about the
        +   * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces):
        +   *
        +   *   * Updated space: `google.workspace.chat.space.v1.updated`
        +   *   * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated`
        +   * 
        + * + * string event_type = 6; + * + * @return The eventType. + */ + java.lang.String getEventType(); + /** + * + * + *
        +   * Type of space event. Each event type has a batch version, which
        +   * represents multiple instances of the event type that occur in a short
        +   * period of time. For `spaceEvents.list()` requests, omit batch event types
        +   * in your query filter. By default, the server returns both event type and
        +   * its batch version.
        +   *
        +   * Supported event types for
        +   * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages):
        +   *
        +   *    * New message: `google.workspace.chat.message.v1.created`
        +   *    * Updated message: `google.workspace.chat.message.v1.updated`
        +   *    * Deleted message: `google.workspace.chat.message.v1.deleted`
        +   *    * Multiple new messages: `google.workspace.chat.message.v1.batchCreated`
        +   *    * Multiple updated messages:
        +   *    `google.workspace.chat.message.v1.batchUpdated`
        +   *    * Multiple deleted messages:
        +   *    `google.workspace.chat.message.v1.batchDeleted`
        +   *
        +   * Supported event types for
        +   * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members):
        +   *
        +   *   * New membership: `google.workspace.chat.membership.v1.created`
        +   *   * Updated membership: `google.workspace.chat.membership.v1.updated`
        +   *   * Deleted membership: `google.workspace.chat.membership.v1.deleted`
        +   *   * Multiple new memberships:
        +   *   `google.workspace.chat.membership.v1.batchCreated`
        +   *   * Multiple updated memberships:
        +   *   `google.workspace.chat.membership.v1.batchUpdated`
        +   *   * Multiple deleted memberships:
        +   *   `google.workspace.chat.membership.v1.batchDeleted`
        +   *
        +   * Supported event types for
        +   * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions):
        +   *
        +   *   * New reaction: `google.workspace.chat.reaction.v1.created`
        +   *   * Deleted reaction: `google.workspace.chat.reaction.v1.deleted`
        +   *   * Multiple new reactions:
        +   *   `google.workspace.chat.reaction.v1.batchCreated`
        +   *   * Multiple deleted reactions:
        +   *   `google.workspace.chat.reaction.v1.batchDeleted`
        +   *
        +   * Supported event types about the
        +   * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces):
        +   *
        +   *   * Updated space: `google.workspace.chat.space.v1.updated`
        +   *   * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated`
        +   * 
        + * + * string event_type = 6; + * + * @return The bytes for eventType. + */ + com.google.protobuf.ByteString getEventTypeBytes(); + + /** + * + * + *
        +   * Event payload for a new message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.created`
        +   * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + * + * @return Whether the messageCreatedEventData field is set. + */ + boolean hasMessageCreatedEventData(); + /** + * + * + *
        +   * Event payload for a new message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.created`
        +   * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + * + * @return The messageCreatedEventData. + */ + com.google.chat.v1.MessageCreatedEventData getMessageCreatedEventData(); + /** + * + * + *
        +   * Event payload for a new message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.created`
        +   * 
        + * + * .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; + */ + com.google.chat.v1.MessageCreatedEventDataOrBuilder getMessageCreatedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for an updated message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.updated`
        +   * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + * + * @return Whether the messageUpdatedEventData field is set. + */ + boolean hasMessageUpdatedEventData(); + /** + * + * + *
        +   * Event payload for an updated message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.updated`
        +   * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + * + * @return The messageUpdatedEventData. + */ + com.google.chat.v1.MessageUpdatedEventData getMessageUpdatedEventData(); + /** + * + * + *
        +   * Event payload for an updated message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.updated`
        +   * 
        + * + * .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; + */ + com.google.chat.v1.MessageUpdatedEventDataOrBuilder getMessageUpdatedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for a deleted message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.deleted`
        +   * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + * + * @return Whether the messageDeletedEventData field is set. + */ + boolean hasMessageDeletedEventData(); + /** + * + * + *
        +   * Event payload for a deleted message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.deleted`
        +   * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + * + * @return The messageDeletedEventData. + */ + com.google.chat.v1.MessageDeletedEventData getMessageDeletedEventData(); + /** + * + * + *
        +   * Event payload for a deleted message.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.deleted`
        +   * 
        + * + * .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; + */ + com.google.chat.v1.MessageDeletedEventDataOrBuilder getMessageDeletedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for multiple new messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + * + * @return Whether the messageBatchCreatedEventData field is set. + */ + boolean hasMessageBatchCreatedEventData(); + /** + * + * + *
        +   * Event payload for multiple new messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + * + * @return The messageBatchCreatedEventData. + */ + com.google.chat.v1.MessageBatchCreatedEventData getMessageBatchCreatedEventData(); + /** + * + * + *
        +   * Event payload for multiple new messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; + * + */ + com.google.chat.v1.MessageBatchCreatedEventDataOrBuilder + getMessageBatchCreatedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for multiple updated messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + * + * @return Whether the messageBatchUpdatedEventData field is set. + */ + boolean hasMessageBatchUpdatedEventData(); + /** + * + * + *
        +   * Event payload for multiple updated messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + * + * @return The messageBatchUpdatedEventData. + */ + com.google.chat.v1.MessageBatchUpdatedEventData getMessageBatchUpdatedEventData(); + /** + * + * + *
        +   * Event payload for multiple updated messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + * + */ + com.google.chat.v1.MessageBatchUpdatedEventDataOrBuilder + getMessageBatchUpdatedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for multiple deleted messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + * + * @return Whether the messageBatchDeletedEventData field is set. + */ + boolean hasMessageBatchDeletedEventData(); + /** + * + * + *
        +   * Event payload for multiple deleted messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + * + * @return The messageBatchDeletedEventData. + */ + com.google.chat.v1.MessageBatchDeletedEventData getMessageBatchDeletedEventData(); + /** + * + * + *
        +   * Event payload for multiple deleted messages.
        +   *
        +   * Event type: `google.workspace.chat.message.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + * + */ + com.google.chat.v1.MessageBatchDeletedEventDataOrBuilder + getMessageBatchDeletedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for a space update.
        +   *
        +   * Event type: `google.workspace.chat.space.v1.updated`
        +   * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + * + * @return Whether the spaceUpdatedEventData field is set. + */ + boolean hasSpaceUpdatedEventData(); + /** + * + * + *
        +   * Event payload for a space update.
        +   *
        +   * Event type: `google.workspace.chat.space.v1.updated`
        +   * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + * + * @return The spaceUpdatedEventData. + */ + com.google.chat.v1.SpaceUpdatedEventData getSpaceUpdatedEventData(); + /** + * + * + *
        +   * Event payload for a space update.
        +   *
        +   * Event type: `google.workspace.chat.space.v1.updated`
        +   * 
        + * + * .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; + */ + com.google.chat.v1.SpaceUpdatedEventDataOrBuilder getSpaceUpdatedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for multiple updates to a space.
        +   *
        +   * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + * + * @return Whether the spaceBatchUpdatedEventData field is set. + */ + boolean hasSpaceBatchUpdatedEventData(); + /** + * + * + *
        +   * Event payload for multiple updates to a space.
        +   *
        +   * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + * + * @return The spaceBatchUpdatedEventData. + */ + com.google.chat.v1.SpaceBatchUpdatedEventData getSpaceBatchUpdatedEventData(); + /** + * + * + *
        +   * Event payload for multiple updates to a space.
        +   *
        +   * Event type: `google.workspace.chat.space.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + */ + com.google.chat.v1.SpaceBatchUpdatedEventDataOrBuilder getSpaceBatchUpdatedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for a new membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.created`
        +   * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + * + * @return Whether the membershipCreatedEventData field is set. + */ + boolean hasMembershipCreatedEventData(); + /** + * + * + *
        +   * Event payload for a new membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.created`
        +   * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + * + * @return The membershipCreatedEventData. + */ + com.google.chat.v1.MembershipCreatedEventData getMembershipCreatedEventData(); + /** + * + * + *
        +   * Event payload for a new membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.created`
        +   * 
        + * + * .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; + */ + com.google.chat.v1.MembershipCreatedEventDataOrBuilder getMembershipCreatedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for an updated membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.updated`
        +   * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + * + * @return Whether the membershipUpdatedEventData field is set. + */ + boolean hasMembershipUpdatedEventData(); + /** + * + * + *
        +   * Event payload for an updated membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.updated`
        +   * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + * + * @return The membershipUpdatedEventData. + */ + com.google.chat.v1.MembershipUpdatedEventData getMembershipUpdatedEventData(); + /** + * + * + *
        +   * Event payload for an updated membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.updated`
        +   * 
        + * + * .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; + */ + com.google.chat.v1.MembershipUpdatedEventDataOrBuilder getMembershipUpdatedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for a deleted membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.deleted`
        +   * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + * + * @return Whether the membershipDeletedEventData field is set. + */ + boolean hasMembershipDeletedEventData(); + /** + * + * + *
        +   * Event payload for a deleted membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.deleted`
        +   * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + * + * @return The membershipDeletedEventData. + */ + com.google.chat.v1.MembershipDeletedEventData getMembershipDeletedEventData(); + /** + * + * + *
        +   * Event payload for a deleted membership.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.deleted`
        +   * 
        + * + * .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; + */ + com.google.chat.v1.MembershipDeletedEventDataOrBuilder getMembershipDeletedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for multiple new memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + * + * @return Whether the membershipBatchCreatedEventData field is set. + */ + boolean hasMembershipBatchCreatedEventData(); + /** + * + * + *
        +   * Event payload for multiple new memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + * + * @return The membershipBatchCreatedEventData. + */ + com.google.chat.v1.MembershipBatchCreatedEventData getMembershipBatchCreatedEventData(); + /** + * + * + *
        +   * Event payload for multiple new memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + * + */ + com.google.chat.v1.MembershipBatchCreatedEventDataOrBuilder + getMembershipBatchCreatedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for multiple updated memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + * + * @return Whether the membershipBatchUpdatedEventData field is set. + */ + boolean hasMembershipBatchUpdatedEventData(); + /** + * + * + *
        +   * Event payload for multiple updated memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + * + * @return The membershipBatchUpdatedEventData. + */ + com.google.chat.v1.MembershipBatchUpdatedEventData getMembershipBatchUpdatedEventData(); + /** + * + * + *
        +   * Event payload for multiple updated memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchUpdated`
        +   * 
        + * + * .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + * + */ + com.google.chat.v1.MembershipBatchUpdatedEventDataOrBuilder + getMembershipBatchUpdatedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for multiple deleted memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + * + * @return Whether the membershipBatchDeletedEventData field is set. + */ + boolean hasMembershipBatchDeletedEventData(); + /** + * + * + *
        +   * Event payload for multiple deleted memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + * + * @return The membershipBatchDeletedEventData. + */ + com.google.chat.v1.MembershipBatchDeletedEventData getMembershipBatchDeletedEventData(); + /** + * + * + *
        +   * Event payload for multiple deleted memberships.
        +   *
        +   * Event type: `google.workspace.chat.membership.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + * + */ + com.google.chat.v1.MembershipBatchDeletedEventDataOrBuilder + getMembershipBatchDeletedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for a new reaction.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.created`
        +   * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + * + * @return Whether the reactionCreatedEventData field is set. + */ + boolean hasReactionCreatedEventData(); + /** + * + * + *
        +   * Event payload for a new reaction.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.created`
        +   * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + * + * @return The reactionCreatedEventData. + */ + com.google.chat.v1.ReactionCreatedEventData getReactionCreatedEventData(); + /** + * + * + *
        +   * Event payload for a new reaction.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.created`
        +   * 
        + * + * .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; + */ + com.google.chat.v1.ReactionCreatedEventDataOrBuilder getReactionCreatedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for a deleted reaction.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.deleted`
        +   * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + * + * @return Whether the reactionDeletedEventData field is set. + */ + boolean hasReactionDeletedEventData(); + /** + * + * + *
        +   * Event payload for a deleted reaction.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.deleted`
        +   * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + * + * @return The reactionDeletedEventData. + */ + com.google.chat.v1.ReactionDeletedEventData getReactionDeletedEventData(); + /** + * + * + *
        +   * Event payload for a deleted reaction.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.deleted`
        +   * 
        + * + * .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; + */ + com.google.chat.v1.ReactionDeletedEventDataOrBuilder getReactionDeletedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for multiple new reactions.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + * + * @return Whether the reactionBatchCreatedEventData field is set. + */ + boolean hasReactionBatchCreatedEventData(); + /** + * + * + *
        +   * Event payload for multiple new reactions.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + * + * @return The reactionBatchCreatedEventData. + */ + com.google.chat.v1.ReactionBatchCreatedEventData getReactionBatchCreatedEventData(); + /** + * + * + *
        +   * Event payload for multiple new reactions.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.batchCreated`
        +   * 
        + * + * .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + * + */ + com.google.chat.v1.ReactionBatchCreatedEventDataOrBuilder + getReactionBatchCreatedEventDataOrBuilder(); + + /** + * + * + *
        +   * Event payload for multiple deleted reactions.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + * + * @return Whether the reactionBatchDeletedEventData field is set. + */ + boolean hasReactionBatchDeletedEventData(); + /** + * + * + *
        +   * Event payload for multiple deleted reactions.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + * + * @return The reactionBatchDeletedEventData. + */ + com.google.chat.v1.ReactionBatchDeletedEventData getReactionBatchDeletedEventData(); + /** + * + * + *
        +   * Event payload for multiple deleted reactions.
        +   *
        +   * Event type: `google.workspace.chat.reaction.v1.batchDeleted`
        +   * 
        + * + * .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + * + */ + com.google.chat.v1.ReactionBatchDeletedEventDataOrBuilder + getReactionBatchDeletedEventDataOrBuilder(); + + com.google.chat.v1.SpaceEvent.PayloadCase getPayloadCase(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventProto.java new file mode 100644 index 000000000000..7a4d2adf14a5 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventProto.java @@ -0,0 +1,193 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/space_event.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public final class SpaceEventProto { + private SpaceEventProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_SpaceEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_SpaceEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_GetSpaceEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_GetSpaceEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_ListSpaceEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_ListSpaceEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_ListSpaceEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_ListSpaceEventsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n google/chat/v1/space_event.proto\022\016goog" + + "le.chat.v1\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\032\"google/c" + + "hat/v1/event_payload.proto\032\037google/proto" + + "buf/timestamp.proto\"\316\r\n\nSpaceEvent\022\014\n\004na" + + "me\030\001 \001(\t\022.\n\nevent_time\030\003 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\022\n\nevent_type\030\006 \001(\t\022M\n\032" + + "message_created_event_data\030\014 \001(\0132\'.googl" + + "e.chat.v1.MessageCreatedEventDataH\000\022M\n\032m" + + "essage_updated_event_data\030\r \001(\0132\'.google" + + ".chat.v1.MessageUpdatedEventDataH\000\022M\n\032me" + + "ssage_deleted_event_data\030\016 \001(\0132\'.google." + + "chat.v1.MessageDeletedEventDataH\000\022X\n mes" + + "sage_batch_created_event_data\030\032 \001(\0132,.go" + + "ogle.chat.v1.MessageBatchCreatedEventDat" + + "aH\000\022X\n message_batch_updated_event_data\030" + + "\033 \001(\0132,.google.chat.v1.MessageBatchUpdat" + + "edEventDataH\000\022X\n message_batch_deleted_e" + + "vent_data\030\034 \001(\0132,.google.chat.v1.Message" + + "BatchDeletedEventDataH\000\022I\n\030space_updated" + + "_event_data\030\017 \001(\0132%.google.chat.v1.Space" + + "UpdatedEventDataH\000\022T\n\036space_batch_update" + + "d_event_data\030\035 \001(\0132*.google.chat.v1.Spac" + + "eBatchUpdatedEventDataH\000\022S\n\035membership_c" + + "reated_event_data\030\021 \001(\0132*.google.chat.v1" + + ".MembershipCreatedEventDataH\000\022S\n\035members" + + "hip_updated_event_data\030\022 \001(\0132*.google.ch" + + "at.v1.MembershipUpdatedEventDataH\000\022T\n\035me" + + "mbership_deleted_event_data\030\333\001 \001(\0132*.goo" + + "gle.chat.v1.MembershipDeletedEventDataH\000" + + "\022^\n#membership_batch_created_event_data\030" + + "\037 \001(\0132/.google.chat.v1.MembershipBatchCr" + + "eatedEventDataH\000\022^\n#membership_batch_upd" + + "ated_event_data\030 \001(\0132/.google.chat.v1.M" + + "embershipBatchUpdatedEventDataH\000\022^\n#memb" + + "ership_batch_deleted_event_data\030! \001(\0132/." + + "google.chat.v1.MembershipBatchDeletedEve" + + "ntDataH\000\022O\n\033reaction_created_event_data\030" + + "\025 \001(\0132(.google.chat.v1.ReactionCreatedEv" + + "entDataH\000\022O\n\033reaction_deleted_event_data" + + "\030\026 \001(\0132(.google.chat.v1.ReactionDeletedE" + + "ventDataH\000\022Z\n!reaction_batch_created_eve" + + "nt_data\030\" \001(\0132-.google.chat.v1.ReactionB" + + "atchCreatedEventDataH\000\022Z\n!reaction_batch" + + "_deleted_event_data\030# \001(\0132-.google.chat." + + "v1.ReactionBatchDeletedEventDataH\000:M\352AJ\n" + + "\036chat.googleapis.com/SpaceEvent\022(spaces/" + + "{space}/spaceEvents/{space_event}B\t\n\007pay" + + "load\"L\n\024GetSpaceEventRequest\0224\n\004name\030\001 \001" + + "(\tB&\340A\002\372A \n\036chat.googleapis.com/SpaceEve" + + "nt\"\214\001\n\026ListSpaceEventsRequest\0226\n\006parent\030" + + "\001 \001(\tB&\340A\002\372A \022\036chat.googleapis.com/Space" + + "Event\022\021\n\tpage_size\030\005 \001(\005\022\022\n\npage_token\030\006" + + " \001(\t\022\023\n\006filter\030\010 \001(\tB\003\340A\002\"d\n\027ListSpaceEv" + + "entsResponse\0220\n\014space_events\030\001 \003(\0132\032.goo" + + "gle.chat.v1.SpaceEvent\022\027\n\017next_page_toke" + + "n\030\002 \001(\tB\232\001\n\022com.google.chat.v1B\017SpaceEve" + + "ntProtoP\001Z,cloud.google.com/go/chat/apiv" + + "1/chatpb;chatpb\252\002\023Google.Apps.Chat.V1\312\002\023" + + "Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat" + + "::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.chat.v1.EventPayloadProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_chat_v1_SpaceEvent_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_chat_v1_SpaceEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_SpaceEvent_descriptor, + new java.lang.String[] { + "Name", + "EventTime", + "EventType", + "MessageCreatedEventData", + "MessageUpdatedEventData", + "MessageDeletedEventData", + "MessageBatchCreatedEventData", + "MessageBatchUpdatedEventData", + "MessageBatchDeletedEventData", + "SpaceUpdatedEventData", + "SpaceBatchUpdatedEventData", + "MembershipCreatedEventData", + "MembershipUpdatedEventData", + "MembershipDeletedEventData", + "MembershipBatchCreatedEventData", + "MembershipBatchUpdatedEventData", + "MembershipBatchDeletedEventData", + "ReactionCreatedEventData", + "ReactionDeletedEventData", + "ReactionBatchCreatedEventData", + "ReactionBatchDeletedEventData", + "Payload", + }); + internal_static_google_chat_v1_GetSpaceEventRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_chat_v1_GetSpaceEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_GetSpaceEventRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_chat_v1_ListSpaceEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_chat_v1_ListSpaceEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_ListSpaceEventsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_chat_v1_ListSpaceEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_chat_v1_ListSpaceEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_ListSpaceEventsResponse_descriptor, + new java.lang.String[] { + "SpaceEvents", "NextPageToken", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.chat.v1.EventPayloadProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceUpdatedEventData.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceUpdatedEventData.java new file mode 100644 index 000000000000..65ce3eb01289 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceUpdatedEventData.java @@ -0,0 +1,714 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +/** + * + * + *
        + * Event payload for an updated space.
        + *
        + * Event type: `google.workspace.chat.space.v1.updated`
        + * 
        + * + * Protobuf type {@code google.chat.v1.SpaceUpdatedEventData} + */ +public final class SpaceUpdatedEventData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.SpaceUpdatedEventData) + SpaceUpdatedEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use SpaceUpdatedEventData.newBuilder() to construct. + private SpaceUpdatedEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpaceUpdatedEventData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpaceUpdatedEventData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_SpaceUpdatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_SpaceUpdatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.SpaceUpdatedEventData.class, + com.google.chat.v1.SpaceUpdatedEventData.Builder.class); + } + + private int bitField0_; + public static final int SPACE_FIELD_NUMBER = 1; + private com.google.chat.v1.Space space_; + /** + * + * + *
        +   * The updated space.
        +   * 
        + * + * .google.chat.v1.Space space = 1; + * + * @return Whether the space field is set. + */ + @java.lang.Override + public boolean hasSpace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * The updated space.
        +   * 
        + * + * .google.chat.v1.Space space = 1; + * + * @return The space. + */ + @java.lang.Override + public com.google.chat.v1.Space getSpace() { + return space_ == null ? com.google.chat.v1.Space.getDefaultInstance() : space_; + } + /** + * + * + *
        +   * The updated space.
        +   * 
        + * + * .google.chat.v1.Space space = 1; + */ + @java.lang.Override + public com.google.chat.v1.SpaceOrBuilder getSpaceOrBuilder() { + return space_ == null ? com.google.chat.v1.Space.getDefaultInstance() : space_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSpace()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSpace()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.SpaceUpdatedEventData)) { + return super.equals(obj); + } + com.google.chat.v1.SpaceUpdatedEventData other = (com.google.chat.v1.SpaceUpdatedEventData) obj; + + if (hasSpace() != other.hasSpace()) return false; + if (hasSpace()) { + if (!getSpace().equals(other.getSpace())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSpace()) { + hash = (37 * hash) + SPACE_FIELD_NUMBER; + hash = (53 * hash) + getSpace().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.SpaceUpdatedEventData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SpaceUpdatedEventData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SpaceUpdatedEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SpaceUpdatedEventData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SpaceUpdatedEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SpaceUpdatedEventData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SpaceUpdatedEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SpaceUpdatedEventData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.SpaceUpdatedEventData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SpaceUpdatedEventData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.SpaceUpdatedEventData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SpaceUpdatedEventData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.SpaceUpdatedEventData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Event payload for an updated space.
        +   *
        +   * Event type: `google.workspace.chat.space.v1.updated`
        +   * 
        + * + * Protobuf type {@code google.chat.v1.SpaceUpdatedEventData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.SpaceUpdatedEventData) + com.google.chat.v1.SpaceUpdatedEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_SpaceUpdatedEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_SpaceUpdatedEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.SpaceUpdatedEventData.class, + com.google.chat.v1.SpaceUpdatedEventData.Builder.class); + } + + // Construct using com.google.chat.v1.SpaceUpdatedEventData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSpaceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + space_ = null; + if (spaceBuilder_ != null) { + spaceBuilder_.dispose(); + spaceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.EventPayloadProto + .internal_static_google_chat_v1_SpaceUpdatedEventData_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.SpaceUpdatedEventData getDefaultInstanceForType() { + return com.google.chat.v1.SpaceUpdatedEventData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.SpaceUpdatedEventData build() { + com.google.chat.v1.SpaceUpdatedEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.SpaceUpdatedEventData buildPartial() { + com.google.chat.v1.SpaceUpdatedEventData result = + new com.google.chat.v1.SpaceUpdatedEventData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.SpaceUpdatedEventData result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.space_ = spaceBuilder_ == null ? space_ : spaceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.SpaceUpdatedEventData) { + return mergeFrom((com.google.chat.v1.SpaceUpdatedEventData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.SpaceUpdatedEventData other) { + if (other == com.google.chat.v1.SpaceUpdatedEventData.getDefaultInstance()) return this; + if (other.hasSpace()) { + mergeSpace(other.getSpace()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSpaceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.chat.v1.Space space_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Space, + com.google.chat.v1.Space.Builder, + com.google.chat.v1.SpaceOrBuilder> + spaceBuilder_; + /** + * + * + *
        +     * The updated space.
        +     * 
        + * + * .google.chat.v1.Space space = 1; + * + * @return Whether the space field is set. + */ + public boolean hasSpace() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * The updated space.
        +     * 
        + * + * .google.chat.v1.Space space = 1; + * + * @return The space. + */ + public com.google.chat.v1.Space getSpace() { + if (spaceBuilder_ == null) { + return space_ == null ? com.google.chat.v1.Space.getDefaultInstance() : space_; + } else { + return spaceBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The updated space.
        +     * 
        + * + * .google.chat.v1.Space space = 1; + */ + public Builder setSpace(com.google.chat.v1.Space value) { + if (spaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + space_ = value; + } else { + spaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The updated space.
        +     * 
        + * + * .google.chat.v1.Space space = 1; + */ + public Builder setSpace(com.google.chat.v1.Space.Builder builderForValue) { + if (spaceBuilder_ == null) { + space_ = builderForValue.build(); + } else { + spaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The updated space.
        +     * 
        + * + * .google.chat.v1.Space space = 1; + */ + public Builder mergeSpace(com.google.chat.v1.Space value) { + if (spaceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && space_ != null + && space_ != com.google.chat.v1.Space.getDefaultInstance()) { + getSpaceBuilder().mergeFrom(value); + } else { + space_ = value; + } + } else { + spaceBuilder_.mergeFrom(value); + } + if (space_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The updated space.
        +     * 
        + * + * .google.chat.v1.Space space = 1; + */ + public Builder clearSpace() { + bitField0_ = (bitField0_ & ~0x00000001); + space_ = null; + if (spaceBuilder_ != null) { + spaceBuilder_.dispose(); + spaceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The updated space.
        +     * 
        + * + * .google.chat.v1.Space space = 1; + */ + public com.google.chat.v1.Space.Builder getSpaceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSpaceFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The updated space.
        +     * 
        + * + * .google.chat.v1.Space space = 1; + */ + public com.google.chat.v1.SpaceOrBuilder getSpaceOrBuilder() { + if (spaceBuilder_ != null) { + return spaceBuilder_.getMessageOrBuilder(); + } else { + return space_ == null ? com.google.chat.v1.Space.getDefaultInstance() : space_; + } + } + /** + * + * + *
        +     * The updated space.
        +     * 
        + * + * .google.chat.v1.Space space = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Space, + com.google.chat.v1.Space.Builder, + com.google.chat.v1.SpaceOrBuilder> + getSpaceFieldBuilder() { + if (spaceBuilder_ == null) { + spaceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.Space, + com.google.chat.v1.Space.Builder, + com.google.chat.v1.SpaceOrBuilder>(getSpace(), getParentForChildren(), isClean()); + space_ = null; + } + return spaceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.SpaceUpdatedEventData) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.SpaceUpdatedEventData) + private static final com.google.chat.v1.SpaceUpdatedEventData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.SpaceUpdatedEventData(); + } + + public static com.google.chat.v1.SpaceUpdatedEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpaceUpdatedEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.SpaceUpdatedEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceUpdatedEventDataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceUpdatedEventDataOrBuilder.java new file mode 100644 index 000000000000..cbd272c08d7f --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceUpdatedEventDataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/event_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.chat.v1; + +public interface SpaceUpdatedEventDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.SpaceUpdatedEventData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The updated space.
        +   * 
        + * + * .google.chat.v1.Space space = 1; + * + * @return Whether the space field is set. + */ + boolean hasSpace(); + /** + * + * + *
        +   * The updated space.
        +   * 
        + * + * .google.chat.v1.Space space = 1; + * + * @return The space. + */ + com.google.chat.v1.Space getSpace(); + /** + * + * + *
        +   * The updated space.
        +   * 
        + * + * .google.chat.v1.Space space = 1; + */ + com.google.chat.v1.SpaceOrBuilder getSpaceOrBuilder(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto index 1687e11d44e5..01f080ee30c0 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto @@ -23,6 +23,7 @@ import "google/chat/v1/membership.proto"; import "google/chat/v1/message.proto"; import "google/chat/v1/reaction.proto"; import "google/chat/v1/space.proto"; +import "google/chat/v1/space_event.proto"; import "google/chat/v1/space_read_state.proto"; import "google/chat/v1/space_setup.proto"; import "google/chat/v1/thread_read_state.proto"; @@ -584,4 +585,47 @@ service ChatService { }; option (google.api.method_signature) = "name"; } + + // Returns an event from a Google Chat space. The [event + // payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) + // contains the most recent version of the resource that changed. For example, + // if you request an event about a new message but the message was later + // updated, the server returns the updated `Message` resource in the event + // payload. + // + // Requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + // To get an event, the authenticated user must be a member of the space. + // + // For an example, see [Get details about an + // event from a Google Chat + // space](https://developers.google.com/workspace/chat/get-space-event). + rpc GetSpaceEvent(GetSpaceEventRequest) returns (SpaceEvent) { + option (google.api.http) = { + get: "/v1/{name=spaces/*/spaceEvents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists events from a Google Chat space. For each event, the + // [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) + // contains the most recent version of the Chat resource. For example, if you + // list events about new space members, the server returns `Membership` + // resources that contain the latest membership details. If new members were + // removed during the requested period, the event payload contains an empty + // `Membership` resource. + // + // Requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + // To list events, the authenticated user must be a member of the space. + // + // For an example, see [List events from a Google Chat + // space](https://developers.google.com/workspace/chat/list-space-events). + rpc ListSpaceEvents(ListSpaceEventsRequest) + returns (ListSpaceEventsResponse) { + option (google.api.http) = { + get: "/v1/{parent=spaces/*}/spaceEvents" + }; + option (google.api.method_signature) = "parent,filter"; + } } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/event_payload.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/event_payload.proto new file mode 100644 index 000000000000..bd7674124cec --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/event_payload.proto @@ -0,0 +1,177 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.chat.v1; + +import "google/api/field_behavior.proto"; +import "google/chat/v1/membership.proto"; +import "google/chat/v1/message.proto"; +import "google/chat/v1/reaction.proto"; +import "google/chat/v1/space.proto"; + +option csharp_namespace = "Google.Apps.Chat.V1"; +option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb"; +option java_multiple_files = true; +option java_outer_classname = "EventPayloadProto"; +option java_package = "com.google.chat.v1"; +option objc_class_prefix = "DYNAPIProto"; +option php_namespace = "Google\\Apps\\Chat\\V1"; +option ruby_package = "Google::Apps::Chat::V1"; + +// Event payload for a new membership. +// +// Event type: `google.workspace.chat.membership.v1.created`. +message MembershipCreatedEventData { + // The new membership. + Membership membership = 1; +} + +// Event payload for a deleted membership. +// +// Event type: `google.workspace.chat.membership.v1.deleted` +message MembershipDeletedEventData { + // The deleted membership. Only the `name` and `state` fields are populated. + Membership membership = 1; +} + +// Event payload for an updated membership. +// +// Event type: `google.workspace.chat.membership.v1.updated` +message MembershipUpdatedEventData { + // The updated membership. + Membership membership = 1; +} + +// Event payload for multiple new memberships. +// +// Event type: `google.workspace.chat.membership.v1.batchCreated` +message MembershipBatchCreatedEventData { + // A list of new memberships. + repeated MembershipCreatedEventData memberships = 1; +} + +// Event payload for multiple updated memberships. +// +// Event type: `google.workspace.chat.membership.v1.batchUpdated` +message MembershipBatchUpdatedEventData { + // A list of updated memberships. + repeated MembershipUpdatedEventData memberships = 1; +} + +// Event payload for multiple deleted memberships. +// +// Event type: `google.workspace.chat.membership.v1.batchDeleted` +message MembershipBatchDeletedEventData { + // A list of deleted memberships. + repeated MembershipDeletedEventData memberships = 1; +} + +// Event payload for a new message. +// +// Event type: `google.workspace.chat.message.v1.created` +message MessageCreatedEventData { + // The new message. + Message message = 1; +} + +// Event payload for an updated message. +// +// Event type: `google.workspace.chat.message.v1.updated` +message MessageUpdatedEventData { + // The updated message. + Message message = 1; +} + +// Event payload for a deleted message. +// +// Event type: `google.workspace.chat.message.v1.deleted` +message MessageDeletedEventData { + // The deleted message. Only the `name`, `createTime`, `deleteTime`, and + // `deletionMetadata` fields are populated. + Message message = 1; +} + +// Event payload for multiple new messages. +// +// Event type: `google.workspace.chat.message.v1.batchCreated` +message MessageBatchCreatedEventData { + // A list of new messages. + repeated MessageCreatedEventData messages = 1; +} + +// Event payload for multiple updated messages. +// +// Event type: `google.workspace.chat.message.v1.batchUpdated` +message MessageBatchUpdatedEventData { + // A list of updated messages. + repeated MessageUpdatedEventData messages = 1; +} + +// Event payload for multiple deleted messages. +// +// Event type: `google.workspace.chat.message.v1.batchDeleted` +message MessageBatchDeletedEventData { + // A list of deleted messages. + repeated MessageDeletedEventData messages = 1; +} + +// Event payload for an updated space. +// +// Event type: `google.workspace.chat.space.v1.updated` +message SpaceUpdatedEventData { + // The updated space. + Space space = 1; +} + +// Event payload for multiple updates to a space. +// +// Event type: `google.workspace.chat.space.v1.batchUpdated` +message SpaceBatchUpdatedEventData { + // A list of updated spaces. + repeated SpaceUpdatedEventData spaces = 1; +} + +// Event payload for a new reaction. +// +// Event type: `google.workspace.chat.reaction.v1.created` +message ReactionCreatedEventData { + // The new reaction. + Reaction reaction = 1; +} + +// Event payload for a deleted reaction. +// +// Type: `google.workspace.chat.reaction.v1.deleted` +message ReactionDeletedEventData { + // The deleted reaction. + Reaction reaction = 1; +} + +// Event payload for multiple new reactions. +// +// Event type: `google.workspace.chat.reaction.v1.batchCreated` +message ReactionBatchCreatedEventData { + // A list of new reactions. + repeated ReactionCreatedEventData reactions = 1; +} + +// Event payload for multiple deleted reactions. +// +// Event type: `google.workspace.chat.reaction.v1.batchDeleted` +message ReactionBatchDeletedEventData { + // A list of deleted reactions. + repeated ReactionDeletedEventData reactions = 1; +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_event.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_event.proto new file mode 100644 index 000000000000..84379a096a4f --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_event.proto @@ -0,0 +1,292 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.chat.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/chat/v1/event_payload.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Apps.Chat.V1"; +option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb"; +option java_multiple_files = true; +option java_outer_classname = "SpaceEventProto"; +option java_package = "com.google.chat.v1"; +option php_namespace = "Google\\Apps\\Chat\\V1"; +option ruby_package = "Google::Apps::Chat::V1"; + +// An event that represents a change or activity in a Google Chat space. To +// learn more, see [Work with events from Google +// Chat](https://developers.google.com/workspace/chat/events-overview). +message SpaceEvent { + option (google.api.resource) = { + type: "chat.googleapis.com/SpaceEvent" + pattern: "spaces/{space}/spaceEvents/{space_event}" + }; + + // Resource name of the space event. + // + // Format: `spaces/{space}/spaceEvents/{spaceEvent}` + string name = 1; + + // Time when the event occurred. + google.protobuf.Timestamp event_time = 3; + + // Type of space event. Each event type has a batch version, which + // represents multiple instances of the event type that occur in a short + // period of time. For `spaceEvents.list()` requests, omit batch event types + // in your query filter. By default, the server returns both event type and + // its batch version. + // + // Supported event types for + // [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages): + // + // * New message: `google.workspace.chat.message.v1.created` + // * Updated message: `google.workspace.chat.message.v1.updated` + // * Deleted message: `google.workspace.chat.message.v1.deleted` + // * Multiple new messages: `google.workspace.chat.message.v1.batchCreated` + // * Multiple updated messages: + // `google.workspace.chat.message.v1.batchUpdated` + // * Multiple deleted messages: + // `google.workspace.chat.message.v1.batchDeleted` + // + // Supported event types for + // [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): + // + // * New membership: `google.workspace.chat.membership.v1.created` + // * Updated membership: `google.workspace.chat.membership.v1.updated` + // * Deleted membership: `google.workspace.chat.membership.v1.deleted` + // * Multiple new memberships: + // `google.workspace.chat.membership.v1.batchCreated` + // * Multiple updated memberships: + // `google.workspace.chat.membership.v1.batchUpdated` + // * Multiple deleted memberships: + // `google.workspace.chat.membership.v1.batchDeleted` + // + // Supported event types for + // [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions): + // + // * New reaction: `google.workspace.chat.reaction.v1.created` + // * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` + // * Multiple new reactions: + // `google.workspace.chat.reaction.v1.batchCreated` + // * Multiple deleted reactions: + // `google.workspace.chat.reaction.v1.batchDeleted` + // + // Supported event types about the + // [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): + // + // * Updated space: `google.workspace.chat.space.v1.updated` + // * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated` + string event_type = 6; + + oneof payload { + // Event payload for a new message. + // + // Event type: `google.workspace.chat.message.v1.created` + MessageCreatedEventData message_created_event_data = 12; + + // Event payload for an updated message. + // + // Event type: `google.workspace.chat.message.v1.updated` + MessageUpdatedEventData message_updated_event_data = 13; + + // Event payload for a deleted message. + // + // Event type: `google.workspace.chat.message.v1.deleted` + MessageDeletedEventData message_deleted_event_data = 14; + + // Event payload for multiple new messages. + // + // Event type: `google.workspace.chat.message.v1.batchCreated` + MessageBatchCreatedEventData message_batch_created_event_data = 26; + + // Event payload for multiple updated messages. + // + // Event type: `google.workspace.chat.message.v1.batchUpdated` + MessageBatchUpdatedEventData message_batch_updated_event_data = 27; + + // Event payload for multiple deleted messages. + // + // Event type: `google.workspace.chat.message.v1.batchDeleted` + MessageBatchDeletedEventData message_batch_deleted_event_data = 28; + + // Event payload for a space update. + // + // Event type: `google.workspace.chat.space.v1.updated` + SpaceUpdatedEventData space_updated_event_data = 15; + + // Event payload for multiple updates to a space. + // + // Event type: `google.workspace.chat.space.v1.batchUpdated` + SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; + + // Event payload for a new membership. + // + // Event type: `google.workspace.chat.membership.v1.created` + MembershipCreatedEventData membership_created_event_data = 17; + + // Event payload for an updated membership. + // + // Event type: `google.workspace.chat.membership.v1.updated` + MembershipUpdatedEventData membership_updated_event_data = 18; + + // Event payload for a deleted membership. + // + // Event type: `google.workspace.chat.membership.v1.deleted` + MembershipDeletedEventData membership_deleted_event_data = 219; + + // Event payload for multiple new memberships. + // + // Event type: `google.workspace.chat.membership.v1.batchCreated` + MembershipBatchCreatedEventData membership_batch_created_event_data = 31; + + // Event payload for multiple updated memberships. + // + // Event type: `google.workspace.chat.membership.v1.batchUpdated` + MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; + + // Event payload for multiple deleted memberships. + // + // Event type: `google.workspace.chat.membership.v1.batchDeleted` + MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; + + // Event payload for a new reaction. + // + // Event type: `google.workspace.chat.reaction.v1.created` + ReactionCreatedEventData reaction_created_event_data = 21; + + // Event payload for a deleted reaction. + // + // Event type: `google.workspace.chat.reaction.v1.deleted` + ReactionDeletedEventData reaction_deleted_event_data = 22; + + // Event payload for multiple new reactions. + // + // Event type: `google.workspace.chat.reaction.v1.batchCreated` + ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; + + // Event payload for multiple deleted reactions. + // + // Event type: `google.workspace.chat.reaction.v1.batchDeleted` + ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; + } +} + +// Request message for getting a space event. +message GetSpaceEventRequest { + // Required. The resource name of the space event. + // + // Format: `spaces/{space}/spaceEvents/{spaceEvent}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "chat.googleapis.com/SpaceEvent" } + ]; +} + +// Request message for listing space events. +message ListSpaceEventsRequest { + // Required. Resource name of the [Google Chat + // space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) + // where the events occurred. + // + // Format: `spaces/{space}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "chat.googleapis.com/SpaceEvent" + } + ]; + + // Optional. The maximum number of space events returned. The service might + // return fewer than this value. + // + // Negative values return an `INVALID_ARGUMENT` error. + int32 page_size = 5; + + // A page token, received from a previous list space events call. Provide this + // to retrieve the subsequent page. + // + // When paginating, all other parameters provided to list space events must + // match the call that provided the page token. Passing different values to + // the other parameters might lead to unexpected results. + string page_token = 6; + + // Required. A query filter. + // + // You must specify at least one event type (`event_type`) + // using the has `:` operator. To filter by multiple event types, use the `OR` + // operator. Omit batch event types in your filter. The request automatically + // returns any related batch events. For example, if you filter by new + // reactions + // (`google.workspace.chat.reaction.v1.created`), the server also returns + // batch new reactions events + // (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported + // event types, see the [`SpaceEvents` reference + // documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). + // + // Optionally, you can also filter by start time (`start_time`) and + // end time (`end_time`): + // + // * `start_time`: Exclusive timestamp from which to start listing space + // events. + // You can list events that occurred up to 28 days ago. If unspecified, lists + // space events from the past 28 days. + // * `end_time`: Inclusive timestamp until which space events are listed. + // If unspecified, lists events up to the time of the request. + // + // To specify a start or end time, use the equals `=` operator and format in + // [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both + // `start_time` and `end_time`, use the `AND` operator. + // + // For example, the following queries are valid: + // + // ``` + // start_time="2023-08-23T19:20:33+00:00" AND + // end_time="2023-08-23T19:21:54+00:00" + // ``` + // ``` + // start_time="2023-08-23T19:20:33+00:00" AND + // (event_types:"google.workspace.chat.space.v1.updated" OR + // event_types:"google.workspace.chat.message.v1.created") + // ``` + // + // The following queries are invalid: + // + // ``` + // start_time="2023-08-23T19:20:33+00:00" OR + // end_time="2023-08-23T19:21:54+00:00" + // ``` + // ``` + // event_types:"google.workspace.chat.space.v1.updated" AND + // event_types:"google.workspace.chat.message.v1.created" + // ``` + // + // Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + // error. + string filter = 8 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for listing space events. +message ListSpaceEventsResponse { + // Results are returned in chronological order (oldest event first). + repeated SpaceEvent space_events = 1; + + // Continuation token used to fetch more events. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getspaceevent/AsyncGetSpaceEvent.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getspaceevent/AsyncGetSpaceEvent.java new file mode 100644 index 000000000000..83dffcd1ca6b --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getspaceevent/AsyncGetSpaceEvent.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_GetSpaceEvent_async] +import com.google.api.core.ApiFuture; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.GetSpaceEventRequest; +import com.google.chat.v1.SpaceEvent; +import com.google.chat.v1.SpaceEventName; + +public class AsyncGetSpaceEvent { + + public static void main(String[] args) throws Exception { + asyncGetSpaceEvent(); + } + + public static void asyncGetSpaceEvent() throws Exception { + // 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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + GetSpaceEventRequest request = + GetSpaceEventRequest.newBuilder() + .setName(SpaceEventName.of("[SPACE]", "[SPACE_EVENT]").toString()) + .build(); + ApiFuture future = chatServiceClient.getSpaceEventCallable().futureCall(request); + // Do something. + SpaceEvent response = future.get(); + } + } +} +// [END chat_v1_generated_ChatService_GetSpaceEvent_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getspaceevent/SyncGetSpaceEvent.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getspaceevent/SyncGetSpaceEvent.java new file mode 100644 index 000000000000..475d11ae2f85 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getspaceevent/SyncGetSpaceEvent.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_GetSpaceEvent_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.GetSpaceEventRequest; +import com.google.chat.v1.SpaceEvent; +import com.google.chat.v1.SpaceEventName; + +public class SyncGetSpaceEvent { + + public static void main(String[] args) throws Exception { + syncGetSpaceEvent(); + } + + public static void syncGetSpaceEvent() throws Exception { + // 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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + GetSpaceEventRequest request = + GetSpaceEventRequest.newBuilder() + .setName(SpaceEventName.of("[SPACE]", "[SPACE_EVENT]").toString()) + .build(); + SpaceEvent response = chatServiceClient.getSpaceEvent(request); + } + } +} +// [END chat_v1_generated_ChatService_GetSpaceEvent_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getspaceevent/SyncGetSpaceEventSpaceeventname.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getspaceevent/SyncGetSpaceEventSpaceeventname.java new file mode 100644 index 000000000000..0e2b37971995 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getspaceevent/SyncGetSpaceEventSpaceeventname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_GetSpaceEvent_Spaceeventname_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.SpaceEvent; +import com.google.chat.v1.SpaceEventName; + +public class SyncGetSpaceEventSpaceeventname { + + public static void main(String[] args) throws Exception { + syncGetSpaceEventSpaceeventname(); + } + + public static void syncGetSpaceEventSpaceeventname() throws Exception { + // 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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + SpaceEventName name = SpaceEventName.of("[SPACE]", "[SPACE_EVENT]"); + SpaceEvent response = chatServiceClient.getSpaceEvent(name); + } + } +} +// [END chat_v1_generated_ChatService_GetSpaceEvent_Spaceeventname_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getspaceevent/SyncGetSpaceEventString.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getspaceevent/SyncGetSpaceEventString.java new file mode 100644 index 000000000000..71706dda3cda --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getspaceevent/SyncGetSpaceEventString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_GetSpaceEvent_String_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.SpaceEvent; +import com.google.chat.v1.SpaceEventName; + +public class SyncGetSpaceEventString { + + public static void main(String[] args) throws Exception { + syncGetSpaceEventString(); + } + + public static void syncGetSpaceEventString() throws Exception { + // 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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + String name = SpaceEventName.of("[SPACE]", "[SPACE_EVENT]").toString(); + SpaceEvent response = chatServiceClient.getSpaceEvent(name); + } + } +} +// [END chat_v1_generated_ChatService_GetSpaceEvent_String_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/AsyncListSpaceEvents.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/AsyncListSpaceEvents.java new file mode 100644 index 000000000000..874fcc70b9aa --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/AsyncListSpaceEvents.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_ListSpaceEvents_async] +import com.google.api.core.ApiFuture; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.ListSpaceEventsRequest; +import com.google.chat.v1.SpaceEvent; +import com.google.chat.v1.SpaceName; + +public class AsyncListSpaceEvents { + + public static void main(String[] args) throws Exception { + asyncListSpaceEvents(); + } + + public static void asyncListSpaceEvents() throws Exception { + // 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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + ListSpaceEventsRequest request = + ListSpaceEventsRequest.newBuilder() + .setParent(SpaceName.of("[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + chatServiceClient.listSpaceEventsPagedCallable().futureCall(request); + // Do something. + for (SpaceEvent element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chat_v1_generated_ChatService_ListSpaceEvents_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/AsyncListSpaceEventsPaged.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/AsyncListSpaceEventsPaged.java new file mode 100644 index 000000000000..a7583beaf9c6 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/AsyncListSpaceEventsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_ListSpaceEvents_Paged_async] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.ListSpaceEventsRequest; +import com.google.chat.v1.ListSpaceEventsResponse; +import com.google.chat.v1.SpaceEvent; +import com.google.chat.v1.SpaceName; +import com.google.common.base.Strings; + +public class AsyncListSpaceEventsPaged { + + public static void main(String[] args) throws Exception { + asyncListSpaceEventsPaged(); + } + + public static void asyncListSpaceEventsPaged() throws Exception { + // 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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + ListSpaceEventsRequest request = + ListSpaceEventsRequest.newBuilder() + .setParent(SpaceName.of("[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListSpaceEventsResponse response = + chatServiceClient.listSpaceEventsCallable().call(request); + for (SpaceEvent element : response.getSpaceEventsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END chat_v1_generated_ChatService_ListSpaceEvents_Paged_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/SyncListSpaceEvents.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/SyncListSpaceEvents.java new file mode 100644 index 000000000000..76cdf1c0c19f --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/SyncListSpaceEvents.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_ListSpaceEvents_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.ListSpaceEventsRequest; +import com.google.chat.v1.SpaceEvent; +import com.google.chat.v1.SpaceName; + +public class SyncListSpaceEvents { + + public static void main(String[] args) throws Exception { + syncListSpaceEvents(); + } + + public static void syncListSpaceEvents() throws Exception { + // 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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + ListSpaceEventsRequest request = + ListSpaceEventsRequest.newBuilder() + .setParent(SpaceName.of("[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (SpaceEvent element : chatServiceClient.listSpaceEvents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chat_v1_generated_ChatService_ListSpaceEvents_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/SyncListSpaceEventsSpacenameString.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/SyncListSpaceEventsSpacenameString.java new file mode 100644 index 000000000000..f20ed854c88d --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/SyncListSpaceEventsSpacenameString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_ListSpaceEvents_SpacenameString_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.SpaceEvent; +import com.google.chat.v1.SpaceName; + +public class SyncListSpaceEventsSpacenameString { + + public static void main(String[] args) throws Exception { + syncListSpaceEventsSpacenameString(); + } + + public static void syncListSpaceEventsSpacenameString() throws Exception { + // 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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + SpaceName parent = SpaceName.of("[SPACE]"); + String filter = "filter-1274492040"; + for (SpaceEvent element : chatServiceClient.listSpaceEvents(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chat_v1_generated_ChatService_ListSpaceEvents_SpacenameString_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/SyncListSpaceEventsStringString.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/SyncListSpaceEventsStringString.java new file mode 100644 index 000000000000..c74dbe2e9424 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listspaceevents/SyncListSpaceEventsStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_ListSpaceEvents_StringString_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.SpaceEvent; +import com.google.chat.v1.SpaceName; + +public class SyncListSpaceEventsStringString { + + public static void main(String[] args) throws Exception { + syncListSpaceEventsStringString(); + } + + public static void syncListSpaceEventsStringString() throws Exception { + // 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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + String parent = SpaceName.of("[SPACE]").toString(); + String filter = "filter-1274492040"; + for (SpaceEvent element : chatServiceClient.listSpaceEvents(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chat_v1_generated_ChatService_ListSpaceEvents_StringString_sync] diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index 38ca9b850535..916ff91cb4de 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/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-build.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.48.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-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java index 8855988f38d7..012ad4dcc8f4 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.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; @@ -513,6 +514,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudbuild.googleapis.com:443"; } diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/RepositoryManagerStubSettings.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/RepositoryManagerStubSettings.java index 090f27b557af..9e66775a2059 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/RepositoryManagerStubSettings.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/RepositoryManagerStubSettings.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; @@ -524,6 +525,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudbuild.googleapis.com:443"; } diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index c3982ad74303..6d483dc42a67 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/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.cloud/google-cloud-cloudcommerceconsumerprocurement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.44.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-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.java index c52285b27b21..4f6922ea028d 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.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; @@ -219,6 +220,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudcommerceconsumerprocurement.googleapis.com:443"; } diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java index 59c79f16d4a9..a3f51419c80c 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.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; @@ -220,6 +221,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudcommerceconsumerprocurement.googleapis.com:443"; } diff --git a/java-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index 72d43b0310e2..1c1af7e8258b 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/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-cloudcontrolspartner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.10.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-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStubSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStubSettings.java index 05bfc1d24213..57b258d5f98e 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStubSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStubSettings.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; @@ -399,6 +400,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudcontrolspartner.googleapis.com:443"; } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerMonitoringStubSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerMonitoringStubSettings.java index aaaa7fd82933..8ff7d5d1a138 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerMonitoringStubSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerMonitoringStubSettings.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; @@ -202,6 +203,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudcontrolspartner.googleapis.com:443"; } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java index dbf6d4fe0d0f..060c85ba7056 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.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; @@ -400,6 +401,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudcontrolspartner.googleapis.com:443"; } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerMonitoringStubSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerMonitoringStubSettings.java index b224f42d47e4..56c397d42f92 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerMonitoringStubSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerMonitoringStubSettings.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; @@ -203,6 +204,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudcontrolspartner.googleapis.com:443"; } diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index e2845602d455..16b35821a0bd 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/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 @@ -197,7 +197,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-cloudquotas.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.14.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-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/stub/CloudQuotasStubSettings.java b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/stub/CloudQuotasStubSettings.java index d3e0d98f34bb..c9898201d36b 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/stub/CloudQuotasStubSettings.java +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/stub/CloudQuotasStubSettings.java @@ -32,6 +32,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; @@ -308,6 +309,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudquotas.googleapis.com:443"; } diff --git a/java-cloudsupport/README.md b/java-cloudsupport/README.md index bb5fac8417cc..fe35105a0226 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/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.cloud/google-cloud-cloudsupport.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.30.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-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseAttachmentServiceStubSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseAttachmentServiceStubSettings.java index cdea6f1a0318..63700cee130f 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseAttachmentServiceStubSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseAttachmentServiceStubSettings.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; @@ -195,6 +196,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudsupport.googleapis.com:443"; } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseServiceStubSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseServiceStubSettings.java index 8c8803c48bf7..e2009ddd255b 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseServiceStubSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseServiceStubSettings.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; @@ -380,6 +381,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudsupport.googleapis.com:443"; } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CommentServiceStubSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CommentServiceStubSettings.java index b4e683d86852..5b6a84a75b5b 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CommentServiceStubSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CommentServiceStubSettings.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; @@ -196,6 +197,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudsupport.googleapis.com:443"; } diff --git a/java-compute/README.md b/java-compute/README.md index 5e121ac358b5..7d818324668e 100644 --- a/java-compute/README.md +++ b/java-compute/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 @@ -258,7 +258,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-compute.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.56.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-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypesStubSettings.java index 09648c2ea245..f36e4a93d4fc 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypesStubSettings.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; @@ -292,6 +293,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressesStubSettings.java index 2dab36fc504e..f309294e4eaa 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressesStubSettings.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; @@ -336,6 +337,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalersStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalersStubSettings.java index 70d7a7f322cf..ee36e6039314 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalersStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalersStubSettings.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; @@ -344,6 +345,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStubSettings.java index 69ecb2a5d1dd..4c375411b614 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStubSettings.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; @@ -334,6 +335,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServicesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServicesStubSettings.java index 5653ab0dcd0b..16aa0007a5dd 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServicesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServicesStubSettings.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; @@ -535,6 +536,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypesStubSettings.java index 15093b96855b..e639c18d0882 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypesStubSettings.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; @@ -273,6 +274,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStubSettings.java index 278dc064ffcb..73e83330c9f7 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStubSettings.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; @@ -477,6 +478,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ExternalVpnGatewaysStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ExternalVpnGatewaysStubSettings.java index 7c24c73fe402..8cc1a2787e67 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ExternalVpnGatewaysStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ExternalVpnGatewaysStubSettings.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; @@ -260,6 +261,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallPoliciesStubSettings.java index a754866933ae..296ea75ff7e7 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallPoliciesStubSettings.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; @@ -410,6 +411,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallsStubSettings.java index f3cc0a30e62c..7f266c4b1d46 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallsStubSettings.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; @@ -251,6 +252,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRulesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRulesStubSettings.java index 7ec276bd85bd..775d53ca1b0a 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRulesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRulesStubSettings.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; @@ -368,6 +369,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressesStubSettings.java index ce55f155b5f6..a9b306274313 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressesStubSettings.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; @@ -256,6 +257,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRulesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRulesStubSettings.java index 0cacbc356a9b..1556b1a2505f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRulesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRulesStubSettings.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; @@ -282,6 +283,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalNetworkEndpointGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalNetworkEndpointGroupsStubSettings.java index 8b7195940b2b..0be7b08d0327 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalNetworkEndpointGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalNetworkEndpointGroupsStubSettings.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; @@ -386,6 +387,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationsStubSettings.java index ef87cdaae164..1c00df998b8f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationsStubSettings.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; @@ -305,6 +306,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOrganizationOperationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOrganizationOperationsStubSettings.java index 428aa285f664..f9d5a6b81592 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOrganizationOperationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOrganizationOperationsStubSettings.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; @@ -213,6 +214,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalPublicDelegatedPrefixesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalPublicDelegatedPrefixesStubSettings.java index 4cd73da26b83..774b93a44ac2 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalPublicDelegatedPrefixesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalPublicDelegatedPrefixesStubSettings.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; @@ -270,6 +271,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthChecksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthChecksStubSettings.java index 277a85b0a16c..03b7e8aecd4b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthChecksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthChecksStubSettings.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; @@ -351,6 +352,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageFamilyViewsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageFamilyViewsStubSettings.java index 3014a685760a..0c43c8a51eb4 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageFamilyViewsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageFamilyViewsStubSettings.java @@ -17,6 +17,7 @@ package com.google.cloud.compute.v1.stub; 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; @@ -118,6 +119,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImagesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImagesStubSettings.java index 435d881d537a..62e9d85f6582 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImagesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImagesStubSettings.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; @@ -292,6 +293,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerResizeRequestsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerResizeRequestsStubSettings.java index fd0a3f697a19..253daf1a82ad 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerResizeRequestsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerResizeRequestsStubSettings.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; @@ -284,6 +285,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStubSettings.java index bd4308978eab..3ae01fc21470 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStubSettings.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; @@ -842,6 +843,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupsStubSettings.java index 1b7e2b5cb519..50a5f921a65f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupsStubSettings.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; @@ -461,6 +462,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceSettingsServiceStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceSettingsServiceStubSettings.java index 557859322c24..a468c69e6fcb 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceSettingsServiceStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceSettingsServiceStubSettings.java @@ -17,6 +17,7 @@ package com.google.cloud.compute.v1.stub; 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; @@ -139,6 +140,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplatesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplatesStubSettings.java index 0f8375982ff9..b8f0947c3031 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplatesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplatesStubSettings.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; @@ -354,6 +355,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstancesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstancesStubSettings.java index c9656a16a394..26a2d123c571 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstancesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstancesStubSettings.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; @@ -1001,6 +1002,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotsStubSettings.java index e19fdaa8902a..9b23b88b6823 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotsStubSettings.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; @@ -366,6 +367,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentsStubSettings.java index 361dc45fb457..ac42734bcd71 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentsStubSettings.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; @@ -372,6 +373,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationsStubSettings.java index 6804d3433891..f8ccd9843373 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationsStubSettings.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; @@ -206,6 +207,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectRemoteLocationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectRemoteLocationsStubSettings.java index f424cd0c664c..0d3a22fbc620 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectRemoteLocationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectRemoteLocationsStubSettings.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; @@ -216,6 +217,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectsStubSettings.java index 9f0726749b16..a2cf0c52ea0f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectsStubSettings.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; @@ -278,6 +279,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodesStubSettings.java index 9cf1186f5649..e84941d34b7d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodesStubSettings.java @@ -17,6 +17,7 @@ package com.google.cloud.compute.v1.stub; 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; @@ -128,6 +129,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicensesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicensesStubSettings.java index 3d069ae66dbb..33daefc9443c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicensesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicensesStubSettings.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; @@ -248,6 +249,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineImagesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineImagesStubSettings.java index 0e335ac480d7..db2e7f701723 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineImagesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineImagesStubSettings.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; @@ -251,6 +252,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypesStubSettings.java index e05b29c3c40e..be1ebca25378 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypesStubSettings.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; @@ -281,6 +282,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkAttachmentsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkAttachmentsStubSettings.java index a4785015a901..3d4f28f0a5d2 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkAttachmentsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkAttachmentsStubSettings.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; @@ -371,6 +372,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEdgeSecurityServicesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEdgeSecurityServicesStubSettings.java index 0db0c893918c..db04c5d4c147 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEdgeSecurityServicesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEdgeSecurityServicesStubSettings.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; @@ -279,6 +280,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEndpointGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEndpointGroupsStubSettings.java index 0f28ef1f6270..5508fc79bc44 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEndpointGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEndpointGroupsStubSettings.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; @@ -483,6 +484,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStubSettings.java index 5a646ded512d..f8e7162ea1ba 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStubSettings.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; @@ -401,6 +402,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworksStubSettings.java index a340a46fe3f1..994dd72c0fde 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworksStubSettings.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; @@ -399,6 +400,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupsStubSettings.java index a8af055d4bc0..7f72e0879bf0 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupsStubSettings.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; @@ -502,6 +503,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplatesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplatesStubSettings.java index c2bf78d398e4..d0bf460062e5 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplatesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplatesStubSettings.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; @@ -346,6 +347,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypesStubSettings.java index 814c73243585..12a840322878 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypesStubSettings.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; @@ -273,6 +274,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PacketMirroringsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PacketMirroringsStubSettings.java index cda08cf09f11..5ffd6319a08e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PacketMirroringsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PacketMirroringsStubSettings.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; @@ -351,6 +352,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectsStubSettings.java index 7233917a03da..1539302f33b9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectsStubSettings.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; @@ -442,6 +443,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicAdvertisedPrefixesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicAdvertisedPrefixesStubSettings.java index 979708e42465..247016af28bc 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicAdvertisedPrefixesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicAdvertisedPrefixesStubSettings.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; @@ -294,6 +295,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicDelegatedPrefixesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicDelegatedPrefixesStubSettings.java index 85b39625d519..6e598d227836 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicDelegatedPrefixesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicDelegatedPrefixesStubSettings.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; @@ -388,6 +389,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalersStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalersStubSettings.java index dceab73f2449..d95485ce9a11 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalersStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalersStubSettings.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; @@ -262,6 +263,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServicesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServicesStubSettings.java index 7a4928f9cfab..e6285971a99d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServicesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServicesStubSettings.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; @@ -402,6 +403,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentsStubSettings.java index d3e0712b6bea..ac6fbd2a5df6 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentsStubSettings.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; @@ -324,6 +325,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypesStubSettings.java index 4e215dfa9340..a7437f3d026c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypesStubSettings.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; @@ -192,6 +193,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStubSettings.java index 5a4e9d41149c..d6a5fb3680fd 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStubSettings.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; @@ -409,6 +410,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthCheckServicesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthCheckServicesStubSettings.java index b84bbfa0d60a..3de2f7bb09cb 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthCheckServicesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthCheckServicesStubSettings.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; @@ -256,6 +257,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthChecksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthChecksStubSettings.java index 77066ddb82a2..5eab73494d95 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthChecksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthChecksStubSettings.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; @@ -260,6 +261,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStubSettings.java index 04ec9e50f86e..7a23ef4c9427 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStubSettings.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; @@ -768,6 +769,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupsStubSettings.java index aa4c09fc0f4d..8dd270597fea 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupsStubSettings.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; @@ -317,6 +318,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceTemplatesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceTemplatesStubSettings.java index d93b95712dfa..9d5ed29fd9d9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceTemplatesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceTemplatesStubSettings.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; @@ -237,6 +238,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstancesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstancesStubSettings.java index 30bf1eff3e22..5ee7c686bfda 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstancesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstancesStubSettings.java @@ -17,6 +17,7 @@ package com.google.cloud.compute.v1.stub; 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; @@ -129,6 +130,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotsStubSettings.java index bca5f2fc1cfd..5a978110dfc9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotsStubSettings.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; @@ -282,6 +283,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkEndpointGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkEndpointGroupsStubSettings.java index 3cbd2d4f6715..05b2e44d54d9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkEndpointGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkEndpointGroupsStubSettings.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; @@ -386,6 +387,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkFirewallPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkFirewallPoliciesStubSettings.java index 4e2de7e79566..6d0dae12d4e4 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkFirewallPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkFirewallPoliciesStubSettings.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; @@ -434,6 +435,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNotificationEndpointsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNotificationEndpointsStubSettings.java index 1eaa5631f472..79351862ec4a 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNotificationEndpointsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNotificationEndpointsStubSettings.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; @@ -249,6 +250,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationsStubSettings.java index 4dc405bd4340..f4fb34552578 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationsStubSettings.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; @@ -210,6 +211,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStubSettings.java index 1159a9dd6ee4..98d8de8fdc5f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStubSettings.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; @@ -307,6 +308,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslCertificatesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslCertificatesStubSettings.java index 9bc6234e8131..51b983784c26 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslCertificatesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslCertificatesStubSettings.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; @@ -235,6 +236,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslPoliciesStubSettings.java index 0b9e9662ac6e..f1677507c555 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslPoliciesStubSettings.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; @@ -256,6 +257,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpProxiesStubSettings.java index 71f7e8b382aa..4471b2163627 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpProxiesStubSettings.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; @@ -252,6 +253,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpsProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpsProxiesStubSettings.java index 2edf8c4d7596..41e722a15c11 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpsProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpsProxiesStubSettings.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; @@ -287,6 +288,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetTcpProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetTcpProxiesStubSettings.java index 6007d75bd1a5..8ebd406975be 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetTcpProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetTcpProxiesStubSettings.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; @@ -235,6 +236,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionUrlMapsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionUrlMapsStubSettings.java index 360956c55873..989f76d7d650 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionUrlMapsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionUrlMapsStubSettings.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; @@ -264,6 +265,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionZonesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionZonesStubSettings.java index dcec99e17627..b5b9920a7f7e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionZonesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionZonesStubSettings.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; @@ -181,6 +182,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionsStubSettings.java index 90a525e360c1..e82bc61135b3 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionsStubSettings.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; @@ -185,6 +186,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationsStubSettings.java index 537788a92327..b23236bbbf11 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationsStubSettings.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; @@ -370,6 +371,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ResourcePoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ResourcePoliciesStubSettings.java index 030004cb6df4..8ceab263e305 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ResourcePoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ResourcePoliciesStubSettings.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; @@ -366,6 +367,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutersStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutersStubSettings.java index fb3d359a0ab1..e8f529e7c33b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutersStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutersStubSettings.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; @@ -446,6 +447,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutesStubSettings.java index e60e175e3df8..92ada310f8e5 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutesStubSettings.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; @@ -216,6 +217,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPoliciesStubSettings.java index 208f36c38e22..18c1ba973f71 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPoliciesStubSettings.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; @@ -423,6 +424,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ServiceAttachmentsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ServiceAttachmentsStubSettings.java index a70922781609..f695051556cb 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ServiceAttachmentsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ServiceAttachmentsStubSettings.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; @@ -371,6 +372,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotSettingsServiceStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotSettingsServiceStubSettings.java index 3dbe04672ce6..2dad2b4799a0 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotSettingsServiceStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotSettingsServiceStubSettings.java @@ -17,6 +17,7 @@ package com.google.cloud.compute.v1.stub; 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; @@ -139,6 +140,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStubSettings.java index 1c0e7a29a1d6..c4ff8fabaf6a 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStubSettings.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; @@ -261,6 +262,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificatesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificatesStubSettings.java index 225f162e8646..952055b19960 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificatesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificatesStubSettings.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; @@ -323,6 +324,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPoliciesStubSettings.java index 5d397b2e9382..95ba990e2dea 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPoliciesStubSettings.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; @@ -341,6 +342,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolTypesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolTypesStubSettings.java index 72f13a9e8424..36336f04583b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolTypesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolTypesStubSettings.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; @@ -292,6 +293,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolsStubSettings.java index fa1de5eca04a..636d77d70a29 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolsStubSettings.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; @@ -429,6 +430,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworksStubSettings.java index cf5605badd8b..00e109dae7ac 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworksStubSettings.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; @@ -470,6 +471,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetGrpcProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetGrpcProxiesStubSettings.java index bb932730f12c..0ac000fc5de1 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetGrpcProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetGrpcProxiesStubSettings.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; @@ -247,6 +248,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxiesStubSettings.java index 2d693f8cfcd7..4f9730fe1596 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxiesStubSettings.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; @@ -357,6 +358,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxiesStubSettings.java index e0975b355478..3b8d2dd8f3d3 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxiesStubSettings.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; @@ -427,6 +428,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstancesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstancesStubSettings.java index f190c36079cb..64fbb416245b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstancesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstancesStubSettings.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; @@ -340,6 +341,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolsStubSettings.java index 06bc2e77f2c0..62cc443578b7 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolsStubSettings.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; @@ -420,6 +421,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxiesStubSettings.java index 24bf884779da..6d982b8af0d9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxiesStubSettings.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; @@ -315,6 +316,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxiesStubSettings.java index e247c6fef2f8..84aae06564a1 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxiesStubSettings.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; @@ -360,6 +361,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewaysStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewaysStubSettings.java index 1543691b09d9..39c459f2df68 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewaysStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewaysStubSettings.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; @@ -343,6 +344,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapsStubSettings.java index 55d29e0d47d2..85ef3c19e46c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapsStubSettings.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; @@ -353,6 +354,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnGatewaysStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnGatewaysStubSettings.java index 31c3283a452f..42ab1f8af543 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnGatewaysStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnGatewaysStubSettings.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; @@ -349,6 +350,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelsStubSettings.java index 9e2f0aa31cf6..e089cf3f22c3 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelsStubSettings.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; @@ -325,6 +326,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationsStubSettings.java index 154545a7dca1..469aa8d7a6df 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationsStubSettings.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; @@ -208,6 +209,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZonesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZonesStubSettings.java index 1368b2acc866..3f6dea0cfdc4 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZonesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZonesStubSettings.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; @@ -182,6 +183,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "compute.googleapis.com:443"; } diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index 3fe068474419..66c411525e59 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/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.cloud/google-cloud-confidentialcomputing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.32.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-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java index 6ed4f321ae23..0ae5cd6d1b6b 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.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; @@ -217,6 +218,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "confidentialcomputing.googleapis.com:443"; } diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java index 82c36120dac2..f3159ffaa8ce 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.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; @@ -218,6 +219,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "confidentialcomputing.googleapis.com:443"; } diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json index bf0d29c30b6d..294b6b74fba5 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json @@ -467,6 +467,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.confidentialcomputing.v1.SevSnpAttestation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.SevSnpAttestation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.confidentialcomputing.v1.SignedEntity", "queryAllDeclaredConstructors": true, @@ -494,6 +512,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions", "queryAllDeclaredConstructors": true, diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java index 461b72f2684a..761cd19a16dc 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java @@ -205,6 +205,8 @@ public void verifyAttestationTest() throws Exception { Assert.assertEquals(1, actualRequests.size()); VerifyAttestationRequest actualRequest = ((VerifyAttestationRequest) actualRequests.get(0)); + Assert.assertEquals(request.getTdCcel(), actualRequest.getTdCcel()); + Assert.assertEquals(request.getSevSnpAttestation(), actualRequest.getSevSnpAttestation()); Assert.assertEquals(request.getChallenge(), actualRequest.getChallenge()); Assert.assertEquals(request.getGcpCredentials(), actualRequest.getGcpCredentials()); Assert.assertEquals(request.getTpmAttestation(), actualRequest.getTpmAttestation()); diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java index 4edad46cdbe3..cd40cb970e8c 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java @@ -40,6 +40,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -103,73 +111,83 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + "ocation\022H\n\tchallenge\030\002 \001(\01320.google.clou" + "d.confidentialcomputing.v1.ChallengeB\003\340A" - + "\002\"\304\003\n\030VerifyAttestationRequest\022I\n\tchalle" - + "nge\030\001 \001(\tB6\340A\002\372A0\n.confidentialcomputing" - + ".googleapis.com/Challenge\022S\n\017gcp_credent" - + "ials\030\002 \001(\01325.google.cloud.confidentialco" - + "mputing.v1.GcpCredentialsB\003\340A\001\022S\n\017tpm_at" - + "testation\030\003 \001(\01325.google.cloud.confident" - + "ialcomputing.v1.TpmAttestationB\003\340A\002\022b\n\027c" - + "onfidential_space_info\030\004 \001(\0132<.google.cl" - + "oud.confidentialcomputing.v1.Confidentia" - + "lSpaceInfoB\003\340A\001\022O\n\rtoken_options\030\005 \001(\01323" - + ".google.cloud.confidentialcomputing.v1.T" - + "okenOptionsB\003\340A\001\"l\n\031VerifyAttestationRes" - + "ponse\022\036\n\021oidc_claims_token\030\002 \001(\tB\003\340A\003\022/\n" - + "\016partial_errors\030\003 \003(\0132\022.google.rpc.Statu" - + "sB\003\340A\003\"3\n\016GcpCredentials\022!\n\031service_acco" - + "unt_id_tokens\030\002 \003(\t\"\204\001\n\014TokenOptions\022\025\n\010" - + "audience\030\001 \001(\tB\003\340A\001\022\022\n\005nonce\030\002 \003(\tB\003\340A\001\022" - + "I\n\ntoken_type\030\003 \001(\01620.google.cloud.confi" - + "dentialcomputing.v1.TokenTypeB\003\340A\001\"\217\003\n\016T" - + "pmAttestation\022K\n\006quotes\030\001 \003(\0132;.google.c" - + "loud.confidentialcomputing.v1.TpmAttesta" - + "tion.Quote\022\025\n\rtcg_event_log\030\002 \001(\014\022\033\n\023can" - + "onical_event_log\030\003 \001(\014\022\017\n\007ak_cert\030\004 \001(\014\022" - + "\022\n\ncert_chain\030\005 \003(\014\032\326\001\n\005Quote\022\021\n\thash_al" - + "go\030\001 \001(\005\022^\n\npcr_values\030\002 \003(\0132J.google.cl" - + "oud.confidentialcomputing.v1.TpmAttestat" - + "ion.Quote.PcrValuesEntry\022\021\n\traw_quote\030\003 " - + "\001(\014\022\025\n\rraw_signature\030\004 \001(\014\0320\n\016PcrValuesE" - + "ntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\014:\0028\001\"j\n\025" - + "ConfidentialSpaceInfo\022Q\n\017signed_entities" - + "\030\001 \003(\01323.google.cloud.confidentialcomput" - + "ing.v1.SignedEntityB\003\340A\001\"w\n\014SignedEntity" - + "\022g\n\032container_image_signatures\030\001 \003(\0132>.g" - + "oogle.cloud.confidentialcomputing.v1.Con" - + "tainerImageSignatureB\003\340A\001\"\257\001\n\027ContainerI" - + "mageSignature\022\024\n\007payload\030\001 \001(\014B\003\340A\001\022\026\n\ts" - + "ignature\030\002 \001(\014B\003\340A\001\022\027\n\npublic_key\030\003 \001(\014B" - + "\003\340A\001\022M\n\007sig_alg\030\004 \001(\01627.google.cloud.con" - + "fidentialcomputing.v1.SigningAlgorithmB\003" - + "\340A\001*\177\n\020SigningAlgorithm\022!\n\035SIGNING_ALGOR" - + "ITHM_UNSPECIFIED\020\000\022\025\n\021RSASSA_PSS_SHA256\020" - + "\001\022\032\n\026RSASSA_PKCS1V15_SHA256\020\002\022\025\n\021ECDSA_P" - + "256_SHA256\020\003*l\n\tTokenType\022\032\n\026TOKEN_TYPE_" - + "UNSPECIFIED\020\000\022\023\n\017TOKEN_TYPE_OIDC\020\001\022\022\n\016TO" - + "KEN_TYPE_PKI\020\002\022\032\n\026TOKEN_TYPE_LIMITED_AWS" - + "\020\0032\267\004\n\025ConfidentialComputing\022\330\001\n\017CreateC" - + "hallenge\022=.google.cloud.confidentialcomp" - + "uting.v1.CreateChallengeRequest\0320.google" - + ".cloud.confidentialcomputing.v1.Challeng" - + "e\"T\332A\020parent,challenge\202\323\344\223\002;\"./v1/{paren" - + "t=projects/*/locations/*}/challenges:\tch" - + "allenge\022\350\001\n\021VerifyAttestation\022?.google.c" - + "loud.confidentialcomputing.v1.VerifyAtte" - + "stationRequest\032@.google.cloud.confidenti" - + "alcomputing.v1.VerifyAttestationResponse" - + "\"P\202\323\344\223\002J\"E/v1/{challenge=projects/*/loca" - + "tions/*/challenges/*}:verifyAttestation:" - + "\001*\032X\312A$confidentialcomputing.googleapis." - + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformB\227\002\n)com.google.cloud.confid" - + "entialcomputing.v1B\014ServiceProtoP\001Z_clou" - + "d.google.com/go/confidentialcomputing/ap" - + "iv1/confidentialcomputingpb;confidential" - + "computingpb\252\002%Google.Cloud.ConfidentialC" - + "omputing.V1\312\002%Google\\Cloud\\ConfidentialC" - + "omputing\\V1\352\002(Google::Cloud::Confidentia" - + "lComputing::V1b\006proto3" + + "\002\"\210\005\n\030VerifyAttestationRequest\022Q\n\007td_cce" + + "l\030\006 \001(\01329.google.cloud.confidentialcompu" + + "ting.v1.TdxCcelAttestationB\003\340A\001H\000\022\\\n\023sev" + + "_snp_attestation\030\007 \001(\01328.google.cloud.co" + + "nfidentialcomputing.v1.SevSnpAttestation" + + "B\003\340A\001H\000\022I\n\tchallenge\030\001 \001(\tB6\340A\002\372A0\n.conf" + + "identialcomputing.googleapis.com/Challen" + + "ge\022S\n\017gcp_credentials\030\002 \001(\01325.google.clo" + + "ud.confidentialcomputing.v1.GcpCredentia" + + "lsB\003\340A\001\022S\n\017tpm_attestation\030\003 \001(\01325.googl" + + "e.cloud.confidentialcomputing.v1.TpmAtte" + + "stationB\003\340A\002\022b\n\027confidential_space_info\030" + + "\004 \001(\0132<.google.cloud.confidentialcomputi" + + "ng.v1.ConfidentialSpaceInfoB\003\340A\001\022O\n\rtoke" + + "n_options\030\005 \001(\01323.google.cloud.confident" + + "ialcomputing.v1.TokenOptionsB\003\340A\001B\021\n\017tee" + + "_attestation\"\203\001\n\022TdxCcelAttestation\022\034\n\017c" + + "cel_acpi_table\030\001 \001(\014B\003\340A\001\022\026\n\tccel_data\030\002" + + " \001(\014B\003\340A\001\022 \n\023canonical_event_log\030\003 \001(\014B\003" + + "\340A\001\022\025\n\010td_quote\030\004 \001(\014B\003\340A\001\"?\n\021SevSnpAtte" + + "station\022\023\n\006report\030\001 \001(\014B\003\340A\001\022\025\n\010aux_blob" + + "\030\002 \001(\014B\003\340A\001\"l\n\031VerifyAttestationResponse" + + "\022\036\n\021oidc_claims_token\030\002 \001(\tB\003\340A\003\022/\n\016part" + + "ial_errors\030\003 \003(\0132\022.google.rpc.StatusB\003\340A" + + "\003\"3\n\016GcpCredentials\022!\n\031service_account_i" + + "d_tokens\030\002 \003(\t\"\204\001\n\014TokenOptions\022\025\n\010audie" + + "nce\030\001 \001(\tB\003\340A\001\022\022\n\005nonce\030\002 \003(\tB\003\340A\001\022I\n\nto" + + "ken_type\030\003 \001(\01620.google.cloud.confidenti" + + "alcomputing.v1.TokenTypeB\003\340A\001\"\217\003\n\016TpmAtt" + + "estation\022K\n\006quotes\030\001 \003(\0132;.google.cloud." + + "confidentialcomputing.v1.TpmAttestation." + + "Quote\022\025\n\rtcg_event_log\030\002 \001(\014\022\033\n\023canonica" + + "l_event_log\030\003 \001(\014\022\017\n\007ak_cert\030\004 \001(\014\022\022\n\nce" + + "rt_chain\030\005 \003(\014\032\326\001\n\005Quote\022\021\n\thash_algo\030\001 " + + "\001(\005\022^\n\npcr_values\030\002 \003(\0132J.google.cloud.c" + + "onfidentialcomputing.v1.TpmAttestation.Q" + + "uote.PcrValuesEntry\022\021\n\traw_quote\030\003 \001(\014\022\025" + + "\n\rraw_signature\030\004 \001(\014\0320\n\016PcrValuesEntry\022" + + "\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\014:\0028\001\"j\n\025Confi" + + "dentialSpaceInfo\022Q\n\017signed_entities\030\001 \003(" + + "\01323.google.cloud.confidentialcomputing.v" + + "1.SignedEntityB\003\340A\001\"w\n\014SignedEntity\022g\n\032c" + + "ontainer_image_signatures\030\001 \003(\0132>.google" + + ".cloud.confidentialcomputing.v1.Containe" + + "rImageSignatureB\003\340A\001\"\257\001\n\027ContainerImageS" + + "ignature\022\024\n\007payload\030\001 \001(\014B\003\340A\001\022\026\n\tsignat" + + "ure\030\002 \001(\014B\003\340A\001\022\027\n\npublic_key\030\003 \001(\014B\003\340A\001\022" + + "M\n\007sig_alg\030\004 \001(\01627.google.cloud.confiden" + + "tialcomputing.v1.SigningAlgorithmB\003\340A\001*\177" + + "\n\020SigningAlgorithm\022!\n\035SIGNING_ALGORITHM_" + + "UNSPECIFIED\020\000\022\025\n\021RSASSA_PSS_SHA256\020\001\022\032\n\026" + + "RSASSA_PKCS1V15_SHA256\020\002\022\025\n\021ECDSA_P256_S" + + "HA256\020\003*l\n\tTokenType\022\032\n\026TOKEN_TYPE_UNSPE" + + "CIFIED\020\000\022\023\n\017TOKEN_TYPE_OIDC\020\001\022\022\n\016TOKEN_T" + + "YPE_PKI\020\002\022\032\n\026TOKEN_TYPE_LIMITED_AWS\020\0032\267\004" + + "\n\025ConfidentialComputing\022\330\001\n\017CreateChalle" + + "nge\022=.google.cloud.confidentialcomputing" + + ".v1.CreateChallengeRequest\0320.google.clou" + + "d.confidentialcomputing.v1.Challenge\"T\332A" + + "\020parent,challenge\202\323\344\223\002;\"./v1/{parent=pro" + + "jects/*/locations/*}/challenges:\tchallen" + + "ge\022\350\001\n\021VerifyAttestation\022?.google.cloud." + + "confidentialcomputing.v1.VerifyAttestati" + + "onRequest\032@.google.cloud.confidentialcom" + + "puting.v1.VerifyAttestationResponse\"P\202\323\344" + + "\223\002J\"E/v1/{challenge=projects/*/locations" + + "/*/challenges/*}:verifyAttestation:\001*\032X\312" + + "A$confidentialcomputing.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB\227\002\n)com.google.cloud.confidentia" + + "lcomputing.v1B\014ServiceProtoP\001Z_cloud.goo" + + "gle.com/go/confidentialcomputing/apiv1/c" + + "onfidentialcomputingpb;confidentialcompu" + + "tingpb\252\002%Google.Cloud.ConfidentialComput" + + "ing.V1\312\002%Google\\Cloud\\ConfidentialComput" + + "ing\\V1\352\002(Google::Cloud::ConfidentialComp" + + "uting::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -204,14 +222,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor, new java.lang.String[] { + "TdCcel", + "SevSnpAttestation", "Challenge", "GcpCredentials", "TpmAttestation", "ConfidentialSpaceInfo", "TokenOptions", + "TeeAttestation", }); - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_descriptor, + new java.lang.String[] { + "CcelAcpiTable", "CcelData", "CanonicalEventLog", "TdQuote", + }); + internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_descriptor, + new java.lang.String[] { + "Report", "AuxBlob", + }); + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor = + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor, @@ -219,7 +256,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OidcClaimsToken", "PartialErrors", }); internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor, @@ -227,7 +264,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccountIdTokens", }); internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor, @@ -235,7 +272,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Audience", "Nonce", "TokenType", }); internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor, @@ -263,7 +300,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor, @@ -271,7 +308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SignedEntities", }); internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor, @@ -279,7 +316,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ContainerImageSignatures", }); internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor, diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SevSnpAttestation.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SevSnpAttestation.java new file mode 100644 index 000000000000..5578cbe2d950 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SevSnpAttestation.java @@ -0,0 +1,664 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.confidentialcomputing.v1; + +/** + * + * + *
        + * An SEV-SNP Attestation Report.
        + * Contains the attestation report and the certificate bundle that the client
        + * collects.
        + * 
        + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.SevSnpAttestation} + */ +public final class SevSnpAttestation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.SevSnpAttestation) + SevSnpAttestationOrBuilder { + private static final long serialVersionUID = 0L; + // Use SevSnpAttestation.newBuilder() to construct. + private SevSnpAttestation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SevSnpAttestation() { + report_ = com.google.protobuf.ByteString.EMPTY; + auxBlob_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SevSnpAttestation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.class, + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.Builder.class); + } + + public static final int REPORT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString report_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
        +   * Optional. The SEV-SNP Attestation Report
        +   * Format is in revision 1.55, §7.3 Attestation, Table 22. ATTESTATION_REPORT
        +   * Structure in this document:
        +   * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56860.pdf
        +   * 
        + * + * bytes report = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The report. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReport() { + return report_; + } + + public static final int AUX_BLOB_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString auxBlob_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
        +   * Optional. Certificate bundle defined in the GHCB protocol definition
        +   * Format is documented in GHCB revision 2.03, section 4.1.8.1 struct
        +   * cert_table in this document:
        +   * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56421.pdf
        +   * 
        + * + * bytes aux_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The auxBlob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuxBlob() { + return auxBlob_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!report_.isEmpty()) { + output.writeBytes(1, report_); + } + if (!auxBlob_.isEmpty()) { + output.writeBytes(2, auxBlob_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!report_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, report_); + } + if (!auxBlob_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, auxBlob_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.confidentialcomputing.v1.SevSnpAttestation)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation other = + (com.google.cloud.confidentialcomputing.v1.SevSnpAttestation) obj; + + if (!getReport().equals(other.getReport())) return false; + if (!getAuxBlob().equals(other.getAuxBlob())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REPORT_FIELD_NUMBER; + hash = (53 * hash) + getReport().hashCode(); + hash = (37 * hash) + AUX_BLOB_FIELD_NUMBER; + hash = (53 * hash) + getAuxBlob().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.SevSnpAttestation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.SevSnpAttestation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.SevSnpAttestation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.SevSnpAttestation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.SevSnpAttestation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.SevSnpAttestation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.SevSnpAttestation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.SevSnpAttestation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.SevSnpAttestation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.SevSnpAttestation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.SevSnpAttestation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.SevSnpAttestation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * An SEV-SNP Attestation Report.
        +   * Contains the attestation report and the certificate bundle that the client
        +   * collects.
        +   * 
        + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.SevSnpAttestation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.SevSnpAttestation) + com.google.cloud.confidentialcomputing.v1.SevSnpAttestationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.class, + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.Builder.class); + } + + // Construct using com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + report_ = com.google.protobuf.ByteString.EMPTY; + auxBlob_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SevSnpAttestation getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SevSnpAttestation build() { + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SevSnpAttestation buildPartial() { + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation result = + new com.google.cloud.confidentialcomputing.v1.SevSnpAttestation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.confidentialcomputing.v1.SevSnpAttestation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.report_ = report_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.auxBlob_ = auxBlob_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.confidentialcomputing.v1.SevSnpAttestation) { + return mergeFrom((com.google.cloud.confidentialcomputing.v1.SevSnpAttestation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.SevSnpAttestation other) { + if (other == com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.getDefaultInstance()) + return this; + if (other.getReport() != com.google.protobuf.ByteString.EMPTY) { + setReport(other.getReport()); + } + if (other.getAuxBlob() != com.google.protobuf.ByteString.EMPTY) { + setAuxBlob(other.getAuxBlob()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + report_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + auxBlob_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.ByteString report_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
        +     * Optional. The SEV-SNP Attestation Report
        +     * Format is in revision 1.55, §7.3 Attestation, Table 22. ATTESTATION_REPORT
        +     * Structure in this document:
        +     * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56860.pdf
        +     * 
        + * + * bytes report = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The report. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReport() { + return report_; + } + /** + * + * + *
        +     * Optional. The SEV-SNP Attestation Report
        +     * Format is in revision 1.55, §7.3 Attestation, Table 22. ATTESTATION_REPORT
        +     * Structure in this document:
        +     * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56860.pdf
        +     * 
        + * + * bytes report = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The report to set. + * @return This builder for chaining. + */ + public Builder setReport(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + report_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. The SEV-SNP Attestation Report
        +     * Format is in revision 1.55, §7.3 Attestation, Table 22. ATTESTATION_REPORT
        +     * Structure in this document:
        +     * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56860.pdf
        +     * 
        + * + * bytes report = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReport() { + bitField0_ = (bitField0_ & ~0x00000001); + report_ = getDefaultInstance().getReport(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString auxBlob_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
        +     * Optional. Certificate bundle defined in the GHCB protocol definition
        +     * Format is documented in GHCB revision 2.03, section 4.1.8.1 struct
        +     * cert_table in this document:
        +     * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56421.pdf
        +     * 
        + * + * bytes aux_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The auxBlob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuxBlob() { + return auxBlob_; + } + /** + * + * + *
        +     * Optional. Certificate bundle defined in the GHCB protocol definition
        +     * Format is documented in GHCB revision 2.03, section 4.1.8.1 struct
        +     * cert_table in this document:
        +     * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56421.pdf
        +     * 
        + * + * bytes aux_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The auxBlob to set. + * @return This builder for chaining. + */ + public Builder setAuxBlob(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + auxBlob_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Certificate bundle defined in the GHCB protocol definition
        +     * Format is documented in GHCB revision 2.03, section 4.1.8.1 struct
        +     * cert_table in this document:
        +     * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56421.pdf
        +     * 
        + * + * bytes aux_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAuxBlob() { + bitField0_ = (bitField0_ & ~0x00000002); + auxBlob_ = getDefaultInstance().getAuxBlob(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.SevSnpAttestation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.SevSnpAttestation) + private static final com.google.cloud.confidentialcomputing.v1.SevSnpAttestation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.SevSnpAttestation(); + } + + public static com.google.cloud.confidentialcomputing.v1.SevSnpAttestation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SevSnpAttestation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SevSnpAttestation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SevSnpAttestationOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SevSnpAttestationOrBuilder.java new file mode 100644 index 000000000000..0162138d459a --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SevSnpAttestationOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.confidentialcomputing.v1; + +public interface SevSnpAttestationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.SevSnpAttestation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. The SEV-SNP Attestation Report
        +   * Format is in revision 1.55, §7.3 Attestation, Table 22. ATTESTATION_REPORT
        +   * Structure in this document:
        +   * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56860.pdf
        +   * 
        + * + * bytes report = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The report. + */ + com.google.protobuf.ByteString getReport(); + + /** + * + * + *
        +   * Optional. Certificate bundle defined in the GHCB protocol definition
        +   * Format is documented in GHCB revision 2.03, section 4.1.8.1 struct
        +   * cert_table in this document:
        +   * https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56421.pdf
        +   * 
        + * + * bytes aux_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The auxBlob. + */ + com.google.protobuf.ByteString getAuxBlob(); +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TdxCcelAttestation.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TdxCcelAttestation.java new file mode 100644 index 000000000000..66c22c97e6a5 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TdxCcelAttestation.java @@ -0,0 +1,845 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.confidentialcomputing.v1; + +/** + * + * + *
        + * A TDX Attestation quote.
        + * 
        + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.TdxCcelAttestation} + */ +public final class TdxCcelAttestation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.TdxCcelAttestation) + TdxCcelAttestationOrBuilder { + private static final long serialVersionUID = 0L; + // Use TdxCcelAttestation.newBuilder() to construct. + private TdxCcelAttestation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TdxCcelAttestation() { + ccelAcpiTable_ = com.google.protobuf.ByteString.EMPTY; + ccelData_ = com.google.protobuf.ByteString.EMPTY; + canonicalEventLog_ = com.google.protobuf.ByteString.EMPTY; + tdQuote_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TdxCcelAttestation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.class, + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.Builder.class); + } + + public static final int CCEL_ACPI_TABLE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString ccelAcpiTable_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
        +   * Optional. The Confidential Computing Event Log (CCEL) ACPI table. Formatted
        +   * as described in the ACPI Specification 6.5.
        +   * 
        + * + * bytes ccel_acpi_table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ccelAcpiTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCcelAcpiTable() { + return ccelAcpiTable_; + } + + public static final int CCEL_DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString ccelData_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
        +   * Optional. The CCEL event log. Formatted as described in the UEFI 2.10.
        +   * 
        + * + * bytes ccel_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ccelData. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCcelData() { + return ccelData_; + } + + public static final int CANONICAL_EVENT_LOG_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString canonicalEventLog_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
        +   * Optional. An Event Log containing additional events measured into the RTMR
        +   * that are not already present in the CCEL.
        +   * 
        + * + * bytes canonical_event_log = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The canonicalEventLog. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCanonicalEventLog() { + return canonicalEventLog_; + } + + public static final int TD_QUOTE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString tdQuote_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
        +   * Optional. The TDX attestation quote from the guest. It contains the RTMR
        +   * values.
        +   * 
        + * + * bytes td_quote = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tdQuote. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTdQuote() { + return tdQuote_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!ccelAcpiTable_.isEmpty()) { + output.writeBytes(1, ccelAcpiTable_); + } + if (!ccelData_.isEmpty()) { + output.writeBytes(2, ccelData_); + } + if (!canonicalEventLog_.isEmpty()) { + output.writeBytes(3, canonicalEventLog_); + } + if (!tdQuote_.isEmpty()) { + output.writeBytes(4, tdQuote_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!ccelAcpiTable_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, ccelAcpiTable_); + } + if (!ccelData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, ccelData_); + } + if (!canonicalEventLog_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, canonicalEventLog_); + } + if (!tdQuote_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, tdQuote_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation other = + (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) obj; + + if (!getCcelAcpiTable().equals(other.getCcelAcpiTable())) return false; + if (!getCcelData().equals(other.getCcelData())) return false; + if (!getCanonicalEventLog().equals(other.getCanonicalEventLog())) return false; + if (!getTdQuote().equals(other.getTdQuote())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CCEL_ACPI_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getCcelAcpiTable().hashCode(); + hash = (37 * hash) + CCEL_DATA_FIELD_NUMBER; + hash = (53 * hash) + getCcelData().hashCode(); + hash = (37 * hash) + CANONICAL_EVENT_LOG_FIELD_NUMBER; + hash = (53 * hash) + getCanonicalEventLog().hashCode(); + hash = (37 * hash) + TD_QUOTE_FIELD_NUMBER; + hash = (53 * hash) + getTdQuote().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * A TDX Attestation quote.
        +   * 
        + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.TdxCcelAttestation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.TdxCcelAttestation) + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.class, + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.Builder.class); + } + + // Construct using com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ccelAcpiTable_ = com.google.protobuf.ByteString.EMPTY; + ccelData_ = com.google.protobuf.ByteString.EMPTY; + canonicalEventLog_ = com.google.protobuf.ByteString.EMPTY; + tdQuote_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation build() { + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation buildPartial() { + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation result = + new com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ccelAcpiTable_ = ccelAcpiTable_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ccelData_ = ccelData_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.canonicalEventLog_ = canonicalEventLog_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tdQuote_ = tdQuote_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) { + return mergeFrom((com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation other) { + if (other + == com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.getDefaultInstance()) + return this; + if (other.getCcelAcpiTable() != com.google.protobuf.ByteString.EMPTY) { + setCcelAcpiTable(other.getCcelAcpiTable()); + } + if (other.getCcelData() != com.google.protobuf.ByteString.EMPTY) { + setCcelData(other.getCcelData()); + } + if (other.getCanonicalEventLog() != com.google.protobuf.ByteString.EMPTY) { + setCanonicalEventLog(other.getCanonicalEventLog()); + } + if (other.getTdQuote() != com.google.protobuf.ByteString.EMPTY) { + setTdQuote(other.getTdQuote()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + ccelAcpiTable_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + ccelData_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + canonicalEventLog_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + tdQuote_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.ByteString ccelAcpiTable_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
        +     * Optional. The Confidential Computing Event Log (CCEL) ACPI table. Formatted
        +     * as described in the ACPI Specification 6.5.
        +     * 
        + * + * bytes ccel_acpi_table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ccelAcpiTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCcelAcpiTable() { + return ccelAcpiTable_; + } + /** + * + * + *
        +     * Optional. The Confidential Computing Event Log (CCEL) ACPI table. Formatted
        +     * as described in the ACPI Specification 6.5.
        +     * 
        + * + * bytes ccel_acpi_table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ccelAcpiTable to set. + * @return This builder for chaining. + */ + public Builder setCcelAcpiTable(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ccelAcpiTable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. The Confidential Computing Event Log (CCEL) ACPI table. Formatted
        +     * as described in the ACPI Specification 6.5.
        +     * 
        + * + * bytes ccel_acpi_table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCcelAcpiTable() { + bitField0_ = (bitField0_ & ~0x00000001); + ccelAcpiTable_ = getDefaultInstance().getCcelAcpiTable(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString ccelData_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
        +     * Optional. The CCEL event log. Formatted as described in the UEFI 2.10.
        +     * 
        + * + * bytes ccel_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ccelData. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCcelData() { + return ccelData_; + } + /** + * + * + *
        +     * Optional. The CCEL event log. Formatted as described in the UEFI 2.10.
        +     * 
        + * + * bytes ccel_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ccelData to set. + * @return This builder for chaining. + */ + public Builder setCcelData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ccelData_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. The CCEL event log. Formatted as described in the UEFI 2.10.
        +     * 
        + * + * bytes ccel_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCcelData() { + bitField0_ = (bitField0_ & ~0x00000002); + ccelData_ = getDefaultInstance().getCcelData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString canonicalEventLog_ = + com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
        +     * Optional. An Event Log containing additional events measured into the RTMR
        +     * that are not already present in the CCEL.
        +     * 
        + * + * bytes canonical_event_log = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The canonicalEventLog. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCanonicalEventLog() { + return canonicalEventLog_; + } + /** + * + * + *
        +     * Optional. An Event Log containing additional events measured into the RTMR
        +     * that are not already present in the CCEL.
        +     * 
        + * + * bytes canonical_event_log = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The canonicalEventLog to set. + * @return This builder for chaining. + */ + public Builder setCanonicalEventLog(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + canonicalEventLog_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. An Event Log containing additional events measured into the RTMR
        +     * that are not already present in the CCEL.
        +     * 
        + * + * bytes canonical_event_log = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCanonicalEventLog() { + bitField0_ = (bitField0_ & ~0x00000004); + canonicalEventLog_ = getDefaultInstance().getCanonicalEventLog(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString tdQuote_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
        +     * Optional. The TDX attestation quote from the guest. It contains the RTMR
        +     * values.
        +     * 
        + * + * bytes td_quote = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tdQuote. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTdQuote() { + return tdQuote_; + } + /** + * + * + *
        +     * Optional. The TDX attestation quote from the guest. It contains the RTMR
        +     * values.
        +     * 
        + * + * bytes td_quote = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tdQuote to set. + * @return This builder for chaining. + */ + public Builder setTdQuote(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + tdQuote_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. The TDX attestation quote from the guest. It contains the RTMR
        +     * values.
        +     * 
        + * + * bytes td_quote = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTdQuote() { + bitField0_ = (bitField0_ & ~0x00000008); + tdQuote_ = getDefaultInstance().getTdQuote(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.TdxCcelAttestation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.TdxCcelAttestation) + private static final com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation(); + } + + public static com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TdxCcelAttestation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TdxCcelAttestationOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TdxCcelAttestationOrBuilder.java new file mode 100644 index 000000000000..1df5c8dbecfd --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TdxCcelAttestationOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.confidentialcomputing.v1; + +public interface TdxCcelAttestationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.TdxCcelAttestation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. The Confidential Computing Event Log (CCEL) ACPI table. Formatted
        +   * as described in the ACPI Specification 6.5.
        +   * 
        + * + * bytes ccel_acpi_table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ccelAcpiTable. + */ + com.google.protobuf.ByteString getCcelAcpiTable(); + + /** + * + * + *
        +   * Optional. The CCEL event log. Formatted as described in the UEFI 2.10.
        +   * 
        + * + * bytes ccel_data = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ccelData. + */ + com.google.protobuf.ByteString getCcelData(); + + /** + * + * + *
        +   * Optional. An Event Log containing additional events measured into the RTMR
        +   * that are not already present in the CCEL.
        +   * 
        + * + * bytes canonical_event_log = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The canonicalEventLog. + */ + com.google.protobuf.ByteString getCanonicalEventLog(); + + /** + * + * + *
        +   * Optional. The TDX attestation quote from the guest. It contains the RTMR
        +   * values.
        +   * 
        + * + * bytes td_quote = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tdQuote. + */ + com.google.protobuf.ByteString getTdQuote(); +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java index b0a2db793a41..cf88791280e2 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java @@ -65,6 +65,171 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; + private int teeAttestationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object teeAttestation_; + + public enum TeeAttestationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TD_CCEL(6), + SEV_SNP_ATTESTATION(7), + TEEATTESTATION_NOT_SET(0); + private final int value; + + private TeeAttestationCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TeeAttestationCase valueOf(int value) { + return forNumber(value); + } + + public static TeeAttestationCase forNumber(int value) { + switch (value) { + case 6: + return TD_CCEL; + case 7: + return SEV_SNP_ATTESTATION; + case 0: + return TEEATTESTATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TeeAttestationCase getTeeAttestationCase() { + return TeeAttestationCase.forNumber(teeAttestationCase_); + } + + public static final int TD_CCEL_FIELD_NUMBER = 6; + /** + * + * + *
        +   * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +   * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tdCcel field is set. + */ + @java.lang.Override + public boolean hasTdCcel() { + return teeAttestationCase_ == 6; + } + /** + * + * + *
        +   * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +   * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tdCcel. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation getTdCcel() { + if (teeAttestationCase_ == 6) { + return (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.getDefaultInstance(); + } + /** + * + * + *
        +   * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +   * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TdxCcelAttestationOrBuilder + getTdCcelOrBuilder() { + if (teeAttestationCase_ == 6) { + return (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.getDefaultInstance(); + } + + public static final int SEV_SNP_ATTESTATION_FIELD_NUMBER = 7; + /** + * + * + *
        +   * Optional. An SEV-SNP Attestation Report.
        +   * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sevSnpAttestation field is set. + */ + @java.lang.Override + public boolean hasSevSnpAttestation() { + return teeAttestationCase_ == 7; + } + /** + * + * + *
        +   * Optional. An SEV-SNP Attestation Report.
        +   * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sevSnpAttestation. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SevSnpAttestation getSevSnpAttestation() { + if (teeAttestationCase_ == 7) { + return (com.google.cloud.confidentialcomputing.v1.SevSnpAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.getDefaultInstance(); + } + /** + * + * + *
        +   * Optional. An SEV-SNP Attestation Report.
        +   * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SevSnpAttestationOrBuilder + getSevSnpAttestationOrBuilder() { + if (teeAttestationCase_ == 7) { + return (com.google.cloud.confidentialcomputing.v1.SevSnpAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.getDefaultInstance(); + } + public static final int CHALLENGE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -391,6 +556,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(5, getTokenOptions()); } + if (teeAttestationCase_ == 6) { + output.writeMessage( + 6, (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) teeAttestation_); + } + if (teeAttestationCase_ == 7) { + output.writeMessage( + 7, (com.google.cloud.confidentialcomputing.v1.SevSnpAttestation) teeAttestation_); + } getUnknownFields().writeTo(output); } @@ -416,6 +589,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTokenOptions()); } + if (teeAttestationCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) teeAttestation_); + } + if (teeAttestationCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.confidentialcomputing.v1.SevSnpAttestation) teeAttestation_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -449,6 +632,17 @@ public boolean equals(final java.lang.Object obj) { if (hasTokenOptions()) { if (!getTokenOptions().equals(other.getTokenOptions())) return false; } + if (!getTeeAttestationCase().equals(other.getTeeAttestationCase())) return false; + switch (teeAttestationCase_) { + case 6: + if (!getTdCcel().equals(other.getTdCcel())) return false; + break; + case 7: + if (!getSevSnpAttestation().equals(other.getSevSnpAttestation())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -478,6 +672,18 @@ public int hashCode() { hash = (37 * hash) + TOKEN_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getTokenOptions().hashCode(); } + switch (teeAttestationCase_) { + case 6: + hash = (37 * hash) + TD_CCEL_FIELD_NUMBER; + hash = (53 * hash) + getTdCcel().hashCode(); + break; + case 7: + hash = (37 * hash) + SEV_SNP_ATTESTATION_FIELD_NUMBER; + hash = (53 * hash) + getSevSnpAttestation().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -633,6 +839,12 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + if (tdCcelBuilder_ != null) { + tdCcelBuilder_.clear(); + } + if (sevSnpAttestationBuilder_ != null) { + sevSnpAttestationBuilder_.clear(); + } challenge_ = ""; gcpCredentials_ = null; if (gcpCredentialsBuilder_ != null) { @@ -654,6 +866,8 @@ public Builder clear() { tokenOptionsBuilder_.dispose(); tokenOptionsBuilder_ = null; } + teeAttestationCase_ = 0; + teeAttestation_ = null; return this; } @@ -686,6 +900,7 @@ public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest buildP if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -693,28 +908,28 @@ public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest buildP private void buildPartial0( com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.challenge_ = challenge_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.gcpCredentials_ = gcpCredentialsBuilder_ == null ? gcpCredentials_ : gcpCredentialsBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.tpmAttestation_ = tpmAttestationBuilder_ == null ? tpmAttestation_ : tpmAttestationBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.confidentialSpaceInfo_ = confidentialSpaceInfoBuilder_ == null ? confidentialSpaceInfo_ : confidentialSpaceInfoBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.tokenOptions_ = tokenOptionsBuilder_ == null ? tokenOptions_ : tokenOptionsBuilder_.build(); to_bitField0_ |= 0x00000008; @@ -722,6 +937,18 @@ private void buildPartial0( result.bitField0_ |= to_bitField0_; } + private void buildPartialOneofs( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest result) { + result.teeAttestationCase_ = teeAttestationCase_; + result.teeAttestation_ = this.teeAttestation_; + if (teeAttestationCase_ == 6 && tdCcelBuilder_ != null) { + result.teeAttestation_ = tdCcelBuilder_.build(); + } + if (teeAttestationCase_ == 7 && sevSnpAttestationBuilder_ != null) { + result.teeAttestation_ = sevSnpAttestationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -773,7 +1000,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getChallenge().isEmpty()) { challenge_ = other.challenge_; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasGcpCredentials()) { @@ -788,6 +1015,22 @@ public Builder mergeFrom( if (other.hasTokenOptions()) { mergeTokenOptions(other.getTokenOptions()); } + switch (other.getTeeAttestationCase()) { + case TD_CCEL: + { + mergeTdCcel(other.getTdCcel()); + break; + } + case SEV_SNP_ATTESTATION: + { + mergeSevSnpAttestation(other.getSevSnpAttestation()); + break; + } + case TEEATTESTATION_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -817,34 +1060,47 @@ public Builder mergeFrom( case 10: { challenge_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; break; } // case 10 case 18: { input.readMessage(getGcpCredentialsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; break; } // case 18 case 26: { input.readMessage(getTpmAttestationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 26 case 34: { input.readMessage( getConfidentialSpaceInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 34 case 42: { input.readMessage(getTokenOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 42 + case 50: + { + input.readMessage(getTdCcelFieldBuilder().getBuilder(), extensionRegistry); + teeAttestationCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getSevSnpAttestationFieldBuilder().getBuilder(), extensionRegistry); + teeAttestationCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -862,8 +1118,488 @@ public Builder mergeFrom( return this; } + private int teeAttestationCase_ = 0; + private java.lang.Object teeAttestation_; + + public TeeAttestationCase getTeeAttestationCase() { + return TeeAttestationCase.forNumber(teeAttestationCase_); + } + + public Builder clearTeeAttestation() { + teeAttestationCase_ = 0; + teeAttestation_ = null; + onChanged(); + return this; + } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation, + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestationOrBuilder> + tdCcelBuilder_; + /** + * + * + *
        +     * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tdCcel field is set. + */ + @java.lang.Override + public boolean hasTdCcel() { + return teeAttestationCase_ == 6; + } + /** + * + * + *
        +     * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tdCcel. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation getTdCcel() { + if (tdCcelBuilder_ == null) { + if (teeAttestationCase_ == 6) { + return (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.getDefaultInstance(); + } else { + if (teeAttestationCase_ == 6) { + return tdCcelBuilder_.getMessage(); + } + return com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTdCcel(com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation value) { + if (tdCcelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teeAttestation_ = value; + onChanged(); + } else { + tdCcelBuilder_.setMessage(value); + } + teeAttestationCase_ = 6; + return this; + } + /** + * + * + *
        +     * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTdCcel( + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.Builder builderForValue) { + if (tdCcelBuilder_ == null) { + teeAttestation_ = builderForValue.build(); + onChanged(); + } else { + tdCcelBuilder_.setMessage(builderForValue.build()); + } + teeAttestationCase_ = 6; + return this; + } + /** + * + * + *
        +     * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTdCcel(com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation value) { + if (tdCcelBuilder_ == null) { + if (teeAttestationCase_ == 6 + && teeAttestation_ + != com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation + .getDefaultInstance()) { + teeAttestation_ = + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.newBuilder( + (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) + teeAttestation_) + .mergeFrom(value) + .buildPartial(); + } else { + teeAttestation_ = value; + } + onChanged(); + } else { + if (teeAttestationCase_ == 6) { + tdCcelBuilder_.mergeFrom(value); + } else { + tdCcelBuilder_.setMessage(value); + } + } + teeAttestationCase_ = 6; + return this; + } + /** + * + * + *
        +     * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTdCcel() { + if (tdCcelBuilder_ == null) { + if (teeAttestationCase_ == 6) { + teeAttestationCase_ = 0; + teeAttestation_ = null; + onChanged(); + } + } else { + if (teeAttestationCase_ == 6) { + teeAttestationCase_ = 0; + teeAttestation_ = null; + } + tdCcelBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.Builder getTdCcelBuilder() { + return getTdCcelFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TdxCcelAttestationOrBuilder + getTdCcelOrBuilder() { + if ((teeAttestationCase_ == 6) && (tdCcelBuilder_ != null)) { + return tdCcelBuilder_.getMessageOrBuilder(); + } else { + if (teeAttestationCase_ == 6) { + return (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation, + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestationOrBuilder> + getTdCcelFieldBuilder() { + if (tdCcelBuilder_ == null) { + if (!(teeAttestationCase_ == 6)) { + teeAttestation_ = + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.getDefaultInstance(); + } + tdCcelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation, + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestationOrBuilder>( + (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) teeAttestation_, + getParentForChildren(), + isClean()); + teeAttestation_ = null; + } + teeAttestationCase_ = 6; + onChanged(); + return tdCcelBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation, + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.SevSnpAttestationOrBuilder> + sevSnpAttestationBuilder_; + /** + * + * + *
        +     * Optional. An SEV-SNP Attestation Report.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sevSnpAttestation field is set. + */ + @java.lang.Override + public boolean hasSevSnpAttestation() { + return teeAttestationCase_ == 7; + } + /** + * + * + *
        +     * Optional. An SEV-SNP Attestation Report.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sevSnpAttestation. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SevSnpAttestation getSevSnpAttestation() { + if (sevSnpAttestationBuilder_ == null) { + if (teeAttestationCase_ == 7) { + return (com.google.cloud.confidentialcomputing.v1.SevSnpAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.getDefaultInstance(); + } else { + if (teeAttestationCase_ == 7) { + return sevSnpAttestationBuilder_.getMessage(); + } + return com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. An SEV-SNP Attestation Report.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSevSnpAttestation( + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation value) { + if (sevSnpAttestationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teeAttestation_ = value; + onChanged(); + } else { + sevSnpAttestationBuilder_.setMessage(value); + } + teeAttestationCase_ = 7; + return this; + } + /** + * + * + *
        +     * Optional. An SEV-SNP Attestation Report.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSevSnpAttestation( + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.Builder builderForValue) { + if (sevSnpAttestationBuilder_ == null) { + teeAttestation_ = builderForValue.build(); + onChanged(); + } else { + sevSnpAttestationBuilder_.setMessage(builderForValue.build()); + } + teeAttestationCase_ = 7; + return this; + } + /** + * + * + *
        +     * Optional. An SEV-SNP Attestation Report.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSevSnpAttestation( + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation value) { + if (sevSnpAttestationBuilder_ == null) { + if (teeAttestationCase_ == 7 + && teeAttestation_ + != com.google.cloud.confidentialcomputing.v1.SevSnpAttestation + .getDefaultInstance()) { + teeAttestation_ = + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.newBuilder( + (com.google.cloud.confidentialcomputing.v1.SevSnpAttestation) teeAttestation_) + .mergeFrom(value) + .buildPartial(); + } else { + teeAttestation_ = value; + } + onChanged(); + } else { + if (teeAttestationCase_ == 7) { + sevSnpAttestationBuilder_.mergeFrom(value); + } else { + sevSnpAttestationBuilder_.setMessage(value); + } + } + teeAttestationCase_ = 7; + return this; + } + /** + * + * + *
        +     * Optional. An SEV-SNP Attestation Report.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSevSnpAttestation() { + if (sevSnpAttestationBuilder_ == null) { + if (teeAttestationCase_ == 7) { + teeAttestationCase_ = 0; + teeAttestation_ = null; + onChanged(); + } + } else { + if (teeAttestationCase_ == 7) { + teeAttestationCase_ = 0; + teeAttestation_ = null; + } + sevSnpAttestationBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Optional. An SEV-SNP Attestation Report.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.Builder + getSevSnpAttestationBuilder() { + return getSevSnpAttestationFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. An SEV-SNP Attestation Report.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SevSnpAttestationOrBuilder + getSevSnpAttestationOrBuilder() { + if ((teeAttestationCase_ == 7) && (sevSnpAttestationBuilder_ != null)) { + return sevSnpAttestationBuilder_.getMessageOrBuilder(); + } else { + if (teeAttestationCase_ == 7) { + return (com.google.cloud.confidentialcomputing.v1.SevSnpAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. An SEV-SNP Attestation Report.
        +     * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation, + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.SevSnpAttestationOrBuilder> + getSevSnpAttestationFieldBuilder() { + if (sevSnpAttestationBuilder_ == null) { + if (!(teeAttestationCase_ == 7)) { + teeAttestation_ = + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.getDefaultInstance(); + } + sevSnpAttestationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation, + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.SevSnpAttestationOrBuilder>( + (com.google.cloud.confidentialcomputing.v1.SevSnpAttestation) teeAttestation_, + getParentForChildren(), + isClean()); + teeAttestation_ = null; + } + teeAttestationCase_ = 7; + onChanged(); + return sevSnpAttestationBuilder_; + } + private java.lang.Object challenge_ = ""; /** * @@ -938,7 +1674,7 @@ public Builder setChallenge(java.lang.String value) { throw new NullPointerException(); } challenge_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -959,7 +1695,7 @@ public Builder setChallenge(java.lang.String value) { */ public Builder clearChallenge() { challenge_ = getDefaultInstance().getChallenge(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -985,7 +1721,7 @@ public Builder setChallengeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); challenge_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1011,7 +1747,7 @@ public Builder setChallengeBytes(com.google.protobuf.ByteString value) { * @return Whether the gcpCredentials field is set. */ public boolean hasGcpCredentials() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1058,7 +1794,7 @@ public Builder setGcpCredentials( } else { gcpCredentialsBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1081,7 +1817,7 @@ public Builder setGcpCredentials( } else { gcpCredentialsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1100,7 +1836,7 @@ public Builder setGcpCredentials( public Builder mergeGcpCredentials( com.google.cloud.confidentialcomputing.v1.GcpCredentials value) { if (gcpCredentialsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000008) != 0) && gcpCredentials_ != null && gcpCredentials_ != com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance()) { @@ -1112,7 +1848,7 @@ public Builder mergeGcpCredentials( gcpCredentialsBuilder_.mergeFrom(value); } if (gcpCredentials_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -1130,7 +1866,7 @@ public Builder mergeGcpCredentials( *
        */ public Builder clearGcpCredentials() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); gcpCredentials_ = null; if (gcpCredentialsBuilder_ != null) { gcpCredentialsBuilder_.dispose(); @@ -1153,7 +1889,7 @@ public Builder clearGcpCredentials() { */ public com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder getGcpCredentialsBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return getGcpCredentialsFieldBuilder().getBuilder(); } @@ -1229,7 +1965,7 @@ public Builder clearGcpCredentials() { * @return Whether the tpmAttestation field is set. */ public boolean hasTpmAttestation() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1276,7 +2012,7 @@ public Builder setTpmAttestation( } else { tpmAttestationBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1299,7 +2035,7 @@ public Builder setTpmAttestation( } else { tpmAttestationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1318,7 +2054,7 @@ public Builder setTpmAttestation( public Builder mergeTpmAttestation( com.google.cloud.confidentialcomputing.v1.TpmAttestation value) { if (tpmAttestationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000010) != 0) && tpmAttestation_ != null && tpmAttestation_ != com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance()) { @@ -1330,7 +2066,7 @@ public Builder mergeTpmAttestation( tpmAttestationBuilder_.mergeFrom(value); } if (tpmAttestation_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -1348,7 +2084,7 @@ public Builder mergeTpmAttestation( *
        */ public Builder clearTpmAttestation() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); tpmAttestation_ = null; if (tpmAttestationBuilder_ != null) { tpmAttestationBuilder_.dispose(); @@ -1371,7 +2107,7 @@ public Builder clearTpmAttestation() { */ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder getTpmAttestationBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return getTpmAttestationFieldBuilder().getBuilder(); } @@ -1446,7 +2182,7 @@ public Builder clearTpmAttestation() { * @return Whether the confidentialSpaceInfo field is set. */ public boolean hasConfidentialSpaceInfo() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1492,7 +2228,7 @@ public Builder setConfidentialSpaceInfo( } else { confidentialSpaceInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1514,7 +2250,7 @@ public Builder setConfidentialSpaceInfo( } else { confidentialSpaceInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1532,7 +2268,7 @@ public Builder setConfidentialSpaceInfo( public Builder mergeConfidentialSpaceInfo( com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo value) { if (confidentialSpaceInfoBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000020) != 0) && confidentialSpaceInfo_ != null && confidentialSpaceInfo_ != com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo @@ -1545,7 +2281,7 @@ public Builder mergeConfidentialSpaceInfo( confidentialSpaceInfoBuilder_.mergeFrom(value); } if (confidentialSpaceInfo_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -1562,7 +2298,7 @@ public Builder mergeConfidentialSpaceInfo( * */ public Builder clearConfidentialSpaceInfo() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); confidentialSpaceInfo_ = null; if (confidentialSpaceInfoBuilder_ != null) { confidentialSpaceInfoBuilder_.dispose(); @@ -1584,7 +2320,7 @@ public Builder clearConfidentialSpaceInfo() { */ public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder getConfidentialSpaceInfoBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return getConfidentialSpaceInfoFieldBuilder().getBuilder(); } @@ -1658,7 +2394,7 @@ public Builder clearConfidentialSpaceInfo() { * @return Whether the tokenOptions field is set. */ public boolean hasTokenOptions() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1704,7 +2440,7 @@ public Builder setTokenOptions(com.google.cloud.confidentialcomputing.v1.TokenOp } else { tokenOptionsBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1727,7 +2463,7 @@ public Builder setTokenOptions( } else { tokenOptionsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1745,7 +2481,7 @@ public Builder setTokenOptions( */ public Builder mergeTokenOptions(com.google.cloud.confidentialcomputing.v1.TokenOptions value) { if (tokenOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000040) != 0) && tokenOptions_ != null && tokenOptions_ != com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance()) { @@ -1757,7 +2493,7 @@ public Builder mergeTokenOptions(com.google.cloud.confidentialcomputing.v1.Token tokenOptionsBuilder_.mergeFrom(value); } if (tokenOptions_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -1775,7 +2511,7 @@ public Builder mergeTokenOptions(com.google.cloud.confidentialcomputing.v1.Token * */ public Builder clearTokenOptions() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); tokenOptions_ = null; if (tokenOptionsBuilder_ != null) { tokenOptionsBuilder_.dispose(); @@ -1797,7 +2533,7 @@ public Builder clearTokenOptions() { * */ public com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder getTokenOptionsBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return getTokenOptionsFieldBuilder().getBuilder(); } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java index 1322fa8d505b..12bbe82715b5 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java @@ -24,6 +24,89 @@ public interface VerifyAttestationRequestOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
        +   * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +   * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tdCcel field is set. + */ + boolean hasTdCcel(); + /** + * + * + *
        +   * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +   * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tdCcel. + */ + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation getTdCcel(); + /** + * + * + *
        +   * Optional. A TDX with CCEL and RTMR Attestation Quote.
        +   * 
        + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestationOrBuilder getTdCcelOrBuilder(); + + /** + * + * + *
        +   * Optional. An SEV-SNP Attestation Report.
        +   * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sevSnpAttestation field is set. + */ + boolean hasSevSnpAttestation(); + /** + * + * + *
        +   * Optional. An SEV-SNP Attestation Report.
        +   * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sevSnpAttestation. + */ + com.google.cloud.confidentialcomputing.v1.SevSnpAttestation getSevSnpAttestation(); + /** + * + * + *
        +   * Optional. An SEV-SNP Attestation Report.
        +   * 
        + * + * + * .google.cloud.confidentialcomputing.v1.SevSnpAttestation sev_snp_attestation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.SevSnpAttestationOrBuilder + getSevSnpAttestationOrBuilder(); + /** * * @@ -230,4 +313,7 @@ public interface VerifyAttestationRequestOrBuilder * */ com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder getTokenOptionsOrBuilder(); + + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.TeeAttestationCase + getTeeAttestationCase(); } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto index 09a729757159..89e6a2394b82 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto @@ -133,6 +133,17 @@ message CreateChallengeRequest { // A request for an OIDC token, providing all the necessary information needed // for this service to verify the plaform state of the requestor. message VerifyAttestationRequest { + // An optional tee attestation report, used to populate hardware rooted + // claims. + oneof tee_attestation { + // Optional. A TDX with CCEL and RTMR Attestation Quote. + TdxCcelAttestation td_ccel = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An SEV-SNP Attestation Report. + SevSnpAttestation sev_snp_attestation = 7 + [(google.api.field_behavior) = OPTIONAL]; + } + // Required. The name of the Challenge whose nonce was used to generate the // attestation, in the format `projects/*/locations/*/challenges/*`. The // provided Challenge will be consumed, and cannot be used again. @@ -160,6 +171,41 @@ message VerifyAttestationRequest { TokenOptions token_options = 5 [(google.api.field_behavior) = OPTIONAL]; } +// A TDX Attestation quote. +message TdxCcelAttestation { + // Optional. The Confidential Computing Event Log (CCEL) ACPI table. Formatted + // as described in the ACPI Specification 6.5. + bytes ccel_acpi_table = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The CCEL event log. Formatted as described in the UEFI 2.10. + bytes ccel_data = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An Event Log containing additional events measured into the RTMR + // that are not already present in the CCEL. + bytes canonical_event_log = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The TDX attestation quote from the guest. It contains the RTMR + // values. + bytes td_quote = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// An SEV-SNP Attestation Report. +// Contains the attestation report and the certificate bundle that the client +// collects. +message SevSnpAttestation { + // Optional. The SEV-SNP Attestation Report + // Format is in revision 1.55, §7.3 Attestation, Table 22. ATTESTATION_REPORT + // Structure in this document: + // https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56860.pdf + bytes report = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Certificate bundle defined in the GHCB protocol definition + // Format is documented in GHCB revision 2.03, section 4.1.8.1 struct + // cert_table in this document: + // https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/56421.pdf + bytes aux_blob = 2 [(google.api.field_behavior) = OPTIONAL]; +} + // A response once an attestation has been successfully verified, containing a // signed OIDC token. message VerifyAttestationResponse { diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index a50083ca5e72..a1cb31b0fa1d 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/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-contact-center-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.46.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-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStubSettings.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStubSettings.java index 2ae6603c2a43..9cf7a2aecccf 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStubSettings.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStubSettings.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; @@ -799,6 +800,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "contactcenterinsights.googleapis.com:443"; } diff --git a/java-container/README.md b/java-container/README.md index a8de8f3a2a18..6ebdacbbe994 100644 --- a/java-container/README.md +++ b/java-container/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-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java index 03c7bdaf9f4c..c94e4e033b21 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.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; @@ -468,6 +469,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "container.googleapis.com:443"; } diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java index 2faec31dee65..78e3d3687ea8 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.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; @@ -470,6 +471,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "container.googleapis.com:443"; } diff --git a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json index c58c0959d821..ab9a5a506678 100644 --- a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json +++ b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json @@ -3068,6 +3068,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.RayClusterLoggingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.RayClusterLoggingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.RayClusterMonitoringConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.RayClusterMonitoringConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.RayOperatorConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.RayOperatorConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.RecurringTimeWindow", "queryAllDeclaredConstructors": true, diff --git a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json index c772f40846a6..624b7be45ae6 100644 --- a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json +++ b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json @@ -3446,6 +3446,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1beta1.RayClusterLoggingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1beta1.RayClusterLoggingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1beta1.RayClusterMonitoringConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1beta1.RayClusterMonitoringConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1beta1.RayOperatorConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1beta1.RayOperatorConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1beta1.RecurringTimeWindow", "queryAllDeclaredConstructors": true, diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfig.java index c9c0252cdada..5da874b9ed37 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfig.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Name of the subnetwork where the additional pod network belongs
        +   * Name of the subnetwork where the additional pod network belongs.
            * 
        * * string subnetwork = 1; @@ -97,7 +97,7 @@ public java.lang.String getSubnetwork() { * * *
        -   * Name of the subnetwork where the additional pod network belongs
        +   * Name of the subnetwork where the additional pod network belongs.
            * 
        * * string subnetwork = 1; @@ -126,7 +126,7 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * *
            * The name of the secondary range on the subnet which provides IP address for
        -   * this pod range
        +   * this pod range.
            * 
        * * string secondary_pod_range = 2; @@ -150,7 +150,7 @@ public java.lang.String getSecondaryPodRange() { * *
            * The name of the secondary range on the subnet which provides IP address for
        -   * this pod range
        +   * this pod range.
            * 
        * * string secondary_pod_range = 2; @@ -176,7 +176,7 @@ public com.google.protobuf.ByteString getSecondaryPodRangeBytes() { * * *
        -   * The maximum number of pods per node which use this pod network
        +   * The maximum number of pods per node which use this pod network.
            * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; @@ -191,7 +191,7 @@ public boolean hasMaxPodsPerNode() { * * *
        -   * The maximum number of pods per node which use this pod network
        +   * The maximum number of pods per node which use this pod network.
            * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; @@ -208,7 +208,7 @@ public com.google.container.v1.MaxPodsConstraint getMaxPodsPerNode() { * * *
        -   * The maximum number of pods per node which use this pod network
        +   * The maximum number of pods per node which use this pod network.
            * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; @@ -636,7 +636,7 @@ public Builder mergeFrom( * * *
        -     * Name of the subnetwork where the additional pod network belongs
        +     * Name of the subnetwork where the additional pod network belongs.
              * 
        * * string subnetwork = 1; @@ -658,7 +658,7 @@ public java.lang.String getSubnetwork() { * * *
        -     * Name of the subnetwork where the additional pod network belongs
        +     * Name of the subnetwork where the additional pod network belongs.
              * 
        * * string subnetwork = 1; @@ -680,7 +680,7 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * * *
        -     * Name of the subnetwork where the additional pod network belongs
        +     * Name of the subnetwork where the additional pod network belongs.
              * 
        * * string subnetwork = 1; @@ -701,7 +701,7 @@ public Builder setSubnetwork(java.lang.String value) { * * *
        -     * Name of the subnetwork where the additional pod network belongs
        +     * Name of the subnetwork where the additional pod network belongs.
              * 
        * * string subnetwork = 1; @@ -718,7 +718,7 @@ public Builder clearSubnetwork() { * * *
        -     * Name of the subnetwork where the additional pod network belongs
        +     * Name of the subnetwork where the additional pod network belongs.
              * 
        * * string subnetwork = 1; @@ -743,7 +743,7 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { * *
              * The name of the secondary range on the subnet which provides IP address for
        -     * this pod range
        +     * this pod range.
              * 
        * * string secondary_pod_range = 2; @@ -766,7 +766,7 @@ public java.lang.String getSecondaryPodRange() { * *
              * The name of the secondary range on the subnet which provides IP address for
        -     * this pod range
        +     * this pod range.
              * 
        * * string secondary_pod_range = 2; @@ -789,7 +789,7 @@ public com.google.protobuf.ByteString getSecondaryPodRangeBytes() { * *
              * The name of the secondary range on the subnet which provides IP address for
        -     * this pod range
        +     * this pod range.
              * 
        * * string secondary_pod_range = 2; @@ -811,7 +811,7 @@ public Builder setSecondaryPodRange(java.lang.String value) { * *
              * The name of the secondary range on the subnet which provides IP address for
        -     * this pod range
        +     * this pod range.
              * 
        * * string secondary_pod_range = 2; @@ -829,7 +829,7 @@ public Builder clearSecondaryPodRange() { * *
              * The name of the secondary range on the subnet which provides IP address for
        -     * this pod range
        +     * this pod range.
              * 
        * * string secondary_pod_range = 2; @@ -858,7 +858,7 @@ public Builder setSecondaryPodRangeBytes(com.google.protobuf.ByteString value) { * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; @@ -872,7 +872,7 @@ public boolean hasMaxPodsPerNode() { * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; @@ -892,7 +892,7 @@ public com.google.container.v1.MaxPodsConstraint getMaxPodsPerNode() { * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; @@ -914,7 +914,7 @@ public Builder setMaxPodsPerNode(com.google.container.v1.MaxPodsConstraint value * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; @@ -934,7 +934,7 @@ public Builder setMaxPodsPerNode( * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; @@ -961,7 +961,7 @@ public Builder mergeMaxPodsPerNode(com.google.container.v1.MaxPodsConstraint val * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; @@ -980,7 +980,7 @@ public Builder clearMaxPodsPerNode() { * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; @@ -994,7 +994,7 @@ public com.google.container.v1.MaxPodsConstraint.Builder getMaxPodsPerNodeBuilde * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; @@ -1012,7 +1012,7 @@ public com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsPerNodeOrBui * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfigOrBuilder.java index 9dccce4e39ce..d25665827092 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfigOrBuilder.java @@ -28,7 +28,7 @@ public interface AdditionalPodNetworkConfigOrBuilder * * *
        -   * Name of the subnetwork where the additional pod network belongs
        +   * Name of the subnetwork where the additional pod network belongs.
            * 
        * * string subnetwork = 1; @@ -40,7 +40,7 @@ public interface AdditionalPodNetworkConfigOrBuilder * * *
        -   * Name of the subnetwork where the additional pod network belongs
        +   * Name of the subnetwork where the additional pod network belongs.
            * 
        * * string subnetwork = 1; @@ -54,7 +54,7 @@ public interface AdditionalPodNetworkConfigOrBuilder * *
            * The name of the secondary range on the subnet which provides IP address for
        -   * this pod range
        +   * this pod range.
            * 
        * * string secondary_pod_range = 2; @@ -67,7 +67,7 @@ public interface AdditionalPodNetworkConfigOrBuilder * *
            * The name of the secondary range on the subnet which provides IP address for
        -   * this pod range
        +   * this pod range.
            * 
        * * string secondary_pod_range = 2; @@ -80,7 +80,7 @@ public interface AdditionalPodNetworkConfigOrBuilder * * *
        -   * The maximum number of pods per node which use this pod network
        +   * The maximum number of pods per node which use this pod network.
            * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; @@ -92,7 +92,7 @@ public interface AdditionalPodNetworkConfigOrBuilder * * *
        -   * The maximum number of pods per node which use this pod network
        +   * The maximum number of pods per node which use this pod network.
            * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; @@ -104,7 +104,7 @@ public interface AdditionalPodNetworkConfigOrBuilder * * *
        -   * The maximum number of pods per node which use this pod network
        +   * The maximum number of pods per node which use this pod network.
            * 
        * * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfig.java index 4867e5c060d6..f29c7d3f5341 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfig.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getPodRangeNamesBytes(int index) { * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -152,7 +152,7 @@ public java.util.List getPodRangeInfoList() { * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -168,7 +168,7 @@ public java.util.List getPodRangeInfoList() { * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -183,7 +183,7 @@ public int getPodRangeInfoCount() { * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -198,7 +198,7 @@ public com.google.container.v1.RangeInfo getPodRangeInfo(int index) { * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -833,7 +833,7 @@ private void ensurePodRangeInfoIsMutable() { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -851,7 +851,7 @@ public java.util.List getPodRangeInfoList() { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -869,7 +869,7 @@ public int getPodRangeInfoCount() { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -887,7 +887,7 @@ public com.google.container.v1.RangeInfo getPodRangeInfo(int index) { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -911,7 +911,7 @@ public Builder setPodRangeInfo(int index, com.google.container.v1.RangeInfo valu * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -933,7 +933,7 @@ public Builder setPodRangeInfo( * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -957,7 +957,7 @@ public Builder addPodRangeInfo(com.google.container.v1.RangeInfo value) { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -981,7 +981,7 @@ public Builder addPodRangeInfo(int index, com.google.container.v1.RangeInfo valu * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1002,7 +1002,7 @@ public Builder addPodRangeInfo(com.google.container.v1.RangeInfo.Builder builder * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1024,7 +1024,7 @@ public Builder addPodRangeInfo( * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1046,7 +1046,7 @@ public Builder addAllPodRangeInfo( * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1067,7 +1067,7 @@ public Builder clearPodRangeInfo() { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1088,7 +1088,7 @@ public Builder removePodRangeInfo(int index) { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1102,7 +1102,7 @@ public com.google.container.v1.RangeInfo.Builder getPodRangeInfoBuilder(int inde * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1120,7 +1120,7 @@ public com.google.container.v1.RangeInfoOrBuilder getPodRangeInfoOrBuilder(int i * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1139,7 +1139,7 @@ public com.google.container.v1.RangeInfoOrBuilder getPodRangeInfoOrBuilder(int i * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1154,7 +1154,7 @@ public com.google.container.v1.RangeInfo.Builder addPodRangeInfoBuilder() { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1169,7 +1169,7 @@ public com.google.container.v1.RangeInfo.Builder addPodRangeInfoBuilder(int inde * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfigOrBuilder.java index 83e1a379368c..2e783fa51072 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfigOrBuilder.java @@ -79,7 +79,7 @@ public interface AdditionalPodRangesConfigOrBuilder * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -91,7 +91,7 @@ public interface AdditionalPodRangesConfigOrBuilder * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -103,7 +103,7 @@ public interface AdditionalPodRangesConfigOrBuilder * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -115,7 +115,7 @@ public interface AdditionalPodRangesConfigOrBuilder * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -128,7 +128,7 @@ public interface AdditionalPodRangesConfigOrBuilder * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java index 2118f74946ad..5b1f5bd69be9 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java @@ -190,7 +190,7 @@ public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscal * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1274 + * google/container/v1/cluster_service.proto;l=1275 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Override @@ -213,7 +213,7 @@ public boolean hasKubernetesDashboard() { *
        * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1274 + * google/container/v1/cluster_service.proto;l=1275 * @return The kubernetesDashboard. */ @java.lang.Override @@ -728,6 +728,62 @@ public com.google.container.v1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBu : statefulHaConfig_; } + public static final int RAY_OPERATOR_CONFIG_FIELD_NUMBER = 21; + private com.google.container.v1.RayOperatorConfig rayOperatorConfig_; + /** + * + * + *
        +   * Optional. Configuration for Ray Operator addon.
        +   * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayOperatorConfig field is set. + */ + @java.lang.Override + public boolean hasRayOperatorConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
        +   * Optional. Configuration for Ray Operator addon.
        +   * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayOperatorConfig. + */ + @java.lang.Override + public com.google.container.v1.RayOperatorConfig getRayOperatorConfig() { + return rayOperatorConfig_ == null + ? com.google.container.v1.RayOperatorConfig.getDefaultInstance() + : rayOperatorConfig_; + } + /** + * + * + *
        +   * Optional. Configuration for Ray Operator addon.
        +   * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.container.v1.RayOperatorConfigOrBuilder getRayOperatorConfigOrBuilder() { + return rayOperatorConfig_ == null + ? com.google.container.v1.RayOperatorConfig.getDefaultInstance() + : rayOperatorConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -778,6 +834,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(18, getStatefulHaConfig()); } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(21, getRayOperatorConfig()); + } getUnknownFields().writeTo(output); } @@ -832,6 +891,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getStatefulHaConfig()); } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getRayOperatorConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -898,6 +960,10 @@ public boolean equals(final java.lang.Object obj) { if (hasStatefulHaConfig()) { if (!getStatefulHaConfig().equals(other.getStatefulHaConfig())) return false; } + if (hasRayOperatorConfig() != other.hasRayOperatorConfig()) return false; + if (hasRayOperatorConfig()) { + if (!getRayOperatorConfig().equals(other.getRayOperatorConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -957,6 +1023,10 @@ public int hashCode() { hash = (37 * hash) + STATEFUL_HA_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getStatefulHaConfig().hashCode(); } + if (hasRayOperatorConfig()) { + hash = (37 * hash) + RAY_OPERATOR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRayOperatorConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1109,6 +1179,7 @@ private void maybeForceBuilderInitialization() { getGkeBackupAgentConfigFieldBuilder(); getGcsFuseCsiDriverConfigFieldBuilder(); getStatefulHaConfigFieldBuilder(); + getRayOperatorConfigFieldBuilder(); } } @@ -1176,6 +1247,11 @@ public Builder clear() { statefulHaConfigBuilder_.dispose(); statefulHaConfigBuilder_ = null; } + rayOperatorConfig_ = null; + if (rayOperatorConfigBuilder_ != null) { + rayOperatorConfigBuilder_.dispose(); + rayOperatorConfigBuilder_ = null; + } return this; } @@ -1290,6 +1366,13 @@ private void buildPartial0(com.google.container.v1.AddonsConfig result) { statefulHaConfigBuilder_ == null ? statefulHaConfig_ : statefulHaConfigBuilder_.build(); to_bitField0_ |= 0x00000800; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.rayOperatorConfig_ = + rayOperatorConfigBuilder_ == null + ? rayOperatorConfig_ + : rayOperatorConfigBuilder_.build(); + to_bitField0_ |= 0x00001000; + } result.bitField0_ |= to_bitField0_; } @@ -1374,6 +1457,9 @@ public Builder mergeFrom(com.google.container.v1.AddonsConfig other) { if (other.hasStatefulHaConfig()) { mergeStatefulHaConfig(other.getStatefulHaConfig()); } + if (other.hasRayOperatorConfig()) { + mergeRayOperatorConfig(other.getRayOperatorConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1483,6 +1569,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 146 + case 170: + { + input.readMessage( + getRayOperatorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1928,7 +2021,7 @@ public Builder clearHorizontalPodAutoscaling() { *
        * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1274 + * google/container/v1/cluster_service.proto;l=1275 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Deprecated @@ -1950,7 +2043,7 @@ public boolean hasKubernetesDashboard() { *
        * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1274 + * google/container/v1/cluster_service.proto;l=1275 * @return The kubernetesDashboard. */ @java.lang.Deprecated @@ -3927,6 +4020,211 @@ public com.google.container.v1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBu return statefulHaConfigBuilder_; } + private com.google.container.v1.RayOperatorConfig rayOperatorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RayOperatorConfig, + com.google.container.v1.RayOperatorConfig.Builder, + com.google.container.v1.RayOperatorConfigOrBuilder> + rayOperatorConfigBuilder_; + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayOperatorConfig field is set. + */ + public boolean hasRayOperatorConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayOperatorConfig. + */ + public com.google.container.v1.RayOperatorConfig getRayOperatorConfig() { + if (rayOperatorConfigBuilder_ == null) { + return rayOperatorConfig_ == null + ? com.google.container.v1.RayOperatorConfig.getDefaultInstance() + : rayOperatorConfig_; + } else { + return rayOperatorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayOperatorConfig(com.google.container.v1.RayOperatorConfig value) { + if (rayOperatorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rayOperatorConfig_ = value; + } else { + rayOperatorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayOperatorConfig( + com.google.container.v1.RayOperatorConfig.Builder builderForValue) { + if (rayOperatorConfigBuilder_ == null) { + rayOperatorConfig_ = builderForValue.build(); + } else { + rayOperatorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRayOperatorConfig(com.google.container.v1.RayOperatorConfig value) { + if (rayOperatorConfigBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && rayOperatorConfig_ != null + && rayOperatorConfig_ + != com.google.container.v1.RayOperatorConfig.getDefaultInstance()) { + getRayOperatorConfigBuilder().mergeFrom(value); + } else { + rayOperatorConfig_ = value; + } + } else { + rayOperatorConfigBuilder_.mergeFrom(value); + } + if (rayOperatorConfig_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRayOperatorConfig() { + bitField0_ = (bitField0_ & ~0x00001000); + rayOperatorConfig_ = null; + if (rayOperatorConfigBuilder_ != null) { + rayOperatorConfigBuilder_.dispose(); + rayOperatorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1.RayOperatorConfig.Builder getRayOperatorConfigBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getRayOperatorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1.RayOperatorConfigOrBuilder getRayOperatorConfigOrBuilder() { + if (rayOperatorConfigBuilder_ != null) { + return rayOperatorConfigBuilder_.getMessageOrBuilder(); + } else { + return rayOperatorConfig_ == null + ? com.google.container.v1.RayOperatorConfig.getDefaultInstance() + : rayOperatorConfig_; + } + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RayOperatorConfig, + com.google.container.v1.RayOperatorConfig.Builder, + com.google.container.v1.RayOperatorConfigOrBuilder> + getRayOperatorConfigFieldBuilder() { + if (rayOperatorConfigBuilder_ == null) { + rayOperatorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RayOperatorConfig, + com.google.container.v1.RayOperatorConfig.Builder, + com.google.container.v1.RayOperatorConfigOrBuilder>( + getRayOperatorConfig(), getParentForChildren(), isClean()); + rayOperatorConfig_ = null; + } + return rayOperatorConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java index 3d911d360e5f..c57b5b470898 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java @@ -118,7 +118,7 @@ public interface AddonsConfigOrBuilder *
        * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1274 + * google/container/v1/cluster_service.proto;l=1275 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Deprecated @@ -138,7 +138,7 @@ public interface AddonsConfigOrBuilder *
        * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1274 + * google/container/v1/cluster_service.proto;l=1275 * @return The kubernetesDashboard. */ @java.lang.Deprecated @@ -503,4 +503,45 @@ public interface AddonsConfigOrBuilder *
        */ com.google.container.v1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBuilder(); + + /** + * + * + *
        +   * Optional. Configuration for Ray Operator addon.
        +   * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayOperatorConfig field is set. + */ + boolean hasRayOperatorConfig(); + /** + * + * + *
        +   * Optional. Configuration for Ray Operator addon.
        +   * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayOperatorConfig. + */ + com.google.container.v1.RayOperatorConfig getRayOperatorConfig(); + /** + * + * + *
        +   * Optional. Configuration for Ray Operator addon.
        +   * 
        + * + * + * .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.container.v1.RayOperatorConfigOrBuilder getRayOperatorConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java index 4c56ff257307..8bace1d32f35 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the approximate start time for the upgrades, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The autoUpgradeStartTime. */ @@ -98,12 +98,12 @@ public java.lang.String getAutoUpgradeStartTime() { * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the approximate start time for the upgrades, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for autoUpgradeStartTime. */ @@ -128,11 +128,11 @@ public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the description of the upgrade.
            * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The description. */ @@ -152,11 +152,11 @@ public java.lang.String getDescription() { * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the description of the upgrade.
            * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for description. */ @@ -544,12 +544,12 @@ public Builder mergeFrom( * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the approximate start time for the upgrades, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The autoUpgradeStartTime. */ @@ -568,12 +568,12 @@ public java.lang.String getAutoUpgradeStartTime() { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the approximate start time for the upgrades, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for autoUpgradeStartTime. */ @@ -592,12 +592,12 @@ public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the approximate start time for the upgrades, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The autoUpgradeStartTime to set. * @return This builder for chaining. @@ -615,12 +615,12 @@ public Builder setAutoUpgradeStartTime(java.lang.String value) { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the approximate start time for the upgrades, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -634,12 +634,12 @@ public Builder clearAutoUpgradeStartTime() { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the approximate start time for the upgrades, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for autoUpgradeStartTime to set. * @return This builder for chaining. @@ -660,11 +660,11 @@ public Builder setAutoUpgradeStartTimeBytes(com.google.protobuf.ByteString value * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the description of the upgrade.
              * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The description. */ @@ -683,11 +683,11 @@ public java.lang.String getDescription() { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the description of the upgrade.
              * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for description. */ @@ -706,11 +706,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the description of the upgrade.
              * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The description to set. * @return This builder for chaining. @@ -728,11 +728,11 @@ public Builder setDescription(java.lang.String value) { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the description of the upgrade.
              * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -746,11 +746,11 @@ public Builder clearDescription() { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the description of the upgrade.
              * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for description to set. * @return This builder for chaining. diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java index f2f27d2ad41c..76508379f901 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java @@ -28,12 +28,12 @@ public interface AutoUpgradeOptionsOrBuilder * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the approximate start time for the upgrades, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The autoUpgradeStartTime. */ @@ -42,12 +42,12 @@ public interface AutoUpgradeOptionsOrBuilder * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the approximate start time for the upgrades, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for autoUpgradeStartTime. */ @@ -57,11 +57,11 @@ public interface AutoUpgradeOptionsOrBuilder * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the description of the upgrade.
            * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The description. */ @@ -70,11 +70,11 @@ public interface AutoUpgradeOptionsOrBuilder * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the description of the upgrade.
            * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for description. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java index 40d5f70f563c..c84c1d8088f0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java @@ -310,7 +310,7 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4067 + * deprecated. See google/container/v1/cluster_service.proto;l=4095 * @return The minCpuPlatform. */ @java.lang.Override @@ -346,7 +346,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4067 + * deprecated. See google/container/v1/cluster_service.proto;l=4095 * @return The bytes for minCpuPlatform. */ @java.lang.Override @@ -1963,7 +1963,7 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4067 + * deprecated. See google/container/v1/cluster_service.proto;l=4095 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -1998,7 +1998,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4067 + * deprecated. See google/container/v1/cluster_service.proto;l=4095 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated @@ -2033,7 +2033,7 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4067 + * deprecated. See google/container/v1/cluster_service.proto;l=4095 * @param value The minCpuPlatform to set. * @return This builder for chaining. */ @@ -2067,7 +2067,7 @@ public Builder setMinCpuPlatform(java.lang.String value) { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4067 + * deprecated. See google/container/v1/cluster_service.proto;l=4095 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2097,7 +2097,7 @@ public Builder clearMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4067 + * deprecated. See google/container/v1/cluster_service.proto;l=4095 * @param value The bytes for minCpuPlatform to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java index 8ea9e72dfbb5..2c58eb45c737 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -190,7 +190,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4067 + * deprecated. See google/container/v1/cluster_service.proto;l=4095 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -215,7 +215,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=4067 + * deprecated. See google/container/v1/cluster_service.proto;l=4095 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java index f9b3c7c878c1..513664b63ca2 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java @@ -238,7 +238,7 @@ private EvaluationMode(int value) { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1528 + * google/container/v1/cluster_service.proto;l=1547 * @return The enabled. */ @java.lang.Override @@ -664,7 +664,7 @@ public Builder mergeFrom( * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1528 + * google/container/v1/cluster_service.proto;l=1547 * @return The enabled. */ @java.lang.Override @@ -684,7 +684,7 @@ public boolean getEnabled() { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1528 + * google/container/v1/cluster_service.proto;l=1547 * @param value The enabled to set. * @return This builder for chaining. */ @@ -708,7 +708,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1528 + * google/container/v1/cluster_service.proto;l=1547 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java index 6554634b35e3..ce376dca5975 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java @@ -36,7 +36,7 @@ public interface BinaryAuthorizationOrBuilder * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1528 + * google/container/v1/cluster_service.proto;l=1547 * @return The enabled. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java index 4d05bc475af6..e06554c23b0d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3236 + * google/container/v1/cluster_service.proto;l=3261 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3236 + * google/container/v1/cluster_service.proto;l=3261 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3267 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3267 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3246 + * google/container/v1/cluster_service.proto;l=3271 * @return The operationId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3246 + * google/container/v1/cluster_service.proto;l=3271 * @return The bytes for operationId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3236 + * google/container/v1/cluster_service.proto;l=3261 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3236 + * google/container/v1/cluster_service.proto;l=3261 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3236 + * google/container/v1/cluster_service.proto;l=3261 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3236 + * google/container/v1/cluster_service.proto;l=3261 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3236 + * google/container/v1/cluster_service.proto;l=3261 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3267 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3267 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3267 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3267 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3267 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3246 + * google/container/v1/cluster_service.proto;l=3271 * @return The operationId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3246 + * google/container/v1/cluster_service.proto;l=3271 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3246 + * google/container/v1/cluster_service.proto;l=3271 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setOperationId(java.lang.String value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3246 + * google/container/v1/cluster_service.proto;l=3271 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3246 + * google/container/v1/cluster_service.proto;l=3271 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java index 1de9bc9f9e6e..49708d635a16 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CancelOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3236 + * google/container/v1/cluster_service.proto;l=3261 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CancelOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3236 + * google/container/v1/cluster_service.proto;l=3261 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3267 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3242 + * google/container/v1/cluster_service.proto;l=3267 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface CancelOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3246 + * google/container/v1/cluster_service.proto;l=3271 * @return The operationId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface CancelOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3246 + * google/container/v1/cluster_service.proto;l=3271 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java index 6b77580fabc3..049b18269a47 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java @@ -492,7 +492,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1757 + * google/container/v1/cluster_service.proto;l=1775 * @return The initialNodeCount. */ @java.lang.Override @@ -523,7 +523,7 @@ public int getInitialNodeCount() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1770 + * google/container/v1/cluster_service.proto;l=1788 * @return Whether the nodeConfig field is set. */ @java.lang.Override @@ -551,7 +551,7 @@ public boolean hasNodeConfig() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1770 + * google/container/v1/cluster_service.proto;l=1788 * @return The nodeConfig. */ @java.lang.Override @@ -2532,10 +2532,10 @@ public com.google.container.v1.IdentityServiceConfig getIdentityServiceConfig() * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -2555,10 +2555,10 @@ public java.lang.String getSelfLink() { * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -2583,15 +2583,15 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * cluster resides. This field is deprecated, use location instead.
            * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1941 + * google/container/v1/cluster_service.proto;l=1959 * @return The zone. */ @java.lang.Override @@ -2611,15 +2611,15 @@ public java.lang.String getZone() { * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * cluster resides. This field is deprecated, use location instead.
            * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1941 + * google/container/v1/cluster_service.proto;l=1959 * @return The bytes for zone. */ @java.lang.Override @@ -2644,7 +2644,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
        -   * [Output only] The IP address of this cluster's master endpoint.
        +   * Output only. The IP address of this cluster's master endpoint.
            * The endpoint can be accessed from the internet at
            * `https://username:password@endpoint/`.
            *
        @@ -2652,7 +2652,7 @@ public com.google.protobuf.ByteString getZoneBytes() {
            * password information.
            * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The endpoint. */ @@ -2672,7 +2672,7 @@ public java.lang.String getEndpoint() { * * *
        -   * [Output only] The IP address of this cluster's master endpoint.
        +   * Output only. The IP address of this cluster's master endpoint.
            * The endpoint can be accessed from the internet at
            * `https://username:password@endpoint/`.
            *
        @@ -2680,7 +2680,7 @@ public java.lang.String getEndpoint() {
            * password information.
            * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for endpoint. */ @@ -2780,10 +2780,10 @@ public com.google.protobuf.ByteString getInitialClusterVersionBytes() { * * *
        -   * [Output only] The current software version of the master endpoint.
        +   * Output only. The current software version of the master endpoint.
            * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The currentMasterVersion. */ @@ -2803,10 +2803,10 @@ public java.lang.String getCurrentMasterVersion() { * * *
        -   * [Output only] The current software version of the master endpoint.
        +   * Output only. The current software version of the master endpoint.
            * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for currentMasterVersion. */ @@ -2831,17 +2831,19 @@ public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { * * *
        -   * [Output only] Deprecated, use
        +   * Output only. Deprecated, use
            * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
            * instead. The current version of the node software components. If they are
            * currently at multiple versions because they're in the process of being
            * upgraded, this reflects the minimum version of all nodes.
            * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1974 + * google/container/v1/cluster_service.proto;l=1994 * @return The currentNodeVersion. */ @java.lang.Override @@ -2861,17 +2863,19 @@ public java.lang.String getCurrentNodeVersion() { * * *
        -   * [Output only] Deprecated, use
        +   * Output only. Deprecated, use
            * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
            * instead. The current version of the node software components. If they are
            * currently at multiple versions because they're in the process of being
            * upgraded, this reflects the minimum version of all nodes.
            * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1974 + * google/container/v1/cluster_service.proto;l=1994 * @return The bytes for currentNodeVersion. */ @java.lang.Override @@ -2896,11 +2900,11 @@ public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { * * *
        -   * [Output only] The time the cluster was created, in
        +   * Output only. The time the cluster was created, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The createTime. */ @@ -2920,11 +2924,11 @@ public java.lang.String getCreateTime() { * * *
        -   * [Output only] The time the cluster was created, in
        +   * Output only. The time the cluster was created, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for createTime. */ @@ -2947,10 +2951,12 @@ public com.google.protobuf.ByteString getCreateTimeBytes() { * * *
        -   * [Output only] The current status of this cluster.
        +   * Output only. The current status of this cluster.
            * 
        * - * .google.container.v1.Cluster.Status status = 107; + * + * .google.container.v1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -2962,10 +2968,12 @@ public int getStatusValue() { * * *
        -   * [Output only] The current status of this cluster.
        +   * Output only. The current status of this cluster.
            * 
        * - * .google.container.v1.Cluster.Status status = 107; + * + * .google.container.v1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -2984,15 +2992,17 @@ public com.google.container.v1.Cluster.Status getStatus() { * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * cluster, if available.
            * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1986 + * google/container/v1/cluster_service.proto;l=2007 * @return The statusMessage. */ @java.lang.Override @@ -3012,15 +3022,17 @@ public java.lang.String getStatusMessage() { * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * cluster, if available.
            * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1986 + * google/container/v1/cluster_service.proto;l=2007 * @return The bytes for statusMessage. */ @java.lang.Override @@ -3043,13 +3055,13 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
        -   * [Output only] The size of the address space on each node for hosting
        +   * Output only. The size of the address space on each node for hosting
            * containers. This is provisioned from within the `container_ipv4_cidr`
            * range. This field will only be set when cluster is in route-based network
            * mode.
            * 
        * - * int32 node_ipv4_cidr_size = 109; + * int32 node_ipv4_cidr_size = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The nodeIpv4CidrSize. */ @@ -3066,14 +3078,14 @@ public int getNodeIpv4CidrSize() { * * *
        -   * [Output only] The IP address range of the Kubernetes services in
        +   * Output only. The IP address range of the Kubernetes services in
            * this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`). Service addresses are
            * typically put in the last `/16` from the container CIDR.
            * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servicesIpv4Cidr. */ @@ -3093,14 +3105,14 @@ public java.lang.String getServicesIpv4Cidr() { * * *
        -   * [Output only] The IP address range of the Kubernetes services in
        +   * Output only. The IP address range of the Kubernetes services in
            * this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`). Service addresses are
            * typically put in the last `/16` from the container CIDR.
            * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for servicesIpv4Cidr. */ @@ -3126,13 +3138,15 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -3143,13 +3157,15 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -3160,13 +3176,15 @@ public int getInstanceGroupUrlsCount() { * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -3178,13 +3196,15 @@ public java.lang.String getInstanceGroupUrls(int index) { * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -3199,14 +3219,16 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * *
        -   * [Output only]  The number of nodes currently in the cluster. Deprecated.
        +   * Output only. The number of nodes currently in the cluster. Deprecated.
            * Call Kubernetes API directly to retrieve node information.
            * 
        * - * int32 current_node_count = 112 [deprecated = true]; + * + * int32 current_node_count = 112 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2006 + * google/container/v1/cluster_service.proto;l=2029 * @return The currentNodeCount. */ @java.lang.Override @@ -3223,11 +3245,11 @@ public int getCurrentNodeCount() { * * *
        -   * [Output only] The time the cluster will be automatically
        +   * Output only. The time the cluster will be automatically
            * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The expireTime. */ @@ -3247,11 +3269,11 @@ public java.lang.String getExpireTime() { * * *
        -   * [Output only] The time the cluster will be automatically
        +   * Output only. The time the cluster will be automatically
            * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for expireTime. */ @@ -3276,14 +3298,14 @@ public com.google.protobuf.ByteString getExpireTimeBytes() { * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The location. */ @@ -3303,14 +3325,14 @@ public java.lang.String getLocation() { * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for location. */ @@ -3353,12 +3375,12 @@ public boolean getEnableTpu() { * * *
        -   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +   * Output only. The IP address range of the Cloud TPUs in this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`).
            * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The tpuIpv4CidrBlock. */ @@ -3378,12 +3400,12 @@ public java.lang.String getTpuIpv4CidrBlock() { * * *
        -   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +   * Output only. The IP address range of the Cloud TPUs in this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`).
            * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for tpuIpv4CidrBlock. */ @@ -6920,7 +6942,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1757 + * google/container/v1/cluster_service.proto;l=1775 * @return The initialNodeCount. */ @java.lang.Override @@ -6947,7 +6969,7 @@ public int getInitialNodeCount() { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1757 + * google/container/v1/cluster_service.proto;l=1775 * @param value The initialNodeCount to set. * @return This builder for chaining. */ @@ -6978,7 +7000,7 @@ public Builder setInitialNodeCount(int value) { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1757 + * google/container/v1/cluster_service.proto;l=1775 * @return This builder for chaining. */ @java.lang.Deprecated @@ -7015,7 +7037,7 @@ public Builder clearInitialNodeCount() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1770 + * google/container/v1/cluster_service.proto;l=1788 * @return Whether the nodeConfig field is set. */ @java.lang.Deprecated @@ -7042,7 +7064,7 @@ public boolean hasNodeConfig() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1770 + * google/container/v1/cluster_service.proto;l=1788 * @return The nodeConfig. */ @java.lang.Deprecated @@ -13604,10 +13626,10 @@ public com.google.container.v1.IdentityServiceConfig.Builder getIdentityServiceC * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -13626,10 +13648,10 @@ public java.lang.String getSelfLink() { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -13648,10 +13670,10 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The selfLink to set. * @return This builder for chaining. @@ -13669,10 +13691,10 @@ public Builder setSelfLink(java.lang.String value) { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -13686,10 +13708,10 @@ public Builder clearSelfLink() { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for selfLink to set. * @return This builder for chaining. @@ -13710,15 +13732,16 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * cluster resides. This field is deprecated, use location instead.
              * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1941 + * google/container/v1/cluster_service.proto;l=1959 * @return The zone. */ @java.lang.Deprecated @@ -13737,15 +13760,16 @@ public java.lang.String getZone() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * cluster resides. This field is deprecated, use location instead.
              * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1941 + * google/container/v1/cluster_service.proto;l=1959 * @return The bytes for zone. */ @java.lang.Deprecated @@ -13764,15 +13788,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * cluster resides. This field is deprecated, use location instead.
              * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1941 + * google/container/v1/cluster_service.proto;l=1959 * @param value The zone to set. * @return This builder for chaining. */ @@ -13790,15 +13815,16 @@ public Builder setZone(java.lang.String value) { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * cluster resides. This field is deprecated, use location instead.
              * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1941 + * google/container/v1/cluster_service.proto;l=1959 * @return This builder for chaining. */ @java.lang.Deprecated @@ -13812,15 +13838,16 @@ public Builder clearZone() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * cluster resides. This field is deprecated, use location instead.
              * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1941 + * google/container/v1/cluster_service.proto;l=1959 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -13841,7 +13868,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The IP address of this cluster's master endpoint.
        +     * Output only. The IP address of this cluster's master endpoint.
              * The endpoint can be accessed from the internet at
              * `https://username:password@endpoint/`.
              *
        @@ -13849,7 +13876,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) {
              * password information.
              * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The endpoint. */ @@ -13868,7 +13895,7 @@ public java.lang.String getEndpoint() { * * *
        -     * [Output only] The IP address of this cluster's master endpoint.
        +     * Output only. The IP address of this cluster's master endpoint.
              * The endpoint can be accessed from the internet at
              * `https://username:password@endpoint/`.
              *
        @@ -13876,7 +13903,7 @@ public java.lang.String getEndpoint() {
              * password information.
              * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for endpoint. */ @@ -13895,7 +13922,7 @@ public com.google.protobuf.ByteString getEndpointBytes() { * * *
        -     * [Output only] The IP address of this cluster's master endpoint.
        +     * Output only. The IP address of this cluster's master endpoint.
              * The endpoint can be accessed from the internet at
              * `https://username:password@endpoint/`.
              *
        @@ -13903,7 +13930,7 @@ public com.google.protobuf.ByteString getEndpointBytes() {
              * password information.
              * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The endpoint to set. * @return This builder for chaining. @@ -13921,7 +13948,7 @@ public Builder setEndpoint(java.lang.String value) { * * *
        -     * [Output only] The IP address of this cluster's master endpoint.
        +     * Output only. The IP address of this cluster's master endpoint.
              * The endpoint can be accessed from the internet at
              * `https://username:password@endpoint/`.
              *
        @@ -13929,7 +13956,7 @@ public Builder setEndpoint(java.lang.String value) {
              * password information.
              * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -13943,7 +13970,7 @@ public Builder clearEndpoint() { * * *
        -     * [Output only] The IP address of this cluster's master endpoint.
        +     * Output only. The IP address of this cluster's master endpoint.
              * The endpoint can be accessed from the internet at
              * `https://username:password@endpoint/`.
              *
        @@ -13951,7 +13978,7 @@ public Builder clearEndpoint() {
              * password information.
              * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for endpoint to set. * @return This builder for chaining. @@ -14138,10 +14165,11 @@ public Builder setInitialClusterVersionBytes(com.google.protobuf.ByteString valu * * *
        -     * [Output only] The current software version of the master endpoint.
        +     * Output only. The current software version of the master endpoint.
              * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The currentMasterVersion. */ @@ -14160,10 +14188,11 @@ public java.lang.String getCurrentMasterVersion() { * * *
        -     * [Output only] The current software version of the master endpoint.
        +     * Output only. The current software version of the master endpoint.
              * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for currentMasterVersion. */ @@ -14182,10 +14211,11 @@ public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { * * *
        -     * [Output only] The current software version of the master endpoint.
        +     * Output only. The current software version of the master endpoint.
              * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The currentMasterVersion to set. * @return This builder for chaining. @@ -14203,10 +14233,11 @@ public Builder setCurrentMasterVersion(java.lang.String value) { * * *
        -     * [Output only] The current software version of the master endpoint.
        +     * Output only. The current software version of the master endpoint.
              * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -14220,10 +14251,11 @@ public Builder clearCurrentMasterVersion() { * * *
        -     * [Output only] The current software version of the master endpoint.
        +     * Output only. The current software version of the master endpoint.
              * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes for currentMasterVersion to set. * @return This builder for chaining. @@ -14244,17 +14276,19 @@ public Builder setCurrentMasterVersionBytes(com.google.protobuf.ByteString value * * *
        -     * [Output only] Deprecated, use
        +     * Output only. Deprecated, use
              * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
              * instead. The current version of the node software components. If they are
              * currently at multiple versions because they're in the process of being
              * upgraded, this reflects the minimum version of all nodes.
              * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1974 + * google/container/v1/cluster_service.proto;l=1994 * @return The currentNodeVersion. */ @java.lang.Deprecated @@ -14273,17 +14307,19 @@ public java.lang.String getCurrentNodeVersion() { * * *
        -     * [Output only] Deprecated, use
        +     * Output only. Deprecated, use
              * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
              * instead. The current version of the node software components. If they are
              * currently at multiple versions because they're in the process of being
              * upgraded, this reflects the minimum version of all nodes.
              * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1974 + * google/container/v1/cluster_service.proto;l=1994 * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated @@ -14302,17 +14338,19 @@ public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { * * *
        -     * [Output only] Deprecated, use
        +     * Output only. Deprecated, use
              * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
              * instead. The current version of the node software components. If they are
              * currently at multiple versions because they're in the process of being
              * upgraded, this reflects the minimum version of all nodes.
              * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1974 + * google/container/v1/cluster_service.proto;l=1994 * @param value The currentNodeVersion to set. * @return This builder for chaining. */ @@ -14330,17 +14368,19 @@ public Builder setCurrentNodeVersion(java.lang.String value) { * * *
        -     * [Output only] Deprecated, use
        +     * Output only. Deprecated, use
              * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
              * instead. The current version of the node software components. If they are
              * currently at multiple versions because they're in the process of being
              * upgraded, this reflects the minimum version of all nodes.
              * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1974 + * google/container/v1/cluster_service.proto;l=1994 * @return This builder for chaining. */ @java.lang.Deprecated @@ -14354,17 +14394,19 @@ public Builder clearCurrentNodeVersion() { * * *
        -     * [Output only] Deprecated, use
        +     * Output only. Deprecated, use
              * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
              * instead. The current version of the node software components. If they are
              * currently at multiple versions because they're in the process of being
              * upgraded, this reflects the minimum version of all nodes.
              * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1974 + * google/container/v1/cluster_service.proto;l=1994 * @param value The bytes for currentNodeVersion to set. * @return This builder for chaining. */ @@ -14385,11 +14427,11 @@ public Builder setCurrentNodeVersionBytes(com.google.protobuf.ByteString value) * * *
        -     * [Output only] The time the cluster was created, in
        +     * Output only. The time the cluster was created, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The createTime. */ @@ -14408,11 +14450,11 @@ public java.lang.String getCreateTime() { * * *
        -     * [Output only] The time the cluster was created, in
        +     * Output only. The time the cluster was created, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for createTime. */ @@ -14431,11 +14473,11 @@ public com.google.protobuf.ByteString getCreateTimeBytes() { * * *
        -     * [Output only] The time the cluster was created, in
        +     * Output only. The time the cluster was created, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The createTime to set. * @return This builder for chaining. @@ -14453,11 +14495,11 @@ public Builder setCreateTime(java.lang.String value) { * * *
        -     * [Output only] The time the cluster was created, in
        +     * Output only. The time the cluster was created, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -14471,11 +14513,11 @@ public Builder clearCreateTime() { * * *
        -     * [Output only] The time the cluster was created, in
        +     * Output only. The time the cluster was created, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for createTime to set. * @return This builder for chaining. @@ -14496,10 +14538,12 @@ public Builder setCreateTimeBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The current status of this cluster.
        +     * Output only. The current status of this cluster.
              * 
        * - * .google.container.v1.Cluster.Status status = 107; + * + * .google.container.v1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -14511,10 +14555,12 @@ public int getStatusValue() { * * *
        -     * [Output only] The current status of this cluster.
        +     * Output only. The current status of this cluster.
              * 
        * - * .google.container.v1.Cluster.Status status = 107; + * + * .google.container.v1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. @@ -14529,10 +14575,12 @@ public Builder setStatusValue(int value) { * * *
        -     * [Output only] The current status of this cluster.
        +     * Output only. The current status of this cluster.
              * 
        * - * .google.container.v1.Cluster.Status status = 107; + * + * .google.container.v1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -14546,10 +14594,12 @@ public com.google.container.v1.Cluster.Status getStatus() { * * *
        -     * [Output only] The current status of this cluster.
        +     * Output only. The current status of this cluster.
              * 
        * - * .google.container.v1.Cluster.Status status = 107; + * + * .google.container.v1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The status to set. * @return This builder for chaining. @@ -14567,10 +14617,12 @@ public Builder setStatus(com.google.container.v1.Cluster.Status value) { * * *
        -     * [Output only] The current status of this cluster.
        +     * Output only. The current status of this cluster.
              * 
        * - * .google.container.v1.Cluster.Status status = 107; + * + * .google.container.v1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -14586,15 +14638,17 @@ public Builder clearStatus() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * cluster, if available.
              * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1986 + * google/container/v1/cluster_service.proto;l=2007 * @return The statusMessage. */ @java.lang.Deprecated @@ -14613,15 +14667,17 @@ public java.lang.String getStatusMessage() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * cluster, if available.
              * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1986 + * google/container/v1/cluster_service.proto;l=2007 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -14640,15 +14696,17 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * cluster, if available.
              * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1986 + * google/container/v1/cluster_service.proto;l=2007 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -14666,15 +14724,17 @@ public Builder setStatusMessage(java.lang.String value) { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * cluster, if available.
              * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1986 + * google/container/v1/cluster_service.proto;l=2007 * @return This builder for chaining. */ @java.lang.Deprecated @@ -14688,15 +14748,17 @@ public Builder clearStatusMessage() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * cluster, if available.
              * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1986 + * google/container/v1/cluster_service.proto;l=2007 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ @@ -14717,13 +14779,13 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The size of the address space on each node for hosting
        +     * Output only. The size of the address space on each node for hosting
              * containers. This is provisioned from within the `container_ipv4_cidr`
              * range. This field will only be set when cluster is in route-based network
              * mode.
              * 
        * - * int32 node_ipv4_cidr_size = 109; + * int32 node_ipv4_cidr_size = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The nodeIpv4CidrSize. */ @@ -14735,13 +14797,13 @@ public int getNodeIpv4CidrSize() { * * *
        -     * [Output only] The size of the address space on each node for hosting
        +     * Output only. The size of the address space on each node for hosting
              * containers. This is provisioned from within the `container_ipv4_cidr`
              * range. This field will only be set when cluster is in route-based network
              * mode.
              * 
        * - * int32 node_ipv4_cidr_size = 109; + * int32 node_ipv4_cidr_size = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The nodeIpv4CidrSize to set. * @return This builder for chaining. @@ -14757,13 +14819,13 @@ public Builder setNodeIpv4CidrSize(int value) { * * *
        -     * [Output only] The size of the address space on each node for hosting
        +     * Output only. The size of the address space on each node for hosting
              * containers. This is provisioned from within the `container_ipv4_cidr`
              * range. This field will only be set when cluster is in route-based network
              * mode.
              * 
        * - * int32 node_ipv4_cidr_size = 109; + * int32 node_ipv4_cidr_size = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -14779,14 +14841,14 @@ public Builder clearNodeIpv4CidrSize() { * * *
        -     * [Output only] The IP address range of the Kubernetes services in
        +     * Output only. The IP address range of the Kubernetes services in
              * this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`). Service addresses are
              * typically put in the last `/16` from the container CIDR.
              * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servicesIpv4Cidr. */ @@ -14805,14 +14867,14 @@ public java.lang.String getServicesIpv4Cidr() { * * *
        -     * [Output only] The IP address range of the Kubernetes services in
        +     * Output only. The IP address range of the Kubernetes services in
              * this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`). Service addresses are
              * typically put in the last `/16` from the container CIDR.
              * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for servicesIpv4Cidr. */ @@ -14831,14 +14893,14 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * * *
        -     * [Output only] The IP address range of the Kubernetes services in
        +     * Output only. The IP address range of the Kubernetes services in
              * this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`). Service addresses are
              * typically put in the last `/16` from the container CIDR.
              * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The servicesIpv4Cidr to set. * @return This builder for chaining. @@ -14856,14 +14918,14 @@ public Builder setServicesIpv4Cidr(java.lang.String value) { * * *
        -     * [Output only] The IP address range of the Kubernetes services in
        +     * Output only. The IP address range of the Kubernetes services in
              * this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`). Service addresses are
              * typically put in the last `/16` from the container CIDR.
              * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -14877,14 +14939,14 @@ public Builder clearServicesIpv4Cidr() { * * *
        -     * [Output only] The IP address range of the Kubernetes services in
        +     * Output only. The IP address range of the Kubernetes services in
              * this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`). Service addresses are
              * typically put in the last `/16` from the container CIDR.
              * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for servicesIpv4Cidr to set. * @return This builder for chaining. @@ -14913,13 +14975,15 @@ private void ensureInstanceGroupUrlsIsMutable() { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -14931,13 +14995,15 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -14948,13 +15014,15 @@ public int getInstanceGroupUrlsCount() { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -14966,13 +15034,15 @@ public java.lang.String getInstanceGroupUrls(int index) { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -14984,13 +15054,15 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @param index The index to set the value at. * @param value The instanceGroupUrls to set. * @return This builder for chaining. @@ -15010,13 +15082,15 @@ public Builder setInstanceGroupUrls(int index, java.lang.String value) { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @param value The instanceGroupUrls to add. * @return This builder for chaining. */ @@ -15035,13 +15109,15 @@ public Builder addInstanceGroupUrls(java.lang.String value) { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @param values The instanceGroupUrls to add. * @return This builder for chaining. */ @@ -15057,13 +15133,15 @@ public Builder addAllInstanceGroupUrls(java.lang.Iterable valu * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @return This builder for chaining. */ @java.lang.Deprecated @@ -15078,13 +15156,15 @@ public Builder clearInstanceGroupUrls() { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @param value The bytes of the instanceGroupUrls to add. * @return This builder for chaining. */ @@ -15106,14 +15186,16 @@ public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only]  The number of nodes currently in the cluster. Deprecated.
        +     * Output only. The number of nodes currently in the cluster. Deprecated.
              * Call Kubernetes API directly to retrieve node information.
              * 
        * - * int32 current_node_count = 112 [deprecated = true]; + * + * int32 current_node_count = 112 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2006 + * google/container/v1/cluster_service.proto;l=2029 * @return The currentNodeCount. */ @java.lang.Override @@ -15125,14 +15207,16 @@ public int getCurrentNodeCount() { * * *
        -     * [Output only]  The number of nodes currently in the cluster. Deprecated.
        +     * Output only. The number of nodes currently in the cluster. Deprecated.
              * Call Kubernetes API directly to retrieve node information.
              * 
        * - * int32 current_node_count = 112 [deprecated = true]; + * + * int32 current_node_count = 112 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2006 + * google/container/v1/cluster_service.proto;l=2029 * @param value The currentNodeCount to set. * @return This builder for chaining. */ @@ -15148,14 +15232,16 @@ public Builder setCurrentNodeCount(int value) { * * *
        -     * [Output only]  The number of nodes currently in the cluster. Deprecated.
        +     * Output only. The number of nodes currently in the cluster. Deprecated.
              * Call Kubernetes API directly to retrieve node information.
              * 
        * - * int32 current_node_count = 112 [deprecated = true]; + * + * int32 current_node_count = 112 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2006 + * google/container/v1/cluster_service.proto;l=2029 * @return This builder for chaining. */ @java.lang.Deprecated @@ -15171,11 +15257,11 @@ public Builder clearCurrentNodeCount() { * * *
        -     * [Output only] The time the cluster will be automatically
        +     * Output only. The time the cluster will be automatically
              * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The expireTime. */ @@ -15194,11 +15280,11 @@ public java.lang.String getExpireTime() { * * *
        -     * [Output only] The time the cluster will be automatically
        +     * Output only. The time the cluster will be automatically
              * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for expireTime. */ @@ -15217,11 +15303,11 @@ public com.google.protobuf.ByteString getExpireTimeBytes() { * * *
        -     * [Output only] The time the cluster will be automatically
        +     * Output only. The time the cluster will be automatically
              * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The expireTime to set. * @return This builder for chaining. @@ -15239,11 +15325,11 @@ public Builder setExpireTime(java.lang.String value) { * * *
        -     * [Output only] The time the cluster will be automatically
        +     * Output only. The time the cluster will be automatically
              * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -15257,11 +15343,11 @@ public Builder clearExpireTime() { * * *
        -     * [Output only] The time the cluster will be automatically
        +     * Output only. The time the cluster will be automatically
              * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for expireTime to set. * @return This builder for chaining. @@ -15282,14 +15368,14 @@ public Builder setExpireTimeBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The location. */ @@ -15308,14 +15394,14 @@ public java.lang.String getLocation() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for location. */ @@ -15334,14 +15420,14 @@ public com.google.protobuf.ByteString getLocationBytes() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The location to set. * @return This builder for chaining. @@ -15359,14 +15445,14 @@ public Builder setLocation(java.lang.String value) { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -15380,14 +15466,14 @@ public Builder clearLocation() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for location to set. * @return This builder for chaining. @@ -15461,12 +15547,12 @@ public Builder clearEnableTpu() { * * *
        -     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +     * Output only. The IP address range of the Cloud TPUs in this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`).
              * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The tpuIpv4CidrBlock. */ @@ -15485,12 +15571,12 @@ public java.lang.String getTpuIpv4CidrBlock() { * * *
        -     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +     * Output only. The IP address range of the Cloud TPUs in this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`).
              * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for tpuIpv4CidrBlock. */ @@ -15509,12 +15595,12 @@ public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { * * *
        -     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +     * Output only. The IP address range of the Cloud TPUs in this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`).
              * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The tpuIpv4CidrBlock to set. * @return This builder for chaining. @@ -15532,12 +15618,12 @@ public Builder setTpuIpv4CidrBlock(java.lang.String value) { * * *
        -     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +     * Output only. The IP address range of the Cloud TPUs in this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`).
              * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -15551,12 +15637,12 @@ public Builder clearTpuIpv4CidrBlock() { * * *
        -     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +     * Output only. The IP address range of the Cloud TPUs in this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`).
              * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for tpuIpv4CidrBlock to set. * @return This builder for chaining. diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java index 5431b46cc643..00cb8edb070a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java @@ -105,7 +105,7 @@ public interface ClusterOrBuilder * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1757 + * google/container/v1/cluster_service.proto;l=1775 * @return The initialNodeCount. */ @java.lang.Deprecated @@ -131,7 +131,7 @@ public interface ClusterOrBuilder * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1770 + * google/container/v1/cluster_service.proto;l=1788 * @return Whether the nodeConfig field is set. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface ClusterOrBuilder * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1770 + * google/container/v1/cluster_service.proto;l=1788 * @return The nodeConfig. */ @java.lang.Deprecated @@ -1520,10 +1520,10 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -1532,10 +1532,10 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -1545,15 +1545,15 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * cluster resides. This field is deprecated, use location instead.
            * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1941 + * google/container/v1/cluster_service.proto;l=1959 * @return The zone. */ @java.lang.Deprecated @@ -1562,15 +1562,15 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * cluster resides. This field is deprecated, use location instead.
            * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1941 + * google/container/v1/cluster_service.proto;l=1959 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1580,7 +1580,7 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The IP address of this cluster's master endpoint.
        +   * Output only. The IP address of this cluster's master endpoint.
            * The endpoint can be accessed from the internet at
            * `https://username:password@endpoint/`.
            *
        @@ -1588,7 +1588,7 @@ java.lang.String getResourceLabelsOrDefault(
            * password information.
            * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The endpoint. */ @@ -1597,7 +1597,7 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The IP address of this cluster's master endpoint.
        +   * Output only. The IP address of this cluster's master endpoint.
            * The endpoint can be accessed from the internet at
            * `https://username:password@endpoint/`.
            *
        @@ -1605,7 +1605,7 @@ java.lang.String getResourceLabelsOrDefault(
            * password information.
            * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for endpoint. */ @@ -1664,10 +1664,10 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The current software version of the master endpoint.
        +   * Output only. The current software version of the master endpoint.
            * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The currentMasterVersion. */ @@ -1676,10 +1676,10 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The current software version of the master endpoint.
        +   * Output only. The current software version of the master endpoint.
            * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for currentMasterVersion. */ @@ -1689,17 +1689,19 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] Deprecated, use
        +   * Output only. Deprecated, use
            * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
            * instead. The current version of the node software components. If they are
            * currently at multiple versions because they're in the process of being
            * upgraded, this reflects the minimum version of all nodes.
            * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1974 + * google/container/v1/cluster_service.proto;l=1994 * @return The currentNodeVersion. */ @java.lang.Deprecated @@ -1708,17 +1710,19 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] Deprecated, use
        +   * Output only. Deprecated, use
            * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
            * instead. The current version of the node software components. If they are
            * currently at multiple versions because they're in the process of being
            * upgraded, this reflects the minimum version of all nodes.
            * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1974 + * google/container/v1/cluster_service.proto;l=1994 * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated @@ -1728,11 +1732,11 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The time the cluster was created, in
        +   * Output only. The time the cluster was created, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The createTime. */ @@ -1741,11 +1745,11 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The time the cluster was created, in
        +   * Output only. The time the cluster was created, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for createTime. */ @@ -1755,10 +1759,12 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The current status of this cluster.
        +   * Output only. The current status of this cluster.
            * 
        * - * .google.container.v1.Cluster.Status status = 107; + * + * .google.container.v1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -1767,10 +1773,12 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The current status of this cluster.
        +   * Output only. The current status of this cluster.
            * 
        * - * .google.container.v1.Cluster.Status status = 107; + * + * .google.container.v1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -1780,15 +1788,17 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * cluster, if available.
            * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1986 + * google/container/v1/cluster_service.proto;l=2007 * @return The statusMessage. */ @java.lang.Deprecated @@ -1797,15 +1807,17 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * cluster, if available.
            * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1986 + * google/container/v1/cluster_service.proto;l=2007 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -1815,13 +1827,13 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The size of the address space on each node for hosting
        +   * Output only. The size of the address space on each node for hosting
            * containers. This is provisioned from within the `container_ipv4_cidr`
            * range. This field will only be set when cluster is in route-based network
            * mode.
            * 
        * - * int32 node_ipv4_cidr_size = 109; + * int32 node_ipv4_cidr_size = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The nodeIpv4CidrSize. */ @@ -1831,14 +1843,14 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The IP address range of the Kubernetes services in
        +   * Output only. The IP address range of the Kubernetes services in
            * this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`). Service addresses are
            * typically put in the last `/16` from the container CIDR.
            * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servicesIpv4Cidr. */ @@ -1847,14 +1859,14 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The IP address range of the Kubernetes services in
        +   * Output only. The IP address range of the Kubernetes services in
            * this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`). Service addresses are
            * typically put in the last `/16` from the container CIDR.
            * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for servicesIpv4Cidr. */ @@ -1864,13 +1876,15 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -1879,13 +1893,15 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -1894,13 +1910,15 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -1910,13 +1928,15 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2002 + * google/container/v1/cluster_service.proto;l=2024 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -1927,14 +1947,16 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only]  The number of nodes currently in the cluster. Deprecated.
        +   * Output only. The number of nodes currently in the cluster. Deprecated.
            * Call Kubernetes API directly to retrieve node information.
            * 
        * - * int32 current_node_count = 112 [deprecated = true]; + * + * int32 current_node_count = 112 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2006 + * google/container/v1/cluster_service.proto;l=2029 * @return The currentNodeCount. */ @java.lang.Deprecated @@ -1944,11 +1966,11 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The time the cluster will be automatically
        +   * Output only. The time the cluster will be automatically
            * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The expireTime. */ @@ -1957,11 +1979,11 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The time the cluster will be automatically
        +   * Output only. The time the cluster will be automatically
            * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for expireTime. */ @@ -1971,14 +1993,14 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The location. */ @@ -1987,14 +2009,14 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for location. */ @@ -2017,12 +2039,12 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +   * Output only. The IP address range of the Cloud TPUs in this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`).
            * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The tpuIpv4CidrBlock. */ @@ -2031,12 +2053,12 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +   * Output only. The IP address range of the Cloud TPUs in this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`).
            * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for tpuIpv4CidrBlock. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java index 5dd00f528bd2..3f0c2503c37c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java @@ -216,6 +216,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_GcsFuseCsiDriverConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_GcsFuseCsiDriverConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_RayOperatorConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_RayOperatorConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_GkeBackupAgentConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -744,6 +748,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_LoggingComponentConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_LoggingComponentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_RayClusterLoggingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_RayClusterLoggingConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_MonitoringConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -752,6 +760,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_RayClusterMonitoringConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_RayClusterMonitoringConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_NodePoolLoggingConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -976,1175 +988,1190 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ourceLabels\022?\n\006labels\030\001 \003(\0132/.google.con" + "tainer.v1.ResourceLabels.LabelsEntry\032-\n\013" + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\"\033\n\013NetworkTags\022\014\n\004tags\030\001 \003(\t\"\331\001\n\nMas" + + "\0028\001\"\033\n\013NetworkTags\022\014\n\004tags\030\001 \003(\t\"\350\001\n\nMas" + "terAuth\022\024\n\010username\030\001 \001(\tB\002\030\001\022\024\n\010passwor" + "d\030\002 \001(\tB\002\030\001\022O\n\031client_certificate_config" + "\030\003 \001(\0132,.google.container.v1.ClientCerti" - + "ficateConfig\022\036\n\026cluster_ca_certificate\030d" - + " \001(\t\022\032\n\022client_certificate\030e \001(\t\022\022\n\nclie" - + "nt_key\030f \001(\t\";\n\027ClientCertificateConfig\022" - + " \n\030issue_client_certificate\030\001 \001(\010\"\254\007\n\014Ad" - + "donsConfig\022C\n\023http_load_balancing\030\001 \001(\0132" - + "&.google.container.v1.HttpLoadBalancing\022" - + "Q\n\032horizontal_pod_autoscaling\030\002 \001(\0132-.go" - + "ogle.container.v1.HorizontalPodAutoscali" - + "ng\022J\n\024kubernetes_dashboard\030\003 \001(\0132(.googl" - + "e.container.v1.KubernetesDashboardB\002\030\001\022G" - + "\n\025network_policy_config\030\004 \001(\0132(.google.c" - + "ontainer.v1.NetworkPolicyConfig\022=\n\020cloud" - + "_run_config\030\007 \001(\0132#.google.container.v1." - + "CloudRunConfig\022=\n\020dns_cache_config\030\010 \001(\013" - + "2#.google.container.v1.DnsCacheConfig\022K\n" - + "\027config_connector_config\030\n \001(\0132*.google." - + "container.v1.ConfigConnectorConfig\022d\n%gc" - + "e_persistent_disk_csi_driver_config\030\013 \001(" - + "\01325.google.container.v1.GcePersistentDis" - + "kCsiDriverConfig\022Y\n\037gcp_filestore_csi_dr" - + "iver_config\030\016 \001(\01320.google.container.v1." - + "GcpFilestoreCsiDriverConfig\022J\n\027gke_backu" - + "p_agent_config\030\020 \001(\0132).google.container." - + "v1.GkeBackupAgentConfig\022O\n\032gcs_fuse_csi_" - + "driver_config\030\021 \001(\0132+.google.container.v" - + "1.GcsFuseCsiDriverConfig\022F\n\022stateful_ha_" - + "config\030\022 \001(\0132%.google.container.v1.State" - + "fulHAConfigB\003\340A\001\"%\n\021HttpLoadBalancing\022\020\n" - + "\010disabled\030\001 \001(\010\",\n\030HorizontalPodAutoscal" - + "ing\022\020\n\010disabled\030\001 \001(\010\"\'\n\023KubernetesDashb" - + "oard\022\020\n\010disabled\030\001 \001(\010\"\'\n\023NetworkPolicyC" - + "onfig\022\020\n\010disabled\030\001 \001(\010\"!\n\016DnsCacheConfi" - + "g\022\017\n\007enabled\030\001 \001(\010\"9\n&PrivateClusterMast" - + "erGlobalAccessConfig\022\017\n\007enabled\030\001 \001(\010\"\305\002" - + "\n\024PrivateClusterConfig\022\034\n\024enable_private" - + "_nodes\030\001 \001(\010\022\037\n\027enable_private_endpoint\030" - + "\002 \001(\010\022\036\n\026master_ipv4_cidr_block\030\003 \001(\t\022\030\n" - + "\020private_endpoint\030\004 \001(\t\022\027\n\017public_endpoi" - + "nt\030\005 \001(\t\022\024\n\014peering_name\030\007 \001(\t\022`\n\033master" - + "_global_access_config\030\010 \001(\0132;.google.con" - + "tainer.v1.PrivateClusterMasterGlobalAcce" - + "ssConfig\022#\n\033private_endpoint_subnetwork\030" - + "\n \001(\t\"D\n\031AuthenticatorGroupsConfig\022\017\n\007en" - + "abled\030\001 \001(\010\022\026\n\016security_group\030\002 \001(\t\"\356\001\n\016" - + "CloudRunConfig\022\020\n\010disabled\030\001 \001(\010\022P\n\022load" - + "_balancer_type\030\003 \001(\01624.google.container." - + "v1.CloudRunConfig.LoadBalancerType\"x\n\020Lo" - + "adBalancerType\022\"\n\036LOAD_BALANCER_TYPE_UNS" - + "PECIFIED\020\000\022\037\n\033LOAD_BALANCER_TYPE_EXTERNA" - + "L\020\001\022\037\n\033LOAD_BALANCER_TYPE_INTERNAL\020\002\"(\n\025" - + "ConfigConnectorConfig\022\017\n\007enabled\030\001 \001(\010\"3" - + "\n GcePersistentDiskCsiDriverConfig\022\017\n\007en" - + "abled\030\001 \001(\010\".\n\033GcpFilestoreCsiDriverConf" - + "ig\022\017\n\007enabled\030\001 \001(\010\")\n\026GcsFuseCsiDriverC" - + "onfig\022\017\n\007enabled\030\001 \001(\010\"\'\n\024GkeBackupAgent" - + "Config\022\017\n\007enabled\030\001 \001(\010\"#\n\020StatefulHACon" - + "fig\022\017\n\007enabled\030\001 \001(\010\"\216\002\n\036MasterAuthorize" - + "dNetworksConfig\022\017\n\007enabled\030\001 \001(\010\022R\n\013cidr" - + "_blocks\030\002 \003(\0132=.google.container.v1.Mast" - + "erAuthorizedNetworksConfig.CidrBlock\022,\n\037" - + "gcp_public_cidrs_access_enabled\030\003 \001(\010H\000\210" - + "\001\001\0325\n\tCidrBlock\022\024\n\014display_name\030\001 \001(\t\022\022\n" - + "\ncidr_block\030\002 \001(\tB\"\n _gcp_public_cidrs_a" - + "ccess_enabled\"\035\n\nLegacyAbac\022\017\n\007enabled\030\001" - + " \001(\010\"\221\001\n\rNetworkPolicy\022=\n\010provider\030\001 \001(\016" - + "2+.google.container.v1.NetworkPolicy.Pro" - + "vider\022\017\n\007enabled\030\002 \001(\010\"0\n\010Provider\022\030\n\024PR" - + "OVIDER_UNSPECIFIED\020\000\022\n\n\006CALICO\020\001\"\343\001\n\023Bin" - + "aryAuthorization\022\023\n\007enabled\030\001 \001(\010B\002\030\001\022P\n" - + "\017evaluation_mode\030\002 \001(\01627.google.containe" - + "r.v1.BinaryAuthorization.EvaluationMode\"" - + "e\n\016EvaluationMode\022\037\n\033EVALUATION_MODE_UNS" - + "PECIFIED\020\000\022\014\n\010DISABLED\020\001\022$\n PROJECT_SING" - + "LETON_POLICY_ENFORCE\020\002\"-\n\032PodCIDROverpro" - + "visionConfig\022\017\n\007disable\030\001 \001(\010\"\275\006\n\022IPAllo" - + "cationPolicy\022\026\n\016use_ip_aliases\030\001 \001(\010\022\031\n\021" - + "create_subnetwork\030\002 \001(\010\022\027\n\017subnetwork_na" - + "me\030\003 \001(\t\022\035\n\021cluster_ipv4_cidr\030\004 \001(\tB\002\030\001\022" - + "\032\n\016node_ipv4_cidr\030\005 \001(\tB\002\030\001\022\036\n\022services_" - + "ipv4_cidr\030\006 \001(\tB\002\030\001\022$\n\034cluster_secondary" - + "_range_name\030\007 \001(\t\022%\n\035services_secondary_" - + "range_name\030\010 \001(\t\022\037\n\027cluster_ipv4_cidr_bl" - + "ock\030\t \001(\t\022\034\n\024node_ipv4_cidr_block\030\n \001(\t\022" - + " \n\030services_ipv4_cidr_block\030\013 \001(\t\022\033\n\023tpu" - + "_ipv4_cidr_block\030\r \001(\t\022\022\n\nuse_routes\030\017 \001" - + "(\010\0222\n\nstack_type\030\020 \001(\0162\036.google.containe" - + "r.v1.StackType\022=\n\020ipv6_access_type\030\021 \001(\016" - + "2#.google.container.v1.IPv6AccessType\022V\n" - + "\035pod_cidr_overprovision_config\030\025 \001(\0132/.g" - + "oogle.container.v1.PodCIDROverprovisionC" - + "onfig\022#\n\026subnet_ipv6_cidr_block\030\026 \001(\tB\003\340" - + "A\003\022%\n\030services_ipv6_cidr_block\030\027 \001(\tB\003\340A" - + "\003\022Y\n\034additional_pod_ranges_config\030\030 \001(\0132" - + "..google.container.v1.AdditionalPodRange" - + "sConfigB\003\340A\003\022/\n\"default_pod_ipv4_range_u" - + "tilization\030\031 \001(\001B\003\340A\003\"\201\034\n\007Cluster\022\014\n\004nam" - + "e\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\036\n\022initial_" - + "node_count\030\003 \001(\005B\002\030\001\0228\n\013node_config\030\004 \001(" - + "\0132\037.google.container.v1.NodeConfigB\002\030\001\0224" - + "\n\013master_auth\030\005 \001(\0132\037.google.container.v" - + "1.MasterAuth\022\027\n\017logging_service\030\006 \001(\t\022\032\n" - + "\022monitoring_service\030\007 \001(\t\022\017\n\007network\030\010 \001" - + "(\t\022\031\n\021cluster_ipv4_cidr\030\t \001(\t\0228\n\raddons_" - + "config\030\n \001(\0132!.google.container.v1.Addon" - + "sConfig\022\022\n\nsubnetwork\030\013 \001(\t\0221\n\nnode_pool" - + "s\030\014 \003(\0132\035.google.container.v1.NodePool\022\021" - + "\n\tlocations\030\r \003(\t\022\037\n\027enable_kubernetes_a" - + "lpha\030\016 \001(\010\022I\n\017resource_labels\030\017 \003(\01320.go" - + "ogle.container.v1.Cluster.ResourceLabels" - + "Entry\022\031\n\021label_fingerprint\030\020 \001(\t\0224\n\013lega" - + "cy_abac\030\022 \001(\0132\037.google.container.v1.Lega" - + "cyAbac\022:\n\016network_policy\030\023 \001(\0132\".google." - + "container.v1.NetworkPolicy\022E\n\024ip_allocat" - + "ion_policy\030\024 \001(\0132\'.google.container.v1.I" - + "PAllocationPolicy\022^\n!master_authorized_n" - + "etworks_config\030\026 \001(\01323.google.container." - + "v1.MasterAuthorizedNetworksConfig\022B\n\022mai" - + "ntenance_policy\030\027 \001(\0132&.google.container" - + ".v1.MaintenancePolicy\022F\n\024binary_authoriz" - + "ation\030\030 \001(\0132(.google.container.v1.Binary" - + "Authorization\022<\n\013autoscaling\030\032 \001(\0132\'.goo" - + "gle.container.v1.ClusterAutoscaling\022:\n\016n" - + "etwork_config\030\033 \001(\0132\".google.container.v" - + "1.NetworkConfig\022K\n\033default_max_pods_cons" - + "traint\030\036 \001(\0132&.google.container.v1.MaxPo" - + "dsConstraint\022T\n\034resource_usage_export_co" - + "nfig\030! \001(\0132..google.container.v1.Resourc" - + "eUsageExportConfig\022S\n\033authenticator_grou" - + "ps_config\030\" \001(\0132..google.container.v1.Au" - + "thenticatorGroupsConfig\022I\n\026private_clust" - + "er_config\030% \001(\0132).google.container.v1.Pr" - + "ivateClusterConfig\022D\n\023database_encryptio" - + "n\030& \001(\0132\'.google.container.v1.DatabaseEn" - + "cryption\022M\n\030vertical_pod_autoscaling\030\' \001" - + "(\0132+.google.container.v1.VerticalPodAuto" - + "scaling\022:\n\016shielded_nodes\030( \001(\0132\".google" - + ".container.v1.ShieldedNodes\022<\n\017release_c" - + "hannel\030) \001(\0132#.google.container.v1.Relea" - + "seChannel\022M\n\030workload_identity_config\030+ " - + "\001(\0132+.google.container.v1.WorkloadIdenti" - + "tyConfig\022@\n\021mesh_certificates\030C \001(\0132%.go" - + "ogle.container.v1.MeshCertificates\022I\n\026co" - + "st_management_config\030- \001(\0132).google.cont" - + "ainer.v1.CostManagementConfig\022D\n\023notific" - + "ation_config\0301 \001(\0132\'.google.container.v1" - + ".NotificationConfig\022B\n\022confidential_node" - + "s\0302 \001(\0132&.google.container.v1.Confidenti" - + "alNodes\022K\n\027identity_service_config\0306 \001(\013" - + "2*.google.container.v1.IdentityServiceCo" - + "nfig\022\021\n\tself_link\030d \001(\t\022\020\n\004zone\030e \001(\tB\002\030" - + "\001\022\020\n\010endpoint\030f \001(\t\022\037\n\027initial_cluster_v" - + "ersion\030g \001(\t\022\036\n\026current_master_version\030h" - + " \001(\t\022 \n\024current_node_version\030i \001(\tB\002\030\001\022\023" - + "\n\013create_time\030j \001(\t\0223\n\006status\030k \001(\0162#.go" - + "ogle.container.v1.Cluster.Status\022\032\n\016stat" - + "us_message\030l \001(\tB\002\030\001\022\033\n\023node_ipv4_cidr_s" - + "ize\030m \001(\005\022\032\n\022services_ipv4_cidr\030n \001(\t\022\037\n" - + "\023instance_group_urls\030o \003(\tB\002\030\001\022\036\n\022curren" - + "t_node_count\030p \001(\005B\002\030\001\022\023\n\013expire_time\030q " - + "\001(\t\022\020\n\010location\030r \001(\t\022\022\n\nenable_tpu\030s \001(" - + "\010\022\033\n\023tpu_ipv4_cidr_block\030t \001(\t\0228\n\ncondit" - + "ions\030v \003(\0132$.google.container.v1.StatusC" - + "ondition\0222\n\tautopilot\030\200\001 \001(\0132\036.google.co" - + "ntainer.v1.Autopilot\022\020\n\002id\030\201\001 \001(\tB\003\340A\003\022G" - + "\n\022node_pool_defaults\030\203\001 \001(\0132%.google.con" - + "tainer.v1.NodePoolDefaultsH\000\210\001\001\022;\n\016loggi" - + "ng_config\030\204\001 \001(\0132\".google.container.v1.L" - + "oggingConfig\022A\n\021monitoring_config\030\205\001 \001(\013" - + "2%.google.container.v1.MonitoringConfig\022" - + "G\n\025node_pool_auto_config\030\210\001 \001(\0132\'.google" - + ".container.v1.NodePoolAutoConfig\022\r\n\004etag" - + "\030\213\001 \001(\t\022*\n\005fleet\030\214\001 \001(\0132\032.google.contain" - + "er.v1.Fleet\022L\n\027security_posture_config\030\221" - + "\001 \001(\0132*.google.container.v1.SecurityPost" - + "ureConfig\022D\n\024enable_k8s_beta_apis\030\217\001 \001(\013" - + "2%.google.container.v1.K8sBetaAPIConfig\022" - + "A\n\021enterprise_config\030\225\001 \001(\0132%.google.con" - + "tainer.v1.EnterpriseConfig\022 \n\rsatisfies_" - + "pzs\030\230\001 \001(\010B\003\340A\003H\001\210\001\001\022 \n\rsatisfies_pzi\030\231\001" - + " \001(\010B\003\340A\003H\002\210\001\001\0325\n\023ResourceLabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022" - + "\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020" - + "\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPP" - + "ING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_node_" - + "pool_defaultsB\020\n\016_satisfies_pzsB\020\n\016_sati" - + "sfies_pzi\"(\n\020K8sBetaAPIConfig\022\024\n\014enabled" - + "_apis\030\001 \003(\t\"\256\003\n\025SecurityPostureConfig\022B\n" - + "\004mode\030\001 \001(\0162/.google.container.v1.Securi" - + "tyPostureConfig.ModeH\000\210\001\001\022]\n\022vulnerabili" - + "ty_mode\030\002 \001(\0162<.google.container.v1.Secu" - + "rityPostureConfig.VulnerabilityModeH\001\210\001\001" - + "\"E\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\014\n\010DISABL" - + "ED\020\001\022\t\n\005BASIC\020\002\022\016\n\nENTERPRISE\020\003\"\212\001\n\021Vuln" - + "erabilityMode\022\"\n\036VULNERABILITY_MODE_UNSP" - + "ECIFIED\020\000\022\032\n\026VULNERABILITY_DISABLED\020\001\022\027\n" - + "\023VULNERABILITY_BASIC\020\002\022\034\n\030VULNERABILITY_" - + "ENTERPRISE\020\003B\007\n\005_modeB\025\n\023_vulnerability_" - + "mode\"\332\001\n\022NodePoolAutoConfig\0226\n\014network_t" - + "ags\030\001 \001(\0132 .google.container.v1.NetworkT" - + "ags\022G\n\025resource_manager_tags\030\002 \001(\0132(.goo" - + "gle.container.v1.ResourceManagerTags\022C\n\023" - + "node_kubelet_config\030\003 \001(\0132&.google.conta" - + "iner.v1.NodeKubeletConfig\"Y\n\020NodePoolDef" - + "aults\022E\n\024node_config_defaults\030\001 \001(\0132\'.go" - + "ogle.container.v1.NodeConfigDefaults\"\225\002\n" - + "\022NodeConfigDefaults\0224\n\013gcfs_config\030\001 \001(\013" - + "2\037.google.container.v1.GcfsConfig\022B\n\016log" - + "ging_config\030\003 \001(\0132*.google.container.v1." - + "NodePoolLoggingConfig\022@\n\021containerd_conf" - + "ig\030\004 \001(\0132%.google.container.v1.Container" - + "dConfig\022C\n\023node_kubelet_config\030\006 \001(\0132&.g" - + "oogle.container.v1.NodeKubeletConfig\"\220!\n" - + "\rClusterUpdate\022\034\n\024desired_node_version\030\004" - + " \001(\t\022\"\n\032desired_monitoring_service\030\005 \001(\t" - + "\022@\n\025desired_addons_config\030\006 \001(\0132!.google" - + ".container.v1.AddonsConfig\022\034\n\024desired_no" - + "de_pool_id\030\007 \001(\t\022\032\n\022desired_image_type\030\010" - + " \001(\t\022L\n\033desired_database_encryption\030. \001(" - + "\0132\'.google.container.v1.DatabaseEncrypti" - + "on\022U\n desired_workload_identity_config\030/" - + " \001(\0132+.google.container.v1.WorkloadIdent" - + "ityConfig\022H\n\031desired_mesh_certificates\030C" - + " \001(\0132%.google.container.v1.MeshCertifica" - + "tes\022B\n\026desired_shielded_nodes\0300 \001(\0132\".go" - + "ogle.container.v1.ShieldedNodes\022Q\n\036desir" - + "ed_cost_management_config\0301 \001(\0132).google" - + ".container.v1.CostManagementConfig\022:\n\022de" - + "sired_dns_config\0305 \001(\0132\036.google.containe" - + "r.v1.DNSConfig\022O\n\035desired_node_pool_auto", - "scaling\030\t \001(\0132(.google.container.v1.Node" - + "PoolAutoscaling\022\031\n\021desired_locations\030\n \003" - + "(\t\022f\n)desired_master_authorized_networks" - + "_config\030\014 \001(\01323.google.container.v1.Mast" - + "erAuthorizedNetworksConfig\022L\n\033desired_cl" - + "uster_autoscaling\030\017 \001(\0132\'.google.contain" - + "er.v1.ClusterAutoscaling\022N\n\034desired_bina" - + "ry_authorization\030\020 \001(\0132(.google.containe" - + "r.v1.BinaryAuthorization\022\037\n\027desired_logg" - + "ing_service\030\023 \001(\t\022\\\n$desired_resource_us" - + "age_export_config\030\025 \001(\0132..google.contain" - + "er.v1.ResourceUsageExportConfig\022U\n desir" - + "ed_vertical_pod_autoscaling\030\026 \001(\0132+.goog" - + "le.container.v1.VerticalPodAutoscaling\022Q" - + "\n\036desired_private_cluster_config\030\031 \001(\0132)" - + ".google.container.v1.PrivateClusterConfi" - + "g\022\\\n$desired_intra_node_visibility_confi" - + "g\030\032 \001(\0132..google.container.v1.IntraNodeV" - + "isibilityConfig\022K\n\033desired_default_snat_" - + "status\030\034 \001(\0132&.google.container.v1.Defau" - + "ltSnatStatus\022D\n\027desired_release_channel\030" - + "\037 \001(\0132#.google.container.v1.ReleaseChann" - + "el\022Q\n\037desired_l4ilb_subsetting_config\030\' " - + "\001(\0132(.google.container.v1.ILBSubsettingC" - + "onfig\022H\n\031desired_datapath_provider\0302 \001(\016" - + "2%.google.container.v1.DatapathProvider\022" - + "X\n\"desired_private_ipv6_google_access\0303 " - + "\001(\0162,.google.container.v1.PrivateIPv6Goo" - + "gleAccess\022L\n\033desired_notification_config" - + "\0307 \001(\0132\'.google.container.v1.Notificatio" - + "nConfig\022[\n#desired_authenticator_groups_" - + "config\030? \001(\0132..google.container.v1.Authe" - + "nticatorGroupsConfig\022B\n\026desired_logging_" - + "config\030@ \001(\0132\".google.container.v1.Loggi" - + "ngConfig\022H\n\031desired_monitoring_config\030A " - + "\001(\0132%.google.container.v1.MonitoringConf" - + "ig\022S\n\037desired_identity_service_config\030B " + + "ficateConfig\022#\n\026cluster_ca_certificate\030d" + + " \001(\tB\003\340A\003\022\037\n\022client_certificate\030e \001(\tB\003\340" + + "A\003\022\027\n\nclient_key\030f \001(\tB\003\340A\003\";\n\027ClientCer" + + "tificateConfig\022 \n\030issue_client_certifica" + + "te\030\001 \001(\010\"\366\007\n\014AddonsConfig\022C\n\023http_load_b" + + "alancing\030\001 \001(\0132&.google.container.v1.Htt" + + "pLoadBalancing\022Q\n\032horizontal_pod_autosca" + + "ling\030\002 \001(\0132-.google.container.v1.Horizon" + + "talPodAutoscaling\022J\n\024kubernetes_dashboar" + + "d\030\003 \001(\0132(.google.container.v1.Kubernetes" + + "DashboardB\002\030\001\022G\n\025network_policy_config\030\004" + + " \001(\0132(.google.container.v1.NetworkPolicy" + + "Config\022=\n\020cloud_run_config\030\007 \001(\0132#.googl" + + "e.container.v1.CloudRunConfig\022=\n\020dns_cac" + + "he_config\030\010 \001(\0132#.google.container.v1.Dn" + + "sCacheConfig\022K\n\027config_connector_config\030" + + "\n \001(\0132*.google.container.v1.ConfigConnec" + + "torConfig\022d\n%gce_persistent_disk_csi_dri" + + "ver_config\030\013 \001(\01325.google.container.v1.G" + + "cePersistentDiskCsiDriverConfig\022Y\n\037gcp_f" + + "ilestore_csi_driver_config\030\016 \001(\01320.googl" + + "e.container.v1.GcpFilestoreCsiDriverConf" + + "ig\022J\n\027gke_backup_agent_config\030\020 \001(\0132).go" + + "ogle.container.v1.GkeBackupAgentConfig\022O" + + "\n\032gcs_fuse_csi_driver_config\030\021 \001(\0132+.goo" + + "gle.container.v1.GcsFuseCsiDriverConfig\022" + + "F\n\022stateful_ha_config\030\022 \001(\0132%.google.con" + + "tainer.v1.StatefulHAConfigB\003\340A\001\022H\n\023ray_o" + + "perator_config\030\025 \001(\0132&.google.container." + + "v1.RayOperatorConfigB\003\340A\001\"%\n\021HttpLoadBal" + + "ancing\022\020\n\010disabled\030\001 \001(\010\",\n\030HorizontalPo" + + "dAutoscaling\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Kubern" + + "etesDashboard\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Netwo" + + "rkPolicyConfig\022\020\n\010disabled\030\001 \001(\010\"!\n\016DnsC" + + "acheConfig\022\017\n\007enabled\030\001 \001(\010\"9\n&PrivateCl" + + "usterMasterGlobalAccessConfig\022\017\n\007enabled" + + "\030\001 \001(\010\"\324\002\n\024PrivateClusterConfig\022\034\n\024enabl" + + "e_private_nodes\030\001 \001(\010\022\037\n\027enable_private_" + + "endpoint\030\002 \001(\010\022\036\n\026master_ipv4_cidr_block" + + "\030\003 \001(\t\022\035\n\020private_endpoint\030\004 \001(\tB\003\340A\003\022\034\n" + + "\017public_endpoint\030\005 \001(\tB\003\340A\003\022\031\n\014peering_n" + + "ame\030\007 \001(\tB\003\340A\003\022`\n\033master_global_access_c" + + "onfig\030\010 \001(\0132;.google.container.v1.Privat" + + "eClusterMasterGlobalAccessConfig\022#\n\033priv" + + "ate_endpoint_subnetwork\030\n \001(\t\"D\n\031Authent" + + "icatorGroupsConfig\022\017\n\007enabled\030\001 \001(\010\022\026\n\016s" + + "ecurity_group\030\002 \001(\t\"\356\001\n\016CloudRunConfig\022\020" + + "\n\010disabled\030\001 \001(\010\022P\n\022load_balancer_type\030\003" + + " \001(\01624.google.container.v1.CloudRunConfi" + + "g.LoadBalancerType\"x\n\020LoadBalancerType\022\"" + + "\n\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022\037\n\033LO" + + "AD_BALANCER_TYPE_EXTERNAL\020\001\022\037\n\033LOAD_BALA" + + "NCER_TYPE_INTERNAL\020\002\"(\n\025ConfigConnectorC" + + "onfig\022\017\n\007enabled\030\001 \001(\010\"3\n GcePersistentD" + + "iskCsiDriverConfig\022\017\n\007enabled\030\001 \001(\010\".\n\033G" + + "cpFilestoreCsiDriverConfig\022\017\n\007enabled\030\001 " + + "\001(\010\")\n\026GcsFuseCsiDriverConfig\022\017\n\007enabled" + + "\030\001 \001(\010\"\330\001\n\021RayOperatorConfig\022\017\n\007enabled\030" + + "\001 \001(\010\022U\n\032ray_cluster_logging_config\030\002 \001(" + + "\0132,.google.container.v1.RayClusterLoggin" + + "gConfigB\003\340A\001\022[\n\035ray_cluster_monitoring_c" + + "onfig\030\003 \001(\0132/.google.container.v1.RayClu" + + "sterMonitoringConfigB\003\340A\001\"\'\n\024GkeBackupAg" + + "entConfig\022\017\n\007enabled\030\001 \001(\010\"#\n\020StatefulHA" + + "Config\022\017\n\007enabled\030\001 \001(\010\"\216\002\n\036MasterAuthor" + + "izedNetworksConfig\022\017\n\007enabled\030\001 \001(\010\022R\n\013c" + + "idr_blocks\030\002 \003(\0132=.google.container.v1.M" + + "asterAuthorizedNetworksConfig.CidrBlock\022" + + ",\n\037gcp_public_cidrs_access_enabled\030\003 \001(\010" + + "H\000\210\001\001\0325\n\tCidrBlock\022\024\n\014display_name\030\001 \001(\t" + + "\022\022\n\ncidr_block\030\002 \001(\tB\"\n _gcp_public_cidr" + + "s_access_enabled\"\035\n\nLegacyAbac\022\017\n\007enable" + + "d\030\001 \001(\010\"\221\001\n\rNetworkPolicy\022=\n\010provider\030\001 " + + "\001(\0162+.google.container.v1.NetworkPolicy." + + "Provider\022\017\n\007enabled\030\002 \001(\010\"0\n\010Provider\022\030\n" + + "\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006CALICO\020\001\"\343\001\n\023" + + "BinaryAuthorization\022\023\n\007enabled\030\001 \001(\010B\002\030\001" + + "\022P\n\017evaluation_mode\030\002 \001(\01627.google.conta" + + "iner.v1.BinaryAuthorization.EvaluationMo" + + "de\"e\n\016EvaluationMode\022\037\n\033EVALUATION_MODE_" + + "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022$\n PROJECT_S" + + "INGLETON_POLICY_ENFORCE\020\002\"-\n\032PodCIDROver" + + "provisionConfig\022\017\n\007disable\030\001 \001(\010\"\275\006\n\022IPA" + + "llocationPolicy\022\026\n\016use_ip_aliases\030\001 \001(\010\022" + + "\031\n\021create_subnetwork\030\002 \001(\010\022\027\n\017subnetwork" + + "_name\030\003 \001(\t\022\035\n\021cluster_ipv4_cidr\030\004 \001(\tB\002" + + "\030\001\022\032\n\016node_ipv4_cidr\030\005 \001(\tB\002\030\001\022\036\n\022servic" + + "es_ipv4_cidr\030\006 \001(\tB\002\030\001\022$\n\034cluster_second" + + "ary_range_name\030\007 \001(\t\022%\n\035services_seconda" + + "ry_range_name\030\010 \001(\t\022\037\n\027cluster_ipv4_cidr" + + "_block\030\t \001(\t\022\034\n\024node_ipv4_cidr_block\030\n \001" + + "(\t\022 \n\030services_ipv4_cidr_block\030\013 \001(\t\022\033\n\023" + + "tpu_ipv4_cidr_block\030\r \001(\t\022\022\n\nuse_routes\030" + + "\017 \001(\010\0222\n\nstack_type\030\020 \001(\0162\036.google.conta" + + "iner.v1.StackType\022=\n\020ipv6_access_type\030\021 " + + "\001(\0162#.google.container.v1.IPv6AccessType" + + "\022V\n\035pod_cidr_overprovision_config\030\025 \001(\0132" + + "/.google.container.v1.PodCIDROverprovisi" + + "onConfig\022#\n\026subnet_ipv6_cidr_block\030\026 \001(\t" + + "B\003\340A\003\022%\n\030services_ipv6_cidr_block\030\027 \001(\tB" + + "\003\340A\003\022Y\n\034additional_pod_ranges_config\030\030 \001" + + "(\0132..google.container.v1.AdditionalPodRa" + + "ngesConfigB\003\340A\003\022/\n\"default_pod_ipv4_rang" + + "e_utilization\030\031 \001(\001B\003\340A\003\"\302\034\n\007Cluster\022\014\n\004" + + "name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\036\n\022initi" + + "al_node_count\030\003 \001(\005B\002\030\001\0228\n\013node_config\030\004" + + " \001(\0132\037.google.container.v1.NodeConfigB\002\030" + + "\001\0224\n\013master_auth\030\005 \001(\0132\037.google.containe" + + "r.v1.MasterAuth\022\027\n\017logging_service\030\006 \001(\t" + + "\022\032\n\022monitoring_service\030\007 \001(\t\022\017\n\007network\030" + + "\010 \001(\t\022\031\n\021cluster_ipv4_cidr\030\t \001(\t\0228\n\raddo" + + "ns_config\030\n \001(\0132!.google.container.v1.Ad" + + "donsConfig\022\022\n\nsubnetwork\030\013 \001(\t\0221\n\nnode_p" + + "ools\030\014 \003(\0132\035.google.container.v1.NodePoo" + + "l\022\021\n\tlocations\030\r \003(\t\022\037\n\027enable_kubernete" + + "s_alpha\030\016 \001(\010\022I\n\017resource_labels\030\017 \003(\01320" + + ".google.container.v1.Cluster.ResourceLab" + + "elsEntry\022\031\n\021label_fingerprint\030\020 \001(\t\0224\n\013l" + + "egacy_abac\030\022 \001(\0132\037.google.container.v1.L" + + "egacyAbac\022:\n\016network_policy\030\023 \001(\0132\".goog" + + "le.container.v1.NetworkPolicy\022E\n\024ip_allo" + + "cation_policy\030\024 \001(\0132\'.google.container.v" + + "1.IPAllocationPolicy\022^\n!master_authorize" + + "d_networks_config\030\026 \001(\01323.google.contain" + + "er.v1.MasterAuthorizedNetworksConfig\022B\n\022" + + "maintenance_policy\030\027 \001(\0132&.google.contai" + + "ner.v1.MaintenancePolicy\022F\n\024binary_autho" + + "rization\030\030 \001(\0132(.google.container.v1.Bin" + + "aryAuthorization\022<\n\013autoscaling\030\032 \001(\0132\'." + + "google.container.v1.ClusterAutoscaling\022:" + + "\n\016network_config\030\033 \001(\0132\".google.containe" + + "r.v1.NetworkConfig\022K\n\033default_max_pods_c" + + "onstraint\030\036 \001(\0132&.google.container.v1.Ma" + + "xPodsConstraint\022T\n\034resource_usage_export" + + "_config\030! \001(\0132..google.container.v1.Reso" + + "urceUsageExportConfig\022S\n\033authenticator_g" + + "roups_config\030\" \001(\0132..google.container.v1" + + ".AuthenticatorGroupsConfig\022I\n\026private_cl" + + "uster_config\030% \001(\0132).google.container.v1" + + ".PrivateClusterConfig\022D\n\023database_encryp" + + "tion\030& \001(\0132\'.google.container.v1.Databas" + + "eEncryption\022M\n\030vertical_pod_autoscaling\030" + + "\' \001(\0132+.google.container.v1.VerticalPodA" + + "utoscaling\022:\n\016shielded_nodes\030( \001(\0132\".goo" + + "gle.container.v1.ShieldedNodes\022<\n\017releas" + + "e_channel\030) \001(\0132#.google.container.v1.Re" + + "leaseChannel\022M\n\030workload_identity_config" + + "\030+ \001(\0132+.google.container.v1.WorkloadIde" + + "ntityConfig\022@\n\021mesh_certificates\030C \001(\0132%" + + ".google.container.v1.MeshCertificates\022I\n" + + "\026cost_management_config\030- \001(\0132).google.c" + + "ontainer.v1.CostManagementConfig\022D\n\023noti" + + "fication_config\0301 \001(\0132\'.google.container" + + ".v1.NotificationConfig\022B\n\022confidential_n" + + "odes\0302 \001(\0132&.google.container.v1.Confide" + + "ntialNodes\022K\n\027identity_service_config\0306 " + "\001(\0132*.google.container.v1.IdentityServic" - + "eConfig\022Z\n#desired_service_external_ips_" - + "config\030< \001(\0132-.google.container.v1.Servi" - + "ceExternalIPsConfig\022,\n\037desired_enable_pr" - + "ivate_endpoint\030G \001(\010H\000\210\001\001\022\036\n\026desired_mas" - + "ter_version\030d \001(\t\022<\n\023desired_gcfs_config" - + "\030m \001(\0132\037.google.container.v1.GcfsConfig\022" - + "T\n*desired_node_pool_auto_config_network" - + "_tags\030n \001(\0132 .google.container.v1.Networ" - + "kTags\022I\n\032desired_gateway_api_config\030r \001(" - + "\0132%.google.container.v1.GatewayAPIConfig" - + "\022\014\n\004etag\030s \001(\t\022T\n desired_node_pool_logg" - + "ing_config\030t \001(\0132*.google.container.v1.N" - + "odePoolLoggingConfig\0221\n\rdesired_fleet\030u " - + "\001(\0132\032.google.container.v1.Fleet\022:\n\022desir" - + "ed_stack_type\030w \001(\0162\036.google.container.v" - + "1.StackType\022T\n\034additional_pod_ranges_con" - + "fig\030x \001(\0132..google.container.v1.Addition" - + "alPodRangesConfig\022\\\n$removed_additional_" - + "pod_ranges_config\030y \001(\0132..google.contain" - + "er.v1.AdditionalPodRangesConfig\022C\n\024enabl" - + "e_k8s_beta_apis\030z \001(\0132%.google.container" - + ".v1.K8sBetaAPIConfig\022S\n\037desired_security" - + "_posture_config\030| \001(\0132*.google.container" - + ".v1.SecurityPostureConfig\022n\n\"desired_net" - + "work_performance_config\030} \001(\0132B.google.c" - + "ontainer.v1.NetworkConfig.ClusterNetwork" - + "PerformanceConfig\022/\n\"desired_enable_fqdn" - + "_network_policy\030~ \001(\010H\001\210\001\001\022\\\n(desired_au" - + "topilot_workload_policy_config\030\200\001 \001(\0132)." - + "google.container.v1.WorkloadPolicyConfig" - + "\022E\n\025desired_k8s_beta_apis\030\203\001 \001(\0132%.googl" - + "e.container.v1.K8sBetaAPIConfig\022I\n\031desir" - + "ed_containerd_config\030\206\001 \001(\0132%.google.con" - + "tainer.v1.ContainerdConfig\022-\n\037desired_en" - + "able_multi_networking\030\207\001 \001(\010H\002\210\001\001\022f\n3des" - + "ired_node_pool_auto_config_resource_mana" - + "ger_tags\030\210\001 \001(\0132(.google.container.v1.Re" - + "sourceManagerTags\022b\n$desired_in_transit_" - + "encryption_config\030\211\001 \001(\0162..google.contai" - + "ner.v1.InTransitEncryptionConfigH\003\210\001\001\022>\n" - + "0desired_enable_cilium_clusterwide_netwo" - + "rk_policy\030\212\001 \001(\010H\004\210\001\001\022L\n\033desired_node_ku" - + "belet_config\030\215\001 \001(\0132&.google.container.v" - + "1.NodeKubeletConfig\022]\n,desired_node_pool" - + "_auto_config_kubelet_config\030\216\001 \001(\0132&.goo" - + "gle.container.v1.NodeKubeletConfigB\"\n _d" - + "esired_enable_private_endpointB%\n#_desir" - + "ed_enable_fqdn_network_policyB\"\n _desire" - + "d_enable_multi_networkingB\'\n%_desired_in" - + "_transit_encryption_configB3\n1_desired_e" - + "nable_cilium_clusterwide_network_policy\"" - + "q\n\031AdditionalPodRangesConfig\022\027\n\017pod_rang" - + "e_names\030\001 \003(\t\022;\n\016pod_range_info\030\002 \003(\0132\036." - + "google.container.v1.RangeInfoB\003\340A\003\">\n\tRa" - + "ngeInfo\022\027\n\nrange_name\030\001 \001(\tB\003\340A\003\022\030\n\013util" - + "ization\030\002 \001(\001B\003\340A\003\"\264\010\n\tOperation\022\014\n\004name" - + "\030\001 \001(\t\022\020\n\004zone\030\002 \001(\tB\002\030\001\022;\n\016operation_ty" - + "pe\030\003 \001(\0162#.google.container.v1.Operation" - + ".Type\0225\n\006status\030\004 \001(\0162%.google.container" - + ".v1.Operation.Status\022\016\n\006detail\030\010 \001(\t\022\035\n\016" - + "status_message\030\005 \001(\tB\005\030\001\340A\003\022\021\n\tself_link" - + "\030\006 \001(\t\022\023\n\013target_link\030\007 \001(\t\022\020\n\010location\030" - + "\t \001(\t\022\022\n\nstart_time\030\n \001(\t\022\020\n\010end_time\030\013 " - + "\001(\t\022=\n\010progress\030\014 \001(\0132&.google.container" - + ".v1.OperationProgressB\003\340A\003\022D\n\022cluster_co" - + "nditions\030\r \003(\0132$.google.container.v1.Sta" - + "tusConditionB\002\030\001\022E\n\023nodepool_conditions\030" - + "\016 \003(\0132$.google.container.v1.StatusCondit" - + "ionB\002\030\001\022!\n\005error\030\017 \001(\0132\022.google.rpc.Stat" - + "us\"R\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007" - + "PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABOR" - + "TING\020\004\"\300\003\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n" - + "\016CREATE_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n" - + "\016UPGRADE_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016" - + "REPAIR_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020" - + "CREATE_NODE_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010" - + "\022\034\n\030SET_NODE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_R" - + "EPAIR_NODES\020\n\022\032\n\022AUTO_UPGRADE_NODES\020\013\032\002\010" - + "\001\022\022\n\nSET_LABELS\020\014\032\002\010\001\022\027\n\017SET_MASTER_AUTH" - + "\020\r\032\002\010\001\022\026\n\022SET_NODE_POOL_SIZE\020\016\022\032\n\022SET_NE" - + "TWORK_POLICY\020\017\032\002\010\001\022\036\n\026SET_MAINTENANCE_PO" - + "LICY\020\020\032\002\010\001\022\022\n\016RESIZE_CLUSTER\020\022\022\031\n\025FLEET_" - + "FEATURE_UPGRADE\020\023\"\273\002\n\021OperationProgress\022" - + "\014\n\004name\030\001 \001(\t\0225\n\006status\030\002 \001(\0162%.google.c" - + "ontainer.v1.Operation.Status\022>\n\007metrics\030" - + "\003 \003(\0132-.google.container.v1.OperationPro" - + "gress.Metric\0226\n\006stages\030\004 \003(\0132&.google.co" - + "ntainer.v1.OperationProgress\032i\n\006Metric\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\tint_value\030\002 \001(\003H\000\022\026" - + "\n\014double_value\030\003 \001(\001H\000\022\026\n\014string_value\030\004" - + " \001(\tH\000B\007\n\005value\"\204\001\n\024CreateClusterRequest" - + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" - + "\030\001\0222\n\007cluster\030\003 \001(\0132\034.google.container.v" - + "1.ClusterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"c\n\021GetClu" - + "sterRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004z" - + "one\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n" - + "\004name\030\005 \001(\t\"\237\001\n\024UpdateClusterRequest\022\026\n\n" - + "project_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026" - + "\n\ncluster_id\030\003 \001(\tB\002\030\001\0227\n\006update\030\004 \001(\0132\"" - + ".google.container.v1.ClusterUpdateB\003\340A\002\022" - + "\014\n\004name\030\005 \001(\t\"\323\013\n\025UpdateNodePoolRequest\022" - + "\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030" - + "\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_i" - + "d\030\004 \001(\tB\002\030\001\022\031\n\014node_version\030\005 \001(\tB\003\340A\002\022\027" - + "\n\nimage_type\030\006 \001(\tB\003\340A\002\022\014\n\004name\030\010 \001(\t\022\021\n" - + "\tlocations\030\r \003(\t\022M\n\030workload_metadata_co" - + "nfig\030\016 \001(\0132+.google.container.v1.Workloa" - + "dMetadataConfig\022G\n\020upgrade_settings\030\017 \001(" - + "\0132-.google.container.v1.NodePool.Upgrade" - + "Settings\022.\n\004tags\030\020 \001(\0132 .google.containe" - + "r.v1.NetworkTags\022/\n\006taints\030\021 \001(\0132\037.googl" - + "e.container.v1.NodeTaints\022/\n\006labels\030\022 \001(" - + "\0132\037.google.container.v1.NodeLabels\022?\n\021li" - + "nux_node_config\030\023 \001(\0132$.google.container" - + ".v1.LinuxNodeConfig\022>\n\016kubelet_config\030\024 " - + "\001(\0132&.google.container.v1.NodeKubeletCon" - + "fig\022C\n\023node_network_config\030\025 \001(\0132&.googl" - + "e.container.v1.NodeNetworkConfig\0224\n\013gcfs" - + "_config\030\026 \001(\0132\037.google.container.v1.Gcfs" - + "Config\022B\n\022confidential_nodes\030\027 \001(\0132&.goo" - + "gle.container.v1.ConfidentialNodes\022.\n\005gv" - + "nic\030\035 \001(\0132\037.google.container.v1.VirtualN" - + "IC\022\014\n\004etag\030\036 \001(\t\0224\n\013fast_socket\030\037 \001(\0132\037." - + "google.container.v1.FastSocket\022B\n\016loggin" - + "g_config\030 \001(\0132*.google.container.v1.Nod" - + "ePoolLoggingConfig\022<\n\017resource_labels\030! " - + "\001(\0132#.google.container.v1.ResourceLabels" - + "\022C\n\023windows_node_config\030\" \001(\0132&.google.c" - + "ontainer.v1.WindowsNodeConfig\022<\n\014acceler" - + "ators\030# \003(\0132&.google.container.v1.Accele" - + "ratorConfig\022\031\n\014machine_type\030$ \001(\tB\003\340A\001\022\026" - + "\n\tdisk_type\030% \001(\tB\003\340A\001\022\031\n\014disk_size_gb\030&" - + " \001(\003B\003\340A\001\022G\n\025resource_manager_tags\030\' \001(\013" - + "2(.google.container.v1.ResourceManagerTa" - + "gs\022@\n\021containerd_config\030( \001(\0132%.google.c" - + "ontainer.v1.ContainerdConfig\022M\n\023queued_p" - + "rovisioning\030* \001(\01320.google.container.v1." - + "NodePool.QueuedProvisioning\"\315\001\n\035SetNodeP" - + "oolAutoscalingRequest\022\026\n\nproject_id\030\001 \001(" - + "\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 " - + "\001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022B\n\013aut" - + "oscaling\030\005 \001(\0132(.google.container.v1.Nod" - + "ePoolAutoscalingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\210\001\n\030" - + "SetLoggingServiceRequest\022\026\n\nproject_id\030\001" - + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id" - + "\030\003 \001(\tB\002\030\001\022\034\n\017logging_service\030\004 \001(\tB\003\340A\002" - + "\022\014\n\004name\030\005 \001(\t\"\216\001\n\033SetMonitoringServiceR" - + "equest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002" - + " \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\037\n\022moni" - + "toring_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"" - + "\247\001\n\026SetAddonsConfigRequest\022\026\n\nproject_id" - + "\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_" - + "id\030\003 \001(\tB\002\030\001\022=\n\raddons_config\030\004 \001(\0132!.go" - + "ogle.container.v1.AddonsConfigB\003\340A\002\022\014\n\004n" - + "ame\030\006 \001(\t\"}\n\023SetLocationsRequest\022\026\n\nproj" + + "eConfig\022\026\n\tself_link\030d \001(\tB\003\340A\003\022\023\n\004zone\030" + + "e \001(\tB\005\030\001\340A\003\022\025\n\010endpoint\030f \001(\tB\003\340A\003\022\037\n\027i" + + "nitial_cluster_version\030g \001(\t\022#\n\026current_" + + "master_version\030h \001(\tB\003\340A\003\022#\n\024current_nod" + + "e_version\030i \001(\tB\005\030\001\340A\003\022\030\n\013create_time\030j " + + "\001(\tB\003\340A\003\0228\n\006status\030k \001(\0162#.google.contai" + + "ner.v1.Cluster.StatusB\003\340A\003\022\035\n\016status_mes" + + "sage\030l \001(\tB\005\030\001\340A\003\022 \n\023node_ipv4_cidr_size" + + "\030m \001(\005B\003\340A\003\022\037\n\022services_ipv4_cidr\030n \001(\tB" + + "\003\340A\003\022\"\n\023instance_group_urls\030o \003(\tB\005\030\001\340A\003" + + "\022!\n\022current_node_count\030p \001(\005B\005\030\001\340A\003\022\030\n\013e" + + "xpire_time\030q \001(\tB\003\340A\003\022\025\n\010location\030r \001(\tB" + + "\003\340A\003\022\022\n\nenable_tpu\030s \001(\010\022 \n\023tpu_ipv4_cid" + + "r_block\030t \001(\tB\003\340A\003\0228\n\nconditions\030v \003(\0132$" + + ".google.container.v1.StatusCondition\0222\n\t" + + "autopilot\030\200\001 \001(\0132\036.google.container.v1.A" + + "utopilot\022\020\n\002id\030\201\001 \001(\tB\003\340A\003\022G\n\022node_pool_" + + "defaults\030\203\001 \001(\0132%.google.container.v1.No" + + "dePoolDefaultsH\000\210\001\001\022;\n\016logging_config\030\204\001" + + " \001(\0132\".google.container.v1.LoggingConfig" + + "\022A\n\021monitoring_config\030\205\001 \001(\0132%.google.co" + + "ntainer.v1.MonitoringConfig\022G\n\025node_pool" + + "_auto_config\030\210\001 \001(\0132\'.google.container.v" + + "1.NodePoolAutoConfig\022\r\n\004etag\030\213\001 \001(\t\022*\n\005f" + + "leet\030\214\001 \001(\0132\032.google.container.v1.Fleet\022" + + "L\n\027security_posture_config\030\221\001 \001(\0132*.goog" + + "le.container.v1.SecurityPostureConfig\022D\n" + + "\024enable_k8s_beta_apis\030\217\001 \001(\0132%.google.co" + + "ntainer.v1.K8sBetaAPIConfig\022A\n\021enterpris" + + "e_config\030\225\001 \001(\0132%.google.container.v1.En" + + "terpriseConfig\022 \n\rsatisfies_pzs\030\230\001 \001(\010B\003" + + "\340A\003H\001\210\001\001\022 \n\rsatisfies_pzi\030\231\001 \001(\010B\003\340A\003H\002\210" + + "\001\001\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022\026\n\022STATUS_UN" + + "SPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING" + + "\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ERR" + + "OR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_node_pool_default" + + "sB\020\n\016_satisfies_pzsB\020\n\016_satisfies_pzi\"(\n" + + "\020K8sBetaAPIConfig\022\024\n\014enabled_apis\030\001 \003(\t\"" + + "\256\003\n\025SecurityPostureConfig\022B\n\004mode\030\001 \001(\0162" + + "/.google.container.v1.SecurityPostureCon" + + "fig.ModeH\000\210\001\001\022]\n\022vulnerability_mode\030\002 \001(" + + "\0162<.google.container.v1.SecurityPostureC" + + "onfig.VulnerabilityModeH\001\210\001\001\"E\n\004Mode\022\024\n\020" + + "MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t\n\005BASI" + + "C\020\002\022\016\n\nENTERPRISE\020\003\"\212\001\n\021VulnerabilityMod" + + "e\022\"\n\036VULNERABILITY_MODE_UNSPECIFIED\020\000\022\032\n" + + "\026VULNERABILITY_DISABLED\020\001\022\027\n\023VULNERABILI" + + "TY_BASIC\020\002\022\034\n\030VULNERABILITY_ENTERPRISE\020\003" + + "B\007\n\005_modeB\025\n\023_vulnerability_mode\"\332\001\n\022Nod" + + "ePoolAutoConfig\0226\n\014network_tags\030\001 \001(\0132 ." + + "google.container.v1.NetworkTags\022G\n\025resou" + + "rce_manager_tags\030\002 \001(\0132(.google.containe" + + "r.v1.ResourceManagerTags\022C\n\023node_kubelet" + + "_config\030\003 \001(\0132&.google.container.v1.Node" + + "KubeletConfig\"Y\n\020NodePoolDefaults\022E\n\024nod" + + "e_config_defaults\030\001 \001(\0132\'.google.contain" + + "er.v1.NodeConfigDefaults\"\225\002\n\022NodeConfigD" + + "efaults\0224\n\013gcfs_config\030\001 \001(\0132\037.google.co" + + "ntainer.v1.GcfsConfig\022B\n\016logging_config\030" + + "\003 \001(\0132*.google.container.v1.NodePoolLogg" + + "ingConfig\022@\n\021containerd_config\030\004 \001(\0132%.g" + + "oogle.container.v1.ContainerdConfig\022C\n\023n" + + "ode_kubelet_config\030\006 \001(\0132&.google.contai" + + "ner.v1.NodeKubeletConfig\"\220!\n\rClusterUpda" + + "te\022\034\n\024desired_node_version\030\004 \001(\t\022\"\n\032desi" + + "red_monitoring_service\030\005 \001(\t\022@\n\025desired_" + + "addons_config\030\006 \001(\0132!.google.container.v" + + "1.AddonsConfig\022\034\n\024desired_node_pool_id\030\007" + + " \001(\t\022\032\n\022desired_image_type\030\010 \001(\t\022L\n\033desi" + + "red_database_encryption\030. \001(\0132\'.google.c" + + "ontainer.v1.DatabaseEncryption\022U\n desire", + "d_workload_identity_config\030/ \001(\0132+.googl" + + "e.container.v1.WorkloadIdentityConfig\022H\n" + + "\031desired_mesh_certificates\030C \001(\0132%.googl" + + "e.container.v1.MeshCertificates\022B\n\026desir" + + "ed_shielded_nodes\0300 \001(\0132\".google.contain" + + "er.v1.ShieldedNodes\022Q\n\036desired_cost_mana" + + "gement_config\0301 \001(\0132).google.container.v" + + "1.CostManagementConfig\022:\n\022desired_dns_co" + + "nfig\0305 \001(\0132\036.google.container.v1.DNSConf" + + "ig\022O\n\035desired_node_pool_autoscaling\030\t \001(" + + "\0132(.google.container.v1.NodePoolAutoscal" + + "ing\022\031\n\021desired_locations\030\n \003(\t\022f\n)desire" + + "d_master_authorized_networks_config\030\014 \001(" + + "\01323.google.container.v1.MasterAuthorized" + + "NetworksConfig\022L\n\033desired_cluster_autosc" + + "aling\030\017 \001(\0132\'.google.container.v1.Cluste" + + "rAutoscaling\022N\n\034desired_binary_authoriza" + + "tion\030\020 \001(\0132(.google.container.v1.BinaryA" + + "uthorization\022\037\n\027desired_logging_service\030" + + "\023 \001(\t\022\\\n$desired_resource_usage_export_c" + + "onfig\030\025 \001(\0132..google.container.v1.Resour" + + "ceUsageExportConfig\022U\n desired_vertical_" + + "pod_autoscaling\030\026 \001(\0132+.google.container" + + ".v1.VerticalPodAutoscaling\022Q\n\036desired_pr" + + "ivate_cluster_config\030\031 \001(\0132).google.cont" + + "ainer.v1.PrivateClusterConfig\022\\\n$desired" + + "_intra_node_visibility_config\030\032 \001(\0132..go" + + "ogle.container.v1.IntraNodeVisibilityCon" + + "fig\022K\n\033desired_default_snat_status\030\034 \001(\013" + + "2&.google.container.v1.DefaultSnatStatus" + + "\022D\n\027desired_release_channel\030\037 \001(\0132#.goog" + + "le.container.v1.ReleaseChannel\022Q\n\037desire" + + "d_l4ilb_subsetting_config\030\' \001(\0132(.google" + + ".container.v1.ILBSubsettingConfig\022H\n\031des" + + "ired_datapath_provider\0302 \001(\0162%.google.co" + + "ntainer.v1.DatapathProvider\022X\n\"desired_p" + + "rivate_ipv6_google_access\0303 \001(\0162,.google" + + ".container.v1.PrivateIPv6GoogleAccess\022L\n" + + "\033desired_notification_config\0307 \001(\0132\'.goo" + + "gle.container.v1.NotificationConfig\022[\n#d" + + "esired_authenticator_groups_config\030? \001(\013" + + "2..google.container.v1.AuthenticatorGrou" + + "psConfig\022B\n\026desired_logging_config\030@ \001(\013" + + "2\".google.container.v1.LoggingConfig\022H\n\031" + + "desired_monitoring_config\030A \001(\0132%.google" + + ".container.v1.MonitoringConfig\022S\n\037desire" + + "d_identity_service_config\030B \001(\0132*.google" + + ".container.v1.IdentityServiceConfig\022Z\n#d" + + "esired_service_external_ips_config\030< \001(\013" + + "2-.google.container.v1.ServiceExternalIP" + + "sConfig\022,\n\037desired_enable_private_endpoi" + + "nt\030G \001(\010H\000\210\001\001\022\036\n\026desired_master_version\030" + + "d \001(\t\022<\n\023desired_gcfs_config\030m \001(\0132\037.goo" + + "gle.container.v1.GcfsConfig\022T\n*desired_n" + + "ode_pool_auto_config_network_tags\030n \001(\0132" + + " .google.container.v1.NetworkTags\022I\n\032des" + + "ired_gateway_api_config\030r \001(\0132%.google.c" + + "ontainer.v1.GatewayAPIConfig\022\014\n\004etag\030s \001" + + "(\t\022T\n desired_node_pool_logging_config\030t" + + " \001(\0132*.google.container.v1.NodePoolLoggi" + + "ngConfig\0221\n\rdesired_fleet\030u \001(\0132\032.google" + + ".container.v1.Fleet\022:\n\022desired_stack_typ" + + "e\030w \001(\0162\036.google.container.v1.StackType\022" + + "T\n\034additional_pod_ranges_config\030x \001(\0132.." + + "google.container.v1.AdditionalPodRangesC" + + "onfig\022\\\n$removed_additional_pod_ranges_c" + + "onfig\030y \001(\0132..google.container.v1.Additi" + + "onalPodRangesConfig\022C\n\024enable_k8s_beta_a" + + "pis\030z \001(\0132%.google.container.v1.K8sBetaA" + + "PIConfig\022S\n\037desired_security_posture_con" + + "fig\030| \001(\0132*.google.container.v1.Security" + + "PostureConfig\022n\n\"desired_network_perform" + + "ance_config\030} \001(\0132B.google.container.v1." + + "NetworkConfig.ClusterNetworkPerformanceC" + + "onfig\022/\n\"desired_enable_fqdn_network_pol" + + "icy\030~ \001(\010H\001\210\001\001\022\\\n(desired_autopilot_work" + + "load_policy_config\030\200\001 \001(\0132).google.conta" + + "iner.v1.WorkloadPolicyConfig\022E\n\025desired_" + + "k8s_beta_apis\030\203\001 \001(\0132%.google.container." + + "v1.K8sBetaAPIConfig\022I\n\031desired_container" + + "d_config\030\206\001 \001(\0132%.google.container.v1.Co" + + "ntainerdConfig\022-\n\037desired_enable_multi_n" + + "etworking\030\207\001 \001(\010H\002\210\001\001\022f\n3desired_node_po" + + "ol_auto_config_resource_manager_tags\030\210\001 " + + "\001(\0132(.google.container.v1.ResourceManage" + + "rTags\022b\n$desired_in_transit_encryption_c" + + "onfig\030\211\001 \001(\0162..google.container.v1.InTra" + + "nsitEncryptionConfigH\003\210\001\001\022>\n0desired_ena" + + "ble_cilium_clusterwide_network_policy\030\212\001" + + " \001(\010H\004\210\001\001\022L\n\033desired_node_kubelet_config" + + "\030\215\001 \001(\0132&.google.container.v1.NodeKubele" + + "tConfig\022]\n,desired_node_pool_auto_config" + + "_kubelet_config\030\216\001 \001(\0132&.google.containe" + + "r.v1.NodeKubeletConfigB\"\n _desired_enabl" + + "e_private_endpointB%\n#_desired_enable_fq" + + "dn_network_policyB\"\n _desired_enable_mul" + + "ti_networkingB\'\n%_desired_in_transit_enc" + + "ryption_configB3\n1_desired_enable_cilium" + + "_clusterwide_network_policy\"q\n\031Additiona" + + "lPodRangesConfig\022\027\n\017pod_range_names\030\001 \003(" + + "\t\022;\n\016pod_range_info\030\002 \003(\0132\036.google.conta" + + "iner.v1.RangeInfoB\003\340A\003\">\n\tRangeInfo\022\027\n\nr" + + "ange_name\030\001 \001(\tB\003\340A\003\022\030\n\013utilization\030\002 \001(" + + "\001B\003\340A\003\"\344\010\n\tOperation\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" + + "\023\n\004zone\030\002 \001(\tB\005\030\001\340A\003\022@\n\016operation_type\030\003" + + " \001(\0162#.google.container.v1.Operation.Typ" + + "eB\003\340A\003\022:\n\006status\030\004 \001(\0162%.google.containe" + + "r.v1.Operation.StatusB\003\340A\003\022\023\n\006detail\030\010 \001" + + "(\tB\003\340A\003\022\035\n\016status_message\030\005 \001(\tB\005\030\001\340A\003\022\026" + + "\n\tself_link\030\006 \001(\tB\003\340A\003\022\030\n\013target_link\030\007 " + + "\001(\tB\003\340A\003\022\025\n\010location\030\t \001(\tB\003\340A\003\022\027\n\nstart" + + "_time\030\n \001(\tB\003\340A\003\022\025\n\010end_time\030\013 \001(\tB\003\340A\003\022" + + "=\n\010progress\030\014 \001(\0132&.google.container.v1." + + "OperationProgressB\003\340A\003\022D\n\022cluster_condit" + + "ions\030\r \003(\0132$.google.container.v1.StatusC" + + "onditionB\002\030\001\022E\n\023nodepool_conditions\030\016 \003(" + + "\0132$.google.container.v1.StatusConditionB" + + "\002\030\001\022!\n\005error\030\017 \001(\0132\022.google.rpc.Status\"R" + + "\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007PEND" + + "ING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING" + + "\020\004\"\300\003\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CRE" + + "ATE_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UPG" + + "RADE_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REPA" + + "IR_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CREA" + + "TE_NODE_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034\n\030" + + "SET_NODE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_REPAI" + + "R_NODES\020\n\022\032\n\022AUTO_UPGRADE_NODES\020\013\032\002\010\001\022\022\n" + + "\nSET_LABELS\020\014\032\002\010\001\022\027\n\017SET_MASTER_AUTH\020\r\032\002" + + "\010\001\022\026\n\022SET_NODE_POOL_SIZE\020\016\022\032\n\022SET_NETWOR" + + "K_POLICY\020\017\032\002\010\001\022\036\n\026SET_MAINTENANCE_POLICY" + + "\020\020\032\002\010\001\022\022\n\016RESIZE_CLUSTER\020\022\022\031\n\025FLEET_FEAT" + + "URE_UPGRADE\020\023\"\273\002\n\021OperationProgress\022\014\n\004n" + + "ame\030\001 \001(\t\0225\n\006status\030\002 \001(\0162%.google.conta" + + "iner.v1.Operation.Status\022>\n\007metrics\030\003 \003(" + + "\0132-.google.container.v1.OperationProgres" + + "s.Metric\0226\n\006stages\030\004 \003(\0132&.google.contai" + + "ner.v1.OperationProgress\032i\n\006Metric\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\002\022\023\n\tint_value\030\002 \001(\003H\000\022\026\n\014do" + + "uble_value\030\003 \001(\001H\000\022\026\n\014string_value\030\004 \001(\t" + + "H\000B\007\n\005value\"\204\001\n\024CreateClusterRequest\022\026\n\n" + + "project_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\0222" + + "\n\007cluster\030\003 \001(\0132\034.google.container.v1.Cl" + + "usterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"c\n\021GetCluster" + + "Request\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030" + + "\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004nam" + + "e\030\005 \001(\t\"\237\001\n\024UpdateClusterRequest\022\026\n\nproj" + "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncl" - + "uster_id\030\003 \001(\tB\002\030\001\022\026\n\tlocations\030\004 \003(\tB\003\340" - + "A\002\022\014\n\004name\030\006 \001(\t\"\202\001\n\023UpdateMasterRequest" + + "uster_id\030\003 \001(\tB\002\030\001\0227\n\006update\030\004 \001(\0132\".goo" + + "gle.container.v1.ClusterUpdateB\003\340A\002\022\014\n\004n" + + "ame\030\005 \001(\t\"\323\013\n\025UpdateNodePoolRequest\022\026\n\np" + + "roject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n" + + "\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 " + + "\001(\tB\002\030\001\022\031\n\014node_version\030\005 \001(\tB\003\340A\002\022\027\n\nim" + + "age_type\030\006 \001(\tB\003\340A\002\022\014\n\004name\030\010 \001(\t\022\021\n\tloc" + + "ations\030\r \003(\t\022M\n\030workload_metadata_config" + + "\030\016 \001(\0132+.google.container.v1.WorkloadMet" + + "adataConfig\022G\n\020upgrade_settings\030\017 \001(\0132-." + + "google.container.v1.NodePool.UpgradeSett" + + "ings\022.\n\004tags\030\020 \001(\0132 .google.container.v1" + + ".NetworkTags\022/\n\006taints\030\021 \001(\0132\037.google.co" + + "ntainer.v1.NodeTaints\022/\n\006labels\030\022 \001(\0132\037." + + "google.container.v1.NodeLabels\022?\n\021linux_" + + "node_config\030\023 \001(\0132$.google.container.v1." + + "LinuxNodeConfig\022>\n\016kubelet_config\030\024 \001(\0132" + + "&.google.container.v1.NodeKubeletConfig\022" + + "C\n\023node_network_config\030\025 \001(\0132&.google.co" + + "ntainer.v1.NodeNetworkConfig\0224\n\013gcfs_con" + + "fig\030\026 \001(\0132\037.google.container.v1.GcfsConf" + + "ig\022B\n\022confidential_nodes\030\027 \001(\0132&.google." + + "container.v1.ConfidentialNodes\022.\n\005gvnic\030" + + "\035 \001(\0132\037.google.container.v1.VirtualNIC\022\014" + + "\n\004etag\030\036 \001(\t\0224\n\013fast_socket\030\037 \001(\0132\037.goog" + + "le.container.v1.FastSocket\022B\n\016logging_co" + + "nfig\030 \001(\0132*.google.container.v1.NodePoo" + + "lLoggingConfig\022<\n\017resource_labels\030! \001(\0132" + + "#.google.container.v1.ResourceLabels\022C\n\023" + + "windows_node_config\030\" \001(\0132&.google.conta" + + "iner.v1.WindowsNodeConfig\022<\n\014accelerator" + + "s\030# \003(\0132&.google.container.v1.Accelerato" + + "rConfig\022\031\n\014machine_type\030$ \001(\tB\003\340A\001\022\026\n\tdi" + + "sk_type\030% \001(\tB\003\340A\001\022\031\n\014disk_size_gb\030& \001(\003" + + "B\003\340A\001\022G\n\025resource_manager_tags\030\' \001(\0132(.g" + + "oogle.container.v1.ResourceManagerTags\022@" + + "\n\021containerd_config\030( \001(\0132%.google.conta" + + "iner.v1.ContainerdConfig\022M\n\023queued_provi" + + "sioning\030* \001(\01320.google.container.v1.Node" + + "Pool.QueuedProvisioning\"\315\001\n\035SetNodePoolA" + + "utoscalingRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030" + + "\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB" + + "\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022B\n\013autosca" + + "ling\030\005 \001(\0132(.google.container.v1.NodePoo" + + "lAutoscalingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\210\001\n\030SetL" + + "oggingServiceRequest\022\026\n\nproject_id\030\001 \001(\t" + + "B\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001" + + "(\tB\002\030\001\022\034\n\017logging_service\030\004 \001(\tB\003\340A\002\022\014\n\004" + + "name\030\005 \001(\t\"\216\001\n\033SetMonitoringServiceReque" + + "st\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\t" + + "B\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\037\n\022monitori" + + "ng_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\247\001\n\026" + + "SetAddonsConfigRequest\022\026\n\nproject_id\030\001 \001" + + "(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003" + + " \001(\tB\002\030\001\022=\n\raddons_config\030\004 \001(\0132!.google" + + ".container.v1.AddonsConfigB\003\340A\002\022\014\n\004name\030" + + "\006 \001(\t\"}\n\023SetLocationsRequest\022\026\n\nproject_" + + "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluste" + + "r_id\030\003 \001(\tB\002\030\001\022\026\n\tlocations\030\004 \003(\tB\003\340A\002\022\014" + + "\n\004name\030\006 \001(\t\"\202\001\n\023UpdateMasterRequest\022\026\n\n" + + "project_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026" + + "\n\ncluster_id\030\003 \001(\tB\002\030\001\022\033\n\016master_version" + + "\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\265\002\n\024SetMasterA" + + "uthRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zo" + + "ne\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022E\n\006" + + "action\030\004 \001(\01620.google.container.v1.SetMa" + + "sterAuthRequest.ActionB\003\340A\002\0224\n\006update\030\005 " + + "\001(\0132\037.google.container.v1.MasterAuthB\003\340A" + + "\002\022\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKNOWN\020\000\022\020" + + "\n\014SET_PASSWORD\020\001\022\025\n\021GENERATE_PASSWORD\020\002\022" + + "\020\n\014SET_USERNAME\020\003\"f\n\024DeleteClusterReques" + + "t\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB" + + "\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(" + + "\t\"O\n\023ListClustersRequest\022\026\n\nproject_id\030\001" + + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 \001" + + "(\t\"]\n\024ListClustersResponse\022.\n\010clusters\030\001" + + " \003(\0132\034.google.container.v1.Cluster\022\025\n\rmi" + + "ssing_zones\030\002 \003(\t\"g\n\023GetOperationRequest" + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" - + "\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\033\n\016master_ver" - + "sion\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\265\002\n\024SetMas" - + "terAuthRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020" + + "\030\001\022\030\n\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005 \001" + + "(\t\"Q\n\025ListOperationsRequest\022\026\n\nproject_i" + + "d\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030" + + "\004 \001(\t\"j\n\026CancelOperationRequest\022\026\n\nproje" + + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014ope" + + "ration_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"c\n\026Lis" + + "tOperationsResponse\0222\n\noperations\030\001 \003(\0132" + + "\036.google.container.v1.Operation\022\025\n\rmissi" + + "ng_zones\030\002 \003(\t\"P\n\026GetServerConfigRequest" + + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" + + "\030\001\022\014\n\004name\030\004 \001(\t\"\364\002\n\014ServerConfig\022\037\n\027def" + + "ault_cluster_version\030\001 \001(\t\022\033\n\023valid_node" + + "_versions\030\003 \003(\t\022\032\n\022default_image_type\030\004 " + + "\001(\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025valid_" + + "master_versions\030\006 \003(\t\022H\n\010channels\030\t \003(\0132" + + "6.google.container.v1.ServerConfig.Relea" + + "seChannelConfig\032\205\001\n\024ReleaseChannelConfig" + + "\022<\n\007channel\030\001 \001(\0162+.google.container.v1." + + "ReleaseChannel.Channel\022\027\n\017default_versio" + + "n\030\002 \001(\t\022\026\n\016valid_versions\030\004 \003(\t\"\240\001\n\025Crea" + + "teNodePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030" + + "\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB" + + "\002\030\001\0225\n\tnode_pool\030\004 \001(\0132\035.google.containe" + + "r.v1.NodePoolB\003\340A\002\022\016\n\006parent\030\006 \001(\t\"\201\001\n\025D" + + "eleteNodePoolRequest\022\026\n\nproject_id\030\001 \001(\t" + + "B\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001" + + "(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name" + + "\030\006 \001(\t\"h\n\024ListNodePoolsRequest\022\026\n\nprojec" + + "t_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclus" + + "ter_id\030\003 \001(\tB\002\030\001\022\016\n\006parent\030\005 \001(\t\"~\n\022GetN" + + "odePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020" + "\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001" - + "\022E\n\006action\030\004 \001(\01620.google.container.v1.S" - + "etMasterAuthRequest.ActionB\003\340A\002\0224\n\006updat" - + "e\030\005 \001(\0132\037.google.container.v1.MasterAuth" - + "B\003\340A\002\022\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKNOWN" - + "\020\000\022\020\n\014SET_PASSWORD\020\001\022\025\n\021GENERATE_PASSWOR" - + "D\020\002\022\020\n\014SET_USERNAME\020\003\"f\n\024DeleteClusterRe" - + "quest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 " - + "\001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030" - + "\004 \001(\t\"O\n\023ListClustersRequest\022\026\n\nproject_" - + "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent" - + "\030\004 \001(\t\"]\n\024ListClustersResponse\022.\n\010cluste" - + "rs\030\001 \003(\0132\034.google.container.v1.Cluster\022\025" - + "\n\rmissing_zones\030\002 \003(\t\"g\n\023GetOperationReq" - + "uest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001" - + "(\tB\002\030\001\022\030\n\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name" - + "\030\005 \001(\t\"Q\n\025ListOperationsRequest\022\026\n\nproje" - + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006par" - + "ent\030\004 \001(\t\"j\n\026CancelOperationRequest\022\026\n\np" - + "roject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n" - + "\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"c\n" - + "\026ListOperationsResponse\0222\n\noperations\030\001 " - + "\003(\0132\036.google.container.v1.Operation\022\025\n\rm" - + "issing_zones\030\002 \003(\t\"P\n\026GetServerConfigReq" - + "uest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001" - + "(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"\364\002\n\014ServerConfig\022\037\n" - + "\027default_cluster_version\030\001 \001(\t\022\033\n\023valid_" - + "node_versions\030\003 \003(\t\022\032\n\022default_image_typ" - + "e\030\004 \001(\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025va" - + "lid_master_versions\030\006 \003(\t\022H\n\010channels\030\t " - + "\003(\01326.google.container.v1.ServerConfig.R" - + "eleaseChannelConfig\032\205\001\n\024ReleaseChannelCo" - + "nfig\022<\n\007channel\030\001 \001(\0162+.google.container" - + ".v1.ReleaseChannel.Channel\022\027\n\017default_ve" - + "rsion\030\002 \001(\t\022\026\n\016valid_versions\030\004 \003(\t\"\240\001\n\025" - + "CreateNodePoolRequest\022\026\n\nproject_id\030\001 \001(" - + "\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 " - + "\001(\tB\002\030\001\0225\n\tnode_pool\030\004 \001(\0132\035.google.cont" - + "ainer.v1.NodePoolB\003\340A\002\022\016\n\006parent\030\006 \001(\t\"\201" - + "\001\n\025DeleteNodePoolRequest\022\026\n\nproject_id\030\001" - + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id" - + "\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004" - + "name\030\006 \001(\t\"h\n\024ListNodePoolsRequest\022\026\n\npr" - + "oject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" - + "cluster_id\030\003 \001(\tB\002\030\001\022\016\n\006parent\030\005 \001(\t\"~\n\022" - + "GetNodePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002" + + "\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t" + + "\"\237\003\n\021BlueGreenSettings\022_\n\027standard_rollo" + + "ut_policy\030\001 \001(\0132<.google.container.v1.Bl" + + "ueGreenSettings.StandardRolloutPolicyH\000\022" + + "?\n\027node_pool_soak_duration\030\002 \001(\0132\031.googl" + + "e.protobuf.DurationH\001\210\001\001\032\271\001\n\025StandardRol" + + "loutPolicy\022\032\n\020batch_percentage\030\001 \001(\002H\000\022\032" + + "\n\020batch_node_count\030\002 \001(\005H\000\022;\n\023batch_soak" + + "_duration\030\003 \001(\0132\031.google.protobuf.Durati" + + "onH\001\210\001\001B\023\n\021update_batch_sizeB\026\n\024_batch_s" + + "oak_durationB\020\n\016rollout_policyB\032\n\030_node_" + + "pool_soak_duration\"\321\020\n\010NodePool\022\014\n\004name\030" + + "\001 \001(\t\022/\n\006config\030\002 \001(\0132\037.google.container" + + ".v1.NodeConfig\022\032\n\022initial_node_count\030\003 \001" + + "(\005\022\021\n\tlocations\030\r \003(\t\022>\n\016network_config\030" + + "\016 \001(\0132&.google.container.v1.NodeNetworkC" + + "onfig\022\026\n\tself_link\030d \001(\tB\003\340A\003\022\017\n\007version" + + "\030e \001(\t\022 \n\023instance_group_urls\030f \003(\tB\003\340A\003" + + "\0229\n\006status\030g \001(\0162$.google.container.v1.N" + + "odePool.StatusB\003\340A\003\022\035\n\016status_message\030h " + + "\001(\tB\005\030\001\340A\003\022=\n\013autoscaling\030\004 \001(\0132(.google" + + ".container.v1.NodePoolAutoscaling\0227\n\nman" + + "agement\030\005 \001(\0132#.google.container.v1.Node" + + "Management\022C\n\023max_pods_constraint\030\006 \001(\0132" + + "&.google.container.v1.MaxPodsConstraint\022" + + "8\n\nconditions\030i \003(\0132$.google.container.v" + + "1.StatusCondition\022\037\n\022pod_ipv4_cidr_size\030" + + "\007 \001(\005B\003\340A\003\022G\n\020upgrade_settings\030k \001(\0132-.g" + + "oogle.container.v1.NodePool.UpgradeSetti" + + "ngs\022G\n\020placement_policy\030l \001(\0132-.google.c" + + "ontainer.v1.NodePool.PlacementPolicy\022B\n\013" + + "update_info\030m \001(\0132(.google.container.v1." + + "NodePool.UpdateInfoB\003\340A\003\022\014\n\004etag\030n \001(\t\022M" + + "\n\023queued_provisioning\030p \001(\01320.google.con" + + "tainer.v1.NodePool.QueuedProvisioning\022M\n" + + "\030best_effort_provisioning\030q \001(\0132+.google" + + ".container.v1.BestEffortProvisioning\032\360\001\n" + + "\017UpgradeSettings\022\021\n\tmax_surge\030\001 \001(\005\022\027\n\017m" + + "ax_unavailable\030\002 \001(\005\022B\n\010strategy\030\003 \001(\0162+" + + ".google.container.v1.NodePoolUpdateStrat" + + "egyH\000\210\001\001\022H\n\023blue_green_settings\030\004 \001(\0132&." + + "google.container.v1.BlueGreenSettingsH\001\210" + + "\001\001B\013\n\t_strategyB\026\n\024_blue_green_settings\032" + + "\210\004\n\nUpdateInfo\022O\n\017blue_green_info\030\001 \001(\0132" + + "6.google.container.v1.NodePool.UpdateInf" + + "o.BlueGreenInfo\032\250\003\n\rBlueGreenInfo\022K\n\005pha" + + "se\030\001 \001(\0162<.google.container.v1.NodePool." + + "UpdateInfo.BlueGreenInfo.Phase\022 \n\030blue_i" + + "nstance_group_urls\030\002 \003(\t\022!\n\031green_instan" + + "ce_group_urls\030\003 \003(\t\022%\n\035blue_pool_deletio" + + "n_start_time\030\004 \001(\t\022\032\n\022green_pool_version" + + "\030\005 \001(\t\"\301\001\n\005Phase\022\025\n\021PHASE_UNSPECIFIED\020\000\022" + + "\022\n\016UPDATE_STARTED\020\001\022\027\n\023CREATING_GREEN_PO" + + "OL\020\002\022\027\n\023CORDONING_BLUE_POOL\020\003\022\026\n\022DRAININ" + + "G_BLUE_POOL\020\004\022\025\n\021NODE_POOL_SOAKING\020\005\022\026\n\022" + + "DELETING_BLUE_POOL\020\006\022\024\n\020ROLLBACK_STARTED" + + "\020\007\032\256\001\n\017PlacementPolicy\022@\n\004type\030\001 \001(\01622.g" + + "oogle.container.v1.NodePool.PlacementPol" + + "icy.Type\022\031\n\014tpu_topology\030\002 \001(\tB\003\340A\001\022\023\n\013p" + + "olicy_name\030\003 \001(\t\")\n\004Type\022\024\n\020TYPE_UNSPECI" + + "FIED\020\000\022\013\n\007COMPACT\020\001\032%\n\022QueuedProvisionin" + + "g\022\017\n\007enabled\030\001 \001(\010\"\201\001\n\006Status\022\026\n\022STATUS_" + + "UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNI" + + "NG\020\002\022\026\n\022RUNNING_WITH_ERROR\020\003\022\017\n\013RECONCIL" + + "ING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005ERROR\020\006\"}\n\016NodeMa" + + "nagement\022\024\n\014auto_upgrade\030\001 \001(\010\022\023\n\013auto_r" + + "epair\030\002 \001(\010\022@\n\017upgrade_options\030\n \001(\0132\'.g" + + "oogle.container.v1.AutoUpgradeOptions\"F\n" + + "\026BestEffortProvisioning\022\017\n\007enabled\030\001 \001(\010" + + "\022\033\n\023min_provision_nodes\030\002 \001(\005\"T\n\022AutoUpg" + + "radeOptions\022$\n\027auto_upgrade_start_time\030\001" + + " \001(\tB\003\340A\003\022\030\n\013description\030\002 \001(\tB\003\340A\003\"e\n\021M" + + "aintenancePolicy\0226\n\006window\030\001 \001(\0132&.googl" + + "e.container.v1.MaintenanceWindow\022\030\n\020reso" + + "urce_version\030\003 \001(\t\"\366\002\n\021MaintenanceWindow" + + "\022O\n\030daily_maintenance_window\030\002 \001(\0132+.goo" + + "gle.container.v1.DailyMaintenanceWindowH" + + "\000\022D\n\020recurring_window\030\003 \001(\0132(.google.con" + + "tainer.v1.RecurringTimeWindowH\000\022a\n\026maint" + + "enance_exclusions\030\004 \003(\0132A.google.contain" + + "er.v1.MaintenanceWindow.MaintenanceExclu" + + "sionsEntry\032]\n\032MaintenanceExclusionsEntry" + + "\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.google.co" + + "ntainer.v1.TimeWindow:\0028\001B\010\n\006policy\"\320\001\n\n" + + "TimeWindow\022Y\n\035maintenance_exclusion_opti" + + "ons\030\003 \001(\01320.google.container.v1.Maintena" + + "nceExclusionOptionsH\000\022.\n\nstart_time\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\022,\n\010end_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\t\n\007o" + + "ptions\"\264\001\n\033MaintenanceExclusionOptions\022E" + + "\n\005scope\030\001 \001(\01626.google.container.v1.Main" + + "tenanceExclusionOptions.Scope\"N\n\005Scope\022\017" + + "\n\013NO_UPGRADES\020\000\022\025\n\021NO_MINOR_UPGRADES\020\001\022\035" + + "\n\031NO_MINOR_OR_NODE_UPGRADES\020\002\"Z\n\023Recurri" + + "ngTimeWindow\022/\n\006window\030\001 \001(\0132\037.google.co" + + "ntainer.v1.TimeWindow\022\022\n\nrecurrence\030\002 \001(" + + "\t\"C\n\026DailyMaintenanceWindow\022\022\n\nstart_tim" + + "e\030\002 \001(\t\022\025\n\010duration\030\003 \001(\tB\003\340A\003\"\306\001\n\034SetNo" + + "dePoolManagementRequest\022\026\n\nproject_id\030\001 " + + "\001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030" + + "\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022<\n\nm" + + "anagement\030\005 \001(\0132#.google.container.v1.No" + + "deManagementB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\233\001\n\026SetN" + + "odePoolSizeRequest\022\026\n\nproject_id\030\001 \001(\tB\002" + "\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\t" - + "B\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006" - + " \001(\t\"\237\003\n\021BlueGreenSettings\022_\n\027standard_r" - + "ollout_policy\030\001 \001(\0132<.google.container.v" - + "1.BlueGreenSettings.StandardRolloutPolic" - + "yH\000\022?\n\027node_pool_soak_duration\030\002 \001(\0132\031.g" - + "oogle.protobuf.DurationH\001\210\001\001\032\271\001\n\025Standar" - + "dRolloutPolicy\022\032\n\020batch_percentage\030\001 \001(\002" - + "H\000\022\032\n\020batch_node_count\030\002 \001(\005H\000\022;\n\023batch_" - + "soak_duration\030\003 \001(\0132\031.google.protobuf.Du" - + "rationH\001\210\001\001B\023\n\021update_batch_sizeB\026\n\024_bat" - + "ch_soak_durationB\020\n\016rollout_policyB\032\n\030_n" - + "ode_pool_soak_duration\"\272\020\n\010NodePool\022\014\n\004n" - + "ame\030\001 \001(\t\022/\n\006config\030\002 \001(\0132\037.google.conta" - + "iner.v1.NodeConfig\022\032\n\022initial_node_count" - + "\030\003 \001(\005\022\021\n\tlocations\030\r \003(\t\022>\n\016network_con" - + "fig\030\016 \001(\0132&.google.container.v1.NodeNetw" - + "orkConfig\022\021\n\tself_link\030d \001(\t\022\017\n\007version\030" - + "e \001(\t\022\033\n\023instance_group_urls\030f \003(\t\0224\n\006st" - + "atus\030g \001(\0162$.google.container.v1.NodePoo" - + "l.Status\022\032\n\016status_message\030h \001(\tB\002\030\001\022=\n\013" - + "autoscaling\030\004 \001(\0132(.google.container.v1." - + "NodePoolAutoscaling\0227\n\nmanagement\030\005 \001(\0132" - + "#.google.container.v1.NodeManagement\022C\n\023" - + "max_pods_constraint\030\006 \001(\0132&.google.conta" - + "iner.v1.MaxPodsConstraint\0228\n\nconditions\030" - + "i \003(\0132$.google.container.v1.StatusCondit" - + "ion\022\032\n\022pod_ipv4_cidr_size\030\007 \001(\005\022G\n\020upgra" - + "de_settings\030k \001(\0132-.google.container.v1." - + "NodePool.UpgradeSettings\022G\n\020placement_po" - + "licy\030l \001(\0132-.google.container.v1.NodePoo" - + "l.PlacementPolicy\022B\n\013update_info\030m \001(\0132(" - + ".google.container.v1.NodePool.UpdateInfo" - + "B\003\340A\003\022\014\n\004etag\030n \001(\t\022M\n\023queued_provisioni" - + "ng\030p \001(\01320.google.container.v1.NodePool." - + "QueuedProvisioning\022M\n\030best_effort_provis" - + "ioning\030q \001(\0132+.google.container.v1.BestE" - + "ffortProvisioning\032\360\001\n\017UpgradeSettings\022\021\n" - + "\tmax_surge\030\001 \001(\005\022\027\n\017max_unavailable\030\002 \001(" - + "\005\022B\n\010strategy\030\003 \001(\0162+.google.container.v" - + "1.NodePoolUpdateStrategyH\000\210\001\001\022H\n\023blue_gr" - + "een_settings\030\004 \001(\0132&.google.container.v1" - + ".BlueGreenSettingsH\001\210\001\001B\013\n\t_strategyB\026\n\024" - + "_blue_green_settings\032\210\004\n\nUpdateInfo\022O\n\017b" - + "lue_green_info\030\001 \001(\01326.google.container." - + "v1.NodePool.UpdateInfo.BlueGreenInfo\032\250\003\n" - + "\rBlueGreenInfo\022K\n\005phase\030\001 \001(\0162<.google.c" - + "ontainer.v1.NodePool.UpdateInfo.BlueGree" - + "nInfo.Phase\022 \n\030blue_instance_group_urls\030" - + "\002 \003(\t\022!\n\031green_instance_group_urls\030\003 \003(\t" - + "\022%\n\035blue_pool_deletion_start_time\030\004 \001(\t\022" - + "\032\n\022green_pool_version\030\005 \001(\t\"\301\001\n\005Phase\022\025\n" - + "\021PHASE_UNSPECIFIED\020\000\022\022\n\016UPDATE_STARTED\020\001" - + "\022\027\n\023CREATING_GREEN_POOL\020\002\022\027\n\023CORDONING_B" - + "LUE_POOL\020\003\022\026\n\022DRAINING_BLUE_POOL\020\004\022\025\n\021NO" - + "DE_POOL_SOAKING\020\005\022\026\n\022DELETING_BLUE_POOL\020" - + "\006\022\024\n\020ROLLBACK_STARTED\020\007\032\256\001\n\017PlacementPol" - + "icy\022@\n\004type\030\001 \001(\01622.google.container.v1." - + "NodePool.PlacementPolicy.Type\022\031\n\014tpu_top" - + "ology\030\002 \001(\tB\003\340A\001\022\023\n\013policy_name\030\003 \001(\t\")\n" - + "\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007COMPACT\020\001" - + "\032%\n\022QueuedProvisioning\022\017\n\007enabled\030\001 \001(\010\"" - + "\201\001\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PR" - + "OVISIONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WIT" - + "H_ERROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020\005" - + "\022\t\n\005ERROR\020\006\"}\n\016NodeManagement\022\024\n\014auto_up" - + "grade\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022@\n\017upgr" - + "ade_options\030\n \001(\0132\'.google.container.v1." - + "AutoUpgradeOptions\"F\n\026BestEffortProvisio" - + "ning\022\017\n\007enabled\030\001 \001(\010\022\033\n\023min_provision_n" - + "odes\030\002 \001(\005\"J\n\022AutoUpgradeOptions\022\037\n\027auto" - + "_upgrade_start_time\030\001 \001(\t\022\023\n\013description" - + "\030\002 \001(\t\"e\n\021MaintenancePolicy\0226\n\006window\030\001 " - + "\001(\0132&.google.container.v1.MaintenanceWin" - + "dow\022\030\n\020resource_version\030\003 \001(\t\"\366\002\n\021Mainte" - + "nanceWindow\022O\n\030daily_maintenance_window\030" - + "\002 \001(\0132+.google.container.v1.DailyMainten" - + "anceWindowH\000\022D\n\020recurring_window\030\003 \001(\0132(" - + ".google.container.v1.RecurringTimeWindow" - + "H\000\022a\n\026maintenance_exclusions\030\004 \003(\0132A.goo" - + "gle.container.v1.MaintenanceWindow.Maint" - + "enanceExclusionsEntry\032]\n\032MaintenanceExcl" - + "usionsEntry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132" - + "\037.google.container.v1.TimeWindow:\0028\001B\010\n\006" - + "policy\"\320\001\n\nTimeWindow\022Y\n\035maintenance_exc" - + "lusion_options\030\003 \001(\01320.google.container." - + "v1.MaintenanceExclusionOptionsH\000\022.\n\nstar" - + "t_time\030\001 \001(\0132\032.google.protobuf.Timestamp" - + "\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf.Tim" - + "estampB\t\n\007options\"\264\001\n\033MaintenanceExclusi" - + "onOptions\022E\n\005scope\030\001 \001(\01626.google.contai" - + "ner.v1.MaintenanceExclusionOptions.Scope" - + "\"N\n\005Scope\022\017\n\013NO_UPGRADES\020\000\022\025\n\021NO_MINOR_U" - + "PGRADES\020\001\022\035\n\031NO_MINOR_OR_NODE_UPGRADES\020\002" - + "\"Z\n\023RecurringTimeWindow\022/\n\006window\030\001 \001(\0132" - + "\037.google.container.v1.TimeWindow\022\022\n\nrecu" - + "rrence\030\002 \001(\t\">\n\026DailyMaintenanceWindow\022\022" - + "\n\nstart_time\030\002 \001(\t\022\020\n\010duration\030\003 \001(\t\"\306\001\n" - + "\034SetNodePoolManagementRequest\022\026\n\nproject" - + "_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclust" - + "er_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030" - + "\001\022<\n\nmanagement\030\005 \001(\0132#.google.container" - + ".v1.NodeManagementB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\233\001" - + "\n\026SetNodePoolSizeRequest\022\026\n\nproject_id\030\001" - + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id" - + "\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\027\n\n" - + "node_count\030\005 \001(\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\".\n\036C" - + "ompleteNodePoolUpgradeRequest\022\014\n\004name\030\001 " - + "\001(\t\"\237\001\n\036RollbackNodePoolUpgradeRequest\022\026" - + "\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001" - + "\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id" - + "\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\022\023\n\013respect_pdb\030" - + "\007 \001(\010\"J\n\025ListNodePoolsResponse\0221\n\nnode_p" - + "ools\030\001 \003(\0132\035.google.container.v1.NodePoo" - + "l\"\257\003\n\022ClusterAutoscaling\022$\n\034enable_node_" - + "autoprovisioning\030\001 \001(\010\022;\n\017resource_limit" - + "s\030\002 \003(\0132\".google.container.v1.ResourceLi" - + "mit\022W\n\023autoscaling_profile\030\003 \001(\0162:.googl" - + "e.container.v1.ClusterAutoscaling.Autosc" - + "alingProfile\022b\n#autoprovisioning_node_po" - + "ol_defaults\030\004 \001(\01325.google.container.v1." - + "AutoprovisioningNodePoolDefaults\022\"\n\032auto" - + "provisioning_locations\030\005 \003(\t\"U\n\022Autoscal" - + "ingProfile\022\027\n\023PROFILE_UNSPECIFIED\020\000\022\030\n\024O" - + "PTIMIZE_UTILIZATION\020\001\022\014\n\010BALANCED\020\002\"\370\003\n " - + "AutoprovisioningNodePoolDefaults\022\024\n\014oaut" - + "h_scopes\030\001 \003(\t\022\027\n\017service_account\030\002 \001(\t\022" - + "G\n\020upgrade_settings\030\003 \001(\0132-.google.conta" - + "iner.v1.NodePool.UpgradeSettings\0227\n\nmana" - + "gement\030\004 \001(\0132#.google.container.v1.NodeM" - + "anagement\022\034\n\020min_cpu_platform\030\005 \001(\tB\002\030\001\022" - + "\024\n\014disk_size_gb\030\006 \001(\005\022\021\n\tdisk_type\030\007 \001(\t" - + "\022M\n\030shielded_instance_config\030\010 \001(\0132+.goo" - + "gle.container.v1.ShieldedInstanceConfig\022" - + "\031\n\021boot_disk_kms_key\030\t \001(\t\022\022\n\nimage_type" - + "\030\n \001(\t\0223\n&insecure_kubelet_readonly_port" - + "_enabled\030\r \001(\010H\000\210\001\001B)\n\'_insecure_kubelet" - + "_readonly_port_enabled\"H\n\rResourceLimit\022" - + "\025\n\rresource_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022" - + "\017\n\007maximum\030\003 \001(\003\"\307\002\n\023NodePoolAutoscaling" - + "\022\017\n\007enabled\030\001 \001(\010\022\026\n\016min_node_count\030\002 \001(" - + "\005\022\026\n\016max_node_count\030\003 \001(\005\022\027\n\017autoprovisi" - + "oned\030\004 \001(\010\022P\n\017location_policy\030\005 \001(\01627.go" - + "ogle.container.v1.NodePoolAutoscaling.Lo" - + "cationPolicy\022\034\n\024total_min_node_count\030\006 \001" - + "(\005\022\034\n\024total_max_node_count\030\007 \001(\005\"H\n\016Loca" - + "tionPolicy\022\037\n\033LOCATION_POLICY_UNSPECIFIE" - + "D\020\000\022\014\n\010BALANCED\020\001\022\007\n\003ANY\020\002\"\222\002\n\020SetLabels" - + "Request\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030" - + "\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022W\n\017res" - + "ource_labels\030\004 \003(\01329.google.container.v1" - + ".SetLabelsRequest.ResourceLabelsEntryB\003\340" - + "A\002\022\036\n\021label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n\004na" - + "me\030\007 \001(\t\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001", - " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"|\n\024SetLegacyAbac" - + "Request\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030" - + "\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\024\n\007ena" - + "bled\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\204\001\n\026StartI" - + "PRotationRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001" - + "\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002" - + "\030\001\022\014\n\004name\030\006 \001(\t\022\032\n\022rotate_credentials\030\007" - + " \001(\010\"k\n\031CompleteIPRotationRequest\022\026\n\npro" - + "ject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nc" - + "luster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"\305\002\n\021Ac" - + "celeratorConfig\022\031\n\021accelerator_count\030\001 \001" - + "(\003\022\030\n\020accelerator_type\030\002 \001(\t\022\032\n\022gpu_part" - + "ition_size\030\003 \001(\t\022F\n\022gpu_sharing_config\030\005" - + " \001(\0132%.google.container.v1.GPUSharingCon" - + "figH\000\210\001\001\022]\n\036gpu_driver_installation_conf" - + "ig\030\006 \001(\01320.google.container.v1.GPUDriver" - + "InstallationConfigH\001\210\001\001B\025\n\023_gpu_sharing_" - + "configB!\n\037_gpu_driver_installation_confi" - + "g\"\203\002\n\020GPUSharingConfig\022\"\n\032max_shared_cli" - + "ents_per_gpu\030\001 \001(\003\022[\n\024gpu_sharing_strate" - + "gy\030\002 \001(\01628.google.container.v1.GPUSharin" - + "gConfig.GPUSharingStrategyH\000\210\001\001\"U\n\022GPUSh" - + "aringStrategy\022$\n GPU_SHARING_STRATEGY_UN" - + "SPECIFIED\020\000\022\020\n\014TIME_SHARING\020\001\022\007\n\003MPS\020\002B\027" - + "\n\025_gpu_sharing_strategy\"\204\002\n\033GPUDriverIns" - + "tallationConfig\022b\n\022gpu_driver_version\030\001 " - + "\001(\0162A.google.container.v1.GPUDriverInsta" - + "llationConfig.GPUDriverVersionH\000\210\001\001\"j\n\020G" - + "PUDriverVersion\022\"\n\036GPU_DRIVER_VERSION_UN" - + "SPECIFIED\020\000\022\031\n\025INSTALLATION_DISABLED\020\001\022\013" - + "\n\007DEFAULT\020\002\022\n\n\006LATEST\020\003B\025\n\023_gpu_driver_v" - + "ersion\"\232\001\n\026WorkloadMetadataConfig\022>\n\004mod" - + "e\030\002 \001(\01620.google.container.v1.WorkloadMe" - + "tadataConfig.Mode\"@\n\004Mode\022\024\n\020MODE_UNSPEC" - + "IFIED\020\000\022\020\n\014GCE_METADATA\020\001\022\020\n\014GKE_METADAT" - + "A\020\002\"\252\001\n\027SetNetworkPolicyRequest\022\026\n\nproje" - + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclu" - + "ster_id\030\003 \001(\tB\002\030\001\022?\n\016network_policy\030\004 \001(" - + "\0132\".google.container.v1.NetworkPolicyB\003\340" - + "A\002\022\014\n\004name\030\006 \001(\t\"\271\001\n\033SetMaintenancePolic" - + "yRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\021\n\004zon" - + "e\030\002 \001(\tB\003\340A\002\022\027\n\ncluster_id\030\003 \001(\tB\003\340A\002\022G\n" - + "\022maintenance_policy\030\004 \001(\0132&.google.conta" - + "iner.v1.MaintenancePolicyB\003\340A\002\022\014\n\004name\030\005" - + " \001(\t\"\251\002\n\017StatusCondition\022;\n\004code\030\001 \001(\0162)" - + ".google.container.v1.StatusCondition.Cod" - + "eB\002\030\001\022\017\n\007message\030\002 \001(\t\022(\n\016canonical_code" - + "\030\003 \001(\0162\020.google.rpc.Code\"\235\001\n\004Code\022\013\n\007UNK" - + "NOWN\020\000\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_" - + "ACCOUNT_DELETED\020\002\022\026\n\022GCE_QUOTA_EXCEEDED\020" - + "\003\022\023\n\017SET_BY_OPERATOR\020\004\022\027\n\023CLOUD_KMS_KEY_" - + "ERROR\020\007\022\017\n\013CA_EXPIRING\020\t\"\261\t\n\rNetworkConf" - + "ig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022" - + "$\n\034enable_intra_node_visibility\030\005 \001(\010\022C\n" - + "\023default_snat_status\030\007 \001(\0132&.google.cont" - + "ainer.v1.DefaultSnatStatus\022\037\n\027enable_l4i" - + "lb_subsetting\030\n \001(\010\022@\n\021datapath_provider" - + "\030\013 \001(\0162%.google.container.v1.DatapathPro" - + "vider\022P\n\032private_ipv6_google_access\030\014 \001(" - + "\0162,.google.container.v1.PrivateIPv6Googl" - + "eAccess\0222\n\ndns_config\030\r \001(\0132\036.google.con" - + "tainer.v1.DNSConfig\022R\n\033service_external_" - + "ips_config\030\017 \001(\0132-.google.container.v1.S" - + "erviceExternalIPsConfig\022A\n\022gateway_api_c" - + "onfig\030\020 \001(\0132%.google.container.v1.Gatewa" - + "yAPIConfig\022\037\n\027enable_multi_networking\030\021 " - + "\001(\010\022f\n\032network_performance_config\030\022 \001(\0132" - + "B.google.container.v1.NetworkConfig.Clus" - + "terNetworkPerformanceConfig\022\'\n\032enable_fq" - + "dn_network_policy\030\023 \001(\010H\000\210\001\001\022Y\n\034in_trans" - + "it_encryption_config\030\024 \001(\0162..google.cont" - + "ainer.v1.InTransitEncryptionConfigH\001\210\001\001\022" - + "5\n(enable_cilium_clusterwide_network_pol" - + "icy\030\025 \001(\010H\002\210\001\001\032\336\001\n\037ClusterNetworkPerform" - + "anceConfig\022q\n\033total_egress_bandwidth_tie" - + "r\030\001 \001(\0162G.google.container.v1.NetworkCon" - + "fig.ClusterNetworkPerformanceConfig.Tier" - + "H\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\n\n\006T" - + "IER_1\020\001B\036\n\034_total_egress_bandwidth_tierB" - + "\035\n\033_enable_fqdn_network_policyB\037\n\035_in_tr" - + "ansit_encryption_configB+\n)_enable_ciliu" - + "m_clusterwide_network_policy\"\274\001\n\020Gateway" - + "APIConfig\022>\n\007channel\030\001 \001(\0162-.google.cont" - + "ainer.v1.GatewayAPIConfig.Channel\"h\n\007Cha" - + "nnel\022\027\n\023CHANNEL_UNSPECIFIED\020\000\022\024\n\020CHANNEL" - + "_DISABLED\020\001\022\030\n\024CHANNEL_EXPERIMENTAL\020\003\022\024\n" - + "\020CHANNEL_STANDARD\020\004\"+\n\030ServiceExternalIP" - + "sConfig\022\017\n\007enabled\030\001 \001(\010\"(\n\026GetOpenIDCon" - + "figRequest\022\016\n\006parent\030\001 \001(\t\"\334\001\n\027GetOpenID" - + "ConfigResponse\022\016\n\006issuer\030\001 \001(\t\022\020\n\010jwks_u" - + "ri\030\002 \001(\t\022 \n\030response_types_supported\030\003 \003" - + "(\t\022\037\n\027subject_types_supported\030\004 \003(\t\022-\n%i" - + "d_token_signing_alg_values_supported\030\005 \003" - + "(\t\022\030\n\020claims_supported\030\006 \003(\t\022\023\n\013grant_ty" - + "pes\030\007 \003(\t\"\'\n\025GetJSONWebKeysRequest\022\016\n\006pa" - + "rent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003kty\030\001 \001(\t\022\013\n\003alg\030\002 " - + "\001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003kid\030\004 \001(\t\022\t\n\001n\030\005 \001(\t" - + "\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t\n\001y\030\010 \001(\t\022\013\n\003crv" - + "\030\t \001(\t\"@\n\026GetJSONWebKeysResponse\022&\n\004keys" - + "\030\001 \003(\0132\030.google.container.v1.Jwk\"2\n\"Chec" - + "kAutopilotCompatibilityRequest\022\014\n\004name\030\001" - + " \001(\t\"\374\002\n\033AutopilotCompatibilityIssue\0224\n\020" - + "last_observation\030\001 \001(\0132\032.google.protobuf" - + ".Timestamp\022\027\n\017constraint_type\030\002 \001(\t\022X\n\024i" - + "ncompatibility_type\030\003 \001(\0162:.google.conta" - + "iner.v1.AutopilotCompatibilityIssue.Issu" - + "eType\022\020\n\010subjects\030\004 \003(\t\022\031\n\021documentation" - + "_url\030\005 \001(\t\022\023\n\013description\030\006 \001(\t\"r\n\tIssue" - + "Type\022\017\n\013UNSPECIFIED\020\000\022\023\n\017INCOMPATIBILITY" - + "\020\001\022\036\n\032ADDITIONAL_CONFIG_REQUIRED\020\002\022\037\n\033PA" - + "SSED_WITH_OPTIONAL_CONFIG\020\003\"x\n#CheckAuto" - + "pilotCompatibilityResponse\022@\n\006issues\030\001 \003" - + "(\01320.google.container.v1.AutopilotCompat" - + "ibilityIssue\022\017\n\007summary\030\002 \001(\t\"\216\001\n\016Releas" - + "eChannel\022<\n\007channel\030\001 \001(\0162+.google.conta" - + "iner.v1.ReleaseChannel.Channel\">\n\007Channe" - + "l\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n\007REGULAR" - + "\020\002\022\n\n\006STABLE\020\003\"\'\n\024CostManagementConfig\022\017" - + "\n\007enabled\030\001 \001(\010\",\n\031IntraNodeVisibilityCo" - + "nfig\022\017\n\007enabled\030\001 \001(\010\"&\n\023ILBSubsettingCo" - + "nfig\022\017\n\007enabled\030\001 \001(\010\"\367\002\n\tDNSConfig\022<\n\013c" - + "luster_dns\030\001 \001(\0162\'.google.container.v1.D" - + "NSConfig.Provider\022B\n\021cluster_dns_scope\030\002" - + " \001(\0162\'.google.container.v1.DNSConfig.DNS" - + "Scope\022\032\n\022cluster_dns_domain\030\003 \001(\t\022*\n\035add" - + "itive_vpc_scope_dns_domain\030\005 \001(\tB\003\340A\001\"W\n" - + "\010Provider\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\024\n\020P" - + "LATFORM_DEFAULT\020\001\022\r\n\tCLOUD_DNS\020\002\022\014\n\010KUBE" - + "_DNS\020\003\"G\n\010DNSScope\022\031\n\025DNS_SCOPE_UNSPECIF" - + "IED\020\000\022\021\n\rCLUSTER_SCOPE\020\001\022\r\n\tVPC_SCOPE\020\002\"" - + ".\n\021MaxPodsConstraint\022\031\n\021max_pods_per_nod" - + "e\030\001 \001(\003\"/\n\026WorkloadIdentityConfig\022\025\n\rwor" - + "kload_pool\030\002 \001(\t\"(\n\025IdentityServiceConfi" - + "g\022\017\n\007enabled\030\001 \001(\010\"K\n\020MeshCertificates\0227" - + "\n\023enable_certificates\030\001 \001(\0132\032.google.pro" - + "tobuf.BoolValue\"\343\005\n\022DatabaseEncryption\022\020" - + "\n\010key_name\030\001 \001(\t\022<\n\005state\030\002 \001(\0162-.google" - + ".container.v1.DatabaseEncryption.State\022U" - + "\n\rcurrent_state\030\003 \001(\01624.google.container" - + ".v1.DatabaseEncryption.CurrentStateB\003\340A\003" - + "H\000\210\001\001\022\034\n\017decryption_keys\030\004 \003(\tB\003\340A\003\022Z\n\025l" - + "ast_operation_errors\030\005 \003(\01326.google.cont" - + "ainer.v1.DatabaseEncryption.OperationErr" - + "orB\003\340A\003\032h\n\016OperationError\022\020\n\010key_name\030\001 " - + "\001(\t\022\025\n\rerror_message\030\002 \001(\t\022-\n\ttimestamp\030" - + "\003 \001(\0132\032.google.protobuf.Timestamp\"2\n\005Sta" - + "te\022\013\n\007UNKNOWN\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECRYP" - + "TED\020\002\"\373\001\n\014CurrentState\022\035\n\031CURRENT_STATE_" - + "UNSPECIFIED\020\000\022\033\n\027CURRENT_STATE_ENCRYPTED" - + "\020\007\022\033\n\027CURRENT_STATE_DECRYPTED\020\002\022$\n CURRE" - + "NT_STATE_ENCRYPTION_PENDING\020\003\022\"\n\036CURRENT" - + "_STATE_ENCRYPTION_ERROR\020\004\022$\n CURRENT_STA" - + "TE_DECRYPTION_PENDING\020\005\022\"\n\036CURRENT_STATE" - + "_DECRYPTION_ERROR\020\006B\020\n\016_current_state\"e\n" - + "\034ListUsableSubnetworksRequest\022\016\n\006parent\030" - + "\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" - + "\022\022\n\npage_token\030\004 \001(\t\"t\n\035ListUsableSubnet" - + "worksResponse\022:\n\013subnetworks\030\001 \003(\0132%.goo" - + "gle.container.v1.UsableSubnetwork\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"\200\002\n\036UsableSubnetworkS" - + "econdaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip_" - + "cidr_range\030\002 \001(\t\022J\n\006status\030\003 \001(\0162:.googl" - + "e.container.v1.UsableSubnetworkSecondary" - + "Range.Status\"g\n\006Status\022\013\n\007UNKNOWN\020\000\022\n\n\006U" - + "NUSED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024IN_USE_SH" - + "AREABLE_POD\020\003\022\026\n\022IN_USE_MANAGED_POD\020\004\"\270\001" - + "\n\020UsableSubnetwork\022\022\n\nsubnetwork\030\001 \001(\t\022\017" - + "\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003 \001(\t\022P" - + "\n\023secondary_ip_ranges\030\004 \003(\01323.google.con" - + "tainer.v1.UsableSubnetworkSecondaryRange" - + "\022\026\n\016status_message\030\005 \001(\t\"\355\002\n\031ResourceUsa" - + "geExportConfig\022`\n\024bigquery_destination\030\001" - + " \001(\0132B.google.container.v1.ResourceUsage" - + "ExportConfig.BigQueryDestination\022&\n\036enab" - + "le_network_egress_metering\030\002 \001(\010\022m\n\033cons" - + "umption_metering_config\030\003 \001(\0132H.google.c" - + "ontainer.v1.ResourceUsageExportConfig.Co" - + "nsumptionMeteringConfig\032)\n\023BigQueryDesti" - + "nation\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031Consumptio" - + "nMeteringConfig\022\017\n\007enabled\030\001 \001(\010\")\n\026Vert" - + "icalPodAutoscaling\022\017\n\007enabled\030\001 \001(\010\"%\n\021D" - + "efaultSnatStatus\022\020\n\010disabled\030\001 \001(\010\" \n\rSh" - + "ieldedNodes\022\017\n\007enabled\030\001 \001(\010\"\035\n\nVirtualN" - + "IC\022\017\n\007enabled\030\001 \001(\010\"\035\n\nFastSocket\022\017\n\007ena" - + "bled\030\001 \001(\010\"\250\003\n\022NotificationConfig\022>\n\006pub" - + "sub\030\001 \001(\0132..google.container.v1.Notifica" - + "tionConfig.PubSub\032\212\001\n\006PubSub\022\017\n\007enabled\030" - + "\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub.google" - + "apis.com/Topic\022>\n\006filter\030\003 \001(\0132..google." - + "container.v1.NotificationConfig.Filter\032O" - + "\n\006Filter\022E\n\nevent_type\030\001 \003(\01621.google.co" - + "ntainer.v1.NotificationConfig.EventType\"" - + "t\n\tEventType\022\032\n\026EVENT_TYPE_UNSPECIFIED\020\000" - + "\022\033\n\027UPGRADE_AVAILABLE_EVENT\020\001\022\021\n\rUPGRADE" - + "_EVENT\020\002\022\033\n\027SECURITY_BULLETIN_EVENT\020\003\"$\n" - + "\021ConfidentialNodes\022\017\n\007enabled\030\001 \001(\010\"\337\001\n\014" - + "UpgradeEvent\022?\n\rresource_type\030\001 \001(\0162(.go" - + "ogle.container.v1.UpgradeResourceType\022\021\n" - + "\toperation\030\002 \001(\t\0228\n\024operation_start_time" - + "\030\003 \001(\0132\032.google.protobuf.Timestamp\022\027\n\017cu" - + "rrent_version\030\004 \001(\t\022\026\n\016target_version\030\005 " - + "\001(\t\022\020\n\010resource\030\006 \001(\t\"\271\001\n\025UpgradeAvailab" - + "leEvent\022\017\n\007version\030\001 \001(\t\022?\n\rresource_typ" - + "e\030\002 \001(\0162(.google.container.v1.UpgradeRes" - + "ourceType\022<\n\017release_channel\030\003 \001(\0132#.goo" - + "gle.container.v1.ReleaseChannel\022\020\n\010resou" - + "rce\030\004 \001(\t\"\236\002\n\025SecurityBulletinEvent\022\036\n\026r" - + "esource_type_affected\030\001 \001(\t\022\023\n\013bulletin_" - + "id\030\002 \001(\t\022\017\n\007cve_ids\030\003 \003(\t\022\020\n\010severity\030\004 " - + "\001(\t\022\024\n\014bulletin_uri\030\005 \001(\t\022\031\n\021brief_descr" - + "iption\030\006 \001(\t\022!\n\031affected_supported_minor" - + "s\030\007 \003(\t\022\030\n\020patched_versions\030\010 \003(\t\022 \n\030sug" - + "gested_upgrade_target\030\t \001(\t\022\035\n\025manual_st" - + "eps_required\030\n \001(\010\"g\n\tAutopilot\022\017\n\007enabl" - + "ed\030\001 \001(\010\022I\n\026workload_policy_config\030\002 \001(\013" - + "2).google.container.v1.WorkloadPolicyCon" - + "fig\"H\n\024WorkloadPolicyConfig\022\034\n\017allow_net" - + "_admin\030\001 \001(\010H\000\210\001\001B\022\n\020_allow_net_admin\"V\n" - + "\rLoggingConfig\022E\n\020component_config\030\001 \001(\013" - + "2+.google.container.v1.LoggingComponentC" - + "onfig\"\357\001\n\026LoggingComponentConfig\022P\n\021enab" - + "le_components\030\001 \003(\01625.google.container.v" - + "1.LoggingComponentConfig.Component\"\202\001\n\tC" - + "omponent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\025\n\021S" - + "YSTEM_COMPONENTS\020\001\022\r\n\tWORKLOADS\020\002\022\r\n\tAPI" - + "SERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MA" - + "NAGER\020\005\"\227\002\n\020MonitoringConfig\022H\n\020componen" - + "t_config\030\001 \001(\0132..google.container.v1.Mon" - + "itoringComponentConfig\022O\n\031managed_promet" - + "heus_config\030\002 \001(\0132,.google.container.v1." - + "ManagedPrometheusConfig\022h\n&advanced_data" - + "path_observability_config\030\003 \001(\01328.google" - + ".container.v1.AdvancedDatapathObservabil" - + "ityConfig\"\236\002\n#AdvancedDatapathObservabil" - + "ityConfig\022\026\n\016enable_metrics\030\001 \001(\010\022V\n\nrel" - + "ay_mode\030\002 \001(\0162B.google.container.v1.Adva" - + "ncedDatapathObservabilityConfig.RelayMod" - + "e\022\031\n\014enable_relay\030\003 \001(\010H\000\210\001\001\"[\n\tRelayMod" - + "e\022\032\n\026RELAY_MODE_UNSPECIFIED\020\000\022\014\n\010DISABLE" - + "D\020\001\022\023\n\017INTERNAL_VPC_LB\020\003\022\017\n\013EXTERNAL_LB\020" - + "\004B\017\n\r_enable_relay\"Z\n\025NodePoolLoggingCon" - + "fig\022A\n\016variant_config\030\001 \001(\0132).google.con" - + "tainer.v1.LoggingVariantConfig\"\237\001\n\024Loggi" - + "ngVariantConfig\022B\n\007variant\030\001 \001(\01621.googl" - + "e.container.v1.LoggingVariantConfig.Vari" - + "ant\"C\n\007Variant\022\027\n\023VARIANT_UNSPECIFIED\020\000\022" - + "\013\n\007DEFAULT\020\001\022\022\n\016MAX_THROUGHPUT\020\002\"\320\002\n\031Mon" - + "itoringComponentConfig\022S\n\021enable_compone" - + "nts\030\001 \003(\01628.google.container.v1.Monitori" - + "ngComponentConfig.Component\"\335\001\n\tComponen" - + "t\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\025\n\021SYSTEM_C" - + "OMPONENTS\020\001\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020" - + "\004\022\026\n\022CONTROLLER_MANAGER\020\005\022\013\n\007STORAGE\020\007\022\007" - + "\n\003HPA\020\010\022\007\n\003POD\020\t\022\r\n\tDAEMONSET\020\n\022\016\n\nDEPLO" - + "YMENT\020\013\022\017\n\013STATEFULSET\020\014\022\014\n\010CADVISOR\020\r\022\013" - + "\n\007KUBELET\020\016\"*\n\027ManagedPrometheusConfig\022\017" - + "\n\007enabled\030\001 \001(\010\"D\n\005Fleet\022\017\n\007project\030\001 \001(" - + "\t\022\022\n\nmembership\030\002 \001(\t\022\026\n\016pre_registered\030" - + "\003 \001(\010\"2\n\027LocalNvmeSsdBlockConfig\022\027\n\017loca" - + "l_ssd_count\030\001 \001(\005\"9\n\036EphemeralStorageLoc" - + "alSsdConfig\022\027\n\017local_ssd_count\030\001 \001(\005\"\204\001\n" - + "\023ResourceManagerTags\022@\n\004tags\030\001 \003(\01322.goo" - + "gle.container.v1.ResourceManagerTags.Tag" - + "sEntry\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"\253\001\n\020EnterpriseConfig\022L\n\014clus" - + "ter_tier\030\001 \001(\01621.google.container.v1.Ent" - + "erpriseConfig.ClusterTierB\003\340A\003\"I\n\013Cluste" - + "rTier\022\034\n\030CLUSTER_TIER_UNSPECIFIED\020\000\022\014\n\010S" - + "TANDARD\020\001\022\016\n\nENTERPRISE\020\002\"\233\001\n\021SecondaryB" - + "ootDisk\0229\n\004mode\030\001 \001(\0162+.google.container" - + ".v1.SecondaryBootDisk.Mode\022\022\n\ndisk_image" - + "\030\002 \001(\t\"7\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\031\n\025" - + "CONTAINER_IMAGE_CACHE\020\001\"!\n\037SecondaryBoot" - + "DiskUpdateStrategy*\306\001\n\027PrivateIPv6Google" - + "Access\022*\n&PRIVATE_IPV6_GOOGLE_ACCESS_UNS" - + "PECIFIED\020\000\022\'\n#PRIVATE_IPV6_GOOGLE_ACCESS" - + "_DISABLED\020\001\022(\n$PRIVATE_IPV6_GOOGLE_ACCES" - + "S_TO_GOOGLE\020\002\022,\n(PRIVATE_IPV6_GOOGLE_ACC" - + "ESS_BIDIRECTIONAL\020\003*W\n\023UpgradeResourceTy" - + "pe\022%\n!UPGRADE_RESOURCE_TYPE_UNSPECIFIED\020" - + "\000\022\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\002*a\n\020Datapath" - + "Provider\022!\n\035DATAPATH_PROVIDER_UNSPECIFIE" - + "D\020\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025\n\021ADVANCED_DAT" - + "APATH\020\002*^\n\026NodePoolUpdateStrategy\022)\n%NOD" - + "E_POOL_UPDATE_STRATEGY_UNSPECIFIED\020\000\022\016\n\n" - + "BLUE_GREEN\020\002\022\t\n\005SURGE\020\003*@\n\tStackType\022\032\n\026" - + "STACK_TYPE_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001\022\r\n\tIP" - + "V4_IPV6\020\002*N\n\016IPv6AccessType\022 \n\034IPV6_ACCE" - + "SS_TYPE_UNSPECIFIED\020\000\022\014\n\010INTERNAL\020\001\022\014\n\010E" - + "XTERNAL\020\002*\237\001\n\031InTransitEncryptionConfig\022" - + ",\n(IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIF" - + "IED\020\000\022\"\n\036IN_TRANSIT_ENCRYPTION_DISABLED\020" - + "\001\0220\n,IN_TRANSIT_ENCRYPTION_INTER_NODE_TR" - + "ANSPARENT\020\0022\262I\n\016ClusterManager\022\350\001\n\014ListC" - + "lusters\022(.google.container.v1.ListCluste" - + "rsRequest\032).google.container.v1.ListClus" - + "tersResponse\"\202\001\332A\017project_id,zone\332A\006pare" - + "nt\202\323\344\223\002a\022,/v1/{parent=projects/*/locatio" - + "ns/*}/clustersZ1\022//v1/projects/{project_" - + "id}/zones/{zone}/clusters\022\355\001\n\nGetCluster" - + "\022&.google.container.v1.GetClusterRequest" - + "\032\034.google.container.v1.Cluster\"\230\001\332A\032proj" - + "ect_id,zone,cluster_id\332A\004name\202\323\344\223\002n\022,/v1" - + "/{name=projects/*/locations/*/clusters/*" - + "}Z>\022\n\004mode\030\002 \001(" + + "\01620.google.container.v1.WorkloadMetadata" + + "Config.Mode\"@\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020" + + "\000\022\020\n\014GCE_METADATA\020\001\022\020\n\014GKE_METADATA\020\002\"\252\001" + + "\n\027SetNetworkPolicyRequest\022\026\n\nproject_id\030" + + "\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_i" + + "d\030\003 \001(\tB\002\030\001\022?\n\016network_policy\030\004 \001(\0132\".go" + + "ogle.container.v1.NetworkPolicyB\003\340A\002\022\014\n\004" + + "name\030\006 \001(\t\"\271\001\n\033SetMaintenancePolicyReque" + + "st\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\021\n\004zone\030\002 \001(" + + "\tB\003\340A\002\022\027\n\ncluster_id\030\003 \001(\tB\003\340A\002\022G\n\022maint" + + "enance_policy\030\004 \001(\0132&.google.container.v" + + "1.MaintenancePolicyB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\251" + + "\002\n\017StatusCondition\022;\n\004code\030\001 \001(\0162).googl" + + "e.container.v1.StatusCondition.CodeB\002\030\001\022" + + "\017\n\007message\030\002 \001(\t\022(\n\016canonical_code\030\003 \001(\016" + + "2\020.google.rpc.Code\"\235\001\n\004Code\022\013\n\007UNKNOWN\020\000" + + "\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_ACCOUN" + + "T_DELETED\020\002\022\026\n\022GCE_QUOTA_EXCEEDED\020\003\022\023\n\017S" + + "ET_BY_OPERATOR\020\004\022\027\n\023CLOUD_KMS_KEY_ERROR\020" + + "\007\022\017\n\013CA_EXPIRING\020\t\"\273\t\n\rNetworkConfig\022\024\n\007" + + "network\030\001 \001(\tB\003\340A\003\022\027\n\nsubnetwork\030\002 \001(\tB\003" + + "\340A\003\022$\n\034enable_intra_node_visibility\030\005 \001(" + + "\010\022C\n\023default_snat_status\030\007 \001(\0132&.google." + + "container.v1.DefaultSnatStatus\022\037\n\027enable" + + "_l4ilb_subsetting\030\n \001(\010\022@\n\021datapath_prov" + + "ider\030\013 \001(\0162%.google.container.v1.Datapat" + + "hProvider\022P\n\032private_ipv6_google_access\030" + + "\014 \001(\0162,.google.container.v1.PrivateIPv6G" + + "oogleAccess\0222\n\ndns_config\030\r \001(\0132\036.google" + + ".container.v1.DNSConfig\022R\n\033service_exter" + + "nal_ips_config\030\017 \001(\0132-.google.container." + + "v1.ServiceExternalIPsConfig\022A\n\022gateway_a" + + "pi_config\030\020 \001(\0132%.google.container.v1.Ga" + + "tewayAPIConfig\022\037\n\027enable_multi_networkin" + + "g\030\021 \001(\010\022f\n\032network_performance_config\030\022 " + + "\001(\0132B.google.container.v1.NetworkConfig." + + "ClusterNetworkPerformanceConfig\022\'\n\032enabl" + + "e_fqdn_network_policy\030\023 \001(\010H\000\210\001\001\022Y\n\034in_t" + + "ransit_encryption_config\030\024 \001(\0162..google." + + "container.v1.InTransitEncryptionConfigH\001" + + "\210\001\001\0225\n(enable_cilium_clusterwide_network" + + "_policy\030\025 \001(\010H\002\210\001\001\032\336\001\n\037ClusterNetworkPer" + + "formanceConfig\022q\n\033total_egress_bandwidth" + + "_tier\030\001 \001(\0162G.google.container.v1.Networ" + + "kConfig.ClusterNetworkPerformanceConfig." + + "TierH\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022" + + "\n\n\006TIER_1\020\001B\036\n\034_total_egress_bandwidth_t" + + "ierB\035\n\033_enable_fqdn_network_policyB\037\n\035_i" + + "n_transit_encryption_configB+\n)_enable_c" + + "ilium_clusterwide_network_policy\"\300\001\n\020Gat" + + "ewayAPIConfig\022>\n\007channel\030\001 \001(\0162-.google." + + "container.v1.GatewayAPIConfig.Channel\"l\n" + + "\007Channel\022\027\n\023CHANNEL_UNSPECIFIED\020\000\022\024\n\020CHA" + + "NNEL_DISABLED\020\001\022\034\n\024CHANNEL_EXPERIMENTAL\020" + + "\003\032\002\010\001\022\024\n\020CHANNEL_STANDARD\020\004\"+\n\030ServiceEx" + + "ternalIPsConfig\022\017\n\007enabled\030\001 \001(\010\"(\n\026GetO" + + "penIDConfigRequest\022\016\n\006parent\030\001 \001(\t\"\334\001\n\027G" + + "etOpenIDConfigResponse\022\016\n\006issuer\030\001 \001(\t\022\020" + + "\n\010jwks_uri\030\002 \001(\t\022 \n\030response_types_suppo" + + "rted\030\003 \003(\t\022\037\n\027subject_types_supported\030\004 " + + "\003(\t\022-\n%id_token_signing_alg_values_suppo" + + "rted\030\005 \003(\t\022\030\n\020claims_supported\030\006 \003(\t\022\023\n\013" + + "grant_types\030\007 \003(\t\"\'\n\025GetJSONWebKeysReque" + + "st\022\016\n\006parent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003kty\030\001 \001(\t\022\013" + + "\n\003alg\030\002 \001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003kid\030\004 \001(\t\022\t\n" + + "\001n\030\005 \001(\t\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t\n\001y\030\010 \001(" + + "\t\022\013\n\003crv\030\t \001(\t\"@\n\026GetJSONWebKeysResponse" + + "\022&\n\004keys\030\001 \003(\0132\030.google.container.v1.Jwk" + + "\"2\n\"CheckAutopilotCompatibilityRequest\022\014" + + "\n\004name\030\001 \001(\t\"\374\002\n\033AutopilotCompatibilityI" + + "ssue\0224\n\020last_observation\030\001 \001(\0132\032.google." + + "protobuf.Timestamp\022\027\n\017constraint_type\030\002 " + + "\001(\t\022X\n\024incompatibility_type\030\003 \001(\0162:.goog" + + "le.container.v1.AutopilotCompatibilityIs" + + "sue.IssueType\022\020\n\010subjects\030\004 \003(\t\022\031\n\021docum" + + "entation_url\030\005 \001(\t\022\023\n\013description\030\006 \001(\t\"" + + "r\n\tIssueType\022\017\n\013UNSPECIFIED\020\000\022\023\n\017INCOMPA" + + "TIBILITY\020\001\022\036\n\032ADDITIONAL_CONFIG_REQUIRED" + + "\020\002\022\037\n\033PASSED_WITH_OPTIONAL_CONFIG\020\003\"x\n#C" + + "heckAutopilotCompatibilityResponse\022@\n\006is" + + "sues\030\001 \003(\01320.google.container.v1.Autopil" + + "otCompatibilityIssue\022\017\n\007summary\030\002 \001(\t\"\216\001" + + "\n\016ReleaseChannel\022<\n\007channel\030\001 \001(\0162+.goog" + + "le.container.v1.ReleaseChannel.Channel\">" + + "\n\007Channel\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n" + + "\007REGULAR\020\002\022\n\n\006STABLE\020\003\"\'\n\024CostManagement" + + "Config\022\017\n\007enabled\030\001 \001(\010\",\n\031IntraNodeVisi" + + "bilityConfig\022\017\n\007enabled\030\001 \001(\010\"&\n\023ILBSubs" + + "ettingConfig\022\017\n\007enabled\030\001 \001(\010\"\367\002\n\tDNSCon" + + "fig\022<\n\013cluster_dns\030\001 \001(\0162\'.google.contai" + + "ner.v1.DNSConfig.Provider\022B\n\021cluster_dns" + + "_scope\030\002 \001(\0162\'.google.container.v1.DNSCo" + + "nfig.DNSScope\022\032\n\022cluster_dns_domain\030\003 \001(" + + "\t\022*\n\035additive_vpc_scope_dns_domain\030\005 \001(\t" + + "B\003\340A\001\"W\n\010Provider\022\030\n\024PROVIDER_UNSPECIFIE" + + "D\020\000\022\024\n\020PLATFORM_DEFAULT\020\001\022\r\n\tCLOUD_DNS\020\002" + + "\022\014\n\010KUBE_DNS\020\003\"G\n\010DNSScope\022\031\n\025DNS_SCOPE_" + + "UNSPECIFIED\020\000\022\021\n\rCLUSTER_SCOPE\020\001\022\r\n\tVPC_" + + "SCOPE\020\002\".\n\021MaxPodsConstraint\022\031\n\021max_pods" + + "_per_node\030\001 \001(\003\"/\n\026WorkloadIdentityConfi" + + "g\022\025\n\rworkload_pool\030\002 \001(\t\"(\n\025IdentityServ" + + "iceConfig\022\017\n\007enabled\030\001 \001(\010\"K\n\020MeshCertif" + + "icates\0227\n\023enable_certificates\030\001 \001(\0132\032.go" + + "ogle.protobuf.BoolValue\"\343\005\n\022DatabaseEncr" + + "yption\022\020\n\010key_name\030\001 \001(\t\022<\n\005state\030\002 \001(\0162" + + "-.google.container.v1.DatabaseEncryption" + + ".State\022U\n\rcurrent_state\030\003 \001(\01624.google.c" + + "ontainer.v1.DatabaseEncryption.CurrentSt" + + "ateB\003\340A\003H\000\210\001\001\022\034\n\017decryption_keys\030\004 \003(\tB\003" + + "\340A\003\022Z\n\025last_operation_errors\030\005 \003(\01326.goo" + + "gle.container.v1.DatabaseEncryption.Oper" + + "ationErrorB\003\340A\003\032h\n\016OperationError\022\020\n\010key" + + "_name\030\001 \001(\t\022\025\n\rerror_message\030\002 \001(\t\022-\n\tti" + + "mestamp\030\003 \001(\0132\032.google.protobuf.Timestam" + + "p\"2\n\005State\022\013\n\007UNKNOWN\020\000\022\r\n\tENCRYPTED\020\001\022\r" + + "\n\tDECRYPTED\020\002\"\373\001\n\014CurrentState\022\035\n\031CURREN" + + "T_STATE_UNSPECIFIED\020\000\022\033\n\027CURRENT_STATE_E" + + "NCRYPTED\020\007\022\033\n\027CURRENT_STATE_DECRYPTED\020\002\022" + + "$\n CURRENT_STATE_ENCRYPTION_PENDING\020\003\022\"\n" + + "\036CURRENT_STATE_ENCRYPTION_ERROR\020\004\022$\n CUR" + + "RENT_STATE_DECRYPTION_PENDING\020\005\022\"\n\036CURRE" + + "NT_STATE_DECRYPTION_ERROR\020\006B\020\n\016_current_" + + "state\"e\n\034ListUsableSubnetworksRequest\022\016\n" + + "\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_si" + + "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"t\n\035ListUsab" + + "leSubnetworksResponse\022:\n\013subnetworks\030\001 \003" + + "(\0132%.google.container.v1.UsableSubnetwor" + + "k\022\027\n\017next_page_token\030\002 \001(\t\"\200\002\n\036UsableSub" + + "networkSecondaryRange\022\022\n\nrange_name\030\001 \001(" + + "\t\022\025\n\rip_cidr_range\030\002 \001(\t\022J\n\006status\030\003 \001(\016" + + "2:.google.container.v1.UsableSubnetworkS" + + "econdaryRange.Status\"g\n\006Status\022\013\n\007UNKNOW" + + "N\020\000\022\n\n\006UNUSED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024I" + + "N_USE_SHAREABLE_POD\020\003\022\026\n\022IN_USE_MANAGED_" + + "POD\020\004\"\270\001\n\020UsableSubnetwork\022\022\n\nsubnetwork" + + "\030\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range" + + "\030\003 \001(\t\022P\n\023secondary_ip_ranges\030\004 \003(\01323.go" + + "ogle.container.v1.UsableSubnetworkSecond" + + "aryRange\022\026\n\016status_message\030\005 \001(\t\"\355\002\n\031Res" + + "ourceUsageExportConfig\022`\n\024bigquery_desti" + + "nation\030\001 \001(\0132B.google.container.v1.Resou" + + "rceUsageExportConfig.BigQueryDestination" + + "\022&\n\036enable_network_egress_metering\030\002 \001(\010" + + "\022m\n\033consumption_metering_config\030\003 \001(\0132H." + + "google.container.v1.ResourceUsageExportC" + + "onfig.ConsumptionMeteringConfig\032)\n\023BigQu" + + "eryDestination\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031Co" + + "nsumptionMeteringConfig\022\017\n\007enabled\030\001 \001(\010" + + "\")\n\026VerticalPodAutoscaling\022\017\n\007enabled\030\001 " + + "\001(\010\"%\n\021DefaultSnatStatus\022\020\n\010disabled\030\001 \001" + + "(\010\" \n\rShieldedNodes\022\017\n\007enabled\030\001 \001(\010\"\035\n\n" + + "VirtualNIC\022\017\n\007enabled\030\001 \001(\010\"\035\n\nFastSocke" + + "t\022\017\n\007enabled\030\001 \001(\010\"\250\003\n\022NotificationConfi" + + "g\022>\n\006pubsub\030\001 \001(\0132..google.container.v1." + + "NotificationConfig.PubSub\032\212\001\n\006PubSub\022\017\n\007" + + "enabled\030\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsu" + + "b.googleapis.com/Topic\022>\n\006filter\030\003 \001(\0132." + + ".google.container.v1.NotificationConfig." + + "Filter\032O\n\006Filter\022E\n\nevent_type\030\001 \003(\01621.g" + + "oogle.container.v1.NotificationConfig.Ev" + + "entType\"t\n\tEventType\022\032\n\026EVENT_TYPE_UNSPE" + + "CIFIED\020\000\022\033\n\027UPGRADE_AVAILABLE_EVENT\020\001\022\021\n" + + "\rUPGRADE_EVENT\020\002\022\033\n\027SECURITY_BULLETIN_EV" + + "ENT\020\003\"$\n\021ConfidentialNodes\022\017\n\007enabled\030\001 " + + "\001(\010\"\337\001\n\014UpgradeEvent\022?\n\rresource_type\030\001 " + + "\001(\0162(.google.container.v1.UpgradeResourc" + + "eType\022\021\n\toperation\030\002 \001(\t\0228\n\024operation_st" + + "art_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mp\022\027\n\017current_version\030\004 \001(\t\022\026\n\016target_ve" + + "rsion\030\005 \001(\t\022\020\n\010resource\030\006 \001(\t\"\271\001\n\025Upgrad" + + "eAvailableEvent\022\017\n\007version\030\001 \001(\t\022?\n\rreso" + + "urce_type\030\002 \001(\0162(.google.container.v1.Up" + + "gradeResourceType\022<\n\017release_channel\030\003 \001" + + "(\0132#.google.container.v1.ReleaseChannel\022" + + "\020\n\010resource\030\004 \001(\t\"\236\002\n\025SecurityBulletinEv" + + "ent\022\036\n\026resource_type_affected\030\001 \001(\t\022\023\n\013b" + + "ulletin_id\030\002 \001(\t\022\017\n\007cve_ids\030\003 \003(\t\022\020\n\010sev" + + "erity\030\004 \001(\t\022\024\n\014bulletin_uri\030\005 \001(\t\022\031\n\021bri" + + "ef_description\030\006 \001(\t\022!\n\031affected_support" + + "ed_minors\030\007 \003(\t\022\030\n\020patched_versions\030\010 \003(" + + "\t\022 \n\030suggested_upgrade_target\030\t \001(\t\022\035\n\025m" + + "anual_steps_required\030\n \001(\010\"g\n\tAutopilot\022" + + "\017\n\007enabled\030\001 \001(\010\022I\n\026workload_policy_conf" + + "ig\030\002 \001(\0132).google.container.v1.WorkloadP" + + "olicyConfig\"H\n\024WorkloadPolicyConfig\022\034\n\017a" + + "llow_net_admin\030\001 \001(\010H\000\210\001\001B\022\n\020_allow_net_" + + "admin\"V\n\rLoggingConfig\022E\n\020component_conf" + + "ig\030\001 \001(\0132+.google.container.v1.LoggingCo" + + "mponentConfig\"\357\001\n\026LoggingComponentConfig" + + "\022P\n\021enable_components\030\001 \003(\01625.google.con" + + "tainer.v1.LoggingComponentConfig.Compone" + + "nt\"\202\001\n\tComponent\022\031\n\025COMPONENT_UNSPECIFIE" + + "D\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tWORKLOADS\020" + + "\002\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTR" + + "OLLER_MANAGER\020\005\"*\n\027RayClusterLoggingConf" + + "ig\022\017\n\007enabled\030\001 \001(\010\"\227\002\n\020MonitoringConfig" + + "\022H\n\020component_config\030\001 \001(\0132..google.cont" + + "ainer.v1.MonitoringComponentConfig\022O\n\031ma" + + "naged_prometheus_config\030\002 \001(\0132,.google.c" + + "ontainer.v1.ManagedPrometheusConfig\022h\n&a" + + "dvanced_datapath_observability_config\030\003 " + + "\001(\01328.google.container.v1.AdvancedDatapa" + + "thObservabilityConfig\"\236\002\n#AdvancedDatapa" + + "thObservabilityConfig\022\026\n\016enable_metrics\030" + + "\001 \001(\010\022V\n\nrelay_mode\030\002 \001(\0162B.google.conta" + + "iner.v1.AdvancedDatapathObservabilityCon" + + "fig.RelayMode\022\031\n\014enable_relay\030\003 \001(\010H\000\210\001\001" + + "\"[\n\tRelayMode\022\032\n\026RELAY_MODE_UNSPECIFIED\020" + + "\000\022\014\n\010DISABLED\020\001\022\023\n\017INTERNAL_VPC_LB\020\003\022\017\n\013" + + "EXTERNAL_LB\020\004B\017\n\r_enable_relay\"-\n\032RayClu" + + "sterMonitoringConfig\022\017\n\007enabled\030\001 \001(\010\"Z\n" + + "\025NodePoolLoggingConfig\022A\n\016variant_config" + + "\030\001 \001(\0132).google.container.v1.LoggingVari" + + "antConfig\"\237\001\n\024LoggingVariantConfig\022B\n\007va" + + "riant\030\001 \001(\01621.google.container.v1.Loggin" + + "gVariantConfig.Variant\"C\n\007Variant\022\027\n\023VAR" + + "IANT_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\022\n\016MAX_T" + + "HROUGHPUT\020\002\"\332\002\n\031MonitoringComponentConfi" + + "g\022S\n\021enable_components\030\001 \003(\01628.google.co" + + "ntainer.v1.MonitoringComponentConfig.Com" + + "ponent\"\347\001\n\tComponent\022\031\n\025COMPONENT_UNSPEC" + + "IFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tAPISER" + + "VER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MANAG" + + "ER\020\005\022\013\n\007STORAGE\020\007\022\007\n\003HPA\020\010\022\007\n\003POD\020\t\022\r\n\tD" + + "AEMONSET\020\n\022\016\n\nDEPLOYMENT\020\013\022\017\n\013STATEFULSE" + + "T\020\014\022\014\n\010CADVISOR\020\r\022\013\n\007KUBELET\020\016\022\010\n\004DCGM\020\017" + + "\"*\n\027ManagedPrometheusConfig\022\017\n\007enabled\030\001" + + " \001(\010\"N\n\005Fleet\022\017\n\007project\030\001 \001(\t\022\027\n\nmember" + + "ship\030\002 \001(\tB\003\340A\003\022\033\n\016pre_registered\030\003 \001(\010B" + + "\003\340A\003\"2\n\027LocalNvmeSsdBlockConfig\022\027\n\017local" + + "_ssd_count\030\001 \001(\005\"9\n\036EphemeralStorageLoca" + + "lSsdConfig\022\027\n\017local_ssd_count\030\001 \001(\005\"\204\001\n\023" + + "ResourceManagerTags\022@\n\004tags\030\001 \003(\01322.goog" + + "le.container.v1.ResourceManagerTags.Tags" + + "Entry\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\"\253\001\n\020EnterpriseConfig\022L\n\014clust" + + "er_tier\030\001 \001(\01621.google.container.v1.Ente" + + "rpriseConfig.ClusterTierB\003\340A\003\"I\n\013Cluster" + + "Tier\022\034\n\030CLUSTER_TIER_UNSPECIFIED\020\000\022\014\n\010ST" + + "ANDARD\020\001\022\016\n\nENTERPRISE\020\002\"\233\001\n\021SecondaryBo" + + "otDisk\0229\n\004mode\030\001 \001(\0162+.google.container." + + "v1.SecondaryBootDisk.Mode\022\022\n\ndisk_image\030" + + "\002 \001(\t\"7\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\031\n\025C" + + "ONTAINER_IMAGE_CACHE\020\001\"!\n\037SecondaryBootD" + + "iskUpdateStrategy*\306\001\n\027PrivateIPv6GoogleA" + + "ccess\022*\n&PRIVATE_IPV6_GOOGLE_ACCESS_UNSP" + + "ECIFIED\020\000\022\'\n#PRIVATE_IPV6_GOOGLE_ACCESS_" + + "DISABLED\020\001\022(\n$PRIVATE_IPV6_GOOGLE_ACCESS" + + "_TO_GOOGLE\020\002\022,\n(PRIVATE_IPV6_GOOGLE_ACCE" + + "SS_BIDIRECTIONAL\020\003*W\n\023UpgradeResourceTyp" + + "e\022%\n!UPGRADE_RESOURCE_TYPE_UNSPECIFIED\020\000" + + "\022\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\002*a\n\020DatapathP" + + "rovider\022!\n\035DATAPATH_PROVIDER_UNSPECIFIED" + + "\020\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025\n\021ADVANCED_DATA" + + "PATH\020\002*^\n\026NodePoolUpdateStrategy\022)\n%NODE" + + "_POOL_UPDATE_STRATEGY_UNSPECIFIED\020\000\022\016\n\nB" + + "LUE_GREEN\020\002\022\t\n\005SURGE\020\003*@\n\tStackType\022\032\n\026S" + + "TACK_TYPE_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001\022\r\n\tIPV" + + "4_IPV6\020\002*N\n\016IPv6AccessType\022 \n\034IPV6_ACCES" + + "S_TYPE_UNSPECIFIED\020\000\022\014\n\010INTERNAL\020\001\022\014\n\010EX" + + "TERNAL\020\002*\237\001\n\031InTransitEncryptionConfig\022," + + "\n(IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFI" + + "ED\020\000\022\"\n\036IN_TRANSIT_ENCRYPTION_DISABLED\020\001" + + "\0220\n,IN_TRANSIT_ENCRYPTION_INTER_NODE_TRA" + + "NSPARENT\020\0022\262I\n\016ClusterManager\022\350\001\n\014ListCl" + + "usters\022(.google.container.v1.ListCluster" + + "sRequest\032).google.container.v1.ListClust" + + "ersResponse\"\202\001\332A\017project_id,zone\332A\006paren" + + "t\202\323\344\223\002a\022,/v1/{parent=projects/*/location" + + "s/*}/clustersZ1\022//v1/projects/{project_i" + + "d}/zones/{zone}/clusters\022\355\001\n\nGetCluster\022" + + "&.google.container.v1.GetClusterRequest\032" + + "\034.google.container.v1.Cluster\"\230\001\332A\032proje" + + "ct_id,zone,cluster_id\332A\004name\202\323\344\223\002n\022,/v1/" + + "{name=projects/*/locations/*/clusters/*}" + + "Z>\022*/v1/{name=projects/*/locations/*/clus" - + "ters/*}:setResourceLabels:\001*ZP\"K/v1/proj" - + "ects/{project_id}/zones/{zone}/clusters/" - + "{cluster_id}/resourceLabels:\001*\022\245\002\n\rSetLe" - + "gacyAbac\022).google.container.v1.SetLegacy" - + "AbacRequest\032\036.google.container.v1.Operat" - + "ion\"\310\001\332A\"project_id,zone,cluster_id,enab" - + "led\332A\014name,enabled\202\323\344\223\002\215\001\":/v1/{name=pro" - + "jects/*/locations/*/clusters/*}:setLegac" - + "yAbac:\001*ZL\"G/v1/projects/{project_id}/zo" - + "nes/{zone}/clusters/{cluster_id}/legacyA" - + "bac:\001*\022\240\002\n\017StartIPRotation\022+.google.cont" - + "ainer.v1.StartIPRotationRequest\032\036.google" - + ".container.v1.Operation\"\277\001\332A\032project_id," - + "zone,cluster_id\332A\004name\202\323\344\223\002\224\001\"*/v1/{name=projects/*/locations/*/clust" + + "ers/*}:setResourceLabels:\001*ZP\"K/v1/proje" + + "cts/{project_id}/zones/{zone}/clusters/{" + + "cluster_id}/resourceLabels:\001*\022\245\002\n\rSetLeg" + + "acyAbac\022).google.container.v1.SetLegacyA" + + "bacRequest\032\036.google.container.v1.Operati" + + "on\"\310\001\332A\"project_id,zone,cluster_id,enabl" + + "ed\332A\014name,enabled\202\323\344\223\002\215\001\":/v1/{name=proj" + + "ects/*/locations/*/clusters/*}:setLegacy" + + "Abac:\001*ZL\"G/v1/projects/{project_id}/zon" + + "es/{zone}/clusters/{cluster_id}/legacyAb" + + "ac:\001*\022\240\002\n\017StartIPRotation\022+.google.conta" + + "iner.v1.StartIPRotationRequest\032\036.google." + + "container.v1.Operation\"\277\001\332A\032project_id,z" + + "one,cluster_id\332A\004name\202\323\344\223\002\224\001\"string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4254 + * google/container/v1/cluster_service.proto;l=4282 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4254 + * google/container/v1/cluster_service.proto;l=4282 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4260 + * google/container/v1/cluster_service.proto;l=4288 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4260 + * google/container/v1/cluster_service.proto;l=4288 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4264 + * google/container/v1/cluster_service.proto;l=4292 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4264 + * google/container/v1/cluster_service.proto;l=4292 * @return The bytes for clusterId. */ @java.lang.Override @@ -729,7 +729,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4254 + * google/container/v1/cluster_service.proto;l=4282 * @return The projectId. */ @java.lang.Deprecated @@ -756,7 +756,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4254 + * google/container/v1/cluster_service.proto;l=4282 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -783,7 +783,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4254 + * google/container/v1/cluster_service.proto;l=4282 * @param value The projectId to set. * @return This builder for chaining. */ @@ -809,7 +809,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4254 + * google/container/v1/cluster_service.proto;l=4282 * @return This builder for chaining. */ @java.lang.Deprecated @@ -831,7 +831,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4254 + * google/container/v1/cluster_service.proto;l=4282 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -861,7 +861,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4260 + * google/container/v1/cluster_service.proto;l=4288 * @return The zone. */ @java.lang.Deprecated @@ -889,7 +889,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4260 + * google/container/v1/cluster_service.proto;l=4288 * @return The bytes for zone. */ @java.lang.Deprecated @@ -917,7 +917,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4260 + * google/container/v1/cluster_service.proto;l=4288 * @param value The zone to set. * @return This builder for chaining. */ @@ -944,7 +944,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4260 + * google/container/v1/cluster_service.proto;l=4288 * @return This builder for chaining. */ @java.lang.Deprecated @@ -967,7 +967,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4260 + * google/container/v1/cluster_service.proto;l=4288 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -995,7 +995,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4264 + * google/container/v1/cluster_service.proto;l=4292 * @return The clusterId. */ @java.lang.Deprecated @@ -1021,7 +1021,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4264 + * google/container/v1/cluster_service.proto;l=4292 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1047,7 +1047,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4264 + * google/container/v1/cluster_service.proto;l=4292 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1072,7 +1072,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4264 + * google/container/v1/cluster_service.proto;l=4292 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1093,7 +1093,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4264 + * google/container/v1/cluster_service.proto;l=4292 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java index 3e07ed5373ea..39aa5bab28ba 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CompleteIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4254 + * google/container/v1/cluster_service.proto;l=4282 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CompleteIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4254 + * google/container/v1/cluster_service.proto;l=4282 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4260 + * google/container/v1/cluster_service.proto;l=4288 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4260 + * google/container/v1/cluster_service.proto;l=4288 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface CompleteIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4264 + * google/container/v1/cluster_service.proto;l=4292 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface CompleteIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4264 + * google/container/v1/cluster_service.proto;l=4292 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java index ed8b79ed1e95..44640ac2b716 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2691 + * google/container/v1/cluster_service.proto;l=2716 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2691 + * google/container/v1/cluster_service.proto;l=2716 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2697 + * google/container/v1/cluster_service.proto;l=2722 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2697 + * google/container/v1/cluster_service.proto;l=2722 * @return The bytes for zone. */ @java.lang.Override @@ -740,7 +740,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2691 + * google/container/v1/cluster_service.proto;l=2716 * @return The projectId. */ @java.lang.Deprecated @@ -767,7 +767,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2691 + * google/container/v1/cluster_service.proto;l=2716 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -794,7 +794,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2691 + * google/container/v1/cluster_service.proto;l=2716 * @param value The projectId to set. * @return This builder for chaining. */ @@ -820,7 +820,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2691 + * google/container/v1/cluster_service.proto;l=2716 * @return This builder for chaining. */ @java.lang.Deprecated @@ -842,7 +842,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2691 + * google/container/v1/cluster_service.proto;l=2716 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -872,7 +872,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2697 + * google/container/v1/cluster_service.proto;l=2722 * @return The zone. */ @java.lang.Deprecated @@ -900,7 +900,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2697 + * google/container/v1/cluster_service.proto;l=2722 * @return The bytes for zone. */ @java.lang.Deprecated @@ -928,7 +928,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2697 + * google/container/v1/cluster_service.proto;l=2722 * @param value The zone to set. * @return This builder for chaining. */ @@ -955,7 +955,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2697 + * google/container/v1/cluster_service.proto;l=2722 * @return This builder for chaining. */ @java.lang.Deprecated @@ -978,7 +978,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2697 + * google/container/v1/cluster_service.proto;l=2722 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java index 0b7812d5afef..74a09d625f72 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CreateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2691 + * google/container/v1/cluster_service.proto;l=2716 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CreateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2691 + * google/container/v1/cluster_service.proto;l=2716 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2697 + * google/container/v1/cluster_service.proto;l=2722 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2697 + * google/container/v1/cluster_service.proto;l=2722 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java index 5988dad46f9b..6d56749bb613 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3319 + * google/container/v1/cluster_service.proto;l=3344 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3319 + * google/container/v1/cluster_service.proto;l=3344 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3325 + * google/container/v1/cluster_service.proto;l=3350 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3325 + * google/container/v1/cluster_service.proto;l=3350 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3329 + * google/container/v1/cluster_service.proto;l=3354 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3329 + * google/container/v1/cluster_service.proto;l=3354 * @return The bytes for clusterId. */ @java.lang.Override @@ -823,7 +823,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3319 + * google/container/v1/cluster_service.proto;l=3344 * @return The projectId. */ @java.lang.Deprecated @@ -850,7 +850,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3319 + * google/container/v1/cluster_service.proto;l=3344 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -877,7 +877,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3319 + * google/container/v1/cluster_service.proto;l=3344 * @param value The projectId to set. * @return This builder for chaining. */ @@ -903,7 +903,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3319 + * google/container/v1/cluster_service.proto;l=3344 * @return This builder for chaining. */ @java.lang.Deprecated @@ -925,7 +925,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3319 + * google/container/v1/cluster_service.proto;l=3344 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -955,7 +955,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3325 + * google/container/v1/cluster_service.proto;l=3350 * @return The zone. */ @java.lang.Deprecated @@ -983,7 +983,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3325 + * google/container/v1/cluster_service.proto;l=3350 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1011,7 +1011,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3325 + * google/container/v1/cluster_service.proto;l=3350 * @param value The zone to set. * @return This builder for chaining. */ @@ -1038,7 +1038,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3325 + * google/container/v1/cluster_service.proto;l=3350 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1061,7 +1061,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3325 + * google/container/v1/cluster_service.proto;l=3350 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1089,7 +1089,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3329 + * google/container/v1/cluster_service.proto;l=3354 * @return The clusterId. */ @java.lang.Deprecated @@ -1115,7 +1115,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3329 + * google/container/v1/cluster_service.proto;l=3354 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1141,7 +1141,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3329 + * google/container/v1/cluster_service.proto;l=3354 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1166,7 +1166,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3329 + * google/container/v1/cluster_service.proto;l=3354 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1187,7 +1187,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3329 + * google/container/v1/cluster_service.proto;l=3354 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java index e235692e9db0..98e663ca9cba 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CreateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3319 + * google/container/v1/cluster_service.proto;l=3344 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CreateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3319 + * google/container/v1/cluster_service.proto;l=3344 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3325 + * google/container/v1/cluster_service.proto;l=3350 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3325 + * google/container/v1/cluster_service.proto;l=3350 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface CreateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3329 + * google/container/v1/cluster_service.proto;l=3354 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface CreateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3329 + * google/container/v1/cluster_service.proto;l=3354 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java index 87d56af1495c..3c220cc72dc0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java @@ -127,13 +127,13 @@ public com.google.protobuf.ByteString getStartTimeBytes() { * * *
        -   * [Output only] Duration of the time window, automatically chosen to be
        +   * Output only. Duration of the time window, automatically chosen to be
            * smallest possible in the given scenario.
            * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
            * format "PTnHnMnS".
            * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The duration. */ @@ -153,13 +153,13 @@ public java.lang.String getDuration() { * * *
        -   * [Output only] Duration of the time window, automatically chosen to be
        +   * Output only. Duration of the time window, automatically chosen to be
            * smallest possible in the given scenario.
            * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
            * format "PTnHnMnS".
            * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for duration. */ @@ -662,13 +662,13 @@ public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] Duration of the time window, automatically chosen to be
        +     * Output only. Duration of the time window, automatically chosen to be
              * smallest possible in the given scenario.
              * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
              * format "PTnHnMnS".
              * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The duration. */ @@ -687,13 +687,13 @@ public java.lang.String getDuration() { * * *
        -     * [Output only] Duration of the time window, automatically chosen to be
        +     * Output only. Duration of the time window, automatically chosen to be
              * smallest possible in the given scenario.
              * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
              * format "PTnHnMnS".
              * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for duration. */ @@ -712,13 +712,13 @@ public com.google.protobuf.ByteString getDurationBytes() { * * *
        -     * [Output only] Duration of the time window, automatically chosen to be
        +     * Output only. Duration of the time window, automatically chosen to be
              * smallest possible in the given scenario.
              * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
              * format "PTnHnMnS".
              * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The duration to set. * @return This builder for chaining. @@ -736,13 +736,13 @@ public Builder setDuration(java.lang.String value) { * * *
        -     * [Output only] Duration of the time window, automatically chosen to be
        +     * Output only. Duration of the time window, automatically chosen to be
              * smallest possible in the given scenario.
              * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
              * format "PTnHnMnS".
              * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -756,13 +756,13 @@ public Builder clearDuration() { * * *
        -     * [Output only] Duration of the time window, automatically chosen to be
        +     * Output only. Duration of the time window, automatically chosen to be
              * smallest possible in the given scenario.
              * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
              * format "PTnHnMnS".
              * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for duration to set. * @return This builder for chaining. diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java index 52489a689bc9..55ef67a8484b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java @@ -57,13 +57,13 @@ public interface DailyMaintenanceWindowOrBuilder * * *
        -   * [Output only] Duration of the time window, automatically chosen to be
        +   * Output only. Duration of the time window, automatically chosen to be
            * smallest possible in the given scenario.
            * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
            * format "PTnHnMnS".
            * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The duration. */ @@ -72,13 +72,13 @@ public interface DailyMaintenanceWindowOrBuilder * * *
        -   * [Output only] Duration of the time window, automatically chosen to be
        +   * Output only. Duration of the time window, automatically chosen to be
            * smallest possible in the given scenario.
            * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
            * format "PTnHnMnS".
            * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for duration. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java index bc56f224a27c..ce8e9bb26a60 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3143 + * google/container/v1/cluster_service.proto;l=3168 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3143 + * google/container/v1/cluster_service.proto;l=3168 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3149 + * google/container/v1/cluster_service.proto;l=3174 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3149 + * google/container/v1/cluster_service.proto;l=3174 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3153 + * google/container/v1/cluster_service.proto;l=3178 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3153 + * google/container/v1/cluster_service.proto;l=3178 * @return The bytes for clusterId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3143 + * google/container/v1/cluster_service.proto;l=3168 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3143 + * google/container/v1/cluster_service.proto;l=3168 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3143 + * google/container/v1/cluster_service.proto;l=3168 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3143 + * google/container/v1/cluster_service.proto;l=3168 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3143 + * google/container/v1/cluster_service.proto;l=3168 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3149 + * google/container/v1/cluster_service.proto;l=3174 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3149 + * google/container/v1/cluster_service.proto;l=3174 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3149 + * google/container/v1/cluster_service.proto;l=3174 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3149 + * google/container/v1/cluster_service.proto;l=3174 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3149 + * google/container/v1/cluster_service.proto;l=3174 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3153 + * google/container/v1/cluster_service.proto;l=3178 * @return The clusterId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3153 + * google/container/v1/cluster_service.proto;l=3178 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3153 + * google/container/v1/cluster_service.proto;l=3178 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3153 + * google/container/v1/cluster_service.proto;l=3178 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3153 + * google/container/v1/cluster_service.proto;l=3178 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java index d016db82ba1e..481604a68262 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface DeleteClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3143 + * google/container/v1/cluster_service.proto;l=3168 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface DeleteClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3143 + * google/container/v1/cluster_service.proto;l=3168 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3149 + * google/container/v1/cluster_service.proto;l=3174 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3149 + * google/container/v1/cluster_service.proto;l=3174 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface DeleteClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3153 + * google/container/v1/cluster_service.proto;l=3178 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface DeleteClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3153 + * google/container/v1/cluster_service.proto;l=3178 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java index efaa21060966..6138dceb655e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3345 + * google/container/v1/cluster_service.proto;l=3370 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3345 + * google/container/v1/cluster_service.proto;l=3370 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3351 + * google/container/v1/cluster_service.proto;l=3376 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3351 + * google/container/v1/cluster_service.proto;l=3376 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3355 + * google/container/v1/cluster_service.proto;l=3380 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3355 + * google/container/v1/cluster_service.proto;l=3380 * @return The bytes for clusterId. */ @java.lang.Override @@ -265,7 +265,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3359 + * google/container/v1/cluster_service.proto;l=3384 * @return The nodePoolId. */ @java.lang.Override @@ -292,7 +292,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3359 + * google/container/v1/cluster_service.proto;l=3384 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -814,7 +814,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3345 + * google/container/v1/cluster_service.proto;l=3370 * @return The projectId. */ @java.lang.Deprecated @@ -841,7 +841,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3345 + * google/container/v1/cluster_service.proto;l=3370 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -868,7 +868,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3345 + * google/container/v1/cluster_service.proto;l=3370 * @param value The projectId to set. * @return This builder for chaining. */ @@ -894,7 +894,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3345 + * google/container/v1/cluster_service.proto;l=3370 * @return This builder for chaining. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3345 + * google/container/v1/cluster_service.proto;l=3370 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -946,7 +946,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3351 + * google/container/v1/cluster_service.proto;l=3376 * @return The zone. */ @java.lang.Deprecated @@ -974,7 +974,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3351 + * google/container/v1/cluster_service.proto;l=3376 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1002,7 +1002,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3351 + * google/container/v1/cluster_service.proto;l=3376 * @param value The zone to set. * @return This builder for chaining. */ @@ -1029,7 +1029,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3351 + * google/container/v1/cluster_service.proto;l=3376 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1052,7 +1052,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3351 + * google/container/v1/cluster_service.proto;l=3376 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1080,7 +1080,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3355 + * google/container/v1/cluster_service.proto;l=3380 * @return The clusterId. */ @java.lang.Deprecated @@ -1106,7 +1106,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3355 + * google/container/v1/cluster_service.proto;l=3380 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1132,7 +1132,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3355 + * google/container/v1/cluster_service.proto;l=3380 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1157,7 +1157,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3355 + * google/container/v1/cluster_service.proto;l=3380 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1178,7 +1178,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3355 + * google/container/v1/cluster_service.proto;l=3380 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1206,7 +1206,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3359 + * google/container/v1/cluster_service.proto;l=3384 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1232,7 +1232,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3359 + * google/container/v1/cluster_service.proto;l=3384 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1258,7 +1258,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3359 + * google/container/v1/cluster_service.proto;l=3384 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1283,7 +1283,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3359 + * google/container/v1/cluster_service.proto;l=3384 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1304,7 +1304,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3359 + * google/container/v1/cluster_service.proto;l=3384 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java index e12c15178465..b9045f0f534a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface DeleteNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3345 + * google/container/v1/cluster_service.proto;l=3370 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface DeleteNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3345 + * google/container/v1/cluster_service.proto;l=3370 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3351 + * google/container/v1/cluster_service.proto;l=3376 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3351 + * google/container/v1/cluster_service.proto;l=3376 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface DeleteNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3355 + * google/container/v1/cluster_service.proto;l=3380 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface DeleteNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3355 + * google/container/v1/cluster_service.proto;l=3380 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface DeleteNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3359 + * google/container/v1/cluster_service.proto;l=3384 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface DeleteNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3359 + * google/container/v1/cluster_service.proto;l=3384 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java index 599e4896e169..d70523b916cb 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java @@ -226,8 +226,7 @@ private ClusterTier(int value) { * * *
        -   * Output only. [Output only] cluster_tier specifies the premium tier of the
        -   * cluster.
        +   * Output only. cluster_tier specifies the premium tier of the cluster.
            * 
        * * @@ -244,8 +243,7 @@ public int getClusterTierValue() { * * *
        -   * Output only. [Output only] cluster_tier specifies the premium tier of the
        -   * cluster.
        +   * Output only. cluster_tier specifies the premium tier of the cluster.
            * 
        * * @@ -610,8 +608,7 @@ public Builder mergeFrom( * * *
        -     * Output only. [Output only] cluster_tier specifies the premium tier of the
        -     * cluster.
        +     * Output only. cluster_tier specifies the premium tier of the cluster.
              * 
        * * @@ -628,8 +625,7 @@ public int getClusterTierValue() { * * *
        -     * Output only. [Output only] cluster_tier specifies the premium tier of the
        -     * cluster.
        +     * Output only. cluster_tier specifies the premium tier of the cluster.
              * 
        * * @@ -649,8 +645,7 @@ public Builder setClusterTierValue(int value) { * * *
        -     * Output only. [Output only] cluster_tier specifies the premium tier of the
        -     * cluster.
        +     * Output only. cluster_tier specifies the premium tier of the cluster.
              * 
        * * @@ -671,8 +666,7 @@ public com.google.container.v1.EnterpriseConfig.ClusterTier getClusterTier() { * * *
        -     * Output only. [Output only] cluster_tier specifies the premium tier of the
        -     * cluster.
        +     * Output only. cluster_tier specifies the premium tier of the cluster.
              * 
        * * @@ -695,8 +689,7 @@ public Builder setClusterTier(com.google.container.v1.EnterpriseConfig.ClusterTi * * *
        -     * Output only. [Output only] cluster_tier specifies the premium tier of the
        -     * cluster.
        +     * Output only. cluster_tier specifies the premium tier of the cluster.
              * 
        * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java index 6f2aa83b97d1..cc443a4338f2 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java @@ -28,8 +28,7 @@ public interface EnterpriseConfigOrBuilder * * *
        -   * Output only. [Output only] cluster_tier specifies the premium tier of the
        -   * cluster.
        +   * Output only. cluster_tier specifies the premium tier of the cluster.
            * 
        * * @@ -43,8 +42,7 @@ public interface EnterpriseConfigOrBuilder * * *
        -   * Output only. [Output only] cluster_tier specifies the premium tier of the
        -   * cluster.
        +   * Output only. cluster_tier specifies the premium tier of the cluster.
            * 
        * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Fleet.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Fleet.java index 4f6c14be1aee..90c69f69e74b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Fleet.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Fleet.java @@ -126,12 +126,12 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
        -   * [Output only] The full resource name of the registered fleet membership of
        +   * Output only. The full resource name of the registered fleet membership of
            * the cluster, in the format
            * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
            * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The membership. */ @@ -151,12 +151,12 @@ public java.lang.String getMembership() { * * *
        -   * [Output only] The full resource name of the registered fleet membership of
        +   * Output only. The full resource name of the registered fleet membership of
            * the cluster, in the format
            * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
            * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for membership. */ @@ -179,11 +179,11 @@ public com.google.protobuf.ByteString getMembershipBytes() { * * *
        -   * [Output only] Whether the cluster has been registered through the fleet
        +   * Output only. Whether the cluster has been registered through the fleet
            * API.
            * 
        * - * bool pre_registered = 3; + * bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The preRegistered. */ @@ -696,12 +696,12 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The full resource name of the registered fleet membership of
        +     * Output only. The full resource name of the registered fleet membership of
              * the cluster, in the format
              * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
              * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The membership. */ @@ -720,12 +720,12 @@ public java.lang.String getMembership() { * * *
        -     * [Output only] The full resource name of the registered fleet membership of
        +     * Output only. The full resource name of the registered fleet membership of
              * the cluster, in the format
              * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
              * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for membership. */ @@ -744,12 +744,12 @@ public com.google.protobuf.ByteString getMembershipBytes() { * * *
        -     * [Output only] The full resource name of the registered fleet membership of
        +     * Output only. The full resource name of the registered fleet membership of
              * the cluster, in the format
              * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
              * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The membership to set. * @return This builder for chaining. @@ -767,12 +767,12 @@ public Builder setMembership(java.lang.String value) { * * *
        -     * [Output only] The full resource name of the registered fleet membership of
        +     * Output only. The full resource name of the registered fleet membership of
              * the cluster, in the format
              * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
              * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -786,12 +786,12 @@ public Builder clearMembership() { * * *
        -     * [Output only] The full resource name of the registered fleet membership of
        +     * Output only. The full resource name of the registered fleet membership of
              * the cluster, in the format
              * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
              * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for membership to set. * @return This builder for chaining. @@ -812,11 +812,11 @@ public Builder setMembershipBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] Whether the cluster has been registered through the fleet
        +     * Output only. Whether the cluster has been registered through the fleet
              * API.
              * 
        * - * bool pre_registered = 3; + * bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The preRegistered. */ @@ -828,11 +828,11 @@ public boolean getPreRegistered() { * * *
        -     * [Output only] Whether the cluster has been registered through the fleet
        +     * Output only. Whether the cluster has been registered through the fleet
              * API.
              * 
        * - * bool pre_registered = 3; + * bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The preRegistered to set. * @return This builder for chaining. @@ -848,11 +848,11 @@ public Builder setPreRegistered(boolean value) { * * *
        -     * [Output only] Whether the cluster has been registered through the fleet
        +     * Output only. Whether the cluster has been registered through the fleet
              * API.
              * 
        * - * bool pre_registered = 3; + * bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FleetOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FleetOrBuilder.java index 30557ba8559d..c733ccb1305b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FleetOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FleetOrBuilder.java @@ -57,12 +57,12 @@ public interface FleetOrBuilder * * *
        -   * [Output only] The full resource name of the registered fleet membership of
        +   * Output only. The full resource name of the registered fleet membership of
            * the cluster, in the format
            * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
            * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The membership. */ @@ -71,12 +71,12 @@ public interface FleetOrBuilder * * *
        -   * [Output only] The full resource name of the registered fleet membership of
        +   * Output only. The full resource name of the registered fleet membership of
            * the cluster, in the format
            * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
            * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for membership. */ @@ -86,11 +86,11 @@ public interface FleetOrBuilder * * *
        -   * [Output only] Whether the cluster has been registered through the fleet
        +   * Output only. Whether the cluster has been registered through the fleet
            * API.
            * 
        * - * bool pre_registered = 3; + * bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The preRegistered. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfig.java index 8ea084a00746..780d7a0f2b20 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfig.java @@ -98,11 +98,13 @@ public enum Channel implements com.google.protobuf.ProtocolMessageEnum { * * *
        +     * Deprecated: use CHANNEL_STANDARD instead.
              * Gateway API support is enabled, experimental CRDs are installed
              * 
        * - * CHANNEL_EXPERIMENTAL = 3; + * CHANNEL_EXPERIMENTAL = 3 [deprecated = true]; */ + @java.lang.Deprecated CHANNEL_EXPERIMENTAL(3), /** * @@ -141,12 +143,13 @@ public enum Channel implements com.google.protobuf.ProtocolMessageEnum { * * *
        +     * Deprecated: use CHANNEL_STANDARD instead.
              * Gateway API support is enabled, experimental CRDs are installed
              * 
        * - * CHANNEL_EXPERIMENTAL = 3; + * CHANNEL_EXPERIMENTAL = 3 [deprecated = true]; */ - public static final int CHANNEL_EXPERIMENTAL_VALUE = 3; + @java.lang.Deprecated public static final int CHANNEL_EXPERIMENTAL_VALUE = 3; /** * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java index a427ad30c558..3a29fbf1c689 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2713 + * google/container/v1/cluster_service.proto;l=2738 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2713 + * google/container/v1/cluster_service.proto;l=2738 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2719 + * google/container/v1/cluster_service.proto;l=2744 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2719 + * google/container/v1/cluster_service.proto;l=2744 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2723 + * google/container/v1/cluster_service.proto;l=2748 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2723 + * google/container/v1/cluster_service.proto;l=2748 * @return The bytes for clusterId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2713 + * google/container/v1/cluster_service.proto;l=2738 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2713 + * google/container/v1/cluster_service.proto;l=2738 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2713 + * google/container/v1/cluster_service.proto;l=2738 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2713 + * google/container/v1/cluster_service.proto;l=2738 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2713 + * google/container/v1/cluster_service.proto;l=2738 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2719 + * google/container/v1/cluster_service.proto;l=2744 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2719 + * google/container/v1/cluster_service.proto;l=2744 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2719 + * google/container/v1/cluster_service.proto;l=2744 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2719 + * google/container/v1/cluster_service.proto;l=2744 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2719 + * google/container/v1/cluster_service.proto;l=2744 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2723 + * google/container/v1/cluster_service.proto;l=2748 * @return The clusterId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2723 + * google/container/v1/cluster_service.proto;l=2748 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2723 + * google/container/v1/cluster_service.proto;l=2748 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2723 + * google/container/v1/cluster_service.proto;l=2748 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2723 + * google/container/v1/cluster_service.proto;l=2748 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java index 940f84716e73..65f92df3eeb3 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2713 + * google/container/v1/cluster_service.proto;l=2738 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2713 + * google/container/v1/cluster_service.proto;l=2738 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2719 + * google/container/v1/cluster_service.proto;l=2744 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2719 + * google/container/v1/cluster_service.proto;l=2744 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface GetClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2723 + * google/container/v1/cluster_service.proto;l=2748 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface GetClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2723 + * google/container/v1/cluster_service.proto;l=2748 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java index 69020d1a28ba..3de538aaa9db 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3394 + * google/container/v1/cluster_service.proto;l=3419 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3394 + * google/container/v1/cluster_service.proto;l=3419 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3400 + * google/container/v1/cluster_service.proto;l=3425 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3400 + * google/container/v1/cluster_service.proto;l=3425 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3404 + * google/container/v1/cluster_service.proto;l=3429 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3404 + * google/container/v1/cluster_service.proto;l=3429 * @return The bytes for clusterId. */ @java.lang.Override @@ -265,7 +265,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3408 + * google/container/v1/cluster_service.proto;l=3433 * @return The nodePoolId. */ @java.lang.Override @@ -292,7 +292,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3408 + * google/container/v1/cluster_service.proto;l=3433 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -814,7 +814,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3394 + * google/container/v1/cluster_service.proto;l=3419 * @return The projectId. */ @java.lang.Deprecated @@ -841,7 +841,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3394 + * google/container/v1/cluster_service.proto;l=3419 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -868,7 +868,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3394 + * google/container/v1/cluster_service.proto;l=3419 * @param value The projectId to set. * @return This builder for chaining. */ @@ -894,7 +894,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3394 + * google/container/v1/cluster_service.proto;l=3419 * @return This builder for chaining. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3394 + * google/container/v1/cluster_service.proto;l=3419 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -946,7 +946,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3400 + * google/container/v1/cluster_service.proto;l=3425 * @return The zone. */ @java.lang.Deprecated @@ -974,7 +974,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3400 + * google/container/v1/cluster_service.proto;l=3425 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1002,7 +1002,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3400 + * google/container/v1/cluster_service.proto;l=3425 * @param value The zone to set. * @return This builder for chaining. */ @@ -1029,7 +1029,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3400 + * google/container/v1/cluster_service.proto;l=3425 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1052,7 +1052,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3400 + * google/container/v1/cluster_service.proto;l=3425 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1080,7 +1080,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3404 + * google/container/v1/cluster_service.proto;l=3429 * @return The clusterId. */ @java.lang.Deprecated @@ -1106,7 +1106,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3404 + * google/container/v1/cluster_service.proto;l=3429 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1132,7 +1132,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3404 + * google/container/v1/cluster_service.proto;l=3429 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1157,7 +1157,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3404 + * google/container/v1/cluster_service.proto;l=3429 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1178,7 +1178,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3404 + * google/container/v1/cluster_service.proto;l=3429 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1206,7 +1206,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3408 + * google/container/v1/cluster_service.proto;l=3433 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1232,7 +1232,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3408 + * google/container/v1/cluster_service.proto;l=3433 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1258,7 +1258,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3408 + * google/container/v1/cluster_service.proto;l=3433 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1283,7 +1283,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3408 + * google/container/v1/cluster_service.proto;l=3433 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1304,7 +1304,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3408 + * google/container/v1/cluster_service.proto;l=3433 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java index 033d4ff5ea1b..a5dc72faf2fd 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3394 + * google/container/v1/cluster_service.proto;l=3419 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3394 + * google/container/v1/cluster_service.proto;l=3419 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3400 + * google/container/v1/cluster_service.proto;l=3425 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3400 + * google/container/v1/cluster_service.proto;l=3425 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface GetNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3404 + * google/container/v1/cluster_service.proto;l=3429 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface GetNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3404 + * google/container/v1/cluster_service.proto;l=3429 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface GetNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3408 + * google/container/v1/cluster_service.proto;l=3433 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface GetNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3408 + * google/container/v1/cluster_service.proto;l=3433 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java index 9fe009188101..864166c74f19 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3195 + * google/container/v1/cluster_service.proto;l=3220 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3195 + * google/container/v1/cluster_service.proto;l=3220 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 + * google/container/v1/cluster_service.proto;l=3226 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 + * google/container/v1/cluster_service.proto;l=3226 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3230 * @return The operationId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3230 * @return The bytes for operationId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3195 + * google/container/v1/cluster_service.proto;l=3220 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3195 + * google/container/v1/cluster_service.proto;l=3220 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3195 + * google/container/v1/cluster_service.proto;l=3220 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3195 + * google/container/v1/cluster_service.proto;l=3220 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3195 + * google/container/v1/cluster_service.proto;l=3220 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 + * google/container/v1/cluster_service.proto;l=3226 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 + * google/container/v1/cluster_service.proto;l=3226 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 + * google/container/v1/cluster_service.proto;l=3226 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 + * google/container/v1/cluster_service.proto;l=3226 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 + * google/container/v1/cluster_service.proto;l=3226 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3230 * @return The operationId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3230 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3230 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setOperationId(java.lang.String value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3230 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3230 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java index 4d0100bd19fc..7fd61efb9f8d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3195 + * google/container/v1/cluster_service.proto;l=3220 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3195 + * google/container/v1/cluster_service.proto;l=3220 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 + * google/container/v1/cluster_service.proto;l=3226 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 + * google/container/v1/cluster_service.proto;l=3226 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface GetOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3230 * @return The operationId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface GetOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3230 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java index 06cb5914effb..27ca5f57dc7f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3293 * @return The projectId. */ @java.lang.Override @@ -109,7 +109,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3293 * @return The bytes for projectId. */ @java.lang.Override @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3274 + * google/container/v1/cluster_service.proto;l=3299 * @return The zone. */ @java.lang.Override @@ -172,7 +172,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3274 + * google/container/v1/cluster_service.proto;l=3299 * @return The bytes for zone. */ @java.lang.Override @@ -644,7 +644,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3293 * @return The projectId. */ @java.lang.Deprecated @@ -671,7 +671,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3293 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -698,7 +698,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3293 * @param value The projectId to set. * @return This builder for chaining. */ @@ -724,7 +724,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3293 * @return This builder for chaining. */ @java.lang.Deprecated @@ -746,7 +746,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3293 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -776,7 +776,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3274 + * google/container/v1/cluster_service.proto;l=3299 * @return The zone. */ @java.lang.Deprecated @@ -804,7 +804,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3274 + * google/container/v1/cluster_service.proto;l=3299 * @return The bytes for zone. */ @java.lang.Deprecated @@ -832,7 +832,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3274 + * google/container/v1/cluster_service.proto;l=3299 * @param value The zone to set. * @return This builder for chaining. */ @@ -859,7 +859,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3274 + * google/container/v1/cluster_service.proto;l=3299 * @return This builder for chaining. */ @java.lang.Deprecated @@ -882,7 +882,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3274 + * google/container/v1/cluster_service.proto;l=3299 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java index 23d8a037729e..ec27bca8c137 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetServerConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3293 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetServerConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3293 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3274 + * google/container/v1/cluster_service.proto;l=3299 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3274 + * google/container/v1/cluster_service.proto;l=3299 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java index b13e71171148..33aaee6d6b70 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java @@ -187,7 +187,7 @@ public com.google.protobuf.ByteString getSubnetworkNameBytes() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1562 + * google/container/v1/cluster_service.proto;l=1581 * @return The clusterIpv4Cidr. */ @java.lang.Override @@ -213,7 +213,7 @@ public java.lang.String getClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1562 + * google/container/v1/cluster_service.proto;l=1581 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Override @@ -244,7 +244,7 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1565 + * google/container/v1/cluster_service.proto;l=1584 * @return The nodeIpv4Cidr. */ @java.lang.Override @@ -270,7 +270,7 @@ public java.lang.String getNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1565 + * google/container/v1/cluster_service.proto;l=1584 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Override @@ -301,7 +301,7 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1568 + * google/container/v1/cluster_service.proto;l=1587 * @return The servicesIpv4Cidr. */ @java.lang.Override @@ -327,7 +327,7 @@ public java.lang.String getServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1568 + * google/container/v1/cluster_service.proto;l=1587 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Override @@ -970,8 +970,7 @@ public com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisio * * *
        -   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -   * pods.
        +   * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
            * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -994,8 +993,7 @@ public java.lang.String getSubnetIpv6CidrBlock() { * * *
        -   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -   * pods.
        +   * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
            * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1023,7 +1021,7 @@ public com.google.protobuf.ByteString getSubnetIpv6CidrBlockBytes() { * * *
        -   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +   * Output only. The services IPv6 CIDR block for the cluster.
            * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1046,7 +1044,7 @@ public java.lang.String getServicesIpv6CidrBlock() { * * *
        -   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +   * Output only. The services IPv6 CIDR block for the cluster.
            * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1072,8 +1070,8 @@ public com.google.protobuf.ByteString getServicesIpv6CidrBlockBytes() { * * *
        -   * Output only. [Output only] The additional pod ranges that are added to the
        -   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +   * Output only. The additional pod ranges that are added to the cluster.
        +   * These pod ranges can be used by new node pools to allocate pod IPs
            * automatically. Once the range is removed it will not show up in
            * IPAllocationPolicy.
            * 
        @@ -1092,8 +1090,8 @@ public boolean hasAdditionalPodRangesConfig() { * * *
        -   * Output only. [Output only] The additional pod ranges that are added to the
        -   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +   * Output only. The additional pod ranges that are added to the cluster.
        +   * These pod ranges can be used by new node pools to allocate pod IPs
            * automatically. Once the range is removed it will not show up in
            * IPAllocationPolicy.
            * 
        @@ -1114,8 +1112,8 @@ public com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesC * * *
        -   * Output only. [Output only] The additional pod ranges that are added to the
        -   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +   * Output only. The additional pod ranges that are added to the cluster.
        +   * These pod ranges can be used by new node pools to allocate pod IPs
            * automatically. Once the range is removed it will not show up in
            * IPAllocationPolicy.
            * 
        @@ -1138,9 +1136,9 @@ public com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesC * * *
        -   * Output only. [Output only] The utilization of the cluster default IPv4
        -   * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
        -   * range], Usage=numNodes*numZones*podIPsPerNode.
        +   * Output only. The utilization of the cluster default IPv4 range for the
        +   * pod. The ratio is Usage/[Total number of IPs in the secondary range],
        +   * Usage=numNodes*numZones*podIPsPerNode.
            * 
        * * @@ -2241,7 +2239,7 @@ public Builder setSubnetworkNameBytes(com.google.protobuf.ByteString value) { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1562 + * google/container/v1/cluster_service.proto;l=1581 * @return The clusterIpv4Cidr. */ @java.lang.Deprecated @@ -2266,7 +2264,7 @@ public java.lang.String getClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1562 + * google/container/v1/cluster_service.proto;l=1581 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated @@ -2291,7 +2289,7 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1562 + * google/container/v1/cluster_service.proto;l=1581 * @param value The clusterIpv4Cidr to set. * @return This builder for chaining. */ @@ -2315,7 +2313,7 @@ public Builder setClusterIpv4Cidr(java.lang.String value) { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1562 + * google/container/v1/cluster_service.proto;l=1581 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2335,7 +2333,7 @@ public Builder clearClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1562 + * google/container/v1/cluster_service.proto;l=1581 * @param value The bytes for clusterIpv4Cidr to set. * @return This builder for chaining. */ @@ -2362,7 +2360,7 @@ public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1565 + * google/container/v1/cluster_service.proto;l=1584 * @return The nodeIpv4Cidr. */ @java.lang.Deprecated @@ -2387,7 +2385,7 @@ public java.lang.String getNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1565 + * google/container/v1/cluster_service.proto;l=1584 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated @@ -2412,7 +2410,7 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1565 + * google/container/v1/cluster_service.proto;l=1584 * @param value The nodeIpv4Cidr to set. * @return This builder for chaining. */ @@ -2436,7 +2434,7 @@ public Builder setNodeIpv4Cidr(java.lang.String value) { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1565 + * google/container/v1/cluster_service.proto;l=1584 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2456,7 +2454,7 @@ public Builder clearNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1565 + * google/container/v1/cluster_service.proto;l=1584 * @param value The bytes for nodeIpv4Cidr to set. * @return This builder for chaining. */ @@ -2483,7 +2481,7 @@ public Builder setNodeIpv4CidrBytes(com.google.protobuf.ByteString value) { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1568 + * google/container/v1/cluster_service.proto;l=1587 * @return The servicesIpv4Cidr. */ @java.lang.Deprecated @@ -2508,7 +2506,7 @@ public java.lang.String getServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1568 + * google/container/v1/cluster_service.proto;l=1587 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated @@ -2533,7 +2531,7 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1568 + * google/container/v1/cluster_service.proto;l=1587 * @param value The servicesIpv4Cidr to set. * @return This builder for chaining. */ @@ -2557,7 +2555,7 @@ public Builder setServicesIpv4Cidr(java.lang.String value) { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1568 + * google/container/v1/cluster_service.proto;l=1587 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2577,7 +2575,7 @@ public Builder clearServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1568 + * google/container/v1/cluster_service.proto;l=1587 * @param value The bytes for servicesIpv4Cidr to set. * @return This builder for chaining. */ @@ -4110,8 +4108,7 @@ public Builder clearPodCidrOverprovisionConfig() { * * *
        -     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -     * pods.
        +     * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
              * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4133,8 +4130,7 @@ public java.lang.String getSubnetIpv6CidrBlock() { * * *
        -     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -     * pods.
        +     * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
              * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4156,8 +4152,7 @@ public com.google.protobuf.ByteString getSubnetIpv6CidrBlockBytes() { * * *
        -     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -     * pods.
        +     * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
              * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4178,8 +4173,7 @@ public Builder setSubnetIpv6CidrBlock(java.lang.String value) { * * *
        -     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -     * pods.
        +     * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
              * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4196,8 +4190,7 @@ public Builder clearSubnetIpv6CidrBlock() { * * *
        -     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -     * pods.
        +     * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
              * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4221,7 +4214,7 @@ public Builder setSubnetIpv6CidrBlockBytes(com.google.protobuf.ByteString value) * * *
        -     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +     * Output only. The services IPv6 CIDR block for the cluster.
              * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4244,7 +4237,7 @@ public java.lang.String getServicesIpv6CidrBlock() { * * *
        -     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +     * Output only. The services IPv6 CIDR block for the cluster.
              * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4267,7 +4260,7 @@ public com.google.protobuf.ByteString getServicesIpv6CidrBlockBytes() { * * *
        -     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +     * Output only. The services IPv6 CIDR block for the cluster.
              * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4289,7 +4282,7 @@ public Builder setServicesIpv6CidrBlock(java.lang.String value) { * * *
        -     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +     * Output only. The services IPv6 CIDR block for the cluster.
              * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4307,7 +4300,7 @@ public Builder clearServicesIpv6CidrBlock() { * * *
        -     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +     * Output only. The services IPv6 CIDR block for the cluster.
              * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4337,8 +4330,8 @@ public Builder setServicesIpv6CidrBlockBytes(com.google.protobuf.ByteString valu * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4356,8 +4349,8 @@ public boolean hasAdditionalPodRangesConfig() { * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4381,8 +4374,8 @@ public com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesC * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4409,8 +4402,8 @@ public Builder setAdditionalPodRangesConfig( * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4434,8 +4427,8 @@ public Builder setAdditionalPodRangesConfig( * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4468,8 +4461,8 @@ public Builder mergeAdditionalPodRangesConfig( * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4492,8 +4485,8 @@ public Builder clearAdditionalPodRangesConfig() { * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4512,8 +4505,8 @@ public Builder clearAdditionalPodRangesConfig() { * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4536,8 +4529,8 @@ public Builder clearAdditionalPodRangesConfig() { * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4568,9 +4561,9 @@ public Builder clearAdditionalPodRangesConfig() { * * *
        -     * Output only. [Output only] The utilization of the cluster default IPv4
        -     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
        -     * range], Usage=numNodes*numZones*podIPsPerNode.
        +     * Output only. The utilization of the cluster default IPv4 range for the
        +     * pod. The ratio is Usage/[Total number of IPs in the secondary range],
        +     * Usage=numNodes*numZones*podIPsPerNode.
              * 
        * * @@ -4587,9 +4580,9 @@ public double getDefaultPodIpv4RangeUtilization() { * * *
        -     * Output only. [Output only] The utilization of the cluster default IPv4
        -     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
        -     * range], Usage=numNodes*numZones*podIPsPerNode.
        +     * Output only. The utilization of the cluster default IPv4 range for the
        +     * pod. The ratio is Usage/[Total number of IPs in the secondary range],
        +     * Usage=numNodes*numZones*podIPsPerNode.
              * 
        * * @@ -4610,9 +4603,9 @@ public Builder setDefaultPodIpv4RangeUtilization(double value) { * * *
        -     * Output only. [Output only] The utilization of the cluster default IPv4
        -     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
        -     * range], Usage=numNodes*numZones*podIPsPerNode.
        +     * Output only. The utilization of the cluster default IPv4 range for the
        +     * pod. The ratio is Usage/[Total number of IPs in the secondary range],
        +     * Usage=numNodes*numZones*podIPsPerNode.
              * 
        * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java index 86f6def1eeb8..fdd06ebc4beb 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java @@ -94,7 +94,7 @@ public interface IPAllocationPolicyOrBuilder * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1562 + * google/container/v1/cluster_service.proto;l=1581 * @return The clusterIpv4Cidr. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface IPAllocationPolicyOrBuilder * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1562 + * google/container/v1/cluster_service.proto;l=1581 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated @@ -125,7 +125,7 @@ public interface IPAllocationPolicyOrBuilder * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1565 + * google/container/v1/cluster_service.proto;l=1584 * @return The nodeIpv4Cidr. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface IPAllocationPolicyOrBuilder * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1565 + * google/container/v1/cluster_service.proto;l=1584 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface IPAllocationPolicyOrBuilder * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1568 + * google/container/v1/cluster_service.proto;l=1587 * @return The servicesIpv4Cidr. */ @java.lang.Deprecated @@ -171,7 +171,7 @@ public interface IPAllocationPolicyOrBuilder * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1568 + * google/container/v1/cluster_service.proto;l=1587 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated @@ -603,8 +603,7 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -   * pods.
        +   * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
            * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -616,8 +615,7 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -   * pods.
        +   * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
            * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -630,7 +628,7 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +   * Output only. The services IPv6 CIDR block for the cluster.
            * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -642,7 +640,7 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +   * Output only. The services IPv6 CIDR block for the cluster.
            * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -655,8 +653,8 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The additional pod ranges that are added to the
        -   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +   * Output only. The additional pod ranges that are added to the cluster.
        +   * These pod ranges can be used by new node pools to allocate pod IPs
            * automatically. Once the range is removed it will not show up in
            * IPAllocationPolicy.
            * 
        @@ -672,8 +670,8 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The additional pod ranges that are added to the
        -   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +   * Output only. The additional pod ranges that are added to the cluster.
        +   * These pod ranges can be used by new node pools to allocate pod IPs
            * automatically. Once the range is removed it will not show up in
            * IPAllocationPolicy.
            * 
        @@ -689,8 +687,8 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The additional pod ranges that are added to the
        -   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +   * Output only. The additional pod ranges that are added to the cluster.
        +   * These pod ranges can be used by new node pools to allocate pod IPs
            * automatically. Once the range is removed it will not show up in
            * IPAllocationPolicy.
            * 
        @@ -706,9 +704,9 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The utilization of the cluster default IPv4
        -   * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
        -   * range], Usage=numNodes*numZones*podIPsPerNode.
        +   * Output only. The utilization of the cluster default IPv4 range for the
        +   * pod. The ratio is Usage/[Total number of IPs in the secondary range],
        +   * Usage=numNodes*numZones*podIPsPerNode.
            * 
        * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java index 5216155496ba..e504d5ac685a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3165 + * google/container/v1/cluster_service.proto;l=3190 * @return The projectId. */ @java.lang.Override @@ -109,7 +109,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3165 + * google/container/v1/cluster_service.proto;l=3190 * @return The bytes for projectId. */ @java.lang.Override @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3171 + * google/container/v1/cluster_service.proto;l=3196 * @return The zone. */ @java.lang.Override @@ -172,7 +172,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3171 + * google/container/v1/cluster_service.proto;l=3196 * @return The bytes for zone. */ @java.lang.Override @@ -646,7 +646,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3165 + * google/container/v1/cluster_service.proto;l=3190 * @return The projectId. */ @java.lang.Deprecated @@ -673,7 +673,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3165 + * google/container/v1/cluster_service.proto;l=3190 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -700,7 +700,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3165 + * google/container/v1/cluster_service.proto;l=3190 * @param value The projectId to set. * @return This builder for chaining. */ @@ -726,7 +726,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3165 + * google/container/v1/cluster_service.proto;l=3190 * @return This builder for chaining. */ @java.lang.Deprecated @@ -748,7 +748,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3165 + * google/container/v1/cluster_service.proto;l=3190 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -778,7 +778,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3171 + * google/container/v1/cluster_service.proto;l=3196 * @return The zone. */ @java.lang.Deprecated @@ -806,7 +806,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3171 + * google/container/v1/cluster_service.proto;l=3196 * @return The bytes for zone. */ @java.lang.Deprecated @@ -834,7 +834,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3171 + * google/container/v1/cluster_service.proto;l=3196 * @param value The zone to set. * @return This builder for chaining. */ @@ -861,7 +861,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3171 + * google/container/v1/cluster_service.proto;l=3196 * @return This builder for chaining. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3171 + * google/container/v1/cluster_service.proto;l=3196 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java index a052fd8e737b..324db5677fb7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListClustersRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3165 + * google/container/v1/cluster_service.proto;l=3190 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface ListClustersRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3165 + * google/container/v1/cluster_service.proto;l=3190 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3171 + * google/container/v1/cluster_service.proto;l=3196 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3171 + * google/container/v1/cluster_service.proto;l=3196 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java index 45b10e828b48..2464529f944a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3372 + * google/container/v1/cluster_service.proto;l=3397 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3372 + * google/container/v1/cluster_service.proto;l=3397 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3378 + * google/container/v1/cluster_service.proto;l=3403 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3378 + * google/container/v1/cluster_service.proto;l=3403 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3382 + * google/container/v1/cluster_service.proto;l=3407 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3382 + * google/container/v1/cluster_service.proto;l=3407 * @return The bytes for clusterId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3372 + * google/container/v1/cluster_service.proto;l=3397 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3372 + * google/container/v1/cluster_service.proto;l=3397 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3372 + * google/container/v1/cluster_service.proto;l=3397 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3372 + * google/container/v1/cluster_service.proto;l=3397 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3372 + * google/container/v1/cluster_service.proto;l=3397 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3378 + * google/container/v1/cluster_service.proto;l=3403 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3378 + * google/container/v1/cluster_service.proto;l=3403 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3378 + * google/container/v1/cluster_service.proto;l=3403 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3378 + * google/container/v1/cluster_service.proto;l=3403 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3378 + * google/container/v1/cluster_service.proto;l=3403 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3382 + * google/container/v1/cluster_service.proto;l=3407 * @return The clusterId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3382 + * google/container/v1/cluster_service.proto;l=3407 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3382 + * google/container/v1/cluster_service.proto;l=3407 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3382 + * google/container/v1/cluster_service.proto;l=3407 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3382 + * google/container/v1/cluster_service.proto;l=3407 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java index 6f2634febe19..3010728d7e1f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListNodePoolsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3372 + * google/container/v1/cluster_service.proto;l=3397 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface ListNodePoolsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3372 + * google/container/v1/cluster_service.proto;l=3397 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3378 + * google/container/v1/cluster_service.proto;l=3403 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3378 + * google/container/v1/cluster_service.proto;l=3403 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface ListNodePoolsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3382 + * google/container/v1/cluster_service.proto;l=3407 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface ListNodePoolsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3382 + * google/container/v1/cluster_service.proto;l=3407 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java index b92e5cd876c7..b0709c0c0794 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3217 + * google/container/v1/cluster_service.proto;l=3242 * @return The projectId. */ @java.lang.Override @@ -109,7 +109,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3217 + * google/container/v1/cluster_service.proto;l=3242 * @return The bytes for projectId. */ @java.lang.Override @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3223 + * google/container/v1/cluster_service.proto;l=3248 * @return The zone. */ @java.lang.Override @@ -172,7 +172,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3223 + * google/container/v1/cluster_service.proto;l=3248 * @return The bytes for zone. */ @java.lang.Override @@ -646,7 +646,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3217 + * google/container/v1/cluster_service.proto;l=3242 * @return The projectId. */ @java.lang.Deprecated @@ -673,7 +673,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3217 + * google/container/v1/cluster_service.proto;l=3242 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -700,7 +700,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3217 + * google/container/v1/cluster_service.proto;l=3242 * @param value The projectId to set. * @return This builder for chaining. */ @@ -726,7 +726,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3217 + * google/container/v1/cluster_service.proto;l=3242 * @return This builder for chaining. */ @java.lang.Deprecated @@ -748,7 +748,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3217 + * google/container/v1/cluster_service.proto;l=3242 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -778,7 +778,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3223 + * google/container/v1/cluster_service.proto;l=3248 * @return The zone. */ @java.lang.Deprecated @@ -806,7 +806,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3223 + * google/container/v1/cluster_service.proto;l=3248 * @return The bytes for zone. */ @java.lang.Deprecated @@ -834,7 +834,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3223 + * google/container/v1/cluster_service.proto;l=3248 * @param value The zone to set. * @return This builder for chaining. */ @@ -861,7 +861,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3223 + * google/container/v1/cluster_service.proto;l=3248 * @return This builder for chaining. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3223 + * google/container/v1/cluster_service.proto;l=3248 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java index fa20dbc5de91..eab387aa2499 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListOperationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3217 + * google/container/v1/cluster_service.proto;l=3242 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface ListOperationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3217 + * google/container/v1/cluster_service.proto;l=3242 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3223 + * google/container/v1/cluster_service.proto;l=3248 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3223 + * google/container/v1/cluster_service.proto;l=3248 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java index 47bdd716671a..3f014e14b9ef 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java @@ -279,11 +279,11 @@ public com.google.container.v1.ClientCertificateConfig getClientCertificateConfi * * *
        -   * [Output only] Base64-encoded public certificate that is the root of
        +   * Output only. Base64-encoded public certificate that is the root of
            * trust for the cluster.
            * 
        * - * string cluster_ca_certificate = 100; + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clusterCaCertificate. */ @@ -303,11 +303,11 @@ public java.lang.String getClusterCaCertificate() { * * *
        -   * [Output only] Base64-encoded public certificate that is the root of
        +   * Output only. Base64-encoded public certificate that is the root of
            * trust for the cluster.
            * 
        * - * string cluster_ca_certificate = 100; + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clusterCaCertificate. */ @@ -332,11 +332,11 @@ public com.google.protobuf.ByteString getClusterCaCertificateBytes() { * * *
        -   * [Output only] Base64-encoded public certificate used by clients to
        +   * Output only. Base64-encoded public certificate used by clients to
            * authenticate to the cluster endpoint.
            * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clientCertificate. */ @@ -356,11 +356,11 @@ public java.lang.String getClientCertificate() { * * *
        -   * [Output only] Base64-encoded public certificate used by clients to
        +   * Output only. Base64-encoded public certificate used by clients to
            * authenticate to the cluster endpoint.
            * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clientCertificate. */ @@ -385,11 +385,11 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { * * *
        -   * [Output only] Base64-encoded private key used by clients to authenticate
        +   * Output only. Base64-encoded private key used by clients to authenticate
            * to the cluster endpoint.
            * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clientKey. */ @@ -409,11 +409,11 @@ public java.lang.String getClientKey() { * * *
        -   * [Output only] Base64-encoded private key used by clients to authenticate
        +   * Output only. Base64-encoded private key used by clients to authenticate
            * to the cluster endpoint.
            * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clientKey. */ @@ -1445,11 +1445,12 @@ public Builder clearClientCertificateConfig() { * * *
        -     * [Output only] Base64-encoded public certificate that is the root of
        +     * Output only. Base64-encoded public certificate that is the root of
              * trust for the cluster.
              * 
        * - * string cluster_ca_certificate = 100; + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The clusterCaCertificate. */ @@ -1468,11 +1469,12 @@ public java.lang.String getClusterCaCertificate() { * * *
        -     * [Output only] Base64-encoded public certificate that is the root of
        +     * Output only. Base64-encoded public certificate that is the root of
              * trust for the cluster.
              * 
        * - * string cluster_ca_certificate = 100; + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for clusterCaCertificate. */ @@ -1491,11 +1493,12 @@ public com.google.protobuf.ByteString getClusterCaCertificateBytes() { * * *
        -     * [Output only] Base64-encoded public certificate that is the root of
        +     * Output only. Base64-encoded public certificate that is the root of
              * trust for the cluster.
              * 
        * - * string cluster_ca_certificate = 100; + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The clusterCaCertificate to set. * @return This builder for chaining. @@ -1513,11 +1516,12 @@ public Builder setClusterCaCertificate(java.lang.String value) { * * *
        -     * [Output only] Base64-encoded public certificate that is the root of
        +     * Output only. Base64-encoded public certificate that is the root of
              * trust for the cluster.
              * 
        * - * string cluster_ca_certificate = 100; + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -1531,11 +1535,12 @@ public Builder clearClusterCaCertificate() { * * *
        -     * [Output only] Base64-encoded public certificate that is the root of
        +     * Output only. Base64-encoded public certificate that is the root of
              * trust for the cluster.
              * 
        * - * string cluster_ca_certificate = 100; + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes for clusterCaCertificate to set. * @return This builder for chaining. @@ -1556,11 +1561,11 @@ public Builder setClusterCaCertificateBytes(com.google.protobuf.ByteString value * * *
        -     * [Output only] Base64-encoded public certificate used by clients to
        +     * Output only. Base64-encoded public certificate used by clients to
              * authenticate to the cluster endpoint.
              * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clientCertificate. */ @@ -1579,11 +1584,11 @@ public java.lang.String getClientCertificate() { * * *
        -     * [Output only] Base64-encoded public certificate used by clients to
        +     * Output only. Base64-encoded public certificate used by clients to
              * authenticate to the cluster endpoint.
              * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clientCertificate. */ @@ -1602,11 +1607,11 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { * * *
        -     * [Output only] Base64-encoded public certificate used by clients to
        +     * Output only. Base64-encoded public certificate used by clients to
              * authenticate to the cluster endpoint.
              * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The clientCertificate to set. * @return This builder for chaining. @@ -1624,11 +1629,11 @@ public Builder setClientCertificate(java.lang.String value) { * * *
        -     * [Output only] Base64-encoded public certificate used by clients to
        +     * Output only. Base64-encoded public certificate used by clients to
              * authenticate to the cluster endpoint.
              * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1642,11 +1647,11 @@ public Builder clearClientCertificate() { * * *
        -     * [Output only] Base64-encoded public certificate used by clients to
        +     * Output only. Base64-encoded public certificate used by clients to
              * authenticate to the cluster endpoint.
              * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for clientCertificate to set. * @return This builder for chaining. @@ -1667,11 +1672,11 @@ public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] Base64-encoded private key used by clients to authenticate
        +     * Output only. Base64-encoded private key used by clients to authenticate
              * to the cluster endpoint.
              * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clientKey. */ @@ -1690,11 +1695,11 @@ public java.lang.String getClientKey() { * * *
        -     * [Output only] Base64-encoded private key used by clients to authenticate
        +     * Output only. Base64-encoded private key used by clients to authenticate
              * to the cluster endpoint.
              * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clientKey. */ @@ -1713,11 +1718,11 @@ public com.google.protobuf.ByteString getClientKeyBytes() { * * *
        -     * [Output only] Base64-encoded private key used by clients to authenticate
        +     * Output only. Base64-encoded private key used by clients to authenticate
              * to the cluster endpoint.
              * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The clientKey to set. * @return This builder for chaining. @@ -1735,11 +1740,11 @@ public Builder setClientKey(java.lang.String value) { * * *
        -     * [Output only] Base64-encoded private key used by clients to authenticate
        +     * Output only. Base64-encoded private key used by clients to authenticate
              * to the cluster endpoint.
              * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1753,11 +1758,11 @@ public Builder clearClientKey() { * * *
        -     * [Output only] Base64-encoded private key used by clients to authenticate
        +     * Output only. Base64-encoded private key used by clients to authenticate
              * to the cluster endpoint.
              * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for clientKey to set. * @return This builder for chaining. diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java index 5fc383de4564..362cbe9bd22a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java @@ -161,11 +161,11 @@ public interface MasterAuthOrBuilder * * *
        -   * [Output only] Base64-encoded public certificate that is the root of
        +   * Output only. Base64-encoded public certificate that is the root of
            * trust for the cluster.
            * 
        * - * string cluster_ca_certificate = 100; + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clusterCaCertificate. */ @@ -174,11 +174,11 @@ public interface MasterAuthOrBuilder * * *
        -   * [Output only] Base64-encoded public certificate that is the root of
        +   * Output only. Base64-encoded public certificate that is the root of
            * trust for the cluster.
            * 
        * - * string cluster_ca_certificate = 100; + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clusterCaCertificate. */ @@ -188,11 +188,11 @@ public interface MasterAuthOrBuilder * * *
        -   * [Output only] Base64-encoded public certificate used by clients to
        +   * Output only. Base64-encoded public certificate used by clients to
            * authenticate to the cluster endpoint.
            * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clientCertificate. */ @@ -201,11 +201,11 @@ public interface MasterAuthOrBuilder * * *
        -   * [Output only] Base64-encoded public certificate used by clients to
        +   * Output only. Base64-encoded public certificate used by clients to
            * authenticate to the cluster endpoint.
            * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clientCertificate. */ @@ -215,11 +215,11 @@ public interface MasterAuthOrBuilder * * *
        -   * [Output only] Base64-encoded private key used by clients to authenticate
        +   * Output only. Base64-encoded private key used by clients to authenticate
            * to the cluster endpoint.
            * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clientKey. */ @@ -228,11 +228,11 @@ public interface MasterAuthOrBuilder * * *
        -   * [Output only] Base64-encoded private key used by clients to authenticate
        +   * Output only. Base64-encoded private key used by clients to authenticate
            * to the cluster endpoint.
            * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clientKey. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java index e7ff49ed96a8..55afb5437e91 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java @@ -203,6 +203,16 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * KUBELET = 14; */ KUBELET(14), + /** + * + * + *
        +     * NVIDIA Data Center GPU Manager (DCGM)
        +     * 
        + * + * DCGM = 15; + */ + DCGM(15), UNRECOGNIZED(-1), ; @@ -336,6 +346,16 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * KUBELET = 14; */ public static final int KUBELET_VALUE = 14; + /** + * + * + *
        +     * NVIDIA Data Center GPU Manager (DCGM)
        +     * 
        + * + * DCGM = 15; + */ + public static final int DCGM_VALUE = 15; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -387,6 +407,8 @@ public static Component forNumber(int value) { return CADVISOR; case 14: return KUBELET; + case 15: + return DCGM; default: return null; } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java index 7fbf3fc8864c..f85829c7f6d1 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java @@ -930,7 +930,7 @@ public com.google.protobuf.Parser getParserForT * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The network. */ @@ -956,7 +956,7 @@ public java.lang.String getNetwork() { * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for network. */ @@ -987,7 +987,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The subnetwork. */ @@ -1013,7 +1013,7 @@ public java.lang.String getSubnetwork() { * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for subnetwork. */ @@ -2330,7 +2330,7 @@ public Builder mergeFrom( * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The network. */ @@ -2355,7 +2355,7 @@ public java.lang.String getNetwork() { * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for network. */ @@ -2380,7 +2380,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The network to set. * @return This builder for chaining. @@ -2404,7 +2404,7 @@ public Builder setNetwork(java.lang.String value) { * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2424,7 +2424,7 @@ public Builder clearNetwork() { * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for network to set. * @return This builder for chaining. @@ -2451,7 +2451,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The subnetwork. */ @@ -2476,7 +2476,7 @@ public java.lang.String getSubnetwork() { * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for subnetwork. */ @@ -2501,7 +2501,7 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The subnetwork to set. * @return This builder for chaining. @@ -2525,7 +2525,7 @@ public Builder setSubnetwork(java.lang.String value) { * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2545,7 +2545,7 @@ public Builder clearSubnetwork() { * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for subnetwork to set. * @return This builder for chaining. diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java index df6e276b4011..dd0c9a36c89c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java @@ -34,7 +34,7 @@ public interface NetworkConfigOrBuilder * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The network. */ @@ -49,7 +49,7 @@ public interface NetworkConfigOrBuilder * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for network. */ @@ -65,7 +65,7 @@ public interface NetworkConfigOrBuilder * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The subnetwork. */ @@ -80,7 +80,7 @@ public interface NetworkConfigOrBuilder * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for subnetwork. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java index b5b982379de2..c47878438d40 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java @@ -1451,7 +1451,7 @@ public com.google.container.v1.AdditionalPodNetworkConfig getAdditionalPodNetwor * * *
        -   * Output only. [Output only] The utilization of the IPv4 range for the pod.
        +   * Output only. The utilization of the IPv4 range for the pod.
            * The ratio is Usage/[Total number of IPs in the secondary range],
            * Usage=numNodes*numZones*podIPsPerNode.
            * 
        @@ -3987,7 +3987,7 @@ public Builder removeAdditionalPodNetworkConfigs(int index) { * * *
        -     * Output only. [Output only] The utilization of the IPv4 range for the pod.
        +     * Output only. The utilization of the IPv4 range for the pod.
              * The ratio is Usage/[Total number of IPs in the secondary range],
              * Usage=numNodes*numZones*podIPsPerNode.
              * 
        @@ -4005,7 +4005,7 @@ public double getPodIpv4RangeUtilization() { * * *
        -     * Output only. [Output only] The utilization of the IPv4 range for the pod.
        +     * Output only. The utilization of the IPv4 range for the pod.
              * The ratio is Usage/[Total number of IPs in the secondary range],
              * Usage=numNodes*numZones*podIPsPerNode.
              * 
        @@ -4027,7 +4027,7 @@ public Builder setPodIpv4RangeUtilization(double value) { * * *
        -     * Output only. [Output only] The utilization of the IPv4 range for the pod.
        +     * Output only. The utilization of the IPv4 range for the pod.
              * The ratio is Usage/[Total number of IPs in the secondary range],
              * Usage=numNodes*numZones*podIPsPerNode.
              * 
        diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java index 1cde8d0581ec..e395a77417dc 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java @@ -426,7 +426,7 @@ public interface NodeNetworkConfigOrBuilder * * *
        -   * Output only. [Output only] The utilization of the IPv4 range for the pod.
        +   * Output only. The utilization of the IPv4 range for the pod.
            * The ratio is Usage/[Total number of IPs in the secondary range],
            * Usage=numNodes*numZones*podIPsPerNode.
            * 
        diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java index 5697554cffad..a3a6b5aed105 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java @@ -6457,10 +6457,10 @@ public com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuil * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -6480,10 +6480,10 @@ public java.lang.String getSelfLink() { * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -6564,14 +6564,15 @@ public com.google.protobuf.ByteString getVersionBytes() { * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return A list containing the instanceGroupUrls. */ @@ -6582,14 +6583,15 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The count of instanceGroupUrls. */ @@ -6600,14 +6602,15 @@ public int getInstanceGroupUrlsCount() { * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. @@ -6619,14 +6622,15 @@ public java.lang.String getInstanceGroupUrls(int index) { * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. @@ -6641,10 +6645,12 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * *
        -   * [Output only] The status of the nodes in this pool instance.
        +   * Output only. The status of the nodes in this pool instance.
            * 
        * - * .google.container.v1.NodePool.Status status = 103; + * + * .google.container.v1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -6656,10 +6662,12 @@ public int getStatusValue() { * * *
        -   * [Output only] The status of the nodes in this pool instance.
        +   * Output only. The status of the nodes in this pool instance.
            * 
        * - * .google.container.v1.NodePool.Status status = 103; + * + * .google.container.v1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -6678,15 +6686,17 @@ public com.google.container.v1.NodePool.Status getStatus() { * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * node pool instance, if available.
            * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3686 + * google/container/v1/cluster_service.proto;l=3712 * @return The statusMessage. */ @java.lang.Override @@ -6706,15 +6716,17 @@ public java.lang.String getStatusMessage() { * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * node pool instance, if available.
            * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3686 + * google/container/v1/cluster_service.proto;l=3712 * @return The bytes for statusMessage. */ @java.lang.Override @@ -6964,10 +6976,10 @@ public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(i * * *
        -   * [Output only] The pod CIDR block size per node in this node pool.
        +   * Output only. The pod CIDR block size per node in this node pool.
            * 
        * - * int32 pod_ipv4_cidr_size = 7; + * int32 pod_ipv4_cidr_size = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The podIpv4CidrSize. */ @@ -7082,8 +7094,8 @@ public com.google.container.v1.NodePool.PlacementPolicyOrBuilder getPlacementPol * * *
        -   * Output only. [Output only] Update info contains relevant information during
        -   * a node pool update.
        +   * Output only. Update info contains relevant information during a node
        +   * pool update.
            * 
        * * @@ -7100,8 +7112,8 @@ public boolean hasUpdateInfo() { * * *
        -   * Output only. [Output only] Update info contains relevant information during
        -   * a node pool update.
        +   * Output only. Update info contains relevant information during a node
        +   * pool update.
            * 
        * * @@ -7120,8 +7132,8 @@ public com.google.container.v1.NodePool.UpdateInfo getUpdateInfo() { * * *
        -   * Output only. [Output only] Update info contains relevant information during
        -   * a node pool update.
        +   * Output only. Update info contains relevant information during a node
        +   * pool update.
            * 
        * * @@ -9108,10 +9120,10 @@ public com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuil * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -9130,10 +9142,10 @@ public java.lang.String getSelfLink() { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -9152,10 +9164,10 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The selfLink to set. * @return This builder for chaining. @@ -9173,10 +9185,10 @@ public Builder setSelfLink(java.lang.String value) { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -9190,10 +9202,10 @@ public Builder clearSelfLink() { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for selfLink to set. * @return This builder for chaining. @@ -9338,14 +9350,15 @@ private void ensureInstanceGroupUrlsIsMutable() { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return A list containing the instanceGroupUrls. */ @@ -9357,14 +9370,15 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The count of instanceGroupUrls. */ @@ -9375,14 +9389,15 @@ public int getInstanceGroupUrlsCount() { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. @@ -9394,14 +9409,15 @@ public java.lang.String getInstanceGroupUrls(int index) { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. @@ -9413,14 +9429,15 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index to set the value at. * @param value The instanceGroupUrls to set. @@ -9440,14 +9457,15 @@ public Builder setInstanceGroupUrls(int index, java.lang.String value) { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The instanceGroupUrls to add. * @return This builder for chaining. @@ -9466,14 +9484,15 @@ public Builder addInstanceGroupUrls(java.lang.String value) { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param values The instanceGroupUrls to add. * @return This builder for chaining. @@ -9489,14 +9508,15 @@ public Builder addAllInstanceGroupUrls(java.lang.Iterable valu * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -9511,14 +9531,15 @@ public Builder clearInstanceGroupUrls() { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes of the instanceGroupUrls to add. * @return This builder for chaining. @@ -9540,10 +9561,12 @@ public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The status of the nodes in this pool instance.
        +     * Output only. The status of the nodes in this pool instance.
              * 
        * - * .google.container.v1.NodePool.Status status = 103; + * + * .google.container.v1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -9555,10 +9578,12 @@ public int getStatusValue() { * * *
        -     * [Output only] The status of the nodes in this pool instance.
        +     * Output only. The status of the nodes in this pool instance.
              * 
        * - * .google.container.v1.NodePool.Status status = 103; + * + * .google.container.v1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. @@ -9573,10 +9598,12 @@ public Builder setStatusValue(int value) { * * *
        -     * [Output only] The status of the nodes in this pool instance.
        +     * Output only. The status of the nodes in this pool instance.
              * 
        * - * .google.container.v1.NodePool.Status status = 103; + * + * .google.container.v1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -9590,10 +9617,12 @@ public com.google.container.v1.NodePool.Status getStatus() { * * *
        -     * [Output only] The status of the nodes in this pool instance.
        +     * Output only. The status of the nodes in this pool instance.
              * 
        * - * .google.container.v1.NodePool.Status status = 103; + * + * .google.container.v1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The status to set. * @return This builder for chaining. @@ -9611,10 +9640,12 @@ public Builder setStatus(com.google.container.v1.NodePool.Status value) { * * *
        -     * [Output only] The status of the nodes in this pool instance.
        +     * Output only. The status of the nodes in this pool instance.
              * 
        * - * .google.container.v1.NodePool.Status status = 103; + * + * .google.container.v1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -9630,15 +9661,17 @@ public Builder clearStatus() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * node pool instance, if available.
              * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3686 + * google/container/v1/cluster_service.proto;l=3712 * @return The statusMessage. */ @java.lang.Deprecated @@ -9657,15 +9690,17 @@ public java.lang.String getStatusMessage() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * node pool instance, if available.
              * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3686 + * google/container/v1/cluster_service.proto;l=3712 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -9684,15 +9719,17 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * node pool instance, if available.
              * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3686 + * google/container/v1/cluster_service.proto;l=3712 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -9710,15 +9747,17 @@ public Builder setStatusMessage(java.lang.String value) { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * node pool instance, if available.
              * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3686 + * google/container/v1/cluster_service.proto;l=3712 * @return This builder for chaining. */ @java.lang.Deprecated @@ -9732,15 +9771,17 @@ public Builder clearStatusMessage() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * node pool instance, if available.
              * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3686 + * google/container/v1/cluster_service.proto;l=3712 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ @@ -10686,10 +10727,10 @@ public com.google.container.v1.StatusCondition.Builder addConditionsBuilder(int * * *
        -     * [Output only] The pod CIDR block size per node in this node pool.
        +     * Output only. The pod CIDR block size per node in this node pool.
              * 
        * - * int32 pod_ipv4_cidr_size = 7; + * int32 pod_ipv4_cidr_size = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The podIpv4CidrSize. */ @@ -10701,10 +10742,10 @@ public int getPodIpv4CidrSize() { * * *
        -     * [Output only] The pod CIDR block size per node in this node pool.
        +     * Output only. The pod CIDR block size per node in this node pool.
              * 
        * - * int32 pod_ipv4_cidr_size = 7; + * int32 pod_ipv4_cidr_size = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The podIpv4CidrSize to set. * @return This builder for chaining. @@ -10720,10 +10761,10 @@ public Builder setPodIpv4CidrSize(int value) { * * *
        -     * [Output only] The pod CIDR block size per node in this node pool.
        +     * Output only. The pod CIDR block size per node in this node pool.
              * 
        * - * int32 pod_ipv4_cidr_size = 7; + * int32 pod_ipv4_cidr_size = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -11118,8 +11159,8 @@ public com.google.container.v1.NodePool.PlacementPolicyOrBuilder getPlacementPol * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11135,8 +11176,8 @@ public boolean hasUpdateInfo() { * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11158,8 +11199,8 @@ public com.google.container.v1.NodePool.UpdateInfo getUpdateInfo() { * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11183,8 +11224,8 @@ public Builder setUpdateInfo(com.google.container.v1.NodePool.UpdateInfo value) * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11206,8 +11247,8 @@ public Builder setUpdateInfo( * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11236,8 +11277,8 @@ public Builder mergeUpdateInfo(com.google.container.v1.NodePool.UpdateInfo value * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11258,8 +11299,8 @@ public Builder clearUpdateInfo() { * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11275,8 +11316,8 @@ public com.google.container.v1.NodePool.UpdateInfo.Builder getUpdateInfoBuilder( * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11296,8 +11337,8 @@ public com.google.container.v1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuild * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java index 14d8bb6083fb..d6731da18092 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java @@ -229,10 +229,10 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -241,10 +241,10 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -283,14 +283,15 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return A list containing the instanceGroupUrls. */ @@ -299,14 +300,15 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The count of instanceGroupUrls. */ @@ -315,14 +317,15 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. @@ -332,14 +335,15 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. @@ -350,10 +354,12 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] The status of the nodes in this pool instance.
        +   * Output only. The status of the nodes in this pool instance.
            * 
        * - * .google.container.v1.NodePool.Status status = 103; + * + * .google.container.v1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -362,10 +368,12 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] The status of the nodes in this pool instance.
        +   * Output only. The status of the nodes in this pool instance.
            * 
        * - * .google.container.v1.NodePool.Status status = 103; + * + * .google.container.v1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -375,15 +383,17 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * node pool instance, if available.
            * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3686 + * google/container/v1/cluster_service.proto;l=3712 * @return The statusMessage. */ @java.lang.Deprecated @@ -392,15 +402,17 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * node pool instance, if available.
            * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3686 + * google/container/v1/cluster_service.proto;l=3712 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -573,10 +585,10 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] The pod CIDR block size per node in this node pool.
        +   * Output only. The pod CIDR block size per node in this node pool.
            * 
        * - * int32 pod_ipv4_cidr_size = 7; + * int32 pod_ipv4_cidr_size = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The podIpv4CidrSize. */ @@ -656,8 +668,8 @@ public interface NodePoolOrBuilder * * *
        -   * Output only. [Output only] Update info contains relevant information during
        -   * a node pool update.
        +   * Output only. Update info contains relevant information during a node
        +   * pool update.
            * 
        * * @@ -671,8 +683,8 @@ public interface NodePoolOrBuilder * * *
        -   * Output only. [Output only] Update info contains relevant information during
        -   * a node pool update.
        +   * Output only. Update info contains relevant information during a node
        +   * pool update.
            * 
        * * @@ -686,8 +698,8 @@ public interface NodePoolOrBuilder * * *
        -   * Output only. [Output only] Update info contains relevant information during
        -   * a node pool update.
        +   * Output only. Update info contains relevant information during a node
        +   * pool update.
            * 
        * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java index 7910f928c2bd..fbe6491ea3cb 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java @@ -930,10 +930,10 @@ private Type(int value) { * * *
        -   * The server-assigned ID for the operation.
        +   * Output only. The server-assigned ID for the operation.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -953,10 +953,10 @@ public java.lang.String getName() { * * *
        -   * The server-assigned ID for the operation.
        +   * Output only. The server-assigned ID for the operation.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -981,15 +981,15 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -   * The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * operation is taking place. This field is deprecated, use location instead.
            * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2579 + * google/container/v1/cluster_service.proto;l=2603 * @return The zone. */ @java.lang.Override @@ -1009,15 +1009,15 @@ public java.lang.String getZone() { * * *
        -   * The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * operation is taking place. This field is deprecated, use location instead.
            * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2579 + * google/container/v1/cluster_service.proto;l=2603 * @return The bytes for zone. */ @java.lang.Override @@ -1040,10 +1040,12 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
        -   * The operation type.
        +   * Output only. The operation type.
            * 
        * - * .google.container.v1.Operation.Type operation_type = 3; + * + * .google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for operationType. */ @@ -1055,10 +1057,12 @@ public int getOperationTypeValue() { * * *
        -   * The operation type.
        +   * Output only. The operation type.
            * 
        * - * .google.container.v1.Operation.Type operation_type = 3; + * + * .google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The operationType. */ @@ -1075,10 +1079,12 @@ public com.google.container.v1.Operation.Type getOperationType() { * * *
        -   * The current status of the operation.
        +   * Output only. The current status of the operation.
            * 
        * - * .google.container.v1.Operation.Status status = 4; + * + * .google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -1090,10 +1096,12 @@ public int getStatusValue() { * * *
        -   * The current status of the operation.
        +   * Output only. The current status of the operation.
            * 
        * - * .google.container.v1.Operation.Status status = 4; + * + * .google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -1112,10 +1120,10 @@ public com.google.container.v1.Operation.Status getStatus() { * * *
        -   * Detailed operation progress, if available.
        +   * Output only. Detailed operation progress, if available.
            * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The detail. */ @@ -1135,10 +1143,10 @@ public java.lang.String getDetail() { * * *
        -   * Detailed operation progress, if available.
        +   * Output only. Detailed operation progress, if available.
            * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for detail. */ @@ -1172,7 +1180,7 @@ public com.google.protobuf.ByteString getDetailBytes() { *
        * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 + * google/container/v1/cluster_service.proto;l=2617 * @return The statusMessage. */ @java.lang.Override @@ -1201,7 +1209,7 @@ public java.lang.String getStatusMessage() { *
        * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 + * google/container/v1/cluster_service.proto;l=2617 * @return The bytes for statusMessage. */ @java.lang.Override @@ -1226,11 +1234,11 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
        -   * Server-defined URI for the operation. Example:
        +   * Output only. Server-defined URI for the operation. Example:
            * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
            * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -1250,11 +1258,11 @@ public java.lang.String getSelfLink() { * * *
        -   * Server-defined URI for the operation. Example:
        +   * Output only. Server-defined URI for the operation. Example:
            * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
            * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -1279,10 +1287,10 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
        -   * Server-defined URI for the target of the operation. The format of this is a
        -   * URI to the resource being modified (such as a cluster, node pool, or node).
        -   * For node pool repairs, there may be multiple nodes being repaired, but only
        -   * one will be the target.
        +   * Output only. Server-defined URI for the target of the operation. The format
        +   * of this is a URI to the resource being modified (such as a cluster, node
        +   * pool, or node). For node pool repairs, there may be multiple nodes being
        +   * repaired, but only one will be the target.
            *
            * Examples:
            *
        @@ -1296,7 +1304,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() {
            * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
            * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The targetLink. */ @@ -1316,10 +1324,10 @@ public java.lang.String getTargetLink() { * * *
        -   * Server-defined URI for the target of the operation. The format of this is a
        -   * URI to the resource being modified (such as a cluster, node pool, or node).
        -   * For node pool repairs, there may be multiple nodes being repaired, but only
        -   * one will be the target.
        +   * Output only. Server-defined URI for the target of the operation. The format
        +   * of this is a URI to the resource being modified (such as a cluster, node
        +   * pool, or node). For node pool repairs, there may be multiple nodes being
        +   * repaired, but only one will be the target.
            *
            * Examples:
            *
        @@ -1333,7 +1341,7 @@ public java.lang.String getTargetLink() {
            * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
            * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for targetLink. */ @@ -1358,14 +1366,14 @@ public com.google.protobuf.ByteString getTargetLinkBytes() { * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The location. */ @@ -1385,14 +1393,14 @@ public java.lang.String getLocation() { * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for location. */ @@ -1417,11 +1425,11 @@ public com.google.protobuf.ByteString getLocationBytes() { * * *
        -   * [Output only] The time the operation started, in
        +   * Output only. The time the operation started, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The startTime. */ @@ -1441,11 +1449,11 @@ public java.lang.String getStartTime() { * * *
        -   * [Output only] The time the operation started, in
        +   * Output only. The time the operation started, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for startTime. */ @@ -1470,11 +1478,11 @@ public com.google.protobuf.ByteString getStartTimeBytes() { * * *
        -   * [Output only] The time the operation completed, in
        +   * Output only. The time the operation completed, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The endTime. */ @@ -1494,11 +1502,11 @@ public java.lang.String getEndTime() { * * *
        -   * [Output only] The time the operation completed, in
        +   * Output only. The time the operation completed, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for endTime. */ @@ -1521,7 +1529,7 @@ public com.google.protobuf.ByteString getEndTimeBytes() { * * *
        -   * Output only. [Output only] Progress information for an operation.
        +   * Output only. Progress information for an operation.
            * 
        * * @@ -1538,7 +1546,7 @@ public boolean hasProgress() { * * *
        -   * Output only. [Output only] Progress information for an operation.
        +   * Output only. Progress information for an operation.
            * 
        * * @@ -1557,7 +1565,7 @@ public com.google.container.v1.OperationProgress getProgress() { * * *
        -   * Output only. [Output only] Progress information for an operation.
        +   * Output only. Progress information for an operation.
            * 
        * * @@ -2598,10 +2606,10 @@ public Builder mergeFrom( * * *
        -     * The server-assigned ID for the operation.
        +     * Output only. The server-assigned ID for the operation.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -2620,10 +2628,10 @@ public java.lang.String getName() { * * *
        -     * The server-assigned ID for the operation.
        +     * Output only. The server-assigned ID for the operation.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -2642,10 +2650,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -     * The server-assigned ID for the operation.
        +     * Output only. The server-assigned ID for the operation.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The name to set. * @return This builder for chaining. @@ -2663,10 +2671,10 @@ public Builder setName(java.lang.String value) { * * *
        -     * The server-assigned ID for the operation.
        +     * Output only. The server-assigned ID for the operation.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2680,10 +2688,10 @@ public Builder clearName() { * * *
        -     * The server-assigned ID for the operation.
        +     * Output only. The server-assigned ID for the operation.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -2704,15 +2712,15 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
        -     * The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * operation is taking place. This field is deprecated, use location instead.
              * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2579 + * google/container/v1/cluster_service.proto;l=2603 * @return The zone. */ @java.lang.Deprecated @@ -2731,15 +2739,15 @@ public java.lang.String getZone() { * * *
        -     * The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * operation is taking place. This field is deprecated, use location instead.
              * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2579 + * google/container/v1/cluster_service.proto;l=2603 * @return The bytes for zone. */ @java.lang.Deprecated @@ -2758,15 +2766,15 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
        -     * The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * operation is taking place. This field is deprecated, use location instead.
              * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2579 + * google/container/v1/cluster_service.proto;l=2603 * @param value The zone to set. * @return This builder for chaining. */ @@ -2784,15 +2792,15 @@ public Builder setZone(java.lang.String value) { * * *
        -     * The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * operation is taking place. This field is deprecated, use location instead.
              * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2579 + * google/container/v1/cluster_service.proto;l=2603 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2806,15 +2814,15 @@ public Builder clearZone() { * * *
        -     * The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * operation is taking place. This field is deprecated, use location instead.
              * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2579 + * google/container/v1/cluster_service.proto;l=2603 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -2835,10 +2843,12 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
        -     * The operation type.
        +     * Output only. The operation type.
              * 
        * - * .google.container.v1.Operation.Type operation_type = 3; + * + * .google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for operationType. */ @@ -2850,10 +2860,12 @@ public int getOperationTypeValue() { * * *
        -     * The operation type.
        +     * Output only. The operation type.
              * 
        * - * .google.container.v1.Operation.Type operation_type = 3; + * + * .google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for operationType to set. * @return This builder for chaining. @@ -2868,10 +2880,12 @@ public Builder setOperationTypeValue(int value) { * * *
        -     * The operation type.
        +     * Output only. The operation type.
              * 
        * - * .google.container.v1.Operation.Type operation_type = 3; + * + * .google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The operationType. */ @@ -2885,10 +2899,12 @@ public com.google.container.v1.Operation.Type getOperationType() { * * *
        -     * The operation type.
        +     * Output only. The operation type.
              * 
        * - * .google.container.v1.Operation.Type operation_type = 3; + * + * .google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The operationType to set. * @return This builder for chaining. @@ -2906,10 +2922,12 @@ public Builder setOperationType(com.google.container.v1.Operation.Type value) { * * *
        -     * The operation type.
        +     * Output only. The operation type.
              * 
        * - * .google.container.v1.Operation.Type operation_type = 3; + * + * .google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -2925,10 +2943,12 @@ public Builder clearOperationType() { * * *
        -     * The current status of the operation.
        +     * Output only. The current status of the operation.
              * 
        * - * .google.container.v1.Operation.Status status = 4; + * + * .google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -2940,10 +2960,12 @@ public int getStatusValue() { * * *
        -     * The current status of the operation.
        +     * Output only. The current status of the operation.
              * 
        * - * .google.container.v1.Operation.Status status = 4; + * + * .google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. @@ -2958,10 +2980,12 @@ public Builder setStatusValue(int value) { * * *
        -     * The current status of the operation.
        +     * Output only. The current status of the operation.
              * 
        * - * .google.container.v1.Operation.Status status = 4; + * + * .google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -2975,10 +2999,12 @@ public com.google.container.v1.Operation.Status getStatus() { * * *
        -     * The current status of the operation.
        +     * Output only. The current status of the operation.
              * 
        * - * .google.container.v1.Operation.Status status = 4; + * + * .google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The status to set. * @return This builder for chaining. @@ -2996,10 +3022,12 @@ public Builder setStatus(com.google.container.v1.Operation.Status value) { * * *
        -     * The current status of the operation.
        +     * Output only. The current status of the operation.
              * 
        * - * .google.container.v1.Operation.Status status = 4; + * + * .google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -3015,10 +3043,10 @@ public Builder clearStatus() { * * *
        -     * Detailed operation progress, if available.
        +     * Output only. Detailed operation progress, if available.
              * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The detail. */ @@ -3037,10 +3065,10 @@ public java.lang.String getDetail() { * * *
        -     * Detailed operation progress, if available.
        +     * Output only. Detailed operation progress, if available.
              * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for detail. */ @@ -3059,10 +3087,10 @@ public com.google.protobuf.ByteString getDetailBytes() { * * *
        -     * Detailed operation progress, if available.
        +     * Output only. Detailed operation progress, if available.
              * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The detail to set. * @return This builder for chaining. @@ -3080,10 +3108,10 @@ public Builder setDetail(java.lang.String value) { * * *
        -     * Detailed operation progress, if available.
        +     * Output only. Detailed operation progress, if available.
              * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3097,10 +3125,10 @@ public Builder clearDetail() { * * *
        -     * Detailed operation progress, if available.
        +     * Output only. Detailed operation progress, if available.
              * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for detail to set. * @return This builder for chaining. @@ -3130,7 +3158,7 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) { *
        * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 + * google/container/v1/cluster_service.proto;l=2617 * @return The statusMessage. */ @java.lang.Deprecated @@ -3158,7 +3186,7 @@ public java.lang.String getStatusMessage() { *
        * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 + * google/container/v1/cluster_service.proto;l=2617 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -3186,7 +3214,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
        * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 + * google/container/v1/cluster_service.proto;l=2617 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -3213,7 +3241,7 @@ public Builder setStatusMessage(java.lang.String value) { *
        * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 + * google/container/v1/cluster_service.proto;l=2617 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3236,7 +3264,7 @@ public Builder clearStatusMessage() { *
        * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 + * google/container/v1/cluster_service.proto;l=2617 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ @@ -3257,11 +3285,11 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { * * *
        -     * Server-defined URI for the operation. Example:
        +     * Output only. Server-defined URI for the operation. Example:
              * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
              * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -3280,11 +3308,11 @@ public java.lang.String getSelfLink() { * * *
        -     * Server-defined URI for the operation. Example:
        +     * Output only. Server-defined URI for the operation. Example:
              * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
              * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -3303,11 +3331,11 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
        -     * Server-defined URI for the operation. Example:
        +     * Output only. Server-defined URI for the operation. Example:
              * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
              * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The selfLink to set. * @return This builder for chaining. @@ -3325,11 +3353,11 @@ public Builder setSelfLink(java.lang.String value) { * * *
        -     * Server-defined URI for the operation. Example:
        +     * Output only. Server-defined URI for the operation. Example:
              * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
              * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3343,11 +3371,11 @@ public Builder clearSelfLink() { * * *
        -     * Server-defined URI for the operation. Example:
        +     * Output only. Server-defined URI for the operation. Example:
              * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
              * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for selfLink to set. * @return This builder for chaining. @@ -3368,10 +3396,10 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * * *
        -     * Server-defined URI for the target of the operation. The format of this is a
        -     * URI to the resource being modified (such as a cluster, node pool, or node).
        -     * For node pool repairs, there may be multiple nodes being repaired, but only
        -     * one will be the target.
        +     * Output only. Server-defined URI for the target of the operation. The format
        +     * of this is a URI to the resource being modified (such as a cluster, node
        +     * pool, or node). For node pool repairs, there may be multiple nodes being
        +     * repaired, but only one will be the target.
              *
              * Examples:
              *
        @@ -3385,7 +3413,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) {
              * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
              * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The targetLink. */ @@ -3404,10 +3432,10 @@ public java.lang.String getTargetLink() { * * *
        -     * Server-defined URI for the target of the operation. The format of this is a
        -     * URI to the resource being modified (such as a cluster, node pool, or node).
        -     * For node pool repairs, there may be multiple nodes being repaired, but only
        -     * one will be the target.
        +     * Output only. Server-defined URI for the target of the operation. The format
        +     * of this is a URI to the resource being modified (such as a cluster, node
        +     * pool, or node). For node pool repairs, there may be multiple nodes being
        +     * repaired, but only one will be the target.
              *
              * Examples:
              *
        @@ -3421,7 +3449,7 @@ public java.lang.String getTargetLink() {
              * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
              * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for targetLink. */ @@ -3440,10 +3468,10 @@ public com.google.protobuf.ByteString getTargetLinkBytes() { * * *
        -     * Server-defined URI for the target of the operation. The format of this is a
        -     * URI to the resource being modified (such as a cluster, node pool, or node).
        -     * For node pool repairs, there may be multiple nodes being repaired, but only
        -     * one will be the target.
        +     * Output only. Server-defined URI for the target of the operation. The format
        +     * of this is a URI to the resource being modified (such as a cluster, node
        +     * pool, or node). For node pool repairs, there may be multiple nodes being
        +     * repaired, but only one will be the target.
              *
              * Examples:
              *
        @@ -3457,7 +3485,7 @@ public com.google.protobuf.ByteString getTargetLinkBytes() {
              * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
              * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The targetLink to set. * @return This builder for chaining. @@ -3475,10 +3503,10 @@ public Builder setTargetLink(java.lang.String value) { * * *
        -     * Server-defined URI for the target of the operation. The format of this is a
        -     * URI to the resource being modified (such as a cluster, node pool, or node).
        -     * For node pool repairs, there may be multiple nodes being repaired, but only
        -     * one will be the target.
        +     * Output only. Server-defined URI for the target of the operation. The format
        +     * of this is a URI to the resource being modified (such as a cluster, node
        +     * pool, or node). For node pool repairs, there may be multiple nodes being
        +     * repaired, but only one will be the target.
              *
              * Examples:
              *
        @@ -3492,7 +3520,7 @@ public Builder setTargetLink(java.lang.String value) {
              * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
              * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3506,10 +3534,10 @@ public Builder clearTargetLink() { * * *
        -     * Server-defined URI for the target of the operation. The format of this is a
        -     * URI to the resource being modified (such as a cluster, node pool, or node).
        -     * For node pool repairs, there may be multiple nodes being repaired, but only
        -     * one will be the target.
        +     * Output only. Server-defined URI for the target of the operation. The format
        +     * of this is a URI to the resource being modified (such as a cluster, node
        +     * pool, or node). For node pool repairs, there may be multiple nodes being
        +     * repaired, but only one will be the target.
              *
              * Examples:
              *
        @@ -3523,7 +3551,7 @@ public Builder clearTargetLink() {
              * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
              * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for targetLink to set. * @return This builder for chaining. @@ -3544,14 +3572,14 @@ public Builder setTargetLinkBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The location. */ @@ -3570,14 +3598,14 @@ public java.lang.String getLocation() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for location. */ @@ -3596,14 +3624,14 @@ public com.google.protobuf.ByteString getLocationBytes() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The location to set. * @return This builder for chaining. @@ -3621,14 +3649,14 @@ public Builder setLocation(java.lang.String value) { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3642,14 +3670,14 @@ public Builder clearLocation() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for location to set. * @return This builder for chaining. @@ -3670,11 +3698,11 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The time the operation started, in
        +     * Output only. The time the operation started, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The startTime. */ @@ -3693,11 +3721,11 @@ public java.lang.String getStartTime() { * * *
        -     * [Output only] The time the operation started, in
        +     * Output only. The time the operation started, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for startTime. */ @@ -3716,11 +3744,11 @@ public com.google.protobuf.ByteString getStartTimeBytes() { * * *
        -     * [Output only] The time the operation started, in
        +     * Output only. The time the operation started, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The startTime to set. * @return This builder for chaining. @@ -3738,11 +3766,11 @@ public Builder setStartTime(java.lang.String value) { * * *
        -     * [Output only] The time the operation started, in
        +     * Output only. The time the operation started, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3756,11 +3784,11 @@ public Builder clearStartTime() { * * *
        -     * [Output only] The time the operation started, in
        +     * Output only. The time the operation started, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for startTime to set. * @return This builder for chaining. @@ -3781,11 +3809,11 @@ public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The time the operation completed, in
        +     * Output only. The time the operation completed, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The endTime. */ @@ -3804,11 +3832,11 @@ public java.lang.String getEndTime() { * * *
        -     * [Output only] The time the operation completed, in
        +     * Output only. The time the operation completed, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for endTime. */ @@ -3827,11 +3855,11 @@ public com.google.protobuf.ByteString getEndTimeBytes() { * * *
        -     * [Output only] The time the operation completed, in
        +     * Output only. The time the operation completed, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The endTime to set. * @return This builder for chaining. @@ -3849,11 +3877,11 @@ public Builder setEndTime(java.lang.String value) { * * *
        -     * [Output only] The time the operation completed, in
        +     * Output only. The time the operation completed, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3867,11 +3895,11 @@ public Builder clearEndTime() { * * *
        -     * [Output only] The time the operation completed, in
        +     * Output only. The time the operation completed, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for endTime to set. * @return This builder for chaining. @@ -3897,7 +3925,7 @@ public Builder setEndTimeBytes(com.google.protobuf.ByteString value) { * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -3913,7 +3941,7 @@ public boolean hasProgress() { * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -3935,7 +3963,7 @@ public com.google.container.v1.OperationProgress getProgress() { * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -3959,7 +3987,7 @@ public Builder setProgress(com.google.container.v1.OperationProgress value) { * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -3980,7 +4008,7 @@ public Builder setProgress(com.google.container.v1.OperationProgress.Builder bui * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -4009,7 +4037,7 @@ public Builder mergeProgress(com.google.container.v1.OperationProgress value) { * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -4030,7 +4058,7 @@ public Builder clearProgress() { * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -4046,7 +4074,7 @@ public com.google.container.v1.OperationProgress.Builder getProgressBuilder() { * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -4066,7 +4094,7 @@ public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java index 7b7b6d6c458a..0fd9e9934a53 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java @@ -28,10 +28,10 @@ public interface OperationOrBuilder * * *
        -   * The server-assigned ID for the operation.
        +   * Output only. The server-assigned ID for the operation.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -40,10 +40,10 @@ public interface OperationOrBuilder * * *
        -   * The server-assigned ID for the operation.
        +   * Output only. The server-assigned ID for the operation.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -53,15 +53,15 @@ public interface OperationOrBuilder * * *
        -   * The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * operation is taking place. This field is deprecated, use location instead.
            * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2579 + * google/container/v1/cluster_service.proto;l=2603 * @return The zone. */ @java.lang.Deprecated @@ -70,15 +70,15 @@ public interface OperationOrBuilder * * *
        -   * The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * operation is taking place. This field is deprecated, use location instead.
            * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2579 + * google/container/v1/cluster_service.proto;l=2603 * @return The bytes for zone. */ @java.lang.Deprecated @@ -88,10 +88,12 @@ public interface OperationOrBuilder * * *
        -   * The operation type.
        +   * Output only. The operation type.
            * 
        * - * .google.container.v1.Operation.Type operation_type = 3; + * + * .google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for operationType. */ @@ -100,10 +102,12 @@ public interface OperationOrBuilder * * *
        -   * The operation type.
        +   * Output only. The operation type.
            * 
        * - * .google.container.v1.Operation.Type operation_type = 3; + * + * .google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The operationType. */ @@ -113,10 +117,12 @@ public interface OperationOrBuilder * * *
        -   * The current status of the operation.
        +   * Output only. The current status of the operation.
            * 
        * - * .google.container.v1.Operation.Status status = 4; + * + * .google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -125,10 +131,12 @@ public interface OperationOrBuilder * * *
        -   * The current status of the operation.
        +   * Output only. The current status of the operation.
            * 
        * - * .google.container.v1.Operation.Status status = 4; + * + * .google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -138,10 +146,10 @@ public interface OperationOrBuilder * * *
        -   * Detailed operation progress, if available.
        +   * Output only. Detailed operation progress, if available.
            * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The detail. */ @@ -150,10 +158,10 @@ public interface OperationOrBuilder * * *
        -   * Detailed operation progress, if available.
        +   * Output only. Detailed operation progress, if available.
            * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for detail. */ @@ -172,7 +180,7 @@ public interface OperationOrBuilder *
        * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 + * google/container/v1/cluster_service.proto;l=2617 * @return The statusMessage. */ @java.lang.Deprecated @@ -190,7 +198,7 @@ public interface OperationOrBuilder *
        * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 + * google/container/v1/cluster_service.proto;l=2617 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -200,11 +208,11 @@ public interface OperationOrBuilder * * *
        -   * Server-defined URI for the operation. Example:
        +   * Output only. Server-defined URI for the operation. Example:
            * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
            * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -213,11 +221,11 @@ public interface OperationOrBuilder * * *
        -   * Server-defined URI for the operation. Example:
        +   * Output only. Server-defined URI for the operation. Example:
            * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
            * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -227,10 +235,10 @@ public interface OperationOrBuilder * * *
        -   * Server-defined URI for the target of the operation. The format of this is a
        -   * URI to the resource being modified (such as a cluster, node pool, or node).
        -   * For node pool repairs, there may be multiple nodes being repaired, but only
        -   * one will be the target.
        +   * Output only. Server-defined URI for the target of the operation. The format
        +   * of this is a URI to the resource being modified (such as a cluster, node
        +   * pool, or node). For node pool repairs, there may be multiple nodes being
        +   * repaired, but only one will be the target.
            *
            * Examples:
            *
        @@ -244,7 +252,7 @@ public interface OperationOrBuilder
            * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
            * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The targetLink. */ @@ -253,10 +261,10 @@ public interface OperationOrBuilder * * *
        -   * Server-defined URI for the target of the operation. The format of this is a
        -   * URI to the resource being modified (such as a cluster, node pool, or node).
        -   * For node pool repairs, there may be multiple nodes being repaired, but only
        -   * one will be the target.
        +   * Output only. Server-defined URI for the target of the operation. The format
        +   * of this is a URI to the resource being modified (such as a cluster, node
        +   * pool, or node). For node pool repairs, there may be multiple nodes being
        +   * repaired, but only one will be the target.
            *
            * Examples:
            *
        @@ -270,7 +278,7 @@ public interface OperationOrBuilder
            * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
            * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for targetLink. */ @@ -280,14 +288,14 @@ public interface OperationOrBuilder * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The location. */ @@ -296,14 +304,14 @@ public interface OperationOrBuilder * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for location. */ @@ -313,11 +321,11 @@ public interface OperationOrBuilder * * *
        -   * [Output only] The time the operation started, in
        +   * Output only. The time the operation started, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The startTime. */ @@ -326,11 +334,11 @@ public interface OperationOrBuilder * * *
        -   * [Output only] The time the operation started, in
        +   * Output only. The time the operation started, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for startTime. */ @@ -340,11 +348,11 @@ public interface OperationOrBuilder * * *
        -   * [Output only] The time the operation completed, in
        +   * Output only. The time the operation completed, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The endTime. */ @@ -353,11 +361,11 @@ public interface OperationOrBuilder * * *
        -   * [Output only] The time the operation completed, in
        +   * Output only. The time the operation completed, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for endTime. */ @@ -367,7 +375,7 @@ public interface OperationOrBuilder * * *
        -   * Output only. [Output only] Progress information for an operation.
        +   * Output only. Progress information for an operation.
            * 
        * * @@ -381,7 +389,7 @@ public interface OperationOrBuilder * * *
        -   * Output only. [Output only] Progress information for an operation.
        +   * Output only. Progress information for an operation.
            * 
        * * @@ -395,7 +403,7 @@ public interface OperationOrBuilder * * *
        -   * Output only. [Output only] Progress information for an operation.
        +   * Output only. Progress information for an operation.
            * 
        * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java index af39ffadbb24..2ba53162ff45 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java @@ -174,7 +174,7 @@ public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The privateEndpoint. */ @@ -197,7 +197,7 @@ public java.lang.String getPrivateEndpoint() { * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for privateEndpoint. */ @@ -225,7 +225,7 @@ public com.google.protobuf.ByteString getPrivateEndpointBytes() { * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The publicEndpoint. */ @@ -248,7 +248,7 @@ public java.lang.String getPublicEndpoint() { * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for publicEndpoint. */ @@ -276,7 +276,7 @@ public com.google.protobuf.ByteString getPublicEndpointBytes() { * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peeringName. */ @@ -299,7 +299,7 @@ public java.lang.String getPeeringName() { * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peeringName. */ @@ -1199,7 +1199,7 @@ public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The privateEndpoint. */ @@ -1221,7 +1221,7 @@ public java.lang.String getPrivateEndpoint() { * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for privateEndpoint. */ @@ -1243,7 +1243,7 @@ public com.google.protobuf.ByteString getPrivateEndpointBytes() { * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The privateEndpoint to set. * @return This builder for chaining. @@ -1264,7 +1264,7 @@ public Builder setPrivateEndpoint(java.lang.String value) { * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1281,7 +1281,7 @@ public Builder clearPrivateEndpoint() { * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for privateEndpoint to set. * @return This builder for chaining. @@ -1305,7 +1305,7 @@ public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The publicEndpoint. */ @@ -1327,7 +1327,7 @@ public java.lang.String getPublicEndpoint() { * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for publicEndpoint. */ @@ -1349,7 +1349,7 @@ public com.google.protobuf.ByteString getPublicEndpointBytes() { * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The publicEndpoint to set. * @return This builder for chaining. @@ -1370,7 +1370,7 @@ public Builder setPublicEndpoint(java.lang.String value) { * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1387,7 +1387,7 @@ public Builder clearPublicEndpoint() { * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for publicEndpoint to set. * @return This builder for chaining. @@ -1411,7 +1411,7 @@ public Builder setPublicEndpointBytes(com.google.protobuf.ByteString value) { * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peeringName. */ @@ -1433,7 +1433,7 @@ public java.lang.String getPeeringName() { * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peeringName. */ @@ -1455,7 +1455,7 @@ public com.google.protobuf.ByteString getPeeringNameBytes() { * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The peeringName to set. * @return This builder for chaining. @@ -1476,7 +1476,7 @@ public Builder setPeeringName(java.lang.String value) { * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1493,7 +1493,7 @@ public Builder clearPeeringName() { * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for peeringName to set. * @return This builder for chaining. diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java index 35842abb5caf..0acfefd01807 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java @@ -90,7 +90,7 @@ public interface PrivateClusterConfigOrBuilder * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The privateEndpoint. */ @@ -102,7 +102,7 @@ public interface PrivateClusterConfigOrBuilder * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for privateEndpoint. */ @@ -115,7 +115,7 @@ public interface PrivateClusterConfigOrBuilder * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The publicEndpoint. */ @@ -127,7 +127,7 @@ public interface PrivateClusterConfigOrBuilder * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for publicEndpoint. */ @@ -140,7 +140,7 @@ public interface PrivateClusterConfigOrBuilder * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peeringName. */ @@ -152,7 +152,7 @@ public interface PrivateClusterConfigOrBuilder * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peeringName. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfo.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfo.java index 5bbcd15713ae..93764206a299 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfo.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfo.java @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Output only. [Output only] Name of a range.
        +   * Output only. Name of a range.
            * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -94,7 +94,7 @@ public java.lang.String getRangeName() { * * *
        -   * Output only. [Output only] Name of a range.
        +   * Output only. Name of a range.
            * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -120,7 +120,7 @@ public com.google.protobuf.ByteString getRangeNameBytes() { * * *
        -   * Output only. [Output only] The utilization of the range.
        +   * Output only. The utilization of the range.
            * 
        * * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -501,7 +501,7 @@ public Builder mergeFrom( * * *
        -     * Output only. [Output only] Name of a range.
        +     * Output only. Name of a range.
              * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -523,7 +523,7 @@ public java.lang.String getRangeName() { * * *
        -     * Output only. [Output only] Name of a range.
        +     * Output only. Name of a range.
              * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -545,7 +545,7 @@ public com.google.protobuf.ByteString getRangeNameBytes() { * * *
        -     * Output only. [Output only] Name of a range.
        +     * Output only. Name of a range.
              * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -566,7 +566,7 @@ public Builder setRangeName(java.lang.String value) { * * *
        -     * Output only. [Output only] Name of a range.
        +     * Output only. Name of a range.
              * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -583,7 +583,7 @@ public Builder clearRangeName() { * * *
        -     * Output only. [Output only] Name of a range.
        +     * Output only. Name of a range.
              * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -607,7 +607,7 @@ public Builder setRangeNameBytes(com.google.protobuf.ByteString value) { * * *
        -     * Output only. [Output only] The utilization of the range.
        +     * Output only. The utilization of the range.
              * 
        * * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -622,7 +622,7 @@ public double getUtilization() { * * *
        -     * Output only. [Output only] The utilization of the range.
        +     * Output only. The utilization of the range.
              * 
        * * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -641,7 +641,7 @@ public Builder setUtilization(double value) { * * *
        -     * Output only. [Output only] The utilization of the range.
        +     * Output only. The utilization of the range.
              * 
        * * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfoOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfoOrBuilder.java index 52b55a713959..c554697bec5d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfoOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfoOrBuilder.java @@ -28,7 +28,7 @@ public interface RangeInfoOrBuilder * * *
        -   * Output only. [Output only] Name of a range.
        +   * Output only. Name of a range.
            * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -40,7 +40,7 @@ public interface RangeInfoOrBuilder * * *
        -   * Output only. [Output only] Name of a range.
        +   * Output only. Name of a range.
            * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -53,7 +53,7 @@ public interface RangeInfoOrBuilder * * *
        -   * Output only. [Output only] The utilization of the range.
        +   * Output only. The utilization of the range.
            * 
        * * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayClusterLoggingConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayClusterLoggingConfig.java new file mode 100644 index 000000000000..1f242d9f45cf --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayClusterLoggingConfig.java @@ -0,0 +1,535 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.container.v1; + +/** + * + * + *
        + * RayClusterLoggingConfig specifies configuration of Ray logging.
        + * 
        + * + * Protobuf type {@code google.container.v1.RayClusterLoggingConfig} + */ +public final class RayClusterLoggingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.RayClusterLoggingConfig) + RayClusterLoggingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RayClusterLoggingConfig.newBuilder() to construct. + private RayClusterLoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RayClusterLoggingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RayClusterLoggingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayClusterLoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayClusterLoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RayClusterLoggingConfig.class, + com.google.container.v1.RayClusterLoggingConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * + * + *
        +   * Enable log collection for Ray clusters.
        +   * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.RayClusterLoggingConfig)) { + return super.equals(obj); + } + com.google.container.v1.RayClusterLoggingConfig other = + (com.google.container.v1.RayClusterLoggingConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.RayClusterLoggingConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RayClusterLoggingConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.RayClusterLoggingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RayClusterLoggingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.RayClusterLoggingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RayClusterLoggingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.RayClusterLoggingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.RayClusterLoggingConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.RayClusterLoggingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.RayClusterLoggingConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.RayClusterLoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.RayClusterLoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1.RayClusterLoggingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * RayClusterLoggingConfig specifies configuration of Ray logging.
        +   * 
        + * + * Protobuf type {@code google.container.v1.RayClusterLoggingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.RayClusterLoggingConfig) + com.google.container.v1.RayClusterLoggingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayClusterLoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayClusterLoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RayClusterLoggingConfig.class, + com.google.container.v1.RayClusterLoggingConfig.Builder.class); + } + + // Construct using com.google.container.v1.RayClusterLoggingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayClusterLoggingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.RayClusterLoggingConfig getDefaultInstanceForType() { + return com.google.container.v1.RayClusterLoggingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.RayClusterLoggingConfig build() { + com.google.container.v1.RayClusterLoggingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.RayClusterLoggingConfig buildPartial() { + com.google.container.v1.RayClusterLoggingConfig result = + new com.google.container.v1.RayClusterLoggingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.RayClusterLoggingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.RayClusterLoggingConfig) { + return mergeFrom((com.google.container.v1.RayClusterLoggingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.RayClusterLoggingConfig other) { + if (other == com.google.container.v1.RayClusterLoggingConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enabled_; + /** + * + * + *
        +     * Enable log collection for Ray clusters.
        +     * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
        +     * Enable log collection for Ray clusters.
        +     * 
        + * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Enable log collection for Ray clusters.
        +     * 
        + * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.RayClusterLoggingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.RayClusterLoggingConfig) + private static final com.google.container.v1.RayClusterLoggingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.RayClusterLoggingConfig(); + } + + public static com.google.container.v1.RayClusterLoggingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RayClusterLoggingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.RayClusterLoggingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayClusterLoggingConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayClusterLoggingConfigOrBuilder.java new file mode 100644 index 000000000000..b16906312a24 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayClusterLoggingConfigOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.container.v1; + +public interface RayClusterLoggingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.RayClusterLoggingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Enable log collection for Ray clusters.
        +   * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayClusterMonitoringConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayClusterMonitoringConfig.java new file mode 100644 index 000000000000..e43d915f2639 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayClusterMonitoringConfig.java @@ -0,0 +1,537 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.container.v1; + +/** + * + * + *
        + * RayClusterMonitoringConfig specifies monitoring configuration for Ray
        + * clusters.
        + * 
        + * + * Protobuf type {@code google.container.v1.RayClusterMonitoringConfig} + */ +public final class RayClusterMonitoringConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.RayClusterMonitoringConfig) + RayClusterMonitoringConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RayClusterMonitoringConfig.newBuilder() to construct. + private RayClusterMonitoringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RayClusterMonitoringConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RayClusterMonitoringConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayClusterMonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayClusterMonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RayClusterMonitoringConfig.class, + com.google.container.v1.RayClusterMonitoringConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * + * + *
        +   * Enable metrics collection for Ray clusters.
        +   * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.RayClusterMonitoringConfig)) { + return super.equals(obj); + } + com.google.container.v1.RayClusterMonitoringConfig other = + (com.google.container.v1.RayClusterMonitoringConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.RayClusterMonitoringConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RayClusterMonitoringConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.RayClusterMonitoringConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RayClusterMonitoringConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.RayClusterMonitoringConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RayClusterMonitoringConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.RayClusterMonitoringConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.RayClusterMonitoringConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.RayClusterMonitoringConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.RayClusterMonitoringConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.RayClusterMonitoringConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.RayClusterMonitoringConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1.RayClusterMonitoringConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * RayClusterMonitoringConfig specifies monitoring configuration for Ray
        +   * clusters.
        +   * 
        + * + * Protobuf type {@code google.container.v1.RayClusterMonitoringConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.RayClusterMonitoringConfig) + com.google.container.v1.RayClusterMonitoringConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayClusterMonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayClusterMonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RayClusterMonitoringConfig.class, + com.google.container.v1.RayClusterMonitoringConfig.Builder.class); + } + + // Construct using com.google.container.v1.RayClusterMonitoringConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayClusterMonitoringConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.RayClusterMonitoringConfig getDefaultInstanceForType() { + return com.google.container.v1.RayClusterMonitoringConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.RayClusterMonitoringConfig build() { + com.google.container.v1.RayClusterMonitoringConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.RayClusterMonitoringConfig buildPartial() { + com.google.container.v1.RayClusterMonitoringConfig result = + new com.google.container.v1.RayClusterMonitoringConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.RayClusterMonitoringConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.RayClusterMonitoringConfig) { + return mergeFrom((com.google.container.v1.RayClusterMonitoringConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.RayClusterMonitoringConfig other) { + if (other == com.google.container.v1.RayClusterMonitoringConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enabled_; + /** + * + * + *
        +     * Enable metrics collection for Ray clusters.
        +     * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
        +     * Enable metrics collection for Ray clusters.
        +     * 
        + * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Enable metrics collection for Ray clusters.
        +     * 
        + * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.RayClusterMonitoringConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.RayClusterMonitoringConfig) + private static final com.google.container.v1.RayClusterMonitoringConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.RayClusterMonitoringConfig(); + } + + public static com.google.container.v1.RayClusterMonitoringConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RayClusterMonitoringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.RayClusterMonitoringConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayClusterMonitoringConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayClusterMonitoringConfigOrBuilder.java new file mode 100644 index 000000000000..07146454a214 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayClusterMonitoringConfigOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.container.v1; + +public interface RayClusterMonitoringConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.RayClusterMonitoringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Enable metrics collection for Ray clusters.
        +   * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayOperatorConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayOperatorConfig.java new file mode 100644 index 000000000000..eb6674116eaa --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayOperatorConfig.java @@ -0,0 +1,1155 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.container.v1; + +/** + * + * + *
        + * Configuration options for the Ray Operator add-on.
        + * 
        + * + * Protobuf type {@code google.container.v1.RayOperatorConfig} + */ +public final class RayOperatorConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.RayOperatorConfig) + RayOperatorConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RayOperatorConfig.newBuilder() to construct. + private RayOperatorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RayOperatorConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RayOperatorConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayOperatorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayOperatorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RayOperatorConfig.class, + com.google.container.v1.RayOperatorConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * + * + *
        +   * Whether the Ray Operator addon is enabled for this cluster.
        +   * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int RAY_CLUSTER_LOGGING_CONFIG_FIELD_NUMBER = 2; + private com.google.container.v1.RayClusterLoggingConfig rayClusterLoggingConfig_; + /** + * + * + *
        +   * Optional. Logging configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayClusterLoggingConfig field is set. + */ + @java.lang.Override + public boolean hasRayClusterLoggingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * Optional. Logging configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayClusterLoggingConfig. + */ + @java.lang.Override + public com.google.container.v1.RayClusterLoggingConfig getRayClusterLoggingConfig() { + return rayClusterLoggingConfig_ == null + ? com.google.container.v1.RayClusterLoggingConfig.getDefaultInstance() + : rayClusterLoggingConfig_; + } + /** + * + * + *
        +   * Optional. Logging configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.container.v1.RayClusterLoggingConfigOrBuilder + getRayClusterLoggingConfigOrBuilder() { + return rayClusterLoggingConfig_ == null + ? com.google.container.v1.RayClusterLoggingConfig.getDefaultInstance() + : rayClusterLoggingConfig_; + } + + public static final int RAY_CLUSTER_MONITORING_CONFIG_FIELD_NUMBER = 3; + private com.google.container.v1.RayClusterMonitoringConfig rayClusterMonitoringConfig_; + /** + * + * + *
        +   * Optional. Monitoring configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayClusterMonitoringConfig field is set. + */ + @java.lang.Override + public boolean hasRayClusterMonitoringConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +   * Optional. Monitoring configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayClusterMonitoringConfig. + */ + @java.lang.Override + public com.google.container.v1.RayClusterMonitoringConfig getRayClusterMonitoringConfig() { + return rayClusterMonitoringConfig_ == null + ? com.google.container.v1.RayClusterMonitoringConfig.getDefaultInstance() + : rayClusterMonitoringConfig_; + } + /** + * + * + *
        +   * Optional. Monitoring configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.container.v1.RayClusterMonitoringConfigOrBuilder + getRayClusterMonitoringConfigOrBuilder() { + return rayClusterMonitoringConfig_ == null + ? com.google.container.v1.RayClusterMonitoringConfig.getDefaultInstance() + : rayClusterMonitoringConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRayClusterLoggingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getRayClusterMonitoringConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRayClusterLoggingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getRayClusterMonitoringConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.RayOperatorConfig)) { + return super.equals(obj); + } + com.google.container.v1.RayOperatorConfig other = + (com.google.container.v1.RayOperatorConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (hasRayClusterLoggingConfig() != other.hasRayClusterLoggingConfig()) return false; + if (hasRayClusterLoggingConfig()) { + if (!getRayClusterLoggingConfig().equals(other.getRayClusterLoggingConfig())) return false; + } + if (hasRayClusterMonitoringConfig() != other.hasRayClusterMonitoringConfig()) return false; + if (hasRayClusterMonitoringConfig()) { + if (!getRayClusterMonitoringConfig().equals(other.getRayClusterMonitoringConfig())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + if (hasRayClusterLoggingConfig()) { + hash = (37 * hash) + RAY_CLUSTER_LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRayClusterLoggingConfig().hashCode(); + } + if (hasRayClusterMonitoringConfig()) { + hash = (37 * hash) + RAY_CLUSTER_MONITORING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRayClusterMonitoringConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.RayOperatorConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RayOperatorConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.RayOperatorConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RayOperatorConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.RayOperatorConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RayOperatorConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.RayOperatorConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.RayOperatorConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.RayOperatorConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.RayOperatorConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.RayOperatorConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.RayOperatorConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1.RayOperatorConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Configuration options for the Ray Operator add-on.
        +   * 
        + * + * Protobuf type {@code google.container.v1.RayOperatorConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.RayOperatorConfig) + com.google.container.v1.RayOperatorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayOperatorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayOperatorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RayOperatorConfig.class, + com.google.container.v1.RayOperatorConfig.Builder.class); + } + + // Construct using com.google.container.v1.RayOperatorConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRayClusterLoggingConfigFieldBuilder(); + getRayClusterMonitoringConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + rayClusterLoggingConfig_ = null; + if (rayClusterLoggingConfigBuilder_ != null) { + rayClusterLoggingConfigBuilder_.dispose(); + rayClusterLoggingConfigBuilder_ = null; + } + rayClusterMonitoringConfig_ = null; + if (rayClusterMonitoringConfigBuilder_ != null) { + rayClusterMonitoringConfigBuilder_.dispose(); + rayClusterMonitoringConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RayOperatorConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.RayOperatorConfig getDefaultInstanceForType() { + return com.google.container.v1.RayOperatorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.RayOperatorConfig build() { + com.google.container.v1.RayOperatorConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.RayOperatorConfig buildPartial() { + com.google.container.v1.RayOperatorConfig result = + new com.google.container.v1.RayOperatorConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.RayOperatorConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rayClusterLoggingConfig_ = + rayClusterLoggingConfigBuilder_ == null + ? rayClusterLoggingConfig_ + : rayClusterLoggingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rayClusterMonitoringConfig_ = + rayClusterMonitoringConfigBuilder_ == null + ? rayClusterMonitoringConfig_ + : rayClusterMonitoringConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.RayOperatorConfig) { + return mergeFrom((com.google.container.v1.RayOperatorConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.RayOperatorConfig other) { + if (other == com.google.container.v1.RayOperatorConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.hasRayClusterLoggingConfig()) { + mergeRayClusterLoggingConfig(other.getRayClusterLoggingConfig()); + } + if (other.hasRayClusterMonitoringConfig()) { + mergeRayClusterMonitoringConfig(other.getRayClusterMonitoringConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getRayClusterLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getRayClusterMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enabled_; + /** + * + * + *
        +     * Whether the Ray Operator addon is enabled for this cluster.
        +     * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
        +     * Whether the Ray Operator addon is enabled for this cluster.
        +     * 
        + * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Whether the Ray Operator addon is enabled for this cluster.
        +     * 
        + * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private com.google.container.v1.RayClusterLoggingConfig rayClusterLoggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RayClusterLoggingConfig, + com.google.container.v1.RayClusterLoggingConfig.Builder, + com.google.container.v1.RayClusterLoggingConfigOrBuilder> + rayClusterLoggingConfigBuilder_; + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayClusterLoggingConfig field is set. + */ + public boolean hasRayClusterLoggingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayClusterLoggingConfig. + */ + public com.google.container.v1.RayClusterLoggingConfig getRayClusterLoggingConfig() { + if (rayClusterLoggingConfigBuilder_ == null) { + return rayClusterLoggingConfig_ == null + ? com.google.container.v1.RayClusterLoggingConfig.getDefaultInstance() + : rayClusterLoggingConfig_; + } else { + return rayClusterLoggingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayClusterLoggingConfig( + com.google.container.v1.RayClusterLoggingConfig value) { + if (rayClusterLoggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rayClusterLoggingConfig_ = value; + } else { + rayClusterLoggingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayClusterLoggingConfig( + com.google.container.v1.RayClusterLoggingConfig.Builder builderForValue) { + if (rayClusterLoggingConfigBuilder_ == null) { + rayClusterLoggingConfig_ = builderForValue.build(); + } else { + rayClusterLoggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRayClusterLoggingConfig( + com.google.container.v1.RayClusterLoggingConfig value) { + if (rayClusterLoggingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rayClusterLoggingConfig_ != null + && rayClusterLoggingConfig_ + != com.google.container.v1.RayClusterLoggingConfig.getDefaultInstance()) { + getRayClusterLoggingConfigBuilder().mergeFrom(value); + } else { + rayClusterLoggingConfig_ = value; + } + } else { + rayClusterLoggingConfigBuilder_.mergeFrom(value); + } + if (rayClusterLoggingConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRayClusterLoggingConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + rayClusterLoggingConfig_ = null; + if (rayClusterLoggingConfigBuilder_ != null) { + rayClusterLoggingConfigBuilder_.dispose(); + rayClusterLoggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1.RayClusterLoggingConfig.Builder + getRayClusterLoggingConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRayClusterLoggingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1.RayClusterLoggingConfigOrBuilder + getRayClusterLoggingConfigOrBuilder() { + if (rayClusterLoggingConfigBuilder_ != null) { + return rayClusterLoggingConfigBuilder_.getMessageOrBuilder(); + } else { + return rayClusterLoggingConfig_ == null + ? com.google.container.v1.RayClusterLoggingConfig.getDefaultInstance() + : rayClusterLoggingConfig_; + } + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RayClusterLoggingConfig, + com.google.container.v1.RayClusterLoggingConfig.Builder, + com.google.container.v1.RayClusterLoggingConfigOrBuilder> + getRayClusterLoggingConfigFieldBuilder() { + if (rayClusterLoggingConfigBuilder_ == null) { + rayClusterLoggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RayClusterLoggingConfig, + com.google.container.v1.RayClusterLoggingConfig.Builder, + com.google.container.v1.RayClusterLoggingConfigOrBuilder>( + getRayClusterLoggingConfig(), getParentForChildren(), isClean()); + rayClusterLoggingConfig_ = null; + } + return rayClusterLoggingConfigBuilder_; + } + + private com.google.container.v1.RayClusterMonitoringConfig rayClusterMonitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RayClusterMonitoringConfig, + com.google.container.v1.RayClusterMonitoringConfig.Builder, + com.google.container.v1.RayClusterMonitoringConfigOrBuilder> + rayClusterMonitoringConfigBuilder_; + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayClusterMonitoringConfig field is set. + */ + public boolean hasRayClusterMonitoringConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayClusterMonitoringConfig. + */ + public com.google.container.v1.RayClusterMonitoringConfig getRayClusterMonitoringConfig() { + if (rayClusterMonitoringConfigBuilder_ == null) { + return rayClusterMonitoringConfig_ == null + ? com.google.container.v1.RayClusterMonitoringConfig.getDefaultInstance() + : rayClusterMonitoringConfig_; + } else { + return rayClusterMonitoringConfigBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayClusterMonitoringConfig( + com.google.container.v1.RayClusterMonitoringConfig value) { + if (rayClusterMonitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rayClusterMonitoringConfig_ = value; + } else { + rayClusterMonitoringConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayClusterMonitoringConfig( + com.google.container.v1.RayClusterMonitoringConfig.Builder builderForValue) { + if (rayClusterMonitoringConfigBuilder_ == null) { + rayClusterMonitoringConfig_ = builderForValue.build(); + } else { + rayClusterMonitoringConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRayClusterMonitoringConfig( + com.google.container.v1.RayClusterMonitoringConfig value) { + if (rayClusterMonitoringConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && rayClusterMonitoringConfig_ != null + && rayClusterMonitoringConfig_ + != com.google.container.v1.RayClusterMonitoringConfig.getDefaultInstance()) { + getRayClusterMonitoringConfigBuilder().mergeFrom(value); + } else { + rayClusterMonitoringConfig_ = value; + } + } else { + rayClusterMonitoringConfigBuilder_.mergeFrom(value); + } + if (rayClusterMonitoringConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRayClusterMonitoringConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + rayClusterMonitoringConfig_ = null; + if (rayClusterMonitoringConfigBuilder_ != null) { + rayClusterMonitoringConfigBuilder_.dispose(); + rayClusterMonitoringConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1.RayClusterMonitoringConfig.Builder + getRayClusterMonitoringConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getRayClusterMonitoringConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1.RayClusterMonitoringConfigOrBuilder + getRayClusterMonitoringConfigOrBuilder() { + if (rayClusterMonitoringConfigBuilder_ != null) { + return rayClusterMonitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return rayClusterMonitoringConfig_ == null + ? com.google.container.v1.RayClusterMonitoringConfig.getDefaultInstance() + : rayClusterMonitoringConfig_; + } + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RayClusterMonitoringConfig, + com.google.container.v1.RayClusterMonitoringConfig.Builder, + com.google.container.v1.RayClusterMonitoringConfigOrBuilder> + getRayClusterMonitoringConfigFieldBuilder() { + if (rayClusterMonitoringConfigBuilder_ == null) { + rayClusterMonitoringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RayClusterMonitoringConfig, + com.google.container.v1.RayClusterMonitoringConfig.Builder, + com.google.container.v1.RayClusterMonitoringConfigOrBuilder>( + getRayClusterMonitoringConfig(), getParentForChildren(), isClean()); + rayClusterMonitoringConfig_ = null; + } + return rayClusterMonitoringConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.RayOperatorConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.RayOperatorConfig) + private static final com.google.container.v1.RayOperatorConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.RayOperatorConfig(); + } + + public static com.google.container.v1.RayOperatorConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RayOperatorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.RayOperatorConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayOperatorConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayOperatorConfigOrBuilder.java new file mode 100644 index 000000000000..70efda185f07 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RayOperatorConfigOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.container.v1; + +public interface RayOperatorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.RayOperatorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Whether the Ray Operator addon is enabled for this cluster.
        +   * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
        +   * Optional. Logging configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayClusterLoggingConfig field is set. + */ + boolean hasRayClusterLoggingConfig(); + /** + * + * + *
        +   * Optional. Logging configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayClusterLoggingConfig. + */ + com.google.container.v1.RayClusterLoggingConfig getRayClusterLoggingConfig(); + /** + * + * + *
        +   * Optional. Logging configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.container.v1.RayClusterLoggingConfigOrBuilder getRayClusterLoggingConfigOrBuilder(); + + /** + * + * + *
        +   * Optional. Monitoring configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayClusterMonitoringConfig field is set. + */ + boolean hasRayClusterMonitoringConfig(); + /** + * + * + *
        +   * Optional. Monitoring configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayClusterMonitoringConfig. + */ + com.google.container.v1.RayClusterMonitoringConfig getRayClusterMonitoringConfig(); + /** + * + * + *
        +   * Optional. Monitoring configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.container.v1.RayClusterMonitoringConfigOrBuilder + getRayClusterMonitoringConfigOrBuilder(); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java index 08b7685cbb03..56bc1da009c2 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java @@ -86,7 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4000 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4000 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3978 + * google/container/v1/cluster_service.proto;l=4006 * @return The zone. */ @java.lang.Override @@ -177,7 +177,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3978 + * google/container/v1/cluster_service.proto;l=4006 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3982 + * google/container/v1/cluster_service.proto;l=4010 * @return The clusterId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3982 + * google/container/v1/cluster_service.proto;l=4010 * @return The bytes for clusterId. */ @java.lang.Override @@ -268,7 +268,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3986 + * google/container/v1/cluster_service.proto;l=4014 * @return The nodePoolId. */ @java.lang.Override @@ -295,7 +295,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3986 + * google/container/v1/cluster_service.proto;l=4014 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -862,7 +862,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4000 * @return The projectId. */ @java.lang.Deprecated @@ -889,7 +889,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4000 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4000 * @param value The projectId to set. * @return This builder for chaining. */ @@ -942,7 +942,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4000 * @return This builder for chaining. */ @java.lang.Deprecated @@ -964,7 +964,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4000 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3978 + * google/container/v1/cluster_service.proto;l=4006 * @return The zone. */ @java.lang.Deprecated @@ -1022,7 +1022,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3978 + * google/container/v1/cluster_service.proto;l=4006 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1050,7 +1050,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3978 + * google/container/v1/cluster_service.proto;l=4006 * @param value The zone to set. * @return This builder for chaining. */ @@ -1077,7 +1077,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3978 + * google/container/v1/cluster_service.proto;l=4006 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1100,7 +1100,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3978 + * google/container/v1/cluster_service.proto;l=4006 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1128,7 +1128,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3982 + * google/container/v1/cluster_service.proto;l=4010 * @return The clusterId. */ @java.lang.Deprecated @@ -1154,7 +1154,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3982 + * google/container/v1/cluster_service.proto;l=4010 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1180,7 +1180,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3982 + * google/container/v1/cluster_service.proto;l=4010 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1205,7 +1205,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3982 + * google/container/v1/cluster_service.proto;l=4010 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1226,7 +1226,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3982 + * google/container/v1/cluster_service.proto;l=4010 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1254,7 +1254,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3986 + * See google/container/v1/cluster_service.proto;l=4014 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1280,7 +1280,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3986 + * See google/container/v1/cluster_service.proto;l=4014 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1306,7 +1306,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3986 + * See google/container/v1/cluster_service.proto;l=4014 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1331,7 +1331,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3986 + * See google/container/v1/cluster_service.proto;l=4014 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1352,7 +1352,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3986 + * See google/container/v1/cluster_service.proto;l=4014 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java index 71e8ee5158e2..1c0444e56b9b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4000 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4000 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3978 + * google/container/v1/cluster_service.proto;l=4006 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3978 + * google/container/v1/cluster_service.proto;l=4006 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3982 + * google/container/v1/cluster_service.proto;l=4010 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3982 + * google/container/v1/cluster_service.proto;l=4010 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3986 + * google/container/v1/cluster_service.proto;l=4014 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3986 + * google/container/v1/cluster_service.proto;l=4014 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java index f24882c440a7..5ba9e4905b22 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3031 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3031 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3012 + * google/container/v1/cluster_service.proto;l=3037 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3012 + * google/container/v1/cluster_service.proto;l=3037 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3041 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3041 * @return The bytes for clusterId. */ @java.lang.Override @@ -832,7 +832,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3031 * @return The projectId. */ @java.lang.Deprecated @@ -859,7 +859,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3031 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -886,7 +886,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3031 * @param value The projectId to set. * @return This builder for chaining. */ @@ -912,7 +912,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3031 * @return This builder for chaining. */ @java.lang.Deprecated @@ -934,7 +934,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3031 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -964,7 +964,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3012 + * google/container/v1/cluster_service.proto;l=3037 * @return The zone. */ @java.lang.Deprecated @@ -992,7 +992,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3012 + * google/container/v1/cluster_service.proto;l=3037 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3012 + * google/container/v1/cluster_service.proto;l=3037 * @param value The zone to set. * @return This builder for chaining. */ @@ -1047,7 +1047,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3012 + * google/container/v1/cluster_service.proto;l=3037 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1070,7 +1070,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3012 + * google/container/v1/cluster_service.proto;l=3037 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1098,7 +1098,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3041 * @return The clusterId. */ @java.lang.Deprecated @@ -1124,7 +1124,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3041 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1150,7 +1150,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3041 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1175,7 +1175,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3041 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1196,7 +1196,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3041 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java index 404b154337e0..a4dc7eee6627 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetAddonsConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3031 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetAddonsConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3006 + * google/container/v1/cluster_service.proto;l=3031 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3012 + * google/container/v1/cluster_service.proto;l=3037 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3012 + * google/container/v1/cluster_service.proto;l=3037 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetAddonsConfigRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3041 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetAddonsConfigRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3041 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java index edce8991a1aa..6d8d9f2bb90b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java @@ -97,7 +97,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4168 + * google/container/v1/cluster_service.proto;l=4196 * @return The projectId. */ @java.lang.Override @@ -125,7 +125,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4168 + * google/container/v1/cluster_service.proto;l=4196 * @return The bytes for projectId. */ @java.lang.Override @@ -159,7 +159,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4174 + * google/container/v1/cluster_service.proto;l=4202 * @return The zone. */ @java.lang.Override @@ -188,7 +188,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4174 + * google/container/v1/cluster_service.proto;l=4202 * @return The bytes for zone. */ @java.lang.Override @@ -220,7 +220,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4178 + * google/container/v1/cluster_service.proto;l=4206 * @return The clusterId. */ @java.lang.Override @@ -247,7 +247,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4178 + * google/container/v1/cluster_service.proto;l=4206 * @return The bytes for clusterId. */ @java.lang.Override @@ -995,7 +995,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4168 + * google/container/v1/cluster_service.proto;l=4196 * @return The projectId. */ @java.lang.Deprecated @@ -1022,7 +1022,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4168 + * google/container/v1/cluster_service.proto;l=4196 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1049,7 +1049,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4168 + * google/container/v1/cluster_service.proto;l=4196 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1075,7 +1075,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4168 + * google/container/v1/cluster_service.proto;l=4196 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1097,7 +1097,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4168 + * google/container/v1/cluster_service.proto;l=4196 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1127,7 +1127,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4174 + * google/container/v1/cluster_service.proto;l=4202 * @return The zone. */ @java.lang.Deprecated @@ -1155,7 +1155,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4174 + * google/container/v1/cluster_service.proto;l=4202 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1183,7 +1183,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4174 + * google/container/v1/cluster_service.proto;l=4202 * @param value The zone to set. * @return This builder for chaining. */ @@ -1210,7 +1210,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4174 + * google/container/v1/cluster_service.proto;l=4202 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1233,7 +1233,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4174 + * google/container/v1/cluster_service.proto;l=4202 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1261,7 +1261,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4178 + * google/container/v1/cluster_service.proto;l=4206 * @return The clusterId. */ @java.lang.Deprecated @@ -1287,7 +1287,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4178 + * google/container/v1/cluster_service.proto;l=4206 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1313,7 +1313,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4178 + * google/container/v1/cluster_service.proto;l=4206 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1338,7 +1338,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4178 + * google/container/v1/cluster_service.proto;l=4206 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1359,7 +1359,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4178 + * google/container/v1/cluster_service.proto;l=4206 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java index 12ecfa8aaef8..c885aad1cae6 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLabelsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4168 + * google/container/v1/cluster_service.proto;l=4196 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLabelsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4168 + * google/container/v1/cluster_service.proto;l=4196 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4174 + * google/container/v1/cluster_service.proto;l=4202 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4174 + * google/container/v1/cluster_service.proto;l=4202 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLabelsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4178 + * google/container/v1/cluster_service.proto;l=4206 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLabelsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4178 + * google/container/v1/cluster_service.proto;l=4206 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java index 89a8b1afc82b..e7e49795586f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4203 + * google/container/v1/cluster_service.proto;l=4231 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4203 + * google/container/v1/cluster_service.proto;l=4231 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4209 + * google/container/v1/cluster_service.proto;l=4237 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4209 + * google/container/v1/cluster_service.proto;l=4237 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4213 + * google/container/v1/cluster_service.proto;l=4241 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4213 + * google/container/v1/cluster_service.proto;l=4241 * @return The bytes for clusterId. */ @java.lang.Override @@ -770,7 +770,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4203 + * google/container/v1/cluster_service.proto;l=4231 * @return The projectId. */ @java.lang.Deprecated @@ -797,7 +797,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4203 + * google/container/v1/cluster_service.proto;l=4231 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -824,7 +824,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4203 + * google/container/v1/cluster_service.proto;l=4231 * @param value The projectId to set. * @return This builder for chaining. */ @@ -850,7 +850,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4203 + * google/container/v1/cluster_service.proto;l=4231 * @return This builder for chaining. */ @java.lang.Deprecated @@ -872,7 +872,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4203 + * google/container/v1/cluster_service.proto;l=4231 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -902,7 +902,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4209 + * google/container/v1/cluster_service.proto;l=4237 * @return The zone. */ @java.lang.Deprecated @@ -930,7 +930,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4209 + * google/container/v1/cluster_service.proto;l=4237 * @return The bytes for zone. */ @java.lang.Deprecated @@ -958,7 +958,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4209 + * google/container/v1/cluster_service.proto;l=4237 * @param value The zone to set. * @return This builder for chaining. */ @@ -985,7 +985,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4209 + * google/container/v1/cluster_service.proto;l=4237 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1008,7 +1008,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4209 + * google/container/v1/cluster_service.proto;l=4237 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1036,7 +1036,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4213 + * google/container/v1/cluster_service.proto;l=4241 * @return The clusterId. */ @java.lang.Deprecated @@ -1062,7 +1062,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4213 + * google/container/v1/cluster_service.proto;l=4241 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1088,7 +1088,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4213 + * google/container/v1/cluster_service.proto;l=4241 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1113,7 +1113,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4213 + * google/container/v1/cluster_service.proto;l=4241 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1134,7 +1134,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4213 + * google/container/v1/cluster_service.proto;l=4241 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java index a285277bbb14..960dc8759a5e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLegacyAbacRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4203 + * google/container/v1/cluster_service.proto;l=4231 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLegacyAbacRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4203 + * google/container/v1/cluster_service.proto;l=4231 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4209 + * google/container/v1/cluster_service.proto;l=4237 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4209 + * google/container/v1/cluster_service.proto;l=4237 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLegacyAbacRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4213 + * google/container/v1/cluster_service.proto;l=4241 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLegacyAbacRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4213 + * google/container/v1/cluster_service.proto;l=4241 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java index a54feb81a337..4aca24063584 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3032 + * google/container/v1/cluster_service.proto;l=3057 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3032 + * google/container/v1/cluster_service.proto;l=3057 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3063 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3063 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3042 + * google/container/v1/cluster_service.proto;l=3067 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3042 + * google/container/v1/cluster_service.proto;l=3067 * @return The bytes for clusterId. */ @java.lang.Override @@ -855,7 +855,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3032 + * google/container/v1/cluster_service.proto;l=3057 * @return The projectId. */ @java.lang.Deprecated @@ -882,7 +882,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3032 + * google/container/v1/cluster_service.proto;l=3057 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -909,7 +909,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3032 + * google/container/v1/cluster_service.proto;l=3057 * @param value The projectId to set. * @return This builder for chaining. */ @@ -935,7 +935,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3032 + * google/container/v1/cluster_service.proto;l=3057 * @return This builder for chaining. */ @java.lang.Deprecated @@ -957,7 +957,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3032 + * google/container/v1/cluster_service.proto;l=3057 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -987,7 +987,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3063 * @return The zone. */ @java.lang.Deprecated @@ -1015,7 +1015,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3063 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1043,7 +1043,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3063 * @param value The zone to set. * @return This builder for chaining. */ @@ -1070,7 +1070,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3063 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1093,7 +1093,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3063 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1121,7 +1121,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3042 + * google/container/v1/cluster_service.proto;l=3067 * @return The clusterId. */ @java.lang.Deprecated @@ -1147,7 +1147,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3042 + * google/container/v1/cluster_service.proto;l=3067 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1173,7 +1173,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3042 + * google/container/v1/cluster_service.proto;l=3067 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1198,7 +1198,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3042 + * google/container/v1/cluster_service.proto;l=3067 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1219,7 +1219,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3042 + * google/container/v1/cluster_service.proto;l=3067 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java index 09105d3c3222..f19655a93320 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLocationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3032 + * google/container/v1/cluster_service.proto;l=3057 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLocationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3032 + * google/container/v1/cluster_service.proto;l=3057 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3063 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3063 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLocationsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3042 + * google/container/v1/cluster_service.proto;l=3067 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLocationsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3042 + * google/container/v1/cluster_service.proto;l=3067 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java index 164d56625a52..6511afe3b2fd 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2961 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2961 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2967 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2967 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2971 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2971 * @return The bytes for clusterId. */ @java.lang.Override @@ -825,7 +825,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2961 * @return The projectId. */ @java.lang.Deprecated @@ -852,7 +852,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2961 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -879,7 +879,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2961 * @param value The projectId to set. * @return This builder for chaining. */ @@ -905,7 +905,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2961 * @return This builder for chaining. */ @java.lang.Deprecated @@ -927,7 +927,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2961 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -957,7 +957,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2967 * @return The zone. */ @java.lang.Deprecated @@ -985,7 +985,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2967 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1013,7 +1013,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2967 * @param value The zone to set. * @return This builder for chaining. */ @@ -1040,7 +1040,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2967 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1063,7 +1063,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2967 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1091,7 +1091,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2971 * @return The clusterId. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2971 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1143,7 +1143,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2971 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1168,7 +1168,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2971 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1189,7 +1189,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2971 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java index 30dad7b479c4..96d9c4ab4ccd 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLoggingServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2961 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLoggingServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2961 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2967 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2967 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLoggingServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2971 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLoggingServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2971 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java index 1ccd3d547fd2..0c9f7d7f8d59 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java @@ -269,7 +269,7 @@ private Action(int value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3140 * @return The projectId. */ @java.lang.Override @@ -297,7 +297,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3140 * @return The bytes for projectId. */ @java.lang.Override @@ -331,7 +331,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3121 + * google/container/v1/cluster_service.proto;l=3146 * @return The zone. */ @java.lang.Override @@ -360,7 +360,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3121 + * google/container/v1/cluster_service.proto;l=3146 * @return The bytes for zone. */ @java.lang.Override @@ -392,7 +392,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3125 + * google/container/v1/cluster_service.proto;l=3150 * @return The clusterId. */ @java.lang.Override @@ -419,7 +419,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3125 + * google/container/v1/cluster_service.proto;l=3150 * @return The bytes for clusterId. */ @java.lang.Override @@ -1070,7 +1070,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3140 * @return The projectId. */ @java.lang.Deprecated @@ -1097,7 +1097,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3140 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1124,7 +1124,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3140 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1150,7 +1150,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3140 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1172,7 +1172,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3140 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1202,7 +1202,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3121 + * google/container/v1/cluster_service.proto;l=3146 * @return The zone. */ @java.lang.Deprecated @@ -1230,7 +1230,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3121 + * google/container/v1/cluster_service.proto;l=3146 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1258,7 +1258,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3121 + * google/container/v1/cluster_service.proto;l=3146 * @param value The zone to set. * @return This builder for chaining. */ @@ -1285,7 +1285,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3121 + * google/container/v1/cluster_service.proto;l=3146 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1308,7 +1308,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3121 + * google/container/v1/cluster_service.proto;l=3146 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1336,7 +1336,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3125 + * google/container/v1/cluster_service.proto;l=3150 * @return The clusterId. */ @java.lang.Deprecated @@ -1362,7 +1362,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3125 + * google/container/v1/cluster_service.proto;l=3150 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1388,7 +1388,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3125 + * google/container/v1/cluster_service.proto;l=3150 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1413,7 +1413,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3125 + * google/container/v1/cluster_service.proto;l=3150 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1434,7 +1434,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3125 + * google/container/v1/cluster_service.proto;l=3150 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java index 2bd5d70eb750..1b1d3f0d7896 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetMasterAuthRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3140 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetMasterAuthRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3140 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3121 + * google/container/v1/cluster_service.proto;l=3146 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3121 + * google/container/v1/cluster_service.proto;l=3146 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetMasterAuthRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3125 + * google/container/v1/cluster_service.proto;l=3150 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetMasterAuthRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3125 + * google/container/v1/cluster_service.proto;l=3150 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java index 4505c3acded7..337132ecb405 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=2996 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=2996 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 + * google/container/v1/cluster_service.proto;l=3002 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 + * google/container/v1/cluster_service.proto;l=3002 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 + * google/container/v1/cluster_service.proto;l=3006 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 + * google/container/v1/cluster_service.proto;l=3006 * @return The bytes for clusterId. */ @java.lang.Override @@ -825,7 +825,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=2996 * @return The projectId. */ @java.lang.Deprecated @@ -852,7 +852,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=2996 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -879,7 +879,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=2996 * @param value The projectId to set. * @return This builder for chaining. */ @@ -905,7 +905,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=2996 * @return This builder for chaining. */ @java.lang.Deprecated @@ -927,7 +927,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=2996 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -957,7 +957,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 + * google/container/v1/cluster_service.proto;l=3002 * @return The zone. */ @java.lang.Deprecated @@ -985,7 +985,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 + * google/container/v1/cluster_service.proto;l=3002 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1013,7 +1013,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 + * google/container/v1/cluster_service.proto;l=3002 * @param value The zone to set. * @return This builder for chaining. */ @@ -1040,7 +1040,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 + * google/container/v1/cluster_service.proto;l=3002 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1063,7 +1063,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 + * google/container/v1/cluster_service.proto;l=3002 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1091,7 +1091,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 + * google/container/v1/cluster_service.proto;l=3006 * @return The clusterId. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 + * google/container/v1/cluster_service.proto;l=3006 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1143,7 +1143,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 + * google/container/v1/cluster_service.proto;l=3006 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1168,7 +1168,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 + * google/container/v1/cluster_service.proto;l=3006 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1189,7 +1189,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 + * google/container/v1/cluster_service.proto;l=3006 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java index cf7f16c99b27..da45833dea6e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=2996 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 + * google/container/v1/cluster_service.proto;l=2996 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 + * google/container/v1/cluster_service.proto;l=3002 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 + * google/container/v1/cluster_service.proto;l=3002 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 + * google/container/v1/cluster_service.proto;l=3006 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 + * google/container/v1/cluster_service.proto;l=3006 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java index 250b55ca26b6..d214e7096ac7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4366 + * google/container/v1/cluster_service.proto;l=4394 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4366 + * google/container/v1/cluster_service.proto;l=4394 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4372 + * google/container/v1/cluster_service.proto;l=4400 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4372 + * google/container/v1/cluster_service.proto;l=4400 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4376 + * google/container/v1/cluster_service.proto;l=4404 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4376 + * google/container/v1/cluster_service.proto;l=4404 * @return The bytes for clusterId. */ @java.lang.Override @@ -830,7 +830,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4366 + * google/container/v1/cluster_service.proto;l=4394 * @return The projectId. */ @java.lang.Deprecated @@ -857,7 +857,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4366 + * google/container/v1/cluster_service.proto;l=4394 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4366 + * google/container/v1/cluster_service.proto;l=4394 * @param value The projectId to set. * @return This builder for chaining. */ @@ -910,7 +910,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4366 + * google/container/v1/cluster_service.proto;l=4394 * @return This builder for chaining. */ @java.lang.Deprecated @@ -932,7 +932,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4366 + * google/container/v1/cluster_service.proto;l=4394 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -962,7 +962,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4372 + * google/container/v1/cluster_service.proto;l=4400 * @return The zone. */ @java.lang.Deprecated @@ -990,7 +990,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4372 + * google/container/v1/cluster_service.proto;l=4400 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1018,7 +1018,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4372 + * google/container/v1/cluster_service.proto;l=4400 * @param value The zone to set. * @return This builder for chaining. */ @@ -1045,7 +1045,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4372 + * google/container/v1/cluster_service.proto;l=4400 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1068,7 +1068,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4372 + * google/container/v1/cluster_service.proto;l=4400 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1096,7 +1096,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4376 + * google/container/v1/cluster_service.proto;l=4404 * @return The clusterId. */ @java.lang.Deprecated @@ -1122,7 +1122,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4376 + * google/container/v1/cluster_service.proto;l=4404 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1148,7 +1148,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4376 + * google/container/v1/cluster_service.proto;l=4404 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1173,7 +1173,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4376 + * google/container/v1/cluster_service.proto;l=4404 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1194,7 +1194,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4376 + * google/container/v1/cluster_service.proto;l=4404 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java index 299c544eeb6e..d55f62941e2a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4366 + * google/container/v1/cluster_service.proto;l=4394 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4366 + * google/container/v1/cluster_service.proto;l=4394 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4372 + * google/container/v1/cluster_service.proto;l=4400 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4372 + * google/container/v1/cluster_service.proto;l=4400 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4376 + * google/container/v1/cluster_service.proto;l=4404 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4376 + * google/container/v1/cluster_service.proto;l=4404 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java index 00ca5f58edf1..224ea3b6636a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2906 + * google/container/v1/cluster_service.proto;l=2931 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2906 + * google/container/v1/cluster_service.proto;l=2931 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2912 + * google/container/v1/cluster_service.proto;l=2937 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2912 + * google/container/v1/cluster_service.proto;l=2937 * @return The bytes for zone. */ @java.lang.Override @@ -207,7 +207,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2916 + * google/container/v1/cluster_service.proto;l=2941 * @return The clusterId. */ @java.lang.Override @@ -234,7 +234,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2916 + * google/container/v1/cluster_service.proto;l=2941 * @return The bytes for clusterId. */ @java.lang.Override @@ -266,7 +266,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2920 + * google/container/v1/cluster_service.proto;l=2945 * @return The nodePoolId. */ @java.lang.Override @@ -293,7 +293,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2920 + * google/container/v1/cluster_service.proto;l=2945 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -917,7 +917,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2906 + * google/container/v1/cluster_service.proto;l=2931 * @return The projectId. */ @java.lang.Deprecated @@ -944,7 +944,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2906 + * google/container/v1/cluster_service.proto;l=2931 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -971,7 +971,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2906 + * google/container/v1/cluster_service.proto;l=2931 * @param value The projectId to set. * @return This builder for chaining. */ @@ -997,7 +997,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2906 + * google/container/v1/cluster_service.proto;l=2931 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1019,7 +1019,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2906 + * google/container/v1/cluster_service.proto;l=2931 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1049,7 +1049,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2912 + * google/container/v1/cluster_service.proto;l=2937 * @return The zone. */ @java.lang.Deprecated @@ -1077,7 +1077,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2912 + * google/container/v1/cluster_service.proto;l=2937 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1105,7 +1105,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2912 + * google/container/v1/cluster_service.proto;l=2937 * @param value The zone to set. * @return This builder for chaining. */ @@ -1132,7 +1132,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2912 + * google/container/v1/cluster_service.proto;l=2937 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1155,7 +1155,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2912 + * google/container/v1/cluster_service.proto;l=2937 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1183,7 +1183,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2916 + * google/container/v1/cluster_service.proto;l=2941 * @return The clusterId. */ @java.lang.Deprecated @@ -1209,7 +1209,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2916 + * google/container/v1/cluster_service.proto;l=2941 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1235,7 +1235,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2916 + * google/container/v1/cluster_service.proto;l=2941 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1260,7 +1260,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2916 + * google/container/v1/cluster_service.proto;l=2941 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1281,7 +1281,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2916 + * google/container/v1/cluster_service.proto;l=2941 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1309,7 +1309,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2920 + * google/container/v1/cluster_service.proto;l=2945 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1335,7 +1335,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2920 + * google/container/v1/cluster_service.proto;l=2945 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1361,7 +1361,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2920 + * google/container/v1/cluster_service.proto;l=2945 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1386,7 +1386,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2920 + * google/container/v1/cluster_service.proto;l=2945 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1407,7 +1407,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2920 + * google/container/v1/cluster_service.proto;l=2945 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java index 43a2562a542c..ba8dc91b4d9d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2906 + * google/container/v1/cluster_service.proto;l=2931 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2906 + * google/container/v1/cluster_service.proto;l=2931 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2912 + * google/container/v1/cluster_service.proto;l=2937 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2912 + * google/container/v1/cluster_service.proto;l=2937 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2916 + * google/container/v1/cluster_service.proto;l=2941 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2916 + * google/container/v1/cluster_service.proto;l=2941 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2920 + * google/container/v1/cluster_service.proto;l=2945 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2920 + * google/container/v1/cluster_service.proto;l=2945 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java index 8d586b477f62..eae68a4b7fc8 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3901 + * google/container/v1/cluster_service.proto;l=3929 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3901 + * google/container/v1/cluster_service.proto;l=3929 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3907 + * google/container/v1/cluster_service.proto;l=3935 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3907 + * google/container/v1/cluster_service.proto;l=3935 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=3939 * @return The clusterId. */ @java.lang.Override @@ -235,7 +235,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=3939 * @return The bytes for clusterId. */ @java.lang.Override @@ -267,7 +267,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=3943 * @return The nodePoolId. */ @java.lang.Override @@ -294,7 +294,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=3943 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -917,7 +917,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3901 + * google/container/v1/cluster_service.proto;l=3929 * @return The projectId. */ @java.lang.Deprecated @@ -944,7 +944,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3901 + * google/container/v1/cluster_service.proto;l=3929 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -971,7 +971,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3901 + * google/container/v1/cluster_service.proto;l=3929 * @param value The projectId to set. * @return This builder for chaining. */ @@ -997,7 +997,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3901 + * google/container/v1/cluster_service.proto;l=3929 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1019,7 +1019,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3901 + * google/container/v1/cluster_service.proto;l=3929 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1049,7 +1049,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3907 + * google/container/v1/cluster_service.proto;l=3935 * @return The zone. */ @java.lang.Deprecated @@ -1077,7 +1077,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3907 + * google/container/v1/cluster_service.proto;l=3935 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1105,7 +1105,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3907 + * google/container/v1/cluster_service.proto;l=3935 * @param value The zone to set. * @return This builder for chaining. */ @@ -1132,7 +1132,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3907 + * google/container/v1/cluster_service.proto;l=3935 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1155,7 +1155,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3907 + * google/container/v1/cluster_service.proto;l=3935 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1183,7 +1183,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=3939 * @return The clusterId. */ @java.lang.Deprecated @@ -1209,7 +1209,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=3939 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1235,7 +1235,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=3939 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1260,7 +1260,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=3939 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1281,7 +1281,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=3939 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1309,7 +1309,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=3943 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1335,7 +1335,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=3943 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1361,7 +1361,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=3943 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1386,7 +1386,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=3943 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1407,7 +1407,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=3943 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java index a59d857e1756..530bb4d1582a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3901 + * google/container/v1/cluster_service.proto;l=3929 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3901 + * google/container/v1/cluster_service.proto;l=3929 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3907 + * google/container/v1/cluster_service.proto;l=3935 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3907 + * google/container/v1/cluster_service.proto;l=3935 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=3939 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=3939 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=3943 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=3943 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java index 3fda9bb94bc4..d5e092449c2b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3931 + * google/container/v1/cluster_service.proto;l=3959 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3931 + * google/container/v1/cluster_service.proto;l=3959 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3937 + * google/container/v1/cluster_service.proto;l=3965 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3937 + * google/container/v1/cluster_service.proto;l=3965 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3941 + * google/container/v1/cluster_service.proto;l=3969 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3941 + * google/container/v1/cluster_service.proto;l=3969 * @return The bytes for clusterId. */ @java.lang.Override @@ -265,7 +265,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3945 + * google/container/v1/cluster_service.proto;l=3973 * @return The nodePoolId. */ @java.lang.Override @@ -292,7 +292,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3945 + * google/container/v1/cluster_service.proto;l=3973 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -854,7 +854,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3931 + * google/container/v1/cluster_service.proto;l=3959 * @return The projectId. */ @java.lang.Deprecated @@ -881,7 +881,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3931 + * google/container/v1/cluster_service.proto;l=3959 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -908,7 +908,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3931 + * google/container/v1/cluster_service.proto;l=3959 * @param value The projectId to set. * @return This builder for chaining. */ @@ -934,7 +934,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3931 + * google/container/v1/cluster_service.proto;l=3959 * @return This builder for chaining. */ @java.lang.Deprecated @@ -956,7 +956,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3931 + * google/container/v1/cluster_service.proto;l=3959 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -986,7 +986,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3937 + * google/container/v1/cluster_service.proto;l=3965 * @return The zone. */ @java.lang.Deprecated @@ -1014,7 +1014,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3937 + * google/container/v1/cluster_service.proto;l=3965 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1042,7 +1042,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3937 + * google/container/v1/cluster_service.proto;l=3965 * @param value The zone to set. * @return This builder for chaining. */ @@ -1069,7 +1069,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3937 + * google/container/v1/cluster_service.proto;l=3965 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3937 + * google/container/v1/cluster_service.proto;l=3965 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1120,7 +1120,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3941 + * google/container/v1/cluster_service.proto;l=3969 * @return The clusterId. */ @java.lang.Deprecated @@ -1146,7 +1146,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3941 + * google/container/v1/cluster_service.proto;l=3969 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1172,7 +1172,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3941 + * google/container/v1/cluster_service.proto;l=3969 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1197,7 +1197,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3941 + * google/container/v1/cluster_service.proto;l=3969 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1218,7 +1218,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3941 + * google/container/v1/cluster_service.proto;l=3969 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1246,7 +1246,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3945 + * google/container/v1/cluster_service.proto;l=3973 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1272,7 +1272,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3945 + * google/container/v1/cluster_service.proto;l=3973 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1298,7 +1298,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3945 + * google/container/v1/cluster_service.proto;l=3973 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1323,7 +1323,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3945 + * google/container/v1/cluster_service.proto;l=3973 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1344,7 +1344,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3945 + * google/container/v1/cluster_service.proto;l=3973 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java index e377cfe19001..b1027ee88aee 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3931 + * google/container/v1/cluster_service.proto;l=3959 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3931 + * google/container/v1/cluster_service.proto;l=3959 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3937 + * google/container/v1/cluster_service.proto;l=3965 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3937 + * google/container/v1/cluster_service.proto;l=3965 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3941 + * google/container/v1/cluster_service.proto;l=3969 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3941 + * google/container/v1/cluster_service.proto;l=3969 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3945 + * google/container/v1/cluster_service.proto;l=3973 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3945 + * google/container/v1/cluster_service.proto;l=3973 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java index a2636d3c8e39..d805934a34c0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 + * google/container/v1/cluster_service.proto;l=4257 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 + * google/container/v1/cluster_service.proto;l=4257 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4235 + * google/container/v1/cluster_service.proto;l=4263 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4235 + * google/container/v1/cluster_service.proto;l=4263 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4239 + * google/container/v1/cluster_service.proto;l=4267 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4239 + * google/container/v1/cluster_service.proto;l=4267 * @return The bytes for clusterId. */ @java.lang.Override @@ -770,7 +770,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 + * google/container/v1/cluster_service.proto;l=4257 * @return The projectId. */ @java.lang.Deprecated @@ -797,7 +797,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 + * google/container/v1/cluster_service.proto;l=4257 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -824,7 +824,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 + * google/container/v1/cluster_service.proto;l=4257 * @param value The projectId to set. * @return This builder for chaining. */ @@ -850,7 +850,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 + * google/container/v1/cluster_service.proto;l=4257 * @return This builder for chaining. */ @java.lang.Deprecated @@ -872,7 +872,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 + * google/container/v1/cluster_service.proto;l=4257 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -902,7 +902,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4235 + * google/container/v1/cluster_service.proto;l=4263 * @return The zone. */ @java.lang.Deprecated @@ -930,7 +930,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4235 + * google/container/v1/cluster_service.proto;l=4263 * @return The bytes for zone. */ @java.lang.Deprecated @@ -958,7 +958,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4235 + * google/container/v1/cluster_service.proto;l=4263 * @param value The zone to set. * @return This builder for chaining. */ @@ -985,7 +985,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4235 + * google/container/v1/cluster_service.proto;l=4263 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1008,7 +1008,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4235 + * google/container/v1/cluster_service.proto;l=4263 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1036,7 +1036,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4239 + * google/container/v1/cluster_service.proto;l=4267 * @return The clusterId. */ @java.lang.Deprecated @@ -1062,7 +1062,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4239 + * google/container/v1/cluster_service.proto;l=4267 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1088,7 +1088,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4239 + * google/container/v1/cluster_service.proto;l=4267 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1113,7 +1113,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4239 + * google/container/v1/cluster_service.proto;l=4267 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1134,7 +1134,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4239 + * google/container/v1/cluster_service.proto;l=4267 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java index e5cd45afd325..c3001d3bdaed 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface StartIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 + * google/container/v1/cluster_service.proto;l=4257 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface StartIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 + * google/container/v1/cluster_service.proto;l=4257 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4235 + * google/container/v1/cluster_service.proto;l=4263 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4235 + * google/container/v1/cluster_service.proto;l=4263 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface StartIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4239 + * google/container/v1/cluster_service.proto;l=4267 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface StartIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4239 + * google/container/v1/cluster_service.proto;l=4267 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java index 2fbf1aec1e95..4b2413be457b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java @@ -330,7 +330,7 @@ private Code(int value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4443 + * google/container/v1/cluster_service.proto;l=4471 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -349,7 +349,7 @@ public int getCodeValue() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4443 + * google/container/v1/cluster_service.proto;l=4471 * @return The code. */ @java.lang.Override @@ -842,7 +842,7 @@ public Builder mergeFrom( * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4443 + * google/container/v1/cluster_service.proto;l=4471 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -861,7 +861,7 @@ public int getCodeValue() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4443 + * google/container/v1/cluster_service.proto;l=4471 * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -883,7 +883,7 @@ public Builder setCodeValue(int value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4443 + * google/container/v1/cluster_service.proto;l=4471 * @return The code. */ @java.lang.Override @@ -904,7 +904,7 @@ public com.google.container.v1.StatusCondition.Code getCode() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4443 + * google/container/v1/cluster_service.proto;l=4471 * @param value The code to set. * @return This builder for chaining. */ @@ -929,7 +929,7 @@ public Builder setCode(com.google.container.v1.StatusCondition.Code value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4443 + * google/container/v1/cluster_service.proto;l=4471 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java index 40ca1b0ebc75..660e6224a589 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java @@ -35,7 +35,7 @@ public interface StatusConditionOrBuilder * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4443 + * google/container/v1/cluster_service.proto;l=4471 * @return The enum numeric value on the wire for code. */ @java.lang.Deprecated @@ -51,7 +51,7 @@ public interface StatusConditionOrBuilder * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4443 + * google/container/v1/cluster_service.proto;l=4471 * @return The code. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java index a8ca14aeda36..eaa75d08694a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2735 + * google/container/v1/cluster_service.proto;l=2760 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2735 + * google/container/v1/cluster_service.proto;l=2760 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2741 + * google/container/v1/cluster_service.proto;l=2766 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2741 + * google/container/v1/cluster_service.proto;l=2766 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2745 + * google/container/v1/cluster_service.proto;l=2770 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2745 + * google/container/v1/cluster_service.proto;l=2770 * @return The bytes for clusterId. */ @java.lang.Override @@ -821,7 +821,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2735 + * google/container/v1/cluster_service.proto;l=2760 * @return The projectId. */ @java.lang.Deprecated @@ -848,7 +848,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2735 + * google/container/v1/cluster_service.proto;l=2760 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -875,7 +875,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2735 + * google/container/v1/cluster_service.proto;l=2760 * @param value The projectId to set. * @return This builder for chaining. */ @@ -901,7 +901,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2735 + * google/container/v1/cluster_service.proto;l=2760 * @return This builder for chaining. */ @java.lang.Deprecated @@ -923,7 +923,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2735 + * google/container/v1/cluster_service.proto;l=2760 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2741 + * google/container/v1/cluster_service.proto;l=2766 * @return The zone. */ @java.lang.Deprecated @@ -981,7 +981,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2741 + * google/container/v1/cluster_service.proto;l=2766 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1009,7 +1009,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2741 + * google/container/v1/cluster_service.proto;l=2766 * @param value The zone to set. * @return This builder for chaining. */ @@ -1036,7 +1036,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2741 + * google/container/v1/cluster_service.proto;l=2766 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1059,7 +1059,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2741 + * google/container/v1/cluster_service.proto;l=2766 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1087,7 +1087,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2745 + * google/container/v1/cluster_service.proto;l=2770 * @return The clusterId. */ @java.lang.Deprecated @@ -1113,7 +1113,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2745 + * google/container/v1/cluster_service.proto;l=2770 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1139,7 +1139,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2745 + * google/container/v1/cluster_service.proto;l=2770 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1164,7 +1164,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2745 + * google/container/v1/cluster_service.proto;l=2770 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1185,7 +1185,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2745 + * google/container/v1/cluster_service.proto;l=2770 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java index c6838701f174..9e834bf02bb6 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2735 + * google/container/v1/cluster_service.proto;l=2760 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface UpdateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2735 + * google/container/v1/cluster_service.proto;l=2760 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2741 + * google/container/v1/cluster_service.proto;l=2766 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2741 + * google/container/v1/cluster_service.proto;l=2766 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface UpdateClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2745 + * google/container/v1/cluster_service.proto;l=2770 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface UpdateClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2745 + * google/container/v1/cluster_service.proto;l=2770 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java index 07bc9cf01a37..ad66e3de32c2 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3088 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3088 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3069 + * google/container/v1/cluster_service.proto;l=3094 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3069 + * google/container/v1/cluster_service.proto;l=3094 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 + * google/container/v1/cluster_service.proto;l=3098 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 + * google/container/v1/cluster_service.proto;l=3098 * @return The bytes for clusterId. */ @java.lang.Override @@ -822,7 +822,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3088 * @return The projectId. */ @java.lang.Deprecated @@ -849,7 +849,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3088 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -876,7 +876,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3088 * @param value The projectId to set. * @return This builder for chaining. */ @@ -902,7 +902,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3088 * @return This builder for chaining. */ @java.lang.Deprecated @@ -924,7 +924,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3088 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -954,7 +954,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3069 + * google/container/v1/cluster_service.proto;l=3094 * @return The zone. */ @java.lang.Deprecated @@ -982,7 +982,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3069 + * google/container/v1/cluster_service.proto;l=3094 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1010,7 +1010,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3069 + * google/container/v1/cluster_service.proto;l=3094 * @param value The zone to set. * @return This builder for chaining. */ @@ -1037,7 +1037,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3069 + * google/container/v1/cluster_service.proto;l=3094 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1060,7 +1060,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3069 + * google/container/v1/cluster_service.proto;l=3094 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1088,7 +1088,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 + * google/container/v1/cluster_service.proto;l=3098 * @return The clusterId. */ @java.lang.Deprecated @@ -1114,7 +1114,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 + * google/container/v1/cluster_service.proto;l=3098 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1140,7 +1140,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 + * google/container/v1/cluster_service.proto;l=3098 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1165,7 +1165,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 + * google/container/v1/cluster_service.proto;l=3098 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1186,7 +1186,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 + * google/container/v1/cluster_service.proto;l=3098 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java index b2aa75a4fca8..3998e32f76cf 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateMasterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3088 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface UpdateMasterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3063 + * google/container/v1/cluster_service.proto;l=3088 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3069 + * google/container/v1/cluster_service.proto;l=3094 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3069 + * google/container/v1/cluster_service.proto;l=3094 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface UpdateMasterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 + * google/container/v1/cluster_service.proto;l=3098 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface UpdateMasterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 + * google/container/v1/cluster_service.proto;l=3098 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java index c47dacb14bf3..33130b350b1b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java @@ -91,7 +91,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2785 * @return The projectId. */ @java.lang.Override @@ -119,7 +119,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2785 * @return The bytes for projectId. */ @java.lang.Override @@ -153,7 +153,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=2791 * @return The zone. */ @java.lang.Override @@ -182,7 +182,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=2791 * @return The bytes for zone. */ @java.lang.Override @@ -214,7 +214,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=2795 * @return The clusterId. */ @java.lang.Override @@ -241,7 +241,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=2795 * @return The bytes for clusterId. */ @java.lang.Override @@ -273,7 +273,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2774 + * google/container/v1/cluster_service.proto;l=2799 * @return The nodePoolId. */ @java.lang.Override @@ -300,7 +300,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2774 + * google/container/v1/cluster_service.proto;l=2799 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -3110,7 +3110,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2785 * @return The projectId. */ @java.lang.Deprecated @@ -3137,7 +3137,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2785 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -3164,7 +3164,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2785 * @param value The projectId to set. * @return This builder for chaining. */ @@ -3190,7 +3190,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2785 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3212,7 +3212,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2785 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -3242,7 +3242,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=2791 * @return The zone. */ @java.lang.Deprecated @@ -3270,7 +3270,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=2791 * @return The bytes for zone. */ @java.lang.Deprecated @@ -3298,7 +3298,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=2791 * @param value The zone to set. * @return This builder for chaining. */ @@ -3325,7 +3325,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=2791 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3348,7 +3348,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=2791 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -3376,7 +3376,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=2795 * @return The clusterId. */ @java.lang.Deprecated @@ -3402,7 +3402,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=2795 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -3428,7 +3428,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=2795 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -3453,7 +3453,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=2795 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3474,7 +3474,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=2795 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -3502,7 +3502,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2774 + * google/container/v1/cluster_service.proto;l=2799 * @return The nodePoolId. */ @java.lang.Deprecated @@ -3528,7 +3528,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2774 + * google/container/v1/cluster_service.proto;l=2799 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -3554,7 +3554,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2774 + * google/container/v1/cluster_service.proto;l=2799 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -3579,7 +3579,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2774 + * google/container/v1/cluster_service.proto;l=2799 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3600,7 +3600,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2774 + * google/container/v1/cluster_service.proto;l=2799 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java index ffd83cd8dc68..e6933d36ee1d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2785 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface UpdateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2760 + * google/container/v1/cluster_service.proto;l=2785 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=2791 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2766 + * google/container/v1/cluster_service.proto;l=2791 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface UpdateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=2795 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface UpdateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2770 + * google/container/v1/cluster_service.proto;l=2795 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface UpdateNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2774 + * google/container/v1/cluster_service.proto;l=2799 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface UpdateNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2774 + * google/container/v1/cluster_service.proto;l=2799 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto b/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto index b9f6f53ff9a2..fe9b2daec239 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto +++ b/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto @@ -961,7 +961,7 @@ message NodeNetworkConfig { // Each pod network corresponds to an additional alias IP range for the node repeated AdditionalPodNetworkConfig additional_pod_network_configs = 15; - // Output only. [Output only] The utilization of the IPv4 range for the pod. + // Output only. The utilization of the IPv4 range for the pod. // The ratio is Usage/[Total number of IPs in the secondary range], // Usage=numNodes*numZones*podIPsPerNode. double pod_ipv4_range_utilization = 16 @@ -981,14 +981,14 @@ message AdditionalNodeNetworkConfig { // AdditionalPodNetworkConfig is the configuration for additional pod networks // within the NodeNetworkConfig message message AdditionalPodNetworkConfig { - // Name of the subnetwork where the additional pod network belongs + // Name of the subnetwork where the additional pod network belongs. string subnetwork = 1; // The name of the secondary range on the subnet which provides IP address for - // this pod range + // this pod range. string secondary_pod_range = 2; - // The maximum number of pods per node which use this pod network + // The maximum number of pods per node which use this pod network. optional MaxPodsConstraint max_pods_per_node = 3; } @@ -1236,17 +1236,18 @@ message MasterAuth { // certificate is issued. ClientCertificateConfig client_certificate_config = 3; - // [Output only] Base64-encoded public certificate that is the root of + // Output only. Base64-encoded public certificate that is the root of // trust for the cluster. - string cluster_ca_certificate = 100; + string cluster_ca_certificate = 100 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] Base64-encoded public certificate used by clients to + // Output only. Base64-encoded public certificate used by clients to // authenticate to the cluster endpoint. - string client_certificate = 101; + string client_certificate = 101 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] Base64-encoded private key used by clients to authenticate + // Output only. Base64-encoded private key used by clients to authenticate // to the cluster endpoint. - string client_key = 102; + string client_key = 102 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Configuration for client certificates on the cluster. @@ -1305,6 +1306,10 @@ message AddonsConfig { // Optional. Configuration for the StatefulHA add-on. StatefulHAConfig stateful_ha_config = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for Ray Operator addon. + RayOperatorConfig ray_operator_config = 21 + [(google.api.field_behavior) = OPTIONAL]; } // Configuration options for the HTTP (L7) load balancing controller addon, @@ -1369,13 +1374,13 @@ message PrivateClusterConfig { string master_ipv4_cidr_block = 3; // Output only. The internal IP address of this cluster's master endpoint. - string private_endpoint = 4; + string private_endpoint = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The external IP address of this cluster's master endpoint. - string public_endpoint = 5; + string public_endpoint = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The peering name in the customer VPC used by this cluster. - string peering_name = 7; + string peering_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Controls master global access settings. PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; @@ -1441,6 +1446,20 @@ message GcsFuseCsiDriverConfig { bool enabled = 1; } +// Configuration options for the Ray Operator add-on. +message RayOperatorConfig { + // Whether the Ray Operator addon is enabled for this cluster. + bool enabled = 1; + + // Optional. Logging configuration for Ray clusters. + RayClusterLoggingConfig ray_cluster_logging_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Monitoring configuration for Ray clusters. + RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + // Configuration for the Backup for GKE Agent. message GkeBackupAgentConfig { // Whether the Backup for GKE agent is enabled for this cluster. @@ -1679,25 +1698,24 @@ message IPAllocationPolicy { // overprovisioning is disabled. PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - // Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and - // pods. + // Output only. The subnet's IPv6 CIDR block used by nodes and pods. string subnet_ipv6_cidr_block = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. [Output only] The services IPv6 CIDR block for the cluster. + // Output only. The services IPv6 CIDR block for the cluster. string services_ipv6_cidr_block = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. [Output only] The additional pod ranges that are added to the - // cluster. These pod ranges can be used by new node pools to allocate pod IPs + // Output only. The additional pod ranges that are added to the cluster. + // These pod ranges can be used by new node pools to allocate pod IPs // automatically. Once the range is removed it will not show up in // IPAllocationPolicy. AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. [Output only] The utilization of the cluster default IPv4 - // range for the pod. The ratio is Usage/[Total number of IPs in the secondary - // range], Usage=numNodes*numZones*podIPsPerNode. + // Output only. The utilization of the cluster default IPv4 range for the + // pod. The ratio is Usage/[Total number of IPs in the secondary range], + // Usage=numNodes*numZones*podIPsPerNode. double default_pod_ipv4_range_utilization = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -1933,21 +1951,22 @@ message Cluster { // Configuration for Identity Service component. IdentityServiceConfig identity_service_config = 54; - // [Output only] Server-defined URL for the resource. - string self_link = 100; + // Output only. Server-defined URL for the resource. + string self_link = 100 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The name of the Google Compute Engine + // Output only. The name of the Google Compute Engine // [zone](https://cloud.google.com/compute/docs/zones#available) in which the // cluster resides. This field is deprecated, use location instead. - string zone = 101 [deprecated = true]; + string zone = 101 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The IP address of this cluster's master endpoint. + // Output only. The IP address of this cluster's master endpoint. // The endpoint can be accessed from the internet at // `https://username:password@endpoint/`. // // See the `masterAuth` property of this resource for username and // password information. - string endpoint = 102; + string endpoint = 102 [(google.api.field_behavior) = OUTPUT_ONLY]; // The initial Kubernetes version for this cluster. Valid versions are those // found in validMasterVersions returned by getServerConfig. The version can @@ -1964,66 +1983,71 @@ message Cluster { // - "","-": picks the default Kubernetes version string initial_cluster_version = 103; - // [Output only] The current software version of the master endpoint. - string current_master_version = 104; + // Output only. The current software version of the master endpoint. + string current_master_version = 104 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] Deprecated, use + // Output only. Deprecated, use // [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) // instead. The current version of the node software components. If they are // currently at multiple versions because they're in the process of being // upgraded, this reflects the minimum version of all nodes. - string current_node_version = 105 [deprecated = true]; + string current_node_version = 105 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The time the cluster was created, in + // Output only. The time the cluster was created, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string create_time = 106; + string create_time = 106 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The current status of this cluster. - Status status = 107; + // Output only. The current status of this cluster. + Status status = 107 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] Deprecated. Use conditions instead. + // Output only. Deprecated. Use conditions instead. // Additional information about the current status of this // cluster, if available. - string status_message = 108 [deprecated = true]; + string status_message = 108 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The size of the address space on each node for hosting + // Output only. The size of the address space on each node for hosting // containers. This is provisioned from within the `container_ipv4_cidr` // range. This field will only be set when cluster is in route-based network // mode. - int32 node_ipv4_cidr_size = 109; + int32 node_ipv4_cidr_size = 109 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The IP address range of the Kubernetes services in + // Output only. The IP address range of the Kubernetes services in // this cluster, in // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) // notation (e.g. `1.2.3.4/29`). Service addresses are // typically put in the last `/16` from the container CIDR. - string services_ipv4_cidr = 110; + string services_ipv4_cidr = 110 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Deprecated. Use node_pools.instance_group_urls. - repeated string instance_group_urls = 111 [deprecated = true]; + // Output only. Deprecated. Use node_pools.instance_group_urls. + repeated string instance_group_urls = 111 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The number of nodes currently in the cluster. Deprecated. + // Output only. The number of nodes currently in the cluster. Deprecated. // Call Kubernetes API directly to retrieve node information. - int32 current_node_count = 112 [deprecated = true]; + int32 current_node_count = 112 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The time the cluster will be automatically + // Output only. The time the cluster will be automatically // deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string expire_time = 113; + string expire_time = 113 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The name of the Google Compute Engine + // Output only. The name of the Google Compute Engine // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) // or // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) // in which the cluster resides. - string location = 114; + string location = 114 [(google.api.field_behavior) = OUTPUT_ONLY]; // Enable the ability to use Cloud TPUs in this cluster. bool enable_tpu = 115; - // [Output only] The IP address range of the Cloud TPUs in this cluster, in + // Output only. The IP address range of the Cloud TPUs in this cluster, in // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) // notation (e.g. `1.2.3.4/29`). - string tpu_ipv4_cidr_block = 116; + string tpu_ipv4_cidr_block = 116 [(google.api.field_behavior) = OUTPUT_ONLY]; // Which conditions caused the current cluster state. repeated StatusCondition conditions = 118; @@ -2411,17 +2435,17 @@ message AdditionalPodRangesConfig { // Name for pod secondary ipv4 range which has the actual range defined ahead. repeated string pod_range_names = 1; - // Output only. [Output only] Information for additional pod range. + // Output only. Information for additional pod range. repeated RangeInfo pod_range_info = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // RangeInfo contains the range name and the range utilization by this cluster. message RangeInfo { - // Output only. [Output only] Name of a range. + // Output only. Name of a range. string range_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. [Output only] The utilization of the range. + // Output only. The utilization of the range. double utilization = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -2571,36 +2595,37 @@ message Operation { FLEET_FEATURE_UPGRADE = 19; } - // The server-assigned ID for the operation. - string name = 1; + // Output only. The server-assigned ID for the operation. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The name of the Google Compute Engine + // Output only. The name of the Google Compute Engine // [zone](https://cloud.google.com/compute/docs/zones#available) in which the // operation is taking place. This field is deprecated, use location instead. - string zone = 2 [deprecated = true]; + string zone = 2 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // The operation type. - Type operation_type = 3; + // Output only. The operation type. + Type operation_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The current status of the operation. - Status status = 4; + // Output only. The current status of the operation. + Status status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Detailed operation progress, if available. - string detail = 8; + // Output only. Detailed operation progress, if available. + string detail = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. If an error has occurred, a textual description of the error. // Deprecated. Use the field error instead. string status_message = 5 [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // Server-defined URI for the operation. Example: + // Output only. Server-defined URI for the operation. Example: // `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. - string self_link = 6; + string self_link = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Server-defined URI for the target of the operation. The format of this is a - // URI to the resource being modified (such as a cluster, node pool, or node). - // For node pool repairs, there may be multiple nodes being repaired, but only - // one will be the target. + // Output only. Server-defined URI for the target of the operation. The format + // of this is a URI to the resource being modified (such as a cluster, node + // pool, or node). For node pool repairs, there may be multiple nodes being + // repaired, but only one will be the target. // // Examples: // @@ -2612,24 +2637,24 @@ message Operation { // `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` // // `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` - string target_link = 7; + string target_link = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The name of the Google Compute Engine + // Output only. The name of the Google Compute Engine // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) // or // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) // in which the cluster resides. - string location = 9; + string location = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The time the operation started, in + // Output only. The time the operation started, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string start_time = 10; + string start_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The time the operation completed, in + // Output only. The time the operation completed, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string end_time = 11; + string end_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. [Output only] Progress information for an operation. + // Output only. Progress information for an operation. OperationProgress progress = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Which conditions caused the current cluster state. @@ -3663,28 +3688,30 @@ message NodePool { // cluster-level defaults. NodeNetworkConfig network_config = 14; - // [Output only] Server-defined URL for the resource. - string self_link = 100; + // Output only. Server-defined URL for the resource. + string self_link = 100 [(google.api.field_behavior) = OUTPUT_ONLY]; // The version of Kubernetes running on this NodePool's nodes. If unspecified, // it defaults as described // [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). string version = 101; - // [Output only] The resource URLs of the [managed instance + // Output only. The resource URLs of the [managed instance // groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) // associated with this node pool. // During the node pool blue-green upgrade operation, the URLs contain both // blue and green resources. - repeated string instance_group_urls = 102; + repeated string instance_group_urls = 102 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The status of the nodes in this pool instance. - Status status = 103; + // Output only. The status of the nodes in this pool instance. + Status status = 103 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] Deprecated. Use conditions instead. + // Output only. Deprecated. Use conditions instead. // Additional information about the current status of this // node pool instance, if available. - string status_message = 104 [deprecated = true]; + string status_message = 104 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; // Autoscaler configuration for this NodePool. Autoscaler is enabled // only if a valid configuration is present. @@ -3700,8 +3727,8 @@ message NodePool { // Which conditions caused the current node pool state. repeated StatusCondition conditions = 105; - // [Output only] The pod CIDR block size per node in this node pool. - int32 pod_ipv4_cidr_size = 7; + // Output only. The pod CIDR block size per node in this node pool. + int32 pod_ipv4_cidr_size = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Upgrade settings control disruption and speed of the upgrade. UpgradeSettings upgrade_settings = 107; @@ -3709,8 +3736,8 @@ message NodePool { // Specifies the node placement policy. PlacementPolicy placement_policy = 108; - // Output only. [Output only] Update info contains relevant information during - // a node pool update. + // Output only. Update info contains relevant information during a node + // pool update. UpdateInfo update_info = 109 [(google.api.field_behavior) = OUTPUT_ONLY]; // This checksum is computed by the server based on the value of node pool @@ -3759,14 +3786,15 @@ message BestEffortProvisioning { // AutoUpgradeOptions defines the set of options for the user to control how // the Auto Upgrades will proceed. message AutoUpgradeOptions { - // [Output only] This field is set when upgrades are about to commence + // Output only. This field is set when upgrades are about to commence // with the approximate start time for the upgrades, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string auto_upgrade_start_time = 1; + string auto_upgrade_start_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] This field is set when upgrades are about to commence + // Output only. This field is set when upgrades are about to commence // with the description of the upgrade. - string description = 2; + string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // MaintenancePolicy defines the maintenance policy to be used for the cluster. @@ -3886,11 +3914,11 @@ message DailyMaintenanceWindow { // format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. string start_time = 2; - // [Output only] Duration of the time window, automatically chosen to be + // Output only. Duration of the time window, automatically chosen to be // smallest possible in the given scenario. // Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) // format "PTnHnMnS". - string duration = 3; + string duration = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // SetNodePoolManagementRequest sets the node management properties of a node @@ -4471,13 +4499,13 @@ message NetworkConfig { // [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) // to which the cluster is connected. Example: // projects/my-project/global/networks/my-network - string network = 1; + string network = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The relative name of the Google Compute Engine // [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the // cluster is connected. Example: // projects/my-project/regions/us-central1/subnetworks/my-subnet - string subnetwork = 2; + string subnetwork = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Whether Intra-node visibility is enabled for this cluster. // This makes same node pod to pod traffic visible for VPC network. @@ -4540,8 +4568,9 @@ message GatewayAPIConfig { // Gateway API support is disabled CHANNEL_DISABLED = 1; + // Deprecated: use CHANNEL_STANDARD instead. // Gateway API support is enabled, experimental CRDs are installed - CHANNEL_EXPERIMENTAL = 3; + CHANNEL_EXPERIMENTAL = 3 [deprecated = true]; // Gateway API support is enabled, standard CRDs are installed CHANNEL_STANDARD = 4; @@ -5278,6 +5307,12 @@ message LoggingComponentConfig { repeated Component enable_components = 1; } +// RayClusterLoggingConfig specifies configuration of Ray logging. +message RayClusterLoggingConfig { + // Enable log collection for Ray clusters. + bool enabled = 1; +} + // MonitoringConfig is cluster monitoring configuration. message MonitoringConfig { // Monitoring components configuration @@ -5320,6 +5355,13 @@ message AdvancedDatapathObservabilityConfig { optional bool enable_relay = 3; } +// RayClusterMonitoringConfig specifies monitoring configuration for Ray +// clusters. +message RayClusterMonitoringConfig { + // Enable metrics collection for Ray clusters. + bool enabled = 1; +} + // NodePoolLoggingConfig specifies logging configuration for nodepools. message NodePoolLoggingConfig { // Logging variant configuration. @@ -5386,6 +5428,9 @@ message MonitoringComponentConfig { // KUBELET KUBELET = 14; + + // NVIDIA Data Center GPU Manager (DCGM) + DCGM = 15; } // Select components to collect metrics. An empty set would disable all @@ -5437,14 +5482,14 @@ message Fleet { // been registered. string project = 1; - // [Output only] The full resource name of the registered fleet membership of + // Output only. The full resource name of the registered fleet membership of // the cluster, in the format // `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. - string membership = 2; + string membership = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] Whether the cluster has been registered through the fleet + // Output only. Whether the cluster has been registered through the fleet // API. - bool pre_registered = 3; + bool pre_registered = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Possible values for IP stack type @@ -5545,8 +5590,7 @@ message EnterpriseConfig { ENTERPRISE = 2; } - // Output only. [Output only] cluster_tier specifies the premium tier of the - // cluster. + // Output only. cluster_tier specifies the premium tier of the cluster. ClusterTier cluster_tier = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java index 89a16530d38c..80a84e1e4f12 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java @@ -203,7 +203,7 @@ public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4818 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4848 * @return The maxTimeSharedClientsPerGpu. */ @java.lang.Override @@ -1105,7 +1105,7 @@ public Builder setGpuPartitionSizeBytes(com.google.protobuf.ByteString value) { * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4818 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4848 * @return The maxTimeSharedClientsPerGpu. */ @java.lang.Override @@ -1123,7 +1123,7 @@ public long getMaxTimeSharedClientsPerGpu() { * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4818 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4848 * @param value The maxTimeSharedClientsPerGpu to set. * @return This builder for chaining. */ @@ -1145,7 +1145,7 @@ public Builder setMaxTimeSharedClientsPerGpu(long value) { * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4818 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4848 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java index f058cf58fa17..7bedf4f057e7 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java @@ -103,7 +103,7 @@ public interface AcceleratorConfigOrBuilder * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4818 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4848 * @return The maxTimeSharedClientsPerGpu. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfig.java index dd5f6e3c00fd..47aac1b6ef76 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfig.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Name of the subnetwork where the additional pod network belongs
        +   * Name of the subnetwork where the additional pod network belongs.
            * 
        * * string subnetwork = 1; @@ -97,7 +97,7 @@ public java.lang.String getSubnetwork() { * * *
        -   * Name of the subnetwork where the additional pod network belongs
        +   * Name of the subnetwork where the additional pod network belongs.
            * 
        * * string subnetwork = 1; @@ -126,7 +126,7 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * *
            * The name of the secondary range on the subnet which provides IP address for
        -   * this pod range
        +   * this pod range.
            * 
        * * string secondary_pod_range = 2; @@ -150,7 +150,7 @@ public java.lang.String getSecondaryPodRange() { * *
            * The name of the secondary range on the subnet which provides IP address for
        -   * this pod range
        +   * this pod range.
            * 
        * * string secondary_pod_range = 2; @@ -176,7 +176,7 @@ public com.google.protobuf.ByteString getSecondaryPodRangeBytes() { * * *
        -   * The maximum number of pods per node which use this pod network
        +   * The maximum number of pods per node which use this pod network.
            * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; @@ -191,7 +191,7 @@ public boolean hasMaxPodsPerNode() { * * *
        -   * The maximum number of pods per node which use this pod network
        +   * The maximum number of pods per node which use this pod network.
            * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; @@ -208,7 +208,7 @@ public com.google.container.v1beta1.MaxPodsConstraint getMaxPodsPerNode() { * * *
        -   * The maximum number of pods per node which use this pod network
        +   * The maximum number of pods per node which use this pod network.
            * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; @@ -637,7 +637,7 @@ public Builder mergeFrom( * * *
        -     * Name of the subnetwork where the additional pod network belongs
        +     * Name of the subnetwork where the additional pod network belongs.
              * 
        * * string subnetwork = 1; @@ -659,7 +659,7 @@ public java.lang.String getSubnetwork() { * * *
        -     * Name of the subnetwork where the additional pod network belongs
        +     * Name of the subnetwork where the additional pod network belongs.
              * 
        * * string subnetwork = 1; @@ -681,7 +681,7 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * * *
        -     * Name of the subnetwork where the additional pod network belongs
        +     * Name of the subnetwork where the additional pod network belongs.
              * 
        * * string subnetwork = 1; @@ -702,7 +702,7 @@ public Builder setSubnetwork(java.lang.String value) { * * *
        -     * Name of the subnetwork where the additional pod network belongs
        +     * Name of the subnetwork where the additional pod network belongs.
              * 
        * * string subnetwork = 1; @@ -719,7 +719,7 @@ public Builder clearSubnetwork() { * * *
        -     * Name of the subnetwork where the additional pod network belongs
        +     * Name of the subnetwork where the additional pod network belongs.
              * 
        * * string subnetwork = 1; @@ -744,7 +744,7 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { * *
              * The name of the secondary range on the subnet which provides IP address for
        -     * this pod range
        +     * this pod range.
              * 
        * * string secondary_pod_range = 2; @@ -767,7 +767,7 @@ public java.lang.String getSecondaryPodRange() { * *
              * The name of the secondary range on the subnet which provides IP address for
        -     * this pod range
        +     * this pod range.
              * 
        * * string secondary_pod_range = 2; @@ -790,7 +790,7 @@ public com.google.protobuf.ByteString getSecondaryPodRangeBytes() { * *
              * The name of the secondary range on the subnet which provides IP address for
        -     * this pod range
        +     * this pod range.
              * 
        * * string secondary_pod_range = 2; @@ -812,7 +812,7 @@ public Builder setSecondaryPodRange(java.lang.String value) { * *
              * The name of the secondary range on the subnet which provides IP address for
        -     * this pod range
        +     * this pod range.
              * 
        * * string secondary_pod_range = 2; @@ -830,7 +830,7 @@ public Builder clearSecondaryPodRange() { * *
              * The name of the secondary range on the subnet which provides IP address for
        -     * this pod range
        +     * this pod range.
              * 
        * * string secondary_pod_range = 2; @@ -859,7 +859,7 @@ public Builder setSecondaryPodRangeBytes(com.google.protobuf.ByteString value) { * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; @@ -873,7 +873,7 @@ public boolean hasMaxPodsPerNode() { * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; @@ -893,7 +893,7 @@ public com.google.container.v1beta1.MaxPodsConstraint getMaxPodsPerNode() { * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; @@ -915,7 +915,7 @@ public Builder setMaxPodsPerNode(com.google.container.v1beta1.MaxPodsConstraint * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; @@ -935,7 +935,7 @@ public Builder setMaxPodsPerNode( * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; @@ -963,7 +963,7 @@ public Builder mergeMaxPodsPerNode(com.google.container.v1beta1.MaxPodsConstrain * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; @@ -982,7 +982,7 @@ public Builder clearMaxPodsPerNode() { * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; @@ -996,7 +996,7 @@ public com.google.container.v1beta1.MaxPodsConstraint.Builder getMaxPodsPerNodeB * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; @@ -1014,7 +1014,7 @@ public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsPerNode * * *
        -     * The maximum number of pods per node which use this pod network
        +     * The maximum number of pods per node which use this pod network.
              * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfigOrBuilder.java index e091abe3da70..98c034f7b35d 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfigOrBuilder.java @@ -28,7 +28,7 @@ public interface AdditionalPodNetworkConfigOrBuilder * * *
        -   * Name of the subnetwork where the additional pod network belongs
        +   * Name of the subnetwork where the additional pod network belongs.
            * 
        * * string subnetwork = 1; @@ -40,7 +40,7 @@ public interface AdditionalPodNetworkConfigOrBuilder * * *
        -   * Name of the subnetwork where the additional pod network belongs
        +   * Name of the subnetwork where the additional pod network belongs.
            * 
        * * string subnetwork = 1; @@ -54,7 +54,7 @@ public interface AdditionalPodNetworkConfigOrBuilder * *
            * The name of the secondary range on the subnet which provides IP address for
        -   * this pod range
        +   * this pod range.
            * 
        * * string secondary_pod_range = 2; @@ -67,7 +67,7 @@ public interface AdditionalPodNetworkConfigOrBuilder * *
            * The name of the secondary range on the subnet which provides IP address for
        -   * this pod range
        +   * this pod range.
            * 
        * * string secondary_pod_range = 2; @@ -80,7 +80,7 @@ public interface AdditionalPodNetworkConfigOrBuilder * * *
        -   * The maximum number of pods per node which use this pod network
        +   * The maximum number of pods per node which use this pod network.
            * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; @@ -92,7 +92,7 @@ public interface AdditionalPodNetworkConfigOrBuilder * * *
        -   * The maximum number of pods per node which use this pod network
        +   * The maximum number of pods per node which use this pod network.
            * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; @@ -104,7 +104,7 @@ public interface AdditionalPodNetworkConfigOrBuilder * * *
        -   * The maximum number of pods per node which use this pod network
        +   * The maximum number of pods per node which use this pod network.
            * 
        * * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfig.java index 040aeafc4e8f..60870a1b6ded 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfig.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getPodRangeNamesBytes(int index) { * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -152,7 +152,7 @@ public java.util.List getPodRangeInfoLis * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -168,7 +168,7 @@ public java.util.List getPodRangeInfoLis * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -183,7 +183,7 @@ public int getPodRangeInfoCount() { * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -198,7 +198,7 @@ public com.google.container.v1beta1.RangeInfo getPodRangeInfo(int index) { * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -835,7 +835,7 @@ private void ensurePodRangeInfoIsMutable() { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -853,7 +853,7 @@ public java.util.List getPodRangeInfoLis * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -871,7 +871,7 @@ public int getPodRangeInfoCount() { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -889,7 +889,7 @@ public com.google.container.v1beta1.RangeInfo getPodRangeInfo(int index) { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -913,7 +913,7 @@ public Builder setPodRangeInfo(int index, com.google.container.v1beta1.RangeInfo * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -935,7 +935,7 @@ public Builder setPodRangeInfo( * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -959,7 +959,7 @@ public Builder addPodRangeInfo(com.google.container.v1beta1.RangeInfo value) { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -983,7 +983,7 @@ public Builder addPodRangeInfo(int index, com.google.container.v1beta1.RangeInfo * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1004,7 +1004,7 @@ public Builder addPodRangeInfo(com.google.container.v1beta1.RangeInfo.Builder bu * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1026,7 +1026,7 @@ public Builder addPodRangeInfo( * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1048,7 +1048,7 @@ public Builder addAllPodRangeInfo( * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1069,7 +1069,7 @@ public Builder clearPodRangeInfo() { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1090,7 +1090,7 @@ public Builder removePodRangeInfo(int index) { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1104,7 +1104,7 @@ public com.google.container.v1beta1.RangeInfo.Builder getPodRangeInfoBuilder(int * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1122,7 +1122,7 @@ public com.google.container.v1beta1.RangeInfoOrBuilder getPodRangeInfoOrBuilder( * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1141,7 +1141,7 @@ public com.google.container.v1beta1.RangeInfoOrBuilder getPodRangeInfoOrBuilder( * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1156,7 +1156,7 @@ public com.google.container.v1beta1.RangeInfo.Builder addPodRangeInfoBuilder() { * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * @@ -1171,7 +1171,7 @@ public com.google.container.v1beta1.RangeInfo.Builder addPodRangeInfoBuilder(int * * *
        -     * Output only. [Output only] Information for additional pod range.
        +     * Output only. Information for additional pod range.
              * 
        * * diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfigOrBuilder.java index 929edfeb1337..bb750b1133e6 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfigOrBuilder.java @@ -79,7 +79,7 @@ public interface AdditionalPodRangesConfigOrBuilder * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -91,7 +91,7 @@ public interface AdditionalPodRangesConfigOrBuilder * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -103,7 +103,7 @@ public interface AdditionalPodRangesConfigOrBuilder * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -115,7 +115,7 @@ public interface AdditionalPodRangesConfigOrBuilder * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * @@ -128,7 +128,7 @@ public interface AdditionalPodRangesConfigOrBuilder * * *
        -   * Output only. [Output only] Information for additional pod range.
        +   * Output only. Information for additional pod range.
            * 
        * * diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java index 6d094ce330c1..3ec1b9dbda00 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java @@ -191,7 +191,7 @@ public com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAut * * * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1403 + * google/container/v1beta1/cluster_service.proto;l=1406 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Override @@ -215,7 +215,7 @@ public boolean hasKubernetesDashboard() { *
        * * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1403 + * google/container/v1beta1/cluster_service.proto;l=1406 * @return The kubernetesDashboard. */ @java.lang.Override @@ -319,7 +319,7 @@ public com.google.container.v1beta1.NetworkPolicyConfig getNetworkPolicyConfig() * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1412 + * google/container/v1beta1/cluster_service.proto;l=1415 * @return Whether the istioConfig field is set. */ @java.lang.Override @@ -338,7 +338,7 @@ public boolean hasIstioConfig() { * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1412 + * google/container/v1beta1/cluster_service.proto;l=1415 * @return The istioConfig. */ @java.lang.Override @@ -598,7 +598,7 @@ public boolean hasGcePersistentDiskCsiDriverConfig() { * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1431 + * google/container/v1beta1/cluster_service.proto;l=1434 * @return Whether the kalmConfig field is set. */ @java.lang.Override @@ -617,7 +617,7 @@ public boolean hasKalmConfig() { * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1431 + * google/container/v1beta1/cluster_service.proto;l=1434 * @return The kalmConfig. */ @java.lang.Override @@ -860,6 +860,62 @@ public com.google.container.v1beta1.StatefulHAConfigOrBuilder getStatefulHaConfi : statefulHaConfig_; } + public static final int RAY_OPERATOR_CONFIG_FIELD_NUMBER = 21; + private com.google.container.v1beta1.RayOperatorConfig rayOperatorConfig_; + /** + * + * + *
        +   * Optional. Configuration for Ray Operator addon.
        +   * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayOperatorConfig field is set. + */ + @java.lang.Override + public boolean hasRayOperatorConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
        +   * Optional. Configuration for Ray Operator addon.
        +   * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayOperatorConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.RayOperatorConfig getRayOperatorConfig() { + return rayOperatorConfig_ == null + ? com.google.container.v1beta1.RayOperatorConfig.getDefaultInstance() + : rayOperatorConfig_; + } + /** + * + * + *
        +   * Optional. Configuration for Ray Operator addon.
        +   * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.RayOperatorConfigOrBuilder getRayOperatorConfigOrBuilder() { + return rayOperatorConfig_ == null + ? com.google.container.v1beta1.RayOperatorConfig.getDefaultInstance() + : rayOperatorConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -916,6 +972,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00002000) != 0)) { output.writeMessage(18, getStatefulHaConfig()); } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(21, getRayOperatorConfig()); + } getUnknownFields().writeTo(output); } @@ -976,6 +1035,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getStatefulHaConfig()); } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getRayOperatorConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1051,6 +1113,10 @@ public boolean equals(final java.lang.Object obj) { if (hasStatefulHaConfig()) { if (!getStatefulHaConfig().equals(other.getStatefulHaConfig())) return false; } + if (hasRayOperatorConfig() != other.hasRayOperatorConfig()) return false; + if (hasRayOperatorConfig()) { + if (!getRayOperatorConfig().equals(other.getRayOperatorConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1118,6 +1184,10 @@ public int hashCode() { hash = (37 * hash) + STATEFUL_HA_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getStatefulHaConfig().hashCode(); } + if (hasRayOperatorConfig()) { + hash = (37 * hash) + RAY_OPERATOR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRayOperatorConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1273,6 +1343,7 @@ private void maybeForceBuilderInitialization() { getGkeBackupAgentConfigFieldBuilder(); getGcsFuseCsiDriverConfigFieldBuilder(); getStatefulHaConfigFieldBuilder(); + getRayOperatorConfigFieldBuilder(); } } @@ -1350,6 +1421,11 @@ public Builder clear() { statefulHaConfigBuilder_.dispose(); statefulHaConfigBuilder_ = null; } + rayOperatorConfig_ = null; + if (rayOperatorConfigBuilder_ != null) { + rayOperatorConfigBuilder_.dispose(); + rayOperatorConfigBuilder_ = null; + } return this; } @@ -1474,6 +1550,13 @@ private void buildPartial0(com.google.container.v1beta1.AddonsConfig result) { statefulHaConfigBuilder_ == null ? statefulHaConfig_ : statefulHaConfigBuilder_.build(); to_bitField0_ |= 0x00002000; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.rayOperatorConfig_ = + rayOperatorConfigBuilder_ == null + ? rayOperatorConfig_ + : rayOperatorConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } result.bitField0_ |= to_bitField0_; } @@ -1564,6 +1647,9 @@ public Builder mergeFrom(com.google.container.v1beta1.AddonsConfig other) { if (other.hasStatefulHaConfig()) { mergeStatefulHaConfig(other.getStatefulHaConfig()); } + if (other.hasRayOperatorConfig()) { + mergeRayOperatorConfig(other.getRayOperatorConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1685,6 +1771,13 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 146 + case 170: + { + input.readMessage( + getRayOperatorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2140,7 +2233,7 @@ public Builder clearHorizontalPodAutoscaling() { *
        * * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1403 + * google/container/v1beta1/cluster_service.proto;l=1406 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Deprecated @@ -2163,7 +2256,7 @@ public boolean hasKubernetesDashboard() { *
        * * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1403 + * google/container/v1beta1/cluster_service.proto;l=1406 * @return The kubernetesDashboard. */ @java.lang.Deprecated @@ -2599,7 +2692,7 @@ public Builder clearNetworkPolicyConfig() { * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1412 + * google/container/v1beta1/cluster_service.proto;l=1415 * @return Whether the istioConfig field is set. */ @java.lang.Deprecated @@ -2617,7 +2710,7 @@ public boolean hasIstioConfig() { * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1412 + * google/container/v1beta1/cluster_service.proto;l=1415 * @return The istioConfig. */ @java.lang.Deprecated @@ -3610,7 +3703,7 @@ public Builder clearGcePersistentDiskCsiDriverConfig() { * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1431 + * google/container/v1beta1/cluster_service.proto;l=1434 * @return Whether the kalmConfig field is set. */ @java.lang.Deprecated @@ -3628,7 +3721,7 @@ public boolean hasKalmConfig() { * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1431 + * google/container/v1beta1/cluster_service.proto;l=1434 * @return The kalmConfig. */ @java.lang.Deprecated @@ -4605,6 +4698,211 @@ public com.google.container.v1beta1.StatefulHAConfigOrBuilder getStatefulHaConfi return statefulHaConfigBuilder_; } + private com.google.container.v1beta1.RayOperatorConfig rayOperatorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.RayOperatorConfig, + com.google.container.v1beta1.RayOperatorConfig.Builder, + com.google.container.v1beta1.RayOperatorConfigOrBuilder> + rayOperatorConfigBuilder_; + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayOperatorConfig field is set. + */ + public boolean hasRayOperatorConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayOperatorConfig. + */ + public com.google.container.v1beta1.RayOperatorConfig getRayOperatorConfig() { + if (rayOperatorConfigBuilder_ == null) { + return rayOperatorConfig_ == null + ? com.google.container.v1beta1.RayOperatorConfig.getDefaultInstance() + : rayOperatorConfig_; + } else { + return rayOperatorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayOperatorConfig(com.google.container.v1beta1.RayOperatorConfig value) { + if (rayOperatorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rayOperatorConfig_ = value; + } else { + rayOperatorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayOperatorConfig( + com.google.container.v1beta1.RayOperatorConfig.Builder builderForValue) { + if (rayOperatorConfigBuilder_ == null) { + rayOperatorConfig_ = builderForValue.build(); + } else { + rayOperatorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRayOperatorConfig(com.google.container.v1beta1.RayOperatorConfig value) { + if (rayOperatorConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && rayOperatorConfig_ != null + && rayOperatorConfig_ + != com.google.container.v1beta1.RayOperatorConfig.getDefaultInstance()) { + getRayOperatorConfigBuilder().mergeFrom(value); + } else { + rayOperatorConfig_ = value; + } + } else { + rayOperatorConfigBuilder_.mergeFrom(value); + } + if (rayOperatorConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRayOperatorConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + rayOperatorConfig_ = null; + if (rayOperatorConfigBuilder_ != null) { + rayOperatorConfigBuilder_.dispose(); + rayOperatorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1beta1.RayOperatorConfig.Builder getRayOperatorConfigBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getRayOperatorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1beta1.RayOperatorConfigOrBuilder getRayOperatorConfigOrBuilder() { + if (rayOperatorConfigBuilder_ != null) { + return rayOperatorConfigBuilder_.getMessageOrBuilder(); + } else { + return rayOperatorConfig_ == null + ? com.google.container.v1beta1.RayOperatorConfig.getDefaultInstance() + : rayOperatorConfig_; + } + } + /** + * + * + *
        +     * Optional. Configuration for Ray Operator addon.
        +     * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.RayOperatorConfig, + com.google.container.v1beta1.RayOperatorConfig.Builder, + com.google.container.v1beta1.RayOperatorConfigOrBuilder> + getRayOperatorConfigFieldBuilder() { + if (rayOperatorConfigBuilder_ == null) { + rayOperatorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.RayOperatorConfig, + com.google.container.v1beta1.RayOperatorConfig.Builder, + com.google.container.v1beta1.RayOperatorConfigOrBuilder>( + getRayOperatorConfig(), getParentForChildren(), isClean()); + rayOperatorConfig_ = null; + } + return rayOperatorConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java index ce8d870efca5..28ef46271b5a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java @@ -120,7 +120,7 @@ public interface AddonsConfigOrBuilder *
        * * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1403 + * google/container/v1beta1/cluster_service.proto;l=1406 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Deprecated @@ -141,7 +141,7 @@ public interface AddonsConfigOrBuilder *
        * * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1403 + * google/container/v1beta1/cluster_service.proto;l=1406 * @return The kubernetesDashboard. */ @java.lang.Deprecated @@ -216,7 +216,7 @@ public interface AddonsConfigOrBuilder * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1412 + * google/container/v1beta1/cluster_service.proto;l=1415 * @return Whether the istioConfig field is set. */ @java.lang.Deprecated @@ -232,7 +232,7 @@ public interface AddonsConfigOrBuilder * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1412 + * google/container/v1beta1/cluster_service.proto;l=1415 * @return The istioConfig. */ @java.lang.Deprecated @@ -418,7 +418,7 @@ public interface AddonsConfigOrBuilder * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1431 + * google/container/v1beta1/cluster_service.proto;l=1434 * @return Whether the kalmConfig field is set. */ @java.lang.Deprecated @@ -434,7 +434,7 @@ public interface AddonsConfigOrBuilder * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1431 + * google/container/v1beta1/cluster_service.proto;l=1434 * @return The kalmConfig. */ @java.lang.Deprecated @@ -604,4 +604,45 @@ public interface AddonsConfigOrBuilder *
        */ com.google.container.v1beta1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBuilder(); + + /** + * + * + *
        +   * Optional. Configuration for Ray Operator addon.
        +   * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayOperatorConfig field is set. + */ + boolean hasRayOperatorConfig(); + /** + * + * + *
        +   * Optional. Configuration for Ray Operator addon.
        +   * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayOperatorConfig. + */ + com.google.container.v1beta1.RayOperatorConfig getRayOperatorConfig(); + /** + * + * + *
        +   * Optional. Configuration for Ray Operator addon.
        +   * 
        + * + * + * .google.container.v1beta1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.container.v1beta1.RayOperatorConfigOrBuilder getRayOperatorConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java index 77b571b1154e..edd555ec238a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the approximate start time for the upgrades, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The autoUpgradeStartTime. */ @@ -98,12 +98,12 @@ public java.lang.String getAutoUpgradeStartTime() { * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the approximate start time for the upgrades, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for autoUpgradeStartTime. */ @@ -128,11 +128,11 @@ public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the description of the upgrade.
            * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The description. */ @@ -152,11 +152,11 @@ public java.lang.String getDescription() { * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the description of the upgrade.
            * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for description. */ @@ -545,12 +545,12 @@ public Builder mergeFrom( * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the approximate start time for the upgrades, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The autoUpgradeStartTime. */ @@ -569,12 +569,12 @@ public java.lang.String getAutoUpgradeStartTime() { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the approximate start time for the upgrades, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for autoUpgradeStartTime. */ @@ -593,12 +593,12 @@ public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the approximate start time for the upgrades, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The autoUpgradeStartTime to set. * @return This builder for chaining. @@ -616,12 +616,12 @@ public Builder setAutoUpgradeStartTime(java.lang.String value) { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the approximate start time for the upgrades, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -635,12 +635,12 @@ public Builder clearAutoUpgradeStartTime() { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the approximate start time for the upgrades, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for autoUpgradeStartTime to set. * @return This builder for chaining. @@ -661,11 +661,11 @@ public Builder setAutoUpgradeStartTimeBytes(com.google.protobuf.ByteString value * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the description of the upgrade.
              * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The description. */ @@ -684,11 +684,11 @@ public java.lang.String getDescription() { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the description of the upgrade.
              * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for description. */ @@ -707,11 +707,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the description of the upgrade.
              * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The description to set. * @return This builder for chaining. @@ -729,11 +729,11 @@ public Builder setDescription(java.lang.String value) { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the description of the upgrade.
              * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -747,11 +747,11 @@ public Builder clearDescription() { * * *
        -     * [Output only] This field is set when upgrades are about to commence
        +     * Output only. This field is set when upgrades are about to commence
              * with the description of the upgrade.
              * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for description to set. * @return This builder for chaining. diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java index 2009f5894dfd..36823a659e12 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java @@ -28,12 +28,12 @@ public interface AutoUpgradeOptionsOrBuilder * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the approximate start time for the upgrades, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The autoUpgradeStartTime. */ @@ -42,12 +42,12 @@ public interface AutoUpgradeOptionsOrBuilder * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the approximate start time for the upgrades, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string auto_upgrade_start_time = 1; + * string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for autoUpgradeStartTime. */ @@ -57,11 +57,11 @@ public interface AutoUpgradeOptionsOrBuilder * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the description of the upgrade.
            * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The description. */ @@ -70,11 +70,11 @@ public interface AutoUpgradeOptionsOrBuilder * * *
        -   * [Output only] This field is set when upgrades are about to commence
        +   * Output only. This field is set when upgrades are about to commence
            * with the description of the upgrade.
            * 
        * - * string description = 2; + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for description. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java index ad0f4617e0bd..a1361c737157 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java @@ -371,7 +371,7 @@ public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuild * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4590 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4620 * @return The minCpuPlatform. */ @java.lang.Override @@ -407,7 +407,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4590 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4620 * @return The bytes for minCpuPlatform. */ @java.lang.Override @@ -2169,7 +2169,7 @@ public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuild * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4590 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4620 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -2204,7 +2204,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4590 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4620 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated @@ -2239,7 +2239,7 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4590 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4620 * @param value The minCpuPlatform to set. * @return This builder for chaining. */ @@ -2273,7 +2273,7 @@ public Builder setMinCpuPlatform(java.lang.String value) { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4590 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4620 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2303,7 +2303,7 @@ public Builder clearMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4590 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4620 * @param value The bytes for minCpuPlatform to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java index c6bc8e907168..63d08d7ae388 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -250,7 +250,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4590 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4620 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -275,7 +275,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4590 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4620 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java index edc38a929ec9..69370789be1c 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java @@ -1012,7 +1012,7 @@ public com.google.protobuf.Parser getParserForType() { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1904 + * google/container/v1beta1/cluster_service.proto;l=1924 * @return The enabled. */ @java.lang.Override @@ -1600,7 +1600,7 @@ public Builder mergeFrom( * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1904 + * google/container/v1beta1/cluster_service.proto;l=1924 * @return The enabled. */ @java.lang.Override @@ -1620,7 +1620,7 @@ public boolean getEnabled() { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1904 + * google/container/v1beta1/cluster_service.proto;l=1924 * @param value The enabled to set. * @return This builder for chaining. */ @@ -1644,7 +1644,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1904 + * google/container/v1beta1/cluster_service.proto;l=1924 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java index 7f258767e3a9..b8c126ef0569 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java @@ -36,7 +36,7 @@ public interface BinaryAuthorizationOrBuilder * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1904 + * google/container/v1beta1/cluster_service.proto;l=1924 * @return The enabled. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java index b829ecc440a6..9819fb687bbb 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3680 + * google/container/v1beta1/cluster_service.proto;l=3707 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3680 + * google/container/v1beta1/cluster_service.proto;l=3707 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3687 + * google/container/v1beta1/cluster_service.proto;l=3714 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3687 + * google/container/v1beta1/cluster_service.proto;l=3714 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3718 * @return The operationId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getOperationId() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3718 * @return The bytes for operationId. */ @java.lang.Override @@ -734,7 +734,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3680 + * google/container/v1beta1/cluster_service.proto;l=3707 * @return The projectId. */ @java.lang.Deprecated @@ -762,7 +762,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3680 + * google/container/v1beta1/cluster_service.proto;l=3707 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -790,7 +790,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3680 + * google/container/v1beta1/cluster_service.proto;l=3707 * @param value The projectId to set. * @return This builder for chaining. */ @@ -817,7 +817,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3680 + * google/container/v1beta1/cluster_service.proto;l=3707 * @return This builder for chaining. */ @java.lang.Deprecated @@ -840,7 +840,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3680 + * google/container/v1beta1/cluster_service.proto;l=3707 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -870,7 +870,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3687 + * google/container/v1beta1/cluster_service.proto;l=3714 * @return The zone. */ @java.lang.Deprecated @@ -898,7 +898,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3687 + * google/container/v1beta1/cluster_service.proto;l=3714 * @return The bytes for zone. */ @java.lang.Deprecated @@ -926,7 +926,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3687 + * google/container/v1beta1/cluster_service.proto;l=3714 * @param value The zone to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3687 + * google/container/v1beta1/cluster_service.proto;l=3714 * @return This builder for chaining. */ @java.lang.Deprecated @@ -976,7 +976,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3687 + * google/container/v1beta1/cluster_service.proto;l=3714 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1005,7 +1005,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3718 * @return The operationId. */ @java.lang.Deprecated @@ -1032,7 +1032,7 @@ public java.lang.String getOperationId() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3718 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1059,7 +1059,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3718 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1085,7 +1085,7 @@ public Builder setOperationId(java.lang.String value) { * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3718 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1107,7 +1107,7 @@ public Builder clearOperationId() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3718 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java index 2a3085d0d199..af37195ec53d 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface CancelOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3680 + * google/container/v1beta1/cluster_service.proto;l=3707 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface CancelOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3680 + * google/container/v1beta1/cluster_service.proto;l=3707 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3687 + * google/container/v1beta1/cluster_service.proto;l=3714 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3687 + * google/container/v1beta1/cluster_service.proto;l=3714 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface CancelOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3718 * @return The operationId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface CancelOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3718 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java index 82e15131c4d5..8784c2739f55 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java @@ -494,7 +494,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2007 + * google/container/v1beta1/cluster_service.proto;l=2027 * @return The initialNodeCount. */ @java.lang.Override @@ -525,7 +525,7 @@ public int getInitialNodeCount() { * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2020 + * google/container/v1beta1/cluster_service.proto;l=2040 * @return Whether the nodeConfig field is set. */ @java.lang.Override @@ -553,7 +553,7 @@ public boolean hasNodeConfig() { * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2020 + * google/container/v1beta1/cluster_service.proto;l=2040 * @return The nodeConfig. */ @java.lang.Override @@ -1911,7 +1911,7 @@ public com.google.container.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBui * bool private_cluster = 28 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2145 + * google/container/v1beta1/cluster_service.proto;l=2165 * @return The privateCluster. */ @java.lang.Override @@ -1938,7 +1938,7 @@ public boolean getPrivateCluster() { * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 + * google/container/v1beta1/cluster_service.proto;l=2172 * @return The masterIpv4CidrBlock. */ @java.lang.Override @@ -1968,7 +1968,7 @@ public java.lang.String getMasterIpv4CidrBlock() { * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 + * google/container/v1beta1/cluster_service.proto;l=2172 * @return The bytes for masterIpv4CidrBlock. */ @java.lang.Override @@ -2894,10 +2894,10 @@ public com.google.container.v1beta1.IdentityServiceConfig getIdentityServiceConf * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -2917,10 +2917,10 @@ public java.lang.String getSelfLink() { * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -2945,15 +2945,15 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * cluster resides. This field is deprecated, use location instead.
            * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2223 + * google/container/v1beta1/cluster_service.proto;l=2243 * @return The zone. */ @java.lang.Override @@ -2973,15 +2973,15 @@ public java.lang.String getZone() { * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * cluster resides. This field is deprecated, use location instead.
            * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2223 + * google/container/v1beta1/cluster_service.proto;l=2243 * @return The bytes for zone. */ @java.lang.Override @@ -3006,7 +3006,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
        -   * [Output only] The IP address of this cluster's master endpoint.
        +   * Output only. The IP address of this cluster's master endpoint.
            * The endpoint can be accessed from the internet at
            * `https://username:password@endpoint/`.
            *
        @@ -3014,7 +3014,7 @@ public com.google.protobuf.ByteString getZoneBytes() {
            * password information.
            * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The endpoint. */ @@ -3034,7 +3034,7 @@ public java.lang.String getEndpoint() { * * *
        -   * [Output only] The IP address of this cluster's master endpoint.
        +   * Output only. The IP address of this cluster's master endpoint.
            * The endpoint can be accessed from the internet at
            * `https://username:password@endpoint/`.
            *
        @@ -3042,7 +3042,7 @@ public java.lang.String getEndpoint() {
            * password information.
            * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for endpoint. */ @@ -3142,10 +3142,10 @@ public com.google.protobuf.ByteString getInitialClusterVersionBytes() { * * *
        -   * [Output only] The current software version of the master endpoint.
        +   * Output only. The current software version of the master endpoint.
            * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The currentMasterVersion. */ @@ -3165,10 +3165,10 @@ public java.lang.String getCurrentMasterVersion() { * * *
        -   * [Output only] The current software version of the master endpoint.
        +   * Output only. The current software version of the master endpoint.
            * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for currentMasterVersion. */ @@ -3193,17 +3193,19 @@ public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { * * *
        -   * [Output only] Deprecated, use
        +   * Output only. Deprecated, use
            * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
            * instead. The current version of the node software components.
            * If they are currently at multiple versions because they're in the process
            * of being upgraded, this reflects the minimum version of all nodes.
            * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2256 + * google/container/v1beta1/cluster_service.proto;l=2278 * @return The currentNodeVersion. */ @java.lang.Override @@ -3223,17 +3225,19 @@ public java.lang.String getCurrentNodeVersion() { * * *
        -   * [Output only] Deprecated, use
        +   * Output only. Deprecated, use
            * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
            * instead. The current version of the node software components.
            * If they are currently at multiple versions because they're in the process
            * of being upgraded, this reflects the minimum version of all nodes.
            * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2256 + * google/container/v1beta1/cluster_service.proto;l=2278 * @return The bytes for currentNodeVersion. */ @java.lang.Override @@ -3258,11 +3262,11 @@ public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { * * *
        -   * [Output only] The time the cluster was created, in
        +   * Output only. The time the cluster was created, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The createTime. */ @@ -3282,11 +3286,11 @@ public java.lang.String getCreateTime() { * * *
        -   * [Output only] The time the cluster was created, in
        +   * Output only. The time the cluster was created, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for createTime. */ @@ -3309,10 +3313,12 @@ public com.google.protobuf.ByteString getCreateTimeBytes() { * * *
        -   * [Output only] The current status of this cluster.
        +   * Output only. The current status of this cluster.
            * 
        * - * .google.container.v1beta1.Cluster.Status status = 107; + * + * .google.container.v1beta1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -3324,10 +3330,12 @@ public int getStatusValue() { * * *
        -   * [Output only] The current status of this cluster.
        +   * Output only. The current status of this cluster.
            * 
        * - * .google.container.v1beta1.Cluster.Status status = 107; + * + * .google.container.v1beta1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -3346,15 +3354,17 @@ public com.google.container.v1beta1.Cluster.Status getStatus() { * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * cluster, if available.
            * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2268 + * google/container/v1beta1/cluster_service.proto;l=2291 * @return The statusMessage. */ @java.lang.Override @@ -3374,15 +3384,17 @@ public java.lang.String getStatusMessage() { * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * cluster, if available.
            * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2268 + * google/container/v1beta1/cluster_service.proto;l=2291 * @return The bytes for statusMessage. */ @java.lang.Override @@ -3405,13 +3417,13 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
        -   * [Output only] The size of the address space on each node for hosting
        +   * Output only. The size of the address space on each node for hosting
            * containers. This is provisioned from within the `container_ipv4_cidr`
            * range. This field will only be set when cluster is in route-based network
            * mode.
            * 
        * - * int32 node_ipv4_cidr_size = 109; + * int32 node_ipv4_cidr_size = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The nodeIpv4CidrSize. */ @@ -3428,14 +3440,14 @@ public int getNodeIpv4CidrSize() { * * *
        -   * [Output only] The IP address range of the Kubernetes services in
        +   * Output only. The IP address range of the Kubernetes services in
            * this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`). Service addresses are
            * typically put in the last `/16` from the container CIDR.
            * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servicesIpv4Cidr. */ @@ -3455,14 +3467,14 @@ public java.lang.String getServicesIpv4Cidr() { * * *
        -   * [Output only] The IP address range of the Kubernetes services in
        +   * Output only. The IP address range of the Kubernetes services in
            * this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`). Service addresses are
            * typically put in the last `/16` from the container CIDR.
            * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for servicesIpv4Cidr. */ @@ -3488,13 +3500,15 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -3505,13 +3519,15 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -3522,13 +3538,15 @@ public int getInstanceGroupUrlsCount() { * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -3540,13 +3558,15 @@ public java.lang.String getInstanceGroupUrls(int index) { * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -3561,14 +3581,16 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * *
        -   * [Output only]  The number of nodes currently in the cluster. Deprecated.
        +   * Output only. The number of nodes currently in the cluster. Deprecated.
            * Call Kubernetes API directly to retrieve node information.
            * 
        * - * int32 current_node_count = 112 [deprecated = true]; + * + * int32 current_node_count = 112 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2288 + * google/container/v1beta1/cluster_service.proto;l=2313 * @return The currentNodeCount. */ @java.lang.Override @@ -3585,11 +3607,11 @@ public int getCurrentNodeCount() { * * *
        -   * [Output only] The time the cluster will be automatically
        +   * Output only. The time the cluster will be automatically
            * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The expireTime. */ @@ -3609,11 +3631,11 @@ public java.lang.String getExpireTime() { * * *
        -   * [Output only] The time the cluster will be automatically
        +   * Output only. The time the cluster will be automatically
            * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for expireTime. */ @@ -3638,14 +3660,14 @@ public com.google.protobuf.ByteString getExpireTimeBytes() { * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The location. */ @@ -3665,14 +3687,14 @@ public java.lang.String getLocation() { * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for location. */ @@ -3716,12 +3738,12 @@ public boolean getEnableTpu() { * * *
        -   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +   * Output only. The IP address range of the Cloud TPUs in this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`).
            * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The tpuIpv4CidrBlock. */ @@ -3741,12 +3763,12 @@ public java.lang.String getTpuIpv4CidrBlock() { * * *
        -   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +   * Output only. The IP address range of the Cloud TPUs in this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`).
            * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for tpuIpv4CidrBlock. */ @@ -4252,7 +4274,7 @@ public com.google.container.v1beta1.NodePoolAutoConfigOrBuilder getNodePoolAutoC * * * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2341 + * google/container/v1beta1/cluster_service.proto;l=2367 * @return Whether the protectConfig field is set. */ @java.lang.Override @@ -4273,7 +4295,7 @@ public boolean hasProtectConfig() { * * * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2341 + * google/container/v1beta1/cluster_service.proto;l=2367 * @return The protectConfig. */ @java.lang.Override @@ -7875,7 +7897,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2007 + * google/container/v1beta1/cluster_service.proto;l=2027 * @return The initialNodeCount. */ @java.lang.Override @@ -7902,7 +7924,7 @@ public int getInitialNodeCount() { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2007 + * google/container/v1beta1/cluster_service.proto;l=2027 * @param value The initialNodeCount to set. * @return This builder for chaining. */ @@ -7933,7 +7955,7 @@ public Builder setInitialNodeCount(int value) { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2007 + * google/container/v1beta1/cluster_service.proto;l=2027 * @return This builder for chaining. */ @java.lang.Deprecated @@ -7970,7 +7992,7 @@ public Builder clearInitialNodeCount() { * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2020 + * google/container/v1beta1/cluster_service.proto;l=2040 * @return Whether the nodeConfig field is set. */ @java.lang.Deprecated @@ -7997,7 +8019,7 @@ public boolean hasNodeConfig() { * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2020 + * google/container/v1beta1/cluster_service.proto;l=2040 * @return The nodeConfig. */ @java.lang.Deprecated @@ -12236,7 +12258,7 @@ public com.google.container.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBui * bool private_cluster = 28 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2145 + * google/container/v1beta1/cluster_service.proto;l=2165 * @return The privateCluster. */ @java.lang.Override @@ -12258,7 +12280,7 @@ public boolean getPrivateCluster() { * bool private_cluster = 28 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2145 + * google/container/v1beta1/cluster_service.proto;l=2165 * @param value The privateCluster to set. * @return This builder for chaining. */ @@ -12284,7 +12306,7 @@ public Builder setPrivateCluster(boolean value) { * bool private_cluster = 28 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2145 + * google/container/v1beta1/cluster_service.proto;l=2165 * @return This builder for chaining. */ @java.lang.Deprecated @@ -12310,7 +12332,7 @@ public Builder clearPrivateCluster() { * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 + * google/container/v1beta1/cluster_service.proto;l=2172 * @return The masterIpv4CidrBlock. */ @java.lang.Deprecated @@ -12339,7 +12361,7 @@ public java.lang.String getMasterIpv4CidrBlock() { * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 + * google/container/v1beta1/cluster_service.proto;l=2172 * @return The bytes for masterIpv4CidrBlock. */ @java.lang.Deprecated @@ -12368,7 +12390,7 @@ public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 + * google/container/v1beta1/cluster_service.proto;l=2172 * @param value The masterIpv4CidrBlock to set. * @return This builder for chaining. */ @@ -12396,7 +12418,7 @@ public Builder setMasterIpv4CidrBlock(java.lang.String value) { * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 + * google/container/v1beta1/cluster_service.proto;l=2172 * @return This builder for chaining. */ @java.lang.Deprecated @@ -12420,7 +12442,7 @@ public Builder clearMasterIpv4CidrBlock() { * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 + * google/container/v1beta1/cluster_service.proto;l=2172 * @param value The bytes for masterIpv4CidrBlock to set. * @return This builder for chaining. */ @@ -15781,10 +15803,10 @@ public Builder clearIdentityServiceConfig() { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -15803,10 +15825,10 @@ public java.lang.String getSelfLink() { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -15825,10 +15847,10 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The selfLink to set. * @return This builder for chaining. @@ -15846,10 +15868,10 @@ public Builder setSelfLink(java.lang.String value) { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -15863,10 +15885,10 @@ public Builder clearSelfLink() { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for selfLink to set. * @return This builder for chaining. @@ -15887,15 +15909,16 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * cluster resides. This field is deprecated, use location instead.
              * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2223 + * google/container/v1beta1/cluster_service.proto;l=2243 * @return The zone. */ @java.lang.Deprecated @@ -15914,15 +15937,16 @@ public java.lang.String getZone() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * cluster resides. This field is deprecated, use location instead.
              * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2223 + * google/container/v1beta1/cluster_service.proto;l=2243 * @return The bytes for zone. */ @java.lang.Deprecated @@ -15941,15 +15965,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * cluster resides. This field is deprecated, use location instead.
              * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2223 + * google/container/v1beta1/cluster_service.proto;l=2243 * @param value The zone to set. * @return This builder for chaining. */ @@ -15967,15 +15992,16 @@ public Builder setZone(java.lang.String value) { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * cluster resides. This field is deprecated, use location instead.
              * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2223 + * google/container/v1beta1/cluster_service.proto;l=2243 * @return This builder for chaining. */ @java.lang.Deprecated @@ -15989,15 +16015,16 @@ public Builder clearZone() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * cluster resides. This field is deprecated, use location instead.
              * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2223 + * google/container/v1beta1/cluster_service.proto;l=2243 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -16018,7 +16045,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The IP address of this cluster's master endpoint.
        +     * Output only. The IP address of this cluster's master endpoint.
              * The endpoint can be accessed from the internet at
              * `https://username:password@endpoint/`.
              *
        @@ -16026,7 +16053,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) {
              * password information.
              * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The endpoint. */ @@ -16045,7 +16072,7 @@ public java.lang.String getEndpoint() { * * *
        -     * [Output only] The IP address of this cluster's master endpoint.
        +     * Output only. The IP address of this cluster's master endpoint.
              * The endpoint can be accessed from the internet at
              * `https://username:password@endpoint/`.
              *
        @@ -16053,7 +16080,7 @@ public java.lang.String getEndpoint() {
              * password information.
              * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for endpoint. */ @@ -16072,7 +16099,7 @@ public com.google.protobuf.ByteString getEndpointBytes() { * * *
        -     * [Output only] The IP address of this cluster's master endpoint.
        +     * Output only. The IP address of this cluster's master endpoint.
              * The endpoint can be accessed from the internet at
              * `https://username:password@endpoint/`.
              *
        @@ -16080,7 +16107,7 @@ public com.google.protobuf.ByteString getEndpointBytes() {
              * password information.
              * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The endpoint to set. * @return This builder for chaining. @@ -16098,7 +16125,7 @@ public Builder setEndpoint(java.lang.String value) { * * *
        -     * [Output only] The IP address of this cluster's master endpoint.
        +     * Output only. The IP address of this cluster's master endpoint.
              * The endpoint can be accessed from the internet at
              * `https://username:password@endpoint/`.
              *
        @@ -16106,7 +16133,7 @@ public Builder setEndpoint(java.lang.String value) {
              * password information.
              * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -16120,7 +16147,7 @@ public Builder clearEndpoint() { * * *
        -     * [Output only] The IP address of this cluster's master endpoint.
        +     * Output only. The IP address of this cluster's master endpoint.
              * The endpoint can be accessed from the internet at
              * `https://username:password@endpoint/`.
              *
        @@ -16128,7 +16155,7 @@ public Builder clearEndpoint() {
              * password information.
              * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for endpoint to set. * @return This builder for chaining. @@ -16315,10 +16342,11 @@ public Builder setInitialClusterVersionBytes(com.google.protobuf.ByteString valu * * *
        -     * [Output only] The current software version of the master endpoint.
        +     * Output only. The current software version of the master endpoint.
              * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The currentMasterVersion. */ @@ -16337,10 +16365,11 @@ public java.lang.String getCurrentMasterVersion() { * * *
        -     * [Output only] The current software version of the master endpoint.
        +     * Output only. The current software version of the master endpoint.
              * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for currentMasterVersion. */ @@ -16359,10 +16388,11 @@ public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { * * *
        -     * [Output only] The current software version of the master endpoint.
        +     * Output only. The current software version of the master endpoint.
              * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The currentMasterVersion to set. * @return This builder for chaining. @@ -16380,10 +16410,11 @@ public Builder setCurrentMasterVersion(java.lang.String value) { * * *
        -     * [Output only] The current software version of the master endpoint.
        +     * Output only. The current software version of the master endpoint.
              * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -16397,10 +16428,11 @@ public Builder clearCurrentMasterVersion() { * * *
        -     * [Output only] The current software version of the master endpoint.
        +     * Output only. The current software version of the master endpoint.
              * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes for currentMasterVersion to set. * @return This builder for chaining. @@ -16421,17 +16453,19 @@ public Builder setCurrentMasterVersionBytes(com.google.protobuf.ByteString value * * *
        -     * [Output only] Deprecated, use
        +     * Output only. Deprecated, use
              * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
              * instead. The current version of the node software components.
              * If they are currently at multiple versions because they're in the process
              * of being upgraded, this reflects the minimum version of all nodes.
              * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2256 + * google/container/v1beta1/cluster_service.proto;l=2278 * @return The currentNodeVersion. */ @java.lang.Deprecated @@ -16450,17 +16484,19 @@ public java.lang.String getCurrentNodeVersion() { * * *
        -     * [Output only] Deprecated, use
        +     * Output only. Deprecated, use
              * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
              * instead. The current version of the node software components.
              * If they are currently at multiple versions because they're in the process
              * of being upgraded, this reflects the minimum version of all nodes.
              * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2256 + * google/container/v1beta1/cluster_service.proto;l=2278 * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated @@ -16479,17 +16515,19 @@ public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { * * *
        -     * [Output only] Deprecated, use
        +     * Output only. Deprecated, use
              * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
              * instead. The current version of the node software components.
              * If they are currently at multiple versions because they're in the process
              * of being upgraded, this reflects the minimum version of all nodes.
              * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2256 + * google/container/v1beta1/cluster_service.proto;l=2278 * @param value The currentNodeVersion to set. * @return This builder for chaining. */ @@ -16507,17 +16545,19 @@ public Builder setCurrentNodeVersion(java.lang.String value) { * * *
        -     * [Output only] Deprecated, use
        +     * Output only. Deprecated, use
              * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
              * instead. The current version of the node software components.
              * If they are currently at multiple versions because they're in the process
              * of being upgraded, this reflects the minimum version of all nodes.
              * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2256 + * google/container/v1beta1/cluster_service.proto;l=2278 * @return This builder for chaining. */ @java.lang.Deprecated @@ -16531,17 +16571,19 @@ public Builder clearCurrentNodeVersion() { * * *
        -     * [Output only] Deprecated, use
        +     * Output only. Deprecated, use
              * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
              * instead. The current version of the node software components.
              * If they are currently at multiple versions because they're in the process
              * of being upgraded, this reflects the minimum version of all nodes.
              * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2256 + * google/container/v1beta1/cluster_service.proto;l=2278 * @param value The bytes for currentNodeVersion to set. * @return This builder for chaining. */ @@ -16562,11 +16604,11 @@ public Builder setCurrentNodeVersionBytes(com.google.protobuf.ByteString value) * * *
        -     * [Output only] The time the cluster was created, in
        +     * Output only. The time the cluster was created, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The createTime. */ @@ -16585,11 +16627,11 @@ public java.lang.String getCreateTime() { * * *
        -     * [Output only] The time the cluster was created, in
        +     * Output only. The time the cluster was created, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for createTime. */ @@ -16608,11 +16650,11 @@ public com.google.protobuf.ByteString getCreateTimeBytes() { * * *
        -     * [Output only] The time the cluster was created, in
        +     * Output only. The time the cluster was created, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The createTime to set. * @return This builder for chaining. @@ -16630,11 +16672,11 @@ public Builder setCreateTime(java.lang.String value) { * * *
        -     * [Output only] The time the cluster was created, in
        +     * Output only. The time the cluster was created, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -16648,11 +16690,11 @@ public Builder clearCreateTime() { * * *
        -     * [Output only] The time the cluster was created, in
        +     * Output only. The time the cluster was created, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for createTime to set. * @return This builder for chaining. @@ -16673,10 +16715,12 @@ public Builder setCreateTimeBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The current status of this cluster.
        +     * Output only. The current status of this cluster.
              * 
        * - * .google.container.v1beta1.Cluster.Status status = 107; + * + * .google.container.v1beta1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -16688,10 +16732,12 @@ public int getStatusValue() { * * *
        -     * [Output only] The current status of this cluster.
        +     * Output only. The current status of this cluster.
              * 
        * - * .google.container.v1beta1.Cluster.Status status = 107; + * + * .google.container.v1beta1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. @@ -16706,10 +16752,12 @@ public Builder setStatusValue(int value) { * * *
        -     * [Output only] The current status of this cluster.
        +     * Output only. The current status of this cluster.
              * 
        * - * .google.container.v1beta1.Cluster.Status status = 107; + * + * .google.container.v1beta1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -16723,10 +16771,12 @@ public com.google.container.v1beta1.Cluster.Status getStatus() { * * *
        -     * [Output only] The current status of this cluster.
        +     * Output only. The current status of this cluster.
              * 
        * - * .google.container.v1beta1.Cluster.Status status = 107; + * + * .google.container.v1beta1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The status to set. * @return This builder for chaining. @@ -16744,10 +16794,12 @@ public Builder setStatus(com.google.container.v1beta1.Cluster.Status value) { * * *
        -     * [Output only] The current status of this cluster.
        +     * Output only. The current status of this cluster.
              * 
        * - * .google.container.v1beta1.Cluster.Status status = 107; + * + * .google.container.v1beta1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -16763,15 +16815,17 @@ public Builder clearStatus() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * cluster, if available.
              * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2268 + * google/container/v1beta1/cluster_service.proto;l=2291 * @return The statusMessage. */ @java.lang.Deprecated @@ -16790,15 +16844,17 @@ public java.lang.String getStatusMessage() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * cluster, if available.
              * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2268 + * google/container/v1beta1/cluster_service.proto;l=2291 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -16817,15 +16873,17 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * cluster, if available.
              * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2268 + * google/container/v1beta1/cluster_service.proto;l=2291 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -16843,15 +16901,17 @@ public Builder setStatusMessage(java.lang.String value) { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * cluster, if available.
              * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2268 + * google/container/v1beta1/cluster_service.proto;l=2291 * @return This builder for chaining. */ @java.lang.Deprecated @@ -16865,15 +16925,17 @@ public Builder clearStatusMessage() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * cluster, if available.
              * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2268 + * google/container/v1beta1/cluster_service.proto;l=2291 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ @@ -16894,13 +16956,13 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The size of the address space on each node for hosting
        +     * Output only. The size of the address space on each node for hosting
              * containers. This is provisioned from within the `container_ipv4_cidr`
              * range. This field will only be set when cluster is in route-based network
              * mode.
              * 
        * - * int32 node_ipv4_cidr_size = 109; + * int32 node_ipv4_cidr_size = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The nodeIpv4CidrSize. */ @@ -16912,13 +16974,13 @@ public int getNodeIpv4CidrSize() { * * *
        -     * [Output only] The size of the address space on each node for hosting
        +     * Output only. The size of the address space on each node for hosting
              * containers. This is provisioned from within the `container_ipv4_cidr`
              * range. This field will only be set when cluster is in route-based network
              * mode.
              * 
        * - * int32 node_ipv4_cidr_size = 109; + * int32 node_ipv4_cidr_size = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The nodeIpv4CidrSize to set. * @return This builder for chaining. @@ -16934,13 +16996,13 @@ public Builder setNodeIpv4CidrSize(int value) { * * *
        -     * [Output only] The size of the address space on each node for hosting
        +     * Output only. The size of the address space on each node for hosting
              * containers. This is provisioned from within the `container_ipv4_cidr`
              * range. This field will only be set when cluster is in route-based network
              * mode.
              * 
        * - * int32 node_ipv4_cidr_size = 109; + * int32 node_ipv4_cidr_size = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -16956,14 +17018,14 @@ public Builder clearNodeIpv4CidrSize() { * * *
        -     * [Output only] The IP address range of the Kubernetes services in
        +     * Output only. The IP address range of the Kubernetes services in
              * this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`). Service addresses are
              * typically put in the last `/16` from the container CIDR.
              * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servicesIpv4Cidr. */ @@ -16982,14 +17044,14 @@ public java.lang.String getServicesIpv4Cidr() { * * *
        -     * [Output only] The IP address range of the Kubernetes services in
        +     * Output only. The IP address range of the Kubernetes services in
              * this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`). Service addresses are
              * typically put in the last `/16` from the container CIDR.
              * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for servicesIpv4Cidr. */ @@ -17008,14 +17070,14 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * * *
        -     * [Output only] The IP address range of the Kubernetes services in
        +     * Output only. The IP address range of the Kubernetes services in
              * this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`). Service addresses are
              * typically put in the last `/16` from the container CIDR.
              * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The servicesIpv4Cidr to set. * @return This builder for chaining. @@ -17033,14 +17095,14 @@ public Builder setServicesIpv4Cidr(java.lang.String value) { * * *
        -     * [Output only] The IP address range of the Kubernetes services in
        +     * Output only. The IP address range of the Kubernetes services in
              * this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`). Service addresses are
              * typically put in the last `/16` from the container CIDR.
              * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -17054,14 +17116,14 @@ public Builder clearServicesIpv4Cidr() { * * *
        -     * [Output only] The IP address range of the Kubernetes services in
        +     * Output only. The IP address range of the Kubernetes services in
              * this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`). Service addresses are
              * typically put in the last `/16` from the container CIDR.
              * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for servicesIpv4Cidr to set. * @return This builder for chaining. @@ -17090,13 +17152,15 @@ private void ensureInstanceGroupUrlsIsMutable() { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -17108,13 +17172,15 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -17125,13 +17191,15 @@ public int getInstanceGroupUrlsCount() { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -17143,13 +17211,15 @@ public java.lang.String getInstanceGroupUrls(int index) { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -17161,13 +17231,15 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @param index The index to set the value at. * @param value The instanceGroupUrls to set. * @return This builder for chaining. @@ -17187,13 +17259,15 @@ public Builder setInstanceGroupUrls(int index, java.lang.String value) { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @param value The instanceGroupUrls to add. * @return This builder for chaining. */ @@ -17212,13 +17286,15 @@ public Builder addInstanceGroupUrls(java.lang.String value) { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @param values The instanceGroupUrls to add. * @return This builder for chaining. */ @@ -17234,13 +17310,15 @@ public Builder addAllInstanceGroupUrls(java.lang.Iterable valu * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @return This builder for chaining. */ @java.lang.Deprecated @@ -17255,13 +17333,15 @@ public Builder clearInstanceGroupUrls() { * * *
        -     * Deprecated. Use node_pools.instance_group_urls.
        +     * Output only. Deprecated. Use node_pools.instance_group_urls.
              * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @param value The bytes of the instanceGroupUrls to add. * @return This builder for chaining. */ @@ -17283,14 +17363,16 @@ public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only]  The number of nodes currently in the cluster. Deprecated.
        +     * Output only. The number of nodes currently in the cluster. Deprecated.
              * Call Kubernetes API directly to retrieve node information.
              * 
        * - * int32 current_node_count = 112 [deprecated = true]; + * + * int32 current_node_count = 112 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2288 + * google/container/v1beta1/cluster_service.proto;l=2313 * @return The currentNodeCount. */ @java.lang.Override @@ -17302,14 +17384,16 @@ public int getCurrentNodeCount() { * * *
        -     * [Output only]  The number of nodes currently in the cluster. Deprecated.
        +     * Output only. The number of nodes currently in the cluster. Deprecated.
              * Call Kubernetes API directly to retrieve node information.
              * 
        * - * int32 current_node_count = 112 [deprecated = true]; + * + * int32 current_node_count = 112 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2288 + * google/container/v1beta1/cluster_service.proto;l=2313 * @param value The currentNodeCount to set. * @return This builder for chaining. */ @@ -17325,14 +17409,16 @@ public Builder setCurrentNodeCount(int value) { * * *
        -     * [Output only]  The number of nodes currently in the cluster. Deprecated.
        +     * Output only. The number of nodes currently in the cluster. Deprecated.
              * Call Kubernetes API directly to retrieve node information.
              * 
        * - * int32 current_node_count = 112 [deprecated = true]; + * + * int32 current_node_count = 112 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2288 + * google/container/v1beta1/cluster_service.proto;l=2313 * @return This builder for chaining. */ @java.lang.Deprecated @@ -17348,11 +17434,11 @@ public Builder clearCurrentNodeCount() { * * *
        -     * [Output only] The time the cluster will be automatically
        +     * Output only. The time the cluster will be automatically
              * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The expireTime. */ @@ -17371,11 +17457,11 @@ public java.lang.String getExpireTime() { * * *
        -     * [Output only] The time the cluster will be automatically
        +     * Output only. The time the cluster will be automatically
              * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for expireTime. */ @@ -17394,11 +17480,11 @@ public com.google.protobuf.ByteString getExpireTimeBytes() { * * *
        -     * [Output only] The time the cluster will be automatically
        +     * Output only. The time the cluster will be automatically
              * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The expireTime to set. * @return This builder for chaining. @@ -17416,11 +17502,11 @@ public Builder setExpireTime(java.lang.String value) { * * *
        -     * [Output only] The time the cluster will be automatically
        +     * Output only. The time the cluster will be automatically
              * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -17434,11 +17520,11 @@ public Builder clearExpireTime() { * * *
        -     * [Output only] The time the cluster will be automatically
        +     * Output only. The time the cluster will be automatically
              * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for expireTime to set. * @return This builder for chaining. @@ -17459,14 +17545,14 @@ public Builder setExpireTimeBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The location. */ @@ -17485,14 +17571,14 @@ public java.lang.String getLocation() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for location. */ @@ -17511,14 +17597,14 @@ public com.google.protobuf.ByteString getLocationBytes() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The location to set. * @return This builder for chaining. @@ -17536,14 +17622,14 @@ public Builder setLocation(java.lang.String value) { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -17557,14 +17643,14 @@ public Builder clearLocation() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for location to set. * @return This builder for chaining. @@ -17641,12 +17727,12 @@ public Builder clearEnableTpu() { * * *
        -     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +     * Output only. The IP address range of the Cloud TPUs in this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`).
              * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The tpuIpv4CidrBlock. */ @@ -17665,12 +17751,12 @@ public java.lang.String getTpuIpv4CidrBlock() { * * *
        -     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +     * Output only. The IP address range of the Cloud TPUs in this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`).
              * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for tpuIpv4CidrBlock. */ @@ -17689,12 +17775,12 @@ public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { * * *
        -     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +     * Output only. The IP address range of the Cloud TPUs in this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`).
              * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The tpuIpv4CidrBlock to set. * @return This builder for chaining. @@ -17712,12 +17798,12 @@ public Builder setTpuIpv4CidrBlock(java.lang.String value) { * * *
        -     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +     * Output only. The IP address range of the Cloud TPUs in this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`).
              * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -17731,12 +17817,12 @@ public Builder clearTpuIpv4CidrBlock() { * * *
        -     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +     * Output only. The IP address range of the Cloud TPUs in this cluster, in
              * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
              * notation (e.g. `1.2.3.4/29`).
              * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for tpuIpv4CidrBlock to set. * @return This builder for chaining. @@ -19548,7 +19634,7 @@ public com.google.container.v1beta1.NodePoolAutoConfig.Builder getNodePoolAutoCo * * * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2341 + * google/container/v1beta1/cluster_service.proto;l=2367 * @return Whether the protectConfig field is set. */ @java.lang.Deprecated @@ -19568,7 +19654,7 @@ public boolean hasProtectConfig() { * * * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2341 + * google/container/v1beta1/cluster_service.proto;l=2367 * @return The protectConfig. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java index 4b2bccf81475..23520b8d0a3d 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java @@ -105,7 +105,7 @@ public interface ClusterOrBuilder * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2007 + * google/container/v1beta1/cluster_service.proto;l=2027 * @return The initialNodeCount. */ @java.lang.Deprecated @@ -131,7 +131,7 @@ public interface ClusterOrBuilder * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2020 + * google/container/v1beta1/cluster_service.proto;l=2040 * @return Whether the nodeConfig field is set. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface ClusterOrBuilder * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2020 + * google/container/v1beta1/cluster_service.proto;l=2040 * @return The nodeConfig. */ @java.lang.Deprecated @@ -1081,7 +1081,7 @@ java.lang.String getResourceLabelsOrDefault( * bool private_cluster = 28 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2145 + * google/container/v1beta1/cluster_service.proto;l=2165 * @return The privateCluster. */ @java.lang.Deprecated @@ -1101,7 +1101,7 @@ java.lang.String getResourceLabelsOrDefault( * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 + * google/container/v1beta1/cluster_service.proto;l=2172 * @return The masterIpv4CidrBlock. */ @java.lang.Deprecated @@ -1120,7 +1120,7 @@ java.lang.String getResourceLabelsOrDefault( * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 + * google/container/v1beta1/cluster_service.proto;l=2172 * @return The bytes for masterIpv4CidrBlock. */ @java.lang.Deprecated @@ -1769,10 +1769,10 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -1781,10 +1781,10 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -1794,15 +1794,15 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * cluster resides. This field is deprecated, use location instead.
            * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2223 + * google/container/v1beta1/cluster_service.proto;l=2243 * @return The zone. */ @java.lang.Deprecated @@ -1811,15 +1811,15 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * cluster resides. This field is deprecated, use location instead.
            * 
        * - * string zone = 101 [deprecated = true]; + * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2223 + * google/container/v1beta1/cluster_service.proto;l=2243 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1829,7 +1829,7 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The IP address of this cluster's master endpoint.
        +   * Output only. The IP address of this cluster's master endpoint.
            * The endpoint can be accessed from the internet at
            * `https://username:password@endpoint/`.
            *
        @@ -1837,7 +1837,7 @@ java.lang.String getResourceLabelsOrDefault(
            * password information.
            * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The endpoint. */ @@ -1846,7 +1846,7 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The IP address of this cluster's master endpoint.
        +   * Output only. The IP address of this cluster's master endpoint.
            * The endpoint can be accessed from the internet at
            * `https://username:password@endpoint/`.
            *
        @@ -1854,7 +1854,7 @@ java.lang.String getResourceLabelsOrDefault(
            * password information.
            * 
        * - * string endpoint = 102; + * string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for endpoint. */ @@ -1913,10 +1913,10 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The current software version of the master endpoint.
        +   * Output only. The current software version of the master endpoint.
            * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The currentMasterVersion. */ @@ -1925,10 +1925,10 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The current software version of the master endpoint.
        +   * Output only. The current software version of the master endpoint.
            * 
        * - * string current_master_version = 104; + * string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for currentMasterVersion. */ @@ -1938,17 +1938,19 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] Deprecated, use
        +   * Output only. Deprecated, use
            * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
            * instead. The current version of the node software components.
            * If they are currently at multiple versions because they're in the process
            * of being upgraded, this reflects the minimum version of all nodes.
            * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2256 + * google/container/v1beta1/cluster_service.proto;l=2278 * @return The currentNodeVersion. */ @java.lang.Deprecated @@ -1957,17 +1959,19 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] Deprecated, use
        +   * Output only. Deprecated, use
            * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
            * instead. The current version of the node software components.
            * If they are currently at multiple versions because they're in the process
            * of being upgraded, this reflects the minimum version of all nodes.
            * 
        * - * string current_node_version = 105 [deprecated = true]; + * + * string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2256 + * google/container/v1beta1/cluster_service.proto;l=2278 * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated @@ -1977,11 +1981,11 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The time the cluster was created, in
        +   * Output only. The time the cluster was created, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The createTime. */ @@ -1990,11 +1994,11 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The time the cluster was created, in
        +   * Output only. The time the cluster was created, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string create_time = 106; + * string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for createTime. */ @@ -2004,10 +2008,12 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The current status of this cluster.
        +   * Output only. The current status of this cluster.
            * 
        * - * .google.container.v1beta1.Cluster.Status status = 107; + * + * .google.container.v1beta1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -2016,10 +2022,12 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The current status of this cluster.
        +   * Output only. The current status of this cluster.
            * 
        * - * .google.container.v1beta1.Cluster.Status status = 107; + * + * .google.container.v1beta1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -2029,15 +2037,17 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * cluster, if available.
            * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2268 + * google/container/v1beta1/cluster_service.proto;l=2291 * @return The statusMessage. */ @java.lang.Deprecated @@ -2046,15 +2056,17 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * cluster, if available.
            * 
        * - * string status_message = 108 [deprecated = true]; + * + * string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2268 + * google/container/v1beta1/cluster_service.proto;l=2291 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -2064,13 +2076,13 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The size of the address space on each node for hosting
        +   * Output only. The size of the address space on each node for hosting
            * containers. This is provisioned from within the `container_ipv4_cidr`
            * range. This field will only be set when cluster is in route-based network
            * mode.
            * 
        * - * int32 node_ipv4_cidr_size = 109; + * int32 node_ipv4_cidr_size = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The nodeIpv4CidrSize. */ @@ -2080,14 +2092,14 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The IP address range of the Kubernetes services in
        +   * Output only. The IP address range of the Kubernetes services in
            * this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`). Service addresses are
            * typically put in the last `/16` from the container CIDR.
            * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The servicesIpv4Cidr. */ @@ -2096,14 +2108,14 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The IP address range of the Kubernetes services in
        +   * Output only. The IP address range of the Kubernetes services in
            * this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`). Service addresses are
            * typically put in the last `/16` from the container CIDR.
            * 
        * - * string services_ipv4_cidr = 110; + * string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for servicesIpv4Cidr. */ @@ -2113,13 +2125,15 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -2128,13 +2142,15 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -2143,13 +2159,15 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -2159,13 +2177,15 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * Deprecated. Use node_pools.instance_group_urls.
        +   * Output only. Deprecated. Use node_pools.instance_group_urls.
            * 
        * - * repeated string instance_group_urls = 111 [deprecated = true]; + * + * repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2284 + * google/container/v1beta1/cluster_service.proto;l=2308 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -2176,14 +2196,16 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only]  The number of nodes currently in the cluster. Deprecated.
        +   * Output only. The number of nodes currently in the cluster. Deprecated.
            * Call Kubernetes API directly to retrieve node information.
            * 
        * - * int32 current_node_count = 112 [deprecated = true]; + * + * int32 current_node_count = 112 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2288 + * google/container/v1beta1/cluster_service.proto;l=2313 * @return The currentNodeCount. */ @java.lang.Deprecated @@ -2193,11 +2215,11 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The time the cluster will be automatically
        +   * Output only. The time the cluster will be automatically
            * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The expireTime. */ @@ -2206,11 +2228,11 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The time the cluster will be automatically
        +   * Output only. The time the cluster will be automatically
            * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string expire_time = 113; + * string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for expireTime. */ @@ -2220,14 +2242,14 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The location. */ @@ -2236,14 +2258,14 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 114; + * string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for location. */ @@ -2267,12 +2289,12 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +   * Output only. The IP address range of the Cloud TPUs in this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`).
            * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The tpuIpv4CidrBlock. */ @@ -2281,12 +2303,12 @@ java.lang.String getResourceLabelsOrDefault( * * *
        -   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
        +   * Output only. The IP address range of the Cloud TPUs in this cluster, in
            * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
            * notation (e.g. `1.2.3.4/29`).
            * 
        * - * string tpu_ipv4_cidr_block = 116; + * string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for tpuIpv4CidrBlock. */ @@ -2633,7 +2655,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2341 + * google/container/v1beta1/cluster_service.proto;l=2367 * @return Whether the protectConfig field is set. */ @java.lang.Deprecated @@ -2651,7 +2673,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2341 + * google/container/v1beta1/cluster_service.proto;l=2367 * @return The protectConfig. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java index 6117cc0f1241..93be4399a1d2 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java @@ -232,6 +232,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1beta1_GcsFuseCsiDriverConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1beta1_GcsFuseCsiDriverConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_RayOperatorConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_RayOperatorConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -856,6 +860,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1beta1_LoggingComponentConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1beta1_LoggingComponentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_RayClusterLoggingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_RayClusterLoggingConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1beta1_MonitoringConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -864,6 +872,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_RayClusterMonitoringConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_RayClusterMonitoringConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1beta1_NodePoolLoggingConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -1117,1361 +1129,1376 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "bels\030\001 \003(\01324.google.container.v1beta1.Re" + "sourceLabels.LabelsEntry\032-\n\013LabelsEntry\022" + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\033\n\013Netwo" - + "rkTags\022\014\n\004tags\030\001 \003(\t\"\336\001\n\nMasterAuth\022\024\n\010u" + + "rkTags\022\014\n\004tags\030\001 \003(\t\"\355\001\n\nMasterAuth\022\024\n\010u" + "sername\030\001 \001(\tB\002\030\001\022\024\n\010password\030\002 \001(\tB\002\030\001\022" + "T\n\031client_certificate_config\030\003 \001(\01321.goo" + "gle.container.v1beta1.ClientCertificateC" - + "onfig\022\036\n\026cluster_ca_certificate\030d \001(\t\022\032\n" - + "\022client_certificate\030e \001(\t\022\022\n\nclient_key\030" - + "f \001(\t\";\n\027ClientCertificateConfig\022 \n\030issu" - + "e_client_certificate\030\001 \001(\010\"\350\010\n\014AddonsCon" - + "fig\022H\n\023http_load_balancing\030\001 \001(\0132+.googl" - + "e.container.v1beta1.HttpLoadBalancing\022V\n" - + "\032horizontal_pod_autoscaling\030\002 \001(\01322.goog" - + "le.container.v1beta1.HorizontalPodAutosc" - + "aling\022O\n\024kubernetes_dashboard\030\003 \001(\0132-.go" - + "ogle.container.v1beta1.KubernetesDashboa" - + "rdB\002\030\001\022L\n\025network_policy_config\030\004 \001(\0132-." - + "google.container.v1beta1.NetworkPolicyCo" - + "nfig\022?\n\014istio_config\030\005 \001(\0132%.google.cont" - + "ainer.v1beta1.IstioConfigB\002\030\001\022B\n\020cloud_r" - + "un_config\030\007 \001(\0132(.google.container.v1bet" - + "a1.CloudRunConfig\022B\n\020dns_cache_config\030\010 " - + "\001(\0132(.google.container.v1beta1.DnsCacheC" - + "onfig\022P\n\027config_connector_config\030\n \001(\0132/" - + ".google.container.v1beta1.ConfigConnecto" - + "rConfig\022i\n%gce_persistent_disk_csi_drive" - + "r_config\030\013 \001(\0132:.google.container.v1beta" - + "1.GcePersistentDiskCsiDriverConfig\022=\n\013ka" - + "lm_config\030\014 \001(\0132$.google.container.v1bet" - + "a1.KalmConfigB\002\030\001\022^\n\037gcp_filestore_csi_d" - + "river_config\030\016 \001(\01325.google.container.v1" - + "beta1.GcpFilestoreCsiDriverConfig\022O\n\027gke" - + "_backup_agent_config\030\020 \001(\0132..google.cont" - + "ainer.v1beta1.GkeBackupAgentConfig\022T\n\032gc" - + "s_fuse_csi_driver_config\030\021 \001(\01320.google." - + "container.v1beta1.GcsFuseCsiDriverConfig" - + "\022K\n\022stateful_ha_config\030\022 \001(\0132*.google.co" - + "ntainer.v1beta1.StatefulHAConfigB\003\340A\001\"%\n" - + "\021HttpLoadBalancing\022\020\n\010disabled\030\001 \001(\010\",\n\030" - + "HorizontalPodAutoscaling\022\020\n\010disabled\030\001 \001" - + "(\010\"\'\n\023KubernetesDashboard\022\020\n\010disabled\030\001 " - + "\001(\010\"\'\n\023NetworkPolicyConfig\022\020\n\010disabled\030\001" - + " \001(\010\"!\n\016DnsCacheConfig\022\017\n\007enabled\030\001 \001(\010\"" - + "!\n\nKalmConfig\022\023\n\007enabled\030\001 \001(\010B\002\030\001\"\'\n\024Gk" - + "eBackupAgentConfig\022\017\n\007enabled\030\001 \001(\010\"#\n\020S" - + "tatefulHAConfig\022\017\n\007enabled\030\001 \001(\010\"(\n\025Conf" - + "igConnectorConfig\022\017\n\007enabled\030\001 \001(\010\"3\n Gc" - + "ePersistentDiskCsiDriverConfig\022\017\n\007enable" - + "d\030\001 \001(\010\".\n\033GcpFilestoreCsiDriverConfig\022\017" - + "\n\007enabled\030\001 \001(\010\")\n\026GcsFuseCsiDriverConfi" - + "g\022\017\n\007enabled\030\001 \001(\010\"9\n&PrivateClusterMast" - + "erGlobalAccessConfig\022\017\n\007enabled\030\001 \001(\010\"\312\002" - + "\n\024PrivateClusterConfig\022\034\n\024enable_private" - + "_nodes\030\001 \001(\010\022\037\n\027enable_private_endpoint\030" - + "\002 \001(\010\022\036\n\026master_ipv4_cidr_block\030\003 \001(\t\022\030\n" - + "\020private_endpoint\030\004 \001(\t\022\027\n\017public_endpoi" - + "nt\030\005 \001(\t\022\024\n\014peering_name\030\007 \001(\t\022e\n\033master" - + "_global_access_config\030\010 \001(\0132@.google.con" - + "tainer.v1beta1.PrivateClusterMasterGloba" - + "lAccessConfig\022#\n\033private_endpoint_subnet" - + "work\030\n \001(\t\"\237\001\n\013IstioConfig\022\024\n\010disabled\030\001" - + " \001(\010B\002\030\001\022E\n\004auth\030\002 \001(\01623.google.containe" - + "r.v1beta1.IstioConfig.IstioAuthModeB\002\030\001\"" - + "3\n\rIstioAuthMode\022\r\n\tAUTH_NONE\020\000\022\023\n\017AUTH_" - + "MUTUAL_TLS\020\001\"\363\001\n\016CloudRunConfig\022\020\n\010disab" - + "led\030\001 \001(\010\022U\n\022load_balancer_type\030\003 \001(\01629." - + "google.container.v1beta1.CloudRunConfig." - + "LoadBalancerType\"x\n\020LoadBalancerType\022\"\n\036" - + "LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022\037\n\033LOAD" - + "_BALANCER_TYPE_EXTERNAL\020\001\022\037\n\033LOAD_BALANC" - + "ER_TYPE_INTERNAL\020\002\"\223\002\n\036MasterAuthorizedN" - + "etworksConfig\022\017\n\007enabled\030\001 \001(\010\022W\n\013cidr_b" - + "locks\030\002 \003(\0132B.google.container.v1beta1.M" - + "asterAuthorizedNetworksConfig.CidrBlock\022" - + ",\n\037gcp_public_cidrs_access_enabled\030\003 \001(\010" - + "H\000\210\001\001\0325\n\tCidrBlock\022\024\n\014display_name\030\001 \001(\t" - + "\022\022\n\ncidr_block\030\002 \001(\tB\"\n _gcp_public_cidr" - + "s_access_enabled\"\035\n\nLegacyAbac\022\017\n\007enable" - + "d\030\001 \001(\010\"\226\001\n\rNetworkPolicy\022B\n\010provider\030\001 " - + "\001(\01620.google.container.v1beta1.NetworkPo" - + "licy.Provider\022\017\n\007enabled\030\002 \001(\010\"0\n\010Provid" - + "er\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006CALICO\020\001" - + "\"-\n\032PodCIDROverprovisionConfig\022\017\n\007disabl" - + "e\030\001 \001(\010\"\246\010\n\022IPAllocationPolicy\022\026\n\016use_ip" - + "_aliases\030\001 \001(\010\022\031\n\021create_subnetwork\030\002 \001(" - + "\010\022\027\n\017subnetwork_name\030\003 \001(\t\022\035\n\021cluster_ip" - + "v4_cidr\030\004 \001(\tB\002\030\001\022\032\n\016node_ipv4_cidr\030\005 \001(" - + "\tB\002\030\001\022\036\n\022services_ipv4_cidr\030\006 \001(\tB\002\030\001\022$\n" - + "\034cluster_secondary_range_name\030\007 \001(\t\022%\n\035s" - + "ervices_secondary_range_name\030\010 \001(\t\022\037\n\027cl" - + "uster_ipv4_cidr_block\030\t \001(\t\022\034\n\024node_ipv4" - + "_cidr_block\030\n \001(\t\022 \n\030services_ipv4_cidr_" - + "block\030\013 \001(\t\022\033\n\023allow_route_overlap\030\014 \001(\010" - + "\022\033\n\023tpu_ipv4_cidr_block\030\r \001(\t\022\022\n\nuse_rou" - + "tes\030\017 \001(\010\022J\n\nstack_type\030\020 \001(\01626.google.c" - + "ontainer.v1beta1.IPAllocationPolicy.Stac" - + "kType\022U\n\020ipv6_access_type\030\021 \001(\0162;.google" - + ".container.v1beta1.IPAllocationPolicy.IP" - + "v6AccessType\022[\n\035pod_cidr_overprovision_c" - + "onfig\030\025 \001(\01324.google.container.v1beta1.P" - + "odCIDROverprovisionConfig\022#\n\026subnet_ipv6" - + "_cidr_block\030\026 \001(\tB\003\340A\003\022%\n\030services_ipv6_" - + "cidr_block\030\027 \001(\tB\003\340A\003\022^\n\034additional_pod_" - + "ranges_config\030\030 \001(\01323.google.container.v" - + "1beta1.AdditionalPodRangesConfigB\003\340A\003\022/\n" - + "\"default_pod_ipv4_range_utilization\030\031 \001(" - + "\001B\003\340A\003\"@\n\tStackType\022\032\n\026STACK_TYPE_UNSPEC" - + "IFIED\020\000\022\010\n\004IPV4\020\001\022\r\n\tIPV4_IPV6\020\002\"N\n\016IPv6" - + "AccessType\022 \n\034IPV6_ACCESS_TYPE_UNSPECIFI" - + "ED\020\000\022\014\n\010INTERNAL\020\001\022\014\n\010EXTERNAL\020\002\"\300\003\n\023Bin" - + "aryAuthorization\022\023\n\007enabled\030\001 \001(\010B\002\030\001\022U\n" - + "\017evaluation_mode\030\002 \001(\0162<.google.containe" - + "r.v1beta1.BinaryAuthorization.Evaluation" - + "Mode\022Y\n\017policy_bindings\030\005 \003(\0132;.google.c" - + "ontainer.v1beta1.BinaryAuthorization.Pol" - + "icyBindingB\003\340A\001\032+\n\rPolicyBinding\022\021\n\004name" - + "\030\001 \001(\tH\000\210\001\001B\007\n\005_name\"\264\001\n\016EvaluationMode\022" - + "\037\n\033EVALUATION_MODE_UNSPECIFIED\020\000\022\014\n\010DISA" - + "BLED\020\001\022$\n PROJECT_SINGLETON_POLICY_ENFOR" - + "CE\020\002\022\023\n\017POLICY_BINDINGS\020\005\0228\n4POLICY_BIND" - + "INGS_AND_PROJECT_SINGLETON_POLICY_ENFORC" - + "E\020\006\"*\n\027PodSecurityPolicyConfig\022\017\n\007enable" - + "d\030\001 \001(\010\"D\n\031AuthenticatorGroupsConfig\022\017\n\007" - + "enabled\030\001 \001(\010\022\026\n\016security_group\030\002 \001(\t\"\226\001" - + "\n\020ClusterTelemetry\022=\n\004type\030\001 \001(\0162/.googl" - + "e.container.v1beta1.ClusterTelemetry.Typ" - + "e\"C\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001" - + "\022\013\n\007ENABLED\020\002\022\017\n\013SYSTEM_ONLY\020\003\"\250#\n\007Clust" - + "er\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\036\n" - + "\022initial_node_count\030\003 \001(\005B\002\030\001\022=\n\013node_co" - + "nfig\030\004 \001(\0132$.google.container.v1beta1.No" - + "deConfigB\002\030\001\0229\n\013master_auth\030\005 \001(\0132$.goog" - + "le.container.v1beta1.MasterAuth\022\027\n\017loggi" - + "ng_service\030\006 \001(\t\022\032\n\022monitoring_service\030\007" - + " \001(\t\022\017\n\007network\030\010 \001(\t\022\031\n\021cluster_ipv4_ci" - + "dr\030\t \001(\t\022=\n\raddons_config\030\n \001(\0132&.google" - + ".container.v1beta1.AddonsConfig\022\022\n\nsubne" - + "twork\030\013 \001(\t\0226\n\nnode_pools\030\014 \003(\0132\".google" - + ".container.v1beta1.NodePool\022\021\n\tlocations" - + "\030\r \003(\t\022\037\n\027enable_kubernetes_alpha\030\016 \001(\010\022" - + "I\n\024enable_k8s_beta_apis\030\217\001 \001(\0132*.google." - + "container.v1beta1.K8sBetaAPIConfig\022N\n\017re" - + "source_labels\030\017 \003(\01325.google.container.v" - + "1beta1.Cluster.ResourceLabelsEntry\022\031\n\021la" - + "bel_fingerprint\030\020 \001(\t\0229\n\013legacy_abac\030\022 \001" - + "(\0132$.google.container.v1beta1.LegacyAbac" - + "\022?\n\016network_policy\030\023 \001(\0132\'.google.contai" - + "ner.v1beta1.NetworkPolicy\022J\n\024ip_allocati" - + "on_policy\030\024 \001(\0132,.google.container.v1bet" - + "a1.IPAllocationPolicy\022c\n!master_authoriz" - + "ed_networks_config\030\026 \001(\01328.google.contai" - + "ner.v1beta1.MasterAuthorizedNetworksConf" - + "ig\022G\n\022maintenance_policy\030\027 \001(\0132+.google." - + "container.v1beta1.MaintenancePolicy\022K\n\024b" - + "inary_authorization\030\030 \001(\0132-.google.conta" - + "iner.v1beta1.BinaryAuthorization\022U\n\032pod_" - + "security_policy_config\030\031 \001(\01321.google.co" - + "ntainer.v1beta1.PodSecurityPolicyConfig\022" - + "A\n\013autoscaling\030\032 \001(\0132,.google.container." - + "v1beta1.ClusterAutoscaling\022?\n\016network_co" - + "nfig\030\033 \001(\0132\'.google.container.v1beta1.Ne" - + "tworkConfig\022\033\n\017private_cluster\030\034 \001(\010B\002\030\001" - + "\022\"\n\026master_ipv4_cidr_block\030\035 \001(\tB\002\030\001\022P\n\033" - + "default_max_pods_constraint\030\036 \001(\0132+.goog" - + "le.container.v1beta1.MaxPodsConstraint\022Y" - + "\n\034resource_usage_export_config\030! \001(\01323.g" - + "oogle.container.v1beta1.ResourceUsageExp" - + "ortConfig\022X\n\033authenticator_groups_config" - + "\030\" \001(\01323.google.container.v1beta1.Authen" - + "ticatorGroupsConfig\022N\n\026private_cluster_c" - + "onfig\030% \001(\0132..google.container.v1beta1.P" - + "rivateClusterConfig\022R\n\030vertical_pod_auto" - + "scaling\030\' \001(\01320.google.container.v1beta1" - + ".VerticalPodAutoscaling\022?\n\016shielded_node" - + "s\030( \001(\0132\'.google.container.v1beta1.Shiel" - + "dedNodes\022A\n\017release_channel\030) \001(\0132(.goog" - + "le.container.v1beta1.ReleaseChannel\022R\n\030w" - + "orkload_identity_config\030+ \001(\01320.google.c" - + "ontainer.v1beta1.WorkloadIdentityConfig\022" - + "M\n\025workload_certificates\0304 \001(\0132..google." - + "container.v1beta1.WorkloadCertificates\022E" - + "\n\021mesh_certificates\030C \001(\0132*.google.conta" - + "iner.v1beta1.MeshCertificates\022J\n\024workloa" - + "d_alts_config\0305 \001(\0132,.google.container.v" - + "1beta1.WorkloadALTSConfig\022N\n\026cost_manage" - + "ment_config\030- \001(\0132..google.container.v1b" - + "eta1.CostManagementConfig\022E\n\021cluster_tel" - + "emetry\030. \001(\0132*.google.container.v1beta1." - + "ClusterTelemetry\0227\n\ntpu_config\030/ \001(\0132#.g" - + "oogle.container.v1beta1.TpuConfig\022I\n\023not" - + "ification_config\0301 \001(\0132,.google.containe" - + "r.v1beta1.NotificationConfig\022G\n\022confiden" - + "tial_nodes\0302 \001(\0132+.google.container.v1be" - + "ta1.ConfidentialNodes\022P\n\027identity_servic" - + "e_config\0306 \001(\0132/.google.container.v1beta" - + "1.IdentityServiceConfig\022\021\n\tself_link\030d \001" - + "(\t\022\020\n\004zone\030e \001(\tB\002\030\001\022\020\n\010endpoint\030f \001(\t\022\037" - + "\n\027initial_cluster_version\030g \001(\t\022\036\n\026curre", - "nt_master_version\030h \001(\t\022 \n\024current_node_" - + "version\030i \001(\tB\002\030\001\022\023\n\013create_time\030j \001(\t\0228" - + "\n\006status\030k \001(\0162(.google.container.v1beta" - + "1.Cluster.Status\022\032\n\016status_message\030l \001(\t" - + "B\002\030\001\022\033\n\023node_ipv4_cidr_size\030m \001(\005\022\032\n\022ser" - + "vices_ipv4_cidr\030n \001(\t\022\037\n\023instance_group_" - + "urls\030o \003(\tB\002\030\001\022\036\n\022current_node_count\030p \001" - + "(\005B\002\030\001\022\023\n\013expire_time\030q \001(\t\022\020\n\010location\030" - + "r \001(\t\022\022\n\nenable_tpu\030s \001(\010\022\033\n\023tpu_ipv4_ci" - + "dr_block\030t \001(\t\022I\n\023database_encryption\030& " - + "\001(\0132,.google.container.v1beta1.DatabaseE" - + "ncryption\022=\n\nconditions\030v \003(\0132).google.c" - + "ontainer.v1beta1.StatusCondition\0220\n\006mast" - + "er\030| \001(\0132 .google.container.v1beta1.Mast" - + "er\0227\n\tautopilot\030\200\001 \001(\0132#.google.containe" - + "r.v1beta1.Autopilot\022\020\n\002id\030\201\001 \001(\tB\003\340A\003\022L\n" - + "\022node_pool_defaults\030\203\001 \001(\0132*.google.cont" - + "ainer.v1beta1.NodePoolDefaultsH\000\210\001\001\022@\n\016l" - + "ogging_config\030\204\001 \001(\0132\'.google.container." - + "v1beta1.LoggingConfig\022F\n\021monitoring_conf" - + "ig\030\205\001 \001(\0132*.google.container.v1beta1.Mon" - + "itoringConfig\022L\n\025node_pool_auto_config\030\210" - + "\001 \001(\0132,.google.container.v1beta1.NodePoo" - + "lAutoConfig\022I\n\016protect_config\030\211\001 \001(\0132\'.g" - + "oogle.container.v1beta1.ProtectConfigB\002\030" - + "\001H\001\210\001\001\022\r\n\004etag\030\213\001 \001(\t\022/\n\005fleet\030\214\001 \001(\0132\037." - + "google.container.v1beta1.Fleet\022Q\n\027securi" - + "ty_posture_config\030\221\001 \001(\0132/.google.contai" - + "ner.v1beta1.SecurityPostureConfig\022F\n\021ent" - + "erprise_config\030\225\001 \001(\0132*.google.container" - + ".v1beta1.EnterpriseConfig\022M\n\025secret_mana" - + "ger_config\030\226\001 \001(\0132-.google.container.v1b" - + "eta1.SecretManagerConfig\022U\n\031compliance_p" - + "osture_config\030\227\001 \001(\01321.google.container." - + "v1beta1.CompliancePostureConfig\022 \n\rsatis" - + "fies_pzs\030\230\001 \001(\010B\003\340A\003H\002\210\001\001\022 \n\rsatisfies_p" - + "zi\030\231\001 \001(\010B\003\340A\003H\003\210\001\001\0325\n\023ResourceLabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006St" - + "atus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIO" - + "NING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010" - + "STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_" - + "node_pool_defaultsB\021\n\017_protect_configB\020\n" - + "\016_satisfies_pzsB\020\n\016_satisfies_pzi\"\304\002\n\027Co" - + "mpliancePostureConfig\022I\n\004mode\030\001 \001(\01626.go" - + "ogle.container.v1beta1.CompliancePosture" - + "Config.ModeH\000\210\001\001\022b\n\024compliance_standards" - + "\030\002 \003(\0132D.google.container.v1beta1.Compli" - + "ancePostureConfig.ComplianceStandard\0328\n\022" - + "ComplianceStandard\022\025\n\010standard\030\001 \001(\tH\000\210\001" - + "\001B\013\n\t_standard\"7\n\004Mode\022\024\n\020MODE_UNSPECIFI" - + "ED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007ENABLED\020\002B\007\n\005_mode" - + "\"(\n\020K8sBetaAPIConfig\022\024\n\014enabled_apis\030\001 \003" - + "(\t\"\304\001\n\016WorkloadConfig\022F\n\naudit_mode\030\001 \001(" - + "\0162-.google.container.v1beta1.WorkloadCon" - + "fig.ModeH\000\210\001\001\"[\n\004Mode\022\024\n\020MODE_UNSPECIFIE" - + "D\020\000\022\014\n\010DISABLED\020\001\022\t\n\005BASIC\020\004\022\020\n\010BASELINE" - + "\020\002\032\002\010\001\022\022\n\nRESTRICTED\020\003\032\002\010\001B\r\n\013_audit_mod" - + "e\"\333\002\n\rProtectConfig\022F\n\017workload_config\030\001" - + " \001(\0132(.google.container.v1beta1.Workload" - + "ConfigH\000\210\001\001\022k\n\033workload_vulnerability_mo" - + "de\030\002 \001(\0162A.google.container.v1beta1.Prot" - + "ectConfig.WorkloadVulnerabilityModeH\001\210\001\001" - + "\"a\n\031WorkloadVulnerabilityMode\022+\n\'WORKLOA" - + "D_VULNERABILITY_MODE_UNSPECIFIED\020\000\022\014\n\010DI" - + "SABLED\020\001\022\t\n\005BASIC\020\002B\022\n\020_workload_configB" - + "\036\n\034_workload_vulnerability_mode\"\270\003\n\025Secu" - + "rityPostureConfig\022G\n\004mode\030\001 \001(\01624.google" - + ".container.v1beta1.SecurityPostureConfig" - + ".ModeH\000\210\001\001\022b\n\022vulnerability_mode\030\002 \001(\0162A" - + ".google.container.v1beta1.SecurityPostur" - + "eConfig.VulnerabilityModeH\001\210\001\001\"E\n\004Mode\022\024" - + "\n\020MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t\n\005BA" - + "SIC\020\002\022\016\n\nENTERPRISE\020\003\"\212\001\n\021VulnerabilityM" - + "ode\022\"\n\036VULNERABILITY_MODE_UNSPECIFIED\020\000\022" - + "\032\n\026VULNERABILITY_DISABLED\020\001\022\027\n\023VULNERABI" - + "LITY_BASIC\020\002\022\034\n\030VULNERABILITY_ENTERPRISE" - + "\020\003B\007\n\005_modeB\025\n\023_vulnerability_mode\"^\n\020No" - + "dePoolDefaults\022J\n\024node_config_defaults\030\001" - + " \001(\0132,.google.container.v1beta1.NodeConf" - + "igDefaults\"\373\002\n\022NodeConfigDefaults\0229\n\013gcf" - + "s_config\030\001 \001(\0132$.google.container.v1beta" - + "1.GcfsConfig\022G\n\016logging_config\030\003 \001(\0132/.g" - + "oogle.container.v1beta1.NodePoolLoggingC" - + "onfig\022E\n\021containerd_config\030\004 \001(\0132*.googl" - + "e.container.v1beta1.ContainerdConfig\022P\n\027" - + "host_maintenance_policy\030\005 \001(\0132/.google.c" - + "ontainer.v1beta1.HostMaintenancePolicy\022H" - + "\n\023node_kubelet_config\030\006 \001(\0132+.google.con" - + "tainer.v1beta1.NodeKubeletConfig\"\351\001\n\022Nod" - + "ePoolAutoConfig\022;\n\014network_tags\030\001 \001(\0132%." - + "google.container.v1beta1.NetworkTags\022L\n\025" - + "resource_manager_tags\030\002 \001(\0132-.google.con" - + "tainer.v1beta1.ResourceManagerTags\022H\n\023no" - + "de_kubelet_config\030\003 \001(\0132+.google.contain" - + "er.v1beta1.NodeKubeletConfig\"\332)\n\rCluster" - + "Update\022\034\n\024desired_node_version\030\004 \001(\t\022\"\n\032" - + "desired_monitoring_service\030\005 \001(\t\022E\n\025desi" - + "red_addons_config\030\006 \001(\0132&.google.contain" - + "er.v1beta1.AddonsConfig\022\034\n\024desired_node_" - + "pool_id\030\007 \001(\t\022\032\n\022desired_image_type\030\010 \001(" - + "\t\022T\n\035desired_node_pool_autoscaling\030\t \001(\013" - + "2-.google.container.v1beta1.NodePoolAuto" - + "scaling\022\031\n\021desired_locations\030\n \003(\t\022k\n)de" - + "sired_master_authorized_networks_config\030" - + "\014 \001(\01328.google.container.v1beta1.MasterA" - + "uthorizedNetworksConfig\022]\n\"desired_pod_s" - + "ecurity_policy_config\030\016 \001(\01321.google.con" - + "tainer.v1beta1.PodSecurityPolicyConfig\022Q" - + "\n\033desired_cluster_autoscaling\030\017 \001(\0132,.go" - + "ogle.container.v1beta1.ClusterAutoscalin" - + "g\022S\n\034desired_binary_authorization\030\020 \001(\0132" - + "-.google.container.v1beta1.BinaryAuthori" - + "zation\022\037\n\027desired_logging_service\030\023 \001(\t\022" - + "a\n$desired_resource_usage_export_config\030" - + "\025 \001(\01323.google.container.v1beta1.Resourc" - + "eUsageExportConfig\022Z\n desired_vertical_p" - + "od_autoscaling\030\026 \001(\01320.google.container." - + "v1beta1.VerticalPodAutoscaling\022V\n\036desire" - + "d_private_cluster_config\030\031 \001(\0132..google." - + "container.v1beta1.PrivateClusterConfig\022a" - + "\n$desired_intra_node_visibility_config\030\032" - + " \001(\01323.google.container.v1beta1.IntraNod" - + "eVisibilityConfig\022P\n\033desired_default_sna" - + "t_status\030\034 \001(\0132+.google.container.v1beta" - + "1.DefaultSnatStatus\022M\n\031desired_cluster_t" - + "elemetry\030\036 \001(\0132*.google.container.v1beta" - + "1.ClusterTelemetry\022I\n\027desired_release_ch" - + "annel\030\037 \001(\0132(.google.container.v1beta1.R" - + "eleaseChannel\022R\n\026private_cluster_config\030" - + "% \001(\0132..google.container.v1beta1.Private" - + "ClusterConfigB\002\030\001\022?\n\022desired_tpu_config\030" - + "& \001(\0132#.google.container.v1beta1.TpuConf" - + "ig\022V\n\037desired_l4ilb_subsetting_config\030\' " - + "\001(\0132-.google.container.v1beta1.ILBSubset" - + "tingConfig\022M\n\031desired_datapath_provider\030" - + "2 \001(\0162*.google.container.v1beta1.Datapat" - + "hProvider\022]\n\"desired_private_ipv6_google" - + "_access\0303 \001(\01621.google.container.v1beta1" - + ".PrivateIPv6GoogleAccess\022Q\n\033desired_noti" - + "fication_config\0307 \001(\0132,.google.container" - + ".v1beta1.NotificationConfig\022\036\n\026desired_m" - + "aster_version\030d \001(\t\022A\n\023desired_gcfs_conf" - + "ig\030m \001(\0132$.google.container.v1beta1.Gcfs" - + "Config\022Q\n\033desired_database_encryption\030. " - + "\001(\0132,.google.container.v1beta1.DatabaseE" - + "ncryption\022Z\n desired_workload_identity_c" - + "onfig\030/ \001(\01320.google.container.v1beta1.W" - + "orkloadIdentityConfig\022U\n\035desired_workloa" - + "d_certificates\030= \001(\0132..google.container." - + "v1beta1.WorkloadCertificates\022M\n\031desired_" - + "mesh_certificates\030C \001(\0132*.google.contain" - + "er.v1beta1.MeshCertificates\022R\n\034desired_w" - + "orkload_alts_config\030> \001(\0132,.google.conta" - + "iner.v1beta1.WorkloadALTSConfig\022G\n\026desir" - + "ed_shielded_nodes\0300 \001(\0132\'.google.contain" - + "er.v1beta1.ShieldedNodes\022V\n\036desired_cost" - + "_management_config\0301 \001(\0132..google.contai" - + "ner.v1beta1.CostManagementConfig\0228\n\016desi" - + "red_master\0304 \001(\0132 .google.container.v1be" - + "ta1.Master\022?\n\022desired_dns_config\0305 \001(\0132#" - + ".google.container.v1beta1.DNSConfig\022_\n#d" - + "esired_service_external_ips_config\030< \001(\013" - + "22.google.container.v1beta1.ServiceExter" - + "nalIPsConfig\022`\n#desired_authenticator_gr" - + "oups_config\030? \001(\01323.google.container.v1b" - + "eta1.AuthenticatorGroupsConfig\022G\n\026desire" - + "d_logging_config\030@ \001(\0132\'.google.containe" - + "r.v1beta1.LoggingConfig\022M\n\031desired_monit" - + "oring_config\030A \001(\0132*.google.container.v1" - + "beta1.MonitoringConfig\022X\n\037desired_identi" - + "ty_service_config\030B \001(\0132/.google.contain" - + "er.v1beta1.IdentityServiceConfig\022,\n\037desi" - + "red_enable_private_endpoint\030G \001(\010H\000\210\001\001\022Y" - + "\n*desired_node_pool_auto_config_network_" - + "tags\030n \001(\0132%.google.container.v1beta1.Ne" - + "tworkTags\022P\n\026desired_protect_config\030p \001(" - + "\0132\'.google.container.v1beta1.ProtectConf" - + "igB\002\030\001H\001\210\001\001\022N\n\032desired_gateway_api_confi" - + "g\030r \001(\0132*.google.container.v1beta1.Gatew" - + "ayAPIConfig\022\014\n\004etag\030s \001(\t\022Y\n desired_nod" - + "e_pool_logging_config\030t \001(\0132/.google.con" - + "tainer.v1beta1.NodePoolLoggingConfig\0226\n\r" - + "desired_fleet\030u \001(\0132\037.google.container.v" - + "1beta1.Fleet\022?\n\022desired_stack_type\030w \001(\016" - + "2#.google.container.v1beta1.StackType\022Y\n" - + "\034additional_pod_ranges_config\030x \001(\01323.go" - + "ogle.container.v1beta1.AdditionalPodRang" - + "esConfig\022a\n$removed_additional_pod_range" - + "s_config\030y \001(\01323.google.container.v1beta" - + "1.AdditionalPodRangesConfig\022H\n\024enable_k8" - + "s_beta_apis\030z \001(\0132*.google.container.v1b" - + "eta1.K8sBetaAPIConfig\022X\n\037desired_securit" - + "y_posture_config\030| \001(\0132/.google.containe" - + "r.v1beta1.SecurityPostureConfig\022s\n\"desir" - + "ed_network_performance_config\030} \001(\0132G.go" - + "ogle.container.v1beta1.NetworkConfig.Clu" - + "sterNetworkPerformanceConfig\022/\n\"desired_" - + "enable_fqdn_network_policy\030~ \001(\010H\002\210\001\001\022a\n" - + "(desired_autopilot_workload_policy_confi" - + "g\030\200\001 \001(\0132..google.container.v1beta1.Work" - + "loadPolicyConfig\022J\n\025desired_k8s_beta_api" - + "s\030\203\001 \001(\0132*.google.container.v1beta1.K8sB" - + "etaAPIConfig\022Y\n\037desired_host_maintenance" - + "_policy\030\204\001 \001(\0132/.google.container.v1beta" - + "1.HostMaintenancePolicy\022N\n\031desired_conta" - + "inerd_config\030\206\001 \001(\0132*.google.container.v" - + "1beta1.ContainerdConfig\022-\n\037desired_enabl" - + "e_multi_networking\030\207\001 \001(\010H\003\210\001\001\022k\n3desire" - + "d_node_pool_auto_config_resource_manager" - + "_tags\030\210\001 \001(\0132-.google.container.v1beta1." - + "ResourceManagerTags\022g\n$desired_in_transi" - + "t_encryption_config\030\211\001 \001(\01623.google.cont" - + "ainer.v1beta1.InTransitEncryptionConfigH" - + "\004\210\001\001\022>\n0desired_enable_cilium_clusterwid" - + "e_network_policy\030\212\001 \001(\010H\005\210\001\001\022Z\n\035desired_" - + "secret_manager_config\030\213\001 \001(\0132-.google.co" - + "ntainer.v1beta1.SecretManagerConfigH\006\210\001\001" - + "\022Q\n\033desired_node_kubelet_config\030\215\001 \001(\0132+" - + ".google.container.v1beta1.NodeKubeletCon" - + "fig\022b\n,desired_node_pool_auto_config_kub" - + "elet_config\030\216\001 \001(\0132+.google.container.v1" - + "beta1.NodeKubeletConfigB\"\n _desired_enab" - + "le_private_endpointB\031\n\027_desired_protect_" - + "configB%\n#_desired_enable_fqdn_network_p" - + "olicyB\"\n _desired_enable_multi_networkin" - + "gB\'\n%_desired_in_transit_encryption_conf" - + "igB3\n1_desired_enable_cilium_clusterwide" - + "_network_policyB \n\036_desired_secret_manag" - + "er_config\"v\n\031AdditionalPodRangesConfig\022\027" - + "\n\017pod_range_names\030\001 \003(\t\022@\n\016pod_range_inf" - + "o\030\002 \003(\0132#.google.container.v1beta1.Range" - + "InfoB\003\340A\003\">\n\tRangeInfo\022\027\n\nrange_name\030\001 \001" - + "(\tB\003\340A\003\022\030\n\013utilization\030\002 \001(\001B\003\340A\003\"\315\010\n\tOp" - + "eration\022\014\n\004name\030\001 \001(\t\022\020\n\004zone\030\002 \001(\tB\002\030\001\022" - + "@\n\016operation_type\030\003 \001(\0162(.google.contain" - + "er.v1beta1.Operation.Type\022:\n\006status\030\004 \001(" - + "\0162*.google.container.v1beta1.Operation.S" - + "tatus\022\016\n\006detail\030\010 \001(\t\022\035\n\016status_message\030" - + "\005 \001(\tB\005\030\001\340A\003\022\021\n\tself_link\030\006 \001(\t\022\023\n\013targe" - + "t_link\030\007 \001(\t\022\020\n\010location\030\t \001(\t\022\022\n\nstart_" - + "time\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t\022B\n\010progress" - + "\030\014 \001(\0132+.google.container.v1beta1.Operat" - + "ionProgressB\003\340A\003\022I\n\022cluster_conditions\030\r" - + " \003(\0132).google.container.v1beta1.StatusCo" - + "nditionB\002\030\001\022J\n\023nodepool_conditions\030\016 \003(\013" - + "2).google.container.v1beta1.StatusCondit" - + "ionB\002\030\001\022!\n\005error\030\017 \001(\0132\022.google.rpc.Stat" - + "us\"R\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007" - + "PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABOR" - + "TING\020\004\"\300\003\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n" - + "\016CREATE_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n" - + "\016UPGRADE_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016" - + "REPAIR_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020" - + "CREATE_NODE_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010" - + "\022\034\n\030SET_NODE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_R" - + "EPAIR_NODES\020\n\022\032\n\022AUTO_UPGRADE_NODES\020\013\032\002\010" - + "\001\022\022\n\nSET_LABELS\020\014\032\002\010\001\022\027\n\017SET_MASTER_AUTH" - + "\020\r\032\002\010\001\022\026\n\022SET_NODE_POOL_SIZE\020\016\022\032\n\022SET_NE" - + "TWORK_POLICY\020\017\032\002\010\001\022\036\n\026SET_MAINTENANCE_PO" - + "LICY\020\020\032\002\010\001\022\022\n\016RESIZE_CLUSTER\020\022\022\031\n\025FLEET_" - + "FEATURE_UPGRADE\020\023\"\312\002\n\021OperationProgress\022" - + "\014\n\004name\030\001 \001(\t\022:\n\006status\030\002 \001(\0162*.google.c" - + "ontainer.v1beta1.Operation.Status\022C\n\007met" - + "rics\030\003 \003(\01322.google.container.v1beta1.Op" - + "erationProgress.Metric\022;\n\006stages\030\004 \003(\0132+" - + ".google.container.v1beta1.OperationProgr" - + "ess\032i\n\006Metric\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\tint_" - + "value\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n" - + "\014string_value\030\004 \001(\tH\000B\007\n\005value\"\217\001\n\024Creat" - + "eClusterRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340" - + "A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\0227\n\007cluster\030\003 \001(\013" - + "2!.google.container.v1beta1.ClusterB\003\340A\002" - + "\022\016\n\006parent\030\005 \001(\t\"l\n\021GetClusterRequest\022\031\n" - + "\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005" - + "\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name" - + "\030\005 \001(\t\"\255\001\n\024UpdateClusterRequest\022\031\n\nproje" - + "ct_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022" - + "\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022<\n\006update\030\004 \001" - + "(\0132\'.google.container.v1beta1.ClusterUpd" - + "ateB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\276\014\n\025UpdateNodePoo" - + "lRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004z" - + "one\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001" - + "\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\031\n\014node" - + "_version\030\005 \001(\tB\003\340A\002\022\027\n\nimage_type\030\006 \001(\tB" - + "\003\340A\002\022\021\n\tlocations\030\r \003(\t\022R\n\030workload_meta" - + "data_config\030\016 \001(\01320.google.container.v1b" - + "eta1.WorkloadMetadataConfig\022\014\n\004name\030\010 \001(" - + "\t\022L\n\020upgrade_settings\030\017 \001(\01322.google.con" - + "tainer.v1beta1.NodePool.UpgradeSettings\022" - + "3\n\004tags\030\020 \001(\0132%.google.container.v1beta1" - + ".NetworkTags\0224\n\006taints\030\021 \001(\0132$.google.co" - + "ntainer.v1beta1.NodeTaints\0224\n\006labels\030\022 \001" - + "(\0132$.google.container.v1beta1.NodeLabels" - + "\022D\n\021linux_node_config\030\023 \001(\0132).google.con" - + "tainer.v1beta1.LinuxNodeConfig\022C\n\016kubele" - + "t_config\030\024 \001(\0132+.google.container.v1beta" - + "1.NodeKubeletConfig\022H\n\023node_network_conf" - + "ig\030\025 \001(\0132+.google.container.v1beta1.Node" - + "NetworkConfig\0229\n\013gcfs_config\030\026 \001(\0132$.goo" - + "gle.container.v1beta1.GcfsConfig\022G\n\022conf" - + "idential_nodes\030\027 \001(\0132+.google.container." - + "v1beta1.ConfidentialNodes\0223\n\005gvnic\030\035 \001(\013" - + "2$.google.container.v1beta1.VirtualNIC\022\014" - + "\n\004etag\030\036 \001(\t\0229\n\013fast_socket\030\037 \001(\0132$.goog" - + "le.container.v1beta1.FastSocket\022G\n\016loggi" - + "ng_config\030 \001(\0132/.google.container.v1bet" - + "a1.NodePoolLoggingConfig\022A\n\017resource_lab" - + "els\030! \001(\0132(.google.container.v1beta1.Res" - + "ourceLabels\022H\n\023windows_node_config\030\" \001(\013" - + "2+.google.container.v1beta1.WindowsNodeC" - + "onfig\022A\n\014accelerators\030# \003(\0132+.google.con" - + "tainer.v1beta1.AcceleratorConfig\022\031\n\014mach" - + "ine_type\030$ \001(\tB\003\340A\001\022\026\n\tdisk_type\030% \001(\tB\003" - + "\340A\001\022\031\n\014disk_size_gb\030& \001(\003B\003\340A\001\022L\n\025resour" - + "ce_manager_tags\030\' \001(\0132-.google.container" - + ".v1beta1.ResourceManagerTags\022E\n\021containe" - + "rd_config\030( \001(\0132*.google.container.v1bet" - + "a1.ContainerdConfig\022R\n\023queued_provisioni" - + "ng\030* \001(\01325.google.container.v1beta1.Node" - + "Pool.QueuedProvisioning\"\336\001\n\035SetNodePoolA" - + "utoscalingRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030" - + "\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030" - + "\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A" - + "\002\022G\n\013autoscaling\030\005 \001(\0132-.google.containe" - + "r.v1beta1.NodePoolAutoscalingB\003\340A\002\022\014\n\004na" - + "me\030\006 \001(\t\"\221\001\n\030SetLoggingServiceRequest\022\031\n" - + "\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005" - + "\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\034\n\017logg" - + "ing_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\227\001\n" - + "\033SetMonitoringServiceRequest\022\031\n\nproject_" - + "id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\n" - + "cluster_id\030\003 \001(\tB\005\030\001\340A\002\022\037\n\022monitoring_se" - + "rvice\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\265\001\n\026SetAd" - + "donsConfigRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030" - + "\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030" - + "\003 \001(\tB\005\030\001\340A\002\022B\n\raddons_config\030\004 \001(\0132&.go" - + "ogle.container.v1beta1.AddonsConfigB\003\340A\002" - + "\022\014\n\004name\030\006 \001(\t\"\206\001\n\023SetLocationsRequest\022\031" - + "\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB" - + "\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\026\n\tloc" - + "ations\030\004 \003(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\213\001\n\023Upda" - + "teMasterRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340" - + "A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 " - + "\001(\tB\005\030\001\340A\002\022\033\n\016master_version\030\004 \001(\tB\003\340A\002\022" - + "\014\n\004name\030\007 \001(\t\"\310\002\n\024SetMasterAuthRequest\022\031" - + "\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB" - + "\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022J\n\006act" - + "ion\030\004 \001(\01625.google.container.v1beta1.Set" - + "MasterAuthRequest.ActionB\003\340A\002\0229\n\006update\030" - + "\005 \001(\0132$.google.container.v1beta1.MasterA" - + "uthB\003\340A\002\022\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKN" - + "OWN\020\000\022\020\n\014SET_PASSWORD\020\001\022\025\n\021GENERATE_PASS" - + "WORD\020\002\022\020\n\014SET_USERNAME\020\003\"o\n\024DeleteCluste" + + "onfig\022#\n\026cluster_ca_certificate\030d \001(\tB\003\340" + + "A\003\022\037\n\022client_certificate\030e \001(\tB\003\340A\003\022\027\n\nc" + + "lient_key\030f \001(\tB\003\340A\003\";\n\027ClientCertificat" + + "eConfig\022 \n\030issue_client_certificate\030\001 \001(" + + "\010\"\267\t\n\014AddonsConfig\022H\n\023http_load_balancin" + + "g\030\001 \001(\0132+.google.container.v1beta1.HttpL" + + "oadBalancing\022V\n\032horizontal_pod_autoscali" + + "ng\030\002 \001(\01322.google.container.v1beta1.Hori" + + "zontalPodAutoscaling\022O\n\024kubernetes_dashb" + + "oard\030\003 \001(\0132-.google.container.v1beta1.Ku" + + "bernetesDashboardB\002\030\001\022L\n\025network_policy_" + + "config\030\004 \001(\0132-.google.container.v1beta1." + + "NetworkPolicyConfig\022?\n\014istio_config\030\005 \001(" + + "\0132%.google.container.v1beta1.IstioConfig" + + "B\002\030\001\022B\n\020cloud_run_config\030\007 \001(\0132(.google." + + "container.v1beta1.CloudRunConfig\022B\n\020dns_" + + "cache_config\030\010 \001(\0132(.google.container.v1" + + "beta1.DnsCacheConfig\022P\n\027config_connector" + + "_config\030\n \001(\0132/.google.container.v1beta1" + + ".ConfigConnectorConfig\022i\n%gce_persistent" + + "_disk_csi_driver_config\030\013 \001(\0132:.google.c" + + "ontainer.v1beta1.GcePersistentDiskCsiDri" + + "verConfig\022=\n\013kalm_config\030\014 \001(\0132$.google." + + "container.v1beta1.KalmConfigB\002\030\001\022^\n\037gcp_" + + "filestore_csi_driver_config\030\016 \001(\01325.goog" + + "le.container.v1beta1.GcpFilestoreCsiDriv" + + "erConfig\022O\n\027gke_backup_agent_config\030\020 \001(" + + "\0132..google.container.v1beta1.GkeBackupAg" + + "entConfig\022T\n\032gcs_fuse_csi_driver_config\030" + + "\021 \001(\01320.google.container.v1beta1.GcsFuse" + + "CsiDriverConfig\022K\n\022stateful_ha_config\030\022 " + + "\001(\0132*.google.container.v1beta1.StatefulH" + + "AConfigB\003\340A\001\022M\n\023ray_operator_config\030\025 \001(" + + "\0132+.google.container.v1beta1.RayOperator" + + "ConfigB\003\340A\001\"%\n\021HttpLoadBalancing\022\020\n\010disa" + + "bled\030\001 \001(\010\",\n\030HorizontalPodAutoscaling\022\020" + + "\n\010disabled\030\001 \001(\010\"\'\n\023KubernetesDashboard\022" + + "\020\n\010disabled\030\001 \001(\010\"\'\n\023NetworkPolicyConfig" + + "\022\020\n\010disabled\030\001 \001(\010\"!\n\016DnsCacheConfig\022\017\n\007" + + "enabled\030\001 \001(\010\"!\n\nKalmConfig\022\023\n\007enabled\030\001" + + " \001(\010B\002\030\001\"\'\n\024GkeBackupAgentConfig\022\017\n\007enab" + + "led\030\001 \001(\010\"#\n\020StatefulHAConfig\022\017\n\007enabled" + + "\030\001 \001(\010\"(\n\025ConfigConnectorConfig\022\017\n\007enabl" + + "ed\030\001 \001(\010\"3\n GcePersistentDiskCsiDriverCo" + + "nfig\022\017\n\007enabled\030\001 \001(\010\".\n\033GcpFilestoreCsi" + + "DriverConfig\022\017\n\007enabled\030\001 \001(\010\")\n\026GcsFuse" + + "CsiDriverConfig\022\017\n\007enabled\030\001 \001(\010\"\342\001\n\021Ray" + + "OperatorConfig\022\017\n\007enabled\030\001 \001(\010\022Z\n\032ray_c" + + "luster_logging_config\030\002 \001(\01321.google.con" + + "tainer.v1beta1.RayClusterLoggingConfigB\003" + + "\340A\001\022`\n\035ray_cluster_monitoring_config\030\003 \001" + + "(\01324.google.container.v1beta1.RayCluster" + + "MonitoringConfigB\003\340A\001\"9\n&PrivateClusterM" + + "asterGlobalAccessConfig\022\017\n\007enabled\030\001 \001(\010" + + "\"\331\002\n\024PrivateClusterConfig\022\034\n\024enable_priv" + + "ate_nodes\030\001 \001(\010\022\037\n\027enable_private_endpoi" + + "nt\030\002 \001(\010\022\036\n\026master_ipv4_cidr_block\030\003 \001(\t" + + "\022\035\n\020private_endpoint\030\004 \001(\tB\003\340A\003\022\034\n\017publi" + + "c_endpoint\030\005 \001(\tB\003\340A\003\022\031\n\014peering_name\030\007 " + + "\001(\tB\003\340A\003\022e\n\033master_global_access_config\030" + + "\010 \001(\0132@.google.container.v1beta1.Private" + + "ClusterMasterGlobalAccessConfig\022#\n\033priva" + + "te_endpoint_subnetwork\030\n \001(\t\"\237\001\n\013IstioCo" + + "nfig\022\024\n\010disabled\030\001 \001(\010B\002\030\001\022E\n\004auth\030\002 \001(\016" + + "23.google.container.v1beta1.IstioConfig." + + "IstioAuthModeB\002\030\001\"3\n\rIstioAuthMode\022\r\n\tAU" + + "TH_NONE\020\000\022\023\n\017AUTH_MUTUAL_TLS\020\001\"\363\001\n\016Cloud" + + "RunConfig\022\020\n\010disabled\030\001 \001(\010\022U\n\022load_bala" + + "ncer_type\030\003 \001(\01629.google.container.v1bet" + + "a1.CloudRunConfig.LoadBalancerType\"x\n\020Lo" + + "adBalancerType\022\"\n\036LOAD_BALANCER_TYPE_UNS" + + "PECIFIED\020\000\022\037\n\033LOAD_BALANCER_TYPE_EXTERNA" + + "L\020\001\022\037\n\033LOAD_BALANCER_TYPE_INTERNAL\020\002\"\223\002\n" + + "\036MasterAuthorizedNetworksConfig\022\017\n\007enabl" + + "ed\030\001 \001(\010\022W\n\013cidr_blocks\030\002 \003(\0132B.google.c" + + "ontainer.v1beta1.MasterAuthorizedNetwork" + + "sConfig.CidrBlock\022,\n\037gcp_public_cidrs_ac" + + "cess_enabled\030\003 \001(\010H\000\210\001\001\0325\n\tCidrBlock\022\024\n\014" + + "display_name\030\001 \001(\t\022\022\n\ncidr_block\030\002 \001(\tB\"" + + "\n _gcp_public_cidrs_access_enabled\"\035\n\nLe" + + "gacyAbac\022\017\n\007enabled\030\001 \001(\010\"\226\001\n\rNetworkPol" + + "icy\022B\n\010provider\030\001 \001(\01620.google.container" + + ".v1beta1.NetworkPolicy.Provider\022\017\n\007enabl" + + "ed\030\002 \001(\010\"0\n\010Provider\022\030\n\024PROVIDER_UNSPECI" + + "FIED\020\000\022\n\n\006CALICO\020\001\"-\n\032PodCIDROverprovisi" + + "onConfig\022\017\n\007disable\030\001 \001(\010\"\246\010\n\022IPAllocati" + + "onPolicy\022\026\n\016use_ip_aliases\030\001 \001(\010\022\031\n\021crea" + + "te_subnetwork\030\002 \001(\010\022\027\n\017subnetwork_name\030\003" + + " \001(\t\022\035\n\021cluster_ipv4_cidr\030\004 \001(\tB\002\030\001\022\032\n\016n" + + "ode_ipv4_cidr\030\005 \001(\tB\002\030\001\022\036\n\022services_ipv4" + + "_cidr\030\006 \001(\tB\002\030\001\022$\n\034cluster_secondary_ran" + + "ge_name\030\007 \001(\t\022%\n\035services_secondary_rang" + + "e_name\030\010 \001(\t\022\037\n\027cluster_ipv4_cidr_block\030" + + "\t \001(\t\022\034\n\024node_ipv4_cidr_block\030\n \001(\t\022 \n\030s" + + "ervices_ipv4_cidr_block\030\013 \001(\t\022\033\n\023allow_r" + + "oute_overlap\030\014 \001(\010\022\033\n\023tpu_ipv4_cidr_bloc" + + "k\030\r \001(\t\022\022\n\nuse_routes\030\017 \001(\010\022J\n\nstack_typ" + + "e\030\020 \001(\01626.google.container.v1beta1.IPAll" + + "ocationPolicy.StackType\022U\n\020ipv6_access_t" + + "ype\030\021 \001(\0162;.google.container.v1beta1.IPA" + + "llocationPolicy.IPv6AccessType\022[\n\035pod_ci" + + "dr_overprovision_config\030\025 \001(\01324.google.c" + + "ontainer.v1beta1.PodCIDROverprovisionCon" + + "fig\022#\n\026subnet_ipv6_cidr_block\030\026 \001(\tB\003\340A\003" + + "\022%\n\030services_ipv6_cidr_block\030\027 \001(\tB\003\340A\003\022" + + "^\n\034additional_pod_ranges_config\030\030 \001(\01323." + + "google.container.v1beta1.AdditionalPodRa" + + "ngesConfigB\003\340A\003\022/\n\"default_pod_ipv4_rang" + + "e_utilization\030\031 \001(\001B\003\340A\003\"@\n\tStackType\022\032\n" + + "\026STACK_TYPE_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001\022\r\n\tI" + + "PV4_IPV6\020\002\"N\n\016IPv6AccessType\022 \n\034IPV6_ACC" + + "ESS_TYPE_UNSPECIFIED\020\000\022\014\n\010INTERNAL\020\001\022\014\n\010" + + "EXTERNAL\020\002\"\300\003\n\023BinaryAuthorization\022\023\n\007en" + + "abled\030\001 \001(\010B\002\030\001\022U\n\017evaluation_mode\030\002 \001(\016" + + "2<.google.container.v1beta1.BinaryAuthor" + + "ization.EvaluationMode\022Y\n\017policy_binding" + + "s\030\005 \003(\0132;.google.container.v1beta1.Binar" + + "yAuthorization.PolicyBindingB\003\340A\001\032+\n\rPol" + + "icyBinding\022\021\n\004name\030\001 \001(\tH\000\210\001\001B\007\n\005_name\"\264" + + "\001\n\016EvaluationMode\022\037\n\033EVALUATION_MODE_UNS" + + "PECIFIED\020\000\022\014\n\010DISABLED\020\001\022$\n PROJECT_SING" + + "LETON_POLICY_ENFORCE\020\002\022\023\n\017POLICY_BINDING" + + "S\020\005\0228\n4POLICY_BINDINGS_AND_PROJECT_SINGL" + + "ETON_POLICY_ENFORCE\020\006\"*\n\027PodSecurityPoli" + + "cyConfig\022\017\n\007enabled\030\001 \001(\010\"D\n\031Authenticat" + + "orGroupsConfig\022\017\n\007enabled\030\001 \001(\010\022\026\n\016secur" + + "ity_group\030\002 \001(\t\"\226\001\n\020ClusterTelemetry\022=\n\004" + + "type\030\001 \001(\0162/.google.container.v1beta1.Cl" + + "usterTelemetry.Type\"C\n\004Type\022\017\n\013UNSPECIFI" + + "ED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007ENABLED\020\002\022\017\n\013SYSTE" + + "M_ONLY\020\003\"\351#\n\007Cluster\022\014\n\004name\030\001 \001(\t\022\023\n\013de" + + "scription\030\002 \001(\t\022\036\n\022initial_node_count\030\003 " + + "\001(\005B\002\030\001\022=\n\013node_config\030\004 \001(\0132$.google.co" + + "ntainer.v1beta1.NodeConfigB\002\030\001\0229\n\013master" + + "_auth\030\005 \001(\0132$.google.container.v1beta1.M" + + "asterAuth\022\027\n\017logging_service\030\006 \001(\t\022\032\n\022mo" + + "nitoring_service\030\007 \001(\t\022\017\n\007network\030\010 \001(\t\022" + + "\031\n\021cluster_ipv4_cidr\030\t \001(\t\022=\n\raddons_con" + + "fig\030\n \001(\0132&.google.container.v1beta1.Add" + + "onsConfig\022\022\n\nsubnetwork\030\013 \001(\t\0226\n\nnode_po" + + "ols\030\014 \003(\0132\".google.container.v1beta1.Nod" + + "ePool\022\021\n\tlocations\030\r \003(\t\022\037\n\027enable_kuber" + + "netes_alpha\030\016 \001(\010\022I\n\024enable_k8s_beta_api" + + "s\030\217\001 \001(\0132*.google.container.v1beta1.K8sB" + + "etaAPIConfig\022N\n\017resource_labels\030\017 \003(\01325." + + "google.container.v1beta1.Cluster.Resourc" + + "eLabelsEntry\022\031\n\021label_fingerprint\030\020 \001(\t\022" + + "9\n\013legacy_abac\030\022 \001(\0132$.google.container." + + "v1beta1.LegacyAbac\022?\n\016network_policy\030\023 \001" + + "(\0132\'.google.container.v1beta1.NetworkPol" + + "icy\022J\n\024ip_allocation_policy\030\024 \001(\0132,.goog" + + "le.container.v1beta1.IPAllocationPolicy\022" + + "c\n!master_authorized_networks_config\030\026 \001" + + "(\01328.google.container.v1beta1.MasterAuth" + + "orizedNetworksConfig\022G\n\022maintenance_poli" + + "cy\030\027 \001(\0132+.google.container.v1beta1.Main" + + "tenancePolicy\022K\n\024binary_authorization\030\030 " + + "\001(\0132-.google.container.v1beta1.BinaryAut" + + "horization\022U\n\032pod_security_policy_config" + + "\030\031 \001(\01321.google.container.v1beta1.PodSec" + + "urityPolicyConfig\022A\n\013autoscaling\030\032 \001(\0132," + + ".google.container.v1beta1.ClusterAutosca" + + "ling\022?\n\016network_config\030\033 \001(\0132\'.google.co" + + "ntainer.v1beta1.NetworkConfig\022\033\n\017private" + + "_cluster\030\034 \001(\010B\002\030\001\022\"\n\026master_ipv4_cidr_b" + + "lock\030\035 \001(\tB\002\030\001\022P\n\033default_max_pods_const" + + "raint\030\036 \001(\0132+.google.container.v1beta1.M" + + "axPodsConstraint\022Y\n\034resource_usage_expor" + + "t_config\030! \001(\01323.google.container.v1beta" + + "1.ResourceUsageExportConfig\022X\n\033authentic" + + "ator_groups_config\030\" \001(\01323.google.contai" + + "ner.v1beta1.AuthenticatorGroupsConfig\022N\n" + + "\026private_cluster_config\030% \001(\0132..google.c" + + "ontainer.v1beta1.PrivateClusterConfig\022R\n" + + "\030vertical_pod_autoscaling\030\' \001(\01320.google" + + ".container.v1beta1.VerticalPodAutoscalin" + + "g\022?\n\016shielded_nodes\030( \001(\0132\'.google.conta" + + "iner.v1beta1.ShieldedNodes\022A\n\017release_ch" + + "annel\030) \001(\0132(.google.container.v1beta1.R" + + "eleaseChannel\022R\n\030workload_identity_confi" + + "g\030+ \001(\01320.google.container.v1beta1.Workl" + + "oadIdentityConfig\022M\n\025workload_certificat" + + "es\0304 \001(\0132..google.container.v1beta1.Work" + + "loadCertificates\022E\n\021mesh_certificates\030C " + + "\001(\0132*.google.container.v1beta1.MeshCerti" + + "ficates\022J\n\024workload_alts_config\0305 \001(\0132,." + + "google.container.v1beta1.WorkloadALTSCon" + + "fig\022N\n\026cost_management_config\030- \001(\0132..go" + + "ogle.container.v1beta1.CostManagementCon" + + "fig\022E\n\021cluster_telemetry\030. \001(\0132*.google." + + "container.v1beta1.ClusterTelemetry\0227\n\ntp" + + "u_config\030/ \001(\0132#.google.container.v1beta", + "1.TpuConfig\022I\n\023notification_config\0301 \001(\013" + + "2,.google.container.v1beta1.Notification" + + "Config\022G\n\022confidential_nodes\0302 \001(\0132+.goo" + + "gle.container.v1beta1.ConfidentialNodes\022" + + "P\n\027identity_service_config\0306 \001(\0132/.googl" + + "e.container.v1beta1.IdentityServiceConfi" + + "g\022\026\n\tself_link\030d \001(\tB\003\340A\003\022\023\n\004zone\030e \001(\tB" + + "\005\030\001\340A\003\022\025\n\010endpoint\030f \001(\tB\003\340A\003\022\037\n\027initial" + + "_cluster_version\030g \001(\t\022#\n\026current_master" + + "_version\030h \001(\tB\003\340A\003\022#\n\024current_node_vers" + + "ion\030i \001(\tB\005\030\001\340A\003\022\030\n\013create_time\030j \001(\tB\003\340" + + "A\003\022=\n\006status\030k \001(\0162(.google.container.v1" + + "beta1.Cluster.StatusB\003\340A\003\022\035\n\016status_mess" + + "age\030l \001(\tB\005\030\001\340A\003\022 \n\023node_ipv4_cidr_size\030" + + "m \001(\005B\003\340A\003\022\037\n\022services_ipv4_cidr\030n \001(\tB\003" + + "\340A\003\022\"\n\023instance_group_urls\030o \003(\tB\005\030\001\340A\003\022" + + "!\n\022current_node_count\030p \001(\005B\005\030\001\340A\003\022\030\n\013ex" + + "pire_time\030q \001(\tB\003\340A\003\022\025\n\010location\030r \001(\tB\003" + + "\340A\003\022\022\n\nenable_tpu\030s \001(\010\022 \n\023tpu_ipv4_cidr" + + "_block\030t \001(\tB\003\340A\003\022I\n\023database_encryption" + + "\030& \001(\0132,.google.container.v1beta1.Databa" + + "seEncryption\022=\n\nconditions\030v \003(\0132).googl" + + "e.container.v1beta1.StatusCondition\0220\n\006m" + + "aster\030| \001(\0132 .google.container.v1beta1.M" + + "aster\0227\n\tautopilot\030\200\001 \001(\0132#.google.conta" + + "iner.v1beta1.Autopilot\022\020\n\002id\030\201\001 \001(\tB\003\340A\003" + + "\022L\n\022node_pool_defaults\030\203\001 \001(\0132*.google.c" + + "ontainer.v1beta1.NodePoolDefaultsH\000\210\001\001\022@" + + "\n\016logging_config\030\204\001 \001(\0132\'.google.contain" + + "er.v1beta1.LoggingConfig\022F\n\021monitoring_c" + + "onfig\030\205\001 \001(\0132*.google.container.v1beta1." + + "MonitoringConfig\022L\n\025node_pool_auto_confi" + + "g\030\210\001 \001(\0132,.google.container.v1beta1.Node" + + "PoolAutoConfig\022I\n\016protect_config\030\211\001 \001(\0132" + + "\'.google.container.v1beta1.ProtectConfig" + + "B\002\030\001H\001\210\001\001\022\r\n\004etag\030\213\001 \001(\t\022/\n\005fleet\030\214\001 \001(\013" + + "2\037.google.container.v1beta1.Fleet\022Q\n\027sec" + + "urity_posture_config\030\221\001 \001(\0132/.google.con" + + "tainer.v1beta1.SecurityPostureConfig\022F\n\021" + + "enterprise_config\030\225\001 \001(\0132*.google.contai" + + "ner.v1beta1.EnterpriseConfig\022M\n\025secret_m" + + "anager_config\030\226\001 \001(\0132-.google.container." + + "v1beta1.SecretManagerConfig\022U\n\031complianc" + + "e_posture_config\030\227\001 \001(\01321.google.contain" + + "er.v1beta1.CompliancePostureConfig\022 \n\rsa" + + "tisfies_pzs\030\230\001 \001(\010B\003\340A\003H\002\210\001\001\022 \n\rsatisfie" + + "s_pzi\030\231\001 \001(\010B\003\340A\003H\003\210\001\001\0325\n\023ResourceLabels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n" + + "\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVI" + + "SIONING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003\022" + + "\014\n\010STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006B\025" + + "\n\023_node_pool_defaultsB\021\n\017_protect_config" + + "B\020\n\016_satisfies_pzsB\020\n\016_satisfies_pzi\"\304\002\n" + + "\027CompliancePostureConfig\022I\n\004mode\030\001 \001(\01626" + + ".google.container.v1beta1.CompliancePost" + + "ureConfig.ModeH\000\210\001\001\022b\n\024compliance_standa" + + "rds\030\002 \003(\0132D.google.container.v1beta1.Com" + + "pliancePostureConfig.ComplianceStandard\032" + + "8\n\022ComplianceStandard\022\025\n\010standard\030\001 \001(\tH" + + "\000\210\001\001B\013\n\t_standard\"7\n\004Mode\022\024\n\020MODE_UNSPEC" + + "IFIED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007ENABLED\020\002B\007\n\005_m" + + "ode\"(\n\020K8sBetaAPIConfig\022\024\n\014enabled_apis\030" + + "\001 \003(\t\"\304\001\n\016WorkloadConfig\022F\n\naudit_mode\030\001" + + " \001(\0162-.google.container.v1beta1.Workload" + + "Config.ModeH\000\210\001\001\"[\n\004Mode\022\024\n\020MODE_UNSPECI" + + "FIED\020\000\022\014\n\010DISABLED\020\001\022\t\n\005BASIC\020\004\022\020\n\010BASEL" + + "INE\020\002\032\002\010\001\022\022\n\nRESTRICTED\020\003\032\002\010\001B\r\n\013_audit_" + + "mode\"\333\002\n\rProtectConfig\022F\n\017workload_confi" + + "g\030\001 \001(\0132(.google.container.v1beta1.Workl" + + "oadConfigH\000\210\001\001\022k\n\033workload_vulnerability" + + "_mode\030\002 \001(\0162A.google.container.v1beta1.P" + + "rotectConfig.WorkloadVulnerabilityModeH\001" + + "\210\001\001\"a\n\031WorkloadVulnerabilityMode\022+\n\'WORK" + + "LOAD_VULNERABILITY_MODE_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\t\n\005BASIC\020\002B\022\n\020_workload_conf" + + "igB\036\n\034_workload_vulnerability_mode\"\270\003\n\025S" + + "ecurityPostureConfig\022G\n\004mode\030\001 \001(\01624.goo" + + "gle.container.v1beta1.SecurityPostureCon" + + "fig.ModeH\000\210\001\001\022b\n\022vulnerability_mode\030\002 \001(" + + "\0162A.google.container.v1beta1.SecurityPos" + + "tureConfig.VulnerabilityModeH\001\210\001\001\"E\n\004Mod" + + "e\022\024\n\020MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t\n" + + "\005BASIC\020\002\022\016\n\nENTERPRISE\020\003\"\212\001\n\021Vulnerabili" + + "tyMode\022\"\n\036VULNERABILITY_MODE_UNSPECIFIED" + + "\020\000\022\032\n\026VULNERABILITY_DISABLED\020\001\022\027\n\023VULNER" + + "ABILITY_BASIC\020\002\022\034\n\030VULNERABILITY_ENTERPR" + + "ISE\020\003B\007\n\005_modeB\025\n\023_vulnerability_mode\"^\n" + + "\020NodePoolDefaults\022J\n\024node_config_default" + + "s\030\001 \001(\0132,.google.container.v1beta1.NodeC" + + "onfigDefaults\"\373\002\n\022NodeConfigDefaults\0229\n\013" + + "gcfs_config\030\001 \001(\0132$.google.container.v1b" + + "eta1.GcfsConfig\022G\n\016logging_config\030\003 \001(\0132" + + "/.google.container.v1beta1.NodePoolLoggi" + + "ngConfig\022E\n\021containerd_config\030\004 \001(\0132*.go" + + "ogle.container.v1beta1.ContainerdConfig\022" + + "P\n\027host_maintenance_policy\030\005 \001(\0132/.googl" + + "e.container.v1beta1.HostMaintenancePolic" + + "y\022H\n\023node_kubelet_config\030\006 \001(\0132+.google." + + "container.v1beta1.NodeKubeletConfig\"\351\001\n\022" + + "NodePoolAutoConfig\022;\n\014network_tags\030\001 \001(\013" + + "2%.google.container.v1beta1.NetworkTags\022" + + "L\n\025resource_manager_tags\030\002 \001(\0132-.google." + + "container.v1beta1.ResourceManagerTags\022H\n" + + "\023node_kubelet_config\030\003 \001(\0132+.google.cont" + + "ainer.v1beta1.NodeKubeletConfig\"\332)\n\rClus" + + "terUpdate\022\034\n\024desired_node_version\030\004 \001(\t\022" + + "\"\n\032desired_monitoring_service\030\005 \001(\t\022E\n\025d" + + "esired_addons_config\030\006 \001(\0132&.google.cont" + + "ainer.v1beta1.AddonsConfig\022\034\n\024desired_no" + + "de_pool_id\030\007 \001(\t\022\032\n\022desired_image_type\030\010" + + " \001(\t\022T\n\035desired_node_pool_autoscaling\030\t " + + "\001(\0132-.google.container.v1beta1.NodePoolA" + + "utoscaling\022\031\n\021desired_locations\030\n \003(\t\022k\n" + + ")desired_master_authorized_networks_conf" + + "ig\030\014 \001(\01328.google.container.v1beta1.Mast" + + "erAuthorizedNetworksConfig\022]\n\"desired_po" + + "d_security_policy_config\030\016 \001(\01321.google." + + "container.v1beta1.PodSecurityPolicyConfi" + + "g\022Q\n\033desired_cluster_autoscaling\030\017 \001(\0132," + + ".google.container.v1beta1.ClusterAutosca" + + "ling\022S\n\034desired_binary_authorization\030\020 \001" + + "(\0132-.google.container.v1beta1.BinaryAuth" + + "orization\022\037\n\027desired_logging_service\030\023 \001" + + "(\t\022a\n$desired_resource_usage_export_conf" + + "ig\030\025 \001(\01323.google.container.v1beta1.Reso" + + "urceUsageExportConfig\022Z\n desired_vertica" + + "l_pod_autoscaling\030\026 \001(\01320.google.contain" + + "er.v1beta1.VerticalPodAutoscaling\022V\n\036des" + + "ired_private_cluster_config\030\031 \001(\0132..goog" + + "le.container.v1beta1.PrivateClusterConfi" + + "g\022a\n$desired_intra_node_visibility_confi" + + "g\030\032 \001(\01323.google.container.v1beta1.Intra" + + "NodeVisibilityConfig\022P\n\033desired_default_" + + "snat_status\030\034 \001(\0132+.google.container.v1b" + + "eta1.DefaultSnatStatus\022M\n\031desired_cluste" + + "r_telemetry\030\036 \001(\0132*.google.container.v1b" + + "eta1.ClusterTelemetry\022I\n\027desired_release" + + "_channel\030\037 \001(\0132(.google.container.v1beta" + + "1.ReleaseChannel\022R\n\026private_cluster_conf" + + "ig\030% \001(\0132..google.container.v1beta1.Priv" + + "ateClusterConfigB\002\030\001\022?\n\022desired_tpu_conf" + + "ig\030& \001(\0132#.google.container.v1beta1.TpuC" + + "onfig\022V\n\037desired_l4ilb_subsetting_config" + + "\030\' \001(\0132-.google.container.v1beta1.ILBSub" + + "settingConfig\022M\n\031desired_datapath_provid" + + "er\0302 \001(\0162*.google.container.v1beta1.Data" + + "pathProvider\022]\n\"desired_private_ipv6_goo" + + "gle_access\0303 \001(\01621.google.container.v1be" + + "ta1.PrivateIPv6GoogleAccess\022Q\n\033desired_n" + + "otification_config\0307 \001(\0132,.google.contai" + + "ner.v1beta1.NotificationConfig\022\036\n\026desire" + + "d_master_version\030d \001(\t\022A\n\023desired_gcfs_c" + + "onfig\030m \001(\0132$.google.container.v1beta1.G" + + "cfsConfig\022Q\n\033desired_database_encryption" + + "\030. \001(\0132,.google.container.v1beta1.Databa" + + "seEncryption\022Z\n desired_workload_identit" + + "y_config\030/ \001(\01320.google.container.v1beta" + + "1.WorkloadIdentityConfig\022U\n\035desired_work" + + "load_certificates\030= \001(\0132..google.contain" + + "er.v1beta1.WorkloadCertificates\022M\n\031desir" + + "ed_mesh_certificates\030C \001(\0132*.google.cont" + + "ainer.v1beta1.MeshCertificates\022R\n\034desire" + + "d_workload_alts_config\030> \001(\0132,.google.co" + + "ntainer.v1beta1.WorkloadALTSConfig\022G\n\026de" + + "sired_shielded_nodes\0300 \001(\0132\'.google.cont" + + "ainer.v1beta1.ShieldedNodes\022V\n\036desired_c" + + "ost_management_config\0301 \001(\0132..google.con" + + "tainer.v1beta1.CostManagementConfig\0228\n\016d" + + "esired_master\0304 \001(\0132 .google.container.v" + + "1beta1.Master\022?\n\022desired_dns_config\0305 \001(" + + "\0132#.google.container.v1beta1.DNSConfig\022_" + + "\n#desired_service_external_ips_config\030< " + + "\001(\01322.google.container.v1beta1.ServiceEx" + + "ternalIPsConfig\022`\n#desired_authenticator" + + "_groups_config\030? \001(\01323.google.container." + + "v1beta1.AuthenticatorGroupsConfig\022G\n\026des" + + "ired_logging_config\030@ \001(\0132\'.google.conta" + + "iner.v1beta1.LoggingConfig\022M\n\031desired_mo" + + "nitoring_config\030A \001(\0132*.google.container" + + ".v1beta1.MonitoringConfig\022X\n\037desired_ide" + + "ntity_service_config\030B \001(\0132/.google.cont" + + "ainer.v1beta1.IdentityServiceConfig\022,\n\037d" + + "esired_enable_private_endpoint\030G \001(\010H\000\210\001" + + "\001\022Y\n*desired_node_pool_auto_config_netwo" + + "rk_tags\030n \001(\0132%.google.container.v1beta1" + + ".NetworkTags\022P\n\026desired_protect_config\030p" + + " \001(\0132\'.google.container.v1beta1.ProtectC" + + "onfigB\002\030\001H\001\210\001\001\022N\n\032desired_gateway_api_co" + + "nfig\030r \001(\0132*.google.container.v1beta1.Ga" + + "tewayAPIConfig\022\014\n\004etag\030s \001(\t\022Y\n desired_" + + "node_pool_logging_config\030t \001(\0132/.google." + + "container.v1beta1.NodePoolLoggingConfig\022" + + "6\n\rdesired_fleet\030u \001(\0132\037.google.containe" + + "r.v1beta1.Fleet\022?\n\022desired_stack_type\030w " + + "\001(\0162#.google.container.v1beta1.StackType" + + "\022Y\n\034additional_pod_ranges_config\030x \001(\01323" + + ".google.container.v1beta1.AdditionalPodR" + + "angesConfig\022a\n$removed_additional_pod_ra" + + "nges_config\030y \001(\01323.google.container.v1b" + + "eta1.AdditionalPodRangesConfig\022H\n\024enable" + + "_k8s_beta_apis\030z \001(\0132*.google.container." + + "v1beta1.K8sBetaAPIConfig\022X\n\037desired_secu" + + "rity_posture_config\030| \001(\0132/.google.conta" + + "iner.v1beta1.SecurityPostureConfig\022s\n\"de" + + "sired_network_performance_config\030} \001(\0132G" + + ".google.container.v1beta1.NetworkConfig." + + "ClusterNetworkPerformanceConfig\022/\n\"desir" + + "ed_enable_fqdn_network_policy\030~ \001(\010H\002\210\001\001" + + "\022a\n(desired_autopilot_workload_policy_co" + + "nfig\030\200\001 \001(\0132..google.container.v1beta1.W" + + "orkloadPolicyConfig\022J\n\025desired_k8s_beta_" + + "apis\030\203\001 \001(\0132*.google.container.v1beta1.K" + + "8sBetaAPIConfig\022Y\n\037desired_host_maintena" + + "nce_policy\030\204\001 \001(\0132/.google.container.v1b" + + "eta1.HostMaintenancePolicy\022N\n\031desired_co" + + "ntainerd_config\030\206\001 \001(\0132*.google.containe" + + "r.v1beta1.ContainerdConfig\022-\n\037desired_en" + + "able_multi_networking\030\207\001 \001(\010H\003\210\001\001\022k\n3des" + + "ired_node_pool_auto_config_resource_mana" + + "ger_tags\030\210\001 \001(\0132-.google.container.v1bet" + + "a1.ResourceManagerTags\022g\n$desired_in_tra" + + "nsit_encryption_config\030\211\001 \001(\01623.google.c" + + "ontainer.v1beta1.InTransitEncryptionConf" + + "igH\004\210\001\001\022>\n0desired_enable_cilium_cluster" + + "wide_network_policy\030\212\001 \001(\010H\005\210\001\001\022Z\n\035desir" + + "ed_secret_manager_config\030\213\001 \001(\0132-.google" + + ".container.v1beta1.SecretManagerConfigH\006" + + "\210\001\001\022Q\n\033desired_node_kubelet_config\030\215\001 \001(" + + "\0132+.google.container.v1beta1.NodeKubelet" + + "Config\022b\n,desired_node_pool_auto_config_" + + "kubelet_config\030\216\001 \001(\0132+.google.container" + + ".v1beta1.NodeKubeletConfigB\"\n _desired_e" + + "nable_private_endpointB\031\n\027_desired_prote" + + "ct_configB%\n#_desired_enable_fqdn_networ" + + "k_policyB\"\n _desired_enable_multi_networ" + + "kingB\'\n%_desired_in_transit_encryption_c" + + "onfigB3\n1_desired_enable_cilium_clusterw" + + "ide_network_policyB \n\036_desired_secret_ma" + + "nager_config\"v\n\031AdditionalPodRangesConfi" + + "g\022\027\n\017pod_range_names\030\001 \003(\t\022@\n\016pod_range_" + + "info\030\002 \003(\0132#.google.container.v1beta1.Ra" + + "ngeInfoB\003\340A\003\">\n\tRangeInfo\022\027\n\nrange_name\030" + + "\001 \001(\tB\003\340A\003\022\030\n\013utilization\030\002 \001(\001B\003\340A\003\"\375\010\n" + + "\tOperation\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\023\n\004zone\030\002 " + + "\001(\tB\005\030\001\340A\003\022E\n\016operation_type\030\003 \001(\0162(.goo" + + "gle.container.v1beta1.Operation.TypeB\003\340A" + + "\003\022?\n\006status\030\004 \001(\0162*.google.container.v1b" + + "eta1.Operation.StatusB\003\340A\003\022\023\n\006detail\030\010 \001" + + "(\tB\003\340A\003\022\035\n\016status_message\030\005 \001(\tB\005\030\001\340A\003\022\026" + + "\n\tself_link\030\006 \001(\tB\003\340A\003\022\030\n\013target_link\030\007 " + + "\001(\tB\003\340A\003\022\025\n\010location\030\t \001(\tB\003\340A\003\022\027\n\nstart" + + "_time\030\n \001(\tB\003\340A\003\022\025\n\010end_time\030\013 \001(\tB\003\340A\003\022" + + "B\n\010progress\030\014 \001(\0132+.google.container.v1b" + + "eta1.OperationProgressB\003\340A\003\022I\n\022cluster_c" + + "onditions\030\r \003(\0132).google.container.v1bet" + + "a1.StatusConditionB\002\030\001\022J\n\023nodepool_condi" + + "tions\030\016 \003(\0132).google.container.v1beta1.S" + + "tatusConditionB\002\030\001\022!\n\005error\030\017 \001(\0132\022.goog" + + "le.rpc.Status\"R\n\006Status\022\026\n\022STATUS_UNSPEC" + + "IFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DON" + + "E\020\003\022\014\n\010ABORTING\020\004\"\300\003\n\004Type\022\024\n\020TYPE_UNSPE" + + "CIFIED\020\000\022\022\n\016CREATE_CLUSTER\020\001\022\022\n\016DELETE_C" + + "LUSTER\020\002\022\022\n\016UPGRADE_MASTER\020\003\022\021\n\rUPGRADE_" + + "NODES\020\004\022\022\n\016REPAIR_CLUSTER\020\005\022\022\n\016UPDATE_CL" + + "USTER\020\006\022\024\n\020CREATE_NODE_POOL\020\007\022\024\n\020DELETE_" + + "NODE_POOL\020\010\022\034\n\030SET_NODE_POOL_MANAGEMENT\020" + + "\t\022\025\n\021AUTO_REPAIR_NODES\020\n\022\032\n\022AUTO_UPGRADE" + + "_NODES\020\013\032\002\010\001\022\022\n\nSET_LABELS\020\014\032\002\010\001\022\027\n\017SET_" + + "MASTER_AUTH\020\r\032\002\010\001\022\026\n\022SET_NODE_POOL_SIZE\020" + + "\016\022\032\n\022SET_NETWORK_POLICY\020\017\032\002\010\001\022\036\n\026SET_MAI" + + "NTENANCE_POLICY\020\020\032\002\010\001\022\022\n\016RESIZE_CLUSTER\020" + + "\022\022\031\n\025FLEET_FEATURE_UPGRADE\020\023\"\312\002\n\021Operati" + + "onProgress\022\014\n\004name\030\001 \001(\t\022:\n\006status\030\002 \001(\016" + + "2*.google.container.v1beta1.Operation.St" + + "atus\022C\n\007metrics\030\003 \003(\01322.google.container" + + ".v1beta1.OperationProgress.Metric\022;\n\006sta" + + "ges\030\004 \003(\0132+.google.container.v1beta1.Ope" + + "rationProgress\032i\n\006Metric\022\021\n\004name\030\001 \001(\tB\003" + + "\340A\002\022\023\n\tint_value\030\002 \001(\003H\000\022\026\n\014double_value" + + "\030\003 \001(\001H\000\022\026\n\014string_value\030\004 \001(\tH\000B\007\n\005valu" + + "e\"\217\001\n\024CreateClusterRequest\022\031\n\nproject_id" + + "\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\0227\n\007cl" + + "uster\030\003 \001(\0132!.google.container.v1beta1.C" + + "lusterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"l\n\021GetCluste" + "rRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004z" + "one\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001" - + "\340A\002\022\014\n\004name\030\004 \001(\t\"U\n\023ListClustersRequest" - + "\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(" - + "\tB\005\030\001\340A\002\022\016\n\006parent\030\004 \001(\t\"b\n\024ListClusters" - + "Response\0223\n\010clusters\030\001 \003(\0132!.google.cont" - + "ainer.v1beta1.Cluster\022\025\n\rmissing_zones\030\002" - + " \003(\t\"p\n\023GetOperationRequest\022\031\n\nproject_i" - + "d\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\033\n\014o" - + "peration_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\005 \001(\t\"W" - + "\n\025ListOperationsRequest\022\031\n\nproject_id\030\001 " - + "\001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\016\n\006paren" - + "t\030\004 \001(\t\"s\n\026CancelOperationRequest\022\031\n\npro" - + "ject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A" - + "\002\022\033\n\014operation_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\004" - + " \001(\t\"h\n\026ListOperationsResponse\0227\n\noperat" - + "ions\030\001 \003(\0132#.google.container.v1beta1.Op" - + "eration\022\025\n\rmissing_zones\030\002 \003(\t\"V\n\026GetSer" - + "verConfigRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001" - + "\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\004 \001(\t\"\351" - + "\005\n\014ServerConfig\022\037\n\027default_cluster_versi" - + "on\030\001 \001(\t\022\033\n\023valid_node_versions\030\003 \003(\t\022\032\n" - + "\022default_image_type\030\004 \001(\t\022\031\n\021valid_image" - + "_types\030\005 \003(\t\022\035\n\025valid_master_versions\030\006 " - + "\003(\t\022M\n\010channels\030\t \003(\0132;.google.container" - + ".v1beta1.ServerConfig.ReleaseChannelConf" - + "ig\022\\\n\024windows_version_maps\030\n \003(\0132>.googl" - + "e.container.v1beta1.ServerConfig.Windows" - + "VersionMapsEntry\032\261\002\n\024ReleaseChannelConfi" - + "g\022A\n\007channel\030\001 \001(\01620.google.container.v1" - + "beta1.ReleaseChannel.Channel\022\027\n\017default_" - + "version\030\002 \001(\t\022l\n\022available_versions\030\003 \003(" - + "\0132L.google.container.v1beta1.ServerConfi" - + "g.ReleaseChannelConfig.AvailableVersionB" - + "\002\030\001\022\026\n\016valid_versions\030\004 \003(\t\0327\n\020Available" - + "Version\022\017\n\007version\030\001 \001(\t\022\016\n\006reason\030\002 \001(\t" - + ":\002\030\001\032d\n\027WindowsVersionMapsEntry\022\013\n\003key\030\001" - + " \001(\t\0228\n\005value\030\002 \001(\0132).google.container.v" - + "1beta1.WindowsVersions:\0028\001\"F\n\026BestEffort" - + "Provisioning\022\017\n\007enabled\030\001 \001(\010\022\033\n\023min_pro" - + "vision_nodes\030\002 \001(\005\"\314\001\n\017WindowsVersions\022R" - + "\n\020windows_versions\030\001 \003(\01328.google.contai" - + "ner.v1beta1.WindowsVersions.WindowsVersi" - + "on\032e\n\016WindowsVersion\022\022\n\nimage_type\030\001 \001(\t" - + "\022\022\n\nos_version\030\002 \001(\t\022+\n\020support_end_date" - + "\030\003 \001(\0132\021.google.type.Date\"\256\001\n\025CreateNode" - + "PoolRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023", - "\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB" - + "\005\030\001\340A\002\022:\n\tnode_pool\030\004 \001(\0132\".google.conta" - + "iner.v1beta1.NodePoolB\003\340A\002\022\016\n\006parent\030\006 \001" - + "(\t\"\215\001\n\025DeleteNodePoolRequest\022\031\n\nproject_" + + "\340A\002\022\014\n\004name\030\005 \001(\t\"\255\001\n\024UpdateClusterReque" + + "st\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 " + + "\001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022<\n" + + "\006update\030\004 \001(\0132\'.google.container.v1beta1" + + ".ClusterUpdateB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\276\014\n\025Up" + + "dateNodePoolRequest\022\031\n\nproject_id\030\001 \001(\tB" + + "\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_i" + + "d\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001" + + "\340A\002\022\031\n\014node_version\030\005 \001(\tB\003\340A\002\022\027\n\nimage_" + + "type\030\006 \001(\tB\003\340A\002\022\021\n\tlocations\030\r \003(\t\022R\n\030wo" + + "rkload_metadata_config\030\016 \001(\01320.google.co" + + "ntainer.v1beta1.WorkloadMetadataConfig\022\014" + + "\n\004name\030\010 \001(\t\022L\n\020upgrade_settings\030\017 \001(\01322" + + ".google.container.v1beta1.NodePool.Upgra" + + "deSettings\0223\n\004tags\030\020 \001(\0132%.google.contai" + + "ner.v1beta1.NetworkTags\0224\n\006taints\030\021 \001(\0132" + + "$.google.container.v1beta1.NodeTaints\0224\n" + + "\006labels\030\022 \001(\0132$.google.container.v1beta1" + + ".NodeLabels\022D\n\021linux_node_config\030\023 \001(\0132)" + + ".google.container.v1beta1.LinuxNodeConfi" + + "g\022C\n\016kubelet_config\030\024 \001(\0132+.google.conta" + + "iner.v1beta1.NodeKubeletConfig\022H\n\023node_n" + + "etwork_config\030\025 \001(\0132+.google.container.v" + + "1beta1.NodeNetworkConfig\0229\n\013gcfs_config\030" + + "\026 \001(\0132$.google.container.v1beta1.GcfsCon" + + "fig\022G\n\022confidential_nodes\030\027 \001(\0132+.google" + + ".container.v1beta1.ConfidentialNodes\0223\n\005" + + "gvnic\030\035 \001(\0132$.google.container.v1beta1.V" + + "irtualNIC\022\014\n\004etag\030\036 \001(\t\0229\n\013fast_socket\030\037" + + " \001(\0132$.google.container.v1beta1.FastSock" + + "et\022G\n\016logging_config\030 \001(\0132/.google.cont" + + "ainer.v1beta1.NodePoolLoggingConfig\022A\n\017r" + + "esource_labels\030! \001(\0132(.google.container." + + "v1beta1.ResourceLabels\022H\n\023windows_node_c" + + "onfig\030\" \001(\0132+.google.container.v1beta1.W" + + "indowsNodeConfig\022A\n\014accelerators\030# \003(\0132+" + + ".google.container.v1beta1.AcceleratorCon" + + "fig\022\031\n\014machine_type\030$ \001(\tB\003\340A\001\022\026\n\tdisk_t" + + "ype\030% \001(\tB\003\340A\001\022\031\n\014disk_size_gb\030& \001(\003B\003\340A" + + "\001\022L\n\025resource_manager_tags\030\' \001(\0132-.googl" + + "e.container.v1beta1.ResourceManagerTags\022" + + "E\n\021containerd_config\030( \001(\0132*.google.cont" + + "ainer.v1beta1.ContainerdConfig\022R\n\023queued" + + "_provisioning\030* \001(\01325.google.container.v" + + "1beta1.NodePool.QueuedProvisioning\"\336\001\n\035S" + + "etNodePoolAutoscalingRequest\022\031\n\nproject_" + "id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\n" + "cluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030" - + "\004 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001(\t\"q\n\024ListNodePo" - + "olsRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n" - + "\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005" - + "\030\001\340A\002\022\016\n\006parent\030\005 \001(\t\"\212\001\n\022GetNodePoolReq" - + "uest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030" - + "\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022" - + "\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001" - + "(\t\"\251\004\n\021BlueGreenSettings\022d\n\027standard_rol" - + "lout_policy\030\001 \001(\0132A.google.container.v1b" - + "eta1.BlueGreenSettings.StandardRolloutPo" - + "licyH\000\022h\n\031autoscaled_rollout_policy\030\003 \001(" - + "\0132C.google.container.v1beta1.BlueGreenSe" - + "ttings.AutoscaledRolloutPolicyH\000\022?\n\027node" - + "_pool_soak_duration\030\002 \001(\0132\031.google.proto" - + "buf.DurationH\001\210\001\001\032\271\001\n\025StandardRolloutPol" - + "icy\022\032\n\020batch_percentage\030\001 \001(\002H\000\022\032\n\020batch" - + "_node_count\030\002 \001(\005H\000\022;\n\023batch_soak_durati" - + "on\030\003 \001(\0132\031.google.protobuf.DurationH\001\210\001\001" - + "B\023\n\021update_batch_sizeB\026\n\024_batch_soak_dur" - + "ation\032\031\n\027AutoscaledRolloutPolicyB\020\n\016roll" - + "out_policyB\032\n\030_node_pool_soak_duration\"\252" - + "\021\n\010NodePool\022\014\n\004name\030\001 \001(\t\0224\n\006config\030\002 \001(" - + "\0132$.google.container.v1beta1.NodeConfig\022" - + "\032\n\022initial_node_count\030\003 \001(\005\022\021\n\tlocations" - + "\030\r \003(\t\022C\n\016network_config\030\016 \001(\0132+.google." - + "container.v1beta1.NodeNetworkConfig\022\021\n\ts" - + "elf_link\030d \001(\t\022\017\n\007version\030e \001(\t\022\033\n\023insta" - + "nce_group_urls\030f \003(\t\0229\n\006status\030g \001(\0162).g" - + "oogle.container.v1beta1.NodePool.Status\022" - + "\032\n\016status_message\030h \001(\tB\002\030\001\022B\n\013autoscali" - + "ng\030\004 \001(\0132-.google.container.v1beta1.Node" - + "PoolAutoscaling\022<\n\nmanagement\030\005 \001(\0132(.go" - + "ogle.container.v1beta1.NodeManagement\022H\n" - + "\023max_pods_constraint\030\006 \001(\0132+.google.cont" - + "ainer.v1beta1.MaxPodsConstraint\022=\n\ncondi" - + "tions\030i \003(\0132).google.container.v1beta1.S" - + "tatusCondition\022\032\n\022pod_ipv4_cidr_size\030\007 \001" - + "(\005\022L\n\020upgrade_settings\030k \001(\01322.google.co" - + "ntainer.v1beta1.NodePool.UpgradeSettings" - + "\022L\n\020placement_policy\030l \001(\01322.google.cont" - + "ainer.v1beta1.NodePool.PlacementPolicy\022G" - + "\n\013update_info\030m \001(\0132-.google.container.v" - + "1beta1.NodePool.UpdateInfoB\003\340A\003\022\014\n\004etag\030" - + "n \001(\t\022R\n\023queued_provisioning\030p \001(\01325.goo" - + "gle.container.v1beta1.NodePool.QueuedPro" - + "visioning\022R\n\030best_effort_provisioning\030q " - + "\001(\01320.google.container.v1beta1.BestEffor" - + "tProvisioning\032\372\001\n\017UpgradeSettings\022\021\n\tmax" - + "_surge\030\001 \001(\005\022\027\n\017max_unavailable\030\002 \001(\005\022G\n" - + "\010strategy\030\003 \001(\01620.google.container.v1bet" - + "a1.NodePoolUpdateStrategyH\000\210\001\001\022M\n\023blue_g" - + "reen_settings\030\004 \001(\0132+.google.container.v" - + "1beta1.BlueGreenSettingsH\001\210\001\001B\013\n\t_strate" - + "gyB\026\n\024_blue_green_settings\032\262\004\n\nUpdateInf" - + "o\022T\n\017blue_green_info\030\001 \001(\0132;.google.cont" - + "ainer.v1beta1.NodePool.UpdateInfo.BlueGr" - + "eenInfo\032\315\003\n\rBlueGreenInfo\022P\n\005phase\030\001 \001(\016" - + "2A.google.container.v1beta1.NodePool.Upd" - + "ateInfo.BlueGreenInfo.Phase\022 \n\030blue_inst" - + "ance_group_urls\030\002 \003(\t\022!\n\031green_instance_" - + "group_urls\030\003 \003(\t\022%\n\035blue_pool_deletion_s" - + "tart_time\030\004 \001(\t\022\032\n\022green_pool_version\030\005 " - + "\001(\t\"\341\001\n\005Phase\022\025\n\021PHASE_UNSPECIFIED\020\000\022\022\n\016" - + "UPDATE_STARTED\020\001\022\027\n\023CREATING_GREEN_POOL\020" - + "\002\022\027\n\023CORDONING_BLUE_POOL\020\003\022\036\n\032WAITING_TO" - + "_DRAIN_BLUE_POOL\020\010\022\026\n\022DRAINING_BLUE_POOL" - + "\020\004\022\025\n\021NODE_POOL_SOAKING\020\005\022\026\n\022DELETING_BL" - + "UE_POOL\020\006\022\024\n\020ROLLBACK_STARTED\020\007\032\256\001\n\017Plac" - + "ementPolicy\022E\n\004type\030\001 \001(\01627.google.conta" - + "iner.v1beta1.NodePool.PlacementPolicy.Ty" - + "pe\022\024\n\014tpu_topology\030\002 \001(\t\022\023\n\013policy_name\030" - + "\003 \001(\t\")\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007C" - + "OMPACT\020\001\032%\n\022QueuedProvisioning\022\017\n\007enable" - + "d\030\001 \001(\010\"\201\001\n\006Status\022\026\n\022STATUS_UNSPECIFIED" - + "\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUN" - + "NING_WITH_ERROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010ST" - + "OPPING\020\005\022\t\n\005ERROR\020\006\"\202\001\n\016NodeManagement\022\024" - + "\n\014auto_upgrade\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(" - + "\010\022E\n\017upgrade_options\030\n \001(\0132,.google.cont" - + "ainer.v1beta1.AutoUpgradeOptions\"J\n\022Auto" - + "UpgradeOptions\022\037\n\027auto_upgrade_start_tim" - + "e\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\"j\n\021Maintena" - + "ncePolicy\022;\n\006window\030\001 \001(\0132+.google.conta" - + "iner.v1beta1.MaintenanceWindow\022\030\n\020resour" - + "ce_version\030\003 \001(\t\"\212\003\n\021MaintenanceWindow\022T" - + "\n\030daily_maintenance_window\030\002 \001(\01320.googl" - + "e.container.v1beta1.DailyMaintenanceWind" - + "owH\000\022I\n\020recurring_window\030\003 \001(\0132-.google." - + "container.v1beta1.RecurringTimeWindowH\000\022" - + "f\n\026maintenance_exclusions\030\004 \003(\0132F.google" - + ".container.v1beta1.MaintenanceWindow.Mai" - + "ntenanceExclusionsEntry\032b\n\032MaintenanceEx" - + "clusionsEntry\022\013\n\003key\030\001 \001(\t\0223\n\005value\030\002 \001(" - + "\0132$.google.container.v1beta1.TimeWindow:" - + "\0028\001B\010\n\006policy\"\325\001\n\nTimeWindow\022^\n\035maintena" - + "nce_exclusion_options\030\003 \001(\01325.google.con" - + "tainer.v1beta1.MaintenanceExclusionOptio" - + "nsH\000\022.\n\nstart_time\030\001 \001(\0132\032.google.protob" - + "uf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google." - + "protobuf.TimestampB\t\n\007options\"\271\001\n\033Mainte" - + "nanceExclusionOptions\022J\n\005scope\030\001 \001(\0162;.g" - + "oogle.container.v1beta1.MaintenanceExclu" - + "sionOptions.Scope\"N\n\005Scope\022\017\n\013NO_UPGRADE" - + "S\020\000\022\025\n\021NO_MINOR_UPGRADES\020\001\022\035\n\031NO_MINOR_O" - + "R_NODE_UPGRADES\020\002\"_\n\023RecurringTimeWindow" - + "\0224\n\006window\030\001 \001(\0132$.google.container.v1be" - + "ta1.TimeWindow\022\022\n\nrecurrence\030\002 \001(\t\">\n\026Da" - + "ilyMaintenanceWindow\022\022\n\nstart_time\030\002 \001(\t" - + "\022\020\n\010duration\030\003 \001(\t\"\327\001\n\034SetNodePoolManage" - + "mentRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023" - + "\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB" - + "\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022A\n\nm" - + "anagement\030\005 \001(\0132(.google.container.v1bet" - + "a1.NodeManagementB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\247\001\n" - + "\026SetNodePoolSizeRequest\022\031\n\nproject_id\030\001 " - + "\001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nclust" - + "er_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\t" - + "B\005\030\001\340A\002\022\027\n\nnode_count\030\005 \001(\005B\003\340A\002\022\014\n\004name" - + "\030\007 \001(\t\".\n\036CompleteNodePoolUpgradeRequest" - + "\022\014\n\004name\030\001 \001(\t\"\253\001\n\036RollbackNodePoolUpgra" - + "deRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004" + + "\004 \001(\tB\005\030\001\340A\002\022G\n\013autoscaling\030\005 \001(\0132-.goog" + + "le.container.v1beta1.NodePoolAutoscaling" + + "B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\221\001\n\030SetLoggingServic" + + "eRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004z" + + "one\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001" + + "\340A\002\022\034\n\017logging_service\030\004 \001(\tB\003\340A\002\022\014\n\004nam" + + "e\030\005 \001(\t\"\227\001\n\033SetMonitoringServiceRequest\022" + + "\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\t" + + "B\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\037\n\022mo" + + "nitoring_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(" + + "\t\"\265\001\n\026SetAddonsConfigRequest\022\031\n\nproject_" + + "id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\n" + + "cluster_id\030\003 \001(\tB\005\030\001\340A\002\022B\n\raddons_config" + + "\030\004 \001(\0132&.google.container.v1beta1.Addons" + + "ConfigB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\206\001\n\023SetLocatio" + + "nsRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004" + "zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030" - + "\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\014\n\004nam" - + "e\030\006 \001(\t\022\023\n\013respect_pdb\030\007 \001(\010\"O\n\025ListNode" - + "PoolsResponse\0226\n\nnode_pools\030\001 \003(\0132\".goog" - + "le.container.v1beta1.NodePool\"\276\003\n\022Cluste" - + "rAutoscaling\022$\n\034enable_node_autoprovisio" - + "ning\030\001 \001(\010\022@\n\017resource_limits\030\002 \003(\0132\'.go" - + "ogle.container.v1beta1.ResourceLimit\022\\\n\023" - + "autoscaling_profile\030\003 \001(\0162?.google.conta" - + "iner.v1beta1.ClusterAutoscaling.Autoscal" - + "ingProfile\022g\n#autoprovisioning_node_pool" - + "_defaults\030\004 \001(\0132:.google.container.v1bet" - + "a1.AutoprovisioningNodePoolDefaults\022\"\n\032a" - + "utoprovisioning_locations\030\005 \003(\t\"U\n\022Autos" - + "calingProfile\022\027\n\023PROFILE_UNSPECIFIED\020\000\022\030" - + "\n\024OPTIMIZE_UTILIZATION\020\001\022\014\n\010BALANCED\020\002\"\207" - + "\004\n AutoprovisioningNodePoolDefaults\022\024\n\014o" - + "auth_scopes\030\001 \003(\t\022\027\n\017service_account\030\002 \001" - + "(\t\022L\n\020upgrade_settings\030\003 \001(\01322.google.co" - + "ntainer.v1beta1.NodePool.UpgradeSettings" - + "\022<\n\nmanagement\030\004 \001(\0132(.google.container." - + "v1beta1.NodeManagement\022\034\n\020min_cpu_platfo" - + "rm\030\005 \001(\tB\002\030\001\022\024\n\014disk_size_gb\030\006 \001(\005\022\021\n\tdi" - + "sk_type\030\007 \001(\t\022R\n\030shielded_instance_confi" - + "g\030\010 \001(\01320.google.container.v1beta1.Shiel" - + "dedInstanceConfig\022\031\n\021boot_disk_kms_key\030\t" - + " \001(\t\022\022\n\nimage_type\030\n \001(\t\0223\n&insecure_kub" - + "elet_readonly_port_enabled\030\r \001(\010H\000\210\001\001B)\n" - + "\'_insecure_kubelet_readonly_port_enabled" - + "\"H\n\rResourceLimit\022\025\n\rresource_type\030\001 \001(\t" - + "\022\017\n\007minimum\030\002 \001(\003\022\017\n\007maximum\030\003 \001(\003\"\314\002\n\023N" - + "odePoolAutoscaling\022\017\n\007enabled\030\001 \001(\010\022\026\n\016m" - + "in_node_count\030\002 \001(\005\022\026\n\016max_node_count\030\003 " - + "\001(\005\022\027\n\017autoprovisioned\030\004 \001(\010\022U\n\017location" - + "_policy\030\005 \001(\0162<.google.container.v1beta1" - + ".NodePoolAutoscaling.LocationPolicy\022\034\n\024t" - + "otal_min_node_count\030\006 \001(\005\022\034\n\024total_max_n" - + "ode_count\030\007 \001(\005\"H\n\016LocationPolicy\022\037\n\033LOC" - + "ATION_POLICY_UNSPECIFIED\020\000\022\014\n\010BALANCED\020\001" - + "\022\007\n\003ANY\020\002\"\240\002\n\020SetLabelsRequest\022\031\n\nprojec" - + "t_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031" - + "\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\\\n\017resource_la" - + "bels\030\004 \003(\0132>.google.container.v1beta1.Se" - + "tLabelsRequest.ResourceLabelsEntryB\003\340A\002\022" - + "\036\n\021label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n\004name\030" - + "\007 \001(\t\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\001\n\024SetLegacyAbacRe" - + "quest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone" - + "\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002" - + "\022\024\n\007enabled\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\215\001\n" - + "\026StartIPRotationRequest\022\031\n\nproject_id\030\001 " - + "\001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nclust" - + "er_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001(\t\022\032\n\022rota" - + "te_credentials\030\007 \001(\010\"t\n\031CompleteIPRotati" - + "onRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004" + + "\001\340A\002\022\026\n\tlocations\030\004 \003(\tB\003\340A\002\022\014\n\004name\030\006 \001" + + "(\t\"\213\001\n\023UpdateMasterRequest\022\031\n\nproject_id" + + "\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncl" + + "uster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\016master_version\030" + + "\004 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\310\002\n\024SetMasterAu" + + "thRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004" + "zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030" - + "\001\340A\002\022\014\n\004name\030\007 \001(\t\"\374\002\n\021AcceleratorConfig" - + "\022\031\n\021accelerator_count\030\001 \001(\003\022\030\n\020accelerat" - + "or_type\030\002 \001(\t\022\032\n\022gpu_partition_size\030\003 \001(" - + "\t\022+\n\037max_time_shared_clients_per_gpu\030\004 \001" - + "(\003B\002\030\001\022K\n\022gpu_sharing_config\030\005 \001(\0132*.goo" - + "gle.container.v1beta1.GPUSharingConfigH\000" - + "\210\001\001\022b\n\036gpu_driver_installation_config\030\006 " - + "\001(\01325.google.container.v1beta1.GPUDriver" - + "InstallationConfigH\001\210\001\001B\025\n\023_gpu_sharing_" - + "configB!\n\037_gpu_driver_installation_confi" - + "g\"\210\002\n\020GPUSharingConfig\022\"\n\032max_shared_cli" - + "ents_per_gpu\030\001 \001(\003\022`\n\024gpu_sharing_strate" - + "gy\030\002 \001(\0162=.google.container.v1beta1.GPUS" - + "haringConfig.GPUSharingStrategyH\000\210\001\001\"U\n\022" - + "GPUSharingStrategy\022$\n GPU_SHARING_STRATE" - + "GY_UNSPECIFIED\020\000\022\020\n\014TIME_SHARING\020\001\022\007\n\003MP" - + "S\020\002B\027\n\025_gpu_sharing_strategy\"\211\002\n\033GPUDriv" - + "erInstallationConfig\022g\n\022gpu_driver_versi" - + "on\030\001 \001(\0162F.google.container.v1beta1.GPUD" - + "riverInstallationConfig.GPUDriverVersion" - + "H\000\210\001\001\"j\n\020GPUDriverVersion\022\"\n\036GPU_DRIVER_" - + "VERSION_UNSPECIFIED\020\000\022\031\n\025INSTALLATION_DI" - + "SABLED\020\001\022\013\n\007DEFAULT\020\002\022\n\n\006LATEST\020\003B\025\n\023_gp" - + "u_driver_version\"*\n\027ManagedPrometheusCon" - + "fig\022\017\n\007enabled\030\001 \001(\010\"\313\002\n\026WorkloadMetadat" - + "aConfig\022X\n\rnode_metadata\030\001 \001(\0162=.google." - + "container.v1beta1.WorkloadMetadataConfig" - + ".NodeMetadataB\002\030\001\022C\n\004mode\030\002 \001(\01625.google" - + ".container.v1beta1.WorkloadMetadataConfi" - + "g.Mode\"P\n\014NodeMetadata\022\017\n\013UNSPECIFIED\020\000\022" - + "\n\n\006SECURE\020\001\022\n\n\006EXPOSE\020\002\022\027\n\023GKE_METADATA_" - + "SERVER\020\003\"@\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\020" - + "\n\014GCE_METADATA\020\001\022\020\n\014GKE_METADATA\020\002\"\270\001\n\027S" - + "etNetworkPolicyRequest\022\031\n\nproject_id\030\001 \001" + + "\001\340A\002\022J\n\006action\030\004 \001(\01625.google.container." + + "v1beta1.SetMasterAuthRequest.ActionB\003\340A\002" + + "\0229\n\006update\030\005 \001(\0132$.google.container.v1be" + + "ta1.MasterAuthB\003\340A\002\022\014\n\004name\030\007 \001(\t\"P\n\006Act" + + "ion\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_PASSWORD\020\001\022\025\n\021GE" + + "NERATE_PASSWORD\020\002\022\020\n\014SET_USERNAME\020\003\"o\n\024D" + + "eleteClusterRequest\022\031\n\nproject_id\030\001 \001(\tB" + + "\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_i" + + "d\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\004 \001(\t\"U\n\023ListClus" + + "tersRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023" + + "\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\016\n\006parent\030\004 \001(\t\"b\n\024L" + + "istClustersResponse\0223\n\010clusters\030\001 \003(\0132!." + + "google.container.v1beta1.Cluster\022\025\n\rmiss" + + "ing_zones\030\002 \003(\t\"p\n\023GetOperationRequest\022\031" + + "\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB" + + "\005\030\001\340A\002\022\033\n\014operation_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004n" + + "ame\030\005 \001(\t\"W\n\025ListOperationsRequest\022\031\n\npr" + + "oject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340" + + "A\002\022\016\n\006parent\030\004 \001(\t\"s\n\026CancelOperationReq" + + "uest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030" + + "\002 \001(\tB\005\030\001\340A\002\022\033\n\014operation_id\030\003 \001(\tB\005\030\001\340A" + + "\002\022\014\n\004name\030\004 \001(\t\"h\n\026ListOperationsRespons" + + "e\0227\n\noperations\030\001 \003(\0132#.google.container" + + ".v1beta1.Operation\022\025\n\rmissing_zones\030\002 \003(" + + "\t\"V\n\026GetServerConfigRequest\022\031\n\nproject_i" + + "d\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\014\n\004n" + + "ame\030\004 \001(\t\"\351\005\n\014ServerConfig\022\037\n\027default_cl" + + "uster_version\030\001 \001(\t\022\033\n\023valid_node_versio" + + "ns\030\003 \003(\t\022\032\n\022default_image_type\030\004 \001(\t\022\031\n\021" + + "valid_image_types\030\005 \003(\t\022\035\n\025valid_master_" + + "versions\030\006 \003(\t\022M\n\010channels\030\t \003(\0132;.googl" + + "e.container.v1beta1.ServerConfig.Release" + + "ChannelConfig\022\\\n\024windows_version_maps\030\n " + + "\003(\0132>.google.container.v1beta1.ServerCon" + + "fig.WindowsVersionMapsEntry\032\261\002\n\024ReleaseC" + + "hannelConfig\022A\n\007channel\030\001 \001(\01620.google.c" + + "ontainer.v1beta1.ReleaseChannel.Channel\022" + + "\027\n\017default_version\030\002 \001(\t\022l\n\022available_ve" + + "rsions\030\003 \003(\0132L.google.container.v1beta1." + + "ServerConfig.ReleaseChannelConfig.Availa" + + "bleVersionB\002\030\001\022\026\n\016valid_versions\030\004 \003(\t\0327" + + "\n\020AvailableVersion\022\017\n\007version\030\001 \001(\t\022\016\n\006r", + "eason\030\002 \001(\t:\002\030\001\032d\n\027WindowsVersionMapsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(\0132).google." + + "container.v1beta1.WindowsVersions:\0028\001\"F\n" + + "\026BestEffortProvisioning\022\017\n\007enabled\030\001 \001(\010" + + "\022\033\n\023min_provision_nodes\030\002 \001(\005\"\314\001\n\017Window" + + "sVersions\022R\n\020windows_versions\030\001 \003(\01328.go" + + "ogle.container.v1beta1.WindowsVersions.W" + + "indowsVersion\032e\n\016WindowsVersion\022\022\n\nimage" + + "_type\030\001 \001(\t\022\022\n\nos_version\030\002 \001(\t\022+\n\020suppo" + + "rt_end_date\030\003 \001(\0132\021.google.type.Date\"\256\001\n" + + "\025CreateNodePoolRequest\022\031\n\nproject_id\030\001 \001" + "(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluste" - + "r_id\030\003 \001(\tB\005\030\001\340A\002\022D\n\016network_policy\030\004 \001(" - + "\0132\'.google.container.v1beta1.NetworkPoli" - + "cyB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\276\001\n\033SetMaintenance" - + "PolicyRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\021" - + "\n\004zone\030\002 \001(\tB\003\340A\002\022\027\n\ncluster_id\030\003 \001(\tB\003\340" - + "A\002\022L\n\022maintenance_policy\030\004 \001(\0132+.google." - + "container.v1beta1.MaintenancePolicyB\003\340A\002" - + "\022\014\n\004name\030\005 \001(\t\"+\n\024ListLocationsRequest\022\023" - + "\n\006parent\030\001 \001(\tB\003\340A\002\"g\n\025ListLocationsResp" - + "onse\0225\n\tlocations\030\001 \003(\0132\".google.contain" - + "er.v1beta1.Location\022\027\n\017next_page_token\030\002" - + " \001(\t\"\261\001\n\010Location\022=\n\004type\030\001 \001(\0162/.google" - + ".container.v1beta1.Location.LocationType" - + "\022\014\n\004name\030\002 \001(\t\022\023\n\013recommended\030\003 \001(\010\"C\n\014L" - + "ocationType\022\035\n\031LOCATION_TYPE_UNSPECIFIED" - + "\020\000\022\010\n\004ZONE\020\001\022\n\n\006REGION\020\002\"\262\002\n\017StatusCondi" - + "tion\022@\n\004code\030\001 \001(\0162..google.container.v1" - + "beta1.StatusCondition.CodeB\002\030\001\022\017\n\007messag" - + "e\030\002 \001(\t\022(\n\016canonical_code\030\003 \001(\0162\020.google" - + ".rpc.Code\"\241\001\n\004Code\022\013\n\007UNKNOWN\020\000\022\020\n\014GCE_S" - + "TOCKOUT\020\001\022\037\n\033GKE_SERVICE_ACCOUNT_DELETED" - + "\020\002\022\026\n\022GCE_QUOTA_EXCEEDED\020\003\022\023\n\017SET_BY_OPE" - + "RATOR\020\004\022\027\n\023CLOUD_KMS_KEY_ERROR\020\007\022\017\n\013CA_E" - + "XPIRING\020\t\032\002\030\001\"\336\t\n\rNetworkConfig\022\017\n\007netwo" - + "rk\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022$\n\034enable_i" - + "ntra_node_visibility\030\005 \001(\010\022H\n\023default_sn" - + "at_status\030\007 \001(\0132+.google.container.v1bet" - + "a1.DefaultSnatStatus\022\037\n\027enable_l4ilb_sub" - + "setting\030\n \001(\010\022E\n\021datapath_provider\030\013 \001(\016" - + "2*.google.container.v1beta1.DatapathProv" - + "ider\022U\n\032private_ipv6_google_access\030\014 \001(\016" - + "21.google.container.v1beta1.PrivateIPv6G" - + "oogleAccess\0227\n\ndns_config\030\r \001(\0132#.google" - + ".container.v1beta1.DNSConfig\022W\n\033service_" - + "external_ips_config\030\017 \001(\01322.google.conta" - + "iner.v1beta1.ServiceExternalIPsConfig\022F\n" - + "\022gateway_api_config\030\020 \001(\0132*.google.conta" - + "iner.v1beta1.GatewayAPIConfig\022\037\n\027enable_" - + "multi_networking\030\021 \001(\010\022k\n\032network_perfor" - + "mance_config\030\022 \001(\0132G.google.container.v1" - + "beta1.NetworkConfig.ClusterNetworkPerfor" - + "manceConfig\022\'\n\032enable_fqdn_network_polic" - + "y\030\023 \001(\010H\000\210\001\001\022^\n\034in_transit_encryption_co" - + "nfig\030\024 \001(\01623.google.container.v1beta1.In" - + "TransitEncryptionConfigH\001\210\001\001\0225\n(enable_c" - + "ilium_clusterwide_network_policy\030\025 \001(\010H\002" - + "\210\001\001\032\343\001\n\037ClusterNetworkPerformanceConfig\022" - + "v\n\033total_egress_bandwidth_tier\030\001 \001(\0162L.g" - + "oogle.container.v1beta1.NetworkConfig.Cl" - + "usterNetworkPerformanceConfig.TierH\000\210\001\001\"" - + "(\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\n\n\006TIER_1\020" - + "\001B\036\n\034_total_egress_bandwidth_tierB\035\n\033_en" - + "able_fqdn_network_policyB\037\n\035_in_transit_" - + "encryption_configB+\n)_enable_cilium_clus" - + "terwide_network_policy\"\305\001\n\020GatewayAPICon" - + "fig\022C\n\007channel\030\001 \001(\01622.google.container." - + "v1beta1.GatewayAPIConfig.Channel\"l\n\007Chan" - + "nel\022\027\n\023CHANNEL_UNSPECIFIED\020\000\022\024\n\020CHANNEL_" - + "DISABLED\020\001\022\034\n\024CHANNEL_EXPERIMENTAL\020\003\032\002\010\001" - + "\022\024\n\020CHANNEL_STANDARD\020\004\"+\n\030ServiceExterna" - + "lIPsConfig\022\017\n\007enabled\030\001 \001(\010\"j\n\034ListUsabl" - + "eSubnetworksRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002" - + "\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\np" - + "age_token\030\004 \001(\t\"y\n\035ListUsableSubnetworks" - + "Response\022?\n\013subnetworks\030\001 \003(\0132*.google.c" - + "ontainer.v1beta1.UsableSubnetwork\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"\205\002\n\036UsableSubnetworkS" - + "econdaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip_" - + "cidr_range\030\002 \001(\t\022O\n\006status\030\003 \001(\0162?.googl" - + "e.container.v1beta1.UsableSubnetworkSeco" - + "ndaryRange.Status\"g\n\006Status\022\013\n\007UNKNOWN\020\000" - + "\022\n\n\006UNUSED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024IN_U" - + "SE_SHAREABLE_POD\020\003\022\026\n\022IN_USE_MANAGED_POD" - + "\020\004\"\275\001\n\020UsableSubnetwork\022\022\n\nsubnetwork\030\001 " - + "\001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003 " - + "\001(\t\022U\n\023secondary_ip_ranges\030\004 \003(\01328.googl" - + "e.container.v1beta1.UsableSubnetworkSeco" - + "ndaryRange\022\026\n\016status_message\030\005 \001(\t\")\n\026Ve" - + "rticalPodAutoscaling\022\017\n\007enabled\030\001 \001(\010\"%\n" - + "\021DefaultSnatStatus\022\020\n\010disabled\030\001 \001(\010\",\n\031" - + "IntraNodeVisibilityConfig\022\017\n\007enabled\030\001 \001" - + "(\010\"&\n\023ILBSubsettingConfig\022\017\n\007enabled\030\001 \001" - + "(\010\"\201\003\n\tDNSConfig\022A\n\013cluster_dns\030\001 \001(\0162,." - + "google.container.v1beta1.DNSConfig.Provi" - + "der\022G\n\021cluster_dns_scope\030\002 \001(\0162,.google." - + "container.v1beta1.DNSConfig.DNSScope\022\032\n\022" - + "cluster_dns_domain\030\003 \001(\t\022*\n\035additive_vpc" - + "_scope_dns_domain\030\005 \001(\tB\003\340A\001\"W\n\010Provider" - + "\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\024\n\020PLATFORM_D" - + "EFAULT\020\001\022\r\n\tCLOUD_DNS\020\002\022\014\n\010KUBE_DNS\020\003\"G\n" - + "\010DNSScope\022\031\n\025DNS_SCOPE_UNSPECIFIED\020\000\022\021\n\r" - + "CLUSTER_SCOPE\020\001\022\r\n\tVPC_SCOPE\020\002\".\n\021MaxPod" - + "sConstraint\022\031\n\021max_pods_per_node\030\001 \001(\003\"j" - + "\n\026WorkloadIdentityConfig\022\036\n\022identity_nam" - + "espace\030\001 \001(\tB\002\030\001\022\025\n\rworkload_pool\030\002 \001(\t\022" - + "\031\n\021identity_provider\030\003 \001(\t\"E\n\022WorkloadAL" - + "TSConfig\022/\n\013enable_alts\030\001 \001(\0132\032.google.p" - + "rotobuf.BoolValue\"O\n\024WorkloadCertificate" - + "s\0227\n\023enable_certificates\030\001 \001(\0132\032.google." - + "protobuf.BoolValue\"K\n\020MeshCertificates\0227" - + "\n\023enable_certificates\030\001 \001(\0132\032.google.pro" - + "tobuf.BoolValue\"\362\005\n\022DatabaseEncryption\022\020" - + "\n\010key_name\030\001 \001(\t\022A\n\005state\030\002 \001(\01622.google" - + ".container.v1beta1.DatabaseEncryption.St" - + "ate\022Z\n\rcurrent_state\030\003 \001(\01629.google.cont" - + "ainer.v1beta1.DatabaseEncryption.Current" - + "StateB\003\340A\003H\000\210\001\001\022\034\n\017decryption_keys\030\004 \003(\t" - + "B\003\340A\003\022_\n\025last_operation_errors\030\005 \003(\0132;.g" - + "oogle.container.v1beta1.DatabaseEncrypti" - + "on.OperationErrorB\003\340A\003\032h\n\016OperationError" - + "\022\020\n\010key_name\030\001 \001(\t\022\025\n\rerror_message\030\002 \001(" - + "\t\022-\n\ttimestamp\030\003 \001(\0132\032.google.protobuf.T" - + "imestamp\"2\n\005State\022\013\n\007UNKNOWN\020\000\022\r\n\tENCRYP" - + "TED\020\001\022\r\n\tDECRYPTED\020\002\"\373\001\n\014CurrentState\022\035\n" - + "\031CURRENT_STATE_UNSPECIFIED\020\000\022\033\n\027CURRENT_" - + "STATE_ENCRYPTED\020\007\022\033\n\027CURRENT_STATE_DECRY" - + "PTED\020\002\022$\n CURRENT_STATE_ENCRYPTION_PENDI" - + "NG\020\003\022\"\n\036CURRENT_STATE_ENCRYPTION_ERROR\020\004" - + "\022$\n CURRENT_STATE_DECRYPTION_PENDING\020\005\022\"" - + "\n\036CURRENT_STATE_DECRYPTION_ERROR\020\006B\020\n\016_c" - + "urrent_state\"\367\002\n\031ResourceUsageExportConf" - + "ig\022e\n\024bigquery_destination\030\001 \001(\0132G.googl" - + "e.container.v1beta1.ResourceUsageExportC" - + "onfig.BigQueryDestination\022&\n\036enable_netw" - + "ork_egress_metering\030\002 \001(\010\022r\n\033consumption" - + "_metering_config\030\003 \001(\0132M.google.containe" - + "r.v1beta1.ResourceUsageExportConfig.Cons" - + "umptionMeteringConfig\032)\n\023BigQueryDestina" - + "tion\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031ConsumptionM" - + "eteringConfig\022\017\n\007enabled\030\001 \001(\010\" \n\rShield" - + "edNodes\022\017\n\007enabled\030\001 \001(\010\"\035\n\nVirtualNIC\022\017" - + "\n\007enabled\030\001 \001(\010\"\035\n\nFastSocket\022\017\n\007enabled" - + "\030\001 \001(\010\"(\n\026GetOpenIDConfigRequest\022\016\n\006pare" - + "nt\030\001 \001(\t\"\334\001\n\027GetOpenIDConfigResponse\022\016\n\006" - + "issuer\030\001 \001(\t\022\020\n\010jwks_uri\030\002 \001(\t\022 \n\030respon" - + "se_types_supported\030\003 \003(\t\022\037\n\027subject_type" - + "s_supported\030\004 \003(\t\022-\n%id_token_signing_al" - + "g_values_supported\030\005 \003(\t\022\030\n\020claims_suppo" - + "rted\030\006 \003(\t\022\023\n\013grant_types\030\007 \003(\t\"\'\n\025GetJS" - + "ONWebKeysRequest\022\016\n\006parent\030\001 \001(\t\"r\n\003Jwk\022" - + "\013\n\003kty\030\001 \001(\t\022\013\n\003alg\030\002 \001(\t\022\013\n\003use\030\003 \001(\t\022\013" - + "\n\003kid\030\004 \001(\t\022\t\n\001n\030\005 \001(\t\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007" - + " \001(\t\022\t\n\001y\030\010 \001(\t\022\013\n\003crv\030\t \001(\t\"E\n\026GetJSONW" - + "ebKeysResponse\022+\n\004keys\030\001 \003(\0132\035.google.co" - + "ntainer.v1beta1.Jwk\"2\n\"CheckAutopilotCom" - + "patibilityRequest\022\014\n\004name\030\001 \001(\t\"\201\003\n\033Auto" - + "pilotCompatibilityIssue\0224\n\020last_observat" - + "ion\030\001 \001(\0132\032.google.protobuf.Timestamp\022\027\n" - + "\017constraint_type\030\002 \001(\t\022]\n\024incompatibilit" - + "y_type\030\003 \001(\0162?.google.container.v1beta1." - + "AutopilotCompatibilityIssue.IssueType\022\020\n" - + "\010subjects\030\004 \003(\t\022\031\n\021documentation_url\030\005 \001" - + "(\t\022\023\n\013description\030\006 \001(\t\"r\n\tIssueType\022\017\n\013" - + "UNSPECIFIED\020\000\022\023\n\017INCOMPATIBILITY\020\001\022\036\n\032AD" - + "DITIONAL_CONFIG_REQUIRED\020\002\022\037\n\033PASSED_WIT" - + "H_OPTIONAL_CONFIG\020\003\"}\n#CheckAutopilotCom" - + "patibilityResponse\022E\n\006issues\030\001 \003(\01325.goo" - + "gle.container.v1beta1.AutopilotCompatibi" - + "lityIssue\022\017\n\007summary\030\002 \001(\t\"\223\001\n\016ReleaseCh" - + "annel\022A\n\007channel\030\001 \001(\01620.google.containe" - + "r.v1beta1.ReleaseChannel.Channel\">\n\007Chan" - + "nel\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n\007REGUL" - + "AR\020\002\022\n\n\006STABLE\020\003\"\'\n\024CostManagementConfig" - + "\022\017\n\007enabled\030\001 \001(\010\"U\n\tTpuConfig\022\017\n\007enable" - + "d\030\001 \001(\010\022\036\n\026use_service_networking\030\002 \001(\010\022" - + "\027\n\017ipv4_cidr_block\030\003 \001(\t\"\010\n\006Master\"\224\001\n\031A" - + "utopilotConversionStatus\022M\n\005state\030\002 \001(\0162" - + "9.google.container.v1beta1.AutopilotConv" - + "ersionStatus.StateB\003\340A\003\"(\n\005State\022\025\n\021STAT" - + "E_UNSPECIFIED\020\000\022\010\n\004DONE\020\005\"\301\001\n\tAutopilot\022" - + "\017\n\007enabled\030\001 \001(\010\022N\n\026workload_policy_conf" - + "ig\030\002 \001(\0132..google.container.v1beta1.Work" - + "loadPolicyConfig\022S\n\021conversion_status\030\003 " - + "\001(\01323.google.container.v1beta1.Autopilot" - + "ConversionStatusB\003\340A\003\"H\n\024WorkloadPolicyC" - + "onfig\022\034\n\017allow_net_admin\030\001 \001(\010H\000\210\001\001B\022\n\020_" - + "allow_net_admin\"\267\003\n\022NotificationConfig\022C" - + "\n\006pubsub\030\001 \001(\01323.google.container.v1beta" - + "1.NotificationConfig.PubSub\032\217\001\n\006PubSub\022\017" - + "\n\007enabled\030\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pub" - + "sub.googleapis.com/Topic\022C\n\006filter\030\003 \001(\013" - + "23.google.container.v1beta1.Notification", - "Config.Filter\032T\n\006Filter\022J\n\nevent_type\030\001 " - + "\003(\01626.google.container.v1beta1.Notificat" - + "ionConfig.EventType\"t\n\tEventType\022\032\n\026EVEN" - + "T_TYPE_UNSPECIFIED\020\000\022\033\n\027UPGRADE_AVAILABL" - + "E_EVENT\020\001\022\021\n\rUPGRADE_EVENT\020\002\022\033\n\027SECURITY" - + "_BULLETIN_EVENT\020\003\"$\n\021ConfidentialNodes\022\017" - + "\n\007enabled\030\001 \001(\010\"\344\001\n\014UpgradeEvent\022D\n\rreso" - + "urce_type\030\001 \001(\0162-.google.container.v1bet" - + "a1.UpgradeResourceType\022\021\n\toperation\030\002 \001(" - + "\t\0228\n\024operation_start_time\030\003 \001(\0132\032.google" - + ".protobuf.Timestamp\022\027\n\017current_version\030\004" - + " \001(\t\022\026\n\016target_version\030\005 \001(\t\022\020\n\010resource" - + "\030\006 \001(\t\"\210\002\n\025UpgradeAvailableEvent\022\017\n\007vers" - + "ion\030\001 \001(\t\022D\n\rresource_type\030\002 \001(\0162-.googl" - + "e.container.v1beta1.UpgradeResourceType\022" - + "A\n\017release_channel\030\003 \001(\0132(.google.contai" - + "ner.v1beta1.ReleaseChannel\022\020\n\010resource\030\004" - + " \001(\t\022C\n\020windows_versions\030\005 \001(\0132).google." - + "container.v1beta1.WindowsVersions\"\236\002\n\025Se" - + "curityBulletinEvent\022\036\n\026resource_type_aff" - + "ected\030\001 \001(\t\022\023\n\013bulletin_id\030\002 \001(\t\022\017\n\007cve_" - + "ids\030\003 \003(\t\022\020\n\010severity\030\004 \001(\t\022\024\n\014bulletin_" - + "uri\030\005 \001(\t\022\031\n\021brief_description\030\006 \001(\t\022!\n\031" - + "affected_supported_minors\030\007 \003(\t\022\030\n\020patch" - + "ed_versions\030\010 \003(\t\022 \n\030suggested_upgrade_t" - + "arget\030\t \001(\t\022\035\n\025manual_steps_required\030\n \001" - + "(\010\"(\n\025IdentityServiceConfig\022\017\n\007enabled\030\001" - + " \001(\010\"[\n\rLoggingConfig\022J\n\020component_confi" - + "g\030\001 \001(\01320.google.container.v1beta1.Loggi" - + "ngComponentConfig\"\364\001\n\026LoggingComponentCo" - + "nfig\022U\n\021enable_components\030\001 \003(\0162:.google" - + ".container.v1beta1.LoggingComponentConfi" - + "g.Component\"\202\001\n\tComponent\022\031\n\025COMPONENT_U" - + "NSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tW" - + "ORKLOADS\020\002\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020\004" - + "\022\026\n\022CONTROLLER_MANAGER\020\005\"\246\002\n\020MonitoringC" - + "onfig\022M\n\020component_config\030\001 \001(\01323.google" - + ".container.v1beta1.MonitoringComponentCo" - + "nfig\022T\n\031managed_prometheus_config\030\002 \001(\0132" - + "1.google.container.v1beta1.ManagedPromet" - + "heusConfig\022m\n&advanced_datapath_observab" - + "ility_config\030\003 \001(\0132=.google.container.v1" - + "beta1.AdvancedDatapathObservabilityConfi" - + "g\"\243\002\n#AdvancedDatapathObservabilityConfi" - + "g\022\026\n\016enable_metrics\030\001 \001(\010\022[\n\nrelay_mode\030" - + "\002 \001(\0162G.google.container.v1beta1.Advance" - + "dDatapathObservabilityConfig.RelayMode\022\031" - + "\n\014enable_relay\030\003 \001(\010H\000\210\001\001\"[\n\tRelayMode\022\032" - + "\n\026RELAY_MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001" - + "\022\023\n\017INTERNAL_VPC_LB\020\003\022\017\n\013EXTERNAL_LB\020\004B\017" - + "\n\r_enable_relay\"_\n\025NodePoolLoggingConfig" - + "\022F\n\016variant_config\030\001 \001(\0132..google.contai" - + "ner.v1beta1.LoggingVariantConfig\"\244\001\n\024Log" - + "gingVariantConfig\022G\n\007variant\030\001 \001(\01626.goo" - + "gle.container.v1beta1.LoggingVariantConf" - + "ig.Variant\"C\n\007Variant\022\027\n\023VARIANT_UNSPECI" - + "FIED\020\000\022\013\n\007DEFAULT\020\001\022\022\n\016MAX_THROUGHPUT\020\002\"" - + "\350\002\n\031MonitoringComponentConfig\022X\n\021enable_" - + "components\030\001 \003(\0162=.google.container.v1be" - + "ta1.MonitoringComponentConfig.Component\"" - + "\360\001\n\tComponent\022\031\n\025COMPONENT_UNSPECIFIED\020\000" - + "\022\025\n\021SYSTEM_COMPONENTS\020\001\022\021\n\tWORKLOADS\020\002\032\002" - + "\010\001\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONT" - + "ROLLER_MANAGER\020\005\022\013\n\007STORAGE\020\007\022\007\n\003HPA\020\010\022\007" - + "\n\003POD\020\t\022\r\n\tDAEMONSET\020\n\022\016\n\nDEPLOYMENT\020\013\022\017" - + "\n\013STATEFULSET\020\014\022\014\n\010CADVISOR\020\r\022\013\n\007KUBELET" - + "\020\016\"D\n\005Fleet\022\017\n\007project\030\001 \001(\t\022\022\n\nmembersh" - + "ip\030\002 \001(\t\022\026\n\016pre_registered\030\003 \001(\010\"\211\001\n\023Res" - + "ourceManagerTags\022E\n\004tags\030\001 \003(\01327.google." - + "container.v1beta1.ResourceManagerTags.Ta" - + "gsEntry\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"\260\001\n\020EnterpriseConfig\022Q\n\014clu" - + "ster_tier\030\001 \001(\01626.google.container.v1bet" - + "a1.EnterpriseConfig.ClusterTierB\003\340A\003\"I\n\013" - + "ClusterTier\022\034\n\030CLUSTER_TIER_UNSPECIFIED\020" - + "\000\022\014\n\010STANDARD\020\001\022\016\n\nENTERPRISE\020\002\"7\n\023Secre" - + "tManagerConfig\022\024\n\007enabled\030\001 \001(\010H\000\210\001\001B\n\n\010" - + "_enabled\"\240\001\n\021SecondaryBootDisk\022>\n\004mode\030\001" - + " \001(\01620.google.container.v1beta1.Secondar" - + "yBootDisk.Mode\022\022\n\ndisk_image\030\002 \001(\t\"7\n\004Mo" - + "de\022\024\n\020MODE_UNSPECIFIED\020\000\022\031\n\025CONTAINER_IM" - + "AGE_CACHE\020\001\"!\n\037SecondaryBootDiskUpdateSt" - + "rategy*\306\001\n\027PrivateIPv6GoogleAccess\022*\n&PR" - + "IVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\'" - + "\n#PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED\020\001\022" - + "(\n$PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE\020" - + "\002\022,\n(PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECT" - + "IONAL\020\003*W\n\023UpgradeResourceType\022%\n!UPGRAD" - + "E_RESOURCE_TYPE_UNSPECIFIED\020\000\022\n\n\006MASTER\020" - + "\001\022\r\n\tNODE_POOL\020\002*^\n\026NodePoolUpdateStrate" - + "gy\022)\n%NODE_POOL_UPDATE_STRATEGY_UNSPECIF" - + "IED\020\000\022\016\n\nBLUE_GREEN\020\002\022\t\n\005SURGE\020\003*a\n\020Data" - + "pathProvider\022!\n\035DATAPATH_PROVIDER_UNSPEC" - + "IFIED\020\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025\n\021ADVANCED" - + "_DATAPATH\020\002*@\n\tStackType\022\032\n\026STACK_TYPE_U" - + "NSPECIFIED\020\000\022\010\n\004IPV4\020\001\022\r\n\tIPV4_IPV6\020\002*\237\001" - + "\n\031InTransitEncryptionConfig\022,\n(IN_TRANSI" - + "T_ENCRYPTION_CONFIG_UNSPECIFIED\020\000\022\"\n\036IN_" - + "TRANSIT_ENCRYPTION_DISABLED\020\001\0220\n,IN_TRAN" - + "SIT_ENCRYPTION_INTER_NODE_TRANSPARENT\020\0022" - + "\246N\n\016ClusterManager\022\363\001\n\014ListClusters\022-.go" - + "ogle.container.v1beta1.ListClustersReque" - + "st\032..google.container.v1beta1.ListCluste" - + "rsResponse\"\203\001\332A\017project_id,zone\202\323\344\223\002k\0221/" - + "v1beta1/{parent=projects/*/locations/*}/" - + "clustersZ6\0224/v1beta1/projects/{project_i" - + "d}/zones/{zone}/clusters\022\372\001\n\nGetCluster\022" - + "+.google.container.v1beta1.GetClusterReq" - + "uest\032!.google.container.v1beta1.Cluster\"" - + "\233\001\332A\032project_id,zone,cluster_id\202\323\344\223\002x\0221/" - + "v1beta1/{name=projects/*/locations/*/clu" - + "sters/*}ZC\022A/v1beta1/projects/{project_i" - + "d}/zones/{zone}/clusters/{cluster_id}\022\370\001" - + "\n\rCreateCluster\022..google.container.v1bet" - + "a1.CreateClusterRequest\032#.google.contain" - + "er.v1beta1.Operation\"\221\001\332A\027project_id,zon" - + "e,cluster\202\323\344\223\002q\"1/v1beta1/{parent=projec" - + "ts/*/locations/*}/clusters:\001*Z9\"4/v1beta" - + "1/projects/{project_id}/zones/{zone}/clu" - + "sters:\001*\022\217\002\n\rUpdateCluster\022..google.cont" - + "ainer.v1beta1.UpdateClusterRequest\032#.goo" - + "gle.container.v1beta1.Operation\"\250\001\332A!pro" - + "ject_id,zone,cluster_id,update\202\323\344\223\002~\0321/v" - + "1beta1/{name=projects/*/locations/*/clus" - + "ters/*}:\001*ZF\032A/v1beta1/projects/{project" - + "_id}/zones/{zone}/clusters/{cluster_id}:" - + "\001*\022\232\002\n\016UpdateNodePool\022/.google.container" - + ".v1beta1.UpdateNodePoolRequest\032#.google." - + "container.v1beta1.Operation\"\261\001\202\323\344\223\002\252\001\032=/" - + "v1beta1/{name=projects/*/locations/*/clu" - + "sters/*/nodePools/*}:\001*Zf\"a/v1beta1/proj" - + "ects/{project_id}/zones/{zone}/clusters/" - + "{cluster_id}/nodePools/{node_pool_id}/up" - + "date:\001*\022\276\002\n\026SetNodePoolAutoscaling\0227.goo" - + "gle.container.v1beta1.SetNodePoolAutosca" - + "lingRequest\032#.google.container.v1beta1.O" - + "peration\"\305\001\202\323\344\223\002\276\001\"L/v1beta1/{name=proje" - + "cts/*/locations/*/clusters/*/nodePools/*" - + "}:setAutoscaling:\001*Zk\"f/v1beta1/projects" - + "/{project_id}/zones/{zone}/clusters/{clu" - + "ster_id}/nodePools/{node_pool_id}/autosc" - + "aling:\001*\022\264\002\n\021SetLoggingService\0222.google." - + "container.v1beta1.SetLoggingServiceReque" - + "st\032#.google.container.v1beta1.Operation\"" - + "\305\001\332A*project_id,zone,cluster_id,logging_" - + "service\202\323\344\223\002\221\001\"\n\006status\030g \001(\0162).google.container.v1b" + + "eta1.NodePool.StatusB\003\340A\003\022\035\n\016status_mess" + + "age\030h \001(\tB\005\030\001\340A\003\022B\n\013autoscaling\030\004 \001(\0132-." + + "google.container.v1beta1.NodePoolAutosca" + + "ling\022<\n\nmanagement\030\005 \001(\0132(.google.contai" + + "ner.v1beta1.NodeManagement\022H\n\023max_pods_c" + + "onstraint\030\006 \001(\0132+.google.container.v1bet" + + "a1.MaxPodsConstraint\022=\n\nconditions\030i \003(\013" + + "2).google.container.v1beta1.StatusCondit" + + "ion\022\037\n\022pod_ipv4_cidr_size\030\007 \001(\005B\003\340A\003\022L\n\020" + + "upgrade_settings\030k \001(\01322.google.containe" + + "r.v1beta1.NodePool.UpgradeSettings\022L\n\020pl" + + "acement_policy\030l \001(\01322.google.container." + + "v1beta1.NodePool.PlacementPolicy\022G\n\013upda" + + "te_info\030m \001(\0132-.google.container.v1beta1" + + ".NodePool.UpdateInfoB\003\340A\003\022\014\n\004etag\030n \001(\t\022" + + "R\n\023queued_provisioning\030p \001(\01325.google.co" + + "ntainer.v1beta1.NodePool.QueuedProvision" + + "ing\022R\n\030best_effort_provisioning\030q \001(\01320." + + "google.container.v1beta1.BestEffortProvi" + + "sioning\032\372\001\n\017UpgradeSettings\022\021\n\tmax_surge" + + "\030\001 \001(\005\022\027\n\017max_unavailable\030\002 \001(\005\022G\n\010strat" + + "egy\030\003 \001(\01620.google.container.v1beta1.Nod" + + "ePoolUpdateStrategyH\000\210\001\001\022M\n\023blue_green_s" + + "ettings\030\004 \001(\0132+.google.container.v1beta1" + + ".BlueGreenSettingsH\001\210\001\001B\013\n\t_strategyB\026\n\024" + + "_blue_green_settings\032\262\004\n\nUpdateInfo\022T\n\017b" + + "lue_green_info\030\001 \001(\0132;.google.container." + + "v1beta1.NodePool.UpdateInfo.BlueGreenInf" + + "o\032\315\003\n\rBlueGreenInfo\022P\n\005phase\030\001 \001(\0162A.goo" + + "gle.container.v1beta1.NodePool.UpdateInf" + + "o.BlueGreenInfo.Phase\022 \n\030blue_instance_g" + + "roup_urls\030\002 \003(\t\022!\n\031green_instance_group_" + + "urls\030\003 \003(\t\022%\n\035blue_pool_deletion_start_t" + + "ime\030\004 \001(\t\022\032\n\022green_pool_version\030\005 \001(\t\"\341\001" + + "\n\005Phase\022\025\n\021PHASE_UNSPECIFIED\020\000\022\022\n\016UPDATE" + + "_STARTED\020\001\022\027\n\023CREATING_GREEN_POOL\020\002\022\027\n\023C" + + "ORDONING_BLUE_POOL\020\003\022\036\n\032WAITING_TO_DRAIN" + + "_BLUE_POOL\020\010\022\026\n\022DRAINING_BLUE_POOL\020\004\022\025\n\021" + + "NODE_POOL_SOAKING\020\005\022\026\n\022DELETING_BLUE_POO" + + "L\020\006\022\024\n\020ROLLBACK_STARTED\020\007\032\256\001\n\017PlacementP" + + "olicy\022E\n\004type\030\001 \001(\01627.google.container.v" + + "1beta1.NodePool.PlacementPolicy.Type\022\024\n\014" + + "tpu_topology\030\002 \001(\t\022\023\n\013policy_name\030\003 \001(\t\"" + + ")\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007COMPACT" + + "\020\001\032%\n\022QueuedProvisioning\022\017\n\007enabled\030\001 \001(" + + "\010\"\201\001\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014" + + "PROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_W" + + "ITH_ERROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING" + + "\020\005\022\t\n\005ERROR\020\006\"\202\001\n\016NodeManagement\022\024\n\014auto" + + "_upgrade\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022E\n\017u" + + "pgrade_options\030\n \001(\0132,.google.container." + + "v1beta1.AutoUpgradeOptions\"T\n\022AutoUpgrad" + + "eOptions\022$\n\027auto_upgrade_start_time\030\001 \001(" + + "\tB\003\340A\003\022\030\n\013description\030\002 \001(\tB\003\340A\003\"j\n\021Main" + + "tenancePolicy\022;\n\006window\030\001 \001(\0132+.google.c" + + "ontainer.v1beta1.MaintenanceWindow\022\030\n\020re" + + "source_version\030\003 \001(\t\"\212\003\n\021MaintenanceWind" + + "ow\022T\n\030daily_maintenance_window\030\002 \001(\01320.g" + + "oogle.container.v1beta1.DailyMaintenance" + + "WindowH\000\022I\n\020recurring_window\030\003 \001(\0132-.goo" + + "gle.container.v1beta1.RecurringTimeWindo" + + "wH\000\022f\n\026maintenance_exclusions\030\004 \003(\0132F.go" + + "ogle.container.v1beta1.MaintenanceWindow" + + ".MaintenanceExclusionsEntry\032b\n\032Maintenan" + + "ceExclusionsEntry\022\013\n\003key\030\001 \001(\t\0223\n\005value\030" + + "\002 \001(\0132$.google.container.v1beta1.TimeWin" + + "dow:\0028\001B\010\n\006policy\"\325\001\n\nTimeWindow\022^\n\035main" + + "tenance_exclusion_options\030\003 \001(\01325.google" + + ".container.v1beta1.MaintenanceExclusionO" + + "ptionsH\000\022.\n\nstart_time\030\001 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\t\n\007options\"\271\001\n\033Ma" + + "intenanceExclusionOptions\022J\n\005scope\030\001 \001(\016" + + "2;.google.container.v1beta1.MaintenanceE" + + "xclusionOptions.Scope\"N\n\005Scope\022\017\n\013NO_UPG" + + "RADES\020\000\022\025\n\021NO_MINOR_UPGRADES\020\001\022\035\n\031NO_MIN" + + "OR_OR_NODE_UPGRADES\020\002\"_\n\023RecurringTimeWi" + + "ndow\0224\n\006window\030\001 \001(\0132$.google.container." + + "v1beta1.TimeWindow\022\022\n\nrecurrence\030\002 \001(\t\"C" + + "\n\026DailyMaintenanceWindow\022\022\n\nstart_time\030\002" + + " \001(\t\022\025\n\010duration\030\003 \001(\tB\003\340A\003\"\327\001\n\034SetNodeP" + + "oolManagementRequest\022\031\n\nproject_id\030\001 \001(\t" + + "B\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_" + + "id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005\030" + + "\001\340A\002\022A\n\nmanagement\030\005 \001(\0132(.google.contai" + + "ner.v1beta1.NodeManagementB\003\340A\002\022\014\n\004name\030" + + "\007 \001(\t\"\247\001\n\026SetNodePoolSizeRequest\022\031\n\nproj" + + "ect_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002" + + "\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool" + + "_id\030\004 \001(\tB\005\030\001\340A\002\022\027\n\nnode_count\030\005 \001(\005B\003\340A" + + "\002\022\014\n\004name\030\007 \001(\t\".\n\036CompleteNodePoolUpgra" + + "deRequest\022\014\n\004name\030\001 \001(\t\"\253\001\n\036RollbackNode" + + "PoolUpgradeRequest\022\031\n\nproject_id\030\001 \001(\tB\005" + + "\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id" + + "\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340" + + "A\002\022\014\n\004name\030\006 \001(\t\022\023\n\013respect_pdb\030\007 \001(\010\"O\n" + + "\025ListNodePoolsResponse\0226\n\nnode_pools\030\001 \003" + + "(\0132\".google.container.v1beta1.NodePool\"\276" + + "\003\n\022ClusterAutoscaling\022$\n\034enable_node_aut" + + "oprovisioning\030\001 \001(\010\022@\n\017resource_limits\030\002" + + " \003(\0132\'.google.container.v1beta1.Resource" + + "Limit\022\\\n\023autoscaling_profile\030\003 \001(\0162?.goo" + + "gle.container.v1beta1.ClusterAutoscaling" + + ".AutoscalingProfile\022g\n#autoprovisioning_" + + "node_pool_defaults\030\004 \001(\0132:.google.contai" + + "ner.v1beta1.AutoprovisioningNodePoolDefa" + + "ults\022\"\n\032autoprovisioning_locations\030\005 \003(\t" + + "\"U\n\022AutoscalingProfile\022\027\n\023PROFILE_UNSPEC" + + "IFIED\020\000\022\030\n\024OPTIMIZE_UTILIZATION\020\001\022\014\n\010BAL" + + "ANCED\020\002\"\207\004\n AutoprovisioningNodePoolDefa" + + "ults\022\024\n\014oauth_scopes\030\001 \003(\t\022\027\n\017service_ac" + + "count\030\002 \001(\t\022L\n\020upgrade_settings\030\003 \001(\01322." + + "google.container.v1beta1.NodePool.Upgrad" + + "eSettings\022<\n\nmanagement\030\004 \001(\0132(.google.c" + + "ontainer.v1beta1.NodeManagement\022\034\n\020min_c" + + "pu_platform\030\005 \001(\tB\002\030\001\022\024\n\014disk_size_gb\030\006 " + + "\001(\005\022\021\n\tdisk_type\030\007 \001(\t\022R\n\030shielded_insta" + + "nce_config\030\010 \001(\01320.google.container.v1be" + + "ta1.ShieldedInstanceConfig\022\031\n\021boot_disk_" + + "kms_key\030\t \001(\t\022\022\n\nimage_type\030\n \001(\t\0223\n&ins" + + "ecure_kubelet_readonly_port_enabled\030\r \001(" + + "\010H\000\210\001\001B)\n\'_insecure_kubelet_readonly_por" + + "t_enabled\"H\n\rResourceLimit\022\025\n\rresource_t" + + "ype\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n\007maximum\030\003 " + + "\001(\003\"\314\002\n\023NodePoolAutoscaling\022\017\n\007enabled\030\001" + + " \001(\010\022\026\n\016min_node_count\030\002 \001(\005\022\026\n\016max_node" + + "_count\030\003 \001(\005\022\027\n\017autoprovisioned\030\004 \001(\010\022U\n" + + "\017location_policy\030\005 \001(\0162<.google.containe" + + "r.v1beta1.NodePoolAutoscaling.LocationPo" + + "licy\022\034\n\024total_min_node_count\030\006 \001(\005\022\034\n\024to" + + "tal_max_node_count\030\007 \001(\005\"H\n\016LocationPoli" + + "cy\022\037\n\033LOCATION_POLICY_UNSPECIFIED\020\000\022\014\n\010B" + + "ALANCED\020\001\022\007\n\003ANY\020\002\"\240\002\n\020SetLabelsRequest\022" + + "\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\t" + + "B\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\\\n\017re" + + "source_labels\030\004 \003(\0132>.google.container.v" + + "1beta1.SetLabelsRequest.ResourceLabelsEn" + + "tryB\003\340A\002\022\036\n\021label_fingerprint\030\005 \001(\tB\003\340A\002" + + "\022\014\n\004name\030\007 \001(\t\0325\n\023ResourceLabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\001\n\024SetLeg" + + "acyAbacRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A" + + "\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001" + + "(\tB\005\030\001\340A\002\022\024\n\007enabled\030\004 \001(\010B\003\340A\002\022\014\n\004name\030" + + "\006 \001(\t\"\215\001\n\026StartIPRotationRequest\022\031\n\nproj" + + "ect_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002" + + "\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001(" + + "\t\022\032\n\022rotate_credentials\030\007 \001(\010\"t\n\031Complet" + + "eIPRotationRequest\022\031\n\nproject_id\030\001 \001(\tB\005" + + "\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id" + + "\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\007 \001(\t\"\374\002\n\021Accelera" + + "torConfig\022\031\n\021accelerator_count\030\001 \001(\003\022\030\n\020" + + "accelerator_type\030\002 \001(\t\022\032\n\022gpu_partition_" + + "size\030\003 \001(\t\022+\n\037max_time_shared_clients_pe" + + "r_gpu\030\004 \001(\003B\002\030\001\022K\n\022gpu_sharing_config\030\005 " + + "\001(\0132*.google.container.v1beta1.GPUSharin" + + "gConfigH\000\210\001\001\022b\n\036gpu_driver_installation_" + + "config\030\006 \001(\01325.google.container.v1beta1." + + "GPUDriverInstallationConfigH\001\210\001\001B\025\n\023_gpu" + + "_sharing_configB!\n\037_gpu_driver_installat" + + "ion_config\"\210\002\n\020GPUSharingConfig\022\"\n\032max_s" + + "hared_clients_per_gpu\030\001 \001(\003\022`\n\024gpu_shari" + + "ng_strategy\030\002 \001(\0162=.google.container.v1b" + + "eta1.GPUSharingConfig.GPUSharingStrategy" + + "H\000\210\001\001\"U\n\022GPUSharingStrategy\022$\n GPU_SHARI" + + "NG_STRATEGY_UNSPECIFIED\020\000\022\020\n\014TIME_SHARIN" + + "G\020\001\022\007\n\003MPS\020\002B\027\n\025_gpu_sharing_strategy\"\211\002" + + "\n\033GPUDriverInstallationConfig\022g\n\022gpu_dri" + + "ver_version\030\001 \001(\0162F.google.container.v1b" + + "eta1.GPUDriverInstallationConfig.GPUDriv" + + "erVersionH\000\210\001\001\"j\n\020GPUDriverVersion\022\"\n\036GP" + + "U_DRIVER_VERSION_UNSPECIFIED\020\000\022\031\n\025INSTAL" + + "LATION_DISABLED\020\001\022\013\n\007DEFAULT\020\002\022\n\n\006LATEST" + + "\020\003B\025\n\023_gpu_driver_version\"*\n\027ManagedProm" + + "etheusConfig\022\017\n\007enabled\030\001 \001(\010\"\313\002\n\026Worklo" + + "adMetadataConfig\022X\n\rnode_metadata\030\001 \001(\0162" + + "=.google.container.v1beta1.WorkloadMetad" + + "ataConfig.NodeMetadataB\002\030\001\022C\n\004mode\030\002 \001(\016" + + "25.google.container.v1beta1.WorkloadMeta" + + "dataConfig.Mode\"P\n\014NodeMetadata\022\017\n\013UNSPE" + + "CIFIED\020\000\022\n\n\006SECURE\020\001\022\n\n\006EXPOSE\020\002\022\027\n\023GKE_" + + "METADATA_SERVER\020\003\"@\n\004Mode\022\024\n\020MODE_UNSPEC" + + "IFIED\020\000\022\020\n\014GCE_METADATA\020\001\022\020\n\014GKE_METADAT" + + "A\020\002\"\270\001\n\027SetNetworkPolicyRequest\022\031\n\nproje" + + "ct_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022" + + "\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022D\n\016network_po" + + "licy\030\004 \001(\0132\'.google.container.v1beta1.Ne" + + "tworkPolicyB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\276\001\n\033SetMa" + + "intenancePolicyRequest\022\027\n\nproject_id\030\001 \001" + + "(\tB\003\340A\002\022\021\n\004zone\030\002 \001(\tB\003\340A\002\022\027\n\ncluster_id" + + "\030\003 \001(\tB\003\340A\002\022L\n\022maintenance_policy\030\004 \001(\0132" + + "+.google.container.v1beta1.MaintenancePo" + + "licyB\003\340A\002\022\014\n\004name\030\005 \001(\t\"+\n\024ListLocations" + + "Request\022\023\n\006parent\030\001 \001(\tB\003\340A\002\"g\n\025ListLoca" + + "tionsResponse\0225\n\tlocations\030\001 \003(\0132\".googl" + + "e.container.v1beta1.Location\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\261\001\n\010Location\022=\n\004type\030\001 \001(\016" + + "2/.google.container.v1beta1.Location.Loc" + + "ationType\022\014\n\004name\030\002 \001(\t\022\023\n\013recommended\030\003" + + " \001(\010\"C\n\014LocationType\022\035\n\031LOCATION_TYPE_UN" + + "SPECIFIED\020\000\022\010\n\004ZONE\020\001\022\n\n\006REGION\020\002\"\262\002\n\017St" + + "atusCondition\022@\n\004code\030\001 \001(\0162..google.con" + + "tainer.v1beta1.StatusCondition.CodeB\002\030\001\022" + + "\017\n\007message\030\002 \001(\t\022(\n\016canonical_code\030\003 \001(\016" + + "2\020.google.rpc.Code\"\241\001\n\004Code\022\013\n\007UNKNOWN\020\000" + + "\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_ACCOUN" + + "T_DELETED\020\002\022\026\n\022GCE_QUOTA_EXCEEDED\020\003\022\023\n\017S" + + "ET_BY_OPERATOR\020\004\022\027\n\023CLOUD_KMS_KEY_ERROR\020" + + "\007\022\017\n\013CA_EXPIRING\020\t\032\002\030\001\"\350\t\n\rNetworkConfig" + + "\022\024\n\007network\030\001 \001(\tB\003\340A\003\022\027\n\nsubnetwork\030\002 \001" + + "(\tB\003\340A\003\022$\n\034enable_intra_node_visibility\030" + + "\005 \001(\010\022H\n\023default_snat_status\030\007 \001(\0132+.goo" + + "gle.container.v1beta1.DefaultSnatStatus\022" + + "\037\n\027enable_l4ilb_subsetting\030\n \001(\010\022E\n\021data" + + "path_provider\030\013 \001(\0162*.google.container.v" + + "1beta1.DatapathProvider\022U\n\032private_ipv6_" + + "google_access\030\014 \001(\01621.google.container.v" + + "1beta1.PrivateIPv6GoogleAccess\0227\n\ndns_co" + + "nfig\030\r \001(\0132#.google.container.v1beta1.DN" + + "SConfig\022W\n\033service_external_ips_config\030\017" + + " \001(\01322.google.container.v1beta1.ServiceE" + + "xternalIPsConfig\022F\n\022gateway_api_config\030\020" + + " \001(\0132*.google.container.v1beta1.GatewayA" + + "PIConfig\022\037\n\027enable_multi_networking\030\021 \001(" + + "\010\022k\n\032network_performance_config\030\022 \001(\0132G." + + "google.container.v1beta1.NetworkConfig.C" + + "lusterNetworkPerformanceConfig\022\'\n\032enable" + + "_fqdn_network_policy\030\023 \001(\010H\000\210\001\001\022^\n\034in_tr" + + "ansit_encryption_config\030\024 \001(\01623.google.c" + + "ontainer.v1beta1.InTransitEncryptionConf" + + "igH\001\210\001\001\0225\n(enable_cilium_clusterwide_net" + + "work_policy\030\025 \001(\010H\002\210\001\001\032\343\001\n\037ClusterNetwor" + + "kPerformanceConfig\022v\n\033total_egress_bandw" + + "idth_tier\030\001 \001(\0162L.google.container.v1bet" + + "a1.NetworkConfig.ClusterNetworkPerforman" + + "ceConfig.TierH\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPE" + + "CIFIED\020\000\022\n\n\006TIER_1\020\001B\036\n\034_total_egress_ba" + + "ndwidth_tierB\035\n\033_enable_fqdn_network_pol" + + "icyB\037\n\035_in_transit_encryption_configB+\n)" + + "_enable_cilium_clusterwide_network_polic" + + "y\"\305\001\n\020GatewayAPIConfig\022C\n\007channel\030\001 \001(\0162" + + "2.google.container.v1beta1.GatewayAPICon" + + "fig.Channel\"l\n\007Channel\022\027\n\023CHANNEL_UNSPEC" + + "IFIED\020\000\022\024\n\020CHANNEL_DISABLED\020\001\022\034\n\024CHANNEL" + + "_EXPERIMENTAL\020\003\032\002\010\001\022\024\n\020CHANNEL_STANDARD\020" + + "\004\"+\n\030ServiceExternalIPsConfig\022\017\n\007enabled" + + "\030\001 \001(\010\"j\n\034ListUsableSubnetworksRequest\022\023" + + "\n\006parent\030\001 \001(\tB\003\340A\002\022\016\n\006filter\030\002 \001(\t\022\021\n\tp" + + "age_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"y\n\035Li" + + "stUsableSubnetworksResponse\022?\n\013subnetwor" + + "ks\030\001 \003(\0132*.google.container.v1beta1.Usab" + + "leSubnetwork\022\027\n\017next_page_token\030\002 \001(\t\"\205\002" + + "\n\036UsableSubnetworkSecondaryRange\022\022\n\nrang" + + "e_name\030\001 \001(\t\022\025\n\rip_cidr_range\030\002 \001(\t\022O\n\006s" + + "tatus\030\003 \001(\0162?.google.container.v1beta1.U" + + "sableSubnetworkSecondaryRange.Status\"g\n\006" + + "Status\022\013\n\007UNKNOWN\020\000\022\n\n\006UNUSED\020\001\022\022\n\016IN_US" + + "E_SERVICE\020\002\022\030\n\024IN_USE_SHAREABLE_POD\020\003\022\026\n" + + "\022IN_USE_MANAGED_POD\020\004\"\275\001\n\020UsableSubnetwo" + + "rk\022\022\n\nsubnetwork\030\001 \001(\t\022\017\n\007network\030\002 \001(\t\022" + + "\025\n\rip_cidr_range\030\003 \001(\t\022U\n\023secondary_ip_r" + + "anges\030\004 \003(\01328.google.container.v1beta1.U" + + "sableSubnetworkSecondaryRange\022\026\n\016status_" + + "message\030\005 \001(\t\")\n\026VerticalPodAutoscaling\022" + + "\017\n\007enabled\030\001 \001(\010\"%\n\021DefaultSnatStatus\022\020\n" + + "\010disabled\030\001 \001(\010\",\n\031IntraNodeVisibilityCo" + + "nfig\022\017\n\007enabled\030\001 \001(\010\"&\n\023ILBSubsettingCo" + + "nfig\022\017\n\007enabled\030\001 \001(\010\"\201\003\n\tDNSConfig\022A\n\013c" + + "luster_dns\030\001 \001(\0162,.google.container.v1be" + + "ta1.DNSConfig.Provider\022G\n\021cluster_dns_sc" + + "ope\030\002 \001(\0162,.google.container.v1beta1.DNS" + + "Config.DNSScope\022\032\n\022cluster_dns_domain\030\003 " + + "\001(\t\022*\n\035additive_vpc_scope_dns_domain\030\005 \001" + + "(\tB\003\340A\001\"W\n\010Provider\022\030\n\024PROVIDER_UNSPECIF" + + "IED\020\000\022\024\n\020PLATFORM_DEFAULT\020\001\022\r\n\tCLOUD_DNS" + + "\020\002\022\014\n\010KUBE_DNS\020\003\"G\n\010DNSScope\022\031\n\025DNS_SCOP" + + "E_UNSPECIFIED\020\000\022\021\n\rCLUSTER_SCOPE\020\001\022\r\n\tVP" + + "C_SCOPE\020\002\".\n\021MaxPodsConstraint\022\031\n\021max_po" + + "ds_per_node\030\001 \001(\003\"j\n\026WorkloadIdentityCon" + + "fig\022\036\n\022identity_namespace\030\001 \001(\tB\002\030\001\022\025\n\rw" + + "orkload_pool\030\002 \001(\t\022\031\n\021identity_provider\030" + + "\003 \001(\t\"E\n\022WorkloadALTSConfig\022/\n\013enable_al" + + "ts\030\001 \001(\0132\032.google.protobuf.BoolValue\"O\n\024" + + "WorkloadCertificates\0227\n\023enable_certifica" + + "tes\030\001 \001(\0132\032.google.protobuf.BoolValue\"K\n" + + "\020MeshCertificates\0227\n\023enable_certificates" + + "\030\001 \001(\0132\032.google.protobuf.BoolValue\"\362\005\n\022D" + + "atabaseEncryption\022\020\n\010key_name\030\001 \001(\t\022A\n\005s" + + "tate\030\002 \001(\01622.google.container.v1beta1.Da" + + "tabaseEncryption.State\022Z\n\rcurrent_state\030" + + "\003 \001(\01629.google.container.v1beta1.Databas" + + "eEncryption.CurrentStateB\003\340A\003H\000\210\001\001\022\034\n\017de" + + "cryption_keys\030\004 \003(\tB\003\340A\003\022_\n\025last_operati" + + "on_errors\030\005 \003(\0132;.google.container.v1bet" + + "a1.DatabaseEncryption.OperationErrorB\003\340A" + + "\003\032h\n\016OperationError\022\020\n\010key_name\030\001 \001(\t\022\025\n" + + "\rerror_message\030\002 \001(\t\022-\n\ttimestamp\030\003 \001(\0132" + + "\032.google.protobuf.Timestamp\"2\n\005State\022\013\n\007" + + "UNKNOWN\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECRYPTED\020\002\"" + + "\373\001\n\014CurrentState\022\035\n\031CURRENT_STATE_UNSPEC" + + "IFIED\020\000\022\033\n\027CURRENT_STATE_ENCRYPTED\020\007\022\033\n\027" + + "CURRENT_STATE_DECRYPTED\020\002\022$\n CURRENT_STA" + + "TE_ENCRYPTION_PENDING\020\003\022\"\n\036CURRENT_STATE" + + "_ENCRYPTION_ERROR\020\004\022$\n CURRENT_STATE_DEC" + + "RYPTION_PENDING\020\005\022\"\n\036CURRENT_STATE_DECRY" + + "PTION_ERROR\020\006B\020\n\016_current_state\"\367\002\n\031Reso" + + "urceUsageExportConfig\022e\n\024bigquery_destin" + + "ation\030\001 \001(\0132G.google.container.v1beta1.R" + + "esourceUsageExportConfig.BigQueryDestina" + + "tion\022&\n\036enable_network_egress_metering\030\002" + + " \001(\010\022r\n\033consumption_metering_config\030\003 \001(" + + "\0132M.google.container.v1beta1.ResourceUsa" + + "geExportConfig.ConsumptionMeteringConfig" + + "\032)\n\023BigQueryDestination\022\022\n\ndataset_id\030\001 " + + "\001(\t\032,\n\031ConsumptionMeteringConfig\022\017\n\007enab" + + "led\030\001 \001(\010\" \n\rShieldedNodes\022\017\n\007enabled\030\001 " + + "\001(\010\"\035\n\nVirtualNIC\022\017\n\007enabled\030\001 \001(\010\"\035\n\nFa" + + "stSocket\022\017\n\007enabled\030\001 \001(\010\"(\n\026GetOpenIDCo" + + "nfigRequest\022\016\n\006parent\030\001 \001(\t\"\334\001\n\027GetOpenI" + + "DConfigResponse\022\016\n\006issuer\030\001 \001(\t\022\020\n\010jwks_" + + "uri\030\002 \001(\t\022 \n\030response_types_supported\030\003 " + + "\003(\t\022\037\n\027subject_types_supported\030\004 \003(\t\022-\n%" + + "id_token_signing_alg_values_supported\030\005 " + + "\003(\t\022\030\n\020claims_supported\030\006 \003(\t\022\023\n\013grant_t" + + "ypes\030\007 \003(\t\"\'\n\025GetJSONWebKeysRequest\022\016\n\006p" + + "arent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003kty\030\001 \001(\t\022\013\n\003alg\030\002" + + " \001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003kid\030\004 \001(\t\022\t\n\001n\030\005 \001(" + + "\t\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t\n\001y\030\010 \001(\t\022\013\n\003cr" + + "v\030\t \001(\t\"E\n\026GetJSONWebKeysResponse\022+\n\004key" + + "s\030\001 \003(\0132\035.google.container.v1beta1.Jwk\"2" + + "\n\"CheckAutopilotCompatibilityRequest\022\014\n\004" + + "name\030\001 \001(\t\"\201\003\n\033AutopilotCompatibilityIss" + + "ue\0224\n\020last_observation\030\001 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\027\n\017constraint_type\030\002 \001(" + + "\t\022]\n\024incompatibility_type\030\003 \001(\0162?.google" + + ".container.v1beta1.AutopilotCompatibilit" + + "yIssue.IssueType\022\020\n\010subjects\030\004 \003(\t\022\031\n\021do" + + "cumentation_url\030\005 \001(\t\022\023\n\013description\030\006 \001" + + "(\t\"r\n\tIssueType\022\017\n\013UNSPECIFIED\020\000\022\023\n\017INCO" + + "MPATIBILITY\020\001\022\036\n\032ADDITIONAL_CONFIG_REQUI" + + "RED\020\002\022\037\n\033PASSED_WITH_OPTIONAL_CONFIG\020\003\"}" + + "\n#CheckAutopilotCompatibilityResponse\022E\n" + + "\006issues\030\001 \003(\01325.google.container.v1beta1" + + ".AutopilotCompatibilityIssue\022\017\n\007summary\030" + + "\002 \001(\t\"\223\001\n\016ReleaseChannel\022A\n\007channel\030\001 \001(" + + "\01620.google.container.v1beta1.ReleaseChan" + + "nel.Channel\">\n\007Channel\022\017\n\013UNSPECIFIED\020\000\022" + + "\t\n\005RAPID\020\001\022\013\n\007REGULAR\020\002\022\n\n\006STABLE\020\003\"\'\n\024C" + + "ostManagementConfig\022\017\n\007enabled\030\001 \001(\010\"U\n\t" + + "TpuConfig\022\017\n\007enabled\030\001 \001(\010\022\036\n\026use_servic" + + "e_networking\030\002 \001(\010\022\027\n\017ipv4_cidr_block\030\003 " + + "\001(\t\"\010\n\006Master\"\224\001\n\031AutopilotConversionSta" + + "tus\022M\n\005state\030\002 \001(\01629.google.container.v1" + + "beta1.AutopilotConversionStatus.StateB\003\340" + + "A\003\"(\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\010\n\004DO", + "NE\020\005\"\301\001\n\tAutopilot\022\017\n\007enabled\030\001 \001(\010\022N\n\026w" + + "orkload_policy_config\030\002 \001(\0132..google.con" + + "tainer.v1beta1.WorkloadPolicyConfig\022S\n\021c" + + "onversion_status\030\003 \001(\01323.google.containe" + + "r.v1beta1.AutopilotConversionStatusB\003\340A\003" + + "\"H\n\024WorkloadPolicyConfig\022\034\n\017allow_net_ad" + + "min\030\001 \001(\010H\000\210\001\001B\022\n\020_allow_net_admin\"\267\003\n\022N" + + "otificationConfig\022C\n\006pubsub\030\001 \001(\01323.goog" + + "le.container.v1beta1.NotificationConfig." + + "PubSub\032\217\001\n\006PubSub\022\017\n\007enabled\030\001 \001(\010\022/\n\005to" + + "pic\030\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/To" + + "pic\022C\n\006filter\030\003 \001(\01323.google.container.v" + + "1beta1.NotificationConfig.Filter\032T\n\006Filt" + + "er\022J\n\nevent_type\030\001 \003(\01626.google.containe" + + "r.v1beta1.NotificationConfig.EventType\"t" + + "\n\tEventType\022\032\n\026EVENT_TYPE_UNSPECIFIED\020\000\022" + + "\033\n\027UPGRADE_AVAILABLE_EVENT\020\001\022\021\n\rUPGRADE_" + + "EVENT\020\002\022\033\n\027SECURITY_BULLETIN_EVENT\020\003\"$\n\021" + + "ConfidentialNodes\022\017\n\007enabled\030\001 \001(\010\"\344\001\n\014U" + + "pgradeEvent\022D\n\rresource_type\030\001 \001(\0162-.goo" + + "gle.container.v1beta1.UpgradeResourceTyp" + + "e\022\021\n\toperation\030\002 \001(\t\0228\n\024operation_start_" + + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\022\027" + + "\n\017current_version\030\004 \001(\t\022\026\n\016target_versio" + + "n\030\005 \001(\t\022\020\n\010resource\030\006 \001(\t\"\210\002\n\025UpgradeAva" + + "ilableEvent\022\017\n\007version\030\001 \001(\t\022D\n\rresource" + + "_type\030\002 \001(\0162-.google.container.v1beta1.U" + + "pgradeResourceType\022A\n\017release_channel\030\003 " + + "\001(\0132(.google.container.v1beta1.ReleaseCh" + + "annel\022\020\n\010resource\030\004 \001(\t\022C\n\020windows_versi" + + "ons\030\005 \001(\0132).google.container.v1beta1.Win" + + "dowsVersions\"\236\002\n\025SecurityBulletinEvent\022\036" + + "\n\026resource_type_affected\030\001 \001(\t\022\023\n\013bullet" + + "in_id\030\002 \001(\t\022\017\n\007cve_ids\030\003 \003(\t\022\020\n\010severity" + + "\030\004 \001(\t\022\024\n\014bulletin_uri\030\005 \001(\t\022\031\n\021brief_de" + + "scription\030\006 \001(\t\022!\n\031affected_supported_mi" + + "nors\030\007 \003(\t\022\030\n\020patched_versions\030\010 \003(\t\022 \n\030" + + "suggested_upgrade_target\030\t \001(\t\022\035\n\025manual" + + "_steps_required\030\n \001(\010\"(\n\025IdentityService" + + "Config\022\017\n\007enabled\030\001 \001(\010\"[\n\rLoggingConfig" + + "\022J\n\020component_config\030\001 \001(\01320.google.cont" + + "ainer.v1beta1.LoggingComponentConfig\"\364\001\n" + + "\026LoggingComponentConfig\022U\n\021enable_compon" + + "ents\030\001 \003(\0162:.google.container.v1beta1.Lo" + + "ggingComponentConfig.Component\"\202\001\n\tCompo" + + "nent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\025\n\021SYSTE" + + "M_COMPONENTS\020\001\022\r\n\tWORKLOADS\020\002\022\r\n\tAPISERV" + + "ER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MANAGE" + + "R\020\005\"*\n\027RayClusterLoggingConfig\022\017\n\007enable" + + "d\030\001 \001(\010\"\246\002\n\020MonitoringConfig\022M\n\020componen" + + "t_config\030\001 \001(\01323.google.container.v1beta" + + "1.MonitoringComponentConfig\022T\n\031managed_p" + + "rometheus_config\030\002 \001(\01321.google.containe" + + "r.v1beta1.ManagedPrometheusConfig\022m\n&adv" + + "anced_datapath_observability_config\030\003 \001(" + + "\0132=.google.container.v1beta1.AdvancedDat" + + "apathObservabilityConfig\"\243\002\n#AdvancedDat" + + "apathObservabilityConfig\022\026\n\016enable_metri" + + "cs\030\001 \001(\010\022[\n\nrelay_mode\030\002 \001(\0162G.google.co" + + "ntainer.v1beta1.AdvancedDatapathObservab" + + "ilityConfig.RelayMode\022\031\n\014enable_relay\030\003 " + + "\001(\010H\000\210\001\001\"[\n\tRelayMode\022\032\n\026RELAY_MODE_UNSP" + + "ECIFIED\020\000\022\014\n\010DISABLED\020\001\022\023\n\017INTERNAL_VPC_" + + "LB\020\003\022\017\n\013EXTERNAL_LB\020\004B\017\n\r_enable_relay\"-" + + "\n\032RayClusterMonitoringConfig\022\017\n\007enabled\030" + + "\001 \001(\010\"_\n\025NodePoolLoggingConfig\022F\n\016varian" + + "t_config\030\001 \001(\0132..google.container.v1beta" + + "1.LoggingVariantConfig\"\244\001\n\024LoggingVarian" + + "tConfig\022G\n\007variant\030\001 \001(\01626.google.contai" + + "ner.v1beta1.LoggingVariantConfig.Variant" + + "\"C\n\007Variant\022\027\n\023VARIANT_UNSPECIFIED\020\000\022\013\n\007" + + "DEFAULT\020\001\022\022\n\016MAX_THROUGHPUT\020\002\"\362\002\n\031Monito" + + "ringComponentConfig\022X\n\021enable_components" + + "\030\001 \003(\0162=.google.container.v1beta1.Monito" + + "ringComponentConfig.Component\"\372\001\n\tCompon" + + "ent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\025\n\021SYSTEM" + + "_COMPONENTS\020\001\022\021\n\tWORKLOADS\020\002\032\002\010\001\022\r\n\tAPIS" + + "ERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MAN" + + "AGER\020\005\022\013\n\007STORAGE\020\007\022\007\n\003HPA\020\010\022\007\n\003POD\020\t\022\r\n" + + "\tDAEMONSET\020\n\022\016\n\nDEPLOYMENT\020\013\022\017\n\013STATEFUL" + + "SET\020\014\022\014\n\010CADVISOR\020\r\022\013\n\007KUBELET\020\016\022\010\n\004DCGM" + + "\020\017\"N\n\005Fleet\022\017\n\007project\030\001 \001(\t\022\027\n\nmembersh" + + "ip\030\002 \001(\tB\003\340A\003\022\033\n\016pre_registered\030\003 \001(\010B\003\340" + + "A\003\"\211\001\n\023ResourceManagerTags\022E\n\004tags\030\001 \003(\013" + + "27.google.container.v1beta1.ResourceMana" + + "gerTags.TagsEntry\032+\n\tTagsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\260\001\n\020EnterpriseCon" + + "fig\022Q\n\014cluster_tier\030\001 \001(\01626.google.conta" + + "iner.v1beta1.EnterpriseConfig.ClusterTie" + + "rB\003\340A\003\"I\n\013ClusterTier\022\034\n\030CLUSTER_TIER_UN" + + "SPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\016\n\nENTERPRISE\020" + + "\002\"7\n\023SecretManagerConfig\022\024\n\007enabled\030\001 \001(" + + "\010H\000\210\001\001B\n\n\010_enabled\"\240\001\n\021SecondaryBootDisk" + + "\022>\n\004mode\030\001 \001(\01620.google.container.v1beta" + + "1.SecondaryBootDisk.Mode\022\022\n\ndisk_image\030\002" + + " \001(\t\"7\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\031\n\025CO" + + "NTAINER_IMAGE_CACHE\020\001\"!\n\037SecondaryBootDi" + + "skUpdateStrategy*\306\001\n\027PrivateIPv6GoogleAc" + + "cess\022*\n&PRIVATE_IPV6_GOOGLE_ACCESS_UNSPE" + + "CIFIED\020\000\022\'\n#PRIVATE_IPV6_GOOGLE_ACCESS_D" + + "ISABLED\020\001\022(\n$PRIVATE_IPV6_GOOGLE_ACCESS_" + + "TO_GOOGLE\020\002\022,\n(PRIVATE_IPV6_GOOGLE_ACCES" + + "S_BIDIRECTIONAL\020\003*W\n\023UpgradeResourceType" + + "\022%\n!UPGRADE_RESOURCE_TYPE_UNSPECIFIED\020\000\022" + + "\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\002*^\n\026NodePoolUp" + + "dateStrategy\022)\n%NODE_POOL_UPDATE_STRATEG" + + "Y_UNSPECIFIED\020\000\022\016\n\nBLUE_GREEN\020\002\022\t\n\005SURGE" + + "\020\003*a\n\020DatapathProvider\022!\n\035DATAPATH_PROVI" + + "DER_UNSPECIFIED\020\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025" + + "\n\021ADVANCED_DATAPATH\020\002*@\n\tStackType\022\032\n\026ST" + + "ACK_TYPE_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001\022\r\n\tIPV4" + + "_IPV6\020\002*\237\001\n\031InTransitEncryptionConfig\022,\n" + + "(IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIE" + + "D\020\000\022\"\n\036IN_TRANSIT_ENCRYPTION_DISABLED\020\001\022" + + "0\n,IN_TRANSIT_ENCRYPTION_INTER_NODE_TRAN" + + "SPARENT\020\0022\246N\n\016ClusterManager\022\363\001\n\014ListClu" + + "sters\022-.google.container.v1beta1.ListClu" + + "stersRequest\032..google.container.v1beta1." + + "ListClustersResponse\"\203\001\332A\017project_id,zon" + + "e\202\323\344\223\002k\0221/v1beta1/{parent=projects/*/loc" + + "ations/*}/clustersZ6\0224/v1beta1/projects/" + + "{project_id}/zones/{zone}/clusters\022\372\001\n\nG" + + "etCluster\022+.google.container.v1beta1.Get" + + "ClusterRequest\032!.google.container.v1beta" + + "1.Cluster\"\233\001\332A\032project_id,zone,cluster_i" + + "d\202\323\344\223\002x\0221/v1beta1/{name=projects/*/locat" + + "ions/*/clusters/*}ZC\022A/v1beta1/projects/" + + "{project_id}/zones/{zone}/clusters/{clus" + + "ter_id}\022\370\001\n\rCreateCluster\022..google.conta" + + "iner.v1beta1.CreateClusterRequest\032#.goog" + + "le.container.v1beta1.Operation\"\221\001\332A\027proj" + + "ect_id,zone,cluster\202\323\344\223\002q\"1/v1beta1/{par" + + "ent=projects/*/locations/*}/clusters:\001*Z" + + "9\"4/v1beta1/projects/{project_id}/zones/" + + "{zone}/clusters:\001*\022\217\002\n\rUpdateCluster\022..g" + + "oogle.container.v1beta1.UpdateClusterReq" + + "uest\032#.google.container.v1beta1.Operatio" + + "n\"\250\001\332A!project_id,zone,cluster_id,update" + + "\202\323\344\223\002~\0321/v1beta1/{name=projects/*/locati" + + "ons/*/clusters/*}:\001*ZF\032A/v1beta1/project" + + "s/{project_id}/zones/{zone}/clusters/{cl" + + "uster_id}:\001*\022\232\002\n\016UpdateNodePool\022/.google" + + ".container.v1beta1.UpdateNodePoolRequest" + + "\032#.google.container.v1beta1.Operation\"\261\001" + + "\202\323\344\223\002\252\001\032=/v1beta1/{name=projects/*/locat" + + "ions/*/clusters/*/nodePools/*}:\001*Zf\"a/v1" + + "beta1/projects/{project_id}/zones/{zone}" + + "/clusters/{cluster_id}/nodePools/{node_p" + + "ool_id}/update:\001*\022\276\002\n\026SetNodePoolAutosca" + + "ling\0227.google.container.v1beta1.SetNodeP" + + "oolAutoscalingRequest\032#.google.container" + + ".v1beta1.Operation\"\305\001\202\323\344\223\002\276\001\"L/v1beta1/{" + + "name=projects/*/locations/*/clusters/*/n" + + "odePools/*}:setAutoscaling:\001*Zk\"f/v1beta" + "1/projects/{project_id}/zones/{zone}/clu" - + "sters/{cluster_id}/addons:\001*\022\253\002\n\014SetLoca" - + "tions\022-.google.container.v1beta1.SetLoca" - + "tionsRequest\032#.google.container.v1beta1." - + "Operation\"\306\001\210\002\001\332A$project_id,zone,cluste" - + "r_id,locations\202\323\344\223\002\225\001\">/v1beta1/{name=pr" - + "ojects/*/locations/*/clusters/*}:setLoca" - + "tions:\001*ZP\"K/v1beta1/projects/{project_i" - + "d}/zones/{zone}/clusters/{cluster_id}/lo" - + "cations:\001*\022\252\002\n\014UpdateMaster\022-.google.con" - + "tainer.v1beta1.UpdateMasterRequest\032#.goo" - + "gle.container.v1beta1.Operation\"\305\001\332A)pro" - + "ject_id,zone,cluster_id,master_version\202\323" - + "\344\223\002\222\001\">/v1beta1/{name=projects/*/locatio" - + "ns/*/clusters/*}:updateMaster:\001*ZM\"H/v1b" - + "eta1/projects/{project_id}/zones/{zone}/" - + "clusters/{cluster_id}/master:\001*\022\210\002\n\rSetM" - + "asterAuth\022..google.container.v1beta1.Set" - + "MasterAuthRequest\032#.google.container.v1b" - + "eta1.Operation\"\241\001\202\323\344\223\002\232\001\"?/v1beta1/{name" + + "sters/{cluster_id}/nodePools/{node_pool_" + + "id}/autoscaling:\001*\022\264\002\n\021SetLoggingService" + + "\0222.google.container.v1beta1.SetLoggingSe" + + "rviceRequest\032#.google.container.v1beta1." + + "Operation\"\305\001\332A*project_id,zone,cluster_i" + + "d,logging_service\202\323\344\223\002\221\001\"/v1beta" + "1/{name=projects/*/locations/*/clusters/" - + "*/nodePools/*}:rollback:\001*Zh\"c/v1beta1/p" - + "rojects/{project_id}/zones/{zone}/cluste" - + "rs/{cluster_id}/nodePools/{node_pool_id}" - + ":rollback:\001*\022\362\002\n\025SetNodePoolManagement\0226" - + ".google.container.v1beta1.SetNodePoolMan" - + "agementRequest\032#.google.container.v1beta" - + "1.Operation\"\373\001\332A2project_id,zone,cluster" - + "_id,node_pool_id,management\202\323\344\223\002\277\001\"K/v1b" + + "*}:setLocations:\001*ZP\"K/v1beta1/projects/" + + "{project_id}/zones/{zone}/clusters/{clus" + + "ter_id}/locations:\001*\022\252\002\n\014UpdateMaster\022-." + + "google.container.v1beta1.UpdateMasterReq" + + "uest\032#.google.container.v1beta1.Operatio" + + "n\"\305\001\332A)project_id,zone,cluster_id,master" + + "_version\202\323\344\223\002\222\001\">/v1beta1/{name=projects" + + "/*/locations/*/clusters/*}:updateMaster:" + + "\001*ZM\"H/v1beta1/projects/{project_id}/zon" + + "es/{zone}/clusters/{cluster_id}/master:\001" + + "*\022\210\002\n\rSetMasterAuth\022..google.container.v" + + "1beta1.SetMasterAuthRequest\032#.google.con" + + "tainer.v1beta1.Operation\"\241\001\202\323\344\223\002\232\001\"?/v1b" + "eta1/{name=projects/*/locations/*/cluste" - + "rs/*/nodePools/*}:setManagement:\001*Zm\"h/v" - + "1beta1/projects/{project_id}/zones/{zone" - + "}/clusters/{cluster_id}/nodePools/{node_" - + "pool_id}/setManagement:\001*\022\304\002\n\tSetLabels\022" - + "*.google.container.v1beta1.SetLabelsRequ" - + "est\032#.google.container.v1beta1.Operation" - + "\"\345\001\332A * * @deprecated google.container.v1beta1.ClusterUpdate.private_cluster_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2655 + * google/container/v1beta1/cluster_service.proto;l=2681 * @return Whether the privateClusterConfig field is set. */ @java.lang.Override @@ -1250,7 +1250,7 @@ public boolean hasPrivateClusterConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.private_cluster_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2655 + * google/container/v1beta1/cluster_service.proto;l=2681 * @return The privateClusterConfig. */ @java.lang.Override @@ -2485,7 +2485,7 @@ public com.google.container.v1beta1.NetworkTags getDesiredNodePoolAutoConfigNetw * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2743 + * google/container/v1beta1/cluster_service.proto;l=2769 * @return Whether the desiredProtectConfig field is set. */ @java.lang.Override @@ -2506,7 +2506,7 @@ public boolean hasDesiredProtectConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2743 + * google/container/v1beta1/cluster_service.proto;l=2769 * @return The desiredProtectConfig. */ @java.lang.Override @@ -10066,7 +10066,7 @@ public com.google.container.v1beta1.ReleaseChannel.Builder getDesiredReleaseChan * * * @deprecated google.container.v1beta1.ClusterUpdate.private_cluster_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2655 + * google/container/v1beta1/cluster_service.proto;l=2681 * @return Whether the privateClusterConfig field is set. */ @java.lang.Deprecated @@ -10087,7 +10087,7 @@ public boolean hasPrivateClusterConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.private_cluster_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2655 + * google/container/v1beta1/cluster_service.proto;l=2681 * @return The privateClusterConfig. */ @java.lang.Deprecated @@ -14459,7 +14459,7 @@ public Builder clearDesiredNodePoolAutoConfigNetworkTags() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2743 + * google/container/v1beta1/cluster_service.proto;l=2769 * @return Whether the desiredProtectConfig field is set. */ @java.lang.Deprecated @@ -14479,7 +14479,7 @@ public boolean hasDesiredProtectConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2743 + * google/container/v1beta1/cluster_service.proto;l=2769 * @return The desiredProtectConfig. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java index 837dbd32b9c5..3656812095b7 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java @@ -828,7 +828,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.private_cluster_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2655 + * google/container/v1beta1/cluster_service.proto;l=2681 * @return Whether the privateClusterConfig field is set. */ @java.lang.Deprecated @@ -847,7 +847,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.private_cluster_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2655 + * google/container/v1beta1/cluster_service.proto;l=2681 * @return The privateClusterConfig. */ @java.lang.Deprecated @@ -1720,7 +1720,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2743 + * google/container/v1beta1/cluster_service.proto;l=2769 * @return Whether the desiredProtectConfig field is set. */ @java.lang.Deprecated @@ -1738,7 +1738,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2743 + * google/container/v1beta1/cluster_service.proto;l=2769 * @return The desiredProtectConfig. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java index c4fa95efd3ac..1210c87eff50 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4784 + * google/container/v1beta1/cluster_service.proto;l=4814 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4784 + * google/container/v1beta1/cluster_service.proto;l=4814 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4791 + * google/container/v1beta1/cluster_service.proto;l=4821 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4791 + * google/container/v1beta1/cluster_service.proto;l=4821 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4795 + * google/container/v1beta1/cluster_service.proto;l=4825 * @return The clusterId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4795 + * google/container/v1beta1/cluster_service.proto;l=4825 * @return The bytes for clusterId. */ @java.lang.Override @@ -735,7 +735,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4784 + * google/container/v1beta1/cluster_service.proto;l=4814 * @return The projectId. */ @java.lang.Deprecated @@ -763,7 +763,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4784 + * google/container/v1beta1/cluster_service.proto;l=4814 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -791,7 +791,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4784 + * google/container/v1beta1/cluster_service.proto;l=4814 * @param value The projectId to set. * @return This builder for chaining. */ @@ -818,7 +818,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4784 + * google/container/v1beta1/cluster_service.proto;l=4814 * @return This builder for chaining. */ @java.lang.Deprecated @@ -841,7 +841,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4784 + * google/container/v1beta1/cluster_service.proto;l=4814 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -871,7 +871,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4791 + * google/container/v1beta1/cluster_service.proto;l=4821 * @return The zone. */ @java.lang.Deprecated @@ -899,7 +899,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4791 + * google/container/v1beta1/cluster_service.proto;l=4821 * @return The bytes for zone. */ @java.lang.Deprecated @@ -927,7 +927,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4791 + * google/container/v1beta1/cluster_service.proto;l=4821 * @param value The zone to set. * @return This builder for chaining. */ @@ -954,7 +954,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4791 + * google/container/v1beta1/cluster_service.proto;l=4821 * @return This builder for chaining. */ @java.lang.Deprecated @@ -977,7 +977,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4791 + * google/container/v1beta1/cluster_service.proto;l=4821 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1006,7 +1006,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4795 + * google/container/v1beta1/cluster_service.proto;l=4825 * @return The clusterId. */ @java.lang.Deprecated @@ -1033,7 +1033,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4795 + * google/container/v1beta1/cluster_service.proto;l=4825 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1060,7 +1060,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4795 + * google/container/v1beta1/cluster_service.proto;l=4825 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1086,7 +1086,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4795 + * google/container/v1beta1/cluster_service.proto;l=4825 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1108,7 +1108,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4795 + * google/container/v1beta1/cluster_service.proto;l=4825 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java index 5c6ccaab75d8..514168ee5080 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface CompleteIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4784 + * google/container/v1beta1/cluster_service.proto;l=4814 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface CompleteIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4784 + * google/container/v1beta1/cluster_service.proto;l=4814 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4791 + * google/container/v1beta1/cluster_service.proto;l=4821 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4791 + * google/container/v1beta1/cluster_service.proto;l=4821 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface CompleteIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4795 + * google/container/v1beta1/cluster_service.proto;l=4825 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface CompleteIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4795 + * google/container/v1beta1/cluster_service.proto;l=4825 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java index 1a4be48723aa..c491e40c397a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3109 + * google/container/v1beta1/cluster_service.proto;l=3136 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3109 + * google/container/v1beta1/cluster_service.proto;l=3136 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3116 + * google/container/v1beta1/cluster_service.proto;l=3143 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3116 + * google/container/v1beta1/cluster_service.proto;l=3143 * @return The bytes for zone. */ @java.lang.Override @@ -744,7 +744,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3109 + * google/container/v1beta1/cluster_service.proto;l=3136 * @return The projectId. */ @java.lang.Deprecated @@ -772,7 +772,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3109 + * google/container/v1beta1/cluster_service.proto;l=3136 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -800,7 +800,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3109 + * google/container/v1beta1/cluster_service.proto;l=3136 * @param value The projectId to set. * @return This builder for chaining. */ @@ -827,7 +827,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3109 + * google/container/v1beta1/cluster_service.proto;l=3136 * @return This builder for chaining. */ @java.lang.Deprecated @@ -850,7 +850,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3109 + * google/container/v1beta1/cluster_service.proto;l=3136 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -880,7 +880,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3116 + * google/container/v1beta1/cluster_service.proto;l=3143 * @return The zone. */ @java.lang.Deprecated @@ -908,7 +908,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3116 + * google/container/v1beta1/cluster_service.proto;l=3143 * @return The bytes for zone. */ @java.lang.Deprecated @@ -936,7 +936,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3116 + * google/container/v1beta1/cluster_service.proto;l=3143 * @param value The zone to set. * @return This builder for chaining. */ @@ -963,7 +963,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3116 + * google/container/v1beta1/cluster_service.proto;l=3143 * @return This builder for chaining. */ @java.lang.Deprecated @@ -986,7 +986,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3116 + * google/container/v1beta1/cluster_service.proto;l=3143 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java index bbf1a821abf4..7bf7f50e79a2 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface CreateClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3109 + * google/container/v1beta1/cluster_service.proto;l=3136 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface CreateClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3109 + * google/container/v1beta1/cluster_service.proto;l=3136 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3116 + * google/container/v1beta1/cluster_service.proto;l=3143 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3116 + * google/container/v1beta1/cluster_service.proto;l=3143 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java index 01188ec2d82d..3f804dfc583f 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3816 + * google/container/v1beta1/cluster_service.proto;l=3843 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3816 + * google/container/v1beta1/cluster_service.proto;l=3843 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3823 + * google/container/v1beta1/cluster_service.proto;l=3850 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3823 + * google/container/v1beta1/cluster_service.proto;l=3850 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3827 + * google/container/v1beta1/cluster_service.proto;l=3854 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3827 + * google/container/v1beta1/cluster_service.proto;l=3854 * @return The bytes for clusterId. */ @java.lang.Override @@ -836,7 +836,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3816 + * google/container/v1beta1/cluster_service.proto;l=3843 * @return The projectId. */ @java.lang.Deprecated @@ -864,7 +864,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3816 + * google/container/v1beta1/cluster_service.proto;l=3843 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -892,7 +892,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3816 + * google/container/v1beta1/cluster_service.proto;l=3843 * @param value The projectId to set. * @return This builder for chaining. */ @@ -919,7 +919,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3816 + * google/container/v1beta1/cluster_service.proto;l=3843 * @return This builder for chaining. */ @java.lang.Deprecated @@ -942,7 +942,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3816 + * google/container/v1beta1/cluster_service.proto;l=3843 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -972,7 +972,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3823 + * google/container/v1beta1/cluster_service.proto;l=3850 * @return The zone. */ @java.lang.Deprecated @@ -1000,7 +1000,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3823 + * google/container/v1beta1/cluster_service.proto;l=3850 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1028,7 +1028,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3823 + * google/container/v1beta1/cluster_service.proto;l=3850 * @param value The zone to set. * @return This builder for chaining. */ @@ -1055,7 +1055,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3823 + * google/container/v1beta1/cluster_service.proto;l=3850 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1078,7 +1078,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3823 + * google/container/v1beta1/cluster_service.proto;l=3850 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1107,7 +1107,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3827 + * google/container/v1beta1/cluster_service.proto;l=3854 * @return The clusterId. */ @java.lang.Deprecated @@ -1134,7 +1134,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3827 + * google/container/v1beta1/cluster_service.proto;l=3854 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1161,7 +1161,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3827 + * google/container/v1beta1/cluster_service.proto;l=3854 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1187,7 +1187,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3827 + * google/container/v1beta1/cluster_service.proto;l=3854 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1209,7 +1209,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3827 + * google/container/v1beta1/cluster_service.proto;l=3854 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java index cd4601b29ccb..7232e5caf4eb 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface CreateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3816 + * google/container/v1beta1/cluster_service.proto;l=3843 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface CreateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3816 + * google/container/v1beta1/cluster_service.proto;l=3843 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3823 + * google/container/v1beta1/cluster_service.proto;l=3850 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3823 + * google/container/v1beta1/cluster_service.proto;l=3850 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface CreateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3827 + * google/container/v1beta1/cluster_service.proto;l=3854 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface CreateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3827 + * google/container/v1beta1/cluster_service.proto;l=3854 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java index a7a2a391a8a7..be7a3d4cbc70 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java @@ -125,11 +125,11 @@ public com.google.protobuf.ByteString getStartTimeBytes() { * * *
        -   * [Output only] Duration of the time window, automatically chosen to be
        +   * Output only. Duration of the time window, automatically chosen to be
            * smallest possible in the given scenario.
            * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The duration. */ @@ -149,11 +149,11 @@ public java.lang.String getDuration() { * * *
        -   * [Output only] Duration of the time window, automatically chosen to be
        +   * Output only. Duration of the time window, automatically chosen to be
            * smallest possible in the given scenario.
            * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for duration. */ @@ -652,11 +652,11 @@ public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] Duration of the time window, automatically chosen to be
        +     * Output only. Duration of the time window, automatically chosen to be
              * smallest possible in the given scenario.
              * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The duration. */ @@ -675,11 +675,11 @@ public java.lang.String getDuration() { * * *
        -     * [Output only] Duration of the time window, automatically chosen to be
        +     * Output only. Duration of the time window, automatically chosen to be
              * smallest possible in the given scenario.
              * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for duration. */ @@ -698,11 +698,11 @@ public com.google.protobuf.ByteString getDurationBytes() { * * *
        -     * [Output only] Duration of the time window, automatically chosen to be
        +     * Output only. Duration of the time window, automatically chosen to be
              * smallest possible in the given scenario.
              * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The duration to set. * @return This builder for chaining. @@ -720,11 +720,11 @@ public Builder setDuration(java.lang.String value) { * * *
        -     * [Output only] Duration of the time window, automatically chosen to be
        +     * Output only. Duration of the time window, automatically chosen to be
              * smallest possible in the given scenario.
              * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -738,11 +738,11 @@ public Builder clearDuration() { * * *
        -     * [Output only] Duration of the time window, automatically chosen to be
        +     * Output only. Duration of the time window, automatically chosen to be
              * smallest possible in the given scenario.
              * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for duration to set. * @return This builder for chaining. diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java index 3f5e91e448dc..ffe7aed9e2c3 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java @@ -55,11 +55,11 @@ public interface DailyMaintenanceWindowOrBuilder * * *
        -   * [Output only] Duration of the time window, automatically chosen to be
        +   * Output only. Duration of the time window, automatically chosen to be
            * smallest possible in the given scenario.
            * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The duration. */ @@ -68,11 +68,11 @@ public interface DailyMaintenanceWindowOrBuilder * * *
        -   * [Output only] Duration of the time window, automatically chosen to be
        +   * Output only. Duration of the time window, automatically chosen to be
            * smallest possible in the given scenario.
            * 
        * - * string duration = 3; + * string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for duration. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java index c2a192e2adb3..428a0cbe04e6 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3581 + * google/container/v1beta1/cluster_service.proto;l=3608 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3581 + * google/container/v1beta1/cluster_service.proto;l=3608 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3588 + * google/container/v1beta1/cluster_service.proto;l=3615 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3588 + * google/container/v1beta1/cluster_service.proto;l=3615 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3592 + * google/container/v1beta1/cluster_service.proto;l=3619 * @return The clusterId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3592 + * google/container/v1beta1/cluster_service.proto;l=3619 * @return The bytes for clusterId. */ @java.lang.Override @@ -734,7 +734,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3581 + * google/container/v1beta1/cluster_service.proto;l=3608 * @return The projectId. */ @java.lang.Deprecated @@ -762,7 +762,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3581 + * google/container/v1beta1/cluster_service.proto;l=3608 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -790,7 +790,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3581 + * google/container/v1beta1/cluster_service.proto;l=3608 * @param value The projectId to set. * @return This builder for chaining. */ @@ -817,7 +817,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3581 + * google/container/v1beta1/cluster_service.proto;l=3608 * @return This builder for chaining. */ @java.lang.Deprecated @@ -840,7 +840,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3581 + * google/container/v1beta1/cluster_service.proto;l=3608 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -870,7 +870,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3588 + * google/container/v1beta1/cluster_service.proto;l=3615 * @return The zone. */ @java.lang.Deprecated @@ -898,7 +898,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3588 + * google/container/v1beta1/cluster_service.proto;l=3615 * @return The bytes for zone. */ @java.lang.Deprecated @@ -926,7 +926,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3588 + * google/container/v1beta1/cluster_service.proto;l=3615 * @param value The zone to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3588 + * google/container/v1beta1/cluster_service.proto;l=3615 * @return This builder for chaining. */ @java.lang.Deprecated @@ -976,7 +976,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3588 + * google/container/v1beta1/cluster_service.proto;l=3615 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1005,7 +1005,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3592 + * google/container/v1beta1/cluster_service.proto;l=3619 * @return The clusterId. */ @java.lang.Deprecated @@ -1032,7 +1032,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3592 + * google/container/v1beta1/cluster_service.proto;l=3619 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1059,7 +1059,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3592 + * google/container/v1beta1/cluster_service.proto;l=3619 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1085,7 +1085,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3592 + * google/container/v1beta1/cluster_service.proto;l=3619 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1107,7 +1107,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3592 + * google/container/v1beta1/cluster_service.proto;l=3619 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java index 54c4e83fefd4..a58616293f68 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface DeleteClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3581 + * google/container/v1beta1/cluster_service.proto;l=3608 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface DeleteClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3581 + * google/container/v1beta1/cluster_service.proto;l=3608 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3588 + * google/container/v1beta1/cluster_service.proto;l=3615 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3588 + * google/container/v1beta1/cluster_service.proto;l=3615 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface DeleteClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3592 + * google/container/v1beta1/cluster_service.proto;l=3619 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface DeleteClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3592 + * google/container/v1beta1/cluster_service.proto;l=3619 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java index 9e79dae2472f..93d4f1dd50c1 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3844 + * google/container/v1beta1/cluster_service.proto;l=3871 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3844 + * google/container/v1beta1/cluster_service.proto;l=3871 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3851 + * google/container/v1beta1/cluster_service.proto;l=3878 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3851 + * google/container/v1beta1/cluster_service.proto;l=3878 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3855 + * google/container/v1beta1/cluster_service.proto;l=3882 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3855 + * google/container/v1beta1/cluster_service.proto;l=3882 * @return The bytes for clusterId. */ @java.lang.Override @@ -270,7 +270,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3860 + * google/container/v1beta1/cluster_service.proto;l=3887 * @return The nodePoolId. */ @java.lang.Override @@ -298,7 +298,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3860 + * google/container/v1beta1/cluster_service.proto;l=3887 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -822,7 +822,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3844 + * google/container/v1beta1/cluster_service.proto;l=3871 * @return The projectId. */ @java.lang.Deprecated @@ -850,7 +850,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3844 + * google/container/v1beta1/cluster_service.proto;l=3871 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -878,7 +878,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3844 + * google/container/v1beta1/cluster_service.proto;l=3871 * @param value The projectId to set. * @return This builder for chaining. */ @@ -905,7 +905,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3844 + * google/container/v1beta1/cluster_service.proto;l=3871 * @return This builder for chaining. */ @java.lang.Deprecated @@ -928,7 +928,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3844 + * google/container/v1beta1/cluster_service.proto;l=3871 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -958,7 +958,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3851 + * google/container/v1beta1/cluster_service.proto;l=3878 * @return The zone. */ @java.lang.Deprecated @@ -986,7 +986,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3851 + * google/container/v1beta1/cluster_service.proto;l=3878 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1014,7 +1014,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3851 + * google/container/v1beta1/cluster_service.proto;l=3878 * @param value The zone to set. * @return This builder for chaining. */ @@ -1041,7 +1041,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3851 + * google/container/v1beta1/cluster_service.proto;l=3878 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1064,7 +1064,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3851 + * google/container/v1beta1/cluster_service.proto;l=3878 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1093,7 +1093,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3855 + * google/container/v1beta1/cluster_service.proto;l=3882 * @return The clusterId. */ @java.lang.Deprecated @@ -1120,7 +1120,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3855 + * google/container/v1beta1/cluster_service.proto;l=3882 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1147,7 +1147,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3855 + * google/container/v1beta1/cluster_service.proto;l=3882 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1173,7 +1173,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3855 + * google/container/v1beta1/cluster_service.proto;l=3882 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1195,7 +1195,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3855 + * google/container/v1beta1/cluster_service.proto;l=3882 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1224,7 +1224,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3860 + * google/container/v1beta1/cluster_service.proto;l=3887 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1251,7 +1251,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3860 + * google/container/v1beta1/cluster_service.proto;l=3887 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1278,7 +1278,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3860 + * google/container/v1beta1/cluster_service.proto;l=3887 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1304,7 +1304,7 @@ public Builder setNodePoolId(java.lang.String value) { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3860 + * google/container/v1beta1/cluster_service.proto;l=3887 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1326,7 +1326,7 @@ public Builder clearNodePoolId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3860 + * google/container/v1beta1/cluster_service.proto;l=3887 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java index 9a023e5c161f..3869e06644e5 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface DeleteNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3844 + * google/container/v1beta1/cluster_service.proto;l=3871 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface DeleteNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3844 + * google/container/v1beta1/cluster_service.proto;l=3871 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3851 + * google/container/v1beta1/cluster_service.proto;l=3878 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3851 + * google/container/v1beta1/cluster_service.proto;l=3878 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface DeleteNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3855 + * google/container/v1beta1/cluster_service.proto;l=3882 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface DeleteNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3855 + * google/container/v1beta1/cluster_service.proto;l=3882 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -145,7 +145,7 @@ public interface DeleteNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3860 + * google/container/v1beta1/cluster_service.proto;l=3887 * @return The nodePoolId. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface DeleteNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3860 + * google/container/v1beta1/cluster_service.proto;l=3887 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfig.java index 2bce21e9df7f..34bf915763f0 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfig.java @@ -226,8 +226,7 @@ private ClusterTier(int value) { * * *
        -   * Output only. [Output only] cluster_tier specifies the premium tier of the
        -   * cluster.
        +   * Output only. cluster_tier specifies the premium tier of the cluster.
            * 
        * * @@ -244,8 +243,7 @@ public int getClusterTierValue() { * * *
        -   * Output only. [Output only] cluster_tier specifies the premium tier of the
        -   * cluster.
        +   * Output only. cluster_tier specifies the premium tier of the cluster.
            * 
        * * @@ -611,8 +609,7 @@ public Builder mergeFrom( * * *
        -     * Output only. [Output only] cluster_tier specifies the premium tier of the
        -     * cluster.
        +     * Output only. cluster_tier specifies the premium tier of the cluster.
              * 
        * * @@ -629,8 +626,7 @@ public int getClusterTierValue() { * * *
        -     * Output only. [Output only] cluster_tier specifies the premium tier of the
        -     * cluster.
        +     * Output only. cluster_tier specifies the premium tier of the cluster.
              * 
        * * @@ -650,8 +646,7 @@ public Builder setClusterTierValue(int value) { * * *
        -     * Output only. [Output only] cluster_tier specifies the premium tier of the
        -     * cluster.
        +     * Output only. cluster_tier specifies the premium tier of the cluster.
              * 
        * * @@ -672,8 +667,7 @@ public com.google.container.v1beta1.EnterpriseConfig.ClusterTier getClusterTier( * * *
        -     * Output only. [Output only] cluster_tier specifies the premium tier of the
        -     * cluster.
        +     * Output only. cluster_tier specifies the premium tier of the cluster.
              * 
        * * @@ -696,8 +690,7 @@ public Builder setClusterTier(com.google.container.v1beta1.EnterpriseConfig.Clus * * *
        -     * Output only. [Output only] cluster_tier specifies the premium tier of the
        -     * cluster.
        +     * Output only. cluster_tier specifies the premium tier of the cluster.
              * 
        * * diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfigOrBuilder.java index 462fa374e783..2787ffe87075 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfigOrBuilder.java @@ -28,8 +28,7 @@ public interface EnterpriseConfigOrBuilder * * *
        -   * Output only. [Output only] cluster_tier specifies the premium tier of the
        -   * cluster.
        +   * Output only. cluster_tier specifies the premium tier of the cluster.
            * 
        * * @@ -43,8 +42,7 @@ public interface EnterpriseConfigOrBuilder * * *
        -   * Output only. [Output only] cluster_tier specifies the premium tier of the
        -   * cluster.
        +   * Output only. cluster_tier specifies the premium tier of the cluster.
            * 
        * * diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Fleet.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Fleet.java index daa360fec586..81b168ec8777 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Fleet.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Fleet.java @@ -127,12 +127,12 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
        -   * [Output only] The full resource name of the registered fleet membership of
        +   * Output only. The full resource name of the registered fleet membership of
            * the cluster, in the format
            * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
            * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The membership. */ @@ -152,12 +152,12 @@ public java.lang.String getMembership() { * * *
        -   * [Output only] The full resource name of the registered fleet membership of
        +   * Output only. The full resource name of the registered fleet membership of
            * the cluster, in the format
            * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
            * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for membership. */ @@ -180,11 +180,11 @@ public com.google.protobuf.ByteString getMembershipBytes() { * * *
        -   * [Output only] Whether the cluster has been registered through the fleet
        +   * Output only. Whether the cluster has been registered through the fleet
            * API.
            * 
        * - * bool pre_registered = 3; + * bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The preRegistered. */ @@ -698,12 +698,12 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The full resource name of the registered fleet membership of
        +     * Output only. The full resource name of the registered fleet membership of
              * the cluster, in the format
              * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
              * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The membership. */ @@ -722,12 +722,12 @@ public java.lang.String getMembership() { * * *
        -     * [Output only] The full resource name of the registered fleet membership of
        +     * Output only. The full resource name of the registered fleet membership of
              * the cluster, in the format
              * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
              * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for membership. */ @@ -746,12 +746,12 @@ public com.google.protobuf.ByteString getMembershipBytes() { * * *
        -     * [Output only] The full resource name of the registered fleet membership of
        +     * Output only. The full resource name of the registered fleet membership of
              * the cluster, in the format
              * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
              * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The membership to set. * @return This builder for chaining. @@ -769,12 +769,12 @@ public Builder setMembership(java.lang.String value) { * * *
        -     * [Output only] The full resource name of the registered fleet membership of
        +     * Output only. The full resource name of the registered fleet membership of
              * the cluster, in the format
              * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
              * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -788,12 +788,12 @@ public Builder clearMembership() { * * *
        -     * [Output only] The full resource name of the registered fleet membership of
        +     * Output only. The full resource name of the registered fleet membership of
              * the cluster, in the format
              * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
              * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for membership to set. * @return This builder for chaining. @@ -814,11 +814,11 @@ public Builder setMembershipBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] Whether the cluster has been registered through the fleet
        +     * Output only. Whether the cluster has been registered through the fleet
              * API.
              * 
        * - * bool pre_registered = 3; + * bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The preRegistered. */ @@ -830,11 +830,11 @@ public boolean getPreRegistered() { * * *
        -     * [Output only] Whether the cluster has been registered through the fleet
        +     * Output only. Whether the cluster has been registered through the fleet
              * API.
              * 
        * - * bool pre_registered = 3; + * bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The preRegistered to set. * @return This builder for chaining. @@ -850,11 +850,11 @@ public Builder setPreRegistered(boolean value) { * * *
        -     * [Output only] Whether the cluster has been registered through the fleet
        +     * Output only. Whether the cluster has been registered through the fleet
              * API.
              * 
        * - * bool pre_registered = 3; + * bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FleetOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FleetOrBuilder.java index 84444c8352f1..d918cc0dfe76 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FleetOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FleetOrBuilder.java @@ -57,12 +57,12 @@ public interface FleetOrBuilder * * *
        -   * [Output only] The full resource name of the registered fleet membership of
        +   * Output only. The full resource name of the registered fleet membership of
            * the cluster, in the format
            * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
            * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The membership. */ @@ -71,12 +71,12 @@ public interface FleetOrBuilder * * *
        -   * [Output only] The full resource name of the registered fleet membership of
        +   * Output only. The full resource name of the registered fleet membership of
            * the cluster, in the format
            * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
            * 
        * - * string membership = 2; + * string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for membership. */ @@ -86,11 +86,11 @@ public interface FleetOrBuilder * * *
        -   * [Output only] Whether the cluster has been registered through the fleet
        +   * Output only. Whether the cluster has been registered through the fleet
            * API.
            * 
        * - * bool pre_registered = 3; + * bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The preRegistered. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java index a22dde1f520f..139fbeb2c7eb 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
        * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3132 + * google/container/v1beta1/cluster_service.proto;l=3159 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { *
        * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3132 + * google/container/v1beta1/cluster_service.proto;l=3159 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3139 + * google/container/v1beta1/cluster_service.proto;l=3166 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3139 + * google/container/v1beta1/cluster_service.proto;l=3166 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { *
        * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3143 + * google/container/v1beta1/cluster_service.proto;l=3170 * @return The clusterId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getClusterId() { *
        * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3143 + * google/container/v1beta1/cluster_service.proto;l=3170 * @return The bytes for clusterId. */ @java.lang.Override @@ -733,7 +733,7 @@ public Builder mergeFrom( *
        * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3132 + * google/container/v1beta1/cluster_service.proto;l=3159 * @return The projectId. */ @java.lang.Deprecated @@ -761,7 +761,7 @@ public java.lang.String getProjectId() { *
        * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3132 + * google/container/v1beta1/cluster_service.proto;l=3159 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -789,7 +789,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { *
        * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3132 + * google/container/v1beta1/cluster_service.proto;l=3159 * @param value The projectId to set. * @return This builder for chaining. */ @@ -816,7 +816,7 @@ public Builder setProjectId(java.lang.String value) { *
        * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3132 + * google/container/v1beta1/cluster_service.proto;l=3159 * @return This builder for chaining. */ @java.lang.Deprecated @@ -839,7 +839,7 @@ public Builder clearProjectId() { *
        * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3132 + * google/container/v1beta1/cluster_service.proto;l=3159 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -869,7 +869,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3139 + * google/container/v1beta1/cluster_service.proto;l=3166 * @return The zone. */ @java.lang.Deprecated @@ -897,7 +897,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3139 + * google/container/v1beta1/cluster_service.proto;l=3166 * @return The bytes for zone. */ @java.lang.Deprecated @@ -925,7 +925,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3139 + * google/container/v1beta1/cluster_service.proto;l=3166 * @param value The zone to set. * @return This builder for chaining. */ @@ -952,7 +952,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3139 + * google/container/v1beta1/cluster_service.proto;l=3166 * @return This builder for chaining. */ @java.lang.Deprecated @@ -975,7 +975,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3139 + * google/container/v1beta1/cluster_service.proto;l=3166 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1004,7 +1004,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3143 + * google/container/v1beta1/cluster_service.proto;l=3170 * @return The clusterId. */ @java.lang.Deprecated @@ -1031,7 +1031,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3143 + * google/container/v1beta1/cluster_service.proto;l=3170 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1058,7 +1058,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3143 + * google/container/v1beta1/cluster_service.proto;l=3170 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1084,7 +1084,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3143 + * google/container/v1beta1/cluster_service.proto;l=3170 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1106,7 +1106,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3143 + * google/container/v1beta1/cluster_service.proto;l=3170 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java index 29fe88429901..79e41e57d815 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface GetClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3132 + * google/container/v1beta1/cluster_service.proto;l=3159 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface GetClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3132 + * google/container/v1beta1/cluster_service.proto;l=3159 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3139 + * google/container/v1beta1/cluster_service.proto;l=3166 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3139 + * google/container/v1beta1/cluster_service.proto;l=3166 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface GetClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3143 + * google/container/v1beta1/cluster_service.proto;l=3170 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface GetClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3143 + * google/container/v1beta1/cluster_service.proto;l=3170 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java index 107785d7dc30..dd4f7835df5d 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3898 + * google/container/v1beta1/cluster_service.proto;l=3925 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3898 + * google/container/v1beta1/cluster_service.proto;l=3925 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3905 + * google/container/v1beta1/cluster_service.proto;l=3932 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3905 + * google/container/v1beta1/cluster_service.proto;l=3932 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3909 + * google/container/v1beta1/cluster_service.proto;l=3936 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3909 + * google/container/v1beta1/cluster_service.proto;l=3936 * @return The bytes for clusterId. */ @java.lang.Override @@ -270,7 +270,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3914 + * google/container/v1beta1/cluster_service.proto;l=3941 * @return The nodePoolId. */ @java.lang.Override @@ -298,7 +298,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3914 + * google/container/v1beta1/cluster_service.proto;l=3941 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -822,7 +822,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3898 + * google/container/v1beta1/cluster_service.proto;l=3925 * @return The projectId. */ @java.lang.Deprecated @@ -850,7 +850,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3898 + * google/container/v1beta1/cluster_service.proto;l=3925 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -878,7 +878,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3898 + * google/container/v1beta1/cluster_service.proto;l=3925 * @param value The projectId to set. * @return This builder for chaining. */ @@ -905,7 +905,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3898 + * google/container/v1beta1/cluster_service.proto;l=3925 * @return This builder for chaining. */ @java.lang.Deprecated @@ -928,7 +928,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3898 + * google/container/v1beta1/cluster_service.proto;l=3925 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -958,7 +958,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3905 + * google/container/v1beta1/cluster_service.proto;l=3932 * @return The zone. */ @java.lang.Deprecated @@ -986,7 +986,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3905 + * google/container/v1beta1/cluster_service.proto;l=3932 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1014,7 +1014,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3905 + * google/container/v1beta1/cluster_service.proto;l=3932 * @param value The zone to set. * @return This builder for chaining. */ @@ -1041,7 +1041,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3905 + * google/container/v1beta1/cluster_service.proto;l=3932 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1064,7 +1064,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3905 + * google/container/v1beta1/cluster_service.proto;l=3932 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1093,7 +1093,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3909 + * google/container/v1beta1/cluster_service.proto;l=3936 * @return The clusterId. */ @java.lang.Deprecated @@ -1120,7 +1120,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3909 + * google/container/v1beta1/cluster_service.proto;l=3936 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1147,7 +1147,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3909 + * google/container/v1beta1/cluster_service.proto;l=3936 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1173,7 +1173,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3909 + * google/container/v1beta1/cluster_service.proto;l=3936 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1195,7 +1195,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3909 + * google/container/v1beta1/cluster_service.proto;l=3936 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1224,7 +1224,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3914 + * google/container/v1beta1/cluster_service.proto;l=3941 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1251,7 +1251,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3914 + * google/container/v1beta1/cluster_service.proto;l=3941 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1278,7 +1278,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3914 + * google/container/v1beta1/cluster_service.proto;l=3941 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1304,7 +1304,7 @@ public Builder setNodePoolId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3914 + * google/container/v1beta1/cluster_service.proto;l=3941 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1326,7 +1326,7 @@ public Builder clearNodePoolId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3914 + * google/container/v1beta1/cluster_service.proto;l=3941 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java index 606919a06248..90e5b1ee3d47 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface GetNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3898 + * google/container/v1beta1/cluster_service.proto;l=3925 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface GetNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3898 + * google/container/v1beta1/cluster_service.proto;l=3925 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3905 + * google/container/v1beta1/cluster_service.proto;l=3932 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3905 + * google/container/v1beta1/cluster_service.proto;l=3932 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface GetNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3909 + * google/container/v1beta1/cluster_service.proto;l=3936 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface GetNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3909 + * google/container/v1beta1/cluster_service.proto;l=3936 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -145,7 +145,7 @@ public interface GetNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3914 + * google/container/v1beta1/cluster_service.proto;l=3941 * @return The nodePoolId. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface GetNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3914 + * google/container/v1beta1/cluster_service.proto;l=3941 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java index 05c76384405e..b5296c5a8922 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3636 + * google/container/v1beta1/cluster_service.proto;l=3663 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3636 + * google/container/v1beta1/cluster_service.proto;l=3663 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3643 + * google/container/v1beta1/cluster_service.proto;l=3670 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3643 + * google/container/v1beta1/cluster_service.proto;l=3670 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3647 + * google/container/v1beta1/cluster_service.proto;l=3674 * @return The operationId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getOperationId() { * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3647 + * google/container/v1beta1/cluster_service.proto;l=3674 * @return The bytes for operationId. */ @java.lang.Override @@ -734,7 +734,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3636 + * google/container/v1beta1/cluster_service.proto;l=3663 * @return The projectId. */ @java.lang.Deprecated @@ -762,7 +762,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3636 + * google/container/v1beta1/cluster_service.proto;l=3663 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -790,7 +790,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3636 + * google/container/v1beta1/cluster_service.proto;l=3663 * @param value The projectId to set. * @return This builder for chaining. */ @@ -817,7 +817,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3636 + * google/container/v1beta1/cluster_service.proto;l=3663 * @return This builder for chaining. */ @java.lang.Deprecated @@ -840,7 +840,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3636 + * google/container/v1beta1/cluster_service.proto;l=3663 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -870,7 +870,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3643 + * google/container/v1beta1/cluster_service.proto;l=3670 * @return The zone. */ @java.lang.Deprecated @@ -898,7 +898,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3643 + * google/container/v1beta1/cluster_service.proto;l=3670 * @return The bytes for zone. */ @java.lang.Deprecated @@ -926,7 +926,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3643 + * google/container/v1beta1/cluster_service.proto;l=3670 * @param value The zone to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3643 + * google/container/v1beta1/cluster_service.proto;l=3670 * @return This builder for chaining. */ @java.lang.Deprecated @@ -976,7 +976,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3643 + * google/container/v1beta1/cluster_service.proto;l=3670 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1005,7 +1005,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3647 + * google/container/v1beta1/cluster_service.proto;l=3674 * @return The operationId. */ @java.lang.Deprecated @@ -1032,7 +1032,7 @@ public java.lang.String getOperationId() { * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3647 + * google/container/v1beta1/cluster_service.proto;l=3674 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1059,7 +1059,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3647 + * google/container/v1beta1/cluster_service.proto;l=3674 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1085,7 +1085,7 @@ public Builder setOperationId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3647 + * google/container/v1beta1/cluster_service.proto;l=3674 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1107,7 +1107,7 @@ public Builder clearOperationId() { * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3647 + * google/container/v1beta1/cluster_service.proto;l=3674 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java index 0d13f320b252..d944f083feb4 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface GetOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3636 + * google/container/v1beta1/cluster_service.proto;l=3663 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface GetOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3636 + * google/container/v1beta1/cluster_service.proto;l=3663 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3643 + * google/container/v1beta1/cluster_service.proto;l=3670 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3643 + * google/container/v1beta1/cluster_service.proto;l=3670 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface GetOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3647 + * google/container/v1beta1/cluster_service.proto;l=3674 * @return The operationId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface GetOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3647 + * google/container/v1beta1/cluster_service.proto;l=3674 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java index eb609d8601ea..768b99e2d712 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3714 + * google/container/v1beta1/cluster_service.proto;l=3741 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3714 + * google/container/v1beta1/cluster_service.proto;l=3741 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3721 + * google/container/v1beta1/cluster_service.proto;l=3748 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3721 + * google/container/v1beta1/cluster_service.proto;l=3748 * @return The bytes for zone. */ @java.lang.Override @@ -648,7 +648,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3714 + * google/container/v1beta1/cluster_service.proto;l=3741 * @return The projectId. */ @java.lang.Deprecated @@ -676,7 +676,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3714 + * google/container/v1beta1/cluster_service.proto;l=3741 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -704,7 +704,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3714 + * google/container/v1beta1/cluster_service.proto;l=3741 * @param value The projectId to set. * @return This builder for chaining. */ @@ -731,7 +731,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3714 + * google/container/v1beta1/cluster_service.proto;l=3741 * @return This builder for chaining. */ @java.lang.Deprecated @@ -754,7 +754,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3714 + * google/container/v1beta1/cluster_service.proto;l=3741 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -784,7 +784,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3721 + * google/container/v1beta1/cluster_service.proto;l=3748 * @return The zone. */ @java.lang.Deprecated @@ -812,7 +812,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3721 + * google/container/v1beta1/cluster_service.proto;l=3748 * @return The bytes for zone. */ @java.lang.Deprecated @@ -840,7 +840,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3721 + * google/container/v1beta1/cluster_service.proto;l=3748 * @param value The zone to set. * @return This builder for chaining. */ @@ -867,7 +867,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3721 + * google/container/v1beta1/cluster_service.proto;l=3748 * @return This builder for chaining. */ @java.lang.Deprecated @@ -890,7 +890,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3721 + * google/container/v1beta1/cluster_service.proto;l=3748 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java index 4f71c86f0feb..77a2a91f8728 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface GetServerConfigRequestOrBuilder * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3714 + * google/container/v1beta1/cluster_service.proto;l=3741 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface GetServerConfigRequestOrBuilder * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3714 + * google/container/v1beta1/cluster_service.proto;l=3741 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3721 + * google/container/v1beta1/cluster_service.proto;l=3748 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3721 + * google/container/v1beta1/cluster_service.proto;l=3748 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java index 8b3d5c307a09..c851db23df11 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java @@ -501,7 +501,7 @@ public com.google.protobuf.ByteString getSubnetworkNameBytes() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1711 + * google/container/v1beta1/cluster_service.proto;l=1732 * @return The clusterIpv4Cidr. */ @java.lang.Override @@ -527,7 +527,7 @@ public java.lang.String getClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1711 + * google/container/v1beta1/cluster_service.proto;l=1732 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Override @@ -558,7 +558,7 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1714 + * google/container/v1beta1/cluster_service.proto;l=1735 * @return The nodeIpv4Cidr. */ @java.lang.Override @@ -584,7 +584,7 @@ public java.lang.String getNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1714 + * google/container/v1beta1/cluster_service.proto;l=1735 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Override @@ -615,7 +615,7 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1717 + * google/container/v1beta1/cluster_service.proto;l=1738 * @return The servicesIpv4Cidr. */ @java.lang.Override @@ -641,7 +641,7 @@ public java.lang.String getServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1717 + * google/container/v1beta1/cluster_service.proto;l=1738 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Override @@ -1319,8 +1319,7 @@ public com.google.container.v1beta1.PodCIDROverprovisionConfig getPodCidrOverpro * * *
        -   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -   * pods.
        +   * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
            * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1343,8 +1342,7 @@ public java.lang.String getSubnetIpv6CidrBlock() { * * *
        -   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -   * pods.
        +   * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
            * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1372,7 +1370,7 @@ public com.google.protobuf.ByteString getSubnetIpv6CidrBlockBytes() { * * *
        -   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +   * Output only. The services IPv6 CIDR block for the cluster.
            * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1395,7 +1393,7 @@ public java.lang.String getServicesIpv6CidrBlock() { * * *
        -   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +   * Output only. The services IPv6 CIDR block for the cluster.
            * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1421,8 +1419,8 @@ public com.google.protobuf.ByteString getServicesIpv6CidrBlockBytes() { * * *
        -   * Output only. [Output only] The additional pod ranges that are added to the
        -   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +   * Output only. The additional pod ranges that are added to the cluster.
        +   * These pod ranges can be used by new node pools to allocate pod IPs
            * automatically. Once the range is removed it will not show up in
            * IPAllocationPolicy.
            * 
        @@ -1441,8 +1439,8 @@ public boolean hasAdditionalPodRangesConfig() { * * *
        -   * Output only. [Output only] The additional pod ranges that are added to the
        -   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +   * Output only. The additional pod ranges that are added to the cluster.
        +   * These pod ranges can be used by new node pools to allocate pod IPs
            * automatically. Once the range is removed it will not show up in
            * IPAllocationPolicy.
            * 
        @@ -1463,8 +1461,8 @@ public com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRa * * *
        -   * Output only. [Output only] The additional pod ranges that are added to the
        -   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +   * Output only. The additional pod ranges that are added to the cluster.
        +   * These pod ranges can be used by new node pools to allocate pod IPs
            * automatically. Once the range is removed it will not show up in
            * IPAllocationPolicy.
            * 
        @@ -1487,9 +1485,9 @@ public com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRa * * *
        -   * Output only. [Output only] The utilization of the cluster default IPv4
        -   * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
        -   * range], Usage=numNodes*numZones*podIPsPerNode.
        +   * Output only. The utilization of the cluster default IPv4 range for the
        +   * pod. The ratio is Usage/[Total number of IPs in the secondary range],
        +   * Usage=numNodes*numZones*podIPsPerNode.
            * 
        * * @@ -2621,7 +2619,7 @@ public Builder setSubnetworkNameBytes(com.google.protobuf.ByteString value) { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1711 + * google/container/v1beta1/cluster_service.proto;l=1732 * @return The clusterIpv4Cidr. */ @java.lang.Deprecated @@ -2646,7 +2644,7 @@ public java.lang.String getClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1711 + * google/container/v1beta1/cluster_service.proto;l=1732 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated @@ -2671,7 +2669,7 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1711 + * google/container/v1beta1/cluster_service.proto;l=1732 * @param value The clusterIpv4Cidr to set. * @return This builder for chaining. */ @@ -2695,7 +2693,7 @@ public Builder setClusterIpv4Cidr(java.lang.String value) { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1711 + * google/container/v1beta1/cluster_service.proto;l=1732 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2715,7 +2713,7 @@ public Builder clearClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1711 + * google/container/v1beta1/cluster_service.proto;l=1732 * @param value The bytes for clusterIpv4Cidr to set. * @return This builder for chaining. */ @@ -2742,7 +2740,7 @@ public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1714 + * google/container/v1beta1/cluster_service.proto;l=1735 * @return The nodeIpv4Cidr. */ @java.lang.Deprecated @@ -2767,7 +2765,7 @@ public java.lang.String getNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1714 + * google/container/v1beta1/cluster_service.proto;l=1735 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated @@ -2792,7 +2790,7 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1714 + * google/container/v1beta1/cluster_service.proto;l=1735 * @param value The nodeIpv4Cidr to set. * @return This builder for chaining. */ @@ -2816,7 +2814,7 @@ public Builder setNodeIpv4Cidr(java.lang.String value) { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1714 + * google/container/v1beta1/cluster_service.proto;l=1735 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2836,7 +2834,7 @@ public Builder clearNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1714 + * google/container/v1beta1/cluster_service.proto;l=1735 * @param value The bytes for nodeIpv4Cidr to set. * @return This builder for chaining. */ @@ -2863,7 +2861,7 @@ public Builder setNodeIpv4CidrBytes(com.google.protobuf.ByteString value) { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1717 + * google/container/v1beta1/cluster_service.proto;l=1738 * @return The servicesIpv4Cidr. */ @java.lang.Deprecated @@ -2888,7 +2886,7 @@ public java.lang.String getServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1717 + * google/container/v1beta1/cluster_service.proto;l=1738 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated @@ -2913,7 +2911,7 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1717 + * google/container/v1beta1/cluster_service.proto;l=1738 * @param value The servicesIpv4Cidr to set. * @return This builder for chaining. */ @@ -2937,7 +2935,7 @@ public Builder setServicesIpv4Cidr(java.lang.String value) { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1717 + * google/container/v1beta1/cluster_service.proto;l=1738 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2957,7 +2955,7 @@ public Builder clearServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1717 + * google/container/v1beta1/cluster_service.proto;l=1738 * @param value The bytes for servicesIpv4Cidr to set. * @return This builder for chaining. */ @@ -4600,8 +4598,7 @@ public Builder clearPodCidrOverprovisionConfig() { * * *
        -     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -     * pods.
        +     * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
              * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4623,8 +4620,7 @@ public java.lang.String getSubnetIpv6CidrBlock() { * * *
        -     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -     * pods.
        +     * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
              * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4646,8 +4642,7 @@ public com.google.protobuf.ByteString getSubnetIpv6CidrBlockBytes() { * * *
        -     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -     * pods.
        +     * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
              * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4668,8 +4663,7 @@ public Builder setSubnetIpv6CidrBlock(java.lang.String value) { * * *
        -     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -     * pods.
        +     * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
              * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4686,8 +4680,7 @@ public Builder clearSubnetIpv6CidrBlock() { * * *
        -     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -     * pods.
        +     * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
              * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4711,7 +4704,7 @@ public Builder setSubnetIpv6CidrBlockBytes(com.google.protobuf.ByteString value) * * *
        -     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +     * Output only. The services IPv6 CIDR block for the cluster.
              * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4734,7 +4727,7 @@ public java.lang.String getServicesIpv6CidrBlock() { * * *
        -     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +     * Output only. The services IPv6 CIDR block for the cluster.
              * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4757,7 +4750,7 @@ public com.google.protobuf.ByteString getServicesIpv6CidrBlockBytes() { * * *
        -     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +     * Output only. The services IPv6 CIDR block for the cluster.
              * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4779,7 +4772,7 @@ public Builder setServicesIpv6CidrBlock(java.lang.String value) { * * *
        -     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +     * Output only. The services IPv6 CIDR block for the cluster.
              * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4797,7 +4790,7 @@ public Builder clearServicesIpv6CidrBlock() { * * *
        -     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +     * Output only. The services IPv6 CIDR block for the cluster.
              * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4827,8 +4820,8 @@ public Builder setServicesIpv6CidrBlockBytes(com.google.protobuf.ByteString valu * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4846,8 +4839,8 @@ public boolean hasAdditionalPodRangesConfig() { * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4871,8 +4864,8 @@ public com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRa * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4899,8 +4892,8 @@ public Builder setAdditionalPodRangesConfig( * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4924,8 +4917,8 @@ public Builder setAdditionalPodRangesConfig( * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4958,8 +4951,8 @@ public Builder mergeAdditionalPodRangesConfig( * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -4982,8 +4975,8 @@ public Builder clearAdditionalPodRangesConfig() { * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -5002,8 +4995,8 @@ public Builder clearAdditionalPodRangesConfig() { * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -5026,8 +5019,8 @@ public Builder clearAdditionalPodRangesConfig() { * * *
        -     * Output only. [Output only] The additional pod ranges that are added to the
        -     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +     * Output only. The additional pod ranges that are added to the cluster.
        +     * These pod ranges can be used by new node pools to allocate pod IPs
              * automatically. Once the range is removed it will not show up in
              * IPAllocationPolicy.
              * 
        @@ -5058,9 +5051,9 @@ public Builder clearAdditionalPodRangesConfig() { * * *
        -     * Output only. [Output only] The utilization of the cluster default IPv4
        -     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
        -     * range], Usage=numNodes*numZones*podIPsPerNode.
        +     * Output only. The utilization of the cluster default IPv4 range for the
        +     * pod. The ratio is Usage/[Total number of IPs in the secondary range],
        +     * Usage=numNodes*numZones*podIPsPerNode.
              * 
        * * @@ -5077,9 +5070,9 @@ public double getDefaultPodIpv4RangeUtilization() { * * *
        -     * Output only. [Output only] The utilization of the cluster default IPv4
        -     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
        -     * range], Usage=numNodes*numZones*podIPsPerNode.
        +     * Output only. The utilization of the cluster default IPv4 range for the
        +     * pod. The ratio is Usage/[Total number of IPs in the secondary range],
        +     * Usage=numNodes*numZones*podIPsPerNode.
              * 
        * * @@ -5100,9 +5093,9 @@ public Builder setDefaultPodIpv4RangeUtilization(double value) { * * *
        -     * Output only. [Output only] The utilization of the cluster default IPv4
        -     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
        -     * range], Usage=numNodes*numZones*podIPsPerNode.
        +     * Output only. The utilization of the cluster default IPv4 range for the
        +     * pod. The ratio is Usage/[Total number of IPs in the secondary range],
        +     * Usage=numNodes*numZones*podIPsPerNode.
              * 
        * * diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java index 6d141f786820..2e64668d8f2c 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java @@ -94,7 +94,7 @@ public interface IPAllocationPolicyOrBuilder * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1711 + * google/container/v1beta1/cluster_service.proto;l=1732 * @return The clusterIpv4Cidr. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface IPAllocationPolicyOrBuilder * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1711 + * google/container/v1beta1/cluster_service.proto;l=1732 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated @@ -125,7 +125,7 @@ public interface IPAllocationPolicyOrBuilder * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1714 + * google/container/v1beta1/cluster_service.proto;l=1735 * @return The nodeIpv4Cidr. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface IPAllocationPolicyOrBuilder * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1714 + * google/container/v1beta1/cluster_service.proto;l=1735 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface IPAllocationPolicyOrBuilder * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1717 + * google/container/v1beta1/cluster_service.proto;l=1738 * @return The servicesIpv4Cidr. */ @java.lang.Deprecated @@ -171,7 +171,7 @@ public interface IPAllocationPolicyOrBuilder * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1717 + * google/container/v1beta1/cluster_service.proto;l=1738 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated @@ -629,8 +629,7 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -   * pods.
        +   * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
            * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -642,8 +641,7 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
        -   * pods.
        +   * Output only. The subnet's IPv6 CIDR block used by nodes and pods.
            * 
        * * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -656,7 +654,7 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +   * Output only. The services IPv6 CIDR block for the cluster.
            * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -668,7 +666,7 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
        +   * Output only. The services IPv6 CIDR block for the cluster.
            * 
        * * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -681,8 +679,8 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The additional pod ranges that are added to the
        -   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +   * Output only. The additional pod ranges that are added to the cluster.
        +   * These pod ranges can be used by new node pools to allocate pod IPs
            * automatically. Once the range is removed it will not show up in
            * IPAllocationPolicy.
            * 
        @@ -698,8 +696,8 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The additional pod ranges that are added to the
        -   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +   * Output only. The additional pod ranges that are added to the cluster.
        +   * These pod ranges can be used by new node pools to allocate pod IPs
            * automatically. Once the range is removed it will not show up in
            * IPAllocationPolicy.
            * 
        @@ -715,8 +713,8 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The additional pod ranges that are added to the
        -   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
        +   * Output only. The additional pod ranges that are added to the cluster.
        +   * These pod ranges can be used by new node pools to allocate pod IPs
            * automatically. Once the range is removed it will not show up in
            * IPAllocationPolicy.
            * 
        @@ -732,9 +730,9 @@ public interface IPAllocationPolicyOrBuilder * * *
        -   * Output only. [Output only] The utilization of the cluster default IPv4
        -   * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
        -   * range], Usage=numNodes*numZones*podIPsPerNode.
        +   * Output only. The utilization of the cluster default IPv4 range for the
        +   * pod. The ratio is Usage/[Total number of IPs in the secondary range],
        +   * Usage=numNodes*numZones*podIPsPerNode.
            * 
        * * diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java index a95ef4211e73..8c51687603a4 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java @@ -210,7 +210,7 @@ private IstioAuthMode(int value) { * bool disabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1579 + * google/container/v1beta1/cluster_service.proto;l=1600 * @return The disabled. */ @java.lang.Override @@ -231,7 +231,7 @@ public boolean getDisabled() { * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1582 + * google/container/v1beta1/cluster_service.proto;l=1603 * @return The enum numeric value on the wire for auth. */ @java.lang.Override @@ -249,7 +249,7 @@ public int getAuthValue() { * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1582 + * google/container/v1beta1/cluster_service.proto;l=1603 * @return The auth. */ @java.lang.Override @@ -633,7 +633,7 @@ public Builder mergeFrom( * bool disabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1579 + * google/container/v1beta1/cluster_service.proto;l=1600 * @return The disabled. */ @java.lang.Override @@ -651,7 +651,7 @@ public boolean getDisabled() { * bool disabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1579 + * google/container/v1beta1/cluster_service.proto;l=1600 * @param value The disabled to set. * @return This builder for chaining. */ @@ -673,7 +673,7 @@ public Builder setDisabled(boolean value) { * bool disabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1579 + * google/container/v1beta1/cluster_service.proto;l=1600 * @return This builder for chaining. */ @java.lang.Deprecated @@ -696,7 +696,7 @@ public Builder clearDisabled() { * * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1582 + * google/container/v1beta1/cluster_service.proto;l=1603 * @return The enum numeric value on the wire for auth. */ @java.lang.Override @@ -715,7 +715,7 @@ public int getAuthValue() { *
        * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1582 + * google/container/v1beta1/cluster_service.proto;l=1603 * @param value The enum numeric value on the wire for auth to set. * @return This builder for chaining. */ @@ -737,7 +737,7 @@ public Builder setAuthValue(int value) { *
        * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1582 + * google/container/v1beta1/cluster_service.proto;l=1603 * @return The auth. */ @java.lang.Override @@ -760,7 +760,7 @@ public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { *
        * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1582 + * google/container/v1beta1/cluster_service.proto;l=1603 * @param value The auth to set. * @return This builder for chaining. */ @@ -785,7 +785,7 @@ public Builder setAuth(com.google.container.v1beta1.IstioConfig.IstioAuthMode va *
        * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1582 + * google/container/v1beta1/cluster_service.proto;l=1603 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java index 9ed214f523cd..2f4c38fed79c 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java @@ -34,7 +34,7 @@ public interface IstioConfigOrBuilder * bool disabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1579 + * google/container/v1beta1/cluster_service.proto;l=1600 * @return The disabled. */ @java.lang.Deprecated @@ -50,7 +50,7 @@ public interface IstioConfigOrBuilder * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1582 + * google/container/v1beta1/cluster_service.proto;l=1603 * @return The enum numeric value on the wire for auth. */ @java.lang.Deprecated @@ -65,7 +65,7 @@ public interface IstioConfigOrBuilder * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1582 + * google/container/v1beta1/cluster_service.proto;l=1603 * @return The auth. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java index 791810c1363b..f38b21432d6d 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1489 + * google/container/v1beta1/cluster_service.proto;l=1496 * @return The enabled. */ @java.lang.Override @@ -431,7 +431,7 @@ public Builder mergeFrom( * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1489 + * google/container/v1beta1/cluster_service.proto;l=1496 * @return The enabled. */ @java.lang.Override @@ -449,7 +449,7 @@ public boolean getEnabled() { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1489 + * google/container/v1beta1/cluster_service.proto;l=1496 * @param value The enabled to set. * @return This builder for chaining. */ @@ -471,7 +471,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1489 + * google/container/v1beta1/cluster_service.proto;l=1496 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java index 0c4d1d278786..02c50f94b106 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java @@ -34,7 +34,7 @@ public interface KalmConfigOrBuilder * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1489 + * google/container/v1beta1/cluster_service.proto;l=1496 * @return The enabled. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java index 6f0c1f28c5ea..4d1cfac2a93e 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
        * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3605 + * google/container/v1beta1/cluster_service.proto;l=3632 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { *
        * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3605 + * google/container/v1beta1/cluster_service.proto;l=3632 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3612 + * google/container/v1beta1/cluster_service.proto;l=3639 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3612 + * google/container/v1beta1/cluster_service.proto;l=3639 * @return The bytes for zone. */ @java.lang.Override @@ -650,7 +650,7 @@ public Builder mergeFrom( *
        * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3605 + * google/container/v1beta1/cluster_service.proto;l=3632 * @return The projectId. */ @java.lang.Deprecated @@ -678,7 +678,7 @@ public java.lang.String getProjectId() { *
        * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3605 + * google/container/v1beta1/cluster_service.proto;l=3632 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -706,7 +706,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { *
        * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3605 + * google/container/v1beta1/cluster_service.proto;l=3632 * @param value The projectId to set. * @return This builder for chaining. */ @@ -733,7 +733,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3605 + * google/container/v1beta1/cluster_service.proto;l=3632 * @return This builder for chaining. */ @java.lang.Deprecated @@ -756,7 +756,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3605 + * google/container/v1beta1/cluster_service.proto;l=3632 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -786,7 +786,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3612 + * google/container/v1beta1/cluster_service.proto;l=3639 * @return The zone. */ @java.lang.Deprecated @@ -814,7 +814,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3612 + * google/container/v1beta1/cluster_service.proto;l=3639 * @return The bytes for zone. */ @java.lang.Deprecated @@ -842,7 +842,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3612 + * google/container/v1beta1/cluster_service.proto;l=3639 * @param value The zone to set. * @return This builder for chaining. */ @@ -869,7 +869,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3612 + * google/container/v1beta1/cluster_service.proto;l=3639 * @return This builder for chaining. */ @java.lang.Deprecated @@ -892,7 +892,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3612 + * google/container/v1beta1/cluster_service.proto;l=3639 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java index 8015b1159763..e42d78057f95 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface ListClustersRequestOrBuilder * * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3605 + * google/container/v1beta1/cluster_service.proto;l=3632 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface ListClustersRequestOrBuilder * * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3605 + * google/container/v1beta1/cluster_service.proto;l=3632 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3612 + * google/container/v1beta1/cluster_service.proto;l=3639 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3612 + * google/container/v1beta1/cluster_service.proto;l=3639 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java index ef5931904287..2be98562f150 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3874 + * google/container/v1beta1/cluster_service.proto;l=3901 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3874 + * google/container/v1beta1/cluster_service.proto;l=3901 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3881 + * google/container/v1beta1/cluster_service.proto;l=3908 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3881 + * google/container/v1beta1/cluster_service.proto;l=3908 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3885 + * google/container/v1beta1/cluster_service.proto;l=3912 * @return The clusterId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3885 + * google/container/v1beta1/cluster_service.proto;l=3912 * @return The bytes for clusterId. */ @java.lang.Override @@ -734,7 +734,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3874 + * google/container/v1beta1/cluster_service.proto;l=3901 * @return The projectId. */ @java.lang.Deprecated @@ -762,7 +762,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3874 + * google/container/v1beta1/cluster_service.proto;l=3901 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -790,7 +790,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3874 + * google/container/v1beta1/cluster_service.proto;l=3901 * @param value The projectId to set. * @return This builder for chaining. */ @@ -817,7 +817,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3874 + * google/container/v1beta1/cluster_service.proto;l=3901 * @return This builder for chaining. */ @java.lang.Deprecated @@ -840,7 +840,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3874 + * google/container/v1beta1/cluster_service.proto;l=3901 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -870,7 +870,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3881 + * google/container/v1beta1/cluster_service.proto;l=3908 * @return The zone. */ @java.lang.Deprecated @@ -898,7 +898,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3881 + * google/container/v1beta1/cluster_service.proto;l=3908 * @return The bytes for zone. */ @java.lang.Deprecated @@ -926,7 +926,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3881 + * google/container/v1beta1/cluster_service.proto;l=3908 * @param value The zone to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3881 + * google/container/v1beta1/cluster_service.proto;l=3908 * @return This builder for chaining. */ @java.lang.Deprecated @@ -976,7 +976,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3881 + * google/container/v1beta1/cluster_service.proto;l=3908 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1005,7 +1005,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3885 + * google/container/v1beta1/cluster_service.proto;l=3912 * @return The clusterId. */ @java.lang.Deprecated @@ -1032,7 +1032,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3885 + * google/container/v1beta1/cluster_service.proto;l=3912 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1059,7 +1059,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3885 + * google/container/v1beta1/cluster_service.proto;l=3912 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1085,7 +1085,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3885 + * google/container/v1beta1/cluster_service.proto;l=3912 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1107,7 +1107,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3885 + * google/container/v1beta1/cluster_service.proto;l=3912 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java index e958b0f245ca..5f5a0c46010e 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface ListNodePoolsRequestOrBuilder * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3874 + * google/container/v1beta1/cluster_service.proto;l=3901 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface ListNodePoolsRequestOrBuilder * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3874 + * google/container/v1beta1/cluster_service.proto;l=3901 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3881 + * google/container/v1beta1/cluster_service.proto;l=3908 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3881 + * google/container/v1beta1/cluster_service.proto;l=3908 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface ListNodePoolsRequestOrBuilder * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3885 + * google/container/v1beta1/cluster_service.proto;l=3912 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface ListNodePoolsRequestOrBuilder * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3885 + * google/container/v1beta1/cluster_service.proto;l=3912 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java index a221b1d10a23..4cf58a690dca 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3660 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3660 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3667 + * google/container/v1beta1/cluster_service.proto;l=3694 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3667 + * google/container/v1beta1/cluster_service.proto;l=3694 * @return The bytes for zone. */ @java.lang.Override @@ -650,7 +650,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3660 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The projectId. */ @java.lang.Deprecated @@ -678,7 +678,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3660 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -706,7 +706,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3660 + * google/container/v1beta1/cluster_service.proto;l=3687 * @param value The projectId to set. * @return This builder for chaining. */ @@ -733,7 +733,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3660 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return This builder for chaining. */ @java.lang.Deprecated @@ -756,7 +756,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3660 + * google/container/v1beta1/cluster_service.proto;l=3687 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -786,7 +786,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3667 + * google/container/v1beta1/cluster_service.proto;l=3694 * @return The zone. */ @java.lang.Deprecated @@ -814,7 +814,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3667 + * google/container/v1beta1/cluster_service.proto;l=3694 * @return The bytes for zone. */ @java.lang.Deprecated @@ -842,7 +842,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3667 + * google/container/v1beta1/cluster_service.proto;l=3694 * @param value The zone to set. * @return This builder for chaining. */ @@ -869,7 +869,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3667 + * google/container/v1beta1/cluster_service.proto;l=3694 * @return This builder for chaining. */ @java.lang.Deprecated @@ -892,7 +892,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3667 + * google/container/v1beta1/cluster_service.proto;l=3694 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java index 766736d1980e..c8a5d2f0e3e8 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface ListOperationsRequestOrBuilder * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3660 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface ListOperationsRequestOrBuilder * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3660 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3667 + * google/container/v1beta1/cluster_service.proto;l=3694 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3667 + * google/container/v1beta1/cluster_service.proto;l=3694 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java index c22eeff01fcc..86f2798bc959 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java @@ -276,7 +276,14 @@ public com.google.container.v1beta1.ClientCertificateConfig getClientCertificate @SuppressWarnings("serial") private volatile java.lang.Object clusterCaCertificate_ = ""; /** - * string cluster_ca_certificate = 100; + * + * + *
        +   * Output only. Base64-encoded public certificate that is the root of
        +   * trust for the cluster.
        +   * 
        + * + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clusterCaCertificate. */ @@ -293,7 +300,14 @@ public java.lang.String getClusterCaCertificate() { } } /** - * string cluster_ca_certificate = 100; + * + * + *
        +   * Output only. Base64-encoded public certificate that is the root of
        +   * trust for the cluster.
        +   * 
        + * + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clusterCaCertificate. */ @@ -318,11 +332,11 @@ public com.google.protobuf.ByteString getClusterCaCertificateBytes() { * * *
        -   * [Output only] Base64-encoded public certificate used by clients to
        +   * Output only. Base64-encoded public certificate used by clients to
            * authenticate to the cluster endpoint.
            * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clientCertificate. */ @@ -342,11 +356,11 @@ public java.lang.String getClientCertificate() { * * *
        -   * [Output only] Base64-encoded public certificate used by clients to
        +   * Output only. Base64-encoded public certificate used by clients to
            * authenticate to the cluster endpoint.
            * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clientCertificate. */ @@ -371,11 +385,11 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { * * *
        -   * [Output only] Base64-encoded private key used by clients to authenticate
        +   * Output only. Base64-encoded private key used by clients to authenticate
            * to the cluster endpoint.
            * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clientKey. */ @@ -395,11 +409,11 @@ public java.lang.String getClientKey() { * * *
        -   * [Output only] Base64-encoded private key used by clients to authenticate
        +   * Output only. Base64-encoded private key used by clients to authenticate
            * to the cluster endpoint.
            * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clientKey. */ @@ -1430,7 +1444,15 @@ public Builder clearClientCertificateConfig() { private java.lang.Object clusterCaCertificate_ = ""; /** - * string cluster_ca_certificate = 100; + * + * + *
        +     * Output only. Base64-encoded public certificate that is the root of
        +     * trust for the cluster.
        +     * 
        + * + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The clusterCaCertificate. */ @@ -1446,7 +1468,15 @@ public java.lang.String getClusterCaCertificate() { } } /** - * string cluster_ca_certificate = 100; + * + * + *
        +     * Output only. Base64-encoded public certificate that is the root of
        +     * trust for the cluster.
        +     * 
        + * + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for clusterCaCertificate. */ @@ -1462,7 +1492,15 @@ public com.google.protobuf.ByteString getClusterCaCertificateBytes() { } } /** - * string cluster_ca_certificate = 100; + * + * + *
        +     * Output only. Base64-encoded public certificate that is the root of
        +     * trust for the cluster.
        +     * 
        + * + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The clusterCaCertificate to set. * @return This builder for chaining. @@ -1477,7 +1515,15 @@ public Builder setClusterCaCertificate(java.lang.String value) { return this; } /** - * string cluster_ca_certificate = 100; + * + * + *
        +     * Output only. Base64-encoded public certificate that is the root of
        +     * trust for the cluster.
        +     * 
        + * + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -1488,7 +1534,15 @@ public Builder clearClusterCaCertificate() { return this; } /** - * string cluster_ca_certificate = 100; + * + * + *
        +     * Output only. Base64-encoded public certificate that is the root of
        +     * trust for the cluster.
        +     * 
        + * + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes for clusterCaCertificate to set. * @return This builder for chaining. @@ -1509,11 +1563,11 @@ public Builder setClusterCaCertificateBytes(com.google.protobuf.ByteString value * * *
        -     * [Output only] Base64-encoded public certificate used by clients to
        +     * Output only. Base64-encoded public certificate used by clients to
              * authenticate to the cluster endpoint.
              * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clientCertificate. */ @@ -1532,11 +1586,11 @@ public java.lang.String getClientCertificate() { * * *
        -     * [Output only] Base64-encoded public certificate used by clients to
        +     * Output only. Base64-encoded public certificate used by clients to
              * authenticate to the cluster endpoint.
              * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clientCertificate. */ @@ -1555,11 +1609,11 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { * * *
        -     * [Output only] Base64-encoded public certificate used by clients to
        +     * Output only. Base64-encoded public certificate used by clients to
              * authenticate to the cluster endpoint.
              * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The clientCertificate to set. * @return This builder for chaining. @@ -1577,11 +1631,11 @@ public Builder setClientCertificate(java.lang.String value) { * * *
        -     * [Output only] Base64-encoded public certificate used by clients to
        +     * Output only. Base64-encoded public certificate used by clients to
              * authenticate to the cluster endpoint.
              * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1595,11 +1649,11 @@ public Builder clearClientCertificate() { * * *
        -     * [Output only] Base64-encoded public certificate used by clients to
        +     * Output only. Base64-encoded public certificate used by clients to
              * authenticate to the cluster endpoint.
              * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for clientCertificate to set. * @return This builder for chaining. @@ -1620,11 +1674,11 @@ public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] Base64-encoded private key used by clients to authenticate
        +     * Output only. Base64-encoded private key used by clients to authenticate
              * to the cluster endpoint.
              * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clientKey. */ @@ -1643,11 +1697,11 @@ public java.lang.String getClientKey() { * * *
        -     * [Output only] Base64-encoded private key used by clients to authenticate
        +     * Output only. Base64-encoded private key used by clients to authenticate
              * to the cluster endpoint.
              * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clientKey. */ @@ -1666,11 +1720,11 @@ public com.google.protobuf.ByteString getClientKeyBytes() { * * *
        -     * [Output only] Base64-encoded private key used by clients to authenticate
        +     * Output only. Base64-encoded private key used by clients to authenticate
              * to the cluster endpoint.
              * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The clientKey to set. * @return This builder for chaining. @@ -1688,11 +1742,11 @@ public Builder setClientKey(java.lang.String value) { * * *
        -     * [Output only] Base64-encoded private key used by clients to authenticate
        +     * Output only. Base64-encoded private key used by clients to authenticate
              * to the cluster endpoint.
              * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1706,11 +1760,11 @@ public Builder clearClientKey() { * * *
        -     * [Output only] Base64-encoded private key used by clients to authenticate
        +     * Output only. Base64-encoded private key used by clients to authenticate
              * to the cluster endpoint.
              * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for clientKey to set. * @return This builder for chaining. diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java index 98e3620c32c7..85230e723733 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java @@ -159,13 +159,27 @@ public interface MasterAuthOrBuilder getClientCertificateConfigOrBuilder(); /** - * string cluster_ca_certificate = 100; + * + * + *
        +   * Output only. Base64-encoded public certificate that is the root of
        +   * trust for the cluster.
        +   * 
        + * + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clusterCaCertificate. */ java.lang.String getClusterCaCertificate(); /** - * string cluster_ca_certificate = 100; + * + * + *
        +   * Output only. Base64-encoded public certificate that is the root of
        +   * trust for the cluster.
        +   * 
        + * + * string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clusterCaCertificate. */ @@ -175,11 +189,11 @@ public interface MasterAuthOrBuilder * * *
        -   * [Output only] Base64-encoded public certificate used by clients to
        +   * Output only. Base64-encoded public certificate used by clients to
            * authenticate to the cluster endpoint.
            * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clientCertificate. */ @@ -188,11 +202,11 @@ public interface MasterAuthOrBuilder * * *
        -   * [Output only] Base64-encoded public certificate used by clients to
        +   * Output only. Base64-encoded public certificate used by clients to
            * authenticate to the cluster endpoint.
            * 
        * - * string client_certificate = 101; + * string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clientCertificate. */ @@ -202,11 +216,11 @@ public interface MasterAuthOrBuilder * * *
        -   * [Output only] Base64-encoded private key used by clients to authenticate
        +   * Output only. Base64-encoded private key used by clients to authenticate
            * to the cluster endpoint.
            * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The clientKey. */ @@ -215,11 +229,11 @@ public interface MasterAuthOrBuilder * * *
        -   * [Output only] Base64-encoded private key used by clients to authenticate
        +   * Output only. Base64-encoded private key used by clients to authenticate
            * to the cluster endpoint.
            * 
        * - * string client_key = 102; + * string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for clientKey. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfig.java index d0ac73861ec6..3a4a903c8480 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfig.java @@ -214,6 +214,16 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * KUBELET = 14; */ KUBELET(14), + /** + * + * + *
        +     * NVIDIA Data Center GPU Manager (DCGM)
        +     * 
        + * + * DCGM = 15; + */ + DCGM(15), UNRECOGNIZED(-1), ; @@ -357,6 +367,16 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * KUBELET = 14; */ public static final int KUBELET_VALUE = 14; + /** + * + * + *
        +     * NVIDIA Data Center GPU Manager (DCGM)
        +     * 
        + * + * DCGM = 15; + */ + public static final int DCGM_VALUE = 15; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -410,6 +430,8 @@ public static Component forNumber(int value) { return CADVISOR; case 14: return KUBELET; + case 15: + return DCGM; default: return null; } diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java index 2b6fe87410e1..5b7517126e1f 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java @@ -941,7 +941,7 @@ public com.google.protobuf.Parser getParserForT * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The network. */ @@ -967,7 +967,7 @@ public java.lang.String getNetwork() { * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for network. */ @@ -998,7 +998,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The subnetwork. */ @@ -1024,7 +1024,7 @@ public java.lang.String getSubnetwork() { * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for subnetwork. */ @@ -2358,7 +2358,7 @@ public Builder mergeFrom( * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The network. */ @@ -2383,7 +2383,7 @@ public java.lang.String getNetwork() { * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for network. */ @@ -2408,7 +2408,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The network to set. * @return This builder for chaining. @@ -2432,7 +2432,7 @@ public Builder setNetwork(java.lang.String value) { * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2452,7 +2452,7 @@ public Builder clearNetwork() { * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for network to set. * @return This builder for chaining. @@ -2479,7 +2479,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The subnetwork. */ @@ -2504,7 +2504,7 @@ public java.lang.String getSubnetwork() { * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for subnetwork. */ @@ -2529,7 +2529,7 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The subnetwork to set. * @return This builder for chaining. @@ -2553,7 +2553,7 @@ public Builder setSubnetwork(java.lang.String value) { * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2573,7 +2573,7 @@ public Builder clearSubnetwork() { * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for subnetwork to set. * @return This builder for chaining. diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java index 816951d13dcd..df09c49612bc 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java @@ -34,7 +34,7 @@ public interface NetworkConfigOrBuilder * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The network. */ @@ -49,7 +49,7 @@ public interface NetworkConfigOrBuilder * projects/my-project/global/networks/my-network * * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for network. */ @@ -65,7 +65,7 @@ public interface NetworkConfigOrBuilder * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The subnetwork. */ @@ -80,7 +80,7 @@ public interface NetworkConfigOrBuilder * projects/my-project/regions/us-central1/subnetworks/my-subnet * * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for subnetwork. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfig.java index 504acc5f0b2e..040e9d132e87 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfig.java @@ -1736,7 +1736,7 @@ public com.google.container.v1beta1.AdditionalPodNetworkConfig getAdditionalPodN * * *
        -   * Output only. [Output only] The utilization of the IPv4 range for the pod.
        +   * Output only. The utilization of the IPv4 range for the pod.
            * The ratio is Usage/[Total number of IPs in the secondary range],
            * Usage=numNodes*numZones*podIPsPerNode.
            * 
        @@ -4290,7 +4290,7 @@ public Builder removeAdditionalPodNetworkConfigs(int index) { * * *
        -     * Output only. [Output only] The utilization of the IPv4 range for the pod.
        +     * Output only. The utilization of the IPv4 range for the pod.
              * The ratio is Usage/[Total number of IPs in the secondary range],
              * Usage=numNodes*numZones*podIPsPerNode.
              * 
        @@ -4308,7 +4308,7 @@ public double getPodIpv4RangeUtilization() { * * *
        -     * Output only. [Output only] The utilization of the IPv4 range for the pod.
        +     * Output only. The utilization of the IPv4 range for the pod.
              * The ratio is Usage/[Total number of IPs in the secondary range],
              * Usage=numNodes*numZones*podIPsPerNode.
              * 
        @@ -4330,7 +4330,7 @@ public Builder setPodIpv4RangeUtilization(double value) { * * *
        -     * Output only. [Output only] The utilization of the IPv4 range for the pod.
        +     * Output only. The utilization of the IPv4 range for the pod.
              * The ratio is Usage/[Total number of IPs in the secondary range],
              * Usage=numNodes*numZones*podIPsPerNode.
              * 
        diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfigOrBuilder.java index df9070e4c502..693c94144ede 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfigOrBuilder.java @@ -428,7 +428,7 @@ com.google.container.v1beta1.AdditionalNodeNetworkConfig getAdditionalNodeNetwor * * *
        -   * Output only. [Output only] The utilization of the IPv4 range for the pod.
        +   * Output only. The utilization of the IPv4 range for the pod.
            * The ratio is Usage/[Total number of IPs in the secondary range],
            * Usage=numNodes*numZones*podIPsPerNode.
            * 
        diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java index 58fe02ea5669..992fcc2ee4cd 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java @@ -6509,10 +6509,10 @@ public com.google.container.v1beta1.NodeNetworkConfigOrBuilder getNetworkConfigO * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -6532,10 +6532,10 @@ public java.lang.String getSelfLink() { * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -6616,14 +6616,15 @@ public com.google.protobuf.ByteString getVersionBytes() { * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return A list containing the instanceGroupUrls. */ @@ -6634,14 +6635,15 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The count of instanceGroupUrls. */ @@ -6652,14 +6654,15 @@ public int getInstanceGroupUrlsCount() { * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. @@ -6671,14 +6674,15 @@ public java.lang.String getInstanceGroupUrls(int index) { * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. @@ -6693,10 +6697,12 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * *
        -   * [Output only] The status of the nodes in this pool instance.
        +   * Output only. The status of the nodes in this pool instance.
            * 
        * - * .google.container.v1beta1.NodePool.Status status = 103; + * + * .google.container.v1beta1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -6708,10 +6714,12 @@ public int getStatusValue() { * * *
        -   * [Output only] The status of the nodes in this pool instance.
        +   * Output only. The status of the nodes in this pool instance.
            * 
        * - * .google.container.v1beta1.NodePool.Status status = 103; + * + * .google.container.v1beta1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -6730,15 +6738,17 @@ public com.google.container.v1beta1.NodePool.Status getStatus() { * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * node pool instance, if available.
            * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4203 + * google/container/v1beta1/cluster_service.proto;l=4231 * @return The statusMessage. */ @java.lang.Override @@ -6758,15 +6768,17 @@ public java.lang.String getStatusMessage() { * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * node pool instance, if available.
            * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4203 + * google/container/v1beta1/cluster_service.proto;l=4231 * @return The bytes for statusMessage. */ @java.lang.Override @@ -7016,10 +7028,10 @@ public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuil * * *
        -   * [Output only] The pod CIDR block size per node in this node pool.
        +   * Output only. The pod CIDR block size per node in this node pool.
            * 
        * - * int32 pod_ipv4_cidr_size = 7; + * int32 pod_ipv4_cidr_size = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The podIpv4CidrSize. */ @@ -7136,8 +7148,8 @@ public com.google.container.v1beta1.NodePool.PlacementPolicy getPlacementPolicy( * * *
        -   * Output only. [Output only] Update info contains relevant information during
        -   * a node pool update.
        +   * Output only. Update info contains relevant information during a node
        +   * pool update.
            * 
        * * @@ -7154,8 +7166,8 @@ public boolean hasUpdateInfo() { * * *
        -   * Output only. [Output only] Update info contains relevant information during
        -   * a node pool update.
        +   * Output only. Update info contains relevant information during a node
        +   * pool update.
            * 
        * * @@ -7174,8 +7186,8 @@ public com.google.container.v1beta1.NodePool.UpdateInfo getUpdateInfo() { * * *
        -   * Output only. [Output only] Update info contains relevant information during
        -   * a node pool update.
        +   * Output only. Update info contains relevant information during a node
        +   * pool update.
            * 
        * * @@ -9168,10 +9180,10 @@ public com.google.container.v1beta1.NodeNetworkConfigOrBuilder getNetworkConfigO * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -9190,10 +9202,10 @@ public java.lang.String getSelfLink() { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -9212,10 +9224,10 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The selfLink to set. * @return This builder for chaining. @@ -9233,10 +9245,10 @@ public Builder setSelfLink(java.lang.String value) { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -9250,10 +9262,10 @@ public Builder clearSelfLink() { * * *
        -     * [Output only] Server-defined URL for the resource.
        +     * Output only. Server-defined URL for the resource.
              * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for selfLink to set. * @return This builder for chaining. @@ -9398,14 +9410,15 @@ private void ensureInstanceGroupUrlsIsMutable() { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return A list containing the instanceGroupUrls. */ @@ -9417,14 +9430,15 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The count of instanceGroupUrls. */ @@ -9435,14 +9449,15 @@ public int getInstanceGroupUrlsCount() { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. @@ -9454,14 +9469,15 @@ public java.lang.String getInstanceGroupUrls(int index) { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. @@ -9473,14 +9489,15 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index to set the value at. * @param value The instanceGroupUrls to set. @@ -9500,14 +9517,15 @@ public Builder setInstanceGroupUrls(int index, java.lang.String value) { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The instanceGroupUrls to add. * @return This builder for chaining. @@ -9526,14 +9544,15 @@ public Builder addInstanceGroupUrls(java.lang.String value) { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param values The instanceGroupUrls to add. * @return This builder for chaining. @@ -9549,14 +9568,15 @@ public Builder addAllInstanceGroupUrls(java.lang.Iterable valu * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -9571,14 +9591,15 @@ public Builder clearInstanceGroupUrls() { * * *
        -     * [Output only] The resource URLs of the [managed instance
        +     * Output only. The resource URLs of the [managed instance
              * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
              * associated with this node pool.
              * During the node pool blue-green upgrade operation, the URLs contain both
              * blue and green resources.
              * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes of the instanceGroupUrls to add. * @return This builder for chaining. @@ -9600,10 +9621,12 @@ public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The status of the nodes in this pool instance.
        +     * Output only. The status of the nodes in this pool instance.
              * 
        * - * .google.container.v1beta1.NodePool.Status status = 103; + * + * .google.container.v1beta1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -9615,10 +9638,12 @@ public int getStatusValue() { * * *
        -     * [Output only] The status of the nodes in this pool instance.
        +     * Output only. The status of the nodes in this pool instance.
              * 
        * - * .google.container.v1beta1.NodePool.Status status = 103; + * + * .google.container.v1beta1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. @@ -9633,10 +9658,12 @@ public Builder setStatusValue(int value) { * * *
        -     * [Output only] The status of the nodes in this pool instance.
        +     * Output only. The status of the nodes in this pool instance.
              * 
        * - * .google.container.v1beta1.NodePool.Status status = 103; + * + * .google.container.v1beta1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -9650,10 +9677,12 @@ public com.google.container.v1beta1.NodePool.Status getStatus() { * * *
        -     * [Output only] The status of the nodes in this pool instance.
        +     * Output only. The status of the nodes in this pool instance.
              * 
        * - * .google.container.v1beta1.NodePool.Status status = 103; + * + * .google.container.v1beta1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The status to set. * @return This builder for chaining. @@ -9671,10 +9700,12 @@ public Builder setStatus(com.google.container.v1beta1.NodePool.Status value) { * * *
        -     * [Output only] The status of the nodes in this pool instance.
        +     * Output only. The status of the nodes in this pool instance.
              * 
        * - * .google.container.v1beta1.NodePool.Status status = 103; + * + * .google.container.v1beta1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -9690,15 +9721,17 @@ public Builder clearStatus() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * node pool instance, if available.
              * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4203 + * google/container/v1beta1/cluster_service.proto;l=4231 * @return The statusMessage. */ @java.lang.Deprecated @@ -9717,15 +9750,17 @@ public java.lang.String getStatusMessage() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * node pool instance, if available.
              * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4203 + * google/container/v1beta1/cluster_service.proto;l=4231 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -9744,15 +9779,17 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * node pool instance, if available.
              * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4203 + * google/container/v1beta1/cluster_service.proto;l=4231 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -9770,15 +9807,17 @@ public Builder setStatusMessage(java.lang.String value) { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * node pool instance, if available.
              * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4203 + * google/container/v1beta1/cluster_service.proto;l=4231 * @return This builder for chaining. */ @java.lang.Deprecated @@ -9792,15 +9831,17 @@ public Builder clearStatusMessage() { * * *
        -     * [Output only] Deprecated. Use conditions instead.
        +     * Output only. Deprecated. Use conditions instead.
              * Additional information about the current status of this
              * node pool instance, if available.
              * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4203 + * google/container/v1beta1/cluster_service.proto;l=4231 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ @@ -10750,10 +10791,10 @@ public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder * * *
        -     * [Output only] The pod CIDR block size per node in this node pool.
        +     * Output only. The pod CIDR block size per node in this node pool.
              * 
        * - * int32 pod_ipv4_cidr_size = 7; + * int32 pod_ipv4_cidr_size = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The podIpv4CidrSize. */ @@ -10765,10 +10806,10 @@ public int getPodIpv4CidrSize() { * * *
        -     * [Output only] The pod CIDR block size per node in this node pool.
        +     * Output only. The pod CIDR block size per node in this node pool.
              * 
        * - * int32 pod_ipv4_cidr_size = 7; + * int32 pod_ipv4_cidr_size = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The podIpv4CidrSize to set. * @return This builder for chaining. @@ -10784,10 +10825,10 @@ public Builder setPodIpv4CidrSize(int value) { * * *
        -     * [Output only] The pod CIDR block size per node in this node pool.
        +     * Output only. The pod CIDR block size per node in this node pool.
              * 
        * - * int32 pod_ipv4_cidr_size = 7; + * int32 pod_ipv4_cidr_size = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -11188,8 +11229,8 @@ public Builder clearPlacementPolicy() { * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11205,8 +11246,8 @@ public boolean hasUpdateInfo() { * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11228,8 +11269,8 @@ public com.google.container.v1beta1.NodePool.UpdateInfo getUpdateInfo() { * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11253,8 +11294,8 @@ public Builder setUpdateInfo(com.google.container.v1beta1.NodePool.UpdateInfo va * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11276,8 +11317,8 @@ public Builder setUpdateInfo( * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11307,8 +11348,8 @@ public Builder mergeUpdateInfo(com.google.container.v1beta1.NodePool.UpdateInfo * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11329,8 +11370,8 @@ public Builder clearUpdateInfo() { * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11346,8 +11387,8 @@ public com.google.container.v1beta1.NodePool.UpdateInfo.Builder getUpdateInfoBui * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * @@ -11367,8 +11408,8 @@ public com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder getUpdateInfoOr * * *
        -     * Output only. [Output only] Update info contains relevant information during
        -     * a node pool update.
        +     * Output only. Update info contains relevant information during a node
        +     * pool update.
              * 
        * * diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java index d7c54a24df95..5a0e881c0269 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java @@ -229,10 +229,10 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -241,10 +241,10 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] Server-defined URL for the resource.
        +   * Output only. Server-defined URL for the resource.
            * 
        * - * string self_link = 100; + * string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -283,14 +283,15 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return A list containing the instanceGroupUrls. */ @@ -299,14 +300,15 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The count of instanceGroupUrls. */ @@ -315,14 +317,15 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. @@ -332,14 +335,15 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] The resource URLs of the [managed instance
        +   * Output only. The resource URLs of the [managed instance
            * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
            * associated with this node pool.
            * During the node pool blue-green upgrade operation, the URLs contain both
            * blue and green resources.
            * 
        * - * repeated string instance_group_urls = 102; + * repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. @@ -350,10 +354,12 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] The status of the nodes in this pool instance.
        +   * Output only. The status of the nodes in this pool instance.
            * 
        * - * .google.container.v1beta1.NodePool.Status status = 103; + * + * .google.container.v1beta1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -362,10 +368,12 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] The status of the nodes in this pool instance.
        +   * Output only. The status of the nodes in this pool instance.
            * 
        * - * .google.container.v1beta1.NodePool.Status status = 103; + * + * .google.container.v1beta1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -375,15 +383,17 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * node pool instance, if available.
            * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4203 + * google/container/v1beta1/cluster_service.proto;l=4231 * @return The statusMessage. */ @java.lang.Deprecated @@ -392,15 +402,17 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] Deprecated. Use conditions instead.
        +   * Output only. Deprecated. Use conditions instead.
            * Additional information about the current status of this
            * node pool instance, if available.
            * 
        * - * string status_message = 104 [deprecated = true]; + * + * string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4203 + * google/container/v1beta1/cluster_service.proto;l=4231 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -573,10 +585,10 @@ public interface NodePoolOrBuilder * * *
        -   * [Output only] The pod CIDR block size per node in this node pool.
        +   * Output only. The pod CIDR block size per node in this node pool.
            * 
        * - * int32 pod_ipv4_cidr_size = 7; + * int32 pod_ipv4_cidr_size = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The podIpv4CidrSize. */ @@ -656,8 +668,8 @@ public interface NodePoolOrBuilder * * *
        -   * Output only. [Output only] Update info contains relevant information during
        -   * a node pool update.
        +   * Output only. Update info contains relevant information during a node
        +   * pool update.
            * 
        * * @@ -671,8 +683,8 @@ public interface NodePoolOrBuilder * * *
        -   * Output only. [Output only] Update info contains relevant information during
        -   * a node pool update.
        +   * Output only. Update info contains relevant information during a node
        +   * pool update.
            * 
        * * @@ -686,8 +698,8 @@ public interface NodePoolOrBuilder * * *
        -   * Output only. [Output only] Update info contains relevant information during
        -   * a node pool update.
        +   * Output only. Update info contains relevant information during a node
        +   * pool update.
            * 
        * * diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java index 29ee272b30ea..a33ce2201235 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java @@ -932,10 +932,10 @@ private Type(int value) { * * *
        -   * The server-assigned ID for the operation.
        +   * Output only. The server-assigned ID for the operation.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -955,10 +955,10 @@ public java.lang.String getName() { * * *
        -   * The server-assigned ID for the operation.
        +   * Output only. The server-assigned ID for the operation.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -983,15 +983,15 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -   * The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * operation is taking place. This field is deprecated, use location instead.
            * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2997 + * google/container/v1beta1/cluster_service.proto;l=3023 * @return The zone. */ @java.lang.Override @@ -1011,15 +1011,15 @@ public java.lang.String getZone() { * * *
        -   * The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * operation is taking place. This field is deprecated, use location instead.
            * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2997 + * google/container/v1beta1/cluster_service.proto;l=3023 * @return The bytes for zone. */ @java.lang.Override @@ -1042,10 +1042,12 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
        -   * The operation type.
        +   * Output only. The operation type.
            * 
        * - * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * .google.container.v1beta1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for operationType. */ @@ -1057,10 +1059,12 @@ public int getOperationTypeValue() { * * *
        -   * The operation type.
        +   * Output only. The operation type.
            * 
        * - * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * .google.container.v1beta1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The operationType. */ @@ -1077,10 +1081,12 @@ public com.google.container.v1beta1.Operation.Type getOperationType() { * * *
        -   * The current status of the operation.
        +   * Output only. The current status of the operation.
            * 
        * - * .google.container.v1beta1.Operation.Status status = 4; + * + * .google.container.v1beta1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -1092,10 +1098,12 @@ public int getStatusValue() { * * *
        -   * The current status of the operation.
        +   * Output only. The current status of the operation.
            * 
        * - * .google.container.v1beta1.Operation.Status status = 4; + * + * .google.container.v1beta1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -1114,10 +1122,10 @@ public com.google.container.v1beta1.Operation.Status getStatus() { * * *
        -   * Detailed operation progress, if available.
        +   * Output only. Detailed operation progress, if available.
            * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The detail. */ @@ -1137,10 +1145,10 @@ public java.lang.String getDetail() { * * *
        -   * Detailed operation progress, if available.
        +   * Output only. Detailed operation progress, if available.
            * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for detail. */ @@ -1174,7 +1182,7 @@ public com.google.protobuf.ByteString getDetailBytes() { *
        * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 + * google/container/v1beta1/cluster_service.proto;l=3037 * @return The statusMessage. */ @java.lang.Override @@ -1203,7 +1211,7 @@ public java.lang.String getStatusMessage() { *
        * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 + * google/container/v1beta1/cluster_service.proto;l=3037 * @return The bytes for statusMessage. */ @java.lang.Override @@ -1228,11 +1236,11 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
        -   * Server-defined URI for the operation. Example:
        +   * Output only. Server-defined URI for the operation. Example:
            * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
            * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -1252,11 +1260,11 @@ public java.lang.String getSelfLink() { * * *
        -   * Server-defined URI for the operation. Example:
        +   * Output only. Server-defined URI for the operation. Example:
            * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
            * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -1281,10 +1289,10 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
        -   * Server-defined URI for the target of the operation. The format of this is a
        -   * URI to the resource being modified (such as a cluster, node pool, or node).
        -   * For node pool repairs, there may be multiple nodes being repaired, but only
        -   * one will be the target.
        +   * Output only. Server-defined URI for the target of the operation. The format
        +   * of this is a URI to the resource being modified (such as a cluster, node
        +   * pool, or node). For node pool repairs, there may be multiple nodes being
        +   * repaired, but only one will be the target.
            *
            * Examples:
            *
        @@ -1298,7 +1306,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() {
            * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
            * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The targetLink. */ @@ -1318,10 +1326,10 @@ public java.lang.String getTargetLink() { * * *
        -   * Server-defined URI for the target of the operation. The format of this is a
        -   * URI to the resource being modified (such as a cluster, node pool, or node).
        -   * For node pool repairs, there may be multiple nodes being repaired, but only
        -   * one will be the target.
        +   * Output only. Server-defined URI for the target of the operation. The format
        +   * of this is a URI to the resource being modified (such as a cluster, node
        +   * pool, or node). For node pool repairs, there may be multiple nodes being
        +   * repaired, but only one will be the target.
            *
            * Examples:
            *
        @@ -1335,7 +1343,7 @@ public java.lang.String getTargetLink() {
            * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
            * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for targetLink. */ @@ -1360,14 +1368,14 @@ public com.google.protobuf.ByteString getTargetLinkBytes() { * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The location. */ @@ -1387,14 +1395,14 @@ public java.lang.String getLocation() { * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for location. */ @@ -1419,11 +1427,11 @@ public com.google.protobuf.ByteString getLocationBytes() { * * *
        -   * [Output only] The time the operation started, in
        +   * Output only. The time the operation started, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The startTime. */ @@ -1443,11 +1451,11 @@ public java.lang.String getStartTime() { * * *
        -   * [Output only] The time the operation started, in
        +   * Output only. The time the operation started, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for startTime. */ @@ -1472,11 +1480,11 @@ public com.google.protobuf.ByteString getStartTimeBytes() { * * *
        -   * [Output only] The time the operation completed, in
        +   * Output only. The time the operation completed, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The endTime. */ @@ -1496,11 +1504,11 @@ public java.lang.String getEndTime() { * * *
        -   * [Output only] The time the operation completed, in
        +   * Output only. The time the operation completed, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for endTime. */ @@ -1523,7 +1531,7 @@ public com.google.protobuf.ByteString getEndTimeBytes() { * * *
        -   * Output only. [Output only] Progress information for an operation.
        +   * Output only. Progress information for an operation.
            * 
        * * @@ -1540,7 +1548,7 @@ public boolean hasProgress() { * * *
        -   * Output only. [Output only] Progress information for an operation.
        +   * Output only. Progress information for an operation.
            * 
        * * @@ -1559,7 +1567,7 @@ public com.google.container.v1beta1.OperationProgress getProgress() { * * *
        -   * Output only. [Output only] Progress information for an operation.
        +   * Output only. Progress information for an operation.
            * 
        * * @@ -2605,10 +2613,10 @@ public Builder mergeFrom( * * *
        -     * The server-assigned ID for the operation.
        +     * Output only. The server-assigned ID for the operation.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -2627,10 +2635,10 @@ public java.lang.String getName() { * * *
        -     * The server-assigned ID for the operation.
        +     * Output only. The server-assigned ID for the operation.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -2649,10 +2657,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -     * The server-assigned ID for the operation.
        +     * Output only. The server-assigned ID for the operation.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The name to set. * @return This builder for chaining. @@ -2670,10 +2678,10 @@ public Builder setName(java.lang.String value) { * * *
        -     * The server-assigned ID for the operation.
        +     * Output only. The server-assigned ID for the operation.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2687,10 +2695,10 @@ public Builder clearName() { * * *
        -     * The server-assigned ID for the operation.
        +     * Output only. The server-assigned ID for the operation.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -2711,15 +2719,15 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
        -     * The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * operation is taking place. This field is deprecated, use location instead.
              * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2997 + * google/container/v1beta1/cluster_service.proto;l=3023 * @return The zone. */ @java.lang.Deprecated @@ -2738,15 +2746,15 @@ public java.lang.String getZone() { * * *
        -     * The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * operation is taking place. This field is deprecated, use location instead.
              * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2997 + * google/container/v1beta1/cluster_service.proto;l=3023 * @return The bytes for zone. */ @java.lang.Deprecated @@ -2765,15 +2773,15 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
        -     * The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * operation is taking place. This field is deprecated, use location instead.
              * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2997 + * google/container/v1beta1/cluster_service.proto;l=3023 * @param value The zone to set. * @return This builder for chaining. */ @@ -2791,15 +2799,15 @@ public Builder setZone(java.lang.String value) { * * *
        -     * The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * operation is taking place. This field is deprecated, use location instead.
              * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2997 + * google/container/v1beta1/cluster_service.proto;l=3023 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2813,15 +2821,15 @@ public Builder clearZone() { * * *
        -     * The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
              * operation is taking place. This field is deprecated, use location instead.
              * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2997 + * google/container/v1beta1/cluster_service.proto;l=3023 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -2842,10 +2850,12 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
        -     * The operation type.
        +     * Output only. The operation type.
              * 
        * - * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * .google.container.v1beta1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for operationType. */ @@ -2857,10 +2867,12 @@ public int getOperationTypeValue() { * * *
        -     * The operation type.
        +     * Output only. The operation type.
              * 
        * - * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * .google.container.v1beta1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for operationType to set. * @return This builder for chaining. @@ -2875,10 +2887,12 @@ public Builder setOperationTypeValue(int value) { * * *
        -     * The operation type.
        +     * Output only. The operation type.
              * 
        * - * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * .google.container.v1beta1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The operationType. */ @@ -2892,10 +2906,12 @@ public com.google.container.v1beta1.Operation.Type getOperationType() { * * *
        -     * The operation type.
        +     * Output only. The operation type.
              * 
        * - * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * .google.container.v1beta1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The operationType to set. * @return This builder for chaining. @@ -2913,10 +2929,12 @@ public Builder setOperationType(com.google.container.v1beta1.Operation.Type valu * * *
        -     * The operation type.
        +     * Output only. The operation type.
              * 
        * - * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * .google.container.v1beta1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -2932,10 +2950,12 @@ public Builder clearOperationType() { * * *
        -     * The current status of the operation.
        +     * Output only. The current status of the operation.
              * 
        * - * .google.container.v1beta1.Operation.Status status = 4; + * + * .google.container.v1beta1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -2947,10 +2967,12 @@ public int getStatusValue() { * * *
        -     * The current status of the operation.
        +     * Output only. The current status of the operation.
              * 
        * - * .google.container.v1beta1.Operation.Status status = 4; + * + * .google.container.v1beta1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. @@ -2965,10 +2987,12 @@ public Builder setStatusValue(int value) { * * *
        -     * The current status of the operation.
        +     * Output only. The current status of the operation.
              * 
        * - * .google.container.v1beta1.Operation.Status status = 4; + * + * .google.container.v1beta1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -2982,10 +3006,12 @@ public com.google.container.v1beta1.Operation.Status getStatus() { * * *
        -     * The current status of the operation.
        +     * Output only. The current status of the operation.
              * 
        * - * .google.container.v1beta1.Operation.Status status = 4; + * + * .google.container.v1beta1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The status to set. * @return This builder for chaining. @@ -3003,10 +3029,12 @@ public Builder setStatus(com.google.container.v1beta1.Operation.Status value) { * * *
        -     * The current status of the operation.
        +     * Output only. The current status of the operation.
              * 
        * - * .google.container.v1beta1.Operation.Status status = 4; + * + * .google.container.v1beta1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -3022,10 +3050,10 @@ public Builder clearStatus() { * * *
        -     * Detailed operation progress, if available.
        +     * Output only. Detailed operation progress, if available.
              * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The detail. */ @@ -3044,10 +3072,10 @@ public java.lang.String getDetail() { * * *
        -     * Detailed operation progress, if available.
        +     * Output only. Detailed operation progress, if available.
              * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for detail. */ @@ -3066,10 +3094,10 @@ public com.google.protobuf.ByteString getDetailBytes() { * * *
        -     * Detailed operation progress, if available.
        +     * Output only. Detailed operation progress, if available.
              * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The detail to set. * @return This builder for chaining. @@ -3087,10 +3115,10 @@ public Builder setDetail(java.lang.String value) { * * *
        -     * Detailed operation progress, if available.
        +     * Output only. Detailed operation progress, if available.
              * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3104,10 +3132,10 @@ public Builder clearDetail() { * * *
        -     * Detailed operation progress, if available.
        +     * Output only. Detailed operation progress, if available.
              * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for detail to set. * @return This builder for chaining. @@ -3137,7 +3165,7 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) { *
        * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 + * google/container/v1beta1/cluster_service.proto;l=3037 * @return The statusMessage. */ @java.lang.Deprecated @@ -3165,7 +3193,7 @@ public java.lang.String getStatusMessage() { *
        * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 + * google/container/v1beta1/cluster_service.proto;l=3037 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -3193,7 +3221,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
        * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 + * google/container/v1beta1/cluster_service.proto;l=3037 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -3220,7 +3248,7 @@ public Builder setStatusMessage(java.lang.String value) { *
        * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 + * google/container/v1beta1/cluster_service.proto;l=3037 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3243,7 +3271,7 @@ public Builder clearStatusMessage() { *
        * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 + * google/container/v1beta1/cluster_service.proto;l=3037 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ @@ -3264,11 +3292,11 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { * * *
        -     * Server-defined URI for the operation. Example:
        +     * Output only. Server-defined URI for the operation. Example:
              * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
              * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -3287,11 +3315,11 @@ public java.lang.String getSelfLink() { * * *
        -     * Server-defined URI for the operation. Example:
        +     * Output only. Server-defined URI for the operation. Example:
              * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
              * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -3310,11 +3338,11 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
        -     * Server-defined URI for the operation. Example:
        +     * Output only. Server-defined URI for the operation. Example:
              * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
              * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The selfLink to set. * @return This builder for chaining. @@ -3332,11 +3360,11 @@ public Builder setSelfLink(java.lang.String value) { * * *
        -     * Server-defined URI for the operation. Example:
        +     * Output only. Server-defined URI for the operation. Example:
              * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
              * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3350,11 +3378,11 @@ public Builder clearSelfLink() { * * *
        -     * Server-defined URI for the operation. Example:
        +     * Output only. Server-defined URI for the operation. Example:
              * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
              * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for selfLink to set. * @return This builder for chaining. @@ -3375,10 +3403,10 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * * *
        -     * Server-defined URI for the target of the operation. The format of this is a
        -     * URI to the resource being modified (such as a cluster, node pool, or node).
        -     * For node pool repairs, there may be multiple nodes being repaired, but only
        -     * one will be the target.
        +     * Output only. Server-defined URI for the target of the operation. The format
        +     * of this is a URI to the resource being modified (such as a cluster, node
        +     * pool, or node). For node pool repairs, there may be multiple nodes being
        +     * repaired, but only one will be the target.
              *
              * Examples:
              *
        @@ -3392,7 +3420,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) {
              * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
              * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The targetLink. */ @@ -3411,10 +3439,10 @@ public java.lang.String getTargetLink() { * * *
        -     * Server-defined URI for the target of the operation. The format of this is a
        -     * URI to the resource being modified (such as a cluster, node pool, or node).
        -     * For node pool repairs, there may be multiple nodes being repaired, but only
        -     * one will be the target.
        +     * Output only. Server-defined URI for the target of the operation. The format
        +     * of this is a URI to the resource being modified (such as a cluster, node
        +     * pool, or node). For node pool repairs, there may be multiple nodes being
        +     * repaired, but only one will be the target.
              *
              * Examples:
              *
        @@ -3428,7 +3456,7 @@ public java.lang.String getTargetLink() {
              * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
              * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for targetLink. */ @@ -3447,10 +3475,10 @@ public com.google.protobuf.ByteString getTargetLinkBytes() { * * *
        -     * Server-defined URI for the target of the operation. The format of this is a
        -     * URI to the resource being modified (such as a cluster, node pool, or node).
        -     * For node pool repairs, there may be multiple nodes being repaired, but only
        -     * one will be the target.
        +     * Output only. Server-defined URI for the target of the operation. The format
        +     * of this is a URI to the resource being modified (such as a cluster, node
        +     * pool, or node). For node pool repairs, there may be multiple nodes being
        +     * repaired, but only one will be the target.
              *
              * Examples:
              *
        @@ -3464,7 +3492,7 @@ public com.google.protobuf.ByteString getTargetLinkBytes() {
              * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
              * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The targetLink to set. * @return This builder for chaining. @@ -3482,10 +3510,10 @@ public Builder setTargetLink(java.lang.String value) { * * *
        -     * Server-defined URI for the target of the operation. The format of this is a
        -     * URI to the resource being modified (such as a cluster, node pool, or node).
        -     * For node pool repairs, there may be multiple nodes being repaired, but only
        -     * one will be the target.
        +     * Output only. Server-defined URI for the target of the operation. The format
        +     * of this is a URI to the resource being modified (such as a cluster, node
        +     * pool, or node). For node pool repairs, there may be multiple nodes being
        +     * repaired, but only one will be the target.
              *
              * Examples:
              *
        @@ -3499,7 +3527,7 @@ public Builder setTargetLink(java.lang.String value) {
              * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
              * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3513,10 +3541,10 @@ public Builder clearTargetLink() { * * *
        -     * Server-defined URI for the target of the operation. The format of this is a
        -     * URI to the resource being modified (such as a cluster, node pool, or node).
        -     * For node pool repairs, there may be multiple nodes being repaired, but only
        -     * one will be the target.
        +     * Output only. Server-defined URI for the target of the operation. The format
        +     * of this is a URI to the resource being modified (such as a cluster, node
        +     * pool, or node). For node pool repairs, there may be multiple nodes being
        +     * repaired, but only one will be the target.
              *
              * Examples:
              *
        @@ -3530,7 +3558,7 @@ public Builder clearTargetLink() {
              * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
              * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for targetLink to set. * @return This builder for chaining. @@ -3551,14 +3579,14 @@ public Builder setTargetLinkBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The location. */ @@ -3577,14 +3605,14 @@ public java.lang.String getLocation() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for location. */ @@ -3603,14 +3631,14 @@ public com.google.protobuf.ByteString getLocationBytes() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The location to set. * @return This builder for chaining. @@ -3628,14 +3656,14 @@ public Builder setLocation(java.lang.String value) { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3649,14 +3677,14 @@ public Builder clearLocation() { * * *
        -     * [Output only] The name of the Google Compute Engine
        +     * Output only. The name of the Google Compute Engine
              * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * or
              * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
              * in which the cluster resides.
              * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for location to set. * @return This builder for chaining. @@ -3677,11 +3705,11 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The time the operation started, in
        +     * Output only. The time the operation started, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The startTime. */ @@ -3700,11 +3728,11 @@ public java.lang.String getStartTime() { * * *
        -     * [Output only] The time the operation started, in
        +     * Output only. The time the operation started, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for startTime. */ @@ -3723,11 +3751,11 @@ public com.google.protobuf.ByteString getStartTimeBytes() { * * *
        -     * [Output only] The time the operation started, in
        +     * Output only. The time the operation started, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The startTime to set. * @return This builder for chaining. @@ -3745,11 +3773,11 @@ public Builder setStartTime(java.lang.String value) { * * *
        -     * [Output only] The time the operation started, in
        +     * Output only. The time the operation started, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3763,11 +3791,11 @@ public Builder clearStartTime() { * * *
        -     * [Output only] The time the operation started, in
        +     * Output only. The time the operation started, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for startTime to set. * @return This builder for chaining. @@ -3788,11 +3816,11 @@ public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { * * *
        -     * [Output only] The time the operation completed, in
        +     * Output only. The time the operation completed, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The endTime. */ @@ -3811,11 +3839,11 @@ public java.lang.String getEndTime() { * * *
        -     * [Output only] The time the operation completed, in
        +     * Output only. The time the operation completed, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for endTime. */ @@ -3834,11 +3862,11 @@ public com.google.protobuf.ByteString getEndTimeBytes() { * * *
        -     * [Output only] The time the operation completed, in
        +     * Output only. The time the operation completed, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The endTime to set. * @return This builder for chaining. @@ -3856,11 +3884,11 @@ public Builder setEndTime(java.lang.String value) { * * *
        -     * [Output only] The time the operation completed, in
        +     * Output only. The time the operation completed, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3874,11 +3902,11 @@ public Builder clearEndTime() { * * *
        -     * [Output only] The time the operation completed, in
        +     * Output only. The time the operation completed, in
              * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
              * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for endTime to set. * @return This builder for chaining. @@ -3904,7 +3932,7 @@ public Builder setEndTimeBytes(com.google.protobuf.ByteString value) { * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -3920,7 +3948,7 @@ public boolean hasProgress() { * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -3942,7 +3970,7 @@ public com.google.container.v1beta1.OperationProgress getProgress() { * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -3966,7 +3994,7 @@ public Builder setProgress(com.google.container.v1beta1.OperationProgress value) * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -3988,7 +4016,7 @@ public Builder setProgress( * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -4017,7 +4045,7 @@ public Builder mergeProgress(com.google.container.v1beta1.OperationProgress valu * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -4038,7 +4066,7 @@ public Builder clearProgress() { * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -4054,7 +4082,7 @@ public com.google.container.v1beta1.OperationProgress.Builder getProgressBuilder * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * @@ -4074,7 +4102,7 @@ public com.google.container.v1beta1.OperationProgressOrBuilder getProgressOrBuil * * *
        -     * Output only. [Output only] Progress information for an operation.
        +     * Output only. Progress information for an operation.
              * 
        * * diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java index 92de58da1ea9..7c47a66a6ccb 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java @@ -28,10 +28,10 @@ public interface OperationOrBuilder * * *
        -   * The server-assigned ID for the operation.
        +   * Output only. The server-assigned ID for the operation.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -40,10 +40,10 @@ public interface OperationOrBuilder * * *
        -   * The server-assigned ID for the operation.
        +   * Output only. The server-assigned ID for the operation.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -53,15 +53,15 @@ public interface OperationOrBuilder * * *
        -   * The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * operation is taking place. This field is deprecated, use location instead.
            * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2997 + * google/container/v1beta1/cluster_service.proto;l=3023 * @return The zone. */ @java.lang.Deprecated @@ -70,15 +70,15 @@ public interface OperationOrBuilder * * *
        -   * The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
            * operation is taking place. This field is deprecated, use location instead.
            * 
        * - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2997 + * google/container/v1beta1/cluster_service.proto;l=3023 * @return The bytes for zone. */ @java.lang.Deprecated @@ -88,10 +88,12 @@ public interface OperationOrBuilder * * *
        -   * The operation type.
        +   * Output only. The operation type.
            * 
        * - * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * .google.container.v1beta1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for operationType. */ @@ -100,10 +102,12 @@ public interface OperationOrBuilder * * *
        -   * The operation type.
        +   * Output only. The operation type.
            * 
        * - * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * .google.container.v1beta1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The operationType. */ @@ -113,10 +117,12 @@ public interface OperationOrBuilder * * *
        -   * The current status of the operation.
        +   * Output only. The current status of the operation.
            * 
        * - * .google.container.v1beta1.Operation.Status status = 4; + * + * .google.container.v1beta1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for status. */ @@ -125,10 +131,12 @@ public interface OperationOrBuilder * * *
        -   * The current status of the operation.
        +   * Output only. The current status of the operation.
            * 
        * - * .google.container.v1beta1.Operation.Status status = 4; + * + * .google.container.v1beta1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The status. */ @@ -138,10 +146,10 @@ public interface OperationOrBuilder * * *
        -   * Detailed operation progress, if available.
        +   * Output only. Detailed operation progress, if available.
            * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The detail. */ @@ -150,10 +158,10 @@ public interface OperationOrBuilder * * *
        -   * Detailed operation progress, if available.
        +   * Output only. Detailed operation progress, if available.
            * 
        * - * string detail = 8; + * string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for detail. */ @@ -172,7 +180,7 @@ public interface OperationOrBuilder *
        * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 + * google/container/v1beta1/cluster_service.proto;l=3037 * @return The statusMessage. */ @java.lang.Deprecated @@ -190,7 +198,7 @@ public interface OperationOrBuilder *
        * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 + * google/container/v1beta1/cluster_service.proto;l=3037 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -200,11 +208,11 @@ public interface OperationOrBuilder * * *
        -   * Server-defined URI for the operation. Example:
        +   * Output only. Server-defined URI for the operation. Example:
            * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
            * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The selfLink. */ @@ -213,11 +221,11 @@ public interface OperationOrBuilder * * *
        -   * Server-defined URI for the operation. Example:
        +   * Output only. Server-defined URI for the operation. Example:
            * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
            * 
        * - * string self_link = 6; + * string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for selfLink. */ @@ -227,10 +235,10 @@ public interface OperationOrBuilder * * *
        -   * Server-defined URI for the target of the operation. The format of this is a
        -   * URI to the resource being modified (such as a cluster, node pool, or node).
        -   * For node pool repairs, there may be multiple nodes being repaired, but only
        -   * one will be the target.
        +   * Output only. Server-defined URI for the target of the operation. The format
        +   * of this is a URI to the resource being modified (such as a cluster, node
        +   * pool, or node). For node pool repairs, there may be multiple nodes being
        +   * repaired, but only one will be the target.
            *
            * Examples:
            *
        @@ -244,7 +252,7 @@ public interface OperationOrBuilder
            * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
            * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The targetLink. */ @@ -253,10 +261,10 @@ public interface OperationOrBuilder * * *
        -   * Server-defined URI for the target of the operation. The format of this is a
        -   * URI to the resource being modified (such as a cluster, node pool, or node).
        -   * For node pool repairs, there may be multiple nodes being repaired, but only
        -   * one will be the target.
        +   * Output only. Server-defined URI for the target of the operation. The format
        +   * of this is a URI to the resource being modified (such as a cluster, node
        +   * pool, or node). For node pool repairs, there may be multiple nodes being
        +   * repaired, but only one will be the target.
            *
            * Examples:
            *
        @@ -270,7 +278,7 @@ public interface OperationOrBuilder
            * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
            * 
        * - * string target_link = 7; + * string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for targetLink. */ @@ -280,14 +288,14 @@ public interface OperationOrBuilder * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The location. */ @@ -296,14 +304,14 @@ public interface OperationOrBuilder * * *
        -   * [Output only] The name of the Google Compute Engine
        +   * Output only. The name of the Google Compute Engine
            * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * or
            * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
            * in which the cluster resides.
            * 
        * - * string location = 9; + * string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for location. */ @@ -313,11 +321,11 @@ public interface OperationOrBuilder * * *
        -   * [Output only] The time the operation started, in
        +   * Output only. The time the operation started, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The startTime. */ @@ -326,11 +334,11 @@ public interface OperationOrBuilder * * *
        -   * [Output only] The time the operation started, in
        +   * Output only. The time the operation started, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string start_time = 10; + * string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for startTime. */ @@ -340,11 +348,11 @@ public interface OperationOrBuilder * * *
        -   * [Output only] The time the operation completed, in
        +   * Output only. The time the operation completed, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The endTime. */ @@ -353,11 +361,11 @@ public interface OperationOrBuilder * * *
        -   * [Output only] The time the operation completed, in
        +   * Output only. The time the operation completed, in
            * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
            * 
        * - * string end_time = 11; + * string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for endTime. */ @@ -367,7 +375,7 @@ public interface OperationOrBuilder * * *
        -   * Output only. [Output only] Progress information for an operation.
        +   * Output only. Progress information for an operation.
            * 
        * * @@ -381,7 +389,7 @@ public interface OperationOrBuilder * * *
        -   * Output only. [Output only] Progress information for an operation.
        +   * Output only. Progress information for an operation.
            * 
        * * @@ -395,7 +403,7 @@ public interface OperationOrBuilder * * *
        -   * Output only. [Output only] Progress information for an operation.
        +   * Output only. Progress information for an operation.
            * 
        * * diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java index 04a30a12042a..c545d48c5977 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java @@ -174,7 +174,7 @@ public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The privateEndpoint. */ @@ -197,7 +197,7 @@ public java.lang.String getPrivateEndpoint() { * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for privateEndpoint. */ @@ -225,7 +225,7 @@ public com.google.protobuf.ByteString getPrivateEndpointBytes() { * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The publicEndpoint. */ @@ -248,7 +248,7 @@ public java.lang.String getPublicEndpoint() { * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for publicEndpoint. */ @@ -276,7 +276,7 @@ public com.google.protobuf.ByteString getPublicEndpointBytes() { * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peeringName. */ @@ -299,7 +299,7 @@ public java.lang.String getPeeringName() { * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peeringName. */ @@ -1201,7 +1201,7 @@ public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The privateEndpoint. */ @@ -1223,7 +1223,7 @@ public java.lang.String getPrivateEndpoint() { * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for privateEndpoint. */ @@ -1245,7 +1245,7 @@ public com.google.protobuf.ByteString getPrivateEndpointBytes() { * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The privateEndpoint to set. * @return This builder for chaining. @@ -1266,7 +1266,7 @@ public Builder setPrivateEndpoint(java.lang.String value) { * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1283,7 +1283,7 @@ public Builder clearPrivateEndpoint() { * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for privateEndpoint to set. * @return This builder for chaining. @@ -1307,7 +1307,7 @@ public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The publicEndpoint. */ @@ -1329,7 +1329,7 @@ public java.lang.String getPublicEndpoint() { * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for publicEndpoint. */ @@ -1351,7 +1351,7 @@ public com.google.protobuf.ByteString getPublicEndpointBytes() { * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The publicEndpoint to set. * @return This builder for chaining. @@ -1372,7 +1372,7 @@ public Builder setPublicEndpoint(java.lang.String value) { * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1389,7 +1389,7 @@ public Builder clearPublicEndpoint() { * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for publicEndpoint to set. * @return This builder for chaining. @@ -1413,7 +1413,7 @@ public Builder setPublicEndpointBytes(com.google.protobuf.ByteString value) { * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peeringName. */ @@ -1435,7 +1435,7 @@ public java.lang.String getPeeringName() { * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peeringName. */ @@ -1457,7 +1457,7 @@ public com.google.protobuf.ByteString getPeeringNameBytes() { * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The peeringName to set. * @return This builder for chaining. @@ -1478,7 +1478,7 @@ public Builder setPeeringName(java.lang.String value) { * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1495,7 +1495,7 @@ public Builder clearPeeringName() { * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for peeringName to set. * @return This builder for chaining. diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java index a4eb6ff29778..2bca8e47c745 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java @@ -90,7 +90,7 @@ public interface PrivateClusterConfigOrBuilder * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The privateEndpoint. */ @@ -102,7 +102,7 @@ public interface PrivateClusterConfigOrBuilder * Output only. The internal IP address of this cluster's master endpoint. * * - * string private_endpoint = 4; + * string private_endpoint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for privateEndpoint. */ @@ -115,7 +115,7 @@ public interface PrivateClusterConfigOrBuilder * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The publicEndpoint. */ @@ -127,7 +127,7 @@ public interface PrivateClusterConfigOrBuilder * Output only. The external IP address of this cluster's master endpoint. * * - * string public_endpoint = 5; + * string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for publicEndpoint. */ @@ -140,7 +140,7 @@ public interface PrivateClusterConfigOrBuilder * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peeringName. */ @@ -152,7 +152,7 @@ public interface PrivateClusterConfigOrBuilder * Output only. The peering name in the customer VPC used by this cluster. * * - * string peering_name = 7; + * string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peeringName. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfo.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfo.java index 0faa0a60f01f..c833a20049c5 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfo.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfo.java @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Output only. [Output only] Name of a range.
        +   * Output only. Name of a range.
            * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -94,7 +94,7 @@ public java.lang.String getRangeName() { * * *
        -   * Output only. [Output only] Name of a range.
        +   * Output only. Name of a range.
            * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -120,7 +120,7 @@ public com.google.protobuf.ByteString getRangeNameBytes() { * * *
        -   * Output only. [Output only] The utilization of the range.
        +   * Output only. The utilization of the range.
            * 
        * * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -503,7 +503,7 @@ public Builder mergeFrom( * * *
        -     * Output only. [Output only] Name of a range.
        +     * Output only. Name of a range.
              * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -525,7 +525,7 @@ public java.lang.String getRangeName() { * * *
        -     * Output only. [Output only] Name of a range.
        +     * Output only. Name of a range.
              * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -547,7 +547,7 @@ public com.google.protobuf.ByteString getRangeNameBytes() { * * *
        -     * Output only. [Output only] Name of a range.
        +     * Output only. Name of a range.
              * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -568,7 +568,7 @@ public Builder setRangeName(java.lang.String value) { * * *
        -     * Output only. [Output only] Name of a range.
        +     * Output only. Name of a range.
              * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -585,7 +585,7 @@ public Builder clearRangeName() { * * *
        -     * Output only. [Output only] Name of a range.
        +     * Output only. Name of a range.
              * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -609,7 +609,7 @@ public Builder setRangeNameBytes(com.google.protobuf.ByteString value) { * * *
        -     * Output only. [Output only] The utilization of the range.
        +     * Output only. The utilization of the range.
              * 
        * * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -624,7 +624,7 @@ public double getUtilization() { * * *
        -     * Output only. [Output only] The utilization of the range.
        +     * Output only. The utilization of the range.
              * 
        * * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -643,7 +643,7 @@ public Builder setUtilization(double value) { * * *
        -     * Output only. [Output only] The utilization of the range.
        +     * Output only. The utilization of the range.
              * 
        * * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfoOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfoOrBuilder.java index 7d4b8138d5bd..434cf8c6066f 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfoOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfoOrBuilder.java @@ -28,7 +28,7 @@ public interface RangeInfoOrBuilder * * *
        -   * Output only. [Output only] Name of a range.
        +   * Output only. Name of a range.
            * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -40,7 +40,7 @@ public interface RangeInfoOrBuilder * * *
        -   * Output only. [Output only] Name of a range.
        +   * Output only. Name of a range.
            * 
        * * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -53,7 +53,7 @@ public interface RangeInfoOrBuilder * * *
        -   * Output only. [Output only] The utilization of the range.
        +   * Output only. The utilization of the range.
            * 
        * * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayClusterLoggingConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayClusterLoggingConfig.java new file mode 100644 index 000000000000..d0363d8b3b3e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayClusterLoggingConfig.java @@ -0,0 +1,535 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.container.v1beta1; + +/** + * + * + *
        + * RayClusterLoggingConfig specifies logging configuration for Ray clusters.
        + * 
        + * + * Protobuf type {@code google.container.v1beta1.RayClusterLoggingConfig} + */ +public final class RayClusterLoggingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.RayClusterLoggingConfig) + RayClusterLoggingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RayClusterLoggingConfig.newBuilder() to construct. + private RayClusterLoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RayClusterLoggingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RayClusterLoggingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayClusterLoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayClusterLoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RayClusterLoggingConfig.class, + com.google.container.v1beta1.RayClusterLoggingConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * + * + *
        +   * Enable log collection for Ray clusters.
        +   * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.RayClusterLoggingConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.RayClusterLoggingConfig other = + (com.google.container.v1beta1.RayClusterLoggingConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.RayClusterLoggingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RayClusterLoggingConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.RayClusterLoggingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RayClusterLoggingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.RayClusterLoggingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RayClusterLoggingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.RayClusterLoggingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RayClusterLoggingConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.RayClusterLoggingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RayClusterLoggingConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.RayClusterLoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RayClusterLoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.RayClusterLoggingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * RayClusterLoggingConfig specifies logging configuration for Ray clusters.
        +   * 
        + * + * Protobuf type {@code google.container.v1beta1.RayClusterLoggingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.RayClusterLoggingConfig) + com.google.container.v1beta1.RayClusterLoggingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayClusterLoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayClusterLoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RayClusterLoggingConfig.class, + com.google.container.v1beta1.RayClusterLoggingConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.RayClusterLoggingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayClusterLoggingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.RayClusterLoggingConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.RayClusterLoggingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.RayClusterLoggingConfig build() { + com.google.container.v1beta1.RayClusterLoggingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.RayClusterLoggingConfig buildPartial() { + com.google.container.v1beta1.RayClusterLoggingConfig result = + new com.google.container.v1beta1.RayClusterLoggingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.RayClusterLoggingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.RayClusterLoggingConfig) { + return mergeFrom((com.google.container.v1beta1.RayClusterLoggingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.RayClusterLoggingConfig other) { + if (other == com.google.container.v1beta1.RayClusterLoggingConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enabled_; + /** + * + * + *
        +     * Enable log collection for Ray clusters.
        +     * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
        +     * Enable log collection for Ray clusters.
        +     * 
        + * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Enable log collection for Ray clusters.
        +     * 
        + * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.RayClusterLoggingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.RayClusterLoggingConfig) + private static final com.google.container.v1beta1.RayClusterLoggingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.RayClusterLoggingConfig(); + } + + public static com.google.container.v1beta1.RayClusterLoggingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RayClusterLoggingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.RayClusterLoggingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayClusterLoggingConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayClusterLoggingConfigOrBuilder.java new file mode 100644 index 000000000000..cd978e525d0e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayClusterLoggingConfigOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.container.v1beta1; + +public interface RayClusterLoggingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.RayClusterLoggingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Enable log collection for Ray clusters.
        +   * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayClusterMonitoringConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayClusterMonitoringConfig.java new file mode 100644 index 000000000000..4cdb94ea0ae0 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayClusterMonitoringConfig.java @@ -0,0 +1,538 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.container.v1beta1; + +/** + * + * + *
        + * RayClusterMonitoringConfig specifies monitoring configuration for Ray
        + * clusters.
        + * 
        + * + * Protobuf type {@code google.container.v1beta1.RayClusterMonitoringConfig} + */ +public final class RayClusterMonitoringConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.RayClusterMonitoringConfig) + RayClusterMonitoringConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RayClusterMonitoringConfig.newBuilder() to construct. + private RayClusterMonitoringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RayClusterMonitoringConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RayClusterMonitoringConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayClusterMonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayClusterMonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RayClusterMonitoringConfig.class, + com.google.container.v1beta1.RayClusterMonitoringConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * + * + *
        +   * Enable metrics collection for Ray clusters.
        +   * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.RayClusterMonitoringConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.RayClusterMonitoringConfig other = + (com.google.container.v1beta1.RayClusterMonitoringConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.RayClusterMonitoringConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RayClusterMonitoringConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.RayClusterMonitoringConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RayClusterMonitoringConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.RayClusterMonitoringConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RayClusterMonitoringConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.RayClusterMonitoringConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RayClusterMonitoringConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.RayClusterMonitoringConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RayClusterMonitoringConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.RayClusterMonitoringConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RayClusterMonitoringConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.RayClusterMonitoringConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * RayClusterMonitoringConfig specifies monitoring configuration for Ray
        +   * clusters.
        +   * 
        + * + * Protobuf type {@code google.container.v1beta1.RayClusterMonitoringConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.RayClusterMonitoringConfig) + com.google.container.v1beta1.RayClusterMonitoringConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayClusterMonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayClusterMonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RayClusterMonitoringConfig.class, + com.google.container.v1beta1.RayClusterMonitoringConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.RayClusterMonitoringConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayClusterMonitoringConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.RayClusterMonitoringConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.RayClusterMonitoringConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.RayClusterMonitoringConfig build() { + com.google.container.v1beta1.RayClusterMonitoringConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.RayClusterMonitoringConfig buildPartial() { + com.google.container.v1beta1.RayClusterMonitoringConfig result = + new com.google.container.v1beta1.RayClusterMonitoringConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.RayClusterMonitoringConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.RayClusterMonitoringConfig) { + return mergeFrom((com.google.container.v1beta1.RayClusterMonitoringConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.RayClusterMonitoringConfig other) { + if (other == com.google.container.v1beta1.RayClusterMonitoringConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enabled_; + /** + * + * + *
        +     * Enable metrics collection for Ray clusters.
        +     * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
        +     * Enable metrics collection for Ray clusters.
        +     * 
        + * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Enable metrics collection for Ray clusters.
        +     * 
        + * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.RayClusterMonitoringConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.RayClusterMonitoringConfig) + private static final com.google.container.v1beta1.RayClusterMonitoringConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.RayClusterMonitoringConfig(); + } + + public static com.google.container.v1beta1.RayClusterMonitoringConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RayClusterMonitoringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.RayClusterMonitoringConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayClusterMonitoringConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayClusterMonitoringConfigOrBuilder.java new file mode 100644 index 000000000000..942c31a6e07b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayClusterMonitoringConfigOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.container.v1beta1; + +public interface RayClusterMonitoringConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.RayClusterMonitoringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Enable metrics collection for Ray clusters.
        +   * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayOperatorConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayOperatorConfig.java new file mode 100644 index 000000000000..e435317f91be --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayOperatorConfig.java @@ -0,0 +1,1155 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.container.v1beta1; + +/** + * + * + *
        + * Configuration options for the Ray Operator add-on.
        + * 
        + * + * Protobuf type {@code google.container.v1beta1.RayOperatorConfig} + */ +public final class RayOperatorConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.RayOperatorConfig) + RayOperatorConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RayOperatorConfig.newBuilder() to construct. + private RayOperatorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RayOperatorConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RayOperatorConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayOperatorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayOperatorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RayOperatorConfig.class, + com.google.container.v1beta1.RayOperatorConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * + * + *
        +   * Whether the Ray addon is enabled for this cluster.
        +   * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int RAY_CLUSTER_LOGGING_CONFIG_FIELD_NUMBER = 2; + private com.google.container.v1beta1.RayClusterLoggingConfig rayClusterLoggingConfig_; + /** + * + * + *
        +   * Optional. Logging configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayClusterLoggingConfig field is set. + */ + @java.lang.Override + public boolean hasRayClusterLoggingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * Optional. Logging configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayClusterLoggingConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.RayClusterLoggingConfig getRayClusterLoggingConfig() { + return rayClusterLoggingConfig_ == null + ? com.google.container.v1beta1.RayClusterLoggingConfig.getDefaultInstance() + : rayClusterLoggingConfig_; + } + /** + * + * + *
        +   * Optional. Logging configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.RayClusterLoggingConfigOrBuilder + getRayClusterLoggingConfigOrBuilder() { + return rayClusterLoggingConfig_ == null + ? com.google.container.v1beta1.RayClusterLoggingConfig.getDefaultInstance() + : rayClusterLoggingConfig_; + } + + public static final int RAY_CLUSTER_MONITORING_CONFIG_FIELD_NUMBER = 3; + private com.google.container.v1beta1.RayClusterMonitoringConfig rayClusterMonitoringConfig_; + /** + * + * + *
        +   * Optional. Monitoring configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayClusterMonitoringConfig field is set. + */ + @java.lang.Override + public boolean hasRayClusterMonitoringConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +   * Optional. Monitoring configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayClusterMonitoringConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.RayClusterMonitoringConfig getRayClusterMonitoringConfig() { + return rayClusterMonitoringConfig_ == null + ? com.google.container.v1beta1.RayClusterMonitoringConfig.getDefaultInstance() + : rayClusterMonitoringConfig_; + } + /** + * + * + *
        +   * Optional. Monitoring configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.RayClusterMonitoringConfigOrBuilder + getRayClusterMonitoringConfigOrBuilder() { + return rayClusterMonitoringConfig_ == null + ? com.google.container.v1beta1.RayClusterMonitoringConfig.getDefaultInstance() + : rayClusterMonitoringConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRayClusterLoggingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getRayClusterMonitoringConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRayClusterLoggingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getRayClusterMonitoringConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.RayOperatorConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.RayOperatorConfig other = + (com.google.container.v1beta1.RayOperatorConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (hasRayClusterLoggingConfig() != other.hasRayClusterLoggingConfig()) return false; + if (hasRayClusterLoggingConfig()) { + if (!getRayClusterLoggingConfig().equals(other.getRayClusterLoggingConfig())) return false; + } + if (hasRayClusterMonitoringConfig() != other.hasRayClusterMonitoringConfig()) return false; + if (hasRayClusterMonitoringConfig()) { + if (!getRayClusterMonitoringConfig().equals(other.getRayClusterMonitoringConfig())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + if (hasRayClusterLoggingConfig()) { + hash = (37 * hash) + RAY_CLUSTER_LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRayClusterLoggingConfig().hashCode(); + } + if (hasRayClusterMonitoringConfig()) { + hash = (37 * hash) + RAY_CLUSTER_MONITORING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRayClusterMonitoringConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.RayOperatorConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RayOperatorConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.RayOperatorConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RayOperatorConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.RayOperatorConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RayOperatorConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.RayOperatorConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RayOperatorConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.RayOperatorConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RayOperatorConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.RayOperatorConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RayOperatorConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.RayOperatorConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Configuration options for the Ray Operator add-on.
        +   * 
        + * + * Protobuf type {@code google.container.v1beta1.RayOperatorConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.RayOperatorConfig) + com.google.container.v1beta1.RayOperatorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayOperatorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayOperatorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RayOperatorConfig.class, + com.google.container.v1beta1.RayOperatorConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.RayOperatorConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRayClusterLoggingConfigFieldBuilder(); + getRayClusterMonitoringConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + rayClusterLoggingConfig_ = null; + if (rayClusterLoggingConfigBuilder_ != null) { + rayClusterLoggingConfigBuilder_.dispose(); + rayClusterLoggingConfigBuilder_ = null; + } + rayClusterMonitoringConfig_ = null; + if (rayClusterMonitoringConfigBuilder_ != null) { + rayClusterMonitoringConfigBuilder_.dispose(); + rayClusterMonitoringConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RayOperatorConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.RayOperatorConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.RayOperatorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.RayOperatorConfig build() { + com.google.container.v1beta1.RayOperatorConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.RayOperatorConfig buildPartial() { + com.google.container.v1beta1.RayOperatorConfig result = + new com.google.container.v1beta1.RayOperatorConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.RayOperatorConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rayClusterLoggingConfig_ = + rayClusterLoggingConfigBuilder_ == null + ? rayClusterLoggingConfig_ + : rayClusterLoggingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rayClusterMonitoringConfig_ = + rayClusterMonitoringConfigBuilder_ == null + ? rayClusterMonitoringConfig_ + : rayClusterMonitoringConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.RayOperatorConfig) { + return mergeFrom((com.google.container.v1beta1.RayOperatorConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.RayOperatorConfig other) { + if (other == com.google.container.v1beta1.RayOperatorConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.hasRayClusterLoggingConfig()) { + mergeRayClusterLoggingConfig(other.getRayClusterLoggingConfig()); + } + if (other.hasRayClusterMonitoringConfig()) { + mergeRayClusterMonitoringConfig(other.getRayClusterMonitoringConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getRayClusterLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getRayClusterMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enabled_; + /** + * + * + *
        +     * Whether the Ray addon is enabled for this cluster.
        +     * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
        +     * Whether the Ray addon is enabled for this cluster.
        +     * 
        + * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Whether the Ray addon is enabled for this cluster.
        +     * 
        + * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.RayClusterLoggingConfig rayClusterLoggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.RayClusterLoggingConfig, + com.google.container.v1beta1.RayClusterLoggingConfig.Builder, + com.google.container.v1beta1.RayClusterLoggingConfigOrBuilder> + rayClusterLoggingConfigBuilder_; + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayClusterLoggingConfig field is set. + */ + public boolean hasRayClusterLoggingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayClusterLoggingConfig. + */ + public com.google.container.v1beta1.RayClusterLoggingConfig getRayClusterLoggingConfig() { + if (rayClusterLoggingConfigBuilder_ == null) { + return rayClusterLoggingConfig_ == null + ? com.google.container.v1beta1.RayClusterLoggingConfig.getDefaultInstance() + : rayClusterLoggingConfig_; + } else { + return rayClusterLoggingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayClusterLoggingConfig( + com.google.container.v1beta1.RayClusterLoggingConfig value) { + if (rayClusterLoggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rayClusterLoggingConfig_ = value; + } else { + rayClusterLoggingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayClusterLoggingConfig( + com.google.container.v1beta1.RayClusterLoggingConfig.Builder builderForValue) { + if (rayClusterLoggingConfigBuilder_ == null) { + rayClusterLoggingConfig_ = builderForValue.build(); + } else { + rayClusterLoggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRayClusterLoggingConfig( + com.google.container.v1beta1.RayClusterLoggingConfig value) { + if (rayClusterLoggingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rayClusterLoggingConfig_ != null + && rayClusterLoggingConfig_ + != com.google.container.v1beta1.RayClusterLoggingConfig.getDefaultInstance()) { + getRayClusterLoggingConfigBuilder().mergeFrom(value); + } else { + rayClusterLoggingConfig_ = value; + } + } else { + rayClusterLoggingConfigBuilder_.mergeFrom(value); + } + if (rayClusterLoggingConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRayClusterLoggingConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + rayClusterLoggingConfig_ = null; + if (rayClusterLoggingConfigBuilder_ != null) { + rayClusterLoggingConfigBuilder_.dispose(); + rayClusterLoggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1beta1.RayClusterLoggingConfig.Builder + getRayClusterLoggingConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRayClusterLoggingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1beta1.RayClusterLoggingConfigOrBuilder + getRayClusterLoggingConfigOrBuilder() { + if (rayClusterLoggingConfigBuilder_ != null) { + return rayClusterLoggingConfigBuilder_.getMessageOrBuilder(); + } else { + return rayClusterLoggingConfig_ == null + ? com.google.container.v1beta1.RayClusterLoggingConfig.getDefaultInstance() + : rayClusterLoggingConfig_; + } + } + /** + * + * + *
        +     * Optional. Logging configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.RayClusterLoggingConfig, + com.google.container.v1beta1.RayClusterLoggingConfig.Builder, + com.google.container.v1beta1.RayClusterLoggingConfigOrBuilder> + getRayClusterLoggingConfigFieldBuilder() { + if (rayClusterLoggingConfigBuilder_ == null) { + rayClusterLoggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.RayClusterLoggingConfig, + com.google.container.v1beta1.RayClusterLoggingConfig.Builder, + com.google.container.v1beta1.RayClusterLoggingConfigOrBuilder>( + getRayClusterLoggingConfig(), getParentForChildren(), isClean()); + rayClusterLoggingConfig_ = null; + } + return rayClusterLoggingConfigBuilder_; + } + + private com.google.container.v1beta1.RayClusterMonitoringConfig rayClusterMonitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.RayClusterMonitoringConfig, + com.google.container.v1beta1.RayClusterMonitoringConfig.Builder, + com.google.container.v1beta1.RayClusterMonitoringConfigOrBuilder> + rayClusterMonitoringConfigBuilder_; + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayClusterMonitoringConfig field is set. + */ + public boolean hasRayClusterMonitoringConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayClusterMonitoringConfig. + */ + public com.google.container.v1beta1.RayClusterMonitoringConfig getRayClusterMonitoringConfig() { + if (rayClusterMonitoringConfigBuilder_ == null) { + return rayClusterMonitoringConfig_ == null + ? com.google.container.v1beta1.RayClusterMonitoringConfig.getDefaultInstance() + : rayClusterMonitoringConfig_; + } else { + return rayClusterMonitoringConfigBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayClusterMonitoringConfig( + com.google.container.v1beta1.RayClusterMonitoringConfig value) { + if (rayClusterMonitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rayClusterMonitoringConfig_ = value; + } else { + rayClusterMonitoringConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRayClusterMonitoringConfig( + com.google.container.v1beta1.RayClusterMonitoringConfig.Builder builderForValue) { + if (rayClusterMonitoringConfigBuilder_ == null) { + rayClusterMonitoringConfig_ = builderForValue.build(); + } else { + rayClusterMonitoringConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRayClusterMonitoringConfig( + com.google.container.v1beta1.RayClusterMonitoringConfig value) { + if (rayClusterMonitoringConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && rayClusterMonitoringConfig_ != null + && rayClusterMonitoringConfig_ + != com.google.container.v1beta1.RayClusterMonitoringConfig.getDefaultInstance()) { + getRayClusterMonitoringConfigBuilder().mergeFrom(value); + } else { + rayClusterMonitoringConfig_ = value; + } + } else { + rayClusterMonitoringConfigBuilder_.mergeFrom(value); + } + if (rayClusterMonitoringConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRayClusterMonitoringConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + rayClusterMonitoringConfig_ = null; + if (rayClusterMonitoringConfigBuilder_ != null) { + rayClusterMonitoringConfigBuilder_.dispose(); + rayClusterMonitoringConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1beta1.RayClusterMonitoringConfig.Builder + getRayClusterMonitoringConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getRayClusterMonitoringConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1beta1.RayClusterMonitoringConfigOrBuilder + getRayClusterMonitoringConfigOrBuilder() { + if (rayClusterMonitoringConfigBuilder_ != null) { + return rayClusterMonitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return rayClusterMonitoringConfig_ == null + ? com.google.container.v1beta1.RayClusterMonitoringConfig.getDefaultInstance() + : rayClusterMonitoringConfig_; + } + } + /** + * + * + *
        +     * Optional. Monitoring configuration for Ray clusters.
        +     * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.RayClusterMonitoringConfig, + com.google.container.v1beta1.RayClusterMonitoringConfig.Builder, + com.google.container.v1beta1.RayClusterMonitoringConfigOrBuilder> + getRayClusterMonitoringConfigFieldBuilder() { + if (rayClusterMonitoringConfigBuilder_ == null) { + rayClusterMonitoringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.RayClusterMonitoringConfig, + com.google.container.v1beta1.RayClusterMonitoringConfig.Builder, + com.google.container.v1beta1.RayClusterMonitoringConfigOrBuilder>( + getRayClusterMonitoringConfig(), getParentForChildren(), isClean()); + rayClusterMonitoringConfig_ = null; + } + return rayClusterMonitoringConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.RayOperatorConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.RayOperatorConfig) + private static final com.google.container.v1beta1.RayOperatorConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.RayOperatorConfig(); + } + + public static com.google.container.v1beta1.RayOperatorConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RayOperatorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.RayOperatorConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayOperatorConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayOperatorConfigOrBuilder.java new file mode 100644 index 000000000000..d2ebcc0e8346 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RayOperatorConfigOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.container.v1beta1; + +public interface RayOperatorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.RayOperatorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Whether the Ray addon is enabled for this cluster.
        +   * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
        +   * Optional. Logging configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayClusterLoggingConfig field is set. + */ + boolean hasRayClusterLoggingConfig(); + /** + * + * + *
        +   * Optional. Logging configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayClusterLoggingConfig. + */ + com.google.container.v1beta1.RayClusterLoggingConfig getRayClusterLoggingConfig(); + /** + * + * + *
        +   * Optional. Logging configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1beta1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.container.v1beta1.RayClusterLoggingConfigOrBuilder + getRayClusterLoggingConfigOrBuilder(); + + /** + * + * + *
        +   * Optional. Monitoring configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rayClusterMonitoringConfig field is set. + */ + boolean hasRayClusterMonitoringConfig(); + /** + * + * + *
        +   * Optional. Monitoring configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rayClusterMonitoringConfig. + */ + com.google.container.v1beta1.RayClusterMonitoringConfig getRayClusterMonitoringConfig(); + /** + * + * + *
        +   * Optional. Monitoring configuration for Ray clusters.
        +   * 
        + * + * + * .google.container.v1beta1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.container.v1beta1.RayClusterMonitoringConfigOrBuilder + getRayClusterMonitoringConfigOrBuilder(); +} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java index f464f30caf09..3a1e567e71b1 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java @@ -87,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4476 + * See google/container/v1beta1/cluster_service.proto;l=4506 * @return The projectId. */ @java.lang.Override @@ -116,7 +116,7 @@ public java.lang.String getProjectId() { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4476 + * See google/container/v1beta1/cluster_service.proto;l=4506 * @return The bytes for projectId. */ @java.lang.Override @@ -150,7 +150,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4483 + * google/container/v1beta1/cluster_service.proto;l=4513 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4483 + * google/container/v1beta1/cluster_service.proto;l=4513 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4487 + * See google/container/v1beta1/cluster_service.proto;l=4517 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4487 + * See google/container/v1beta1/cluster_service.proto;l=4517 * @return The bytes for clusterId. */ @java.lang.Override @@ -273,7 +273,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4492 + * See google/container/v1beta1/cluster_service.proto;l=4522 * @return The nodePoolId. */ @java.lang.Override @@ -301,7 +301,7 @@ public java.lang.String getNodePoolId() { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4492 + * See google/container/v1beta1/cluster_service.proto;l=4522 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -869,7 +869,7 @@ public Builder mergeFrom( *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4476 + * See google/container/v1beta1/cluster_service.proto;l=4506 * @return The projectId. */ @java.lang.Deprecated @@ -897,7 +897,7 @@ public java.lang.String getProjectId() { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4476 + * See google/container/v1beta1/cluster_service.proto;l=4506 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -925,7 +925,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4476 + * See google/container/v1beta1/cluster_service.proto;l=4506 * @param value The projectId to set. * @return This builder for chaining. */ @@ -952,7 +952,7 @@ public Builder setProjectId(java.lang.String value) { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4476 + * See google/container/v1beta1/cluster_service.proto;l=4506 * @return This builder for chaining. */ @java.lang.Deprecated @@ -975,7 +975,7 @@ public Builder clearProjectId() { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4476 + * See google/container/v1beta1/cluster_service.proto;l=4506 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1005,7 +1005,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4483 + * google/container/v1beta1/cluster_service.proto;l=4513 * @return The zone. */ @java.lang.Deprecated @@ -1033,7 +1033,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4483 + * google/container/v1beta1/cluster_service.proto;l=4513 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1061,7 +1061,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4483 + * google/container/v1beta1/cluster_service.proto;l=4513 * @param value The zone to set. * @return This builder for chaining. */ @@ -1088,7 +1088,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4483 + * google/container/v1beta1/cluster_service.proto;l=4513 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1111,7 +1111,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4483 + * google/container/v1beta1/cluster_service.proto;l=4513 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1140,7 +1140,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4487 + * See google/container/v1beta1/cluster_service.proto;l=4517 * @return The clusterId. */ @java.lang.Deprecated @@ -1167,7 +1167,7 @@ public java.lang.String getClusterId() { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4487 + * See google/container/v1beta1/cluster_service.proto;l=4517 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1194,7 +1194,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4487 + * See google/container/v1beta1/cluster_service.proto;l=4517 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1220,7 +1220,7 @@ public Builder setClusterId(java.lang.String value) { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4487 + * See google/container/v1beta1/cluster_service.proto;l=4517 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1242,7 +1242,7 @@ public Builder clearClusterId() { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4487 + * See google/container/v1beta1/cluster_service.proto;l=4517 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1271,7 +1271,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4492 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4522 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1298,7 +1298,7 @@ public java.lang.String getNodePoolId() { *
        * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4492 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4522 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1325,7 +1325,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4492 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4522 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1351,7 +1351,7 @@ public Builder setNodePoolId(java.lang.String value) { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4492 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4522 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1373,7 +1373,7 @@ public Builder clearNodePoolId() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4492 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4522 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java index f1953eec5ba5..d43f81c0a279 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4476 + * See google/container/v1beta1/cluster_service.proto;l=4506 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4476 + * See google/container/v1beta1/cluster_service.proto;l=4506 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4483 + * google/container/v1beta1/cluster_service.proto;l=4513 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4483 + * google/container/v1beta1/cluster_service.proto;l=4513 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4487 + * See google/container/v1beta1/cluster_service.proto;l=4517 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4487 + * See google/container/v1beta1/cluster_service.proto;l=4517 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -145,7 +145,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4492 + * See google/container/v1beta1/cluster_service.proto;l=4522 * @return The nodePoolId. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4492 + * See google/container/v1beta1/cluster_service.proto;l=4522 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java index b2180e5861ff..c503143e2b98 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3436 + * google/container/v1beta1/cluster_service.proto;l=3463 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3436 + * google/container/v1beta1/cluster_service.proto;l=3463 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3443 + * google/container/v1beta1/cluster_service.proto;l=3470 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3443 + * google/container/v1beta1/cluster_service.proto;l=3470 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3447 + * google/container/v1beta1/cluster_service.proto;l=3474 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3447 + * google/container/v1beta1/cluster_service.proto;l=3474 * @return The bytes for clusterId. */ @java.lang.Override @@ -838,7 +838,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3436 + * google/container/v1beta1/cluster_service.proto;l=3463 * @return The projectId. */ @java.lang.Deprecated @@ -866,7 +866,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3436 + * google/container/v1beta1/cluster_service.proto;l=3463 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -894,7 +894,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3436 + * google/container/v1beta1/cluster_service.proto;l=3463 * @param value The projectId to set. * @return This builder for chaining. */ @@ -921,7 +921,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3436 + * google/container/v1beta1/cluster_service.proto;l=3463 * @return This builder for chaining. */ @java.lang.Deprecated @@ -944,7 +944,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3436 + * google/container/v1beta1/cluster_service.proto;l=3463 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -974,7 +974,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3443 + * google/container/v1beta1/cluster_service.proto;l=3470 * @return The zone. */ @java.lang.Deprecated @@ -1002,7 +1002,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3443 + * google/container/v1beta1/cluster_service.proto;l=3470 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1030,7 +1030,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3443 + * google/container/v1beta1/cluster_service.proto;l=3470 * @param value The zone to set. * @return This builder for chaining. */ @@ -1057,7 +1057,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3443 + * google/container/v1beta1/cluster_service.proto;l=3470 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1080,7 +1080,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3443 + * google/container/v1beta1/cluster_service.proto;l=3470 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1109,7 +1109,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3447 + * google/container/v1beta1/cluster_service.proto;l=3474 * @return The clusterId. */ @java.lang.Deprecated @@ -1136,7 +1136,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3447 + * google/container/v1beta1/cluster_service.proto;l=3474 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1163,7 +1163,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3447 + * google/container/v1beta1/cluster_service.proto;l=3474 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1189,7 +1189,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3447 + * google/container/v1beta1/cluster_service.proto;l=3474 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1211,7 +1211,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3447 + * google/container/v1beta1/cluster_service.proto;l=3474 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java index 3a7da9410d82..3e0cd7485fcd 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetAddonsConfigRequestOrBuilder * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3436 + * google/container/v1beta1/cluster_service.proto;l=3463 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetAddonsConfigRequestOrBuilder * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3436 + * google/container/v1beta1/cluster_service.proto;l=3463 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3443 + * google/container/v1beta1/cluster_service.proto;l=3470 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3443 + * google/container/v1beta1/cluster_service.proto;l=3470 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetAddonsConfigRequestOrBuilder * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3447 + * google/container/v1beta1/cluster_service.proto;l=3474 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetAddonsConfigRequestOrBuilder * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3447 + * google/container/v1beta1/cluster_service.proto;l=3474 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java index e196b638de27..d51c2b41edb4 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java @@ -98,7 +98,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4692 + * google/container/v1beta1/cluster_service.proto;l=4722 * @return The projectId. */ @java.lang.Override @@ -127,7 +127,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4692 + * google/container/v1beta1/cluster_service.proto;l=4722 * @return The bytes for projectId. */ @java.lang.Override @@ -161,7 +161,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4699 + * google/container/v1beta1/cluster_service.proto;l=4729 * @return The zone. */ @java.lang.Override @@ -190,7 +190,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4699 + * google/container/v1beta1/cluster_service.proto;l=4729 * @return The bytes for zone. */ @java.lang.Override @@ -223,7 +223,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4703 + * google/container/v1beta1/cluster_service.proto;l=4733 * @return The clusterId. */ @java.lang.Override @@ -251,7 +251,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4703 + * google/container/v1beta1/cluster_service.proto;l=4733 * @return The bytes for clusterId. */ @java.lang.Override @@ -1001,7 +1001,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4692 + * google/container/v1beta1/cluster_service.proto;l=4722 * @return The projectId. */ @java.lang.Deprecated @@ -1029,7 +1029,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4692 + * google/container/v1beta1/cluster_service.proto;l=4722 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1057,7 +1057,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4692 + * google/container/v1beta1/cluster_service.proto;l=4722 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1084,7 +1084,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4692 + * google/container/v1beta1/cluster_service.proto;l=4722 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1107,7 +1107,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4692 + * google/container/v1beta1/cluster_service.proto;l=4722 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1137,7 +1137,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4699 + * google/container/v1beta1/cluster_service.proto;l=4729 * @return The zone. */ @java.lang.Deprecated @@ -1165,7 +1165,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4699 + * google/container/v1beta1/cluster_service.proto;l=4729 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1193,7 +1193,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4699 + * google/container/v1beta1/cluster_service.proto;l=4729 * @param value The zone to set. * @return This builder for chaining. */ @@ -1220,7 +1220,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4699 + * google/container/v1beta1/cluster_service.proto;l=4729 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1243,7 +1243,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4699 + * google/container/v1beta1/cluster_service.proto;l=4729 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1272,7 +1272,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4703 + * google/container/v1beta1/cluster_service.proto;l=4733 * @return The clusterId. */ @java.lang.Deprecated @@ -1299,7 +1299,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4703 + * google/container/v1beta1/cluster_service.proto;l=4733 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1326,7 +1326,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4703 + * google/container/v1beta1/cluster_service.proto;l=4733 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1352,7 +1352,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4703 + * google/container/v1beta1/cluster_service.proto;l=4733 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1374,7 +1374,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4703 + * google/container/v1beta1/cluster_service.proto;l=4733 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java index 9da623ecffc1..d861ea6a2ac9 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetLabelsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4692 + * google/container/v1beta1/cluster_service.proto;l=4722 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetLabelsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4692 + * google/container/v1beta1/cluster_service.proto;l=4722 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4699 + * google/container/v1beta1/cluster_service.proto;l=4729 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4699 + * google/container/v1beta1/cluster_service.proto;l=4729 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetLabelsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4703 + * google/container/v1beta1/cluster_service.proto;l=4733 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetLabelsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4703 + * google/container/v1beta1/cluster_service.proto;l=4733 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java index 3f3f7d9afba1..6a90b5bbbce6 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4759 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4759 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4736 + * google/container/v1beta1/cluster_service.proto;l=4766 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4736 + * google/container/v1beta1/cluster_service.proto;l=4766 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4740 + * google/container/v1beta1/cluster_service.proto;l=4770 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4740 + * google/container/v1beta1/cluster_service.proto;l=4770 * @return The bytes for clusterId. */ @java.lang.Override @@ -776,7 +776,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4759 * @return The projectId. */ @java.lang.Deprecated @@ -804,7 +804,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4759 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -832,7 +832,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4759 * @param value The projectId to set. * @return This builder for chaining. */ @@ -859,7 +859,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4759 * @return This builder for chaining. */ @java.lang.Deprecated @@ -882,7 +882,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4759 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -912,7 +912,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4736 + * google/container/v1beta1/cluster_service.proto;l=4766 * @return The zone. */ @java.lang.Deprecated @@ -940,7 +940,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4736 + * google/container/v1beta1/cluster_service.proto;l=4766 * @return The bytes for zone. */ @java.lang.Deprecated @@ -968,7 +968,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4736 + * google/container/v1beta1/cluster_service.proto;l=4766 * @param value The zone to set. * @return This builder for chaining. */ @@ -995,7 +995,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4736 + * google/container/v1beta1/cluster_service.proto;l=4766 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1018,7 +1018,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4736 + * google/container/v1beta1/cluster_service.proto;l=4766 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1047,7 +1047,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4740 + * google/container/v1beta1/cluster_service.proto;l=4770 * @return The clusterId. */ @java.lang.Deprecated @@ -1074,7 +1074,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4740 + * google/container/v1beta1/cluster_service.proto;l=4770 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1101,7 +1101,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4740 + * google/container/v1beta1/cluster_service.proto;l=4770 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1127,7 +1127,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4740 + * google/container/v1beta1/cluster_service.proto;l=4770 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1149,7 +1149,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4740 + * google/container/v1beta1/cluster_service.proto;l=4770 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java index a77e4fa10169..347dd8c5bdef 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetLegacyAbacRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4759 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetLegacyAbacRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4759 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4736 + * google/container/v1beta1/cluster_service.proto;l=4766 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4736 + * google/container/v1beta1/cluster_service.proto;l=4766 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetLegacyAbacRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4740 + * google/container/v1beta1/cluster_service.proto;l=4770 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetLegacyAbacRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4740 + * google/container/v1beta1/cluster_service.proto;l=4770 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java index ad812d9911f2..1252d241addf 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3464 + * google/container/v1beta1/cluster_service.proto;l=3491 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3464 + * google/container/v1beta1/cluster_service.proto;l=3491 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3471 + * google/container/v1beta1/cluster_service.proto;l=3498 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3471 + * google/container/v1beta1/cluster_service.proto;l=3498 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3475 + * google/container/v1beta1/cluster_service.proto;l=3502 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3475 + * google/container/v1beta1/cluster_service.proto;l=3502 * @return The bytes for clusterId. */ @java.lang.Override @@ -861,7 +861,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3464 + * google/container/v1beta1/cluster_service.proto;l=3491 * @return The projectId. */ @java.lang.Deprecated @@ -889,7 +889,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3464 + * google/container/v1beta1/cluster_service.proto;l=3491 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -917,7 +917,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3464 + * google/container/v1beta1/cluster_service.proto;l=3491 * @param value The projectId to set. * @return This builder for chaining. */ @@ -944,7 +944,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3464 + * google/container/v1beta1/cluster_service.proto;l=3491 * @return This builder for chaining. */ @java.lang.Deprecated @@ -967,7 +967,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3464 + * google/container/v1beta1/cluster_service.proto;l=3491 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -997,7 +997,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3471 + * google/container/v1beta1/cluster_service.proto;l=3498 * @return The zone. */ @java.lang.Deprecated @@ -1025,7 +1025,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3471 + * google/container/v1beta1/cluster_service.proto;l=3498 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1053,7 +1053,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3471 + * google/container/v1beta1/cluster_service.proto;l=3498 * @param value The zone to set. * @return This builder for chaining. */ @@ -1080,7 +1080,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3471 + * google/container/v1beta1/cluster_service.proto;l=3498 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1103,7 +1103,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3471 + * google/container/v1beta1/cluster_service.proto;l=3498 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1132,7 +1132,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3475 + * google/container/v1beta1/cluster_service.proto;l=3502 * @return The clusterId. */ @java.lang.Deprecated @@ -1159,7 +1159,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3475 + * google/container/v1beta1/cluster_service.proto;l=3502 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1186,7 +1186,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3475 + * google/container/v1beta1/cluster_service.proto;l=3502 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1212,7 +1212,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3475 + * google/container/v1beta1/cluster_service.proto;l=3502 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1234,7 +1234,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3475 + * google/container/v1beta1/cluster_service.proto;l=3502 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java index c375d9be63f5..733313742635 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetLocationsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3464 + * google/container/v1beta1/cluster_service.proto;l=3491 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetLocationsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3464 + * google/container/v1beta1/cluster_service.proto;l=3491 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3471 + * google/container/v1beta1/cluster_service.proto;l=3498 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3471 + * google/container/v1beta1/cluster_service.proto;l=3498 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetLocationsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3475 + * google/container/v1beta1/cluster_service.proto;l=3502 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetLocationsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3475 + * google/container/v1beta1/cluster_service.proto;l=3502 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java index ca203c1773da..626625c72570 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3362 + * google/container/v1beta1/cluster_service.proto;l=3389 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3362 + * google/container/v1beta1/cluster_service.proto;l=3389 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3369 + * google/container/v1beta1/cluster_service.proto;l=3396 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3369 + * google/container/v1beta1/cluster_service.proto;l=3396 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3373 + * google/container/v1beta1/cluster_service.proto;l=3400 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3373 + * google/container/v1beta1/cluster_service.proto;l=3400 * @return The bytes for clusterId. */ @java.lang.Override @@ -831,7 +831,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3362 + * google/container/v1beta1/cluster_service.proto;l=3389 * @return The projectId. */ @java.lang.Deprecated @@ -859,7 +859,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3362 + * google/container/v1beta1/cluster_service.proto;l=3389 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -887,7 +887,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3362 + * google/container/v1beta1/cluster_service.proto;l=3389 * @param value The projectId to set. * @return This builder for chaining. */ @@ -914,7 +914,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3362 + * google/container/v1beta1/cluster_service.proto;l=3389 * @return This builder for chaining. */ @java.lang.Deprecated @@ -937,7 +937,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3362 + * google/container/v1beta1/cluster_service.proto;l=3389 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -967,7 +967,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3369 + * google/container/v1beta1/cluster_service.proto;l=3396 * @return The zone. */ @java.lang.Deprecated @@ -995,7 +995,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3369 + * google/container/v1beta1/cluster_service.proto;l=3396 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1023,7 +1023,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3369 + * google/container/v1beta1/cluster_service.proto;l=3396 * @param value The zone to set. * @return This builder for chaining. */ @@ -1050,7 +1050,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3369 + * google/container/v1beta1/cluster_service.proto;l=3396 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1073,7 +1073,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3369 + * google/container/v1beta1/cluster_service.proto;l=3396 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1102,7 +1102,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3373 + * google/container/v1beta1/cluster_service.proto;l=3400 * @return The clusterId. */ @java.lang.Deprecated @@ -1129,7 +1129,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3373 + * google/container/v1beta1/cluster_service.proto;l=3400 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1156,7 +1156,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3373 + * google/container/v1beta1/cluster_service.proto;l=3400 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1182,7 +1182,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3373 + * google/container/v1beta1/cluster_service.proto;l=3400 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1204,7 +1204,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3373 + * google/container/v1beta1/cluster_service.proto;l=3400 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java index 0f0661ff1090..8ec22331d3aa 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetLoggingServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3362 + * google/container/v1beta1/cluster_service.proto;l=3389 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetLoggingServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3362 + * google/container/v1beta1/cluster_service.proto;l=3389 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3369 + * google/container/v1beta1/cluster_service.proto;l=3396 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3369 + * google/container/v1beta1/cluster_service.proto;l=3396 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetLoggingServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3373 + * google/container/v1beta1/cluster_service.proto;l=3400 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetLoggingServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3373 + * google/container/v1beta1/cluster_service.proto;l=3400 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java index b5d7501c636d..bd561c98f37f 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java @@ -272,7 +272,7 @@ private Action(int value) { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 + * google/container/v1beta1/cluster_service.proto;l=3578 * @return The projectId. */ @java.lang.Override @@ -301,7 +301,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 + * google/container/v1beta1/cluster_service.proto;l=3578 * @return The bytes for projectId. */ @java.lang.Override @@ -335,7 +335,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3558 + * google/container/v1beta1/cluster_service.proto;l=3585 * @return The zone. */ @java.lang.Override @@ -364,7 +364,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3558 + * google/container/v1beta1/cluster_service.proto;l=3585 * @return The bytes for zone. */ @java.lang.Override @@ -397,7 +397,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3562 + * google/container/v1beta1/cluster_service.proto;l=3589 * @return The clusterId. */ @java.lang.Override @@ -425,7 +425,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3562 + * google/container/v1beta1/cluster_service.proto;l=3589 * @return The bytes for clusterId. */ @java.lang.Override @@ -1081,7 +1081,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 + * google/container/v1beta1/cluster_service.proto;l=3578 * @return The projectId. */ @java.lang.Deprecated @@ -1109,7 +1109,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 + * google/container/v1beta1/cluster_service.proto;l=3578 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1137,7 +1137,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 + * google/container/v1beta1/cluster_service.proto;l=3578 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1164,7 +1164,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 + * google/container/v1beta1/cluster_service.proto;l=3578 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1187,7 +1187,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 + * google/container/v1beta1/cluster_service.proto;l=3578 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1217,7 +1217,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3558 + * google/container/v1beta1/cluster_service.proto;l=3585 * @return The zone. */ @java.lang.Deprecated @@ -1245,7 +1245,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3558 + * google/container/v1beta1/cluster_service.proto;l=3585 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1273,7 +1273,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3558 + * google/container/v1beta1/cluster_service.proto;l=3585 * @param value The zone to set. * @return This builder for chaining. */ @@ -1300,7 +1300,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3558 + * google/container/v1beta1/cluster_service.proto;l=3585 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1323,7 +1323,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3558 + * google/container/v1beta1/cluster_service.proto;l=3585 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1352,7 +1352,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3562 + * google/container/v1beta1/cluster_service.proto;l=3589 * @return The clusterId. */ @java.lang.Deprecated @@ -1379,7 +1379,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3562 + * google/container/v1beta1/cluster_service.proto;l=3589 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1406,7 +1406,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3562 + * google/container/v1beta1/cluster_service.proto;l=3589 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1432,7 +1432,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3562 + * google/container/v1beta1/cluster_service.proto;l=3589 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1454,7 +1454,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3562 + * google/container/v1beta1/cluster_service.proto;l=3589 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java index aee1dd4ea1db..5508d9820faa 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetMasterAuthRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 + * google/container/v1beta1/cluster_service.proto;l=3578 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetMasterAuthRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 + * google/container/v1beta1/cluster_service.proto;l=3578 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3558 + * google/container/v1beta1/cluster_service.proto;l=3585 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3558 + * google/container/v1beta1/cluster_service.proto;l=3585 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetMasterAuthRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3562 + * google/container/v1beta1/cluster_service.proto;l=3589 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetMasterAuthRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3562 + * google/container/v1beta1/cluster_service.proto;l=3589 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java index b76eb6da7c26..90f95f730f51 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3399 + * google/container/v1beta1/cluster_service.proto;l=3426 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3399 + * google/container/v1beta1/cluster_service.proto;l=3426 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3406 + * google/container/v1beta1/cluster_service.proto;l=3433 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3406 + * google/container/v1beta1/cluster_service.proto;l=3433 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3410 + * google/container/v1beta1/cluster_service.proto;l=3437 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3410 + * google/container/v1beta1/cluster_service.proto;l=3437 * @return The bytes for clusterId. */ @java.lang.Override @@ -831,7 +831,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3399 + * See google/container/v1beta1/cluster_service.proto;l=3426 * @return The projectId. */ @java.lang.Deprecated @@ -859,7 +859,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3399 + * See google/container/v1beta1/cluster_service.proto;l=3426 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -887,7 +887,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3399 + * See google/container/v1beta1/cluster_service.proto;l=3426 * @param value The projectId to set. * @return This builder for chaining. */ @@ -914,7 +914,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3399 + * See google/container/v1beta1/cluster_service.proto;l=3426 * @return This builder for chaining. */ @java.lang.Deprecated @@ -937,7 +937,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3399 + * See google/container/v1beta1/cluster_service.proto;l=3426 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -967,7 +967,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3406 + * google/container/v1beta1/cluster_service.proto;l=3433 * @return The zone. */ @java.lang.Deprecated @@ -995,7 +995,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3406 + * google/container/v1beta1/cluster_service.proto;l=3433 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1023,7 +1023,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3406 + * google/container/v1beta1/cluster_service.proto;l=3433 * @param value The zone to set. * @return This builder for chaining. */ @@ -1050,7 +1050,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3406 + * google/container/v1beta1/cluster_service.proto;l=3433 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1073,7 +1073,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3406 + * google/container/v1beta1/cluster_service.proto;l=3433 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1102,7 +1102,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3410 + * See google/container/v1beta1/cluster_service.proto;l=3437 * @return The clusterId. */ @java.lang.Deprecated @@ -1129,7 +1129,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3410 + * See google/container/v1beta1/cluster_service.proto;l=3437 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1156,7 +1156,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3410 + * See google/container/v1beta1/cluster_service.proto;l=3437 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1182,7 +1182,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3410 + * See google/container/v1beta1/cluster_service.proto;l=3437 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1204,7 +1204,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3410 + * See google/container/v1beta1/cluster_service.proto;l=3437 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java index 56117285c64c..4512b410616d 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetMonitoringServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3399 + * google/container/v1beta1/cluster_service.proto;l=3426 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetMonitoringServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3399 + * google/container/v1beta1/cluster_service.proto;l=3426 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3406 + * google/container/v1beta1/cluster_service.proto;l=3433 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3406 + * google/container/v1beta1/cluster_service.proto;l=3433 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetMonitoringServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3410 + * google/container/v1beta1/cluster_service.proto;l=3437 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetMonitoringServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3410 + * google/container/v1beta1/cluster_service.proto;l=3437 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java index 73f73ff21baf..976cf9e49404 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4939 + * google/container/v1beta1/cluster_service.proto;l=4969 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4939 + * google/container/v1beta1/cluster_service.proto;l=4969 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4946 + * google/container/v1beta1/cluster_service.proto;l=4976 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4946 + * google/container/v1beta1/cluster_service.proto;l=4976 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4950 + * google/container/v1beta1/cluster_service.proto;l=4980 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4950 + * google/container/v1beta1/cluster_service.proto;l=4980 * @return The bytes for clusterId. */ @java.lang.Override @@ -835,7 +835,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4939 + * google/container/v1beta1/cluster_service.proto;l=4969 * @return The projectId. */ @java.lang.Deprecated @@ -863,7 +863,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4939 + * google/container/v1beta1/cluster_service.proto;l=4969 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -891,7 +891,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4939 + * google/container/v1beta1/cluster_service.proto;l=4969 * @param value The projectId to set. * @return This builder for chaining. */ @@ -918,7 +918,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4939 + * google/container/v1beta1/cluster_service.proto;l=4969 * @return This builder for chaining. */ @java.lang.Deprecated @@ -941,7 +941,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4939 + * google/container/v1beta1/cluster_service.proto;l=4969 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -971,7 +971,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4946 + * google/container/v1beta1/cluster_service.proto;l=4976 * @return The zone. */ @java.lang.Deprecated @@ -999,7 +999,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4946 + * google/container/v1beta1/cluster_service.proto;l=4976 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1027,7 +1027,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4946 + * google/container/v1beta1/cluster_service.proto;l=4976 * @param value The zone to set. * @return This builder for chaining. */ @@ -1054,7 +1054,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4946 + * google/container/v1beta1/cluster_service.proto;l=4976 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1077,7 +1077,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4946 + * google/container/v1beta1/cluster_service.proto;l=4976 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1106,7 +1106,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4950 + * google/container/v1beta1/cluster_service.proto;l=4980 * @return The clusterId. */ @java.lang.Deprecated @@ -1133,7 +1133,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4950 + * google/container/v1beta1/cluster_service.proto;l=4980 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1160,7 +1160,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4950 + * google/container/v1beta1/cluster_service.proto;l=4980 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1186,7 +1186,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4950 + * google/container/v1beta1/cluster_service.proto;l=4980 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1208,7 +1208,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4950 + * google/container/v1beta1/cluster_service.proto;l=4980 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java index 21e991957d2a..c535dcdd6a44 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetNetworkPolicyRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4939 + * google/container/v1beta1/cluster_service.proto;l=4969 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetNetworkPolicyRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4939 + * google/container/v1beta1/cluster_service.proto;l=4969 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4946 + * google/container/v1beta1/cluster_service.proto;l=4976 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4946 + * google/container/v1beta1/cluster_service.proto;l=4976 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetNetworkPolicyRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4950 + * google/container/v1beta1/cluster_service.proto;l=4980 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetNetworkPolicyRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4950 + * google/container/v1beta1/cluster_service.proto;l=4980 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java index ae15f5e7cf67..31337eabdb89 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3329 + * See google/container/v1beta1/cluster_service.proto;l=3356 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3329 + * See google/container/v1beta1/cluster_service.proto;l=3356 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3336 + * google/container/v1beta1/cluster_service.proto;l=3363 * @return The zone. */ @java.lang.Override @@ -177,7 +177,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3336 + * google/container/v1beta1/cluster_service.proto;l=3363 * @return The bytes for zone. */ @java.lang.Override @@ -210,7 +210,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3340 + * See google/container/v1beta1/cluster_service.proto;l=3367 * @return The clusterId. */ @java.lang.Override @@ -238,7 +238,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3340 + * See google/container/v1beta1/cluster_service.proto;l=3367 * @return The bytes for clusterId. */ @java.lang.Override @@ -271,7 +271,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3345 + * See google/container/v1beta1/cluster_service.proto;l=3372 * @return The nodePoolId. */ @java.lang.Override @@ -299,7 +299,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3345 + * See google/container/v1beta1/cluster_service.proto;l=3372 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -924,7 +924,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3329 + * See google/container/v1beta1/cluster_service.proto;l=3356 * @return The projectId. */ @java.lang.Deprecated @@ -952,7 +952,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3329 + * See google/container/v1beta1/cluster_service.proto;l=3356 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -980,7 +980,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3329 + * See google/container/v1beta1/cluster_service.proto;l=3356 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1007,7 +1007,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3329 + * See google/container/v1beta1/cluster_service.proto;l=3356 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1030,7 +1030,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3329 + * See google/container/v1beta1/cluster_service.proto;l=3356 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1060,7 +1060,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3336 + * google/container/v1beta1/cluster_service.proto;l=3363 * @return The zone. */ @java.lang.Deprecated @@ -1088,7 +1088,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3336 + * google/container/v1beta1/cluster_service.proto;l=3363 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1116,7 +1116,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3336 + * google/container/v1beta1/cluster_service.proto;l=3363 * @param value The zone to set. * @return This builder for chaining. */ @@ -1143,7 +1143,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3336 + * google/container/v1beta1/cluster_service.proto;l=3363 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1166,7 +1166,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3336 + * google/container/v1beta1/cluster_service.proto;l=3363 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1195,7 +1195,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3340 + * See google/container/v1beta1/cluster_service.proto;l=3367 * @return The clusterId. */ @java.lang.Deprecated @@ -1222,7 +1222,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3340 + * See google/container/v1beta1/cluster_service.proto;l=3367 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1249,7 +1249,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3340 + * See google/container/v1beta1/cluster_service.proto;l=3367 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1275,7 +1275,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3340 + * See google/container/v1beta1/cluster_service.proto;l=3367 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1297,7 +1297,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3340 + * See google/container/v1beta1/cluster_service.proto;l=3367 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1326,7 +1326,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3345 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3372 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1353,7 +1353,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3345 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3372 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1380,7 +1380,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3345 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3372 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1406,7 +1406,7 @@ public Builder setNodePoolId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3345 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3372 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1428,7 +1428,7 @@ public Builder clearNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3345 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3372 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java index d84efe57d8a1..ccb17b8f5b9c 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3329 + * See google/container/v1beta1/cluster_service.proto;l=3356 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3329 + * See google/container/v1beta1/cluster_service.proto;l=3356 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3336 + * google/container/v1beta1/cluster_service.proto;l=3363 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3336 + * google/container/v1beta1/cluster_service.proto;l=3363 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3340 + * See google/container/v1beta1/cluster_service.proto;l=3367 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3340 + * See google/container/v1beta1/cluster_service.proto;l=3367 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -145,7 +145,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3345 + * See google/container/v1beta1/cluster_service.proto;l=3372 * @return The nodePoolId. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3345 + * See google/container/v1beta1/cluster_service.proto;l=3372 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java index 705fc22437da..ef141291e83d 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java @@ -86,7 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4399 + * google/container/v1beta1/cluster_service.proto;l=4429 * @return The projectId. */ @java.lang.Override @@ -115,7 +115,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4399 + * google/container/v1beta1/cluster_service.proto;l=4429 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4406 + * google/container/v1beta1/cluster_service.proto;l=4436 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4406 + * google/container/v1beta1/cluster_service.proto;l=4436 * @return The bytes for zone. */ @java.lang.Override @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4410 + * google/container/v1beta1/cluster_service.proto;l=4440 * @return The clusterId. */ @java.lang.Override @@ -239,7 +239,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4410 + * google/container/v1beta1/cluster_service.proto;l=4440 * @return The bytes for clusterId. */ @java.lang.Override @@ -272,7 +272,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4415 + * See google/container/v1beta1/cluster_service.proto;l=4445 * @return The nodePoolId. */ @java.lang.Override @@ -300,7 +300,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4415 + * See google/container/v1beta1/cluster_service.proto;l=4445 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -925,7 +925,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4399 + * See google/container/v1beta1/cluster_service.proto;l=4429 * @return The projectId. */ @java.lang.Deprecated @@ -953,7 +953,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4399 + * See google/container/v1beta1/cluster_service.proto;l=4429 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -981,7 +981,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4399 + * See google/container/v1beta1/cluster_service.proto;l=4429 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1008,7 +1008,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4399 + * See google/container/v1beta1/cluster_service.proto;l=4429 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1031,7 +1031,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4399 + * See google/container/v1beta1/cluster_service.proto;l=4429 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1061,7 +1061,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4406 + * google/container/v1beta1/cluster_service.proto;l=4436 * @return The zone. */ @java.lang.Deprecated @@ -1089,7 +1089,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4406 + * google/container/v1beta1/cluster_service.proto;l=4436 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4406 + * google/container/v1beta1/cluster_service.proto;l=4436 * @param value The zone to set. * @return This builder for chaining. */ @@ -1144,7 +1144,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4406 + * google/container/v1beta1/cluster_service.proto;l=4436 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1167,7 +1167,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4406 + * google/container/v1beta1/cluster_service.proto;l=4436 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1196,7 +1196,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4410 + * See google/container/v1beta1/cluster_service.proto;l=4440 * @return The clusterId. */ @java.lang.Deprecated @@ -1223,7 +1223,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4410 + * See google/container/v1beta1/cluster_service.proto;l=4440 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1250,7 +1250,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4410 + * See google/container/v1beta1/cluster_service.proto;l=4440 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1276,7 +1276,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4410 + * See google/container/v1beta1/cluster_service.proto;l=4440 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1298,7 +1298,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4410 + * See google/container/v1beta1/cluster_service.proto;l=4440 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1327,7 +1327,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4415 + * See google/container/v1beta1/cluster_service.proto;l=4445 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1354,7 +1354,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4415 + * See google/container/v1beta1/cluster_service.proto;l=4445 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1381,7 +1381,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4415 + * See google/container/v1beta1/cluster_service.proto;l=4445 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1407,7 +1407,7 @@ public Builder setNodePoolId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4415 + * See google/container/v1beta1/cluster_service.proto;l=4445 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1429,7 +1429,7 @@ public Builder clearNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4415 + * See google/container/v1beta1/cluster_service.proto;l=4445 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java index 9c585ec271ea..3c186eb6b14b 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetNodePoolManagementRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4399 + * google/container/v1beta1/cluster_service.proto;l=4429 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetNodePoolManagementRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4399 + * google/container/v1beta1/cluster_service.proto;l=4429 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4406 + * google/container/v1beta1/cluster_service.proto;l=4436 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4406 + * google/container/v1beta1/cluster_service.proto;l=4436 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetNodePoolManagementRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4410 + * google/container/v1beta1/cluster_service.proto;l=4440 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetNodePoolManagementRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4410 + * google/container/v1beta1/cluster_service.proto;l=4440 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -145,7 +145,7 @@ public interface SetNodePoolManagementRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4415 + * See google/container/v1beta1/cluster_service.proto;l=4445 * @return The nodePoolId. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface SetNodePoolManagementRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4415 + * See google/container/v1beta1/cluster_service.proto;l=4445 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java index d333804f912e..59415eda625b 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4432 + * google/container/v1beta1/cluster_service.proto;l=4462 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4432 + * google/container/v1beta1/cluster_service.proto;l=4462 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4439 + * google/container/v1beta1/cluster_service.proto;l=4469 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4439 + * google/container/v1beta1/cluster_service.proto;l=4469 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4443 + * google/container/v1beta1/cluster_service.proto;l=4473 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4443 + * google/container/v1beta1/cluster_service.proto;l=4473 * @return The bytes for clusterId. */ @java.lang.Override @@ -270,7 +270,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4448 + * google/container/v1beta1/cluster_service.proto;l=4478 * @return The nodePoolId. */ @java.lang.Override @@ -298,7 +298,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4448 + * google/container/v1beta1/cluster_service.proto;l=4478 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -862,7 +862,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4432 + * google/container/v1beta1/cluster_service.proto;l=4462 * @return The projectId. */ @java.lang.Deprecated @@ -890,7 +890,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4432 + * google/container/v1beta1/cluster_service.proto;l=4462 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -918,7 +918,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4432 + * google/container/v1beta1/cluster_service.proto;l=4462 * @param value The projectId to set. * @return This builder for chaining. */ @@ -945,7 +945,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4432 + * google/container/v1beta1/cluster_service.proto;l=4462 * @return This builder for chaining. */ @java.lang.Deprecated @@ -968,7 +968,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4432 + * google/container/v1beta1/cluster_service.proto;l=4462 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -998,7 +998,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4439 + * google/container/v1beta1/cluster_service.proto;l=4469 * @return The zone. */ @java.lang.Deprecated @@ -1026,7 +1026,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4439 + * google/container/v1beta1/cluster_service.proto;l=4469 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1054,7 +1054,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4439 + * google/container/v1beta1/cluster_service.proto;l=4469 * @param value The zone to set. * @return This builder for chaining. */ @@ -1081,7 +1081,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4439 + * google/container/v1beta1/cluster_service.proto;l=4469 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1104,7 +1104,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4439 + * google/container/v1beta1/cluster_service.proto;l=4469 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1133,7 +1133,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4443 + * google/container/v1beta1/cluster_service.proto;l=4473 * @return The clusterId. */ @java.lang.Deprecated @@ -1160,7 +1160,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4443 + * google/container/v1beta1/cluster_service.proto;l=4473 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1187,7 +1187,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4443 + * google/container/v1beta1/cluster_service.proto;l=4473 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1213,7 +1213,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4443 + * google/container/v1beta1/cluster_service.proto;l=4473 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1235,7 +1235,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4443 + * google/container/v1beta1/cluster_service.proto;l=4473 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1264,7 +1264,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4448 + * google/container/v1beta1/cluster_service.proto;l=4478 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1291,7 +1291,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4448 + * google/container/v1beta1/cluster_service.proto;l=4478 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1318,7 +1318,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4448 + * google/container/v1beta1/cluster_service.proto;l=4478 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1344,7 +1344,7 @@ public Builder setNodePoolId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4448 + * google/container/v1beta1/cluster_service.proto;l=4478 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1366,7 +1366,7 @@ public Builder clearNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4448 + * google/container/v1beta1/cluster_service.proto;l=4478 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java index 2877ee3c68ea..4185166fb71a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetNodePoolSizeRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4432 + * google/container/v1beta1/cluster_service.proto;l=4462 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetNodePoolSizeRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4432 + * google/container/v1beta1/cluster_service.proto;l=4462 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4439 + * google/container/v1beta1/cluster_service.proto;l=4469 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4439 + * google/container/v1beta1/cluster_service.proto;l=4469 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetNodePoolSizeRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4443 + * google/container/v1beta1/cluster_service.proto;l=4473 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetNodePoolSizeRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4443 + * google/container/v1beta1/cluster_service.proto;l=4473 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -145,7 +145,7 @@ public interface SetNodePoolSizeRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4448 + * google/container/v1beta1/cluster_service.proto;l=4478 * @return The nodePoolId. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface SetNodePoolSizeRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4448 + * google/container/v1beta1/cluster_service.proto;l=4478 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java index 25b796291eb3..4c0bb0d5e658 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4787 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4787 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4764 + * google/container/v1beta1/cluster_service.proto;l=4794 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4764 + * google/container/v1beta1/cluster_service.proto;l=4794 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4768 + * google/container/v1beta1/cluster_service.proto;l=4798 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4768 + * google/container/v1beta1/cluster_service.proto;l=4798 * @return The bytes for clusterId. */ @java.lang.Override @@ -776,7 +776,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4787 * @return The projectId. */ @java.lang.Deprecated @@ -804,7 +804,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4787 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -832,7 +832,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4787 * @param value The projectId to set. * @return This builder for chaining. */ @@ -859,7 +859,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4787 * @return This builder for chaining. */ @java.lang.Deprecated @@ -882,7 +882,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4787 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -912,7 +912,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4764 + * google/container/v1beta1/cluster_service.proto;l=4794 * @return The zone. */ @java.lang.Deprecated @@ -940,7 +940,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4764 + * google/container/v1beta1/cluster_service.proto;l=4794 * @return The bytes for zone. */ @java.lang.Deprecated @@ -968,7 +968,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4764 + * google/container/v1beta1/cluster_service.proto;l=4794 * @param value The zone to set. * @return This builder for chaining. */ @@ -995,7 +995,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4764 + * google/container/v1beta1/cluster_service.proto;l=4794 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1018,7 +1018,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4764 + * google/container/v1beta1/cluster_service.proto;l=4794 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1047,7 +1047,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4768 + * google/container/v1beta1/cluster_service.proto;l=4798 * @return The clusterId. */ @java.lang.Deprecated @@ -1074,7 +1074,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4768 + * google/container/v1beta1/cluster_service.proto;l=4798 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1101,7 +1101,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4768 + * google/container/v1beta1/cluster_service.proto;l=4798 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1127,7 +1127,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4768 + * google/container/v1beta1/cluster_service.proto;l=4798 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1149,7 +1149,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4768 + * google/container/v1beta1/cluster_service.proto;l=4798 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java index 21803d0ffe4d..0b7e0c33bf79 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface StartIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4787 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface StartIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4787 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4764 + * google/container/v1beta1/cluster_service.proto;l=4794 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4764 + * google/container/v1beta1/cluster_service.proto;l=4794 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface StartIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4768 + * google/container/v1beta1/cluster_service.proto;l=4798 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface StartIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4768 + * google/container/v1beta1/cluster_service.proto;l=4798 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java index 5a8f8af8680d..16eef27f4bd8 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java @@ -333,7 +333,7 @@ private Code(int value) { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5068 + * google/container/v1beta1/cluster_service.proto;l=5098 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -352,7 +352,7 @@ public int getCodeValue() { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5068 + * google/container/v1beta1/cluster_service.proto;l=5098 * @return The code. */ @java.lang.Override @@ -846,7 +846,7 @@ public Builder mergeFrom( * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5068 + * google/container/v1beta1/cluster_service.proto;l=5098 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -865,7 +865,7 @@ public int getCodeValue() { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5068 + * google/container/v1beta1/cluster_service.proto;l=5098 * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -887,7 +887,7 @@ public Builder setCodeValue(int value) { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5068 + * google/container/v1beta1/cluster_service.proto;l=5098 * @return The code. */ @java.lang.Override @@ -910,7 +910,7 @@ public com.google.container.v1beta1.StatusCondition.Code getCode() { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5068 + * google/container/v1beta1/cluster_service.proto;l=5098 * @param value The code to set. * @return This builder for chaining. */ @@ -935,7 +935,7 @@ public Builder setCode(com.google.container.v1beta1.StatusCondition.Code value) * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5068 + * google/container/v1beta1/cluster_service.proto;l=5098 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java index c149250d7267..6a58484881e3 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java @@ -35,7 +35,7 @@ public interface StatusConditionOrBuilder * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5068 + * google/container/v1beta1/cluster_service.proto;l=5098 * @return The enum numeric value on the wire for code. */ @java.lang.Deprecated @@ -51,7 +51,7 @@ public interface StatusConditionOrBuilder * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5068 + * google/container/v1beta1/cluster_service.proto;l=5098 * @return The code. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java index f614b162893b..ef9615f1a777 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3156 + * google/container/v1beta1/cluster_service.proto;l=3183 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3156 + * google/container/v1beta1/cluster_service.proto;l=3183 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3163 + * google/container/v1beta1/cluster_service.proto;l=3190 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3163 + * google/container/v1beta1/cluster_service.proto;l=3190 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3167 + * google/container/v1beta1/cluster_service.proto;l=3194 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3167 + * google/container/v1beta1/cluster_service.proto;l=3194 * @return The bytes for clusterId. */ @java.lang.Override @@ -834,7 +834,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3156 + * google/container/v1beta1/cluster_service.proto;l=3183 * @return The projectId. */ @java.lang.Deprecated @@ -862,7 +862,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3156 + * google/container/v1beta1/cluster_service.proto;l=3183 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -890,7 +890,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3156 + * google/container/v1beta1/cluster_service.proto;l=3183 * @param value The projectId to set. * @return This builder for chaining. */ @@ -917,7 +917,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3156 + * google/container/v1beta1/cluster_service.proto;l=3183 * @return This builder for chaining. */ @java.lang.Deprecated @@ -940,7 +940,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3156 + * google/container/v1beta1/cluster_service.proto;l=3183 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -970,7 +970,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3163 + * google/container/v1beta1/cluster_service.proto;l=3190 * @return The zone. */ @java.lang.Deprecated @@ -998,7 +998,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3163 + * google/container/v1beta1/cluster_service.proto;l=3190 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1026,7 +1026,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3163 + * google/container/v1beta1/cluster_service.proto;l=3190 * @param value The zone to set. * @return This builder for chaining. */ @@ -1053,7 +1053,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3163 + * google/container/v1beta1/cluster_service.proto;l=3190 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1076,7 +1076,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3163 + * google/container/v1beta1/cluster_service.proto;l=3190 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1105,7 +1105,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3167 + * google/container/v1beta1/cluster_service.proto;l=3194 * @return The clusterId. */ @java.lang.Deprecated @@ -1132,7 +1132,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3167 + * google/container/v1beta1/cluster_service.proto;l=3194 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1159,7 +1159,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3167 + * google/container/v1beta1/cluster_service.proto;l=3194 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1185,7 +1185,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3167 + * google/container/v1beta1/cluster_service.proto;l=3194 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1207,7 +1207,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3167 + * google/container/v1beta1/cluster_service.proto;l=3194 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java index d48fa8aa04f7..106335b5fb85 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface UpdateClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3156 + * google/container/v1beta1/cluster_service.proto;l=3183 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface UpdateClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3156 + * google/container/v1beta1/cluster_service.proto;l=3183 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3163 + * google/container/v1beta1/cluster_service.proto;l=3190 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3163 + * google/container/v1beta1/cluster_service.proto;l=3190 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface UpdateClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3167 + * google/container/v1beta1/cluster_service.proto;l=3194 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface UpdateClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3167 + * google/container/v1beta1/cluster_service.proto;l=3194 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java index c8bbda6e7b10..0549297460fe 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 + * google/container/v1beta1/cluster_service.proto;l=3524 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 + * google/container/v1beta1/cluster_service.proto;l=3524 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3504 + * google/container/v1beta1/cluster_service.proto;l=3531 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3504 + * google/container/v1beta1/cluster_service.proto;l=3531 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3508 + * google/container/v1beta1/cluster_service.proto;l=3535 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3508 + * google/container/v1beta1/cluster_service.proto;l=3535 * @return The bytes for clusterId. */ @java.lang.Override @@ -828,7 +828,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 + * google/container/v1beta1/cluster_service.proto;l=3524 * @return The projectId. */ @java.lang.Deprecated @@ -856,7 +856,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 + * google/container/v1beta1/cluster_service.proto;l=3524 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 + * google/container/v1beta1/cluster_service.proto;l=3524 * @param value The projectId to set. * @return This builder for chaining. */ @@ -911,7 +911,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 + * google/container/v1beta1/cluster_service.proto;l=3524 * @return This builder for chaining. */ @java.lang.Deprecated @@ -934,7 +934,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 + * google/container/v1beta1/cluster_service.proto;l=3524 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -964,7 +964,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3504 + * google/container/v1beta1/cluster_service.proto;l=3531 * @return The zone. */ @java.lang.Deprecated @@ -992,7 +992,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3504 + * google/container/v1beta1/cluster_service.proto;l=3531 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3504 + * google/container/v1beta1/cluster_service.proto;l=3531 * @param value The zone to set. * @return This builder for chaining. */ @@ -1047,7 +1047,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3504 + * google/container/v1beta1/cluster_service.proto;l=3531 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1070,7 +1070,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3504 + * google/container/v1beta1/cluster_service.proto;l=3531 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1099,7 +1099,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3508 + * google/container/v1beta1/cluster_service.proto;l=3535 * @return The clusterId. */ @java.lang.Deprecated @@ -1126,7 +1126,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3508 + * google/container/v1beta1/cluster_service.proto;l=3535 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1153,7 +1153,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3508 + * google/container/v1beta1/cluster_service.proto;l=3535 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1179,7 +1179,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3508 + * google/container/v1beta1/cluster_service.proto;l=3535 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1201,7 +1201,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3508 + * google/container/v1beta1/cluster_service.proto;l=3535 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java index b85cd72afc0d..b287f43dc7df 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface UpdateMasterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 + * google/container/v1beta1/cluster_service.proto;l=3524 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface UpdateMasterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 + * google/container/v1beta1/cluster_service.proto;l=3524 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3504 + * google/container/v1beta1/cluster_service.proto;l=3531 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3504 + * google/container/v1beta1/cluster_service.proto;l=3531 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface UpdateMasterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3508 + * google/container/v1beta1/cluster_service.proto;l=3535 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface UpdateMasterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3508 + * google/container/v1beta1/cluster_service.proto;l=3535 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java index 7f47b5086c35..73e64947942f 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java @@ -92,7 +92,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3183 + * google/container/v1beta1/cluster_service.proto;l=3210 * @return The projectId. */ @java.lang.Override @@ -121,7 +121,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3183 + * google/container/v1beta1/cluster_service.proto;l=3210 * @return The bytes for projectId. */ @java.lang.Override @@ -155,7 +155,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3190 + * google/container/v1beta1/cluster_service.proto;l=3217 * @return The zone. */ @java.lang.Override @@ -184,7 +184,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3190 + * google/container/v1beta1/cluster_service.proto;l=3217 * @return The bytes for zone. */ @java.lang.Override @@ -217,7 +217,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3194 + * google/container/v1beta1/cluster_service.proto;l=3221 * @return The clusterId. */ @java.lang.Override @@ -245,7 +245,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3194 + * google/container/v1beta1/cluster_service.proto;l=3221 * @return The bytes for clusterId. */ @java.lang.Override @@ -278,7 +278,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 + * google/container/v1beta1/cluster_service.proto;l=3226 * @return The nodePoolId. */ @java.lang.Override @@ -306,7 +306,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 + * google/container/v1beta1/cluster_service.proto;l=3226 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -3117,7 +3117,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3183 + * google/container/v1beta1/cluster_service.proto;l=3210 * @return The projectId. */ @java.lang.Deprecated @@ -3145,7 +3145,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3183 + * google/container/v1beta1/cluster_service.proto;l=3210 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -3173,7 +3173,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3183 + * google/container/v1beta1/cluster_service.proto;l=3210 * @param value The projectId to set. * @return This builder for chaining. */ @@ -3200,7 +3200,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3183 + * google/container/v1beta1/cluster_service.proto;l=3210 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3223,7 +3223,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3183 + * google/container/v1beta1/cluster_service.proto;l=3210 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -3253,7 +3253,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3190 + * google/container/v1beta1/cluster_service.proto;l=3217 * @return The zone. */ @java.lang.Deprecated @@ -3281,7 +3281,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3190 + * google/container/v1beta1/cluster_service.proto;l=3217 * @return The bytes for zone. */ @java.lang.Deprecated @@ -3309,7 +3309,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3190 + * google/container/v1beta1/cluster_service.proto;l=3217 * @param value The zone to set. * @return This builder for chaining. */ @@ -3336,7 +3336,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3190 + * google/container/v1beta1/cluster_service.proto;l=3217 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3359,7 +3359,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3190 + * google/container/v1beta1/cluster_service.proto;l=3217 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -3388,7 +3388,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3194 + * google/container/v1beta1/cluster_service.proto;l=3221 * @return The clusterId. */ @java.lang.Deprecated @@ -3415,7 +3415,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3194 + * google/container/v1beta1/cluster_service.proto;l=3221 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -3442,7 +3442,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3194 + * google/container/v1beta1/cluster_service.proto;l=3221 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -3468,7 +3468,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3194 + * google/container/v1beta1/cluster_service.proto;l=3221 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3490,7 +3490,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3194 + * google/container/v1beta1/cluster_service.proto;l=3221 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -3519,7 +3519,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 + * google/container/v1beta1/cluster_service.proto;l=3226 * @return The nodePoolId. */ @java.lang.Deprecated @@ -3546,7 +3546,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 + * google/container/v1beta1/cluster_service.proto;l=3226 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -3573,7 +3573,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 + * google/container/v1beta1/cluster_service.proto;l=3226 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -3599,7 +3599,7 @@ public Builder setNodePoolId(java.lang.String value) { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 + * google/container/v1beta1/cluster_service.proto;l=3226 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3621,7 +3621,7 @@ public Builder clearNodePoolId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 + * google/container/v1beta1/cluster_service.proto;l=3226 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java index c0f9aa5200a9..6feb536bfaf6 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface UpdateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3183 + * google/container/v1beta1/cluster_service.proto;l=3210 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface UpdateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3183 + * google/container/v1beta1/cluster_service.proto;l=3210 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3190 + * google/container/v1beta1/cluster_service.proto;l=3217 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3190 + * google/container/v1beta1/cluster_service.proto;l=3217 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface UpdateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3194 + * google/container/v1beta1/cluster_service.proto;l=3221 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface UpdateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3194 + * google/container/v1beta1/cluster_service.proto;l=3221 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -145,7 +145,7 @@ public interface UpdateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 + * google/container/v1beta1/cluster_service.proto;l=3226 * @return The nodePoolId. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface UpdateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 + * google/container/v1beta1/cluster_service.proto;l=3226 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java index fade73826b96..f55183c5c1e2 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5362 + * See google/container/v1beta1/cluster_service.proto;l=5392 * @return The identityNamespace. */ @java.lang.Override @@ -106,7 +106,7 @@ public java.lang.String getIdentityNamespace() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5362 + * See google/container/v1beta1/cluster_service.proto;l=5392 * @return The bytes for identityNamespace. */ @java.lang.Override @@ -627,7 +627,7 @@ public Builder mergeFrom( * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5362 + * See google/container/v1beta1/cluster_service.proto;l=5392 * @return The identityNamespace. */ @java.lang.Deprecated @@ -652,7 +652,7 @@ public java.lang.String getIdentityNamespace() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5362 + * See google/container/v1beta1/cluster_service.proto;l=5392 * @return The bytes for identityNamespace. */ @java.lang.Deprecated @@ -677,7 +677,7 @@ public com.google.protobuf.ByteString getIdentityNamespaceBytes() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5362 + * See google/container/v1beta1/cluster_service.proto;l=5392 * @param value The identityNamespace to set. * @return This builder for chaining. */ @@ -701,7 +701,7 @@ public Builder setIdentityNamespace(java.lang.String value) { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5362 + * See google/container/v1beta1/cluster_service.proto;l=5392 * @return This builder for chaining. */ @java.lang.Deprecated @@ -721,7 +721,7 @@ public Builder clearIdentityNamespace() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5362 + * See google/container/v1beta1/cluster_service.proto;l=5392 * @param value The bytes for identityNamespace to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java index 04b87a2f67f8..9b50d446fdfb 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java @@ -34,7 +34,7 @@ public interface WorkloadIdentityConfigOrBuilder * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5362 + * See google/container/v1beta1/cluster_service.proto;l=5392 * @return The identityNamespace. */ @java.lang.Deprecated @@ -49,7 +49,7 @@ public interface WorkloadIdentityConfigOrBuilder * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5362 + * See google/container/v1beta1/cluster_service.proto;l=5392 * @return The bytes for identityNamespace. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java index a8d3c40d13bf..ed7f0e3d6a15 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java @@ -452,7 +452,7 @@ private Mode(int value) { * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4927 + * google/container/v1beta1/cluster_service.proto;l=4957 * @return The enum numeric value on the wire for nodeMetadata. */ @java.lang.Override @@ -473,7 +473,7 @@ public int getNodeMetadataValue() { * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4927 + * google/container/v1beta1/cluster_service.proto;l=4957 * @return The nodeMetadata. */ @java.lang.Override @@ -908,7 +908,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4927 + * google/container/v1beta1/cluster_service.proto;l=4957 * @return The enum numeric value on the wire for nodeMetadata. */ @java.lang.Override @@ -929,7 +929,7 @@ public int getNodeMetadataValue() { * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4927 + * google/container/v1beta1/cluster_service.proto;l=4957 * @param value The enum numeric value on the wire for nodeMetadata to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setNodeMetadataValue(int value) { * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4927 + * google/container/v1beta1/cluster_service.proto;l=4957 * @return The nodeMetadata. */ @java.lang.Override @@ -978,7 +978,7 @@ public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeM * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4927 + * google/container/v1beta1/cluster_service.proto;l=4957 * @param value The nodeMetadata to set. * @return This builder for chaining. */ @@ -1006,7 +1006,7 @@ public Builder setNodeMetadata( * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4927 + * google/container/v1beta1/cluster_service.proto;l=4957 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java index 6cd66560e13f..df008beaca5e 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java @@ -37,7 +37,7 @@ public interface WorkloadMetadataConfigOrBuilder * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4927 + * google/container/v1beta1/cluster_service.proto;l=4957 * @return The enum numeric value on the wire for nodeMetadata. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface WorkloadMetadataConfigOrBuilder * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4927 + * google/container/v1beta1/cluster_service.proto;l=4957 * @return The nodeMetadata. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto b/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto index 203b49d840ab..f5dec1e43ec5 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto @@ -965,7 +965,7 @@ message NodeNetworkConfig { // Each pod network corresponds to an additional alias IP range for the node repeated AdditionalPodNetworkConfig additional_pod_network_configs = 15; - // Output only. [Output only] The utilization of the IPv4 range for the pod. + // Output only. The utilization of the IPv4 range for the pod. // The ratio is Usage/[Total number of IPs in the secondary range], // Usage=numNodes*numZones*podIPsPerNode. double pod_ipv4_range_utilization = 16 @@ -985,14 +985,14 @@ message AdditionalNodeNetworkConfig { // AdditionalPodNetworkConfig is the configuration for additional pod networks // within the NodeNetworkConfig message message AdditionalPodNetworkConfig { - // Name of the subnetwork where the additional pod network belongs + // Name of the subnetwork where the additional pod network belongs. string subnetwork = 1; // The name of the secondary range on the subnet which provides IP address for - // this pod range + // this pod range. string secondary_pod_range = 2; - // The maximum number of pods per node which use this pod network + // The maximum number of pods per node which use this pod network. optional MaxPodsConstraint max_pods_per_node = 3; } @@ -1367,15 +1367,18 @@ message MasterAuth { // certificate is issued. ClientCertificateConfig client_certificate_config = 3; - string cluster_ca_certificate = 100; + // Output only. Base64-encoded public certificate that is the root of + // trust for the cluster. + string cluster_ca_certificate = 100 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] Base64-encoded public certificate used by clients to + // Output only. Base64-encoded public certificate used by clients to // authenticate to the cluster endpoint. - string client_certificate = 101; + string client_certificate = 101 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] Base64-encoded private key used by clients to authenticate + // Output only. Base64-encoded private key used by clients to authenticate // to the cluster endpoint. - string client_key = 102; + string client_key = 102 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Configuration for client certificates on the cluster. @@ -1443,6 +1446,10 @@ message AddonsConfig { // Optional. Configuration for the StatefulHA add-on. StatefulHAConfig stateful_ha_config = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for Ray Operator addon. + RayOperatorConfig ray_operator_config = 21 + [(google.api.field_behavior) = OPTIONAL]; } // Configuration options for the HTTP (L7) load balancing controller addon, @@ -1526,6 +1533,20 @@ message GcsFuseCsiDriverConfig { bool enabled = 1; } +// Configuration options for the Ray Operator add-on. +message RayOperatorConfig { + // Whether the Ray addon is enabled for this cluster. + bool enabled = 1; + + // Optional. Logging configuration for Ray clusters. + RayClusterLoggingConfig ray_cluster_logging_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Monitoring configuration for Ray clusters. + RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + // Configuration for controlling master global access settings. message PrivateClusterMasterGlobalAccessConfig { // Whenever master is accessible globally or not. @@ -1549,13 +1570,13 @@ message PrivateClusterConfig { string master_ipv4_cidr_block = 3; // Output only. The internal IP address of this cluster's master endpoint. - string private_endpoint = 4; + string private_endpoint = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The external IP address of this cluster's master endpoint. - string public_endpoint = 5; + string public_endpoint = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The peering name in the customer VPC used by this cluster. - string peering_name = 7; + string peering_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Controls master global access settings. PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; @@ -1843,25 +1864,24 @@ message IPAllocationPolicy { // overprovisioning is disabled. PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - // Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and - // pods. + // Output only. The subnet's IPv6 CIDR block used by nodes and pods. string subnet_ipv6_cidr_block = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. [Output only] The services IPv6 CIDR block for the cluster. + // Output only. The services IPv6 CIDR block for the cluster. string services_ipv6_cidr_block = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. [Output only] The additional pod ranges that are added to the - // cluster. These pod ranges can be used by new node pools to allocate pod IPs + // Output only. The additional pod ranges that are added to the cluster. + // These pod ranges can be used by new node pools to allocate pod IPs // automatically. Once the range is removed it will not show up in // IPAllocationPolicy. AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. [Output only] The utilization of the cluster default IPv4 - // range for the pod. The ratio is Usage/[Total number of IPs in the secondary - // range], Usage=numNodes*numZones*podIPsPerNode. + // Output only. The utilization of the cluster default IPv4 range for the + // pod. The ratio is Usage/[Total number of IPs in the secondary range], + // Usage=numNodes*numZones*podIPsPerNode. double default_pod_ipv4_range_utilization = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -2215,21 +2235,22 @@ message Cluster { // Configuration for Identity Service component. IdentityServiceConfig identity_service_config = 54; - // [Output only] Server-defined URL for the resource. - string self_link = 100; + // Output only. Server-defined URL for the resource. + string self_link = 100 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The name of the Google Compute Engine + // Output only. The name of the Google Compute Engine // [zone](https://cloud.google.com/compute/docs/zones#available) in which the // cluster resides. This field is deprecated, use location instead. - string zone = 101 [deprecated = true]; + string zone = 101 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The IP address of this cluster's master endpoint. + // Output only. The IP address of this cluster's master endpoint. // The endpoint can be accessed from the internet at // `https://username:password@endpoint/`. // // See the `masterAuth` property of this resource for username and // password information. - string endpoint = 102; + string endpoint = 102 [(google.api.field_behavior) = OUTPUT_ONLY]; // The initial Kubernetes version for this cluster. Valid versions are those // found in validMasterVersions returned by getServerConfig. The version can @@ -2246,67 +2267,72 @@ message Cluster { // - "","-": picks the default Kubernetes version string initial_cluster_version = 103; - // [Output only] The current software version of the master endpoint. - string current_master_version = 104; + // Output only. The current software version of the master endpoint. + string current_master_version = 104 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] Deprecated, use + // Output only. Deprecated, use // [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools) // instead. The current version of the node software components. // If they are currently at multiple versions because they're in the process // of being upgraded, this reflects the minimum version of all nodes. - string current_node_version = 105 [deprecated = true]; + string current_node_version = 105 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The time the cluster was created, in + // Output only. The time the cluster was created, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string create_time = 106; + string create_time = 106 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The current status of this cluster. - Status status = 107; + // Output only. The current status of this cluster. + Status status = 107 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] Deprecated. Use conditions instead. + // Output only. Deprecated. Use conditions instead. // Additional information about the current status of this // cluster, if available. - string status_message = 108 [deprecated = true]; + string status_message = 108 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The size of the address space on each node for hosting + // Output only. The size of the address space on each node for hosting // containers. This is provisioned from within the `container_ipv4_cidr` // range. This field will only be set when cluster is in route-based network // mode. - int32 node_ipv4_cidr_size = 109; + int32 node_ipv4_cidr_size = 109 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The IP address range of the Kubernetes services in + // Output only. The IP address range of the Kubernetes services in // this cluster, in // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) // notation (e.g. `1.2.3.4/29`). Service addresses are // typically put in the last `/16` from the container CIDR. - string services_ipv4_cidr = 110; + string services_ipv4_cidr = 110 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Deprecated. Use node_pools.instance_group_urls. - repeated string instance_group_urls = 111 [deprecated = true]; + // Output only. Deprecated. Use node_pools.instance_group_urls. + repeated string instance_group_urls = 111 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The number of nodes currently in the cluster. Deprecated. + // Output only. The number of nodes currently in the cluster. Deprecated. // Call Kubernetes API directly to retrieve node information. - int32 current_node_count = 112 [deprecated = true]; + int32 current_node_count = 112 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The time the cluster will be automatically + // Output only. The time the cluster will be automatically // deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string expire_time = 113; + string expire_time = 113 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The name of the Google Compute Engine + // Output only. The name of the Google Compute Engine // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) // or // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) // in which the cluster resides. - string location = 114; + string location = 114 [(google.api.field_behavior) = OUTPUT_ONLY]; // Enable the ability to use Cloud TPUs in this cluster. // This field is deprecated, use tpu_config.enabled instead. bool enable_tpu = 115; - // [Output only] The IP address range of the Cloud TPUs in this cluster, in + // Output only. The IP address range of the Cloud TPUs in this cluster, in // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) // notation (e.g. `1.2.3.4/29`). - string tpu_ipv4_cidr_block = 116; + string tpu_ipv4_cidr_block = 116 [(google.api.field_behavior) = OUTPUT_ONLY]; // Configuration of etcd encryption. DatabaseEncryption database_encryption = 38; @@ -2828,17 +2854,17 @@ message AdditionalPodRangesConfig { // Name for pod secondary ipv4 range which has the actual range defined ahead. repeated string pod_range_names = 1; - // Output only. [Output only] Information for additional pod range. + // Output only. Information for additional pod range. repeated RangeInfo pod_range_info = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // RangeInfo contains the range name and the range utilization by this cluster. message RangeInfo { - // Output only. [Output only] Name of a range. + // Output only. Name of a range. string range_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. [Output only] The utilization of the range. + // Output only. The utilization of the range. double utilization = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -2989,36 +3015,37 @@ message Operation { FLEET_FEATURE_UPGRADE = 19; } - // The server-assigned ID for the operation. - string name = 1; + // Output only. The server-assigned ID for the operation. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The name of the Google Compute Engine + // Output only. The name of the Google Compute Engine // [zone](https://cloud.google.com/compute/docs/zones#available) in which the // operation is taking place. This field is deprecated, use location instead. - string zone = 2 [deprecated = true]; + string zone = 2 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // The operation type. - Type operation_type = 3; + // Output only. The operation type. + Type operation_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The current status of the operation. - Status status = 4; + // Output only. The current status of the operation. + Status status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Detailed operation progress, if available. - string detail = 8; + // Output only. Detailed operation progress, if available. + string detail = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. If an error has occurred, a textual description of the error. // Deprecated. Use field error instead. string status_message = 5 [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // Server-defined URI for the operation. Example: + // Output only. Server-defined URI for the operation. Example: // `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. - string self_link = 6; + string self_link = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Server-defined URI for the target of the operation. The format of this is a - // URI to the resource being modified (such as a cluster, node pool, or node). - // For node pool repairs, there may be multiple nodes being repaired, but only - // one will be the target. + // Output only. Server-defined URI for the target of the operation. The format + // of this is a URI to the resource being modified (such as a cluster, node + // pool, or node). For node pool repairs, there may be multiple nodes being + // repaired, but only one will be the target. // // Examples: // @@ -3030,24 +3057,24 @@ message Operation { // `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` // // `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` - string target_link = 7; + string target_link = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The name of the Google Compute Engine + // Output only. The name of the Google Compute Engine // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) // or // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) // in which the cluster resides. - string location = 9; + string location = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The time the operation started, in + // Output only. The time the operation started, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string start_time = 10; + string start_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The time the operation completed, in + // Output only. The time the operation completed, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string end_time = 11; + string end_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. [Output only] Progress information for an operation. + // Output only. Progress information for an operation. OperationProgress progress = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Which conditions caused the current cluster state. @@ -4180,28 +4207,30 @@ message NodePool { // cluster-level defaults. NodeNetworkConfig network_config = 14; - // [Output only] Server-defined URL for the resource. - string self_link = 100; + // Output only. Server-defined URL for the resource. + string self_link = 100 [(google.api.field_behavior) = OUTPUT_ONLY]; // The version of Kubernetes running on this NodePool's nodes. If unspecified, // it defaults as described // [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). string version = 101; - // [Output only] The resource URLs of the [managed instance + // Output only. The resource URLs of the [managed instance // groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) // associated with this node pool. // During the node pool blue-green upgrade operation, the URLs contain both // blue and green resources. - repeated string instance_group_urls = 102; + repeated string instance_group_urls = 102 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] The status of the nodes in this pool instance. - Status status = 103; + // Output only. The status of the nodes in this pool instance. + Status status = 103 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] Deprecated. Use conditions instead. + // Output only. Deprecated. Use conditions instead. // Additional information about the current status of this // node pool instance, if available. - string status_message = 104 [deprecated = true]; + string status_message = 104 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; // Autoscaler configuration for this NodePool. Autoscaler is enabled // only if a valid configuration is present. @@ -4217,8 +4246,8 @@ message NodePool { // Which conditions caused the current node pool state. repeated StatusCondition conditions = 105; - // [Output only] The pod CIDR block size per node in this node pool. - int32 pod_ipv4_cidr_size = 7; + // Output only. The pod CIDR block size per node in this node pool. + int32 pod_ipv4_cidr_size = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Upgrade settings control disruption and speed of the upgrade. UpgradeSettings upgrade_settings = 107; @@ -4226,8 +4255,8 @@ message NodePool { // Specifies the node placement policy. PlacementPolicy placement_policy = 108; - // Output only. [Output only] Update info contains relevant information during - // a node pool update. + // Output only. Update info contains relevant information during a node + // pool update. UpdateInfo update_info = 109 [(google.api.field_behavior) = OUTPUT_ONLY]; // This checksum is computed by the server based on the value of node pool @@ -4258,14 +4287,15 @@ message NodeManagement { // AutoUpgradeOptions defines the set of options for the user to control how // the Auto Upgrades will proceed. message AutoUpgradeOptions { - // [Output only] This field is set when upgrades are about to commence + // Output only. This field is set when upgrades are about to commence // with the approximate start time for the upgrades, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string auto_upgrade_start_time = 1; + string auto_upgrade_start_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] This field is set when upgrades are about to commence + // Output only. This field is set when upgrades are about to commence // with the description of the upgrade. - string description = 2; + string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // MaintenancePolicy defines the maintenance policy to be used for the cluster. @@ -4386,9 +4416,9 @@ message DailyMaintenanceWindow { // It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. string start_time = 2; - // [Output only] Duration of the time window, automatically chosen to be + // Output only. Duration of the time window, automatically chosen to be // smallest possible in the given scenario. - string duration = 3; + string duration = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // SetNodePoolManagementRequest sets the node management properties of a node @@ -5096,13 +5126,13 @@ message NetworkConfig { // [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) // to which the cluster is connected. Example: // projects/my-project/global/networks/my-network - string network = 1; + string network = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The relative name of the Google Compute Engine // [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the // cluster is connected. Example: // projects/my-project/regions/us-central1/subnetworks/my-subnet - string subnetwork = 2; + string subnetwork = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Whether Intra-node visibility is enabled for this cluster. // This makes same node pod to pod traffic visible for VPC network. @@ -5985,6 +6015,12 @@ message LoggingComponentConfig { repeated Component enable_components = 1; } +// RayClusterLoggingConfig specifies logging configuration for Ray clusters. +message RayClusterLoggingConfig { + // Enable log collection for Ray clusters. + bool enabled = 1; +} + // MonitoringConfig is cluster monitoring configuration. message MonitoringConfig { // Monitoring components configuration @@ -6027,6 +6063,13 @@ message AdvancedDatapathObservabilityConfig { optional bool enable_relay = 3; } +// RayClusterMonitoringConfig specifies monitoring configuration for Ray +// clusters. +message RayClusterMonitoringConfig { + // Enable metrics collection for Ray clusters. + bool enabled = 1; +} + // NodePoolLoggingConfig specifies logging configuration for nodepools. message NodePoolLoggingConfig { // Logging variant configuration. @@ -6096,6 +6139,9 @@ message MonitoringComponentConfig { // KUBELET KUBELET = 14; + + // NVIDIA Data Center GPU Manager (DCGM) + DCGM = 15; } // Select components to collect metrics. An empty set would disable all @@ -6126,14 +6172,14 @@ message Fleet { // been registered. string project = 1; - // [Output only] The full resource name of the registered fleet membership of + // Output only. The full resource name of the registered fleet membership of // the cluster, in the format // `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. - string membership = 2; + string membership = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // [Output only] Whether the cluster has been registered through the fleet + // Output only. Whether the cluster has been registered through the fleet // API. - bool pre_registered = 3; + bool pre_registered = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Possible values for IP stack type @@ -6176,8 +6222,7 @@ message EnterpriseConfig { ENTERPRISE = 2; } - // Output only. [Output only] cluster_tier specifies the premium tier of the - // cluster. + // Output only. cluster_tier specifies the premium tier of the cluster. ClusterTier cluster_tier = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index c6a1c29ecde8..cebaaadbc9c6 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/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-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/ContainerAnalysisStubSettings.java b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/ContainerAnalysisStubSettings.java index 69983d3367e8..9a1606910a75 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/ContainerAnalysisStubSettings.java +++ b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/ContainerAnalysisStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -154,6 +155,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "containeranalysis.googleapis.com:443"; } diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index 5a81a32e3a43..93acd7782769 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/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.cloud/google-cloud-contentwarehouse.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java index 8899bdf2eaf8..7fc68f6422d8 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.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 "contentwarehouse.googleapis.com:443"; } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java index 7824d0c95963..8153cc0cfe91 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.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; @@ -235,6 +236,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "contentwarehouse.googleapis.com:443"; } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java index a3a23f6f2ef2..b42c564f5281 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.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; @@ -259,6 +260,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "contentwarehouse.googleapis.com:443"; } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java index 45d53f51a8c5..965d97ae5731 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -138,6 +139,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "contentwarehouse.googleapis.com:443"; } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java index 98679630c7d6..d9e67dcba9d3 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.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; @@ -219,6 +220,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "contentwarehouse.googleapis.com:443"; } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java index 10b5e501c5f8..459b4e594842 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.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; @@ -224,6 +225,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "contentwarehouse.googleapis.com:443"; } diff --git a/java-data-fusion/README.md b/java-data-fusion/README.md index e8a560d84283..f6518b626499 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/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-data-fusion.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.46.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-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/DataFusionStubSettings.java b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/DataFusionStubSettings.java index ee4df17875f4..93dcb32dddce 100644 --- a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/DataFusionStubSettings.java +++ b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/DataFusionStubSettings.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; @@ -343,6 +344,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "datafusion.googleapis.com:443"; } diff --git a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/DataFusionStubSettings.java b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/DataFusionStubSettings.java index 7d2dd486d98a..7be788bf04ef 100644 --- a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/DataFusionStubSettings.java +++ b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/DataFusionStubSettings.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; @@ -526,6 +527,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "datafusion.googleapis.com:443"; } diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md index d9174204ca9d..66c25b4825e1 100644 --- a/java-datacatalog/README.md +++ b/java-datacatalog/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-datacatalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.52.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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java index 653905c5c2e8..78e76505e9c0 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.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; @@ -650,6 +651,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "datacatalog.googleapis.com:443"; } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStubSettings.java index aff0e0581958..28a98d9685e8 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStubSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -145,6 +146,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "datacatalog.googleapis.com:443"; } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStubSettings.java index 26c0bb4e1d45..4d0b6940a08f 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStubSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStubSettings.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; @@ -341,6 +342,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "datacatalog.googleapis.com:443"; } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java index 285af1b9a42e..c25490d1e0f8 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.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; @@ -576,6 +577,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "datacatalog.googleapis.com:443"; } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStubSettings.java index 0d46c91ba99c..4013e65b4282 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStubSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -138,6 +139,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "datacatalog.googleapis.com:443"; } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.java index 9c5d4e22c8a3..31fe55722ad4 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.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; @@ -342,6 +343,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "datacatalog.googleapis.com:443"; } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1beta1/reflect-config.json b/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1beta1/reflect-config.json index 47005f333846..4b70deed51fe 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1beta1/reflect-config.json +++ b/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1beta1/reflect-config.json @@ -1529,6 +1529,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datacatalog.v1beta1.TagTemplate$DataplexTransferStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datacatalog.v1beta1.TagTemplateField", "queryAllDeclaredConstructors": true, diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java index b9f45b8a7552..b6927c5d63c5 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java @@ -229,277 +229,277 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datacatalog.goog" + "leapis.com/Entry\"V\n\022LookupEntryRequest\022\031" + "\n\017linked_resource\030\001 \001(\tH\000\022\026\n\014sql_resourc" - + "e\030\003 \001(\tH\000B\r\n\013target_name\"\334\007\n\005Entry\022;\n\004na" - + "me\030\001 \001(\tB-\340A\003\372A\'\n%datacatalog.googleapis" - + ".com/EntryGroup\022\027\n\017linked_resource\030\t \001(\t" - + "\022;\n\004type\030\002 \001(\0162+.google.cloud.datacatalo" - + "g.v1beta1.EntryTypeH\000\022\035\n\023user_specified_" - + "type\030\020 \001(\tH\000\022T\n\021integrated_system\030\021 \001(\0162" - + "2.google.cloud.datacatalog.v1beta1.Integ" - + "ratedSystemB\003\340A\003H\001\022\037\n\025user_specified_sys" - + "tem\030\022 \001(\tH\001\022L\n\020gcs_fileset_spec\030\006 \001(\01320." - + "google.cloud.datacatalog.v1beta1.GcsFile" - + "setSpecH\002\022R\n\023bigquery_table_spec\030\014 \001(\01323" - + ".google.cloud.datacatalog.v1beta1.BigQue" - + "ryTableSpecH\002\022_\n\032bigquery_date_sharded_s" - + "pec\030\017 \001(\01329.google.cloud.datacatalog.v1b" - + "eta1.BigQueryDateShardedSpecH\002\022\024\n\014displa" - + "y_name\030\003 \001(\t\022\023\n\013description\030\004 \001(\t\0228\n\006sch" - + "ema\030\005 \001(\0132(.google.cloud.datacatalog.v1b" - + "eta1.Schema\022Y\n\030source_system_timestamps\030" - + "\007 \001(\01322.google.cloud.datacatalog.v1beta1" - + ".SystemTimestampsB\003\340A\003\022H\n\014usage_signal\030\r" - + " \001(\0132-.google.cloud.datacatalog.v1beta1." - + "UsageSignalB\003\340A\003:x\352Au\n datacatalog.googl" - + "eapis.com/Entry\022Qprojects/{project}/loca" - + "tions/{location}/entryGroups/{entry_grou" - + "p}/entries/{entry}B\014\n\nentry_typeB\010\n\006syst" - + "emB\013\n\ttype_spec\"\216\002\n\nEntryGroup\022\014\n\004name\030\001" - + " \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013descriptio" - + "n\030\003 \001(\t\022X\n\027data_catalog_timestamps\030\004 \001(\013" - + "22.google.cloud.datacatalog.v1beta1.Syst" - + "emTimestampsB\003\340A\003:m\352Aj\n%datacatalog.goog" - + "leapis.com/EntryGroup\022Aprojects/{project" - + "}/locations/{location}/entryGroups/{entr" - + "y_group}\"\302\001\n\030CreateTagTemplateRequest\022>\n" - + "\006parent\030\001 \001(\tB.\340A\002\372A(\022&datacatalog.googl" - + "eapis.com/TagTemplate\022\034\n\017tag_template_id" - + "\030\003 \001(\tB\003\340A\002\022H\n\014tag_template\030\002 \001(\0132-.goog" - + "le.cloud.datacatalog.v1beta1.TagTemplate" - + "B\003\340A\002\"U\n\025GetTagTemplateRequest\022<\n\004name\030\001" - + " \001(\tB.\340A\002\372A(\n&datacatalog.googleapis.com" - + "/TagTemplate\"\225\001\n\030UpdateTagTemplateReques" - + "t\022H\n\014tag_template\030\001 \001(\0132-.google.cloud.d" - + "atacatalog.v1beta1.TagTemplateB\003\340A\002\022/\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "Mask\"l\n\030DeleteTagTemplateRequest\022<\n\004name" - + "\030\001 \001(\tB.\340A\002\372A(\n&datacatalog.googleapis.c" - + "om/TagTemplate\022\022\n\005force\030\002 \001(\010B\003\340A\002\"\203\001\n\020C" - + "reateTagRequest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022" - + "\036datacatalog.googleapis.com/Tag\0227\n\003tag\030\002" - + " \001(\0132%.google.cloud.datacatalog.v1beta1." - + "TagB\003\340A\002\"|\n\020UpdateTagRequest\0227\n\003tag\030\001 \001(" - + "\0132%.google.cloud.datacatalog.v1beta1.Tag" - + "B\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMask\"H\n\020DeleteTagRequest\0224\n\004na" - + "me\030\001 \001(\tB&\340A\002\372A \022\036datacatalog.googleapis" - + ".com/Tag\"\330\001\n\035CreateTagTemplateFieldReque" - + "st\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&datacatalog." - + "googleapis.com/TagTemplate\022\"\n\025tag_templa" - + "te_field_id\030\002 \001(\tB\003\340A\002\022S\n\022tag_template_f" - + "ield\030\003 \001(\01322.google.cloud.datacatalog.v1" - + "beta1.TagTemplateFieldB\003\340A\002\"\355\001\n\035UpdateTa" - + "gTemplateFieldRequest\022A\n\004name\030\001 \001(\tB3\340A\002" - + "\372A-\n+datacatalog.googleapis.com/TagTempl" - + "ateField\022S\n\022tag_template_field\030\002 \001(\01322.g" - + "oogle.cloud.datacatalog.v1beta1.TagTempl" - + "ateFieldB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132\032.goo" - + "gle.protobuf.FieldMaskB\003\340A\001\"\212\001\n\035RenameTa" - + "gTemplateFieldRequest\022A\n\004name\030\001 \001(\tB3\340A\002" - + "\372A-\n+datacatalog.googleapis.com/TagTempl" - + "ateField\022&\n\031new_tag_template_field_id\030\002 " - + "\001(\tB\003\340A\002\"\236\001\n&RenameTagTemplateFieldEnumV" - + "alueRequest\022J\n\004name\030\001 \001(\tB<\340A\002\372A6\n4datac" - + "atalog.googleapis.com/TagTemplateFieldEn" - + "umValue\022(\n\033new_enum_value_display_name\030\002" - + " \001(\tB\003\340A\002\"v\n\035DeleteTagTemplateFieldReque" - + "st\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datacatalog.go" - + "ogleapis.com/TagTemplateField\022\022\n\005force\030\002" - + " \001(\010B\003\340A\002\"p\n\017ListTagsRequest\0226\n\006parent\030\001" - + " \001(\tB&\340A\002\372A \022\036datacatalog.googleapis.com" - + "/Tag\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\"`\n\020ListTagsResponse\0223\n\004tags\030\001 \003(\0132%." - + "google.cloud.datacatalog.v1beta1.Tag\022\027\n\017" - + "next_page_token\030\002 \001(\t\"\251\001\n\022ListEntriesReq" - + "uest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\n%datacatalo" - + "g.googleapis.com/EntryGroup\022\021\n\tpage_size" - + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022-\n\tread_mask\030" - + "\004 \001(\0132\032.google.protobuf.FieldMask\"h\n\023Lis" - + "tEntriesResponse\0228\n\007entries\030\001 \003(\0132\'.goog" - + "le.cloud.datacatalog.v1beta1.Entry\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t*[\n\tEntryType\022\032\n\026ENTR" - + "Y_TYPE_UNSPECIFIED\020\000\022\t\n\005TABLE\020\002\022\t\n\005MODEL" - + "\020\005\022\017\n\013DATA_STREAM\020\003\022\013\n\007FILESET\020\0042\3414\n\013Dat" - + "aCatalog\022\262\001\n\rSearchCatalog\0226.google.clou" - + "d.datacatalog.v1beta1.SearchCatalogReque" - + "st\0327.google.cloud.datacatalog.v1beta1.Se" - + "archCatalogResponse\"0\332A\013scope,query\202\323\344\223\002" - + "\034\"\027/v1beta1/catalog:search:\001*\022\352\001\n\020Create" - + "EntryGroup\0229.google.cloud.datacatalog.v1" - + "beta1.CreateEntryGroupRequest\032,.google.c" - + "loud.datacatalog.v1beta1.EntryGroup\"m\332A!" - + "parent,entry_group_id,entry_group\202\323\344\223\002C\"" - + "4/v1beta1/{parent=projects/*/locations/*" - + "}/entryGroups:\013entry_group\022\372\001\n\020UpdateEnt" - + "ryGroup\0229.google.cloud.datacatalog.v1bet" - + "a1.UpdateEntryGroupRequest\032,.google.clou" - + "d.datacatalog.v1beta1.EntryGroup\"}\332A\013ent" - + "ry_group\332A\027entry_group,update_mask\202\323\344\223\002O" - + "2@/v1beta1/{entry_group.name=projects/*/" - + "locations/*/entryGroups/*}:\013entry_group\022" - + "\313\001\n\rGetEntryGroup\0226.google.cloud.datacat" - + "alog.v1beta1.GetEntryGroupRequest\032,.goog" - + "le.cloud.datacatalog.v1beta1.EntryGroup\"" - + "T\332A\004name\332A\016name,read_mask\202\323\344\223\0026\0224/v1beta" - + "1/{name=projects/*/locations/*/entryGrou" - + "ps/*}\022\252\001\n\020DeleteEntryGroup\0229.google.clou" - + "d.datacatalog.v1beta1.DeleteEntryGroupRe" - + "quest\032\026.google.protobuf.Empty\"C\332A\004name\202\323" - + "\344\223\0026*4/v1beta1/{name=projects/*/location" - + "s/*/entryGroups/*}\022\315\001\n\017ListEntryGroups\0228" - + ".google.cloud.datacatalog.v1beta1.ListEn" - + "tryGroupsRequest\0329.google.cloud.datacata" - + "log.v1beta1.ListEntryGroupsResponse\"E\332A\006" - + "parent\202\323\344\223\0026\0224/v1beta1/{parent=projects/" - + "*/locations/*}/entryGroups\022\323\001\n\013CreateEnt" - + "ry\0224.google.cloud.datacatalog.v1beta1.Cr" - + "eateEntryRequest\032\'.google.cloud.datacata" - + "log.v1beta1.Entry\"e\332A\025parent,entry_id,en" - + "try\202\323\344\223\002G\">/v1beta1/{parent=projects/*/l" - + "ocations/*/entryGroups/*}/entries:\005entry" - + "\022\335\001\n\013UpdateEntry\0224.google.cloud.datacata" - + "log.v1beta1.UpdateEntryRequest\032\'.google." - + "cloud.datacatalog.v1beta1.Entry\"o\332A\005entr" - + "y\332A\021entry,update_mask\202\323\344\223\002M2D/v1beta1/{e" - + "ntry.name=projects/*/locations/*/entryGr" - + "oups/*/entries/*}:\005entry\022\252\001\n\013DeleteEntry" - + "\0224.google.cloud.datacatalog.v1beta1.Dele" - + "teEntryRequest\032\026.google.protobuf.Empty\"M" - + "\332A\004name\202\323\344\223\002@*>/v1beta1/{name=projects/*" - + "/locations/*/entryGroups/*/entries/*}\022\265\001" - + "\n\010GetEntry\0221.google.cloud.datacatalog.v1" - + "beta1.GetEntryRequest\032\'.google.cloud.dat" - + "acatalog.v1beta1.Entry\"M\332A\004name\202\323\344\223\002@\022>/" - + "v1beta1/{name=projects/*/locations/*/ent" - + "ryGroups/*/entries/*}\022\215\001\n\013LookupEntry\0224." - + "google.cloud.datacatalog.v1beta1.LookupE" - + "ntryRequest\032\'.google.cloud.datacatalog.v" - + "1beta1.Entry\"\037\202\323\344\223\002\031\022\027/v1beta1/entries:l" - + "ookup\022\313\001\n\013ListEntries\0224.google.cloud.dat" - + "acatalog.v1beta1.ListEntriesRequest\0325.go" - + "ogle.cloud.datacatalog.v1beta1.ListEntri" - + "esResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1beta1/{p" - + "arent=projects/*/locations/*/entryGroups" - + "/*}/entries\022\361\001\n\021CreateTagTemplate\022:.goog" - + "le.cloud.datacatalog.v1beta1.CreateTagTe" - + "mplateRequest\032-.google.cloud.datacatalog" - + ".v1beta1.TagTemplate\"q\332A#parent,tag_temp" - + "late_id,tag_template\202\323\344\223\002E\"5/v1beta1/{pa" - + "rent=projects/*/locations/*}/tagTemplate" - + "s:\014tag_template\022\276\001\n\016GetTagTemplate\0227.goo" - + "gle.cloud.datacatalog.v1beta1.GetTagTemp" - + "lateRequest\032-.google.cloud.datacatalog.v" - + "1beta1.TagTemplate\"D\332A\004name\202\323\344\223\0027\0225/v1be" + + "e\030\003 \001(\tH\000B\r\n\013target_name\"\337\007\n\005Entry\022>\n\004na" + + "me\030\001 \001(\tB0\340A\003\340A\010\372A\'\n%datacatalog.googlea" + + "pis.com/EntryGroup\022\027\n\017linked_resource\030\t " + + "\001(\t\022;\n\004type\030\002 \001(\0162+.google.cloud.datacat" + + "alog.v1beta1.EntryTypeH\000\022\035\n\023user_specifi" + + "ed_type\030\020 \001(\tH\000\022T\n\021integrated_system\030\021 \001" + + "(\01622.google.cloud.datacatalog.v1beta1.In" + + "tegratedSystemB\003\340A\003H\001\022\037\n\025user_specified_" + + "system\030\022 \001(\tH\001\022L\n\020gcs_fileset_spec\030\006 \001(\013" + + "20.google.cloud.datacatalog.v1beta1.GcsF" + + "ilesetSpecH\002\022R\n\023bigquery_table_spec\030\014 \001(" + + "\01323.google.cloud.datacatalog.v1beta1.Big" + + "QueryTableSpecH\002\022_\n\032bigquery_date_sharde" + + "d_spec\030\017 \001(\01329.google.cloud.datacatalog." + + "v1beta1.BigQueryDateShardedSpecH\002\022\024\n\014dis" + + "play_name\030\003 \001(\t\022\023\n\013description\030\004 \001(\t\0228\n\006" + + "schema\030\005 \001(\0132(.google.cloud.datacatalog." + + "v1beta1.Schema\022Y\n\030source_system_timestam" + + "ps\030\007 \001(\01322.google.cloud.datacatalog.v1be" + + "ta1.SystemTimestampsB\003\340A\003\022H\n\014usage_signa" + + "l\030\r \001(\0132-.google.cloud.datacatalog.v1bet" + + "a1.UsageSignalB\003\340A\003:x\352Au\n datacatalog.go" + + "ogleapis.com/Entry\022Qprojects/{project}/l" + + "ocations/{location}/entryGroups/{entry_g" + + "roup}/entries/{entry}B\014\n\nentry_typeB\010\n\006s" + + "ystemB\013\n\ttype_spec\"\223\002\n\nEntryGroup\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\010\022\024\n\014display_name\030\002 \001(\t\022\023\n\013de" + + "scription\030\003 \001(\t\022X\n\027data_catalog_timestam" + + "ps\030\004 \001(\01322.google.cloud.datacatalog.v1be" + + "ta1.SystemTimestampsB\003\340A\003:m\352Aj\n%datacata" + + "log.googleapis.com/EntryGroup\022Aprojects/" + + "{project}/locations/{location}/entryGrou" + + "ps/{entry_group}\"\302\001\n\030CreateTagTemplateRe" + + "quest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&datacatal" + + "og.googleapis.com/TagTemplate\022\034\n\017tag_tem" + + "plate_id\030\003 \001(\tB\003\340A\002\022H\n\014tag_template\030\002 \001(" + + "\0132-.google.cloud.datacatalog.v1beta1.Tag" + + "TemplateB\003\340A\002\"U\n\025GetTagTemplateRequest\022<" + + "\n\004name\030\001 \001(\tB.\340A\002\372A(\n&datacatalog.google" + + "apis.com/TagTemplate\"\225\001\n\030UpdateTagTempla" + + "teRequest\022H\n\014tag_template\030\001 \001(\0132-.google" + + ".cloud.datacatalog.v1beta1.TagTemplateB\003" + + "\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMask\"l\n\030DeleteTagTemplateRequest" + + "\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&datacatalog.goog" + + "leapis.com/TagTemplate\022\022\n\005force\030\002 \001(\010B\003\340" + + "A\002\"\203\001\n\020CreateTagRequest\0226\n\006parent\030\001 \001(\tB" + + "&\340A\002\372A \022\036datacatalog.googleapis.com/Tag\022" + + "7\n\003tag\030\002 \001(\0132%.google.cloud.datacatalog." + + "v1beta1.TagB\003\340A\002\"|\n\020UpdateTagRequest\0227\n\003" + + "tag\030\001 \001(\0132%.google.cloud.datacatalog.v1b" + + "eta1.TagB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\"H\n\020DeleteTagReque" + + "st\0224\n\004name\030\001 \001(\tB&\340A\002\372A \022\036datacatalog.go" + + "ogleapis.com/Tag\"\330\001\n\035CreateTagTemplateFi" + + "eldRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&data" + + "catalog.googleapis.com/TagTemplate\022\"\n\025ta" + + "g_template_field_id\030\002 \001(\tB\003\340A\002\022S\n\022tag_te" + + "mplate_field\030\003 \001(\01322.google.cloud.dataca" + + "talog.v1beta1.TagTemplateFieldB\003\340A\002\"\355\001\n\035" + + "UpdateTagTemplateFieldRequest\022A\n\004name\030\001 " + + "\001(\tB3\340A\002\372A-\n+datacatalog.googleapis.com/" + + "TagTemplateField\022S\n\022tag_template_field\030\002" + + " \001(\01322.google.cloud.datacatalog.v1beta1." + + "TagTemplateFieldB\003\340A\002\0224\n\013update_mask\030\003 \001" + + "(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\212\001\n\035" + + "RenameTagTemplateFieldRequest\022A\n\004name\030\001 " + + "\001(\tB3\340A\002\372A-\n+datacatalog.googleapis.com/" + + "TagTemplateField\022&\n\031new_tag_template_fie" + + "ld_id\030\002 \001(\tB\003\340A\002\"\236\001\n&RenameTagTemplateFi" + + "eldEnumValueRequest\022J\n\004name\030\001 \001(\tB<\340A\002\372A" + + "6\n4datacatalog.googleapis.com/TagTemplat" + + "eFieldEnumValue\022(\n\033new_enum_value_displa" + + "y_name\030\002 \001(\tB\003\340A\002\"v\n\035DeleteTagTemplateFi" + + "eldRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+dataca" + + "talog.googleapis.com/TagTemplateField\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\002\"p\n\017ListTagsRequest\0226\n\006" + + "parent\030\001 \001(\tB&\340A\002\372A \022\036datacatalog.google" + + "apis.com/Tag\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\"`\n\020ListTagsResponse\0223\n\004tags\030" + + "\001 \003(\0132%.google.cloud.datacatalog.v1beta1" + + ".Tag\022\027\n\017next_page_token\030\002 \001(\t\"\251\001\n\022ListEn" + + "triesRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\n%da" + + "tacatalog.googleapis.com/EntryGroup\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022-\n\tre" + + "ad_mask\030\004 \001(\0132\032.google.protobuf.FieldMas" + + "k\"h\n\023ListEntriesResponse\0228\n\007entries\030\001 \003(" + + "\0132\'.google.cloud.datacatalog.v1beta1.Ent" + + "ry\022\027\n\017next_page_token\030\002 \001(\t*[\n\tEntryType" + + "\022\032\n\026ENTRY_TYPE_UNSPECIFIED\020\000\022\t\n\005TABLE\020\002\022" + + "\t\n\005MODEL\020\005\022\017\n\013DATA_STREAM\020\003\022\013\n\007FILESET\020\004" + + "2\3414\n\013DataCatalog\022\262\001\n\rSearchCatalog\0226.goo" + + "gle.cloud.datacatalog.v1beta1.SearchCata" + + "logRequest\0327.google.cloud.datacatalog.v1" + + "beta1.SearchCatalogResponse\"0\332A\013scope,qu" + + "ery\202\323\344\223\002\034\"\027/v1beta1/catalog:search:\001*\022\352\001" + + "\n\020CreateEntryGroup\0229.google.cloud.dataca" + + "talog.v1beta1.CreateEntryGroupRequest\032,." + + "google.cloud.datacatalog.v1beta1.EntryGr" + + "oup\"m\332A!parent,entry_group_id,entry_grou" + + "p\202\323\344\223\002C\"4/v1beta1/{parent=projects/*/loc" + + "ations/*}/entryGroups:\013entry_group\022\372\001\n\020U" + + "pdateEntryGroup\0229.google.cloud.datacatal" + + "og.v1beta1.UpdateEntryGroupRequest\032,.goo" + + "gle.cloud.datacatalog.v1beta1.EntryGroup" + + "\"}\332A\013entry_group\332A\027entry_group,update_ma" + + "sk\202\323\344\223\002O2@/v1beta1/{entry_group.name=pro" + + "jects/*/locations/*/entryGroups/*}:\013entr" + + "y_group\022\313\001\n\rGetEntryGroup\0226.google.cloud" + + ".datacatalog.v1beta1.GetEntryGroupReques" + + "t\032,.google.cloud.datacatalog.v1beta1.Ent" + + "ryGroup\"T\332A\004name\332A\016name,read_mask\202\323\344\223\0026\022" + + "4/v1beta1/{name=projects/*/locations/*/e" + + "ntryGroups/*}\022\252\001\n\020DeleteEntryGroup\0229.goo" + + "gle.cloud.datacatalog.v1beta1.DeleteEntr" + + "yGroupRequest\032\026.google.protobuf.Empty\"C\332" + + "A\004name\202\323\344\223\0026*4/v1beta1/{name=projects/*/" + + "locations/*/entryGroups/*}\022\315\001\n\017ListEntry" + + "Groups\0228.google.cloud.datacatalog.v1beta" + + "1.ListEntryGroupsRequest\0329.google.cloud." + + "datacatalog.v1beta1.ListEntryGroupsRespo" + + "nse\"E\332A\006parent\202\323\344\223\0026\0224/v1beta1/{parent=p" + + "rojects/*/locations/*}/entryGroups\022\323\001\n\013C" + + "reateEntry\0224.google.cloud.datacatalog.v1" + + "beta1.CreateEntryRequest\032\'.google.cloud." + + "datacatalog.v1beta1.Entry\"e\332A\025parent,ent" + + "ry_id,entry\202\323\344\223\002G\">/v1beta1/{parent=proj" + + "ects/*/locations/*/entryGroups/*}/entrie" + + "s:\005entry\022\335\001\n\013UpdateEntry\0224.google.cloud." + + "datacatalog.v1beta1.UpdateEntryRequest\032\'" + + ".google.cloud.datacatalog.v1beta1.Entry\"" + + "o\332A\005entry\332A\021entry,update_mask\202\323\344\223\002M2D/v1" + + "beta1/{entry.name=projects/*/locations/*" + + "/entryGroups/*/entries/*}:\005entry\022\252\001\n\013Del" + + "eteEntry\0224.google.cloud.datacatalog.v1be" + + "ta1.DeleteEntryRequest\032\026.google.protobuf" + + ".Empty\"M\332A\004name\202\323\344\223\002@*>/v1beta1/{name=pr" + + "ojects/*/locations/*/entryGroups/*/entri" + + "es/*}\022\265\001\n\010GetEntry\0221.google.cloud.dataca" + + "talog.v1beta1.GetEntryRequest\032\'.google.c" + + "loud.datacatalog.v1beta1.Entry\"M\332A\004name\202" + + "\323\344\223\002@\022>/v1beta1/{name=projects/*/locatio" + + "ns/*/entryGroups/*/entries/*}\022\215\001\n\013Lookup" + + "Entry\0224.google.cloud.datacatalog.v1beta1" + + ".LookupEntryRequest\032\'.google.cloud.datac" + + "atalog.v1beta1.Entry\"\037\202\323\344\223\002\031\022\027/v1beta1/e" + + "ntries:lookup\022\313\001\n\013ListEntries\0224.google.c" + + "loud.datacatalog.v1beta1.ListEntriesRequ" + + "est\0325.google.cloud.datacatalog.v1beta1.L" + + "istEntriesResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1" + + "beta1/{parent=projects/*/locations/*/ent" + + "ryGroups/*}/entries\022\361\001\n\021CreateTagTemplat" + + "e\022:.google.cloud.datacatalog.v1beta1.Cre" + + "ateTagTemplateRequest\032-.google.cloud.dat" + + "acatalog.v1beta1.TagTemplate\"q\332A#parent," + + "tag_template_id,tag_template\202\323\344\223\002E\"5/v1b" + + "eta1/{parent=projects/*/locations/*}/tag" + + "Templates:\014tag_template\022\276\001\n\016GetTagTempla" + + "te\0227.google.cloud.datacatalog.v1beta1.Ge" + + "tTagTemplateRequest\032-.google.cloud.datac" + + "atalog.v1beta1.TagTemplate\"D\332A\004name\202\323\344\223\002" + + "7\0225/v1beta1/{name=projects/*/locations/*" + + "/tagTemplates/*}\022\203\002\n\021UpdateTagTemplate\022:" + + ".google.cloud.datacatalog.v1beta1.Update" + + "TagTemplateRequest\032-.google.cloud.dataca" + + "talog.v1beta1.TagTemplate\"\202\001\332A\014tag_templ" + + "ate\332A\030tag_template,update_mask\202\323\344\223\002R2B/v" + + "1beta1/{tag_template.name=projects/*/loc" + + "ations/*/tagTemplates/*}:\014tag_template\022\263" + + "\001\n\021DeleteTagTemplate\022:.google.cloud.data" + + "catalog.v1beta1.DeleteTagTemplateRequest" + + "\032\026.google.protobuf.Empty\"J\332A\nname,force\202" + + "\323\344\223\0027*5/v1beta1/{name=projects/*/locatio" + + "ns/*/tagTemplates/*}\022\234\002\n\026CreateTagTempla" + + "teField\022?.google.cloud.datacatalog.v1bet" + + "a1.CreateTagTemplateFieldRequest\0322.googl" + + "e.cloud.datacatalog.v1beta1.TagTemplateF" + + "ield\"\214\001\332A/parent,tag_template_field_id,t" + + "ag_template_field\202\323\344\223\002T\">/v1beta1/{paren" + + "t=projects/*/locations/*/tagTemplates/*}" + + "/fields:\022tag_template_field\022\252\002\n\026UpdateTa" + + "gTemplateField\022?.google.cloud.datacatalo" + + "g.v1beta1.UpdateTagTemplateFieldRequest\032" + + "2.google.cloud.datacatalog.v1beta1.TagTe" + + "mplateField\"\232\001\332A\027name,tag_template_field" + + "\332A#name,tag_template_field,update_mask\202\323" + + "\344\223\002T2>/v1beta1/{name=projects/*/location" + + "s/*/tagTemplates/*/fields/*}:\022tag_templa" + + "te_field\022\200\002\n\026RenameTagTemplateField\022?.go" + + "ogle.cloud.datacatalog.v1beta1.RenameTag" + + "TemplateFieldRequest\0322.google.cloud.data" + + "catalog.v1beta1.TagTemplateField\"q\332A\036nam" + + "e,new_tag_template_field_id\202\323\344\223\002J\"E/v1be" + "ta1/{name=projects/*/locations/*/tagTemp" - + "lates/*}\022\203\002\n\021UpdateTagTemplate\022:.google." - + "cloud.datacatalog.v1beta1.UpdateTagTempl" - + "ateRequest\032-.google.cloud.datacatalog.v1" - + "beta1.TagTemplate\"\202\001\332A\014tag_template\332A\030ta" - + "g_template,update_mask\202\323\344\223\002R2B/v1beta1/{" - + "tag_template.name=projects/*/locations/*" - + "/tagTemplates/*}:\014tag_template\022\263\001\n\021Delet" - + "eTagTemplate\022:.google.cloud.datacatalog." - + "v1beta1.DeleteTagTemplateRequest\032\026.googl" - + "e.protobuf.Empty\"J\332A\nname,force\202\323\344\223\0027*5/" - + "v1beta1/{name=projects/*/locations/*/tag" - + "Templates/*}\022\234\002\n\026CreateTagTemplateField\022" - + "?.google.cloud.datacatalog.v1beta1.Creat" - + "eTagTemplateFieldRequest\0322.google.cloud." - + "datacatalog.v1beta1.TagTemplateField\"\214\001\332" - + "A/parent,tag_template_field_id,tag_templ" - + "ate_field\202\323\344\223\002T\">/v1beta1/{parent=projec" - + "ts/*/locations/*/tagTemplates/*}/fields:" - + "\022tag_template_field\022\252\002\n\026UpdateTagTemplat" - + "eField\022?.google.cloud.datacatalog.v1beta" - + "1.UpdateTagTemplateFieldRequest\0322.google" - + ".cloud.datacatalog.v1beta1.TagTemplateFi" - + "eld\"\232\001\332A\027name,tag_template_field\332A#name," - + "tag_template_field,update_mask\202\323\344\223\002T2>/v" - + "1beta1/{name=projects/*/locations/*/tagT" - + "emplates/*/fields/*}:\022tag_template_field" - + "\022\200\002\n\026RenameTagTemplateField\022?.google.clo" - + "ud.datacatalog.v1beta1.RenameTagTemplate" - + "FieldRequest\0322.google.cloud.datacatalog." - + "v1beta1.TagTemplateField\"q\332A\036name,new_ta" - + "g_template_field_id\202\323\344\223\002J\"E/v1beta1/{nam" - + "e=projects/*/locations/*/tagTemplates/*/" - + "fields/*}:rename:\001*\022\242\002\n\037RenameTagTemplat" - + "eFieldEnumValue\022H.google.cloud.datacatal" - + "og.v1beta1.RenameTagTemplateFieldEnumVal" - + "ueRequest\0322.google.cloud.datacatalog.v1b" - + "eta1.TagTemplateField\"\200\001\332A name,new_enum" - + "_value_display_name\202\323\344\223\002W\"R/v1beta1/{nam" - + "e=projects/*/locations/*/tagTemplates/*/" - + "fields/*/enumValues/*}:rename:\001*\022\306\001\n\026Del" - + "eteTagTemplateField\022?.google.cloud.datac" - + "atalog.v1beta1.DeleteTagTemplateFieldReq" - + "uest\032\026.google.protobuf.Empty\"S\332A\nname,fo" - + "rce\202\323\344\223\002@*>/v1beta1/{name=projects/*/loc" - + "ations/*/tagTemplates/*/fields/*}\022\215\002\n\tCr" - + "eateTag\0222.google.cloud.datacatalog.v1bet" - + "a1.CreateTagRequest\032%.google.cloud.datac" - + "atalog.v1beta1.Tag\"\244\001\332A\nparent,tag\202\323\344\223\002\220" - + "\001\"E/v1beta1/{parent=projects/*/locations" - + "/*/entryGroups/*/entries/*}/tags:\003tagZB\"" - + ";/v1beta1/{parent=projects/*/locations/*" - + "/entryGroups/*}/tags:\003tag\022\240\002\n\tUpdateTag\022" - + "2.google.cloud.datacatalog.v1beta1.Updat" - + "eTagRequest\032%.google.cloud.datacatalog.v" - + "1beta1.Tag\"\267\001\332A\003tag\332A\017tag,update_mask\202\323\344" - + "\223\002\230\0012I/v1beta1/{tag.name=projects/*/loca" - + "tions/*/entryGroups/*/entries/*/tags/*}:" - + "\003tagZF2?/v1beta1/{tag.name=projects/*/lo" - + "cations/*/entryGroups/*/tags/*}:\003tag\022\356\001\n" - + "\tDeleteTag\0222.google.cloud.datacatalog.v1" - + "beta1.DeleteTagRequest\032\026.google.protobuf" - + ".Empty\"\224\001\332A\004name\202\323\344\223\002\206\001*E/v1beta1/{name=" - + "projects/*/locations/*/entryGroups/*/ent" - + "ries/*/tags/*}Z=*;/v1beta1/{name=project" - + "s/*/locations/*/entryGroups/*/tags/*}\022\212\002" - + "\n\010ListTags\0221.google.cloud.datacatalog.v1" - + "beta1.ListTagsRequest\0322.google.cloud.dat" - + "acatalog.v1beta1.ListTagsResponse\"\226\001\332A\006p" - + "arent\202\323\344\223\002\206\001\022E/v1beta1/{parent=projects/" - + "*/locations/*/entryGroups/*/entries/*}/t" - + "agsZ=\022;/v1beta1/{parent=projects/*/locat" - + "ions/*/entryGroups/*}/tags\022\374\001\n\014SetIamPol" - + "icy\022\".google.iam.v1.SetIamPolicyRequest\032" - + "\025.google.iam.v1.Policy\"\260\001\332A\017resource,pol" - + "icy\202\323\344\223\002\227\001\"F/v1beta1/{resource=projects/" - + "*/locations/*/tagTemplates/*}:setIamPoli" - + "cy:\001*ZJ\"E/v1beta1/{resource=projects/*/l" - + "ocations/*/entryGroups/*}:setIamPolicy:\001" - + "*\022\313\002\n\014GetIamPolicy\022\".google.iam.v1.GetIa" - + "mPolicyRequest\032\025.google.iam.v1.Policy\"\377\001" - + "\332A\010resource\202\323\344\223\002\355\001\"F/v1beta1/{resource=p" - + "rojects/*/locations/*/tagTemplates/*}:ge" - + "tIamPolicy:\001*ZJ\"E/v1beta1/{resource=proj" - + "ects/*/locations/*/entryGroups/*}:getIam" - + "Policy:\001*ZT\"O/v1beta1/{resource=projects" - + "/*/locations/*/entryGroups/*/entries/*}:" - + "getIamPolicy:\001*\022\362\002\n\022TestIamPermissions\022(" - + ".google.iam.v1.TestIamPermissionsRequest" - + "\032).google.iam.v1.TestIamPermissionsRespo" - + "nse\"\206\002\202\323\344\223\002\377\001\"L/v1beta1/{resource=projec" - + "ts/*/locations/*/tagTemplates/*}:testIam" - + "Permissions:\001*ZP\"K/v1beta1/{resource=pro" - + "jects/*/locations/*/entryGroups/*}:testI" - + "amPermissions:\001*ZZ\"U/v1beta1/{resource=p" + + "lates/*/fields/*}:rename:\001*\022\242\002\n\037RenameTa" + + "gTemplateFieldEnumValue\022H.google.cloud.d" + + "atacatalog.v1beta1.RenameTagTemplateFiel" + + "dEnumValueRequest\0322.google.cloud.datacat" + + "alog.v1beta1.TagTemplateField\"\200\001\332A name," + + "new_enum_value_display_name\202\323\344\223\002W\"R/v1be" + + "ta1/{name=projects/*/locations/*/tagTemp" + + "lates/*/fields/*/enumValues/*}:rename:\001*" + + "\022\306\001\n\026DeleteTagTemplateField\022?.google.clo" + + "ud.datacatalog.v1beta1.DeleteTagTemplate" + + "FieldRequest\032\026.google.protobuf.Empty\"S\332A" + + "\nname,force\202\323\344\223\002@*>/v1beta1/{name=projec" + + "ts/*/locations/*/tagTemplates/*/fields/*" + + "}\022\215\002\n\tCreateTag\0222.google.cloud.datacatal" + + "og.v1beta1.CreateTagRequest\032%.google.clo" + + "ud.datacatalog.v1beta1.Tag\"\244\001\332A\nparent,t" + + "ag\202\323\344\223\002\220\001\"E/v1beta1/{parent=projects/*/l" + + "ocations/*/entryGroups/*/entries/*}/tags" + + ":\003tagZB\";/v1beta1/{parent=projects/*/loc" + + "ations/*/entryGroups/*}/tags:\003tag\022\240\002\n\tUp" + + "dateTag\0222.google.cloud.datacatalog.v1bet" + + "a1.UpdateTagRequest\032%.google.cloud.datac" + + "atalog.v1beta1.Tag\"\267\001\332A\003tag\332A\017tag,update" + + "_mask\202\323\344\223\002\230\0012I/v1beta1/{tag.name=project" + + "s/*/locations/*/entryGroups/*/entries/*/" + + "tags/*}:\003tagZF2?/v1beta1/{tag.name=proje" + + "cts/*/locations/*/entryGroups/*/tags/*}:" + + "\003tag\022\356\001\n\tDeleteTag\0222.google.cloud.dataca" + + "talog.v1beta1.DeleteTagRequest\032\026.google." + + "protobuf.Empty\"\224\001\332A\004name\202\323\344\223\002\206\001*E/v1beta" + + "1/{name=projects/*/locations/*/entryGrou" + + "ps/*/entries/*/tags/*}Z=*;/v1beta1/{name" + + "=projects/*/locations/*/entryGroups/*/ta" + + "gs/*}\022\212\002\n\010ListTags\0221.google.cloud.dataca" + + "talog.v1beta1.ListTagsRequest\0322.google.c" + + "loud.datacatalog.v1beta1.ListTagsRespons" + + "e\"\226\001\332A\006parent\202\323\344\223\002\206\001\022E/v1beta1/{parent=p" + "rojects/*/locations/*/entryGroups/*/entr" - + "ies/*}:testIamPermissions:\001*\032N\312A\032datacat" - + "alog.googleapis.com\322A.https://www.google" - + "apis.com/auth/cloud-platformB\243\003\n$com.goo" - + "gle.cloud.datacatalog.v1beta1P\001ZFcloud.g" - + "oogle.com/go/datacatalog/apiv1beta1/data" - + "catalogpb;datacatalogpb\370\001\001\252\002 Google.Clou" - + "d.DataCatalog.V1Beta1\312\002 Google\\Cloud\\Dat" - + "aCatalog\\V1beta1\352\002#Google::Cloud::DataCa" - + "talog::V1beta1\352A\300\001\n4datacatalog.googleap" - + "is.com/TagTemplateFieldEnumValue\022\207\001proje" - + "cts/{project}/locations/{location}/tagTe" - + "mplates/{tag_template}/fields/{tag_templ" - + "ate_field_id}/enumValues/{enum_value_dis" - + "play_name}b\006proto3" + + "ies/*}/tagsZ=\022;/v1beta1/{parent=projects" + + "/*/locations/*/entryGroups/*}/tags\022\374\001\n\014S" + + "etIamPolicy\022\".google.iam.v1.SetIamPolicy" + + "Request\032\025.google.iam.v1.Policy\"\260\001\332A\017reso" + + "urce,policy\202\323\344\223\002\227\001\"F/v1beta1/{resource=p" + + "rojects/*/locations/*/tagTemplates/*}:se" + + "tIamPolicy:\001*ZJ\"E/v1beta1/{resource=proj" + + "ects/*/locations/*/entryGroups/*}:setIam" + + "Policy:\001*\022\313\002\n\014GetIamPolicy\022\".google.iam." + + "v1.GetIamPolicyRequest\032\025.google.iam.v1.P" + + "olicy\"\377\001\332A\010resource\202\323\344\223\002\355\001\"F/v1beta1/{re" + + "source=projects/*/locations/*/tagTemplat" + + "es/*}:getIamPolicy:\001*ZJ\"E/v1beta1/{resou" + + "rce=projects/*/locations/*/entryGroups/*" + + "}:getIamPolicy:\001*ZT\"O/v1beta1/{resource=" + + "projects/*/locations/*/entryGroups/*/ent" + + "ries/*}:getIamPolicy:\001*\022\362\002\n\022TestIamPermi" + + "ssions\022(.google.iam.v1.TestIamPermission" + + "sRequest\032).google.iam.v1.TestIamPermissi" + + "onsResponse\"\206\002\202\323\344\223\002\377\001\"L/v1beta1/{resourc" + + "e=projects/*/locations/*/tagTemplates/*}" + + ":testIamPermissions:\001*ZP\"K/v1beta1/{reso" + + "urce=projects/*/locations/*/entryGroups/" + + "*}:testIamPermissions:\001*ZZ\"U/v1beta1/{re" + + "source=projects/*/locations/*/entryGroup" + + "s/*/entries/*}:testIamPermissions:\001*\032N\312A" + + "\032datacatalog.googleapis.com\322A.https://ww" + + "w.googleapis.com/auth/cloud-platformB\243\003\n" + + "$com.google.cloud.datacatalog.v1beta1P\001Z" + + "Fcloud.google.com/go/datacatalog/apiv1be" + + "ta1/datacatalogpb;datacatalogpb\370\001\001\252\002 Goo" + + "gle.Cloud.DataCatalog.V1Beta1\312\002 Google\\C" + + "loud\\DataCatalog\\V1beta1\352\002#Google::Cloud" + + "::DataCatalog::V1beta1\352A\300\001\n4datacatalog." + + "googleapis.com/TagTemplateFieldEnumValue" + + "\022\207\001projects/{project}/locations/{locatio" + + "n}/tagTemplates/{tag_template}/fields/{t" + + "ag_template_field_id}/enumValues/{enum_v" + + "alue_display_name}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java index e7b501ab1e25..0d3b30ff336f 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java @@ -234,8 +234,8 @@ public TypeSpecCase getTypeSpecCase() { * * *
        -   * Output only. The Data Catalog resource name of the entry in URL format.
        -   * Example:
        +   * Output only. Identifier. The Data Catalog resource name of the entry in URL
        +   * format. Example:
            *
            * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
            *
        @@ -244,7 +244,7 @@ public TypeSpecCase getTypeSpecCase() {
            * 
        * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -265,8 +265,8 @@ public java.lang.String getName() { * * *
        -   * Output only. The Data Catalog resource name of the entry in URL format.
        -   * Example:
        +   * Output only. Identifier. The Data Catalog resource name of the entry in URL
        +   * format. Example:
            *
            * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
            *
        @@ -275,7 +275,7 @@ public java.lang.String getName() {
            * 
        * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1968,8 +1968,8 @@ public Builder clearTypeSpec() { * * *
        -     * Output only. The Data Catalog resource name of the entry in URL format.
        -     * Example:
        +     * Output only. Identifier. The Data Catalog resource name of the entry in URL
        +     * format. Example:
              *
              * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
              *
        @@ -1978,7 +1978,7 @@ public Builder clearTypeSpec() {
              * 
        * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -1998,8 +1998,8 @@ public java.lang.String getName() { * * *
        -     * Output only. The Data Catalog resource name of the entry in URL format.
        -     * Example:
        +     * Output only. Identifier. The Data Catalog resource name of the entry in URL
        +     * format. Example:
              *
              * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
              *
        @@ -2008,7 +2008,7 @@ public java.lang.String getName() {
              * 
        * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -2028,8 +2028,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -     * Output only. The Data Catalog resource name of the entry in URL format.
        -     * Example:
        +     * Output only. Identifier. The Data Catalog resource name of the entry in URL
        +     * format. Example:
              *
              * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
              *
        @@ -2038,7 +2038,7 @@ public com.google.protobuf.ByteString getNameBytes() {
              * 
        * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The name to set. @@ -2057,8 +2057,8 @@ public Builder setName(java.lang.String value) { * * *
        -     * Output only. The Data Catalog resource name of the entry in URL format.
        -     * Example:
        +     * Output only. Identifier. The Data Catalog resource name of the entry in URL
        +     * format. Example:
              *
              * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
              *
        @@ -2067,7 +2067,7 @@ public Builder setName(java.lang.String value) {
              * 
        * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -2082,8 +2082,8 @@ public Builder clearName() { * * *
        -     * Output only. The Data Catalog resource name of the entry in URL format.
        -     * Example:
        +     * Output only. Identifier. The Data Catalog resource name of the entry in URL
        +     * format. Example:
              *
              * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
              *
        @@ -2092,7 +2092,7 @@ public Builder clearName() {
              * 
        * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for name to set. diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java index 503a0ba8a911..5b03a70b6206 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * The resource name of the entry group in URL format. Example:
        +   * Identifier. The resource name of the entry group in URL format. Example:
            *
            * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
            *
        @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            * stored in the location in this name.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -104,7 +104,7 @@ public java.lang.String getName() { * * *
        -   * The resource name of the entry group in URL format. Example:
        +   * Identifier. The resource name of the entry group in URL format. Example:
            *
            * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
            *
        @@ -112,7 +112,7 @@ public java.lang.String getName() {
            * stored in the location in this name.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -742,7 +742,7 @@ public Builder mergeFrom( * * *
        -     * The resource name of the entry group in URL format. Example:
        +     * Identifier. The resource name of the entry group in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
              *
        @@ -750,7 +750,7 @@ public Builder mergeFrom(
              * stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -769,7 +769,7 @@ public java.lang.String getName() { * * *
        -     * The resource name of the entry group in URL format. Example:
        +     * Identifier. The resource name of the entry group in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
              *
        @@ -777,7 +777,7 @@ public java.lang.String getName() {
              * stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -796,7 +796,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -     * The resource name of the entry group in URL format. Example:
        +     * Identifier. The resource name of the entry group in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
              *
        @@ -804,7 +804,7 @@ public com.google.protobuf.ByteString getNameBytes() {
              * stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -822,7 +822,7 @@ public Builder setName(java.lang.String value) { * * *
        -     * The resource name of the entry group in URL format. Example:
        +     * Identifier. The resource name of the entry group in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
              *
        @@ -830,7 +830,7 @@ public Builder setName(java.lang.String value) {
              * stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -844,7 +844,7 @@ public Builder clearName() { * * *
        -     * The resource name of the entry group in URL format. Example:
        +     * Identifier. The resource name of the entry group in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
              *
        @@ -852,7 +852,7 @@ public Builder clearName() {
              * stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java index cfd1304a9e89..0f0639336438 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java @@ -28,7 +28,7 @@ public interface EntryGroupOrBuilder * * *
        -   * The resource name of the entry group in URL format. Example:
        +   * Identifier. The resource name of the entry group in URL format. Example:
            *
            * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
            *
        @@ -36,7 +36,7 @@ public interface EntryGroupOrBuilder
            * stored in the location in this name.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,7 +45,7 @@ public interface EntryGroupOrBuilder * * *
        -   * The resource name of the entry group in URL format. Example:
        +   * Identifier. The resource name of the entry group in URL format. Example:
            *
            * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
            *
        @@ -53,7 +53,7 @@ public interface EntryGroupOrBuilder
            * stored in the location in this name.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java index ce60506f6ae5..5838a5d26038 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java @@ -28,8 +28,8 @@ public interface EntryOrBuilder * * *
        -   * Output only. The Data Catalog resource name of the entry in URL format.
        -   * Example:
        +   * Output only. Identifier. The Data Catalog resource name of the entry in URL
        +   * format. Example:
            *
            * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
            *
        @@ -38,7 +38,7 @@ public interface EntryOrBuilder
            * 
        * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -48,8 +48,8 @@ public interface EntryOrBuilder * * *
        -   * Output only. The Data Catalog resource name of the entry in URL format.
        -   * Example:
        +   * Output only. Identifier. The Data Catalog resource name of the entry in URL
        +   * format. Example:
            *
            * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
            *
        @@ -58,7 +58,7 @@ public interface EntryOrBuilder
            * 
        * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java index f299d01a0357..7124985d7004 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java @@ -136,7 +136,7 @@ public ScopeCase getScopeCase() { * * *
        -   * The resource name of the tag in URL format. Example:
        +   * Identifier. The resource name of the tag in URL format. Example:
            *
            * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
            *
        @@ -144,7 +144,7 @@ public ScopeCase getScopeCase() {
            * Note that this Tag may not actually be stored in the location in this name.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -164,7 +164,7 @@ public java.lang.String getName() { * * *
        -   * The resource name of the tag in URL format. Example:
        +   * Identifier. The resource name of the tag in URL format. Example:
            *
            * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
            *
        @@ -172,7 +172,7 @@ public java.lang.String getName() {
            * Note that this Tag may not actually be stored in the location in this name.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1041,7 +1041,7 @@ public Builder clearScope() { * * *
        -     * The resource name of the tag in URL format. Example:
        +     * Identifier. The resource name of the tag in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
              *
        @@ -1049,7 +1049,7 @@ public Builder clearScope() {
              * Note that this Tag may not actually be stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1068,7 +1068,7 @@ public java.lang.String getName() { * * *
        -     * The resource name of the tag in URL format. Example:
        +     * Identifier. The resource name of the tag in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
              *
        @@ -1076,7 +1076,7 @@ public java.lang.String getName() {
              * Note that this Tag may not actually be stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1095,7 +1095,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -     * The resource name of the tag in URL format. Example:
        +     * Identifier. The resource name of the tag in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
              *
        @@ -1103,7 +1103,7 @@ public com.google.protobuf.ByteString getNameBytes() {
              * Note that this Tag may not actually be stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1121,7 +1121,7 @@ public Builder setName(java.lang.String value) { * * *
        -     * The resource name of the tag in URL format. Example:
        +     * Identifier. The resource name of the tag in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
              *
        @@ -1129,7 +1129,7 @@ public Builder setName(java.lang.String value) {
              * Note that this Tag may not actually be stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1143,7 +1143,7 @@ public Builder clearName() { * * *
        -     * The resource name of the tag in URL format. Example:
        +     * Identifier. The resource name of the tag in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
              *
        @@ -1151,7 +1151,7 @@ public Builder clearName() {
              * Note that this Tag may not actually be stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagOrBuilder.java index a30fb356b6c3..1b0bf48b3f68 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagOrBuilder.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagOrBuilder.java @@ -28,7 +28,7 @@ public interface TagOrBuilder * * *
        -   * The resource name of the tag in URL format. Example:
        +   * Identifier. The resource name of the tag in URL format. Example:
            *
            * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
            *
        @@ -36,7 +36,7 @@ public interface TagOrBuilder
            * Note that this Tag may not actually be stored in the location in this name.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,7 +45,7 @@ public interface TagOrBuilder * * *
        -   * The resource name of the tag in URL format. Example:
        +   * Identifier. The resource name of the tag in URL format. Example:
            *
            * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
            *
        @@ -53,7 +53,7 @@ public interface TagOrBuilder
            * Note that this Tag may not actually be stored in the location in this name.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java index a529bc228cd9..8fbbb14a13a5 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java @@ -48,6 +48,7 @@ private TagTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { private TagTemplate() { name_ = ""; displayName_ = ""; + dataplexTransferStatus_ = 0; } @java.lang.Override @@ -83,6 +84,148 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder.class); } + /** + * + * + *
        +   * This enum describes TagTemplate transfer status to Dataplex service.
        +   * 
        + * + * Protobuf enum {@code google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus} + */ + public enum DataplexTransferStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * Default value. TagTemplate and its tags are only visible and editable in
        +     * DataCatalog.
        +     * 
        + * + * DATAPLEX_TRANSFER_STATUS_UNSPECIFIED = 0; + */ + DATAPLEX_TRANSFER_STATUS_UNSPECIFIED(0), + /** + * + * + *
        +     * TagTemplate and its tags are auto-copied to Dataplex service.
        +     * Visible in both services. Editable in DataCatalog, read-only in Dataplex.
        +     * 
        + * + * MIGRATED = 1; + */ + MIGRATED(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * Default value. TagTemplate and its tags are only visible and editable in
        +     * DataCatalog.
        +     * 
        + * + * DATAPLEX_TRANSFER_STATUS_UNSPECIFIED = 0; + */ + public static final int DATAPLEX_TRANSFER_STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +     * TagTemplate and its tags are auto-copied to Dataplex service.
        +     * Visible in both services. Editable in DataCatalog, read-only in Dataplex.
        +     * 
        + * + * MIGRATED = 1; + */ + public static final int MIGRATED_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataplexTransferStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DataplexTransferStatus forNumber(int value) { + switch (value) { + case 0: + return DATAPLEX_TRANSFER_STATUS_UNSPECIFIED; + case 1: + return MIGRATED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataplexTransferStatus findValueByNumber(int number) { + return DataplexTransferStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datacatalog.v1beta1.TagTemplate.getDescriptor().getEnumTypes().get(0); + } + + private static final DataplexTransferStatus[] VALUES = values(); + + public static DataplexTransferStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DataplexTransferStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus) + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -91,7 +234,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
        -   * The resource name of the tag template in URL format. Example:
        +   * Identifier. The resource name of the tag template in URL format. Example:
            *
            * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
            *
        @@ -99,7 +242,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
            * stored in the location in this name.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -119,7 +262,7 @@ public java.lang.String getName() { * * *
        -   * The resource name of the tag template in URL format. Example:
        +   * Identifier. The resource name of the tag template in URL format. Example:
            *
            * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
            *
        @@ -127,7 +270,7 @@ public java.lang.String getName() {
            * stored in the location in this name.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -346,6 +489,49 @@ public com.google.cloud.datacatalog.v1beta1.TagTemplateField getFieldsOrThrow( return map.get(key); } + public static final int DATAPLEX_TRANSFER_STATUS_FIELD_NUMBER = 7; + private int dataplexTransferStatus_ = 0; + /** + * + * + *
        +   * Output only. Transfer status of the TagTemplate
        +   * 
        + * + * + * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataplexTransferStatus. + */ + @java.lang.Override + public int getDataplexTransferStatusValue() { + return dataplexTransferStatus_; + } + /** + * + * + *
        +   * Output only. Transfer status of the TagTemplate
        +   * 
        + * + * + * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataplexTransferStatus. + */ + @java.lang.Override + public com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus + getDataplexTransferStatus() { + com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus result = + com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus.forNumber( + dataplexTransferStatus_); + return result == null + ? com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -368,6 +554,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 3); + if (dataplexTransferStatus_ + != com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus + .DATAPLEX_TRANSFER_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, dataplexTransferStatus_); + } getUnknownFields().writeTo(output); } @@ -396,6 +588,12 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fields__); } + if (dataplexTransferStatus_ + != com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus + .DATAPLEX_TRANSFER_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, dataplexTransferStatus_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -415,6 +613,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (!internalGetFields().equals(other.internalGetFields())) return false; + if (dataplexTransferStatus_ != other.dataplexTransferStatus_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -434,6 +633,8 @@ public int hashCode() { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + internalGetFields().hashCode(); } + hash = (37 * hash) + DATAPLEX_TRANSFER_STATUS_FIELD_NUMBER; + hash = (53 * hash) + dataplexTransferStatus_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -605,6 +806,7 @@ public Builder clear() { name_ = ""; displayName_ = ""; internalGetMutableFields().clear(); + dataplexTransferStatus_ = 0; return this; } @@ -650,6 +852,9 @@ private void buildPartial0(com.google.cloud.datacatalog.v1beta1.TagTemplate resu if (((from_bitField0_ & 0x00000004) != 0)) { result.fields_ = internalGetFields().build(FieldsDefaultEntryHolder.defaultEntry); } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dataplexTransferStatus_ = dataplexTransferStatus_; + } } @java.lang.Override @@ -710,6 +915,9 @@ public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.TagTemplate other) } internalGetMutableFields().mergeFrom(other.internalGetFields()); bitField0_ |= 0x00000004; + if (other.dataplexTransferStatus_ != 0) { + setDataplexTransferStatusValue(other.getDataplexTransferStatusValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -762,6 +970,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 56: + { + dataplexTransferStatus_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -786,7 +1000,7 @@ public Builder mergeFrom( * * *
        -     * The resource name of the tag template in URL format. Example:
        +     * Identifier. The resource name of the tag template in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
              *
        @@ -794,7 +1008,7 @@ public Builder mergeFrom(
              * stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -813,7 +1027,7 @@ public java.lang.String getName() { * * *
        -     * The resource name of the tag template in URL format. Example:
        +     * Identifier. The resource name of the tag template in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
              *
        @@ -821,7 +1035,7 @@ public java.lang.String getName() {
              * stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -840,7 +1054,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -     * The resource name of the tag template in URL format. Example:
        +     * Identifier. The resource name of the tag template in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
              *
        @@ -848,7 +1062,7 @@ public com.google.protobuf.ByteString getNameBytes() {
              * stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -866,7 +1080,7 @@ public Builder setName(java.lang.String value) { * * *
        -     * The resource name of the tag template in URL format. Example:
        +     * Identifier. The resource name of the tag template in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
              *
        @@ -874,7 +1088,7 @@ public Builder setName(java.lang.String value) {
              * stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -888,7 +1102,7 @@ public Builder clearName() { * * *
        -     * The resource name of the tag template in URL format. Example:
        +     * Identifier. The resource name of the tag template in URL format. Example:
              *
              * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
              *
        @@ -896,7 +1110,7 @@ public Builder clearName() {
              * stored in the location in this name.
              * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -1331,6 +1545,111 @@ public com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder putFieldsBu return (com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder) entry; } + private int dataplexTransferStatus_ = 0; + /** + * + * + *
        +     * Output only. Transfer status of the TagTemplate
        +     * 
        + * + * + * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataplexTransferStatus. + */ + @java.lang.Override + public int getDataplexTransferStatusValue() { + return dataplexTransferStatus_; + } + /** + * + * + *
        +     * Output only. Transfer status of the TagTemplate
        +     * 
        + * + * + * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for dataplexTransferStatus to set. + * @return This builder for chaining. + */ + public Builder setDataplexTransferStatusValue(int value) { + dataplexTransferStatus_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +     * Output only. Transfer status of the TagTemplate
        +     * 
        + * + * + * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataplexTransferStatus. + */ + @java.lang.Override + public com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus + getDataplexTransferStatus() { + com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus result = + com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus.forNumber( + dataplexTransferStatus_); + return result == null + ? com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
        +     * Output only. Transfer status of the TagTemplate
        +     * 
        + * + * + * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The dataplexTransferStatus to set. + * @return This builder for chaining. + */ + public Builder setDataplexTransferStatus( + com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + dataplexTransferStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +     * Output only. Transfer status of the TagTemplate
        +     * 
        + * + * + * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDataplexTransferStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + dataplexTransferStatus_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java index 70b839752f51..c8507d0591e0 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java @@ -74,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Output only. The resource name of the tag template field in URL format.
        -   * Example:
        +   * Output only. Identifier. The resource name of the tag template field in URL
        +   * format. Example:
            *
            * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
            *
        @@ -83,7 +83,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            * in this name.
            * 
        * - * string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -103,8 +105,8 @@ public java.lang.String getName() { * * *
        -   * Output only. The resource name of the tag template field in URL format.
        -   * Example:
        +   * Output only. Identifier. The resource name of the tag template field in URL
        +   * format. Example:
            *
            * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
            *
        @@ -112,7 +114,9 @@ public java.lang.String getName() {
            * in this name.
            * 
        * - * string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -809,8 +813,8 @@ public Builder mergeFrom( * * *
        -     * Output only. The resource name of the tag template field in URL format.
        -     * Example:
        +     * Output only. Identifier. The resource name of the tag template field in URL
        +     * format. Example:
              *
              * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
              *
        @@ -818,7 +822,9 @@ public Builder mergeFrom(
              * in this name.
              * 
        * - * string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -837,8 +843,8 @@ public java.lang.String getName() { * * *
        -     * Output only. The resource name of the tag template field in URL format.
        -     * Example:
        +     * Output only. Identifier. The resource name of the tag template field in URL
        +     * format. Example:
              *
              * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
              *
        @@ -846,7 +852,9 @@ public java.lang.String getName() {
              * in this name.
              * 
        * - * string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -865,8 +873,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -     * Output only. The resource name of the tag template field in URL format.
        -     * Example:
        +     * Output only. Identifier. The resource name of the tag template field in URL
        +     * format. Example:
              *
              * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
              *
        @@ -874,7 +882,9 @@ public com.google.protobuf.ByteString getNameBytes() {
              * in this name.
              * 
        * - * string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The name to set. * @return This builder for chaining. @@ -892,8 +902,8 @@ public Builder setName(java.lang.String value) { * * *
        -     * Output only. The resource name of the tag template field in URL format.
        -     * Example:
        +     * Output only. Identifier. The resource name of the tag template field in URL
        +     * format. Example:
              *
              * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
              *
        @@ -901,7 +911,9 @@ public Builder setName(java.lang.String value) {
              * in this name.
              * 
        * - * string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -915,8 +927,8 @@ public Builder clearName() { * * *
        -     * Output only. The resource name of the tag template field in URL format.
        -     * Example:
        +     * Output only. Identifier. The resource name of the tag template field in URL
        +     * format. Example:
              *
              * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
              *
        @@ -924,7 +936,9 @@ public Builder clearName() {
              * in this name.
              * 
        * - * string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldOrBuilder.java index 511f9527a56a..bd949b4ff885 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldOrBuilder.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldOrBuilder.java @@ -28,8 +28,8 @@ public interface TagTemplateFieldOrBuilder * * *
        -   * Output only. The resource name of the tag template field in URL format.
        -   * Example:
        +   * Output only. Identifier. The resource name of the tag template field in URL
        +   * format. Example:
            *
            * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
            *
        @@ -37,7 +37,9 @@ public interface TagTemplateFieldOrBuilder
            * in this name.
            * 
        * - * string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -46,8 +48,8 @@ public interface TagTemplateFieldOrBuilder * * *
        -   * Output only. The resource name of the tag template field in URL format.
        -   * Example:
        +   * Output only. Identifier. The resource name of the tag template field in URL
        +   * format. Example:
            *
            * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
            *
        @@ -55,7 +57,9 @@ public interface TagTemplateFieldOrBuilder
            * in this name.
            * 
        * - * string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateOrBuilder.java index 0dba88a880ab..f80cf0c3bdf6 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateOrBuilder.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateOrBuilder.java @@ -28,7 +28,7 @@ public interface TagTemplateOrBuilder * * *
        -   * The resource name of the tag template in URL format. Example:
        +   * Identifier. The resource name of the tag template in URL format. Example:
            *
            * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
            *
        @@ -36,7 +36,7 @@ public interface TagTemplateOrBuilder
            * stored in the location in this name.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,7 +45,7 @@ public interface TagTemplateOrBuilder * * *
        -   * The resource name of the tag template in URL format. Example:
        +   * Identifier. The resource name of the tag template in URL format. Example:
            *
            * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
            *
        @@ -53,7 +53,7 @@ public interface TagTemplateOrBuilder
            * stored in the location in this name.
            * 
        * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -188,4 +188,34 @@ com.google.cloud.datacatalog.v1beta1.TagTemplateField getFieldsOrDefault( * */ com.google.cloud.datacatalog.v1beta1.TagTemplateField getFieldsOrThrow(java.lang.String key); + + /** + * + * + *
        +   * Output only. Transfer status of the TagTemplate
        +   * 
        + * + * + * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataplexTransferStatus. + */ + int getDataplexTransferStatusValue(); + /** + * + * + *
        +   * Output only. Transfer status of the TagTemplate
        +   * 
        + * + * + * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataplexTransferStatus. + */ + com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus + getDataplexTransferStatus(); } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tags.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tags.java index 6fc8f3a161da..37234f48aade 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tags.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tags.java @@ -81,58 +81,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\022 google.cloud.datacatalog.v1beta1\032" + "\037google/api/field_behavior.proto\032\031google" + "/api/resource.proto\032\037google/protobuf/tim" - + "estamp.proto\"\220\003\n\003Tag\022\014\n\004name\030\001 \001(\t\022\025\n\010te" - + "mplate\030\002 \001(\tB\003\340A\002\022\"\n\025template_display_na" - + "me\030\005 \001(\tB\003\340A\003\022\020\n\006column\030\004 \001(\tH\000\022F\n\006field" - + "s\030\003 \003(\01321.google.cloud.datacatalog.v1bet" - + "a1.Tag.FieldsEntryB\003\340A\002\032Y\n\013FieldsEntry\022\013" - + "\n\003key\030\001 \001(\t\0229\n\005value\030\002 \001(\0132*.google.clou" - + "d.datacatalog.v1beta1.TagField:\0028\001:\201\001\352A~" - + "\n\036datacatalog.googleapis.com/Tag\022\\projec" - + "ts/{project}/locations/{location}/entryG" - + "roups/{entry_group}/entries/{entry}/tags" - + "/{tag}B\007\n\005scope\"\255\002\n\010TagField\022\031\n\014display_" - + "name\030\001 \001(\tB\003\340A\003\022\026\n\014double_value\030\002 \001(\001H\000\022" - + "\026\n\014string_value\030\003 \001(\tH\000\022\024\n\nbool_value\030\004 " - + "\001(\010H\000\0225\n\017timestamp_value\030\005 \001(\0132\032.google." - + "protobuf.TimestampH\000\022J\n\nenum_value\030\006 \001(\013" - + "24.google.cloud.datacatalog.v1beta1.TagF" - + "ield.EnumValueH\000\022\022\n\005order\030\007 \001(\005B\003\340A\003\032!\n\t" - + "EnumValue\022\024\n\014display_name\030\001 \001(\tB\006\n\004kind\"" - + "\326\002\n\013TagTemplate\022\014\n\004name\030\001 \001(\t\022\024\n\014display" - + "_name\030\002 \001(\t\022N\n\006fields\030\003 \003(\01329.google.clo" - + "ud.datacatalog.v1beta1.TagTemplate.Field" - + "sEntryB\003\340A\002\032a\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\022" - + "A\n\005value\030\002 \001(\01322.google.cloud.datacatalo" - + "g.v1beta1.TagTemplateField:\0028\001:p\352Am\n&dat" - + "acatalog.googleapis.com/TagTemplate\022Cpro" - + "jects/{project}/locations/{location}/tag" - + "Templates/{tag_template}\"\274\002\n\020TagTemplate" - + "Field\022\021\n\004name\030\006 \001(\tB\003\340A\003\022\024\n\014display_name" - + "\030\001 \001(\t\022>\n\004type\030\002 \001(\0132+.google.cloud.data" - + "catalog.v1beta1.FieldTypeB\003\340A\002\022\023\n\013is_req" - + "uired\030\003 \001(\010\022\023\n\013description\030\004 \001(\t\022\r\n\005orde" - + "r\030\005 \001(\005:\205\001\352A\201\001\n+datacatalog.googleapis.c" - + "om/TagTemplateField\022Rprojects/{project}/" - + "locations/{location}/tagTemplates/{tag_t" - + "emplate}/fields/{field}\"\247\003\n\tFieldType\022S\n" - + "\016primitive_type\030\001 \001(\01629.google.cloud.dat" - + "acatalog.v1beta1.FieldType.PrimitiveType" - + "H\000\022I\n\tenum_type\030\002 \001(\01324.google.cloud.dat" - + "acatalog.v1beta1.FieldType.EnumTypeH\000\032\212\001" - + "\n\010EnumType\022V\n\016allowed_values\030\001 \003(\0132>.goo" - + "gle.cloud.datacatalog.v1beta1.FieldType." - + "EnumType.EnumValue\032&\n\tEnumValue\022\031\n\014displ" - + "ay_name\030\001 \001(\tB\003\340A\002\"`\n\rPrimitiveType\022\036\n\032P" - + "RIMITIVE_TYPE_UNSPECIFIED\020\000\022\n\n\006DOUBLE\020\001\022" - + "\n\n\006STRING\020\002\022\010\n\004BOOL\020\003\022\r\n\tTIMESTAMP\020\004B\013\n\t" - + "type_declB\337\001\n$com.google.cloud.datacatal" - + "og.v1beta1P\001ZFcloud.google.com/go/dataca" - + "talog/apiv1beta1/datacatalogpb;datacatal" - + "ogpb\370\001\001\252\002 Google.Cloud.DataCatalog.V1Bet" - + "a1\312\002 Google\\Cloud\\DataCatalog\\V1beta1\352\002#" - + "Google::Cloud::DataCatalog::V1beta1b\006pro" - + "to3" + + "estamp.proto\"\225\003\n\003Tag\022\021\n\004name\030\001 \001(\tB\003\340A\010\022" + + "\025\n\010template\030\002 \001(\tB\003\340A\002\022\"\n\025template_displ" + + "ay_name\030\005 \001(\tB\003\340A\003\022\020\n\006column\030\004 \001(\tH\000\022F\n\006" + + "fields\030\003 \003(\01321.google.cloud.datacatalog." + + "v1beta1.Tag.FieldsEntryB\003\340A\002\032Y\n\013FieldsEn" + + "try\022\013\n\003key\030\001 \001(\t\0229\n\005value\030\002 \001(\0132*.google" + + ".cloud.datacatalog.v1beta1.TagField:\0028\001:" + + "\201\001\352A~\n\036datacatalog.googleapis.com/Tag\022\\p" + + "rojects/{project}/locations/{location}/e" + + "ntryGroups/{entry_group}/entries/{entry}" + + "/tags/{tag}B\007\n\005scope\"\255\002\n\010TagField\022\031\n\014dis" + + "play_name\030\001 \001(\tB\003\340A\003\022\026\n\014double_value\030\002 \001" + + "(\001H\000\022\026\n\014string_value\030\003 \001(\tH\000\022\024\n\nbool_val" + + "ue\030\004 \001(\010H\000\0225\n\017timestamp_value\030\005 \001(\0132\032.go" + + "ogle.protobuf.TimestampH\000\022J\n\nenum_value\030" + + "\006 \001(\01324.google.cloud.datacatalog.v1beta1" + + ".TagField.EnumValueH\000\022\022\n\005order\030\007 \001(\005B\003\340A" + + "\003\032!\n\tEnumValue\022\024\n\014display_name\030\001 \001(\tB\006\n\004" + + "kind\"\232\004\n\013TagTemplate\022\021\n\004name\030\001 \001(\tB\003\340A\010\022" + + "\024\n\014display_name\030\002 \001(\t\022N\n\006fields\030\003 \003(\01329." + + "google.cloud.datacatalog.v1beta1.TagTemp" + + "late.FieldsEntryB\003\340A\002\022k\n\030dataplex_transf" + + "er_status\030\007 \001(\0162D.google.cloud.datacatal" + + "og.v1beta1.TagTemplate.DataplexTransferS" + + "tatusB\003\340A\003\032a\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\022A" + + "\n\005value\030\002 \001(\01322.google.cloud.datacatalog" + + ".v1beta1.TagTemplateField:\0028\001\"P\n\026Dataple" + + "xTransferStatus\022(\n$DATAPLEX_TRANSFER_STA" + + "TUS_UNSPECIFIED\020\000\022\014\n\010MIGRATED\020\001:p\352Am\n&da" + + "tacatalog.googleapis.com/TagTemplate\022Cpr" + + "ojects/{project}/locations/{location}/ta" + + "gTemplates/{tag_template}\"\277\002\n\020TagTemplat" + + "eField\022\024\n\004name\030\006 \001(\tB\006\340A\010\340A\003\022\024\n\014display_" + + "name\030\001 \001(\t\022>\n\004type\030\002 \001(\0132+.google.cloud." + + "datacatalog.v1beta1.FieldTypeB\003\340A\002\022\023\n\013is" + + "_required\030\003 \001(\010\022\023\n\013description\030\004 \001(\t\022\r\n\005" + + "order\030\005 \001(\005:\205\001\352A\201\001\n+datacatalog.googleap" + + "is.com/TagTemplateField\022Rprojects/{proje" + + "ct}/locations/{location}/tagTemplates/{t" + + "ag_template}/fields/{field}\"\247\003\n\tFieldTyp" + + "e\022S\n\016primitive_type\030\001 \001(\01629.google.cloud" + + ".datacatalog.v1beta1.FieldType.Primitive" + + "TypeH\000\022I\n\tenum_type\030\002 \001(\01324.google.cloud" + + ".datacatalog.v1beta1.FieldType.EnumTypeH" + + "\000\032\212\001\n\010EnumType\022V\n\016allowed_values\030\001 \003(\0132>" + + ".google.cloud.datacatalog.v1beta1.FieldT" + + "ype.EnumType.EnumValue\032&\n\tEnumValue\022\031\n\014d" + + "isplay_name\030\001 \001(\tB\003\340A\002\"`\n\rPrimitiveType\022" + + "\036\n\032PRIMITIVE_TYPE_UNSPECIFIED\020\000\022\n\n\006DOUBL" + + "E\020\001\022\n\n\006STRING\020\002\022\010\n\004BOOL\020\003\022\r\n\tTIMESTAMP\020\004" + + "B\013\n\ttype_declB\337\001\n$com.google.cloud.datac" + + "atalog.v1beta1P\001ZFcloud.google.com/go/da" + + "tacatalog/apiv1beta1/datacatalogpb;datac" + + "atalogpb\370\001\001\252\002 Google.Cloud.DataCatalog.V" + + "1Beta1\312\002 Google\\Cloud\\DataCatalog\\V1beta" + + "1\352\002#Google::Cloud::DataCatalog::V1beta1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -189,7 +194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor, new java.lang.String[] { - "Name", "DisplayName", "Fields", + "Name", "DisplayName", "Fields", "DataplexTransferStatus", }); internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_FieldsEntry_descriptor = internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/datacatalog.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/datacatalog.proto index 88c213198b3a..17916f51e072 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/datacatalog.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/datacatalog.proto @@ -835,8 +835,8 @@ message Entry { pattern: "projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}" }; - // Output only. The Data Catalog resource name of the entry in URL format. - // Example: + // Output only. Identifier. The Data Catalog resource name of the entry in URL + // format. Example: // // * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} // @@ -844,6 +844,7 @@ message Entry { // the location in this name. string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "datacatalog.googleapis.com/EntryGroup" } @@ -945,13 +946,13 @@ message EntryGroup { pattern: "projects/{project}/locations/{location}/entryGroups/{entry_group}" }; - // The resource name of the entry group in URL format. Example: + // Identifier. The resource name of the entry group in URL format. Example: // // * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} // // Note that this EntryGroup and its child resources may not actually be // stored in the location in this name. - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // A short name to identify the entry group, for example, // "analytics data - jan 2011". Default value is an empty string. diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/tags.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/tags.proto index 95a234ffeb50..4516567d5008 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/tags.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/tags.proto @@ -40,13 +40,13 @@ message Tag { pattern: "projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}" }; - // The resource name of the tag in URL format. Example: + // Identifier. The resource name of the tag in URL format. Example: // // * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} // // where `tag_id` is a system-generated identifier. // Note that this Tag may not actually be stored in the location in this name. - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. The resource name of the tag template that this tag uses. // Example: @@ -134,13 +134,24 @@ message TagTemplate { pattern: "projects/{project}/locations/{location}/tagTemplates/{tag_template}" }; - // The resource name of the tag template in URL format. Example: + // This enum describes TagTemplate transfer status to Dataplex service. + enum DataplexTransferStatus { + // Default value. TagTemplate and its tags are only visible and editable in + // DataCatalog. + DATAPLEX_TRANSFER_STATUS_UNSPECIFIED = 0; + + // TagTemplate and its tags are auto-copied to Dataplex service. + // Visible in both services. Editable in DataCatalog, read-only in Dataplex. + MIGRATED = 1; + } + + // Identifier. The resource name of the tag template in URL format. Example: // // * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} // // Note that this TagTemplate and its child resources may not actually be // stored in the location in this name. - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // The display name for this template. Defaults to an empty string. string display_name = 2; @@ -155,6 +166,10 @@ message TagTemplate { // 64 characters long. Field IDs must start with a letter or underscore. map fields = 3 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Transfer status of the TagTemplate + DataplexTransferStatus dataplex_transfer_status = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The template for an individual field within a tag template. @@ -164,14 +179,17 @@ message TagTemplateField { pattern: "projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}" }; - // Output only. The resource name of the tag template field in URL format. - // Example: + // Output only. Identifier. The resource name of the tag template field in URL + // format. Example: // // * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field} // // Note that this TagTemplateField may not actually be stored in the location // in this name. - string name = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 6 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // The display name for this field. Defaults to an empty string. string display_name = 1; diff --git a/java-dataflow/README.md b/java-dataflow/README.md index 73f68765115a..435f7ce589b5 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/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.cloud/google-cloud-dataflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.50.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-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/FlexTemplatesServiceStubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/FlexTemplatesServiceStubSettings.java index b0c6f754ba63..bf1a2ea71b1a 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/FlexTemplatesServiceStubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/FlexTemplatesServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -132,6 +133,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataflow.googleapis.com:443"; } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/JobsV1Beta3StubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/JobsV1Beta3StubSettings.java index f8872ec1039e..1ae0ce4cbb5f 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/JobsV1Beta3StubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/JobsV1Beta3StubSettings.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; @@ -296,6 +297,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataflow.googleapis.com:443"; } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MessagesV1Beta3StubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MessagesV1Beta3StubSettings.java index e79a2233445d..202c22dee3e6 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MessagesV1Beta3StubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MessagesV1Beta3StubSettings.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; @@ -199,6 +200,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataflow.googleapis.com:443"; } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MetricsV1Beta3StubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MetricsV1Beta3StubSettings.java index ecac39bf3a9f..1ef667043d4b 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MetricsV1Beta3StubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MetricsV1Beta3StubSettings.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; @@ -299,6 +300,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataflow.googleapis.com:443"; } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/SnapshotsV1Beta3StubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/SnapshotsV1Beta3StubSettings.java index 706f98936d6e..8727281a403f 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/SnapshotsV1Beta3StubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/SnapshotsV1Beta3StubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -147,6 +148,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataflow.googleapis.com:443"; } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/TemplatesServiceStubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/TemplatesServiceStubSettings.java index c3a9e7d66d92..ba21f4146674 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/TemplatesServiceStubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/TemplatesServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -146,6 +147,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataflow.googleapis.com:443"; } diff --git a/java-dataform/README.md b/java-dataform/README.md index fdef9cf9c525..c3efa774203b 100644 --- a/java-dataform/README.md +++ b/java-dataform/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.cloud/google-cloud-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.45.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-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/DataformStubSettings.java index 176fb6a2003d..71002a9dc53c 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/DataformStubSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/DataformStubSettings.java @@ -28,6 +28,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; @@ -1067,6 +1068,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataform.googleapis.com:443"; } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java index 35f4c637cc04..a69598c69163 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java @@ -32,6 +32,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; @@ -1493,6 +1494,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataform.googleapis.com:443"; } diff --git a/java-datalabeling/README.md b/java-datalabeling/README.md index 7b815ce7092a..fd9fab17273f 100644 --- a/java-datalabeling/README.md +++ b/java-datalabeling/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.cloud/google-cloud-datalabeling.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.165.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.166.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-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java b/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java index 29f647968719..890585e604a5 100644 --- a/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java +++ b/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.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; @@ -1055,6 +1056,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "datalabeling.googleapis.com:443"; } diff --git a/java-datalineage/README.md b/java-datalineage/README.md index 9fbc4174222d..623b171578d4 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/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-datalineage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.38.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-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/LineageStubSettings.java b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/LineageStubSettings.java index afd48db0ba2d..dd3309d10be7 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/LineageStubSettings.java +++ b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/LineageStubSettings.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; @@ -594,6 +595,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "datalineage.googleapis.com:443"; } diff --git a/java-dataplex/README.md b/java-dataplex/README.md index 83b8466a3195..990ede63bd67 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/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-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java index 883434dd3e22..d50588ed1442 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.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; @@ -736,6 +737,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataplex.googleapis.com:443"; } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/ContentServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/ContentServiceStubSettings.java index e7e673586e3e..bd90bfee6667 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/ContentServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/ContentServiceStubSettings.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; @@ -315,6 +316,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataplex.googleapis.com:443"; } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java index 0333f5299aab..88c5049c428a 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.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; @@ -419,6 +420,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataplex.googleapis.com:443"; } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java index 52bdf886e373..e715224fb117 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.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; @@ -618,6 +619,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataplex.googleapis.com:443"; } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java index d00089a833e1..e93182b71efc 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java @@ -31,6 +31,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; @@ -1151,6 +1152,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataplex.googleapis.com:443"; } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java index 55713235ac0a..688ba9bfeca2 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.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; @@ -380,6 +381,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataplex.googleapis.com:443"; } diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index dce9ed7abd6e..4e34b19ce072 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/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-dataproc-metastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/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-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreFederationStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreFederationStubSettings.java index 9e6176bb6bbe..7aab62112b6b 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreFederationStubSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreFederationStubSettings.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; @@ -352,6 +353,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "metastore.googleapis.com:443"; } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStubSettings.java index bc64aabdfedc..89a7899bcec4 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStubSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStubSettings.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; @@ -658,6 +659,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "metastore.googleapis.com:443"; } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreFederationStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreFederationStubSettings.java index a73fe81aa1cd..62ff3e8d9762 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreFederationStubSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreFederationStubSettings.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 "metastore.googleapis.com:443"; } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStubSettings.java index fdd378dfe3b8..16e7217e252a 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStubSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStubSettings.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; @@ -669,6 +670,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "metastore.googleapis.com:443"; } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreFederationStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreFederationStubSettings.java index f5cb912dfd4a..793e93da5b93 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreFederationStubSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreFederationStubSettings.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 "metastore.googleapis.com:443"; } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStubSettings.java index 616385a03212..caa2dcfec15b 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStubSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStubSettings.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; @@ -669,6 +670,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "metastore.googleapis.com:443"; } diff --git a/java-dataproc/README.md b/java-dataproc/README.md index fa93905dccdd..4debea083a71 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/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-dataproc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.43.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-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java index dff2827ee340..10daf77f21f9 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.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; @@ -277,6 +278,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java index 46aff625e697..fb0898b3172d 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.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; @@ -249,6 +250,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java index 66123d5f969b..23232c9eed0b 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.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; @@ -322,6 +323,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java index eb131cbde645..c83fca299291 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.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; @@ -268,6 +269,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStubSettings.java index b82ef4a06875..2bd53d5a967b 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -185,6 +186,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionControllerStubSettings.java index 08c05a0f5057..b96dd64059a3 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionControllerStubSettings.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; @@ -273,6 +274,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionTemplateControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionTemplateControllerStubSettings.java index 605f233eac03..0c8841338d72 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionTemplateControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionTemplateControllerStubSettings.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; @@ -268,6 +269,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java index d62cff36afb6..e07696f083a4 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.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; @@ -310,6 +311,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } diff --git a/java-datastream/README.md b/java-datastream/README.md index 9a08c6a7dbbe..2c4c0f25931c 100644 --- a/java-datastream/README.md +++ b/java-datastream/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-datastream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.45.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-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java index ee380a41ad85..ed98820ea759 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.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; @@ -891,6 +892,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "datastream.googleapis.com:443"; } diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java index 53832a480c88..840bfb352e12 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.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; @@ -725,6 +726,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "datastream.googleapis.com:443"; } diff --git a/java-debugger-client/README.md b/java-debugger-client/README.md index 463c235a23a9..a23da640afec 100644 --- a/java-debugger-client/README.md +++ b/java-debugger-client/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-debugger-client.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-debugger-client/1.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-debugger-client/1.46.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-debugger-client/google-cloud-debugger-client/src/main/java/com/google/cloud/debugger/v2/stub/Controller2StubSettings.java b/java-debugger-client/google-cloud-debugger-client/src/main/java/com/google/cloud/debugger/v2/stub/Controller2StubSettings.java index 6b157d2e8dd0..66a903b45209 100644 --- a/java-debugger-client/google-cloud-debugger-client/src/main/java/com/google/cloud/debugger/v2/stub/Controller2StubSettings.java +++ b/java-debugger-client/google-cloud-debugger-client/src/main/java/com/google/cloud/debugger/v2/stub/Controller2StubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -148,6 +149,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "clouddebugger.googleapis.com:443"; } diff --git a/java-debugger-client/google-cloud-debugger-client/src/main/java/com/google/cloud/debugger/v2/stub/Debugger2StubSettings.java b/java-debugger-client/google-cloud-debugger-client/src/main/java/com/google/cloud/debugger/v2/stub/Debugger2StubSettings.java index 4aebd234b710..a77628349d7e 100644 --- a/java-debugger-client/google-cloud-debugger-client/src/main/java/com/google/cloud/debugger/v2/stub/Debugger2StubSettings.java +++ b/java-debugger-client/google-cloud-debugger-client/src/main/java/com/google/cloud/debugger/v2/stub/Debugger2StubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -162,6 +163,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "clouddebugger.googleapis.com:443"; } diff --git a/java-deploy/README.md b/java-deploy/README.md index 6f46485d532a..f19028de2f5a 100644 --- a/java-deploy/README.md +++ b/java-deploy/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-deploy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.44.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-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java index 3860e0496453..2f1f505ef030 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java @@ -1379,8 +1379,8 @@ public final DeliveryPipeline getDeliveryPipeline(GetDeliveryPipelineRequest req * } * } * - * @param parent Required. The parent collection in which the `DeliveryPipeline` should be - * created. Format should be `projects/{project_id}/locations/{location_name}`. + * @param parent Required. The parent collection in which the `DeliveryPipeline` must be created. + * The format is `projects/{project_id}/locations/{location_name}`. * @param deliveryPipeline Required. The `DeliveryPipeline` to create. * @param deliveryPipelineId Required. ID of the `DeliveryPipeline`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1419,8 +1419,8 @@ public final OperationFuture createDelivery * } * } * - * @param parent Required. The parent collection in which the `DeliveryPipeline` should be - * created. Format should be `projects/{project_id}/locations/{location_name}`. + * @param parent Required. The parent collection in which the `DeliveryPipeline` must be created. + * The format is `projects/{project_id}/locations/{location_name}`. * @param deliveryPipeline Required. The `DeliveryPipeline` to create. * @param deliveryPipelineId Required. ID of the `DeliveryPipeline`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1556,8 +1556,8 @@ public final OperationFuture createDelivery * } * * @param deliveryPipeline Required. The `DeliveryPipeline` to update. - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * `DeliveryPipeline` resource by the update. The fields specified in the update_mask are + * @param updateMask Required. Field mask is used to specify the fields to be overwritten by the + * update in the `DeliveryPipeline` resource. The fields specified in the update_mask are * relative to the resource, not the full request. A field will be overwritten if it's in the * mask. If the user doesn't provide a mask then all fields are overwritten. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1690,7 +1690,7 @@ public final OperationFuture updateDelivery * } * } * - * @param name Required. The name of the `DeliveryPipeline` to delete. Format should be + * @param name Required. The name of the `DeliveryPipeline` to delete. The format is * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1722,7 +1722,7 @@ public final OperationFuture deleteDeliveryPipelineAsy * } * } * - * @param name Required. The name of the `DeliveryPipeline` to delete. Format should be + * @param name Required. The name of the `DeliveryPipeline` to delete. The format is * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2030,8 +2030,8 @@ public final UnaryCallable listTargetsC * } * } * - * @param name Required. The `DeliveryPipeline` for which the rollback `Rollout` should be - * created. Format should be + * @param name Required. The `DeliveryPipeline` for which the rollback `Rollout` must be created. + * The format is * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. * @param targetId Required. ID of the `Target` that is being rolled back. * @param rolloutId Required. ID of the rollback `Rollout` to create. @@ -2069,8 +2069,8 @@ public final RollbackTargetResponse rollbackTarget( * } * } * - * @param name Required. The `DeliveryPipeline` for which the rollback `Rollout` should be - * created. Format should be + * @param name Required. The `DeliveryPipeline` for which the rollback `Rollout` must be created. + * The format is * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. * @param targetId Required. ID of the `Target` that is being rolled back. * @param rolloutId Required. ID of the rollback `Rollout` to create. @@ -2290,8 +2290,8 @@ public final UnaryCallable getTargetCallable() { * } * } * - * @param parent Required. The parent collection in which the `Target` should be created. Format - * should be `projects/{project_id}/locations/{location_name}`. + * @param parent Required. The parent collection in which the `Target` must be created. The format + * is `projects/{project_id}/locations/{location_name}`. * @param target Required. The `Target` to create. * @param targetId Required. ID of the `Target`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2327,8 +2327,8 @@ public final OperationFuture createTargetAsync( * } * } * - * @param parent Required. The parent collection in which the `Target` should be created. Format - * should be `projects/{project_id}/locations/{location_name}`. + * @param parent Required. The parent collection in which the `Target` must be created. The format + * is `projects/{project_id}/locations/{location_name}`. * @param target Required. The `Target` to create. * @param targetId Required. ID of the `Target`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2461,9 +2461,9 @@ public final UnaryCallable createTargetCallable( * } * * @param target Required. The `Target` to update. - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * Target resource by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. A field will be overwritten if it's in the mask. If the + * @param updateMask Required. Field mask is used to specify the fields to be overwritten by the + * update in the `Target` resource. The fields specified in the update_mask are relative to + * the resource, not the full request. A field will be overwritten if it's in the mask. If the * user doesn't provide a mask then all fields are overwritten. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2589,7 +2589,7 @@ public final UnaryCallable updateTargetCallable( * } * } * - * @param name Required. The name of the `Target` to delete. Format should be + * @param name Required. The name of the `Target` to delete. The format is * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2617,7 +2617,7 @@ public final OperationFuture deleteTargetAsync(TargetN * } * } * - * @param name Required. The name of the `Target` to delete. Format should be + * @param name Required. The name of the `Target` to delete. The format is * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -3044,8 +3044,8 @@ public final CustomTargetType getCustomTargetType(GetCustomTargetTypeRequest req * } * } * - * @param parent Required. The parent collection in which the `CustomTargetType` should be - * created. Format should be `projects/{project_id}/locations/{location_name}`. + * @param parent Required. The parent collection in which the `CustomTargetType` must be created. + * The format is `projects/{project_id}/locations/{location_name}`. * @param customTargetType Required. The `CustomTargetType` to create. * @param customTargetTypeId Required. ID of the `CustomTargetType`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -3084,8 +3084,8 @@ public final OperationFuture createCustomTa * } * } * - * @param parent Required. The parent collection in which the `CustomTargetType` should be - * created. Format should be `projects/{project_id}/locations/{location_name}`. + * @param parent Required. The parent collection in which the `CustomTargetType` must be created. + * The format is `projects/{project_id}/locations/{location_name}`. * @param customTargetType Required. The `CustomTargetType` to create. * @param customTargetTypeId Required. ID of the `CustomTargetType`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -3221,8 +3221,8 @@ public final OperationFuture createCustomTa * } * * @param customTargetType Required. The `CustomTargetType` to update. - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * `CustomTargetType` resource by the update. The fields specified in the update_mask are + * @param updateMask Required. Field mask is used to specify the fields to be overwritten by the + * update in the `CustomTargetType` resource. The fields specified in the update_mask are * relative to the resource, not the full request. A field will be overwritten if it's in the * mask. If the user doesn't provide a mask then all fields are overwritten. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -3814,8 +3814,7 @@ public final UnaryCallable getReleaseCallable() { * } * } * - * @param parent Required. The parent collection in which the `Release` should be created. Format - * should be + * @param parent Required. The parent collection in which the `Release` is created. The format is * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. * @param release Required. The `Release` to create. * @param releaseId Required. ID of the `Release`. @@ -3853,8 +3852,7 @@ public final OperationFuture createReleaseAsync( * } * } * - * @param parent Required. The parent collection in which the `Release` should be created. Format - * should be + * @param parent Required. The parent collection in which the `Release` is created. The format is * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. * @param release Required. The `Release` to create. * @param releaseId Required. ID of the `Release`. @@ -4817,8 +4815,8 @@ public final UnaryCallable getRolloutCallable() { * } * } * - * @param parent Required. The parent collection in which the `Rollout` should be created. Format - * should be + * @param parent Required. The parent collection in which the `Rollout` must be created. The + * format is * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. * @param rollout Required. The `Rollout` to create. * @param rolloutId Required. ID of the `Rollout`. @@ -4856,8 +4854,8 @@ public final OperationFuture createRolloutAsync( * } * } * - * @param parent Required. The parent collection in which the `Rollout` should be created. Format - * should be + * @param parent Required. The parent collection in which the `Rollout` must be created. The + * format is * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. * @param rollout Required. The `Rollout` to create. * @param rolloutId Required. ID of the `Rollout`. @@ -5885,8 +5883,8 @@ public final UnaryCallable getConfigCallable() { * } * } * - * @param parent Required. The parent collection in which the `Automation` should be created. - * Format should be + * @param parent Required. The parent collection in which the `Automation` must be created. The + * format is * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. * @param automation Required. The `Automation` to create. * @param automationId Required. ID of the `Automation`. @@ -5925,8 +5923,8 @@ public final OperationFuture createAutomationAsyn * } * } * - * @param parent Required. The parent collection in which the `Automation` should be created. - * Format should be + * @param parent Required. The parent collection in which the `Automation` must be created. The + * format is * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. * @param automation Required. The `Automation` to create. * @param automationId Required. ID of the `Automation`. @@ -6067,8 +6065,8 @@ public final UnaryCallable createAutomationC * } * * @param automation Required. The `Automation` to update. - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * `Automation` resource by the update. The fields specified in the update_mask are relative + * @param updateMask Required. Field mask is used to specify the fields to be overwritten by the + * update in the `Automation` resource. The fields specified in the update_mask are relative * to the resource, not the full request. A field will be overwritten if it's in the mask. If * the user doesn't provide a mask then all fields are overwritten. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -6200,7 +6198,7 @@ public final UnaryCallable updateAutomationC * } * } * - * @param name Required. The name of the `Automation` to delete. Format should be + * @param name Required. The name of the `Automation` to delete. The format is * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -6231,7 +6229,7 @@ public final OperationFuture deleteAutomationAsync( * } * } * - * @param name Required. The name of the `Automation` to delete. Format should be + * @param name Required. The name of the `Automation` to delete. The format is * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java index 2af19804cc87..ab2c9eff21a7 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.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; @@ -1176,6 +1177,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "clouddeploy.googleapis.com:443"; } diff --git a/java-deploy/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json b/java-deploy/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json index 4bd0dfc53e1e..7de185da2cea 100644 --- a/java-deploy/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json +++ b/java-deploy/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json @@ -1241,6 +1241,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.deploy.v1.DefaultPool", "queryAllDeclaredConstructors": true, @@ -1466,6 +1484,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.deploy.v1.DeployPolicyNotificationEvent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.DeployPolicyNotificationEvent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.deploy.v1.DeploymentJobs", "queryAllDeclaredConstructors": true, @@ -2609,24 +2645,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.deploy.v1.RepairMode", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.deploy.v1.RepairMode$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.deploy.v1.RepairPhase", "queryAllDeclaredConstructors": true, @@ -2690,24 +2708,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.deploy.v1.Retry", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.deploy.v1.Retry$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.deploy.v1.RetryAttempt", "queryAllDeclaredConstructors": true, @@ -2780,24 +2780,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.deploy.v1.Rollback", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.deploy.v1.Rollback$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.deploy.v1.RollbackAttempt", "queryAllDeclaredConstructors": true, diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRolloutMetadata.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRolloutMetadata.java index e5b2db4be61e..fa344f071802 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRolloutMetadata.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRolloutMetadata.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Output only. The ID of the AutomationRun initiated by a promote release
        +   * Output only. The name of the AutomationRun initiated by a promote release
            * rule.
            * 
        * @@ -98,7 +98,7 @@ public java.lang.String getPromoteAutomationRun() { * * *
        -   * Output only. The ID of the AutomationRun initiated by a promote release
        +   * Output only. The name of the AutomationRun initiated by a promote release
            * rule.
            * 
        * @@ -128,8 +128,8 @@ public com.google.protobuf.ByteString getPromoteAutomationRunBytes() { * * *
        -   * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -   * rule.
        +   * Output only. The names of the AutomationRuns initiated by an advance
        +   * rollout rule.
            * 
        * * repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -144,8 +144,8 @@ public com.google.protobuf.ProtocolStringList getAdvanceAutomationRunsList() { * * *
        -   * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -   * rule.
        +   * Output only. The names of the AutomationRuns initiated by an advance
        +   * rollout rule.
            * 
        * * repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -160,8 +160,8 @@ public int getAdvanceAutomationRunsCount() { * * *
        -   * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -   * rule.
        +   * Output only. The names of the AutomationRuns initiated by an advance
        +   * rollout rule.
            * 
        * * repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -177,8 +177,8 @@ public java.lang.String getAdvanceAutomationRuns(int index) { * * *
        -   * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -   * rule.
        +   * Output only. The names of the AutomationRuns initiated by an advance
        +   * rollout rule.
            * 
        * * repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -200,7 +200,7 @@ public com.google.protobuf.ByteString getAdvanceAutomationRunsBytes(int index) { * * *
        -   * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +   * Output only. The names of the AutomationRuns initiated by a repair rollout
            * rule.
            * 
        * @@ -216,7 +216,7 @@ public com.google.protobuf.ProtocolStringList getRepairAutomationRunsList() { * * *
        -   * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +   * Output only. The names of the AutomationRuns initiated by a repair rollout
            * rule.
            * 
        * @@ -232,7 +232,7 @@ public int getRepairAutomationRunsCount() { * * *
        -   * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +   * Output only. The names of the AutomationRuns initiated by a repair rollout
            * rule.
            * 
        * @@ -249,7 +249,7 @@ public java.lang.String getRepairAutomationRuns(int index) { * * *
        -   * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +   * Output only. The names of the AutomationRuns initiated by a repair rollout
            * rule.
            * 
        * @@ -689,7 +689,7 @@ public Builder mergeFrom( * * *
        -     * Output only. The ID of the AutomationRun initiated by a promote release
        +     * Output only. The name of the AutomationRun initiated by a promote release
              * rule.
              * 
        * @@ -712,7 +712,7 @@ public java.lang.String getPromoteAutomationRun() { * * *
        -     * Output only. The ID of the AutomationRun initiated by a promote release
        +     * Output only. The name of the AutomationRun initiated by a promote release
              * rule.
              * 
        * @@ -735,7 +735,7 @@ public com.google.protobuf.ByteString getPromoteAutomationRunBytes() { * * *
        -     * Output only. The ID of the AutomationRun initiated by a promote release
        +     * Output only. The name of the AutomationRun initiated by a promote release
              * rule.
              * 
        * @@ -757,7 +757,7 @@ public Builder setPromoteAutomationRun(java.lang.String value) { * * *
        -     * Output only. The ID of the AutomationRun initiated by a promote release
        +     * Output only. The name of the AutomationRun initiated by a promote release
              * rule.
              * 
        * @@ -775,7 +775,7 @@ public Builder clearPromoteAutomationRun() { * * *
        -     * Output only. The ID of the AutomationRun initiated by a promote release
        +     * Output only. The name of the AutomationRun initiated by a promote release
              * rule.
              * 
        * @@ -809,8 +809,8 @@ private void ensureAdvanceAutomationRunsIsMutable() { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -     * rule.
        +     * Output only. The names of the AutomationRuns initiated by an advance
        +     * rollout rule.
              * 
        * * @@ -827,8 +827,8 @@ public com.google.protobuf.ProtocolStringList getAdvanceAutomationRunsList() { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -     * rule.
        +     * Output only. The names of the AutomationRuns initiated by an advance
        +     * rollout rule.
              * 
        * * @@ -844,8 +844,8 @@ public int getAdvanceAutomationRunsCount() { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -     * rule.
        +     * Output only. The names of the AutomationRuns initiated by an advance
        +     * rollout rule.
              * 
        * * @@ -862,8 +862,8 @@ public java.lang.String getAdvanceAutomationRuns(int index) { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -     * rule.
        +     * Output only. The names of the AutomationRuns initiated by an advance
        +     * rollout rule.
              * 
        * * @@ -880,8 +880,8 @@ public com.google.protobuf.ByteString getAdvanceAutomationRunsBytes(int index) { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -     * rule.
        +     * Output only. The names of the AutomationRuns initiated by an advance
        +     * rollout rule.
              * 
        * * @@ -906,8 +906,8 @@ public Builder setAdvanceAutomationRuns(int index, java.lang.String value) { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -     * rule.
        +     * Output only. The names of the AutomationRuns initiated by an advance
        +     * rollout rule.
              * 
        * * @@ -931,8 +931,8 @@ public Builder addAdvanceAutomationRuns(java.lang.String value) { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -     * rule.
        +     * Output only. The names of the AutomationRuns initiated by an advance
        +     * rollout rule.
              * 
        * * @@ -953,8 +953,8 @@ public Builder addAllAdvanceAutomationRuns(java.lang.Iterable * * *
        -     * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -     * rule.
        +     * Output only. The names of the AutomationRuns initiated by an advance
        +     * rollout rule.
              * 
        * * @@ -974,8 +974,8 @@ public Builder clearAdvanceAutomationRuns() { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -     * rule.
        +     * Output only. The names of the AutomationRuns initiated by an advance
        +     * rollout rule.
              * 
        * * @@ -1010,7 +1010,7 @@ private void ensureRepairAutomationRunsIsMutable() { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +     * Output only. The names of the AutomationRuns initiated by a repair rollout
              * rule.
              * 
        * @@ -1028,7 +1028,7 @@ public com.google.protobuf.ProtocolStringList getRepairAutomationRunsList() { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +     * Output only. The names of the AutomationRuns initiated by a repair rollout
              * rule.
              * 
        * @@ -1045,7 +1045,7 @@ public int getRepairAutomationRunsCount() { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +     * Output only. The names of the AutomationRuns initiated by a repair rollout
              * rule.
              * 
        * @@ -1063,7 +1063,7 @@ public java.lang.String getRepairAutomationRuns(int index) { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +     * Output only. The names of the AutomationRuns initiated by a repair rollout
              * rule.
              * 
        * @@ -1081,7 +1081,7 @@ public com.google.protobuf.ByteString getRepairAutomationRunsBytes(int index) { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +     * Output only. The names of the AutomationRuns initiated by a repair rollout
              * rule.
              * 
        * @@ -1107,7 +1107,7 @@ public Builder setRepairAutomationRuns(int index, java.lang.String value) { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +     * Output only. The names of the AutomationRuns initiated by a repair rollout
              * rule.
              * 
        * @@ -1132,7 +1132,7 @@ public Builder addRepairAutomationRuns(java.lang.String value) { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +     * Output only. The names of the AutomationRuns initiated by a repair rollout
              * rule.
              * 
        * @@ -1154,7 +1154,7 @@ public Builder addAllRepairAutomationRuns(java.lang.Iterable v * * *
        -     * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +     * Output only. The names of the AutomationRuns initiated by a repair rollout
              * rule.
              * 
        * @@ -1175,7 +1175,7 @@ public Builder clearRepairAutomationRuns() { * * *
        -     * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +     * Output only. The names of the AutomationRuns initiated by a repair rollout
              * rule.
              * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRolloutMetadataOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRolloutMetadataOrBuilder.java index 87d4baa15caf..81350a025d4e 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRolloutMetadataOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRolloutMetadataOrBuilder.java @@ -28,7 +28,7 @@ public interface AutomationRolloutMetadataOrBuilder * * *
        -   * Output only. The ID of the AutomationRun initiated by a promote release
        +   * Output only. The name of the AutomationRun initiated by a promote release
            * rule.
            * 
        * @@ -41,7 +41,7 @@ public interface AutomationRolloutMetadataOrBuilder * * *
        -   * Output only. The ID of the AutomationRun initiated by a promote release
        +   * Output only. The name of the AutomationRun initiated by a promote release
            * rule.
            * 
        * @@ -55,8 +55,8 @@ public interface AutomationRolloutMetadataOrBuilder * * *
        -   * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -   * rule.
        +   * Output only. The names of the AutomationRuns initiated by an advance
        +   * rollout rule.
            * 
        * * repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -69,8 +69,8 @@ public interface AutomationRolloutMetadataOrBuilder * * *
        -   * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -   * rule.
        +   * Output only. The names of the AutomationRuns initiated by an advance
        +   * rollout rule.
            * 
        * * repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -83,8 +83,8 @@ public interface AutomationRolloutMetadataOrBuilder * * *
        -   * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -   * rule.
        +   * Output only. The names of the AutomationRuns initiated by an advance
        +   * rollout rule.
            * 
        * * repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -98,8 +98,8 @@ public interface AutomationRolloutMetadataOrBuilder * * *
        -   * Output only. The IDs of the AutomationRuns initiated by an advance rollout
        -   * rule.
        +   * Output only. The names of the AutomationRuns initiated by an advance
        +   * rollout rule.
            * 
        * * repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -114,7 +114,7 @@ public interface AutomationRolloutMetadataOrBuilder * * *
        -   * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +   * Output only. The names of the AutomationRuns initiated by a repair rollout
            * rule.
            * 
        * @@ -128,7 +128,7 @@ public interface AutomationRolloutMetadataOrBuilder * * *
        -   * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +   * Output only. The names of the AutomationRuns initiated by a repair rollout
            * rule.
            * 
        * @@ -142,7 +142,7 @@ public interface AutomationRolloutMetadataOrBuilder * * *
        -   * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +   * Output only. The names of the AutomationRuns initiated by a repair rollout
            * rule.
            * 
        * @@ -157,7 +157,7 @@ public interface AutomationRolloutMetadataOrBuilder * * *
        -   * Output only. The IDs of the AutomationRuns initiated by a repair rollout
        +   * Output only. The names of the AutomationRuns initiated by a repair rollout
            * rule.
            * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRun.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRun.java index 64e4c3fa9d6d..21d2091fa318 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRun.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRun.java @@ -143,6 +143,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PENDING = 5; */ PENDING(5), + /** + * + * + *
        +     * The `AutomationRun` was aborted.
        +     * 
        + * + * ABORTED = 6; + */ + ABORTED(6), UNRECOGNIZED(-1), ; @@ -206,6 +216,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PENDING = 5; */ public static final int PENDING_VALUE = 5; + /** + * + * + *
        +     * The `AutomationRun` was aborted.
        +     * 
        + * + * ABORTED = 6; + */ + public static final int ABORTED_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -243,6 +263,8 @@ public static State forNumber(int value) { return IN_PROGRESS; case 5: return PENDING; + case 6: + return ABORTED; default: return null; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeployment.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeployment.java index 57141746a129..ac313051b49d 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeployment.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeployment.java @@ -75,6 +75,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The percentage based deployments that will occur as a part of a * `Rollout`. List is expected in ascending order and each integer n is * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. * * * repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -92,6 +94,8 @@ public java.util.List getPercentagesList() { * Required. The percentage based deployments that will occur as a part of a * `Rollout`. List is expected in ascending order and each integer n is * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. * * * repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -108,6 +112,8 @@ public int getPercentagesCount() { * Required. The percentage based deployments that will occur as a part of a * `Rollout`. List is expected in ascending order and each integer n is * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. * * * repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -747,6 +753,8 @@ private void ensurePercentagesIsMutable() { * Required. The percentage based deployments that will occur as a part of a * `Rollout`. List is expected in ascending order and each integer n is * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. * * * repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -764,6 +772,8 @@ public java.util.List getPercentagesList() { * Required. The percentage based deployments that will occur as a part of a * `Rollout`. List is expected in ascending order and each integer n is * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. * * * repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -780,6 +790,8 @@ public int getPercentagesCount() { * Required. The percentage based deployments that will occur as a part of a * `Rollout`. List is expected in ascending order and each integer n is * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. * * * repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -797,6 +809,8 @@ public int getPercentages(int index) { * Required. The percentage based deployments that will occur as a part of a * `Rollout`. List is expected in ascending order and each integer n is * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. * * * repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -820,6 +834,8 @@ public Builder setPercentages(int index, int value) { * Required. The percentage based deployments that will occur as a part of a * `Rollout`. List is expected in ascending order and each integer n is * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. * * * repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -842,6 +858,8 @@ public Builder addPercentages(int value) { * Required. The percentage based deployments that will occur as a part of a * `Rollout`. List is expected in ascending order and each integer n is * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. * * * repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -863,6 +881,8 @@ public Builder addAllPercentages(java.lang.Iterable * Required. The percentage based deployments that will occur as a part of a * `Rollout`. List is expected in ascending order and each integer n is * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. * * * repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeploymentOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeploymentOrBuilder.java index fb3cd3de32a9..c18625e82cff 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeploymentOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeploymentOrBuilder.java @@ -31,6 +31,8 @@ public interface CanaryDeploymentOrBuilder * Required. The percentage based deployments that will occur as a part of a * `Rollout`. List is expected in ascending order and each integer n is * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. * * * repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -45,6 +47,8 @@ public interface CanaryDeploymentOrBuilder * Required. The percentage based deployments that will occur as a part of a * `Rollout`. List is expected in ascending order and each integer n is * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. * * * repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -59,6 +63,8 @@ public interface CanaryDeploymentOrBuilder * Required. The percentage based deployments that will occur as a part of a * `Rollout`. List is expected in ascending order and each integer n is * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. * * * repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java index ba54bbfc8b83..e052f22f91ba 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java @@ -624,18 +624,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_deploy_v1_RepairRolloutRule_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_deploy_v1_RepairRolloutRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_RepairMode_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_RepairMode_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Retry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Retry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Rollback_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Rollback_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_deploy_v1_AutomationRuleCondition_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -794,1005 +782,996 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022\016\n\006verify\030\004 \001(\010\0229\n\tpredeploy\030\005 \001(\0132!.go" + "ogle.cloud.deploy.v1.PredeployB\003\340A\001\022;\n\np" + "ostdeploy\030\006 \001(\0132\".google.cloud.deploy.v1" - + ".PostdeployB\003\340A\001\"\256\004\n\020KubernetesConfig\022[\n" + + ".PostdeployB\003\340A\001\"\361\004\n\020KubernetesConfig\022[\n" + "\024gateway_service_mesh\030\001 \001(\0132;.google.clo" + "ud.deploy.v1.KubernetesConfig.GatewaySer" + "viceMeshH\000\022X\n\022service_networking\030\002 \001(\0132:" + ".google.cloud.deploy.v1.KubernetesConfig" - + ".ServiceNetworkingH\000\032\335\001\n\022GatewayServiceM" + + ".ServiceNetworkingH\000\032\376\001\n\022GatewayServiceM" + "esh\022\027\n\nhttp_route\030\001 \001(\tB\003\340A\002\022\024\n\007service\030" + "\002 \001(\tB\003\340A\002\022\027\n\ndeployment\030\003 \001(\tB\003\340A\002\022>\n\026r" + "oute_update_wait_time\030\004 \001(\0132\031.google.pro" + "tobuf.DurationB\003\340A\001\022?\n\027stable_cutback_du" + "ration\030\005 \001(\0132\031.google.protobuf.DurationB" - + "\003\340A\001\032m\n\021ServiceNetworking\022\024\n\007service\030\001 \001" - + "(\tB\003\340A\002\022\027\n\ndeployment\030\002 \001(\tB\003\340A\002\022)\n\034disa" - + "ble_pod_overprovisioning\030\003 \001(\010B\003\340A\001B\024\n\022s" - + "ervice_definition\"\233\001\n\016CloudRunConfig\022!\n\031" - + "automatic_traffic_control\030\001 \001(\010\022!\n\024canar" - + "y_revision_tags\030\002 \003(\tB\003\340A\001\022 \n\023prior_revi" - + "sion_tags\030\003 \003(\tB\003\340A\001\022!\n\024stable_revision_" - + "tags\030\004 \003(\tB\003\340A\001\"\236\001\n\rRuntimeConfig\022>\n\nkub" - + "ernetes\030\001 \001(\0132(.google.cloud.deploy.v1.K" - + "ubernetesConfigH\000\022;\n\tcloud_run\030\002 \001(\0132&.g" - + "oogle.cloud.deploy.v1.CloudRunConfigH\000B\020" - + "\n\016runtime_config\"Y\n\026PipelineReadyConditi" - + "on\022\016\n\006status\030\003 \001(\010\022/\n\013update_time\030\004 \001(\0132" - + "\032.google.protobuf.Timestamp\"\233\001\n\027TargetsP" - + "resentCondition\022\016\n\006status\030\001 \001(\010\022?\n\017missi" - + "ng_targets\030\002 \003(\tB&\372A#\n!clouddeploy.googl" - + "eapis.com/Target\022/\n\013update_time\030\004 \001(\0132\032." - + "google.protobuf.Timestamp\"=\n\024TargetsType" - + "Condition\022\016\n\006status\030\001 \001(\010\022\025\n\rerror_detai" - + "ls\030\002 \001(\t\"\207\002\n\021PipelineCondition\022P\n\030pipeli" - + "ne_ready_condition\030\001 \001(\0132..google.cloud." - + "deploy.v1.PipelineReadyCondition\022R\n\031targ" - + "ets_present_condition\030\003 \001(\0132/.google.clo" - + "ud.deploy.v1.TargetsPresentCondition\022L\n\026" - + "targets_type_condition\030\004 \001(\0132,.google.cl" - + "oud.deploy.v1.TargetsTypeCondition\"\254\001\n\034L" - + "istDeliveryPipelinesRequest\022C\n\006parent\030\001 " - + "\001(\tB3\340A\002\372A-\022+clouddeploy.googleapis.com/" - + "DeliveryPipeline\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order" - + "_by\030\005 \001(\t\"\223\001\n\035ListDeliveryPipelinesRespo" - + "nse\022D\n\022delivery_pipelines\030\001 \003(\0132(.google" - + ".cloud.deploy.v1.DeliveryPipeline\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"" - + "_\n\032GetDeliveryPipelineRequest\022A\n\004name\030\001 " + + "\003\340A\001\022\037\n\022pod_selector_label\030\006 \001(\tB\003\340A\001\032\216\001" + + "\n\021ServiceNetworking\022\024\n\007service\030\001 \001(\tB\003\340A" + + "\002\022\027\n\ndeployment\030\002 \001(\tB\003\340A\002\022)\n\034disable_po" + + "d_overprovisioning\030\003 \001(\010B\003\340A\001\022\037\n\022pod_sel" + + "ector_label\030\004 \001(\tB\003\340A\001B\024\n\022service_defini" + + "tion\"\233\001\n\016CloudRunConfig\022!\n\031automatic_tra" + + "ffic_control\030\001 \001(\010\022!\n\024canary_revision_ta" + + "gs\030\002 \003(\tB\003\340A\001\022 \n\023prior_revision_tags\030\003 \003" + + "(\tB\003\340A\001\022!\n\024stable_revision_tags\030\004 \003(\tB\003\340" + + "A\001\"\236\001\n\rRuntimeConfig\022>\n\nkubernetes\030\001 \001(\013" + + "2(.google.cloud.deploy.v1.KubernetesConf" + + "igH\000\022;\n\tcloud_run\030\002 \001(\0132&.google.cloud.d" + + "eploy.v1.CloudRunConfigH\000B\020\n\016runtime_con" + + "fig\"Y\n\026PipelineReadyCondition\022\016\n\006status\030" + + "\003 \001(\010\022/\n\013update_time\030\004 \001(\0132\032.google.prot" + + "obuf.Timestamp\"\233\001\n\027TargetsPresentConditi" + + "on\022\016\n\006status\030\001 \001(\010\022?\n\017missing_targets\030\002 " + + "\003(\tB&\372A#\n!clouddeploy.googleapis.com/Tar" + + "get\022/\n\013update_time\030\004 \001(\0132\032.google.protob" + + "uf.Timestamp\"=\n\024TargetsTypeCondition\022\016\n\006" + + "status\030\001 \001(\010\022\025\n\rerror_details\030\002 \001(\t\"\207\002\n\021" + + "PipelineCondition\022P\n\030pipeline_ready_cond" + + "ition\030\001 \001(\0132..google.cloud.deploy.v1.Pip" + + "elineReadyCondition\022R\n\031targets_present_c" + + "ondition\030\003 \001(\0132/.google.cloud.deploy.v1." + + "TargetsPresentCondition\022L\n\026targets_type_" + + "condition\030\004 \001(\0132,.google.cloud.deploy.v1" + + ".TargetsTypeCondition\"\254\001\n\034ListDeliveryPi" + + "pelinesRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+" + + "clouddeploy.googleapis.com/DeliveryPipel" + + "ine\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\223\001\n" + + "\035ListDeliveryPipelinesResponse\022D\n\022delive" + + "ry_pipelines\030\001 \003(\0132(.google.cloud.deploy" + + ".v1.DeliveryPipeline\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"_\n\032GetDeliver" + + "yPipelineRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+" + + "clouddeploy.googleapis.com/DeliveryPipel" + + "ine\"\206\002\n\035CreateDeliveryPipelineRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+clouddeploy.googl" + + "eapis.com/DeliveryPipeline\022!\n\024delivery_p" + + "ipeline_id\030\002 \001(\tB\003\340A\002\022H\n\021delivery_pipeli" + + "ne\030\003 \001(\0132(.google.cloud.deploy.v1.Delive" + + "ryPipelineB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001" + + "\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\360\001\n\035UpdateD" + + "eliveryPipelineRequest\0224\n\013update_mask\030\001 " + + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022H\n\021" + + "delivery_pipeline\030\002 \001(\0132(.google.cloud.d" + + "eploy.v1.DeliveryPipelineB\003\340A\002\022\027\n\nreques" + + "t_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow_missing\030\004 \001(\010B\003" + + "\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\332\001\n\035Dele" + + "teDeliveryPipelineRequest\022A\n\004name\030\001 \001(\tB" + + "3\340A\002\372A-\n+clouddeploy.googleapis.com/Deli" + + "veryPipeline\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n" + + "\rallow_missing\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_on" + + "ly\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\022\021\n\004eta" + + "g\030\005 \001(\tB\003\340A\001\"m\n\024RollbackTargetConfig\0225\n\007" + + "rollout\030\001 \001(\0132\037.google.cloud.deploy.v1.R" + + "olloutB\003\340A\001\022\036\n\021starting_phase_id\030\002 \001(\tB\003" + + "\340A\001\"\257\002\n\025RollbackTargetRequest\022A\n\004name\030\001 " + "\001(\tB3\340A\002\372A-\n+clouddeploy.googleapis.com/" - + "DeliveryPipeline\"\206\002\n\035CreateDeliveryPipel" - + "ineRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+clou" - + "ddeploy.googleapis.com/DeliveryPipeline\022" - + "!\n\024delivery_pipeline_id\030\002 \001(\tB\003\340A\002\022H\n\021de" - + "livery_pipeline\030\003 \001(\0132(.google.cloud.dep" - + "loy.v1.DeliveryPipelineB\003\340A\002\022\027\n\nrequest_" - + "id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A" - + "\001\"\360\001\n\035UpdateDeliveryPipelineRequest\0224\n\013u" - + "pdate_mask\030\001 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\022H\n\021delivery_pipeline\030\002 \001(\0132(.g" - + "oogle.cloud.deploy.v1.DeliveryPipelineB\003" + + "DeliveryPipeline\022\026\n\ttarget_id\030\002 \001(\tB\003\340A\002" + + "\022\027\n\nrollout_id\030\003 \001(\tB\003\340A\002\022\027\n\nrelease_id\030" + + "\004 \001(\tB\003\340A\001\022!\n\024rollout_to_roll_back\030\005 \001(\t" + + "B\003\340A\001\022J\n\017rollback_config\030\006 \001(\0132,.google." + + "cloud.deploy.v1.RollbackTargetConfigB\003\340A" + + "\001\022\032\n\rvalidate_only\030\007 \001(\010B\003\340A\001\"_\n\026Rollbac" + + "kTargetResponse\022E\n\017rollback_config\030\001 \001(\013" + + "2,.google.cloud.deploy.v1.RollbackTarget" + + "Config\"\370\010\n\006Target\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\026\n\t" + + "target_id\030\002 \001(\tB\003\340A\003\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030" + + "\n\013description\030\004 \001(\tB\003\340A\001\022I\n\013annotations\030" + + "\005 \003(\0132/.google.cloud.deploy.v1.Target.An" + + "notationsEntryB\003\340A\001\022?\n\006labels\030\006 \003(\0132*.go" + + "ogle.cloud.deploy.v1.Target.LabelsEntryB" + + "\003\340A\001\022\035\n\020require_approval\030\r \001(\010B\003\340A\001\0224\n\013c" + + "reate_time\030\010 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0226\n\003gke\030\017 \001(\0132\".g" + + "oogle.cloud.deploy.v1.GkeClusterB\003\340A\001H\000\022" + + "D\n\016anthos_cluster\030\021 \001(\0132%.google.cloud.d" + + "eploy.v1.AnthosClusterB\003\340A\001H\000\022<\n\003run\030\022 \001" + + "(\0132(.google.cloud.deploy.v1.CloudRunLoca" + + "tionB\003\340A\001H\000\022@\n\014multi_target\030\023 \001(\0132#.goog" + + "le.cloud.deploy.v1.MultiTargetB\003\340A\001H\000\022B\n" + + "\rcustom_target\030\025 \001(\0132$.google.cloud.depl" + + "oy.v1.CustomTargetB\003\340A\001H\000\022\021\n\004etag\030\014 \001(\tB" + + "\003\340A\001\022B\n\021execution_configs\030\020 \003(\0132\'.google" + + ".cloud.deploy.v1.ExecutionConfig\022T\n\021depl" + + "oy_parameters\030\024 \003(\01324.google.cloud.deplo" + + "y.v1.Target.DeployParametersEntryB\003\340A\001\0322" + + "\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\0327\n\025DeployParametersEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:`\352A]\n" + + "!clouddeploy.googleapis.com/Target\0228proj" + + "ects/{project}/locations/{location}/targ" + + "ets/{target}B\023\n\021deployment_target\"\345\004\n\017Ex" + + "ecutionConfig\022V\n\006usages\030\001 \003(\0162A.google.c" + + "loud.deploy.v1.ExecutionConfig.Execution" + + "EnvironmentUsageB\003\340A\002\022@\n\014default_pool\030\002 " + + "\001(\0132#.google.cloud.deploy.v1.DefaultPool" + + "B\003\340A\001H\000\022@\n\014private_pool\030\003 \001(\0132#.google.c" + + "loud.deploy.v1.PrivatePoolB\003\340A\001H\000\022A\n\013wor" + + "ker_pool\030\004 \001(\tB,\340A\001\372A&\n$cloudbuild.googl" + + "eapis.com/WorkerPool\022\034\n\017service_account\030" + + "\005 \001(\tB\003\340A\001\022\035\n\020artifact_storage\030\006 \001(\tB\003\340A" + + "\001\0229\n\021execution_timeout\030\007 \001(\0132\031.google.pr" + + "otobuf.DurationB\003\340A\001\022\024\n\007verbose\030\010 \001(\010B\003\340" + + "A\001\"\213\001\n\031ExecutionEnvironmentUsage\022+\n\'EXEC" + + "UTION_ENVIRONMENT_USAGE_UNSPECIFIED\020\000\022\n\n" + + "\006RENDER\020\001\022\n\n\006DEPLOY\020\002\022\n\n\006VERIFY\020\003\022\r\n\tPRE" + + "DEPLOY\020\004\022\016\n\nPOSTDEPLOY\020\005B\027\n\025execution_en" + + "vironment\"J\n\013DefaultPool\022\034\n\017service_acco" + + "unt\030\001 \001(\tB\003\340A\001\022\035\n\020artifact_storage\030\002 \001(\t" + + "B\003\340A\001\"\215\001\n\013PrivatePool\022A\n\013worker_pool\030\001 \001" + + "(\tB,\340A\002\372A&\n$cloudbuild.googleapis.com/Wo" + + "rkerPool\022\034\n\017service_account\030\002 \001(\tB\003\340A\001\022\035" + + "\n\020artifact_storage\030\003 \001(\tB\003\340A\001\"y\n\nGkeClus" + + "ter\0229\n\007cluster\030\001 \001(\tB(\340A\001\372A\"\n container." + + "googleapis.com/Cluster\022\030\n\013internal_ip\030\002 " + + "\001(\010B\003\340A\001\022\026\n\tproxy_url\030\003 \001(\tB\003\340A\001\"M\n\rAnth" + + "osCluster\022<\n\nmembership\030\001 \001(\tB(\340A\001\372A\"\n g" + + "kehub.googleapis.com/Membership\"O\n\020Cloud" + + "RunLocation\022;\n\010location\030\001 \001(\tB)\340A\002\372A#\n!l" + + "ocations.googleapis.com/Location\"&\n\013Mult" + + "iTarget\022\027\n\ntarget_ids\030\001 \003(\tB\003\340A\002\"_\n\014Cust" + + "omTarget\022O\n\022custom_target_type\030\001 \001(\tB3\340A" + + "\002\372A-\n+clouddeploy.googleapis.com/CustomT" + + "argetType\"\254\001\n\022ListTargetsRequest\0229\n\006pare" + + "nt\030\001 \001(\tB)\340A\002\372A#\022!clouddeploy.googleapis" + + ".com/Target\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" + + "age_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A" + + "\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"t\n\023ListTargetsR" + + "esponse\022/\n\007targets\030\001 \003(\0132\036.google.cloud." + + "deploy.v1.Target\022\027\n\017next_page_token\030\002 \001(" + + "\t\022\023\n\013unreachable\030\003 \003(\t\"K\n\020GetTargetReque" + + "st\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!clouddeploy.go" + + "ogleapis.com/Target\"\322\001\n\023CreateTargetRequ" + + "est\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!clouddeploy" + + ".googleapis.com/Target\022\026\n\ttarget_id\030\002 \001(" + + "\tB\003\340A\002\0223\n\006target\030\003 \001(\0132\036.google.cloud.de" + + "ploy.v1.TargetB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB" + + "\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\321\001\n\023Upd" + + "ateTargetRequest\0224\n\013update_mask\030\001 \001(\0132\032." + + "google.protobuf.FieldMaskB\003\340A\002\0223\n\006target" + + "\030\002 \001(\0132\036.google.cloud.deploy.v1.TargetB\003" + "\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow_mi" + "ssing\030\004 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B" - + "\003\340A\001\"\332\001\n\035DeleteDeliveryPipelineRequest\022A" - + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+clouddeploy.google" - + "apis.com/DeliveryPipeline\022\027\n\nrequest_id\030" - + "\002 \001(\tB\003\340A\001\022\032\n\rallow_missing\030\003 \001(\010B\003\340A\001\022\032" - + "\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(" - + "\010B\003\340A\001\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"m\n\024RollbackTar" - + "getConfig\0225\n\007rollout\030\001 \001(\0132\037.google.clou" - + "d.deploy.v1.RolloutB\003\340A\001\022\036\n\021starting_pha" - + "se_id\030\002 \001(\tB\003\340A\001\"\257\002\n\025RollbackTargetReque" - + "st\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+clouddeploy.go" - + "ogleapis.com/DeliveryPipeline\022\026\n\ttarget_" - + "id\030\002 \001(\tB\003\340A\002\022\027\n\nrollout_id\030\003 \001(\tB\003\340A\002\022\027" - + "\n\nrelease_id\030\004 \001(\tB\003\340A\001\022!\n\024rollout_to_ro" - + "ll_back\030\005 \001(\tB\003\340A\001\022J\n\017rollback_config\030\006 " - + "\001(\0132,.google.cloud.deploy.v1.RollbackTar" - + "getConfigB\003\340A\001\022\032\n\rvalidate_only\030\007 \001(\010B\003\340" - + "A\001\"_\n\026RollbackTargetResponse\022E\n\017rollback" - + "_config\030\001 \001(\0132,.google.cloud.deploy.v1.R" - + "ollbackTargetConfig\"\370\010\n\006Target\022\021\n\004name\030\001" - + " \001(\tB\003\340A\001\022\026\n\ttarget_id\030\002 \001(\tB\003\340A\003\022\020\n\003uid" - + "\030\003 \001(\tB\003\340A\003\022\030\n\013description\030\004 \001(\tB\003\340A\001\022I\n" - + "\013annotations\030\005 \003(\0132/.google.cloud.deploy" - + ".v1.Target.AnnotationsEntryB\003\340A\001\022?\n\006labe" - + "ls\030\006 \003(\0132*.google.cloud.deploy.v1.Target" - + ".LabelsEntryB\003\340A\001\022\035\n\020require_approval\030\r " - + "\001(\010B\003\340A\001\0224\n\013create_time\030\010 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\t " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226\n\003" - + "gke\030\017 \001(\0132\".google.cloud.deploy.v1.GkeCl" - + "usterB\003\340A\001H\000\022D\n\016anthos_cluster\030\021 \001(\0132%.g" - + "oogle.cloud.deploy.v1.AnthosClusterB\003\340A\001" - + "H\000\022<\n\003run\030\022 \001(\0132(.google.cloud.deploy.v1" - + ".CloudRunLocationB\003\340A\001H\000\022@\n\014multi_target" - + "\030\023 \001(\0132#.google.cloud.deploy.v1.MultiTar" - + "getB\003\340A\001H\000\022B\n\rcustom_target\030\025 \001(\0132$.goog" - + "le.cloud.deploy.v1.CustomTargetB\003\340A\001H\000\022\021" - + "\n\004etag\030\014 \001(\tB\003\340A\001\022B\n\021execution_configs\030\020" - + " \003(\0132\'.google.cloud.deploy.v1.ExecutionC" - + "onfig\022T\n\021deploy_parameters\030\024 \003(\01324.googl" - + "e.cloud.deploy.v1.Target.DeployParameter" - + "sEntryB\003\340A\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0327\n\025Deploy" - + "ParametersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001:`\352A]\n!clouddeploy.googleapis.com" - + "/Target\0228projects/{project}/locations/{l" - + "ocation}/targets/{target}B\023\n\021deployment_" - + "target\"\345\004\n\017ExecutionConfig\022V\n\006usages\030\001 \003" - + "(\0162A.google.cloud.deploy.v1.ExecutionCon" - + "fig.ExecutionEnvironmentUsageB\003\340A\002\022@\n\014de" - + "fault_pool\030\002 \001(\0132#.google.cloud.deploy.v" - + "1.DefaultPoolB\003\340A\001H\000\022@\n\014private_pool\030\003 \001" - + "(\0132#.google.cloud.deploy.v1.PrivatePoolB" - + "\003\340A\001H\000\022A\n\013worker_pool\030\004 \001(\tB,\340A\001\372A&\n$clo" - + "udbuild.googleapis.com/WorkerPool\022\034\n\017ser" - + "vice_account\030\005 \001(\tB\003\340A\001\022\035\n\020artifact_stor" - + "age\030\006 \001(\tB\003\340A\001\0229\n\021execution_timeout\030\007 \001(" - + "\0132\031.google.protobuf.DurationB\003\340A\001\022\024\n\007ver" - + "bose\030\010 \001(\010B\003\340A\001\"\213\001\n\031ExecutionEnvironment" - + "Usage\022+\n\'EXECUTION_ENVIRONMENT_USAGE_UNS" - + "PECIFIED\020\000\022\n\n\006RENDER\020\001\022\n\n\006DEPLOY\020\002\022\n\n\006VE" - + "RIFY\020\003\022\r\n\tPREDEPLOY\020\004\022\016\n\nPOSTDEPLOY\020\005B\027\n" - + "\025execution_environment\"J\n\013DefaultPool\022\034\n" - + "\017service_account\030\001 \001(\tB\003\340A\001\022\035\n\020artifact_" - + "storage\030\002 \001(\tB\003\340A\001\"\215\001\n\013PrivatePool\022A\n\013wo" - + "rker_pool\030\001 \001(\tB,\340A\002\372A&\n$cloudbuild.goog" - + "leapis.com/WorkerPool\022\034\n\017service_account" - + "\030\002 \001(\tB\003\340A\001\022\035\n\020artifact_storage\030\003 \001(\tB\003\340" - + "A\001\"a\n\nGkeCluster\0229\n\007cluster\030\001 \001(\tB(\340A\001\372A" - + "\"\n container.googleapis.com/Cluster\022\030\n\013i" - + "nternal_ip\030\002 \001(\010B\003\340A\001\"M\n\rAnthosCluster\022<" - + "\n\nmembership\030\001 \001(\tB(\340A\001\372A\"\n gkehub.googl" - + "eapis.com/Membership\"O\n\020CloudRunLocation" - + "\022;\n\010location\030\001 \001(\tB)\340A\002\372A#\n!locations.go" - + "ogleapis.com/Location\"&\n\013MultiTarget\022\027\n\n" - + "target_ids\030\001 \003(\tB\003\340A\002\"_\n\014CustomTarget\022O\n" - + "\022custom_target_type\030\001 \001(\tB3\340A\002\372A-\n+cloud" - + "deploy.googleapis.com/CustomTargetType\"\254" - + "\001\n\022ListTargetsRequest\0229\n\006parent\030\001 \001(\tB)\340" - + "A\002\372A#\022!clouddeploy.googleapis.com/Target" - + "\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003" - + " \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_" - + "by\030\005 \001(\tB\003\340A\001\"t\n\023ListTargetsResponse\022/\n\007" - + "targets\030\001 \003(\0132\036.google.cloud.deploy.v1.T" - + "arget\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" - + "hable\030\003 \003(\t\"K\n\020GetTargetRequest\0227\n\004name\030" - + "\001 \001(\tB)\340A\002\372A#\n!clouddeploy.googleapis.co" - + "m/Target\"\322\001\n\023CreateTargetRequest\0229\n\006pare" - + "nt\030\001 \001(\tB)\340A\002\372A#\022!clouddeploy.googleapis" - + ".com/Target\022\026\n\ttarget_id\030\002 \001(\tB\003\340A\002\0223\n\006t" - + "arget\030\003 \001(\0132\036.google.cloud.deploy.v1.Tar" - + "getB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rval" - + "idate_only\030\005 \001(\010B\003\340A\001\"\321\001\n\023UpdateTargetRe" - + "quest\0224\n\013update_mask\030\001 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\003\340A\002\0223\n\006target\030\002 \001(\0132\036.go" - + "ogle.cloud.deploy.v1.TargetB\003\340A\002\022\027\n\nrequ" - + "est_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow_missing\030\004 \001(\010" - + "B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\262\001\n\023De" - + "leteTargetRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!clouddeploy.googleapis.com/Target\022\027\n\nre" - + "quest_id\030\002 \001(\tB\003\340A\001\022\032\n\rallow_missing\030\003 \001" - + "(\010B\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022\021\n\004e" - + "tag\030\005 \001(\tB\003\340A\001\"\327\005\n\020CustomTargetType\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\001\022\"\n\025custom_target_type_id\030" - + "\002 \001(\tB\003\340A\003\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030\n\013descript" - + "ion\030\004 \001(\tB\003\340A\001\022S\n\013annotations\030\005 \003(\01329.go" - + "ogle.cloud.deploy.v1.CustomTargetType.An" - + "notationsEntryB\003\340A\001\022I\n\006labels\030\006 \003(\01324.go" - + "ogle.cloud.deploy.v1.CustomTargetType.La" - + "belsEntryB\003\340A\001\0224\n\013create_time\030\007 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" - + "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022\021\n\004etag\030\t \001(\tB\003\340A\001\022M\n\016custom_actions\030" - + "\n \001(\01323.google.cloud.deploy.v1.CustomTar" - + "getSkaffoldActionsH\000\0322\n\020AnnotationsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:" - + "\200\001\352A}\n+clouddeploy.googleapis.com/Custom" - + "TargetType\022Nprojects/{project}/locations" - + "/{location}/customTargetTypes/{custom_ta" - + "rget_type}B\014\n\ndefinition\"\245\001\n\033CustomTarge" - + "tSkaffoldActions\022\032\n\rrender_action\030\001 \001(\tB" - + "\003\340A\001\022\032\n\rdeploy_action\030\002 \001(\tB\003\340A\002\022N\n\030incl" - + "ude_skaffold_modules\030\003 \003(\0132\'.google.clou" - + "d.deploy.v1.SkaffoldModulesB\003\340A\001\"\302\004\n\017Ska" - + "ffoldModules\022\024\n\007configs\030\001 \003(\tB\003\340A\001\022H\n\003gi" - + "t\030\002 \001(\01329.google.cloud.deploy.v1.Skaffol" - + "dModules.SkaffoldGitSourceH\000\022Y\n\024google_c" - + "loud_storage\030\003 \001(\01329.google.cloud.deploy" - + ".v1.SkaffoldModules.SkaffoldGCSSourceH\000\022" - + "`\n\027google_cloud_build_repo\030\004 \001(\0132=.googl" - + "e.cloud.deploy.v1.SkaffoldModules.Skaffo" - + "ldGCBRepoSourceH\000\032K\n\021SkaffoldGitSource\022\021" - + "\n\004repo\030\001 \001(\tB\003\340A\002\022\021\n\004path\030\002 \001(\tB\003\340A\001\022\020\n\003" - + "ref\030\003 \001(\tB\003\340A\001\032;\n\021SkaffoldGCSSource\022\023\n\006s" - + "ource\030\001 \001(\tB\003\340A\002\022\021\n\004path\030\002 \001(\tB\003\340A\001\032~\n\025S" - + "kaffoldGCBRepoSource\022@\n\nrepository\030\001 \001(\t" - + "B,\340A\002\372A&\n$cloudbuild.googleapis.com/Repo" - + "sitory\022\021\n\004path\030\002 \001(\tB\003\340A\001\022\020\n\003ref\030\003 \001(\tB\003" - + "\340A\001B\010\n\006source\"\300\001\n\034ListCustomTargetTypesR" - + "equest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+clouddep" - + "loy.googleapis.com/CustomTargetType\022\026\n\tp" - + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" - + "\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 " - + "\001(\tB\003\340A\001\"\224\001\n\035ListCustomTargetTypesRespon" - + "se\022E\n\023custom_target_types\030\001 \003(\0132(.google" - + ".cloud.deploy.v1.CustomTargetType\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"" - + "_\n\032GetCustomTargetTypeRequest\022A\n\004name\030\001 " - + "\001(\tB3\340A\002\372A-\n+clouddeploy.googleapis.com/" - + "CustomTargetType\"\210\002\n\035CreateCustomTargetT" - + "ypeRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+clou" + + "\003\340A\001\"\262\001\n\023DeleteTargetRequest\0227\n\004name\030\001 \001" + + "(\tB)\340A\002\372A#\n!clouddeploy.googleapis.com/T" + + "arget\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rallow_" + + "missing\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\004 \001(" + + "\010B\003\340A\001\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"\327\005\n\020CustomTarg" + + "etType\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\"\n\025custom_targ" + + "et_type_id\030\002 \001(\tB\003\340A\003\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022" + + "\030\n\013description\030\004 \001(\tB\003\340A\001\022S\n\013annotations" + + "\030\005 \003(\01329.google.cloud.deploy.v1.CustomTa" + + "rgetType.AnnotationsEntryB\003\340A\001\022I\n\006labels" + + "\030\006 \003(\01324.google.cloud.deploy.v1.CustomTa" + + "rgetType.LabelsEntryB\003\340A\001\0224\n\013create_time" + + "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\010 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022\021\n\004etag\030\t \001(\tB\003\340A\001\022M\n\016cust" + + "om_actions\030\n \001(\01323.google.cloud.deploy.v" + + "1.CustomTargetSkaffoldActionsH\000\0322\n\020Annot" + + "ationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001:\200\001\352A}\n+clouddeploy.googleapis" + + ".com/CustomTargetType\022Nprojects/{project" + + "}/locations/{location}/customTargetTypes" + + "/{custom_target_type}B\014\n\ndefinition\"\245\001\n\033" + + "CustomTargetSkaffoldActions\022\032\n\rrender_ac" + + "tion\030\001 \001(\tB\003\340A\001\022\032\n\rdeploy_action\030\002 \001(\tB\003" + + "\340A\002\022N\n\030include_skaffold_modules\030\003 \003(\0132\'." + + "google.cloud.deploy.v1.SkaffoldModulesB\003" + + "\340A\001\"\302\004\n\017SkaffoldModules\022\024\n\007configs\030\001 \003(\t" + + "B\003\340A\001\022H\n\003git\030\002 \001(\01329.google.cloud.deploy" + + ".v1.SkaffoldModules.SkaffoldGitSourceH\000\022" + + "Y\n\024google_cloud_storage\030\003 \001(\01329.google.c" + + "loud.deploy.v1.SkaffoldModules.SkaffoldG" + + "CSSourceH\000\022`\n\027google_cloud_build_repo\030\004 " + + "\001(\0132=.google.cloud.deploy.v1.SkaffoldMod" + + "ules.SkaffoldGCBRepoSourceH\000\032K\n\021Skaffold" + + "GitSource\022\021\n\004repo\030\001 \001(\tB\003\340A\002\022\021\n\004path\030\002 \001" + + "(\tB\003\340A\001\022\020\n\003ref\030\003 \001(\tB\003\340A\001\032;\n\021SkaffoldGCS" + + "Source\022\023\n\006source\030\001 \001(\tB\003\340A\002\022\021\n\004path\030\002 \001(" + + "\tB\003\340A\001\032~\n\025SkaffoldGCBRepoSource\022@\n\nrepos" + + "itory\030\001 \001(\tB,\340A\002\372A&\n$cloudbuild.googleap" + + "is.com/Repository\022\021\n\004path\030\002 \001(\tB\003\340A\001\022\020\n\003" + + "ref\030\003 \001(\tB\003\340A\001B\010\n\006source\"\300\001\n\034ListCustomT" + + "argetTypesRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" + + "-\022+clouddeploy.googleapis.com/CustomTarg" + + "etType\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_t" + + "oken\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010" + + "order_by\030\005 \001(\tB\003\340A\001\"\224\001\n\035ListCustomTarget" + + "TypesResponse\022E\n\023custom_target_types\030\001 \003" + + "(\0132(.google.cloud.deploy.v1.CustomTarget" + + "Type\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + + "able\030\003 \003(\t\"_\n\032GetCustomTargetTypeRequest" + + "\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+clouddeploy.goog" + + "leapis.com/CustomTargetType\"\210\002\n\035CreateCu" + + "stomTargetTypeRequest\022C\n\006parent\030\001 \001(\tB3\340" + + "A\002\372A-\022+clouddeploy.googleapis.com/Custom" + + "TargetType\022\"\n\025custom_target_type_id\030\002 \001(" + + "\tB\003\340A\002\022I\n\022custom_target_type\030\003 \001(\0132(.goo" + + "gle.cloud.deploy.v1.CustomTargetTypeB\003\340A" + + "\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_o" + + "nly\030\005 \001(\010B\003\340A\001\"\361\001\n\035UpdateCustomTargetTyp" + + "eRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\002\022I\n\022custom_target_" + + "type\030\002 \001(\0132(.google.cloud.deploy.v1.Cust" + + "omTargetTypeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340" + + "A\001\022\032\n\rallow_missing\030\004 \001(\010B\003\340A\001\022\032\n\rvalida" + + "te_only\030\005 \001(\010B\003\340A\001\"\306\001\n\035DeleteCustomTarge" + + "tTypeRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+clou" + "ddeploy.googleapis.com/CustomTargetType\022" - + "\"\n\025custom_target_type_id\030\002 \001(\tB\003\340A\002\022I\n\022c" - + "ustom_target_type\030\003 \001(\0132(.google.cloud.d" - + "eploy.v1.CustomTargetTypeB\003\340A\002\022\027\n\nreques" - + "t_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003" - + "\340A\001\"\361\001\n\035UpdateCustomTargetTypeRequest\0224\n" - + "\013update_mask\030\001 \001(\0132\032.google.protobuf.Fie" - + "ldMaskB\003\340A\002\022I\n\022custom_target_type\030\002 \001(\0132" - + "(.google.cloud.deploy.v1.CustomTargetTyp" - + "eB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow" - + "_missing\030\004 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\005 \001" - + "(\010B\003\340A\001\"\306\001\n\035DeleteCustomTargetTypeReques" - + "t\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+clouddeploy.goo" - + "gleapis.com/CustomTargetType\022\027\n\nrequest_" - + "id\030\002 \001(\tB\003\340A\001\022\032\n\rallow_missing\030\003 \001(\010B\003\340A" - + "\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022\021\n\004etag\030\005 " - + "\001(\tB\003\340A\001\"\221\001\n\017TargetAttribute\022\n\n\002id\030\001 \001(\t" - + "\022C\n\006labels\030\002 \003(\01323.google.cloud.deploy.v" - + "1.TargetAttribute.LabelsEntry\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\256\027\n" - + "\007Release\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\t" - + "B\003\340A\003\022\023\n\013description\030\003 \001(\t\022E\n\013annotation" - + "s\030\004 \003(\01320.google.cloud.deploy.v1.Release" - + ".AnnotationsEntry\022;\n\006labels\030\005 \003(\0132+.goog" - + "le.cloud.deploy.v1.Release.LabelsEntry\022\026" - + "\n\tabandoned\030\027 \001(\010B\003\340A\003\0224\n\013create_time\030\006 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022:\n\021" - + "render_start_time\030\007 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0228\n\017render_end_time\030\010 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\033\n\023sk" - + "affold_config_uri\030\021 \001(\t\022\034\n\024skaffold_conf" - + "ig_path\030\t \001(\t\022>\n\017build_artifacts\030\n \003(\0132%" - + ".google.cloud.deploy.v1.BuildArtifact\022Q\n" - + "\032delivery_pipeline_snapshot\030\013 \001(\0132(.goog" - + "le.cloud.deploy.v1.DeliveryPipelineB\003\340A\003" - + "\022=\n\020target_snapshots\030\014 \003(\0132\036.google.clou" - + "d.deploy.v1.TargetB\003\340A\003\022S\n\034custom_target" - + "_type_snapshots\030\033 \003(\0132(.google.cloud.dep" - + "loy.v1.CustomTargetTypeB\003\340A\003\022F\n\014render_s" - + "tate\030\r \001(\0162+.google.cloud.deploy.v1.Rele" - + "ase.RenderStateB\003\340A\003\022\014\n\004etag\030\020 \001(\t\022\030\n\020sk" - + "affold_version\030\023 \001(\t\022S\n\020target_artifacts" - + "\030\024 \003(\01324.google.cloud.deploy.v1.Release." - + "TargetArtifactsEntryB\003\340A\003\022O\n\016target_rend" - + "ers\030\026 \003(\01322.google.cloud.deploy.v1.Relea" - + "se.TargetRendersEntryB\003\340A\003\022H\n\tcondition\030" - + "\030 \001(\01320.google.cloud.deploy.v1.Release.R" - + "eleaseConditionB\003\340A\003\022U\n\021deploy_parameter" - + "s\030\031 \003(\01325.google.cloud.deploy.v1.Release" - + ".DeployParametersEntryB\003\340A\001\032\324\005\n\014TargetRe" - + "nder\022@\n\017rendering_build\030\001 \001(\tB\'\340A\003\372A!\n\037c" - + "loudbuild.googleapis.com/Build\022\\\n\017render" - + "ing_state\030\002 \001(\0162>.google.cloud.deploy.v1" - + ".Release.TargetRender.TargetRenderStateB" - + "\003\340A\003\022=\n\010metadata\030\006 \001(\0132&.google.cloud.de" - + "ploy.v1.RenderMetadataB\003\340A\003\022U\n\rfailure_c" - + "ause\030\004 \001(\01629.google.cloud.deploy.v1.Rele" - + "ase.TargetRender.FailureCauseB\003\340A\003\022\034\n\017fa" - + "ilure_message\030\005 \001(\tB\003\340A\003\"d\n\021TargetRender" - + "State\022#\n\037TARGET_RENDER_STATE_UNSPECIFIED" - + "\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_PROG" - + "RESS\020\003\"\211\002\n\014FailureCause\022\035\n\031FAILURE_CAUSE" - + "_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABL" - + "E\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\036\n\032CLOUD_BUILD" - + "_REQUEST_FAILED\020\003\022!\n\035VERIFICATION_CONFIG" - + "_NOT_FOUND\020\004\022\033\n\027CUSTOM_ACTION_NOT_FOUND\020" - + "\005\022%\n!DEPLOYMENT_STRATEGY_NOT_SUPPORTED\020\006" - + "\022 \n\034RENDER_FEATURE_NOT_SUPPORTED\020\007\032\'\n\025Re" - + "leaseReadyCondition\022\016\n\006status\030\001 \001(\010\032\362\001\n\032" - + "SkaffoldSupportedCondition\022\016\n\006status\030\001 \001" - + "(\010\022L\n\026skaffold_support_state\030\002 \001(\0162,.goo" - + "gle.cloud.deploy.v1.SkaffoldSupportState" - + "\0229\n\025maintenance_mode_time\030\003 \001(\0132\032.google" - + ".protobuf.Timestamp\022;\n\027support_expiratio" - + "n_time\030\004 \001(\0132\032.google.protobuf.Timestamp" - + "\032\314\001\n\020ReleaseCondition\022V\n\027release_ready_c" - + "ondition\030\001 \001(\01325.google.cloud.deploy.v1." - + "Release.ReleaseReadyCondition\022`\n\034skaffol" - + "d_supported_condition\030\002 \001(\0132:.google.clo" - + "ud.deploy.v1.Release.SkaffoldSupportedCo" - + "ndition\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032^\n\024TargetArti" - + "factsEntry\022\013\n\003key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&" - + ".google.cloud.deploy.v1.TargetArtifact:\002" - + "8\001\032b\n\022TargetRendersEntry\022\013\n\003key\030\001 \001(\t\022;\n" - + "\005value\030\002 \001(\0132,.google.cloud.deploy.v1.Re" - + "lease.TargetRender:\0028\001\0327\n\025DeployParamete" - + "rsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "W\n\013RenderState\022\034\n\030RENDER_STATE_UNSPECIFI" - + "ED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_PR" - + "OGRESS\020\003:\212\001\352A\206\001\n\"clouddeploy.googleapis." - + "com/Release\022`projects/{project}/location" - + "s/{location}/deliveryPipelines/{delivery" - + "_pipeline}/releases/{release}\"+\n\rBuildAr" - + "tifact\022\r\n\005image\030\003 \001(\t\022\013\n\003tag\030\002 \001(\t\"\253\003\n\016T" - + "argetArtifact\022\033\n\014artifact_uri\030\004 \001(\tB\003\340A\003" - + "H\000\022!\n\024skaffold_config_path\030\002 \001(\tB\003\340A\003\022\032\n" - + "\rmanifest_path\030\003 \001(\tB\003\340A\003\022X\n\017phase_artif" - + "acts\030\005 \003(\0132:.google.cloud.deploy.v1.Targ" - + "etArtifact.PhaseArtifactsEntryB\003\340A\003\032o\n\rP" - + "haseArtifact\022!\n\024skaffold_config_path\030\001 \001" - + "(\tB\003\340A\003\022\032\n\rmanifest_path\030\003 \001(\tB\003\340A\003\022\037\n\022j" - + "ob_manifests_path\030\004 \001(\tB\003\340A\003\032k\n\023PhaseArt" - + "ifactsEntry\022\013\n\003key\030\001 \001(\t\022C\n\005value\030\002 \001(\0132" - + "4.google.cloud.deploy.v1.TargetArtifact." - + "PhaseArtifact:\0028\001B\005\n\003uri\"H\n\016DeployArtifa" - + "ct\022\031\n\014artifact_uri\030\001 \001(\tB\003\340A\003\022\033\n\016manifes" - + "t_paths\030\002 \003(\tB\003\340A\003\"M\n\026CloudRunRenderMeta" - + "data\0223\n\007service\030\001 \001(\tB\"\340A\003\372A\034\n\032run.googl" - + "eapis.com/Service\"\225\001\n\016RenderMetadata\022F\n\t" - + "cloud_run\030\001 \001(\0132..google.cloud.deploy.v1" - + ".CloudRunRenderMetadataB\003\340A\003\022;\n\006custom\030\002" - + " \001(\0132&.google.cloud.deploy.v1.CustomMeta" - + "dataB\003\340A\003\"\267\001\n\023ListReleasesRequest\022C\n\006par" - + "ent\030\001 \001(\tB3\340A\002\372A-\n+clouddeploy.googleapi" - + "s.com/DeliveryPipeline\022\026\n\tpage_size\030\002 \001(" - + "\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filte" - + "r\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"w\n\024L", - "istReleasesResponse\0221\n\010releases\030\001 \003(\0132\037." - + "google.cloud.deploy.v1.Release\022\027\n\017next_p" - + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\021" - + "GetReleaseRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n" - + "\"clouddeploy.googleapis.com/Release\"\340\001\n\024" - + "CreateReleaseRequest\022C\n\006parent\030\001 \001(\tB3\340A" - + "\002\372A-\n+clouddeploy.googleapis.com/Deliver" - + "yPipeline\022\027\n\nrelease_id\030\002 \001(\tB\003\340A\002\0225\n\007re" - + "lease\030\003 \001(\0132\037.google.cloud.deploy.v1.Rel" - + "easeB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rva" - + "lidate_only\030\005 \001(\010B\003\340A\001\"\350\016\n\007Rollout\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\023\n\013descr" - + "iption\030\003 \001(\t\022E\n\013annotations\030\004 \003(\01320.goog" - + "le.cloud.deploy.v1.Rollout.AnnotationsEn" - + "try\022;\n\006labels\030\005 \003(\0132+.google.cloud.deplo" - + "y.v1.Rollout.LabelsEntry\0224\n\013create_time\030" - + "\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225" - + "\n\014approve_time\030\007 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\0225\n\014enqueue_time\030\010 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022:\n\021deploy_s" - + "tart_time\030\t \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0228\n\017deploy_end_time\030\n \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\022\026\n\ttarget_id\030" - + "\022 \001(\tB\003\340A\002\022J\n\016approval_state\030\014 \001(\0162-.goo" - + "gle.cloud.deploy.v1.Rollout.ApprovalStat" - + "eB\003\340A\003\0229\n\005state\030\r \001(\0162%.google.cloud.dep" - + "loy.v1.Rollout.StateB\003\340A\003\022\033\n\016failure_rea" - + "son\030\016 \001(\tB\003\340A\003\022@\n\017deploying_build\030\021 \001(\tB" - + "\'\340A\003\372A!\n\037cloudbuild.googleapis.com/Build" - + "\022\014\n\004etag\030\020 \001(\t\022O\n\024deploy_failure_cause\030\023" - + " \001(\0162,.google.cloud.deploy.v1.Rollout.Fa" - + "ilureCauseB\003\340A\003\0222\n\006phases\030\027 \003(\0132\035.google" - + ".cloud.deploy.v1.PhaseB\003\340A\003\0227\n\010metadata\030" - + "\030 \001(\0132 .google.cloud.deploy.v1.MetadataB" - + "\003\340A\003\022\037\n\022controller_rollout\030\031 \001(\tB\003\340A\003\022 \n" - + "\023rollback_of_rollout\030\032 \001(\tB\003\340A\003\022$\n\027rolle" - + "d_back_by_rollouts\030\033 \003(\tB\003\340A\003\0322\n\020Annotat" - + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"{\n\rApprovalState\022\036\n\032APPROVAL_ST" - + "ATE_UNSPECIFIED\020\000\022\022\n\016NEEDS_APPROVAL\020\001\022\032\n" - + "\026DOES_NOT_NEED_APPROVAL\020\002\022\014\n\010APPROVED\020\003\022" - + "\014\n\010REJECTED\020\004\"\304\001\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_" - + "PROGRESS\020\003\022\024\n\020PENDING_APPROVAL\020\004\022\025\n\021APPR" - + "OVAL_REJECTED\020\005\022\013\n\007PENDING\020\006\022\023\n\017PENDING_" - + "RELEASE\020\007\022\016\n\nCANCELLING\020\010\022\r\n\tCANCELLED\020\t" - + "\022\n\n\006HALTED\020\n\"\212\002\n\014FailureCause\022\035\n\031FAILURE" - + "_CAUSE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAV" - + "AILABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEADL" - + "INE_EXCEEDED\020\003\022\022\n\016RELEASE_FAILED\020\004\022\025\n\021RE" - + "LEASE_ABANDONED\020\005\022!\n\035VERIFICATION_CONFIG" - + "_NOT_FOUND\020\006\022\036\n\032CLOUD_BUILD_REQUEST_FAIL" - + "ED\020\007\022#\n\037OPERATION_FEATURE_NOT_SUPPORTED\020" - + "\010:\235\001\352A\231\001\n\"clouddeploy.googleapis.com/Rol" - + "lout\022sprojects/{project}/locations/{loca" - + "tion}/deliveryPipelines/{delivery_pipeli" - + "ne}/releases/{release}/rollouts/{rollout" - + "}\"\325\001\n\010Metadata\022@\n\tcloud_run\030\001 \001(\0132(.goog" - + "le.cloud.deploy.v1.CloudRunMetadataB\003\340A\003" - + "\022J\n\nautomation\030\002 \001(\01321.google.cloud.depl" - + "oy.v1.AutomationRolloutMetadataB\003\340A\003\022;\n\006" - + "custom\030\003 \001(\0132&.google.cloud.deploy.v1.Cu" - + "stomMetadataB\003\340A\003\"\345\001\n\024DeployJobRunMetada" - + "ta\022@\n\tcloud_run\030\001 \001(\0132(.google.cloud.dep" - + "loy.v1.CloudRunMetadataB\003\340A\003\022N\n\rcustom_t" - + "arget\030\002 \001(\01322.google.cloud.deploy.v1.Cus" - + "tomTargetDeployMetadataB\003\340A\003\022;\n\006custom\030\003" - + " \001(\0132&.google.cloud.deploy.v1.CustomMeta" - + "dataB\003\340A\003\"\246\001\n\020CloudRunMetadata\0223\n\007servic" - + "e\030\001 \001(\tB\"\340A\003\372A\034\n\032run.googleapis.com/Serv" - + "ice\022\031\n\014service_urls\030\002 \003(\tB\003\340A\003\022\025\n\010revisi" - + "on\030\003 \001(\tB\003\340A\003\022+\n\003job\030\004 \001(\tB\036\340A\003\372A\030\n\026run." - + "googleapis.com/Job\"7\n\032CustomTargetDeploy" - + "Metadata\022\031\n\014skip_message\030\001 \001(\tB\003\340A\003\"\213\001\n\031" - + "AutomationRolloutMetadata\022#\n\026promote_aut" - + "omation_run\030\001 \001(\tB\003\340A\003\022$\n\027advance_automa" - + "tion_runs\030\002 \003(\tB\003\340A\003\022#\n\026repair_automatio" - + "n_runs\030\003 \003(\tB\003\340A\003\"\210\001\n\016CustomMetadata\022G\n\006" - + "values\030\001 \003(\01322.google.cloud.deploy.v1.Cu" - + "stomMetadata.ValuesEntryB\003\340A\003\032-\n\013ValuesE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\374\002\n" - + "\005Phase\022\017\n\002id\030\001 \001(\tB\003\340A\003\0227\n\005state\030\003 \001(\0162#" - + ".google.cloud.deploy.v1.Phase.StateB\003\340A\003" - + "\022\031\n\014skip_message\030\006 \001(\tB\003\340A\003\022F\n\017deploymen" - + "t_jobs\030\004 \001(\0132&.google.cloud.deploy.v1.De" - + "ploymentJobsB\003\340A\003H\000\022K\n\022child_rollout_job" - + "s\030\005 \001(\0132(.google.cloud.deploy.v1.ChildRo" - + "lloutJobsB\003\340A\003H\000\"q\n\005State\022\025\n\021STATE_UNSPE" - + "CIFIED\020\000\022\013\n\007PENDING\020\001\022\017\n\013IN_PROGRESS\020\002\022\r" - + "\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\013\n\007ABORTED\020\005\022\013" - + "\n\007SKIPPED\020\006B\006\n\004jobs\"\357\001\n\016DeploymentJobs\0224" - + "\n\ndeploy_job\030\001 \001(\0132\033.google.cloud.deploy" - + ".v1.JobB\003\340A\003\0224\n\nverify_job\030\002 \001(\0132\033.googl" - + "e.cloud.deploy.v1.JobB\003\340A\003\0227\n\rpredeploy_" - + "job\030\003 \001(\0132\033.google.cloud.deploy.v1.JobB\003" - + "\340A\003\0228\n\016postdeploy_job\030\004 \001(\0132\033.google.clo" - + "ud.deploy.v1.JobB\003\340A\003\"\221\001\n\020ChildRolloutJo" - + "bs\022=\n\023create_rollout_jobs\030\001 \003(\0132\033.google" - + ".cloud.deploy.v1.JobB\003\340A\003\022>\n\024advance_rol" - + "lout_jobs\030\002 \003(\0132\033.google.cloud.deploy.v1" - + ".JobB\003\340A\003\"\367\005\n\003Job\022\017\n\002id\030\001 \001(\tB\003\340A\003\0225\n\005st" - + "ate\030\002 \001(\0162!.google.cloud.deploy.v1.Job.S" - + "tateB\003\340A\003\022\031\n\014skip_message\030\010 \001(\tB\003\340A\003\022:\n\007" - + "job_run\030\003 \001(\tB)\340A\003\372A#\n!clouddeploy.googl" - + "eapis.com/JobRun\022<\n\ndeploy_job\030\004 \001(\0132!.g" - + "oogle.cloud.deploy.v1.DeployJobB\003\340A\003H\000\022<" - + "\n\nverify_job\030\005 \001(\0132!.google.cloud.deploy" - + ".v1.VerifyJobB\003\340A\003H\000\022B\n\rpredeploy_job\030\t " - + "\001(\0132$.google.cloud.deploy.v1.PredeployJo" - + "bB\003\340A\003H\000\022D\n\016postdeploy_job\030\n \001(\0132%.googl" - + "e.cloud.deploy.v1.PostdeployJobB\003\340A\003H\000\022V" - + "\n\030create_child_rollout_job\030\006 \001(\0132-.googl" - + "e.cloud.deploy.v1.CreateChildRolloutJobB" - + "\003\340A\003H\000\022X\n\031advance_child_rollout_job\030\007 \001(" - + "\0132..google.cloud.deploy.v1.AdvanceChildR" - + "olloutJobB\003\340A\003H\000\"\214\001\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\013\n\007PENDING\020\001\022\014\n\010DISABLED\020\002\022\017\n\013" - + "IN_PROGRESS\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006FAILED\020\005" - + "\022\013\n\007ABORTED\020\006\022\013\n\007SKIPPED\020\007\022\013\n\007IGNORED\020\010B" - + "\n\n\010job_type\"\013\n\tDeployJob\"\013\n\tVerifyJob\"$\n" - + "\014PredeployJob\022\024\n\007actions\030\001 \003(\tB\003\340A\003\"%\n\rP" - + "ostdeployJob\022\024\n\007actions\030\001 \003(\tB\003\340A\003\"\027\n\025Cr" - + "eateChildRolloutJob\"\030\n\026AdvanceChildRollo" - + "utJob\"\256\001\n\023ListRolloutsRequest\022:\n\006parent\030" - + "\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.co" - + "m/Release\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npag" - + "e_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022" - + "\025\n\010order_by\030\005 \001(\tB\003\340A\001\"w\n\024ListRolloutsRe" - + "sponse\0221\n\010rollouts\030\001 \003(\0132\037.google.cloud." - + "deploy.v1.Rollout\022\027\n\017next_page_token\030\002 \001" - + "(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\021GetRolloutReq" - + "uest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy." - + "googleapis.com/Rollout\"\367\001\n\024CreateRollout" - + "Request\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"cloudde" - + "ploy.googleapis.com/Release\022\027\n\nrollout_i" - + "d\030\002 \001(\tB\003\340A\002\0225\n\007rollout\030\003 \001(\0132\037.google.c" - + "loud.deploy.v1.RolloutB\003\340A\002\022\027\n\nrequest_i" - + "d\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001" - + "\022\036\n\021starting_phase_id\030\007 \001(\tB\003\340A\001\"\200\002\n\021Ope" - + "rationMetadata\0224\n\013create_time\030\001 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0221\n\010end_time" - + "\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022" - + "\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026requeste" - + "d_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version" - + "\030\007 \001(\tB\003\340A\003\"h\n\025ApproveRolloutRequest\0228\n\004" - + "name\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googleap" - + "is.com/Rollout\022\025\n\010approved\030\002 \001(\010B\003\340A\002\"\030\n" - + "\026ApproveRolloutResponse\"h\n\025AdvanceRollou" - + "tRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"clouddep" - + "loy.googleapis.com/Rollout\022\025\n\010phase_id\030\002" - + " \001(\tB\003\340A\002\"\030\n\026AdvanceRolloutResponse\"P\n\024C" - + "ancelRolloutRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A" - + "$\n\"clouddeploy.googleapis.com/Rollout\"\027\n" - + "\025CancelRolloutResponse\"{\n\020IgnoreJobReque" - + "st\022;\n\007rollout\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy" - + ".googleapis.com/Rollout\022\025\n\010phase_id\030\002 \001(" - + "\tB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\"\023\n\021IgnoreJob" - + "Response\"z\n\017RetryJobRequest\022;\n\007rollout\030\001" - + " \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com" - + "/Rollout\022\025\n\010phase_id\030\002 \001(\tB\003\340A\002\022\023\n\006job_i" - + "d\030\003 \001(\tB\003\340A\002\"\022\n\020RetryJobResponse\"Q\n\025Aban" - + "donReleaseRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n" - + "\"clouddeploy.googleapis.com/Release\"\030\n\026A" - + "bandonReleaseResponse\"\320\010\n\006JobRun\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\025\n\010phase_i" - + "d\030\003 \001(\tB\003\340A\003\022\023\n\006job_id\030\004 \001(\tB\003\340A\003\0224\n\013cre" - + "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\0223\n\nstart_time\030\006 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0221\n\010end_time\030\007 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0228\n\005state" - + "\030\010 \001(\0162$.google.cloud.deploy.v1.JobRun.S" - + "tateB\003\340A\003\022C\n\016deploy_job_run\030\t \001(\0132$.goog" - + "le.cloud.deploy.v1.DeployJobRunB\003\340A\003H\000\022C" - + "\n\016verify_job_run\030\n \001(\0132$.google.cloud.de" - + "ploy.v1.VerifyJobRunB\003\340A\003H\000\022I\n\021predeploy" - + "_job_run\030\016 \001(\0132\'.google.cloud.deploy.v1." - + "PredeployJobRunB\003\340A\003H\000\022K\n\022postdeploy_job" - + "_run\030\017 \001(\0132(.google.cloud.deploy.v1.Post" - + "deployJobRunB\003\340A\003H\000\022]\n\034create_child_roll" - + "out_job_run\030\014 \001(\01320.google.cloud.deploy." - + "v1.CreateChildRolloutJobRunB\003\340A\003H\000\022_\n\035ad" - + "vance_child_rollout_job_run\030\r \001(\01321.goog" - + "le.cloud.deploy.v1.AdvanceChildRolloutJo" - + "bRunB\003\340A\003H\000\022\021\n\004etag\030\013 \001(\tB\003\340A\003\"k\n\005State\022" - + "\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013IN_PROGRESS\020\001\022" - + "\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\017\n\013TERMINATIN" - + "G\020\004\022\016\n\nTERMINATED\020\005:\257\001\352A\253\001\n!clouddeploy." - + "googleapis.com/JobRun\022\205\001projects/{projec" + + "\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rallow_missin" + + "g\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001" + + "\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"\221\001\n\017TargetAttribute\022" + + "\n\n\002id\030\001 \001(\t\022C\n\006labels\030\002 \003(\01323.google.clo" + + "ud.deploy.v1.TargetAttribute.LabelsEntry" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"\256\027\n\007Release\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020" + + "\n\003uid\030\002 \001(\tB\003\340A\003\022\023\n\013description\030\003 \001(\t\022E\n" + + "\013annotations\030\004 \003(\01320.google.cloud.deploy" + + ".v1.Release.AnnotationsEntry\022;\n\006labels\030\005" + + " \003(\0132+.google.cloud.deploy.v1.Release.La" + + "belsEntry\022\026\n\tabandoned\030\027 \001(\010B\003\340A\003\0224\n\013cre" + + "ate_time\030\006 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022:\n\021render_start_time\030\007 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0228\n\017render_en" + + "d_time\030\010 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022\033\n\023skaffold_config_uri\030\021 \001(\t\022\034\n\024sk" + + "affold_config_path\030\t \001(\t\022>\n\017build_artifa" + + "cts\030\n \003(\0132%.google.cloud.deploy.v1.Build" + + "Artifact\022Q\n\032delivery_pipeline_snapshot\030\013" + + " \001(\0132(.google.cloud.deploy.v1.DeliveryPi" + + "pelineB\003\340A\003\022=\n\020target_snapshots\030\014 \003(\0132\036." + + "google.cloud.deploy.v1.TargetB\003\340A\003\022S\n\034cu" + + "stom_target_type_snapshots\030\033 \003(\0132(.googl" + + "e.cloud.deploy.v1.CustomTargetTypeB\003\340A\003\022" + + "F\n\014render_state\030\r \001(\0162+.google.cloud.dep" + + "loy.v1.Release.RenderStateB\003\340A\003\022\014\n\004etag\030" + + "\020 \001(\t\022\030\n\020skaffold_version\030\023 \001(\t\022S\n\020targe" + + "t_artifacts\030\024 \003(\01324.google.cloud.deploy." + + "v1.Release.TargetArtifactsEntryB\003\340A\003\022O\n\016" + + "target_renders\030\026 \003(\01322.google.cloud.depl" + + "oy.v1.Release.TargetRendersEntryB\003\340A\003\022H\n" + + "\tcondition\030\030 \001(\01320.google.cloud.deploy.v" + + "1.Release.ReleaseConditionB\003\340A\003\022U\n\021deplo" + + "y_parameters\030\031 \003(\01325.google.cloud.deploy" + + ".v1.Release.DeployParametersEntryB\003\340A\001\032\324" + + "\005\n\014TargetRender\022@\n\017rendering_build\030\001 \001(\t" + + "B\'\340A\003\372A!\n\037cloudbuild.googleapis.com/Buil" + + "d\022\\\n\017rendering_state\030\002 \001(\0162>.google.clou" + + "d.deploy.v1.Release.TargetRender.TargetR" + + "enderStateB\003\340A\003\022=\n\010metadata\030\006 \001(\0132&.goog" + + "le.cloud.deploy.v1.RenderMetadataB\003\340A\003\022U" + + "\n\rfailure_cause\030\004 \001(\01629.google.cloud.dep" + + "loy.v1.Release.TargetRender.FailureCause" + + "B\003\340A\003\022\034\n\017failure_message\030\005 \001(\tB\003\340A\003\"d\n\021T" + + "argetRenderState\022#\n\037TARGET_RENDER_STATE_" + + "UNSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002" + + "\022\017\n\013IN_PROGRESS\020\003\"\211\002\n\014FailureCause\022\035\n\031FA" + + "ILURE_CAUSE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD" + + "_UNAVAILABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\036\n\032" + + "CLOUD_BUILD_REQUEST_FAILED\020\003\022!\n\035VERIFICA" + + "TION_CONFIG_NOT_FOUND\020\004\022\033\n\027CUSTOM_ACTION" + + "_NOT_FOUND\020\005\022%\n!DEPLOYMENT_STRATEGY_NOT_" + + "SUPPORTED\020\006\022 \n\034RENDER_FEATURE_NOT_SUPPOR" + + "TED\020\007\032\'\n\025ReleaseReadyCondition\022\016\n\006status" + + "\030\001 \001(\010\032\362\001\n\032SkaffoldSupportedCondition\022\016\n" + + "\006status\030\001 \001(\010\022L\n\026skaffold_support_state\030" + + "\002 \001(\0162,.google.cloud.deploy.v1.SkaffoldS" + + "upportState\0229\n\025maintenance_mode_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp\022;\n\027suppor" + + "t_expiration_time\030\004 \001(\0132\032.google.protobu" + + "f.Timestamp\032\314\001\n\020ReleaseCondition\022V\n\027rele" + + "ase_ready_condition\030\001 \001(\01325.google.cloud" + + ".deploy.v1.Release.ReleaseReadyCondition" + + "\022`\n\034skaffold_supported_condition\030\002 \001(\0132:" + + ".google.cloud.deploy.v1.Release.Skaffold" + + "SupportedCondition\0322\n\020AnnotationsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032^\n" + + "\024TargetArtifactsEntry\022\013\n\003key\030\001 \001(\t\0225\n\005va" + + "lue\030\002 \001(\0132&.google.cloud.deploy.v1.Targe" + + "tArtifact:\0028\001\032b\n\022TargetRendersEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.d" + + "eploy.v1.Release.TargetRender:\0028\001\0327\n\025Dep" + + "loyParametersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\"W\n\013RenderState\022\034\n\030RENDER_STAT" + + "E_UNSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED" + + "\020\002\022\017\n\013IN_PROGRESS\020\003:\212\001\352A\206\001\n\"clouddeploy." + + "googleapis.com/Release\022`projects/{projec" + "t}/locations/{location}/deliveryPipeline" + "s/{delivery_pipeline}/releases/{release}" - + "/rollouts/{rollout}/jobRuns/{job_run}B\t\n" - + "\007job_run\"\225\004\n\014DeployJobRun\0226\n\005build\030\001 \001(\t" - + "B\'\340A\003\372A!\n\037cloudbuild.googleapis.com/Buil" - + "d\022M\n\rfailure_cause\030\002 \001(\01621.google.cloud." - + "deploy.v1.DeployJobRun.FailureCauseB\003\340A\003" - + "\022\034\n\017failure_message\030\003 \001(\tB\003\340A\003\022C\n\010metada" - + "ta\030\004 \001(\0132,.google.cloud.deploy.v1.Deploy" - + "JobRunMetadataB\003\340A\003\022=\n\010artifact\030\005 \001(\0132&." - + "google.cloud.deploy.v1.DeployArtifactB\003\340" - + "A\003\"\333\001\n\014FailureCause\022\035\n\031FAILURE_CAUSE_UNS" - + "PECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022" - + "\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEADLINE_EXCEED" - + "ED\020\003\022 \n\034MISSING_RESOURCES_FOR_CANARY\020\004\022\036" - + "\n\032CLOUD_BUILD_REQUEST_FAILED\020\005\022 \n\034DEPLOY" - + "_FEATURE_NOT_SUPPORTED\020\006\"\250\003\n\014VerifyJobRu" - + "n\0226\n\005build\030\001 \001(\tB\'\340A\003\372A!\n\037cloudbuild.goo" - + "gleapis.com/Build\022\031\n\014artifact_uri\030\002 \001(\tB" - + "\003\340A\003\022\033\n\016event_log_path\030\003 \001(\tB\003\340A\003\022M\n\rfai" - + "lure_cause\030\004 \001(\01621.google.cloud.deploy.v" - + "1.VerifyJobRun.FailureCauseB\003\340A\003\022\034\n\017fail" - + "ure_message\030\005 \001(\tB\003\340A\003\"\272\001\n\014FailureCause\022" - + "\035\n\031FAILURE_CAUSE_UNSPECIFIED\020\000\022\033\n\027CLOUD_" - + "BUILD_UNAVAILABLE\020\001\022\024\n\020EXECUTION_FAILED\020" - + "\002\022\025\n\021DEADLINE_EXCEEDED\020\003\022!\n\035VERIFICATION" - + "_CONFIG_NOT_FOUND\020\004\022\036\n\032CLOUD_BUILD_REQUE" - + "ST_FAILED\020\005\"\323\002\n\017PredeployJobRun\0226\n\005build" - + "\030\001 \001(\tB\'\340A\003\372A!\n\037cloudbuild.googleapis.co" - + "m/Build\022P\n\rfailure_cause\030\002 \001(\01624.google." - + "cloud.deploy.v1.PredeployJobRun.FailureC" - + "auseB\003\340A\003\022\034\n\017failure_message\030\003 \001(\tB\003\340A\003\"" - + "\227\001\n\014FailureCause\022\035\n\031FAILURE_CAUSE_UNSPEC" - + "IFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n\020" - + "EXECUTION_FAILED\020\002\022\025\n\021DEADLINE_EXCEEDED\020" - + "\003\022\036\n\032CLOUD_BUILD_REQUEST_FAILED\020\004\"\325\002\n\020Po" - + "stdeployJobRun\0226\n\005build\030\001 \001(\tB\'\340A\003\372A!\n\037c" - + "loudbuild.googleapis.com/Build\022Q\n\rfailur" - + "e_cause\030\002 \001(\01625.google.cloud.deploy.v1.P" - + "ostdeployJobRun.FailureCauseB\003\340A\003\022\034\n\017fai" - + "lure_message\030\003 \001(\tB\003\340A\003\"\227\001\n\014FailureCause" + + "\"+\n\rBuildArtifact\022\r\n\005image\030\003 \001(\t\022\013\n\003tag\030" + + "\002 \001(\t\"\253\003\n\016TargetArtifact\022\033\n\014artifact_uri" + + "\030\004 \001(\tB\003\340A\003H\000\022!\n\024skaffold_config_path\030\002 " + + "\001(\tB\003\340A\003\022\032\n\rmanifest_path\030\003 \001(\tB\003\340A\003\022X\n\017" + + "phase_artifacts\030\005 \003(\0132:.google.cloud.dep" + + "loy.v1.TargetArtifact.PhaseArtifactsEntr" + + "yB\003\340A\003\032o\n\rPhaseArtifact\022!\n\024skaffold_conf" + + "ig_path\030\001 \001(\tB\003\340A\003\022\032\n\rmanifest_path\030\003 \001(" + + "\tB\003\340A\003\022\037\n\022job_manifests_path\030\004 \001(\tB\003\340A\003\032" + + "k\n\023PhaseArtifactsEntry\022\013\n\003key\030\001 \001(\t\022C\n\005v" + + "alue\030\002 \001(\01324.google.cloud.deploy.v1.Targ" + + "etArtifact.PhaseArtifact:\0028\001B\005\n\003uri\"H\n\016D" + + "eployArtifact\022\031\n\014artifact_uri\030\001 \001(\tB\003\340A\003" + + "\022\033\n\016manifest_paths\030\002 \003(\tB\003\340A\003\"M\n\026CloudRu" + + "nRenderMetadata\0223\n\007service\030\001 \001(\tB\"\340A\003\372A\034" + + "\n\032run.googleapis.com/Service\"\225\001\n\016RenderM" + + "etadata\022F\n\tcloud_run\030\001 \001(\0132..google.clou" + + "d.deploy.v1.CloudRunRenderMetadataB\003\340A\003\022" + + ";\n\006custom\030\002 \001(\0132&.google.cloud.deploy.v1" + + ".CustomMetadataB\003\340A\003\"\267\001\n\023ListReleasesReq" + + "uest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+clouddeplo" + + "y.googleapis.com/DeliveryPipeline\022\026\n\tpag", + "e_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340" + + "A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(" + + "\tB\003\340A\001\"w\n\024ListReleasesResponse\0221\n\010releas" + + "es\030\001 \003(\0132\037.google.cloud.deploy.v1.Releas" + + "e\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" + + "e\030\003 \003(\t\"M\n\021GetReleaseRequest\0228\n\004name\030\001 \001" + + "(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com/R" + + "elease\"\340\001\n\024CreateReleaseRequest\022C\n\006paren" + + "t\030\001 \001(\tB3\340A\002\372A-\n+clouddeploy.googleapis." + + "com/DeliveryPipeline\022\027\n\nrelease_id\030\002 \001(\t" + + "B\003\340A\002\0225\n\007release\030\003 \001(\0132\037.google.cloud.de" + + "ploy.v1.ReleaseB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\t" + + "B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\350\016\n\007Ro" + + "llout\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340" + + "A\003\022\023\n\013description\030\003 \001(\t\022E\n\013annotations\030\004" + + " \003(\01320.google.cloud.deploy.v1.Rollout.An" + + "notationsEntry\022;\n\006labels\030\005 \003(\0132+.google." + + "cloud.deploy.v1.Rollout.LabelsEntry\0224\n\013c" + + "reate_time\030\006 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0225\n\014approve_time\030\007 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0225\n\014enqueue_time" + + "\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + ":\n\021deploy_start_time\030\t \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0228\n\017deploy_end_time\030\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\026\n" + + "\ttarget_id\030\022 \001(\tB\003\340A\002\022J\n\016approval_state\030" + + "\014 \001(\0162-.google.cloud.deploy.v1.Rollout.A" + + "pprovalStateB\003\340A\003\0229\n\005state\030\r \001(\0162%.googl" + + "e.cloud.deploy.v1.Rollout.StateB\003\340A\003\022\033\n\016" + + "failure_reason\030\016 \001(\tB\003\340A\003\022@\n\017deploying_b" + + "uild\030\021 \001(\tB\'\340A\003\372A!\n\037cloudbuild.googleapi" + + "s.com/Build\022\014\n\004etag\030\020 \001(\t\022O\n\024deploy_fail" + + "ure_cause\030\023 \001(\0162,.google.cloud.deploy.v1" + + ".Rollout.FailureCauseB\003\340A\003\0222\n\006phases\030\027 \003" + + "(\0132\035.google.cloud.deploy.v1.PhaseB\003\340A\003\0227" + + "\n\010metadata\030\030 \001(\0132 .google.cloud.deploy.v" + + "1.MetadataB\003\340A\003\022\037\n\022controller_rollout\030\031 " + + "\001(\tB\003\340A\003\022 \n\023rollback_of_rollout\030\032 \001(\tB\003\340" + + "A\003\022$\n\027rolled_back_by_rollouts\030\033 \003(\tB\003\340A\003" + + "\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"{\n\rApprovalState\022\036\n\032" + + "APPROVAL_STATE_UNSPECIFIED\020\000\022\022\n\016NEEDS_AP" + + "PROVAL\020\001\022\032\n\026DOES_NOT_NEED_APPROVAL\020\002\022\014\n\010" + + "APPROVED\020\003\022\014\n\010REJECTED\020\004\"\304\001\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAIL" + + "ED\020\002\022\017\n\013IN_PROGRESS\020\003\022\024\n\020PENDING_APPROVA" + + "L\020\004\022\025\n\021APPROVAL_REJECTED\020\005\022\013\n\007PENDING\020\006\022" + + "\023\n\017PENDING_RELEASE\020\007\022\016\n\nCANCELLING\020\010\022\r\n\t" + + "CANCELLED\020\t\022\n\n\006HALTED\020\n\"\212\002\n\014FailureCause" + "\022\035\n\031FAILURE_CAUSE_UNSPECIFIED\020\000\022\033\n\027CLOUD" + "_BUILD_UNAVAILABLE\020\001\022\024\n\020EXECUTION_FAILED" - + "\020\002\022\025\n\021DEADLINE_EXCEEDED\020\003\022\036\n\032CLOUD_BUILD" - + "_REQUEST_FAILED\020\004\"O\n\030CreateChildRolloutJ" - + "obRun\022\024\n\007rollout\030\001 \001(\tB\003\340A\003\022\035\n\020rollout_p" - + "hase_id\030\002 \001(\tB\003\340A\003\"P\n\031AdvanceChildRollou" - + "tJobRun\022\024\n\007rollout\030\001 \001(\tB\003\340A\003\022\035\n\020rollout" - + "_phase_id\030\002 \001(\tB\003\340A\003\"\255\001\n\022ListJobRunsRequ" - + "est\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy" - + ".googleapis.com/Rollout\022\026\n\tpage_size\030\002 \001" - + "(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filt" - + "er\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"u\n\023" - + "ListJobRunsResponse\0220\n\010job_runs\030\001 \003(\0132\036." - + "google.cloud.deploy.v1.JobRun\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"K\n\020G" - + "etJobRunRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!c" - + "louddeploy.googleapis.com/JobRun\"Q\n\026Term" - + "inateJobRunRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#" - + "\n!clouddeploy.googleapis.com/JobRun\"\031\n\027T" - + "erminateJobRunResponse\"\325\001\n\006Config\022\014\n\004nam" - + "e\030\001 \001(\t\022C\n\022supported_versions\030\002 \003(\0132\'.go" - + "ogle.cloud.deploy.v1.SkaffoldVersion\022 \n\030" - + "default_skaffold_version\030\003 \001(\t:V\352AS\n!clo" - + "uddeploy.googleapis.com/Config\022.projects" - + "/{project}/locations/{location}/config\"\307" - + "\001\n\017SkaffoldVersion\022\017\n\007version\030\001 \001(\t\0229\n\025m" - + "aintenance_mode_time\030\003 \001(\0132\032.google.prot" - + "obuf.Timestamp\022;\n\027support_expiration_tim" - + "e\030\004 \001(\0132\032.google.protobuf.Timestamp\022+\n\020s" - + "upport_end_date\030\002 \001(\0132\021.google.type.Date" - + "\"K\n\020GetConfigRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372" - + "A#\n!clouddeploy.googleapis.com/Config\"\227\006" - + "\n\nAutomation\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002" - + " \001(\tB\003\340A\003\022\030\n\013description\030\003 \001(\tB\003\340A\001\0224\n\013c" - + "reate_time\030\004 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\022M\n\013annotations\030\006" - + " \003(\01323.google.cloud.deploy.v1.Automation" - + ".AnnotationsEntryB\003\340A\001\022C\n\006labels\030\007 \003(\0132." - + ".google.cloud.deploy.v1.Automation.Label" - + "sEntryB\003\340A\001\022\021\n\004etag\030\010 \001(\tB\003\340A\001\022\026\n\tsuspen" - + "ded\030\t \001(\010B\003\340A\001\022\034\n\017service_account\030\n \001(\tB" - + "\003\340A\002\022I\n\010selector\030\013 \001(\01322.google.cloud.de" - + "ploy.v1.AutomationResourceSelectorB\003\340A\002\022" - + ":\n\005rules\030\016 \003(\0132&.google.cloud.deploy.v1." - + "AutomationRuleB\003\340A\002\0322\n\020AnnotationsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Label" - + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\226" - + "\001\352A\222\001\n%clouddeploy.googleapis.com/Automa" - + "tion\022fprojects/{project}/locations/{loca" - + "tion}/deliveryPipelines/{delivery_pipeli" - + "ne}/automations/{automation}R\001\001\"V\n\032Autom" - + "ationResourceSelector\0228\n\007targets\030\001 \003(\0132\'" - + ".google.cloud.deploy.v1.TargetAttribute\"" - + "\211\002\n\016AutomationRule\022O\n\024promote_release_ru" - + "le\030\001 \001(\0132*.google.cloud.deploy.v1.Promot" - + "eReleaseRuleB\003\340A\001H\000\022O\n\024advance_rollout_r" - + "ule\030\002 \001(\0132*.google.cloud.deploy.v1.Advan" - + "ceRolloutRuleB\003\340A\001H\000\022M\n\023repair_rollout_r" - + "ule\030\003 \001(\0132).google.cloud.deploy.v1.Repai" - + "rRolloutRuleB\003\340A\001H\000B\006\n\004rule\"\340\001\n\022PromoteR" - + "eleaseRule\022\017\n\002id\030\001 \001(\tB\003\340A\002\022,\n\004wait\030\002 \001(" - + "\0132\031.google.protobuf.DurationB\003\340A\001\022\"\n\025des" - + "tination_target_id\030\007 \001(\tB\003\340A\001\022G\n\tconditi" - + "on\030\005 \001(\0132/.google.cloud.deploy.v1.Automa" - + "tionRuleConditionB\003\340A\003\022\036\n\021destination_ph" - + "ase\030\010 \001(\tB\003\340A\001\"\270\001\n\022AdvanceRolloutRule\022\017\n" - + "\002id\030\001 \001(\tB\003\340A\002\022\032\n\rsource_phases\030\006 \003(\tB\003\340" - + "A\001\022,\n\004wait\030\003 \001(\0132\031.google.protobuf.Durat" - + "ionB\003\340A\001\022G\n\tcondition\030\005 \001(\0132/.google.clo" - + "ud.deploy.v1.AutomationRuleConditionB\003\340A" - + "\003\"\333\001\n\021RepairRolloutRule\022\017\n\002id\030\001 \001(\tB\003\340A\002" - + "\022\032\n\rsource_phases\030\002 \003(\tB\003\340A\001\022\021\n\004jobs\030\003 \003" - + "(\tB\003\340A\001\022=\n\014repair_modes\030\004 \003(\0132\".google.c" - + "loud.deploy.v1.RepairModeB\003\340A\002\022G\n\tcondit" - + "ion\030\006 \001(\0132/.google.cloud.deploy.v1.Autom" - + "ationRuleConditionB\003\340A\003\"\204\001\n\nRepairMode\0223" - + "\n\005retry\030\001 \001(\0132\035.google.cloud.deploy.v1.R" - + "etryB\003\340A\001H\000\0229\n\010rollback\030\002 \001(\0132 .google.c" - + "loud.deploy.v1.RollbackB\003\340A\001H\000B\006\n\004mode\"\214" - + "\001\n\005Retry\022\025\n\010attempts\030\001 \001(\003B\003\340A\002\022,\n\004wait\030" - + "\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022>\n" - + "\014backoff_mode\030\003 \001(\0162#.google.cloud.deplo" - + "y.v1.BackoffModeB\003\340A\001\"*\n\010Rollback\022\036\n\021des" - + "tination_phase\030\001 \001(\tB\003\340A\001\"r\n\027AutomationR" - + "uleCondition\022W\n\031targets_present_conditio" - + "n\030\001 \001(\0132/.google.cloud.deploy.v1.Targets" - + "PresentConditionB\003\340A\001\"\346\001\n\027CreateAutomati" - + "onRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%cloud" - + "deploy.googleapis.com/Automation\022\032\n\rauto" - + "mation_id\030\002 \001(\tB\003\340A\002\022;\n\nautomation\030\003 \001(\013" - + "2\".google.cloud.deploy.v1.AutomationB\003\340A" - + "\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_o" - + "nly\030\005 \001(\010B\003\340A\001\"\335\001\n\027UpdateAutomationReque" - + "st\0224\n\013update_mask\030\001 \001(\0132\032.google.protobu" - + "f.FieldMaskB\003\340A\002\022;\n\nautomation\030\002 \001(\0132\".g" - + "oogle.cloud.deploy.v1.AutomationB\003\340A\002\022\027\n" - + "\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow_missing\030" - + "\004 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\272" - + "\001\n\027DeleteAutomationRequest\022;\n\004name\030\001 \001(\t" - + "B-\340A\002\372A\'\n%clouddeploy.googleapis.com/Aut" - + "omation\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rallo" - + "w_missing\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\004 " - + "\001(\010B\003\340A\001\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"\240\001\n\026ListAuto" - + "mationsRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%" - + "clouddeploy.googleapis.com/Automation\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006" - + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\200\001\n\027ListA" - + "utomationsResponse\0227\n\013automations\030\001 \003(\0132" - + "\".google.cloud.deploy.v1.Automation\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" - + "\t\"S\n\024GetAutomationRequest\022;\n\004name\030\001 \001(\tB" - + "-\340A\002\372A\'\n%clouddeploy.googleapis.com/Auto" - + "mation\"\304\010\n\rAutomationRun\022\021\n\004name\030\001 \001(\tB\003" - + "\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\022\021\n\004etag\030" - + "\004 \001(\tB\003\340A\003\022\034\n\017service_account\030\005 \001(\tB\003\340A\003" - + "\022D\n\023automation_snapshot\030\006 \001(\0132\".google.c" - + "loud.deploy.v1.AutomationB\003\340A\003\022\026\n\ttarget" - + "_id\030\007 \001(\tB\003\340A\003\022?\n\005state\030\010 \001(\0162+.google.c" - + "loud.deploy.v1.AutomationRun.StateB\003\340A\003\022" - + "\036\n\021state_description\030\t \001(\tB\003\340A\003\0224\n\013expir" - + "e_time\030\013 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022\024\n\007rule_id\030\014 \001(\tB\003\340A\003\022\032\n\rautomatio" - + "n_id\030\017 \001(\tB\003\340A\003\022Y\n\031promote_release_opera" - + "tion\030\r \001(\0132/.google.cloud.deploy.v1.Prom" - + "oteReleaseOperationB\003\340A\003H\000\022Y\n\031advance_ro" - + "llout_operation\030\016 \001(\0132/.google.cloud.dep" - + "loy.v1.AdvanceRolloutOperationB\003\340A\003H\000\022W\n" - + "\030repair_rollout_operation\030\021 \001(\0132..google" - + ".cloud.deploy.v1.RepairRolloutOperationB" - + "\003\340A\003H\000\0228\n\017wait_until_time\030\020 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\"f\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\r\n\tCANCE" - + "LLED\020\002\022\n\n\006FAILED\020\003\022\017\n\013IN_PROGRESS\020\004\022\013\n\007P" - + "ENDING\020\005:\235\001\352A\231\001\n(clouddeploy.googleapis." - + "com/AutomationRun\022mprojects/{project}/lo" - + "cations/{location}/deliveryPipelines/{de" - + "livery_pipeline}/automationRuns/{automat" - + "ion_run}B\013\n\toperation\"\211\001\n\027PromoteRelease" - + "Operation\022\026\n\ttarget_id\030\001 \001(\tB\003\340A\003\022,\n\004wai" - + "t\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\003\022" - + "\024\n\007rollout\030\003 \001(\tB\003\340A\003\022\022\n\005phase\030\004 \001(\tB\003\340A" - + "\003\"\230\001\n\027AdvanceRolloutOperation\022\031\n\014source_" - + "phase\030\005 \001(\tB\003\340A\003\022,\n\004wait\030\002 \001(\0132\031.google." - + "protobuf.DurationB\003\340A\003\022\024\n\007rollout\030\003 \001(\tB" - + "\003\340A\003\022\036\n\021destination_phase\030\004 \001(\tB\003\340A\003\"\227\001\n" - + "\026RepairRolloutOperation\022\024\n\007rollout\030\001 \001(\t" - + "B\003\340A\003\022&\n\031current_repair_mode_index\030\002 \001(\003" - + "B\003\340A\003\022?\n\rrepair_phases\030\003 \003(\0132#.google.cl" - + "oud.deploy.v1.RepairPhaseB\003\340A\003\"\231\001\n\013Repai" - + "rPhase\0228\n\005retry\030\001 \001(\0132\".google.cloud.dep" - + "loy.v1.RetryPhaseB\003\340A\003H\000\022@\n\010rollback\030\002 \001" - + "(\0132\'.google.cloud.deploy.v1.RollbackAtte" - + "mptB\003\340A\003H\000B\016\n\014repair_phase\"\322\001\n\nRetryPhas" - + "e\022\033\n\016total_attempts\030\001 \001(\003B\003\340A\003\022>\n\014backof" - + "f_mode\030\002 \001(\0162#.google.cloud.deploy.v1.Ba" - + "ckoffModeB\003\340A\003\022\025\n\010phase_id\030\003 \001(\tB\003\340A\003\022\023\n" - + "\006job_id\030\004 \001(\tB\003\340A\003\022;\n\010attempts\030\005 \003(\0132$.g" - + "oogle.cloud.deploy.v1.RetryAttemptB\003\340A\003\"" - + "\244\001\n\014RetryAttempt\022\024\n\007attempt\030\001 \001(\003B\003\340A\003\022," + + "\020\002\022\025\n\021DEADLINE_EXCEEDED\020\003\022\022\n\016RELEASE_FAI" + + "LED\020\004\022\025\n\021RELEASE_ABANDONED\020\005\022!\n\035VERIFICA" + + "TION_CONFIG_NOT_FOUND\020\006\022\036\n\032CLOUD_BUILD_R" + + "EQUEST_FAILED\020\007\022#\n\037OPERATION_FEATURE_NOT" + + "_SUPPORTED\020\010:\235\001\352A\231\001\n\"clouddeploy.googlea" + + "pis.com/Rollout\022sprojects/{project}/loca" + + "tions/{location}/deliveryPipelines/{deli" + + "very_pipeline}/releases/{release}/rollou" + + "ts/{rollout}\"\325\001\n\010Metadata\022@\n\tcloud_run\030\001" + + " \001(\0132(.google.cloud.deploy.v1.CloudRunMe" + + "tadataB\003\340A\003\022J\n\nautomation\030\002 \001(\01321.google" + + ".cloud.deploy.v1.AutomationRolloutMetada" + + "taB\003\340A\003\022;\n\006custom\030\003 \001(\0132&.google.cloud.d" + + "eploy.v1.CustomMetadataB\003\340A\003\"\345\001\n\024DeployJ" + + "obRunMetadata\022@\n\tcloud_run\030\001 \001(\0132(.googl" + + "e.cloud.deploy.v1.CloudRunMetadataB\003\340A\003\022" + + "N\n\rcustom_target\030\002 \001(\01322.google.cloud.de" + + "ploy.v1.CustomTargetDeployMetadataB\003\340A\003\022" + + ";\n\006custom\030\003 \001(\0132&.google.cloud.deploy.v1" + + ".CustomMetadataB\003\340A\003\"\246\001\n\020CloudRunMetadat" + + "a\0223\n\007service\030\001 \001(\tB\"\340A\003\372A\034\n\032run.googleap" + + "is.com/Service\022\031\n\014service_urls\030\002 \003(\tB\003\340A" + + "\003\022\025\n\010revision\030\003 \001(\tB\003\340A\003\022+\n\003job\030\004 \001(\tB\036\340" + + "A\003\372A\030\n\026run.googleapis.com/Job\"7\n\032CustomT" + + "argetDeployMetadata\022\031\n\014skip_message\030\001 \001(" + + "\tB\003\340A\003\"\213\001\n\031AutomationRolloutMetadata\022#\n\026" + + "promote_automation_run\030\001 \001(\tB\003\340A\003\022$\n\027adv" + + "ance_automation_runs\030\002 \003(\tB\003\340A\003\022#\n\026repai" + + "r_automation_runs\030\003 \003(\tB\003\340A\003\"\210\001\n\016CustomM" + + "etadata\022G\n\006values\030\001 \003(\01322.google.cloud.d" + + "eploy.v1.CustomMetadata.ValuesEntryB\003\340A\003" + + "\032-\n\013ValuesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"\374\002\n\005Phase\022\017\n\002id\030\001 \001(\tB\003\340A\003\0227\n\005st" + + "ate\030\003 \001(\0162#.google.cloud.deploy.v1.Phase" + + ".StateB\003\340A\003\022\031\n\014skip_message\030\006 \001(\tB\003\340A\003\022F" + + "\n\017deployment_jobs\030\004 \001(\0132&.google.cloud.d" + + "eploy.v1.DeploymentJobsB\003\340A\003H\000\022K\n\022child_" + + "rollout_jobs\030\005 \001(\0132(.google.cloud.deploy" + + ".v1.ChildRolloutJobsB\003\340A\003H\000\"q\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\017\n\013IN_P" + + "ROGRESS\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\013\n\007" + + "ABORTED\020\005\022\013\n\007SKIPPED\020\006B\006\n\004jobs\"\357\001\n\016Deplo" + + "ymentJobs\0224\n\ndeploy_job\030\001 \001(\0132\033.google.c" + + "loud.deploy.v1.JobB\003\340A\003\0224\n\nverify_job\030\002 " + + "\001(\0132\033.google.cloud.deploy.v1.JobB\003\340A\003\0227\n" + + "\rpredeploy_job\030\003 \001(\0132\033.google.cloud.depl" + + "oy.v1.JobB\003\340A\003\0228\n\016postdeploy_job\030\004 \001(\0132\033" + + ".google.cloud.deploy.v1.JobB\003\340A\003\"\221\001\n\020Chi" + + "ldRolloutJobs\022=\n\023create_rollout_jobs\030\001 \003" + + "(\0132\033.google.cloud.deploy.v1.JobB\003\340A\003\022>\n\024" + + "advance_rollout_jobs\030\002 \003(\0132\033.google.clou" + + "d.deploy.v1.JobB\003\340A\003\"\367\005\n\003Job\022\017\n\002id\030\001 \001(\t" + + "B\003\340A\003\0225\n\005state\030\002 \001(\0162!.google.cloud.depl" + + "oy.v1.Job.StateB\003\340A\003\022\031\n\014skip_message\030\010 \001" + + "(\tB\003\340A\003\022:\n\007job_run\030\003 \001(\tB)\340A\003\372A#\n!cloudd" + + "eploy.googleapis.com/JobRun\022<\n\ndeploy_jo" + + "b\030\004 \001(\0132!.google.cloud.deploy.v1.DeployJ" + + "obB\003\340A\003H\000\022<\n\nverify_job\030\005 \001(\0132!.google.c" + + "loud.deploy.v1.VerifyJobB\003\340A\003H\000\022B\n\rprede" + + "ploy_job\030\t \001(\0132$.google.cloud.deploy.v1." + + "PredeployJobB\003\340A\003H\000\022D\n\016postdeploy_job\030\n " + + "\001(\0132%.google.cloud.deploy.v1.PostdeployJ" + + "obB\003\340A\003H\000\022V\n\030create_child_rollout_job\030\006 " + + "\001(\0132-.google.cloud.deploy.v1.CreateChild" + + "RolloutJobB\003\340A\003H\000\022X\n\031advance_child_rollo" + + "ut_job\030\007 \001(\0132..google.cloud.deploy.v1.Ad" + + "vanceChildRolloutJobB\003\340A\003H\000\"\214\001\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\014\n\010DIS" + + "ABLED\020\002\022\017\n\013IN_PROGRESS\020\003\022\r\n\tSUCCEEDED\020\004\022" + + "\n\n\006FAILED\020\005\022\013\n\007ABORTED\020\006\022\013\n\007SKIPPED\020\007\022\013\n" + + "\007IGNORED\020\010B\n\n\010job_type\"\013\n\tDeployJob\"\013\n\tV" + + "erifyJob\"$\n\014PredeployJob\022\024\n\007actions\030\001 \003(" + + "\tB\003\340A\003\"%\n\rPostdeployJob\022\024\n\007actions\030\001 \003(\t" + + "B\003\340A\003\"\027\n\025CreateChildRolloutJob\"\030\n\026Advanc" + + "eChildRolloutJob\"\256\001\n\023ListRolloutsRequest" + + "\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.go" + + "ogleapis.com/Release\022\026\n\tpage_size\030\002 \001(\005B" + + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030" + + "\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"w\n\024Lis" + + "tRolloutsResponse\0221\n\010rollouts\030\001 \003(\0132\037.go" + + "ogle.cloud.deploy.v1.Rollout\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\021Ge" + + "tRolloutRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"c" + + "louddeploy.googleapis.com/Rollout\"\367\001\n\024Cr" + + "eateRolloutRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372" + + "A$\n\"clouddeploy.googleapis.com/Release\022\027" + + "\n\nrollout_id\030\002 \001(\tB\003\340A\002\0225\n\007rollout\030\003 \001(\013" + + "2\037.google.cloud.deploy.v1.RolloutB\003\340A\002\022\027" + + "\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only" + + "\030\005 \001(\010B\003\340A\001\022\036\n\021starting_phase_id\030\007 \001(\tB\003" + + "\340A\001\"\200\002\n\021OperationMetadata\0224\n\013create_time" + + "\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "1\n\010end_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030" + + "\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022" + + "#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013" + + "api_version\030\007 \001(\tB\003\340A\003\"h\n\025ApproveRollout" + + "Request\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"clouddepl" + + "oy.googleapis.com/Rollout\022\025\n\010approved\030\002 " + + "\001(\010B\003\340A\002\"\030\n\026ApproveRolloutResponse\"h\n\025Ad" + + "vanceRolloutRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A" + + "$\n\"clouddeploy.googleapis.com/Rollout\022\025\n" + + "\010phase_id\030\002 \001(\tB\003\340A\002\"\030\n\026AdvanceRolloutRe" + + "sponse\"P\n\024CancelRolloutRequest\0228\n\004name\030\001" + + " \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com" + + "/Rollout\"\027\n\025CancelRolloutResponse\"{\n\020Ign" + + "oreJobRequest\022;\n\007rollout\030\001 \001(\tB*\340A\002\372A$\n\"" + + "clouddeploy.googleapis.com/Rollout\022\025\n\010ph" + + "ase_id\030\002 \001(\tB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\"\023" + + "\n\021IgnoreJobResponse\"z\n\017RetryJobRequest\022;" + + "\n\007rollout\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.goo" + + "gleapis.com/Rollout\022\025\n\010phase_id\030\002 \001(\tB\003\340" + + "A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\"\022\n\020RetryJobRespo" + + "nse\"Q\n\025AbandonReleaseRequest\0228\n\004name\030\001 \001" + + "(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com/R" + + "elease\"\030\n\026AbandonReleaseResponse\"\320\010\n\006Job" + + "Run\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003" + + "\022\025\n\010phase_id\030\003 \001(\tB\003\340A\003\022\023\n\006job_id\030\004 \001(\tB" + + "\003\340A\003\0224\n\013create_time\030\005 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0223\n\nstart_time\030\006 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0221\n\010end_t" + + "ime\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0228\n\005state\030\010 \001(\0162$.google.cloud.deploy." + + "v1.JobRun.StateB\003\340A\003\022C\n\016deploy_job_run\030\t" + + " \001(\0132$.google.cloud.deploy.v1.DeployJobR" + + "unB\003\340A\003H\000\022C\n\016verify_job_run\030\n \001(\0132$.goog" + + "le.cloud.deploy.v1.VerifyJobRunB\003\340A\003H\000\022I" + + "\n\021predeploy_job_run\030\016 \001(\0132\'.google.cloud" + + ".deploy.v1.PredeployJobRunB\003\340A\003H\000\022K\n\022pos" + + "tdeploy_job_run\030\017 \001(\0132(.google.cloud.dep" + + "loy.v1.PostdeployJobRunB\003\340A\003H\000\022]\n\034create" + + "_child_rollout_job_run\030\014 \001(\01320.google.cl" + + "oud.deploy.v1.CreateChildRolloutJobRunB\003" + + "\340A\003H\000\022_\n\035advance_child_rollout_job_run\030\r" + + " \001(\01321.google.cloud.deploy.v1.AdvanceChi" + + "ldRolloutJobRunB\003\340A\003H\000\022\021\n\004etag\030\013 \001(\tB\003\340A" + + "\003\"k\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013IN_" + + "PROGRESS\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\017\n" + + "\013TERMINATING\020\004\022\016\n\nTERMINATED\020\005:\257\001\352A\253\001\n!c" + + "louddeploy.googleapis.com/JobRun\022\205\001proje" + + "cts/{project}/locations/{location}/deliv" + + "eryPipelines/{delivery_pipeline}/release" + + "s/{release}/rollouts/{rollout}/jobRuns/{" + + "job_run}B\t\n\007job_run\"\225\004\n\014DeployJobRun\0226\n\005" + + "build\030\001 \001(\tB\'\340A\003\372A!\n\037cloudbuild.googleap" + + "is.com/Build\022M\n\rfailure_cause\030\002 \001(\01621.go" + + "ogle.cloud.deploy.v1.DeployJobRun.Failur" + + "eCauseB\003\340A\003\022\034\n\017failure_message\030\003 \001(\tB\003\340A" + + "\003\022C\n\010metadata\030\004 \001(\0132,.google.cloud.deplo" + + "y.v1.DeployJobRunMetadataB\003\340A\003\022=\n\010artifa" + + "ct\030\005 \001(\0132&.google.cloud.deploy.v1.Deploy" + + "ArtifactB\003\340A\003\"\333\001\n\014FailureCause\022\035\n\031FAILUR" + + "E_CAUSE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNA" + + "VAILABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEAD" + + "LINE_EXCEEDED\020\003\022 \n\034MISSING_RESOURCES_FOR" + + "_CANARY\020\004\022\036\n\032CLOUD_BUILD_REQUEST_FAILED\020" + + "\005\022 \n\034DEPLOY_FEATURE_NOT_SUPPORTED\020\006\"\250\003\n\014" + + "VerifyJobRun\0226\n\005build\030\001 \001(\tB\'\340A\003\372A!\n\037clo" + + "udbuild.googleapis.com/Build\022\031\n\014artifact" + + "_uri\030\002 \001(\tB\003\340A\003\022\033\n\016event_log_path\030\003 \001(\tB" + + "\003\340A\003\022M\n\rfailure_cause\030\004 \001(\01621.google.clo" + + "ud.deploy.v1.VerifyJobRun.FailureCauseB\003" + + "\340A\003\022\034\n\017failure_message\030\005 \001(\tB\003\340A\003\"\272\001\n\014Fa" + + "ilureCause\022\035\n\031FAILURE_CAUSE_UNSPECIFIED\020" + + "\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n\020EXECUT" + + "ION_FAILED\020\002\022\025\n\021DEADLINE_EXCEEDED\020\003\022!\n\035V" + + "ERIFICATION_CONFIG_NOT_FOUND\020\004\022\036\n\032CLOUD_" + + "BUILD_REQUEST_FAILED\020\005\"\323\002\n\017PredeployJobR" + + "un\0226\n\005build\030\001 \001(\tB\'\340A\003\372A!\n\037cloudbuild.go" + + "ogleapis.com/Build\022P\n\rfailure_cause\030\002 \001(" + + "\01624.google.cloud.deploy.v1.PredeployJobR" + + "un.FailureCauseB\003\340A\003\022\034\n\017failure_message\030" + + "\003 \001(\tB\003\340A\003\"\227\001\n\014FailureCause\022\035\n\031FAILURE_C" + + "AUSE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAI" + + "LABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEADLIN" + + "E_EXCEEDED\020\003\022\036\n\032CLOUD_BUILD_REQUEST_FAIL" + + "ED\020\004\"\325\002\n\020PostdeployJobRun\0226\n\005build\030\001 \001(\t" + + "B\'\340A\003\372A!\n\037cloudbuild.googleapis.com/Buil" + + "d\022Q\n\rfailure_cause\030\002 \001(\01625.google.cloud." + + "deploy.v1.PostdeployJobRun.FailureCauseB" + + "\003\340A\003\022\034\n\017failure_message\030\003 \001(\tB\003\340A\003\"\227\001\n\014F" + + "ailureCause\022\035\n\031FAILURE_CAUSE_UNSPECIFIED" + + "\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n\020EXECU" + + "TION_FAILED\020\002\022\025\n\021DEADLINE_EXCEEDED\020\003\022\036\n\032" + + "CLOUD_BUILD_REQUEST_FAILED\020\004\"O\n\030CreateCh" + + "ildRolloutJobRun\022\024\n\007rollout\030\001 \001(\tB\003\340A\003\022\035" + + "\n\020rollout_phase_id\030\002 \001(\tB\003\340A\003\"P\n\031Advance" + + "ChildRolloutJobRun\022\024\n\007rollout\030\001 \001(\tB\003\340A\003" + + "\022\035\n\020rollout_phase_id\030\002 \001(\tB\003\340A\003\"\255\001\n\022List" + + "JobRunsRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"" + + "clouddeploy.googleapis.com/Rollout\022\026\n\tpa" + + "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003" + + "\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001" + + "(\tB\003\340A\001\"u\n\023ListJobRunsResponse\0220\n\010job_ru" + + "ns\030\001 \003(\0132\036.google.cloud.deploy.v1.JobRun" + + "\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable" + + "\030\003 \003(\t\"K\n\020GetJobRunRequest\0227\n\004name\030\001 \001(\t" + + "B)\340A\002\372A#\n!clouddeploy.googleapis.com/Job" + + "Run\"Q\n\026TerminateJobRunRequest\0227\n\004name\030\001 " + + "\001(\tB)\340A\002\372A#\n!clouddeploy.googleapis.com/" + + "JobRun\"\031\n\027TerminateJobRunResponse\"\325\001\n\006Co" + + "nfig\022\014\n\004name\030\001 \001(\t\022C\n\022supported_versions" + + "\030\002 \003(\0132\'.google.cloud.deploy.v1.Skaffold" + + "Version\022 \n\030default_skaffold_version\030\003 \001(" + + "\t:V\352AS\n!clouddeploy.googleapis.com/Confi" + + "g\022.projects/{project}/locations/{locatio" + + "n}/config\"\307\001\n\017SkaffoldVersion\022\017\n\007version" + + "\030\001 \001(\t\0229\n\025maintenance_mode_time\030\003 \001(\0132\032." + + "google.protobuf.Timestamp\022;\n\027support_exp" + + "iration_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estamp\022+\n\020support_end_date\030\002 \001(\0132\021.googl" + + "e.type.Date\"K\n\020GetConfigRequest\0227\n\004name\030" + + "\001 \001(\tB)\340A\002\372A#\n!clouddeploy.googleapis.co" + + "m/Config\"\227\006\n\nAutomation\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\030\n\013description\030\003 \001(" + + "\tB\003\340A\001\0224\n\013create_time\030\004 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n\013an" + + "notations\030\006 \003(\01323.google.cloud.deploy.v1" + + ".Automation.AnnotationsEntryB\003\340A\001\022C\n\006lab" + + "els\030\007 \003(\0132..google.cloud.deploy.v1.Autom" + + "ation.LabelsEntryB\003\340A\001\022\021\n\004etag\030\010 \001(\tB\003\340A" + + "\001\022\026\n\tsuspended\030\t \001(\010B\003\340A\001\022\034\n\017service_acc" + + "ount\030\n \001(\tB\003\340A\002\022I\n\010selector\030\013 \001(\01322.goog" + + "le.cloud.deploy.v1.AutomationResourceSel" + + "ectorB\003\340A\002\022:\n\005rules\030\016 \003(\0132&.google.cloud" + + ".deploy.v1.AutomationRuleB\003\340A\002\0322\n\020Annota" + + "tionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001:\226\001\352A\222\001\n%clouddeploy.googleapis" + + ".com/Automation\022fprojects/{project}/loca" + + "tions/{location}/deliveryPipelines/{deli" + + "very_pipeline}/automations/{automation}R" + + "\001\001\"V\n\032AutomationResourceSelector\0228\n\007targ" + + "ets\030\001 \003(\0132\'.google.cloud.deploy.v1.Targe" + + "tAttribute\"\211\002\n\016AutomationRule\022O\n\024promote" + + "_release_rule\030\001 \001(\0132*.google.cloud.deplo" + + "y.v1.PromoteReleaseRuleB\003\340A\001H\000\022O\n\024advanc" + + "e_rollout_rule\030\002 \001(\0132*.google.cloud.depl" + + "oy.v1.AdvanceRolloutRuleB\003\340A\001H\000\022M\n\023repai" + + "r_rollout_rule\030\003 \001(\0132).google.cloud.depl" + + "oy.v1.RepairRolloutRuleB\003\340A\001H\000B\006\n\004rule\"\340" + + "\001\n\022PromoteReleaseRule\022\017\n\002id\030\001 \001(\tB\003\340A\002\022," + "\n\004wait\030\002 \001(\0132\031.google.protobuf.DurationB" - + "\003\340A\003\0227\n\005state\030\005 \001(\0162#.google.cloud.deplo" - + "y.v1.RepairStateB\003\340A\003\022\027\n\nstate_desc\030\006 \001(" - + "\tB\003\340A\003\"\234\001\n\017RollbackAttempt\022\036\n\021destinatio" - + "n_phase\030\001 \001(\tB\003\340A\003\022\027\n\nrollout_id\030\002 \001(\tB\003" - + "\340A\003\0227\n\005state\030\003 \001(\0162#.google.cloud.deploy" - + ".v1.RepairStateB\003\340A\003\022\027\n\nstate_desc\030\004 \001(\t", - "B\003\340A\003\"\246\001\n\031ListAutomationRunsRequest\022@\n\006p" - + "arent\030\001 \001(\tB0\340A\002\372A*\022(clouddeploy.googlea" - + "pis.com/AutomationRun\022\021\n\tpage_size\030\002 \001(\005" - + "\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010" - + "order_by\030\005 \001(\t\"\212\001\n\032ListAutomationRunsRes" - + "ponse\022>\n\017automation_runs\030\001 \003(\0132%.google." - + "cloud.deploy.v1.AutomationRun\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Y\n\027G" - + "etAutomationRunRequest\022>\n\004name\030\001 \001(\tB0\340A" - + "\002\372A*\n(clouddeploy.googleapis.com/Automat" - + "ionRun\"\\\n\032CancelAutomationRunRequest\022>\n\004" - + "name\030\001 \001(\tB0\340A\002\372A*\n(clouddeploy.googleap" - + "is.com/AutomationRun\"\035\n\033CancelAutomation" - + "RunResponse*\271\001\n\024SkaffoldSupportState\022&\n\"" - + "SKAFFOLD_SUPPORT_STATE_UNSPECIFIED\020\000\022$\n " - + "SKAFFOLD_SUPPORT_STATE_SUPPORTED\020\001\022+\n\'SK" - + "AFFOLD_SUPPORT_STATE_MAINTENANCE_MODE\020\002\022" - + "&\n\"SKAFFOLD_SUPPORT_STATE_UNSUPPORTED\020\003*" - + "b\n\013BackoffMode\022\034\n\030BACKOFF_MODE_UNSPECIFI" - + "ED\020\000\022\027\n\023BACKOFF_MODE_LINEAR\020\001\022\034\n\030BACKOFF" - + "_MODE_EXPONENTIAL\020\002*\316\001\n\013RepairState\022\034\n\030R" - + "EPAIR_STATE_UNSPECIFIED\020\000\022\032\n\026REPAIR_STAT" - + "E_SUCCEEDED\020\001\022\032\n\026REPAIR_STATE_CANCELLED\020" - + "\002\022\027\n\023REPAIR_STATE_FAILED\020\003\022\034\n\030REPAIR_STA" - + "TE_IN_PROGRESS\020\004\022\030\n\024REPAIR_STATE_PENDING" - + "\020\005\022\030\n\024REPAIR_STATE_SKIPPED\020\0062\242D\n\013CloudDe" - + "ploy\022\314\001\n\025ListDeliveryPipelines\0224.google." - + "cloud.deploy.v1.ListDeliveryPipelinesReq" - + "uest\0325.google.cloud.deploy.v1.ListDelive" - + "ryPipelinesResponse\"F\332A\006parent\202\323\344\223\0027\0225/v" - + "1/{parent=projects/*/locations/*}/delive" - + "ryPipelines\022\271\001\n\023GetDeliveryPipeline\0222.go" - + "ogle.cloud.deploy.v1.GetDeliveryPipeline" - + "Request\032(.google.cloud.deploy.v1.Deliver" - + "yPipeline\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=proj" - + "ects/*/locations/*/deliveryPipelines/*}\022" - + "\231\002\n\026CreateDeliveryPipeline\0225.google.clou" - + "d.deploy.v1.CreateDeliveryPipelineReques" - + "t\032\035.google.longrunning.Operation\"\250\001\312A%\n\020" - + "DeliveryPipeline\022\021OperationMetadata\332A-pa" - + "rent,delivery_pipeline,delivery_pipeline" - + "_id\202\323\344\223\002J\"5/v1/{parent=projects/*/locati" - + "ons/*}/deliveryPipelines:\021delivery_pipel" - + "ine\022\233\002\n\026UpdateDeliveryPipeline\0225.google." - + "cloud.deploy.v1.UpdateDeliveryPipelineRe" - + "quest\032\035.google.longrunning.Operation\"\252\001\312" - + "A%\n\020DeliveryPipeline\022\021OperationMetadata\332" - + "A\035delivery_pipeline,update_mask\202\323\344\223\002\\2G/" - + "v1/{delivery_pipeline.name=projects/*/lo" - + "cations/*/deliveryPipelines/*}:\021delivery" - + "_pipeline\022\341\001\n\026DeleteDeliveryPipeline\0225.g" - + "oogle.cloud.deploy.v1.DeleteDeliveryPipe" - + "lineRequest\032\035.google.longrunning.Operati" - + "on\"q\312A*\n\025google.protobuf.Empty\022\021Operatio" - + "nMetadata\332A\004name\202\323\344\223\0027*5/v1/{name=projec" - + "ts/*/locations/*/deliveryPipelines/*}\022\244\001" - + "\n\013ListTargets\022*.google.cloud.deploy.v1.L" - + "istTargetsRequest\032+.google.cloud.deploy." - + "v1.ListTargetsResponse\"<\332A\006parent\202\323\344\223\002-\022" - + "+/v1/{parent=projects/*/locations/*}/tar" - + "gets\022\334\001\n\016RollbackTarget\022-.google.cloud.d" - + "eploy.v1.RollbackTargetRequest\032..google." - + "cloud.deploy.v1.RollbackTargetResponse\"k" - + "\332A\031name,target_id,rollout_id\202\323\344\223\002I\"D/v1/" - + "{name=projects/*/locations/*/deliveryPip" - + "elines/*}:rollbackTarget:\001*\022\221\001\n\tGetTarge" - + "t\022(.google.cloud.deploy.v1.GetTargetRequ" - + "est\032\036.google.cloud.deploy.v1.Target\":\332A\004" - + "name\202\323\344\223\002-\022+/v1/{name=projects/*/locatio" - + "ns/*/targets/*}\022\317\001\n\014CreateTarget\022+.googl" - + "e.cloud.deploy.v1.CreateTargetRequest\032\035." - + "google.longrunning.Operation\"s\312A\033\n\006Targe" - + "t\022\021OperationMetadata\332A\027parent,target,tar" - + "get_id\202\323\344\223\0025\"+/v1/{parent=projects/*/loc" - + "ations/*}/targets:\006target\022\321\001\n\014UpdateTarg" - + "et\022+.google.cloud.deploy.v1.UpdateTarget" - + "Request\032\035.google.longrunning.Operation\"u" - + "\312A\033\n\006Target\022\021OperationMetadata\332A\022target," - + "update_mask\202\323\344\223\002<22/v1/{target.name=proj" - + "ects/*/locations/*/targets/*}:\006target\022\303\001" - + "\n\014DeleteTarget\022+.google.cloud.deploy.v1." - + "DeleteTargetRequest\032\035.google.longrunning" - + ".Operation\"g\312A*\n\025google.protobuf.Empty\022\021" - + "OperationMetadata\332A\004name\202\323\344\223\002-*+/v1/{nam" - + "e=projects/*/locations/*/targets/*}\022\314\001\n\025" - + "ListCustomTargetTypes\0224.google.cloud.dep" - + "loy.v1.ListCustomTargetTypesRequest\0325.go" - + "ogle.cloud.deploy.v1.ListCustomTargetTyp" - + "esResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent" - + "=projects/*/locations/*}/customTargetTyp" - + "es\022\271\001\n\023GetCustomTargetType\0222.google.clou" - + "d.deploy.v1.GetCustomTargetTypeRequest\032(" - + ".google.cloud.deploy.v1.CustomTargetType" - + "\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/lo" - + "cations/*/customTargetTypes/*}\022\234\002\n\026Creat" - + "eCustomTargetType\0225.google.cloud.deploy." - + "v1.CreateCustomTargetTypeRequest\032\035.googl" - + "e.longrunning.Operation\"\253\001\312A%\n\020CustomTar" - + "getType\022\021OperationMetadata\332A/parent,cust" - + "om_target_type,custom_target_type_id\202\323\344\223" - + "\002K\"5/v1/{parent=projects/*/locations/*}/" - + "customTargetTypes:\022custom_target_type\022\236\002" - + "\n\026UpdateCustomTargetType\0225.google.cloud." - + "deploy.v1.UpdateCustomTargetTypeRequest\032" - + "\035.google.longrunning.Operation\"\255\001\312A%\n\020Cu" - + "stomTargetType\022\021OperationMetadata\332A\036cust" - + "om_target_type,update_mask\202\323\344\223\002^2H/v1/{c" - + "ustom_target_type.name=projects/*/locati" - + "ons/*/customTargetTypes/*}:\022custom_targe" - + "t_type\022\341\001\n\026DeleteCustomTargetType\0225.goog" - + "le.cloud.deploy.v1.DeleteCustomTargetTyp" - + "eRequest\032\035.google.longrunning.Operation\"" - + "q\312A*\n\025google.protobuf.Empty\022\021OperationMe" - + "tadata\332A\004name\202\323\344\223\0027*5/v1/{name=projects/" - + "*/locations/*/customTargetTypes/*}\022\274\001\n\014L" - + "istReleases\022+.google.cloud.deploy.v1.Lis" - + "tReleasesRequest\032,.google.cloud.deploy.v" - + "1.ListReleasesResponse\"Q\332A\006parent\202\323\344\223\002B\022" - + "@/v1/{parent=projects/*/locations/*/deli" - + "veryPipelines/*}/releases\022\251\001\n\nGetRelease" - + "\022).google.cloud.deploy.v1.GetReleaseRequ" - + "est\032\037.google.cloud.deploy.v1.Release\"O\332A" - + "\004name\202\323\344\223\002B\022@/v1/{name=projects/*/locati" - + "ons/*/deliveryPipelines/*/releases/*}\022\353\001" - + "\n\rCreateRelease\022,.google.cloud.deploy.v1" - + ".CreateReleaseRequest\032\035.google.longrunni" - + "ng.Operation\"\214\001\312A\034\n\007Release\022\021OperationMe" - + "tadata\332A\031parent,release,release_id\202\323\344\223\002K" - + "\"@/v1/{parent=projects/*/locations/*/del" - + "iveryPipelines/*}/releases:\007release\022\313\001\n\016" - + "AbandonRelease\022-.google.cloud.deploy.v1." - + "AbandonReleaseRequest\032..google.cloud.dep" - + "loy.v1.AbandonReleaseResponse\"Z\332A\004name\202\323" - + "\344\223\002M\"H/v1/{name=projects/*/locations/*/d" - + "eliveryPipelines/*/releases/*}:abandon:\001" - + "*\022\326\001\n\016ApproveRollout\022-.google.cloud.depl" - + "oy.v1.ApproveRolloutRequest\032..google.clo" - + "ud.deploy.v1.ApproveRolloutResponse\"e\332A\004" - + "name\202\323\344\223\002X\"S/v1/{name=projects/*/locatio" - + "ns/*/deliveryPipelines/*/releases/*/roll" - + "outs/*}:approve:\001*\022\337\001\n\016AdvanceRollout\022-." - + "google.cloud.deploy.v1.AdvanceRolloutReq" - + "uest\032..google.cloud.deploy.v1.AdvanceRol" - + "loutResponse\"n\332A\rname,phase_id\202\323\344\223\002X\"S/v" - + "1/{name=projects/*/locations/*/deliveryP" - + "ipelines/*/releases/*/rollouts/*}:advanc" - + "e:\001*\022\322\001\n\rCancelRollout\022,.google.cloud.de" - + "ploy.v1.CancelRolloutRequest\032-.google.cl" - + "oud.deploy.v1.CancelRolloutResponse\"d\332A\004" - + "name\202\323\344\223\002W\"R/v1/{name=projects/*/locatio" - + "ns/*/deliveryPipelines/*/releases/*/roll" - + "outs/*}:cancel:\001*\022\307\001\n\014ListRollouts\022+.goo" - + "gle.cloud.deploy.v1.ListRolloutsRequest\032" - + ",.google.cloud.deploy.v1.ListRolloutsRes" - + "ponse\"\\\332A\006parent\202\323\344\223\002M\022K/v1/{parent=proj" - + "ects/*/locations/*/deliveryPipelines/*/r" - + "eleases/*}/rollouts\022\264\001\n\nGetRollout\022).goo" - + "gle.cloud.deploy.v1.GetRolloutRequest\032\037." - + "google.cloud.deploy.v1.Rollout\"Z\332A\004name\202" - + "\323\344\223\002M\022K/v1/{name=projects/*/locations/*/" - + "deliveryPipelines/*/releases/*/rollouts/" - + "*}\022\366\001\n\rCreateRollout\022,.google.cloud.depl" - + "oy.v1.CreateRolloutRequest\032\035.google.long" - + "running.Operation\"\227\001\312A\034\n\007Rollout\022\021Operat" - + "ionMetadata\332A\031parent,rollout,rollout_id\202" - + "\323\344\223\002V\"K/v1/{parent=projects/*/locations/" - + "*/deliveryPipelines/*/releases/*}/rollou" - + "ts:\007rollout\022\337\001\n\tIgnoreJob\022(.google.cloud" - + ".deploy.v1.IgnoreJobRequest\032).google.clo" - + "ud.deploy.v1.IgnoreJobResponse\"}\332A\027rollo" - + "ut,phase_id,job_id\202\323\344\223\002]\"X/v1/{rollout=p" + + "\003\340A\001\022\"\n\025destination_target_id\030\007 \001(\tB\003\340A\001" + + "\022G\n\tcondition\030\005 \001(\0132/.google.cloud.deplo" + + "y.v1.AutomationRuleConditionB\003\340A\003\022\036\n\021des" + + "tination_phase\030\010 \001(\tB\003\340A\001\"\270\001\n\022AdvanceRol" + + "loutRule\022\017\n\002id\030\001 \001(\tB\003\340A\002\022\032\n\rsource_phas" + + "es\030\006 \003(\tB\003\340A\001\022,\n\004wait\030\003 \001(\0132\031.google.pro" + + "tobuf.DurationB\003\340A\001\022G\n\tcondition\030\005 \001(\0132/" + + ".google.cloud.deploy.v1.AutomationRuleCo" + + "nditionB\003\340A\003\"\200\001\n\021RepairRolloutRule\022\017\n\002id" + + "\030\001 \001(\tB\003\340A\002\022\021\n\004jobs\030\003 \003(\tB\003\340A\001\022G\n\tcondit" + + "ion\030\006 \001(\0132/.google.cloud.deploy.v1.Autom" + + "ationRuleConditionB\003\340A\003\"r\n\027AutomationRul" + + "eCondition\022W\n\031targets_present_condition\030" + + "\001 \001(\0132/.google.cloud.deploy.v1.TargetsPr" + + "esentConditionB\003\340A\001\"\346\001\n\027CreateAutomation" + + "Request\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%cloudde" + + "ploy.googleapis.com/Automation\022\032\n\rautoma" + + "tion_id\030\002 \001(\tB\003\340A\002\022;\n\nautomation\030\003 \001(\0132\"" + + ".google.cloud.deploy.v1.AutomationB\003\340A\002\022" + + "\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_onl" + + "y\030\005 \001(\010B\003\340A\001\"\335\001\n\027UpdateAutomationRequest" + + "\0224\n\013update_mask\030\001 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\022;\n\nautomation\030\002 \001(\0132\".goo" + + "gle.cloud.deploy.v1.AutomationB\003\340A\002\022\027\n\nr" + + "equest_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow_missing\030\004 " + + "\001(\010B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\272\001\n" + + "\027DeleteAutomationRequest\022;\n\004name\030\001 \001(\tB-" + + "\340A\002\372A\'\n%clouddeploy.googleapis.com/Autom" + + "ation\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rallow_" + + "missing\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\004 \001(" + + "\010B\003\340A\001\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"\240\001\n\026ListAutoma" + + "tionsRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%cl" + + "ouddeploy.googleapis.com/Automation\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006fi" + + "lter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\200\001\n\027ListAut" + + "omationsResponse\0227\n\013automations\030\001 \003(\0132\"." + + "google.cloud.deploy.v1.Automation\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"" + + "S\n\024GetAutomationRequest\022;\n\004name\030\001 \001(\tB-\340" + + "A\002\372A\'\n%clouddeploy.googleapis.com/Automa" + + "tion\"\321\010\n\rAutomationRun\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\0224\n\013create_time\030\002 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\021\n\004etag\030\004 " + + "\001(\tB\003\340A\003\022\034\n\017service_account\030\005 \001(\tB\003\340A\003\022D" + + "\n\023automation_snapshot\030\006 \001(\0132\".google.clo" + + "ud.deploy.v1.AutomationB\003\340A\003\022\026\n\ttarget_i" + + "d\030\007 \001(\tB\003\340A\003\022?\n\005state\030\010 \001(\0162+.google.clo" + + "ud.deploy.v1.AutomationRun.StateB\003\340A\003\022\036\n" + + "\021state_description\030\t \001(\tB\003\340A\003\0224\n\013expire_" + + "time\030\013 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022\024\n\007rule_id\030\014 \001(\tB\003\340A\003\022\032\n\rautomation_" + + "id\030\017 \001(\tB\003\340A\003\022Y\n\031promote_release_operati" + + "on\030\r \001(\0132/.google.cloud.deploy.v1.Promot" + + "eReleaseOperationB\003\340A\003H\000\022Y\n\031advance_roll" + + "out_operation\030\016 \001(\0132/.google.cloud.deplo" + + "y.v1.AdvanceRolloutOperationB\003\340A\003H\000\022W\n\030r" + + "epair_rollout_operation\030\021 \001(\0132..google.c" + + "loud.deploy.v1.RepairRolloutOperationB\003\340" + + "A\003H\000\0228\n\017wait_until_time\030\020 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\"s\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\r\n\tCANCELL" + + "ED\020\002\022\n\n\006FAILED\020\003\022\017\n\013IN_PROGRESS\020\004\022\013\n\007PEN" + + "DING\020\005\022\013\n\007ABORTED\020\006:\235\001\352A\231\001\n(clouddeploy." + + "googleapis.com/AutomationRun\022mprojects/{" + + "project}/locations/{location}/deliveryPi" + + "pelines/{delivery_pipeline}/automationRu" + + "ns/{automation_run}B\013\n\toperation\"\211\001\n\027Pro" + + "moteReleaseOperation\022\026\n\ttarget_id\030\001 \001(\tB" + + "\003\340A\003\022,\n\004wait\030\002 \001(\0132\031.google.protobuf.Dur" + + "ationB\003\340A\003\022\024\n\007rollout\030\003 \001(\tB\003\340A\003\022\022\n\005phas" + + "e\030\004 \001(\tB\003\340A\003\"\230\001\n\027AdvanceRolloutOperation" + + "\022\031\n\014source_phase\030\005 \001(\tB\003\340A\003\022,\n\004wait\030\002 \001(" + + "\0132\031.google.protobuf.DurationB\003\340A\003\022\024\n\007rol" + + "lout\030\003 \001(\tB\003\340A\003\022\036\n\021destination_phase\030\004 \001" + + "(\tB\003\340A\003\"\233\001\n\026RepairRolloutOperation\022\024\n\007ro" + + "llout\030\001 \001(\tB\003\340A\003\022?\n\rrepair_phases\030\003 \003(\0132" + + "#.google.cloud.deploy.v1.RepairPhaseB\003\340A" + + "\003\022\025\n\010phase_id\030\004 \001(\tB\003\340A\003\022\023\n\006job_id\030\005 \001(\t" + + "B\003\340A\003\"\231\001\n\013RepairPhase\0228\n\005retry\030\001 \001(\0132\".g" + + "oogle.cloud.deploy.v1.RetryPhaseB\003\340A\003H\000\022" + + "@\n\010rollback\030\002 \001(\0132\'.google.cloud.deploy." + + "v1.RollbackAttemptB\003\340A\003H\000B\016\n\014repair_phas" + + "e\"\246\001\n\nRetryPhase\022\033\n\016total_attempts\030\001 \001(\003" + + "B\003\340A\003\022>\n\014backoff_mode\030\002 \001(\0162#.google.clo" + + "ud.deploy.v1.BackoffModeB\003\340A\003\022;\n\010attempt" + + "s\030\005 \003(\0132$.google.cloud.deploy.v1.RetryAt" + + "temptB\003\340A\003\"\244\001\n\014RetryAttempt\022\024\n\007attempt\030\001" + + " \001(\003B\003\340A\003\022,\n\004wait\030\002 \001(\0132\031.google.protobu" + + "f.DurationB\003\340A\003\0227\n\005state\030\005 \001(\0162#.google." + + "cloud.deploy.v1.RepairStateB\003\340A\003\022\027\n\nstat" + + "e_desc\030\006 \001(\tB\003\340A\003\"\234\001\n\017RollbackAttempt\022\036\n" + + "\021destination_phase\030\001 \001(\tB\003\340A\003\022\027\n\nrollout" + + "_id\030\002 \001(\tB\003\340A\003\0227\n\005state\030\003 \001(\0162#.google.c" + + "loud.deploy.v1.RepairStateB\003\340A\003\022\027\n\nstate" + + "_desc\030\004 \001(\tB\003\340A\003\"\246\001\n\031ListAutomationRunsR" + + "equest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(clouddep" + + "loy.googleapis.com/AutomationRun\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" + + "r\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\212\001\n\032ListAutoma" + + "tionRunsResponse\022>\n\017automation_runs\030\001 \003(" + + "\0132%.google.cloud.deploy.v1.AutomationRun" + + "\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable" + + "\030\003 \003(\t\"Y\n\027GetAutomationRunRequest\022>\n\004nam", + "e\030\001 \001(\tB0\340A\002\372A*\n(clouddeploy.googleapis." + + "com/AutomationRun\"\\\n\032CancelAutomationRun" + + "Request\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(clouddepl" + + "oy.googleapis.com/AutomationRun\"\035\n\033Cance" + + "lAutomationRunResponse*\271\001\n\024SkaffoldSuppo" + + "rtState\022&\n\"SKAFFOLD_SUPPORT_STATE_UNSPEC" + + "IFIED\020\000\022$\n SKAFFOLD_SUPPORT_STATE_SUPPOR" + + "TED\020\001\022+\n\'SKAFFOLD_SUPPORT_STATE_MAINTENA" + + "NCE_MODE\020\002\022&\n\"SKAFFOLD_SUPPORT_STATE_UNS" + + "UPPORTED\020\003*b\n\013BackoffMode\022\034\n\030BACKOFF_MOD" + + "E_UNSPECIFIED\020\000\022\027\n\023BACKOFF_MODE_LINEAR\020\001" + + "\022\034\n\030BACKOFF_MODE_EXPONENTIAL\020\002*\316\001\n\013Repai" + + "rState\022\034\n\030REPAIR_STATE_UNSPECIFIED\020\000\022\032\n\026" + + "REPAIR_STATE_SUCCEEDED\020\001\022\032\n\026REPAIR_STATE" + + "_CANCELLED\020\002\022\027\n\023REPAIR_STATE_FAILED\020\003\022\034\n" + + "\030REPAIR_STATE_IN_PROGRESS\020\004\022\030\n\024REPAIR_ST" + + "ATE_PENDING\020\005\022\030\n\024REPAIR_STATE_ABORTED\020\0072" + + "\242D\n\013CloudDeploy\022\314\001\n\025ListDeliveryPipeline" + + "s\0224.google.cloud.deploy.v1.ListDeliveryP" + + "ipelinesRequest\0325.google.cloud.deploy.v1" + + ".ListDeliveryPipelinesResponse\"F\332A\006paren" + + "t\202\323\344\223\0027\0225/v1/{parent=projects/*/location" + + "s/*}/deliveryPipelines\022\271\001\n\023GetDeliveryPi" + + "peline\0222.google.cloud.deploy.v1.GetDeliv" + + "eryPipelineRequest\032(.google.cloud.deploy" + + ".v1.DeliveryPipeline\"D\332A\004name\202\323\344\223\0027\0225/v1" + + "/{name=projects/*/locations/*/deliveryPi" + + "pelines/*}\022\231\002\n\026CreateDeliveryPipeline\0225." + + "google.cloud.deploy.v1.CreateDeliveryPip" + + "elineRequest\032\035.google.longrunning.Operat" + + "ion\"\250\001\312A%\n\020DeliveryPipeline\022\021OperationMe" + + "tadata\332A-parent,delivery_pipeline,delive" + + "ry_pipeline_id\202\323\344\223\002J\"5/v1/{parent=projec" + + "ts/*/locations/*}/deliveryPipelines:\021del" + + "ivery_pipeline\022\233\002\n\026UpdateDeliveryPipelin" + + "e\0225.google.cloud.deploy.v1.UpdateDeliver" + + "yPipelineRequest\032\035.google.longrunning.Op" + + "eration\"\252\001\312A%\n\020DeliveryPipeline\022\021Operati" + + "onMetadata\332A\035delivery_pipeline,update_ma" + + "sk\202\323\344\223\002\\2G/v1/{delivery_pipeline.name=pr" + + "ojects/*/locations/*/deliveryPipelines/*" + + "}:\021delivery_pipeline\022\341\001\n\026DeleteDeliveryP" + + "ipeline\0225.google.cloud.deploy.v1.DeleteD" + + "eliveryPipelineRequest\032\035.google.longrunn" + + "ing.Operation\"q\312A*\n\025google.protobuf.Empt" + + "y\022\021OperationMetadata\332A\004name\202\323\344\223\0027*5/v1/{" + + "name=projects/*/locations/*/deliveryPipe" + + "lines/*}\022\244\001\n\013ListTargets\022*.google.cloud." + + "deploy.v1.ListTargetsRequest\032+.google.cl" + + "oud.deploy.v1.ListTargetsResponse\"<\332A\006pa" + + "rent\202\323\344\223\002-\022+/v1/{parent=projects/*/locat" + + "ions/*}/targets\022\334\001\n\016RollbackTarget\022-.goo" + + "gle.cloud.deploy.v1.RollbackTargetReques" + + "t\032..google.cloud.deploy.v1.RollbackTarge" + + "tResponse\"k\332A\031name,target_id,rollout_id\202" + + "\323\344\223\002I\"D/v1/{name=projects/*/locations/*/" + + "deliveryPipelines/*}:rollbackTarget:\001*\022\221" + + "\001\n\tGetTarget\022(.google.cloud.deploy.v1.Ge" + + "tTargetRequest\032\036.google.cloud.deploy.v1." + + "Target\":\332A\004name\202\323\344\223\002-\022+/v1/{name=project" + + "s/*/locations/*/targets/*}\022\317\001\n\014CreateTar" + + "get\022+.google.cloud.deploy.v1.CreateTarge" + + "tRequest\032\035.google.longrunning.Operation\"" + + "s\312A\033\n\006Target\022\021OperationMetadata\332A\027parent" + + ",target,target_id\202\323\344\223\0025\"+/v1/{parent=pro" + + "jects/*/locations/*}/targets:\006target\022\321\001\n" + + "\014UpdateTarget\022+.google.cloud.deploy.v1.U" + + "pdateTargetRequest\032\035.google.longrunning." + + "Operation\"u\312A\033\n\006Target\022\021OperationMetadat" + + "a\332A\022target,update_mask\202\323\344\223\002<22/v1/{targe" + + "t.name=projects/*/locations/*/targets/*}" + + ":\006target\022\303\001\n\014DeleteTarget\022+.google.cloud" + + ".deploy.v1.DeleteTargetRequest\032\035.google." + + "longrunning.Operation\"g\312A*\n\025google.proto" + + "buf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" + + "-*+/v1/{name=projects/*/locations/*/targ" + + "ets/*}\022\314\001\n\025ListCustomTargetTypes\0224.googl" + + "e.cloud.deploy.v1.ListCustomTargetTypesR" + + "equest\0325.google.cloud.deploy.v1.ListCust" + + "omTargetTypesResponse\"F\332A\006parent\202\323\344\223\0027\0225" + + "/v1/{parent=projects/*/locations/*}/cust" + + "omTargetTypes\022\271\001\n\023GetCustomTargetType\0222." + + "google.cloud.deploy.v1.GetCustomTargetTy" + + "peRequest\032(.google.cloud.deploy.v1.Custo" + + "mTargetType\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=pr" + + "ojects/*/locations/*/customTargetTypes/*" + + "}\022\234\002\n\026CreateCustomTargetType\0225.google.cl" + + "oud.deploy.v1.CreateCustomTargetTypeRequ" + + "est\032\035.google.longrunning.Operation\"\253\001\312A%" + + "\n\020CustomTargetType\022\021OperationMetadata\332A/" + + "parent,custom_target_type,custom_target_" + + "type_id\202\323\344\223\002K\"5/v1/{parent=projects/*/lo" + + "cations/*}/customTargetTypes:\022custom_tar" + + "get_type\022\236\002\n\026UpdateCustomTargetType\0225.go" + + "ogle.cloud.deploy.v1.UpdateCustomTargetT" + + "ypeRequest\032\035.google.longrunning.Operatio" + + "n\"\255\001\312A%\n\020CustomTargetType\022\021OperationMeta" + + "data\332A\036custom_target_type,update_mask\202\323\344" + + "\223\002^2H/v1/{custom_target_type.name=projec" + + "ts/*/locations/*/customTargetTypes/*}:\022c" + + "ustom_target_type\022\341\001\n\026DeleteCustomTarget" + + "Type\0225.google.cloud.deploy.v1.DeleteCust" + + "omTargetTypeRequest\032\035.google.longrunning" + + ".Operation\"q\312A*\n\025google.protobuf.Empty\022\021" + + "OperationMetadata\332A\004name\202\323\344\223\0027*5/v1/{nam" + + "e=projects/*/locations/*/customTargetTyp" + + "es/*}\022\274\001\n\014ListReleases\022+.google.cloud.de" + + "ploy.v1.ListReleasesRequest\032,.google.clo" + + "ud.deploy.v1.ListReleasesResponse\"Q\332A\006pa" + + "rent\202\323\344\223\002B\022@/v1/{parent=projects/*/locat" + + "ions/*/deliveryPipelines/*}/releases\022\251\001\n" + + "\nGetRelease\022).google.cloud.deploy.v1.Get" + + "ReleaseRequest\032\037.google.cloud.deploy.v1." + + "Release\"O\332A\004name\202\323\344\223\002B\022@/v1/{name=projec" + + "ts/*/locations/*/deliveryPipelines/*/rel" + + "eases/*}\022\353\001\n\rCreateRelease\022,.google.clou" + + "d.deploy.v1.CreateReleaseRequest\032\035.googl" + + "e.longrunning.Operation\"\214\001\312A\034\n\007Release\022\021" + + "OperationMetadata\332A\031parent,release,relea" + + "se_id\202\323\344\223\002K\"@/v1/{parent=projects/*/loca" + + "tions/*/deliveryPipelines/*}/releases:\007r" + + "elease\022\313\001\n\016AbandonRelease\022-.google.cloud" + + ".deploy.v1.AbandonReleaseRequest\032..googl" + + "e.cloud.deploy.v1.AbandonReleaseResponse" + + "\"Z\332A\004name\202\323\344\223\002M\"H/v1/{name=projects/*/lo" + + "cations/*/deliveryPipelines/*/releases/*" + + "}:abandon:\001*\022\326\001\n\016ApproveRollout\022-.google" + + ".cloud.deploy.v1.ApproveRolloutRequest\032." + + ".google.cloud.deploy.v1.ApproveRolloutRe" + + "sponse\"e\332A\004name\202\323\344\223\002X\"S/v1/{name=project" + + "s/*/locations/*/deliveryPipelines/*/rele" + + "ases/*/rollouts/*}:approve:\001*\022\337\001\n\016Advanc" + + "eRollout\022-.google.cloud.deploy.v1.Advanc" + + "eRolloutRequest\032..google.cloud.deploy.v1" + + ".AdvanceRolloutResponse\"n\332A\rname,phase_i" + + "d\202\323\344\223\002X\"S/v1/{name=projects/*/locations/" + + "*/deliveryPipelines/*/releases/*/rollout" + + "s/*}:advance:\001*\022\322\001\n\rCancelRollout\022,.goog" + + "le.cloud.deploy.v1.CancelRolloutRequest\032" + + "-.google.cloud.deploy.v1.CancelRolloutRe" + + "sponse\"d\332A\004name\202\323\344\223\002W\"R/v1/{name=project" + + "s/*/locations/*/deliveryPipelines/*/rele" + + "ases/*/rollouts/*}:cancel:\001*\022\307\001\n\014ListRol" + + "louts\022+.google.cloud.deploy.v1.ListRollo" + + "utsRequest\032,.google.cloud.deploy.v1.List" + + "RolloutsResponse\"\\\332A\006parent\202\323\344\223\002M\022K/v1/{" + + "parent=projects/*/locations/*/deliveryPi" + + "pelines/*/releases/*}/rollouts\022\264\001\n\nGetRo" + + "llout\022).google.cloud.deploy.v1.GetRollou" + + "tRequest\032\037.google.cloud.deploy.v1.Rollou" + + "t\"Z\332A\004name\202\323\344\223\002M\022K/v1/{name=projects/*/l" + + "ocations/*/deliveryPipelines/*/releases/" + + "*/rollouts/*}\022\366\001\n\rCreateRollout\022,.google" + + ".cloud.deploy.v1.CreateRolloutRequest\032\035." + + "google.longrunning.Operation\"\227\001\312A\034\n\007Roll" + + "out\022\021OperationMetadata\332A\031parent,rollout," + + "rollout_id\202\323\344\223\002V\"K/v1/{parent=projects/*" + + "/locations/*/deliveryPipelines/*/release" + + "s/*}/rollouts:\007rollout\022\337\001\n\tIgnoreJob\022(.g" + + "oogle.cloud.deploy.v1.IgnoreJobRequest\032)" + + ".google.cloud.deploy.v1.IgnoreJobRespons" + + "e\"}\332A\027rollout,phase_id,job_id\202\323\344\223\002]\"X/v1" + + "/{rollout=projects/*/locations/*/deliver" + + "yPipelines/*/releases/*/rollouts/*}:igno" + + "reJob:\001*\022\333\001\n\010RetryJob\022\'.google.cloud.dep" + + "loy.v1.RetryJobRequest\032(.google.cloud.de" + + "ploy.v1.RetryJobResponse\"|\332A\027rollout,pha" + + "se_id,job_id\202\323\344\223\002\\\"W/v1/{rollout=project" + + "s/*/locations/*/deliveryPipelines/*/rele" + + "ases/*/rollouts/*}:retryJob:\001*\022\316\001\n\013ListJ" + + "obRuns\022*.google.cloud.deploy.v1.ListJobR" + + "unsRequest\032+.google.cloud.deploy.v1.List" + + "JobRunsResponse\"f\332A\006parent\202\323\344\223\002W\022U/v1/{p" + + "arent=projects/*/locations/*/deliveryPip" + + "elines/*/releases/*/rollouts/*}/jobRuns\022" + + "\273\001\n\tGetJobRun\022(.google.cloud.deploy.v1.G" + + "etJobRunRequest\032\036.google.cloud.deploy.v1" + + ".JobRun\"d\332A\004name\202\323\344\223\002W\022U/v1/{name=projec" + + "ts/*/locations/*/deliveryPipelines/*/rel" + + "eases/*/rollouts/*/jobRuns/*}\022\345\001\n\017Termin" + + "ateJobRun\022..google.cloud.deploy.v1.Termi" + + "nateJobRunRequest\032/.google.cloud.deploy." + + "v1.TerminateJobRunResponse\"q\332A\004name\202\323\344\223\002" + + "d\"_/v1/{name=projects/*/locations/*/deli" + + "veryPipelines/*/releases/*/rollouts/*/jo" + + "bRuns/*}:terminate:\001*\022\216\001\n\tGetConfig\022(.go" + + "ogle.cloud.deploy.v1.GetConfigRequest\032\036." + + "google.cloud.deploy.v1.Config\"7\332A\004name\202\323" + + "\344\223\002*\022(/v1/{name=projects/*/locations/*/c" + + "onfig}\022\200\002\n\020CreateAutomation\022/.google.clo" + + "ud.deploy.v1.CreateAutomationRequest\032\035.g" + + "oogle.longrunning.Operation\"\233\001\312A\037\n\nAutom" + + "ation\022\021OperationMetadata\332A\037parent,automa" + + "tion,automation_id\202\323\344\223\002Q\"C/v1/{parent=pr" + + "ojects/*/locations/*/deliveryPipelines/*" + + "}/automations:\nautomation\022\202\002\n\020UpdateAuto" + + "mation\022/.google.cloud.deploy.v1.UpdateAu" + + "tomationRequest\032\035.google.longrunning.Ope" + + "ration\"\235\001\312A\037\n\nAutomation\022\021OperationMetad" + + "ata\332A\026automation,update_mask\202\323\344\223\002\\2N/v1/" + + "{automation.name=projects/*/locations/*/" + + "deliveryPipelines/*/automations/*}:\nauto" + + "mation\022\343\001\n\020DeleteAutomation\022/.google.clo" + + "ud.deploy.v1.DeleteAutomationRequest\032\035.g" + + "oogle.longrunning.Operation\"\177\312A*\n\025google" + + ".protobuf.Empty\022\021OperationMetadata\332A\004nam" + + "e\202\323\344\223\002E*C/v1/{name=projects/*/locations/" + + "*/deliveryPipelines/*/automations/*}\022\265\001\n" + + "\rGetAutomation\022,.google.cloud.deploy.v1." + + "GetAutomationRequest\032\".google.cloud.depl" + + "oy.v1.Automation\"R\332A\004name\202\323\344\223\002E\022C/v1/{na" + + "me=projects/*/locations/*/deliveryPipeli" + + "nes/*/automations/*}\022\310\001\n\017ListAutomations" + + "\022..google.cloud.deploy.v1.ListAutomation" + + "sRequest\032/.google.cloud.deploy.v1.ListAu" + + "tomationsResponse\"T\332A\006parent\202\323\344\223\002E\022C/v1/" + + "{parent=projects/*/locations/*/deliveryP" + + "ipelines/*}/automations\022\301\001\n\020GetAutomatio" + + "nRun\022/.google.cloud.deploy.v1.GetAutomat" + + "ionRunRequest\032%.google.cloud.deploy.v1.A" + + "utomationRun\"U\332A\004name\202\323\344\223\002H\022F/v1/{name=p" + "rojects/*/locations/*/deliveryPipelines/" - + "*/releases/*/rollouts/*}:ignoreJob:\001*\022\333\001" - + "\n\010RetryJob\022\'.google.cloud.deploy.v1.Retr" - + "yJobRequest\032(.google.cloud.deploy.v1.Ret" - + "ryJobResponse\"|\332A\027rollout,phase_id,job_i" - + "d\202\323\344\223\002\\\"W/v1/{rollout=projects/*/locatio" - + "ns/*/deliveryPipelines/*/releases/*/roll" - + "outs/*}:retryJob:\001*\022\316\001\n\013ListJobRuns\022*.go" - + "ogle.cloud.deploy.v1.ListJobRunsRequest\032" - + "+.google.cloud.deploy.v1.ListJobRunsResp" - + "onse\"f\332A\006parent\202\323\344\223\002W\022U/v1/{parent=proje" - + "cts/*/locations/*/deliveryPipelines/*/re" - + "leases/*/rollouts/*}/jobRuns\022\273\001\n\tGetJobR" - + "un\022(.google.cloud.deploy.v1.GetJobRunReq" - + "uest\032\036.google.cloud.deploy.v1.JobRun\"d\332A" - + "\004name\202\323\344\223\002W\022U/v1/{name=projects/*/locati" - + "ons/*/deliveryPipelines/*/releases/*/rol" - + "louts/*/jobRuns/*}\022\345\001\n\017TerminateJobRun\022." - + ".google.cloud.deploy.v1.TerminateJobRunR" - + "equest\032/.google.cloud.deploy.v1.Terminat" - + "eJobRunResponse\"q\332A\004name\202\323\344\223\002d\"_/v1/{nam" - + "e=projects/*/locations/*/deliveryPipelin" - + "es/*/releases/*/rollouts/*/jobRuns/*}:te" - + "rminate:\001*\022\216\001\n\tGetConfig\022(.google.cloud." - + "deploy.v1.GetConfigRequest\032\036.google.clou" - + "d.deploy.v1.Config\"7\332A\004name\202\323\344\223\002*\022(/v1/{" - + "name=projects/*/locations/*/config}\022\200\002\n\020" - + "CreateAutomation\022/.google.cloud.deploy.v" - + "1.CreateAutomationRequest\032\035.google.longr" - + "unning.Operation\"\233\001\312A\037\n\nAutomation\022\021Oper" - + "ationMetadata\332A\037parent,automation,automa" - + "tion_id\202\323\344\223\002Q\"C/v1/{parent=projects/*/lo" - + "cations/*/deliveryPipelines/*}/automatio" - + "ns:\nautomation\022\202\002\n\020UpdateAutomation\022/.go" - + "ogle.cloud.deploy.v1.UpdateAutomationReq" - + "uest\032\035.google.longrunning.Operation\"\235\001\312A" - + "\037\n\nAutomation\022\021OperationMetadata\332A\026autom" - + "ation,update_mask\202\323\344\223\002\\2N/v1/{automation" - + ".name=projects/*/locations/*/deliveryPip" - + "elines/*/automations/*}:\nautomation\022\343\001\n\020" - + "DeleteAutomation\022/.google.cloud.deploy.v" - + "1.DeleteAutomationRequest\032\035.google.longr" - + "unning.Operation\"\177\312A*\n\025google.protobuf.E" - + "mpty\022\021OperationMetadata\332A\004name\202\323\344\223\002E*C/v" - + "1/{name=projects/*/locations/*/deliveryP" - + "ipelines/*/automations/*}\022\265\001\n\rGetAutomat" - + "ion\022,.google.cloud.deploy.v1.GetAutomati" - + "onRequest\032\".google.cloud.deploy.v1.Autom" - + "ation\"R\332A\004name\202\323\344\223\002E\022C/v1/{name=projects" - + "/*/locations/*/deliveryPipelines/*/autom" - + "ations/*}\022\310\001\n\017ListAutomations\022..google.c" - + "loud.deploy.v1.ListAutomationsRequest\032/." - + "google.cloud.deploy.v1.ListAutomationsRe" - + "sponse\"T\332A\006parent\202\323\344\223\002E\022C/v1/{parent=pro" - + "jects/*/locations/*/deliveryPipelines/*}" - + "/automations\022\301\001\n\020GetAutomationRun\022/.goog" - + "le.cloud.deploy.v1.GetAutomationRunReque" - + "st\032%.google.cloud.deploy.v1.AutomationRu" - + "n\"U\332A\004name\202\323\344\223\002H\022F/v1/{name=projects/*/l" - + "ocations/*/deliveryPipelines/*/automatio" - + "nRuns/*}\022\324\001\n\022ListAutomationRuns\0221.google" - + ".cloud.deploy.v1.ListAutomationRunsReque" - + "st\0322.google.cloud.deploy.v1.ListAutomati" - + "onRunsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v1/{pa" - + "rent=projects/*/locations/*/deliveryPipe" - + "lines/*}/automationRuns\022\337\001\n\023CancelAutoma" - + "tionRun\0222.google.cloud.deploy.v1.CancelA" - + "utomationRunRequest\0323.google.cloud.deplo" - + "y.v1.CancelAutomationRunResponse\"_\332A\004nam" - + "e\202\323\344\223\002R\"M/v1/{name=projects/*/locations/" - + "*/deliveryPipelines/*/automationRuns/*}:" - + "cancel:\001*\032N\312A\032clouddeploy.googleapis.com" - + "\322A.https://www.googleapis.com/auth/cloud" - + "-platformB\215\007\n\032com.google.cloud.deploy.v1" - + "B\020CloudDeployProtoP\001Z2cloud.google.com/g" - + "o/deploy/apiv1/deploypb;deploypb\352AY\n\037clo" - + "udbuild.googleapis.com/Build\0226projects/{" - + "project}/locations/{location}/builds/{bu" - + "ild}\352A\202\001\n$cloudbuild.googleapis.com/Repo" - + "sitory\022Zprojects/{project}/locations/{lo" - + "cation}/connections/{connection}/reposit" - + "ories/{repository}\352A^\n container.googlea" - + "pis.com/Cluster\022:projects/{project}/loca" - + "tions/{location}/clusters/{cluster}\352Af\n$" - + "clouddeploy.googleapis.com/Operation\022>pr" - + "ojects/{project}/locations/{location}/op" - + "erations/{operation}\352Ai\n$cloudbuild.goog" - + "leapis.com/WorkerPool\022Aprojects/{project" - + "}/locations/{location}/workerPools/{work" - + "er_pool}\352Ad\n gkehub.googleapis.com/Membe" - + "rship\022@projects/{project}/locations/{loc" - + "ation}/memberships/{membership}\352AX\n\032run." - + "googleapis.com/Service\022:projects/{projec" - + "t}/locations/{location}/services/{servic" - + "e}\352AL\n\026run.googleapis.com/Job\0222projects/" - + "{project}/locations/{location}/jobs/{job" - + "}b\006proto3" + + "*/automationRuns/*}\022\324\001\n\022ListAutomationRu" + + "ns\0221.google.cloud.deploy.v1.ListAutomati" + + "onRunsRequest\0322.google.cloud.deploy.v1.L" + + "istAutomationRunsResponse\"W\332A\006parent\202\323\344\223" + + "\002H\022F/v1/{parent=projects/*/locations/*/d" + + "eliveryPipelines/*}/automationRuns\022\337\001\n\023C" + + "ancelAutomationRun\0222.google.cloud.deploy" + + ".v1.CancelAutomationRunRequest\0323.google." + + "cloud.deploy.v1.CancelAutomationRunRespo" + + "nse\"_\332A\004name\202\323\344\223\002R\"M/v1/{name=projects/*" + + "/locations/*/deliveryPipelines/*/automat" + + "ionRuns/*}:cancel:\001*\032N\312A\032clouddeploy.goo" + + "gleapis.com\322A.https://www.googleapis.com" + + "/auth/cloud-platformB\215\007\n\032com.google.clou" + + "d.deploy.v1B\020CloudDeployProtoP\001Z2cloud.g" + + "oogle.com/go/deploy/apiv1/deploypb;deplo" + + "ypb\352AY\n\037cloudbuild.googleapis.com/Build\022" + + "6projects/{project}/locations/{location}" + + "/builds/{build}\352A\202\001\n$cloudbuild.googleap" + + "is.com/Repository\022Zprojects/{project}/lo" + + "cations/{location}/connections/{connecti" + + "on}/repositories/{repository}\352A^\n contai" + + "ner.googleapis.com/Cluster\022:projects/{pr" + + "oject}/locations/{location}/clusters/{cl" + + "uster}\352Af\n$clouddeploy.googleapis.com/Op" + + "eration\022>projects/{project}/locations/{l" + + "ocation}/operations/{operation}\352Ai\n$clou" + + "dbuild.googleapis.com/WorkerPool\022Aprojec" + + "ts/{project}/locations/{location}/worker" + + "Pools/{worker_pool}\352Ad\n gkehub.googleapi" + + "s.com/Membership\022@projects/{project}/loc" + + "ations/{location}/memberships/{membershi" + + "p}\352AX\n\032run.googleapis.com/Service\022:proje" + + "cts/{project}/locations/{location}/servi" + + "ces/{service}\352AL\n\026run.googleapis.com/Job" + + "\0222projects/{project}/locations/{location" + + "}/jobs/{job}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1964,7 +1943,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_KubernetesConfig_GatewayServiceMesh_descriptor, new java.lang.String[] { - "HttpRoute", "Service", "Deployment", "RouteUpdateWaitTime", "StableCutbackDuration", + "HttpRoute", + "Service", + "Deployment", + "RouteUpdateWaitTime", + "StableCutbackDuration", + "PodSelectorLabel", }); internal_static_google_cloud_deploy_v1_KubernetesConfig_ServiceNetworking_descriptor = internal_static_google_cloud_deploy_v1_KubernetesConfig_descriptor.getNestedTypes().get(1); @@ -1972,7 +1956,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_KubernetesConfig_ServiceNetworking_descriptor, new java.lang.String[] { - "Service", "Deployment", "DisablePodOverprovisioning", + "Service", "Deployment", "DisablePodOverprovisioning", "PodSelectorLabel", }); internal_static_google_cloud_deploy_v1_CloudRunConfig_descriptor = getDescriptor().getMessageTypes().get(12); @@ -2190,7 +2174,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GkeCluster_descriptor, new java.lang.String[] { - "Cluster", "InternalIp", + "Cluster", "InternalIp", "ProxyUrl", }); internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor = getDescriptor().getMessageTypes().get(32); @@ -3116,34 +3100,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RepairRolloutRule_descriptor, new java.lang.String[] { - "Id", "SourcePhases", "Jobs", "RepairModes", "Condition", - }); - internal_static_google_cloud_deploy_v1_RepairMode_descriptor = - getDescriptor().getMessageTypes().get(117); - internal_static_google_cloud_deploy_v1_RepairMode_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_RepairMode_descriptor, - new java.lang.String[] { - "Retry", "Rollback", "Mode", - }); - internal_static_google_cloud_deploy_v1_Retry_descriptor = - getDescriptor().getMessageTypes().get(118); - internal_static_google_cloud_deploy_v1_Retry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Retry_descriptor, - new java.lang.String[] { - "Attempts", "Wait", "BackoffMode", - }); - internal_static_google_cloud_deploy_v1_Rollback_descriptor = - getDescriptor().getMessageTypes().get(119); - internal_static_google_cloud_deploy_v1_Rollback_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Rollback_descriptor, - new java.lang.String[] { - "DestinationPhase", + "Id", "Jobs", "Condition", }); internal_static_google_cloud_deploy_v1_AutomationRuleCondition_descriptor = - getDescriptor().getMessageTypes().get(120); + getDescriptor().getMessageTypes().get(117); internal_static_google_cloud_deploy_v1_AutomationRuleCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AutomationRuleCondition_descriptor, @@ -3151,7 +3111,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetsPresentCondition", }); internal_static_google_cloud_deploy_v1_CreateAutomationRequest_descriptor = - getDescriptor().getMessageTypes().get(121); + getDescriptor().getMessageTypes().get(118); internal_static_google_cloud_deploy_v1_CreateAutomationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CreateAutomationRequest_descriptor, @@ -3159,7 +3119,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "AutomationId", "Automation", "RequestId", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_UpdateAutomationRequest_descriptor = - getDescriptor().getMessageTypes().get(122); + getDescriptor().getMessageTypes().get(119); internal_static_google_cloud_deploy_v1_UpdateAutomationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_UpdateAutomationRequest_descriptor, @@ -3167,7 +3127,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Automation", "RequestId", "AllowMissing", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_DeleteAutomationRequest_descriptor = - getDescriptor().getMessageTypes().get(123); + getDescriptor().getMessageTypes().get(120); internal_static_google_cloud_deploy_v1_DeleteAutomationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_DeleteAutomationRequest_descriptor, @@ -3175,7 +3135,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "AllowMissing", "ValidateOnly", "Etag", }); internal_static_google_cloud_deploy_v1_ListAutomationsRequest_descriptor = - getDescriptor().getMessageTypes().get(124); + getDescriptor().getMessageTypes().get(121); internal_static_google_cloud_deploy_v1_ListAutomationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListAutomationsRequest_descriptor, @@ -3183,7 +3143,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListAutomationsResponse_descriptor = - getDescriptor().getMessageTypes().get(125); + getDescriptor().getMessageTypes().get(122); internal_static_google_cloud_deploy_v1_ListAutomationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListAutomationsResponse_descriptor, @@ -3191,7 +3151,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Automations", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetAutomationRequest_descriptor = - getDescriptor().getMessageTypes().get(126); + getDescriptor().getMessageTypes().get(123); internal_static_google_cloud_deploy_v1_GetAutomationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetAutomationRequest_descriptor, @@ -3199,7 +3159,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_AutomationRun_descriptor = - getDescriptor().getMessageTypes().get(127); + getDescriptor().getMessageTypes().get(124); internal_static_google_cloud_deploy_v1_AutomationRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AutomationRun_descriptor, @@ -3223,7 +3183,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", }); internal_static_google_cloud_deploy_v1_PromoteReleaseOperation_descriptor = - getDescriptor().getMessageTypes().get(128); + getDescriptor().getMessageTypes().get(125); internal_static_google_cloud_deploy_v1_PromoteReleaseOperation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_PromoteReleaseOperation_descriptor, @@ -3231,7 +3191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetId", "Wait", "Rollout", "Phase", }); internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_descriptor = - getDescriptor().getMessageTypes().get(129); + getDescriptor().getMessageTypes().get(126); internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_descriptor, @@ -3239,15 +3199,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourcePhase", "Wait", "Rollout", "DestinationPhase", }); internal_static_google_cloud_deploy_v1_RepairRolloutOperation_descriptor = - getDescriptor().getMessageTypes().get(130); + getDescriptor().getMessageTypes().get(127); internal_static_google_cloud_deploy_v1_RepairRolloutOperation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RepairRolloutOperation_descriptor, new java.lang.String[] { - "Rollout", "CurrentRepairModeIndex", "RepairPhases", + "Rollout", "RepairPhases", "PhaseId", "JobId", }); internal_static_google_cloud_deploy_v1_RepairPhase_descriptor = - getDescriptor().getMessageTypes().get(131); + getDescriptor().getMessageTypes().get(128); internal_static_google_cloud_deploy_v1_RepairPhase_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RepairPhase_descriptor, @@ -3255,15 +3215,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Retry", "Rollback", "RepairPhase", }); internal_static_google_cloud_deploy_v1_RetryPhase_descriptor = - getDescriptor().getMessageTypes().get(132); + getDescriptor().getMessageTypes().get(129); internal_static_google_cloud_deploy_v1_RetryPhase_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RetryPhase_descriptor, new java.lang.String[] { - "TotalAttempts", "BackoffMode", "PhaseId", "JobId", "Attempts", + "TotalAttempts", "BackoffMode", "Attempts", }); internal_static_google_cloud_deploy_v1_RetryAttempt_descriptor = - getDescriptor().getMessageTypes().get(133); + getDescriptor().getMessageTypes().get(130); internal_static_google_cloud_deploy_v1_RetryAttempt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RetryAttempt_descriptor, @@ -3271,7 +3231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Attempt", "Wait", "State", "StateDesc", }); internal_static_google_cloud_deploy_v1_RollbackAttempt_descriptor = - getDescriptor().getMessageTypes().get(134); + getDescriptor().getMessageTypes().get(131); internal_static_google_cloud_deploy_v1_RollbackAttempt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RollbackAttempt_descriptor, @@ -3279,7 +3239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestinationPhase", "RolloutId", "State", "StateDesc", }); internal_static_google_cloud_deploy_v1_ListAutomationRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(135); + getDescriptor().getMessageTypes().get(132); internal_static_google_cloud_deploy_v1_ListAutomationRunsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListAutomationRunsRequest_descriptor, @@ -3287,7 +3247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListAutomationRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(136); + getDescriptor().getMessageTypes().get(133); internal_static_google_cloud_deploy_v1_ListAutomationRunsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListAutomationRunsResponse_descriptor, @@ -3295,7 +3255,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AutomationRuns", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetAutomationRunRequest_descriptor = - getDescriptor().getMessageTypes().get(137); + getDescriptor().getMessageTypes().get(134); internal_static_google_cloud_deploy_v1_GetAutomationRunRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetAutomationRunRequest_descriptor, @@ -3303,7 +3263,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CancelAutomationRunRequest_descriptor = - getDescriptor().getMessageTypes().get(138); + getDescriptor().getMessageTypes().get(135); internal_static_google_cloud_deploy_v1_CancelAutomationRunRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CancelAutomationRunRequest_descriptor, @@ -3311,7 +3271,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CancelAutomationRunResponse_descriptor = - getDescriptor().getMessageTypes().get(139); + getDescriptor().getMessageTypes().get(136); internal_static_google_cloud_deploy_v1_CancelAutomationRunResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CancelAutomationRunResponse_descriptor, diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateAutomationRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateAutomationRequest.java index 605c66d7b95b..2a326fbf42d4 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateAutomationRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateAutomationRequest.java @@ -74,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. The parent collection in which the `Automation` should be
        -   * created. Format should be
        +   * Required. The parent collection in which the `Automation` must be created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * @@ -101,8 +101,8 @@ public java.lang.String getParent() { * * *
        -   * Required. The parent collection in which the `Automation` should be
        -   * created. Format should be
        +   * Required. The parent collection in which the `Automation` must be created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * @@ -786,8 +786,8 @@ public Builder mergeFrom( * * *
        -     * Required. The parent collection in which the `Automation` should be
        -     * created. Format should be
        +     * Required. The parent collection in which the `Automation` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -812,8 +812,8 @@ public java.lang.String getParent() { * * *
        -     * Required. The parent collection in which the `Automation` should be
        -     * created. Format should be
        +     * Required. The parent collection in which the `Automation` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -838,8 +838,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
        -     * Required. The parent collection in which the `Automation` should be
        -     * created. Format should be
        +     * Required. The parent collection in which the `Automation` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -863,8 +863,8 @@ public Builder setParent(java.lang.String value) { * * *
        -     * Required. The parent collection in which the `Automation` should be
        -     * created. Format should be
        +     * Required. The parent collection in which the `Automation` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -884,8 +884,8 @@ public Builder clearParent() { * * *
        -     * Required. The parent collection in which the `Automation` should be
        -     * created. Format should be
        +     * Required. The parent collection in which the `Automation` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateAutomationRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateAutomationRequestOrBuilder.java index 74866bea34f0..7859d2c8f916 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateAutomationRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateAutomationRequestOrBuilder.java @@ -28,8 +28,8 @@ public interface CreateAutomationRequestOrBuilder * * *
        -   * Required. The parent collection in which the `Automation` should be
        -   * created. Format should be
        +   * Required. The parent collection in which the `Automation` must be created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * @@ -44,8 +44,8 @@ public interface CreateAutomationRequestOrBuilder * * *
        -   * Required. The parent collection in which the `Automation` should be
        -   * created. Format should be
        +   * Required. The parent collection in which the `Automation` must be created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateCustomTargetTypeRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateCustomTargetTypeRequest.java index ed8362903d1f..1eccbf38eaea 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateCustomTargetTypeRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateCustomTargetTypeRequest.java @@ -74,9 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. The parent collection in which the `CustomTargetType` should be
        -   * created. Format should be
        -   * `projects/{project_id}/locations/{location_name}`.
        +   * Required. The parent collection in which the `CustomTargetType` must be
        +   * created. The format is `projects/{project_id}/locations/{location_name}`.
            * 
        * * @@ -101,9 +100,8 @@ public java.lang.String getParent() { * * *
        -   * Required. The parent collection in which the `CustomTargetType` should be
        -   * created. Format should be
        -   * `projects/{project_id}/locations/{location_name}`.
        +   * Required. The parent collection in which the `CustomTargetType` must be
        +   * created. The format is `projects/{project_id}/locations/{location_name}`.
            * 
        * * @@ -789,9 +787,8 @@ public Builder mergeFrom( * * *
        -     * Required. The parent collection in which the `CustomTargetType` should be
        -     * created. Format should be
        -     * `projects/{project_id}/locations/{location_name}`.
        +     * Required. The parent collection in which the `CustomTargetType` must be
        +     * created. The format is `projects/{project_id}/locations/{location_name}`.
              * 
        * * @@ -815,9 +812,8 @@ public java.lang.String getParent() { * * *
        -     * Required. The parent collection in which the `CustomTargetType` should be
        -     * created. Format should be
        -     * `projects/{project_id}/locations/{location_name}`.
        +     * Required. The parent collection in which the `CustomTargetType` must be
        +     * created. The format is `projects/{project_id}/locations/{location_name}`.
              * 
        * * @@ -841,9 +837,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
        -     * Required. The parent collection in which the `CustomTargetType` should be
        -     * created. Format should be
        -     * `projects/{project_id}/locations/{location_name}`.
        +     * Required. The parent collection in which the `CustomTargetType` must be
        +     * created. The format is `projects/{project_id}/locations/{location_name}`.
              * 
        * * @@ -866,9 +861,8 @@ public Builder setParent(java.lang.String value) { * * *
        -     * Required. The parent collection in which the `CustomTargetType` should be
        -     * created. Format should be
        -     * `projects/{project_id}/locations/{location_name}`.
        +     * Required. The parent collection in which the `CustomTargetType` must be
        +     * created. The format is `projects/{project_id}/locations/{location_name}`.
              * 
        * * @@ -887,9 +881,8 @@ public Builder clearParent() { * * *
        -     * Required. The parent collection in which the `CustomTargetType` should be
        -     * created. Format should be
        -     * `projects/{project_id}/locations/{location_name}`.
        +     * Required. The parent collection in which the `CustomTargetType` must be
        +     * created. The format is `projects/{project_id}/locations/{location_name}`.
              * 
        * * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateCustomTargetTypeRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateCustomTargetTypeRequestOrBuilder.java index 4c67b27aa715..6b3faa6fe928 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateCustomTargetTypeRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateCustomTargetTypeRequestOrBuilder.java @@ -28,9 +28,8 @@ public interface CreateCustomTargetTypeRequestOrBuilder * * *
        -   * Required. The parent collection in which the `CustomTargetType` should be
        -   * created. Format should be
        -   * `projects/{project_id}/locations/{location_name}`.
        +   * Required. The parent collection in which the `CustomTargetType` must be
        +   * created. The format is `projects/{project_id}/locations/{location_name}`.
            * 
        * * @@ -44,9 +43,8 @@ public interface CreateCustomTargetTypeRequestOrBuilder * * *
        -   * Required. The parent collection in which the `CustomTargetType` should be
        -   * created. Format should be
        -   * `projects/{project_id}/locations/{location_name}`.
        +   * Required. The parent collection in which the `CustomTargetType` must be
        +   * created. The format is `projects/{project_id}/locations/{location_name}`.
            * 
        * * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequest.java index c0aa884afedd..3c6676cddb47 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequest.java @@ -74,9 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. The parent collection in which the `DeliveryPipeline` should be
        -   * created. Format should be
        -   * `projects/{project_id}/locations/{location_name}`.
        +   * Required. The parent collection in which the `DeliveryPipeline` must be
        +   * created. The format is `projects/{project_id}/locations/{location_name}`.
            * 
        * * @@ -101,9 +100,8 @@ public java.lang.String getParent() { * * *
        -   * Required. The parent collection in which the `DeliveryPipeline` should be
        -   * created. Format should be
        -   * `projects/{project_id}/locations/{location_name}`.
        +   * Required. The parent collection in which the `DeliveryPipeline` must be
        +   * created. The format is `projects/{project_id}/locations/{location_name}`.
            * 
        * * @@ -789,9 +787,8 @@ public Builder mergeFrom( * * *
        -     * Required. The parent collection in which the `DeliveryPipeline` should be
        -     * created. Format should be
        -     * `projects/{project_id}/locations/{location_name}`.
        +     * Required. The parent collection in which the `DeliveryPipeline` must be
        +     * created. The format is `projects/{project_id}/locations/{location_name}`.
              * 
        * * @@ -815,9 +812,8 @@ public java.lang.String getParent() { * * *
        -     * Required. The parent collection in which the `DeliveryPipeline` should be
        -     * created. Format should be
        -     * `projects/{project_id}/locations/{location_name}`.
        +     * Required. The parent collection in which the `DeliveryPipeline` must be
        +     * created. The format is `projects/{project_id}/locations/{location_name}`.
              * 
        * * @@ -841,9 +837,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
        -     * Required. The parent collection in which the `DeliveryPipeline` should be
        -     * created. Format should be
        -     * `projects/{project_id}/locations/{location_name}`.
        +     * Required. The parent collection in which the `DeliveryPipeline` must be
        +     * created. The format is `projects/{project_id}/locations/{location_name}`.
              * 
        * * @@ -866,9 +861,8 @@ public Builder setParent(java.lang.String value) { * * *
        -     * Required. The parent collection in which the `DeliveryPipeline` should be
        -     * created. Format should be
        -     * `projects/{project_id}/locations/{location_name}`.
        +     * Required. The parent collection in which the `DeliveryPipeline` must be
        +     * created. The format is `projects/{project_id}/locations/{location_name}`.
              * 
        * * @@ -887,9 +881,8 @@ public Builder clearParent() { * * *
        -     * Required. The parent collection in which the `DeliveryPipeline` should be
        -     * created. Format should be
        -     * `projects/{project_id}/locations/{location_name}`.
        +     * Required. The parent collection in which the `DeliveryPipeline` must be
        +     * created. The format is `projects/{project_id}/locations/{location_name}`.
              * 
        * * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequestOrBuilder.java index 872562970450..e5180ee9b7e3 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequestOrBuilder.java @@ -28,9 +28,8 @@ public interface CreateDeliveryPipelineRequestOrBuilder * * *
        -   * Required. The parent collection in which the `DeliveryPipeline` should be
        -   * created. Format should be
        -   * `projects/{project_id}/locations/{location_name}`.
        +   * Required. The parent collection in which the `DeliveryPipeline` must be
        +   * created. The format is `projects/{project_id}/locations/{location_name}`.
            * 
        * * @@ -44,9 +43,8 @@ public interface CreateDeliveryPipelineRequestOrBuilder * * *
        -   * Required. The parent collection in which the `DeliveryPipeline` should be
        -   * created. Format should be
        -   * `projects/{project_id}/locations/{location_name}`.
        +   * Required. The parent collection in which the `DeliveryPipeline` must be
        +   * created. The format is `projects/{project_id}/locations/{location_name}`.
            * 
        * * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequest.java index 91622c9f51a0..a250964bace7 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequest.java @@ -74,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. The parent collection in which the `Release` should be created.
        -   * Format should be
        +   * Required. The parent collection in which the `Release` is created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * @@ -101,8 +101,8 @@ public java.lang.String getParent() { * * *
        -   * Required. The parent collection in which the `Release` should be created.
        -   * Format should be
        +   * Required. The parent collection in which the `Release` is created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * @@ -779,8 +779,8 @@ public Builder mergeFrom( * * *
        -     * Required. The parent collection in which the `Release` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Release` is created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -805,8 +805,8 @@ public java.lang.String getParent() { * * *
        -     * Required. The parent collection in which the `Release` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Release` is created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -831,8 +831,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
        -     * Required. The parent collection in which the `Release` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Release` is created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -856,8 +856,8 @@ public Builder setParent(java.lang.String value) { * * *
        -     * Required. The parent collection in which the `Release` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Release` is created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -877,8 +877,8 @@ public Builder clearParent() { * * *
        -     * Required. The parent collection in which the `Release` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Release` is created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequestOrBuilder.java index c31d0749e6e6..8de3c97d14a4 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequestOrBuilder.java @@ -28,8 +28,8 @@ public interface CreateReleaseRequestOrBuilder * * *
        -   * Required. The parent collection in which the `Release` should be created.
        -   * Format should be
        +   * Required. The parent collection in which the `Release` is created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * @@ -44,8 +44,8 @@ public interface CreateReleaseRequestOrBuilder * * *
        -   * Required. The parent collection in which the `Release` should be created.
        -   * Format should be
        +   * Required. The parent collection in which the `Release` is created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequest.java index 47b7146b9e63..d9841116f43f 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequest.java @@ -75,8 +75,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. The parent collection in which the `Rollout` should be created.
        -   * Format should be
        +   * Required. The parent collection in which the `Rollout` must be created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
            * 
        * @@ -102,8 +102,8 @@ public java.lang.String getParent() { * * *
        -   * Required. The parent collection in which the `Rollout` should be created.
        -   * Format should be
        +   * Required. The parent collection in which the `Rollout` must be created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
            * 
        * @@ -857,8 +857,8 @@ public Builder mergeFrom( * * *
        -     * Required. The parent collection in which the `Rollout` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Rollout` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
              * 
        * @@ -883,8 +883,8 @@ public java.lang.String getParent() { * * *
        -     * Required. The parent collection in which the `Rollout` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Rollout` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
              * 
        * @@ -909,8 +909,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
        -     * Required. The parent collection in which the `Rollout` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Rollout` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
              * 
        * @@ -934,8 +934,8 @@ public Builder setParent(java.lang.String value) { * * *
        -     * Required. The parent collection in which the `Rollout` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Rollout` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
              * 
        * @@ -955,8 +955,8 @@ public Builder clearParent() { * * *
        -     * Required. The parent collection in which the `Rollout` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Rollout` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
              * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequestOrBuilder.java index 08ffbcdc9760..904492ae1523 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequestOrBuilder.java @@ -28,8 +28,8 @@ public interface CreateRolloutRequestOrBuilder * * *
        -   * Required. The parent collection in which the `Rollout` should be created.
        -   * Format should be
        +   * Required. The parent collection in which the `Rollout` must be created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
            * 
        * @@ -44,8 +44,8 @@ public interface CreateRolloutRequestOrBuilder * * *
        -   * Required. The parent collection in which the `Rollout` should be created.
        -   * Format should be
        +   * Required. The parent collection in which the `Rollout` must be created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
            * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequest.java index 268418921be5..cec5efa8ed7c 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequest.java @@ -74,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. The parent collection in which the `Target` should be created.
        -   * Format should be
        +   * Required. The parent collection in which the `Target` must be created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}`.
            * 
        * @@ -101,8 +101,8 @@ public java.lang.String getParent() { * * *
        -   * Required. The parent collection in which the `Target` should be created.
        -   * Format should be
        +   * Required. The parent collection in which the `Target` must be created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}`.
            * 
        * @@ -778,8 +778,8 @@ public Builder mergeFrom( * * *
        -     * Required. The parent collection in which the `Target` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Target` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}`.
              * 
        * @@ -804,8 +804,8 @@ public java.lang.String getParent() { * * *
        -     * Required. The parent collection in which the `Target` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Target` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}`.
              * 
        * @@ -830,8 +830,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
        -     * Required. The parent collection in which the `Target` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Target` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}`.
              * 
        * @@ -855,8 +855,8 @@ public Builder setParent(java.lang.String value) { * * *
        -     * Required. The parent collection in which the `Target` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Target` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}`.
              * 
        * @@ -876,8 +876,8 @@ public Builder clearParent() { * * *
        -     * Required. The parent collection in which the `Target` should be created.
        -     * Format should be
        +     * Required. The parent collection in which the `Target` must be created.
        +     * The format is
              * `projects/{project_id}/locations/{location_name}`.
              * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequestOrBuilder.java index 841e3d65156b..d2bfccb7d20c 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequestOrBuilder.java @@ -28,8 +28,8 @@ public interface CreateTargetRequestOrBuilder * * *
        -   * Required. The parent collection in which the `Target` should be created.
        -   * Format should be
        +   * Required. The parent collection in which the `Target` must be created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}`.
            * 
        * @@ -44,8 +44,8 @@ public interface CreateTargetRequestOrBuilder * * *
        -   * Required. The parent collection in which the `Target` should be created.
        -   * Format should be
        +   * Required. The parent collection in which the `Target` must be created.
        +   * The format is
            * `projects/{project_id}/locations/{location_name}`.
            * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeNotificationEvent.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeNotificationEvent.java new file mode 100644 index 000000000000..51b8dd68470c --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeNotificationEvent.java @@ -0,0 +1,1145 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/customtargettype_notification_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.deploy.v1; + +/** + * + * + *
        + * Payload proto for "clouddeploy.googleapis.com/customtargettype_notification"
        + * Platform Log event that describes the failure to send a custom target type
        + * status change Pub/Sub notification.
        + * 
        + * + * Protobuf type {@code google.cloud.deploy.v1.CustomTargetTypeNotificationEvent} + */ +public final class CustomTargetTypeNotificationEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.CustomTargetTypeNotificationEvent) + CustomTargetTypeNotificationEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomTargetTypeNotificationEvent.newBuilder() to construct. + private CustomTargetTypeNotificationEvent( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomTargetTypeNotificationEvent() { + message_ = ""; + customTargetTypeUid_ = ""; + customTargetType_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomTargetTypeNotificationEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CustomTargetTypeNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_CustomTargetTypeNotificationEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CustomTargetTypeNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_CustomTargetTypeNotificationEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent.class, + com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + /** + * + * + *
        +   * Debug message for when a notification fails to send.
        +   * 
        + * + * string message = 1; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
        +   * Debug message for when a notification fails to send.
        +   * 
        + * + * string message = 1; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_TARGET_TYPE_UID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object customTargetTypeUid_ = ""; + /** + * + * + *
        +   * Unique identifier of the `CustomTargetType`.
        +   * 
        + * + * string custom_target_type_uid = 4; + * + * @return The customTargetTypeUid. + */ + @java.lang.Override + public java.lang.String getCustomTargetTypeUid() { + java.lang.Object ref = customTargetTypeUid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customTargetTypeUid_ = s; + return s; + } + } + /** + * + * + *
        +   * Unique identifier of the `CustomTargetType`.
        +   * 
        + * + * string custom_target_type_uid = 4; + * + * @return The bytes for customTargetTypeUid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomTargetTypeUidBytes() { + java.lang.Object ref = customTargetTypeUid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customTargetTypeUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_TARGET_TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object customTargetType_ = ""; + /** + * + * + *
        +   * The name of the `CustomTargetType`.
        +   * 
        + * + * string custom_target_type = 2; + * + * @return The customTargetType. + */ + @java.lang.Override + public java.lang.String getCustomTargetType() { + java.lang.Object ref = customTargetType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customTargetType_ = s; + return s; + } + } + /** + * + * + *
        +   * The name of the `CustomTargetType`.
        +   * 
        + * + * string custom_target_type = 2; + * + * @return The bytes for customTargetType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomTargetTypeBytes() { + java.lang.Object ref = customTargetType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customTargetType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + private int type_ = 0; + /** + * + * + *
        +   * Type of this notification, e.g. for a Pub/Sub failure.
        +   * 
        + * + * .google.cloud.deploy.v1.Type type = 3; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
        +   * Type of this notification, e.g. for a Pub/Sub failure.
        +   * 
        + * + * .google.cloud.deploy.v1.Type type = 3; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Type getType() { + com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.forNumber(type_); + return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customTargetType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, customTargetType_); + } + if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customTargetTypeUid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, customTargetTypeUid_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customTargetType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customTargetType_); + } + if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customTargetTypeUid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, customTargetTypeUid_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent other = + (com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getCustomTargetTypeUid().equals(other.getCustomTargetTypeUid())) return false; + if (!getCustomTargetType().equals(other.getCustomTargetType())) return false; + if (type_ != other.type_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + CUSTOM_TARGET_TYPE_UID_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetTypeUid().hashCode(); + hash = (37 * hash) + CUSTOM_TARGET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetType().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Payload proto for "clouddeploy.googleapis.com/customtargettype_notification"
        +   * Platform Log event that describes the failure to send a custom target type
        +   * status change Pub/Sub notification.
        +   * 
        + * + * Protobuf type {@code google.cloud.deploy.v1.CustomTargetTypeNotificationEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.CustomTargetTypeNotificationEvent) + com.google.cloud.deploy.v1.CustomTargetTypeNotificationEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CustomTargetTypeNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_CustomTargetTypeNotificationEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CustomTargetTypeNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_CustomTargetTypeNotificationEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent.class, + com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = ""; + customTargetTypeUid_ = ""; + customTargetType_ = ""; + type_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CustomTargetTypeNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_CustomTargetTypeNotificationEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent + getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent build() { + com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent buildPartial() { + com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent result = + new com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customTargetTypeUid_ = customTargetTypeUid_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.customTargetType_ = customTargetType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.type_ = type_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent) { + return mergeFrom((com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent other) { + if (other + == com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCustomTargetTypeUid().isEmpty()) { + customTargetTypeUid_ = other.customTargetTypeUid_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getCustomTargetType().isEmpty()) { + customTargetType_ = other.customTargetType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + customTargetType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: + { + customTargetTypeUid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object message_ = ""; + /** + * + * + *
        +     * Debug message for when a notification fails to send.
        +     * 
        + * + * string message = 1; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Debug message for when a notification fails to send.
        +     * 
        + * + * string message = 1; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Debug message for when a notification fails to send.
        +     * 
        + * + * string message = 1; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Debug message for when a notification fails to send.
        +     * 
        + * + * string message = 1; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * Debug message for when a notification fails to send.
        +     * 
        + * + * string message = 1; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object customTargetTypeUid_ = ""; + /** + * + * + *
        +     * Unique identifier of the `CustomTargetType`.
        +     * 
        + * + * string custom_target_type_uid = 4; + * + * @return The customTargetTypeUid. + */ + public java.lang.String getCustomTargetTypeUid() { + java.lang.Object ref = customTargetTypeUid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customTargetTypeUid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Unique identifier of the `CustomTargetType`.
        +     * 
        + * + * string custom_target_type_uid = 4; + * + * @return The bytes for customTargetTypeUid. + */ + public com.google.protobuf.ByteString getCustomTargetTypeUidBytes() { + java.lang.Object ref = customTargetTypeUid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customTargetTypeUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Unique identifier of the `CustomTargetType`.
        +     * 
        + * + * string custom_target_type_uid = 4; + * + * @param value The customTargetTypeUid to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetTypeUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customTargetTypeUid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Unique identifier of the `CustomTargetType`.
        +     * 
        + * + * string custom_target_type_uid = 4; + * + * @return This builder for chaining. + */ + public Builder clearCustomTargetTypeUid() { + customTargetTypeUid_ = getDefaultInstance().getCustomTargetTypeUid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
        +     * Unique identifier of the `CustomTargetType`.
        +     * 
        + * + * string custom_target_type_uid = 4; + * + * @param value The bytes for customTargetTypeUid to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetTypeUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customTargetTypeUid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object customTargetType_ = ""; + /** + * + * + *
        +     * The name of the `CustomTargetType`.
        +     * 
        + * + * string custom_target_type = 2; + * + * @return The customTargetType. + */ + public java.lang.String getCustomTargetType() { + java.lang.Object ref = customTargetType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customTargetType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * The name of the `CustomTargetType`.
        +     * 
        + * + * string custom_target_type = 2; + * + * @return The bytes for customTargetType. + */ + public com.google.protobuf.ByteString getCustomTargetTypeBytes() { + java.lang.Object ref = customTargetType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customTargetType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * The name of the `CustomTargetType`.
        +     * 
        + * + * string custom_target_type = 2; + * + * @param value The customTargetType to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customTargetType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * The name of the `CustomTargetType`.
        +     * 
        + * + * string custom_target_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearCustomTargetType() { + customTargetType_ = getDefaultInstance().getCustomTargetType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +     * The name of the `CustomTargetType`.
        +     * 
        + * + * string custom_target_type = 2; + * + * @param value The bytes for customTargetType to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customTargetType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
        +     * Type of this notification, e.g. for a Pub/Sub failure.
        +     * 
        + * + * .google.cloud.deploy.v1.Type type = 3; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
        +     * Type of this notification, e.g. for a Pub/Sub failure.
        +     * 
        + * + * .google.cloud.deploy.v1.Type type = 3; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +     * Type of this notification, e.g. for a Pub/Sub failure.
        +     * 
        + * + * .google.cloud.deploy.v1.Type type = 3; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Type getType() { + com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.forNumber(type_); + return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; + } + /** + * + * + *
        +     * Type of this notification, e.g. for a Pub/Sub failure.
        +     * 
        + * + * .google.cloud.deploy.v1.Type type = 3; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.deploy.v1.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +     * Type of this notification, e.g. for a Pub/Sub failure.
        +     * 
        + * + * .google.cloud.deploy.v1.Type type = 3; + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000008); + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.CustomTargetTypeNotificationEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.CustomTargetTypeNotificationEvent) + private static final com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent(); + } + + public static com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomTargetTypeNotificationEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetTypeNotificationEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeNotificationEventOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeNotificationEventOrBuilder.java new file mode 100644 index 000000000000..a5bf4b7e49bf --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeNotificationEventOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/customtargettype_notification_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.deploy.v1; + +public interface CustomTargetTypeNotificationEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.CustomTargetTypeNotificationEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Debug message for when a notification fails to send.
        +   * 
        + * + * string message = 1; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
        +   * Debug message for when a notification fails to send.
        +   * 
        + * + * string message = 1; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
        +   * Unique identifier of the `CustomTargetType`.
        +   * 
        + * + * string custom_target_type_uid = 4; + * + * @return The customTargetTypeUid. + */ + java.lang.String getCustomTargetTypeUid(); + /** + * + * + *
        +   * Unique identifier of the `CustomTargetType`.
        +   * 
        + * + * string custom_target_type_uid = 4; + * + * @return The bytes for customTargetTypeUid. + */ + com.google.protobuf.ByteString getCustomTargetTypeUidBytes(); + + /** + * + * + *
        +   * The name of the `CustomTargetType`.
        +   * 
        + * + * string custom_target_type = 2; + * + * @return The customTargetType. + */ + java.lang.String getCustomTargetType(); + /** + * + * + *
        +   * The name of the `CustomTargetType`.
        +   * 
        + * + * string custom_target_type = 2; + * + * @return The bytes for customTargetType. + */ + com.google.protobuf.ByteString getCustomTargetTypeBytes(); + + /** + * + * + *
        +   * Type of this notification, e.g. for a Pub/Sub failure.
        +   * 
        + * + * .google.cloud.deploy.v1.Type type = 3; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
        +   * Type of this notification, e.g. for a Pub/Sub failure.
        +   * 
        + * + * .google.cloud.deploy.v1.Type type = 3; + * + * @return The type. + */ + com.google.cloud.deploy.v1.Type getType(); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeNotificationPayloadProto.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeNotificationPayloadProto.java new file mode 100644 index 000000000000..04bce5dcd986 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeNotificationPayloadProto.java @@ -0,0 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/customtargettype_notification_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.deploy.v1; + +public final class CustomTargetTypeNotificationPayloadProto { + private CustomTargetTypeNotificationPayloadProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_CustomTargetTypeNotificationEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_CustomTargetTypeNotificationEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/deploy/v1/customtargettyp" + + "e_notification_payload.proto\022\026google.clo" + + "ud.deploy.v1\032&google/cloud/deploy/v1/log" + + "_enums.proto\"\234\001\n!CustomTargetTypeNotific" + + "ationEvent\022\017\n\007message\030\001 \001(\t\022\036\n\026custom_ta" + + "rget_type_uid\030\004 \001(\t\022\032\n\022custom_target_typ" + + "e\030\002 \001(\t\022*\n\004type\030\003 \001(\0162\034.google.cloud.dep" + + "loy.v1.TypeB|\n\032com.google.cloud.deploy.v" + + "1B(CustomTargetTypeNotificationPayloadPr" + + "otoP\001Z2cloud.google.com/go/deploy/apiv1/" + + "deploypb;deploypbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.deploy.v1.LogEnumsProto.getDescriptor(), + }); + internal_static_google_cloud_deploy_v1_CustomTargetTypeNotificationEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_deploy_v1_CustomTargetTypeNotificationEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_CustomTargetTypeNotificationEvent_descriptor, + new java.lang.String[] { + "Message", "CustomTargetTypeUid", "CustomTargetType", "Type", + }); + com.google.cloud.deploy.v1.LogEnumsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteAutomationRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteAutomationRequest.java index bdcade90ad2c..a25e7189d250 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteAutomationRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteAutomationRequest.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. The name of the `Automation` to delete. Format should be
        +   * Required. The name of the `Automation` to delete. The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
            * 
        * @@ -99,7 +99,7 @@ public java.lang.String getName() { * * *
        -   * Required. The name of the `Automation` to delete. Format should be
        +   * Required. The name of the `Automation` to delete. The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
            * 
        * @@ -731,7 +731,7 @@ public Builder mergeFrom( * * *
        -     * Required. The name of the `Automation` to delete. Format should be
        +     * Required. The name of the `Automation` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
              * 
        * @@ -756,7 +756,7 @@ public java.lang.String getName() { * * *
        -     * Required. The name of the `Automation` to delete. Format should be
        +     * Required. The name of the `Automation` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
              * 
        * @@ -781,7 +781,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -     * Required. The name of the `Automation` to delete. Format should be
        +     * Required. The name of the `Automation` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
              * 
        * @@ -805,7 +805,7 @@ public Builder setName(java.lang.String value) { * * *
        -     * Required. The name of the `Automation` to delete. Format should be
        +     * Required. The name of the `Automation` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
              * 
        * @@ -825,7 +825,7 @@ public Builder clearName() { * * *
        -     * Required. The name of the `Automation` to delete. Format should be
        +     * Required. The name of the `Automation` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
              * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteAutomationRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteAutomationRequestOrBuilder.java index 2662e7e95708..32c025f91fac 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteAutomationRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteAutomationRequestOrBuilder.java @@ -28,7 +28,7 @@ public interface DeleteAutomationRequestOrBuilder * * *
        -   * Required. The name of the `Automation` to delete. Format should be
        +   * Required. The name of the `Automation` to delete. The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
            * 
        * @@ -43,7 +43,7 @@ public interface DeleteAutomationRequestOrBuilder * * *
        -   * Required. The name of the `Automation` to delete. Format should be
        +   * Required. The name of the `Automation` to delete. The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
            * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequest.java index 15d36f7c2fc4..5ad4df123803 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequest.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. The name of the `DeliveryPipeline` to delete. Format should be
        +   * Required. The name of the `DeliveryPipeline` to delete. The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * @@ -99,7 +99,7 @@ public java.lang.String getName() { * * *
        -   * Required. The name of the `DeliveryPipeline` to delete. Format should be
        +   * Required. The name of the `DeliveryPipeline` to delete. The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * @@ -772,7 +772,7 @@ public Builder mergeFrom( * * *
        -     * Required. The name of the `DeliveryPipeline` to delete. Format should be
        +     * Required. The name of the `DeliveryPipeline` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -797,7 +797,7 @@ public java.lang.String getName() { * * *
        -     * Required. The name of the `DeliveryPipeline` to delete. Format should be
        +     * Required. The name of the `DeliveryPipeline` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -822,7 +822,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -     * Required. The name of the `DeliveryPipeline` to delete. Format should be
        +     * Required. The name of the `DeliveryPipeline` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -846,7 +846,7 @@ public Builder setName(java.lang.String value) { * * *
        -     * Required. The name of the `DeliveryPipeline` to delete. Format should be
        +     * Required. The name of the `DeliveryPipeline` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -866,7 +866,7 @@ public Builder clearName() { * * *
        -     * Required. The name of the `DeliveryPipeline` to delete. Format should be
        +     * Required. The name of the `DeliveryPipeline` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequestOrBuilder.java index 71e34ec88d6c..dd76584b3de7 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequestOrBuilder.java @@ -28,7 +28,7 @@ public interface DeleteDeliveryPipelineRequestOrBuilder * * *
        -   * Required. The name of the `DeliveryPipeline` to delete. Format should be
        +   * Required. The name of the `DeliveryPipeline` to delete. The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * @@ -43,7 +43,7 @@ public interface DeleteDeliveryPipelineRequestOrBuilder * * *
        -   * Required. The name of the `DeliveryPipeline` to delete. Format should be
        +   * Required. The name of the `DeliveryPipeline` to delete. The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequest.java index f1d0daa8f4b6..5f1bdd41e55d 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequest.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. The name of the `Target` to delete. Format should be
        +   * Required. The name of the `Target` to delete. The format is
            * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
            * 
        * @@ -99,7 +99,7 @@ public java.lang.String getName() { * * *
        -   * Required. The name of the `Target` to delete. Format should be
        +   * Required. The name of the `Target` to delete. The format is
            * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
            * 
        * @@ -728,7 +728,7 @@ public Builder mergeFrom( * * *
        -     * Required. The name of the `Target` to delete. Format should be
        +     * Required. The name of the `Target` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
              * 
        * @@ -753,7 +753,7 @@ public java.lang.String getName() { * * *
        -     * Required. The name of the `Target` to delete. Format should be
        +     * Required. The name of the `Target` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
              * 
        * @@ -778,7 +778,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -     * Required. The name of the `Target` to delete. Format should be
        +     * Required. The name of the `Target` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
              * 
        * @@ -802,7 +802,7 @@ public Builder setName(java.lang.String value) { * * *
        -     * Required. The name of the `Target` to delete. Format should be
        +     * Required. The name of the `Target` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
              * 
        * @@ -822,7 +822,7 @@ public Builder clearName() { * * *
        -     * Required. The name of the `Target` to delete. Format should be
        +     * Required. The name of the `Target` to delete. The format is
              * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
              * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequestOrBuilder.java index 08eea81dd33b..7519bf381af2 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequestOrBuilder.java @@ -28,7 +28,7 @@ public interface DeleteTargetRequestOrBuilder * * *
        -   * Required. The name of the `Target` to delete. Format should be
        +   * Required. The name of the `Target` to delete. The format is
            * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
            * 
        * @@ -43,7 +43,7 @@ public interface DeleteTargetRequestOrBuilder * * *
        -   * Required. The name of the `Target` to delete. Format should be
        +   * Required. The name of the `Target` to delete. The format is
            * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
            * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyNotificationEvent.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyNotificationEvent.java new file mode 100644 index 000000000000..2b7be0847bfa --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyNotificationEvent.java @@ -0,0 +1,1147 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/deploypolicy_notification_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.deploy.v1; + +/** + * + * + *
        + * Payload proto for "clouddeploy.googleapis.com/deploypolicy_notification".
        + * Platform Log event that describes the failure to send a pub/sub notification
        + * when there is a DeployPolicy status change.
        + * 
        + * + * Protobuf type {@code google.cloud.deploy.v1.DeployPolicyNotificationEvent} + */ +public final class DeployPolicyNotificationEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.DeployPolicyNotificationEvent) + DeployPolicyNotificationEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployPolicyNotificationEvent.newBuilder() to construct. + private DeployPolicyNotificationEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployPolicyNotificationEvent() { + message_ = ""; + deployPolicy_ = ""; + deployPolicyUid_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployPolicyNotificationEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.DeployPolicyNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_DeployPolicyNotificationEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.DeployPolicyNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_DeployPolicyNotificationEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.DeployPolicyNotificationEvent.class, + com.google.cloud.deploy.v1.DeployPolicyNotificationEvent.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + /** + * + * + *
        +   * Debug message for when a deploy policy fails to send a pub/sub
        +   * notification.
        +   * 
        + * + * string message = 1; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
        +   * Debug message for when a deploy policy fails to send a pub/sub
        +   * notification.
        +   * 
        + * + * string message = 1; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOY_POLICY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployPolicy_ = ""; + /** + * + * + *
        +   * The name of the `DeployPolicy`.
        +   * 
        + * + * string deploy_policy = 2; + * + * @return The deployPolicy. + */ + @java.lang.Override + public java.lang.String getDeployPolicy() { + java.lang.Object ref = deployPolicy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployPolicy_ = s; + return s; + } + } + /** + * + * + *
        +   * The name of the `DeployPolicy`.
        +   * 
        + * + * string deploy_policy = 2; + * + * @return The bytes for deployPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeployPolicyBytes() { + java.lang.Object ref = deployPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOY_POLICY_UID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployPolicyUid_ = ""; + /** + * + * + *
        +   * Unique identifier of the deploy policy.
        +   * 
        + * + * string deploy_policy_uid = 3; + * + * @return The deployPolicyUid. + */ + @java.lang.Override + public java.lang.String getDeployPolicyUid() { + java.lang.Object ref = deployPolicyUid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployPolicyUid_ = s; + return s; + } + } + /** + * + * + *
        +   * Unique identifier of the deploy policy.
        +   * 
        + * + * string deploy_policy_uid = 3; + * + * @return The bytes for deployPolicyUid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeployPolicyUidBytes() { + java.lang.Object ref = deployPolicyUid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployPolicyUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 4; + private int type_ = 0; + /** + * + * + *
        +   * Type of this notification, e.g. for a Pub/Sub failure.
        +   * 
        + * + * .google.cloud.deploy.v1.Type type = 4; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
        +   * Type of this notification, e.g. for a Pub/Sub failure.
        +   * 
        + * + * .google.cloud.deploy.v1.Type type = 4; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Type getType() { + com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.forNumber(type_); + return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployPolicy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deployPolicy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployPolicyUid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deployPolicyUid_); + } + if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployPolicy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deployPolicy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployPolicyUid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deployPolicyUid_); + } + if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, type_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.DeployPolicyNotificationEvent)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.DeployPolicyNotificationEvent other = + (com.google.cloud.deploy.v1.DeployPolicyNotificationEvent) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getDeployPolicy().equals(other.getDeployPolicy())) return false; + if (!getDeployPolicyUid().equals(other.getDeployPolicyUid())) return false; + if (type_ != other.type_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + DEPLOY_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getDeployPolicy().hashCode(); + hash = (37 * hash) + DEPLOY_POLICY_UID_FIELD_NUMBER; + hash = (53 * hash) + getDeployPolicyUid().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.DeployPolicyNotificationEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.DeployPolicyNotificationEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeployPolicyNotificationEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.DeployPolicyNotificationEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeployPolicyNotificationEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.DeployPolicyNotificationEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeployPolicyNotificationEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.DeployPolicyNotificationEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeployPolicyNotificationEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.DeployPolicyNotificationEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeployPolicyNotificationEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.DeployPolicyNotificationEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.deploy.v1.DeployPolicyNotificationEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Payload proto for "clouddeploy.googleapis.com/deploypolicy_notification".
        +   * Platform Log event that describes the failure to send a pub/sub notification
        +   * when there is a DeployPolicy status change.
        +   * 
        + * + * Protobuf type {@code google.cloud.deploy.v1.DeployPolicyNotificationEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.DeployPolicyNotificationEvent) + com.google.cloud.deploy.v1.DeployPolicyNotificationEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.DeployPolicyNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_DeployPolicyNotificationEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.DeployPolicyNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_DeployPolicyNotificationEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.DeployPolicyNotificationEvent.class, + com.google.cloud.deploy.v1.DeployPolicyNotificationEvent.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.DeployPolicyNotificationEvent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = ""; + deployPolicy_ = ""; + deployPolicyUid_ = ""; + type_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.DeployPolicyNotificationPayloadProto + .internal_static_google_cloud_deploy_v1_DeployPolicyNotificationEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.DeployPolicyNotificationEvent getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.DeployPolicyNotificationEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.DeployPolicyNotificationEvent build() { + com.google.cloud.deploy.v1.DeployPolicyNotificationEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.DeployPolicyNotificationEvent buildPartial() { + com.google.cloud.deploy.v1.DeployPolicyNotificationEvent result = + new com.google.cloud.deploy.v1.DeployPolicyNotificationEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.deploy.v1.DeployPolicyNotificationEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployPolicy_ = deployPolicy_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deployPolicyUid_ = deployPolicyUid_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.type_ = type_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.DeployPolicyNotificationEvent) { + return mergeFrom((com.google.cloud.deploy.v1.DeployPolicyNotificationEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.DeployPolicyNotificationEvent other) { + if (other == com.google.cloud.deploy.v1.DeployPolicyNotificationEvent.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDeployPolicy().isEmpty()) { + deployPolicy_ = other.deployPolicy_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDeployPolicyUid().isEmpty()) { + deployPolicyUid_ = other.deployPolicyUid_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + deployPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + deployPolicyUid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object message_ = ""; + /** + * + * + *
        +     * Debug message for when a deploy policy fails to send a pub/sub
        +     * notification.
        +     * 
        + * + * string message = 1; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Debug message for when a deploy policy fails to send a pub/sub
        +     * notification.
        +     * 
        + * + * string message = 1; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Debug message for when a deploy policy fails to send a pub/sub
        +     * notification.
        +     * 
        + * + * string message = 1; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Debug message for when a deploy policy fails to send a pub/sub
        +     * notification.
        +     * 
        + * + * string message = 1; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * Debug message for when a deploy policy fails to send a pub/sub
        +     * notification.
        +     * 
        + * + * string message = 1; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object deployPolicy_ = ""; + /** + * + * + *
        +     * The name of the `DeployPolicy`.
        +     * 
        + * + * string deploy_policy = 2; + * + * @return The deployPolicy. + */ + public java.lang.String getDeployPolicy() { + java.lang.Object ref = deployPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * The name of the `DeployPolicy`.
        +     * 
        + * + * string deploy_policy = 2; + * + * @return The bytes for deployPolicy. + */ + public com.google.protobuf.ByteString getDeployPolicyBytes() { + java.lang.Object ref = deployPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * The name of the `DeployPolicy`.
        +     * 
        + * + * string deploy_policy = 2; + * + * @param value The deployPolicy to set. + * @return This builder for chaining. + */ + public Builder setDeployPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deployPolicy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * The name of the `DeployPolicy`.
        +     * 
        + * + * string deploy_policy = 2; + * + * @return This builder for chaining. + */ + public Builder clearDeployPolicy() { + deployPolicy_ = getDefaultInstance().getDeployPolicy(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
        +     * The name of the `DeployPolicy`.
        +     * 
        + * + * string deploy_policy = 2; + * + * @param value The bytes for deployPolicy to set. + * @return This builder for chaining. + */ + public Builder setDeployPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deployPolicy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object deployPolicyUid_ = ""; + /** + * + * + *
        +     * Unique identifier of the deploy policy.
        +     * 
        + * + * string deploy_policy_uid = 3; + * + * @return The deployPolicyUid. + */ + public java.lang.String getDeployPolicyUid() { + java.lang.Object ref = deployPolicyUid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployPolicyUid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Unique identifier of the deploy policy.
        +     * 
        + * + * string deploy_policy_uid = 3; + * + * @return The bytes for deployPolicyUid. + */ + public com.google.protobuf.ByteString getDeployPolicyUidBytes() { + java.lang.Object ref = deployPolicyUid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployPolicyUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Unique identifier of the deploy policy.
        +     * 
        + * + * string deploy_policy_uid = 3; + * + * @param value The deployPolicyUid to set. + * @return This builder for chaining. + */ + public Builder setDeployPolicyUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deployPolicyUid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Unique identifier of the deploy policy.
        +     * 
        + * + * string deploy_policy_uid = 3; + * + * @return This builder for chaining. + */ + public Builder clearDeployPolicyUid() { + deployPolicyUid_ = getDefaultInstance().getDeployPolicyUid(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +     * Unique identifier of the deploy policy.
        +     * 
        + * + * string deploy_policy_uid = 3; + * + * @param value The bytes for deployPolicyUid to set. + * @return This builder for chaining. + */ + public Builder setDeployPolicyUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deployPolicyUid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
        +     * Type of this notification, e.g. for a Pub/Sub failure.
        +     * 
        + * + * .google.cloud.deploy.v1.Type type = 4; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
        +     * Type of this notification, e.g. for a Pub/Sub failure.
        +     * 
        + * + * .google.cloud.deploy.v1.Type type = 4; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +     * Type of this notification, e.g. for a Pub/Sub failure.
        +     * 
        + * + * .google.cloud.deploy.v1.Type type = 4; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Type getType() { + com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.forNumber(type_); + return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; + } + /** + * + * + *
        +     * Type of this notification, e.g. for a Pub/Sub failure.
        +     * 
        + * + * .google.cloud.deploy.v1.Type type = 4; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.deploy.v1.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +     * Type of this notification, e.g. for a Pub/Sub failure.
        +     * 
        + * + * .google.cloud.deploy.v1.Type type = 4; + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000008); + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.DeployPolicyNotificationEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.DeployPolicyNotificationEvent) + private static final com.google.cloud.deploy.v1.DeployPolicyNotificationEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.DeployPolicyNotificationEvent(); + } + + public static com.google.cloud.deploy.v1.DeployPolicyNotificationEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployPolicyNotificationEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.DeployPolicyNotificationEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyNotificationEventOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyNotificationEventOrBuilder.java new file mode 100644 index 000000000000..f92cb49547ca --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyNotificationEventOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/deploypolicy_notification_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.deploy.v1; + +public interface DeployPolicyNotificationEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.DeployPolicyNotificationEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Debug message for when a deploy policy fails to send a pub/sub
        +   * notification.
        +   * 
        + * + * string message = 1; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
        +   * Debug message for when a deploy policy fails to send a pub/sub
        +   * notification.
        +   * 
        + * + * string message = 1; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
        +   * The name of the `DeployPolicy`.
        +   * 
        + * + * string deploy_policy = 2; + * + * @return The deployPolicy. + */ + java.lang.String getDeployPolicy(); + /** + * + * + *
        +   * The name of the `DeployPolicy`.
        +   * 
        + * + * string deploy_policy = 2; + * + * @return The bytes for deployPolicy. + */ + com.google.protobuf.ByteString getDeployPolicyBytes(); + + /** + * + * + *
        +   * Unique identifier of the deploy policy.
        +   * 
        + * + * string deploy_policy_uid = 3; + * + * @return The deployPolicyUid. + */ + java.lang.String getDeployPolicyUid(); + /** + * + * + *
        +   * Unique identifier of the deploy policy.
        +   * 
        + * + * string deploy_policy_uid = 3; + * + * @return The bytes for deployPolicyUid. + */ + com.google.protobuf.ByteString getDeployPolicyUidBytes(); + + /** + * + * + *
        +   * Type of this notification, e.g. for a Pub/Sub failure.
        +   * 
        + * + * .google.cloud.deploy.v1.Type type = 4; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
        +   * Type of this notification, e.g. for a Pub/Sub failure.
        +   * 
        + * + * .google.cloud.deploy.v1.Type type = 4; + * + * @return The type. + */ + com.google.cloud.deploy.v1.Type getType(); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyNotificationPayloadProto.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyNotificationPayloadProto.java new file mode 100644 index 000000000000..9f08c4a682dc --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyNotificationPayloadProto.java @@ -0,0 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/deploypolicy_notification_payload.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.deploy.v1; + +public final class DeployPolicyNotificationPayloadProto { + private DeployPolicyNotificationPayloadProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_DeployPolicyNotificationEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_DeployPolicyNotificationEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n>google/cloud/deploy/v1/deploypolicy_no" + + "tification_payload.proto\022\026google.cloud.d" + + "eploy.v1\032&google/cloud/deploy/v1/log_enu" + + "ms.proto\"\216\001\n\035DeployPolicyNotificationEve" + + "nt\022\017\n\007message\030\001 \001(\t\022\025\n\rdeploy_policy\030\002 \001" + + "(\t\022\031\n\021deploy_policy_uid\030\003 \001(\t\022*\n\004type\030\004 " + + "\001(\0162\034.google.cloud.deploy.v1.TypeBx\n\032com" + + ".google.cloud.deploy.v1B$DeployPolicyNot" + + "ificationPayloadProtoP\001Z2cloud.google.co" + + "m/go/deploy/apiv1/deploypb;deploypbb\006pro" + + "to3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.deploy.v1.LogEnumsProto.getDescriptor(), + }); + internal_static_google_cloud_deploy_v1_DeployPolicyNotificationEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_deploy_v1_DeployPolicyNotificationEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_DeployPolicyNotificationEvent_descriptor, + new java.lang.String[] { + "Message", "DeployPolicy", "DeployPolicyUid", "Type", + }); + com.google.cloud.deploy.v1.LogEnumsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java index 42492889f175..0c6c2fc20e0a 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java @@ -40,6 +40,7 @@ private GkeCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { private GkeCluster() { cluster_ = ""; + proxyUrl_ = ""; } @java.lang.Override @@ -145,6 +146,61 @@ public boolean getInternalIp() { return internalIp_; } + public static final int PROXY_URL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object proxyUrl_ = ""; + /** + * + * + *
        +   * Optional. If set, used to configure a
        +   * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy)
        +   * to the Kubernetes server.
        +   * 
        + * + * string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proxyUrl. + */ + @java.lang.Override + public java.lang.String getProxyUrl() { + java.lang.Object ref = proxyUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + proxyUrl_ = s; + return s; + } + } + /** + * + * + *
        +   * Optional. If set, used to configure a
        +   * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy)
        +   * to the Kubernetes server.
        +   * 
        + * + * string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for proxyUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProxyUrlBytes() { + java.lang.Object ref = proxyUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + proxyUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -165,6 +221,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (internalIp_ != false) { output.writeBool(2, internalIp_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, proxyUrl_); + } getUnknownFields().writeTo(output); } @@ -180,6 +239,9 @@ public int getSerializedSize() { if (internalIp_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, internalIp_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, proxyUrl_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -197,6 +259,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCluster().equals(other.getCluster())) return false; if (getInternalIp() != other.getInternalIp()) return false; + if (!getProxyUrl().equals(other.getProxyUrl())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -212,6 +275,8 @@ public int hashCode() { hash = (53 * hash) + getCluster().hashCode(); hash = (37 * hash) + INTERNAL_IP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInternalIp()); + hash = (37 * hash) + PROXY_URL_FIELD_NUMBER; + hash = (53 * hash) + getProxyUrl().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -352,6 +417,7 @@ public Builder clear() { bitField0_ = 0; cluster_ = ""; internalIp_ = false; + proxyUrl_ = ""; return this; } @@ -394,6 +460,9 @@ private void buildPartial0(com.google.cloud.deploy.v1.GkeCluster result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.internalIp_ = internalIp_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.proxyUrl_ = proxyUrl_; + } } @java.lang.Override @@ -449,6 +518,11 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.GkeCluster other) { if (other.getInternalIp() != false) { setInternalIp(other.getInternalIp()); } + if (!other.getProxyUrl().isEmpty()) { + proxyUrl_ = other.proxyUrl_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -487,6 +561,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 26: + { + proxyUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -701,6 +781,122 @@ public Builder clearInternalIp() { return this; } + private java.lang.Object proxyUrl_ = ""; + /** + * + * + *
        +     * Optional. If set, used to configure a
        +     * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy)
        +     * to the Kubernetes server.
        +     * 
        + * + * string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proxyUrl. + */ + public java.lang.String getProxyUrl() { + java.lang.Object ref = proxyUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + proxyUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Optional. If set, used to configure a
        +     * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy)
        +     * to the Kubernetes server.
        +     * 
        + * + * string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for proxyUrl. + */ + public com.google.protobuf.ByteString getProxyUrlBytes() { + java.lang.Object ref = proxyUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + proxyUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Optional. If set, used to configure a
        +     * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy)
        +     * to the Kubernetes server.
        +     * 
        + * + * string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The proxyUrl to set. + * @return This builder for chaining. + */ + public Builder setProxyUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + proxyUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. If set, used to configure a
        +     * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy)
        +     * to the Kubernetes server.
        +     * 
        + * + * string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProxyUrl() { + proxyUrl_ = getDefaultInstance().getProxyUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. If set, used to configure a
        +     * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy)
        +     * to the Kubernetes server.
        +     * 
        + * + * string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for proxyUrl to set. + * @return This builder for chaining. + */ + public Builder setProxyUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + proxyUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java index 19bba6f254c5..f260677b7bc7 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java @@ -74,4 +74,33 @@ public interface GkeClusterOrBuilder * @return The internalIp. */ boolean getInternalIp(); + + /** + * + * + *
        +   * Optional. If set, used to configure a
        +   * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy)
        +   * to the Kubernetes server.
        +   * 
        + * + * string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proxyUrl. + */ + java.lang.String getProxyUrl(); + /** + * + * + *
        +   * Optional. If set, used to configure a
        +   * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy)
        +   * to the Kubernetes server.
        +   * 
        + * + * string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for proxyUrl. + */ + com.google.protobuf.ByteString getProxyUrlBytes(); } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/KubernetesConfig.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/KubernetesConfig.java index 363dc9c71790..b18e753ac6ec 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/KubernetesConfig.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/KubernetesConfig.java @@ -239,6 +239,33 @@ public interface GatewayServiceMeshOrBuilder *
        */ com.google.protobuf.DurationOrBuilder getStableCutbackDurationOrBuilder(); + + /** + * + * + *
        +     * Optional. The label to use when selecting Pods for the Deployment and
        +     * Service resources. This label must already be present in both resources.
        +     * 
        + * + * string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The podSelectorLabel. + */ + java.lang.String getPodSelectorLabel(); + /** + * + * + *
        +     * Optional. The label to use when selecting Pods for the Deployment and
        +     * Service resources. This label must already be present in both resources.
        +     * 
        + * + * string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for podSelectorLabel. + */ + com.google.protobuf.ByteString getPodSelectorLabelBytes(); } /** * @@ -263,6 +290,7 @@ private GatewayServiceMesh() { httpRoute_ = ""; service_ = ""; deployment_ = ""; + podSelectorLabel_ = ""; } @java.lang.Override @@ -569,6 +597,59 @@ public com.google.protobuf.DurationOrBuilder getStableCutbackDurationOrBuilder() : stableCutbackDuration_; } + public static final int POD_SELECTOR_LABEL_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object podSelectorLabel_ = ""; + /** + * + * + *
        +     * Optional. The label to use when selecting Pods for the Deployment and
        +     * Service resources. This label must already be present in both resources.
        +     * 
        + * + * string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The podSelectorLabel. + */ + @java.lang.Override + public java.lang.String getPodSelectorLabel() { + java.lang.Object ref = podSelectorLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podSelectorLabel_ = s; + return s; + } + } + /** + * + * + *
        +     * Optional. The label to use when selecting Pods for the Deployment and
        +     * Service resources. This label must already be present in both resources.
        +     * 
        + * + * string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for podSelectorLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPodSelectorLabelBytes() { + java.lang.Object ref = podSelectorLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podSelectorLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -598,6 +679,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getStableCutbackDuration()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podSelectorLabel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, podSelectorLabel_); + } getUnknownFields().writeTo(output); } @@ -624,6 +708,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStableCutbackDuration()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podSelectorLabel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, podSelectorLabel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -651,6 +738,7 @@ public boolean equals(final java.lang.Object obj) { if (hasStableCutbackDuration()) { if (!getStableCutbackDuration().equals(other.getStableCutbackDuration())) return false; } + if (!getPodSelectorLabel().equals(other.getPodSelectorLabel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -676,6 +764,8 @@ public int hashCode() { hash = (37 * hash) + STABLE_CUTBACK_DURATION_FIELD_NUMBER; hash = (53 * hash) + getStableCutbackDuration().hashCode(); } + hash = (37 * hash) + POD_SELECTOR_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getPodSelectorLabel().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -841,6 +931,7 @@ public Builder clear() { stableCutbackDurationBuilder_.dispose(); stableCutbackDurationBuilder_ = null; } + podSelectorLabel_ = ""; return this; } @@ -903,6 +994,9 @@ private void buildPartial0( : stableCutbackDurationBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.podSelectorLabel_ = podSelectorLabel_; + } result.bitField0_ |= to_bitField0_; } @@ -977,6 +1071,11 @@ public Builder mergeFrom( if (other.hasStableCutbackDuration()) { mergeStableCutbackDuration(other.getStableCutbackDuration()); } + if (!other.getPodSelectorLabel().isEmpty()) { + podSelectorLabel_ = other.podSelectorLabel_; + bitField0_ |= 0x00000020; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1035,6 +1134,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + podSelectorLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1829,6 +1934,117 @@ public com.google.protobuf.DurationOrBuilder getStableCutbackDurationOrBuilder() return stableCutbackDurationBuilder_; } + private java.lang.Object podSelectorLabel_ = ""; + /** + * + * + *
        +       * Optional. The label to use when selecting Pods for the Deployment and
        +       * Service resources. This label must already be present in both resources.
        +       * 
        + * + * string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The podSelectorLabel. + */ + public java.lang.String getPodSelectorLabel() { + java.lang.Object ref = podSelectorLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podSelectorLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Optional. The label to use when selecting Pods for the Deployment and
        +       * Service resources. This label must already be present in both resources.
        +       * 
        + * + * string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for podSelectorLabel. + */ + public com.google.protobuf.ByteString getPodSelectorLabelBytes() { + java.lang.Object ref = podSelectorLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podSelectorLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Optional. The label to use when selecting Pods for the Deployment and
        +       * Service resources. This label must already be present in both resources.
        +       * 
        + * + * string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The podSelectorLabel to set. + * @return This builder for chaining. + */ + public Builder setPodSelectorLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + podSelectorLabel_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. The label to use when selecting Pods for the Deployment and
        +       * Service resources. This label must already be present in both resources.
        +       * 
        + * + * string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPodSelectorLabel() { + podSelectorLabel_ = getDefaultInstance().getPodSelectorLabel(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. The label to use when selecting Pods for the Deployment and
        +       * Service resources. This label must already be present in both resources.
        +       * 
        + * + * string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for podSelectorLabel to set. + * @return This builder for chaining. + */ + public Builder setPodSelectorLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + podSelectorLabel_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1968,6 +2184,33 @@ public interface ServiceNetworkingOrBuilder * @return The disablePodOverprovisioning. */ boolean getDisablePodOverprovisioning(); + + /** + * + * + *
        +     * Optional. The label to use when selecting Pods for the Deployment
        +     * resource. This label must already be present in the Deployment.
        +     * 
        + * + * string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The podSelectorLabel. + */ + java.lang.String getPodSelectorLabel(); + /** + * + * + *
        +     * Optional. The label to use when selecting Pods for the Deployment
        +     * resource. This label must already be present in the Deployment.
        +     * 
        + * + * string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for podSelectorLabel. + */ + com.google.protobuf.ByteString getPodSelectorLabelBytes(); } /** * @@ -1991,6 +2234,7 @@ private ServiceNetworking(com.google.protobuf.GeneratedMessageV3.Builder buil private ServiceNetworking() { service_ = ""; deployment_ = ""; + podSelectorLabel_ = ""; } @java.lang.Override @@ -2139,6 +2383,59 @@ public boolean getDisablePodOverprovisioning() { return disablePodOverprovisioning_; } + public static final int POD_SELECTOR_LABEL_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object podSelectorLabel_ = ""; + /** + * + * + *
        +     * Optional. The label to use when selecting Pods for the Deployment
        +     * resource. This label must already be present in the Deployment.
        +     * 
        + * + * string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The podSelectorLabel. + */ + @java.lang.Override + public java.lang.String getPodSelectorLabel() { + java.lang.Object ref = podSelectorLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podSelectorLabel_ = s; + return s; + } + } + /** + * + * + *
        +     * Optional. The label to use when selecting Pods for the Deployment
        +     * resource. This label must already be present in the Deployment.
        +     * 
        + * + * string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for podSelectorLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPodSelectorLabelBytes() { + java.lang.Object ref = podSelectorLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podSelectorLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2162,6 +2459,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disablePodOverprovisioning_ != false) { output.writeBool(3, disablePodOverprovisioning_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podSelectorLabel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, podSelectorLabel_); + } getUnknownFields().writeTo(output); } @@ -2181,6 +2481,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, disablePodOverprovisioning_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podSelectorLabel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, podSelectorLabel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2200,6 +2503,7 @@ public boolean equals(final java.lang.Object obj) { if (!getService().equals(other.getService())) return false; if (!getDeployment().equals(other.getDeployment())) return false; if (getDisablePodOverprovisioning() != other.getDisablePodOverprovisioning()) return false; + if (!getPodSelectorLabel().equals(other.getPodSelectorLabel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2218,6 +2522,8 @@ public int hashCode() { hash = (37 * hash) + DISABLE_POD_OVERPROVISIONING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisablePodOverprovisioning()); + hash = (37 * hash) + POD_SELECTOR_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getPodSelectorLabel().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2363,6 +2669,7 @@ public Builder clear() { service_ = ""; deployment_ = ""; disablePodOverprovisioning_ = false; + podSelectorLabel_ = ""; return this; } @@ -2410,6 +2717,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.disablePodOverprovisioning_ = disablePodOverprovisioning_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.podSelectorLabel_ = podSelectorLabel_; + } } @java.lang.Override @@ -2475,6 +2785,11 @@ public Builder mergeFrom( if (other.getDisablePodOverprovisioning() != false) { setDisablePodOverprovisioning(other.getDisablePodOverprovisioning()); } + if (!other.getPodSelectorLabel().isEmpty()) { + podSelectorLabel_ = other.podSelectorLabel_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2519,6 +2834,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 34: + { + podSelectorLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2820,6 +3141,117 @@ public Builder clearDisablePodOverprovisioning() { return this; } + private java.lang.Object podSelectorLabel_ = ""; + /** + * + * + *
        +       * Optional. The label to use when selecting Pods for the Deployment
        +       * resource. This label must already be present in the Deployment.
        +       * 
        + * + * string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The podSelectorLabel. + */ + public java.lang.String getPodSelectorLabel() { + java.lang.Object ref = podSelectorLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podSelectorLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Optional. The label to use when selecting Pods for the Deployment
        +       * resource. This label must already be present in the Deployment.
        +       * 
        + * + * string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for podSelectorLabel. + */ + public com.google.protobuf.ByteString getPodSelectorLabelBytes() { + java.lang.Object ref = podSelectorLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podSelectorLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Optional. The label to use when selecting Pods for the Deployment
        +       * resource. This label must already be present in the Deployment.
        +       * 
        + * + * string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The podSelectorLabel to set. + * @return This builder for chaining. + */ + public Builder setPodSelectorLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + podSelectorLabel_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. The label to use when selecting Pods for the Deployment
        +       * resource. This label must already be present in the Deployment.
        +       * 
        + * + * string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPodSelectorLabel() { + podSelectorLabel_ = getDefaultInstance().getPodSelectorLabel(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. The label to use when selecting Pods for the Deployment
        +       * resource. This label must already be present in the Deployment.
        +       * 
        + * + * string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for podSelectorLabel to set. + * @return This builder for chaining. + */ + public Builder setPodSelectorLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + podSelectorLabel_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PromoteReleaseRule.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PromoteReleaseRule.java index b919d5567aa3..6fba8587c10e 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PromoteReleaseRule.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PromoteReleaseRule.java @@ -23,8 +23,8 @@ * * *
        - * `PromoteRelease` rule will automatically promote a release from the current
        - * target to a specified target.
        + * The `PromoteRelease` rule will automatically promote a release from the
        + * current target to a specified target.
          * 
        * * Protobuf type {@code google.cloud.deploy.v1.PromoteReleaseRule} @@ -554,8 +554,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
        -   * `PromoteRelease` rule will automatically promote a release from the current
        -   * target to a specified target.
        +   * The `PromoteRelease` rule will automatically promote a release from the
        +   * current target to a specified target.
            * 
        * * Protobuf type {@code google.cloud.deploy.v1.PromoteReleaseRule} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairMode.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairMode.java deleted file mode 100644 index d6871f3ff6c4..000000000000 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairMode.java +++ /dev/null @@ -1,1130 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.deploy.v1; - -/** - * - * - *
        - * Configuration of the repair action.
        - * 
        - * - * Protobuf type {@code google.cloud.deploy.v1.RepairMode} - */ -public final class RepairMode extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.RepairMode) - RepairModeOrBuilder { - private static final long serialVersionUID = 0L; - // Use RepairMode.newBuilder() to construct. - private RepairMode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RepairMode() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RepairMode(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_RepairMode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_RepairMode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.RepairMode.class, - com.google.cloud.deploy.v1.RepairMode.Builder.class); - } - - private int modeCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object mode_; - - public enum ModeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - RETRY(1), - ROLLBACK(2), - MODE_NOT_SET(0); - private final int value; - - private ModeCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ModeCase valueOf(int value) { - return forNumber(value); - } - - public static ModeCase forNumber(int value) { - switch (value) { - case 1: - return RETRY; - case 2: - return ROLLBACK; - case 0: - return MODE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ModeCase getModeCase() { - return ModeCase.forNumber(modeCase_); - } - - public static final int RETRY_FIELD_NUMBER = 1; - /** - * - * - *
        -   * Optional. Retries a failed job.
        -   * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the retry field is set. - */ - @java.lang.Override - public boolean hasRetry() { - return modeCase_ == 1; - } - /** - * - * - *
        -   * Optional. Retries a failed job.
        -   * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The retry. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Retry getRetry() { - if (modeCase_ == 1) { - return (com.google.cloud.deploy.v1.Retry) mode_; - } - return com.google.cloud.deploy.v1.Retry.getDefaultInstance(); - } - /** - * - * - *
        -   * Optional. Retries a failed job.
        -   * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.RetryOrBuilder getRetryOrBuilder() { - if (modeCase_ == 1) { - return (com.google.cloud.deploy.v1.Retry) mode_; - } - return com.google.cloud.deploy.v1.Retry.getDefaultInstance(); - } - - public static final int ROLLBACK_FIELD_NUMBER = 2; - /** - * - * - *
        -   * Optional. Rolls back a `Rollout`.
        -   * 
        - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the rollback field is set. - */ - @java.lang.Override - public boolean hasRollback() { - return modeCase_ == 2; - } - /** - * - * - *
        -   * Optional. Rolls back a `Rollout`.
        -   * 
        - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The rollback. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Rollback getRollback() { - if (modeCase_ == 2) { - return (com.google.cloud.deploy.v1.Rollback) mode_; - } - return com.google.cloud.deploy.v1.Rollback.getDefaultInstance(); - } - /** - * - * - *
        -   * Optional. Rolls back a `Rollout`.
        -   * 
        - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.deploy.v1.RollbackOrBuilder getRollbackOrBuilder() { - if (modeCase_ == 2) { - return (com.google.cloud.deploy.v1.Rollback) mode_; - } - return com.google.cloud.deploy.v1.Rollback.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (modeCase_ == 1) { - output.writeMessage(1, (com.google.cloud.deploy.v1.Retry) mode_); - } - if (modeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.deploy.v1.Rollback) mode_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (modeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.deploy.v1.Retry) mode_); - } - if (modeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.deploy.v1.Rollback) mode_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.RepairMode)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.RepairMode other = (com.google.cloud.deploy.v1.RepairMode) obj; - - if (!getModeCase().equals(other.getModeCase())) return false; - switch (modeCase_) { - case 1: - if (!getRetry().equals(other.getRetry())) return false; - break; - case 2: - if (!getRollback().equals(other.getRollback())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (modeCase_) { - case 1: - hash = (37 * hash) + RETRY_FIELD_NUMBER; - hash = (53 * hash) + getRetry().hashCode(); - break; - case 2: - hash = (37 * hash) + ROLLBACK_FIELD_NUMBER; - hash = (53 * hash) + getRollback().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.RepairMode parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.deploy.v1.RepairMode parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.deploy.v1.RepairMode parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.deploy.v1.RepairMode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.deploy.v1.RepairMode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.deploy.v1.RepairMode parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.deploy.v1.RepairMode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.deploy.v1.RepairMode parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.deploy.v1.RepairMode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.deploy.v1.RepairMode parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.deploy.v1.RepairMode parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.deploy.v1.RepairMode parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.deploy.v1.RepairMode prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
        -   * Configuration of the repair action.
        -   * 
        - * - * Protobuf type {@code google.cloud.deploy.v1.RepairMode} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.RepairMode) - com.google.cloud.deploy.v1.RepairModeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_RepairMode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_RepairMode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.RepairMode.class, - com.google.cloud.deploy.v1.RepairMode.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.RepairMode.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (retryBuilder_ != null) { - retryBuilder_.clear(); - } - if (rollbackBuilder_ != null) { - rollbackBuilder_.clear(); - } - modeCase_ = 0; - mode_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_RepairMode_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.RepairMode getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.RepairMode.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.RepairMode build() { - com.google.cloud.deploy.v1.RepairMode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.RepairMode buildPartial() { - com.google.cloud.deploy.v1.RepairMode result = - new com.google.cloud.deploy.v1.RepairMode(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.deploy.v1.RepairMode result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.deploy.v1.RepairMode result) { - result.modeCase_ = modeCase_; - result.mode_ = this.mode_; - if (modeCase_ == 1 && retryBuilder_ != null) { - result.mode_ = retryBuilder_.build(); - } - if (modeCase_ == 2 && rollbackBuilder_ != null) { - result.mode_ = rollbackBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.RepairMode) { - return mergeFrom((com.google.cloud.deploy.v1.RepairMode) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.RepairMode other) { - if (other == com.google.cloud.deploy.v1.RepairMode.getDefaultInstance()) return this; - switch (other.getModeCase()) { - case RETRY: - { - mergeRetry(other.getRetry()); - break; - } - case ROLLBACK: - { - mergeRollback(other.getRollback()); - break; - } - case MODE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getRetryFieldBuilder().getBuilder(), extensionRegistry); - modeCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getRollbackFieldBuilder().getBuilder(), extensionRegistry); - modeCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int modeCase_ = 0; - private java.lang.Object mode_; - - public ModeCase getModeCase() { - return ModeCase.forNumber(modeCase_); - } - - public Builder clearMode() { - modeCase_ = 0; - mode_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Retry, - com.google.cloud.deploy.v1.Retry.Builder, - com.google.cloud.deploy.v1.RetryOrBuilder> - retryBuilder_; - /** - * - * - *
        -     * Optional. Retries a failed job.
        -     * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the retry field is set. - */ - @java.lang.Override - public boolean hasRetry() { - return modeCase_ == 1; - } - /** - * - * - *
        -     * Optional. Retries a failed job.
        -     * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The retry. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Retry getRetry() { - if (retryBuilder_ == null) { - if (modeCase_ == 1) { - return (com.google.cloud.deploy.v1.Retry) mode_; - } - return com.google.cloud.deploy.v1.Retry.getDefaultInstance(); - } else { - if (modeCase_ == 1) { - return retryBuilder_.getMessage(); - } - return com.google.cloud.deploy.v1.Retry.getDefaultInstance(); - } - } - /** - * - * - *
        -     * Optional. Retries a failed job.
        -     * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setRetry(com.google.cloud.deploy.v1.Retry value) { - if (retryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - mode_ = value; - onChanged(); - } else { - retryBuilder_.setMessage(value); - } - modeCase_ = 1; - return this; - } - /** - * - * - *
        -     * Optional. Retries a failed job.
        -     * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setRetry(com.google.cloud.deploy.v1.Retry.Builder builderForValue) { - if (retryBuilder_ == null) { - mode_ = builderForValue.build(); - onChanged(); - } else { - retryBuilder_.setMessage(builderForValue.build()); - } - modeCase_ = 1; - return this; - } - /** - * - * - *
        -     * Optional. Retries a failed job.
        -     * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeRetry(com.google.cloud.deploy.v1.Retry value) { - if (retryBuilder_ == null) { - if (modeCase_ == 1 && mode_ != com.google.cloud.deploy.v1.Retry.getDefaultInstance()) { - mode_ = - com.google.cloud.deploy.v1.Retry.newBuilder((com.google.cloud.deploy.v1.Retry) mode_) - .mergeFrom(value) - .buildPartial(); - } else { - mode_ = value; - } - onChanged(); - } else { - if (modeCase_ == 1) { - retryBuilder_.mergeFrom(value); - } else { - retryBuilder_.setMessage(value); - } - } - modeCase_ = 1; - return this; - } - /** - * - * - *
        -     * Optional. Retries a failed job.
        -     * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearRetry() { - if (retryBuilder_ == null) { - if (modeCase_ == 1) { - modeCase_ = 0; - mode_ = null; - onChanged(); - } - } else { - if (modeCase_ == 1) { - modeCase_ = 0; - mode_ = null; - } - retryBuilder_.clear(); - } - return this; - } - /** - * - * - *
        -     * Optional. Retries a failed job.
        -     * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.deploy.v1.Retry.Builder getRetryBuilder() { - return getRetryFieldBuilder().getBuilder(); - } - /** - * - * - *
        -     * Optional. Retries a failed job.
        -     * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.deploy.v1.RetryOrBuilder getRetryOrBuilder() { - if ((modeCase_ == 1) && (retryBuilder_ != null)) { - return retryBuilder_.getMessageOrBuilder(); - } else { - if (modeCase_ == 1) { - return (com.google.cloud.deploy.v1.Retry) mode_; - } - return com.google.cloud.deploy.v1.Retry.getDefaultInstance(); - } - } - /** - * - * - *
        -     * Optional. Retries a failed job.
        -     * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Retry, - com.google.cloud.deploy.v1.Retry.Builder, - com.google.cloud.deploy.v1.RetryOrBuilder> - getRetryFieldBuilder() { - if (retryBuilder_ == null) { - if (!(modeCase_ == 1)) { - mode_ = com.google.cloud.deploy.v1.Retry.getDefaultInstance(); - } - retryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Retry, - com.google.cloud.deploy.v1.Retry.Builder, - com.google.cloud.deploy.v1.RetryOrBuilder>( - (com.google.cloud.deploy.v1.Retry) mode_, getParentForChildren(), isClean()); - mode_ = null; - } - modeCase_ = 1; - onChanged(); - return retryBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Rollback, - com.google.cloud.deploy.v1.Rollback.Builder, - com.google.cloud.deploy.v1.RollbackOrBuilder> - rollbackBuilder_; - /** - * - * - *
        -     * Optional. Rolls back a `Rollout`.
        -     * 
        - * - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the rollback field is set. - */ - @java.lang.Override - public boolean hasRollback() { - return modeCase_ == 2; - } - /** - * - * - *
        -     * Optional. Rolls back a `Rollout`.
        -     * 
        - * - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The rollback. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Rollback getRollback() { - if (rollbackBuilder_ == null) { - if (modeCase_ == 2) { - return (com.google.cloud.deploy.v1.Rollback) mode_; - } - return com.google.cloud.deploy.v1.Rollback.getDefaultInstance(); - } else { - if (modeCase_ == 2) { - return rollbackBuilder_.getMessage(); - } - return com.google.cloud.deploy.v1.Rollback.getDefaultInstance(); - } - } - /** - * - * - *
        -     * Optional. Rolls back a `Rollout`.
        -     * 
        - * - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setRollback(com.google.cloud.deploy.v1.Rollback value) { - if (rollbackBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - mode_ = value; - onChanged(); - } else { - rollbackBuilder_.setMessage(value); - } - modeCase_ = 2; - return this; - } - /** - * - * - *
        -     * Optional. Rolls back a `Rollout`.
        -     * 
        - * - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setRollback(com.google.cloud.deploy.v1.Rollback.Builder builderForValue) { - if (rollbackBuilder_ == null) { - mode_ = builderForValue.build(); - onChanged(); - } else { - rollbackBuilder_.setMessage(builderForValue.build()); - } - modeCase_ = 2; - return this; - } - /** - * - * - *
        -     * Optional. Rolls back a `Rollout`.
        -     * 
        - * - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeRollback(com.google.cloud.deploy.v1.Rollback value) { - if (rollbackBuilder_ == null) { - if (modeCase_ == 2 && mode_ != com.google.cloud.deploy.v1.Rollback.getDefaultInstance()) { - mode_ = - com.google.cloud.deploy.v1.Rollback.newBuilder( - (com.google.cloud.deploy.v1.Rollback) mode_) - .mergeFrom(value) - .buildPartial(); - } else { - mode_ = value; - } - onChanged(); - } else { - if (modeCase_ == 2) { - rollbackBuilder_.mergeFrom(value); - } else { - rollbackBuilder_.setMessage(value); - } - } - modeCase_ = 2; - return this; - } - /** - * - * - *
        -     * Optional. Rolls back a `Rollout`.
        -     * 
        - * - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearRollback() { - if (rollbackBuilder_ == null) { - if (modeCase_ == 2) { - modeCase_ = 0; - mode_ = null; - onChanged(); - } - } else { - if (modeCase_ == 2) { - modeCase_ = 0; - mode_ = null; - } - rollbackBuilder_.clear(); - } - return this; - } - /** - * - * - *
        -     * Optional. Rolls back a `Rollout`.
        -     * 
        - * - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.deploy.v1.Rollback.Builder getRollbackBuilder() { - return getRollbackFieldBuilder().getBuilder(); - } - /** - * - * - *
        -     * Optional. Rolls back a `Rollout`.
        -     * 
        - * - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.deploy.v1.RollbackOrBuilder getRollbackOrBuilder() { - if ((modeCase_ == 2) && (rollbackBuilder_ != null)) { - return rollbackBuilder_.getMessageOrBuilder(); - } else { - if (modeCase_ == 2) { - return (com.google.cloud.deploy.v1.Rollback) mode_; - } - return com.google.cloud.deploy.v1.Rollback.getDefaultInstance(); - } - } - /** - * - * - *
        -     * Optional. Rolls back a `Rollout`.
        -     * 
        - * - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Rollback, - com.google.cloud.deploy.v1.Rollback.Builder, - com.google.cloud.deploy.v1.RollbackOrBuilder> - getRollbackFieldBuilder() { - if (rollbackBuilder_ == null) { - if (!(modeCase_ == 2)) { - mode_ = com.google.cloud.deploy.v1.Rollback.getDefaultInstance(); - } - rollbackBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Rollback, - com.google.cloud.deploy.v1.Rollback.Builder, - com.google.cloud.deploy.v1.RollbackOrBuilder>( - (com.google.cloud.deploy.v1.Rollback) mode_, getParentForChildren(), isClean()); - mode_ = null; - } - modeCase_ = 2; - onChanged(); - return rollbackBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.RepairMode) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.RepairMode) - private static final com.google.cloud.deploy.v1.RepairMode DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.RepairMode(); - } - - public static com.google.cloud.deploy.v1.RepairMode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepairMode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.RepairMode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairModeOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairModeOrBuilder.java deleted file mode 100644 index 3271feefdf1d..000000000000 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairModeOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.deploy.v1; - -public interface RepairModeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.RepairMode) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. Retries a failed job.
        -   * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the retry field is set. - */ - boolean hasRetry(); - /** - * - * - *
        -   * Optional. Retries a failed job.
        -   * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The retry. - */ - com.google.cloud.deploy.v1.Retry getRetry(); - /** - * - * - *
        -   * Optional. Retries a failed job.
        -   * 
        - * - * .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.deploy.v1.RetryOrBuilder getRetryOrBuilder(); - - /** - * - * - *
        -   * Optional. Rolls back a `Rollout`.
        -   * 
        - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the rollback field is set. - */ - boolean hasRollback(); - /** - * - * - *
        -   * Optional. Rolls back a `Rollout`.
        -   * 
        - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The rollback. - */ - com.google.cloud.deploy.v1.Rollback getRollback(); - /** - * - * - *
        -   * Optional. Rolls back a `Rollout`.
        -   * 
        - * - * .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.deploy.v1.RollbackOrBuilder getRollbackOrBuilder(); - - com.google.cloud.deploy.v1.RepairMode.ModeCase getModeCase(); -} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairPhase.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairPhase.java index b53715f49e36..15a208f0eec1 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairPhase.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairPhase.java @@ -24,7 +24,7 @@ * *
          * RepairPhase tracks the repair attempts that have been made for
        - * each `RepairMode` specified in the `Automation` resource.
        + * each `RepairPhaseConfig` specified in the `Automation` resource.
          * 
        * * Protobuf type {@code google.cloud.deploy.v1.RepairPhase} @@ -418,7 +418,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
            * RepairPhase tracks the repair attempts that have been made for
        -   * each `RepairMode` specified in the `Automation` resource.
        +   * each `RepairPhaseConfig` specified in the `Automation` resource.
            * 
        * * Protobuf type {@code google.cloud.deploy.v1.RepairPhase} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutOperation.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutOperation.java index 769669193305..840089a7765a 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutOperation.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutOperation.java @@ -41,6 +41,8 @@ private RepairRolloutOperation(com.google.protobuf.GeneratedMessageV3.Builder private RepairRolloutOperation() { rollout_ = ""; repairPhases_ = java.util.Collections.emptyList(); + phaseId_ = ""; + jobId_ = ""; } @java.lang.Override @@ -115,24 +117,6 @@ public com.google.protobuf.ByteString getRolloutBytes() { } } - public static final int CURRENT_REPAIR_MODE_INDEX_FIELD_NUMBER = 2; - private long currentRepairModeIndex_ = 0L; - /** - * - * - *
        -   * Output only. The index of the current repair action in the repair sequence.
        -   * 
        - * - * int64 current_repair_mode_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The currentRepairModeIndex. - */ - @java.lang.Override - public long getCurrentRepairModeIndex() { - return currentRepairModeIndex_; - } - public static final int REPAIR_PHASES_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -219,6 +203,110 @@ public com.google.cloud.deploy.v1.RepairPhaseOrBuilder getRepairPhasesOrBuilder( return repairPhases_.get(index); } + public static final int PHASE_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object phaseId_ = ""; + /** + * + * + *
        +   * Output only. The phase ID of the phase that includes the job being
        +   * repaired.
        +   * 
        + * + * string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The phaseId. + */ + @java.lang.Override + public java.lang.String getPhaseId() { + java.lang.Object ref = phaseId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phaseId_ = s; + return s; + } + } + /** + * + * + *
        +   * Output only. The phase ID of the phase that includes the job being
        +   * repaired.
        +   * 
        + * + * string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for phaseId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhaseIdBytes() { + java.lang.Object ref = phaseId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object jobId_ = ""; + /** + * + * + *
        +   * Output only. The job ID for the Job to repair.
        +   * 
        + * + * string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The jobId. + */ + @java.lang.Override + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } + } + /** + * + * + *
        +   * Output only. The job ID for the Job to repair.
        +   * 
        + * + * string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for jobId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -236,12 +324,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rollout_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rollout_); } - if (currentRepairModeIndex_ != 0L) { - output.writeInt64(2, currentRepairModeIndex_); - } for (int i = 0; i < repairPhases_.size(); i++) { output.writeMessage(3, repairPhases_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phaseId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, phaseId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, jobId_); + } getUnknownFields().writeTo(output); } @@ -254,12 +345,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rollout_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rollout_); } - if (currentRepairModeIndex_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, currentRepairModeIndex_); - } for (int i = 0; i < repairPhases_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, repairPhases_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phaseId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, phaseId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, jobId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -277,8 +371,9 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.deploy.v1.RepairRolloutOperation) obj; if (!getRollout().equals(other.getRollout())) return false; - if (getCurrentRepairModeIndex() != other.getCurrentRepairModeIndex()) return false; if (!getRepairPhasesList().equals(other.getRepairPhasesList())) return false; + if (!getPhaseId().equals(other.getPhaseId())) return false; + if (!getJobId().equals(other.getJobId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,12 +387,14 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ROLLOUT_FIELD_NUMBER; hash = (53 * hash) + getRollout().hashCode(); - hash = (37 * hash) + CURRENT_REPAIR_MODE_INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCurrentRepairModeIndex()); if (getRepairPhasesCount() > 0) { hash = (37 * hash) + REPAIR_PHASES_FIELD_NUMBER; hash = (53 * hash) + getRepairPhasesList().hashCode(); } + hash = (37 * hash) + PHASE_ID_FIELD_NUMBER; + hash = (53 * hash) + getPhaseId().hashCode(); + hash = (37 * hash) + JOB_ID_FIELD_NUMBER; + hash = (53 * hash) + getJobId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -438,14 +535,15 @@ public Builder clear() { super.clear(); bitField0_ = 0; rollout_ = ""; - currentRepairModeIndex_ = 0L; if (repairPhasesBuilder_ == null) { repairPhases_ = java.util.Collections.emptyList(); } else { repairPhases_ = null; repairPhasesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); + phaseId_ = ""; + jobId_ = ""; return this; } @@ -484,9 +582,9 @@ public com.google.cloud.deploy.v1.RepairRolloutOperation buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.deploy.v1.RepairRolloutOperation result) { if (repairPhasesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { repairPhases_ = java.util.Collections.unmodifiableList(repairPhases_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.repairPhases_ = repairPhases_; } else { @@ -499,8 +597,11 @@ private void buildPartial0(com.google.cloud.deploy.v1.RepairRolloutOperation res if (((from_bitField0_ & 0x00000001) != 0)) { result.rollout_ = rollout_; } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.currentRepairModeIndex_ = currentRepairModeIndex_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.phaseId_ = phaseId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.jobId_ = jobId_; } } @@ -555,14 +656,11 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.RepairRolloutOperation other bitField0_ |= 0x00000001; onChanged(); } - if (other.getCurrentRepairModeIndex() != 0L) { - setCurrentRepairModeIndex(other.getCurrentRepairModeIndex()); - } if (repairPhasesBuilder_ == null) { if (!other.repairPhases_.isEmpty()) { if (repairPhases_.isEmpty()) { repairPhases_ = other.repairPhases_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRepairPhasesIsMutable(); repairPhases_.addAll(other.repairPhases_); @@ -575,7 +673,7 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.RepairRolloutOperation other repairPhasesBuilder_.dispose(); repairPhasesBuilder_ = null; repairPhases_ = other.repairPhases_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); repairPhasesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRepairPhasesFieldBuilder() @@ -585,6 +683,16 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.RepairRolloutOperation other } } } + if (!other.getPhaseId().isEmpty()) { + phaseId_ = other.phaseId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getJobId().isEmpty()) { + jobId_ = other.jobId_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -617,12 +725,6 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 - case 16: - { - currentRepairModeIndex_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 case 26: { com.google.cloud.deploy.v1.RepairPhase m = @@ -636,6 +738,18 @@ public Builder mergeFrom( } break; } // case 26 + case 34: + { + phaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + jobId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -761,70 +875,14 @@ public Builder setRolloutBytes(com.google.protobuf.ByteString value) { return this; } - private long currentRepairModeIndex_; - /** - * - * - *
        -     * Output only. The index of the current repair action in the repair sequence.
        -     * 
        - * - * int64 current_repair_mode_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The currentRepairModeIndex. - */ - @java.lang.Override - public long getCurrentRepairModeIndex() { - return currentRepairModeIndex_; - } - /** - * - * - *
        -     * Output only. The index of the current repair action in the repair sequence.
        -     * 
        - * - * int64 current_repair_mode_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The currentRepairModeIndex to set. - * @return This builder for chaining. - */ - public Builder setCurrentRepairModeIndex(long value) { - - currentRepairModeIndex_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
        -     * Output only. The index of the current repair action in the repair sequence.
        -     * 
        - * - * int64 current_repair_mode_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearCurrentRepairModeIndex() { - bitField0_ = (bitField0_ & ~0x00000002); - currentRepairModeIndex_ = 0L; - onChanged(); - return this; - } - private java.util.List repairPhases_ = java.util.Collections.emptyList(); private void ensureRepairPhasesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { repairPhases_ = new java.util.ArrayList(repairPhases_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -1072,7 +1130,7 @@ public Builder addAllRepairPhases( public Builder clearRepairPhases() { if (repairPhasesBuilder_ == null) { repairPhases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { repairPhasesBuilder_.clear(); @@ -1215,12 +1273,229 @@ public com.google.cloud.deploy.v1.RepairPhase.Builder addRepairPhasesBuilder(int com.google.cloud.deploy.v1.RepairPhase, com.google.cloud.deploy.v1.RepairPhase.Builder, com.google.cloud.deploy.v1.RepairPhaseOrBuilder>( - repairPhases_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + repairPhases_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); repairPhases_ = null; } return repairPhasesBuilder_; } + private java.lang.Object phaseId_ = ""; + /** + * + * + *
        +     * Output only. The phase ID of the phase that includes the job being
        +     * repaired.
        +     * 
        + * + * string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The phaseId. + */ + public java.lang.String getPhaseId() { + java.lang.Object ref = phaseId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phaseId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Output only. The phase ID of the phase that includes the job being
        +     * repaired.
        +     * 
        + * + * string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for phaseId. + */ + public com.google.protobuf.ByteString getPhaseIdBytes() { + java.lang.Object ref = phaseId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Output only. The phase ID of the phase that includes the job being
        +     * repaired.
        +     * 
        + * + * string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The phaseId to set. + * @return This builder for chaining. + */ + public Builder setPhaseId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + phaseId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Output only. The phase ID of the phase that includes the job being
        +     * repaired.
        +     * 
        + * + * string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPhaseId() { + phaseId_ = getDefaultInstance().getPhaseId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +     * Output only. The phase ID of the phase that includes the job being
        +     * repaired.
        +     * 
        + * + * string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for phaseId to set. + * @return This builder for chaining. + */ + public Builder setPhaseIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phaseId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object jobId_ = ""; + /** + * + * + *
        +     * Output only. The job ID for the Job to repair.
        +     * 
        + * + * string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The jobId. + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Output only. The job ID for the Job to repair.
        +     * 
        + * + * string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for jobId. + */ + public com.google.protobuf.ByteString getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Output only. The job ID for the Job to repair.
        +     * 
        + * + * string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The jobId to set. + * @return This builder for chaining. + */ + public Builder setJobId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + jobId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +     * Output only. The job ID for the Job to repair.
        +     * 
        + * + * string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearJobId() { + jobId_ = getDefaultInstance().getJobId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
        +     * Output only. The job ID for the Job to repair.
        +     * 
        + * + * string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for jobId to set. + * @return This builder for chaining. + */ + public Builder setJobIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutOperationOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutOperationOrBuilder.java index 5c0fcc268f56..ea99e2846a42 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutOperationOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutOperationOrBuilder.java @@ -49,19 +49,6 @@ public interface RepairRolloutOperationOrBuilder */ com.google.protobuf.ByteString getRolloutBytes(); - /** - * - * - *
        -   * Output only. The index of the current repair action in the repair sequence.
        -   * 
        - * - * int64 current_repair_mode_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The currentRepairModeIndex. - */ - long getCurrentRepairModeIndex(); - /** * * @@ -128,4 +115,56 @@ public interface RepairRolloutOperationOrBuilder *
        */ com.google.cloud.deploy.v1.RepairPhaseOrBuilder getRepairPhasesOrBuilder(int index); + + /** + * + * + *
        +   * Output only. The phase ID of the phase that includes the job being
        +   * repaired.
        +   * 
        + * + * string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The phaseId. + */ + java.lang.String getPhaseId(); + /** + * + * + *
        +   * Output only. The phase ID of the phase that includes the job being
        +   * repaired.
        +   * 
        + * + * string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for phaseId. + */ + com.google.protobuf.ByteString getPhaseIdBytes(); + + /** + * + * + *
        +   * Output only. The job ID for the Job to repair.
        +   * 
        + * + * string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The jobId. + */ + java.lang.String getJobId(); + /** + * + * + *
        +   * Output only. The job ID for the Job to repair.
        +   * 
        + * + * string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for jobId. + */ + com.google.protobuf.ByteString getJobIdBytes(); } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutRule.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutRule.java index 2c059d0622c1..c13a84439d31 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutRule.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutRule.java @@ -41,9 +41,7 @@ private RepairRolloutRule(com.google.protobuf.GeneratedMessageV3.Builder buil private RepairRolloutRule() { id_ = ""; - sourcePhases_ = com.google.protobuf.LazyStringArrayList.emptyList(); jobs_ = com.google.protobuf.LazyStringArrayList.emptyList(); - repairModes_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -123,90 +121,6 @@ public com.google.protobuf.ByteString getIdBytes() { } } - public static final int SOURCE_PHASES_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList sourcePhases_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
        -   * Optional. Phases within which jobs are subject to automatic repair actions
        -   * on failure. Proceeds only after phase name matched any one in the list, or
        -   * for all phases if unspecified. This value must consist of lower-case
        -   * letters, numbers, and hyphens, start with a letter and end with a letter or
        -   * a number, and have a max length of 63 characters. In other words, it must
        -   * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -   * 
        - * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the sourcePhases. - */ - public com.google.protobuf.ProtocolStringList getSourcePhasesList() { - return sourcePhases_; - } - /** - * - * - *
        -   * Optional. Phases within which jobs are subject to automatic repair actions
        -   * on failure. Proceeds only after phase name matched any one in the list, or
        -   * for all phases if unspecified. This value must consist of lower-case
        -   * letters, numbers, and hyphens, start with a letter and end with a letter or
        -   * a number, and have a max length of 63 characters. In other words, it must
        -   * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -   * 
        - * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of sourcePhases. - */ - public int getSourcePhasesCount() { - return sourcePhases_.size(); - } - /** - * - * - *
        -   * Optional. Phases within which jobs are subject to automatic repair actions
        -   * on failure. Proceeds only after phase name matched any one in the list, or
        -   * for all phases if unspecified. This value must consist of lower-case
        -   * letters, numbers, and hyphens, start with a letter and end with a letter or
        -   * a number, and have a max length of 63 characters. In other words, it must
        -   * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -   * 
        - * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The sourcePhases at the given index. - */ - public java.lang.String getSourcePhases(int index) { - return sourcePhases_.get(index); - } - /** - * - * - *
        -   * Optional. Phases within which jobs are subject to automatic repair actions
        -   * on failure. Proceeds only after phase name matched any one in the list, or
        -   * for all phases if unspecified. This value must consist of lower-case
        -   * letters, numbers, and hyphens, start with a letter and end with a letter or
        -   * a number, and have a max length of 63 characters. In other words, it must
        -   * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -   * 
        - * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the sourcePhases at the given index. - */ - public com.google.protobuf.ByteString getSourcePhasesBytes(int index) { - return sourcePhases_.getByteString(index); - } - public static final int JOBS_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -295,87 +209,6 @@ public com.google.protobuf.ByteString getJobsBytes(int index) { return jobs_.getByteString(index); } - public static final int REPAIR_MODES_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private java.util.List repairModes_; - /** - * - * - *
        -   * Required. Defines the types of automatic repair actions for failed jobs.
        -   * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List getRepairModesList() { - return repairModes_; - } - /** - * - * - *
        -   * Required. Defines the types of automatic repair actions for failed jobs.
        -   * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getRepairModesOrBuilderList() { - return repairModes_; - } - /** - * - * - *
        -   * Required. Defines the types of automatic repair actions for failed jobs.
        -   * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getRepairModesCount() { - return repairModes_.size(); - } - /** - * - * - *
        -   * Required. Defines the types of automatic repair actions for failed jobs.
        -   * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.deploy.v1.RepairMode getRepairModes(int index) { - return repairModes_.get(index); - } - /** - * - * - *
        -   * Required. Defines the types of automatic repair actions for failed jobs.
        -   * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.deploy.v1.RepairModeOrBuilder getRepairModesOrBuilder(int index) { - return repairModes_.get(index); - } - public static final int CONDITION_FIELD_NUMBER = 6; private com.google.cloud.deploy.v1.AutomationRuleCondition condition_; /** @@ -449,15 +282,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } - for (int i = 0; i < sourcePhases_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourcePhases_.getRaw(i)); - } for (int i = 0; i < jobs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobs_.getRaw(i)); } - for (int i = 0; i < repairModes_.size(); i++) { - output.writeMessage(4, repairModes_.get(i)); - } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getCondition()); } @@ -473,14 +300,6 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } - { - int dataSize = 0; - for (int i = 0; i < sourcePhases_.size(); i++) { - dataSize += computeStringSizeNoTag(sourcePhases_.getRaw(i)); - } - size += dataSize; - size += 1 * getSourcePhasesList().size(); - } { int dataSize = 0; for (int i = 0; i < jobs_.size(); i++) { @@ -489,9 +308,6 @@ public int getSerializedSize() { size += dataSize; size += 1 * getJobsList().size(); } - for (int i = 0; i < repairModes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, repairModes_.get(i)); - } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCondition()); } @@ -512,9 +328,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.deploy.v1.RepairRolloutRule) obj; if (!getId().equals(other.getId())) return false; - if (!getSourcePhasesList().equals(other.getSourcePhasesList())) return false; if (!getJobsList().equals(other.getJobsList())) return false; - if (!getRepairModesList().equals(other.getRepairModesList())) return false; if (hasCondition() != other.hasCondition()) return false; if (hasCondition()) { if (!getCondition().equals(other.getCondition())) return false; @@ -532,18 +346,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); - if (getSourcePhasesCount() > 0) { - hash = (37 * hash) + SOURCE_PHASES_FIELD_NUMBER; - hash = (53 * hash) + getSourcePhasesList().hashCode(); - } if (getJobsCount() > 0) { hash = (37 * hash) + JOBS_FIELD_NUMBER; hash = (53 * hash) + getJobsList().hashCode(); } - if (getRepairModesCount() > 0) { - hash = (37 * hash) + REPAIR_MODES_FIELD_NUMBER; - hash = (53 * hash) + getRepairModesList().hashCode(); - } if (hasCondition()) { hash = (37 * hash) + CONDITION_FIELD_NUMBER; hash = (53 * hash) + getCondition().hashCode(); @@ -689,7 +495,6 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getRepairModesFieldBuilder(); getConditionFieldBuilder(); } } @@ -699,15 +504,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; - sourcePhases_ = com.google.protobuf.LazyStringArrayList.emptyList(); jobs_ = com.google.protobuf.LazyStringArrayList.emptyList(); - if (repairModesBuilder_ == null) { - repairModes_ = java.util.Collections.emptyList(); - } else { - repairModes_ = null; - repairModesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); condition_ = null; if (conditionBuilder_ != null) { conditionBuilder_.dispose(); @@ -740,7 +537,6 @@ public com.google.cloud.deploy.v1.RepairRolloutRule build() { public com.google.cloud.deploy.v1.RepairRolloutRule buildPartial() { com.google.cloud.deploy.v1.RepairRolloutRule result = new com.google.cloud.deploy.v1.RepairRolloutRule(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -748,33 +544,17 @@ public com.google.cloud.deploy.v1.RepairRolloutRule buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.cloud.deploy.v1.RepairRolloutRule result) { - if (repairModesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - repairModes_ = java.util.Collections.unmodifiableList(repairModes_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.repairModes_ = repairModes_; - } else { - result.repairModes_ = repairModesBuilder_.build(); - } - } - private void buildPartial0(com.google.cloud.deploy.v1.RepairRolloutRule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { - sourcePhases_.makeImmutable(); - result.sourcePhases_ = sourcePhases_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { jobs_.makeImmutable(); result.jobs_ = jobs_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); to_bitField0_ |= 0x00000001; } @@ -831,53 +611,16 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.RepairRolloutRule other) { bitField0_ |= 0x00000001; onChanged(); } - if (!other.sourcePhases_.isEmpty()) { - if (sourcePhases_.isEmpty()) { - sourcePhases_ = other.sourcePhases_; - bitField0_ |= 0x00000002; - } else { - ensureSourcePhasesIsMutable(); - sourcePhases_.addAll(other.sourcePhases_); - } - onChanged(); - } if (!other.jobs_.isEmpty()) { if (jobs_.isEmpty()) { jobs_ = other.jobs_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } else { ensureJobsIsMutable(); jobs_.addAll(other.jobs_); } onChanged(); } - if (repairModesBuilder_ == null) { - if (!other.repairModes_.isEmpty()) { - if (repairModes_.isEmpty()) { - repairModes_ = other.repairModes_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureRepairModesIsMutable(); - repairModes_.addAll(other.repairModes_); - } - onChanged(); - } - } else { - if (!other.repairModes_.isEmpty()) { - if (repairModesBuilder_.isEmpty()) { - repairModesBuilder_.dispose(); - repairModesBuilder_ = null; - repairModes_ = other.repairModes_; - bitField0_ = (bitField0_ & ~0x00000008); - repairModesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRepairModesFieldBuilder() - : null; - } else { - repairModesBuilder_.addAllMessages(other.repairModes_); - } - } - } if (other.hasCondition()) { mergeCondition(other.getCondition()); } @@ -913,13 +656,6 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSourcePhasesIsMutable(); - sourcePhases_.add(s); - break; - } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); @@ -927,23 +663,10 @@ public Builder mergeFrom( jobs_.add(s); break; } // case 26 - case 34: - { - com.google.cloud.deploy.v1.RepairMode m = - input.readMessage( - com.google.cloud.deploy.v1.RepairMode.parser(), extensionRegistry); - if (repairModesBuilder_ == null) { - ensureRepairModesIsMutable(); - repairModes_.add(m); - } else { - repairModesBuilder_.addMessage(m); - } - break; - } // case 34 case 50: { input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; break; } // case 50 default: @@ -1081,12 +804,12 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringArrayList sourcePhases_ = + private com.google.protobuf.LazyStringArrayList jobs_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureSourcePhasesIsMutable() { - if (!sourcePhases_.isModifiable()) { - sourcePhases_ = new com.google.protobuf.LazyStringArrayList(sourcePhases_); + private void ensureJobsIsMutable() { + if (!jobs_.isModifiable()) { + jobs_ = new com.google.protobuf.LazyStringArrayList(jobs_); } bitField0_ |= 0x00000002; } @@ -1094,105 +817,110 @@ private void ensureSourcePhasesIsMutable() { * * *
        -     * Optional. Phases within which jobs are subject to automatic repair actions
        -     * on failure. Proceeds only after phase name matched any one in the list, or
        -     * for all phases if unspecified. This value must consist of lower-case
        -     * letters, numbers, and hyphens, start with a letter and end with a letter or
        -     * a number, and have a max length of 63 characters. In other words, it must
        -     * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        +     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        +     * the list, or for all jobs if unspecified or empty. The phase that includes
        +     * the job must match the phase ID specified in `source_phase`. This value
        +     * must consist of lower-case letters, numbers, and hyphens, start with a
        +     * letter and end with a letter or a number, and have a max length of 63
        +     * characters. In other words, it must match the following regex:
        +     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
              * 
        * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return A list containing the sourcePhases. + * @return A list containing the jobs. */ - public com.google.protobuf.ProtocolStringList getSourcePhasesList() { - sourcePhases_.makeImmutable(); - return sourcePhases_; + public com.google.protobuf.ProtocolStringList getJobsList() { + jobs_.makeImmutable(); + return jobs_; } /** * * *
        -     * Optional. Phases within which jobs are subject to automatic repair actions
        -     * on failure. Proceeds only after phase name matched any one in the list, or
        -     * for all phases if unspecified. This value must consist of lower-case
        -     * letters, numbers, and hyphens, start with a letter and end with a letter or
        -     * a number, and have a max length of 63 characters. In other words, it must
        -     * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        +     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        +     * the list, or for all jobs if unspecified or empty. The phase that includes
        +     * the job must match the phase ID specified in `source_phase`. This value
        +     * must consist of lower-case letters, numbers, and hyphens, start with a
        +     * letter and end with a letter or a number, and have a max length of 63
        +     * characters. In other words, it must match the following regex:
        +     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
              * 
        * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The count of sourcePhases. + * @return The count of jobs. */ - public int getSourcePhasesCount() { - return sourcePhases_.size(); + public int getJobsCount() { + return jobs_.size(); } /** * * *
        -     * Optional. Phases within which jobs are subject to automatic repair actions
        -     * on failure. Proceeds only after phase name matched any one in the list, or
        -     * for all phases if unspecified. This value must consist of lower-case
        -     * letters, numbers, and hyphens, start with a letter and end with a letter or
        -     * a number, and have a max length of 63 characters. In other words, it must
        -     * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        +     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        +     * the list, or for all jobs if unspecified or empty. The phase that includes
        +     * the job must match the phase ID specified in `source_phase`. This value
        +     * must consist of lower-case letters, numbers, and hyphens, start with a
        +     * letter and end with a letter or a number, and have a max length of 63
        +     * characters. In other words, it must match the following regex:
        +     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
              * 
        * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. - * @return The sourcePhases at the given index. + * @return The jobs at the given index. */ - public java.lang.String getSourcePhases(int index) { - return sourcePhases_.get(index); + public java.lang.String getJobs(int index) { + return jobs_.get(index); } /** * * *
        -     * Optional. Phases within which jobs are subject to automatic repair actions
        -     * on failure. Proceeds only after phase name matched any one in the list, or
        -     * for all phases if unspecified. This value must consist of lower-case
        -     * letters, numbers, and hyphens, start with a letter and end with a letter or
        -     * a number, and have a max length of 63 characters. In other words, it must
        -     * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        +     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        +     * the list, or for all jobs if unspecified or empty. The phase that includes
        +     * the job must match the phase ID specified in `source_phase`. This value
        +     * must consist of lower-case letters, numbers, and hyphens, start with a
        +     * letter and end with a letter or a number, and have a max length of 63
        +     * characters. In other words, it must match the following regex:
        +     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
              * 
        * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. - * @return The bytes of the sourcePhases at the given index. + * @return The bytes of the jobs at the given index. */ - public com.google.protobuf.ByteString getSourcePhasesBytes(int index) { - return sourcePhases_.getByteString(index); + public com.google.protobuf.ByteString getJobsBytes(int index) { + return jobs_.getByteString(index); } /** * * *
        -     * Optional. Phases within which jobs are subject to automatic repair actions
        -     * on failure. Proceeds only after phase name matched any one in the list, or
        -     * for all phases if unspecified. This value must consist of lower-case
        -     * letters, numbers, and hyphens, start with a letter and end with a letter or
        -     * a number, and have a max length of 63 characters. In other words, it must
        -     * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        +     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        +     * the list, or for all jobs if unspecified or empty. The phase that includes
        +     * the job must match the phase ID specified in `source_phase`. This value
        +     * must consist of lower-case letters, numbers, and hyphens, start with a
        +     * letter and end with a letter or a number, and have a max length of 63
        +     * characters. In other words, it must match the following regex:
        +     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
              * 
        * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. - * @param value The sourcePhases to set. + * @param value The jobs to set. * @return This builder for chaining. */ - public Builder setSourcePhases(int index, java.lang.String value) { + public Builder setJobs(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureSourcePhasesIsMutable(); - sourcePhases_.set(index, value); + ensureJobsIsMutable(); + jobs_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; @@ -1201,25 +929,26 @@ public Builder setSourcePhases(int index, java.lang.String value) { * * *
        -     * Optional. Phases within which jobs are subject to automatic repair actions
        -     * on failure. Proceeds only after phase name matched any one in the list, or
        -     * for all phases if unspecified. This value must consist of lower-case
        -     * letters, numbers, and hyphens, start with a letter and end with a letter or
        -     * a number, and have a max length of 63 characters. In other words, it must
        -     * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        +     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        +     * the list, or for all jobs if unspecified or empty. The phase that includes
        +     * the job must match the phase ID specified in `source_phase`. This value
        +     * must consist of lower-case letters, numbers, and hyphens, start with a
        +     * letter and end with a letter or a number, and have a max length of 63
        +     * characters. In other words, it must match the following regex:
        +     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
              * 
        * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The sourcePhases to add. + * @param value The jobs to add. * @return This builder for chaining. */ - public Builder addSourcePhases(java.lang.String value) { + public Builder addJobs(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureSourcePhasesIsMutable(); - sourcePhases_.add(value); + ensureJobsIsMutable(); + jobs_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; @@ -1228,22 +957,23 @@ public Builder addSourcePhases(java.lang.String value) { * * *
        -     * Optional. Phases within which jobs are subject to automatic repair actions
        -     * on failure. Proceeds only after phase name matched any one in the list, or
        -     * for all phases if unspecified. This value must consist of lower-case
        -     * letters, numbers, and hyphens, start with a letter and end with a letter or
        -     * a number, and have a max length of 63 characters. In other words, it must
        -     * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        +     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        +     * the list, or for all jobs if unspecified or empty. The phase that includes
        +     * the job must match the phase ID specified in `source_phase`. This value
        +     * must consist of lower-case letters, numbers, and hyphens, start with a
        +     * letter and end with a letter or a number, and have a max length of 63
        +     * characters. In other words, it must match the following regex:
        +     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
              * 
        * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param values The sourcePhases to add. + * @param values The jobs to add. * @return This builder for chaining. */ - public Builder addAllSourcePhases(java.lang.Iterable values) { - ensureSourcePhasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourcePhases_); + public Builder addAllJobs(java.lang.Iterable values) { + ensureJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); bitField0_ |= 0x00000002; onChanged(); return this; @@ -1252,20 +982,21 @@ public Builder addAllSourcePhases(java.lang.Iterable values) { * * *
        -     * Optional. Phases within which jobs are subject to automatic repair actions
        -     * on failure. Proceeds only after phase name matched any one in the list, or
        -     * for all phases if unspecified. This value must consist of lower-case
        -     * letters, numbers, and hyphens, start with a letter and end with a letter or
        -     * a number, and have a max length of 63 characters. In other words, it must
        -     * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        +     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        +     * the list, or for all jobs if unspecified or empty. The phase that includes
        +     * the job must match the phase ID specified in `source_phase`. This value
        +     * must consist of lower-case letters, numbers, and hyphens, start with a
        +     * letter and end with a letter or a number, and have a max length of 63
        +     * characters. In other words, it must match the following regex:
        +     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
              * 
        * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearSourcePhases() { - sourcePhases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + public Builder clearJobs() { + jobs_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); ; onChanged(); @@ -1275,644 +1006,32 @@ public Builder clearSourcePhases() { * * *
        -     * Optional. Phases within which jobs are subject to automatic repair actions
        -     * on failure. Proceeds only after phase name matched any one in the list, or
        -     * for all phases if unspecified. This value must consist of lower-case
        -     * letters, numbers, and hyphens, start with a letter and end with a letter or
        -     * a number, and have a max length of 63 characters. In other words, it must
        -     * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        +     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        +     * the list, or for all jobs if unspecified or empty. The phase that includes
        +     * the job must match the phase ID specified in `source_phase`. This value
        +     * must consist of lower-case letters, numbers, and hyphens, start with a
        +     * letter and end with a letter or a number, and have a max length of 63
        +     * characters. In other words, it must match the following regex:
        +     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
              * 
        * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes of the sourcePhases to add. + * @param value The bytes of the jobs to add. * @return This builder for chaining. */ - public Builder addSourcePhasesBytes(com.google.protobuf.ByteString value) { + public Builder addJobsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureSourcePhasesIsMutable(); - sourcePhases_.add(value); + ensureJobsIsMutable(); + jobs_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } - private com.google.protobuf.LazyStringArrayList jobs_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureJobsIsMutable() { - if (!jobs_.isModifiable()) { - jobs_ = new com.google.protobuf.LazyStringArrayList(jobs_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
        -     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        -     * the list, or for all jobs if unspecified or empty. The phase that includes
        -     * the job must match the phase ID specified in `source_phase`. This value
        -     * must consist of lower-case letters, numbers, and hyphens, start with a
        -     * letter and end with a letter or a number, and have a max length of 63
        -     * characters. In other words, it must match the following regex:
        -     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -     * 
        - * - * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jobs. - */ - public com.google.protobuf.ProtocolStringList getJobsList() { - jobs_.makeImmutable(); - return jobs_; - } - /** - * - * - *
        -     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        -     * the list, or for all jobs if unspecified or empty. The phase that includes
        -     * the job must match the phase ID specified in `source_phase`. This value
        -     * must consist of lower-case letters, numbers, and hyphens, start with a
        -     * letter and end with a letter or a number, and have a max length of 63
        -     * characters. In other words, it must match the following regex:
        -     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -     * 
        - * - * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jobs. - */ - public int getJobsCount() { - return jobs_.size(); - } - /** - * - * - *
        -     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        -     * the list, or for all jobs if unspecified or empty. The phase that includes
        -     * the job must match the phase ID specified in `source_phase`. This value
        -     * must consist of lower-case letters, numbers, and hyphens, start with a
        -     * letter and end with a letter or a number, and have a max length of 63
        -     * characters. In other words, it must match the following regex:
        -     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -     * 
        - * - * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jobs at the given index. - */ - public java.lang.String getJobs(int index) { - return jobs_.get(index); - } - /** - * - * - *
        -     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        -     * the list, or for all jobs if unspecified or empty. The phase that includes
        -     * the job must match the phase ID specified in `source_phase`. This value
        -     * must consist of lower-case letters, numbers, and hyphens, start with a
        -     * letter and end with a letter or a number, and have a max length of 63
        -     * characters. In other words, it must match the following regex:
        -     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -     * 
        - * - * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jobs at the given index. - */ - public com.google.protobuf.ByteString getJobsBytes(int index) { - return jobs_.getByteString(index); - } - /** - * - * - *
        -     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        -     * the list, or for all jobs if unspecified or empty. The phase that includes
        -     * the job must match the phase ID specified in `source_phase`. This value
        -     * must consist of lower-case letters, numbers, and hyphens, start with a
        -     * letter and end with a letter or a number, and have a max length of 63
        -     * characters. In other words, it must match the following regex:
        -     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -     * 
        - * - * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jobs to set. - * @return This builder for chaining. - */ - public Builder setJobs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
        -     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        -     * the list, or for all jobs if unspecified or empty. The phase that includes
        -     * the job must match the phase ID specified in `source_phase`. This value
        -     * must consist of lower-case letters, numbers, and hyphens, start with a
        -     * letter and end with a letter or a number, and have a max length of 63
        -     * characters. In other words, it must match the following regex:
        -     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -     * 
        - * - * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jobs to add. - * @return This builder for chaining. - */ - public Builder addJobs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
        -     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        -     * the list, or for all jobs if unspecified or empty. The phase that includes
        -     * the job must match the phase ID specified in `source_phase`. This value
        -     * must consist of lower-case letters, numbers, and hyphens, start with a
        -     * letter and end with a letter or a number, and have a max length of 63
        -     * characters. In other words, it must match the following regex:
        -     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -     * 
        - * - * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jobs to add. - * @return This builder for chaining. - */ - public Builder addAllJobs(java.lang.Iterable values) { - ensureJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
        -     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        -     * the list, or for all jobs if unspecified or empty. The phase that includes
        -     * the job must match the phase ID specified in `source_phase`. This value
        -     * must consist of lower-case letters, numbers, and hyphens, start with a
        -     * letter and end with a letter or a number, and have a max length of 63
        -     * characters. In other words, it must match the following regex:
        -     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -     * 
        - * - * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJobs() { - jobs_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
        -     * Optional. Jobs to repair. Proceeds only after job name matched any one in
        -     * the list, or for all jobs if unspecified or empty. The phase that includes
        -     * the job must match the phase ID specified in `source_phase`. This value
        -     * must consist of lower-case letters, numbers, and hyphens, start with a
        -     * letter and end with a letter or a number, and have a max length of 63
        -     * characters. In other words, it must match the following regex:
        -     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -     * 
        - * - * repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jobs to add. - * @return This builder for chaining. - */ - public Builder addJobsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJobsIsMutable(); - jobs_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.util.List repairModes_ = - java.util.Collections.emptyList(); - - private void ensureRepairModesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - repairModes_ = new java.util.ArrayList(repairModes_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.RepairMode, - com.google.cloud.deploy.v1.RepairMode.Builder, - com.google.cloud.deploy.v1.RepairModeOrBuilder> - repairModesBuilder_; - - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List getRepairModesList() { - if (repairModesBuilder_ == null) { - return java.util.Collections.unmodifiableList(repairModes_); - } else { - return repairModesBuilder_.getMessageList(); - } - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public int getRepairModesCount() { - if (repairModesBuilder_ == null) { - return repairModes_.size(); - } else { - return repairModesBuilder_.getCount(); - } - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.deploy.v1.RepairMode getRepairModes(int index) { - if (repairModesBuilder_ == null) { - return repairModes_.get(index); - } else { - return repairModesBuilder_.getMessage(index); - } - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRepairModes(int index, com.google.cloud.deploy.v1.RepairMode value) { - if (repairModesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRepairModesIsMutable(); - repairModes_.set(index, value); - onChanged(); - } else { - repairModesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRepairModes( - int index, com.google.cloud.deploy.v1.RepairMode.Builder builderForValue) { - if (repairModesBuilder_ == null) { - ensureRepairModesIsMutable(); - repairModes_.set(index, builderForValue.build()); - onChanged(); - } else { - repairModesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRepairModes(com.google.cloud.deploy.v1.RepairMode value) { - if (repairModesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRepairModesIsMutable(); - repairModes_.add(value); - onChanged(); - } else { - repairModesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRepairModes(int index, com.google.cloud.deploy.v1.RepairMode value) { - if (repairModesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRepairModesIsMutable(); - repairModes_.add(index, value); - onChanged(); - } else { - repairModesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRepairModes(com.google.cloud.deploy.v1.RepairMode.Builder builderForValue) { - if (repairModesBuilder_ == null) { - ensureRepairModesIsMutable(); - repairModes_.add(builderForValue.build()); - onChanged(); - } else { - repairModesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRepairModes( - int index, com.google.cloud.deploy.v1.RepairMode.Builder builderForValue) { - if (repairModesBuilder_ == null) { - ensureRepairModesIsMutable(); - repairModes_.add(index, builderForValue.build()); - onChanged(); - } else { - repairModesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addAllRepairModes( - java.lang.Iterable values) { - if (repairModesBuilder_ == null) { - ensureRepairModesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, repairModes_); - onChanged(); - } else { - repairModesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRepairModes() { - if (repairModesBuilder_ == null) { - repairModes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - repairModesBuilder_.clear(); - } - return this; - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeRepairModes(int index) { - if (repairModesBuilder_ == null) { - ensureRepairModesIsMutable(); - repairModes_.remove(index); - onChanged(); - } else { - repairModesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.deploy.v1.RepairMode.Builder getRepairModesBuilder(int index) { - return getRepairModesFieldBuilder().getBuilder(index); - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.deploy.v1.RepairModeOrBuilder getRepairModesOrBuilder(int index) { - if (repairModesBuilder_ == null) { - return repairModes_.get(index); - } else { - return repairModesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getRepairModesOrBuilderList() { - if (repairModesBuilder_ != null) { - return repairModesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(repairModes_); - } - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.deploy.v1.RepairMode.Builder addRepairModesBuilder() { - return getRepairModesFieldBuilder() - .addBuilder(com.google.cloud.deploy.v1.RepairMode.getDefaultInstance()); - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.deploy.v1.RepairMode.Builder addRepairModesBuilder(int index) { - return getRepairModesFieldBuilder() - .addBuilder(index, com.google.cloud.deploy.v1.RepairMode.getDefaultInstance()); - } - /** - * - * - *
        -     * Required. Defines the types of automatic repair actions for failed jobs.
        -     * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getRepairModesBuilderList() { - return getRepairModesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.RepairMode, - com.google.cloud.deploy.v1.RepairMode.Builder, - com.google.cloud.deploy.v1.RepairModeOrBuilder> - getRepairModesFieldBuilder() { - if (repairModesBuilder_ == null) { - repairModesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.RepairMode, - com.google.cloud.deploy.v1.RepairMode.Builder, - com.google.cloud.deploy.v1.RepairModeOrBuilder>( - repairModes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - repairModes_ = null; - } - return repairModesBuilder_; - } - private com.google.cloud.deploy.v1.AutomationRuleCondition condition_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.deploy.v1.AutomationRuleCondition, @@ -1933,7 +1052,7 @@ public com.google.cloud.deploy.v1.RepairMode.Builder addRepairModesBuilder(int i * @return Whether the condition field is set. */ public boolean hasCondition() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1977,7 +1096,7 @@ public Builder setCondition(com.google.cloud.deploy.v1.AutomationRuleCondition v } else { conditionBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1999,7 +1118,7 @@ public Builder setCondition( } else { conditionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2016,7 +1135,7 @@ public Builder setCondition( */ public Builder mergeCondition(com.google.cloud.deploy.v1.AutomationRuleCondition value) { if (conditionBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000004) != 0) && condition_ != null && condition_ != com.google.cloud.deploy.v1.AutomationRuleCondition.getDefaultInstance()) { @@ -2028,7 +1147,7 @@ public Builder mergeCondition(com.google.cloud.deploy.v1.AutomationRuleCondition conditionBuilder_.mergeFrom(value); } if (condition_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -2045,7 +1164,7 @@ public Builder mergeCondition(com.google.cloud.deploy.v1.AutomationRuleCondition * */ public Builder clearCondition() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); condition_ = null; if (conditionBuilder_ != null) { conditionBuilder_.dispose(); @@ -2066,7 +1185,7 @@ public Builder clearCondition() { * */ public com.google.cloud.deploy.v1.AutomationRuleCondition.Builder getConditionBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; onChanged(); return getConditionFieldBuilder().getBuilder(); } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutRuleOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutRuleOrBuilder.java index d7b0c321eb27..f1f9aaa1a452 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutRuleOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairRolloutRuleOrBuilder.java @@ -53,77 +53,6 @@ public interface RepairRolloutRuleOrBuilder */ com.google.protobuf.ByteString getIdBytes(); - /** - * - * - *
        -   * Optional. Phases within which jobs are subject to automatic repair actions
        -   * on failure. Proceeds only after phase name matched any one in the list, or
        -   * for all phases if unspecified. This value must consist of lower-case
        -   * letters, numbers, and hyphens, start with a letter and end with a letter or
        -   * a number, and have a max length of 63 characters. In other words, it must
        -   * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -   * 
        - * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the sourcePhases. - */ - java.util.List getSourcePhasesList(); - /** - * - * - *
        -   * Optional. Phases within which jobs are subject to automatic repair actions
        -   * on failure. Proceeds only after phase name matched any one in the list, or
        -   * for all phases if unspecified. This value must consist of lower-case
        -   * letters, numbers, and hyphens, start with a letter and end with a letter or
        -   * a number, and have a max length of 63 characters. In other words, it must
        -   * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -   * 
        - * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of sourcePhases. - */ - int getSourcePhasesCount(); - /** - * - * - *
        -   * Optional. Phases within which jobs are subject to automatic repair actions
        -   * on failure. Proceeds only after phase name matched any one in the list, or
        -   * for all phases if unspecified. This value must consist of lower-case
        -   * letters, numbers, and hyphens, start with a letter and end with a letter or
        -   * a number, and have a max length of 63 characters. In other words, it must
        -   * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -   * 
        - * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The sourcePhases at the given index. - */ - java.lang.String getSourcePhases(int index); - /** - * - * - *
        -   * Optional. Phases within which jobs are subject to automatic repair actions
        -   * on failure. Proceeds only after phase name matched any one in the list, or
        -   * for all phases if unspecified. This value must consist of lower-case
        -   * letters, numbers, and hyphens, start with a letter and end with a letter or
        -   * a number, and have a max length of 63 characters. In other words, it must
        -   * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
        -   * 
        - * - * repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the sourcePhases at the given index. - */ - com.google.protobuf.ByteString getSourcePhasesBytes(int index); - /** * * @@ -199,68 +128,6 @@ public interface RepairRolloutRuleOrBuilder */ com.google.protobuf.ByteString getJobsBytes(int index); - /** - * - * - *
        -   * Required. Defines the types of automatic repair actions for failed jobs.
        -   * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRepairModesList(); - /** - * - * - *
        -   * Required. Defines the types of automatic repair actions for failed jobs.
        -   * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.deploy.v1.RepairMode getRepairModes(int index); - /** - * - * - *
        -   * Required. Defines the types of automatic repair actions for failed jobs.
        -   * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRepairModesCount(); - /** - * - * - *
        -   * Required. Defines the types of automatic repair actions for failed jobs.
        -   * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRepairModesOrBuilderList(); - /** - * - * - *
        -   * Required. Defines the types of automatic repair actions for failed jobs.
        -   * 
        - * - * - * repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.deploy.v1.RepairModeOrBuilder getRepairModesOrBuilder(int index); - /** * * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairState.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairState.java index ec7d9b623d2c..1503390e012b 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairState.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RepairState.java @@ -93,12 +93,12 @@ public enum RepairState implements com.google.protobuf.ProtocolMessageEnum { * * *
        -   * The `repair` action was skipped.
        +   * The `repair` action was aborted.
            * 
        * - * REPAIR_STATE_SKIPPED = 6; + * REPAIR_STATE_ABORTED = 7; */ - REPAIR_STATE_SKIPPED(6), + REPAIR_STATE_ABORTED(7), UNRECOGNIZED(-1), ; @@ -166,12 +166,12 @@ public enum RepairState implements com.google.protobuf.ProtocolMessageEnum { * * *
        -   * The `repair` action was skipped.
        +   * The `repair` action was aborted.
            * 
        * - * REPAIR_STATE_SKIPPED = 6; + * REPAIR_STATE_ABORTED = 7; */ - public static final int REPAIR_STATE_SKIPPED_VALUE = 6; + public static final int REPAIR_STATE_ABORTED_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -209,8 +209,8 @@ public static RepairState forNumber(int value) { return REPAIR_STATE_IN_PROGRESS; case 5: return REPAIR_STATE_PENDING; - case 6: - return REPAIR_STATE_SKIPPED; + case 7: + return REPAIR_STATE_ABORTED; default: return null; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Retry.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Retry.java deleted file mode 100644 index 9ee082d0d1d6..000000000000 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Retry.java +++ /dev/null @@ -1,989 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.deploy.v1; - -/** - * - * - *
        - * Retries the failed job.
        - * 
        - * - * Protobuf type {@code google.cloud.deploy.v1.Retry} - */ -public final class Retry extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Retry) - RetryOrBuilder { - private static final long serialVersionUID = 0L; - // Use Retry.newBuilder() to construct. - private Retry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Retry() { - backoffMode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Retry(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_Retry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_Retry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Retry.class, com.google.cloud.deploy.v1.Retry.Builder.class); - } - - private int bitField0_; - public static final int ATTEMPTS_FIELD_NUMBER = 1; - private long attempts_ = 0L; - /** - * - * - *
        -   * Required. Total number of retries. Retry is skipped if set to 0; The
        -   * minimum value is 1, and the maximum value is 10.
        -   * 
        - * - * int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The attempts. - */ - @java.lang.Override - public long getAttempts() { - return attempts_; - } - - public static final int WAIT_FIELD_NUMBER = 2; - private com.google.protobuf.Duration wait_; - /** - * - * - *
        -   * Optional. How long to wait for the first retry. Default is 0, and the
        -   * maximum value is 14d.
        -   * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the wait field is set. - */ - @java.lang.Override - public boolean hasWait() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
        -   * Optional. How long to wait for the first retry. Default is 0, and the
        -   * maximum value is 14d.
        -   * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The wait. - */ - @java.lang.Override - public com.google.protobuf.Duration getWait() { - return wait_ == null ? com.google.protobuf.Duration.getDefaultInstance() : wait_; - } - /** - * - * - *
        -   * Optional. How long to wait for the first retry. Default is 0, and the
        -   * maximum value is 14d.
        -   * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getWaitOrBuilder() { - return wait_ == null ? com.google.protobuf.Duration.getDefaultInstance() : wait_; - } - - public static final int BACKOFF_MODE_FIELD_NUMBER = 3; - private int backoffMode_ = 0; - /** - * - * - *
        -   * Optional. The pattern of how wait time will be increased. Default is
        -   * linear. Backoff mode will be ignored if `wait` is 0.
        -   * 
        - * - * - * .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for backoffMode. - */ - @java.lang.Override - public int getBackoffModeValue() { - return backoffMode_; - } - /** - * - * - *
        -   * Optional. The pattern of how wait time will be increased. Default is
        -   * linear. Backoff mode will be ignored if `wait` is 0.
        -   * 
        - * - * - * .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The backoffMode. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.BackoffMode getBackoffMode() { - com.google.cloud.deploy.v1.BackoffMode result = - com.google.cloud.deploy.v1.BackoffMode.forNumber(backoffMode_); - return result == null ? com.google.cloud.deploy.v1.BackoffMode.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (attempts_ != 0L) { - output.writeInt64(1, attempts_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getWait()); - } - if (backoffMode_ - != com.google.cloud.deploy.v1.BackoffMode.BACKOFF_MODE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, backoffMode_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attempts_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, attempts_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWait()); - } - if (backoffMode_ - != com.google.cloud.deploy.v1.BackoffMode.BACKOFF_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, backoffMode_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.Retry)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.Retry other = (com.google.cloud.deploy.v1.Retry) obj; - - if (getAttempts() != other.getAttempts()) return false; - if (hasWait() != other.hasWait()) return false; - if (hasWait()) { - if (!getWait().equals(other.getWait())) return false; - } - if (backoffMode_ != other.backoffMode_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ATTEMPTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAttempts()); - if (hasWait()) { - hash = (37 * hash) + WAIT_FIELD_NUMBER; - hash = (53 * hash) + getWait().hashCode(); - } - hash = (37 * hash) + BACKOFF_MODE_FIELD_NUMBER; - hash = (53 * hash) + backoffMode_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.Retry parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.deploy.v1.Retry parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.deploy.v1.Retry parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.deploy.v1.Retry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.deploy.v1.Retry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.deploy.v1.Retry parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.deploy.v1.Retry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.deploy.v1.Retry parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.deploy.v1.Retry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.deploy.v1.Retry parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.deploy.v1.Retry parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.deploy.v1.Retry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.deploy.v1.Retry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
        -   * Retries the failed job.
        -   * 
        - * - * Protobuf type {@code google.cloud.deploy.v1.Retry} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Retry) - com.google.cloud.deploy.v1.RetryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_Retry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_Retry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Retry.class, - com.google.cloud.deploy.v1.Retry.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.Retry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getWaitFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - attempts_ = 0L; - wait_ = null; - if (waitBuilder_ != null) { - waitBuilder_.dispose(); - waitBuilder_ = null; - } - backoffMode_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_Retry_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Retry getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.Retry.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Retry build() { - com.google.cloud.deploy.v1.Retry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Retry buildPartial() { - com.google.cloud.deploy.v1.Retry result = new com.google.cloud.deploy.v1.Retry(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.deploy.v1.Retry result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.attempts_ = attempts_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.wait_ = waitBuilder_ == null ? wait_ : waitBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.backoffMode_ = backoffMode_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.Retry) { - return mergeFrom((com.google.cloud.deploy.v1.Retry) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.Retry other) { - if (other == com.google.cloud.deploy.v1.Retry.getDefaultInstance()) return this; - if (other.getAttempts() != 0L) { - setAttempts(other.getAttempts()); - } - if (other.hasWait()) { - mergeWait(other.getWait()); - } - if (other.backoffMode_ != 0) { - setBackoffModeValue(other.getBackoffModeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - attempts_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getWaitFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - backoffMode_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private long attempts_; - /** - * - * - *
        -     * Required. Total number of retries. Retry is skipped if set to 0; The
        -     * minimum value is 1, and the maximum value is 10.
        -     * 
        - * - * int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The attempts. - */ - @java.lang.Override - public long getAttempts() { - return attempts_; - } - /** - * - * - *
        -     * Required. Total number of retries. Retry is skipped if set to 0; The
        -     * minimum value is 1, and the maximum value is 10.
        -     * 
        - * - * int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The attempts to set. - * @return This builder for chaining. - */ - public Builder setAttempts(long value) { - - attempts_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
        -     * Required. Total number of retries. Retry is skipped if set to 0; The
        -     * minimum value is 1, and the maximum value is 10.
        -     * 
        - * - * int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearAttempts() { - bitField0_ = (bitField0_ & ~0x00000001); - attempts_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Duration wait_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - waitBuilder_; - /** - * - * - *
        -     * Optional. How long to wait for the first retry. Default is 0, and the
        -     * maximum value is 14d.
        -     * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the wait field is set. - */ - public boolean hasWait() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
        -     * Optional. How long to wait for the first retry. Default is 0, and the
        -     * maximum value is 14d.
        -     * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The wait. - */ - public com.google.protobuf.Duration getWait() { - if (waitBuilder_ == null) { - return wait_ == null ? com.google.protobuf.Duration.getDefaultInstance() : wait_; - } else { - return waitBuilder_.getMessage(); - } - } - /** - * - * - *
        -     * Optional. How long to wait for the first retry. Default is 0, and the
        -     * maximum value is 14d.
        -     * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setWait(com.google.protobuf.Duration value) { - if (waitBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - wait_ = value; - } else { - waitBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
        -     * Optional. How long to wait for the first retry. Default is 0, and the
        -     * maximum value is 14d.
        -     * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setWait(com.google.protobuf.Duration.Builder builderForValue) { - if (waitBuilder_ == null) { - wait_ = builderForValue.build(); - } else { - waitBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
        -     * Optional. How long to wait for the first retry. Default is 0, and the
        -     * maximum value is 14d.
        -     * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeWait(com.google.protobuf.Duration value) { - if (waitBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && wait_ != null - && wait_ != com.google.protobuf.Duration.getDefaultInstance()) { - getWaitBuilder().mergeFrom(value); - } else { - wait_ = value; - } - } else { - waitBuilder_.mergeFrom(value); - } - if (wait_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
        -     * Optional. How long to wait for the first retry. Default is 0, and the
        -     * maximum value is 14d.
        -     * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearWait() { - bitField0_ = (bitField0_ & ~0x00000002); - wait_ = null; - if (waitBuilder_ != null) { - waitBuilder_.dispose(); - waitBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
        -     * Optional. How long to wait for the first retry. Default is 0, and the
        -     * maximum value is 14d.
        -     * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Duration.Builder getWaitBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getWaitFieldBuilder().getBuilder(); - } - /** - * - * - *
        -     * Optional. How long to wait for the first retry. Default is 0, and the
        -     * maximum value is 14d.
        -     * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.DurationOrBuilder getWaitOrBuilder() { - if (waitBuilder_ != null) { - return waitBuilder_.getMessageOrBuilder(); - } else { - return wait_ == null ? com.google.protobuf.Duration.getDefaultInstance() : wait_; - } - } - /** - * - * - *
        -     * Optional. How long to wait for the first retry. Default is 0, and the
        -     * maximum value is 14d.
        -     * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getWaitFieldBuilder() { - if (waitBuilder_ == null) { - waitBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getWait(), getParentForChildren(), isClean()); - wait_ = null; - } - return waitBuilder_; - } - - private int backoffMode_ = 0; - /** - * - * - *
        -     * Optional. The pattern of how wait time will be increased. Default is
        -     * linear. Backoff mode will be ignored if `wait` is 0.
        -     * 
        - * - * - * .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for backoffMode. - */ - @java.lang.Override - public int getBackoffModeValue() { - return backoffMode_; - } - /** - * - * - *
        -     * Optional. The pattern of how wait time will be increased. Default is
        -     * linear. Backoff mode will be ignored if `wait` is 0.
        -     * 
        - * - * - * .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for backoffMode to set. - * @return This builder for chaining. - */ - public Builder setBackoffModeValue(int value) { - backoffMode_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
        -     * Optional. The pattern of how wait time will be increased. Default is
        -     * linear. Backoff mode will be ignored if `wait` is 0.
        -     * 
        - * - * - * .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The backoffMode. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.BackoffMode getBackoffMode() { - com.google.cloud.deploy.v1.BackoffMode result = - com.google.cloud.deploy.v1.BackoffMode.forNumber(backoffMode_); - return result == null ? com.google.cloud.deploy.v1.BackoffMode.UNRECOGNIZED : result; - } - /** - * - * - *
        -     * Optional. The pattern of how wait time will be increased. Default is
        -     * linear. Backoff mode will be ignored if `wait` is 0.
        -     * 
        - * - * - * .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The backoffMode to set. - * @return This builder for chaining. - */ - public Builder setBackoffMode(com.google.cloud.deploy.v1.BackoffMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - backoffMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
        -     * Optional. The pattern of how wait time will be increased. Default is
        -     * linear. Backoff mode will be ignored if `wait` is 0.
        -     * 
        - * - * - * .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearBackoffMode() { - bitField0_ = (bitField0_ & ~0x00000004); - backoffMode_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Retry) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Retry) - private static final com.google.cloud.deploy.v1.Retry DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Retry(); - } - - public static com.google.cloud.deploy.v1.Retry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Retry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Retry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryOrBuilder.java deleted file mode 100644 index f4a9c95680a3..000000000000 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.deploy.v1; - -public interface RetryOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Retry) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Required. Total number of retries. Retry is skipped if set to 0; The
        -   * minimum value is 1, and the maximum value is 10.
        -   * 
        - * - * int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The attempts. - */ - long getAttempts(); - - /** - * - * - *
        -   * Optional. How long to wait for the first retry. Default is 0, and the
        -   * maximum value is 14d.
        -   * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the wait field is set. - */ - boolean hasWait(); - /** - * - * - *
        -   * Optional. How long to wait for the first retry. Default is 0, and the
        -   * maximum value is 14d.
        -   * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The wait. - */ - com.google.protobuf.Duration getWait(); - /** - * - * - *
        -   * Optional. How long to wait for the first retry. Default is 0, and the
        -   * maximum value is 14d.
        -   * 
        - * - * .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.DurationOrBuilder getWaitOrBuilder(); - - /** - * - * - *
        -   * Optional. The pattern of how wait time will be increased. Default is
        -   * linear. Backoff mode will be ignored if `wait` is 0.
        -   * 
        - * - * - * .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for backoffMode. - */ - int getBackoffModeValue(); - /** - * - * - *
        -   * Optional. The pattern of how wait time will be increased. Default is
        -   * linear. Backoff mode will be ignored if `wait` is 0.
        -   * 
        - * - * - * .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The backoffMode. - */ - com.google.cloud.deploy.v1.BackoffMode getBackoffMode(); -} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryPhase.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryPhase.java index 938bdbf77a5a..e5688723bb9d 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryPhase.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryPhase.java @@ -41,8 +41,6 @@ private RetryPhase(com.google.protobuf.GeneratedMessageV3.Builder builder) { private RetryPhase() { backoffMode_ = 0; - phaseId_ = ""; - jobId_ = ""; attempts_ = java.util.Collections.emptyList(); } @@ -126,108 +124,6 @@ public com.google.cloud.deploy.v1.BackoffMode getBackoffMode() { return result == null ? com.google.cloud.deploy.v1.BackoffMode.UNRECOGNIZED : result; } - public static final int PHASE_ID_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object phaseId_ = ""; - /** - * - * - *
        -   * Output only. The phase ID of the phase that includes the job being retried.
        -   * 
        - * - * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The phaseId. - */ - @java.lang.Override - public java.lang.String getPhaseId() { - java.lang.Object ref = phaseId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - phaseId_ = s; - return s; - } - } - /** - * - * - *
        -   * Output only. The phase ID of the phase that includes the job being retried.
        -   * 
        - * - * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for phaseId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPhaseIdBytes() { - java.lang.Object ref = phaseId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - phaseId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_ID_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object jobId_ = ""; - /** - * - * - *
        -   * Output only. The job ID for the Job to retry.
        -   * 
        - * - * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
        -   * Output only. The job ID for the Job to retry.
        -   * 
        - * - * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int ATTEMPTS_FIELD_NUMBER = 5; @SuppressWarnings("serial") @@ -330,12 +226,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.deploy.v1.BackoffMode.BACKOFF_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, backoffMode_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phaseId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, phaseId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, jobId_); - } for (int i = 0; i < attempts_.size(); i++) { output.writeMessage(5, attempts_.get(i)); } @@ -355,12 +245,6 @@ public int getSerializedSize() { != com.google.cloud.deploy.v1.BackoffMode.BACKOFF_MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, backoffMode_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phaseId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, phaseId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, jobId_); - } for (int i = 0; i < attempts_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, attempts_.get(i)); } @@ -381,8 +265,6 @@ public boolean equals(final java.lang.Object obj) { if (getTotalAttempts() != other.getTotalAttempts()) return false; if (backoffMode_ != other.backoffMode_) return false; - if (!getPhaseId().equals(other.getPhaseId())) return false; - if (!getJobId().equals(other.getJobId())) return false; if (!getAttemptsList().equals(other.getAttemptsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -399,10 +281,6 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalAttempts()); hash = (37 * hash) + BACKOFF_MODE_FIELD_NUMBER; hash = (53 * hash) + backoffMode_; - hash = (37 * hash) + PHASE_ID_FIELD_NUMBER; - hash = (53 * hash) + getPhaseId().hashCode(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); if (getAttemptsCount() > 0) { hash = (37 * hash) + ATTEMPTS_FIELD_NUMBER; hash = (53 * hash) + getAttemptsList().hashCode(); @@ -548,15 +426,13 @@ public Builder clear() { bitField0_ = 0; totalAttempts_ = 0L; backoffMode_ = 0; - phaseId_ = ""; - jobId_ = ""; if (attemptsBuilder_ == null) { attempts_ = java.util.Collections.emptyList(); } else { attempts_ = null; attemptsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -594,9 +470,9 @@ public com.google.cloud.deploy.v1.RetryPhase buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.deploy.v1.RetryPhase result) { if (attemptsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { attempts_ = java.util.Collections.unmodifiableList(attempts_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); } result.attempts_ = attempts_; } else { @@ -612,12 +488,6 @@ private void buildPartial0(com.google.cloud.deploy.v1.RetryPhase result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.backoffMode_ = backoffMode_; } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.phaseId_ = phaseId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.jobId_ = jobId_; - } } @java.lang.Override @@ -671,21 +541,11 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.RetryPhase other) { if (other.backoffMode_ != 0) { setBackoffModeValue(other.getBackoffModeValue()); } - if (!other.getPhaseId().isEmpty()) { - phaseId_ = other.phaseId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - bitField0_ |= 0x00000008; - onChanged(); - } if (attemptsBuilder_ == null) { if (!other.attempts_.isEmpty()) { if (attempts_.isEmpty()) { attempts_ = other.attempts_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAttemptsIsMutable(); attempts_.addAll(other.attempts_); @@ -698,7 +558,7 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.RetryPhase other) { attemptsBuilder_.dispose(); attemptsBuilder_ = null; attempts_ = other.attempts_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); attemptsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttemptsFieldBuilder() @@ -746,18 +606,6 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 - case 26: - { - phaseId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - jobId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 case 42: { com.google.cloud.deploy.v1.RetryAttempt m = @@ -948,225 +796,13 @@ public Builder clearBackoffMode() { return this; } - private java.lang.Object phaseId_ = ""; - /** - * - * - *
        -     * Output only. The phase ID of the phase that includes the job being retried.
        -     * 
        - * - * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The phaseId. - */ - public java.lang.String getPhaseId() { - java.lang.Object ref = phaseId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - phaseId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
        -     * Output only. The phase ID of the phase that includes the job being retried.
        -     * 
        - * - * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for phaseId. - */ - public com.google.protobuf.ByteString getPhaseIdBytes() { - java.lang.Object ref = phaseId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - phaseId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
        -     * Output only. The phase ID of the phase that includes the job being retried.
        -     * 
        - * - * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The phaseId to set. - * @return This builder for chaining. - */ - public Builder setPhaseId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - phaseId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
        -     * Output only. The phase ID of the phase that includes the job being retried.
        -     * 
        - * - * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearPhaseId() { - phaseId_ = getDefaultInstance().getPhaseId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
        -     * Output only. The phase ID of the phase that includes the job being retried.
        -     * 
        - * - * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for phaseId to set. - * @return This builder for chaining. - */ - public Builder setPhaseIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - phaseId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
        -     * Output only. The job ID for the Job to retry.
        -     * 
        - * - * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
        -     * Output only. The job ID for the Job to retry.
        -     * 
        - * - * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
        -     * Output only. The job ID for the Job to retry.
        -     * 
        - * - * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - jobId_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
        -     * Output only. The job ID for the Job to retry.
        -     * 
        - * - * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - jobId_ = getDefaultInstance().getJobId(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
        -     * Output only. The job ID for the Job to retry.
        -     * 
        - * - * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - jobId_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - private java.util.List attempts_ = java.util.Collections.emptyList(); private void ensureAttemptsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { attempts_ = new java.util.ArrayList(attempts_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; } } @@ -1403,7 +1039,7 @@ public Builder addAllAttempts( public Builder clearAttempts() { if (attemptsBuilder_ == null) { attempts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { attemptsBuilder_.clear(); @@ -1539,7 +1175,7 @@ public com.google.cloud.deploy.v1.RetryAttempt.Builder addAttemptsBuilder(int in com.google.cloud.deploy.v1.RetryAttempt, com.google.cloud.deploy.v1.RetryAttempt.Builder, com.google.cloud.deploy.v1.RetryAttemptOrBuilder>( - attempts_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + attempts_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); attempts_ = null; } return attemptsBuilder_; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryPhaseOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryPhaseOrBuilder.java index 24e878f16f9b..582f598c3300 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryPhaseOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryPhaseOrBuilder.java @@ -68,56 +68,6 @@ public interface RetryPhaseOrBuilder */ com.google.cloud.deploy.v1.BackoffMode getBackoffMode(); - /** - * - * - *
        -   * Output only. The phase ID of the phase that includes the job being retried.
        -   * 
        - * - * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The phaseId. - */ - java.lang.String getPhaseId(); - /** - * - * - *
        -   * Output only. The phase ID of the phase that includes the job being retried.
        -   * 
        - * - * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for phaseId. - */ - com.google.protobuf.ByteString getPhaseIdBytes(); - - /** - * - * - *
        -   * Output only. The job ID for the Job to retry.
        -   * 
        - * - * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
        -   * Output only. The job ID for the Job to retry.
        -   * 
        - * - * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); - /** * * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RollbackTargetRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RollbackTargetRequest.java index 43922cdd95eb..276f07598e84 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RollbackTargetRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RollbackTargetRequest.java @@ -76,8 +76,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
        -   * created. Format should be
        +   * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
        +   * created. The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * @@ -103,8 +103,8 @@ public java.lang.String getName() { * * *
        -   * Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
        -   * created. Format should be
        +   * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
        +   * created. The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * @@ -921,8 +921,8 @@ public Builder mergeFrom( * * *
        -     * Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
        -     * created. Format should be
        +     * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
        +     * created. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -947,8 +947,8 @@ public java.lang.String getName() { * * *
        -     * Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
        -     * created. Format should be
        +     * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
        +     * created. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -973,8 +973,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -     * Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
        -     * created. Format should be
        +     * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
        +     * created. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -998,8 +998,8 @@ public Builder setName(java.lang.String value) { * * *
        -     * Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
        -     * created. Format should be
        +     * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
        +     * created. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * @@ -1019,8 +1019,8 @@ public Builder clearName() { * * *
        -     * Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
        -     * created. Format should be
        +     * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
        +     * created. The format is
              * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
              * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RollbackTargetRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RollbackTargetRequestOrBuilder.java index 15be28bb8ebe..7ff069c85036 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RollbackTargetRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RollbackTargetRequestOrBuilder.java @@ -28,8 +28,8 @@ public interface RollbackTargetRequestOrBuilder * * *
        -   * Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
        -   * created. Format should be
        +   * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
        +   * created. The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * @@ -44,8 +44,8 @@ public interface RollbackTargetRequestOrBuilder * * *
        -   * Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
        -   * created. Format should be
        +   * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
        +   * created. The format is
            * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
            * 
        * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetAttribute.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetAttribute.java index 90660c003390..f3c801f03a9f 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetAttribute.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetAttribute.java @@ -85,6 +85,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl *
            * ID of the `Target`. The value of this field could be one of the
            * following:
        +   *
            * * The last segment of a target name. It only needs the ID to determine
            * which target is being referred to
            * * "*", all targets in a location.
        @@ -112,6 +113,7 @@ public java.lang.String getId() {
            * 
            * ID of the `Target`. The value of this field could be one of the
            * following:
        +   *
            * * The last segment of a target name. It only needs the ID to determine
            * which target is being referred to
            * * "*", all targets in a location.
        @@ -642,6 +644,7 @@ public Builder mergeFrom(
              * 
              * ID of the `Target`. The value of this field could be one of the
              * following:
        +     *
              * * The last segment of a target name. It only needs the ID to determine
              * which target is being referred to
              * * "*", all targets in a location.
        @@ -668,6 +671,7 @@ public java.lang.String getId() {
              * 
              * ID of the `Target`. The value of this field could be one of the
              * following:
        +     *
              * * The last segment of a target name. It only needs the ID to determine
              * which target is being referred to
              * * "*", all targets in a location.
        @@ -694,6 +698,7 @@ public com.google.protobuf.ByteString getIdBytes() {
              * 
              * ID of the `Target`. The value of this field could be one of the
              * following:
        +     *
              * * The last segment of a target name. It only needs the ID to determine
              * which target is being referred to
              * * "*", all targets in a location.
        @@ -719,6 +724,7 @@ public Builder setId(java.lang.String value) {
              * 
              * ID of the `Target`. The value of this field could be one of the
              * following:
        +     *
              * * The last segment of a target name. It only needs the ID to determine
              * which target is being referred to
              * * "*", all targets in a location.
        @@ -740,6 +746,7 @@ public Builder clearId() {
              * 
              * ID of the `Target`. The value of this field could be one of the
              * following:
        +     *
              * * The last segment of a target name. It only needs the ID to determine
              * which target is being referred to
              * * "*", all targets in a location.
        diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetAttributeOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetAttributeOrBuilder.java
        index de4380c1db1d..05aec530f8ac 100644
        --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetAttributeOrBuilder.java
        +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetAttributeOrBuilder.java
        @@ -30,6 +30,7 @@ public interface TargetAttributeOrBuilder
            * 
            * ID of the `Target`. The value of this field could be one of the
            * following:
        +   *
            * * The last segment of a target name. It only needs the ID to determine
            * which target is being referred to
            * * "*", all targets in a location.
        @@ -46,6 +47,7 @@ public interface TargetAttributeOrBuilder
            * 
            * ID of the `Target`. The value of this field could be one of the
            * following:
        +   *
            * * The last segment of a target name. It only needs the ID to determine
            * which target is being referred to
            * * "*", all targets in a location.
        diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateAutomationRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateAutomationRequest.java
        index a86b192fb581..22e7c24ee36e 100644
        --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateAutomationRequest.java
        +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateAutomationRequest.java
        @@ -70,11 +70,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            *
            *
            * 
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `Automation` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `Automation` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -90,11 +90,11 @@ public boolean hasUpdateMask() { * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `Automation` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `Automation` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -110,11 +110,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `Automation` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `Automation` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -766,11 +766,11 @@ public Builder mergeFrom( * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `Automation` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Automation` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -785,11 +785,11 @@ public boolean hasUpdateMask() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `Automation` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Automation` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -810,11 +810,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `Automation` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Automation` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -837,11 +837,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `Automation` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Automation` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -861,11 +861,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `Automation` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Automation` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -893,11 +893,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `Automation` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Automation` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -917,11 +917,11 @@ public Builder clearUpdateMask() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `Automation` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Automation` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -936,11 +936,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `Automation` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Automation` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -959,11 +959,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `Automation` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Automation` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateAutomationRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateAutomationRequestOrBuilder.java index 445890e3c864..53cb4d350dbe 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateAutomationRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateAutomationRequestOrBuilder.java @@ -28,11 +28,11 @@ public interface UpdateAutomationRequestOrBuilder * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `Automation` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `Automation` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -45,11 +45,11 @@ public interface UpdateAutomationRequestOrBuilder * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `Automation` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `Automation` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -62,11 +62,11 @@ public interface UpdateAutomationRequestOrBuilder * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `Automation` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `Automation` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateCustomTargetTypeRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateCustomTargetTypeRequest.java index 89518744ec53..a9b92b18a82a 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateCustomTargetTypeRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateCustomTargetTypeRequest.java @@ -70,11 +70,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `CustomTargetType` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `CustomTargetType` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -90,11 +90,11 @@ public boolean hasUpdateMask() { * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `CustomTargetType` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `CustomTargetType` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -110,11 +110,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `CustomTargetType` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `CustomTargetType` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -769,11 +769,11 @@ public Builder mergeFrom( * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `CustomTargetType` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `CustomTargetType` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -788,11 +788,11 @@ public boolean hasUpdateMask() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `CustomTargetType` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `CustomTargetType` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -813,11 +813,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `CustomTargetType` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `CustomTargetType` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -840,11 +840,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `CustomTargetType` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `CustomTargetType` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -864,11 +864,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `CustomTargetType` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `CustomTargetType` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -896,11 +896,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `CustomTargetType` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `CustomTargetType` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -920,11 +920,11 @@ public Builder clearUpdateMask() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `CustomTargetType` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `CustomTargetType` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -939,11 +939,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `CustomTargetType` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `CustomTargetType` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -962,11 +962,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `CustomTargetType` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `CustomTargetType` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateCustomTargetTypeRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateCustomTargetTypeRequestOrBuilder.java index c3fddc769109..847b127c79f0 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateCustomTargetTypeRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateCustomTargetTypeRequestOrBuilder.java @@ -28,11 +28,11 @@ public interface UpdateCustomTargetTypeRequestOrBuilder * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `CustomTargetType` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `CustomTargetType` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -45,11 +45,11 @@ public interface UpdateCustomTargetTypeRequestOrBuilder * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `CustomTargetType` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `CustomTargetType` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -62,11 +62,11 @@ public interface UpdateCustomTargetTypeRequestOrBuilder * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `CustomTargetType` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `CustomTargetType` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequest.java index 4ca95c6603dc..afc7e90fb1fd 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequest.java @@ -70,11 +70,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `DeliveryPipeline` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `DeliveryPipeline` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -90,11 +90,11 @@ public boolean hasUpdateMask() { * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `DeliveryPipeline` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `DeliveryPipeline` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -110,11 +110,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `DeliveryPipeline` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `DeliveryPipeline` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -769,11 +769,11 @@ public Builder mergeFrom( * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `DeliveryPipeline` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `DeliveryPipeline` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -788,11 +788,11 @@ public boolean hasUpdateMask() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `DeliveryPipeline` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `DeliveryPipeline` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -813,11 +813,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `DeliveryPipeline` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `DeliveryPipeline` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -840,11 +840,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `DeliveryPipeline` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `DeliveryPipeline` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -864,11 +864,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `DeliveryPipeline` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `DeliveryPipeline` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -896,11 +896,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `DeliveryPipeline` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `DeliveryPipeline` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -920,11 +920,11 @@ public Builder clearUpdateMask() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `DeliveryPipeline` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `DeliveryPipeline` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -939,11 +939,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `DeliveryPipeline` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `DeliveryPipeline` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -962,11 +962,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * `DeliveryPipeline` resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `DeliveryPipeline` resource. The fields specified in the
        +     * update_mask are relative to the resource, not the full request. A field
        +     * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +     * then all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequestOrBuilder.java index 11ea332e18e2..1b92ddf207db 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequestOrBuilder.java @@ -28,11 +28,11 @@ public interface UpdateDeliveryPipelineRequestOrBuilder * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `DeliveryPipeline` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `DeliveryPipeline` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -45,11 +45,11 @@ public interface UpdateDeliveryPipelineRequestOrBuilder * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `DeliveryPipeline` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `DeliveryPipeline` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -62,11 +62,11 @@ public interface UpdateDeliveryPipelineRequestOrBuilder * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * `DeliveryPipeline` resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `DeliveryPipeline` resource. The fields specified in the
        +   * update_mask are relative to the resource, not the full request. A field
        +   * will be overwritten if it's in the mask. If the user doesn't provide a mask
        +   * then all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequest.java index 0bc258807156..36fe244522ea 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequest.java @@ -70,11 +70,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * Target resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `Target` resource. The fields specified in the update_mask
        +   * are relative to the resource, not the full request. A field will be
        +   * overwritten if it's in the mask. If the user doesn't provide a mask then
        +   * all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -90,11 +90,11 @@ public boolean hasUpdateMask() { * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * Target resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `Target` resource. The fields specified in the update_mask
        +   * are relative to the resource, not the full request. A field will be
        +   * overwritten if it's in the mask. If the user doesn't provide a mask then
        +   * all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -110,11 +110,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * Target resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `Target` resource. The fields specified in the update_mask
        +   * are relative to the resource, not the full request. A field will be
        +   * overwritten if it's in the mask. If the user doesn't provide a mask then
        +   * all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -758,11 +758,11 @@ public Builder mergeFrom( * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * Target resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Target` resource. The fields specified in the update_mask
        +     * are relative to the resource, not the full request. A field will be
        +     * overwritten if it's in the mask. If the user doesn't provide a mask then
        +     * all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -777,11 +777,11 @@ public boolean hasUpdateMask() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * Target resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Target` resource. The fields specified in the update_mask
        +     * are relative to the resource, not the full request. A field will be
        +     * overwritten if it's in the mask. If the user doesn't provide a mask then
        +     * all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -802,11 +802,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * Target resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Target` resource. The fields specified in the update_mask
        +     * are relative to the resource, not the full request. A field will be
        +     * overwritten if it's in the mask. If the user doesn't provide a mask then
        +     * all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -829,11 +829,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * Target resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Target` resource. The fields specified in the update_mask
        +     * are relative to the resource, not the full request. A field will be
        +     * overwritten if it's in the mask. If the user doesn't provide a mask then
        +     * all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -853,11 +853,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * Target resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Target` resource. The fields specified in the update_mask
        +     * are relative to the resource, not the full request. A field will be
        +     * overwritten if it's in the mask. If the user doesn't provide a mask then
        +     * all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -885,11 +885,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * Target resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Target` resource. The fields specified in the update_mask
        +     * are relative to the resource, not the full request. A field will be
        +     * overwritten if it's in the mask. If the user doesn't provide a mask then
        +     * all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -909,11 +909,11 @@ public Builder clearUpdateMask() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * Target resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Target` resource. The fields specified in the update_mask
        +     * are relative to the resource, not the full request. A field will be
        +     * overwritten if it's in the mask. If the user doesn't provide a mask then
        +     * all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -928,11 +928,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * Target resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Target` resource. The fields specified in the update_mask
        +     * are relative to the resource, not the full request. A field will be
        +     * overwritten if it's in the mask. If the user doesn't provide a mask then
        +     * all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -951,11 +951,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
        -     * Required. Field mask is used to specify the fields to be overwritten in the
        -     * Target resource by the update.
        -     * The fields specified in the update_mask are relative to the resource, not
        -     * the full request. A field will be overwritten if it's in the mask. If the
        -     * user doesn't provide a mask then all fields are overwritten.
        +     * Required. Field mask is used to specify the fields to be overwritten by the
        +     * update in the `Target` resource. The fields specified in the update_mask
        +     * are relative to the resource, not the full request. A field will be
        +     * overwritten if it's in the mask. If the user doesn't provide a mask then
        +     * all fields are overwritten.
              * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequestOrBuilder.java index 00d8283fdc1a..daa1492ab7c3 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequestOrBuilder.java @@ -28,11 +28,11 @@ public interface UpdateTargetRequestOrBuilder * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * Target resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `Target` resource. The fields specified in the update_mask
        +   * are relative to the resource, not the full request. A field will be
        +   * overwritten if it's in the mask. If the user doesn't provide a mask then
        +   * all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -45,11 +45,11 @@ public interface UpdateTargetRequestOrBuilder * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * Target resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `Target` resource. The fields specified in the update_mask
        +   * are relative to the resource, not the full request. A field will be
        +   * overwritten if it's in the mask. If the user doesn't provide a mask then
        +   * all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -62,11 +62,11 @@ public interface UpdateTargetRequestOrBuilder * * *
        -   * Required. Field mask is used to specify the fields to be overwritten in the
        -   * Target resource by the update.
        -   * The fields specified in the update_mask are relative to the resource, not
        -   * the full request. A field will be overwritten if it's in the mask. If the
        -   * user doesn't provide a mask then all fields are overwritten.
        +   * Required. Field mask is used to specify the fields to be overwritten by the
        +   * update in the `Target` resource. The fields specified in the update_mask
        +   * are relative to the resource, not the full request. A field will be
        +   * overwritten if it's in the mask. If the user doesn't provide a mask then
        +   * all fields are overwritten.
            * 
        * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto index d19f036cceb6..4563177e20b1 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto @@ -665,6 +665,8 @@ message CanaryDeployment { // Required. The percentage based deployments that will occur as a part of a // `Rollout`. List is expected in ascending order and each integer n is // 0 <= n < 100. + // If the GatewayServiceMesh is configured for Kubernetes, then the range for + // n is 0 <= n <= 100. repeated int32 percentages = 1 [(google.api.field_behavior) = REQUIRED]; // Whether to run verify tests after each percentage deployment. @@ -744,6 +746,10 @@ message KubernetesConfig { // cutback time. google.protobuf.Duration stable_cutback_duration = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The label to use when selecting Pods for the Deployment and + // Service resources. This label must already be present in both resources. + string pod_selector_label = 6 [(google.api.field_behavior) = OPTIONAL]; } // Information about the Kubernetes Service networking configuration. @@ -761,6 +767,10 @@ message KubernetesConfig { // Deployment has on the cluster. bool disable_pod_overprovisioning = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The label to use when selecting Pods for the Deployment + // resource. This label must already be present in the Deployment. + string pod_selector_label = 4 [(google.api.field_behavior) = OPTIONAL]; } // The service definition configuration. @@ -923,9 +933,8 @@ message GetDeliveryPipelineRequest { // The request object for `CreateDeliveryPipeline`. message CreateDeliveryPipelineRequest { - // Required. The parent collection in which the `DeliveryPipeline` should be - // created. Format should be - // `projects/{project_id}/locations/{location_name}`. + // Required. The parent collection in which the `DeliveryPipeline` must be + // created. The format is `projects/{project_id}/locations/{location_name}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -962,11 +971,11 @@ message CreateDeliveryPipelineRequest { // The request object for `UpdateDeliveryPipeline`. message UpdateDeliveryPipelineRequest { - // Required. Field mask is used to specify the fields to be overwritten in the - // `DeliveryPipeline` resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it's in the mask. If the - // user doesn't provide a mask then all fields are overwritten. + // Required. Field mask is used to specify the fields to be overwritten by the + // update in the `DeliveryPipeline` resource. The fields specified in the + // update_mask are relative to the resource, not the full request. A field + // will be overwritten if it's in the mask. If the user doesn't provide a mask + // then all fields are overwritten. google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; @@ -1000,7 +1009,7 @@ message UpdateDeliveryPipelineRequest { // The request object for `DeleteDeliveryPipeline`. message DeleteDeliveryPipelineRequest { - // Required. The name of the `DeliveryPipeline` to delete. Format should be + // Required. The name of the `DeliveryPipeline` to delete. The format is // `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -1055,8 +1064,8 @@ message RollbackTargetConfig { // The request object for `RollbackTarget`. message RollbackTargetRequest { - // Required. The `DeliveryPipeline` for which the rollback `Rollout` should be - // created. Format should be + // Required. The `DeliveryPipeline` for which the rollback `Rollout` must be + // created. The format is // `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -1313,6 +1322,11 @@ message GkeCluster { // Only specify this option when `cluster` is a [private GKE // cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). bool internal_ip = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, used to configure a + // [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) + // to the Kubernetes server. + string proxy_url = 3 [(google.api.field_behavior) = OPTIONAL]; } // Information specifying an Anthos Cluster. @@ -1418,8 +1432,8 @@ message GetTargetRequest { // The request object for `CreateTarget`. message CreateTargetRequest { - // Required. The parent collection in which the `Target` should be created. - // Format should be + // Required. The parent collection in which the `Target` must be created. + // The format is // `projects/{project_id}/locations/{location_name}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -1456,11 +1470,11 @@ message CreateTargetRequest { // The request object for `UpdateTarget`. message UpdateTargetRequest { - // Required. Field mask is used to specify the fields to be overwritten in the - // Target resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it's in the mask. If the - // user doesn't provide a mask then all fields are overwritten. + // Required. Field mask is used to specify the fields to be overwritten by the + // update in the `Target` resource. The fields specified in the update_mask + // are relative to the resource, not the full request. A field will be + // overwritten if it's in the mask. If the user doesn't provide a mask then + // all fields are overwritten. google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; @@ -1493,7 +1507,7 @@ message UpdateTargetRequest { // The request object for `DeleteTarget`. message DeleteTargetRequest { - // Required. The name of the `Target` to delete. Format should be + // Required. The name of the `Target` to delete. The format is // `projects/{project_id}/locations/{location_name}/targets/{target_name}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -1736,9 +1750,8 @@ message GetCustomTargetTypeRequest { // The request object for `CreateCustomTargetType`. message CreateCustomTargetTypeRequest { - // Required. The parent collection in which the `CustomTargetType` should be - // created. Format should be - // `projects/{project_id}/locations/{location_name}`. + // Required. The parent collection in which the `CustomTargetType` must be + // created. The format is `projects/{project_id}/locations/{location_name}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1775,11 +1788,11 @@ message CreateCustomTargetTypeRequest { // The request object for `UpdateCustomTargetType`. message UpdateCustomTargetTypeRequest { - // Required. Field mask is used to specify the fields to be overwritten in the - // `CustomTargetType` resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it's in the mask. If the - // user doesn't provide a mask then all fields are overwritten. + // Required. Field mask is used to specify the fields to be overwritten by the + // update in the `CustomTargetType` resource. The fields specified in the + // update_mask are relative to the resource, not the full request. A field + // will be overwritten if it's in the mask. If the user doesn't provide a mask + // then all fields are overwritten. google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; @@ -1855,6 +1868,7 @@ message DeleteCustomTargetTypeRequest { message TargetAttribute { // ID of the `Target`. The value of this field could be one of the // following: + // // * The last segment of a target name. It only needs the ID to determine // which target is being referred to // * "*", all targets in a location. @@ -2246,8 +2260,8 @@ message GetReleaseRequest { // The request object for `CreateRelease`, message CreateReleaseRequest { - // Required. The parent collection in which the `Release` should be created. - // Format should be + // Required. The parent collection in which the `Release` is created. + // The format is // `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -2549,16 +2563,16 @@ message CustomTargetDeployMetadata { // AutomationRolloutMetadata contains Automation-related actions that // were performed on a rollout. message AutomationRolloutMetadata { - // Output only. The ID of the AutomationRun initiated by a promote release + // Output only. The name of the AutomationRun initiated by a promote release // rule. string promote_automation_run = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The IDs of the AutomationRuns initiated by an advance rollout - // rule. + // Output only. The names of the AutomationRuns initiated by an advance + // rollout rule. repeated string advance_automation_runs = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The IDs of the AutomationRuns initiated by a repair rollout + // Output only. The names of the AutomationRuns initiated by a repair rollout // rule. repeated string repair_automation_runs = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -2804,8 +2818,8 @@ message GetRolloutRequest { // CreateRolloutRequest is the request object used by `CreateRollout`. message CreateRolloutRequest { - // Required. The parent collection in which the `Rollout` should be created. - // Format should be + // Required. The parent collection in which the `Rollout` must be created. + // The format is // `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -3520,8 +3534,8 @@ message AutomationRule { } } -// `PromoteRelease` rule will automatically promote a release from the current -// target to a specified target. +// The `PromoteRelease` rule will automatically promote a release from the +// current target to a specified target. message PromoteReleaseRule { // Required. ID of the rule. This id must be unique in the `Automation` // resource to which this rule belongs. The format is @@ -3582,14 +3596,6 @@ message RepairRolloutRule { // `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. string id = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. Phases within which jobs are subject to automatic repair actions - // on failure. Proceeds only after phase name matched any one in the list, or - // for all phases if unspecified. This value must consist of lower-case - // letters, numbers, and hyphens, start with a letter and end with a letter or - // a number, and have a max length of 63 characters. In other words, it must - // match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - repeated string source_phases = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Jobs to repair. Proceeds only after job name matched any one in // the list, or for all jobs if unspecified or empty. The phase that includes // the job must match the phase ID specified in `source_phase`. This value @@ -3599,48 +3605,11 @@ message RepairRolloutRule { // `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. repeated string jobs = 3 [(google.api.field_behavior) = OPTIONAL]; - // Required. Defines the types of automatic repair actions for failed jobs. - repeated RepairMode repair_modes = 4 [(google.api.field_behavior) = REQUIRED]; - // Output only. Information around the state of the 'Automation' rule. AutomationRuleCondition condition = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Configuration of the repair action. -message RepairMode { - // The repair action to perform. - oneof mode { - // Optional. Retries a failed job. - Retry retry = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Rolls back a `Rollout`. - Rollback rollback = 2 [(google.api.field_behavior) = OPTIONAL]; - } -} - -// Retries the failed job. -message Retry { - // Required. Total number of retries. Retry is skipped if set to 0; The - // minimum value is 1, and the maximum value is 10. - int64 attempts = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. How long to wait for the first retry. Default is 0, and the - // maximum value is 14d. - google.protobuf.Duration wait = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The pattern of how wait time will be increased. Default is - // linear. Backoff mode will be ignored if `wait` is 0. - BackoffMode backoff_mode = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// Rolls back a `Rollout`. -message Rollback { - // Optional. The starting phase ID for the `Rollout`. If unspecified, the - // `Rollout` will start in the stable phase. - string destination_phase = 1 [(google.api.field_behavior) = OPTIONAL]; -} - // `AutomationRuleCondition` contains conditions relevant to an // `Automation` rule. message AutomationRuleCondition { @@ -3651,8 +3620,8 @@ message AutomationRuleCondition { // The request object for `CreateAutomation`. message CreateAutomationRequest { - // Required. The parent collection in which the `Automation` should be - // created. Format should be + // Required. The parent collection in which the `Automation` must be created. + // The format is // `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -3689,11 +3658,11 @@ message CreateAutomationRequest { // The request object for `UpdateAutomation`. message UpdateAutomationRequest { - // Required. Field mask is used to specify the fields to be overwritten in the - // `Automation` resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it's in the mask. If the - // user doesn't provide a mask then all fields are overwritten. + // Required. Field mask is used to specify the fields to be overwritten by the + // update in the `Automation` resource. The fields specified in the + // update_mask are relative to the resource, not the full request. A field + // will be overwritten if it's in the mask. If the user doesn't provide a mask + // then all fields are overwritten. google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; @@ -3726,7 +3695,7 @@ message UpdateAutomationRequest { // The request object for `DeleteAutomation`. message DeleteAutomationRequest { - // Required. The name of the `Automation` to delete. Format should be + // Required. The name of the `Automation` to delete. The format is // `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -3852,6 +3821,9 @@ message AutomationRun { // The `AutomationRun` is pending. PENDING = 5; + + // The `AutomationRun` was aborted. + ABORTED = 6; } // Output only. Name of the `AutomationRun`. Format is @@ -3962,19 +3934,23 @@ message RepairRolloutOperation { // Output only. The name of the rollout that initiates the `AutomationRun`. string rollout = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The index of the current repair action in the repair sequence. - int64 current_repair_mode_index = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Records of the repair attempts. Each repair phase may have // multiple retry attempts or single rollback attempt. repeated RepairPhase repair_phases = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The phase ID of the phase that includes the job being + // repaired. + string phase_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The job ID for the Job to repair. + string job_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } // RepairPhase tracks the repair attempts that have been made for -// each `RepairMode` specified in the `Automation` resource. +// each `RepairPhaseConfig` specified in the `Automation` resource. message RepairPhase { + // The `RepairPhase` type and the information for that type. oneof repair_phase { // Output only. Records of the retry attempts for retry repair mode. RetryPhase retry = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -3994,12 +3970,6 @@ message RetryPhase { // calculated. BackoffMode backoff_mode = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The phase ID of the phase that includes the job being retried. - string phase_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The job ID for the Job to retry. - string job_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Detail of a retry action. repeated RetryAttempt attempts = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -4155,6 +4125,6 @@ enum RepairState { // The `repair` action is pending. REPAIR_STATE_PENDING = 5; - // The `repair` action was skipped. - REPAIR_STATE_SKIPPED = 6; + // The `repair` action was aborted. + REPAIR_STATE_ABORTED = 7; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/customtargettype_notification_payload.proto b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/customtargettype_notification_payload.proto new file mode 100644 index 000000000000..9403a625db45 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/customtargettype_notification_payload.proto @@ -0,0 +1,41 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.deploy.v1; + +import "google/cloud/deploy/v1/log_enums.proto"; + +option go_package = "cloud.google.com/go/deploy/apiv1/deploypb;deploypb"; +option java_multiple_files = true; +option java_outer_classname = "CustomTargetTypeNotificationPayloadProto"; +option java_package = "com.google.cloud.deploy.v1"; + +// Payload proto for "clouddeploy.googleapis.com/customtargettype_notification" +// Platform Log event that describes the failure to send a custom target type +// status change Pub/Sub notification. +message CustomTargetTypeNotificationEvent { + // Debug message for when a notification fails to send. + string message = 1; + + // Unique identifier of the `CustomTargetType`. + string custom_target_type_uid = 4; + + // The name of the `CustomTargetType`. + string custom_target_type = 2; + + // Type of this notification, e.g. for a Pub/Sub failure. + Type type = 3; +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/deploypolicy_notification_payload.proto b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/deploypolicy_notification_payload.proto new file mode 100644 index 000000000000..a8572936b04d --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/deploypolicy_notification_payload.proto @@ -0,0 +1,42 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.deploy.v1; + +import "google/cloud/deploy/v1/log_enums.proto"; + +option go_package = "cloud.google.com/go/deploy/apiv1/deploypb;deploypb"; +option java_multiple_files = true; +option java_outer_classname = "DeployPolicyNotificationPayloadProto"; +option java_package = "com.google.cloud.deploy.v1"; + +// Payload proto for "clouddeploy.googleapis.com/deploypolicy_notification". +// Platform Log event that describes the failure to send a pub/sub notification +// when there is a DeployPolicy status change. +message DeployPolicyNotificationEvent { + // Debug message for when a deploy policy fails to send a pub/sub + // notification. + string message = 1; + + // The name of the `DeployPolicy`. + string deploy_policy = 2; + + // Unique identifier of the deploy policy. + string deploy_policy_uid = 3; + + // Type of this notification, e.g. for a Pub/Sub failure. + Type type = 4; +} diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index 12dc1447b947..321444a799ee 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/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.cloud/google-cloud-developerconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.3.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-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStubSettings.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStubSettings.java index 8a1318ec4c33..16344d866607 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStubSettings.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStubSettings.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; @@ -651,6 +652,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "developerconnect.googleapis.com:443"; } diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json b/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json index 8ccb7e86d358..aab7fb64d4e5 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json +++ b/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.Connection", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 465b7044884d..1835c3fe6ca8 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/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.cloud/google-cloud-dialogflow-cx.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.57.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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java index 3f49b66ab622..d4e50b3675e9 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.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; @@ -365,6 +366,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java index 04568d7aad61..3be67ef6c16a 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.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; @@ -273,6 +274,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java index a98d136f3534..60bbe7ae26ee 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.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; @@ -276,6 +277,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java index cee6517d2451..e7cf8a55b869 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.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; @@ -341,6 +342,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java index 13c51d984f3e..2d12626d165d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.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; @@ -541,6 +542,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java index 0319523695a8..1710197e501e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.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; @@ -312,6 +313,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java index cdff5d870d5a..5bab70d31cb0 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.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 "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java index 42811ae521b2..edb487f11f32 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.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; @@ -295,6 +296,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java index 8c5d995a3e78..b44a7b6dfd3a 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.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; @@ -333,6 +334,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java index f180fe4fd5a7..f26a078ebfd0 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.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; @@ -292,6 +293,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java index 750c4e403256..a0649e58a666 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.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; @@ -320,6 +321,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java index 7deff72a3102..59cd67b8d139 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.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; @@ -325,6 +326,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java index f8bbb96bb396..74da627297c3 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.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; @@ -253,6 +254,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java index c543c0edcdca..d762ef601c15 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.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; @@ -465,6 +466,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java index 802298c5a99a..b903dc40672b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.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; @@ -331,6 +332,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java index bdc48f440764..21dea06c41d5 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.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; @@ -332,6 +333,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java index ede4ef87e07c..1a35b4506f45 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.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; @@ -293,6 +294,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java index 1d4437e29d62..678644c87654 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.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; @@ -366,6 +367,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java index 25e53a77a0b4..9c2a111b306f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.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; @@ -274,6 +275,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java index 651ac4468d35..c55d62de762b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.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; @@ -291,6 +292,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java index d55a73e689d7..a85e33f50039 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.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; @@ -277,6 +278,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java index 296fac8ff763..e92e795b7e83 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.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; @@ -342,6 +343,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java index c7ce1fb18ed3..e7da6cb6d8e7 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.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; @@ -542,6 +543,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java index 27193224c689..3f928c6de856 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.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; @@ -294,6 +295,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java index 6009e1cdd696..d1e8c54ffd64 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.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; @@ -313,6 +314,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java index 296d33369c37..e4183323328c 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.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; @@ -361,6 +362,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java index 37224474ded4..157203d4be04 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.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; @@ -296,6 +297,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java index 4371fe584e68..76f059e5a5f9 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.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; @@ -334,6 +335,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java index ff9f91b30e01..c87f21791f82 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.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; @@ -293,6 +294,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java index 902255d9a3b5..f8dea5755089 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.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; @@ -403,6 +404,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java index 8b2aa9756957..9306ef895924 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.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; @@ -321,6 +322,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java index 993f3d622da0..e0fef6d0dcc4 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.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; @@ -326,6 +327,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java index a92d3c8ba815..3c3c43797df9 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.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; @@ -254,6 +255,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java index a2f8f4a3c088..dc3b48235e63 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.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; @@ -466,6 +467,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java index dd7bd90874db..0b0d9b94650e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.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; @@ -315,6 +316,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java index 8754ca553c26..861d3b5d8f53 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.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; @@ -332,6 +333,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java index d1d1ad6be4c2..ca453574dd8d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.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; @@ -333,6 +334,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java index 044f2b535639..f980b18a1a09 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.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; @@ -294,6 +295,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json index a9c8e624df8a..6b76d2732215 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json @@ -431,6 +431,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3.AdvancedSettings$SpeechSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.AdvancedSettings$SpeechSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3.Agent", "queryAllDeclaredConstructors": true, @@ -521,6 +539,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3.Agent$PersonalizationSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.Agent$PersonalizationSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3.AgentValidationResult", "queryAllDeclaredConstructors": true, @@ -1241,6 +1277,186 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$AnswerGenerationModelCallSignals", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$AnswerGenerationModelCallSignals$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$AnswerPart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$AnswerPart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$CitedSnippet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$CitedSnippet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$GroundingSignals", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$GroundingSignals$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$GroundingSignals$GroundingDecision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$GroundingSignals$GroundingScoreBucket", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$RewriterModelCallSignals", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$RewriterModelCallSignals$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$SafetySignals", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$SafetySignals$BannedPhraseMatch", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$SafetySignals$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$SafetySignals$SafetyDecision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$SearchSnippet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals$SearchSnippet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3.DataStoreType", "queryAllDeclaredConstructors": true, @@ -2285,6 +2501,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3.Flow$MultiLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.Flow$MultiLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3.FlowImportStrategy", "queryAllDeclaredConstructors": true, @@ -3464,6 +3698,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3.LanguageInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.LanguageInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3.ListAgentsRequest", "queryAllDeclaredConstructors": true, @@ -6101,6 +6353,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3.Webhook$GenericWebService$OAuthConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.Webhook$GenericWebService$OAuthConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.Webhook$GenericWebService$ServiceAgentAuth", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3.Webhook$GenericWebService$WebhookType", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json index f376a5d09244..ce5578a6aa3d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json @@ -6776,6 +6776,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.Tool$ServiceDirectoryConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.Tool$ServiceDirectoryConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3beta1.Tool$TLSConfig", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientHttpJsonTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientHttpJsonTest.java index 32851a5007c7..c88b86752b9c 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientHttpJsonTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientHttpJsonTest.java @@ -204,12 +204,14 @@ public void getAgentTest() throws Exception { .toString()) .setEnableStackdriverLogging(true) .setEnableSpellCorrection(true) + .setEnableMultiLanguageTraining(true) .setLocked(true) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build()) .setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build()) .setGenAppBuilderSettings(Agent.GenAppBuilderSettings.newBuilder().build()) .setAnswerFeedbackSettings(Agent.AnswerFeedbackSettings.newBuilder().build()) + .setPersonalizationSettings(Agent.PersonalizationSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -267,12 +269,14 @@ public void getAgentTest2() throws Exception { .toString()) .setEnableStackdriverLogging(true) .setEnableSpellCorrection(true) + .setEnableMultiLanguageTraining(true) .setLocked(true) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build()) .setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build()) .setGenAppBuilderSettings(Agent.GenAppBuilderSettings.newBuilder().build()) .setAnswerFeedbackSettings(Agent.AnswerFeedbackSettings.newBuilder().build()) + .setPersonalizationSettings(Agent.PersonalizationSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -330,12 +334,14 @@ public void createAgentTest() throws Exception { .toString()) .setEnableStackdriverLogging(true) .setEnableSpellCorrection(true) + .setEnableMultiLanguageTraining(true) .setLocked(true) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build()) .setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build()) .setGenAppBuilderSettings(Agent.GenAppBuilderSettings.newBuilder().build()) .setAnswerFeedbackSettings(Agent.AnswerFeedbackSettings.newBuilder().build()) + .setPersonalizationSettings(Agent.PersonalizationSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -395,12 +401,14 @@ public void createAgentTest2() throws Exception { .toString()) .setEnableStackdriverLogging(true) .setEnableSpellCorrection(true) + .setEnableMultiLanguageTraining(true) .setLocked(true) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build()) .setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build()) .setGenAppBuilderSettings(Agent.GenAppBuilderSettings.newBuilder().build()) .setAnswerFeedbackSettings(Agent.AnswerFeedbackSettings.newBuilder().build()) + .setPersonalizationSettings(Agent.PersonalizationSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -460,12 +468,14 @@ public void updateAgentTest() throws Exception { .toString()) .setEnableStackdriverLogging(true) .setEnableSpellCorrection(true) + .setEnableMultiLanguageTraining(true) .setLocked(true) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build()) .setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build()) .setGenAppBuilderSettings(Agent.GenAppBuilderSettings.newBuilder().build()) .setAnswerFeedbackSettings(Agent.AnswerFeedbackSettings.newBuilder().build()) + .setPersonalizationSettings(Agent.PersonalizationSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -485,12 +495,14 @@ public void updateAgentTest() throws Exception { .toString()) .setEnableStackdriverLogging(true) .setEnableSpellCorrection(true) + .setEnableMultiLanguageTraining(true) .setLocked(true) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build()) .setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build()) .setGenAppBuilderSettings(Agent.GenAppBuilderSettings.newBuilder().build()) .setAnswerFeedbackSettings(Agent.AnswerFeedbackSettings.newBuilder().build()) + .setPersonalizationSettings(Agent.PersonalizationSettings.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -536,12 +548,14 @@ public void updateAgentExceptionTest() throws Exception { .toString()) .setEnableStackdriverLogging(true) .setEnableSpellCorrection(true) + .setEnableMultiLanguageTraining(true) .setLocked(true) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build()) .setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build()) .setGenAppBuilderSettings(Agent.GenAppBuilderSettings.newBuilder().build()) .setAnswerFeedbackSettings(Agent.AnswerFeedbackSettings.newBuilder().build()) + .setPersonalizationSettings(Agent.PersonalizationSettings.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateAgent(agent, updateMask); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientTest.java index 41ded7e9f4e0..0249e5171018 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientTest.java @@ -200,12 +200,14 @@ public void getAgentTest() throws Exception { .toString()) .setEnableStackdriverLogging(true) .setEnableSpellCorrection(true) + .setEnableMultiLanguageTraining(true) .setLocked(true) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build()) .setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build()) .setGenAppBuilderSettings(Agent.GenAppBuilderSettings.newBuilder().build()) .setAnswerFeedbackSettings(Agent.AnswerFeedbackSettings.newBuilder().build()) + .setPersonalizationSettings(Agent.PersonalizationSettings.newBuilder().build()) .build(); mockAgents.addResponse(expectedResponse); @@ -257,12 +259,14 @@ public void getAgentTest2() throws Exception { .toString()) .setEnableStackdriverLogging(true) .setEnableSpellCorrection(true) + .setEnableMultiLanguageTraining(true) .setLocked(true) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build()) .setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build()) .setGenAppBuilderSettings(Agent.GenAppBuilderSettings.newBuilder().build()) .setAnswerFeedbackSettings(Agent.AnswerFeedbackSettings.newBuilder().build()) + .setPersonalizationSettings(Agent.PersonalizationSettings.newBuilder().build()) .build(); mockAgents.addResponse(expectedResponse); @@ -314,12 +318,14 @@ public void createAgentTest() throws Exception { .toString()) .setEnableStackdriverLogging(true) .setEnableSpellCorrection(true) + .setEnableMultiLanguageTraining(true) .setLocked(true) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build()) .setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build()) .setGenAppBuilderSettings(Agent.GenAppBuilderSettings.newBuilder().build()) .setAnswerFeedbackSettings(Agent.AnswerFeedbackSettings.newBuilder().build()) + .setPersonalizationSettings(Agent.PersonalizationSettings.newBuilder().build()) .build(); mockAgents.addResponse(expectedResponse); @@ -374,12 +380,14 @@ public void createAgentTest2() throws Exception { .toString()) .setEnableStackdriverLogging(true) .setEnableSpellCorrection(true) + .setEnableMultiLanguageTraining(true) .setLocked(true) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build()) .setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build()) .setGenAppBuilderSettings(Agent.GenAppBuilderSettings.newBuilder().build()) .setAnswerFeedbackSettings(Agent.AnswerFeedbackSettings.newBuilder().build()) + .setPersonalizationSettings(Agent.PersonalizationSettings.newBuilder().build()) .build(); mockAgents.addResponse(expectedResponse); @@ -434,12 +442,14 @@ public void updateAgentTest() throws Exception { .toString()) .setEnableStackdriverLogging(true) .setEnableSpellCorrection(true) + .setEnableMultiLanguageTraining(true) .setLocked(true) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build()) .setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build()) .setGenAppBuilderSettings(Agent.GenAppBuilderSettings.newBuilder().build()) .setAnswerFeedbackSettings(Agent.AnswerFeedbackSettings.newBuilder().build()) + .setPersonalizationSettings(Agent.PersonalizationSettings.newBuilder().build()) .build(); mockAgents.addResponse(expectedResponse); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientHttpJsonTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientHttpJsonTest.java index 8dc520e919ad..e1d2b84a9b21 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientHttpJsonTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientHttpJsonTest.java @@ -100,6 +100,8 @@ public void createFlowTest() throws Exception { .setNluSettings(NluSettings.newBuilder().build()) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) + .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockService.addResponse(expectedResponse); @@ -154,6 +156,8 @@ public void createFlowTest2() throws Exception { .setNluSettings(NluSettings.newBuilder().build()) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) + .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockService.addResponse(expectedResponse); @@ -389,6 +393,8 @@ public void getFlowTest() throws Exception { .setNluSettings(NluSettings.newBuilder().build()) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) + .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockService.addResponse(expectedResponse); @@ -441,6 +447,8 @@ public void getFlowTest2() throws Exception { .setNluSettings(NluSettings.newBuilder().build()) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) + .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockService.addResponse(expectedResponse); @@ -494,6 +502,8 @@ public void updateFlowTest() throws Exception { .setNluSettings(NluSettings.newBuilder().build()) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) + .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockService.addResponse(expectedResponse); @@ -508,6 +518,8 @@ public void updateFlowTest() throws Exception { .setNluSettings(NluSettings.newBuilder().build()) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) + .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -548,6 +560,8 @@ public void updateFlowExceptionTest() throws Exception { .setNluSettings(NluSettings.newBuilder().build()) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) + .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateFlow(flow, updateMask); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java index 22e077c1abca..c9dfdc420c0c 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java @@ -107,6 +107,8 @@ public void createFlowTest() throws Exception { .setNluSettings(NluSettings.newBuilder().build()) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) + .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockFlows.addResponse(expectedResponse); @@ -156,6 +158,8 @@ public void createFlowTest2() throws Exception { .setNluSettings(NluSettings.newBuilder().build()) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) + .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockFlows.addResponse(expectedResponse); @@ -361,6 +365,8 @@ public void getFlowTest() throws Exception { .setNluSettings(NluSettings.newBuilder().build()) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) + .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockFlows.addResponse(expectedResponse); @@ -407,6 +413,8 @@ public void getFlowTest2() throws Exception { .setNluSettings(NluSettings.newBuilder().build()) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) + .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockFlows.addResponse(expectedResponse); @@ -453,6 +461,8 @@ public void updateFlowTest() throws Exception { .setNluSettings(NluSettings.newBuilder().build()) .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) + .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockFlows.addResponse(expectedResponse); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientHttpJsonTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientHttpJsonTest.java index 606af1c75135..14bad0d37f36 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientHttpJsonTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientHttpJsonTest.java @@ -101,6 +101,7 @@ public void createFlowTest() throws Exception { .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockService.addResponse(expectedResponse); @@ -156,6 +157,7 @@ public void createFlowTest2() throws Exception { .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockService.addResponse(expectedResponse); @@ -392,6 +394,7 @@ public void getFlowTest() throws Exception { .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockService.addResponse(expectedResponse); @@ -445,6 +448,7 @@ public void getFlowTest2() throws Exception { .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockService.addResponse(expectedResponse); @@ -499,6 +503,7 @@ public void updateFlowTest() throws Exception { .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockService.addResponse(expectedResponse); @@ -514,6 +519,7 @@ public void updateFlowTest() throws Exception { .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -555,6 +561,7 @@ public void updateFlowExceptionTest() throws Exception { .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateFlow(flow, updateMask); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java index ae678ecca6c3..654ad14c03dc 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java @@ -108,6 +108,7 @@ public void createFlowTest() throws Exception { .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockFlows.addResponse(expectedResponse); @@ -158,6 +159,7 @@ public void createFlowTest2() throws Exception { .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockFlows.addResponse(expectedResponse); @@ -364,6 +366,7 @@ public void getFlowTest() throws Exception { .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockFlows.addResponse(expectedResponse); @@ -411,6 +414,7 @@ public void getFlowTest2() throws Exception { .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockFlows.addResponse(expectedResponse); @@ -458,6 +462,7 @@ public void updateFlowTest() throws Exception { .setAdvancedSettings(AdvancedSettings.newBuilder().build()) .setKnowledgeConnectorSettings(KnowledgeConnectorSettings.newBuilder().build()) .setMultiLanguageSettings(Flow.MultiLanguageSettings.newBuilder().build()) + .setLocked(true) .build(); mockFlows.addResponse(expectedResponse); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettings.java index 759e3670561c..6923a4caf6c8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettings.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettings.java @@ -71,201 +71,411 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder.class); } - public interface DtmfSettingsOrBuilder + public interface SpeechSettingsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings) + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings) com.google.protobuf.MessageOrBuilder { /** * * *
        -     * If true, incoming audio is processed for DTMF (dual tone multi frequency)
        -     * events. For example, if the caller presses a button on their telephone
        -     * keypad and DTMF processing is enabled, Dialogflow will detect the
        -     * event (e.g. a "3" was pressed) in the incoming audio and pass the event
        -     * to the bot to drive business logic (e.g. when 3 is pressed, return the
        -     * account balance).
        +     * Sensitivity of the speech model that detects the end of speech.
        +     * Scale from 0 to 100.
              * 
        * - * bool enabled = 1; + * int32 endpointer_sensitivity = 1; * - * @return The enabled. + * @return The endpointerSensitivity. */ - boolean getEnabled(); + int getEndpointerSensitivity(); /** * * *
        -     * Max length of DTMF digits.
        +     * Timeout before detecting no speech.
              * 
        * - * int32 max_digits = 2; + * .google.protobuf.Duration no_speech_timeout = 2; * - * @return The maxDigits. + * @return Whether the noSpeechTimeout field is set. */ - int getMaxDigits(); + boolean hasNoSpeechTimeout(); + /** + * + * + *
        +     * Timeout before detecting no speech.
        +     * 
        + * + * .google.protobuf.Duration no_speech_timeout = 2; + * + * @return The noSpeechTimeout. + */ + com.google.protobuf.Duration getNoSpeechTimeout(); + /** + * + * + *
        +     * Timeout before detecting no speech.
        +     * 
        + * + * .google.protobuf.Duration no_speech_timeout = 2; + */ + com.google.protobuf.DurationOrBuilder getNoSpeechTimeoutOrBuilder(); /** * * *
        -     * The digit that terminates a DTMF digit sequence.
        +     * Use timeout based endpointing, interpreting endpointer sensitivy as
        +     * seconds of timeout value.
              * 
        * - * string finish_digit = 3; + * bool use_timeout_based_endpointing = 3; * - * @return The finishDigit. + * @return The useTimeoutBasedEndpointing. */ - java.lang.String getFinishDigit(); + boolean getUseTimeoutBasedEndpointing(); + /** * * *
        -     * The digit that terminates a DTMF digit sequence.
        +     * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +     * model will be selected for requests from its corresponding language.
        +     * For more information, see
        +     * [Speech
        +     * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
              * 
        * - * string finish_digit = 3; + * map<string, string> models = 5; + */ + int getModelsCount(); + /** * - * @return The bytes for finishDigit. + * + *
        +     * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +     * model will be selected for requests from its corresponding language.
        +     * For more information, see
        +     * [Speech
        +     * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
        +     * 
        + * + * map<string, string> models = 5; */ - com.google.protobuf.ByteString getFinishDigitBytes(); + boolean containsModels(java.lang.String key); + /** Use {@link #getModelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getModels(); + /** + * + * + *
        +     * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +     * model will be selected for requests from its corresponding language.
        +     * For more information, see
        +     * [Speech
        +     * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
        +     * 
        + * + * map<string, string> models = 5; + */ + java.util.Map getModelsMap(); + /** + * + * + *
        +     * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +     * model will be selected for requests from its corresponding language.
        +     * For more information, see
        +     * [Speech
        +     * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
        +     * 
        + * + * map<string, string> models = 5; + */ + /* nullable */ + java.lang.String getModelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
        +     * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +     * model will be selected for requests from its corresponding language.
        +     * For more information, see
        +     * [Speech
        +     * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
        +     * 
        + * + * map<string, string> models = 5; + */ + java.lang.String getModelsOrThrow(java.lang.String key); } /** * * *
        -   * Define behaviors for DTMF (dual tone multi frequency).
        +   * Define behaviors of speech to text detection.
            * 
        * - * Protobuf type {@code google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings} + * Protobuf type {@code google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings} */ - public static final class DtmfSettings extends com.google.protobuf.GeneratedMessageV3 + public static final class SpeechSettings extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings) - DtmfSettingsOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings) + SpeechSettingsOrBuilder { private static final long serialVersionUID = 0L; - // Use DtmfSettings.newBuilder() to construct. - private DtmfSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use SpeechSettings.newBuilder() to construct. + private SpeechSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DtmfSettings() { - finishDigit_ = ""; - } + private SpeechSettings() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DtmfSettings(); + return new SpeechSettings(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto - .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_descriptor; + .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetModels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto - .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_fieldAccessorTable + .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.class, - com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.Builder.class); + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.class, + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.Builder.class); } - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; + private int bitField0_; + public static final int ENDPOINTER_SENSITIVITY_FIELD_NUMBER = 1; + private int endpointerSensitivity_ = 0; /** * * *
        -     * If true, incoming audio is processed for DTMF (dual tone multi frequency)
        -     * events. For example, if the caller presses a button on their telephone
        -     * keypad and DTMF processing is enabled, Dialogflow will detect the
        -     * event (e.g. a "3" was pressed) in the incoming audio and pass the event
        -     * to the bot to drive business logic (e.g. when 3 is pressed, return the
        -     * account balance).
        +     * Sensitivity of the speech model that detects the end of speech.
        +     * Scale from 0 to 100.
              * 
        * - * bool enabled = 1; + * int32 endpointer_sensitivity = 1; * - * @return The enabled. + * @return The endpointerSensitivity. */ @java.lang.Override - public boolean getEnabled() { - return enabled_; + public int getEndpointerSensitivity() { + return endpointerSensitivity_; } - public static final int MAX_DIGITS_FIELD_NUMBER = 2; - private int maxDigits_ = 0; + public static final int NO_SPEECH_TIMEOUT_FIELD_NUMBER = 2; + private com.google.protobuf.Duration noSpeechTimeout_; /** * * *
        -     * Max length of DTMF digits.
        +     * Timeout before detecting no speech.
              * 
        * - * int32 max_digits = 2; + * .google.protobuf.Duration no_speech_timeout = 2; * - * @return The maxDigits. + * @return Whether the noSpeechTimeout field is set. */ @java.lang.Override - public int getMaxDigits() { - return maxDigits_; + public boolean hasNoSpeechTimeout() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * Timeout before detecting no speech.
        +     * 
        + * + * .google.protobuf.Duration no_speech_timeout = 2; + * + * @return The noSpeechTimeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getNoSpeechTimeout() { + return noSpeechTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : noSpeechTimeout_; + } + /** + * + * + *
        +     * Timeout before detecting no speech.
        +     * 
        + * + * .google.protobuf.Duration no_speech_timeout = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getNoSpeechTimeoutOrBuilder() { + return noSpeechTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : noSpeechTimeout_; } - public static final int FINISH_DIGIT_FIELD_NUMBER = 3; + public static final int USE_TIMEOUT_BASED_ENDPOINTING_FIELD_NUMBER = 3; + private boolean useTimeoutBasedEndpointing_ = false; + /** + * + * + *
        +     * Use timeout based endpointing, interpreting endpointer sensitivy as
        +     * seconds of timeout value.
        +     * 
        + * + * bool use_timeout_based_endpointing = 3; + * + * @return The useTimeoutBasedEndpointing. + */ + @java.lang.Override + public boolean getUseTimeoutBasedEndpointing() { + return useTimeoutBasedEndpointing_; + } + + public static final int MODELS_FIELD_NUMBER = 5; + + private static final class ModelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto + .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } @SuppressWarnings("serial") - private volatile java.lang.Object finishDigit_ = ""; + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { + if (models_ == null) { + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + } + return models_; + } + + public int getModelsCount() { + return internalGetModels().getMap().size(); + } /** * * *
        -     * The digit that terminates a DTMF digit sequence.
        +     * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +     * model will be selected for requests from its corresponding language.
        +     * For more information, see
        +     * [Speech
        +     * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
              * 
        * - * string finish_digit = 3; - * - * @return The finishDigit. + * map<string, string> models = 5; */ @java.lang.Override - public java.lang.String getFinishDigit() { - java.lang.Object ref = finishDigit_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - finishDigit_ = s; - return s; + public boolean containsModels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + return internalGetModels().getMap().containsKey(key); + } + /** Use {@link #getModelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getModels() { + return getModelsMap(); } /** * * *
        -     * The digit that terminates a DTMF digit sequence.
        +     * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +     * model will be selected for requests from its corresponding language.
        +     * For more information, see
        +     * [Speech
        +     * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
              * 
        * - * string finish_digit = 3; + * map<string, string> models = 5; + */ + @java.lang.Override + public java.util.Map getModelsMap() { + return internalGetModels().getMap(); + } + /** * - * @return The bytes for finishDigit. + * + *
        +     * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +     * model will be selected for requests from its corresponding language.
        +     * For more information, see
        +     * [Speech
        +     * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
        +     * 
        + * + * map<string, string> models = 5; */ @java.lang.Override - public com.google.protobuf.ByteString getFinishDigitBytes() { - java.lang.Object ref = finishDigit_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - finishDigit_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public /* nullable */ java.lang.String getModelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
        +     * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +     * model will be selected for requests from its corresponding language.
        +     * For more information, see
        +     * [Speech
        +     * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
        +     * 
        + * + * map<string, string> models = 5; + */ + @java.lang.Override + public java.lang.String getModelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + java.util.Map map = internalGetModels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); } private byte memoizedIsInitialized = -1; @@ -282,15 +492,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); + if (endpointerSensitivity_ != 0) { + output.writeInt32(1, endpointerSensitivity_); } - if (maxDigits_ != 0) { - output.writeInt32(2, maxDigits_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getNoSpeechTimeout()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finishDigit_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, finishDigit_); + if (useTimeoutBasedEndpointing_ != false) { + output.writeBool(3, useTimeoutBasedEndpointing_); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 5); getUnknownFields().writeTo(output); } @@ -300,14 +512,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + if (endpointerSensitivity_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, endpointerSensitivity_); } - if (maxDigits_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxDigits_); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNoSpeechTimeout()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finishDigit_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, finishDigit_); + if (useTimeoutBasedEndpointing_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(3, useTimeoutBasedEndpointing_); + } + for (java.util.Map.Entry entry : + internalGetModels().getMap().entrySet()) { + com.google.protobuf.MapEntry models__ = + ModelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, models__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -319,15 +542,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings)) { + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings)) { return super.equals(obj); } - com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings other = - (com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings) obj; + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings other = + (com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings) obj; - if (getEnabled() != other.getEnabled()) return false; - if (getMaxDigits() != other.getMaxDigits()) return false; - if (!getFinishDigit().equals(other.getFinishDigit())) return false; + if (getEndpointerSensitivity() != other.getEndpointerSensitivity()) return false; + if (hasNoSpeechTimeout() != other.hasNoSpeechTimeout()) return false; + if (hasNoSpeechTimeout()) { + if (!getNoSpeechTimeout().equals(other.getNoSpeechTimeout())) return false; + } + if (getUseTimeoutBasedEndpointing() != other.getUseTimeoutBasedEndpointing()) return false; + if (!internalGetModels().equals(other.internalGetModels())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,70 +566,77 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (37 * hash) + MAX_DIGITS_FIELD_NUMBER; - hash = (53 * hash) + getMaxDigits(); - hash = (37 * hash) + FINISH_DIGIT_FIELD_NUMBER; - hash = (53 * hash) + getFinishDigit().hashCode(); + hash = (37 * hash) + ENDPOINTER_SENSITIVITY_FIELD_NUMBER; + hash = (53 * hash) + getEndpointerSensitivity(); + if (hasNoSpeechTimeout()) { + hash = (37 * hash) + NO_SPEECH_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getNoSpeechTimeout().hashCode(); + } + hash = (37 * hash) + USE_TIMEOUT_BASED_ENDPOINTING_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseTimeoutBasedEndpointing()); + if (!internalGetModels().getMap().isEmpty()) { + hash = (37 * hash) + MODELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetModels().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -410,12 +644,12 @@ public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings pa PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -433,7 +667,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings prototype) { + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -452,64 +686,101 @@ protected Builder newBuilderForType( * * *
        -     * Define behaviors for DTMF (dual tone multi frequency).
        +     * Define behaviors of speech to text detection.
              * 
        * - * Protobuf type {@code google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings} + * Protobuf type {@code google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings) - com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettingsOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings) + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto - .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_descriptor; + .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetModels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableModels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto - .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_fieldAccessorTable + .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.class, - com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.Builder.class); + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.class, + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.Builder.class); } // Construct using - // com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.newBuilder() - private Builder() {} + // com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getNoSpeechTimeoutFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - enabled_ = false; - maxDigits_ = 0; - finishDigit_ = ""; + endpointerSensitivity_ = 0; + noSpeechTimeout_ = null; + if (noSpeechTimeoutBuilder_ != null) { + noSpeechTimeoutBuilder_.dispose(); + noSpeechTimeoutBuilder_ = null; + } + useTimeoutBasedEndpointing_ = false; + internalGetMutableModels().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto - .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_descriptor; + .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings getDefaultInstanceForType() { - return com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.getDefaultInstance(); + return com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings build() { - com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings result = buildPartial(); + public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings build() { + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -517,9 +788,9 @@ public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings build() { } @java.lang.Override - public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings buildPartial() { - com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings result = - new com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings(this); + public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings buildPartial() { + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings result = + new com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -528,17 +799,25 @@ public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings buildPart } private void buildPartial0( - com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings result) { + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; + result.endpointerSensitivity_ = endpointerSensitivity_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.maxDigits_ = maxDigits_; + result.noSpeechTimeout_ = + noSpeechTimeoutBuilder_ == null ? noSpeechTimeout_ : noSpeechTimeoutBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.finishDigit_ = finishDigit_; + result.useTimeoutBasedEndpointing_ = useTimeoutBasedEndpointing_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.models_ = internalGetModels(); + result.models_.makeImmutable(); } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -578,8 +857,9 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings) { - return mergeFrom((com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings) other); + if (other instanceof com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings) other); } else { super.mergeFrom(other); return this; @@ -587,21 +867,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings other) { + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings other) { if (other - == com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); + == com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings + .getDefaultInstance()) return this; + if (other.getEndpointerSensitivity() != 0) { + setEndpointerSensitivity(other.getEndpointerSensitivity()); } - if (other.getMaxDigits() != 0) { - setMaxDigits(other.getMaxDigits()); + if (other.hasNoSpeechTimeout()) { + mergeNoSpeechTimeout(other.getNoSpeechTimeout()); } - if (!other.getFinishDigit().isEmpty()) { - finishDigit_ = other.finishDigit_; - bitField0_ |= 0x00000004; - onChanged(); + if (other.getUseTimeoutBasedEndpointing() != false) { + setUseTimeoutBasedEndpointing(other.getUseTimeoutBasedEndpointing()); } + internalGetMutableModels().mergeFrom(other.internalGetModels()); + bitField0_ |= 0x00000008; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -630,22 +910,35 @@ public Builder mergeFrom( break; case 8: { - enabled_ = input.readBool(); + endpointerSensitivity_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 - case 16: + case 18: { - maxDigits_ = input.readInt32(); + input.readMessage( + getNoSpeechTimeoutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; - } // case 16 - case 26: + } // case 18 + case 24: { - finishDigit_ = input.readStringRequireUtf8(); + useTimeoutBasedEndpointing_ = input.readBool(); bitField0_ |= 0x00000004; break; - } // case 26 + } // case 24 + case 42: + { + com.google.protobuf.MapEntry models__ = + input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModels() + .getMutableMap() + .put(models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -662,51 +955,1771 @@ public Builder mergeFrom( } // finally return this; } - - private int bitField0_; - - private boolean enabled_; + + private int bitField0_; + + private int endpointerSensitivity_; + /** + * + * + *
        +       * Sensitivity of the speech model that detects the end of speech.
        +       * Scale from 0 to 100.
        +       * 
        + * + * int32 endpointer_sensitivity = 1; + * + * @return The endpointerSensitivity. + */ + @java.lang.Override + public int getEndpointerSensitivity() { + return endpointerSensitivity_; + } + /** + * + * + *
        +       * Sensitivity of the speech model that detects the end of speech.
        +       * Scale from 0 to 100.
        +       * 
        + * + * int32 endpointer_sensitivity = 1; + * + * @param value The endpointerSensitivity to set. + * @return This builder for chaining. + */ + public Builder setEndpointerSensitivity(int value) { + + endpointerSensitivity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * Sensitivity of the speech model that detects the end of speech.
        +       * Scale from 0 to 100.
        +       * 
        + * + * int32 endpointer_sensitivity = 1; + * + * @return This builder for chaining. + */ + public Builder clearEndpointerSensitivity() { + bitField0_ = (bitField0_ & ~0x00000001); + endpointerSensitivity_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration noSpeechTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + noSpeechTimeoutBuilder_; + /** + * + * + *
        +       * Timeout before detecting no speech.
        +       * 
        + * + * .google.protobuf.Duration no_speech_timeout = 2; + * + * @return Whether the noSpeechTimeout field is set. + */ + public boolean hasNoSpeechTimeout() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +       * Timeout before detecting no speech.
        +       * 
        + * + * .google.protobuf.Duration no_speech_timeout = 2; + * + * @return The noSpeechTimeout. + */ + public com.google.protobuf.Duration getNoSpeechTimeout() { + if (noSpeechTimeoutBuilder_ == null) { + return noSpeechTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : noSpeechTimeout_; + } else { + return noSpeechTimeoutBuilder_.getMessage(); + } + } + /** + * + * + *
        +       * Timeout before detecting no speech.
        +       * 
        + * + * .google.protobuf.Duration no_speech_timeout = 2; + */ + public Builder setNoSpeechTimeout(com.google.protobuf.Duration value) { + if (noSpeechTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + noSpeechTimeout_ = value; + } else { + noSpeechTimeoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Timeout before detecting no speech.
        +       * 
        + * + * .google.protobuf.Duration no_speech_timeout = 2; + */ + public Builder setNoSpeechTimeout(com.google.protobuf.Duration.Builder builderForValue) { + if (noSpeechTimeoutBuilder_ == null) { + noSpeechTimeout_ = builderForValue.build(); + } else { + noSpeechTimeoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Timeout before detecting no speech.
        +       * 
        + * + * .google.protobuf.Duration no_speech_timeout = 2; + */ + public Builder mergeNoSpeechTimeout(com.google.protobuf.Duration value) { + if (noSpeechTimeoutBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && noSpeechTimeout_ != null + && noSpeechTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + getNoSpeechTimeoutBuilder().mergeFrom(value); + } else { + noSpeechTimeout_ = value; + } + } else { + noSpeechTimeoutBuilder_.mergeFrom(value); + } + if (noSpeechTimeout_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
        +       * Timeout before detecting no speech.
        +       * 
        + * + * .google.protobuf.Duration no_speech_timeout = 2; + */ + public Builder clearNoSpeechTimeout() { + bitField0_ = (bitField0_ & ~0x00000002); + noSpeechTimeout_ = null; + if (noSpeechTimeoutBuilder_ != null) { + noSpeechTimeoutBuilder_.dispose(); + noSpeechTimeoutBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +       * Timeout before detecting no speech.
        +       * 
        + * + * .google.protobuf.Duration no_speech_timeout = 2; + */ + public com.google.protobuf.Duration.Builder getNoSpeechTimeoutBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getNoSpeechTimeoutFieldBuilder().getBuilder(); + } + /** + * + * + *
        +       * Timeout before detecting no speech.
        +       * 
        + * + * .google.protobuf.Duration no_speech_timeout = 2; + */ + public com.google.protobuf.DurationOrBuilder getNoSpeechTimeoutOrBuilder() { + if (noSpeechTimeoutBuilder_ != null) { + return noSpeechTimeoutBuilder_.getMessageOrBuilder(); + } else { + return noSpeechTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : noSpeechTimeout_; + } + } + /** + * + * + *
        +       * Timeout before detecting no speech.
        +       * 
        + * + * .google.protobuf.Duration no_speech_timeout = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getNoSpeechTimeoutFieldBuilder() { + if (noSpeechTimeoutBuilder_ == null) { + noSpeechTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getNoSpeechTimeout(), getParentForChildren(), isClean()); + noSpeechTimeout_ = null; + } + return noSpeechTimeoutBuilder_; + } + + private boolean useTimeoutBasedEndpointing_; + /** + * + * + *
        +       * Use timeout based endpointing, interpreting endpointer sensitivy as
        +       * seconds of timeout value.
        +       * 
        + * + * bool use_timeout_based_endpointing = 3; + * + * @return The useTimeoutBasedEndpointing. + */ + @java.lang.Override + public boolean getUseTimeoutBasedEndpointing() { + return useTimeoutBasedEndpointing_; + } + /** + * + * + *
        +       * Use timeout based endpointing, interpreting endpointer sensitivy as
        +       * seconds of timeout value.
        +       * 
        + * + * bool use_timeout_based_endpointing = 3; + * + * @param value The useTimeoutBasedEndpointing to set. + * @return This builder for chaining. + */ + public Builder setUseTimeoutBasedEndpointing(boolean value) { + + useTimeoutBasedEndpointing_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +       * Use timeout based endpointing, interpreting endpointer sensitivy as
        +       * seconds of timeout value.
        +       * 
        + * + * bool use_timeout_based_endpointing = 3; + * + * @return This builder for chaining. + */ + public Builder clearUseTimeoutBasedEndpointing() { + bitField0_ = (bitField0_ & ~0x00000004); + useTimeoutBasedEndpointing_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField models_; + + private com.google.protobuf.MapField internalGetModels() { + if (models_ == null) { + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + } + return models_; + } + + private com.google.protobuf.MapField + internalGetMutableModels() { + if (models_ == null) { + models_ = com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + } + if (!models_.isMutable()) { + models_ = models_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return models_; + } + + public int getModelsCount() { + return internalGetModels().getMap().size(); + } + /** + * + * + *
        +       * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +       * model will be selected for requests from its corresponding language.
        +       * For more information, see
        +       * [Speech
        +       * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
        +       * 
        + * + * map<string, string> models = 5; + */ + @java.lang.Override + public boolean containsModels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetModels().getMap().containsKey(key); + } + /** Use {@link #getModelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getModels() { + return getModelsMap(); + } + /** + * + * + *
        +       * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +       * model will be selected for requests from its corresponding language.
        +       * For more information, see
        +       * [Speech
        +       * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
        +       * 
        + * + * map<string, string> models = 5; + */ + @java.lang.Override + public java.util.Map getModelsMap() { + return internalGetModels().getMap(); + } + /** + * + * + *
        +       * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +       * model will be selected for requests from its corresponding language.
        +       * For more information, see
        +       * [Speech
        +       * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
        +       * 
        + * + * map<string, string> models = 5; + */ + @java.lang.Override + public /* nullable */ java.lang.String getModelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
        +       * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +       * model will be selected for requests from its corresponding language.
        +       * For more information, see
        +       * [Speech
        +       * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
        +       * 
        + * + * map<string, string> models = 5; + */ + @java.lang.Override + public java.lang.String getModelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearModels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableModels().getMutableMap().clear(); + return this; + } + /** + * + * + *
        +       * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +       * model will be selected for requests from its corresponding language.
        +       * For more information, see
        +       * [Speech
        +       * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
        +       * 
        + * + * map<string, string> models = 5; + */ + public Builder removeModels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableModels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableModels() { + bitField0_ |= 0x00000008; + return internalGetMutableModels().getMutableMap(); + } + /** + * + * + *
        +       * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +       * model will be selected for requests from its corresponding language.
        +       * For more information, see
        +       * [Speech
        +       * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
        +       * 
        + * + * map<string, string> models = 5; + */ + public Builder putModels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableModels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * + * + *
        +       * Mapping from language to Speech-to-Text model. The mapped Speech-to-Text
        +       * model will be selected for requests from its corresponding language.
        +       * For more information, see
        +       * [Speech
        +       * models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
        +       * 
        + * + * map<string, string> models = 5; + */ + public Builder putAllModels(java.util.Map values) { + internalGetMutableModels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings) + private static final com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings(); + } + + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DtmfSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * If true, incoming audio is processed for DTMF (dual tone multi frequency)
        +     * events. For example, if the caller presses a button on their telephone
        +     * keypad and DTMF processing is enabled, Dialogflow will detect the
        +     * event (e.g. a "3" was pressed) in the incoming audio and pass the event
        +     * to the bot to drive business logic (e.g. when 3 is pressed, return the
        +     * account balance).
        +     * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
        +     * Max length of DTMF digits.
        +     * 
        + * + * int32 max_digits = 2; + * + * @return The maxDigits. + */ + int getMaxDigits(); + + /** + * + * + *
        +     * The digit that terminates a DTMF digit sequence.
        +     * 
        + * + * string finish_digit = 3; + * + * @return The finishDigit. + */ + java.lang.String getFinishDigit(); + /** + * + * + *
        +     * The digit that terminates a DTMF digit sequence.
        +     * 
        + * + * string finish_digit = 3; + * + * @return The bytes for finishDigit. + */ + com.google.protobuf.ByteString getFinishDigitBytes(); + + /** + * + * + *
        +     * Interdigit timeout setting for matching dtmf input to regex.
        +     * 
        + * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + * + * @return Whether the interdigitTimeoutDuration field is set. + */ + boolean hasInterdigitTimeoutDuration(); + /** + * + * + *
        +     * Interdigit timeout setting for matching dtmf input to regex.
        +     * 
        + * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + * + * @return The interdigitTimeoutDuration. + */ + com.google.protobuf.Duration getInterdigitTimeoutDuration(); + /** + * + * + *
        +     * Interdigit timeout setting for matching dtmf input to regex.
        +     * 
        + * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + */ + com.google.protobuf.DurationOrBuilder getInterdigitTimeoutDurationOrBuilder(); + + /** + * + * + *
        +     * Endpoint timeout setting for matching dtmf input to regex.
        +     * 
        + * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + * + * @return Whether the endpointingTimeoutDuration field is set. + */ + boolean hasEndpointingTimeoutDuration(); + /** + * + * + *
        +     * Endpoint timeout setting for matching dtmf input to regex.
        +     * 
        + * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + * + * @return The endpointingTimeoutDuration. + */ + com.google.protobuf.Duration getEndpointingTimeoutDuration(); + /** + * + * + *
        +     * Endpoint timeout setting for matching dtmf input to regex.
        +     * 
        + * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + */ + com.google.protobuf.DurationOrBuilder getEndpointingTimeoutDurationOrBuilder(); + } + /** + * + * + *
        +   * Define behaviors for DTMF (dual tone multi frequency).
        +   * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings} + */ + public static final class DtmfSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings) + DtmfSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DtmfSettings.newBuilder() to construct. + private DtmfSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DtmfSettings() { + finishDigit_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DtmfSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto + .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto + .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.class, + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * + * + *
        +     * If true, incoming audio is processed for DTMF (dual tone multi frequency)
        +     * events. For example, if the caller presses a button on their telephone
        +     * keypad and DTMF processing is enabled, Dialogflow will detect the
        +     * event (e.g. a "3" was pressed) in the incoming audio and pass the event
        +     * to the bot to drive business logic (e.g. when 3 is pressed, return the
        +     * account balance).
        +     * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int MAX_DIGITS_FIELD_NUMBER = 2; + private int maxDigits_ = 0; + /** + * + * + *
        +     * Max length of DTMF digits.
        +     * 
        + * + * int32 max_digits = 2; + * + * @return The maxDigits. + */ + @java.lang.Override + public int getMaxDigits() { + return maxDigits_; + } + + public static final int FINISH_DIGIT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object finishDigit_ = ""; + /** + * + * + *
        +     * The digit that terminates a DTMF digit sequence.
        +     * 
        + * + * string finish_digit = 3; + * + * @return The finishDigit. + */ + @java.lang.Override + public java.lang.String getFinishDigit() { + java.lang.Object ref = finishDigit_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + finishDigit_ = s; + return s; + } + } + /** + * + * + *
        +     * The digit that terminates a DTMF digit sequence.
        +     * 
        + * + * string finish_digit = 3; + * + * @return The bytes for finishDigit. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFinishDigitBytes() { + java.lang.Object ref = finishDigit_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + finishDigit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERDIGIT_TIMEOUT_DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration interdigitTimeoutDuration_; + /** + * + * + *
        +     * Interdigit timeout setting for matching dtmf input to regex.
        +     * 
        + * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + * + * @return Whether the interdigitTimeoutDuration field is set. + */ + @java.lang.Override + public boolean hasInterdigitTimeoutDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * Interdigit timeout setting for matching dtmf input to regex.
        +     * 
        + * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + * + * @return The interdigitTimeoutDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getInterdigitTimeoutDuration() { + return interdigitTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : interdigitTimeoutDuration_; + } + /** + * + * + *
        +     * Interdigit timeout setting for matching dtmf input to regex.
        +     * 
        + * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getInterdigitTimeoutDurationOrBuilder() { + return interdigitTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : interdigitTimeoutDuration_; + } + + public static final int ENDPOINTING_TIMEOUT_DURATION_FIELD_NUMBER = 7; + private com.google.protobuf.Duration endpointingTimeoutDuration_; + /** + * + * + *
        +     * Endpoint timeout setting for matching dtmf input to regex.
        +     * 
        + * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + * + * @return Whether the endpointingTimeoutDuration field is set. + */ + @java.lang.Override + public boolean hasEndpointingTimeoutDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +     * Endpoint timeout setting for matching dtmf input to regex.
        +     * 
        + * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + * + * @return The endpointingTimeoutDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getEndpointingTimeoutDuration() { + return endpointingTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endpointingTimeoutDuration_; + } + /** + * + * + *
        +     * Endpoint timeout setting for matching dtmf input to regex.
        +     * 
        + * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getEndpointingTimeoutDurationOrBuilder() { + return endpointingTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endpointingTimeoutDuration_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (maxDigits_ != 0) { + output.writeInt32(2, maxDigits_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finishDigit_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, finishDigit_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getInterdigitTimeoutDuration()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getEndpointingTimeoutDuration()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (maxDigits_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxDigits_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finishDigit_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, finishDigit_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getInterdigitTimeoutDuration()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getEndpointingTimeoutDuration()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings other = + (com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (getMaxDigits() != other.getMaxDigits()) return false; + if (!getFinishDigit().equals(other.getFinishDigit())) return false; + if (hasInterdigitTimeoutDuration() != other.hasInterdigitTimeoutDuration()) return false; + if (hasInterdigitTimeoutDuration()) { + if (!getInterdigitTimeoutDuration().equals(other.getInterdigitTimeoutDuration())) + return false; + } + if (hasEndpointingTimeoutDuration() != other.hasEndpointingTimeoutDuration()) return false; + if (hasEndpointingTimeoutDuration()) { + if (!getEndpointingTimeoutDuration().equals(other.getEndpointingTimeoutDuration())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + MAX_DIGITS_FIELD_NUMBER; + hash = (53 * hash) + getMaxDigits(); + hash = (37 * hash) + FINISH_DIGIT_FIELD_NUMBER; + hash = (53 * hash) + getFinishDigit().hashCode(); + if (hasInterdigitTimeoutDuration()) { + hash = (37 * hash) + INTERDIGIT_TIMEOUT_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getInterdigitTimeoutDuration().hashCode(); + } + if (hasEndpointingTimeoutDuration()) { + hash = (37 * hash) + ENDPOINTING_TIMEOUT_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getEndpointingTimeoutDuration().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +     * Define behaviors for DTMF (dual tone multi frequency).
        +     * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings) + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto + .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto + .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.class, + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInterdigitTimeoutDurationFieldBuilder(); + getEndpointingTimeoutDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + maxDigits_ = 0; + finishDigit_ = ""; + interdigitTimeoutDuration_ = null; + if (interdigitTimeoutDurationBuilder_ != null) { + interdigitTimeoutDurationBuilder_.dispose(); + interdigitTimeoutDurationBuilder_ = null; + } + endpointingTimeoutDuration_ = null; + if (endpointingTimeoutDurationBuilder_ != null) { + endpointingTimeoutDurationBuilder_.dispose(); + endpointingTimeoutDurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto + .internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings build() { + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings buildPartial() { + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings result = + new com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxDigits_ = maxDigits_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.finishDigit_ = finishDigit_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.interdigitTimeoutDuration_ = + interdigitTimeoutDurationBuilder_ == null + ? interdigitTimeoutDuration_ + : interdigitTimeoutDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.endpointingTimeoutDuration_ = + endpointingTimeoutDurationBuilder_ == null + ? endpointingTimeoutDuration_ + : endpointingTimeoutDurationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings other) { + if (other + == com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getMaxDigits() != 0) { + setMaxDigits(other.getMaxDigits()); + } + if (!other.getFinishDigit().isEmpty()) { + finishDigit_ = other.finishDigit_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasInterdigitTimeoutDuration()) { + mergeInterdigitTimeoutDuration(other.getInterdigitTimeoutDuration()); + } + if (other.hasEndpointingTimeoutDuration()) { + mergeEndpointingTimeoutDuration(other.getEndpointingTimeoutDuration()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + maxDigits_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + finishDigit_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 50: + { + input.readMessage( + getInterdigitTimeoutDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 58: + { + input.readMessage( + getEndpointingTimeoutDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enabled_; + /** + * + * + *
        +       * If true, incoming audio is processed for DTMF (dual tone multi frequency)
        +       * events. For example, if the caller presses a button on their telephone
        +       * keypad and DTMF processing is enabled, Dialogflow will detect the
        +       * event (e.g. a "3" was pressed) in the incoming audio and pass the event
        +       * to the bot to drive business logic (e.g. when 3 is pressed, return the
        +       * account balance).
        +       * 
        + * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
        +       * If true, incoming audio is processed for DTMF (dual tone multi frequency)
        +       * events. For example, if the caller presses a button on their telephone
        +       * keypad and DTMF processing is enabled, Dialogflow will detect the
        +       * event (e.g. a "3" was pressed) in the incoming audio and pass the event
        +       * to the bot to drive business logic (e.g. when 3 is pressed, return the
        +       * account balance).
        +       * 
        + * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * If true, incoming audio is processed for DTMF (dual tone multi frequency)
        +       * events. For example, if the caller presses a button on their telephone
        +       * keypad and DTMF processing is enabled, Dialogflow will detect the
        +       * event (e.g. a "3" was pressed) in the incoming audio and pass the event
        +       * to the bot to drive business logic (e.g. when 3 is pressed, return the
        +       * account balance).
        +       * 
        + * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private int maxDigits_; + /** + * + * + *
        +       * Max length of DTMF digits.
        +       * 
        + * + * int32 max_digits = 2; + * + * @return The maxDigits. + */ + @java.lang.Override + public int getMaxDigits() { + return maxDigits_; + } + /** + * + * + *
        +       * Max length of DTMF digits.
        +       * 
        + * + * int32 max_digits = 2; + * + * @param value The maxDigits to set. + * @return This builder for chaining. + */ + public Builder setMaxDigits(int value) { + + maxDigits_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Max length of DTMF digits.
        +       * 
        + * + * int32 max_digits = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxDigits() { + bitField0_ = (bitField0_ & ~0x00000002); + maxDigits_ = 0; + onChanged(); + return this; + } + + private java.lang.Object finishDigit_ = ""; + /** + * + * + *
        +       * The digit that terminates a DTMF digit sequence.
        +       * 
        + * + * string finish_digit = 3; + * + * @return The finishDigit. + */ + public java.lang.String getFinishDigit() { + java.lang.Object ref = finishDigit_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + finishDigit_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * The digit that terminates a DTMF digit sequence.
        +       * 
        + * + * string finish_digit = 3; + * + * @return The bytes for finishDigit. + */ + public com.google.protobuf.ByteString getFinishDigitBytes() { + java.lang.Object ref = finishDigit_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + finishDigit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * The digit that terminates a DTMF digit sequence.
        +       * 
        + * + * string finish_digit = 3; + * + * @param value The finishDigit to set. + * @return This builder for chaining. + */ + public Builder setFinishDigit(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + finishDigit_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +       * The digit that terminates a DTMF digit sequence.
        +       * 
        + * + * string finish_digit = 3; + * + * @return This builder for chaining. + */ + public Builder clearFinishDigit() { + finishDigit_ = getDefaultInstance().getFinishDigit(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +       * The digit that terminates a DTMF digit sequence.
        +       * 
        + * + * string finish_digit = 3; + * + * @param value The bytes for finishDigit to set. + * @return This builder for chaining. + */ + public Builder setFinishDigitBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + finishDigit_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Duration interdigitTimeoutDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + interdigitTimeoutDurationBuilder_; + /** + * + * + *
        +       * Interdigit timeout setting for matching dtmf input to regex.
        +       * 
        + * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + * + * @return Whether the interdigitTimeoutDuration field is set. + */ + public boolean hasInterdigitTimeoutDuration() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
        +       * Interdigit timeout setting for matching dtmf input to regex.
        +       * 
        + * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + * + * @return The interdigitTimeoutDuration. + */ + public com.google.protobuf.Duration getInterdigitTimeoutDuration() { + if (interdigitTimeoutDurationBuilder_ == null) { + return interdigitTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : interdigitTimeoutDuration_; + } else { + return interdigitTimeoutDurationBuilder_.getMessage(); + } + } + /** + * + * + *
        +       * Interdigit timeout setting for matching dtmf input to regex.
        +       * 
        + * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + */ + public Builder setInterdigitTimeoutDuration(com.google.protobuf.Duration value) { + if (interdigitTimeoutDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interdigitTimeoutDuration_ = value; + } else { + interdigitTimeoutDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } /** * * *
        -       * If true, incoming audio is processed for DTMF (dual tone multi frequency)
        -       * events. For example, if the caller presses a button on their telephone
        -       * keypad and DTMF processing is enabled, Dialogflow will detect the
        -       * event (e.g. a "3" was pressed) in the incoming audio and pass the event
        -       * to the bot to drive business logic (e.g. when 3 is pressed, return the
        -       * account balance).
        +       * Interdigit timeout setting for matching dtmf input to regex.
                * 
        * - * bool enabled = 1; - * - * @return The enabled. + * .google.protobuf.Duration interdigit_timeout_duration = 6; */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; + public Builder setInterdigitTimeoutDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (interdigitTimeoutDurationBuilder_ == null) { + interdigitTimeoutDuration_ = builderForValue.build(); + } else { + interdigitTimeoutDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; } /** * * *
        -       * If true, incoming audio is processed for DTMF (dual tone multi frequency)
        -       * events. For example, if the caller presses a button on their telephone
        -       * keypad and DTMF processing is enabled, Dialogflow will detect the
        -       * event (e.g. a "3" was pressed) in the incoming audio and pass the event
        -       * to the bot to drive business logic (e.g. when 3 is pressed, return the
        -       * account balance).
        +       * Interdigit timeout setting for matching dtmf input to regex.
                * 
        * - * bool enabled = 1; + * .google.protobuf.Duration interdigit_timeout_duration = 6; + */ + public Builder mergeInterdigitTimeoutDuration(com.google.protobuf.Duration value) { + if (interdigitTimeoutDurationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && interdigitTimeoutDuration_ != null + && interdigitTimeoutDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getInterdigitTimeoutDurationBuilder().mergeFrom(value); + } else { + interdigitTimeoutDuration_ = value; + } + } else { + interdigitTimeoutDurationBuilder_.mergeFrom(value); + } + if (interdigitTimeoutDuration_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** * - * @param value The enabled to set. - * @return This builder for chaining. + * + *
        +       * Interdigit timeout setting for matching dtmf input to regex.
        +       * 
        + * + * .google.protobuf.Duration interdigit_timeout_duration = 6; */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; + public Builder clearInterdigitTimeoutDuration() { + bitField0_ = (bitField0_ & ~0x00000008); + interdigitTimeoutDuration_ = null; + if (interdigitTimeoutDurationBuilder_ != null) { + interdigitTimeoutDurationBuilder_.dispose(); + interdigitTimeoutDurationBuilder_ = null; + } onChanged(); return this; } @@ -714,141 +2727,185 @@ public Builder setEnabled(boolean value) { * * *
        -       * If true, incoming audio is processed for DTMF (dual tone multi frequency)
        -       * events. For example, if the caller presses a button on their telephone
        -       * keypad and DTMF processing is enabled, Dialogflow will detect the
        -       * event (e.g. a "3" was pressed) in the incoming audio and pass the event
        -       * to the bot to drive business logic (e.g. when 3 is pressed, return the
        -       * account balance).
        +       * Interdigit timeout setting for matching dtmf input to regex.
                * 
        * - * bool enabled = 1; - * - * @return This builder for chaining. + * .google.protobuf.Duration interdigit_timeout_duration = 6; */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; + public com.google.protobuf.Duration.Builder getInterdigitTimeoutDurationBuilder() { + bitField0_ |= 0x00000008; onChanged(); - return this; + return getInterdigitTimeoutDurationFieldBuilder().getBuilder(); } - - private int maxDigits_; /** * * *
        -       * Max length of DTMF digits.
        +       * Interdigit timeout setting for matching dtmf input to regex.
                * 
        * - * int32 max_digits = 2; + * .google.protobuf.Duration interdigit_timeout_duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getInterdigitTimeoutDurationOrBuilder() { + if (interdigitTimeoutDurationBuilder_ != null) { + return interdigitTimeoutDurationBuilder_.getMessageOrBuilder(); + } else { + return interdigitTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : interdigitTimeoutDuration_; + } + } + /** * - * @return The maxDigits. + * + *
        +       * Interdigit timeout setting for matching dtmf input to regex.
        +       * 
        + * + * .google.protobuf.Duration interdigit_timeout_duration = 6; */ - @java.lang.Override - public int getMaxDigits() { - return maxDigits_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getInterdigitTimeoutDurationFieldBuilder() { + if (interdigitTimeoutDurationBuilder_ == null) { + interdigitTimeoutDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getInterdigitTimeoutDuration(), getParentForChildren(), isClean()); + interdigitTimeoutDuration_ = null; + } + return interdigitTimeoutDurationBuilder_; } + + private com.google.protobuf.Duration endpointingTimeoutDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + endpointingTimeoutDurationBuilder_; /** * * *
        -       * Max length of DTMF digits.
        +       * Endpoint timeout setting for matching dtmf input to regex.
                * 
        * - * int32 max_digits = 2; + * .google.protobuf.Duration endpointing_timeout_duration = 7; * - * @param value The maxDigits to set. - * @return This builder for chaining. + * @return Whether the endpointingTimeoutDuration field is set. */ - public Builder setMaxDigits(int value) { - - maxDigits_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + public boolean hasEndpointingTimeoutDuration() { + return ((bitField0_ & 0x00000010) != 0); } /** * * *
        -       * Max length of DTMF digits.
        +       * Endpoint timeout setting for matching dtmf input to regex.
                * 
        * - * int32 max_digits = 2; + * .google.protobuf.Duration endpointing_timeout_duration = 7; * - * @return This builder for chaining. + * @return The endpointingTimeoutDuration. */ - public Builder clearMaxDigits() { - bitField0_ = (bitField0_ & ~0x00000002); - maxDigits_ = 0; + public com.google.protobuf.Duration getEndpointingTimeoutDuration() { + if (endpointingTimeoutDurationBuilder_ == null) { + return endpointingTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endpointingTimeoutDuration_; + } else { + return endpointingTimeoutDurationBuilder_.getMessage(); + } + } + /** + * + * + *
        +       * Endpoint timeout setting for matching dtmf input to regex.
        +       * 
        + * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + */ + public Builder setEndpointingTimeoutDuration(com.google.protobuf.Duration value) { + if (endpointingTimeoutDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endpointingTimeoutDuration_ = value; + } else { + endpointingTimeoutDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; onChanged(); return this; } - - private java.lang.Object finishDigit_ = ""; /** * * *
        -       * The digit that terminates a DTMF digit sequence.
        +       * Endpoint timeout setting for matching dtmf input to regex.
                * 
        * - * string finish_digit = 3; - * - * @return The finishDigit. + * .google.protobuf.Duration endpointing_timeout_duration = 7; */ - public java.lang.String getFinishDigit() { - java.lang.Object ref = finishDigit_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - finishDigit_ = s; - return s; + public Builder setEndpointingTimeoutDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (endpointingTimeoutDurationBuilder_ == null) { + endpointingTimeoutDuration_ = builderForValue.build(); } else { - return (java.lang.String) ref; + endpointingTimeoutDurationBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000010; + onChanged(); + return this; } /** * * *
        -       * The digit that terminates a DTMF digit sequence.
        +       * Endpoint timeout setting for matching dtmf input to regex.
                * 
        * - * string finish_digit = 3; - * - * @return The bytes for finishDigit. + * .google.protobuf.Duration endpointing_timeout_duration = 7; */ - public com.google.protobuf.ByteString getFinishDigitBytes() { - java.lang.Object ref = finishDigit_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - finishDigit_ = b; - return b; + public Builder mergeEndpointingTimeoutDuration(com.google.protobuf.Duration value) { + if (endpointingTimeoutDurationBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && endpointingTimeoutDuration_ != null + && endpointingTimeoutDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getEndpointingTimeoutDurationBuilder().mergeFrom(value); + } else { + endpointingTimeoutDuration_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + endpointingTimeoutDurationBuilder_.mergeFrom(value); + } + if (endpointingTimeoutDuration_ != null) { + bitField0_ |= 0x00000010; + onChanged(); } + return this; } /** * * *
        -       * The digit that terminates a DTMF digit sequence.
        +       * Endpoint timeout setting for matching dtmf input to regex.
                * 
        * - * string finish_digit = 3; - * - * @param value The finishDigit to set. - * @return This builder for chaining. + * .google.protobuf.Duration endpointing_timeout_duration = 7; */ - public Builder setFinishDigit(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearEndpointingTimeoutDuration() { + bitField0_ = (bitField0_ & ~0x00000010); + endpointingTimeoutDuration_ = null; + if (endpointingTimeoutDurationBuilder_ != null) { + endpointingTimeoutDurationBuilder_.dispose(); + endpointingTimeoutDurationBuilder_ = null; } - finishDigit_ = value; - bitField0_ |= 0x00000004; onChanged(); return this; } @@ -856,40 +2913,58 @@ public Builder setFinishDigit(java.lang.String value) { * * *
        -       * The digit that terminates a DTMF digit sequence.
        +       * Endpoint timeout setting for matching dtmf input to regex.
                * 
        * - * string finish_digit = 3; - * - * @return This builder for chaining. + * .google.protobuf.Duration endpointing_timeout_duration = 7; */ - public Builder clearFinishDigit() { - finishDigit_ = getDefaultInstance().getFinishDigit(); - bitField0_ = (bitField0_ & ~0x00000004); + public com.google.protobuf.Duration.Builder getEndpointingTimeoutDurationBuilder() { + bitField0_ |= 0x00000010; onChanged(); - return this; + return getEndpointingTimeoutDurationFieldBuilder().getBuilder(); } /** * * *
        -       * The digit that terminates a DTMF digit sequence.
        +       * Endpoint timeout setting for matching dtmf input to regex.
                * 
        * - * string finish_digit = 3; + * .google.protobuf.Duration endpointing_timeout_duration = 7; + */ + public com.google.protobuf.DurationOrBuilder getEndpointingTimeoutDurationOrBuilder() { + if (endpointingTimeoutDurationBuilder_ != null) { + return endpointingTimeoutDurationBuilder_.getMessageOrBuilder(); + } else { + return endpointingTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endpointingTimeoutDuration_; + } + } + /** * - * @param value The bytes for finishDigit to set. - * @return This builder for chaining. + * + *
        +       * Endpoint timeout setting for matching dtmf input to regex.
        +       * 
        + * + * .google.protobuf.Duration endpointing_timeout_duration = 7; */ - public Builder setFinishDigitBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getEndpointingTimeoutDurationFieldBuilder() { + if (endpointingTimeoutDurationBuilder_ == null) { + endpointingTimeoutDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getEndpointingTimeoutDuration(), getParentForChildren(), isClean()); + endpointingTimeoutDuration_ = null; } - checkByteStringIsUtf8(value); - finishDigit_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + return endpointingTimeoutDurationBuilder_; } @java.lang.Override @@ -968,7 +3043,7 @@ public interface LoggingSettingsOrBuilder * * *
        -     * If true, StackDriver logging is currently enabled.
        +     * Enables StackDriver logging.
              * 
        * * bool enable_stackdriver_logging = 2; @@ -981,7 +3056,7 @@ public interface LoggingSettingsOrBuilder * * *
        -     * If true, DF Interaction logging is currently enabled.
        +     * Enables DF Interaction logging.
              * 
        * * bool enable_interaction_logging = 3; @@ -989,6 +3064,21 @@ public interface LoggingSettingsOrBuilder * @return The enableInteractionLogging. */ boolean getEnableInteractionLogging(); + + /** + * + * + *
        +     * Enables consent-based end-user input redaction, if true, a pre-defined
        +     * session parameter `$session.params.conversation-redaction` will be
        +     * used to determine if the utterance should be redacted.
        +     * 
        + * + * bool enable_consent_based_redaction = 4; + * + * @return The enableConsentBasedRedaction. + */ + boolean getEnableConsentBasedRedaction(); } /** * @@ -1038,7 +3128,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -     * If true, StackDriver logging is currently enabled.
        +     * Enables StackDriver logging.
              * 
        * * bool enable_stackdriver_logging = 2; @@ -1056,7 +3146,7 @@ public boolean getEnableStackdriverLogging() { * * *
        -     * If true, DF Interaction logging is currently enabled.
        +     * Enables DF Interaction logging.
              * 
        * * bool enable_interaction_logging = 3; @@ -1068,6 +3158,26 @@ public boolean getEnableInteractionLogging() { return enableInteractionLogging_; } + public static final int ENABLE_CONSENT_BASED_REDACTION_FIELD_NUMBER = 4; + private boolean enableConsentBasedRedaction_ = false; + /** + * + * + *
        +     * Enables consent-based end-user input redaction, if true, a pre-defined
        +     * session parameter `$session.params.conversation-redaction` will be
        +     * used to determine if the utterance should be redacted.
        +     * 
        + * + * bool enable_consent_based_redaction = 4; + * + * @return The enableConsentBasedRedaction. + */ + @java.lang.Override + public boolean getEnableConsentBasedRedaction() { + return enableConsentBasedRedaction_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1088,6 +3198,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableInteractionLogging_ != false) { output.writeBool(3, enableInteractionLogging_); } + if (enableConsentBasedRedaction_ != false) { + output.writeBool(4, enableConsentBasedRedaction_); + } getUnknownFields().writeTo(output); } @@ -1103,6 +3216,10 @@ public int getSerializedSize() { if (enableInteractionLogging_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableInteractionLogging_); } + if (enableConsentBasedRedaction_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, enableConsentBasedRedaction_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1121,6 +3238,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableStackdriverLogging() != other.getEnableStackdriverLogging()) return false; if (getEnableInteractionLogging() != other.getEnableInteractionLogging()) return false; + if (getEnableConsentBasedRedaction() != other.getEnableConsentBasedRedaction()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1136,6 +3254,9 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableStackdriverLogging()); hash = (37 * hash) + ENABLE_INTERACTION_LOGGING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableInteractionLogging()); + hash = (37 * hash) + ENABLE_CONSENT_BASED_REDACTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableConsentBasedRedaction()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1282,6 +3403,7 @@ public Builder clear() { bitField0_ = 0; enableStackdriverLogging_ = false; enableInteractionLogging_ = false; + enableConsentBasedRedaction_ = false; return this; } @@ -1327,6 +3449,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.enableInteractionLogging_ = enableInteractionLogging_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableConsentBasedRedaction_ = enableConsentBasedRedaction_; + } } @java.lang.Override @@ -1386,6 +3511,9 @@ public Builder mergeFrom( if (other.getEnableInteractionLogging() != false) { setEnableInteractionLogging(other.getEnableInteractionLogging()); } + if (other.getEnableConsentBasedRedaction() != false) { + setEnableConsentBasedRedaction(other.getEnableConsentBasedRedaction()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1424,6 +3552,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 32: + { + enableConsentBasedRedaction_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1448,7 +3582,7 @@ public Builder mergeFrom( * * *
        -       * If true, StackDriver logging is currently enabled.
        +       * Enables StackDriver logging.
                * 
        * * bool enable_stackdriver_logging = 2; @@ -1463,7 +3597,7 @@ public boolean getEnableStackdriverLogging() { * * *
        -       * If true, StackDriver logging is currently enabled.
        +       * Enables StackDriver logging.
                * 
        * * bool enable_stackdriver_logging = 2; @@ -1482,7 +3616,7 @@ public Builder setEnableStackdriverLogging(boolean value) { * * *
        -       * If true, StackDriver logging is currently enabled.
        +       * Enables StackDriver logging.
                * 
        * * bool enable_stackdriver_logging = 2; @@ -1501,7 +3635,7 @@ public Builder clearEnableStackdriverLogging() { * * *
        -       * If true, DF Interaction logging is currently enabled.
        +       * Enables DF Interaction logging.
                * 
        * * bool enable_interaction_logging = 3; @@ -1516,7 +3650,7 @@ public boolean getEnableInteractionLogging() { * * *
        -       * If true, DF Interaction logging is currently enabled.
        +       * Enables DF Interaction logging.
                * 
        * * bool enable_interaction_logging = 3; @@ -1535,16 +3669,75 @@ public Builder setEnableInteractionLogging(boolean value) { * * *
        -       * If true, DF Interaction logging is currently enabled.
        +       * Enables DF Interaction logging.
        +       * 
        + * + * bool enable_interaction_logging = 3; + * + * @return This builder for chaining. + */ + public Builder clearEnableInteractionLogging() { + bitField0_ = (bitField0_ & ~0x00000002); + enableInteractionLogging_ = false; + onChanged(); + return this; + } + + private boolean enableConsentBasedRedaction_; + /** + * + * + *
        +       * Enables consent-based end-user input redaction, if true, a pre-defined
        +       * session parameter `$session.params.conversation-redaction` will be
        +       * used to determine if the utterance should be redacted.
        +       * 
        + * + * bool enable_consent_based_redaction = 4; + * + * @return The enableConsentBasedRedaction. + */ + @java.lang.Override + public boolean getEnableConsentBasedRedaction() { + return enableConsentBasedRedaction_; + } + /** + * + * + *
        +       * Enables consent-based end-user input redaction, if true, a pre-defined
        +       * session parameter `$session.params.conversation-redaction` will be
        +       * used to determine if the utterance should be redacted.
        +       * 
        + * + * bool enable_consent_based_redaction = 4; + * + * @param value The enableConsentBasedRedaction to set. + * @return This builder for chaining. + */ + public Builder setEnableConsentBasedRedaction(boolean value) { + + enableConsentBasedRedaction_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +       * Enables consent-based end-user input redaction, if true, a pre-defined
        +       * session parameter `$session.params.conversation-redaction` will be
        +       * used to determine if the utterance should be redacted.
                * 
        * - * bool enable_interaction_logging = 3; + * bool enable_consent_based_redaction = 4; * * @return This builder for chaining. */ - public Builder clearEnableInteractionLogging() { - bitField0_ = (bitField0_ & ~0x00000002); - enableInteractionLogging_ = false; + public Builder clearEnableConsentBasedRedaction() { + bitField0_ = (bitField0_ & ~0x00000004); + enableConsentBasedRedaction_ = false; onChanged(); return this; } @@ -1680,6 +3873,75 @@ public com.google.cloud.dialogflow.cx.v3.GcsDestination getAudioExportGcsDestina : audioExportGcsDestination_; } + public static final int SPEECH_SETTINGS_FIELD_NUMBER = 3; + private com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speechSettings_; + /** + * + * + *
        +   * Settings for speech to text detection.
        +   * Exposed at the following levels:
        +   * - Agent level
        +   * - Flow level
        +   * - Page level
        +   * - Parameter level
        +   * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + * + * @return Whether the speechSettings field is set. + */ + @java.lang.Override + public boolean hasSpeechSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +   * Settings for speech to text detection.
        +   * Exposed at the following levels:
        +   * - Agent level
        +   * - Flow level
        +   * - Page level
        +   * - Parameter level
        +   * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + * + * @return The speechSettings. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings getSpeechSettings() { + return speechSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.getDefaultInstance() + : speechSettings_; + } + /** + * + * + *
        +   * Settings for speech to text detection.
        +   * Exposed at the following levels:
        +   * - Agent level
        +   * - Flow level
        +   * - Page level
        +   * - Parameter level
        +   * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettingsOrBuilder + getSpeechSettingsOrBuilder() { + return speechSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.getDefaultInstance() + : speechSettings_; + } + public static final int DTMF_SETTINGS_FIELD_NUMBER = 5; private com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings dtmfSettings_; /** @@ -1700,7 +3962,7 @@ public com.google.cloud.dialogflow.cx.v3.GcsDestination getAudioExportGcsDestina */ @java.lang.Override public boolean hasDtmfSettings() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1766,7 +4028,7 @@ public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings getDtmfSe */ @java.lang.Override public boolean hasLoggingSettings() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1830,9 +4092,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(2, getAudioExportGcsDestination()); } if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getDtmfSettings()); + output.writeMessage(3, getSpeechSettings()); } if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getDtmfSettings()); + } + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(6, getLoggingSettings()); } getUnknownFields().writeTo(output); @@ -1850,9 +4115,12 @@ public int getSerializedSize() { 2, getAudioExportGcsDestination()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDtmfSettings()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpeechSettings()); } if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDtmfSettings()); + } + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLoggingSettings()); } size += getUnknownFields().getSerializedSize(); @@ -1876,6 +4144,10 @@ public boolean equals(final java.lang.Object obj) { if (!getAudioExportGcsDestination().equals(other.getAudioExportGcsDestination())) return false; } + if (hasSpeechSettings() != other.hasSpeechSettings()) return false; + if (hasSpeechSettings()) { + if (!getSpeechSettings().equals(other.getSpeechSettings())) return false; + } if (hasDtmfSettings() != other.hasDtmfSettings()) return false; if (hasDtmfSettings()) { if (!getDtmfSettings().equals(other.getDtmfSettings())) return false; @@ -1899,6 +4171,10 @@ public int hashCode() { hash = (37 * hash) + AUDIO_EXPORT_GCS_DESTINATION_FIELD_NUMBER; hash = (53 * hash) + getAudioExportGcsDestination().hashCode(); } + if (hasSpeechSettings()) { + hash = (37 * hash) + SPEECH_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSpeechSettings().hashCode(); + } if (hasDtmfSettings()) { hash = (37 * hash) + DTMF_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getDtmfSettings().hashCode(); @@ -2058,6 +4334,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAudioExportGcsDestinationFieldBuilder(); + getSpeechSettingsFieldBuilder(); getDtmfSettingsFieldBuilder(); getLoggingSettingsFieldBuilder(); } @@ -2072,6 +4349,11 @@ public Builder clear() { audioExportGcsDestinationBuilder_.dispose(); audioExportGcsDestinationBuilder_ = null; } + speechSettings_ = null; + if (speechSettingsBuilder_ != null) { + speechSettingsBuilder_.dispose(); + speechSettingsBuilder_ = null; + } dtmfSettings_ = null; if (dtmfSettingsBuilder_ != null) { dtmfSettingsBuilder_.dispose(); @@ -2127,14 +4409,19 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.AdvancedSettings re to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.dtmfSettings_ = - dtmfSettingsBuilder_ == null ? dtmfSettings_ : dtmfSettingsBuilder_.build(); + result.speechSettings_ = + speechSettingsBuilder_ == null ? speechSettings_ : speechSettingsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.dtmfSettings_ = + dtmfSettingsBuilder_ == null ? dtmfSettings_ : dtmfSettingsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.loggingSettings_ = loggingSettingsBuilder_ == null ? loggingSettings_ : loggingSettingsBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @@ -2188,6 +4475,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.AdvancedSettings othe if (other.hasAudioExportGcsDestination()) { mergeAudioExportGcsDestination(other.getAudioExportGcsDestination()); } + if (other.hasSpeechSettings()) { + mergeSpeechSettings(other.getSpeechSettings()); + } if (other.hasDtmfSettings()) { mergeDtmfSettings(other.getDtmfSettings()); } @@ -2227,16 +4517,22 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 18 + case 26: + { + input.readMessage(getSpeechSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 case 42: { input.readMessage(getDtmfSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 42 case 50: { input.readMessage(getLoggingSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 50 default: @@ -2485,6 +4781,252 @@ public Builder clearAudioExportGcsDestination() { return audioExportGcsDestinationBuilder_; } + private com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speechSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings, + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.Builder, + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettingsOrBuilder> + speechSettingsBuilder_; + /** + * + * + *
        +     * Settings for speech to text detection.
        +     * Exposed at the following levels:
        +     * - Agent level
        +     * - Flow level
        +     * - Page level
        +     * - Parameter level
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + * + * @return Whether the speechSettings field is set. + */ + public boolean hasSpeechSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +     * Settings for speech to text detection.
        +     * Exposed at the following levels:
        +     * - Agent level
        +     * - Flow level
        +     * - Page level
        +     * - Parameter level
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + * + * @return The speechSettings. + */ + public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings getSpeechSettings() { + if (speechSettingsBuilder_ == null) { + return speechSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.getDefaultInstance() + : speechSettings_; + } else { + return speechSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Settings for speech to text detection.
        +     * Exposed at the following levels:
        +     * - Agent level
        +     * - Flow level
        +     * - Page level
        +     * - Parameter level
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + */ + public Builder setSpeechSettings( + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings value) { + if (speechSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + speechSettings_ = value; + } else { + speechSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Settings for speech to text detection.
        +     * Exposed at the following levels:
        +     * - Agent level
        +     * - Flow level
        +     * - Page level
        +     * - Parameter level
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + */ + public Builder setSpeechSettings( + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.Builder builderForValue) { + if (speechSettingsBuilder_ == null) { + speechSettings_ = builderForValue.build(); + } else { + speechSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Settings for speech to text detection.
        +     * Exposed at the following levels:
        +     * - Agent level
        +     * - Flow level
        +     * - Page level
        +     * - Parameter level
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + */ + public Builder mergeSpeechSettings( + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings value) { + if (speechSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && speechSettings_ != null + && speechSettings_ + != com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings + .getDefaultInstance()) { + getSpeechSettingsBuilder().mergeFrom(value); + } else { + speechSettings_ = value; + } + } else { + speechSettingsBuilder_.mergeFrom(value); + } + if (speechSettings_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Settings for speech to text detection.
        +     * Exposed at the following levels:
        +     * - Agent level
        +     * - Flow level
        +     * - Page level
        +     * - Parameter level
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + */ + public Builder clearSpeechSettings() { + bitField0_ = (bitField0_ & ~0x00000002); + speechSettings_ = null; + if (speechSettingsBuilder_ != null) { + speechSettingsBuilder_.dispose(); + speechSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Settings for speech to text detection.
        +     * Exposed at the following levels:
        +     * - Agent level
        +     * - Flow level
        +     * - Page level
        +     * - Parameter level
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + */ + public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.Builder + getSpeechSettingsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSpeechSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Settings for speech to text detection.
        +     * Exposed at the following levels:
        +     * - Agent level
        +     * - Flow level
        +     * - Page level
        +     * - Parameter level
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + */ + public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettingsOrBuilder + getSpeechSettingsOrBuilder() { + if (speechSettingsBuilder_ != null) { + return speechSettingsBuilder_.getMessageOrBuilder(); + } else { + return speechSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.getDefaultInstance() + : speechSettings_; + } + } + /** + * + * + *
        +     * Settings for speech to text detection.
        +     * Exposed at the following levels:
        +     * - Agent level
        +     * - Flow level
        +     * - Page level
        +     * - Parameter level
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings, + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.Builder, + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettingsOrBuilder> + getSpeechSettingsFieldBuilder() { + if (speechSettingsBuilder_ == null) { + speechSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings, + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.Builder, + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettingsOrBuilder>( + getSpeechSettings(), getParentForChildren(), isClean()); + speechSettings_ = null; + } + return speechSettingsBuilder_; + } + private com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings dtmfSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings, @@ -2508,7 +5050,7 @@ public Builder clearAudioExportGcsDestination() { * @return Whether the dtmfSettings field is set. */ public boolean hasDtmfSettings() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2559,7 +5101,7 @@ public Builder setDtmfSettings( } else { dtmfSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2584,7 +5126,7 @@ public Builder setDtmfSettings( } else { dtmfSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2605,7 +5147,7 @@ public Builder setDtmfSettings( public Builder mergeDtmfSettings( com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings value) { if (dtmfSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000004) != 0) && dtmfSettings_ != null && dtmfSettings_ != com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings @@ -2618,7 +5160,7 @@ public Builder mergeDtmfSettings( dtmfSettingsBuilder_.mergeFrom(value); } if (dtmfSettings_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -2638,7 +5180,7 @@ public Builder mergeDtmfSettings( * .google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings dtmf_settings = 5; */ public Builder clearDtmfSettings() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); dtmfSettings_ = null; if (dtmfSettingsBuilder_ != null) { dtmfSettingsBuilder_.dispose(); @@ -2663,7 +5205,7 @@ public Builder clearDtmfSettings() { */ public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.Builder getDtmfSettingsBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return getDtmfSettingsFieldBuilder().getBuilder(); } @@ -2745,7 +5287,7 @@ public Builder clearDtmfSettings() { * @return Whether the loggingSettings field is set. */ public boolean hasLoggingSettings() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2797,7 +5339,7 @@ public Builder setLoggingSettings( } else { loggingSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2823,7 +5365,7 @@ public Builder setLoggingSettings( } else { loggingSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2844,7 +5386,7 @@ public Builder setLoggingSettings( public Builder mergeLoggingSettings( com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings value) { if (loggingSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && loggingSettings_ != null && loggingSettings_ != com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings @@ -2857,7 +5399,7 @@ public Builder mergeLoggingSettings( loggingSettingsBuilder_.mergeFrom(value); } if (loggingSettings_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -2877,7 +5419,7 @@ public Builder mergeLoggingSettings( *
        */ public Builder clearLoggingSettings() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); loggingSettings_ = null; if (loggingSettingsBuilder_ != null) { loggingSettingsBuilder_.dispose(); @@ -2902,7 +5444,7 @@ public Builder clearLoggingSettings() { */ public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.Builder getLoggingSettingsBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getLoggingSettingsFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettingsOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettingsOrBuilder.java index 074a8bff885f..5650487a2b03 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettingsOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettingsOrBuilder.java @@ -71,6 +71,60 @@ public interface AdvancedSettingsOrBuilder */ com.google.cloud.dialogflow.cx.v3.GcsDestinationOrBuilder getAudioExportGcsDestinationOrBuilder(); + /** + * + * + *
        +   * Settings for speech to text detection.
        +   * Exposed at the following levels:
        +   * - Agent level
        +   * - Flow level
        +   * - Page level
        +   * - Parameter level
        +   * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + * + * @return Whether the speechSettings field is set. + */ + boolean hasSpeechSettings(); + /** + * + * + *
        +   * Settings for speech to text detection.
        +   * Exposed at the following levels:
        +   * - Agent level
        +   * - Flow level
        +   * - Page level
        +   * - Parameter level
        +   * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + * + * @return The speechSettings. + */ + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings getSpeechSettings(); + /** + * + * + *
        +   * Settings for speech to text detection.
        +   * Exposed at the following levels:
        +   * - Agent level
        +   * - Flow level
        +   * - Page level
        +   * - Parameter level
        +   * 
        + * + * .google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings speech_settings = 3; + * + */ + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettingsOrBuilder + getSpeechSettingsOrBuilder(); + /** * * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettingsProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettingsProto.java index c8983ba2f0b7..16665590e4e5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettingsProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettingsProto.java @@ -32,6 +32,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_ModelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_ModelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -53,23 +61,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_settings.proto\022\035google.cloud.dialogflow" + ".cx.v3\032\037google/api/field_behavior.proto\032" + "\'google/cloud/dialogflow/cx/v3/gcs.proto" - + "\"\275\003\n\020AdvancedSettings\022S\n\034audio_export_gc" - + "s_destination\030\002 \001(\0132-.google.cloud.dialo" - + "gflow.cx.v3.GcsDestination\022S\n\rdtmf_setti" - + "ngs\030\005 \001(\0132<.google.cloud.dialogflow.cx.v" - + "3.AdvancedSettings.DtmfSettings\022Y\n\020loggi" - + "ng_settings\030\006 \001(\0132?.google.cloud.dialogf" - + "low.cx.v3.AdvancedSettings.LoggingSettin" - + "gs\032I\n\014DtmfSettings\022\017\n\007enabled\030\001 \001(\010\022\022\n\nm" - + "ax_digits\030\002 \001(\005\022\024\n\014finish_digit\030\003 \001(\t\032Y\n" - + "\017LoggingSettings\022\"\n\032enable_stackdriver_l" - + "ogging\030\002 \001(\010\022\"\n\032enable_interaction_loggi" - + "ng\030\003 \001(\010B\273\001\n!com.google.cloud.dialogflow" - + ".cx.v3B\025AdvancedSettingsProtoP\001Z1cloud.g" - + "oogle.com/go/dialogflow/cx/apiv3/cxpb;cx" - + "pb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx." - + "V3\352\002!Google::Cloud::Dialogflow::CX::V3b\006" - + "proto3" + + "\032\036google/protobuf/duration.proto\"\334\007\n\020Adv" + + "ancedSettings\022S\n\034audio_export_gcs_destin" + + "ation\030\002 \001(\0132-.google.cloud.dialogflow.cx" + + ".v3.GcsDestination\022W\n\017speech_settings\030\003 " + + "\001(\0132>.google.cloud.dialogflow.cx.v3.Adva" + + "ncedSettings.SpeechSettings\022S\n\rdtmf_sett" + + "ings\030\005 \001(\0132<.google.cloud.dialogflow.cx." + + "v3.AdvancedSettings.DtmfSettings\022Y\n\020logg" + + "ing_settings\030\006 \001(\0132?.google.cloud.dialog" + + "flow.cx.v3.AdvancedSettings.LoggingSetti" + + "ngs\032\230\002\n\016SpeechSettings\022\036\n\026endpointer_sen" + + "sitivity\030\001 \001(\005\0224\n\021no_speech_timeout\030\002 \001(" + + "\0132\031.google.protobuf.Duration\022%\n\035use_time" + + "out_based_endpointing\030\003 \001(\010\022Z\n\006models\030\005 " + + "\003(\0132J.google.cloud.dialogflow.cx.v3.Adva" + + "ncedSettings.SpeechSettings.ModelsEntry\032" + + "-\n\013ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\032\312\001\n\014DtmfSettings\022\017\n\007enabled\030\001 \001(\010" + + "\022\022\n\nmax_digits\030\002 \001(\005\022\024\n\014finish_digit\030\003 \001" + + "(\t\022>\n\033interdigit_timeout_duration\030\006 \001(\0132" + + "\031.google.protobuf.Duration\022?\n\034endpointin" + + "g_timeout_duration\030\007 \001(\0132\031.google.protob" + + "uf.Duration\032\201\001\n\017LoggingSettings\022\"\n\032enabl" + + "e_stackdriver_logging\030\002 \001(\010\022\"\n\032enable_in" + + "teraction_logging\030\003 \001(\010\022&\n\036enable_consen" + + "t_based_redaction\030\004 \001(\010B\273\001\n!com.google.c" + + "loud.dialogflow.cx.v3B\025AdvancedSettingsP" + + "rotoP\001Z1cloud.google.com/go/dialogflow/c" + + "x/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud" + + ".Dialogflow.Cx.V3\352\002!Google::Cloud::Dialo" + + "gflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -77,6 +99,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3.GcsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), }); internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_descriptor = getDescriptor().getMessageTypes().get(0); @@ -84,30 +107,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_descriptor, new java.lang.String[] { - "AudioExportGcsDestination", "DtmfSettings", "LoggingSettings", + "AudioExportGcsDestination", "SpeechSettings", "DtmfSettings", "LoggingSettings", }); - internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_descriptor = internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_descriptor .getNestedTypes() .get(0); + internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_descriptor, + new java.lang.String[] { + "EndpointerSensitivity", "NoSpeechTimeout", "UseTimeoutBasedEndpointing", "Models", + }); + internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_ModelsEntry_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_ModelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_SpeechSettings_ModelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_descriptor + .getNestedTypes() + .get(1); internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_DtmfSettings_descriptor, new java.lang.String[] { - "Enabled", "MaxDigits", "FinishDigit", + "Enabled", + "MaxDigits", + "FinishDigit", + "InterdigitTimeoutDuration", + "EndpointingTimeoutDuration", }); internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_LoggingSettings_descriptor = internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_descriptor .getNestedTypes() - .get(1); + .get(2); internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_LoggingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_LoggingSettings_descriptor, new java.lang.String[] { - "EnableStackdriverLogging", "EnableInteractionLogging", + "EnableStackdriverLogging", "EnableInteractionLogging", "EnableConsentBasedRedaction", }); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3.GcsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Agent.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Agent.java index 43f42723b380..dc2ac2b35fc0 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Agent.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Agent.java @@ -3868,6 +3868,904 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface PersonalizationSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Optional. Default end user metadata, used when processing DetectIntent
        +     * requests. Recommended to be filled as a template instead of hard-coded
        +     * value, for example { "age": "$session.params.age" }. The data will be
        +     * merged with the
        +     * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +     * in
        +     * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +     * during query processing.
        +     * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultEndUserMetadata field is set. + */ + boolean hasDefaultEndUserMetadata(); + /** + * + * + *
        +     * Optional. Default end user metadata, used when processing DetectIntent
        +     * requests. Recommended to be filled as a template instead of hard-coded
        +     * value, for example { "age": "$session.params.age" }. The data will be
        +     * merged with the
        +     * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +     * in
        +     * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +     * during query processing.
        +     * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultEndUserMetadata. + */ + com.google.protobuf.Struct getDefaultEndUserMetadata(); + /** + * + * + *
        +     * Optional. Default end user metadata, used when processing DetectIntent
        +     * requests. Recommended to be filled as a template instead of hard-coded
        +     * value, for example { "age": "$session.params.age" }. The data will be
        +     * merged with the
        +     * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +     * in
        +     * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +     * during query processing.
        +     * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getDefaultEndUserMetadataOrBuilder(); + } + /** + * + * + *
        +   * Settings for end user personalization.
        +   * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings} + */ + public static final class PersonalizationSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings) + PersonalizationSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersonalizationSettings.newBuilder() to construct. + private PersonalizationSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersonalizationSettings() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PersonalizationSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3_Agent_PersonalizationSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3_Agent_PersonalizationSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.class, + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.Builder.class); + } + + private int bitField0_; + public static final int DEFAULT_END_USER_METADATA_FIELD_NUMBER = 1; + private com.google.protobuf.Struct defaultEndUserMetadata_; + /** + * + * + *
        +     * Optional. Default end user metadata, used when processing DetectIntent
        +     * requests. Recommended to be filled as a template instead of hard-coded
        +     * value, for example { "age": "$session.params.age" }. The data will be
        +     * merged with the
        +     * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +     * in
        +     * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +     * during query processing.
        +     * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultEndUserMetadata field is set. + */ + @java.lang.Override + public boolean hasDefaultEndUserMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * Optional. Default end user metadata, used when processing DetectIntent
        +     * requests. Recommended to be filled as a template instead of hard-coded
        +     * value, for example { "age": "$session.params.age" }. The data will be
        +     * merged with the
        +     * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +     * in
        +     * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +     * during query processing.
        +     * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultEndUserMetadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getDefaultEndUserMetadata() { + return defaultEndUserMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : defaultEndUserMetadata_; + } + /** + * + * + *
        +     * Optional. Default end user metadata, used when processing DetectIntent
        +     * requests. Recommended to be filled as a template instead of hard-coded
        +     * value, for example { "age": "$session.params.age" }. The data will be
        +     * merged with the
        +     * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +     * in
        +     * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +     * during query processing.
        +     * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getDefaultEndUserMetadataOrBuilder() { + return defaultEndUserMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : defaultEndUserMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDefaultEndUserMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getDefaultEndUserMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings other = + (com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings) obj; + + if (hasDefaultEndUserMetadata() != other.hasDefaultEndUserMetadata()) return false; + if (hasDefaultEndUserMetadata()) { + if (!getDefaultEndUserMetadata().equals(other.getDefaultEndUserMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDefaultEndUserMetadata()) { + hash = (37 * hash) + DEFAULT_END_USER_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDefaultEndUserMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +     * Settings for end user personalization.
        +     * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings) + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3_Agent_PersonalizationSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3_Agent_PersonalizationSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.class, + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDefaultEndUserMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultEndUserMetadata_ = null; + if (defaultEndUserMetadataBuilder_ != null) { + defaultEndUserMetadataBuilder_.dispose(); + defaultEndUserMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3_Agent_PersonalizationSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings build() { + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings buildPartial() { + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings result = + new com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultEndUserMetadata_ = + defaultEndUserMetadataBuilder_ == null + ? defaultEndUserMetadata_ + : defaultEndUserMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings other) { + if (other + == com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.getDefaultInstance()) + return this; + if (other.hasDefaultEndUserMetadata()) { + mergeDefaultEndUserMetadata(other.getDefaultEndUserMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getDefaultEndUserMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Struct defaultEndUserMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + defaultEndUserMetadataBuilder_; + /** + * + * + *
        +       * Optional. Default end user metadata, used when processing DetectIntent
        +       * requests. Recommended to be filled as a template instead of hard-coded
        +       * value, for example { "age": "$session.params.age" }. The data will be
        +       * merged with the
        +       * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +       * in
        +       * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +       * during query processing.
        +       * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultEndUserMetadata field is set. + */ + public boolean hasDefaultEndUserMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +       * Optional. Default end user metadata, used when processing DetectIntent
        +       * requests. Recommended to be filled as a template instead of hard-coded
        +       * value, for example { "age": "$session.params.age" }. The data will be
        +       * merged with the
        +       * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +       * in
        +       * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +       * during query processing.
        +       * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultEndUserMetadata. + */ + public com.google.protobuf.Struct getDefaultEndUserMetadata() { + if (defaultEndUserMetadataBuilder_ == null) { + return defaultEndUserMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : defaultEndUserMetadata_; + } else { + return defaultEndUserMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
        +       * Optional. Default end user metadata, used when processing DetectIntent
        +       * requests. Recommended to be filled as a template instead of hard-coded
        +       * value, for example { "age": "$session.params.age" }. The data will be
        +       * merged with the
        +       * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +       * in
        +       * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +       * during query processing.
        +       * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultEndUserMetadata(com.google.protobuf.Struct value) { + if (defaultEndUserMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultEndUserMetadata_ = value; + } else { + defaultEndUserMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. Default end user metadata, used when processing DetectIntent
        +       * requests. Recommended to be filled as a template instead of hard-coded
        +       * value, for example { "age": "$session.params.age" }. The data will be
        +       * merged with the
        +       * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +       * in
        +       * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +       * during query processing.
        +       * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultEndUserMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (defaultEndUserMetadataBuilder_ == null) { + defaultEndUserMetadata_ = builderForValue.build(); + } else { + defaultEndUserMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. Default end user metadata, used when processing DetectIntent
        +       * requests. Recommended to be filled as a template instead of hard-coded
        +       * value, for example { "age": "$session.params.age" }. The data will be
        +       * merged with the
        +       * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +       * in
        +       * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +       * during query processing.
        +       * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDefaultEndUserMetadata(com.google.protobuf.Struct value) { + if (defaultEndUserMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && defaultEndUserMetadata_ != null + && defaultEndUserMetadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getDefaultEndUserMetadataBuilder().mergeFrom(value); + } else { + defaultEndUserMetadata_ = value; + } + } else { + defaultEndUserMetadataBuilder_.mergeFrom(value); + } + if (defaultEndUserMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +       * Optional. Default end user metadata, used when processing DetectIntent
        +       * requests. Recommended to be filled as a template instead of hard-coded
        +       * value, for example { "age": "$session.params.age" }. The data will be
        +       * merged with the
        +       * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +       * in
        +       * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +       * during query processing.
        +       * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDefaultEndUserMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + defaultEndUserMetadata_ = null; + if (defaultEndUserMetadataBuilder_ != null) { + defaultEndUserMetadataBuilder_.dispose(); + defaultEndUserMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. Default end user metadata, used when processing DetectIntent
        +       * requests. Recommended to be filled as a template instead of hard-coded
        +       * value, for example { "age": "$session.params.age" }. The data will be
        +       * merged with the
        +       * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +       * in
        +       * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +       * during query processing.
        +       * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getDefaultEndUserMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDefaultEndUserMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
        +       * Optional. Default end user metadata, used when processing DetectIntent
        +       * requests. Recommended to be filled as a template instead of hard-coded
        +       * value, for example { "age": "$session.params.age" }. The data will be
        +       * merged with the
        +       * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +       * in
        +       * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +       * during query processing.
        +       * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getDefaultEndUserMetadataOrBuilder() { + if (defaultEndUserMetadataBuilder_ != null) { + return defaultEndUserMetadataBuilder_.getMessageOrBuilder(); + } else { + return defaultEndUserMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : defaultEndUserMetadata_; + } + } + /** + * + * + *
        +       * Optional. Default end user metadata, used when processing DetectIntent
        +       * requests. Recommended to be filled as a template instead of hard-coded
        +       * value, for example { "age": "$session.params.age" }. The data will be
        +       * merged with the
        +       * [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
        +       * in
        +       * [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
        +       * during query processing.
        +       * 
        + * + * + * .google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getDefaultEndUserMetadataFieldBuilder() { + if (defaultEndUserMetadataBuilder_ == null) { + defaultEndUserMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getDefaultEndUserMetadata(), getParentForChildren(), isClean()); + defaultEndUserMetadata_ = null; + } + return defaultEndUserMetadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings) + private static final com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings(); + } + + public static com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersonalizationSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -4345,8 +5243,7 @@ public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings getSpeechToTextSet * Immutable. Name of the start flow in this agent. A start flow will be * automatically created when the agent is created, and can only be deleted by * deleting the agent. Format: `projects/<Project ID>/locations/<Location - * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start - * flow with id "00000000-0000-0000-0000-000000000000" is allowed. + * ID>/agents/<Agent ID>/flows/<Flow ID>`. *
        * * @@ -4374,8 +5271,7 @@ public java.lang.String getStartFlow() { * Immutable. Name of the start flow in this agent. A start flow will be * automatically created when the agent is created, and can only be deleted by * deleting the agent. Format: `projects/<Project ID>/locations/<Location - * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start - * flow with id "00000000-0000-0000-0000-000000000000" is allowed. + * ID>/agents/<Agent ID>/flows/<Flow ID>`. *
        * * @@ -4469,7 +5365,7 @@ public com.google.protobuf.ByteString getSecuritySettingsBytes() { * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See - * google/cloud/dialogflow/cx/v3/agent.proto;l=324 + * google/cloud/dialogflow/cx/v3/agent.proto;l=337 * @return The enableStackdriverLogging. */ @java.lang.Override @@ -4497,6 +5393,26 @@ public boolean getEnableSpellCorrection() { return enableSpellCorrection_; } + public static final int ENABLE_MULTI_LANGUAGE_TRAINING_FIELD_NUMBER = 40; + private boolean enableMultiLanguageTraining_ = false; + /** + * + * + *
        +   * Optional. Enable training multi-lingual models for this agent. These models
        +   * will be trained on all the languages supported by the agent.
        +   * 
        + * + * bool enable_multi_language_training = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableMultiLanguageTraining. + */ + @java.lang.Override + public boolean getEnableMultiLanguageTraining() { + return enableMultiLanguageTraining_; + } + public static final int LOCKED_FIELD_NUMBER = 27; private boolean locked_ = false; /** @@ -4797,6 +5713,64 @@ public boolean hasAnswerFeedbackSettings() { : answerFeedbackSettings_; } + public static final int PERSONALIZATION_SETTINGS_FIELD_NUMBER = 42; + private com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalizationSettings_; + /** + * + * + *
        +   * Optional. Settings for end user personalization.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the personalizationSettings field is set. + */ + @java.lang.Override + public boolean hasPersonalizationSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
        +   * Optional. Settings for end user personalization.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personalizationSettings. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings + getPersonalizationSettings() { + return personalizationSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.getDefaultInstance() + : personalizationSettings_; + } + /** + * + * + *
        +   * Optional. Settings for end user personalization.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettingsOrBuilder + getPersonalizationSettingsOrBuilder() { + return personalizationSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.getDefaultInstance() + : personalizationSettings_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4866,6 +5840,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(38, getAnswerFeedbackSettings()); } + if (enableMultiLanguageTraining_ != false) { + output.writeBool(40, enableMultiLanguageTraining_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(42, getPersonalizationSettings()); + } getUnknownFields().writeTo(output); } @@ -4939,6 +5919,15 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getAnswerFeedbackSettings()); } + if (enableMultiLanguageTraining_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(40, enableMultiLanguageTraining_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 42, getPersonalizationSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4970,6 +5959,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSecuritySettings().equals(other.getSecuritySettings())) return false; if (getEnableStackdriverLogging() != other.getEnableStackdriverLogging()) return false; if (getEnableSpellCorrection() != other.getEnableSpellCorrection()) return false; + if (getEnableMultiLanguageTraining() != other.getEnableMultiLanguageTraining()) return false; if (getLocked() != other.getLocked()) return false; if (hasAdvancedSettings() != other.hasAdvancedSettings()) return false; if (hasAdvancedSettings()) { @@ -4991,6 +5981,10 @@ public boolean equals(final java.lang.Object obj) { if (hasAnswerFeedbackSettings()) { if (!getAnswerFeedbackSettings().equals(other.getAnswerFeedbackSettings())) return false; } + if (hasPersonalizationSettings() != other.hasPersonalizationSettings()) return false; + if (hasPersonalizationSettings()) { + if (!getPersonalizationSettings().equals(other.getPersonalizationSettings())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5030,6 +6024,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableStackdriverLogging()); hash = (37 * hash) + ENABLE_SPELL_CORRECTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpellCorrection()); + hash = (37 * hash) + ENABLE_MULTI_LANGUAGE_TRAINING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableMultiLanguageTraining()); hash = (37 * hash) + LOCKED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocked()); if (hasAdvancedSettings()) { @@ -5052,6 +6048,10 @@ public int hashCode() { hash = (37 * hash) + ANSWER_FEEDBACK_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getAnswerFeedbackSettings().hashCode(); } + if (hasPersonalizationSettings()) { + hash = (37 * hash) + PERSONALIZATION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getPersonalizationSettings().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5210,6 +6210,7 @@ private void maybeForceBuilderInitialization() { getTextToSpeechSettingsFieldBuilder(); getGenAppBuilderSettingsFieldBuilder(); getAnswerFeedbackSettingsFieldBuilder(); + getPersonalizationSettingsFieldBuilder(); } } @@ -5233,6 +6234,7 @@ public Builder clear() { securitySettings_ = ""; enableStackdriverLogging_ = false; enableSpellCorrection_ = false; + enableMultiLanguageTraining_ = false; locked_ = false; advancedSettings_ = null; if (advancedSettingsBuilder_ != null) { @@ -5259,6 +6261,11 @@ public Builder clear() { answerFeedbackSettingsBuilder_.dispose(); answerFeedbackSettingsBuilder_ = null; } + personalizationSettings_ = null; + if (personalizationSettingsBuilder_ != null) { + personalizationSettingsBuilder_.dispose(); + personalizationSettingsBuilder_ = null; + } return this; } @@ -5338,41 +6345,51 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Agent result) { result.enableSpellCorrection_ = enableSpellCorrection_; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.locked_ = locked_; + result.enableMultiLanguageTraining_ = enableMultiLanguageTraining_; } if (((from_bitField0_ & 0x00002000) != 0)) { + result.locked_ = locked_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { result.advancedSettings_ = advancedSettingsBuilder_ == null ? advancedSettings_ : advancedSettingsBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.gitIntegrationSettings_ = gitIntegrationSettingsBuilder_ == null ? gitIntegrationSettings_ : gitIntegrationSettingsBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.textToSpeechSettings_ = textToSpeechSettingsBuilder_ == null ? textToSpeechSettings_ : textToSpeechSettingsBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.genAppBuilderSettings_ = genAppBuilderSettingsBuilder_ == null ? genAppBuilderSettings_ : genAppBuilderSettingsBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.answerFeedbackSettings_ = answerFeedbackSettingsBuilder_ == null ? answerFeedbackSettings_ : answerFeedbackSettingsBuilder_.build(); to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.personalizationSettings_ = + personalizationSettingsBuilder_ == null + ? personalizationSettings_ + : personalizationSettingsBuilder_.build(); + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -5480,6 +6497,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Agent other) { if (other.getEnableSpellCorrection() != false) { setEnableSpellCorrection(other.getEnableSpellCorrection()); } + if (other.getEnableMultiLanguageTraining() != false) { + setEnableMultiLanguageTraining(other.getEnableMultiLanguageTraining()); + } if (other.getLocked() != false) { setLocked(other.getLocked()); } @@ -5498,6 +6518,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Agent other) { if (other.hasAnswerFeedbackSettings()) { mergeAnswerFeedbackSettings(other.getAnswerFeedbackSettings()); } + if (other.hasPersonalizationSettings()) { + mergePersonalizationSettings(other.getPersonalizationSettings()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5602,43 +6625,56 @@ public Builder mergeFrom( { input.readMessage( getAdvancedSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 178 case 216: { locked_ = input.readBool(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 216 case 242: { input.readMessage( getGitIntegrationSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 242 case 250: { input.readMessage( getTextToSpeechSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 250 case 266: { input.readMessage( getGenAppBuilderSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 266 case 306: { input.readMessage( getAnswerFeedbackSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 306 + case 320: + { + enableMultiLanguageTraining_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 320 + case 338: + { + input.readMessage( + getPersonalizationSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 338 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6786,8 +7822,7 @@ public Builder clearSpeechToTextSettings() { * Immutable. Name of the start flow in this agent. A start flow will be * automatically created when the agent is created, and can only be deleted by * deleting the agent. Format: `projects/<Project ID>/locations/<Location - * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start - * flow with id "00000000-0000-0000-0000-000000000000" is allowed. + * ID>/agents/<Agent ID>/flows/<Flow ID>`. *
        * * @@ -6814,8 +7849,7 @@ public java.lang.String getStartFlow() { * Immutable. Name of the start flow in this agent. A start flow will be * automatically created when the agent is created, and can only be deleted by * deleting the agent. Format: `projects/<Project ID>/locations/<Location - * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start - * flow with id "00000000-0000-0000-0000-000000000000" is allowed. + * ID>/agents/<Agent ID>/flows/<Flow ID>`. *
        * * @@ -6842,8 +7876,7 @@ public com.google.protobuf.ByteString getStartFlowBytes() { * Immutable. Name of the start flow in this agent. A start flow will be * automatically created when the agent is created, and can only be deleted by * deleting the agent. Format: `projects/<Project ID>/locations/<Location - * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start - * flow with id "00000000-0000-0000-0000-000000000000" is allowed. + * ID>/agents/<Agent ID>/flows/<Flow ID>`. *
        * * @@ -6869,8 +7902,7 @@ public Builder setStartFlow(java.lang.String value) { * Immutable. Name of the start flow in this agent. A start flow will be * automatically created when the agent is created, and can only be deleted by * deleting the agent. Format: `projects/<Project ID>/locations/<Location - * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start - * flow with id "00000000-0000-0000-0000-000000000000" is allowed. + * ID>/agents/<Agent ID>/flows/<Flow ID>`. *
        * * @@ -6892,8 +7924,7 @@ public Builder clearStartFlow() { * Immutable. Name of the start flow in this agent. A start flow will be * automatically created when the agent is created, and can only be deleted by * deleting the agent. Format: `projects/<Project ID>/locations/<Location - * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start - * flow with id "00000000-0000-0000-0000-000000000000" is allowed. + * ID>/agents/<Agent ID>/flows/<Flow ID>`. *
        * * @@ -7049,7 +8080,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See - * google/cloud/dialogflow/cx/v3/agent.proto;l=324 + * google/cloud/dialogflow/cx/v3/agent.proto;l=337 * @return The enableStackdriverLogging. */ @java.lang.Override @@ -7070,7 +8101,7 @@ public boolean getEnableStackdriverLogging() { * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See - * google/cloud/dialogflow/cx/v3/agent.proto;l=324 + * google/cloud/dialogflow/cx/v3/agent.proto;l=337 * @param value The enableStackdriverLogging to set. * @return This builder for chaining. */ @@ -7095,7 +8126,7 @@ public Builder setEnableStackdriverLogging(boolean value) { * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See - * google/cloud/dialogflow/cx/v3/agent.proto;l=324 + * google/cloud/dialogflow/cx/v3/agent.proto;l=337 * @return This builder for chaining. */ @java.lang.Deprecated @@ -7162,6 +8193,65 @@ public Builder clearEnableSpellCorrection() { return this; } + private boolean enableMultiLanguageTraining_; + /** + * + * + *
        +     * Optional. Enable training multi-lingual models for this agent. These models
        +     * will be trained on all the languages supported by the agent.
        +     * 
        + * + * bool enable_multi_language_training = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableMultiLanguageTraining. + */ + @java.lang.Override + public boolean getEnableMultiLanguageTraining() { + return enableMultiLanguageTraining_; + } + /** + * + * + *
        +     * Optional. Enable training multi-lingual models for this agent. These models
        +     * will be trained on all the languages supported by the agent.
        +     * 
        + * + * bool enable_multi_language_training = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableMultiLanguageTraining to set. + * @return This builder for chaining. + */ + public Builder setEnableMultiLanguageTraining(boolean value) { + + enableMultiLanguageTraining_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Enable training multi-lingual models for this agent. These models
        +     * will be trained on all the languages supported by the agent.
        +     * 
        + * + * bool enable_multi_language_training = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableMultiLanguageTraining() { + bitField0_ = (bitField0_ & ~0x00001000); + enableMultiLanguageTraining_ = false; + onChanged(); + return this; + } + private boolean locked_; /** * @@ -7195,7 +8285,7 @@ public boolean getLocked() { public Builder setLocked(boolean value) { locked_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -7212,7 +8302,7 @@ public Builder setLocked(boolean value) { * @return This builder for chaining. */ public Builder clearLocked() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); locked_ = false; onChanged(); return this; @@ -7237,7 +8327,7 @@ public Builder clearLocked() { * @return Whether the advancedSettings field is set. */ public boolean hasAdvancedSettings() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -7279,7 +8369,7 @@ public Builder setAdvancedSettings(com.google.cloud.dialogflow.cx.v3.AdvancedSet } else { advancedSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -7300,7 +8390,7 @@ public Builder setAdvancedSettings( } else { advancedSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -7316,7 +8406,7 @@ public Builder setAdvancedSettings( */ public Builder mergeAdvancedSettings(com.google.cloud.dialogflow.cx.v3.AdvancedSettings value) { if (advancedSettingsBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && advancedSettings_ != null && advancedSettings_ != com.google.cloud.dialogflow.cx.v3.AdvancedSettings.getDefaultInstance()) { @@ -7328,7 +8418,7 @@ public Builder mergeAdvancedSettings(com.google.cloud.dialogflow.cx.v3.AdvancedS advancedSettingsBuilder_.mergeFrom(value); } if (advancedSettings_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -7344,7 +8434,7 @@ public Builder mergeAdvancedSettings(com.google.cloud.dialogflow.cx.v3.AdvancedS * .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22; */ public Builder clearAdvancedSettings() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); advancedSettings_ = null; if (advancedSettingsBuilder_ != null) { advancedSettingsBuilder_.dispose(); @@ -7364,7 +8454,7 @@ public Builder clearAdvancedSettings() { * .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22; */ public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder getAdvancedSettingsBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return getAdvancedSettingsFieldBuilder().getBuilder(); } @@ -7435,7 +8525,7 @@ public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder getAdvancedSet * @return Whether the gitIntegrationSettings field is set. */ public boolean hasGitIntegrationSettings() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -7481,7 +8571,7 @@ public Builder setGitIntegrationSettings( } else { gitIntegrationSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -7503,7 +8593,7 @@ public Builder setGitIntegrationSettings( } else { gitIntegrationSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -7521,7 +8611,7 @@ public Builder setGitIntegrationSettings( public Builder mergeGitIntegrationSettings( com.google.cloud.dialogflow.cx.v3.Agent.GitIntegrationSettings value) { if (gitIntegrationSettingsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && gitIntegrationSettings_ != null && gitIntegrationSettings_ != com.google.cloud.dialogflow.cx.v3.Agent.GitIntegrationSettings @@ -7534,7 +8624,7 @@ public Builder mergeGitIntegrationSettings( gitIntegrationSettingsBuilder_.mergeFrom(value); } if (gitIntegrationSettings_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -7551,7 +8641,7 @@ public Builder mergeGitIntegrationSettings( *
        */ public Builder clearGitIntegrationSettings() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); gitIntegrationSettings_ = null; if (gitIntegrationSettingsBuilder_ != null) { gitIntegrationSettingsBuilder_.dispose(); @@ -7573,7 +8663,7 @@ public Builder clearGitIntegrationSettings() { */ public com.google.cloud.dialogflow.cx.v3.Agent.GitIntegrationSettings.Builder getGitIntegrationSettingsBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getGitIntegrationSettingsFieldBuilder().getBuilder(); } @@ -7646,7 +8736,7 @@ public Builder clearGitIntegrationSettings() { * @return Whether the textToSpeechSettings field is set. */ public boolean hasTextToSpeechSettings() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -7691,7 +8781,7 @@ public Builder setTextToSpeechSettings( } else { textToSpeechSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7713,7 +8803,7 @@ public Builder setTextToSpeechSettings( } else { textToSpeechSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7731,7 +8821,7 @@ public Builder setTextToSpeechSettings( public Builder mergeTextToSpeechSettings( com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings value) { if (textToSpeechSettingsBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && textToSpeechSettings_ != null && textToSpeechSettings_ != com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.getDefaultInstance()) { @@ -7743,7 +8833,7 @@ public Builder mergeTextToSpeechSettings( textToSpeechSettingsBuilder_.mergeFrom(value); } if (textToSpeechSettings_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -7760,7 +8850,7 @@ public Builder mergeTextToSpeechSettings( *
        */ public Builder clearTextToSpeechSettings() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); textToSpeechSettings_ = null; if (textToSpeechSettingsBuilder_ != null) { textToSpeechSettingsBuilder_.dispose(); @@ -7782,7 +8872,7 @@ public Builder clearTextToSpeechSettings() { */ public com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.Builder getTextToSpeechSettingsBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return getTextToSpeechSettingsFieldBuilder().getBuilder(); } @@ -7855,7 +8945,7 @@ public Builder clearTextToSpeechSettings() { * @return Whether the genAppBuilderSettings field is set. */ public boolean hasGenAppBuilderSettings() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -7901,7 +8991,7 @@ public Builder setGenAppBuilderSettings( } else { genAppBuilderSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7923,7 +9013,7 @@ public Builder setGenAppBuilderSettings( } else { genAppBuilderSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7941,7 +9031,7 @@ public Builder setGenAppBuilderSettings( public Builder mergeGenAppBuilderSettings( com.google.cloud.dialogflow.cx.v3.Agent.GenAppBuilderSettings value) { if (genAppBuilderSettingsBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && genAppBuilderSettings_ != null && genAppBuilderSettings_ != com.google.cloud.dialogflow.cx.v3.Agent.GenAppBuilderSettings @@ -7954,7 +9044,7 @@ public Builder mergeGenAppBuilderSettings( genAppBuilderSettingsBuilder_.mergeFrom(value); } if (genAppBuilderSettings_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -7971,7 +9061,7 @@ public Builder mergeGenAppBuilderSettings( *
        */ public Builder clearGenAppBuilderSettings() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); genAppBuilderSettings_ = null; if (genAppBuilderSettingsBuilder_ != null) { genAppBuilderSettingsBuilder_.dispose(); @@ -7993,7 +9083,7 @@ public Builder clearGenAppBuilderSettings() { */ public com.google.cloud.dialogflow.cx.v3.Agent.GenAppBuilderSettings.Builder getGenAppBuilderSettingsBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return getGenAppBuilderSettingsFieldBuilder().getBuilder(); } @@ -8066,7 +9156,7 @@ public Builder clearGenAppBuilderSettings() { * @return Whether the answerFeedbackSettings field is set. */ public boolean hasAnswerFeedbackSettings() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -8112,7 +9202,7 @@ public Builder setAnswerFeedbackSettings( } else { answerFeedbackSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -8134,7 +9224,7 @@ public Builder setAnswerFeedbackSettings( } else { answerFeedbackSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -8152,7 +9242,7 @@ public Builder setAnswerFeedbackSettings( public Builder mergeAnswerFeedbackSettings( com.google.cloud.dialogflow.cx.v3.Agent.AnswerFeedbackSettings value) { if (answerFeedbackSettingsBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00040000) != 0) && answerFeedbackSettings_ != null && answerFeedbackSettings_ != com.google.cloud.dialogflow.cx.v3.Agent.AnswerFeedbackSettings @@ -8165,7 +9255,7 @@ public Builder mergeAnswerFeedbackSettings( answerFeedbackSettingsBuilder_.mergeFrom(value); } if (answerFeedbackSettings_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -8182,7 +9272,7 @@ public Builder mergeAnswerFeedbackSettings( *
        */ public Builder clearAnswerFeedbackSettings() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); answerFeedbackSettings_ = null; if (answerFeedbackSettingsBuilder_ != null) { answerFeedbackSettingsBuilder_.dispose(); @@ -8204,7 +9294,7 @@ public Builder clearAnswerFeedbackSettings() { */ public com.google.cloud.dialogflow.cx.v3.Agent.AnswerFeedbackSettings.Builder getAnswerFeedbackSettingsBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return getAnswerFeedbackSettingsFieldBuilder().getBuilder(); } @@ -8257,6 +9347,218 @@ public Builder clearAnswerFeedbackSettings() { return answerFeedbackSettingsBuilder_; } + private com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings + personalizationSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings, + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.Builder, + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettingsOrBuilder> + personalizationSettingsBuilder_; + /** + * + * + *
        +     * Optional. Settings for end user personalization.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the personalizationSettings field is set. + */ + public boolean hasPersonalizationSettings() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + * + * + *
        +     * Optional. Settings for end user personalization.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personalizationSettings. + */ + public com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings + getPersonalizationSettings() { + if (personalizationSettingsBuilder_ == null) { + return personalizationSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.getDefaultInstance() + : personalizationSettings_; + } else { + return personalizationSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Settings for end user personalization.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPersonalizationSettings( + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings value) { + if (personalizationSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + personalizationSettings_ = value; + } else { + personalizationSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Settings for end user personalization.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPersonalizationSettings( + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.Builder builderForValue) { + if (personalizationSettingsBuilder_ == null) { + personalizationSettings_ = builderForValue.build(); + } else { + personalizationSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Settings for end user personalization.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePersonalizationSettings( + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings value) { + if (personalizationSettingsBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && personalizationSettings_ != null + && personalizationSettings_ + != com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings + .getDefaultInstance()) { + getPersonalizationSettingsBuilder().mergeFrom(value); + } else { + personalizationSettings_ = value; + } + } else { + personalizationSettingsBuilder_.mergeFrom(value); + } + if (personalizationSettings_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Settings for end user personalization.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPersonalizationSettings() { + bitField0_ = (bitField0_ & ~0x00080000); + personalizationSettings_ = null; + if (personalizationSettingsBuilder_ != null) { + personalizationSettingsBuilder_.dispose(); + personalizationSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Settings for end user personalization.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.Builder + getPersonalizationSettingsBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getPersonalizationSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Settings for end user personalization.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettingsOrBuilder + getPersonalizationSettingsOrBuilder() { + if (personalizationSettingsBuilder_ != null) { + return personalizationSettingsBuilder_.getMessageOrBuilder(); + } else { + return personalizationSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.getDefaultInstance() + : personalizationSettings_; + } + } + /** + * + * + *
        +     * Optional. Settings for end user personalization.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings, + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.Builder, + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettingsOrBuilder> + getPersonalizationSettingsFieldBuilder() { + if (personalizationSettingsBuilder_ == null) { + personalizationSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings, + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings.Builder, + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettingsOrBuilder>( + getPersonalizationSettings(), getParentForChildren(), isClean()); + personalizationSettings_ = null; + } + return personalizationSettingsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentOrBuilder.java index 6a117dbc4e5d..d4469a746911 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentOrBuilder.java @@ -312,8 +312,7 @@ public interface AgentOrBuilder * Immutable. Name of the start flow in this agent. A start flow will be * automatically created when the agent is created, and can only be deleted by * deleting the agent. Format: `projects/<Project ID>/locations/<Location - * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start - * flow with id "00000000-0000-0000-0000-000000000000" is allowed. + * ID>/agents/<Agent ID>/flows/<Flow ID>`. *
        * * @@ -330,8 +329,7 @@ public interface AgentOrBuilder * Immutable. Name of the start flow in this agent. A start flow will be * automatically created when the agent is created, and can only be deleted by * deleting the agent. Format: `projects/<Project ID>/locations/<Location - * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start - * flow with id "00000000-0000-0000-0000-000000000000" is allowed. + * ID>/agents/<Agent ID>/flows/<Flow ID>`. *
        * * @@ -386,7 +384,7 @@ public interface AgentOrBuilder * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See - * google/cloud/dialogflow/cx/v3/agent.proto;l=324 + * google/cloud/dialogflow/cx/v3/agent.proto;l=337 * @return The enableStackdriverLogging. */ @java.lang.Deprecated @@ -406,6 +404,21 @@ public interface AgentOrBuilder */ boolean getEnableSpellCorrection(); + /** + * + * + *
        +   * Optional. Enable training multi-lingual models for this agent. These models
        +   * will be trained on all the languages supported by the agent.
        +   * 
        + * + * bool enable_multi_language_training = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableMultiLanguageTraining. + */ + boolean getEnableMultiLanguageTraining(); + /** * * @@ -622,4 +635,46 @@ public interface AgentOrBuilder */ com.google.cloud.dialogflow.cx.v3.Agent.AnswerFeedbackSettingsOrBuilder getAnswerFeedbackSettingsOrBuilder(); + + /** + * + * + *
        +   * Optional. Settings for end user personalization.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the personalizationSettings field is set. + */ + boolean hasPersonalizationSettings(); + /** + * + * + *
        +   * Optional. Settings for end user personalization.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personalizationSettings. + */ + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings getPersonalizationSettings(); + /** + * + * + *
        +   * Optional. Settings for end user personalization.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings personalization_settings = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettingsOrBuilder + getPersonalizationSettingsOrBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentProto.java index 2b7df302ceb5..6e194b64f246 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3_Agent_AnswerFeedbackSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3_Agent_AnswerFeedbackSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_Agent_PersonalizationSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_Agent_PersonalizationSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3_ListAgentsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -139,7 +143,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rotobuf/empty.proto\032 google/protobuf/fie" + "ld_mask.proto\032\034google/protobuf/struct.pr" + "oto\"8\n\024SpeechToTextSettings\022 \n\030enable_sp" - + "eech_adaptation\030\001 \001(\010\"\264\013\n\005Agent\022\014\n\004name\030" + + "eech_adaptation\030\001 \001(\010\"\242\r\n\005Agent\022\014\n\004name\030" + "\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022%\n\025defa" + "ult_language_code\030\003 \001(\tB\006\340A\002\340A\005\022 \n\030suppo" + "rted_language_codes\030\004 \003(\t\022\026\n\ttime_zone\030\005" @@ -151,157 +155,163 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "security_settings\030\021 \001(\tB/\372A,\n*dialogflow" + ".googleapis.com/SecuritySettings\022&\n\032enab" + "le_stackdriver_logging\030\022 \001(\010B\002\030\001\022\037\n\027enab" - + "le_spell_correction\030\024 \001(\010\022\016\n\006locked\030\033 \001(" - + "\010\022J\n\021advanced_settings\030\026 \001(\0132/.google.cl" - + "oud.dialogflow.cx.v3.AdvancedSettings\022]\n" - + "\030git_integration_settings\030\036 \001(\0132;.google" - + ".cloud.dialogflow.cx.v3.Agent.GitIntegra" - + "tionSettings\022T\n\027text_to_speech_settings\030" - + "\037 \001(\01323.google.cloud.dialogflow.cx.v3.Te" - + "xtToSpeechSettings\022a\n\030gen_app_builder_se" - + "ttings\030! \001(\0132:.google.cloud.dialogflow.c" - + "x.v3.Agent.GenAppBuilderSettingsH\000\210\001\001\022b\n" - + "\030answer_feedback_settings\030& \001(\0132;.google" - + ".cloud.dialogflow.cx.v3.Agent.AnswerFeed" - + "backSettingsB\003\340A\001\032\220\002\n\026GitIntegrationSett" - + "ings\022e\n\017github_settings\030\001 \001(\0132J.google.c" - + "loud.dialogflow.cx.v3.Agent.GitIntegrati" - + "onSettings.GithubSettingsH\000\032\177\n\016GithubSet" - + "tings\022\024\n\014display_name\030\001 \001(\t\022\026\n\016repositor" - + "y_uri\030\002 \001(\t\022\027\n\017tracking_branch\030\003 \001(\t\022\024\n\014" - + "access_token\030\004 \001(\t\022\020\n\010branches\030\005 \003(\tB\016\n\014" - + "git_settings\032,\n\025GenAppBuilderSettings\022\023\n" - + "\006engine\030\001 \001(\tB\003\340A\002\032=\n\026AnswerFeedbackSett" - + "ings\022#\n\026enable_answer_feedback\030\001 \001(\010B\003\340A" - + "\001:\\\352AY\n\037dialogflow.googleapis.com/Agent\022" - + "6projects/{project}/locations/{location}" - + "/agents/{agent}B\033\n\031_gen_app_builder_sett" - + "ings\"s\n\021ListAgentsRequest\0227\n\006parent\030\001 \001(" - + "\tB\'\340A\002\372A!\022\037dialogflow.googleapis.com/Age" - + "nt\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"c\n\022ListAgentsResponse\0224\n\006agents\030\001 \003(\0132" - + "$.google.cloud.dialogflow.cx.v3.Agent\022\027\n" - + "\017next_page_token\030\002 \001(\t\"H\n\017GetAgentReques" - + "t\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.goog" - + "leapis.com/Agent\"\207\001\n\022CreateAgentRequest\022" - + "7\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037dialogflow.goog" - + "leapis.com/Agent\0228\n\005agent\030\002 \001(\0132$.google" - + ".cloud.dialogflow.cx.v3.AgentB\003\340A\002\"\177\n\022Up" - + "dateAgentRequest\0228\n\005agent\030\001 \001(\0132$.google" - + ".cloud.dialogflow.cx.v3.AgentB\003\340A\002\022/\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "ask\"K\n\022DeleteAgentRequest\0225\n\004name\030\001 \001(\tB" - + "\'\340A\002\372A!\n\037dialogflow.googleapis.com/Agent" - + "\"\230\004\n\022ExportAgentRequest\0225\n\004name\030\001 \001(\tB\'\340" - + "A\002\372A!\n\037dialogflow.googleapis.com/Agent\022\026" - + "\n\tagent_uri\030\002 \001(\tB\003\340A\001\022V\n\013data_format\030\003 " - + "\001(\0162<.google.cloud.dialogflow.cx.v3.Expo" - + "rtAgentRequest.DataFormatB\003\340A\001\022B\n\013enviro" - + "nment\030\005 \001(\tB-\340A\001\372A\'\n%dialogflow.googleap" - + "is.com/Environment\022^\n\017git_destination\030\006 " - + "\001(\0132@.google.cloud.dialogflow.cx.v3.Expo" - + "rtAgentRequest.GitDestinationB\003\340A\001\022-\n in" - + "clude_bigquery_export_settings\030\007 \001(\010B\003\340A" - + "\001\032A\n\016GitDestination\022\027\n\017tracking_branch\030\001" - + " \001(\t\022\026\n\016commit_message\030\002 \001(\t\"E\n\nDataForm" - + "at\022\033\n\027DATA_FORMAT_UNSPECIFIED\020\000\022\010\n\004BLOB\020" - + "\001\022\020\n\014JSON_PACKAGE\020\004\"b\n\023ExportAgentRespon" - + "se\022\023\n\tagent_uri\030\001 \001(\tH\000\022\027\n\ragent_content" - + "\030\002 \001(\014H\000\022\024\n\ncommit_sha\030\003 \001(\tH\000B\007\n\005agent\"" - + "\240\003\n\023RestoreAgentRequest\0225\n\004name\030\001 \001(\tB\'\340" - + "A\002\372A!\n\037dialogflow.googleapis.com/Agent\022\023" - + "\n\tagent_uri\030\002 \001(\tH\000\022\027\n\ragent_content\030\003 \001" - + "(\014H\000\022R\n\ngit_source\030\006 \001(\0132<.google.cloud." - + "dialogflow.cx.v3.RestoreAgentRequest.Git" - + "SourceH\000\022X\n\016restore_option\030\005 \001(\0162@.googl" - + "e.cloud.dialogflow.cx.v3.RestoreAgentReq" - + "uest.RestoreOption\032$\n\tGitSource\022\027\n\017track" - + "ing_branch\030\001 \001(\t\"G\n\rRestoreOption\022\036\n\032RES" - + "TORE_OPTION_UNSPECIFIED\020\000\022\010\n\004KEEP\020\001\022\014\n\010F" - + "ALLBACK\020\002B\007\n\005agent\"d\n\024ValidateAgentReque" - + "st\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.goo" - + "gleapis.com/Agent\022\025\n\rlanguage_code\030\002 \001(\t" - + "\"\177\n\037GetAgentValidationResultRequest\022E\n\004n" - + "ame\030\001 \001(\tB7\340A\002\372A1\n/dialogflow.googleapis" - + ".com/AgentValidationResult\022\025\n\rlanguage_c" - + "ode\030\002 \001(\t\"\372\001\n\025AgentValidationResult\022\014\n\004n" - + "ame\030\001 \001(\t\022T\n\027flow_validation_results\030\002 \003" - + "(\01323.google.cloud.dialogflow.cx.v3.FlowV" - + "alidationResult:}\352Az\n/dialogflow.googlea" - + "pis.com/AgentValidationResult\022Gprojects/" - + "{project}/locations/{location}/agents/{a" - + "gent}/validationResult\"\203\001\n\034GetGenerative" - + "SettingsRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1d" - + "ialogflow.googleapis.com/AgentGenerative" - + "Settings\022\032\n\rlanguage_code\030\002 \001(\tB\003\340A\002\"\254\001\n" - + "\037UpdateGenerativeSettingsRequest\022S\n\023gene" - + "rative_settings\030\001 \001(\01321.google.cloud.dia" - + "logflow.cx.v3.GenerativeSettingsB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" - + "ldMaskB\003\340A\0012\242\022\n\006Agents\022\256\001\n\nListAgents\0220." - + "google.cloud.dialogflow.cx.v3.ListAgents" - + "Request\0321.google.cloud.dialogflow.cx.v3." - + "ListAgentsResponse\";\332A\006parent\202\323\344\223\002,\022*/v3" - + "/{parent=projects/*/locations/*}/agents\022" - + "\233\001\n\010GetAgent\022..google.cloud.dialogflow.c" - + "x.v3.GetAgentRequest\032$.google.cloud.dial" - + "ogflow.cx.v3.Agent\"9\332A\004name\202\323\344\223\002,\022*/v3/{" - + "name=projects/*/locations/*/agents/*}\022\260\001" - + "\n\013CreateAgent\0221.google.cloud.dialogflow." - + "cx.v3.CreateAgentRequest\032$.google.cloud." - + "dialogflow.cx.v3.Agent\"H\332A\014parent,agent\202" - + "\323\344\223\0023\"*/v3/{parent=projects/*/locations/" - + "*}/agents:\005agent\022\273\001\n\013UpdateAgent\0221.googl" - + "e.cloud.dialogflow.cx.v3.UpdateAgentRequ" - + "est\032$.google.cloud.dialogflow.cx.v3.Agen" - + "t\"S\332A\021agent,update_mask\202\323\344\223\002920/v3/{agen" - + "t.name=projects/*/locations/*/agents/*}:" - + "\005agent\022\223\001\n\013DeleteAgent\0221.google.cloud.di" - + "alogflow.cx.v3.DeleteAgentRequest\032\026.goog" - + "le.protobuf.Empty\"9\332A\004name\202\323\344\223\002,**/v3/{n" - + "ame=projects/*/locations/*/agents/*}\022\315\001\n" - + "\013ExportAgent\0221.google.cloud.dialogflow.c" - + "x.v3.ExportAgentRequest\032\035.google.longrun" - + "ning.Operation\"l\312A-\n\023ExportAgentResponse" - + "\022\026google.protobuf.Struct\202\323\344\223\0026\"1/v3/{nam" - + "e=projects/*/locations/*/agents/*}:expor" - + "t:\001*\022\322\001\n\014RestoreAgent\0222.google.cloud.dia" - + "logflow.cx.v3.RestoreAgentRequest\032\035.goog" - + "le.longrunning.Operation\"o\312A/\n\025google.pr" - + "otobuf.Empty\022\026google.protobuf.Struct\202\323\344\223" - + "\0027\"2/v3/{name=projects/*/locations/*/age" - + "nts/*}:restore:\001*\022\272\001\n\rValidateAgent\0223.go" - + "ogle.cloud.dialogflow.cx.v3.ValidateAgen" - + "tRequest\0324.google.cloud.dialogflow.cx.v3" - + ".AgentValidationResult\">\202\323\344\223\0028\"3/v3/{nam" - + "e=projects/*/locations/*/agents/*}:valid" - + "ate:\001*\022\334\001\n\030GetAgentValidationResult\022>.go" - + "ogle.cloud.dialogflow.cx.v3.GetAgentVali" - + "dationResultRequest\0324.google.cloud.dialo" - + "gflow.cx.v3.AgentValidationResult\"J\332A\004na" - + "me\202\323\344\223\002=\022;/v3/{name=projects/*/locations" - + "/*/agents/*/validationResult}\022\343\001\n\025GetGen" - + "erativeSettings\022;.google.cloud.dialogflo" - + "w.cx.v3.GetGenerativeSettingsRequest\0321.g" - + "oogle.cloud.dialogflow.cx.v3.GenerativeS" - + "ettings\"Z\332A\022name,language_code\202\323\344\223\002?\022=/v" - + "3/{name=projects/*/locations/*/agents/*/" - + "generativeSettings}\022\240\002\n\030UpdateGenerative" - + "Settings\022>.google.cloud.dialogflow.cx.v3" - + ".UpdateGenerativeSettingsRequest\0321.googl" - + "e.cloud.dialogflow.cx.v3.GenerativeSetti" - + "ngs\"\220\001\332A\037generative_settings,update_mask" - + "\202\323\344\223\002h2Q/v3/{generative_settings.name=pr" - + "ojects/*/locations/*/agents/*/generative" - + "Settings}:\023generative_settings\032x\312A\031dialo" - + "gflow.googleapis.com\322AYhttps://www.googl" - + "eapis.com/auth/cloud-platform,https://ww" - + "w.googleapis.com/auth/dialogflowB\260\001\n!com" - + ".google.cloud.dialogflow.cx.v3B\nAgentPro" - + "toP\001Z1cloud.google.com/go/dialogflow/cx/" - + "apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.D" - + "ialogflow.Cx.V3\352\002!Google::Cloud::Dialogf" - + "low::CX::V3b\006proto3" + + "le_spell_correction\030\024 \001(\010\022+\n\036enable_mult" + + "i_language_training\030( \001(\010B\003\340A\001\022\016\n\006locked" + + "\030\033 \001(\010\022J\n\021advanced_settings\030\026 \001(\0132/.goog" + + "le.cloud.dialogflow.cx.v3.AdvancedSettin" + + "gs\022]\n\030git_integration_settings\030\036 \001(\0132;.g" + + "oogle.cloud.dialogflow.cx.v3.Agent.GitIn" + + "tegrationSettings\022T\n\027text_to_speech_sett" + + "ings\030\037 \001(\01323.google.cloud.dialogflow.cx." + + "v3.TextToSpeechSettings\022a\n\030gen_app_build" + + "er_settings\030! \001(\0132:.google.cloud.dialogf" + + "low.cx.v3.Agent.GenAppBuilderSettingsH\000\210" + + "\001\001\022b\n\030answer_feedback_settings\030& \001(\0132;.g" + + "oogle.cloud.dialogflow.cx.v3.Agent.Answe" + + "rFeedbackSettingsB\003\340A\001\022c\n\030personalizatio" + + "n_settings\030* \001(\0132<.google.cloud.dialogfl" + + "ow.cx.v3.Agent.PersonalizationSettingsB\003" + + "\340A\001\032\220\002\n\026GitIntegrationSettings\022e\n\017github" + + "_settings\030\001 \001(\0132J.google.cloud.dialogflo" + + "w.cx.v3.Agent.GitIntegrationSettings.Git" + + "hubSettingsH\000\032\177\n\016GithubSettings\022\024\n\014displ" + + "ay_name\030\001 \001(\t\022\026\n\016repository_uri\030\002 \001(\t\022\027\n" + + "\017tracking_branch\030\003 \001(\t\022\024\n\014access_token\030\004" + + " \001(\t\022\020\n\010branches\030\005 \003(\tB\016\n\014git_settings\032," + + "\n\025GenAppBuilderSettings\022\023\n\006engine\030\001 \001(\tB" + + "\003\340A\002\032=\n\026AnswerFeedbackSettings\022#\n\026enable" + + "_answer_feedback\030\001 \001(\010B\003\340A\001\032Z\n\027Personali" + + "zationSettings\022?\n\031default_end_user_metad" + + "ata\030\001 \001(\0132\027.google.protobuf.StructB\003\340A\001:" + + "\\\352AY\n\037dialogflow.googleapis.com/Agent\0226p" + + "rojects/{project}/locations/{location}/a" + + "gents/{agent}B\033\n\031_gen_app_builder_settin" + + "gs\"s\n\021ListAgentsRequest\0227\n\006parent\030\001 \001(\tB" + + "\'\340A\002\372A!\022\037dialogflow.googleapis.com/Agent" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" + + "c\n\022ListAgentsResponse\0224\n\006agents\030\001 \003(\0132$." + + "google.cloud.dialogflow.cx.v3.Agent\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"H\n\017GetAgentRequest\022" + + "5\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.google" + + "apis.com/Agent\"\207\001\n\022CreateAgentRequest\0227\n" + + "\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037dialogflow.google" + + "apis.com/Agent\0228\n\005agent\030\002 \001(\0132$.google.c" + + "loud.dialogflow.cx.v3.AgentB\003\340A\002\"\177\n\022Upda" + + "teAgentRequest\0228\n\005agent\030\001 \001(\0132$.google.c" + + "loud.dialogflow.cx.v3.AgentB\003\340A\002\022/\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "k\"K\n\022DeleteAgentRequest\0225\n\004name\030\001 \001(\tB\'\340" + + "A\002\372A!\n\037dialogflow.googleapis.com/Agent\"\230" + + "\004\n\022ExportAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A\002" + + "\372A!\n\037dialogflow.googleapis.com/Agent\022\026\n\t" + + "agent_uri\030\002 \001(\tB\003\340A\001\022V\n\013data_format\030\003 \001(" + + "\0162<.google.cloud.dialogflow.cx.v3.Export" + + "AgentRequest.DataFormatB\003\340A\001\022B\n\013environm" + + "ent\030\005 \001(\tB-\340A\001\372A\'\n%dialogflow.googleapis" + + ".com/Environment\022^\n\017git_destination\030\006 \001(" + + "\0132@.google.cloud.dialogflow.cx.v3.Export" + + "AgentRequest.GitDestinationB\003\340A\001\022-\n incl" + + "ude_bigquery_export_settings\030\007 \001(\010B\003\340A\001\032" + + "A\n\016GitDestination\022\027\n\017tracking_branch\030\001 \001" + + "(\t\022\026\n\016commit_message\030\002 \001(\t\"E\n\nDataFormat" + + "\022\033\n\027DATA_FORMAT_UNSPECIFIED\020\000\022\010\n\004BLOB\020\001\022" + + "\020\n\014JSON_PACKAGE\020\004\"b\n\023ExportAgentResponse" + + "\022\023\n\tagent_uri\030\001 \001(\tH\000\022\027\n\ragent_content\030\002" + + " \001(\014H\000\022\024\n\ncommit_sha\030\003 \001(\tH\000B\007\n\005agent\"\240\003" + + "\n\023RestoreAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A\002" + + "\372A!\n\037dialogflow.googleapis.com/Agent\022\023\n\t" + + "agent_uri\030\002 \001(\tH\000\022\027\n\ragent_content\030\003 \001(\014" + + "H\000\022R\n\ngit_source\030\006 \001(\0132<.google.cloud.di" + + "alogflow.cx.v3.RestoreAgentRequest.GitSo" + + "urceH\000\022X\n\016restore_option\030\005 \001(\0162@.google." + + "cloud.dialogflow.cx.v3.RestoreAgentReque" + + "st.RestoreOption\032$\n\tGitSource\022\027\n\017trackin" + + "g_branch\030\001 \001(\t\"G\n\rRestoreOption\022\036\n\032RESTO" + + "RE_OPTION_UNSPECIFIED\020\000\022\010\n\004KEEP\020\001\022\014\n\010FAL" + + "LBACK\020\002B\007\n\005agent\"d\n\024ValidateAgentRequest" + + "\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googl" + + "eapis.com/Agent\022\025\n\rlanguage_code\030\002 \001(\t\"\177" + + "\n\037GetAgentValidationResultRequest\022E\n\004nam" + + "e\030\001 \001(\tB7\340A\002\372A1\n/dialogflow.googleapis.c" + + "om/AgentValidationResult\022\025\n\rlanguage_cod" + + "e\030\002 \001(\t\"\372\001\n\025AgentValidationResult\022\014\n\004nam" + + "e\030\001 \001(\t\022T\n\027flow_validation_results\030\002 \003(\013" + + "23.google.cloud.dialogflow.cx.v3.FlowVal" + + "idationResult:}\352Az\n/dialogflow.googleapi" + + "s.com/AgentValidationResult\022Gprojects/{p" + + "roject}/locations/{location}/agents/{age" + + "nt}/validationResult\"\203\001\n\034GetGenerativeSe" + + "ttingsRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1dia" + + "logflow.googleapis.com/AgentGenerativeSe" + + "ttings\022\032\n\rlanguage_code\030\002 \001(\tB\003\340A\002\"\254\001\n\037U" + + "pdateGenerativeSettingsRequest\022S\n\023genera" + + "tive_settings\030\001 \001(\01321.google.cloud.dialo" + + "gflow.cx.v3.GenerativeSettingsB\003\340A\002\0224\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\0012\242\022\n\006Agents\022\256\001\n\nListAgents\0220.go" + + "ogle.cloud.dialogflow.cx.v3.ListAgentsRe" + + "quest\0321.google.cloud.dialogflow.cx.v3.Li" + + "stAgentsResponse\";\332A\006parent\202\323\344\223\002,\022*/v3/{" + + "parent=projects/*/locations/*}/agents\022\233\001" + + "\n\010GetAgent\022..google.cloud.dialogflow.cx." + + "v3.GetAgentRequest\032$.google.cloud.dialog" + + "flow.cx.v3.Agent\"9\332A\004name\202\323\344\223\002,\022*/v3/{na" + + "me=projects/*/locations/*/agents/*}\022\260\001\n\013" + + "CreateAgent\0221.google.cloud.dialogflow.cx" + + ".v3.CreateAgentRequest\032$.google.cloud.di" + + "alogflow.cx.v3.Agent\"H\332A\014parent,agent\202\323\344" + + "\223\0023\"*/v3/{parent=projects/*/locations/*}" + + "/agents:\005agent\022\273\001\n\013UpdateAgent\0221.google." + + "cloud.dialogflow.cx.v3.UpdateAgentReques" + + "t\032$.google.cloud.dialogflow.cx.v3.Agent\"" + + "S\332A\021agent,update_mask\202\323\344\223\002920/v3/{agent." + + "name=projects/*/locations/*/agents/*}:\005a" + + "gent\022\223\001\n\013DeleteAgent\0221.google.cloud.dial" + + "ogflow.cx.v3.DeleteAgentRequest\032\026.google" + + ".protobuf.Empty\"9\332A\004name\202\323\344\223\002,**/v3/{nam" + + "e=projects/*/locations/*/agents/*}\022\315\001\n\013E" + + "xportAgent\0221.google.cloud.dialogflow.cx." + + "v3.ExportAgentRequest\032\035.google.longrunni" + + "ng.Operation\"l\312A-\n\023ExportAgentResponse\022\026" + + "google.protobuf.Struct\202\323\344\223\0026\"1/v3/{name=" + + "projects/*/locations/*/agents/*}:export:" + + "\001*\022\322\001\n\014RestoreAgent\0222.google.cloud.dialo" + + "gflow.cx.v3.RestoreAgentRequest\032\035.google" + + ".longrunning.Operation\"o\312A/\n\025google.prot" + + "obuf.Empty\022\026google.protobuf.Struct\202\323\344\223\0027" + + "\"2/v3/{name=projects/*/locations/*/agent" + + "s/*}:restore:\001*\022\272\001\n\rValidateAgent\0223.goog" + + "le.cloud.dialogflow.cx.v3.ValidateAgentR" + + "equest\0324.google.cloud.dialogflow.cx.v3.A" + + "gentValidationResult\">\202\323\344\223\0028\"3/v3/{name=" + + "projects/*/locations/*/agents/*}:validat" + + "e:\001*\022\334\001\n\030GetAgentValidationResult\022>.goog" + + "le.cloud.dialogflow.cx.v3.GetAgentValida" + + "tionResultRequest\0324.google.cloud.dialogf" + + "low.cx.v3.AgentValidationResult\"J\332A\004name" + + "\202\323\344\223\002=\022;/v3/{name=projects/*/locations/*" + + "/agents/*/validationResult}\022\343\001\n\025GetGener" + + "ativeSettings\022;.google.cloud.dialogflow." + + "cx.v3.GetGenerativeSettingsRequest\0321.goo" + + "gle.cloud.dialogflow.cx.v3.GenerativeSet" + + "tings\"Z\332A\022name,language_code\202\323\344\223\002?\022=/v3/" + + "{name=projects/*/locations/*/agents/*/ge" + + "nerativeSettings}\022\240\002\n\030UpdateGenerativeSe" + + "ttings\022>.google.cloud.dialogflow.cx.v3.U" + + "pdateGenerativeSettingsRequest\0321.google." + + "cloud.dialogflow.cx.v3.GenerativeSetting" + + "s\"\220\001\332A\037generative_settings,update_mask\202\323" + + "\344\223\002h2Q/v3/{generative_settings.name=proj" + + "ects/*/locations/*/agents/*/generativeSe" + + "ttings}:\023generative_settings\032x\312A\031dialogf" + + "low.googleapis.com\322AYhttps://www.googlea" + + "pis.com/auth/cloud-platform,https://www." + + "googleapis.com/auth/dialogflowB\260\001\n!com.g" + + "oogle.cloud.dialogflow.cx.v3B\nAgentProto" + + "P\001Z1cloud.google.com/go/dialogflow/cx/ap" + + "iv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dia" + + "logflow.Cx.V3\352\002!Google::Cloud::Dialogflo" + + "w::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -346,12 +356,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SecuritySettings", "EnableStackdriverLogging", "EnableSpellCorrection", + "EnableMultiLanguageTraining", "Locked", "AdvancedSettings", "GitIntegrationSettings", "TextToSpeechSettings", "GenAppBuilderSettings", "AnswerFeedbackSettings", + "PersonalizationSettings", }); internal_static_google_cloud_dialogflow_cx_v3_Agent_GitIntegrationSettings_descriptor = internal_static_google_cloud_dialogflow_cx_v3_Agent_descriptor.getNestedTypes().get(0); @@ -387,6 +399,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "EnableAnswerFeedback", }); + internal_static_google_cloud_dialogflow_cx_v3_Agent_PersonalizationSettings_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_Agent_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_dialogflow_cx_v3_Agent_PersonalizationSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_Agent_PersonalizationSettings_descriptor, + new java.lang.String[] { + "DefaultEndUserMetadata", + }); internal_static_google_cloud_dialogflow_cx_v3_ListAgentsRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_dialogflow_cx_v3_ListAgentsRequest_fieldAccessorTable = diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DataStoreConnectionProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DataStoreConnectionProto.java index 0255c414bec0..9b1caa09df54 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DataStoreConnectionProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DataStoreConnectionProto.java @@ -32,6 +32,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnection_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_RewriterModelCallSignals_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_RewriterModelCallSignals_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SearchSnippet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SearchSnippet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerGenerationModelCallSignals_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerGenerationModelCallSignals_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerPart_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerPart_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_CitedSnippet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_CitedSnippet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_GroundingSignals_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_GroundingSignals_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SafetySignals_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SafetySignals_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -43,21 +75,83 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n9google/cloud/dialogflow/cx/v3/data_sto" + "re_connection.proto\022\035google.cloud.dialog" - + "flow.cx.v3\"p\n\023DataStoreConnection\022E\n\017dat" - + "a_store_type\030\001 \001(\0162,.google.cloud.dialog" - + "flow.cx.v3.DataStoreType\022\022\n\ndata_store\030\002" - + " \001(\t*b\n\rDataStoreType\022\037\n\033DATA_STORE_TYPE" - + "_UNSPECIFIED\020\000\022\016\n\nPUBLIC_WEB\020\001\022\020\n\014UNSTRU" - + "CTURED\020\002\022\016\n\nSTRUCTURED\020\003B\276\001\n!com.google." - + "cloud.dialogflow.cx.v3B\030DataStoreConnect" - + "ionProtoP\001Z1cloud.google.com/go/dialogfl" - + "ow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.C" - + "loud.Dialogflow.Cx.V3\352\002!Google::Cloud::D" - + "ialogflow::CX::V3b\006proto3" + + "flow.cx.v3\032\037google/api/field_behavior.pr" + + "oto\"p\n\023DataStoreConnection\022E\n\017data_store" + + "_type\030\001 \001(\0162,.google.cloud.dialogflow.cx" + + ".v3.DataStoreType\022\022\n\ndata_store\030\002 \001(\t\"\242\022" + + "\n\032DataStoreConnectionSignals\022|\n\033rewriter" + + "_model_call_signals\030\001 \001(\0132R.google.cloud" + + ".dialogflow.cx.v3.DataStoreConnectionSig" + + "nals.RewriterModelCallSignalsB\003\340A\001\022\034\n\017re" + + "written_query\030\002 \001(\tB\003\340A\001\022e\n\017search_snipp" + + "ets\030\003 \003(\0132G.google.cloud.dialogflow.cx.v" + + "3.DataStoreConnectionSignals.SearchSnipp" + + "etB\003\340A\001\022\215\001\n$answer_generation_model_call" + + "_signals\030\004 \001(\0132Z.google.cloud.dialogflow" + + ".cx.v3.DataStoreConnectionSignals.Answer" + + "GenerationModelCallSignalsB\003\340A\001\022\023\n\006answe" + + "r\030\005 \001(\tB\003\340A\001\022_\n\014answer_parts\030\006 \003(\0132D.goo" + + "gle.cloud.dialogflow.cx.v3.DataStoreConn" + + "ectionSignals.AnswerPartB\003\340A\001\022c\n\016cited_s" + + "nippets\030\007 \003(\0132F.google.cloud.dialogflow." + + "cx.v3.DataStoreConnectionSignals.CitedSn" + + "ippetB\003\340A\001\022j\n\021grounding_signals\030\010 \001(\0132J." + + "google.cloud.dialogflow.cx.v3.DataStoreC" + + "onnectionSignals.GroundingSignalsB\003\340A\001\022d" + + "\n\016safety_signals\030\t \001(\0132G.google.cloud.di" + + "alogflow.cx.v3.DataStoreConnectionSignal" + + "s.SafetySignalsB\003\340A\001\032X\n\030RewriterModelCal" + + "lSignals\022\027\n\017rendered_prompt\030\001 \001(\t\022\024\n\014mod" + + "el_output\030\002 \001(\t\022\r\n\005model\030\003 \001(\t\032K\n\rSearch" + + "Snippet\022\026\n\016document_title\030\001 \001(\t\022\024\n\014docum" + + "ent_uri\030\002 \001(\t\022\014\n\004text\030\003 \001(\t\032`\n AnswerGen" + + "erationModelCallSignals\022\027\n\017rendered_prom" + + "pt\030\001 \001(\t\022\024\n\014model_output\030\002 \001(\t\022\r\n\005model\030" + + "\003 \001(\t\0326\n\nAnswerPart\022\014\n\004text\030\001 \001(\t\022\032\n\022sup" + + "porting_indices\030\002 \003(\005\032\206\001\n\014CitedSnippet\022_" + + "\n\016search_snippet\030\001 \001(\0132G.google.cloud.di" + + "alogflow.cx.v3.DataStoreConnectionSignal" + + "s.SearchSnippet\022\025\n\rsnippet_index\030\002 \001(\005\032\335" + + "\003\n\020GroundingSignals\022n\n\010decision\030\001 \001(\0162\\." + + "google.cloud.dialogflow.cx.v3.DataStoreC" + + "onnectionSignals.GroundingSignals.Ground" + + "ingDecision\022n\n\005score\030\002 \001(\0162_.google.clou" + + "d.dialogflow.cx.v3.DataStoreConnectionSi" + + "gnals.GroundingSignals.GroundingScoreBuc" + + "ket\"m\n\021GroundingDecision\022\"\n\036GROUNDING_DE" + + "CISION_UNSPECIFIED\020\000\022\031\n\025ACCEPTED_BY_GROU" + + "NDING\020\001\022\031\n\025REJECTED_BY_GROUNDING\020\002\"z\n\024Gr" + + "oundingScoreBucket\022&\n\"GROUNDING_SCORE_BU" + + "CKET_UNSPECIFIED\020\000\022\014\n\010VERY_LOW\020\001\022\007\n\003LOW\020" + + "\003\022\n\n\006MEDIUM\020\004\022\010\n\004HIGH\020\005\022\r\n\tVERY_HIGH\020\006\032\231" + + "\004\n\rSafetySignals\022h\n\010decision\030\001 \001(\0162V.goo" + + "gle.cloud.dialogflow.cx.v3.DataStoreConn" + + "ectionSignals.SafetySignals.SafetyDecisi" + + "on\022v\n\023banned_phrase_match\030\002 \001(\0162Y.google" + + ".cloud.dialogflow.cx.v3.DataStoreConnect" + + "ionSignals.SafetySignals.BannedPhraseMat" + + "ch\022\035\n\025matched_banned_phrase\030\003 \001(\t\"m\n\016Saf" + + "etyDecision\022\037\n\033SAFETY_DECISION_UNSPECIFI" + + "ED\020\000\022\034\n\030ACCEPTED_BY_SAFETY_CHECK\020\001\022\034\n\030RE" + + "JECTED_BY_SAFETY_CHECK\020\002\"\227\001\n\021BannedPhras" + + "eMatch\022#\n\037BANNED_PHRASE_MATCH_UNSPECIFIE" + + "D\020\000\022\034\n\030BANNED_PHRASE_MATCH_NONE\020\001\022\035\n\031BAN" + + "NED_PHRASE_MATCH_QUERY\020\002\022 \n\034BANNED_PHRAS" + + "E_MATCH_RESPONSE\020\003*b\n\rDataStoreType\022\037\n\033D" + + "ATA_STORE_TYPE_UNSPECIFIED\020\000\022\016\n\nPUBLIC_W" + + "EB\020\001\022\020\n\014UNSTRUCTURED\020\002\022\016\n\nSTRUCTURED\020\003B\276" + + "\001\n!com.google.cloud.dialogflow.cx.v3B\030Da" + + "taStoreConnectionProtoP\001Z1cloud.google.c" + + "om/go/dialogflow/cx/apiv3/cxpb;cxpb\370\001\001\242\002" + + "\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Go" + + "ogle::Cloud::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnection_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnection_fieldAccessorTable = @@ -66,6 +160,98 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DataStoreType", "DataStore", }); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_descriptor, + new java.lang.String[] { + "RewriterModelCallSignals", + "RewrittenQuery", + "SearchSnippets", + "AnswerGenerationModelCallSignals", + "Answer", + "AnswerParts", + "CitedSnippets", + "GroundingSignals", + "SafetySignals", + }); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_RewriterModelCallSignals_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_RewriterModelCallSignals_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_RewriterModelCallSignals_descriptor, + new java.lang.String[] { + "RenderedPrompt", "ModelOutput", "Model", + }); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SearchSnippet_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SearchSnippet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SearchSnippet_descriptor, + new java.lang.String[] { + "DocumentTitle", "DocumentUri", "Text", + }); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerGenerationModelCallSignals_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerGenerationModelCallSignals_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerGenerationModelCallSignals_descriptor, + new java.lang.String[] { + "RenderedPrompt", "ModelOutput", "Model", + }); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerPart_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerPart_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerPart_descriptor, + new java.lang.String[] { + "Text", "SupportingIndices", + }); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_CitedSnippet_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_CitedSnippet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_CitedSnippet_descriptor, + new java.lang.String[] { + "SearchSnippet", "SnippetIndex", + }); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_GroundingSignals_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_descriptor + .getNestedTypes() + .get(5); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_GroundingSignals_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_GroundingSignals_descriptor, + new java.lang.String[] { + "Decision", "Score", + }); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SafetySignals_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_descriptor + .getNestedTypes() + .get(6); + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SafetySignals_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SafetySignals_descriptor, + new java.lang.String[] { + "Decision", "BannedPhraseMatch", "MatchedBannedPhrase", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DataStoreConnectionSignals.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DataStoreConnectionSignals.java new file mode 100644 index 000000000000..76290c759d30 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DataStoreConnectionSignals.java @@ -0,0 +1,11858 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/data_store_connection.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
        + * Data store connection feature output signals.
        + * Might be only partially field if processing stop before the final answer.
        + * Reasons for this can be, but are not limited to: empty UCS search results,
        + * positive RAI check outcome, grounding failure, ...
        + * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals} + */ +public final class DataStoreConnectionSignals extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals) + DataStoreConnectionSignalsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataStoreConnectionSignals.newBuilder() to construct. + private DataStoreConnectionSignals(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataStoreConnectionSignals() { + rewrittenQuery_ = ""; + searchSnippets_ = java.util.Collections.emptyList(); + answer_ = ""; + answerParts_ = java.util.Collections.emptyList(); + citedSnippets_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataStoreConnectionSignals(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.Builder.class); + } + + public interface RewriterModelCallSignalsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Prompt as sent to the model.
        +     * 
        + * + * string rendered_prompt = 1; + * + * @return The renderedPrompt. + */ + java.lang.String getRenderedPrompt(); + /** + * + * + *
        +     * Prompt as sent to the model.
        +     * 
        + * + * string rendered_prompt = 1; + * + * @return The bytes for renderedPrompt. + */ + com.google.protobuf.ByteString getRenderedPromptBytes(); + + /** + * + * + *
        +     * Output of the generative model.
        +     * 
        + * + * string model_output = 2; + * + * @return The modelOutput. + */ + java.lang.String getModelOutput(); + /** + * + * + *
        +     * Output of the generative model.
        +     * 
        + * + * string model_output = 2; + * + * @return The bytes for modelOutput. + */ + com.google.protobuf.ByteString getModelOutputBytes(); + + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The model. + */ + java.lang.String getModel(); + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The bytes for model. + */ + com.google.protobuf.ByteString getModelBytes(); + } + /** + * + * + *
        +   * Diagnostic info related to the rewriter model call.
        +   * 
        + * + * Protobuf type {@code + * google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals} + */ + public static final class RewriterModelCallSignals extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals) + RewriterModelCallSignalsOrBuilder { + private static final long serialVersionUID = 0L; + // Use RewriterModelCallSignals.newBuilder() to construct. + private RewriterModelCallSignals(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RewriterModelCallSignals() { + renderedPrompt_ = ""; + modelOutput_ = ""; + model_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RewriterModelCallSignals(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_RewriterModelCallSignals_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_RewriterModelCallSignals_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + .class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + .Builder.class); + } + + public static final int RENDERED_PROMPT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object renderedPrompt_ = ""; + /** + * + * + *
        +     * Prompt as sent to the model.
        +     * 
        + * + * string rendered_prompt = 1; + * + * @return The renderedPrompt. + */ + @java.lang.Override + public java.lang.String getRenderedPrompt() { + java.lang.Object ref = renderedPrompt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + renderedPrompt_ = s; + return s; + } + } + /** + * + * + *
        +     * Prompt as sent to the model.
        +     * 
        + * + * string rendered_prompt = 1; + * + * @return The bytes for renderedPrompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRenderedPromptBytes() { + java.lang.Object ref = renderedPrompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + renderedPrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_OUTPUT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelOutput_ = ""; + /** + * + * + *
        +     * Output of the generative model.
        +     * 
        + * + * string model_output = 2; + * + * @return The modelOutput. + */ + @java.lang.Override + public java.lang.String getModelOutput() { + java.lang.Object ref = modelOutput_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelOutput_ = s; + return s; + } + } + /** + * + * + *
        +     * Output of the generative model.
        +     * 
        + * + * string model_output = 2; + * + * @return The bytes for modelOutput. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelOutputBytes() { + java.lang.Object ref = modelOutput_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelOutput_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The model. + */ + @java.lang.Override + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The bytes for model. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderedPrompt_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, renderedPrompt_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelOutput_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, modelOutput_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderedPrompt_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, renderedPrompt_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelOutput_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, modelOutput_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals other = + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals) + obj; + + if (!getRenderedPrompt().equals(other.getRenderedPrompt())) return false; + if (!getModelOutput().equals(other.getModelOutput())) return false; + if (!getModel().equals(other.getModel())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RENDERED_PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getRenderedPrompt().hashCode(); + hash = (37 * hash) + MODEL_OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getModelOutput().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +     * Diagnostic info related to the rewriter model call.
        +     * 
        + * + * Protobuf type {@code + * google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals) + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignalsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_RewriterModelCallSignals_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_RewriterModelCallSignals_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + renderedPrompt_ = ""; + modelOutput_ = ""; + model_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_RewriterModelCallSignals_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + build() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + buildPartial() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + result = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.renderedPrompt_ = renderedPrompt_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelOutput_ = modelOutput_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.model_ = model_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + other) { + if (other + == com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + .getDefaultInstance()) return this; + if (!other.getRenderedPrompt().isEmpty()) { + renderedPrompt_ = other.renderedPrompt_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getModelOutput().isEmpty()) { + modelOutput_ = other.modelOutput_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getModel().isEmpty()) { + model_ = other.model_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + renderedPrompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + modelOutput_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object renderedPrompt_ = ""; + /** + * + * + *
        +       * Prompt as sent to the model.
        +       * 
        + * + * string rendered_prompt = 1; + * + * @return The renderedPrompt. + */ + public java.lang.String getRenderedPrompt() { + java.lang.Object ref = renderedPrompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + renderedPrompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Prompt as sent to the model.
        +       * 
        + * + * string rendered_prompt = 1; + * + * @return The bytes for renderedPrompt. + */ + public com.google.protobuf.ByteString getRenderedPromptBytes() { + java.lang.Object ref = renderedPrompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + renderedPrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Prompt as sent to the model.
        +       * 
        + * + * string rendered_prompt = 1; + * + * @param value The renderedPrompt to set. + * @return This builder for chaining. + */ + public Builder setRenderedPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + renderedPrompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * Prompt as sent to the model.
        +       * 
        + * + * string rendered_prompt = 1; + * + * @return This builder for chaining. + */ + public Builder clearRenderedPrompt() { + renderedPrompt_ = getDefaultInstance().getRenderedPrompt(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +       * Prompt as sent to the model.
        +       * 
        + * + * string rendered_prompt = 1; + * + * @param value The bytes for renderedPrompt to set. + * @return This builder for chaining. + */ + public Builder setRenderedPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + renderedPrompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object modelOutput_ = ""; + /** + * + * + *
        +       * Output of the generative model.
        +       * 
        + * + * string model_output = 2; + * + * @return The modelOutput. + */ + public java.lang.String getModelOutput() { + java.lang.Object ref = modelOutput_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelOutput_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Output of the generative model.
        +       * 
        + * + * string model_output = 2; + * + * @return The bytes for modelOutput. + */ + public com.google.protobuf.ByteString getModelOutputBytes() { + java.lang.Object ref = modelOutput_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelOutput_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Output of the generative model.
        +       * 
        + * + * string model_output = 2; + * + * @param value The modelOutput to set. + * @return This builder for chaining. + */ + public Builder setModelOutput(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelOutput_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Output of the generative model.
        +       * 
        + * + * string model_output = 2; + * + * @return This builder for chaining. + */ + public Builder clearModelOutput() { + modelOutput_ = getDefaultInstance().getModelOutput(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
        +       * Output of the generative model.
        +       * 
        + * + * string model_output = 2; + * + * @param value The bytes for modelOutput to set. + * @return This builder for chaining. + */ + public Builder setModelOutputBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelOutput_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object model_ = ""; + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @return The model. + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @return The bytes for model. + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @param value The model to set. + * @return This builder for chaining. + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + model_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @param value The bytes for model to set. + * @return This builder for chaining. + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals) + private static final com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals(); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RewriterModelCallSignals parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SearchSnippetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Title of the enclosing document.
        +     * 
        + * + * string document_title = 1; + * + * @return The documentTitle. + */ + java.lang.String getDocumentTitle(); + /** + * + * + *
        +     * Title of the enclosing document.
        +     * 
        + * + * string document_title = 1; + * + * @return The bytes for documentTitle. + */ + com.google.protobuf.ByteString getDocumentTitleBytes(); + + /** + * + * + *
        +     * Uri for the document. Present if specified for the document.
        +     * 
        + * + * string document_uri = 2; + * + * @return The documentUri. + */ + java.lang.String getDocumentUri(); + /** + * + * + *
        +     * Uri for the document. Present if specified for the document.
        +     * 
        + * + * string document_uri = 2; + * + * @return The bytes for documentUri. + */ + com.google.protobuf.ByteString getDocumentUriBytes(); + + /** + * + * + *
        +     * Text included in the prompt.
        +     * 
        + * + * string text = 3; + * + * @return The text. + */ + java.lang.String getText(); + /** + * + * + *
        +     * Text included in the prompt.
        +     * 
        + * + * string text = 3; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + } + /** + * + * + *
        +   * Search snippet details.
        +   * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet} + */ + public static final class SearchSnippet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet) + SearchSnippetOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchSnippet.newBuilder() to construct. + private SearchSnippet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchSnippet() { + documentTitle_ = ""; + documentUri_ = ""; + text_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchSnippet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SearchSnippet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SearchSnippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder + .class); + } + + public static final int DOCUMENT_TITLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object documentTitle_ = ""; + /** + * + * + *
        +     * Title of the enclosing document.
        +     * 
        + * + * string document_title = 1; + * + * @return The documentTitle. + */ + @java.lang.Override + public java.lang.String getDocumentTitle() { + java.lang.Object ref = documentTitle_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentTitle_ = s; + return s; + } + } + /** + * + * + *
        +     * Title of the enclosing document.
        +     * 
        + * + * string document_title = 1; + * + * @return The bytes for documentTitle. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentTitleBytes() { + java.lang.Object ref = documentTitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOCUMENT_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object documentUri_ = ""; + /** + * + * + *
        +     * Uri for the document. Present if specified for the document.
        +     * 
        + * + * string document_uri = 2; + * + * @return The documentUri. + */ + @java.lang.Override + public java.lang.String getDocumentUri() { + java.lang.Object ref = documentUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentUri_ = s; + return s; + } + } + /** + * + * + *
        +     * Uri for the document. Present if specified for the document.
        +     * 
        + * + * string document_uri = 2; + * + * @return The bytes for documentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentUriBytes() { + java.lang.Object ref = documentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + /** + * + * + *
        +     * Text included in the prompt.
        +     * 
        + * + * string text = 3; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + /** + * + * + *
        +     * Text included in the prompt.
        +     * 
        + * + * string text = 3; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentTitle_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentTitle_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, documentUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, text_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentTitle_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, documentTitle_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, documentUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet other = + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet) obj; + + if (!getDocumentTitle().equals(other.getDocumentTitle())) return false; + if (!getDocumentUri().equals(other.getDocumentUri())) return false; + if (!getText().equals(other.getText())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DOCUMENT_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getDocumentTitle().hashCode(); + hash = (37 * hash) + DOCUMENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getDocumentUri().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +     * Search snippet details.
        +     * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet) + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SearchSnippet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SearchSnippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + documentTitle_ = ""; + documentUri_ = ""; + text_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SearchSnippet_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet build() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + buildPartial() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet result = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentTitle_ = documentTitle_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.documentUri_ = documentUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.text_ = text_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet other) { + if (other + == com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + .getDefaultInstance()) return this; + if (!other.getDocumentTitle().isEmpty()) { + documentTitle_ = other.documentTitle_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDocumentUri().isEmpty()) { + documentUri_ = other.documentUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + documentTitle_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + documentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object documentTitle_ = ""; + /** + * + * + *
        +       * Title of the enclosing document.
        +       * 
        + * + * string document_title = 1; + * + * @return The documentTitle. + */ + public java.lang.String getDocumentTitle() { + java.lang.Object ref = documentTitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentTitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Title of the enclosing document.
        +       * 
        + * + * string document_title = 1; + * + * @return The bytes for documentTitle. + */ + public com.google.protobuf.ByteString getDocumentTitleBytes() { + java.lang.Object ref = documentTitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Title of the enclosing document.
        +       * 
        + * + * string document_title = 1; + * + * @param value The documentTitle to set. + * @return This builder for chaining. + */ + public Builder setDocumentTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + documentTitle_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * Title of the enclosing document.
        +       * 
        + * + * string document_title = 1; + * + * @return This builder for chaining. + */ + public Builder clearDocumentTitle() { + documentTitle_ = getDefaultInstance().getDocumentTitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +       * Title of the enclosing document.
        +       * 
        + * + * string document_title = 1; + * + * @param value The bytes for documentTitle to set. + * @return This builder for chaining. + */ + public Builder setDocumentTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentTitle_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object documentUri_ = ""; + /** + * + * + *
        +       * Uri for the document. Present if specified for the document.
        +       * 
        + * + * string document_uri = 2; + * + * @return The documentUri. + */ + public java.lang.String getDocumentUri() { + java.lang.Object ref = documentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Uri for the document. Present if specified for the document.
        +       * 
        + * + * string document_uri = 2; + * + * @return The bytes for documentUri. + */ + public com.google.protobuf.ByteString getDocumentUriBytes() { + java.lang.Object ref = documentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Uri for the document. Present if specified for the document.
        +       * 
        + * + * string document_uri = 2; + * + * @param value The documentUri to set. + * @return This builder for chaining. + */ + public Builder setDocumentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + documentUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Uri for the document. Present if specified for the document.
        +       * 
        + * + * string document_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearDocumentUri() { + documentUri_ = getDefaultInstance().getDocumentUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
        +       * Uri for the document. Present if specified for the document.
        +       * 
        + * + * string document_uri = 2; + * + * @param value The bytes for documentUri to set. + * @return This builder for chaining. + */ + public Builder setDocumentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object text_ = ""; + /** + * + * + *
        +       * Text included in the prompt.
        +       * 
        + * + * string text = 3; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Text included in the prompt.
        +       * 
        + * + * string text = 3; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Text included in the prompt.
        +       * 
        + * + * string text = 3; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +       * Text included in the prompt.
        +       * 
        + * + * string text = 3; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +       * Text included in the prompt.
        +       * 
        + * + * string text = 3; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet) + private static final com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet(); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchSnippet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AnswerGenerationModelCallSignalsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Prompt as sent to the model.
        +     * 
        + * + * string rendered_prompt = 1; + * + * @return The renderedPrompt. + */ + java.lang.String getRenderedPrompt(); + /** + * + * + *
        +     * Prompt as sent to the model.
        +     * 
        + * + * string rendered_prompt = 1; + * + * @return The bytes for renderedPrompt. + */ + com.google.protobuf.ByteString getRenderedPromptBytes(); + + /** + * + * + *
        +     * Output of the generative model.
        +     * 
        + * + * string model_output = 2; + * + * @return The modelOutput. + */ + java.lang.String getModelOutput(); + /** + * + * + *
        +     * Output of the generative model.
        +     * 
        + * + * string model_output = 2; + * + * @return The bytes for modelOutput. + */ + com.google.protobuf.ByteString getModelOutputBytes(); + + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The model. + */ + java.lang.String getModel(); + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The bytes for model. + */ + com.google.protobuf.ByteString getModelBytes(); + } + /** + * + * + *
        +   * Diagnostic info related to the answer generation model call.
        +   * 
        + * + * Protobuf type {@code + * google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals} + */ + public static final class AnswerGenerationModelCallSignals + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals) + AnswerGenerationModelCallSignalsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnswerGenerationModelCallSignals.newBuilder() to construct. + private AnswerGenerationModelCallSignals( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AnswerGenerationModelCallSignals() { + renderedPrompt_ = ""; + modelOutput_ = ""; + model_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnswerGenerationModelCallSignals(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerGenerationModelCallSignals_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerGenerationModelCallSignals_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.Builder.class); + } + + public static final int RENDERED_PROMPT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object renderedPrompt_ = ""; + /** + * + * + *
        +     * Prompt as sent to the model.
        +     * 
        + * + * string rendered_prompt = 1; + * + * @return The renderedPrompt. + */ + @java.lang.Override + public java.lang.String getRenderedPrompt() { + java.lang.Object ref = renderedPrompt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + renderedPrompt_ = s; + return s; + } + } + /** + * + * + *
        +     * Prompt as sent to the model.
        +     * 
        + * + * string rendered_prompt = 1; + * + * @return The bytes for renderedPrompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRenderedPromptBytes() { + java.lang.Object ref = renderedPrompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + renderedPrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_OUTPUT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelOutput_ = ""; + /** + * + * + *
        +     * Output of the generative model.
        +     * 
        + * + * string model_output = 2; + * + * @return The modelOutput. + */ + @java.lang.Override + public java.lang.String getModelOutput() { + java.lang.Object ref = modelOutput_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelOutput_ = s; + return s; + } + } + /** + * + * + *
        +     * Output of the generative model.
        +     * 
        + * + * string model_output = 2; + * + * @return The bytes for modelOutput. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelOutputBytes() { + java.lang.Object ref = modelOutput_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelOutput_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The model. + */ + @java.lang.Override + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The bytes for model. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderedPrompt_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, renderedPrompt_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelOutput_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, modelOutput_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderedPrompt_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, renderedPrompt_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelOutput_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, modelOutput_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals + other = + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals) + obj; + + if (!getRenderedPrompt().equals(other.getRenderedPrompt())) return false; + if (!getModelOutput().equals(other.getModelOutput())) return false; + if (!getModel().equals(other.getModel())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RENDERED_PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getRenderedPrompt().hashCode(); + hash = (37 * hash) + MODEL_OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getModelOutput().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +     * Diagnostic info related to the answer generation model call.
        +     * 
        + * + * Protobuf type {@code + * google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals) + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignalsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerGenerationModelCallSignals_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerGenerationModelCallSignals_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + renderedPrompt_ = ""; + modelOutput_ = ""; + model_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerGenerationModelCallSignals_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + build() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + buildPartial() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + result = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.renderedPrompt_ = renderedPrompt_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelOutput_ = modelOutput_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.model_ = model_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + other) { + if (other + == com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.getDefaultInstance()) return this; + if (!other.getRenderedPrompt().isEmpty()) { + renderedPrompt_ = other.renderedPrompt_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getModelOutput().isEmpty()) { + modelOutput_ = other.modelOutput_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getModel().isEmpty()) { + model_ = other.model_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + renderedPrompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + modelOutput_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object renderedPrompt_ = ""; + /** + * + * + *
        +       * Prompt as sent to the model.
        +       * 
        + * + * string rendered_prompt = 1; + * + * @return The renderedPrompt. + */ + public java.lang.String getRenderedPrompt() { + java.lang.Object ref = renderedPrompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + renderedPrompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Prompt as sent to the model.
        +       * 
        + * + * string rendered_prompt = 1; + * + * @return The bytes for renderedPrompt. + */ + public com.google.protobuf.ByteString getRenderedPromptBytes() { + java.lang.Object ref = renderedPrompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + renderedPrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Prompt as sent to the model.
        +       * 
        + * + * string rendered_prompt = 1; + * + * @param value The renderedPrompt to set. + * @return This builder for chaining. + */ + public Builder setRenderedPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + renderedPrompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * Prompt as sent to the model.
        +       * 
        + * + * string rendered_prompt = 1; + * + * @return This builder for chaining. + */ + public Builder clearRenderedPrompt() { + renderedPrompt_ = getDefaultInstance().getRenderedPrompt(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +       * Prompt as sent to the model.
        +       * 
        + * + * string rendered_prompt = 1; + * + * @param value The bytes for renderedPrompt to set. + * @return This builder for chaining. + */ + public Builder setRenderedPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + renderedPrompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object modelOutput_ = ""; + /** + * + * + *
        +       * Output of the generative model.
        +       * 
        + * + * string model_output = 2; + * + * @return The modelOutput. + */ + public java.lang.String getModelOutput() { + java.lang.Object ref = modelOutput_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelOutput_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Output of the generative model.
        +       * 
        + * + * string model_output = 2; + * + * @return The bytes for modelOutput. + */ + public com.google.protobuf.ByteString getModelOutputBytes() { + java.lang.Object ref = modelOutput_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelOutput_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Output of the generative model.
        +       * 
        + * + * string model_output = 2; + * + * @param value The modelOutput to set. + * @return This builder for chaining. + */ + public Builder setModelOutput(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelOutput_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Output of the generative model.
        +       * 
        + * + * string model_output = 2; + * + * @return This builder for chaining. + */ + public Builder clearModelOutput() { + modelOutput_ = getDefaultInstance().getModelOutput(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
        +       * Output of the generative model.
        +       * 
        + * + * string model_output = 2; + * + * @param value The bytes for modelOutput to set. + * @return This builder for chaining. + */ + public Builder setModelOutputBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelOutput_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object model_ = ""; + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @return The model. + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @return The bytes for model. + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @param value The model to set. + * @return This builder for chaining. + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + model_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @param value The bytes for model to set. + * @return This builder for chaining. + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals) + private static final com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals(); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnswerGenerationModelCallSignals parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AnswerPartOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Substring of the answer.
        +     * 
        + * + * string text = 1; + * + * @return The text. + */ + java.lang.String getText(); + /** + * + * + *
        +     * Substring of the answer.
        +     * 
        + * + * string text = 1; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
        +     * Citations for this answer part. Indices of `search_snippets`.
        +     * 
        + * + * repeated int32 supporting_indices = 2; + * + * @return A list containing the supportingIndices. + */ + java.util.List getSupportingIndicesList(); + /** + * + * + *
        +     * Citations for this answer part. Indices of `search_snippets`.
        +     * 
        + * + * repeated int32 supporting_indices = 2; + * + * @return The count of supportingIndices. + */ + int getSupportingIndicesCount(); + /** + * + * + *
        +     * Citations for this answer part. Indices of `search_snippets`.
        +     * 
        + * + * repeated int32 supporting_indices = 2; + * + * @param index The index of the element to return. + * @return The supportingIndices at the given index. + */ + int getSupportingIndices(int index); + } + /** + * + * + *
        +   * Answer part with citation.
        +   * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart} + */ + public static final class AnswerPart extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart) + AnswerPartOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnswerPart.newBuilder() to construct. + private AnswerPart(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AnswerPart() { + text_ = ""; + supportingIndices_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnswerPart(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerPart_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerPart_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.Builder + .class); + } + + public static final int TEXT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + /** + * + * + *
        +     * Substring of the answer.
        +     * 
        + * + * string text = 1; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + /** + * + * + *
        +     * Substring of the answer.
        +     * 
        + * + * string text = 1; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUPPORTING_INDICES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList supportingIndices_ = emptyIntList(); + /** + * + * + *
        +     * Citations for this answer part. Indices of `search_snippets`.
        +     * 
        + * + * repeated int32 supporting_indices = 2; + * + * @return A list containing the supportingIndices. + */ + @java.lang.Override + public java.util.List getSupportingIndicesList() { + return supportingIndices_; + } + /** + * + * + *
        +     * Citations for this answer part. Indices of `search_snippets`.
        +     * 
        + * + * repeated int32 supporting_indices = 2; + * + * @return The count of supportingIndices. + */ + public int getSupportingIndicesCount() { + return supportingIndices_.size(); + } + /** + * + * + *
        +     * Citations for this answer part. Indices of `search_snippets`.
        +     * 
        + * + * repeated int32 supporting_indices = 2; + * + * @param index The index of the element to return. + * @return The supportingIndices at the given index. + */ + public int getSupportingIndices(int index) { + return supportingIndices_.getInt(index); + } + + private int supportingIndicesMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); + } + if (getSupportingIndicesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(supportingIndicesMemoizedSerializedSize); + } + for (int i = 0; i < supportingIndices_.size(); i++) { + output.writeInt32NoTag(supportingIndices_.getInt(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_); + } + { + int dataSize = 0; + for (int i = 0; i < supportingIndices_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + supportingIndices_.getInt(i)); + } + size += dataSize; + if (!getSupportingIndicesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + supportingIndicesMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart other = + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart) obj; + + if (!getText().equals(other.getText())) return false; + if (!getSupportingIndicesList().equals(other.getSupportingIndicesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + if (getSupportingIndicesCount() > 0) { + hash = (37 * hash) + SUPPORTING_INDICES_FIELD_NUMBER; + hash = (53 * hash) + getSupportingIndicesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +     * Answer part with citation.
        +     * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart) + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPartOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerPart_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerPart_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + text_ = ""; + supportingIndices_ = emptyIntList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_AnswerPart_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart build() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart + buildPartial() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart result = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.text_ = text_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + supportingIndices_.makeImmutable(); + result.supportingIndices_ = supportingIndices_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart other) { + if (other + == com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart + .getDefaultInstance()) return this; + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.supportingIndices_.isEmpty()) { + if (supportingIndices_.isEmpty()) { + supportingIndices_ = other.supportingIndices_; + supportingIndices_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureSupportingIndicesIsMutable(); + supportingIndices_.addAll(other.supportingIndices_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + int v = input.readInt32(); + ensureSupportingIndicesIsMutable(); + supportingIndices_.addInt(v); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSupportingIndicesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + supportingIndices_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object text_ = ""; + /** + * + * + *
        +       * Substring of the answer.
        +       * 
        + * + * string text = 1; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Substring of the answer.
        +       * 
        + * + * string text = 1; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Substring of the answer.
        +       * 
        + * + * string text = 1; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * Substring of the answer.
        +       * 
        + * + * string text = 1; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +       * Substring of the answer.
        +       * 
        + * + * string text = 1; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList supportingIndices_ = emptyIntList(); + + private void ensureSupportingIndicesIsMutable() { + if (!supportingIndices_.isModifiable()) { + supportingIndices_ = makeMutableCopy(supportingIndices_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
        +       * Citations for this answer part. Indices of `search_snippets`.
        +       * 
        + * + * repeated int32 supporting_indices = 2; + * + * @return A list containing the supportingIndices. + */ + public java.util.List getSupportingIndicesList() { + supportingIndices_.makeImmutable(); + return supportingIndices_; + } + /** + * + * + *
        +       * Citations for this answer part. Indices of `search_snippets`.
        +       * 
        + * + * repeated int32 supporting_indices = 2; + * + * @return The count of supportingIndices. + */ + public int getSupportingIndicesCount() { + return supportingIndices_.size(); + } + /** + * + * + *
        +       * Citations for this answer part. Indices of `search_snippets`.
        +       * 
        + * + * repeated int32 supporting_indices = 2; + * + * @param index The index of the element to return. + * @return The supportingIndices at the given index. + */ + public int getSupportingIndices(int index) { + return supportingIndices_.getInt(index); + } + /** + * + * + *
        +       * Citations for this answer part. Indices of `search_snippets`.
        +       * 
        + * + * repeated int32 supporting_indices = 2; + * + * @param index The index to set the value at. + * @param value The supportingIndices to set. + * @return This builder for chaining. + */ + public Builder setSupportingIndices(int index, int value) { + + ensureSupportingIndicesIsMutable(); + supportingIndices_.setInt(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Citations for this answer part. Indices of `search_snippets`.
        +       * 
        + * + * repeated int32 supporting_indices = 2; + * + * @param value The supportingIndices to add. + * @return This builder for chaining. + */ + public Builder addSupportingIndices(int value) { + + ensureSupportingIndicesIsMutable(); + supportingIndices_.addInt(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Citations for this answer part. Indices of `search_snippets`.
        +       * 
        + * + * repeated int32 supporting_indices = 2; + * + * @param values The supportingIndices to add. + * @return This builder for chaining. + */ + public Builder addAllSupportingIndices( + java.lang.Iterable values) { + ensureSupportingIndicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportingIndices_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Citations for this answer part. Indices of `search_snippets`.
        +       * 
        + * + * repeated int32 supporting_indices = 2; + * + * @return This builder for chaining. + */ + public Builder clearSupportingIndices() { + supportingIndices_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart) + private static final com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart(); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnswerPart parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CitedSnippetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Details of the snippet.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + * + * @return Whether the searchSnippet field is set. + */ + boolean hasSearchSnippet(); + /** + * + * + *
        +     * Details of the snippet.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + * + * @return The searchSnippet. + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet getSearchSnippet(); + /** + * + * + *
        +     * Details of the snippet.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetOrBuilder + getSearchSnippetOrBuilder(); + + /** + * + * + *
        +     * Index of the snippet in `search_snippets` field.
        +     * 
        + * + * int32 snippet_index = 2; + * + * @return The snippetIndex. + */ + int getSnippetIndex(); + } + /** + * + * + *
        +   * Snippet cited by the answer generation model.
        +   * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet} + */ + public static final class CitedSnippet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet) + CitedSnippetOrBuilder { + private static final long serialVersionUID = 0L; + // Use CitedSnippet.newBuilder() to construct. + private CitedSnippet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CitedSnippet() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CitedSnippet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_CitedSnippet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_CitedSnippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.Builder + .class); + } + + private int bitField0_; + public static final int SEARCH_SNIPPET_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + searchSnippet_; + /** + * + * + *
        +     * Details of the snippet.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + * + * @return Whether the searchSnippet field is set. + */ + @java.lang.Override + public boolean hasSearchSnippet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * Details of the snippet.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + * + * @return The searchSnippet. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + getSearchSnippet() { + return searchSnippet_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + .getDefaultInstance() + : searchSnippet_; + } + /** + * + * + *
        +     * Details of the snippet.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetOrBuilder + getSearchSnippetOrBuilder() { + return searchSnippet_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + .getDefaultInstance() + : searchSnippet_; + } + + public static final int SNIPPET_INDEX_FIELD_NUMBER = 2; + private int snippetIndex_ = 0; + /** + * + * + *
        +     * Index of the snippet in `search_snippets` field.
        +     * 
        + * + * int32 snippet_index = 2; + * + * @return The snippetIndex. + */ + @java.lang.Override + public int getSnippetIndex() { + return snippetIndex_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSearchSnippet()); + } + if (snippetIndex_ != 0) { + output.writeInt32(2, snippetIndex_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSearchSnippet()); + } + if (snippetIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, snippetIndex_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet other = + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet) obj; + + if (hasSearchSnippet() != other.hasSearchSnippet()) return false; + if (hasSearchSnippet()) { + if (!getSearchSnippet().equals(other.getSearchSnippet())) return false; + } + if (getSnippetIndex() != other.getSnippetIndex()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSearchSnippet()) { + hash = (37 * hash) + SEARCH_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSearchSnippet().hashCode(); + } + hash = (37 * hash) + SNIPPET_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getSnippetIndex(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +     * Snippet cited by the answer generation model.
        +     * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet) + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_CitedSnippet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_CitedSnippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSearchSnippetFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + searchSnippet_ = null; + if (searchSnippetBuilder_ != null) { + searchSnippetBuilder_.dispose(); + searchSnippetBuilder_ = null; + } + snippetIndex_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_CitedSnippet_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet build() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + buildPartial() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet result = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.searchSnippet_ = + searchSnippetBuilder_ == null ? searchSnippet_ : searchSnippetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.snippetIndex_ = snippetIndex_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet other) { + if (other + == com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + .getDefaultInstance()) return this; + if (other.hasSearchSnippet()) { + mergeSearchSnippet(other.getSearchSnippet()); + } + if (other.getSnippetIndex() != 0) { + setSnippetIndex(other.getSnippetIndex()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSearchSnippetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + snippetIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + searchSnippet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetOrBuilder> + searchSnippetBuilder_; + /** + * + * + *
        +       * Details of the snippet.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + * + * @return Whether the searchSnippet field is set. + */ + public boolean hasSearchSnippet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +       * Details of the snippet.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + * + * @return The searchSnippet. + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + getSearchSnippet() { + if (searchSnippetBuilder_ == null) { + return searchSnippet_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + .getDefaultInstance() + : searchSnippet_; + } else { + return searchSnippetBuilder_.getMessage(); + } + } + /** + * + * + *
        +       * Details of the snippet.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + */ + public Builder setSearchSnippet( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet value) { + if (searchSnippetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchSnippet_ = value; + } else { + searchSnippetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * Details of the snippet.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + */ + public Builder setSearchSnippet( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder + builderForValue) { + if (searchSnippetBuilder_ == null) { + searchSnippet_ = builderForValue.build(); + } else { + searchSnippetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * Details of the snippet.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + */ + public Builder mergeSearchSnippet( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet value) { + if (searchSnippetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && searchSnippet_ != null + && searchSnippet_ + != com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + .getDefaultInstance()) { + getSearchSnippetBuilder().mergeFrom(value); + } else { + searchSnippet_ = value; + } + } else { + searchSnippetBuilder_.mergeFrom(value); + } + if (searchSnippet_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +       * Details of the snippet.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + */ + public Builder clearSearchSnippet() { + bitField0_ = (bitField0_ & ~0x00000001); + searchSnippet_ = null; + if (searchSnippetBuilder_ != null) { + searchSnippetBuilder_.dispose(); + searchSnippetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +       * Details of the snippet.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder + getSearchSnippetBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSearchSnippetFieldBuilder().getBuilder(); + } + /** + * + * + *
        +       * Details of the snippet.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetOrBuilder + getSearchSnippetOrBuilder() { + if (searchSnippetBuilder_ != null) { + return searchSnippetBuilder_.getMessageOrBuilder(); + } else { + return searchSnippet_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + .getDefaultInstance() + : searchSnippet_; + } + } + /** + * + * + *
        +       * Details of the snippet.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippet = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetOrBuilder> + getSearchSnippetFieldBuilder() { + if (searchSnippetBuilder_ == null) { + searchSnippetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + .Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .SearchSnippetOrBuilder>( + getSearchSnippet(), getParentForChildren(), isClean()); + searchSnippet_ = null; + } + return searchSnippetBuilder_; + } + + private int snippetIndex_; + /** + * + * + *
        +       * Index of the snippet in `search_snippets` field.
        +       * 
        + * + * int32 snippet_index = 2; + * + * @return The snippetIndex. + */ + @java.lang.Override + public int getSnippetIndex() { + return snippetIndex_; + } + /** + * + * + *
        +       * Index of the snippet in `search_snippets` field.
        +       * 
        + * + * int32 snippet_index = 2; + * + * @param value The snippetIndex to set. + * @return This builder for chaining. + */ + public Builder setSnippetIndex(int value) { + + snippetIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Index of the snippet in `search_snippets` field.
        +       * 
        + * + * int32 snippet_index = 2; + * + * @return This builder for chaining. + */ + public Builder clearSnippetIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + snippetIndex_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet) + private static final com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet(); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CitedSnippet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GroundingSignalsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Represents the decision of the grounding check.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingDecision decision = 1; + * + * + * @return The enum numeric value on the wire for decision. + */ + int getDecisionValue(); + /** + * + * + *
        +     * Represents the decision of the grounding check.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingDecision decision = 1; + * + * + * @return The decision. + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingDecision + getDecision(); + + /** + * + * + *
        +     * Grounding score bucket setting.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingScoreBucket score = 2; + * + * + * @return The enum numeric value on the wire for score. + */ + int getScoreValue(); + /** + * + * + *
        +     * Grounding score bucket setting.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingScoreBucket score = 2; + * + * + * @return The score. + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingScoreBucket + getScore(); + } + /** + * + * + *
        +   * Grounding signals.
        +   * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals} + */ + public static final class GroundingSignals extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals) + GroundingSignalsOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroundingSignals.newBuilder() to construct. + private GroundingSignals(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroundingSignals() { + decision_ = 0; + score_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroundingSignals(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_GroundingSignals_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_GroundingSignals_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.Builder + .class); + } + + /** + * + * + *
        +     * Represents the decision of the grounding check.
        +     * 
        + * + * Protobuf enum {@code + * google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingDecision} + */ + public enum GroundingDecision implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +       * Decision not specified.
        +       * 
        + * + * GROUNDING_DECISION_UNSPECIFIED = 0; + */ + GROUNDING_DECISION_UNSPECIFIED(0), + /** + * + * + *
        +       * Grounding have accepted the answer.
        +       * 
        + * + * ACCEPTED_BY_GROUNDING = 1; + */ + ACCEPTED_BY_GROUNDING(1), + /** + * + * + *
        +       * Grounding have rejected the answer.
        +       * 
        + * + * REJECTED_BY_GROUNDING = 2; + */ + REJECTED_BY_GROUNDING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +       * Decision not specified.
        +       * 
        + * + * GROUNDING_DECISION_UNSPECIFIED = 0; + */ + public static final int GROUNDING_DECISION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +       * Grounding have accepted the answer.
        +       * 
        + * + * ACCEPTED_BY_GROUNDING = 1; + */ + public static final int ACCEPTED_BY_GROUNDING_VALUE = 1; + /** + * + * + *
        +       * Grounding have rejected the answer.
        +       * 
        + * + * REJECTED_BY_GROUNDING = 2; + */ + public static final int REJECTED_BY_GROUNDING_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GroundingDecision valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static GroundingDecision forNumber(int value) { + switch (value) { + case 0: + return GROUNDING_DECISION_UNSPECIFIED; + case 1: + return ACCEPTED_BY_GROUNDING; + case 2: + return REJECTED_BY_GROUNDING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GroundingDecision findValueByNumber(int number) { + return GroundingDecision.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final GroundingDecision[] VALUES = values(); + + public static GroundingDecision valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GroundingDecision(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingDecision) + } + + /** + * + * + *
        +     * Grounding score buckets.
        +     * 
        + * + * Protobuf enum {@code + * google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingScoreBucket} + */ + public enum GroundingScoreBucket implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +       * Score not specified.
        +       * 
        + * + * GROUNDING_SCORE_BUCKET_UNSPECIFIED = 0; + */ + GROUNDING_SCORE_BUCKET_UNSPECIFIED(0), + /** + * + * + *
        +       * We have very low confidence that the answer is grounded.
        +       * 
        + * + * VERY_LOW = 1; + */ + VERY_LOW(1), + /** + * + * + *
        +       * We have low confidence that the answer is grounded.
        +       * 
        + * + * LOW = 3; + */ + LOW(3), + /** + * + * + *
        +       * We have medium confidence that the answer is grounded.
        +       * 
        + * + * MEDIUM = 4; + */ + MEDIUM(4), + /** + * + * + *
        +       * We have high confidence that the answer is grounded.
        +       * 
        + * + * HIGH = 5; + */ + HIGH(5), + /** + * + * + *
        +       * We have very high confidence that the answer is grounded.
        +       * 
        + * + * VERY_HIGH = 6; + */ + VERY_HIGH(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +       * Score not specified.
        +       * 
        + * + * GROUNDING_SCORE_BUCKET_UNSPECIFIED = 0; + */ + public static final int GROUNDING_SCORE_BUCKET_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +       * We have very low confidence that the answer is grounded.
        +       * 
        + * + * VERY_LOW = 1; + */ + public static final int VERY_LOW_VALUE = 1; + /** + * + * + *
        +       * We have low confidence that the answer is grounded.
        +       * 
        + * + * LOW = 3; + */ + public static final int LOW_VALUE = 3; + /** + * + * + *
        +       * We have medium confidence that the answer is grounded.
        +       * 
        + * + * MEDIUM = 4; + */ + public static final int MEDIUM_VALUE = 4; + /** + * + * + *
        +       * We have high confidence that the answer is grounded.
        +       * 
        + * + * HIGH = 5; + */ + public static final int HIGH_VALUE = 5; + /** + * + * + *
        +       * We have very high confidence that the answer is grounded.
        +       * 
        + * + * VERY_HIGH = 6; + */ + public static final int VERY_HIGH_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GroundingScoreBucket valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static GroundingScoreBucket forNumber(int value) { + switch (value) { + case 0: + return GROUNDING_SCORE_BUCKET_UNSPECIFIED; + case 1: + return VERY_LOW; + case 3: + return LOW; + case 4: + return MEDIUM; + case 5: + return HIGH; + case 6: + return VERY_HIGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GroundingScoreBucket findValueByNumber(int number) { + return GroundingScoreBucket.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final GroundingScoreBucket[] VALUES = values(); + + public static GroundingScoreBucket valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GroundingScoreBucket(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingScoreBucket) + } + + public static final int DECISION_FIELD_NUMBER = 1; + private int decision_ = 0; + /** + * + * + *
        +     * Represents the decision of the grounding check.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingDecision decision = 1; + * + * + * @return The enum numeric value on the wire for decision. + */ + @java.lang.Override + public int getDecisionValue() { + return decision_; + } + /** + * + * + *
        +     * Represents the decision of the grounding check.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingDecision decision = 1; + * + * + * @return The decision. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingDecision + getDecision() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingDecision + result = + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingDecision.forNumber(decision_); + return result == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingDecision.UNRECOGNIZED + : result; + } + + public static final int SCORE_FIELD_NUMBER = 2; + private int score_ = 0; + /** + * + * + *
        +     * Grounding score bucket setting.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingScoreBucket score = 2; + * + * + * @return The enum numeric value on the wire for score. + */ + @java.lang.Override + public int getScoreValue() { + return score_; + } + /** + * + * + *
        +     * Grounding score bucket setting.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingScoreBucket score = 2; + * + * + * @return The score. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingScoreBucket + getScore() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingScoreBucket + result = + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingScoreBucket.forNumber(score_); + return result == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingScoreBucket.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (decision_ + != com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingDecision.GROUNDING_DECISION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, decision_); + } + if (score_ + != com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingScoreBucket.GROUNDING_SCORE_BUCKET_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, score_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (decision_ + != com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingDecision.GROUNDING_DECISION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, decision_); + } + if (score_ + != com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingScoreBucket.GROUNDING_SCORE_BUCKET_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, score_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals other = + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals) obj; + + if (decision_ != other.decision_) return false; + if (score_ != other.score_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DECISION_FIELD_NUMBER; + hash = (53 * hash) + decision_; + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + score_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +     * Grounding signals.
        +     * 
        + * + * Protobuf type {@code + * google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals) + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignalsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_GroundingSignals_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_GroundingSignals_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + decision_ = 0; + score_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_GroundingSignals_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals build() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + buildPartial() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals result = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.decision_ = decision_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.score_ = score_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals other) { + if (other + == com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .getDefaultInstance()) return this; + if (other.decision_ != 0) { + setDecisionValue(other.getDecisionValue()); + } + if (other.score_ != 0) { + setScoreValue(other.getScoreValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + decision_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + score_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int decision_ = 0; + /** + * + * + *
        +       * Represents the decision of the grounding check.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingDecision decision = 1; + * + * + * @return The enum numeric value on the wire for decision. + */ + @java.lang.Override + public int getDecisionValue() { + return decision_; + } + /** + * + * + *
        +       * Represents the decision of the grounding check.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingDecision decision = 1; + * + * + * @param value The enum numeric value on the wire for decision to set. + * @return This builder for chaining. + */ + public Builder setDecisionValue(int value) { + decision_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * Represents the decision of the grounding check.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingDecision decision = 1; + * + * + * @return The decision. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingDecision + getDecision() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingDecision + result = + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingDecision.forNumber(decision_); + return result == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingDecision.UNRECOGNIZED + : result; + } + /** + * + * + *
        +       * Represents the decision of the grounding check.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingDecision decision = 1; + * + * + * @param value The decision to set. + * @return This builder for chaining. + */ + public Builder setDecision( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingDecision + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + decision_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +       * Represents the decision of the grounding check.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingDecision decision = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearDecision() { + bitField0_ = (bitField0_ & ~0x00000001); + decision_ = 0; + onChanged(); + return this; + } + + private int score_ = 0; + /** + * + * + *
        +       * Grounding score bucket setting.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingScoreBucket score = 2; + * + * + * @return The enum numeric value on the wire for score. + */ + @java.lang.Override + public int getScoreValue() { + return score_; + } + /** + * + * + *
        +       * Grounding score bucket setting.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingScoreBucket score = 2; + * + * + * @param value The enum numeric value on the wire for score to set. + * @return This builder for chaining. + */ + public Builder setScoreValue(int value) { + score_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Grounding score bucket setting.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingScoreBucket score = 2; + * + * + * @return The score. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingScoreBucket + getScore() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingScoreBucket + result = + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingScoreBucket.forNumber(score_); + return result == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingScoreBucket.UNRECOGNIZED + : result; + } + /** + * + * + *
        +       * Grounding score bucket setting.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingScoreBucket score = 2; + * + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .GroundingScoreBucket + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + score_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +       * Grounding score bucket setting.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.GroundingScoreBucket score = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000002); + score_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals) + private static final com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .GroundingSignals + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals(); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroundingSignals parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SafetySignalsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Safety decision.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision decision = 1; + * + * + * @return The enum numeric value on the wire for decision. + */ + int getDecisionValue(); + /** + * + * + *
        +     * Safety decision.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision decision = 1; + * + * + * @return The decision. + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision + getDecision(); + + /** + * + * + *
        +     * Specifies banned phrase match subject.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch banned_phrase_match = 2; + * + * + * @return The enum numeric value on the wire for bannedPhraseMatch. + */ + int getBannedPhraseMatchValue(); + /** + * + * + *
        +     * Specifies banned phrase match subject.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch banned_phrase_match = 2; + * + * + * @return The bannedPhraseMatch. + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch + getBannedPhraseMatch(); + + /** + * + * + *
        +     * The matched banned phrase if there was a match.
        +     * 
        + * + * string matched_banned_phrase = 3; + * + * @return The matchedBannedPhrase. + */ + java.lang.String getMatchedBannedPhrase(); + /** + * + * + *
        +     * The matched banned phrase if there was a match.
        +     * 
        + * + * string matched_banned_phrase = 3; + * + * @return The bytes for matchedBannedPhrase. + */ + com.google.protobuf.ByteString getMatchedBannedPhraseBytes(); + } + /** + * + * + *
        +   * Safety check results.
        +   * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals} + */ + public static final class SafetySignals extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals) + SafetySignalsOrBuilder { + private static final long serialVersionUID = 0L; + // Use SafetySignals.newBuilder() to construct. + private SafetySignals(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SafetySignals() { + decision_ = 0; + bannedPhraseMatch_ = 0; + matchedBannedPhrase_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SafetySignals(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SafetySignals_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SafetySignals_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.Builder + .class); + } + + /** + * + * + *
        +     * Safety decision.
        +     * All kinds of check are incorporated into this final decision, including
        +     * banned phrases check.
        +     * 
        + * + * Protobuf enum {@code + * google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision} + */ + public enum SafetyDecision implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +       * Decision not specified.
        +       * 
        + * + * SAFETY_DECISION_UNSPECIFIED = 0; + */ + SAFETY_DECISION_UNSPECIFIED(0), + /** + * + * + *
        +       * No manual or automatic safety check fired.
        +       * 
        + * + * ACCEPTED_BY_SAFETY_CHECK = 1; + */ + ACCEPTED_BY_SAFETY_CHECK(1), + /** + * + * + *
        +       * One ore more safety checks fired.
        +       * 
        + * + * REJECTED_BY_SAFETY_CHECK = 2; + */ + REJECTED_BY_SAFETY_CHECK(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +       * Decision not specified.
        +       * 
        + * + * SAFETY_DECISION_UNSPECIFIED = 0; + */ + public static final int SAFETY_DECISION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +       * No manual or automatic safety check fired.
        +       * 
        + * + * ACCEPTED_BY_SAFETY_CHECK = 1; + */ + public static final int ACCEPTED_BY_SAFETY_CHECK_VALUE = 1; + /** + * + * + *
        +       * One ore more safety checks fired.
        +       * 
        + * + * REJECTED_BY_SAFETY_CHECK = 2; + */ + public static final int REJECTED_BY_SAFETY_CHECK_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SafetyDecision valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SafetyDecision forNumber(int value) { + switch (value) { + case 0: + return SAFETY_DECISION_UNSPECIFIED; + case 1: + return ACCEPTED_BY_SAFETY_CHECK; + case 2: + return REJECTED_BY_SAFETY_CHECK; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SafetyDecision findValueByNumber(int number) { + return SafetyDecision.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SafetyDecision[] VALUES = values(); + + public static SafetyDecision valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SafetyDecision(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision) + } + + /** + * + * + *
        +     * Specifies banned phrase match subject.
        +     * 
        + * + * Protobuf enum {@code + * google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch} + */ + public enum BannedPhraseMatch implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +       * No banned phrase check was executed.
        +       * 
        + * + * BANNED_PHRASE_MATCH_UNSPECIFIED = 0; + */ + BANNED_PHRASE_MATCH_UNSPECIFIED(0), + /** + * + * + *
        +       * All banned phrase checks led to no match.
        +       * 
        + * + * BANNED_PHRASE_MATCH_NONE = 1; + */ + BANNED_PHRASE_MATCH_NONE(1), + /** + * + * + *
        +       * A banned phrase matched the query.
        +       * 
        + * + * BANNED_PHRASE_MATCH_QUERY = 2; + */ + BANNED_PHRASE_MATCH_QUERY(2), + /** + * + * + *
        +       * A banned phrase matched the response.
        +       * 
        + * + * BANNED_PHRASE_MATCH_RESPONSE = 3; + */ + BANNED_PHRASE_MATCH_RESPONSE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +       * No banned phrase check was executed.
        +       * 
        + * + * BANNED_PHRASE_MATCH_UNSPECIFIED = 0; + */ + public static final int BANNED_PHRASE_MATCH_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +       * All banned phrase checks led to no match.
        +       * 
        + * + * BANNED_PHRASE_MATCH_NONE = 1; + */ + public static final int BANNED_PHRASE_MATCH_NONE_VALUE = 1; + /** + * + * + *
        +       * A banned phrase matched the query.
        +       * 
        + * + * BANNED_PHRASE_MATCH_QUERY = 2; + */ + public static final int BANNED_PHRASE_MATCH_QUERY_VALUE = 2; + /** + * + * + *
        +       * A banned phrase matched the response.
        +       * 
        + * + * BANNED_PHRASE_MATCH_RESPONSE = 3; + */ + public static final int BANNED_PHRASE_MATCH_RESPONSE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BannedPhraseMatch valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static BannedPhraseMatch forNumber(int value) { + switch (value) { + case 0: + return BANNED_PHRASE_MATCH_UNSPECIFIED; + case 1: + return BANNED_PHRASE_MATCH_NONE; + case 2: + return BANNED_PHRASE_MATCH_QUERY; + case 3: + return BANNED_PHRASE_MATCH_RESPONSE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BannedPhraseMatch findValueByNumber(int number) { + return BannedPhraseMatch.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final BannedPhraseMatch[] VALUES = values(); + + public static BannedPhraseMatch valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BannedPhraseMatch(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch) + } + + public static final int DECISION_FIELD_NUMBER = 1; + private int decision_ = 0; + /** + * + * + *
        +     * Safety decision.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision decision = 1; + * + * + * @return The enum numeric value on the wire for decision. + */ + @java.lang.Override + public int getDecisionValue() { + return decision_; + } + /** + * + * + *
        +     * Safety decision.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision decision = 1; + * + * + * @return The decision. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision + getDecision() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision + result = + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .SafetyDecision.forNumber(decision_); + return result == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .SafetyDecision.UNRECOGNIZED + : result; + } + + public static final int BANNED_PHRASE_MATCH_FIELD_NUMBER = 2; + private int bannedPhraseMatch_ = 0; + /** + * + * + *
        +     * Specifies banned phrase match subject.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch banned_phrase_match = 2; + * + * + * @return The enum numeric value on the wire for bannedPhraseMatch. + */ + @java.lang.Override + public int getBannedPhraseMatchValue() { + return bannedPhraseMatch_; + } + /** + * + * + *
        +     * Specifies banned phrase match subject.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch banned_phrase_match = 2; + * + * + * @return The bannedPhraseMatch. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .BannedPhraseMatch + getBannedPhraseMatch() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch + result = + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .BannedPhraseMatch.forNumber(bannedPhraseMatch_); + return result == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .BannedPhraseMatch.UNRECOGNIZED + : result; + } + + public static final int MATCHED_BANNED_PHRASE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object matchedBannedPhrase_ = ""; + /** + * + * + *
        +     * The matched banned phrase if there was a match.
        +     * 
        + * + * string matched_banned_phrase = 3; + * + * @return The matchedBannedPhrase. + */ + @java.lang.Override + public java.lang.String getMatchedBannedPhrase() { + java.lang.Object ref = matchedBannedPhrase_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + matchedBannedPhrase_ = s; + return s; + } + } + /** + * + * + *
        +     * The matched banned phrase if there was a match.
        +     * 
        + * + * string matched_banned_phrase = 3; + * + * @return The bytes for matchedBannedPhrase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMatchedBannedPhraseBytes() { + java.lang.Object ref = matchedBannedPhrase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchedBannedPhrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (decision_ + != com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .SafetyDecision.SAFETY_DECISION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, decision_); + } + if (bannedPhraseMatch_ + != com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .BannedPhraseMatch.BANNED_PHRASE_MATCH_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, bannedPhraseMatch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchedBannedPhrase_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, matchedBannedPhrase_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (decision_ + != com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .SafetyDecision.SAFETY_DECISION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, decision_); + } + if (bannedPhraseMatch_ + != com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .BannedPhraseMatch.BANNED_PHRASE_MATCH_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, bannedPhraseMatch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchedBannedPhrase_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, matchedBannedPhrase_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals other = + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals) obj; + + if (decision_ != other.decision_) return false; + if (bannedPhraseMatch_ != other.bannedPhraseMatch_) return false; + if (!getMatchedBannedPhrase().equals(other.getMatchedBannedPhrase())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DECISION_FIELD_NUMBER; + hash = (53 * hash) + decision_; + hash = (37 * hash) + BANNED_PHRASE_MATCH_FIELD_NUMBER; + hash = (53 * hash) + bannedPhraseMatch_; + hash = (37 * hash) + MATCHED_BANNED_PHRASE_FIELD_NUMBER; + hash = (53 * hash) + getMatchedBannedPhrase().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +     * Safety check results.
        +     * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals) + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignalsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SafetySignals_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SafetySignals_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + decision_ = 0; + bannedPhraseMatch_ = 0; + matchedBannedPhrase_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_SafetySignals_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals build() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + buildPartial() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals result = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.decision_ = decision_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bannedPhraseMatch_ = bannedPhraseMatch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.matchedBannedPhrase_ = matchedBannedPhrase_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals other) { + if (other + == com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .getDefaultInstance()) return this; + if (other.decision_ != 0) { + setDecisionValue(other.getDecisionValue()); + } + if (other.bannedPhraseMatch_ != 0) { + setBannedPhraseMatchValue(other.getBannedPhraseMatchValue()); + } + if (!other.getMatchedBannedPhrase().isEmpty()) { + matchedBannedPhrase_ = other.matchedBannedPhrase_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + decision_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + bannedPhraseMatch_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + matchedBannedPhrase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int decision_ = 0; + /** + * + * + *
        +       * Safety decision.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision decision = 1; + * + * + * @return The enum numeric value on the wire for decision. + */ + @java.lang.Override + public int getDecisionValue() { + return decision_; + } + /** + * + * + *
        +       * Safety decision.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision decision = 1; + * + * + * @param value The enum numeric value on the wire for decision to set. + * @return This builder for chaining. + */ + public Builder setDecisionValue(int value) { + decision_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * Safety decision.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision decision = 1; + * + * + * @return The decision. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .SafetyDecision + getDecision() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision + result = + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .SafetyDecision.forNumber(decision_); + return result == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .SafetyDecision.UNRECOGNIZED + : result; + } + /** + * + * + *
        +       * Safety decision.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision decision = 1; + * + * + * @param value The decision to set. + * @return This builder for chaining. + */ + public Builder setDecision( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + decision_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +       * Safety decision.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.SafetyDecision decision = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearDecision() { + bitField0_ = (bitField0_ & ~0x00000001); + decision_ = 0; + onChanged(); + return this; + } + + private int bannedPhraseMatch_ = 0; + /** + * + * + *
        +       * Specifies banned phrase match subject.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch banned_phrase_match = 2; + * + * + * @return The enum numeric value on the wire for bannedPhraseMatch. + */ + @java.lang.Override + public int getBannedPhraseMatchValue() { + return bannedPhraseMatch_; + } + /** + * + * + *
        +       * Specifies banned phrase match subject.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch banned_phrase_match = 2; + * + * + * @param value The enum numeric value on the wire for bannedPhraseMatch to set. + * @return This builder for chaining. + */ + public Builder setBannedPhraseMatchValue(int value) { + bannedPhraseMatch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Specifies banned phrase match subject.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch banned_phrase_match = 2; + * + * + * @return The bannedPhraseMatch. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .BannedPhraseMatch + getBannedPhraseMatch() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch + result = + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .BannedPhraseMatch.forNumber(bannedPhraseMatch_); + return result == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .BannedPhraseMatch.UNRECOGNIZED + : result; + } + /** + * + * + *
        +       * Specifies banned phrase match subject.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch banned_phrase_match = 2; + * + * + * @param value The bannedPhraseMatch to set. + * @return This builder for chaining. + */ + public Builder setBannedPhraseMatch( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .BannedPhraseMatch + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + bannedPhraseMatch_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +       * Specifies banned phrase match subject.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch banned_phrase_match = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearBannedPhraseMatch() { + bitField0_ = (bitField0_ & ~0x00000002); + bannedPhraseMatch_ = 0; + onChanged(); + return this; + } + + private java.lang.Object matchedBannedPhrase_ = ""; + /** + * + * + *
        +       * The matched banned phrase if there was a match.
        +       * 
        + * + * string matched_banned_phrase = 3; + * + * @return The matchedBannedPhrase. + */ + public java.lang.String getMatchedBannedPhrase() { + java.lang.Object ref = matchedBannedPhrase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + matchedBannedPhrase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * The matched banned phrase if there was a match.
        +       * 
        + * + * string matched_banned_phrase = 3; + * + * @return The bytes for matchedBannedPhrase. + */ + public com.google.protobuf.ByteString getMatchedBannedPhraseBytes() { + java.lang.Object ref = matchedBannedPhrase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchedBannedPhrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * The matched banned phrase if there was a match.
        +       * 
        + * + * string matched_banned_phrase = 3; + * + * @param value The matchedBannedPhrase to set. + * @return This builder for chaining. + */ + public Builder setMatchedBannedPhrase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + matchedBannedPhrase_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +       * The matched banned phrase if there was a match.
        +       * 
        + * + * string matched_banned_phrase = 3; + * + * @return This builder for chaining. + */ + public Builder clearMatchedBannedPhrase() { + matchedBannedPhrase_ = getDefaultInstance().getMatchedBannedPhrase(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +       * The matched banned phrase if there was a match.
        +       * 
        + * + * string matched_banned_phrase = 3; + * + * @param value The bytes for matchedBannedPhrase to set. + * @return This builder for chaining. + */ + public Builder setMatchedBannedPhraseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + matchedBannedPhrase_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals) + private static final com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals(); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafetySignals parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int REWRITER_MODEL_CALL_SIGNALS_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + rewriterModelCallSignals_; + /** + * + * + *
        +   * Optional. Diagnostic info related to the rewriter model call.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rewriterModelCallSignals field is set. + */ + @java.lang.Override + public boolean hasRewriterModelCallSignals() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * Optional. Diagnostic info related to the rewriter model call.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rewriterModelCallSignals. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + getRewriterModelCallSignals() { + return rewriterModelCallSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + .getDefaultInstance() + : rewriterModelCallSignals_; + } + /** + * + * + *
        +   * Optional. Diagnostic info related to the rewriter model call.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignalsOrBuilder + getRewriterModelCallSignalsOrBuilder() { + return rewriterModelCallSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + .getDefaultInstance() + : rewriterModelCallSignals_; + } + + public static final int REWRITTEN_QUERY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rewrittenQuery_ = ""; + /** + * + * + *
        +   * Optional. Rewritten string query used for search.
        +   * 
        + * + * string rewritten_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rewrittenQuery. + */ + @java.lang.Override + public java.lang.String getRewrittenQuery() { + java.lang.Object ref = rewrittenQuery_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rewrittenQuery_ = s; + return s; + } + } + /** + * + * + *
        +   * Optional. Rewritten string query used for search.
        +   * 
        + * + * string rewritten_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rewrittenQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRewrittenQueryBytes() { + java.lang.Object ref = rewrittenQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rewrittenQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEARCH_SNIPPETS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + searchSnippets_; + /** + * + * + *
        +   * Optional. Search snippets included in the answer generation prompt.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSearchSnippetsList() { + return searchSnippets_; + } + /** + * + * + *
        +   * Optional. Search snippets included in the answer generation prompt.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetOrBuilder> + getSearchSnippetsOrBuilderList() { + return searchSnippets_; + } + /** + * + * + *
        +   * Optional. Search snippets included in the answer generation prompt.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSearchSnippetsCount() { + return searchSnippets_.size(); + } + /** + * + * + *
        +   * Optional. Search snippets included in the answer generation prompt.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + getSearchSnippets(int index) { + return searchSnippets_.get(index); + } + /** + * + * + *
        +   * Optional. Search snippets included in the answer generation prompt.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetOrBuilder + getSearchSnippetsOrBuilder(int index) { + return searchSnippets_.get(index); + } + + public static final int ANSWER_GENERATION_MODEL_CALL_SIGNALS_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + answerGenerationModelCallSignals_; + /** + * + * + *
        +   * Optional. Diagnostic info related to the answer generation model call.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the answerGenerationModelCallSignals field is set. + */ + @java.lang.Override + public boolean hasAnswerGenerationModelCallSignals() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +   * Optional. Diagnostic info related to the answer generation model call.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The answerGenerationModelCallSignals. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + getAnswerGenerationModelCallSignals() { + return answerGenerationModelCallSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.getDefaultInstance() + : answerGenerationModelCallSignals_; + } + /** + * + * + *
        +   * Optional. Diagnostic info related to the answer generation model call.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignalsOrBuilder + getAnswerGenerationModelCallSignalsOrBuilder() { + return answerGenerationModelCallSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.getDefaultInstance() + : answerGenerationModelCallSignals_; + } + + public static final int ANSWER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object answer_ = ""; + /** + * + * + *
        +   * Optional. The final compiled answer.
        +   * 
        + * + * string answer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answer. + */ + @java.lang.Override + public java.lang.String getAnswer() { + java.lang.Object ref = answer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answer_ = s; + return s; + } + } + /** + * + * + *
        +   * Optional. The final compiled answer.
        +   * 
        + * + * string answer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerBytes() { + java.lang.Object ref = answer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANSWER_PARTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List + answerParts_; + /** + * + * + *
        +   * Optional. Answer parts with relevant citations.
        +   * Concatenation of texts should add up the `answer` (not counting
        +   * whitespaces).
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAnswerPartsList() { + return answerParts_; + } + /** + * + * + *
        +   * Optional. Answer parts with relevant citations.
        +   * Concatenation of texts should add up the `answer` (not counting
        +   * whitespaces).
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPartOrBuilder> + getAnswerPartsOrBuilderList() { + return answerParts_; + } + /** + * + * + *
        +   * Optional. Answer parts with relevant citations.
        +   * Concatenation of texts should add up the `answer` (not counting
        +   * whitespaces).
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAnswerPartsCount() { + return answerParts_.size(); + } + /** + * + * + *
        +   * Optional. Answer parts with relevant citations.
        +   * Concatenation of texts should add up the `answer` (not counting
        +   * whitespaces).
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart getAnswerParts( + int index) { + return answerParts_.get(index); + } + /** + * + * + *
        +   * Optional. Answer parts with relevant citations.
        +   * Concatenation of texts should add up the `answer` (not counting
        +   * whitespaces).
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPartOrBuilder + getAnswerPartsOrBuilder(int index) { + return answerParts_.get(index); + } + + public static final int CITED_SNIPPETS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List + citedSnippets_; + /** + * + * + *
        +   * Optional. Snippets cited by the answer generation model from the most to
        +   * least relevant.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCitedSnippetsList() { + return citedSnippets_; + } + /** + * + * + *
        +   * Optional. Snippets cited by the answer generation model from the most to
        +   * least relevant.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippetOrBuilder> + getCitedSnippetsOrBuilderList() { + return citedSnippets_; + } + /** + * + * + *
        +   * Optional. Snippets cited by the answer generation model from the most to
        +   * least relevant.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCitedSnippetsCount() { + return citedSnippets_.size(); + } + /** + * + * + *
        +   * Optional. Snippets cited by the answer generation model from the most to
        +   * least relevant.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet getCitedSnippets( + int index) { + return citedSnippets_.get(index); + } + /** + * + * + *
        +   * Optional. Snippets cited by the answer generation model from the most to
        +   * least relevant.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippetOrBuilder + getCitedSnippetsOrBuilder(int index) { + return citedSnippets_.get(index); + } + + public static final int GROUNDING_SIGNALS_FIELD_NUMBER = 8; + private com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + groundingSignals_; + /** + * + * + *
        +   * Optional. Grounding signals.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the groundingSignals field is set. + */ + @java.lang.Override + public boolean hasGroundingSignals() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
        +   * Optional. Grounding signals.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The groundingSignals. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + getGroundingSignals() { + return groundingSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .getDefaultInstance() + : groundingSignals_; + } + /** + * + * + *
        +   * Optional. Grounding signals.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignalsOrBuilder + getGroundingSignalsOrBuilder() { + return groundingSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .getDefaultInstance() + : groundingSignals_; + } + + public static final int SAFETY_SIGNALS_FIELD_NUMBER = 9; + private com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safetySignals_; + /** + * + * + *
        +   * Optional. Safety check result.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the safetySignals field is set. + */ + @java.lang.Override + public boolean hasSafetySignals() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
        +   * Optional. Safety check result.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The safetySignals. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + getSafetySignals() { + return safetySignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .getDefaultInstance() + : safetySignals_; + } + /** + * + * + *
        +   * Optional. Safety check result.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignalsOrBuilder + getSafetySignalsOrBuilder() { + return safetySignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .getDefaultInstance() + : safetySignals_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRewriterModelCallSignals()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewrittenQuery_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rewrittenQuery_); + } + for (int i = 0; i < searchSnippets_.size(); i++) { + output.writeMessage(3, searchSnippets_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getAnswerGenerationModelCallSignals()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answer_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, answer_); + } + for (int i = 0; i < answerParts_.size(); i++) { + output.writeMessage(6, answerParts_.get(i)); + } + for (int i = 0; i < citedSnippets_.size(); i++) { + output.writeMessage(7, citedSnippets_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getGroundingSignals()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(9, getSafetySignals()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getRewriterModelCallSignals()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewrittenQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rewrittenQuery_); + } + for (int i = 0; i < searchSnippets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, searchSnippets_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getAnswerGenerationModelCallSignals()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answer_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, answer_); + } + for (int i = 0; i < answerParts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, answerParts_.get(i)); + } + for (int i = 0; i < citedSnippets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, citedSnippets_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getGroundingSignals()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSafetySignals()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals other = + (com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals) obj; + + if (hasRewriterModelCallSignals() != other.hasRewriterModelCallSignals()) return false; + if (hasRewriterModelCallSignals()) { + if (!getRewriterModelCallSignals().equals(other.getRewriterModelCallSignals())) return false; + } + if (!getRewrittenQuery().equals(other.getRewrittenQuery())) return false; + if (!getSearchSnippetsList().equals(other.getSearchSnippetsList())) return false; + if (hasAnswerGenerationModelCallSignals() != other.hasAnswerGenerationModelCallSignals()) + return false; + if (hasAnswerGenerationModelCallSignals()) { + if (!getAnswerGenerationModelCallSignals() + .equals(other.getAnswerGenerationModelCallSignals())) return false; + } + if (!getAnswer().equals(other.getAnswer())) return false; + if (!getAnswerPartsList().equals(other.getAnswerPartsList())) return false; + if (!getCitedSnippetsList().equals(other.getCitedSnippetsList())) return false; + if (hasGroundingSignals() != other.hasGroundingSignals()) return false; + if (hasGroundingSignals()) { + if (!getGroundingSignals().equals(other.getGroundingSignals())) return false; + } + if (hasSafetySignals() != other.hasSafetySignals()) return false; + if (hasSafetySignals()) { + if (!getSafetySignals().equals(other.getSafetySignals())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRewriterModelCallSignals()) { + hash = (37 * hash) + REWRITER_MODEL_CALL_SIGNALS_FIELD_NUMBER; + hash = (53 * hash) + getRewriterModelCallSignals().hashCode(); + } + hash = (37 * hash) + REWRITTEN_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getRewrittenQuery().hashCode(); + if (getSearchSnippetsCount() > 0) { + hash = (37 * hash) + SEARCH_SNIPPETS_FIELD_NUMBER; + hash = (53 * hash) + getSearchSnippetsList().hashCode(); + } + if (hasAnswerGenerationModelCallSignals()) { + hash = (37 * hash) + ANSWER_GENERATION_MODEL_CALL_SIGNALS_FIELD_NUMBER; + hash = (53 * hash) + getAnswerGenerationModelCallSignals().hashCode(); + } + hash = (37 * hash) + ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getAnswer().hashCode(); + if (getAnswerPartsCount() > 0) { + hash = (37 * hash) + ANSWER_PARTS_FIELD_NUMBER; + hash = (53 * hash) + getAnswerPartsList().hashCode(); + } + if (getCitedSnippetsCount() > 0) { + hash = (37 * hash) + CITED_SNIPPETS_FIELD_NUMBER; + hash = (53 * hash) + getCitedSnippetsList().hashCode(); + } + if (hasGroundingSignals()) { + hash = (37 * hash) + GROUNDING_SIGNALS_FIELD_NUMBER; + hash = (53 * hash) + getGroundingSignals().hashCode(); + } + if (hasSafetySignals()) { + hash = (37 * hash) + SAFETY_SIGNALS_FIELD_NUMBER; + hash = (53 * hash) + getSafetySignals().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Data store connection feature output signals.
        +   * Might be only partially field if processing stop before the final answer.
        +   * Reasons for this can be, but are not limited to: empty UCS search results,
        +   * positive RAI check outcome, grounding failure, ...
        +   * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals) + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignalsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.class, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRewriterModelCallSignalsFieldBuilder(); + getSearchSnippetsFieldBuilder(); + getAnswerGenerationModelCallSignalsFieldBuilder(); + getAnswerPartsFieldBuilder(); + getCitedSnippetsFieldBuilder(); + getGroundingSignalsFieldBuilder(); + getSafetySignalsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rewriterModelCallSignals_ = null; + if (rewriterModelCallSignalsBuilder_ != null) { + rewriterModelCallSignalsBuilder_.dispose(); + rewriterModelCallSignalsBuilder_ = null; + } + rewrittenQuery_ = ""; + if (searchSnippetsBuilder_ == null) { + searchSnippets_ = java.util.Collections.emptyList(); + } else { + searchSnippets_ = null; + searchSnippetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + answerGenerationModelCallSignals_ = null; + if (answerGenerationModelCallSignalsBuilder_ != null) { + answerGenerationModelCallSignalsBuilder_.dispose(); + answerGenerationModelCallSignalsBuilder_ = null; + } + answer_ = ""; + if (answerPartsBuilder_ == null) { + answerParts_ = java.util.Collections.emptyList(); + } else { + answerParts_ = null; + answerPartsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (citedSnippetsBuilder_ == null) { + citedSnippets_ = java.util.Collections.emptyList(); + } else { + citedSnippets_ = null; + citedSnippetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + groundingSignals_ = null; + if (groundingSignalsBuilder_ != null) { + groundingSignalsBuilder_.dispose(); + groundingSignalsBuilder_ = null; + } + safetySignals_ = null; + if (safetySignalsBuilder_ != null) { + safetySignalsBuilder_.dispose(); + safetySignalsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto + .internal_static_google_cloud_dialogflow_cx_v3_DataStoreConnectionSignals_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals build() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals buildPartial() { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals result = + new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals result) { + if (searchSnippetsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + searchSnippets_ = java.util.Collections.unmodifiableList(searchSnippets_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.searchSnippets_ = searchSnippets_; + } else { + result.searchSnippets_ = searchSnippetsBuilder_.build(); + } + if (answerPartsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + answerParts_ = java.util.Collections.unmodifiableList(answerParts_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.answerParts_ = answerParts_; + } else { + result.answerParts_ = answerPartsBuilder_.build(); + } + if (citedSnippetsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + citedSnippets_ = java.util.Collections.unmodifiableList(citedSnippets_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.citedSnippets_ = citedSnippets_; + } else { + result.citedSnippets_ = citedSnippetsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rewriterModelCallSignals_ = + rewriterModelCallSignalsBuilder_ == null + ? rewriterModelCallSignals_ + : rewriterModelCallSignalsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rewrittenQuery_ = rewrittenQuery_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.answerGenerationModelCallSignals_ = + answerGenerationModelCallSignalsBuilder_ == null + ? answerGenerationModelCallSignals_ + : answerGenerationModelCallSignalsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.answer_ = answer_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.groundingSignals_ = + groundingSignalsBuilder_ == null ? groundingSignals_ : groundingSignalsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.safetySignals_ = + safetySignalsBuilder_ == null ? safetySignals_ : safetySignalsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals other) { + if (other + == com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.getDefaultInstance()) + return this; + if (other.hasRewriterModelCallSignals()) { + mergeRewriterModelCallSignals(other.getRewriterModelCallSignals()); + } + if (!other.getRewrittenQuery().isEmpty()) { + rewrittenQuery_ = other.rewrittenQuery_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (searchSnippetsBuilder_ == null) { + if (!other.searchSnippets_.isEmpty()) { + if (searchSnippets_.isEmpty()) { + searchSnippets_ = other.searchSnippets_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSearchSnippetsIsMutable(); + searchSnippets_.addAll(other.searchSnippets_); + } + onChanged(); + } + } else { + if (!other.searchSnippets_.isEmpty()) { + if (searchSnippetsBuilder_.isEmpty()) { + searchSnippetsBuilder_.dispose(); + searchSnippetsBuilder_ = null; + searchSnippets_ = other.searchSnippets_; + bitField0_ = (bitField0_ & ~0x00000004); + searchSnippetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSearchSnippetsFieldBuilder() + : null; + } else { + searchSnippetsBuilder_.addAllMessages(other.searchSnippets_); + } + } + } + if (other.hasAnswerGenerationModelCallSignals()) { + mergeAnswerGenerationModelCallSignals(other.getAnswerGenerationModelCallSignals()); + } + if (!other.getAnswer().isEmpty()) { + answer_ = other.answer_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (answerPartsBuilder_ == null) { + if (!other.answerParts_.isEmpty()) { + if (answerParts_.isEmpty()) { + answerParts_ = other.answerParts_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureAnswerPartsIsMutable(); + answerParts_.addAll(other.answerParts_); + } + onChanged(); + } + } else { + if (!other.answerParts_.isEmpty()) { + if (answerPartsBuilder_.isEmpty()) { + answerPartsBuilder_.dispose(); + answerPartsBuilder_ = null; + answerParts_ = other.answerParts_; + bitField0_ = (bitField0_ & ~0x00000020); + answerPartsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAnswerPartsFieldBuilder() + : null; + } else { + answerPartsBuilder_.addAllMessages(other.answerParts_); + } + } + } + if (citedSnippetsBuilder_ == null) { + if (!other.citedSnippets_.isEmpty()) { + if (citedSnippets_.isEmpty()) { + citedSnippets_ = other.citedSnippets_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureCitedSnippetsIsMutable(); + citedSnippets_.addAll(other.citedSnippets_); + } + onChanged(); + } + } else { + if (!other.citedSnippets_.isEmpty()) { + if (citedSnippetsBuilder_.isEmpty()) { + citedSnippetsBuilder_.dispose(); + citedSnippetsBuilder_ = null; + citedSnippets_ = other.citedSnippets_; + bitField0_ = (bitField0_ & ~0x00000040); + citedSnippetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCitedSnippetsFieldBuilder() + : null; + } else { + citedSnippetsBuilder_.addAllMessages(other.citedSnippets_); + } + } + } + if (other.hasGroundingSignals()) { + mergeGroundingSignals(other.getGroundingSignals()); + } + if (other.hasSafetySignals()) { + mergeSafetySignals(other.getSafetySignals()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getRewriterModelCallSignalsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rewrittenQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet m = + input.readMessage( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + .parser(), + extensionRegistry); + if (searchSnippetsBuilder_ == null) { + ensureSearchSnippetsIsMutable(); + searchSnippets_.add(m); + } else { + searchSnippetsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage( + getAnswerGenerationModelCallSignalsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + answer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart m = + input.readMessage( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart + .parser(), + extensionRegistry); + if (answerPartsBuilder_ == null) { + ensureAnswerPartsIsMutable(); + answerParts_.add(m); + } else { + answerPartsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet m = + input.readMessage( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + .parser(), + extensionRegistry); + if (citedSnippetsBuilder_ == null) { + ensureCitedSnippetsIsMutable(); + citedSnippets_.add(m); + } else { + citedSnippetsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + input.readMessage( + getGroundingSignalsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage(getSafetySignalsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + rewriterModelCallSignals_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + .Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignalsOrBuilder> + rewriterModelCallSignalsBuilder_; + /** + * + * + *
        +     * Optional. Diagnostic info related to the rewriter model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rewriterModelCallSignals field is set. + */ + public boolean hasRewriterModelCallSignals() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the rewriter model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rewriterModelCallSignals. + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + getRewriterModelCallSignals() { + if (rewriterModelCallSignalsBuilder_ == null) { + return rewriterModelCallSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + .getDefaultInstance() + : rewriterModelCallSignals_; + } else { + return rewriterModelCallSignalsBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the rewriter model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRewriterModelCallSignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + value) { + if (rewriterModelCallSignalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rewriterModelCallSignals_ = value; + } else { + rewriterModelCallSignalsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the rewriter model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRewriterModelCallSignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + .Builder + builderForValue) { + if (rewriterModelCallSignalsBuilder_ == null) { + rewriterModelCallSignals_ = builderForValue.build(); + } else { + rewriterModelCallSignalsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the rewriter model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRewriterModelCallSignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + value) { + if (rewriterModelCallSignalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && rewriterModelCallSignals_ != null + && rewriterModelCallSignals_ + != com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals.getDefaultInstance()) { + getRewriterModelCallSignalsBuilder().mergeFrom(value); + } else { + rewriterModelCallSignals_ = value; + } + } else { + rewriterModelCallSignalsBuilder_.mergeFrom(value); + } + if (rewriterModelCallSignals_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the rewriter model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRewriterModelCallSignals() { + bitField0_ = (bitField0_ & ~0x00000001); + rewriterModelCallSignals_ = null; + if (rewriterModelCallSignalsBuilder_ != null) { + rewriterModelCallSignalsBuilder_.dispose(); + rewriterModelCallSignalsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the rewriter model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + .Builder + getRewriterModelCallSignalsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRewriterModelCallSignalsFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the rewriter model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignalsOrBuilder + getRewriterModelCallSignalsOrBuilder() { + if (rewriterModelCallSignalsBuilder_ != null) { + return rewriterModelCallSignalsBuilder_.getMessageOrBuilder(); + } else { + return rewriterModelCallSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + .getDefaultInstance() + : rewriterModelCallSignals_; + } + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the rewriter model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + .Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignalsOrBuilder> + getRewriterModelCallSignalsFieldBuilder() { + if (rewriterModelCallSignalsBuilder_ == null) { + rewriterModelCallSignalsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignals.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .RewriterModelCallSignalsOrBuilder>( + getRewriterModelCallSignals(), getParentForChildren(), isClean()); + rewriterModelCallSignals_ = null; + } + return rewriterModelCallSignalsBuilder_; + } + + private java.lang.Object rewrittenQuery_ = ""; + /** + * + * + *
        +     * Optional. Rewritten string query used for search.
        +     * 
        + * + * string rewritten_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rewrittenQuery. + */ + public java.lang.String getRewrittenQuery() { + java.lang.Object ref = rewrittenQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rewrittenQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Optional. Rewritten string query used for search.
        +     * 
        + * + * string rewritten_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rewrittenQuery. + */ + public com.google.protobuf.ByteString getRewrittenQueryBytes() { + java.lang.Object ref = rewrittenQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rewrittenQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Optional. Rewritten string query used for search.
        +     * 
        + * + * string rewritten_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The rewrittenQuery to set. + * @return This builder for chaining. + */ + public Builder setRewrittenQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rewrittenQuery_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Rewritten string query used for search.
        +     * 
        + * + * string rewritten_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRewrittenQuery() { + rewrittenQuery_ = getDefaultInstance().getRewrittenQuery(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Rewritten string query used for search.
        +     * 
        + * + * string rewritten_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for rewrittenQuery to set. + * @return This builder for chaining. + */ + public Builder setRewrittenQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rewrittenQuery_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet> + searchSnippets_ = java.util.Collections.emptyList(); + + private void ensureSearchSnippetsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + searchSnippets_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet>( + searchSnippets_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetOrBuilder> + searchSnippetsBuilder_; + + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet> + getSearchSnippetsList() { + if (searchSnippetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(searchSnippets_); + } else { + return searchSnippetsBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSearchSnippetsCount() { + if (searchSnippetsBuilder_ == null) { + return searchSnippets_.size(); + } else { + return searchSnippetsBuilder_.getCount(); + } + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + getSearchSnippets(int index) { + if (searchSnippetsBuilder_ == null) { + return searchSnippets_.get(index); + } else { + return searchSnippetsBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchSnippets( + int index, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet value) { + if (searchSnippetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchSnippetsIsMutable(); + searchSnippets_.set(index, value); + onChanged(); + } else { + searchSnippetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchSnippets( + int index, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder + builderForValue) { + if (searchSnippetsBuilder_ == null) { + ensureSearchSnippetsIsMutable(); + searchSnippets_.set(index, builderForValue.build()); + onChanged(); + } else { + searchSnippetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchSnippets( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet value) { + if (searchSnippetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchSnippetsIsMutable(); + searchSnippets_.add(value); + onChanged(); + } else { + searchSnippetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchSnippets( + int index, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet value) { + if (searchSnippetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchSnippetsIsMutable(); + searchSnippets_.add(index, value); + onChanged(); + } else { + searchSnippetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchSnippets( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder + builderForValue) { + if (searchSnippetsBuilder_ == null) { + ensureSearchSnippetsIsMutable(); + searchSnippets_.add(builderForValue.build()); + onChanged(); + } else { + searchSnippetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchSnippets( + int index, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder + builderForValue) { + if (searchSnippetsBuilder_ == null) { + ensureSearchSnippetsIsMutable(); + searchSnippets_.add(index, builderForValue.build()); + onChanged(); + } else { + searchSnippetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSearchSnippets( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet> + values) { + if (searchSnippetsBuilder_ == null) { + ensureSearchSnippetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searchSnippets_); + onChanged(); + } else { + searchSnippetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSearchSnippets() { + if (searchSnippetsBuilder_ == null) { + searchSnippets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + searchSnippetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSearchSnippets(int index) { + if (searchSnippetsBuilder_ == null) { + ensureSearchSnippetsIsMutable(); + searchSnippets_.remove(index); + onChanged(); + } else { + searchSnippetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder + getSearchSnippetsBuilder(int index) { + return getSearchSnippetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetOrBuilder + getSearchSnippetsOrBuilder(int index) { + if (searchSnippetsBuilder_ == null) { + return searchSnippets_.get(index); + } else { + return searchSnippetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetOrBuilder> + getSearchSnippetsOrBuilderList() { + if (searchSnippetsBuilder_ != null) { + return searchSnippetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(searchSnippets_); + } + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder + addSearchSnippetsBuilder() { + return getSearchSnippetsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + .getDefaultInstance()); + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder + addSearchSnippetsBuilder(int index) { + return getSearchSnippetsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet + .getDefaultInstance()); + } + /** + * + * + *
        +     * Optional. Search snippets included in the answer generation prompt.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder> + getSearchSnippetsBuilderList() { + return getSearchSnippetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetOrBuilder> + getSearchSnippetsFieldBuilder() { + if (searchSnippetsBuilder_ == null) { + searchSnippetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .SearchSnippetOrBuilder>( + searchSnippets_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + searchSnippets_ = null; + } + return searchSnippetsBuilder_; + } + + private com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + answerGenerationModelCallSignals_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignalsOrBuilder> + answerGenerationModelCallSignalsBuilder_; + /** + * + * + *
        +     * Optional. Diagnostic info related to the answer generation model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the answerGenerationModelCallSignals field is set. + */ + public boolean hasAnswerGenerationModelCallSignals() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the answer generation model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The answerGenerationModelCallSignals. + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + getAnswerGenerationModelCallSignals() { + if (answerGenerationModelCallSignalsBuilder_ == null) { + return answerGenerationModelCallSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.getDefaultInstance() + : answerGenerationModelCallSignals_; + } else { + return answerGenerationModelCallSignalsBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the answer generation model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAnswerGenerationModelCallSignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + value) { + if (answerGenerationModelCallSignalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + answerGenerationModelCallSignals_ = value; + } else { + answerGenerationModelCallSignalsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the answer generation model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAnswerGenerationModelCallSignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.Builder + builderForValue) { + if (answerGenerationModelCallSignalsBuilder_ == null) { + answerGenerationModelCallSignals_ = builderForValue.build(); + } else { + answerGenerationModelCallSignalsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the answer generation model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAnswerGenerationModelCallSignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals + value) { + if (answerGenerationModelCallSignalsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && answerGenerationModelCallSignals_ != null + && answerGenerationModelCallSignals_ + != com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.getDefaultInstance()) { + getAnswerGenerationModelCallSignalsBuilder().mergeFrom(value); + } else { + answerGenerationModelCallSignals_ = value; + } + } else { + answerGenerationModelCallSignalsBuilder_.mergeFrom(value); + } + if (answerGenerationModelCallSignals_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the answer generation model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAnswerGenerationModelCallSignals() { + bitField0_ = (bitField0_ & ~0x00000008); + answerGenerationModelCallSignals_ = null; + if (answerGenerationModelCallSignalsBuilder_ != null) { + answerGenerationModelCallSignalsBuilder_.dispose(); + answerGenerationModelCallSignalsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the answer generation model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.Builder + getAnswerGenerationModelCallSignalsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getAnswerGenerationModelCallSignalsFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the answer generation model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignalsOrBuilder + getAnswerGenerationModelCallSignalsOrBuilder() { + if (answerGenerationModelCallSignalsBuilder_ != null) { + return answerGenerationModelCallSignalsBuilder_.getMessageOrBuilder(); + } else { + return answerGenerationModelCallSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.getDefaultInstance() + : answerGenerationModelCallSignals_; + } + } + /** + * + * + *
        +     * Optional. Diagnostic info related to the answer generation model call.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignalsOrBuilder> + getAnswerGenerationModelCallSignalsFieldBuilder() { + if (answerGenerationModelCallSignalsBuilder_ == null) { + answerGenerationModelCallSignalsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignals.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignalsOrBuilder>( + getAnswerGenerationModelCallSignals(), getParentForChildren(), isClean()); + answerGenerationModelCallSignals_ = null; + } + return answerGenerationModelCallSignalsBuilder_; + } + + private java.lang.Object answer_ = ""; + /** + * + * + *
        +     * Optional. The final compiled answer.
        +     * 
        + * + * string answer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answer. + */ + public java.lang.String getAnswer() { + java.lang.Object ref = answer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Optional. The final compiled answer.
        +     * 
        + * + * string answer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answer. + */ + public com.google.protobuf.ByteString getAnswerBytes() { + java.lang.Object ref = answer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Optional. The final compiled answer.
        +     * 
        + * + * string answer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The answer to set. + * @return This builder for chaining. + */ + public Builder setAnswer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answer_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. The final compiled answer.
        +     * 
        + * + * string answer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAnswer() { + answer_ = getDefaultInstance().getAnswer(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. The final compiled answer.
        +     * 
        + * + * string answer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for answer to set. + * @return This builder for chaining. + */ + public Builder setAnswerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answer_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.util.List + answerParts_ = java.util.Collections.emptyList(); + + private void ensureAnswerPartsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + answerParts_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart>( + answerParts_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPartOrBuilder> + answerPartsBuilder_; + + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAnswerPartsList() { + if (answerPartsBuilder_ == null) { + return java.util.Collections.unmodifiableList(answerParts_); + } else { + return answerPartsBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAnswerPartsCount() { + if (answerPartsBuilder_ == null) { + return answerParts_.size(); + } else { + return answerPartsBuilder_.getCount(); + } + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart getAnswerParts( + int index) { + if (answerPartsBuilder_ == null) { + return answerParts_.get(index); + } else { + return answerPartsBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAnswerParts( + int index, com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart value) { + if (answerPartsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswerPartsIsMutable(); + answerParts_.set(index, value); + onChanged(); + } else { + answerPartsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAnswerParts( + int index, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.Builder + builderForValue) { + if (answerPartsBuilder_ == null) { + ensureAnswerPartsIsMutable(); + answerParts_.set(index, builderForValue.build()); + onChanged(); + } else { + answerPartsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAnswerParts( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart value) { + if (answerPartsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswerPartsIsMutable(); + answerParts_.add(value); + onChanged(); + } else { + answerPartsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAnswerParts( + int index, com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart value) { + if (answerPartsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswerPartsIsMutable(); + answerParts_.add(index, value); + onChanged(); + } else { + answerPartsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAnswerParts( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.Builder + builderForValue) { + if (answerPartsBuilder_ == null) { + ensureAnswerPartsIsMutable(); + answerParts_.add(builderForValue.build()); + onChanged(); + } else { + answerPartsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAnswerParts( + int index, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.Builder + builderForValue) { + if (answerPartsBuilder_ == null) { + ensureAnswerPartsIsMutable(); + answerParts_.add(index, builderForValue.build()); + onChanged(); + } else { + answerPartsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAnswerParts( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart> + values) { + if (answerPartsBuilder_ == null) { + ensureAnswerPartsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, answerParts_); + onChanged(); + } else { + answerPartsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAnswerParts() { + if (answerPartsBuilder_ == null) { + answerParts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + answerPartsBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnswerParts(int index) { + if (answerPartsBuilder_ == null) { + ensureAnswerPartsIsMutable(); + answerParts_.remove(index); + onChanged(); + } else { + answerPartsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.Builder + getAnswerPartsBuilder(int index) { + return getAnswerPartsFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPartOrBuilder + getAnswerPartsOrBuilder(int index) { + if (answerPartsBuilder_ == null) { + return answerParts_.get(index); + } else { + return answerPartsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPartOrBuilder> + getAnswerPartsOrBuilderList() { + if (answerPartsBuilder_ != null) { + return answerPartsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(answerParts_); + } + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.Builder + addAnswerPartsBuilder() { + return getAnswerPartsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart + .getDefaultInstance()); + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.Builder + addAnswerPartsBuilder(int index) { + return getAnswerPartsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart + .getDefaultInstance()); + } + /** + * + * + *
        +     * Optional. Answer parts with relevant citations.
        +     * Concatenation of texts should add up the `answer` (not counting
        +     * whitespaces).
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.Builder> + getAnswerPartsBuilderList() { + return getAnswerPartsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPartOrBuilder> + getAnswerPartsFieldBuilder() { + if (answerPartsBuilder_ == null) { + answerPartsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPartOrBuilder>( + answerParts_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + answerParts_ = null; + } + return answerPartsBuilder_; + } + + private java.util.List< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet> + citedSnippets_ = java.util.Collections.emptyList(); + + private void ensureCitedSnippetsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + citedSnippets_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet>( + citedSnippets_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippetOrBuilder> + citedSnippetsBuilder_; + + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCitedSnippetsList() { + if (citedSnippetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(citedSnippets_); + } else { + return citedSnippetsBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCitedSnippetsCount() { + if (citedSnippetsBuilder_ == null) { + return citedSnippets_.size(); + } else { + return citedSnippetsBuilder_.getCount(); + } + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + getCitedSnippets(int index) { + if (citedSnippetsBuilder_ == null) { + return citedSnippets_.get(index); + } else { + return citedSnippetsBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCitedSnippets( + int index, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet value) { + if (citedSnippetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitedSnippetsIsMutable(); + citedSnippets_.set(index, value); + onChanged(); + } else { + citedSnippetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCitedSnippets( + int index, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.Builder + builderForValue) { + if (citedSnippetsBuilder_ == null) { + ensureCitedSnippetsIsMutable(); + citedSnippets_.set(index, builderForValue.build()); + onChanged(); + } else { + citedSnippetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitedSnippets( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet value) { + if (citedSnippetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitedSnippetsIsMutable(); + citedSnippets_.add(value); + onChanged(); + } else { + citedSnippetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitedSnippets( + int index, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet value) { + if (citedSnippetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitedSnippetsIsMutable(); + citedSnippets_.add(index, value); + onChanged(); + } else { + citedSnippetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitedSnippets( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.Builder + builderForValue) { + if (citedSnippetsBuilder_ == null) { + ensureCitedSnippetsIsMutable(); + citedSnippets_.add(builderForValue.build()); + onChanged(); + } else { + citedSnippetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitedSnippets( + int index, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.Builder + builderForValue) { + if (citedSnippetsBuilder_ == null) { + ensureCitedSnippetsIsMutable(); + citedSnippets_.add(index, builderForValue.build()); + onChanged(); + } else { + citedSnippetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCitedSnippets( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet> + values) { + if (citedSnippetsBuilder_ == null) { + ensureCitedSnippetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, citedSnippets_); + onChanged(); + } else { + citedSnippetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCitedSnippets() { + if (citedSnippetsBuilder_ == null) { + citedSnippets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + citedSnippetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCitedSnippets(int index) { + if (citedSnippetsBuilder_ == null) { + ensureCitedSnippetsIsMutable(); + citedSnippets_.remove(index); + onChanged(); + } else { + citedSnippetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.Builder + getCitedSnippetsBuilder(int index) { + return getCitedSnippetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippetOrBuilder + getCitedSnippetsOrBuilder(int index) { + if (citedSnippetsBuilder_ == null) { + return citedSnippets_.get(index); + } else { + return citedSnippetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippetOrBuilder> + getCitedSnippetsOrBuilderList() { + if (citedSnippetsBuilder_ != null) { + return citedSnippetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(citedSnippets_); + } + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.Builder + addCitedSnippetsBuilder() { + return getCitedSnippetsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + .getDefaultInstance()); + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.Builder + addCitedSnippetsBuilder(int index) { + return getCitedSnippetsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet + .getDefaultInstance()); + } + /** + * + * + *
        +     * Optional. Snippets cited by the answer generation model from the most to
        +     * least relevant.
        +     * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.Builder> + getCitedSnippetsBuilderList() { + return getCitedSnippetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippetOrBuilder> + getCitedSnippetsFieldBuilder() { + if (citedSnippetsBuilder_ == null) { + citedSnippetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippetOrBuilder>( + citedSnippets_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + citedSnippets_ = null; + } + return citedSnippetsBuilder_; + } + + private com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + groundingSignals_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignalsOrBuilder> + groundingSignalsBuilder_; + /** + * + * + *
        +     * Optional. Grounding signals.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the groundingSignals field is set. + */ + public boolean hasGroundingSignals() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
        +     * Optional. Grounding signals.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The groundingSignals. + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + getGroundingSignals() { + if (groundingSignalsBuilder_ == null) { + return groundingSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .getDefaultInstance() + : groundingSignals_; + } else { + return groundingSignalsBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Grounding signals.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroundingSignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals value) { + if (groundingSignalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + groundingSignals_ = value; + } else { + groundingSignalsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Grounding signals.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroundingSignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.Builder + builderForValue) { + if (groundingSignalsBuilder_ == null) { + groundingSignals_ = builderForValue.build(); + } else { + groundingSignalsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Grounding signals.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGroundingSignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals value) { + if (groundingSignalsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && groundingSignals_ != null + && groundingSignals_ + != com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .getDefaultInstance()) { + getGroundingSignalsBuilder().mergeFrom(value); + } else { + groundingSignals_ = value; + } + } else { + groundingSignalsBuilder_.mergeFrom(value); + } + if (groundingSignals_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Grounding signals.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGroundingSignals() { + bitField0_ = (bitField0_ & ~0x00000080); + groundingSignals_ = null; + if (groundingSignalsBuilder_ != null) { + groundingSignalsBuilder_.dispose(); + groundingSignalsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Grounding signals.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.Builder + getGroundingSignalsBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getGroundingSignalsFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Grounding signals.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignalsOrBuilder + getGroundingSignalsOrBuilder() { + if (groundingSignalsBuilder_ != null) { + return groundingSignalsBuilder_.getMessageOrBuilder(); + } else { + return groundingSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .getDefaultInstance() + : groundingSignals_; + } + } + /** + * + * + *
        +     * Optional. Grounding signals.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignalsOrBuilder> + getGroundingSignalsFieldBuilder() { + if (groundingSignalsBuilder_ == null) { + groundingSignalsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + .Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .GroundingSignalsOrBuilder>( + getGroundingSignals(), getParentForChildren(), isClean()); + groundingSignals_ = null; + } + return groundingSignalsBuilder_; + } + + private com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + safetySignals_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignalsOrBuilder> + safetySignalsBuilder_; + /** + * + * + *
        +     * Optional. Safety check result.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the safetySignals field is set. + */ + public boolean hasSafetySignals() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
        +     * Optional. Safety check result.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The safetySignals. + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + getSafetySignals() { + if (safetySignalsBuilder_ == null) { + return safetySignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .getDefaultInstance() + : safetySignals_; + } else { + return safetySignalsBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Safety check result.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSafetySignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals value) { + if (safetySignalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + safetySignals_ = value; + } else { + safetySignalsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Safety check result.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSafetySignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.Builder + builderForValue) { + if (safetySignalsBuilder_ == null) { + safetySignals_ = builderForValue.build(); + } else { + safetySignalsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Safety check result.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSafetySignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals value) { + if (safetySignalsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && safetySignals_ != null + && safetySignals_ + != com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .getDefaultInstance()) { + getSafetySignalsBuilder().mergeFrom(value); + } else { + safetySignals_ = value; + } + } else { + safetySignalsBuilder_.mergeFrom(value); + } + if (safetySignals_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Safety check result.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSafetySignals() { + bitField0_ = (bitField0_ & ~0x00000100); + safetySignals_ = null; + if (safetySignalsBuilder_ != null) { + safetySignalsBuilder_.dispose(); + safetySignalsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Safety check result.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.Builder + getSafetySignalsBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getSafetySignalsFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Safety check result.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignalsOrBuilder + getSafetySignalsOrBuilder() { + if (safetySignalsBuilder_ != null) { + return safetySignalsBuilder_.getMessageOrBuilder(); + } else { + return safetySignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals + .getDefaultInstance() + : safetySignals_; + } + } + /** + * + * + *
        +     * Optional. Safety check result.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignalsOrBuilder> + getSafetySignalsFieldBuilder() { + if (safetySignalsBuilder_ == null) { + safetySignalsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .SafetySignalsOrBuilder>(getSafetySignals(), getParentForChildren(), isClean()); + safetySignals_ = null; + } + return safetySignalsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals) + private static final com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals(); + } + + public static com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataStoreConnectionSignals parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DataStoreConnectionSignalsOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DataStoreConnectionSignalsOrBuilder.java new file mode 100644 index 000000000000..409054a8ab9d --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DataStoreConnectionSignalsOrBuilder.java @@ -0,0 +1,463 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/data_store_connection.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.dialogflow.cx.v3; + +public interface DataStoreConnectionSignalsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. Diagnostic info related to the rewriter model call.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rewriterModelCallSignals field is set. + */ + boolean hasRewriterModelCallSignals(); + /** + * + * + *
        +   * Optional. Diagnostic info related to the rewriter model call.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rewriterModelCallSignals. + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals + getRewriterModelCallSignals(); + /** + * + * + *
        +   * Optional. Diagnostic info related to the rewriter model call.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignals rewriter_model_call_signals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.RewriterModelCallSignalsOrBuilder + getRewriterModelCallSignalsOrBuilder(); + + /** + * + * + *
        +   * Optional. Rewritten string query used for search.
        +   * 
        + * + * string rewritten_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rewrittenQuery. + */ + java.lang.String getRewrittenQuery(); + /** + * + * + *
        +   * Optional. Rewritten string query used for search.
        +   * 
        + * + * string rewritten_query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rewrittenQuery. + */ + com.google.protobuf.ByteString getRewrittenQueryBytes(); + + /** + * + * + *
        +   * Optional. Search snippets included in the answer generation prompt.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSearchSnippetsList(); + /** + * + * + *
        +   * Optional. Search snippets included in the answer generation prompt.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet getSearchSnippets( + int index); + /** + * + * + *
        +   * Optional. Search snippets included in the answer generation prompt.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSearchSnippetsCount(); + /** + * + * + *
        +   * Optional. Search snippets included in the answer generation prompt.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetOrBuilder> + getSearchSnippetsOrBuilderList(); + /** + * + * + *
        +   * Optional. Search snippets included in the answer generation prompt.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet search_snippets = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippetOrBuilder + getSearchSnippetsOrBuilder(int index); + + /** + * + * + *
        +   * Optional. Diagnostic info related to the answer generation model call.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the answerGenerationModelCallSignals field is set. + */ + boolean hasAnswerGenerationModelCallSignals(); + /** + * + * + *
        +   * Optional. Diagnostic info related to the answer generation model call.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The answerGenerationModelCallSignals. + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals + getAnswerGenerationModelCallSignals(); + /** + * + * + *
        +   * Optional. Diagnostic info related to the answer generation model call.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .AnswerGenerationModelCallSignalsOrBuilder + getAnswerGenerationModelCallSignalsOrBuilder(); + + /** + * + * + *
        +   * Optional. The final compiled answer.
        +   * 
        + * + * string answer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answer. + */ + java.lang.String getAnswer(); + /** + * + * + *
        +   * Optional. The final compiled answer.
        +   * 
        + * + * string answer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answer. + */ + com.google.protobuf.ByteString getAnswerBytes(); + + /** + * + * + *
        +   * Optional. Answer parts with relevant citations.
        +   * Concatenation of texts should add up the `answer` (not counting
        +   * whitespaces).
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAnswerPartsList(); + /** + * + * + *
        +   * Optional. Answer parts with relevant citations.
        +   * Concatenation of texts should add up the `answer` (not counting
        +   * whitespaces).
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart getAnswerParts(int index); + /** + * + * + *
        +   * Optional. Answer parts with relevant citations.
        +   * Concatenation of texts should add up the `answer` (not counting
        +   * whitespaces).
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnswerPartsCount(); + /** + * + * + *
        +   * Optional. Answer parts with relevant citations.
        +   * Concatenation of texts should add up the `answer` (not counting
        +   * whitespaces).
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPartOrBuilder> + getAnswerPartsOrBuilderList(); + /** + * + * + *
        +   * Optional. Answer parts with relevant citations.
        +   * Concatenation of texts should add up the `answer` (not counting
        +   * whitespaces).
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart answer_parts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPartOrBuilder + getAnswerPartsOrBuilder(int index); + + /** + * + * + *
        +   * Optional. Snippets cited by the answer generation model from the most to
        +   * least relevant.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCitedSnippetsList(); + /** + * + * + *
        +   * Optional. Snippets cited by the answer generation model from the most to
        +   * least relevant.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet getCitedSnippets( + int index); + /** + * + * + *
        +   * Optional. Snippets cited by the answer generation model from the most to
        +   * least relevant.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCitedSnippetsCount(); + /** + * + * + *
        +   * Optional. Snippets cited by the answer generation model from the most to
        +   * least relevant.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippetOrBuilder> + getCitedSnippetsOrBuilderList(); + /** + * + * + *
        +   * Optional. Snippets cited by the answer generation model from the most to
        +   * least relevant.
        +   * 
        + * + * + * repeated .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet cited_snippets = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippetOrBuilder + getCitedSnippetsOrBuilder(int index); + + /** + * + * + *
        +   * Optional. Grounding signals.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the groundingSignals field is set. + */ + boolean hasGroundingSignals(); + /** + * + * + *
        +   * Optional. Grounding signals.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The groundingSignals. + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals + getGroundingSignals(); + /** + * + * + *
        +   * Optional. Grounding signals.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignals grounding_signals = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.GroundingSignalsOrBuilder + getGroundingSignalsOrBuilder(); + + /** + * + * + *
        +   * Optional. Safety check result.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the safetySignals field is set. + */ + boolean hasSafetySignals(); + /** + * + * + *
        +   * Optional. Safety check result.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The safetySignals. + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals getSafetySignals(); + /** + * + * + *
        +   * Optional. Safety check result.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals safety_signals = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignalsOrBuilder + getSafetySignalsOrBuilder(); +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java index 263620e9b1e6..4c31fead65d8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java @@ -81,6 +81,1057 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3.Flow.Builder.class); } + public interface MultiLanguageSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Optional. Enable multi-language detection for this flow. This can be set
        +     * only if [agent level multi language
        +     * setting][Agent.enable_multi_language_training] is enabled.
        +     * 
        + * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableMultiLanguageDetection. + */ + boolean getEnableMultiLanguageDetection(); + + /** + * + * + *
        +     * Optional. Agent will respond in the detected language if the detected
        +     * language code is in the supported resolved languages for this flow. This
        +     * will be used only if multi-language training is enabled in the
        +     * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +     * and multi-language detection is enabled in the
        +     * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +     * The supported languages must be a subset of the languages supported by
        +     * the agent.
        +     * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the supportedResponseLanguageCodes. + */ + java.util.List getSupportedResponseLanguageCodesList(); + /** + * + * + *
        +     * Optional. Agent will respond in the detected language if the detected
        +     * language code is in the supported resolved languages for this flow. This
        +     * will be used only if multi-language training is enabled in the
        +     * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +     * and multi-language detection is enabled in the
        +     * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +     * The supported languages must be a subset of the languages supported by
        +     * the agent.
        +     * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of supportedResponseLanguageCodes. + */ + int getSupportedResponseLanguageCodesCount(); + /** + * + * + *
        +     * Optional. Agent will respond in the detected language if the detected
        +     * language code is in the supported resolved languages for this flow. This
        +     * will be used only if multi-language training is enabled in the
        +     * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +     * and multi-language detection is enabled in the
        +     * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +     * The supported languages must be a subset of the languages supported by
        +     * the agent.
        +     * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The supportedResponseLanguageCodes at the given index. + */ + java.lang.String getSupportedResponseLanguageCodes(int index); + /** + * + * + *
        +     * Optional. Agent will respond in the detected language if the detected
        +     * language code is in the supported resolved languages for this flow. This
        +     * will be used only if multi-language training is enabled in the
        +     * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +     * and multi-language detection is enabled in the
        +     * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +     * The supported languages must be a subset of the languages supported by
        +     * the agent.
        +     * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the supportedResponseLanguageCodes at the given index. + */ + com.google.protobuf.ByteString getSupportedResponseLanguageCodesBytes(int index); + } + /** + * + * + *
        +   * Settings for multi-lingual agents.
        +   * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings} + */ + public static final class MultiLanguageSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings) + MultiLanguageSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use MultiLanguageSettings.newBuilder() to construct. + private MultiLanguageSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MultiLanguageSettings() { + supportedResponseLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MultiLanguageSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.FlowProto + .internal_static_google_cloud_dialogflow_cx_v3_Flow_MultiLanguageSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.FlowProto + .internal_static_google_cloud_dialogflow_cx_v3_Flow_MultiLanguageSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.class, + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.Builder.class); + } + + public static final int ENABLE_MULTI_LANGUAGE_DETECTION_FIELD_NUMBER = 1; + private boolean enableMultiLanguageDetection_ = false; + /** + * + * + *
        +     * Optional. Enable multi-language detection for this flow. This can be set
        +     * only if [agent level multi language
        +     * setting][Agent.enable_multi_language_training] is enabled.
        +     * 
        + * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableMultiLanguageDetection. + */ + @java.lang.Override + public boolean getEnableMultiLanguageDetection() { + return enableMultiLanguageDetection_; + } + + public static final int SUPPORTED_RESPONSE_LANGUAGE_CODES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList supportedResponseLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
        +     * Optional. Agent will respond in the detected language if the detected
        +     * language code is in the supported resolved languages for this flow. This
        +     * will be used only if multi-language training is enabled in the
        +     * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +     * and multi-language detection is enabled in the
        +     * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +     * The supported languages must be a subset of the languages supported by
        +     * the agent.
        +     * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the supportedResponseLanguageCodes. + */ + public com.google.protobuf.ProtocolStringList getSupportedResponseLanguageCodesList() { + return supportedResponseLanguageCodes_; + } + /** + * + * + *
        +     * Optional. Agent will respond in the detected language if the detected
        +     * language code is in the supported resolved languages for this flow. This
        +     * will be used only if multi-language training is enabled in the
        +     * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +     * and multi-language detection is enabled in the
        +     * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +     * The supported languages must be a subset of the languages supported by
        +     * the agent.
        +     * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of supportedResponseLanguageCodes. + */ + public int getSupportedResponseLanguageCodesCount() { + return supportedResponseLanguageCodes_.size(); + } + /** + * + * + *
        +     * Optional. Agent will respond in the detected language if the detected
        +     * language code is in the supported resolved languages for this flow. This
        +     * will be used only if multi-language training is enabled in the
        +     * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +     * and multi-language detection is enabled in the
        +     * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +     * The supported languages must be a subset of the languages supported by
        +     * the agent.
        +     * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The supportedResponseLanguageCodes at the given index. + */ + public java.lang.String getSupportedResponseLanguageCodes(int index) { + return supportedResponseLanguageCodes_.get(index); + } + /** + * + * + *
        +     * Optional. Agent will respond in the detected language if the detected
        +     * language code is in the supported resolved languages for this flow. This
        +     * will be used only if multi-language training is enabled in the
        +     * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +     * and multi-language detection is enabled in the
        +     * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +     * The supported languages must be a subset of the languages supported by
        +     * the agent.
        +     * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the supportedResponseLanguageCodes at the given index. + */ + public com.google.protobuf.ByteString getSupportedResponseLanguageCodesBytes(int index) { + return supportedResponseLanguageCodes_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableMultiLanguageDetection_ != false) { + output.writeBool(1, enableMultiLanguageDetection_); + } + for (int i = 0; i < supportedResponseLanguageCodes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, supportedResponseLanguageCodes_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableMultiLanguageDetection_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableMultiLanguageDetection_); + } + { + int dataSize = 0; + for (int i = 0; i < supportedResponseLanguageCodes_.size(); i++) { + dataSize += computeStringSizeNoTag(supportedResponseLanguageCodes_.getRaw(i)); + } + size += dataSize; + size += 1 * getSupportedResponseLanguageCodesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings other = + (com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings) obj; + + if (getEnableMultiLanguageDetection() != other.getEnableMultiLanguageDetection()) + return false; + if (!getSupportedResponseLanguageCodesList() + .equals(other.getSupportedResponseLanguageCodesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_MULTI_LANGUAGE_DETECTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableMultiLanguageDetection()); + if (getSupportedResponseLanguageCodesCount() > 0) { + hash = (37 * hash) + SUPPORTED_RESPONSE_LANGUAGE_CODES_FIELD_NUMBER; + hash = (53 * hash) + getSupportedResponseLanguageCodesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +     * Settings for multi-lingual agents.
        +     * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings) + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.FlowProto + .internal_static_google_cloud_dialogflow_cx_v3_Flow_MultiLanguageSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.FlowProto + .internal_static_google_cloud_dialogflow_cx_v3_Flow_MultiLanguageSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.class, + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableMultiLanguageDetection_ = false; + supportedResponseLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.FlowProto + .internal_static_google_cloud_dialogflow_cx_v3_Flow_MultiLanguageSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings build() { + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings buildPartial() { + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings result = + new com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableMultiLanguageDetection_ = enableMultiLanguageDetection_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + supportedResponseLanguageCodes_.makeImmutable(); + result.supportedResponseLanguageCodes_ = supportedResponseLanguageCodes_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings other) { + if (other + == com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.getDefaultInstance()) + return this; + if (other.getEnableMultiLanguageDetection() != false) { + setEnableMultiLanguageDetection(other.getEnableMultiLanguageDetection()); + } + if (!other.supportedResponseLanguageCodes_.isEmpty()) { + if (supportedResponseLanguageCodes_.isEmpty()) { + supportedResponseLanguageCodes_ = other.supportedResponseLanguageCodes_; + bitField0_ |= 0x00000002; + } else { + ensureSupportedResponseLanguageCodesIsMutable(); + supportedResponseLanguageCodes_.addAll(other.supportedResponseLanguageCodes_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableMultiLanguageDetection_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSupportedResponseLanguageCodesIsMutable(); + supportedResponseLanguageCodes_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enableMultiLanguageDetection_; + /** + * + * + *
        +       * Optional. Enable multi-language detection for this flow. This can be set
        +       * only if [agent level multi language
        +       * setting][Agent.enable_multi_language_training] is enabled.
        +       * 
        + * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableMultiLanguageDetection. + */ + @java.lang.Override + public boolean getEnableMultiLanguageDetection() { + return enableMultiLanguageDetection_; + } + /** + * + * + *
        +       * Optional. Enable multi-language detection for this flow. This can be set
        +       * only if [agent level multi language
        +       * setting][Agent.enable_multi_language_training] is enabled.
        +       * 
        + * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableMultiLanguageDetection to set. + * @return This builder for chaining. + */ + public Builder setEnableMultiLanguageDetection(boolean value) { + + enableMultiLanguageDetection_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. Enable multi-language detection for this flow. This can be set
        +       * only if [agent level multi language
        +       * setting][Agent.enable_multi_language_training] is enabled.
        +       * 
        + * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableMultiLanguageDetection() { + bitField0_ = (bitField0_ & ~0x00000001); + enableMultiLanguageDetection_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList supportedResponseLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSupportedResponseLanguageCodesIsMutable() { + if (!supportedResponseLanguageCodes_.isModifiable()) { + supportedResponseLanguageCodes_ = + new com.google.protobuf.LazyStringArrayList(supportedResponseLanguageCodes_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
        +       * Optional. Agent will respond in the detected language if the detected
        +       * language code is in the supported resolved languages for this flow. This
        +       * will be used only if multi-language training is enabled in the
        +       * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +       * and multi-language detection is enabled in the
        +       * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +       * The supported languages must be a subset of the languages supported by
        +       * the agent.
        +       * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the supportedResponseLanguageCodes. + */ + public com.google.protobuf.ProtocolStringList getSupportedResponseLanguageCodesList() { + supportedResponseLanguageCodes_.makeImmutable(); + return supportedResponseLanguageCodes_; + } + /** + * + * + *
        +       * Optional. Agent will respond in the detected language if the detected
        +       * language code is in the supported resolved languages for this flow. This
        +       * will be used only if multi-language training is enabled in the
        +       * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +       * and multi-language detection is enabled in the
        +       * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +       * The supported languages must be a subset of the languages supported by
        +       * the agent.
        +       * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of supportedResponseLanguageCodes. + */ + public int getSupportedResponseLanguageCodesCount() { + return supportedResponseLanguageCodes_.size(); + } + /** + * + * + *
        +       * Optional. Agent will respond in the detected language if the detected
        +       * language code is in the supported resolved languages for this flow. This
        +       * will be used only if multi-language training is enabled in the
        +       * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +       * and multi-language detection is enabled in the
        +       * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +       * The supported languages must be a subset of the languages supported by
        +       * the agent.
        +       * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The supportedResponseLanguageCodes at the given index. + */ + public java.lang.String getSupportedResponseLanguageCodes(int index) { + return supportedResponseLanguageCodes_.get(index); + } + /** + * + * + *
        +       * Optional. Agent will respond in the detected language if the detected
        +       * language code is in the supported resolved languages for this flow. This
        +       * will be used only if multi-language training is enabled in the
        +       * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +       * and multi-language detection is enabled in the
        +       * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +       * The supported languages must be a subset of the languages supported by
        +       * the agent.
        +       * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the supportedResponseLanguageCodes at the given index. + */ + public com.google.protobuf.ByteString getSupportedResponseLanguageCodesBytes(int index) { + return supportedResponseLanguageCodes_.getByteString(index); + } + /** + * + * + *
        +       * Optional. Agent will respond in the detected language if the detected
        +       * language code is in the supported resolved languages for this flow. This
        +       * will be used only if multi-language training is enabled in the
        +       * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +       * and multi-language detection is enabled in the
        +       * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +       * The supported languages must be a subset of the languages supported by
        +       * the agent.
        +       * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The supportedResponseLanguageCodes to set. + * @return This builder for chaining. + */ + public Builder setSupportedResponseLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedResponseLanguageCodesIsMutable(); + supportedResponseLanguageCodes_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. Agent will respond in the detected language if the detected
        +       * language code is in the supported resolved languages for this flow. This
        +       * will be used only if multi-language training is enabled in the
        +       * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +       * and multi-language detection is enabled in the
        +       * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +       * The supported languages must be a subset of the languages supported by
        +       * the agent.
        +       * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The supportedResponseLanguageCodes to add. + * @return This builder for chaining. + */ + public Builder addSupportedResponseLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedResponseLanguageCodesIsMutable(); + supportedResponseLanguageCodes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. Agent will respond in the detected language if the detected
        +       * language code is in the supported resolved languages for this flow. This
        +       * will be used only if multi-language training is enabled in the
        +       * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +       * and multi-language detection is enabled in the
        +       * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +       * The supported languages must be a subset of the languages supported by
        +       * the agent.
        +       * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The supportedResponseLanguageCodes to add. + * @return This builder for chaining. + */ + public Builder addAllSupportedResponseLanguageCodes( + java.lang.Iterable values) { + ensureSupportedResponseLanguageCodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, supportedResponseLanguageCodes_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. Agent will respond in the detected language if the detected
        +       * language code is in the supported resolved languages for this flow. This
        +       * will be used only if multi-language training is enabled in the
        +       * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +       * and multi-language detection is enabled in the
        +       * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +       * The supported languages must be a subset of the languages supported by
        +       * the agent.
        +       * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSupportedResponseLanguageCodes() { + supportedResponseLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. Agent will respond in the detected language if the detected
        +       * language code is in the supported resolved languages for this flow. This
        +       * will be used only if multi-language training is enabled in the
        +       * [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training]
        +       * and multi-language detection is enabled in the
        +       * [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection].
        +       * The supported languages must be a subset of the languages supported by
        +       * the agent.
        +       * 
        + * + * + * repeated string supported_response_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the supportedResponseLanguageCodes to add. + * @return This builder for chaining. + */ + public Builder addSupportedResponseLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSupportedResponseLanguageCodesIsMutable(); + supportedResponseLanguageCodes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings) + private static final com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings(); + } + + public static com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiLanguageSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -799,6 +1850,82 @@ public boolean hasKnowledgeConnectorSettings() { : knowledgeConnectorSettings_; } + public static final int MULTI_LANGUAGE_SETTINGS_FIELD_NUMBER = 28; + private com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multiLanguageSettings_; + /** + * + * + *
        +   * Optional. Multi-lingual agent settings for this flow.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageSettings field is set. + */ + @java.lang.Override + public boolean hasMultiLanguageSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
        +   * Optional. Multi-lingual agent settings for this flow.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageSettings. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings getMultiLanguageSettings() { + return multiLanguageSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.getDefaultInstance() + : multiLanguageSettings_; + } + /** + * + * + *
        +   * Optional. Multi-lingual agent settings for this flow.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettingsOrBuilder + getMultiLanguageSettingsOrBuilder() { + return multiLanguageSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.getDefaultInstance() + : multiLanguageSettings_; + } + + public static final int LOCKED_FIELD_NUMBER = 30; + private boolean locked_ = false; + /** + * + * + *
        +   * Indicates whether the flow is locked for changes. If the flow is locked,
        +   * modifications to the flow will be rejected.
        +   * 
        + * + * bool locked = 30; + * + * @return The locked. + */ + @java.lang.Override + public boolean getLocked() { + return locked_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -841,6 +1968,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(18, getKnowledgeConnectorSettings()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(28, getMultiLanguageSettings()); + } + if (locked_ != false) { + output.writeBool(30, locked_); + } getUnknownFields().writeTo(output); } @@ -884,6 +2017,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 18, getKnowledgeConnectorSettings()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(28, getMultiLanguageSettings()); + } + if (locked_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, locked_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -918,6 +2058,11 @@ public boolean equals(final java.lang.Object obj) { if (!getKnowledgeConnectorSettings().equals(other.getKnowledgeConnectorSettings())) return false; } + if (hasMultiLanguageSettings() != other.hasMultiLanguageSettings()) return false; + if (hasMultiLanguageSettings()) { + if (!getMultiLanguageSettings().equals(other.getMultiLanguageSettings())) return false; + } + if (getLocked() != other.getLocked()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -959,6 +2104,12 @@ public int hashCode() { hash = (37 * hash) + KNOWLEDGE_CONNECTOR_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getKnowledgeConnectorSettings().hashCode(); } + if (hasMultiLanguageSettings()) { + hash = (37 * hash) + MULTI_LANGUAGE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getMultiLanguageSettings().hashCode(); + } + hash = (37 * hash) + LOCKED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocked()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1117,6 +2268,7 @@ private void maybeForceBuilderInitialization() { getNluSettingsFieldBuilder(); getAdvancedSettingsFieldBuilder(); getKnowledgeConnectorSettingsFieldBuilder(); + getMultiLanguageSettingsFieldBuilder(); } } @@ -1157,6 +2309,12 @@ public Builder clear() { knowledgeConnectorSettingsBuilder_.dispose(); knowledgeConnectorSettingsBuilder_ = null; } + multiLanguageSettings_ = null; + if (multiLanguageSettingsBuilder_ != null) { + multiLanguageSettingsBuilder_.dispose(); + multiLanguageSettingsBuilder_ = null; + } + locked_ = false; return this; } @@ -1246,6 +2404,16 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Flow result) { : knowledgeConnectorSettingsBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.multiLanguageSettings_ = + multiLanguageSettingsBuilder_ == null + ? multiLanguageSettings_ + : multiLanguageSettingsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.locked_ = locked_; + } result.bitField0_ |= to_bitField0_; } @@ -1382,6 +2550,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Flow other) { if (other.hasKnowledgeConnectorSettings()) { mergeKnowledgeConnectorSettings(other.getKnowledgeConnectorSettings()); } + if (other.hasMultiLanguageSettings()) { + mergeMultiLanguageSettings(other.getMultiLanguageSettings()); + } + if (other.getLocked() != false) { + setLocked(other.getLocked()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1480,6 +2654,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 146 + case 226: + { + input.readMessage( + getMultiLanguageSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 226 + case 240: + { + locked_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 240 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3935,6 +5122,272 @@ public Builder clearKnowledgeConnectorSettings() { return knowledgeConnectorSettingsBuilder_; } + private com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multiLanguageSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings, + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.Builder, + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettingsOrBuilder> + multiLanguageSettingsBuilder_; + /** + * + * + *
        +     * Optional. Multi-lingual agent settings for this flow.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageSettings field is set. + */ + public boolean hasMultiLanguageSettings() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
        +     * Optional. Multi-lingual agent settings for this flow.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageSettings. + */ + public com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings getMultiLanguageSettings() { + if (multiLanguageSettingsBuilder_ == null) { + return multiLanguageSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.getDefaultInstance() + : multiLanguageSettings_; + } else { + return multiLanguageSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Multi-lingual agent settings for this flow.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiLanguageSettings( + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings value) { + if (multiLanguageSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multiLanguageSettings_ = value; + } else { + multiLanguageSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Multi-lingual agent settings for this flow.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiLanguageSettings( + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.Builder builderForValue) { + if (multiLanguageSettingsBuilder_ == null) { + multiLanguageSettings_ = builderForValue.build(); + } else { + multiLanguageSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Multi-lingual agent settings for this flow.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMultiLanguageSettings( + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings value) { + if (multiLanguageSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && multiLanguageSettings_ != null + && multiLanguageSettings_ + != com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings + .getDefaultInstance()) { + getMultiLanguageSettingsBuilder().mergeFrom(value); + } else { + multiLanguageSettings_ = value; + } + } else { + multiLanguageSettingsBuilder_.mergeFrom(value); + } + if (multiLanguageSettings_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Multi-lingual agent settings for this flow.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMultiLanguageSettings() { + bitField0_ = (bitField0_ & ~0x00000200); + multiLanguageSettings_ = null; + if (multiLanguageSettingsBuilder_ != null) { + multiLanguageSettingsBuilder_.dispose(); + multiLanguageSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Multi-lingual agent settings for this flow.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.Builder + getMultiLanguageSettingsBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getMultiLanguageSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Multi-lingual agent settings for this flow.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettingsOrBuilder + getMultiLanguageSettingsOrBuilder() { + if (multiLanguageSettingsBuilder_ != null) { + return multiLanguageSettingsBuilder_.getMessageOrBuilder(); + } else { + return multiLanguageSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.getDefaultInstance() + : multiLanguageSettings_; + } + } + /** + * + * + *
        +     * Optional. Multi-lingual agent settings for this flow.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings, + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.Builder, + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettingsOrBuilder> + getMultiLanguageSettingsFieldBuilder() { + if (multiLanguageSettingsBuilder_ == null) { + multiLanguageSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings, + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.Builder, + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettingsOrBuilder>( + getMultiLanguageSettings(), getParentForChildren(), isClean()); + multiLanguageSettings_ = null; + } + return multiLanguageSettingsBuilder_; + } + + private boolean locked_; + /** + * + * + *
        +     * Indicates whether the flow is locked for changes. If the flow is locked,
        +     * modifications to the flow will be rejected.
        +     * 
        + * + * bool locked = 30; + * + * @return The locked. + */ + @java.lang.Override + public boolean getLocked() { + return locked_; + } + /** + * + * + *
        +     * Indicates whether the flow is locked for changes. If the flow is locked,
        +     * modifications to the flow will be rejected.
        +     * 
        + * + * bool locked = 30; + * + * @param value The locked to set. + * @return This builder for chaining. + */ + public Builder setLocked(boolean value) { + + locked_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
        +     * Indicates whether the flow is locked for changes. If the flow is locked,
        +     * modifications to the flow will be rejected.
        +     * 
        + * + * bool locked = 30; + * + * @return This builder for chaining. + */ + public Builder clearLocked() { + bitField0_ = (bitField0_ & ~0x00000400); + locked_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowOrBuilder.java index e07de231f6d5..131568afb96e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowOrBuilder.java @@ -562,4 +562,60 @@ com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionRoutesOr */ com.google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettingsOrBuilder getKnowledgeConnectorSettingsOrBuilder(); + + /** + * + * + *
        +   * Optional. Multi-lingual agent settings for this flow.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageSettings field is set. + */ + boolean hasMultiLanguageSettings(); + /** + * + * + *
        +   * Optional. Multi-lingual agent settings for this flow.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageSettings. + */ + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings getMultiLanguageSettings(); + /** + * + * + *
        +   * Optional. Multi-lingual agent settings for this flow.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings multi_language_settings = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettingsOrBuilder + getMultiLanguageSettingsOrBuilder(); + + /** + * + * + *
        +   * Indicates whether the flow is locked for changes. If the flow is locked,
        +   * modifications to the flow will be rejected.
        +   * 
        + * + * bool locked = 30; + * + * @return The locked. + */ + boolean getLocked(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowProto.java index df6426c30b50..fec9be478080 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3_Flow_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3_Flow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_Flow_MultiLanguageSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_Flow_MultiLanguageSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3_CreateFlowRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -129,7 +133,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\023MODEL_TYPE_ADVANCED\020\003\"{\n\021ModelTraining" + "Mode\022#\n\037MODEL_TRAINING_MODE_UNSPECIFIED\020" + "\000\022!\n\035MODEL_TRAINING_MODE_AUTOMATIC\020\001\022\036\n\032" - + "MODEL_TRAINING_MODE_MANUAL\020\002\"\210\005\n\004Flow\022\014\n" + + "MODEL_TRAINING_MODE_MANUAL\020\002\"\360\006\n\004Flow\022\014\n" + "\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023" + "\n\013description\030\003 \001(\t\022I\n\021transition_routes" + "\030\004 \003(\0132..google.cloud.dialogflow.cx.v3.T" @@ -143,119 +147,124 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "alogflow.cx.v3.AdvancedSettings\022d\n\034knowl" + "edge_connector_settings\030\022 \001(\01329.google.c" + "loud.dialogflow.cx.v3.KnowledgeConnector" - + "SettingsB\003\340A\001:h\352Ae\n\036dialogflow.googleapi" - + "s.com/Flow\022Cprojects/{project}/locations" - + "/{location}/agents/{agent}/flows/{flow}\"" - + "\232\001\n\021CreateFlowRequest\0226\n\006parent\030\001 \001(\tB&\340" - + "A\002\372A \022\036dialogflow.googleapis.com/Flow\0226\n" - + "\004flow\030\002 \001(\0132#.google.cloud.dialogflow.cx" - + ".v3.FlowB\003\340A\002\022\025\n\rlanguage_code\030\003 \001(\t\"X\n\021" - + "DeleteFlowRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n" - + "\036dialogflow.googleapis.com/Flow\022\r\n\005force" - + "\030\002 \001(\010\"\210\001\n\020ListFlowsRequest\0226\n\006parent\030\001 " - + "\001(\tB&\340A\002\372A \022\036dialogflow.googleapis.com/F" - + "low\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" - + "(\t\022\025\n\rlanguage_code\030\004 \001(\t\"`\n\021ListFlowsRe" - + "sponse\0222\n\005flows\030\001 \003(\0132#.google.cloud.dia" - + "logflow.cx.v3.Flow\022\027\n\017next_page_token\030\002 " - + "\001(\t\"]\n\016GetFlowRequest\0224\n\004name\030\001 \001(\tB&\340A\002" - + "\372A \n\036dialogflow.googleapis.com/Flow\022\025\n\rl" - + "anguage_code\030\002 \001(\t\"\223\001\n\021UpdateFlowRequest" - + "\0226\n\004flow\030\001 \001(\0132#.google.cloud.dialogflow" - + ".cx.v3.FlowB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032." - + "google.protobuf.FieldMask\022\025\n\rlanguage_co" - + "de\030\003 \001(\t\"H\n\020TrainFlowRequest\0224\n\004name\030\001 \001" - + "(\tB&\340A\002\372A \n\036dialogflow.googleapis.com/Fl" - + "ow\"b\n\023ValidateFlowRequest\0224\n\004name\030\001 \001(\tB" - + "&\340A\002\372A \n\036dialogflow.googleapis.com/Flow\022" - + "\025\n\rlanguage_code\030\002 \001(\t\"}\n\036GetFlowValidat" - + "ionResultRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n." - + "dialogflow.googleapis.com/FlowValidation" - + "Result\022\025\n\rlanguage_code\030\002 \001(\t\"\261\002\n\024FlowVa" - + "lidationResult\022\014\n\004name\030\001 \001(\t\022M\n\023validati" - + "on_messages\030\002 \003(\01320.google.cloud.dialogf" - + "low.cx.v3.ValidationMessage\022/\n\013update_ti" - + "me\030\003 \001(\0132\032.google.protobuf.Timestamp:\212\001\352" - + "A\206\001\n.dialogflow.googleapis.com/FlowValid" - + "ationResult\022Tprojects/{project}/location" - + "s/{location}/agents/{agent}/flows/{flow}" - + "/validationResult\"\362\002\n\021ImportFlowRequest\022" - + "6\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036dialogflow.goog" - + "leapis.com/Flow\022\022\n\010flow_uri\030\002 \001(\tH\000\022\026\n\014f" - + "low_content\030\003 \001(\014H\000\022T\n\rimport_option\030\004 \001" - + "(\0162=.google.cloud.dialogflow.cx.v3.Impor" - + "tFlowRequest.ImportOption\022T\n\024flow_import" - + "_strategy\030\005 \001(\01321.google.cloud.dialogflo" - + "w.cx.v3.FlowImportStrategyB\003\340A\001\"E\n\014Impor" - + "tOption\022\035\n\031IMPORT_OPTION_UNSPECIFIED\020\000\022\010" - + "\n\004KEEP\020\001\022\014\n\010FALLBACK\020\002B\006\n\004flow\"h\n\022FlowIm" - + "portStrategy\022R\n\026global_import_strategy\030\001" - + " \001(\0162-.google.cloud.dialogflow.cx.v3.Imp" - + "ortStrategyB\003\340A\001\"G\n\022ImportFlowResponse\0221" - + "\n\004flow\030\001 \001(\tB#\372A \n\036dialogflow.googleapis" - + ".com/Flow\"\207\001\n\021ExportFlowRequest\0224\n\004name\030" - + "\001 \001(\tB&\340A\002\372A \n\036dialogflow.googleapis.com" - + "/Flow\022\025\n\010flow_uri\030\002 \001(\tB\003\340A\001\022%\n\030include_" - + "referenced_flows\030\004 \001(\010B\003\340A\001\"H\n\022ExportFlo" - + "wResponse\022\022\n\010flow_uri\030\001 \001(\tH\000\022\026\n\014flow_co" - + "ntent\030\002 \001(\014H\000B\006\n\004flow2\230\020\n\005Flows\022\263\001\n\nCrea" - + "teFlow\0220.google.cloud.dialogflow.cx.v3.C" - + "reateFlowRequest\032#.google.cloud.dialogfl" - + "ow.cx.v3.Flow\"N\332A\013parent,flow\202\323\344\223\002:\"2/v3" - + "/{parent=projects/*/locations/*/agents/*" - + "}/flows:\004flow\022\231\001\n\nDeleteFlow\0220.google.cl" - + "oud.dialogflow.cx.v3.DeleteFlowRequest\032\026" - + ".google.protobuf.Empty\"A\332A\004name\202\323\344\223\0024*2/" - + "v3/{name=projects/*/locations/*/agents/*" - + "/flows/*}\022\263\001\n\tListFlows\022/.google.cloud.d" - + "ialogflow.cx.v3.ListFlowsRequest\0320.googl" - + "e.cloud.dialogflow.cx.v3.ListFlowsRespon" - + "se\"C\332A\006parent\202\323\344\223\0024\0222/v3/{parent=project" - + "s/*/locations/*/agents/*}/flows\022\240\001\n\007GetF" - + "low\022-.google.cloud.dialogflow.cx.v3.GetF" - + "lowRequest\032#.google.cloud.dialogflow.cx." - + "v3.Flow\"A\332A\004name\202\323\344\223\0024\0222/v3/{name=projec" - + "ts/*/locations/*/agents/*/flows/*}\022\275\001\n\nU" - + "pdateFlow\0220.google.cloud.dialogflow.cx.v" - + "3.UpdateFlowRequest\032#.google.cloud.dialo" - + "gflow.cx.v3.Flow\"X\332A\020flow,update_mask\202\323\344" - + "\223\002?27/v3/{flow.name=projects/*/locations" - + "/*/agents/*/flows/*}:\004flow\022\331\001\n\tTrainFlow" - + "\022/.google.cloud.dialogflow.cx.v3.TrainFl" - + "owRequest\032\035.google.longrunning.Operation" - + "\"|\312A/\n\025google.protobuf.Empty\022\026google.pro" - + "tobuf.Struct\332A\004name\202\323\344\223\002=\"8/v3/{name=pro" - + "jects/*/locations/*/agents/*/flows/*}:tr" - + "ain:\001*\022\277\001\n\014ValidateFlow\0222.google.cloud.d" - + "ialogflow.cx.v3.ValidateFlowRequest\0323.go" - + "ogle.cloud.dialogflow.cx.v3.FlowValidati" - + "onResult\"F\202\323\344\223\002@\";/v3/{name=projects/*/l" - + "ocations/*/agents/*/flows/*}:validate:\001*" - + "\022\341\001\n\027GetFlowValidationResult\022=.google.cl" - + "oud.dialogflow.cx.v3.GetFlowValidationRe" - + "sultRequest\0323.google.cloud.dialogflow.cx" - + ".v3.FlowValidationResult\"R\332A\004name\202\323\344\223\002E\022" - + "C/v3/{name=projects/*/locations/*/agents" - + "/*/flows/*/validationResult}\022\322\001\n\nImportF" - + "low\0220.google.cloud.dialogflow.cx.v3.Impo" - + "rtFlowRequest\032\035.google.longrunning.Opera" - + "tion\"s\312A,\n\022ImportFlowResponse\022\026google.pr" - + "otobuf.Struct\202\323\344\223\002>\"9/v3/{parent=project" - + "s/*/locations/*/agents/*}/flows:import:\001" - + "*\022\322\001\n\nExportFlow\0220.google.cloud.dialogfl" - + "ow.cx.v3.ExportFlowRequest\032\035.google.long" - + "running.Operation\"s\312A,\n\022ExportFlowRespon" - + "se\022\026google.protobuf.Struct\202\323\344\223\002>\"9/v3/{n" - + "ame=projects/*/locations/*/agents/*/flow" - + "s/*}:export:\001*\032x\312A\031dialogflow.googleapis" - + ".com\322AYhttps://www.googleapis.com/auth/c" - + "loud-platform,https://www.googleapis.com" - + "/auth/dialogflowB\257\001\n!com.google.cloud.di" - + "alogflow.cx.v3B\tFlowProtoP\001Z1cloud.googl" - + "e.com/go/dialogflow/cx/apiv3/cxpb;cxpb\370\001" - + "\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002" - + "!Google::Cloud::Dialogflow::CX::V3b\006prot" - + "o3" + + "SettingsB\003\340A\001\022_\n\027multi_language_settings" + + "\030\034 \001(\01329.google.cloud.dialogflow.cx.v3.F" + + "low.MultiLanguageSettingsB\003\340A\001\022\016\n\006locked" + + "\030\036 \001(\010\032u\n\025MultiLanguageSettings\022,\n\037enabl" + + "e_multi_language_detection\030\001 \001(\010B\003\340A\001\022.\n" + + "!supported_response_language_codes\030\002 \003(\t" + + "B\003\340A\001:h\352Ae\n\036dialogflow.googleapis.com/Fl" + + "ow\022Cprojects/{project}/locations/{locati" + + "on}/agents/{agent}/flows/{flow}\"\232\001\n\021Crea" + + "teFlowRequest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036d" + + "ialogflow.googleapis.com/Flow\0226\n\004flow\030\002 " + + "\001(\0132#.google.cloud.dialogflow.cx.v3.Flow" + + "B\003\340A\002\022\025\n\rlanguage_code\030\003 \001(\t\"X\n\021DeleteFl" + + "owRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036dialogf" + + "low.googleapis.com/Flow\022\r\n\005force\030\002 \001(\010\"\210" + + "\001\n\020ListFlowsRequest\0226\n\006parent\030\001 \001(\tB&\340A\002" + + "\372A \022\036dialogflow.googleapis.com/Flow\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\025\n\rla" + + "nguage_code\030\004 \001(\t\"`\n\021ListFlowsResponse\0222" + + "\n\005flows\030\001 \003(\0132#.google.cloud.dialogflow." + + "cx.v3.Flow\022\027\n\017next_page_token\030\002 \001(\t\"]\n\016G" + + "etFlowRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036dia" + + "logflow.googleapis.com/Flow\022\025\n\rlanguage_" + + "code\030\002 \001(\t\"\223\001\n\021UpdateFlowRequest\0226\n\004flow" + + "\030\001 \001(\0132#.google.cloud.dialogflow.cx.v3.F" + + "lowB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.p" + + "rotobuf.FieldMask\022\025\n\rlanguage_code\030\003 \001(\t" + + "\"H\n\020TrainFlowRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372" + + "A \n\036dialogflow.googleapis.com/Flow\"b\n\023Va" + + "lidateFlowRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dialogflow.googleapis.com/Flow\022\025\n\rlangu" + + "age_code\030\002 \001(\t\"}\n\036GetFlowValidationResul" + + "tRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.dialogfl" + + "ow.googleapis.com/FlowValidationResult\022\025" + + "\n\rlanguage_code\030\002 \001(\t\"\261\002\n\024FlowValidation" + + "Result\022\014\n\004name\030\001 \001(\t\022M\n\023validation_messa" + + "ges\030\002 \003(\01320.google.cloud.dialogflow.cx.v" + + "3.ValidationMessage\022/\n\013update_time\030\003 \001(\013" + + "2\032.google.protobuf.Timestamp:\212\001\352A\206\001\n.dia" + + "logflow.googleapis.com/FlowValidationRes" + + "ult\022Tprojects/{project}/locations/{locat" + + "ion}/agents/{agent}/flows/{flow}/validat" + + "ionResult\"\362\002\n\021ImportFlowRequest\0226\n\006paren" + + "t\030\001 \001(\tB&\340A\002\372A \022\036dialogflow.googleapis.c" + + "om/Flow\022\022\n\010flow_uri\030\002 \001(\tH\000\022\026\n\014flow_cont" + + "ent\030\003 \001(\014H\000\022T\n\rimport_option\030\004 \001(\0162=.goo" + + "gle.cloud.dialogflow.cx.v3.ImportFlowReq" + + "uest.ImportOption\022T\n\024flow_import_strateg" + + "y\030\005 \001(\01321.google.cloud.dialogflow.cx.v3." + + "FlowImportStrategyB\003\340A\001\"E\n\014ImportOption\022" + + "\035\n\031IMPORT_OPTION_UNSPECIFIED\020\000\022\010\n\004KEEP\020\001" + + "\022\014\n\010FALLBACK\020\002B\006\n\004flow\"h\n\022FlowImportStra" + + "tegy\022R\n\026global_import_strategy\030\001 \001(\0162-.g" + + "oogle.cloud.dialogflow.cx.v3.ImportStrat" + + "egyB\003\340A\001\"G\n\022ImportFlowResponse\0221\n\004flow\030\001" + + " \001(\tB#\372A \n\036dialogflow.googleapis.com/Flo" + + "w\"\207\001\n\021ExportFlowRequest\0224\n\004name\030\001 \001(\tB&\340" + + "A\002\372A \n\036dialogflow.googleapis.com/Flow\022\025\n" + + "\010flow_uri\030\002 \001(\tB\003\340A\001\022%\n\030include_referenc" + + "ed_flows\030\004 \001(\010B\003\340A\001\"H\n\022ExportFlowRespons" + + "e\022\022\n\010flow_uri\030\001 \001(\tH\000\022\026\n\014flow_content\030\002 " + + "\001(\014H\000B\006\n\004flow2\230\020\n\005Flows\022\263\001\n\nCreateFlow\0220" + + ".google.cloud.dialogflow.cx.v3.CreateFlo" + + "wRequest\032#.google.cloud.dialogflow.cx.v3" + + ".Flow\"N\332A\013parent,flow\202\323\344\223\002:\"2/v3/{parent" + + "=projects/*/locations/*/agents/*}/flows:" + + "\004flow\022\231\001\n\nDeleteFlow\0220.google.cloud.dial" + + "ogflow.cx.v3.DeleteFlowRequest\032\026.google." + + "protobuf.Empty\"A\332A\004name\202\323\344\223\0024*2/v3/{name" + + "=projects/*/locations/*/agents/*/flows/*" + + "}\022\263\001\n\tListFlows\022/.google.cloud.dialogflo" + + "w.cx.v3.ListFlowsRequest\0320.google.cloud." + + "dialogflow.cx.v3.ListFlowsResponse\"C\332A\006p" + + "arent\202\323\344\223\0024\0222/v3/{parent=projects/*/loca" + + "tions/*/agents/*}/flows\022\240\001\n\007GetFlow\022-.go" + + "ogle.cloud.dialogflow.cx.v3.GetFlowReque" + + "st\032#.google.cloud.dialogflow.cx.v3.Flow\"" + + "A\332A\004name\202\323\344\223\0024\0222/v3/{name=projects/*/loc" + + "ations/*/agents/*/flows/*}\022\275\001\n\nUpdateFlo" + + "w\0220.google.cloud.dialogflow.cx.v3.Update" + + "FlowRequest\032#.google.cloud.dialogflow.cx" + + ".v3.Flow\"X\332A\020flow,update_mask\202\323\344\223\002?27/v3" + + "/{flow.name=projects/*/locations/*/agent" + + "s/*/flows/*}:\004flow\022\331\001\n\tTrainFlow\022/.googl" + + "e.cloud.dialogflow.cx.v3.TrainFlowReques" + + "t\032\035.google.longrunning.Operation\"|\312A/\n\025g" + + "oogle.protobuf.Empty\022\026google.protobuf.St" + + "ruct\332A\004name\202\323\344\223\002=\"8/v3/{name=projects/*/" + + "locations/*/agents/*/flows/*}:train:\001*\022\277" + + "\001\n\014ValidateFlow\0222.google.cloud.dialogflo" + + "w.cx.v3.ValidateFlowRequest\0323.google.clo" + + "ud.dialogflow.cx.v3.FlowValidationResult" + + "\"F\202\323\344\223\002@\";/v3/{name=projects/*/locations" + + "/*/agents/*/flows/*}:validate:\001*\022\341\001\n\027Get" + + "FlowValidationResult\022=.google.cloud.dial" + + "ogflow.cx.v3.GetFlowValidationResultRequ" + + "est\0323.google.cloud.dialogflow.cx.v3.Flow" + + "ValidationResult\"R\332A\004name\202\323\344\223\002E\022C/v3/{na" + + "me=projects/*/locations/*/agents/*/flows" + + "/*/validationResult}\022\322\001\n\nImportFlow\0220.go" + + "ogle.cloud.dialogflow.cx.v3.ImportFlowRe" + + "quest\032\035.google.longrunning.Operation\"s\312A" + + ",\n\022ImportFlowResponse\022\026google.protobuf.S" + + "truct\202\323\344\223\002>\"9/v3/{parent=projects/*/loca" + + "tions/*/agents/*}/flows:import:\001*\022\322\001\n\nEx" + + "portFlow\0220.google.cloud.dialogflow.cx.v3" + + ".ExportFlowRequest\032\035.google.longrunning." + + "Operation\"s\312A,\n\022ExportFlowResponse\022\026goog" + + "le.protobuf.Struct\202\323\344\223\002>\"9/v3/{name=proj" + + "ects/*/locations/*/agents/*/flows/*}:exp" + + "ort:\001*\032x\312A\031dialogflow.googleapis.com\322AYh" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform,https://www.googleapis.com/auth/di" + + "alogflowB\257\001\n!com.google.cloud.dialogflow" + + ".cx.v3B\tFlowProtoP\001Z1cloud.google.com/go" + + "/dialogflow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002" + + "\035Google.Cloud.Dialogflow.Cx.V3\352\002!Google:" + + ":Cloud::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -298,6 +307,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NluSettings", "AdvancedSettings", "KnowledgeConnectorSettings", + "MultiLanguageSettings", + "Locked", + }); + internal_static_google_cloud_dialogflow_cx_v3_Flow_MultiLanguageSettings_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_Flow_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dialogflow_cx_v3_Flow_MultiLanguageSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_Flow_MultiLanguageSettings_descriptor, + new java.lang.String[] { + "EnableMultiLanguageDetection", "SupportedResponseLanguageCodes", }); internal_static_google_cloud_dialogflow_cx_v3_CreateFlowRequest_descriptor = getDescriptor().getMessageTypes().get(2); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LanguageInfo.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LanguageInfo.java new file mode 100644 index 000000000000..ba63cc244fe5 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LanguageInfo.java @@ -0,0 +1,914 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/webhook.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
        + * Represents the language information of the request.
        + * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.LanguageInfo} + */ +public final class LanguageInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.LanguageInfo) + LanguageInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use LanguageInfo.newBuilder() to construct. + private LanguageInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LanguageInfo() { + inputLanguageCode_ = ""; + resolvedLanguageCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LanguageInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3_LanguageInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3_LanguageInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.LanguageInfo.class, + com.google.cloud.dialogflow.cx.v3.LanguageInfo.Builder.class); + } + + public static final int INPUT_LANGUAGE_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputLanguageCode_ = ""; + /** + * + * + *
        +   * The language code specified in the original
        +   * [request][google.cloud.dialogflow.cx.v3.QueryInput.language_code].
        +   * 
        + * + * string input_language_code = 1; + * + * @return The inputLanguageCode. + */ + @java.lang.Override + public java.lang.String getInputLanguageCode() { + java.lang.Object ref = inputLanguageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputLanguageCode_ = s; + return s; + } + } + /** + * + * + *
        +   * The language code specified in the original
        +   * [request][google.cloud.dialogflow.cx.v3.QueryInput.language_code].
        +   * 
        + * + * string input_language_code = 1; + * + * @return The bytes for inputLanguageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInputLanguageCodeBytes() { + java.lang.Object ref = inputLanguageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOLVED_LANGUAGE_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object resolvedLanguageCode_ = ""; + /** + * + * + *
        +   * The language code detected for this request based on the user
        +   * conversation.
        +   * 
        + * + * string resolved_language_code = 2; + * + * @return The resolvedLanguageCode. + */ + @java.lang.Override + public java.lang.String getResolvedLanguageCode() { + java.lang.Object ref = resolvedLanguageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolvedLanguageCode_ = s; + return s; + } + } + /** + * + * + *
        +   * The language code detected for this request based on the user
        +   * conversation.
        +   * 
        + * + * string resolved_language_code = 2; + * + * @return The bytes for resolvedLanguageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResolvedLanguageCodeBytes() { + java.lang.Object ref = resolvedLanguageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolvedLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIDENCE_SCORE_FIELD_NUMBER = 3; + private float confidenceScore_ = 0F; + /** + * + * + *
        +   * The confidence score of the detected language between 0 and 1.
        +   * 
        + * + * float confidence_score = 3; + * + * @return The confidenceScore. + */ + @java.lang.Override + public float getConfidenceScore() { + return confidenceScore_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputLanguageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputLanguageCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resolvedLanguageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resolvedLanguageCode_); + } + if (java.lang.Float.floatToRawIntBits(confidenceScore_) != 0) { + output.writeFloat(3, confidenceScore_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputLanguageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputLanguageCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resolvedLanguageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resolvedLanguageCode_); + } + if (java.lang.Float.floatToRawIntBits(confidenceScore_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, confidenceScore_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.LanguageInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.LanguageInfo other = + (com.google.cloud.dialogflow.cx.v3.LanguageInfo) obj; + + if (!getInputLanguageCode().equals(other.getInputLanguageCode())) return false; + if (!getResolvedLanguageCode().equals(other.getResolvedLanguageCode())) return false; + if (java.lang.Float.floatToIntBits(getConfidenceScore()) + != java.lang.Float.floatToIntBits(other.getConfidenceScore())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INPUT_LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getInputLanguageCode().hashCode(); + hash = (37 * hash) + RESOLVED_LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getResolvedLanguageCode().hashCode(); + hash = (37 * hash) + CONFIDENCE_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceScore()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.LanguageInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.LanguageInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.LanguageInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.LanguageInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.LanguageInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.LanguageInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.LanguageInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.LanguageInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.LanguageInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.LanguageInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.LanguageInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.LanguageInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3.LanguageInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Represents the language information of the request.
        +   * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.LanguageInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.LanguageInfo) + com.google.cloud.dialogflow.cx.v3.LanguageInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3_LanguageInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3_LanguageInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.LanguageInfo.class, + com.google.cloud.dialogflow.cx.v3.LanguageInfo.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.LanguageInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inputLanguageCode_ = ""; + resolvedLanguageCode_ = ""; + confidenceScore_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3_LanguageInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.LanguageInfo getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.LanguageInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.LanguageInfo build() { + com.google.cloud.dialogflow.cx.v3.LanguageInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.LanguageInfo buildPartial() { + com.google.cloud.dialogflow.cx.v3.LanguageInfo result = + new com.google.cloud.dialogflow.cx.v3.LanguageInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.LanguageInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputLanguageCode_ = inputLanguageCode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resolvedLanguageCode_ = resolvedLanguageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confidenceScore_ = confidenceScore_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.LanguageInfo) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.LanguageInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.LanguageInfo other) { + if (other == com.google.cloud.dialogflow.cx.v3.LanguageInfo.getDefaultInstance()) return this; + if (!other.getInputLanguageCode().isEmpty()) { + inputLanguageCode_ = other.inputLanguageCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResolvedLanguageCode().isEmpty()) { + resolvedLanguageCode_ = other.resolvedLanguageCode_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getConfidenceScore() != 0F) { + setConfidenceScore(other.getConfidenceScore()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + inputLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + resolvedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 29: + { + confidenceScore_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 29 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object inputLanguageCode_ = ""; + /** + * + * + *
        +     * The language code specified in the original
        +     * [request][google.cloud.dialogflow.cx.v3.QueryInput.language_code].
        +     * 
        + * + * string input_language_code = 1; + * + * @return The inputLanguageCode. + */ + public java.lang.String getInputLanguageCode() { + java.lang.Object ref = inputLanguageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputLanguageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * The language code specified in the original
        +     * [request][google.cloud.dialogflow.cx.v3.QueryInput.language_code].
        +     * 
        + * + * string input_language_code = 1; + * + * @return The bytes for inputLanguageCode. + */ + public com.google.protobuf.ByteString getInputLanguageCodeBytes() { + java.lang.Object ref = inputLanguageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * The language code specified in the original
        +     * [request][google.cloud.dialogflow.cx.v3.QueryInput.language_code].
        +     * 
        + * + * string input_language_code = 1; + * + * @param value The inputLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setInputLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inputLanguageCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The language code specified in the original
        +     * [request][google.cloud.dialogflow.cx.v3.QueryInput.language_code].
        +     * 
        + * + * string input_language_code = 1; + * + * @return This builder for chaining. + */ + public Builder clearInputLanguageCode() { + inputLanguageCode_ = getDefaultInstance().getInputLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * The language code specified in the original
        +     * [request][google.cloud.dialogflow.cx.v3.QueryInput.language_code].
        +     * 
        + * + * string input_language_code = 1; + * + * @param value The bytes for inputLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setInputLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputLanguageCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object resolvedLanguageCode_ = ""; + /** + * + * + *
        +     * The language code detected for this request based on the user
        +     * conversation.
        +     * 
        + * + * string resolved_language_code = 2; + * + * @return The resolvedLanguageCode. + */ + public java.lang.String getResolvedLanguageCode() { + java.lang.Object ref = resolvedLanguageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolvedLanguageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * The language code detected for this request based on the user
        +     * conversation.
        +     * 
        + * + * string resolved_language_code = 2; + * + * @return The bytes for resolvedLanguageCode. + */ + public com.google.protobuf.ByteString getResolvedLanguageCodeBytes() { + java.lang.Object ref = resolvedLanguageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolvedLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * The language code detected for this request based on the user
        +     * conversation.
        +     * 
        + * + * string resolved_language_code = 2; + * + * @param value The resolvedLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setResolvedLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resolvedLanguageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * The language code detected for this request based on the user
        +     * conversation.
        +     * 
        + * + * string resolved_language_code = 2; + * + * @return This builder for chaining. + */ + public Builder clearResolvedLanguageCode() { + resolvedLanguageCode_ = getDefaultInstance().getResolvedLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
        +     * The language code detected for this request based on the user
        +     * conversation.
        +     * 
        + * + * string resolved_language_code = 2; + * + * @param value The bytes for resolvedLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setResolvedLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resolvedLanguageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private float confidenceScore_; + /** + * + * + *
        +     * The confidence score of the detected language between 0 and 1.
        +     * 
        + * + * float confidence_score = 3; + * + * @return The confidenceScore. + */ + @java.lang.Override + public float getConfidenceScore() { + return confidenceScore_; + } + /** + * + * + *
        +     * The confidence score of the detected language between 0 and 1.
        +     * 
        + * + * float confidence_score = 3; + * + * @param value The confidenceScore to set. + * @return This builder for chaining. + */ + public Builder setConfidenceScore(float value) { + + confidenceScore_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * The confidence score of the detected language between 0 and 1.
        +     * 
        + * + * float confidence_score = 3; + * + * @return This builder for chaining. + */ + public Builder clearConfidenceScore() { + bitField0_ = (bitField0_ & ~0x00000004); + confidenceScore_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.LanguageInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.LanguageInfo) + private static final com.google.cloud.dialogflow.cx.v3.LanguageInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.LanguageInfo(); + } + + public static com.google.cloud.dialogflow.cx.v3.LanguageInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.LanguageInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LanguageInfoOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LanguageInfoOrBuilder.java new file mode 100644 index 000000000000..3ded0bf9cc0a --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LanguageInfoOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/webhook.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.dialogflow.cx.v3; + +public interface LanguageInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.LanguageInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The language code specified in the original
        +   * [request][google.cloud.dialogflow.cx.v3.QueryInput.language_code].
        +   * 
        + * + * string input_language_code = 1; + * + * @return The inputLanguageCode. + */ + java.lang.String getInputLanguageCode(); + /** + * + * + *
        +   * The language code specified in the original
        +   * [request][google.cloud.dialogflow.cx.v3.QueryInput.language_code].
        +   * 
        + * + * string input_language_code = 1; + * + * @return The bytes for inputLanguageCode. + */ + com.google.protobuf.ByteString getInputLanguageCodeBytes(); + + /** + * + * + *
        +   * The language code detected for this request based on the user
        +   * conversation.
        +   * 
        + * + * string resolved_language_code = 2; + * + * @return The resolvedLanguageCode. + */ + java.lang.String getResolvedLanguageCode(); + /** + * + * + *
        +   * The language code detected for this request based on the user
        +   * conversation.
        +   * 
        + * + * string resolved_language_code = 2; + * + * @return The bytes for resolvedLanguageCode. + */ + com.google.protobuf.ByteString getResolvedLanguageCodeBytes(); + + /** + * + * + *
        +   * The confidence score of the detected language between 0 and 1.
        +   * 
        + * + * float confidence_score = 3; + * + * @return The confidenceScore. + */ + float getConfidenceScore(); +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java index d4c7d20d42a5..8895e56ce935 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java @@ -145,6 +145,26 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { * EVENT = 6; */ EVENT(6), + /** + * + * + *
        +     * The query was matched to a Knowledge Connector answer.
        +     * 
        + * + * KNOWLEDGE_CONNECTOR = 8; + */ + KNOWLEDGE_CONNECTOR(8), + /** + * + * + *
        +     * The query was handled by a [`Playbook`][Playbook].
        +     * 
        + * + * PLAYBOOK = 9; + */ + PLAYBOOK(9), UNRECOGNIZED(-1), ; @@ -218,6 +238,26 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { * EVENT = 6; */ public static final int EVENT_VALUE = 6; + /** + * + * + *
        +     * The query was matched to a Knowledge Connector answer.
        +     * 
        + * + * KNOWLEDGE_CONNECTOR = 8; + */ + public static final int KNOWLEDGE_CONNECTOR_VALUE = 8; + /** + * + * + *
        +     * The query was handled by a [`Playbook`][Playbook].
        +     * 
        + * + * PLAYBOOK = 9; + */ + public static final int PLAYBOOK_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -257,6 +297,10 @@ public static MatchType forNumber(int value) { return NO_INPUT; case 6: return EVENT; + case 8: + return KNOWLEDGE_CONNECTOR; + case 9: + return PLAYBOOK; default: return null; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java index d5dfd84e0cc9..c7135b78ff96 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java @@ -1082,6 +1082,29 @@ public com.google.cloud.dialogflow.cx.v3.SearchConfigOrBuilder getSearchConfigOr : searchConfig_; } + public static final int POPULATE_DATA_STORE_CONNECTION_SIGNALS_FIELD_NUMBER = 25; + private boolean populateDataStoreConnectionSignals_ = false; + /** + * + * + *
        +   * Optional. If set to true and data stores are involved in serving the
        +   * request then
        +   * DetectIntentResponse.query_result.data_store_connection_signals
        +   * will be filled with data that can help evaluations.
        +   * 
        + * + * + * bool populate_data_store_connection_signals = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The populateDataStoreConnectionSignals. + */ + @java.lang.Override + public boolean getPopulateDataStoreConnectionSignals() { + return populateDataStoreConnectionSignals_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1137,6 +1160,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(20, getSearchConfig()); } + if (populateDataStoreConnectionSignals_ != false) { + output.writeBool(25, populateDataStoreConnectionSignals_); + } getUnknownFields().writeTo(output); } @@ -1201,6 +1227,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getSearchConfig()); } + if (populateDataStoreConnectionSignals_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 25, populateDataStoreConnectionSignals_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1249,6 +1280,8 @@ public boolean equals(final java.lang.Object obj) { if (hasSearchConfig()) { if (!getSearchConfig().equals(other.getSearchConfig())) return false; } + if (getPopulateDataStoreConnectionSignals() != other.getPopulateDataStoreConnectionSignals()) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1306,6 +1339,10 @@ public int hashCode() { hash = (37 * hash) + SEARCH_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSearchConfig().hashCode(); } + hash = (37 * hash) + POPULATE_DATA_STORE_CONNECTION_SIGNALS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getPopulateDataStoreConnectionSignals()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1526,6 +1563,7 @@ public Builder clear() { searchConfigBuilder_.dispose(); searchConfigBuilder_ = null; } + populateDataStoreConnectionSignals_ = false; return this; } @@ -1627,6 +1665,9 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.QueryParameters res searchConfigBuilder_ == null ? searchConfig_ : searchConfigBuilder_.build(); to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.populateDataStoreConnectionSignals_ = populateDataStoreConnectionSignals_; + } result.bitField0_ |= to_bitField0_; } @@ -1754,6 +1795,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryParameters other if (other.hasSearchConfig()) { mergeSearchConfig(other.getSearchConfig()); } + if (other.getPopulateDataStoreConnectionSignals() != false) { + setPopulateDataStoreConnectionSignals(other.getPopulateDataStoreConnectionSignals()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1879,6 +1923,12 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 162 + case 200: + { + populateDataStoreConnectionSignals_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 200 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4921,6 +4971,74 @@ public com.google.cloud.dialogflow.cx.v3.SearchConfigOrBuilder getSearchConfigOr return searchConfigBuilder_; } + private boolean populateDataStoreConnectionSignals_; + /** + * + * + *
        +     * Optional. If set to true and data stores are involved in serving the
        +     * request then
        +     * DetectIntentResponse.query_result.data_store_connection_signals
        +     * will be filled with data that can help evaluations.
        +     * 
        + * + * + * bool populate_data_store_connection_signals = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The populateDataStoreConnectionSignals. + */ + @java.lang.Override + public boolean getPopulateDataStoreConnectionSignals() { + return populateDataStoreConnectionSignals_; + } + /** + * + * + *
        +     * Optional. If set to true and data stores are involved in serving the
        +     * request then
        +     * DetectIntentResponse.query_result.data_store_connection_signals
        +     * will be filled with data that can help evaluations.
        +     * 
        + * + * + * bool populate_data_store_connection_signals = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The populateDataStoreConnectionSignals to set. + * @return This builder for chaining. + */ + public Builder setPopulateDataStoreConnectionSignals(boolean value) { + + populateDataStoreConnectionSignals_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. If set to true and data stores are involved in serving the
        +     * request then
        +     * DetectIntentResponse.query_result.data_store_connection_signals
        +     * will be filled with data that can help evaluations.
        +     * 
        + * + * + * bool populate_data_store_connection_signals = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPopulateDataStoreConnectionSignals() { + bitField0_ = (bitField0_ & ~0x00004000); + populateDataStoreConnectionSignals_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java index 21cc83cd5b44..580fb19d5bbf 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java @@ -791,4 +791,22 @@ java.lang.String getWebhookHeadersOrDefault( *
        */ com.google.cloud.dialogflow.cx.v3.SearchConfigOrBuilder getSearchConfigOrBuilder(); + + /** + * + * + *
        +   * Optional. If set to true and data stores are involved in serving the
        +   * request then
        +   * DetectIntentResponse.query_result.data_store_connection_signals
        +   * will be filled with data that can help evaluations.
        +   * 
        + * + * + * bool populate_data_store_connection_signals = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The populateDataStoreConnectionSignals. + */ + boolean getPopulateDataStoreConnectionSignals(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java index 13502d0da1f5..e255f9456de3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java @@ -1264,7 +1264,7 @@ public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getCurrentFlowOrBuilder() * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=956 + * google/cloud/dialogflow/cx/v3/session.proto;l=964 * @return Whether the intent field is set. */ @java.lang.Override @@ -1287,7 +1287,7 @@ public boolean hasIntent() { * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=956 + * google/cloud/dialogflow/cx/v3/session.proto;l=964 * @return The intent. */ @java.lang.Override @@ -1339,7 +1339,7 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=967 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=975 * @return The intentDetectionConfidence. */ @java.lang.Override @@ -1637,6 +1637,73 @@ public boolean getAllowAnswerFeedback() { return allowAnswerFeedback_; } + public static final int DATA_STORE_CONNECTION_SIGNALS_FIELD_NUMBER = 35; + private com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals dataStoreConnectionSignals_; + /** + * + * + *
        +   * Optional. Data store connection feature output signals.
        +   * Filled only when data stores are involved in serving the query and
        +   * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +   * to true in the request.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStoreConnectionSignals field is set. + */ + @java.lang.Override + public boolean hasDataStoreConnectionSignals() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
        +   * Optional. Data store connection feature output signals.
        +   * Filled only when data stores are involved in serving the query and
        +   * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +   * to true in the request.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreConnectionSignals. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + getDataStoreConnectionSignals() { + return dataStoreConnectionSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.getDefaultInstance() + : dataStoreConnectionSignals_; + } + /** + * + * + *
        +   * Optional. Data store connection feature output signals.
        +   * Filled only when data stores are involved in serving the query and
        +   * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +   * to true in the request.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignalsOrBuilder + getDataStoreConnectionSignalsOrBuilder() { + return dataStoreConnectionSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.getDefaultInstance() + : dataStoreConnectionSignals_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1721,6 +1788,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (allowAnswerFeedback_ != false) { output.writeBool(32, allowAnswerFeedback_); } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(35, getDataStoreConnectionSignals()); + } getUnknownFields().writeTo(output); } @@ -1819,6 +1889,11 @@ public int getSerializedSize() { if (allowAnswerFeedback_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(32, allowAnswerFeedback_); } + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 35, getDataStoreConnectionSignals()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1878,6 +1953,11 @@ public boolean equals(final java.lang.Object obj) { if (!getAdvancedSettings().equals(other.getAdvancedSettings())) return false; } if (getAllowAnswerFeedback() != other.getAllowAnswerFeedback()) return false; + if (hasDataStoreConnectionSignals() != other.hasDataStoreConnectionSignals()) return false; + if (hasDataStoreConnectionSignals()) { + if (!getDataStoreConnectionSignals().equals(other.getDataStoreConnectionSignals())) + return false; + } if (!getQueryCase().equals(other.getQueryCase())) return false; switch (queryCase_) { case 1: @@ -1975,6 +2055,10 @@ public int hashCode() { } hash = (37 * hash) + ALLOW_ANSWER_FEEDBACK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowAnswerFeedback()); + if (hasDataStoreConnectionSignals()) { + hash = (37 * hash) + DATA_STORE_CONNECTION_SIGNALS_FIELD_NUMBER; + hash = (53 * hash) + getDataStoreConnectionSignals().hashCode(); + } switch (queryCase_) { case 1: hash = (37 * hash) + TEXT_FIELD_NUMBER; @@ -2151,6 +2235,7 @@ private void maybeForceBuilderInitialization() { getDiagnosticInfoFieldBuilder(); getSentimentAnalysisResultFieldBuilder(); getAdvancedSettingsFieldBuilder(); + getDataStoreConnectionSignalsFieldBuilder(); } } @@ -2235,6 +2320,11 @@ public Builder clear() { advancedSettingsBuilder_ = null; } allowAnswerFeedback_ = false; + dataStoreConnectionSignals_ = null; + if (dataStoreConnectionSignalsBuilder_ != null) { + dataStoreConnectionSignalsBuilder_.dispose(); + dataStoreConnectionSignalsBuilder_ = null; + } queryCase_ = 0; query_ = null; return this; @@ -2375,6 +2465,13 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.QueryResult result) if (((from_bitField0_ & 0x00400000) != 0)) { result.allowAnswerFeedback_ = allowAnswerFeedback_; } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.dataStoreConnectionSignals_ = + dataStoreConnectionSignalsBuilder_ == null + ? dataStoreConnectionSignals_ + : dataStoreConnectionSignalsBuilder_.build(); + to_bitField0_ |= 0x00000100; + } result.bitField0_ |= to_bitField0_; } @@ -2604,6 +2701,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) { if (other.getAllowAnswerFeedback() != false) { setAllowAnswerFeedback(other.getAllowAnswerFeedback()); } + if (other.hasDataStoreConnectionSignals()) { + mergeDataStoreConnectionSignals(other.getDataStoreConnectionSignals()); + } switch (other.getQueryCase()) { case TEXT: { @@ -2842,6 +2942,13 @@ public Builder mergeFrom( bitField0_ |= 0x00400000; break; } // case 256 + case 282: + { + input.readMessage( + getDataStoreConnectionSignalsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 282 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6556,7 +6663,7 @@ public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getCurrentFlowOrBuilder() * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=956 + * google/cloud/dialogflow/cx/v3/session.proto;l=964 * @return Whether the intent field is set. */ @java.lang.Deprecated @@ -6578,7 +6685,7 @@ public boolean hasIntent() { * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=956 + * google/cloud/dialogflow/cx/v3/session.proto;l=964 * @return The intent. */ @java.lang.Deprecated @@ -6796,7 +6903,7 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=967 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=975 * @return The intentDetectionConfidence. */ @java.lang.Override @@ -6822,7 +6929,7 @@ public float getIntentDetectionConfidence() { * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=967 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=975 * @param value The intentDetectionConfidence to set. * @return This builder for chaining. */ @@ -6852,7 +6959,7 @@ public Builder setIntentDetectionConfidence(float value) { * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=967 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=975 * @return This builder for chaining. */ @java.lang.Deprecated @@ -7884,6 +7991,245 @@ public Builder clearAllowAnswerFeedback() { return this; } + private com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + dataStoreConnectionSignals_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignalsOrBuilder> + dataStoreConnectionSignalsBuilder_; + /** + * + * + *
        +     * Optional. Data store connection feature output signals.
        +     * Filled only when data stores are involved in serving the query and
        +     * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +     * to true in the request.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStoreConnectionSignals field is set. + */ + public boolean hasDataStoreConnectionSignals() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + * + * + *
        +     * Optional. Data store connection feature output signals.
        +     * Filled only when data stores are involved in serving the query and
        +     * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +     * to true in the request.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreConnectionSignals. + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + getDataStoreConnectionSignals() { + if (dataStoreConnectionSignalsBuilder_ == null) { + return dataStoreConnectionSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.getDefaultInstance() + : dataStoreConnectionSignals_; + } else { + return dataStoreConnectionSignalsBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Data store connection feature output signals.
        +     * Filled only when data stores are involved in serving the query and
        +     * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +     * to true in the request.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataStoreConnectionSignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals value) { + if (dataStoreConnectionSignalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataStoreConnectionSignals_ = value; + } else { + dataStoreConnectionSignalsBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Data store connection feature output signals.
        +     * Filled only when data stores are involved in serving the query and
        +     * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +     * to true in the request.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataStoreConnectionSignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.Builder builderForValue) { + if (dataStoreConnectionSignalsBuilder_ == null) { + dataStoreConnectionSignals_ = builderForValue.build(); + } else { + dataStoreConnectionSignalsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Data store connection feature output signals.
        +     * Filled only when data stores are involved in serving the query and
        +     * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +     * to true in the request.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataStoreConnectionSignals( + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals value) { + if (dataStoreConnectionSignalsBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && dataStoreConnectionSignals_ != null + && dataStoreConnectionSignals_ + != com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals + .getDefaultInstance()) { + getDataStoreConnectionSignalsBuilder().mergeFrom(value); + } else { + dataStoreConnectionSignals_ = value; + } + } else { + dataStoreConnectionSignalsBuilder_.mergeFrom(value); + } + if (dataStoreConnectionSignals_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Data store connection feature output signals.
        +     * Filled only when data stores are involved in serving the query and
        +     * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +     * to true in the request.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataStoreConnectionSignals() { + bitField0_ = (bitField0_ & ~0x00800000); + dataStoreConnectionSignals_ = null; + if (dataStoreConnectionSignalsBuilder_ != null) { + dataStoreConnectionSignalsBuilder_.dispose(); + dataStoreConnectionSignalsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Data store connection feature output signals.
        +     * Filled only when data stores are involved in serving the query and
        +     * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +     * to true in the request.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.Builder + getDataStoreConnectionSignalsBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getDataStoreConnectionSignalsFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Data store connection feature output signals.
        +     * Filled only when data stores are involved in serving the query and
        +     * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +     * to true in the request.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignalsOrBuilder + getDataStoreConnectionSignalsOrBuilder() { + if (dataStoreConnectionSignalsBuilder_ != null) { + return dataStoreConnectionSignalsBuilder_.getMessageOrBuilder(); + } else { + return dataStoreConnectionSignals_ == null + ? com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.getDefaultInstance() + : dataStoreConnectionSignals_; + } + } + /** + * + * + *
        +     * Optional. Data store connection feature output signals.
        +     * Filled only when data stores are involved in serving the query and
        +     * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +     * to true in the request.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignalsOrBuilder> + getDataStoreConnectionSignalsFieldBuilder() { + if (dataStoreConnectionSignalsBuilder_ == null) { + dataStoreConnectionSignalsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.Builder, + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignalsOrBuilder>( + getDataStoreConnectionSignals(), getParentForChildren(), isClean()); + dataStoreConnectionSignals_ = null; + } + return dataStoreConnectionSignalsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java index 34a85f00fc47..c020faea0f46 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java @@ -824,7 +824,7 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=956 + * google/cloud/dialogflow/cx/v3/session.proto;l=964 * @return Whether the intent field is set. */ @java.lang.Deprecated @@ -844,7 +844,7 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=956 + * google/cloud/dialogflow/cx/v3/session.proto;l=964 * @return The intent. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=967 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=975 * @return The intentDetectionConfidence. */ @java.lang.Deprecated @@ -1117,5 +1117,56 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr */ boolean getAllowAnswerFeedback(); + /** + * + * + *
        +   * Optional. Data store connection feature output signals.
        +   * Filled only when data stores are involved in serving the query and
        +   * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +   * to true in the request.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStoreConnectionSignals field is set. + */ + boolean hasDataStoreConnectionSignals(); + /** + * + * + *
        +   * Optional. Data store connection feature output signals.
        +   * Filled only when data stores are involved in serving the query and
        +   * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +   * to true in the request.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreConnectionSignals. + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals getDataStoreConnectionSignals(); + /** + * + * + *
        +   * Optional. Data store connection feature output signals.
        +   * Filled only when data stores are involved in serving the query and
        +   * DetectIntentRequest.populate data_store_connection_quality_signals is set
        +   * to true in the request.
        +   * 
        + * + * + * .google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignalsOrBuilder + getDataStoreConnectionSignalsOrBuilder(); + com.google.cloud.dialogflow.cx.v3.QueryResult.QueryCase getQueryCase(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java index a42e4bc08d9e..88e638f9c35a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java @@ -703,6 +703,8 @@ public interface AudioExportSettingsOrBuilder * *
              * Enable audio redaction if it is true.
        +     * Note that this only redacts end-user audio data;
        +     * Synthesised audio from the virtual agent is not redacted.
              * 
        * * bool enable_audio_redaction = 3; @@ -742,6 +744,20 @@ public interface AudioExportSettingsOrBuilder */ com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat getAudioFormat(); + + /** + * + * + *
        +     * Whether to store TTS audio. By default, TTS audio from the virtual agent
        +     * is not exported.
        +     * 
        + * + * bool store_tts_audio = 6; + * + * @return The storeTtsAudio. + */ + boolean getStoreTtsAudio(); } /** * @@ -1090,6 +1106,8 @@ public com.google.protobuf.ByteString getAudioExportPatternBytes() { * *
              * Enable audio redaction if it is true.
        +     * Note that this only redacts end-user audio data;
        +     * Synthesised audio from the virtual agent is not redacted.
              * 
        * * bool enable_audio_redaction = 3; @@ -1147,6 +1165,25 @@ public int getAudioFormatValue() { : result; } + public static final int STORE_TTS_AUDIO_FIELD_NUMBER = 6; + private boolean storeTtsAudio_ = false; + /** + * + * + *
        +     * Whether to store TTS audio. By default, TTS audio from the virtual agent
        +     * is not exported.
        +     * 
        + * + * bool store_tts_audio = 6; + * + * @return The storeTtsAudio. + */ + @java.lang.Override + public boolean getStoreTtsAudio() { + return storeTtsAudio_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1176,6 +1213,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(4, audioFormat_); } + if (storeTtsAudio_ != false) { + output.writeBool(6, storeTtsAudio_); + } getUnknownFields().writeTo(output); } @@ -1200,6 +1240,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, audioFormat_); } + if (storeTtsAudio_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, storeTtsAudio_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1221,6 +1264,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAudioExportPattern().equals(other.getAudioExportPattern())) return false; if (getEnableAudioRedaction() != other.getEnableAudioRedaction()) return false; if (audioFormat_ != other.audioFormat_) return false; + if (getStoreTtsAudio() != other.getStoreTtsAudio()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1240,6 +1284,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAudioRedaction()); hash = (37 * hash) + AUDIO_FORMAT_FIELD_NUMBER; hash = (53 * hash) + audioFormat_; + hash = (37 * hash) + STORE_TTS_AUDIO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStoreTtsAudio()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1389,6 +1435,7 @@ public Builder clear() { audioExportPattern_ = ""; enableAudioRedaction_ = false; audioFormat_ = 0; + storeTtsAudio_ = false; return this; } @@ -1441,6 +1488,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000008) != 0)) { result.audioFormat_ = audioFormat_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.storeTtsAudio_ = storeTtsAudio_; + } } @java.lang.Override @@ -1511,6 +1561,9 @@ public Builder mergeFrom( if (other.audioFormat_ != 0) { setAudioFormatValue(other.getAudioFormatValue()); } + if (other.getStoreTtsAudio() != false) { + setStoreTtsAudio(other.getStoreTtsAudio()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1561,6 +1614,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 48: + { + storeTtsAudio_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1818,6 +1877,8 @@ public Builder setAudioExportPatternBytes(com.google.protobuf.ByteString value) * *
                * Enable audio redaction if it is true.
        +       * Note that this only redacts end-user audio data;
        +       * Synthesised audio from the virtual agent is not redacted.
                * 
        * * bool enable_audio_redaction = 3; @@ -1833,6 +1894,8 @@ public boolean getEnableAudioRedaction() { * *
                * Enable audio redaction if it is true.
        +       * Note that this only redacts end-user audio data;
        +       * Synthesised audio from the virtual agent is not redacted.
                * 
        * * bool enable_audio_redaction = 3; @@ -1852,6 +1915,8 @@ public Builder setEnableAudioRedaction(boolean value) { * *
                * Enable audio redaction if it is true.
        +       * Note that this only redacts end-user audio data;
        +       * Synthesised audio from the virtual agent is not redacted.
                * 
        * * bool enable_audio_redaction = 3; @@ -1977,6 +2042,62 @@ public Builder clearAudioFormat() { return this; } + private boolean storeTtsAudio_; + /** + * + * + *
        +       * Whether to store TTS audio. By default, TTS audio from the virtual agent
        +       * is not exported.
        +       * 
        + * + * bool store_tts_audio = 6; + * + * @return The storeTtsAudio. + */ + @java.lang.Override + public boolean getStoreTtsAudio() { + return storeTtsAudio_; + } + /** + * + * + *
        +       * Whether to store TTS audio. By default, TTS audio from the virtual agent
        +       * is not exported.
        +       * 
        + * + * bool store_tts_audio = 6; + * + * @param value The storeTtsAudio to set. + * @return This builder for chaining. + */ + public Builder setStoreTtsAudio(boolean value) { + + storeTtsAudio_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
        +       * Whether to store TTS audio. By default, TTS audio from the virtual agent
        +       * is not exported.
        +       * 
        + * + * bool store_tts_audio = 6; + * + * @return This builder for chaining. + */ + public Builder clearStoreTtsAudio() { + bitField0_ = (bitField0_ & ~0x00000010); + storeTtsAudio_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3042,6 +3163,9 @@ public com.google.protobuf.ByteString getDeidentifyTemplateBytes() { * for Agent Assist traffic), higher value will be ignored and use default. * Setting a value higher than that has no effect. A missing value or * setting to 0 also means we use default TTL. + * When data retention configuration is changed, it only applies to the data + * created after the change; the TTL of existing data created before the + * change stays intact. * * * int32 retention_window_days = 6; @@ -3061,6 +3185,9 @@ public boolean hasRetentionWindowDays() { * for Agent Assist traffic), higher value will be ignored and use default. * Setting a value higher than that has no effect. A missing value or * setting to 0 also means we use default TTL. + * When data retention configuration is changed, it only applies to the data + * created after the change; the TTL of existing data created before the + * change stays intact. * * * int32 retention_window_days = 6; @@ -4997,6 +5124,9 @@ public Builder setDeidentifyTemplateBytes(com.google.protobuf.ByteString value) * for Agent Assist traffic), higher value will be ignored and use default. * Setting a value higher than that has no effect. A missing value or * setting to 0 also means we use default TTL. + * When data retention configuration is changed, it only applies to the data + * created after the change; the TTL of existing data created before the + * change stays intact. * * * int32 retention_window_days = 6; @@ -5015,6 +5145,9 @@ public boolean hasRetentionWindowDays() { * for Agent Assist traffic), higher value will be ignored and use default. * Setting a value higher than that has no effect. A missing value or * setting to 0 also means we use default TTL. + * When data retention configuration is changed, it only applies to the data + * created after the change; the TTL of existing data created before the + * change stays intact. * * * int32 retention_window_days = 6; @@ -5036,6 +5169,9 @@ public int getRetentionWindowDays() { * for Agent Assist traffic), higher value will be ignored and use default. * Setting a value higher than that has no effect. A missing value or * setting to 0 also means we use default TTL. + * When data retention configuration is changed, it only applies to the data + * created after the change; the TTL of existing data created before the + * change stays intact. * * * int32 retention_window_days = 6; @@ -5059,6 +5195,9 @@ public Builder setRetentionWindowDays(int value) { * for Agent Assist traffic), higher value will be ignored and use default. * Setting a value higher than that has no effect. A missing value or * setting to 0 also means we use default TTL. + * When data retention configuration is changed, it only applies to the data + * created after the change; the TTL of existing data created before the + * change stays intact. * * * int32 retention_window_days = 6; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java index c8ee5037c061..9512d944e6a5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java @@ -269,6 +269,9 @@ public interface SecuritySettingsOrBuilder * for Agent Assist traffic), higher value will be ignored and use default. * Setting a value higher than that has no effect. A missing value or * setting to 0 also means we use default TTL. + * When data retention configuration is changed, it only applies to the data + * created after the change; the TTL of existing data created before the + * change stays intact. * * * int32 retention_window_days = 6; @@ -285,6 +288,9 @@ public interface SecuritySettingsOrBuilder * for Agent Assist traffic), higher value will be ignored and use default. * Setting a value higher than that has no effect. A missing value or * setting to 0 also means we use default TTL. + * When data retention configuration is changed, it only applies to the data + * created after the change; the TTL of existing data created before the + * change stays intact. * * * int32 retention_window_days = 6; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java index 35a6a65187ca..00caa8bb607d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java @@ -100,7 +100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v3.SecuritySettingsB\003\340A\002\"a\n\035DeleteSecur" + "itySettingsRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A," + "\n*dialogflow.googleapis.com/SecuritySett" - + "ings\"\316\014\n\020SecuritySettings\022\014\n\004name\030\001 \001(\t\022" + + "ings\"\347\014\n\020SecuritySettings\022\014\n\004name\030\001 \001(\t\022" + "\031\n\014display_name\030\002 \001(\tB\003\340A\002\022]\n\022redaction_" + "strategy\030\003 \001(\0162A.google.cloud.dialogflow" + ".cx.v3.SecuritySettings.RedactionStrateg" @@ -120,74 +120,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ySettings.AudioExportSettings\022h\n\030insight" + "s_export_settings\030\r \001(\0132F.google.cloud.d" + "ialogflow.cx.v3.SecuritySettings.Insight" - + "sExportSettings\032\230\002\n\023AudioExportSettings\022" + + "sExportSettings\032\261\002\n\023AudioExportSettings\022" + "\022\n\ngcs_bucket\030\001 \001(\t\022\034\n\024audio_export_patt" + "ern\030\002 \001(\t\022\036\n\026enable_audio_redaction\030\003 \001(" + "\010\022e\n\014audio_format\030\004 \001(\0162O.google.cloud.d" + "ialogflow.cx.v3.SecuritySettings.AudioEx" - + "portSettings.AudioFormat\"H\n\013AudioFormat\022" - + "\034\n\030AUDIO_FORMAT_UNSPECIFIED\020\000\022\t\n\005MULAW\020\001" - + "\022\007\n\003MP3\020\002\022\007\n\003OGG\020\003\0328\n\026InsightsExportSett" - + "ings\022\036\n\026enable_insights_export\030\001 \001(\010\"P\n\021" - + "RedactionStrategy\022\"\n\036REDACTION_STRATEGY_" - + "UNSPECIFIED\020\000\022\027\n\023REDACT_WITH_SERVICE\020\001\"J" - + "\n\016RedactionScope\022\037\n\033REDACTION_SCOPE_UNSP" - + "ECIFIED\020\000\022\027\n\023REDACT_DISK_STORAGE\020\002\"V\n\021Re" - + "tentionStrategy\022\"\n\036RETENTION_STRATEGY_UN" - + "SPECIFIED\020\000\022\035\n\031REMOVE_AFTER_CONVERSATION" - + "\020\001\"H\n\rPurgeDataType\022\037\n\033PURGE_DATA_TYPE_U" - + "NSPECIFIED\020\000\022\026\n\022DIALOGFLOW_HISTORY\020\001:}\352A" - + "z\n*dialogflow.googleapis.com/SecuritySet" - + "tings\022Lprojects/{project}/locations/{loc" - + "ation}/securitySettings/{security_settin" - + "gs}B\020\n\016data_retention2\357\t\n\027SecuritySettin" - + "gsService\022\363\001\n\026CreateSecuritySettings\022<.g" - + "oogle.cloud.dialogflow.cx.v3.CreateSecur" - + "itySettingsRequest\032/.google.cloud.dialog" - + "flow.cx.v3.SecuritySettings\"j\332A\030parent,s" - + "ecurity_settings\202\323\344\223\002I\"4/v3/{parent=proj" - + "ects/*/locations/*}/securitySettings:\021se" - + "curity_settings\022\306\001\n\023GetSecuritySettings\022" - + "9.google.cloud.dialogflow.cx.v3.GetSecur" - + "itySettingsRequest\032/.google.cloud.dialog" - + "flow.cx.v3.SecuritySettings\"C\332A\004name\202\323\344\223" - + "\0026\0224/v3/{name=projects/*/locations/*/sec" - + "uritySettings/*}\022\213\002\n\026UpdateSecuritySetti" - + "ngs\022<.google.cloud.dialogflow.cx.v3.Upda" - + "teSecuritySettingsRequest\032/.google.cloud" - + ".dialogflow.cx.v3.SecuritySettings\"\201\001\332A\035" - + "security_settings,update_mask\202\323\344\223\002[2F/v3" - + "/{security_settings.name=projects/*/loca" - + "tions/*/securitySettings/*}:\021security_se" - + "ttings\022\326\001\n\024ListSecuritySettings\022:.google" - + ".cloud.dialogflow.cx.v3.ListSecuritySett" - + "ingsRequest\032;.google.cloud.dialogflow.cx" - + ".v3.ListSecuritySettingsResponse\"E\332A\006par" - + "ent\202\323\344\223\0026\0224/v3/{parent=projects/*/locati" - + "ons/*}/securitySettings\022\263\001\n\026DeleteSecuri" - + "tySettings\022<.google.cloud.dialogflow.cx." - + "v3.DeleteSecuritySettingsRequest\032\026.googl" - + "e.protobuf.Empty\"C\332A\004name\202\323\344\223\0026*4/v3/{na" - + "me=projects/*/locations/*/securitySettin" - + "gs/*}\032x\312A\031dialogflow.googleapis.com\322AYht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form,https://www.googleapis.com/auth/dia" - + "logflowB\342\004\n!com.google.cloud.dialogflow." - + "cx.v3B\025SecuritySettingsProtoP\001Z1cloud.go" - + "ogle.com/go/dialogflow/cx/apiv3/cxpb;cxp" - + "b\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V" - + "3\352\002!Google::Cloud::Dialogflow::CX::V3\352A\310" - + "\001\n\"dlp.googleapis.com/InspectTemplate\022Uo" - + "rganizations/{organization}/locations/{l" - + "ocation}/inspectTemplates/{inspect_templ" - + "ate}\022Kprojects/{project}/locations/{loca" - + "tion}/inspectTemplates/{inspect_template" - + "}\352A\327\001\n%dlp.googleapis.com/DeidentifyTemp" - + "late\022[organizations/{organization}/locat" - + "ions/{location}/deidentifyTemplates/{dei" - + "dentify_template}\022Qprojects/{project}/lo" - + "cations/{location}/deidentifyTemplates/{" - + "deidentify_template}b\006proto3" + + "portSettings.AudioFormat\022\027\n\017store_tts_au" + + "dio\030\006 \001(\010\"H\n\013AudioFormat\022\034\n\030AUDIO_FORMAT" + + "_UNSPECIFIED\020\000\022\t\n\005MULAW\020\001\022\007\n\003MP3\020\002\022\007\n\003OG" + + "G\020\003\0328\n\026InsightsExportSettings\022\036\n\026enable_" + + "insights_export\030\001 \001(\010\"P\n\021RedactionStrate" + + "gy\022\"\n\036REDACTION_STRATEGY_UNSPECIFIED\020\000\022\027" + + "\n\023REDACT_WITH_SERVICE\020\001\"J\n\016RedactionScop" + + "e\022\037\n\033REDACTION_SCOPE_UNSPECIFIED\020\000\022\027\n\023RE" + + "DACT_DISK_STORAGE\020\002\"V\n\021RetentionStrategy" + + "\022\"\n\036RETENTION_STRATEGY_UNSPECIFIED\020\000\022\035\n\031" + + "REMOVE_AFTER_CONVERSATION\020\001\"H\n\rPurgeData" + + "Type\022\037\n\033PURGE_DATA_TYPE_UNSPECIFIED\020\000\022\026\n" + + "\022DIALOGFLOW_HISTORY\020\001:}\352Az\n*dialogflow.g" + + "oogleapis.com/SecuritySettings\022Lprojects" + + "/{project}/locations/{location}/security" + + "Settings/{security_settings}B\020\n\016data_ret" + + "ention2\357\t\n\027SecuritySettingsService\022\363\001\n\026C" + + "reateSecuritySettings\022<.google.cloud.dia" + + "logflow.cx.v3.CreateSecuritySettingsRequ" + + "est\032/.google.cloud.dialogflow.cx.v3.Secu" + + "ritySettings\"j\332A\030parent,security_setting" + + "s\202\323\344\223\002I\"4/v3/{parent=projects/*/location" + + "s/*}/securitySettings:\021security_settings" + + "\022\306\001\n\023GetSecuritySettings\0229.google.cloud." + + "dialogflow.cx.v3.GetSecuritySettingsRequ" + + "est\032/.google.cloud.dialogflow.cx.v3.Secu" + + "ritySettings\"C\332A\004name\202\323\344\223\0026\0224/v3/{name=p" + + "rojects/*/locations/*/securitySettings/*" + + "}\022\213\002\n\026UpdateSecuritySettings\022<.google.cl" + + "oud.dialogflow.cx.v3.UpdateSecuritySetti" + + "ngsRequest\032/.google.cloud.dialogflow.cx." + + "v3.SecuritySettings\"\201\001\332A\035security_settin" + + "gs,update_mask\202\323\344\223\002[2F/v3/{security_sett" + + "ings.name=projects/*/locations/*/securit" + + "ySettings/*}:\021security_settings\022\326\001\n\024List" + + "SecuritySettings\022:.google.cloud.dialogfl" + + "ow.cx.v3.ListSecuritySettingsRequest\032;.g" + + "oogle.cloud.dialogflow.cx.v3.ListSecurit" + + "ySettingsResponse\"E\332A\006parent\202\323\344\223\0026\0224/v3/" + + "{parent=projects/*/locations/*}/security" + + "Settings\022\263\001\n\026DeleteSecuritySettings\022<.go" + + "ogle.cloud.dialogflow.cx.v3.DeleteSecuri" + + "tySettingsRequest\032\026.google.protobuf.Empt" + + "y\"C\332A\004name\202\323\344\223\0026*4/v3/{name=projects/*/l" + + "ocations/*/securitySettings/*}\032x\312A\031dialo" + + "gflow.googleapis.com\322AYhttps://www.googl" + + "eapis.com/auth/cloud-platform,https://ww" + + "w.googleapis.com/auth/dialogflowB\342\004\n!com" + + ".google.cloud.dialogflow.cx.v3B\025Security" + + "SettingsProtoP\001Z1cloud.google.com/go/dia" + + "logflow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Goo" + + "gle.Cloud.Dialogflow.Cx.V3\352\002!Google::Clo" + + "ud::Dialogflow::CX::V3\352A\310\001\n\"dlp.googleap" + + "is.com/InspectTemplate\022Uorganizations/{o" + + "rganization}/locations/{location}/inspec" + + "tTemplates/{inspect_template}\022Kprojects/" + + "{project}/locations/{location}/inspectTe" + + "mplates/{inspect_template}\352A\327\001\n%dlp.goog" + + "leapis.com/DeidentifyTemplate\022[organizat" + + "ions/{organization}/locations/{location}" + + "/deidentifyTemplates/{deidentify_templat" + + "e}\022Qprojects/{project}/locations/{locati" + + "on}/deidentifyTemplates/{deidentify_temp" + + "late}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -275,7 +276,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_SecuritySettings_AudioExportSettings_descriptor, new java.lang.String[] { - "GcsBucket", "AudioExportPattern", "EnableAudioRedaction", "AudioFormat", + "GcsBucket", + "AudioExportPattern", + "EnableAudioRedaction", + "AudioFormat", + "StoreTtsAudio", }); internal_static_google_cloud_dialogflow_cx_v3_SecuritySettings_InsightsExportSettings_descriptor = internal_static_google_cloud_dialogflow_cx_v3_SecuritySettings_descriptor diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java index d467f38fc289..acc8d772a6a9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java @@ -160,273 +160,280 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "roto\032\031google/api/resource.proto\0325google/" + "cloud/dialogflow/cx/v3/advanced_settings" + ".proto\0320google/cloud/dialogflow/cx/v3/au" - + "dio_config.proto\032(google/cloud/dialogflo" - + "w/cx/v3/flow.proto\032*google/cloud/dialogf" - + "low/cx/v3/intent.proto\032(google/cloud/dia" - + "logflow/cx/v3/page.proto\0324google/cloud/d" - + "ialogflow/cx/v3/response_message.proto\0327" - + "google/cloud/dialogflow/cx/v3/session_en" - + "tity_type.proto\032\036google/protobuf/duratio" - + "n.proto\032 google/protobuf/field_mask.prot" - + "o\032\034google/protobuf/struct.proto\032\027google/" - + "rpc/status.proto\032\030google/type/latlng.pro" - + "to\"\324\002\n\016AnswerFeedback\022I\n\006rating\030\001 \001(\01624." - + "google.cloud.dialogflow.cx.v3.AnswerFeed" - + "back.RatingB\003\340A\001\022V\n\rrating_reason\030\002 \001(\0132" - + ":.google.cloud.dialogflow.cx.v3.AnswerFe" - + "edback.RatingReasonB\003\340A\001\022\032\n\rcustom_ratin" - + "g\030\003 \001(\tB\003\340A\001\032A\n\014RatingReason\022\032\n\rreason_l" - + "abels\030\003 \003(\tB\003\340A\001\022\025\n\010feedback\030\002 \001(\tB\003\340A\001\"" - + "@\n\006Rating\022\026\n\022RATING_UNSPECIFIED\020\000\022\r\n\tTHU" - + "MBS_UP\020\001\022\017\n\013THUMBS_DOWN\020\002\"\366\001\n\033SubmitAnsw" - + "erFeedbackRequest\022:\n\007session\030\001 \001(\tB)\340A\002\372" - + "A#\n!dialogflow.googleapis.com/Session\022\030\n" - + "\013response_id\030\002 \001(\tB\003\340A\002\022K\n\017answer_feedba" - + "ck\030\003 \001(\0132-.google.cloud.dialogflow.cx.v3" - + ".AnswerFeedbackB\003\340A\002\0224\n\013update_mask\030\004 \001(" - + "\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\253\002\n\023D" - + "etectIntentRequest\022:\n\007session\030\001 \001(\tB)\340A\002" - + "\372A#\n!dialogflow.googleapis.com/Session\022D" - + "\n\014query_params\030\002 \001(\0132..google.cloud.dial" - + "ogflow.cx.v3.QueryParameters\022C\n\013query_in" - + "put\030\003 \001(\0132).google.cloud.dialogflow.cx.v" - + "3.QueryInputB\003\340A\002\022M\n\023output_audio_config" - + "\030\004 \001(\01320.google.cloud.dialogflow.cx.v3.O" - + "utputAudioConfig\"\216\003\n\024DetectIntentRespons" - + "e\022\023\n\013response_id\030\001 \001(\t\022@\n\014query_result\030\002" - + " \001(\0132*.google.cloud.dialogflow.cx.v3.Que" - + "ryResult\022\024\n\014output_audio\030\004 \001(\014\022M\n\023output" - + "_audio_config\030\005 \001(\01320.google.cloud.dialo" - + "gflow.cx.v3.OutputAudioConfig\022W\n\rrespons" - + "e_type\030\006 \001(\0162@.google.cloud.dialogflow.c" - + "x.v3.DetectIntentResponse.ResponseType\022\032" - + "\n\022allow_cancellation\030\007 \001(\010\"E\n\014ResponseTy" - + "pe\022\035\n\031RESPONSE_TYPE_UNSPECIFIED\020\000\022\013\n\007PAR" - + "TIAL\020\001\022\t\n\005FINAL\020\002\"\361\002\n\034StreamingDetectInt" - + "entRequest\0227\n\007session\030\001 \001(\tB&\372A#\n!dialog" - + "flow.googleapis.com/Session\022D\n\014query_par" - + "ams\030\002 \001(\0132..google.cloud.dialogflow.cx.v" - + "3.QueryParameters\022C\n\013query_input\030\003 \001(\0132)" - + ".google.cloud.dialogflow.cx.v3.QueryInpu" - + "tB\003\340A\002\022M\n\023output_audio_config\030\004 \001(\01320.go" - + "ogle.cloud.dialogflow.cx.v3.OutputAudioC" - + "onfig\022\037\n\027enable_partial_response\030\005 \001(\010\022\035" - + "\n\025enable_debugging_info\030\010 \001(\010\"\260\007\n\036CloudC" - + "onversationDebuggingInfo\022\031\n\021audio_data_c" - + "hunks\030\001 \001(\005\0229\n\026result_end_time_offset\030\002 " - + "\001(\0132\031.google.protobuf.Duration\0227\n\024first_" - + "audio_duration\030\003 \001(\0132\031.google.protobuf.D" - + "uration\022\030\n\020single_utterance\030\005 \001(\010\022C\n spe" - + "ech_partial_results_end_times\030\006 \003(\0132\031.go" - + "ogle.protobuf.Duration\022A\n\036speech_final_r" - + "esults_end_times\030\007 \003(\0132\031.google.protobuf" - + ".Duration\022\031\n\021partial_responses\030\010 \001(\005\022,\n$" - + "speaker_id_passive_latency_ms_offset\030\t \001" - + "(\005\022\037\n\027bargein_event_triggered\030\n \001(\010\022\037\n\027s" - + "peech_single_utterance\030\013 \001(\010\022=\n\032dtmf_par" - + "tial_results_times\030\014 \003(\0132\031.google.protob" - + "uf.Duration\022;\n\030dtmf_final_results_times\030" - + "\r \003(\0132\031.google.protobuf.Duration\022C\n sing" - + "le_utterance_end_time_offset\030\016 \001(\0132\031.goo" - + "gle.protobuf.Duration\0224\n\021no_speech_timeo" - + "ut\030\017 \001(\0132\031.google.protobuf.Duration\0226\n\023e" - + "ndpointing_timeout\030\023 \001(\0132\031.google.protob" - + "uf.Duration\022\025\n\ris_input_text\030\020 \001(\010\022@\n\035cl" - + "ient_half_close_time_offset\030\021 \001(\0132\031.goog" - + "le.protobuf.Duration\022J\n\'client_half_clos" - + "e_streaming_time_offset\030\022 \001(\0132\031.google.p" - + "rotobuf.Duration\"\262\002\n\035StreamingDetectInte" - + "ntResponse\022W\n\022recognition_result\030\001 \001(\01329" - + ".google.cloud.dialogflow.cx.v3.Streaming" - + "RecognitionResultH\000\022U\n\026detect_intent_res" - + "ponse\030\002 \001(\01323.google.cloud.dialogflow.cx" - + ".v3.DetectIntentResponseH\000\022U\n\016debugging_" - + "info\030\004 \001(\0132=.google.cloud.dialogflow.cx." - + "v3.CloudConversationDebuggingInfoB\n\n\010res" - + "ponse\"\266\003\n\032StreamingRecognitionResult\022[\n\014" - + "message_type\030\001 \001(\0162E.google.cloud.dialog" - + "flow.cx.v3.StreamingRecognitionResult.Me" - + "ssageType\022\022\n\ntranscript\030\002 \001(\t\022\020\n\010is_fina" - + "l\030\003 \001(\010\022\022\n\nconfidence\030\004 \001(\002\022\021\n\tstability" - + "\030\006 \001(\002\022G\n\020speech_word_info\030\007 \003(\0132-.googl" - + "e.cloud.dialogflow.cx.v3.SpeechWordInfo\022" - + "4\n\021speech_end_offset\030\010 \001(\0132\031.google.prot" - + "obuf.Duration\022\025\n\rlanguage_code\030\n \001(\t\"X\n\013" - + "MessageType\022\034\n\030MESSAGE_TYPE_UNSPECIFIED\020" - + "\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027END_OF_SINGLE_UTTER" - + "ANCE\020\002\"\213\006\n\017QueryParameters\022\021\n\ttime_zone\030" - + "\001 \001(\t\022)\n\014geo_location\030\002 \001(\0132\023.google.typ" - + "e.LatLng\022N\n\024session_entity_types\030\003 \003(\01320" - + ".google.cloud.dialogflow.cx.v3.SessionEn" - + "tityType\022(\n\007payload\030\004 \001(\0132\027.google.proto" - + "buf.Struct\022+\n\nparameters\030\005 \001(\0132\027.google." - + "protobuf.Struct\0229\n\014current_page\030\006 \001(\tB#\372" - + "A \n\036dialogflow.googleapis.com/Page\022\027\n\017di" - + "sable_webhook\030\007 \001(\010\022$\n\034analyze_query_tex" - + "t_sentiment\030\010 \001(\010\022[\n\017webhook_headers\030\n \003" - + "(\0132B.google.cloud.dialogflow.cx.v3.Query" - + "Parameters.WebhookHeadersEntry\022=\n\rflow_v" - + "ersions\030\016 \003(\tB&\372A#\n!dialogflow.googleapi" - + "s.com/Version\022\017\n\007channel\030\017 \001(\t\0223\n\013sessio" - + "n_ttl\030\020 \001(\0132\031.google.protobuf.DurationB\003" - + "\340A\001\0227\n\021end_user_metadata\030\022 \001(\0132\027.google." - + "protobuf.StructB\003\340A\001\022G\n\rsearch_config\030\024 " - + "\001(\0132+.google.cloud.dialogflow.cx.v3.Sear" - + "chConfigB\003\340A\001\0325\n\023WebhookHeadersEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\232\001\n\014SearchC" - + "onfig\022C\n\013boost_specs\030\001 \003(\0132).google.clou" - + "d.dialogflow.cx.v3.BoostSpecsB\003\340A\001\022E\n\014fi" - + "lter_specs\030\002 \003(\0132*.google.cloud.dialogfl" - + "ow.cx.v3.FilterSpecsB\003\340A\001\"\256\001\n\tBoostSpec\022" - + "_\n\025condition_boost_specs\030\001 \003(\0132;.google." - + "cloud.dialogflow.cx.v3.BoostSpec.Conditi" - + "onBoostSpecB\003\340A\001\032@\n\022ConditionBoostSpec\022\026" - + "\n\tcondition\030\001 \001(\tB\003\340A\001\022\022\n\005boost\030\002 \001(\002B\003\340" - + "A\001\"\220\001\n\nBoostSpecs\022E\n\013data_stores\030\001 \003(\tB0" - + "\340A\001\372A*\n(discoveryengine.googleapis.com/D" - + "ataStore\022;\n\004spec\030\002 \003(\0132(.google.cloud.di" - + "alogflow.cx.v3.BoostSpecB\003\340A\001\"i\n\013FilterS" - + "pecs\022E\n\013data_stores\030\001 \003(\tB0\340A\001\372A*\n(disco" - + "veryengine.googleapis.com/DataStore\022\023\n\006f" - + "ilter\030\002 \001(\tB\003\340A\001\"\333\002\n\nQueryInput\0228\n\004text\030" - + "\002 \001(\0132(.google.cloud.dialogflow.cx.v3.Te" - + "xtInputH\000\022<\n\006intent\030\003 \001(\0132*.google.cloud" - + ".dialogflow.cx.v3.IntentInputH\000\022:\n\005audio" - + "\030\005 \001(\0132).google.cloud.dialogflow.cx.v3.A" - + "udioInputH\000\022:\n\005event\030\006 \001(\0132).google.clou" - + "d.dialogflow.cx.v3.EventInputH\000\0228\n\004dtmf\030" - + "\007 \001(\0132(.google.cloud.dialogflow.cx.v3.Dt" - + "mfInputH\000\022\032\n\rlanguage_code\030\004 \001(\tB\003\340A\002B\007\n" - + "\005input\"\307\010\n\013QueryResult\022\016\n\004text\030\001 \001(\tH\000\022?" - + "\n\016trigger_intent\030\013 \001(\tB%\372A\"\n dialogflow." - + "googleapis.com/IntentH\000\022\024\n\ntranscript\030\014 " - + "\001(\tH\000\022\027\n\rtrigger_event\030\016 \001(\tH\000\0228\n\004dtmf\030\027" - + " \001(\0132(.google.cloud.dialogflow.cx.v3.Dtm" - + "fInputH\000\022\025\n\rlanguage_code\030\002 \001(\t\022+\n\nparam" - + "eters\030\003 \001(\0132\027.google.protobuf.Struct\022I\n\021" - + "response_messages\030\004 \003(\0132..google.cloud.d" - + "ialogflow.cx.v3.ResponseMessage\022\023\n\013webho" - + "ok_ids\030\031 \003(\t\022\035\n\025webhook_display_names\030\032 " - + "\003(\t\0224\n\021webhook_latencies\030\033 \003(\0132\031.google." - + "protobuf.Duration\022\024\n\014webhook_tags\030\035 \003(\t\022" - + ",\n\020webhook_statuses\030\r \003(\0132\022.google.rpc.S" - + "tatus\0221\n\020webhook_payloads\030\006 \003(\0132\027.google" - + ".protobuf.Struct\0229\n\014current_page\030\007 \001(\0132#" - + ".google.cloud.dialogflow.cx.v3.Page\0229\n\014c" - + "urrent_flow\030\037 \001(\0132#.google.cloud.dialogf" - + "low.cx.v3.Flow\0229\n\006intent\030\010 \001(\0132%.google." - + "cloud.dialogflow.cx.v3.IntentB\002\030\001\022\'\n\033int" - + "ent_detection_confidence\030\t \001(\002B\002\030\001\0223\n\005ma" - + "tch\030\017 \001(\0132$.google.cloud.dialogflow.cx.v" - + "3.Match\0220\n\017diagnostic_info\030\n \001(\0132\027.googl" - + "e.protobuf.Struct\022Y\n\031sentiment_analysis_" - + "result\030\021 \001(\01326.google.cloud.dialogflow.c" - + "x.v3.SentimentAnalysisResult\022J\n\021advanced" - + "_settings\030\025 \001(\0132/.google.cloud.dialogflo" - + "w.cx.v3.AdvancedSettings\022\035\n\025allow_answer" - + "_feedback\030 \001(\010B\007\n\005query\"\036\n\tTextInput\022\021\n" - + "\004text\030\001 \001(\tB\003\340A\002\"G\n\013IntentInput\0228\n\006inten" - + "t\030\001 \001(\tB(\340A\002\372A\"\n dialogflow.googleapis.c" - + "om/Intent\"a\n\nAudioInput\022D\n\006config\030\001 \001(\0132" - + "/.google.cloud.dialogflow.cx.v3.InputAud" - + "ioConfigB\003\340A\002\022\r\n\005audio\030\002 \001(\014\"\033\n\nEventInp" - + "ut\022\r\n\005event\030\001 \001(\t\"1\n\tDtmfInput\022\016\n\006digits" - + "\030\001 \001(\t\022\024\n\014finish_digit\030\002 \001(\t\"\361\002\n\005Match\0225" - + "\n\006intent\030\001 \001(\0132%.google.cloud.dialogflow" - + ".cx.v3.Intent\022\r\n\005event\030\006 \001(\t\022+\n\nparamete" - + "rs\030\002 \001(\0132\027.google.protobuf.Struct\022\026\n\016res" - + "olved_input\030\003 \001(\t\022B\n\nmatch_type\030\004 \001(\0162.." - + "google.cloud.dialogflow.cx.v3.Match.Matc" - + "hType\022\022\n\nconfidence\030\005 \001(\002\"\204\001\n\tMatchType\022" - + "\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\n\n\006INTENT\020\001\022" - + "\021\n\rDIRECT_INTENT\020\002\022\025\n\021PARAMETER_FILLING\020" - + "\003\022\014\n\010NO_MATCH\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVENT\020\006" - + "\"\376\001\n\022MatchIntentRequest\022:\n\007session\030\001 \001(\t" - + "B)\340A\002\372A#\n!dialogflow.googleapis.com/Sess" - + "ion\022D\n\014query_params\030\002 \001(\0132..google.cloud" - + ".dialogflow.cx.v3.QueryParameters\022C\n\013que" - + "ry_input\030\003 \001(\0132).google.cloud.dialogflow" - + ".cx.v3.QueryInputB\003\340A\002\022!\n\031persist_parame" - + "ter_changes\030\005 \001(\010\"\220\002\n\023MatchIntentRespons" - + "e\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trigger_intent\030\002 \001(" - + "\tB%\372A\"\n dialogflow.googleapis.com/Intent" - + "H\000\022\024\n\ntranscript\030\003 \001(\tH\000\022\027\n\rtrigger_even" - + "t\030\006 \001(\tH\000\0225\n\007matches\030\004 \003(\0132$.google.clou" - + "d.dialogflow.cx.v3.Match\0229\n\014current_page" - + "\030\005 \001(\0132#.google.cloud.dialogflow.cx.v3.P" - + "ageB\007\n\005query\"\353\001\n\024FulfillIntentRequest\022O\n" - + "\024match_intent_request\030\001 \001(\01321.google.clo" - + "ud.dialogflow.cx.v3.MatchIntentRequest\0223" - + "\n\005match\030\002 \001(\0132$.google.cloud.dialogflow." - + "cx.v3.Match\022M\n\023output_audio_config\030\003 \001(\013" - + "20.google.cloud.dialogflow.cx.v3.OutputA" - + "udioConfig\"\323\001\n\025FulfillIntentResponse\022\023\n\013" - + "response_id\030\001 \001(\t\022@\n\014query_result\030\002 \001(\0132" - + "*.google.cloud.dialogflow.cx.v3.QueryRes" - + "ult\022\024\n\014output_audio\030\003 \001(\014\022M\n\023output_audi" + + "dio_config.proto\0329google/cloud/dialogflo" + + "w/cx/v3/data_store_connection.proto\032(goo" + + "gle/cloud/dialogflow/cx/v3/flow.proto\032*g" + + "oogle/cloud/dialogflow/cx/v3/intent.prot" + + "o\032(google/cloud/dialogflow/cx/v3/page.pr" + + "oto\0324google/cloud/dialogflow/cx/v3/respo" + + "nse_message.proto\0327google/cloud/dialogfl" + + "ow/cx/v3/session_entity_type.proto\032\036goog" + + "le/protobuf/duration.proto\032 google/proto" + + "buf/field_mask.proto\032\034google/protobuf/st" + + "ruct.proto\032\027google/rpc/status.proto\032\030goo" + + "gle/type/latlng.proto\"\324\002\n\016AnswerFeedback" + + "\022I\n\006rating\030\001 \001(\01624.google.cloud.dialogfl" + + "ow.cx.v3.AnswerFeedback.RatingB\003\340A\001\022V\n\rr" + + "ating_reason\030\002 \001(\0132:.google.cloud.dialog" + + "flow.cx.v3.AnswerFeedback.RatingReasonB\003" + + "\340A\001\022\032\n\rcustom_rating\030\003 \001(\tB\003\340A\001\032A\n\014Ratin" + + "gReason\022\032\n\rreason_labels\030\003 \003(\tB\003\340A\001\022\025\n\010f" + + "eedback\030\002 \001(\tB\003\340A\001\"@\n\006Rating\022\026\n\022RATING_U" + + "NSPECIFIED\020\000\022\r\n\tTHUMBS_UP\020\001\022\017\n\013THUMBS_DO" + + "WN\020\002\"\366\001\n\033SubmitAnswerFeedbackRequest\022:\n\007" + + "session\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.google" + + "apis.com/Session\022\030\n\013response_id\030\002 \001(\tB\003\340" + + "A\002\022K\n\017answer_feedback\030\003 \001(\0132-.google.clo" + + "ud.dialogflow.cx.v3.AnswerFeedbackB\003\340A\002\022" + + "4\n\013update_mask\030\004 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\003\340A\001\"\253\002\n\023DetectIntentRequest\022:\n" + + "\007session\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googl" + + "eapis.com/Session\022D\n\014query_params\030\002 \001(\0132" + + "..google.cloud.dialogflow.cx.v3.QueryPar" + + "ameters\022C\n\013query_input\030\003 \001(\0132).google.cl" + + "oud.dialogflow.cx.v3.QueryInputB\003\340A\002\022M\n\023" + + "output_audio_config\030\004 \001(\01320.google.cloud" + + ".dialogflow.cx.v3.OutputAudioConfig\"\216\003\n\024" + + "DetectIntentResponse\022\023\n\013response_id\030\001 \001(" + + "\t\022@\n\014query_result\030\002 \001(\0132*.google.cloud.d" + + "ialogflow.cx.v3.QueryResult\022\024\n\014output_au" + + "dio\030\004 \001(\014\022M\n\023output_audio_config\030\005 \001(\01320" + + ".google.cloud.dialogflow.cx.v3.OutputAud" + + "ioConfig\022W\n\rresponse_type\030\006 \001(\0162@.google" + + ".cloud.dialogflow.cx.v3.DetectIntentResp" + + "onse.ResponseType\022\032\n\022allow_cancellation\030" + + "\007 \001(\010\"E\n\014ResponseType\022\035\n\031RESPONSE_TYPE_U" + + "NSPECIFIED\020\000\022\013\n\007PARTIAL\020\001\022\t\n\005FINAL\020\002\"\361\002\n" + + "\034StreamingDetectIntentRequest\0227\n\007session" + + "\030\001 \001(\tB&\372A#\n!dialogflow.googleapis.com/S" + + "ession\022D\n\014query_params\030\002 \001(\0132..google.cl" + + "oud.dialogflow.cx.v3.QueryParameters\022C\n\013" + + "query_input\030\003 \001(\0132).google.cloud.dialogf" + + "low.cx.v3.QueryInputB\003\340A\002\022M\n\023output_audi" + "o_config\030\004 \001(\01320.google.cloud.dialogflow" - + ".cx.v3.OutputAudioConfig\";\n\027SentimentAna" - + "lysisResult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030" - + "\002 \001(\0022\372\r\n\010Sessions\022\246\002\n\014DetectIntent\0222.go" - + "ogle.cloud.dialogflow.cx.v3.DetectIntent" - + "Request\0323.google.cloud.dialogflow.cx.v3." - + "DetectIntentResponse\"\254\001\202\323\344\223\002\245\001\"E/v3/{ses" - + "sion=projects/*/locations/*/agents/*/ses" - + "sions/*}:detectIntent:\001*ZY\"T/v3/{session" - + "=projects/*/locations/*/agents/*/environ" - + "ments/*/sessions/*}:detectIntent:\001*\022\325\002\n\033" - + "ServerStreamingDetectIntent\0222.google.clo" - + "ud.dialogflow.cx.v3.DetectIntentRequest\032" - + "3.google.cloud.dialogflow.cx.v3.DetectIn" - + "tentResponse\"\312\001\202\323\344\223\002\303\001\"T/v3/{session=pro" - + "jects/*/locations/*/agents/*/sessions/*}" - + ":serverStreamingDetectIntent:\001*Zh\"c/v3/{" - + "session=projects/*/locations/*/agents/*/" - + "environments/*/sessions/*}:serverStreami" - + "ngDetectIntent:\001*0\001\022\230\001\n\025StreamingDetectI" - + "ntent\022;.google.cloud.dialogflow.cx.v3.St" - + "reamingDetectIntentRequest\032<.google.clou" - + "d.dialogflow.cx.v3.StreamingDetectIntent" - + "Response\"\000(\0010\001\022\241\002\n\013MatchIntent\0221.google." - + "cloud.dialogflow.cx.v3.MatchIntentReques" - + "t\0322.google.cloud.dialogflow.cx.v3.MatchI" - + "ntentResponse\"\252\001\202\323\344\223\002\243\001\"D/v3/{session=pr" - + "ojects/*/locations/*/agents/*/sessions/*" - + "}:matchIntent:\001*ZX\"S/v3/{session=project" - + "s/*/locations/*/agents/*/environments/*/" - + "sessions/*}:matchIntent:\001*\022\325\002\n\rFulfillIn" - + "tent\0223.google.cloud.dialogflow.cx.v3.Ful" - + "fillIntentRequest\0324.google.cloud.dialogf" - + "low.cx.v3.FulfillIntentResponse\"\330\001\202\323\344\223\002\321" - + "\001\"[/v3/{match_intent_request.session=pro" - + "jects/*/locations/*/agents/*/sessions/*}" - + ":fulfillIntent:\001*Zo\"j/v3/{match_intent_r" - + "equest.session=projects/*/locations/*/ag" - + "ents/*/environments/*/sessions/*}:fulfil" - + "lIntent:\001*\022\333\001\n\024SubmitAnswerFeedback\022:.go" - + "ogle.cloud.dialogflow.cx.v3.SubmitAnswer" - + "FeedbackRequest\032-.google.cloud.dialogflo" - + "w.cx.v3.AnswerFeedback\"X\202\323\344\223\002R\"M/v3/{ses" - + "sion=projects/*/locations/*/agents/*/ses" - + "sions/*}:submitAnswerFeedback:\001*\032x\312A\031dia" - + "logflow.googleapis.com\322AYhttps://www.goo" - + "gleapis.com/auth/cloud-platform,https://" - + "www.googleapis.com/auth/dialogflowB\323\004\n!c" - + "om.google.cloud.dialogflow.cx.v3B\014Sessio" - + "nProtoP\001Z1cloud.google.com/go/dialogflow" - + "/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Clo" - + "ud.Dialogflow.Cx.V3\352\002!Google::Cloud::Dia" - + "logflow::CX::V3\352A\324\001\n!dialogflow.googleap" - + "is.com/Session\022Iprojects/{project}/locat" - + "ions/{location}/agents/{agent}/sessions/" - + "{session}\022dprojects/{project}/locations/" - + "{location}/agents/{agent}/environments/{" - + "environment}/sessions/{session}\352A\305\001\n(dis" - + "coveryengine.googleapis.com/DataStore\022?p" - + "rojects/{project}/locations/{location}/d" - + "ataStores/{data_store}\022Xprojects/{projec" - + "t}/locations/{location}/collections/{col" - + "lection}/dataStores/{data_store}b\006proto3" + + ".cx.v3.OutputAudioConfig\022\037\n\027enable_parti" + + "al_response\030\005 \001(\010\022\035\n\025enable_debugging_in" + + "fo\030\010 \001(\010\"\260\007\n\036CloudConversationDebuggingI" + + "nfo\022\031\n\021audio_data_chunks\030\001 \001(\005\0229\n\026result" + + "_end_time_offset\030\002 \001(\0132\031.google.protobuf" + + ".Duration\0227\n\024first_audio_duration\030\003 \001(\0132" + + "\031.google.protobuf.Duration\022\030\n\020single_utt" + + "erance\030\005 \001(\010\022C\n speech_partial_results_e" + + "nd_times\030\006 \003(\0132\031.google.protobuf.Duratio" + + "n\022A\n\036speech_final_results_end_times\030\007 \003(" + + "\0132\031.google.protobuf.Duration\022\031\n\021partial_" + + "responses\030\010 \001(\005\022,\n$speaker_id_passive_la" + + "tency_ms_offset\030\t \001(\005\022\037\n\027bargein_event_t" + + "riggered\030\n \001(\010\022\037\n\027speech_single_utteranc" + + "e\030\013 \001(\010\022=\n\032dtmf_partial_results_times\030\014 " + + "\003(\0132\031.google.protobuf.Duration\022;\n\030dtmf_f" + + "inal_results_times\030\r \003(\0132\031.google.protob" + + "uf.Duration\022C\n single_utterance_end_time" + + "_offset\030\016 \001(\0132\031.google.protobuf.Duration" + + "\0224\n\021no_speech_timeout\030\017 \001(\0132\031.google.pro" + + "tobuf.Duration\0226\n\023endpointing_timeout\030\023 " + + "\001(\0132\031.google.protobuf.Duration\022\025\n\ris_inp" + + "ut_text\030\020 \001(\010\022@\n\035client_half_close_time_" + + "offset\030\021 \001(\0132\031.google.protobuf.Duration\022" + + "J\n\'client_half_close_streaming_time_offs" + + "et\030\022 \001(\0132\031.google.protobuf.Duration\"\262\002\n\035" + + "StreamingDetectIntentResponse\022W\n\022recogni" + + "tion_result\030\001 \001(\01329.google.cloud.dialogf" + + "low.cx.v3.StreamingRecognitionResultH\000\022U" + + "\n\026detect_intent_response\030\002 \001(\01323.google." + + "cloud.dialogflow.cx.v3.DetectIntentRespo" + + "nseH\000\022U\n\016debugging_info\030\004 \001(\0132=.google.c" + + "loud.dialogflow.cx.v3.CloudConversationD" + + "ebuggingInfoB\n\n\010response\"\266\003\n\032StreamingRe" + + "cognitionResult\022[\n\014message_type\030\001 \001(\0162E." + + "google.cloud.dialogflow.cx.v3.StreamingR" + + "ecognitionResult.MessageType\022\022\n\ntranscri" + + "pt\030\002 \001(\t\022\020\n\010is_final\030\003 \001(\010\022\022\n\nconfidence" + + "\030\004 \001(\002\022\021\n\tstability\030\006 \001(\002\022G\n\020speech_word" + + "_info\030\007 \003(\0132-.google.cloud.dialogflow.cx" + + ".v3.SpeechWordInfo\0224\n\021speech_end_offset\030" + + "\010 \001(\0132\031.google.protobuf.Duration\022\025\n\rlang" + + "uage_code\030\n \001(\t\"X\n\013MessageType\022\034\n\030MESSAG" + + "E_TYPE_UNSPECIFIED\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027" + + "END_OF_SINGLE_UTTERANCE\020\002\"\300\006\n\017QueryParam" + + "eters\022\021\n\ttime_zone\030\001 \001(\t\022)\n\014geo_location" + + "\030\002 \001(\0132\023.google.type.LatLng\022N\n\024session_e" + + "ntity_types\030\003 \003(\01320.google.cloud.dialogf" + + "low.cx.v3.SessionEntityType\022(\n\007payload\030\004" + + " \001(\0132\027.google.protobuf.Struct\022+\n\nparamet" + + "ers\030\005 \001(\0132\027.google.protobuf.Struct\0229\n\014cu" + + "rrent_page\030\006 \001(\tB#\372A \n\036dialogflow.google" + + "apis.com/Page\022\027\n\017disable_webhook\030\007 \001(\010\022$" + + "\n\034analyze_query_text_sentiment\030\010 \001(\010\022[\n\017" + + "webhook_headers\030\n \003(\0132B.google.cloud.dia" + + "logflow.cx.v3.QueryParameters.WebhookHea" + + "dersEntry\022=\n\rflow_versions\030\016 \003(\tB&\372A#\n!d" + + "ialogflow.googleapis.com/Version\022\017\n\007chan" + + "nel\030\017 \001(\t\0223\n\013session_ttl\030\020 \001(\0132\031.google." + + "protobuf.DurationB\003\340A\001\0227\n\021end_user_metad" + + "ata\030\022 \001(\0132\027.google.protobuf.StructB\003\340A\001\022" + + "G\n\rsearch_config\030\024 \001(\0132+.google.cloud.di" + + "alogflow.cx.v3.SearchConfigB\003\340A\001\0223\n&popu" + + "late_data_store_connection_signals\030\031 \001(\010" + + "B\003\340A\001\0325\n\023WebhookHeadersEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\232\001\n\014SearchConfig\022C\n" + + "\013boost_specs\030\001 \003(\0132).google.cloud.dialog" + + "flow.cx.v3.BoostSpecsB\003\340A\001\022E\n\014filter_spe" + + "cs\030\002 \003(\0132*.google.cloud.dialogflow.cx.v3" + + ".FilterSpecsB\003\340A\001\"\256\001\n\tBoostSpec\022_\n\025condi" + + "tion_boost_specs\030\001 \003(\0132;.google.cloud.di" + + "alogflow.cx.v3.BoostSpec.ConditionBoostS" + + "pecB\003\340A\001\032@\n\022ConditionBoostSpec\022\026\n\tcondit" + + "ion\030\001 \001(\tB\003\340A\001\022\022\n\005boost\030\002 \001(\002B\003\340A\001\"\220\001\n\nB" + + "oostSpecs\022E\n\013data_stores\030\001 \003(\tB0\340A\001\372A*\n(" + + "discoveryengine.googleapis.com/DataStore" + + "\022;\n\004spec\030\002 \003(\0132(.google.cloud.dialogflow" + + ".cx.v3.BoostSpecB\003\340A\001\"i\n\013FilterSpecs\022E\n\013" + + "data_stores\030\001 \003(\tB0\340A\001\372A*\n(discoveryengi" + + "ne.googleapis.com/DataStore\022\023\n\006filter\030\002 " + + "\001(\tB\003\340A\001\"\333\002\n\nQueryInput\0228\n\004text\030\002 \001(\0132(." + + "google.cloud.dialogflow.cx.v3.TextInputH" + + "\000\022<\n\006intent\030\003 \001(\0132*.google.cloud.dialogf" + + "low.cx.v3.IntentInputH\000\022:\n\005audio\030\005 \001(\0132)" + + ".google.cloud.dialogflow.cx.v3.AudioInpu" + + "tH\000\022:\n\005event\030\006 \001(\0132).google.cloud.dialog" + + "flow.cx.v3.EventInputH\000\0228\n\004dtmf\030\007 \001(\0132(." + + "google.cloud.dialogflow.cx.v3.DtmfInputH" + + "\000\022\032\n\rlanguage_code\030\004 \001(\tB\003\340A\002B\007\n\005input\"\256" + + "\t\n\013QueryResult\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trigge" + + "r_intent\030\013 \001(\tB%\372A\"\n dialogflow.googleap" + + "is.com/IntentH\000\022\024\n\ntranscript\030\014 \001(\tH\000\022\027\n" + + "\rtrigger_event\030\016 \001(\tH\000\0228\n\004dtmf\030\027 \001(\0132(.g" + + "oogle.cloud.dialogflow.cx.v3.DtmfInputH\000" + + "\022\025\n\rlanguage_code\030\002 \001(\t\022+\n\nparameters\030\003 " + + "\001(\0132\027.google.protobuf.Struct\022I\n\021response" + + "_messages\030\004 \003(\0132..google.cloud.dialogflo" + + "w.cx.v3.ResponseMessage\022\023\n\013webhook_ids\030\031" + + " \003(\t\022\035\n\025webhook_display_names\030\032 \003(\t\0224\n\021w" + + "ebhook_latencies\030\033 \003(\0132\031.google.protobuf" + + ".Duration\022\024\n\014webhook_tags\030\035 \003(\t\022,\n\020webho" + + "ok_statuses\030\r \003(\0132\022.google.rpc.Status\0221\n" + + "\020webhook_payloads\030\006 \003(\0132\027.google.protobu" + + "f.Struct\0229\n\014current_page\030\007 \001(\0132#.google." + + "cloud.dialogflow.cx.v3.Page\0229\n\014current_f" + + "low\030\037 \001(\0132#.google.cloud.dialogflow.cx.v" + + "3.Flow\0229\n\006intent\030\010 \001(\0132%.google.cloud.di" + + "alogflow.cx.v3.IntentB\002\030\001\022\'\n\033intent_dete" + + "ction_confidence\030\t \001(\002B\002\030\001\0223\n\005match\030\017 \001(" + + "\0132$.google.cloud.dialogflow.cx.v3.Match\022" + + "0\n\017diagnostic_info\030\n \001(\0132\027.google.protob" + + "uf.Struct\022Y\n\031sentiment_analysis_result\030\021" + + " \001(\01326.google.cloud.dialogflow.cx.v3.Sen" + + "timentAnalysisResult\022J\n\021advanced_setting" + + "s\030\025 \001(\0132/.google.cloud.dialogflow.cx.v3." + + "AdvancedSettings\022\035\n\025allow_answer_feedbac" + + "k\030 \001(\010\022e\n\035data_store_connection_signals" + + "\030# \001(\01329.google.cloud.dialogflow.cx.v3.D" + + "ataStoreConnectionSignalsB\003\340A\001B\007\n\005query\"" + + "\036\n\tTextInput\022\021\n\004text\030\001 \001(\tB\003\340A\002\"G\n\013Inten" + + "tInput\0228\n\006intent\030\001 \001(\tB(\340A\002\372A\"\n dialogfl" + + "ow.googleapis.com/Intent\"a\n\nAudioInput\022D" + + "\n\006config\030\001 \001(\0132/.google.cloud.dialogflow" + + ".cx.v3.InputAudioConfigB\003\340A\002\022\r\n\005audio\030\002 " + + "\001(\014\"\033\n\nEventInput\022\r\n\005event\030\001 \001(\t\"1\n\tDtmf" + + "Input\022\016\n\006digits\030\001 \001(\t\022\024\n\014finish_digit\030\002 " + + "\001(\t\"\230\003\n\005Match\0225\n\006intent\030\001 \001(\0132%.google.c" + + "loud.dialogflow.cx.v3.Intent\022\r\n\005event\030\006 " + + "\001(\t\022+\n\nparameters\030\002 \001(\0132\027.google.protobu" + + "f.Struct\022\026\n\016resolved_input\030\003 \001(\t\022B\n\nmatc" + + "h_type\030\004 \001(\0162..google.cloud.dialogflow.c" + + "x.v3.Match.MatchType\022\022\n\nconfidence\030\005 \001(\002" + + "\"\253\001\n\tMatchType\022\032\n\026MATCH_TYPE_UNSPECIFIED" + + "\020\000\022\n\n\006INTENT\020\001\022\021\n\rDIRECT_INTENT\020\002\022\025\n\021PAR" + + "AMETER_FILLING\020\003\022\014\n\010NO_MATCH\020\004\022\014\n\010NO_INP" + + "UT\020\005\022\t\n\005EVENT\020\006\022\027\n\023KNOWLEDGE_CONNECTOR\020\010" + + "\022\014\n\010PLAYBOOK\020\t\"\376\001\n\022MatchIntentRequest\022:\n" + + "\007session\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googl" + + "eapis.com/Session\022D\n\014query_params\030\002 \001(\0132" + + "..google.cloud.dialogflow.cx.v3.QueryPar" + + "ameters\022C\n\013query_input\030\003 \001(\0132).google.cl" + + "oud.dialogflow.cx.v3.QueryInputB\003\340A\002\022!\n\031" + + "persist_parameter_changes\030\005 \001(\010\"\220\002\n\023Matc" + + "hIntentResponse\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trigg" + + "er_intent\030\002 \001(\tB%\372A\"\n dialogflow.googlea" + + "pis.com/IntentH\000\022\024\n\ntranscript\030\003 \001(\tH\000\022\027" + + "\n\rtrigger_event\030\006 \001(\tH\000\0225\n\007matches\030\004 \003(\013" + + "2$.google.cloud.dialogflow.cx.v3.Match\0229" + + "\n\014current_page\030\005 \001(\0132#.google.cloud.dial" + + "ogflow.cx.v3.PageB\007\n\005query\"\353\001\n\024FulfillIn" + + "tentRequest\022O\n\024match_intent_request\030\001 \001(" + + "\01321.google.cloud.dialogflow.cx.v3.MatchI" + + "ntentRequest\0223\n\005match\030\002 \001(\0132$.google.clo" + + "ud.dialogflow.cx.v3.Match\022M\n\023output_audi" + + "o_config\030\003 \001(\01320.google.cloud.dialogflow" + + ".cx.v3.OutputAudioConfig\"\323\001\n\025FulfillInte" + + "ntResponse\022\023\n\013response_id\030\001 \001(\t\022@\n\014query" + + "_result\030\002 \001(\0132*.google.cloud.dialogflow." + + "cx.v3.QueryResult\022\024\n\014output_audio\030\003 \001(\014\022" + + "M\n\023output_audio_config\030\004 \001(\01320.google.cl" + + "oud.dialogflow.cx.v3.OutputAudioConfig\";" + + "\n\027SentimentAnalysisResult\022\r\n\005score\030\001 \001(\002" + + "\022\021\n\tmagnitude\030\002 \001(\0022\372\r\n\010Sessions\022\246\002\n\014Det" + + "ectIntent\0222.google.cloud.dialogflow.cx.v" + + "3.DetectIntentRequest\0323.google.cloud.dia" + + "logflow.cx.v3.DetectIntentResponse\"\254\001\202\323\344" + + "\223\002\245\001\"E/v3/{session=projects/*/locations/" + + "*/agents/*/sessions/*}:detectIntent:\001*ZY" + + "\"T/v3/{session=projects/*/locations/*/ag" + + "ents/*/environments/*/sessions/*}:detect" + + "Intent:\001*\022\325\002\n\033ServerStreamingDetectInten" + + "t\0222.google.cloud.dialogflow.cx.v3.Detect" + + "IntentRequest\0323.google.cloud.dialogflow." + + "cx.v3.DetectIntentResponse\"\312\001\202\323\344\223\002\303\001\"T/v" + + "3/{session=projects/*/locations/*/agents" + + "/*/sessions/*}:serverStreamingDetectInte" + + "nt:\001*Zh\"c/v3/{session=projects/*/locatio" + + "ns/*/agents/*/environments/*/sessions/*}" + + ":serverStreamingDetectIntent:\001*0\001\022\230\001\n\025St" + + "reamingDetectIntent\022;.google.cloud.dialo" + + "gflow.cx.v3.StreamingDetectIntentRequest" + + "\032<.google.cloud.dialogflow.cx.v3.Streami" + + "ngDetectIntentResponse\"\000(\0010\001\022\241\002\n\013MatchIn" + + "tent\0221.google.cloud.dialogflow.cx.v3.Mat" + + "chIntentRequest\0322.google.cloud.dialogflo" + + "w.cx.v3.MatchIntentResponse\"\252\001\202\323\344\223\002\243\001\"D/" + + "v3/{session=projects/*/locations/*/agent" + + "s/*/sessions/*}:matchIntent:\001*ZX\"S/v3/{s" + + "ession=projects/*/locations/*/agents/*/e" + + "nvironments/*/sessions/*}:matchIntent:\001*" + + "\022\325\002\n\rFulfillIntent\0223.google.cloud.dialog" + + "flow.cx.v3.FulfillIntentRequest\0324.google" + + ".cloud.dialogflow.cx.v3.FulfillIntentRes" + + "ponse\"\330\001\202\323\344\223\002\321\001\"[/v3/{match_intent_reque" + + "st.session=projects/*/locations/*/agents" + + "/*/sessions/*}:fulfillIntent:\001*Zo\"j/v3/{" + + "match_intent_request.session=projects/*/" + + "locations/*/agents/*/environments/*/sess" + + "ions/*}:fulfillIntent:\001*\022\333\001\n\024SubmitAnswe" + + "rFeedback\022:.google.cloud.dialogflow.cx.v" + + "3.SubmitAnswerFeedbackRequest\032-.google.c" + + "loud.dialogflow.cx.v3.AnswerFeedback\"X\202\323" + + "\344\223\002R\"M/v3/{session=projects/*/locations/" + + "*/agents/*/sessions/*}:submitAnswerFeedb" + + "ack:\001*\032x\312A\031dialogflow.googleapis.com\322AYh" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform,https://www.googleapis.com/auth/di" + + "alogflowB\323\004\n!com.google.cloud.dialogflow" + + ".cx.v3B\014SessionProtoP\001Z1cloud.google.com" + + "/go/dialogflow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002D" + + "F\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Goog" + + "le::Cloud::Dialogflow::CX::V3\352A\324\001\n!dialo" + + "gflow.googleapis.com/Session\022Iprojects/{" + + "project}/locations/{location}/agents/{ag" + + "ent}/sessions/{session}\022dprojects/{proje" + + "ct}/locations/{location}/agents/{agent}/" + + "environments/{environment}/sessions/{ses" + + "sion}\352A\305\001\n(discoveryengine.googleapis.co" + + "m/DataStore\022?projects/{project}/location" + + "s/{location}/dataStores/{data_store}\022Xpr" + + "ojects/{project}/locations/{location}/co" + + "llections/{collection}/dataStores/{data_" + + "store}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -438,6 +445,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3.AudioConfigProto.getDescriptor(), + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3.FlowProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3.IntentProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3.PageProto.getDescriptor(), @@ -577,6 +585,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SessionTtl", "EndUserMetadata", "SearchConfig", + "PopulateDataStoreConnectionSignals", }); internal_static_google_cloud_dialogflow_cx_v3_QueryParameters_WebhookHeadersEntry_descriptor = internal_static_google_cloud_dialogflow_cx_v3_QueryParameters_descriptor @@ -665,6 +674,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SentimentAnalysisResult", "AdvancedSettings", "AllowAnswerFeedback", + "DataStoreConnectionSignals", "Query", }); internal_static_google_cloud_dialogflow_cx_v3_TextInput_descriptor = @@ -777,6 +787,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3.AudioConfigProto.getDescriptor(); + com.google.cloud.dialogflow.cx.v3.DataStoreConnectionProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3.FlowProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3.IntentProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3.PageProto.getDescriptor(); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java index 178dd4528cc8..30c239c53e89 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java @@ -142,9 +142,8 @@ public com.google.protobuf.ByteString getTrackingParametersBytes(int index) { * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -172,9 +171,8 @@ public java.lang.String getFlow() { * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -207,9 +205,8 @@ public com.google.protobuf.ByteString getFlowBytes() { * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } @@ -237,9 +234,8 @@ public java.lang.String getPage() { * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } @@ -846,9 +842,8 @@ public Builder addTrackingParametersBytes(com.google.protobuf.ByteString value) * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -875,9 +870,8 @@ public java.lang.String getFlow() { * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -904,9 +898,8 @@ public com.google.protobuf.ByteString getFlowBytes() { * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -932,9 +925,8 @@ public Builder setFlow(java.lang.String value) { * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -956,9 +948,8 @@ public Builder clearFlow() { * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -987,9 +978,8 @@ public Builder setFlowBytes(com.google.protobuf.ByteString value) { * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } @@ -1016,9 +1006,8 @@ public java.lang.String getPage() { * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } @@ -1045,9 +1034,8 @@ public com.google.protobuf.ByteString getPageBytes() { * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } @@ -1073,9 +1061,8 @@ public Builder setPage(java.lang.String value) { * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } @@ -1097,9 +1084,8 @@ public Builder clearPage() { * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfigOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfigOrBuilder.java index ae80b68d9176..8109da580c41 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfigOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfigOrBuilder.java @@ -84,9 +84,8 @@ public interface TestConfigOrBuilder * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -103,9 +102,8 @@ public interface TestConfigOrBuilder * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -123,9 +121,8 @@ public interface TestConfigOrBuilder * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } @@ -142,9 +139,8 @@ public interface TestConfigOrBuilder * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java index f68f225341be..8f06770fc987 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java @@ -109,7 +109,7 @@ public interface GenericWebServiceOrBuilder * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=147 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=188 * @return The username. */ @java.lang.Deprecated @@ -124,7 +124,7 @@ public interface GenericWebServiceOrBuilder * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=147 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=188 * @return The bytes for username. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface GenericWebServiceOrBuilder * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=150 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=191 * @return The password. */ @java.lang.Deprecated @@ -155,7 +155,7 @@ public interface GenericWebServiceOrBuilder * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=150 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=191 * @return The bytes for password. */ @java.lang.Deprecated @@ -295,6 +295,90 @@ java.lang.String getRequestHeadersOrDefault( */ com.google.protobuf.ByteString getAllowedCaCerts(int index); + /** + * + * + *
        +     * Optional. The OAuth configuration of the webhook. If specified,
        +     * Dialogflow will initiate the OAuth client credential flow to exchange an
        +     * access token from the 3rd party platform and put it in the auth header.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oauthConfig field is set. + */ + boolean hasOauthConfig(); + /** + * + * + *
        +     * Optional. The OAuth configuration of the webhook. If specified,
        +     * Dialogflow will initiate the OAuth client credential flow to exchange an
        +     * access token from the 3rd party platform and put it in the auth header.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oauthConfig. + */ + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig getOauthConfig(); + /** + * + * + *
        +     * Optional. The OAuth configuration of the webhook. If specified,
        +     * Dialogflow will initiate the OAuth client credential flow to exchange an
        +     * access token from the 3rd party platform and put it in the auth header.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfigOrBuilder + getOauthConfigOrBuilder(); + + /** + * + * + *
        +     * Optional. Indicate the auth token type generated from the [Diglogflow
        +     * service
        +     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
        +     * The generated token is sent in the Authorization header.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for serviceAgentAuth. + */ + int getServiceAgentAuthValue(); + /** + * + * + *
        +     * Optional. Indicate the auth token type generated from the [Diglogflow
        +     * service
        +     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
        +     * The generated token is sent in the Authorization header.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAgentAuth. + */ + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth + getServiceAgentAuth(); + /** * * @@ -489,6 +573,7 @@ private GenericWebService() { username_ = ""; password_ = ""; allowedCaCerts_ = emptyList(com.google.protobuf.ByteString.class); + serviceAgentAuth_ = 0; webhookType_ = 0; httpMethod_ = 0; requestBody_ = ""; @@ -529,6 +614,208 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.Builder.class); } + /** + * + * + *
        +     * Indicate the auth token type generated from the [Diglogflow service
        +     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
        +     * 
        + * + * Protobuf enum {@code + * google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth} + */ + public enum ServiceAgentAuth implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +       * Service agent auth type unspecified. Default to ID_TOKEN.
        +       * 
        + * + * SERVICE_AGENT_AUTH_UNSPECIFIED = 0; + */ + SERVICE_AGENT_AUTH_UNSPECIFIED(0), + /** + * + * + *
        +       * No token used.
        +       * 
        + * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
        +       * Use [ID
        +       * token](https://cloud.google.com/docs/authentication/token-types#id)
        +       * generated from service agent. This can be used to access Cloud Function
        +       * and Cloud Run after you grant Invoker role to
        +       * `service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com`.
        +       * 
        + * + * ID_TOKEN = 2; + */ + ID_TOKEN(2), + /** + * + * + *
        +       * Use [access
        +       * token](https://cloud.google.com/docs/authentication/token-types#access)
        +       * generated from service agent. This can be used to access other Google
        +       * Cloud APIs after you grant required roles to
        +       * `service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com`.
        +       * 
        + * + * ACCESS_TOKEN = 3; + */ + ACCESS_TOKEN(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +       * Service agent auth type unspecified. Default to ID_TOKEN.
        +       * 
        + * + * SERVICE_AGENT_AUTH_UNSPECIFIED = 0; + */ + public static final int SERVICE_AGENT_AUTH_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +       * No token used.
        +       * 
        + * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + /** + * + * + *
        +       * Use [ID
        +       * token](https://cloud.google.com/docs/authentication/token-types#id)
        +       * generated from service agent. This can be used to access Cloud Function
        +       * and Cloud Run after you grant Invoker role to
        +       * `service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com`.
        +       * 
        + * + * ID_TOKEN = 2; + */ + public static final int ID_TOKEN_VALUE = 2; + /** + * + * + *
        +       * Use [access
        +       * token](https://cloud.google.com/docs/authentication/token-types#access)
        +       * generated from service agent. This can be used to access other Google
        +       * Cloud APIs after you grant required roles to
        +       * `service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com`.
        +       * 
        + * + * ACCESS_TOKEN = 3; + */ + public static final int ACCESS_TOKEN_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ServiceAgentAuth valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ServiceAgentAuth forNumber(int value) { + switch (value) { + case 0: + return SERVICE_AGENT_AUTH_UNSPECIFIED; + case 1: + return NONE; + case 2: + return ID_TOKEN; + case 3: + return ACCESS_TOKEN; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ServiceAgentAuth findValueByNumber(int number) { + return ServiceAgentAuth.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ServiceAgentAuth[] VALUES = values(); + + public static ServiceAgentAuth valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ServiceAgentAuth(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth) + } + /** * * @@ -664,7 +951,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.getDescriptor() .getEnumTypes() - .get(0); + .get(1); } private static final WebhookType[] VALUES = values(); @@ -905,58 +1192,1479 @@ public static HttpMethod forNumber(int value) { default: return null; } - } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HttpMethod findValueByNumber(int number) { + return HttpMethod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final HttpMethod[] VALUES = values(); + + public static HttpMethod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HttpMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod) + } + + public interface OAuthConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +       * Required. The client ID provided by the 3rd party platform.
        +       * 
        + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientId. + */ + java.lang.String getClientId(); + /** + * + * + *
        +       * Required. The client ID provided by the 3rd party platform.
        +       * 
        + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); + + /** + * + * + *
        +       * Required. The client secret provided by the 3rd party platform.
        +       * 
        + * + * string client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientSecret. + */ + java.lang.String getClientSecret(); + /** + * + * + *
        +       * Required. The client secret provided by the 3rd party platform.
        +       * 
        + * + * string client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientSecret. + */ + com.google.protobuf.ByteString getClientSecretBytes(); + + /** + * + * + *
        +       * Required. The token endpoint provided by the 3rd party platform to
        +       * exchange an access token.
        +       * 
        + * + * string token_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tokenEndpoint. + */ + java.lang.String getTokenEndpoint(); + /** + * + * + *
        +       * Required. The token endpoint provided by the 3rd party platform to
        +       * exchange an access token.
        +       * 
        + * + * string token_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tokenEndpoint. + */ + com.google.protobuf.ByteString getTokenEndpointBytes(); + + /** + * + * + *
        +       * Optional. The OAuth scopes to grant.
        +       * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + java.util.List getScopesList(); + /** + * + * + *
        +       * Optional. The OAuth scopes to grant.
        +       * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + int getScopesCount(); + /** + * + * + *
        +       * Optional. The OAuth scopes to grant.
        +       * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + /** + * + * + *
        +       * Optional. The OAuth scopes to grant.
        +       * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString getScopesBytes(int index); + } + /** + * + * + *
        +     * Represents configuration of OAuth client credential flow for 3rd party
        +     * API authentication.
        +     * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig} + */ + public static final class OAuthConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig) + OAuthConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use OAuthConfig.newBuilder() to construct. + private OAuthConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OAuthConfig() { + clientId_ = ""; + clientSecret_ = ""; + tokenEndpoint_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OAuthConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_OAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_OAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig.class, + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig.Builder + .class); + } + + public static final int CLIENT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + /** + * + * + *
        +       * Required. The client ID provided by the 3rd party platform.
        +       * 
        + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } + } + /** + * + * + *
        +       * Required. The client ID provided by the 3rd party platform.
        +       * 
        + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_SECRET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientSecret_ = ""; + /** + * + * + *
        +       * Required. The client secret provided by the 3rd party platform.
        +       * 
        + * + * string client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientSecret. + */ + @java.lang.Override + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } + } + /** + * + * + *
        +       * Required. The client secret provided by the 3rd party platform.
        +       * 
        + * + * string client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientSecret. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_ENDPOINT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object tokenEndpoint_ = ""; + /** + * + * + *
        +       * Required. The token endpoint provided by the 3rd party platform to
        +       * exchange an access token.
        +       * 
        + * + * string token_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tokenEndpoint. + */ + @java.lang.Override + public java.lang.String getTokenEndpoint() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenEndpoint_ = s; + return s; + } + } + /** + * + * + *
        +       * Required. The token endpoint provided by the 3rd party platform to
        +       * exchange an access token.
        +       * 
        + * + * string token_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tokenEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenEndpointBytes() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
        +       * Optional. The OAuth scopes to grant.
        +       * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + return scopes_; + } + /** + * + * + *
        +       * Optional. The OAuth scopes to grant.
        +       * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + * + * + *
        +       * Optional. The OAuth scopes to grant.
        +       * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + * + * + *
        +       * Optional. The OAuth scopes to grant.
        +       * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientSecret_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientSecret_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tokenEndpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tokenEndpoint_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, scopes_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientSecret_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientSecret_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tokenEndpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tokenEndpoint_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig other = + (com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig) obj; + + if (!getClientId().equals(other.getClientId())) return false; + if (!getClientSecret().equals(other.getClientSecret())) return false; + if (!getTokenEndpoint().equals(other.getTokenEndpoint())) return false; + if (!getScopesList().equals(other.getScopesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + CLIENT_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getClientSecret().hashCode(); + hash = (37 * hash) + TOKEN_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getTokenEndpoint().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +       * Represents configuration of OAuth client credential flow for 3rd party
        +       * API authentication.
        +       * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig) + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_OAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_OAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig.class, + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clientId_ = ""; + clientSecret_ = ""; + tokenEndpoint_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_OAuthConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig build() { + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + buildPartial() { + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig result = + new com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientSecret_ = clientSecret_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tokenEndpoint_ = tokenEndpoint_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HttpMethod findValueByNumber(int number) { - return HttpMethod.forNumber(number); + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig other) { + if (other + == com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + .getDefaultInstance()) return this; + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getClientSecret().isEmpty()) { + clientSecret_ = other.clientSecret_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTokenEndpoint().isEmpty()) { + tokenEndpoint_ = other.tokenEndpoint_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000008; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); } - }; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); + @java.lang.Override + public final boolean isInitialized() { + return true; } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + clientSecret_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + tokenEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.getDescriptor() - .getEnumTypes() - .get(1); - } + private int bitField0_; + + private java.lang.Object clientId_ = ""; + /** + * + * + *
        +         * Required. The client ID provided by the 3rd party platform.
        +         * 
        + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +         * Required. The client ID provided by the 3rd party platform.
        +         * 
        + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +         * Required. The client ID provided by the 3rd party platform.
        +         * 
        + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +         * Required. The client ID provided by the 3rd party platform.
        +         * 
        + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +         * Required. The client ID provided by the 3rd party platform.
        +         * 
        + * + * string client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - private static final HttpMethod[] VALUES = values(); + private java.lang.Object clientSecret_ = ""; + /** + * + * + *
        +         * Required. The client secret provided by the 3rd party platform.
        +         * 
        + * + * string client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientSecret. + */ + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +         * Required. The client secret provided by the 3rd party platform.
        +         * 
        + * + * string client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientSecret. + */ + public com.google.protobuf.ByteString getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +         * Required. The client secret provided by the 3rd party platform.
        +         * 
        + * + * string client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecret(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientSecret_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +         * Required. The client secret provided by the 3rd party platform.
        +         * 
        + * + * string client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClientSecret() { + clientSecret_ = getDefaultInstance().getClientSecret(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
        +         * Required. The client secret provided by the 3rd party platform.
        +         * 
        + * + * string client_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecretBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientSecret_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - public static HttpMethod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + private java.lang.Object tokenEndpoint_ = ""; + /** + * + * + *
        +         * Required. The token endpoint provided by the 3rd party platform to
        +         * exchange an access token.
        +         * 
        + * + * string token_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tokenEndpoint. + */ + public java.lang.String getTokenEndpoint() { + java.lang.Object ref = tokenEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; + /** + * + * + *
        +         * Required. The token endpoint provided by the 3rd party platform to
        +         * exchange an access token.
        +         * 
        + * + * string token_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tokenEndpoint. + */ + public com.google.protobuf.ByteString getTokenEndpointBytes() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +         * Required. The token endpoint provided by the 3rd party platform to
        +         * exchange an access token.
        +         * 
        + * + * string token_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tokenEndpoint to set. + * @return This builder for chaining. + */ + public Builder setTokenEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tokenEndpoint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +         * Required. The token endpoint provided by the 3rd party platform to
        +         * exchange an access token.
        +         * 
        + * + * string token_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTokenEndpoint() { + tokenEndpoint_ = getDefaultInstance().getTokenEndpoint(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +         * Required. The token endpoint provided by the 3rd party platform to
        +         * exchange an access token.
        +         * 
        + * + * string token_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tokenEndpoint to set. + * @return This builder for chaining. + */ + public Builder setTokenEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tokenEndpoint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - return VALUES[desc.getIndex()]; - } - private final int value; + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - private HttpMethod(int value) { - this.value = value; + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
        +         * Optional. The OAuth scopes to grant.
        +         * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + /** + * + * + *
        +         * Optional. The OAuth scopes to grant.
        +         * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + * + * + *
        +         * Optional. The OAuth scopes to grant.
        +         * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + * + * + *
        +         * Optional. The OAuth scopes to grant.
        +         * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + /** + * + * + *
        +         * Optional. The OAuth scopes to grant.
        +         * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +         * Optional. The OAuth scopes to grant.
        +         * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +         * Optional. The OAuth scopes to grant.
        +         * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes(java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +         * Optional. The OAuth scopes to grant.
        +         * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
        +         * Optional. The OAuth scopes to grant.
        +         * 
        + * + * repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig) + private static final com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig(); + } + + public static com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OAuthConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod) + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } + private int bitField0_; public static final int URI_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1024,7 +2732,7 @@ public com.google.protobuf.ByteString getUriBytes() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=147 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=188 * @return The username. */ @java.lang.Override @@ -1050,7 +2758,7 @@ public java.lang.String getUsername() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=147 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=188 * @return The bytes for username. */ @java.lang.Override @@ -1081,7 +2789,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=150 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=191 * @return The password. */ @java.lang.Override @@ -1107,7 +2815,7 @@ public java.lang.String getPassword() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=150 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=191 * @return The bytes for password. */ @java.lang.Override @@ -1315,6 +3023,122 @@ public com.google.protobuf.ByteString getAllowedCaCerts(int index) { return allowedCaCerts_.get(index); } + public static final int OAUTH_CONFIG_FIELD_NUMBER = 11; + private com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauthConfig_; + /** + * + * + *
        +     * Optional. The OAuth configuration of the webhook. If specified,
        +     * Dialogflow will initiate the OAuth client credential flow to exchange an
        +     * access token from the 3rd party platform and put it in the auth header.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oauthConfig field is set. + */ + @java.lang.Override + public boolean hasOauthConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * Optional. The OAuth configuration of the webhook. If specified,
        +     * Dialogflow will initiate the OAuth client credential flow to exchange an
        +     * access token from the 3rd party platform and put it in the auth header.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oauthConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + getOauthConfig() { + return oauthConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + .getDefaultInstance() + : oauthConfig_; + } + /** + * + * + *
        +     * Optional. The OAuth configuration of the webhook. If specified,
        +     * Dialogflow will initiate the OAuth client credential flow to exchange an
        +     * access token from the 3rd party platform and put it in the auth header.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfigOrBuilder + getOauthConfigOrBuilder() { + return oauthConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + .getDefaultInstance() + : oauthConfig_; + } + + public static final int SERVICE_AGENT_AUTH_FIELD_NUMBER = 12; + private int serviceAgentAuth_ = 0; + /** + * + * + *
        +     * Optional. Indicate the auth token type generated from the [Diglogflow
        +     * service
        +     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
        +     * The generated token is sent in the Authorization header.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for serviceAgentAuth. + */ + @java.lang.Override + public int getServiceAgentAuthValue() { + return serviceAgentAuth_; + } + /** + * + * + *
        +     * Optional. Indicate the auth token type generated from the [Diglogflow
        +     * service
        +     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
        +     * The generated token is sent in the Authorization header.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAgentAuth. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth + getServiceAgentAuth() { + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth result = + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth.forNumber( + serviceAgentAuth_); + return result == null + ? com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth + .UNRECOGNIZED + : result; + } + public static final int WEBHOOK_TYPE_FIELD_NUMBER = 6; private int webhookType_ = 0; /** @@ -1629,6 +3453,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetParameterMapping(), ParameterMappingDefaultEntryHolder.defaultEntry, 9); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(11, getOauthConfig()); + } + if (serviceAgentAuth_ + != com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth + .SERVICE_AGENT_AUTH_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, serviceAgentAuth_); + } getUnknownFields().writeTo(output); } @@ -1691,6 +3524,15 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, parameterMapping__); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getOauthConfig()); + } + if (serviceAgentAuth_ + != com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth + .SERVICE_AGENT_AUTH_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, serviceAgentAuth_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1712,6 +3554,11 @@ public boolean equals(final java.lang.Object obj) { if (!getPassword().equals(other.getPassword())) return false; if (!internalGetRequestHeaders().equals(other.internalGetRequestHeaders())) return false; if (!getAllowedCaCertsList().equals(other.getAllowedCaCertsList())) return false; + if (hasOauthConfig() != other.hasOauthConfig()) return false; + if (hasOauthConfig()) { + if (!getOauthConfig().equals(other.getOauthConfig())) return false; + } + if (serviceAgentAuth_ != other.serviceAgentAuth_) return false; if (webhookType_ != other.webhookType_) return false; if (httpMethod_ != other.httpMethod_) return false; if (!getRequestBody().equals(other.getRequestBody())) return false; @@ -1741,6 +3588,12 @@ public int hashCode() { hash = (37 * hash) + ALLOWED_CA_CERTS_FIELD_NUMBER; hash = (53 * hash) + getAllowedCaCertsList().hashCode(); } + if (hasOauthConfig()) { + hash = (37 * hash) + OAUTH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOauthConfig().hashCode(); + } + hash = (37 * hash) + SERVICE_AGENT_AUTH_FIELD_NUMBER; + hash = (53 * hash) + serviceAgentAuth_; hash = (37 * hash) + WEBHOOK_TYPE_FIELD_NUMBER; hash = (53 * hash) + webhookType_; hash = (37 * hash) + HTTP_METHOD_FIELD_NUMBER; @@ -1909,10 +3762,19 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } // Construct using com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.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) { + getOauthConfigFieldBuilder(); + } } @java.lang.Override @@ -1924,6 +3786,12 @@ public Builder clear() { password_ = ""; internalGetMutableRequestHeaders().clear(); allowedCaCerts_ = emptyList(com.google.protobuf.ByteString.class); + oauthConfig_ = null; + if (oauthConfigBuilder_ != null) { + oauthConfigBuilder_.dispose(); + oauthConfigBuilder_ = null; + } + serviceAgentAuth_ = 0; webhookType_ = 0; httpMethod_ = 0; requestBody_ = ""; @@ -1983,19 +3851,29 @@ private void buildPartial0( allowedCaCerts_.makeImmutable(); result.allowedCaCerts_ = allowedCaCerts_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { - result.webhookType_ = webhookType_; + result.oauthConfig_ = + oauthConfigBuilder_ == null ? oauthConfig_ : oauthConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.httpMethod_ = httpMethod_; + result.serviceAgentAuth_ = serviceAgentAuth_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.requestBody_ = requestBody_; + result.webhookType_ = webhookType_; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.httpMethod_ = httpMethod_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.requestBody_ = requestBody_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { result.parameterMapping_ = internalGetParameterMapping(); result.parameterMapping_.makeImmutable(); } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2075,6 +3953,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebSer } onChanged(); } + if (other.hasOauthConfig()) { + mergeOauthConfig(other.getOauthConfig()); + } + if (other.serviceAgentAuth_ != 0) { + setServiceAgentAuthValue(other.getServiceAgentAuthValue()); + } if (other.webhookType_ != 0) { setWebhookTypeValue(other.getWebhookTypeValue()); } @@ -2083,11 +3967,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebSer } if (!other.getRequestBody().isEmpty()) { requestBody_ = other.requestBody_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); } internalGetMutableParameterMapping().mergeFrom(other.internalGetParameterMapping()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2155,19 +4039,19 @@ public Builder mergeFrom( case 48: { webhookType_ = input.readEnum(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; break; } // case 48 case 56: { httpMethod_ = input.readEnum(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; break; } // case 56 case 66: { requestBody_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; break; } // case 66 case 74: @@ -2180,9 +4064,21 @@ public Builder mergeFrom( internalGetMutableParameterMapping() .getMutableMap() .put(parameterMapping__.getKey(), parameterMapping__.getValue()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; break; } // case 74 + case 90: + { + input.readMessage(getOauthConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 90 + case 96: + { + serviceAgentAuth_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 96 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2324,7 +4220,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=147 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=188 * @return The username. */ @java.lang.Deprecated @@ -2349,7 +4245,7 @@ public java.lang.String getUsername() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=147 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=188 * @return The bytes for username. */ @java.lang.Deprecated @@ -2374,7 +4270,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=147 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=188 * @param value The username to set. * @return This builder for chaining. */ @@ -2398,7 +4294,7 @@ public Builder setUsername(java.lang.String value) { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=147 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=188 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2418,7 +4314,7 @@ public Builder clearUsername() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=147 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=188 * @param value The bytes for username to set. * @return This builder for chaining. */ @@ -2445,7 +4341,7 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=150 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=191 * @return The password. */ @java.lang.Deprecated @@ -2470,7 +4366,7 @@ public java.lang.String getPassword() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=150 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=191 * @return The bytes for password. */ @java.lang.Deprecated @@ -2495,7 +4391,7 @@ public com.google.protobuf.ByteString getPasswordBytes() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=150 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=191 * @param value The password to set. * @return This builder for chaining. */ @@ -2519,7 +4415,7 @@ public Builder setPassword(java.lang.String value) { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=150 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=191 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2539,7 +4435,7 @@ public Builder clearPassword() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=150 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=191 * @param value The bytes for password to set. * @return This builder for chaining. */ @@ -2945,6 +4841,359 @@ public Builder clearAllowedCaCerts() { return this; } + private com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauthConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig, + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig.Builder, + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfigOrBuilder> + oauthConfigBuilder_; + /** + * + * + *
        +       * Optional. The OAuth configuration of the webhook. If specified,
        +       * Dialogflow will initiate the OAuth client credential flow to exchange an
        +       * access token from the 3rd party platform and put it in the auth header.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oauthConfig field is set. + */ + public boolean hasOauthConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
        +       * Optional. The OAuth configuration of the webhook. If specified,
        +       * Dialogflow will initiate the OAuth client credential flow to exchange an
        +       * access token from the 3rd party platform and put it in the auth header.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oauthConfig. + */ + public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + getOauthConfig() { + if (oauthConfigBuilder_ == null) { + return oauthConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + .getDefaultInstance() + : oauthConfig_; + } else { + return oauthConfigBuilder_.getMessage(); + } + } + /** + * + * + *
        +       * Optional. The OAuth configuration of the webhook. If specified,
        +       * Dialogflow will initiate the OAuth client credential flow to exchange an
        +       * access token from the 3rd party platform and put it in the auth header.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOauthConfig( + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig value) { + if (oauthConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oauthConfig_ = value; + } else { + oauthConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. The OAuth configuration of the webhook. If specified,
        +       * Dialogflow will initiate the OAuth client credential flow to exchange an
        +       * access token from the 3rd party platform and put it in the auth header.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOauthConfig( + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig.Builder + builderForValue) { + if (oauthConfigBuilder_ == null) { + oauthConfig_ = builderForValue.build(); + } else { + oauthConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. The OAuth configuration of the webhook. If specified,
        +       * Dialogflow will initiate the OAuth client credential flow to exchange an
        +       * access token from the 3rd party platform and put it in the auth header.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOauthConfig( + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig value) { + if (oauthConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && oauthConfig_ != null + && oauthConfig_ + != com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + .getDefaultInstance()) { + getOauthConfigBuilder().mergeFrom(value); + } else { + oauthConfig_ = value; + } + } else { + oauthConfigBuilder_.mergeFrom(value); + } + if (oauthConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
        +       * Optional. The OAuth configuration of the webhook. If specified,
        +       * Dialogflow will initiate the OAuth client credential flow to exchange an
        +       * access token from the 3rd party platform and put it in the auth header.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOauthConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + oauthConfig_ = null; + if (oauthConfigBuilder_ != null) { + oauthConfigBuilder_.dispose(); + oauthConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. The OAuth configuration of the webhook. If specified,
        +       * Dialogflow will initiate the OAuth client credential flow to exchange an
        +       * access token from the 3rd party platform and put it in the auth header.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig.Builder + getOauthConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getOauthConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
        +       * Optional. The OAuth configuration of the webhook. If specified,
        +       * Dialogflow will initiate the OAuth client credential flow to exchange an
        +       * access token from the 3rd party platform and put it in the auth header.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfigOrBuilder + getOauthConfigOrBuilder() { + if (oauthConfigBuilder_ != null) { + return oauthConfigBuilder_.getMessageOrBuilder(); + } else { + return oauthConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig + .getDefaultInstance() + : oauthConfig_; + } + } + /** + * + * + *
        +       * Optional. The OAuth configuration of the webhook. If specified,
        +       * Dialogflow will initiate the OAuth client credential flow to exchange an
        +       * access token from the 3rd party platform and put it in the auth header.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig, + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig.Builder, + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfigOrBuilder> + getOauthConfigFieldBuilder() { + if (oauthConfigBuilder_ == null) { + oauthConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig, + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig.Builder, + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfigOrBuilder>( + getOauthConfig(), getParentForChildren(), isClean()); + oauthConfig_ = null; + } + return oauthConfigBuilder_; + } + + private int serviceAgentAuth_ = 0; + /** + * + * + *
        +       * Optional. Indicate the auth token type generated from the [Diglogflow
        +       * service
        +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
        +       * The generated token is sent in the Authorization header.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for serviceAgentAuth. + */ + @java.lang.Override + public int getServiceAgentAuthValue() { + return serviceAgentAuth_; + } + /** + * + * + *
        +       * Optional. Indicate the auth token type generated from the [Diglogflow
        +       * service
        +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
        +       * The generated token is sent in the Authorization header.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for serviceAgentAuth to set. + * @return This builder for chaining. + */ + public Builder setServiceAgentAuthValue(int value) { + serviceAgentAuth_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. Indicate the auth token type generated from the [Diglogflow
        +       * service
        +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
        +       * The generated token is sent in the Authorization header.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAgentAuth. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth + getServiceAgentAuth() { + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth result = + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth.forNumber( + serviceAgentAuth_); + return result == null + ? com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth + .UNRECOGNIZED + : result; + } + /** + * + * + *
        +       * Optional. Indicate the auth token type generated from the [Diglogflow
        +       * service
        +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
        +       * The generated token is sent in the Authorization header.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The serviceAgentAuth to set. + * @return This builder for chaining. + */ + public Builder setServiceAgentAuth( + com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + serviceAgentAuth_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. Indicate the auth token type generated from the [Diglogflow
        +       * service
        +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
        +       * The generated token is sent in the Authorization header.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAgentAuth() { + bitField0_ = (bitField0_ & ~0x00000040); + serviceAgentAuth_ = 0; + onChanged(); + return this; + } + private int webhookType_ = 0; /** * @@ -2979,7 +5228,7 @@ public int getWebhookTypeValue() { */ public Builder setWebhookTypeValue(int value) { webhookType_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3025,7 +5274,7 @@ public Builder setWebhookType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; webhookType_ = value.getNumber(); onChanged(); return this; @@ -3044,7 +5293,7 @@ public Builder setWebhookType( * @return This builder for chaining. */ public Builder clearWebhookType() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); webhookType_ = 0; onChanged(); return this; @@ -3086,7 +5335,7 @@ public int getHttpMethodValue() { */ public Builder setHttpMethodValue(int value) { httpMethod_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3134,7 +5383,7 @@ public Builder setHttpMethod( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; httpMethod_ = value.getNumber(); onChanged(); return this; @@ -3154,7 +5403,7 @@ public Builder setHttpMethod( * @return This builder for chaining. */ public Builder clearHttpMethod() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); httpMethod_ = 0; onChanged(); return this; @@ -3225,7 +5474,7 @@ public Builder setRequestBody(java.lang.String value) { throw new NullPointerException(); } requestBody_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3243,7 +5492,7 @@ public Builder setRequestBody(java.lang.String value) { */ public Builder clearRequestBody() { requestBody_ = getDefaultInstance().getRequestBody(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -3266,7 +5515,7 @@ public Builder setRequestBodyBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); requestBody_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3292,7 +5541,7 @@ public Builder setRequestBodyBytes(com.google.protobuf.ByteString value) { if (!parameterMapping_.isMutable()) { parameterMapping_ = parameterMapping_.copy(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return parameterMapping_; } @@ -3399,7 +5648,7 @@ public java.lang.String getParameterMappingOrThrow(java.lang.String key) { } public Builder clearParameterMapping() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); internalGetMutableParameterMapping().getMutableMap().clear(); return this; } @@ -3427,7 +5676,7 @@ public Builder removeParameterMapping(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParameterMapping() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; return internalGetMutableParameterMapping().getMutableMap(); } /** @@ -3452,7 +5701,7 @@ public Builder putParameterMapping(java.lang.String key, java.lang.String value) throw new NullPointerException("map value"); } internalGetMutableParameterMapping().getMutableMap().put(key, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; return this; } /** @@ -3472,7 +5721,7 @@ public Builder putParameterMapping(java.lang.String key, java.lang.String value) public Builder putAllParameterMapping( java.util.Map values) { internalGetMutableParameterMapping().getMutableMap().putAll(values); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java index a2e131c5f6a1..6c81aa60e858 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_OAuthConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_OAuthConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_RequestHeadersEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -124,6 +128,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3_SessionInfo_ParametersEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3_SessionInfo_ParametersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_LanguageInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_LanguageInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -142,164 +150,179 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\032\036google/protobuf/duration.proto\032\033g" + "oogle/protobuf/empty.proto\032 google/proto" + "buf/field_mask.proto\032\034google/protobuf/st" - + "ruct.proto\"\252\013\n\007Webhook\022\014\n\004name\030\001 \001(\t\022\031\n\014" + + "ruct.proto\"\316\016\n\007Webhook\022\014\n\004name\030\001 \001(\t\022\031\n\014" + "display_name\030\002 \001(\tB\003\340A\002\022W\n\023generic_web_s" + "ervice\030\004 \001(\01328.google.cloud.dialogflow.c" + "x.v3.Webhook.GenericWebServiceH\000\022Z\n\021serv" + "ice_directory\030\007 \001(\0132=.google.cloud.dialo" + "gflow.cx.v3.Webhook.ServiceDirectoryConf" + "igH\000\022*\n\007timeout\030\006 \001(\0132\031.google.protobuf." - + "Duration\022\020\n\010disabled\030\005 \001(\010\032\320\006\n\021GenericWe" + + "Duration\022\020\n\010disabled\030\005 \001(\010\032\364\t\n\021GenericWe" + "bService\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022\024\n\010username\030\002" + " \001(\tB\002\030\001\022\024\n\010password\030\003 \001(\tB\002\030\001\022e\n\017reques" + "t_headers\030\004 \003(\0132L.google.cloud.dialogflo" + "w.cx.v3.Webhook.GenericWebService.Reques" + "tHeadersEntry\022\035\n\020allowed_ca_certs\030\005 \003(\014B" - + "\003\340A\001\022_\n\014webhook_type\030\006 \001(\0162D.google.clou" + + "\003\340A\001\022_\n\014oauth_config\030\013 \001(\0132D.google.clou" + "d.dialogflow.cx.v3.Webhook.GenericWebSer" - + "vice.WebhookTypeB\003\340A\001\022]\n\013http_method\030\007 \001" - + "(\0162C.google.cloud.dialogflow.cx.v3.Webho" - + "ok.GenericWebService.HttpMethodB\003\340A\001\022\031\n\014" - + "request_body\030\010 \001(\tB\003\340A\001\022n\n\021parameter_map" - + "ping\030\t \003(\0132N.google.cloud.dialogflow.cx." - + "v3.Webhook.GenericWebService.ParameterMa" - + "ppingEntryB\003\340A\001\0325\n\023RequestHeadersEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0327\n\025Parame" - + "terMappingEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\"G\n\013WebhookType\022\034\n\030WEBHOOK_TYPE_U" - + "NSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\014\n\010FLEXIBLE\020\002" - + "\"s\n\nHttpMethod\022\033\n\027HTTP_METHOD_UNSPECIFIE" - + "D\020\000\022\010\n\004POST\020\001\022\007\n\003GET\020\002\022\010\n\004HEAD\020\003\022\007\n\003PUT\020" - + "\004\022\n\n\006DELETE\020\005\022\t\n\005PATCH\020\006\022\013\n\007OPTIONS\020\007\032\261\001" - + "\n\026ServiceDirectoryConfig\022@\n\007service\030\001 \001(" - + "\tB/\340A\002\372A)\n\'servicedirectory.googleapis.c" - + "om/Service\022U\n\023generic_web_service\030\002 \001(\0132" - + "8.google.cloud.dialogflow.cx.v3.Webhook." - + "GenericWebService:q\352An\n!dialogflow.googl" - + "eapis.com/Webhook\022Iprojects/{project}/lo" - + "cations/{location}/agents/{agent}/webhoo" - + "ks/{webhook}B\t\n\007webhook\"w\n\023ListWebhooksR" - + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!dialogfl" - + "ow.googleapis.com/Webhook\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"i\n\024ListWebhooks" - + "Response\0228\n\010webhooks\030\001 \003(\0132&.google.clou" - + "d.dialogflow.cx.v3.Webhook\022\027\n\017next_page_" - + "token\030\002 \001(\t\"L\n\021GetWebhookRequest\0227\n\004name" - + "\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googleapis.co" - + "m/Webhook\"\217\001\n\024CreateWebhookRequest\0229\n\006pa" - + "rent\030\001 \001(\tB)\340A\002\372A#\022!dialogflow.googleapi" - + "s.com/Webhook\022<\n\007webhook\030\002 \001(\0132&.google." - + "cloud.dialogflow.cx.v3.WebhookB\003\340A\002\"\205\001\n\024" - + "UpdateWebhookRequest\022<\n\007webhook\030\001 \001(\0132&." - + "google.cloud.dialogflow.cx.v3.WebhookB\003\340" - + "A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobu" - + "f.FieldMask\"^\n\024DeleteWebhookRequest\0227\n\004n" - + "ame\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googleapis" - + ".com/Webhook\022\r\n\005force\030\002 \001(\010\"\201\n\n\016WebhookR" - + "equest\022!\n\031detect_intent_response_id\030\001 \001(" - + "\t\022\016\n\004text\030\n \001(\tH\000\022?\n\016trigger_intent\030\013 \001(" - + "\tB%\372A\"\n dialogflow.googleapis.com/Intent" - + "H\000\022\024\n\ntranscript\030\014 \001(\tH\000\022\027\n\rtrigger_even" - + "t\030\016 \001(\tH\000\022\025\n\013dtmf_digits\030\021 \001(\tH\000\022\025\n\rlang" - + "uage_code\030\017 \001(\t\022W\n\020fulfillment_info\030\006 \001(" - + "\0132=.google.cloud.dialogflow.cx.v3.Webhoo" - + "kRequest.FulfillmentInfo\022M\n\013intent_info\030" - + "\003 \001(\01328.google.cloud.dialogflow.cx.v3.We" - + "bhookRequest.IntentInfo\022:\n\tpage_info\030\004 \001" - + "(\0132\'.google.cloud.dialogflow.cx.v3.PageI" - + "nfo\022@\n\014session_info\030\005 \001(\0132*.google.cloud" - + ".dialogflow.cx.v3.SessionInfo\022@\n\010message" - + "s\030\007 \003(\0132..google.cloud.dialogflow.cx.v3." - + "ResponseMessage\022(\n\007payload\030\010 \001(\0132\027.googl" - + "e.protobuf.Struct\022h\n\031sentiment_analysis_" - + "result\030\t \001(\0132E.google.cloud.dialogflow.c" - + "x.v3.WebhookRequest.SentimentAnalysisRes" - + "ult\032\036\n\017FulfillmentInfo\022\013\n\003tag\030\001 \001(\t\032\273\003\n\n" - + "IntentInfo\022B\n\023last_matched_intent\030\001 \001(\tB" - + "%\372A\"\n dialogflow.googleapis.com/Intent\022\024" - + "\n\014display_name\030\003 \001(\t\022\\\n\nparameters\030\002 \003(\013" - + "2H.google.cloud.dialogflow.cx.v3.Webhook" - + "Request.IntentInfo.ParametersEntry\022\022\n\nco" - + "nfidence\030\004 \001(\002\032^\n\024IntentParameterValue\022\026" - + "\n\016original_value\030\001 \001(\t\022.\n\016resolved_value" - + "\030\002 \001(\0132\026.google.protobuf.Value\032\200\001\n\017Param" - + "etersEntry\022\013\n\003key\030\001 \001(\t\022\\\n\005value\030\002 \001(\0132M" - + ".google.cloud.dialogflow.cx.v3.WebhookRe" - + "quest.IntentInfo.IntentParameterValue:\0028" - + "\001\032;\n\027SentimentAnalysisResult\022\r\n\005score\030\001 " - + "\001(\002\022\021\n\tmagnitude\030\002 \001(\002B\007\n\005query\"\257\005\n\017Webh" - + "ookResponse\022`\n\024fulfillment_response\030\001 \001(" - + "\0132B.google.cloud.dialogflow.cx.v3.Webhoo" - + "kResponse.FulfillmentResponse\022:\n\tpage_in" - + "fo\030\002 \001(\0132\'.google.cloud.dialogflow.cx.v3" - + ".PageInfo\022@\n\014session_info\030\003 \001(\0132*.google" - + ".cloud.dialogflow.cx.v3.SessionInfo\022(\n\007p" - + "ayload\030\004 \001(\0132\027.google.protobuf.Struct\022:\n" - + "\013target_page\030\005 \001(\tB#\372A \n\036dialogflow.goog" - + "leapis.com/PageH\000\022:\n\013target_flow\030\006 \001(\tB#" - + "\372A \n\036dialogflow.googleapis.com/FlowH\000\032\213\002" - + "\n\023FulfillmentResponse\022@\n\010messages\030\001 \003(\0132" - + "..google.cloud.dialogflow.cx.v3.Response" - + "Message\022h\n\016merge_behavior\030\002 \001(\0162P.google" - + ".cloud.dialogflow.cx.v3.WebhookResponse." - + "FulfillmentResponse.MergeBehavior\"H\n\rMer" - + "geBehavior\022\036\n\032MERGE_BEHAVIOR_UNSPECIFIED" - + "\020\000\022\n\n\006APPEND\020\001\022\013\n\007REPLACE\020\002B\014\n\ntransitio" - + "n\"\263\004\n\010PageInfo\0229\n\014current_page\030\001 \001(\tB#\372A" - + " \n\036dialogflow.googleapis.com/Page\022\024\n\014dis" - + "play_name\030\004 \001(\t\022C\n\tform_info\030\003 \001(\01320.goo" - + "gle.cloud.dialogflow.cx.v3.PageInfo.Form" - + "Info\032\220\003\n\010FormInfo\022V\n\016parameter_info\030\002 \003(" - + "\0132>.google.cloud.dialogflow.cx.v3.PageIn" - + "fo.FormInfo.ParameterInfo\032\253\002\n\rParameterI" - + "nfo\022\024\n\014display_name\030\001 \001(\t\022\020\n\010required\030\002 " - + "\001(\010\022\\\n\005state\030\003 \001(\0162M.google.cloud.dialog" - + "flow.cx.v3.PageInfo.FormInfo.ParameterIn" - + "fo.ParameterState\022%\n\005value\030\004 \001(\0132\026.googl" - + "e.protobuf.Value\022\026\n\016just_collected\030\005 \001(\010" - + "\"U\n\016ParameterState\022\037\n\033PARAMETER_STATE_UN" - + "SPECIFIED\020\000\022\t\n\005EMPTY\020\001\022\013\n\007INVALID\020\002\022\n\n\006F" - + "ILLED\020\003\"\341\001\n\013SessionInfo\0227\n\007session\030\001 \001(\t" - + "B&\372A#\n!dialogflow.googleapis.com/Session" - + "\022N\n\nparameters\030\002 \003(\0132:.google.cloud.dial" - + "ogflow.cx.v3.SessionInfo.ParametersEntry" - + "\032I\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022%\n\005valu" - + "e\030\002 \001(\0132\026.google.protobuf.Value:\0028\0012\267\010\n\010" - + "Webhooks\022\277\001\n\014ListWebhooks\0222.google.cloud" - + ".dialogflow.cx.v3.ListWebhooksRequest\0323." - + "google.cloud.dialogflow.cx.v3.ListWebhoo" - + "ksResponse\"F\332A\006parent\202\323\344\223\0027\0225/v3/{parent" - + "=projects/*/locations/*/agents/*}/webhoo" - + "ks\022\254\001\n\nGetWebhook\0220.google.cloud.dialogf" - + "low.cx.v3.GetWebhookRequest\032&.google.clo" - + "ud.dialogflow.cx.v3.Webhook\"D\332A\004name\202\323\344\223" - + "\0027\0225/v3/{name=projects/*/locations/*/age" - + "nts/*/webhooks/*}\022\305\001\n\rCreateWebhook\0223.go" - + "ogle.cloud.dialogflow.cx.v3.CreateWebhoo" - + "kRequest\032&.google.cloud.dialogflow.cx.v3" - + ".Webhook\"W\332A\016parent,webhook\202\323\344\223\002@\"5/v3/{" - + "parent=projects/*/locations/*/agents/*}/" - + "webhooks:\007webhook\022\322\001\n\rUpdateWebhook\0223.go" - + "ogle.cloud.dialogflow.cx.v3.UpdateWebhoo" - + "kRequest\032&.google.cloud.dialogflow.cx.v3" - + ".Webhook\"d\332A\023webhook,update_mask\202\323\344\223\002H2=" - + "/v3/{webhook.name=projects/*/locations/*" - + "/agents/*/webhooks/*}:\007webhook\022\242\001\n\rDelet" - + "eWebhook\0223.google.cloud.dialogflow.cx.v3" - + ".DeleteWebhookRequest\032\026.google.protobuf." - + "Empty\"D\332A\004name\202\323\344\223\0027*5/v3/{name=projects" - + "/*/locations/*/agents/*/webhooks/*}\032x\312A\031" - + "dialogflow.googleapis.com\322AYhttps://www." - + "googleapis.com/auth/cloud-platform,https" - + "://www.googleapis.com/auth/dialogflowB\261\002" - + "\n!com.google.cloud.dialogflow.cx.v3B\014Web" - + "hookProtoP\001Z1cloud.google.com/go/dialogf" - + "low/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google." - + "Cloud.Dialogflow.Cx.V3\352\002!Google::Cloud::" - + "Dialogflow::CX::V3\352A|\n\'servicedirectory." - + "googleapis.com/Service\022Qprojects/{projec" - + "t}/locations/{location}/namespaces/{name" - + "space}/services/{service}b\006proto3" + + "vice.OAuthConfigB\003\340A\001\022j\n\022service_agent_a" + + "uth\030\014 \001(\0162I.google.cloud.dialogflow.cx.v" + + "3.Webhook.GenericWebService.ServiceAgent" + + "AuthB\003\340A\001\022_\n\014webhook_type\030\006 \001(\0162D.google" + + ".cloud.dialogflow.cx.v3.Webhook.GenericW" + + "ebService.WebhookTypeB\003\340A\001\022]\n\013http_metho" + + "d\030\007 \001(\0162C.google.cloud.dialogflow.cx.v3." + + "Webhook.GenericWebService.HttpMethodB\003\340A" + + "\001\022\031\n\014request_body\030\010 \001(\tB\003\340A\001\022n\n\021paramete" + + "r_mapping\030\t \003(\0132N.google.cloud.dialogflo" + + "w.cx.v3.Webhook.GenericWebService.Parame" + + "terMappingEntryB\003\340A\001\032s\n\013OAuthConfig\022\026\n\tc" + + "lient_id\030\001 \001(\tB\003\340A\002\022\032\n\rclient_secret\030\002 \001" + + "(\tB\003\340A\002\022\033\n\016token_endpoint\030\003 \001(\tB\003\340A\002\022\023\n\006" + + "scopes\030\004 \003(\tB\003\340A\001\0325\n\023RequestHeadersEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0327\n\025Para" + + "meterMappingEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"`\n\020ServiceAgentAuth\022\"\n\036SERVICE" + + "_AGENT_AUTH_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\014\n\010I" + + "D_TOKEN\020\002\022\020\n\014ACCESS_TOKEN\020\003\"G\n\013WebhookTy" + + "pe\022\034\n\030WEBHOOK_TYPE_UNSPECIFIED\020\000\022\014\n\010STAN" + + "DARD\020\001\022\014\n\010FLEXIBLE\020\002\"s\n\nHttpMethod\022\033\n\027HT" + + "TP_METHOD_UNSPECIFIED\020\000\022\010\n\004POST\020\001\022\007\n\003GET" + + "\020\002\022\010\n\004HEAD\020\003\022\007\n\003PUT\020\004\022\n\n\006DELETE\020\005\022\t\n\005PAT" + + "CH\020\006\022\013\n\007OPTIONS\020\007\032\261\001\n\026ServiceDirectoryCo" + + "nfig\022@\n\007service\030\001 \001(\tB/\340A\002\372A)\n\'servicedi" + + "rectory.googleapis.com/Service\022U\n\023generi" + + "c_web_service\030\002 \001(\01328.google.cloud.dialo" + + "gflow.cx.v3.Webhook.GenericWebService:q\352" + + "An\n!dialogflow.googleapis.com/Webhook\022Ip" + + "rojects/{project}/locations/{location}/a" + + "gents/{agent}/webhooks/{webhook}B\t\n\007webh" + + "ook\"w\n\023ListWebhooksRequest\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\022!dialogflow.googleapis.com/We" + + "bhook\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\"i\n\024ListWebhooksResponse\0228\n\010webhooks" + + "\030\001 \003(\0132&.google.cloud.dialogflow.cx.v3.W" + + "ebhook\022\027\n\017next_page_token\030\002 \001(\t\"L\n\021GetWe" + + "bhookRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dial" + + "ogflow.googleapis.com/Webhook\"\217\001\n\024Create" + + "WebhookRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!" + + "dialogflow.googleapis.com/Webhook\022<\n\007web" + + "hook\030\002 \001(\0132&.google.cloud.dialogflow.cx." + + "v3.WebhookB\003\340A\002\"\205\001\n\024UpdateWebhookRequest" + + "\022<\n\007webhook\030\001 \001(\0132&.google.cloud.dialogf" + + "low.cx.v3.WebhookB\003\340A\002\022/\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMask\"^\n\024Delet" + + "eWebhookRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!d" + + "ialogflow.googleapis.com/Webhook\022\r\n\005forc" + + "e\030\002 \001(\010\"\305\n\n\016WebhookRequest\022!\n\031detect_int" + + "ent_response_id\030\001 \001(\t\022\016\n\004text\030\n \001(\tH\000\022?\n" + + "\016trigger_intent\030\013 \001(\tB%\372A\"\n dialogflow.g" + + "oogleapis.com/IntentH\000\022\024\n\ntranscript\030\014 \001" + + "(\tH\000\022\027\n\rtrigger_event\030\016 \001(\tH\000\022\025\n\013dtmf_di" + + "gits\030\021 \001(\tH\000\022\025\n\rlanguage_code\030\017 \001(\t\022W\n\020f" + + "ulfillment_info\030\006 \001(\0132=.google.cloud.dia" + + "logflow.cx.v3.WebhookRequest.Fulfillment" + + "Info\022M\n\013intent_info\030\003 \001(\01328.google.cloud" + + ".dialogflow.cx.v3.WebhookRequest.IntentI" + + "nfo\022:\n\tpage_info\030\004 \001(\0132\'.google.cloud.di" + + "alogflow.cx.v3.PageInfo\022@\n\014session_info\030" + + "\005 \001(\0132*.google.cloud.dialogflow.cx.v3.Se" + + "ssionInfo\022@\n\010messages\030\007 \003(\0132..google.clo" + + "ud.dialogflow.cx.v3.ResponseMessage\022(\n\007p" + + "ayload\030\010 \001(\0132\027.google.protobuf.Struct\022h\n" + + "\031sentiment_analysis_result\030\t \001(\0132E.googl" + + "e.cloud.dialogflow.cx.v3.WebhookRequest." + + "SentimentAnalysisResult\022B\n\rlanguage_info" + + "\030\022 \001(\0132+.google.cloud.dialogflow.cx.v3.L" + + "anguageInfo\032\036\n\017FulfillmentInfo\022\013\n\003tag\030\001 " + + "\001(\t\032\273\003\n\nIntentInfo\022B\n\023last_matched_inten" + + "t\030\001 \001(\tB%\372A\"\n dialogflow.googleapis.com/" + + "Intent\022\024\n\014display_name\030\003 \001(\t\022\\\n\nparamete" + + "rs\030\002 \003(\0132H.google.cloud.dialogflow.cx.v3" + + ".WebhookRequest.IntentInfo.ParametersEnt" + + "ry\022\022\n\nconfidence\030\004 \001(\002\032^\n\024IntentParamete" + + "rValue\022\026\n\016original_value\030\001 \001(\t\022.\n\016resolv" + + "ed_value\030\002 \001(\0132\026.google.protobuf.Value\032\200" + + "\001\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\\\n\005value" + + "\030\002 \001(\0132M.google.cloud.dialogflow.cx.v3.W" + + "ebhookRequest.IntentInfo.IntentParameter" + + "Value:\0028\001\032;\n\027SentimentAnalysisResult\022\r\n\005" + + "score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\002B\007\n\005query\"" + + "\257\005\n\017WebhookResponse\022`\n\024fulfillment_respo" + + "nse\030\001 \001(\0132B.google.cloud.dialogflow.cx.v" + + "3.WebhookResponse.FulfillmentResponse\022:\n" + + "\tpage_info\030\002 \001(\0132\'.google.cloud.dialogfl" + + "ow.cx.v3.PageInfo\022@\n\014session_info\030\003 \001(\0132" + + "*.google.cloud.dialogflow.cx.v3.SessionI" + + "nfo\022(\n\007payload\030\004 \001(\0132\027.google.protobuf.S" + + "truct\022:\n\013target_page\030\005 \001(\tB#\372A \n\036dialogf" + + "low.googleapis.com/PageH\000\022:\n\013target_flow" + + "\030\006 \001(\tB#\372A \n\036dialogflow.googleapis.com/F" + + "lowH\000\032\213\002\n\023FulfillmentResponse\022@\n\010message" + + "s\030\001 \003(\0132..google.cloud.dialogflow.cx.v3." + + "ResponseMessage\022h\n\016merge_behavior\030\002 \001(\0162" + + "P.google.cloud.dialogflow.cx.v3.WebhookR" + + "esponse.FulfillmentResponse.MergeBehavio" + + "r\"H\n\rMergeBehavior\022\036\n\032MERGE_BEHAVIOR_UNS" + + "PECIFIED\020\000\022\n\n\006APPEND\020\001\022\013\n\007REPLACE\020\002B\014\n\nt" + + "ransition\"\263\004\n\010PageInfo\0229\n\014current_page\030\001" + + " \001(\tB#\372A \n\036dialogflow.googleapis.com/Pag" + + "e\022\024\n\014display_name\030\004 \001(\t\022C\n\tform_info\030\003 \001" + + "(\01320.google.cloud.dialogflow.cx.v3.PageI" + + "nfo.FormInfo\032\220\003\n\010FormInfo\022V\n\016parameter_i" + + "nfo\030\002 \003(\0132>.google.cloud.dialogflow.cx.v" + + "3.PageInfo.FormInfo.ParameterInfo\032\253\002\n\rPa" + + "rameterInfo\022\024\n\014display_name\030\001 \001(\t\022\020\n\010req" + + "uired\030\002 \001(\010\022\\\n\005state\030\003 \001(\0162M.google.clou" + + "d.dialogflow.cx.v3.PageInfo.FormInfo.Par" + + "ameterInfo.ParameterState\022%\n\005value\030\004 \001(\013" + + "2\026.google.protobuf.Value\022\026\n\016just_collect" + + "ed\030\005 \001(\010\"U\n\016ParameterState\022\037\n\033PARAMETER_" + + "STATE_UNSPECIFIED\020\000\022\t\n\005EMPTY\020\001\022\013\n\007INVALI" + + "D\020\002\022\n\n\006FILLED\020\003\"\341\001\n\013SessionInfo\0227\n\007sessi" + + "on\030\001 \001(\tB&\372A#\n!dialogflow.googleapis.com" + + "/Session\022N\n\nparameters\030\002 \003(\0132:.google.cl" + + "oud.dialogflow.cx.v3.SessionInfo.Paramet" + + "ersEntry\032I\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t" + + "\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Value:" + + "\0028\001\"e\n\014LanguageInfo\022\033\n\023input_language_co" + + "de\030\001 \001(\t\022\036\n\026resolved_language_code\030\002 \001(\t" + + "\022\030\n\020confidence_score\030\003 \001(\0022\267\010\n\010Webhooks\022" + + "\277\001\n\014ListWebhooks\0222.google.cloud.dialogfl" + + "ow.cx.v3.ListWebhooksRequest\0323.google.cl" + + "oud.dialogflow.cx.v3.ListWebhooksRespons" + + "e\"F\332A\006parent\202\323\344\223\0027\0225/v3/{parent=projects" + + "/*/locations/*/agents/*}/webhooks\022\254\001\n\nGe" + + "tWebhook\0220.google.cloud.dialogflow.cx.v3" + + ".GetWebhookRequest\032&.google.cloud.dialog" + + "flow.cx.v3.Webhook\"D\332A\004name\202\323\344\223\0027\0225/v3/{" + + "name=projects/*/locations/*/agents/*/web" + + "hooks/*}\022\305\001\n\rCreateWebhook\0223.google.clou" + + "d.dialogflow.cx.v3.CreateWebhookRequest\032" + + "&.google.cloud.dialogflow.cx.v3.Webhook\"" + + "W\332A\016parent,webhook\202\323\344\223\002@\"5/v3/{parent=pr" + + "ojects/*/locations/*/agents/*}/webhooks:" + + "\007webhook\022\322\001\n\rUpdateWebhook\0223.google.clou" + + "d.dialogflow.cx.v3.UpdateWebhookRequest\032" + + "&.google.cloud.dialogflow.cx.v3.Webhook\"" + + "d\332A\023webhook,update_mask\202\323\344\223\002H2=/v3/{webh" + + "ook.name=projects/*/locations/*/agents/*" + + "/webhooks/*}:\007webhook\022\242\001\n\rDeleteWebhook\022" + + "3.google.cloud.dialogflow.cx.v3.DeleteWe" + + "bhookRequest\032\026.google.protobuf.Empty\"D\332A" + + "\004name\202\323\344\223\0027*5/v3/{name=projects/*/locati" + + "ons/*/agents/*/webhooks/*}\032x\312A\031dialogflo" + + "w.googleapis.com\322AYhttps://www.googleapi" + + "s.com/auth/cloud-platform,https://www.go" + + "ogleapis.com/auth/dialogflowB\261\002\n!com.goo" + + "gle.cloud.dialogflow.cx.v3B\014WebhookProto" + + "P\001Z1cloud.google.com/go/dialogflow/cx/ap" + + "iv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dia" + + "logflow.Cx.V3\352\002!Google::Cloud::Dialogflo" + + "w::CX::V3\352A|\n\'servicedirectory.googleapi" + + "s.com/Service\022Qprojects/{project}/locati" + + "ons/{location}/namespaces/{namespace}/se" + + "rvices/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -340,15 +363,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Password", "RequestHeaders", "AllowedCaCerts", + "OauthConfig", + "ServiceAgentAuth", "WebhookType", "HttpMethod", "RequestBody", "ParameterMapping", }); - internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_RequestHeadersEntry_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_OAuthConfig_descriptor = internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_descriptor .getNestedTypes() .get(0); + internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_OAuthConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_OAuthConfig_descriptor, + new java.lang.String[] { + "ClientId", "ClientSecret", "TokenEndpoint", "Scopes", + }); + internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_RequestHeadersEntry_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_descriptor + .getNestedTypes() + .get(1); internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_RequestHeadersEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_RequestHeadersEntry_descriptor, @@ -358,7 +393,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_ParameterMappingEntry_descriptor = internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_descriptor .getNestedTypes() - .get(1); + .get(2); internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_ParameterMappingEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_ParameterMappingEntry_descriptor, @@ -441,6 +476,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Messages", "Payload", "SentimentAnalysisResult", + "LanguageInfo", "Query", }); internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_FulfillmentInfo_descriptor = @@ -561,6 +597,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dialogflow_cx_v3_LanguageInfo_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dialogflow_cx_v3_LanguageInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_LanguageInfo_descriptor, + new java.lang.String[] { + "InputLanguageCode", "ResolvedLanguageCode", "ConfidenceScore", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java index 98f361e469f2..28af53908931 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java @@ -5072,6 +5072,56 @@ public boolean hasSentimentAnalysisResult() { : sentimentAnalysisResult_; } + public static final int LANGUAGE_INFO_FIELD_NUMBER = 18; + private com.google.cloud.dialogflow.cx.v3.LanguageInfo languageInfo_; + /** + * + * + *
        +   * Information about the language of the request.
        +   * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + * + * @return Whether the languageInfo field is set. + */ + @java.lang.Override + public boolean hasLanguageInfo() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
        +   * Information about the language of the request.
        +   * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + * + * @return The languageInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.LanguageInfo getLanguageInfo() { + return languageInfo_ == null + ? com.google.cloud.dialogflow.cx.v3.LanguageInfo.getDefaultInstance() + : languageInfo_; + } + /** + * + * + *
        +   * Information about the language of the request.
        +   * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.LanguageInfoOrBuilder getLanguageInfoOrBuilder() { + return languageInfo_ == null + ? com.google.cloud.dialogflow.cx.v3.LanguageInfo.getDefaultInstance() + : languageInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5128,6 +5178,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (queryCase_ == 17) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, query_); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(18, getLanguageInfo()); + } getUnknownFields().writeTo(output); } @@ -5180,6 +5233,9 @@ public int getSerializedSize() { if (queryCase_ == 17) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, query_); } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLanguageInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5223,6 +5279,10 @@ public boolean equals(final java.lang.Object obj) { if (hasSentimentAnalysisResult()) { if (!getSentimentAnalysisResult().equals(other.getSentimentAnalysisResult())) return false; } + if (hasLanguageInfo() != other.hasLanguageInfo()) return false; + if (hasLanguageInfo()) { + if (!getLanguageInfo().equals(other.getLanguageInfo())) return false; + } if (!getQueryCase().equals(other.getQueryCase())) return false; switch (queryCase_) { case 10: @@ -5286,6 +5346,10 @@ public int hashCode() { hash = (37 * hash) + SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER; hash = (53 * hash) + getSentimentAnalysisResult().hashCode(); } + if (hasLanguageInfo()) { + hash = (37 * hash) + LANGUAGE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getLanguageInfo().hashCode(); + } switch (queryCase_) { case 10: hash = (37 * hash) + TEXT_FIELD_NUMBER; @@ -5461,6 +5525,7 @@ private void maybeForceBuilderInitialization() { getMessagesFieldBuilder(); getPayloadFieldBuilder(); getSentimentAnalysisResultFieldBuilder(); + getLanguageInfoFieldBuilder(); } } @@ -5507,6 +5572,11 @@ public Builder clear() { sentimentAnalysisResultBuilder_.dispose(); sentimentAnalysisResultBuilder_ = null; } + languageInfo_ = null; + if (languageInfoBuilder_ != null) { + languageInfoBuilder_.dispose(); + languageInfoBuilder_ = null; + } queryCase_ = 0; query_ = null; return this; @@ -5596,6 +5666,11 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.WebhookRequest resu : sentimentAnalysisResultBuilder_.build(); to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.languageInfo_ = + languageInfoBuilder_ == null ? languageInfo_ : languageInfoBuilder_.build(); + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -5705,6 +5780,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.WebhookRequest other) if (other.hasSentimentAnalysisResult()) { mergeSentimentAnalysisResult(other.getSentimentAnalysisResult()); } + if (other.hasLanguageInfo()) { + mergeLanguageInfo(other.getLanguageInfo()); + } switch (other.getQueryCase()) { case TEXT: { @@ -5870,6 +5948,12 @@ public Builder mergeFrom( query_ = s; break; } // case 138 + case 146: + { + input.readMessage(getLanguageInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8424,6 +8508,193 @@ public Builder clearSentimentAnalysisResult() { return sentimentAnalysisResultBuilder_; } + private com.google.cloud.dialogflow.cx.v3.LanguageInfo languageInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.LanguageInfo, + com.google.cloud.dialogflow.cx.v3.LanguageInfo.Builder, + com.google.cloud.dialogflow.cx.v3.LanguageInfoOrBuilder> + languageInfoBuilder_; + /** + * + * + *
        +     * Information about the language of the request.
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + * + * @return Whether the languageInfo field is set. + */ + public boolean hasLanguageInfo() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
        +     * Information about the language of the request.
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + * + * @return The languageInfo. + */ + public com.google.cloud.dialogflow.cx.v3.LanguageInfo getLanguageInfo() { + if (languageInfoBuilder_ == null) { + return languageInfo_ == null + ? com.google.cloud.dialogflow.cx.v3.LanguageInfo.getDefaultInstance() + : languageInfo_; + } else { + return languageInfoBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Information about the language of the request.
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + */ + public Builder setLanguageInfo(com.google.cloud.dialogflow.cx.v3.LanguageInfo value) { + if (languageInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + languageInfo_ = value; + } else { + languageInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Information about the language of the request.
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + */ + public Builder setLanguageInfo( + com.google.cloud.dialogflow.cx.v3.LanguageInfo.Builder builderForValue) { + if (languageInfoBuilder_ == null) { + languageInfo_ = builderForValue.build(); + } else { + languageInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Information about the language of the request.
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + */ + public Builder mergeLanguageInfo(com.google.cloud.dialogflow.cx.v3.LanguageInfo value) { + if (languageInfoBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && languageInfo_ != null + && languageInfo_ + != com.google.cloud.dialogflow.cx.v3.LanguageInfo.getDefaultInstance()) { + getLanguageInfoBuilder().mergeFrom(value); + } else { + languageInfo_ = value; + } + } else { + languageInfoBuilder_.mergeFrom(value); + } + if (languageInfo_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Information about the language of the request.
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + */ + public Builder clearLanguageInfo() { + bitField0_ = (bitField0_ & ~0x00004000); + languageInfo_ = null; + if (languageInfoBuilder_ != null) { + languageInfoBuilder_.dispose(); + languageInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Information about the language of the request.
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + */ + public com.google.cloud.dialogflow.cx.v3.LanguageInfo.Builder getLanguageInfoBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getLanguageInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Information about the language of the request.
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + */ + public com.google.cloud.dialogflow.cx.v3.LanguageInfoOrBuilder getLanguageInfoOrBuilder() { + if (languageInfoBuilder_ != null) { + return languageInfoBuilder_.getMessageOrBuilder(); + } else { + return languageInfo_ == null + ? com.google.cloud.dialogflow.cx.v3.LanguageInfo.getDefaultInstance() + : languageInfo_; + } + } + /** + * + * + *
        +     * Information about the language of the request.
        +     * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.LanguageInfo, + com.google.cloud.dialogflow.cx.v3.LanguageInfo.Builder, + com.google.cloud.dialogflow.cx.v3.LanguageInfoOrBuilder> + getLanguageInfoFieldBuilder() { + if (languageInfoBuilder_ == null) { + languageInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.LanguageInfo, + com.google.cloud.dialogflow.cx.v3.LanguageInfo.Builder, + com.google.cloud.dialogflow.cx.v3.LanguageInfoOrBuilder>( + getLanguageInfo(), getParentForChildren(), isClean()); + languageInfo_ = null; + } + return languageInfoBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java index 301cbc5192c9..51ae5a0a6d1c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java @@ -582,5 +582,40 @@ public interface WebhookRequestOrBuilder com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder(); + /** + * + * + *
        +   * Information about the language of the request.
        +   * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + * + * @return Whether the languageInfo field is set. + */ + boolean hasLanguageInfo(); + /** + * + * + *
        +   * Information about the language of the request.
        +   * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + * + * @return The languageInfo. + */ + com.google.cloud.dialogflow.cx.v3.LanguageInfo getLanguageInfo(); + /** + * + * + *
        +   * Information about the language of the request.
        +   * 
        + * + * .google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18; + */ + com.google.cloud.dialogflow.cx.v3.LanguageInfoOrBuilder getLanguageInfoOrBuilder(); + com.google.cloud.dialogflow.cx.v3.WebhookRequest.QueryCase getQueryCase(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/advanced_settings.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/advanced_settings.proto index 93e643c89798..c28ca4c33b55 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/advanced_settings.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/advanced_settings.proto @@ -18,6 +18,7 @@ package google.cloud.dialogflow.cx.v3; import "google/api/field_behavior.proto"; import "google/cloud/dialogflow/cx/v3/gcs.proto"; +import "google/protobuf/duration.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; @@ -40,6 +41,27 @@ option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; // // Hierarchy: Agent->Flow->Page->Fulfillment/Parameter. message AdvancedSettings { + // Define behaviors of speech to text detection. + message SpeechSettings { + // Sensitivity of the speech model that detects the end of speech. + // Scale from 0 to 100. + int32 endpointer_sensitivity = 1; + + // Timeout before detecting no speech. + google.protobuf.Duration no_speech_timeout = 2; + + // Use timeout based endpointing, interpreting endpointer sensitivy as + // seconds of timeout value. + bool use_timeout_based_endpointing = 3; + + // Mapping from language to Speech-to-Text model. The mapped Speech-to-Text + // model will be selected for requests from its corresponding language. + // For more information, see + // [Speech + // models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models). + map models = 5; + } + // Define behaviors for DTMF (dual tone multi frequency). message DtmfSettings { // If true, incoming audio is processed for DTMF (dual tone multi frequency) @@ -55,15 +77,26 @@ message AdvancedSettings { // The digit that terminates a DTMF digit sequence. string finish_digit = 3; + + // Interdigit timeout setting for matching dtmf input to regex. + google.protobuf.Duration interdigit_timeout_duration = 6; + + // Endpoint timeout setting for matching dtmf input to regex. + google.protobuf.Duration endpointing_timeout_duration = 7; } // Define behaviors on logging. message LoggingSettings { - // If true, StackDriver logging is currently enabled. + // Enables StackDriver logging. bool enable_stackdriver_logging = 2; - // If true, DF Interaction logging is currently enabled. + // Enables DF Interaction logging. bool enable_interaction_logging = 3; + + // Enables consent-based end-user input redaction, if true, a pre-defined + // session parameter `$session.params.conversation-redaction` will be + // used to determine if the utterance should be redacted. + bool enable_consent_based_redaction = 4; } // If present, incoming audio is exported by Dialogflow to the configured @@ -73,6 +106,14 @@ message AdvancedSettings { // - Flow level GcsDestination audio_export_gcs_destination = 2; + // Settings for speech to text detection. + // Exposed at the following levels: + // - Agent level + // - Flow level + // - Page level + // - Parameter level + SpeechSettings speech_settings = 3; + // Settings for DTMF. // Exposed at the following levels: // - Agent level diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto index 33b24376dac4..703fe4237e60 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto @@ -254,6 +254,20 @@ message Agent { bool enable_answer_feedback = 1 [(google.api.field_behavior) = OPTIONAL]; } + // Settings for end user personalization. + message PersonalizationSettings { + // Optional. Default end user metadata, used when processing DetectIntent + // requests. Recommended to be filled as a template instead of hard-coded + // value, for example { "age": "$session.params.age" }. The data will be + // merged with the + // [QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata] + // in + // [DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params] + // during query processing. + google.protobuf.Struct default_end_user_metadata = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + // The unique identifier of the agent. // Required for the // [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] @@ -303,8 +317,7 @@ message Agent { // Immutable. Name of the start flow in this agent. A start flow will be // automatically created when the agent is created, and can only be deleted by // deleting the agent. Format: `projects//locations//agents//flows/`. Currently only the default start - // flow with id "00000000-0000-0000-0000-000000000000" is allowed. + // ID>/agents//flows/`. string start_flow = 16 [ (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } @@ -328,6 +341,11 @@ message Agent { // requests. bool enable_spell_correction = 20; + // Optional. Enable training multi-lingual models for this agent. These models + // will be trained on all the languages supported by the agent. + bool enable_multi_language_training = 40 + [(google.api.field_behavior) = OPTIONAL]; + // Indicates whether the agent is locked for changes. If the agent is locked, // modifications to the agent will be rejected except for [RestoreAgent][]. bool locked = 27; @@ -349,6 +367,10 @@ message Agent { // Optional. Answer feedback collection settings. AnswerFeedbackSettings answer_feedback_settings = 38 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Settings for end user personalization. + PersonalizationSettings personalization_settings = 42 + [(google.api.field_behavior) = OPTIONAL]; } // The request message for diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/data_store_connection.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/data_store_connection.proto index 884ae7a65aa5..9cdeb58fb3bb 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/data_store_connection.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/data_store_connection.proto @@ -16,6 +16,8 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3; +import "google/api/field_behavior.proto"; + option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; @@ -54,3 +56,183 @@ enum DataStoreType { // A data store that contains structured data (for example FAQ). STRUCTURED = 3; } + +// Data store connection feature output signals. +// Might be only partially field if processing stop before the final answer. +// Reasons for this can be, but are not limited to: empty UCS search results, +// positive RAI check outcome, grounding failure, ... +message DataStoreConnectionSignals { + // Diagnostic info related to the rewriter model call. + message RewriterModelCallSignals { + // Prompt as sent to the model. + string rendered_prompt = 1; + + // Output of the generative model. + string model_output = 2; + + // Name of the generative model. For example, "gemini-ultra", "gemini-pro", + // "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown. + string model = 3; + } + + // Search snippet details. + message SearchSnippet { + // Title of the enclosing document. + string document_title = 1; + + // Uri for the document. Present if specified for the document. + string document_uri = 2; + + // Text included in the prompt. + string text = 3; + } + + // Diagnostic info related to the answer generation model call. + message AnswerGenerationModelCallSignals { + // Prompt as sent to the model. + string rendered_prompt = 1; + + // Output of the generative model. + string model_output = 2; + + // Name of the generative model. For example, "gemini-ultra", "gemini-pro", + // "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown. + string model = 3; + } + + // Answer part with citation. + message AnswerPart { + // Substring of the answer. + string text = 1; + + // Citations for this answer part. Indices of `search_snippets`. + repeated int32 supporting_indices = 2; + } + + // Snippet cited by the answer generation model. + message CitedSnippet { + // Details of the snippet. + SearchSnippet search_snippet = 1; + + // Index of the snippet in `search_snippets` field. + int32 snippet_index = 2; + } + + // Grounding signals. + message GroundingSignals { + // Represents the decision of the grounding check. + enum GroundingDecision { + // Decision not specified. + GROUNDING_DECISION_UNSPECIFIED = 0; + + // Grounding have accepted the answer. + ACCEPTED_BY_GROUNDING = 1; + + // Grounding have rejected the answer. + REJECTED_BY_GROUNDING = 2; + } + + // Grounding score buckets. + enum GroundingScoreBucket { + // Score not specified. + GROUNDING_SCORE_BUCKET_UNSPECIFIED = 0; + + // We have very low confidence that the answer is grounded. + VERY_LOW = 1; + + // We have low confidence that the answer is grounded. + LOW = 3; + + // We have medium confidence that the answer is grounded. + MEDIUM = 4; + + // We have high confidence that the answer is grounded. + HIGH = 5; + + // We have very high confidence that the answer is grounded. + VERY_HIGH = 6; + } + + // Represents the decision of the grounding check. + GroundingDecision decision = 1; + + // Grounding score bucket setting. + GroundingScoreBucket score = 2; + } + + // Safety check results. + message SafetySignals { + // Safety decision. + // All kinds of check are incorporated into this final decision, including + // banned phrases check. + enum SafetyDecision { + // Decision not specified. + SAFETY_DECISION_UNSPECIFIED = 0; + + // No manual or automatic safety check fired. + ACCEPTED_BY_SAFETY_CHECK = 1; + + // One ore more safety checks fired. + REJECTED_BY_SAFETY_CHECK = 2; + } + + // Specifies banned phrase match subject. + enum BannedPhraseMatch { + // No banned phrase check was executed. + BANNED_PHRASE_MATCH_UNSPECIFIED = 0; + + // All banned phrase checks led to no match. + BANNED_PHRASE_MATCH_NONE = 1; + + // A banned phrase matched the query. + BANNED_PHRASE_MATCH_QUERY = 2; + + // A banned phrase matched the response. + BANNED_PHRASE_MATCH_RESPONSE = 3; + } + + // Safety decision. + SafetyDecision decision = 1; + + // Specifies banned phrase match subject. + BannedPhraseMatch banned_phrase_match = 2; + + // The matched banned phrase if there was a match. + string matched_banned_phrase = 3; + } + + // Optional. Diagnostic info related to the rewriter model call. + RewriterModelCallSignals rewriter_model_call_signals = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Rewritten string query used for search. + string rewritten_query = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Search snippets included in the answer generation prompt. + repeated SearchSnippet search_snippets = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Diagnostic info related to the answer generation model call. + AnswerGenerationModelCallSignals answer_generation_model_call_signals = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The final compiled answer. + string answer = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Answer parts with relevant citations. + // Concatenation of texts should add up the `answer` (not counting + // whitespaces). + repeated AnswerPart answer_parts = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Snippets cited by the answer generation model from the most to + // least relevant. + repeated CitedSnippet cited_snippets = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Grounding signals. + GroundingSignals grounding_signals = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Safety check result. + SafetySignals safety_signals = 9 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/flow.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/flow.proto index e5b68bb6b6c1..8905a53ac683 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/flow.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/flow.proto @@ -256,6 +256,26 @@ message Flow { pattern: "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}" }; + // Settings for multi-lingual agents. + message MultiLanguageSettings { + // Optional. Enable multi-language detection for this flow. This can be set + // only if [agent level multi language + // setting][Agent.enable_multi_language_training] is enabled. + bool enable_multi_language_detection = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Agent will respond in the detected language if the detected + // language code is in the supported resolved languages for this flow. This + // will be used only if multi-language training is enabled in the + // [agent][google.cloud.dialogflow.cx.v3.Agent.enable_multi_language_training] + // and multi-language detection is enabled in the + // [flow][google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings.enable_multi_language_detection]. + // The supported languages must be a subset of the languages supported by + // the agent. + repeated string supported_response_language_codes = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + // The unique identifier of the flow. // Format: `projects//locations//agents//flows/`. @@ -329,6 +349,14 @@ message Flow { // Optional. Knowledge connector configuration. KnowledgeConnectorSettings knowledge_connector_settings = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Multi-lingual agent settings for this flow. + MultiLanguageSettings multi_language_settings = 28 + [(google.api.field_behavior) = OPTIONAL]; + + // Indicates whether the flow is locked for changes. If the flow is locked, + // modifications to the flow will be rejected. + bool locked = 30; } // The request message for diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/security_settings.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/security_settings.proto index 3a165baabc8b..1453c2a77e26 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/security_settings.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/security_settings.proto @@ -268,11 +268,17 @@ message SecuritySettings { string audio_export_pattern = 2; // Enable audio redaction if it is true. + // Note that this only redacts end-user audio data; + // Synthesised audio from the virtual agent is not redacted. bool enable_audio_redaction = 3; // File format for exported audio file. Currently only in telephony // recordings. AudioFormat audio_format = 4; + + // Whether to store TTS audio. By default, TTS audio from the virtual agent + // is not exported. + bool store_tts_audio = 6; } // Settings for exporting conversations to @@ -355,6 +361,9 @@ message SecuritySettings { // for Agent Assist traffic), higher value will be ignored and use default. // Setting a value higher than that has no effect. A missing value or // setting to 0 also means we use default TTL. + // When data retention configuration is changed, it only applies to the data + // created after the change; the TTL of existing data created before the + // change stays intact. int32 retention_window_days = 6; // Specifies the retention behavior defined by diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto index 9f6f15b6f192..9e0ca50fbb91 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/cx/v3/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3/audio_config.proto"; +import "google/cloud/dialogflow/cx/v3/data_store_connection.proto"; import "google/cloud/dialogflow/cx/v3/flow.proto"; import "google/cloud/dialogflow/cx/v3/intent.proto"; import "google/cloud/dialogflow/cx/v3/page.proto"; @@ -726,6 +727,13 @@ message QueryParameters { // Optional. Search configuration for UCS search queries. SearchConfig search_config = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true and data stores are involved in serving the + // request then + // DetectIntentResponse.query_result.data_store_connection_signals + // will be filled with data that can help evaluations. + bool populate_data_store_connection_signals = 25 + [(google.api.field_behavior) = OPTIONAL]; } // Search configuration for UCS search queries. @@ -1005,6 +1013,13 @@ message QueryResult { // Indicates whether the Thumbs up/Thumbs down rating controls are need to be // shown for the response in the Dialogflow Messenger widget. bool allow_answer_feedback = 32; + + // Optional. Data store connection feature output signals. + // Filled only when data stores are involved in serving the query and + // DetectIntentRequest.populate data_store_connection_quality_signals is set + // to true in the request. + DataStoreConnectionSignals data_store_connection_signals = 35 + [(google.api.field_behavior) = OPTIONAL]; } // Represents the natural language text to be processed. @@ -1084,6 +1099,12 @@ message Match { // The query directly triggered an event. EVENT = 6; + + // The query was matched to a Knowledge Connector answer. + KNOWLEDGE_CONNECTOR = 8; + + // The query was handled by a [`Playbook`][Playbook]. + PLAYBOOK = 9; } // The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/test_case.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/test_case.proto index c624c8816d20..f082a667ce13 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/test_case.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/test_case.proto @@ -292,9 +292,8 @@ message TestConfig { // ID>/flows/`. // // Only one of `flow` and `page` should be set to indicate the starting point - // of the test case. If both are set, `page` takes precedence over `flow`. If - // neither is set, the test case will start with start page on the default - // start flow. + // of the test case. If neither is set, the test case will start with start + // page on the default start flow. string flow = 2 [ (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } ]; @@ -304,9 +303,8 @@ message TestConfig { // ID>/flows//pages/`. // // Only one of `flow` and `page` should be set to indicate the starting point - // of the test case. If both are set, `page` takes precedence over `flow`. If - // neither is set, the test case will start with start page on the default - // start flow. + // of the test case. If neither is set, the test case will start with start + // page on the default start flow. string page = 3 [ (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Page" } ]; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto index 3c17375478ee..fe9a2b6af34a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto @@ -101,6 +101,47 @@ message Webhook { // Represents configuration for a generic web service. message GenericWebService { + // Represents configuration of OAuth client credential flow for 3rd party + // API authentication. + message OAuthConfig { + // Required. The client ID provided by the 3rd party platform. + string client_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The client secret provided by the 3rd party platform. + string client_secret = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The token endpoint provided by the 3rd party platform to + // exchange an access token. + string token_endpoint = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The OAuth scopes to grant. + repeated string scopes = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Indicate the auth token type generated from the [Diglogflow service + // agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). + enum ServiceAgentAuth { + // Service agent auth type unspecified. Default to ID_TOKEN. + SERVICE_AGENT_AUTH_UNSPECIFIED = 0; + + // No token used. + NONE = 1; + + // Use [ID + // token](https://cloud.google.com/docs/authentication/token-types#id) + // generated from service agent. This can be used to access Cloud Function + // and Cloud Run after you grant Invoker role to + // `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`. + ID_TOKEN = 2; + + // Use [access + // token](https://cloud.google.com/docs/authentication/token-types#access) + // generated from service agent. This can be used to access other Google + // Cloud APIs after you grant required roles to + // `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`. + ACCESS_TOKEN = 3; + } + // Represents the type of webhook configuration. enum WebhookType { // Default value. This value is unused. @@ -169,6 +210,18 @@ message Webhook { repeated bytes allowed_ca_certs = 5 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The OAuth configuration of the webhook. If specified, + // Dialogflow will initiate the OAuth client credential flow to exchange an + // access token from the 3rd party platform and put it in the auth header. + OAuthConfig oauth_config = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicate the auth token type generated from the [Diglogflow + // service + // agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). + // The generated token is sent in the Authorization header. + ServiceAgentAuth service_agent_auth = 12 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Type of the webhook. WebhookType webhook_type = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -465,6 +518,9 @@ message WebhookRequest { // The sentiment analysis result of the current user request. The field is // filled when sentiment analysis is configured to be enabled for the request. SentimentAnalysisResult sentiment_analysis_result = 9; + + // Information about the language of the request. + LanguageInfo language_info = 18; } // The response message for a webhook call. @@ -649,3 +705,17 @@ message SessionInfo { // The map is keyed by parameters' display names. map parameters = 2; } + +// Represents the language information of the request. +message LanguageInfo { + // The language code specified in the original + // [request][google.cloud.dialogflow.cx.v3.QueryInput.language_code]. + string input_language_code = 1; + + // The language code detected for this request based on the user + // conversation. + string resolved_language_code = 2; + + // The confidence score of the detected language between 0 and 1. + float confidence_score = 3; +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettings.java index 36a11232f789..5ea8c50055de 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettings.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettings.java @@ -3051,7 +3051,7 @@ public interface LoggingSettingsOrBuilder * * *
        -     * If true, StackDriver logging is currently enabled.
        +     * Enables Google Cloud Logging.
              * 
        * * bool enable_stackdriver_logging = 2; @@ -3064,7 +3064,7 @@ public interface LoggingSettingsOrBuilder * * *
        -     * If true, DF Interaction logging is currently enabled.
        +     * Enables DF Interaction logging.
              * 
        * * bool enable_interaction_logging = 3; @@ -3072,6 +3072,21 @@ public interface LoggingSettingsOrBuilder * @return The enableInteractionLogging. */ boolean getEnableInteractionLogging(); + + /** + * + * + *
        +     * Enables consent-based end-user input redaction, if true, a pre-defined
        +     * session parameter `$session.params.conversation-redaction` will be
        +     * used to determine if the utterance should be redacted.
        +     * 
        + * + * bool enable_consent_based_redaction = 4; + * + * @return The enableConsentBasedRedaction. + */ + boolean getEnableConsentBasedRedaction(); } /** * @@ -3122,7 +3137,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -     * If true, StackDriver logging is currently enabled.
        +     * Enables Google Cloud Logging.
              * 
        * * bool enable_stackdriver_logging = 2; @@ -3140,7 +3155,7 @@ public boolean getEnableStackdriverLogging() { * * *
        -     * If true, DF Interaction logging is currently enabled.
        +     * Enables DF Interaction logging.
              * 
        * * bool enable_interaction_logging = 3; @@ -3152,6 +3167,26 @@ public boolean getEnableInteractionLogging() { return enableInteractionLogging_; } + public static final int ENABLE_CONSENT_BASED_REDACTION_FIELD_NUMBER = 4; + private boolean enableConsentBasedRedaction_ = false; + /** + * + * + *
        +     * Enables consent-based end-user input redaction, if true, a pre-defined
        +     * session parameter `$session.params.conversation-redaction` will be
        +     * used to determine if the utterance should be redacted.
        +     * 
        + * + * bool enable_consent_based_redaction = 4; + * + * @return The enableConsentBasedRedaction. + */ + @java.lang.Override + public boolean getEnableConsentBasedRedaction() { + return enableConsentBasedRedaction_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3172,6 +3207,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableInteractionLogging_ != false) { output.writeBool(3, enableInteractionLogging_); } + if (enableConsentBasedRedaction_ != false) { + output.writeBool(4, enableConsentBasedRedaction_); + } getUnknownFields().writeTo(output); } @@ -3187,6 +3225,10 @@ public int getSerializedSize() { if (enableInteractionLogging_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableInteractionLogging_); } + if (enableConsentBasedRedaction_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, enableConsentBasedRedaction_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3206,6 +3248,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableStackdriverLogging() != other.getEnableStackdriverLogging()) return false; if (getEnableInteractionLogging() != other.getEnableInteractionLogging()) return false; + if (getEnableConsentBasedRedaction() != other.getEnableConsentBasedRedaction()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3221,6 +3264,9 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableStackdriverLogging()); hash = (37 * hash) + ENABLE_INTERACTION_LOGGING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableInteractionLogging()); + hash = (37 * hash) + ENABLE_CONSENT_BASED_REDACTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableConsentBasedRedaction()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3368,6 +3414,7 @@ public Builder clear() { bitField0_ = 0; enableStackdriverLogging_ = false; enableInteractionLogging_ = false; + enableConsentBasedRedaction_ = false; return this; } @@ -3415,6 +3462,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.enableInteractionLogging_ = enableInteractionLogging_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableConsentBasedRedaction_ = enableConsentBasedRedaction_; + } } @java.lang.Override @@ -3475,6 +3525,9 @@ public Builder mergeFrom( if (other.getEnableInteractionLogging() != false) { setEnableInteractionLogging(other.getEnableInteractionLogging()); } + if (other.getEnableConsentBasedRedaction() != false) { + setEnableConsentBasedRedaction(other.getEnableConsentBasedRedaction()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3513,6 +3566,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 32: + { + enableConsentBasedRedaction_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3537,7 +3596,7 @@ public Builder mergeFrom( * * *
        -       * If true, StackDriver logging is currently enabled.
        +       * Enables Google Cloud Logging.
                * 
        * * bool enable_stackdriver_logging = 2; @@ -3552,7 +3611,7 @@ public boolean getEnableStackdriverLogging() { * * *
        -       * If true, StackDriver logging is currently enabled.
        +       * Enables Google Cloud Logging.
                * 
        * * bool enable_stackdriver_logging = 2; @@ -3571,7 +3630,7 @@ public Builder setEnableStackdriverLogging(boolean value) { * * *
        -       * If true, StackDriver logging is currently enabled.
        +       * Enables Google Cloud Logging.
                * 
        * * bool enable_stackdriver_logging = 2; @@ -3590,7 +3649,7 @@ public Builder clearEnableStackdriverLogging() { * * *
        -       * If true, DF Interaction logging is currently enabled.
        +       * Enables DF Interaction logging.
                * 
        * * bool enable_interaction_logging = 3; @@ -3605,7 +3664,7 @@ public boolean getEnableInteractionLogging() { * * *
        -       * If true, DF Interaction logging is currently enabled.
        +       * Enables DF Interaction logging.
                * 
        * * bool enable_interaction_logging = 3; @@ -3624,7 +3683,7 @@ public Builder setEnableInteractionLogging(boolean value) { * * *
        -       * If true, DF Interaction logging is currently enabled.
        +       * Enables DF Interaction logging.
                * 
        * * bool enable_interaction_logging = 3; @@ -3638,6 +3697,65 @@ public Builder clearEnableInteractionLogging() { return this; } + private boolean enableConsentBasedRedaction_; + /** + * + * + *
        +       * Enables consent-based end-user input redaction, if true, a pre-defined
        +       * session parameter `$session.params.conversation-redaction` will be
        +       * used to determine if the utterance should be redacted.
        +       * 
        + * + * bool enable_consent_based_redaction = 4; + * + * @return The enableConsentBasedRedaction. + */ + @java.lang.Override + public boolean getEnableConsentBasedRedaction() { + return enableConsentBasedRedaction_; + } + /** + * + * + *
        +       * Enables consent-based end-user input redaction, if true, a pre-defined
        +       * session parameter `$session.params.conversation-redaction` will be
        +       * used to determine if the utterance should be redacted.
        +       * 
        + * + * bool enable_consent_based_redaction = 4; + * + * @param value The enableConsentBasedRedaction to set. + * @return This builder for chaining. + */ + public Builder setEnableConsentBasedRedaction(boolean value) { + + enableConsentBasedRedaction_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +       * Enables consent-based end-user input redaction, if true, a pre-defined
        +       * session parameter `$session.params.conversation-redaction` will be
        +       * used to determine if the utterance should be redacted.
        +       * 
        + * + * bool enable_consent_based_redaction = 4; + * + * @return This builder for chaining. + */ + public Builder clearEnableConsentBasedRedaction() { + bitField0_ = (bitField0_ & ~0x00000004); + enableConsentBasedRedaction_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsProto.java index 31701a029f45..b416d2523528 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsProto.java @@ -62,7 +62,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gflow.cx.v3beta1\032\037google/api/field_behav" + "ior.proto\032,google/cloud/dialogflow/cx/v3" + "beta1/gcs.proto\032\036google/protobuf/duratio" - + "n.proto\"\314\007\n\020AdvancedSettings\022X\n\034audio_ex" + + "n.proto\"\365\007\n\020AdvancedSettings\022X\n\034audio_ex" + "port_gcs_destination\030\002 \001(\01322.google.clou" + "d.dialogflow.cx.v3beta1.GcsDestination\022\\" + "\n\017speech_settings\030\003 \001(\0132C.google.cloud.d" @@ -84,14 +84,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\t\022>\n\033interdigit_timeout_duration\030\006 \001(\0132" + "\031.google.protobuf.Duration\022?\n\034endpointin" + "g_timeout_duration\030\007 \001(\0132\031.google.protob" - + "uf.Duration\032Y\n\017LoggingSettings\022\"\n\032enable" - + "_stackdriver_logging\030\002 \001(\010\022\"\n\032enable_int" - + "eraction_logging\030\003 \001(\010B\317\001\n&com.google.cl" - + "oud.dialogflow.cx.v3beta1B\025AdvancedSetti" - + "ngsProtoP\001Z6cloud.google.com/go/dialogfl" - + "ow/cx/apiv3beta1/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Goo" - + "gle.Cloud.Dialogflow.Cx.V3Beta1\352\002&Google" - + "::Cloud::Dialogflow::CX::V3beta1b\006proto3" + + "uf.Duration\032\201\001\n\017LoggingSettings\022\"\n\032enabl" + + "e_stackdriver_logging\030\002 \001(\010\022\"\n\032enable_in" + + "teraction_logging\030\003 \001(\010\022&\n\036enable_consen" + + "t_based_redaction\030\004 \001(\010B\317\001\n&com.google.c" + + "loud.dialogflow.cx.v3beta1B\025AdvancedSett" + + "ingsProtoP\001Z6cloud.google.com/go/dialogf" + + "low/cx/apiv3beta1/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Go" + + "ogle.Cloud.Dialogflow.Cx.V3Beta1\352\002&Googl" + + "e::Cloud::Dialogflow::CX::V3beta1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -151,7 +153,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_LoggingSettings_descriptor, new java.lang.String[] { - "EnableStackdriverLogging", "EnableInteractionLogging", + "EnableStackdriverLogging", "EnableInteractionLogging", "EnableConsentBasedRedaction", }); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3beta1.GcsProto.getDescriptor(); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DataStoreConnectionProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DataStoreConnectionProto.java index 1172f2cefb66..30536920180f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DataStoreConnectionProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DataStoreConnectionProto.java @@ -79,7 +79,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ehavior.proto\"u\n\023DataStoreConnection\022J\n\017" + "data_store_type\030\001 \001(\01621.google.cloud.dia" + "logflow.cx.v3beta1.DataStoreType\022\022\n\ndata" - + "_store\030\002 \001(\t\"\301\022\n\032DataStoreConnectionSign" + + "_store\030\002 \001(\t\"\337\022\n\032DataStoreConnectionSign" + "als\022\201\001\n\033rewriter_model_call_signals\030\001 \001(" + "\0132W.google.cloud.dialogflow.cx.v3beta1.D" + "ataStoreConnectionSignals.RewriterModelC" @@ -101,52 +101,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "StoreConnectionSignals.GroundingSignalsB" + "\003\340A\001\022i\n\016safety_signals\030\t \001(\0132L.google.cl" + "oud.dialogflow.cx.v3beta1.DataStoreConne" - + "ctionSignals.SafetySignalsB\003\340A\001\032I\n\030Rewri" + + "ctionSignals.SafetySignalsB\003\340A\001\032X\n\030Rewri" + "terModelCallSignals\022\027\n\017rendered_prompt\030\001" - + " \001(\t\022\024\n\014model_output\030\002 \001(\t\032K\n\rSearchSnip" - + "pet\022\026\n\016document_title\030\001 \001(\t\022\024\n\014document_" - + "uri\030\002 \001(\t\022\014\n\004text\030\003 \001(\t\032Q\n AnswerGenerat" - + "ionModelCallSignals\022\027\n\017rendered_prompt\030\001" - + " \001(\t\022\024\n\014model_output\030\002 \001(\t\0326\n\nAnswerPart" - + "\022\014\n\004text\030\001 \001(\t\022\032\n\022supporting_indices\030\002 \003" - + "(\005\032\213\001\n\014CitedSnippet\022d\n\016search_snippet\030\001 " - + "\001(\0132L.google.cloud.dialogflow.cx.v3beta1" - + ".DataStoreConnectionSignals.SearchSnippe" - + "t\022\025\n\rsnippet_index\030\002 \001(\005\032\347\003\n\020GroundingSi" - + "gnals\022s\n\010decision\030\001 \001(\0162a.google.cloud.d" - + "ialogflow.cx.v3beta1.DataStoreConnection" - + "Signals.GroundingSignals.GroundingDecisi" - + "on\022s\n\005score\030\002 \001(\0162d.google.cloud.dialogf" - + "low.cx.v3beta1.DataStoreConnectionSignal" - + "s.GroundingSignals.GroundingScoreBucket\"" - + "m\n\021GroundingDecision\022\"\n\036GROUNDING_DECISI" - + "ON_UNSPECIFIED\020\000\022\031\n\025ACCEPTED_BY_GROUNDIN" - + "G\020\001\022\031\n\025REJECTED_BY_GROUNDING\020\002\"z\n\024Ground" - + "ingScoreBucket\022&\n\"GROUNDING_SCORE_BUCKET" - + "_UNSPECIFIED\020\000\022\014\n\010VERY_LOW\020\001\022\007\n\003LOW\020\003\022\n\n" - + "\006MEDIUM\020\004\022\010\n\004HIGH\020\005\022\r\n\tVERY_HIGH\020\006\032\243\004\n\rS" - + "afetySignals\022m\n\010decision\030\001 \001(\0162[.google." - + "cloud.dialogflow.cx.v3beta1.DataStoreCon" - + "nectionSignals.SafetySignals.SafetyDecis" - + "ion\022{\n\023banned_phrase_match\030\002 \001(\0162^.googl" - + "e.cloud.dialogflow.cx.v3beta1.DataStoreC" - + "onnectionSignals.SafetySignals.BannedPhr" - + "aseMatch\022\035\n\025matched_banned_phrase\030\003 \001(\t\"" - + "m\n\016SafetyDecision\022\037\n\033SAFETY_DECISION_UNS" - + "PECIFIED\020\000\022\034\n\030ACCEPTED_BY_SAFETY_CHECK\020\001" - + "\022\034\n\030REJECTED_BY_SAFETY_CHECK\020\002\"\227\001\n\021Banne" - + "dPhraseMatch\022#\n\037BANNED_PHRASE_MATCH_UNSP" - + "ECIFIED\020\000\022\034\n\030BANNED_PHRASE_MATCH_NONE\020\001\022" - + "\035\n\031BANNED_PHRASE_MATCH_QUERY\020\002\022 \n\034BANNED" - + "_PHRASE_MATCH_RESPONSE\020\003*b\n\rDataStoreTyp" - + "e\022\037\n\033DATA_STORE_TYPE_UNSPECIFIED\020\000\022\016\n\nPU" - + "BLIC_WEB\020\001\022\020\n\014UNSTRUCTURED\020\002\022\016\n\nSTRUCTUR" - + "ED\020\003B\322\001\n&com.google.cloud.dialogflow.cx." - + "v3beta1B\030DataStoreConnectionProtoP\001Z6clo" - + "ud.google.com/go/dialogflow/cx/apiv3beta" - + "1/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialo" - + "gflow.Cx.V3Beta1\352\002&Google::Cloud::Dialog" - + "flow::CX::V3beta1b\006proto3" + + " \001(\t\022\024\n\014model_output\030\002 \001(\t\022\r\n\005model\030\003 \001(" + + "\t\032K\n\rSearchSnippet\022\026\n\016document_title\030\001 \001" + + "(\t\022\024\n\014document_uri\030\002 \001(\t\022\014\n\004text\030\003 \001(\t\032`" + + "\n AnswerGenerationModelCallSignals\022\027\n\017re" + + "ndered_prompt\030\001 \001(\t\022\024\n\014model_output\030\002 \001(" + + "\t\022\r\n\005model\030\003 \001(\t\0326\n\nAnswerPart\022\014\n\004text\030\001" + + " \001(\t\022\032\n\022supporting_indices\030\002 \003(\005\032\213\001\n\014Cit" + + "edSnippet\022d\n\016search_snippet\030\001 \001(\0132L.goog" + + "le.cloud.dialogflow.cx.v3beta1.DataStore" + + "ConnectionSignals.SearchSnippet\022\025\n\rsnipp" + + "et_index\030\002 \001(\005\032\347\003\n\020GroundingSignals\022s\n\010d" + + "ecision\030\001 \001(\0162a.google.cloud.dialogflow." + + "cx.v3beta1.DataStoreConnectionSignals.Gr" + + "oundingSignals.GroundingDecision\022s\n\005scor" + + "e\030\002 \001(\0162d.google.cloud.dialogflow.cx.v3b" + + "eta1.DataStoreConnectionSignals.Groundin" + + "gSignals.GroundingScoreBucket\"m\n\021Groundi" + + "ngDecision\022\"\n\036GROUNDING_DECISION_UNSPECI" + + "FIED\020\000\022\031\n\025ACCEPTED_BY_GROUNDING\020\001\022\031\n\025REJ" + + "ECTED_BY_GROUNDING\020\002\"z\n\024GroundingScoreBu" + + "cket\022&\n\"GROUNDING_SCORE_BUCKET_UNSPECIFI" + + "ED\020\000\022\014\n\010VERY_LOW\020\001\022\007\n\003LOW\020\003\022\n\n\006MEDIUM\020\004\022" + + "\010\n\004HIGH\020\005\022\r\n\tVERY_HIGH\020\006\032\243\004\n\rSafetySigna" + + "ls\022m\n\010decision\030\001 \001(\0162[.google.cloud.dial" + + "ogflow.cx.v3beta1.DataStoreConnectionSig" + + "nals.SafetySignals.SafetyDecision\022{\n\023ban" + + "ned_phrase_match\030\002 \001(\0162^.google.cloud.di" + + "alogflow.cx.v3beta1.DataStoreConnectionS" + + "ignals.SafetySignals.BannedPhraseMatch\022\035" + + "\n\025matched_banned_phrase\030\003 \001(\t\"m\n\016SafetyD" + + "ecision\022\037\n\033SAFETY_DECISION_UNSPECIFIED\020\000" + + "\022\034\n\030ACCEPTED_BY_SAFETY_CHECK\020\001\022\034\n\030REJECT" + + "ED_BY_SAFETY_CHECK\020\002\"\227\001\n\021BannedPhraseMat" + + "ch\022#\n\037BANNED_PHRASE_MATCH_UNSPECIFIED\020\000\022" + + "\034\n\030BANNED_PHRASE_MATCH_NONE\020\001\022\035\n\031BANNED_" + + "PHRASE_MATCH_QUERY\020\002\022 \n\034BANNED_PHRASE_MA" + + "TCH_RESPONSE\020\003*b\n\rDataStoreType\022\037\n\033DATA_" + + "STORE_TYPE_UNSPECIFIED\020\000\022\016\n\nPUBLIC_WEB\020\001" + + "\022\020\n\014UNSTRUCTURED\020\002\022\016\n\nSTRUCTURED\020\003B\322\001\n&c" + + "om.google.cloud.dialogflow.cx.v3beta1B\030D" + + "ataStoreConnectionProtoP\001Z6cloud.google." + + "com/go/dialogflow/cx/apiv3beta1/cxpb;cxp" + + "b\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V" + + "3Beta1\352\002&Google::Cloud::Dialogflow::CX::" + + "V3beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -186,7 +187,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_DataStoreConnectionSignals_RewriterModelCallSignals_descriptor, new java.lang.String[] { - "RenderedPrompt", "ModelOutput", + "RenderedPrompt", "ModelOutput", "Model", }); internal_static_google_cloud_dialogflow_cx_v3beta1_DataStoreConnectionSignals_SearchSnippet_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_DataStoreConnectionSignals_descriptor @@ -206,7 +207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_DataStoreConnectionSignals_AnswerGenerationModelCallSignals_descriptor, new java.lang.String[] { - "RenderedPrompt", "ModelOutput", + "RenderedPrompt", "ModelOutput", "Model", }); internal_static_google_cloud_dialogflow_cx_v3beta1_DataStoreConnectionSignals_AnswerPart_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_DataStoreConnectionSignals_descriptor diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DataStoreConnectionSignals.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DataStoreConnectionSignals.java index 612ef5d0aeef..5bdb67fce0af 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DataStoreConnectionSignals.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DataStoreConnectionSignals.java @@ -124,6 +124,33 @@ public interface RewriterModelCallSignalsOrBuilder * @return The bytes for modelOutput. */ com.google.protobuf.ByteString getModelOutputBytes(); + + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The model. + */ + java.lang.String getModel(); + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The bytes for model. + */ + com.google.protobuf.ByteString getModelBytes(); } /** * @@ -148,6 +175,7 @@ private RewriterModelCallSignals(com.google.protobuf.GeneratedMessageV3.Builder< private RewriterModelCallSignals() { renderedPrompt_ = ""; modelOutput_ = ""; + model_ = ""; } @java.lang.Override @@ -275,6 +303,59 @@ public com.google.protobuf.ByteString getModelOutputBytes() { } } + public static final int MODEL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The model. + */ + @java.lang.Override + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The bytes for model. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -295,6 +376,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelOutput_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, modelOutput_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); + } getUnknownFields().writeTo(output); } @@ -310,6 +394,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelOutput_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, modelOutput_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -334,6 +421,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRenderedPrompt().equals(other.getRenderedPrompt())) return false; if (!getModelOutput().equals(other.getModelOutput())) return false; + if (!getModel().equals(other.getModel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -349,6 +437,8 @@ public int hashCode() { hash = (53 * hash) + getRenderedPrompt().hashCode(); hash = (37 * hash) + MODEL_OUTPUT_FIELD_NUMBER; hash = (53 * hash) + getModelOutput().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -517,6 +607,7 @@ public Builder clear() { bitField0_ = 0; renderedPrompt_ = ""; modelOutput_ = ""; + model_ = ""; return this; } @@ -571,6 +662,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.modelOutput_ = modelOutput_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.model_ = model_; + } } @java.lang.Override @@ -640,6 +734,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (!other.getModel().isEmpty()) { + model_ = other.model_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -678,6 +777,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -909,6 +1014,117 @@ public Builder setModelOutputBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object model_ = ""; + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @return The model. + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @return The bytes for model. + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @param value The model to set. + * @return This builder for chaining. + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + model_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @param value The bytes for model to set. + * @return This builder for chaining. + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2123,6 +2339,33 @@ public interface AnswerGenerationModelCallSignalsOrBuilder * @return The bytes for modelOutput. */ com.google.protobuf.ByteString getModelOutputBytes(); + + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The model. + */ + java.lang.String getModel(); + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The bytes for model. + */ + com.google.protobuf.ByteString getModelBytes(); } /** * @@ -2149,6 +2392,7 @@ private AnswerGenerationModelCallSignals( private AnswerGenerationModelCallSignals() { renderedPrompt_ = ""; modelOutput_ = ""; + model_ = ""; } @java.lang.Override @@ -2276,6 +2520,59 @@ public com.google.protobuf.ByteString getModelOutputBytes() { } } + public static final int MODEL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The model. + */ + @java.lang.Override + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + * + * + *
        +     * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +     * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +     * 
        + * + * string model = 3; + * + * @return The bytes for model. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2296,6 +2593,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelOutput_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, modelOutput_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); + } getUnknownFields().writeTo(output); } @@ -2311,6 +2611,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelOutput_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, modelOutput_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2336,6 +2639,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRenderedPrompt().equals(other.getRenderedPrompt())) return false; if (!getModelOutput().equals(other.getModelOutput())) return false; + if (!getModel().equals(other.getModel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2351,6 +2655,8 @@ public int hashCode() { hash = (53 * hash) + getRenderedPrompt().hashCode(); hash = (37 * hash) + MODEL_OUTPUT_FIELD_NUMBER; hash = (53 * hash) + getModelOutput().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2520,6 +2826,7 @@ public Builder clear() { bitField0_ = 0; renderedPrompt_ = ""; modelOutput_ = ""; + model_ = ""; return this; } @@ -2577,6 +2884,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.modelOutput_ = modelOutput_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.model_ = model_; + } } @java.lang.Override @@ -2647,6 +2957,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (!other.getModel().isEmpty()) { + model_ = other.model_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2685,6 +3000,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2916,6 +3237,117 @@ public Builder setModelOutputBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object model_ = ""; + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @return The model. + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @return The bytes for model. + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @param value The model to set. + * @return This builder for chaining. + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + model_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +       * Name of the generative model. For example, "gemini-ultra", "gemini-pro",
        +       * "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown.
        +       * 
        + * + * string model = 3; + * + * @param value The bytes for model to set. + * @return This builder for chaining. + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandler.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandler.java index f10481b08151..ebb8d662a3fe 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandler.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandler.java @@ -91,6 +91,7 @@ public enum TargetCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { TARGET_PAGE(2), TARGET_FLOW(3), + TARGET_PLAYBOOK(7), TARGET_NOT_SET(0); private final int value; @@ -113,6 +114,8 @@ public static TargetCase forNumber(int value) { return TARGET_PAGE; case 3: return TARGET_FLOW; + case 7: + return TARGET_PLAYBOOK; case 0: return TARGET_NOT_SET; default: @@ -443,6 +446,82 @@ public com.google.protobuf.ByteString getTargetFlowBytes() { } } + public static final int TARGET_PLAYBOOK_FIELD_NUMBER = 7; + /** + * + * + *
        +   * The target playbook to transition to.
        +   * Format:
        +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
        +   * 
        + * + * string target_playbook = 7 [(.google.api.resource_reference) = { ... } + * + * @return Whether the targetPlaybook field is set. + */ + public boolean hasTargetPlaybook() { + return targetCase_ == 7; + } + /** + * + * + *
        +   * The target playbook to transition to.
        +   * Format:
        +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
        +   * 
        + * + * string target_playbook = 7 [(.google.api.resource_reference) = { ... } + * + * @return The targetPlaybook. + */ + public java.lang.String getTargetPlaybook() { + java.lang.Object ref = ""; + if (targetCase_ == 7) { + ref = target_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetCase_ == 7) { + target_ = s; + } + return s; + } + } + /** + * + * + *
        +   * The target playbook to transition to.
        +   * Format:
        +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
        +   * 
        + * + * string target_playbook = 7 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for targetPlaybook. + */ + public com.google.protobuf.ByteString getTargetPlaybookBytes() { + java.lang.Object ref = ""; + if (targetCase_ == 7) { + ref = target_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetCase_ == 7) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -472,6 +551,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); } + if (targetCase_ == 7) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, target_); + } getUnknownFields().writeTo(output); } @@ -496,6 +578,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); } + if (targetCase_ == 7) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, target_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -526,6 +611,9 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getTargetFlow().equals(other.getTargetFlow())) return false; break; + case 7: + if (!getTargetPlaybook().equals(other.getTargetPlaybook())) return false; + break; case 0: default: } @@ -557,6 +645,10 @@ public int hashCode() { hash = (37 * hash) + TARGET_FLOW_FIELD_NUMBER; hash = (53 * hash) + getTargetFlow().hashCode(); break; + case 7: + hash = (37 * hash) + TARGET_PLAYBOOK_FIELD_NUMBER; + hash = (53 * hash) + getTargetPlaybook().hashCode(); + break; case 0: default: } @@ -865,6 +957,13 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.EventHandler oth onChanged(); break; } + case TARGET_PLAYBOOK: + { + targetCase_ = 7; + target_ = other.target_; + onChanged(); + break; + } case TARGET_NOT_SET: { break; @@ -929,6 +1028,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 7; + target_ = s; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1683,6 +1789,152 @@ public Builder setTargetFlowBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
        +     * The target playbook to transition to.
        +     * Format:
        +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
        +     * 
        + * + * string target_playbook = 7 [(.google.api.resource_reference) = { ... } + * + * @return Whether the targetPlaybook field is set. + */ + @java.lang.Override + public boolean hasTargetPlaybook() { + return targetCase_ == 7; + } + /** + * + * + *
        +     * The target playbook to transition to.
        +     * Format:
        +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
        +     * 
        + * + * string target_playbook = 7 [(.google.api.resource_reference) = { ... } + * + * @return The targetPlaybook. + */ + @java.lang.Override + public java.lang.String getTargetPlaybook() { + java.lang.Object ref = ""; + if (targetCase_ == 7) { + ref = target_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetCase_ == 7) { + target_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * The target playbook to transition to.
        +     * Format:
        +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
        +     * 
        + * + * string target_playbook = 7 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for targetPlaybook. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetPlaybookBytes() { + java.lang.Object ref = ""; + if (targetCase_ == 7) { + ref = target_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetCase_ == 7) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * The target playbook to transition to.
        +     * Format:
        +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
        +     * 
        + * + * string target_playbook = 7 [(.google.api.resource_reference) = { ... } + * + * @param value The targetPlaybook to set. + * @return This builder for chaining. + */ + public Builder setTargetPlaybook(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetCase_ = 7; + target_ = value; + onChanged(); + return this; + } + /** + * + * + *
        +     * The target playbook to transition to.
        +     * Format:
        +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
        +     * 
        + * + * string target_playbook = 7 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearTargetPlaybook() { + if (targetCase_ == 7) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The target playbook to transition to.
        +     * Format:
        +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
        +     * 
        + * + * string target_playbook = 7 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for targetPlaybook to set. + * @return This builder for chaining. + */ + public Builder setTargetPlaybookBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetCase_ = 7; + target_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandlerOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandlerOrBuilder.java index c70395d21ede..dcbe70625e00 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandlerOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandlerOrBuilder.java @@ -204,5 +204,48 @@ public interface EventHandlerOrBuilder */ com.google.protobuf.ByteString getTargetFlowBytes(); + /** + * + * + *
        +   * The target playbook to transition to.
        +   * Format:
        +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
        +   * 
        + * + * string target_playbook = 7 [(.google.api.resource_reference) = { ... } + * + * @return Whether the targetPlaybook field is set. + */ + boolean hasTargetPlaybook(); + /** + * + * + *
        +   * The target playbook to transition to.
        +   * Format:
        +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
        +   * 
        + * + * string target_playbook = 7 [(.google.api.resource_reference) = { ... } + * + * @return The targetPlaybook. + */ + java.lang.String getTargetPlaybook(); + /** + * + * + *
        +   * The target playbook to transition to.
        +   * Format:
        +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
        +   * 
        + * + * string target_playbook = 7 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for targetPlaybook. + */ + com.google.protobuf.ByteString getTargetPlaybookBytes(); + com.google.cloud.dialogflow.cx.v3beta1.EventHandler.TargetCase getTargetCase(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java index f880117fcd16..713ce3c6edc3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java @@ -1920,6 +1920,25 @@ public boolean hasMultiLanguageSettings() { : multiLanguageSettings_; } + public static final int LOCKED_FIELD_NUMBER = 30; + private boolean locked_ = false; + /** + * + * + *
        +   * Indicates whether the flow is locked for changes. If the flow is locked,
        +   * modifications to the flow will be rejected.
        +   * 
        + * + * bool locked = 30; + * + * @return The locked. + */ + @java.lang.Override + public boolean getLocked() { + return locked_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1965,6 +1984,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(28, getMultiLanguageSettings()); } + if (locked_ != false) { + output.writeBool(30, locked_); + } getUnknownFields().writeTo(output); } @@ -2012,6 +2034,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getMultiLanguageSettings()); } + if (locked_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, locked_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2051,6 +2076,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMultiLanguageSettings()) { if (!getMultiLanguageSettings().equals(other.getMultiLanguageSettings())) return false; } + if (getLocked() != other.getLocked()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2096,6 +2122,8 @@ public int hashCode() { hash = (37 * hash) + MULTI_LANGUAGE_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getMultiLanguageSettings().hashCode(); } + hash = (37 * hash) + LOCKED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocked()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2300,6 +2328,7 @@ public Builder clear() { multiLanguageSettingsBuilder_.dispose(); multiLanguageSettingsBuilder_ = null; } + locked_ = false; return this; } @@ -2396,6 +2425,9 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Flow result) { : multiLanguageSettingsBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.locked_ = locked_; + } result.bitField0_ |= to_bitField0_; } @@ -2535,6 +2567,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Flow other) { if (other.hasMultiLanguageSettings()) { mergeMultiLanguageSettings(other.getMultiLanguageSettings()); } + if (other.getLocked() != false) { + setLocked(other.getLocked()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2641,6 +2676,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 226 + case 240: + { + locked_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 240 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5336,6 +5377,62 @@ public Builder clearMultiLanguageSettings() { return multiLanguageSettingsBuilder_; } + private boolean locked_; + /** + * + * + *
        +     * Indicates whether the flow is locked for changes. If the flow is locked,
        +     * modifications to the flow will be rejected.
        +     * 
        + * + * bool locked = 30; + * + * @return The locked. + */ + @java.lang.Override + public boolean getLocked() { + return locked_; + } + /** + * + * + *
        +     * Indicates whether the flow is locked for changes. If the flow is locked,
        +     * modifications to the flow will be rejected.
        +     * 
        + * + * bool locked = 30; + * + * @param value The locked to set. + * @return This builder for chaining. + */ + public Builder setLocked(boolean value) { + + locked_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
        +     * Indicates whether the flow is locked for changes. If the flow is locked,
        +     * modifications to the flow will be rejected.
        +     * 
        + * + * bool locked = 30; + * + * @return This builder for chaining. + */ + public Builder clearLocked() { + bitField0_ = (bitField0_ & ~0x00000400); + locked_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowOrBuilder.java index dfc3e9d44152..e23e7593be79 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowOrBuilder.java @@ -609,4 +609,18 @@ com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder getTransitionRou */ com.google.cloud.dialogflow.cx.v3beta1.Flow.MultiLanguageSettingsOrBuilder getMultiLanguageSettingsOrBuilder(); + + /** + * + * + *
        +   * Indicates whether the flow is locked for changes. If the flow is locked,
        +   * modifications to the flow will be rejected.
        +   * 
        + * + * bool locked = 30; + * + * @return The locked. + */ + boolean getLocked(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowProto.java index f758894e71d9..75283633c428 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowProto.java @@ -134,7 +134,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\023MODEL_TYPE_ADVANCED\020\003\"{\n\021ModelTraining" + "Mode\022#\n\037MODEL_TRAINING_MODE_UNSPECIFIED\020" + "\000\022!\n\035MODEL_TRAINING_MODE_AUTOMATIC\020\001\022\036\n\032" - + "MODEL_TRAINING_MODE_MANUAL\020\002\"\376\006\n\004Flow\022\014\n" + + "MODEL_TRAINING_MODE_MANUAL\020\002\"\216\007\n\004Flow\022\014\n" + "\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023" + "\n\013description\030\003 \001(\t\022N\n\021transition_routes" + "\030\004 \003(\01323.google.cloud.dialogflow.cx.v3be" @@ -151,126 +151,127 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "3beta1.KnowledgeConnectorSettingsB\003\340A\001\022d" + "\n\027multi_language_settings\030\034 \001(\0132>.google" + ".cloud.dialogflow.cx.v3beta1.Flow.MultiL" - + "anguageSettingsB\003\340A\001\032u\n\025MultiLanguageSet" - + "tings\022,\n\037enable_multi_language_detection" - + "\030\001 \001(\010B\003\340A\001\022.\n!supported_response_langua" - + "ge_codes\030\002 \003(\tB\003\340A\001:h\352Ae\n\036dialogflow.goo" - + "gleapis.com/Flow\022Cprojects/{project}/loc" - + "ations/{location}/agents/{agent}/flows/{" - + "flow}\"\237\001\n\021CreateFlowRequest\0226\n\006parent\030\001 " - + "\001(\tB&\340A\002\372A \022\036dialogflow.googleapis.com/F" - + "low\022;\n\004flow\030\002 \001(\0132(.google.cloud.dialogf" - + "low.cx.v3beta1.FlowB\003\340A\002\022\025\n\rlanguage_cod" - + "e\030\003 \001(\t\"X\n\021DeleteFlowRequest\0224\n\004name\030\001 \001" - + "(\tB&\340A\002\372A \n\036dialogflow.googleapis.com/Fl" - + "ow\022\r\n\005force\030\002 \001(\010\"\210\001\n\020ListFlowsRequest\0226" - + "\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036dialogflow.googl" - + "eapis.com/Flow\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" - + "e_token\030\003 \001(\t\022\025\n\rlanguage_code\030\004 \001(\t\"e\n\021" - + "ListFlowsResponse\0227\n\005flows\030\001 \003(\0132(.googl" - + "e.cloud.dialogflow.cx.v3beta1.Flow\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"]\n\016GetFlowRequest\0224\n" - + "\004name\030\001 \001(\tB&\340A\002\372A \n\036dialogflow.googleap" - + "is.com/Flow\022\025\n\rlanguage_code\030\002 \001(\t\"\230\001\n\021U" - + "pdateFlowRequest\022;\n\004flow\030\001 \001(\0132(.google." - + "cloud.dialogflow.cx.v3beta1.FlowB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" - + "ldMask\022\025\n\rlanguage_code\030\003 \001(\t\"H\n\020TrainFl" - + "owRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036dialogf" - + "low.googleapis.com/Flow\"b\n\023ValidateFlowR" - + "equest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036dialogflow" - + ".googleapis.com/Flow\022\025\n\rlanguage_code\030\002 " - + "\001(\t\"}\n\036GetFlowValidationResultRequest\022D\n" - + "\004name\030\001 \001(\tB6\340A\002\372A0\n.dialogflow.googleap" - + "is.com/FlowValidationResult\022\025\n\rlanguage_" - + "code\030\002 \001(\t\"\266\002\n\024FlowValidationResult\022\014\n\004n" - + "ame\030\001 \001(\t\022R\n\023validation_messages\030\002 \003(\01325" - + ".google.cloud.dialogflow.cx.v3beta1.Vali" - + "dationMessage\022/\n\013update_time\030\003 \001(\0132\032.goo" - + "gle.protobuf.Timestamp:\212\001\352A\206\001\n.dialogflo" - + "w.googleapis.com/FlowValidationResult\022Tp" - + "rojects/{project}/locations/{location}/a" - + "gents/{agent}/flows/{flow}/validationRes" - + "ult\"\374\002\n\021ImportFlowRequest\0226\n\006parent\030\001 \001(" - + "\tB&\340A\002\372A \022\036dialogflow.googleapis.com/Flo" - + "w\022\022\n\010flow_uri\030\002 \001(\tH\000\022\026\n\014flow_content\030\003 " - + "\001(\014H\000\022Y\n\rimport_option\030\004 \001(\0162B.google.cl" - + "oud.dialogflow.cx.v3beta1.ImportFlowRequ" - + "est.ImportOption\022Y\n\024flow_import_strategy" - + "\030\005 \001(\01326.google.cloud.dialogflow.cx.v3be" - + "ta1.FlowImportStrategyB\003\340A\001\"E\n\014ImportOpt" - + "ion\022\035\n\031IMPORT_OPTION_UNSPECIFIED\020\000\022\010\n\004KE" - + "EP\020\001\022\014\n\010FALLBACK\020\002B\006\n\004flow\"m\n\022FlowImport" - + "Strategy\022W\n\026global_import_strategy\030\001 \001(\016" - + "22.google.cloud.dialogflow.cx.v3beta1.Im" - + "portStrategyB\003\340A\001\"G\n\022ImportFlowResponse\022" - + "1\n\004flow\030\001 \001(\tB#\372A \n\036dialogflow.googleapi" - + "s.com/Flow\"\207\001\n\021ExportFlowRequest\0224\n\004name" - + "\030\001 \001(\tB&\340A\002\372A \n\036dialogflow.googleapis.co" - + "m/Flow\022\025\n\010flow_uri\030\002 \001(\tB\003\340A\001\022%\n\030include" - + "_referenced_flows\030\004 \001(\010B\003\340A\001\"H\n\022ExportFl" - + "owResponse\022\022\n\010flow_uri\030\001 \001(\tH\000\022\026\n\014flow_c" - + "ontent\030\002 \001(\014H\000B\006\n\004flow2\233\021\n\005Flows\022\302\001\n\nCre" - + "ateFlow\0225.google.cloud.dialogflow.cx.v3b" - + "eta1.CreateFlowRequest\032(.google.cloud.di" - + "alogflow.cx.v3beta1.Flow\"S\332A\013parent,flow" - + "\202\323\344\223\002?\"7/v3beta1/{parent=projects/*/loca" - + "tions/*/agents/*}/flows:\004flow\022\243\001\n\nDelete" - + "Flow\0225.google.cloud.dialogflow.cx.v3beta" - + "1.DeleteFlowRequest\032\026.google.protobuf.Em" - + "pty\"F\332A\004name\202\323\344\223\0029*7/v3beta1/{name=proje" - + "cts/*/locations/*/agents/*/flows/*}\022\302\001\n\t" - + "ListFlows\0224.google.cloud.dialogflow.cx.v" - + "3beta1.ListFlowsRequest\0325.google.cloud.d" - + "ialogflow.cx.v3beta1.ListFlowsResponse\"H" - + "\332A\006parent\202\323\344\223\0029\0227/v3beta1/{parent=projec" - + "ts/*/locations/*/agents/*}/flows\022\257\001\n\007Get" - + "Flow\0222.google.cloud.dialogflow.cx.v3beta" - + "1.GetFlowRequest\032(.google.cloud.dialogfl" - + "ow.cx.v3beta1.Flow\"F\332A\004name\202\323\344\223\0029\0227/v3be" - + "ta1/{name=projects/*/locations/*/agents/" - + "*/flows/*}\022\314\001\n\nUpdateFlow\0225.google.cloud" - + ".dialogflow.cx.v3beta1.UpdateFlowRequest" - + "\032(.google.cloud.dialogflow.cx.v3beta1.Fl" - + "ow\"]\332A\020flow,update_mask\202\323\344\223\002D2/v3beta1/{parent=proje" - + "cts/*/locations/*/agents/*}/flows:import" - + ":\001*\022\334\001\n\nExportFlow\0225.google.cloud.dialog" - + "flow.cx.v3beta1.ExportFlowRequest\032\035.goog" - + "le.longrunning.Operation\"x\312A,\n\022ExportFlo" - + "wResponse\022\026google.protobuf.Struct\202\323\344\223\002C\"" - + ">/v3beta1/{name=projects/*/locations/*/a" - + "gents/*/flows/*}:export:\001*\032x\312A\031dialogflo" - + "w.googleapis.com\322AYhttps://www.googleapi" - + "s.com/auth/cloud-platform,https://www.go" - + "ogleapis.com/auth/dialogflowB\303\001\n&com.goo" - + "gle.cloud.dialogflow.cx.v3beta1B\tFlowPro" - + "toP\001Z6cloud.google.com/go/dialogflow/cx/" - + "apiv3beta1/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Google.Cl" - + "oud.Dialogflow.Cx.V3Beta1\352\002&Google::Clou" - + "d::Dialogflow::CX::V3beta1b\006proto3" + + "anguageSettingsB\003\340A\001\022\016\n\006locked\030\036 \001(\010\032u\n\025" + + "MultiLanguageSettings\022,\n\037enable_multi_la" + + "nguage_detection\030\001 \001(\010B\003\340A\001\022.\n!supported" + + "_response_language_codes\030\002 \003(\tB\003\340A\001:h\352Ae" + + "\n\036dialogflow.googleapis.com/Flow\022Cprojec" + + "ts/{project}/locations/{location}/agents" + + "/{agent}/flows/{flow}\"\237\001\n\021CreateFlowRequ" + + "est\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036dialogflow." + + "googleapis.com/Flow\022;\n\004flow\030\002 \001(\0132(.goog" + + "le.cloud.dialogflow.cx.v3beta1.FlowB\003\340A\002" + + "\022\025\n\rlanguage_code\030\003 \001(\t\"X\n\021DeleteFlowReq" + + "uest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036dialogflow.g" + + "oogleapis.com/Flow\022\r\n\005force\030\002 \001(\010\"\210\001\n\020Li" + + "stFlowsRequest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036" + + "dialogflow.googleapis.com/Flow\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\025\n\rlanguag" + + "e_code\030\004 \001(\t\"e\n\021ListFlowsResponse\0227\n\005flo" + + "ws\030\001 \003(\0132(.google.cloud.dialogflow.cx.v3" + + "beta1.Flow\022\027\n\017next_page_token\030\002 \001(\t\"]\n\016G" + + "etFlowRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036dia" + + "logflow.googleapis.com/Flow\022\025\n\rlanguage_" + + "code\030\002 \001(\t\"\230\001\n\021UpdateFlowRequest\022;\n\004flow" + + "\030\001 \001(\0132(.google.cloud.dialogflow.cx.v3be" + + "ta1.FlowB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\022\025\n\rlanguage_code\030" + + "\003 \001(\t\"H\n\020TrainFlowRequest\0224\n\004name\030\001 \001(\tB" + + "&\340A\002\372A \n\036dialogflow.googleapis.com/Flow\"" + + "b\n\023ValidateFlowRequest\0224\n\004name\030\001 \001(\tB&\340A" + + "\002\372A \n\036dialogflow.googleapis.com/Flow\022\025\n\r" + + "language_code\030\002 \001(\t\"}\n\036GetFlowValidation" + + "ResultRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.dia" + + "logflow.googleapis.com/FlowValidationRes" + + "ult\022\025\n\rlanguage_code\030\002 \001(\t\"\266\002\n\024FlowValid" + + "ationResult\022\014\n\004name\030\001 \001(\t\022R\n\023validation_" + + "messages\030\002 \003(\01325.google.cloud.dialogflow" + + ".cx.v3beta1.ValidationMessage\022/\n\013update_" + + "time\030\003 \001(\0132\032.google.protobuf.Timestamp:\212" + + "\001\352A\206\001\n.dialogflow.googleapis.com/FlowVal" + + "idationResult\022Tprojects/{project}/locati" + + "ons/{location}/agents/{agent}/flows/{flo" + + "w}/validationResult\"\374\002\n\021ImportFlowReques" + + "t\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036dialogflow.go" + + "ogleapis.com/Flow\022\022\n\010flow_uri\030\002 \001(\tH\000\022\026\n" + + "\014flow_content\030\003 \001(\014H\000\022Y\n\rimport_option\030\004" + + " \001(\0162B.google.cloud.dialogflow.cx.v3beta" + + "1.ImportFlowRequest.ImportOption\022Y\n\024flow" + + "_import_strategy\030\005 \001(\01326.google.cloud.di" + + "alogflow.cx.v3beta1.FlowImportStrategyB\003" + + "\340A\001\"E\n\014ImportOption\022\035\n\031IMPORT_OPTION_UNS" + + "PECIFIED\020\000\022\010\n\004KEEP\020\001\022\014\n\010FALLBACK\020\002B\006\n\004fl" + + "ow\"m\n\022FlowImportStrategy\022W\n\026global_impor" + + "t_strategy\030\001 \001(\01622.google.cloud.dialogfl" + + "ow.cx.v3beta1.ImportStrategyB\003\340A\001\"G\n\022Imp" + + "ortFlowResponse\0221\n\004flow\030\001 \001(\tB#\372A \n\036dial" + + "ogflow.googleapis.com/Flow\"\207\001\n\021ExportFlo" + + "wRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036dialogfl" + + "ow.googleapis.com/Flow\022\025\n\010flow_uri\030\002 \001(\t" + + "B\003\340A\001\022%\n\030include_referenced_flows\030\004 \001(\010B" + + "\003\340A\001\"H\n\022ExportFlowResponse\022\022\n\010flow_uri\030\001" + + " \001(\tH\000\022\026\n\014flow_content\030\002 \001(\014H\000B\006\n\004flow2\233" + + "\021\n\005Flows\022\302\001\n\nCreateFlow\0225.google.cloud.d" + + "ialogflow.cx.v3beta1.CreateFlowRequest\032(" + + ".google.cloud.dialogflow.cx.v3beta1.Flow" + + "\"S\332A\013parent,flow\202\323\344\223\002?\"7/v3beta1/{parent" + + "=projects/*/locations/*/agents/*}/flows:" + + "\004flow\022\243\001\n\nDeleteFlow\0225.google.cloud.dial" + + "ogflow.cx.v3beta1.DeleteFlowRequest\032\026.go" + + "ogle.protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7/v3b" + + "eta1/{name=projects/*/locations/*/agents" + + "/*/flows/*}\022\302\001\n\tListFlows\0224.google.cloud" + + ".dialogflow.cx.v3beta1.ListFlowsRequest\032" + + "5.google.cloud.dialogflow.cx.v3beta1.Lis" + + "tFlowsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v3beta" + + "1/{parent=projects/*/locations/*/agents/" + + "*}/flows\022\257\001\n\007GetFlow\0222.google.cloud.dial" + + "ogflow.cx.v3beta1.GetFlowRequest\032(.googl" + + "e.cloud.dialogflow.cx.v3beta1.Flow\"F\332A\004n" + + "ame\202\323\344\223\0029\0227/v3beta1/{name=projects/*/loc" + + "ations/*/agents/*/flows/*}\022\314\001\n\nUpdateFlo" + + "w\0225.google.cloud.dialogflow.cx.v3beta1.U" + + "pdateFlowRequest\032(.google.cloud.dialogfl" + + "ow.cx.v3beta1.Flow\"]\332A\020flow,update_mask\202" + + "\323\344\223\002D2/v3bet" + + "a1/{parent=projects/*/locations/*/agents" + + "/*}/flows:import:\001*\022\334\001\n\nExportFlow\0225.goo" + + "gle.cloud.dialogflow.cx.v3beta1.ExportFl" + + "owRequest\032\035.google.longrunning.Operation" + + "\"x\312A,\n\022ExportFlowResponse\022\026google.protob" + + "uf.Struct\202\323\344\223\002C\">/v3beta1/{name=projects" + + "/*/locations/*/agents/*/flows/*}:export:" + + "\001*\032x\312A\031dialogflow.googleapis.com\322AYhttps" + + "://www.googleapis.com/auth/cloud-platfor" + + "m,https://www.googleapis.com/auth/dialog" + + "flowB\303\001\n&com.google.cloud.dialogflow.cx." + + "v3beta1B\tFlowProtoP\001Z6cloud.google.com/g" + + "o/dialogflow/cx/apiv3beta1/cxpb;cxpb\370\001\001\242" + + "\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3Beta" + + "1\352\002&Google::Cloud::Dialogflow::CX::V3bet" + + "a1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -314,6 +315,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AdvancedSettings", "KnowledgeConnectorSettings", "MultiLanguageSettings", + "Locked", }); internal_static_google_cloud_dialogflow_cx_v3beta1_Flow_MultiLanguageSettings_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_Flow_descriptor.getNestedTypes().get(0); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java index 4069bb103cc3..5f43341f93c2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java @@ -145,6 +145,16 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { * EVENT = 6; */ EVENT(6), + /** + * + * + *
        +     * The query was matched to a Knowledge Connector answer.
        +     * 
        + * + * KNOWLEDGE_CONNECTOR = 8; + */ + KNOWLEDGE_CONNECTOR(8), /** * * @@ -229,6 +239,16 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { * EVENT = 6; */ public static final int EVENT_VALUE = 6; + /** + * + * + *
        +     * The query was matched to a Knowledge Connector answer.
        +     * 
        + * + * KNOWLEDGE_CONNECTOR = 8; + */ + public static final int KNOWLEDGE_CONNECTOR_VALUE = 8; /** * * @@ -279,6 +299,8 @@ public static MatchType forNumber(int value) { return NO_INPUT; case 6: return EVENT; + case 8: + return KNOWLEDGE_CONNECTOR; case 9: return PLAYBOOK; default: diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageProto.java index d213db7c0b19..1da5dfa401da 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageProto.java @@ -135,83 +135,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "illment\030\003 \001(\0132/.google.cloud.dialogflow." + "cx.v3beta1.FulfillmentB\003\340A\002\022Q\n\027reprompt_" + "event_handlers\030\005 \003(\01320.google.cloud.dial" - + "ogflow.cx.v3beta1.EventHandler\"\205\002\n\014Event" + + "ogflow.cx.v3beta1.EventHandler\"\311\002\n\014Event" + "Handler\022\021\n\004name\030\006 \001(\tB\003\340A\003\022\022\n\005event\030\004 \001(" + "\tB\003\340A\002\022L\n\023trigger_fulfillment\030\005 \001(\0132/.go" + "ogle.cloud.dialogflow.cx.v3beta1.Fulfill" + "ment\022:\n\013target_page\030\002 \001(\tB#\372A \n\036dialogfl" + "ow.googleapis.com/PageH\000\022:\n\013target_flow\030" + "\003 \001(\tB#\372A \n\036dialogflow.googleapis.com/Fl" - + "owH\000B\010\n\006target\"\330\002\n\017TransitionRoute\022\021\n\004na" - + "me\030\006 \001(\tB\003\340A\003\022\030\n\013description\030\010 \001(\tB\003\340A\001\022" - + "5\n\006intent\030\001 \001(\tB%\372A\"\n dialogflow.googlea" - + "pis.com/Intent\022\021\n\tcondition\030\002 \001(\t\022L\n\023tri" - + "gger_fulfillment\030\003 \001(\0132/.google.cloud.di" - + "alogflow.cx.v3beta1.Fulfillment\022:\n\013targe" - + "t_page\030\004 \001(\tB#\372A \n\036dialogflow.googleapis" - + ".com/PageH\000\022:\n\013target_flow\030\005 \001(\tB#\372A \n\036d" - + "ialogflow.googleapis.com/FlowH\000B\010\n\006targe" - + "t\"\210\001\n\020ListPagesRequest\0226\n\006parent\030\001 \001(\tB&" - + "\340A\002\372A \022\036dialogflow.googleapis.com/Page\022\025" - + "\n\rlanguage_code\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" - + "\022\022\n\npage_token\030\004 \001(\t\"e\n\021ListPagesRespons" - + "e\0227\n\005pages\030\001 \003(\0132(.google.cloud.dialogfl" - + "ow.cx.v3beta1.Page\022\027\n\017next_page_token\030\002 " - + "\001(\t\"]\n\016GetPageRequest\0224\n\004name\030\001 \001(\tB&\340A\002" - + "\372A \n\036dialogflow.googleapis.com/Page\022\025\n\rl" - + "anguage_code\030\002 \001(\t\"\237\001\n\021CreatePageRequest" - + "\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036dialogflow.goo" - + "gleapis.com/Page\022;\n\004page\030\002 \001(\0132(.google." - + "cloud.dialogflow.cx.v3beta1.PageB\003\340A\002\022\025\n" - + "\rlanguage_code\030\003 \001(\t\"\230\001\n\021UpdatePageReque" - + "st\022;\n\004page\030\001 \001(\0132(.google.cloud.dialogfl" - + "ow.cx.v3beta1.PageB\003\340A\002\022\025\n\rlanguage_code" - + "\030\002 \001(\t\022/\n\013update_mask\030\003 \001(\0132\032.google.pro" - + "tobuf.FieldMask\"X\n\021DeletePageRequest\0224\n\004" - + "name\030\001 \001(\tB&\340A\002\372A \n\036dialogflow.googleapi" - + "s.com/Page\022\r\n\005force\030\002 \001(\010\"\333\002\n\032KnowledgeC" - + "onnectorSettings\022\017\n\007enabled\030\001 \001(\010\022L\n\023tri" - + "gger_fulfillment\030\003 \001(\0132/.google.cloud.di" - + "alogflow.cx.v3beta1.Fulfillment\022:\n\013targe" - + "t_page\030\004 \001(\tB#\372A \n\036dialogflow.googleapis" - + ".com/PageH\000\022:\n\013target_flow\030\005 \001(\tB#\372A \n\036d" - + "ialogflow.googleapis.com/FlowH\000\022\\\n\026data_" - + "store_connections\030\006 \003(\01327.google.cloud.d" - + "ialogflow.cx.v3beta1.DataStoreConnection" - + "B\003\340A\001B\010\n\006target2\332\010\n\005Pages\022\312\001\n\tListPages\022" - + "4.google.cloud.dialogflow.cx.v3beta1.Lis" - + "tPagesRequest\0325.google.cloud.dialogflow." - + "cx.v3beta1.ListPagesResponse\"P\332A\006parent\202" - + "\323\344\223\002A\022?/v3beta1/{parent=projects/*/locat" - + "ions/*/agents/*/flows/*}/pages\022\267\001\n\007GetPa" - + "ge\0222.google.cloud.dialogflow.cx.v3beta1." - + "GetPageRequest\032(.google.cloud.dialogflow" - + ".cx.v3beta1.Page\"N\332A\004name\202\323\344\223\002A\022?/v3beta" - + "1/{name=projects/*/locations/*/agents/*/" - + "flows/*/pages/*}\022\312\001\n\nCreatePage\0225.google" - + ".cloud.dialogflow.cx.v3beta1.CreatePageR" - + "equest\032(.google.cloud.dialogflow.cx.v3be" - + "ta1.Page\"[\332A\013parent,page\202\323\344\223\002G\"?/v3beta1" - + "/{parent=projects/*/locations/*/agents/*" - + "/flows/*}/pages:\004page\022\324\001\n\nUpdatePage\0225.g" - + "oogle.cloud.dialogflow.cx.v3beta1.Update" - + "PageRequest\032(.google.cloud.dialogflow.cx" - + ".v3beta1.Page\"e\332A\020page,update_mask\202\323\344\223\002L" - + "2D/v3beta1/{page.name=projects/*/locatio" - + "ns/*/agents/*/flows/*/pages/*}:\004page\022\253\001\n" - + "\nDeletePage\0225.google.cloud.dialogflow.cx" - + ".v3beta1.DeletePageRequest\032\026.google.prot" - + "obuf.Empty\"N\332A\004name\202\323\344\223\002A*?/v3beta1/{nam" - + "e=projects/*/locations/*/agents/*/flows/" - + "*/pages/*}\032x\312A\031dialogflow.googleapis.com" - + "\322AYhttps://www.googleapis.com/auth/cloud" - + "-platform,https://www.googleapis.com/aut" - + "h/dialogflowB\303\001\n&com.google.cloud.dialog" - + "flow.cx.v3beta1B\tPageProtoP\001Z6cloud.goog" - + "le.com/go/dialogflow/cx/apiv3beta1/cxpb;" - + "cxpb\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow.C" - + "x.V3Beta1\352\002&Google::Cloud::Dialogflow::C" - + "X::V3beta1b\006proto3" + + "owH\000\022B\n\017target_playbook\030\007 \001(\tB\'\372A$\n\"dial" + + "ogflow.googleapis.com/PlaybookH\000B\010\n\006targ" + + "et\"\330\002\n\017TransitionRoute\022\021\n\004name\030\006 \001(\tB\003\340A" + + "\003\022\030\n\013description\030\010 \001(\tB\003\340A\001\0225\n\006intent\030\001 " + + "\001(\tB%\372A\"\n dialogflow.googleapis.com/Inte" + + "nt\022\021\n\tcondition\030\002 \001(\t\022L\n\023trigger_fulfill" + + "ment\030\003 \001(\0132/.google.cloud.dialogflow.cx." + + "v3beta1.Fulfillment\022:\n\013target_page\030\004 \001(\t" + + "B#\372A \n\036dialogflow.googleapis.com/PageH\000\022" + + ":\n\013target_flow\030\005 \001(\tB#\372A \n\036dialogflow.go" + + "ogleapis.com/FlowH\000B\010\n\006target\"\210\001\n\020ListPa" + + "gesRequest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036dial" + + "ogflow.googleapis.com/Page\022\025\n\rlanguage_c" + + "ode\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_tok" + + "en\030\004 \001(\t\"e\n\021ListPagesResponse\0227\n\005pages\030\001" + + " \003(\0132(.google.cloud.dialogflow.cx.v3beta" + + "1.Page\022\027\n\017next_page_token\030\002 \001(\t\"]\n\016GetPa" + + "geRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036dialogf" + + "low.googleapis.com/Page\022\025\n\rlanguage_code" + + "\030\002 \001(\t\"\237\001\n\021CreatePageRequest\0226\n\006parent\030\001" + + " \001(\tB&\340A\002\372A \022\036dialogflow.googleapis.com/" + + "Page\022;\n\004page\030\002 \001(\0132(.google.cloud.dialog" + + "flow.cx.v3beta1.PageB\003\340A\002\022\025\n\rlanguage_co" + + "de\030\003 \001(\t\"\230\001\n\021UpdatePageRequest\022;\n\004page\030\001" + + " \001(\0132(.google.cloud.dialogflow.cx.v3beta" + + "1.PageB\003\340A\002\022\025\n\rlanguage_code\030\002 \001(\t\022/\n\013up" + + "date_mask\030\003 \001(\0132\032.google.protobuf.FieldM" + + "ask\"X\n\021DeletePageRequest\0224\n\004name\030\001 \001(\tB&" + + "\340A\002\372A \n\036dialogflow.googleapis.com/Page\022\r" + + "\n\005force\030\002 \001(\010\"\333\002\n\032KnowledgeConnectorSett" + + "ings\022\017\n\007enabled\030\001 \001(\010\022L\n\023trigger_fulfill" + + "ment\030\003 \001(\0132/.google.cloud.dialogflow.cx." + + "v3beta1.Fulfillment\022:\n\013target_page\030\004 \001(\t" + + "B#\372A \n\036dialogflow.googleapis.com/PageH\000\022" + + ":\n\013target_flow\030\005 \001(\tB#\372A \n\036dialogflow.go" + + "ogleapis.com/FlowH\000\022\\\n\026data_store_connec" + + "tions\030\006 \003(\01327.google.cloud.dialogflow.cx" + + ".v3beta1.DataStoreConnectionB\003\340A\001B\010\n\006tar" + + "get2\332\010\n\005Pages\022\312\001\n\tListPages\0224.google.clo" + + "ud.dialogflow.cx.v3beta1.ListPagesReques" + + "t\0325.google.cloud.dialogflow.cx.v3beta1.L" + + "istPagesResponse\"P\332A\006parent\202\323\344\223\002A\022?/v3be" + + "ta1/{parent=projects/*/locations/*/agent" + + "s/*/flows/*}/pages\022\267\001\n\007GetPage\0222.google." + + "cloud.dialogflow.cx.v3beta1.GetPageReque" + + "st\032(.google.cloud.dialogflow.cx.v3beta1." + + "Page\"N\332A\004name\202\323\344\223\002A\022?/v3beta1/{name=proj" + + "ects/*/locations/*/agents/*/flows/*/page" + + "s/*}\022\312\001\n\nCreatePage\0225.google.cloud.dialo" + + "gflow.cx.v3beta1.CreatePageRequest\032(.goo" + + "gle.cloud.dialogflow.cx.v3beta1.Page\"[\332A" + + "\013parent,page\202\323\344\223\002G\"?/v3beta1/{parent=pro" + + "jects/*/locations/*/agents/*/flows/*}/pa" + + "ges:\004page\022\324\001\n\nUpdatePage\0225.google.cloud." + + "dialogflow.cx.v3beta1.UpdatePageRequest\032" + + "(.google.cloud.dialogflow.cx.v3beta1.Pag" + + "e\"e\332A\020page,update_mask\202\323\344\223\002L2D/v3beta1/{" + + "page.name=projects/*/locations/*/agents/" + + "*/flows/*/pages/*}:\004page\022\253\001\n\nDeletePage\022" + + "5.google.cloud.dialogflow.cx.v3beta1.Del" + + "etePageRequest\032\026.google.protobuf.Empty\"N" + + "\332A\004name\202\323\344\223\002A*?/v3beta1/{name=projects/*" + + "/locations/*/agents/*/flows/*/pages/*}\032x" + + "\312A\031dialogflow.googleapis.com\322AYhttps://w" + + "ww.googleapis.com/auth/cloud-platform,ht" + + "tps://www.googleapis.com/auth/dialogflow" + + "B\303\001\n&com.google.cloud.dialogflow.cx.v3be" + + "ta1B\tPageProtoP\001Z6cloud.google.com/go/di" + + "alogflow/cx/apiv3beta1/cxpb;cxpb\370\001\001\242\002\002DF" + + "\252\002\"Google.Cloud.Dialogflow.Cx.V3Beta1\352\002&" + + "Google::Cloud::Dialogflow::CX::V3beta1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -284,7 +286,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_EventHandler_descriptor, new java.lang.String[] { - "Name", "Event", "TriggerFulfillment", "TargetPage", "TargetFlow", "Target", + "Name", + "Event", + "TriggerFulfillment", + "TargetPage", + "TargetFlow", + "TargetPlaybook", + "Target", }); internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionRoute_descriptor = getDescriptor().getMessageTypes().get(3); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java index 805c9e896cd3..8008a9cb5e6c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java @@ -362,107 +362,107 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v3beta1.InputAudioConfigB\003\340A\002\022\r\n\005audio\030" + "\002 \001(\014\"\033\n\nEventInput\022\r\n\005event\030\001 \001(\t\"1\n\tDt" + "mfInput\022\016\n\006digits\030\001 \001(\t\022\024\n\014finish_digit\030" - + "\002 \001(\t\"\211\003\n\005Match\022:\n\006intent\030\001 \001(\0132*.google" + + "\002 \001(\t\"\242\003\n\005Match\022:\n\006intent\030\001 \001(\0132*.google" + ".cloud.dialogflow.cx.v3beta1.Intent\022\r\n\005e" + "vent\030\006 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.google." + "protobuf.Struct\022\026\n\016resolved_input\030\003 \001(\t\022" + "G\n\nmatch_type\030\004 \001(\01623.google.cloud.dialo" + "gflow.cx.v3beta1.Match.MatchType\022\022\n\nconf" - + "idence\030\005 \001(\002\"\222\001\n\tMatchType\022\032\n\026MATCH_TYPE" + + "idence\030\005 \001(\002\"\253\001\n\tMatchType\022\032\n\026MATCH_TYPE" + "_UNSPECIFIED\020\000\022\n\n\006INTENT\020\001\022\021\n\rDIRECT_INT" + "ENT\020\002\022\025\n\021PARAMETER_FILLING\020\003\022\014\n\010NO_MATCH" - + "\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVENT\020\006\022\014\n\010PLAYBOOK\020" - + "\t\"\210\002\n\022MatchIntentRequest\022:\n\007session\030\001 \001(" - + "\tB)\340A\002\372A#\n!dialogflow.googleapis.com/Ses" - + "sion\022I\n\014query_params\030\002 \001(\01323.google.clou" - + "d.dialogflow.cx.v3beta1.QueryParameters\022" - + "H\n\013query_input\030\003 \001(\0132..google.cloud.dial" - + "ogflow.cx.v3beta1.QueryInputB\003\340A\002\022!\n\031per" - + "sist_parameter_changes\030\005 \001(\010\"\232\002\n\023MatchIn" - + "tentResponse\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trigger_" - + "intent\030\002 \001(\tB%\372A\"\n dialogflow.googleapis" - + ".com/IntentH\000\022\024\n\ntranscript\030\003 \001(\tH\000\022\027\n\rt" - + "rigger_event\030\006 \001(\tH\000\022:\n\007matches\030\004 \003(\0132)." - + "google.cloud.dialogflow.cx.v3beta1.Match" - + "\022>\n\014current_page\030\005 \001(\0132(.google.cloud.di" - + "alogflow.cx.v3beta1.PageB\007\n\005query\"\372\001\n\024Fu" - + "lfillIntentRequest\022T\n\024match_intent_reque" - + "st\030\001 \001(\01326.google.cloud.dialogflow.cx.v3" - + "beta1.MatchIntentRequest\0228\n\005match\030\002 \001(\0132" - + ").google.cloud.dialogflow.cx.v3beta1.Mat" - + "ch\022R\n\023output_audio_config\030\003 \001(\01325.google" - + ".cloud.dialogflow.cx.v3beta1.OutputAudio" - + "Config\"\335\001\n\025FulfillIntentResponse\022\023\n\013resp" - + "onse_id\030\001 \001(\t\022E\n\014query_result\030\002 \001(\0132/.go" - + "ogle.cloud.dialogflow.cx.v3beta1.QueryRe" - + "sult\022\024\n\014output_audio\030\003 \001(\014\022R\n\023output_aud" - + "io_config\030\004 \001(\01325.google.cloud.dialogflo" - + "w.cx.v3beta1.OutputAudioConfig\";\n\027Sentim" - + "entAnalysisResult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagn" - + "itude\030\002 \001(\0022\343\016\n\010Sessions\022\272\002\n\014DetectInten" - + "t\0227.google.cloud.dialogflow.cx.v3beta1.D" - + "etectIntentRequest\0328.google.cloud.dialog" - + "flow.cx.v3beta1.DetectIntentResponse\"\266\001\202" - + "\323\344\223\002\257\001\"J/v3beta1/{session=projects/*/loc" - + "ations/*/agents/*/sessions/*}:detectInte" - + "nt:\001*Z^\"Y/v3beta1/{session=projects/*/lo" - + "cations/*/agents/*/environments/*/sessio" - + "ns/*}:detectIntent:\001*\022\351\002\n\033ServerStreamin" - + "gDetectIntent\0227.google.cloud.dialogflow." - + "cx.v3beta1.DetectIntentRequest\0328.google." - + "cloud.dialogflow.cx.v3beta1.DetectIntent" - + "Response\"\324\001\202\323\344\223\002\315\001\"Y/v3beta1/{session=pr" - + "ojects/*/locations/*/agents/*/sessions/*" - + "}:serverStreamingDetectIntent:\001*Zm\"h/v3b" + + "\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVENT\020\006\022\027\n\023KNOWLEDGE" + + "_CONNECTOR\020\010\022\014\n\010PLAYBOOK\020\t\"\210\002\n\022MatchInte" + + "ntRequest\022:\n\007session\030\001 \001(\tB)\340A\002\372A#\n!dial" + + "ogflow.googleapis.com/Session\022I\n\014query_p" + + "arams\030\002 \001(\01323.google.cloud.dialogflow.cx" + + ".v3beta1.QueryParameters\022H\n\013query_input\030" + + "\003 \001(\0132..google.cloud.dialogflow.cx.v3bet" + + "a1.QueryInputB\003\340A\002\022!\n\031persist_parameter_" + + "changes\030\005 \001(\010\"\232\002\n\023MatchIntentResponse\022\016\n" + + "\004text\030\001 \001(\tH\000\022?\n\016trigger_intent\030\002 \001(\tB%\372" + + "A\"\n dialogflow.googleapis.com/IntentH\000\022\024" + + "\n\ntranscript\030\003 \001(\tH\000\022\027\n\rtrigger_event\030\006 " + + "\001(\tH\000\022:\n\007matches\030\004 \003(\0132).google.cloud.di" + + "alogflow.cx.v3beta1.Match\022>\n\014current_pag" + + "e\030\005 \001(\0132(.google.cloud.dialogflow.cx.v3b" + + "eta1.PageB\007\n\005query\"\372\001\n\024FulfillIntentRequ" + + "est\022T\n\024match_intent_request\030\001 \001(\01326.goog" + + "le.cloud.dialogflow.cx.v3beta1.MatchInte" + + "ntRequest\0228\n\005match\030\002 \001(\0132).google.cloud." + + "dialogflow.cx.v3beta1.Match\022R\n\023output_au" + + "dio_config\030\003 \001(\01325.google.cloud.dialogfl" + + "ow.cx.v3beta1.OutputAudioConfig\"\335\001\n\025Fulf" + + "illIntentResponse\022\023\n\013response_id\030\001 \001(\t\022E" + + "\n\014query_result\030\002 \001(\0132/.google.cloud.dial" + + "ogflow.cx.v3beta1.QueryResult\022\024\n\014output_" + + "audio\030\003 \001(\014\022R\n\023output_audio_config\030\004 \001(\013" + + "25.google.cloud.dialogflow.cx.v3beta1.Ou" + + "tputAudioConfig\";\n\027SentimentAnalysisResu" + + "lt\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\343\016\n" + + "\010Sessions\022\272\002\n\014DetectIntent\0227.google.clou" + + "d.dialogflow.cx.v3beta1.DetectIntentRequ" + + "est\0328.google.cloud.dialogflow.cx.v3beta1" + + ".DetectIntentResponse\"\266\001\202\323\344\223\002\257\001\"J/v3beta" + + "1/{session=projects/*/locations/*/agents" + + "/*/sessions/*}:detectIntent:\001*Z^\"Y/v3bet" + + "a1/{session=projects/*/locations/*/agent" + + "s/*/environments/*/sessions/*}:detectInt" + + "ent:\001*\022\351\002\n\033ServerStreamingDetectIntent\0227" + + ".google.cloud.dialogflow.cx.v3beta1.Dete" + + "ctIntentRequest\0328.google.cloud.dialogflo" + + "w.cx.v3beta1.DetectIntentResponse\"\324\001\202\323\344\223" + + "\002\315\001\"Y/v3beta1/{session=projects/*/locati" + + "ons/*/agents/*/sessions/*}:serverStreami" + + "ngDetectIntent:\001*Zm\"h/v3beta1/{session=p" + + "rojects/*/locations/*/agents/*/environme" + + "nts/*/sessions/*}:serverStreamingDetectI" + + "ntent:\001*0\001\022\242\001\n\025StreamingDetectIntent\022@.g" + + "oogle.cloud.dialogflow.cx.v3beta1.Stream" + + "ingDetectIntentRequest\032A.google.cloud.di" + + "alogflow.cx.v3beta1.StreamingDetectInten" + + "tResponse\"\000(\0010\001\022\265\002\n\013MatchIntent\0226.google" + + ".cloud.dialogflow.cx.v3beta1.MatchIntent" + + "Request\0327.google.cloud.dialogflow.cx.v3b" + + "eta1.MatchIntentResponse\"\264\001\202\323\344\223\002\255\001\"I/v3b" + "eta1/{session=projects/*/locations/*/age" - + "nts/*/environments/*/sessions/*}:serverS" - + "treamingDetectIntent:\001*0\001\022\242\001\n\025StreamingD" - + "etectIntent\022@.google.cloud.dialogflow.cx" - + ".v3beta1.StreamingDetectIntentRequest\032A." - + "google.cloud.dialogflow.cx.v3beta1.Strea" - + "mingDetectIntentResponse\"\000(\0010\001\022\265\002\n\013Match" - + "Intent\0226.google.cloud.dialogflow.cx.v3be" - + "ta1.MatchIntentRequest\0327.google.cloud.di" - + "alogflow.cx.v3beta1.MatchIntentResponse\"" - + "\264\001\202\323\344\223\002\255\001\"I/v3beta1/{session=projects/*/" - + "locations/*/agents/*/sessions/*}:matchIn" - + "tent:\001*Z]\"X/v3beta1/{session=projects/*/" - + "locations/*/agents/*/environments/*/sess" - + "ions/*}:matchIntent:\001*\022\351\002\n\rFulfillIntent" - + "\0228.google.cloud.dialogflow.cx.v3beta1.Fu" - + "lfillIntentRequest\0329.google.cloud.dialog" - + "flow.cx.v3beta1.FulfillIntentResponse\"\342\001" - + "\202\323\344\223\002\333\001\"`/v3beta1/{match_intent_request." - + "session=projects/*/locations/*/agents/*/" - + "sessions/*}:fulfillIntent:\001*Zt\"o/v3beta1" - + "/{match_intent_request.session=projects/" - + "*/locations/*/agents/*/environments/*/se" - + "ssions/*}:fulfillIntent:\001*\022\352\001\n\024SubmitAns" - + "werFeedback\022?.google.cloud.dialogflow.cx" - + ".v3beta1.SubmitAnswerFeedbackRequest\0322.g" - + "oogle.cloud.dialogflow.cx.v3beta1.Answer" - + "Feedback\"]\202\323\344\223\002W\"R/v3beta1/{session=proj" - + "ects/*/locations/*/agents/*/sessions/*}:" - + "submitAnswerFeedback:\001*\032x\312A\031dialogflow.g" - + "oogleapis.com\322AYhttps://www.googleapis.c" - + "om/auth/cloud-platform,https://www.googl" - + "eapis.com/auth/dialogflowB\347\004\n&com.google" - + ".cloud.dialogflow.cx.v3beta1B\014SessionPro" - + "toP\001Z6cloud.google.com/go/dialogflow/cx/" - + "apiv3beta1/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Google.Cl" - + "oud.Dialogflow.Cx.V3Beta1\352\002&Google::Clou" - + "d::Dialogflow::CX::V3beta1\352A\324\001\n!dialogfl" - + "ow.googleapis.com/Session\022Iprojects/{pro" - + "ject}/locations/{location}/agents/{agent" - + "}/sessions/{session}\022dprojects/{project}" - + "/locations/{location}/agents/{agent}/env" - + "ironments/{environment}/sessions/{sessio" - + "n}\352A\305\001\n(discoveryengine.googleapis.com/D" - + "ataStore\022?projects/{project}/locations/{" - + "location}/dataStores/{data_store}\022Xproje" - + "cts/{project}/locations/{location}/colle" - + "ctions/{collection}/dataStores/{data_sto" - + "re}b\006proto3" + + "nts/*/sessions/*}:matchIntent:\001*Z]\"X/v3b" + + "eta1/{session=projects/*/locations/*/age" + + "nts/*/environments/*/sessions/*}:matchIn" + + "tent:\001*\022\351\002\n\rFulfillIntent\0228.google.cloud" + + ".dialogflow.cx.v3beta1.FulfillIntentRequ" + + "est\0329.google.cloud.dialogflow.cx.v3beta1" + + ".FulfillIntentResponse\"\342\001\202\323\344\223\002\333\001\"`/v3bet" + + "a1/{match_intent_request.session=project" + + "s/*/locations/*/agents/*/sessions/*}:ful" + + "fillIntent:\001*Zt\"o/v3beta1/{match_intent_" + + "request.session=projects/*/locations/*/a" + + "gents/*/environments/*/sessions/*}:fulfi" + + "llIntent:\001*\022\352\001\n\024SubmitAnswerFeedback\022?.g" + + "oogle.cloud.dialogflow.cx.v3beta1.Submit" + + "AnswerFeedbackRequest\0322.google.cloud.dia" + + "logflow.cx.v3beta1.AnswerFeedback\"]\202\323\344\223\002" + + "W\"R/v3beta1/{session=projects/*/location" + + "s/*/agents/*/sessions/*}:submitAnswerFee" + + "dback:\001*\032x\312A\031dialogflow.googleapis.com\322A" + + "Yhttps://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "dialogflowB\347\004\n&com.google.cloud.dialogfl" + + "ow.cx.v3beta1B\014SessionProtoP\001Z6cloud.goo" + + "gle.com/go/dialogflow/cx/apiv3beta1/cxpb" + + ";cxpb\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow." + + "Cx.V3Beta1\352\002&Google::Cloud::Dialogflow::" + + "CX::V3beta1\352A\324\001\n!dialogflow.googleapis.c" + + "om/Session\022Iprojects/{project}/locations" + + "/{location}/agents/{agent}/sessions/{ses" + + "sion}\022dprojects/{project}/locations/{loc" + + "ation}/agents/{agent}/environments/{envi" + + "ronment}/sessions/{session}\352A\305\001\n(discove" + + "ryengine.googleapis.com/DataStore\022?proje" + + "cts/{project}/locations/{location}/dataS" + + "tores/{data_store}\022Xprojects/{project}/l" + + "ocations/{location}/collections/{collect" + + "ion}/dataStores/{data_store}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfig.java index e7b7fc884dc9..3f66919559f3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfig.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfig.java @@ -142,9 +142,8 @@ public com.google.protobuf.ByteString getTrackingParametersBytes(int index) { * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -172,9 +171,8 @@ public java.lang.String getFlow() { * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -207,9 +205,8 @@ public com.google.protobuf.ByteString getFlowBytes() { * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } @@ -237,9 +234,8 @@ public java.lang.String getPage() { * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } @@ -847,9 +843,8 @@ public Builder addTrackingParametersBytes(com.google.protobuf.ByteString value) * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -876,9 +871,8 @@ public java.lang.String getFlow() { * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -905,9 +899,8 @@ public com.google.protobuf.ByteString getFlowBytes() { * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -933,9 +926,8 @@ public Builder setFlow(java.lang.String value) { * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -957,9 +949,8 @@ public Builder clearFlow() { * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -988,9 +979,8 @@ public Builder setFlowBytes(com.google.protobuf.ByteString value) { * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } @@ -1017,9 +1007,8 @@ public java.lang.String getPage() { * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } @@ -1046,9 +1035,8 @@ public com.google.protobuf.ByteString getPageBytes() { * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } @@ -1074,9 +1062,8 @@ public Builder setPage(java.lang.String value) { * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } @@ -1098,9 +1085,8 @@ public Builder clearPage() { * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfigOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfigOrBuilder.java index 4fb9dc800e4a..b933a3357f59 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfigOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfigOrBuilder.java @@ -84,9 +84,8 @@ public interface TestConfigOrBuilder * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -103,9 +102,8 @@ public interface TestConfigOrBuilder * ID>/flows/<Flow ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string flow = 2 [(.google.api.resource_reference) = { ... } @@ -123,9 +121,8 @@ public interface TestConfigOrBuilder * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } @@ -142,9 +139,8 @@ public interface TestConfigOrBuilder * ID>/flows/<Flow ID>/pages/<Page ID>`. * * Only one of `flow` and `page` should be set to indicate the starting point - * of the test case. If both are set, `page` takes precedence over `flow`. If - * neither is set, the test case will start with start page on the default - * start flow. + * of the test case. If neither is set, the test case will start with start + * page on the default start flow. * * * string page = 3 [(.google.api.resource_reference) = { ... } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Tool.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Tool.java index 9df714297482..31be5c842bac 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Tool.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Tool.java @@ -351,6 +351,48 @@ public interface OpenApiToolOrBuilder */ com.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfigOrBuilder getTlsConfigOrBuilder(); + /** + * + * + *
        +     * Optional. Service Directory configuration.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + boolean hasServiceDirectoryConfig(); + /** + * + * + *
        +     * Optional. Service Directory configuration.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig getServiceDirectoryConfig(); + /** + * + * + *
        +     * Optional. Service Directory configuration.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder(); + com.google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool.SchemaCase getSchemaCase(); } /** @@ -626,6 +668,65 @@ public com.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfigOrBuilder getTlsConf : tlsConfig_; } + public static final int SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + serviceDirectoryConfig_; + /** + * + * + *
        +     * Optional. Service Directory configuration.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + @java.lang.Override + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
        +     * Optional. Service Directory configuration.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + getServiceDirectoryConfig() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + /** + * + * + *
        +     * Optional. Service Directory configuration.
        +     * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -649,6 +750,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getTlsConfig()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getServiceDirectoryConfig()); + } getUnknownFields().writeTo(output); } @@ -667,6 +771,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTlsConfig()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getServiceDirectoryConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -691,6 +800,10 @@ public boolean equals(final java.lang.Object obj) { if (hasTlsConfig()) { if (!getTlsConfig().equals(other.getTlsConfig())) return false; } + if (hasServiceDirectoryConfig() != other.hasServiceDirectoryConfig()) return false; + if (hasServiceDirectoryConfig()) { + if (!getServiceDirectoryConfig().equals(other.getServiceDirectoryConfig())) return false; + } if (!getSchemaCase().equals(other.getSchemaCase())) return false; switch (schemaCase_) { case 1: @@ -718,6 +831,10 @@ public int hashCode() { hash = (37 * hash) + TLS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getTlsConfig().hashCode(); } + if (hasServiceDirectoryConfig()) { + hash = (37 * hash) + SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceDirectoryConfig().hashCode(); + } switch (schemaCase_) { case 1: hash = (37 * hash) + TEXT_SCHEMA_FIELD_NUMBER; @@ -872,6 +989,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAuthenticationFieldBuilder(); getTlsConfigFieldBuilder(); + getServiceDirectoryConfigFieldBuilder(); } } @@ -889,6 +1007,11 @@ public Builder clear() { tlsConfigBuilder_.dispose(); tlsConfigBuilder_ = null; } + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } schemaCase_ = 0; schema_ = null; return this; @@ -938,6 +1061,13 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTo result.tlsConfig_ = tlsConfigBuilder_ == null ? tlsConfig_ : tlsConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceDirectoryConfig_ = + serviceDirectoryConfigBuilder_ == null + ? serviceDirectoryConfig_ + : serviceDirectoryConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -1001,6 +1131,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool if (other.hasTlsConfig()) { mergeTlsConfig(other.getTlsConfig()); } + if (other.hasServiceDirectoryConfig()) { + mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); + } switch (other.getSchemaCase()) { case TEXT_SCHEMA: { @@ -1060,6 +1193,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + input.readMessage( + getServiceDirectoryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1643,6 +1783,221 @@ public com.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig.Builder getTlsConfi return tlsConfigBuilder_; } + private com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + serviceDirectoryConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig, + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfigOrBuilder> + serviceDirectoryConfigBuilder_; + /** + * + * + *
        +       * Optional. Service Directory configuration.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
        +       * Optional. Service Directory configuration.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + public com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + getServiceDirectoryConfig() { + if (serviceDirectoryConfigBuilder_ == null) { + return serviceDirectoryConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + .getDefaultInstance() + : serviceDirectoryConfig_; + } else { + return serviceDirectoryConfigBuilder_.getMessage(); + } + } + /** + * + * + *
        +       * Optional. Service Directory configuration.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceDirectoryConfig_ = value; + } else { + serviceDirectoryConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. Service Directory configuration.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.Builder + builderForValue) { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfig_ = builderForValue.build(); + } else { + serviceDirectoryConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. Service Directory configuration.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceDirectoryConfig( + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && serviceDirectoryConfig_ != null + && serviceDirectoryConfig_ + != com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + .getDefaultInstance()) { + getServiceDirectoryConfigBuilder().mergeFrom(value); + } else { + serviceDirectoryConfig_ = value; + } + } else { + serviceDirectoryConfigBuilder_.mergeFrom(value); + } + if (serviceDirectoryConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
        +       * Optional. Service Directory configuration.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceDirectoryConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +       * Optional. Service Directory configuration.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.Builder + getServiceDirectoryConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getServiceDirectoryConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
        +       * Optional. Service Directory configuration.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + if (serviceDirectoryConfigBuilder_ != null) { + return serviceDirectoryConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceDirectoryConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + .getDefaultInstance() + : serviceDirectoryConfig_; + } + } + /** + * + * + *
        +       * Optional. Service Directory configuration.
        +       * 
        + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig, + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfigOrBuilder> + getServiceDirectoryConfigFieldBuilder() { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig, + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfigOrBuilder>( + getServiceDirectoryConfig(), getParentForChildren(), isClean()); + serviceDirectoryConfig_ = null; + } + return serviceDirectoryConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12221,6 +12576,722 @@ public com.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig getDefaultInstanceF } } + public interface ServiceDirectoryConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Required. The name of [Service
        +     * Directory](https://cloud.google.com/service-directory) service.
        +     * Format:
        +     * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
        +     * `LocationID` of the service directory must be the same as the location
        +     * of the agent.
        +     * 
        + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + java.lang.String getService(); + /** + * + * + *
        +     * Required. The name of [Service
        +     * Directory](https://cloud.google.com/service-directory) service.
        +     * Format:
        +     * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
        +     * `LocationID` of the service directory must be the same as the location
        +     * of the agent.
        +     * 
        + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + com.google.protobuf.ByteString getServiceBytes(); + } + /** + * + * + *
        +   * Configuration for tools using Service Directory.
        +   * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig} + */ + public static final class ServiceDirectoryConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig) + ServiceDirectoryConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServiceDirectoryConfig.newBuilder() to construct. + private ServiceDirectoryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServiceDirectoryConfig() { + service_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServiceDirectoryConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_ServiceDirectoryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.class, + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.Builder.class); + } + + public static final int SERVICE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object service_ = ""; + /** + * + * + *
        +     * Required. The name of [Service
        +     * Directory](https://cloud.google.com/service-directory) service.
        +     * Format:
        +     * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
        +     * `LocationID` of the service directory must be the same as the location
        +     * of the agent.
        +     * 
        + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + @java.lang.Override + public java.lang.String getService() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } + } + /** + * + * + *
        +     * Required. The name of [Service
        +     * Directory](https://cloud.google.com/service-directory) service.
        +     * Format:
        +     * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
        +     * `LocationID` of the service directory must be the same as the location
        +     * of the agent.
        +     * 
        + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig other = + (com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig) obj; + + if (!getService().equals(other.getService())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +     * Configuration for tools using Service Directory.
        +     * 
        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig) + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_ServiceDirectoryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.class, + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + service_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig build() { + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig result = + new com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.service_ = service_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + .getDefaultInstance()) return this; + if (!other.getService().isEmpty()) { + service_ = other.service_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + service_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object service_ = ""; + /** + * + * + *
        +       * Required. The name of [Service
        +       * Directory](https://cloud.google.com/service-directory) service.
        +       * Format:
        +       * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
        +       * `LocationID` of the service directory must be the same as the location
        +       * of the agent.
        +       * 
        + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * Required. The name of [Service
        +       * Directory](https://cloud.google.com/service-directory) service.
        +       * Format:
        +       * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
        +       * `LocationID` of the service directory must be the same as the location
        +       * of the agent.
        +       * 
        + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * Required. The name of [Service
        +       * Directory](https://cloud.google.com/service-directory) service.
        +       * Format:
        +       * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
        +       * `LocationID` of the service directory must be the same as the location
        +       * of the agent.
        +       * 
        + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The service to set. + * @return This builder for chaining. + */ + public Builder setService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + service_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * Required. The name of [Service
        +       * Directory](https://cloud.google.com/service-directory) service.
        +       * Format:
        +       * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
        +       * `LocationID` of the service directory must be the same as the location
        +       * of the agent.
        +       * 
        + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearService() { + service_ = getDefaultInstance().getService(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +       * Required. The name of [Service
        +       * Directory](https://cloud.google.com/service-directory) service.
        +       * Format:
        +       * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
        +       * `LocationID` of the service directory must be the same as the location
        +       * of the agent.
        +       * 
        + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for service to set. + * @return This builder for chaining. + */ + public Builder setServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig) + private static final com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceDirectoryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.ServiceDirectoryConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int specificationCase_ = 0; @SuppressWarnings("serial") diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolProto.java index 24224544a7fb..4480be85d45f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolProto.java @@ -108,6 +108,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_TLSConfig_CACert_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_TLSConfig_CACert_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_ServiceDirectoryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_ServiceDirectoryConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3beta1_ExportToolsMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -160,7 +164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "beta1.ToolB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g" + "oogle.protobuf.FieldMask\"X\n\021DeleteToolRe" + "quest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036dialogflow." - + "googleapis.com/Tool\022\r\n\005force\030\002 \001(\010\"\234\022\n\004T" + + "googleapis.com/Tool\022\r\n\005force\030\002 \001(\010\"\340\023\n\004T" + "ool\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB" + "\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\002\022M\n\ropen_a" + "pi_spec\030\004 \001(\01324.google.cloud.dialogflow." @@ -172,91 +176,96 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nction_spec\030\r \001(\01325.google.cloud.dialogf" + "low.cx.v3beta1.Tool.FunctionToolH\000\022I\n\tto" + "ol_type\030\014 \001(\01621.google.cloud.dialogflow." - + "cx.v3beta1.Tool.ToolTypeB\003\340A\003\032\326\001\n\013OpenAp" + + "cx.v3beta1.Tool.ToolTypeB\003\340A\003\032\276\002\n\013OpenAp" + "iTool\022\032\n\013text_schema\030\001 \001(\tB\003\340A\002H\000\022T\n\016aut" + "hentication\030\002 \001(\01327.google.cloud.dialogf" + "low.cx.v3beta1.Tool.AuthenticationB\003\340A\001\022" + "K\n\ntls_config\030\003 \001(\01322.google.cloud.dialo" - + "gflow.cx.v3beta1.Tool.TLSConfigB\003\340A\001B\010\n\006" - + "schema\032\344\001\n\rDataStoreTool\022\\\n\026data_store_c" - + "onnections\030\001 \003(\01327.google.cloud.dialogfl" - + "ow.cx.v3beta1.DataStoreConnectionB\003\340A\002\022c" - + "\n\017fallback_prompt\030\003 \001(\0132E.google.cloud.d" - + "ialogflow.cx.v3beta1.Tool.DataStoreTool." - + "FallbackPromptB\003\340A\002\032\020\n\016FallbackPrompt\032\"\n" - + "\rExtensionTool\022\021\n\004name\030\001 \001(\tB\003\340A\002\032w\n\014Fun" - + "ctionTool\0222\n\014input_schema\030\001 \001(\0132\027.google" - + ".protobuf.StructB\003\340A\001\0223\n\routput_schema\030\002" - + " \001(\0132\027.google.protobuf.StructB\003\340A\001\032\203\007\n\016A" - + "uthentication\022^\n\016api_key_config\030\001 \001(\0132D." - + "google.cloud.dialogflow.cx.v3beta1.Tool." - + "Authentication.ApiKeyConfigH\000\022[\n\014oauth_c" - + "onfig\030\002 \001(\0132C.google.cloud.dialogflow.cx" - + ".v3beta1.Tool.Authentication.OAuthConfig" - + "H\000\022s\n\031service_agent_auth_config\030\003 \001(\0132N." - + "google.cloud.dialogflow.cx.v3beta1.Tool." - + "Authentication.ServiceAgentAuthConfigH\000\032" - + "\243\001\n\014ApiKeyConfig\022\025\n\010key_name\030\001 \001(\tB\003\340A\002\022" - + "\024\n\007api_key\030\002 \001(\tB\003\340A\002\022f\n\020request_locatio" - + "n\030\003 \001(\0162G.google.cloud.dialogflow.cx.v3b" - + "eta1.Tool.Authentication.RequestLocation" - + "B\003\340A\002\032\234\002\n\013OAuthConfig\022q\n\020oauth_grant_typ" - + "e\030\001 \001(\0162R.google.cloud.dialogflow.cx.v3b" - + "eta1.Tool.Authentication.OAuthConfig.Oau" - + "thGrantTypeB\003\340A\002\022\026\n\tclient_id\030\002 \001(\tB\003\340A\002" - + "\022\032\n\rclient_secret\030\003 \001(\tB\003\340A\002\022\033\n\016token_en" - + "dpoint\030\004 \001(\tB\003\340A\002\"I\n\016OauthGrantType\022 \n\034O" - + "AUTH_GRANT_TYPE_UNSPECIFIED\020\000\022\025\n\021CLIENT_" - + "CREDENTIAL\020\001\032\030\n\026ServiceAgentAuthConfig\"Q" - + "\n\017RequestLocation\022 \n\034REQUEST_LOCATION_UN" - + "SPECIFIED\020\000\022\n\n\006HEADER\020\001\022\020\n\014QUERY_STRING\020" - + "\002B\r\n\013auth_config\032\225\001\n\tTLSConfig\022P\n\010ca_cer" - + "ts\030\001 \003(\01329.google.cloud.dialogflow.cx.v3" - + "beta1.Tool.TLSConfig.CACertB\003\340A\002\0326\n\006CACe" - + "rt\022\031\n\014display_name\030\001 \001(\tB\003\340A\002\022\021\n\004cert\030\002 " - + "\001(\014B\003\340A\002\"L\n\010ToolType\022\031\n\025TOOL_TYPE_UNSPEC" - + "IFIED\020\000\022\023\n\017CUSTOMIZED_TOOL\020\001\022\020\n\014BUILTIN_" - + "TOOL\020\002:h\352Ae\n\036dialogflow.googleapis.com/T" - + "ool\022Cprojects/{project}/locations/{locat" - + "ion}/agents/{agent}/tools/{tool}B\017\n\rspec" - + "ification\"\025\n\023ExportToolsMetadata2\221\n\n\005Too" - + "ls\022\302\001\n\nCreateTool\0225.google.cloud.dialogf" - + "low.cx.v3beta1.CreateToolRequest\032(.googl" - + "e.cloud.dialogflow.cx.v3beta1.Tool\"S\332A\013p" - + "arent,tool\202\323\344\223\002?\"7/v3beta1/{parent=proje" - + "cts/*/locations/*/agents/*}/tools:\004tool\022" - + "\302\001\n\tListTools\0224.google.cloud.dialogflow." - + "cx.v3beta1.ListToolsRequest\0325.google.clo" - + "ud.dialogflow.cx.v3beta1.ListToolsRespon" - + "se\"H\332A\006parent\202\323\344\223\0029\0227/v3beta1/{parent=pr" - + "ojects/*/locations/*/agents/*}/tools\022\334\001\n" - + "\013ExportTools\0226.google.cloud.dialogflow.c" - + "x.v3beta1.ExportToolsRequest\032\035.google.lo" - + "ngrunning.Operation\"v\312A*\n\023ExportToolsRes" - + "ponse\022\023ExportToolsMetadata\202\323\344\223\002C\">/v3bet" - + "a1/{parent=projects/*/locations/*/agents" - + "/*}/tools:export:\001*\022\257\001\n\007GetTool\0222.google" - + ".cloud.dialogflow.cx.v3beta1.GetToolRequ" - + "est\032(.google.cloud.dialogflow.cx.v3beta1" - + ".Tool\"F\332A\004name\202\323\344\223\0029\0227/v3beta1/{name=pro" - + "jects/*/locations/*/agents/*/tools/*}\022\314\001" - + "\n\nUpdateTool\0225.google.cloud.dialogflow.c" - + "x.v3beta1.UpdateToolRequest\032(.google.clo" - + "ud.dialogflow.cx.v3beta1.Tool\"]\332A\020tool,u" - + "pdate_mask\202\323\344\223\002D2/v3beta1/{" + + "parent=projects/*/locations/*/agents/*}/" + + "tools:export:\001*\022\257\001\n\007GetTool\0222.google.clo" + + "ud.dialogflow.cx.v3beta1.GetToolRequest\032" + + "(.google.cloud.dialogflow.cx.v3beta1.Too" + + "l\"F\332A\004name\202\323\344\223\0029\0227/v3beta1/{name=project" + + "s/*/locations/*/agents/*/tools/*}\022\314\001\n\nUp" + + "dateTool\0225.google.cloud.dialogflow.cx.v3" + + "beta1.UpdateToolRequest\032(.google.cloud.d" + + "ialogflow.cx.v3beta1.Tool\"]\332A\020tool,updat" + + "e_mask\202\323\344\223\002D2/locations//agents//playbooks/`. + string target_playbook = 7 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Playbook" + }]; } } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto index ec2f13709f06..21693b1e87cf 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto @@ -1142,6 +1142,9 @@ message Match { // The query directly triggered an event. EVENT = 6; + // The query was matched to a Knowledge Connector answer. + KNOWLEDGE_CONNECTOR = 8; + // The query was handled by a // [`Playbook`][google.cloud.dialogflow.cx.v3beta1.Playbook]. PLAYBOOK = 9; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto index 6e966a919038..8a7de1de3065 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto @@ -293,9 +293,8 @@ message TestConfig { // ID>/flows/`. // // Only one of `flow` and `page` should be set to indicate the starting point - // of the test case. If both are set, `page` takes precedence over `flow`. If - // neither is set, the test case will start with start page on the default - // start flow. + // of the test case. If neither is set, the test case will start with start + // page on the default start flow. string flow = 2 [ (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } ]; @@ -305,9 +304,8 @@ message TestConfig { // ID>/flows//pages/`. // // Only one of `flow` and `page` should be set to indicate the starting point - // of the test case. If both are set, `page` takes precedence over `flow`. If - // neither is set, the test case will start with start page on the default - // start flow. + // of the test case. If neither is set, the test case will start with start + // page on the default start flow. string page = 3 [ (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Page" } ]; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool.proto index 0f16ab483772..59ab69b3c08e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool.proto @@ -287,6 +287,10 @@ message Tool { // Optional. TLS configuration for the HTTPS verification. TLSConfig tls_config = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Service Directory configuration. + ServiceDirectoryConfig service_directory_config = 4 + [(google.api.field_behavior) = OPTIONAL]; } // A DataStoreTool is a way to provide specifications needed to search a @@ -432,6 +436,22 @@ message Tool { repeated CACert ca_certs = 1 [(google.api.field_behavior) = REQUIRED]; } + // Configuration for tools using Service Directory. + message ServiceDirectoryConfig { + // Required. The name of [Service + // Directory](https://cloud.google.com/service-directory) service. + // Format: + // `projects//locations//namespaces//services/`. + // `LocationID` of the service directory must be the same as the location + // of the agent. + string service = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Service" + } + ]; + } + // Represents the type of the tool. enum ToolType { // Default value. This value is unused. diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index 84f4ed355559..007e3a1c7e6a 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/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-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.52.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-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java index 587e77679bcd..5b5361396607 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.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; @@ -359,6 +360,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java index 7bf04e955a80..49e0ac2cc40b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.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; @@ -282,6 +283,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java index 53c2233e5ba5..861706035abe 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.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; @@ -300,6 +301,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java index fef53417c190..dcd08547b881 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.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; @@ -377,6 +378,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java index 5ad955d2b091..b48a0f0ffdfd 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.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; @@ -521,6 +522,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java index 263485a65a20..84076ea5b3ee 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.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; @@ -383,6 +384,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java index 436af62a1a89..308037e09cf3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.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; @@ -395,6 +396,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java index ad609e37f43d..fe191cf67645 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.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; @@ -371,6 +372,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java index 6a3406fcd699..93ec235136bc 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.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; @@ -389,6 +390,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java index 73972c97da71..cbc1bee10f1d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.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; @@ -376,6 +377,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java index f392ff816fa4..287828d5d0ed 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.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; @@ -214,6 +215,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java index 7895ae11b520..f81f6b6e75e1 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.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; @@ -329,6 +330,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java index 1253f115552b..759210ade757 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.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; @@ -307,6 +308,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java index 9f413321b007..e7640bcfb961 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.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; @@ -344,6 +345,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java index 4a76b7f2cc81..a7bfa9ad01ed 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.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; @@ -325,6 +326,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java index 3684d2cb8db8..5015f64bbc7c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.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; @@ -217,6 +218,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java index 28e566cfb5a4..7c13b433c443 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.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; @@ -293,6 +294,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java index b91ee3b40a53..d3123b6bdf45 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.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 "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java index 6b84b3a2e736..080681eef542 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.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; @@ -295,6 +296,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java index 4b5eb4be189b..46d943b0a04a 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.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; @@ -301,6 +302,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java index 82e248c4127d..bd69ac3c9ea1 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.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; @@ -384,6 +385,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java index bf8f26b043d7..83b2f3c96c8c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.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; @@ -406,6 +407,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java index 867034fdc458..fb882e31d552 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.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; @@ -357,6 +358,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java index daa84eecd4ee..08a1bf9e1be1 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.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; @@ -390,6 +391,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java index e12459c5315d..5ba538f476ca 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.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; @@ -377,6 +378,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java index b722a1f42d2f..1dd4a4d5145b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.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; @@ -215,6 +216,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java index 965a6b4be6a1..03151e36d968 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.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; @@ -330,6 +331,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java index 309436c487ba..eaa29eb76276 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.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; @@ -308,6 +309,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java index 0bbc92dbec6d..18a5f42ffbf3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.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; @@ -435,6 +436,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java index 1223dd8a8030..4f7205bfda5b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.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; @@ -326,6 +327,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java index 950f345c5df9..2258ed9c423b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.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; @@ -218,6 +219,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java index 932a59505fcd..a0435d1bc0de 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.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; @@ -294,6 +295,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index 18aa613c67ba..3c81b7b87252 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/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-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java index 5bdc517ac4c1..209d2203c5df 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -231,6 +232,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ControlServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ControlServiceStubSettings.java index 0cedc3389ea2..43cee416fde6 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ControlServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ControlServiceStubSettings.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; @@ -219,6 +220,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java index 6030b62382e5..04c26214878e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.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; @@ -352,6 +353,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStubSettings.java index 773606b56794..f5446a42ec4a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStubSettings.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; @@ -244,6 +245,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java index fe029709fc3c..2cd7d4f82996 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.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; @@ -262,6 +263,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStubSettings.java index c7bf3f8f0621..89b8e598ce57 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStubSettings.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; @@ -241,6 +242,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java index 0638fa146a06..4d5e1649fe25 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -127,6 +128,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStubSettings.java index f4c639fce17c..19a8fde34c79 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -138,6 +139,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RankServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RankServiceStubSettings.java index 4937f53676d0..76778aec5f69 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RankServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RankServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -124,6 +125,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RecommendationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RecommendationServiceStubSettings.java index e3f6fea0c58b..ec8ff4037e2e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RecommendationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RecommendationServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -126,6 +127,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java index c5b629238e08..fb00ef44a0b1 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.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; @@ -250,6 +251,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java index 1afd1520d127..e28eed4d3766 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.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; @@ -186,6 +187,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStubSettings.java index 690c1eee752e..d047d0c8d9d9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStubSettings.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; @@ -480,6 +481,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java index b53206c21739..edd021b6bfa0 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java @@ -19,6 +19,7 @@ import com.google.api.HttpBody; import com.google.api.core.ApiFunction; 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; @@ -156,6 +157,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceClient.java new file mode 100644 index 000000000000..73a1f73fc987 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceClient.java @@ -0,0 +1,1134 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.stub.EvaluationServiceStub; +import com.google.cloud.discoveryengine.v1alpha.stub.EvaluationServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing + * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s, + * + *

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

        {@code
        + * // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        + *   EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]");
        + *   Evaluation response = evaluationServiceClient.getEvaluation(name);
        + * }
        + * }
        + * + *

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

        GetEvaluation

        Gets a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • getEvaluation(GetEvaluationRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • getEvaluation(EvaluationName name) + *

        • getEvaluation(String name) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • getEvaluationCallable() + *

        + *

        ListEvaluations

        Gets a list of [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • listEvaluations(ListEvaluationsRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • listEvaluations(LocationName parent) + *

        • listEvaluations(String parent) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • listEvaluationsPagedCallable() + *

        • listEvaluationsCallable() + *

        + *

        CreateEvaluation

        Creates a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + *

        Upon creation, the evaluation will be automatically triggered and begin execution.

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • createEvaluationAsync(CreateEvaluationRequest request) + *

        + *

        Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

        + *
          + *
        • createEvaluationAsync(LocationName parent, Evaluation evaluation) + *

        • createEvaluationAsync(String parent, Evaluation evaluation) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • createEvaluationOperationCallable() + *

        • createEvaluationCallable() + *

        + *

        ListEvaluationResults

        Gets a list of results for a given a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • listEvaluationResults(ListEvaluationResultsRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • listEvaluationResults(EvaluationName evaluation) + *

        • listEvaluationResults(String evaluation) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • listEvaluationResultsPagedCallable() + *

        • listEvaluationResultsCallable() + *

        + *
        + * + *

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

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

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

        To customize credentials: + * + *

        {@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
        + * EvaluationServiceSettings evaluationServiceSettings =
        + *     EvaluationServiceSettings.newBuilder()
        + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
        + *         .build();
        + * EvaluationServiceClient evaluationServiceClient =
        + *     EvaluationServiceClient.create(evaluationServiceSettings);
        + * }
        + * + *

        To customize the endpoint: + * + *

        {@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
        + * EvaluationServiceSettings evaluationServiceSettings =
        + *     EvaluationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
        + * EvaluationServiceClient evaluationServiceClient =
        + *     EvaluationServiceClient.create(evaluationServiceSettings);
        + * }
        + * + *

        To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

        {@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
        + * EvaluationServiceSettings evaluationServiceSettings =
        + *     EvaluationServiceSettings.newHttpJsonBuilder().build();
        + * EvaluationServiceClient evaluationServiceClient =
        + *     EvaluationServiceClient.create(evaluationServiceSettings);
        + * }
        + * + *

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

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]");
        +   *   Evaluation response = evaluationServiceClient.getEvaluation(name);
        +   * }
        +   * }
        + * + * @param name Required. Full resource name of + * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], such as + * `projects/{project}/locations/{location}/evaluations/{evaluation}`. + *

        If the caller does not have permission to access the + * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], regardless of whether or not + * it exists, a PERMISSION_DENIED error is returned. + *

        If the requested [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] does not + * exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Evaluation getEvaluation(EvaluationName name) { + GetEvaluationRequest request = + GetEvaluationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getEvaluation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   String name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString();
        +   *   Evaluation response = evaluationServiceClient.getEvaluation(name);
        +   * }
        +   * }
        + * + * @param name Required. Full resource name of + * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], such as + * `projects/{project}/locations/{location}/evaluations/{evaluation}`. + *

        If the caller does not have permission to access the + * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], regardless of whether or not + * it exists, a PERMISSION_DENIED error is returned. + *

        If the requested [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] does not + * exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Evaluation getEvaluation(String name) { + GetEvaluationRequest request = GetEvaluationRequest.newBuilder().setName(name).build(); + return getEvaluation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   GetEvaluationRequest request =
        +   *       GetEvaluationRequest.newBuilder()
        +   *           .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
        +   *           .build();
        +   *   Evaluation response = evaluationServiceClient.getEvaluation(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 Evaluation getEvaluation(GetEvaluationRequest request) { + return getEvaluationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   GetEvaluationRequest request =
        +   *       GetEvaluationRequest.newBuilder()
        +   *           .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       evaluationServiceClient.getEvaluationCallable().futureCall(request);
        +   *   // Do something.
        +   *   Evaluation response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable getEvaluationCallable() { + return stub.getEvaluationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +   *   for (Evaluation element : evaluationServiceClient.listEvaluations(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. The parent location resource name, such as + * `projects/{project}/locations/{location}`. + *

        If the caller does not have permission to list + * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s under this location, + * regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEvaluationsPagedResponse listEvaluations(LocationName parent) { + ListEvaluationsRequest request = + ListEvaluationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listEvaluations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
        +   *   for (Evaluation element : evaluationServiceClient.listEvaluations(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. The parent location resource name, such as + * `projects/{project}/locations/{location}`. + *

        If the caller does not have permission to list + * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s under this location, + * regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEvaluationsPagedResponse listEvaluations(String parent) { + ListEvaluationsRequest request = ListEvaluationsRequest.newBuilder().setParent(parent).build(); + return listEvaluations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   ListEvaluationsRequest request =
        +   *       ListEvaluationsRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   for (Evaluation element : evaluationServiceClient.listEvaluations(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 ListEvaluationsPagedResponse listEvaluations(ListEvaluationsRequest request) { + return listEvaluationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   ListEvaluationsRequest request =
        +   *       ListEvaluationsRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       evaluationServiceClient.listEvaluationsPagedCallable().futureCall(request);
        +   *   // Do something.
        +   *   for (Evaluation element : future.get().iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listEvaluationsPagedCallable() { + return stub.listEvaluationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   ListEvaluationsRequest request =
        +   *       ListEvaluationsRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   while (true) {
        +   *     ListEvaluationsResponse response =
        +   *         evaluationServiceClient.listEvaluationsCallable().call(request);
        +   *     for (Evaluation element : response.getEvaluationsList()) {
        +   *       // doThingsWith(element);
        +   *     }
        +   *     String nextPageToken = response.getNextPageToken();
        +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
        +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
        +   *     } else {
        +   *       break;
        +   *     }
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listEvaluationsCallable() { + return stub.listEvaluationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + * + *

        Upon creation, the evaluation will be automatically triggered and begin execution. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +   *   Evaluation evaluation = Evaluation.newBuilder().build();
        +   *   Evaluation response = evaluationServiceClient.createEvaluationAsync(parent, evaluation).get();
        +   * }
        +   * }
        + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}`. + * @param evaluation Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] + * to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createEvaluationAsync( + LocationName parent, Evaluation evaluation) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setEvaluation(evaluation) + .build(); + return createEvaluationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + * + *

        Upon creation, the evaluation will be automatically triggered and begin execution. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
        +   *   Evaluation evaluation = Evaluation.newBuilder().build();
        +   *   Evaluation response = evaluationServiceClient.createEvaluationAsync(parent, evaluation).get();
        +   * }
        +   * }
        + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}`. + * @param evaluation Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] + * to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createEvaluationAsync( + String parent, Evaluation evaluation) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder().setParent(parent).setEvaluation(evaluation).build(); + return createEvaluationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + * + *

        Upon creation, the evaluation will be automatically triggered and begin execution. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   CreateEvaluationRequest request =
        +   *       CreateEvaluationRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setEvaluation(Evaluation.newBuilder().build())
        +   *           .build();
        +   *   Evaluation response = evaluationServiceClient.createEvaluationAsync(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 createEvaluationAsync( + CreateEvaluationRequest request) { + return createEvaluationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + * + *

        Upon creation, the evaluation will be automatically triggered and begin execution. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   CreateEvaluationRequest request =
        +   *       CreateEvaluationRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setEvaluation(Evaluation.newBuilder().build())
        +   *           .build();
        +   *   OperationFuture future =
        +   *       evaluationServiceClient.createEvaluationOperationCallable().futureCall(request);
        +   *   // Do something.
        +   *   Evaluation response = future.get();
        +   * }
        +   * }
        + */ + public final OperationCallable + createEvaluationOperationCallable() { + return stub.createEvaluationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + * + *

        Upon creation, the evaluation will be automatically triggered and begin execution. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   CreateEvaluationRequest request =
        +   *       CreateEvaluationRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setEvaluation(Evaluation.newBuilder().build())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       evaluationServiceClient.createEvaluationCallable().futureCall(request);
        +   *   // Do something.
        +   *   Operation response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable createEvaluationCallable() { + return stub.createEvaluationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of results for a given a + * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   EvaluationName evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]");
        +   *   for (ListEvaluationResultsResponse.EvaluationResult element :
        +   *       evaluationServiceClient.listEvaluationResults(evaluation).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param evaluation Required. The evaluation resource name, such as + * `projects/{project}/locations/{location}/evaluations/{evaluation}`. + *

        If the caller does not have permission to list [EvaluationResult][] under this + * evaluation, regardless of whether or not this evaluation set exists, a `PERMISSION_DENIED` + * error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEvaluationResultsPagedResponse listEvaluationResults(EvaluationName evaluation) { + ListEvaluationResultsRequest request = + ListEvaluationResultsRequest.newBuilder() + .setEvaluation(evaluation == null ? null : evaluation.toString()) + .build(); + return listEvaluationResults(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of results for a given a + * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   String evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString();
        +   *   for (ListEvaluationResultsResponse.EvaluationResult element :
        +   *       evaluationServiceClient.listEvaluationResults(evaluation).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param evaluation Required. The evaluation resource name, such as + * `projects/{project}/locations/{location}/evaluations/{evaluation}`. + *

        If the caller does not have permission to list [EvaluationResult][] under this + * evaluation, regardless of whether or not this evaluation set exists, a `PERMISSION_DENIED` + * error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEvaluationResultsPagedResponse listEvaluationResults(String evaluation) { + ListEvaluationResultsRequest request = + ListEvaluationResultsRequest.newBuilder().setEvaluation(evaluation).build(); + return listEvaluationResults(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of results for a given a + * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   ListEvaluationResultsRequest request =
        +   *       ListEvaluationResultsRequest.newBuilder()
        +   *           .setEvaluation(
        +   *               EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   for (ListEvaluationResultsResponse.EvaluationResult element :
        +   *       evaluationServiceClient.listEvaluationResults(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 ListEvaluationResultsPagedResponse listEvaluationResults( + ListEvaluationResultsRequest request) { + return listEvaluationResultsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of results for a given a + * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   ListEvaluationResultsRequest request =
        +   *       ListEvaluationResultsRequest.newBuilder()
        +   *           .setEvaluation(
        +   *               EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       evaluationServiceClient.listEvaluationResultsPagedCallable().futureCall(request);
        +   *   // Do something.
        +   *   for (ListEvaluationResultsResponse.EvaluationResult element : future.get().iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listEvaluationResultsPagedCallable() { + return stub.listEvaluationResultsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of results for a given a + * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + * + *

        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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        +   *   ListEvaluationResultsRequest request =
        +   *       ListEvaluationResultsRequest.newBuilder()
        +   *           .setEvaluation(
        +   *               EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   while (true) {
        +   *     ListEvaluationResultsResponse response =
        +   *         evaluationServiceClient.listEvaluationResultsCallable().call(request);
        +   *     for (ListEvaluationResultsResponse.EvaluationResult element :
        +   *         response.getEvaluationResultsList()) {
        +   *       // doThingsWith(element);
        +   *     }
        +   *     String nextPageToken = response.getNextPageToken();
        +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
        +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
        +   *     } else {
        +   *       break;
        +   *     }
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listEvaluationResultsCallable() { + return stub.listEvaluationResultsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListEvaluationsPagedResponse + extends AbstractPagedListResponse< + ListEvaluationsRequest, + ListEvaluationsResponse, + Evaluation, + ListEvaluationsPage, + ListEvaluationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListEvaluationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListEvaluationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListEvaluationsPagedResponse(ListEvaluationsPage page) { + super(page, ListEvaluationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListEvaluationsPage + extends AbstractPage< + ListEvaluationsRequest, ListEvaluationsResponse, Evaluation, ListEvaluationsPage> { + + private ListEvaluationsPage( + PageContext context, + ListEvaluationsResponse response) { + super(context, response); + } + + private static ListEvaluationsPage createEmptyPage() { + return new ListEvaluationsPage(null, null); + } + + @Override + protected ListEvaluationsPage createPage( + PageContext context, + ListEvaluationsResponse response) { + return new ListEvaluationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListEvaluationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListEvaluationsRequest, + ListEvaluationsResponse, + Evaluation, + ListEvaluationsPage, + ListEvaluationsFixedSizeCollection> { + + private ListEvaluationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListEvaluationsFixedSizeCollection createEmptyCollection() { + return new ListEvaluationsFixedSizeCollection(null, 0); + } + + @Override + protected ListEvaluationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListEvaluationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListEvaluationResultsPagedResponse + extends AbstractPagedListResponse< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult, + ListEvaluationResultsPage, + ListEvaluationResultsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListEvaluationResultsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListEvaluationResultsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListEvaluationResultsPagedResponse(ListEvaluationResultsPage page) { + super(page, ListEvaluationResultsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListEvaluationResultsPage + extends AbstractPage< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult, + ListEvaluationResultsPage> { + + private ListEvaluationResultsPage( + PageContext< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult> + context, + ListEvaluationResultsResponse response) { + super(context, response); + } + + private static ListEvaluationResultsPage createEmptyPage() { + return new ListEvaluationResultsPage(null, null); + } + + @Override + protected ListEvaluationResultsPage createPage( + PageContext< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult> + context, + ListEvaluationResultsResponse response) { + return new ListEvaluationResultsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListEvaluationResultsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult, + ListEvaluationResultsPage, + ListEvaluationResultsFixedSizeCollection> { + + private ListEvaluationResultsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListEvaluationResultsFixedSizeCollection createEmptyCollection() { + return new ListEvaluationResultsFixedSizeCollection(null, 0); + } + + @Override + protected ListEvaluationResultsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListEvaluationResultsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceSettings.java new file mode 100644 index 000000000000..bff7683f6541 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceSettings.java @@ -0,0 +1,266 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient.ListEvaluationResultsPagedResponse; +import static com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient.ListEvaluationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.EvaluationServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link EvaluationServiceClient}. + * + *

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

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

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

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

        {@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
        + * EvaluationServiceSettings.Builder evaluationServiceSettingsBuilder =
        + *     EvaluationServiceSettings.newBuilder();
        + * evaluationServiceSettingsBuilder
        + *     .getEvaluationSettings()
        + *     .setRetrySettings(
        + *         evaluationServiceSettingsBuilder
        + *             .getEvaluationSettings()
        + *             .getRetrySettings()
        + *             .toBuilder()
        + *             .setTotalTimeout(Duration.ofSeconds(30))
        + *             .build());
        + * EvaluationServiceSettings evaluationServiceSettings = evaluationServiceSettingsBuilder.build();
        + * }
        + */ +@BetaApi +@Generated("by gapic-generator-java") +public class EvaluationServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getEvaluation. */ + public UnaryCallSettings getEvaluationSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).getEvaluationSettings(); + } + + /** Returns the object with the settings used for calls to listEvaluations. */ + public PagedCallSettings< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).listEvaluationsSettings(); + } + + /** Returns the object with the settings used for calls to createEvaluation. */ + public UnaryCallSettings createEvaluationSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).createEvaluationSettings(); + } + + /** Returns the object with the settings used for calls to createEvaluation. */ + public OperationCallSettings + createEvaluationOperationSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).createEvaluationOperationSettings(); + } + + /** Returns the object with the settings used for calls to listEvaluationResults. */ + public PagedCallSettings< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse> + listEvaluationResultsSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).listEvaluationResultsSettings(); + } + + public static final EvaluationServiceSettings create(EvaluationServiceStubSettings stub) + throws IOException { + return new EvaluationServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return EvaluationServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return EvaluationServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return EvaluationServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return EvaluationServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return EvaluationServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return EvaluationServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return EvaluationServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return EvaluationServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected EvaluationServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for EvaluationServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(EvaluationServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(EvaluationServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(EvaluationServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(EvaluationServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(EvaluationServiceStubSettings.newHttpJsonBuilder()); + } + + public EvaluationServiceStubSettings.Builder getStubSettingsBuilder() { + return ((EvaluationServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

        Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getEvaluation. */ + public UnaryCallSettings.Builder getEvaluationSettings() { + return getStubSettingsBuilder().getEvaluationSettings(); + } + + /** Returns the builder for the settings used for calls to listEvaluations. */ + public PagedCallSettings.Builder< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings() { + return getStubSettingsBuilder().listEvaluationsSettings(); + } + + /** Returns the builder for the settings used for calls to createEvaluation. */ + public UnaryCallSettings.Builder + createEvaluationSettings() { + return getStubSettingsBuilder().createEvaluationSettings(); + } + + /** Returns the builder for the settings used for calls to createEvaluation. */ + public OperationCallSettings.Builder< + CreateEvaluationRequest, Evaluation, CreateEvaluationMetadata> + createEvaluationOperationSettings() { + return getStubSettingsBuilder().createEvaluationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listEvaluationResults. */ + public PagedCallSettings.Builder< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse> + listEvaluationResultsSettings() { + return getStubSettingsBuilder().listEvaluationResultsSettings(); + } + + @Override + public EvaluationServiceSettings build() throws IOException { + return new EvaluationServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceClient.java new file mode 100644 index 000000000000..31093ff9754a --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceClient.java @@ -0,0 +1,1239 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.stub.SampleQueryServiceStub; +import com.google.cloud.discoveryengine.v1alpha.stub.SampleQueryServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s, + * + *

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

        {@code
        + * // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        + *   SampleQueryName name =
        + *       SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]");
        + *   SampleQuery response = sampleQueryServiceClient.getSampleQuery(name);
        + * }
        + * }
        + * + *

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

        GetSampleQuery

        Gets a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • getSampleQuery(GetSampleQueryRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • getSampleQuery(SampleQueryName name) + *

        • getSampleQuery(String name) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • getSampleQueryCallable() + *

        + *

        ListSampleQueries

        Gets a list of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • listSampleQueries(ListSampleQueriesRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • listSampleQueries(SampleQuerySetName parent) + *

        • listSampleQueries(String parent) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • listSampleQueriesPagedCallable() + *

        • listSampleQueriesCallable() + *

        + *

        CreateSampleQuery

        Creates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • createSampleQuery(CreateSampleQueryRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • createSampleQuery(SampleQuerySetName parent, SampleQuery sampleQuery, String sampleQueryId) + *

        • createSampleQuery(String parent, SampleQuery sampleQuery, String sampleQueryId) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • createSampleQueryCallable() + *

        + *

        UpdateSampleQuery

        Updates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • updateSampleQuery(UpdateSampleQueryRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • updateSampleQuery(SampleQuery sampleQuery, FieldMask updateMask) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • updateSampleQueryCallable() + *

        + *

        DeleteSampleQuery

        Deletes a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • deleteSampleQuery(DeleteSampleQueryRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • deleteSampleQuery(SampleQueryName name) + *

        • deleteSampleQuery(String name) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • deleteSampleQueryCallable() + *

        + *

        ImportSampleQueries

        Bulk import of multiple [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. Sample queries that already exist may be deleted. + *

        Note: It is possible for a subset of the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to be successfully imported.

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • importSampleQueriesAsync(ImportSampleQueriesRequest request) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • importSampleQueriesOperationCallable() + *

        • importSampleQueriesCallable() + *

        + *
        + * + *

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

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

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

        To customize credentials: + * + *

        {@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
        + * SampleQueryServiceSettings sampleQueryServiceSettings =
        + *     SampleQueryServiceSettings.newBuilder()
        + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
        + *         .build();
        + * SampleQueryServiceClient sampleQueryServiceClient =
        + *     SampleQueryServiceClient.create(sampleQueryServiceSettings);
        + * }
        + * + *

        To customize the endpoint: + * + *

        {@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
        + * SampleQueryServiceSettings sampleQueryServiceSettings =
        + *     SampleQueryServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
        + * SampleQueryServiceClient sampleQueryServiceClient =
        + *     SampleQueryServiceClient.create(sampleQueryServiceSettings);
        + * }
        + * + *

        To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

        {@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
        + * SampleQueryServiceSettings sampleQueryServiceSettings =
        + *     SampleQueryServiceSettings.newHttpJsonBuilder().build();
        + * SampleQueryServiceClient sampleQueryServiceClient =
        + *     SampleQueryServiceClient.create(sampleQueryServiceSettings);
        + * }
        + * + *

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

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   SampleQueryName name =
        +   *       SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]");
        +   *   SampleQuery response = sampleQueryServiceClient.getSampleQuery(name);
        +   * }
        +   * }
        + * + * @param name Required. Full resource name of + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`. + *

        If the caller does not have permission to access the + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless of whether or + * not it exists, a PERMISSION_DENIED error is returned. + *

        If the requested [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] does + * not exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuery getSampleQuery(SampleQueryName name) { + GetSampleQueryRequest request = + GetSampleQueryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSampleQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   String name =
        +   *       SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]")
        +   *           .toString();
        +   *   SampleQuery response = sampleQueryServiceClient.getSampleQuery(name);
        +   * }
        +   * }
        + * + * @param name Required. Full resource name of + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`. + *

        If the caller does not have permission to access the + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless of whether or + * not it exists, a PERMISSION_DENIED error is returned. + *

        If the requested [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] does + * not exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuery getSampleQuery(String name) { + GetSampleQueryRequest request = GetSampleQueryRequest.newBuilder().setName(name).build(); + return getSampleQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   GetSampleQueryRequest request =
        +   *       GetSampleQueryRequest.newBuilder()
        +   *           .setName(
        +   *               SampleQueryName.of(
        +   *                       "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]")
        +   *                   .toString())
        +   *           .build();
        +   *   SampleQuery response = sampleQueryServiceClient.getSampleQuery(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 SampleQuery getSampleQuery(GetSampleQueryRequest request) { + return getSampleQueryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   GetSampleQueryRequest request =
        +   *       GetSampleQueryRequest.newBuilder()
        +   *           .setName(
        +   *               SampleQueryName.of(
        +   *                       "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]")
        +   *                   .toString())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       sampleQueryServiceClient.getSampleQueryCallable().futureCall(request);
        +   *   // Do something.
        +   *   SampleQuery response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable getSampleQueryCallable() { + return stub.getSampleQueryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   SampleQuerySetName parent =
        +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]");
        +   *   for (SampleQuery element : sampleQueryServiceClient.listSampleQueries(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. The parent sample query set resource name, such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + *

        If the caller does not have permission to list + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this sample query + * set, regardless of whether or not this sample query set exists, a `PERMISSION_DENIED` error + * is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSampleQueriesPagedResponse listSampleQueries(SampleQuerySetName parent) { + ListSampleQueriesRequest request = + ListSampleQueriesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSampleQueries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   String parent =
        +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString();
        +   *   for (SampleQuery element : sampleQueryServiceClient.listSampleQueries(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. The parent sample query set resource name, such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + *

        If the caller does not have permission to list + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this sample query + * set, regardless of whether or not this sample query set exists, a `PERMISSION_DENIED` error + * is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSampleQueriesPagedResponse listSampleQueries(String parent) { + ListSampleQueriesRequest request = + ListSampleQueriesRequest.newBuilder().setParent(parent).build(); + return listSampleQueries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   ListSampleQueriesRequest request =
        +   *       ListSampleQueriesRequest.newBuilder()
        +   *           .setParent(
        +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   for (SampleQuery element : sampleQueryServiceClient.listSampleQueries(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 ListSampleQueriesPagedResponse listSampleQueries(ListSampleQueriesRequest request) { + return listSampleQueriesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   ListSampleQueriesRequest request =
        +   *       ListSampleQueriesRequest.newBuilder()
        +   *           .setParent(
        +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       sampleQueryServiceClient.listSampleQueriesPagedCallable().futureCall(request);
        +   *   // Do something.
        +   *   for (SampleQuery element : future.get().iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listSampleQueriesPagedCallable() { + return stub.listSampleQueriesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   ListSampleQueriesRequest request =
        +   *       ListSampleQueriesRequest.newBuilder()
        +   *           .setParent(
        +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   while (true) {
        +   *     ListSampleQueriesResponse response =
        +   *         sampleQueryServiceClient.listSampleQueriesCallable().call(request);
        +   *     for (SampleQuery element : response.getSampleQueriesList()) {
        +   *       // doThingsWith(element);
        +   *     }
        +   *     String nextPageToken = response.getNextPageToken();
        +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
        +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
        +   *     } else {
        +   *       break;
        +   *     }
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listSampleQueriesCallable() { + return stub.listSampleQueriesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   SampleQuerySetName parent =
        +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]");
        +   *   SampleQuery sampleQuery = SampleQuery.newBuilder().build();
        +   *   String sampleQueryId = "sampleQueryId1739022073";
        +   *   SampleQuery response =
        +   *       sampleQueryServiceClient.createSampleQuery(parent, sampleQuery, sampleQueryId);
        +   * }
        +   * }
        + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + * @param sampleQuery Required. The + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create. + * @param sampleQueryId Required. The ID to use for the + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], which will become the + * final component of the + * [SampleQuery.name][google.cloud.discoveryengine.v1alpha.SampleQuery.name]. + *

        If the caller does not have permission to create the + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless of whether or + * not it exists, a `PERMISSION_DENIED` error is returned. + *

        This field must be unique among all + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s with the same + * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.parent]. Otherwise, + * an `ALREADY_EXISTS` error is returned. + *

        This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with + * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuery createSampleQuery( + SampleQuerySetName parent, SampleQuery sampleQuery, String sampleQueryId) { + CreateSampleQueryRequest request = + CreateSampleQueryRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSampleQuery(sampleQuery) + .setSampleQueryId(sampleQueryId) + .build(); + return createSampleQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   String parent =
        +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString();
        +   *   SampleQuery sampleQuery = SampleQuery.newBuilder().build();
        +   *   String sampleQueryId = "sampleQueryId1739022073";
        +   *   SampleQuery response =
        +   *       sampleQueryServiceClient.createSampleQuery(parent, sampleQuery, sampleQueryId);
        +   * }
        +   * }
        + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + * @param sampleQuery Required. The + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create. + * @param sampleQueryId Required. The ID to use for the + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], which will become the + * final component of the + * [SampleQuery.name][google.cloud.discoveryengine.v1alpha.SampleQuery.name]. + *

        If the caller does not have permission to create the + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless of whether or + * not it exists, a `PERMISSION_DENIED` error is returned. + *

        This field must be unique among all + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s with the same + * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.parent]. Otherwise, + * an `ALREADY_EXISTS` error is returned. + *

        This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with + * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuery createSampleQuery( + String parent, SampleQuery sampleQuery, String sampleQueryId) { + CreateSampleQueryRequest request = + CreateSampleQueryRequest.newBuilder() + .setParent(parent) + .setSampleQuery(sampleQuery) + .setSampleQueryId(sampleQueryId) + .build(); + return createSampleQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   CreateSampleQueryRequest request =
        +   *       CreateSampleQueryRequest.newBuilder()
        +   *           .setParent(
        +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
        +   *           .setSampleQuery(SampleQuery.newBuilder().build())
        +   *           .setSampleQueryId("sampleQueryId1739022073")
        +   *           .build();
        +   *   SampleQuery response = sampleQueryServiceClient.createSampleQuery(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 SampleQuery createSampleQuery(CreateSampleQueryRequest request) { + return createSampleQueryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   CreateSampleQueryRequest request =
        +   *       CreateSampleQueryRequest.newBuilder()
        +   *           .setParent(
        +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
        +   *           .setSampleQuery(SampleQuery.newBuilder().build())
        +   *           .setSampleQueryId("sampleQueryId1739022073")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       sampleQueryServiceClient.createSampleQueryCallable().futureCall(request);
        +   *   // Do something.
        +   *   SampleQuery response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable createSampleQueryCallable() { + return stub.createSampleQueryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   SampleQuery sampleQuery = SampleQuery.newBuilder().build();
        +   *   FieldMask updateMask = FieldMask.newBuilder().build();
        +   *   SampleQuery response = sampleQueryServiceClient.updateSampleQuery(sampleQuery, updateMask);
        +   * }
        +   * }
        + * + * @param sampleQuery Required. The simple query to update. + *

        If the caller does not have permission to update the + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless of whether or + * not it exists, a `PERMISSION_DENIED` error is returned. + *

        If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to update does + * not exist a `NOT_FOUND` error is returned. + * @param updateMask Indicates which fields in the provided imported 'simple query' to update. If + * not set, will by default update all fields. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuery updateSampleQuery(SampleQuery sampleQuery, FieldMask updateMask) { + UpdateSampleQueryRequest request = + UpdateSampleQueryRequest.newBuilder() + .setSampleQuery(sampleQuery) + .setUpdateMask(updateMask) + .build(); + return updateSampleQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   UpdateSampleQueryRequest request =
        +   *       UpdateSampleQueryRequest.newBuilder()
        +   *           .setSampleQuery(SampleQuery.newBuilder().build())
        +   *           .setUpdateMask(FieldMask.newBuilder().build())
        +   *           .build();
        +   *   SampleQuery response = sampleQueryServiceClient.updateSampleQuery(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 SampleQuery updateSampleQuery(UpdateSampleQueryRequest request) { + return updateSampleQueryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   UpdateSampleQueryRequest request =
        +   *       UpdateSampleQueryRequest.newBuilder()
        +   *           .setSampleQuery(SampleQuery.newBuilder().build())
        +   *           .setUpdateMask(FieldMask.newBuilder().build())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       sampleQueryServiceClient.updateSampleQueryCallable().futureCall(request);
        +   *   // Do something.
        +   *   SampleQuery response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable updateSampleQueryCallable() { + return stub.updateSampleQueryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   SampleQueryName name =
        +   *       SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]");
        +   *   sampleQueryServiceClient.deleteSampleQuery(name);
        +   * }
        +   * }
        + * + * @param name Required. Full resource name of + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`. + *

        If the caller does not have permission to delete the + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless of whether or + * not it exists, a `PERMISSION_DENIED` error is returned. + *

        If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to delete does + * not exist, a `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSampleQuery(SampleQueryName name) { + DeleteSampleQueryRequest request = + DeleteSampleQueryRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteSampleQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   String name =
        +   *       SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]")
        +   *           .toString();
        +   *   sampleQueryServiceClient.deleteSampleQuery(name);
        +   * }
        +   * }
        + * + * @param name Required. Full resource name of + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`. + *

        If the caller does not have permission to delete the + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless of whether or + * not it exists, a `PERMISSION_DENIED` error is returned. + *

        If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to delete does + * not exist, a `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSampleQuery(String name) { + DeleteSampleQueryRequest request = DeleteSampleQueryRequest.newBuilder().setName(name).build(); + deleteSampleQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   DeleteSampleQueryRequest request =
        +   *       DeleteSampleQueryRequest.newBuilder()
        +   *           .setName(
        +   *               SampleQueryName.of(
        +   *                       "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]")
        +   *                   .toString())
        +   *           .build();
        +   *   sampleQueryServiceClient.deleteSampleQuery(request);
        +   * }
        +   * }
        + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSampleQuery(DeleteSampleQueryRequest request) { + deleteSampleQueryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   DeleteSampleQueryRequest request =
        +   *       DeleteSampleQueryRequest.newBuilder()
        +   *           .setName(
        +   *               SampleQueryName.of(
        +   *                       "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]")
        +   *                   .toString())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       sampleQueryServiceClient.deleteSampleQueryCallable().futureCall(request);
        +   *   // Do something.
        +   *   future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable deleteSampleQueryCallable() { + return stub.deleteSampleQueryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Bulk import of multiple [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. + * Sample queries that already exist may be deleted. + * + *

        Note: It is possible for a subset of the + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to be successfully imported. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   ImportSampleQueriesRequest request =
        +   *       ImportSampleQueriesRequest.newBuilder()
        +   *           .setParent(
        +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
        +   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
        +   *           .build();
        +   *   ImportSampleQueriesResponse response =
        +   *       sampleQueryServiceClient.importSampleQueriesAsync(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 + importSampleQueriesAsync(ImportSampleQueriesRequest request) { + return importSampleQueriesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Bulk import of multiple [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. + * Sample queries that already exist may be deleted. + * + *

        Note: It is possible for a subset of the + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to be successfully imported. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   ImportSampleQueriesRequest request =
        +   *       ImportSampleQueriesRequest.newBuilder()
        +   *           .setParent(
        +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
        +   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
        +   *           .build();
        +   *   OperationFuture future =
        +   *       sampleQueryServiceClient.importSampleQueriesOperationCallable().futureCall(request);
        +   *   // Do something.
        +   *   ImportSampleQueriesResponse response = future.get();
        +   * }
        +   * }
        + */ + public final OperationCallable< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationCallable() { + return stub.importSampleQueriesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Bulk import of multiple [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. + * Sample queries that already exist may be deleted. + * + *

        Note: It is possible for a subset of the + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to be successfully imported. + * + *

        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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        +   *   ImportSampleQueriesRequest request =
        +   *       ImportSampleQueriesRequest.newBuilder()
        +   *           .setParent(
        +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
        +   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       sampleQueryServiceClient.importSampleQueriesCallable().futureCall(request);
        +   *   // Do something.
        +   *   Operation response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable importSampleQueriesCallable() { + return stub.importSampleQueriesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListSampleQueriesPagedResponse + extends AbstractPagedListResponse< + ListSampleQueriesRequest, + ListSampleQueriesResponse, + SampleQuery, + ListSampleQueriesPage, + ListSampleQueriesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSampleQueriesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSampleQueriesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSampleQueriesPagedResponse(ListSampleQueriesPage page) { + super(page, ListSampleQueriesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSampleQueriesPage + extends AbstractPage< + ListSampleQueriesRequest, ListSampleQueriesResponse, SampleQuery, ListSampleQueriesPage> { + + private ListSampleQueriesPage( + PageContext context, + ListSampleQueriesResponse response) { + super(context, response); + } + + private static ListSampleQueriesPage createEmptyPage() { + return new ListSampleQueriesPage(null, null); + } + + @Override + protected ListSampleQueriesPage createPage( + PageContext context, + ListSampleQueriesResponse response) { + return new ListSampleQueriesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSampleQueriesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSampleQueriesRequest, + ListSampleQueriesResponse, + SampleQuery, + ListSampleQueriesPage, + ListSampleQueriesFixedSizeCollection> { + + private ListSampleQueriesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSampleQueriesFixedSizeCollection createEmptyCollection() { + return new ListSampleQueriesFixedSizeCollection(null, 0); + } + + @Override + protected ListSampleQueriesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSampleQueriesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceSettings.java new file mode 100644 index 000000000000..5f3a157ed783 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceSettings.java @@ -0,0 +1,283 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient.ListSampleQueriesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.SampleQueryServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SampleQueryServiceClient}. + * + *

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

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

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

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

        {@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
        + * SampleQueryServiceSettings.Builder sampleQueryServiceSettingsBuilder =
        + *     SampleQueryServiceSettings.newBuilder();
        + * sampleQueryServiceSettingsBuilder
        + *     .getSampleQuerySettings()
        + *     .setRetrySettings(
        + *         sampleQueryServiceSettingsBuilder
        + *             .getSampleQuerySettings()
        + *             .getRetrySettings()
        + *             .toBuilder()
        + *             .setTotalTimeout(Duration.ofSeconds(30))
        + *             .build());
        + * SampleQueryServiceSettings sampleQueryServiceSettings =
        + *     sampleQueryServiceSettingsBuilder.build();
        + * }
        + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SampleQueryServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getSampleQuery. */ + public UnaryCallSettings getSampleQuerySettings() { + return ((SampleQueryServiceStubSettings) getStubSettings()).getSampleQuerySettings(); + } + + /** Returns the object with the settings used for calls to listSampleQueries. */ + public PagedCallSettings< + ListSampleQueriesRequest, ListSampleQueriesResponse, ListSampleQueriesPagedResponse> + listSampleQueriesSettings() { + return ((SampleQueryServiceStubSettings) getStubSettings()).listSampleQueriesSettings(); + } + + /** Returns the object with the settings used for calls to createSampleQuery. */ + public UnaryCallSettings createSampleQuerySettings() { + return ((SampleQueryServiceStubSettings) getStubSettings()).createSampleQuerySettings(); + } + + /** Returns the object with the settings used for calls to updateSampleQuery. */ + public UnaryCallSettings updateSampleQuerySettings() { + return ((SampleQueryServiceStubSettings) getStubSettings()).updateSampleQuerySettings(); + } + + /** Returns the object with the settings used for calls to deleteSampleQuery. */ + public UnaryCallSettings deleteSampleQuerySettings() { + return ((SampleQueryServiceStubSettings) getStubSettings()).deleteSampleQuerySettings(); + } + + /** Returns the object with the settings used for calls to importSampleQueries. */ + public UnaryCallSettings importSampleQueriesSettings() { + return ((SampleQueryServiceStubSettings) getStubSettings()).importSampleQueriesSettings(); + } + + /** Returns the object with the settings used for calls to importSampleQueries. */ + public OperationCallSettings< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationSettings() { + return ((SampleQueryServiceStubSettings) getStubSettings()) + .importSampleQueriesOperationSettings(); + } + + public static final SampleQueryServiceSettings create(SampleQueryServiceStubSettings stub) + throws IOException { + return new SampleQueryServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SampleQueryServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SampleQueryServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SampleQueryServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SampleQueryServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SampleQueryServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SampleQueryServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SampleQueryServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SampleQueryServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SampleQueryServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SampleQueryServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(SampleQueryServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(SampleQueryServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SampleQueryServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(SampleQueryServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(SampleQueryServiceStubSettings.newHttpJsonBuilder()); + } + + public SampleQueryServiceStubSettings.Builder getStubSettingsBuilder() { + return ((SampleQueryServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

        Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getSampleQuery. */ + public UnaryCallSettings.Builder getSampleQuerySettings() { + return getStubSettingsBuilder().getSampleQuerySettings(); + } + + /** Returns the builder for the settings used for calls to listSampleQueries. */ + public PagedCallSettings.Builder< + ListSampleQueriesRequest, ListSampleQueriesResponse, ListSampleQueriesPagedResponse> + listSampleQueriesSettings() { + return getStubSettingsBuilder().listSampleQueriesSettings(); + } + + /** Returns the builder for the settings used for calls to createSampleQuery. */ + public UnaryCallSettings.Builder + createSampleQuerySettings() { + return getStubSettingsBuilder().createSampleQuerySettings(); + } + + /** Returns the builder for the settings used for calls to updateSampleQuery. */ + public UnaryCallSettings.Builder + updateSampleQuerySettings() { + return getStubSettingsBuilder().updateSampleQuerySettings(); + } + + /** Returns the builder for the settings used for calls to deleteSampleQuery. */ + public UnaryCallSettings.Builder deleteSampleQuerySettings() { + return getStubSettingsBuilder().deleteSampleQuerySettings(); + } + + /** Returns the builder for the settings used for calls to importSampleQueries. */ + public UnaryCallSettings.Builder + importSampleQueriesSettings() { + return getStubSettingsBuilder().importSampleQueriesSettings(); + } + + /** Returns the builder for the settings used for calls to importSampleQueries. */ + public OperationCallSettings.Builder< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationSettings() { + return getStubSettingsBuilder().importSampleQueriesOperationSettings(); + } + + @Override + public SampleQueryServiceSettings build() throws IOException { + return new SampleQueryServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceClient.java new file mode 100644 index 000000000000..e7bbe29b045b --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceClient.java @@ -0,0 +1,1108 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.stub.SampleQuerySetServiceStub; +import com.google.cloud.discoveryengine.v1alpha.stub.SampleQuerySetServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s, + * + *

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

        {@code
        + * // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        + *     SampleQuerySetServiceClient.create()) {
        + *   SampleQuerySetName name =
        + *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]");
        + *   SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(name);
        + * }
        + * }
        + * + *

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

        GetSampleQuerySet

        Gets a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • getSampleQuerySet(GetSampleQuerySetRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • getSampleQuerySet(SampleQuerySetName name) + *

        • getSampleQuerySet(String name) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • getSampleQuerySetCallable() + *

        + *

        ListSampleQuerySets

        Gets a list of [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • listSampleQuerySets(ListSampleQuerySetsRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • listSampleQuerySets(LocationName parent) + *

        • listSampleQuerySets(String parent) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • listSampleQuerySetsPagedCallable() + *

        • listSampleQuerySetsCallable() + *

        + *

        CreateSampleQuerySet

        Creates a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • createSampleQuerySet(CreateSampleQuerySetRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • createSampleQuerySet(LocationName parent, SampleQuerySet sampleQuerySet, String sampleQuerySetId) + *

        • createSampleQuerySet(String parent, SampleQuerySet sampleQuerySet, String sampleQuerySetId) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • createSampleQuerySetCallable() + *

        + *

        UpdateSampleQuerySet

        Updates a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • updateSampleQuerySet(UpdateSampleQuerySetRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • updateSampleQuerySet(SampleQuerySet sampleQuerySet, FieldMask updateMask) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • updateSampleQuerySetCallable() + *

        + *

        DeleteSampleQuerySet

        Deletes a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].

        + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • deleteSampleQuerySet(DeleteSampleQuerySetRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • deleteSampleQuerySet(SampleQuerySetName name) + *

        • deleteSampleQuerySet(String name) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • deleteSampleQuerySetCallable() + *

        + *
        + * + *

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

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

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

        To customize credentials: + * + *

        {@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
        + * SampleQuerySetServiceSettings sampleQuerySetServiceSettings =
        + *     SampleQuerySetServiceSettings.newBuilder()
        + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
        + *         .build();
        + * SampleQuerySetServiceClient sampleQuerySetServiceClient =
        + *     SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings);
        + * }
        + * + *

        To customize the endpoint: + * + *

        {@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
        + * SampleQuerySetServiceSettings sampleQuerySetServiceSettings =
        + *     SampleQuerySetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
        + * SampleQuerySetServiceClient sampleQuerySetServiceClient =
        + *     SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings);
        + * }
        + * + *

        To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

        {@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
        + * SampleQuerySetServiceSettings sampleQuerySetServiceSettings =
        + *     SampleQuerySetServiceSettings.newHttpJsonBuilder().build();
        + * SampleQuerySetServiceClient sampleQuerySetServiceClient =
        + *     SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings);
        + * }
        + * + *

        Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SampleQuerySetServiceClient implements BackgroundResource { + private final SampleQuerySetServiceSettings settings; + private final SampleQuerySetServiceStub stub; + + /** Constructs an instance of SampleQuerySetServiceClient with default settings. */ + public static final SampleQuerySetServiceClient create() throws IOException { + return create(SampleQuerySetServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SampleQuerySetServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SampleQuerySetServiceClient create(SampleQuerySetServiceSettings settings) + throws IOException { + return new SampleQuerySetServiceClient(settings); + } + + /** + * Constructs an instance of SampleQuerySetServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(SampleQuerySetServiceSettings). + */ + public static final SampleQuerySetServiceClient create(SampleQuerySetServiceStub stub) { + return new SampleQuerySetServiceClient(stub); + } + + /** + * Constructs an instance of SampleQuerySetServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected SampleQuerySetServiceClient(SampleQuerySetServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((SampleQuerySetServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected SampleQuerySetServiceClient(SampleQuerySetServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final SampleQuerySetServiceSettings getSettings() { + return settings; + } + + public SampleQuerySetServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   SampleQuerySetName name =
        +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]");
        +   *   SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(name);
        +   * }
        +   * }
        + * + * @param name Required. Full resource name of + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`. + *

        If the caller does not have permission to access the + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], regardless of + * whether or not it exists, a PERMISSION_DENIED error is returned. + *

        If the requested [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] + * does not exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuerySet getSampleQuerySet(SampleQuerySetName name) { + GetSampleQuerySetRequest request = + GetSampleQuerySetRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getSampleQuerySet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   String name =
        +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString();
        +   *   SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(name);
        +   * }
        +   * }
        + * + * @param name Required. Full resource name of + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`. + *

        If the caller does not have permission to access the + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], regardless of + * whether or not it exists, a PERMISSION_DENIED error is returned. + *

        If the requested [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] + * does not exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuerySet getSampleQuerySet(String name) { + GetSampleQuerySetRequest request = GetSampleQuerySetRequest.newBuilder().setName(name).build(); + return getSampleQuerySet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   GetSampleQuerySetRequest request =
        +   *       GetSampleQuerySetRequest.newBuilder()
        +   *           .setName(
        +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
        +   *           .build();
        +   *   SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(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 SampleQuerySet getSampleQuerySet(GetSampleQuerySetRequest request) { + return getSampleQuerySetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   GetSampleQuerySetRequest request =
        +   *       GetSampleQuerySetRequest.newBuilder()
        +   *           .setName(
        +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       sampleQuerySetServiceClient.getSampleQuerySetCallable().futureCall(request);
        +   *   // Do something.
        +   *   SampleQuerySet response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable getSampleQuerySetCallable() { + return stub.getSampleQuerySetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +   *   for (SampleQuerySet element :
        +   *       sampleQuerySetServiceClient.listSampleQuerySets(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. The parent location resource name, such as + * `projects/{project}/locations/{location}`. + *

        If the caller does not have permission to list + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s under this location, + * regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSampleQuerySetsPagedResponse listSampleQuerySets(LocationName parent) { + ListSampleQuerySetsRequest request = + ListSampleQuerySetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSampleQuerySets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
        +   *   for (SampleQuerySet element :
        +   *       sampleQuerySetServiceClient.listSampleQuerySets(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. The parent location resource name, such as + * `projects/{project}/locations/{location}`. + *

        If the caller does not have permission to list + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s under this location, + * regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSampleQuerySetsPagedResponse listSampleQuerySets(String parent) { + ListSampleQuerySetsRequest request = + ListSampleQuerySetsRequest.newBuilder().setParent(parent).build(); + return listSampleQuerySets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   ListSampleQuerySetsRequest request =
        +   *       ListSampleQuerySetsRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   for (SampleQuerySet element :
        +   *       sampleQuerySetServiceClient.listSampleQuerySets(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 ListSampleQuerySetsPagedResponse listSampleQuerySets( + ListSampleQuerySetsRequest request) { + return listSampleQuerySetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   ListSampleQuerySetsRequest request =
        +   *       ListSampleQuerySetsRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       sampleQuerySetServiceClient.listSampleQuerySetsPagedCallable().futureCall(request);
        +   *   // Do something.
        +   *   for (SampleQuerySet element : future.get().iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listSampleQuerySetsPagedCallable() { + return stub.listSampleQuerySetsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   ListSampleQuerySetsRequest request =
        +   *       ListSampleQuerySetsRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   while (true) {
        +   *     ListSampleQuerySetsResponse response =
        +   *         sampleQuerySetServiceClient.listSampleQuerySetsCallable().call(request);
        +   *     for (SampleQuerySet element : response.getSampleQuerySetsList()) {
        +   *       // doThingsWith(element);
        +   *     }
        +   *     String nextPageToken = response.getNextPageToken();
        +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
        +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
        +   *     } else {
        +   *       break;
        +   *     }
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listSampleQuerySetsCallable() { + return stub.listSampleQuerySetsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +   *   SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build();
        +   *   String sampleQuerySetId = "sampleQuerySetId1320431231";
        +   *   SampleQuerySet response =
        +   *       sampleQuerySetServiceClient.createSampleQuerySet(
        +   *           parent, sampleQuerySet, sampleQuerySetId);
        +   * }
        +   * }
        + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}`. + * @param sampleQuerySet Required. The + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to create. + * @param sampleQuerySetId Required. The ID to use for the + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], which will become + * the final component of the + * [SampleQuerySet.name][google.cloud.discoveryengine.v1alpha.SampleQuerySet.name]. + *

        If the caller does not have permission to create the + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], regardless of + * whether or not it exists, a `PERMISSION_DENIED` error is returned. + *

        This field must be unique among all + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s with the same + * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.parent]. + * Otherwise, an `ALREADY_EXISTS` error is returned. + *

        This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with + * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuerySet createSampleQuerySet( + LocationName parent, SampleQuerySet sampleQuerySet, String sampleQuerySetId) { + CreateSampleQuerySetRequest request = + CreateSampleQuerySetRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSampleQuerySet(sampleQuerySet) + .setSampleQuerySetId(sampleQuerySetId) + .build(); + return createSampleQuerySet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
        +   *   SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build();
        +   *   String sampleQuerySetId = "sampleQuerySetId1320431231";
        +   *   SampleQuerySet response =
        +   *       sampleQuerySetServiceClient.createSampleQuerySet(
        +   *           parent, sampleQuerySet, sampleQuerySetId);
        +   * }
        +   * }
        + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}`. + * @param sampleQuerySet Required. The + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to create. + * @param sampleQuerySetId Required. The ID to use for the + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], which will become + * the final component of the + * [SampleQuerySet.name][google.cloud.discoveryengine.v1alpha.SampleQuerySet.name]. + *

        If the caller does not have permission to create the + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], regardless of + * whether or not it exists, a `PERMISSION_DENIED` error is returned. + *

        This field must be unique among all + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s with the same + * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.parent]. + * Otherwise, an `ALREADY_EXISTS` error is returned. + *

        This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with + * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuerySet createSampleQuerySet( + String parent, SampleQuerySet sampleQuerySet, String sampleQuerySetId) { + CreateSampleQuerySetRequest request = + CreateSampleQuerySetRequest.newBuilder() + .setParent(parent) + .setSampleQuerySet(sampleQuerySet) + .setSampleQuerySetId(sampleQuerySetId) + .build(); + return createSampleQuerySet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   CreateSampleQuerySetRequest request =
        +   *       CreateSampleQuerySetRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setSampleQuerySet(SampleQuerySet.newBuilder().build())
        +   *           .setSampleQuerySetId("sampleQuerySetId1320431231")
        +   *           .build();
        +   *   SampleQuerySet response = sampleQuerySetServiceClient.createSampleQuerySet(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 SampleQuerySet createSampleQuerySet(CreateSampleQuerySetRequest request) { + return createSampleQuerySetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   CreateSampleQuerySetRequest request =
        +   *       CreateSampleQuerySetRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setSampleQuerySet(SampleQuerySet.newBuilder().build())
        +   *           .setSampleQuerySetId("sampleQuerySetId1320431231")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       sampleQuerySetServiceClient.createSampleQuerySetCallable().futureCall(request);
        +   *   // Do something.
        +   *   SampleQuerySet response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable + createSampleQuerySetCallable() { + return stub.createSampleQuerySetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build();
        +   *   FieldMask updateMask = FieldMask.newBuilder().build();
        +   *   SampleQuerySet response =
        +   *       sampleQuerySetServiceClient.updateSampleQuerySet(sampleQuerySet, updateMask);
        +   * }
        +   * }
        + * + * @param sampleQuerySet Required. The sample query set to update. + *

        If the caller does not have permission to update the + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], regardless of + * whether or not it exists, a `PERMISSION_DENIED` error is returned. + *

        If the [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to update + * does not exist a `NOT_FOUND` error is returned. + * @param updateMask Indicates which fields in the provided imported 'sample query set' to update. + * If not set, will by default update all fields. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuerySet updateSampleQuerySet( + SampleQuerySet sampleQuerySet, FieldMask updateMask) { + UpdateSampleQuerySetRequest request = + UpdateSampleQuerySetRequest.newBuilder() + .setSampleQuerySet(sampleQuerySet) + .setUpdateMask(updateMask) + .build(); + return updateSampleQuerySet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   UpdateSampleQuerySetRequest request =
        +   *       UpdateSampleQuerySetRequest.newBuilder()
        +   *           .setSampleQuerySet(SampleQuerySet.newBuilder().build())
        +   *           .setUpdateMask(FieldMask.newBuilder().build())
        +   *           .build();
        +   *   SampleQuerySet response = sampleQuerySetServiceClient.updateSampleQuerySet(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 SampleQuerySet updateSampleQuerySet(UpdateSampleQuerySetRequest request) { + return updateSampleQuerySetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   UpdateSampleQuerySetRequest request =
        +   *       UpdateSampleQuerySetRequest.newBuilder()
        +   *           .setSampleQuerySet(SampleQuerySet.newBuilder().build())
        +   *           .setUpdateMask(FieldMask.newBuilder().build())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       sampleQuerySetServiceClient.updateSampleQuerySetCallable().futureCall(request);
        +   *   // Do something.
        +   *   SampleQuerySet response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable + updateSampleQuerySetCallable() { + return stub.updateSampleQuerySetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   SampleQuerySetName name =
        +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]");
        +   *   sampleQuerySetServiceClient.deleteSampleQuerySet(name);
        +   * }
        +   * }
        + * + * @param name Required. Full resource name of + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`. + *

        If the caller does not have permission to delete the + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], regardless of + * whether or not it exists, a `PERMISSION_DENIED` error is returned. + *

        If the [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to delete + * does not exist, a `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSampleQuerySet(SampleQuerySetName name) { + DeleteSampleQuerySetRequest request = + DeleteSampleQuerySetRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteSampleQuerySet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   String name =
        +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString();
        +   *   sampleQuerySetServiceClient.deleteSampleQuerySet(name);
        +   * }
        +   * }
        + * + * @param name Required. Full resource name of + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`. + *

        If the caller does not have permission to delete the + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], regardless of + * whether or not it exists, a `PERMISSION_DENIED` error is returned. + *

        If the [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to delete + * does not exist, a `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSampleQuerySet(String name) { + DeleteSampleQuerySetRequest request = + DeleteSampleQuerySetRequest.newBuilder().setName(name).build(); + deleteSampleQuerySet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   DeleteSampleQuerySetRequest request =
        +   *       DeleteSampleQuerySetRequest.newBuilder()
        +   *           .setName(
        +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
        +   *           .build();
        +   *   sampleQuerySetServiceClient.deleteSampleQuerySet(request);
        +   * }
        +   * }
        + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSampleQuerySet(DeleteSampleQuerySetRequest request) { + deleteSampleQuerySetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + * + *

        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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        +   *     SampleQuerySetServiceClient.create()) {
        +   *   DeleteSampleQuerySetRequest request =
        +   *       DeleteSampleQuerySetRequest.newBuilder()
        +   *           .setName(
        +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       sampleQuerySetServiceClient.deleteSampleQuerySetCallable().futureCall(request);
        +   *   // Do something.
        +   *   future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable deleteSampleQuerySetCallable() { + return stub.deleteSampleQuerySetCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListSampleQuerySetsPagedResponse + extends AbstractPagedListResponse< + ListSampleQuerySetsRequest, + ListSampleQuerySetsResponse, + SampleQuerySet, + ListSampleQuerySetsPage, + ListSampleQuerySetsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSampleQuerySetsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSampleQuerySetsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSampleQuerySetsPagedResponse(ListSampleQuerySetsPage page) { + super(page, ListSampleQuerySetsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSampleQuerySetsPage + extends AbstractPage< + ListSampleQuerySetsRequest, + ListSampleQuerySetsResponse, + SampleQuerySet, + ListSampleQuerySetsPage> { + + private ListSampleQuerySetsPage( + PageContext + context, + ListSampleQuerySetsResponse response) { + super(context, response); + } + + private static ListSampleQuerySetsPage createEmptyPage() { + return new ListSampleQuerySetsPage(null, null); + } + + @Override + protected ListSampleQuerySetsPage createPage( + PageContext + context, + ListSampleQuerySetsResponse response) { + return new ListSampleQuerySetsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSampleQuerySetsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSampleQuerySetsRequest, + ListSampleQuerySetsResponse, + SampleQuerySet, + ListSampleQuerySetsPage, + ListSampleQuerySetsFixedSizeCollection> { + + private ListSampleQuerySetsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSampleQuerySetsFixedSizeCollection createEmptyCollection() { + return new ListSampleQuerySetsFixedSizeCollection(null, 0); + } + + @Override + protected ListSampleQuerySetsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSampleQuerySetsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceSettings.java new file mode 100644 index 000000000000..e444b028e9e2 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceSettings.java @@ -0,0 +1,262 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient.ListSampleQuerySetsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.SampleQuerySetServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SampleQuerySetServiceClient}. + * + *

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

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

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

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

        {@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
        + * SampleQuerySetServiceSettings.Builder sampleQuerySetServiceSettingsBuilder =
        + *     SampleQuerySetServiceSettings.newBuilder();
        + * sampleQuerySetServiceSettingsBuilder
        + *     .getSampleQuerySetSettings()
        + *     .setRetrySettings(
        + *         sampleQuerySetServiceSettingsBuilder
        + *             .getSampleQuerySetSettings()
        + *             .getRetrySettings()
        + *             .toBuilder()
        + *             .setTotalTimeout(Duration.ofSeconds(30))
        + *             .build());
        + * SampleQuerySetServiceSettings sampleQuerySetServiceSettings =
        + *     sampleQuerySetServiceSettingsBuilder.build();
        + * }
        + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SampleQuerySetServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getSampleQuerySet. */ + public UnaryCallSettings getSampleQuerySetSettings() { + return ((SampleQuerySetServiceStubSettings) getStubSettings()).getSampleQuerySetSettings(); + } + + /** Returns the object with the settings used for calls to listSampleQuerySets. */ + public PagedCallSettings< + ListSampleQuerySetsRequest, ListSampleQuerySetsResponse, ListSampleQuerySetsPagedResponse> + listSampleQuerySetsSettings() { + return ((SampleQuerySetServiceStubSettings) getStubSettings()).listSampleQuerySetsSettings(); + } + + /** Returns the object with the settings used for calls to createSampleQuerySet. */ + public UnaryCallSettings + createSampleQuerySetSettings() { + return ((SampleQuerySetServiceStubSettings) getStubSettings()).createSampleQuerySetSettings(); + } + + /** Returns the object with the settings used for calls to updateSampleQuerySet. */ + public UnaryCallSettings + updateSampleQuerySetSettings() { + return ((SampleQuerySetServiceStubSettings) getStubSettings()).updateSampleQuerySetSettings(); + } + + /** Returns the object with the settings used for calls to deleteSampleQuerySet. */ + public UnaryCallSettings deleteSampleQuerySetSettings() { + return ((SampleQuerySetServiceStubSettings) getStubSettings()).deleteSampleQuerySetSettings(); + } + + public static final SampleQuerySetServiceSettings create(SampleQuerySetServiceStubSettings stub) + throws IOException { + return new SampleQuerySetServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SampleQuerySetServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SampleQuerySetServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SampleQuerySetServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SampleQuerySetServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SampleQuerySetServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SampleQuerySetServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SampleQuerySetServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SampleQuerySetServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SampleQuerySetServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SampleQuerySetServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(SampleQuerySetServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(SampleQuerySetServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SampleQuerySetServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(SampleQuerySetServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(SampleQuerySetServiceStubSettings.newHttpJsonBuilder()); + } + + public SampleQuerySetServiceStubSettings.Builder getStubSettingsBuilder() { + return ((SampleQuerySetServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

        Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getSampleQuerySet. */ + public UnaryCallSettings.Builder + getSampleQuerySetSettings() { + return getStubSettingsBuilder().getSampleQuerySetSettings(); + } + + /** Returns the builder for the settings used for calls to listSampleQuerySets. */ + public PagedCallSettings.Builder< + ListSampleQuerySetsRequest, + ListSampleQuerySetsResponse, + ListSampleQuerySetsPagedResponse> + listSampleQuerySetsSettings() { + return getStubSettingsBuilder().listSampleQuerySetsSettings(); + } + + /** Returns the builder for the settings used for calls to createSampleQuerySet. */ + public UnaryCallSettings.Builder + createSampleQuerySetSettings() { + return getStubSettingsBuilder().createSampleQuerySetSettings(); + } + + /** Returns the builder for the settings used for calls to updateSampleQuerySet. */ + public UnaryCallSettings.Builder + updateSampleQuerySetSettings() { + return getStubSettingsBuilder().updateSampleQuerySetSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSampleQuerySet. */ + public UnaryCallSettings.Builder + deleteSampleQuerySetSettings() { + return getStubSettingsBuilder().deleteSampleQuerySetSettings(); + } + + @Override + public SampleQuerySetServiceSettings build() throws IOException { + return new SampleQuerySetServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/gapic_metadata.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/gapic_metadata.json index 8d08e715f139..3f2c5626b5f3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/gapic_metadata.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/gapic_metadata.json @@ -233,6 +233,27 @@ } } }, + "EvaluationService": { + "clients": { + "grpc": { + "libraryClient": "EvaluationServiceClient", + "rpcs": { + "CreateEvaluation": { + "methods": ["createEvaluationAsync", "createEvaluationAsync", "createEvaluationAsync", "createEvaluationOperationCallable", "createEvaluationCallable"] + }, + "GetEvaluation": { + "methods": ["getEvaluation", "getEvaluation", "getEvaluation", "getEvaluationCallable"] + }, + "ListEvaluationResults": { + "methods": ["listEvaluationResults", "listEvaluationResults", "listEvaluationResults", "listEvaluationResultsPagedCallable", "listEvaluationResultsCallable"] + }, + "ListEvaluations": { + "methods": ["listEvaluations", "listEvaluations", "listEvaluations", "listEvaluationsPagedCallable", "listEvaluationsCallable"] + } + } + } + } + }, "GroundedGenerationService": { "clients": { "grpc": { @@ -287,6 +308,57 @@ } } }, + "SampleQueryService": { + "clients": { + "grpc": { + "libraryClient": "SampleQueryServiceClient", + "rpcs": { + "CreateSampleQuery": { + "methods": ["createSampleQuery", "createSampleQuery", "createSampleQuery", "createSampleQueryCallable"] + }, + "DeleteSampleQuery": { + "methods": ["deleteSampleQuery", "deleteSampleQuery", "deleteSampleQuery", "deleteSampleQueryCallable"] + }, + "GetSampleQuery": { + "methods": ["getSampleQuery", "getSampleQuery", "getSampleQuery", "getSampleQueryCallable"] + }, + "ImportSampleQueries": { + "methods": ["importSampleQueriesAsync", "importSampleQueriesOperationCallable", "importSampleQueriesCallable"] + }, + "ListSampleQueries": { + "methods": ["listSampleQueries", "listSampleQueries", "listSampleQueries", "listSampleQueriesPagedCallable", "listSampleQueriesCallable"] + }, + "UpdateSampleQuery": { + "methods": ["updateSampleQuery", "updateSampleQuery", "updateSampleQueryCallable"] + } + } + } + } + }, + "SampleQuerySetService": { + "clients": { + "grpc": { + "libraryClient": "SampleQuerySetServiceClient", + "rpcs": { + "CreateSampleQuerySet": { + "methods": ["createSampleQuerySet", "createSampleQuerySet", "createSampleQuerySet", "createSampleQuerySetCallable"] + }, + "DeleteSampleQuerySet": { + "methods": ["deleteSampleQuerySet", "deleteSampleQuerySet", "deleteSampleQuerySet", "deleteSampleQuerySetCallable"] + }, + "GetSampleQuerySet": { + "methods": ["getSampleQuerySet", "getSampleQuerySet", "getSampleQuerySet", "getSampleQuerySetCallable"] + }, + "ListSampleQuerySets": { + "methods": ["listSampleQuerySets", "listSampleQuerySets", "listSampleQuerySets", "listSampleQuerySetsPagedCallable", "listSampleQuerySetsCallable"] + }, + "UpdateSampleQuerySet": { + "methods": ["updateSampleQuerySet", "updateSampleQuerySet", "updateSampleQuerySetCallable"] + } + } + } + } + }, "SchemaService": { "clients": { "grpc": { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/package-info.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/package-info.java index 16774323bc5d..bdb4a2ba2336 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/package-info.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/package-info.java @@ -218,6 +218,25 @@ * } * } * + *

        ======================= EvaluationServiceClient ======================= + * + *

        Service Description: Service for managing + * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s, + * + *

        Sample for EvaluationServiceClient: + * + *

        {@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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
        + *   EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]");
        + *   Evaluation response = evaluationServiceClient.getEvaluation(name);
        + * }
        + * }
        + * *

        ======================= GroundedGenerationServiceClient ======================= * *

        Service Description: Service for grounded generation. @@ -324,6 +343,47 @@ * } * } * + *

        ======================= SampleQueryServiceClient ======================= + * + *

        Service Description: Service for managing + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s, + * + *

        Sample for SampleQueryServiceClient: + * + *

        {@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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
        + *   SampleQueryName name =
        + *       SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]");
        + *   SampleQuery response = sampleQueryServiceClient.getSampleQuery(name);
        + * }
        + * }
        + * + *

        ======================= SampleQuerySetServiceClient ======================= + * + *

        Service Description: Service for managing + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s, + * + *

        Sample for SampleQuerySetServiceClient: + * + *

        {@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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
        + *     SampleQuerySetServiceClient.create()) {
        + *   SampleQuerySetName name =
        + *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]");
        + *   SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(name);
        + * }
        + * }
        + * *

        ======================= SchemaServiceClient ======================= * *

        Service Description: Service for managing diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/AclConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/AclConfigServiceStubSettings.java index 0486490b611a..b95d41d14282 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/AclConfigServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/AclConfigServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -131,6 +132,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ChunkServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ChunkServiceStubSettings.java index 9ea20151dfc4..55928209c45f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ChunkServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ChunkServiceStubSettings.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; @@ -196,6 +197,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java index 9dac7934e85e..e98b6cd57fbc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -182,6 +183,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ControlServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ControlServiceStubSettings.java index ad0ae65ca401..128f447f604f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ControlServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ControlServiceStubSettings.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; @@ -220,6 +221,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java index aa2b6690343e..a8f7f6c33b5c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.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 "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java index c844dee3a434..431ab8927fff 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.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; @@ -264,6 +265,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java index 4f634118e98d..d02fc7d26189 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.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; @@ -273,6 +274,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStubSettings.java index ee557718da0c..b77b1ba37d15 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStubSettings.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; @@ -273,6 +274,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStubSettings.java index 1e350076ca5c..6afedee0b70c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -143,6 +144,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EvaluationServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EvaluationServiceStub.java new file mode 100644 index 000000000000..5f45980281b1 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EvaluationServiceStub.java @@ -0,0 +1,91 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient.ListEvaluationResultsPagedResponse; +import static com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient.ListEvaluationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata; +import com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest; +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the EvaluationService service API. + * + *

        This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class EvaluationServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable getEvaluationCallable() { + throw new UnsupportedOperationException("Not implemented: getEvaluationCallable()"); + } + + public UnaryCallable + listEvaluationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listEvaluationsPagedCallable()"); + } + + public UnaryCallable listEvaluationsCallable() { + throw new UnsupportedOperationException("Not implemented: listEvaluationsCallable()"); + } + + public OperationCallable + createEvaluationOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createEvaluationOperationCallable()"); + } + + public UnaryCallable createEvaluationCallable() { + throw new UnsupportedOperationException("Not implemented: createEvaluationCallable()"); + } + + public UnaryCallable + listEvaluationResultsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listEvaluationResultsPagedCallable()"); + } + + public UnaryCallable + listEvaluationResultsCallable() { + throw new UnsupportedOperationException("Not implemented: listEvaluationResultsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EvaluationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EvaluationServiceStubSettings.java new file mode 100644 index 000000000000..227ace695531 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EvaluationServiceStubSettings.java @@ -0,0 +1,630 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient.ListEvaluationResultsPagedResponse; +import static com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient.ListEvaluationsPagedResponse; + +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; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata; +import com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest; +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link EvaluationServiceStub}. + * + *

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

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

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

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

        {@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
        + * EvaluationServiceStubSettings.Builder evaluationServiceSettingsBuilder =
        + *     EvaluationServiceStubSettings.newBuilder();
        + * evaluationServiceSettingsBuilder
        + *     .getEvaluationSettings()
        + *     .setRetrySettings(
        + *         evaluationServiceSettingsBuilder
        + *             .getEvaluationSettings()
        + *             .getRetrySettings()
        + *             .toBuilder()
        + *             .setTotalTimeout(Duration.ofSeconds(30))
        + *             .build());
        + * EvaluationServiceStubSettings evaluationServiceSettings =
        + *     evaluationServiceSettingsBuilder.build();
        + * }
        + */ +@BetaApi +@Generated("by gapic-generator-java") +public class EvaluationServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings getEvaluationSettings; + private final PagedCallSettings< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings; + private final UnaryCallSettings createEvaluationSettings; + private final OperationCallSettings + createEvaluationOperationSettings; + private final PagedCallSettings< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse> + listEvaluationResultsSettings; + + private static final PagedListDescriptor< + ListEvaluationsRequest, ListEvaluationsResponse, Evaluation> + LIST_EVALUATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListEvaluationsRequest injectToken( + ListEvaluationsRequest payload, String token) { + return ListEvaluationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListEvaluationsRequest injectPageSize( + ListEvaluationsRequest payload, int pageSize) { + return ListEvaluationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListEvaluationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListEvaluationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListEvaluationsResponse payload) { + return payload.getEvaluationsList() == null + ? ImmutableList.of() + : payload.getEvaluationsList(); + } + }; + + private static final PagedListDescriptor< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult> + LIST_EVALUATION_RESULTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListEvaluationResultsRequest injectToken( + ListEvaluationResultsRequest payload, String token) { + return ListEvaluationResultsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListEvaluationResultsRequest injectPageSize( + ListEvaluationResultsRequest payload, int pageSize) { + return ListEvaluationResultsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListEvaluationResultsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListEvaluationResultsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListEvaluationResultsResponse payload) { + return payload.getEvaluationResultsList() == null + ? ImmutableList.of() + : payload.getEvaluationResultsList(); + } + }; + + private static final PagedListResponseFactory< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + LIST_EVALUATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListEvaluationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_EVALUATIONS_PAGE_STR_DESC, request, context); + return ListEvaluationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse> + LIST_EVALUATION_RESULTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListEvaluationResultsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult> + pageContext = + PageContext.create( + callable, LIST_EVALUATION_RESULTS_PAGE_STR_DESC, request, context); + return ListEvaluationResultsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getEvaluation. */ + public UnaryCallSettings getEvaluationSettings() { + return getEvaluationSettings; + } + + /** Returns the object with the settings used for calls to listEvaluations. */ + public PagedCallSettings< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings() { + return listEvaluationsSettings; + } + + /** Returns the object with the settings used for calls to createEvaluation. */ + public UnaryCallSettings createEvaluationSettings() { + return createEvaluationSettings; + } + + /** Returns the object with the settings used for calls to createEvaluation. */ + public OperationCallSettings + createEvaluationOperationSettings() { + return createEvaluationOperationSettings; + } + + /** Returns the object with the settings used for calls to listEvaluationResults. */ + public PagedCallSettings< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse> + listEvaluationResultsSettings() { + return listEvaluationResultsSettings; + } + + public EvaluationServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcEvaluationServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonEvaluationServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(EvaluationServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(EvaluationServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return EvaluationServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected EvaluationServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getEvaluationSettings = settingsBuilder.getEvaluationSettings().build(); + listEvaluationsSettings = settingsBuilder.listEvaluationsSettings().build(); + createEvaluationSettings = settingsBuilder.createEvaluationSettings().build(); + createEvaluationOperationSettings = settingsBuilder.createEvaluationOperationSettings().build(); + listEvaluationResultsSettings = settingsBuilder.listEvaluationResultsSettings().build(); + } + + /** Builder for EvaluationServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getEvaluationSettings; + private final PagedCallSettings.Builder< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings; + private final UnaryCallSettings.Builder + createEvaluationSettings; + private final OperationCallSettings.Builder< + CreateEvaluationRequest, Evaluation, CreateEvaluationMetadata> + createEvaluationOperationSettings; + private final PagedCallSettings.Builder< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse> + listEvaluationResultsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_3_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(30000L)) + .setTotalTimeout(Duration.ofMillis(30000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(300000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(300000L)) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build(); + definitions.put("no_retry_3_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listEvaluationsSettings = PagedCallSettings.newBuilder(LIST_EVALUATIONS_PAGE_STR_FACT); + createEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createEvaluationOperationSettings = OperationCallSettings.newBuilder(); + listEvaluationResultsSettings = + PagedCallSettings.newBuilder(LIST_EVALUATION_RESULTS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getEvaluationSettings, + listEvaluationsSettings, + createEvaluationSettings, + listEvaluationResultsSettings); + initDefaults(this); + } + + protected Builder(EvaluationServiceStubSettings settings) { + super(settings); + + getEvaluationSettings = settings.getEvaluationSettings.toBuilder(); + listEvaluationsSettings = settings.listEvaluationsSettings.toBuilder(); + createEvaluationSettings = settings.createEvaluationSettings.toBuilder(); + createEvaluationOperationSettings = settings.createEvaluationOperationSettings.toBuilder(); + listEvaluationResultsSettings = settings.listEvaluationResultsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getEvaluationSettings, + listEvaluationsSettings, + createEvaluationSettings, + listEvaluationResultsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getEvaluationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listEvaluationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .createEvaluationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + + builder + .listEvaluationResultsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .createEvaluationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Evaluation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CreateEvaluationMetadata.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; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

        Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getEvaluation. */ + public UnaryCallSettings.Builder getEvaluationSettings() { + return getEvaluationSettings; + } + + /** Returns the builder for the settings used for calls to listEvaluations. */ + public PagedCallSettings.Builder< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings() { + return listEvaluationsSettings; + } + + /** Returns the builder for the settings used for calls to createEvaluation. */ + public UnaryCallSettings.Builder + createEvaluationSettings() { + return createEvaluationSettings; + } + + /** Returns the builder for the settings used for calls to createEvaluation. */ + public OperationCallSettings.Builder< + CreateEvaluationRequest, Evaluation, CreateEvaluationMetadata> + createEvaluationOperationSettings() { + return createEvaluationOperationSettings; + } + + /** Returns the builder for the settings used for calls to listEvaluationResults. */ + public PagedCallSettings.Builder< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse> + listEvaluationResultsSettings() { + return listEvaluationResultsSettings; + } + + @Override + public EvaluationServiceStubSettings build() throws IOException { + return new EvaluationServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GroundedGenerationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GroundedGenerationServiceStubSettings.java index 0a34d4c54e68..8856adc57407 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GroundedGenerationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GroundedGenerationServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -128,6 +129,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcEvaluationServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcEvaluationServiceCallableFactory.java new file mode 100644 index 000000000000..49db69710131 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcEvaluationServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the EvaluationService service API. + * + *

        This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcEvaluationServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcEvaluationServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcEvaluationServiceStub.java new file mode 100644 index 000000000000..2b54b4a71571 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcEvaluationServiceStub.java @@ -0,0 +1,314 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient.ListEvaluationResultsPagedResponse; +import static com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient.ListEvaluationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata; +import com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest; +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the EvaluationService service API. + * + *

        This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcEvaluationServiceStub extends EvaluationServiceStub { + private static final MethodDescriptor + getEvaluationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.EvaluationService/GetEvaluation") + .setRequestMarshaller( + ProtoUtils.marshaller(GetEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Evaluation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listEvaluationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.EvaluationService/ListEvaluations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListEvaluationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListEvaluationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createEvaluationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.EvaluationService/CreateEvaluation") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listEvaluationResultsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.EvaluationService/ListEvaluationResults") + .setRequestMarshaller( + ProtoUtils.marshaller(ListEvaluationResultsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListEvaluationResultsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable getEvaluationCallable; + private final UnaryCallable + listEvaluationsCallable; + private final UnaryCallable + listEvaluationsPagedCallable; + private final UnaryCallable createEvaluationCallable; + private final OperationCallable + createEvaluationOperationCallable; + private final UnaryCallable + listEvaluationResultsCallable; + private final UnaryCallable + listEvaluationResultsPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcEvaluationServiceStub create(EvaluationServiceStubSettings settings) + throws IOException { + return new GrpcEvaluationServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcEvaluationServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcEvaluationServiceStub( + EvaluationServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcEvaluationServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcEvaluationServiceStub( + EvaluationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcEvaluationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcEvaluationServiceStub( + EvaluationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcEvaluationServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcEvaluationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcEvaluationServiceStub( + EvaluationServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getEvaluationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getEvaluationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listEvaluationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listEvaluationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createEvaluationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createEvaluationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listEvaluationResultsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listEvaluationResultsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("evaluation", String.valueOf(request.getEvaluation())); + return builder.build(); + }) + .build(); + + this.getEvaluationCallable = + callableFactory.createUnaryCallable( + getEvaluationTransportSettings, settings.getEvaluationSettings(), clientContext); + this.listEvaluationsCallable = + callableFactory.createUnaryCallable( + listEvaluationsTransportSettings, settings.listEvaluationsSettings(), clientContext); + this.listEvaluationsPagedCallable = + callableFactory.createPagedCallable( + listEvaluationsTransportSettings, settings.listEvaluationsSettings(), clientContext); + this.createEvaluationCallable = + callableFactory.createUnaryCallable( + createEvaluationTransportSettings, settings.createEvaluationSettings(), clientContext); + this.createEvaluationOperationCallable = + callableFactory.createOperationCallable( + createEvaluationTransportSettings, + settings.createEvaluationOperationSettings(), + clientContext, + operationsStub); + this.listEvaluationResultsCallable = + callableFactory.createUnaryCallable( + listEvaluationResultsTransportSettings, + settings.listEvaluationResultsSettings(), + clientContext); + this.listEvaluationResultsPagedCallable = + callableFactory.createPagedCallable( + listEvaluationResultsTransportSettings, + settings.listEvaluationResultsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getEvaluationCallable() { + return getEvaluationCallable; + } + + @Override + public UnaryCallable listEvaluationsCallable() { + return listEvaluationsCallable; + } + + @Override + public UnaryCallable + listEvaluationsPagedCallable() { + return listEvaluationsPagedCallable; + } + + @Override + public UnaryCallable createEvaluationCallable() { + return createEvaluationCallable; + } + + @Override + public OperationCallable + createEvaluationOperationCallable() { + return createEvaluationOperationCallable; + } + + @Override + public UnaryCallable + listEvaluationResultsCallable() { + return listEvaluationResultsCallable; + } + + @Override + public UnaryCallable + listEvaluationResultsPagedCallable() { + return listEvaluationResultsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSampleQueryServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSampleQueryServiceCallableFactory.java new file mode 100644 index 000000000000..23e6c4081597 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSampleQueryServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SampleQueryService service API. + * + *

        This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSampleQueryServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSampleQueryServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSampleQueryServiceStub.java new file mode 100644 index 000000000000..9f189cc11d20 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSampleQueryServiceStub.java @@ -0,0 +1,372 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient.ListSampleQueriesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SampleQueryService service API. + * + *

        This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSampleQueryServiceStub extends SampleQueryServiceStub { + private static final MethodDescriptor + getSampleQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQueryService/GetSampleQuery") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSampleQueryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SampleQuery.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listSampleQueriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQueryService/ListSampleQueries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSampleQueriesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSampleQueriesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createSampleQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQueryService/CreateSampleQuery") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSampleQueryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SampleQuery.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateSampleQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQueryService/UpdateSampleQuery") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSampleQueryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SampleQuery.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteSampleQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQueryService/DeleteSampleQuery") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteSampleQueryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + importSampleQueriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQueryService/ImportSampleQueries") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportSampleQueriesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable getSampleQueryCallable; + private final UnaryCallable + listSampleQueriesCallable; + private final UnaryCallable + listSampleQueriesPagedCallable; + private final UnaryCallable createSampleQueryCallable; + private final UnaryCallable updateSampleQueryCallable; + private final UnaryCallable deleteSampleQueryCallable; + private final UnaryCallable importSampleQueriesCallable; + private final OperationCallable< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSampleQueryServiceStub create(SampleQueryServiceStubSettings settings) + throws IOException { + return new GrpcSampleQueryServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSampleQueryServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcSampleQueryServiceStub( + SampleQueryServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSampleQueryServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSampleQueryServiceStub( + SampleQueryServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSampleQueryServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcSampleQueryServiceStub( + SampleQueryServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcSampleQueryServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcSampleQueryServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcSampleQueryServiceStub( + SampleQueryServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getSampleQueryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSampleQueryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listSampleQueriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSampleQueriesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createSampleQueryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSampleQueryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateSampleQueryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSampleQueryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "sample_query.name", String.valueOf(request.getSampleQuery().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteSampleQueryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSampleQueryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings importSampleQueriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importSampleQueriesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getSampleQueryCallable = + callableFactory.createUnaryCallable( + getSampleQueryTransportSettings, settings.getSampleQuerySettings(), clientContext); + this.listSampleQueriesCallable = + callableFactory.createUnaryCallable( + listSampleQueriesTransportSettings, + settings.listSampleQueriesSettings(), + clientContext); + this.listSampleQueriesPagedCallable = + callableFactory.createPagedCallable( + listSampleQueriesTransportSettings, + settings.listSampleQueriesSettings(), + clientContext); + this.createSampleQueryCallable = + callableFactory.createUnaryCallable( + createSampleQueryTransportSettings, + settings.createSampleQuerySettings(), + clientContext); + this.updateSampleQueryCallable = + callableFactory.createUnaryCallable( + updateSampleQueryTransportSettings, + settings.updateSampleQuerySettings(), + clientContext); + this.deleteSampleQueryCallable = + callableFactory.createUnaryCallable( + deleteSampleQueryTransportSettings, + settings.deleteSampleQuerySettings(), + clientContext); + this.importSampleQueriesCallable = + callableFactory.createUnaryCallable( + importSampleQueriesTransportSettings, + settings.importSampleQueriesSettings(), + clientContext); + this.importSampleQueriesOperationCallable = + callableFactory.createOperationCallable( + importSampleQueriesTransportSettings, + settings.importSampleQueriesOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getSampleQueryCallable() { + return getSampleQueryCallable; + } + + @Override + public UnaryCallable + listSampleQueriesCallable() { + return listSampleQueriesCallable; + } + + @Override + public UnaryCallable + listSampleQueriesPagedCallable() { + return listSampleQueriesPagedCallable; + } + + @Override + public UnaryCallable createSampleQueryCallable() { + return createSampleQueryCallable; + } + + @Override + public UnaryCallable updateSampleQueryCallable() { + return updateSampleQueryCallable; + } + + @Override + public UnaryCallable deleteSampleQueryCallable() { + return deleteSampleQueryCallable; + } + + @Override + public UnaryCallable importSampleQueriesCallable() { + return importSampleQueriesCallable; + } + + @Override + public OperationCallable< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationCallable() { + return importSampleQueriesOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSampleQuerySetServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSampleQuerySetServiceCallableFactory.java new file mode 100644 index 000000000000..ddf84e596ba6 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSampleQuerySetServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SampleQuerySetService service API. + * + *

        This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSampleQuerySetServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSampleQuerySetServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSampleQuerySetServiceStub.java new file mode 100644 index 000000000000..c9011ffdc76a --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSampleQuerySetServiceStub.java @@ -0,0 +1,326 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient.ListSampleQuerySetsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SampleQuerySetService service API. + * + *

        This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSampleQuerySetServiceStub extends SampleQuerySetServiceStub { + private static final MethodDescriptor + getSampleQuerySetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQuerySetService/GetSampleQuerySet") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSampleQuerySetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SampleQuerySet.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listSampleQuerySetsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQuerySetService/ListSampleQuerySets") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSampleQuerySetsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSampleQuerySetsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createSampleQuerySetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQuerySetService/CreateSampleQuerySet") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSampleQuerySetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SampleQuerySet.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateSampleQuerySetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQuerySetService/UpdateSampleQuerySet") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSampleQuerySetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SampleQuerySet.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteSampleQuerySetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQuerySetService/DeleteSampleQuerySet") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteSampleQuerySetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private final UnaryCallable getSampleQuerySetCallable; + private final UnaryCallable + listSampleQuerySetsCallable; + private final UnaryCallable + listSampleQuerySetsPagedCallable; + private final UnaryCallable + createSampleQuerySetCallable; + private final UnaryCallable + updateSampleQuerySetCallable; + private final UnaryCallable deleteSampleQuerySetCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSampleQuerySetServiceStub create( + SampleQuerySetServiceStubSettings settings) throws IOException { + return new GrpcSampleQuerySetServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSampleQuerySetServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSampleQuerySetServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSampleQuerySetServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcSampleQuerySetServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcSampleQuerySetServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getSampleQuerySetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSampleQuerySetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listSampleQuerySetsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSampleQuerySetsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createSampleQuerySetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSampleQuerySetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateSampleQuerySetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSampleQuerySetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "sample_query_set.name", + String.valueOf(request.getSampleQuerySet().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteSampleQuerySetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSampleQuerySetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.getSampleQuerySetCallable = + callableFactory.createUnaryCallable( + getSampleQuerySetTransportSettings, + settings.getSampleQuerySetSettings(), + clientContext); + this.listSampleQuerySetsCallable = + callableFactory.createUnaryCallable( + listSampleQuerySetsTransportSettings, + settings.listSampleQuerySetsSettings(), + clientContext); + this.listSampleQuerySetsPagedCallable = + callableFactory.createPagedCallable( + listSampleQuerySetsTransportSettings, + settings.listSampleQuerySetsSettings(), + clientContext); + this.createSampleQuerySetCallable = + callableFactory.createUnaryCallable( + createSampleQuerySetTransportSettings, + settings.createSampleQuerySetSettings(), + clientContext); + this.updateSampleQuerySetCallable = + callableFactory.createUnaryCallable( + updateSampleQuerySetTransportSettings, + settings.updateSampleQuerySetSettings(), + clientContext); + this.deleteSampleQuerySetCallable = + callableFactory.createUnaryCallable( + deleteSampleQuerySetTransportSettings, + settings.deleteSampleQuerySetSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getSampleQuerySetCallable() { + return getSampleQuerySetCallable; + } + + @Override + public UnaryCallable + listSampleQuerySetsCallable() { + return listSampleQuerySetsCallable; + } + + @Override + public UnaryCallable + listSampleQuerySetsPagedCallable() { + return listSampleQuerySetsPagedCallable; + } + + @Override + public UnaryCallable createSampleQuerySetCallable() { + return createSampleQuerySetCallable; + } + + @Override + public UnaryCallable updateSampleQuerySetCallable() { + return updateSampleQuerySetCallable; + } + + @Override + public UnaryCallable deleteSampleQuerySetCallable() { + return deleteSampleQuerySetCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonEvaluationServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonEvaluationServiceCallableFactory.java new file mode 100644 index 000000000000..c8b98866f376 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonEvaluationServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the EvaluationService service API. + * + *

        This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonEvaluationServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonEvaluationServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonEvaluationServiceStub.java new file mode 100644 index 000000000000..c929c379b614 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonEvaluationServiceStub.java @@ -0,0 +1,616 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient.ListEvaluationResultsPagedResponse; +import static com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient.ListEvaluationsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata; +import com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest; +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the EvaluationService service API. + * + *

        This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonEvaluationServiceStub extends EvaluationServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(CreateEvaluationMetadata.getDescriptor()) + .add(Evaluation.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + getEvaluationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.EvaluationService/GetEvaluation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/evaluations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Evaluation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listEvaluationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.EvaluationService/ListEvaluations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*}/evaluations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListEvaluationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createEvaluationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.EvaluationService/CreateEvaluation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*}/evaluations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("evaluation", request.getEvaluation(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateEvaluationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListEvaluationResultsRequest, ListEvaluationResultsResponse> + listEvaluationResultsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.EvaluationService/ListEvaluationResults") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{evaluation=projects/*/locations/*/evaluations/*}:listResults", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "evaluation", request.getEvaluation()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListEvaluationResultsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getEvaluationCallable; + private final UnaryCallable + listEvaluationsCallable; + private final UnaryCallable + listEvaluationsPagedCallable; + private final UnaryCallable createEvaluationCallable; + private final OperationCallable + createEvaluationOperationCallable; + private final UnaryCallable + listEvaluationResultsCallable; + private final UnaryCallable + listEvaluationResultsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonEvaluationServiceStub create(EvaluationServiceStubSettings settings) + throws IOException { + return new HttpJsonEvaluationServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonEvaluationServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonEvaluationServiceStub( + EvaluationServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonEvaluationServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonEvaluationServiceStub( + EvaluationServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonEvaluationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonEvaluationServiceStub( + EvaluationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonEvaluationServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonEvaluationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonEvaluationServiceStub( + EvaluationServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel") + .build()) + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings getEvaluationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getEvaluationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listEvaluationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listEvaluationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createEvaluationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createEvaluationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listEvaluationResultsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listEvaluationResultsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("evaluation", String.valueOf(request.getEvaluation())); + return builder.build(); + }) + .build(); + + this.getEvaluationCallable = + callableFactory.createUnaryCallable( + getEvaluationTransportSettings, settings.getEvaluationSettings(), clientContext); + this.listEvaluationsCallable = + callableFactory.createUnaryCallable( + listEvaluationsTransportSettings, settings.listEvaluationsSettings(), clientContext); + this.listEvaluationsPagedCallable = + callableFactory.createPagedCallable( + listEvaluationsTransportSettings, settings.listEvaluationsSettings(), clientContext); + this.createEvaluationCallable = + callableFactory.createUnaryCallable( + createEvaluationTransportSettings, settings.createEvaluationSettings(), clientContext); + this.createEvaluationOperationCallable = + callableFactory.createOperationCallable( + createEvaluationTransportSettings, + settings.createEvaluationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listEvaluationResultsCallable = + callableFactory.createUnaryCallable( + listEvaluationResultsTransportSettings, + settings.listEvaluationResultsSettings(), + clientContext); + this.listEvaluationResultsPagedCallable = + callableFactory.createPagedCallable( + listEvaluationResultsTransportSettings, + settings.listEvaluationResultsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getEvaluationMethodDescriptor); + methodDescriptors.add(listEvaluationsMethodDescriptor); + methodDescriptors.add(createEvaluationMethodDescriptor); + methodDescriptors.add(listEvaluationResultsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable getEvaluationCallable() { + return getEvaluationCallable; + } + + @Override + public UnaryCallable listEvaluationsCallable() { + return listEvaluationsCallable; + } + + @Override + public UnaryCallable + listEvaluationsPagedCallable() { + return listEvaluationsPagedCallable; + } + + @Override + public UnaryCallable createEvaluationCallable() { + return createEvaluationCallable; + } + + @Override + public OperationCallable + createEvaluationOperationCallable() { + return createEvaluationOperationCallable; + } + + @Override + public UnaryCallable + listEvaluationResultsCallable() { + return listEvaluationResultsCallable; + } + + @Override + public UnaryCallable + listEvaluationResultsPagedCallable() { + return listEvaluationResultsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSampleQueryServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSampleQueryServiceCallableFactory.java new file mode 100644 index 000000000000..b2c055c743f2 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSampleQueryServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SampleQueryService service API. + * + *

        This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSampleQueryServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSampleQueryServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSampleQueryServiceStub.java new file mode 100644 index 000000000000..d793f8b557fb --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSampleQueryServiceStub.java @@ -0,0 +1,736 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient.ListSampleQueriesPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SampleQueryService service API. + * + *

        This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSampleQueryServiceStub extends SampleQueryServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(ImportSampleQueriesResponse.getDescriptor()) + .add(ImportSampleQueriesMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + getSampleQueryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQueryService/GetSampleQuery") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/sampleQueries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SampleQuery.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSampleQueriesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQueryService/ListSampleQueries") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/sampleQuerySets/*}/sampleQueries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSampleQueriesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createSampleQueryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQueryService/CreateSampleQuery") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/sampleQuerySets/*}/sampleQueries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "sampleQueryId", request.getSampleQueryId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("sampleQuery", request.getSampleQuery(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SampleQuery.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateSampleQueryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQueryService/UpdateSampleQuery") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{sampleQuery.name=projects/*/locations/*/sampleQuerySets/*/sampleQueries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "sampleQuery.name", request.getSampleQuery().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("sampleQuery", request.getSampleQuery(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SampleQuery.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteSampleQueryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQueryService/DeleteSampleQuery") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/sampleQueries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + importSampleQueriesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQueryService/ImportSampleQueries") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/sampleQuerySets/*}/sampleQueries:import", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ImportSampleQueriesRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable getSampleQueryCallable; + private final UnaryCallable + listSampleQueriesCallable; + private final UnaryCallable + listSampleQueriesPagedCallable; + private final UnaryCallable createSampleQueryCallable; + private final UnaryCallable updateSampleQueryCallable; + private final UnaryCallable deleteSampleQueryCallable; + private final UnaryCallable importSampleQueriesCallable; + private final OperationCallable< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSampleQueryServiceStub create(SampleQueryServiceStubSettings settings) + throws IOException { + return new HttpJsonSampleQueryServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSampleQueryServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSampleQueryServiceStub( + SampleQueryServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSampleQueryServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSampleQueryServiceStub( + SampleQueryServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonSampleQueryServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSampleQueryServiceStub( + SampleQueryServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSampleQueryServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSampleQueryServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSampleQueryServiceStub( + SampleQueryServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel") + .build()) + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings getSampleQueryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSampleQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listSampleQueriesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSampleQueriesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createSampleQueryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSampleQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateSampleQueryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSampleQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "sample_query.name", String.valueOf(request.getSampleQuery().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteSampleQueryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSampleQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + importSampleQueriesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importSampleQueriesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getSampleQueryCallable = + callableFactory.createUnaryCallable( + getSampleQueryTransportSettings, settings.getSampleQuerySettings(), clientContext); + this.listSampleQueriesCallable = + callableFactory.createUnaryCallable( + listSampleQueriesTransportSettings, + settings.listSampleQueriesSettings(), + clientContext); + this.listSampleQueriesPagedCallable = + callableFactory.createPagedCallable( + listSampleQueriesTransportSettings, + settings.listSampleQueriesSettings(), + clientContext); + this.createSampleQueryCallable = + callableFactory.createUnaryCallable( + createSampleQueryTransportSettings, + settings.createSampleQuerySettings(), + clientContext); + this.updateSampleQueryCallable = + callableFactory.createUnaryCallable( + updateSampleQueryTransportSettings, + settings.updateSampleQuerySettings(), + clientContext); + this.deleteSampleQueryCallable = + callableFactory.createUnaryCallable( + deleteSampleQueryTransportSettings, + settings.deleteSampleQuerySettings(), + clientContext); + this.importSampleQueriesCallable = + callableFactory.createUnaryCallable( + importSampleQueriesTransportSettings, + settings.importSampleQueriesSettings(), + clientContext); + this.importSampleQueriesOperationCallable = + callableFactory.createOperationCallable( + importSampleQueriesTransportSettings, + settings.importSampleQueriesOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getSampleQueryMethodDescriptor); + methodDescriptors.add(listSampleQueriesMethodDescriptor); + methodDescriptors.add(createSampleQueryMethodDescriptor); + methodDescriptors.add(updateSampleQueryMethodDescriptor); + methodDescriptors.add(deleteSampleQueryMethodDescriptor); + methodDescriptors.add(importSampleQueriesMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable getSampleQueryCallable() { + return getSampleQueryCallable; + } + + @Override + public UnaryCallable + listSampleQueriesCallable() { + return listSampleQueriesCallable; + } + + @Override + public UnaryCallable + listSampleQueriesPagedCallable() { + return listSampleQueriesPagedCallable; + } + + @Override + public UnaryCallable createSampleQueryCallable() { + return createSampleQueryCallable; + } + + @Override + public UnaryCallable updateSampleQueryCallable() { + return updateSampleQueryCallable; + } + + @Override + public UnaryCallable deleteSampleQueryCallable() { + return deleteSampleQueryCallable; + } + + @Override + public UnaryCallable importSampleQueriesCallable() { + return importSampleQueriesCallable; + } + + @Override + public OperationCallable< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationCallable() { + return importSampleQueriesOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSampleQuerySetServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSampleQuerySetServiceCallableFactory.java new file mode 100644 index 000000000000..a4fa6d08f420 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSampleQuerySetServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SampleQuerySetService service API. + * + *

        This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSampleQuerySetServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSampleQuerySetServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSampleQuerySetServiceStub.java new file mode 100644 index 000000000000..beb53ec29480 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSampleQuerySetServiceStub.java @@ -0,0 +1,482 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient.ListSampleQuerySetsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SampleQuerySetService service API. + * + *

        This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSampleQuerySetServiceStub extends SampleQuerySetServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getSampleQuerySetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQuerySetService/GetSampleQuerySet") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SampleQuerySet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSampleQuerySetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQuerySetService/ListSampleQuerySets") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*}/sampleQuerySets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSampleQuerySetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createSampleQuerySetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQuerySetService/CreateSampleQuerySet") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*}/sampleQuerySets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "sampleQuerySetId", request.getSampleQuerySetId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("sampleQuerySet", request.getSampleQuerySet(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SampleQuerySet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateSampleQuerySetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQuerySetService/UpdateSampleQuerySet") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{sampleQuerySet.name=projects/*/locations/*/sampleQuerySets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "sampleQuerySet.name", + request.getSampleQuerySet().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("sampleQuerySet", request.getSampleQuerySet(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SampleQuerySet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteSampleQuerySetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SampleQuerySetService/DeleteSampleQuerySet") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getSampleQuerySetCallable; + private final UnaryCallable + listSampleQuerySetsCallable; + private final UnaryCallable + listSampleQuerySetsPagedCallable; + private final UnaryCallable + createSampleQuerySetCallable; + private final UnaryCallable + updateSampleQuerySetCallable; + private final UnaryCallable deleteSampleQuerySetCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSampleQuerySetServiceStub create( + SampleQuerySetServiceStubSettings settings) throws IOException { + return new HttpJsonSampleQuerySetServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSampleQuerySetServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSampleQuerySetServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonSampleQuerySetServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSampleQuerySetServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSampleQuerySetServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getSampleQuerySetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSampleQuerySetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listSampleQuerySetsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listSampleQuerySetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createSampleQuerySetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSampleQuerySetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateSampleQuerySetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSampleQuerySetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "sample_query_set.name", + String.valueOf(request.getSampleQuerySet().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteSampleQuerySetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSampleQuerySetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.getSampleQuerySetCallable = + callableFactory.createUnaryCallable( + getSampleQuerySetTransportSettings, + settings.getSampleQuerySetSettings(), + clientContext); + this.listSampleQuerySetsCallable = + callableFactory.createUnaryCallable( + listSampleQuerySetsTransportSettings, + settings.listSampleQuerySetsSettings(), + clientContext); + this.listSampleQuerySetsPagedCallable = + callableFactory.createPagedCallable( + listSampleQuerySetsTransportSettings, + settings.listSampleQuerySetsSettings(), + clientContext); + this.createSampleQuerySetCallable = + callableFactory.createUnaryCallable( + createSampleQuerySetTransportSettings, + settings.createSampleQuerySetSettings(), + clientContext); + this.updateSampleQuerySetCallable = + callableFactory.createUnaryCallable( + updateSampleQuerySetTransportSettings, + settings.updateSampleQuerySetSettings(), + clientContext); + this.deleteSampleQuerySetCallable = + callableFactory.createUnaryCallable( + deleteSampleQuerySetTransportSettings, + settings.deleteSampleQuerySetSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getSampleQuerySetMethodDescriptor); + methodDescriptors.add(listSampleQuerySetsMethodDescriptor); + methodDescriptors.add(createSampleQuerySetMethodDescriptor); + methodDescriptors.add(updateSampleQuerySetMethodDescriptor); + methodDescriptors.add(deleteSampleQuerySetMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getSampleQuerySetCallable() { + return getSampleQuerySetCallable; + } + + @Override + public UnaryCallable + listSampleQuerySetsCallable() { + return listSampleQuerySetsCallable; + } + + @Override + public UnaryCallable + listSampleQuerySetsPagedCallable() { + return listSampleQuerySetsPagedCallable; + } + + @Override + public UnaryCallable createSampleQuerySetCallable() { + return createSampleQuerySetCallable; + } + + @Override + public UnaryCallable updateSampleQuerySetCallable() { + return updateSampleQuerySetCallable; + } + + @Override + public UnaryCallable deleteSampleQuerySetCallable() { + return deleteSampleQuerySetCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ProjectServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ProjectServiceStubSettings.java index e1cd3fefaf61..be6c32a477e9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ProjectServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ProjectServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -153,6 +154,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RankServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RankServiceStubSettings.java index 4faa390e2974..ba96f9e1bd91 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RankServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RankServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -125,6 +126,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java index ccf0d04fec5c..708e769b457f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -127,6 +128,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQueryServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQueryServiceStub.java new file mode 100644 index 000000000000..649946a6e619 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQueryServiceStub.java @@ -0,0 +1,97 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient.ListSampleQueriesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SampleQueryService service API. + * + *

        This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class SampleQueryServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable getSampleQueryCallable() { + throw new UnsupportedOperationException("Not implemented: getSampleQueryCallable()"); + } + + public UnaryCallable + listSampleQueriesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSampleQueriesPagedCallable()"); + } + + public UnaryCallable + listSampleQueriesCallable() { + throw new UnsupportedOperationException("Not implemented: listSampleQueriesCallable()"); + } + + public UnaryCallable createSampleQueryCallable() { + throw new UnsupportedOperationException("Not implemented: createSampleQueryCallable()"); + } + + public UnaryCallable updateSampleQueryCallable() { + throw new UnsupportedOperationException("Not implemented: updateSampleQueryCallable()"); + } + + public UnaryCallable deleteSampleQueryCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSampleQueryCallable()"); + } + + public OperationCallable< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: importSampleQueriesOperationCallable()"); + } + + public UnaryCallable importSampleQueriesCallable() { + throw new UnsupportedOperationException("Not implemented: importSampleQueriesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQueryServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQueryServiceStubSettings.java new file mode 100644 index 000000000000..67777c054d50 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQueryServiceStubSettings.java @@ -0,0 +1,597 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient.ListSampleQueriesPagedResponse; + +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; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SampleQueryServiceStub}. + * + *

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

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

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

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

        {@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
        + * SampleQueryServiceStubSettings.Builder sampleQueryServiceSettingsBuilder =
        + *     SampleQueryServiceStubSettings.newBuilder();
        + * sampleQueryServiceSettingsBuilder
        + *     .getSampleQuerySettings()
        + *     .setRetrySettings(
        + *         sampleQueryServiceSettingsBuilder
        + *             .getSampleQuerySettings()
        + *             .getRetrySettings()
        + *             .toBuilder()
        + *             .setTotalTimeout(Duration.ofSeconds(30))
        + *             .build());
        + * SampleQueryServiceStubSettings sampleQueryServiceSettings =
        + *     sampleQueryServiceSettingsBuilder.build();
        + * }
        + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SampleQueryServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings getSampleQuerySettings; + private final PagedCallSettings< + ListSampleQueriesRequest, ListSampleQueriesResponse, ListSampleQueriesPagedResponse> + listSampleQueriesSettings; + private final UnaryCallSettings createSampleQuerySettings; + private final UnaryCallSettings updateSampleQuerySettings; + private final UnaryCallSettings deleteSampleQuerySettings; + private final UnaryCallSettings + importSampleQueriesSettings; + private final OperationCallSettings< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationSettings; + + private static final PagedListDescriptor< + ListSampleQueriesRequest, ListSampleQueriesResponse, SampleQuery> + LIST_SAMPLE_QUERIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListSampleQueriesRequest, ListSampleQueriesResponse, SampleQuery>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSampleQueriesRequest injectToken( + ListSampleQueriesRequest payload, String token) { + return ListSampleQueriesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSampleQueriesRequest injectPageSize( + ListSampleQueriesRequest payload, int pageSize) { + return ListSampleQueriesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSampleQueriesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSampleQueriesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSampleQueriesResponse payload) { + return payload.getSampleQueriesList() == null + ? ImmutableList.of() + : payload.getSampleQueriesList(); + } + }; + + private static final PagedListResponseFactory< + ListSampleQueriesRequest, ListSampleQueriesResponse, ListSampleQueriesPagedResponse> + LIST_SAMPLE_QUERIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSampleQueriesRequest, + ListSampleQueriesResponse, + ListSampleQueriesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSampleQueriesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_SAMPLE_QUERIES_PAGE_STR_DESC, request, context); + return ListSampleQueriesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getSampleQuery. */ + public UnaryCallSettings getSampleQuerySettings() { + return getSampleQuerySettings; + } + + /** Returns the object with the settings used for calls to listSampleQueries. */ + public PagedCallSettings< + ListSampleQueriesRequest, ListSampleQueriesResponse, ListSampleQueriesPagedResponse> + listSampleQueriesSettings() { + return listSampleQueriesSettings; + } + + /** Returns the object with the settings used for calls to createSampleQuery. */ + public UnaryCallSettings createSampleQuerySettings() { + return createSampleQuerySettings; + } + + /** Returns the object with the settings used for calls to updateSampleQuery. */ + public UnaryCallSettings updateSampleQuerySettings() { + return updateSampleQuerySettings; + } + + /** Returns the object with the settings used for calls to deleteSampleQuery. */ + public UnaryCallSettings deleteSampleQuerySettings() { + return deleteSampleQuerySettings; + } + + /** Returns the object with the settings used for calls to importSampleQueries. */ + public UnaryCallSettings importSampleQueriesSettings() { + return importSampleQueriesSettings; + } + + /** Returns the object with the settings used for calls to importSampleQueries. */ + public OperationCallSettings< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationSettings() { + return importSampleQueriesOperationSettings; + } + + public SampleQueryServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSampleQueryServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSampleQueryServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SampleQueryServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SampleQueryServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SampleQueryServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SampleQueryServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getSampleQuerySettings = settingsBuilder.getSampleQuerySettings().build(); + listSampleQueriesSettings = settingsBuilder.listSampleQueriesSettings().build(); + createSampleQuerySettings = settingsBuilder.createSampleQuerySettings().build(); + updateSampleQuerySettings = settingsBuilder.updateSampleQuerySettings().build(); + deleteSampleQuerySettings = settingsBuilder.deleteSampleQuerySettings().build(); + importSampleQueriesSettings = settingsBuilder.importSampleQueriesSettings().build(); + importSampleQueriesOperationSettings = + settingsBuilder.importSampleQueriesOperationSettings().build(); + } + + /** Builder for SampleQueryServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getSampleQuerySettings; + private final PagedCallSettings.Builder< + ListSampleQueriesRequest, ListSampleQueriesResponse, ListSampleQueriesPagedResponse> + listSampleQueriesSettings; + private final UnaryCallSettings.Builder + createSampleQuerySettings; + private final UnaryCallSettings.Builder + updateSampleQuerySettings; + private final UnaryCallSettings.Builder + deleteSampleQuerySettings; + private final UnaryCallSettings.Builder + importSampleQueriesSettings; + private final OperationCallSettings.Builder< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(30000L)) + .setTotalTimeout(Duration.ofMillis(30000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getSampleQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSampleQueriesSettings = PagedCallSettings.newBuilder(LIST_SAMPLE_QUERIES_PAGE_STR_FACT); + createSampleQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSampleQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSampleQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importSampleQueriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importSampleQueriesOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getSampleQuerySettings, + listSampleQueriesSettings, + createSampleQuerySettings, + updateSampleQuerySettings, + deleteSampleQuerySettings, + importSampleQueriesSettings); + initDefaults(this); + } + + protected Builder(SampleQueryServiceStubSettings settings) { + super(settings); + + getSampleQuerySettings = settings.getSampleQuerySettings.toBuilder(); + listSampleQueriesSettings = settings.listSampleQueriesSettings.toBuilder(); + createSampleQuerySettings = settings.createSampleQuerySettings.toBuilder(); + updateSampleQuerySettings = settings.updateSampleQuerySettings.toBuilder(); + deleteSampleQuerySettings = settings.deleteSampleQuerySettings.toBuilder(); + importSampleQueriesSettings = settings.importSampleQueriesSettings.toBuilder(); + importSampleQueriesOperationSettings = + settings.importSampleQueriesOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getSampleQuerySettings, + listSampleQueriesSettings, + createSampleQuerySettings, + updateSampleQuerySettings, + deleteSampleQuerySettings, + importSampleQueriesSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getSampleQuerySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listSampleQueriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .createSampleQuerySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .updateSampleQuerySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .deleteSampleQuerySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .importSampleQueriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .importSampleQueriesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + ImportSampleQueriesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + ImportSampleQueriesMetadata.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; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

        Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getSampleQuery. */ + public UnaryCallSettings.Builder getSampleQuerySettings() { + return getSampleQuerySettings; + } + + /** Returns the builder for the settings used for calls to listSampleQueries. */ + public PagedCallSettings.Builder< + ListSampleQueriesRequest, ListSampleQueriesResponse, ListSampleQueriesPagedResponse> + listSampleQueriesSettings() { + return listSampleQueriesSettings; + } + + /** Returns the builder for the settings used for calls to createSampleQuery. */ + public UnaryCallSettings.Builder + createSampleQuerySettings() { + return createSampleQuerySettings; + } + + /** Returns the builder for the settings used for calls to updateSampleQuery. */ + public UnaryCallSettings.Builder + updateSampleQuerySettings() { + return updateSampleQuerySettings; + } + + /** Returns the builder for the settings used for calls to deleteSampleQuery. */ + public UnaryCallSettings.Builder deleteSampleQuerySettings() { + return deleteSampleQuerySettings; + } + + /** Returns the builder for the settings used for calls to importSampleQueries. */ + public UnaryCallSettings.Builder + importSampleQueriesSettings() { + return importSampleQueriesSettings; + } + + /** Returns the builder for the settings used for calls to importSampleQueries. */ + public OperationCallSettings.Builder< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationSettings() { + return importSampleQueriesOperationSettings; + } + + @Override + public SampleQueryServiceStubSettings build() throws IOException { + return new SampleQueryServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQuerySetServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQuerySetServiceStub.java new file mode 100644 index 000000000000..9457a0598bb2 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQuerySetServiceStub.java @@ -0,0 +1,72 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient.ListSampleQuerySetsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SampleQuerySetService service API. + * + *

        This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class SampleQuerySetServiceStub implements BackgroundResource { + + public UnaryCallable getSampleQuerySetCallable() { + throw new UnsupportedOperationException("Not implemented: getSampleQuerySetCallable()"); + } + + public UnaryCallable + listSampleQuerySetsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSampleQuerySetsPagedCallable()"); + } + + public UnaryCallable + listSampleQuerySetsCallable() { + throw new UnsupportedOperationException("Not implemented: listSampleQuerySetsCallable()"); + } + + public UnaryCallable createSampleQuerySetCallable() { + throw new UnsupportedOperationException("Not implemented: createSampleQuerySetCallable()"); + } + + public UnaryCallable updateSampleQuerySetCallable() { + throw new UnsupportedOperationException("Not implemented: updateSampleQuerySetCallable()"); + } + + public UnaryCallable deleteSampleQuerySetCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSampleQuerySetCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQuerySetServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQuerySetServiceStubSettings.java new file mode 100644 index 000000000000..b00f38b18ea9 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQuerySetServiceStubSettings.java @@ -0,0 +1,526 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient.ListSampleQuerySetsPagedResponse; + +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; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SampleQuerySetServiceStub}. + * + *

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

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

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

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

        {@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
        + * SampleQuerySetServiceStubSettings.Builder sampleQuerySetServiceSettingsBuilder =
        + *     SampleQuerySetServiceStubSettings.newBuilder();
        + * sampleQuerySetServiceSettingsBuilder
        + *     .getSampleQuerySetSettings()
        + *     .setRetrySettings(
        + *         sampleQuerySetServiceSettingsBuilder
        + *             .getSampleQuerySetSettings()
        + *             .getRetrySettings()
        + *             .toBuilder()
        + *             .setTotalTimeout(Duration.ofSeconds(30))
        + *             .build());
        + * SampleQuerySetServiceStubSettings sampleQuerySetServiceSettings =
        + *     sampleQuerySetServiceSettingsBuilder.build();
        + * }
        + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SampleQuerySetServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + getSampleQuerySetSettings; + private final PagedCallSettings< + ListSampleQuerySetsRequest, ListSampleQuerySetsResponse, ListSampleQuerySetsPagedResponse> + listSampleQuerySetsSettings; + private final UnaryCallSettings + createSampleQuerySetSettings; + private final UnaryCallSettings + updateSampleQuerySetSettings; + private final UnaryCallSettings deleteSampleQuerySetSettings; + + private static final PagedListDescriptor< + ListSampleQuerySetsRequest, ListSampleQuerySetsResponse, SampleQuerySet> + LIST_SAMPLE_QUERY_SETS_PAGE_STR_DESC = + new PagedListDescriptor< + ListSampleQuerySetsRequest, ListSampleQuerySetsResponse, SampleQuerySet>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSampleQuerySetsRequest injectToken( + ListSampleQuerySetsRequest payload, String token) { + return ListSampleQuerySetsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSampleQuerySetsRequest injectPageSize( + ListSampleQuerySetsRequest payload, int pageSize) { + return ListSampleQuerySetsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSampleQuerySetsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSampleQuerySetsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSampleQuerySetsResponse payload) { + return payload.getSampleQuerySetsList() == null + ? ImmutableList.of() + : payload.getSampleQuerySetsList(); + } + }; + + private static final PagedListResponseFactory< + ListSampleQuerySetsRequest, ListSampleQuerySetsResponse, ListSampleQuerySetsPagedResponse> + LIST_SAMPLE_QUERY_SETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSampleQuerySetsRequest, + ListSampleQuerySetsResponse, + ListSampleQuerySetsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSampleQuerySetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_SAMPLE_QUERY_SETS_PAGE_STR_DESC, request, context); + return ListSampleQuerySetsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getSampleQuerySet. */ + public UnaryCallSettings getSampleQuerySetSettings() { + return getSampleQuerySetSettings; + } + + /** Returns the object with the settings used for calls to listSampleQuerySets. */ + public PagedCallSettings< + ListSampleQuerySetsRequest, ListSampleQuerySetsResponse, ListSampleQuerySetsPagedResponse> + listSampleQuerySetsSettings() { + return listSampleQuerySetsSettings; + } + + /** Returns the object with the settings used for calls to createSampleQuerySet. */ + public UnaryCallSettings + createSampleQuerySetSettings() { + return createSampleQuerySetSettings; + } + + /** Returns the object with the settings used for calls to updateSampleQuerySet. */ + public UnaryCallSettings + updateSampleQuerySetSettings() { + return updateSampleQuerySetSettings; + } + + /** Returns the object with the settings used for calls to deleteSampleQuerySet. */ + public UnaryCallSettings deleteSampleQuerySetSettings() { + return deleteSampleQuerySetSettings; + } + + public SampleQuerySetServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSampleQuerySetServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSampleQuerySetServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SampleQuerySetServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SampleQuerySetServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SampleQuerySetServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SampleQuerySetServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getSampleQuerySetSettings = settingsBuilder.getSampleQuerySetSettings().build(); + listSampleQuerySetsSettings = settingsBuilder.listSampleQuerySetsSettings().build(); + createSampleQuerySetSettings = settingsBuilder.createSampleQuerySetSettings().build(); + updateSampleQuerySetSettings = settingsBuilder.updateSampleQuerySetSettings().build(); + deleteSampleQuerySetSettings = settingsBuilder.deleteSampleQuerySetSettings().build(); + } + + /** Builder for SampleQuerySetServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getSampleQuerySetSettings; + private final PagedCallSettings.Builder< + ListSampleQuerySetsRequest, + ListSampleQuerySetsResponse, + ListSampleQuerySetsPagedResponse> + listSampleQuerySetsSettings; + private final UnaryCallSettings.Builder + createSampleQuerySetSettings; + private final UnaryCallSettings.Builder + updateSampleQuerySetSettings; + private final UnaryCallSettings.Builder + deleteSampleQuerySetSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(30000L)) + .setTotalTimeout(Duration.ofMillis(30000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getSampleQuerySetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSampleQuerySetsSettings = + PagedCallSettings.newBuilder(LIST_SAMPLE_QUERY_SETS_PAGE_STR_FACT); + createSampleQuerySetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSampleQuerySetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSampleQuerySetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getSampleQuerySetSettings, + listSampleQuerySetsSettings, + createSampleQuerySetSettings, + updateSampleQuerySetSettings, + deleteSampleQuerySetSettings); + initDefaults(this); + } + + protected Builder(SampleQuerySetServiceStubSettings settings) { + super(settings); + + getSampleQuerySetSettings = settings.getSampleQuerySetSettings.toBuilder(); + listSampleQuerySetsSettings = settings.listSampleQuerySetsSettings.toBuilder(); + createSampleQuerySetSettings = settings.createSampleQuerySetSettings.toBuilder(); + updateSampleQuerySetSettings = settings.updateSampleQuerySetSettings.toBuilder(); + deleteSampleQuerySetSettings = settings.deleteSampleQuerySetSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getSampleQuerySetSettings, + listSampleQuerySetsSettings, + createSampleQuerySetSettings, + updateSampleQuerySetSettings, + deleteSampleQuerySetSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getSampleQuerySetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listSampleQuerySetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .createSampleQuerySetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .updateSampleQuerySetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .deleteSampleQuerySetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

        Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getSampleQuerySet. */ + public UnaryCallSettings.Builder + getSampleQuerySetSettings() { + return getSampleQuerySetSettings; + } + + /** Returns the builder for the settings used for calls to listSampleQuerySets. */ + public PagedCallSettings.Builder< + ListSampleQuerySetsRequest, + ListSampleQuerySetsResponse, + ListSampleQuerySetsPagedResponse> + listSampleQuerySetsSettings() { + return listSampleQuerySetsSettings; + } + + /** Returns the builder for the settings used for calls to createSampleQuerySet. */ + public UnaryCallSettings.Builder + createSampleQuerySetSettings() { + return createSampleQuerySetSettings; + } + + /** Returns the builder for the settings used for calls to updateSampleQuerySet. */ + public UnaryCallSettings.Builder + updateSampleQuerySetSettings() { + return updateSampleQuerySetSettings; + } + + /** Returns the builder for the settings used for calls to deleteSampleQuerySet. */ + public UnaryCallSettings.Builder + deleteSampleQuerySetSettings() { + return deleteSampleQuerySetSettings; + } + + @Override + public SampleQuerySetServiceStubSettings build() throws IOException { + return new SampleQuerySetServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java index 3118c322617e..ca2d1fdb5339 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.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; @@ -251,6 +252,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java index 3c1f016978e9..e6928c6b78ff 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.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; @@ -187,6 +188,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStubSettings.java index 8fc436b10a5a..d10973b12e48 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -152,6 +153,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ServingConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ServingConfigServiceStubSettings.java index 97efa3f7d440..c359dba48ceb 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ServingConfigServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ServingConfigServiceStubSettings.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; @@ -217,6 +218,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java index 9ebc2f52f470..19e26e7f0ff3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.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; @@ -481,6 +482,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java index c7c6c3ad9106..5f37b70a1ee2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java @@ -19,6 +19,7 @@ import com.google.api.HttpBody; import com.google.api.core.ApiFunction; 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; @@ -176,6 +177,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java index 27497849faef..f3834907eb46 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java @@ -113,6 +113,36 @@ *

      * * + * + *

      ImportCompletionSuggestions + *

      Imports [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s for a DataStore. + * + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • importCompletionSuggestionsAsync(ImportCompletionSuggestionsRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • importCompletionSuggestionsOperationCallable() + *

      • importCompletionSuggestionsCallable() + *

      + * + * + * + *

      PurgeCompletionSuggestions + *

      Permanently deletes all [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s for a DataStore. + * + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • purgeCompletionSuggestionsAsync(PurgeCompletionSuggestionsRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • purgeCompletionSuggestionsOperationCallable() + *

      • purgeCompletionSuggestionsCallable() + *

      + * + * * * *

      See the individual methods for example code. @@ -539,6 +569,226 @@ public final UnaryCallable complete return stub.purgeSuggestionDenyListEntriesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s for a + * DataStore. + * + *

      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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
      +   *   ImportCompletionSuggestionsRequest request =
      +   *       ImportCompletionSuggestionsRequest.newBuilder()
      +   *           .setParent(
      +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
      +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
      +   *                   .toString())
      +   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
      +   *           .build();
      +   *   ImportCompletionSuggestionsResponse response =
      +   *       completionServiceClient.importCompletionSuggestionsAsync(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< + ImportCompletionSuggestionsResponse, ImportCompletionSuggestionsMetadata> + importCompletionSuggestionsAsync(ImportCompletionSuggestionsRequest request) { + return importCompletionSuggestionsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s for a + * DataStore. + * + *

      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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
      +   *   ImportCompletionSuggestionsRequest request =
      +   *       ImportCompletionSuggestionsRequest.newBuilder()
      +   *           .setParent(
      +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
      +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
      +   *                   .toString())
      +   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
      +   *           .build();
      +   *   OperationFuture
      +   *       future =
      +   *           completionServiceClient
      +   *               .importCompletionSuggestionsOperationCallable()
      +   *               .futureCall(request);
      +   *   // Do something.
      +   *   ImportCompletionSuggestionsResponse response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable< + ImportCompletionSuggestionsRequest, + ImportCompletionSuggestionsResponse, + ImportCompletionSuggestionsMetadata> + importCompletionSuggestionsOperationCallable() { + return stub.importCompletionSuggestionsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s for a + * DataStore. + * + *

      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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
      +   *   ImportCompletionSuggestionsRequest request =
      +   *       ImportCompletionSuggestionsRequest.newBuilder()
      +   *           .setParent(
      +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
      +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
      +   *                   .toString())
      +   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       completionServiceClient.importCompletionSuggestionsCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + importCompletionSuggestionsCallable() { + return stub.importCompletionSuggestionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all + * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s for a + * DataStore. + * + *

      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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
      +   *   PurgeCompletionSuggestionsRequest request =
      +   *       PurgeCompletionSuggestionsRequest.newBuilder()
      +   *           .setParent(
      +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
      +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
      +   *                   .toString())
      +   *           .build();
      +   *   PurgeCompletionSuggestionsResponse response =
      +   *       completionServiceClient.purgeCompletionSuggestionsAsync(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< + PurgeCompletionSuggestionsResponse, PurgeCompletionSuggestionsMetadata> + purgeCompletionSuggestionsAsync(PurgeCompletionSuggestionsRequest request) { + return purgeCompletionSuggestionsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all + * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s for a + * DataStore. + * + *

      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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
      +   *   PurgeCompletionSuggestionsRequest request =
      +   *       PurgeCompletionSuggestionsRequest.newBuilder()
      +   *           .setParent(
      +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
      +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
      +   *                   .toString())
      +   *           .build();
      +   *   OperationFuture
      +   *       future =
      +   *           completionServiceClient
      +   *               .purgeCompletionSuggestionsOperationCallable()
      +   *               .futureCall(request);
      +   *   // Do something.
      +   *   PurgeCompletionSuggestionsResponse response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable< + PurgeCompletionSuggestionsRequest, + PurgeCompletionSuggestionsResponse, + PurgeCompletionSuggestionsMetadata> + purgeCompletionSuggestionsOperationCallable() { + return stub.purgeCompletionSuggestionsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all + * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s for a + * DataStore. + * + *

      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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
      +   *   PurgeCompletionSuggestionsRequest request =
      +   *       PurgeCompletionSuggestionsRequest.newBuilder()
      +   *           .setParent(
      +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
      +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
      +   *                   .toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       completionServiceClient.purgeCompletionSuggestionsCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + purgeCompletionSuggestionsCallable() { + return stub.purgeCompletionSuggestionsCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java index 06dd4ff22949..4a8ebb693a94 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java @@ -115,6 +115,39 @@ public UnaryCallSettings completeQu .purgeSuggestionDenyListEntriesOperationSettings(); } + /** Returns the object with the settings used for calls to importCompletionSuggestions. */ + public UnaryCallSettings + importCompletionSuggestionsSettings() { + return ((CompletionServiceStubSettings) getStubSettings()) + .importCompletionSuggestionsSettings(); + } + + /** Returns the object with the settings used for calls to importCompletionSuggestions. */ + public OperationCallSettings< + ImportCompletionSuggestionsRequest, + ImportCompletionSuggestionsResponse, + ImportCompletionSuggestionsMetadata> + importCompletionSuggestionsOperationSettings() { + return ((CompletionServiceStubSettings) getStubSettings()) + .importCompletionSuggestionsOperationSettings(); + } + + /** Returns the object with the settings used for calls to purgeCompletionSuggestions. */ + public UnaryCallSettings + purgeCompletionSuggestionsSettings() { + return ((CompletionServiceStubSettings) getStubSettings()).purgeCompletionSuggestionsSettings(); + } + + /** Returns the object with the settings used for calls to purgeCompletionSuggestions. */ + public OperationCallSettings< + PurgeCompletionSuggestionsRequest, + PurgeCompletionSuggestionsResponse, + PurgeCompletionSuggestionsMetadata> + purgeCompletionSuggestionsOperationSettings() { + return ((CompletionServiceStubSettings) getStubSettings()) + .purgeCompletionSuggestionsOperationSettings(); + } + public static final CompletionServiceSettings create(CompletionServiceStubSettings stub) throws IOException { return new CompletionServiceSettings.Builder(stub.toBuilder()).build(); @@ -263,6 +296,36 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().purgeSuggestionDenyListEntriesOperationSettings(); } + /** Returns the builder for the settings used for calls to importCompletionSuggestions. */ + public UnaryCallSettings.Builder + importCompletionSuggestionsSettings() { + return getStubSettingsBuilder().importCompletionSuggestionsSettings(); + } + + /** Returns the builder for the settings used for calls to importCompletionSuggestions. */ + public OperationCallSettings.Builder< + ImportCompletionSuggestionsRequest, + ImportCompletionSuggestionsResponse, + ImportCompletionSuggestionsMetadata> + importCompletionSuggestionsOperationSettings() { + return getStubSettingsBuilder().importCompletionSuggestionsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to purgeCompletionSuggestions. */ + public UnaryCallSettings.Builder + purgeCompletionSuggestionsSettings() { + return getStubSettingsBuilder().purgeCompletionSuggestionsSettings(); + } + + /** Returns the builder for the settings used for calls to purgeCompletionSuggestions. */ + public OperationCallSettings.Builder< + PurgeCompletionSuggestionsRequest, + PurgeCompletionSuggestionsResponse, + PurgeCompletionSuggestionsMetadata> + purgeCompletionSuggestionsOperationSettings() { + return getStubSettingsBuilder().purgeCompletionSuggestionsOperationSettings(); + } + @Override public CompletionServiceSettings build() throws IOException { return new CompletionServiceSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java index 643913da0f6e..02ea3dc0c0b8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java @@ -1361,6 +1361,7 @@ public final ListConversationsPagedResponse listConversations(ListConversationsR * AnswerQueryRequest.QueryUnderstandingSpec.newBuilder().build()) * .setAsynchronousMode(true) * .setUserPseudoId("userPseudoId-1155274652") + * .putAllUserLabels(new HashMap()) * .build(); * AnswerQueryResponse response = conversationalSearchServiceClient.answerQuery(request); * } @@ -1406,6 +1407,7 @@ public final AnswerQueryResponse answerQuery(AnswerQueryRequest request) { * AnswerQueryRequest.QueryUnderstandingSpec.newBuilder().build()) * .setAsynchronousMode(true) * .setUserPseudoId("userPseudoId-1155274652") + * .putAllUserLabels(new HashMap()) * .build(); * ApiFuture future = * conversationalSearchServiceClient.answerQueryCallable().futureCall(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClient.java index fd623924168a..ebe735292596 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClient.java @@ -422,6 +422,7 @@ public final OperationFuture createDataStore * .setDataStore(DataStore.newBuilder().build()) * .setDataStoreId("dataStoreId929489618") * .setCreateAdvancedSiteSearch(true) + * .setSkipDefaultSchemaCreation(true) * .build(); * DataStore response = dataStoreServiceClient.createDataStoreAsync(request).get(); * } @@ -458,6 +459,7 @@ public final OperationFuture createDataStore * .setDataStore(DataStore.newBuilder().build()) * .setDataStoreId("dataStoreId929489618") * .setCreateAdvancedSiteSearch(true) + * .setSkipDefaultSchemaCreation(true) * .build(); * OperationFuture future = * dataStoreServiceClient.createDataStoreOperationCallable().futureCall(request); @@ -494,6 +496,7 @@ public final OperationFuture createDataStore * .setDataStore(DataStore.newBuilder().build()) * .setDataStoreId("dataStoreId929489618") * .setCreateAdvancedSiteSearch(true) + * .setSkipDefaultSchemaCreation(true) * .build(); * ApiFuture future = * dataStoreServiceClient.createDataStoreCallable().futureCall(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClient.java new file mode 100644 index 000000000000..3f39a1c1ad7f --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClient.java @@ -0,0 +1,1134 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.stub.EvaluationServiceStub; +import com.google.cloud.discoveryengine.v1beta.stub.EvaluationServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing + * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s, + * + *

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

      {@code
      + * // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      + *   EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]");
      + *   Evaluation response = evaluationServiceClient.getEvaluation(name);
      + * }
      + * }
      + * + *

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

      GetEvaluation

      Gets a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getEvaluation(GetEvaluationRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getEvaluation(EvaluationName name) + *

      • getEvaluation(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getEvaluationCallable() + *

      + *

      ListEvaluations

      Gets a list of [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listEvaluations(ListEvaluationsRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listEvaluations(LocationName parent) + *

      • listEvaluations(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listEvaluationsPagedCallable() + *

      • listEvaluationsCallable() + *

      + *

      CreateEvaluation

      Creates a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + *

      Upon creation, the evaluation will be automatically triggered and begin execution.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • createEvaluationAsync(CreateEvaluationRequest request) + *

      + *

      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

      + *
        + *
      • createEvaluationAsync(LocationName parent, Evaluation evaluation) + *

      • createEvaluationAsync(String parent, Evaluation evaluation) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • createEvaluationOperationCallable() + *

      • createEvaluationCallable() + *

      + *

      ListEvaluationResults

      Gets a list of results for a given a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listEvaluationResults(ListEvaluationResultsRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listEvaluationResults(EvaluationName evaluation) + *

      • listEvaluationResults(String evaluation) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listEvaluationResultsPagedCallable() + *

      • listEvaluationResultsCallable() + *

      + *
      + * + *

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

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

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

      To customize credentials: + * + *

      {@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
      + * EvaluationServiceSettings evaluationServiceSettings =
      + *     EvaluationServiceSettings.newBuilder()
      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      + *         .build();
      + * EvaluationServiceClient evaluationServiceClient =
      + *     EvaluationServiceClient.create(evaluationServiceSettings);
      + * }
      + * + *

      To customize the endpoint: + * + *

      {@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
      + * EvaluationServiceSettings evaluationServiceSettings =
      + *     EvaluationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
      + * EvaluationServiceClient evaluationServiceClient =
      + *     EvaluationServiceClient.create(evaluationServiceSettings);
      + * }
      + * + *

      To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

      {@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
      + * EvaluationServiceSettings evaluationServiceSettings =
      + *     EvaluationServiceSettings.newHttpJsonBuilder().build();
      + * EvaluationServiceClient evaluationServiceClient =
      + *     EvaluationServiceClient.create(evaluationServiceSettings);
      + * }
      + * + *

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

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]");
      +   *   Evaluation response = evaluationServiceClient.getEvaluation(name);
      +   * }
      +   * }
      + * + * @param name Required. Full resource name of + * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], such as + * `projects/{project}/locations/{location}/evaluations/{evaluation}`. + *

      If the caller does not have permission to access the + * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], regardless of whether or not + * it exists, a PERMISSION_DENIED error is returned. + *

      If the requested [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] does not + * exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Evaluation getEvaluation(EvaluationName name) { + GetEvaluationRequest request = + GetEvaluationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getEvaluation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   String name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString();
      +   *   Evaluation response = evaluationServiceClient.getEvaluation(name);
      +   * }
      +   * }
      + * + * @param name Required. Full resource name of + * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], such as + * `projects/{project}/locations/{location}/evaluations/{evaluation}`. + *

      If the caller does not have permission to access the + * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], regardless of whether or not + * it exists, a PERMISSION_DENIED error is returned. + *

      If the requested [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] does not + * exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Evaluation getEvaluation(String name) { + GetEvaluationRequest request = GetEvaluationRequest.newBuilder().setName(name).build(); + return getEvaluation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   GetEvaluationRequest request =
      +   *       GetEvaluationRequest.newBuilder()
      +   *           .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
      +   *           .build();
      +   *   Evaluation response = evaluationServiceClient.getEvaluation(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 Evaluation getEvaluation(GetEvaluationRequest request) { + return getEvaluationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   GetEvaluationRequest request =
      +   *       GetEvaluationRequest.newBuilder()
      +   *           .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       evaluationServiceClient.getEvaluationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Evaluation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getEvaluationCallable() { + return stub.getEvaluationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
      +   *   for (Evaluation element : evaluationServiceClient.listEvaluations(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The parent location resource name, such as + * `projects/{project}/locations/{location}`. + *

      If the caller does not have permission to list + * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s under this location, + * regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEvaluationsPagedResponse listEvaluations(LocationName parent) { + ListEvaluationsRequest request = + ListEvaluationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listEvaluations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
      +   *   for (Evaluation element : evaluationServiceClient.listEvaluations(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The parent location resource name, such as + * `projects/{project}/locations/{location}`. + *

      If the caller does not have permission to list + * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s under this location, + * regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEvaluationsPagedResponse listEvaluations(String parent) { + ListEvaluationsRequest request = ListEvaluationsRequest.newBuilder().setParent(parent).build(); + return listEvaluations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   ListEvaluationsRequest request =
      +   *       ListEvaluationsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   for (Evaluation element : evaluationServiceClient.listEvaluations(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 ListEvaluationsPagedResponse listEvaluations(ListEvaluationsRequest request) { + return listEvaluationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   ListEvaluationsRequest request =
      +   *       ListEvaluationsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       evaluationServiceClient.listEvaluationsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Evaluation element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listEvaluationsPagedCallable() { + return stub.listEvaluationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   ListEvaluationsRequest request =
      +   *       ListEvaluationsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   while (true) {
      +   *     ListEvaluationsResponse response =
      +   *         evaluationServiceClient.listEvaluationsCallable().call(request);
      +   *     for (Evaluation element : response.getEvaluationsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listEvaluationsCallable() { + return stub.listEvaluationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + * + *

      Upon creation, the evaluation will be automatically triggered and begin execution. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
      +   *   Evaluation evaluation = Evaluation.newBuilder().build();
      +   *   Evaluation response = evaluationServiceClient.createEvaluationAsync(parent, evaluation).get();
      +   * }
      +   * }
      + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}`. + * @param evaluation Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] to + * create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createEvaluationAsync( + LocationName parent, Evaluation evaluation) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setEvaluation(evaluation) + .build(); + return createEvaluationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + * + *

      Upon creation, the evaluation will be automatically triggered and begin execution. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
      +   *   Evaluation evaluation = Evaluation.newBuilder().build();
      +   *   Evaluation response = evaluationServiceClient.createEvaluationAsync(parent, evaluation).get();
      +   * }
      +   * }
      + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}`. + * @param evaluation Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] to + * create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createEvaluationAsync( + String parent, Evaluation evaluation) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder().setParent(parent).setEvaluation(evaluation).build(); + return createEvaluationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + * + *

      Upon creation, the evaluation will be automatically triggered and begin execution. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   CreateEvaluationRequest request =
      +   *       CreateEvaluationRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setEvaluation(Evaluation.newBuilder().build())
      +   *           .build();
      +   *   Evaluation response = evaluationServiceClient.createEvaluationAsync(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 createEvaluationAsync( + CreateEvaluationRequest request) { + return createEvaluationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + * + *

      Upon creation, the evaluation will be automatically triggered and begin execution. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   CreateEvaluationRequest request =
      +   *       CreateEvaluationRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setEvaluation(Evaluation.newBuilder().build())
      +   *           .build();
      +   *   OperationFuture future =
      +   *       evaluationServiceClient.createEvaluationOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Evaluation response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable + createEvaluationOperationCallable() { + return stub.createEvaluationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + * + *

      Upon creation, the evaluation will be automatically triggered and begin execution. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   CreateEvaluationRequest request =
      +   *       CreateEvaluationRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setEvaluation(Evaluation.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       evaluationServiceClient.createEvaluationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable createEvaluationCallable() { + return stub.createEvaluationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of results for a given a + * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   EvaluationName evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]");
      +   *   for (ListEvaluationResultsResponse.EvaluationResult element :
      +   *       evaluationServiceClient.listEvaluationResults(evaluation).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param evaluation Required. The evaluation resource name, such as + * `projects/{project}/locations/{location}/evaluations/{evaluation}`. + *

      If the caller does not have permission to list [EvaluationResult][] under this + * evaluation, regardless of whether or not this evaluation set exists, a `PERMISSION_DENIED` + * error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEvaluationResultsPagedResponse listEvaluationResults(EvaluationName evaluation) { + ListEvaluationResultsRequest request = + ListEvaluationResultsRequest.newBuilder() + .setEvaluation(evaluation == null ? null : evaluation.toString()) + .build(); + return listEvaluationResults(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of results for a given a + * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   String evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString();
      +   *   for (ListEvaluationResultsResponse.EvaluationResult element :
      +   *       evaluationServiceClient.listEvaluationResults(evaluation).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param evaluation Required. The evaluation resource name, such as + * `projects/{project}/locations/{location}/evaluations/{evaluation}`. + *

      If the caller does not have permission to list [EvaluationResult][] under this + * evaluation, regardless of whether or not this evaluation set exists, a `PERMISSION_DENIED` + * error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEvaluationResultsPagedResponse listEvaluationResults(String evaluation) { + ListEvaluationResultsRequest request = + ListEvaluationResultsRequest.newBuilder().setEvaluation(evaluation).build(); + return listEvaluationResults(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of results for a given a + * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   ListEvaluationResultsRequest request =
      +   *       ListEvaluationResultsRequest.newBuilder()
      +   *           .setEvaluation(
      +   *               EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   for (ListEvaluationResultsResponse.EvaluationResult element :
      +   *       evaluationServiceClient.listEvaluationResults(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 ListEvaluationResultsPagedResponse listEvaluationResults( + ListEvaluationResultsRequest request) { + return listEvaluationResultsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of results for a given a + * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   ListEvaluationResultsRequest request =
      +   *       ListEvaluationResultsRequest.newBuilder()
      +   *           .setEvaluation(
      +   *               EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       evaluationServiceClient.listEvaluationResultsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (ListEvaluationResultsResponse.EvaluationResult element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listEvaluationResultsPagedCallable() { + return stub.listEvaluationResultsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of results for a given a + * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + * + *

      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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      +   *   ListEvaluationResultsRequest request =
      +   *       ListEvaluationResultsRequest.newBuilder()
      +   *           .setEvaluation(
      +   *               EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   while (true) {
      +   *     ListEvaluationResultsResponse response =
      +   *         evaluationServiceClient.listEvaluationResultsCallable().call(request);
      +   *     for (ListEvaluationResultsResponse.EvaluationResult element :
      +   *         response.getEvaluationResultsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listEvaluationResultsCallable() { + return stub.listEvaluationResultsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListEvaluationsPagedResponse + extends AbstractPagedListResponse< + ListEvaluationsRequest, + ListEvaluationsResponse, + Evaluation, + ListEvaluationsPage, + ListEvaluationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListEvaluationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListEvaluationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListEvaluationsPagedResponse(ListEvaluationsPage page) { + super(page, ListEvaluationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListEvaluationsPage + extends AbstractPage< + ListEvaluationsRequest, ListEvaluationsResponse, Evaluation, ListEvaluationsPage> { + + private ListEvaluationsPage( + PageContext context, + ListEvaluationsResponse response) { + super(context, response); + } + + private static ListEvaluationsPage createEmptyPage() { + return new ListEvaluationsPage(null, null); + } + + @Override + protected ListEvaluationsPage createPage( + PageContext context, + ListEvaluationsResponse response) { + return new ListEvaluationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListEvaluationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListEvaluationsRequest, + ListEvaluationsResponse, + Evaluation, + ListEvaluationsPage, + ListEvaluationsFixedSizeCollection> { + + private ListEvaluationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListEvaluationsFixedSizeCollection createEmptyCollection() { + return new ListEvaluationsFixedSizeCollection(null, 0); + } + + @Override + protected ListEvaluationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListEvaluationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListEvaluationResultsPagedResponse + extends AbstractPagedListResponse< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult, + ListEvaluationResultsPage, + ListEvaluationResultsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListEvaluationResultsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListEvaluationResultsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListEvaluationResultsPagedResponse(ListEvaluationResultsPage page) { + super(page, ListEvaluationResultsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListEvaluationResultsPage + extends AbstractPage< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult, + ListEvaluationResultsPage> { + + private ListEvaluationResultsPage( + PageContext< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult> + context, + ListEvaluationResultsResponse response) { + super(context, response); + } + + private static ListEvaluationResultsPage createEmptyPage() { + return new ListEvaluationResultsPage(null, null); + } + + @Override + protected ListEvaluationResultsPage createPage( + PageContext< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult> + context, + ListEvaluationResultsResponse response) { + return new ListEvaluationResultsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListEvaluationResultsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult, + ListEvaluationResultsPage, + ListEvaluationResultsFixedSizeCollection> { + + private ListEvaluationResultsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListEvaluationResultsFixedSizeCollection createEmptyCollection() { + return new ListEvaluationResultsFixedSizeCollection(null, 0); + } + + @Override + protected ListEvaluationResultsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListEvaluationResultsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceSettings.java new file mode 100644 index 000000000000..7c283014785e --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceSettings.java @@ -0,0 +1,266 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import static com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient.ListEvaluationResultsPagedResponse; +import static com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient.ListEvaluationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1beta.stub.EvaluationServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link EvaluationServiceClient}. + * + *

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

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

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

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

      {@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
      + * EvaluationServiceSettings.Builder evaluationServiceSettingsBuilder =
      + *     EvaluationServiceSettings.newBuilder();
      + * evaluationServiceSettingsBuilder
      + *     .getEvaluationSettings()
      + *     .setRetrySettings(
      + *         evaluationServiceSettingsBuilder
      + *             .getEvaluationSettings()
      + *             .getRetrySettings()
      + *             .toBuilder()
      + *             .setTotalTimeout(Duration.ofSeconds(30))
      + *             .build());
      + * EvaluationServiceSettings evaluationServiceSettings = evaluationServiceSettingsBuilder.build();
      + * }
      + */ +@BetaApi +@Generated("by gapic-generator-java") +public class EvaluationServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getEvaluation. */ + public UnaryCallSettings getEvaluationSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).getEvaluationSettings(); + } + + /** Returns the object with the settings used for calls to listEvaluations. */ + public PagedCallSettings< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).listEvaluationsSettings(); + } + + /** Returns the object with the settings used for calls to createEvaluation. */ + public UnaryCallSettings createEvaluationSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).createEvaluationSettings(); + } + + /** Returns the object with the settings used for calls to createEvaluation. */ + public OperationCallSettings + createEvaluationOperationSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).createEvaluationOperationSettings(); + } + + /** Returns the object with the settings used for calls to listEvaluationResults. */ + public PagedCallSettings< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse> + listEvaluationResultsSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).listEvaluationResultsSettings(); + } + + public static final EvaluationServiceSettings create(EvaluationServiceStubSettings stub) + throws IOException { + return new EvaluationServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return EvaluationServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return EvaluationServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return EvaluationServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return EvaluationServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return EvaluationServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return EvaluationServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return EvaluationServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return EvaluationServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected EvaluationServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for EvaluationServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(EvaluationServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(EvaluationServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(EvaluationServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(EvaluationServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(EvaluationServiceStubSettings.newHttpJsonBuilder()); + } + + public EvaluationServiceStubSettings.Builder getStubSettingsBuilder() { + return ((EvaluationServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getEvaluation. */ + public UnaryCallSettings.Builder getEvaluationSettings() { + return getStubSettingsBuilder().getEvaluationSettings(); + } + + /** Returns the builder for the settings used for calls to listEvaluations. */ + public PagedCallSettings.Builder< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings() { + return getStubSettingsBuilder().listEvaluationsSettings(); + } + + /** Returns the builder for the settings used for calls to createEvaluation. */ + public UnaryCallSettings.Builder + createEvaluationSettings() { + return getStubSettingsBuilder().createEvaluationSettings(); + } + + /** Returns the builder for the settings used for calls to createEvaluation. */ + public OperationCallSettings.Builder< + CreateEvaluationRequest, Evaluation, CreateEvaluationMetadata> + createEvaluationOperationSettings() { + return getStubSettingsBuilder().createEvaluationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listEvaluationResults. */ + public PagedCallSettings.Builder< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse> + listEvaluationResultsSettings() { + return getStubSettingsBuilder().listEvaluationResultsSettings(); + } + + @Override + public EvaluationServiceSettings build() throws IOException { + return new EvaluationServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceClient.java new file mode 100644 index 000000000000..f413c73fef75 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceClient.java @@ -0,0 +1,1237 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.stub.SampleQueryServiceStub; +import com.google.cloud.discoveryengine.v1beta.stub.SampleQueryServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s, + * + *

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

      {@code
      + * // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      + *   SampleQueryName name =
      + *       SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]");
      + *   SampleQuery response = sampleQueryServiceClient.getSampleQuery(name);
      + * }
      + * }
      + * + *

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

      GetSampleQuery

      Gets a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getSampleQuery(GetSampleQueryRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getSampleQuery(SampleQueryName name) + *

      • getSampleQuery(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getSampleQueryCallable() + *

      + *

      ListSampleQueries

      Gets a list of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listSampleQueries(ListSampleQueriesRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listSampleQueries(SampleQuerySetName parent) + *

      • listSampleQueries(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listSampleQueriesPagedCallable() + *

      • listSampleQueriesCallable() + *

      + *

      CreateSampleQuery

      Creates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • createSampleQuery(CreateSampleQueryRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • createSampleQuery(SampleQuerySetName parent, SampleQuery sampleQuery, String sampleQueryId) + *

      • createSampleQuery(String parent, SampleQuery sampleQuery, String sampleQueryId) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • createSampleQueryCallable() + *

      + *

      UpdateSampleQuery

      Updates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • updateSampleQuery(UpdateSampleQueryRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • updateSampleQuery(SampleQuery sampleQuery, FieldMask updateMask) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • updateSampleQueryCallable() + *

      + *

      DeleteSampleQuery

      Deletes a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • deleteSampleQuery(DeleteSampleQueryRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • deleteSampleQuery(SampleQueryName name) + *

      • deleteSampleQuery(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • deleteSampleQueryCallable() + *

      + *

      ImportSampleQueries

      Bulk import of multiple [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. Sample queries that already exist may be deleted. + *

      Note: It is possible for a subset of the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to be successfully imported.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • importSampleQueriesAsync(ImportSampleQueriesRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • importSampleQueriesOperationCallable() + *

      • importSampleQueriesCallable() + *

      + *
      + * + *

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

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

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

      To customize credentials: + * + *

      {@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
      + * SampleQueryServiceSettings sampleQueryServiceSettings =
      + *     SampleQueryServiceSettings.newBuilder()
      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      + *         .build();
      + * SampleQueryServiceClient sampleQueryServiceClient =
      + *     SampleQueryServiceClient.create(sampleQueryServiceSettings);
      + * }
      + * + *

      To customize the endpoint: + * + *

      {@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
      + * SampleQueryServiceSettings sampleQueryServiceSettings =
      + *     SampleQueryServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
      + * SampleQueryServiceClient sampleQueryServiceClient =
      + *     SampleQueryServiceClient.create(sampleQueryServiceSettings);
      + * }
      + * + *

      To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

      {@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
      + * SampleQueryServiceSettings sampleQueryServiceSettings =
      + *     SampleQueryServiceSettings.newHttpJsonBuilder().build();
      + * SampleQueryServiceClient sampleQueryServiceClient =
      + *     SampleQueryServiceClient.create(sampleQueryServiceSettings);
      + * }
      + * + *

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

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   SampleQueryName name =
      +   *       SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]");
      +   *   SampleQuery response = sampleQueryServiceClient.getSampleQuery(name);
      +   * }
      +   * }
      + * + * @param name Required. Full resource name of + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`. + *

      If the caller does not have permission to access the + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless of whether or + * not it exists, a PERMISSION_DENIED error is returned. + *

      If the requested [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] does not + * exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuery getSampleQuery(SampleQueryName name) { + GetSampleQueryRequest request = + GetSampleQueryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSampleQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   String name =
      +   *       SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]")
      +   *           .toString();
      +   *   SampleQuery response = sampleQueryServiceClient.getSampleQuery(name);
      +   * }
      +   * }
      + * + * @param name Required. Full resource name of + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`. + *

      If the caller does not have permission to access the + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless of whether or + * not it exists, a PERMISSION_DENIED error is returned. + *

      If the requested [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] does not + * exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuery getSampleQuery(String name) { + GetSampleQueryRequest request = GetSampleQueryRequest.newBuilder().setName(name).build(); + return getSampleQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   GetSampleQueryRequest request =
      +   *       GetSampleQueryRequest.newBuilder()
      +   *           .setName(
      +   *               SampleQueryName.of(
      +   *                       "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]")
      +   *                   .toString())
      +   *           .build();
      +   *   SampleQuery response = sampleQueryServiceClient.getSampleQuery(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 SampleQuery getSampleQuery(GetSampleQueryRequest request) { + return getSampleQueryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   GetSampleQueryRequest request =
      +   *       GetSampleQueryRequest.newBuilder()
      +   *           .setName(
      +   *               SampleQueryName.of(
      +   *                       "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]")
      +   *                   .toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       sampleQueryServiceClient.getSampleQueryCallable().futureCall(request);
      +   *   // Do something.
      +   *   SampleQuery response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getSampleQueryCallable() { + return stub.getSampleQueryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   SampleQuerySetName parent =
      +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]");
      +   *   for (SampleQuery element : sampleQueryServiceClient.listSampleQueries(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The parent sample query set resource name, such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + *

      If the caller does not have permission to list + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this sample query + * set, regardless of whether or not this sample query set exists, a `PERMISSION_DENIED` error + * is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSampleQueriesPagedResponse listSampleQueries(SampleQuerySetName parent) { + ListSampleQueriesRequest request = + ListSampleQueriesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSampleQueries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   String parent =
      +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString();
      +   *   for (SampleQuery element : sampleQueryServiceClient.listSampleQueries(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The parent sample query set resource name, such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + *

      If the caller does not have permission to list + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this sample query + * set, regardless of whether or not this sample query set exists, a `PERMISSION_DENIED` error + * is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSampleQueriesPagedResponse listSampleQueries(String parent) { + ListSampleQueriesRequest request = + ListSampleQueriesRequest.newBuilder().setParent(parent).build(); + return listSampleQueries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   ListSampleQueriesRequest request =
      +   *       ListSampleQueriesRequest.newBuilder()
      +   *           .setParent(
      +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   for (SampleQuery element : sampleQueryServiceClient.listSampleQueries(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 ListSampleQueriesPagedResponse listSampleQueries(ListSampleQueriesRequest request) { + return listSampleQueriesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   ListSampleQueriesRequest request =
      +   *       ListSampleQueriesRequest.newBuilder()
      +   *           .setParent(
      +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       sampleQueryServiceClient.listSampleQueriesPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (SampleQuery element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listSampleQueriesPagedCallable() { + return stub.listSampleQueriesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   ListSampleQueriesRequest request =
      +   *       ListSampleQueriesRequest.newBuilder()
      +   *           .setParent(
      +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   while (true) {
      +   *     ListSampleQueriesResponse response =
      +   *         sampleQueryServiceClient.listSampleQueriesCallable().call(request);
      +   *     for (SampleQuery element : response.getSampleQueriesList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listSampleQueriesCallable() { + return stub.listSampleQueriesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   SampleQuerySetName parent =
      +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]");
      +   *   SampleQuery sampleQuery = SampleQuery.newBuilder().build();
      +   *   String sampleQueryId = "sampleQueryId1739022073";
      +   *   SampleQuery response =
      +   *       sampleQueryServiceClient.createSampleQuery(parent, sampleQuery, sampleQueryId);
      +   * }
      +   * }
      + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + * @param sampleQuery Required. The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] + * to create. + * @param sampleQueryId Required. The ID to use for the + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will become the final + * component of the [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name]. + *

      If the caller does not have permission to create the + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless of whether or + * not it exists, a `PERMISSION_DENIED` error is returned. + *

      This field must be unique among all + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the same + * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent]. Otherwise, + * an `ALREADY_EXISTS` error is returned. + *

      This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with + * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuery createSampleQuery( + SampleQuerySetName parent, SampleQuery sampleQuery, String sampleQueryId) { + CreateSampleQueryRequest request = + CreateSampleQueryRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSampleQuery(sampleQuery) + .setSampleQueryId(sampleQueryId) + .build(); + return createSampleQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   String parent =
      +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString();
      +   *   SampleQuery sampleQuery = SampleQuery.newBuilder().build();
      +   *   String sampleQueryId = "sampleQueryId1739022073";
      +   *   SampleQuery response =
      +   *       sampleQueryServiceClient.createSampleQuery(parent, sampleQuery, sampleQueryId);
      +   * }
      +   * }
      + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + * @param sampleQuery Required. The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] + * to create. + * @param sampleQueryId Required. The ID to use for the + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will become the final + * component of the [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name]. + *

      If the caller does not have permission to create the + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless of whether or + * not it exists, a `PERMISSION_DENIED` error is returned. + *

      This field must be unique among all + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the same + * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent]. Otherwise, + * an `ALREADY_EXISTS` error is returned. + *

      This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with + * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuery createSampleQuery( + String parent, SampleQuery sampleQuery, String sampleQueryId) { + CreateSampleQueryRequest request = + CreateSampleQueryRequest.newBuilder() + .setParent(parent) + .setSampleQuery(sampleQuery) + .setSampleQueryId(sampleQueryId) + .build(); + return createSampleQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   CreateSampleQueryRequest request =
      +   *       CreateSampleQueryRequest.newBuilder()
      +   *           .setParent(
      +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
      +   *           .setSampleQuery(SampleQuery.newBuilder().build())
      +   *           .setSampleQueryId("sampleQueryId1739022073")
      +   *           .build();
      +   *   SampleQuery response = sampleQueryServiceClient.createSampleQuery(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 SampleQuery createSampleQuery(CreateSampleQueryRequest request) { + return createSampleQueryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   CreateSampleQueryRequest request =
      +   *       CreateSampleQueryRequest.newBuilder()
      +   *           .setParent(
      +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
      +   *           .setSampleQuery(SampleQuery.newBuilder().build())
      +   *           .setSampleQueryId("sampleQueryId1739022073")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       sampleQueryServiceClient.createSampleQueryCallable().futureCall(request);
      +   *   // Do something.
      +   *   SampleQuery response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable createSampleQueryCallable() { + return stub.createSampleQueryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   SampleQuery sampleQuery = SampleQuery.newBuilder().build();
      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
      +   *   SampleQuery response = sampleQueryServiceClient.updateSampleQuery(sampleQuery, updateMask);
      +   * }
      +   * }
      + * + * @param sampleQuery Required. The simple query to update. + *

      If the caller does not have permission to update the + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless of whether or + * not it exists, a `PERMISSION_DENIED` error is returned. + *

      If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to update does not + * exist a `NOT_FOUND` error is returned. + * @param updateMask Indicates which fields in the provided imported 'simple query' to update. If + * not set, will by default update all fields. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuery updateSampleQuery(SampleQuery sampleQuery, FieldMask updateMask) { + UpdateSampleQueryRequest request = + UpdateSampleQueryRequest.newBuilder() + .setSampleQuery(sampleQuery) + .setUpdateMask(updateMask) + .build(); + return updateSampleQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   UpdateSampleQueryRequest request =
      +   *       UpdateSampleQueryRequest.newBuilder()
      +   *           .setSampleQuery(SampleQuery.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   SampleQuery response = sampleQueryServiceClient.updateSampleQuery(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 SampleQuery updateSampleQuery(UpdateSampleQueryRequest request) { + return updateSampleQueryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   UpdateSampleQueryRequest request =
      +   *       UpdateSampleQueryRequest.newBuilder()
      +   *           .setSampleQuery(SampleQuery.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       sampleQueryServiceClient.updateSampleQueryCallable().futureCall(request);
      +   *   // Do something.
      +   *   SampleQuery response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable updateSampleQueryCallable() { + return stub.updateSampleQueryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   SampleQueryName name =
      +   *       SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]");
      +   *   sampleQueryServiceClient.deleteSampleQuery(name);
      +   * }
      +   * }
      + * + * @param name Required. Full resource name of + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`. + *

      If the caller does not have permission to delete the + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless of whether or + * not it exists, a `PERMISSION_DENIED` error is returned. + *

      If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to delete does not + * exist, a `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSampleQuery(SampleQueryName name) { + DeleteSampleQueryRequest request = + DeleteSampleQueryRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteSampleQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   String name =
      +   *       SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]")
      +   *           .toString();
      +   *   sampleQueryServiceClient.deleteSampleQuery(name);
      +   * }
      +   * }
      + * + * @param name Required. Full resource name of + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`. + *

      If the caller does not have permission to delete the + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless of whether or + * not it exists, a `PERMISSION_DENIED` error is returned. + *

      If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to delete does not + * exist, a `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSampleQuery(String name) { + DeleteSampleQueryRequest request = DeleteSampleQueryRequest.newBuilder().setName(name).build(); + deleteSampleQuery(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   DeleteSampleQueryRequest request =
      +   *       DeleteSampleQueryRequest.newBuilder()
      +   *           .setName(
      +   *               SampleQueryName.of(
      +   *                       "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]")
      +   *                   .toString())
      +   *           .build();
      +   *   sampleQueryServiceClient.deleteSampleQuery(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSampleQuery(DeleteSampleQueryRequest request) { + deleteSampleQueryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   DeleteSampleQueryRequest request =
      +   *       DeleteSampleQueryRequest.newBuilder()
      +   *           .setName(
      +   *               SampleQueryName.of(
      +   *                       "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]")
      +   *                   .toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       sampleQueryServiceClient.deleteSampleQueryCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable deleteSampleQueryCallable() { + return stub.deleteSampleQueryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Bulk import of multiple [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. Sample + * queries that already exist may be deleted. + * + *

      Note: It is possible for a subset of the + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to be successfully imported. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   ImportSampleQueriesRequest request =
      +   *       ImportSampleQueriesRequest.newBuilder()
      +   *           .setParent(
      +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
      +   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
      +   *           .build();
      +   *   ImportSampleQueriesResponse response =
      +   *       sampleQueryServiceClient.importSampleQueriesAsync(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 + importSampleQueriesAsync(ImportSampleQueriesRequest request) { + return importSampleQueriesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Bulk import of multiple [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. Sample + * queries that already exist may be deleted. + * + *

      Note: It is possible for a subset of the + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to be successfully imported. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   ImportSampleQueriesRequest request =
      +   *       ImportSampleQueriesRequest.newBuilder()
      +   *           .setParent(
      +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
      +   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
      +   *           .build();
      +   *   OperationFuture future =
      +   *       sampleQueryServiceClient.importSampleQueriesOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   ImportSampleQueriesResponse response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationCallable() { + return stub.importSampleQueriesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Bulk import of multiple [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. Sample + * queries that already exist may be deleted. + * + *

      Note: It is possible for a subset of the + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to be successfully imported. + * + *

      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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      +   *   ImportSampleQueriesRequest request =
      +   *       ImportSampleQueriesRequest.newBuilder()
      +   *           .setParent(
      +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
      +   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       sampleQueryServiceClient.importSampleQueriesCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable importSampleQueriesCallable() { + return stub.importSampleQueriesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListSampleQueriesPagedResponse + extends AbstractPagedListResponse< + ListSampleQueriesRequest, + ListSampleQueriesResponse, + SampleQuery, + ListSampleQueriesPage, + ListSampleQueriesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSampleQueriesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSampleQueriesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSampleQueriesPagedResponse(ListSampleQueriesPage page) { + super(page, ListSampleQueriesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSampleQueriesPage + extends AbstractPage< + ListSampleQueriesRequest, ListSampleQueriesResponse, SampleQuery, ListSampleQueriesPage> { + + private ListSampleQueriesPage( + PageContext context, + ListSampleQueriesResponse response) { + super(context, response); + } + + private static ListSampleQueriesPage createEmptyPage() { + return new ListSampleQueriesPage(null, null); + } + + @Override + protected ListSampleQueriesPage createPage( + PageContext context, + ListSampleQueriesResponse response) { + return new ListSampleQueriesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSampleQueriesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSampleQueriesRequest, + ListSampleQueriesResponse, + SampleQuery, + ListSampleQueriesPage, + ListSampleQueriesFixedSizeCollection> { + + private ListSampleQueriesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSampleQueriesFixedSizeCollection createEmptyCollection() { + return new ListSampleQueriesFixedSizeCollection(null, 0); + } + + @Override + protected ListSampleQueriesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSampleQueriesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceSettings.java new file mode 100644 index 000000000000..f2a36b38b261 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceSettings.java @@ -0,0 +1,283 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import static com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient.ListSampleQueriesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1beta.stub.SampleQueryServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SampleQueryServiceClient}. + * + *

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

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

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

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

      {@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
      + * SampleQueryServiceSettings.Builder sampleQueryServiceSettingsBuilder =
      + *     SampleQueryServiceSettings.newBuilder();
      + * sampleQueryServiceSettingsBuilder
      + *     .getSampleQuerySettings()
      + *     .setRetrySettings(
      + *         sampleQueryServiceSettingsBuilder
      + *             .getSampleQuerySettings()
      + *             .getRetrySettings()
      + *             .toBuilder()
      + *             .setTotalTimeout(Duration.ofSeconds(30))
      + *             .build());
      + * SampleQueryServiceSettings sampleQueryServiceSettings =
      + *     sampleQueryServiceSettingsBuilder.build();
      + * }
      + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SampleQueryServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getSampleQuery. */ + public UnaryCallSettings getSampleQuerySettings() { + return ((SampleQueryServiceStubSettings) getStubSettings()).getSampleQuerySettings(); + } + + /** Returns the object with the settings used for calls to listSampleQueries. */ + public PagedCallSettings< + ListSampleQueriesRequest, ListSampleQueriesResponse, ListSampleQueriesPagedResponse> + listSampleQueriesSettings() { + return ((SampleQueryServiceStubSettings) getStubSettings()).listSampleQueriesSettings(); + } + + /** Returns the object with the settings used for calls to createSampleQuery. */ + public UnaryCallSettings createSampleQuerySettings() { + return ((SampleQueryServiceStubSettings) getStubSettings()).createSampleQuerySettings(); + } + + /** Returns the object with the settings used for calls to updateSampleQuery. */ + public UnaryCallSettings updateSampleQuerySettings() { + return ((SampleQueryServiceStubSettings) getStubSettings()).updateSampleQuerySettings(); + } + + /** Returns the object with the settings used for calls to deleteSampleQuery. */ + public UnaryCallSettings deleteSampleQuerySettings() { + return ((SampleQueryServiceStubSettings) getStubSettings()).deleteSampleQuerySettings(); + } + + /** Returns the object with the settings used for calls to importSampleQueries. */ + public UnaryCallSettings importSampleQueriesSettings() { + return ((SampleQueryServiceStubSettings) getStubSettings()).importSampleQueriesSettings(); + } + + /** Returns the object with the settings used for calls to importSampleQueries. */ + public OperationCallSettings< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationSettings() { + return ((SampleQueryServiceStubSettings) getStubSettings()) + .importSampleQueriesOperationSettings(); + } + + public static final SampleQueryServiceSettings create(SampleQueryServiceStubSettings stub) + throws IOException { + return new SampleQueryServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SampleQueryServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SampleQueryServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SampleQueryServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SampleQueryServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SampleQueryServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SampleQueryServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SampleQueryServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SampleQueryServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SampleQueryServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SampleQueryServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(SampleQueryServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(SampleQueryServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SampleQueryServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(SampleQueryServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(SampleQueryServiceStubSettings.newHttpJsonBuilder()); + } + + public SampleQueryServiceStubSettings.Builder getStubSettingsBuilder() { + return ((SampleQueryServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getSampleQuery. */ + public UnaryCallSettings.Builder getSampleQuerySettings() { + return getStubSettingsBuilder().getSampleQuerySettings(); + } + + /** Returns the builder for the settings used for calls to listSampleQueries. */ + public PagedCallSettings.Builder< + ListSampleQueriesRequest, ListSampleQueriesResponse, ListSampleQueriesPagedResponse> + listSampleQueriesSettings() { + return getStubSettingsBuilder().listSampleQueriesSettings(); + } + + /** Returns the builder for the settings used for calls to createSampleQuery. */ + public UnaryCallSettings.Builder + createSampleQuerySettings() { + return getStubSettingsBuilder().createSampleQuerySettings(); + } + + /** Returns the builder for the settings used for calls to updateSampleQuery. */ + public UnaryCallSettings.Builder + updateSampleQuerySettings() { + return getStubSettingsBuilder().updateSampleQuerySettings(); + } + + /** Returns the builder for the settings used for calls to deleteSampleQuery. */ + public UnaryCallSettings.Builder deleteSampleQuerySettings() { + return getStubSettingsBuilder().deleteSampleQuerySettings(); + } + + /** Returns the builder for the settings used for calls to importSampleQueries. */ + public UnaryCallSettings.Builder + importSampleQueriesSettings() { + return getStubSettingsBuilder().importSampleQueriesSettings(); + } + + /** Returns the builder for the settings used for calls to importSampleQueries. */ + public OperationCallSettings.Builder< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationSettings() { + return getStubSettingsBuilder().importSampleQueriesOperationSettings(); + } + + @Override + public SampleQueryServiceSettings build() throws IOException { + return new SampleQueryServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceClient.java new file mode 100644 index 000000000000..2874c3ff16e4 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceClient.java @@ -0,0 +1,1108 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.stub.SampleQuerySetServiceStub; +import com.google.cloud.discoveryengine.v1beta.stub.SampleQuerySetServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s, + * + *

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

      {@code
      + * // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      + *     SampleQuerySetServiceClient.create()) {
      + *   SampleQuerySetName name =
      + *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]");
      + *   SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(name);
      + * }
      + * }
      + * + *

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

      GetSampleQuerySet

      Gets a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getSampleQuerySet(GetSampleQuerySetRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getSampleQuerySet(SampleQuerySetName name) + *

      • getSampleQuerySet(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getSampleQuerySetCallable() + *

      + *

      ListSampleQuerySets

      Gets a list of [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listSampleQuerySets(ListSampleQuerySetsRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listSampleQuerySets(LocationName parent) + *

      • listSampleQuerySets(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listSampleQuerySetsPagedCallable() + *

      • listSampleQuerySetsCallable() + *

      + *

      CreateSampleQuerySet

      Creates a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • createSampleQuerySet(CreateSampleQuerySetRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • createSampleQuerySet(LocationName parent, SampleQuerySet sampleQuerySet, String sampleQuerySetId) + *

      • createSampleQuerySet(String parent, SampleQuerySet sampleQuerySet, String sampleQuerySetId) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • createSampleQuerySetCallable() + *

      + *

      UpdateSampleQuerySet

      Updates a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • updateSampleQuerySet(UpdateSampleQuerySetRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • updateSampleQuerySet(SampleQuerySet sampleQuerySet, FieldMask updateMask) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • updateSampleQuerySetCallable() + *

      + *

      DeleteSampleQuerySet

      Deletes a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • deleteSampleQuerySet(DeleteSampleQuerySetRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • deleteSampleQuerySet(SampleQuerySetName name) + *

      • deleteSampleQuerySet(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • deleteSampleQuerySetCallable() + *

      + *
      + * + *

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

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

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

      To customize credentials: + * + *

      {@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
      + * SampleQuerySetServiceSettings sampleQuerySetServiceSettings =
      + *     SampleQuerySetServiceSettings.newBuilder()
      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      + *         .build();
      + * SampleQuerySetServiceClient sampleQuerySetServiceClient =
      + *     SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings);
      + * }
      + * + *

      To customize the endpoint: + * + *

      {@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
      + * SampleQuerySetServiceSettings sampleQuerySetServiceSettings =
      + *     SampleQuerySetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
      + * SampleQuerySetServiceClient sampleQuerySetServiceClient =
      + *     SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings);
      + * }
      + * + *

      To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

      {@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
      + * SampleQuerySetServiceSettings sampleQuerySetServiceSettings =
      + *     SampleQuerySetServiceSettings.newHttpJsonBuilder().build();
      + * SampleQuerySetServiceClient sampleQuerySetServiceClient =
      + *     SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings);
      + * }
      + * + *

      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SampleQuerySetServiceClient implements BackgroundResource { + private final SampleQuerySetServiceSettings settings; + private final SampleQuerySetServiceStub stub; + + /** Constructs an instance of SampleQuerySetServiceClient with default settings. */ + public static final SampleQuerySetServiceClient create() throws IOException { + return create(SampleQuerySetServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SampleQuerySetServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SampleQuerySetServiceClient create(SampleQuerySetServiceSettings settings) + throws IOException { + return new SampleQuerySetServiceClient(settings); + } + + /** + * Constructs an instance of SampleQuerySetServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(SampleQuerySetServiceSettings). + */ + public static final SampleQuerySetServiceClient create(SampleQuerySetServiceStub stub) { + return new SampleQuerySetServiceClient(stub); + } + + /** + * Constructs an instance of SampleQuerySetServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected SampleQuerySetServiceClient(SampleQuerySetServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((SampleQuerySetServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected SampleQuerySetServiceClient(SampleQuerySetServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final SampleQuerySetServiceSettings getSettings() { + return settings; + } + + public SampleQuerySetServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   SampleQuerySetName name =
      +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]");
      +   *   SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(name);
      +   * }
      +   * }
      + * + * @param name Required. Full resource name of + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`. + *

      If the caller does not have permission to access the + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], regardless of whether + * or not it exists, a PERMISSION_DENIED error is returned. + *

      If the requested [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] + * does not exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuerySet getSampleQuerySet(SampleQuerySetName name) { + GetSampleQuerySetRequest request = + GetSampleQuerySetRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getSampleQuerySet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   String name =
      +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString();
      +   *   SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(name);
      +   * }
      +   * }
      + * + * @param name Required. Full resource name of + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`. + *

      If the caller does not have permission to access the + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], regardless of whether + * or not it exists, a PERMISSION_DENIED error is returned. + *

      If the requested [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] + * does not exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuerySet getSampleQuerySet(String name) { + GetSampleQuerySetRequest request = GetSampleQuerySetRequest.newBuilder().setName(name).build(); + return getSampleQuerySet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   GetSampleQuerySetRequest request =
      +   *       GetSampleQuerySetRequest.newBuilder()
      +   *           .setName(
      +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
      +   *           .build();
      +   *   SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(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 SampleQuerySet getSampleQuerySet(GetSampleQuerySetRequest request) { + return getSampleQuerySetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   GetSampleQuerySetRequest request =
      +   *       GetSampleQuerySetRequest.newBuilder()
      +   *           .setName(
      +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       sampleQuerySetServiceClient.getSampleQuerySetCallable().futureCall(request);
      +   *   // Do something.
      +   *   SampleQuerySet response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getSampleQuerySetCallable() { + return stub.getSampleQuerySetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
      +   *   for (SampleQuerySet element :
      +   *       sampleQuerySetServiceClient.listSampleQuerySets(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The parent location resource name, such as + * `projects/{project}/locations/{location}`. + *

      If the caller does not have permission to list + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s under this location, + * regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSampleQuerySetsPagedResponse listSampleQuerySets(LocationName parent) { + ListSampleQuerySetsRequest request = + ListSampleQuerySetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSampleQuerySets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
      +   *   for (SampleQuerySet element :
      +   *       sampleQuerySetServiceClient.listSampleQuerySets(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The parent location resource name, such as + * `projects/{project}/locations/{location}`. + *

      If the caller does not have permission to list + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s under this location, + * regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSampleQuerySetsPagedResponse listSampleQuerySets(String parent) { + ListSampleQuerySetsRequest request = + ListSampleQuerySetsRequest.newBuilder().setParent(parent).build(); + return listSampleQuerySets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   ListSampleQuerySetsRequest request =
      +   *       ListSampleQuerySetsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   for (SampleQuerySet element :
      +   *       sampleQuerySetServiceClient.listSampleQuerySets(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 ListSampleQuerySetsPagedResponse listSampleQuerySets( + ListSampleQuerySetsRequest request) { + return listSampleQuerySetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   ListSampleQuerySetsRequest request =
      +   *       ListSampleQuerySetsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       sampleQuerySetServiceClient.listSampleQuerySetsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (SampleQuerySet element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listSampleQuerySetsPagedCallable() { + return stub.listSampleQuerySetsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   ListSampleQuerySetsRequest request =
      +   *       ListSampleQuerySetsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   while (true) {
      +   *     ListSampleQuerySetsResponse response =
      +   *         sampleQuerySetServiceClient.listSampleQuerySetsCallable().call(request);
      +   *     for (SampleQuerySet element : response.getSampleQuerySetsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listSampleQuerySetsCallable() { + return stub.listSampleQuerySetsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
      +   *   SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build();
      +   *   String sampleQuerySetId = "sampleQuerySetId1320431231";
      +   *   SampleQuerySet response =
      +   *       sampleQuerySetServiceClient.createSampleQuerySet(
      +   *           parent, sampleQuerySet, sampleQuerySetId);
      +   * }
      +   * }
      + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}`. + * @param sampleQuerySet Required. The + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to create. + * @param sampleQuerySetId Required. The ID to use for the + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], which will become the + * final component of the + * [SampleQuerySet.name][google.cloud.discoveryengine.v1beta.SampleQuerySet.name]. + *

      If the caller does not have permission to create the + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], regardless of whether + * or not it exists, a `PERMISSION_DENIED` error is returned. + *

      This field must be unique among all + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s with the same + * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.parent]. + * Otherwise, an `ALREADY_EXISTS` error is returned. + *

      This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with + * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuerySet createSampleQuerySet( + LocationName parent, SampleQuerySet sampleQuerySet, String sampleQuerySetId) { + CreateSampleQuerySetRequest request = + CreateSampleQuerySetRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSampleQuerySet(sampleQuerySet) + .setSampleQuerySetId(sampleQuerySetId) + .build(); + return createSampleQuerySet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
      +   *   SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build();
      +   *   String sampleQuerySetId = "sampleQuerySetId1320431231";
      +   *   SampleQuerySet response =
      +   *       sampleQuerySetServiceClient.createSampleQuerySet(
      +   *           parent, sampleQuerySet, sampleQuerySetId);
      +   * }
      +   * }
      + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}`. + * @param sampleQuerySet Required. The + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to create. + * @param sampleQuerySetId Required. The ID to use for the + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], which will become the + * final component of the + * [SampleQuerySet.name][google.cloud.discoveryengine.v1beta.SampleQuerySet.name]. + *

      If the caller does not have permission to create the + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], regardless of whether + * or not it exists, a `PERMISSION_DENIED` error is returned. + *

      This field must be unique among all + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s with the same + * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.parent]. + * Otherwise, an `ALREADY_EXISTS` error is returned. + *

      This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with + * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuerySet createSampleQuerySet( + String parent, SampleQuerySet sampleQuerySet, String sampleQuerySetId) { + CreateSampleQuerySetRequest request = + CreateSampleQuerySetRequest.newBuilder() + .setParent(parent) + .setSampleQuerySet(sampleQuerySet) + .setSampleQuerySetId(sampleQuerySetId) + .build(); + return createSampleQuerySet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   CreateSampleQuerySetRequest request =
      +   *       CreateSampleQuerySetRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setSampleQuerySet(SampleQuerySet.newBuilder().build())
      +   *           .setSampleQuerySetId("sampleQuerySetId1320431231")
      +   *           .build();
      +   *   SampleQuerySet response = sampleQuerySetServiceClient.createSampleQuerySet(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 SampleQuerySet createSampleQuerySet(CreateSampleQuerySetRequest request) { + return createSampleQuerySetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   CreateSampleQuerySetRequest request =
      +   *       CreateSampleQuerySetRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setSampleQuerySet(SampleQuerySet.newBuilder().build())
      +   *           .setSampleQuerySetId("sampleQuerySetId1320431231")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       sampleQuerySetServiceClient.createSampleQuerySetCallable().futureCall(request);
      +   *   // Do something.
      +   *   SampleQuerySet response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + createSampleQuerySetCallable() { + return stub.createSampleQuerySetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build();
      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
      +   *   SampleQuerySet response =
      +   *       sampleQuerySetServiceClient.updateSampleQuerySet(sampleQuerySet, updateMask);
      +   * }
      +   * }
      + * + * @param sampleQuerySet Required. The sample query set to update. + *

      If the caller does not have permission to update the + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], regardless of whether + * or not it exists, a `PERMISSION_DENIED` error is returned. + *

      If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to update + * does not exist a `NOT_FOUND` error is returned. + * @param updateMask Indicates which fields in the provided imported 'sample query set' to update. + * If not set, will by default update all fields. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SampleQuerySet updateSampleQuerySet( + SampleQuerySet sampleQuerySet, FieldMask updateMask) { + UpdateSampleQuerySetRequest request = + UpdateSampleQuerySetRequest.newBuilder() + .setSampleQuerySet(sampleQuerySet) + .setUpdateMask(updateMask) + .build(); + return updateSampleQuerySet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   UpdateSampleQuerySetRequest request =
      +   *       UpdateSampleQuerySetRequest.newBuilder()
      +   *           .setSampleQuerySet(SampleQuerySet.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   SampleQuerySet response = sampleQuerySetServiceClient.updateSampleQuerySet(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 SampleQuerySet updateSampleQuerySet(UpdateSampleQuerySetRequest request) { + return updateSampleQuerySetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   UpdateSampleQuerySetRequest request =
      +   *       UpdateSampleQuerySetRequest.newBuilder()
      +   *           .setSampleQuerySet(SampleQuerySet.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       sampleQuerySetServiceClient.updateSampleQuerySetCallable().futureCall(request);
      +   *   // Do something.
      +   *   SampleQuerySet response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + updateSampleQuerySetCallable() { + return stub.updateSampleQuerySetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   SampleQuerySetName name =
      +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]");
      +   *   sampleQuerySetServiceClient.deleteSampleQuerySet(name);
      +   * }
      +   * }
      + * + * @param name Required. Full resource name of + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`. + *

      If the caller does not have permission to delete the + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], regardless of whether + * or not it exists, a `PERMISSION_DENIED` error is returned. + *

      If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to delete + * does not exist, a `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSampleQuerySet(SampleQuerySetName name) { + DeleteSampleQuerySetRequest request = + DeleteSampleQuerySetRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteSampleQuerySet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   String name =
      +   *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString();
      +   *   sampleQuerySetServiceClient.deleteSampleQuerySet(name);
      +   * }
      +   * }
      + * + * @param name Required. Full resource name of + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such as + * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`. + *

      If the caller does not have permission to delete the + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], regardless of whether + * or not it exists, a `PERMISSION_DENIED` error is returned. + *

      If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to delete + * does not exist, a `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSampleQuerySet(String name) { + DeleteSampleQuerySetRequest request = + DeleteSampleQuerySetRequest.newBuilder().setName(name).build(); + deleteSampleQuerySet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   DeleteSampleQuerySetRequest request =
      +   *       DeleteSampleQuerySetRequest.newBuilder()
      +   *           .setName(
      +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
      +   *           .build();
      +   *   sampleQuerySetServiceClient.deleteSampleQuerySet(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSampleQuerySet(DeleteSampleQuerySetRequest request) { + deleteSampleQuerySetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + * + *

      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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      +   *     SampleQuerySetServiceClient.create()) {
      +   *   DeleteSampleQuerySetRequest request =
      +   *       DeleteSampleQuerySetRequest.newBuilder()
      +   *           .setName(
      +   *               SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       sampleQuerySetServiceClient.deleteSampleQuerySetCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable deleteSampleQuerySetCallable() { + return stub.deleteSampleQuerySetCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListSampleQuerySetsPagedResponse + extends AbstractPagedListResponse< + ListSampleQuerySetsRequest, + ListSampleQuerySetsResponse, + SampleQuerySet, + ListSampleQuerySetsPage, + ListSampleQuerySetsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSampleQuerySetsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSampleQuerySetsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSampleQuerySetsPagedResponse(ListSampleQuerySetsPage page) { + super(page, ListSampleQuerySetsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSampleQuerySetsPage + extends AbstractPage< + ListSampleQuerySetsRequest, + ListSampleQuerySetsResponse, + SampleQuerySet, + ListSampleQuerySetsPage> { + + private ListSampleQuerySetsPage( + PageContext + context, + ListSampleQuerySetsResponse response) { + super(context, response); + } + + private static ListSampleQuerySetsPage createEmptyPage() { + return new ListSampleQuerySetsPage(null, null); + } + + @Override + protected ListSampleQuerySetsPage createPage( + PageContext + context, + ListSampleQuerySetsResponse response) { + return new ListSampleQuerySetsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSampleQuerySetsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSampleQuerySetsRequest, + ListSampleQuerySetsResponse, + SampleQuerySet, + ListSampleQuerySetsPage, + ListSampleQuerySetsFixedSizeCollection> { + + private ListSampleQuerySetsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSampleQuerySetsFixedSizeCollection createEmptyCollection() { + return new ListSampleQuerySetsFixedSizeCollection(null, 0); + } + + @Override + protected ListSampleQuerySetsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSampleQuerySetsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceSettings.java new file mode 100644 index 000000000000..f1c0fb31e144 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceSettings.java @@ -0,0 +1,262 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import static com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient.ListSampleQuerySetsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1beta.stub.SampleQuerySetServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SampleQuerySetServiceClient}. + * + *

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

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

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

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

      {@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
      + * SampleQuerySetServiceSettings.Builder sampleQuerySetServiceSettingsBuilder =
      + *     SampleQuerySetServiceSettings.newBuilder();
      + * sampleQuerySetServiceSettingsBuilder
      + *     .getSampleQuerySetSettings()
      + *     .setRetrySettings(
      + *         sampleQuerySetServiceSettingsBuilder
      + *             .getSampleQuerySetSettings()
      + *             .getRetrySettings()
      + *             .toBuilder()
      + *             .setTotalTimeout(Duration.ofSeconds(30))
      + *             .build());
      + * SampleQuerySetServiceSettings sampleQuerySetServiceSettings =
      + *     sampleQuerySetServiceSettingsBuilder.build();
      + * }
      + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SampleQuerySetServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getSampleQuerySet. */ + public UnaryCallSettings getSampleQuerySetSettings() { + return ((SampleQuerySetServiceStubSettings) getStubSettings()).getSampleQuerySetSettings(); + } + + /** Returns the object with the settings used for calls to listSampleQuerySets. */ + public PagedCallSettings< + ListSampleQuerySetsRequest, ListSampleQuerySetsResponse, ListSampleQuerySetsPagedResponse> + listSampleQuerySetsSettings() { + return ((SampleQuerySetServiceStubSettings) getStubSettings()).listSampleQuerySetsSettings(); + } + + /** Returns the object with the settings used for calls to createSampleQuerySet. */ + public UnaryCallSettings + createSampleQuerySetSettings() { + return ((SampleQuerySetServiceStubSettings) getStubSettings()).createSampleQuerySetSettings(); + } + + /** Returns the object with the settings used for calls to updateSampleQuerySet. */ + public UnaryCallSettings + updateSampleQuerySetSettings() { + return ((SampleQuerySetServiceStubSettings) getStubSettings()).updateSampleQuerySetSettings(); + } + + /** Returns the object with the settings used for calls to deleteSampleQuerySet. */ + public UnaryCallSettings deleteSampleQuerySetSettings() { + return ((SampleQuerySetServiceStubSettings) getStubSettings()).deleteSampleQuerySetSettings(); + } + + public static final SampleQuerySetServiceSettings create(SampleQuerySetServiceStubSettings stub) + throws IOException { + return new SampleQuerySetServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SampleQuerySetServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SampleQuerySetServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SampleQuerySetServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SampleQuerySetServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SampleQuerySetServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SampleQuerySetServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SampleQuerySetServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SampleQuerySetServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SampleQuerySetServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SampleQuerySetServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(SampleQuerySetServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(SampleQuerySetServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SampleQuerySetServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(SampleQuerySetServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(SampleQuerySetServiceStubSettings.newHttpJsonBuilder()); + } + + public SampleQuerySetServiceStubSettings.Builder getStubSettingsBuilder() { + return ((SampleQuerySetServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getSampleQuerySet. */ + public UnaryCallSettings.Builder + getSampleQuerySetSettings() { + return getStubSettingsBuilder().getSampleQuerySetSettings(); + } + + /** Returns the builder for the settings used for calls to listSampleQuerySets. */ + public PagedCallSettings.Builder< + ListSampleQuerySetsRequest, + ListSampleQuerySetsResponse, + ListSampleQuerySetsPagedResponse> + listSampleQuerySetsSettings() { + return getStubSettingsBuilder().listSampleQuerySetsSettings(); + } + + /** Returns the builder for the settings used for calls to createSampleQuerySet. */ + public UnaryCallSettings.Builder + createSampleQuerySetSettings() { + return getStubSettingsBuilder().createSampleQuerySetSettings(); + } + + /** Returns the builder for the settings used for calls to updateSampleQuerySet. */ + public UnaryCallSettings.Builder + updateSampleQuerySetSettings() { + return getStubSettingsBuilder().updateSampleQuerySetSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSampleQuerySet. */ + public UnaryCallSettings.Builder + deleteSampleQuerySetSettings() { + return getStubSettingsBuilder().deleteSampleQuerySetSettings(); + } + + @Override + public SampleQuerySetServiceSettings build() throws IOException { + return new SampleQuerySetServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java index 57a4badb626c..f329e0a495e0 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java @@ -67,6 +67,8 @@ * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") * .setUserInfo(UserInfo.newBuilder().build()) + * .setLanguageCode("languageCode-2092349083") + * .setRegionCode("regionCode-1991004415") * .addAllFacetSpecs(new ArrayList()) * .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) * .putAllParams(new HashMap()) @@ -78,6 +80,14 @@ * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setNaturalLanguageQueryUnderstandingSpec( + * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) + * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + * .setSession( + * SessionName.ofProjectLocationDataStoreSessionName( + * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + * .toString()) + * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) * .build(); * for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { * // doThingsWith(element); @@ -249,6 +259,8 @@ public SearchServiceStub getStub() { * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") * .setUserInfo(UserInfo.newBuilder().build()) + * .setLanguageCode("languageCode-2092349083") + * .setRegionCode("regionCode-1991004415") * .addAllFacetSpecs(new ArrayList()) * .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) * .putAllParams(new HashMap()) @@ -260,6 +272,14 @@ public SearchServiceStub getStub() { * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setNaturalLanguageQueryUnderstandingSpec( + * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) + * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + * .setSession( + * SessionName.ofProjectLocationDataStoreSessionName( + * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + * .toString()) + * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) * .build(); * for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { * // doThingsWith(element); @@ -307,6 +327,8 @@ public final SearchPagedResponse search(SearchRequest request) { * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") * .setUserInfo(UserInfo.newBuilder().build()) + * .setLanguageCode("languageCode-2092349083") + * .setRegionCode("regionCode-1991004415") * .addAllFacetSpecs(new ArrayList()) * .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) * .putAllParams(new HashMap()) @@ -318,6 +340,14 @@ public final SearchPagedResponse search(SearchRequest request) { * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setNaturalLanguageQueryUnderstandingSpec( + * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) + * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + * .setSession( + * SessionName.ofProjectLocationDataStoreSessionName( + * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + * .toString()) + * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) * .build(); * ApiFuture future = * searchServiceClient.searchPagedCallable().futureCall(request); @@ -365,6 +395,8 @@ public final UnaryCallable searchPagedCallab * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") * .setUserInfo(UserInfo.newBuilder().build()) + * .setLanguageCode("languageCode-2092349083") + * .setRegionCode("regionCode-1991004415") * .addAllFacetSpecs(new ArrayList()) * .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) * .putAllParams(new HashMap()) @@ -376,6 +408,14 @@ public final UnaryCallable searchPagedCallab * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setNaturalLanguageQueryUnderstandingSpec( + * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) + * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + * .setSession( + * SessionName.ofProjectLocationDataStoreSessionName( + * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + * .toString()) + * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) * .build(); * while (true) { * SearchResponse response = searchServiceClient.searchCallable().call(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java index ab5a9e1328d8..4d42c391595e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java @@ -98,6 +98,21 @@ * * * + *

      PurgeUserEvents + *

      Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first. + * + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • purgeUserEventsAsync(PurgeUserEventsRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • purgeUserEventsOperationCallable() + *

      • purgeUserEventsCallable() + *

      + * + * + * *

      ImportUserEvents *

      Bulk import of user events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. *

      Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata. @@ -389,6 +404,114 @@ public final UnaryCallable collectUserEventCa return stub.collectUserEventCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes permanently all user events specified by the filter provided. Depending on the number + * of events specified by the filter, this operation could take hours or days to complete. To test + * a filter, use the list command first. + * + *

      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 (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
      +   *   PurgeUserEventsRequest request =
      +   *       PurgeUserEventsRequest.newBuilder()
      +   *           .setParent(
      +   *               DataStoreName.ofProjectLocationDataStoreName(
      +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
      +   *                   .toString())
      +   *           .setFilter("filter-1274492040")
      +   *           .setForce(true)
      +   *           .build();
      +   *   PurgeUserEventsResponse response = userEventServiceClient.purgeUserEventsAsync(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 + purgeUserEventsAsync(PurgeUserEventsRequest request) { + return purgeUserEventsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes permanently all user events specified by the filter provided. Depending on the number + * of events specified by the filter, this operation could take hours or days to complete. To test + * a filter, use the list command first. + * + *

      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 (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
      +   *   PurgeUserEventsRequest request =
      +   *       PurgeUserEventsRequest.newBuilder()
      +   *           .setParent(
      +   *               DataStoreName.ofProjectLocationDataStoreName(
      +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
      +   *                   .toString())
      +   *           .setFilter("filter-1274492040")
      +   *           .setForce(true)
      +   *           .build();
      +   *   OperationFuture future =
      +   *       userEventServiceClient.purgeUserEventsOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   PurgeUserEventsResponse response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationCallable() { + return stub.purgeUserEventsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes permanently all user events specified by the filter provided. Depending on the number + * of events specified by the filter, this operation could take hours or days to complete. To test + * a filter, use the list command first. + * + *

      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 (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
      +   *   PurgeUserEventsRequest request =
      +   *       PurgeUserEventsRequest.newBuilder()
      +   *           .setParent(
      +   *               DataStoreName.ofProjectLocationDataStoreName(
      +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
      +   *                   .toString())
      +   *           .setFilter("filter-1274492040")
      +   *           .setForce(true)
      +   *           .build();
      +   *   ApiFuture future =
      +   *       userEventServiceClient.purgeUserEventsCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable purgeUserEventsCallable() { + return stub.purgeUserEventsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Bulk import of user events. Request processing might be synchronous. Events that already exist diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java index d0d239bab5cd..5b0b3623dc47 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java @@ -87,6 +87,18 @@ public UnaryCallSettings collectUserEventSett return ((UserEventServiceStubSettings) getStubSettings()).collectUserEventSettings(); } + /** Returns the object with the settings used for calls to purgeUserEvents. */ + public UnaryCallSettings purgeUserEventsSettings() { + return ((UserEventServiceStubSettings) getStubSettings()).purgeUserEventsSettings(); + } + + /** Returns the object with the settings used for calls to purgeUserEvents. */ + public OperationCallSettings< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationSettings() { + return ((UserEventServiceStubSettings) getStubSettings()).purgeUserEventsOperationSettings(); + } + /** Returns the object with the settings used for calls to importUserEvents. */ public UnaryCallSettings importUserEventsSettings() { return ((UserEventServiceStubSettings) getStubSettings()).importUserEventsSettings(); @@ -221,6 +233,18 @@ public UnaryCallSettings.Builder collectUserE return getStubSettingsBuilder().collectUserEventSettings(); } + /** Returns the builder for the settings used for calls to purgeUserEvents. */ + public UnaryCallSettings.Builder purgeUserEventsSettings() { + return getStubSettingsBuilder().purgeUserEventsSettings(); + } + + /** Returns the builder for the settings used for calls to purgeUserEvents. */ + public OperationCallSettings.Builder< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationSettings() { + return getStubSettingsBuilder().purgeUserEventsOperationSettings(); + } + /** Returns the builder for the settings used for calls to importUserEvents. */ public UnaryCallSettings.Builder importUserEventsSettings() { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json index aecf55f8a80e..836bf93dfbd7 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json @@ -13,9 +13,15 @@ "CompleteQuery": { "methods": ["completeQuery", "completeQueryCallable"] }, + "ImportCompletionSuggestions": { + "methods": ["importCompletionSuggestionsAsync", "importCompletionSuggestionsOperationCallable", "importCompletionSuggestionsCallable"] + }, "ImportSuggestionDenyListEntries": { "methods": ["importSuggestionDenyListEntriesAsync", "importSuggestionDenyListEntriesOperationCallable", "importSuggestionDenyListEntriesCallable"] }, + "PurgeCompletionSuggestions": { + "methods": ["purgeCompletionSuggestionsAsync", "purgeCompletionSuggestionsOperationCallable", "purgeCompletionSuggestionsCallable"] + }, "PurgeSuggestionDenyListEntries": { "methods": ["purgeSuggestionDenyListEntriesAsync", "purgeSuggestionDenyListEntriesOperationCallable", "purgeSuggestionDenyListEntriesCallable"] } @@ -182,6 +188,27 @@ } } }, + "EvaluationService": { + "clients": { + "grpc": { + "libraryClient": "EvaluationServiceClient", + "rpcs": { + "CreateEvaluation": { + "methods": ["createEvaluationAsync", "createEvaluationAsync", "createEvaluationAsync", "createEvaluationOperationCallable", "createEvaluationCallable"] + }, + "GetEvaluation": { + "methods": ["getEvaluation", "getEvaluation", "getEvaluation", "getEvaluationCallable"] + }, + "ListEvaluationResults": { + "methods": ["listEvaluationResults", "listEvaluationResults", "listEvaluationResults", "listEvaluationResultsPagedCallable", "listEvaluationResultsCallable"] + }, + "ListEvaluations": { + "methods": ["listEvaluations", "listEvaluations", "listEvaluations", "listEvaluationsPagedCallable", "listEvaluationsCallable"] + } + } + } + } + }, "GroundedGenerationService": { "clients": { "grpc": { @@ -230,6 +257,57 @@ } } }, + "SampleQueryService": { + "clients": { + "grpc": { + "libraryClient": "SampleQueryServiceClient", + "rpcs": { + "CreateSampleQuery": { + "methods": ["createSampleQuery", "createSampleQuery", "createSampleQuery", "createSampleQueryCallable"] + }, + "DeleteSampleQuery": { + "methods": ["deleteSampleQuery", "deleteSampleQuery", "deleteSampleQuery", "deleteSampleQueryCallable"] + }, + "GetSampleQuery": { + "methods": ["getSampleQuery", "getSampleQuery", "getSampleQuery", "getSampleQueryCallable"] + }, + "ImportSampleQueries": { + "methods": ["importSampleQueriesAsync", "importSampleQueriesOperationCallable", "importSampleQueriesCallable"] + }, + "ListSampleQueries": { + "methods": ["listSampleQueries", "listSampleQueries", "listSampleQueries", "listSampleQueriesPagedCallable", "listSampleQueriesCallable"] + }, + "UpdateSampleQuery": { + "methods": ["updateSampleQuery", "updateSampleQuery", "updateSampleQueryCallable"] + } + } + } + } + }, + "SampleQuerySetService": { + "clients": { + "grpc": { + "libraryClient": "SampleQuerySetServiceClient", + "rpcs": { + "CreateSampleQuerySet": { + "methods": ["createSampleQuerySet", "createSampleQuerySet", "createSampleQuerySet", "createSampleQuerySetCallable"] + }, + "DeleteSampleQuerySet": { + "methods": ["deleteSampleQuerySet", "deleteSampleQuerySet", "deleteSampleQuerySet", "deleteSampleQuerySetCallable"] + }, + "GetSampleQuerySet": { + "methods": ["getSampleQuerySet", "getSampleQuerySet", "getSampleQuerySet", "getSampleQuerySetCallable"] + }, + "ListSampleQuerySets": { + "methods": ["listSampleQuerySets", "listSampleQuerySets", "listSampleQuerySets", "listSampleQuerySetsPagedCallable", "listSampleQuerySetsCallable"] + }, + "UpdateSampleQuerySet": { + "methods": ["updateSampleQuerySet", "updateSampleQuerySet", "updateSampleQuerySetCallable"] + } + } + } + } + }, "SchemaService": { "clients": { "grpc": { @@ -355,6 +433,9 @@ "ImportUserEvents": { "methods": ["importUserEventsAsync", "importUserEventsOperationCallable", "importUserEventsCallable"] }, + "PurgeUserEvents": { + "methods": ["purgeUserEventsAsync", "purgeUserEventsOperationCallable", "purgeUserEventsCallable"] + }, "WriteUserEvent": { "methods": ["writeUserEvent", "writeUserEventCallable"] } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java index d77c5d3ffaf8..578c783f0080 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java @@ -154,6 +154,25 @@ * } * } * + *

      ======================= EvaluationServiceClient ======================= + * + *

      Service Description: Service for managing + * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s, + * + *

      Sample for EvaluationServiceClient: + * + *

      {@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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
      + *   EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]");
      + *   Evaluation response = evaluationServiceClient.getEvaluation(name);
      + * }
      + * }
      + * *

      ======================= GroundedGenerationServiceClient ======================= * *

      Service Description: Service for grounded generation. @@ -260,6 +279,47 @@ * } * } * + *

      ======================= SampleQueryServiceClient ======================= + * + *

      Service Description: Service for managing + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s, + * + *

      Sample for SampleQueryServiceClient: + * + *

      {@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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) {
      + *   SampleQueryName name =
      + *       SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]");
      + *   SampleQuery response = sampleQueryServiceClient.getSampleQuery(name);
      + * }
      + * }
      + * + *

      ======================= SampleQuerySetServiceClient ======================= + * + *

      Service Description: Service for managing + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s, + * + *

      Sample for SampleQuerySetServiceClient: + * + *

      {@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 (SampleQuerySetServiceClient sampleQuerySetServiceClient =
      + *     SampleQuerySetServiceClient.create()) {
      + *   SampleQuerySetName name =
      + *       SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]");
      + *   SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(name);
      + * }
      + * }
      + * *

      ======================= SchemaServiceClient ======================= * *

      Service Description: Service for managing @@ -314,6 +374,8 @@ * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") * .setUserInfo(UserInfo.newBuilder().build()) + * .setLanguageCode("languageCode-2092349083") + * .setRegionCode("regionCode-1991004415") * .addAllFacetSpecs(new ArrayList()) * .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) * .putAllParams(new HashMap()) @@ -325,6 +387,14 @@ * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setNaturalLanguageQueryUnderstandingSpec( + * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) + * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + * .setSession( + * SessionName.ofProjectLocationDataStoreSessionName( + * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + * .toString()) + * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) * .build(); * for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { * // doThingsWith(element); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java index 44a15d4ae807..d2dc9d0e77a5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java @@ -22,9 +22,15 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest; import com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse; import com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata; import com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest; import com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse; @@ -84,6 +90,36 @@ public UnaryCallable completeQueryC "Not implemented: purgeSuggestionDenyListEntriesCallable()"); } + public OperationCallable< + ImportCompletionSuggestionsRequest, + ImportCompletionSuggestionsResponse, + ImportCompletionSuggestionsMetadata> + importCompletionSuggestionsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: importCompletionSuggestionsOperationCallable()"); + } + + public UnaryCallable + importCompletionSuggestionsCallable() { + throw new UnsupportedOperationException( + "Not implemented: importCompletionSuggestionsCallable()"); + } + + public OperationCallable< + PurgeCompletionSuggestionsRequest, + PurgeCompletionSuggestionsResponse, + PurgeCompletionSuggestionsMetadata> + purgeCompletionSuggestionsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: purgeCompletionSuggestionsOperationCallable()"); + } + + public UnaryCallable + purgeCompletionSuggestionsCallable() { + throw new UnsupportedOperationException( + "Not implemented: purgeCompletionSuggestionsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java index bb0101dc9346..5aa593e80c93 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -40,9 +41,15 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest; import com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse; import com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata; import com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest; import com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse; @@ -118,6 +125,20 @@ public class CompletionServiceStubSettings extends StubSettings purgeSuggestionDenyListEntriesOperationSettings; + private final UnaryCallSettings + importCompletionSuggestionsSettings; + private final OperationCallSettings< + ImportCompletionSuggestionsRequest, + ImportCompletionSuggestionsResponse, + ImportCompletionSuggestionsMetadata> + importCompletionSuggestionsOperationSettings; + private final UnaryCallSettings + purgeCompletionSuggestionsSettings; + private final OperationCallSettings< + PurgeCompletionSuggestionsRequest, + PurgeCompletionSuggestionsResponse, + PurgeCompletionSuggestionsMetadata> + purgeCompletionSuggestionsOperationSettings; /** Returns the object with the settings used for calls to completeQuery. */ public UnaryCallSettings completeQuerySettings() { @@ -154,6 +175,36 @@ public UnaryCallSettings completeQu return purgeSuggestionDenyListEntriesOperationSettings; } + /** Returns the object with the settings used for calls to importCompletionSuggestions. */ + public UnaryCallSettings + importCompletionSuggestionsSettings() { + return importCompletionSuggestionsSettings; + } + + /** Returns the object with the settings used for calls to importCompletionSuggestions. */ + public OperationCallSettings< + ImportCompletionSuggestionsRequest, + ImportCompletionSuggestionsResponse, + ImportCompletionSuggestionsMetadata> + importCompletionSuggestionsOperationSettings() { + return importCompletionSuggestionsOperationSettings; + } + + /** Returns the object with the settings used for calls to purgeCompletionSuggestions. */ + public UnaryCallSettings + purgeCompletionSuggestionsSettings() { + return purgeCompletionSuggestionsSettings; + } + + /** Returns the object with the settings used for calls to purgeCompletionSuggestions. */ + public OperationCallSettings< + PurgeCompletionSuggestionsRequest, + PurgeCompletionSuggestionsResponse, + PurgeCompletionSuggestionsMetadata> + purgeCompletionSuggestionsOperationSettings() { + return purgeCompletionSuggestionsOperationSettings; + } + public CompletionServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -182,6 +233,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } @@ -273,6 +325,14 @@ protected CompletionServiceStubSettings(Builder settingsBuilder) throws IOExcept settingsBuilder.purgeSuggestionDenyListEntriesSettings().build(); purgeSuggestionDenyListEntriesOperationSettings = settingsBuilder.purgeSuggestionDenyListEntriesOperationSettings().build(); + importCompletionSuggestionsSettings = + settingsBuilder.importCompletionSuggestionsSettings().build(); + importCompletionSuggestionsOperationSettings = + settingsBuilder.importCompletionSuggestionsOperationSettings().build(); + purgeCompletionSuggestionsSettings = + settingsBuilder.purgeCompletionSuggestionsSettings().build(); + purgeCompletionSuggestionsOperationSettings = + settingsBuilder.purgeCompletionSuggestionsOperationSettings().build(); } /** Builder for CompletionServiceStubSettings. */ @@ -294,6 +354,20 @@ public static class Builder extends StubSettings.Builder purgeSuggestionDenyListEntriesOperationSettings; + private final UnaryCallSettings.Builder + importCompletionSuggestionsSettings; + private final OperationCallSettings.Builder< + ImportCompletionSuggestionsRequest, + ImportCompletionSuggestionsResponse, + ImportCompletionSuggestionsMetadata> + importCompletionSuggestionsOperationSettings; + private final UnaryCallSettings.Builder + purgeCompletionSuggestionsSettings; + private final OperationCallSettings.Builder< + PurgeCompletionSuggestionsRequest, + PurgeCompletionSuggestionsResponse, + PurgeCompletionSuggestionsMetadata> + purgeCompletionSuggestionsOperationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -337,12 +411,18 @@ protected Builder(ClientContext clientContext) { importSuggestionDenyListEntriesOperationSettings = OperationCallSettings.newBuilder(); purgeSuggestionDenyListEntriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); purgeSuggestionDenyListEntriesOperationSettings = OperationCallSettings.newBuilder(); + importCompletionSuggestionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importCompletionSuggestionsOperationSettings = OperationCallSettings.newBuilder(); + purgeCompletionSuggestionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + purgeCompletionSuggestionsOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( completeQuerySettings, importSuggestionDenyListEntriesSettings, - purgeSuggestionDenyListEntriesSettings); + purgeSuggestionDenyListEntriesSettings, + importCompletionSuggestionsSettings, + purgeCompletionSuggestionsSettings); initDefaults(this); } @@ -358,12 +438,21 @@ protected Builder(CompletionServiceStubSettings settings) { settings.purgeSuggestionDenyListEntriesSettings.toBuilder(); purgeSuggestionDenyListEntriesOperationSettings = settings.purgeSuggestionDenyListEntriesOperationSettings.toBuilder(); + importCompletionSuggestionsSettings = + settings.importCompletionSuggestionsSettings.toBuilder(); + importCompletionSuggestionsOperationSettings = + settings.importCompletionSuggestionsOperationSettings.toBuilder(); + purgeCompletionSuggestionsSettings = settings.purgeCompletionSuggestionsSettings.toBuilder(); + purgeCompletionSuggestionsOperationSettings = + settings.purgeCompletionSuggestionsOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( completeQuerySettings, importSuggestionDenyListEntriesSettings, - purgeSuggestionDenyListEntriesSettings); + purgeSuggestionDenyListEntriesSettings, + importCompletionSuggestionsSettings, + purgeCompletionSuggestionsSettings); } private static Builder createDefault() { @@ -406,6 +495,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .importCompletionSuggestionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .purgeCompletionSuggestionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .importSuggestionDenyListEntriesOperationSettings() .setInitialCallSettings( @@ -460,6 +559,60 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .importCompletionSuggestionsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + ImportCompletionSuggestionsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + ImportCompletionSuggestionsMetadata.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 + .purgeCompletionSuggestionsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + PurgeCompletionSuggestionsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + PurgeCompletionSuggestionsMetadata.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; } @@ -514,6 +667,36 @@ public Builder applyToAllUnaryMethods( return purgeSuggestionDenyListEntriesOperationSettings; } + /** Returns the builder for the settings used for calls to importCompletionSuggestions. */ + public UnaryCallSettings.Builder + importCompletionSuggestionsSettings() { + return importCompletionSuggestionsSettings; + } + + /** Returns the builder for the settings used for calls to importCompletionSuggestions. */ + public OperationCallSettings.Builder< + ImportCompletionSuggestionsRequest, + ImportCompletionSuggestionsResponse, + ImportCompletionSuggestionsMetadata> + importCompletionSuggestionsOperationSettings() { + return importCompletionSuggestionsOperationSettings; + } + + /** Returns the builder for the settings used for calls to purgeCompletionSuggestions. */ + public UnaryCallSettings.Builder + purgeCompletionSuggestionsSettings() { + return purgeCompletionSuggestionsSettings; + } + + /** Returns the builder for the settings used for calls to purgeCompletionSuggestions. */ + public OperationCallSettings.Builder< + PurgeCompletionSuggestionsRequest, + PurgeCompletionSuggestionsResponse, + PurgeCompletionSuggestionsMetadata> + purgeCompletionSuggestionsOperationSettings() { + return purgeCompletionSuggestionsOperationSettings; + } + @Override public CompletionServiceStubSettings build() throws IOException { return new CompletionServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ControlServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ControlServiceStubSettings.java index a1bf1ba753dc..ac3df5bcf6e9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ControlServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ControlServiceStubSettings.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; @@ -220,6 +221,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java index 40dcfc7f8027..c87cdbd4eda2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.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 "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStubSettings.java index c6e3ce9b6f53..ff063e753112 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStubSettings.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; @@ -245,6 +246,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java index 9b422eda2d0c..b5b495d6e4cd 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.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; @@ -263,6 +264,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStubSettings.java index bbfca074701e..f16021b36b09 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStubSettings.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; @@ -273,6 +274,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStub.java new file mode 100644 index 000000000000..2496aa13d900 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStub.java @@ -0,0 +1,91 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import static com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient.ListEvaluationResultsPagedResponse; +import static com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient.ListEvaluationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata; +import com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest; +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the EvaluationService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class EvaluationServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable getEvaluationCallable() { + throw new UnsupportedOperationException("Not implemented: getEvaluationCallable()"); + } + + public UnaryCallable + listEvaluationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listEvaluationsPagedCallable()"); + } + + public UnaryCallable listEvaluationsCallable() { + throw new UnsupportedOperationException("Not implemented: listEvaluationsCallable()"); + } + + public OperationCallable + createEvaluationOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createEvaluationOperationCallable()"); + } + + public UnaryCallable createEvaluationCallable() { + throw new UnsupportedOperationException("Not implemented: createEvaluationCallable()"); + } + + public UnaryCallable + listEvaluationResultsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listEvaluationResultsPagedCallable()"); + } + + public UnaryCallable + listEvaluationResultsCallable() { + throw new UnsupportedOperationException("Not implemented: listEvaluationResultsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStubSettings.java new file mode 100644 index 000000000000..16e23c1ce12a --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStubSettings.java @@ -0,0 +1,630 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import static com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient.ListEvaluationResultsPagedResponse; +import static com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient.ListEvaluationsPagedResponse; + +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; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata; +import com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest; +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link EvaluationServiceStub}. + * + *

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

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

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

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

      {@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
      + * EvaluationServiceStubSettings.Builder evaluationServiceSettingsBuilder =
      + *     EvaluationServiceStubSettings.newBuilder();
      + * evaluationServiceSettingsBuilder
      + *     .getEvaluationSettings()
      + *     .setRetrySettings(
      + *         evaluationServiceSettingsBuilder
      + *             .getEvaluationSettings()
      + *             .getRetrySettings()
      + *             .toBuilder()
      + *             .setTotalTimeout(Duration.ofSeconds(30))
      + *             .build());
      + * EvaluationServiceStubSettings evaluationServiceSettings =
      + *     evaluationServiceSettingsBuilder.build();
      + * }
      + */ +@BetaApi +@Generated("by gapic-generator-java") +public class EvaluationServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings getEvaluationSettings; + private final PagedCallSettings< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings; + private final UnaryCallSettings createEvaluationSettings; + private final OperationCallSettings + createEvaluationOperationSettings; + private final PagedCallSettings< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse> + listEvaluationResultsSettings; + + private static final PagedListDescriptor< + ListEvaluationsRequest, ListEvaluationsResponse, Evaluation> + LIST_EVALUATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListEvaluationsRequest injectToken( + ListEvaluationsRequest payload, String token) { + return ListEvaluationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListEvaluationsRequest injectPageSize( + ListEvaluationsRequest payload, int pageSize) { + return ListEvaluationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListEvaluationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListEvaluationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListEvaluationsResponse payload) { + return payload.getEvaluationsList() == null + ? ImmutableList.of() + : payload.getEvaluationsList(); + } + }; + + private static final PagedListDescriptor< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult> + LIST_EVALUATION_RESULTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListEvaluationResultsRequest injectToken( + ListEvaluationResultsRequest payload, String token) { + return ListEvaluationResultsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListEvaluationResultsRequest injectPageSize( + ListEvaluationResultsRequest payload, int pageSize) { + return ListEvaluationResultsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListEvaluationResultsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListEvaluationResultsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListEvaluationResultsResponse payload) { + return payload.getEvaluationResultsList() == null + ? ImmutableList.of() + : payload.getEvaluationResultsList(); + } + }; + + private static final PagedListResponseFactory< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + LIST_EVALUATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListEvaluationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_EVALUATIONS_PAGE_STR_DESC, request, context); + return ListEvaluationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse> + LIST_EVALUATION_RESULTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListEvaluationResultsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsResponse.EvaluationResult> + pageContext = + PageContext.create( + callable, LIST_EVALUATION_RESULTS_PAGE_STR_DESC, request, context); + return ListEvaluationResultsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getEvaluation. */ + public UnaryCallSettings getEvaluationSettings() { + return getEvaluationSettings; + } + + /** Returns the object with the settings used for calls to listEvaluations. */ + public PagedCallSettings< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings() { + return listEvaluationsSettings; + } + + /** Returns the object with the settings used for calls to createEvaluation. */ + public UnaryCallSettings createEvaluationSettings() { + return createEvaluationSettings; + } + + /** Returns the object with the settings used for calls to createEvaluation. */ + public OperationCallSettings + createEvaluationOperationSettings() { + return createEvaluationOperationSettings; + } + + /** Returns the object with the settings used for calls to listEvaluationResults. */ + public PagedCallSettings< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse> + listEvaluationResultsSettings() { + return listEvaluationResultsSettings; + } + + public EvaluationServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcEvaluationServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonEvaluationServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(EvaluationServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(EvaluationServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return EvaluationServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected EvaluationServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getEvaluationSettings = settingsBuilder.getEvaluationSettings().build(); + listEvaluationsSettings = settingsBuilder.listEvaluationsSettings().build(); + createEvaluationSettings = settingsBuilder.createEvaluationSettings().build(); + createEvaluationOperationSettings = settingsBuilder.createEvaluationOperationSettings().build(); + listEvaluationResultsSettings = settingsBuilder.listEvaluationResultsSettings().build(); + } + + /** Builder for EvaluationServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getEvaluationSettings; + private final PagedCallSettings.Builder< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings; + private final UnaryCallSettings.Builder + createEvaluationSettings; + private final OperationCallSettings.Builder< + CreateEvaluationRequest, Evaluation, CreateEvaluationMetadata> + createEvaluationOperationSettings; + private final PagedCallSettings.Builder< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse> + listEvaluationResultsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_3_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(30000L)) + .setTotalTimeout(Duration.ofMillis(30000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(300000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(300000L)) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build(); + definitions.put("no_retry_3_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listEvaluationsSettings = PagedCallSettings.newBuilder(LIST_EVALUATIONS_PAGE_STR_FACT); + createEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createEvaluationOperationSettings = OperationCallSettings.newBuilder(); + listEvaluationResultsSettings = + PagedCallSettings.newBuilder(LIST_EVALUATION_RESULTS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getEvaluationSettings, + listEvaluationsSettings, + createEvaluationSettings, + listEvaluationResultsSettings); + initDefaults(this); + } + + protected Builder(EvaluationServiceStubSettings settings) { + super(settings); + + getEvaluationSettings = settings.getEvaluationSettings.toBuilder(); + listEvaluationsSettings = settings.listEvaluationsSettings.toBuilder(); + createEvaluationSettings = settings.createEvaluationSettings.toBuilder(); + createEvaluationOperationSettings = settings.createEvaluationOperationSettings.toBuilder(); + listEvaluationResultsSettings = settings.listEvaluationResultsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getEvaluationSettings, + listEvaluationsSettings, + createEvaluationSettings, + listEvaluationResultsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getEvaluationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listEvaluationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .createEvaluationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + + builder + .listEvaluationResultsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .createEvaluationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Evaluation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CreateEvaluationMetadata.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; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getEvaluation. */ + public UnaryCallSettings.Builder getEvaluationSettings() { + return getEvaluationSettings; + } + + /** Returns the builder for the settings used for calls to listEvaluations. */ + public PagedCallSettings.Builder< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings() { + return listEvaluationsSettings; + } + + /** Returns the builder for the settings used for calls to createEvaluation. */ + public UnaryCallSettings.Builder + createEvaluationSettings() { + return createEvaluationSettings; + } + + /** Returns the builder for the settings used for calls to createEvaluation. */ + public OperationCallSettings.Builder< + CreateEvaluationRequest, Evaluation, CreateEvaluationMetadata> + createEvaluationOperationSettings() { + return createEvaluationOperationSettings; + } + + /** Returns the builder for the settings used for calls to listEvaluationResults. */ + public PagedCallSettings.Builder< + ListEvaluationResultsRequest, + ListEvaluationResultsResponse, + ListEvaluationResultsPagedResponse> + listEvaluationResultsSettings() { + return listEvaluationResultsSettings; + } + + @Override + public EvaluationServiceStubSettings build() throws IOException { + return new EvaluationServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GroundedGenerationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GroundedGenerationServiceStubSettings.java index 78767e0a1b11..86720601ba9e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GroundedGenerationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GroundedGenerationServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -128,6 +129,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java index 6395e650b9ef..fe883903f408 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java @@ -27,9 +27,15 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest; import com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse; import com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata; import com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest; import com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse; @@ -85,6 +91,28 @@ public class GrpcCompletionServiceStub extends CompletionServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + importCompletionSuggestionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.CompletionService/ImportCompletionSuggestions") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportCompletionSuggestionsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + purgeCompletionSuggestionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.CompletionService/PurgeCompletionSuggestions") + .setRequestMarshaller( + ProtoUtils.marshaller(PurgeCompletionSuggestionsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private final UnaryCallable completeQueryCallable; private final UnaryCallable importSuggestionDenyListEntriesCallable; @@ -100,6 +128,20 @@ public class GrpcCompletionServiceStub extends CompletionServiceStub { PurgeSuggestionDenyListEntriesResponse, PurgeSuggestionDenyListEntriesMetadata> purgeSuggestionDenyListEntriesOperationCallable; + private final UnaryCallable + importCompletionSuggestionsCallable; + private final OperationCallable< + ImportCompletionSuggestionsRequest, + ImportCompletionSuggestionsResponse, + ImportCompletionSuggestionsMetadata> + importCompletionSuggestionsOperationCallable; + private final UnaryCallable + purgeCompletionSuggestionsCallable; + private final OperationCallable< + PurgeCompletionSuggestionsRequest, + PurgeCompletionSuggestionsResponse, + PurgeCompletionSuggestionsMetadata> + purgeCompletionSuggestionsOperationCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -177,6 +219,28 @@ protected GrpcCompletionServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + importCompletionSuggestionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importCompletionSuggestionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + purgeCompletionSuggestionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(purgeCompletionSuggestionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.completeQueryCallable = callableFactory.createUnaryCallable( @@ -203,6 +267,28 @@ protected GrpcCompletionServiceStub( settings.purgeSuggestionDenyListEntriesOperationSettings(), clientContext, operationsStub); + this.importCompletionSuggestionsCallable = + callableFactory.createUnaryCallable( + importCompletionSuggestionsTransportSettings, + settings.importCompletionSuggestionsSettings(), + clientContext); + this.importCompletionSuggestionsOperationCallable = + callableFactory.createOperationCallable( + importCompletionSuggestionsTransportSettings, + settings.importCompletionSuggestionsOperationSettings(), + clientContext, + operationsStub); + this.purgeCompletionSuggestionsCallable = + callableFactory.createUnaryCallable( + purgeCompletionSuggestionsTransportSettings, + settings.purgeCompletionSuggestionsSettings(), + clientContext); + this.purgeCompletionSuggestionsOperationCallable = + callableFactory.createOperationCallable( + purgeCompletionSuggestionsTransportSettings, + settings.purgeCompletionSuggestionsOperationSettings(), + clientContext, + operationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -247,6 +333,36 @@ public UnaryCallable completeQueryC return purgeSuggestionDenyListEntriesOperationCallable; } + @Override + public UnaryCallable + importCompletionSuggestionsCallable() { + return importCompletionSuggestionsCallable; + } + + @Override + public OperationCallable< + ImportCompletionSuggestionsRequest, + ImportCompletionSuggestionsResponse, + ImportCompletionSuggestionsMetadata> + importCompletionSuggestionsOperationCallable() { + return importCompletionSuggestionsOperationCallable; + } + + @Override + public UnaryCallable + purgeCompletionSuggestionsCallable() { + return purgeCompletionSuggestionsCallable; + } + + @Override + public OperationCallable< + PurgeCompletionSuggestionsRequest, + PurgeCompletionSuggestionsResponse, + PurgeCompletionSuggestionsMetadata> + purgeCompletionSuggestionsOperationCallable() { + return purgeCompletionSuggestionsOperationCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcEvaluationServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcEvaluationServiceCallableFactory.java new file mode 100644 index 000000000000..3a13854e3c38 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcEvaluationServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the EvaluationService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcEvaluationServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcEvaluationServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcEvaluationServiceStub.java new file mode 100644 index 000000000000..0b82ef7fc2bf --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcEvaluationServiceStub.java @@ -0,0 +1,314 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import static com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient.ListEvaluationResultsPagedResponse; +import static com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient.ListEvaluationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata; +import com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest; +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the EvaluationService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcEvaluationServiceStub extends EvaluationServiceStub { + private static final MethodDescriptor + getEvaluationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.EvaluationService/GetEvaluation") + .setRequestMarshaller( + ProtoUtils.marshaller(GetEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Evaluation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listEvaluationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.EvaluationService/ListEvaluations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListEvaluationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListEvaluationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createEvaluationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.EvaluationService/CreateEvaluation") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listEvaluationResultsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.EvaluationService/ListEvaluationResults") + .setRequestMarshaller( + ProtoUtils.marshaller(ListEvaluationResultsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListEvaluationResultsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable getEvaluationCallable; + private final UnaryCallable + listEvaluationsCallable; + private final UnaryCallable + listEvaluationsPagedCallable; + private final UnaryCallable createEvaluationCallable; + private final OperationCallable + createEvaluationOperationCallable; + private final UnaryCallable + listEvaluationResultsCallable; + private final UnaryCallable + listEvaluationResultsPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcEvaluationServiceStub create(EvaluationServiceStubSettings settings) + throws IOException { + return new GrpcEvaluationServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcEvaluationServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcEvaluationServiceStub( + EvaluationServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcEvaluationServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcEvaluationServiceStub( + EvaluationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcEvaluationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcEvaluationServiceStub( + EvaluationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcEvaluationServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcEvaluationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcEvaluationServiceStub( + EvaluationServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getEvaluationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getEvaluationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listEvaluationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listEvaluationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createEvaluationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createEvaluationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listEvaluationResultsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listEvaluationResultsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("evaluation", String.valueOf(request.getEvaluation())); + return builder.build(); + }) + .build(); + + this.getEvaluationCallable = + callableFactory.createUnaryCallable( + getEvaluationTransportSettings, settings.getEvaluationSettings(), clientContext); + this.listEvaluationsCallable = + callableFactory.createUnaryCallable( + listEvaluationsTransportSettings, settings.listEvaluationsSettings(), clientContext); + this.listEvaluationsPagedCallable = + callableFactory.createPagedCallable( + listEvaluationsTransportSettings, settings.listEvaluationsSettings(), clientContext); + this.createEvaluationCallable = + callableFactory.createUnaryCallable( + createEvaluationTransportSettings, settings.createEvaluationSettings(), clientContext); + this.createEvaluationOperationCallable = + callableFactory.createOperationCallable( + createEvaluationTransportSettings, + settings.createEvaluationOperationSettings(), + clientContext, + operationsStub); + this.listEvaluationResultsCallable = + callableFactory.createUnaryCallable( + listEvaluationResultsTransportSettings, + settings.listEvaluationResultsSettings(), + clientContext); + this.listEvaluationResultsPagedCallable = + callableFactory.createPagedCallable( + listEvaluationResultsTransportSettings, + settings.listEvaluationResultsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getEvaluationCallable() { + return getEvaluationCallable; + } + + @Override + public UnaryCallable listEvaluationsCallable() { + return listEvaluationsCallable; + } + + @Override + public UnaryCallable + listEvaluationsPagedCallable() { + return listEvaluationsPagedCallable; + } + + @Override + public UnaryCallable createEvaluationCallable() { + return createEvaluationCallable; + } + + @Override + public OperationCallable + createEvaluationOperationCallable() { + return createEvaluationOperationCallable; + } + + @Override + public UnaryCallable + listEvaluationResultsCallable() { + return listEvaluationResultsCallable; + } + + @Override + public UnaryCallable + listEvaluationResultsPagedCallable() { + return listEvaluationResultsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSampleQueryServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSampleQueryServiceCallableFactory.java new file mode 100644 index 000000000000..c2c652346434 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSampleQueryServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SampleQueryService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSampleQueryServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSampleQueryServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSampleQueryServiceStub.java new file mode 100644 index 000000000000..afb08da3257d --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSampleQueryServiceStub.java @@ -0,0 +1,372 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import static com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient.ListSampleQueriesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SampleQueryService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSampleQueryServiceStub extends SampleQueryServiceStub { + private static final MethodDescriptor + getSampleQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQueryService/GetSampleQuery") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSampleQueryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SampleQuery.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listSampleQueriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQueryService/ListSampleQueries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSampleQueriesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSampleQueriesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createSampleQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQueryService/CreateSampleQuery") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSampleQueryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SampleQuery.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateSampleQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQueryService/UpdateSampleQuery") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSampleQueryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SampleQuery.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteSampleQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQueryService/DeleteSampleQuery") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteSampleQueryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + importSampleQueriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQueryService/ImportSampleQueries") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportSampleQueriesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable getSampleQueryCallable; + private final UnaryCallable + listSampleQueriesCallable; + private final UnaryCallable + listSampleQueriesPagedCallable; + private final UnaryCallable createSampleQueryCallable; + private final UnaryCallable updateSampleQueryCallable; + private final UnaryCallable deleteSampleQueryCallable; + private final UnaryCallable importSampleQueriesCallable; + private final OperationCallable< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSampleQueryServiceStub create(SampleQueryServiceStubSettings settings) + throws IOException { + return new GrpcSampleQueryServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSampleQueryServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcSampleQueryServiceStub( + SampleQueryServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSampleQueryServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSampleQueryServiceStub( + SampleQueryServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSampleQueryServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcSampleQueryServiceStub( + SampleQueryServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcSampleQueryServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcSampleQueryServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcSampleQueryServiceStub( + SampleQueryServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getSampleQueryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSampleQueryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listSampleQueriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSampleQueriesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createSampleQueryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSampleQueryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateSampleQueryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSampleQueryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "sample_query.name", String.valueOf(request.getSampleQuery().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteSampleQueryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSampleQueryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings importSampleQueriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importSampleQueriesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getSampleQueryCallable = + callableFactory.createUnaryCallable( + getSampleQueryTransportSettings, settings.getSampleQuerySettings(), clientContext); + this.listSampleQueriesCallable = + callableFactory.createUnaryCallable( + listSampleQueriesTransportSettings, + settings.listSampleQueriesSettings(), + clientContext); + this.listSampleQueriesPagedCallable = + callableFactory.createPagedCallable( + listSampleQueriesTransportSettings, + settings.listSampleQueriesSettings(), + clientContext); + this.createSampleQueryCallable = + callableFactory.createUnaryCallable( + createSampleQueryTransportSettings, + settings.createSampleQuerySettings(), + clientContext); + this.updateSampleQueryCallable = + callableFactory.createUnaryCallable( + updateSampleQueryTransportSettings, + settings.updateSampleQuerySettings(), + clientContext); + this.deleteSampleQueryCallable = + callableFactory.createUnaryCallable( + deleteSampleQueryTransportSettings, + settings.deleteSampleQuerySettings(), + clientContext); + this.importSampleQueriesCallable = + callableFactory.createUnaryCallable( + importSampleQueriesTransportSettings, + settings.importSampleQueriesSettings(), + clientContext); + this.importSampleQueriesOperationCallable = + callableFactory.createOperationCallable( + importSampleQueriesTransportSettings, + settings.importSampleQueriesOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getSampleQueryCallable() { + return getSampleQueryCallable; + } + + @Override + public UnaryCallable + listSampleQueriesCallable() { + return listSampleQueriesCallable; + } + + @Override + public UnaryCallable + listSampleQueriesPagedCallable() { + return listSampleQueriesPagedCallable; + } + + @Override + public UnaryCallable createSampleQueryCallable() { + return createSampleQueryCallable; + } + + @Override + public UnaryCallable updateSampleQueryCallable() { + return updateSampleQueryCallable; + } + + @Override + public UnaryCallable deleteSampleQueryCallable() { + return deleteSampleQueryCallable; + } + + @Override + public UnaryCallable importSampleQueriesCallable() { + return importSampleQueriesCallable; + } + + @Override + public OperationCallable< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationCallable() { + return importSampleQueriesOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSampleQuerySetServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSampleQuerySetServiceCallableFactory.java new file mode 100644 index 000000000000..eae222d51571 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSampleQuerySetServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SampleQuerySetService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSampleQuerySetServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSampleQuerySetServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSampleQuerySetServiceStub.java new file mode 100644 index 000000000000..38c5adedf520 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSampleQuerySetServiceStub.java @@ -0,0 +1,326 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import static com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient.ListSampleQuerySetsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest; +import com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SampleQuerySetService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSampleQuerySetServiceStub extends SampleQuerySetServiceStub { + private static final MethodDescriptor + getSampleQuerySetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQuerySetService/GetSampleQuerySet") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSampleQuerySetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SampleQuerySet.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listSampleQuerySetsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQuerySetService/ListSampleQuerySets") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSampleQuerySetsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSampleQuerySetsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createSampleQuerySetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQuerySetService/CreateSampleQuerySet") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSampleQuerySetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SampleQuerySet.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateSampleQuerySetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQuerySetService/UpdateSampleQuerySet") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSampleQuerySetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SampleQuerySet.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteSampleQuerySetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQuerySetService/DeleteSampleQuerySet") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteSampleQuerySetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private final UnaryCallable getSampleQuerySetCallable; + private final UnaryCallable + listSampleQuerySetsCallable; + private final UnaryCallable + listSampleQuerySetsPagedCallable; + private final UnaryCallable + createSampleQuerySetCallable; + private final UnaryCallable + updateSampleQuerySetCallable; + private final UnaryCallable deleteSampleQuerySetCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSampleQuerySetServiceStub create( + SampleQuerySetServiceStubSettings settings) throws IOException { + return new GrpcSampleQuerySetServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSampleQuerySetServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSampleQuerySetServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSampleQuerySetServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcSampleQuerySetServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcSampleQuerySetServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getSampleQuerySetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSampleQuerySetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listSampleQuerySetsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSampleQuerySetsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createSampleQuerySetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSampleQuerySetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateSampleQuerySetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSampleQuerySetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "sample_query_set.name", + String.valueOf(request.getSampleQuerySet().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteSampleQuerySetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSampleQuerySetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.getSampleQuerySetCallable = + callableFactory.createUnaryCallable( + getSampleQuerySetTransportSettings, + settings.getSampleQuerySetSettings(), + clientContext); + this.listSampleQuerySetsCallable = + callableFactory.createUnaryCallable( + listSampleQuerySetsTransportSettings, + settings.listSampleQuerySetsSettings(), + clientContext); + this.listSampleQuerySetsPagedCallable = + callableFactory.createPagedCallable( + listSampleQuerySetsTransportSettings, + settings.listSampleQuerySetsSettings(), + clientContext); + this.createSampleQuerySetCallable = + callableFactory.createUnaryCallable( + createSampleQuerySetTransportSettings, + settings.createSampleQuerySetSettings(), + clientContext); + this.updateSampleQuerySetCallable = + callableFactory.createUnaryCallable( + updateSampleQuerySetTransportSettings, + settings.updateSampleQuerySetSettings(), + clientContext); + this.deleteSampleQuerySetCallable = + callableFactory.createUnaryCallable( + deleteSampleQuerySetTransportSettings, + settings.deleteSampleQuerySetSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getSampleQuerySetCallable() { + return getSampleQuerySetCallable; + } + + @Override + public UnaryCallable + listSampleQuerySetsCallable() { + return listSampleQuerySetsCallable; + } + + @Override + public UnaryCallable + listSampleQuerySetsPagedCallable() { + return listSampleQuerySetsPagedCallable; + } + + @Override + public UnaryCallable createSampleQuerySetCallable() { + return createSampleQuerySetCallable; + } + + @Override + public UnaryCallable updateSampleQuerySetCallable() { + return updateSampleQuerySetCallable; + } + + @Override + public UnaryCallable deleteSampleQuerySetCallable() { + return deleteSampleQuerySetCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceStub.java index f631a6d7f55e..1d3803670743 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceStub.java @@ -30,6 +30,9 @@ import com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata; import com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest; import com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse; import com.google.cloud.discoveryengine.v1beta.UserEvent; import com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest; import com.google.longrunning.Operation; @@ -71,6 +74,17 @@ public class GrpcUserEventServiceStub extends UserEventServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(HttpBody.getDefaultInstance())) .build(); + private static final MethodDescriptor + purgeUserEventsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.UserEventService/PurgeUserEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(PurgeUserEventsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor importUserEventsMethodDescriptor = MethodDescriptor.newBuilder() @@ -84,6 +98,10 @@ public class GrpcUserEventServiceStub extends UserEventServiceStub { private final UnaryCallable writeUserEventCallable; private final UnaryCallable collectUserEventCallable; + private final UnaryCallable purgeUserEventsCallable; + private final OperationCallable< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationCallable; private final UnaryCallable importUserEventsCallable; private final OperationCallable< ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> @@ -153,6 +171,16 @@ protected GrpcUserEventServiceStub( return builder.build(); }) .build(); + GrpcCallSettings purgeUserEventsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(purgeUserEventsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings importUserEventsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(importUserEventsMethodDescriptor) @@ -170,6 +198,15 @@ protected GrpcUserEventServiceStub( this.collectUserEventCallable = callableFactory.createUnaryCallable( collectUserEventTransportSettings, settings.collectUserEventSettings(), clientContext); + this.purgeUserEventsCallable = + callableFactory.createUnaryCallable( + purgeUserEventsTransportSettings, settings.purgeUserEventsSettings(), clientContext); + this.purgeUserEventsOperationCallable = + callableFactory.createOperationCallable( + purgeUserEventsTransportSettings, + settings.purgeUserEventsOperationSettings(), + clientContext, + operationsStub); this.importUserEventsCallable = callableFactory.createUnaryCallable( importUserEventsTransportSettings, settings.importUserEventsSettings(), clientContext); @@ -198,6 +235,17 @@ public UnaryCallable collectUserEventCallable return collectUserEventCallable; } + @Override + public UnaryCallable purgeUserEventsCallable() { + return purgeUserEventsCallable; + } + + @Override + public OperationCallable + purgeUserEventsOperationCallable() { + return purgeUserEventsOperationCallable; + } + @Override public UnaryCallable importUserEventsCallable() { return importUserEventsCallable; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceStub.java index 012a3fb3fd17..c4d7461095c3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceStub.java @@ -35,9 +35,15 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest; import com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse; import com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata; import com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest; import com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse; @@ -63,10 +69,14 @@ public class HttpJsonCompletionServiceStub extends CompletionServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() + .add(ImportCompletionSuggestionsMetadata.getDescriptor()) .add(ImportSuggestionDenyListEntriesMetadata.getDescriptor()) .add(ImportSuggestionDenyListEntriesResponse.getDescriptor()) .add(PurgeSuggestionDenyListEntriesMetadata.getDescriptor()) + .add(PurgeCompletionSuggestionsMetadata.getDescriptor()) + .add(ImportCompletionSuggestionsResponse.getDescriptor()) .add(PurgeSuggestionDenyListEntriesResponse.getDescriptor()) + .add(PurgeCompletionSuggestionsResponse.getDescriptor()) .build(); private static final ApiMethodDescriptor @@ -200,6 +210,92 @@ public class HttpJsonCompletionServiceStub extends CompletionServiceStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + importCompletionSuggestionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.CompletionService/ImportCompletionSuggestions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/completionSuggestions:import", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1beta/{parent=projects/*/locations/*/dataStores/*}/completionSuggestions:import") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ImportCompletionSuggestionsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + purgeCompletionSuggestionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.CompletionService/PurgeCompletionSuggestions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/completionSuggestions:purge", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1beta/{parent=projects/*/locations/*/dataStores/*}/completionSuggestions:purge") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (PurgeCompletionSuggestionsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private final UnaryCallable completeQueryCallable; private final UnaryCallable importSuggestionDenyListEntriesCallable; @@ -215,6 +311,20 @@ public class HttpJsonCompletionServiceStub extends CompletionServiceStub { PurgeSuggestionDenyListEntriesResponse, PurgeSuggestionDenyListEntriesMetadata> purgeSuggestionDenyListEntriesOperationCallable; + private final UnaryCallable + importCompletionSuggestionsCallable; + private final OperationCallable< + ImportCompletionSuggestionsRequest, + ImportCompletionSuggestionsResponse, + ImportCompletionSuggestionsMetadata> + importCompletionSuggestionsOperationCallable; + private final UnaryCallable + purgeCompletionSuggestionsCallable; + private final OperationCallable< + PurgeCompletionSuggestionsRequest, + PurgeCompletionSuggestionsResponse, + PurgeCompletionSuggestionsMetadata> + purgeCompletionSuggestionsOperationCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -335,10 +445,20 @@ protected HttpJsonCompletionServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/operations/*}") @@ -451,6 +571,30 @@ protected HttpJsonCompletionServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + importCompletionSuggestionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importCompletionSuggestionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + purgeCompletionSuggestionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(purgeCompletionSuggestionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.completeQueryCallable = callableFactory.createUnaryCallable( @@ -477,6 +621,28 @@ protected HttpJsonCompletionServiceStub( settings.purgeSuggestionDenyListEntriesOperationSettings(), clientContext, httpJsonOperationsStub); + this.importCompletionSuggestionsCallable = + callableFactory.createUnaryCallable( + importCompletionSuggestionsTransportSettings, + settings.importCompletionSuggestionsSettings(), + clientContext); + this.importCompletionSuggestionsOperationCallable = + callableFactory.createOperationCallable( + importCompletionSuggestionsTransportSettings, + settings.importCompletionSuggestionsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.purgeCompletionSuggestionsCallable = + callableFactory.createUnaryCallable( + purgeCompletionSuggestionsTransportSettings, + settings.purgeCompletionSuggestionsSettings(), + clientContext); + this.purgeCompletionSuggestionsOperationCallable = + callableFactory.createOperationCallable( + purgeCompletionSuggestionsTransportSettings, + settings.purgeCompletionSuggestionsOperationSettings(), + clientContext, + httpJsonOperationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -488,6 +654,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(completeQueryMethodDescriptor); methodDescriptors.add(importSuggestionDenyListEntriesMethodDescriptor); methodDescriptors.add(purgeSuggestionDenyListEntriesMethodDescriptor); + methodDescriptors.add(importCompletionSuggestionsMethodDescriptor); + methodDescriptors.add(purgeCompletionSuggestionsMethodDescriptor); return methodDescriptors; } @@ -530,6 +698,36 @@ public UnaryCallable completeQueryC return purgeSuggestionDenyListEntriesOperationCallable; } + @Override + public UnaryCallable + importCompletionSuggestionsCallable() { + return importCompletionSuggestionsCallable; + } + + @Override + public OperationCallable< + ImportCompletionSuggestionsRequest, + ImportCompletionSuggestionsResponse, + ImportCompletionSuggestionsMetadata> + importCompletionSuggestionsOperationCallable() { + return importCompletionSuggestionsOperationCallable; + } + + @Override + public UnaryCallable + purgeCompletionSuggestionsCallable() { + return purgeCompletionSuggestionsCallable; + } + + @Override + public OperationCallable< + PurgeCompletionSuggestionsRequest, + PurgeCompletionSuggestionsResponse, + PurgeCompletionSuggestionsMetadata> + purgeCompletionSuggestionsOperationCallable() { + return purgeCompletionSuggestionsOperationCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDataStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDataStoreServiceStub.java index 2fac5973219e..baa8df6dae64 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDataStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDataStoreServiceStub.java @@ -104,6 +104,10 @@ public class HttpJsonDataStoreServiceStub extends DataStoreServiceStub { request.getCreateAdvancedSiteSearch()); serializer.putQueryParam( fields, "dataStoreId", request.getDataStoreId()); + serializer.putQueryParam( + fields, + "skipDefaultSchemaCreation", + request.getSkipDefaultSchemaCreation()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -412,10 +416,20 @@ protected HttpJsonDataStoreServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/operations/*}") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java index 582355000417..7d14ea11f4fc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java @@ -495,10 +495,20 @@ protected HttpJsonDocumentServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/operations/*}") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEngineServiceStub.java index 98480258b9af..9850ef1a5ee2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEngineServiceStub.java @@ -516,10 +516,20 @@ protected HttpJsonEngineServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/operations/*}") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEvaluationServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEvaluationServiceCallableFactory.java new file mode 100644 index 000000000000..607d8790b552 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEvaluationServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the EvaluationService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonEvaluationServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEvaluationServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEvaluationServiceStub.java new file mode 100644 index 000000000000..158f2a757934 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEvaluationServiceStub.java @@ -0,0 +1,616 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import static com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient.ListEvaluationResultsPagedResponse; +import static com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient.ListEvaluationsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata; +import com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest; +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the EvaluationService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonEvaluationServiceStub extends EvaluationServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(CreateEvaluationMetadata.getDescriptor()) + .add(Evaluation.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + getEvaluationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.EvaluationService/GetEvaluation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/evaluations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Evaluation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listEvaluationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.EvaluationService/ListEvaluations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/evaluations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListEvaluationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createEvaluationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.EvaluationService/CreateEvaluation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/evaluations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("evaluation", request.getEvaluation(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateEvaluationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListEvaluationResultsRequest, ListEvaluationResultsResponse> + listEvaluationResultsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.EvaluationService/ListEvaluationResults") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{evaluation=projects/*/locations/*/evaluations/*}:listResults", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "evaluation", request.getEvaluation()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListEvaluationResultsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getEvaluationCallable; + private final UnaryCallable + listEvaluationsCallable; + private final UnaryCallable + listEvaluationsPagedCallable; + private final UnaryCallable createEvaluationCallable; + private final OperationCallable + createEvaluationOperationCallable; + private final UnaryCallable + listEvaluationResultsCallable; + private final UnaryCallable + listEvaluationResultsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonEvaluationServiceStub create(EvaluationServiceStubSettings settings) + throws IOException { + return new HttpJsonEvaluationServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonEvaluationServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonEvaluationServiceStub( + EvaluationServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonEvaluationServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonEvaluationServiceStub( + EvaluationServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonEvaluationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonEvaluationServiceStub( + EvaluationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonEvaluationServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonEvaluationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonEvaluationServiceStub( + EvaluationServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel") + .build()) + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings getEvaluationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getEvaluationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listEvaluationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listEvaluationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createEvaluationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createEvaluationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listEvaluationResultsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listEvaluationResultsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("evaluation", String.valueOf(request.getEvaluation())); + return builder.build(); + }) + .build(); + + this.getEvaluationCallable = + callableFactory.createUnaryCallable( + getEvaluationTransportSettings, settings.getEvaluationSettings(), clientContext); + this.listEvaluationsCallable = + callableFactory.createUnaryCallable( + listEvaluationsTransportSettings, settings.listEvaluationsSettings(), clientContext); + this.listEvaluationsPagedCallable = + callableFactory.createPagedCallable( + listEvaluationsTransportSettings, settings.listEvaluationsSettings(), clientContext); + this.createEvaluationCallable = + callableFactory.createUnaryCallable( + createEvaluationTransportSettings, settings.createEvaluationSettings(), clientContext); + this.createEvaluationOperationCallable = + callableFactory.createOperationCallable( + createEvaluationTransportSettings, + settings.createEvaluationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listEvaluationResultsCallable = + callableFactory.createUnaryCallable( + listEvaluationResultsTransportSettings, + settings.listEvaluationResultsSettings(), + clientContext); + this.listEvaluationResultsPagedCallable = + callableFactory.createPagedCallable( + listEvaluationResultsTransportSettings, + settings.listEvaluationResultsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getEvaluationMethodDescriptor); + methodDescriptors.add(listEvaluationsMethodDescriptor); + methodDescriptors.add(createEvaluationMethodDescriptor); + methodDescriptors.add(listEvaluationResultsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable getEvaluationCallable() { + return getEvaluationCallable; + } + + @Override + public UnaryCallable listEvaluationsCallable() { + return listEvaluationsCallable; + } + + @Override + public UnaryCallable + listEvaluationsPagedCallable() { + return listEvaluationsPagedCallable; + } + + @Override + public UnaryCallable createEvaluationCallable() { + return createEvaluationCallable; + } + + @Override + public OperationCallable + createEvaluationOperationCallable() { + return createEvaluationOperationCallable; + } + + @Override + public UnaryCallable + listEvaluationResultsCallable() { + return listEvaluationResultsCallable; + } + + @Override + public UnaryCallable + listEvaluationResultsPagedCallable() { + return listEvaluationResultsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java index d8ff11423a4c..311e035987bd 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java @@ -226,10 +226,20 @@ protected HttpJsonProjectServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/operations/*}") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQueryServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQueryServiceCallableFactory.java new file mode 100644 index 000000000000..aea2301f4f63 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQueryServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SampleQueryService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSampleQueryServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQueryServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQueryServiceStub.java new file mode 100644 index 000000000000..2f391a35c3d8 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQueryServiceStub.java @@ -0,0 +1,736 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import static com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient.ListSampleQueriesPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SampleQueryService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSampleQueryServiceStub extends SampleQueryServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(ImportSampleQueriesMetadata.getDescriptor()) + .add(ImportSampleQueriesResponse.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + getSampleQueryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQueryService/GetSampleQuery") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/sampleQueries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SampleQuery.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSampleQueriesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQueryService/ListSampleQueries") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/sampleQuerySets/*}/sampleQueries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSampleQueriesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createSampleQueryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQueryService/CreateSampleQuery") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/sampleQuerySets/*}/sampleQueries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "sampleQueryId", request.getSampleQueryId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("sampleQuery", request.getSampleQuery(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SampleQuery.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateSampleQueryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQueryService/UpdateSampleQuery") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{sampleQuery.name=projects/*/locations/*/sampleQuerySets/*/sampleQueries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "sampleQuery.name", request.getSampleQuery().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("sampleQuery", request.getSampleQuery(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SampleQuery.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteSampleQueryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQueryService/DeleteSampleQuery") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/sampleQueries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + importSampleQueriesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQueryService/ImportSampleQueries") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/sampleQuerySets/*}/sampleQueries:import", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ImportSampleQueriesRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable getSampleQueryCallable; + private final UnaryCallable + listSampleQueriesCallable; + private final UnaryCallable + listSampleQueriesPagedCallable; + private final UnaryCallable createSampleQueryCallable; + private final UnaryCallable updateSampleQueryCallable; + private final UnaryCallable deleteSampleQueryCallable; + private final UnaryCallable importSampleQueriesCallable; + private final OperationCallable< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSampleQueryServiceStub create(SampleQueryServiceStubSettings settings) + throws IOException { + return new HttpJsonSampleQueryServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSampleQueryServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSampleQueryServiceStub( + SampleQueryServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSampleQueryServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSampleQueryServiceStub( + SampleQueryServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonSampleQueryServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSampleQueryServiceStub( + SampleQueryServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSampleQueryServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSampleQueryServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSampleQueryServiceStub( + SampleQueryServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel") + .build()) + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings getSampleQueryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSampleQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listSampleQueriesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSampleQueriesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createSampleQueryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSampleQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateSampleQueryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSampleQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "sample_query.name", String.valueOf(request.getSampleQuery().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteSampleQueryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSampleQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + importSampleQueriesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importSampleQueriesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getSampleQueryCallable = + callableFactory.createUnaryCallable( + getSampleQueryTransportSettings, settings.getSampleQuerySettings(), clientContext); + this.listSampleQueriesCallable = + callableFactory.createUnaryCallable( + listSampleQueriesTransportSettings, + settings.listSampleQueriesSettings(), + clientContext); + this.listSampleQueriesPagedCallable = + callableFactory.createPagedCallable( + listSampleQueriesTransportSettings, + settings.listSampleQueriesSettings(), + clientContext); + this.createSampleQueryCallable = + callableFactory.createUnaryCallable( + createSampleQueryTransportSettings, + settings.createSampleQuerySettings(), + clientContext); + this.updateSampleQueryCallable = + callableFactory.createUnaryCallable( + updateSampleQueryTransportSettings, + settings.updateSampleQuerySettings(), + clientContext); + this.deleteSampleQueryCallable = + callableFactory.createUnaryCallable( + deleteSampleQueryTransportSettings, + settings.deleteSampleQuerySettings(), + clientContext); + this.importSampleQueriesCallable = + callableFactory.createUnaryCallable( + importSampleQueriesTransportSettings, + settings.importSampleQueriesSettings(), + clientContext); + this.importSampleQueriesOperationCallable = + callableFactory.createOperationCallable( + importSampleQueriesTransportSettings, + settings.importSampleQueriesOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getSampleQueryMethodDescriptor); + methodDescriptors.add(listSampleQueriesMethodDescriptor); + methodDescriptors.add(createSampleQueryMethodDescriptor); + methodDescriptors.add(updateSampleQueryMethodDescriptor); + methodDescriptors.add(deleteSampleQueryMethodDescriptor); + methodDescriptors.add(importSampleQueriesMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable getSampleQueryCallable() { + return getSampleQueryCallable; + } + + @Override + public UnaryCallable + listSampleQueriesCallable() { + return listSampleQueriesCallable; + } + + @Override + public UnaryCallable + listSampleQueriesPagedCallable() { + return listSampleQueriesPagedCallable; + } + + @Override + public UnaryCallable createSampleQueryCallable() { + return createSampleQueryCallable; + } + + @Override + public UnaryCallable updateSampleQueryCallable() { + return updateSampleQueryCallable; + } + + @Override + public UnaryCallable deleteSampleQueryCallable() { + return deleteSampleQueryCallable; + } + + @Override + public UnaryCallable importSampleQueriesCallable() { + return importSampleQueriesCallable; + } + + @Override + public OperationCallable< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationCallable() { + return importSampleQueriesOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQuerySetServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQuerySetServiceCallableFactory.java new file mode 100644 index 000000000000..4813144662b1 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQuerySetServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SampleQuerySetService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSampleQuerySetServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQuerySetServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQuerySetServiceStub.java new file mode 100644 index 000000000000..bc3dc5fa76e8 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQuerySetServiceStub.java @@ -0,0 +1,482 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import static com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient.ListSampleQuerySetsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest; +import com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SampleQuerySetService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSampleQuerySetServiceStub extends SampleQuerySetServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getSampleQuerySetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQuerySetService/GetSampleQuerySet") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SampleQuerySet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSampleQuerySetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQuerySetService/ListSampleQuerySets") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/sampleQuerySets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSampleQuerySetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createSampleQuerySetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQuerySetService/CreateSampleQuerySet") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/sampleQuerySets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "sampleQuerySetId", request.getSampleQuerySetId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("sampleQuerySet", request.getSampleQuerySet(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SampleQuerySet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateSampleQuerySetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQuerySetService/UpdateSampleQuerySet") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{sampleQuerySet.name=projects/*/locations/*/sampleQuerySets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "sampleQuerySet.name", + request.getSampleQuerySet().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("sampleQuerySet", request.getSampleQuerySet(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SampleQuerySet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteSampleQuerySetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SampleQuerySetService/DeleteSampleQuerySet") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getSampleQuerySetCallable; + private final UnaryCallable + listSampleQuerySetsCallable; + private final UnaryCallable + listSampleQuerySetsPagedCallable; + private final UnaryCallable + createSampleQuerySetCallable; + private final UnaryCallable + updateSampleQuerySetCallable; + private final UnaryCallable deleteSampleQuerySetCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSampleQuerySetServiceStub create( + SampleQuerySetServiceStubSettings settings) throws IOException { + return new HttpJsonSampleQuerySetServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSampleQuerySetServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSampleQuerySetServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonSampleQuerySetServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSampleQuerySetServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSampleQuerySetServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSampleQuerySetServiceStub( + SampleQuerySetServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getSampleQuerySetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSampleQuerySetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listSampleQuerySetsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listSampleQuerySetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createSampleQuerySetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSampleQuerySetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateSampleQuerySetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSampleQuerySetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "sample_query_set.name", + String.valueOf(request.getSampleQuerySet().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteSampleQuerySetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSampleQuerySetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.getSampleQuerySetCallable = + callableFactory.createUnaryCallable( + getSampleQuerySetTransportSettings, + settings.getSampleQuerySetSettings(), + clientContext); + this.listSampleQuerySetsCallable = + callableFactory.createUnaryCallable( + listSampleQuerySetsTransportSettings, + settings.listSampleQuerySetsSettings(), + clientContext); + this.listSampleQuerySetsPagedCallable = + callableFactory.createPagedCallable( + listSampleQuerySetsTransportSettings, + settings.listSampleQuerySetsSettings(), + clientContext); + this.createSampleQuerySetCallable = + callableFactory.createUnaryCallable( + createSampleQuerySetTransportSettings, + settings.createSampleQuerySetSettings(), + clientContext); + this.updateSampleQuerySetCallable = + callableFactory.createUnaryCallable( + updateSampleQuerySetTransportSettings, + settings.updateSampleQuerySetSettings(), + clientContext); + this.deleteSampleQuerySetCallable = + callableFactory.createUnaryCallable( + deleteSampleQuerySetTransportSettings, + settings.deleteSampleQuerySetSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getSampleQuerySetMethodDescriptor); + methodDescriptors.add(listSampleQuerySetsMethodDescriptor); + methodDescriptors.add(createSampleQuerySetMethodDescriptor); + methodDescriptors.add(updateSampleQuerySetMethodDescriptor); + methodDescriptors.add(deleteSampleQuerySetMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getSampleQuerySetCallable() { + return getSampleQuerySetCallable; + } + + @Override + public UnaryCallable + listSampleQuerySetsCallable() { + return listSampleQuerySetsCallable; + } + + @Override + public UnaryCallable + listSampleQuerySetsPagedCallable() { + return listSampleQuerySetsPagedCallable; + } + + @Override + public UnaryCallable createSampleQuerySetCallable() { + return createSampleQuerySetCallable; + } + + @Override + public UnaryCallable updateSampleQuerySetCallable() { + return updateSampleQuerySetCallable; + } + + @Override + public UnaryCallable deleteSampleQuerySetCallable() { + return deleteSampleQuerySetCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java index c08855b56c70..7cf727474555 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java @@ -408,10 +408,20 @@ protected HttpJsonSchemaServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/operations/*}") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchTuningServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchTuningServiceStub.java index 4b6b6b19e0fc..802a05829023 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchTuningServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchTuningServiceStub.java @@ -268,10 +268,20 @@ protected HttpJsonSearchTuningServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/operations/*}") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSiteSearchEngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSiteSearchEngineServiceStub.java index 11dc363f2cfb..55f173cd2663 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSiteSearchEngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSiteSearchEngineServiceStub.java @@ -788,10 +788,20 @@ protected HttpJsonSiteSearchEngineServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/operations/*}") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java index 422ce4ed11d5..4c144d379e7a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java @@ -38,6 +38,9 @@ import com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata; import com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest; import com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse; import com.google.cloud.discoveryengine.v1beta.UserEvent; import com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest; import com.google.common.collect.ImmutableMap; @@ -63,7 +66,9 @@ public class HttpJsonUserEventServiceStub extends UserEventServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() .add(ImportUserEventsMetadata.getDescriptor()) + .add(PurgeUserEventsResponse.getDescriptor()) .add(ImportUserEventsResponse.getDescriptor()) + .add(PurgeUserEventsMetadata.getDescriptor()) .build(); private static final ApiMethodDescriptor @@ -127,7 +132,8 @@ public class HttpJsonUserEventServiceStub extends UserEventServiceStub { return fields; }) .setAdditionalPaths( - "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:collect") + "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:collect", + "/v1beta/{parent=projects/*/locations/*}/userEvents:collect") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -152,6 +158,49 @@ public class HttpJsonUserEventServiceStub extends UserEventServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + purgeUserEventsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.UserEventService/PurgeUserEvents") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/dataStores/*}/userEvents:purge", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:purge") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (PurgeUserEventsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor importUserEventsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -197,6 +246,10 @@ public class HttpJsonUserEventServiceStub extends UserEventServiceStub { private final UnaryCallable writeUserEventCallable; private final UnaryCallable collectUserEventCallable; + private final UnaryCallable purgeUserEventsCallable; + private final OperationCallable< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationCallable; private final UnaryCallable importUserEventsCallable; private final OperationCallable< ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> @@ -321,10 +374,20 @@ protected HttpJsonUserEventServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/operations/*}") @@ -423,6 +486,17 @@ protected HttpJsonUserEventServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings purgeUserEventsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(purgeUserEventsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings importUserEventsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(importUserEventsMethodDescriptor) @@ -441,6 +515,15 @@ protected HttpJsonUserEventServiceStub( this.collectUserEventCallable = callableFactory.createUnaryCallable( collectUserEventTransportSettings, settings.collectUserEventSettings(), clientContext); + this.purgeUserEventsCallable = + callableFactory.createUnaryCallable( + purgeUserEventsTransportSettings, settings.purgeUserEventsSettings(), clientContext); + this.purgeUserEventsOperationCallable = + callableFactory.createOperationCallable( + purgeUserEventsTransportSettings, + settings.purgeUserEventsOperationSettings(), + clientContext, + httpJsonOperationsStub); this.importUserEventsCallable = callableFactory.createUnaryCallable( importUserEventsTransportSettings, settings.importUserEventsSettings(), clientContext); @@ -460,6 +543,7 @@ public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(writeUserEventMethodDescriptor); methodDescriptors.add(collectUserEventMethodDescriptor); + methodDescriptors.add(purgeUserEventsMethodDescriptor); methodDescriptors.add(importUserEventsMethodDescriptor); return methodDescriptors; } @@ -478,6 +562,17 @@ public UnaryCallable collectUserEventCallable return collectUserEventCallable; } + @Override + public UnaryCallable purgeUserEventsCallable() { + return purgeUserEventsCallable; + } + + @Override + public OperationCallable + purgeUserEventsOperationCallable() { + return purgeUserEventsOperationCallable; + } + @Override public UnaryCallable importUserEventsCallable() { return importUserEventsCallable; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStubSettings.java index b7fa6c99eb70..22dd0a0459fc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -139,6 +140,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RankServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RankServiceStubSettings.java index f56a70164c81..5c84e6813360 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RankServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RankServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -125,6 +126,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java index 0c51f2ccdf7b..1a7ec1caa62d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -127,6 +128,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStub.java new file mode 100644 index 000000000000..7d6ebcfe57d5 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStub.java @@ -0,0 +1,97 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import static com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient.ListSampleQueriesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SampleQueryService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class SampleQueryServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable getSampleQueryCallable() { + throw new UnsupportedOperationException("Not implemented: getSampleQueryCallable()"); + } + + public UnaryCallable + listSampleQueriesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSampleQueriesPagedCallable()"); + } + + public UnaryCallable + listSampleQueriesCallable() { + throw new UnsupportedOperationException("Not implemented: listSampleQueriesCallable()"); + } + + public UnaryCallable createSampleQueryCallable() { + throw new UnsupportedOperationException("Not implemented: createSampleQueryCallable()"); + } + + public UnaryCallable updateSampleQueryCallable() { + throw new UnsupportedOperationException("Not implemented: updateSampleQueryCallable()"); + } + + public UnaryCallable deleteSampleQueryCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSampleQueryCallable()"); + } + + public OperationCallable< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: importSampleQueriesOperationCallable()"); + } + + public UnaryCallable importSampleQueriesCallable() { + throw new UnsupportedOperationException("Not implemented: importSampleQueriesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStubSettings.java new file mode 100644 index 000000000000..8d60e7f9fef5 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStubSettings.java @@ -0,0 +1,597 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import static com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient.ListSampleQueriesPagedResponse; + +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; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SampleQueryServiceStub}. + * + *

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

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

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

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

      {@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
      + * SampleQueryServiceStubSettings.Builder sampleQueryServiceSettingsBuilder =
      + *     SampleQueryServiceStubSettings.newBuilder();
      + * sampleQueryServiceSettingsBuilder
      + *     .getSampleQuerySettings()
      + *     .setRetrySettings(
      + *         sampleQueryServiceSettingsBuilder
      + *             .getSampleQuerySettings()
      + *             .getRetrySettings()
      + *             .toBuilder()
      + *             .setTotalTimeout(Duration.ofSeconds(30))
      + *             .build());
      + * SampleQueryServiceStubSettings sampleQueryServiceSettings =
      + *     sampleQueryServiceSettingsBuilder.build();
      + * }
      + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SampleQueryServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings getSampleQuerySettings; + private final PagedCallSettings< + ListSampleQueriesRequest, ListSampleQueriesResponse, ListSampleQueriesPagedResponse> + listSampleQueriesSettings; + private final UnaryCallSettings createSampleQuerySettings; + private final UnaryCallSettings updateSampleQuerySettings; + private final UnaryCallSettings deleteSampleQuerySettings; + private final UnaryCallSettings + importSampleQueriesSettings; + private final OperationCallSettings< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationSettings; + + private static final PagedListDescriptor< + ListSampleQueriesRequest, ListSampleQueriesResponse, SampleQuery> + LIST_SAMPLE_QUERIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListSampleQueriesRequest, ListSampleQueriesResponse, SampleQuery>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSampleQueriesRequest injectToken( + ListSampleQueriesRequest payload, String token) { + return ListSampleQueriesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSampleQueriesRequest injectPageSize( + ListSampleQueriesRequest payload, int pageSize) { + return ListSampleQueriesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSampleQueriesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSampleQueriesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSampleQueriesResponse payload) { + return payload.getSampleQueriesList() == null + ? ImmutableList.of() + : payload.getSampleQueriesList(); + } + }; + + private static final PagedListResponseFactory< + ListSampleQueriesRequest, ListSampleQueriesResponse, ListSampleQueriesPagedResponse> + LIST_SAMPLE_QUERIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSampleQueriesRequest, + ListSampleQueriesResponse, + ListSampleQueriesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSampleQueriesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_SAMPLE_QUERIES_PAGE_STR_DESC, request, context); + return ListSampleQueriesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getSampleQuery. */ + public UnaryCallSettings getSampleQuerySettings() { + return getSampleQuerySettings; + } + + /** Returns the object with the settings used for calls to listSampleQueries. */ + public PagedCallSettings< + ListSampleQueriesRequest, ListSampleQueriesResponse, ListSampleQueriesPagedResponse> + listSampleQueriesSettings() { + return listSampleQueriesSettings; + } + + /** Returns the object with the settings used for calls to createSampleQuery. */ + public UnaryCallSettings createSampleQuerySettings() { + return createSampleQuerySettings; + } + + /** Returns the object with the settings used for calls to updateSampleQuery. */ + public UnaryCallSettings updateSampleQuerySettings() { + return updateSampleQuerySettings; + } + + /** Returns the object with the settings used for calls to deleteSampleQuery. */ + public UnaryCallSettings deleteSampleQuerySettings() { + return deleteSampleQuerySettings; + } + + /** Returns the object with the settings used for calls to importSampleQueries. */ + public UnaryCallSettings importSampleQueriesSettings() { + return importSampleQueriesSettings; + } + + /** Returns the object with the settings used for calls to importSampleQueries. */ + public OperationCallSettings< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationSettings() { + return importSampleQueriesOperationSettings; + } + + public SampleQueryServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSampleQueryServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSampleQueryServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SampleQueryServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SampleQueryServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SampleQueryServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SampleQueryServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getSampleQuerySettings = settingsBuilder.getSampleQuerySettings().build(); + listSampleQueriesSettings = settingsBuilder.listSampleQueriesSettings().build(); + createSampleQuerySettings = settingsBuilder.createSampleQuerySettings().build(); + updateSampleQuerySettings = settingsBuilder.updateSampleQuerySettings().build(); + deleteSampleQuerySettings = settingsBuilder.deleteSampleQuerySettings().build(); + importSampleQueriesSettings = settingsBuilder.importSampleQueriesSettings().build(); + importSampleQueriesOperationSettings = + settingsBuilder.importSampleQueriesOperationSettings().build(); + } + + /** Builder for SampleQueryServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getSampleQuerySettings; + private final PagedCallSettings.Builder< + ListSampleQueriesRequest, ListSampleQueriesResponse, ListSampleQueriesPagedResponse> + listSampleQueriesSettings; + private final UnaryCallSettings.Builder + createSampleQuerySettings; + private final UnaryCallSettings.Builder + updateSampleQuerySettings; + private final UnaryCallSettings.Builder + deleteSampleQuerySettings; + private final UnaryCallSettings.Builder + importSampleQueriesSettings; + private final OperationCallSettings.Builder< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(30000L)) + .setTotalTimeout(Duration.ofMillis(30000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getSampleQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSampleQueriesSettings = PagedCallSettings.newBuilder(LIST_SAMPLE_QUERIES_PAGE_STR_FACT); + createSampleQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSampleQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSampleQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importSampleQueriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importSampleQueriesOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getSampleQuerySettings, + listSampleQueriesSettings, + createSampleQuerySettings, + updateSampleQuerySettings, + deleteSampleQuerySettings, + importSampleQueriesSettings); + initDefaults(this); + } + + protected Builder(SampleQueryServiceStubSettings settings) { + super(settings); + + getSampleQuerySettings = settings.getSampleQuerySettings.toBuilder(); + listSampleQueriesSettings = settings.listSampleQueriesSettings.toBuilder(); + createSampleQuerySettings = settings.createSampleQuerySettings.toBuilder(); + updateSampleQuerySettings = settings.updateSampleQuerySettings.toBuilder(); + deleteSampleQuerySettings = settings.deleteSampleQuerySettings.toBuilder(); + importSampleQueriesSettings = settings.importSampleQueriesSettings.toBuilder(); + importSampleQueriesOperationSettings = + settings.importSampleQueriesOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getSampleQuerySettings, + listSampleQueriesSettings, + createSampleQuerySettings, + updateSampleQuerySettings, + deleteSampleQuerySettings, + importSampleQueriesSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getSampleQuerySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listSampleQueriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .createSampleQuerySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .updateSampleQuerySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .deleteSampleQuerySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .importSampleQueriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .importSampleQueriesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + ImportSampleQueriesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + ImportSampleQueriesMetadata.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; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getSampleQuery. */ + public UnaryCallSettings.Builder getSampleQuerySettings() { + return getSampleQuerySettings; + } + + /** Returns the builder for the settings used for calls to listSampleQueries. */ + public PagedCallSettings.Builder< + ListSampleQueriesRequest, ListSampleQueriesResponse, ListSampleQueriesPagedResponse> + listSampleQueriesSettings() { + return listSampleQueriesSettings; + } + + /** Returns the builder for the settings used for calls to createSampleQuery. */ + public UnaryCallSettings.Builder + createSampleQuerySettings() { + return createSampleQuerySettings; + } + + /** Returns the builder for the settings used for calls to updateSampleQuery. */ + public UnaryCallSettings.Builder + updateSampleQuerySettings() { + return updateSampleQuerySettings; + } + + /** Returns the builder for the settings used for calls to deleteSampleQuery. */ + public UnaryCallSettings.Builder deleteSampleQuerySettings() { + return deleteSampleQuerySettings; + } + + /** Returns the builder for the settings used for calls to importSampleQueries. */ + public UnaryCallSettings.Builder + importSampleQueriesSettings() { + return importSampleQueriesSettings; + } + + /** Returns the builder for the settings used for calls to importSampleQueries. */ + public OperationCallSettings.Builder< + ImportSampleQueriesRequest, ImportSampleQueriesResponse, ImportSampleQueriesMetadata> + importSampleQueriesOperationSettings() { + return importSampleQueriesOperationSettings; + } + + @Override + public SampleQueryServiceStubSettings build() throws IOException { + return new SampleQueryServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQuerySetServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQuerySetServiceStub.java new file mode 100644 index 000000000000..6afb6a216559 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQuerySetServiceStub.java @@ -0,0 +1,72 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import static com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient.ListSampleQuerySetsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest; +import com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SampleQuerySetService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class SampleQuerySetServiceStub implements BackgroundResource { + + public UnaryCallable getSampleQuerySetCallable() { + throw new UnsupportedOperationException("Not implemented: getSampleQuerySetCallable()"); + } + + public UnaryCallable + listSampleQuerySetsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSampleQuerySetsPagedCallable()"); + } + + public UnaryCallable + listSampleQuerySetsCallable() { + throw new UnsupportedOperationException("Not implemented: listSampleQuerySetsCallable()"); + } + + public UnaryCallable createSampleQuerySetCallable() { + throw new UnsupportedOperationException("Not implemented: createSampleQuerySetCallable()"); + } + + public UnaryCallable updateSampleQuerySetCallable() { + throw new UnsupportedOperationException("Not implemented: updateSampleQuerySetCallable()"); + } + + public UnaryCallable deleteSampleQuerySetCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSampleQuerySetCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQuerySetServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQuerySetServiceStubSettings.java new file mode 100644 index 000000000000..cdf350b0973e --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQuerySetServiceStubSettings.java @@ -0,0 +1,526 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import static com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient.ListSampleQuerySetsPagedResponse; + +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; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest; +import com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SampleQuerySetServiceStub}. + * + *

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

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

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

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

      {@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
      + * SampleQuerySetServiceStubSettings.Builder sampleQuerySetServiceSettingsBuilder =
      + *     SampleQuerySetServiceStubSettings.newBuilder();
      + * sampleQuerySetServiceSettingsBuilder
      + *     .getSampleQuerySetSettings()
      + *     .setRetrySettings(
      + *         sampleQuerySetServiceSettingsBuilder
      + *             .getSampleQuerySetSettings()
      + *             .getRetrySettings()
      + *             .toBuilder()
      + *             .setTotalTimeout(Duration.ofSeconds(30))
      + *             .build());
      + * SampleQuerySetServiceStubSettings sampleQuerySetServiceSettings =
      + *     sampleQuerySetServiceSettingsBuilder.build();
      + * }
      + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SampleQuerySetServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + getSampleQuerySetSettings; + private final PagedCallSettings< + ListSampleQuerySetsRequest, ListSampleQuerySetsResponse, ListSampleQuerySetsPagedResponse> + listSampleQuerySetsSettings; + private final UnaryCallSettings + createSampleQuerySetSettings; + private final UnaryCallSettings + updateSampleQuerySetSettings; + private final UnaryCallSettings deleteSampleQuerySetSettings; + + private static final PagedListDescriptor< + ListSampleQuerySetsRequest, ListSampleQuerySetsResponse, SampleQuerySet> + LIST_SAMPLE_QUERY_SETS_PAGE_STR_DESC = + new PagedListDescriptor< + ListSampleQuerySetsRequest, ListSampleQuerySetsResponse, SampleQuerySet>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSampleQuerySetsRequest injectToken( + ListSampleQuerySetsRequest payload, String token) { + return ListSampleQuerySetsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSampleQuerySetsRequest injectPageSize( + ListSampleQuerySetsRequest payload, int pageSize) { + return ListSampleQuerySetsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSampleQuerySetsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSampleQuerySetsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSampleQuerySetsResponse payload) { + return payload.getSampleQuerySetsList() == null + ? ImmutableList.of() + : payload.getSampleQuerySetsList(); + } + }; + + private static final PagedListResponseFactory< + ListSampleQuerySetsRequest, ListSampleQuerySetsResponse, ListSampleQuerySetsPagedResponse> + LIST_SAMPLE_QUERY_SETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSampleQuerySetsRequest, + ListSampleQuerySetsResponse, + ListSampleQuerySetsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSampleQuerySetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_SAMPLE_QUERY_SETS_PAGE_STR_DESC, request, context); + return ListSampleQuerySetsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getSampleQuerySet. */ + public UnaryCallSettings getSampleQuerySetSettings() { + return getSampleQuerySetSettings; + } + + /** Returns the object with the settings used for calls to listSampleQuerySets. */ + public PagedCallSettings< + ListSampleQuerySetsRequest, ListSampleQuerySetsResponse, ListSampleQuerySetsPagedResponse> + listSampleQuerySetsSettings() { + return listSampleQuerySetsSettings; + } + + /** Returns the object with the settings used for calls to createSampleQuerySet. */ + public UnaryCallSettings + createSampleQuerySetSettings() { + return createSampleQuerySetSettings; + } + + /** Returns the object with the settings used for calls to updateSampleQuerySet. */ + public UnaryCallSettings + updateSampleQuerySetSettings() { + return updateSampleQuerySetSettings; + } + + /** Returns the object with the settings used for calls to deleteSampleQuerySet. */ + public UnaryCallSettings deleteSampleQuerySetSettings() { + return deleteSampleQuerySetSettings; + } + + public SampleQuerySetServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSampleQuerySetServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSampleQuerySetServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SampleQuerySetServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SampleQuerySetServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SampleQuerySetServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SampleQuerySetServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getSampleQuerySetSettings = settingsBuilder.getSampleQuerySetSettings().build(); + listSampleQuerySetsSettings = settingsBuilder.listSampleQuerySetsSettings().build(); + createSampleQuerySetSettings = settingsBuilder.createSampleQuerySetSettings().build(); + updateSampleQuerySetSettings = settingsBuilder.updateSampleQuerySetSettings().build(); + deleteSampleQuerySetSettings = settingsBuilder.deleteSampleQuerySetSettings().build(); + } + + /** Builder for SampleQuerySetServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getSampleQuerySetSettings; + private final PagedCallSettings.Builder< + ListSampleQuerySetsRequest, + ListSampleQuerySetsResponse, + ListSampleQuerySetsPagedResponse> + listSampleQuerySetsSettings; + private final UnaryCallSettings.Builder + createSampleQuerySetSettings; + private final UnaryCallSettings.Builder + updateSampleQuerySetSettings; + private final UnaryCallSettings.Builder + deleteSampleQuerySetSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(30000L)) + .setTotalTimeout(Duration.ofMillis(30000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getSampleQuerySetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSampleQuerySetsSettings = + PagedCallSettings.newBuilder(LIST_SAMPLE_QUERY_SETS_PAGE_STR_FACT); + createSampleQuerySetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSampleQuerySetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSampleQuerySetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getSampleQuerySetSettings, + listSampleQuerySetsSettings, + createSampleQuerySetSettings, + updateSampleQuerySetSettings, + deleteSampleQuerySetSettings); + initDefaults(this); + } + + protected Builder(SampleQuerySetServiceStubSettings settings) { + super(settings); + + getSampleQuerySetSettings = settings.getSampleQuerySetSettings.toBuilder(); + listSampleQuerySetsSettings = settings.listSampleQuerySetsSettings.toBuilder(); + createSampleQuerySetSettings = settings.createSampleQuerySetSettings.toBuilder(); + updateSampleQuerySetSettings = settings.updateSampleQuerySetSettings.toBuilder(); + deleteSampleQuerySetSettings = settings.deleteSampleQuerySetSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getSampleQuerySetSettings, + listSampleQuerySetsSettings, + createSampleQuerySetSettings, + updateSampleQuerySetSettings, + deleteSampleQuerySetSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getSampleQuerySetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listSampleQuerySetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .createSampleQuerySetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .updateSampleQuerySetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .deleteSampleQuerySetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getSampleQuerySet. */ + public UnaryCallSettings.Builder + getSampleQuerySetSettings() { + return getSampleQuerySetSettings; + } + + /** Returns the builder for the settings used for calls to listSampleQuerySets. */ + public PagedCallSettings.Builder< + ListSampleQuerySetsRequest, + ListSampleQuerySetsResponse, + ListSampleQuerySetsPagedResponse> + listSampleQuerySetsSettings() { + return listSampleQuerySetsSettings; + } + + /** Returns the builder for the settings used for calls to createSampleQuerySet. */ + public UnaryCallSettings.Builder + createSampleQuerySetSettings() { + return createSampleQuerySetSettings; + } + + /** Returns the builder for the settings used for calls to updateSampleQuerySet. */ + public UnaryCallSettings.Builder + updateSampleQuerySetSettings() { + return updateSampleQuerySetSettings; + } + + /** Returns the builder for the settings used for calls to deleteSampleQuerySet. */ + public UnaryCallSettings.Builder + deleteSampleQuerySetSettings() { + return deleteSampleQuerySetSettings; + } + + @Override + public SampleQuerySetServiceStubSettings build() throws IOException { + return new SampleQuerySetServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java index 232fcd99eb32..8353b2428248 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.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; @@ -251,6 +252,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java index f8af97eaa564..ef8d02537545 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.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; @@ -187,6 +188,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java index 02f7f37fc6a4..c2607e9585ef 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -152,6 +153,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStubSettings.java index 4d77132a1ae6..6128c1bdc4ce 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStubSettings.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; @@ -217,6 +218,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStubSettings.java index 316357f3fa76..0999159bf741 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStubSettings.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; @@ -481,6 +482,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStub.java index 5c103c9ad1cb..42e82ef9133a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStub.java @@ -25,6 +25,9 @@ import com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata; import com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest; import com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse; import com.google.cloud.discoveryengine.v1beta.UserEvent; import com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest; import com.google.longrunning.Operation; @@ -57,6 +60,15 @@ public UnaryCallable collectUserEventCallable throw new UnsupportedOperationException("Not implemented: collectUserEventCallable()"); } + public OperationCallable + purgeUserEventsOperationCallable() { + throw new UnsupportedOperationException("Not implemented: purgeUserEventsOperationCallable()"); + } + + public UnaryCallable purgeUserEventsCallable() { + throw new UnsupportedOperationException("Not implemented: purgeUserEventsCallable()"); + } + public OperationCallable< ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> importUserEventsOperationCallable() { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java index 96b9f2fd696d..b26ba4a117bf 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java @@ -19,6 +19,7 @@ import com.google.api.HttpBody; import com.google.api.core.ApiFunction; 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; @@ -43,6 +44,9 @@ import com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata; import com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest; import com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse; import com.google.cloud.discoveryengine.v1beta.UserEvent; import com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest; import com.google.common.collect.ImmutableList; @@ -102,6 +106,10 @@ public class UserEventServiceStubSettings extends StubSettings writeUserEventSettings; private final UnaryCallSettings collectUserEventSettings; + private final UnaryCallSettings purgeUserEventsSettings; + private final OperationCallSettings< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationSettings; private final UnaryCallSettings importUserEventsSettings; private final OperationCallSettings< ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> @@ -117,6 +125,18 @@ public UnaryCallSettings collectUserEventSett return collectUserEventSettings; } + /** Returns the object with the settings used for calls to purgeUserEvents. */ + public UnaryCallSettings purgeUserEventsSettings() { + return purgeUserEventsSettings; + } + + /** Returns the object with the settings used for calls to purgeUserEvents. */ + public OperationCallSettings< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationSettings() { + return purgeUserEventsOperationSettings; + } + /** Returns the object with the settings used for calls to importUserEvents. */ public UnaryCallSettings importUserEventsSettings() { return importUserEventsSettings; @@ -157,6 +177,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "discoveryengine.googleapis.com:443"; } @@ -241,6 +262,8 @@ protected UserEventServiceStubSettings(Builder settingsBuilder) throws IOExcepti writeUserEventSettings = settingsBuilder.writeUserEventSettings().build(); collectUserEventSettings = settingsBuilder.collectUserEventSettings().build(); + purgeUserEventsSettings = settingsBuilder.purgeUserEventsSettings().build(); + purgeUserEventsOperationSettings = settingsBuilder.purgeUserEventsOperationSettings().build(); importUserEventsSettings = settingsBuilder.importUserEventsSettings().build(); importUserEventsOperationSettings = settingsBuilder.importUserEventsOperationSettings().build(); } @@ -252,6 +275,11 @@ public static class Builder extends StubSettings.Builder collectUserEventSettings; + private final UnaryCallSettings.Builder + purgeUserEventsSettings; + private final OperationCallSettings.Builder< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationSettings; private final UnaryCallSettings.Builder importUserEventsSettings; private final OperationCallSettings.Builder< @@ -311,12 +339,17 @@ protected Builder(ClientContext clientContext) { writeUserEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); collectUserEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + purgeUserEventsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + purgeUserEventsOperationSettings = OperationCallSettings.newBuilder(); importUserEventsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); importUserEventsOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - writeUserEventSettings, collectUserEventSettings, importUserEventsSettings); + writeUserEventSettings, + collectUserEventSettings, + purgeUserEventsSettings, + importUserEventsSettings); initDefaults(this); } @@ -325,12 +358,17 @@ protected Builder(UserEventServiceStubSettings settings) { writeUserEventSettings = settings.writeUserEventSettings.toBuilder(); collectUserEventSettings = settings.collectUserEventSettings.toBuilder(); + purgeUserEventsSettings = settings.purgeUserEventsSettings.toBuilder(); + purgeUserEventsOperationSettings = settings.purgeUserEventsOperationSettings.toBuilder(); importUserEventsSettings = settings.importUserEventsSettings.toBuilder(); importUserEventsOperationSettings = settings.importUserEventsOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - writeUserEventSettings, collectUserEventSettings, importUserEventsSettings); + writeUserEventSettings, + collectUserEventSettings, + purgeUserEventsSettings, + importUserEventsSettings); } private static Builder createDefault() { @@ -368,11 +406,40 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder + .purgeUserEventsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder .importUserEventsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + builder + .purgeUserEventsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(PurgeUserEventsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(PurgeUserEventsMetadata.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 .importUserEventsOperationSettings() .setInitialCallSettings( @@ -425,6 +492,18 @@ public UnaryCallSettings.Builder collectUserE return collectUserEventSettings; } + /** Returns the builder for the settings used for calls to purgeUserEvents. */ + public UnaryCallSettings.Builder purgeUserEventsSettings() { + return purgeUserEventsSettings; + } + + /** Returns the builder for the settings used for calls to purgeUserEvents. */ + public OperationCallSettings.Builder< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationSettings() { + return purgeUserEventsOperationSettings; + } + /** Returns the builder for the settings used for calls to importUserEvents. */ public UnaryCallSettings.Builder importUserEventsSettings() { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json index 0045daea96e7..aa367bd40a15 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json @@ -1943,6 +1943,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata", "queryAllDeclaredConstructors": true, @@ -2249,6 +2321,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata", "queryAllDeclaredConstructors": true, @@ -3014,6 +3122,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Evaluation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Evaluation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Evaluation$EvaluationSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Evaluation$EvaluationSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Evaluation$EvaluationSpec$QuerySetSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Evaluation$EvaluationSpec$QuerySetSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Evaluation$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.FactChunk", "queryAllDeclaredConstructors": true, @@ -3374,6 +3545,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.GetProcessedDocumentRequest", "queryAllDeclaredConstructors": true, @@ -3429,7 +3618,277 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetSessionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetSessionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetSiteSearchEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetSiteSearchEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetTargetSiteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetTargetSiteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GroundingFact", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GroundingFact$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig$ExternalIdpConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig$ExternalIdpConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig$IdpType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$ReconciliationMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3438,7 +3897,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3447,7 +3906,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3456,7 +3915,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3465,7 +3924,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetSessionRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3474,7 +3933,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetSessionRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3483,7 +3942,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetSiteSearchEngineRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3492,7 +3951,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetSiteSearchEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3501,7 +3960,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetTargetSiteRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3510,7 +3969,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetTargetSiteRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3519,7 +3978,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GroundingFact", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3528,7 +3987,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GroundingFact$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3537,7 +3996,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3546,7 +4005,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3555,7 +4014,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3564,7 +4023,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3573,7 +4032,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig$ExternalIdpConfig", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3582,7 +4041,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig$ExternalIdpConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3591,7 +4050,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig$IdpType", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3600,7 +4059,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3609,7 +4068,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3618,7 +4077,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3627,7 +4086,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3636,7 +4095,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3645,7 +4104,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3654,7 +4113,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$ReconciliationMode", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3663,7 +4122,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3672,7 +4131,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3681,7 +4140,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig", + "name": "com.google.cloud.discoveryengine.v1alpha.IndustryVertical", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3690,7 +4149,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.Interval", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3699,7 +4158,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata", + "name": "com.google.cloud.discoveryengine.v1alpha.Interval$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3708,7 +4167,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListChunksRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3717,7 +4176,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ListChunksRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3726,7 +4185,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListChunksResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3735,7 +4194,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1alpha.ListChunksResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3744,7 +4203,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListControlsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3753,7 +4212,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ListControlsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3762,7 +4221,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListControlsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3771,7 +4230,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata", + "name": "com.google.cloud.discoveryengine.v1alpha.ListControlsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3780,7 +4239,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3789,7 +4248,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3798,7 +4257,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3807,7 +4266,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3816,7 +4275,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListCustomModelsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3825,7 +4284,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ListCustomModelsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3834,7 +4293,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListCustomModelsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3843,7 +4302,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.IndustryVertical", + "name": "com.google.cloud.discoveryengine.v1alpha.ListCustomModelsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3852,7 +4311,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.Interval", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3861,7 +4320,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.Interval$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3870,7 +4329,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListChunksRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3879,7 +4338,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListChunksRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3888,7 +4347,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListChunksResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3897,7 +4356,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListChunksResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3906,7 +4365,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListControlsRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3915,7 +4374,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListControlsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3924,7 +4383,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListControlsResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3933,7 +4392,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListControlsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3942,7 +4401,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3951,7 +4410,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3960,7 +4419,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3969,7 +4428,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3978,7 +4437,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListCustomModelsRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3987,7 +4446,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListCustomModelsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3996,7 +4455,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListCustomModelsResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse$EvaluationResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4005,7 +4464,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListCustomModelsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse$EvaluationResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4014,7 +4473,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4023,7 +4482,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4032,7 +4491,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4041,7 +4500,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4050,7 +4509,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4059,7 +4518,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4068,7 +4527,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4077,7 +4536,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4086,7 +4545,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4095,7 +4554,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4104,7 +4563,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4113,7 +4572,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4634,6 +5093,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.QualityMetrics", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.QualityMetrics$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.QualityMetrics$TopkMetrics", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.QualityMetrics$TopkMetrics$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.Query", "queryAllDeclaredConstructors": true, @@ -4940,6 +5435,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SampleQuery", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SampleQuery$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SampleQuery$QueryEntry", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SampleQuery$QueryEntry$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SampleQuery$QueryEntry$Target", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SampleQuery$QueryEntry$Target$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SampleQuerySet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SampleQuerySet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.Schema", "queryAllDeclaredConstructors": true, @@ -6263,6 +6830,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata", "queryAllDeclaredConstructors": true, diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json index 7e2ff7b5b8ab..45951121643a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.AlloyDbSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.AlloyDbSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.Answer", "queryAllDeclaredConstructors": true, @@ -1376,6 +1394,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Chunk", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$ChunkMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$ChunkMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$DocumentMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$DocumentMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$PageSpan", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$PageSpan$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.CloudSqlSource", "queryAllDeclaredConstructors": true, @@ -1484,6 +1574,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.CompletionSuggestion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.CompletionSuggestion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.Condition", "queryAllDeclaredConstructors": true, @@ -1853,6 +1961,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata", "queryAllDeclaredConstructors": true, @@ -2141,6 +2321,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata", "queryAllDeclaredConstructors": true, @@ -2357,6 +2573,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ChunkingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ChunkingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ChunkingConfig$LayoutBasedChunkingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ChunkingConfig$LayoutBasedChunkingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig", "queryAllDeclaredConstructors": true, @@ -2393,6 +2645,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$LayoutParsingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$LayoutParsingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$OcrParsingConfig", "queryAllDeclaredConstructors": true, @@ -2610,7 +2880,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FactChunk", + "name": "com.google.cloud.discoveryengine.v1beta.Evaluation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2619,7 +2889,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FactChunk$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2628,7 +2898,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$EvaluationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2637,7 +2907,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$EvaluationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2646,7 +2916,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusResponse", + "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$EvaluationSpec$QuerySetSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2655,7 +2925,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$EvaluationSpec$QuerySetSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2664,7 +2934,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FhirStoreSource", + "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2673,7 +2943,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FhirStoreSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.FactChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2682,7 +2952,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FirestoreSource", + "name": "com.google.cloud.discoveryengine.v1beta.FactChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2691,7 +2961,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FirestoreSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2700,7 +2970,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GcsSource", + "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2709,7 +2979,70 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GcsSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.FhirStoreSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.FhirStoreSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.FirestoreSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.FirestoreSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GcsSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GcsSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2825,6 +3158,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.GetSchemaRequest", "queryAllDeclaredConstructors": true, @@ -2934,7 +3321,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2943,7 +3330,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2952,7 +3339,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2961,7 +3348,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2970,7 +3357,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2979,7 +3366,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2988,7 +3375,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$ReconciliationMode", + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2997,7 +3384,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3006,7 +3393,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3015,7 +3402,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportErrorConfig", + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3024,7 +3411,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportErrorConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3033,7 +3420,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3042,7 +3429,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3051,7 +3438,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest", + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3060,7 +3447,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$ReconciliationMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3069,7 +3456,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3078,7 +3465,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3087,7 +3474,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse", + "name": "com.google.cloud.discoveryengine.v1beta.ImportErrorConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3096,7 +3483,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportErrorConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3105,7 +3492,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3114,7 +3501,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3123,7 +3510,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3132,7 +3519,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3141,7 +3528,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3150,7 +3537,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3159,7 +3546,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3168,7 +3555,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3177,7 +3564,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.IndustryVertical", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3186,7 +3573,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Interval", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3195,7 +3582,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Interval$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3204,7 +3591,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListControlsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3213,7 +3600,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListControlsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3222,7 +3609,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListControlsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3231,7 +3618,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListControlsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3240,7 +3627,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3249,7 +3636,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3258,7 +3645,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3267,7 +3654,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3276,7 +3663,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3285,7 +3672,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3294,7 +3681,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3303,7 +3690,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3312,7 +3699,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresRequest", + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3321,7 +3708,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.IndustryVertical", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3330,7 +3717,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresResponse", + "name": "com.google.cloud.discoveryengine.v1beta.Interval", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3339,7 +3726,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Interval$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3348,7 +3735,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.LanguageInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3357,7 +3744,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.LanguageInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3366,7 +3753,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.ListControlsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3375,7 +3762,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ListControlsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3384,7 +3771,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesRequest", + "name": "com.google.cloud.discoveryengine.v1beta.ListControlsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3393,7 +3780,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ListControlsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3402,7 +3789,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesResponse", + "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3411,7 +3798,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3420,7 +3807,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasRequest", + "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3429,7 +3816,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3438,7 +3825,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasResponse", + "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3447,7 +3834,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3456,7 +3843,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3465,7 +3852,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3474,7 +3861,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3483,7 +3870,817 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse$EvaluationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse$EvaluationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.MediaInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.MediaInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PageInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PageInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PanelInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PanelInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PauseEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PauseEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$ServiceTerms", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$ServiceTerms$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$ServiceTerms$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.QualityMetrics", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.QualityMetrics$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.QualityMetrics$TopkMetrics", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.QualityMetrics$TopkMetrics$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Query", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3492,7 +4689,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Query$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3501,7 +4698,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.RankRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3510,7 +4707,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.RankRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3519,7 +4716,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.RankResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3528,7 +4725,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesRequest", + "name": "com.google.cloud.discoveryengine.v1beta.RankResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3537,7 +4734,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.RankingRecord", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3546,7 +4743,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesResponse", + "name": "com.google.cloud.discoveryengine.v1beta.RankingRecord$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3555,7 +4752,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.RecommendRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3564,7 +4761,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.MediaInfo", + "name": "com.google.cloud.discoveryengine.v1beta.RecommendRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3573,7 +4770,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.MediaInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3582,7 +4779,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PageInfo", + "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3591,7 +4788,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PageInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse$RecommendationResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3600,7 +4797,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PanelInfo", + "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse$RecommendationResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3609,7 +4806,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PanelInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3618,7 +4815,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PauseEngineRequest", + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3627,7 +4824,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PauseEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3636,7 +4833,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Project", + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3645,7 +4842,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Project$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3654,7 +4851,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Project$ServiceTerms", + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3663,7 +4860,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Project$ServiceTerms$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3672,7 +4869,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Project$ServiceTerms$State", + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3681,7 +4878,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$FailureReason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3690,7 +4887,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$FailureReason$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3699,7 +4896,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest", + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$FailureReason$CorpusType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3708,7 +4905,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Reply", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3717,7 +4914,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.Reply$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3726,7 +4923,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Reply$Reference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3735,7 +4932,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Reply$Reference$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3744,7 +4941,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ResumeEngineRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3753,7 +4950,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.ResumeEngineRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3762,7 +4959,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3771,7 +4968,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3780,7 +4977,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$QueryEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3789,7 +4986,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest", + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$QueryEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3798,7 +4995,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$QueryEntry$Target", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3807,7 +5004,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse", + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$QueryEntry$Target$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3816,7 +5013,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuerySet", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3825,7 +5022,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Query", + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuerySet$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3834,7 +5031,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Query$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Schema", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3843,7 +5040,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RankRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Schema$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3852,7 +5049,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RankRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchAddOn", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3861,7 +5058,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RankResponse", + "name": "com.google.cloud.discoveryengine.v1beta.SearchInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3870,7 +5067,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RankResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3879,7 +5076,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RankingRecord", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3888,7 +5085,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RankingRecord$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3897,7 +5094,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecommendRequest", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3906,7 +5103,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecommendRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3915,7 +5112,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3924,7 +5121,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$AttributeType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3933,7 +5130,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse$RecommendationResult", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3942,7 +5139,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse$RecommendationResult$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3951,7 +5148,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3960,7 +5157,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$InterpolationType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3969,7 +5166,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisRequest", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3978,7 +5175,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3987,7 +5184,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3996,7 +5193,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4005,7 +5202,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$ChunkSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4014,7 +5211,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$ChunkSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4023,7 +5220,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$FailureReason", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$ExtractiveContentSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4032,7 +5229,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$FailureReason$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$ExtractiveContentSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4041,7 +5238,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$FailureReason$CorpusType", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SearchResultMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4050,7 +5247,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Reply", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SnippetSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4059,7 +5256,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Reply$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SnippetSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4068,7 +5265,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Reply$Reference", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4077,7 +5274,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Reply$Reference$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4086,7 +5283,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ResumeEngineRequest", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelPromptSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4095,7 +5292,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ResumeEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelPromptSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4104,7 +5301,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Schema", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4113,7 +5310,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Schema$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4122,7 +5319,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchAddOn", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$DataStoreSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4131,7 +5328,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchInfo", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$DataStoreSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4140,7 +5337,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4149,7 +5346,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4158,7 +5355,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec$EmbeddingVector", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4167,7 +5364,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec$EmbeddingVector$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4176,7 +5373,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4185,7 +5382,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4194,7 +5391,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$AttributeType", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec$FacetKey", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4203,7 +5400,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec$FacetKey$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4212,7 +5409,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ImageQuery", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4221,7 +5418,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ImageQuery$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4230,7 +5427,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$InterpolationType", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$NaturalLanguageQueryUnderstandingSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4239,7 +5436,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$NaturalLanguageQueryUnderstandingSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4248,7 +5445,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$NaturalLanguageQueryUnderstandingSpec$FilterExtractionCondition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4257,7 +5454,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$QueryExpansionSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4266,7 +5463,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$QueryExpansionSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4275,7 +5472,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$ExtractiveContentSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$QueryExpansionSpec$Condition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4284,7 +5481,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$ExtractiveContentSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SearchAsYouTypeSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4293,7 +5490,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SnippetSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SearchAsYouTypeSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4302,7 +5499,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SnippetSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SearchAsYouTypeSpec$Condition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4311,7 +5508,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SessionSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4320,7 +5517,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SessionSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4329,7 +5526,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelPromptSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SpellCorrectionSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4338,7 +5535,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelPromptSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SpellCorrectionSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4347,7 +5544,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SpellCorrectionSpec$Mode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4356,7 +5553,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4365,7 +5562,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$DataStoreSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4374,7 +5571,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$DataStoreSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4383,7 +5580,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4392,7 +5589,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet$FacetValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4401,7 +5598,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec$EmbeddingVector", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet$FacetValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4410,7 +5607,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec$EmbeddingVector$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GeoSearchDebugInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4419,7 +5616,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GeoSearchDebugInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4428,7 +5625,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4437,7 +5634,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec$FacetKey", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4446,7 +5643,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec$FacetKey$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult$RefinementAttribute", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4455,7 +5652,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ImageQuery", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult$RefinementAttribute$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4464,7 +5661,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ImageQuery$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4473,7 +5670,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$QueryExpansionSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4482,7 +5679,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$QueryExpansionSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4491,7 +5688,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$QueryExpansionSpec$Condition", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$AndExpression", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4500,7 +5697,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SpellCorrectionSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$AndExpression$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4509,7 +5706,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SpellCorrectionSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4518,7 +5715,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SpellCorrectionSpec$Mode", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Expression", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4527,7 +5724,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Expression$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4536,7 +5733,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$GeolocationConstraint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4545,7 +5742,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$GeolocationConstraint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4554,7 +5751,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4563,7 +5760,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet$FacetValue", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4572,7 +5769,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet$FacetValue$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint$Comparison", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4581,7 +5778,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GeoSearchDebugInfo", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$OrExpression", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4590,7 +5787,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GeoSearchDebugInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$OrExpression$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4599,7 +5796,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$StringConstraint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4608,7 +5805,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$StringConstraint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4617,7 +5814,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult$RefinementAttribute", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$QueryExpansionInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4626,7 +5823,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult$RefinementAttribute$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$QueryExpansionInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4635,7 +5832,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$QueryExpansionInfo", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4644,7 +5841,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$QueryExpansionInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4653,7 +5850,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SessionInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4662,7 +5859,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SessionInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5363,6 +6560,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata", "queryAllDeclaredConstructors": true, diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..030f115e26f3 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceClientHttpJsonTest.java @@ -0,0 +1,503 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient.ListEvaluationResultsPagedResponse; +import static com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient.ListEvaluationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1alpha.stub.HttpJsonEvaluationServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class EvaluationServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static EvaluationServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonEvaluationServiceStub.getMethodDescriptors(), + EvaluationServiceSettings.getDefaultEndpoint()); + EvaluationServiceSettings settings = + EvaluationServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + EvaluationServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = EvaluationServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getEvaluationTest() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + + Evaluation actualResponse = client.getEvaluation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getEvaluationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + client.getEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEvaluationTest2() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9235/locations/location-9235/evaluations/evaluation-9235"; + + Evaluation actualResponse = client.getEvaluation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getEvaluationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9235/locations/location-9235/evaluations/evaluation-9235"; + client.getEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEvaluationsTest() throws Exception { + Evaluation responsesElement = Evaluation.newBuilder().build(); + ListEvaluationsResponse expectedResponse = + ListEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListEvaluationsPagedResponse pagedListResponse = client.listEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listEvaluationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEvaluationsTest2() throws Exception { + Evaluation responsesElement = Evaluation.newBuilder().build(); + ListEvaluationsResponse expectedResponse = + ListEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListEvaluationsPagedResponse pagedListResponse = client.listEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listEvaluationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createEvaluationTest() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + + Evaluation actualResponse = client.createEvaluationAsync(parent, evaluation).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createEvaluationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + client.createEvaluationAsync(parent, evaluation).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createEvaluationTest2() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Evaluation evaluation = Evaluation.newBuilder().build(); + + Evaluation actualResponse = client.createEvaluationAsync(parent, evaluation).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createEvaluationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Evaluation evaluation = Evaluation.newBuilder().build(); + client.createEvaluationAsync(parent, evaluation).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listEvaluationResultsTest() throws Exception { + ListEvaluationResultsResponse.EvaluationResult responsesElement = + ListEvaluationResultsResponse.EvaluationResult.newBuilder().build(); + ListEvaluationResultsResponse expectedResponse = + ListEvaluationResultsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluationResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + EvaluationName evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + + ListEvaluationResultsPagedResponse pagedListResponse = client.listEvaluationResults(evaluation); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listEvaluationResultsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EvaluationName evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + client.listEvaluationResults(evaluation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEvaluationResultsTest2() throws Exception { + ListEvaluationResultsResponse.EvaluationResult responsesElement = + ListEvaluationResultsResponse.EvaluationResult.newBuilder().build(); + ListEvaluationResultsResponse expectedResponse = + ListEvaluationResultsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluationResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String evaluation = "projects/project-7058/locations/location-7058/evaluations/evaluation-7058"; + + ListEvaluationResultsPagedResponse pagedListResponse = client.listEvaluationResults(evaluation); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listEvaluationResultsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String evaluation = + "projects/project-7058/locations/location-7058/evaluations/evaluation-7058"; + client.listEvaluationResults(evaluation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceClientTest.java new file mode 100644 index 000000000000..4b0a17e59210 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceClientTest.java @@ -0,0 +1,471 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient.ListEvaluationResultsPagedResponse; +import static com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient.ListEvaluationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class EvaluationServiceClientTest { + private static MockEvaluationService mockEvaluationService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private EvaluationServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockEvaluationService = new MockEvaluationService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockEvaluationService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + EvaluationServiceSettings settings = + EvaluationServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = EvaluationServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getEvaluationTest() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + mockEvaluationService.addResponse(expectedResponse); + + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + + Evaluation actualResponse = client.getEvaluation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEvaluationRequest actualRequest = ((GetEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getEvaluationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + client.getEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEvaluationTest2() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + mockEvaluationService.addResponse(expectedResponse); + + String name = "name3373707"; + + Evaluation actualResponse = client.getEvaluation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEvaluationRequest actualRequest = ((GetEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getEvaluationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + String name = "name3373707"; + client.getEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEvaluationsTest() throws Exception { + Evaluation responsesElement = Evaluation.newBuilder().build(); + ListEvaluationsResponse expectedResponse = + ListEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluations(Arrays.asList(responsesElement)) + .build(); + mockEvaluationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListEvaluationsPagedResponse pagedListResponse = client.listEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationsList().get(0), resources.get(0)); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEvaluationsRequest actualRequest = ((ListEvaluationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEvaluationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEvaluationsTest2() throws Exception { + Evaluation responsesElement = Evaluation.newBuilder().build(); + ListEvaluationsResponse expectedResponse = + ListEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluations(Arrays.asList(responsesElement)) + .build(); + mockEvaluationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListEvaluationsPagedResponse pagedListResponse = client.listEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationsList().get(0), resources.get(0)); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEvaluationsRequest actualRequest = ((ListEvaluationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEvaluationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createEvaluationTest() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockEvaluationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + + Evaluation actualResponse = client.createEvaluationAsync(parent, evaluation).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateEvaluationRequest actualRequest = ((CreateEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(evaluation, actualRequest.getEvaluation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createEvaluationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + client.createEvaluationAsync(parent, evaluation).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 createEvaluationTest2() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockEvaluationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Evaluation evaluation = Evaluation.newBuilder().build(); + + Evaluation actualResponse = client.createEvaluationAsync(parent, evaluation).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateEvaluationRequest actualRequest = ((CreateEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(evaluation, actualRequest.getEvaluation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createEvaluationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + String parent = "parent-995424086"; + Evaluation evaluation = Evaluation.newBuilder().build(); + client.createEvaluationAsync(parent, evaluation).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 listEvaluationResultsTest() throws Exception { + ListEvaluationResultsResponse.EvaluationResult responsesElement = + ListEvaluationResultsResponse.EvaluationResult.newBuilder().build(); + ListEvaluationResultsResponse expectedResponse = + ListEvaluationResultsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluationResults(Arrays.asList(responsesElement)) + .build(); + mockEvaluationService.addResponse(expectedResponse); + + EvaluationName evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + + ListEvaluationResultsPagedResponse pagedListResponse = client.listEvaluationResults(evaluation); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationResultsList().get(0), resources.get(0)); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEvaluationResultsRequest actualRequest = + ((ListEvaluationResultsRequest) actualRequests.get(0)); + + Assert.assertEquals(evaluation.toString(), actualRequest.getEvaluation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEvaluationResultsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + EvaluationName evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + client.listEvaluationResults(evaluation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEvaluationResultsTest2() throws Exception { + ListEvaluationResultsResponse.EvaluationResult responsesElement = + ListEvaluationResultsResponse.EvaluationResult.newBuilder().build(); + ListEvaluationResultsResponse expectedResponse = + ListEvaluationResultsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluationResults(Arrays.asList(responsesElement)) + .build(); + mockEvaluationService.addResponse(expectedResponse); + + String evaluation = "evaluation858523452"; + + ListEvaluationResultsPagedResponse pagedListResponse = client.listEvaluationResults(evaluation); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationResultsList().get(0), resources.get(0)); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEvaluationResultsRequest actualRequest = + ((ListEvaluationResultsRequest) actualRequests.get(0)); + + Assert.assertEquals(evaluation, actualRequest.getEvaluation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEvaluationResultsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + String evaluation = "evaluation858523452"; + client.listEvaluationResults(evaluation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockEvaluationService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockEvaluationService.java new file mode 100644 index 000000000000..9fb0f96e739f --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockEvaluationService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockEvaluationService implements MockGrpcService { + private final MockEvaluationServiceImpl serviceImpl; + + public MockEvaluationService() { + serviceImpl = new MockEvaluationServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockEvaluationServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockEvaluationServiceImpl.java new file mode 100644 index 000000000000..6db6b5ebf93c --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockEvaluationServiceImpl.java @@ -0,0 +1,146 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceGrpc.EvaluationServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockEvaluationServiceImpl extends EvaluationServiceImplBase { + private List requests; + private Queue responses; + + public MockEvaluationServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getEvaluation( + GetEvaluationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Evaluation) { + requests.add(request); + responseObserver.onNext(((Evaluation) 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 GetEvaluation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Evaluation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listEvaluations( + ListEvaluationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListEvaluationsResponse) { + requests.add(request); + responseObserver.onNext(((ListEvaluationsResponse) 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 ListEvaluations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListEvaluationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createEvaluation( + CreateEvaluationRequest 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 CreateEvaluation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listEvaluationResults( + ListEvaluationResultsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListEvaluationResultsResponse) { + requests.add(request); + responseObserver.onNext(((ListEvaluationResultsResponse) 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 ListEvaluationResults, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListEvaluationResultsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSampleQueryService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSampleQueryService.java new file mode 100644 index 000000000000..939b57675d6a --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSampleQueryService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSampleQueryService implements MockGrpcService { + private final MockSampleQueryServiceImpl serviceImpl; + + public MockSampleQueryService() { + serviceImpl = new MockSampleQueryServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSampleQueryServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSampleQueryServiceImpl.java new file mode 100644 index 000000000000..01bcc703e30a --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSampleQueryServiceImpl.java @@ -0,0 +1,189 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceGrpc.SampleQueryServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSampleQueryServiceImpl extends SampleQueryServiceImplBase { + private List requests; + private Queue responses; + + public MockSampleQueryServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getSampleQuery( + GetSampleQueryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SampleQuery) { + requests.add(request); + responseObserver.onNext(((SampleQuery) 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 GetSampleQuery, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SampleQuery.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSampleQueries( + ListSampleQueriesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSampleQueriesResponse) { + requests.add(request); + responseObserver.onNext(((ListSampleQueriesResponse) 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 ListSampleQueries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSampleQueriesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSampleQuery( + CreateSampleQueryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SampleQuery) { + requests.add(request); + responseObserver.onNext(((SampleQuery) 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 CreateSampleQuery, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SampleQuery.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSampleQuery( + UpdateSampleQueryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SampleQuery) { + requests.add(request); + responseObserver.onNext(((SampleQuery) 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 UpdateSampleQuery, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SampleQuery.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSampleQuery( + DeleteSampleQueryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSampleQuery, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importSampleQueries( + ImportSampleQueriesRequest 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 ImportSampleQueries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSampleQuerySetService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSampleQuerySetService.java new file mode 100644 index 000000000000..115b4f9e2539 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSampleQuerySetService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSampleQuerySetService implements MockGrpcService { + private final MockSampleQuerySetServiceImpl serviceImpl; + + public MockSampleQuerySetService() { + serviceImpl = new MockSampleQuerySetServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSampleQuerySetServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSampleQuerySetServiceImpl.java new file mode 100644 index 000000000000..88414e806321 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSampleQuerySetServiceImpl.java @@ -0,0 +1,167 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceGrpc.SampleQuerySetServiceImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSampleQuerySetServiceImpl extends SampleQuerySetServiceImplBase { + private List requests; + private Queue responses; + + public MockSampleQuerySetServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getSampleQuerySet( + GetSampleQuerySetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SampleQuerySet) { + requests.add(request); + responseObserver.onNext(((SampleQuerySet) 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 GetSampleQuerySet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SampleQuerySet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSampleQuerySets( + ListSampleQuerySetsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSampleQuerySetsResponse) { + requests.add(request); + responseObserver.onNext(((ListSampleQuerySetsResponse) 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 ListSampleQuerySets, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSampleQuerySetsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSampleQuerySet( + CreateSampleQuerySetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SampleQuerySet) { + requests.add(request); + responseObserver.onNext(((SampleQuerySet) 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 CreateSampleQuerySet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SampleQuerySet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSampleQuerySet( + UpdateSampleQuerySetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SampleQuerySet) { + requests.add(request); + responseObserver.onNext(((SampleQuerySet) 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 UpdateSampleQuerySet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SampleQuerySet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSampleQuerySet( + DeleteSampleQuerySetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSampleQuerySet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..d5c2ad50b497 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceClientHttpJsonTest.java @@ -0,0 +1,605 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient.ListSampleQueriesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1alpha.stub.HttpJsonSampleQueryServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SampleQueryServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static SampleQueryServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSampleQueryServiceStub.getMethodDescriptors(), + SampleQueryServiceSettings.getDefaultEndpoint()); + SampleQueryServiceSettings settings = + SampleQueryServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SampleQueryServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SampleQueryServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getSampleQueryTest() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + + SampleQuery actualResponse = client.getSampleQuery(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSampleQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + client.getSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSampleQueryTest2() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5395/locations/location-5395/sampleQuerySets/sampleQuerySet-5395/sampleQueries/sampleQuerie-5395"; + + SampleQuery actualResponse = client.getSampleQuery(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSampleQueryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5395/locations/location-5395/sampleQuerySets/sampleQuerySet-5395/sampleQueries/sampleQuerie-5395"; + client.getSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQueriesTest() throws Exception { + SampleQuery responsesElement = SampleQuery.newBuilder().build(); + ListSampleQueriesResponse expectedResponse = + ListSampleQueriesResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQueries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + + ListSampleQueriesPagedResponse pagedListResponse = client.listSampleQueries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQueriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSampleQueriesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + client.listSampleQueries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQueriesTest2() throws Exception { + SampleQuery responsesElement = SampleQuery.newBuilder().build(); + ListSampleQueriesResponse expectedResponse = + ListSampleQueriesResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQueries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-6140/locations/location-6140/sampleQuerySets/sampleQuerySet-6140"; + + ListSampleQueriesPagedResponse pagedListResponse = client.listSampleQueries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQueriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSampleQueriesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-6140/locations/location-6140/sampleQuerySets/sampleQuerySet-6140"; + client.listSampleQueries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQueryTest() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + + SampleQuery actualResponse = client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSampleQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQueryTest2() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-6140/locations/location-6140/sampleQuerySets/sampleQuerySet-6140"; + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + + SampleQuery actualResponse = client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSampleQueryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-6140/locations/location-6140/sampleQuerySets/sampleQuerySet-6140"; + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSampleQueryTest() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SampleQuery sampleQuery = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SampleQuery actualResponse = client.updateSampleQuery(sampleQuery, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSampleQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQuery sampleQuery = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSampleQuery(sampleQuery, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQueryTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + + client.deleteSampleQuery(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSampleQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + client.deleteSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQueryTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5395/locations/location-5395/sampleQuerySets/sampleQuerySet-5395/sampleQueries/sampleQuerie-5395"; + + client.deleteSampleQuery(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSampleQueryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5395/locations/location-5395/sampleQuerySets/sampleQuerySet-5395/sampleQueries/sampleQuerie-5395"; + client.deleteSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importSampleQueriesTest() throws Exception { + ImportSampleQueriesResponse expectedResponse = + ImportSampleQueriesResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importSampleQueriesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ImportSampleQueriesRequest request = + ImportSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + + ImportSampleQueriesResponse actualResponse = client.importSampleQueriesAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void importSampleQueriesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ImportSampleQueriesRequest request = + ImportSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + client.importSampleQueriesAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceClientTest.java new file mode 100644 index 000000000000..68b0e9801f99 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceClientTest.java @@ -0,0 +1,542 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient.ListSampleQueriesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SampleQueryServiceClientTest { + private static MockLocations mockLocations; + private static MockSampleQueryService mockSampleQueryService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private SampleQueryServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockSampleQueryService = new MockSampleQueryService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockSampleQueryService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SampleQueryServiceSettings settings = + SampleQueryServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SampleQueryServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getSampleQueryTest() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSampleQueryService.addResponse(expectedResponse); + + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + + SampleQuery actualResponse = client.getSampleQuery(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSampleQueryRequest actualRequest = ((GetSampleQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSampleQueryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + client.getSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSampleQueryTest2() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSampleQueryService.addResponse(expectedResponse); + + String name = "name3373707"; + + SampleQuery actualResponse = client.getSampleQuery(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSampleQueryRequest actualRequest = ((GetSampleQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSampleQueryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + String name = "name3373707"; + client.getSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQueriesTest() throws Exception { + SampleQuery responsesElement = SampleQuery.newBuilder().build(); + ListSampleQueriesResponse expectedResponse = + ListSampleQueriesResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQueries(Arrays.asList(responsesElement)) + .build(); + mockSampleQueryService.addResponse(expectedResponse); + + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + + ListSampleQueriesPagedResponse pagedListResponse = client.listSampleQueries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQueriesList().get(0), resources.get(0)); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSampleQueriesRequest actualRequest = ((ListSampleQueriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSampleQueriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + client.listSampleQueries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQueriesTest2() throws Exception { + SampleQuery responsesElement = SampleQuery.newBuilder().build(); + ListSampleQueriesResponse expectedResponse = + ListSampleQueriesResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQueries(Arrays.asList(responsesElement)) + .build(); + mockSampleQueryService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSampleQueriesPagedResponse pagedListResponse = client.listSampleQueries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQueriesList().get(0), resources.get(0)); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSampleQueriesRequest actualRequest = ((ListSampleQueriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSampleQueriesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSampleQueries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQueryTest() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSampleQueryService.addResponse(expectedResponse); + + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + + SampleQuery actualResponse = client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSampleQueryRequest actualRequest = ((CreateSampleQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(sampleQuery, actualRequest.getSampleQuery()); + Assert.assertEquals(sampleQueryId, actualRequest.getSampleQueryId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSampleQueryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQueryTest2() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSampleQueryService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + + SampleQuery actualResponse = client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSampleQueryRequest actualRequest = ((CreateSampleQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(sampleQuery, actualRequest.getSampleQuery()); + Assert.assertEquals(sampleQueryId, actualRequest.getSampleQueryId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSampleQueryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + String parent = "parent-995424086"; + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSampleQueryTest() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSampleQueryService.addResponse(expectedResponse); + + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SampleQuery actualResponse = client.updateSampleQuery(sampleQuery, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSampleQueryRequest actualRequest = ((UpdateSampleQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(sampleQuery, actualRequest.getSampleQuery()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSampleQueryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSampleQuery(sampleQuery, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQueryTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSampleQueryService.addResponse(expectedResponse); + + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + + client.deleteSampleQuery(name); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSampleQueryRequest actualRequest = ((DeleteSampleQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSampleQueryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + client.deleteSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQueryTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSampleQueryService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteSampleQuery(name); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSampleQueryRequest actualRequest = ((DeleteSampleQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSampleQueryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + String name = "name3373707"; + client.deleteSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importSampleQueriesTest() throws Exception { + ImportSampleQueriesResponse expectedResponse = + ImportSampleQueriesResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importSampleQueriesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSampleQueryService.addResponse(resultOperation); + + ImportSampleQueriesRequest request = + ImportSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + + ImportSampleQueriesResponse actualResponse = client.importSampleQueriesAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportSampleQueriesRequest actualRequest = ((ImportSampleQueriesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getInlineSource(), actualRequest.getInlineSource()); + Assert.assertEquals(request.getGcsSource(), actualRequest.getGcsSource()); + Assert.assertEquals(request.getBigquerySource(), actualRequest.getBigquerySource()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getErrorConfig(), actualRequest.getErrorConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importSampleQueriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + ImportSampleQueriesRequest request = + ImportSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + client.importSampleQueriesAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..a2b61dadedb3 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceClientHttpJsonTest.java @@ -0,0 +1,534 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient.ListSampleQuerySetsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1alpha.stub.HttpJsonSampleQuerySetServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SampleQuerySetServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static SampleQuerySetServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSampleQuerySetServiceStub.getMethodDescriptors(), + SampleQuerySetServiceSettings.getDefaultEndpoint()); + SampleQuerySetServiceSettings settings = + SampleQuerySetServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SampleQuerySetServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SampleQuerySetServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getSampleQuerySetTest() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + + SampleQuerySet actualResponse = client.getSampleQuerySet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSampleQuerySetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + client.getSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSampleQuerySetTest2() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9093/locations/location-9093/sampleQuerySets/sampleQuerySet-9093"; + + SampleQuerySet actualResponse = client.getSampleQuerySet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSampleQuerySetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9093/locations/location-9093/sampleQuerySets/sampleQuerySet-9093"; + client.getSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQuerySetsTest() throws Exception { + SampleQuerySet responsesElement = SampleQuerySet.newBuilder().build(); + ListSampleQuerySetsResponse expectedResponse = + ListSampleQuerySetsResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQuerySets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSampleQuerySetsPagedResponse pagedListResponse = client.listSampleQuerySets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQuerySetsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSampleQuerySetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSampleQuerySets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQuerySetsTest2() throws Exception { + SampleQuerySet responsesElement = SampleQuerySet.newBuilder().build(); + ListSampleQuerySetsResponse expectedResponse = + ListSampleQuerySetsResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQuerySets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListSampleQuerySetsPagedResponse pagedListResponse = client.listSampleQuerySets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQuerySetsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSampleQuerySetsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listSampleQuerySets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQuerySetTest() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + + SampleQuerySet actualResponse = + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSampleQuerySetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQuerySetTest2() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + + SampleQuerySet actualResponse = + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSampleQuerySetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSampleQuerySetTest() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + SampleQuerySet sampleQuerySet = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SampleQuerySet actualResponse = client.updateSampleQuerySet(sampleQuerySet, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSampleQuerySetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQuerySet sampleQuerySet = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSampleQuerySet(sampleQuerySet, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQuerySetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + + client.deleteSampleQuerySet(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSampleQuerySetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + client.deleteSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQuerySetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9093/locations/location-9093/sampleQuerySets/sampleQuerySet-9093"; + + client.deleteSampleQuerySet(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSampleQuerySetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9093/locations/location-9093/sampleQuerySets/sampleQuerySet-9093"; + client.deleteSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceClientTest.java new file mode 100644 index 000000000000..9cfd8a09740d --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceClientTest.java @@ -0,0 +1,478 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient.ListSampleQuerySetsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SampleQuerySetServiceClientTest { + private static MockLocations mockLocations; + private static MockSampleQuerySetService mockSampleQuerySetService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private SampleQuerySetServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockSampleQuerySetService = new MockSampleQuerySetService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockSampleQuerySetService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SampleQuerySetServiceSettings settings = + SampleQuerySetServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SampleQuerySetServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getSampleQuerySetTest() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + + SampleQuerySet actualResponse = client.getSampleQuerySet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSampleQuerySetRequest actualRequest = ((GetSampleQuerySetRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSampleQuerySetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + client.getSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSampleQuerySetTest2() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + String name = "name3373707"; + + SampleQuerySet actualResponse = client.getSampleQuerySet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSampleQuerySetRequest actualRequest = ((GetSampleQuerySetRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSampleQuerySetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + String name = "name3373707"; + client.getSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQuerySetsTest() throws Exception { + SampleQuerySet responsesElement = SampleQuerySet.newBuilder().build(); + ListSampleQuerySetsResponse expectedResponse = + ListSampleQuerySetsResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQuerySets(Arrays.asList(responsesElement)) + .build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSampleQuerySetsPagedResponse pagedListResponse = client.listSampleQuerySets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQuerySetsList().get(0), resources.get(0)); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSampleQuerySetsRequest actualRequest = ((ListSampleQuerySetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSampleQuerySetsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSampleQuerySets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQuerySetsTest2() throws Exception { + SampleQuerySet responsesElement = SampleQuerySet.newBuilder().build(); + ListSampleQuerySetsResponse expectedResponse = + ListSampleQuerySetsResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQuerySets(Arrays.asList(responsesElement)) + .build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSampleQuerySetsPagedResponse pagedListResponse = client.listSampleQuerySets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQuerySetsList().get(0), resources.get(0)); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSampleQuerySetsRequest actualRequest = ((ListSampleQuerySetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSampleQuerySetsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSampleQuerySets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQuerySetTest() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + + SampleQuerySet actualResponse = + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSampleQuerySetRequest actualRequest = + ((CreateSampleQuerySetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(sampleQuerySet, actualRequest.getSampleQuerySet()); + Assert.assertEquals(sampleQuerySetId, actualRequest.getSampleQuerySetId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSampleQuerySetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQuerySetTest2() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + + SampleQuerySet actualResponse = + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSampleQuerySetRequest actualRequest = + ((CreateSampleQuerySetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(sampleQuerySet, actualRequest.getSampleQuerySet()); + Assert.assertEquals(sampleQuerySetId, actualRequest.getSampleQuerySetId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSampleQuerySetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + String parent = "parent-995424086"; + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSampleQuerySetTest() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SampleQuerySet actualResponse = client.updateSampleQuerySet(sampleQuerySet, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSampleQuerySetRequest actualRequest = + ((UpdateSampleQuerySetRequest) actualRequests.get(0)); + + Assert.assertEquals(sampleQuerySet, actualRequest.getSampleQuerySet()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSampleQuerySetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSampleQuerySet(sampleQuerySet, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQuerySetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + + client.deleteSampleQuerySet(name); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSampleQuerySetRequest actualRequest = + ((DeleteSampleQuerySetRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSampleQuerySetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + client.deleteSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQuerySetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteSampleQuerySet(name); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSampleQuerySetRequest actualRequest = + ((DeleteSampleQuerySetRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSampleQuerySetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + String name = "name3373707"; + client.deleteSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientHttpJsonTest.java index a001a2cba552..f1daa861146a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientHttpJsonTest.java @@ -267,4 +267,132 @@ public void purgeSuggestionDenyListEntriesExceptionTest() throws Exception { } catch (ExecutionException e) { } } + + @Test + public void importCompletionSuggestionsTest() throws Exception { + ImportCompletionSuggestionsResponse expectedResponse = + ImportCompletionSuggestionsResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importCompletionSuggestionsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ImportCompletionSuggestionsRequest request = + ImportCompletionSuggestionsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + + ImportCompletionSuggestionsResponse actualResponse = + client.importCompletionSuggestionsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void importCompletionSuggestionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ImportCompletionSuggestionsRequest request = + ImportCompletionSuggestionsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + client.importCompletionSuggestionsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void purgeCompletionSuggestionsTest() throws Exception { + PurgeCompletionSuggestionsResponse expectedResponse = + PurgeCompletionSuggestionsResponse.newBuilder() + .setPurgeSucceeded(true) + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeCompletionSuggestionsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PurgeCompletionSuggestionsRequest request = + PurgeCompletionSuggestionsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + + PurgeCompletionSuggestionsResponse actualResponse = + client.purgeCompletionSuggestionsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void purgeCompletionSuggestionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PurgeCompletionSuggestionsRequest request = + PurgeCompletionSuggestionsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + client.purgeCompletionSuggestionsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java index 2d32c84fbd0a..f1c0c5051142 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java @@ -272,4 +272,132 @@ public void purgeSuggestionDenyListEntriesExceptionTest() throws Exception { Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } + + @Test + public void importCompletionSuggestionsTest() throws Exception { + ImportCompletionSuggestionsResponse expectedResponse = + ImportCompletionSuggestionsResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importCompletionSuggestionsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCompletionService.addResponse(resultOperation); + + ImportCompletionSuggestionsRequest request = + ImportCompletionSuggestionsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + + ImportCompletionSuggestionsResponse actualResponse = + client.importCompletionSuggestionsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompletionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportCompletionSuggestionsRequest actualRequest = + ((ImportCompletionSuggestionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getInlineSource(), actualRequest.getInlineSource()); + Assert.assertEquals(request.getGcsSource(), actualRequest.getGcsSource()); + Assert.assertEquals(request.getBigquerySource(), actualRequest.getBigquerySource()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getErrorConfig(), actualRequest.getErrorConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importCompletionSuggestionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCompletionService.addException(exception); + + try { + ImportCompletionSuggestionsRequest request = + ImportCompletionSuggestionsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + client.importCompletionSuggestionsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void purgeCompletionSuggestionsTest() throws Exception { + PurgeCompletionSuggestionsResponse expectedResponse = + PurgeCompletionSuggestionsResponse.newBuilder() + .setPurgeSucceeded(true) + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeCompletionSuggestionsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCompletionService.addResponse(resultOperation); + + PurgeCompletionSuggestionsRequest request = + PurgeCompletionSuggestionsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + + PurgeCompletionSuggestionsResponse actualResponse = + client.purgeCompletionSuggestionsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompletionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PurgeCompletionSuggestionsRequest actualRequest = + ((PurgeCompletionSuggestionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void purgeCompletionSuggestionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCompletionService.addException(exception); + + try { + PurgeCompletionSuggestionsRequest request = + PurgeCompletionSuggestionsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + client.purgeCompletionSuggestionsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientHttpJsonTest.java index 6b3ad8f832d3..2a729145ab42 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientHttpJsonTest.java @@ -36,6 +36,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import javax.annotation.Generated; import org.junit.After; @@ -690,6 +691,7 @@ public void answerQueryTest() throws Exception { AnswerQueryRequest.QueryUnderstandingSpec.newBuilder().build()) .setAsynchronousMode(true) .setUserPseudoId("userPseudoId-1155274652") + .putAllUserLabels(new HashMap()) .build(); AnswerQueryResponse actualResponse = client.answerQuery(request); @@ -737,6 +739,7 @@ public void answerQueryExceptionTest() throws Exception { AnswerQueryRequest.QueryUnderstandingSpec.newBuilder().build()) .setAsynchronousMode(true) .setUserPseudoId("userPseudoId-1155274652") + .putAllUserLabels(new HashMap()) .build(); client.answerQuery(request); Assert.fail("No exception raised"); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java index 3399c24213ca..f7fee9282674 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java @@ -35,6 +35,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import javax.annotation.Generated; @@ -611,6 +612,7 @@ public void answerQueryTest() throws Exception { AnswerQueryRequest.QueryUnderstandingSpec.newBuilder().build()) .setAsynchronousMode(true) .setUserPseudoId("userPseudoId-1155274652") + .putAllUserLabels(new HashMap()) .build(); AnswerQueryResponse actualResponse = client.answerQuery(request); @@ -631,6 +633,7 @@ public void answerQueryTest() throws Exception { request.getQueryUnderstandingSpec(), actualRequest.getQueryUnderstandingSpec()); Assert.assertEquals(request.getAsynchronousMode(), actualRequest.getAsynchronousMode()); Assert.assertEquals(request.getUserPseudoId(), actualRequest.getUserPseudoId()); + Assert.assertEquals(request.getUserLabelsMap(), actualRequest.getUserLabelsMap()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -662,6 +665,7 @@ public void answerQueryExceptionTest() throws Exception { AnswerQueryRequest.QueryUnderstandingSpec.newBuilder().build()) .setAsynchronousMode(true) .setUserPseudoId("userPseudoId-1155274652") + .putAllUserLabels(new HashMap()) .build(); client.answerQuery(request); Assert.fail("No exception raised"); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientHttpJsonTest.java index f5c076fb2a64..d4d79db775fd 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientHttpJsonTest.java @@ -95,6 +95,7 @@ public void createDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setLanguageInfo(LanguageInfo.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .build(); @@ -158,6 +159,7 @@ public void createDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setLanguageInfo(LanguageInfo.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .build(); @@ -221,6 +223,7 @@ public void getDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setLanguageInfo(LanguageInfo.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .build(); @@ -277,6 +280,7 @@ public void getDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setLanguageInfo(LanguageInfo.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .build(); @@ -523,6 +527,7 @@ public void updateDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setLanguageInfo(LanguageInfo.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .build(); @@ -539,6 +544,7 @@ public void updateDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setLanguageInfo(LanguageInfo.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .build(); @@ -581,6 +587,7 @@ public void updateDataStoreExceptionTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setLanguageInfo(LanguageInfo.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .build(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientTest.java index fe1024ee0576..056f9f804d41 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientTest.java @@ -102,6 +102,7 @@ public void createDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setLanguageInfo(LanguageInfo.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .build(); @@ -164,6 +165,7 @@ public void createDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setLanguageInfo(LanguageInfo.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .build(); @@ -226,6 +228,7 @@ public void getDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setLanguageInfo(LanguageInfo.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .build(); @@ -276,6 +279,7 @@ public void getDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setLanguageInfo(LanguageInfo.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .build(); @@ -498,6 +502,7 @@ public void updateDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setLanguageInfo(LanguageInfo.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .build(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java index 47c5209a70a9..335646730418 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java @@ -554,6 +554,7 @@ public void importDocumentsTest() throws Exception { Assert.assertEquals(request.getSpannerSource(), actualRequest.getSpannerSource()); Assert.assertEquals(request.getCloudSqlSource(), actualRequest.getCloudSqlSource()); Assert.assertEquals(request.getFirestoreSource(), actualRequest.getFirestoreSource()); + Assert.assertEquals(request.getAlloyDbSource(), actualRequest.getAlloyDbSource()); Assert.assertEquals(request.getBigtableSource(), actualRequest.getBigtableSource()); Assert.assertEquals(request.getParent(), actualRequest.getParent()); Assert.assertEquals(request.getErrorConfig(), actualRequest.getErrorConfig()); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..d0edf1050151 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClientHttpJsonTest.java @@ -0,0 +1,503 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import static com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient.ListEvaluationResultsPagedResponse; +import static com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient.ListEvaluationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1beta.stub.HttpJsonEvaluationServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class EvaluationServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static EvaluationServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonEvaluationServiceStub.getMethodDescriptors(), + EvaluationServiceSettings.getDefaultEndpoint()); + EvaluationServiceSettings settings = + EvaluationServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + EvaluationServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = EvaluationServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getEvaluationTest() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + + Evaluation actualResponse = client.getEvaluation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getEvaluationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + client.getEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEvaluationTest2() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9235/locations/location-9235/evaluations/evaluation-9235"; + + Evaluation actualResponse = client.getEvaluation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getEvaluationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9235/locations/location-9235/evaluations/evaluation-9235"; + client.getEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEvaluationsTest() throws Exception { + Evaluation responsesElement = Evaluation.newBuilder().build(); + ListEvaluationsResponse expectedResponse = + ListEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListEvaluationsPagedResponse pagedListResponse = client.listEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listEvaluationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEvaluationsTest2() throws Exception { + Evaluation responsesElement = Evaluation.newBuilder().build(); + ListEvaluationsResponse expectedResponse = + ListEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListEvaluationsPagedResponse pagedListResponse = client.listEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listEvaluationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createEvaluationTest() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + + Evaluation actualResponse = client.createEvaluationAsync(parent, evaluation).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createEvaluationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + client.createEvaluationAsync(parent, evaluation).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createEvaluationTest2() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Evaluation evaluation = Evaluation.newBuilder().build(); + + Evaluation actualResponse = client.createEvaluationAsync(parent, evaluation).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createEvaluationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Evaluation evaluation = Evaluation.newBuilder().build(); + client.createEvaluationAsync(parent, evaluation).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listEvaluationResultsTest() throws Exception { + ListEvaluationResultsResponse.EvaluationResult responsesElement = + ListEvaluationResultsResponse.EvaluationResult.newBuilder().build(); + ListEvaluationResultsResponse expectedResponse = + ListEvaluationResultsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluationResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + EvaluationName evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + + ListEvaluationResultsPagedResponse pagedListResponse = client.listEvaluationResults(evaluation); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listEvaluationResultsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EvaluationName evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + client.listEvaluationResults(evaluation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEvaluationResultsTest2() throws Exception { + ListEvaluationResultsResponse.EvaluationResult responsesElement = + ListEvaluationResultsResponse.EvaluationResult.newBuilder().build(); + ListEvaluationResultsResponse expectedResponse = + ListEvaluationResultsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluationResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String evaluation = "projects/project-7058/locations/location-7058/evaluations/evaluation-7058"; + + ListEvaluationResultsPagedResponse pagedListResponse = client.listEvaluationResults(evaluation); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listEvaluationResultsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String evaluation = + "projects/project-7058/locations/location-7058/evaluations/evaluation-7058"; + client.listEvaluationResults(evaluation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClientTest.java new file mode 100644 index 000000000000..d91c1b98c851 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClientTest.java @@ -0,0 +1,471 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import static com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient.ListEvaluationResultsPagedResponse; +import static com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient.ListEvaluationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class EvaluationServiceClientTest { + private static MockEvaluationService mockEvaluationService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private EvaluationServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockEvaluationService = new MockEvaluationService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockEvaluationService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + EvaluationServiceSettings settings = + EvaluationServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = EvaluationServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getEvaluationTest() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + mockEvaluationService.addResponse(expectedResponse); + + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + + Evaluation actualResponse = client.getEvaluation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEvaluationRequest actualRequest = ((GetEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getEvaluationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + client.getEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEvaluationTest2() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + mockEvaluationService.addResponse(expectedResponse); + + String name = "name3373707"; + + Evaluation actualResponse = client.getEvaluation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEvaluationRequest actualRequest = ((GetEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getEvaluationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + String name = "name3373707"; + client.getEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEvaluationsTest() throws Exception { + Evaluation responsesElement = Evaluation.newBuilder().build(); + ListEvaluationsResponse expectedResponse = + ListEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluations(Arrays.asList(responsesElement)) + .build(); + mockEvaluationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListEvaluationsPagedResponse pagedListResponse = client.listEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationsList().get(0), resources.get(0)); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEvaluationsRequest actualRequest = ((ListEvaluationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEvaluationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEvaluationsTest2() throws Exception { + Evaluation responsesElement = Evaluation.newBuilder().build(); + ListEvaluationsResponse expectedResponse = + ListEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluations(Arrays.asList(responsesElement)) + .build(); + mockEvaluationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListEvaluationsPagedResponse pagedListResponse = client.listEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationsList().get(0), resources.get(0)); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEvaluationsRequest actualRequest = ((ListEvaluationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEvaluationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createEvaluationTest() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockEvaluationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + + Evaluation actualResponse = client.createEvaluationAsync(parent, evaluation).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateEvaluationRequest actualRequest = ((CreateEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(evaluation, actualRequest.getEvaluation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createEvaluationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + client.createEvaluationAsync(parent, evaluation).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 createEvaluationTest2() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setEvaluationSpec(Evaluation.EvaluationSpec.newBuilder().build()) + .setQualityMetrics(QualityMetrics.newBuilder().build()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockEvaluationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Evaluation evaluation = Evaluation.newBuilder().build(); + + Evaluation actualResponse = client.createEvaluationAsync(parent, evaluation).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateEvaluationRequest actualRequest = ((CreateEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(evaluation, actualRequest.getEvaluation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createEvaluationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + String parent = "parent-995424086"; + Evaluation evaluation = Evaluation.newBuilder().build(); + client.createEvaluationAsync(parent, evaluation).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 listEvaluationResultsTest() throws Exception { + ListEvaluationResultsResponse.EvaluationResult responsesElement = + ListEvaluationResultsResponse.EvaluationResult.newBuilder().build(); + ListEvaluationResultsResponse expectedResponse = + ListEvaluationResultsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluationResults(Arrays.asList(responsesElement)) + .build(); + mockEvaluationService.addResponse(expectedResponse); + + EvaluationName evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + + ListEvaluationResultsPagedResponse pagedListResponse = client.listEvaluationResults(evaluation); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationResultsList().get(0), resources.get(0)); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEvaluationResultsRequest actualRequest = + ((ListEvaluationResultsRequest) actualRequests.get(0)); + + Assert.assertEquals(evaluation.toString(), actualRequest.getEvaluation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEvaluationResultsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + EvaluationName evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + client.listEvaluationResults(evaluation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEvaluationResultsTest2() throws Exception { + ListEvaluationResultsResponse.EvaluationResult responsesElement = + ListEvaluationResultsResponse.EvaluationResult.newBuilder().build(); + ListEvaluationResultsResponse expectedResponse = + ListEvaluationResultsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluationResults(Arrays.asList(responsesElement)) + .build(); + mockEvaluationService.addResponse(expectedResponse); + + String evaluation = "evaluation858523452"; + + ListEvaluationResultsPagedResponse pagedListResponse = client.listEvaluationResults(evaluation); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationResultsList().get(0), resources.get(0)); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEvaluationResultsRequest actualRequest = + ((ListEvaluationResultsRequest) actualRequests.get(0)); + + Assert.assertEquals(evaluation, actualRequest.getEvaluation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEvaluationResultsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + String evaluation = "evaluation858523452"; + client.listEvaluationResults(evaluation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionServiceImpl.java index b0497745f5bd..487c236ea016 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionServiceImpl.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionServiceImpl.java @@ -121,4 +121,46 @@ public void purgeSuggestionDenyListEntries( Exception.class.getName()))); } } + + @Override + public void importCompletionSuggestions( + ImportCompletionSuggestionsRequest 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 ImportCompletionSuggestions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void purgeCompletionSuggestions( + PurgeCompletionSuggestionsRequest 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 PurgeCompletionSuggestions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockEvaluationService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockEvaluationService.java new file mode 100644 index 000000000000..5f67f2629b6a --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockEvaluationService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockEvaluationService implements MockGrpcService { + private final MockEvaluationServiceImpl serviceImpl; + + public MockEvaluationService() { + serviceImpl = new MockEvaluationServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockEvaluationServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockEvaluationServiceImpl.java new file mode 100644 index 000000000000..f828e90d6e42 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockEvaluationServiceImpl.java @@ -0,0 +1,146 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceGrpc.EvaluationServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockEvaluationServiceImpl extends EvaluationServiceImplBase { + private List requests; + private Queue responses; + + public MockEvaluationServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getEvaluation( + GetEvaluationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Evaluation) { + requests.add(request); + responseObserver.onNext(((Evaluation) 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 GetEvaluation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Evaluation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listEvaluations( + ListEvaluationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListEvaluationsResponse) { + requests.add(request); + responseObserver.onNext(((ListEvaluationsResponse) 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 ListEvaluations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListEvaluationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createEvaluation( + CreateEvaluationRequest 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 CreateEvaluation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listEvaluationResults( + ListEvaluationResultsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListEvaluationResultsResponse) { + requests.add(request); + responseObserver.onNext(((ListEvaluationResultsResponse) 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 ListEvaluationResults, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListEvaluationResultsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSampleQueryService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSampleQueryService.java new file mode 100644 index 000000000000..c6bafec4a86a --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSampleQueryService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSampleQueryService implements MockGrpcService { + private final MockSampleQueryServiceImpl serviceImpl; + + public MockSampleQueryService() { + serviceImpl = new MockSampleQueryServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSampleQueryServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSampleQueryServiceImpl.java new file mode 100644 index 000000000000..b0e903ccf950 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSampleQueryServiceImpl.java @@ -0,0 +1,189 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceGrpc.SampleQueryServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSampleQueryServiceImpl extends SampleQueryServiceImplBase { + private List requests; + private Queue responses; + + public MockSampleQueryServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getSampleQuery( + GetSampleQueryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SampleQuery) { + requests.add(request); + responseObserver.onNext(((SampleQuery) 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 GetSampleQuery, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SampleQuery.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSampleQueries( + ListSampleQueriesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSampleQueriesResponse) { + requests.add(request); + responseObserver.onNext(((ListSampleQueriesResponse) 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 ListSampleQueries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSampleQueriesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSampleQuery( + CreateSampleQueryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SampleQuery) { + requests.add(request); + responseObserver.onNext(((SampleQuery) 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 CreateSampleQuery, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SampleQuery.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSampleQuery( + UpdateSampleQueryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SampleQuery) { + requests.add(request); + responseObserver.onNext(((SampleQuery) 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 UpdateSampleQuery, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SampleQuery.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSampleQuery( + DeleteSampleQueryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSampleQuery, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importSampleQueries( + ImportSampleQueriesRequest 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 ImportSampleQueries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSampleQuerySetService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSampleQuerySetService.java new file mode 100644 index 000000000000..12b2e975854c --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSampleQuerySetService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSampleQuerySetService implements MockGrpcService { + private final MockSampleQuerySetServiceImpl serviceImpl; + + public MockSampleQuerySetService() { + serviceImpl = new MockSampleQuerySetServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSampleQuerySetServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSampleQuerySetServiceImpl.java new file mode 100644 index 000000000000..2b6acb59d313 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSampleQuerySetServiceImpl.java @@ -0,0 +1,167 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceGrpc.SampleQuerySetServiceImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSampleQuerySetServiceImpl extends SampleQuerySetServiceImplBase { + private List requests; + private Queue responses; + + public MockSampleQuerySetServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getSampleQuerySet( + GetSampleQuerySetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SampleQuerySet) { + requests.add(request); + responseObserver.onNext(((SampleQuerySet) 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 GetSampleQuerySet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SampleQuerySet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSampleQuerySets( + ListSampleQuerySetsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSampleQuerySetsResponse) { + requests.add(request); + responseObserver.onNext(((ListSampleQuerySetsResponse) 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 ListSampleQuerySets, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSampleQuerySetsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSampleQuerySet( + CreateSampleQuerySetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SampleQuerySet) { + requests.add(request); + responseObserver.onNext(((SampleQuerySet) 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 CreateSampleQuerySet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SampleQuerySet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSampleQuerySet( + UpdateSampleQuerySetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SampleQuerySet) { + requests.add(request); + responseObserver.onNext(((SampleQuerySet) 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 UpdateSampleQuerySet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SampleQuerySet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSampleQuerySet( + DeleteSampleQuerySetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSampleQuerySet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserEventServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserEventServiceImpl.java index 31330ac1e069..d72a08a5607b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserEventServiceImpl.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserEventServiceImpl.java @@ -102,6 +102,27 @@ public void collectUserEvent( } } + @Override + public void purgeUserEvents( + PurgeUserEventsRequest 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 PurgeUserEvents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void importUserEvents( ImportUserEventsRequest request, StreamObserver responseObserver) { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..9159beb143be --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceClientHttpJsonTest.java @@ -0,0 +1,605 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import static com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient.ListSampleQueriesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1beta.stub.HttpJsonSampleQueryServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SampleQueryServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static SampleQueryServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSampleQueryServiceStub.getMethodDescriptors(), + SampleQueryServiceSettings.getDefaultEndpoint()); + SampleQueryServiceSettings settings = + SampleQueryServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SampleQueryServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SampleQueryServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getSampleQueryTest() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + + SampleQuery actualResponse = client.getSampleQuery(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSampleQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + client.getSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSampleQueryTest2() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5395/locations/location-5395/sampleQuerySets/sampleQuerySet-5395/sampleQueries/sampleQuerie-5395"; + + SampleQuery actualResponse = client.getSampleQuery(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSampleQueryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5395/locations/location-5395/sampleQuerySets/sampleQuerySet-5395/sampleQueries/sampleQuerie-5395"; + client.getSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQueriesTest() throws Exception { + SampleQuery responsesElement = SampleQuery.newBuilder().build(); + ListSampleQueriesResponse expectedResponse = + ListSampleQueriesResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQueries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + + ListSampleQueriesPagedResponse pagedListResponse = client.listSampleQueries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQueriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSampleQueriesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + client.listSampleQueries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQueriesTest2() throws Exception { + SampleQuery responsesElement = SampleQuery.newBuilder().build(); + ListSampleQueriesResponse expectedResponse = + ListSampleQueriesResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQueries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-6140/locations/location-6140/sampleQuerySets/sampleQuerySet-6140"; + + ListSampleQueriesPagedResponse pagedListResponse = client.listSampleQueries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQueriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSampleQueriesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-6140/locations/location-6140/sampleQuerySets/sampleQuerySet-6140"; + client.listSampleQueries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQueryTest() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + + SampleQuery actualResponse = client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSampleQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQueryTest2() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-6140/locations/location-6140/sampleQuerySets/sampleQuerySet-6140"; + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + + SampleQuery actualResponse = client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSampleQueryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-6140/locations/location-6140/sampleQuerySets/sampleQuerySet-6140"; + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSampleQueryTest() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SampleQuery sampleQuery = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SampleQuery actualResponse = client.updateSampleQuery(sampleQuery, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSampleQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQuery sampleQuery = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSampleQuery(sampleQuery, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQueryTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + + client.deleteSampleQuery(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSampleQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + client.deleteSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQueryTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5395/locations/location-5395/sampleQuerySets/sampleQuerySet-5395/sampleQueries/sampleQuerie-5395"; + + client.deleteSampleQuery(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSampleQueryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5395/locations/location-5395/sampleQuerySets/sampleQuerySet-5395/sampleQueries/sampleQuerie-5395"; + client.deleteSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importSampleQueriesTest() throws Exception { + ImportSampleQueriesResponse expectedResponse = + ImportSampleQueriesResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importSampleQueriesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ImportSampleQueriesRequest request = + ImportSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + + ImportSampleQueriesResponse actualResponse = client.importSampleQueriesAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void importSampleQueriesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ImportSampleQueriesRequest request = + ImportSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + client.importSampleQueriesAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceClientTest.java new file mode 100644 index 000000000000..bbd7ebbbd6a1 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceClientTest.java @@ -0,0 +1,542 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import static com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient.ListSampleQueriesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SampleQueryServiceClientTest { + private static MockLocations mockLocations; + private static MockSampleQueryService mockSampleQueryService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private SampleQueryServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockSampleQueryService = new MockSampleQueryService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockSampleQueryService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SampleQueryServiceSettings settings = + SampleQueryServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SampleQueryServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getSampleQueryTest() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSampleQueryService.addResponse(expectedResponse); + + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + + SampleQuery actualResponse = client.getSampleQuery(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSampleQueryRequest actualRequest = ((GetSampleQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSampleQueryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + client.getSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSampleQueryTest2() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSampleQueryService.addResponse(expectedResponse); + + String name = "name3373707"; + + SampleQuery actualResponse = client.getSampleQuery(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSampleQueryRequest actualRequest = ((GetSampleQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSampleQueryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + String name = "name3373707"; + client.getSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQueriesTest() throws Exception { + SampleQuery responsesElement = SampleQuery.newBuilder().build(); + ListSampleQueriesResponse expectedResponse = + ListSampleQueriesResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQueries(Arrays.asList(responsesElement)) + .build(); + mockSampleQueryService.addResponse(expectedResponse); + + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + + ListSampleQueriesPagedResponse pagedListResponse = client.listSampleQueries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQueriesList().get(0), resources.get(0)); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSampleQueriesRequest actualRequest = ((ListSampleQueriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSampleQueriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + client.listSampleQueries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQueriesTest2() throws Exception { + SampleQuery responsesElement = SampleQuery.newBuilder().build(); + ListSampleQueriesResponse expectedResponse = + ListSampleQueriesResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQueries(Arrays.asList(responsesElement)) + .build(); + mockSampleQueryService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSampleQueriesPagedResponse pagedListResponse = client.listSampleQueries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQueriesList().get(0), resources.get(0)); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSampleQueriesRequest actualRequest = ((ListSampleQueriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSampleQueriesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSampleQueries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQueryTest() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSampleQueryService.addResponse(expectedResponse); + + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + + SampleQuery actualResponse = client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSampleQueryRequest actualRequest = ((CreateSampleQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(sampleQuery, actualRequest.getSampleQuery()); + Assert.assertEquals(sampleQueryId, actualRequest.getSampleQueryId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSampleQueryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQueryTest2() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSampleQueryService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + + SampleQuery actualResponse = client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSampleQueryRequest actualRequest = ((CreateSampleQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(sampleQuery, actualRequest.getSampleQuery()); + Assert.assertEquals(sampleQueryId, actualRequest.getSampleQueryId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSampleQueryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + String parent = "parent-995424086"; + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + client.createSampleQuery(parent, sampleQuery, sampleQueryId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSampleQueryTest() throws Exception { + SampleQuery expectedResponse = + SampleQuery.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSampleQueryService.addResponse(expectedResponse); + + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SampleQuery actualResponse = client.updateSampleQuery(sampleQuery, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSampleQueryRequest actualRequest = ((UpdateSampleQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(sampleQuery, actualRequest.getSampleQuery()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSampleQueryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSampleQuery(sampleQuery, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQueryTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSampleQueryService.addResponse(expectedResponse); + + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + + client.deleteSampleQuery(name); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSampleQueryRequest actualRequest = ((DeleteSampleQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSampleQueryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + client.deleteSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQueryTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSampleQueryService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteSampleQuery(name); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSampleQueryRequest actualRequest = ((DeleteSampleQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSampleQueryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + String name = "name3373707"; + client.deleteSampleQuery(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importSampleQueriesTest() throws Exception { + ImportSampleQueriesResponse expectedResponse = + ImportSampleQueriesResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importSampleQueriesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSampleQueryService.addResponse(resultOperation); + + ImportSampleQueriesRequest request = + ImportSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + + ImportSampleQueriesResponse actualResponse = client.importSampleQueriesAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQueryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportSampleQueriesRequest actualRequest = ((ImportSampleQueriesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getInlineSource(), actualRequest.getInlineSource()); + Assert.assertEquals(request.getGcsSource(), actualRequest.getGcsSource()); + Assert.assertEquals(request.getBigquerySource(), actualRequest.getBigquerySource()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getErrorConfig(), actualRequest.getErrorConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importSampleQueriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQueryService.addException(exception); + + try { + ImportSampleQueriesRequest request = + ImportSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + client.importSampleQueriesAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..64a59d06f56d --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceClientHttpJsonTest.java @@ -0,0 +1,534 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import static com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient.ListSampleQuerySetsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1beta.stub.HttpJsonSampleQuerySetServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SampleQuerySetServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static SampleQuerySetServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSampleQuerySetServiceStub.getMethodDescriptors(), + SampleQuerySetServiceSettings.getDefaultEndpoint()); + SampleQuerySetServiceSettings settings = + SampleQuerySetServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SampleQuerySetServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SampleQuerySetServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getSampleQuerySetTest() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + + SampleQuerySet actualResponse = client.getSampleQuerySet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSampleQuerySetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + client.getSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSampleQuerySetTest2() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9093/locations/location-9093/sampleQuerySets/sampleQuerySet-9093"; + + SampleQuerySet actualResponse = client.getSampleQuerySet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSampleQuerySetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9093/locations/location-9093/sampleQuerySets/sampleQuerySet-9093"; + client.getSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQuerySetsTest() throws Exception { + SampleQuerySet responsesElement = SampleQuerySet.newBuilder().build(); + ListSampleQuerySetsResponse expectedResponse = + ListSampleQuerySetsResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQuerySets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSampleQuerySetsPagedResponse pagedListResponse = client.listSampleQuerySets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQuerySetsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSampleQuerySetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSampleQuerySets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQuerySetsTest2() throws Exception { + SampleQuerySet responsesElement = SampleQuerySet.newBuilder().build(); + ListSampleQuerySetsResponse expectedResponse = + ListSampleQuerySetsResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQuerySets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListSampleQuerySetsPagedResponse pagedListResponse = client.listSampleQuerySets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQuerySetsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSampleQuerySetsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listSampleQuerySets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQuerySetTest() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + + SampleQuerySet actualResponse = + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSampleQuerySetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQuerySetTest2() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + + SampleQuerySet actualResponse = + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSampleQuerySetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSampleQuerySetTest() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + SampleQuerySet sampleQuerySet = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SampleQuerySet actualResponse = client.updateSampleQuerySet(sampleQuerySet, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSampleQuerySetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQuerySet sampleQuerySet = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSampleQuerySet(sampleQuerySet, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQuerySetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + + client.deleteSampleQuerySet(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSampleQuerySetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + client.deleteSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQuerySetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9093/locations/location-9093/sampleQuerySets/sampleQuerySet-9093"; + + client.deleteSampleQuerySet(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSampleQuerySetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9093/locations/location-9093/sampleQuerySets/sampleQuerySet-9093"; + client.deleteSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceClientTest.java new file mode 100644 index 000000000000..106c58b6c115 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceClientTest.java @@ -0,0 +1,478 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import static com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient.ListSampleQuerySetsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SampleQuerySetServiceClientTest { + private static MockLocations mockLocations; + private static MockSampleQuerySetService mockSampleQuerySetService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private SampleQuerySetServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockSampleQuerySetService = new MockSampleQuerySetService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockSampleQuerySetService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SampleQuerySetServiceSettings settings = + SampleQuerySetServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SampleQuerySetServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getSampleQuerySetTest() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + + SampleQuerySet actualResponse = client.getSampleQuerySet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSampleQuerySetRequest actualRequest = ((GetSampleQuerySetRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSampleQuerySetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + client.getSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSampleQuerySetTest2() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + String name = "name3373707"; + + SampleQuerySet actualResponse = client.getSampleQuerySet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSampleQuerySetRequest actualRequest = ((GetSampleQuerySetRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSampleQuerySetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + String name = "name3373707"; + client.getSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQuerySetsTest() throws Exception { + SampleQuerySet responsesElement = SampleQuerySet.newBuilder().build(); + ListSampleQuerySetsResponse expectedResponse = + ListSampleQuerySetsResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQuerySets(Arrays.asList(responsesElement)) + .build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSampleQuerySetsPagedResponse pagedListResponse = client.listSampleQuerySets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQuerySetsList().get(0), resources.get(0)); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSampleQuerySetsRequest actualRequest = ((ListSampleQuerySetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSampleQuerySetsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSampleQuerySets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSampleQuerySetsTest2() throws Exception { + SampleQuerySet responsesElement = SampleQuerySet.newBuilder().build(); + ListSampleQuerySetsResponse expectedResponse = + ListSampleQuerySetsResponse.newBuilder() + .setNextPageToken("") + .addAllSampleQuerySets(Arrays.asList(responsesElement)) + .build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSampleQuerySetsPagedResponse pagedListResponse = client.listSampleQuerySets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSampleQuerySetsList().get(0), resources.get(0)); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSampleQuerySetsRequest actualRequest = ((ListSampleQuerySetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSampleQuerySetsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSampleQuerySets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQuerySetTest() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + + SampleQuerySet actualResponse = + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSampleQuerySetRequest actualRequest = + ((CreateSampleQuerySetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(sampleQuerySet, actualRequest.getSampleQuerySet()); + Assert.assertEquals(sampleQuerySetId, actualRequest.getSampleQuerySetId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSampleQuerySetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSampleQuerySetTest2() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + + SampleQuerySet actualResponse = + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSampleQuerySetRequest actualRequest = + ((CreateSampleQuerySetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(sampleQuerySet, actualRequest.getSampleQuerySet()); + Assert.assertEquals(sampleQuerySetId, actualRequest.getSampleQuerySetId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSampleQuerySetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + String parent = "parent-995424086"; + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + client.createSampleQuerySet(parent, sampleQuerySet, sampleQuerySetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSampleQuerySetTest() throws Exception { + SampleQuerySet expectedResponse = + SampleQuerySet.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SampleQuerySet actualResponse = client.updateSampleQuerySet(sampleQuerySet, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSampleQuerySetRequest actualRequest = + ((UpdateSampleQuerySetRequest) actualRequests.get(0)); + + Assert.assertEquals(sampleQuerySet, actualRequest.getSampleQuerySet()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSampleQuerySetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSampleQuerySet(sampleQuerySet, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQuerySetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + + client.deleteSampleQuerySet(name); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSampleQuerySetRequest actualRequest = + ((DeleteSampleQuerySetRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSampleQuerySetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + client.deleteSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSampleQuerySetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSampleQuerySetService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteSampleQuerySet(name); + + List actualRequests = mockSampleQuerySetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSampleQuerySetRequest actualRequest = + ((DeleteSampleQuerySetRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSampleQuerySetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSampleQuerySetService.addException(exception); + + try { + String name = "name3373707"; + client.deleteSampleQuerySet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java index 2c7844d416cc..557b13d97b49 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java @@ -108,6 +108,8 @@ public void searchTest() throws Exception { .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") .setUserInfo(UserInfo.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .setRegionCode("regionCode-1991004415") .addAllFacetSpecs(new ArrayList()) .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) .putAllParams(new HashMap()) @@ -119,6 +121,14 @@ public void searchTest() throws Exception { .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) + .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .build(); SearchPagedResponse pagedListResponse = client.search(request); @@ -172,6 +182,8 @@ public void searchExceptionTest() throws Exception { .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") .setUserInfo(UserInfo.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .setRegionCode("regionCode-1991004415") .addAllFacetSpecs(new ArrayList()) .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) .putAllParams(new HashMap()) @@ -183,6 +195,14 @@ public void searchExceptionTest() throws Exception { .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) + .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .build(); client.search(request); Assert.fail("No exception raised"); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java index e1b8e8d6def9..dcecc9d24256 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java @@ -114,6 +114,8 @@ public void searchTest() throws Exception { .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") .setUserInfo(UserInfo.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .setRegionCode("regionCode-1991004415") .addAllFacetSpecs(new ArrayList()) .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) .putAllParams(new HashMap()) @@ -125,6 +127,14 @@ public void searchTest() throws Exception { .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) + .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .build(); SearchPagedResponse pagedListResponse = client.search(request); @@ -151,6 +161,8 @@ public void searchTest() throws Exception { Assert.assertEquals(request.getCanonicalFilter(), actualRequest.getCanonicalFilter()); Assert.assertEquals(request.getOrderBy(), actualRequest.getOrderBy()); Assert.assertEquals(request.getUserInfo(), actualRequest.getUserInfo()); + Assert.assertEquals(request.getLanguageCode(), actualRequest.getLanguageCode()); + Assert.assertEquals(request.getRegionCode(), actualRequest.getRegionCode()); Assert.assertEquals(request.getFacetSpecsList(), actualRequest.getFacetSpecsList()); Assert.assertEquals(request.getBoostSpec(), actualRequest.getBoostSpec()); Assert.assertEquals(request.getParamsMap(), actualRequest.getParamsMap()); @@ -162,6 +174,12 @@ public void searchTest() throws Exception { Assert.assertEquals(request.getRankingExpression(), actualRequest.getRankingExpression()); Assert.assertEquals(request.getSafeSearch(), actualRequest.getSafeSearch()); Assert.assertEquals(request.getUserLabelsMap(), actualRequest.getUserLabelsMap()); + Assert.assertEquals( + request.getNaturalLanguageQueryUnderstandingSpec(), + actualRequest.getNaturalLanguageQueryUnderstandingSpec()); + Assert.assertEquals(request.getSearchAsYouTypeSpec(), actualRequest.getSearchAsYouTypeSpec()); + Assert.assertEquals(request.getSession(), actualRequest.getSession()); + Assert.assertEquals(request.getSessionSpec(), actualRequest.getSessionSpec()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -194,6 +212,8 @@ public void searchExceptionTest() throws Exception { .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") .setUserInfo(UserInfo.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .setRegionCode("regionCode-1991004415") .addAllFacetSpecs(new ArrayList()) .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) .putAllParams(new HashMap()) @@ -205,6 +225,14 @@ public void searchExceptionTest() throws Exception { .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) + .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .build(); client.search(request); Assert.fail("No exception raised"); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientHttpJsonTest.java index 73904a5fbc5a..0a948c63c930 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientHttpJsonTest.java @@ -227,6 +227,69 @@ public void collectUserEventExceptionTest() throws Exception { } } + @Test + public void purgeUserEventsTest() throws Exception { + PurgeUserEventsResponse expectedResponse = + PurgeUserEventsResponse.newBuilder().setPurgeCount(575305851).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeUserEventsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + + PurgeUserEventsResponse actualResponse = client.purgeUserEventsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void purgeUserEventsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + client.purgeUserEventsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void importUserEventsTest() throws Exception { ImportUserEventsResponse expectedResponse = diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java index 61ac145f6b60..d6cc0171bdfc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java @@ -228,6 +228,68 @@ public void collectUserEventExceptionTest() throws Exception { } } + @Test + public void purgeUserEventsTest() throws Exception { + PurgeUserEventsResponse expectedResponse = + PurgeUserEventsResponse.newBuilder().setPurgeCount(575305851).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeUserEventsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockUserEventService.addResponse(resultOperation); + + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + + PurgeUserEventsResponse actualResponse = client.purgeUserEventsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserEventService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PurgeUserEventsRequest actualRequest = ((PurgeUserEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getForce(), actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void purgeUserEventsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserEventService.addException(exception); + + try { + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + client.purgeUserEventsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void importUserEventsTest() throws Exception { ImportUserEventsResponse expectedResponse = diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceGrpc.java new file mode 100644 index 000000000000..02bc387f0bfa --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceGrpc.java @@ -0,0 +1,771 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
      + * Service for managing
      + * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s,
      + * 
      + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class EvaluationServiceGrpc { + + private EvaluationServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1alpha.EvaluationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest, + com.google.cloud.discoveryengine.v1alpha.Evaluation> + getGetEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEvaluation", + requestType = com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.Evaluation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest, + com.google.cloud.discoveryengine.v1alpha.Evaluation> + getGetEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest, + com.google.cloud.discoveryengine.v1alpha.Evaluation> + getGetEvaluationMethod; + if ((getGetEvaluationMethod = EvaluationServiceGrpc.getGetEvaluationMethod) == null) { + synchronized (EvaluationServiceGrpc.class) { + if ((getGetEvaluationMethod = EvaluationServiceGrpc.getGetEvaluationMethod) == null) { + EvaluationServiceGrpc.getGetEvaluationMethod = + getGetEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.Evaluation + .getDefaultInstance())) + .setSchemaDescriptor( + new EvaluationServiceMethodDescriptorSupplier("GetEvaluation")) + .build(); + } + } + } + return getGetEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse> + getListEvaluationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEvaluations", + requestType = com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse> + getListEvaluationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse> + getListEvaluationsMethod; + if ((getListEvaluationsMethod = EvaluationServiceGrpc.getListEvaluationsMethod) == null) { + synchronized (EvaluationServiceGrpc.class) { + if ((getListEvaluationsMethod = EvaluationServiceGrpc.getListEvaluationsMethod) == null) { + EvaluationServiceGrpc.getListEvaluationsMethod = + getListEvaluationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEvaluations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new EvaluationServiceMethodDescriptorSupplier("ListEvaluations")) + .build(); + } + } + } + return getListEvaluationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest, + com.google.longrunning.Operation> + getCreateEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEvaluation", + requestType = com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest, + com.google.longrunning.Operation> + getCreateEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest, + com.google.longrunning.Operation> + getCreateEvaluationMethod; + if ((getCreateEvaluationMethod = EvaluationServiceGrpc.getCreateEvaluationMethod) == null) { + synchronized (EvaluationServiceGrpc.class) { + if ((getCreateEvaluationMethod = EvaluationServiceGrpc.getCreateEvaluationMethod) == null) { + EvaluationServiceGrpc.getCreateEvaluationMethod = + getCreateEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new EvaluationServiceMethodDescriptorSupplier("CreateEvaluation")) + .build(); + } + } + } + return getCreateEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse> + getListEvaluationResultsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEvaluationResults", + requestType = com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse> + getListEvaluationResultsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse> + getListEvaluationResultsMethod; + if ((getListEvaluationResultsMethod = EvaluationServiceGrpc.getListEvaluationResultsMethod) + == null) { + synchronized (EvaluationServiceGrpc.class) { + if ((getListEvaluationResultsMethod = EvaluationServiceGrpc.getListEvaluationResultsMethod) + == null) { + EvaluationServiceGrpc.getListEvaluationResultsMethod = + getListEvaluationResultsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListEvaluationResults")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new EvaluationServiceMethodDescriptorSupplier("ListEvaluationResults")) + .build(); + } + } + } + return getListEvaluationResultsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static EvaluationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EvaluationServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EvaluationServiceStub(channel, callOptions); + } + }; + return EvaluationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static EvaluationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EvaluationServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EvaluationServiceBlockingStub(channel, callOptions); + } + }; + return EvaluationServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static EvaluationServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EvaluationServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EvaluationServiceFutureStub(channel, callOptions); + } + }; + return EvaluationServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
      +   * Service for managing
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s,
      +   * 
      + */ + public interface AsyncService { + + /** + * + * + *
      +     * Gets a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].
      +     * 
      + */ + default void getEvaluation( + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEvaluationMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + */ + default void listEvaluations( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEvaluationsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].
      +     * Upon creation, the evaluation will be automatically triggered and begin
      +     * execution.
      +     * 
      + */ + default void createEvaluation( + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEvaluationMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets a list of results for a given a
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].
      +     * 
      + */ + default void listEvaluationResults( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEvaluationResultsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service EvaluationService. + * + *
      +   * Service for managing
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s,
      +   * 
      + */ + public abstract static class EvaluationServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return EvaluationServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service EvaluationService. + * + *
      +   * Service for managing
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s,
      +   * 
      + */ + public static final class EvaluationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private EvaluationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EvaluationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EvaluationServiceStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].
      +     * 
      + */ + public void getEvaluation( + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + */ + public void listEvaluations( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEvaluationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Creates a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].
      +     * Upon creation, the evaluation will be automatically triggered and begin
      +     * execution.
      +     * 
      + */ + public void createEvaluation( + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets a list of results for a given a
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].
      +     * 
      + */ + public void listEvaluationResults( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEvaluationResultsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service EvaluationService. + * + *
      +   * Service for managing
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s,
      +   * 
      + */ + public static final class EvaluationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private EvaluationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EvaluationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EvaluationServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1alpha.Evaluation getEvaluation( + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse listEvaluations( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEvaluationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].
      +     * Upon creation, the evaluation will be automatically triggered and begin
      +     * execution.
      +     * 
      + */ + public com.google.longrunning.Operation createEvaluation( + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets a list of results for a given a
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + listEvaluationResults( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEvaluationResultsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service EvaluationService. + * + *
      +   * Service for managing
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s,
      +   * 
      + */ + public static final class EvaluationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private EvaluationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EvaluationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EvaluationServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.Evaluation> + getEvaluation(com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse> + listEvaluations(com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEvaluationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].
      +     * Upon creation, the evaluation will be automatically triggered and begin
      +     * execution.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + createEvaluation(com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEvaluationMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets a list of results for a given a
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse> + listEvaluationResults( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEvaluationResultsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_EVALUATION = 0; + private static final int METHODID_LIST_EVALUATIONS = 1; + private static final int METHODID_CREATE_EVALUATION = 2; + private static final int METHODID_LIST_EVALUATION_RESULTS = 3; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_EVALUATION: + serviceImpl.getEvaluation( + (com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_EVALUATIONS: + serviceImpl.listEvaluations( + (com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse>) + responseObserver); + break; + case METHODID_CREATE_EVALUATION: + serviceImpl.createEvaluation( + (com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EVALUATION_RESULTS: + serviceImpl.listEvaluationResults( + (com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest, + com.google.cloud.discoveryengine.v1alpha.Evaluation>( + service, METHODID_GET_EVALUATION))) + .addMethod( + getListEvaluationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse>( + service, METHODID_LIST_EVALUATIONS))) + .addMethod( + getCreateEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_EVALUATION))) + .addMethod( + getListEvaluationResultsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse>( + service, METHODID_LIST_EVALUATION_RESULTS))) + .build(); + } + + private abstract static class EvaluationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + EvaluationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("EvaluationService"); + } + } + + private static final class EvaluationServiceFileDescriptorSupplier + extends EvaluationServiceBaseDescriptorSupplier { + EvaluationServiceFileDescriptorSupplier() {} + } + + private static final class EvaluationServiceMethodDescriptorSupplier + extends EvaluationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + EvaluationServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (EvaluationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new EvaluationServiceFileDescriptorSupplier()) + .addMethod(getGetEvaluationMethod()) + .addMethod(getListEvaluationsMethod()) + .addMethod(getCreateEvaluationMethod()) + .addMethod(getListEvaluationResultsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceGrpc.java new file mode 100644 index 000000000000..8c7b38b58cd7 --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceGrpc.java @@ -0,0 +1,1019 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
      + * Service for managing
      + * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s,
      + * 
      + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SampleQueryServiceGrpc { + + private SampleQueryServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1alpha.SampleQueryService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuery> + getGetSampleQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSampleQuery", + requestType = com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.SampleQuery.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuery> + getGetSampleQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuery> + getGetSampleQueryMethod; + if ((getGetSampleQueryMethod = SampleQueryServiceGrpc.getGetSampleQueryMethod) == null) { + synchronized (SampleQueryServiceGrpc.class) { + if ((getGetSampleQueryMethod = SampleQueryServiceGrpc.getGetSampleQueryMethod) == null) { + SampleQueryServiceGrpc.getGetSampleQueryMethod = + getGetSampleQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSampleQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.SampleQuery + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQueryServiceMethodDescriptorSupplier("GetSampleQuery")) + .build(); + } + } + } + return getGetSampleQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest, + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse> + getListSampleQueriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSampleQueries", + requestType = com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest, + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse> + getListSampleQueriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest, + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse> + getListSampleQueriesMethod; + if ((getListSampleQueriesMethod = SampleQueryServiceGrpc.getListSampleQueriesMethod) == null) { + synchronized (SampleQueryServiceGrpc.class) { + if ((getListSampleQueriesMethod = SampleQueryServiceGrpc.getListSampleQueriesMethod) + == null) { + SampleQueryServiceGrpc.getListSampleQueriesMethod = + getListSampleQueriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSampleQueries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQueryServiceMethodDescriptorSupplier("ListSampleQueries")) + .build(); + } + } + } + return getListSampleQueriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuery> + getCreateSampleQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSampleQuery", + requestType = com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.SampleQuery.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuery> + getCreateSampleQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuery> + getCreateSampleQueryMethod; + if ((getCreateSampleQueryMethod = SampleQueryServiceGrpc.getCreateSampleQueryMethod) == null) { + synchronized (SampleQueryServiceGrpc.class) { + if ((getCreateSampleQueryMethod = SampleQueryServiceGrpc.getCreateSampleQueryMethod) + == null) { + SampleQueryServiceGrpc.getCreateSampleQueryMethod = + getCreateSampleQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSampleQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.SampleQuery + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQueryServiceMethodDescriptorSupplier("CreateSampleQuery")) + .build(); + } + } + } + return getCreateSampleQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuery> + getUpdateSampleQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSampleQuery", + requestType = com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.SampleQuery.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuery> + getUpdateSampleQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuery> + getUpdateSampleQueryMethod; + if ((getUpdateSampleQueryMethod = SampleQueryServiceGrpc.getUpdateSampleQueryMethod) == null) { + synchronized (SampleQueryServiceGrpc.class) { + if ((getUpdateSampleQueryMethod = SampleQueryServiceGrpc.getUpdateSampleQueryMethod) + == null) { + SampleQueryServiceGrpc.getUpdateSampleQueryMethod = + getUpdateSampleQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSampleQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.SampleQuery + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQueryServiceMethodDescriptorSupplier("UpdateSampleQuery")) + .build(); + } + } + } + return getUpdateSampleQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest, + com.google.protobuf.Empty> + getDeleteSampleQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSampleQuery", + requestType = com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest, + com.google.protobuf.Empty> + getDeleteSampleQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest, + com.google.protobuf.Empty> + getDeleteSampleQueryMethod; + if ((getDeleteSampleQueryMethod = SampleQueryServiceGrpc.getDeleteSampleQueryMethod) == null) { + synchronized (SampleQueryServiceGrpc.class) { + if ((getDeleteSampleQueryMethod = SampleQueryServiceGrpc.getDeleteSampleQueryMethod) + == null) { + SampleQueryServiceGrpc.getDeleteSampleQueryMethod = + getDeleteSampleQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSampleQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SampleQueryServiceMethodDescriptorSupplier("DeleteSampleQuery")) + .build(); + } + } + } + return getDeleteSampleQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest, + com.google.longrunning.Operation> + getImportSampleQueriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportSampleQueries", + requestType = com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest, + com.google.longrunning.Operation> + getImportSampleQueriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest, + com.google.longrunning.Operation> + getImportSampleQueriesMethod; + if ((getImportSampleQueriesMethod = SampleQueryServiceGrpc.getImportSampleQueriesMethod) + == null) { + synchronized (SampleQueryServiceGrpc.class) { + if ((getImportSampleQueriesMethod = SampleQueryServiceGrpc.getImportSampleQueriesMethod) + == null) { + SampleQueryServiceGrpc.getImportSampleQueriesMethod = + getImportSampleQueriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ImportSampleQueries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SampleQueryServiceMethodDescriptorSupplier("ImportSampleQueries")) + .build(); + } + } + } + return getImportSampleQueriesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SampleQueryServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SampleQueryServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQueryServiceStub(channel, callOptions); + } + }; + return SampleQueryServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SampleQueryServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SampleQueryServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQueryServiceBlockingStub(channel, callOptions); + } + }; + return SampleQueryServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SampleQueryServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SampleQueryServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQueryServiceFutureStub(channel, callOptions); + } + }; + return SampleQueryServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
      +   * Service for managing
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s,
      +   * 
      + */ + public interface AsyncService { + + /** + * + * + *
      +     * Gets a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + */ + default void getSampleQuery( + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSampleQueryMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + */ + default void listSampleQueries( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSampleQueriesMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     * 
      + */ + default void createSampleQuery( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSampleQueryMethod(), responseObserver); + } + + /** + * + * + *
      +     * Updates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + */ + default void updateSampleQuery( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSampleQueryMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + */ + default void deleteSampleQuery( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSampleQueryMethod(), responseObserver); + } + + /** + * + * + *
      +     * Bulk import of multiple
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. Sample
      +     * queries that already exist may be deleted.
      +     * Note: It is possible for a subset of the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to be
      +     * successfully imported.
      +     * 
      + */ + default void importSampleQueries( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportSampleQueriesMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SampleQueryService. + * + *
      +   * Service for managing
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s,
      +   * 
      + */ + public abstract static class SampleQueryServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SampleQueryServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SampleQueryService. + * + *
      +   * Service for managing
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s,
      +   * 
      + */ + public static final class SampleQueryServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SampleQueryServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SampleQueryServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQueryServiceStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + */ + public void getSampleQuery( + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSampleQueryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + */ + public void listSampleQueries( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSampleQueriesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Creates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     * 
      + */ + public void createSampleQuery( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSampleQueryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Updates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + */ + public void updateSampleQuery( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSampleQueryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Deletes a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + */ + public void deleteSampleQuery( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSampleQueryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Bulk import of multiple
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. Sample
      +     * queries that already exist may be deleted.
      +     * Note: It is possible for a subset of the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to be
      +     * successfully imported.
      +     * 
      + */ + public void importSampleQueries( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportSampleQueriesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SampleQueryService. + * + *
      +   * Service for managing
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s,
      +   * 
      + */ + public static final class SampleQueryServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SampleQueryServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SampleQueryServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQueryServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQuery( + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSampleQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse listSampleQueries( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSampleQueriesMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery createSampleQuery( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSampleQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery updateSampleQuery( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSampleQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + */ + public com.google.protobuf.Empty deleteSampleQuery( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSampleQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Bulk import of multiple
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. Sample
      +     * queries that already exist may be deleted.
      +     * Note: It is possible for a subset of the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to be
      +     * successfully imported.
      +     * 
      + */ + public com.google.longrunning.Operation importSampleQueries( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportSampleQueriesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SampleQueryService. + * + *
      +   * Service for managing
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s,
      +   * 
      + */ + public static final class SampleQueryServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SampleQueryServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SampleQueryServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQueryServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.SampleQuery> + getSampleQuery(com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSampleQueryMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse> + listSampleQueries( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSampleQueriesMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.SampleQuery> + createSampleQuery( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSampleQueryMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Updates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.SampleQuery> + updateSampleQuery( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSampleQueryMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + deleteSampleQuery( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSampleQueryMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Bulk import of multiple
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. Sample
      +     * queries that already exist may be deleted.
      +     * Note: It is possible for a subset of the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to be
      +     * successfully imported.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + importSampleQueries( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportSampleQueriesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_SAMPLE_QUERY = 0; + private static final int METHODID_LIST_SAMPLE_QUERIES = 1; + private static final int METHODID_CREATE_SAMPLE_QUERY = 2; + private static final int METHODID_UPDATE_SAMPLE_QUERY = 3; + private static final int METHODID_DELETE_SAMPLE_QUERY = 4; + private static final int METHODID_IMPORT_SAMPLE_QUERIES = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_SAMPLE_QUERY: + serviceImpl.getSampleQuery( + (com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SAMPLE_QUERIES: + serviceImpl.listSampleQueries( + (com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse>) + responseObserver); + break; + case METHODID_CREATE_SAMPLE_QUERY: + serviceImpl.createSampleQuery( + (com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SAMPLE_QUERY: + serviceImpl.updateSampleQuery( + (com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SAMPLE_QUERY: + serviceImpl.deleteSampleQuery( + (com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_SAMPLE_QUERIES: + serviceImpl.importSampleQueries( + (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetSampleQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuery>( + service, METHODID_GET_SAMPLE_QUERY))) + .addMethod( + getListSampleQueriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest, + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse>( + service, METHODID_LIST_SAMPLE_QUERIES))) + .addMethod( + getCreateSampleQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuery>( + service, METHODID_CREATE_SAMPLE_QUERY))) + .addMethod( + getUpdateSampleQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuery>( + service, METHODID_UPDATE_SAMPLE_QUERY))) + .addMethod( + getDeleteSampleQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_SAMPLE_QUERY))) + .addMethod( + getImportSampleQueriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest, + com.google.longrunning.Operation>(service, METHODID_IMPORT_SAMPLE_QUERIES))) + .build(); + } + + private abstract static class SampleQueryServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SampleQueryServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SampleQueryService"); + } + } + + private static final class SampleQueryServiceFileDescriptorSupplier + extends SampleQueryServiceBaseDescriptorSupplier { + SampleQueryServiceFileDescriptorSupplier() {} + } + + private static final class SampleQueryServiceMethodDescriptorSupplier + extends SampleQueryServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SampleQueryServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SampleQueryServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SampleQueryServiceFileDescriptorSupplier()) + .addMethod(getGetSampleQueryMethod()) + .addMethod(getListSampleQueriesMethod()) + .addMethod(getCreateSampleQueryMethod()) + .addMethod(getUpdateSampleQueryMethod()) + .addMethod(getDeleteSampleQueryMethod()) + .addMethod(getImportSampleQueriesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceGrpc.java new file mode 100644 index 000000000000..87130ee4809d --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceGrpc.java @@ -0,0 +1,912 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
      + * Service for managing
      + * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s,
      + * 
      + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SampleQuerySetServiceGrpc { + + private SampleQuerySetServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1alpha.SampleQuerySetService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet> + getGetSampleQuerySetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSampleQuerySet", + requestType = com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet> + getGetSampleQuerySetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet> + getGetSampleQuerySetMethod; + if ((getGetSampleQuerySetMethod = SampleQuerySetServiceGrpc.getGetSampleQuerySetMethod) + == null) { + synchronized (SampleQuerySetServiceGrpc.class) { + if ((getGetSampleQuerySetMethod = SampleQuerySetServiceGrpc.getGetSampleQuerySetMethod) + == null) { + SampleQuerySetServiceGrpc.getGetSampleQuerySetMethod = + getGetSampleQuerySetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSampleQuerySet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQuerySetServiceMethodDescriptorSupplier("GetSampleQuerySet")) + .build(); + } + } + } + return getGetSampleQuerySetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest, + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse> + getListSampleQuerySetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSampleQuerySets", + requestType = com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest, + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse> + getListSampleQuerySetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest, + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse> + getListSampleQuerySetsMethod; + if ((getListSampleQuerySetsMethod = SampleQuerySetServiceGrpc.getListSampleQuerySetsMethod) + == null) { + synchronized (SampleQuerySetServiceGrpc.class) { + if ((getListSampleQuerySetsMethod = SampleQuerySetServiceGrpc.getListSampleQuerySetsMethod) + == null) { + SampleQuerySetServiceGrpc.getListSampleQuerySetsMethod = + getListSampleQuerySetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListSampleQuerySets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQuerySetServiceMethodDescriptorSupplier("ListSampleQuerySets")) + .build(); + } + } + } + return getListSampleQuerySetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet> + getCreateSampleQuerySetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSampleQuerySet", + requestType = com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet> + getCreateSampleQuerySetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet> + getCreateSampleQuerySetMethod; + if ((getCreateSampleQuerySetMethod = SampleQuerySetServiceGrpc.getCreateSampleQuerySetMethod) + == null) { + synchronized (SampleQuerySetServiceGrpc.class) { + if ((getCreateSampleQuerySetMethod = + SampleQuerySetServiceGrpc.getCreateSampleQuerySetMethod) + == null) { + SampleQuerySetServiceGrpc.getCreateSampleQuerySetMethod = + getCreateSampleQuerySetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateSampleQuerySet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQuerySetServiceMethodDescriptorSupplier("CreateSampleQuerySet")) + .build(); + } + } + } + return getCreateSampleQuerySetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet> + getUpdateSampleQuerySetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSampleQuerySet", + requestType = com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet> + getUpdateSampleQuerySetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet> + getUpdateSampleQuerySetMethod; + if ((getUpdateSampleQuerySetMethod = SampleQuerySetServiceGrpc.getUpdateSampleQuerySetMethod) + == null) { + synchronized (SampleQuerySetServiceGrpc.class) { + if ((getUpdateSampleQuerySetMethod = + SampleQuerySetServiceGrpc.getUpdateSampleQuerySetMethod) + == null) { + SampleQuerySetServiceGrpc.getUpdateSampleQuerySetMethod = + getUpdateSampleQuerySetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateSampleQuerySet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQuerySetServiceMethodDescriptorSupplier("UpdateSampleQuerySet")) + .build(); + } + } + } + return getUpdateSampleQuerySetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest, + com.google.protobuf.Empty> + getDeleteSampleQuerySetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSampleQuerySet", + requestType = com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest, + com.google.protobuf.Empty> + getDeleteSampleQuerySetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest, + com.google.protobuf.Empty> + getDeleteSampleQuerySetMethod; + if ((getDeleteSampleQuerySetMethod = SampleQuerySetServiceGrpc.getDeleteSampleQuerySetMethod) + == null) { + synchronized (SampleQuerySetServiceGrpc.class) { + if ((getDeleteSampleQuerySetMethod = + SampleQuerySetServiceGrpc.getDeleteSampleQuerySetMethod) + == null) { + SampleQuerySetServiceGrpc.getDeleteSampleQuerySetMethod = + getDeleteSampleQuerySetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteSampleQuerySet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SampleQuerySetServiceMethodDescriptorSupplier("DeleteSampleQuerySet")) + .build(); + } + } + } + return getDeleteSampleQuerySetMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SampleQuerySetServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SampleQuerySetServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQuerySetServiceStub(channel, callOptions); + } + }; + return SampleQuerySetServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SampleQuerySetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SampleQuerySetServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQuerySetServiceBlockingStub(channel, callOptions); + } + }; + return SampleQuerySetServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SampleQuerySetServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SampleQuerySetServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQuerySetServiceFutureStub(channel, callOptions); + } + }; + return SampleQuerySetServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
      +   * Service for managing
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s,
      +   * 
      + */ + public interface AsyncService { + + /** + * + * + *
      +     * Gets a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + */ + default void getSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSampleQuerySetMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + */ + default void listSampleQuerySets( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSampleQuerySetsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]
      +     * 
      + */ + default void createSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSampleQuerySetMethod(), responseObserver); + } + + /** + * + * + *
      +     * Updates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + */ + default void updateSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSampleQuerySetMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + */ + default void deleteSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSampleQuerySetMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SampleQuerySetService. + * + *
      +   * Service for managing
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s,
      +   * 
      + */ + public abstract static class SampleQuerySetServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SampleQuerySetServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SampleQuerySetService. + * + *
      +   * Service for managing
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s,
      +   * 
      + */ + public static final class SampleQuerySetServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SampleQuerySetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SampleQuerySetServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQuerySetServiceStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + */ + public void getSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSampleQuerySetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + */ + public void listSampleQuerySets( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSampleQuerySetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Creates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]
      +     * 
      + */ + public void createSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSampleQuerySetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Updates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + */ + public void updateSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSampleQuerySetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Deletes a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + */ + public void deleteSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSampleQuerySetMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SampleQuerySetService. + * + *
      +   * Service for managing
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s,
      +   * 
      + */ + public static final class SampleQuerySetServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SampleQuerySetServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SampleQuerySetServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQuerySetServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSampleQuerySetMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse listSampleQuerySets( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSampleQuerySetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet createSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSampleQuerySetMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet updateSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSampleQuerySetMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + */ + public com.google.protobuf.Empty deleteSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSampleQuerySetMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * SampleQuerySetService. + * + *
      +   * Service for managing
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s,
      +   * 
      + */ + public static final class SampleQuerySetServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SampleQuerySetServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SampleQuerySetServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQuerySetServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet> + getSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSampleQuerySetMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse> + listSampleQuerySets( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSampleQuerySetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet> + createSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSampleQuerySetMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Updates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet> + updateSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSampleQuerySetMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + deleteSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSampleQuerySetMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_SAMPLE_QUERY_SET = 0; + private static final int METHODID_LIST_SAMPLE_QUERY_SETS = 1; + private static final int METHODID_CREATE_SAMPLE_QUERY_SET = 2; + private static final int METHODID_UPDATE_SAMPLE_QUERY_SET = 3; + private static final int METHODID_DELETE_SAMPLE_QUERY_SET = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_SAMPLE_QUERY_SET: + serviceImpl.getSampleQuerySet( + (com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SAMPLE_QUERY_SETS: + serviceImpl.listSampleQuerySets( + (com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse>) + responseObserver); + break; + case METHODID_CREATE_SAMPLE_QUERY_SET: + serviceImpl.createSampleQuerySet( + (com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SAMPLE_QUERY_SET: + serviceImpl.updateSampleQuerySet( + (com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SAMPLE_QUERY_SET: + serviceImpl.deleteSampleQuerySet( + (com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetSampleQuerySetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet>( + service, METHODID_GET_SAMPLE_QUERY_SET))) + .addMethod( + getListSampleQuerySetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest, + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse>( + service, METHODID_LIST_SAMPLE_QUERY_SETS))) + .addMethod( + getCreateSampleQuerySetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet>( + service, METHODID_CREATE_SAMPLE_QUERY_SET))) + .addMethod( + getUpdateSampleQuerySetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet>( + service, METHODID_UPDATE_SAMPLE_QUERY_SET))) + .addMethod( + getDeleteSampleQuerySetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_SAMPLE_QUERY_SET))) + .build(); + } + + private abstract static class SampleQuerySetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SampleQuerySetServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SampleQuerySetService"); + } + } + + private static final class SampleQuerySetServiceFileDescriptorSupplier + extends SampleQuerySetServiceBaseDescriptorSupplier { + SampleQuerySetServiceFileDescriptorSupplier() {} + } + + private static final class SampleQuerySetServiceMethodDescriptorSupplier + extends SampleQuerySetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SampleQuerySetServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SampleQuerySetServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SampleQuerySetServiceFileDescriptorSupplier()) + .addMethod(getGetSampleQuerySetMethod()) + .addMethod(getListSampleQuerySetsMethod()) + .addMethod(getCreateSampleQuerySetMethod()) + .addMethod(getUpdateSampleQuerySetMethod()) + .addMethod(getDeleteSampleQuerySetMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java index f980b0edcb0e..440d425a8bb8 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java @@ -191,6 +191,111 @@ private CompletionServiceGrpc() {} return getPurgeSuggestionDenyListEntriesMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest, + com.google.longrunning.Operation> + getImportCompletionSuggestionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportCompletionSuggestions", + requestType = + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest, + com.google.longrunning.Operation> + getImportCompletionSuggestionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest, + com.google.longrunning.Operation> + getImportCompletionSuggestionsMethod; + if ((getImportCompletionSuggestionsMethod = + CompletionServiceGrpc.getImportCompletionSuggestionsMethod) + == null) { + synchronized (CompletionServiceGrpc.class) { + if ((getImportCompletionSuggestionsMethod = + CompletionServiceGrpc.getImportCompletionSuggestionsMethod) + == null) { + CompletionServiceGrpc.getImportCompletionSuggestionsMethod = + getImportCompletionSuggestionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ImportCompletionSuggestions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta + .ImportCompletionSuggestionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CompletionServiceMethodDescriptorSupplier( + "ImportCompletionSuggestions")) + .build(); + } + } + } + return getImportCompletionSuggestionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest, + com.google.longrunning.Operation> + getPurgeCompletionSuggestionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeCompletionSuggestions", + requestType = com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest, + com.google.longrunning.Operation> + getPurgeCompletionSuggestionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest, + com.google.longrunning.Operation> + getPurgeCompletionSuggestionsMethod; + if ((getPurgeCompletionSuggestionsMethod = + CompletionServiceGrpc.getPurgeCompletionSuggestionsMethod) + == null) { + synchronized (CompletionServiceGrpc.class) { + if ((getPurgeCompletionSuggestionsMethod = + CompletionServiceGrpc.getPurgeCompletionSuggestionsMethod) + == null) { + CompletionServiceGrpc.getPurgeCompletionSuggestionsMethod = + getPurgeCompletionSuggestionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "PurgeCompletionSuggestions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta + .PurgeCompletionSuggestionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CompletionServiceMethodDescriptorSupplier( + "PurgeCompletionSuggestions")) + .build(); + } + } + } + return getPurgeCompletionSuggestionsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static CompletionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -287,6 +392,38 @@ default void purgeSuggestionDenyListEntries( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getPurgeSuggestionDenyListEntriesMethod(), responseObserver); } + + /** + * + * + *
      +     * Imports
      +     * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +     * for a DataStore.
      +     * 
      + */ + default void importCompletionSuggestions( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportCompletionSuggestionsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Permanently deletes all
      +     * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +     * for a DataStore.
      +     * 
      + */ + default void purgeCompletionSuggestions( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPurgeCompletionSuggestionsMethod(), responseObserver); + } } /** @@ -376,6 +513,42 @@ public void purgeSuggestionDenyListEntries( request, responseObserver); } + + /** + * + * + *
      +     * Imports
      +     * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +     * for a DataStore.
      +     * 
      + */ + public void importCompletionSuggestions( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportCompletionSuggestionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Permanently deletes all
      +     * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +     * for a DataStore.
      +     * 
      + */ + public void purgeCompletionSuggestions( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPurgeCompletionSuggestionsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -440,6 +613,36 @@ public com.google.longrunning.Operation purgeSuggestionDenyListEntries( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPurgeSuggestionDenyListEntriesMethod(), getCallOptions(), request); } + + /** + * + * + *
      +     * Imports
      +     * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +     * for a DataStore.
      +     * 
      + */ + public com.google.longrunning.Operation importCompletionSuggestions( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportCompletionSuggestionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Permanently deletes all
      +     * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +     * for a DataStore.
      +     * 
      + */ + public com.google.longrunning.Operation purgeCompletionSuggestions( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeCompletionSuggestionsMethod(), getCallOptions(), request); + } } /** @@ -509,11 +712,45 @@ protected CompletionServiceFutureStub build( getChannel().newCall(getPurgeSuggestionDenyListEntriesMethod(), getCallOptions()), request); } + + /** + * + * + *
      +     * Imports
      +     * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +     * for a DataStore.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + importCompletionSuggestions( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportCompletionSuggestionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Permanently deletes all
      +     * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +     * for a DataStore.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + purgeCompletionSuggestions( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPurgeCompletionSuggestionsMethod(), getCallOptions()), request); + } } private static final int METHODID_COMPLETE_QUERY = 0; private static final int METHODID_IMPORT_SUGGESTION_DENY_LIST_ENTRIES = 1; private static final int METHODID_PURGE_SUGGESTION_DENY_LIST_ENTRIES = 2; + private static final int METHODID_IMPORT_COMPLETION_SUGGESTIONS = 3; + private static final int METHODID_PURGE_COMPLETION_SUGGESTIONS = 4; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -551,6 +788,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_IMPORT_COMPLETION_SUGGESTIONS: + serviceImpl.importCompletionSuggestions( + (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PURGE_COMPLETION_SUGGESTIONS: + serviceImpl.purgeCompletionSuggestions( + (com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -590,6 +837,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest, com.google.longrunning.Operation>( service, METHODID_PURGE_SUGGESTION_DENY_LIST_ENTRIES))) + .addMethod( + getImportCompletionSuggestionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest, + com.google.longrunning.Operation>( + service, METHODID_IMPORT_COMPLETION_SUGGESTIONS))) + .addMethod( + getPurgeCompletionSuggestionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest, + com.google.longrunning.Operation>( + service, METHODID_PURGE_COMPLETION_SUGGESTIONS))) .build(); } @@ -644,6 +905,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCompleteQueryMethod()) .addMethod(getImportSuggestionDenyListEntriesMethod()) .addMethod(getPurgeSuggestionDenyListEntriesMethod()) + .addMethod(getImportCompletionSuggestionsMethod()) + .addMethod(getPurgeCompletionSuggestionsMethod()) .build(); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceGrpc.java new file mode 100644 index 000000000000..b39950ba2607 --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceGrpc.java @@ -0,0 +1,769 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.discoveryengine.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
      + * Service for managing
      + * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s,
      + * 
      + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1beta/evaluation_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class EvaluationServiceGrpc { + + private EvaluationServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1beta.EvaluationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest, + com.google.cloud.discoveryengine.v1beta.Evaluation> + getGetEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEvaluation", + requestType = com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.Evaluation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest, + com.google.cloud.discoveryengine.v1beta.Evaluation> + getGetEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest, + com.google.cloud.discoveryengine.v1beta.Evaluation> + getGetEvaluationMethod; + if ((getGetEvaluationMethod = EvaluationServiceGrpc.getGetEvaluationMethod) == null) { + synchronized (EvaluationServiceGrpc.class) { + if ((getGetEvaluationMethod = EvaluationServiceGrpc.getGetEvaluationMethod) == null) { + EvaluationServiceGrpc.getGetEvaluationMethod = + getGetEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.Evaluation + .getDefaultInstance())) + .setSchemaDescriptor( + new EvaluationServiceMethodDescriptorSupplier("GetEvaluation")) + .build(); + } + } + } + return getGetEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest, + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse> + getListEvaluationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEvaluations", + requestType = com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest, + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse> + getListEvaluationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest, + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse> + getListEvaluationsMethod; + if ((getListEvaluationsMethod = EvaluationServiceGrpc.getListEvaluationsMethod) == null) { + synchronized (EvaluationServiceGrpc.class) { + if ((getListEvaluationsMethod = EvaluationServiceGrpc.getListEvaluationsMethod) == null) { + EvaluationServiceGrpc.getListEvaluationsMethod = + getListEvaluationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEvaluations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new EvaluationServiceMethodDescriptorSupplier("ListEvaluations")) + .build(); + } + } + } + return getListEvaluationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest, + com.google.longrunning.Operation> + getCreateEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEvaluation", + requestType = com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest, + com.google.longrunning.Operation> + getCreateEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest, + com.google.longrunning.Operation> + getCreateEvaluationMethod; + if ((getCreateEvaluationMethod = EvaluationServiceGrpc.getCreateEvaluationMethod) == null) { + synchronized (EvaluationServiceGrpc.class) { + if ((getCreateEvaluationMethod = EvaluationServiceGrpc.getCreateEvaluationMethod) == null) { + EvaluationServiceGrpc.getCreateEvaluationMethod = + getCreateEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new EvaluationServiceMethodDescriptorSupplier("CreateEvaluation")) + .build(); + } + } + } + return getCreateEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse> + getListEvaluationResultsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEvaluationResults", + requestType = com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse> + getListEvaluationResultsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse> + getListEvaluationResultsMethod; + if ((getListEvaluationResultsMethod = EvaluationServiceGrpc.getListEvaluationResultsMethod) + == null) { + synchronized (EvaluationServiceGrpc.class) { + if ((getListEvaluationResultsMethod = EvaluationServiceGrpc.getListEvaluationResultsMethod) + == null) { + EvaluationServiceGrpc.getListEvaluationResultsMethod = + getListEvaluationResultsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListEvaluationResults")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new EvaluationServiceMethodDescriptorSupplier("ListEvaluationResults")) + .build(); + } + } + } + return getListEvaluationResultsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static EvaluationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EvaluationServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EvaluationServiceStub(channel, callOptions); + } + }; + return EvaluationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static EvaluationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EvaluationServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EvaluationServiceBlockingStub(channel, callOptions); + } + }; + return EvaluationServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static EvaluationServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EvaluationServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EvaluationServiceFutureStub(channel, callOptions); + } + }; + return EvaluationServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
      +   * Service for managing
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s,
      +   * 
      + */ + public interface AsyncService { + + /** + * + * + *
      +     * Gets a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
      +     * 
      + */ + default void getEvaluation( + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEvaluationMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + */ + default void listEvaluations( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEvaluationsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
      +     * Upon creation, the evaluation will be automatically triggered and begin
      +     * execution.
      +     * 
      + */ + default void createEvaluation( + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEvaluationMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets a list of results for a given a
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
      +     * 
      + */ + default void listEvaluationResults( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEvaluationResultsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service EvaluationService. + * + *
      +   * Service for managing
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s,
      +   * 
      + */ + public abstract static class EvaluationServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return EvaluationServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service EvaluationService. + * + *
      +   * Service for managing
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s,
      +   * 
      + */ + public static final class EvaluationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private EvaluationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EvaluationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EvaluationServiceStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
      +     * 
      + */ + public void getEvaluation( + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + */ + public void listEvaluations( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEvaluationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Creates a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
      +     * Upon creation, the evaluation will be automatically triggered and begin
      +     * execution.
      +     * 
      + */ + public void createEvaluation( + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets a list of results for a given a
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
      +     * 
      + */ + public void listEvaluationResults( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEvaluationResultsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service EvaluationService. + * + *
      +   * Service for managing
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s,
      +   * 
      + */ + public static final class EvaluationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private EvaluationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EvaluationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EvaluationServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1beta.Evaluation getEvaluation( + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse listEvaluations( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEvaluationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
      +     * Upon creation, the evaluation will be automatically triggered and begin
      +     * execution.
      +     * 
      + */ + public com.google.longrunning.Operation createEvaluation( + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets a list of results for a given a
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + listEvaluationResults( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEvaluationResultsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service EvaluationService. + * + *
      +   * Service for managing
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s,
      +   * 
      + */ + public static final class EvaluationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private EvaluationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EvaluationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EvaluationServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.Evaluation> + getEvaluation(com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse> + listEvaluations(com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEvaluationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
      +     * Upon creation, the evaluation will be automatically triggered and begin
      +     * execution.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + createEvaluation(com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEvaluationMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets a list of results for a given a
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse> + listEvaluationResults( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEvaluationResultsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_EVALUATION = 0; + private static final int METHODID_LIST_EVALUATIONS = 1; + private static final int METHODID_CREATE_EVALUATION = 2; + private static final int METHODID_LIST_EVALUATION_RESULTS = 3; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_EVALUATION: + serviceImpl.getEvaluation( + (com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_EVALUATIONS: + serviceImpl.listEvaluations( + (com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse>) + responseObserver); + break; + case METHODID_CREATE_EVALUATION: + serviceImpl.createEvaluation( + (com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EVALUATION_RESULTS: + serviceImpl.listEvaluationResults( + (com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest, + com.google.cloud.discoveryengine.v1beta.Evaluation>( + service, METHODID_GET_EVALUATION))) + .addMethod( + getListEvaluationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest, + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse>( + service, METHODID_LIST_EVALUATIONS))) + .addMethod( + getCreateEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_EVALUATION))) + .addMethod( + getListEvaluationResultsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse>( + service, METHODID_LIST_EVALUATION_RESULTS))) + .build(); + } + + private abstract static class EvaluationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + EvaluationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("EvaluationService"); + } + } + + private static final class EvaluationServiceFileDescriptorSupplier + extends EvaluationServiceBaseDescriptorSupplier { + EvaluationServiceFileDescriptorSupplier() {} + } + + private static final class EvaluationServiceMethodDescriptorSupplier + extends EvaluationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + EvaluationServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (EvaluationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new EvaluationServiceFileDescriptorSupplier()) + .addMethod(getGetEvaluationMethod()) + .addMethod(getListEvaluationsMethod()) + .addMethod(getCreateEvaluationMethod()) + .addMethod(getListEvaluationResultsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceGrpc.java new file mode 100644 index 000000000000..14ced9a65033 --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceGrpc.java @@ -0,0 +1,1019 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.discoveryengine.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
      + * Service for managing
      + * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s,
      + * 
      + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1beta/sample_query_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SampleQueryServiceGrpc { + + private SampleQueryServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1beta.SampleQueryService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuery> + getGetSampleQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSampleQuery", + requestType = com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.SampleQuery.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuery> + getGetSampleQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuery> + getGetSampleQueryMethod; + if ((getGetSampleQueryMethod = SampleQueryServiceGrpc.getGetSampleQueryMethod) == null) { + synchronized (SampleQueryServiceGrpc.class) { + if ((getGetSampleQueryMethod = SampleQueryServiceGrpc.getGetSampleQueryMethod) == null) { + SampleQueryServiceGrpc.getGetSampleQueryMethod = + getGetSampleQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSampleQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.SampleQuery + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQueryServiceMethodDescriptorSupplier("GetSampleQuery")) + .build(); + } + } + } + return getGetSampleQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest, + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse> + getListSampleQueriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSampleQueries", + requestType = com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest, + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse> + getListSampleQueriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest, + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse> + getListSampleQueriesMethod; + if ((getListSampleQueriesMethod = SampleQueryServiceGrpc.getListSampleQueriesMethod) == null) { + synchronized (SampleQueryServiceGrpc.class) { + if ((getListSampleQueriesMethod = SampleQueryServiceGrpc.getListSampleQueriesMethod) + == null) { + SampleQueryServiceGrpc.getListSampleQueriesMethod = + getListSampleQueriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSampleQueries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQueryServiceMethodDescriptorSupplier("ListSampleQueries")) + .build(); + } + } + } + return getListSampleQueriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuery> + getCreateSampleQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSampleQuery", + requestType = com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.SampleQuery.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuery> + getCreateSampleQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuery> + getCreateSampleQueryMethod; + if ((getCreateSampleQueryMethod = SampleQueryServiceGrpc.getCreateSampleQueryMethod) == null) { + synchronized (SampleQueryServiceGrpc.class) { + if ((getCreateSampleQueryMethod = SampleQueryServiceGrpc.getCreateSampleQueryMethod) + == null) { + SampleQueryServiceGrpc.getCreateSampleQueryMethod = + getCreateSampleQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSampleQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.SampleQuery + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQueryServiceMethodDescriptorSupplier("CreateSampleQuery")) + .build(); + } + } + } + return getCreateSampleQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuery> + getUpdateSampleQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSampleQuery", + requestType = com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.SampleQuery.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuery> + getUpdateSampleQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuery> + getUpdateSampleQueryMethod; + if ((getUpdateSampleQueryMethod = SampleQueryServiceGrpc.getUpdateSampleQueryMethod) == null) { + synchronized (SampleQueryServiceGrpc.class) { + if ((getUpdateSampleQueryMethod = SampleQueryServiceGrpc.getUpdateSampleQueryMethod) + == null) { + SampleQueryServiceGrpc.getUpdateSampleQueryMethod = + getUpdateSampleQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSampleQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.SampleQuery + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQueryServiceMethodDescriptorSupplier("UpdateSampleQuery")) + .build(); + } + } + } + return getUpdateSampleQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest, + com.google.protobuf.Empty> + getDeleteSampleQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSampleQuery", + requestType = com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest, + com.google.protobuf.Empty> + getDeleteSampleQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest, + com.google.protobuf.Empty> + getDeleteSampleQueryMethod; + if ((getDeleteSampleQueryMethod = SampleQueryServiceGrpc.getDeleteSampleQueryMethod) == null) { + synchronized (SampleQueryServiceGrpc.class) { + if ((getDeleteSampleQueryMethod = SampleQueryServiceGrpc.getDeleteSampleQueryMethod) + == null) { + SampleQueryServiceGrpc.getDeleteSampleQueryMethod = + getDeleteSampleQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSampleQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SampleQueryServiceMethodDescriptorSupplier("DeleteSampleQuery")) + .build(); + } + } + } + return getDeleteSampleQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest, + com.google.longrunning.Operation> + getImportSampleQueriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportSampleQueries", + requestType = com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest, + com.google.longrunning.Operation> + getImportSampleQueriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest, + com.google.longrunning.Operation> + getImportSampleQueriesMethod; + if ((getImportSampleQueriesMethod = SampleQueryServiceGrpc.getImportSampleQueriesMethod) + == null) { + synchronized (SampleQueryServiceGrpc.class) { + if ((getImportSampleQueriesMethod = SampleQueryServiceGrpc.getImportSampleQueriesMethod) + == null) { + SampleQueryServiceGrpc.getImportSampleQueriesMethod = + getImportSampleQueriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ImportSampleQueries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SampleQueryServiceMethodDescriptorSupplier("ImportSampleQueries")) + .build(); + } + } + } + return getImportSampleQueriesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SampleQueryServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SampleQueryServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQueryServiceStub(channel, callOptions); + } + }; + return SampleQueryServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SampleQueryServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SampleQueryServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQueryServiceBlockingStub(channel, callOptions); + } + }; + return SampleQueryServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SampleQueryServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SampleQueryServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQueryServiceFutureStub(channel, callOptions); + } + }; + return SampleQueryServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
      +   * Service for managing
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s,
      +   * 
      + */ + public interface AsyncService { + + /** + * + * + *
      +     * Gets a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + */ + default void getSampleQuery( + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSampleQueryMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + */ + default void listSampleQueries( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSampleQueriesMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     * 
      + */ + default void createSampleQuery( + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSampleQueryMethod(), responseObserver); + } + + /** + * + * + *
      +     * Updates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + */ + default void updateSampleQuery( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSampleQueryMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + */ + default void deleteSampleQuery( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSampleQueryMethod(), responseObserver); + } + + /** + * + * + *
      +     * Bulk import of multiple
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. Sample
      +     * queries that already exist may be deleted.
      +     * Note: It is possible for a subset of the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to be
      +     * successfully imported.
      +     * 
      + */ + default void importSampleQueries( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportSampleQueriesMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SampleQueryService. + * + *
      +   * Service for managing
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s,
      +   * 
      + */ + public abstract static class SampleQueryServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SampleQueryServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SampleQueryService. + * + *
      +   * Service for managing
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s,
      +   * 
      + */ + public static final class SampleQueryServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SampleQueryServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SampleQueryServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQueryServiceStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + */ + public void getSampleQuery( + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSampleQueryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + */ + public void listSampleQueries( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSampleQueriesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Creates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     * 
      + */ + public void createSampleQuery( + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSampleQueryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Updates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + */ + public void updateSampleQuery( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSampleQueryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Deletes a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + */ + public void deleteSampleQuery( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSampleQueryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Bulk import of multiple
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. Sample
      +     * queries that already exist may be deleted.
      +     * Note: It is possible for a subset of the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to be
      +     * successfully imported.
      +     * 
      + */ + public void importSampleQueries( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportSampleQueriesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SampleQueryService. + * + *
      +   * Service for managing
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s,
      +   * 
      + */ + public static final class SampleQueryServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SampleQueryServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SampleQueryServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQueryServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQuery( + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSampleQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse listSampleQueries( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSampleQueriesMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery createSampleQuery( + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSampleQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery updateSampleQuery( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSampleQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + */ + public com.google.protobuf.Empty deleteSampleQuery( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSampleQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Bulk import of multiple
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. Sample
      +     * queries that already exist may be deleted.
      +     * Note: It is possible for a subset of the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to be
      +     * successfully imported.
      +     * 
      + */ + public com.google.longrunning.Operation importSampleQueries( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportSampleQueriesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SampleQueryService. + * + *
      +   * Service for managing
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s,
      +   * 
      + */ + public static final class SampleQueryServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SampleQueryServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SampleQueryServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQueryServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.SampleQuery> + getSampleQuery(com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSampleQueryMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse> + listSampleQueries( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSampleQueriesMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.SampleQuery> + createSampleQuery( + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSampleQueryMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Updates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.SampleQuery> + updateSampleQuery( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSampleQueryMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + deleteSampleQuery( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSampleQueryMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Bulk import of multiple
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. Sample
      +     * queries that already exist may be deleted.
      +     * Note: It is possible for a subset of the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to be
      +     * successfully imported.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + importSampleQueries( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportSampleQueriesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_SAMPLE_QUERY = 0; + private static final int METHODID_LIST_SAMPLE_QUERIES = 1; + private static final int METHODID_CREATE_SAMPLE_QUERY = 2; + private static final int METHODID_UPDATE_SAMPLE_QUERY = 3; + private static final int METHODID_DELETE_SAMPLE_QUERY = 4; + private static final int METHODID_IMPORT_SAMPLE_QUERIES = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_SAMPLE_QUERY: + serviceImpl.getSampleQuery( + (com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SAMPLE_QUERIES: + serviceImpl.listSampleQueries( + (com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse>) + responseObserver); + break; + case METHODID_CREATE_SAMPLE_QUERY: + serviceImpl.createSampleQuery( + (com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SAMPLE_QUERY: + serviceImpl.updateSampleQuery( + (com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SAMPLE_QUERY: + serviceImpl.deleteSampleQuery( + (com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_SAMPLE_QUERIES: + serviceImpl.importSampleQueries( + (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetSampleQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuery>( + service, METHODID_GET_SAMPLE_QUERY))) + .addMethod( + getListSampleQueriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest, + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse>( + service, METHODID_LIST_SAMPLE_QUERIES))) + .addMethod( + getCreateSampleQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuery>( + service, METHODID_CREATE_SAMPLE_QUERY))) + .addMethod( + getUpdateSampleQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuery>( + service, METHODID_UPDATE_SAMPLE_QUERY))) + .addMethod( + getDeleteSampleQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_SAMPLE_QUERY))) + .addMethod( + getImportSampleQueriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest, + com.google.longrunning.Operation>(service, METHODID_IMPORT_SAMPLE_QUERIES))) + .build(); + } + + private abstract static class SampleQueryServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SampleQueryServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SampleQueryService"); + } + } + + private static final class SampleQueryServiceFileDescriptorSupplier + extends SampleQueryServiceBaseDescriptorSupplier { + SampleQueryServiceFileDescriptorSupplier() {} + } + + private static final class SampleQueryServiceMethodDescriptorSupplier + extends SampleQueryServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SampleQueryServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SampleQueryServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SampleQueryServiceFileDescriptorSupplier()) + .addMethod(getGetSampleQueryMethod()) + .addMethod(getListSampleQueriesMethod()) + .addMethod(getCreateSampleQueryMethod()) + .addMethod(getUpdateSampleQueryMethod()) + .addMethod(getDeleteSampleQueryMethod()) + .addMethod(getImportSampleQueriesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceGrpc.java new file mode 100644 index 000000000000..0a2f68d0f413 --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceGrpc.java @@ -0,0 +1,912 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.discoveryengine.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
      + * Service for managing
      + * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s,
      + * 
      + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SampleQuerySetServiceGrpc { + + private SampleQuerySetServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1beta.SampleQuerySetService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet> + getGetSampleQuerySetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSampleQuerySet", + requestType = com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.SampleQuerySet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet> + getGetSampleQuerySetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet> + getGetSampleQuerySetMethod; + if ((getGetSampleQuerySetMethod = SampleQuerySetServiceGrpc.getGetSampleQuerySetMethod) + == null) { + synchronized (SampleQuerySetServiceGrpc.class) { + if ((getGetSampleQuerySetMethod = SampleQuerySetServiceGrpc.getGetSampleQuerySetMethod) + == null) { + SampleQuerySetServiceGrpc.getGetSampleQuerySetMethod = + getGetSampleQuerySetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSampleQuerySet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.SampleQuerySet + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQuerySetServiceMethodDescriptorSupplier("GetSampleQuerySet")) + .build(); + } + } + } + return getGetSampleQuerySetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest, + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse> + getListSampleQuerySetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSampleQuerySets", + requestType = com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest, + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse> + getListSampleQuerySetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest, + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse> + getListSampleQuerySetsMethod; + if ((getListSampleQuerySetsMethod = SampleQuerySetServiceGrpc.getListSampleQuerySetsMethod) + == null) { + synchronized (SampleQuerySetServiceGrpc.class) { + if ((getListSampleQuerySetsMethod = SampleQuerySetServiceGrpc.getListSampleQuerySetsMethod) + == null) { + SampleQuerySetServiceGrpc.getListSampleQuerySetsMethod = + getListSampleQuerySetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListSampleQuerySets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQuerySetServiceMethodDescriptorSupplier("ListSampleQuerySets")) + .build(); + } + } + } + return getListSampleQuerySetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet> + getCreateSampleQuerySetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSampleQuerySet", + requestType = com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.SampleQuerySet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet> + getCreateSampleQuerySetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet> + getCreateSampleQuerySetMethod; + if ((getCreateSampleQuerySetMethod = SampleQuerySetServiceGrpc.getCreateSampleQuerySetMethod) + == null) { + synchronized (SampleQuerySetServiceGrpc.class) { + if ((getCreateSampleQuerySetMethod = + SampleQuerySetServiceGrpc.getCreateSampleQuerySetMethod) + == null) { + SampleQuerySetServiceGrpc.getCreateSampleQuerySetMethod = + getCreateSampleQuerySetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateSampleQuerySet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.SampleQuerySet + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQuerySetServiceMethodDescriptorSupplier("CreateSampleQuerySet")) + .build(); + } + } + } + return getCreateSampleQuerySetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet> + getUpdateSampleQuerySetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSampleQuerySet", + requestType = com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.SampleQuerySet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet> + getUpdateSampleQuerySetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet> + getUpdateSampleQuerySetMethod; + if ((getUpdateSampleQuerySetMethod = SampleQuerySetServiceGrpc.getUpdateSampleQuerySetMethod) + == null) { + synchronized (SampleQuerySetServiceGrpc.class) { + if ((getUpdateSampleQuerySetMethod = + SampleQuerySetServiceGrpc.getUpdateSampleQuerySetMethod) + == null) { + SampleQuerySetServiceGrpc.getUpdateSampleQuerySetMethod = + getUpdateSampleQuerySetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateSampleQuerySet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.SampleQuerySet + .getDefaultInstance())) + .setSchemaDescriptor( + new SampleQuerySetServiceMethodDescriptorSupplier("UpdateSampleQuerySet")) + .build(); + } + } + } + return getUpdateSampleQuerySetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest, + com.google.protobuf.Empty> + getDeleteSampleQuerySetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSampleQuerySet", + requestType = com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest, + com.google.protobuf.Empty> + getDeleteSampleQuerySetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest, + com.google.protobuf.Empty> + getDeleteSampleQuerySetMethod; + if ((getDeleteSampleQuerySetMethod = SampleQuerySetServiceGrpc.getDeleteSampleQuerySetMethod) + == null) { + synchronized (SampleQuerySetServiceGrpc.class) { + if ((getDeleteSampleQuerySetMethod = + SampleQuerySetServiceGrpc.getDeleteSampleQuerySetMethod) + == null) { + SampleQuerySetServiceGrpc.getDeleteSampleQuerySetMethod = + getDeleteSampleQuerySetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteSampleQuerySet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SampleQuerySetServiceMethodDescriptorSupplier("DeleteSampleQuerySet")) + .build(); + } + } + } + return getDeleteSampleQuerySetMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SampleQuerySetServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SampleQuerySetServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQuerySetServiceStub(channel, callOptions); + } + }; + return SampleQuerySetServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SampleQuerySetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SampleQuerySetServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQuerySetServiceBlockingStub(channel, callOptions); + } + }; + return SampleQuerySetServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SampleQuerySetServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SampleQuerySetServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQuerySetServiceFutureStub(channel, callOptions); + } + }; + return SampleQuerySetServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
      +   * Service for managing
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s,
      +   * 
      + */ + public interface AsyncService { + + /** + * + * + *
      +     * Gets a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + */ + default void getSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSampleQuerySetMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + */ + default void listSampleQuerySets( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSampleQuerySetsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * 
      + */ + default void createSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSampleQuerySetMethod(), responseObserver); + } + + /** + * + * + *
      +     * Updates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + */ + default void updateSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSampleQuerySetMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + */ + default void deleteSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSampleQuerySetMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SampleQuerySetService. + * + *
      +   * Service for managing
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s,
      +   * 
      + */ + public abstract static class SampleQuerySetServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SampleQuerySetServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SampleQuerySetService. + * + *
      +   * Service for managing
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s,
      +   * 
      + */ + public static final class SampleQuerySetServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SampleQuerySetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SampleQuerySetServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQuerySetServiceStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + */ + public void getSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSampleQuerySetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + */ + public void listSampleQuerySets( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSampleQuerySetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Creates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * 
      + */ + public void createSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSampleQuerySetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Updates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + */ + public void updateSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSampleQuerySetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Deletes a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + */ + public void deleteSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSampleQuerySetMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SampleQuerySetService. + * + *
      +   * Service for managing
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s,
      +   * 
      + */ + public static final class SampleQuerySetServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SampleQuerySetServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SampleQuerySetServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQuerySetServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet getSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSampleQuerySetMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse listSampleQuerySets( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSampleQuerySetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet createSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSampleQuerySetMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet updateSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSampleQuerySetMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + */ + public com.google.protobuf.Empty deleteSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSampleQuerySetMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * SampleQuerySetService. + * + *
      +   * Service for managing
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s,
      +   * 
      + */ + public static final class SampleQuerySetServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SampleQuerySetServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SampleQuerySetServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SampleQuerySetServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.SampleQuerySet> + getSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSampleQuerySetMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets a list of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse> + listSampleQuerySets( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSampleQuerySetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.SampleQuerySet> + createSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSampleQuerySetMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Updates a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.SampleQuerySet> + updateSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSampleQuerySetMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes a
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + deleteSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSampleQuerySetMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_SAMPLE_QUERY_SET = 0; + private static final int METHODID_LIST_SAMPLE_QUERY_SETS = 1; + private static final int METHODID_CREATE_SAMPLE_QUERY_SET = 2; + private static final int METHODID_UPDATE_SAMPLE_QUERY_SET = 3; + private static final int METHODID_DELETE_SAMPLE_QUERY_SET = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_SAMPLE_QUERY_SET: + serviceImpl.getSampleQuerySet( + (com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SAMPLE_QUERY_SETS: + serviceImpl.listSampleQuerySets( + (com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse>) + responseObserver); + break; + case METHODID_CREATE_SAMPLE_QUERY_SET: + serviceImpl.createSampleQuerySet( + (com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SAMPLE_QUERY_SET: + serviceImpl.updateSampleQuerySet( + (com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SAMPLE_QUERY_SET: + serviceImpl.deleteSampleQuerySet( + (com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetSampleQuerySetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet>( + service, METHODID_GET_SAMPLE_QUERY_SET))) + .addMethod( + getListSampleQuerySetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest, + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse>( + service, METHODID_LIST_SAMPLE_QUERY_SETS))) + .addMethod( + getCreateSampleQuerySetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet>( + service, METHODID_CREATE_SAMPLE_QUERY_SET))) + .addMethod( + getUpdateSampleQuerySetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet>( + service, METHODID_UPDATE_SAMPLE_QUERY_SET))) + .addMethod( + getDeleteSampleQuerySetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_SAMPLE_QUERY_SET))) + .build(); + } + + private abstract static class SampleQuerySetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SampleQuerySetServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SampleQuerySetService"); + } + } + + private static final class SampleQuerySetServiceFileDescriptorSupplier + extends SampleQuerySetServiceBaseDescriptorSupplier { + SampleQuerySetServiceFileDescriptorSupplier() {} + } + + private static final class SampleQuerySetServiceMethodDescriptorSupplier + extends SampleQuerySetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SampleQuerySetServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SampleQuerySetServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SampleQuerySetServiceFileDescriptorSupplier()) + .addMethod(getGetSampleQuerySetMethod()) + .addMethod(getListSampleQuerySetsMethod()) + .addMethod(getCreateSampleQuerySetMethod()) + .addMethod(getUpdateSampleQuerySetMethod()) + .addMethod(getDeleteSampleQuerySetMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java index 26416300352f..5dd61ebcbcc8 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java @@ -127,6 +127,52 @@ private UserEventServiceGrpc() {} return getCollectUserEventMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest, + com.google.longrunning.Operation> + getPurgeUserEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeUserEvents", + requestType = com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest, + com.google.longrunning.Operation> + getPurgeUserEventsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest, + com.google.longrunning.Operation> + getPurgeUserEventsMethod; + if ((getPurgeUserEventsMethod = UserEventServiceGrpc.getPurgeUserEventsMethod) == null) { + synchronized (UserEventServiceGrpc.class) { + if ((getPurgeUserEventsMethod = UserEventServiceGrpc.getPurgeUserEventsMethod) == null) { + UserEventServiceGrpc.getPurgeUserEventsMethod = + getPurgeUserEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeUserEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new UserEventServiceMethodDescriptorSupplier("PurgeUserEvents")) + .build(); + } + } + } + return getPurgeUserEventsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest, com.google.longrunning.Operation> @@ -255,6 +301,23 @@ default void collectUserEvent( getCollectUserEventMethod(), responseObserver); } + /** + * + * + *
      +     * Deletes permanently all user events specified by the filter provided.
      +     * Depending on the number of events specified by the filter, this operation
      +     * could take hours or days to complete. To test a filter, use the list
      +     * command first.
      +     * 
      + */ + default void purgeUserEvents( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPurgeUserEventsMethod(), responseObserver); + } + /** * * @@ -345,6 +408,25 @@ public void collectUserEvent( responseObserver); } + /** + * + * + *
      +     * Deletes permanently all user events specified by the filter provided.
      +     * Depending on the number of events specified by the filter, this operation
      +     * could take hours or days to complete. To test a filter, use the list
      +     * command first.
      +     * 
      + */ + public void purgeUserEvents( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPurgeUserEventsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -415,6 +497,22 @@ public com.google.api.HttpBody collectUserEvent( getChannel(), getCollectUserEventMethod(), getCallOptions(), request); } + /** + * + * + *
      +     * Deletes permanently all user events specified by the filter provided.
      +     * Depending on the number of events specified by the filter, this operation
      +     * could take hours or days to complete. To test a filter, use the list
      +     * command first.
      +     * 
      + */ + public com.google.longrunning.Operation purgeUserEvents( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeUserEventsMethod(), getCallOptions(), request); + } + /** * * @@ -483,6 +581,22 @@ protected UserEventServiceFutureStub build( getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), request); } + /** + * + * + *
      +     * Deletes permanently all user events specified by the filter provided.
      +     * Depending on the number of events specified by the filter, this operation
      +     * could take hours or days to complete. To test a filter, use the list
      +     * command first.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + purgeUserEvents(com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPurgeUserEventsMethod(), getCallOptions()), request); + } + /** * * @@ -504,7 +618,8 @@ protected UserEventServiceFutureStub build( private static final int METHODID_WRITE_USER_EVENT = 0; private static final int METHODID_COLLECT_USER_EVENT = 1; - private static final int METHODID_IMPORT_USER_EVENTS = 2; + private static final int METHODID_PURGE_USER_EVENTS = 2; + private static final int METHODID_IMPORT_USER_EVENTS = 3; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -534,6 +649,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_PURGE_USER_EVENTS: + serviceImpl.purgeUserEvents( + (com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_IMPORT_USER_EVENTS: serviceImpl.importUserEvents( (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest) request, @@ -570,6 +690,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest, com.google.api.HttpBody>(service, METHODID_COLLECT_USER_EVENT))) + .addMethod( + getPurgeUserEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest, + com.google.longrunning.Operation>(service, METHODID_PURGE_USER_EVENTS))) .addMethod( getImportUserEventsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -629,6 +755,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .setSchemaDescriptor(new UserEventServiceFileDescriptorSupplier()) .addMethod(getWriteUserEventMethod()) .addMethod(getCollectUserEventMethod()) + .addMethod(getPurgeUserEventsMethod()) .addMethod(getImportUserEventsMethod()) .build(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateEvaluationMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateEvaluationMetadata.java new file mode 100644 index 000000000000..1c7f3fe25735 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateEvaluationMetadata.java @@ -0,0 +1,445 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Metadata for
      + * [EvaluationService.CreateEvaluation][google.cloud.discoveryengine.v1alpha.EvaluationService.CreateEvaluation]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata} + */ +public final class CreateEvaluationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata) + CreateEvaluationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateEvaluationMetadata.newBuilder() to construct. + private CreateEvaluationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateEvaluationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateEvaluationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata.class, + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata other = + (com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Metadata for
      +   * [EvaluationService.CreateEvaluation][google.cloud.discoveryengine.v1alpha.EvaluationService.CreateEvaluation]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata) + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata.class, + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata build() { + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata result = + new com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata) + private static final com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata(); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEvaluationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateEvaluationMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateEvaluationMetadataOrBuilder.java new file mode 100644 index 000000000000..d7a68867c20a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateEvaluationMetadataOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface CreateEvaluationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateEvaluationRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateEvaluationRequest.java new file mode 100644 index 000000000000..0f16200f522f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateEvaluationRequest.java @@ -0,0 +1,975 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [EvaluationService.CreateEvaluation][google.cloud.discoveryengine.v1alpha.EvaluationService.CreateEvaluation]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest} + */ +public final class CreateEvaluationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest) + CreateEvaluationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateEvaluationRequest.newBuilder() to construct. + private CreateEvaluationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateEvaluationRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateEvaluationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest.class, + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVALUATION_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.Evaluation evaluation_; + /** + * + * + *
      +   * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +   * to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluation field is set. + */ + @java.lang.Override + public boolean hasEvaluation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +   * to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluation. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation getEvaluation() { + return evaluation_ == null + ? com.google.cloud.discoveryengine.v1alpha.Evaluation.getDefaultInstance() + : evaluation_; + } + /** + * + * + *
      +   * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +   * to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EvaluationOrBuilder getEvaluationOrBuilder() { + return evaluation_ == null + ? com.google.cloud.discoveryengine.v1alpha.Evaluation.getDefaultInstance() + : evaluation_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEvaluation()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEvaluation()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest other = + (com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasEvaluation() != other.hasEvaluation()) return false; + if (hasEvaluation()) { + if (!getEvaluation().equals(other.getEvaluation())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasEvaluation()) { + hash = (37 * hash) + EVALUATION_FIELD_NUMBER; + hash = (53 * hash) + getEvaluation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [EvaluationService.CreateEvaluation][google.cloud.discoveryengine.v1alpha.EvaluationService.CreateEvaluation]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest) + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest.class, + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEvaluationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + evaluation_ = null; + if (evaluationBuilder_ != null) { + evaluationBuilder_.dispose(); + evaluationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest build() { + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest result = + new com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.evaluation_ = evaluationBuilder_ == null ? evaluation_ : evaluationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEvaluation()) { + mergeEvaluation(other.getEvaluation()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEvaluationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.Evaluation evaluation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Evaluation, + com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder, + com.google.cloud.discoveryengine.v1alpha.EvaluationOrBuilder> + evaluationBuilder_; + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluation field is set. + */ + public boolean hasEvaluation() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluation. + */ + public com.google.cloud.discoveryengine.v1alpha.Evaluation getEvaluation() { + if (evaluationBuilder_ == null) { + return evaluation_ == null + ? com.google.cloud.discoveryengine.v1alpha.Evaluation.getDefaultInstance() + : evaluation_; + } else { + return evaluationBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEvaluation(com.google.cloud.discoveryengine.v1alpha.Evaluation value) { + if (evaluationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluation_ = value; + } else { + evaluationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEvaluation( + com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder builderForValue) { + if (evaluationBuilder_ == null) { + evaluation_ = builderForValue.build(); + } else { + evaluationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEvaluation(com.google.cloud.discoveryengine.v1alpha.Evaluation value) { + if (evaluationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && evaluation_ != null + && evaluation_ + != com.google.cloud.discoveryengine.v1alpha.Evaluation.getDefaultInstance()) { + getEvaluationBuilder().mergeFrom(value); + } else { + evaluation_ = value; + } + } else { + evaluationBuilder_.mergeFrom(value); + } + if (evaluation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEvaluation() { + bitField0_ = (bitField0_ & ~0x00000002); + evaluation_ = null; + if (evaluationBuilder_ != null) { + evaluationBuilder_.dispose(); + evaluationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder getEvaluationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEvaluationFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.EvaluationOrBuilder getEvaluationOrBuilder() { + if (evaluationBuilder_ != null) { + return evaluationBuilder_.getMessageOrBuilder(); + } else { + return evaluation_ == null + ? com.google.cloud.discoveryengine.v1alpha.Evaluation.getDefaultInstance() + : evaluation_; + } + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Evaluation, + com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder, + com.google.cloud.discoveryengine.v1alpha.EvaluationOrBuilder> + getEvaluationFieldBuilder() { + if (evaluationBuilder_ == null) { + evaluationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Evaluation, + com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder, + com.google.cloud.discoveryengine.v1alpha.EvaluationOrBuilder>( + getEvaluation(), getParentForChildren(), isClean()); + evaluation_ = null; + } + return evaluationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest) + private static final com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateEvaluationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateEvaluationRequestOrBuilder.java new file mode 100644 index 000000000000..c6cdb486984c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateEvaluationRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface CreateEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +   * to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluation field is set. + */ + boolean hasEvaluation(); + /** + * + * + *
      +   * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +   * to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluation. + */ + com.google.cloud.discoveryengine.v1alpha.Evaluation getEvaluation(); + /** + * + * + *
      +   * Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]
      +   * to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.EvaluationOrBuilder getEvaluationOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSampleQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSampleQueryRequest.java new file mode 100644 index 000000000000..71c919be788d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSampleQueryRequest.java @@ -0,0 +1,1279 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [SampleQueryService.CreateSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.CreateSampleQuery]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest} + */ +public final class CreateSampleQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest) + CreateSampleQueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSampleQueryRequest.newBuilder() to construct. + private CreateSampleQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSampleQueryRequest() { + parent_ = ""; + sampleQueryId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSampleQueryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAMPLE_QUERY_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.SampleQuery sampleQuery_; + /** + * + * + *
      +   * Required. The
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuery field is set. + */ + @java.lang.Override + public boolean hasSampleQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Required. The
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuery. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQuery() { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + /** + * + * + *
      +   * Required. The
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder getSampleQueryOrBuilder() { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + + public static final int SAMPLE_QUERY_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sampleQueryId_ = ""; + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], which will
      +   * become the final component of the
      +   * [SampleQuery.name][google.cloud.discoveryengine.v1alpha.SampleQuery.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s with the
      +   * same
      +   * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleQueryId. + */ + @java.lang.Override + public java.lang.String getSampleQueryId() { + java.lang.Object ref = sampleQueryId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleQueryId_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], which will
      +   * become the final component of the
      +   * [SampleQuery.name][google.cloud.discoveryengine.v1alpha.SampleQuery.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s with the
      +   * same
      +   * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sampleQueryId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSampleQueryIdBytes() { + java.lang.Object ref = sampleQueryId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleQueryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSampleQuery()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleQueryId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sampleQueryId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSampleQuery()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleQueryId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sampleQueryId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest other = + (com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasSampleQuery() != other.hasSampleQuery()) return false; + if (hasSampleQuery()) { + if (!getSampleQuery().equals(other.getSampleQuery())) return false; + } + if (!getSampleQueryId().equals(other.getSampleQueryId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSampleQuery()) { + hash = (37 * hash) + SAMPLE_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuery().hashCode(); + } + hash = (37 * hash) + SAMPLE_QUERY_ID_FIELD_NUMBER; + hash = (53 * hash) + getSampleQueryId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQueryService.CreateSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.CreateSampleQuery]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest) + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSampleQueryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + sampleQuery_ = null; + if (sampleQueryBuilder_ != null) { + sampleQueryBuilder_.dispose(); + sampleQueryBuilder_ = null; + } + sampleQueryId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest build() { + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest result = + new com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sampleQuery_ = + sampleQueryBuilder_ == null ? sampleQuery_ : sampleQueryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sampleQueryId_ = sampleQueryId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSampleQuery()) { + mergeSampleQuery(other.getSampleQuery()); + } + if (!other.getSampleQueryId().isEmpty()) { + sampleQueryId_ = other.sampleQueryId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSampleQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + sampleQueryId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.SampleQuery sampleQuery_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder> + sampleQueryBuilder_; + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuery field is set. + */ + public boolean hasSampleQuery() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuery. + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQuery() { + if (sampleQueryBuilder_ == null) { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance() + : sampleQuery_; + } else { + return sampleQueryBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuery(com.google.cloud.discoveryengine.v1alpha.SampleQuery value) { + if (sampleQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sampleQuery_ = value; + } else { + sampleQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuery( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder builderForValue) { + if (sampleQueryBuilder_ == null) { + sampleQuery_ = builderForValue.build(); + } else { + sampleQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSampleQuery(com.google.cloud.discoveryengine.v1alpha.SampleQuery value) { + if (sampleQueryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && sampleQuery_ != null + && sampleQuery_ + != com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance()) { + getSampleQueryBuilder().mergeFrom(value); + } else { + sampleQuery_ = value; + } + } else { + sampleQueryBuilder_.mergeFrom(value); + } + if (sampleQuery_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSampleQuery() { + bitField0_ = (bitField0_ & ~0x00000002); + sampleQuery_ = null; + if (sampleQueryBuilder_ != null) { + sampleQueryBuilder_.dispose(); + sampleQueryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder getSampleQueryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSampleQueryFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder getSampleQueryOrBuilder() { + if (sampleQueryBuilder_ != null) { + return sampleQueryBuilder_.getMessageOrBuilder(); + } else { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder> + getSampleQueryFieldBuilder() { + if (sampleQueryBuilder_ == null) { + sampleQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder>( + getSampleQuery(), getParentForChildren(), isClean()); + sampleQuery_ = null; + } + return sampleQueryBuilder_; + } + + private java.lang.Object sampleQueryId_ = ""; + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], which will
      +     * become the final component of the
      +     * [SampleQuery.name][google.cloud.discoveryengine.v1alpha.SampleQuery.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s with the
      +     * same
      +     * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleQueryId. + */ + public java.lang.String getSampleQueryId() { + java.lang.Object ref = sampleQueryId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleQueryId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], which will
      +     * become the final component of the
      +     * [SampleQuery.name][google.cloud.discoveryengine.v1alpha.SampleQuery.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s with the
      +     * same
      +     * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sampleQueryId. + */ + public com.google.protobuf.ByteString getSampleQueryIdBytes() { + java.lang.Object ref = sampleQueryId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleQueryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], which will
      +     * become the final component of the
      +     * [SampleQuery.name][google.cloud.discoveryengine.v1alpha.SampleQuery.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s with the
      +     * same
      +     * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sampleQueryId to set. + * @return This builder for chaining. + */ + public Builder setSampleQueryId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sampleQueryId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], which will
      +     * become the final component of the
      +     * [SampleQuery.name][google.cloud.discoveryengine.v1alpha.SampleQuery.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s with the
      +     * same
      +     * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSampleQueryId() { + sampleQueryId_ = getDefaultInstance().getSampleQueryId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], which will
      +     * become the final component of the
      +     * [SampleQuery.name][google.cloud.discoveryengine.v1alpha.SampleQuery.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s with the
      +     * same
      +     * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for sampleQueryId to set. + * @return This builder for chaining. + */ + public Builder setSampleQueryIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sampleQueryId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest) + private static final com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSampleQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSampleQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSampleQueryRequestOrBuilder.java new file mode 100644 index 000000000000..20463c5a851a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSampleQueryRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface CreateSampleQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Required. The
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuery field is set. + */ + boolean hasSampleQuery(); + /** + * + * + *
      +   * Required. The
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuery. + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQuery(); + /** + * + * + *
      +   * Required. The
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder getSampleQueryOrBuilder(); + + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], which will
      +   * become the final component of the
      +   * [SampleQuery.name][google.cloud.discoveryengine.v1alpha.SampleQuery.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s with the
      +   * same
      +   * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleQueryId. + */ + java.lang.String getSampleQueryId(); + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], which will
      +   * become the final component of the
      +   * [SampleQuery.name][google.cloud.discoveryengine.v1alpha.SampleQuery.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s with the
      +   * same
      +   * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sampleQueryId. + */ + com.google.protobuf.ByteString getSampleQueryIdBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSampleQuerySetRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSampleQuerySetRequest.java new file mode 100644 index 000000000000..a574ef87bf30 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSampleQuerySetRequest.java @@ -0,0 +1,1305 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [SampleQuerySetService.CreateSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.CreateSampleQuerySet]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest} + */ +public final class CreateSampleQuerySetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest) + CreateSampleQuerySetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSampleQuerySetRequest.newBuilder() to construct. + private CreateSampleQuerySetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSampleQuerySetRequest() { + parent_ = ""; + sampleQuerySetId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSampleQuerySetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAMPLE_QUERY_SET_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.SampleQuerySet sampleQuerySet_; + /** + * + * + *
      +   * Required. The
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuerySet field is set. + */ + @java.lang.Override + public boolean hasSampleQuerySet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Required. The
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuerySet. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getSampleQuerySet() { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } + /** + * + * + *
      +   * Required. The
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder + getSampleQuerySetOrBuilder() { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } + + public static final int SAMPLE_QUERY_SET_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sampleQuerySetId_ = ""; + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * which will become the final component of the
      +   * [SampleQuerySet.name][google.cloud.discoveryengine.v1alpha.SampleQuerySet.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s with
      +   * the same
      +   * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleQuerySetId. + */ + @java.lang.Override + public java.lang.String getSampleQuerySetId() { + java.lang.Object ref = sampleQuerySetId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleQuerySetId_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * which will become the final component of the
      +   * [SampleQuerySet.name][google.cloud.discoveryengine.v1alpha.SampleQuerySet.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s with
      +   * the same
      +   * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sampleQuerySetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSampleQuerySetIdBytes() { + java.lang.Object ref = sampleQuerySetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleQuerySetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSampleQuerySet()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleQuerySetId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sampleQuerySetId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSampleQuerySet()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleQuerySetId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sampleQuerySetId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest other = + (com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasSampleQuerySet() != other.hasSampleQuerySet()) return false; + if (hasSampleQuerySet()) { + if (!getSampleQuerySet().equals(other.getSampleQuerySet())) return false; + } + if (!getSampleQuerySetId().equals(other.getSampleQuerySetId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSampleQuerySet()) { + hash = (37 * hash) + SAMPLE_QUERY_SET_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuerySet().hashCode(); + } + hash = (37 * hash) + SAMPLE_QUERY_SET_ID_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuerySetId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQuerySetService.CreateSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.CreateSampleQuerySet]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest) + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSampleQuerySetFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + sampleQuerySet_ = null; + if (sampleQuerySetBuilder_ != null) { + sampleQuerySetBuilder_.dispose(); + sampleQuerySetBuilder_ = null; + } + sampleQuerySetId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest build() { + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest result = + new com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sampleQuerySet_ = + sampleQuerySetBuilder_ == null ? sampleQuerySet_ : sampleQuerySetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sampleQuerySetId_ = sampleQuerySetId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSampleQuerySet()) { + mergeSampleQuerySet(other.getSampleQuerySet()); + } + if (!other.getSampleQuerySetId().isEmpty()) { + sampleQuerySetId_ = other.sampleQuerySetId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSampleQuerySetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + sampleQuerySetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.SampleQuerySet sampleQuerySet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder> + sampleQuerySetBuilder_; + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuerySet field is set. + */ + public boolean hasSampleQuerySet() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuerySet. + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getSampleQuerySet() { + if (sampleQuerySetBuilder_ == null) { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } else { + return sampleQuerySetBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet value) { + if (sampleQuerySetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sampleQuerySet_ = value; + } else { + sampleQuerySetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder builderForValue) { + if (sampleQuerySetBuilder_ == null) { + sampleQuerySet_ = builderForValue.build(); + } else { + sampleQuerySetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet value) { + if (sampleQuerySetBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && sampleQuerySet_ != null + && sampleQuerySet_ + != com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.getDefaultInstance()) { + getSampleQuerySetBuilder().mergeFrom(value); + } else { + sampleQuerySet_ = value; + } + } else { + sampleQuerySetBuilder_.mergeFrom(value); + } + if (sampleQuerySet_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSampleQuerySet() { + bitField0_ = (bitField0_ & ~0x00000002); + sampleQuerySet_ = null; + if (sampleQuerySetBuilder_ != null) { + sampleQuerySetBuilder_.dispose(); + sampleQuerySetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder + getSampleQuerySetBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSampleQuerySetFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder + getSampleQuerySetOrBuilder() { + if (sampleQuerySetBuilder_ != null) { + return sampleQuerySetBuilder_.getMessageOrBuilder(); + } else { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder> + getSampleQuerySetFieldBuilder() { + if (sampleQuerySetBuilder_ == null) { + sampleQuerySetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder>( + getSampleQuerySet(), getParentForChildren(), isClean()); + sampleQuerySet_ = null; + } + return sampleQuerySetBuilder_; + } + + private java.lang.Object sampleQuerySetId_ = ""; + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * which will become the final component of the
      +     * [SampleQuerySet.name][google.cloud.discoveryengine.v1alpha.SampleQuerySet.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s with
      +     * the same
      +     * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleQuerySetId. + */ + public java.lang.String getSampleQuerySetId() { + java.lang.Object ref = sampleQuerySetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleQuerySetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * which will become the final component of the
      +     * [SampleQuerySet.name][google.cloud.discoveryengine.v1alpha.SampleQuerySet.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s with
      +     * the same
      +     * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sampleQuerySetId. + */ + public com.google.protobuf.ByteString getSampleQuerySetIdBytes() { + java.lang.Object ref = sampleQuerySetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleQuerySetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * which will become the final component of the
      +     * [SampleQuerySet.name][google.cloud.discoveryengine.v1alpha.SampleQuerySet.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s with
      +     * the same
      +     * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sampleQuerySetId to set. + * @return This builder for chaining. + */ + public Builder setSampleQuerySetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sampleQuerySetId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * which will become the final component of the
      +     * [SampleQuerySet.name][google.cloud.discoveryengine.v1alpha.SampleQuerySet.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s with
      +     * the same
      +     * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSampleQuerySetId() { + sampleQuerySetId_ = getDefaultInstance().getSampleQuerySetId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * which will become the final component of the
      +     * [SampleQuerySet.name][google.cloud.discoveryengine.v1alpha.SampleQuerySet.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s with
      +     * the same
      +     * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for sampleQuerySetId to set. + * @return This builder for chaining. + */ + public Builder setSampleQuerySetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sampleQuerySetId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest) + private static final com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSampleQuerySetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSampleQuerySetRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSampleQuerySetRequestOrBuilder.java new file mode 100644 index 000000000000..0e9b09d5e39e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSampleQuerySetRequestOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface CreateSampleQuerySetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Required. The
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuerySet field is set. + */ + boolean hasSampleQuerySet(); + /** + * + * + *
      +   * Required. The
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuerySet. + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getSampleQuerySet(); + /** + * + * + *
      +   * Required. The
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder getSampleQuerySetOrBuilder(); + + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * which will become the final component of the
      +   * [SampleQuerySet.name][google.cloud.discoveryengine.v1alpha.SampleQuerySet.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s with
      +   * the same
      +   * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleQuerySetId. + */ + java.lang.String getSampleQuerySetId(); + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * which will become the final component of the
      +   * [SampleQuerySet.name][google.cloud.discoveryengine.v1alpha.SampleQuerySet.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s with
      +   * the same
      +   * [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sampleQuerySetId. + */ + com.google.protobuf.ByteString getSampleQuerySetIdBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSampleQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSampleQueryRequest.java new file mode 100644 index 000000000000..08fd11b7496b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSampleQueryRequest.java @@ -0,0 +1,716 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [SampleQueryService.DeleteSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.DeleteSampleQuery]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest} + */ +public final class DeleteSampleQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest) + DeleteSampleQueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteSampleQueryRequest.newBuilder() to construct. + private DeleteSampleQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteSampleQueryRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteSampleQueryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +   * delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +   * delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest other = + (com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQueryService.DeleteSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.DeleteSampleQuery]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest) + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest build() { + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest result = + new com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest) + private static final com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSampleQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSampleQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSampleQueryRequestOrBuilder.java new file mode 100644 index 000000000000..35a99bfa5d0f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSampleQueryRequestOrBuilder.java @@ -0,0 +1,73 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface DeleteSampleQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +   * delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +   * delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSampleQuerySetRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSampleQuerySetRequest.java new file mode 100644 index 000000000000..9b5554ac41cc --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSampleQuerySetRequest.java @@ -0,0 +1,739 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [SampleQuerySetService.DeleteSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.DeleteSampleQuerySet]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest} + */ +public final class DeleteSampleQuerySetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest) + DeleteSampleQuerySetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteSampleQuerySetRequest.newBuilder() to construct. + private DeleteSampleQuerySetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteSampleQuerySetRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteSampleQuerySetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest other = + (com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQuerySetService.DeleteSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.DeleteSampleQuerySet]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest) + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest build() { + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest result = + new com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest) + private static final com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSampleQuerySetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSampleQuerySetRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSampleQuerySetRequestOrBuilder.java new file mode 100644 index 000000000000..8da86021853d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSampleQuerySetRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface DeleteSampleQuerySetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Evaluation.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Evaluation.java new file mode 100644 index 000000000000..e54d7fbc7fb5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Evaluation.java @@ -0,0 +1,5260 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * An evaluation is a single execution (or run) of an evaluation process. It
      + * encapsulates the state of the evaluation and the resulting data.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Evaluation} + */ +public final class Evaluation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Evaluation) + EvaluationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Evaluation.newBuilder() to construct. + private Evaluation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Evaluation() { + name_ = ""; + state_ = 0; + errorSamples_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Evaluation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Evaluation.class, + com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder.class); + } + + /** + * + * + *
      +   * Describes the state of an evaluation.
      +   * 
      + * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.Evaluation.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * The evaluation is unspecified.
      +     * 
      + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
      +     * The service is preparing to run the evaluation.
      +     * 
      + * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
      +     * The evaluation is in progress.
      +     * 
      + * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
      +     * The evaluation completed successfully.
      +     * 
      + * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * + * + *
      +     * The evaluation failed.
      +     * 
      + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * The evaluation is unspecified.
      +     * 
      + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
      +     * The service is preparing to run the evaluation.
      +     * 
      + * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + /** + * + * + *
      +     * The evaluation is in progress.
      +     * 
      + * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * + * + *
      +     * The evaluation completed successfully.
      +     * 
      + * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + /** + * + * + *
      +     * The evaluation failed.
      +     * 
      + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return RUNNING; + case 3: + return SUCCEEDED; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.Evaluation.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.Evaluation.State) + } + + public interface EvaluationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. The search request that is used to perform the evaluation.
      +     *
      +     * Only the following fields within SearchRequest are supported; if any
      +     * other fields are provided, an UNSUPPORTED error will be returned:
      +     *
      +     * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +     * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +     * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +     * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +     * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +     * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +     * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the searchRequest field is set. + */ + boolean hasSearchRequest(); + /** + * + * + *
      +     * Required. The search request that is used to perform the evaluation.
      +     *
      +     * Only the following fields within SearchRequest are supported; if any
      +     * other fields are provided, an UNSUPPORTED error will be returned:
      +     *
      +     * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +     * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +     * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +     * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +     * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +     * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +     * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The searchRequest. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest getSearchRequest(); + /** + * + * + *
      +     * Required. The search request that is used to perform the evaluation.
      +     *
      +     * Only the following fields within SearchRequest are supported; if any
      +     * other fields are provided, an UNSUPPORTED error will be returned:
      +     *
      +     * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +     * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +     * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +     * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +     * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +     * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +     * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequestOrBuilder getSearchRequestOrBuilder(); + + /** + * + * + *
      +     * Required. The specification of the query set.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the querySetSpec field is set. + */ + boolean hasQuerySetSpec(); + /** + * + * + *
      +     * Required. The specification of the query set.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The querySetSpec. + */ + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + getQuerySetSpec(); + /** + * + * + *
      +     * Required. The specification of the query set.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpecOrBuilder + getQuerySetSpecOrBuilder(); + + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.SearchSpecCase + getSearchSpecCase(); + } + /** + * + * + *
      +   * Describes the specification of the evaluation.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec} + */ + public static final class EvaluationSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec) + EvaluationSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use EvaluationSpec.newBuilder() to construct. + private EvaluationSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvaluationSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvaluationSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.class, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.Builder.class); + } + + public interface QuerySetSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * Required. The full resource name of the
      +       * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]
      +       * used for the evaluation, in the format of
      +       * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +       * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sampleQuerySet. + */ + java.lang.String getSampleQuerySet(); + /** + * + * + *
      +       * Required. The full resource name of the
      +       * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]
      +       * used for the evaluation, in the format of
      +       * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +       * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sampleQuerySet. + */ + com.google.protobuf.ByteString getSampleQuerySetBytes(); + } + /** + * + * + *
      +     * Describes the specification of the query set.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec} + */ + public static final class QuerySetSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec) + QuerySetSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use QuerySetSpec.newBuilder() to construct. + private QuerySetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QuerySetSpec() { + sampleQuerySet_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QuerySetSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_QuerySetSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_QuerySetSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + .class, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + .Builder.class); + } + + public static final int SAMPLE_QUERY_SET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sampleQuerySet_ = ""; + /** + * + * + *
      +       * Required. The full resource name of the
      +       * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]
      +       * used for the evaluation, in the format of
      +       * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +       * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sampleQuerySet. + */ + @java.lang.Override + public java.lang.String getSampleQuerySet() { + java.lang.Object ref = sampleQuerySet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleQuerySet_ = s; + return s; + } + } + /** + * + * + *
      +       * Required. The full resource name of the
      +       * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]
      +       * used for the evaluation, in the format of
      +       * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +       * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sampleQuerySet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSampleQuerySetBytes() { + java.lang.Object ref = sampleQuerySet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleQuerySet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleQuerySet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sampleQuerySet_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleQuerySet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sampleQuerySet_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec other = + (com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec) obj; + + if (!getSampleQuerySet().equals(other.getSampleQuerySet())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SAMPLE_QUERY_SET_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuerySet().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +       * Describes the specification of the query set.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec) + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_QuerySetSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_QuerySetSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + .class, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sampleQuerySet_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_QuerySetSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + build() { + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec result = + new com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sampleQuerySet_ = sampleQuerySet_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + .getDefaultInstance()) return this; + if (!other.getSampleQuerySet().isEmpty()) { + sampleQuerySet_ = other.sampleQuerySet_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sampleQuerySet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object sampleQuerySet_ = ""; + /** + * + * + *
      +         * Required. The full resource name of the
      +         * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]
      +         * used for the evaluation, in the format of
      +         * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +         * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sampleQuerySet. + */ + public java.lang.String getSampleQuerySet() { + java.lang.Object ref = sampleQuerySet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleQuerySet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +         * Required. The full resource name of the
      +         * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]
      +         * used for the evaluation, in the format of
      +         * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +         * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sampleQuerySet. + */ + public com.google.protobuf.ByteString getSampleQuerySetBytes() { + java.lang.Object ref = sampleQuerySet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleQuerySet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +         * Required. The full resource name of the
      +         * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]
      +         * used for the evaluation, in the format of
      +         * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +         * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The sampleQuerySet to set. + * @return This builder for chaining. + */ + public Builder setSampleQuerySet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sampleQuerySet_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +         * Required. The full resource name of the
      +         * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]
      +         * used for the evaluation, in the format of
      +         * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +         * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSampleQuerySet() { + sampleQuerySet_ = getDefaultInstance().getSampleQuerySet(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +         * Required. The full resource name of the
      +         * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]
      +         * used for the evaluation, in the format of
      +         * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +         * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for sampleQuerySet to set. + * @return This builder for chaining. + */ + public Builder setSampleQuerySetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sampleQuerySet_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec) + private static final com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + .QuerySetSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuerySetSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int searchSpecCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object searchSpec_; + + public enum SearchSpecCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SEARCH_REQUEST(2), + SEARCHSPEC_NOT_SET(0); + private final int value; + + private SearchSpecCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SearchSpecCase valueOf(int value) { + return forNumber(value); + } + + public static SearchSpecCase forNumber(int value) { + switch (value) { + case 2: + return SEARCH_REQUEST; + case 0: + return SEARCHSPEC_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SearchSpecCase getSearchSpecCase() { + return SearchSpecCase.forNumber(searchSpecCase_); + } + + public static final int SEARCH_REQUEST_FIELD_NUMBER = 2; + /** + * + * + *
      +     * Required. The search request that is used to perform the evaluation.
      +     *
      +     * Only the following fields within SearchRequest are supported; if any
      +     * other fields are provided, an UNSUPPORTED error will be returned:
      +     *
      +     * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +     * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +     * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +     * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +     * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +     * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +     * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the searchRequest field is set. + */ + @java.lang.Override + public boolean hasSearchRequest() { + return searchSpecCase_ == 2; + } + /** + * + * + *
      +     * Required. The search request that is used to perform the evaluation.
      +     *
      +     * Only the following fields within SearchRequest are supported; if any
      +     * other fields are provided, an UNSUPPORTED error will be returned:
      +     *
      +     * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +     * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +     * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +     * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +     * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +     * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +     * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The searchRequest. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest getSearchRequest() { + if (searchSpecCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.SearchRequest) searchSpec_; + } + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.getDefaultInstance(); + } + /** + * + * + *
      +     * Required. The search request that is used to perform the evaluation.
      +     *
      +     * Only the following fields within SearchRequest are supported; if any
      +     * other fields are provided, an UNSUPPORTED error will be returned:
      +     *
      +     * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +     * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +     * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +     * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +     * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +     * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +     * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequestOrBuilder + getSearchRequestOrBuilder() { + if (searchSpecCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.SearchRequest) searchSpec_; + } + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.getDefaultInstance(); + } + + public static final int QUERY_SET_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + querySetSpec_; + /** + * + * + *
      +     * Required. The specification of the query set.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the querySetSpec field is set. + */ + @java.lang.Override + public boolean hasQuerySetSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * Required. The specification of the query set.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The querySetSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + getQuerySetSpec() { + return querySetSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + .getDefaultInstance() + : querySetSpec_; + } + /** + * + * + *
      +     * Required. The specification of the query set.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpecOrBuilder + getQuerySetSpecOrBuilder() { + return querySetSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + .getDefaultInstance() + : querySetSpec_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getQuerySetSpec()); + } + if (searchSpecCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.discoveryengine.v1alpha.SearchRequest) searchSpec_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getQuerySetSpec()); + } + if (searchSpecCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.discoveryengine.v1alpha.SearchRequest) searchSpec_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec other = + (com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec) obj; + + if (hasQuerySetSpec() != other.hasQuerySetSpec()) return false; + if (hasQuerySetSpec()) { + if (!getQuerySetSpec().equals(other.getQuerySetSpec())) return false; + } + if (!getSearchSpecCase().equals(other.getSearchSpecCase())) return false; + switch (searchSpecCase_) { + case 2: + if (!getSearchRequest().equals(other.getSearchRequest())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasQuerySetSpec()) { + hash = (37 * hash) + QUERY_SET_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getQuerySetSpec().hashCode(); + } + switch (searchSpecCase_) { + case 2: + hash = (37 * hash) + SEARCH_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getSearchRequest().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Describes the specification of the evaluation.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec) + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.class, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getQuerySetSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (searchRequestBuilder_ != null) { + searchRequestBuilder_.clear(); + } + querySetSpec_ = null; + if (querySetSpecBuilder_ != null) { + querySetSpecBuilder_.dispose(); + querySetSpecBuilder_ = null; + } + searchSpecCase_ = 0; + searchSpec_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec build() { + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec result = + new com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.querySetSpec_ = + querySetSpecBuilder_ == null ? querySetSpec_ : querySetSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec result) { + result.searchSpecCase_ = searchSpecCase_; + result.searchSpec_ = this.searchSpec_; + if (searchSpecCase_ == 2 && searchRequestBuilder_ != null) { + result.searchSpec_ = searchRequestBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + .getDefaultInstance()) return this; + if (other.hasQuerySetSpec()) { + mergeQuerySetSpec(other.getQuerySetSpec()); + } + switch (other.getSearchSpecCase()) { + case SEARCH_REQUEST: + { + mergeSearchRequest(other.getSearchRequest()); + break; + } + case SEARCHSPEC_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getQuerySetSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage(getSearchRequestFieldBuilder().getBuilder(), extensionRegistry); + searchSpecCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int searchSpecCase_ = 0; + private java.lang.Object searchSpec_; + + public SearchSpecCase getSearchSpecCase() { + return SearchSpecCase.forNumber(searchSpecCase_); + } + + public Builder clearSearchSpec() { + searchSpecCase_ = 0; + searchSpec_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequestOrBuilder> + searchRequestBuilder_; + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the searchRequest field is set. + */ + @java.lang.Override + public boolean hasSearchRequest() { + return searchSpecCase_ == 2; + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The searchRequest. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest getSearchRequest() { + if (searchRequestBuilder_ == null) { + if (searchSpecCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.SearchRequest) searchSpec_; + } + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.getDefaultInstance(); + } else { + if (searchSpecCase_ == 2) { + return searchRequestBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.getDefaultInstance(); + } + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSearchRequest( + com.google.cloud.discoveryengine.v1alpha.SearchRequest value) { + if (searchRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchSpec_ = value; + onChanged(); + } else { + searchRequestBuilder_.setMessage(value); + } + searchSpecCase_ = 2; + return this; + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSearchRequest( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.Builder builderForValue) { + if (searchRequestBuilder_ == null) { + searchSpec_ = builderForValue.build(); + onChanged(); + } else { + searchRequestBuilder_.setMessage(builderForValue.build()); + } + searchSpecCase_ = 2; + return this; + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSearchRequest( + com.google.cloud.discoveryengine.v1alpha.SearchRequest value) { + if (searchRequestBuilder_ == null) { + if (searchSpecCase_ == 2 + && searchSpec_ + != com.google.cloud.discoveryengine.v1alpha.SearchRequest.getDefaultInstance()) { + searchSpec_ = + com.google.cloud.discoveryengine.v1alpha.SearchRequest.newBuilder( + (com.google.cloud.discoveryengine.v1alpha.SearchRequest) searchSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + searchSpec_ = value; + } + onChanged(); + } else { + if (searchSpecCase_ == 2) { + searchRequestBuilder_.mergeFrom(value); + } else { + searchRequestBuilder_.setMessage(value); + } + } + searchSpecCase_ = 2; + return this; + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSearchRequest() { + if (searchRequestBuilder_ == null) { + if (searchSpecCase_ == 2) { + searchSpecCase_ = 0; + searchSpec_ = null; + onChanged(); + } + } else { + if (searchSpecCase_ == 2) { + searchSpecCase_ = 0; + searchSpec_ = null; + } + searchRequestBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.Builder + getSearchRequestBuilder() { + return getSearchRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequestOrBuilder + getSearchRequestOrBuilder() { + if ((searchSpecCase_ == 2) && (searchRequestBuilder_ != null)) { + return searchRequestBuilder_.getMessageOrBuilder(); + } else { + if (searchSpecCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.SearchRequest) searchSpec_; + } + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.getDefaultInstance(); + } + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequestOrBuilder> + getSearchRequestFieldBuilder() { + if (searchRequestBuilder_ == null) { + if (!(searchSpecCase_ == 2)) { + searchSpec_ = + com.google.cloud.discoveryengine.v1alpha.SearchRequest.getDefaultInstance(); + } + searchRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequestOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.SearchRequest) searchSpec_, + getParentForChildren(), + isClean()); + searchSpec_ = null; + } + searchSpecCase_ = 2; + onChanged(); + return searchRequestBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + querySetSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + .Builder, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + .QuerySetSpecOrBuilder> + querySetSpecBuilder_; + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the querySetSpec field is set. + */ + public boolean hasQuerySetSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The querySetSpec. + */ + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + getQuerySetSpec() { + if (querySetSpecBuilder_ == null) { + return querySetSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + .getDefaultInstance() + : querySetSpec_; + } else { + return querySetSpecBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQuerySetSpec( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec value) { + if (querySetSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + querySetSpec_ = value; + } else { + querySetSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQuerySetSpec( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec.Builder + builderForValue) { + if (querySetSpecBuilder_ == null) { + querySetSpec_ = builderForValue.build(); + } else { + querySetSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeQuerySetSpec( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec value) { + if (querySetSpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && querySetSpec_ != null + && querySetSpec_ + != com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + .getDefaultInstance()) { + getQuerySetSpecBuilder().mergeFrom(value); + } else { + querySetSpec_ = value; + } + } else { + querySetSpecBuilder_.mergeFrom(value); + } + if (querySetSpec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearQuerySetSpec() { + bitField0_ = (bitField0_ & ~0x00000002); + querySetSpec_ = null; + if (querySetSpecBuilder_ != null) { + querySetSpecBuilder_.dispose(); + querySetSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec.Builder + getQuerySetSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getQuerySetSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + .QuerySetSpecOrBuilder + getQuerySetSpecOrBuilder() { + if (querySetSpecBuilder_ != null) { + return querySetSpecBuilder_.getMessageOrBuilder(); + } else { + return querySetSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + .getDefaultInstance() + : querySetSpec_; + } + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + .Builder, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + .QuerySetSpecOrBuilder> + getQuerySetSpecFieldBuilder() { + if (querySetSpecBuilder_ == null) { + querySetSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.QuerySetSpec + .Builder, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + .QuerySetSpecOrBuilder>(getQuerySetSpec(), getParentForChildren(), isClean()); + querySetSpec_ = null; + } + return querySetSpecBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec) + private static final com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], in the
      +   * format of
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], in the
      +   * format of
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVALUATION_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluationSpec_; + /** + * + * + *
      +   * Required. The specification of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluationSpec field is set. + */ + @java.lang.Override + public boolean hasEvaluationSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Required. The specification of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluationSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec getEvaluationSpec() { + return evaluationSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.getDefaultInstance() + : evaluationSpec_; + } + /** + * + * + *
      +   * Required. The specification of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpecOrBuilder + getEvaluationSpecOrBuilder() { + return evaluationSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.getDefaultInstance() + : evaluationSpec_; + } + + public static final int QUALITY_METRICS_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1alpha.QualityMetrics qualityMetrics_; + /** + * + * + *
      +   * Output only. The metrics produced by the evaluation, averaged across all
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +   *
      +   * Only populated when the evaluation's state is SUCCEEDED.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the qualityMetrics field is set. + */ + @java.lang.Override + public boolean hasQualityMetrics() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * Output only. The metrics produced by the evaluation, averaged across all
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +   *
      +   * Only populated when the evaluation's state is SUCCEEDED.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The qualityMetrics. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics getQualityMetrics() { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } + /** + * + * + *
      +   * Output only. The metrics produced by the evaluation, averaged across all
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +   *
      +   * Only populated when the evaluation's state is SUCCEEDED.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetricsOrBuilder + getQualityMetricsOrBuilder() { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + /** + * + * + *
      +   * Output only. The state of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
      +   * Output only. The state of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation.State getState() { + com.google.cloud.discoveryengine.v1alpha.Evaluation.State result = + com.google.cloud.discoveryengine.v1alpha.Evaluation.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1alpha.Evaluation.State.UNRECOGNIZED + : result; + } + + public static final int ERROR_FIELD_NUMBER = 5; + private com.google.rpc.Status error_; + /** + * + * + *
      +   * Output only. The error that occurred during evaluation. Only populated when
      +   * the evaluation's state is FAILED.
      +   * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +   * Output only. The error that occurred during evaluation. Only populated when
      +   * the evaluation's state is FAILED.
      +   * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + * + * + *
      +   * Output only. The error that occurred during evaluation. Only populated when
      +   * the evaluation's state is FAILED.
      +   * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int ERROR_SAMPLES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List errorSamples_; + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorSamplesList() { + return errorSamples_; + } + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorSamplesOrBuilderList() { + return errorSamples_; + } + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getErrorSamplesCount() { + return errorSamples_.size(); + } + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.Status getErrorSamples(int index) { + return errorSamples_.get(index); + } + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + return errorSamples_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEvaluationSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getQualityMetrics()); + } + if (state_ + != com.google.cloud.discoveryengine.v1alpha.Evaluation.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getError()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(7, getEndTime()); + } + for (int i = 0; i < errorSamples_.size(); i++) { + output.writeMessage(8, errorSamples_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEvaluationSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getQualityMetrics()); + } + if (state_ + != com.google.cloud.discoveryengine.v1alpha.Evaluation.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getError()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEndTime()); + } + for (int i = 0; i < errorSamples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, errorSamples_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.Evaluation)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Evaluation other = + (com.google.cloud.discoveryengine.v1alpha.Evaluation) obj; + + if (!getName().equals(other.getName())) return false; + if (hasEvaluationSpec() != other.hasEvaluationSpec()) return false; + if (hasEvaluationSpec()) { + if (!getEvaluationSpec().equals(other.getEvaluationSpec())) return false; + } + if (hasQualityMetrics() != other.hasQualityMetrics()) return false; + if (hasQualityMetrics()) { + if (!getQualityMetrics().equals(other.getQualityMetrics())) return false; + } + if (state_ != other.state_) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasEvaluationSpec()) { + hash = (37 * hash) + EVALUATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationSpec().hashCode(); + } + if (hasQualityMetrics()) { + hash = (37 * hash) + QUALITY_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getQualityMetrics().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (getErrorSamplesCount() > 0) { + hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getErrorSamplesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1alpha.Evaluation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * An evaluation is a single execution (or run) of an evaluation process. It
      +   * encapsulates the state of the evaluation and the resulting data.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Evaluation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Evaluation) + com.google.cloud.discoveryengine.v1alpha.EvaluationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Evaluation.class, + com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.Evaluation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEvaluationSpecFieldBuilder(); + getQualityMetricsFieldBuilder(); + getErrorFieldBuilder(); + getCreateTimeFieldBuilder(); + getEndTimeFieldBuilder(); + getErrorSamplesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + evaluationSpec_ = null; + if (evaluationSpecBuilder_ != null) { + evaluationSpecBuilder_.dispose(); + evaluationSpecBuilder_ = null; + } + qualityMetrics_ = null; + if (qualityMetricsBuilder_ != null) { + qualityMetricsBuilder_.dispose(); + qualityMetricsBuilder_ = null; + } + state_ = 0; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + } else { + errorSamples_ = null; + errorSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Evaluation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation build() { + com.google.cloud.discoveryengine.v1alpha.Evaluation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Evaluation result = + new com.google.cloud.discoveryengine.v1alpha.Evaluation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.Evaluation result) { + if (errorSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.errorSamples_ = errorSamples_; + } else { + result.errorSamples_ = errorSamplesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.Evaluation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.evaluationSpec_ = + evaluationSpecBuilder_ == null ? evaluationSpec_ : evaluationSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.qualityMetrics_ = + qualityMetricsBuilder_ == null ? qualityMetrics_ : qualityMetricsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.Evaluation) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.Evaluation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.Evaluation other) { + if (other == com.google.cloud.discoveryengine.v1alpha.Evaluation.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEvaluationSpec()) { + mergeEvaluationSpec(other.getEvaluationSpec()); + } + if (other.hasQualityMetrics()) { + mergeQualityMetrics(other.getQualityMetrics()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasError()) { + mergeError(other.getError()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (errorSamplesBuilder_ == null) { + if (!other.errorSamples_.isEmpty()) { + if (errorSamples_.isEmpty()) { + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureErrorSamplesIsMutable(); + errorSamples_.addAll(other.errorSamples_); + } + onChanged(); + } + } else { + if (!other.errorSamples_.isEmpty()) { + if (errorSamplesBuilder_.isEmpty()) { + errorSamplesBuilder_.dispose(); + errorSamplesBuilder_ = null; + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000080); + errorSamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorSamplesFieldBuilder() + : null; + } else { + errorSamplesBuilder_.addAllMessages(other.errorSamples_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEvaluationSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getQualityMetricsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(m); + } else { + errorSamplesBuilder_.addMessage(m); + } + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], in the
      +     * format of
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], in the
      +     * format of
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], in the
      +     * format of
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], in the
      +     * format of
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], in the
      +     * format of
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluationSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpecOrBuilder> + evaluationSpecBuilder_; + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluationSpec field is set. + */ + public boolean hasEvaluationSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluationSpec. + */ + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec getEvaluationSpec() { + if (evaluationSpecBuilder_ == null) { + return evaluationSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + .getDefaultInstance() + : evaluationSpec_; + } else { + return evaluationSpecBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEvaluationSpec( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec value) { + if (evaluationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationSpec_ = value; + } else { + evaluationSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEvaluationSpec( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.Builder + builderForValue) { + if (evaluationSpecBuilder_ == null) { + evaluationSpec_ = builderForValue.build(); + } else { + evaluationSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEvaluationSpec( + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec value) { + if (evaluationSpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && evaluationSpec_ != null + && evaluationSpec_ + != com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + .getDefaultInstance()) { + getEvaluationSpecBuilder().mergeFrom(value); + } else { + evaluationSpec_ = value; + } + } else { + evaluationSpecBuilder_.mergeFrom(value); + } + if (evaluationSpec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEvaluationSpec() { + bitField0_ = (bitField0_ & ~0x00000002); + evaluationSpec_ = null; + if (evaluationSpecBuilder_ != null) { + evaluationSpecBuilder_.dispose(); + evaluationSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.Builder + getEvaluationSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEvaluationSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpecOrBuilder + getEvaluationSpecOrBuilder() { + if (evaluationSpecBuilder_ != null) { + return evaluationSpecBuilder_.getMessageOrBuilder(); + } else { + return evaluationSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec + .getDefaultInstance() + : evaluationSpec_; + } + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpecOrBuilder> + getEvaluationSpecFieldBuilder() { + if (evaluationSpecBuilder_ == null) { + evaluationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpecOrBuilder>( + getEvaluationSpec(), getParentForChildren(), isClean()); + evaluationSpec_ = null; + } + return evaluationSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.QualityMetrics qualityMetrics_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetricsOrBuilder> + qualityMetricsBuilder_; + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the qualityMetrics field is set. + */ + public boolean hasQualityMetrics() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The qualityMetrics. + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics getQualityMetrics() { + if (qualityMetricsBuilder_ == null) { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } else { + return qualityMetricsBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQualityMetrics( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics value) { + if (qualityMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + qualityMetrics_ = value; + } else { + qualityMetricsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQualityMetrics( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.Builder builderForValue) { + if (qualityMetricsBuilder_ == null) { + qualityMetrics_ = builderForValue.build(); + } else { + qualityMetricsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeQualityMetrics( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics value) { + if (qualityMetricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && qualityMetrics_ != null + && qualityMetrics_ + != com.google.cloud.discoveryengine.v1alpha.QualityMetrics.getDefaultInstance()) { + getQualityMetricsBuilder().mergeFrom(value); + } else { + qualityMetrics_ = value; + } + } else { + qualityMetricsBuilder_.mergeFrom(value); + } + if (qualityMetrics_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearQualityMetrics() { + bitField0_ = (bitField0_ & ~0x00000004); + qualityMetrics_ = null; + if (qualityMetricsBuilder_ != null) { + qualityMetricsBuilder_.dispose(); + qualityMetricsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.Builder + getQualityMetricsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getQualityMetricsFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetricsOrBuilder + getQualityMetricsOrBuilder() { + if (qualityMetricsBuilder_ != null) { + return qualityMetricsBuilder_.getMessageOrBuilder(); + } else { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetricsOrBuilder> + getQualityMetricsFieldBuilder() { + if (qualityMetricsBuilder_ == null) { + qualityMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetricsOrBuilder>( + getQualityMetrics(), getParentForChildren(), isClean()); + qualityMetrics_ = null; + } + return qualityMetricsBuilder_; + } + + private int state_ = 0; + /** + * + * + *
      +     * Output only. The state of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
      +     * Output only. The state of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The state of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation.State getState() { + com.google.cloud.discoveryengine.v1alpha.Evaluation.State result = + com.google.cloud.discoveryengine.v1alpha.Evaluation.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1alpha.Evaluation.State.UNRECOGNIZED + : result; + } + /** + * + * + *
      +     * Output only. The state of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.discoveryengine.v1alpha.Evaluation.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The state of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000010); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000040); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.util.List errorSamples_ = java.util.Collections.emptyList(); + + private void ensureErrorSamplesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + errorSamples_ = new java.util.ArrayList(errorSamples_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorSamplesBuilder_; + + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorSamplesList() { + if (errorSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(errorSamples_); + } else { + return errorSamplesBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getErrorSamplesCount() { + if (errorSamplesBuilder_ == null) { + return errorSamples_.size(); + } else { + return errorSamplesBuilder_.getCount(); + } + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status getErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, value); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrorSamples(com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllErrorSamples(java.lang.Iterable values) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); + onChanged(); + } else { + errorSamplesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearErrorSamples() { + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + errorSamplesBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.remove(index); + onChanged(); + } else { + errorSamplesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorSamplesOrBuilderList() { + if (errorSamplesBuilder_ != null) { + return errorSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errorSamples_); + } + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder() { + return getErrorSamplesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorSamplesBuilderList() { + return getErrorSamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorSamplesFieldBuilder() { + if (errorSamplesBuilder_ == null) { + errorSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errorSamples_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + errorSamples_ = null; + } + return errorSamplesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.Evaluation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Evaluation) + private static final com.google.cloud.discoveryengine.v1alpha.Evaluation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.Evaluation(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Evaluation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Evaluation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationName.java new file mode 100644 index 000000000000..58e1f4b381e8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class EvaluationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_EVALUATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/evaluations/{evaluation}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String evaluation; + + @Deprecated + protected EvaluationName() { + project = null; + location = null; + evaluation = null; + } + + private EvaluationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + evaluation = Preconditions.checkNotNull(builder.getEvaluation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEvaluation() { + return evaluation; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static EvaluationName of(String project, String location, String evaluation) { + return newBuilder().setProject(project).setLocation(location).setEvaluation(evaluation).build(); + } + + public static String format(String project, String location, String evaluation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setEvaluation(evaluation) + .build() + .toString(); + } + + public static EvaluationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_EVALUATION.validatedMatch( + formattedString, "EvaluationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("evaluation")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (EvaluationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_EVALUATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (evaluation != null) { + fieldMapBuilder.put("evaluation", evaluation); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_EVALUATION.instantiate( + "project", project, "location", location, "evaluation", evaluation); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + EvaluationName that = ((EvaluationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.evaluation, that.evaluation); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(evaluation); + return h; + } + + /** Builder for projects/{project}/locations/{location}/evaluations/{evaluation}. */ + public static class Builder { + private String project; + private String location; + private String evaluation; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEvaluation() { + return evaluation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setEvaluation(String evaluation) { + this.evaluation = evaluation; + return this; + } + + private Builder(EvaluationName evaluationName) { + this.project = evaluationName.project; + this.location = evaluationName.location; + this.evaluation = evaluationName.evaluation; + } + + public EvaluationName build() { + return new EvaluationName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationOrBuilder.java new file mode 100644 index 000000000000..aa37c8fe85e8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationOrBuilder.java @@ -0,0 +1,374 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface EvaluationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Evaluation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], in the
      +   * format of
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], in the
      +   * format of
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Required. The specification of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluationSpec field is set. + */ + boolean hasEvaluationSpec(); + /** + * + * + *
      +   * Required. The specification of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluationSpec. + */ + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec getEvaluationSpec(); + /** + * + * + *
      +   * Required. The specification of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.Evaluation.EvaluationSpecOrBuilder + getEvaluationSpecOrBuilder(); + + /** + * + * + *
      +   * Output only. The metrics produced by the evaluation, averaged across all
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +   *
      +   * Only populated when the evaluation's state is SUCCEEDED.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the qualityMetrics field is set. + */ + boolean hasQualityMetrics(); + /** + * + * + *
      +   * Output only. The metrics produced by the evaluation, averaged across all
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +   *
      +   * Only populated when the evaluation's state is SUCCEEDED.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The qualityMetrics. + */ + com.google.cloud.discoveryengine.v1alpha.QualityMetrics getQualityMetrics(); + /** + * + * + *
      +   * Output only. The metrics produced by the evaluation, averaged across all
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +   *
      +   * Only populated when the evaluation's state is SUCCEEDED.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1alpha.QualityMetricsOrBuilder getQualityMetricsOrBuilder(); + + /** + * + * + *
      +   * Output only. The state of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
      +   * Output only. The state of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.discoveryengine.v1alpha.Evaluation.State getState(); + + /** + * + * + *
      +   * Output only. The error that occurred during evaluation. Only populated when
      +   * the evaluation's state is FAILED.
      +   * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + boolean hasError(); + /** + * + * + *
      +   * Output only. The error that occurred during evaluation. Only populated when
      +   * the evaluation's state is FAILED.
      +   * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + com.google.rpc.Status getError(); + /** + * + * + *
      +   * Output only. The error that occurred during evaluation. Only populated when
      +   * the evaluation's state is FAILED.
      +   * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorSamplesList(); + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.Status getErrorSamples(int index); + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getErrorSamplesCount(); + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorSamplesOrBuilderList(); + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationProto.java new file mode 100644 index 000000000000..c157942b0df8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationProto.java @@ -0,0 +1,192 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public final class EvaluationProto { + private EvaluationProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_QuerySetSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_QuerySetSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_TopkMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_TopkMetrics_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/discoveryengine/v1alpha/e" + + "valuation.proto\022$google.cloud.discoverye" + + "ngine.v1alpha\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\0329googl" + + "e/cloud/discoveryengine/v1alpha/search_s" + + "ervice.proto\032\037google/protobuf/timestamp." + + "proto\032\027google/rpc/status.proto\"\350\007\n\nEvalu" + + "ation\022\021\n\004name\030\001 \001(\tB\003\340A\010\022]\n\017evaluation_s" + + "pec\030\002 \001(\0132?.google.cloud.discoveryengine" + + ".v1alpha.Evaluation.EvaluationSpecB\003\340A\002\022" + + "R\n\017quality_metrics\030\003 \001(\01324.google.cloud." + + "discoveryengine.v1alpha.QualityMetricsB\003" + + "\340A\003\022J\n\005state\030\004 \001(\01626.google.cloud.discov" + + "eryengine.v1alpha.Evaluation.StateB\003\340A\003\022" + + "&\n\005error\030\005 \001(\0132\022.google.rpc.StatusB\003\340A\003\022" + + "4\n\013create_time\030\006 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0221\n\010end_time\030\007 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022.\n\rerror_sample" + + "s\030\010 \003(\0132\022.google.rpc.StatusB\003\340A\003\032\277\002\n\016Eva" + + "luationSpec\022R\n\016search_request\030\002 \001(\01323.go" + + "ogle.cloud.discoveryengine.v1alpha.Searc" + + "hRequestB\003\340A\002H\000\022i\n\016query_set_spec\030\001 \001(\0132" + + "L.google.cloud.discoveryengine.v1alpha.E" + + "valuation.EvaluationSpec.QuerySetSpecB\003\340" + + "A\002\032_\n\014QuerySetSpec\022O\n\020sample_query_set\030\001" + + " \001(\tB5\340A\002\372A/\n-discoveryengine.googleapis" + + ".com/SampleQuerySetB\r\n\013search_spec\"S\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022" + + "\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004:" + + "p\352Am\n)discoveryengine.googleapis.com/Eva" + + "luation\022@projects/{project}/locations/{l" + + "ocation}/evaluations/{evaluation}\"\213\004\n\016Qu" + + "alityMetrics\022T\n\ndoc_recall\030\001 \001(\0132@.googl" + + "e.cloud.discoveryengine.v1alpha.QualityM" + + "etrics.TopkMetrics\022W\n\rdoc_precision\030\002 \001(" + + "\0132@.google.cloud.discoveryengine.v1alpha" + + ".QualityMetrics.TopkMetrics\022R\n\010doc_ndcg\030" + + "\003 \001(\0132@.google.cloud.discoveryengine.v1a" + + "lpha.QualityMetrics.TopkMetrics\022U\n\013page_" + + "recall\030\004 \001(\0132@.google.cloud.discoveryeng" + + "ine.v1alpha.QualityMetrics.TopkMetrics\022S" + + "\n\tpage_ndcg\030\005 \001(\0132@.google.cloud.discove" + + "ryengine.v1alpha.QualityMetrics.TopkMetr" + + "ics\032J\n\013TopkMetrics\022\r\n\005top_1\030\001 \001(\001\022\r\n\005top" + + "_3\030\002 \001(\001\022\r\n\005top_5\030\003 \001(\001\022\016\n\006top_10\030\004 \001(\001B" + + "\233\002\n(com.google.cloud.discoveryengine.v1a" + + "lphaB\017EvaluationProtoP\001ZRcloud.google.co" + + "m/go/discoveryengine/apiv1alpha/discover" + + "yenginepb;discoveryenginepb\242\002\017DISCOVERYE" + + "NGINE\252\002$Google.Cloud.DiscoveryEngine.V1A" + + "lpha\312\002$Google\\Cloud\\DiscoveryEngine\\V1al" + + "pha\352\002\'Google::Cloud::DiscoveryEngine::V1" + + "alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_descriptor, + new java.lang.String[] { + "Name", + "EvaluationSpec", + "QualityMetrics", + "State", + "Error", + "CreateTime", + "EndTime", + "ErrorSamples", + }); + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_descriptor, + new java.lang.String[] { + "SearchRequest", "QuerySetSpec", "SearchSpec", + }); + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_QuerySetSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_QuerySetSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Evaluation_EvaluationSpec_QuerySetSpec_descriptor, + new java.lang.String[] { + "SampleQuerySet", + }); + internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_descriptor, + new java.lang.String[] { + "DocRecall", "DocPrecision", "DocNdcg", "PageRecall", "PageNdcg", + }); + internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_TopkMetrics_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_TopkMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_TopkMetrics_descriptor, + new java.lang.String[] { + "Top1", "Top3", "Top5", "Top10", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceProto.java new file mode 100644 index 000000000000..089d078c6596 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceProto.java @@ -0,0 +1,241 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public final class EvaluationServiceProto { + private EvaluationServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_GetEvaluationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_GetEvaluationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_EvaluationResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_EvaluationResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n=google/cloud/discoveryengine/v1alpha/e" + + "valuation_service.proto\022$google.cloud.di" + + "scoveryengine.v1alpha\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\0325google/cloud/discovery" + + "engine/v1alpha/evaluation.proto\0327google/" + + "cloud/discoveryengine/v1alpha/sample_que" + + "ry.proto\032#google/longrunning/operations." + + "proto\"W\n\024GetEvaluationRequest\022?\n\004name\030\001 " + + "\001(\tB1\340A\002\372A+\n)discoveryengine.googleapis." + + "com/Evaluation\"\200\001\n\026ListEvaluationsReques" + + "t\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'discoveryengi" + + "ne.googleapis.com/Location\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"y\n\027ListEvaluat" + + "ionsResponse\022E\n\013evaluations\030\001 \003(\01320.goog" + + "le.cloud.discoveryengine.v1alpha.Evaluat" + + "ion\022\027\n\017next_page_token\030\002 \001(\t\"\245\001\n\027CreateE" + + "valuationRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)" + + "\n\'discoveryengine.googleapis.com/Locatio" + + "n\022I\n\nevaluation\030\002 \001(\01320.google.cloud.dis" + + "coveryengine.v1alpha.EvaluationB\003\340A\002\"\032\n\030" + + "CreateEvaluationMetadata\"\214\001\n\034ListEvaluat" + + "ionResultsRequest\022E\n\nevaluation\030\001 \001(\tB1\340" + + "A\002\372A+\n)discoveryengine.googleapis.com/Ev" + + "aluation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\"\341\002\n\035ListEvaluationResultsRespons" + + "e\022p\n\022evaluation_results\030\001 \003(\0132T.google.c" + + "loud.discoveryengine.v1alpha.ListEvaluat" + + "ionResultsResponse.EvaluationResult\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\032\264\001\n\020EvaluationResul" + + "t\022L\n\014sample_query\030\001 \001(\01321.google.cloud.d" + + "iscoveryengine.v1alpha.SampleQueryB\003\340A\003\022" + + "R\n\017quality_metrics\030\002 \001(\01324.google.cloud." + + "discoveryengine.v1alpha.QualityMetricsB\003" + + "\340A\0032\311\010\n\021EvaluationService\022\302\001\n\rGetEvaluat" + + "ion\022:.google.cloud.discoveryengine.v1alp" + + "ha.GetEvaluationRequest\0320.google.cloud.d" + + "iscoveryengine.v1alpha.Evaluation\"C\332A\004na" + + "me\202\323\344\223\0026\0224/v1alpha/{name=projects/*/loca" + + "tions/*/evaluations/*}\022\325\001\n\017ListEvaluatio" + + "ns\022<.google.cloud.discoveryengine.v1alph" + + "a.ListEvaluationsRequest\032=.google.cloud." + + "discoveryengine.v1alpha.ListEvaluationsR" + + "esponse\"E\332A\006parent\202\323\344\223\0026\0224/v1alpha/{pare" + + "nt=projects/*/locations/*}/evaluations\022\302" + + "\002\n\020CreateEvaluation\022=.google.cloud.disco" + + "veryengine.v1alpha.CreateEvaluationReque" + + "st\032\035.google.longrunning.Operation\"\317\001\312Ap\n" + + "/google.cloud.discoveryengine.v1alpha.Ev" + + "aluation\022=google.cloud.discoveryengine.v" + + "1alpha.CreateEvaluationMetadata\332A\021parent" + + ",evaluation\202\323\344\223\002B\"4/v1alpha/{parent=proj" + + "ects/*/locations/*}/evaluations:\nevaluat" + + "ion\022\375\001\n\025ListEvaluationResults\022B.google.c" + + "loud.discoveryengine.v1alpha.ListEvaluat" + + "ionResultsRequest\032C.google.cloud.discove" + + "ryengine.v1alpha.ListEvaluationResultsRe" + + "sponse\"[\332A\nevaluation\202\323\344\223\002H\022F/v1alpha/{e" + + "valuation=projects/*/locations/*/evaluat" + + "ions/*}:listResults\032R\312A\036discoveryengine." + + "googleapis.com\322A.https://www.googleapis." + + "com/auth/cloud-platformB\242\002\n(com.google.c" + + "loud.discoveryengine.v1alphaB\026Evaluation" + + "ServiceProtoP\001ZRcloud.google.com/go/disc" + + "overyengine/apiv1alpha/discoveryenginepb" + + ";discoveryenginepb\242\002\017DISCOVERYENGINE\252\002$G" + + "oogle.Cloud.DiscoveryEngine.V1Alpha\312\002$Go" + + "ogle\\Cloud\\DiscoveryEngine\\V1alpha\352\002\'Goo" + + "gle::Cloud::DiscoveryEngine::V1alphab\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.EvaluationProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.SampleQueryProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_GetEvaluationRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_GetEvaluationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_GetEvaluationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsResponse_descriptor, + new java.lang.String[] { + "Evaluations", "NextPageToken", + }); + internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationRequest_descriptor, + new java.lang.String[] { + "Parent", "Evaluation", + }); + internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_CreateEvaluationMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsRequest_descriptor, + new java.lang.String[] { + "Evaluation", "PageSize", "PageToken", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_descriptor, + new java.lang.String[] { + "EvaluationResults", "NextPageToken", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_EvaluationResult_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_EvaluationResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_EvaluationResult_descriptor, + new java.lang.String[] { + "SampleQuery", "QualityMetrics", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.EvaluationProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.SampleQueryProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetEvaluationRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetEvaluationRequest.java new file mode 100644 index 000000000000..c01a07926cea --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetEvaluationRequest.java @@ -0,0 +1,718 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [EvaluationService.GetEvaluation][google.cloud.discoveryengine.v1alpha.EvaluationService.GetEvaluation]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetEvaluationRequest} + */ +public final class GetEvaluationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.GetEvaluationRequest) + GetEvaluationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEvaluationRequest.newBuilder() to construct. + private GetEvaluationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEvaluationRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEvaluationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest.class, + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Required. Full resource name of
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], regardless
      +   * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Full resource name of
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], regardless
      +   * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest other = + (com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [EvaluationService.GetEvaluation][google.cloud.discoveryengine.v1alpha.EvaluationService.GetEvaluation]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetEvaluationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.GetEvaluationRequest) + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest.class, + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetEvaluationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest build() { + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest result = + new com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Required. Full resource name of
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.GetEvaluationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.GetEvaluationRequest) + private static final com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetEvaluationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetEvaluationRequestOrBuilder.java new file mode 100644 index 000000000000..8765f03e4ca9 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetEvaluationRequestOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface GetEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.GetEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Full resource name of
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], regardless
      +   * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Required. Full resource name of
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], regardless
      +   * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSampleQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSampleQueryRequest.java new file mode 100644 index 000000000000..a4ba6e671e31 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSampleQueryRequest.java @@ -0,0 +1,720 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [SampleQueryService.GetSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.GetSampleQuery]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest} + */ +public final class GetSampleQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest) + GetSampleQueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSampleQueryRequest.newBuilder() to construct. + private GetSampleQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSampleQueryRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSampleQueryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest other = + (com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQueryService.GetSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.GetSampleQuery]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest) + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest build() { + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest result = + new com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest) + private static final com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSampleQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSampleQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSampleQueryRequestOrBuilder.java new file mode 100644 index 000000000000..e21265a2319b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSampleQueryRequestOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface GetSampleQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSampleQuerySetRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSampleQuerySetRequest.java new file mode 100644 index 000000000000..6f742004945a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSampleQuerySetRequest.java @@ -0,0 +1,737 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [SampleQuerySetService.GetSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.GetSampleQuerySet]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest} + */ +public final class GetSampleQuerySetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest) + GetSampleQuerySetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSampleQuerySetRequest.newBuilder() to construct. + private GetSampleQuerySetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSampleQuerySetRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSampleQuerySetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +   * returned.
      +   *
      +   * If the requested
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] does
      +   * not exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +   * returned.
      +   *
      +   * If the requested
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] does
      +   * not exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest other = + (com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQuerySetService.GetSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.GetSampleQuerySet]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest) + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest build() { + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest result = + new com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +     * returned.
      +     *
      +     * If the requested
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] does
      +     * not exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +     * returned.
      +     *
      +     * If the requested
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] does
      +     * not exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +     * returned.
      +     *
      +     * If the requested
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] does
      +     * not exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +     * returned.
      +     *
      +     * If the requested
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] does
      +     * not exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +     * returned.
      +     *
      +     * If the requested
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] does
      +     * not exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest) + private static final com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSampleQuerySetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSampleQuerySetRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSampleQuerySetRequestOrBuilder.java new file mode 100644 index 000000000000..46210c8bcad5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSampleQuerySetRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface GetSampleQuerySetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +   * returned.
      +   *
      +   * If the requested
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] does
      +   * not exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +   * returned.
      +   *
      +   * If the requested
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] does
      +   * not exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportConfigProto.java index a68d4913b842..2fea28498350 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportConfigProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportConfigProto.java @@ -124,6 +124,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_InlineSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -139,147 +155,171 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ior.proto\032\031google/api/resource.proto\0325go" + "ogle/cloud/discoveryengine/v1alpha/compl" + "etion.proto\0323google/cloud/discoveryengin" - + "e/v1alpha/document.proto\0325google/cloud/d" - + "iscoveryengine/v1alpha/user_event.proto\032" - + " google/protobuf/field_mask.proto\032\037googl" - + "e/protobuf/timestamp.proto\032\027google/rpc/s" - + "tatus.proto\032\026google/type/date.proto\"9\n\tG" - + "csSource\022\027\n\ninput_uris\030\001 \003(\tB\003\340A\002\022\023\n\013dat" - + "a_schema\030\002 \001(\t\"\274\001\n\016BigQuerySource\022+\n\016par" - + "tition_date\030\005 \001(\0132\021.google.type.DateH\000\022\022" - + "\n\nproject_id\030\001 \001(\t\022\027\n\ndataset_id\030\002 \001(\tB\003" - + "\340A\002\022\025\n\010table_id\030\003 \001(\tB\003\340A\002\022\027\n\017gcs_stagin" - + "g_dir\030\004 \001(\t\022\023\n\013data_schema\030\006 \001(\tB\013\n\tpart" - + "ition\"\211\001\n\rSpannerSource\022\022\n\nproject_id\030\001 " - + "\001(\t\022\030\n\013instance_id\030\002 \001(\tB\003\340A\002\022\030\n\013databas" - + "e_id\030\003 \001(\tB\003\340A\002\022\025\n\010table_id\030\004 \001(\tB\003\340A\002\022\031" - + "\n\021enable_data_boost\030\005 \001(\010\"\260\007\n\017BigtableOp" - + "tions\022\026\n\016key_field_name\030\001 \001(\t\022U\n\010familie" - + "s\030\002 \003(\0132C.google.cloud.discoveryengine.v" - + "1alpha.BigtableOptions.FamiliesEntry\032\235\002\n" - + "\024BigtableColumnFamily\022\022\n\nfield_name\030\001 \001(" - + "\t\022P\n\010encoding\030\002 \001(\0162>.google.cloud.disco" - + "veryengine.v1alpha.BigtableOptions.Encod" - + "ing\022H\n\004type\030\003 \001(\0162:.google.cloud.discove" - + "ryengine.v1alpha.BigtableOptions.Type\022U\n" - + "\007columns\030\004 \003(\0132D.google.cloud.discoverye" - + "ngine.v1alpha.BigtableOptions.BigtableCo" - + "lumn\032\330\001\n\016BigtableColumn\022\026\n\tqualifier\030\001 \001" - + "(\014B\003\340A\002\022\022\n\nfield_name\030\002 \001(\t\022P\n\010encoding\030" - + "\003 \001(\0162>.google.cloud.discoveryengine.v1a" - + "lpha.BigtableOptions.Encoding\022H\n\004type\030\004 " - + "\001(\0162:.google.cloud.discoveryengine.v1alp" - + "ha.BigtableOptions.Type\032{\n\rFamiliesEntry" - + "\022\013\n\003key\030\001 \001(\t\022Y\n\005value\030\002 \001(\0132J.google.cl" - + "oud.discoveryengine.v1alpha.BigtableOpti" - + "ons.BigtableColumnFamily:\0028\001\"z\n\004Type\022\024\n\020" - + "TYPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001\022\n\n\006NUMBER" - + "\020\002\022\013\n\007INTEGER\020\003\022\017\n\013VAR_INTEGER\020\004\022\017\n\013BIG_" - + "NUMERIC\020\005\022\013\n\007BOOLEAN\020\006\022\010\n\004JSON\020\007\":\n\010Enco" - + "ding\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\010\n\004TEXT\020\001" - + "\022\n\n\006BINARY\020\002\"\253\001\n\016BigtableSource\022\022\n\nproje" - + "ct_id\030\001 \001(\t\022\030\n\013instance_id\030\002 \001(\tB\003\340A\002\022\025\n" - + "\010table_id\030\003 \001(\tB\003\340A\002\022T\n\020bigtable_options" - + "\030\004 \001(\01325.google.cloud.discoveryengine.v1" - + "alpha.BigtableOptionsB\003\340A\002\"k\n\017FhirStoreS" - + "ource\022?\n\nfhir_store\030\001 \001(\tB+\340A\002\372A%\n#healt" - + "hcare.googleapis.com/FhirStore\022\027\n\017gcs_st" - + "aging_dir\030\002 \001(\t\"\231\001\n\016CloudSqlSource\022\022\n\npr" - + "oject_id\030\001 \001(\t\022\030\n\013instance_id\030\002 \001(\tB\003\340A\002" - + "\022\030\n\013database_id\030\003 \001(\tB\003\340A\002\022\025\n\010table_id\030\004" - + " \001(\tB\003\340A\002\022\027\n\017gcs_staging_dir\030\005 \001(\t\022\017\n\007of" - + "fload\030\006 \001(\010\"t\n\017FirestoreSource\022\022\n\nprojec" - + "t_id\030\001 \001(\t\022\030\n\013database_id\030\002 \001(\tB\003\340A\002\022\032\n\r" - + "collection_id\030\003 \001(\tB\003\340A\002\022\027\n\017gcs_staging_" - + "dir\030\004 \001(\t\"8\n\021ImportErrorConfig\022\024\n\ngcs_pr" - + "efix\030\001 \001(\tH\000B\r\n\013destination\"\214\004\n\027ImportUs" - + "erEventsRequest\022c\n\rinline_source\030\002 \001(\0132J" + + "e/v1alpha/document.proto\0327google/cloud/d" + + "iscoveryengine/v1alpha/sample_query.prot" + + "o\0325google/cloud/discoveryengine/v1alpha/" + + "user_event.proto\032 google/protobuf/field_" + + "mask.proto\032\037google/protobuf/timestamp.pr" + + "oto\032\027google/rpc/status.proto\032\026google/typ" + + "e/date.proto\"9\n\tGcsSource\022\027\n\ninput_uris\030" + + "\001 \003(\tB\003\340A\002\022\023\n\013data_schema\030\002 \001(\t\"\274\001\n\016BigQ" + + "uerySource\022+\n\016partition_date\030\005 \001(\0132\021.goo" + + "gle.type.DateH\000\022\022\n\nproject_id\030\001 \001(\t\022\027\n\nd" + + "ataset_id\030\002 \001(\tB\003\340A\002\022\025\n\010table_id\030\003 \001(\tB\003" + + "\340A\002\022\027\n\017gcs_staging_dir\030\004 \001(\t\022\023\n\013data_sch" + + "ema\030\006 \001(\tB\013\n\tpartition\"\211\001\n\rSpannerSource" + + "\022\022\n\nproject_id\030\001 \001(\t\022\030\n\013instance_id\030\002 \001(" + + "\tB\003\340A\002\022\030\n\013database_id\030\003 \001(\tB\003\340A\002\022\025\n\010tabl" + + "e_id\030\004 \001(\tB\003\340A\002\022\031\n\021enable_data_boost\030\005 \001" + + "(\010\"\260\007\n\017BigtableOptions\022\026\n\016key_field_name" + + "\030\001 \001(\t\022U\n\010families\030\002 \003(\0132C.google.cloud." + + "discoveryengine.v1alpha.BigtableOptions." + + "FamiliesEntry\032\235\002\n\024BigtableColumnFamily\022\022" + + "\n\nfield_name\030\001 \001(\t\022P\n\010encoding\030\002 \001(\0162>.g" + + "oogle.cloud.discoveryengine.v1alpha.Bigt" + + "ableOptions.Encoding\022H\n\004type\030\003 \001(\0162:.goo" + + "gle.cloud.discoveryengine.v1alpha.Bigtab" + + "leOptions.Type\022U\n\007columns\030\004 \003(\0132D.google" + + ".cloud.discoveryengine.v1alpha.BigtableO" + + "ptions.BigtableColumn\032\330\001\n\016BigtableColumn" + + "\022\026\n\tqualifier\030\001 \001(\014B\003\340A\002\022\022\n\nfield_name\030\002" + + " \001(\t\022P\n\010encoding\030\003 \001(\0162>.google.cloud.di" + + "scoveryengine.v1alpha.BigtableOptions.En" + + "coding\022H\n\004type\030\004 \001(\0162:.google.cloud.disc" + + "overyengine.v1alpha.BigtableOptions.Type" + + "\032{\n\rFamiliesEntry\022\013\n\003key\030\001 \001(\t\022Y\n\005value\030" + + "\002 \001(\0132J.google.cloud.discoveryengine.v1a" + + "lpha.BigtableOptions.BigtableColumnFamil" + + "y:\0028\001\"z\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006S" + + "TRING\020\001\022\n\n\006NUMBER\020\002\022\013\n\007INTEGER\020\003\022\017\n\013VAR_" + + "INTEGER\020\004\022\017\n\013BIG_NUMERIC\020\005\022\013\n\007BOOLEAN\020\006\022" + + "\010\n\004JSON\020\007\":\n\010Encoding\022\030\n\024ENCODING_UNSPEC" + + "IFIED\020\000\022\010\n\004TEXT\020\001\022\n\n\006BINARY\020\002\"\253\001\n\016Bigtab" + + "leSource\022\022\n\nproject_id\030\001 \001(\t\022\030\n\013instance" + + "_id\030\002 \001(\tB\003\340A\002\022\025\n\010table_id\030\003 \001(\tB\003\340A\002\022T\n" + + "\020bigtable_options\030\004 \001(\01325.google.cloud.d" + + "iscoveryengine.v1alpha.BigtableOptionsB\003" + + "\340A\002\"k\n\017FhirStoreSource\022?\n\nfhir_store\030\001 \001" + + "(\tB+\340A\002\372A%\n#healthcare.googleapis.com/Fh" + + "irStore\022\027\n\017gcs_staging_dir\030\002 \001(\t\"\231\001\n\016Clo" + + "udSqlSource\022\022\n\nproject_id\030\001 \001(\t\022\030\n\013insta" + + "nce_id\030\002 \001(\tB\003\340A\002\022\030\n\013database_id\030\003 \001(\tB\003" + + "\340A\002\022\025\n\010table_id\030\004 \001(\tB\003\340A\002\022\027\n\017gcs_stagin" + + "g_dir\030\005 \001(\t\022\017\n\007offload\030\006 \001(\010\"t\n\017Firestor" + + "eSource\022\022\n\nproject_id\030\001 \001(\t\022\030\n\013database_" + + "id\030\002 \001(\tB\003\340A\002\022\032\n\rcollection_id\030\003 \001(\tB\003\340A" + + "\002\022\027\n\017gcs_staging_dir\030\004 \001(\t\"8\n\021ImportErro" + + "rConfig\022\024\n\ngcs_prefix\030\001 \001(\tH\000B\r\n\013destina" + + "tion\"\214\004\n\027ImportUserEventsRequest\022c\n\rinli" + + "ne_source\030\002 \001(\0132J.google.cloud.discovery" + + "engine.v1alpha.ImportUserEventsRequest.I" + + "nlineSourceH\000\022E\n\ngcs_source\030\003 \001(\0132/.goog" + + "le.cloud.discoveryengine.v1alpha.GcsSour" + + "ceH\000\022O\n\017bigquery_source\030\004 \001(\01324.google.c" + + "loud.discoveryengine.v1alpha.BigQuerySou" + + "rceH\000\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(discovery" + + "engine.googleapis.com/DataStore\022M\n\014error" + + "_config\030\005 \001(\01327.google.cloud.discoveryen" + + "gine.v1alpha.ImportErrorConfig\032Y\n\014Inline" + + "Source\022I\n\013user_events\030\001 \003(\0132/.google.clo" + + "ud.discoveryengine.v1alpha.UserEventB\003\340A" + + "\002B\010\n\006source\"\320\001\n\030ImportUserEventsResponse" + + "\022)\n\rerror_samples\030\001 \003(\0132\022.google.rpc.Sta" + + "tus\022M\n\014error_config\030\002 \001(\01327.google.cloud" + + ".discoveryengine.v1alpha.ImportErrorConf" + + "ig\022\033\n\023joined_events_count\030\003 \001(\003\022\035\n\025unjoi" + + "ned_events_count\030\004 \001(\003\"\252\001\n\030ImportUserEve" + + "ntsMetadata\022/\n\013create_time\030\001 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022/\n\013update_time\030\002 \001(" + + "\0132\032.google.protobuf.Timestamp\022\025\n\rsuccess" + + "_count\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003\"\276\001\n\027" + + "ImportDocumentsMetadata\022/\n\013create_time\030\001" + + " \001(\0132\032.google.protobuf.Timestamp\022/\n\013upda" + + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfailure_coun" + + "t\030\004 \001(\003\022\023\n\013total_count\030\005 \001(\003\"\277\t\n\026ImportD" + + "ocumentsRequest\022b\n\rinline_source\030\002 \001(\0132I" + ".google.cloud.discoveryengine.v1alpha.Im" - + "portUserEventsRequest.InlineSourceH\000\022E\n\n" - + "gcs_source\030\003 \001(\0132/.google.cloud.discover" - + "yengine.v1alpha.GcsSourceH\000\022O\n\017bigquery_" - + "source\030\004 \001(\01324.google.cloud.discoveryeng" - + "ine.v1alpha.BigQuerySourceH\000\022@\n\006parent\030\001" - + " \001(\tB0\340A\002\372A*\n(discoveryengine.googleapis" - + ".com/DataStore\022M\n\014error_config\030\005 \001(\01327.g" - + "oogle.cloud.discoveryengine.v1alpha.Impo" - + "rtErrorConfig\032Y\n\014InlineSource\022I\n\013user_ev" - + "ents\030\001 \003(\0132/.google.cloud.discoveryengin" - + "e.v1alpha.UserEventB\003\340A\002B\010\n\006source\"\320\001\n\030I" - + "mportUserEventsResponse\022)\n\rerror_samples" - + "\030\001 \003(\0132\022.google.rpc.Status\022M\n\014error_conf" - + "ig\030\002 \001(\01327.google.cloud.discoveryengine." - + "v1alpha.ImportErrorConfig\022\033\n\023joined_even" - + "ts_count\030\003 \001(\003\022\035\n\025unjoined_events_count\030" - + "\004 \001(\003\"\252\001\n\030ImportUserEventsMetadata\022/\n\013cr" - + "eate_time\030\001 \001(\0132\032.google.protobuf.Timest" - + "amp\022/\n\013update_time\030\002 \001(\0132\032.google.protob" - + "uf.Timestamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rf" - + "ailure_count\030\004 \001(\003\"\276\001\n\027ImportDocumentsMe" - + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" - + "tobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022\025\n\rsuccess_coun" - + "t\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003\022\023\n\013total_" - + "count\030\005 \001(\003\"\277\t\n\026ImportDocumentsRequest\022b" - + "\n\rinline_source\030\002 \001(\0132I.google.cloud.dis" - + "coveryengine.v1alpha.ImportDocumentsRequ" - + "est.InlineSourceH\000\022E\n\ngcs_source\030\003 \001(\0132/" - + ".google.cloud.discoveryengine.v1alpha.Gc" - + "sSourceH\000\022O\n\017bigquery_source\030\004 \001(\01324.goo" - + "gle.cloud.discoveryengine.v1alpha.BigQue" - + "rySourceH\000\022R\n\021fhir_store_source\030\n \001(\01325." - + "google.cloud.discoveryengine.v1alpha.Fhi" - + "rStoreSourceH\000\022M\n\016spanner_source\030\013 \001(\01323" - + ".google.cloud.discoveryengine.v1alpha.Sp" - + "annerSourceH\000\022P\n\020cloud_sql_source\030\014 \001(\0132" - + "4.google.cloud.discoveryengine.v1alpha.C" - + "loudSqlSourceH\000\022Q\n\020firestore_source\030\r \001(" - + "\01325.google.cloud.discoveryengine.v1alpha" - + ".FirestoreSourceH\000\022O\n\017bigtable_source\030\017 " - + "\001(\01324.google.cloud.discoveryengine.v1alp" - + "ha.BigtableSourceH\000\022=\n\006parent\030\001 \001(\tB-\340A\002" - + "\372A\'\n%discoveryengine.googleapis.com/Bran" - + "ch\022M\n\014error_config\030\005 \001(\01327.google.cloud." - + "discoveryengine.v1alpha.ImportErrorConfi" - + "g\022l\n\023reconciliation_mode\030\006 \001(\0162O.google." - + "cloud.discoveryengine.v1alpha.ImportDocu" - + "mentsRequest.ReconciliationMode\022/\n\013updat" - + "e_mask\030\007 \001(\0132\032.google.protobuf.FieldMask" - + "\022\031\n\021auto_generate_ids\030\010 \001(\010\022\020\n\010id_field\030" - + "\t \001(\t\032V\n\014InlineSource\022F\n\tdocuments\030\001 \003(\013" - + "2..google.cloud.discoveryengine.v1alpha." - + "DocumentB\003\340A\002\"T\n\022ReconciliationMode\022#\n\037R" - + "ECONCILIATION_MODE_UNSPECIFIED\020\000\022\017\n\013INCR" - + "EMENTAL\020\001\022\010\n\004FULL\020\002B\010\n\006source\"\223\001\n\027Import" - + "DocumentsResponse\022)\n\rerror_samples\030\001 \003(\013" - + "2\022.google.rpc.Status\022M\n\014error_config\030\002 \001" - + "(\01327.google.cloud.discoveryengine.v1alph" - + "a.ImportErrorConfig\"\224\003\n&ImportSuggestion" - + "DenyListEntriesRequest\022r\n\rinline_source\030" - + "\002 \001(\0132Y.google.cloud.discoveryengine.v1a" - + "lpha.ImportSuggestionDenyListEntriesRequ" - + "est.InlineSourceH\000\022E\n\ngcs_source\030\003 \001(\0132/" - + ".google.cloud.discoveryengine.v1alpha.Gc" - + "sSourceH\000\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(disco" - + "veryengine.googleapis.com/DataStore\032c\n\014I" - + "nlineSource\022S\n\007entries\030\001 \003(\0132=.google.cl" - + "oud.discoveryengine.v1alpha.SuggestionDe" - + "nyListEntryB\003\340A\002B\010\n\006source\"\222\001\n\'ImportSug" - + "gestionDenyListEntriesResponse\022)\n\rerror_" - + "samples\030\001 \003(\0132\022.google.rpc.Status\022\036\n\026imp" - + "orted_entries_count\030\002 \001(\003\022\034\n\024failed_entr" - + "ies_count\030\003 \001(\003\"\213\001\n\'ImportSuggestionDeny" - + "ListEntriesMetadata\022/\n\013create_time\030\001 \001(\013" - + "2\032.google.protobuf.Timestamp\022/\n\013update_t" - + "ime\030\002 \001(\0132\032.google.protobuf.TimestampB\235\002" - + "\n(com.google.cloud.discoveryengine.v1alp" - + "haB\021ImportConfigProtoP\001ZRcloud.google.co" - + "m/go/discoveryengine/apiv1alpha/discover" - + "yenginepb;discoveryenginepb\242\002\017DISCOVERYE" - + "NGINE\252\002$Google.Cloud.DiscoveryEngine.V1A" - + "lpha\312\002$Google\\Cloud\\DiscoveryEngine\\V1al" - + "pha\352\002\'Google::Cloud::DiscoveryEngine::V1" - + "alphab\006proto3" + + "portDocumentsRequest.InlineSourceH\000\022E\n\ng" + + "cs_source\030\003 \001(\0132/.google.cloud.discovery" + + "engine.v1alpha.GcsSourceH\000\022O\n\017bigquery_s" + + "ource\030\004 \001(\01324.google.cloud.discoveryengi" + + "ne.v1alpha.BigQuerySourceH\000\022R\n\021fhir_stor" + + "e_source\030\n \001(\01325.google.cloud.discoverye" + + "ngine.v1alpha.FhirStoreSourceH\000\022M\n\016spann" + + "er_source\030\013 \001(\01323.google.cloud.discovery" + + "engine.v1alpha.SpannerSourceH\000\022P\n\020cloud_" + + "sql_source\030\014 \001(\01324.google.cloud.discover" + + "yengine.v1alpha.CloudSqlSourceH\000\022Q\n\020fire" + + "store_source\030\r \001(\01325.google.cloud.discov" + + "eryengine.v1alpha.FirestoreSourceH\000\022O\n\017b" + + "igtable_source\030\017 \001(\01324.google.cloud.disc" + + "overyengine.v1alpha.BigtableSourceH\000\022=\n\006" + + "parent\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengine.go" + + "ogleapis.com/Branch\022M\n\014error_config\030\005 \001(" + + "\01327.google.cloud.discoveryengine.v1alpha" + + ".ImportErrorConfig\022l\n\023reconciliation_mod" + + "e\030\006 \001(\0162O.google.cloud.discoveryengine.v" + + "1alpha.ImportDocumentsRequest.Reconcilia" + + "tionMode\022/\n\013update_mask\030\007 \001(\0132\032.google.p" + + "rotobuf.FieldMask\022\031\n\021auto_generate_ids\030\010" + + " \001(\010\022\020\n\010id_field\030\t \001(\t\032V\n\014InlineSource\022F" + + "\n\tdocuments\030\001 \003(\0132..google.cloud.discove" + + "ryengine.v1alpha.DocumentB\003\340A\002\"T\n\022Reconc" + + "iliationMode\022#\n\037RECONCILIATION_MODE_UNSP" + + "ECIFIED\020\000\022\017\n\013INCREMENTAL\020\001\022\010\n\004FULL\020\002B\010\n\006" + + "source\"\223\001\n\027ImportDocumentsResponse\022)\n\rer" + + "ror_samples\030\001 \003(\0132\022.google.rpc.Status\022M\n" + + "\014error_config\030\002 \001(\01327.google.cloud.disco" + + "veryengine.v1alpha.ImportErrorConfig\"\224\003\n" + + "&ImportSuggestionDenyListEntriesRequest\022" + + "r\n\rinline_source\030\002 \001(\0132Y.google.cloud.di" + + "scoveryengine.v1alpha.ImportSuggestionDe" + + "nyListEntriesRequest.InlineSourceH\000\022E\n\ng" + + "cs_source\030\003 \001(\0132/.google.cloud.discovery" + + "engine.v1alpha.GcsSourceH\000\022@\n\006parent\030\001 \001" + + "(\tB0\340A\002\372A*\n(discoveryengine.googleapis.c" + + "om/DataStore\032c\n\014InlineSource\022S\n\007entries\030" + + "\001 \003(\0132=.google.cloud.discoveryengine.v1a" + + "lpha.SuggestionDenyListEntryB\003\340A\002B\010\n\006sou" + + "rce\"\222\001\n\'ImportSuggestionDenyListEntriesR" + + "esponse\022)\n\rerror_samples\030\001 \003(\0132\022.google." + + "rpc.Status\022\036\n\026imported_entries_count\030\002 \001" + + "(\003\022\034\n\024failed_entries_count\030\003 \001(\003\"\213\001\n\'Imp" + + "ortSuggestionDenyListEntriesMetadata\022/\n\013" + + "create_time\030\001 \001(\0132\032.google.protobuf.Time" + + "stamp\022/\n\013update_time\030\002 \001(\0132\032.google.prot" + + "obuf.Timestamp\"\234\004\n\032ImportSampleQueriesRe" + + "quest\022f\n\rinline_source\030\002 \001(\0132M.google.cl" + + "oud.discoveryengine.v1alpha.ImportSample" + + "QueriesRequest.InlineSourceH\000\022E\n\ngcs_sou" + + "rce\030\003 \001(\0132/.google.cloud.discoveryengine" + + ".v1alpha.GcsSourceH\000\022O\n\017bigquery_source\030" + + "\004 \001(\01324.google.cloud.discoveryengine.v1a" + + "lpha.BigQuerySourceH\000\022E\n\006parent\030\001 \001(\tB5\340" + + "A\002\372A/\n-discoveryengine.googleapis.com/Sa" + + "mpleQuerySet\022M\n\014error_config\030\005 \001(\01327.goo" + + "gle.cloud.discoveryengine.v1alpha.Import" + + "ErrorConfig\032^\n\014InlineSource\022N\n\016sample_qu" + + "eries\030\001 \003(\01321.google.cloud.discoveryengi" + + "ne.v1alpha.SampleQueryB\003\340A\002B\010\n\006source\"\227\001" + + "\n\033ImportSampleQueriesResponse\022)\n\rerror_s" + + "amples\030\001 \003(\0132\022.google.rpc.Status\022M\n\014erro" + + "r_config\030\002 \001(\01327.google.cloud.discoverye" + + "ngine.v1alpha.ImportErrorConfig\"\302\001\n\033Impo" + + "rtSampleQueriesMetadata\022/\n\013create_time\030\001" + + " \001(\0132\032.google.protobuf.Timestamp\022/\n\013upda" + + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfailure_coun" + + "t\030\004 \001(\003\022\023\n\013total_count\030\005 \001(\003B\235\002\n(com.goo" + + "gle.cloud.discoveryengine.v1alphaB\021Impor" + + "tConfigProtoP\001ZRcloud.google.com/go/disc" + + "overyengine/apiv1alpha/discoveryenginepb" + + ";discoveryenginepb\242\002\017DISCOVERYENGINE\252\002$G" + + "oogle.Cloud.DiscoveryEngine.V1Alpha\312\002$Go" + + "ogle\\Cloud\\DiscoveryEngine\\V1alpha\352\002\'Goo" + + "gle::Cloud::DiscoveryEngine::V1alphab\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -289,6 +329,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1alpha.CompletionProto.getDescriptor(), com.google.cloud.discoveryengine.v1alpha.DocumentProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.SampleQueryProto.getDescriptor(), com.google.cloud.discoveryengine.v1alpha.UserEventProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -519,6 +560,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "CreateTime", "UpdateTime", }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_descriptor, + new java.lang.String[] { + "InlineSource", "GcsSource", "BigquerySource", "Parent", "ErrorConfig", "Source", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_InlineSource_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_InlineSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_InlineSource_descriptor, + new java.lang.String[] { + "SampleQueries", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesResponse_descriptor, + new java.lang.String[] { + "ErrorSamples", "ErrorConfig", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", "TotalCount", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -529,6 +604,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1alpha.CompletionProto.getDescriptor(); com.google.cloud.discoveryengine.v1alpha.DocumentProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.SampleQueryProto.getDescriptor(); com.google.cloud.discoveryengine.v1alpha.UserEventProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesMetadata.java new file mode 100644 index 000000000000..c27fcade7ce3 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesMetadata.java @@ -0,0 +1,1304 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Metadata related to the progress of the ImportSampleQueries
      + * operation. This will be returned by the google.longrunning.Operation.metadata
      + * field.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata} + */ +public final class ImportSampleQueriesMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata) + ImportSampleQueriesMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportSampleQueriesMetadata.newBuilder() to construct. + private ImportSampleQueriesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportSampleQueriesMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportSampleQueriesMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata.class, + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
      +   * ImportSampleQueries operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * ImportSampleQueries operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
      +   * ImportSampleQueries operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
      +   * ImportSampleQueries operation last update time. If the operation is done,
      +   * this is also the finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * ImportSampleQueries operation last update time. If the operation is done,
      +   * this is also the finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
      +   * ImportSampleQueries operation last update time. If the operation is done,
      +   * this is also the finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int SUCCESS_COUNT_FIELD_NUMBER = 3; + private long successCount_ = 0L; + /** + * + * + *
      +   * Count of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s
      +   * successfully imported.
      +   * 
      + * + * int64 success_count = 3; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + + public static final int FAILURE_COUNT_FIELD_NUMBER = 4; + private long failureCount_ = 0L; + /** + * + * + *
      +   * Count of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s
      +   * that failed to be imported.
      +   * 
      + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + + public static final int TOTAL_COUNT_FIELD_NUMBER = 5; + private long totalCount_ = 0L; + /** + * + * + *
      +   * Total count of
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s that were
      +   * processed.
      +   * 
      + * + * int64 total_count = 5; + * + * @return The totalCount. + */ + @java.lang.Override + public long getTotalCount() { + return totalCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + if (successCount_ != 0L) { + output.writeInt64(3, successCount_); + } + if (failureCount_ != 0L) { + output.writeInt64(4, failureCount_); + } + if (totalCount_ != 0L) { + output.writeInt64(5, totalCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + if (successCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, successCount_); + } + if (failureCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); + } + if (totalCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata other = + (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (getSuccessCount() != other.getSuccessCount()) return false; + if (getFailureCount() != other.getFailureCount()) return false; + if (getTotalCount() != other.getTotalCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + SUCCESS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessCount()); + hash = (37 * hash) + FAILURE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailureCount()); + hash = (37 * hash) + TOTAL_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Metadata related to the progress of the ImportSampleQueries
      +   * operation. This will be returned by the google.longrunning.Operation.metadata
      +   * field.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata) + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata.class, + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + successCount_ = 0L; + failureCount_ = 0L; + totalCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata build() { + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata result = + new com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.successCount_ = successCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failureCount_ = failureCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.totalCount_ = totalCount_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata + .getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getSuccessCount() != 0L) { + setSuccessCount(other.getSuccessCount()); + } + if (other.getFailureCount() != 0L) { + setFailureCount(other.getFailureCount()); + } + if (other.getTotalCount() != 0L) { + setTotalCount(other.getTotalCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + successCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + failureCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + totalCount_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private long successCount_; + /** + * + * + *
      +     * Count of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s
      +     * successfully imported.
      +     * 
      + * + * int64 success_count = 3; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + /** + * + * + *
      +     * Count of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s
      +     * successfully imported.
      +     * 
      + * + * int64 success_count = 3; + * + * @param value The successCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessCount(long value) { + + successCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Count of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s
      +     * successfully imported.
      +     * 
      + * + * int64 success_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearSuccessCount() { + bitField0_ = (bitField0_ & ~0x00000004); + successCount_ = 0L; + onChanged(); + return this; + } + + private long failureCount_; + /** + * + * + *
      +     * Count of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s
      +     * that failed to be imported.
      +     * 
      + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + /** + * + * + *
      +     * Count of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s
      +     * that failed to be imported.
      +     * 
      + * + * int64 failure_count = 4; + * + * @param value The failureCount to set. + * @return This builder for chaining. + */ + public Builder setFailureCount(long value) { + + failureCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Count of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s
      +     * that failed to be imported.
      +     * 
      + * + * int64 failure_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearFailureCount() { + bitField0_ = (bitField0_ & ~0x00000008); + failureCount_ = 0L; + onChanged(); + return this; + } + + private long totalCount_; + /** + * + * + *
      +     * Total count of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s that were
      +     * processed.
      +     * 
      + * + * int64 total_count = 5; + * + * @return The totalCount. + */ + @java.lang.Override + public long getTotalCount() { + return totalCount_; + } + /** + * + * + *
      +     * Total count of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s that were
      +     * processed.
      +     * 
      + * + * int64 total_count = 5; + * + * @param value The totalCount to set. + * @return This builder for chaining. + */ + public Builder setTotalCount(long value) { + + totalCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Total count of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s that were
      +     * processed.
      +     * 
      + * + * int64 total_count = 5; + * + * @return This builder for chaining. + */ + public Builder clearTotalCount() { + bitField0_ = (bitField0_ & ~0x00000010); + totalCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata) + private static final com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportSampleQueriesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesMetadataOrBuilder.java new file mode 100644 index 000000000000..1b6a312b908d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesMetadataOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ImportSampleQueriesMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * ImportSampleQueries operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
      +   * ImportSampleQueries operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
      +   * ImportSampleQueries operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * ImportSampleQueries operation last update time. If the operation is done,
      +   * this is also the finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
      +   * ImportSampleQueries operation last update time. If the operation is done,
      +   * this is also the finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
      +   * ImportSampleQueries operation last update time. If the operation is done,
      +   * this is also the finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
      +   * Count of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s
      +   * successfully imported.
      +   * 
      + * + * int64 success_count = 3; + * + * @return The successCount. + */ + long getSuccessCount(); + + /** + * + * + *
      +   * Count of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s
      +   * that failed to be imported.
      +   * 
      + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + long getFailureCount(); + + /** + * + * + *
      +   * Total count of
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s that were
      +   * processed.
      +   * 
      + * + * int64 total_count = 5; + * + * @return The totalCount. + */ + long getTotalCount(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesRequest.java new file mode 100644 index 000000000000..773b87adaec1 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesRequest.java @@ -0,0 +1,3164 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ImportSampleQueries]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest} + */ +public final class ImportSampleQueriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest) + ImportSampleQueriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportSampleQueriesRequest.newBuilder() to construct. + private ImportSampleQueriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportSampleQueriesRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportSampleQueriesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.class, + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.Builder.class); + } + + public interface InlineSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getSampleQueriesList(); + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQueries(int index); + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getSampleQueriesCount(); + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getSampleQueriesOrBuilderList(); + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder getSampleQueriesOrBuilder( + int index); + } + /** + * + * + *
      +   * The inline source for
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +   * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource} + */ + public static final class InlineSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) + InlineSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use InlineSource.newBuilder() to construct. + private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InlineSource() { + sampleQueries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InlineSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .class, + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .Builder.class); + } + + public static final int SAMPLE_QUERIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List sampleQueries_; + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getSampleQueriesList() { + return sampleQueries_; + } + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getSampleQueriesOrBuilderList() { + return sampleQueries_; + } + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getSampleQueriesCount() { + return sampleQueries_.size(); + } + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQueries(int index) { + return sampleQueries_.get(index); + } + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder getSampleQueriesOrBuilder( + int index) { + return sampleQueries_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < sampleQueries_.size(); i++) { + output.writeMessage(1, sampleQueries_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sampleQueries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sampleQueries_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource other = + (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) obj; + + if (!getSampleQueriesList().equals(other.getSampleQueriesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSampleQueriesCount() > 0) { + hash = (37 * hash) + SAMPLE_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getSampleQueriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * The inline source for
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .class, + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sampleQueriesBuilder_ == null) { + sampleQueries_ = java.util.Collections.emptyList(); + } else { + sampleQueries_ = null; + sampleQueriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_InlineSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + build() { + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource result = + new com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource result) { + if (sampleQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sampleQueries_ = java.util.Collections.unmodifiableList(sampleQueries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sampleQueries_ = sampleQueries_; + } else { + result.sampleQueries_ = sampleQueriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance()) return this; + if (sampleQueriesBuilder_ == null) { + if (!other.sampleQueries_.isEmpty()) { + if (sampleQueries_.isEmpty()) { + sampleQueries_ = other.sampleQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSampleQueriesIsMutable(); + sampleQueries_.addAll(other.sampleQueries_); + } + onChanged(); + } + } else { + if (!other.sampleQueries_.isEmpty()) { + if (sampleQueriesBuilder_.isEmpty()) { + sampleQueriesBuilder_.dispose(); + sampleQueriesBuilder_ = null; + sampleQueries_ = other.sampleQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + sampleQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSampleQueriesFieldBuilder() + : null; + } else { + sampleQueriesBuilder_.addAllMessages(other.sampleQueries_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1alpha.SampleQuery m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.parser(), + extensionRegistry); + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.add(m); + } else { + sampleQueriesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List sampleQueries_ = + java.util.Collections.emptyList(); + + private void ensureSampleQueriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sampleQueries_ = + new java.util.ArrayList( + sampleQueries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder> + sampleQueriesBuilder_; + + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSampleQueriesList() { + if (sampleQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sampleQueries_); + } else { + return sampleQueriesBuilder_.getMessageList(); + } + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getSampleQueriesCount() { + if (sampleQueriesBuilder_ == null) { + return sampleQueries_.size(); + } else { + return sampleQueriesBuilder_.getCount(); + } + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQueries(int index) { + if (sampleQueriesBuilder_ == null) { + return sampleQueries_.get(index); + } else { + return sampleQueriesBuilder_.getMessage(index); + } + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQueries( + int index, com.google.cloud.discoveryengine.v1alpha.SampleQuery value) { + if (sampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQueriesIsMutable(); + sampleQueries_.set(index, value); + onChanged(); + } else { + sampleQueriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQueries( + int index, com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder builderForValue) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + sampleQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSampleQueries(com.google.cloud.discoveryengine.v1alpha.SampleQuery value) { + if (sampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQueriesIsMutable(); + sampleQueries_.add(value); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSampleQueries( + int index, com.google.cloud.discoveryengine.v1alpha.SampleQuery value) { + if (sampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQueriesIsMutable(); + sampleQueries_.add(index, value); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSampleQueries( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder builderForValue) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.add(builderForValue.build()); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSampleQueries( + int index, com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder builderForValue) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllSampleQueries( + java.lang.Iterable + values) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sampleQueries_); + onChanged(); + } else { + sampleQueriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSampleQueries() { + if (sampleQueriesBuilder_ == null) { + sampleQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sampleQueriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeSampleQueries(int index) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.remove(index); + onChanged(); + } else { + sampleQueriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder getSampleQueriesBuilder( + int index) { + return getSampleQueriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder + getSampleQueriesOrBuilder(int index) { + if (sampleQueriesBuilder_ == null) { + return sampleQueries_.get(index); + } else { + return sampleQueriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSampleQueriesOrBuilderList() { + if (sampleQueriesBuilder_ != null) { + return sampleQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sampleQueries_); + } + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder + addSampleQueriesBuilder() { + return getSampleQueriesFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance()); + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder addSampleQueriesBuilder( + int index) { + return getSampleQueriesFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance()); + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSampleQueriesBuilderList() { + return getSampleQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder> + getSampleQueriesFieldBuilder() { + if (sampleQueriesBuilder_ == null) { + sampleQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder>( + sampleQueries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sampleQueries_ = null; + } + return sampleQueriesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) + private static final com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest + .InlineSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INLINE_SOURCE(2), + GCS_SOURCE(3), + BIGQUERY_SOURCE(4), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return INLINE_SOURCE; + case 3: + return GCS_SOURCE; + case 4: + return BIGQUERY_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int INLINE_SOURCE_FIELD_NUMBER = 2; + /** + * + * + *
      +   * The Inline source for sample query entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + /** + * + * + *
      +   * The Inline source for sample query entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + getInlineSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance(); + } + /** + * + * + *
      +   * The Inline source for sample query entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance(); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 3; + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 3; + } + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource() { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + + public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 4; + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return sourceCase_ == 4; + } + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource getBigquerySource() { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder + getBigquerySourceOrBuilder() { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig errorConfig_; + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * + * @return Whether the errorConfig field is set. + */ + @java.lang.Override + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * + * @return The errorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (sourceCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) + source_); + } + if (sourceCase_ == 3) { + output.writeMessage(3, (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_); + } + if (sourceCase_ == 4) { + output.writeMessage(4, (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getErrorConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) + source_); + } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_); + } + if (sourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getErrorConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest other = + (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasErrorConfig() != other.hasErrorConfig()) return false; + if (hasErrorConfig()) { + if (!getErrorConfig().equals(other.getErrorConfig())) return false; + } + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getInlineSource().equals(other.getInlineSource())) return false; + break; + case 3: + if (!getGcsSource().equals(other.getGcsSource())) return false; + break; + case 4: + if (!getBigquerySource().equals(other.getBigquerySource())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasErrorConfig()) { + hash = (37 * hash) + ERROR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getErrorConfig().hashCode(); + } + switch (sourceCase_) { + case 2: + hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInlineSource().hashCode(); + break; + case 3: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 4: + hash = (37 * hash) + BIGQUERY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBigquerySource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ImportSampleQueries]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest) + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.class, + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getErrorConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (inlineSourceBuilder_ != null) { + inlineSourceBuilder_.clear(); + } + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.clear(); + } + if (bigquerySourceBuilder_ != null) { + bigquerySourceBuilder_.clear(); + } + parent_ = ""; + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest build() { + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest result = + new com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.errorConfig_ = + errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && inlineSourceBuilder_ != null) { + result.source_ = inlineSourceBuilder_.build(); + } + if (sourceCase_ == 3 && gcsSourceBuilder_ != null) { + result.source_ = gcsSourceBuilder_.build(); + } + if (sourceCase_ == 4 && bigquerySourceBuilder_ != null) { + result.source_ = bigquerySourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasErrorConfig()) { + mergeErrorConfig(other.getErrorConfig()); + } + switch (other.getSourceCase()) { + case INLINE_SOURCE: + { + mergeInlineSource(other.getInlineSource()); + break; + } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case BIGQUERY_SOURCE: + { + mergeBigquerySource(other.getBigquerySource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: + { + input.readMessage(getInlineSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getBigquerySourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource, + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest + .InlineSourceOrBuilder> + inlineSourceBuilder_; + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + getInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return inlineSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance(); + } + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource value) { + if (inlineSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + inlineSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource.Builder + builderForValue) { + if (inlineSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + inlineSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + public Builder mergeInlineSource( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource value) { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ + != com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .newBuilder( + (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest + .InlineSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + inlineSourceBuilder_.mergeFrom(value); + } else { + inlineSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + public Builder clearInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + inlineSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource.Builder + getInlineSourceBuilder() { + return getInlineSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { + return inlineSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance(); + } + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource, + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest + .InlineSourceOrBuilder> + getInlineSourceFieldBuilder() { + if (inlineSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance(); + } + inlineSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource, + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest + .InlineSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return inlineSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 3; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder setGcsSource(com.google.cloud.discoveryengine.v1alpha.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder setGcsSource( + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1alpha.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3 + && source_ != com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1alpha.GcsSource.newBuilder( + (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if ((sourceCase_ == 3) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + return gcsSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.BigQuerySource, + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder, + com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder> + bigquerySourceBuilder_; + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return sourceCase_ == 4; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource getBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } else { + if (sourceCase_ == 4) { + return bigquerySourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public Builder setBigquerySource( + com.google.cloud.discoveryengine.v1alpha.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(value); + } + sourceCase_ = 4; + return this; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public Builder setBigquerySource( + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder builderForValue) { + if (bigquerySourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 4; + return this; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public Builder mergeBigquerySource( + com.google.cloud.discoveryengine.v1alpha.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4 + && source_ + != com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.newBuilder( + (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 4) { + bigquerySourceBuilder_.mergeFrom(value); + } else { + bigquerySourceBuilder_.setMessage(value); + } + } + sourceCase_ = 4; + return this; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public Builder clearBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + } + bigquerySourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder + getBigquerySourceBuilder() { + return getBigquerySourceFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder + getBigquerySourceOrBuilder() { + if ((sourceCase_ == 4) && (bigquerySourceBuilder_ != null)) { + return bigquerySourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.BigQuerySource, + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder, + com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder> + getBigquerySourceFieldBuilder() { + if (bigquerySourceBuilder_ == null) { + if (!(sourceCase_ == 4)) { + source_ = com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + bigquerySourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.BigQuerySource, + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder, + com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 4; + onChanged(); + return bigquerySourceBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig errorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder> + errorConfigBuilder_; + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * + * @return Whether the errorConfig field is set. + */ + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * + * @return The errorConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig() { + if (errorConfigBuilder_ == null) { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } else { + return errorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorConfig_ = value; + } else { + errorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder builderForValue) { + if (errorConfigBuilder_ == null) { + errorConfig_ = builderForValue.build(); + } else { + errorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public Builder mergeErrorConfig( + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && errorConfig_ != null + && errorConfig_ + != com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig + .getDefaultInstance()) { + getErrorConfigBuilder().mergeFrom(value); + } else { + errorConfig_ = value; + } + } else { + errorConfigBuilder_.mergeFrom(value); + } + if (errorConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public Builder clearErrorConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder + getErrorConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getErrorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + if (errorConfigBuilder_ != null) { + return errorConfigBuilder_.getMessageOrBuilder(); + } else { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder> + getErrorConfigFieldBuilder() { + if (errorConfigBuilder_ == null) { + errorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder>( + getErrorConfig(), getParentForChildren(), isClean()); + errorConfig_ = null; + } + return errorConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest) + private static final com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportSampleQueriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesRequestOrBuilder.java new file mode 100644 index 000000000000..c55d68c450ca --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesRequestOrBuilder.java @@ -0,0 +1,217 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ImportSampleQueriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The Inline source for sample query entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + boolean hasInlineSource(); + /** + * + * + *
      +   * The Inline source for sample query entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource + getInlineSource(); + /** + * + * + *
      +   * The Inline source for sample query entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSourceOrBuilder + getInlineSourceOrBuilder(); + + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * + * @return The gcsSource. + */ + com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource(); + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * + * @return Whether the bigquerySource field is set. + */ + boolean hasBigquerySource(); + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * + * @return The bigquerySource. + */ + com.google.cloud.discoveryengine.v1alpha.BigQuerySource getBigquerySource(); + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); + + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * + * @return Whether the errorConfig field is set. + */ + boolean hasErrorConfig(); + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * + * @return The errorConfig. + */ + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig(); + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder getErrorConfigOrBuilder(); + + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.SourceCase getSourceCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesResponse.java new file mode 100644 index 000000000000..818f604605ec --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesResponse.java @@ -0,0 +1,1232 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Response of the
      + * [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ImportSampleQueries]
      + * method. If the long running operation is done, this message is returned by
      + * the google.longrunning.Operations.response field if the operation is
      + * successful.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse} + */ +public final class ImportSampleQueriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse) + ImportSampleQueriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportSampleQueriesResponse.newBuilder() to construct. + private ImportSampleQueriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportSampleQueriesResponse() { + errorSamples_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportSampleQueriesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse.class, + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse.Builder.class); + } + + private int bitField0_; + public static final int ERROR_SAMPLES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List errorSamples_; + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List getErrorSamplesList() { + return errorSamples_; + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List getErrorSamplesOrBuilderList() { + return errorSamples_; + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public int getErrorSamplesCount() { + return errorSamples_.size(); + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.Status getErrorSamples(int index) { + return errorSamples_.get(index); + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + return errorSamples_.get(index); + } + + public static final int ERROR_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig errorConfig_; + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * + * @return Whether the errorConfig field is set. + */ + @java.lang.Override + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * + * @return The errorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < errorSamples_.size(); i++) { + output.writeMessage(1, errorSamples_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getErrorConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < errorSamples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errorSamples_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse other = + (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse) obj; + + if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (hasErrorConfig() != other.hasErrorConfig()) return false; + if (hasErrorConfig()) { + if (!getErrorConfig().equals(other.getErrorConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getErrorSamplesCount() > 0) { + hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getErrorSamplesList().hashCode(); + } + if (hasErrorConfig()) { + hash = (37 * hash) + ERROR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getErrorConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Response of the
      +   * [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ImportSampleQueries]
      +   * method. If the long running operation is done, this message is returned by
      +   * the google.longrunning.Operations.response field if the operation is
      +   * successful.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse) + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse.class, + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getErrorSamplesFieldBuilder(); + getErrorConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + } else { + errorSamples_ = null; + errorSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSampleQueriesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse build() { + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse result = + new com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse result) { + if (errorSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.errorSamples_ = errorSamples_; + } else { + result.errorSamples_ = errorSamplesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorConfig_ = + errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse + .getDefaultInstance()) return this; + if (errorSamplesBuilder_ == null) { + if (!other.errorSamples_.isEmpty()) { + if (errorSamples_.isEmpty()) { + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureErrorSamplesIsMutable(); + errorSamples_.addAll(other.errorSamples_); + } + onChanged(); + } + } else { + if (!other.errorSamples_.isEmpty()) { + if (errorSamplesBuilder_.isEmpty()) { + errorSamplesBuilder_.dispose(); + errorSamplesBuilder_ = null; + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + errorSamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorSamplesFieldBuilder() + : null; + } else { + errorSamplesBuilder_.addAllMessages(other.errorSamples_); + } + } + } + if (other.hasErrorConfig()) { + mergeErrorConfig(other.getErrorConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(m); + } else { + errorSamplesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List errorSamples_ = java.util.Collections.emptyList(); + + private void ensureErrorSamplesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + errorSamples_ = new java.util.ArrayList(errorSamples_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorSamplesBuilder_; + + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesList() { + if (errorSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(errorSamples_); + } else { + return errorSamplesBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public int getErrorSamplesCount() { + if (errorSamplesBuilder_ == null) { + return errorSamples_.size(); + } else { + return errorSamplesBuilder_.getCount(); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status getErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, value); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addAllErrorSamples(java.lang.Iterable values) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); + onChanged(); + } else { + errorSamplesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder clearErrorSamples() { + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + errorSamplesBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder removeErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.remove(index); + onChanged(); + } else { + errorSamplesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesOrBuilderList() { + if (errorSamplesBuilder_ != null) { + return errorSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errorSamples_); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder() { + return getErrorSamplesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesBuilderList() { + return getErrorSamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorSamplesFieldBuilder() { + if (errorSamplesBuilder_ == null) { + errorSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errorSamples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errorSamples_ = null; + } + return errorSamplesBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig errorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder> + errorConfigBuilder_; + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * + * @return Whether the errorConfig field is set. + */ + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * + * @return The errorConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig() { + if (errorConfigBuilder_ == null) { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } else { + return errorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorConfig_ = value; + } else { + errorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder builderForValue) { + if (errorConfigBuilder_ == null) { + errorConfig_ = builderForValue.build(); + } else { + errorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public Builder mergeErrorConfig( + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && errorConfig_ != null + && errorConfig_ + != com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig + .getDefaultInstance()) { + getErrorConfigBuilder().mergeFrom(value); + } else { + errorConfig_ = value; + } + } else { + errorConfigBuilder_.mergeFrom(value); + } + if (errorConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public Builder clearErrorConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder + getErrorConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getErrorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + if (errorConfigBuilder_ != null) { + return errorConfigBuilder_.getMessageOrBuilder(); + } else { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder> + getErrorConfigFieldBuilder() { + if (errorConfigBuilder_ == null) { + errorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder>( + getErrorConfig(), getParentForChildren(), isClean()); + errorConfig_ = null; + } + return errorConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse) + private static final com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportSampleQueriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesResponseOrBuilder.java new file mode 100644 index 000000000000..b649964f2d8c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSampleQueriesResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ImportSampleQueriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + java.util.List getErrorSamplesList(); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + com.google.rpc.Status getErrorSamples(int index); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + int getErrorSamplesCount(); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + java.util.List getErrorSamplesOrBuilderList(); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); + + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * + * @return Whether the errorConfig field is set. + */ + boolean hasErrorConfig(); + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * + * @return The errorConfig. + */ + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig(); + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder getErrorConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationResultsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationResultsRequest.java new file mode 100644 index 000000000000..32e96c0fe167 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationResultsRequest.java @@ -0,0 +1,1044 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest} + */ +public final class ListEvaluationResultsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest) + ListEvaluationResultsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEvaluationResultsRequest.newBuilder() to construct. + private ListEvaluationResultsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEvaluationResultsRequest() { + evaluation_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEvaluationResultsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.class, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.Builder.class); + } + + public static final int EVALUATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object evaluation_ = ""; + /** + * + * + *
      +   * Required. The evaluation resource name, such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to list [EvaluationResult][]
      +   * under this evaluation, regardless of whether or not this evaluation
      +   * set exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The evaluation. + */ + @java.lang.Override + public java.lang.String getEvaluation() { + java.lang.Object ref = evaluation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + evaluation_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The evaluation resource name, such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to list [EvaluationResult][]
      +   * under this evaluation, regardless of whether or not this evaluation
      +   * set exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for evaluation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationBytes() { + java.lang.Object ref = evaluation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
      +   * Maximum number of [EvaluationResult][] to return. If unspecified,
      +   * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
      +   * be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(evaluation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, evaluation_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(evaluation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, evaluation_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest other = + (com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest) obj; + + if (!getEvaluation().equals(other.getEvaluation())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EVALUATION_FIELD_NUMBER; + hash = (53 * hash) + getEvaluation().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest) + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.class, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + evaluation_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest build() { + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest result = + new com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.evaluation_ = evaluation_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest + .getDefaultInstance()) return this; + if (!other.getEvaluation().isEmpty()) { + evaluation_ = other.evaluation_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + evaluation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object evaluation_ = ""; + /** + * + * + *
      +     * Required. The evaluation resource name, such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to list [EvaluationResult][]
      +     * under this evaluation, regardless of whether or not this evaluation
      +     * set exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The evaluation. + */ + public java.lang.String getEvaluation() { + java.lang.Object ref = evaluation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + evaluation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The evaluation resource name, such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to list [EvaluationResult][]
      +     * under this evaluation, regardless of whether or not this evaluation
      +     * set exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for evaluation. + */ + public com.google.protobuf.ByteString getEvaluationBytes() { + java.lang.Object ref = evaluation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The evaluation resource name, such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to list [EvaluationResult][]
      +     * under this evaluation, regardless of whether or not this evaluation
      +     * set exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The evaluation to set. + * @return This builder for chaining. + */ + public Builder setEvaluation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evaluation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The evaluation resource name, such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to list [EvaluationResult][]
      +     * under this evaluation, regardless of whether or not this evaluation
      +     * set exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEvaluation() { + evaluation_ = getDefaultInstance().getEvaluation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The evaluation resource name, such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to list [EvaluationResult][]
      +     * under this evaluation, regardless of whether or not this evaluation
      +     * set exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for evaluation to set. + * @return This builder for chaining. + */ + public Builder setEvaluationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evaluation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
      +     * Maximum number of [EvaluationResult][] to return. If unspecified,
      +     * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
      +     * be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
      +     * Maximum number of [EvaluationResult][] to return. If unspecified,
      +     * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
      +     * be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Maximum number of [EvaluationResult][] to return. If unspecified,
      +     * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
      +     * be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest) + private static final com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEvaluationResultsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationResultsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationResultsRequestOrBuilder.java new file mode 100644 index 000000000000..c830721495f7 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationResultsRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListEvaluationResultsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The evaluation resource name, such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to list [EvaluationResult][]
      +   * under this evaluation, regardless of whether or not this evaluation
      +   * set exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The evaluation. + */ + java.lang.String getEvaluation(); + /** + * + * + *
      +   * Required. The evaluation resource name, such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to list [EvaluationResult][]
      +   * under this evaluation, regardless of whether or not this evaluation
      +   * set exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for evaluation. + */ + com.google.protobuf.ByteString getEvaluationBytes(); + + /** + * + * + *
      +   * Maximum number of [EvaluationResult][] to return. If unspecified,
      +   * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
      +   * be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationResultsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationResultsResponse.java new file mode 100644 index 000000000000..99ed502863d8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationResultsResponse.java @@ -0,0 +1,2525 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Response message for
      + * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse} + */ +public final class ListEvaluationResultsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse) + ListEvaluationResultsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEvaluationResultsResponse.newBuilder() to construct. + private ListEvaluationResultsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEvaluationResultsResponse() { + evaluationResults_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEvaluationResultsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.class, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.Builder.class); + } + + public interface EvaluationResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Output only. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +     * evaluated.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sampleQuery field is set. + */ + boolean hasSampleQuery(); + /** + * + * + *
      +     * Output only. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +     * evaluated.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sampleQuery. + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQuery(); + /** + * + * + *
      +     * Output only. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +     * evaluated.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder getSampleQueryOrBuilder(); + + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, for a given
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the qualityMetrics field is set. + */ + boolean hasQualityMetrics(); + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, for a given
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The qualityMetrics. + */ + com.google.cloud.discoveryengine.v1alpha.QualityMetrics getQualityMetrics(); + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, for a given
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1alpha.QualityMetricsOrBuilder getQualityMetricsOrBuilder(); + } + /** + * + * + *
      +   * Represents the results of an evaluation for a single
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +   * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult} + */ + public static final class EvaluationResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult) + EvaluationResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use EvaluationResult.newBuilder() to construct. + private EvaluationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvaluationResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvaluationResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_EvaluationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_EvaluationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult.class, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult.Builder.class); + } + + private int bitField0_; + public static final int SAMPLE_QUERY_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.SampleQuery sampleQuery_; + /** + * + * + *
      +     * Output only. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +     * evaluated.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sampleQuery field is set. + */ + @java.lang.Override + public boolean hasSampleQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * Output only. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +     * evaluated.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sampleQuery. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQuery() { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + /** + * + * + *
      +     * Output only. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +     * evaluated.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder getSampleQueryOrBuilder() { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + + public static final int QUALITY_METRICS_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.QualityMetrics qualityMetrics_; + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, for a given
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the qualityMetrics field is set. + */ + @java.lang.Override + public boolean hasQualityMetrics() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, for a given
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The qualityMetrics. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics getQualityMetrics() { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, for a given
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetricsOrBuilder + getQualityMetricsOrBuilder() { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSampleQuery()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getQualityMetrics()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSampleQuery()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQualityMetrics()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + other = + (com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult) + obj; + + if (hasSampleQuery() != other.hasSampleQuery()) return false; + if (hasSampleQuery()) { + if (!getSampleQuery().equals(other.getSampleQuery())) return false; + } + if (hasQualityMetrics() != other.hasQualityMetrics()) return false; + if (hasQualityMetrics()) { + if (!getQualityMetrics().equals(other.getQualityMetrics())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSampleQuery()) { + hash = (37 * hash) + SAMPLE_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuery().hashCode(); + } + if (hasQualityMetrics()) { + hash = (37 * hash) + QUALITY_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getQualityMetrics().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Represents the results of an evaluation for a single
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult) + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_EvaluationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_EvaluationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult.class, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSampleQueryFieldBuilder(); + getQualityMetricsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sampleQuery_ = null; + if (sampleQueryBuilder_ != null) { + sampleQueryBuilder_.dispose(); + sampleQueryBuilder_ = null; + } + qualityMetrics_ = null; + if (qualityMetricsBuilder_ != null) { + qualityMetricsBuilder_.dispose(); + qualityMetricsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_EvaluationResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + build() { + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + result = + new com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sampleQuery_ = + sampleQueryBuilder_ == null ? sampleQuery_ : sampleQueryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.qualityMetrics_ = + qualityMetricsBuilder_ == null ? qualityMetrics_ : qualityMetricsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult.getDefaultInstance()) return this; + if (other.hasSampleQuery()) { + mergeSampleQuery(other.getSampleQuery()); + } + if (other.hasQualityMetrics()) { + mergeQualityMetrics(other.getQualityMetrics()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSampleQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getQualityMetricsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1alpha.SampleQuery sampleQuery_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder> + sampleQueryBuilder_; + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sampleQuery field is set. + */ + public boolean hasSampleQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sampleQuery. + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQuery() { + if (sampleQueryBuilder_ == null) { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance() + : sampleQuery_; + } else { + return sampleQueryBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSampleQuery(com.google.cloud.discoveryengine.v1alpha.SampleQuery value) { + if (sampleQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sampleQuery_ = value; + } else { + sampleQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSampleQuery( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder builderForValue) { + if (sampleQueryBuilder_ == null) { + sampleQuery_ = builderForValue.build(); + } else { + sampleQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSampleQuery(com.google.cloud.discoveryengine.v1alpha.SampleQuery value) { + if (sampleQueryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && sampleQuery_ != null + && sampleQuery_ + != com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance()) { + getSampleQueryBuilder().mergeFrom(value); + } else { + sampleQuery_ = value; + } + } else { + sampleQueryBuilder_.mergeFrom(value); + } + if (sampleQuery_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSampleQuery() { + bitField0_ = (bitField0_ & ~0x00000001); + sampleQuery_ = null; + if (sampleQueryBuilder_ != null) { + sampleQueryBuilder_.dispose(); + sampleQueryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder getSampleQueryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSampleQueryFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder + getSampleQueryOrBuilder() { + if (sampleQueryBuilder_ != null) { + return sampleQueryBuilder_.getMessageOrBuilder(); + } else { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder> + getSampleQueryFieldBuilder() { + if (sampleQueryBuilder_ == null) { + sampleQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder>( + getSampleQuery(), getParentForChildren(), isClean()); + sampleQuery_ = null; + } + return sampleQueryBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.QualityMetrics qualityMetrics_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetricsOrBuilder> + qualityMetricsBuilder_; + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the qualityMetrics field is set. + */ + public boolean hasQualityMetrics() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The qualityMetrics. + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics getQualityMetrics() { + if (qualityMetricsBuilder_ == null) { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } else { + return qualityMetricsBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQualityMetrics( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics value) { + if (qualityMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + qualityMetrics_ = value; + } else { + qualityMetricsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQualityMetrics( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.Builder builderForValue) { + if (qualityMetricsBuilder_ == null) { + qualityMetrics_ = builderForValue.build(); + } else { + qualityMetricsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeQualityMetrics( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics value) { + if (qualityMetricsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && qualityMetrics_ != null + && qualityMetrics_ + != com.google.cloud.discoveryengine.v1alpha.QualityMetrics.getDefaultInstance()) { + getQualityMetricsBuilder().mergeFrom(value); + } else { + qualityMetrics_ = value; + } + } else { + qualityMetricsBuilder_.mergeFrom(value); + } + if (qualityMetrics_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearQualityMetrics() { + bitField0_ = (bitField0_ & ~0x00000002); + qualityMetrics_ = null; + if (qualityMetricsBuilder_ != null) { + qualityMetricsBuilder_.dispose(); + qualityMetricsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.Builder + getQualityMetricsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getQualityMetricsFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetricsOrBuilder + getQualityMetricsOrBuilder() { + if (qualityMetricsBuilder_ != null) { + return qualityMetricsBuilder_.getMessageOrBuilder(); + } else { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetricsOrBuilder> + getQualityMetricsFieldBuilder() { + if (qualityMetricsBuilder_ == null) { + qualityMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetricsOrBuilder>( + getQualityMetrics(), getParentForChildren(), isClean()); + qualityMetrics_ = null; + } + return qualityMetricsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult) + private static final com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int EVALUATION_RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult> + evaluationResults_; + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult> + getEvaluationResultsList() { + return evaluationResults_; + } + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResultOrBuilder> + getEvaluationResultsOrBuilderList() { + return evaluationResults_; + } + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + @java.lang.Override + public int getEvaluationResultsCount() { + return evaluationResults_.size(); + } + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + getEvaluationResults(int index) { + return evaluationResults_.get(index); + } + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResultOrBuilder + getEvaluationResultsOrBuilder(int index) { + return evaluationResults_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < evaluationResults_.size(); i++) { + output.writeMessage(1, evaluationResults_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < evaluationResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, evaluationResults_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse other = + (com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse) obj; + + if (!getEvaluationResultsList().equals(other.getEvaluationResultsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEvaluationResultsCount() > 0) { + hash = (37 * hash) + EVALUATION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationResultsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Response message for
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse) + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.class, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (evaluationResultsBuilder_ == null) { + evaluationResults_ = java.util.Collections.emptyList(); + } else { + evaluationResults_ = null; + evaluationResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationResultsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse build() { + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse result = + new com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse result) { + if (evaluationResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + evaluationResults_ = java.util.Collections.unmodifiableList(evaluationResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.evaluationResults_ = evaluationResults_; + } else { + result.evaluationResults_ = evaluationResultsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .getDefaultInstance()) return this; + if (evaluationResultsBuilder_ == null) { + if (!other.evaluationResults_.isEmpty()) { + if (evaluationResults_.isEmpty()) { + evaluationResults_ = other.evaluationResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEvaluationResultsIsMutable(); + evaluationResults_.addAll(other.evaluationResults_); + } + onChanged(); + } + } else { + if (!other.evaluationResults_.isEmpty()) { + if (evaluationResultsBuilder_.isEmpty()) { + evaluationResultsBuilder_.dispose(); + evaluationResultsBuilder_ = null; + evaluationResults_ = other.evaluationResults_; + bitField0_ = (bitField0_ & ~0x00000001); + evaluationResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEvaluationResultsFieldBuilder() + : null; + } else { + evaluationResultsBuilder_.addAllMessages(other.evaluationResults_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult + m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult.parser(), + extensionRegistry); + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(m); + } else { + evaluationResultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult> + evaluationResults_ = java.util.Collections.emptyList(); + + private void ensureEvaluationResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + evaluationResults_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult>(evaluationResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + .Builder, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResultOrBuilder> + evaluationResultsBuilder_; + + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult> + getEvaluationResultsList() { + if (evaluationResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(evaluationResults_); + } else { + return evaluationResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public int getEvaluationResultsCount() { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.size(); + } else { + return evaluationResultsBuilder_.getCount(); + } + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + getEvaluationResults(int index) { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.get(index); + } else { + return evaluationResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder setEvaluationResults( + int index, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.set(index, value); + onChanged(); + } else { + evaluationResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder setEvaluationResults( + int index, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + .Builder + builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.set(index, builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder addEvaluationResults( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(value); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder addEvaluationResults( + int index, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(index, value); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder addEvaluationResults( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + .Builder + builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder addEvaluationResults( + int index, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + .Builder + builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(index, builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder addAllEvaluationResults( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult> + values) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluationResults_); + onChanged(); + } else { + evaluationResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder clearEvaluationResults() { + if (evaluationResultsBuilder_ == null) { + evaluationResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + evaluationResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder removeEvaluationResults(int index) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.remove(index); + onChanged(); + } else { + evaluationResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + .Builder + getEvaluationResultsBuilder(int index) { + return getEvaluationResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResultOrBuilder + getEvaluationResultsOrBuilder(int index) { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.get(index); + } else { + return evaluationResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResultOrBuilder> + getEvaluationResultsOrBuilderList() { + if (evaluationResultsBuilder_ != null) { + return evaluationResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(evaluationResults_); + } + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + .Builder + addEvaluationResultsBuilder() { + return getEvaluationResultsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult.getDefaultInstance()); + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + .Builder + addEvaluationResultsBuilder(int index) { + return getEvaluationResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult.getDefaultInstance()); + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + .Builder> + getEvaluationResultsBuilderList() { + return getEvaluationResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + .Builder, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResultOrBuilder> + getEvaluationResultsFieldBuilder() { + if (evaluationResultsBuilder_ == null) { + evaluationResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResult.Builder, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResultOrBuilder>( + evaluationResults_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + return evaluationResultsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse) + private static final com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEvaluationResultsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationResultsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationResultsResponseOrBuilder.java new file mode 100644 index 000000000000..bf6dbf06fe52 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationResultsResponseOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListEvaluationResultsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult> + getEvaluationResultsList(); + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult + getEvaluationResults(int index); + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + int getEvaluationResultsCount(); + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse + .EvaluationResultOrBuilder> + getEvaluationResultsOrBuilderList(); + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResultOrBuilder + getEvaluationResultsOrBuilder(int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationsRequest.java new file mode 100644 index 000000000000..37b7fc6289c1 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationsRequest.java @@ -0,0 +1,1051 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest} + */ +public final class ListEvaluationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest) + ListEvaluationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEvaluationsRequest.newBuilder() to construct. + private ListEvaluationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEvaluationsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEvaluationsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.class, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s under this
      +   * location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s under this
      +   * location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
      +   * Maximum number of
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s to return.
      +   * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +   * above 1000 will be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest other = + (com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest) + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.class, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest build() { + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest result = + new com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s under this
      +     * location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s under this
      +     * location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s under this
      +     * location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s under this
      +     * location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s under this
      +     * location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
      +     * Maximum number of
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s to return.
      +     * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +     * above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
      +     * Maximum number of
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s to return.
      +     * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +     * above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Maximum number of
      +     * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s to return.
      +     * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +     * above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest) + private static final com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEvaluationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationsRequestOrBuilder.java new file mode 100644 index 000000000000..b2e9a96323c5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationsRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListEvaluationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s under this
      +   * location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s under this
      +   * location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Maximum number of
      +   * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s to return.
      +   * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +   * above 1000 will be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationsResponse.java new file mode 100644 index 000000000000..e432b0fd29f1 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationsResponse.java @@ -0,0 +1,1163 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Response message for
      + * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse} + */ +public final class ListEvaluationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse) + ListEvaluationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEvaluationsResponse.newBuilder() to construct. + private ListEvaluationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEvaluationsResponse() { + evaluations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEvaluationsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.class, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.Builder.class); + } + + public static final int EVALUATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List evaluations_; + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + @java.lang.Override + public java.util.List getEvaluationsList() { + return evaluations_; + } + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + @java.lang.Override + public java.util.List + getEvaluationsOrBuilderList() { + return evaluations_; + } + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + @java.lang.Override + public int getEvaluationsCount() { + return evaluations_.size(); + } + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Evaluation getEvaluations(int index) { + return evaluations_.get(index); + } + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EvaluationOrBuilder getEvaluationsOrBuilder( + int index) { + return evaluations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < evaluations_.size(); i++) { + output.writeMessage(1, evaluations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < evaluations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, evaluations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse other = + (com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse) obj; + + if (!getEvaluationsList().equals(other.getEvaluationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEvaluationsCount() > 0) { + hash = (37 * hash) + EVALUATIONS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Response message for
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse) + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.class, + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (evaluationsBuilder_ == null) { + evaluations_ = java.util.Collections.emptyList(); + } else { + evaluations_ = null; + evaluationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListEvaluationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse build() { + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse result = + new com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse result) { + if (evaluationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + evaluations_ = java.util.Collections.unmodifiableList(evaluations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.evaluations_ = evaluations_; + } else { + result.evaluations_ = evaluationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.getDefaultInstance()) + return this; + if (evaluationsBuilder_ == null) { + if (!other.evaluations_.isEmpty()) { + if (evaluations_.isEmpty()) { + evaluations_ = other.evaluations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEvaluationsIsMutable(); + evaluations_.addAll(other.evaluations_); + } + onChanged(); + } + } else { + if (!other.evaluations_.isEmpty()) { + if (evaluationsBuilder_.isEmpty()) { + evaluationsBuilder_.dispose(); + evaluationsBuilder_ = null; + evaluations_ = other.evaluations_; + bitField0_ = (bitField0_ & ~0x00000001); + evaluationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEvaluationsFieldBuilder() + : null; + } else { + evaluationsBuilder_.addAllMessages(other.evaluations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1alpha.Evaluation m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.Evaluation.parser(), + extensionRegistry); + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.add(m); + } else { + evaluationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List evaluations_ = + java.util.Collections.emptyList(); + + private void ensureEvaluationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + evaluations_ = + new java.util.ArrayList( + evaluations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Evaluation, + com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder, + com.google.cloud.discoveryengine.v1alpha.EvaluationOrBuilder> + evaluationsBuilder_; + + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public java.util.List + getEvaluationsList() { + if (evaluationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(evaluations_); + } else { + return evaluationsBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public int getEvaluationsCount() { + if (evaluationsBuilder_ == null) { + return evaluations_.size(); + } else { + return evaluationsBuilder_.getCount(); + } + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Evaluation getEvaluations(int index) { + if (evaluationsBuilder_ == null) { + return evaluations_.get(index); + } else { + return evaluationsBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public Builder setEvaluations( + int index, com.google.cloud.discoveryengine.v1alpha.Evaluation value) { + if (evaluationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationsIsMutable(); + evaluations_.set(index, value); + onChanged(); + } else { + evaluationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public Builder setEvaluations( + int index, com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder builderForValue) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.set(index, builderForValue.build()); + onChanged(); + } else { + evaluationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public Builder addEvaluations(com.google.cloud.discoveryengine.v1alpha.Evaluation value) { + if (evaluationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationsIsMutable(); + evaluations_.add(value); + onChanged(); + } else { + evaluationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public Builder addEvaluations( + int index, com.google.cloud.discoveryengine.v1alpha.Evaluation value) { + if (evaluationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationsIsMutable(); + evaluations_.add(index, value); + onChanged(); + } else { + evaluationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public Builder addEvaluations( + com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder builderForValue) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.add(builderForValue.build()); + onChanged(); + } else { + evaluationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public Builder addEvaluations( + int index, com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder builderForValue) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.add(index, builderForValue.build()); + onChanged(); + } else { + evaluationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public Builder addAllEvaluations( + java.lang.Iterable values) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluations_); + onChanged(); + } else { + evaluationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public Builder clearEvaluations() { + if (evaluationsBuilder_ == null) { + evaluations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + evaluationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public Builder removeEvaluations(int index) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.remove(index); + onChanged(); + } else { + evaluationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder getEvaluationsBuilder( + int index) { + return getEvaluationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.EvaluationOrBuilder getEvaluationsOrBuilder( + int index) { + if (evaluationsBuilder_ == null) { + return evaluations_.get(index); + } else { + return evaluationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public java.util.List + getEvaluationsOrBuilderList() { + if (evaluationsBuilder_ != null) { + return evaluationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(evaluations_); + } + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder addEvaluationsBuilder() { + return getEvaluationsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1alpha.Evaluation.getDefaultInstance()); + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder addEvaluationsBuilder( + int index) { + return getEvaluationsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.Evaluation.getDefaultInstance()); + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + public java.util.List + getEvaluationsBuilderList() { + return getEvaluationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Evaluation, + com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder, + com.google.cloud.discoveryengine.v1alpha.EvaluationOrBuilder> + getEvaluationsFieldBuilder() { + if (evaluationsBuilder_ == null) { + evaluationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Evaluation, + com.google.cloud.discoveryengine.v1alpha.Evaluation.Builder, + com.google.cloud.discoveryengine.v1alpha.EvaluationOrBuilder>( + evaluations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + evaluations_ = null; + } + return evaluationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse) + private static final com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEvaluationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationsResponseOrBuilder.java new file mode 100644 index 000000000000..638dda820475 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListEvaluationsResponseOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListEvaluationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + java.util.List getEvaluationsList(); + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + com.google.cloud.discoveryengine.v1alpha.Evaluation getEvaluations(int index); + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + int getEvaluationsCount(); + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + java.util.List + getEvaluationsOrBuilderList(); + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.Evaluation evaluations = 1; + */ + com.google.cloud.discoveryengine.v1alpha.EvaluationOrBuilder getEvaluationsOrBuilder(int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQueriesRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQueriesRequest.java new file mode 100644 index 000000000000..c059911777f0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQueriesRequest.java @@ -0,0 +1,1053 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest} + */ +public final class ListSampleQueriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest) + ListSampleQueriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSampleQueriesRequest.newBuilder() to construct. + private ListSampleQueriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSampleQueriesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSampleQueriesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.class, + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
      +   * Maximum number of
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to return.
      +   * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +   * above 1000 will be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
      +   * A page token
      +   * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A page token
      +   * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest other = + (com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest) + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.class, + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest build() { + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest result = + new com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
      +     * Maximum number of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to return.
      +     * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +     * above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
      +     * Maximum number of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to return.
      +     * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +     * above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Maximum number of
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to return.
      +     * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +     * above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
      +     * A page token
      +     * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest) + private static final com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSampleQueriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQueriesRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQueriesRequestOrBuilder.java new file mode 100644 index 000000000000..2c058941bd7d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQueriesRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListSampleQueriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Maximum number of
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to return.
      +   * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +   * above 1000 will be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * A page token
      +   * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
      +   * A page token
      +   * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQueriesResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQueriesResponse.java new file mode 100644 index 000000000000..001cf72bcb45 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQueriesResponse.java @@ -0,0 +1,1171 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Response message for
      + * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse} + */ +public final class ListSampleQueriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse) + ListSampleQueriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSampleQueriesResponse.newBuilder() to construct. + private ListSampleQueriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSampleQueriesResponse() { + sampleQueries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSampleQueriesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.class, + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.Builder.class); + } + + public static final int SAMPLE_QUERIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List sampleQueries_; + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + @java.lang.Override + public java.util.List + getSampleQueriesList() { + return sampleQueries_; + } + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + @java.lang.Override + public java.util.List + getSampleQueriesOrBuilderList() { + return sampleQueries_; + } + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + @java.lang.Override + public int getSampleQueriesCount() { + return sampleQueries_.size(); + } + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQueries(int index) { + return sampleQueries_.get(index); + } + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder getSampleQueriesOrBuilder( + int index) { + return sampleQueries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < sampleQueries_.size(); i++) { + output.writeMessage(1, sampleQueries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sampleQueries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sampleQueries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse other = + (com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse) obj; + + if (!getSampleQueriesList().equals(other.getSampleQueriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSampleQueriesCount() > 0) { + hash = (37 * hash) + SAMPLE_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getSampleQueriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Response message for
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse) + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.class, + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sampleQueriesBuilder_ == null) { + sampleQueries_ = java.util.Collections.emptyList(); + } else { + sampleQueries_ = null; + sampleQueriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse build() { + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse result = + new com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse result) { + if (sampleQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sampleQueries_ = java.util.Collections.unmodifiableList(sampleQueries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sampleQueries_ = sampleQueries_; + } else { + result.sampleQueries_ = sampleQueriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse + .getDefaultInstance()) return this; + if (sampleQueriesBuilder_ == null) { + if (!other.sampleQueries_.isEmpty()) { + if (sampleQueries_.isEmpty()) { + sampleQueries_ = other.sampleQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSampleQueriesIsMutable(); + sampleQueries_.addAll(other.sampleQueries_); + } + onChanged(); + } + } else { + if (!other.sampleQueries_.isEmpty()) { + if (sampleQueriesBuilder_.isEmpty()) { + sampleQueriesBuilder_.dispose(); + sampleQueriesBuilder_ = null; + sampleQueries_ = other.sampleQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + sampleQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSampleQueriesFieldBuilder() + : null; + } else { + sampleQueriesBuilder_.addAllMessages(other.sampleQueries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1alpha.SampleQuery m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.parser(), + extensionRegistry); + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.add(m); + } else { + sampleQueriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List sampleQueries_ = + java.util.Collections.emptyList(); + + private void ensureSampleQueriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sampleQueries_ = + new java.util.ArrayList( + sampleQueries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder> + sampleQueriesBuilder_; + + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public java.util.List + getSampleQueriesList() { + if (sampleQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sampleQueries_); + } else { + return sampleQueriesBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public int getSampleQueriesCount() { + if (sampleQueriesBuilder_ == null) { + return sampleQueries_.size(); + } else { + return sampleQueriesBuilder_.getCount(); + } + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQueries(int index) { + if (sampleQueriesBuilder_ == null) { + return sampleQueries_.get(index); + } else { + return sampleQueriesBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public Builder setSampleQueries( + int index, com.google.cloud.discoveryengine.v1alpha.SampleQuery value) { + if (sampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQueriesIsMutable(); + sampleQueries_.set(index, value); + onChanged(); + } else { + sampleQueriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public Builder setSampleQueries( + int index, com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder builderForValue) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + sampleQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public Builder addSampleQueries(com.google.cloud.discoveryengine.v1alpha.SampleQuery value) { + if (sampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQueriesIsMutable(); + sampleQueries_.add(value); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public Builder addSampleQueries( + int index, com.google.cloud.discoveryengine.v1alpha.SampleQuery value) { + if (sampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQueriesIsMutable(); + sampleQueries_.add(index, value); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public Builder addSampleQueries( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder builderForValue) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.add(builderForValue.build()); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public Builder addSampleQueries( + int index, com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder builderForValue) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public Builder addAllSampleQueries( + java.lang.Iterable values) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sampleQueries_); + onChanged(); + } else { + sampleQueriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public Builder clearSampleQueries() { + if (sampleQueriesBuilder_ == null) { + sampleQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sampleQueriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public Builder removeSampleQueries(int index) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.remove(index); + onChanged(); + } else { + sampleQueriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder getSampleQueriesBuilder( + int index) { + return getSampleQueriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder getSampleQueriesOrBuilder( + int index) { + if (sampleQueriesBuilder_ == null) { + return sampleQueries_.get(index); + } else { + return sampleQueriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public java.util.List + getSampleQueriesOrBuilderList() { + if (sampleQueriesBuilder_ != null) { + return sampleQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sampleQueries_); + } + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder addSampleQueriesBuilder() { + return getSampleQueriesFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance()); + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder addSampleQueriesBuilder( + int index) { + return getSampleQueriesFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance()); + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + public java.util.List + getSampleQueriesBuilderList() { + return getSampleQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder> + getSampleQueriesFieldBuilder() { + if (sampleQueriesBuilder_ == null) { + sampleQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder>( + sampleQueries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sampleQueries_ = null; + } + return sampleQueriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse) + private static final com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSampleQueriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQueriesResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQueriesResponseOrBuilder.java new file mode 100644 index 000000000000..cbdddc80f0ce --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQueriesResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListSampleQueriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + java.util.List getSampleQueriesList(); + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQueries(int index); + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + int getSampleQueriesCount(); + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + java.util.List + getSampleQueriesOrBuilderList(); + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery sample_queries = 1; + */ + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder getSampleQueriesOrBuilder( + int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQuerySetsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQuerySetsRequest.java new file mode 100644 index 000000000000..eb9124afbba8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQuerySetsRequest.java @@ -0,0 +1,1055 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest} + */ +public final class ListSampleQuerySetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest) + ListSampleQuerySetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSampleQuerySetsRequest.newBuilder() to construct. + private ListSampleQuerySetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSampleQuerySetsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSampleQuerySetsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.class, + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s
      +   * under this location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s
      +   * under this location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
      +   * Maximum number of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s to
      +   * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
      +   * Values above 1000 will be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
      +   * A page token
      +   * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A page token
      +   * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest other = + (com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest) + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.class, + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest build() { + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest result = + new com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s
      +     * under this location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s
      +     * under this location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s
      +     * under this location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s
      +     * under this location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s
      +     * under this location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
      +     * Maximum number of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s to
      +     * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
      +     * Values above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
      +     * Maximum number of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s to
      +     * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
      +     * Values above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Maximum number of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s to
      +     * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
      +     * Values above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
      +     * A page token
      +     * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest) + private static final com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSampleQuerySetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQuerySetsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQuerySetsRequestOrBuilder.java new file mode 100644 index 000000000000..42c516522a43 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQuerySetsRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListSampleQuerySetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s
      +   * under this location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s
      +   * under this location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Maximum number of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s to
      +   * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
      +   * Values above 1000 will be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * A page token
      +   * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
      +   * A page token
      +   * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQuerySetsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQuerySetsResponse.java new file mode 100644 index 000000000000..2196c1c740db --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQuerySetsResponse.java @@ -0,0 +1,1200 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Response message for
      + * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse} + */ +public final class ListSampleQuerySetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse) + ListSampleQuerySetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSampleQuerySetsResponse.newBuilder() to construct. + private ListSampleQuerySetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSampleQuerySetsResponse() { + sampleQuerySets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSampleQuerySetsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.class, + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.Builder.class); + } + + public static final int SAMPLE_QUERY_SETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List sampleQuerySets_; + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + @java.lang.Override + public java.util.List + getSampleQuerySetsList() { + return sampleQuerySets_; + } + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + @java.lang.Override + public java.util.List + getSampleQuerySetsOrBuilderList() { + return sampleQuerySets_; + } + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + @java.lang.Override + public int getSampleQuerySetsCount() { + return sampleQuerySets_.size(); + } + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getSampleQuerySets(int index) { + return sampleQuerySets_.get(index); + } + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder + getSampleQuerySetsOrBuilder(int index) { + return sampleQuerySets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < sampleQuerySets_.size(); i++) { + output.writeMessage(1, sampleQuerySets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sampleQuerySets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sampleQuerySets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse other = + (com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse) obj; + + if (!getSampleQuerySetsList().equals(other.getSampleQuerySetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSampleQuerySetsCount() > 0) { + hash = (37 * hash) + SAMPLE_QUERY_SETS_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuerySetsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Response message for
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse) + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.class, + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sampleQuerySetsBuilder_ == null) { + sampleQuerySets_ = java.util.Collections.emptyList(); + } else { + sampleQuerySets_ = null; + sampleQuerySetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse build() { + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse result = + new com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse result) { + if (sampleQuerySetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sampleQuerySets_ = java.util.Collections.unmodifiableList(sampleQuerySets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sampleQuerySets_ = sampleQuerySets_; + } else { + result.sampleQuerySets_ = sampleQuerySetsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse + .getDefaultInstance()) return this; + if (sampleQuerySetsBuilder_ == null) { + if (!other.sampleQuerySets_.isEmpty()) { + if (sampleQuerySets_.isEmpty()) { + sampleQuerySets_ = other.sampleQuerySets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.addAll(other.sampleQuerySets_); + } + onChanged(); + } + } else { + if (!other.sampleQuerySets_.isEmpty()) { + if (sampleQuerySetsBuilder_.isEmpty()) { + sampleQuerySetsBuilder_.dispose(); + sampleQuerySetsBuilder_ = null; + sampleQuerySets_ = other.sampleQuerySets_; + bitField0_ = (bitField0_ & ~0x00000001); + sampleQuerySetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSampleQuerySetsFieldBuilder() + : null; + } else { + sampleQuerySetsBuilder_.addAllMessages(other.sampleQuerySets_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.parser(), + extensionRegistry); + if (sampleQuerySetsBuilder_ == null) { + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.add(m); + } else { + sampleQuerySetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + sampleQuerySets_ = java.util.Collections.emptyList(); + + private void ensureSampleQuerySetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sampleQuerySets_ = + new java.util.ArrayList( + sampleQuerySets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder> + sampleQuerySetsBuilder_; + + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public java.util.List + getSampleQuerySetsList() { + if (sampleQuerySetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sampleQuerySets_); + } else { + return sampleQuerySetsBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public int getSampleQuerySetsCount() { + if (sampleQuerySetsBuilder_ == null) { + return sampleQuerySets_.size(); + } else { + return sampleQuerySetsBuilder_.getCount(); + } + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getSampleQuerySets(int index) { + if (sampleQuerySetsBuilder_ == null) { + return sampleQuerySets_.get(index); + } else { + return sampleQuerySetsBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder setSampleQuerySets( + int index, com.google.cloud.discoveryengine.v1alpha.SampleQuerySet value) { + if (sampleQuerySetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.set(index, value); + onChanged(); + } else { + sampleQuerySetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder setSampleQuerySets( + int index, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder builderForValue) { + if (sampleQuerySetsBuilder_ == null) { + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.set(index, builderForValue.build()); + onChanged(); + } else { + sampleQuerySetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder addSampleQuerySets( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet value) { + if (sampleQuerySetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.add(value); + onChanged(); + } else { + sampleQuerySetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder addSampleQuerySets( + int index, com.google.cloud.discoveryengine.v1alpha.SampleQuerySet value) { + if (sampleQuerySetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.add(index, value); + onChanged(); + } else { + sampleQuerySetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder addSampleQuerySets( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder builderForValue) { + if (sampleQuerySetsBuilder_ == null) { + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.add(builderForValue.build()); + onChanged(); + } else { + sampleQuerySetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder addSampleQuerySets( + int index, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder builderForValue) { + if (sampleQuerySetsBuilder_ == null) { + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.add(index, builderForValue.build()); + onChanged(); + } else { + sampleQuerySetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder addAllSampleQuerySets( + java.lang.Iterable + values) { + if (sampleQuerySetsBuilder_ == null) { + ensureSampleQuerySetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sampleQuerySets_); + onChanged(); + } else { + sampleQuerySetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder clearSampleQuerySets() { + if (sampleQuerySetsBuilder_ == null) { + sampleQuerySets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sampleQuerySetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder removeSampleQuerySets(int index) { + if (sampleQuerySetsBuilder_ == null) { + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.remove(index); + onChanged(); + } else { + sampleQuerySetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder + getSampleQuerySetsBuilder(int index) { + return getSampleQuerySetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder + getSampleQuerySetsOrBuilder(int index) { + if (sampleQuerySetsBuilder_ == null) { + return sampleQuerySets_.get(index); + } else { + return sampleQuerySetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder> + getSampleQuerySetsOrBuilderList() { + if (sampleQuerySetsBuilder_ != null) { + return sampleQuerySetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sampleQuerySets_); + } + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder + addSampleQuerySetsBuilder() { + return getSampleQuerySetsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.getDefaultInstance()); + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder + addSampleQuerySetsBuilder(int index) { + return getSampleQuerySetsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.getDefaultInstance()); + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + public java.util.List + getSampleQuerySetsBuilderList() { + return getSampleQuerySetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder> + getSampleQuerySetsFieldBuilder() { + if (sampleQuerySetsBuilder_ == null) { + sampleQuerySetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder>( + sampleQuerySets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sampleQuerySets_ = null; + } + return sampleQuerySetsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse) + private static final com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSampleQuerySetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQuerySetsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQuerySetsResponseOrBuilder.java new file mode 100644 index 000000000000..91203018807c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSampleQuerySetsResponseOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListSampleQuerySetsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + java.util.List getSampleQuerySetsList(); + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getSampleQuerySets(int index); + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + int getSampleQuerySetsCount(); + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + java.util.List + getSampleQuerySetsOrBuilderList(); + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_sets = 1; + * + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder getSampleQuerySetsOrBuilder( + int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/QualityMetrics.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/QualityMetrics.java new file mode 100644 index 000000000000..687642af9a0d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/QualityMetrics.java @@ -0,0 +1,3473 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Describes the metrics produced by the evaluation.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.QualityMetrics} + */ +public final class QualityMetrics extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.QualityMetrics) + QualityMetricsOrBuilder { + private static final long serialVersionUID = 0L; + // Use QualityMetrics.newBuilder() to construct. + private QualityMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QualityMetrics() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QualityMetrics(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.class, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.Builder.class); + } + + public interface TopkMetricsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * The top-1 value.
      +     * 
      + * + * double top_1 = 1; + * + * @return The top1. + */ + double getTop1(); + + /** + * + * + *
      +     * The top-3 value.
      +     * 
      + * + * double top_3 = 2; + * + * @return The top3. + */ + double getTop3(); + + /** + * + * + *
      +     * The top-5 value.
      +     * 
      + * + * double top_5 = 3; + * + * @return The top5. + */ + double getTop5(); + + /** + * + * + *
      +     * The top-10 value.
      +     * 
      + * + * double top_10 = 4; + * + * @return The top10. + */ + double getTop10(); + } + /** + * + * + *
      +   * Stores the metric values at specific top-k levels.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics} + */ + public static final class TopkMetrics extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics) + TopkMetricsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TopkMetrics.newBuilder() to construct. + private TopkMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TopkMetrics() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TopkMetrics(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_TopkMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_TopkMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.class, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder.class); + } + + public static final int TOP_1_FIELD_NUMBER = 1; + private double top1_ = 0D; + /** + * + * + *
      +     * The top-1 value.
      +     * 
      + * + * double top_1 = 1; + * + * @return The top1. + */ + @java.lang.Override + public double getTop1() { + return top1_; + } + + public static final int TOP_3_FIELD_NUMBER = 2; + private double top3_ = 0D; + /** + * + * + *
      +     * The top-3 value.
      +     * 
      + * + * double top_3 = 2; + * + * @return The top3. + */ + @java.lang.Override + public double getTop3() { + return top3_; + } + + public static final int TOP_5_FIELD_NUMBER = 3; + private double top5_ = 0D; + /** + * + * + *
      +     * The top-5 value.
      +     * 
      + * + * double top_5 = 3; + * + * @return The top5. + */ + @java.lang.Override + public double getTop5() { + return top5_; + } + + public static final int TOP_10_FIELD_NUMBER = 4; + private double top10_ = 0D; + /** + * + * + *
      +     * The top-10 value.
      +     * 
      + * + * double top_10 = 4; + * + * @return The top10. + */ + @java.lang.Override + public double getTop10() { + return top10_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (java.lang.Double.doubleToRawLongBits(top1_) != 0) { + output.writeDouble(1, top1_); + } + if (java.lang.Double.doubleToRawLongBits(top3_) != 0) { + output.writeDouble(2, top3_); + } + if (java.lang.Double.doubleToRawLongBits(top5_) != 0) { + output.writeDouble(3, top5_); + } + if (java.lang.Double.doubleToRawLongBits(top10_) != 0) { + output.writeDouble(4, top10_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(top1_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, top1_); + } + if (java.lang.Double.doubleToRawLongBits(top3_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, top3_); + } + if (java.lang.Double.doubleToRawLongBits(top5_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, top5_); + } + if (java.lang.Double.doubleToRawLongBits(top10_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, top10_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics other = + (com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics) obj; + + if (java.lang.Double.doubleToLongBits(getTop1()) + != java.lang.Double.doubleToLongBits(other.getTop1())) return false; + if (java.lang.Double.doubleToLongBits(getTop3()) + != java.lang.Double.doubleToLongBits(other.getTop3())) return false; + if (java.lang.Double.doubleToLongBits(getTop5()) + != java.lang.Double.doubleToLongBits(other.getTop5())) return false; + if (java.lang.Double.doubleToLongBits(getTop10()) + != java.lang.Double.doubleToLongBits(other.getTop10())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOP_1_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getTop1())); + hash = (37 * hash) + TOP_3_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getTop3())); + hash = (37 * hash) + TOP_5_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getTop5())); + hash = (37 * hash) + TOP_10_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTop10())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Stores the metric values at specific top-k levels.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics) + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_TopkMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_TopkMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.class, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + top1_ = 0D; + top3_ = 0D; + top5_ = 0D; + top10_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_TopkMetrics_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics build() { + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics buildPartial() { + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics result = + new com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.top1_ = top1_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.top3_ = top3_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.top5_ = top5_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.top10_ = top10_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance()) return this; + if (other.getTop1() != 0D) { + setTop1(other.getTop1()); + } + if (other.getTop3() != 0D) { + setTop3(other.getTop3()); + } + if (other.getTop5() != 0D) { + setTop5(other.getTop5()); + } + if (other.getTop10() != 0D) { + setTop10(other.getTop10()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + top1_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: + { + top3_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: + { + top5_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 33: + { + top10_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private double top1_; + /** + * + * + *
      +       * The top-1 value.
      +       * 
      + * + * double top_1 = 1; + * + * @return The top1. + */ + @java.lang.Override + public double getTop1() { + return top1_; + } + /** + * + * + *
      +       * The top-1 value.
      +       * 
      + * + * double top_1 = 1; + * + * @param value The top1 to set. + * @return This builder for chaining. + */ + public Builder setTop1(double value) { + + top1_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * The top-1 value.
      +       * 
      + * + * double top_1 = 1; + * + * @return This builder for chaining. + */ + public Builder clearTop1() { + bitField0_ = (bitField0_ & ~0x00000001); + top1_ = 0D; + onChanged(); + return this; + } + + private double top3_; + /** + * + * + *
      +       * The top-3 value.
      +       * 
      + * + * double top_3 = 2; + * + * @return The top3. + */ + @java.lang.Override + public double getTop3() { + return top3_; + } + /** + * + * + *
      +       * The top-3 value.
      +       * 
      + * + * double top_3 = 2; + * + * @param value The top3 to set. + * @return This builder for chaining. + */ + public Builder setTop3(double value) { + + top3_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * The top-3 value.
      +       * 
      + * + * double top_3 = 2; + * + * @return This builder for chaining. + */ + public Builder clearTop3() { + bitField0_ = (bitField0_ & ~0x00000002); + top3_ = 0D; + onChanged(); + return this; + } + + private double top5_; + /** + * + * + *
      +       * The top-5 value.
      +       * 
      + * + * double top_5 = 3; + * + * @return The top5. + */ + @java.lang.Override + public double getTop5() { + return top5_; + } + /** + * + * + *
      +       * The top-5 value.
      +       * 
      + * + * double top_5 = 3; + * + * @param value The top5 to set. + * @return This builder for chaining. + */ + public Builder setTop5(double value) { + + top5_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +       * The top-5 value.
      +       * 
      + * + * double top_5 = 3; + * + * @return This builder for chaining. + */ + public Builder clearTop5() { + bitField0_ = (bitField0_ & ~0x00000004); + top5_ = 0D; + onChanged(); + return this; + } + + private double top10_; + /** + * + * + *
      +       * The top-10 value.
      +       * 
      + * + * double top_10 = 4; + * + * @return The top10. + */ + @java.lang.Override + public double getTop10() { + return top10_; + } + /** + * + * + *
      +       * The top-10 value.
      +       * 
      + * + * double top_10 = 4; + * + * @param value The top10 to set. + * @return This builder for chaining. + */ + public Builder setTop10(double value) { + + top10_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +       * The top-10 value.
      +       * 
      + * + * double top_10 = 4; + * + * @return This builder for chaining. + */ + public Builder clearTop10() { + bitField0_ = (bitField0_ & ~0x00000008); + top10_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics) + private static final com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics(); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TopkMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DOC_RECALL_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics docRecall_; + /** + * + * + *
      +   * Recall per document, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant documents retrieved out of all
      +   * relevant documents.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +   *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + * + * @return Whether the docRecall field is set. + */ + @java.lang.Override + public boolean hasDocRecall() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Recall per document, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant documents retrieved out of all
      +   * relevant documents.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +   *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + * + * @return The docRecall. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getDocRecall() { + return docRecall_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.getDefaultInstance() + : docRecall_; + } + /** + * + * + *
      +   * Recall per document, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant documents retrieved out of all
      +   * relevant documents.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +   *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getDocRecallOrBuilder() { + return docRecall_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.getDefaultInstance() + : docRecall_; + } + + public static final int DOC_PRECISION_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics docPrecision_; + /** + * + * + *
      +   * Precision per document, at various top-k cutoff levels.
      +   *
      +   * Precision is the fraction of retrieved documents that are relevant.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +   *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +   *  0.8
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + * + * @return Whether the docPrecision field is set. + */ + @java.lang.Override + public boolean hasDocPrecision() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * Precision per document, at various top-k cutoff levels.
      +   *
      +   * Precision is the fraction of retrieved documents that are relevant.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +   *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +   *  0.8
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + * + * @return The docPrecision. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getDocPrecision() { + return docPrecision_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.getDefaultInstance() + : docPrecision_; + } + /** + * + * + *
      +   * Precision per document, at various top-k cutoff levels.
      +   *
      +   * Precision is the fraction of retrieved documents that are relevant.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +   *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +   *  0.8
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getDocPrecisionOrBuilder() { + return docPrecision_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.getDefaultInstance() + : docPrecision_; + } + + public static final int DOC_NDCG_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics docNdcg_; + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +   *  with three retrieved documents (D1, D2, D3) and binary relevance
      +   *  judgements (1 for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +   *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +   *
      +   *   Calculate NDCG@3 for each
      +   *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + * + * @return Whether the docNdcg field is set. + */ + @java.lang.Override + public boolean hasDocNdcg() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +   *  with three retrieved documents (D1, D2, D3) and binary relevance
      +   *  judgements (1 for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +   *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +   *
      +   *   Calculate NDCG@3 for each
      +   *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + * + * @return The docNdcg. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getDocNdcg() { + return docNdcg_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.getDefaultInstance() + : docNdcg_; + } + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +   *  with three retrieved documents (D1, D2, D3) and binary relevance
      +   *  judgements (1 for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +   *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +   *
      +   *   Calculate NDCG@3 for each
      +   *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getDocNdcgOrBuilder() { + return docNdcg_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.getDefaultInstance() + : docNdcg_; + } + + public static final int PAGE_RECALL_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics pageRecall_; + /** + * + * + *
      +   * Recall per page, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant pages retrieved out of all relevant
      +   * pages.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +   *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + * + * @return Whether the pageRecall field is set. + */ + @java.lang.Override + public boolean hasPageRecall() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
      +   * Recall per page, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant pages retrieved out of all relevant
      +   * pages.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +   *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + * + * @return The pageRecall. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getPageRecall() { + return pageRecall_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.getDefaultInstance() + : pageRecall_; + } + /** + * + * + *
      +   * Recall per page, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant pages retrieved out of all relevant
      +   * pages.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +   *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getPageRecallOrBuilder() { + return pageRecall_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.getDefaultInstance() + : pageRecall_; + } + + public static final int PAGE_NDCG_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics pageNdcg_; + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +   *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +   *  for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +   *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +   *
      +   *   Calculate NDCG@3 for
      +   *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + * + * @return Whether the pageNdcg field is set. + */ + @java.lang.Override + public boolean hasPageNdcg() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +   *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +   *  for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +   *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +   *
      +   *   Calculate NDCG@3 for
      +   *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + * + * @return The pageNdcg. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getPageNdcg() { + return pageNdcg_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.getDefaultInstance() + : pageNdcg_; + } + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +   *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +   *  for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +   *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +   *
      +   *   Calculate NDCG@3 for
      +   *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getPageNdcgOrBuilder() { + return pageNdcg_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.getDefaultInstance() + : pageNdcg_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDocRecall()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDocPrecision()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getDocNdcg()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getPageRecall()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getPageNdcg()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocRecall()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocPrecision()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDocNdcg()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPageRecall()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPageNdcg()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.QualityMetrics)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.QualityMetrics other = + (com.google.cloud.discoveryengine.v1alpha.QualityMetrics) obj; + + if (hasDocRecall() != other.hasDocRecall()) return false; + if (hasDocRecall()) { + if (!getDocRecall().equals(other.getDocRecall())) return false; + } + if (hasDocPrecision() != other.hasDocPrecision()) return false; + if (hasDocPrecision()) { + if (!getDocPrecision().equals(other.getDocPrecision())) return false; + } + if (hasDocNdcg() != other.hasDocNdcg()) return false; + if (hasDocNdcg()) { + if (!getDocNdcg().equals(other.getDocNdcg())) return false; + } + if (hasPageRecall() != other.hasPageRecall()) return false; + if (hasPageRecall()) { + if (!getPageRecall().equals(other.getPageRecall())) return false; + } + if (hasPageNdcg() != other.hasPageNdcg()) return false; + if (hasPageNdcg()) { + if (!getPageNdcg().equals(other.getPageNdcg())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocRecall()) { + hash = (37 * hash) + DOC_RECALL_FIELD_NUMBER; + hash = (53 * hash) + getDocRecall().hashCode(); + } + if (hasDocPrecision()) { + hash = (37 * hash) + DOC_PRECISION_FIELD_NUMBER; + hash = (53 * hash) + getDocPrecision().hashCode(); + } + if (hasDocNdcg()) { + hash = (37 * hash) + DOC_NDCG_FIELD_NUMBER; + hash = (53 * hash) + getDocNdcg().hashCode(); + } + if (hasPageRecall()) { + hash = (37 * hash) + PAGE_RECALL_FIELD_NUMBER; + hash = (53 * hash) + getPageRecall().hashCode(); + } + if (hasPageNdcg()) { + hash = (37 * hash) + PAGE_NDCG_FIELD_NUMBER; + hash = (53 * hash) + getPageNdcg().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Describes the metrics produced by the evaluation.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.QualityMetrics} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.QualityMetrics) + com.google.cloud.discoveryengine.v1alpha.QualityMetricsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.class, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.QualityMetrics.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDocRecallFieldBuilder(); + getDocPrecisionFieldBuilder(); + getDocNdcgFieldBuilder(); + getPageRecallFieldBuilder(); + getPageNdcgFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + docRecall_ = null; + if (docRecallBuilder_ != null) { + docRecallBuilder_.dispose(); + docRecallBuilder_ = null; + } + docPrecision_ = null; + if (docPrecisionBuilder_ != null) { + docPrecisionBuilder_.dispose(); + docPrecisionBuilder_ = null; + } + docNdcg_ = null; + if (docNdcgBuilder_ != null) { + docNdcgBuilder_.dispose(); + docNdcgBuilder_ = null; + } + pageRecall_ = null; + if (pageRecallBuilder_ != null) { + pageRecallBuilder_.dispose(); + pageRecallBuilder_ = null; + } + pageNdcg_ = null; + if (pageNdcgBuilder_ != null) { + pageNdcgBuilder_.dispose(); + pageNdcgBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1alpha_QualityMetrics_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.QualityMetrics.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics build() { + com.google.cloud.discoveryengine.v1alpha.QualityMetrics result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics buildPartial() { + com.google.cloud.discoveryengine.v1alpha.QualityMetrics result = + new com.google.cloud.discoveryengine.v1alpha.QualityMetrics(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.QualityMetrics result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.docRecall_ = docRecallBuilder_ == null ? docRecall_ : docRecallBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.docPrecision_ = + docPrecisionBuilder_ == null ? docPrecision_ : docPrecisionBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.docNdcg_ = docNdcgBuilder_ == null ? docNdcg_ : docNdcgBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageRecall_ = pageRecallBuilder_ == null ? pageRecall_ : pageRecallBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageNdcg_ = pageNdcgBuilder_ == null ? pageNdcg_ : pageNdcgBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.QualityMetrics) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.QualityMetrics) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.QualityMetrics other) { + if (other == com.google.cloud.discoveryengine.v1alpha.QualityMetrics.getDefaultInstance()) + return this; + if (other.hasDocRecall()) { + mergeDocRecall(other.getDocRecall()); + } + if (other.hasDocPrecision()) { + mergeDocPrecision(other.getDocPrecision()); + } + if (other.hasDocNdcg()) { + mergeDocNdcg(other.getDocNdcg()); + } + if (other.hasPageRecall()) { + mergePageRecall(other.getPageRecall()); + } + if (other.hasPageNdcg()) { + mergePageNdcg(other.getPageNdcg()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getDocRecallFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDocPrecisionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDocNdcgFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getPageRecallFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getPageNdcgFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics docRecall_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder> + docRecallBuilder_; + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + * + * @return Whether the docRecall field is set. + */ + public boolean hasDocRecall() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + * + * @return The docRecall. + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getDocRecall() { + if (docRecallBuilder_ == null) { + return docRecall_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance() + : docRecall_; + } else { + return docRecallBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + */ + public Builder setDocRecall( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics value) { + if (docRecallBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + docRecall_ = value; + } else { + docRecallBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + */ + public Builder setDocRecall( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder + builderForValue) { + if (docRecallBuilder_ == null) { + docRecall_ = builderForValue.build(); + } else { + docRecallBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + */ + public Builder mergeDocRecall( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics value) { + if (docRecallBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && docRecall_ != null + && docRecall_ + != com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance()) { + getDocRecallBuilder().mergeFrom(value); + } else { + docRecall_ = value; + } + } else { + docRecallBuilder_.mergeFrom(value); + } + if (docRecall_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + */ + public Builder clearDocRecall() { + bitField0_ = (bitField0_ & ~0x00000001); + docRecall_ = null; + if (docRecallBuilder_ != null) { + docRecallBuilder_.dispose(); + docRecallBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder + getDocRecallBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDocRecallFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getDocRecallOrBuilder() { + if (docRecallBuilder_ != null) { + return docRecallBuilder_.getMessageOrBuilder(); + } else { + return docRecall_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance() + : docRecall_; + } + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder> + getDocRecallFieldBuilder() { + if (docRecallBuilder_ == null) { + docRecallBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder>( + getDocRecall(), getParentForChildren(), isClean()); + docRecall_ = null; + } + return docRecallBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics docPrecision_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder> + docPrecisionBuilder_; + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + * + * @return Whether the docPrecision field is set. + */ + public boolean hasDocPrecision() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + * + * @return The docPrecision. + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getDocPrecision() { + if (docPrecisionBuilder_ == null) { + return docPrecision_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance() + : docPrecision_; + } else { + return docPrecisionBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + public Builder setDocPrecision( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics value) { + if (docPrecisionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + docPrecision_ = value; + } else { + docPrecisionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + public Builder setDocPrecision( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder + builderForValue) { + if (docPrecisionBuilder_ == null) { + docPrecision_ = builderForValue.build(); + } else { + docPrecisionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + public Builder mergeDocPrecision( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics value) { + if (docPrecisionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && docPrecision_ != null + && docPrecision_ + != com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance()) { + getDocPrecisionBuilder().mergeFrom(value); + } else { + docPrecision_ = value; + } + } else { + docPrecisionBuilder_.mergeFrom(value); + } + if (docPrecision_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + public Builder clearDocPrecision() { + bitField0_ = (bitField0_ & ~0x00000002); + docPrecision_ = null; + if (docPrecisionBuilder_ != null) { + docPrecisionBuilder_.dispose(); + docPrecisionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder + getDocPrecisionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDocPrecisionFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getDocPrecisionOrBuilder() { + if (docPrecisionBuilder_ != null) { + return docPrecisionBuilder_.getMessageOrBuilder(); + } else { + return docPrecision_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance() + : docPrecision_; + } + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder> + getDocPrecisionFieldBuilder() { + if (docPrecisionBuilder_ == null) { + docPrecisionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder>( + getDocPrecision(), getParentForChildren(), isClean()); + docPrecision_ = null; + } + return docPrecisionBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics docNdcg_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder> + docNdcgBuilder_; + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + * + * @return Whether the docNdcg field is set. + */ + public boolean hasDocNdcg() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + * + * @return The docNdcg. + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getDocNdcg() { + if (docNdcgBuilder_ == null) { + return docNdcg_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance() + : docNdcg_; + } else { + return docNdcgBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + public Builder setDocNdcg( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics value) { + if (docNdcgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + docNdcg_ = value; + } else { + docNdcgBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + public Builder setDocNdcg( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder + builderForValue) { + if (docNdcgBuilder_ == null) { + docNdcg_ = builderForValue.build(); + } else { + docNdcgBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + public Builder mergeDocNdcg( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics value) { + if (docNdcgBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && docNdcg_ != null + && docNdcg_ + != com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance()) { + getDocNdcgBuilder().mergeFrom(value); + } else { + docNdcg_ = value; + } + } else { + docNdcgBuilder_.mergeFrom(value); + } + if (docNdcg_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + public Builder clearDocNdcg() { + bitField0_ = (bitField0_ & ~0x00000004); + docNdcg_ = null; + if (docNdcgBuilder_ != null) { + docNdcgBuilder_.dispose(); + docNdcgBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder + getDocNdcgBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDocNdcgFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getDocNdcgOrBuilder() { + if (docNdcgBuilder_ != null) { + return docNdcgBuilder_.getMessageOrBuilder(); + } else { + return docNdcg_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance() + : docNdcg_; + } + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder> + getDocNdcgFieldBuilder() { + if (docNdcgBuilder_ == null) { + docNdcgBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder>( + getDocNdcg(), getParentForChildren(), isClean()); + docNdcg_ = null; + } + return docNdcgBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics pageRecall_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder> + pageRecallBuilder_; + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + * + * + * @return Whether the pageRecall field is set. + */ + public boolean hasPageRecall() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + * + * + * @return The pageRecall. + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getPageRecall() { + if (pageRecallBuilder_ == null) { + return pageRecall_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance() + : pageRecall_; + } else { + return pageRecallBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + * + */ + public Builder setPageRecall( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics value) { + if (pageRecallBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pageRecall_ = value; + } else { + pageRecallBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + * + */ + public Builder setPageRecall( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder + builderForValue) { + if (pageRecallBuilder_ == null) { + pageRecall_ = builderForValue.build(); + } else { + pageRecallBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + * + */ + public Builder mergePageRecall( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics value) { + if (pageRecallBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && pageRecall_ != null + && pageRecall_ + != com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance()) { + getPageRecallBuilder().mergeFrom(value); + } else { + pageRecall_ = value; + } + } else { + pageRecallBuilder_.mergeFrom(value); + } + if (pageRecall_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + * + */ + public Builder clearPageRecall() { + bitField0_ = (bitField0_ & ~0x00000008); + pageRecall_ = null; + if (pageRecallBuilder_ != null) { + pageRecallBuilder_.dispose(); + pageRecallBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + * + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder + getPageRecallBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getPageRecallFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + * + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getPageRecallOrBuilder() { + if (pageRecallBuilder_ != null) { + return pageRecallBuilder_.getMessageOrBuilder(); + } else { + return pageRecall_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance() + : pageRecall_; + } + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder> + getPageRecallFieldBuilder() { + if (pageRecallBuilder_ == null) { + pageRecallBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder>( + getPageRecall(), getParentForChildren(), isClean()); + pageRecall_ = null; + } + return pageRecallBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics pageNdcg_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder> + pageNdcgBuilder_; + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + * + * @return Whether the pageNdcg field is set. + */ + public boolean hasPageNdcg() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + * + * @return The pageNdcg. + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getPageNdcg() { + if (pageNdcgBuilder_ == null) { + return pageNdcg_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance() + : pageNdcg_; + } else { + return pageNdcgBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + public Builder setPageNdcg( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics value) { + if (pageNdcgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pageNdcg_ = value; + } else { + pageNdcgBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + public Builder setPageNdcg( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder + builderForValue) { + if (pageNdcgBuilder_ == null) { + pageNdcg_ = builderForValue.build(); + } else { + pageNdcgBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + public Builder mergePageNdcg( + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics value) { + if (pageNdcgBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && pageNdcg_ != null + && pageNdcg_ + != com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance()) { + getPageNdcgBuilder().mergeFrom(value); + } else { + pageNdcg_ = value; + } + } else { + pageNdcgBuilder_.mergeFrom(value); + } + if (pageNdcg_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + public Builder clearPageNdcg() { + bitField0_ = (bitField0_ & ~0x00000010); + pageNdcg_ = null; + if (pageNdcgBuilder_ != null) { + pageNdcgBuilder_.dispose(); + pageNdcgBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder + getPageNdcgBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getPageNdcgFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getPageNdcgOrBuilder() { + if (pageNdcgBuilder_ != null) { + return pageNdcgBuilder_.getMessageOrBuilder(); + } else { + return pageNdcg_ == null + ? com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics + .getDefaultInstance() + : pageNdcg_; + } + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder> + getPageNdcgFieldBuilder() { + if (pageNdcgBuilder_ == null) { + pageNdcgBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder>( + getPageNdcg(), getParentForChildren(), isClean()); + pageNdcg_ = null; + } + return pageNdcgBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.QualityMetrics) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.QualityMetrics) + private static final com.google.cloud.discoveryengine.v1alpha.QualityMetrics DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.QualityMetrics(); + } + + public static com.google.cloud.discoveryengine.v1alpha.QualityMetrics getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QualityMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.QualityMetrics getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/QualityMetricsOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/QualityMetricsOrBuilder.java new file mode 100644 index 000000000000..edc22d9981fd --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/QualityMetricsOrBuilder.java @@ -0,0 +1,389 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/evaluation.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface QualityMetricsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.QualityMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Recall per document, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant documents retrieved out of all
      +   * relevant documents.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +   *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + * + * @return Whether the docRecall field is set. + */ + boolean hasDocRecall(); + /** + * + * + *
      +   * Recall per document, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant documents retrieved out of all
      +   * relevant documents.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +   *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + * + * @return The docRecall. + */ + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getDocRecall(); + /** + * + * + *
      +   * Recall per document, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant documents retrieved out of all
      +   * relevant documents.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out
      +   *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_recall = 1; + */ + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getDocRecallOrBuilder(); + + /** + * + * + *
      +   * Precision per document, at various top-k cutoff levels.
      +   *
      +   * Precision is the fraction of retrieved documents that are relevant.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +   *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +   *  0.8
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + * + * @return Whether the docPrecision field is set. + */ + boolean hasDocPrecision(); + /** + * + * + *
      +   * Precision per document, at various top-k cutoff levels.
      +   *
      +   * Precision is the fraction of retrieved documents that are relevant.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +   *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +   *  0.8
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + * + * @return The docPrecision. + */ + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getDocPrecision(); + /** + * + * + *
      +   * Precision per document, at various top-k cutoff levels.
      +   *
      +   * Precision is the fraction of retrieved documents that are relevant.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out
      +   *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +   *  0.8
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getDocPrecisionOrBuilder(); + + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +   *  with three retrieved documents (D1, D2, D3) and binary relevance
      +   *  judgements (1 for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +   *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +   *
      +   *   Calculate NDCG@3 for each
      +   *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + * + * @return Whether the docNdcg field is set. + */ + boolean hasDocNdcg(); + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +   *  with three retrieved documents (D1, D2, D3) and binary relevance
      +   *  judgements (1 for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +   *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +   *
      +   *   Calculate NDCG@3 for each
      +   *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + * + * @return The docNdcg. + */ + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getDocNdcg(); + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +   *  with three retrieved documents (D1, D2, D3) and binary relevance
      +   *  judgements (1 for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +   *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +   *
      +   *   Calculate NDCG@3 for each
      +   *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getDocNdcgOrBuilder(); + + /** + * + * + *
      +   * Recall per page, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant pages retrieved out of all relevant
      +   * pages.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +   *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + * + * @return Whether the pageRecall field is set. + */ + boolean hasPageRecall(); + /** + * + * + *
      +   * Recall per page, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant pages retrieved out of all relevant
      +   * pages.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +   *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + * + * @return The pageRecall. + */ + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getPageRecall(); + /** + * + * + *
      +   * Recall per page, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant pages retrieved out of all relevant
      +   * pages.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out
      +   *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_recall = 4; + */ + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getPageRecallOrBuilder(); + + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +   *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +   *  for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +   *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +   *
      +   *   Calculate NDCG@3 for
      +   *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + * + * @return Whether the pageNdcg field is set. + */ + boolean hasPageNdcg(); + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +   *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +   *  for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +   *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +   *
      +   *   Calculate NDCG@3 for
      +   *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + * + * @return The pageNdcg. + */ + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics getPageNdcg(); + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]
      +   *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +   *  for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +   *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +   *
      +   *   Calculate NDCG@3 for
      +   *   [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + com.google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetricsOrBuilder + getPageNdcgOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuery.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuery.java new file mode 100644 index 000000000000..7ddf4aa324b0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuery.java @@ -0,0 +1,3836 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Sample Query captures metadata to be used for evaluation.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SampleQuery} + */ +public final class SampleQuery extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SampleQuery) + SampleQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use SampleQuery.newBuilder() to construct. + private SampleQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SampleQuery() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SampleQuery(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.class, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder.class); + } + + public interface QueryEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. The query.
      +     * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + java.lang.String getQuery(); + /** + * + * + *
      +     * Required. The query.
      +     * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + java.util.List + getTargetsList(); + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target getTargets(int index); + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + int getTargetsCount(); + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.TargetOrBuilder> + getTargetsOrBuilderList(); + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.TargetOrBuilder + getTargetsOrBuilder(int index); + } + /** + * + * + *
      +   * Query Entry captures metadata to be used for search evaluation.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry} + */ + public static final class QueryEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) + QueryEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryEntry.newBuilder() to construct. + private QueryEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryEntry() { + query_ = ""; + targets_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryEntry(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.class, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Builder.class); + } + + public interface TargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * Expected uri of the target.
      +       *
      +       * This field must be a UTF-8 encoded string with a length limit of 2048
      +       * characters.
      +       *
      +       * Example of valid uris: `https://example.com/abc`,
      +       * `gcs://example/example.pdf`.
      +       * 
      + * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
      +       * Expected uri of the target.
      +       *
      +       * This field must be a UTF-8 encoded string with a length limit of 2048
      +       * characters.
      +       *
      +       * Example of valid uris: `https://example.com/abc`,
      +       * `gcs://example/example.pdf`.
      +       * 
      + * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
      +       * Expected page numbers of the target.
      +       *
      +       * Each page number must be non negative.
      +       * 
      + * + * repeated int32 page_numbers = 2; + * + * @return A list containing the pageNumbers. + */ + java.util.List getPageNumbersList(); + /** + * + * + *
      +       * Expected page numbers of the target.
      +       *
      +       * Each page number must be non negative.
      +       * 
      + * + * repeated int32 page_numbers = 2; + * + * @return The count of pageNumbers. + */ + int getPageNumbersCount(); + /** + * + * + *
      +       * Expected page numbers of the target.
      +       *
      +       * Each page number must be non negative.
      +       * 
      + * + * repeated int32 page_numbers = 2; + * + * @param index The index of the element to return. + * @return The pageNumbers at the given index. + */ + int getPageNumbers(int index); + + /** + * + * + *
      +       * Relevance score of the target.
      +       * 
      + * + * optional double score = 3; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
      +       * Relevance score of the target.
      +       * 
      + * + * optional double score = 3; + * + * @return The score. + */ + double getScore(); + } + /** + * + * + *
      +     * Defines the parameters of the query's expected outcome.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target} + */ + public static final class Target extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target) + TargetOrBuilder { + private static final long serialVersionUID = 0L; + // Use Target.newBuilder() to construct. + private Target(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Target() { + uri_ = ""; + pageNumbers_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Target(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_Target_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_Target_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.class, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.Builder + .class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
      +       * Expected uri of the target.
      +       *
      +       * This field must be a UTF-8 encoded string with a length limit of 2048
      +       * characters.
      +       *
      +       * Example of valid uris: `https://example.com/abc`,
      +       * `gcs://example/example.pdf`.
      +       * 
      + * + * string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
      +       * Expected uri of the target.
      +       *
      +       * This field must be a UTF-8 encoded string with a length limit of 2048
      +       * characters.
      +       *
      +       * Example of valid uris: `https://example.com/abc`,
      +       * `gcs://example/example.pdf`.
      +       * 
      + * + * string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_NUMBERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList pageNumbers_ = emptyIntList(); + /** + * + * + *
      +       * Expected page numbers of the target.
      +       *
      +       * Each page number must be non negative.
      +       * 
      + * + * repeated int32 page_numbers = 2; + * + * @return A list containing the pageNumbers. + */ + @java.lang.Override + public java.util.List getPageNumbersList() { + return pageNumbers_; + } + /** + * + * + *
      +       * Expected page numbers of the target.
      +       *
      +       * Each page number must be non negative.
      +       * 
      + * + * repeated int32 page_numbers = 2; + * + * @return The count of pageNumbers. + */ + public int getPageNumbersCount() { + return pageNumbers_.size(); + } + /** + * + * + *
      +       * Expected page numbers of the target.
      +       *
      +       * Each page number must be non negative.
      +       * 
      + * + * repeated int32 page_numbers = 2; + * + * @param index The index of the element to return. + * @return The pageNumbers at the given index. + */ + public int getPageNumbers(int index) { + return pageNumbers_.getInt(index); + } + + private int pageNumbersMemoizedSerializedSize = -1; + + public static final int SCORE_FIELD_NUMBER = 3; + private double score_ = 0D; + /** + * + * + *
      +       * Relevance score of the target.
      +       * 
      + * + * optional double score = 3; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +       * Relevance score of the target.
      +       * 
      + * + * optional double score = 3; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (getPageNumbersList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(pageNumbersMemoizedSerializedSize); + } + for (int i = 0; i < pageNumbers_.size(); i++) { + output.writeInt32NoTag(pageNumbers_.getInt(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(3, score_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + { + int dataSize = 0; + for (int i = 0; i < pageNumbers_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(pageNumbers_.getInt(i)); + } + size += dataSize; + if (!getPageNumbersList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + pageNumbersMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, score_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target other = + (com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getPageNumbersList().equals(other.getPageNumbersList())) return false; + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + if (getPageNumbersCount() > 0) { + hash = (37 * hash) + PAGE_NUMBERS_FIELD_NUMBER; + hash = (53 * hash) + getPageNumbersList().hashCode(); + } + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +       * Defines the parameters of the query's expected outcome.
      +       * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target) + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.TargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_Target_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_Target_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.class, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + pageNumbers_ = emptyIntList(); + score_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_Target_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target build() { + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target result = + new com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + pageNumbers_.makeImmutable(); + result.pageNumbers_ = pageNumbers_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + .getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.pageNumbers_.isEmpty()) { + if (pageNumbers_.isEmpty()) { + pageNumbers_ = other.pageNumbers_; + pageNumbers_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensurePageNumbersIsMutable(); + pageNumbers_.addAll(other.pageNumbers_); + } + onChanged(); + } + if (other.hasScore()) { + setScore(other.getScore()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + int v = input.readInt32(); + ensurePageNumbersIsMutable(); + pageNumbers_.addInt(v); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensurePageNumbersIsMutable(); + while (input.getBytesUntilLimit() > 0) { + pageNumbers_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 18 + case 25: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + * + * + *
      +         * Expected uri of the target.
      +         *
      +         * This field must be a UTF-8 encoded string with a length limit of 2048
      +         * characters.
      +         *
      +         * Example of valid uris: `https://example.com/abc`,
      +         * `gcs://example/example.pdf`.
      +         * 
      + * + * string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +         * Expected uri of the target.
      +         *
      +         * This field must be a UTF-8 encoded string with a length limit of 2048
      +         * characters.
      +         *
      +         * Example of valid uris: `https://example.com/abc`,
      +         * `gcs://example/example.pdf`.
      +         * 
      + * + * string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +         * Expected uri of the target.
      +         *
      +         * This field must be a UTF-8 encoded string with a length limit of 2048
      +         * characters.
      +         *
      +         * Example of valid uris: `https://example.com/abc`,
      +         * `gcs://example/example.pdf`.
      +         * 
      + * + * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +         * Expected uri of the target.
      +         *
      +         * This field must be a UTF-8 encoded string with a length limit of 2048
      +         * characters.
      +         *
      +         * Example of valid uris: `https://example.com/abc`,
      +         * `gcs://example/example.pdf`.
      +         * 
      + * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +         * Expected uri of the target.
      +         *
      +         * This field must be a UTF-8 encoded string with a length limit of 2048
      +         * characters.
      +         *
      +         * Example of valid uris: `https://example.com/abc`,
      +         * `gcs://example/example.pdf`.
      +         * 
      + * + * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList pageNumbers_ = emptyIntList(); + + private void ensurePageNumbersIsMutable() { + if (!pageNumbers_.isModifiable()) { + pageNumbers_ = makeMutableCopy(pageNumbers_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
      +         * Expected page numbers of the target.
      +         *
      +         * Each page number must be non negative.
      +         * 
      + * + * repeated int32 page_numbers = 2; + * + * @return A list containing the pageNumbers. + */ + public java.util.List getPageNumbersList() { + pageNumbers_.makeImmutable(); + return pageNumbers_; + } + /** + * + * + *
      +         * Expected page numbers of the target.
      +         *
      +         * Each page number must be non negative.
      +         * 
      + * + * repeated int32 page_numbers = 2; + * + * @return The count of pageNumbers. + */ + public int getPageNumbersCount() { + return pageNumbers_.size(); + } + /** + * + * + *
      +         * Expected page numbers of the target.
      +         *
      +         * Each page number must be non negative.
      +         * 
      + * + * repeated int32 page_numbers = 2; + * + * @param index The index of the element to return. + * @return The pageNumbers at the given index. + */ + public int getPageNumbers(int index) { + return pageNumbers_.getInt(index); + } + /** + * + * + *
      +         * Expected page numbers of the target.
      +         *
      +         * Each page number must be non negative.
      +         * 
      + * + * repeated int32 page_numbers = 2; + * + * @param index The index to set the value at. + * @param value The pageNumbers to set. + * @return This builder for chaining. + */ + public Builder setPageNumbers(int index, int value) { + + ensurePageNumbersIsMutable(); + pageNumbers_.setInt(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +         * Expected page numbers of the target.
      +         *
      +         * Each page number must be non negative.
      +         * 
      + * + * repeated int32 page_numbers = 2; + * + * @param value The pageNumbers to add. + * @return This builder for chaining. + */ + public Builder addPageNumbers(int value) { + + ensurePageNumbersIsMutable(); + pageNumbers_.addInt(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +         * Expected page numbers of the target.
      +         *
      +         * Each page number must be non negative.
      +         * 
      + * + * repeated int32 page_numbers = 2; + * + * @param values The pageNumbers to add. + * @return This builder for chaining. + */ + public Builder addAllPageNumbers(java.lang.Iterable values) { + ensurePageNumbersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pageNumbers_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +         * Expected page numbers of the target.
      +         *
      +         * Each page number must be non negative.
      +         * 
      + * + * repeated int32 page_numbers = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageNumbers() { + pageNumbers_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private double score_; + /** + * + * + *
      +         * Relevance score of the target.
      +         * 
      + * + * optional double score = 3; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +         * Relevance score of the target.
      +         * 
      + * + * optional double score = 3; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + /** + * + * + *
      +         * Relevance score of the target.
      +         * 
      + * + * optional double score = 3; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { + + score_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +         * Relevance score of the target.
      +         * 
      + * + * optional double score = 3; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000004); + score_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target) + private static final com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Target parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int QUERY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + * + * + *
      +     * Required. The query.
      +     * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + /** + * + * + *
      +     * Required. The query.
      +     * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGETS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + targets_; + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + @java.lang.Override + public java.util.List + getTargetsList() { + return targets_; + } + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.TargetOrBuilder> + getTargetsOrBuilderList() { + return targets_; + } + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + @java.lang.Override + public int getTargetsCount() { + return targets_.size(); + } + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target getTargets( + int index) { + return targets_.get(index); + } + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.TargetOrBuilder + getTargetsOrBuilder(int index) { + return targets_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + for (int i = 0; i < targets_.size(); i++) { + output.writeMessage(3, targets_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + for (int i = 0; i < targets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, targets_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry other = + (com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) obj; + + if (!getQuery().equals(other.getQuery())) return false; + if (!getTargetsList().equals(other.getTargetsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getTargetsCount() > 0) { + hash = (37 * hash) + TARGETS_FIELD_NUMBER; + hash = (53 * hash) + getTargetsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Query Entry captures metadata to be used for search evaluation.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.class, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + query_ = ""; + if (targetsBuilder_ == null) { + targets_ = java.util.Collections.emptyList(); + } else { + targets_ = null; + targetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry build() { + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry result = + new com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry result) { + if (targetsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + targets_ = java.util.Collections.unmodifiableList(targets_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.targets_ = targets_; + } else { + result.targets_ = targetsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.query_ = query_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.getDefaultInstance()) + return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (targetsBuilder_ == null) { + if (!other.targets_.isEmpty()) { + if (targets_.isEmpty()) { + targets_ = other.targets_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTargetsIsMutable(); + targets_.addAll(other.targets_); + } + onChanged(); + } + } else { + if (!other.targets_.isEmpty()) { + if (targetsBuilder_.isEmpty()) { + targetsBuilder_.dispose(); + targetsBuilder_ = null; + targets_ = other.targets_; + bitField0_ = (bitField0_ & ~0x00000002); + targetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTargetsFieldBuilder() + : null; + } else { + targetsBuilder_.addAllMessages(other.targets_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + .parser(), + extensionRegistry); + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.add(m); + } else { + targetsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object query_ = ""; + /** + * + * + *
      +       * Required. The query.
      +       * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +       * Required. The query.
      +       * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +       * Required. The query.
      +       * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * Required. The query.
      +       * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +       * Required. The query.
      +       * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + targets_ = java.util.Collections.emptyList(); + + private void ensureTargetsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + targets_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target>(targets_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.TargetOrBuilder> + targetsBuilder_; + + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public java.util.List + getTargetsList() { + if (targetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(targets_); + } else { + return targetsBuilder_.getMessageList(); + } + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public int getTargetsCount() { + if (targetsBuilder_ == null) { + return targets_.size(); + } else { + return targetsBuilder_.getCount(); + } + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target getTargets( + int index) { + if (targetsBuilder_ == null) { + return targets_.get(index); + } else { + return targetsBuilder_.getMessage(index); + } + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder setTargets( + int index, com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target value) { + if (targetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetsIsMutable(); + targets_.set(index, value); + onChanged(); + } else { + targetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder setTargets( + int index, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.Builder + builderForValue) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.set(index, builderForValue.build()); + onChanged(); + } else { + targetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder addTargets( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target value) { + if (targetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetsIsMutable(); + targets_.add(value); + onChanged(); + } else { + targetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder addTargets( + int index, com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target value) { + if (targetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetsIsMutable(); + targets_.add(index, value); + onChanged(); + } else { + targetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder addTargets( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.Builder + builderForValue) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.add(builderForValue.build()); + onChanged(); + } else { + targetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder addTargets( + int index, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.Builder + builderForValue) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.add(index, builderForValue.build()); + onChanged(); + } else { + targetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder addAllTargets( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target> + values) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targets_); + onChanged(); + } else { + targetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder clearTargets() { + if (targetsBuilder_ == null) { + targets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + targetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder removeTargets(int index) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.remove(index); + onChanged(); + } else { + targetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.Builder + getTargetsBuilder(int index) { + return getTargetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.TargetOrBuilder + getTargetsOrBuilder(int index) { + if (targetsBuilder_ == null) { + return targets_.get(index); + } else { + return targetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.TargetOrBuilder> + getTargetsOrBuilderList() { + if (targetsBuilder_ != null) { + return targetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(targets_); + } + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.Builder + addTargetsBuilder() { + return getTargetsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + .getDefaultInstance()); + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.Builder + addTargetsBuilder(int index) { + return getTargetsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target + .getDefaultInstance()); + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.Builder> + getTargetsBuilderList() { + return getTargetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.TargetOrBuilder> + getTargetsFieldBuilder() { + if (targetsBuilder_ == null) { + targetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.TargetOrBuilder>( + targets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + targets_ = null; + } + return targetsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) + private static final com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int contentCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object content_; + + public enum ContentCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + QUERY_ENTRY(2), + CONTENT_NOT_SET(0); + private final int value; + + private ContentCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ContentCase valueOf(int value) { + return forNumber(value); + } + + public static ContentCase forNumber(int value) { + switch (value) { + case 2: + return QUERY_ENTRY; + case 0: + return CONTENT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ContentCase getContentCase() { + return ContentCase.forNumber(contentCase_); + } + + public static final int QUERY_ENTRY_FIELD_NUMBER = 2; + /** + * + * + *
      +   * The query entry.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + * + * @return Whether the queryEntry field is set. + */ + @java.lang.Override + public boolean hasQueryEntry() { + return contentCase_ == 2; + } + /** + * + * + *
      +   * The query entry.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + * + * @return The queryEntry. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry getQueryEntry() { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) content_; + } + return com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.getDefaultInstance(); + } + /** + * + * + *
      +   * The query entry.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntryOrBuilder + getQueryEntryOrBuilder() { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) content_; + } + return com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Identifier. The full resource name of the sample query, in the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Identifier. The full resource name of the sample query, in the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (contentCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) content_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (contentCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) content_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SampleQuery)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SampleQuery other = + (com.google.cloud.discoveryengine.v1alpha.SampleQuery) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getContentCase().equals(other.getContentCase())) return false; + switch (contentCase_) { + case 2: + if (!getQueryEntry().equals(other.getQueryEntry())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + switch (contentCase_) { + case 2: + hash = (37 * hash) + QUERY_ENTRY_FIELD_NUMBER; + hash = (53 * hash) + getQueryEntry().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1alpha.SampleQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Sample Query captures metadata to be used for evaluation.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SampleQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SampleQuery) + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.class, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SampleQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (queryEntryBuilder_ != null) { + queryEntryBuilder_.clear(); + } + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + contentCase_ = 0; + content_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery build() { + com.google.cloud.discoveryengine.v1alpha.SampleQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SampleQuery result = + new com.google.cloud.discoveryengine.v1alpha.SampleQuery(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SampleQuery result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.SampleQuery result) { + result.contentCase_ = contentCase_; + result.content_ = this.content_; + if (contentCase_ == 2 && queryEntryBuilder_ != null) { + result.content_ = queryEntryBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.SampleQuery) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SampleQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SampleQuery other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + switch (other.getContentCase()) { + case QUERY_ENTRY: + { + mergeQueryEntry(other.getQueryEntry()); + break; + } + case CONTENT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage(getQueryEntryFieldBuilder().getBuilder(), extensionRegistry); + contentCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int contentCase_ = 0; + private java.lang.Object content_; + + public ContentCase getContentCase() { + return ContentCase.forNumber(contentCase_); + } + + public Builder clearContent() { + contentCase_ = 0; + content_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntryOrBuilder> + queryEntryBuilder_; + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + * + * @return Whether the queryEntry field is set. + */ + @java.lang.Override + public boolean hasQueryEntry() { + return contentCase_ == 2; + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + * + * @return The queryEntry. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry getQueryEntry() { + if (queryEntryBuilder_ == null) { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) content_; + } + return com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.getDefaultInstance(); + } else { + if (contentCase_ == 2) { + return queryEntryBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.getDefaultInstance(); + } + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + */ + public Builder setQueryEntry( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry value) { + if (queryEntryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + queryEntryBuilder_.setMessage(value); + } + contentCase_ = 2; + return this; + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + */ + public Builder setQueryEntry( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Builder builderForValue) { + if (queryEntryBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + queryEntryBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 2; + return this; + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + */ + public Builder mergeQueryEntry( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry value) { + if (queryEntryBuilder_ == null) { + if (contentCase_ == 2 + && content_ + != com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry + .getDefaultInstance()) { + content_ = + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.newBuilder( + (com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) content_) + .mergeFrom(value) + .buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 2) { + queryEntryBuilder_.mergeFrom(value); + } else { + queryEntryBuilder_.setMessage(value); + } + } + contentCase_ = 2; + return this; + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + */ + public Builder clearQueryEntry() { + if (queryEntryBuilder_ == null) { + if (contentCase_ == 2) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 2) { + contentCase_ = 0; + content_ = null; + } + queryEntryBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Builder + getQueryEntryBuilder() { + return getQueryEntryFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntryOrBuilder + getQueryEntryOrBuilder() { + if ((contentCase_ == 2) && (queryEntryBuilder_ != null)) { + return queryEntryBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) content_; + } + return com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.getDefaultInstance(); + } + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntryOrBuilder> + getQueryEntryFieldBuilder() { + if (queryEntryBuilder_ == null) { + if (!(contentCase_ == 2)) { + content_ = + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.getDefaultInstance(); + } + queryEntryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntryOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 2; + onChanged(); + return queryEntryBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Identifier. The full resource name of the sample query, in the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Identifier. The full resource name of the sample query, in the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Identifier. The full resource name of the sample query, in the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Identifier. The full resource name of the sample query, in the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * Identifier. The full resource name of the sample query, in the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SampleQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SampleQuery) + private static final com.google.cloud.discoveryengine.v1alpha.SampleQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SampleQuery(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SampleQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryName.java new file mode 100644 index 000000000000..0b7d0faca48c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SampleQueryName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SAMPLE_QUERY_SET_SAMPLE_QUERY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String sampleQuerySet; + private final String sampleQuery; + + @Deprecated + protected SampleQueryName() { + project = null; + location = null; + sampleQuerySet = null; + sampleQuery = null; + } + + private SampleQueryName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + sampleQuerySet = Preconditions.checkNotNull(builder.getSampleQuerySet()); + sampleQuery = Preconditions.checkNotNull(builder.getSampleQuery()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSampleQuerySet() { + return sampleQuerySet; + } + + public String getSampleQuery() { + return sampleQuery; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SampleQueryName of( + String project, String location, String sampleQuerySet, String sampleQuery) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSampleQuerySet(sampleQuerySet) + .setSampleQuery(sampleQuery) + .build(); + } + + public static String format( + String project, String location, String sampleQuerySet, String sampleQuery) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSampleQuerySet(sampleQuerySet) + .setSampleQuery(sampleQuery) + .build() + .toString(); + } + + public static SampleQueryName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SAMPLE_QUERY_SET_SAMPLE_QUERY.validatedMatch( + formattedString, "SampleQueryName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("sample_query_set"), + matchMap.get("sample_query")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SampleQueryName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SAMPLE_QUERY_SET_SAMPLE_QUERY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (sampleQuerySet != null) { + fieldMapBuilder.put("sample_query_set", sampleQuerySet); + } + if (sampleQuery != null) { + fieldMapBuilder.put("sample_query", sampleQuery); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SAMPLE_QUERY_SET_SAMPLE_QUERY.instantiate( + "project", + project, + "location", + location, + "sample_query_set", + sampleQuerySet, + "sample_query", + sampleQuery); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SampleQueryName that = ((SampleQueryName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.sampleQuerySet, that.sampleQuerySet) + && Objects.equals(this.sampleQuery, that.sampleQuery); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(sampleQuerySet); + h *= 1000003; + h ^= Objects.hashCode(sampleQuery); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}. + */ + public static class Builder { + private String project; + private String location; + private String sampleQuerySet; + private String sampleQuery; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSampleQuerySet() { + return sampleQuerySet; + } + + public String getSampleQuery() { + return sampleQuery; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSampleQuerySet(String sampleQuerySet) { + this.sampleQuerySet = sampleQuerySet; + return this; + } + + public Builder setSampleQuery(String sampleQuery) { + this.sampleQuery = sampleQuery; + return this; + } + + private Builder(SampleQueryName sampleQueryName) { + this.project = sampleQueryName.project; + this.location = sampleQueryName.location; + this.sampleQuerySet = sampleQueryName.sampleQuerySet; + this.sampleQuery = sampleQueryName.sampleQuery; + } + + public SampleQueryName build() { + return new SampleQueryName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryOrBuilder.java new file mode 100644 index 000000000000..1e220ab97dc1 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface SampleQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SampleQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The query entry.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + * + * @return Whether the queryEntry field is set. + */ + boolean hasQueryEntry(); + /** + * + * + *
      +   * The query entry.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + * + * @return The queryEntry. + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry getQueryEntry(); + /** + * + * + *
      +   * The query entry.
      +   * 
      + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry query_entry = 2; + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntryOrBuilder getQueryEntryOrBuilder(); + + /** + * + * + *
      +   * Identifier. The full resource name of the sample query, in the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Identifier. The full resource name of the sample query, in the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + com.google.cloud.discoveryengine.v1alpha.SampleQuery.ContentCase getContentCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryProto.java new file mode 100644 index 000000000000..b44cac1b368c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryProto.java @@ -0,0 +1,127 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public final class SampleQueryProto { + private SampleQueryProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_Target_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_Target_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/discoveryengine/v1alpha/s" + + "ample_query.proto\022$google.cloud.discover" + + "yengine.v1alpha\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032\037goo" + + "gle/protobuf/timestamp.proto\"\226\004\n\013SampleQ" + + "uery\022S\n\013query_entry\030\002 \001(\0132<.google.cloud" + + ".discoveryengine.v1alpha.SampleQuery.Que" + + "ryEntryH\000\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013create_t" + + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\032\301\001\n\nQueryEntry\022\022\n\005query\030\001 \001(\tB\003\340A\002\022T\n" + + "\007targets\030\003 \003(\0132C.google.cloud.discoverye" + + "ngine.v1alpha.SampleQuery.QueryEntry.Tar" + + "get\032I\n\006Target\022\013\n\003uri\030\001 \001(\t\022\024\n\014page_numbe" + + "rs\030\002 \003(\005\022\022\n\005score\030\003 \001(\001H\000\210\001\001B\010\n\006_score:\231" + + "\001\352A\225\001\n*discoveryengine.googleapis.com/Sa" + + "mpleQuery\022gprojects/{project}/locations/" + + "{location}/sampleQuerySets/{sample_query" + + "_set}/sampleQueries/{sample_query}B\t\n\007co" + + "ntentB\234\002\n(com.google.cloud.discoveryengi" + + "ne.v1alphaB\020SampleQueryProtoP\001ZRcloud.go" + + "ogle.com/go/discoveryengine/apiv1alpha/d" + + "iscoveryenginepb;discoveryenginepb\242\002\017DIS" + + "COVERYENGINE\252\002$Google.Cloud.DiscoveryEng" + + "ine.V1Alpha\312\002$Google\\Cloud\\DiscoveryEngi" + + "ne\\V1alpha\352\002\'Google::Cloud::DiscoveryEng" + + "ine::V1alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_descriptor, + new java.lang.String[] { + "QueryEntry", "Name", "CreateTime", "Content", + }); + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_descriptor, + new java.lang.String[] { + "Query", "Targets", + }); + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_Target_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_Target_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuery_QueryEntry_Target_descriptor, + new java.lang.String[] { + "Uri", "PageNumbers", "Score", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceProto.java new file mode 100644 index 000000000000..506411faf855 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceProto.java @@ -0,0 +1,231 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public final class SampleQueryServiceProto { + private SampleQueryServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQueryRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n?google/cloud/discoveryengine/v1alpha/s" + + "ample_query_service.proto\022$google.cloud." + + "discoveryengine.v1alpha\032\034google/api/anno" + + "tations.proto\032\027google/api/client.proto\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\0328google/cloud/discove" + + "ryengine/v1alpha/import_config.proto\0327go" + + "ogle/cloud/discoveryengine/v1alpha/sampl" + + "e_query.proto\032#google/longrunning/operat" + + "ions.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\"Y\n\025Get" + + "SampleQueryRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A," + + "\n*discoveryengine.googleapis.com/SampleQ" + + "uery\"\210\001\n\030ListSampleQueriesRequest\022E\n\006par" + + "ent\030\001 \001(\tB5\340A\002\372A/\n-discoveryengine.googl" + + "eapis.com/SampleQuerySet\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"\177\n\031ListSampleQue" + + "riesResponse\022I\n\016sample_queries\030\001 \003(\01321.g" + + "oogle.cloud.discoveryengine.v1alpha.Samp" + + "leQuery\022\027\n\017next_page_token\030\002 \001(\t\"\315\001\n\030Cre" + + "ateSampleQueryRequest\022E\n\006parent\030\001 \001(\tB5\340" + + "A\002\372A/\n-discoveryengine.googleapis.com/Sa" + + "mpleQuerySet\022L\n\014sample_query\030\002 \001(\01321.goo" + + "gle.cloud.discoveryengine.v1alpha.Sample" + + "QueryB\003\340A\002\022\034\n\017sample_query_id\030\003 \001(\tB\003\340A\002" + + "\"\231\001\n\030UpdateSampleQueryRequest\022L\n\014sample_" + + "query\030\001 \001(\01321.google.cloud.discoveryengi" + + "ne.v1alpha.SampleQueryB\003\340A\002\022/\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"\\\n\030" + + "DeleteSampleQueryRequest\022@\n\004name\030\001 \001(\tB2" + + "\340A\002\372A,\n*discoveryengine.googleapis.com/S" + + "ampleQuery2\375\014\n\022SampleQueryService\022\331\001\n\016Ge" + + "tSampleQuery\022;.google.cloud.discoveryeng" + + "ine.v1alpha.GetSampleQueryRequest\0321.goog" + + "le.cloud.discoveryengine.v1alpha.SampleQ" + + "uery\"W\332A\004name\202\323\344\223\002J\022H/v1alpha/{name=proj" + + "ects/*/locations/*/sampleQuerySets/*/sam" + + "pleQueries/*}\022\357\001\n\021ListSampleQueries\022>.go" + + "ogle.cloud.discoveryengine.v1alpha.ListS" + + "ampleQueriesRequest\032?.google.cloud.disco" + + "veryengine.v1alpha.ListSampleQueriesResp" + + "onse\"Y\332A\006parent\202\323\344\223\002J\022H/v1alpha/{parent=" + + "projects/*/locations/*/sampleQuerySets/*" + + "}/sampleQueries\022\215\002\n\021CreateSampleQuery\022>." + + "google.cloud.discoveryengine.v1alpha.Cre" + + "ateSampleQueryRequest\0321.google.cloud.dis" + + "coveryengine.v1alpha.SampleQuery\"\204\001\332A#pa" + + "rent,sample_query,sample_query_id\202\323\344\223\002X\"" + + "H/v1alpha/{parent=projects/*/locations/*" + + "/sampleQuerySets/*}/sampleQueries:\014sampl" + + "e_query\022\217\002\n\021UpdateSampleQuery\022>.google.c" + + "loud.discoveryengine.v1alpha.UpdateSampl" + + "eQueryRequest\0321.google.cloud.discoveryen" + + "gine.v1alpha.SampleQuery\"\206\001\332A\030sample_que" + + "ry,update_mask\202\323\344\223\002e2U/v1alpha/{sample_q" + + "uery.name=projects/*/locations/*/sampleQ" + + "uerySets/*/sampleQueries/*}:\014sample_quer" + + "y\022\304\001\n\021DeleteSampleQuery\022>.google.cloud.d" + + "iscoveryengine.v1alpha.DeleteSampleQuery" + + "Request\032\026.google.protobuf.Empty\"W\332A\004name" + + "\202\323\344\223\002J*H/v1alpha/{name=projects/*/locati" + + "ons/*/sampleQuerySets/*/sampleQueries/*}" + + "\022\333\002\n\023ImportSampleQueries\022@.google.cloud." + + "discoveryengine.v1alpha.ImportSampleQuer" + + "iesRequest\032\035.google.longrunning.Operatio" + + "n\"\342\001\312A\204\001\n@google.cloud.discoveryengine.v" + + "1alpha.ImportSampleQueriesResponse\022@goog" + + "le.cloud.discoveryengine.v1alpha.ImportS" + + "ampleQueriesMetadata\202\323\344\223\002T\"O/v1alpha/{pa" + + "rent=projects/*/locations/*/sampleQueryS" + + "ets/*}/sampleQueries:import:\001*\032R\312A\036disco" + + "veryengine.googleapis.com\322A.https://www." + + "googleapis.com/auth/cloud-platformB\243\002\n(c" + + "om.google.cloud.discoveryengine.v1alphaB" + + "\027SampleQueryServiceProtoP\001ZRcloud.google" + + ".com/go/discoveryengine/apiv1alpha/disco" + + "veryenginepb;discoveryenginepb\242\002\017DISCOVE" + + "RYENGINE\252\002$Google.Cloud.DiscoveryEngine." + + "V1Alpha\312\002$Google\\Cloud\\DiscoveryEngine\\V" + + "1alpha\352\002\'Google::Cloud::DiscoveryEngine:" + + ":V1alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.SampleQueryProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQueryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQueriesResponse_descriptor, + new java.lang.String[] { + "SampleQueries", "NextPageToken", + }); + internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQueryRequest_descriptor, + new java.lang.String[] { + "Parent", "SampleQuery", "SampleQueryId", + }); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQueryRequest_descriptor, + new java.lang.String[] { + "SampleQuery", "UpdateMask", + }); + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQueryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.SampleQueryProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySet.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySet.java new file mode 100644 index 000000000000..3ac9b352400c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySet.java @@ -0,0 +1,1382 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * A SampleQuerySet is the parent resource of SampleQuery, and contains the
      + * configurations shared by all SampleQuery under it.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SampleQuerySet} + */ +public final class SampleQuerySet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SampleQuerySet) + SampleQuerySetOrBuilder { + private static final long serialVersionUID = 0L; + // Use SampleQuerySet.newBuilder() to construct. + private SampleQuerySet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SampleQuerySet() { + name_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SampleQuerySet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuerySet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuerySet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.class, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], in
      +   * the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], in
      +   * the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
      +   * Required. The sample query set display name.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 128
      +   * characters.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The sample query set display name.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 128
      +   * characters.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +   * created at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +   * created at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +   * created at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
      +   * The description of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +   * 
      + * + * string description = 4; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
      +   * The description of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +   * 
      + * + * string description = 4; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SampleQuerySet)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet other = + (com.google.cloud.discoveryengine.v1alpha.SampleQuerySet) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuerySet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuerySet parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuerySet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuerySet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuerySet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuerySet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuerySet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuerySet parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuerySet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuerySet parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuerySet parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuerySet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * A SampleQuerySet is the parent resource of SampleQuery, and contains the
      +   * configurations shared by all SampleQuery under it.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SampleQuerySet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SampleQuerySet) + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuerySet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuerySet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.class, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetProto + .internal_static_google_cloud_discoveryengine_v1alpha_SampleQuerySet_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet build() { + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet result = + new com.google.cloud.discoveryengine.v1alpha.SampleQuerySet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SampleQuerySet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.SampleQuerySet) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SampleQuerySet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SampleQuerySet other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], in
      +     * the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], in
      +     * the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], in
      +     * the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], in
      +     * the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], in
      +     * the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
      +     * Required. The sample query set display name.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 128
      +     * characters.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The sample query set display name.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 128
      +     * characters.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The sample query set display name.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 128
      +     * characters.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The sample query set display name.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 128
      +     * characters.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The sample query set display name.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 128
      +     * characters.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
      +     * The description of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + * + * string description = 4; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * The description of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + * + * string description = 4; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * The description of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + * + * string description = 4; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * The description of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + * + * string description = 4; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
      +     * The description of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +     * 
      + * + * string description = 4; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SampleQuerySet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SampleQuerySet) + private static final com.google.cloud.discoveryengine.v1alpha.SampleQuerySet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SampleQuerySet(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SampleQuerySet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetName.java new file mode 100644 index 000000000000..a04a4a9525cf --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SampleQuerySetName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SAMPLE_QUERY_SET = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String sampleQuerySet; + + @Deprecated + protected SampleQuerySetName() { + project = null; + location = null; + sampleQuerySet = null; + } + + private SampleQuerySetName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + sampleQuerySet = Preconditions.checkNotNull(builder.getSampleQuerySet()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSampleQuerySet() { + return sampleQuerySet; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SampleQuerySetName of(String project, String location, String sampleQuerySet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSampleQuerySet(sampleQuerySet) + .build(); + } + + public static String format(String project, String location, String sampleQuerySet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSampleQuerySet(sampleQuerySet) + .build() + .toString(); + } + + public static SampleQuerySetName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SAMPLE_QUERY_SET.validatedMatch( + formattedString, "SampleQuerySetName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("sample_query_set")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SampleQuerySetName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SAMPLE_QUERY_SET.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (sampleQuerySet != null) { + fieldMapBuilder.put("sample_query_set", sampleQuerySet); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SAMPLE_QUERY_SET.instantiate( + "project", project, "location", location, "sample_query_set", sampleQuerySet); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SampleQuerySetName that = ((SampleQuerySetName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.sampleQuerySet, that.sampleQuerySet); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(sampleQuerySet); + return h; + } + + /** Builder for projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}. */ + public static class Builder { + private String project; + private String location; + private String sampleQuerySet; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSampleQuerySet() { + return sampleQuerySet; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSampleQuerySet(String sampleQuerySet) { + this.sampleQuerySet = sampleQuerySet; + return this; + } + + private Builder(SampleQuerySetName sampleQuerySetName) { + this.project = sampleQuerySetName.project; + this.location = sampleQuerySetName.location; + this.sampleQuerySet = sampleQuerySetName.sampleQuerySet; + } + + public SampleQuerySetName build() { + return new SampleQuerySetName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetOrBuilder.java new file mode 100644 index 000000000000..64b907c7563b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface SampleQuerySetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SampleQuerySet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], in
      +   * the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], in
      +   * the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Required. The sample query set display name.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 128
      +   * characters.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
      +   * Required. The sample query set display name.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 128
      +   * characters.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +   * created at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +   * created at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was
      +   * created at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * The description of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +   * 
      + * + * string description = 4; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
      +   * The description of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
      +   * 
      + * + * string description = 4; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetProto.java new file mode 100644 index 000000000000..55a590714d55 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetProto.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public final class SampleQuerySetProto { + private SampleQuerySetProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuerySet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuerySet_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n;google/cloud/discoveryengine/v1alpha/s" + + "ample_query_set.proto\022$google.cloud.disc" + + "overyengine.v1alpha\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + "\037google/protobuf/timestamp.proto\"\211\002\n\016Sam" + + "pleQuerySet\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\031\n\014displa" + + "y_name\030\002 \001(\tB\003\340A\002\0224\n\013create_time\030\003 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\022\023\n\013descr" + + "iption\030\004 \001(\t:~\352A{\n-discoveryengine.googl" + + "eapis.com/SampleQuerySet\022Jprojects/{proj" + + "ect}/locations/{location}/sampleQuerySet" + + "s/{sample_query_set}B\237\002\n(com.google.clou" + + "d.discoveryengine.v1alphaB\023SampleQuerySe" + + "tProtoP\001ZRcloud.google.com/go/discoverye" + + "ngine/apiv1alpha/discoveryenginepb;disco" + + "veryenginepb\242\002\017DISCOVERYENGINE\252\002$Google." + + "Cloud.DiscoveryEngine.V1Alpha\312\002$Google\\C" + + "loud\\DiscoveryEngine\\V1alpha\352\002\'Google::C" + + "loud::DiscoveryEngine::V1alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuerySet_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuerySet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SampleQuerySet_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "CreateTime", "Description", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceProto.java new file mode 100644 index 000000000000..270f8485036d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceProto.java @@ -0,0 +1,216 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public final class SampleQuerySetServiceProto { + private SampleQuerySetServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQuerySetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQuerySetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQuerySetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQuerySetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQuerySetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQuerySetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQuerySetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQuerySetRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nCgoogle/cloud/discoveryengine/v1alpha/s" + + "ample_query_set_service.proto\022$google.cl" + + "oud.discoveryengine.v1alpha\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032;google/cloud/dis" + + "coveryengine/v1alpha/sample_query_set.pr" + + "oto\032\033google/protobuf/empty.proto\032 google" + + "/protobuf/field_mask.proto\"_\n\030GetSampleQ" + + "uerySetRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-di" + + "scoveryengine.googleapis.com/SampleQuery" + + "Set\"\204\001\n\032ListSampleQuerySetsRequest\022?\n\006pa" + + "rent\030\001 \001(\tB/\340A\002\372A)\n\'discoveryengine.goog" + + "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"\207\001\n\033ListSampleQuerySe" + + "tsResponse\022O\n\021sample_query_sets\030\001 \003(\01324." + + "google.cloud.discoveryengine.v1alpha.Sam" + + "pleQuerySet\022\027\n\017next_page_token\030\002 \001(\t\"\325\001\n" + + "\033CreateSampleQuerySetRequest\022?\n\006parent\030\001" + + " \001(\tB/\340A\002\372A)\n\'discoveryengine.googleapis" + + ".com/Location\022S\n\020sample_query_set\030\002 \001(\0132" + + "4.google.cloud.discoveryengine.v1alpha.S" + + "ampleQuerySetB\003\340A\002\022 \n\023sample_query_set_i" + + "d\030\003 \001(\tB\003\340A\002\"\243\001\n\033UpdateSampleQuerySetReq" + + "uest\022S\n\020sample_query_set\030\001 \001(\01324.google." + + "cloud.discoveryengine.v1alpha.SampleQuer" + + "ySetB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMask\"b\n\033DeleteSampleQueryS" + + "etRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-discove" + + "ryengine.googleapis.com/SampleQuerySet2\221" + + "\n\n\025SampleQuerySetService\022\322\001\n\021GetSampleQu" + + "erySet\022>.google.cloud.discoveryengine.v1" + + "alpha.GetSampleQuerySetRequest\0324.google." + + "cloud.discoveryengine.v1alpha.SampleQuer" + + "ySet\"G\332A\004name\202\323\344\223\002:\0228/v1alpha/{name=proj" + + "ects/*/locations/*/sampleQuerySets/*}\022\345\001" + + "\n\023ListSampleQuerySets\022@.google.cloud.dis" + + "coveryengine.v1alpha.ListSampleQuerySets" + + "Request\032A.google.cloud.discoveryengine.v" + + "1alpha.ListSampleQuerySetsResponse\"I\332A\006p" + + "arent\202\323\344\223\002:\0228/v1alpha/{parent=projects/*" + + "/locations/*}/sampleQuerySets\022\222\002\n\024Create" + + "SampleQuerySet\022A.google.cloud.discoverye" + + "ngine.v1alpha.CreateSampleQuerySetReques" + + "t\0324.google.cloud.discoveryengine.v1alpha" + + ".SampleQuerySet\"\200\001\332A+parent,sample_query" + + "_set,sample_query_set_id\202\323\344\223\002L\"8/v1alpha" + + "/{parent=projects/*/locations/*}/sampleQ" + + "uerySets:\020sample_query_set\022\224\002\n\024UpdateSam" + + "pleQuerySet\022A.google.cloud.discoveryengi" + + "ne.v1alpha.UpdateSampleQuerySetRequest\0324" + + ".google.cloud.discoveryengine.v1alpha.Sa" + + "mpleQuerySet\"\202\001\332A\034sample_query_set,updat" + + "e_mask\202\323\344\223\002]2I/v1alpha/{sample_query_set" + + ".name=projects/*/locations/*/sampleQuery" + + "Sets/*}:\020sample_query_set\022\272\001\n\024DeleteSamp" + + "leQuerySet\022A.google.cloud.discoveryengin" + + "e.v1alpha.DeleteSampleQuerySetRequest\032\026." + + "google.protobuf.Empty\"G\332A\004name\202\323\344\223\002:*8/v" + + "1alpha/{name=projects/*/locations/*/samp" + + "leQuerySets/*}\032R\312A\036discoveryengine.googl" + + "eapis.com\322A.https://www.googleapis.com/a" + + "uth/cloud-platformB\246\002\n(com.google.cloud." + + "discoveryengine.v1alphaB\032SampleQuerySetS" + + "erviceProtoP\001ZRcloud.google.com/go/disco" + + "veryengine/apiv1alpha/discoveryenginepb;" + + "discoveryenginepb\242\002\017DISCOVERYENGINE\252\002$Go" + + "ogle.Cloud.DiscoveryEngine.V1Alpha\312\002$Goo" + + "gle\\Cloud\\DiscoveryEngine\\V1alpha\352\002\'Goog" + + "le::Cloud::DiscoveryEngine::V1alphab\006pro" + + "to3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQuerySetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQuerySetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_GetSampleQuerySetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListSampleQuerySetsResponse_descriptor, + new java.lang.String[] { + "SampleQuerySets", "NextPageToken", + }); + internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQuerySetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQuerySetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_CreateSampleQuerySetRequest_descriptor, + new java.lang.String[] { + "Parent", "SampleQuerySet", "SampleQuerySetId", + }); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQuerySetRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQuerySetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQuerySetRequest_descriptor, + new java.lang.String[] { + "SampleQuerySet", "UpdateMask", + }); + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQuerySetRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQuerySetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSampleQuerySetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSampleQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSampleQueryRequest.java new file mode 100644 index 000000000000..43e61354052c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSampleQueryRequest.java @@ -0,0 +1,1122 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [SampleQueryService.UpdateSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.UpdateSampleQuery]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest} + */ +public final class UpdateSampleQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest) + UpdateSampleQueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSampleQueryRequest.newBuilder() to construct. + private UpdateSampleQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSampleQueryRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSampleQueryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest.Builder.class); + } + + private int bitField0_; + public static final int SAMPLE_QUERY_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.SampleQuery sampleQuery_; + /** + * + * + *
      +   * Required. The simple query to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuery field is set. + */ + @java.lang.Override + public boolean hasSampleQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Required. The simple query to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuery. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQuery() { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + /** + * + * + *
      +   * Required. The simple query to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder getSampleQueryOrBuilder() { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
      +   * Indicates which fields in the provided imported 'simple query' to update.
      +   * If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * Indicates which fields in the provided imported 'simple query' to update.
      +   * If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
      +   * Indicates which fields in the provided imported 'simple query' to update.
      +   * If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSampleQuery()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSampleQuery()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest other = + (com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest) obj; + + if (hasSampleQuery() != other.hasSampleQuery()) return false; + if (hasSampleQuery()) { + if (!getSampleQuery().equals(other.getSampleQuery())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSampleQuery()) { + hash = (37 * hash) + SAMPLE_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuery().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQueryService.UpdateSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.UpdateSampleQuery]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest) + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSampleQueryFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sampleQuery_ = null; + if (sampleQueryBuilder_ != null) { + sampleQueryBuilder_.dispose(); + sampleQueryBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest build() { + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest result = + new com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sampleQuery_ = + sampleQueryBuilder_ == null ? sampleQuery_ : sampleQueryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest.getDefaultInstance()) + return this; + if (other.hasSampleQuery()) { + mergeSampleQuery(other.getSampleQuery()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSampleQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1alpha.SampleQuery sampleQuery_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder> + sampleQueryBuilder_; + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuery field is set. + */ + public boolean hasSampleQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuery. + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQuery() { + if (sampleQueryBuilder_ == null) { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance() + : sampleQuery_; + } else { + return sampleQueryBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuery(com.google.cloud.discoveryengine.v1alpha.SampleQuery value) { + if (sampleQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sampleQuery_ = value; + } else { + sampleQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuery( + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder builderForValue) { + if (sampleQueryBuilder_ == null) { + sampleQuery_ = builderForValue.build(); + } else { + sampleQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSampleQuery(com.google.cloud.discoveryengine.v1alpha.SampleQuery value) { + if (sampleQueryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && sampleQuery_ != null + && sampleQuery_ + != com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance()) { + getSampleQueryBuilder().mergeFrom(value); + } else { + sampleQuery_ = value; + } + } else { + sampleQueryBuilder_.mergeFrom(value); + } + if (sampleQuery_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSampleQuery() { + bitField0_ = (bitField0_ & ~0x00000001); + sampleQuery_ = null; + if (sampleQueryBuilder_ != null) { + sampleQueryBuilder_.dispose(); + sampleQueryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder getSampleQueryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSampleQueryFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder getSampleQueryOrBuilder() { + if (sampleQueryBuilder_ != null) { + return sampleQueryBuilder_.getMessageOrBuilder(); + } else { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder> + getSampleQueryFieldBuilder() { + if (sampleQueryBuilder_ == null) { + sampleQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuery, + com.google.cloud.discoveryengine.v1alpha.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder>( + getSampleQuery(), getParentForChildren(), isClean()); + sampleQuery_ = null; + } + return sampleQueryBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest) + private static final com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSampleQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSampleQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSampleQueryRequestOrBuilder.java new file mode 100644 index 000000000000..7f2deec747e0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSampleQueryRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface UpdateSampleQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The simple query to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuery field is set. + */ + boolean hasSampleQuery(); + /** + * + * + *
      +   * Required. The simple query to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuery. + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQuery(); + /** + * + * + *
      +   * Required. The simple query to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.SampleQueryOrBuilder getSampleQueryOrBuilder(); + + /** + * + * + *
      +   * Indicates which fields in the provided imported 'simple query' to update.
      +   * If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
      +   * Indicates which fields in the provided imported 'simple query' to update.
      +   * If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
      +   * Indicates which fields in the provided imported 'simple query' to update.
      +   * If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSampleQuerySetRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSampleQuerySetRequest.java new file mode 100644 index 000000000000..74f998a97c3c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSampleQuerySetRequest.java @@ -0,0 +1,1153 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
      + * Request message for
      + * [SampleQuerySetService.UpdateSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.UpdateSampleQuerySet]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest} + */ +public final class UpdateSampleQuerySetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest) + UpdateSampleQuerySetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSampleQuerySetRequest.newBuilder() to construct. + private UpdateSampleQuerySetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSampleQuerySetRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSampleQuerySetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest.Builder.class); + } + + private int bitField0_; + public static final int SAMPLE_QUERY_SET_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.SampleQuerySet sampleQuerySet_; + /** + * + * + *
      +   * Required. The sample query set to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuerySet field is set. + */ + @java.lang.Override + public boolean hasSampleQuerySet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Required. The sample query set to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuerySet. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getSampleQuerySet() { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } + /** + * + * + *
      +   * Required. The sample query set to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder + getSampleQuerySetOrBuilder() { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
      +   * Indicates which fields in the provided imported 'sample query set' to
      +   * update. If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * Indicates which fields in the provided imported 'sample query set' to
      +   * update. If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
      +   * Indicates which fields in the provided imported 'sample query set' to
      +   * update. If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSampleQuerySet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSampleQuerySet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest other = + (com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest) obj; + + if (hasSampleQuerySet() != other.hasSampleQuerySet()) return false; + if (hasSampleQuerySet()) { + if (!getSampleQuerySet().equals(other.getSampleQuerySet())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSampleQuerySet()) { + hash = (37 * hash) + SAMPLE_QUERY_SET_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuerySet().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQuerySetService.UpdateSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.UpdateSampleQuerySet]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest) + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSampleQuerySetFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sampleQuerySet_ = null; + if (sampleQuerySetBuilder_ != null) { + sampleQuerySetBuilder_.dispose(); + sampleQuerySetBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest build() { + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest result = + new com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sampleQuerySet_ = + sampleQuerySetBuilder_ == null ? sampleQuerySet_ : sampleQuerySetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest + .getDefaultInstance()) return this; + if (other.hasSampleQuerySet()) { + mergeSampleQuerySet(other.getSampleQuerySet()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSampleQuerySetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1alpha.SampleQuerySet sampleQuerySet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder> + sampleQuerySetBuilder_; + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuerySet field is set. + */ + public boolean hasSampleQuerySet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuerySet. + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getSampleQuerySet() { + if (sampleQuerySetBuilder_ == null) { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } else { + return sampleQuerySetBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet value) { + if (sampleQuerySetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sampleQuerySet_ = value; + } else { + sampleQuerySetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder builderForValue) { + if (sampleQuerySetBuilder_ == null) { + sampleQuerySet_ = builderForValue.build(); + } else { + sampleQuerySetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSampleQuerySet( + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet value) { + if (sampleQuerySetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && sampleQuerySet_ != null + && sampleQuerySet_ + != com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.getDefaultInstance()) { + getSampleQuerySetBuilder().mergeFrom(value); + } else { + sampleQuerySet_ = value; + } + } else { + sampleQuerySetBuilder_.mergeFrom(value); + } + if (sampleQuerySet_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSampleQuerySet() { + bitField0_ = (bitField0_ & ~0x00000001); + sampleQuerySet_ = null; + if (sampleQuerySetBuilder_ != null) { + sampleQuerySetBuilder_.dispose(); + sampleQuerySetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder + getSampleQuerySetBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSampleQuerySetFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder + getSampleQuerySetOrBuilder() { + if (sampleQuerySetBuilder_ != null) { + return sampleQuerySetBuilder_.getMessageOrBuilder(); + } else { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder> + getSampleQuerySetFieldBuilder() { + if (sampleQuerySetBuilder_ == null) { + sampleQuerySetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder>( + getSampleQuerySet(), getParentForChildren(), isClean()); + sampleQuerySet_ = null; + } + return sampleQuerySetBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest) + private static final com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSampleQuerySetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSampleQuerySetRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSampleQuerySetRequestOrBuilder.java new file mode 100644 index 000000000000..115cca1c5a0b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSampleQuerySetRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1alpha; + +public interface UpdateSampleQuerySetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The sample query set to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuerySet field is set. + */ + boolean hasSampleQuerySet(); + /** + * + * + *
      +   * Required. The sample query set to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuerySet. + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getSampleQuerySet(); + /** + * + * + *
      +   * Required. The sample query set to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1alpha.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.SampleQuerySetOrBuilder getSampleQuerySetOrBuilder(); + + /** + * + * + *
      +   * Indicates which fields in the provided imported 'sample query set' to
      +   * update. If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
      +   * Indicates which fields in the provided imported 'sample query set' to
      +   * update. If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
      +   * Indicates which fields in the provided imported 'sample query set' to
      +   * update. If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/evaluation.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/evaluation.proto new file mode 100644 index 000000000000..9d55c0e46792 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/evaluation.proto @@ -0,0 +1,232 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/search_service.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "EvaluationProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// An evaluation is a single execution (or run) of an evaluation process. It +// encapsulates the state of the evaluation and the resulting data. +message Evaluation { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/Evaluation" + pattern: "projects/{project}/locations/{location}/evaluations/{evaluation}" + }; + + // Describes the specification of the evaluation. + message EvaluationSpec { + // Describes the specification of the query set. + message QuerySetSpec { + // Required. The full resource name of the + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] + // used for the evaluation, in the format of + // `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + string sample_query_set = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuerySet" + } + ]; + } + + // The search specification. + oneof search_spec { + // Required. The search request that is used to perform the evaluation. + // + // Only the following fields within SearchRequest are supported; if any + // other fields are provided, an UNSUPPORTED error will be returned: + // + // * [SearchRequest.serving_config][google.cloud.discoveryengine.v1alpha.SearchRequest.serving_config] + // * [SearchRequest.branch][google.cloud.discoveryengine.v1alpha.SearchRequest.branch] + // * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1alpha.SearchRequest.canonical_filter] + // * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.query_expansion_spec] + // * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.spell_correction_spec] + // * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.content_search_spec] + // * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id] + SearchRequest search_request = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. The specification of the query set. + QuerySetSpec query_set_spec = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Describes the state of an evaluation. + enum State { + // The evaluation is unspecified. + STATE_UNSPECIFIED = 0; + + // The service is preparing to run the evaluation. + PENDING = 1; + + // The evaluation is in progress. + RUNNING = 2; + + // The evaluation completed successfully. + SUCCEEDED = 3; + + // The evaluation failed. + FAILED = 4; + } + + // Identifier. The full resource name of the + // [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], in the + // format of + // `projects/{project}/locations/{location}/evaluations/{evaluation}`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The specification of the evaluation. + EvaluationSpec evaluation_spec = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The metrics produced by the evaluation, averaged across all + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s in the + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + // + // Only populated when the evaluation's state is SUCCEEDED. + QualityMetrics quality_metrics = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the evaluation. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error that occurred during evaluation. Only populated when + // the evaluation's state is FAILED. + google.rpc.Status error = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp the + // [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was created + // at. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp the + // [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] was completed + // at. + google.protobuf.Timestamp end_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A sample of errors encountered while processing the request. + repeated google.rpc.Status error_samples = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Describes the metrics produced by the evaluation. +message QualityMetrics { + // Stores the metric values at specific top-k levels. + message TopkMetrics { + // The top-1 value. + double top_1 = 1; + + // The top-3 value. + double top_3 = 2; + + // The top-5 value. + double top_5 = 3; + + // The top-10 value. + double top_10 = 4; + } + + // Recall per document, at various top-k cutoff levels. + // + // Recall is the fraction of relevant documents retrieved out of all + // relevant documents. + // + // Example (top-5): + // * For a single + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 3 out + // of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6 + TopkMetrics doc_recall = 1; + + // Precision per document, at various top-k cutoff levels. + // + // Precision is the fraction of retrieved documents that are relevant. + // + // Example (top-5): + // * For a single + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], If 4 out + // of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 = + // 0.8 + TopkMetrics doc_precision = 2; + + // Normalized discounted cumulative gain (NDCG) per document, at various top-k + // cutoff levels. + // + // NDCG measures the ranking quality, giving higher relevance to top + // results. + // + // Example (top-3): + // Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] + // with three retrieved documents (D1, D2, D3) and binary relevance + // judgements (1 for relevant, 0 for not relevant): + // + // Retrieved: [D3 (0), D1 (1), D2 (1)] + // Ideal: [D1 (1), D2 (1), D3 (0)] + // + // Calculate NDCG@3 for each + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]: + // * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13 + // * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63 + // * NDCG@3: 1.13/1.63 = 0.693 + TopkMetrics doc_ndcg = 3; + + // Recall per page, at various top-k cutoff levels. + // + // Recall is the fraction of relevant pages retrieved out of all relevant + // pages. + // + // Example (top-5): + // * For a single + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], if 3 out + // of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6 + TopkMetrics page_recall = 4; + + // Normalized discounted cumulative gain (NDCG) per page, at various top-k + // cutoff levels. + // + // NDCG measures the ranking quality, giving higher relevance to top + // results. + // + // Example (top-3): + // Suppose [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] + // with three retrieved pages (P1, P2, P3) and binary relevance judgements (1 + // for relevant, 0 for not relevant): + // + // Retrieved: [P3 (0), P1 (1), P2 (1)] + // Ideal: [P1 (1), P2 (1), P3 (0)] + // + // Calculate NDCG@3 for + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]: + // * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13 + // * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63 + // * NDCG@3: 1.13/1.63 = 0.693 + TopkMetrics page_ndcg = 5; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/evaluation_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/evaluation_service.proto new file mode 100644 index 000000000000..9e5b66ec6a18 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/evaluation_service.proto @@ -0,0 +1,252 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/evaluation.proto"; +import "google/cloud/discoveryengine/v1alpha/sample_query.proto"; +import "google/longrunning/operations.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "EvaluationServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for managing +// [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s, +service EvaluationService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + rpc GetEvaluation(GetEvaluationRequest) returns (Evaluation) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/evaluations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets a list of + // [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s. + rpc ListEvaluations(ListEvaluationsRequest) + returns (ListEvaluationsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*}/evaluations" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + // + // Upon creation, the evaluation will be automatically triggered and begin + // execution. + rpc CreateEvaluation(CreateEvaluationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*}/evaluations" + body: "evaluation" + }; + option (google.api.method_signature) = "parent,evaluation"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1alpha.Evaluation" + metadata_type: "google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata" + }; + } + + // Gets a list of results for a given a + // [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. + rpc ListEvaluationResults(ListEvaluationResultsRequest) + returns (ListEvaluationResultsResponse) { + option (google.api.http) = { + get: "/v1alpha/{evaluation=projects/*/locations/*/evaluations/*}:listResults" + }; + option (google.api.method_signature) = "evaluation"; + } +} + +// Request message for +// [EvaluationService.GetEvaluation][google.cloud.discoveryengine.v1alpha.EvaluationService.GetEvaluation] +// method. +message GetEvaluationRequest { + // Required. Full resource name of + // [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], such as + // `projects/{project}/locations/{location}/evaluations/{evaluation}`. + // + // If the caller does not have permission to access the + // [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation], regardless + // of whether or not it exists, a PERMISSION_DENIED error is returned. + // + // If the requested + // [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] does not + // exist, a NOT_FOUND error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Evaluation" + } + ]; +} + +// Request message for +// [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations] +// method. +message ListEvaluationsRequest { + // Required. The parent location resource name, such as + // `projects/{project}/locations/{location}`. + // + // If the caller does not have permission to list + // [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s under this + // location, regardless of whether or not this location exists, a + // `PERMISSION_DENIED` error is returned. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Maximum number of + // [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s to return. + // If unspecified, defaults to 100. The maximum allowed value is 1000. Values + // above 1000 will be coerced to 1000. + // + // If this field is negative, an `INVALID_ARGUMENT` error is returned. + int32 page_size = 2; + + // A page token + // [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse.next_page_token], + // received from a previous + // [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations] + // must match the call that provided the page token. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string page_token = 3; +} + +// Response message for +// [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations] +// method. +message ListEvaluationsResponse { + // The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s. + repeated Evaluation evaluations = 1; + + // A token that can be sent as + // [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [EvaluationService.CreateEvaluation][google.cloud.discoveryengine.v1alpha.EvaluationService.CreateEvaluation] +// method. +message CreateEvaluationRequest { + // Required. The parent resource name, such as + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Required. The [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation] + // to create. + Evaluation evaluation = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Metadata for +// [EvaluationService.CreateEvaluation][google.cloud.discoveryengine.v1alpha.EvaluationService.CreateEvaluation] +// method. +message CreateEvaluationMetadata {} + +// Request message for +// [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults] +// method. +message ListEvaluationResultsRequest { + // Required. The evaluation resource name, such as + // `projects/{project}/locations/{location}/evaluations/{evaluation}`. + // + // If the caller does not have permission to list [EvaluationResult][] + // under this evaluation, regardless of whether or not this evaluation + // set exists, a `PERMISSION_DENIED` error is returned. + string evaluation = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Evaluation" + } + ]; + + // Maximum number of [EvaluationResult][] to return. If unspecified, + // defaults to 100. The maximum allowed value is 1000. Values above 1000 will + // be coerced to 1000. + // + // If this field is negative, an `INVALID_ARGUMENT` error is returned. + int32 page_size = 2; + + // A page token + // [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.next_page_token], + // received from a previous + // [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults] + // must match the call that provided the page token. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string page_token = 3; +} + +// Response message for +// [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults] +// method. +message ListEvaluationResultsResponse { + // Represents the results of an evaluation for a single + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + message EvaluationResult { + // Output only. The + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] that was + // evaluated. + SampleQuery sample_query = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The metrics produced by the evaluation, for a given + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + QualityMetrics quality_metrics = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The + // [EvaluationResult][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse.EvaluationResult]s. + repeated EvaluationResult evaluation_results = 1; + + // A token that can be sent as + // [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/import_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/import_config.proto index 231155d15a8c..221d3bdc3c74 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/import_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/import_config.proto @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1alpha/completion.proto"; import "google/cloud/discoveryengine/v1alpha/document.proto"; +import "google/cloud/discoveryengine/v1alpha/sample_query.proto"; import "google/cloud/discoveryengine/v1alpha/user_event.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -664,3 +665,85 @@ message ImportSuggestionDenyListEntriesMetadata { // finish time. google.protobuf.Timestamp update_time = 2; } + +// Request message for +// [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ImportSampleQueries] +// method. +message ImportSampleQueriesRequest { + // The inline source for + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. + message InlineSource { + // Required. A list of + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to + // import. Max of 1000 items. + repeated SampleQuery sample_queries = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // The source of the sample queries. + oneof source { + // The Inline source for sample query entries. + InlineSource inline_source = 2; + + // Cloud Storage location for the input content. + GcsSource gcs_source = 3; + + // BigQuery input source. + BigQuerySource bigquery_source = 4; + } + + // Required. The parent sample query set resource name, such as + // `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + // + // If the caller does not have permission to list + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this + // sample query set, regardless of whether or not this sample query set + // exists, a `PERMISSION_DENIED` error is returned. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuerySet" + } + ]; + + // The desired location of errors incurred during the Import. + ImportErrorConfig error_config = 5; +} + +// Response of the +// [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ImportSampleQueries] +// method. If the long running operation is done, this message is returned by +// the google.longrunning.Operations.response field if the operation is +// successful. +message ImportSampleQueriesResponse { + // A sample of errors encountered while processing the request. + repeated google.rpc.Status error_samples = 1; + + // The desired location of errors incurred during the Import. + ImportErrorConfig error_config = 2; +} + +// Metadata related to the progress of the ImportSampleQueries +// operation. This will be returned by the google.longrunning.Operation.metadata +// field. +message ImportSampleQueriesMetadata { + // ImportSampleQueries operation create time. + google.protobuf.Timestamp create_time = 1; + + // ImportSampleQueries operation last update time. If the operation is done, + // this is also the finish time. + google.protobuf.Timestamp update_time = 2; + + // Count of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s + // successfully imported. + int64 success_count = 3; + + // Count of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s + // that failed to be imported. + int64 failure_count = 4; + + // Total count of + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s that were + // processed. + int64 total_count = 5; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/sample_query.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/sample_query.proto new file mode 100644 index 000000000000..e03d05c1adc2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/sample_query.proto @@ -0,0 +1,86 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "SampleQueryProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Sample Query captures metadata to be used for evaluation. +message SampleQuery { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/SampleQuery" + pattern: "projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}" + }; + + // Query Entry captures metadata to be used for search evaluation. + message QueryEntry { + // Defines the parameters of the query's expected outcome. + message Target { + // Expected uri of the target. + // + // This field must be a UTF-8 encoded string with a length limit of 2048 + // characters. + // + // Example of valid uris: `https://example.com/abc`, + // `gcs://example/example.pdf`. + string uri = 1; + + // Expected page numbers of the target. + // + // Each page number must be non negative. + repeated int32 page_numbers = 2; + + // Relevance score of the target. + optional double score = 3; + } + + // Required. The query. + string query = 1 [(google.api.field_behavior) = REQUIRED]; + + // List of targets for the query. + repeated Target targets = 3; + } + + // The content of the sample query. + oneof content { + // The query entry. + QueryEntry query_entry = 2; + } + + // Identifier. The full resource name of the sample query, in the format of + // `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Timestamp the + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] was created + // at. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/sample_query_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/sample_query_service.proto new file mode 100644 index 000000000000..1ace647fe8d2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/sample_query_service.proto @@ -0,0 +1,264 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/import_config.proto"; +import "google/cloud/discoveryengine/v1alpha/sample_query.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "SampleQueryServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for managing +// [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s, +service SampleQueryService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + rpc GetSampleQuery(GetSampleQueryRequest) returns (SampleQuery) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/sampleQueries/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets a list of + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. + rpc ListSampleQueries(ListSampleQueriesRequest) + returns (ListSampleQueriesResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*/sampleQuerySets/*}/sampleQueries" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] + rpc CreateSampleQuery(CreateSampleQueryRequest) returns (SampleQuery) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/sampleQuerySets/*}/sampleQueries" + body: "sample_query" + }; + option (google.api.method_signature) = + "parent,sample_query,sample_query_id"; + } + + // Updates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + rpc UpdateSampleQuery(UpdateSampleQueryRequest) returns (SampleQuery) { + option (google.api.http) = { + patch: "/v1alpha/{sample_query.name=projects/*/locations/*/sampleQuerySets/*/sampleQueries/*}" + body: "sample_query" + }; + option (google.api.method_signature) = "sample_query,update_mask"; + } + + // Deletes a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]. + rpc DeleteSampleQuery(DeleteSampleQueryRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/sampleQueries/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Bulk import of multiple + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. Sample + // queries that already exist may be deleted. + // + // Note: It is possible for a subset of the + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to be + // successfully imported. + rpc ImportSampleQueries(ImportSampleQueriesRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/sampleQuerySets/*}/sampleQueries:import" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse" + metadata_type: "google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata" + }; + } +} + +// Request message for +// [SampleQueryService.GetSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.GetSampleQuery] +// method. +message GetSampleQueryRequest { + // Required. Full resource name of + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as + // `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`. + // + // If the caller does not have permission to access the + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless + // of whether or not it exists, a PERMISSION_DENIED error is returned. + // + // If the requested + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] does not + // exist, a NOT_FOUND error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuery" + } + ]; +} + +// Request message for +// [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries] +// method. +message ListSampleQueriesRequest { + // Required. The parent sample query set resource name, such as + // `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + // + // If the caller does not have permission to list + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this + // sample query set, regardless of whether or not this sample query set + // exists, a `PERMISSION_DENIED` error is returned. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuerySet" + } + ]; + + // Maximum number of + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to return. + // If unspecified, defaults to 100. The maximum allowed value is 1000. Values + // above 1000 will be coerced to 1000. + // + // If this field is negative, an `INVALID_ARGUMENT` error is returned. + int32 page_size = 2; + + // A page token + // [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.next_page_token], + // received from a previous + // [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries] + // must match the call that provided the page token. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string page_token = 3; +} + +// Response message for +// [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries] +// method. +message ListSampleQueriesResponse { + // The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. + repeated SampleQuery sample_queries = 1; + + // A token that can be sent as + // [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [SampleQueryService.CreateSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.CreateSampleQuery] +// method. +message CreateSampleQueryRequest { + // Required. The parent resource name, such as + // `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuerySet" + } + ]; + + // Required. The + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create. + SampleQuery sample_query = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], which will + // become the final component of the + // [SampleQuery.name][google.cloud.discoveryengine.v1alpha.SampleQuery.name]. + // + // If the caller does not have permission to create the + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless + // of whether or not it exists, a `PERMISSION_DENIED` error is returned. + // + // This field must be unique among all + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s with the + // same + // [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.parent]. + // Otherwise, an `ALREADY_EXISTS` error is returned. + // + // This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) + // standard with a length limit of 63 characters. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string sample_query_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [SampleQueryService.UpdateSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.UpdateSampleQuery] +// method. +message UpdateSampleQueryRequest { + // Required. The simple query to update. + // + // If the caller does not have permission to update the + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless + // of whether or not it exists, a `PERMISSION_DENIED` error is returned. + // + // If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to + // update does not exist a `NOT_FOUND` error is returned. + SampleQuery sample_query = 1 [(google.api.field_behavior) = REQUIRED]; + + // Indicates which fields in the provided imported 'simple query' to update. + // If not set, will by default update all fields. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for +// [SampleQueryService.DeleteSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.DeleteSampleQuery] +// method. +message DeleteSampleQueryRequest { + // Required. Full resource name of + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as + // `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`. + // + // If the caller does not have permission to delete the + // [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless + // of whether or not it exists, a `PERMISSION_DENIED` error is returned. + // + // If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to + // delete does not exist, a `NOT_FOUND` error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuery" + } + ]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/sample_query_set.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/sample_query_set.proto new file mode 100644 index 000000000000..599e554dde76 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/sample_query_set.proto @@ -0,0 +1,64 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "SampleQuerySetProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// A SampleQuerySet is the parent resource of SampleQuery, and contains the +// configurations shared by all SampleQuery under it. +message SampleQuerySet { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/SampleQuerySet" + pattern: "projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}" + }; + + // Identifier. The full resource name of the + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], in + // the format of + // `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The sample query set display name. + // + // This field must be a UTF-8 encoded string with a length limit of 128 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Timestamp the + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] was + // created at. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The description of the + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + string description = 4; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto new file mode 100644 index 000000000000..793173a9fe6a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto @@ -0,0 +1,258 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/sample_query_set.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "SampleQuerySetServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for managing +// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s, +service SampleQuerySetService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets a + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + rpc GetSampleQuerySet(GetSampleQuerySetRequest) returns (SampleQuerySet) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets a list of + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s. + rpc ListSampleQuerySets(ListSampleQuerySetsRequest) + returns (ListSampleQuerySetsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*}/sampleQuerySets" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] + rpc CreateSampleQuerySet(CreateSampleQuerySetRequest) + returns (SampleQuerySet) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*}/sampleQuerySets" + body: "sample_query_set" + }; + option (google.api.method_signature) = + "parent,sample_query_set,sample_query_set_id"; + } + + // Updates a + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + rpc UpdateSampleQuerySet(UpdateSampleQuerySetRequest) + returns (SampleQuerySet) { + option (google.api.http) = { + patch: "/v1alpha/{sample_query_set.name=projects/*/locations/*/sampleQuerySets/*}" + body: "sample_query_set" + }; + option (google.api.method_signature) = "sample_query_set,update_mask"; + } + + // Deletes a + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]. + rpc DeleteSampleQuerySet(DeleteSampleQuerySetRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message for +// [SampleQuerySetService.GetSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.GetSampleQuerySet] +// method. +message GetSampleQuerySetRequest { + // Required. Full resource name of + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such + // as + // `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`. + // + // If the caller does not have permission to access the + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], + // regardless of whether or not it exists, a PERMISSION_DENIED error is + // returned. + // + // If the requested + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] does + // not exist, a NOT_FOUND error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuerySet" + } + ]; +} + +// Request message for +// [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets] +// method. +message ListSampleQuerySetsRequest { + // Required. The parent location resource name, such as + // `projects/{project}/locations/{location}`. + // + // If the caller does not have permission to list + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s + // under this location, regardless of whether or not this location exists, a + // `PERMISSION_DENIED` error is returned. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Maximum number of + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s to + // return. If unspecified, defaults to 100. The maximum allowed value is 1000. + // Values above 1000 will be coerced to 1000. + // + // If this field is negative, an `INVALID_ARGUMENT` error is returned. + int32 page_size = 2; + + // A page token + // [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.next_page_token], + // received from a previous + // [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets] + // must match the call that provided the page token. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string page_token = 3; +} + +// Response message for +// [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets] +// method. +message ListSampleQuerySetsResponse { + // The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s. + repeated SampleQuerySet sample_query_sets = 1; + + // A token that can be sent as + // [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [SampleQuerySetService.CreateSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.CreateSampleQuerySet] +// method. +message CreateSampleQuerySetRequest { + // Required. The parent resource name, such as + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Required. The + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to + // create. + SampleQuerySet sample_query_set = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], + // which will become the final component of the + // [SampleQuerySet.name][google.cloud.discoveryengine.v1alpha.SampleQuerySet.name]. + // + // If the caller does not have permission to create the + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], + // regardless of whether or not it exists, a `PERMISSION_DENIED` error is + // returned. + // + // This field must be unique among all + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s with + // the same + // [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.parent]. + // Otherwise, an `ALREADY_EXISTS` error is returned. + // + // This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) + // standard with a length limit of 63 characters. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string sample_query_set_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [SampleQuerySetService.UpdateSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.UpdateSampleQuerySet] +// method. +message UpdateSampleQuerySetRequest { + // Required. The sample query set to update. + // + // If the caller does not have permission to update the + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], + // regardless of whether or not it exists, a `PERMISSION_DENIED` error is + // returned. + // + // If the + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to + // update does not exist a `NOT_FOUND` error is returned. + SampleQuerySet sample_query_set = 1 [(google.api.field_behavior) = REQUIRED]; + + // Indicates which fields in the provided imported 'sample query set' to + // update. If not set, will by default update all fields. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for +// [SampleQuerySetService.DeleteSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.DeleteSampleQuerySet] +// method. +message DeleteSampleQuerySetRequest { + // Required. Full resource name of + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such + // as + // `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`. + // + // If the caller does not have permission to delete the + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], + // regardless of whether or not it exists, a `PERMISSION_DENIED` error is + // returned. + // + // If the + // [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to + // delete does not exist, a `NOT_FOUND` error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuerySet" + } + ]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AlloyDbSource.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AlloyDbSource.java new file mode 100644 index 000000000000..85176b8459b2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AlloyDbSource.java @@ -0,0 +1,1613 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * AlloyDB source import data from.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AlloyDbSource} + */ +public final class AlloyDbSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AlloyDbSource) + AlloyDbSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlloyDbSource.newBuilder() to construct. + private AlloyDbSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AlloyDbSource() { + projectId_ = ""; + locationId_ = ""; + clusterId_ = ""; + databaseId_ = ""; + tableId_ = ""; + gcsStagingDir_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AlloyDbSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AlloyDbSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AlloyDbSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AlloyDbSource.class, + com.google.cloud.discoveryengine.v1beta.AlloyDbSource.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + * + * + *
      +   * The project ID that the AlloyDB source is in
      +   * with a length limit of 128 characters. If not specified, inherits the
      +   * project ID from the parent request.
      +   * 
      + * + * string project_id = 1; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
      +   * The project ID that the AlloyDB source is in
      +   * with a length limit of 128 characters. If not specified, inherits the
      +   * project ID from the parent request.
      +   * 
      + * + * string project_id = 1; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object locationId_ = ""; + /** + * + * + *
      +   * Required. The AlloyDB location to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string location_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The locationId. + */ + @java.lang.Override + public java.lang.String getLocationId() { + java.lang.Object ref = locationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + locationId_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The AlloyDB location to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string location_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for locationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationIdBytes() { + java.lang.Object ref = locationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + locationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + * + * + *
      +   * Required. The AlloyDB cluster to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The AlloyDB cluster to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object databaseId_ = ""; + /** + * + * + *
      +   * Required. The AlloyDB database to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + @java.lang.Override + public java.lang.String getDatabaseId() { + java.lang.Object ref = databaseId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databaseId_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The AlloyDB database to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseIdBytes() { + java.lang.Object ref = databaseId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object tableId_ = ""; + /** + * + * + *
      +   * Required. The AlloyDB table to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string table_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tableId. + */ + @java.lang.Override + public java.lang.String getTableId() { + java.lang.Object ref = tableId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableId_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The AlloyDB table to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string table_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tableId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableIdBytes() { + java.lang.Object ref = tableId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tableId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCS_STAGING_DIR_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsStagingDir_ = ""; + /** + * + * + *
      +   * Intermediate Cloud Storage directory used for the import with a length
      +   * limit of 2,000 characters. Can be specified if one wants to have the
      +   * AlloyDB export to a specific Cloud Storage directory.
      +   *
      +   * Ensure that the AlloyDB service account has the necessary Cloud
      +   * Storage Admin permissions to access the specified Cloud Storage directory.
      +   * 
      + * + * string gcs_staging_dir = 6; + * + * @return The gcsStagingDir. + */ + @java.lang.Override + public java.lang.String getGcsStagingDir() { + java.lang.Object ref = gcsStagingDir_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsStagingDir_ = s; + return s; + } + } + /** + * + * + *
      +   * Intermediate Cloud Storage directory used for the import with a length
      +   * limit of 2,000 characters. Can be specified if one wants to have the
      +   * AlloyDB export to a specific Cloud Storage directory.
      +   *
      +   * Ensure that the AlloyDB service account has the necessary Cloud
      +   * Storage Admin permissions to access the specified Cloud Storage directory.
      +   * 
      + * + * string gcs_staging_dir = 6; + * + * @return The bytes for gcsStagingDir. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsStagingDirBytes() { + java.lang.Object ref = gcsStagingDir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsStagingDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, locationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, databaseId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tableId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsStagingDir_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, gcsStagingDir_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, locationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, databaseId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tableId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsStagingDir_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, gcsStagingDir_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.AlloyDbSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AlloyDbSource other = + (com.google.cloud.discoveryengine.v1beta.AlloyDbSource) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getLocationId().equals(other.getLocationId())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getDatabaseId().equals(other.getDatabaseId())) return false; + if (!getTableId().equals(other.getTableId())) return false; + if (!getGcsStagingDir().equals(other.getGcsStagingDir())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getLocationId().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseId().hashCode(); + hash = (37 * hash) + TABLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getTableId().hashCode(); + hash = (37 * hash) + GCS_STAGING_DIR_FIELD_NUMBER; + hash = (53 * hash) + getGcsStagingDir().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AlloyDbSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AlloyDbSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AlloyDbSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AlloyDbSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AlloyDbSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AlloyDbSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AlloyDbSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AlloyDbSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AlloyDbSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AlloyDbSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AlloyDbSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AlloyDbSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AlloyDbSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * AlloyDB source import data from.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AlloyDbSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AlloyDbSource) + com.google.cloud.discoveryengine.v1beta.AlloyDbSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AlloyDbSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AlloyDbSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AlloyDbSource.class, + com.google.cloud.discoveryengine.v1beta.AlloyDbSource.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.AlloyDbSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + locationId_ = ""; + clusterId_ = ""; + databaseId_ = ""; + tableId_ = ""; + gcsStagingDir_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AlloyDbSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AlloyDbSource getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AlloyDbSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AlloyDbSource build() { + com.google.cloud.discoveryengine.v1beta.AlloyDbSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AlloyDbSource buildPartial() { + com.google.cloud.discoveryengine.v1beta.AlloyDbSource result = + new com.google.cloud.discoveryengine.v1beta.AlloyDbSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.AlloyDbSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.locationId_ = locationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.databaseId_ = databaseId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tableId_ = tableId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.gcsStagingDir_ = gcsStagingDir_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.AlloyDbSource) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.AlloyDbSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.AlloyDbSource other) { + if (other == com.google.cloud.discoveryengine.v1beta.AlloyDbSource.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getLocationId().isEmpty()) { + locationId_ = other.locationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDatabaseId().isEmpty()) { + databaseId_ = other.databaseId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getTableId().isEmpty()) { + tableId_ = other.tableId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getGcsStagingDir().isEmpty()) { + gcsStagingDir_ = other.gcsStagingDir_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + locationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + databaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + tableId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + gcsStagingDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + * + * + *
      +     * The project ID that the AlloyDB source is in
      +     * with a length limit of 128 characters. If not specified, inherits the
      +     * project ID from the parent request.
      +     * 
      + * + * string project_id = 1; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * The project ID that the AlloyDB source is in
      +     * with a length limit of 128 characters. If not specified, inherits the
      +     * project ID from the parent request.
      +     * 
      + * + * string project_id = 1; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * The project ID that the AlloyDB source is in
      +     * with a length limit of 128 characters. If not specified, inherits the
      +     * project ID from the parent request.
      +     * 
      + * + * string project_id = 1; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * The project ID that the AlloyDB source is in
      +     * with a length limit of 128 characters. If not specified, inherits the
      +     * project ID from the parent request.
      +     * 
      + * + * string project_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * The project ID that the AlloyDB source is in
      +     * with a length limit of 128 characters. If not specified, inherits the
      +     * project ID from the parent request.
      +     * 
      + * + * string project_id = 1; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object locationId_ = ""; + /** + * + * + *
      +     * Required. The AlloyDB location to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string location_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The locationId. + */ + public java.lang.String getLocationId() { + java.lang.Object ref = locationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + locationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The AlloyDB location to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string location_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for locationId. + */ + public com.google.protobuf.ByteString getLocationIdBytes() { + java.lang.Object ref = locationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + locationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The AlloyDB location to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string location_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The locationId to set. + * @return This builder for chaining. + */ + public Builder setLocationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + locationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The AlloyDB location to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string location_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLocationId() { + locationId_ = getDefaultInstance().getLocationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The AlloyDB location to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string location_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for locationId to set. + * @return This builder for chaining. + */ + public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
      +     * Required. The AlloyDB cluster to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The AlloyDB cluster to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The AlloyDB cluster to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The AlloyDB cluster to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The AlloyDB cluster to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object databaseId_ = ""; + /** + * + * + *
      +     * Required. The AlloyDB database to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + public java.lang.String getDatabaseId() { + java.lang.Object ref = databaseId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databaseId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The AlloyDB database to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + public com.google.protobuf.ByteString getDatabaseIdBytes() { + java.lang.Object ref = databaseId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The AlloyDB database to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The databaseId to set. + * @return This builder for chaining. + */ + public Builder setDatabaseId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + databaseId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The AlloyDB database to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatabaseId() { + databaseId_ = getDefaultInstance().getDatabaseId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The AlloyDB database to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for databaseId to set. + * @return This builder for chaining. + */ + public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object tableId_ = ""; + /** + * + * + *
      +     * Required. The AlloyDB table to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string table_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tableId. + */ + public java.lang.String getTableId() { + java.lang.Object ref = tableId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The AlloyDB table to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string table_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tableId. + */ + public com.google.protobuf.ByteString getTableIdBytes() { + java.lang.Object ref = tableId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tableId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The AlloyDB table to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string table_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tableId to set. + * @return This builder for chaining. + */ + public Builder setTableId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tableId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The AlloyDB table to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string table_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTableId() { + tableId_ = getDefaultInstance().getTableId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The AlloyDB table to copy the data from with a length limit of
      +     * 256 characters.
      +     * 
      + * + * string table_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tableId to set. + * @return This builder for chaining. + */ + public Builder setTableIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tableId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object gcsStagingDir_ = ""; + /** + * + * + *
      +     * Intermediate Cloud Storage directory used for the import with a length
      +     * limit of 2,000 characters. Can be specified if one wants to have the
      +     * AlloyDB export to a specific Cloud Storage directory.
      +     *
      +     * Ensure that the AlloyDB service account has the necessary Cloud
      +     * Storage Admin permissions to access the specified Cloud Storage directory.
      +     * 
      + * + * string gcs_staging_dir = 6; + * + * @return The gcsStagingDir. + */ + public java.lang.String getGcsStagingDir() { + java.lang.Object ref = gcsStagingDir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsStagingDir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Intermediate Cloud Storage directory used for the import with a length
      +     * limit of 2,000 characters. Can be specified if one wants to have the
      +     * AlloyDB export to a specific Cloud Storage directory.
      +     *
      +     * Ensure that the AlloyDB service account has the necessary Cloud
      +     * Storage Admin permissions to access the specified Cloud Storage directory.
      +     * 
      + * + * string gcs_staging_dir = 6; + * + * @return The bytes for gcsStagingDir. + */ + public com.google.protobuf.ByteString getGcsStagingDirBytes() { + java.lang.Object ref = gcsStagingDir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsStagingDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Intermediate Cloud Storage directory used for the import with a length
      +     * limit of 2,000 characters. Can be specified if one wants to have the
      +     * AlloyDB export to a specific Cloud Storage directory.
      +     *
      +     * Ensure that the AlloyDB service account has the necessary Cloud
      +     * Storage Admin permissions to access the specified Cloud Storage directory.
      +     * 
      + * + * string gcs_staging_dir = 6; + * + * @param value The gcsStagingDir to set. + * @return This builder for chaining. + */ + public Builder setGcsStagingDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsStagingDir_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
      +     * Intermediate Cloud Storage directory used for the import with a length
      +     * limit of 2,000 characters. Can be specified if one wants to have the
      +     * AlloyDB export to a specific Cloud Storage directory.
      +     *
      +     * Ensure that the AlloyDB service account has the necessary Cloud
      +     * Storage Admin permissions to access the specified Cloud Storage directory.
      +     * 
      + * + * string gcs_staging_dir = 6; + * + * @return This builder for chaining. + */ + public Builder clearGcsStagingDir() { + gcsStagingDir_ = getDefaultInstance().getGcsStagingDir(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
      +     * Intermediate Cloud Storage directory used for the import with a length
      +     * limit of 2,000 characters. Can be specified if one wants to have the
      +     * AlloyDB export to a specific Cloud Storage directory.
      +     *
      +     * Ensure that the AlloyDB service account has the necessary Cloud
      +     * Storage Admin permissions to access the specified Cloud Storage directory.
      +     * 
      + * + * string gcs_staging_dir = 6; + * + * @param value The bytes for gcsStagingDir to set. + * @return This builder for chaining. + */ + public Builder setGcsStagingDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsStagingDir_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AlloyDbSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AlloyDbSource) + private static final com.google.cloud.discoveryengine.v1beta.AlloyDbSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.AlloyDbSource(); + } + + public static com.google.cloud.discoveryengine.v1beta.AlloyDbSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlloyDbSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AlloyDbSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AlloyDbSourceOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AlloyDbSourceOrBuilder.java new file mode 100644 index 000000000000..8a9d15cdd339 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AlloyDbSourceOrBuilder.java @@ -0,0 +1,198 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface AlloyDbSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AlloyDbSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The project ID that the AlloyDB source is in
      +   * with a length limit of 128 characters. If not specified, inherits the
      +   * project ID from the parent request.
      +   * 
      + * + * string project_id = 1; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * + * + *
      +   * The project ID that the AlloyDB source is in
      +   * with a length limit of 128 characters. If not specified, inherits the
      +   * project ID from the parent request.
      +   * 
      + * + * string project_id = 1; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
      +   * Required. The AlloyDB location to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string location_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The locationId. + */ + java.lang.String getLocationId(); + /** + * + * + *
      +   * Required. The AlloyDB location to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string location_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for locationId. + */ + com.google.protobuf.ByteString getLocationIdBytes(); + + /** + * + * + *
      +   * Required. The AlloyDB cluster to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + java.lang.String getClusterId(); + /** + * + * + *
      +   * Required. The AlloyDB cluster to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
      +   * Required. The AlloyDB database to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + java.lang.String getDatabaseId(); + /** + * + * + *
      +   * Required. The AlloyDB database to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + com.google.protobuf.ByteString getDatabaseIdBytes(); + + /** + * + * + *
      +   * Required. The AlloyDB table to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string table_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tableId. + */ + java.lang.String getTableId(); + /** + * + * + *
      +   * Required. The AlloyDB table to copy the data from with a length limit of
      +   * 256 characters.
      +   * 
      + * + * string table_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tableId. + */ + com.google.protobuf.ByteString getTableIdBytes(); + + /** + * + * + *
      +   * Intermediate Cloud Storage directory used for the import with a length
      +   * limit of 2,000 characters. Can be specified if one wants to have the
      +   * AlloyDB export to a specific Cloud Storage directory.
      +   *
      +   * Ensure that the AlloyDB service account has the necessary Cloud
      +   * Storage Admin permissions to access the specified Cloud Storage directory.
      +   * 
      + * + * string gcs_staging_dir = 6; + * + * @return The gcsStagingDir. + */ + java.lang.String getGcsStagingDir(); + /** + * + * + *
      +   * Intermediate Cloud Storage directory used for the import with a length
      +   * limit of 2,000 characters. Can be specified if one wants to have the
      +   * AlloyDB export to a specific Cloud Storage directory.
      +   *
      +   * Ensure that the AlloyDB service account has the necessary Cloud
      +   * Storage Admin permissions to access the specified Cloud Storage directory.
      +   * 
      + * + * string gcs_staging_dir = 6; + * + * @return The bytes for gcsStagingDir. + */ + com.google.protobuf.ByteString getGcsStagingDirBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Answer.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Answer.java index 2c03984bc326..a26414641785 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Answer.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Answer.java @@ -314,6 +314,19 @@ public enum AnswerSkippedReason implements com.google.protobuf.ProtocolMessageEn * POTENTIAL_POLICY_VIOLATION = 4; */ POTENTIAL_POLICY_VIOLATION(4), + /** + * + * + *
      +     * The no relevant content case.
      +     *
      +     * Google skips the answer if there is no relevant content in the
      +     * retrieved search results.
      +     * 
      + * + * NO_RELEVANT_CONTENT = 5; + */ + NO_RELEVANT_CONTENT(5), UNRECOGNIZED(-1), ; @@ -372,6 +385,19 @@ public enum AnswerSkippedReason implements com.google.protobuf.ProtocolMessageEn * POTENTIAL_POLICY_VIOLATION = 4; */ public static final int POTENTIAL_POLICY_VIOLATION_VALUE = 4; + /** + * + * + *
      +     * The no relevant content case.
      +     *
      +     * Google skips the answer if there is no relevant content in the
      +     * retrieved search results.
      +     * 
      + * + * NO_RELEVANT_CONTENT = 5; + */ + public static final int NO_RELEVANT_CONTENT_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -407,6 +433,8 @@ public static AnswerSkippedReason forNumber(int value) { return OUT_OF_DOMAIN_QUERY_IGNORED; case 4: return POTENTIAL_POLICY_VIOLATION; + case 5: + return NO_RELEVANT_CONTENT; default: return null; } @@ -11256,6 +11284,56 @@ public interface SearchResultOrBuilder com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult .ChunkInfoOrBuilder getChunkInfoOrBuilder(int index); + + /** + * + * + *
      +           * Data representation.
      +           * The structured JSON data for the document.
      +           * It's populated from the struct data from the Document
      +           * , or the Chunk in
      +           * search result
      +           * .
      +           * 
      + * + * .google.protobuf.Struct struct_data = 6; + * + * @return Whether the structData field is set. + */ + boolean hasStructData(); + /** + * + * + *
      +           * Data representation.
      +           * The structured JSON data for the document.
      +           * It's populated from the struct data from the Document
      +           * , or the Chunk in
      +           * search result
      +           * .
      +           * 
      + * + * .google.protobuf.Struct struct_data = 6; + * + * @return The structData. + */ + com.google.protobuf.Struct getStructData(); + /** + * + * + *
      +           * Data representation.
      +           * The structured JSON data for the document.
      +           * It's populated from the struct data from the Document
      +           * , or the Chunk in
      +           * search result
      +           * .
      +           * 
      + * + * .google.protobuf.Struct struct_data = 6; + */ + com.google.protobuf.StructOrBuilder getStructDataOrBuilder(); } /** * Protobuf type {@code @@ -13304,6 +13382,7 @@ public com.google.protobuf.Parser getParserForType() { } } + private int bitField0_; public static final int DOCUMENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -13655,6 +13734,71 @@ public int getChunkInfoCount() { return chunkInfo_.get(index); } + public static final int STRUCT_DATA_FIELD_NUMBER = 6; + private com.google.protobuf.Struct structData_; + /** + * + * + *
      +           * Data representation.
      +           * The structured JSON data for the document.
      +           * It's populated from the struct data from the Document
      +           * , or the Chunk in
      +           * search result
      +           * .
      +           * 
      + * + * .google.protobuf.Struct struct_data = 6; + * + * @return Whether the structData field is set. + */ + @java.lang.Override + public boolean hasStructData() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +           * Data representation.
      +           * The structured JSON data for the document.
      +           * It's populated from the struct data from the Document
      +           * , or the Chunk in
      +           * search result
      +           * .
      +           * 
      + * + * .google.protobuf.Struct struct_data = 6; + * + * @return The structData. + */ + @java.lang.Override + public com.google.protobuf.Struct getStructData() { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } + /** + * + * + *
      +           * Data representation.
      +           * The structured JSON data for the document.
      +           * It's populated from the struct data from the Document
      +           * , or the Chunk in
      +           * search result
      +           * .
      +           * 
      + * + * .google.protobuf.Struct struct_data = 6; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -13685,6 +13829,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < chunkInfo_.size(); i++) { output.writeMessage(5, chunkInfo_.get(i)); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getStructData()); + } getUnknownFields().writeTo(output); } @@ -13711,6 +13858,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, chunkInfo_.get(i)); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStructData()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -13738,6 +13888,10 @@ public boolean equals(final java.lang.Object obj) { if (!getTitle().equals(other.getTitle())) return false; if (!getSnippetInfoList().equals(other.getSnippetInfoList())) return false; if (!getChunkInfoList().equals(other.getChunkInfoList())) return false; + if (hasStructData() != other.hasStructData()) return false; + if (hasStructData()) { + if (!getStructData().equals(other.getStructData())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -13763,6 +13917,10 @@ public int hashCode() { hash = (37 * hash) + CHUNK_INFO_FIELD_NUMBER; hash = (53 * hash) + getChunkInfoList().hashCode(); } + if (hasStructData()) { + hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getStructData().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -13917,10 +14075,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.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) { + getSnippetInfoFieldBuilder(); + getChunkInfoFieldBuilder(); + getStructDataFieldBuilder(); + } } @java.lang.Override @@ -13944,6 +14113,11 @@ public Builder clear() { chunkInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); + structData_ = null; + if (structDataBuilder_ != null) { + structDataBuilder_.dispose(); + structDataBuilder_ = null; + } return this; } @@ -14025,6 +14199,13 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.title_ = title_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.structData_ = + structDataBuilder_ == null ? structData_ : structDataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -14153,6 +14334,9 @@ public Builder mergeFrom( } } } + if (other.hasStructData()) { + mergeStructData(other.getStructData()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -14231,6 +14415,13 @@ public Builder mergeFrom( } break; } // case 42 + case 50: + { + input.readMessage( + getStructDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -15502,6 +15693,236 @@ public Builder removeChunkInfo(int index) { return chunkInfoBuilder_; } + private com.google.protobuf.Struct structData_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + structDataBuilder_; + /** + * + * + *
      +             * Data representation.
      +             * The structured JSON data for the document.
      +             * It's populated from the struct data from the Document
      +             * , or the Chunk in
      +             * search result
      +             * .
      +             * 
      + * + * .google.protobuf.Struct struct_data = 6; + * + * @return Whether the structData field is set. + */ + public boolean hasStructData() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
      +             * Data representation.
      +             * The structured JSON data for the document.
      +             * It's populated from the struct data from the Document
      +             * , or the Chunk in
      +             * search result
      +             * .
      +             * 
      + * + * .google.protobuf.Struct struct_data = 6; + * + * @return The structData. + */ + public com.google.protobuf.Struct getStructData() { + if (structDataBuilder_ == null) { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } else { + return structDataBuilder_.getMessage(); + } + } + /** + * + * + *
      +             * Data representation.
      +             * The structured JSON data for the document.
      +             * It's populated from the struct data from the Document
      +             * , or the Chunk in
      +             * search result
      +             * .
      +             * 
      + * + * .google.protobuf.Struct struct_data = 6; + */ + public Builder setStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structData_ = value; + } else { + structDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
      +             * Data representation.
      +             * The structured JSON data for the document.
      +             * It's populated from the struct data from the Document
      +             * , or the Chunk in
      +             * search result
      +             * .
      +             * 
      + * + * .google.protobuf.Struct struct_data = 6; + */ + public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) { + if (structDataBuilder_ == null) { + structData_ = builderForValue.build(); + } else { + structDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
      +             * Data representation.
      +             * The structured JSON data for the document.
      +             * It's populated from the struct data from the Document
      +             * , or the Chunk in
      +             * search result
      +             * .
      +             * 
      + * + * .google.protobuf.Struct struct_data = 6; + */ + public Builder mergeStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && structData_ != null + && structData_ != com.google.protobuf.Struct.getDefaultInstance()) { + getStructDataBuilder().mergeFrom(value); + } else { + structData_ = value; + } + } else { + structDataBuilder_.mergeFrom(value); + } + if (structData_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
      +             * Data representation.
      +             * The structured JSON data for the document.
      +             * It's populated from the struct data from the Document
      +             * , or the Chunk in
      +             * search result
      +             * .
      +             * 
      + * + * .google.protobuf.Struct struct_data = 6; + */ + public Builder clearStructData() { + bitField0_ = (bitField0_ & ~0x00000020); + structData_ = null; + if (structDataBuilder_ != null) { + structDataBuilder_.dispose(); + structDataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +             * Data representation.
      +             * The structured JSON data for the document.
      +             * It's populated from the struct data from the Document
      +             * , or the Chunk in
      +             * search result
      +             * .
      +             * 
      + * + * .google.protobuf.Struct struct_data = 6; + */ + public com.google.protobuf.Struct.Builder getStructDataBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getStructDataFieldBuilder().getBuilder(); + } + /** + * + * + *
      +             * Data representation.
      +             * The structured JSON data for the document.
      +             * It's populated from the struct data from the Document
      +             * , or the Chunk in
      +             * search result
      +             * .
      +             * 
      + * + * .google.protobuf.Struct struct_data = 6; + */ + public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { + if (structDataBuilder_ != null) { + return structDataBuilder_.getMessageOrBuilder(); + } else { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } + } + /** + * + * + *
      +             * Data representation.
      +             * The structured JSON data for the document.
      +             * It's populated from the struct data from the Document
      +             * , or the Chunk in
      +             * search result
      +             * .
      +             * 
      + * + * .google.protobuf.Struct struct_data = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getStructDataFieldBuilder() { + if (structDataBuilder_ == null) { + structDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getStructData(), getParentForChildren(), isClean()); + structData_ = null; + } + return structDataBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerProto.java index 4385420ffb3d..bf5f79a41c44 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerProto.java @@ -110,7 +110,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v1beta\032\037google/api/field_behavior.proto" + "\032\031google/api/resource.proto\032\034google/prot" + "obuf/struct.proto\032\037google/protobuf/times" - + "tamp.proto\"\374\036\n\006Answer\022\021\n\004name\030\001 \001(\tB\003\340A\005" + + "tamp.proto\"\303\037\n\006Answer\022\021\n\004name\030\001 \001(\tB\003\340A\005" + "\022@\n\005state\030\002 \001(\01621.google.cloud.discovery" + "engine.v1beta.Answer.State\022\023\n\013answer_tex" + "t\030\003 \001(\t\022G\n\tcitations\030\004 \003(\01324.google.clou" @@ -156,20 +156,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013\n\003uri\030\002 \001(\t\022\r\n\005title\030\003 \001(\t\022\027\n\017page_iden" + "tifier\030\004 \001(\t\022,\n\013struct_data\030\005 \001(\0132\027.goog" + "le.protobuf.StructB\022\n\020_relevance_scoreB\t" - + "\n\007content\032\252\010\n\004Step\022E\n\005state\030\001 \001(\01626.goog" + + "\n\007content\032\330\010\n\004Step\022E\n\005state\030\001 \001(\01626.goog" + "le.cloud.discoveryengine.v1beta.Answer.S" + "tep.State\022\023\n\013description\030\002 \001(\t\022\017\n\007though" + "t\030\003 \001(\t\022H\n\007actions\030\004 \003(\01327.google.cloud." + "discoveryengine.v1beta.Answer.Step.Actio" - + "n\032\236\006\n\006Action\022]\n\rsearch_action\030\002 \001(\0132D.go" + + "n\032\314\006\n\006Action\022]\n\rsearch_action\030\002 \001(\0132D.go" + "ogle.cloud.discoveryengine.v1beta.Answer" + ".Step.Action.SearchActionH\000\022X\n\013observati" + "on\030\003 \001(\0132C.google.cloud.discoveryengine." + "v1beta.Answer.Step.Action.Observation\032\035\n" - + "\014SearchAction\022\r\n\005query\030\001 \001(\t\032\261\004\n\013Observa" + + "\014SearchAction\022\r\n\005query\030\001 \001(\t\032\337\004\n\013Observa" + "tion\022h\n\016search_results\030\002 \003(\0132P.google.cl" + "oud.discoveryengine.v1beta.Answer.Step.A" - + "ction.Observation.SearchResult\032\267\003\n\014Searc" + + "ction.Observation.SearchResult\032\345\003\n\014Searc" + "hResult\022\020\n\010document\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\r" + "\n\005title\030\003 \001(\t\022r\n\014snippet_info\030\004 \003(\0132\\.go" + "ogle.cloud.discoveryengine.v1beta.Answer" @@ -177,46 +177,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ippetInfo\022n\n\nchunk_info\030\005 \003(\0132Z.google.c" + "loud.discoveryengine.v1beta.Answer.Step." + "Action.Observation.SearchResult.ChunkInf" - + "o\0326\n\013SnippetInfo\022\017\n\007snippet\030\001 \001(\t\022\026\n\016sni" - + "ppet_status\030\002 \001(\t\032]\n\tChunkInfo\022\r\n\005chunk\030" - + "\001 \001(\t\022\017\n\007content\030\002 \001(\t\022\034\n\017relevance_scor" - + "e\030\003 \001(\002H\000\210\001\001B\022\n\020_relevance_scoreB\010\n\006acti" - + "on\"J\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013IN" - + "_PROGRESS\020\001\022\n\n\006FAILED\020\002\022\r\n\tSUCCEEDED\020\003\032\207" - + "\003\n\026QueryUnderstandingInfo\022}\n\031query_class" - + "ification_info\030\001 \003(\0132Z.google.cloud.disc" - + "overyengine.v1beta.Answer.QueryUnderstan" - + "dingInfo.QueryClassificationInfo\032\355\001\n\027Que" - + "ryClassificationInfo\022m\n\004type\030\001 \001(\0162_.goo" - + "gle.cloud.discoveryengine.v1beta.Answer." - + "QueryUnderstandingInfo.QueryClassificati" - + "onInfo.Type\022\020\n\010positive\030\002 \001(\010\"Q\n\004Type\022\024\n" - + "\020TYPE_UNSPECIFIED\020\000\022\025\n\021ADVERSARIAL_QUERY" - + "\020\001\022\034\n\030NON_ANSWER_SEEKING_QUERY\020\002\"J\n\005Stat" - + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013IN_PROGRESS\020" - + "\001\022\n\n\006FAILED\020\002\022\r\n\tSUCCEEDED\020\003\"\302\001\n\023AnswerS" - + "kippedReason\022%\n!ANSWER_SKIPPED_REASON_UN" - + "SPECIFIED\020\000\022\035\n\031ADVERSARIAL_QUERY_IGNORED" - + "\020\001\022$\n NON_ANSWER_SEEKING_QUERY_IGNORED\020\002" - + "\022\037\n\033OUT_OF_DOMAIN_QUERY_IGNORED\020\003\022\036\n\032POT" - + "ENTIAL_POLICY_VIOLATION\020\004:\205\003\352A\201\003\n%discov" - + "eryengine.googleapis.com/Answer\022cproject" - + "s/{project}/locations/{location}/dataSto" - + "res/{data_store}/sessions/{session}/answ" - + "ers/{answer}\022|projects/{project}/locatio" - + "ns/{location}/collections/{collection}/d" - + "ataStores/{data_store}/sessions/{session" - + "}/answers/{answer}\022uprojects/{project}/l" - + "ocations/{location}/collections/{collect" - + "ion}/engines/{engine}/sessions/{session}" - + "/answers/{answer}B\222\002\n\'com.google.cloud.d" - + "iscoveryengine.v1betaB\013AnswerProtoP\001ZQcl" - + "oud.google.com/go/discoveryengine/apiv1b" - + "eta/discoveryenginepb;discoveryenginepb\242" - + "\002\017DISCOVERYENGINE\252\002#Google.Cloud.Discove" - + "ryEngine.V1Beta\312\002#Google\\Cloud\\Discovery" - + "Engine\\V1beta\352\002&Google::Cloud::Discovery" - + "Engine::V1betab\006proto3" + + "o\022,\n\013struct_data\030\006 \001(\0132\027.google.protobuf" + + ".Struct\0326\n\013SnippetInfo\022\017\n\007snippet\030\001 \001(\t\022" + + "\026\n\016snippet_status\030\002 \001(\t\032]\n\tChunkInfo\022\r\n\005" + + "chunk\030\001 \001(\t\022\017\n\007content\030\002 \001(\t\022\034\n\017relevanc" + + "e_score\030\003 \001(\002H\000\210\001\001B\022\n\020_relevance_scoreB\010" + + "\n\006action\"J\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" + + "\022\017\n\013IN_PROGRESS\020\001\022\n\n\006FAILED\020\002\022\r\n\tSUCCEED" + + "ED\020\003\032\207\003\n\026QueryUnderstandingInfo\022}\n\031query" + + "_classification_info\030\001 \003(\0132Z.google.clou" + + "d.discoveryengine.v1beta.Answer.QueryUnd" + + "erstandingInfo.QueryClassificationInfo\032\355" + + "\001\n\027QueryClassificationInfo\022m\n\004type\030\001 \001(\016" + + "2_.google.cloud.discoveryengine.v1beta.A" + + "nswer.QueryUnderstandingInfo.QueryClassi" + + "ficationInfo.Type\022\020\n\010positive\030\002 \001(\010\"Q\n\004T" + + "ype\022\024\n\020TYPE_UNSPECIFIED\020\000\022\025\n\021ADVERSARIAL" + + "_QUERY\020\001\022\034\n\030NON_ANSWER_SEEKING_QUERY\020\002\"J" + + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013IN_PRO" + + "GRESS\020\001\022\n\n\006FAILED\020\002\022\r\n\tSUCCEEDED\020\003\"\333\001\n\023A" + + "nswerSkippedReason\022%\n!ANSWER_SKIPPED_REA" + + "SON_UNSPECIFIED\020\000\022\035\n\031ADVERSARIAL_QUERY_I" + + "GNORED\020\001\022$\n NON_ANSWER_SEEKING_QUERY_IGN" + + "ORED\020\002\022\037\n\033OUT_OF_DOMAIN_QUERY_IGNORED\020\003\022" + + "\036\n\032POTENTIAL_POLICY_VIOLATION\020\004\022\027\n\023NO_RE" + + "LEVANT_CONTENT\020\005:\205\003\352A\201\003\n%discoveryengine" + + ".googleapis.com/Answer\022cprojects/{projec" + + "t}/locations/{location}/dataStores/{data" + + "_store}/sessions/{session}/answers/{answ" + + "er}\022|projects/{project}/locations/{locat" + + "ion}/collections/{collection}/dataStores" + + "/{data_store}/sessions/{session}/answers" + + "/{answer}\022uprojects/{project}/locations/" + + "{location}/collections/{collection}/engi" + + "nes/{engine}/sessions/{session}/answers/" + + "{answer}B\222\002\n\'com.google.cloud.discoverye" + + "ngine.v1betaB\013AnswerProtoP\001ZQcloud.googl" + + "e.com/go/discoveryengine/apiv1beta/disco" + + "veryenginepb;discoveryenginepb\242\002\017DISCOVE" + + "RYENGINE\252\002#Google.Cloud.DiscoveryEngine." + + "V1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1" + + "beta\352\002&Google::Cloud::DiscoveryEngine::V" + + "1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -363,7 +365,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_descriptor, new java.lang.String[] { - "Document", "Uri", "Title", "SnippetInfo", "ChunkInfo", + "Document", "Uri", "Title", "SnippetInfo", "ChunkInfo", "StructData", }); internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_SnippetInfo_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_descriptor diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequest.java index 0de21ff5fc9e..a398d270a4e7 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequest.java @@ -57,6 +57,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetUserLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -4953,6 +4965,42 @@ public interface SearchParamsOrBuilder */ com.google.protobuf.ByteString getOrderByBytes(); + /** + * + * + *
      +       * Specifies the search result mode. If unspecified, the
      +       * search result mode defaults to `DOCUMENTS`.
      +       * See [parse and chunk
      +       * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @return The enum numeric value on the wire for searchResultMode. + */ + int getSearchResultModeValue(); + /** + * + * + *
      +       * Specifies the search result mode. If unspecified, the
      +       * search result mode defaults to `DOCUMENTS`.
      +       * See [parse and chunk
      +       * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @return The searchResultMode. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + getSearchResultMode(); + /** * * @@ -5058,6 +5106,7 @@ private SearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) private SearchParams() { filter_ = ""; orderBy_ = ""; + searchResultMode_ = 0; dataStoreSpecs_ = java.util.Collections.emptyList(); } @@ -5309,6 +5358,58 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } + public static final int SEARCH_RESULT_MODE_FIELD_NUMBER = 5; + private int searchResultMode_ = 0; + /** + * + * + *
      +       * Specifies the search result mode. If unspecified, the
      +       * search result mode defaults to `DOCUMENTS`.
      +       * See [parse and chunk
      +       * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @return The enum numeric value on the wire for searchResultMode. + */ + @java.lang.Override + public int getSearchResultModeValue() { + return searchResultMode_; + } + /** + * + * + *
      +       * Specifies the search result mode. If unspecified, the
      +       * search result mode defaults to `DOCUMENTS`.
      +       * See [parse and chunk
      +       * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @return The searchResultMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode + getSearchResultMode() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.forNumber(searchResultMode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.UNRECOGNIZED + : result; + } + public static final int DATA_STORE_SPECS_FIELD_NUMBER = 7; @SuppressWarnings("serial") @@ -5437,6 +5538,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); } + if (searchResultMode_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.SEARCH_RESULT_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, searchResultMode_); + } for (int i = 0; i < dataStoreSpecs_.size(); i++) { output.writeMessage(7, dataStoreSpecs_.get(i)); } @@ -5461,6 +5568,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); } + if (searchResultMode_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.SEARCH_RESULT_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, searchResultMode_); + } for (int i = 0; i < dataStoreSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, dataStoreSpecs_.get(i)); @@ -5491,6 +5604,7 @@ public boolean equals(final java.lang.Object obj) { if (!getBoostSpec().equals(other.getBoostSpec())) return false; } if (!getOrderBy().equals(other.getOrderBy())) return false; + if (searchResultMode_ != other.searchResultMode_) return false; if (!getDataStoreSpecsList().equals(other.getDataStoreSpecsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -5513,6 +5627,8 @@ public int hashCode() { } hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SEARCH_RESULT_MODE_FIELD_NUMBER; + hash = (53 * hash) + searchResultMode_; if (getDataStoreSpecsCount() > 0) { hash = (37 * hash) + DATA_STORE_SPECS_FIELD_NUMBER; hash = (53 * hash) + getDataStoreSpecsList().hashCode(); @@ -5703,13 +5819,14 @@ public Builder clear() { boostSpecBuilder_ = null; } orderBy_ = ""; + searchResultMode_ = 0; if (dataStoreSpecsBuilder_ == null) { dataStoreSpecs_ = java.util.Collections.emptyList(); } else { dataStoreSpecs_ = null; dataStoreSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -5756,9 +5873,9 @@ private void buildPartialRepeatedFields( com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams result) { if (dataStoreSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { dataStoreSpecs_ = java.util.Collections.unmodifiableList(dataStoreSpecs_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } result.dataStoreSpecs_ = dataStoreSpecs_; } else { @@ -5784,6 +5901,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000008) != 0)) { result.orderBy_ = orderBy_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.searchResultMode_ = searchResultMode_; + } result.bitField0_ |= to_bitField0_; } @@ -5858,11 +5978,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; onChanged(); } + if (other.searchResultMode_ != 0) { + setSearchResultModeValue(other.getSearchResultModeValue()); + } if (dataStoreSpecsBuilder_ == null) { if (!other.dataStoreSpecs_.isEmpty()) { if (dataStoreSpecs_.isEmpty()) { dataStoreSpecs_ = other.dataStoreSpecs_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureDataStoreSpecsIsMutable(); dataStoreSpecs_.addAll(other.dataStoreSpecs_); @@ -5875,7 +5998,7 @@ public Builder mergeFrom( dataStoreSpecsBuilder_.dispose(); dataStoreSpecsBuilder_ = null; dataStoreSpecs_ = other.dataStoreSpecs_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); dataStoreSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataStoreSpecsFieldBuilder() @@ -5935,6 +6058,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + searchResultMode_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 case 58: { com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec m = @@ -6565,16 +6694,140 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } + private int searchResultMode_ = 0; + /** + * + * + *
      +         * Specifies the search result mode. If unspecified, the
      +         * search result mode defaults to `DOCUMENTS`.
      +         * See [parse and chunk
      +         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @return The enum numeric value on the wire for searchResultMode. + */ + @java.lang.Override + public int getSearchResultModeValue() { + return searchResultMode_; + } + /** + * + * + *
      +         * Specifies the search result mode. If unspecified, the
      +         * search result mode defaults to `DOCUMENTS`.
      +         * See [parse and chunk
      +         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @param value The enum numeric value on the wire for searchResultMode to set. + * @return This builder for chaining. + */ + public Builder setSearchResultModeValue(int value) { + searchResultMode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +         * Specifies the search result mode. If unspecified, the
      +         * search result mode defaults to `DOCUMENTS`.
      +         * See [parse and chunk
      +         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @return The searchResultMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode + getSearchResultMode() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.forNumber(searchResultMode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.UNRECOGNIZED + : result; + } + /** + * + * + *
      +         * Specifies the search result mode. If unspecified, the
      +         * search result mode defaults to `DOCUMENTS`.
      +         * See [parse and chunk
      +         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @param value The searchResultMode to set. + * @return This builder for chaining. + */ + public Builder setSearchResultMode( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + searchResultMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
      +         * Specifies the search result mode. If unspecified, the
      +         * search result mode defaults to `DOCUMENTS`.
      +         * See [parse and chunk
      +         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearSearchResultMode() { + bitField0_ = (bitField0_ & ~0x00000010); + searchResultMode_ = 0; + onChanged(); + return this; + } + private java.util.List dataStoreSpecs_ = java.util.Collections.emptyList(); private void ensureDataStoreSpecsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { dataStoreSpecs_ = new java.util.ArrayList< com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec>( dataStoreSpecs_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } @@ -6857,7 +7110,7 @@ public Builder addAllDataStoreSpecs( public Builder clearDataStoreSpecs() { if (dataStoreSpecsBuilder_ == null) { dataStoreSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { dataStoreSpecsBuilder_.clear(); @@ -7027,7 +7280,7 @@ public Builder removeDataStoreSpecs(int index) { com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder>( dataStoreSpecs_, - ((bitField0_ & 0x00000010) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); dataStoreSpecs_ = null; @@ -21692,6 +21945,172 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { } } + public static final int USER_LABELS_FIELD_NUMBER = 13; + + private static final class UserLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField userLabels_; + + private com.google.protobuf.MapField internalGetUserLabels() { + if (userLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); + } + return userLabels_; + } + + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); + } + /** + * + * + *
      +   * The user labels applied to a resource must meet the following requirements:
      +   *
      +   * * Each resource can have multiple labels, up to a maximum of 64.
      +   * * Each label must be a key-value pair.
      +   * * Keys have a minimum length of 1 character and a maximum length of 63
      +   *   characters and cannot be empty. Values can be empty and have a maximum
      +   *   length of 63 characters.
      +   * * Keys and values can contain only lowercase letters, numeric characters,
      +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +   *   international characters are allowed.
      +   * * The key portion of a label must be unique. However, you can use the same
      +   *   key with multiple resources.
      +   * * Keys must start with a lowercase letter or international character.
      +   *
      +   * See [Google Cloud
      +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +   * for more details.
      +   * 
      + * + * map<string, string> user_labels = 13; + */ + @java.lang.Override + public boolean containsUserLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetUserLabels().getMap().containsKey(key); + } + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserLabels() { + return getUserLabelsMap(); + } + /** + * + * + *
      +   * The user labels applied to a resource must meet the following requirements:
      +   *
      +   * * Each resource can have multiple labels, up to a maximum of 64.
      +   * * Each label must be a key-value pair.
      +   * * Keys have a minimum length of 1 character and a maximum length of 63
      +   *   characters and cannot be empty. Values can be empty and have a maximum
      +   *   length of 63 characters.
      +   * * Keys and values can contain only lowercase letters, numeric characters,
      +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +   *   international characters are allowed.
      +   * * The key portion of a label must be unique. However, you can use the same
      +   *   key with multiple resources.
      +   * * Keys must start with a lowercase letter or international character.
      +   *
      +   * See [Google Cloud
      +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +   * for more details.
      +   * 
      + * + * map<string, string> user_labels = 13; + */ + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); + } + /** + * + * + *
      +   * The user labels applied to a resource must meet the following requirements:
      +   *
      +   * * Each resource can have multiple labels, up to a maximum of 64.
      +   * * Each label must be a key-value pair.
      +   * * Keys have a minimum length of 1 character and a maximum length of 63
      +   *   characters and cannot be empty. Values can be empty and have a maximum
      +   *   length of 63 characters.
      +   * * Keys and values can contain only lowercase letters, numeric characters,
      +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +   *   international characters are allowed.
      +   * * The key portion of a label must be unique. However, you can use the same
      +   *   key with multiple resources.
      +   * * Keys must start with a lowercase letter or international character.
      +   *
      +   * See [Google Cloud
      +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +   * for more details.
      +   * 
      + * + * map<string, string> user_labels = 13; + */ + @java.lang.Override + public /* nullable */ java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
      +   * The user labels applied to a resource must meet the following requirements:
      +   *
      +   * * Each resource can have multiple labels, up to a maximum of 64.
      +   * * Each label must be a key-value pair.
      +   * * Keys have a minimum length of 1 character and a maximum length of 63
      +   *   characters and cannot be empty. Values can be empty and have a maximum
      +   *   length of 63 characters.
      +   * * Keys and values can contain only lowercase letters, numeric characters,
      +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +   *   international characters are allowed.
      +   * * The key portion of a label must be unique. However, you can use the same
      +   *   key with multiple resources.
      +   * * Keys must start with a lowercase letter or international character.
      +   *
      +   * See [Google Cloud
      +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +   * for more details.
      +   * 
      + * + * map<string, string> user_labels = 13; + */ + @java.lang.Override + public java.lang.String getUserLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -21736,6 +22155,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, userPseudoId_); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 13); getUnknownFields().writeTo(output); } @@ -21778,6 +22199,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, userPseudoId_); } + for (java.util.Map.Entry entry : + internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry userLabels__ = + UserLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, userLabels__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -21822,6 +22253,7 @@ public boolean equals(final java.lang.Object obj) { } if (getAsynchronousMode() != other.getAsynchronousMode()) return false; if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; + if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -21865,6 +22297,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAsynchronousMode()); hash = (37 * hash) + USER_PSEUDO_ID_FIELD_NUMBER; hash = (53 * hash) + getUserPseudoId().hashCode(); + if (!internalGetUserLabels().getMap().isEmpty()) { + hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetUserLabels().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -21986,6 +22422,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetUserLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetMutableUserLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -22055,6 +22513,7 @@ public Builder clear() { } asynchronousMode_ = false; userPseudoId_ = ""; + internalGetMutableUserLabels().clear(); return this; } @@ -22137,6 +22596,10 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.AnswerQueryRe if (((from_bitField0_ & 0x00000200) != 0)) { result.userPseudoId_ = userPseudoId_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.userLabels_ = internalGetUserLabels(); + result.userLabels_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -22222,6 +22685,8 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.AnswerQueryRequ bitField0_ |= 0x00000200; onChanged(); } + internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); + bitField0_ |= 0x00000400; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -22311,6 +22776,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 98 + case 106: + { + com.google.protobuf.MapEntry userLabels__ = + input.readMessage( + UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableUserLabels() + .getMutableMap() + .put(userLabels__.getKey(), userLabels__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -24096,6 +24573,284 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.MapField userLabels_; + + private com.google.protobuf.MapField + internalGetUserLabels() { + if (userLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + } + return userLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableUserLabels() { + if (userLabels_ == null) { + userLabels_ = + com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); + } + if (!userLabels_.isMutable()) { + userLabels_ = userLabels_.copy(); + } + bitField0_ |= 0x00000400; + onChanged(); + return userLabels_; + } + + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); + } + /** + * + * + *
      +     * The user labels applied to a resource must meet the following requirements:
      +     *
      +     * * Each resource can have multiple labels, up to a maximum of 64.
      +     * * Each label must be a key-value pair.
      +     * * Keys have a minimum length of 1 character and a maximum length of 63
      +     *   characters and cannot be empty. Values can be empty and have a maximum
      +     *   length of 63 characters.
      +     * * Keys and values can contain only lowercase letters, numeric characters,
      +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +     *   international characters are allowed.
      +     * * The key portion of a label must be unique. However, you can use the same
      +     *   key with multiple resources.
      +     * * Keys must start with a lowercase letter or international character.
      +     *
      +     * See [Google Cloud
      +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +     * for more details.
      +     * 
      + * + * map<string, string> user_labels = 13; + */ + @java.lang.Override + public boolean containsUserLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetUserLabels().getMap().containsKey(key); + } + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserLabels() { + return getUserLabelsMap(); + } + /** + * + * + *
      +     * The user labels applied to a resource must meet the following requirements:
      +     *
      +     * * Each resource can have multiple labels, up to a maximum of 64.
      +     * * Each label must be a key-value pair.
      +     * * Keys have a minimum length of 1 character and a maximum length of 63
      +     *   characters and cannot be empty. Values can be empty and have a maximum
      +     *   length of 63 characters.
      +     * * Keys and values can contain only lowercase letters, numeric characters,
      +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +     *   international characters are allowed.
      +     * * The key portion of a label must be unique. However, you can use the same
      +     *   key with multiple resources.
      +     * * Keys must start with a lowercase letter or international character.
      +     *
      +     * See [Google Cloud
      +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +     * for more details.
      +     * 
      + * + * map<string, string> user_labels = 13; + */ + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); + } + /** + * + * + *
      +     * The user labels applied to a resource must meet the following requirements:
      +     *
      +     * * Each resource can have multiple labels, up to a maximum of 64.
      +     * * Each label must be a key-value pair.
      +     * * Keys have a minimum length of 1 character and a maximum length of 63
      +     *   characters and cannot be empty. Values can be empty and have a maximum
      +     *   length of 63 characters.
      +     * * Keys and values can contain only lowercase letters, numeric characters,
      +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +     *   international characters are allowed.
      +     * * The key portion of a label must be unique. However, you can use the same
      +     *   key with multiple resources.
      +     * * Keys must start with a lowercase letter or international character.
      +     *
      +     * See [Google Cloud
      +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +     * for more details.
      +     * 
      + * + * map<string, string> user_labels = 13; + */ + @java.lang.Override + public /* nullable */ java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
      +     * The user labels applied to a resource must meet the following requirements:
      +     *
      +     * * Each resource can have multiple labels, up to a maximum of 64.
      +     * * Each label must be a key-value pair.
      +     * * Keys have a minimum length of 1 character and a maximum length of 63
      +     *   characters and cannot be empty. Values can be empty and have a maximum
      +     *   length of 63 characters.
      +     * * Keys and values can contain only lowercase letters, numeric characters,
      +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +     *   international characters are allowed.
      +     * * The key portion of a label must be unique. However, you can use the same
      +     *   key with multiple resources.
      +     * * Keys must start with a lowercase letter or international character.
      +     *
      +     * See [Google Cloud
      +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +     * for more details.
      +     * 
      + * + * map<string, string> user_labels = 13; + */ + @java.lang.Override + public java.lang.String getUserLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearUserLabels() { + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableUserLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
      +     * The user labels applied to a resource must meet the following requirements:
      +     *
      +     * * Each resource can have multiple labels, up to a maximum of 64.
      +     * * Each label must be a key-value pair.
      +     * * Keys have a minimum length of 1 character and a maximum length of 63
      +     *   characters and cannot be empty. Values can be empty and have a maximum
      +     *   length of 63 characters.
      +     * * Keys and values can contain only lowercase letters, numeric characters,
      +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +     *   international characters are allowed.
      +     * * The key portion of a label must be unique. However, you can use the same
      +     *   key with multiple resources.
      +     * * Keys must start with a lowercase letter or international character.
      +     *
      +     * See [Google Cloud
      +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +     * for more details.
      +     * 
      + * + * map<string, string> user_labels = 13; + */ + public Builder removeUserLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableUserLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableUserLabels() { + bitField0_ |= 0x00000400; + return internalGetMutableUserLabels().getMutableMap(); + } + /** + * + * + *
      +     * The user labels applied to a resource must meet the following requirements:
      +     *
      +     * * Each resource can have multiple labels, up to a maximum of 64.
      +     * * Each label must be a key-value pair.
      +     * * Keys have a minimum length of 1 character and a maximum length of 63
      +     *   characters and cannot be empty. Values can be empty and have a maximum
      +     *   length of 63 characters.
      +     * * Keys and values can contain only lowercase letters, numeric characters,
      +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +     *   international characters are allowed.
      +     * * The key portion of a label must be unique. However, you can use the same
      +     *   key with multiple resources.
      +     * * Keys must start with a lowercase letter or international character.
      +     *
      +     * See [Google Cloud
      +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +     * for more details.
      +     * 
      + * + * map<string, string> user_labels = 13; + */ + public Builder putUserLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableUserLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000400; + return this; + } + /** + * + * + *
      +     * The user labels applied to a resource must meet the following requirements:
      +     *
      +     * * Each resource can have multiple labels, up to a maximum of 64.
      +     * * Each label must be a key-value pair.
      +     * * Keys have a minimum length of 1 character and a maximum length of 63
      +     *   characters and cannot be empty. Values can be empty and have a maximum
      +     *   length of 63 characters.
      +     * * Keys and values can contain only lowercase letters, numeric characters,
      +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +     *   international characters are allowed.
      +     * * The key portion of a label must be unique. However, you can use the same
      +     *   key with multiple resources.
      +     * * Keys must start with a lowercase letter or international character.
      +     *
      +     * See [Google Cloud
      +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +     * for more details.
      +     * 
      + * + * map<string, string> user_labels = 13; + */ + public Builder putAllUserLabels(java.util.Map values) { + internalGetMutableUserLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000400; + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequestOrBuilder.java index 94d465f788f3..b2f061722d46 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequestOrBuilder.java @@ -407,4 +407,142 @@ public interface AnswerQueryRequestOrBuilder * @return The bytes for userPseudoId. */ com.google.protobuf.ByteString getUserPseudoIdBytes(); + + /** + * + * + *
      +   * The user labels applied to a resource must meet the following requirements:
      +   *
      +   * * Each resource can have multiple labels, up to a maximum of 64.
      +   * * Each label must be a key-value pair.
      +   * * Keys have a minimum length of 1 character and a maximum length of 63
      +   *   characters and cannot be empty. Values can be empty and have a maximum
      +   *   length of 63 characters.
      +   * * Keys and values can contain only lowercase letters, numeric characters,
      +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +   *   international characters are allowed.
      +   * * The key portion of a label must be unique. However, you can use the same
      +   *   key with multiple resources.
      +   * * Keys must start with a lowercase letter or international character.
      +   *
      +   * See [Google Cloud
      +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +   * for more details.
      +   * 
      + * + * map<string, string> user_labels = 13; + */ + int getUserLabelsCount(); + /** + * + * + *
      +   * The user labels applied to a resource must meet the following requirements:
      +   *
      +   * * Each resource can have multiple labels, up to a maximum of 64.
      +   * * Each label must be a key-value pair.
      +   * * Keys have a minimum length of 1 character and a maximum length of 63
      +   *   characters and cannot be empty. Values can be empty and have a maximum
      +   *   length of 63 characters.
      +   * * Keys and values can contain only lowercase letters, numeric characters,
      +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +   *   international characters are allowed.
      +   * * The key portion of a label must be unique. However, you can use the same
      +   *   key with multiple resources.
      +   * * Keys must start with a lowercase letter or international character.
      +   *
      +   * See [Google Cloud
      +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +   * for more details.
      +   * 
      + * + * map<string, string> user_labels = 13; + */ + boolean containsUserLabels(java.lang.String key); + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getUserLabels(); + /** + * + * + *
      +   * The user labels applied to a resource must meet the following requirements:
      +   *
      +   * * Each resource can have multiple labels, up to a maximum of 64.
      +   * * Each label must be a key-value pair.
      +   * * Keys have a minimum length of 1 character and a maximum length of 63
      +   *   characters and cannot be empty. Values can be empty and have a maximum
      +   *   length of 63 characters.
      +   * * Keys and values can contain only lowercase letters, numeric characters,
      +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +   *   international characters are allowed.
      +   * * The key portion of a label must be unique. However, you can use the same
      +   *   key with multiple resources.
      +   * * Keys must start with a lowercase letter or international character.
      +   *
      +   * See [Google Cloud
      +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +   * for more details.
      +   * 
      + * + * map<string, string> user_labels = 13; + */ + java.util.Map getUserLabelsMap(); + /** + * + * + *
      +   * The user labels applied to a resource must meet the following requirements:
      +   *
      +   * * Each resource can have multiple labels, up to a maximum of 64.
      +   * * Each label must be a key-value pair.
      +   * * Keys have a minimum length of 1 character and a maximum length of 63
      +   *   characters and cannot be empty. Values can be empty and have a maximum
      +   *   length of 63 characters.
      +   * * Keys and values can contain only lowercase letters, numeric characters,
      +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +   *   international characters are allowed.
      +   * * The key portion of a label must be unique. However, you can use the same
      +   *   key with multiple resources.
      +   * * Keys must start with a lowercase letter or international character.
      +   *
      +   * See [Google Cloud
      +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +   * for more details.
      +   * 
      + * + * map<string, string> user_labels = 13; + */ + /* nullable */ + java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
      +   * The user labels applied to a resource must meet the following requirements:
      +   *
      +   * * Each resource can have multiple labels, up to a maximum of 64.
      +   * * Each label must be a key-value pair.
      +   * * Keys have a minimum length of 1 character and a maximum length of 63
      +   *   characters and cannot be empty. Values can be empty and have a maximum
      +   *   length of 63 characters.
      +   * * Keys and values can contain only lowercase letters, numeric characters,
      +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
      +   *   international characters are allowed.
      +   * * The key portion of a label must be unique. However, you can use the same
      +   *   key with multiple resources.
      +   * * Keys must start with a lowercase letter or international character.
      +   *
      +   * See [Google Cloud
      +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
      +   * for more details.
      +   * 
      + * + * map<string, string> user_labels = 13; + */ + java.lang.String getUserLabelsOrThrow(java.lang.String key); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryResponse.java index 3f32275371bc..285a0f5f1498 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryResponse.java @@ -73,8 +73,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Answer resource object.
      -   * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -   * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +   * If
      +   * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +   * is greater than 1, use
      +   * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
          * answer information using
          * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
          * API.
      @@ -93,8 +95,10 @@ public boolean hasAnswer() {
          *
          * 
          * Answer resource object.
      -   * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -   * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +   * If
      +   * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +   * is greater than 1, use
      +   * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
          * answer information using
          * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
          * API.
      @@ -115,8 +119,10 @@ public com.google.cloud.discoveryengine.v1beta.Answer getAnswer() {
          *
          * 
          * Answer resource object.
      -   * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -   * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +   * If
      +   * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +   * is greater than 1, use
      +   * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
          * answer information using
          * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
          * API.
      @@ -673,8 +679,10 @@ public Builder mergeFrom(
            *
            * 
            * Answer resource object.
      -     * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -     * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +     * If
      +     * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +     * is greater than 1, use
      +     * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
            * answer information using
            * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
            * API.
      @@ -692,8 +700,10 @@ public boolean hasAnswer() {
            *
            * 
            * Answer resource object.
      -     * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -     * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +     * If
      +     * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +     * is greater than 1, use
      +     * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
            * answer information using
            * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
            * API.
      @@ -717,8 +727,10 @@ public com.google.cloud.discoveryengine.v1beta.Answer getAnswer() {
            *
            * 
            * Answer resource object.
      -     * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -     * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +     * If
      +     * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +     * is greater than 1, use
      +     * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
            * answer information using
            * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
            * API.
      @@ -744,8 +756,10 @@ public Builder setAnswer(com.google.cloud.discoveryengine.v1beta.Answer value) {
            *
            * 
            * Answer resource object.
      -     * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -     * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +     * If
      +     * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +     * is greater than 1, use
      +     * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
            * answer information using
            * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
            * API.
      @@ -769,8 +783,10 @@ public Builder setAnswer(
            *
            * 
            * Answer resource object.
      -     * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -     * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +     * If
      +     * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +     * is greater than 1, use
      +     * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
            * answer information using
            * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
            * API.
      @@ -801,8 +817,10 @@ public Builder mergeAnswer(com.google.cloud.discoveryengine.v1beta.Answer value)
            *
            * 
            * Answer resource object.
      -     * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -     * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +     * If
      +     * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +     * is greater than 1, use
      +     * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
            * answer information using
            * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
            * API.
      @@ -825,8 +843,10 @@ public Builder clearAnswer() {
            *
            * 
            * Answer resource object.
      -     * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -     * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +     * If
      +     * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +     * is greater than 1, use
      +     * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
            * answer information using
            * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
            * API.
      @@ -844,8 +864,10 @@ public com.google.cloud.discoveryengine.v1beta.Answer.Builder getAnswerBuilder()
            *
            * 
            * Answer resource object.
      -     * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -     * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +     * If
      +     * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +     * is greater than 1, use
      +     * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
            * answer information using
            * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
            * API.
      @@ -867,8 +889,10 @@ public com.google.cloud.discoveryengine.v1beta.AnswerOrBuilder getAnswerOrBuilde
            *
            * 
            * Answer resource object.
      -     * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -     * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +     * If
      +     * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +     * is greater than 1, use
      +     * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
            * answer information using
            * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
            * API.
      diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryResponseOrBuilder.java
      index 18904e1ddd8f..d96943b2540f 100644
      --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryResponseOrBuilder.java
      +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryResponseOrBuilder.java
      @@ -29,8 +29,10 @@ public interface AnswerQueryResponseOrBuilder
          *
          * 
          * Answer resource object.
      -   * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -   * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +   * If
      +   * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +   * is greater than 1, use
      +   * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
          * answer information using
          * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
          * API.
      @@ -46,8 +48,10 @@ public interface AnswerQueryResponseOrBuilder
          *
          * 
          * Answer resource object.
      -   * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -   * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +   * If
      +   * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +   * is greater than 1, use
      +   * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
          * answer information using
          * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
          * API.
      @@ -63,8 +67,10 @@ public interface AnswerQueryResponseOrBuilder
          *
          * 
          * Answer resource object.
      -   * If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
      -   * use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
      +   * If
      +   * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
      +   * is greater than 1, use
      +   * [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
          * answer information using
          * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
          * API.
      diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Chunk.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Chunk.java
      new file mode 100644
      index 000000000000..a65a89892a3d
      --- /dev/null
      +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Chunk.java
      @@ -0,0 +1,5987 @@
      +/*
      + * Copyright 2024 Google LLC
      + *
      + * Licensed under the Apache License, Version 2.0 (the "License");
      + * you may not use this file except in compliance with the License.
      + * You may obtain a copy of the License at
      + *
      + *     https://www.apache.org/licenses/LICENSE-2.0
      + *
      + * Unless required by applicable law or agreed to in writing, software
      + * distributed under the License is distributed on an "AS IS" BASIS,
      + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      + * See the License for the specific language governing permissions and
      + * limitations under the License.
      + */
      +// Generated by the protocol buffer compiler.  DO NOT EDIT!
      +// source: google/cloud/discoveryengine/v1beta/chunk.proto
      +
      +// Protobuf Java Version: 3.25.3
      +package com.google.cloud.discoveryengine.v1beta;
      +
      +/**
      + *
      + *
      + * 
      + * Chunk captures all raw metadata information of items to be recommended or
      + * searched in the chunk mode.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Chunk} + */ +public final class Chunk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Chunk) + ChunkOrBuilder { + private static final long serialVersionUID = 0L; + // Use Chunk.newBuilder() to construct. + private Chunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Chunk() { + name_ = ""; + id_ = ""; + content_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Chunk(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Chunk.class, + com.google.cloud.discoveryengine.v1beta.Chunk.Builder.class); + } + + public interface DocumentMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Uri of the document.
      +     * 
      + * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
      +     * Uri of the document.
      +     * 
      + * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
      +     * Title of the document.
      +     * 
      + * + * string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + /** + * + * + *
      +     * Title of the document.
      +     * 
      + * + * string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
      +     * Data representation.
      +     * The structured JSON data for the document. It should conform to the
      +     * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +     * `INVALID_ARGUMENT` error is thrown.
      +     * 
      + * + * .google.protobuf.Struct struct_data = 3; + * + * @return Whether the structData field is set. + */ + boolean hasStructData(); + /** + * + * + *
      +     * Data representation.
      +     * The structured JSON data for the document. It should conform to the
      +     * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +     * `INVALID_ARGUMENT` error is thrown.
      +     * 
      + * + * .google.protobuf.Struct struct_data = 3; + * + * @return The structData. + */ + com.google.protobuf.Struct getStructData(); + /** + * + * + *
      +     * Data representation.
      +     * The structured JSON data for the document. It should conform to the
      +     * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +     * `INVALID_ARGUMENT` error is thrown.
      +     * 
      + * + * .google.protobuf.Struct struct_data = 3; + */ + com.google.protobuf.StructOrBuilder getStructDataOrBuilder(); + } + /** + * + * + *
      +   * Document metadata contains the information of the document of the current
      +   * chunk.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata} + */ + public static final class DocumentMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata) + DocumentMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DocumentMetadata.newBuilder() to construct. + private DocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DocumentMetadata() { + uri_ = ""; + title_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DocumentMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_DocumentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_DocumentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.class, + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder.class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
      +     * Uri of the document.
      +     * 
      + * + * string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
      +     * Uri of the document.
      +     * 
      + * + * string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + /** + * + * + *
      +     * Title of the document.
      +     * 
      + * + * string title = 2; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + /** + * + * + *
      +     * Title of the document.
      +     * 
      + * + * string title = 2; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRUCT_DATA_FIELD_NUMBER = 3; + private com.google.protobuf.Struct structData_; + /** + * + * + *
      +     * Data representation.
      +     * The structured JSON data for the document. It should conform to the
      +     * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +     * `INVALID_ARGUMENT` error is thrown.
      +     * 
      + * + * .google.protobuf.Struct struct_data = 3; + * + * @return Whether the structData field is set. + */ + @java.lang.Override + public boolean hasStructData() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * Data representation.
      +     * The structured JSON data for the document. It should conform to the
      +     * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +     * `INVALID_ARGUMENT` error is thrown.
      +     * 
      + * + * .google.protobuf.Struct struct_data = 3; + * + * @return The structData. + */ + @java.lang.Override + public com.google.protobuf.Struct getStructData() { + return structData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : structData_; + } + /** + * + * + *
      +     * Data representation.
      +     * The structured JSON data for the document. It should conform to the
      +     * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +     * `INVALID_ARGUMENT` error is thrown.
      +     * 
      + * + * .google.protobuf.Struct struct_data = 3; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { + return structData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : structData_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStructData()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStructData()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata other = + (com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (hasStructData() != other.hasStructData()) return false; + if (hasStructData()) { + if (!getStructData().equals(other.getStructData())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + if (hasStructData()) { + hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getStructData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Document metadata contains the information of the document of the current
      +     * chunk.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata) + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_DocumentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_DocumentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.class, + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStructDataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + title_ = ""; + structData_ = null; + if (structDataBuilder_ != null) { + structDataBuilder_.dispose(); + structDataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_DocumentMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata build() { + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata buildPartial() { + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata result = + new com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.structData_ = + structDataBuilder_ == null ? structData_ : structDataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.getDefaultInstance()) + return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasStructData()) { + mergeStructData(other.getStructData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getStructDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + * + * + *
      +       * Uri of the document.
      +       * 
      + * + * string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +       * Uri of the document.
      +       * 
      + * + * string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +       * Uri of the document.
      +       * 
      + * + * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * Uri of the document.
      +       * 
      + * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +       * Uri of the document.
      +       * 
      + * + * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
      +       * Title of the document.
      +       * 
      + * + * string title = 2; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +       * Title of the document.
      +       * 
      + * + * string title = 2; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +       * Title of the document.
      +       * 
      + * + * string title = 2; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * Title of the document.
      +       * 
      + * + * string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +       * Title of the document.
      +       * 
      + * + * string title = 2; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Struct structData_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + structDataBuilder_; + /** + * + * + *
      +       * Data representation.
      +       * The structured JSON data for the document. It should conform to the
      +       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +       * `INVALID_ARGUMENT` error is thrown.
      +       * 
      + * + * .google.protobuf.Struct struct_data = 3; + * + * @return Whether the structData field is set. + */ + public boolean hasStructData() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +       * Data representation.
      +       * The structured JSON data for the document. It should conform to the
      +       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +       * `INVALID_ARGUMENT` error is thrown.
      +       * 
      + * + * .google.protobuf.Struct struct_data = 3; + * + * @return The structData. + */ + public com.google.protobuf.Struct getStructData() { + if (structDataBuilder_ == null) { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } else { + return structDataBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * Data representation.
      +       * The structured JSON data for the document. It should conform to the
      +       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +       * `INVALID_ARGUMENT` error is thrown.
      +       * 
      + * + * .google.protobuf.Struct struct_data = 3; + */ + public Builder setStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structData_ = value; + } else { + structDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +       * Data representation.
      +       * The structured JSON data for the document. It should conform to the
      +       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +       * `INVALID_ARGUMENT` error is thrown.
      +       * 
      + * + * .google.protobuf.Struct struct_data = 3; + */ + public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) { + if (structDataBuilder_ == null) { + structData_ = builderForValue.build(); + } else { + structDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +       * Data representation.
      +       * The structured JSON data for the document. It should conform to the
      +       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +       * `INVALID_ARGUMENT` error is thrown.
      +       * 
      + * + * .google.protobuf.Struct struct_data = 3; + */ + public Builder mergeStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && structData_ != null + && structData_ != com.google.protobuf.Struct.getDefaultInstance()) { + getStructDataBuilder().mergeFrom(value); + } else { + structData_ = value; + } + } else { + structDataBuilder_.mergeFrom(value); + } + if (structData_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * Data representation.
      +       * The structured JSON data for the document. It should conform to the
      +       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +       * `INVALID_ARGUMENT` error is thrown.
      +       * 
      + * + * .google.protobuf.Struct struct_data = 3; + */ + public Builder clearStructData() { + bitField0_ = (bitField0_ & ~0x00000004); + structData_ = null; + if (structDataBuilder_ != null) { + structDataBuilder_.dispose(); + structDataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * Data representation.
      +       * The structured JSON data for the document. It should conform to the
      +       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +       * `INVALID_ARGUMENT` error is thrown.
      +       * 
      + * + * .google.protobuf.Struct struct_data = 3; + */ + public com.google.protobuf.Struct.Builder getStructDataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStructDataFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * Data representation.
      +       * The structured JSON data for the document. It should conform to the
      +       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +       * `INVALID_ARGUMENT` error is thrown.
      +       * 
      + * + * .google.protobuf.Struct struct_data = 3; + */ + public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { + if (structDataBuilder_ != null) { + return structDataBuilder_.getMessageOrBuilder(); + } else { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } + } + /** + * + * + *
      +       * Data representation.
      +       * The structured JSON data for the document. It should conform to the
      +       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
      +       * `INVALID_ARGUMENT` error is thrown.
      +       * 
      + * + * .google.protobuf.Struct struct_data = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getStructDataFieldBuilder() { + if (structDataBuilder_ == null) { + structDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getStructData(), getParentForChildren(), isClean()); + structData_ = null; + } + return structDataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata) + private static final com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PageSpanOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Chunk.PageSpan) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * The start page of the chunk.
      +     * 
      + * + * int32 page_start = 1; + * + * @return The pageStart. + */ + int getPageStart(); + + /** + * + * + *
      +     * The end page of the chunk.
      +     * 
      + * + * int32 page_end = 2; + * + * @return The pageEnd. + */ + int getPageEnd(); + } + /** + * + * + *
      +   * Page span of the chunk.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Chunk.PageSpan} + */ + public static final class PageSpan extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Chunk.PageSpan) + PageSpanOrBuilder { + private static final long serialVersionUID = 0L; + // Use PageSpan.newBuilder() to construct. + private PageSpan(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PageSpan() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PageSpan(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_PageSpan_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_PageSpan_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.class, + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder.class); + } + + public static final int PAGE_START_FIELD_NUMBER = 1; + private int pageStart_ = 0; + /** + * + * + *
      +     * The start page of the chunk.
      +     * 
      + * + * int32 page_start = 1; + * + * @return The pageStart. + */ + @java.lang.Override + public int getPageStart() { + return pageStart_; + } + + public static final int PAGE_END_FIELD_NUMBER = 2; + private int pageEnd_ = 0; + /** + * + * + *
      +     * The end page of the chunk.
      +     * 
      + * + * int32 page_end = 2; + * + * @return The pageEnd. + */ + @java.lang.Override + public int getPageEnd() { + return pageEnd_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (pageStart_ != 0) { + output.writeInt32(1, pageStart_); + } + if (pageEnd_ != 0) { + output.writeInt32(2, pageEnd_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageStart_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageStart_); + } + if (pageEnd_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageEnd_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan other = + (com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan) obj; + + if (getPageStart() != other.getPageStart()) return false; + if (getPageEnd() != other.getPageEnd()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAGE_START_FIELD_NUMBER; + hash = (53 * hash) + getPageStart(); + hash = (37 * hash) + PAGE_END_FIELD_NUMBER; + hash = (53 * hash) + getPageEnd(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Page span of the chunk.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Chunk.PageSpan} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Chunk.PageSpan) + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_PageSpan_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_PageSpan_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.class, + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageStart_ = 0; + pageEnd_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_PageSpan_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan build() { + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan buildPartial() { + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan result = + new com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageStart_ = pageStart_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageEnd_ = pageEnd_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan other) { + if (other == com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance()) + return this; + if (other.getPageStart() != 0) { + setPageStart(other.getPageStart()); + } + if (other.getPageEnd() != 0) { + setPageEnd(other.getPageEnd()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + pageStart_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + pageEnd_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int pageStart_; + /** + * + * + *
      +       * The start page of the chunk.
      +       * 
      + * + * int32 page_start = 1; + * + * @return The pageStart. + */ + @java.lang.Override + public int getPageStart() { + return pageStart_; + } + /** + * + * + *
      +       * The start page of the chunk.
      +       * 
      + * + * int32 page_start = 1; + * + * @param value The pageStart to set. + * @return This builder for chaining. + */ + public Builder setPageStart(int value) { + + pageStart_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * The start page of the chunk.
      +       * 
      + * + * int32 page_start = 1; + * + * @return This builder for chaining. + */ + public Builder clearPageStart() { + bitField0_ = (bitField0_ & ~0x00000001); + pageStart_ = 0; + onChanged(); + return this; + } + + private int pageEnd_; + /** + * + * + *
      +       * The end page of the chunk.
      +       * 
      + * + * int32 page_end = 2; + * + * @return The pageEnd. + */ + @java.lang.Override + public int getPageEnd() { + return pageEnd_; + } + /** + * + * + *
      +       * The end page of the chunk.
      +       * 
      + * + * int32 page_end = 2; + * + * @param value The pageEnd to set. + * @return This builder for chaining. + */ + public Builder setPageEnd(int value) { + + pageEnd_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * The end page of the chunk.
      +       * 
      + * + * int32 page_end = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageEnd() { + bitField0_ = (bitField0_ & ~0x00000002); + pageEnd_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Chunk.PageSpan) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Chunk.PageSpan) + private static final com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan(); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PageSpan parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ChunkMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * The previous chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + java.util.List getPreviousChunksList(); + /** + * + * + *
      +     * The previous chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + com.google.cloud.discoveryengine.v1beta.Chunk getPreviousChunks(int index); + /** + * + * + *
      +     * The previous chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + int getPreviousChunksCount(); + /** + * + * + *
      +     * The previous chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + java.util.List + getPreviousChunksOrBuilderList(); + /** + * + * + *
      +     * The previous chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder getPreviousChunksOrBuilder(int index); + + /** + * + * + *
      +     * The next chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + java.util.List getNextChunksList(); + /** + * + * + *
      +     * The next chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + com.google.cloud.discoveryengine.v1beta.Chunk getNextChunks(int index); + /** + * + * + *
      +     * The next chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + int getNextChunksCount(); + /** + * + * + *
      +     * The next chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + java.util.List + getNextChunksOrBuilderList(); + /** + * + * + *
      +     * The next chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder getNextChunksOrBuilder(int index); + } + /** + * + * + *
      +   * Metadata of the current chunk. This field is only populated on
      +   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +   * API.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata} + */ + public static final class ChunkMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata) + ChunkMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChunkMetadata.newBuilder() to construct. + private ChunkMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChunkMetadata() { + previousChunks_ = java.util.Collections.emptyList(); + nextChunks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChunkMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_ChunkMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_ChunkMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.class, + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder.class); + } + + public static final int PREVIOUS_CHUNKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List previousChunks_; + /** + * + * + *
      +     * The previous chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + @java.lang.Override + public java.util.List getPreviousChunksList() { + return previousChunks_; + } + /** + * + * + *
      +     * The previous chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + @java.lang.Override + public java.util.List + getPreviousChunksOrBuilderList() { + return previousChunks_; + } + /** + * + * + *
      +     * The previous chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + @java.lang.Override + public int getPreviousChunksCount() { + return previousChunks_.size(); + } + /** + * + * + *
      +     * The previous chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk getPreviousChunks(int index) { + return previousChunks_.get(index); + } + /** + * + * + *
      +     * The previous chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder getPreviousChunksOrBuilder( + int index) { + return previousChunks_.get(index); + } + + public static final int NEXT_CHUNKS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List nextChunks_; + /** + * + * + *
      +     * The next chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + @java.lang.Override + public java.util.List getNextChunksList() { + return nextChunks_; + } + /** + * + * + *
      +     * The next chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + @java.lang.Override + public java.util.List + getNextChunksOrBuilderList() { + return nextChunks_; + } + /** + * + * + *
      +     * The next chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + @java.lang.Override + public int getNextChunksCount() { + return nextChunks_.size(); + } + /** + * + * + *
      +     * The next chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk getNextChunks(int index) { + return nextChunks_.get(index); + } + /** + * + * + *
      +     * The next chunks of the current chunk. The number is controlled by
      +     * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +     * This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder getNextChunksOrBuilder( + int index) { + return nextChunks_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < previousChunks_.size(); i++) { + output.writeMessage(1, previousChunks_.get(i)); + } + for (int i = 0; i < nextChunks_.size(); i++) { + output.writeMessage(2, nextChunks_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < previousChunks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, previousChunks_.get(i)); + } + for (int i = 0; i < nextChunks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, nextChunks_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata other = + (com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata) obj; + + if (!getPreviousChunksList().equals(other.getPreviousChunksList())) return false; + if (!getNextChunksList().equals(other.getNextChunksList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPreviousChunksCount() > 0) { + hash = (37 * hash) + PREVIOUS_CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + getPreviousChunksList().hashCode(); + } + if (getNextChunksCount() > 0) { + hash = (37 * hash) + NEXT_CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + getNextChunksList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Metadata of the current chunk. This field is only populated on
      +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +     * API.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata) + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_ChunkMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_ChunkMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.class, + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (previousChunksBuilder_ == null) { + previousChunks_ = java.util.Collections.emptyList(); + } else { + previousChunks_ = null; + previousChunksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (nextChunksBuilder_ == null) { + nextChunks_ = java.util.Collections.emptyList(); + } else { + nextChunks_ = null; + nextChunksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_ChunkMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata build() { + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata buildPartial() { + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata result = + new com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata result) { + if (previousChunksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + previousChunks_ = java.util.Collections.unmodifiableList(previousChunks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.previousChunks_ = previousChunks_; + } else { + result.previousChunks_ = previousChunksBuilder_.build(); + } + if (nextChunksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + nextChunks_ = java.util.Collections.unmodifiableList(nextChunks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.nextChunks_ = nextChunks_; + } else { + result.nextChunks_ = nextChunksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.getDefaultInstance()) + return this; + if (previousChunksBuilder_ == null) { + if (!other.previousChunks_.isEmpty()) { + if (previousChunks_.isEmpty()) { + previousChunks_ = other.previousChunks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePreviousChunksIsMutable(); + previousChunks_.addAll(other.previousChunks_); + } + onChanged(); + } + } else { + if (!other.previousChunks_.isEmpty()) { + if (previousChunksBuilder_.isEmpty()) { + previousChunksBuilder_.dispose(); + previousChunksBuilder_ = null; + previousChunks_ = other.previousChunks_; + bitField0_ = (bitField0_ & ~0x00000001); + previousChunksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPreviousChunksFieldBuilder() + : null; + } else { + previousChunksBuilder_.addAllMessages(other.previousChunks_); + } + } + } + if (nextChunksBuilder_ == null) { + if (!other.nextChunks_.isEmpty()) { + if (nextChunks_.isEmpty()) { + nextChunks_ = other.nextChunks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNextChunksIsMutable(); + nextChunks_.addAll(other.nextChunks_); + } + onChanged(); + } + } else { + if (!other.nextChunks_.isEmpty()) { + if (nextChunksBuilder_.isEmpty()) { + nextChunksBuilder_.dispose(); + nextChunksBuilder_ = null; + nextChunks_ = other.nextChunks_; + bitField0_ = (bitField0_ & ~0x00000002); + nextChunksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNextChunksFieldBuilder() + : null; + } else { + nextChunksBuilder_.addAllMessages(other.nextChunks_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1beta.Chunk m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Chunk.parser(), + extensionRegistry); + if (previousChunksBuilder_ == null) { + ensurePreviousChunksIsMutable(); + previousChunks_.add(m); + } else { + previousChunksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.discoveryengine.v1beta.Chunk m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Chunk.parser(), + extensionRegistry); + if (nextChunksBuilder_ == null) { + ensureNextChunksIsMutable(); + nextChunks_.add(m); + } else { + nextChunksBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List previousChunks_ = + java.util.Collections.emptyList(); + + private void ensurePreviousChunksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + previousChunks_ = + new java.util.ArrayList( + previousChunks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk, + com.google.cloud.discoveryengine.v1beta.Chunk.Builder, + com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder> + previousChunksBuilder_; + + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public java.util.List getPreviousChunksList() { + if (previousChunksBuilder_ == null) { + return java.util.Collections.unmodifiableList(previousChunks_); + } else { + return previousChunksBuilder_.getMessageList(); + } + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public int getPreviousChunksCount() { + if (previousChunksBuilder_ == null) { + return previousChunks_.size(); + } else { + return previousChunksBuilder_.getCount(); + } + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Chunk getPreviousChunks(int index) { + if (previousChunksBuilder_ == null) { + return previousChunks_.get(index); + } else { + return previousChunksBuilder_.getMessage(index); + } + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public Builder setPreviousChunks( + int index, com.google.cloud.discoveryengine.v1beta.Chunk value) { + if (previousChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePreviousChunksIsMutable(); + previousChunks_.set(index, value); + onChanged(); + } else { + previousChunksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public Builder setPreviousChunks( + int index, com.google.cloud.discoveryengine.v1beta.Chunk.Builder builderForValue) { + if (previousChunksBuilder_ == null) { + ensurePreviousChunksIsMutable(); + previousChunks_.set(index, builderForValue.build()); + onChanged(); + } else { + previousChunksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public Builder addPreviousChunks(com.google.cloud.discoveryengine.v1beta.Chunk value) { + if (previousChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePreviousChunksIsMutable(); + previousChunks_.add(value); + onChanged(); + } else { + previousChunksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public Builder addPreviousChunks( + int index, com.google.cloud.discoveryengine.v1beta.Chunk value) { + if (previousChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePreviousChunksIsMutable(); + previousChunks_.add(index, value); + onChanged(); + } else { + previousChunksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public Builder addPreviousChunks( + com.google.cloud.discoveryengine.v1beta.Chunk.Builder builderForValue) { + if (previousChunksBuilder_ == null) { + ensurePreviousChunksIsMutable(); + previousChunks_.add(builderForValue.build()); + onChanged(); + } else { + previousChunksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public Builder addPreviousChunks( + int index, com.google.cloud.discoveryengine.v1beta.Chunk.Builder builderForValue) { + if (previousChunksBuilder_ == null) { + ensurePreviousChunksIsMutable(); + previousChunks_.add(index, builderForValue.build()); + onChanged(); + } else { + previousChunksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public Builder addAllPreviousChunks( + java.lang.Iterable values) { + if (previousChunksBuilder_ == null) { + ensurePreviousChunksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, previousChunks_); + onChanged(); + } else { + previousChunksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public Builder clearPreviousChunks() { + if (previousChunksBuilder_ == null) { + previousChunks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + previousChunksBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public Builder removePreviousChunks(int index) { + if (previousChunksBuilder_ == null) { + ensurePreviousChunksIsMutable(); + previousChunks_.remove(index); + onChanged(); + } else { + previousChunksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.Builder getPreviousChunksBuilder( + int index) { + return getPreviousChunksFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder getPreviousChunksOrBuilder( + int index) { + if (previousChunksBuilder_ == null) { + return previousChunks_.get(index); + } else { + return previousChunksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public java.util.List + getPreviousChunksOrBuilderList() { + if (previousChunksBuilder_ != null) { + return previousChunksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(previousChunks_); + } + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.Builder addPreviousChunksBuilder() { + return getPreviousChunksFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance()); + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.Builder addPreviousChunksBuilder( + int index) { + return getPreviousChunksFieldBuilder() + .addBuilder(index, com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance()); + } + /** + * + * + *
      +       * The previous chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1; + */ + public java.util.List + getPreviousChunksBuilderList() { + return getPreviousChunksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk, + com.google.cloud.discoveryengine.v1beta.Chunk.Builder, + com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder> + getPreviousChunksFieldBuilder() { + if (previousChunksBuilder_ == null) { + previousChunksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk, + com.google.cloud.discoveryengine.v1beta.Chunk.Builder, + com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder>( + previousChunks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + previousChunks_ = null; + } + return previousChunksBuilder_; + } + + private java.util.List nextChunks_ = + java.util.Collections.emptyList(); + + private void ensureNextChunksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + nextChunks_ = + new java.util.ArrayList(nextChunks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk, + com.google.cloud.discoveryengine.v1beta.Chunk.Builder, + com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder> + nextChunksBuilder_; + + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public java.util.List getNextChunksList() { + if (nextChunksBuilder_ == null) { + return java.util.Collections.unmodifiableList(nextChunks_); + } else { + return nextChunksBuilder_.getMessageList(); + } + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public int getNextChunksCount() { + if (nextChunksBuilder_ == null) { + return nextChunks_.size(); + } else { + return nextChunksBuilder_.getCount(); + } + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public com.google.cloud.discoveryengine.v1beta.Chunk getNextChunks(int index) { + if (nextChunksBuilder_ == null) { + return nextChunks_.get(index); + } else { + return nextChunksBuilder_.getMessage(index); + } + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public Builder setNextChunks(int index, com.google.cloud.discoveryengine.v1beta.Chunk value) { + if (nextChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNextChunksIsMutable(); + nextChunks_.set(index, value); + onChanged(); + } else { + nextChunksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public Builder setNextChunks( + int index, com.google.cloud.discoveryengine.v1beta.Chunk.Builder builderForValue) { + if (nextChunksBuilder_ == null) { + ensureNextChunksIsMutable(); + nextChunks_.set(index, builderForValue.build()); + onChanged(); + } else { + nextChunksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public Builder addNextChunks(com.google.cloud.discoveryengine.v1beta.Chunk value) { + if (nextChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNextChunksIsMutable(); + nextChunks_.add(value); + onChanged(); + } else { + nextChunksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public Builder addNextChunks(int index, com.google.cloud.discoveryengine.v1beta.Chunk value) { + if (nextChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNextChunksIsMutable(); + nextChunks_.add(index, value); + onChanged(); + } else { + nextChunksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public Builder addNextChunks( + com.google.cloud.discoveryengine.v1beta.Chunk.Builder builderForValue) { + if (nextChunksBuilder_ == null) { + ensureNextChunksIsMutable(); + nextChunks_.add(builderForValue.build()); + onChanged(); + } else { + nextChunksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public Builder addNextChunks( + int index, com.google.cloud.discoveryengine.v1beta.Chunk.Builder builderForValue) { + if (nextChunksBuilder_ == null) { + ensureNextChunksIsMutable(); + nextChunks_.add(index, builderForValue.build()); + onChanged(); + } else { + nextChunksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public Builder addAllNextChunks( + java.lang.Iterable values) { + if (nextChunksBuilder_ == null) { + ensureNextChunksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nextChunks_); + onChanged(); + } else { + nextChunksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public Builder clearNextChunks() { + if (nextChunksBuilder_ == null) { + nextChunks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + nextChunksBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public Builder removeNextChunks(int index) { + if (nextChunksBuilder_ == null) { + ensureNextChunksIsMutable(); + nextChunks_.remove(index); + onChanged(); + } else { + nextChunksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.Builder getNextChunksBuilder(int index) { + return getNextChunksFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder getNextChunksOrBuilder( + int index) { + if (nextChunksBuilder_ == null) { + return nextChunks_.get(index); + } else { + return nextChunksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public java.util.List + getNextChunksOrBuilderList() { + if (nextChunksBuilder_ != null) { + return nextChunksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nextChunks_); + } + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.Builder addNextChunksBuilder() { + return getNextChunksFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance()); + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.Builder addNextChunksBuilder(int index) { + return getNextChunksFieldBuilder() + .addBuilder(index, com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance()); + } + /** + * + * + *
      +       * The next chunks of the current chunk. The number is controlled by
      +       * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
      +       * This field is only populated on
      +       * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      +       * API.
      +       * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2; + */ + public java.util.List + getNextChunksBuilderList() { + return getNextChunksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk, + com.google.cloud.discoveryengine.v1beta.Chunk.Builder, + com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder> + getNextChunksFieldBuilder() { + if (nextChunksBuilder_ == null) { + nextChunksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk, + com.google.cloud.discoveryengine.v1beta.Chunk.Builder, + com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder>( + nextChunks_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + nextChunks_ = null; + } + return nextChunksBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata) + private static final com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChunkMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * The full resource name of the chunk.
      +   * Format:
      +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * The full resource name of the chunk.
      +   * Format:
      +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * + * + *
      +   * Unique chunk ID of the current chunk.
      +   * 
      + * + * string id = 2; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * + * + *
      +   * Unique chunk ID of the current chunk.
      +   * 
      + * + * string id = 2; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + /** + * + * + *
      +   * Content is a string from a document (parsed content).
      +   * 
      + * + * string content = 3; + * + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } + } + /** + * + * + *
      +   * Content is a string from a document (parsed content).
      +   * 
      + * + * string content = 3; + * + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELEVANCE_SCORE_FIELD_NUMBER = 8; + private double relevanceScore_ = 0D; + /** + * + * + *
      +   * Output only. Represents the relevance score based on similarity.
      +   * Higher score indicates higher chunk relevance.
      +   * The score is in range [-1.0, 1.0].
      +   * Only populated on [SearchService.SearchResponse][].
      +   * 
      + * + * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the relevanceScore field is set. + */ + @java.lang.Override + public boolean hasRelevanceScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Output only. Represents the relevance score based on similarity.
      +   * Higher score indicates higher chunk relevance.
      +   * The score is in range [-1.0, 1.0].
      +   * Only populated on [SearchService.SearchResponse][].
      +   * 
      + * + * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The relevanceScore. + */ + @java.lang.Override + public double getRelevanceScore() { + return relevanceScore_; + } + + public static final int DOCUMENT_METADATA_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata documentMetadata_; + /** + * + * + *
      +   * Metadata of the document from the current chunk.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + * @return Whether the documentMetadata field is set. + */ + @java.lang.Override + public boolean hasDocumentMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * Metadata of the document from the current chunk.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + * @return The documentMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata getDocumentMetadata() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } + /** + * + * + *
      +   * Metadata of the document from the current chunk.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } + + public static final int DERIVED_STRUCT_DATA_FIELD_NUMBER = 4; + private com.google.protobuf.Struct derivedStructData_; + /** + * + * + *
      +   * Output only. This field is OUTPUT_ONLY.
      +   * It contains derived data that are not in the original input document.
      +   * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the derivedStructData field is set. + */ + @java.lang.Override + public boolean hasDerivedStructData() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +   * Output only. This field is OUTPUT_ONLY.
      +   * It contains derived data that are not in the original input document.
      +   * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The derivedStructData. + */ + @java.lang.Override + public com.google.protobuf.Struct getDerivedStructData() { + return derivedStructData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : derivedStructData_; + } + /** + * + * + *
      +   * Output only. This field is OUTPUT_ONLY.
      +   * It contains derived data that are not in the original input document.
      +   * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { + return derivedStructData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : derivedStructData_; + } + + public static final int PAGE_SPAN_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan pageSpan_; + /** + * + * + *
      +   * Page span of the chunk.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * @return Whether the pageSpan field is set. + */ + @java.lang.Override + public boolean hasPageSpan() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
      +   * Page span of the chunk.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * @return The pageSpan. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan getPageSpan() { + return pageSpan_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance() + : pageSpan_; + } + /** + * + * + *
      +   * Page span of the chunk.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder getPageSpanOrBuilder() { + return pageSpan_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance() + : pageSpan_; + } + + public static final int CHUNK_METADATA_FIELD_NUMBER = 7; + private com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunkMetadata_; + /** + * + * + *
      +   * Output only. Metadata of the current chunk.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the chunkMetadata field is set. + */ + @java.lang.Override + public boolean hasChunkMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +   * Output only. Metadata of the current chunk.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The chunkMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata getChunkMetadata() { + return chunkMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.getDefaultInstance() + : chunkMetadata_; + } + /** + * + * + *
      +   * Output only. Metadata of the current chunk.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder + getChunkMetadataOrBuilder() { + return chunkMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.getDefaultInstance() + : chunkMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, content_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getDerivedStructData()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getDocumentMetadata()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getPageSpan()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(7, getChunkMetadata()); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(8, relevanceScore_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDerivedStructData()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDocumentMetadata()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPageSpan()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getChunkMetadata()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, relevanceScore_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Chunk)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Chunk other = + (com.google.cloud.discoveryengine.v1beta.Chunk) obj; + + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; + if (!getContent().equals(other.getContent())) return false; + if (hasRelevanceScore() != other.hasRelevanceScore()) return false; + if (hasRelevanceScore()) { + if (java.lang.Double.doubleToLongBits(getRelevanceScore()) + != java.lang.Double.doubleToLongBits(other.getRelevanceScore())) return false; + } + if (hasDocumentMetadata() != other.hasDocumentMetadata()) return false; + if (hasDocumentMetadata()) { + if (!getDocumentMetadata().equals(other.getDocumentMetadata())) return false; + } + if (hasDerivedStructData() != other.hasDerivedStructData()) return false; + if (hasDerivedStructData()) { + if (!getDerivedStructData().equals(other.getDerivedStructData())) return false; + } + if (hasPageSpan() != other.hasPageSpan()) return false; + if (hasPageSpan()) { + if (!getPageSpan().equals(other.getPageSpan())) return false; + } + if (hasChunkMetadata() != other.hasChunkMetadata()) return false; + if (hasChunkMetadata()) { + if (!getChunkMetadata().equals(other.getChunkMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + if (hasRelevanceScore()) { + hash = (37 * hash) + RELEVANCE_SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRelevanceScore())); + } + if (hasDocumentMetadata()) { + hash = (37 * hash) + DOCUMENT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDocumentMetadata().hashCode(); + } + if (hasDerivedStructData()) { + hash = (37 * hash) + DERIVED_STRUCT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getDerivedStructData().hashCode(); + } + if (hasPageSpan()) { + hash = (37 * hash) + PAGE_SPAN_FIELD_NUMBER; + hash = (53 * hash) + getPageSpan().hashCode(); + } + if (hasChunkMetadata()) { + hash = (37 * hash) + CHUNK_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getChunkMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Chunk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Chunk captures all raw metadata information of items to be recommended or
      +   * searched in the chunk mode.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Chunk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Chunk) + com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Chunk.class, + com.google.cloud.discoveryengine.v1beta.Chunk.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Chunk.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDocumentMetadataFieldBuilder(); + getDerivedStructDataFieldBuilder(); + getPageSpanFieldBuilder(); + getChunkMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + id_ = ""; + content_ = ""; + relevanceScore_ = 0D; + documentMetadata_ = null; + if (documentMetadataBuilder_ != null) { + documentMetadataBuilder_.dispose(); + documentMetadataBuilder_ = null; + } + derivedStructData_ = null; + if (derivedStructDataBuilder_ != null) { + derivedStructDataBuilder_.dispose(); + derivedStructDataBuilder_ = null; + } + pageSpan_ = null; + if (pageSpanBuilder_ != null) { + pageSpanBuilder_.dispose(); + pageSpanBuilder_ = null; + } + chunkMetadata_ = null; + if (chunkMetadataBuilder_ != null) { + chunkMetadataBuilder_.dispose(); + chunkMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk build() { + com.google.cloud.discoveryengine.v1beta.Chunk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk buildPartial() { + com.google.cloud.discoveryengine.v1beta.Chunk result = + new com.google.cloud.discoveryengine.v1beta.Chunk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Chunk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.content_ = content_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.relevanceScore_ = relevanceScore_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.documentMetadata_ = + documentMetadataBuilder_ == null ? documentMetadata_ : documentMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.derivedStructData_ = + derivedStructDataBuilder_ == null + ? derivedStructData_ + : derivedStructDataBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pageSpan_ = pageSpanBuilder_ == null ? pageSpan_ : pageSpanBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.chunkMetadata_ = + chunkMetadataBuilder_ == null ? chunkMetadata_ : chunkMetadataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Chunk) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Chunk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Chunk other) { + if (other == com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRelevanceScore()) { + setRelevanceScore(other.getRelevanceScore()); + } + if (other.hasDocumentMetadata()) { + mergeDocumentMetadata(other.getDocumentMetadata()); + } + if (other.hasDerivedStructData()) { + mergeDerivedStructData(other.getDerivedStructData()); + } + if (other.hasPageSpan()) { + mergePageSpan(other.getPageSpan()); + } + if (other.hasChunkMetadata()) { + mergeChunkMetadata(other.getChunkMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getDerivedStructDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + input.readMessage( + getDocumentMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getPageSpanFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + input.readMessage(getChunkMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 65: + { + relevanceScore_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 65 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * The full resource name of the chunk.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * The full resource name of the chunk.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * The full resource name of the chunk.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * The full resource name of the chunk.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * The full resource name of the chunk.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + * + * + *
      +     * Unique chunk ID of the current chunk.
      +     * 
      + * + * string id = 2; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Unique chunk ID of the current chunk.
      +     * 
      + * + * string id = 2; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Unique chunk ID of the current chunk.
      +     * 
      + * + * string id = 2; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Unique chunk ID of the current chunk.
      +     * 
      + * + * string id = 2; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * Unique chunk ID of the current chunk.
      +     * 
      + * + * string id = 2; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object content_ = ""; + /** + * + * + *
      +     * Content is a string from a document (parsed content).
      +     * 
      + * + * string content = 3; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Content is a string from a document (parsed content).
      +     * 
      + * + * string content = 3; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Content is a string from a document (parsed content).
      +     * 
      + * + * string content = 3; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Content is a string from a document (parsed content).
      +     * 
      + * + * string content = 3; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * Content is a string from a document (parsed content).
      +     * 
      + * + * string content = 3; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private double relevanceScore_; + /** + * + * + *
      +     * Output only. Represents the relevance score based on similarity.
      +     * Higher score indicates higher chunk relevance.
      +     * The score is in range [-1.0, 1.0].
      +     * Only populated on [SearchService.SearchResponse][].
      +     * 
      + * + * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the relevanceScore field is set. + */ + @java.lang.Override + public boolean hasRelevanceScore() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
      +     * Output only. Represents the relevance score based on similarity.
      +     * Higher score indicates higher chunk relevance.
      +     * The score is in range [-1.0, 1.0].
      +     * Only populated on [SearchService.SearchResponse][].
      +     * 
      + * + * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The relevanceScore. + */ + @java.lang.Override + public double getRelevanceScore() { + return relevanceScore_; + } + /** + * + * + *
      +     * Output only. Represents the relevance score based on similarity.
      +     * Higher score indicates higher chunk relevance.
      +     * The score is in range [-1.0, 1.0].
      +     * Only populated on [SearchService.SearchResponse][].
      +     * 
      + * + * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The relevanceScore to set. + * @return This builder for chaining. + */ + public Builder setRelevanceScore(double value) { + + relevanceScore_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Represents the relevance score based on similarity.
      +     * Higher score indicates higher chunk relevance.
      +     * The score is in range [-1.0, 1.0].
      +     * Only populated on [SearchService.SearchResponse][].
      +     * 
      + * + * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRelevanceScore() { + bitField0_ = (bitField0_ & ~0x00000008); + relevanceScore_ = 0D; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata documentMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder> + documentMetadataBuilder_; + /** + * + * + *
      +     * Metadata of the document from the current chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + * + * @return Whether the documentMetadata field is set. + */ + public boolean hasDocumentMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +     * Metadata of the document from the current chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + * + * @return The documentMetadata. + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata getDocumentMetadata() { + if (documentMetadataBuilder_ == null) { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } else { + return documentMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Metadata of the document from the current chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata value) { + if (documentMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + documentMetadata_ = value; + } else { + documentMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Metadata of the document from the current chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder builderForValue) { + if (documentMetadataBuilder_ == null) { + documentMetadata_ = builderForValue.build(); + } else { + documentMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Metadata of the document from the current chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public Builder mergeDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata value) { + if (documentMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && documentMetadata_ != null + && documentMetadata_ + != com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata + .getDefaultInstance()) { + getDocumentMetadataBuilder().mergeFrom(value); + } else { + documentMetadata_ = value; + } + } else { + documentMetadataBuilder_.mergeFrom(value); + } + if (documentMetadata_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Metadata of the document from the current chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public Builder clearDocumentMetadata() { + bitField0_ = (bitField0_ & ~0x00000010); + documentMetadata_ = null; + if (documentMetadataBuilder_ != null) { + documentMetadataBuilder_.dispose(); + documentMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Metadata of the document from the current chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder + getDocumentMetadataBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getDocumentMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Metadata of the document from the current chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + if (documentMetadataBuilder_ != null) { + return documentMetadataBuilder_.getMessageOrBuilder(); + } else { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } + } + /** + * + * + *
      +     * Metadata of the document from the current chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder> + getDocumentMetadataFieldBuilder() { + if (documentMetadataBuilder_ == null) { + documentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder>( + getDocumentMetadata(), getParentForChildren(), isClean()); + documentMetadata_ = null; + } + return documentMetadataBuilder_; + } + + private com.google.protobuf.Struct derivedStructData_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + derivedStructDataBuilder_; + /** + * + * + *
      +     * Output only. This field is OUTPUT_ONLY.
      +     * It contains derived data that are not in the original input document.
      +     * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the derivedStructData field is set. + */ + public boolean hasDerivedStructData() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
      +     * Output only. This field is OUTPUT_ONLY.
      +     * It contains derived data that are not in the original input document.
      +     * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The derivedStructData. + */ + public com.google.protobuf.Struct getDerivedStructData() { + if (derivedStructDataBuilder_ == null) { + return derivedStructData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : derivedStructData_; + } else { + return derivedStructDataBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. This field is OUTPUT_ONLY.
      +     * It contains derived data that are not in the original input document.
      +     * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDerivedStructData(com.google.protobuf.Struct value) { + if (derivedStructDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + derivedStructData_ = value; + } else { + derivedStructDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. This field is OUTPUT_ONLY.
      +     * It contains derived data that are not in the original input document.
      +     * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDerivedStructData(com.google.protobuf.Struct.Builder builderForValue) { + if (derivedStructDataBuilder_ == null) { + derivedStructData_ = builderForValue.build(); + } else { + derivedStructDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. This field is OUTPUT_ONLY.
      +     * It contains derived data that are not in the original input document.
      +     * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDerivedStructData(com.google.protobuf.Struct value) { + if (derivedStructDataBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && derivedStructData_ != null + && derivedStructData_ != com.google.protobuf.Struct.getDefaultInstance()) { + getDerivedStructDataBuilder().mergeFrom(value); + } else { + derivedStructData_ = value; + } + } else { + derivedStructDataBuilder_.mergeFrom(value); + } + if (derivedStructData_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. This field is OUTPUT_ONLY.
      +     * It contains derived data that are not in the original input document.
      +     * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDerivedStructData() { + bitField0_ = (bitField0_ & ~0x00000020); + derivedStructData_ = null; + if (derivedStructDataBuilder_ != null) { + derivedStructDataBuilder_.dispose(); + derivedStructDataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. This field is OUTPUT_ONLY.
      +     * It contains derived data that are not in the original input document.
      +     * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder getDerivedStructDataBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getDerivedStructDataFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. This field is OUTPUT_ONLY.
      +     * It contains derived data that are not in the original input document.
      +     * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { + if (derivedStructDataBuilder_ != null) { + return derivedStructDataBuilder_.getMessageOrBuilder(); + } else { + return derivedStructData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : derivedStructData_; + } + } + /** + * + * + *
      +     * Output only. This field is OUTPUT_ONLY.
      +     * It contains derived data that are not in the original input document.
      +     * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getDerivedStructDataFieldBuilder() { + if (derivedStructDataBuilder_ == null) { + derivedStructDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getDerivedStructData(), getParentForChildren(), isClean()); + derivedStructData_ = null; + } + return derivedStructDataBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan pageSpan_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan, + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder> + pageSpanBuilder_; + /** + * + * + *
      +     * Page span of the chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * @return Whether the pageSpan field is set. + */ + public boolean hasPageSpan() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
      +     * Page span of the chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * @return The pageSpan. + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan getPageSpan() { + if (pageSpanBuilder_ == null) { + return pageSpan_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance() + : pageSpan_; + } else { + return pageSpanBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Page span of the chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + */ + public Builder setPageSpan(com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan value) { + if (pageSpanBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pageSpan_ = value; + } else { + pageSpanBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
      +     * Page span of the chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + */ + public Builder setPageSpan( + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder builderForValue) { + if (pageSpanBuilder_ == null) { + pageSpan_ = builderForValue.build(); + } else { + pageSpanBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
      +     * Page span of the chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + */ + public Builder mergePageSpan(com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan value) { + if (pageSpanBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && pageSpan_ != null + && pageSpan_ + != com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance()) { + getPageSpanBuilder().mergeFrom(value); + } else { + pageSpan_ = value; + } + } else { + pageSpanBuilder_.mergeFrom(value); + } + if (pageSpan_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Page span of the chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + */ + public Builder clearPageSpan() { + bitField0_ = (bitField0_ & ~0x00000040); + pageSpan_ = null; + if (pageSpanBuilder_ != null) { + pageSpanBuilder_.dispose(); + pageSpanBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Page span of the chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder getPageSpanBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getPageSpanFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Page span of the chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder getPageSpanOrBuilder() { + if (pageSpanBuilder_ != null) { + return pageSpanBuilder_.getMessageOrBuilder(); + } else { + return pageSpan_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance() + : pageSpan_; + } + } + /** + * + * + *
      +     * Page span of the chunk.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan, + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder> + getPageSpanFieldBuilder() { + if (pageSpanBuilder_ == null) { + pageSpanBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan, + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder>( + getPageSpan(), getParentForChildren(), isClean()); + pageSpan_ = null; + } + return pageSpanBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunkMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder> + chunkMetadataBuilder_; + /** + * + * + *
      +     * Output only. Metadata of the current chunk.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the chunkMetadata field is set. + */ + public boolean hasChunkMetadata() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
      +     * Output only. Metadata of the current chunk.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The chunkMetadata. + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata getChunkMetadata() { + if (chunkMetadataBuilder_ == null) { + return chunkMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.getDefaultInstance() + : chunkMetadata_; + } else { + return chunkMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. Metadata of the current chunk.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setChunkMetadata( + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata value) { + if (chunkMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkMetadata_ = value; + } else { + chunkMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Metadata of the current chunk.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setChunkMetadata( + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder builderForValue) { + if (chunkMetadataBuilder_ == null) { + chunkMetadata_ = builderForValue.build(); + } else { + chunkMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Metadata of the current chunk.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeChunkMetadata( + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata value) { + if (chunkMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && chunkMetadata_ != null + && chunkMetadata_ + != com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata + .getDefaultInstance()) { + getChunkMetadataBuilder().mergeFrom(value); + } else { + chunkMetadata_ = value; + } + } else { + chunkMetadataBuilder_.mergeFrom(value); + } + if (chunkMetadata_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. Metadata of the current chunk.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearChunkMetadata() { + bitField0_ = (bitField0_ & ~0x00000080); + chunkMetadata_ = null; + if (chunkMetadataBuilder_ != null) { + chunkMetadataBuilder_.dispose(); + chunkMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Metadata of the current chunk.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder + getChunkMetadataBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getChunkMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. Metadata of the current chunk.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder + getChunkMetadataOrBuilder() { + if (chunkMetadataBuilder_ != null) { + return chunkMetadataBuilder_.getMessageOrBuilder(); + } else { + return chunkMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.getDefaultInstance() + : chunkMetadata_; + } + } + /** + * + * + *
      +     * Output only. Metadata of the current chunk.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder> + getChunkMetadataFieldBuilder() { + if (chunkMetadataBuilder_ == null) { + chunkMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder>( + getChunkMetadata(), getParentForChildren(), isClean()); + chunkMetadata_ = null; + } + return chunkMetadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Chunk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Chunk) + private static final com.google.cloud.discoveryengine.v1beta.Chunk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Chunk(); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Chunk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ChunkOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ChunkOrBuilder.java new file mode 100644 index 000000000000..86e349875b19 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ChunkOrBuilder.java @@ -0,0 +1,298 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/chunk.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ChunkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Chunk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The full resource name of the chunk.
      +   * Format:
      +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * The full resource name of the chunk.
      +   * Format:
      +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Unique chunk ID of the current chunk.
      +   * 
      + * + * string id = 2; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
      +   * Unique chunk ID of the current chunk.
      +   * 
      + * + * string id = 2; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
      +   * Content is a string from a document (parsed content).
      +   * 
      + * + * string content = 3; + * + * @return The content. + */ + java.lang.String getContent(); + /** + * + * + *
      +   * Content is a string from a document (parsed content).
      +   * 
      + * + * string content = 3; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); + + /** + * + * + *
      +   * Output only. Represents the relevance score based on similarity.
      +   * Higher score indicates higher chunk relevance.
      +   * The score is in range [-1.0, 1.0].
      +   * Only populated on [SearchService.SearchResponse][].
      +   * 
      + * + * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the relevanceScore field is set. + */ + boolean hasRelevanceScore(); + /** + * + * + *
      +   * Output only. Represents the relevance score based on similarity.
      +   * Higher score indicates higher chunk relevance.
      +   * The score is in range [-1.0, 1.0].
      +   * Only populated on [SearchService.SearchResponse][].
      +   * 
      + * + * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The relevanceScore. + */ + double getRelevanceScore(); + + /** + * + * + *
      +   * Metadata of the document from the current chunk.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + * @return Whether the documentMetadata field is set. + */ + boolean hasDocumentMetadata(); + /** + * + * + *
      +   * Metadata of the document from the current chunk.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + * @return The documentMetadata. + */ + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata getDocumentMetadata(); + /** + * + * + *
      +   * Metadata of the document from the current chunk.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + */ + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder(); + + /** + * + * + *
      +   * Output only. This field is OUTPUT_ONLY.
      +   * It contains derived data that are not in the original input document.
      +   * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the derivedStructData field is set. + */ + boolean hasDerivedStructData(); + /** + * + * + *
      +   * Output only. This field is OUTPUT_ONLY.
      +   * It contains derived data that are not in the original input document.
      +   * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The derivedStructData. + */ + com.google.protobuf.Struct getDerivedStructData(); + /** + * + * + *
      +   * Output only. This field is OUTPUT_ONLY.
      +   * It contains derived data that are not in the original input document.
      +   * 
      + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder(); + + /** + * + * + *
      +   * Page span of the chunk.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * @return Whether the pageSpan field is set. + */ + boolean hasPageSpan(); + /** + * + * + *
      +   * Page span of the chunk.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * @return The pageSpan. + */ + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan getPageSpan(); + /** + * + * + *
      +   * Page span of the chunk.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + */ + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder getPageSpanOrBuilder(); + + /** + * + * + *
      +   * Output only. Metadata of the current chunk.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the chunkMetadata field is set. + */ + boolean hasChunkMetadata(); + /** + * + * + *
      +   * Output only. Metadata of the current chunk.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The chunkMetadata. + */ + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata getChunkMetadata(); + /** + * + * + *
      +   * Output only. Metadata of the current chunk.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder getChunkMetadataOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ChunkProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ChunkProto.java new file mode 100644 index 000000000000..dba327bb815c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ChunkProto.java @@ -0,0 +1,159 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/chunk.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public final class ChunkProto { + private ChunkProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Chunk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Chunk_DocumentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Chunk_DocumentMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Chunk_PageSpan_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Chunk_PageSpan_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Chunk_ChunkMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Chunk_ChunkMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/discoveryengine/v1beta/ch" + + "unk.proto\022#google.cloud.discoveryengine." + + "v1beta\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032\034google/proto" + + "buf/struct.proto\"\370\007\n\005Chunk\022\014\n\004name\030\001 \001(\t" + + "\022\n\n\002id\030\002 \001(\t\022\017\n\007content\030\003 \001(\t\022!\n\017relevan" + + "ce_score\030\010 \001(\001B\003\340A\003H\000\210\001\001\022V\n\021document_met" + + "adata\030\005 \001(\0132;.google.cloud.discoveryengi" + + "ne.v1beta.Chunk.DocumentMetadata\0229\n\023deri" + + "ved_struct_data\030\004 \001(\0132\027.google.protobuf." + + "StructB\003\340A\003\022F\n\tpage_span\030\006 \001(\01323.google." + + "cloud.discoveryengine.v1beta.Chunk.PageS" + + "pan\022U\n\016chunk_metadata\030\007 \001(\01328.google.clo" + + "ud.discoveryengine.v1beta.Chunk.ChunkMet" + + "adataB\003\340A\003\032\\\n\020DocumentMetadata\022\013\n\003uri\030\001 " + + "\001(\t\022\r\n\005title\030\002 \001(\t\022,\n\013struct_data\030\003 \001(\0132" + + "\027.google.protobuf.Struct\0320\n\010PageSpan\022\022\n\n" + + "page_start\030\001 \001(\005\022\020\n\010page_end\030\002 \001(\005\032\225\001\n\rC" + + "hunkMetadata\022C\n\017previous_chunks\030\001 \003(\0132*." + + "google.cloud.discoveryengine.v1beta.Chun" + + "k\022?\n\013next_chunks\030\002 \003(\0132*.google.cloud.di" + + "scoveryengine.v1beta.Chunk:\262\002\352A\256\002\n$disco" + + "veryengine.googleapis.com/Chunk\022uproject" + + "s/{project}/locations/{location}/dataSto" + + "res/{data_store}/branches/{branch}/docum" + + "ents/{document}/chunks/{chunk}\022\216\001project" + + "s/{project}/locations/{location}/collect" + + "ions/{collection}/dataStores/{data_store" + + "}/branches/{branch}/documents/{document}" + + "/chunks/{chunk}B\022\n\020_relevance_scoreB\221\002\n\'" + + "com.google.cloud.discoveryengine.v1betaB" + + "\nChunkProtoP\001ZQcloud.google.com/go/disco" + + "veryengine/apiv1beta/discoveryenginepb;d" + + "iscoveryenginepb\242\002\017DISCOVERYENGINE\252\002#Goo" + + "gle.Cloud.DiscoveryEngine.V1Beta\312\002#Googl" + + "e\\Cloud\\DiscoveryEngine\\V1beta\352\002&Google:" + + ":Cloud::DiscoveryEngine::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_Chunk_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor, + new java.lang.String[] { + "Name", + "Id", + "Content", + "RelevanceScore", + "DocumentMetadata", + "DerivedStructData", + "PageSpan", + "ChunkMetadata", + }); + internal_static_google_cloud_discoveryengine_v1beta_Chunk_DocumentMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1beta_Chunk_DocumentMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Chunk_DocumentMetadata_descriptor, + new java.lang.String[] { + "Uri", "Title", "StructData", + }); + internal_static_google_cloud_discoveryengine_v1beta_Chunk_PageSpan_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_discoveryengine_v1beta_Chunk_PageSpan_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Chunk_PageSpan_descriptor, + new java.lang.String[] { + "PageStart", "PageEnd", + }); + internal_static_google_cloud_discoveryengine_v1beta_Chunk_ChunkMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_discoveryengine_v1beta_Chunk_ChunkMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Chunk_ChunkMetadata_descriptor, + new java.lang.String[] { + "PreviousChunks", "NextChunks", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java index 504742b47a1b..2f9d55ad7e73 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java @@ -80,7 +80,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H_TIER_UNSPECIFIED\020\000\022\030\n\024SEARCH_TIER_STAN" + "DARD\020\001\022\032\n\026SEARCH_TIER_ENTERPRISE\020\002*C\n\013Se" + "archAddOn\022\035\n\031SEARCH_ADD_ON_UNSPECIFIED\020\000" - + "\022\025\n\021SEARCH_ADD_ON_LLM\020\001B\351\n\n\'com.google.c" + + "\022\025\n\021SEARCH_ADD_ON_LLM\020\001B\267\010\n\'com.google.c" + "loud.discoveryengine.v1betaB\013CommonProto" + "P\001ZQcloud.google.com/go/discoveryengine/" + "apiv1beta/discoveryenginepb;discoveryeng" @@ -107,15 +107,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "figs/{ranking_config}\352Ay\n#healthcare.goo" + "gleapis.com/FhirStore\022Rprojects/{project" + "}/locations/{location}/datasets/{dataset" - + "}/fhirStores/{fhir_store}\352A\256\002\n$discovery" - + "engine.googleapis.com/Chunk\022uprojects/{p" - + "roject}/locations/{location}/dataStores/" - + "{data_store}/branches/{branch}/documents" - + "/{document}/chunks/{chunk}\022\216\001projects/{p" - + "roject}/locations/{location}/collections" - + "/{collection}/dataStores/{data_store}/br" - + "anches/{branch}/documents/{document}/chu" - + "nks/{chunk}b\006proto3" + + "}/fhirStores/{fhir_store}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionProto.java index 7ded220a7579..d56a9f05a302 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_SuggestionDenyListEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_SuggestionDenyListEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CompletionSuggestion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CompletionSuggestion_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -50,14 +54,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "a.SuggestionDenyListEntry.MatchOperatorB" + "\003\340A\002\"N\n\rMatchOperator\022\036\n\032MATCH_OPERATOR_" + "UNSPECIFIED\020\000\022\017\n\013EXACT_MATCH\020\001\022\014\n\010CONTAI" - + "NS\020\002B\226\002\n\'com.google.cloud.discoveryengin" - + "e.v1betaB\017CompletionProtoP\001ZQcloud.googl" - + "e.com/go/discoveryengine/apiv1beta/disco" - + "veryenginepb;discoveryenginepb\242\002\017DISCOVE" - + "RYENGINE\252\002#Google.Cloud.DiscoveryEngine." - + "V1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1" - + "beta\352\002&Google::Cloud::DiscoveryEngine::V" - + "1betab\006proto3" + + "NS\020\002\"\307\001\n\024CompletionSuggestion\022\026\n\014global_" + + "score\030\002 \001(\001H\000\022\023\n\tfrequency\030\003 \001(\003H\000\022\027\n\nsu" + + "ggestion\030\001 \001(\tB\003\340A\002\022\025\n\rlanguage_code\030\004 \001" + + "(\t\022\020\n\010group_id\030\005 \001(\t\022\023\n\013group_score\030\006 \001(" + + "\001\022\033\n\023alternative_phrases\030\007 \003(\tB\016\n\014rankin" + + "g_infoB\226\002\n\'com.google.cloud.discoveryeng" + + "ine.v1betaB\017CompletionProtoP\001ZQcloud.goo" + + "gle.com/go/discoveryengine/apiv1beta/dis" + + "coveryenginepb;discoveryenginepb\242\002\017DISCO" + + "VERYENGINE\252\002#Google.Cloud.DiscoveryEngin" + + "e.V1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\" + + "V1beta\352\002&Google::Cloud::DiscoveryEngine:" + + ":V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -73,6 +82,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "BlockPhrase", "MatchOperator", }); + internal_static_google_cloud_discoveryengine_v1beta_CompletionSuggestion_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_CompletionSuggestion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_CompletionSuggestion_descriptor, + new java.lang.String[] { + "GlobalScore", + "Frequency", + "Suggestion", + "LanguageCode", + "GroupId", + "GroupScore", + "AlternativePhrases", + "RankingInfo", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java index 51c87325c0f8..0366be16b3b2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java @@ -68,7 +68,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ne.v1beta.CompleteQueryResponse.QuerySug" + "gestion\022\034\n\024tail_match_triggered\030\002 \001(\010\032F\n" + "\017QuerySuggestion\022\022\n\nsuggestion\030\001 \001(\t\022\037\n\027" - + "completable_field_paths\030\002 \003(\t2\215\013\n\021Comple" + + "completable_field_paths\030\002 \003(\t2\317\022\n\021Comple" + "tionService\022\260\002\n\rCompleteQuery\0229.google.c" + "loud.discoveryengine.v1beta.CompleteQuer" + "yRequest\032:.google.cloud.discoveryengine." @@ -102,16 +102,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*}/suggestionDenyListEntries:purge:\001*ZZ\"" + "U/v1beta/{parent=projects/*/locations/*/" + "dataStores/**}/suggestionDenyListEntries" - + ":purge:\001*\032R\312A\036discoveryengine.googleapis" - + ".com\322A.https://www.googleapis.com/auth/c" - + "loud-platformB\235\002\n\'com.google.cloud.disco" - + "veryengine.v1betaB\026CompletionServiceProt" - + "oP\001ZQcloud.google.com/go/discoveryengine" - + "/apiv1beta/discoveryenginepb;discoveryen" - + "ginepb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud." - + "DiscoveryEngine.V1Beta\312\002#Google\\Cloud\\Di" - + "scoveryEngine\\V1beta\352\002&Google::Cloud::Di" - + "scoveryEngine::V1betab\006proto3" + + ":purge:\001*\022\341\003\n\033ImportCompletionSuggestion" + + "s\022G.google.cloud.discoveryengine.v1beta." + + "ImportCompletionSuggestionsRequest\032\035.goo" + + "gle.longrunning.Operation\"\331\002\312A\222\001\nGgoogle" + + ".cloud.discoveryengine.v1beta.ImportComp" + + "letionSuggestionsResponse\022Ggoogle.cloud." + + "discoveryengine.v1beta.ImportCompletionS" + + "uggestionsMetadata\202\323\344\223\002\274\001\"_/v1beta/{pare" + + "nt=projects/*/locations/*/collections/*/" + + "dataStores/*}/completionSuggestions:impo" + + "rt:\001*ZV\"Q/v1beta/{parent=projects/*/loca" + + "tions/*/dataStores/*}/completionSuggesti" + + "ons:import:\001*\022\333\003\n\032PurgeCompletionSuggest" + + "ions\022F.google.cloud.discoveryengine.v1be" + + "ta.PurgeCompletionSuggestionsRequest\032\035.g" + + "oogle.longrunning.Operation\"\325\002\312A\220\001\nFgoog" + + "le.cloud.discoveryengine.v1beta.PurgeCom" + + "pletionSuggestionsResponse\022Fgoogle.cloud" + + ".discoveryengine.v1beta.PurgeCompletionS" + + "uggestionsMetadata\202\323\344\223\002\272\001\"^/v1beta/{pare" + + "nt=projects/*/locations/*/collections/*/" + + "dataStores/*}/completionSuggestions:purg" + + "e:\001*ZU\"P/v1beta/{parent=projects/*/locat" + + "ions/*/dataStores/*}/completionSuggestio" + + "ns:purge:\001*\032R\312A\036discoveryengine.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\235\002\n\'com.google.cloud.dis" + + "coveryengine.v1betaB\026CompletionServicePr" + + "otoP\001ZQcloud.google.com/go/discoveryengi" + + "ne/apiv1beta/discoveryenginepb;discovery" + + "enginepb\242\002\017DISCOVERYENGINE\252\002#Google.Clou" + + "d.DiscoveryEngine.V1Beta\312\002#Google\\Cloud\\" + + "DiscoveryEngine\\V1beta\352\002&Google::Cloud::" + + "DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionSuggestion.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionSuggestion.java new file mode 100644 index 000000000000..e0c33d015a91 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionSuggestion.java @@ -0,0 +1,1747 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/completion.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Autocomplete suggestions that are imported from Customer.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CompletionSuggestion} + */ +public final class CompletionSuggestion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CompletionSuggestion) + CompletionSuggestionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompletionSuggestion.newBuilder() to construct. + private CompletionSuggestion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompletionSuggestion() { + suggestion_ = ""; + languageCode_ = ""; + groupId_ = ""; + alternativePhrases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CompletionSuggestion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CompletionProto + .internal_static_google_cloud_discoveryengine_v1beta_CompletionSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CompletionProto + .internal_static_google_cloud_discoveryengine_v1beta_CompletionSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.class, + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.Builder.class); + } + + private int rankingInfoCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object rankingInfo_; + + public enum RankingInfoCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GLOBAL_SCORE(2), + FREQUENCY(3), + RANKINGINFO_NOT_SET(0); + private final int value; + + private RankingInfoCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RankingInfoCase valueOf(int value) { + return forNumber(value); + } + + public static RankingInfoCase forNumber(int value) { + switch (value) { + case 2: + return GLOBAL_SCORE; + case 3: + return FREQUENCY; + case 0: + return RANKINGINFO_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RankingInfoCase getRankingInfoCase() { + return RankingInfoCase.forNumber(rankingInfoCase_); + } + + public static final int GLOBAL_SCORE_FIELD_NUMBER = 2; + /** + * + * + *
      +   * Global score of this suggestion. Control how this suggestion would be
      +   * scored / ranked.
      +   * 
      + * + * double global_score = 2; + * + * @return Whether the globalScore field is set. + */ + @java.lang.Override + public boolean hasGlobalScore() { + return rankingInfoCase_ == 2; + } + /** + * + * + *
      +   * Global score of this suggestion. Control how this suggestion would be
      +   * scored / ranked.
      +   * 
      + * + * double global_score = 2; + * + * @return The globalScore. + */ + @java.lang.Override + public double getGlobalScore() { + if (rankingInfoCase_ == 2) { + return (java.lang.Double) rankingInfo_; + } + return 0D; + } + + public static final int FREQUENCY_FIELD_NUMBER = 3; + /** + * + * + *
      +   * Frequency of this suggestion. Will be used to rank suggestions when score
      +   * is not available.
      +   * 
      + * + * int64 frequency = 3; + * + * @return Whether the frequency field is set. + */ + @java.lang.Override + public boolean hasFrequency() { + return rankingInfoCase_ == 3; + } + /** + * + * + *
      +   * Frequency of this suggestion. Will be used to rank suggestions when score
      +   * is not available.
      +   * 
      + * + * int64 frequency = 3; + * + * @return The frequency. + */ + @java.lang.Override + public long getFrequency() { + if (rankingInfoCase_ == 3) { + return (java.lang.Long) rankingInfo_; + } + return 0L; + } + + public static final int SUGGESTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object suggestion_ = ""; + /** + * + * + *
      +   * Required. The suggestion text.
      +   * 
      + * + * string suggestion = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The suggestion. + */ + @java.lang.Override + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The suggestion text.
      +   * 
      + * + * string suggestion = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for suggestion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + /** + * + * + *
      +   * BCP-47 language code of this suggestion.
      +   * 
      + * + * string language_code = 4; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
      +   * BCP-47 language code of this suggestion.
      +   * 
      + * + * string language_code = 4; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object groupId_ = ""; + /** + * + * + *
      +   * If two suggestions have the same groupId, they will not be
      +   * returned together. Instead the one ranked higher will be returned. This can
      +   * be used to deduplicate semantically identical suggestions.
      +   * 
      + * + * string group_id = 5; + * + * @return The groupId. + */ + @java.lang.Override + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } + } + /** + * + * + *
      +   * If two suggestions have the same groupId, they will not be
      +   * returned together. Instead the one ranked higher will be returned. This can
      +   * be used to deduplicate semantically identical suggestions.
      +   * 
      + * + * string group_id = 5; + * + * @return The bytes for groupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_SCORE_FIELD_NUMBER = 6; + private double groupScore_ = 0D; + /** + * + * + *
      +   * The score of this suggestion within its group.
      +   * 
      + * + * double group_score = 6; + * + * @return The groupScore. + */ + @java.lang.Override + public double getGroupScore() { + return groupScore_; + } + + public static final int ALTERNATIVE_PHRASES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList alternativePhrases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
      +   * Alternative matching phrases for this suggestion.
      +   * 
      + * + * repeated string alternative_phrases = 7; + * + * @return A list containing the alternativePhrases. + */ + public com.google.protobuf.ProtocolStringList getAlternativePhrasesList() { + return alternativePhrases_; + } + /** + * + * + *
      +   * Alternative matching phrases for this suggestion.
      +   * 
      + * + * repeated string alternative_phrases = 7; + * + * @return The count of alternativePhrases. + */ + public int getAlternativePhrasesCount() { + return alternativePhrases_.size(); + } + /** + * + * + *
      +   * Alternative matching phrases for this suggestion.
      +   * 
      + * + * repeated string alternative_phrases = 7; + * + * @param index The index of the element to return. + * @return The alternativePhrases at the given index. + */ + public java.lang.String getAlternativePhrases(int index) { + return alternativePhrases_.get(index); + } + /** + * + * + *
      +   * Alternative matching phrases for this suggestion.
      +   * 
      + * + * repeated string alternative_phrases = 7; + * + * @param index The index of the value to return. + * @return The bytes of the alternativePhrases at the given index. + */ + public com.google.protobuf.ByteString getAlternativePhrasesBytes(int index) { + return alternativePhrases_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, suggestion_); + } + if (rankingInfoCase_ == 2) { + output.writeDouble(2, (double) ((java.lang.Double) rankingInfo_)); + } + if (rankingInfoCase_ == 3) { + output.writeInt64(3, (long) ((java.lang.Long) rankingInfo_)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, groupId_); + } + if (java.lang.Double.doubleToRawLongBits(groupScore_) != 0) { + output.writeDouble(6, groupScore_); + } + for (int i = 0; i < alternativePhrases_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, alternativePhrases_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, suggestion_); + } + if (rankingInfoCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 2, (double) ((java.lang.Double) rankingInfo_)); + } + if (rankingInfoCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 3, (long) ((java.lang.Long) rankingInfo_)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, groupId_); + } + if (java.lang.Double.doubleToRawLongBits(groupScore_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, groupScore_); + } + { + int dataSize = 0; + for (int i = 0; i < alternativePhrases_.size(); i++) { + dataSize += computeStringSizeNoTag(alternativePhrases_.getRaw(i)); + } + size += dataSize; + size += 1 * getAlternativePhrasesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.CompletionSuggestion)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion other = + (com.google.cloud.discoveryengine.v1beta.CompletionSuggestion) obj; + + if (!getSuggestion().equals(other.getSuggestion())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getGroupId().equals(other.getGroupId())) return false; + if (java.lang.Double.doubleToLongBits(getGroupScore()) + != java.lang.Double.doubleToLongBits(other.getGroupScore())) return false; + if (!getAlternativePhrasesList().equals(other.getAlternativePhrasesList())) return false; + if (!getRankingInfoCase().equals(other.getRankingInfoCase())) return false; + switch (rankingInfoCase_) { + case 2: + if (java.lang.Double.doubleToLongBits(getGlobalScore()) + != java.lang.Double.doubleToLongBits(other.getGlobalScore())) return false; + break; + case 3: + if (getFrequency() != other.getFrequency()) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getSuggestion().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + hash = (37 * hash) + GROUP_SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getGroupScore())); + if (getAlternativePhrasesCount() > 0) { + hash = (37 * hash) + ALTERNATIVE_PHRASES_FIELD_NUMBER; + hash = (53 * hash) + getAlternativePhrasesList().hashCode(); + } + switch (rankingInfoCase_) { + case 2: + hash = (37 * hash) + GLOBAL_SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getGlobalScore())); + break; + case 3: + hash = (37 * hash) + FREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFrequency()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.CompletionSuggestion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CompletionSuggestion parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CompletionSuggestion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CompletionSuggestion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CompletionSuggestion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CompletionSuggestion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CompletionSuggestion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CompletionSuggestion parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CompletionSuggestion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CompletionSuggestion parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CompletionSuggestion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CompletionSuggestion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Autocomplete suggestions that are imported from Customer.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CompletionSuggestion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.CompletionSuggestion) + com.google.cloud.discoveryengine.v1beta.CompletionSuggestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CompletionProto + .internal_static_google_cloud_discoveryengine_v1beta_CompletionSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CompletionProto + .internal_static_google_cloud_discoveryengine_v1beta_CompletionSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.class, + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + suggestion_ = ""; + languageCode_ = ""; + groupId_ = ""; + groupScore_ = 0D; + alternativePhrases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + rankingInfoCase_ = 0; + rankingInfo_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CompletionProto + .internal_static_google_cloud_discoveryengine_v1beta_CompletionSuggestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CompletionSuggestion + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CompletionSuggestion build() { + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CompletionSuggestion buildPartial() { + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion result = + new com.google.cloud.discoveryengine.v1beta.CompletionSuggestion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.suggestion_ = suggestion_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.groupId_ = groupId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.groupScore_ = groupScore_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + alternativePhrases_.makeImmutable(); + result.alternativePhrases_ = alternativePhrases_; + } + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion result) { + result.rankingInfoCase_ = rankingInfoCase_; + result.rankingInfo_ = this.rankingInfo_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.CompletionSuggestion) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.CompletionSuggestion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CompletionSuggestion other) { + if (other + == com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.getDefaultInstance()) + return this; + if (!other.getSuggestion().isEmpty()) { + suggestion_ = other.suggestion_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getGroupId().isEmpty()) { + groupId_ = other.groupId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getGroupScore() != 0D) { + setGroupScore(other.getGroupScore()); + } + if (!other.alternativePhrases_.isEmpty()) { + if (alternativePhrases_.isEmpty()) { + alternativePhrases_ = other.alternativePhrases_; + bitField0_ |= 0x00000040; + } else { + ensureAlternativePhrasesIsMutable(); + alternativePhrases_.addAll(other.alternativePhrases_); + } + onChanged(); + } + switch (other.getRankingInfoCase()) { + case GLOBAL_SCORE: + { + setGlobalScore(other.getGlobalScore()); + break; + } + case FREQUENCY: + { + setFrequency(other.getFrequency()); + break; + } + case RANKINGINFO_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + suggestion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 17: + { + rankingInfo_ = input.readDouble(); + rankingInfoCase_ = 2; + break; + } // case 17 + case 24: + { + rankingInfo_ = input.readInt64(); + rankingInfoCase_ = 3; + break; + } // case 24 + case 34: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + groupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 49: + { + groupScore_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 49 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAlternativePhrasesIsMutable(); + alternativePhrases_.add(s); + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int rankingInfoCase_ = 0; + private java.lang.Object rankingInfo_; + + public RankingInfoCase getRankingInfoCase() { + return RankingInfoCase.forNumber(rankingInfoCase_); + } + + public Builder clearRankingInfo() { + rankingInfoCase_ = 0; + rankingInfo_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * Global score of this suggestion. Control how this suggestion would be
      +     * scored / ranked.
      +     * 
      + * + * double global_score = 2; + * + * @return Whether the globalScore field is set. + */ + public boolean hasGlobalScore() { + return rankingInfoCase_ == 2; + } + /** + * + * + *
      +     * Global score of this suggestion. Control how this suggestion would be
      +     * scored / ranked.
      +     * 
      + * + * double global_score = 2; + * + * @return The globalScore. + */ + public double getGlobalScore() { + if (rankingInfoCase_ == 2) { + return (java.lang.Double) rankingInfo_; + } + return 0D; + } + /** + * + * + *
      +     * Global score of this suggestion. Control how this suggestion would be
      +     * scored / ranked.
      +     * 
      + * + * double global_score = 2; + * + * @param value The globalScore to set. + * @return This builder for chaining. + */ + public Builder setGlobalScore(double value) { + + rankingInfoCase_ = 2; + rankingInfo_ = value; + onChanged(); + return this; + } + /** + * + * + *
      +     * Global score of this suggestion. Control how this suggestion would be
      +     * scored / ranked.
      +     * 
      + * + * double global_score = 2; + * + * @return This builder for chaining. + */ + public Builder clearGlobalScore() { + if (rankingInfoCase_ == 2) { + rankingInfoCase_ = 0; + rankingInfo_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Frequency of this suggestion. Will be used to rank suggestions when score
      +     * is not available.
      +     * 
      + * + * int64 frequency = 3; + * + * @return Whether the frequency field is set. + */ + public boolean hasFrequency() { + return rankingInfoCase_ == 3; + } + /** + * + * + *
      +     * Frequency of this suggestion. Will be used to rank suggestions when score
      +     * is not available.
      +     * 
      + * + * int64 frequency = 3; + * + * @return The frequency. + */ + public long getFrequency() { + if (rankingInfoCase_ == 3) { + return (java.lang.Long) rankingInfo_; + } + return 0L; + } + /** + * + * + *
      +     * Frequency of this suggestion. Will be used to rank suggestions when score
      +     * is not available.
      +     * 
      + * + * int64 frequency = 3; + * + * @param value The frequency to set. + * @return This builder for chaining. + */ + public Builder setFrequency(long value) { + + rankingInfoCase_ = 3; + rankingInfo_ = value; + onChanged(); + return this; + } + /** + * + * + *
      +     * Frequency of this suggestion. Will be used to rank suggestions when score
      +     * is not available.
      +     * 
      + * + * int64 frequency = 3; + * + * @return This builder for chaining. + */ + public Builder clearFrequency() { + if (rankingInfoCase_ == 3) { + rankingInfoCase_ = 0; + rankingInfo_ = null; + onChanged(); + } + return this; + } + + private java.lang.Object suggestion_ = ""; + /** + * + * + *
      +     * Required. The suggestion text.
      +     * 
      + * + * string suggestion = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The suggestion. + */ + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The suggestion text.
      +     * 
      + * + * string suggestion = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for suggestion. + */ + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The suggestion text.
      +     * 
      + * + * string suggestion = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The suggestion to set. + * @return This builder for chaining. + */ + public Builder setSuggestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + suggestion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The suggestion text.
      +     * 
      + * + * string suggestion = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSuggestion() { + suggestion_ = getDefaultInstance().getSuggestion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The suggestion text.
      +     * 
      + * + * string suggestion = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for suggestion to set. + * @return This builder for chaining. + */ + public Builder setSuggestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + suggestion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
      +     * BCP-47 language code of this suggestion.
      +     * 
      + * + * string language_code = 4; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * BCP-47 language code of this suggestion.
      +     * 
      + * + * string language_code = 4; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * BCP-47 language code of this suggestion.
      +     * 
      + * + * string language_code = 4; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * BCP-47 language code of this suggestion.
      +     * 
      + * + * string language_code = 4; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
      +     * BCP-47 language code of this suggestion.
      +     * 
      + * + * string language_code = 4; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object groupId_ = ""; + /** + * + * + *
      +     * If two suggestions have the same groupId, they will not be
      +     * returned together. Instead the one ranked higher will be returned. This can
      +     * be used to deduplicate semantically identical suggestions.
      +     * 
      + * + * string group_id = 5; + * + * @return The groupId. + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * If two suggestions have the same groupId, they will not be
      +     * returned together. Instead the one ranked higher will be returned. This can
      +     * be used to deduplicate semantically identical suggestions.
      +     * 
      + * + * string group_id = 5; + * + * @return The bytes for groupId. + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * If two suggestions have the same groupId, they will not be
      +     * returned together. Instead the one ranked higher will be returned. This can
      +     * be used to deduplicate semantically identical suggestions.
      +     * 
      + * + * string group_id = 5; + * + * @param value The groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + groupId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * If two suggestions have the same groupId, they will not be
      +     * returned together. Instead the one ranked higher will be returned. This can
      +     * be used to deduplicate semantically identical suggestions.
      +     * 
      + * + * string group_id = 5; + * + * @return This builder for chaining. + */ + public Builder clearGroupId() { + groupId_ = getDefaultInstance().getGroupId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
      +     * If two suggestions have the same groupId, they will not be
      +     * returned together. Instead the one ranked higher will be returned. This can
      +     * be used to deduplicate semantically identical suggestions.
      +     * 
      + * + * string group_id = 5; + * + * @param value The bytes for groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private double groupScore_; + /** + * + * + *
      +     * The score of this suggestion within its group.
      +     * 
      + * + * double group_score = 6; + * + * @return The groupScore. + */ + @java.lang.Override + public double getGroupScore() { + return groupScore_; + } + /** + * + * + *
      +     * The score of this suggestion within its group.
      +     * 
      + * + * double group_score = 6; + * + * @param value The groupScore to set. + * @return This builder for chaining. + */ + public Builder setGroupScore(double value) { + + groupScore_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
      +     * The score of this suggestion within its group.
      +     * 
      + * + * double group_score = 6; + * + * @return This builder for chaining. + */ + public Builder clearGroupScore() { + bitField0_ = (bitField0_ & ~0x00000020); + groupScore_ = 0D; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList alternativePhrases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAlternativePhrasesIsMutable() { + if (!alternativePhrases_.isModifiable()) { + alternativePhrases_ = new com.google.protobuf.LazyStringArrayList(alternativePhrases_); + } + bitField0_ |= 0x00000040; + } + /** + * + * + *
      +     * Alternative matching phrases for this suggestion.
      +     * 
      + * + * repeated string alternative_phrases = 7; + * + * @return A list containing the alternativePhrases. + */ + public com.google.protobuf.ProtocolStringList getAlternativePhrasesList() { + alternativePhrases_.makeImmutable(); + return alternativePhrases_; + } + /** + * + * + *
      +     * Alternative matching phrases for this suggestion.
      +     * 
      + * + * repeated string alternative_phrases = 7; + * + * @return The count of alternativePhrases. + */ + public int getAlternativePhrasesCount() { + return alternativePhrases_.size(); + } + /** + * + * + *
      +     * Alternative matching phrases for this suggestion.
      +     * 
      + * + * repeated string alternative_phrases = 7; + * + * @param index The index of the element to return. + * @return The alternativePhrases at the given index. + */ + public java.lang.String getAlternativePhrases(int index) { + return alternativePhrases_.get(index); + } + /** + * + * + *
      +     * Alternative matching phrases for this suggestion.
      +     * 
      + * + * repeated string alternative_phrases = 7; + * + * @param index The index of the value to return. + * @return The bytes of the alternativePhrases at the given index. + */ + public com.google.protobuf.ByteString getAlternativePhrasesBytes(int index) { + return alternativePhrases_.getByteString(index); + } + /** + * + * + *
      +     * Alternative matching phrases for this suggestion.
      +     * 
      + * + * repeated string alternative_phrases = 7; + * + * @param index The index to set the value at. + * @param value The alternativePhrases to set. + * @return This builder for chaining. + */ + public Builder setAlternativePhrases(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlternativePhrasesIsMutable(); + alternativePhrases_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
      +     * Alternative matching phrases for this suggestion.
      +     * 
      + * + * repeated string alternative_phrases = 7; + * + * @param value The alternativePhrases to add. + * @return This builder for chaining. + */ + public Builder addAlternativePhrases(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlternativePhrasesIsMutable(); + alternativePhrases_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
      +     * Alternative matching phrases for this suggestion.
      +     * 
      + * + * repeated string alternative_phrases = 7; + * + * @param values The alternativePhrases to add. + * @return This builder for chaining. + */ + public Builder addAllAlternativePhrases(java.lang.Iterable values) { + ensureAlternativePhrasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternativePhrases_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
      +     * Alternative matching phrases for this suggestion.
      +     * 
      + * + * repeated string alternative_phrases = 7; + * + * @return This builder for chaining. + */ + public Builder clearAlternativePhrases() { + alternativePhrases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + /** + * + * + *
      +     * Alternative matching phrases for this suggestion.
      +     * 
      + * + * repeated string alternative_phrases = 7; + * + * @param value The bytes of the alternativePhrases to add. + * @return This builder for chaining. + */ + public Builder addAlternativePhrasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAlternativePhrasesIsMutable(); + alternativePhrases_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CompletionSuggestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CompletionSuggestion) + private static final com.google.cloud.discoveryengine.v1beta.CompletionSuggestion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CompletionSuggestion(); + } + + public static com.google.cloud.discoveryengine.v1beta.CompletionSuggestion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompletionSuggestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CompletionSuggestion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionSuggestionOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionSuggestionOrBuilder.java new file mode 100644 index 000000000000..1ca6c8dd2faf --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionSuggestionOrBuilder.java @@ -0,0 +1,225 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/completion.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface CompletionSuggestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CompletionSuggestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Global score of this suggestion. Control how this suggestion would be
      +   * scored / ranked.
      +   * 
      + * + * double global_score = 2; + * + * @return Whether the globalScore field is set. + */ + boolean hasGlobalScore(); + /** + * + * + *
      +   * Global score of this suggestion. Control how this suggestion would be
      +   * scored / ranked.
      +   * 
      + * + * double global_score = 2; + * + * @return The globalScore. + */ + double getGlobalScore(); + + /** + * + * + *
      +   * Frequency of this suggestion. Will be used to rank suggestions when score
      +   * is not available.
      +   * 
      + * + * int64 frequency = 3; + * + * @return Whether the frequency field is set. + */ + boolean hasFrequency(); + /** + * + * + *
      +   * Frequency of this suggestion. Will be used to rank suggestions when score
      +   * is not available.
      +   * 
      + * + * int64 frequency = 3; + * + * @return The frequency. + */ + long getFrequency(); + + /** + * + * + *
      +   * Required. The suggestion text.
      +   * 
      + * + * string suggestion = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The suggestion. + */ + java.lang.String getSuggestion(); + /** + * + * + *
      +   * Required. The suggestion text.
      +   * 
      + * + * string suggestion = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for suggestion. + */ + com.google.protobuf.ByteString getSuggestionBytes(); + + /** + * + * + *
      +   * BCP-47 language code of this suggestion.
      +   * 
      + * + * string language_code = 4; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + /** + * + * + *
      +   * BCP-47 language code of this suggestion.
      +   * 
      + * + * string language_code = 4; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
      +   * If two suggestions have the same groupId, they will not be
      +   * returned together. Instead the one ranked higher will be returned. This can
      +   * be used to deduplicate semantically identical suggestions.
      +   * 
      + * + * string group_id = 5; + * + * @return The groupId. + */ + java.lang.String getGroupId(); + /** + * + * + *
      +   * If two suggestions have the same groupId, they will not be
      +   * returned together. Instead the one ranked higher will be returned. This can
      +   * be used to deduplicate semantically identical suggestions.
      +   * 
      + * + * string group_id = 5; + * + * @return The bytes for groupId. + */ + com.google.protobuf.ByteString getGroupIdBytes(); + + /** + * + * + *
      +   * The score of this suggestion within its group.
      +   * 
      + * + * double group_score = 6; + * + * @return The groupScore. + */ + double getGroupScore(); + + /** + * + * + *
      +   * Alternative matching phrases for this suggestion.
      +   * 
      + * + * repeated string alternative_phrases = 7; + * + * @return A list containing the alternativePhrases. + */ + java.util.List getAlternativePhrasesList(); + /** + * + * + *
      +   * Alternative matching phrases for this suggestion.
      +   * 
      + * + * repeated string alternative_phrases = 7; + * + * @return The count of alternativePhrases. + */ + int getAlternativePhrasesCount(); + /** + * + * + *
      +   * Alternative matching phrases for this suggestion.
      +   * 
      + * + * repeated string alternative_phrases = 7; + * + * @param index The index of the element to return. + * @return The alternativePhrases at the given index. + */ + java.lang.String getAlternativePhrases(int index); + /** + * + * + *
      +   * Alternative matching phrases for this suggestion.
      +   * 
      + * + * repeated string alternative_phrases = 7; + * + * @param index The index of the value to return. + * @return The bytes of the alternativePhrases at the given index. + */ + com.google.protobuf.ByteString getAlternativePhrasesBytes(int index); + + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.RankingInfoCase getRankingInfoCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java index 1984abe3108b..99455d46f864 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java @@ -136,6 +136,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_UserLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_UserLabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -234,7 +238,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005 \001(\t\"~\n\031ListConversationsResponse\022H\n\rco" + "nversations\030\001 \003(\01321.google.cloud.discove" + "ryengine.v1beta.Conversation\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"\377\035\n\022AnswerQueryRequest\022L\n\016" + + "e_token\030\002 \001(\t\"\203 \n\022AnswerQueryRequest\022L\n\016" + "serving_config\030\001 \001(\tB4\340A\002\372A.\n,discoverye" + "ngine.googleapis.com/ServingConfig\022>\n\005qu" + "ery\030\002 \001(\0132*.google.cloud.discoveryengine" @@ -254,249 +258,256 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e.cloud.discoveryengine.v1beta.AnswerQue" + "ryRequest.QueryUnderstandingSpec\022\031\n\021asyn" + "chronous_mode\030\n \001(\010\022\026\n\016user_pseudo_id\030\014 " - + "\001(\t\032\034\n\nSafetySpec\022\016\n\006enable\030\001 \001(\010\032&\n\024Rel" - + "atedQuestionsSpec\022\016\n\006enable\030\001 \001(\010\032\202\004\n\024An" - + "swerGenerationSpec\022j\n\nmodel_spec\030\001 \001(\0132V" - + ".google.cloud.discoveryengine.v1beta.Ans" - + "werQueryRequest.AnswerGenerationSpec.Mod" - + "elSpec\022l\n\013prompt_spec\030\002 \001(\0132W.google.clo" - + "ud.discoveryengine.v1beta.AnswerQueryReq" - + "uest.AnswerGenerationSpec.PromptSpec\022\031\n\021" - + "include_citations\030\003 \001(\010\022\034\n\024answer_langua" - + "ge_code\030\004 \001(\t\022 \n\030ignore_adversarial_quer" - + "y\030\005 \001(\010\022\'\n\037ignore_non_answer_seeking_que" - + "ry\030\006 \001(\010\022(\n\033ignore_low_relevant_content\030" - + "\007 \001(\010H\000\210\001\001\032\"\n\tModelSpec\022\025\n\rmodel_version" - + "\030\001 \001(\t\032\036\n\nPromptSpec\022\020\n\010preamble\030\001 \001(\tB\036" - + "\n\034_ignore_low_relevant_content\032\310\016\n\nSearc" - + "hSpec\022h\n\rsearch_params\030\001 \001(\0132O.google.cl" - + "oud.discoveryengine.v1beta.AnswerQueryRe" - + "quest.SearchSpec.SearchParamsH\000\022q\n\022searc" - + "h_result_list\030\002 \001(\0132S.google.cloud.disco" - + "veryengine.v1beta.AnswerQueryRequest.Sea" - + "rchSpec.SearchResultListH\000\032\372\001\n\014SearchPar" - + "ams\022\032\n\022max_return_results\030\001 \001(\005\022\016\n\006filte" - + "r\030\002 \001(\t\022P\n\nboost_spec\030\003 \001(\0132<.google.clo" - + "ud.discoveryengine.v1beta.SearchRequest." - + "BoostSpec\022\020\n\010order_by\030\004 \001(\t\022Z\n\020data_stor" - + "e_specs\030\007 \003(\0132@.google.cloud.discoveryen" - + "gine.v1beta.SearchRequest.DataStoreSpec\032" - + "\326\n\n\020SearchResultList\022x\n\016search_results\030\001" - + " \003(\0132`.google.cloud.discoveryengine.v1be" - + "ta.AnswerQueryRequest.SearchSpec.SearchR" - + "esultList.SearchResult\032\307\t\n\014SearchResult\022" - + "\237\001\n\032unstructured_document_info\030\001 \001(\0132y.g" - + "oogle.cloud.discoveryengine.v1beta.Answe" - + "rQueryRequest.SearchSpec.SearchResultLis" - + "t.SearchResult.UnstructuredDocumentInfoH" - + "\000\022\200\001\n\nchunk_info\030\002 \001(\0132j.google.cloud.di" - + "scoveryengine.v1beta.AnswerQueryRequest." - + "SearchSpec.SearchResultList.SearchResult" - + ".ChunkInfoH\000\032\256\006\n\030UnstructuredDocumentInf" - + "o\022>\n\010document\030\001 \001(\tB,\372A)\n\'discoveryengin" - + "e.googleapis.com/Document\022\013\n\003uri\030\002 \001(\t\022\r" - + "\n\005title\030\003 \001(\t\022\245\001\n\021document_contexts\030\004 \003(" - + "\0132\211\001.google.cloud.discoveryengine.v1beta" - + ".AnswerQueryRequest.SearchSpec.SearchRes" - + "ultList.SearchResult.UnstructuredDocumen" - + "tInfo.DocumentContext\022\251\001\n\023extractive_seg" - + "ments\030\005 \003(\0132\213\001.google.cloud.discoveryeng" - + "ine.v1beta.AnswerQueryRequest.SearchSpec" - + ".SearchResultList.SearchResult.Unstructu" - + "redDocumentInfo.ExtractiveSegment\022\247\001\n\022ex" - + "tractive_answers\030\006 \003(\0132\212\001.google.cloud.d" + + "\001(\t\022\\\n\013user_labels\030\r \003(\0132G.google.cloud." + + "discoveryengine.v1beta.AnswerQueryReques" + + "t.UserLabelsEntry\032\034\n\nSafetySpec\022\016\n\006enabl" + + "e\030\001 \001(\010\032&\n\024RelatedQuestionsSpec\022\016\n\006enabl" + + "e\030\001 \001(\010\032\202\004\n\024AnswerGenerationSpec\022j\n\nmode" + + "l_spec\030\001 \001(\0132V.google.cloud.discoveryeng" + + "ine.v1beta.AnswerQueryRequest.AnswerGene" + + "rationSpec.ModelSpec\022l\n\013prompt_spec\030\002 \001(" + + "\0132W.google.cloud.discoveryengine.v1beta." + + "AnswerQueryRequest.AnswerGenerationSpec." + + "PromptSpec\022\031\n\021include_citations\030\003 \001(\010\022\034\n" + + "\024answer_language_code\030\004 \001(\t\022 \n\030ignore_ad" + + "versarial_query\030\005 \001(\010\022\'\n\037ignore_non_answ" + + "er_seeking_query\030\006 \001(\010\022(\n\033ignore_low_rel" + + "evant_content\030\007 \001(\010H\000\210\001\001\032\"\n\tModelSpec\022\025\n" + + "\rmodel_version\030\001 \001(\t\032\036\n\nPromptSpec\022\020\n\010pr" + + "eamble\030\001 \001(\tB\036\n\034_ignore_low_relevant_con" + + "tent\032\273\017\n\nSearchSpec\022h\n\rsearch_params\030\001 \001" + + "(\0132O.google.cloud.discoveryengine.v1beta" + + ".AnswerQueryRequest.SearchSpec.SearchPar" + + "amsH\000\022q\n\022search_result_list\030\002 \001(\0132S.goog" + + "le.cloud.discoveryengine.v1beta.AnswerQu" + + "eryRequest.SearchSpec.SearchResultListH\000" + + "\032\355\002\n\014SearchParams\022\032\n\022max_return_results\030" + + "\001 \001(\005\022\016\n\006filter\030\002 \001(\t\022P\n\nboost_spec\030\003 \001(" + + "\0132<.google.cloud.discoveryengine.v1beta." + + "SearchRequest.BoostSpec\022\020\n\010order_by\030\004 \001(" + + "\t\022q\n\022search_result_mode\030\005 \001(\0162U.google.c" + + "loud.discoveryengine.v1beta.SearchReques" + + "t.ContentSearchSpec.SearchResultMode\022Z\n\020" + + "data_store_specs\030\007 \003(\0132@.google.cloud.di" + + "scoveryengine.v1beta.SearchRequest.DataS" + + "toreSpec\032\326\n\n\020SearchResultList\022x\n\016search_" + + "results\030\001 \003(\0132`.google.cloud.discoveryen" + + "gine.v1beta.AnswerQueryRequest.SearchSpe" + + "c.SearchResultList.SearchResult\032\307\t\n\014Sear" + + "chResult\022\237\001\n\032unstructured_document_info\030" + + "\001 \001(\0132y.google.cloud.discoveryengine.v1b" + + "eta.AnswerQueryRequest.SearchSpec.Search" + + "ResultList.SearchResult.UnstructuredDocu" + + "mentInfoH\000\022\200\001\n\nchunk_info\030\002 \001(\0132j.google" + + ".cloud.discoveryengine.v1beta.AnswerQuer" + + "yRequest.SearchSpec.SearchResultList.Sea" + + "rchResult.ChunkInfoH\000\032\256\006\n\030UnstructuredDo" + + "cumentInfo\022>\n\010document\030\001 \001(\tB,\372A)\n\'disco" + + "veryengine.googleapis.com/Document\022\013\n\003ur" + + "i\030\002 \001(\t\022\r\n\005title\030\003 \001(\t\022\245\001\n\021document_cont" + + "exts\030\004 \003(\0132\211\001.google.cloud.discoveryengi" + + "ne.v1beta.AnswerQueryRequest.SearchSpec." + + "SearchResultList.SearchResult.Unstructur" + + "edDocumentInfo.DocumentContext\022\251\001\n\023extra" + + "ctive_segments\030\005 \003(\0132\213\001.google.cloud.dis" + + "coveryengine.v1beta.AnswerQueryRequest.S" + + "earchSpec.SearchResultList.SearchResult." + + "UnstructuredDocumentInfo.ExtractiveSegme" + + "nt\022\247\001\n\022extractive_answers\030\006 \003(\0132\212\001.googl" + + "e.cloud.discoveryengine.v1beta.AnswerQue" + + "ryRequest.SearchSpec.SearchResultList.Se" + + "archResult.UnstructuredDocumentInfo.Extr" + + "activeAnswer\032;\n\017DocumentContext\022\027\n\017page_" + + "identifier\030\001 \001(\t\022\017\n\007content\030\002 \001(\t\032=\n\021Ext" + + "ractiveSegment\022\027\n\017page_identifier\030\001 \001(\t\022" + + "\017\n\007content\030\002 \001(\t\032<\n\020ExtractiveAnswer\022\027\n\017" + + "page_identifier\030\001 \001(\t\022\017\n\007content\030\002 \001(\t\032V" + + "\n\tChunkInfo\0228\n\005chunk\030\001 \001(\tB)\372A&\n$discove" + + "ryengine.googleapis.com/Chunk\022\017\n\007content" + + "\030\002 \001(\tB\t\n\007contentB\007\n\005input\032\323\004\n\026QueryUnde" + + "rstandingSpec\022\211\001\n\031query_classification_s" + + "pec\030\001 \001(\0132f.google.cloud.discoveryengine" + + ".v1beta.AnswerQueryRequest.QueryUndersta" + + "ndingSpec.QueryClassificationSpec\022\177\n\024que" + + "ry_rephraser_spec\030\002 \001(\0132a.google.cloud.d" + "iscoveryengine.v1beta.AnswerQueryRequest" - + ".SearchSpec.SearchResultList.SearchResul" - + "t.UnstructuredDocumentInfo.ExtractiveAns" - + "wer\032;\n\017DocumentContext\022\027\n\017page_identifie" - + "r\030\001 \001(\t\022\017\n\007content\030\002 \001(\t\032=\n\021ExtractiveSe" - + "gment\022\027\n\017page_identifier\030\001 \001(\t\022\017\n\007conten" - + "t\030\002 \001(\t\032<\n\020ExtractiveAnswer\022\027\n\017page_iden" - + "tifier\030\001 \001(\t\022\017\n\007content\030\002 \001(\t\032V\n\tChunkIn" - + "fo\0228\n\005chunk\030\001 \001(\tB)\372A&\n$discoveryengine." - + "googleapis.com/Chunk\022\017\n\007content\030\002 \001(\tB\t\n" - + "\007contentB\007\n\005input\032\323\004\n\026QueryUnderstanding" - + "Spec\022\211\001\n\031query_classification_spec\030\001 \001(\013" - + "2f.google.cloud.discoveryengine.v1beta.A" - + "nswerQueryRequest.QueryUnderstandingSpec" - + ".QueryClassificationSpec\022\177\n\024query_rephra" - + "ser_spec\030\002 \001(\0132a.google.cloud.discoverye" - + "ngine.v1beta.AnswerQueryRequest.QueryUnd" - + "erstandingSpec.QueryRephraserSpec\032\350\001\n\027Qu" - + "eryClassificationSpec\022z\n\005types\030\001 \003(\0162k.g" - + "oogle.cloud.discoveryengine.v1beta.Answe" - + "rQueryRequest.QueryUnderstandingSpec.Que" - + "ryClassificationSpec.Type\"Q\n\004Type\022\024\n\020TYP" - + "E_UNSPECIFIED\020\000\022\025\n\021ADVERSARIAL_QUERY\020\001\022\034" - + "\n\030NON_ANSWER_SEEKING_QUERY\020\002\032A\n\022QueryRep" - + "hraserSpec\022\017\n\007disable\030\001 \001(\010\022\032\n\022max_rephr" - + "ase_steps\030\002 \001(\005\"\255\001\n\023AnswerQueryResponse\022" - + ";\n\006answer\030\001 \001(\0132+.google.cloud.discovery" - + "engine.v1beta.Answer\022=\n\007session\030\002 \001(\0132,." - + "google.cloud.discoveryengine.v1beta.Sess" - + "ion\022\032\n\022answer_query_token\030\003 \001(\t\"O\n\020GetAn" - + "swerRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%disco" - + "veryengine.googleapis.com/Answer\"\234\001\n\024Cre" - + "ateSessionRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A" - + "*\n(discoveryengine.googleapis.com/DataSt" - + "ore\022B\n\007session\030\002 \001(\0132,.google.cloud.disc" - + "overyengine.v1beta.SessionB\003\340A\002\"\213\001\n\024Upda" - + "teSessionRequest\022B\n\007session\030\001 \001(\0132,.goog" - + "le.cloud.discoveryengine.v1beta.SessionB" - + "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMask\"T\n\024DeleteSessionRequest\022<\n" - + "\004name\030\001 \001(\tB.\340A\002\372A(\n&discoveryengine.goo" - + "gleapis.com/Session\"Q\n\021GetSessionRequest" - + "\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&discoveryengine." - + "googleapis.com/Session\"\240\001\n\023ListSessionsR" - + "equest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(discover" - + "yengine.googleapis.com/DataStore\022\021\n\tpage" - + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" - + "r\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"o\n\024ListSession" - + "sResponse\022>\n\010sessions\030\001 \003(\0132,.google.clo" - + "ud.discoveryengine.v1beta.Session\022\027\n\017nex" - + "t_page_token\030\002 \001(\t2\327)\n\033ConversationalSea" - + "rchService\022\277\003\n\024ConverseConversation\022@.go" - + "ogle.cloud.discoveryengine.v1beta.Conver" - + "seConversationRequest\032A.google.cloud.dis" - + "coveryengine.v1beta.ConverseConversation" - + "Response\"\241\002\332A\nname,query\202\323\344\223\002\215\002\"K/v1beta" - + "/{name=projects/*/locations/*/dataStores" - + "/*/conversations/*}:converse:\001*Z^\"Y/v1be" - + "ta/{name=projects/*/locations/*/collecti" - + "ons/*/dataStores/*/conversations/*}:conv" - + "erse:\001*Z[\"V/v1beta/{name=projects/*/loca" - + "tions/*/collections/*/engines/*/conversa" - + "tions/*}:converse:\001*\022\272\003\n\022CreateConversat" - + "ion\022>.google.cloud.discoveryengine.v1bet" - + "a.CreateConversationRequest\0321.google.clo" - + "ud.discoveryengine.v1beta.Conversation\"\260" - + "\002\332A\023parent,conversation\202\323\344\223\002\223\002\"B/v1beta/" - + "{parent=projects/*/locations/*/dataStore" - + "s/*}/conversations:\014conversationZ`\"P/v1b" - + "eta/{parent=projects/*/locations/*/colle" - + "ctions/*/dataStores/*}/conversations:\014co" - + "nversationZ]\"M/v1beta/{parent=projects/*" - + "/locations/*/collections/*/engines/*}/co" - + "nversations:\014conversation\022\346\002\n\022DeleteConv" - + "ersation\022>.google.cloud.discoveryengine." - + "v1beta.DeleteConversationRequest\032\026.googl" - + "e.protobuf.Empty\"\367\001\332A\004name\202\323\344\223\002\351\001*B/v1be" - + "ta/{name=projects/*/locations/*/dataStor" - + "es/*/conversations/*}ZR*P/v1beta/{name=p" - + "rojects/*/locations/*/collections/*/data" - + "Stores/*/conversations/*}ZO*M/v1beta/{na" - + "me=projects/*/locations/*/collections/*/" - + "engines/*/conversations/*}\022\346\003\n\022UpdateCon" - + "versation\022>.google.cloud.discoveryengine" - + ".v1beta.UpdateConversationRequest\0321.goog" - + "le.cloud.discoveryengine.v1beta.Conversa" - + "tion\"\334\002\332A\030conversation,update_mask\202\323\344\223\002\272" - + "\0022O/v1beta/{conversation.name=projects/*" - + "/locations/*/dataStores/*/conversations/" - + "*}:\014conversationZm2]/v1beta/{conversatio" - + "n.name=projects/*/locations/*/collection" - + "s/*/dataStores/*/conversations/*}:\014conve" - + "rsationZj2Z/v1beta/{conversation.name=pr" - + "ojects/*/locations/*/collections/*/engin" - + "es/*/conversations/*}:\014conversation\022\373\002\n\017" - + "GetConversation\022;.google.cloud.discovery" - + "engine.v1beta.GetConversationRequest\0321.g" - + "oogle.cloud.discoveryengine.v1beta.Conve" - + "rsation\"\367\001\332A\004name\202\323\344\223\002\351\001\022B/v1beta/{name=" - + "projects/*/locations/*/dataStores/*/conv" - + "ersations/*}ZR\022P/v1beta/{name=projects/*" - + "/locations/*/collections/*/dataStores/*/" - + "conversations/*}ZO\022M/v1beta/{name=projec" - + "ts/*/locations/*/collections/*/engines/*" - + "/conversations/*}\022\216\003\n\021ListConversations\022" - + "=.google.cloud.discoveryengine.v1beta.Li" - + "stConversationsRequest\032>.google.cloud.di" - + "scoveryengine.v1beta.ListConversationsRe" - + "sponse\"\371\001\332A\006parent\202\323\344\223\002\351\001\022B/v1beta/{pare" - + "nt=projects/*/locations/*/dataStores/*}/" - + "conversationsZR\022P/v1beta/{parent=project" - + "s/*/locations/*/collections/*/dataStores" - + "/*}/conversationsZO\022M/v1beta/{parent=pro" - + "jects/*/locations/*/collections/*/engine" - + "s/*}/conversations\022\262\003\n\013AnswerQuery\0227.goo" - + "gle.cloud.discoveryengine.v1beta.AnswerQ" - + "ueryRequest\0328.google.cloud.discoveryengi" - + "ne.v1beta.AnswerQueryResponse\"\257\002\202\323\344\223\002\250\002\"" - + "T/v1beta/{serving_config=projects/*/loca" - + "tions/*/dataStores/*/servingConfigs/*}:a" - + "nswer:\001*Zg\"b/v1beta/{serving_config=proj" - + "ects/*/locations/*/collections/*/dataSto" - + "res/*/servingConfigs/*}:answer:\001*Zd\"_/v1" - + "beta/{serving_config=projects/*/location" - + "s/*/collections/*/engines/*/servingConfi" - + "gs/*}:answer:\001*\022\370\002\n\tGetAnswer\0225.google.c" - + "loud.discoveryengine.v1beta.GetAnswerReq" - + "uest\032+.google.cloud.discoveryengine.v1be" - + "ta.Answer\"\206\002\332A\004name\202\323\344\223\002\370\001\022G/v1beta/{nam" - + "e=projects/*/locations/*/dataStores/*/se" - + "ssions/*/answers/*}ZW\022U/v1beta/{name=pro" - + "jects/*/locations/*/collections/*/dataSt" - + "ores/*/sessions/*/answers/*}ZT\022R/v1beta/" - + "{name=projects/*/locations/*/collections" - + "/*/engines/*/sessions/*/answers/*}\022\210\003\n\rC" - + "reateSession\0229.google.cloud.discoveryeng" - + "ine.v1beta.CreateSessionRequest\032,.google" - + ".cloud.discoveryengine.v1beta.Session\"\215\002" - + "\332A\016parent,session\202\323\344\223\002\365\001\"=/v1beta/{paren" - + "t=projects/*/locations/*/dataStores/*}/s" - + "essions:\007sessionZV\"K/v1beta/{parent=proj" - + "ects/*/locations/*/collections/*/dataSto" - + "res/*}/sessions:\007sessionZS\"H/v1beta/{par" - + "ent=projects/*/locations/*/collections/*" - + "/engines/*}/sessions:\007session\022\315\002\n\rDelete" - + "Session\0229.google.cloud.discoveryengine.v" - + "1beta.DeleteSessionRequest\032\026.google.prot" - + "obuf.Empty\"\350\001\332A\004name\202\323\344\223\002\332\001*=/v1beta/{na" - + "me=projects/*/locations/*/dataStores/*/s" - + "essions/*}ZM*K/v1beta/{name=projects/*/l" - + "ocations/*/collections/*/dataStores/*/se" - + "ssions/*}ZJ*H/v1beta/{name=projects/*/lo" - + "cations/*/collections/*/engines/*/sessio" - + "ns/*}\022\245\003\n\rUpdateSession\0229.google.cloud.d" - + "iscoveryengine.v1beta.UpdateSessionReque" - + "st\032,.google.cloud.discoveryengine.v1beta" - + ".Session\"\252\002\332A\023session,update_mask\202\323\344\223\002\215\002" - + "2E/v1beta/{session.name=projects/*/locat" - + "ions/*/dataStores/*/sessions/*}:\007session" - + "Z^2S/v1beta/{session.name=projects/*/loc" - + "ations/*/collections/*/dataStores/*/sess" - + "ions/*}:\007sessionZ[2P/v1beta/{session.nam" - + "e=projects/*/locations/*/collections/*/e" - + "ngines/*/sessions/*}:\007session\022\335\002\n\nGetSes" - + "sion\0226.google.cloud.discoveryengine.v1be" - + "ta.GetSessionRequest\032,.google.cloud.disc" - + "overyengine.v1beta.Session\"\350\001\332A\004name\202\323\344\223" - + "\002\332\001\022=/v1beta/{name=projects/*/locations/" - + "*/dataStores/*/sessions/*}ZM\022K/v1beta/{n" - + "ame=projects/*/locations/*/collections/*" - + "/dataStores/*/sessions/*}ZJ\022H/v1beta/{na" - + "me=projects/*/locations/*/collections/*/" - + "engines/*/sessions/*}\022\360\002\n\014ListSessions\0228" - + ".google.cloud.discoveryengine.v1beta.Lis" - + "tSessionsRequest\0329.google.cloud.discover" - + "yengine.v1beta.ListSessionsResponse\"\352\001\332A" - + "\006parent\202\323\344\223\002\332\001\022=/v1beta/{parent=projects" - + "/*/locations/*/dataStores/*}/sessionsZM\022" - + "K/v1beta/{parent=projects/*/locations/*/" - + "collections/*/dataStores/*}/sessionsZJ\022H" + + ".QueryUnderstandingSpec.QueryRephraserSp" + + "ec\032\350\001\n\027QueryClassificationSpec\022z\n\005types\030" + + "\001 \003(\0162k.google.cloud.discoveryengine.v1b" + + "eta.AnswerQueryRequest.QueryUnderstandin" + + "gSpec.QueryClassificationSpec.Type\"Q\n\004Ty" + + "pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\025\n\021ADVERSARIAL_" + + "QUERY\020\001\022\034\n\030NON_ANSWER_SEEKING_QUERY\020\002\032A\n" + + "\022QueryRephraserSpec\022\017\n\007disable\030\001 \001(\010\022\032\n\022" + + "max_rephrase_steps\030\002 \001(\005\0321\n\017UserLabelsEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\255\001\n\023" + + "AnswerQueryResponse\022;\n\006answer\030\001 \001(\0132+.go" + + "ogle.cloud.discoveryengine.v1beta.Answer" + + "\022=\n\007session\030\002 \001(\0132,.google.cloud.discove" + + "ryengine.v1beta.Session\022\032\n\022answer_query_" + + "token\030\003 \001(\t\"O\n\020GetAnswerRequest\022;\n\004name\030" + + "\001 \001(\tB-\340A\002\372A\'\n%discoveryengine.googleapi" + + "s.com/Answer\"\234\001\n\024CreateSessionRequest\022@\n" + + "\006parent\030\001 \001(\tB0\340A\002\372A*\n(discoveryengine.g" + + "oogleapis.com/DataStore\022B\n\007session\030\002 \001(\013" + + "2,.google.cloud.discoveryengine.v1beta.S" + + "essionB\003\340A\002\"\213\001\n\024UpdateSessionRequest\022B\n\007" + + "session\030\001 \001(\0132,.google.cloud.discoveryen" + + "gine.v1beta.SessionB\003\340A\002\022/\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMask\"T\n\024Del" + + "eteSessionRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&discoveryengine.googleapis.com/Session\"" + + "Q\n\021GetSessionRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372" + + "A(\n&discoveryengine.googleapis.com/Sessi" + + "on\"\240\001\n\023ListSessionsRequest\022@\n\006parent\030\001 \001" + + "(\tB0\340A\002\372A*\n(discoveryengine.googleapis.c" + + "om/DataStore\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030" + + "\005 \001(\t\"o\n\024ListSessionsResponse\022>\n\010session" + + "s\030\001 \003(\0132,.google.cloud.discoveryengine.v" + + "1beta.Session\022\027\n\017next_page_token\030\002 \001(\t2\327" + + ")\n\033ConversationalSearchService\022\277\003\n\024Conve" + + "rseConversation\022@.google.cloud.discovery" + + "engine.v1beta.ConverseConversationReques" + + "t\032A.google.cloud.discoveryengine.v1beta." + + "ConverseConversationResponse\"\241\002\332A\nname,q" + + "uery\202\323\344\223\002\215\002\"K/v1beta/{name=projects/*/lo" + + "cations/*/dataStores/*/conversations/*}:" + + "converse:\001*Z^\"Y/v1beta/{name=projects/*/" + + "locations/*/collections/*/dataStores/*/c" + + "onversations/*}:converse:\001*Z[\"V/v1beta/{" + + "name=projects/*/locations/*/collections/" + + "*/engines/*/conversations/*}:converse:\001*" + + "\022\272\003\n\022CreateConversation\022>.google.cloud.d" + + "iscoveryengine.v1beta.CreateConversation" + + "Request\0321.google.cloud.discoveryengine.v" + + "1beta.Conversation\"\260\002\332A\023parent,conversat" + + "ion\202\323\344\223\002\223\002\"B/v1beta/{parent=projects/*/l" + + "ocations/*/dataStores/*}/conversations:\014" + + "conversationZ`\"P/v1beta/{parent=projects" + + "/*/locations/*/collections/*/dataStores/" + + "*}/conversations:\014conversationZ]\"M/v1bet" + + "a/{parent=projects/*/locations/*/collect" + + "ions/*/engines/*}/conversations:\014convers" + + "ation\022\346\002\n\022DeleteConversation\022>.google.cl" + + "oud.discoveryengine.v1beta.DeleteConvers" + + "ationRequest\032\026.google.protobuf.Empty\"\367\001\332" + + "A\004name\202\323\344\223\002\351\001*B/v1beta/{name=projects/*/" + + "locations/*/dataStores/*/conversations/*" + + "}ZR*P/v1beta/{name=projects/*/locations/" + + "*/collections/*/dataStores/*/conversatio" + + "ns/*}ZO*M/v1beta/{name=projects/*/locati" + + "ons/*/collections/*/engines/*/conversati" + + "ons/*}\022\346\003\n\022UpdateConversation\022>.google.c" + + "loud.discoveryengine.v1beta.UpdateConver" + + "sationRequest\0321.google.cloud.discoveryen" + + "gine.v1beta.Conversation\"\334\002\332A\030conversati" + + "on,update_mask\202\323\344\223\002\272\0022O/v1beta/{conversa" + + "tion.name=projects/*/locations/*/dataSto" + + "res/*/conversations/*}:\014conversationZm2]" + + "/v1beta/{conversation.name=projects/*/lo" + + "cations/*/collections/*/dataStores/*/con" + + "versations/*}:\014conversationZj2Z/v1beta/{" + + "conversation.name=projects/*/locations/*" + + "/collections/*/engines/*/conversations/*" + + "}:\014conversation\022\373\002\n\017GetConversation\022;.go" + + "ogle.cloud.discoveryengine.v1beta.GetCon" + + "versationRequest\0321.google.cloud.discover" + + "yengine.v1beta.Conversation\"\367\001\332A\004name\202\323\344" + + "\223\002\351\001\022B/v1beta/{name=projects/*/locations" + + "/*/dataStores/*/conversations/*}ZR\022P/v1b" + + "eta/{name=projects/*/locations/*/collect" + + "ions/*/dataStores/*/conversations/*}ZO\022M" + + "/v1beta/{name=projects/*/locations/*/col" + + "lections/*/engines/*/conversations/*}\022\216\003" + + "\n\021ListConversations\022=.google.cloud.disco" + + "veryengine.v1beta.ListConversationsReque" + + "st\032>.google.cloud.discoveryengine.v1beta" + + ".ListConversationsResponse\"\371\001\332A\006parent\202\323" + + "\344\223\002\351\001\022B/v1beta/{parent=projects/*/locati" + + "ons/*/dataStores/*}/conversationsZR\022P/v1" + + "beta/{parent=projects/*/locations/*/coll" + + "ections/*/dataStores/*}/conversationsZO\022" + + "M/v1beta/{parent=projects/*/locations/*/" + + "collections/*/engines/*}/conversations\022\262" + + "\003\n\013AnswerQuery\0227.google.cloud.discoverye" + + "ngine.v1beta.AnswerQueryRequest\0328.google" + + ".cloud.discoveryengine.v1beta.AnswerQuer" + + "yResponse\"\257\002\202\323\344\223\002\250\002\"T/v1beta/{serving_co" + + "nfig=projects/*/locations/*/dataStores/*" + + "/servingConfigs/*}:answer:\001*Zg\"b/v1beta/" + + "{serving_config=projects/*/locations/*/c" + + "ollections/*/dataStores/*/servingConfigs" + + "/*}:answer:\001*Zd\"_/v1beta/{serving_config" + + "=projects/*/locations/*/collections/*/en" + + "gines/*/servingConfigs/*}:answer:\001*\022\370\002\n\t" + + "GetAnswer\0225.google.cloud.discoveryengine" + + ".v1beta.GetAnswerRequest\032+.google.cloud." + + "discoveryengine.v1beta.Answer\"\206\002\332A\004name\202" + + "\323\344\223\002\370\001\022G/v1beta/{name=projects/*/locatio" + + "ns/*/dataStores/*/sessions/*/answers/*}Z" + + "W\022U/v1beta/{name=projects/*/locations/*/" + + "collections/*/dataStores/*/sessions/*/an" + + "swers/*}ZT\022R/v1beta/{name=projects/*/loc" + + "ations/*/collections/*/engines/*/session" + + "s/*/answers/*}\022\210\003\n\rCreateSession\0229.googl" + + "e.cloud.discoveryengine.v1beta.CreateSes" + + "sionRequest\032,.google.cloud.discoveryengi" + + "ne.v1beta.Session\"\215\002\332A\016parent,session\202\323\344" + + "\223\002\365\001\"=/v1beta/{parent=projects/*/locatio" + + "ns/*/dataStores/*}/sessions:\007sessionZV\"K" + "/v1beta/{parent=projects/*/locations/*/c" - + "ollections/*/engines/*}/sessions\032R\312A\036dis" - + "coveryengine.googleapis.com\322A.https://ww" - + "w.googleapis.com/auth/cloud-platformB\247\002\n" - + "\'com.google.cloud.discoveryengine.v1beta" - + "B ConversationalSearchServiceProtoP\001ZQcl" - + "oud.google.com/go/discoveryengine/apiv1b" - + "eta/discoveryenginepb;discoveryenginepb\242" - + "\002\017DISCOVERYENGINE\252\002#Google.Cloud.Discove" - + "ryEngine.V1Beta\312\002#Google\\Cloud\\Discovery" - + "Engine\\V1beta\352\002&Google::Cloud::Discovery" - + "Engine::V1betab\006proto3" + + "ollections/*/dataStores/*}/sessions:\007ses" + + "sionZS\"H/v1beta/{parent=projects/*/locat" + + "ions/*/collections/*/engines/*}/sessions" + + ":\007session\022\315\002\n\rDeleteSession\0229.google.clo" + + "ud.discoveryengine.v1beta.DeleteSessionR" + + "equest\032\026.google.protobuf.Empty\"\350\001\332A\004name" + + "\202\323\344\223\002\332\001*=/v1beta/{name=projects/*/locati" + + "ons/*/dataStores/*/sessions/*}ZM*K/v1bet" + + "a/{name=projects/*/locations/*/collectio" + + "ns/*/dataStores/*/sessions/*}ZJ*H/v1beta" + + "/{name=projects/*/locations/*/collection" + + "s/*/engines/*/sessions/*}\022\245\003\n\rUpdateSess" + + "ion\0229.google.cloud.discoveryengine.v1bet" + + "a.UpdateSessionRequest\032,.google.cloud.di" + + "scoveryengine.v1beta.Session\"\252\002\332A\023sessio" + + "n,update_mask\202\323\344\223\002\215\0022E/v1beta/{session.n" + + "ame=projects/*/locations/*/dataStores/*/" + + "sessions/*}:\007sessionZ^2S/v1beta/{session" + + ".name=projects/*/locations/*/collections" + + "/*/dataStores/*/sessions/*}:\007sessionZ[2P" + + "/v1beta/{session.name=projects/*/locatio" + + "ns/*/collections/*/engines/*/sessions/*}" + + ":\007session\022\335\002\n\nGetSession\0226.google.cloud." + + "discoveryengine.v1beta.GetSessionRequest" + + "\032,.google.cloud.discoveryengine.v1beta.S" + + "ession\"\350\001\332A\004name\202\323\344\223\002\332\001\022=/v1beta/{name=p" + + "rojects/*/locations/*/dataStores/*/sessi" + + "ons/*}ZM\022K/v1beta/{name=projects/*/locat" + + "ions/*/collections/*/dataStores/*/sessio" + + "ns/*}ZJ\022H/v1beta/{name=projects/*/locati" + + "ons/*/collections/*/engines/*/sessions/*" + + "}\022\360\002\n\014ListSessions\0228.google.cloud.discov" + + "eryengine.v1beta.ListSessionsRequest\0329.g" + + "oogle.cloud.discoveryengine.v1beta.ListS" + + "essionsResponse\"\352\001\332A\006parent\202\323\344\223\002\332\001\022=/v1b" + + "eta/{parent=projects/*/locations/*/dataS" + + "tores/*}/sessionsZM\022K/v1beta/{parent=pro" + + "jects/*/locations/*/collections/*/dataSt" + + "ores/*}/sessionsZJ\022H/v1beta/{parent=proj" + + "ects/*/locations/*/collections/*/engines" + + "/*}/sessions\032R\312A\036discoveryengine.googlea" + + "pis.com\322A.https://www.googleapis.com/aut" + + "h/cloud-platformB\247\002\n\'com.google.cloud.di" + + "scoveryengine.v1betaB ConversationalSear" + + "chServiceProtoP\001ZQcloud.google.com/go/di" + + "scoveryengine/apiv1beta/discoveryenginep" + + "b;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002#" + + "Google.Cloud.DiscoveryEngine.V1Beta\312\002#Go" + + "ogle\\Cloud\\DiscoveryEngine\\V1beta\352\002&Goog" + + "le::Cloud::DiscoveryEngine::V1betab\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -611,6 +622,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QueryUnderstandingSpec", "AsynchronousMode", "UserPseudoId", + "UserLabels", }); internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_descriptor @@ -686,7 +698,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchParams_descriptor, new java.lang.String[] { - "MaxReturnResults", "Filter", "BoostSpec", "OrderBy", "DataStoreSpecs", + "MaxReturnResults", + "Filter", + "BoostSpec", + "OrderBy", + "SearchResultMode", + "DataStoreSpecs", }); internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_descriptor = internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_descriptor @@ -793,6 +810,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Disable", "MaxRephraseSteps", }); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_UserLabelsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_descriptor + .getNestedTypes() + .get(5); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_UserLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_UserLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryResponse_fieldAccessorTable = diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequest.java index 97a97f1447df..18730f45b04a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequest.java @@ -270,6 +270,31 @@ public boolean getCreateAdvancedSiteSearch() { return createAdvancedSiteSearch_; } + public static final int SKIP_DEFAULT_SCHEMA_CREATION_FIELD_NUMBER = 7; + private boolean skipDefaultSchemaCreation_ = false; + /** + * + * + *
      +   * A boolean flag indicating whether to skip the default schema creation for
      +   * the data store. Only enable this flag if you are certain that the default
      +   * schema is incompatible with your use case.
      +   *
      +   * If set to true, you must manually create a schema for the data store before
      +   * any documents can be ingested.
      +   *
      +   * This flag cannot be specified if `data_store.starting_schema` is specified.
      +   * 
      + * + * bool skip_default_schema_creation = 7; + * + * @return The skipDefaultSchemaCreation. + */ + @java.lang.Override + public boolean getSkipDefaultSchemaCreation() { + return skipDefaultSchemaCreation_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -296,6 +321,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createAdvancedSiteSearch_ != false) { output.writeBool(4, createAdvancedSiteSearch_); } + if (skipDefaultSchemaCreation_ != false) { + output.writeBool(7, skipDefaultSchemaCreation_); + } getUnknownFields().writeTo(output); } @@ -317,6 +345,9 @@ public int getSerializedSize() { if (createAdvancedSiteSearch_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, createAdvancedSiteSearch_); } + if (skipDefaultSchemaCreation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, skipDefaultSchemaCreation_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -340,6 +371,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getDataStoreId().equals(other.getDataStoreId())) return false; if (getCreateAdvancedSiteSearch() != other.getCreateAdvancedSiteSearch()) return false; + if (getSkipDefaultSchemaCreation() != other.getSkipDefaultSchemaCreation()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -361,6 +393,8 @@ public int hashCode() { hash = (53 * hash) + getDataStoreId().hashCode(); hash = (37 * hash) + CREATE_ADVANCED_SITE_SEARCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreateAdvancedSiteSearch()); + hash = (37 * hash) + SKIP_DEFAULT_SCHEMA_CREATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipDefaultSchemaCreation()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -520,6 +554,7 @@ public Builder clear() { } dataStoreId_ = ""; createAdvancedSiteSearch_ = false; + skipDefaultSchemaCreation_ = false; return this; } @@ -572,6 +607,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000008) != 0)) { result.createAdvancedSiteSearch_ = createAdvancedSiteSearch_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.skipDefaultSchemaCreation_ = skipDefaultSchemaCreation_; + } result.bitField0_ |= to_bitField0_; } @@ -638,6 +676,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CreateDataStore if (other.getCreateAdvancedSiteSearch() != false) { setCreateAdvancedSiteSearch(other.getCreateAdvancedSiteSearch()); } + if (other.getSkipDefaultSchemaCreation() != false) { + setSkipDefaultSchemaCreation(other.getSkipDefaultSchemaCreation()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -688,6 +729,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 56: + { + skipDefaultSchemaCreation_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1248,6 +1295,80 @@ public Builder clearCreateAdvancedSiteSearch() { return this; } + private boolean skipDefaultSchemaCreation_; + /** + * + * + *
      +     * A boolean flag indicating whether to skip the default schema creation for
      +     * the data store. Only enable this flag if you are certain that the default
      +     * schema is incompatible with your use case.
      +     *
      +     * If set to true, you must manually create a schema for the data store before
      +     * any documents can be ingested.
      +     *
      +     * This flag cannot be specified if `data_store.starting_schema` is specified.
      +     * 
      + * + * bool skip_default_schema_creation = 7; + * + * @return The skipDefaultSchemaCreation. + */ + @java.lang.Override + public boolean getSkipDefaultSchemaCreation() { + return skipDefaultSchemaCreation_; + } + /** + * + * + *
      +     * A boolean flag indicating whether to skip the default schema creation for
      +     * the data store. Only enable this flag if you are certain that the default
      +     * schema is incompatible with your use case.
      +     *
      +     * If set to true, you must manually create a schema for the data store before
      +     * any documents can be ingested.
      +     *
      +     * This flag cannot be specified if `data_store.starting_schema` is specified.
      +     * 
      + * + * bool skip_default_schema_creation = 7; + * + * @param value The skipDefaultSchemaCreation to set. + * @return This builder for chaining. + */ + public Builder setSkipDefaultSchemaCreation(boolean value) { + + skipDefaultSchemaCreation_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * A boolean flag indicating whether to skip the default schema creation for
      +     * the data store. Only enable this flag if you are certain that the default
      +     * schema is incompatible with your use case.
      +     *
      +     * If set to true, you must manually create a schema for the data store before
      +     * any documents can be ingested.
      +     *
      +     * This flag cannot be specified if `data_store.starting_schema` is specified.
      +     * 
      + * + * bool skip_default_schema_creation = 7; + * + * @return This builder for chaining. + */ + public Builder clearSkipDefaultSchemaCreation() { + bitField0_ = (bitField0_ & ~0x00000010); + skipDefaultSchemaCreation_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequestOrBuilder.java index 90401dec8858..9f8669750744 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequestOrBuilder.java @@ -154,4 +154,24 @@ public interface CreateDataStoreRequestOrBuilder * @return The createAdvancedSiteSearch. */ boolean getCreateAdvancedSiteSearch(); + + /** + * + * + *
      +   * A boolean flag indicating whether to skip the default schema creation for
      +   * the data store. Only enable this flag if you are certain that the default
      +   * schema is incompatible with your use case.
      +   *
      +   * If set to true, you must manually create a schema for the data store before
      +   * any documents can be ingested.
      +   *
      +   * This flag cannot be specified if `data_store.starting_schema` is specified.
      +   * 
      + * + * bool skip_default_schema_creation = 7; + * + * @return The skipDefaultSchemaCreation. + */ + boolean getSkipDefaultSchemaCreation(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateEvaluationMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateEvaluationMetadata.java new file mode 100644 index 000000000000..d83cedf53201 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateEvaluationMetadata.java @@ -0,0 +1,443 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Metadata for
      + * [EvaluationService.CreateEvaluation][google.cloud.discoveryengine.v1beta.EvaluationService.CreateEvaluation]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata} + */ +public final class CreateEvaluationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata) + CreateEvaluationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateEvaluationMetadata.newBuilder() to construct. + private CreateEvaluationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateEvaluationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateEvaluationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateEvaluationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateEvaluationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata.class, + com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata other = + (com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Metadata for
      +   * [EvaluationService.CreateEvaluation][google.cloud.discoveryengine.v1beta.EvaluationService.CreateEvaluation]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata) + com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateEvaluationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateEvaluationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata.class, + com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateEvaluationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata build() { + com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata buildPartial() { + com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata result = + new com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata) + private static final com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEvaluationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateEvaluationMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateEvaluationMetadataOrBuilder.java new file mode 100644 index 000000000000..a4932b923200 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateEvaluationMetadataOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface CreateEvaluationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateEvaluationRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateEvaluationRequest.java new file mode 100644 index 000000000000..a01e55dbf4fb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateEvaluationRequest.java @@ -0,0 +1,975 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [EvaluationService.CreateEvaluation][google.cloud.discoveryengine.v1beta.EvaluationService.CreateEvaluation]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateEvaluationRequest} + */ +public final class CreateEvaluationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CreateEvaluationRequest) + CreateEvaluationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateEvaluationRequest.newBuilder() to construct. + private CreateEvaluationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateEvaluationRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateEvaluationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest.class, + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVALUATION_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.Evaluation evaluation_; + /** + * + * + *
      +   * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +   * to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluation field is set. + */ + @java.lang.Override + public boolean hasEvaluation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +   * to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluation. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation getEvaluation() { + return evaluation_ == null + ? com.google.cloud.discoveryengine.v1beta.Evaluation.getDefaultInstance() + : evaluation_; + } + /** + * + * + *
      +   * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +   * to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.EvaluationOrBuilder getEvaluationOrBuilder() { + return evaluation_ == null + ? com.google.cloud.discoveryengine.v1beta.Evaluation.getDefaultInstance() + : evaluation_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEvaluation()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEvaluation()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest other = + (com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasEvaluation() != other.hasEvaluation()) return false; + if (hasEvaluation()) { + if (!getEvaluation().equals(other.getEvaluation())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasEvaluation()) { + hash = (37 * hash) + EVALUATION_FIELD_NUMBER; + hash = (53 * hash) + getEvaluation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [EvaluationService.CreateEvaluation][google.cloud.discoveryengine.v1beta.EvaluationService.CreateEvaluation]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateEvaluationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.CreateEvaluationRequest) + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest.class, + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEvaluationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + evaluation_ = null; + if (evaluationBuilder_ != null) { + evaluationBuilder_.dispose(); + evaluationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateEvaluationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest build() { + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest result = + new com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.evaluation_ = evaluationBuilder_ == null ? evaluation_ : evaluationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEvaluation()) { + mergeEvaluation(other.getEvaluation()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEvaluationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.Evaluation evaluation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Evaluation, + com.google.cloud.discoveryengine.v1beta.Evaluation.Builder, + com.google.cloud.discoveryengine.v1beta.EvaluationOrBuilder> + evaluationBuilder_; + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluation field is set. + */ + public boolean hasEvaluation() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluation. + */ + public com.google.cloud.discoveryengine.v1beta.Evaluation getEvaluation() { + if (evaluationBuilder_ == null) { + return evaluation_ == null + ? com.google.cloud.discoveryengine.v1beta.Evaluation.getDefaultInstance() + : evaluation_; + } else { + return evaluationBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEvaluation(com.google.cloud.discoveryengine.v1beta.Evaluation value) { + if (evaluationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluation_ = value; + } else { + evaluationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEvaluation( + com.google.cloud.discoveryengine.v1beta.Evaluation.Builder builderForValue) { + if (evaluationBuilder_ == null) { + evaluation_ = builderForValue.build(); + } else { + evaluationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEvaluation(com.google.cloud.discoveryengine.v1beta.Evaluation value) { + if (evaluationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && evaluation_ != null + && evaluation_ + != com.google.cloud.discoveryengine.v1beta.Evaluation.getDefaultInstance()) { + getEvaluationBuilder().mergeFrom(value); + } else { + evaluation_ = value; + } + } else { + evaluationBuilder_.mergeFrom(value); + } + if (evaluation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEvaluation() { + bitField0_ = (bitField0_ & ~0x00000002); + evaluation_ = null; + if (evaluationBuilder_ != null) { + evaluationBuilder_.dispose(); + evaluationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Evaluation.Builder getEvaluationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEvaluationFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.EvaluationOrBuilder getEvaluationOrBuilder() { + if (evaluationBuilder_ != null) { + return evaluationBuilder_.getMessageOrBuilder(); + } else { + return evaluation_ == null + ? com.google.cloud.discoveryengine.v1beta.Evaluation.getDefaultInstance() + : evaluation_; + } + } + /** + * + * + *
      +     * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +     * to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Evaluation, + com.google.cloud.discoveryengine.v1beta.Evaluation.Builder, + com.google.cloud.discoveryengine.v1beta.EvaluationOrBuilder> + getEvaluationFieldBuilder() { + if (evaluationBuilder_ == null) { + evaluationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Evaluation, + com.google.cloud.discoveryengine.v1beta.Evaluation.Builder, + com.google.cloud.discoveryengine.v1beta.EvaluationOrBuilder>( + getEvaluation(), getParentForChildren(), isClean()); + evaluation_ = null; + } + return evaluationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CreateEvaluationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CreateEvaluationRequest) + private static final com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateEvaluationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateEvaluationRequestOrBuilder.java new file mode 100644 index 000000000000..bf5069b3bb00 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateEvaluationRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface CreateEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +   * to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluation field is set. + */ + boolean hasEvaluation(); + /** + * + * + *
      +   * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +   * to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluation. + */ + com.google.cloud.discoveryengine.v1beta.Evaluation getEvaluation(); + /** + * + * + *
      +   * Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
      +   * to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.EvaluationOrBuilder getEvaluationOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSampleQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSampleQueryRequest.java new file mode 100644 index 000000000000..59fc46742521 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSampleQueryRequest.java @@ -0,0 +1,1277 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [SampleQueryService.CreateSampleQuery][google.cloud.discoveryengine.v1beta.SampleQueryService.CreateSampleQuery]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest} + */ +public final class CreateSampleQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest) + CreateSampleQueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSampleQueryRequest.newBuilder() to construct. + private CreateSampleQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSampleQueryRequest() { + parent_ = ""; + sampleQueryId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSampleQueryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAMPLE_QUERY_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.SampleQuery sampleQuery_; + /** + * + * + *
      +   * Required. The
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuery field is set. + */ + @java.lang.Override + public boolean hasSampleQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Required. The
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuery. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQuery() { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + /** + * + * + *
      +   * Required. The
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder getSampleQueryOrBuilder() { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + + public static final int SAMPLE_QUERY_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sampleQueryId_ = ""; + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will
      +   * become the final component of the
      +   * [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the
      +   * same
      +   * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleQueryId. + */ + @java.lang.Override + public java.lang.String getSampleQueryId() { + java.lang.Object ref = sampleQueryId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleQueryId_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will
      +   * become the final component of the
      +   * [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the
      +   * same
      +   * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sampleQueryId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSampleQueryIdBytes() { + java.lang.Object ref = sampleQueryId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleQueryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSampleQuery()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleQueryId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sampleQueryId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSampleQuery()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleQueryId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sampleQueryId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest other = + (com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasSampleQuery() != other.hasSampleQuery()) return false; + if (hasSampleQuery()) { + if (!getSampleQuery().equals(other.getSampleQuery())) return false; + } + if (!getSampleQueryId().equals(other.getSampleQueryId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSampleQuery()) { + hash = (37 * hash) + SAMPLE_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuery().hashCode(); + } + hash = (37 * hash) + SAMPLE_QUERY_ID_FIELD_NUMBER; + hash = (53 * hash) + getSampleQueryId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQueryService.CreateSampleQuery][google.cloud.discoveryengine.v1beta.SampleQueryService.CreateSampleQuery]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest) + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSampleQueryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + sampleQuery_ = null; + if (sampleQueryBuilder_ != null) { + sampleQueryBuilder_.dispose(); + sampleQueryBuilder_ = null; + } + sampleQueryId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest build() { + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest result = + new com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sampleQuery_ = + sampleQueryBuilder_ == null ? sampleQuery_ : sampleQueryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sampleQueryId_ = sampleQueryId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSampleQuery()) { + mergeSampleQuery(other.getSampleQuery()); + } + if (!other.getSampleQueryId().isEmpty()) { + sampleQueryId_ = other.sampleQueryId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSampleQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + sampleQueryId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.SampleQuery sampleQuery_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder> + sampleQueryBuilder_; + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuery field is set. + */ + public boolean hasSampleQuery() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuery. + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQuery() { + if (sampleQueryBuilder_ == null) { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance() + : sampleQuery_; + } else { + return sampleQueryBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuery(com.google.cloud.discoveryengine.v1beta.SampleQuery value) { + if (sampleQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sampleQuery_ = value; + } else { + sampleQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuery( + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder builderForValue) { + if (sampleQueryBuilder_ == null) { + sampleQuery_ = builderForValue.build(); + } else { + sampleQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSampleQuery(com.google.cloud.discoveryengine.v1beta.SampleQuery value) { + if (sampleQueryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && sampleQuery_ != null + && sampleQuery_ + != com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance()) { + getSampleQueryBuilder().mergeFrom(value); + } else { + sampleQuery_ = value; + } + } else { + sampleQueryBuilder_.mergeFrom(value); + } + if (sampleQuery_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSampleQuery() { + bitField0_ = (bitField0_ & ~0x00000002); + sampleQuery_ = null; + if (sampleQueryBuilder_ != null) { + sampleQueryBuilder_.dispose(); + sampleQueryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder getSampleQueryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSampleQueryFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder getSampleQueryOrBuilder() { + if (sampleQueryBuilder_ != null) { + return sampleQueryBuilder_.getMessageOrBuilder(); + } else { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder> + getSampleQueryFieldBuilder() { + if (sampleQueryBuilder_ == null) { + sampleQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder>( + getSampleQuery(), getParentForChildren(), isClean()); + sampleQuery_ = null; + } + return sampleQueryBuilder_; + } + + private java.lang.Object sampleQueryId_ = ""; + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will
      +     * become the final component of the
      +     * [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the
      +     * same
      +     * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleQueryId. + */ + public java.lang.String getSampleQueryId() { + java.lang.Object ref = sampleQueryId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleQueryId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will
      +     * become the final component of the
      +     * [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the
      +     * same
      +     * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sampleQueryId. + */ + public com.google.protobuf.ByteString getSampleQueryIdBytes() { + java.lang.Object ref = sampleQueryId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleQueryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will
      +     * become the final component of the
      +     * [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the
      +     * same
      +     * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sampleQueryId to set. + * @return This builder for chaining. + */ + public Builder setSampleQueryId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sampleQueryId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will
      +     * become the final component of the
      +     * [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the
      +     * same
      +     * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSampleQueryId() { + sampleQueryId_ = getDefaultInstance().getSampleQueryId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will
      +     * become the final component of the
      +     * [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the
      +     * same
      +     * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for sampleQueryId to set. + * @return This builder for chaining. + */ + public Builder setSampleQueryIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sampleQueryId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest) + private static final com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSampleQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSampleQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSampleQueryRequestOrBuilder.java new file mode 100644 index 000000000000..7fff72d240a2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSampleQueryRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface CreateSampleQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Required. The
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuery field is set. + */ + boolean hasSampleQuery(); + /** + * + * + *
      +   * Required. The
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuery. + */ + com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQuery(); + /** + * + * + *
      +   * Required. The
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder getSampleQueryOrBuilder(); + + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will
      +   * become the final component of the
      +   * [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the
      +   * same
      +   * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleQueryId. + */ + java.lang.String getSampleQueryId(); + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will
      +   * become the final component of the
      +   * [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the
      +   * same
      +   * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sampleQueryId. + */ + com.google.protobuf.ByteString getSampleQueryIdBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSampleQuerySetRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSampleQuerySetRequest.java new file mode 100644 index 000000000000..2f7f7a936b6e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSampleQuerySetRequest.java @@ -0,0 +1,1304 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [SampleQuerySetService.CreateSampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySetService.CreateSampleQuerySet]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest} + */ +public final class CreateSampleQuerySetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest) + CreateSampleQuerySetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSampleQuerySetRequest.newBuilder() to construct. + private CreateSampleQuerySetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSampleQuerySetRequest() { + parent_ = ""; + sampleQuerySetId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSampleQuerySetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAMPLE_QUERY_SET_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.SampleQuerySet sampleQuerySet_; + /** + * + * + *
      +   * Required. The
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +   * create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuerySet field is set. + */ + @java.lang.Override + public boolean hasSampleQuerySet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Required. The
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +   * create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuerySet. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet getSampleQuerySet() { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } + /** + * + * + *
      +   * Required. The
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +   * create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder + getSampleQuerySetOrBuilder() { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } + + public static final int SAMPLE_QUERY_SET_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sampleQuerySetId_ = ""; + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], which
      +   * will become the final component of the
      +   * [SampleQuerySet.name][google.cloud.discoveryengine.v1beta.SampleQuerySet.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s with
      +   * the same
      +   * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleQuerySetId. + */ + @java.lang.Override + public java.lang.String getSampleQuerySetId() { + java.lang.Object ref = sampleQuerySetId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleQuerySetId_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], which
      +   * will become the final component of the
      +   * [SampleQuerySet.name][google.cloud.discoveryengine.v1beta.SampleQuerySet.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s with
      +   * the same
      +   * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sampleQuerySetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSampleQuerySetIdBytes() { + java.lang.Object ref = sampleQuerySetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleQuerySetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSampleQuerySet()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleQuerySetId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sampleQuerySetId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSampleQuerySet()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleQuerySetId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sampleQuerySetId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest other = + (com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasSampleQuerySet() != other.hasSampleQuerySet()) return false; + if (hasSampleQuerySet()) { + if (!getSampleQuerySet().equals(other.getSampleQuerySet())) return false; + } + if (!getSampleQuerySetId().equals(other.getSampleQuerySetId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSampleQuerySet()) { + hash = (37 * hash) + SAMPLE_QUERY_SET_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuerySet().hashCode(); + } + hash = (37 * hash) + SAMPLE_QUERY_SET_ID_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuerySetId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQuerySetService.CreateSampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySetService.CreateSampleQuerySet]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest) + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSampleQuerySetFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + sampleQuerySet_ = null; + if (sampleQuerySetBuilder_ != null) { + sampleQuerySetBuilder_.dispose(); + sampleQuerySetBuilder_ = null; + } + sampleQuerySetId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest build() { + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest result = + new com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sampleQuerySet_ = + sampleQuerySetBuilder_ == null ? sampleQuerySet_ : sampleQuerySetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sampleQuerySetId_ = sampleQuerySetId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSampleQuerySet()) { + mergeSampleQuerySet(other.getSampleQuerySet()); + } + if (!other.getSampleQuerySetId().isEmpty()) { + sampleQuerySetId_ = other.sampleQuerySetId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSampleQuerySetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + sampleQuerySetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.SampleQuerySet sampleQuerySet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuerySet, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder> + sampleQuerySetBuilder_; + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuerySet field is set. + */ + public boolean hasSampleQuerySet() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuerySet. + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet getSampleQuerySet() { + if (sampleQuerySetBuilder_ == null) { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } else { + return sampleQuerySetBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuerySet(com.google.cloud.discoveryengine.v1beta.SampleQuerySet value) { + if (sampleQuerySetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sampleQuerySet_ = value; + } else { + sampleQuerySetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder builderForValue) { + if (sampleQuerySetBuilder_ == null) { + sampleQuerySet_ = builderForValue.build(); + } else { + sampleQuerySetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.SampleQuerySet value) { + if (sampleQuerySetBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && sampleQuerySet_ != null + && sampleQuerySet_ + != com.google.cloud.discoveryengine.v1beta.SampleQuerySet.getDefaultInstance()) { + getSampleQuerySetBuilder().mergeFrom(value); + } else { + sampleQuerySet_ = value; + } + } else { + sampleQuerySetBuilder_.mergeFrom(value); + } + if (sampleQuerySet_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSampleQuerySet() { + bitField0_ = (bitField0_ & ~0x00000002); + sampleQuerySet_ = null; + if (sampleQuerySetBuilder_ != null) { + sampleQuerySetBuilder_.dispose(); + sampleQuerySetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder + getSampleQuerySetBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSampleQuerySetFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder + getSampleQuerySetOrBuilder() { + if (sampleQuerySetBuilder_ != null) { + return sampleQuerySetBuilder_.getMessageOrBuilder(); + } else { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } + } + /** + * + * + *
      +     * Required. The
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +     * create.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuerySet, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder> + getSampleQuerySetFieldBuilder() { + if (sampleQuerySetBuilder_ == null) { + sampleQuerySetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuerySet, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder>( + getSampleQuerySet(), getParentForChildren(), isClean()); + sampleQuerySet_ = null; + } + return sampleQuerySetBuilder_; + } + + private java.lang.Object sampleQuerySetId_ = ""; + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], which
      +     * will become the final component of the
      +     * [SampleQuerySet.name][google.cloud.discoveryengine.v1beta.SampleQuerySet.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s with
      +     * the same
      +     * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleQuerySetId. + */ + public java.lang.String getSampleQuerySetId() { + java.lang.Object ref = sampleQuerySetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleQuerySetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], which
      +     * will become the final component of the
      +     * [SampleQuerySet.name][google.cloud.discoveryengine.v1beta.SampleQuerySet.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s with
      +     * the same
      +     * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sampleQuerySetId. + */ + public com.google.protobuf.ByteString getSampleQuerySetIdBytes() { + java.lang.Object ref = sampleQuerySetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleQuerySetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], which
      +     * will become the final component of the
      +     * [SampleQuerySet.name][google.cloud.discoveryengine.v1beta.SampleQuerySet.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s with
      +     * the same
      +     * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sampleQuerySetId to set. + * @return This builder for chaining. + */ + public Builder setSampleQuerySetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sampleQuerySetId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], which
      +     * will become the final component of the
      +     * [SampleQuerySet.name][google.cloud.discoveryengine.v1beta.SampleQuerySet.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s with
      +     * the same
      +     * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSampleQuerySetId() { + sampleQuerySetId_ = getDefaultInstance().getSampleQuerySetId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The ID to use for the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], which
      +     * will become the final component of the
      +     * [SampleQuerySet.name][google.cloud.discoveryengine.v1beta.SampleQuerySet.name].
      +     *
      +     * If the caller does not have permission to create the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * This field must be unique among all
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s with
      +     * the same
      +     * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.parent].
      +     * Otherwise, an `ALREADY_EXISTS` error is returned.
      +     *
      +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +     * standard with a length limit of 63 characters. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for sampleQuerySetId to set. + * @return This builder for chaining. + */ + public Builder setSampleQuerySetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sampleQuerySetId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest) + private static final com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSampleQuerySetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSampleQuerySetRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSampleQuerySetRequestOrBuilder.java new file mode 100644 index 000000000000..d4ad409afa64 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSampleQuerySetRequestOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface CreateSampleQuerySetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Required. The
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +   * create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuerySet field is set. + */ + boolean hasSampleQuerySet(); + /** + * + * + *
      +   * Required. The
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +   * create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuerySet. + */ + com.google.cloud.discoveryengine.v1beta.SampleQuerySet getSampleQuerySet(); + /** + * + * + *
      +   * Required. The
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to
      +   * create.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder getSampleQuerySetOrBuilder(); + + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], which
      +   * will become the final component of the
      +   * [SampleQuerySet.name][google.cloud.discoveryengine.v1beta.SampleQuerySet.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s with
      +   * the same
      +   * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleQuerySetId. + */ + java.lang.String getSampleQuerySetId(); + /** + * + * + *
      +   * Required. The ID to use for the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], which
      +   * will become the final component of the
      +   * [SampleQuerySet.name][google.cloud.discoveryengine.v1beta.SampleQuerySet.name].
      +   *
      +   * If the caller does not have permission to create the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * This field must be unique among all
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s with
      +   * the same
      +   * [parent][google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.parent].
      +   * Otherwise, an `ALREADY_EXISTS` error is returned.
      +   *
      +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
      +   * standard with a length limit of 63 characters. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string sample_query_set_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sampleQuerySetId. + */ + com.google.protobuf.ByteString getSampleQuerySetIdBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomTuningModel.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomTuningModel.java index 2f981b3427f2..880c3298e1fe 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomTuningModel.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomTuningModel.java @@ -55,6 +55,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_discoveryengine_v1beta_CustomTuningModel_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMetrics(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -135,6 +147,16 @@ public enum ModelState implements com.google.protobuf.ProtocolMessageEnum { * TRAINING_FAILED = 5; */ TRAINING_FAILED(5), + /** + * + * + *
      +     * The model training finished successfully but metrics did not improve.
      +     * 
      + * + * NO_IMPROVEMENT = 6; + */ + NO_IMPROVEMENT(6), UNRECOGNIZED(-1), ; @@ -198,6 +220,16 @@ public enum ModelState implements com.google.protobuf.ProtocolMessageEnum { * TRAINING_FAILED = 5; */ public static final int TRAINING_FAILED_VALUE = 5; + /** + * + * + *
      +     * The model training finished successfully but metrics did not improve.
      +     * 
      + * + * NO_IMPROVEMENT = 6; + */ + public static final int NO_IMPROVEMENT_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -235,6 +267,8 @@ public static ModelState forNumber(int value) { return READY_FOR_SERVING; case 5: return TRAINING_FAILED; + case 6: + return NO_IMPROVEMENT; default: return null; } @@ -469,11 +503,14 @@ public com.google.cloud.discoveryengine.v1beta.CustomTuningModel.ModelState getM * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; * + * @deprecated google.cloud.discoveryengine.v1beta.CustomTuningModel.create_time is deprecated. + * See google/cloud/discoveryengine/v1beta/custom_tuning_model.proto;l=85 * @return Whether the createTime field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } @@ -484,11 +521,14 @@ public boolean hasCreateTime() { * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; * + * @deprecated google.cloud.discoveryengine.v1beta.CustomTuningModel.create_time is deprecated. + * See google/cloud/discoveryengine/v1beta/custom_tuning_model.proto;l=85 * @return The createTime. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } @@ -499,9 +539,10 @@ public com.google.protobuf.Timestamp getCreateTime() { * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } @@ -556,6 +597,105 @@ public com.google.protobuf.TimestampOrBuilder getTrainingStartTimeOrBuilder() { : trainingStartTime_; } + public static final int METRICS_FIELD_NUMBER = 7; + + private static final class MetricsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1beta.CustomTuningModelProto + .internal_static_google_cloud_discoveryengine_v1beta_CustomTuningModel_MetricsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.DOUBLE, + 0D); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField metrics_; + + private com.google.protobuf.MapField internalGetMetrics() { + if (metrics_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetricsDefaultEntryHolder.defaultEntry); + } + return metrics_; + } + + public int getMetricsCount() { + return internalGetMetrics().getMap().size(); + } + /** + * + * + *
      +   * The metrics of the trained model.
      +   * 
      + * + * map<string, double> metrics = 7; + */ + @java.lang.Override + public boolean containsMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMetrics().getMap().containsKey(key); + } + /** Use {@link #getMetricsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetrics() { + return getMetricsMap(); + } + /** + * + * + *
      +   * The metrics of the trained model.
      +   * 
      + * + * map<string, double> metrics = 7; + */ + @java.lang.Override + public java.util.Map getMetricsMap() { + return internalGetMetrics().getMap(); + } + /** + * + * + *
      +   * The metrics of the trained model.
      +   * 
      + * + * map<string, double> metrics = 7; + */ + @java.lang.Override + public double getMetricsOrDefault(java.lang.String key, double defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetrics().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
      +   * The metrics of the trained model.
      +   * 
      + * + * map<string, double> metrics = 7; + */ + @java.lang.Override + public double getMetricsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetrics().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -591,6 +731,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getTrainingStartTime()); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetrics(), MetricsDefaultEntryHolder.defaultEntry, 7); getUnknownFields().writeTo(output); } @@ -621,6 +763,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTrainingStartTime()); } + for (java.util.Map.Entry entry : + internalGetMetrics().getMap().entrySet()) { + com.google.protobuf.MapEntry metrics__ = + MetricsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, metrics__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -649,6 +801,7 @@ public boolean equals(final java.lang.Object obj) { if (hasTrainingStartTime()) { if (!getTrainingStartTime().equals(other.getTrainingStartTime())) return false; } + if (!internalGetMetrics().equals(other.internalGetMetrics())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -676,6 +829,10 @@ public int hashCode() { hash = (37 * hash) + TRAINING_START_TIME_FIELD_NUMBER; hash = (53 * hash) + getTrainingStartTime().hashCode(); } + if (!internalGetMetrics().getMap().isEmpty()) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetrics().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -795,6 +952,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_discoveryengine_v1beta_CustomTuningModel_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMetrics(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableMetrics(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -840,6 +1019,7 @@ public Builder clear() { trainingStartTimeBuilder_.dispose(); trainingStartTimeBuilder_ = null; } + internalGetMutableMetrics().clear(); return this; } @@ -900,6 +1080,10 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CustomTuningM : trainingStartTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.metrics_ = internalGetMetrics(); + result.metrics_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -971,6 +1155,8 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CustomTuningMod if (other.hasTrainingStartTime()) { mergeTrainingStartTime(other.getTrainingStartTime()); } + internalGetMutableMetrics().mergeFrom(other.internalGetMetrics()); + bitField0_ |= 0x00000040; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1034,6 +1220,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 58: + { + com.google.protobuf.MapEntry metrics__ = + input.readMessage( + MetricsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetrics() + .getMutableMap() + .put(metrics__.getKey(), metrics__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1460,10 +1658,13 @@ public Builder clearModelState() { * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; * + * @deprecated google.cloud.discoveryengine.v1beta.CustomTuningModel.create_time is deprecated. + * See google/cloud/discoveryengine/v1beta/custom_tuning_model.proto;l=85 * @return Whether the createTime field is set. */ + @java.lang.Deprecated public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } @@ -1474,10 +1675,13 @@ public boolean hasCreateTime() { * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; * + * @deprecated google.cloud.discoveryengine.v1beta.CustomTuningModel.create_time is deprecated. + * See google/cloud/discoveryengine/v1beta/custom_tuning_model.proto;l=85 * @return The createTime. */ + @java.lang.Deprecated public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null @@ -1494,8 +1698,9 @@ public com.google.protobuf.Timestamp getCreateTime() { * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; */ + @java.lang.Deprecated public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { @@ -1516,8 +1721,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; */ + @java.lang.Deprecated public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); @@ -1535,8 +1741,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; */ + @java.lang.Deprecated public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) @@ -1562,8 +1769,9 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; */ + @java.lang.Deprecated public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000010); createTime_ = null; @@ -1581,8 +1789,9 @@ public Builder clearCreateTime() { * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; */ + @java.lang.Deprecated public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000010; onChanged(); @@ -1595,8 +1804,9 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; */ + @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); @@ -1613,7 +1823,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1817,6 +2027,164 @@ public com.google.protobuf.TimestampOrBuilder getTrainingStartTimeOrBuilder() { return trainingStartTimeBuilder_; } + private com.google.protobuf.MapField metrics_; + + private com.google.protobuf.MapField internalGetMetrics() { + if (metrics_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetricsDefaultEntryHolder.defaultEntry); + } + return metrics_; + } + + private com.google.protobuf.MapField + internalGetMutableMetrics() { + if (metrics_ == null) { + metrics_ = com.google.protobuf.MapField.newMapField(MetricsDefaultEntryHolder.defaultEntry); + } + if (!metrics_.isMutable()) { + metrics_ = metrics_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return metrics_; + } + + public int getMetricsCount() { + return internalGetMetrics().getMap().size(); + } + /** + * + * + *
      +     * The metrics of the trained model.
      +     * 
      + * + * map<string, double> metrics = 7; + */ + @java.lang.Override + public boolean containsMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMetrics().getMap().containsKey(key); + } + /** Use {@link #getMetricsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetrics() { + return getMetricsMap(); + } + /** + * + * + *
      +     * The metrics of the trained model.
      +     * 
      + * + * map<string, double> metrics = 7; + */ + @java.lang.Override + public java.util.Map getMetricsMap() { + return internalGetMetrics().getMap(); + } + /** + * + * + *
      +     * The metrics of the trained model.
      +     * 
      + * + * map<string, double> metrics = 7; + */ + @java.lang.Override + public double getMetricsOrDefault(java.lang.String key, double defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetrics().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
      +     * The metrics of the trained model.
      +     * 
      + * + * map<string, double> metrics = 7; + */ + @java.lang.Override + public double getMetricsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetrics().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetrics() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableMetrics().getMutableMap().clear(); + return this; + } + /** + * + * + *
      +     * The metrics of the trained model.
      +     * 
      + * + * map<string, double> metrics = 7; + */ + public Builder removeMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMetrics().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableMetrics() { + bitField0_ |= 0x00000040; + return internalGetMutableMetrics().getMutableMap(); + } + /** + * + * + *
      +     * The metrics of the trained model.
      +     * 
      + * + * map<string, double> metrics = 7; + */ + public Builder putMetrics(java.lang.String key, double value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableMetrics().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + /** + * + * + *
      +     * The metrics of the trained model.
      +     * 
      + * + * map<string, double> metrics = 7; + */ + public Builder putAllMetrics(java.util.Map values) { + internalGetMutableMetrics().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomTuningModelOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomTuningModelOrBuilder.java index b3c1a007f744..c81dd9d16592 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomTuningModelOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomTuningModelOrBuilder.java @@ -131,10 +131,13 @@ public interface CustomTuningModelOrBuilder * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; * + * @deprecated google.cloud.discoveryengine.v1beta.CustomTuningModel.create_time is deprecated. + * See google/cloud/discoveryengine/v1beta/custom_tuning_model.proto;l=85 * @return Whether the createTime field is set. */ + @java.lang.Deprecated boolean hasCreateTime(); /** * @@ -143,10 +146,13 @@ public interface CustomTuningModelOrBuilder * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; * + * @deprecated google.cloud.discoveryengine.v1beta.CustomTuningModel.create_time is deprecated. + * See google/cloud/discoveryengine/v1beta/custom_tuning_model.proto;l=85 * @return The createTime. */ + @java.lang.Deprecated com.google.protobuf.Timestamp getCreateTime(); /** * @@ -155,8 +161,9 @@ public interface CustomTuningModelOrBuilder * Timestamp the Model was created at. *
      * - * .google.protobuf.Timestamp create_time = 5; + * .google.protobuf.Timestamp create_time = 5 [deprecated = true]; */ + @java.lang.Deprecated com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** @@ -193,4 +200,58 @@ public interface CustomTuningModelOrBuilder * .google.protobuf.Timestamp training_start_time = 6; */ com.google.protobuf.TimestampOrBuilder getTrainingStartTimeOrBuilder(); + + /** + * + * + *
      +   * The metrics of the trained model.
      +   * 
      + * + * map<string, double> metrics = 7; + */ + int getMetricsCount(); + /** + * + * + *
      +   * The metrics of the trained model.
      +   * 
      + * + * map<string, double> metrics = 7; + */ + boolean containsMetrics(java.lang.String key); + /** Use {@link #getMetricsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getMetrics(); + /** + * + * + *
      +   * The metrics of the trained model.
      +   * 
      + * + * map<string, double> metrics = 7; + */ + java.util.Map getMetricsMap(); + /** + * + * + *
      +   * The metrics of the trained model.
      +   * 
      + * + * map<string, double> metrics = 7; + */ + double getMetricsOrDefault(java.lang.String key, double defaultValue); + /** + * + * + *
      +   * The metrics of the trained model.
      +   * 
      + * + * map<string, double> metrics = 7; + */ + double getMetricsOrThrow(java.lang.String key); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomTuningModelProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomTuningModelProto.java index 257702694dbd..067740411c01 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomTuningModelProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomTuningModelProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_CustomTuningModel_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_CustomTuningModel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CustomTuningModel_MetricsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CustomTuningModel_MetricsEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -45,34 +49,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "stom_tuning_model.proto\022#google.cloud.di" + "scoveryengine.v1beta\032\037google/api/field_b" + "ehavior.proto\032\031google/api/resource.proto" - + "\032\037google/protobuf/timestamp.proto\"\203\006\n\021Cu" + + "\032\037google/protobuf/timestamp.proto\"\241\007\n\021Cu" + "stomTuningModel\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0d" + "iscoveryengine.googleapis.com/CustomTuni" + "ngModel\022\024\n\014display_name\030\002 \001(\t\022\025\n\rmodel_v" + "ersion\030\003 \001(\003\022V\n\013model_state\030\004 \001(\0162A.goog" + "le.cloud.discoveryengine.v1beta.CustomTu" - + "ningModel.ModelState\022/\n\013create_time\030\005 \001(" - + "\0132\032.google.protobuf.Timestamp\0227\n\023trainin" - + "g_start_time\030\006 \001(\0132\032.google.protobuf.Tim" - + "estamp\"\217\001\n\nModelState\022\033\n\027MODEL_STATE_UNS" - + "PECIFIED\020\000\022\023\n\017TRAINING_PAUSED\020\001\022\014\n\010TRAIN" - + "ING\020\002\022\025\n\021TRAINING_COMPLETE\020\003\022\025\n\021READY_FO" - + "R_SERVING\020\004\022\023\n\017TRAINING_FAILED\020\005:\244\002\352A\240\002\n" - + "0discoveryengine.googleapis.com/CustomTu" - + "ningModel\022hprojects/{project}/locations/" - + "{location}/dataStores/{data_store}/custo" - + "mTuningModels/{custom_tuning_model}\022\201\001pr" - + "ojects/{project}/locations/{location}/co" - + "llections/{collection}/dataStores/{data_" - + "store}/customTuningModels/{custom_tuning" - + "_model}B\235\002\n\'com.google.cloud.discoveryen" - + "gine.v1betaB\026CustomTuningModelProtoP\001ZQc" - + "loud.google.com/go/discoveryengine/apiv1" - + "beta/discoveryenginepb;discoveryenginepb" - + "\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.Discov" - + "eryEngine.V1Beta\312\002#Google\\Cloud\\Discover" - + "yEngine\\V1beta\352\002&Google::Cloud::Discover" - + "yEngine::V1betab\006proto3" + + "ningModel.ModelState\0223\n\013create_time\030\005 \001(" + + "\0132\032.google.protobuf.TimestampB\002\030\001\0227\n\023tra" + + "ining_start_time\030\006 \001(\0132\032.google.protobuf" + + ".Timestamp\022T\n\007metrics\030\007 \003(\0132C.google.clo" + + "ud.discoveryengine.v1beta.CustomTuningMo" + + "del.MetricsEntry\032.\n\014MetricsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\001:\0028\001\"\243\001\n\nModelState\022" + + "\033\n\027MODEL_STATE_UNSPECIFIED\020\000\022\023\n\017TRAINING" + + "_PAUSED\020\001\022\014\n\010TRAINING\020\002\022\025\n\021TRAINING_COMP" + + "LETE\020\003\022\025\n\021READY_FOR_SERVING\020\004\022\023\n\017TRAININ" + + "G_FAILED\020\005\022\022\n\016NO_IMPROVEMENT\020\006:\244\002\352A\240\002\n0d" + + "iscoveryengine.googleapis.com/CustomTuni" + + "ngModel\022hprojects/{project}/locations/{l" + + "ocation}/dataStores/{data_store}/customT" + + "uningModels/{custom_tuning_model}\022\201\001proj" + + "ects/{project}/locations/{location}/coll" + + "ections/{collection}/dataStores/{data_st" + + "ore}/customTuningModels/{custom_tuning_m" + + "odel}B\235\002\n\'com.google.cloud.discoveryengi" + + "ne.v1betaB\026CustomTuningModelProtoP\001ZQclo" + + "ud.google.com/go/discoveryengine/apiv1be" + + "ta/discoveryenginepb;discoveryenginepb\242\002" + + "\017DISCOVERYENGINE\252\002#Google.Cloud.Discover" + + "yEngine.V1Beta\312\002#Google\\Cloud\\DiscoveryE" + + "ngine\\V1beta\352\002&Google::Cloud::DiscoveryE" + + "ngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -94,6 +102,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ModelState", "CreateTime", "TrainingStartTime", + "Metrics", + }); + internal_static_google_cloud_discoveryengine_v1beta_CustomTuningModel_MetricsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_CustomTuningModel_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1beta_CustomTuningModel_MetricsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_CustomTuningModel_MetricsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStore.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStore.java index 432adecfa2f6..bcd58e89bbf3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStore.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStore.java @@ -692,6 +692,56 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } + public static final int LANGUAGE_INFO_FIELD_NUMBER = 14; + private com.google.cloud.discoveryengine.v1beta.LanguageInfo languageInfo_; + /** + * + * + *
      +   * Language info for DataStore.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * @return Whether the languageInfo field is set. + */ + @java.lang.Override + public boolean hasLanguageInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * Language info for DataStore.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * @return The languageInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LanguageInfo getLanguageInfo() { + return languageInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance() + : languageInfo_; + } + /** + * + * + *
      +   * Language info for DataStore.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder getLanguageInfoOrBuilder() { + return languageInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance() + : languageInfo_; + } + public static final int DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER = 27; private com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig documentProcessingConfig_; @@ -710,7 +760,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasDocumentProcessingConfig() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -780,7 +830,7 @@ public boolean hasDocumentProcessingConfig() { */ @java.lang.Override public boolean hasStartingSchema() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -889,9 +939,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 7, defaultSchemaId_); } if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(27, getDocumentProcessingConfig()); + output.writeMessage(14, getLanguageInfo()); } if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(27, getDocumentProcessingConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(28, getStartingSchema()); } getUnknownFields().writeTo(output); @@ -940,11 +993,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, defaultSchemaId_); } if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getLanguageInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 27, getDocumentProcessingConfig()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getStartingSchema()); } size += getUnknownFields().getSerializedSize(); @@ -973,6 +1029,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } + if (hasLanguageInfo() != other.hasLanguageInfo()) return false; + if (hasLanguageInfo()) { + if (!getLanguageInfo().equals(other.getLanguageInfo())) return false; + } if (hasDocumentProcessingConfig() != other.hasDocumentProcessingConfig()) return false; if (hasDocumentProcessingConfig()) { if (!getDocumentProcessingConfig().equals(other.getDocumentProcessingConfig())) return false; @@ -1010,6 +1070,10 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } + if (hasLanguageInfo()) { + hash = (37 * hash) + LANGUAGE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getLanguageInfo().hashCode(); + } if (hasDocumentProcessingConfig()) { hash = (37 * hash) + DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDocumentProcessingConfig().hashCode(); @@ -1159,6 +1223,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); + getLanguageInfoFieldBuilder(); getDocumentProcessingConfigFieldBuilder(); getStartingSchemaFieldBuilder(); } @@ -1180,6 +1245,11 @@ public Builder clear() { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } + languageInfo_ = null; + if (languageInfoBuilder_ != null) { + languageInfoBuilder_.dispose(); + languageInfoBuilder_ = null; + } documentProcessingConfig_ = null; if (documentProcessingConfigBuilder_ != null) { documentProcessingConfigBuilder_.dispose(); @@ -1257,16 +1327,21 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.DataStore res to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000080) != 0)) { + result.languageInfo_ = + languageInfoBuilder_ == null ? languageInfo_ : languageInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.documentProcessingConfig_ = documentProcessingConfigBuilder_ == null ? documentProcessingConfig_ : documentProcessingConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.startingSchema_ = startingSchemaBuilder_ == null ? startingSchema_ : startingSchemaBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @@ -1351,6 +1426,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.DataStore other if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } + if (other.hasLanguageInfo()) { + mergeLanguageInfo(other.getLanguageInfo()); + } if (other.hasDocumentProcessingConfig()) { mergeDocumentProcessingConfig(other.getDocumentProcessingConfig()); } @@ -1438,17 +1516,23 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 58 + case 114: + { + input.readMessage(getLanguageInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 114 case 218: { input.readMessage( getDocumentProcessingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 218 case 226: { input.readMessage(getStartingSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 226 default: @@ -2549,6 +2633,194 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } + private com.google.cloud.discoveryengine.v1beta.LanguageInfo languageInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.LanguageInfo, + com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder, + com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder> + languageInfoBuilder_; + /** + * + * + *
      +     * Language info for DataStore.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * @return Whether the languageInfo field is set. + */ + public boolean hasLanguageInfo() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
      +     * Language info for DataStore.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * @return The languageInfo. + */ + public com.google.cloud.discoveryengine.v1beta.LanguageInfo getLanguageInfo() { + if (languageInfoBuilder_ == null) { + return languageInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance() + : languageInfo_; + } else { + return languageInfoBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Language info for DataStore.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + */ + public Builder setLanguageInfo(com.google.cloud.discoveryengine.v1beta.LanguageInfo value) { + if (languageInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + languageInfo_ = value; + } else { + languageInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
      +     * Language info for DataStore.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + */ + public Builder setLanguageInfo( + com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder builderForValue) { + if (languageInfoBuilder_ == null) { + languageInfo_ = builderForValue.build(); + } else { + languageInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
      +     * Language info for DataStore.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + */ + public Builder mergeLanguageInfo(com.google.cloud.discoveryengine.v1beta.LanguageInfo value) { + if (languageInfoBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && languageInfo_ != null + && languageInfo_ + != com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance()) { + getLanguageInfoBuilder().mergeFrom(value); + } else { + languageInfo_ = value; + } + } else { + languageInfoBuilder_.mergeFrom(value); + } + if (languageInfo_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Language info for DataStore.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + */ + public Builder clearLanguageInfo() { + bitField0_ = (bitField0_ & ~0x00000080); + languageInfo_ = null; + if (languageInfoBuilder_ != null) { + languageInfoBuilder_.dispose(); + languageInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Language info for DataStore.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + */ + public com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder getLanguageInfoBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getLanguageInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Language info for DataStore.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + */ + public com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder + getLanguageInfoOrBuilder() { + if (languageInfoBuilder_ != null) { + return languageInfoBuilder_.getMessageOrBuilder(); + } else { + return languageInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance() + : languageInfo_; + } + } + /** + * + * + *
      +     * Language info for DataStore.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.LanguageInfo, + com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder, + com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder> + getLanguageInfoFieldBuilder() { + if (languageInfoBuilder_ == null) { + languageInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.LanguageInfo, + com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder, + com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder>( + getLanguageInfo(), getParentForChildren(), isClean()); + languageInfo_ = null; + } + return languageInfoBuilder_; + } + private com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig documentProcessingConfig_; private com.google.protobuf.SingleFieldBuilderV3< @@ -2570,7 +2842,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the documentProcessingConfig field is set. */ public boolean hasDocumentProcessingConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -2616,7 +2888,7 @@ public Builder setDocumentProcessingConfig( } else { documentProcessingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2638,7 +2910,7 @@ public Builder setDocumentProcessingConfig( } else { documentProcessingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2656,7 +2928,7 @@ public Builder setDocumentProcessingConfig( public Builder mergeDocumentProcessingConfig( com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig value) { if (documentProcessingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && documentProcessingConfig_ != null && documentProcessingConfig_ != com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig @@ -2669,7 +2941,7 @@ public Builder mergeDocumentProcessingConfig( documentProcessingConfigBuilder_.mergeFrom(value); } if (documentProcessingConfig_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2686,7 +2958,7 @@ public Builder mergeDocumentProcessingConfig( * */ public Builder clearDocumentProcessingConfig() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); documentProcessingConfig_ = null; if (documentProcessingConfigBuilder_ != null) { documentProcessingConfigBuilder_.dispose(); @@ -2708,7 +2980,7 @@ public Builder clearDocumentProcessingConfig() { */ public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder getDocumentProcessingConfigBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getDocumentProcessingConfigFieldBuilder().getBuilder(); } @@ -2793,7 +3065,7 @@ public Builder clearDocumentProcessingConfig() { * @return Whether the startingSchema field is set. */ public boolean hasStartingSchema() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -2861,7 +3133,7 @@ public Builder setStartingSchema(com.google.cloud.discoveryengine.v1beta.Schema } else { startingSchemaBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2895,7 +3167,7 @@ public Builder setStartingSchema( } else { startingSchemaBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2924,7 +3196,7 @@ public Builder setStartingSchema( */ public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1beta.Schema value) { if (startingSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && startingSchema_ != null && startingSchema_ != com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance()) { @@ -2936,7 +3208,7 @@ public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1beta.Schem startingSchemaBuilder_.mergeFrom(value); } if (startingSchema_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -2965,7 +3237,7 @@ public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1beta.Schem * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; */ public Builder clearStartingSchema() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); startingSchema_ = null; if (startingSchemaBuilder_ != null) { startingSchemaBuilder_.dispose(); @@ -2998,7 +3270,7 @@ public Builder clearStartingSchema() { * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; */ public com.google.cloud.discoveryengine.v1beta.Schema.Builder getStartingSchemaBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getStartingSchemaFieldBuilder().getBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreOrBuilder.java index ae3eaadb1b25..f01f2d762ee1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreOrBuilder.java @@ -310,6 +310,41 @@ public interface DataStoreOrBuilder */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + /** + * + * + *
      +   * Language info for DataStore.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * @return Whether the languageInfo field is set. + */ + boolean hasLanguageInfo(); + /** + * + * + *
      +   * Language info for DataStore.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * @return The languageInfo. + */ + com.google.cloud.discoveryengine.v1beta.LanguageInfo getLanguageInfo(); + /** + * + * + *
      +   * Language info for DataStore.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + */ + com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder getLanguageInfoOrBuilder(); + /** * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreProto.java index 8333075fe4d7..ee274694e156 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_DataStore_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_DataStore_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -49,7 +53,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\032Dgoogle/cloud/discoveryengine/v1beta/d" + "ocument_processing_config.proto\0320google/" + "cloud/discoveryengine/v1beta/schema.prot" - + "o\032\037google/protobuf/timestamp.proto\"\354\006\n\tD" + + "o\032\037google/protobuf/timestamp.proto\"\266\007\n\tD" + "ataStore\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014display_n" + "ame\030\002 \001(\tB\003\340A\002\022U\n\021industry_vertical\030\003 \001(" + "\01625.google.cloud.discoveryengine.v1beta." @@ -59,27 +63,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\001(\tB\003\340A\003\022Y\n\016content_config\030\006 \001(\0162<.googl" + "e.cloud.discoveryengine.v1beta.DataStore" + ".ContentConfigB\003\340A\005\0224\n\013create_time\030\004 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\022a\n\032doc" - + "ument_processing_config\030\033 \001(\0132=.google.c" - + "loud.discoveryengine.v1beta.DocumentProc" - + "essingConfig\022D\n\017starting_schema\030\034 \001(\0132+." - + "google.cloud.discoveryengine.v1beta.Sche" - + "ma\"i\n\rContentConfig\022\036\n\032CONTENT_CONFIG_UN" - + "SPECIFIED\020\000\022\016\n\nNO_CONTENT\020\001\022\024\n\020CONTENT_R" - + "EQUIRED\020\002\022\022\n\016PUBLIC_WEBSITE\020\003:\311\001\352A\305\001\n(di" - + "scoveryengine.googleapis.com/DataStore\022?" - + "projects/{project}/locations/{location}/" - + "dataStores/{data_store}\022Xprojects/{proje" - + "ct}/locations/{location}/collections/{co" - + "llection}/dataStores/{data_store}B\225\002\n\'co" - + "m.google.cloud.discoveryengine.v1betaB\016D" - + "ataStoreProtoP\001ZQcloud.google.com/go/dis" - + "coveryengine/apiv1beta/discoveryenginepb" - + ";discoveryenginepb\242\002\017DISCOVERYENGINE\252\002#G" - + "oogle.Cloud.DiscoveryEngine.V1Beta\312\002#Goo" - + "gle\\Cloud\\DiscoveryEngine\\V1beta\352\002&Googl" - + "e::Cloud::DiscoveryEngine::V1betab\006proto" - + "3" + + "2\032.google.protobuf.TimestampB\003\340A\003\022H\n\rlan" + + "guage_info\030\016 \001(\01321.google.cloud.discover" + + "yengine.v1beta.LanguageInfo\022a\n\032document_" + + "processing_config\030\033 \001(\0132=.google.cloud.d" + + "iscoveryengine.v1beta.DocumentProcessing" + + "Config\022D\n\017starting_schema\030\034 \001(\0132+.google" + + ".cloud.discoveryengine.v1beta.Schema\"i\n\r" + + "ContentConfig\022\036\n\032CONTENT_CONFIG_UNSPECIF" + + "IED\020\000\022\016\n\nNO_CONTENT\020\001\022\024\n\020CONTENT_REQUIRE" + + "D\020\002\022\022\n\016PUBLIC_WEBSITE\020\003:\311\001\352A\305\001\n(discover" + + "yengine.googleapis.com/DataStore\022?projec" + + "ts/{project}/locations/{location}/dataSt" + + "ores/{data_store}\022Xprojects/{project}/lo" + + "cations/{location}/collections/{collecti" + + "on}/dataStores/{data_store}\"x\n\014LanguageI" + + "nfo\022\025\n\rlanguage_code\030\001 \001(\t\022%\n\030normalized" + + "_language_code\030\002 \001(\tB\003\340A\003\022\025\n\010language\030\003 " + + "\001(\tB\003\340A\003\022\023\n\006region\030\004 \001(\tB\003\340A\003B\225\002\n\'com.go" + + "ogle.cloud.discoveryengine.v1betaB\016DataS" + + "toreProtoP\001ZQcloud.google.com/go/discove" + + "ryengine/apiv1beta/discoveryenginepb;dis" + + "coveryenginepb\242\002\017DISCOVERYENGINE\252\002#Googl" + + "e.Cloud.DiscoveryEngine.V1Beta\312\002#Google\\" + + "Cloud\\DiscoveryEngine\\V1beta\352\002&Google::C" + + "loud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -105,9 +113,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DefaultSchemaId", "ContentConfig", "CreateTime", + "LanguageInfo", "DocumentProcessingConfig", "StartingSchema", }); + internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_descriptor, + new java.lang.String[] { + "LanguageCode", "NormalizedLanguageCode", "Language", "Region", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceProto.java index 412ad2435f38..642faa618465 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceProto.java @@ -79,84 +79,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "grunning/operations.proto\032\033google/protob" + "uf/empty.proto\032 google/protobuf/field_ma" + "sk.proto\032\037google/protobuf/timestamp.prot" - + "o\"\345\001\n\026CreateDataStoreRequest\022A\n\006parent\030\001" + + "o\"\213\002\n\026CreateDataStoreRequest\022A\n\006parent\030\001" + " \001(\tB1\340A\002\372A+\n)discoveryengine.googleapis" + ".com/Collection\022G\n\ndata_store\030\002 \001(\0132..go" + "ogle.cloud.discoveryengine.v1beta.DataSt" + "oreB\003\340A\002\022\032\n\rdata_store_id\030\003 \001(\tB\003\340A\002\022#\n\033" - + "create_advanced_site_search\030\004 \001(\010\"U\n\023Get" - + "DataStoreRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(" - + "discoveryengine.googleapis.com/DataStore" - + "\"{\n\027CreateDataStoreMetadata\022/\n\013create_ti" - + "me\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n\013" - + "update_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp\"\221\001\n\025ListDataStoresRequest\022A\n\006paren" - + "t\030\001 \001(\tB1\340A\002\372A+\n)discoveryengine.googlea" - + "pis.com/Collection\022\021\n\tpage_size\030\002 \001(\005\022\022\n" - + "\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"v\n\026Lis" - + "tDataStoresResponse\022C\n\013data_stores\030\001 \003(\013" - + "2..google.cloud.discoveryengine.v1beta.D" - + "ataStore\022\027\n\017next_page_token\030\002 \001(\t\"X\n\026Del" - + "eteDataStoreRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A" - + "*\n(discoveryengine.googleapis.com/DataSt" - + "ore\"\222\001\n\026UpdateDataStoreRequest\022G\n\ndata_s" - + "tore\030\001 \001(\0132..google.cloud.discoveryengin" - + "e.v1beta.DataStoreB\003\340A\002\022/\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMask\"{\n\027Dele" - + "teDataStoreMetadata\022/\n\013create_time\030\001 \001(\013" - + "2\032.google.protobuf.Timestamp\022/\n\013update_t" - + "ime\030\002 \001(\0132\032.google.protobuf.Timestamp2\263\r" - + "\n\020DataStoreService\022\230\003\n\017CreateDataStore\022;" - + ".google.cloud.discoveryengine.v1beta.Cre" - + "ateDataStoreRequest\032\035.google.longrunning" - + ".Operation\"\250\002\312Al\n-google.cloud.discovery" - + "engine.v1beta.DataStore\022;google.cloud.di" - + "scoveryengine.v1beta.CreateDataStoreMeta" - + "data\332A\037parent,data_store,data_store_id\202\323" - + "\344\223\002\220\001\"2/v1beta/{parent=projects/*/locati" - + "ons/*}/dataStores:\ndata_storeZN\"@/v1beta" - + "/{parent=projects/*/locations/*/collecti" - + "ons/*}/dataStores:\ndata_store\022\200\002\n\014GetDat" - + "aStore\0228.google.cloud.discoveryengine.v1" - + "beta.GetDataStoreRequest\032..google.cloud." - + "discoveryengine.v1beta.DataStore\"\205\001\332A\004na" - + "me\202\323\344\223\002x\0222/v1beta/{name=projects/*/locat" - + "ions/*/dataStores/*}ZB\022@/v1beta/{name=pr" - + "ojects/*/locations/*/collections/*/dataS" - + "tores/*}\022\223\002\n\016ListDataStores\022:.google.clo" - + "ud.discoveryengine.v1beta.ListDataStores" - + "Request\032;.google.cloud.discoveryengine.v" - + "1beta.ListDataStoresResponse\"\207\001\332A\006parent" - + "\202\323\344\223\002x\0222/v1beta/{parent=projects/*/locat" - + "ions/*}/dataStoresZB\022@/v1beta/{parent=pr" - + "ojects/*/locations/*/collections/*}/data" - + "Stores\022\314\002\n\017DeleteDataStore\022;.google.clou" - + "d.discoveryengine.v1beta.DeleteDataStore" - + "Request\032\035.google.longrunning.Operation\"\334" - + "\001\312AT\n\025google.protobuf.Empty\022;google.clou" - + "d.discoveryengine.v1beta.DeleteDataStore" - + "Metadata\332A\004name\202\323\344\223\002x*2/v1beta/{name=pro" - + "jects/*/locations/*/dataStores/*}ZB*@/v1" - + "beta/{name=projects/*/locations/*/collec" - + "tions/*/dataStores/*}\022\307\002\n\017UpdateDataStor" - + "e\022;.google.cloud.discoveryengine.v1beta." - + "UpdateDataStoreRequest\032..google.cloud.di" - + "scoveryengine.v1beta.DataStore\"\306\001\332A\026data" - + "_store,update_mask\202\323\344\223\002\246\0012=/v1beta/{data" - + "_store.name=projects/*/locations/*/dataS" - + "tores/*}:\ndata_storeZY2K/v1beta/{data_st" - + "ore.name=projects/*/locations/*/collecti" - + "ons/*/dataStores/*}:\ndata_store\032R\312A\036disc" - + "overyengine.googleapis.com\322A.https://www" - + ".googleapis.com/auth/cloud-platformB\234\002\n\'" - + "com.google.cloud.discoveryengine.v1betaB" - + "\025DataStoreServiceProtoP\001ZQcloud.google.c" - + "om/go/discoveryengine/apiv1beta/discover" - + "yenginepb;discoveryenginepb\242\002\017DISCOVERYE" - + "NGINE\252\002#Google.Cloud.DiscoveryEngine.V1B" - + "eta\312\002#Google\\Cloud\\DiscoveryEngine\\V1bet" - + "a\352\002&Google::Cloud::DiscoveryEngine::V1be" - + "tab\006proto3" + + "create_advanced_site_search\030\004 \001(\010\022$\n\034ski" + + "p_default_schema_creation\030\007 \001(\010\"U\n\023GetDa" + + "taStoreRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(di" + + "scoveryengine.googleapis.com/DataStore\"{" + + "\n\027CreateDataStoreMetadata\022/\n\013create_time" + + "\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n\013up" + + "date_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\"\221\001\n\025ListDataStoresRequest\022A\n\006parent\030" + + "\001 \001(\tB1\340A\002\372A+\n)discoveryengine.googleapi" + + "s.com/Collection\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"v\n\026ListD" + + "ataStoresResponse\022C\n\013data_stores\030\001 \003(\0132." + + ".google.cloud.discoveryengine.v1beta.Dat" + + "aStore\022\027\n\017next_page_token\030\002 \001(\t\"X\n\026Delet" + + "eDataStoreRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n" + + "(discoveryengine.googleapis.com/DataStor" + + "e\"\222\001\n\026UpdateDataStoreRequest\022G\n\ndata_sto" + + "re\030\001 \001(\0132..google.cloud.discoveryengine." + + "v1beta.DataStoreB\003\340A\002\022/\n\013update_mask\030\002 \001" + + "(\0132\032.google.protobuf.FieldMask\"{\n\027Delete" + + "DataStoreMetadata\022/\n\013create_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp\022/\n\013update_tim" + + "e\030\002 \001(\0132\032.google.protobuf.Timestamp2\263\r\n\020" + + "DataStoreService\022\230\003\n\017CreateDataStore\022;.g" + + "oogle.cloud.discoveryengine.v1beta.Creat" + + "eDataStoreRequest\032\035.google.longrunning.O" + + "peration\"\250\002\312Al\n-google.cloud.discoveryen" + + "gine.v1beta.DataStore\022;google.cloud.disc" + + "overyengine.v1beta.CreateDataStoreMetada" + + "ta\332A\037parent,data_store,data_store_id\202\323\344\223" + + "\002\220\001\"2/v1beta/{parent=projects/*/location" + + "s/*}/dataStores:\ndata_storeZN\"@/v1beta/{" + + "parent=projects/*/locations/*/collection" + + "s/*}/dataStores:\ndata_store\022\200\002\n\014GetDataS" + + "tore\0228.google.cloud.discoveryengine.v1be" + + "ta.GetDataStoreRequest\032..google.cloud.di" + + "scoveryengine.v1beta.DataStore\"\205\001\332A\004name" + + "\202\323\344\223\002x\0222/v1beta/{name=projects/*/locatio" + + "ns/*/dataStores/*}ZB\022@/v1beta/{name=proj" + + "ects/*/locations/*/collections/*/dataSto" + + "res/*}\022\223\002\n\016ListDataStores\022:.google.cloud" + + ".discoveryengine.v1beta.ListDataStoresRe" + + "quest\032;.google.cloud.discoveryengine.v1b" + + "eta.ListDataStoresResponse\"\207\001\332A\006parent\202\323" + + "\344\223\002x\0222/v1beta/{parent=projects/*/locatio" + + "ns/*}/dataStoresZB\022@/v1beta/{parent=proj" + + "ects/*/locations/*/collections/*}/dataSt" + + "ores\022\314\002\n\017DeleteDataStore\022;.google.cloud." + + "discoveryengine.v1beta.DeleteDataStoreRe" + + "quest\032\035.google.longrunning.Operation\"\334\001\312" + + "AT\n\025google.protobuf.Empty\022;google.cloud." + + "discoveryengine.v1beta.DeleteDataStoreMe" + + "tadata\332A\004name\202\323\344\223\002x*2/v1beta/{name=proje" + + "cts/*/locations/*/dataStores/*}ZB*@/v1be" + + "ta/{name=projects/*/locations/*/collecti" + + "ons/*/dataStores/*}\022\307\002\n\017UpdateDataStore\022" + + ";.google.cloud.discoveryengine.v1beta.Up" + + "dateDataStoreRequest\032..google.cloud.disc" + + "overyengine.v1beta.DataStore\"\306\001\332A\026data_s" + + "tore,update_mask\202\323\344\223\002\246\0012=/v1beta/{data_s" + + "tore.name=projects/*/locations/*/dataSto" + + "res/*}:\ndata_storeZY2K/v1beta/{data_stor" + + "e.name=projects/*/locations/*/collection" + + "s/*/dataStores/*}:\ndata_store\032R\312A\036discov" + + "eryengine.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\234\002\n\'co" + + "m.google.cloud.discoveryengine.v1betaB\025D" + + "ataStoreServiceProtoP\001ZQcloud.google.com" + + "/go/discoveryengine/apiv1beta/discoverye" + + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" + + "INE\252\002#Google.Cloud.DiscoveryEngine.V1Bet" + + "a\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352" + + "\002&Google::Cloud::DiscoveryEngine::V1beta" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -178,7 +179,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_CreateDataStoreRequest_descriptor, new java.lang.String[] { - "Parent", "DataStore", "DataStoreId", "CreateAdvancedSiteSearch", + "Parent", + "DataStore", + "DataStoreId", + "CreateAdvancedSiteSearch", + "SkipDefaultSchemaCreation", }); internal_static_google_cloud_discoveryengine_v1beta_GetDataStoreRequest_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSampleQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSampleQueryRequest.java new file mode 100644 index 000000000000..8eeef0f3d747 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSampleQueryRequest.java @@ -0,0 +1,714 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [SampleQueryService.DeleteSampleQuery][google.cloud.discoveryengine.v1beta.SampleQueryService.DeleteSampleQuery]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest} + */ +public final class DeleteSampleQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest) + DeleteSampleQueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteSampleQueryRequest.newBuilder() to construct. + private DeleteSampleQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteSampleQueryRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteSampleQueryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +   * delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +   * delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest other = + (com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQueryService.DeleteSampleQuery][google.cloud.discoveryengine.v1beta.SampleQueryService.DeleteSampleQuery]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest) + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest build() { + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest result = + new com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +     * delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest) + private static final com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSampleQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSampleQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSampleQueryRequestOrBuilder.java new file mode 100644 index 000000000000..fafbf9a2fe49 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSampleQueryRequestOrBuilder.java @@ -0,0 +1,73 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface DeleteSampleQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +   * delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +   * delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSampleQuerySetRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSampleQuerySetRequest.java new file mode 100644 index 000000000000..af312e677e7a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSampleQuerySetRequest.java @@ -0,0 +1,732 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [SampleQuerySetService.DeleteSampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySetService.DeleteSampleQuerySet]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest} + */ +public final class DeleteSampleQuerySetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest) + DeleteSampleQuerySetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteSampleQuerySetRequest.newBuilder() to construct. + private DeleteSampleQuerySetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteSampleQuerySetRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteSampleQuerySetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +   * to delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +   * to delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest other = + (com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQuerySetService.DeleteSampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySetService.DeleteSampleQuerySet]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest) + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest build() { + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest result = + new com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * to delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * to delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * to delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * to delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to delete the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * to delete does not exist, a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest) + private static final com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSampleQuerySetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSampleQuerySetRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSampleQuerySetRequestOrBuilder.java new file mode 100644 index 000000000000..fa50da534bee --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSampleQuerySetRequestOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface DeleteSampleQuerySetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +   * to delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to delete the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +   * to delete does not exist, a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java index ee9c5352e932..4c63a937fc46 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java @@ -117,7 +117,7 @@ public interface ContentOrBuilder *
            * The URI of the content. Only Cloud Storage URIs (e.g.
            * `gs://bucket-name/path/to/file`) are supported. The maximum file size
      -     * is 2.5 MB for text-based formats, 100 MB for other formats.
      +     * is 2.5 MB for text-based formats, 200 MB for other formats.
            * 
      * * string uri = 3; @@ -131,7 +131,7 @@ public interface ContentOrBuilder *
            * The URI of the content. Only Cloud Storage URIs (e.g.
            * `gs://bucket-name/path/to/file`) are supported. The maximum file size
      -     * is 2.5 MB for text-based formats, 100 MB for other formats.
      +     * is 2.5 MB for text-based formats, 200 MB for other formats.
            * 
      * * string uri = 3; @@ -145,7 +145,7 @@ public interface ContentOrBuilder *
            * The URI of the content. Only Cloud Storage URIs (e.g.
            * `gs://bucket-name/path/to/file`) are supported. The maximum file size
      -     * is 2.5 MB for text-based formats, 100 MB for other formats.
      +     * is 2.5 MB for text-based formats, 200 MB for other formats.
            * 
      * * string uri = 3; @@ -346,7 +346,7 @@ public com.google.protobuf.ByteString getRawBytes() { *
            * The URI of the content. Only Cloud Storage URIs (e.g.
            * `gs://bucket-name/path/to/file`) are supported. The maximum file size
      -     * is 2.5 MB for text-based formats, 100 MB for other formats.
      +     * is 2.5 MB for text-based formats, 200 MB for other formats.
            * 
      * * string uri = 3; @@ -362,7 +362,7 @@ public boolean hasUri() { *
            * The URI of the content. Only Cloud Storage URIs (e.g.
            * `gs://bucket-name/path/to/file`) are supported. The maximum file size
      -     * is 2.5 MB for text-based formats, 100 MB for other formats.
      +     * is 2.5 MB for text-based formats, 200 MB for other formats.
            * 
      * * string uri = 3; @@ -391,7 +391,7 @@ public java.lang.String getUri() { *
            * The URI of the content. Only Cloud Storage URIs (e.g.
            * `gs://bucket-name/path/to/file`) are supported. The maximum file size
      -     * is 2.5 MB for text-based formats, 100 MB for other formats.
      +     * is 2.5 MB for text-based formats, 200 MB for other formats.
            * 
      * * string uri = 3; @@ -1026,7 +1026,7 @@ public Builder clearRawBytes() { *
              * The URI of the content. Only Cloud Storage URIs (e.g.
              * `gs://bucket-name/path/to/file`) are supported. The maximum file size
      -       * is 2.5 MB for text-based formats, 100 MB for other formats.
      +       * is 2.5 MB for text-based formats, 200 MB for other formats.
              * 
      * * string uri = 3; @@ -1043,7 +1043,7 @@ public boolean hasUri() { *
              * The URI of the content. Only Cloud Storage URIs (e.g.
              * `gs://bucket-name/path/to/file`) are supported. The maximum file size
      -       * is 2.5 MB for text-based formats, 100 MB for other formats.
      +       * is 2.5 MB for text-based formats, 200 MB for other formats.
              * 
      * * string uri = 3; @@ -1073,7 +1073,7 @@ public java.lang.String getUri() { *
              * The URI of the content. Only Cloud Storage URIs (e.g.
              * `gs://bucket-name/path/to/file`) are supported. The maximum file size
      -       * is 2.5 MB for text-based formats, 100 MB for other formats.
      +       * is 2.5 MB for text-based formats, 200 MB for other formats.
              * 
      * * string uri = 3; @@ -1103,7 +1103,7 @@ public com.google.protobuf.ByteString getUriBytes() { *
              * The URI of the content. Only Cloud Storage URIs (e.g.
              * `gs://bucket-name/path/to/file`) are supported. The maximum file size
      -       * is 2.5 MB for text-based formats, 100 MB for other formats.
      +       * is 2.5 MB for text-based formats, 200 MB for other formats.
              * 
      * * string uri = 3; @@ -1126,7 +1126,7 @@ public Builder setUri(java.lang.String value) { *
              * The URI of the content. Only Cloud Storage URIs (e.g.
              * `gs://bucket-name/path/to/file`) are supported. The maximum file size
      -       * is 2.5 MB for text-based formats, 100 MB for other formats.
      +       * is 2.5 MB for text-based formats, 200 MB for other formats.
              * 
      * * string uri = 3; @@ -1147,7 +1147,7 @@ public Builder clearUri() { *
              * The URI of the content. Only Cloud Storage URIs (e.g.
              * `gs://bucket-name/path/to/file`) are supported. The maximum file size
      -       * is 2.5 MB for text-based formats, 100 MB for other formats.
      +       * is 2.5 MB for text-based formats, 200 MB for other formats.
              * 
      * * string uri = 3; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfig.java index 26533f7f5019..a5547f933f7a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfig.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfig.java @@ -80,198 +80,226 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder.class); } - public interface ParsingConfigOrBuilder + public interface ChunkingConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig) com.google.protobuf.MessageOrBuilder { /** * * *
      -     * Configurations applied to digital parser.
      -     * 
      - * - * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; - * - * - * @return Whether the digitalParsingConfig field is set. - */ - boolean hasDigitalParsingConfig(); - /** - * - * - *
      -     * Configurations applied to digital parser.
      -     * 
      - * - * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; - * - * - * @return The digitalParsingConfig. - */ - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig - getDigitalParsingConfig(); - /** - * - * - *
      -     * Configurations applied to digital parser.
      -     * 
      - * - * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; - * - */ - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfigOrBuilder - getDigitalParsingConfigOrBuilder(); - - /** - * - * - *
      -     * Configurations applied to OCR parser. Currently it only applies to
      -     * PDFs.
      +     * Configuration for the layout based chunking.
            * 
      * * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; * * - * @return Whether the ocrParsingConfig field is set. + * @return Whether the layoutBasedChunkingConfig field is set. */ - boolean hasOcrParsingConfig(); + boolean hasLayoutBasedChunkingConfig(); /** * * *
      -     * Configurations applied to OCR parser. Currently it only applies to
      -     * PDFs.
      +     * Configuration for the layout based chunking.
            * 
      * * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; * * - * @return The ocrParsingConfig. + * @return The layoutBasedChunkingConfig. */ - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig - getOcrParsingConfig(); + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + getLayoutBasedChunkingConfig(); /** * * *
      -     * Configurations applied to OCR parser. Currently it only applies to
      -     * PDFs.
      +     * Configuration for the layout based chunking.
            * 
      * * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; * */ - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfigOrBuilder - getOcrParsingConfigOrBuilder(); + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfigOrBuilder + getLayoutBasedChunkingConfigOrBuilder(); - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .TypeDedicatedConfigCase - getTypeDedicatedConfigCase(); + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.ChunkModeCase + getChunkModeCase(); } /** * * *
      -   * Related configurations applied to a specific type of document parser.
      +   * Configuration for chunking config.
          * 
      * * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig} + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig} */ - public static final class ParsingConfig extends com.google.protobuf.GeneratedMessageV3 + public static final class ChunkingConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) - ParsingConfigOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig) + ChunkingConfigOrBuilder { private static final long serialVersionUID = 0L; - // Use ParsingConfig.newBuilder() to construct. - private ParsingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ChunkingConfig.newBuilder() to construct. + private ChunkingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ParsingConfig() {} + private ChunkingConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ParsingConfig(); + return new ChunkingConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.class, - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.Builder - .class); + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .Builder.class); } - public interface DigitalParsingConfigOrBuilder + public interface LayoutBasedChunkingConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) - com.google.protobuf.MessageOrBuilder {} + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * The token size limit for each chunk.
      +       *
      +       * Supported values: 100-500 (inclusive).
      +       * Default value: 500.
      +       * 
      + * + * int32 chunk_size = 1; + * + * @return The chunkSize. + */ + int getChunkSize(); + + /** + * + * + *
      +       * Whether to include appending different levels of headings to chunks
      +       * from the middle of the document to prevent context loss.
      +       *
      +       * Default value: False.
      +       * 
      + * + * bool include_ancestor_headings = 2; + * + * @return The includeAncestorHeadings. + */ + boolean getIncludeAncestorHeadings(); + } /** * * *
      -     * The digital parsing configurations for documents.
      +     * Configuration for the layout based chunking.
            * 
      * * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig} + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig} */ - public static final class DigitalParsingConfig extends com.google.protobuf.GeneratedMessageV3 + public static final class LayoutBasedChunkingConfig + extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) - DigitalParsingConfigOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig) + LayoutBasedChunkingConfigOrBuilder { private static final long serialVersionUID = 0L; - // Use DigitalParsingConfig.newBuilder() to construct. - private DigitalParsingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use LayoutBasedChunkingConfig.newBuilder() to construct. + private LayoutBasedChunkingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DigitalParsingConfig() {} + private LayoutBasedChunkingConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DigitalParsingConfig(); + return new LayoutBasedChunkingConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig.class, - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig.Builder.class); + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.Builder.class); + } + + public static final int CHUNK_SIZE_FIELD_NUMBER = 1; + private int chunkSize_ = 0; + /** + * + * + *
      +       * The token size limit for each chunk.
      +       *
      +       * Supported values: 100-500 (inclusive).
      +       * Default value: 500.
      +       * 
      + * + * int32 chunk_size = 1; + * + * @return The chunkSize. + */ + @java.lang.Override + public int getChunkSize() { + return chunkSize_; + } + + public static final int INCLUDE_ANCESTOR_HEADINGS_FIELD_NUMBER = 2; + private boolean includeAncestorHeadings_ = false; + /** + * + * + *
      +       * Whether to include appending different levels of headings to chunks
      +       * from the middle of the document to prevent context loss.
      +       *
      +       * Default value: False.
      +       * 
      + * + * bool include_ancestor_headings = 2; + * + * @return The includeAncestorHeadings. + */ + @java.lang.Override + public boolean getIncludeAncestorHeadings() { + return includeAncestorHeadings_; } private byte memoizedIsInitialized = -1; @@ -288,6 +316,12 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (chunkSize_ != 0) { + output.writeInt32(1, chunkSize_); + } + if (includeAncestorHeadings_ != false) { + output.writeBool(2, includeAncestorHeadings_); + } getUnknownFields().writeTo(output); } @@ -297,6 +331,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (chunkSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, chunkSize_); + } + if (includeAncestorHeadings_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeAncestorHeadings_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -309,17 +350,19 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig)) { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig other = - (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig) + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) obj; + if (getChunkSize() != other.getChunkSize()) return false; + if (getIncludeAncestorHeadings() != other.getIncludeAncestorHeadings()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -331,35 +374,39 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHUNK_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getChunkSize(); + hash = (37 * hash) + INCLUDE_ANCESTOR_HEADINGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeAncestorHeadings()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -367,27 +414,27 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -396,14 +443,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -412,14 +459,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -438,8 +485,8 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -459,37 +506,37 @@ protected Builder newBuilderForType( * * *
      -       * The digital parsing configurations for documents.
      +       * Configuration for the layout based chunking.
              * 
      * * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig} + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig) + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig.class, - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig.Builder.class); + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.Builder.class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig.newBuilder() + // com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -499,29 +546,32 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; + chunkSize_ = 0; + includeAncestorHeadings_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig.getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig build() { - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -530,18 +580,34 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig buildPartial() { - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig result = - new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig(this); + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ChunkingConfig.LayoutBasedChunkingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.chunkSize_ = chunkSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.includeAncestorHeadings_ = includeAncestorHeadings_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -581,11 +647,11 @@ public Builder addRepeatedField( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig) { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) { return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig) + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) other); } else { super.mergeFrom(other); @@ -594,12 +660,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig other) { if (other - == com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig.getDefaultInstance()) return this; + == com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance()) return this; + if (other.getChunkSize() != 0) { + setChunkSize(other.getChunkSize()); + } + if (other.getIncludeAncestorHeadings() != false) { + setIncludeAncestorHeadings(other.getIncludeAncestorHeadings()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -626,6 +698,18 @@ public Builder mergeFrom( case 0: done = true; break; + case 8: + { + chunkSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + includeAncestorHeadings_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -643,42 +727,168 @@ public Builder mergeFrom( return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } + private int bitField0_; + private int chunkSize_; + /** + * + * + *
      +         * The token size limit for each chunk.
      +         *
      +         * Supported values: 100-500 (inclusive).
      +         * Default value: 500.
      +         * 
      + * + * int32 chunk_size = 1; + * + * @return The chunkSize. + */ @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public int getChunkSize() { + return chunkSize_; } + /** + * + * + *
      +         * The token size limit for each chunk.
      +         *
      +         * Supported values: 100-500 (inclusive).
      +         * Default value: 500.
      +         * 
      + * + * int32 chunk_size = 1; + * + * @param value The chunkSize to set. + * @return This builder for chaining. + */ + public Builder setChunkSize(int value) { - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + chunkSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +         * The token size limit for each chunk.
      +         *
      +         * Supported values: 100-500 (inclusive).
      +         * Default value: 500.
      +         * 
      + * + * int32 chunk_size = 1; + * + * @return This builder for chaining. + */ + public Builder clearChunkSize() { + bitField0_ = (bitField0_ & ~0x00000001); + chunkSize_ = 0; + onChanged(); + return this; + } + + private boolean includeAncestorHeadings_; + /** + * + * + *
      +         * Whether to include appending different levels of headings to chunks
      +         * from the middle of the document to prevent context loss.
      +         *
      +         * Default value: False.
      +         * 
      + * + * bool include_ancestor_headings = 2; + * + * @return The includeAncestorHeadings. + */ + @java.lang.Override + public boolean getIncludeAncestorHeadings() { + return includeAncestorHeadings_; + } + /** + * + * + *
      +         * Whether to include appending different levels of headings to chunks
      +         * from the middle of the document to prevent context loss.
      +         *
      +         * Default value: False.
      +         * 
      + * + * bool include_ancestor_headings = 2; + * + * @param value The includeAncestorHeadings to set. + * @return This builder for chaining. + */ + public Builder setIncludeAncestorHeadings(boolean value) { + + includeAncestorHeadings_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +         * Whether to include appending different levels of headings to chunks
      +         * from the middle of the document to prevent context loss.
      +         *
      +         * Default value: False.
      +         * 
      + * + * bool include_ancestor_headings = 2; + * + * @return This builder for chaining. + */ + public Builder clearIncludeAncestorHeadings() { + bitField0_ = (bitField0_ & ~0x00000002); + includeAncestorHeadings_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig) private static final com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig - .ParsingConfig.DigitalParsingConfig + .ChunkingConfig.LayoutBasedChunkingConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig(); + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig(); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public DigitalParsingConfig parsePartialFrom( + public LayoutBasedChunkingConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -698,475 +908,2853 @@ public DigitalParsingConfig parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .DigitalParsingConfig + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface OcrParsingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) - com.google.protobuf.MessageOrBuilder { + private int chunkModeCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object chunkMode_; + + public enum ChunkModeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + LAYOUT_BASED_CHUNKING_CONFIG(1), + CHUNKMODE_NOT_SET(0); + private final int value; + + private ChunkModeCase(int value) { + this.value = value; + } /** - * - * - *
      -       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -       * document elements processing, please switch to `layout_parsing_config`.
      -       * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @return A list containing the enhancedDocumentElements. - */ - @java.lang.Deprecated - java.util.List getEnhancedDocumentElementsList(); - /** - * - * - *
      -       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -       * document elements processing, please switch to `layout_parsing_config`.
      -       * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @return The count of enhancedDocumentElements. - */ - @java.lang.Deprecated - int getEnhancedDocumentElementsCount(); - /** - * - * - *
      -       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -       * document elements processing, please switch to `layout_parsing_config`.
      -       * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @param index The index of the element to return. - * @return The enhancedDocumentElements at the given index. - */ - @java.lang.Deprecated - java.lang.String getEnhancedDocumentElements(int index); - /** - * - * - *
      -       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -       * document elements processing, please switch to `layout_parsing_config`.
      -       * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @param index The index of the value to return. - * @return The bytes of the enhancedDocumentElements at the given index. + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - com.google.protobuf.ByteString getEnhancedDocumentElementsBytes(int index); + public static ChunkModeCase valueOf(int value) { + return forNumber(value); + } - /** - * - * - *
      -       * If true, will use native text instead of OCR text on pages containing
      -       * native text.
      -       * 
      - * - * bool use_native_text = 2; - * - * @return The useNativeText. - */ - boolean getUseNativeText(); + public static ChunkModeCase forNumber(int value) { + switch (value) { + case 1: + return LAYOUT_BASED_CHUNKING_CONFIG; + case 0: + return CHUNKMODE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ChunkModeCase getChunkModeCase() { + return ChunkModeCase.forNumber(chunkModeCase_); } + + public static final int LAYOUT_BASED_CHUNKING_CONFIG_FIELD_NUMBER = 1; /** * * *
      -     * The OCR parsing configurations for documents.
      +     * Configuration for the layout based chunking.
            * 
      * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig} + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + * + * @return Whether the layoutBasedChunkingConfig field is set. */ - public static final class OcrParsingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) - OcrParsingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use OcrParsingConfig.newBuilder() to construct. - private OcrParsingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } + @java.lang.Override + public boolean hasLayoutBasedChunkingConfig() { + return chunkModeCase_ == 1; + } + /** + * + * + *
      +     * Configuration for the layout based chunking.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + * + * @return The layoutBasedChunkingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + getLayoutBasedChunkingConfig() { + if (chunkModeCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + chunkMode_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance(); + } + /** + * + * + *
      +     * Configuration for the layout based chunking.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfigOrBuilder + getLayoutBasedChunkingConfigOrBuilder() { + if (chunkModeCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + chunkMode_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance(); + } - private OcrParsingConfig() { - enhancedDocumentElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OcrParsingConfig(); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig.class, - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig.Builder.class); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (chunkModeCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + chunkMode_); } + getUnknownFields().writeTo(output); + } - public static final int ENHANCED_DOCUMENT_ELEMENTS_FIELD_NUMBER = 1; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList enhancedDocumentElements_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
      -       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -       * document elements processing, please switch to `layout_parsing_config`.
      -       * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @return A list containing the enhancedDocumentElements. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getEnhancedDocumentElementsList() { - return enhancedDocumentElements_; + size = 0; + if (chunkModeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + chunkMode_); } - /** - * - * - *
      -       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -       * document elements processing, please switch to `layout_parsing_config`.
      -       * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @return The count of enhancedDocumentElements. - */ - @java.lang.Deprecated - public int getEnhancedDocumentElementsCount() { - return enhancedDocumentElements_.size(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - /** - * - * - *
      -       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -       * document elements processing, please switch to `layout_parsing_config`.
      -       * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @param index The index of the element to return. - * @return The enhancedDocumentElements at the given index. - */ - @java.lang.Deprecated - public java.lang.String getEnhancedDocumentElements(int index) { - return enhancedDocumentElements_.get(index); + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig)) { + return super.equals(obj); } - /** - * - * - *
      -       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -       * document elements processing, please switch to `layout_parsing_config`.
      -       * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @param index The index of the value to return. - * @return The bytes of the enhancedDocumentElements at the given index. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getEnhancedDocumentElementsBytes(int index) { - return enhancedDocumentElements_.getByteString(index); + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig other = + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig) obj; + + if (!getChunkModeCase().equals(other.getChunkModeCase())) return false; + switch (chunkModeCase_) { + case 1: + if (!getLayoutBasedChunkingConfig().equals(other.getLayoutBasedChunkingConfig())) + return false; + break; + case 0: + default: } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static final int USE_NATIVE_TEXT_FIELD_NUMBER = 2; - private boolean useNativeText_ = false; - /** - * - * - *
      -       * If true, will use native text instead of OCR text on pages containing
      -       * native text.
      -       * 
      - * - * bool use_native_text = 2; - * - * @return The useNativeText. - */ - @java.lang.Override - public boolean getUseNativeText() { - return useNativeText_; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (chunkModeCase_) { + case 1: + hash = (37 * hash) + LAYOUT_BASED_CHUNKING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLayoutBasedChunkingConfig().hashCode(); + break; + case 0: + default: } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - private byte memoizedIsInitialized = -1; + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < enhancedDocumentElements_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 1, enhancedDocumentElements_.getRaw(i)); - } - if (useNativeText_ != false) { - output.writeBool(2, useNativeText_); - } - getUnknownFields().writeTo(output); - } + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - size = 0; - { - int dataSize = 0; - for (int i = 0; i < enhancedDocumentElements_.size(); i++) { - dataSize += computeStringSizeNoTag(enhancedDocumentElements_.getRaw(i)); - } - size += dataSize; - size += 1 * getEnhancedDocumentElementsList().size(); - } - if (useNativeText_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useNativeText_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - other = - (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig) - obj; + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - if (!getEnhancedDocumentElementsList().equals(other.getEnhancedDocumentElementsList())) - return false; - if (getUseNativeText() != other.getUseNativeText()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Configuration for chunking config.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig) + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_descriptor; } @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEnhancedDocumentElementsCount() > 0) { - hash = (37 * hash) + ENHANCED_DOCUMENT_ELEMENTS_FIELD_NUMBER; - hash = (53 * hash) + getEnhancedDocumentElementsList().hashCode(); - } - hash = (37 * hash) + USE_NATIVE_TEXT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseNativeText()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .Builder.class); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + // Construct using + // com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (layoutBasedChunkingConfigBuilder_ != null) { + layoutBasedChunkingConfigBuilder_.clear(); + } + chunkModeCase_ = 0; + chunkMode_ = null; + return this; } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_descriptor; } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .getDefaultInstance(); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + build() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig result = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig result) { + int from_bitField0_ = bitField0_; } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig result) { + result.chunkModeCase_ = chunkModeCase_; + result.chunkMode_ = this.chunkMode_; + if (chunkModeCase_ == 1 && layoutBasedChunkingConfigBuilder_ != null) { + result.chunkMode_ = layoutBasedChunkingConfigBuilder_.build(); + } } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + @java.lang.Override + public Builder clone() { + return super.clone(); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .getDefaultInstance()) return this; + switch (other.getChunkModeCase()) { + case LAYOUT_BASED_CHUNKING_CONFIG: + { + mergeLayoutBasedChunkingConfig(other.getLayoutBasedChunkingConfig()); + break; + } + case CHUNKMODE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public final boolean isInitialized() { + return true; } @java.lang.Override - protected Builder newBuilderForType( + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getLayoutBasedChunkingConfigFieldBuilder().getBuilder(), extensionRegistry); + chunkModeCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int chunkModeCase_ = 0; + private java.lang.Object chunkMode_; + + public ChunkModeCase getChunkModeCase() { + return ChunkModeCase.forNumber(chunkModeCase_); + } + + public Builder clearChunkMode() { + chunkModeCase_ = 0; + chunkMode_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfigOrBuilder> + layoutBasedChunkingConfigBuilder_; + /** + * + * + *
      +       * Configuration for the layout based chunking.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + * + * @return Whether the layoutBasedChunkingConfig field is set. + */ + @java.lang.Override + public boolean hasLayoutBasedChunkingConfig() { + return chunkModeCase_ == 1; + } + /** + * + * + *
      +       * Configuration for the layout based chunking.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + * + * @return The layoutBasedChunkingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + getLayoutBasedChunkingConfig() { + if (layoutBasedChunkingConfigBuilder_ == null) { + if (chunkModeCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + chunkMode_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance(); + } else { + if (chunkModeCase_ == 1) { + return layoutBasedChunkingConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance(); + } + } + /** + * + * + *
      +       * Configuration for the layout based chunking.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + public Builder setLayoutBasedChunkingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + value) { + if (layoutBasedChunkingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkMode_ = value; + onChanged(); + } else { + layoutBasedChunkingConfigBuilder_.setMessage(value); + } + chunkModeCase_ = 1; + return this; + } + /** + * + * + *
      +       * Configuration for the layout based chunking.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + public Builder setLayoutBasedChunkingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.Builder + builderForValue) { + if (layoutBasedChunkingConfigBuilder_ == null) { + chunkMode_ = builderForValue.build(); + onChanged(); + } else { + layoutBasedChunkingConfigBuilder_.setMessage(builderForValue.build()); + } + chunkModeCase_ = 1; + return this; + } + /** + * + * + *
      +       * Configuration for the layout based chunking.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + public Builder mergeLayoutBasedChunkingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + value) { + if (layoutBasedChunkingConfigBuilder_ == null) { + if (chunkModeCase_ == 1 + && chunkMode_ + != com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance()) { + chunkMode_ = + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.newBuilder( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ChunkingConfig.LayoutBasedChunkingConfig) + chunkMode_) + .mergeFrom(value) + .buildPartial(); + } else { + chunkMode_ = value; + } + onChanged(); + } else { + if (chunkModeCase_ == 1) { + layoutBasedChunkingConfigBuilder_.mergeFrom(value); + } else { + layoutBasedChunkingConfigBuilder_.setMessage(value); + } + } + chunkModeCase_ = 1; + return this; + } + /** + * + * + *
      +       * Configuration for the layout based chunking.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + public Builder clearLayoutBasedChunkingConfig() { + if (layoutBasedChunkingConfigBuilder_ == null) { + if (chunkModeCase_ == 1) { + chunkModeCase_ = 0; + chunkMode_ = null; + onChanged(); + } + } else { + if (chunkModeCase_ == 1) { + chunkModeCase_ = 0; + chunkMode_ = null; + } + layoutBasedChunkingConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +       * Configuration for the layout based chunking.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.Builder + getLayoutBasedChunkingConfigBuilder() { + return getLayoutBasedChunkingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * Configuration for the layout based chunking.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfigOrBuilder + getLayoutBasedChunkingConfigOrBuilder() { + if ((chunkModeCase_ == 1) && (layoutBasedChunkingConfigBuilder_ != null)) { + return layoutBasedChunkingConfigBuilder_.getMessageOrBuilder(); + } else { + if (chunkModeCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + chunkMode_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance(); + } + } + /** + * + * + *
      +       * Configuration for the layout based chunking.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfigOrBuilder> + getLayoutBasedChunkingConfigFieldBuilder() { + if (layoutBasedChunkingConfigBuilder_ == null) { + if (!(chunkModeCase_ == 1)) { + chunkMode_ = + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance(); + } + layoutBasedChunkingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + chunkMode_, + getParentForChildren(), + isClean()); + chunkMode_ = null; + } + chunkModeCase_ = 1; + onChanged(); + return layoutBasedChunkingConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig) + private static final com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ChunkingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChunkingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ParsingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Configurations applied to digital parser.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + * + * @return Whether the digitalParsingConfig field is set. + */ + boolean hasDigitalParsingConfig(); + /** + * + * + *
      +     * Configurations applied to digital parser.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + * + * @return The digitalParsingConfig. + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDigitalParsingConfig(); + /** + * + * + *
      +     * Configurations applied to digital parser.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder + getDigitalParsingConfigOrBuilder(); + + /** + * + * + *
      +     * Configurations applied to OCR parser. Currently it only applies to
      +     * PDFs.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + * + * @return Whether the ocrParsingConfig field is set. + */ + boolean hasOcrParsingConfig(); + /** + * + * + *
      +     * Configurations applied to OCR parser. Currently it only applies to
      +     * PDFs.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + * + * @return The ocrParsingConfig. + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig + getOcrParsingConfig(); + /** + * + * + *
      +     * Configurations applied to OCR parser. Currently it only applies to
      +     * PDFs.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder + getOcrParsingConfigOrBuilder(); + + /** + * + * + *
      +     * Configurations applied to layout parser.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + * + * @return Whether the layoutParsingConfig field is set. + */ + boolean hasLayoutParsingConfig(); + /** + * + * + *
      +     * Configurations applied to layout parser.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + * + * @return The layoutParsingConfig. + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + getLayoutParsingConfig(); + /** + * + * + *
      +     * Configurations applied to layout parser.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfigOrBuilder + getLayoutParsingConfigOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .TypeDedicatedConfigCase + getTypeDedicatedConfigCase(); + } + /** + * + * + *
      +   * Related configurations applied to a specific type of document parser.
      +   * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig} + */ + public static final class ParsingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) + ParsingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParsingConfig.newBuilder() to construct. + private ParsingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParsingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ParsingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.Builder + .class); + } + + public interface DigitalParsingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
      +     * The digital parsing configurations for documents.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig} + */ + public static final class DigitalParsingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + DigitalParsingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DigitalParsingConfig.newBuilder() to construct. + private DigitalParsingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DigitalParsingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DigitalParsingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + other = + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +       * The digital parsing configurations for documents.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + build() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + result = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + private static final com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfig.DigitalParsingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DigitalParsingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OcrParsingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +       * document elements processing, please switch to `layout_parsing_config`.
      +       * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @return A list containing the enhancedDocumentElements. + */ + @java.lang.Deprecated + java.util.List getEnhancedDocumentElementsList(); + /** + * + * + *
      +       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +       * document elements processing, please switch to `layout_parsing_config`.
      +       * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @return The count of enhancedDocumentElements. + */ + @java.lang.Deprecated + int getEnhancedDocumentElementsCount(); + /** + * + * + *
      +       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +       * document elements processing, please switch to `layout_parsing_config`.
      +       * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @param index The index of the element to return. + * @return The enhancedDocumentElements at the given index. + */ + @java.lang.Deprecated + java.lang.String getEnhancedDocumentElements(int index); + /** + * + * + *
      +       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +       * document elements processing, please switch to `layout_parsing_config`.
      +       * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @param index The index of the value to return. + * @return The bytes of the enhancedDocumentElements at the given index. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getEnhancedDocumentElementsBytes(int index); + + /** + * + * + *
      +       * If true, will use native text instead of OCR text on pages containing
      +       * native text.
      +       * 
      + * + * bool use_native_text = 2; + * + * @return The useNativeText. + */ + boolean getUseNativeText(); + } + /** + * + * + *
      +     * The OCR parsing configurations for documents.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig} + */ + public static final class OcrParsingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + OcrParsingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use OcrParsingConfig.newBuilder() to construct. + private OcrParsingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OcrParsingConfig() { + enhancedDocumentElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OcrParsingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder.class); + } + + public static final int ENHANCED_DOCUMENT_ELEMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList enhancedDocumentElements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
      +       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +       * document elements processing, please switch to `layout_parsing_config`.
      +       * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @return A list containing the enhancedDocumentElements. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getEnhancedDocumentElementsList() { + return enhancedDocumentElements_; + } + /** + * + * + *
      +       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +       * document elements processing, please switch to `layout_parsing_config`.
      +       * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @return The count of enhancedDocumentElements. + */ + @java.lang.Deprecated + public int getEnhancedDocumentElementsCount() { + return enhancedDocumentElements_.size(); + } + /** + * + * + *
      +       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +       * document elements processing, please switch to `layout_parsing_config`.
      +       * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @param index The index of the element to return. + * @return The enhancedDocumentElements at the given index. + */ + @java.lang.Deprecated + public java.lang.String getEnhancedDocumentElements(int index) { + return enhancedDocumentElements_.get(index); + } + /** + * + * + *
      +       * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +       * document elements processing, please switch to `layout_parsing_config`.
      +       * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @param index The index of the value to return. + * @return The bytes of the enhancedDocumentElements at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getEnhancedDocumentElementsBytes(int index) { + return enhancedDocumentElements_.getByteString(index); + } + + public static final int USE_NATIVE_TEXT_FIELD_NUMBER = 2; + private boolean useNativeText_ = false; + /** + * + * + *
      +       * If true, will use native text instead of OCR text on pages containing
      +       * native text.
      +       * 
      + * + * bool use_native_text = 2; + * + * @return The useNativeText. + */ + @java.lang.Override + public boolean getUseNativeText() { + return useNativeText_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < enhancedDocumentElements_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, enhancedDocumentElements_.getRaw(i)); + } + if (useNativeText_ != false) { + output.writeBool(2, useNativeText_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < enhancedDocumentElements_.size(); i++) { + dataSize += computeStringSizeNoTag(enhancedDocumentElements_.getRaw(i)); + } + size += dataSize; + size += 1 * getEnhancedDocumentElementsList().size(); + } + if (useNativeText_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useNativeText_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + other = + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + obj; + + if (!getEnhancedDocumentElementsList().equals(other.getEnhancedDocumentElementsList())) + return false; + if (getUseNativeText() != other.getUseNativeText()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEnhancedDocumentElementsCount() > 0) { + hash = (37 * hash) + ENHANCED_DOCUMENT_ELEMENTS_FIELD_NUMBER; + hash = (53 * hash) + getEnhancedDocumentElementsList().hashCode(); + } + hash = (37 * hash) + USE_NATIVE_TEXT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseNativeText()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +       * The OCR parsing configurations for documents.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enhancedDocumentElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + useNativeText_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + build() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + result = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + enhancedDocumentElements_.makeImmutable(); + result.enhancedDocumentElements_ = enhancedDocumentElements_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.useNativeText_ = useNativeText_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance()) return this; + if (!other.enhancedDocumentElements_.isEmpty()) { + if (enhancedDocumentElements_.isEmpty()) { + enhancedDocumentElements_ = other.enhancedDocumentElements_; + bitField0_ |= 0x00000001; + } else { + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.addAll(other.enhancedDocumentElements_); + } + onChanged(); + } + if (other.getUseNativeText() != false) { + setUseNativeText(other.getUseNativeText()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.add(s); + break; + } // case 10 + case 16: + { + useNativeText_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList enhancedDocumentElements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureEnhancedDocumentElementsIsMutable() { + if (!enhancedDocumentElements_.isModifiable()) { + enhancedDocumentElements_ = + new com.google.protobuf.LazyStringArrayList(enhancedDocumentElements_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
      +         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +         * document elements processing, please switch to `layout_parsing_config`.
      +         * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @return A list containing the enhancedDocumentElements. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getEnhancedDocumentElementsList() { + enhancedDocumentElements_.makeImmutable(); + return enhancedDocumentElements_; + } + /** + * + * + *
      +         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +         * document elements processing, please switch to `layout_parsing_config`.
      +         * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @return The count of enhancedDocumentElements. + */ + @java.lang.Deprecated + public int getEnhancedDocumentElementsCount() { + return enhancedDocumentElements_.size(); + } + /** + * + * + *
      +         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +         * document elements processing, please switch to `layout_parsing_config`.
      +         * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @param index The index of the element to return. + * @return The enhancedDocumentElements at the given index. + */ + @java.lang.Deprecated + public java.lang.String getEnhancedDocumentElements(int index) { + return enhancedDocumentElements_.get(index); + } + /** + * + * + *
      +         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +         * document elements processing, please switch to `layout_parsing_config`.
      +         * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @param index The index of the value to return. + * @return The bytes of the enhancedDocumentElements at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getEnhancedDocumentElementsBytes(int index) { + return enhancedDocumentElements_.getByteString(index); + } + /** + * + * + *
      +         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +         * document elements processing, please switch to `layout_parsing_config`.
      +         * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @param index The index to set the value at. + * @param value The enhancedDocumentElements to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setEnhancedDocumentElements(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +         * document elements processing, please switch to `layout_parsing_config`.
      +         * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @param value The enhancedDocumentElements to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addEnhancedDocumentElements(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +         * document elements processing, please switch to `layout_parsing_config`.
      +         * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @param values The enhancedDocumentElements to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAllEnhancedDocumentElements(java.lang.Iterable values) { + ensureEnhancedDocumentElementsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enhancedDocumentElements_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +         * document elements processing, please switch to `layout_parsing_config`.
      +         * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearEnhancedDocumentElements() { + enhancedDocumentElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
      +         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      +         * document elements processing, please switch to `layout_parsing_config`.
      +         * 
      + * + * repeated string enhanced_document_elements = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements + * is deprecated. See + * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=76 + * @param value The bytes of the enhancedDocumentElements to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addEnhancedDocumentElementsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean useNativeText_; + /** + * + * + *
      +         * If true, will use native text instead of OCR text on pages containing
      +         * native text.
      +         * 
      + * + * bool use_native_text = 2; + * + * @return The useNativeText. + */ + @java.lang.Override + public boolean getUseNativeText() { + return useNativeText_; + } + /** + * + * + *
      +         * If true, will use native text instead of OCR text on pages containing
      +         * native text.
      +         * 
      + * + * bool use_native_text = 2; + * + * @param value The useNativeText to set. + * @return This builder for chaining. + */ + public Builder setUseNativeText(boolean value) { + + useNativeText_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +         * If true, will use native text instead of OCR text on pages containing
      +         * native text.
      +         * 
      + * + * bool use_native_text = 2; + * + * @return This builder for chaining. + */ + public Builder clearUseNativeText() { + bitField0_ = (bitField0_ & ~0x00000002); + useNativeText_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + private static final com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfig.OcrParsingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OcrParsingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LayoutParsingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
      +     * The layout parsing configurations for documents.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig} + */ + public static final class LayoutParsingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig) + LayoutParsingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use LayoutParsingConfig.newBuilder() to construct. + private LayoutParsingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LayoutParsingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LayoutParsingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + other = + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; @@ -1175,37 +3763,37 @@ protected Builder newBuilderForType( * * *
      -       * The OCR parsing configurations for documents.
      +       * The layout parsing configurations for documents.
              * 
      * * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig} + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig) com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfigOrBuilder { + .LayoutParsingConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig.class, + .LayoutParsingConfig.class, com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig.Builder.class); + .LayoutParsingConfig.Builder.class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.newBuilder() + // com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -1215,480 +3803,147 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - bitField0_ = 0; - enhancedDocumentElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); - useNativeText_ = false; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - build() { - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - buildPartial() { - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - result = - new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - enhancedDocumentElements_.makeImmutable(); - result.enhancedDocumentElements_ = enhancedDocumentElements_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.useNativeText_ = useNativeText_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor; } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig) - other); - } else { - super.mergeFrom(other); - return this; - } + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance(); } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig.getDefaultInstance()) return this; - if (!other.enhancedDocumentElements_.isEmpty()) { - if (enhancedDocumentElements_.isEmpty()) { - enhancedDocumentElements_ = other.enhancedDocumentElements_; - bitField0_ |= 0x00000001; - } else { - ensureEnhancedDocumentElementsIsMutable(); - enhancedDocumentElements_.addAll(other.enhancedDocumentElements_); - } - onChanged(); - } - if (other.getUseNativeText() != false) { - setUseNativeText(other.getUseNativeText()); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + build() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + return result; } @java.lang.Override - public final boolean isInitialized() { - return true; + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + result = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig(this); + onBuilt(); + return result; } @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureEnhancedDocumentElementsIsMutable(); - enhancedDocumentElements_.add(s); - break; - } // case 10 - case 16: - { - useNativeText_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + public Builder clone() { + return super.clone(); } - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList enhancedDocumentElements_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureEnhancedDocumentElementsIsMutable() { - if (!enhancedDocumentElements_.isModifiable()) { - enhancedDocumentElements_ = - new com.google.protobuf.LazyStringArrayList(enhancedDocumentElements_); - } - bitField0_ |= 0x00000001; - } - /** - * - * - *
      -         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -         * document elements processing, please switch to `layout_parsing_config`.
      -         * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @return A list containing the enhancedDocumentElements. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getEnhancedDocumentElementsList() { - enhancedDocumentElements_.makeImmutable(); - return enhancedDocumentElements_; - } - /** - * - * - *
      -         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -         * document elements processing, please switch to `layout_parsing_config`.
      -         * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @return The count of enhancedDocumentElements. - */ - @java.lang.Deprecated - public int getEnhancedDocumentElementsCount() { - return enhancedDocumentElements_.size(); - } - /** - * - * - *
      -         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -         * document elements processing, please switch to `layout_parsing_config`.
      -         * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @param index The index of the element to return. - * @return The enhancedDocumentElements at the given index. - */ - @java.lang.Deprecated - public java.lang.String getEnhancedDocumentElements(int index) { - return enhancedDocumentElements_.get(index); - } - /** - * - * - *
      -         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -         * document elements processing, please switch to `layout_parsing_config`.
      -         * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @param index The index of the value to return. - * @return The bytes of the enhancedDocumentElements at the given index. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getEnhancedDocumentElementsBytes(int index) { - return enhancedDocumentElements_.getByteString(index); - } - /** - * - * - *
      -         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -         * document elements processing, please switch to `layout_parsing_config`.
      -         * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @param index The index to set the value at. - * @param value The enhancedDocumentElements to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setEnhancedDocumentElements(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnhancedDocumentElementsIsMutable(); - enhancedDocumentElements_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); } - /** - * - * - *
      -         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -         * document elements processing, please switch to `layout_parsing_config`.
      -         * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @param value The enhancedDocumentElements to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addEnhancedDocumentElements(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnhancedDocumentElementsIsMutable(); - enhancedDocumentElements_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - /** - * - * - *
      -         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -         * document elements processing, please switch to `layout_parsing_config`.
      -         * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @param values The enhancedDocumentElements to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addAllEnhancedDocumentElements(java.lang.Iterable values) { - ensureEnhancedDocumentElementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enhancedDocumentElements_); - bitField0_ |= 0x00000001; - onChanged(); - return this; + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - /** - * - * - *
      -         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -         * document elements processing, please switch to `layout_parsing_config`.
      -         * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearEnhancedDocumentElements() { - enhancedDocumentElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - /** - * - * - *
      -         * [DEPRECATED] This field is deprecated. To use the additional enhanced
      -         * document elements processing, please switch to `layout_parsing_config`.
      -         * 
      - * - * repeated string enhanced_document_elements = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.enhanced_document_elements - * is deprecated. See - * google/cloud/discoveryengine/v1beta/document_processing_config.proto;l=52 - * @param value The bytes of the enhancedDocumentElements to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addEnhancedDocumentElementsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureEnhancedDocumentElementsIsMutable(); - enhancedDocumentElements_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); } - private boolean useNativeText_; - /** - * - * - *
      -         * If true, will use native text instead of OCR text on pages containing
      -         * native text.
      -         * 
      - * - * bool use_native_text = 2; - * - * @return The useNativeText. - */ @java.lang.Override - public boolean getUseNativeText() { - return useNativeText_; + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + other); + } else { + super.mergeFrom(other); + return this; + } } - /** - * - * - *
      -         * If true, will use native text instead of OCR text on pages containing
      -         * native text.
      -         * 
      - * - * bool use_native_text = 2; - * - * @param value The useNativeText to set. - * @return This builder for chaining. - */ - public Builder setUseNativeText(boolean value) { - useNativeText_ = value; - bitField0_ |= 0x00000002; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } - /** - * - * - *
      -         * If true, will use native text instead of OCR text on pages containing
      -         * native text.
      -         * 
      - * - * bool use_native_text = 2; - * - * @return This builder for chaining. - */ - public Builder clearUseNativeText() { - bitField0_ = (bitField0_ & ~0x00000002); - useNativeText_ = false; - onChanged(); + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally return this; } @@ -1704,30 +3959,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig) private static final com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig - .ParsingConfig.OcrParsingConfig + .ParsingConfig.LayoutParsingConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig(); + .LayoutParsingConfig(); } public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig + .LayoutParsingConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public OcrParsingConfig parsePartialFrom( + public LayoutParsingConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1747,18 +4002,18 @@ public OcrParsingConfig parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig + .LayoutParsingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1775,6 +4030,7 @@ public enum TypeDedicatedConfigCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { DIGITAL_PARSING_CONFIG(1), OCR_PARSING_CONFIG(2), + LAYOUT_PARSING_CONFIG(3), TYPEDEDICATEDCONFIG_NOT_SET(0); private final int value; @@ -1797,6 +4053,8 @@ public static TypeDedicatedConfigCase forNumber(int value) { return DIGITAL_PARSING_CONFIG; case 2: return OCR_PARSING_CONFIG; + case 3: + return LAYOUT_PARSING_CONFIG; case 0: return TYPEDEDICATEDCONFIG_NOT_SET; default: @@ -1919,35 +4177,102 @@ public boolean hasOcrParsingConfig() { getOcrParsingConfig() { if (typeDedicatedConfigCase_ == 2) { return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig) + .OcrParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + /** + * + * + *
      +     * Configurations applied to OCR parser. Currently it only applies to
      +     * PDFs.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder + getOcrParsingConfigOrBuilder() { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + + public static final int LAYOUT_PARSING_CONFIG_FIELD_NUMBER = 3; + /** + * + * + *
      +     * Configurations applied to layout parser.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + * + * @return Whether the layoutParsingConfig field is set. + */ + @java.lang.Override + public boolean hasLayoutParsingConfig() { + return typeDedicatedConfigCase_ == 3; + } + /** + * + * + *
      +     * Configurations applied to layout parser.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + * + * @return The layoutParsingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + getLayoutParsingConfig() { + if (typeDedicatedConfigCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) typeDedicatedConfig_; } return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig.getDefaultInstance(); + .LayoutParsingConfig.getDefaultInstance(); } /** * * *
      -     * Configurations applied to OCR parser. Currently it only applies to
      -     * PDFs.
      +     * Configurations applied to layout parser.
            * 
      * * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; * */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfigOrBuilder - getOcrParsingConfigOrBuilder() { - if (typeDedicatedConfigCase_ == 2) { + .LayoutParsingConfigOrBuilder + getLayoutParsingConfigOrBuilder() { + if (typeDedicatedConfigCase_ == 3) { return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig) + .LayoutParsingConfig) typeDedicatedConfig_; } return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig.getDefaultInstance(); + .LayoutParsingConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -1978,6 +4303,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .OcrParsingConfig) typeDedicatedConfig_); } + if (typeDedicatedConfigCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + typeDedicatedConfig_); + } getUnknownFields().writeTo(output); } @@ -2003,6 +4335,14 @@ public int getSerializedSize() { .OcrParsingConfig) typeDedicatedConfig_); } + if (typeDedicatedConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + typeDedicatedConfig_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2029,6 +4369,9 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getOcrParsingConfig().equals(other.getOcrParsingConfig())) return false; break; + case 3: + if (!getLayoutParsingConfig().equals(other.getLayoutParsingConfig())) return false; + break; case 0: default: } @@ -2052,6 +4395,10 @@ public int hashCode() { hash = (37 * hash) + OCR_PARSING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getOcrParsingConfig().hashCode(); break; + case 3: + hash = (37 * hash) + LAYOUT_PARSING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLayoutParsingConfig().hashCode(); + break; case 0: default: } @@ -2213,6 +4560,9 @@ public Builder clear() { if (ocrParsingConfigBuilder_ != null) { ocrParsingConfigBuilder_.clear(); } + if (layoutParsingConfigBuilder_ != null) { + layoutParsingConfigBuilder_.clear(); + } typeDedicatedConfigCase_ = 0; typeDedicatedConfig_ = null; return this; @@ -2271,6 +4621,9 @@ private void buildPartialOneofs( if (typeDedicatedConfigCase_ == 2 && ocrParsingConfigBuilder_ != null) { result.typeDedicatedConfig_ = ocrParsingConfigBuilder_.build(); } + if (typeDedicatedConfigCase_ == 3 && layoutParsingConfigBuilder_ != null) { + result.typeDedicatedConfig_ = layoutParsingConfigBuilder_.build(); + } } @java.lang.Override @@ -2338,6 +4691,11 @@ public Builder mergeFrom( mergeOcrParsingConfig(other.getOcrParsingConfig()); break; } + case LAYOUT_PARSING_CONFIG: + { + mergeLayoutParsingConfig(other.getLayoutParsingConfig()); + break; + } case TYPEDEDICATEDCONFIG_NOT_SET: { break; @@ -2383,6 +4741,13 @@ public Builder mergeFrom( typeDedicatedConfigCase_ = 2; break; } // case 18 + case 26: + { + input.readMessage( + getLayoutParsingConfigFieldBuilder().getBuilder(), extensionRegistry); + typeDedicatedConfigCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2820,7 +5185,277 @@ public Builder mergeOcrParsingConfig( com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig .OcrParsingConfig.newBuilder( (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig - .ParsingConfig.OcrParsingConfig) + .ParsingConfig.OcrParsingConfig) + typeDedicatedConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + typeDedicatedConfig_ = value; + } + onChanged(); + } else { + if (typeDedicatedConfigCase_ == 2) { + ocrParsingConfigBuilder_.mergeFrom(value); + } else { + ocrParsingConfigBuilder_.setMessage(value); + } + } + typeDedicatedConfigCase_ = 2; + return this; + } + /** + * + * + *
      +       * Configurations applied to OCR parser. Currently it only applies to
      +       * PDFs.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + public Builder clearOcrParsingConfig() { + if (ocrParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 2) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + } + } else { + if (typeDedicatedConfigCase_ == 2) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + } + ocrParsingConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +       * Configurations applied to OCR parser. Currently it only applies to
      +       * PDFs.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder + getOcrParsingConfigBuilder() { + return getOcrParsingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * Configurations applied to OCR parser. Currently it only applies to
      +       * PDFs.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder + getOcrParsingConfigOrBuilder() { + if ((typeDedicatedConfigCase_ == 2) && (ocrParsingConfigBuilder_ != null)) { + return ocrParsingConfigBuilder_.getMessageOrBuilder(); + } else { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + } + /** + * + * + *
      +       * Configurations applied to OCR parser. Currently it only applies to
      +       * PDFs.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder> + getOcrParsingConfigFieldBuilder() { + if (ocrParsingConfigBuilder_ == null) { + if (!(typeDedicatedConfigCase_ == 2)) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + ocrParsingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_, + getParentForChildren(), + isClean()); + typeDedicatedConfig_ = null; + } + typeDedicatedConfigCase_ = 2; + onChanged(); + return ocrParsingConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfigOrBuilder> + layoutParsingConfigBuilder_; + /** + * + * + *
      +       * Configurations applied to layout parser.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + * + * @return Whether the layoutParsingConfig field is set. + */ + @java.lang.Override + public boolean hasLayoutParsingConfig() { + return typeDedicatedConfigCase_ == 3; + } + /** + * + * + *
      +       * Configurations applied to layout parser.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + * + * @return The layoutParsingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + getLayoutParsingConfig() { + if (layoutParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance(); + } else { + if (typeDedicatedConfigCase_ == 3) { + return layoutParsingConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance(); + } + } + /** + * + * + *
      +       * Configurations applied to layout parser.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + */ + public Builder setLayoutParsingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + value) { + if (layoutParsingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeDedicatedConfig_ = value; + onChanged(); + } else { + layoutParsingConfigBuilder_.setMessage(value); + } + typeDedicatedConfigCase_ = 3; + return this; + } + /** + * + * + *
      +       * Configurations applied to layout parser.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + */ + public Builder setLayoutParsingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.Builder + builderForValue) { + if (layoutParsingConfigBuilder_ == null) { + typeDedicatedConfig_ = builderForValue.build(); + onChanged(); + } else { + layoutParsingConfigBuilder_.setMessage(builderForValue.build()); + } + typeDedicatedConfigCase_ = 3; + return this; + } + /** + * + * + *
      +       * Configurations applied to layout parser.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + */ + public Builder mergeLayoutParsingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + value) { + if (layoutParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 3 + && typeDedicatedConfig_ + != com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance()) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.newBuilder( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfig.LayoutParsingConfig) typeDedicatedConfig_) .mergeFrom(value) .buildPartial(); @@ -2829,40 +5464,39 @@ public Builder mergeOcrParsingConfig( } onChanged(); } else { - if (typeDedicatedConfigCase_ == 2) { - ocrParsingConfigBuilder_.mergeFrom(value); + if (typeDedicatedConfigCase_ == 3) { + layoutParsingConfigBuilder_.mergeFrom(value); } else { - ocrParsingConfigBuilder_.setMessage(value); + layoutParsingConfigBuilder_.setMessage(value); } } - typeDedicatedConfigCase_ = 2; + typeDedicatedConfigCase_ = 3; return this; } /** * * *
      -       * Configurations applied to OCR parser. Currently it only applies to
      -       * PDFs.
      +       * Configurations applied to layout parser.
              * 
      * * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; * */ - public Builder clearOcrParsingConfig() { - if (ocrParsingConfigBuilder_ == null) { - if (typeDedicatedConfigCase_ == 2) { + public Builder clearLayoutParsingConfig() { + if (layoutParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 3) { typeDedicatedConfigCase_ = 0; typeDedicatedConfig_ = null; onChanged(); } } else { - if (typeDedicatedConfigCase_ == 2) { + if (typeDedicatedConfigCase_ == 3) { typeDedicatedConfigCase_ = 0; typeDedicatedConfig_ = null; } - ocrParsingConfigBuilder_.clear(); + layoutParsingConfigBuilder_.clear(); } return this; } @@ -2870,91 +5504,88 @@ public Builder clearOcrParsingConfig() { * * *
      -       * Configurations applied to OCR parser. Currently it only applies to
      -       * PDFs.
      +       * Configurations applied to layout parser.
              * 
      * * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; * */ public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig.Builder - getOcrParsingConfigBuilder() { - return getOcrParsingConfigFieldBuilder().getBuilder(); + .LayoutParsingConfig.Builder + getLayoutParsingConfigBuilder() { + return getLayoutParsingConfigFieldBuilder().getBuilder(); } /** * * *
      -       * Configurations applied to OCR parser. Currently it only applies to
      -       * PDFs.
      +       * Configurations applied to layout parser.
              * 
      * * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; * */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfigOrBuilder - getOcrParsingConfigOrBuilder() { - if ((typeDedicatedConfigCase_ == 2) && (ocrParsingConfigBuilder_ != null)) { - return ocrParsingConfigBuilder_.getMessageOrBuilder(); + .LayoutParsingConfigOrBuilder + getLayoutParsingConfigOrBuilder() { + if ((typeDedicatedConfigCase_ == 3) && (layoutParsingConfigBuilder_ != null)) { + return layoutParsingConfigBuilder_.getMessageOrBuilder(); } else { - if (typeDedicatedConfigCase_ == 2) { + if (typeDedicatedConfigCase_ == 3) { return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig) + .LayoutParsingConfig) typeDedicatedConfig_; } return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig.getDefaultInstance(); + .LayoutParsingConfig.getDefaultInstance(); } } /** * * *
      -       * Configurations applied to OCR parser. Currently it only applies to
      -       * PDFs.
      +       * Configurations applied to layout parser.
              * 
      * * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig, + .LayoutParsingConfig, com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig.Builder, + .LayoutParsingConfig.Builder, com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfigOrBuilder> - getOcrParsingConfigFieldBuilder() { - if (ocrParsingConfigBuilder_ == null) { - if (!(typeDedicatedConfigCase_ == 2)) { + .LayoutParsingConfigOrBuilder> + getLayoutParsingConfigFieldBuilder() { + if (layoutParsingConfigBuilder_ == null) { + if (!(typeDedicatedConfigCase_ == 3)) { typeDedicatedConfig_ = com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig.getDefaultInstance(); + .LayoutParsingConfig.getDefaultInstance(); } - ocrParsingConfigBuilder_ = + layoutParsingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig, + .LayoutParsingConfig, com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig.Builder, + .LayoutParsingConfig.Builder, com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfigOrBuilder>( + .LayoutParsingConfigOrBuilder>( (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .OcrParsingConfig) + .LayoutParsingConfig) typeDedicatedConfig_, getParentForChildren(), isClean()); typeDedicatedConfig_ = null; } - typeDedicatedConfigCase_ = 2; + typeDedicatedConfigCase_ = 3; onChanged(); - return ocrParsingConfigBuilder_; + return layoutParsingConfigBuilder_; } @java.lang.Override @@ -3082,6 +5713,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int CHUNKING_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + chunkingConfig_; + /** + * + * + *
      +   * Whether chunking mode is enabled.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + * + * @return Whether the chunkingConfig field is set. + */ + @java.lang.Override + public boolean hasChunkingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Whether chunking mode is enabled.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + * + * @return The chunkingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + getChunkingConfig() { + return chunkingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .getDefaultInstance() + : chunkingConfig_; + } + /** + * + * + *
      +   * Whether chunking mode is enabled.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfigOrBuilder + getChunkingConfigOrBuilder() { + return chunkingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .getDefaultInstance() + : chunkingConfig_; + } + public static final int DEFAULT_PARSING_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig defaultParsingConfig_; @@ -3103,7 +5795,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasDefaultParsingConfig() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -3202,9 +5894,11 @@ public int getParsingConfigOverridesCount() { * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -3237,9 +5931,11 @@ public boolean containsParsingConfigOverrides(java.lang.String key) { * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -3263,9 +5959,11 @@ public boolean containsParsingConfigOverrides(java.lang.String key) { * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -3299,9 +5997,11 @@ public boolean containsParsingConfigOverrides(java.lang.String key) { * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -3342,6 +6042,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getChunkingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getDefaultParsingConfig()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -3362,6 +6065,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getChunkingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDefaultParsingConfig()); } @@ -3397,6 +6103,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig) obj; if (!getName().equals(other.getName())) return false; + if (hasChunkingConfig() != other.hasChunkingConfig()) return false; + if (hasChunkingConfig()) { + if (!getChunkingConfig().equals(other.getChunkingConfig())) return false; + } if (hasDefaultParsingConfig() != other.hasDefaultParsingConfig()) return false; if (hasDefaultParsingConfig()) { if (!getDefaultParsingConfig().equals(other.getDefaultParsingConfig())) return false; @@ -3416,6 +6126,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + if (hasChunkingConfig()) { + hash = (37 * hash) + CHUNKING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getChunkingConfig().hashCode(); + } if (hasDefaultParsingConfig()) { hash = (37 * hash) + DEFAULT_PARSING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDefaultParsingConfig().hashCode(); @@ -3592,6 +6306,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getChunkingConfigFieldBuilder(); getDefaultParsingConfigFieldBuilder(); } } @@ -3601,6 +6316,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + chunkingConfig_ = null; + if (chunkingConfigBuilder_ != null) { + chunkingConfigBuilder_.dispose(); + chunkingConfigBuilder_ = null; + } defaultParsingConfig_ = null; if (defaultParsingConfigBuilder_ != null) { defaultParsingConfigBuilder_.dispose(); @@ -3650,13 +6370,18 @@ private void buildPartial0( } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { + result.chunkingConfig_ = + chunkingConfigBuilder_ == null ? chunkingConfig_ : chunkingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { result.defaultParsingConfig_ = defaultParsingConfigBuilder_ == null ? defaultParsingConfig_ : defaultParsingConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.parsingConfigOverrides_ = internalGetParsingConfigOverrides() .build(ParsingConfigOverridesDefaultEntryHolder.defaultEntry); @@ -3717,12 +6442,15 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; onChanged(); } + if (other.hasChunkingConfig()) { + mergeChunkingConfig(other.getChunkingConfig()); + } if (other.hasDefaultParsingConfig()) { mergeDefaultParsingConfig(other.getDefaultParsingConfig()); } internalGetMutableParsingConfigOverrides() .mergeFrom(other.internalGetParsingConfigOverrides()); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3755,11 +6483,17 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 26: + { + input.readMessage(getChunkingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 case 34: { input.readMessage( getDefaultParsingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 34 case 42: @@ -3776,7 +6510,7 @@ public Builder mergeFrom( internalGetMutableParsingConfigOverrides() .ensureBuilderMap() .put(parsingConfigOverrides__.getKey(), parsingConfigOverrides__.getValue()); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -3914,6 +6648,225 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + chunkingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ChunkingConfigOrBuilder> + chunkingConfigBuilder_; + /** + * + * + *
      +     * Whether chunking mode is enabled.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + * + * @return Whether the chunkingConfig field is set. + */ + public boolean hasChunkingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Whether chunking mode is enabled.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + * + * @return The chunkingConfig. + */ + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + getChunkingConfig() { + if (chunkingConfigBuilder_ == null) { + return chunkingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .getDefaultInstance() + : chunkingConfig_; + } else { + return chunkingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Whether chunking mode is enabled.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + public Builder setChunkingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig value) { + if (chunkingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkingConfig_ = value; + } else { + chunkingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Whether chunking mode is enabled.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + public Builder setChunkingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.Builder + builderForValue) { + if (chunkingConfigBuilder_ == null) { + chunkingConfig_ = builderForValue.build(); + } else { + chunkingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Whether chunking mode is enabled.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + public Builder mergeChunkingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig value) { + if (chunkingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && chunkingConfig_ != null + && chunkingConfig_ + != com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .getDefaultInstance()) { + getChunkingConfigBuilder().mergeFrom(value); + } else { + chunkingConfig_ = value; + } + } else { + chunkingConfigBuilder_.mergeFrom(value); + } + if (chunkingConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Whether chunking mode is enabled.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + public Builder clearChunkingConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + chunkingConfig_ = null; + if (chunkingConfigBuilder_ != null) { + chunkingConfigBuilder_.dispose(); + chunkingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Whether chunking mode is enabled.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.Builder + getChunkingConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getChunkingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Whether chunking mode is enabled.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfigOrBuilder + getChunkingConfigOrBuilder() { + if (chunkingConfigBuilder_ != null) { + return chunkingConfigBuilder_.getMessageOrBuilder(); + } else { + return chunkingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .getDefaultInstance() + : chunkingConfig_; + } + } + /** + * + * + *
      +     * Whether chunking mode is enabled.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ChunkingConfigOrBuilder> + getChunkingConfigFieldBuilder() { + if (chunkingConfigBuilder_ == null) { + chunkingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + .Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ChunkingConfigOrBuilder>( + getChunkingConfig(), getParentForChildren(), isClean()); + chunkingConfig_ = null; + } + return chunkingConfigBuilder_; + } + private com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig defaultParsingConfig_; private com.google.protobuf.SingleFieldBuilderV3< @@ -3938,7 +6891,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the defaultParsingConfig field is set. */ public boolean hasDefaultParsingConfig() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -3991,7 +6944,7 @@ public Builder setDefaultParsingConfig( } else { defaultParsingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4017,7 +6970,7 @@ public Builder setDefaultParsingConfig( } else { defaultParsingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4038,7 +6991,7 @@ public Builder setDefaultParsingConfig( public Builder mergeDefaultParsingConfig( com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig value) { if (defaultParsingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000004) != 0) && defaultParsingConfig_ != null && defaultParsingConfig_ != com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig @@ -4051,7 +7004,7 @@ public Builder mergeDefaultParsingConfig( defaultParsingConfigBuilder_.mergeFrom(value); } if (defaultParsingConfig_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -4071,7 +7024,7 @@ public Builder mergeDefaultParsingConfig( *
      */ public Builder clearDefaultParsingConfig() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); defaultParsingConfig_ = null; if (defaultParsingConfigBuilder_ != null) { defaultParsingConfigBuilder_.dispose(); @@ -4096,7 +7049,7 @@ public Builder clearDefaultParsingConfig() { */ public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.Builder getDefaultParsingConfigBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return getDefaultParsingConfigFieldBuilder().getBuilder(); } @@ -4220,7 +7173,7 @@ public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingC parsingConfigOverrides_ = new com.google.protobuf.MapFieldBuilder<>(parsingConfigOverridesConverter); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return parsingConfigOverrides_; } @@ -4238,9 +7191,11 @@ public int getParsingConfigOverridesCount() { * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -4273,9 +7228,11 @@ public boolean containsParsingConfigOverrides(java.lang.String key) { * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -4299,9 +7256,11 @@ public boolean containsParsingConfigOverrides(java.lang.String key) { * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -4338,9 +7297,11 @@ public boolean containsParsingConfigOverrides(java.lang.String key) { * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -4365,7 +7326,7 @@ public boolean containsParsingConfigOverrides(java.lang.String key) { } public Builder clearParsingConfigOverrides() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableParsingConfigOverrides().clear(); return this; } @@ -4379,9 +7340,11 @@ public Builder clearParsingConfigOverrides() { * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -4401,7 +7364,7 @@ public Builder removeParsingConfigOverrides(java.lang.String key) { java.lang.String, com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> getMutableParsingConfigOverrides() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return internalGetMutableParsingConfigOverrides().ensureMessageMap(); } /** @@ -4414,9 +7377,11 @@ public Builder removeParsingConfigOverrides(java.lang.String key) { * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -4433,7 +7398,7 @@ public Builder putParsingConfigOverrides( throw new NullPointerException("map value"); } internalGetMutableParsingConfigOverrides().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return this; } /** @@ -4446,9 +7411,11 @@ public Builder putParsingConfigOverrides( * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -4469,7 +7436,7 @@ public Builder putAllParsingConfigOverrides( } } internalGetMutableParsingConfigOverrides().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return this; } /** @@ -4482,9 +7449,11 @@ public Builder putAllParsingConfigOverrides( * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigOrBuilder.java index 2de5ce0ab9ae..ffa2094a8a6b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigOrBuilder.java @@ -53,6 +53,49 @@ public interface DocumentProcessingConfigOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
      +   * Whether chunking mode is enabled.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + * + * @return Whether the chunkingConfig field is set. + */ + boolean hasChunkingConfig(); + /** + * + * + *
      +   * Whether chunking mode is enabled.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + * + * @return The chunkingConfig. + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig + getChunkingConfig(); + /** + * + * + *
      +   * Whether chunking mode is enabled.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfigOrBuilder + getChunkingConfigOrBuilder(); + /** * * @@ -115,9 +158,11 @@ public interface DocumentProcessingConfigOrBuilder * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -135,9 +180,11 @@ public interface DocumentProcessingConfigOrBuilder * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -161,9 +208,11 @@ public interface DocumentProcessingConfigOrBuilder * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -184,9 +233,11 @@ public interface DocumentProcessingConfigOrBuilder * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * @@ -210,9 +261,11 @@ public interface DocumentProcessingConfigOrBuilder * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr * parsing or layout parsing is supported. * * `html`: Override parsing config for HTML files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. * * `docx`: Override parsing config for DOCX files, only digital parsing and - * or layout parsing are supported. + * layout parsing are supported. + * * `pptx`: Override parsing config for PPTX files, only digital parsing and + * layout parsing are supported. * * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigProto.java index 0a426bbba936..344afa468583 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigProto.java @@ -32,6 +32,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -44,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfigOverridesEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -61,42 +73,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cument_processing_config.proto\022#google.c" + "loud.discoveryengine.v1beta\032\037google/api/" + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\"\305\010\n\030DocumentProcessingConfig\022\014\n\004" - + "name\030\001 \001(\t\022k\n\026default_parsing_config\030\004 \001" - + "(\0132K.google.cloud.discoveryengine.v1beta" - + ".DocumentProcessingConfig.ParsingConfig\022" - + "{\n\030parsing_config_overrides\030\005 \003(\0132Y.goog" - + "le.cloud.discoveryengine.v1beta.Document" - + "ProcessingConfig.ParsingConfigOverridesE" - + "ntry\032\226\003\n\rParsingConfig\022\202\001\n\026digital_parsi" - + "ng_config\030\001 \001(\0132`.google.cloud.discovery" - + "engine.v1beta.DocumentProcessingConfig.P" - + "arsingConfig.DigitalParsingConfigH\000\022z\n\022o" - + "cr_parsing_config\030\002 \001(\0132\\.google.cloud.d" - + "iscoveryengine.v1beta.DocumentProcessing" - + "Config.ParsingConfig.OcrParsingConfigH\000\032" - + "\026\n\024DigitalParsingConfig\032S\n\020OcrParsingCon" - + "fig\022&\n\032enhanced_document_elements\030\001 \003(\tB" - + "\002\030\001\022\027\n\017use_native_text\030\002 \001(\010B\027\n\025type_ded" - + "icated_config\032\212\001\n\033ParsingConfigOverrides" - + "Entry\022\013\n\003key\030\001 \001(\t\022Z\n\005value\030\002 \001(\0132K.goog" - + "le.cloud.discoveryengine.v1beta.Document" - + "ProcessingConfig.ParsingConfig:\0028\001:\212\002\352A\206" - + "\002\n7discoveryengine.googleapis.com/Docume" - + "ntProcessingConfig\022Xprojects/{project}/l" - + "ocations/{location}/dataStores/{data_sto" - + "re}/documentProcessingConfig\022qprojects/{" - + "project}/locations/{location}/collection" - + "s/{collection}/dataStores/{data_store}/d" - + "ocumentProcessingConfigB\244\002\n\'com.google.c" - + "loud.discoveryengine.v1betaB\035DocumentPro" - + "cessingConfigProtoP\001ZQcloud.google.com/g" - + "o/discoveryengine/apiv1beta/discoveryeng" - + "inepb;discoveryenginepb\242\002\017DISCOVERYENGIN" - + "E\252\002#Google.Cloud.DiscoveryEngine.V1Beta\312" - + "\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352\002&" - + "Google::Cloud::DiscoveryEngine::V1betab\006" - + "proto3" + + "e.proto\"\314\014\n\030DocumentProcessingConfig\022\014\n\004" + + "name\030\001 \001(\t\022e\n\017chunking_config\030\003 \001(\0132L.go" + + "ogle.cloud.discoveryengine.v1beta.Docume" + + "ntProcessingConfig.ChunkingConfig\022k\n\026def" + + "ault_parsing_config\030\004 \001(\0132K.google.cloud" + + ".discoveryengine.v1beta.DocumentProcessi" + + "ngConfig.ParsingConfig\022{\n\030parsing_config" + + "_overrides\030\005 \003(\0132Y.google.cloud.discover" + + "yengine.v1beta.DocumentProcessingConfig." + + "ParsingConfigOverridesEntry\032\203\002\n\016Chunking" + + "Config\022\216\001\n\034layout_based_chunking_config\030" + + "\001 \001(\0132f.google.cloud.discoveryengine.v1b" + + "eta.DocumentProcessingConfig.ChunkingCon" + + "fig.LayoutBasedChunkingConfigH\000\032R\n\031Layou" + + "tBasedChunkingConfig\022\022\n\nchunk_size\030\001 \001(\005" + + "\022!\n\031include_ancestor_headings\030\002 \001(\010B\014\n\nc" + + "hunk_mode\032\260\004\n\rParsingConfig\022\202\001\n\026digital_" + + "parsing_config\030\001 \001(\0132`.google.cloud.disc" + + "overyengine.v1beta.DocumentProcessingCon" + + "fig.ParsingConfig.DigitalParsingConfigH\000" + + "\022z\n\022ocr_parsing_config\030\002 \001(\0132\\.google.cl" + + "oud.discoveryengine.v1beta.DocumentProce" + + "ssingConfig.ParsingConfig.OcrParsingConf" + + "igH\000\022\200\001\n\025layout_parsing_config\030\003 \001(\0132_.g" + + "oogle.cloud.discoveryengine.v1beta.Docum" + + "entProcessingConfig.ParsingConfig.Layout" + + "ParsingConfigH\000\032\026\n\024DigitalParsingConfig\032" + + "S\n\020OcrParsingConfig\022&\n\032enhanced_document" + + "_elements\030\001 \003(\tB\002\030\001\022\027\n\017use_native_text\030\002" + + " \001(\010\032\025\n\023LayoutParsingConfigB\027\n\025type_dedi" + + "cated_config\032\212\001\n\033ParsingConfigOverridesE" + + "ntry\022\013\n\003key\030\001 \001(\t\022Z\n\005value\030\002 \001(\0132K.googl" + + "e.cloud.discoveryengine.v1beta.DocumentP" + + "rocessingConfig.ParsingConfig:\0028\001:\212\002\352A\206\002" + + "\n7discoveryengine.googleapis.com/Documen" + + "tProcessingConfig\022Xprojects/{project}/lo" + + "cations/{location}/dataStores/{data_stor" + + "e}/documentProcessingConfig\022qprojects/{p" + + "roject}/locations/{location}/collections" + + "/{collection}/dataStores/{data_store}/do" + + "cumentProcessingConfigB\244\002\n\'com.google.cl" + + "oud.discoveryengine.v1betaB\035DocumentProc" + + "essingConfigProtoP\001ZQcloud.google.com/go" + + "/discoveryengine/apiv1beta/discoveryengi" + + "nepb;discoveryenginepb\242\002\017DISCOVERYENGINE" + + "\252\002#Google.Cloud.DiscoveryEngine.V1Beta\312\002" + + "#Google\\Cloud\\DiscoveryEngine\\V1beta\352\002&G" + + "oogle::Cloud::DiscoveryEngine::V1betab\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -111,17 +136,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_descriptor, new java.lang.String[] { - "Name", "DefaultParsingConfig", "ParsingConfigOverrides", + "Name", "ChunkingConfig", "DefaultParsingConfig", "ParsingConfigOverrides", }); - internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_descriptor = internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_descriptor .getNestedTypes() .get(0); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_descriptor, + new java.lang.String[] { + "LayoutBasedChunkingConfig", "ChunkMode", + }); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_descriptor, + new java.lang.String[] { + "ChunkSize", "IncludeAncestorHeadings", + }); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_descriptor + .getNestedTypes() + .get(1); internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor, new java.lang.String[] { - "DigitalParsingConfig", "OcrParsingConfig", "TypeDedicatedConfig", + "DigitalParsingConfig", + "OcrParsingConfig", + "LayoutParsingConfig", + "TypeDedicatedConfig", }); internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor = internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor @@ -141,10 +189,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "EnhancedDocumentElements", "UseNativeText", }); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor, + new java.lang.String[] {}); internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfigOverridesEntry_descriptor = internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_descriptor .getNestedTypes() - .get(1); + .get(2); internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfigOverridesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfigOverridesEntry_descriptor, diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Evaluation.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Evaluation.java new file mode 100644 index 000000000000..6a3256e4beee --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Evaluation.java @@ -0,0 +1,5243 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * An evaluation is a single execution (or run) of an evaluation process. It
      + * encapsulates the state of the evaluation and the resulting data.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Evaluation} + */ +public final class Evaluation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Evaluation) + EvaluationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Evaluation.newBuilder() to construct. + private Evaluation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Evaluation() { + name_ = ""; + state_ = 0; + errorSamples_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Evaluation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Evaluation.class, + com.google.cloud.discoveryengine.v1beta.Evaluation.Builder.class); + } + + /** + * + * + *
      +   * Describes the state of an evaluation.
      +   * 
      + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Evaluation.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * The evaluation is unspecified.
      +     * 
      + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
      +     * The service is preparing to run the evaluation.
      +     * 
      + * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
      +     * The evaluation is in progress.
      +     * 
      + * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
      +     * The evaluation completed successfully.
      +     * 
      + * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * + * + *
      +     * The evaluation failed.
      +     * 
      + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * The evaluation is unspecified.
      +     * 
      + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
      +     * The service is preparing to run the evaluation.
      +     * 
      + * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + /** + * + * + *
      +     * The evaluation is in progress.
      +     * 
      + * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * + * + *
      +     * The evaluation completed successfully.
      +     * 
      + * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + /** + * + * + *
      +     * The evaluation failed.
      +     * 
      + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return RUNNING; + case 3: + return SUCCEEDED; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Evaluation.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Evaluation.State) + } + + public interface EvaluationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. The search request that is used to perform the evaluation.
      +     *
      +     * Only the following fields within SearchRequest are supported; if any
      +     * other fields are provided, an UNSUPPORTED error will be returned:
      +     *
      +     * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +     * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +     * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +     * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +     * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +     * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +     * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the searchRequest field is set. + */ + boolean hasSearchRequest(); + /** + * + * + *
      +     * Required. The search request that is used to perform the evaluation.
      +     *
      +     * Only the following fields within SearchRequest are supported; if any
      +     * other fields are provided, an UNSUPPORTED error will be returned:
      +     *
      +     * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +     * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +     * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +     * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +     * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +     * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +     * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The searchRequest. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest getSearchRequest(); + /** + * + * + *
      +     * Required. The search request that is used to perform the evaluation.
      +     *
      +     * Only the following fields within SearchRequest are supported; if any
      +     * other fields are provided, an UNSUPPORTED error will be returned:
      +     *
      +     * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +     * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +     * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +     * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +     * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +     * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +     * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequestOrBuilder getSearchRequestOrBuilder(); + + /** + * + * + *
      +     * Required. The specification of the query set.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the querySetSpec field is set. + */ + boolean hasQuerySetSpec(); + /** + * + * + *
      +     * Required. The specification of the query set.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The querySetSpec. + */ + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + getQuerySetSpec(); + /** + * + * + *
      +     * Required. The specification of the query set.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpecOrBuilder + getQuerySetSpecOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.SearchSpecCase + getSearchSpecCase(); + } + /** + * + * + *
      +   * Describes the specification of the evaluation.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec} + */ + public static final class EvaluationSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec) + EvaluationSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use EvaluationSpec.newBuilder() to construct. + private EvaluationSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvaluationSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvaluationSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.class, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.Builder.class); + } + + public interface QuerySetSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * Required. The full resource name of the
      +       * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +       * used for the evaluation, in the format of
      +       * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +       * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sampleQuerySet. + */ + java.lang.String getSampleQuerySet(); + /** + * + * + *
      +       * Required. The full resource name of the
      +       * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +       * used for the evaluation, in the format of
      +       * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +       * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sampleQuerySet. + */ + com.google.protobuf.ByteString getSampleQuerySetBytes(); + } + /** + * + * + *
      +     * Describes the specification of the query set.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec} + */ + public static final class QuerySetSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec) + QuerySetSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use QuerySetSpec.newBuilder() to construct. + private QuerySetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QuerySetSpec() { + sampleQuerySet_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QuerySetSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_QuerySetSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_QuerySetSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + .class, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + .Builder.class); + } + + public static final int SAMPLE_QUERY_SET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sampleQuerySet_ = ""; + /** + * + * + *
      +       * Required. The full resource name of the
      +       * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +       * used for the evaluation, in the format of
      +       * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +       * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sampleQuerySet. + */ + @java.lang.Override + public java.lang.String getSampleQuerySet() { + java.lang.Object ref = sampleQuerySet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleQuerySet_ = s; + return s; + } + } + /** + * + * + *
      +       * Required. The full resource name of the
      +       * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +       * used for the evaluation, in the format of
      +       * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +       * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sampleQuerySet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSampleQuerySetBytes() { + java.lang.Object ref = sampleQuerySet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleQuerySet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleQuerySet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sampleQuerySet_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleQuerySet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sampleQuerySet_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec other = + (com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec) obj; + + if (!getSampleQuerySet().equals(other.getSampleQuerySet())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SAMPLE_QUERY_SET_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuerySet().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +       * Describes the specification of the query set.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec) + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_QuerySetSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_QuerySetSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + .class, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sampleQuerySet_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_QuerySetSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + build() { + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec result = + new com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sampleQuerySet_ = sampleQuerySet_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + .getDefaultInstance()) return this; + if (!other.getSampleQuerySet().isEmpty()) { + sampleQuerySet_ = other.sampleQuerySet_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sampleQuerySet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object sampleQuerySet_ = ""; + /** + * + * + *
      +         * Required. The full resource name of the
      +         * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +         * used for the evaluation, in the format of
      +         * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +         * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sampleQuerySet. + */ + public java.lang.String getSampleQuerySet() { + java.lang.Object ref = sampleQuerySet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleQuerySet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +         * Required. The full resource name of the
      +         * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +         * used for the evaluation, in the format of
      +         * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +         * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sampleQuerySet. + */ + public com.google.protobuf.ByteString getSampleQuerySetBytes() { + java.lang.Object ref = sampleQuerySet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleQuerySet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +         * Required. The full resource name of the
      +         * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +         * used for the evaluation, in the format of
      +         * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +         * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The sampleQuerySet to set. + * @return This builder for chaining. + */ + public Builder setSampleQuerySet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sampleQuerySet_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +         * Required. The full resource name of the
      +         * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +         * used for the evaluation, in the format of
      +         * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +         * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSampleQuerySet() { + sampleQuerySet_ = getDefaultInstance().getSampleQuerySet(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +         * Required. The full resource name of the
      +         * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +         * used for the evaluation, in the format of
      +         * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +         * 
      + * + * + * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for sampleQuerySet to set. + * @return This builder for chaining. + */ + public Builder setSampleQuerySetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sampleQuerySet_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec) + private static final com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec + .QuerySetSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuerySetSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int searchSpecCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object searchSpec_; + + public enum SearchSpecCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SEARCH_REQUEST(2), + SEARCHSPEC_NOT_SET(0); + private final int value; + + private SearchSpecCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SearchSpecCase valueOf(int value) { + return forNumber(value); + } + + public static SearchSpecCase forNumber(int value) { + switch (value) { + case 2: + return SEARCH_REQUEST; + case 0: + return SEARCHSPEC_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SearchSpecCase getSearchSpecCase() { + return SearchSpecCase.forNumber(searchSpecCase_); + } + + public static final int SEARCH_REQUEST_FIELD_NUMBER = 2; + /** + * + * + *
      +     * Required. The search request that is used to perform the evaluation.
      +     *
      +     * Only the following fields within SearchRequest are supported; if any
      +     * other fields are provided, an UNSUPPORTED error will be returned:
      +     *
      +     * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +     * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +     * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +     * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +     * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +     * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +     * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the searchRequest field is set. + */ + @java.lang.Override + public boolean hasSearchRequest() { + return searchSpecCase_ == 2; + } + /** + * + * + *
      +     * Required. The search request that is used to perform the evaluation.
      +     *
      +     * Only the following fields within SearchRequest are supported; if any
      +     * other fields are provided, an UNSUPPORTED error will be returned:
      +     *
      +     * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +     * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +     * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +     * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +     * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +     * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +     * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The searchRequest. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest getSearchRequest() { + if (searchSpecCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.SearchRequest) searchSpec_; + } + return com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance(); + } + /** + * + * + *
      +     * Required. The search request that is used to perform the evaluation.
      +     *
      +     * Only the following fields within SearchRequest are supported; if any
      +     * other fields are provided, an UNSUPPORTED error will be returned:
      +     *
      +     * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +     * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +     * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +     * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +     * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +     * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +     * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequestOrBuilder + getSearchRequestOrBuilder() { + if (searchSpecCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.SearchRequest) searchSpec_; + } + return com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance(); + } + + public static final int QUERY_SET_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + querySetSpec_; + /** + * + * + *
      +     * Required. The specification of the query set.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the querySetSpec field is set. + */ + @java.lang.Override + public boolean hasQuerySetSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * Required. The specification of the query set.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The querySetSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + getQuerySetSpec() { + return querySetSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + .getDefaultInstance() + : querySetSpec_; + } + /** + * + * + *
      +     * Required. The specification of the query set.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpecOrBuilder + getQuerySetSpecOrBuilder() { + return querySetSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + .getDefaultInstance() + : querySetSpec_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getQuerySetSpec()); + } + if (searchSpecCase_ == 2) { + output.writeMessage(2, (com.google.cloud.discoveryengine.v1beta.SearchRequest) searchSpec_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getQuerySetSpec()); + } + if (searchSpecCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.discoveryengine.v1beta.SearchRequest) searchSpec_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec other = + (com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec) obj; + + if (hasQuerySetSpec() != other.hasQuerySetSpec()) return false; + if (hasQuerySetSpec()) { + if (!getQuerySetSpec().equals(other.getQuerySetSpec())) return false; + } + if (!getSearchSpecCase().equals(other.getSearchSpecCase())) return false; + switch (searchSpecCase_) { + case 2: + if (!getSearchRequest().equals(other.getSearchRequest())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasQuerySetSpec()) { + hash = (37 * hash) + QUERY_SET_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getQuerySetSpec().hashCode(); + } + switch (searchSpecCase_) { + case 2: + hash = (37 * hash) + SEARCH_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getSearchRequest().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Describes the specification of the evaluation.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec) + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.class, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getQuerySetSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (searchRequestBuilder_ != null) { + searchRequestBuilder_.clear(); + } + querySetSpec_ = null; + if (querySetSpecBuilder_ != null) { + querySetSpecBuilder_.dispose(); + querySetSpecBuilder_ = null; + } + searchSpecCase_ = 0; + searchSpec_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec build() { + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec result = + new com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.querySetSpec_ = + querySetSpecBuilder_ == null ? querySetSpec_ : querySetSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec result) { + result.searchSpecCase_ = searchSpecCase_; + result.searchSpec_ = this.searchSpec_; + if (searchSpecCase_ == 2 && searchRequestBuilder_ != null) { + result.searchSpec_ = searchRequestBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec + .getDefaultInstance()) return this; + if (other.hasQuerySetSpec()) { + mergeQuerySetSpec(other.getQuerySetSpec()); + } + switch (other.getSearchSpecCase()) { + case SEARCH_REQUEST: + { + mergeSearchRequest(other.getSearchRequest()); + break; + } + case SEARCHSPEC_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getQuerySetSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage(getSearchRequestFieldBuilder().getBuilder(), extensionRegistry); + searchSpecCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int searchSpecCase_ = 0; + private java.lang.Object searchSpec_; + + public SearchSpecCase getSearchSpecCase() { + return SearchSpecCase.forNumber(searchSpecCase_); + } + + public Builder clearSearchSpec() { + searchSpecCase_ = 0; + searchSpec_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest, + com.google.cloud.discoveryengine.v1beta.SearchRequest.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequestOrBuilder> + searchRequestBuilder_; + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the searchRequest field is set. + */ + @java.lang.Override + public boolean hasSearchRequest() { + return searchSpecCase_ == 2; + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The searchRequest. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest getSearchRequest() { + if (searchRequestBuilder_ == null) { + if (searchSpecCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.SearchRequest) searchSpec_; + } + return com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance(); + } else { + if (searchSpecCase_ == 2) { + return searchRequestBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance(); + } + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSearchRequest(com.google.cloud.discoveryengine.v1beta.SearchRequest value) { + if (searchRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchSpec_ = value; + onChanged(); + } else { + searchRequestBuilder_.setMessage(value); + } + searchSpecCase_ = 2; + return this; + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSearchRequest( + com.google.cloud.discoveryengine.v1beta.SearchRequest.Builder builderForValue) { + if (searchRequestBuilder_ == null) { + searchSpec_ = builderForValue.build(); + onChanged(); + } else { + searchRequestBuilder_.setMessage(builderForValue.build()); + } + searchSpecCase_ = 2; + return this; + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSearchRequest( + com.google.cloud.discoveryengine.v1beta.SearchRequest value) { + if (searchRequestBuilder_ == null) { + if (searchSpecCase_ == 2 + && searchSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance()) { + searchSpec_ = + com.google.cloud.discoveryengine.v1beta.SearchRequest.newBuilder( + (com.google.cloud.discoveryengine.v1beta.SearchRequest) searchSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + searchSpec_ = value; + } + onChanged(); + } else { + if (searchSpecCase_ == 2) { + searchRequestBuilder_.mergeFrom(value); + } else { + searchRequestBuilder_.setMessage(value); + } + } + searchSpecCase_ = 2; + return this; + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSearchRequest() { + if (searchRequestBuilder_ == null) { + if (searchSpecCase_ == 2) { + searchSpecCase_ = 0; + searchSpec_ = null; + onChanged(); + } + } else { + if (searchSpecCase_ == 2) { + searchSpecCase_ = 0; + searchSpec_ = null; + } + searchRequestBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.Builder + getSearchRequestBuilder() { + return getSearchRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequestOrBuilder + getSearchRequestOrBuilder() { + if ((searchSpecCase_ == 2) && (searchRequestBuilder_ != null)) { + return searchRequestBuilder_.getMessageOrBuilder(); + } else { + if (searchSpecCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.SearchRequest) searchSpec_; + } + return com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance(); + } + } + /** + * + * + *
      +       * Required. The search request that is used to perform the evaluation.
      +       *
      +       * Only the following fields within SearchRequest are supported; if any
      +       * other fields are provided, an UNSUPPORTED error will be returned:
      +       *
      +       * * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
      +       * * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
      +       * * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
      +       * * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
      +       * * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
      +       * * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
      +       * * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest search_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest, + com.google.cloud.discoveryengine.v1beta.SearchRequest.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequestOrBuilder> + getSearchRequestFieldBuilder() { + if (searchRequestBuilder_ == null) { + if (!(searchSpecCase_ == 2)) { + searchSpec_ = + com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance(); + } + searchRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest, + com.google.cloud.discoveryengine.v1beta.SearchRequest.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequestOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.SearchRequest) searchSpec_, + getParentForChildren(), + isClean()); + searchSpec_ = null; + } + searchSpecCase_ = 2; + onChanged(); + return searchRequestBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + querySetSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec + .QuerySetSpecOrBuilder> + querySetSpecBuilder_; + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the querySetSpec field is set. + */ + public boolean hasQuerySetSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The querySetSpec. + */ + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + getQuerySetSpec() { + if (querySetSpecBuilder_ == null) { + return querySetSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + .getDefaultInstance() + : querySetSpec_; + } else { + return querySetSpecBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQuerySetSpec( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec value) { + if (querySetSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + querySetSpec_ = value; + } else { + querySetSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQuerySetSpec( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec.Builder + builderForValue) { + if (querySetSpecBuilder_ == null) { + querySetSpec_ = builderForValue.build(); + } else { + querySetSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeQuerySetSpec( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec value) { + if (querySetSpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && querySetSpec_ != null + && querySetSpec_ + != com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + .getDefaultInstance()) { + getQuerySetSpecBuilder().mergeFrom(value); + } else { + querySetSpec_ = value; + } + } else { + querySetSpecBuilder_.mergeFrom(value); + } + if (querySetSpec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearQuerySetSpec() { + bitField0_ = (bitField0_ & ~0x00000002); + querySetSpec_ = null; + if (querySetSpecBuilder_ != null) { + querySetSpecBuilder_.dispose(); + querySetSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec.Builder + getQuerySetSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getQuerySetSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpecOrBuilder + getQuerySetSpecOrBuilder() { + if (querySetSpecBuilder_ != null) { + return querySetSpecBuilder_.getMessageOrBuilder(); + } else { + return querySetSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + .getDefaultInstance() + : querySetSpec_; + } + } + /** + * + * + *
      +       * Required. The specification of the query set.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec + .QuerySetSpecOrBuilder> + getQuerySetSpecFieldBuilder() { + if (querySetSpecBuilder_ == null) { + querySetSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec + .QuerySetSpecOrBuilder>(getQuerySetSpec(), getParentForChildren(), isClean()); + querySetSpec_ = null; + } + return querySetSpecBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec) + private static final com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], in the format
      +   * of `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], in the format
      +   * of `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVALUATION_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluationSpec_; + /** + * + * + *
      +   * Required. The specification of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluationSpec field is set. + */ + @java.lang.Override + public boolean hasEvaluationSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Required. The specification of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluationSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec getEvaluationSpec() { + return evaluationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.getDefaultInstance() + : evaluationSpec_; + } + /** + * + * + *
      +   * Required. The specification of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpecOrBuilder + getEvaluationSpecOrBuilder() { + return evaluationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.getDefaultInstance() + : evaluationSpec_; + } + + public static final int QUALITY_METRICS_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.QualityMetrics qualityMetrics_; + /** + * + * + *
      +   * Output only. The metrics produced by the evaluation, averaged across all
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +   *
      +   * Only populated when the evaluation's state is SUCCEEDED.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the qualityMetrics field is set. + */ + @java.lang.Override + public boolean hasQualityMetrics() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * Output only. The metrics produced by the evaluation, averaged across all
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +   *
      +   * Only populated when the evaluation's state is SUCCEEDED.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The qualityMetrics. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics getQualityMetrics() { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } + /** + * + * + *
      +   * Output only. The metrics produced by the evaluation, averaged across all
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +   *
      +   * Only populated when the evaluation's state is SUCCEEDED.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetricsOrBuilder + getQualityMetricsOrBuilder() { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + /** + * + * + *
      +   * Output only. The state of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
      +   * Output only. The state of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation.State getState() { + com.google.cloud.discoveryengine.v1beta.Evaluation.State result = + com.google.cloud.discoveryengine.v1beta.Evaluation.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Evaluation.State.UNRECOGNIZED + : result; + } + + public static final int ERROR_FIELD_NUMBER = 5; + private com.google.rpc.Status error_; + /** + * + * + *
      +   * Output only. The error that occurred during evaluation. Only populated when
      +   * the evaluation's state is FAILED.
      +   * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +   * Output only. The error that occurred during evaluation. Only populated when
      +   * the evaluation's state is FAILED.
      +   * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + * + * + *
      +   * Output only. The error that occurred during evaluation. Only populated when
      +   * the evaluation's state is FAILED.
      +   * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int ERROR_SAMPLES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List errorSamples_; + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorSamplesList() { + return errorSamples_; + } + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorSamplesOrBuilderList() { + return errorSamples_; + } + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getErrorSamplesCount() { + return errorSamples_.size(); + } + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.Status getErrorSamples(int index) { + return errorSamples_.get(index); + } + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + return errorSamples_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEvaluationSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getQualityMetrics()); + } + if (state_ + != com.google.cloud.discoveryengine.v1beta.Evaluation.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getError()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(7, getEndTime()); + } + for (int i = 0; i < errorSamples_.size(); i++) { + output.writeMessage(8, errorSamples_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEvaluationSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getQualityMetrics()); + } + if (state_ + != com.google.cloud.discoveryengine.v1beta.Evaluation.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getError()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEndTime()); + } + for (int i = 0; i < errorSamples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, errorSamples_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Evaluation)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Evaluation other = + (com.google.cloud.discoveryengine.v1beta.Evaluation) obj; + + if (!getName().equals(other.getName())) return false; + if (hasEvaluationSpec() != other.hasEvaluationSpec()) return false; + if (hasEvaluationSpec()) { + if (!getEvaluationSpec().equals(other.getEvaluationSpec())) return false; + } + if (hasQualityMetrics() != other.hasQualityMetrics()) return false; + if (hasQualityMetrics()) { + if (!getQualityMetrics().equals(other.getQualityMetrics())) return false; + } + if (state_ != other.state_) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasEvaluationSpec()) { + hash = (37 * hash) + EVALUATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationSpec().hashCode(); + } + if (hasQualityMetrics()) { + hash = (37 * hash) + QUALITY_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getQualityMetrics().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (getErrorSamplesCount() > 0) { + hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getErrorSamplesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Evaluation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * An evaluation is a single execution (or run) of an evaluation process. It
      +   * encapsulates the state of the evaluation and the resulting data.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Evaluation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Evaluation) + com.google.cloud.discoveryengine.v1beta.EvaluationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Evaluation.class, + com.google.cloud.discoveryengine.v1beta.Evaluation.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Evaluation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEvaluationSpecFieldBuilder(); + getQualityMetricsFieldBuilder(); + getErrorFieldBuilder(); + getCreateTimeFieldBuilder(); + getEndTimeFieldBuilder(); + getErrorSamplesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + evaluationSpec_ = null; + if (evaluationSpecBuilder_ != null) { + evaluationSpecBuilder_.dispose(); + evaluationSpecBuilder_ = null; + } + qualityMetrics_ = null; + if (qualityMetricsBuilder_ != null) { + qualityMetricsBuilder_.dispose(); + qualityMetricsBuilder_ = null; + } + state_ = 0; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + } else { + errorSamples_ = null; + errorSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_Evaluation_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Evaluation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation build() { + com.google.cloud.discoveryengine.v1beta.Evaluation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation buildPartial() { + com.google.cloud.discoveryengine.v1beta.Evaluation result = + new com.google.cloud.discoveryengine.v1beta.Evaluation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.Evaluation result) { + if (errorSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.errorSamples_ = errorSamples_; + } else { + result.errorSamples_ = errorSamplesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Evaluation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.evaluationSpec_ = + evaluationSpecBuilder_ == null ? evaluationSpec_ : evaluationSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.qualityMetrics_ = + qualityMetricsBuilder_ == null ? qualityMetrics_ : qualityMetricsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Evaluation) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Evaluation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Evaluation other) { + if (other == com.google.cloud.discoveryengine.v1beta.Evaluation.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEvaluationSpec()) { + mergeEvaluationSpec(other.getEvaluationSpec()); + } + if (other.hasQualityMetrics()) { + mergeQualityMetrics(other.getQualityMetrics()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasError()) { + mergeError(other.getError()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (errorSamplesBuilder_ == null) { + if (!other.errorSamples_.isEmpty()) { + if (errorSamples_.isEmpty()) { + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureErrorSamplesIsMutable(); + errorSamples_.addAll(other.errorSamples_); + } + onChanged(); + } + } else { + if (!other.errorSamples_.isEmpty()) { + if (errorSamplesBuilder_.isEmpty()) { + errorSamplesBuilder_.dispose(); + errorSamplesBuilder_ = null; + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000080); + errorSamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorSamplesFieldBuilder() + : null; + } else { + errorSamplesBuilder_.addAllMessages(other.errorSamples_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEvaluationSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getQualityMetricsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(m); + } else { + errorSamplesBuilder_.addMessage(m); + } + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], in the format
      +     * of `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], in the format
      +     * of `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], in the format
      +     * of `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], in the format
      +     * of `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], in the format
      +     * of `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluationSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpecOrBuilder> + evaluationSpecBuilder_; + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluationSpec field is set. + */ + public boolean hasEvaluationSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluationSpec. + */ + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec getEvaluationSpec() { + if (evaluationSpecBuilder_ == null) { + return evaluationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.getDefaultInstance() + : evaluationSpec_; + } else { + return evaluationSpecBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEvaluationSpec( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec value) { + if (evaluationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationSpec_ = value; + } else { + evaluationSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEvaluationSpec( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.Builder builderForValue) { + if (evaluationSpecBuilder_ == null) { + evaluationSpec_ = builderForValue.build(); + } else { + evaluationSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEvaluationSpec( + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec value) { + if (evaluationSpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && evaluationSpec_ != null + && evaluationSpec_ + != com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec + .getDefaultInstance()) { + getEvaluationSpecBuilder().mergeFrom(value); + } else { + evaluationSpec_ = value; + } + } else { + evaluationSpecBuilder_.mergeFrom(value); + } + if (evaluationSpec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEvaluationSpec() { + bitField0_ = (bitField0_ & ~0x00000002); + evaluationSpec_ = null; + if (evaluationSpecBuilder_ != null) { + evaluationSpecBuilder_.dispose(); + evaluationSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.Builder + getEvaluationSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEvaluationSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpecOrBuilder + getEvaluationSpecOrBuilder() { + if (evaluationSpecBuilder_ != null) { + return evaluationSpecBuilder_.getMessageOrBuilder(); + } else { + return evaluationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.getDefaultInstance() + : evaluationSpec_; + } + } + /** + * + * + *
      +     * Required. The specification of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpecOrBuilder> + getEvaluationSpecFieldBuilder() { + if (evaluationSpecBuilder_ == null) { + evaluationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpecOrBuilder>( + getEvaluationSpec(), getParentForChildren(), isClean()); + evaluationSpec_ = null; + } + return evaluationSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.QualityMetrics qualityMetrics_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetricsOrBuilder> + qualityMetricsBuilder_; + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the qualityMetrics field is set. + */ + public boolean hasQualityMetrics() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The qualityMetrics. + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics getQualityMetrics() { + if (qualityMetricsBuilder_ == null) { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } else { + return qualityMetricsBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQualityMetrics(com.google.cloud.discoveryengine.v1beta.QualityMetrics value) { + if (qualityMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + qualityMetrics_ = value; + } else { + qualityMetricsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQualityMetrics( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.Builder builderForValue) { + if (qualityMetricsBuilder_ == null) { + qualityMetrics_ = builderForValue.build(); + } else { + qualityMetricsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeQualityMetrics( + com.google.cloud.discoveryengine.v1beta.QualityMetrics value) { + if (qualityMetricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && qualityMetrics_ != null + && qualityMetrics_ + != com.google.cloud.discoveryengine.v1beta.QualityMetrics.getDefaultInstance()) { + getQualityMetricsBuilder().mergeFrom(value); + } else { + qualityMetrics_ = value; + } + } else { + qualityMetricsBuilder_.mergeFrom(value); + } + if (qualityMetrics_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearQualityMetrics() { + bitField0_ = (bitField0_ & ~0x00000004); + qualityMetrics_ = null; + if (qualityMetricsBuilder_ != null) { + qualityMetricsBuilder_.dispose(); + qualityMetricsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.Builder + getQualityMetricsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getQualityMetricsFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetricsOrBuilder + getQualityMetricsOrBuilder() { + if (qualityMetricsBuilder_ != null) { + return qualityMetricsBuilder_.getMessageOrBuilder(); + } else { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, averaged across all
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     *
      +     * Only populated when the evaluation's state is SUCCEEDED.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetricsOrBuilder> + getQualityMetricsFieldBuilder() { + if (qualityMetricsBuilder_ == null) { + qualityMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetricsOrBuilder>( + getQualityMetrics(), getParentForChildren(), isClean()); + qualityMetrics_ = null; + } + return qualityMetricsBuilder_; + } + + private int state_ = 0; + /** + * + * + *
      +     * Output only. The state of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
      +     * Output only. The state of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The state of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation.State getState() { + com.google.cloud.discoveryengine.v1beta.Evaluation.State result = + com.google.cloud.discoveryengine.v1beta.Evaluation.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Evaluation.State.UNRECOGNIZED + : result; + } + /** + * + * + *
      +     * Output only. The state of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.discoveryengine.v1beta.Evaluation.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The state of the evaluation.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000010); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
      +     * Output only. The error that occurred during evaluation. Only populated when
      +     * the evaluation's state is FAILED.
      +     * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000040); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +     * at.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.util.List errorSamples_ = java.util.Collections.emptyList(); + + private void ensureErrorSamplesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + errorSamples_ = new java.util.ArrayList(errorSamples_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorSamplesBuilder_; + + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorSamplesList() { + if (errorSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(errorSamples_); + } else { + return errorSamplesBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getErrorSamplesCount() { + if (errorSamplesBuilder_ == null) { + return errorSamples_.size(); + } else { + return errorSamplesBuilder_.getCount(); + } + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status getErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, value); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrorSamples(com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllErrorSamples(java.lang.Iterable values) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); + onChanged(); + } else { + errorSamplesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearErrorSamples() { + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + errorSamplesBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.remove(index); + onChanged(); + } else { + errorSamplesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorSamplesOrBuilderList() { + if (errorSamplesBuilder_ != null) { + return errorSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errorSamples_); + } + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder() { + return getErrorSamplesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
      +     * Output only. A sample of errors encountered while processing the request.
      +     * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorSamplesBuilderList() { + return getErrorSamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorSamplesFieldBuilder() { + if (errorSamplesBuilder_ == null) { + errorSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errorSamples_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + errorSamples_ = null; + } + return errorSamplesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Evaluation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Evaluation) + private static final com.google.cloud.discoveryengine.v1beta.Evaluation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Evaluation(); + } + + public static com.google.cloud.discoveryengine.v1beta.Evaluation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Evaluation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationName.java new file mode 100644 index 000000000000..29ca519656be --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class EvaluationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_EVALUATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/evaluations/{evaluation}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String evaluation; + + @Deprecated + protected EvaluationName() { + project = null; + location = null; + evaluation = null; + } + + private EvaluationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + evaluation = Preconditions.checkNotNull(builder.getEvaluation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEvaluation() { + return evaluation; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static EvaluationName of(String project, String location, String evaluation) { + return newBuilder().setProject(project).setLocation(location).setEvaluation(evaluation).build(); + } + + public static String format(String project, String location, String evaluation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setEvaluation(evaluation) + .build() + .toString(); + } + + public static EvaluationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_EVALUATION.validatedMatch( + formattedString, "EvaluationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("evaluation")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (EvaluationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_EVALUATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (evaluation != null) { + fieldMapBuilder.put("evaluation", evaluation); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_EVALUATION.instantiate( + "project", project, "location", location, "evaluation", evaluation); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + EvaluationName that = ((EvaluationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.evaluation, that.evaluation); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(evaluation); + return h; + } + + /** Builder for projects/{project}/locations/{location}/evaluations/{evaluation}. */ + public static class Builder { + private String project; + private String location; + private String evaluation; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEvaluation() { + return evaluation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setEvaluation(String evaluation) { + this.evaluation = evaluation; + return this; + } + + private Builder(EvaluationName evaluationName) { + this.project = evaluationName.project; + this.location = evaluationName.location; + this.evaluation = evaluationName.evaluation; + } + + public EvaluationName build() { + return new EvaluationName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationOrBuilder.java new file mode 100644 index 000000000000..de0191f23cec --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationOrBuilder.java @@ -0,0 +1,372 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface EvaluationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Evaluation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], in the format
      +   * of `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], in the format
      +   * of `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Required. The specification of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluationSpec field is set. + */ + boolean hasEvaluationSpec(); + /** + * + * + *
      +   * Required. The specification of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluationSpec. + */ + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec getEvaluationSpec(); + /** + * + * + *
      +   * Required. The specification of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec evaluation_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpecOrBuilder + getEvaluationSpecOrBuilder(); + + /** + * + * + *
      +   * Output only. The metrics produced by the evaluation, averaged across all
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +   *
      +   * Only populated when the evaluation's state is SUCCEEDED.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the qualityMetrics field is set. + */ + boolean hasQualityMetrics(); + /** + * + * + *
      +   * Output only. The metrics produced by the evaluation, averaged across all
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +   *
      +   * Only populated when the evaluation's state is SUCCEEDED.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The qualityMetrics. + */ + com.google.cloud.discoveryengine.v1beta.QualityMetrics getQualityMetrics(); + /** + * + * + *
      +   * Output only. The metrics produced by the evaluation, averaged across all
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +   *
      +   * Only populated when the evaluation's state is SUCCEEDED.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.QualityMetricsOrBuilder getQualityMetricsOrBuilder(); + + /** + * + * + *
      +   * Output only. The state of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
      +   * Output only. The state of the evaluation.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.Evaluation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.discoveryengine.v1beta.Evaluation.State getState(); + + /** + * + * + *
      +   * Output only. The error that occurred during evaluation. Only populated when
      +   * the evaluation's state is FAILED.
      +   * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + boolean hasError(); + /** + * + * + *
      +   * Output only. The error that occurred during evaluation. Only populated when
      +   * the evaluation's state is FAILED.
      +   * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + com.google.rpc.Status getError(); + /** + * + * + *
      +   * Output only. The error that occurred during evaluation. Only populated when
      +   * the evaluation's state is FAILED.
      +   * 
      + * + * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorSamplesList(); + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.Status getErrorSamples(int index); + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getErrorSamplesCount(); + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorSamplesOrBuilderList(); + /** + * + * + *
      +   * Output only. A sample of errors encountered while processing the request.
      +   * 
      + * + * + * repeated .google.rpc.Status error_samples = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationProto.java new file mode 100644 index 000000000000..c98e5e7b7aff --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationProto.java @@ -0,0 +1,191 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public final class EvaluationProto { + private EvaluationProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_QuerySetSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_QuerySetSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_TopkMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_TopkMetrics_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/discoveryengine/v1beta/ev" + + "aluation.proto\022#google.cloud.discoveryen" + + "gine.v1beta\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\0328google/" + + "cloud/discoveryengine/v1beta/search_serv" + + "ice.proto\032\037google/protobuf/timestamp.pro" + + "to\032\027google/rpc/status.proto\"\343\007\n\nEvaluati" + + "on\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\\\n\017evaluation_spec" + + "\030\002 \001(\0132>.google.cloud.discoveryengine.v1" + + "beta.Evaluation.EvaluationSpecB\003\340A\002\022Q\n\017q" + + "uality_metrics\030\003 \001(\01323.google.cloud.disc" + + "overyengine.v1beta.QualityMetricsB\003\340A\003\022I" + + "\n\005state\030\004 \001(\01625.google.cloud.discoveryen" + + "gine.v1beta.Evaluation.StateB\003\340A\003\022&\n\005err" + + "or\030\005 \001(\0132\022.google.rpc.StatusB\003\340A\003\0224\n\013cre" + + "ate_time\030\006 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\0221\n\010end_time\030\007 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022.\n\rerror_samples\030\010 \003(" + + "\0132\022.google.rpc.StatusB\003\340A\003\032\275\002\n\016Evaluatio" + + "nSpec\022Q\n\016search_request\030\002 \001(\01322.google.c" + + "loud.discoveryengine.v1beta.SearchReques" + + "tB\003\340A\002H\000\022h\n\016query_set_spec\030\001 \001(\0132K.googl" + + "e.cloud.discoveryengine.v1beta.Evaluatio" + + "n.EvaluationSpec.QuerySetSpecB\003\340A\002\032_\n\014Qu" + + "erySetSpec\022O\n\020sample_query_set\030\001 \001(\tB5\340A" + + "\002\372A/\n-discoveryengine.googleapis.com/Sam" + + "pleQuerySetB\r\n\013search_spec\"S\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNI" + + "NG\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004:p\352Am\n)di" + + "scoveryengine.googleapis.com/Evaluation\022" + + "@projects/{project}/locations/{location}" + + "/evaluations/{evaluation}\"\206\004\n\016QualityMet" + + "rics\022S\n\ndoc_recall\030\001 \001(\0132?.google.cloud." + + "discoveryengine.v1beta.QualityMetrics.To" + + "pkMetrics\022V\n\rdoc_precision\030\002 \001(\0132?.googl" + + "e.cloud.discoveryengine.v1beta.QualityMe" + + "trics.TopkMetrics\022Q\n\010doc_ndcg\030\003 \001(\0132?.go" + + "ogle.cloud.discoveryengine.v1beta.Qualit" + + "yMetrics.TopkMetrics\022T\n\013page_recall\030\004 \001(" + + "\0132?.google.cloud.discoveryengine.v1beta." + + "QualityMetrics.TopkMetrics\022R\n\tpage_ndcg\030" + + "\005 \001(\0132?.google.cloud.discoveryengine.v1b" + + "eta.QualityMetrics.TopkMetrics\032J\n\013TopkMe" + + "trics\022\r\n\005top_1\030\001 \001(\001\022\r\n\005top_3\030\002 \001(\001\022\r\n\005t" + + "op_5\030\003 \001(\001\022\016\n\006top_10\030\004 \001(\001B\226\002\n\'com.googl" + + "e.cloud.discoveryengine.v1betaB\017Evaluati" + + "onProtoP\001ZQcloud.google.com/go/discovery" + + "engine/apiv1beta/discoveryenginepb;disco" + + "veryenginepb\242\002\017DISCOVERYENGINE\252\002#Google." + + "Cloud.DiscoveryEngine.V1Beta\312\002#Google\\Cl" + + "oud\\DiscoveryEngine\\V1beta\352\002&Google::Clo" + + "ud::DiscoveryEngine::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.SearchServiceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_descriptor, + new java.lang.String[] { + "Name", + "EvaluationSpec", + "QualityMetrics", + "State", + "Error", + "CreateTime", + "EndTime", + "ErrorSamples", + }); + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_descriptor, + new java.lang.String[] { + "SearchRequest", "QuerySetSpec", "SearchSpec", + }); + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_QuerySetSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_QuerySetSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Evaluation_EvaluationSpec_QuerySetSpec_descriptor, + new java.lang.String[] { + "SampleQuerySet", + }); + internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_descriptor, + new java.lang.String[] { + "DocRecall", "DocPrecision", "DocNdcg", "PageRecall", "PageNdcg", + }); + internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_TopkMetrics_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_TopkMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_TopkMetrics_descriptor, + new java.lang.String[] { + "Top1", "Top3", "Top5", "Top10", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.SearchServiceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceProto.java new file mode 100644 index 000000000000..12c66cd03567 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceProto.java @@ -0,0 +1,240 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public final class EvaluationServiceProto { + private EvaluationServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_GetEvaluationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GetEvaluationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CreateEvaluationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CreateEvaluationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CreateEvaluationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CreateEvaluationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsResponse_EvaluationResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsResponse_EvaluationResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n + * Request message for + * [EvaluationService.GetEvaluation][google.cloud.discoveryengine.v1beta.EvaluationService.GetEvaluation] + * method. + * + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetEvaluationRequest} + */ +public final class GetEvaluationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GetEvaluationRequest) + GetEvaluationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEvaluationRequest.newBuilder() to construct. + private GetEvaluationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEvaluationRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEvaluationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest.class, + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Required. Full resource name of
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], regardless of
      +   * whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Full resource name of
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], regardless of
      +   * whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest other = + (com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [EvaluationService.GetEvaluation][google.cloud.discoveryengine.v1beta.EvaluationService.GetEvaluation]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetEvaluationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GetEvaluationRequest) + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest.class, + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetEvaluationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest build() { + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest result = + new com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Required. Full resource name of
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], regardless of
      +     * whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], regardless of
      +     * whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], regardless of
      +     * whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], regardless of
      +     * whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], regardless of
      +     * whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GetEvaluationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GetEvaluationRequest) + private static final com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetEvaluationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetEvaluationRequestOrBuilder.java new file mode 100644 index 000000000000..c8ef9252a4aa --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetEvaluationRequestOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface GetEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GetEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Full resource name of
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], regardless of
      +   * whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Required. Full resource name of
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], regardless of
      +   * whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSampleQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSampleQueryRequest.java new file mode 100644 index 000000000000..739e917f48d2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSampleQueryRequest.java @@ -0,0 +1,718 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [SampleQueryService.GetSampleQuery][google.cloud.discoveryengine.v1beta.SampleQueryService.GetSampleQuery]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetSampleQueryRequest} + */ +public final class GetSampleQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GetSampleQueryRequest) + GetSampleQueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSampleQueryRequest.newBuilder() to construct. + private GetSampleQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSampleQueryRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSampleQueryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest other = + (com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQueryService.GetSampleQuery][google.cloud.discoveryengine.v1beta.SampleQueryService.GetSampleQuery]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetSampleQueryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GetSampleQueryRequest) + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetSampleQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest build() { + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest result = + new com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +     *
      +     * If the requested
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] does not
      +     * exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GetSampleQueryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GetSampleQueryRequest) + private static final com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSampleQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSampleQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSampleQueryRequestOrBuilder.java new file mode 100644 index 000000000000..ab3865c85c6a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSampleQueryRequestOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface GetSampleQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GetSampleQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a PERMISSION_DENIED error is returned.
      +   *
      +   * If the requested
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] does not
      +   * exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSampleQuerySetRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSampleQuerySetRequest.java new file mode 100644 index 000000000000..4b230adccbad --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSampleQuerySetRequest.java @@ -0,0 +1,735 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [SampleQuerySetService.GetSampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySetService.GetSampleQuerySet]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest} + */ +public final class GetSampleQuerySetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest) + GetSampleQuerySetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSampleQuerySetRequest.newBuilder() to construct. + private GetSampleQuerySetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSampleQuerySetRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSampleQuerySetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +   * returned.
      +   *
      +   * If the requested
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] does
      +   * not exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +   * returned.
      +   *
      +   * If the requested
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] does
      +   * not exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest other = + (com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQuerySetService.GetSampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySetService.GetSampleQuerySet]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest) + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest build() { + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest result = + new com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +     * returned.
      +     *
      +     * If the requested
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] does
      +     * not exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +     * returned.
      +     *
      +     * If the requested
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] does
      +     * not exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +     * returned.
      +     *
      +     * If the requested
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] does
      +     * not exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +     * returned.
      +     *
      +     * If the requested
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] does
      +     * not exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Full resource name of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +     * as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * If the caller does not have permission to access the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +     * returned.
      +     *
      +     * If the requested
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] does
      +     * not exist, a NOT_FOUND error is returned.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest) + private static final com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSampleQuerySetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSampleQuerySetRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSampleQuerySetRequestOrBuilder.java new file mode 100644 index 000000000000..ac9af268df69 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSampleQuerySetRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface GetSampleQuerySetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +   * returned.
      +   *
      +   * If the requested
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] does
      +   * not exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Required. Full resource name of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such
      +   * as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * If the caller does not have permission to access the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a PERMISSION_DENIED error is
      +   * returned.
      +   *
      +   * If the requested
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] does
      +   * not exist, a NOT_FOUND error is returned.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsMetadata.java new file mode 100644 index 000000000000..8838d9c0396f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsMetadata.java @@ -0,0 +1,1225 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Metadata related to the progress of the ImportCompletionSuggestions
      + * operation. This will be returned by the google.longrunning.Operation.metadata
      + * field.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata} + */ +public final class ImportCompletionSuggestionsMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata) + ImportCompletionSuggestionsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportCompletionSuggestionsMetadata.newBuilder() to construct. + private ImportCompletionSuggestionsMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportCompletionSuggestionsMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportCompletionSuggestionsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata.class, + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata.Builder + .class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int SUCCESS_COUNT_FIELD_NUMBER = 3; + private long successCount_ = 0L; + /** + * + * + *
      +   * Count of
      +   * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +   * successfully imported.
      +   * 
      + * + * int64 success_count = 3; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + + public static final int FAILURE_COUNT_FIELD_NUMBER = 4; + private long failureCount_ = 0L; + /** + * + * + *
      +   * Count of
      +   * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +   * that failed to be imported.
      +   * 
      + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + if (successCount_ != 0L) { + output.writeInt64(3, successCount_); + } + if (failureCount_ != 0L) { + output.writeInt64(4, failureCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + if (successCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, successCount_); + } + if (failureCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata other = + (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (getSuccessCount() != other.getSuccessCount()) return false; + if (getFailureCount() != other.getFailureCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + SUCCESS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessCount()); + hash = (37 * hash) + FAILURE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailureCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Metadata related to the progress of the ImportCompletionSuggestions
      +   * operation. This will be returned by the google.longrunning.Operation.metadata
      +   * field.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata) + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata.class, + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + successCount_ = 0L; + failureCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata build() { + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata result = + new com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.successCount_ = successCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failureCount_ = failureCount_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + .getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getSuccessCount() != 0L) { + setSuccessCount(other.getSuccessCount()); + } + if (other.getFailureCount() != 0L) { + setFailureCount(other.getFailureCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + successCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + failureCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private long successCount_; + /** + * + * + *
      +     * Count of
      +     * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +     * successfully imported.
      +     * 
      + * + * int64 success_count = 3; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + /** + * + * + *
      +     * Count of
      +     * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +     * successfully imported.
      +     * 
      + * + * int64 success_count = 3; + * + * @param value The successCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessCount(long value) { + + successCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Count of
      +     * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +     * successfully imported.
      +     * 
      + * + * int64 success_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearSuccessCount() { + bitField0_ = (bitField0_ & ~0x00000004); + successCount_ = 0L; + onChanged(); + return this; + } + + private long failureCount_; + /** + * + * + *
      +     * Count of
      +     * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +     * that failed to be imported.
      +     * 
      + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + /** + * + * + *
      +     * Count of
      +     * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +     * that failed to be imported.
      +     * 
      + * + * int64 failure_count = 4; + * + * @param value The failureCount to set. + * @return This builder for chaining. + */ + public Builder setFailureCount(long value) { + + failureCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Count of
      +     * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +     * that failed to be imported.
      +     * 
      + * + * int64 failure_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearFailureCount() { + bitField0_ = (bitField0_ & ~0x00000008); + failureCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata) + private static final com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportCompletionSuggestionsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsMetadataOrBuilder.java new file mode 100644 index 000000000000..56b22b18bd8b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsMetadataOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ImportCompletionSuggestionsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
      +   * Count of
      +   * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +   * successfully imported.
      +   * 
      + * + * int64 success_count = 3; + * + * @return The successCount. + */ + long getSuccessCount(); + + /** + * + * + *
      +   * Count of
      +   * [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
      +   * that failed to be imported.
      +   * 
      + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + long getFailureCount(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsRequest.java new file mode 100644 index 000000000000..65624c4625db --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsRequest.java @@ -0,0 +1,3143 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [CompletionService.ImportCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.ImportCompletionSuggestions]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest} + */ +public final class ImportCompletionSuggestionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest) + ImportCompletionSuggestionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportCompletionSuggestionsRequest.newBuilder() to construct. + private ImportCompletionSuggestionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportCompletionSuggestionsRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportCompletionSuggestionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.class, + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.Builder + .class); + } + + public interface InlineSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. A list of all denylist entries to import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getSuggestionsList(); + /** + * + * + *
      +     * Required. A list of all denylist entries to import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion getSuggestions(int index); + /** + * + * + *
      +     * Required. A list of all denylist entries to import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getSuggestionsCount(); + /** + * + * + *
      +     * Required. A list of all denylist entries to import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getSuggestionsOrBuilderList(); + /** + * + * + *
      +     * Required. A list of all denylist entries to import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.CompletionSuggestionOrBuilder getSuggestionsOrBuilder( + int index); + } + /** + * + * + *
      +   * The inline source for CompletionSuggestions.
      +   * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource} + */ + public static final class InlineSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource) + InlineSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use InlineSource.newBuilder() to construct. + private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InlineSource() { + suggestions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InlineSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource.class, + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource.Builder.class); + } + + public static final int SUGGESTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + suggestions_; + /** + * + * + *
      +     * Required. A list of all denylist entries to import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getSuggestionsList() { + return suggestions_; + } + /** + * + * + *
      +     * Required. A list of all denylist entries to import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.CompletionSuggestionOrBuilder> + getSuggestionsOrBuilderList() { + return suggestions_; + } + /** + * + * + *
      +     * Required. A list of all denylist entries to import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getSuggestionsCount() { + return suggestions_.size(); + } + /** + * + * + *
      +     * Required. A list of all denylist entries to import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CompletionSuggestion getSuggestions(int index) { + return suggestions_.get(index); + } + /** + * + * + *
      +     * Required. A list of all denylist entries to import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CompletionSuggestionOrBuilder + getSuggestionsOrBuilder(int index) { + return suggestions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < suggestions_.size(); i++) { + output.writeMessage(1, suggestions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < suggestions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, suggestions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + other = + (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource) + obj; + + if (!getSuggestionsList().equals(other.getSuggestionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSuggestionsCount() > 0) { + hash = (37 * hash) + SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSuggestionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * The inline source for CompletionSuggestions.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource) + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource.class, + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (suggestionsBuilder_ == null) { + suggestions_ = java.util.Collections.emptyList(); + } else { + suggestions_ = null; + suggestionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_InlineSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + build() { + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + buildPartial() { + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + result = + new com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + result) { + if (suggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + suggestions_ = java.util.Collections.unmodifiableList(suggestions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.suggestions_ = suggestions_; + } else { + result.suggestions_ = suggestionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource.getDefaultInstance()) return this; + if (suggestionsBuilder_ == null) { + if (!other.suggestions_.isEmpty()) { + if (suggestions_.isEmpty()) { + suggestions_ = other.suggestions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSuggestionsIsMutable(); + suggestions_.addAll(other.suggestions_); + } + onChanged(); + } + } else { + if (!other.suggestions_.isEmpty()) { + if (suggestionsBuilder_.isEmpty()) { + suggestionsBuilder_.dispose(); + suggestionsBuilder_ = null; + suggestions_ = other.suggestions_; + bitField0_ = (bitField0_ & ~0x00000001); + suggestionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSuggestionsFieldBuilder() + : null; + } else { + suggestionsBuilder_.addAllMessages(other.suggestions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.parser(), + extensionRegistry); + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.add(m); + } else { + suggestionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + suggestions_ = java.util.Collections.emptyList(); + + private void ensureSuggestionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + suggestions_ = + new java.util.ArrayList( + suggestions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion, + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.Builder, + com.google.cloud.discoveryengine.v1beta.CompletionSuggestionOrBuilder> + suggestionsBuilder_; + + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSuggestionsList() { + if (suggestionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(suggestions_); + } else { + return suggestionsBuilder_.getMessageList(); + } + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getSuggestionsCount() { + if (suggestionsBuilder_ == null) { + return suggestions_.size(); + } else { + return suggestionsBuilder_.getCount(); + } + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.CompletionSuggestion getSuggestions( + int index) { + if (suggestionsBuilder_ == null) { + return suggestions_.get(index); + } else { + return suggestionsBuilder_.getMessage(index); + } + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSuggestions( + int index, com.google.cloud.discoveryengine.v1beta.CompletionSuggestion value) { + if (suggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionsIsMutable(); + suggestions_.set(index, value); + onChanged(); + } else { + suggestionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSuggestions( + int index, + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.Builder builderForValue) { + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.set(index, builderForValue.build()); + onChanged(); + } else { + suggestionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSuggestions( + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion value) { + if (suggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionsIsMutable(); + suggestions_.add(value); + onChanged(); + } else { + suggestionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSuggestions( + int index, com.google.cloud.discoveryengine.v1beta.CompletionSuggestion value) { + if (suggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionsIsMutable(); + suggestions_.add(index, value); + onChanged(); + } else { + suggestionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSuggestions( + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.Builder builderForValue) { + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.add(builderForValue.build()); + onChanged(); + } else { + suggestionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSuggestions( + int index, + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.Builder builderForValue) { + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.add(index, builderForValue.build()); + onChanged(); + } else { + suggestionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllSuggestions( + java.lang.Iterable + values) { + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suggestions_); + onChanged(); + } else { + suggestionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSuggestions() { + if (suggestionsBuilder_ == null) { + suggestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + suggestionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeSuggestions(int index) { + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.remove(index); + onChanged(); + } else { + suggestionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.Builder + getSuggestionsBuilder(int index) { + return getSuggestionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.CompletionSuggestionOrBuilder + getSuggestionsOrBuilder(int index) { + if (suggestionsBuilder_ == null) { + return suggestions_.get(index); + } else { + return suggestionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.CompletionSuggestionOrBuilder> + getSuggestionsOrBuilderList() { + if (suggestionsBuilder_ != null) { + return suggestionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(suggestions_); + } + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.Builder + addSuggestionsBuilder() { + return getSuggestionsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.getDefaultInstance()); + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.Builder + addSuggestionsBuilder(int index) { + return getSuggestionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.getDefaultInstance()); + } + /** + * + * + *
      +       * Required. A list of all denylist entries to import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSuggestionsBuilderList() { + return getSuggestionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion, + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.Builder, + com.google.cloud.discoveryengine.v1beta.CompletionSuggestionOrBuilder> + getSuggestionsFieldBuilder() { + if (suggestionsBuilder_ == null) { + suggestionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion, + com.google.cloud.discoveryengine.v1beta.CompletionSuggestion.Builder, + com.google.cloud.discoveryengine.v1beta.CompletionSuggestionOrBuilder>( + suggestions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + suggestions_ = null; + } + return suggestionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource) + private static final com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource(); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INLINE_SOURCE(2), + GCS_SOURCE(3), + BIGQUERY_SOURCE(4), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return INLINE_SOURCE; + case 3: + return GCS_SOURCE; + case 4: + return BIGQUERY_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int INLINE_SOURCE_FIELD_NUMBER = 2; + /** + * + * + *
      +   * The Inline source for suggestion entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + /** + * + * + *
      +   * The Inline source for suggestion entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + getInlineSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + .getDefaultInstance(); + } + /** + * + * + *
      +   * The Inline source for suggestion entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + .getDefaultInstance(); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 3; + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 3; + } + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource() { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); + } + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); + } + + public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 4; + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + * + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return sourceCase_ == 4; + } + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + * + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource() { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); + } + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder + getBigquerySourceOrBuilder() { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent data store resource name for which to import customer
      +   * autocomplete suggestions.
      +   *
      +   * Follows pattern `projects/*/locations/*/collections/*/dataStores/*`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent data store resource name for which to import customer
      +   * autocomplete suggestions.
      +   *
      +   * Follows pattern `projects/*/locations/*/collections/*/dataStores/*`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + * + * @return Whether the errorConfig field is set. + */ + @java.lang.Override + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + * + * @return The errorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (sourceCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource) + source_); + } + if (sourceCase_ == 3) { + output.writeMessage(3, (com.google.cloud.discoveryengine.v1beta.GcsSource) source_); + } + if (sourceCase_ == 4) { + output.writeMessage(4, (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getErrorConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource) + source_); + } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.discoveryengine.v1beta.GcsSource) source_); + } + if (sourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getErrorConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest other = + (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasErrorConfig() != other.hasErrorConfig()) return false; + if (hasErrorConfig()) { + if (!getErrorConfig().equals(other.getErrorConfig())) return false; + } + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getInlineSource().equals(other.getInlineSource())) return false; + break; + case 3: + if (!getGcsSource().equals(other.getGcsSource())) return false; + break; + case 4: + if (!getBigquerySource().equals(other.getBigquerySource())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasErrorConfig()) { + hash = (37 * hash) + ERROR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getErrorConfig().hashCode(); + } + switch (sourceCase_) { + case 2: + hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInlineSource().hashCode(); + break; + case 3: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 4: + hash = (37 * hash) + BIGQUERY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBigquerySource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [CompletionService.ImportCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.ImportCompletionSuggestions]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest) + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.class, + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getErrorConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (inlineSourceBuilder_ != null) { + inlineSourceBuilder_.clear(); + } + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.clear(); + } + if (bigquerySourceBuilder_ != null) { + bigquerySourceBuilder_.clear(); + } + parent_ = ""; + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest build() { + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + buildPartial() { + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest result = + new com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.errorConfig_ = + errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && inlineSourceBuilder_ != null) { + result.source_ = inlineSourceBuilder_.build(); + } + if (sourceCase_ == 3 && gcsSourceBuilder_ != null) { + result.source_ = gcsSourceBuilder_.build(); + } + if (sourceCase_ == 4 && bigquerySourceBuilder_ != null) { + result.source_ = bigquerySourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasErrorConfig()) { + mergeErrorConfig(other.getErrorConfig()); + } + switch (other.getSourceCase()) { + case INLINE_SOURCE: + { + mergeInlineSource(other.getInlineSource()); + break; + } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case BIGQUERY_SOURCE: + { + mergeBigquerySource(other.getBigquerySource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: + { + input.readMessage(getInlineSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getBigquerySourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource, + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSourceOrBuilder> + inlineSourceBuilder_; + /** + * + * + *
      +     * The Inline source for suggestion entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + /** + * + * + *
      +     * The Inline source for suggestion entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + getInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return inlineSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * The Inline source for suggestion entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + value) { + if (inlineSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + inlineSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
      +     * The Inline source for suggestion entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + .Builder + builderForValue) { + if (inlineSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + inlineSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
      +     * The Inline source for suggestion entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + */ + public Builder mergeInlineSource( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + value) { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ + != com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource.newBuilder( + (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + inlineSourceBuilder_.mergeFrom(value); + } else { + inlineSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
      +     * The Inline source for suggestion entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + */ + public Builder clearInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + inlineSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * The Inline source for suggestion entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + .Builder + getInlineSourceBuilder() { + return getInlineSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * The Inline source for suggestion entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { + return inlineSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * The Inline source for suggestion entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource, + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSourceOrBuilder> + getInlineSourceFieldBuilder() { + if (inlineSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource.getDefaultInstance(); + } + inlineSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource, + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource.Builder, + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + .InlineSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return inlineSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.GcsSource, + com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, + com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 3; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + public Builder setGcsSource(com.google.cloud.discoveryengine.v1beta.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + public Builder setGcsSource( + com.google.cloud.discoveryengine.v1beta.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1beta.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3 + && source_ != com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1beta.GcsSource.newBuilder( + (com.google.cloud.discoveryengine.v1beta.GcsSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + public com.google.cloud.discoveryengine.v1beta.GcsSource.Builder getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if ((sourceCase_ == 3) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.GcsSource, + com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, + com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.GcsSource, + com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, + com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.GcsSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + return gcsSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.BigQuerySource, + com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, + com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder> + bigquerySourceBuilder_; + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + * + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return sourceCase_ == 4; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + * + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); + } else { + if (sourceCase_ == 4) { + return bigquerySourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + public Builder setBigquerySource(com.google.cloud.discoveryengine.v1beta.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(value); + } + sourceCase_ = 4; + return this; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + public Builder setBigquerySource( + com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder builderForValue) { + if (bigquerySourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 4; + return this; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + public Builder mergeBigquerySource( + com.google.cloud.discoveryengine.v1beta.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4 + && source_ + != com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1beta.BigQuerySource.newBuilder( + (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 4) { + bigquerySourceBuilder_.mergeFrom(value); + } else { + bigquerySourceBuilder_.setMessage(value); + } + } + sourceCase_ = 4; + return this; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + public Builder clearBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + } + bigquerySourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + public com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder + getBigquerySourceBuilder() { + return getBigquerySourceFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder + getBigquerySourceOrBuilder() { + if ((sourceCase_ == 4) && (bigquerySourceBuilder_ != null)) { + return bigquerySourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.BigQuerySource, + com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, + com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder> + getBigquerySourceFieldBuilder() { + if (bigquerySourceBuilder_ == null) { + if (!(sourceCase_ == 4)) { + source_ = com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); + } + bigquerySourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.BigQuerySource, + com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, + com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 4; + onChanged(); + return bigquerySourceBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent data store resource name for which to import customer
      +     * autocomplete suggestions.
      +     *
      +     * Follows pattern `projects/*/locations/*/collections/*/dataStores/*`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent data store resource name for which to import customer
      +     * autocomplete suggestions.
      +     *
      +     * Follows pattern `projects/*/locations/*/collections/*/dataStores/*`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent data store resource name for which to import customer
      +     * autocomplete suggestions.
      +     *
      +     * Follows pattern `projects/*/locations/*/collections/*/dataStores/*`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent data store resource name for which to import customer
      +     * autocomplete suggestions.
      +     *
      +     * Follows pattern `projects/*/locations/*/collections/*/dataStores/*`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent data store resource name for which to import customer
      +     * autocomplete suggestions.
      +     *
      +     * Follows pattern `projects/*/locations/*/collections/*/dataStores/*`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> + errorConfigBuilder_; + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + * + * @return Whether the errorConfig field is set. + */ + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + * + * @return The errorConfig. + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { + if (errorConfigBuilder_ == null) { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } else { + return errorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + public Builder setErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorConfig_ = value; + } else { + errorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder builderForValue) { + if (errorConfigBuilder_ == null) { + errorConfig_ = builderForValue.build(); + } else { + errorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + public Builder mergeErrorConfig( + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && errorConfig_ != null + && errorConfig_ + != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) { + getErrorConfigBuilder().mergeFrom(value); + } else { + errorConfig_ = value; + } + } else { + errorConfigBuilder_.mergeFrom(value); + } + if (errorConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + public Builder clearErrorConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder + getErrorConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getErrorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + if (errorConfigBuilder_ != null) { + return errorConfigBuilder_.getMessageOrBuilder(); + } else { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> + getErrorConfigFieldBuilder() { + if (errorConfigBuilder_ == null) { + errorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>( + getErrorConfig(), getParentForChildren(), isClean()); + errorConfig_ = null; + } + return errorConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest) + private static final com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportCompletionSuggestionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsRequestOrBuilder.java new file mode 100644 index 000000000000..32f5c08da6fc --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsRequestOrBuilder.java @@ -0,0 +1,212 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ImportCompletionSuggestionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The Inline source for suggestion entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + boolean hasInlineSource(); + /** + * + * + *
      +   * The Inline source for suggestion entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource + getInlineSource(); + /** + * + * + *
      +   * The Inline source for suggestion entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSourceOrBuilder + getInlineSourceOrBuilder(); + + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + * + * @return The gcsSource. + */ + com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource(); + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + * + * @return Whether the bigquerySource field is set. + */ + boolean hasBigquerySource(); + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + * + * @return The bigquerySource. + */ + com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource(); + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); + + /** + * + * + *
      +   * Required. The parent data store resource name for which to import customer
      +   * autocomplete suggestions.
      +   *
      +   * Follows pattern `projects/*/locations/*/collections/*/dataStores/*`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent data store resource name for which to import customer
      +   * autocomplete suggestions.
      +   *
      +   * Follows pattern `projects/*/locations/*/collections/*/dataStores/*`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + * + * @return Whether the errorConfig field is set. + */ + boolean hasErrorConfig(); + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + * + * @return The errorConfig. + */ + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig(); + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.SourceCase + getSourceCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsResponse.java new file mode 100644 index 000000000000..2b0d5775fa23 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsResponse.java @@ -0,0 +1,1244 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Response of the
      + * [CompletionService.ImportCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.ImportCompletionSuggestions]
      + * method. If the long running operation is done, this message is returned by
      + * the google.longrunning.Operations.response field if the operation is
      + * successful.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse} + */ +public final class ImportCompletionSuggestionsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse) + ImportCompletionSuggestionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportCompletionSuggestionsResponse.newBuilder() to construct. + private ImportCompletionSuggestionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportCompletionSuggestionsResponse() { + errorSamples_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportCompletionSuggestionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse.class, + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse.Builder + .class); + } + + private int bitField0_; + public static final int ERROR_SAMPLES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List errorSamples_; + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List getErrorSamplesList() { + return errorSamples_; + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List getErrorSamplesOrBuilderList() { + return errorSamples_; + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public int getErrorSamplesCount() { + return errorSamples_.size(); + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.Status getErrorSamples(int index) { + return errorSamples_.get(index); + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + return errorSamples_.get(index); + } + + public static final int ERROR_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return Whether the errorConfig field is set. + */ + @java.lang.Override + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return The errorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < errorSamples_.size(); i++) { + output.writeMessage(1, errorSamples_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getErrorConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < errorSamples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errorSamples_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse other = + (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse) obj; + + if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (hasErrorConfig() != other.hasErrorConfig()) return false; + if (hasErrorConfig()) { + if (!getErrorConfig().equals(other.getErrorConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getErrorSamplesCount() > 0) { + hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getErrorSamplesList().hashCode(); + } + if (hasErrorConfig()) { + hash = (37 * hash) + ERROR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getErrorConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Response of the
      +   * [CompletionService.ImportCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.ImportCompletionSuggestions]
      +   * method. If the long running operation is done, this message is returned by
      +   * the google.longrunning.Operations.response field if the operation is
      +   * successful.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse) + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse.class, + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getErrorSamplesFieldBuilder(); + getErrorConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + } else { + errorSamples_ = null; + errorSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse build() { + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + buildPartial() { + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse result = + new com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse result) { + if (errorSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.errorSamples_ = errorSamples_; + } else { + result.errorSamples_ = errorSamplesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorConfig_ = + errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + .getDefaultInstance()) return this; + if (errorSamplesBuilder_ == null) { + if (!other.errorSamples_.isEmpty()) { + if (errorSamples_.isEmpty()) { + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureErrorSamplesIsMutable(); + errorSamples_.addAll(other.errorSamples_); + } + onChanged(); + } + } else { + if (!other.errorSamples_.isEmpty()) { + if (errorSamplesBuilder_.isEmpty()) { + errorSamplesBuilder_.dispose(); + errorSamplesBuilder_ = null; + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + errorSamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorSamplesFieldBuilder() + : null; + } else { + errorSamplesBuilder_.addAllMessages(other.errorSamples_); + } + } + } + if (other.hasErrorConfig()) { + mergeErrorConfig(other.getErrorConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(m); + } else { + errorSamplesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List errorSamples_ = java.util.Collections.emptyList(); + + private void ensureErrorSamplesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + errorSamples_ = new java.util.ArrayList(errorSamples_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorSamplesBuilder_; + + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesList() { + if (errorSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(errorSamples_); + } else { + return errorSamplesBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public int getErrorSamplesCount() { + if (errorSamplesBuilder_ == null) { + return errorSamples_.size(); + } else { + return errorSamplesBuilder_.getCount(); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status getErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, value); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addAllErrorSamples(java.lang.Iterable values) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); + onChanged(); + } else { + errorSamplesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder clearErrorSamples() { + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + errorSamplesBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder removeErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.remove(index); + onChanged(); + } else { + errorSamplesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesOrBuilderList() { + if (errorSamplesBuilder_ != null) { + return errorSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errorSamples_); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder() { + return getErrorSamplesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesBuilderList() { + return getErrorSamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorSamplesFieldBuilder() { + if (errorSamplesBuilder_ == null) { + errorSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errorSamples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errorSamples_ = null; + } + return errorSamplesBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> + errorConfigBuilder_; + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return Whether the errorConfig field is set. + */ + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return The errorConfig. + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { + if (errorConfigBuilder_ == null) { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } else { + return errorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public Builder setErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorConfig_ = value; + } else { + errorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder builderForValue) { + if (errorConfigBuilder_ == null) { + errorConfig_ = builderForValue.build(); + } else { + errorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public Builder mergeErrorConfig( + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && errorConfig_ != null + && errorConfig_ + != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) { + getErrorConfigBuilder().mergeFrom(value); + } else { + errorConfig_ = value; + } + } else { + errorConfigBuilder_.mergeFrom(value); + } + if (errorConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public Builder clearErrorConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder + getErrorConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getErrorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + if (errorConfigBuilder_ != null) { + return errorConfigBuilder_.getMessageOrBuilder(); + } else { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> + getErrorConfigFieldBuilder() { + if (errorConfigBuilder_ == null) { + errorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>( + getErrorConfig(), getParentForChildren(), isClean()); + errorConfig_ = null; + } + return errorConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse) + private static final com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportCompletionSuggestionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsResponseOrBuilder.java new file mode 100644 index 000000000000..cac1a7c985aa --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportCompletionSuggestionsResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ImportCompletionSuggestionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + java.util.List getErrorSamplesList(); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + com.google.rpc.Status getErrorSamples(int index); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + int getErrorSamplesCount(); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + java.util.List getErrorSamplesOrBuilderList(); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); + + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return Whether the errorConfig field is set. + */ + boolean hasErrorConfig(); + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return The errorConfig. + */ + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig(); + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java index 49de5de5cbfa..51c7f5b6372c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java @@ -68,6 +68,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_CloudSqlSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_CloudSqlSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AlloyDbSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AlloyDbSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_FirestoreSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -124,6 +128,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_ImportSuggestionDenyListEntriesMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_ImportSuggestionDenyListEntriesMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_InlineSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_InlineSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -139,146 +175,198 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "r.proto\032\031google/api/resource.proto\0324goog" + "le/cloud/discoveryengine/v1beta/completi" + "on.proto\0322google/cloud/discoveryengine/v" - + "1beta/document.proto\0324google/cloud/disco" - + "veryengine/v1beta/user_event.proto\032 goog" - + "le/protobuf/field_mask.proto\032\037google/pro" - + "tobuf/timestamp.proto\032\027google/rpc/status" - + ".proto\032\026google/type/date.proto\"9\n\tGcsSou" - + "rce\022\027\n\ninput_uris\030\001 \003(\tB\003\340A\002\022\023\n\013data_sch" - + "ema\030\002 \001(\t\"\274\001\n\016BigQuerySource\022+\n\016partitio" - + "n_date\030\005 \001(\0132\021.google.type.DateH\000\022\022\n\npro" - + "ject_id\030\001 \001(\t\022\027\n\ndataset_id\030\002 \001(\tB\003\340A\002\022\025" - + "\n\010table_id\030\003 \001(\tB\003\340A\002\022\027\n\017gcs_staging_dir" - + "\030\004 \001(\t\022\023\n\013data_schema\030\006 \001(\tB\013\n\tpartition" - + "\"\211\001\n\rSpannerSource\022\022\n\nproject_id\030\001 \001(\t\022\030" - + "\n\013instance_id\030\002 \001(\tB\003\340A\002\022\030\n\013database_id\030" - + "\003 \001(\tB\003\340A\002\022\025\n\010table_id\030\004 \001(\tB\003\340A\002\022\031\n\021ena" - + "ble_data_boost\030\005 \001(\010\"\251\007\n\017BigtableOptions" - + "\022\026\n\016key_field_name\030\001 \001(\t\022T\n\010families\030\002 \003" - + "(\0132B.google.cloud.discoveryengine.v1beta" - + ".BigtableOptions.FamiliesEntry\032\232\002\n\024Bigta" - + "bleColumnFamily\022\022\n\nfield_name\030\001 \001(\t\022O\n\010e" - + "ncoding\030\002 \001(\0162=.google.cloud.discoveryen" - + "gine.v1beta.BigtableOptions.Encoding\022G\n\004" - + "type\030\003 \001(\01629.google.cloud.discoveryengin" - + "e.v1beta.BigtableOptions.Type\022T\n\007columns" - + "\030\004 \003(\0132C.google.cloud.discoveryengine.v1" - + "beta.BigtableOptions.BigtableColumn\032\326\001\n\016" - + "BigtableColumn\022\026\n\tqualifier\030\001 \001(\014B\003\340A\002\022\022" - + "\n\nfield_name\030\002 \001(\t\022O\n\010encoding\030\003 \001(\0162=.g" - + "oogle.cloud.discoveryengine.v1beta.Bigta" - + "bleOptions.Encoding\022G\n\004type\030\004 \001(\01629.goog" + + "1beta/document.proto\0326google/cloud/disco" + + "veryengine/v1beta/sample_query.proto\0324go" + + "ogle/cloud/discoveryengine/v1beta/user_e" + + "vent.proto\032 google/protobuf/field_mask.p" + + "roto\032\037google/protobuf/timestamp.proto\032\027g" + + "oogle/rpc/status.proto\032\026google/type/date" + + ".proto\"9\n\tGcsSource\022\027\n\ninput_uris\030\001 \003(\tB" + + "\003\340A\002\022\023\n\013data_schema\030\002 \001(\t\"\274\001\n\016BigQuerySo" + + "urce\022+\n\016partition_date\030\005 \001(\0132\021.google.ty" + + "pe.DateH\000\022\022\n\nproject_id\030\001 \001(\t\022\027\n\ndataset" + + "_id\030\002 \001(\tB\003\340A\002\022\025\n\010table_id\030\003 \001(\tB\003\340A\002\022\027\n" + + "\017gcs_staging_dir\030\004 \001(\t\022\023\n\013data_schema\030\006 " + + "\001(\tB\013\n\tpartition\"\211\001\n\rSpannerSource\022\022\n\npr" + + "oject_id\030\001 \001(\t\022\030\n\013instance_id\030\002 \001(\tB\003\340A\002" + + "\022\030\n\013database_id\030\003 \001(\tB\003\340A\002\022\025\n\010table_id\030\004" + + " \001(\tB\003\340A\002\022\031\n\021enable_data_boost\030\005 \001(\010\"\251\007\n" + + "\017BigtableOptions\022\026\n\016key_field_name\030\001 \001(\t" + + "\022T\n\010families\030\002 \003(\0132B.google.cloud.discov" + + "eryengine.v1beta.BigtableOptions.Familie" + + "sEntry\032\232\002\n\024BigtableColumnFamily\022\022\n\nfield" + + "_name\030\001 \001(\t\022O\n\010encoding\030\002 \001(\0162=.google.c" + + "loud.discoveryengine.v1beta.BigtableOpti" + + "ons.Encoding\022G\n\004type\030\003 \001(\01629.google.clou" + + "d.discoveryengine.v1beta.BigtableOptions" + + ".Type\022T\n\007columns\030\004 \003(\0132C.google.cloud.di" + + "scoveryengine.v1beta.BigtableOptions.Big" + + "tableColumn\032\326\001\n\016BigtableColumn\022\026\n\tqualif" + + "ier\030\001 \001(\014B\003\340A\002\022\022\n\nfield_name\030\002 \001(\t\022O\n\010en" + + "coding\030\003 \001(\0162=.google.cloud.discoveryeng" + + "ine.v1beta.BigtableOptions.Encoding\022G\n\004t" + + "ype\030\004 \001(\01629.google.cloud.discoveryengine" + + ".v1beta.BigtableOptions.Type\032z\n\rFamilies" + + "Entry\022\013\n\003key\030\001 \001(\t\022X\n\005value\030\002 \001(\0132I.goog" + "le.cloud.discoveryengine.v1beta.Bigtable" - + "Options.Type\032z\n\rFamiliesEntry\022\013\n\003key\030\001 \001" - + "(\t\022X\n\005value\030\002 \001(\0132I.google.cloud.discove" - + "ryengine.v1beta.BigtableOptions.Bigtable" - + "ColumnFamily:\0028\001\"z\n\004Type\022\024\n\020TYPE_UNSPECI" - + "FIED\020\000\022\n\n\006STRING\020\001\022\n\n\006NUMBER\020\002\022\013\n\007INTEGE" - + "R\020\003\022\017\n\013VAR_INTEGER\020\004\022\017\n\013BIG_NUMERIC\020\005\022\013\n" - + "\007BOOLEAN\020\006\022\010\n\004JSON\020\007\":\n\010Encoding\022\030\n\024ENCO" - + "DING_UNSPECIFIED\020\000\022\010\n\004TEXT\020\001\022\n\n\006BINARY\020\002" - + "\"\252\001\n\016BigtableSource\022\022\n\nproject_id\030\001 \001(\t\022" - + "\030\n\013instance_id\030\002 \001(\tB\003\340A\002\022\025\n\010table_id\030\003 " - + "\001(\tB\003\340A\002\022S\n\020bigtable_options\030\004 \001(\01324.goo" - + "gle.cloud.discoveryengine.v1beta.Bigtabl" - + "eOptionsB\003\340A\002\"k\n\017FhirStoreSource\022?\n\nfhir" - + "_store\030\001 \001(\tB+\340A\002\372A%\n#healthcare.googlea" - + "pis.com/FhirStore\022\027\n\017gcs_staging_dir\030\002 \001" - + "(\t\"\231\001\n\016CloudSqlSource\022\022\n\nproject_id\030\001 \001(" - + "\t\022\030\n\013instance_id\030\002 \001(\tB\003\340A\002\022\030\n\013database_" - + "id\030\003 \001(\tB\003\340A\002\022\025\n\010table_id\030\004 \001(\tB\003\340A\002\022\027\n\017" - + "gcs_staging_dir\030\005 \001(\t\022\017\n\007offload\030\006 \001(\010\"t" - + "\n\017FirestoreSource\022\022\n\nproject_id\030\001 \001(\t\022\030\n" - + "\013database_id\030\002 \001(\tB\003\340A\002\022\032\n\rcollection_id" - + "\030\003 \001(\tB\003\340A\002\022\027\n\017gcs_staging_dir\030\004 \001(\t\"8\n\021" - + "ImportErrorConfig\022\024\n\ngcs_prefix\030\001 \001(\tH\000B" - + "\r\n\013destination\"\207\004\n\027ImportUserEventsReque" - + "st\022b\n\rinline_source\030\002 \001(\0132I.google.cloud" - + ".discoveryengine.v1beta.ImportUserEvents" - + "Request.InlineSourceH\000\022D\n\ngcs_source\030\003 \001" - + "(\0132..google.cloud.discoveryengine.v1beta" - + ".GcsSourceH\000\022N\n\017bigquery_source\030\004 \001(\01323." - + "google.cloud.discoveryengine.v1beta.BigQ" - + "uerySourceH\000\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(di" - + "scoveryengine.googleapis.com/DataStore\022L" - + "\n\014error_config\030\005 \001(\01326.google.cloud.disc" - + "overyengine.v1beta.ImportErrorConfig\032X\n\014" - + "InlineSource\022H\n\013user_events\030\001 \003(\0132..goog" - + "le.cloud.discoveryengine.v1beta.UserEven" - + "tB\003\340A\002B\010\n\006source\"\317\001\n\030ImportUserEventsRes" + + "Options.BigtableColumnFamily:\0028\001\"z\n\004Type" + + "\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001\022\n\n\006NU" + + "MBER\020\002\022\013\n\007INTEGER\020\003\022\017\n\013VAR_INTEGER\020\004\022\017\n\013" + + "BIG_NUMERIC\020\005\022\013\n\007BOOLEAN\020\006\022\010\n\004JSON\020\007\":\n\010" + + "Encoding\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\010\n\004TE" + + "XT\020\001\022\n\n\006BINARY\020\002\"\252\001\n\016BigtableSource\022\022\n\np" + + "roject_id\030\001 \001(\t\022\030\n\013instance_id\030\002 \001(\tB\003\340A" + + "\002\022\025\n\010table_id\030\003 \001(\tB\003\340A\002\022S\n\020bigtable_opt" + + "ions\030\004 \001(\01324.google.cloud.discoveryengin" + + "e.v1beta.BigtableOptionsB\003\340A\002\"k\n\017FhirSto" + + "reSource\022?\n\nfhir_store\030\001 \001(\tB+\340A\002\372A%\n#he" + + "althcare.googleapis.com/FhirStore\022\027\n\017gcs" + + "_staging_dir\030\002 \001(\t\"\231\001\n\016CloudSqlSource\022\022\n" + + "\nproject_id\030\001 \001(\t\022\030\n\013instance_id\030\002 \001(\tB\003" + + "\340A\002\022\030\n\013database_id\030\003 \001(\tB\003\340A\002\022\025\n\010table_i" + + "d\030\004 \001(\tB\003\340A\002\022\027\n\017gcs_staging_dir\030\005 \001(\t\022\017\n" + + "\007offload\030\006 \001(\010\"\240\001\n\rAlloyDbSource\022\022\n\nproj" + + "ect_id\030\001 \001(\t\022\030\n\013location_id\030\002 \001(\tB\003\340A\002\022\027" + + "\n\ncluster_id\030\003 \001(\tB\003\340A\002\022\030\n\013database_id\030\004" + + " \001(\tB\003\340A\002\022\025\n\010table_id\030\005 \001(\tB\003\340A\002\022\027\n\017gcs_" + + "staging_dir\030\006 \001(\t\"t\n\017FirestoreSource\022\022\n\n" + + "project_id\030\001 \001(\t\022\030\n\013database_id\030\002 \001(\tB\003\340" + + "A\002\022\032\n\rcollection_id\030\003 \001(\tB\003\340A\002\022\027\n\017gcs_st" + + "aging_dir\030\004 \001(\t\"8\n\021ImportErrorConfig\022\024\n\n" + + "gcs_prefix\030\001 \001(\tH\000B\r\n\013destination\"\207\004\n\027Im" + + "portUserEventsRequest\022b\n\rinline_source\030\002" + + " \001(\0132I.google.cloud.discoveryengine.v1be" + + "ta.ImportUserEventsRequest.InlineSourceH" + + "\000\022D\n\ngcs_source\030\003 \001(\0132..google.cloud.dis" + + "coveryengine.v1beta.GcsSourceH\000\022N\n\017bigqu" + + "ery_source\030\004 \001(\01323.google.cloud.discover" + + "yengine.v1beta.BigQuerySourceH\000\022@\n\006paren" + + "t\030\001 \001(\tB0\340A\002\372A*\n(discoveryengine.googlea" + + "pis.com/DataStore\022L\n\014error_config\030\005 \001(\0132" + + "6.google.cloud.discoveryengine.v1beta.Im" + + "portErrorConfig\032X\n\014InlineSource\022H\n\013user_" + + "events\030\001 \003(\0132..google.cloud.discoveryeng" + + "ine.v1beta.UserEventB\003\340A\002B\010\n\006source\"\317\001\n\030" + + "ImportUserEventsResponse\022)\n\rerror_sample" + + "s\030\001 \003(\0132\022.google.rpc.Status\022L\n\014error_con" + + "fig\030\002 \001(\01326.google.cloud.discoveryengine" + + ".v1beta.ImportErrorConfig\022\033\n\023joined_even" + + "ts_count\030\003 \001(\003\022\035\n\025unjoined_events_count\030" + + "\004 \001(\003\"\252\001\n\030ImportUserEventsMetadata\022/\n\013cr" + + "eate_time\030\001 \001(\0132\032.google.protobuf.Timest" + + "amp\022/\n\013update_time\030\002 \001(\0132\032.google.protob" + + "uf.Timestamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rf" + + "ailure_count\030\004 \001(\003\"\276\001\n\027ImportDocumentsMe" + + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022\025\n\rsuccess_coun" + + "t\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003\022\023\n\013total_" + + "count\030\005 \001(\003\"\203\n\n\026ImportDocumentsRequest\022a" + + "\n\rinline_source\030\002 \001(\0132H.google.cloud.dis" + + "coveryengine.v1beta.ImportDocumentsReque" + + "st.InlineSourceH\000\022D\n\ngcs_source\030\003 \001(\0132.." + + "google.cloud.discoveryengine.v1beta.GcsS" + + "ourceH\000\022N\n\017bigquery_source\030\004 \001(\01323.googl" + + "e.cloud.discoveryengine.v1beta.BigQueryS" + + "ourceH\000\022Q\n\021fhir_store_source\030\n \001(\01324.goo" + + "gle.cloud.discoveryengine.v1beta.FhirSto" + + "reSourceH\000\022L\n\016spanner_source\030\013 \001(\01322.goo" + + "gle.cloud.discoveryengine.v1beta.Spanner" + + "SourceH\000\022O\n\020cloud_sql_source\030\014 \001(\01323.goo" + + "gle.cloud.discoveryengine.v1beta.CloudSq" + + "lSourceH\000\022P\n\020firestore_source\030\r \001(\01324.go" + + "ogle.cloud.discoveryengine.v1beta.Firest" + + "oreSourceH\000\022M\n\017alloy_db_source\030\016 \001(\01322.g" + + "oogle.cloud.discoveryengine.v1beta.Alloy" + + "DbSourceH\000\022N\n\017bigtable_source\030\017 \001(\01323.go" + + "ogle.cloud.discoveryengine.v1beta.Bigtab" + + "leSourceH\000\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\n%disc" + + "overyengine.googleapis.com/Branch\022L\n\014err" + + "or_config\030\005 \001(\01326.google.cloud.discovery" + + "engine.v1beta.ImportErrorConfig\022k\n\023recon" + + "ciliation_mode\030\006 \001(\0162N.google.cloud.disc" + + "overyengine.v1beta.ImportDocumentsReques" + + "t.ReconciliationMode\022/\n\013update_mask\030\007 \001(" + + "\0132\032.google.protobuf.FieldMask\022\031\n\021auto_ge" + + "nerate_ids\030\010 \001(\010\022\020\n\010id_field\030\t \001(\t\032U\n\014In" + + "lineSource\022E\n\tdocuments\030\001 \003(\0132-.google.c" + + "loud.discoveryengine.v1beta.DocumentB\003\340A" + + "\002\"T\n\022ReconciliationMode\022#\n\037RECONCILIATIO" + + "N_MODE_UNSPECIFIED\020\000\022\017\n\013INCREMENTAL\020\001\022\010\n" + + "\004FULL\020\002B\010\n\006source\"\222\001\n\027ImportDocumentsRes" + "ponse\022)\n\rerror_samples\030\001 \003(\0132\022.google.rp" + "c.Status\022L\n\014error_config\030\002 \001(\01326.google." + "cloud.discoveryengine.v1beta.ImportError" - + "Config\022\033\n\023joined_events_count\030\003 \001(\003\022\035\n\025u" - + "njoined_events_count\030\004 \001(\003\"\252\001\n\030ImportUse" - + "rEventsMetadata\022/\n\013create_time\030\001 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022/\n\013update_time\030" - + "\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n\rsuc" - + "cess_count\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003\"" - + "\276\001\n\027ImportDocumentsMetadata\022/\n\013create_ti" - + "me\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n\013" - + "update_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfailure_" - + "count\030\004 \001(\003\022\023\n\013total_count\030\005 \001(\003\"\264\t\n\026Imp" - + "ortDocumentsRequest\022a\n\rinline_source\030\002 \001" - + "(\0132H.google.cloud.discoveryengine.v1beta" - + ".ImportDocumentsRequest.InlineSourceH\000\022D" - + "\n\ngcs_source\030\003 \001(\0132..google.cloud.discov" - + "eryengine.v1beta.GcsSourceH\000\022N\n\017bigquery" - + "_source\030\004 \001(\01323.google.cloud.discoveryen" - + "gine.v1beta.BigQuerySourceH\000\022Q\n\021fhir_sto" - + "re_source\030\n \001(\01324.google.cloud.discovery" - + "engine.v1beta.FhirStoreSourceH\000\022L\n\016spann" - + "er_source\030\013 \001(\01322.google.cloud.discovery" - + "engine.v1beta.SpannerSourceH\000\022O\n\020cloud_s" - + "ql_source\030\014 \001(\01323.google.cloud.discovery" - + "engine.v1beta.CloudSqlSourceH\000\022P\n\020firest" - + "ore_source\030\r \001(\01324.google.cloud.discover" - + "yengine.v1beta.FirestoreSourceH\000\022N\n\017bigt" - + "able_source\030\017 \001(\01323.google.cloud.discove" - + "ryengine.v1beta.BigtableSourceH\000\022=\n\006pare" - + "nt\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengine.google" - + "apis.com/Branch\022L\n\014error_config\030\005 \001(\01326." - + "google.cloud.discoveryengine.v1beta.Impo" - + "rtErrorConfig\022k\n\023reconciliation_mode\030\006 \001" - + "(\0162N.google.cloud.discoveryengine.v1beta" - + ".ImportDocumentsRequest.ReconciliationMo" - + "de\022/\n\013update_mask\030\007 \001(\0132\032.google.protobu" - + "f.FieldMask\022\031\n\021auto_generate_ids\030\010 \001(\010\022\020" - + "\n\010id_field\030\t \001(\t\032U\n\014InlineSource\022E\n\tdocu" - + "ments\030\001 \003(\0132-.google.cloud.discoveryengi" - + "ne.v1beta.DocumentB\003\340A\002\"T\n\022Reconciliatio" - + "nMode\022#\n\037RECONCILIATION_MODE_UNSPECIFIED" - + "\020\000\022\017\n\013INCREMENTAL\020\001\022\010\n\004FULL\020\002B\010\n\006source\"" - + "\222\001\n\027ImportDocumentsResponse\022)\n\rerror_sam" - + "ples\030\001 \003(\0132\022.google.rpc.Status\022L\n\014error_" - + "config\030\002 \001(\01326.google.cloud.discoveryeng" - + "ine.v1beta.ImportErrorConfig\"\221\003\n&ImportS" - + "uggestionDenyListEntriesRequest\022q\n\rinlin" - + "e_source\030\002 \001(\0132X.google.cloud.discoverye" - + "ngine.v1beta.ImportSuggestionDenyListEnt" - + "riesRequest.InlineSourceH\000\022D\n\ngcs_source" - + "\030\003 \001(\0132..google.cloud.discoveryengine.v1" - + "beta.GcsSourceH\000\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*" - + "\n(discoveryengine.googleapis.com/DataSto" - + "re\032b\n\014InlineSource\022R\n\007entries\030\001 \003(\0132<.go" - + "ogle.cloud.discoveryengine.v1beta.Sugges" - + "tionDenyListEntryB\003\340A\002B\010\n\006source\"\222\001\n\'Imp" - + "ortSuggestionDenyListEntriesResponse\022)\n\r" - + "error_samples\030\001 \003(\0132\022.google.rpc.Status\022" - + "\036\n\026imported_entries_count\030\002 \001(\003\022\034\n\024faile" - + "d_entries_count\030\003 \001(\003\"\213\001\n\'ImportSuggesti" - + "onDenyListEntriesMetadata\022/\n\013create_time" - + "\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n\013up" - + "date_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "ampB\230\002\n\'com.google.cloud.discoveryengine" - + ".v1betaB\021ImportConfigProtoP\001ZQcloud.goog" - + "le.com/go/discoveryengine/apiv1beta/disc" - + "overyenginepb;discoveryenginepb\242\002\017DISCOV" - + "ERYENGINE\252\002#Google.Cloud.DiscoveryEngine" - + ".V1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V" - + "1beta\352\002&Google::Cloud::DiscoveryEngine::" - + "V1betab\006proto3" + + "Config\"\221\003\n&ImportSuggestionDenyListEntri" + + "esRequest\022q\n\rinline_source\030\002 \001(\0132X.googl" + + "e.cloud.discoveryengine.v1beta.ImportSug" + + "gestionDenyListEntriesRequest.InlineSour" + + "ceH\000\022D\n\ngcs_source\030\003 \001(\0132..google.cloud." + + "discoveryengine.v1beta.GcsSourceH\000\022@\n\006pa" + + "rent\030\001 \001(\tB0\340A\002\372A*\n(discoveryengine.goog" + + "leapis.com/DataStore\032b\n\014InlineSource\022R\n\007" + + "entries\030\001 \003(\0132<.google.cloud.discoveryen" + + "gine.v1beta.SuggestionDenyListEntryB\003\340A\002" + + "B\010\n\006source\"\222\001\n\'ImportSuggestionDenyListE" + + "ntriesResponse\022)\n\rerror_samples\030\001 \003(\0132\022." + + "google.rpc.Status\022\036\n\026imported_entries_co" + + "unt\030\002 \001(\003\022\034\n\024failed_entries_count\030\003 \001(\003\"" + + "\213\001\n\'ImportSuggestionDenyListEntriesMetad" + + "ata\022/\n\013create_time\030\001 \001(\0132\032.google.protob" + + "uf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.goog" + + "le.protobuf.Timestamp\"\250\004\n\"ImportCompleti" + + "onSuggestionsRequest\022m\n\rinline_source\030\002 " + + "\001(\0132T.google.cloud.discoveryengine.v1bet" + + "a.ImportCompletionSuggestionsRequest.Inl" + + "ineSourceH\000\022D\n\ngcs_source\030\003 \001(\0132..google" + + ".cloud.discoveryengine.v1beta.GcsSourceH" + + "\000\022N\n\017bigquery_source\030\004 \001(\01323.google.clou" + + "d.discoveryengine.v1beta.BigQuerySourceH" + + "\000\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(discoveryengi" + + "ne.googleapis.com/DataStore\022L\n\014error_con" + + "fig\030\005 \001(\01326.google.cloud.discoveryengine" + + ".v1beta.ImportErrorConfig\032c\n\014InlineSourc" + + "e\022S\n\013suggestions\030\001 \003(\01329.google.cloud.di" + + "scoveryengine.v1beta.CompletionSuggestio" + + "nB\003\340A\002B\010\n\006source\"\236\001\n#ImportCompletionSug" + + "gestionsResponse\022)\n\rerror_samples\030\001 \003(\0132" + + "\022.google.rpc.Status\022L\n\014error_config\030\002 \001(" + + "\01326.google.cloud.discoveryengine.v1beta." + + "ImportErrorConfig\"\265\001\n#ImportCompletionSu" + + "ggestionsMetadata\022/\n\013create_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp\022/\n\013update_tim" + + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n\rs" + + "uccess_count\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(" + + "\003\"\227\004\n\032ImportSampleQueriesRequest\022e\n\rinli" + + "ne_source\030\002 \001(\0132L.google.cloud.discovery" + + "engine.v1beta.ImportSampleQueriesRequest" + + ".InlineSourceH\000\022D\n\ngcs_source\030\003 \001(\0132..go" + + "ogle.cloud.discoveryengine.v1beta.GcsSou" + + "rceH\000\022N\n\017bigquery_source\030\004 \001(\01323.google." + + "cloud.discoveryengine.v1beta.BigQuerySou" + + "rceH\000\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-discovery" + + "engine.googleapis.com/SampleQuerySet\022L\n\014" + + "error_config\030\005 \001(\01326.google.cloud.discov" + + "eryengine.v1beta.ImportErrorConfig\032]\n\014In" + + "lineSource\022M\n\016sample_queries\030\001 \003(\01320.goo" + + "gle.cloud.discoveryengine.v1beta.SampleQ" + + "ueryB\003\340A\002B\010\n\006source\"\226\001\n\033ImportSampleQuer" + + "iesResponse\022)\n\rerror_samples\030\001 \003(\0132\022.goo" + + "gle.rpc.Status\022L\n\014error_config\030\002 \001(\01326.g" + + "oogle.cloud.discoveryengine.v1beta.Impor" + + "tErrorConfig\"\302\001\n\033ImportSampleQueriesMeta" + + "data\022/\n\013create_time\030\001 \001(\0132\032.google.proto" + + "buf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022\025\n\rsuccess_count\030" + + "\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003\022\023\n\013total_co" + + "unt\030\005 \001(\003B\230\002\n\'com.google.cloud.discovery" + + "engine.v1betaB\021ImportConfigProtoP\001ZQclou" + + "d.google.com/go/discoveryengine/apiv1bet" + + "a/discoveryenginepb;discoveryenginepb\242\002\017" + + "DISCOVERYENGINE\252\002#Google.Cloud.Discovery" + + "Engine.V1Beta\312\002#Google\\Cloud\\DiscoveryEn" + + "gine\\V1beta\352\002&Google::Cloud::DiscoveryEn" + + "gine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -288,6 +376,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.CompletionProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.DocumentProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.SampleQueryProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.UserEventProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -386,8 +475,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ProjectId", "InstanceId", "DatabaseId", "TableId", "GcsStagingDir", "Offload", }); - internal_static_google_cloud_discoveryengine_v1beta_FirestoreSource_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AlloyDbSource_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_discoveryengine_v1beta_AlloyDbSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AlloyDbSource_descriptor, + new java.lang.String[] { + "ProjectId", "LocationId", "ClusterId", "DatabaseId", "TableId", "GcsStagingDir", + }); + internal_static_google_cloud_discoveryengine_v1beta_FirestoreSource_descriptor = + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_discoveryengine_v1beta_FirestoreSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_FirestoreSource_descriptor, @@ -395,7 +492,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "DatabaseId", "CollectionId", "GcsStagingDir", }); internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_descriptor, @@ -403,7 +500,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsPrefix", "Destination", }); internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor, @@ -421,7 +518,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserEvents", }); internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_descriptor, @@ -429,7 +526,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ErrorSamples", "ErrorConfig", "JoinedEventsCount", "UnjoinedEventsCount", }); internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_descriptor, @@ -437,7 +534,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", }); internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_descriptor, @@ -445,7 +542,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", "TotalCount", }); internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor, @@ -457,6 +554,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SpannerSource", "CloudSqlSource", "FirestoreSource", + "AlloyDbSource", "BigtableSource", "Parent", "ErrorConfig", @@ -477,7 +575,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Documents", }); internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_descriptor, @@ -485,7 +583,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ErrorSamples", "ErrorConfig", }); internal_static_google_cloud_discoveryengine_v1beta_ImportSuggestionDenyListEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_discoveryengine_v1beta_ImportSuggestionDenyListEntriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_ImportSuggestionDenyListEntriesRequest_descriptor, @@ -503,7 +601,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Entries", }); internal_static_google_cloud_discoveryengine_v1beta_ImportSuggestionDenyListEntriesResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_discoveryengine_v1beta_ImportSuggestionDenyListEntriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_ImportSuggestionDenyListEntriesResponse_descriptor, @@ -511,13 +609,81 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ErrorSamples", "ImportedEntriesCount", "FailedEntriesCount", }); internal_static_google_cloud_discoveryengine_v1beta_ImportSuggestionDenyListEntriesMetadata_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_discoveryengine_v1beta_ImportSuggestionDenyListEntriesMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_ImportSuggestionDenyListEntriesMetadata_descriptor, new java.lang.String[] { "CreateTime", "UpdateTime", }); + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_descriptor, + new java.lang.String[] { + "InlineSource", "GcsSource", "BigquerySource", "Parent", "ErrorConfig", "Source", + }); + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_InlineSource_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_InlineSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsRequest_InlineSource_descriptor, + new java.lang.String[] { + "Suggestions", + }); + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsResponse_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsResponse_descriptor, + new java.lang.String[] { + "ErrorSamples", "ErrorConfig", + }); + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsMetadata_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportCompletionSuggestionsMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", + }); + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_descriptor, + new java.lang.String[] { + "InlineSource", "GcsSource", "BigquerySource", "Parent", "ErrorConfig", "Source", + }); + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_InlineSource_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_InlineSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_InlineSource_descriptor, + new java.lang.String[] { + "SampleQueries", + }); + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesResponse_descriptor, + new java.lang.String[] { + "ErrorSamples", "ErrorConfig", + }); + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", "TotalCount", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -528,6 +694,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.CompletionProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.DocumentProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.SampleQueryProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.UserEventProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java index 49a4ba660821..7e132f8110df 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java @@ -1374,6 +1374,7 @@ public enum SourceCase SPANNER_SOURCE(11), CLOUD_SQL_SOURCE(12), FIRESTORE_SOURCE(13), + ALLOY_DB_SOURCE(14), BIGTABLE_SOURCE(15), SOURCE_NOT_SET(0); private final int value; @@ -1407,6 +1408,8 @@ public static SourceCase forNumber(int value) { return CLOUD_SQL_SOURCE; case 13: return FIRESTORE_SOURCE; + case 14: + return ALLOY_DB_SOURCE; case 15: return BIGTABLE_SOURCE; case 0: @@ -1797,6 +1800,58 @@ public com.google.cloud.discoveryengine.v1beta.FirestoreSource getFirestoreSourc return com.google.cloud.discoveryengine.v1beta.FirestoreSource.getDefaultInstance(); } + public static final int ALLOY_DB_SOURCE_FIELD_NUMBER = 14; + /** + * + * + *
      +   * AlloyDB input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + * + * @return Whether the alloyDbSource field is set. + */ + @java.lang.Override + public boolean hasAlloyDbSource() { + return sourceCase_ == 14; + } + /** + * + * + *
      +   * AlloyDB input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + * + * @return The alloyDbSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AlloyDbSource getAlloyDbSource() { + if (sourceCase_ == 14) { + return (com.google.cloud.discoveryengine.v1beta.AlloyDbSource) source_; + } + return com.google.cloud.discoveryengine.v1beta.AlloyDbSource.getDefaultInstance(); + } + /** + * + * + *
      +   * AlloyDB input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AlloyDbSourceOrBuilder + getAlloyDbSourceOrBuilder() { + if (sourceCase_ == 14) { + return (com.google.cloud.discoveryengine.v1beta.AlloyDbSource) source_; + } + return com.google.cloud.discoveryengine.v1beta.AlloyDbSource.getDefaultInstance(); + } + public static final int BIGTABLE_SOURCE_FIELD_NUMBER = 15; /** * @@ -2272,6 +2327,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceCase_ == 13) { output.writeMessage(13, (com.google.cloud.discoveryengine.v1beta.FirestoreSource) source_); } + if (sourceCase_ == 14) { + output.writeMessage(14, (com.google.cloud.discoveryengine.v1beta.AlloyDbSource) source_); + } if (sourceCase_ == 15) { output.writeMessage(15, (com.google.cloud.discoveryengine.v1beta.BigtableSource) source_); } @@ -2342,6 +2400,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 13, (com.google.cloud.discoveryengine.v1beta.FirestoreSource) source_); } + if (sourceCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.discoveryengine.v1beta.AlloyDbSource) source_); + } if (sourceCase_ == 15) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -2398,6 +2461,9 @@ public boolean equals(final java.lang.Object obj) { case 13: if (!getFirestoreSource().equals(other.getFirestoreSource())) return false; break; + case 14: + if (!getAlloyDbSource().equals(other.getAlloyDbSource())) return false; + break; case 15: if (!getBigtableSource().equals(other.getBigtableSource())) return false; break; @@ -2460,6 +2526,10 @@ public int hashCode() { hash = (37 * hash) + FIRESTORE_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getFirestoreSource().hashCode(); break; + case 14: + hash = (37 * hash) + ALLOY_DB_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getAlloyDbSource().hashCode(); + break; case 15: hash = (37 * hash) + BIGTABLE_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getBigtableSource().hashCode(); @@ -2638,6 +2708,9 @@ public Builder clear() { if (firestoreSourceBuilder_ != null) { firestoreSourceBuilder_.clear(); } + if (alloyDbSourceBuilder_ != null) { + alloyDbSourceBuilder_.clear(); + } if (bigtableSourceBuilder_ != null) { bigtableSourceBuilder_.clear(); } @@ -2696,26 +2769,26 @@ public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest buildParti private void buildPartial0( com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.parent_ = parent_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.errorConfig_ = errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.reconciliationMode_ = reconciliationMode_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.autoGenerateIds_ = autoGenerateIds_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.idField_ = idField_; } result.bitField0_ |= to_bitField0_; @@ -2746,6 +2819,9 @@ private void buildPartialOneofs( if (sourceCase_ == 13 && firestoreSourceBuilder_ != null) { result.source_ = firestoreSourceBuilder_.build(); } + if (sourceCase_ == 14 && alloyDbSourceBuilder_ != null) { + result.source_ = alloyDbSourceBuilder_.build(); + } if (sourceCase_ == 15 && bigtableSourceBuilder_ != null) { result.source_ = bigtableSourceBuilder_.build(); } @@ -2800,7 +2876,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ImportDocuments return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasErrorConfig()) { @@ -2817,7 +2893,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ImportDocuments } if (!other.getIdField().isEmpty()) { idField_ = other.idField_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } switch (other.getSourceCase()) { @@ -2856,6 +2932,11 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ImportDocuments mergeFirestoreSource(other.getFirestoreSource()); break; } + case ALLOY_DB_SOURCE: + { + mergeAlloyDbSource(other.getAlloyDbSource()); + break; + } case BIGTABLE_SOURCE: { mergeBigtableSource(other.getBigtableSource()); @@ -2895,7 +2976,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 10 case 18: @@ -2919,31 +3000,31 @@ public Builder mergeFrom( case 42: { input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 42 case 48: { reconciliationMode_ = input.readEnum(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 48 case 58: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 58 case 64: { autoGenerateIds_ = input.readBool(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 64 case 74: { idField_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 74 case 82: @@ -2970,6 +3051,12 @@ public Builder mergeFrom( sourceCase_ = 13; break; } // case 106 + case 114: + { + input.readMessage(getAlloyDbSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 14; + break; + } // case 114 case 122: { input.readMessage(getBigtableSourceFieldBuilder().getBuilder(), extensionRegistry); @@ -4529,6 +4616,217 @@ public Builder clearFirestoreSource() { return firestoreSourceBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.AlloyDbSource, + com.google.cloud.discoveryengine.v1beta.AlloyDbSource.Builder, + com.google.cloud.discoveryengine.v1beta.AlloyDbSourceOrBuilder> + alloyDbSourceBuilder_; + /** + * + * + *
      +     * AlloyDB input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + * + * @return Whether the alloyDbSource field is set. + */ + @java.lang.Override + public boolean hasAlloyDbSource() { + return sourceCase_ == 14; + } + /** + * + * + *
      +     * AlloyDB input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + * + * @return The alloyDbSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AlloyDbSource getAlloyDbSource() { + if (alloyDbSourceBuilder_ == null) { + if (sourceCase_ == 14) { + return (com.google.cloud.discoveryengine.v1beta.AlloyDbSource) source_; + } + return com.google.cloud.discoveryengine.v1beta.AlloyDbSource.getDefaultInstance(); + } else { + if (sourceCase_ == 14) { + return alloyDbSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.AlloyDbSource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * AlloyDB input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + */ + public Builder setAlloyDbSource(com.google.cloud.discoveryengine.v1beta.AlloyDbSource value) { + if (alloyDbSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + alloyDbSourceBuilder_.setMessage(value); + } + sourceCase_ = 14; + return this; + } + /** + * + * + *
      +     * AlloyDB input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + */ + public Builder setAlloyDbSource( + com.google.cloud.discoveryengine.v1beta.AlloyDbSource.Builder builderForValue) { + if (alloyDbSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + alloyDbSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 14; + return this; + } + /** + * + * + *
      +     * AlloyDB input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + */ + public Builder mergeAlloyDbSource(com.google.cloud.discoveryengine.v1beta.AlloyDbSource value) { + if (alloyDbSourceBuilder_ == null) { + if (sourceCase_ == 14 + && source_ + != com.google.cloud.discoveryengine.v1beta.AlloyDbSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1beta.AlloyDbSource.newBuilder( + (com.google.cloud.discoveryengine.v1beta.AlloyDbSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 14) { + alloyDbSourceBuilder_.mergeFrom(value); + } else { + alloyDbSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 14; + return this; + } + /** + * + * + *
      +     * AlloyDB input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + */ + public Builder clearAlloyDbSource() { + if (alloyDbSourceBuilder_ == null) { + if (sourceCase_ == 14) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 14) { + sourceCase_ = 0; + source_ = null; + } + alloyDbSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * AlloyDB input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + */ + public com.google.cloud.discoveryengine.v1beta.AlloyDbSource.Builder getAlloyDbSourceBuilder() { + return getAlloyDbSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * AlloyDB input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AlloyDbSourceOrBuilder + getAlloyDbSourceOrBuilder() { + if ((sourceCase_ == 14) && (alloyDbSourceBuilder_ != null)) { + return alloyDbSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 14) { + return (com.google.cloud.discoveryengine.v1beta.AlloyDbSource) source_; + } + return com.google.cloud.discoveryengine.v1beta.AlloyDbSource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * AlloyDB input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.AlloyDbSource, + com.google.cloud.discoveryengine.v1beta.AlloyDbSource.Builder, + com.google.cloud.discoveryengine.v1beta.AlloyDbSourceOrBuilder> + getAlloyDbSourceFieldBuilder() { + if (alloyDbSourceBuilder_ == null) { + if (!(sourceCase_ == 14)) { + source_ = com.google.cloud.discoveryengine.v1beta.AlloyDbSource.getDefaultInstance(); + } + alloyDbSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.AlloyDbSource, + com.google.cloud.discoveryengine.v1beta.AlloyDbSource.Builder, + com.google.cloud.discoveryengine.v1beta.AlloyDbSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.AlloyDbSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 14; + onChanged(); + return alloyDbSourceBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.discoveryengine.v1beta.BigtableSource, com.google.cloud.discoveryengine.v1beta.BigtableSource.Builder, @@ -4816,7 +5114,7 @@ public Builder setParent(java.lang.String value) { throw new NullPointerException(); } parent_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4837,7 +5135,7 @@ public Builder setParent(java.lang.String value) { */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -4863,7 +5161,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); parent_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4886,7 +5184,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the errorConfig field is set. */ public boolean hasErrorConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -4926,7 +5224,7 @@ public Builder setErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErro } else { errorConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4946,7 +5244,7 @@ public Builder setErrorConfig( } else { errorConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4962,7 +5260,7 @@ public Builder setErrorConfig( public Builder mergeErrorConfig( com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { if (errorConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && errorConfig_ != null && errorConfig_ != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) { @@ -4974,7 +5272,7 @@ public Builder mergeErrorConfig( errorConfigBuilder_.mergeFrom(value); } if (errorConfig_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -4989,7 +5287,7 @@ public Builder mergeErrorConfig( * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; */ public Builder clearErrorConfig() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); errorConfig_ = null; if (errorConfigBuilder_ != null) { errorConfigBuilder_.dispose(); @@ -5009,7 +5307,7 @@ public Builder clearErrorConfig() { */ public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder getErrorConfigBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return getErrorConfigFieldBuilder().getBuilder(); } @@ -5096,7 +5394,7 @@ public int getReconciliationModeValue() { */ public Builder setReconciliationModeValue(int value) { reconciliationMode_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5147,7 +5445,7 @@ public Builder setReconciliationMode( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; reconciliationMode_ = value.getNumber(); onChanged(); return this; @@ -5168,7 +5466,7 @@ public Builder setReconciliationMode( * @return This builder for chaining. */ public Builder clearReconciliationMode() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); reconciliationMode_ = 0; onChanged(); return this; @@ -5193,7 +5491,7 @@ public Builder clearReconciliationMode() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -5235,7 +5533,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5255,7 +5553,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5271,7 +5569,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && updateMask_ != null && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); @@ -5282,7 +5580,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { updateMaskBuilder_.mergeFrom(value); } if (updateMask_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -5298,7 +5596,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 7; */ public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); updateMask_ = null; if (updateMaskBuilder_ != null) { updateMaskBuilder_.dispose(); @@ -5318,7 +5616,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 7; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -5447,7 +5745,7 @@ public boolean getAutoGenerateIds() { public Builder setAutoGenerateIds(boolean value) { autoGenerateIds_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5487,7 +5785,7 @@ public Builder setAutoGenerateIds(boolean value) { * @return This builder for chaining. */ public Builder clearAutoGenerateIds() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); autoGenerateIds_ = false; onChanged(); return this; @@ -5654,7 +5952,7 @@ public Builder setIdField(java.lang.String value) { throw new NullPointerException(); } idField_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5704,7 +6002,7 @@ public Builder setIdField(java.lang.String value) { */ public Builder clearIdField() { idField_ = getDefaultInstance().getIdField(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -5759,7 +6057,7 @@ public Builder setIdFieldBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); idField_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java index 37584dd5033a..5c28ed911948 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java @@ -276,6 +276,41 @@ public interface ImportDocumentsRequestOrBuilder */ com.google.cloud.discoveryengine.v1beta.FirestoreSourceOrBuilder getFirestoreSourceOrBuilder(); + /** + * + * + *
      +   * AlloyDB input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + * + * @return Whether the alloyDbSource field is set. + */ + boolean hasAlloyDbSource(); + /** + * + * + *
      +   * AlloyDB input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + * + * @return The alloyDbSource. + */ + com.google.cloud.discoveryengine.v1beta.AlloyDbSource getAlloyDbSource(); + /** + * + * + *
      +   * AlloyDB input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.AlloyDbSource alloy_db_source = 14; + */ + com.google.cloud.discoveryengine.v1beta.AlloyDbSourceOrBuilder getAlloyDbSourceOrBuilder(); + /** * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesMetadata.java new file mode 100644 index 000000000000..912fc902ddfa --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesMetadata.java @@ -0,0 +1,1304 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Metadata related to the progress of the ImportSampleQueries
      + * operation. This will be returned by the google.longrunning.Operation.metadata
      + * field.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata} + */ +public final class ImportSampleQueriesMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata) + ImportSampleQueriesMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportSampleQueriesMetadata.newBuilder() to construct. + private ImportSampleQueriesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportSampleQueriesMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportSampleQueriesMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata.class, + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
      +   * ImportSampleQueries operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * ImportSampleQueries operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
      +   * ImportSampleQueries operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
      +   * ImportSampleQueries operation last update time. If the operation is done,
      +   * this is also the finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * ImportSampleQueries operation last update time. If the operation is done,
      +   * this is also the finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
      +   * ImportSampleQueries operation last update time. If the operation is done,
      +   * this is also the finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int SUCCESS_COUNT_FIELD_NUMBER = 3; + private long successCount_ = 0L; + /** + * + * + *
      +   * Count of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s
      +   * successfully imported.
      +   * 
      + * + * int64 success_count = 3; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + + public static final int FAILURE_COUNT_FIELD_NUMBER = 4; + private long failureCount_ = 0L; + /** + * + * + *
      +   * Count of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s
      +   * that failed to be imported.
      +   * 
      + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + + public static final int TOTAL_COUNT_FIELD_NUMBER = 5; + private long totalCount_ = 0L; + /** + * + * + *
      +   * Total count of
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s that were
      +   * processed.
      +   * 
      + * + * int64 total_count = 5; + * + * @return The totalCount. + */ + @java.lang.Override + public long getTotalCount() { + return totalCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + if (successCount_ != 0L) { + output.writeInt64(3, successCount_); + } + if (failureCount_ != 0L) { + output.writeInt64(4, failureCount_); + } + if (totalCount_ != 0L) { + output.writeInt64(5, totalCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + if (successCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, successCount_); + } + if (failureCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); + } + if (totalCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata other = + (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (getSuccessCount() != other.getSuccessCount()) return false; + if (getFailureCount() != other.getFailureCount()) return false; + if (getTotalCount() != other.getTotalCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + SUCCESS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessCount()); + hash = (37 * hash) + FAILURE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailureCount()); + hash = (37 * hash) + TOTAL_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Metadata related to the progress of the ImportSampleQueries
      +   * operation. This will be returned by the google.longrunning.Operation.metadata
      +   * field.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata) + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata.class, + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + successCount_ = 0L; + failureCount_ = 0L; + totalCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata build() { + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata buildPartial() { + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata result = + new com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.successCount_ = successCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failureCount_ = failureCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.totalCount_ = totalCount_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata + .getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getSuccessCount() != 0L) { + setSuccessCount(other.getSuccessCount()); + } + if (other.getFailureCount() != 0L) { + setFailureCount(other.getFailureCount()); + } + if (other.getTotalCount() != 0L) { + setTotalCount(other.getTotalCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + successCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + failureCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + totalCount_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
      +     * ImportSampleQueries operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
      +     * ImportSampleQueries operation last update time. If the operation is done,
      +     * this is also the finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private long successCount_; + /** + * + * + *
      +     * Count of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s
      +     * successfully imported.
      +     * 
      + * + * int64 success_count = 3; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + /** + * + * + *
      +     * Count of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s
      +     * successfully imported.
      +     * 
      + * + * int64 success_count = 3; + * + * @param value The successCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessCount(long value) { + + successCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Count of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s
      +     * successfully imported.
      +     * 
      + * + * int64 success_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearSuccessCount() { + bitField0_ = (bitField0_ & ~0x00000004); + successCount_ = 0L; + onChanged(); + return this; + } + + private long failureCount_; + /** + * + * + *
      +     * Count of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s
      +     * that failed to be imported.
      +     * 
      + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + /** + * + * + *
      +     * Count of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s
      +     * that failed to be imported.
      +     * 
      + * + * int64 failure_count = 4; + * + * @param value The failureCount to set. + * @return This builder for chaining. + */ + public Builder setFailureCount(long value) { + + failureCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Count of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s
      +     * that failed to be imported.
      +     * 
      + * + * int64 failure_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearFailureCount() { + bitField0_ = (bitField0_ & ~0x00000008); + failureCount_ = 0L; + onChanged(); + return this; + } + + private long totalCount_; + /** + * + * + *
      +     * Total count of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s that were
      +     * processed.
      +     * 
      + * + * int64 total_count = 5; + * + * @return The totalCount. + */ + @java.lang.Override + public long getTotalCount() { + return totalCount_; + } + /** + * + * + *
      +     * Total count of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s that were
      +     * processed.
      +     * 
      + * + * int64 total_count = 5; + * + * @param value The totalCount to set. + * @return This builder for chaining. + */ + public Builder setTotalCount(long value) { + + totalCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Total count of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s that were
      +     * processed.
      +     * 
      + * + * int64 total_count = 5; + * + * @return This builder for chaining. + */ + public Builder clearTotalCount() { + bitField0_ = (bitField0_ & ~0x00000010); + totalCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata) + private static final com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportSampleQueriesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesMetadataOrBuilder.java new file mode 100644 index 000000000000..ca9732e2ff5f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesMetadataOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ImportSampleQueriesMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * ImportSampleQueries operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
      +   * ImportSampleQueries operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
      +   * ImportSampleQueries operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * ImportSampleQueries operation last update time. If the operation is done,
      +   * this is also the finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
      +   * ImportSampleQueries operation last update time. If the operation is done,
      +   * this is also the finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
      +   * ImportSampleQueries operation last update time. If the operation is done,
      +   * this is also the finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
      +   * Count of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s
      +   * successfully imported.
      +   * 
      + * + * int64 success_count = 3; + * + * @return The successCount. + */ + long getSuccessCount(); + + /** + * + * + *
      +   * Count of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s
      +   * that failed to be imported.
      +   * 
      + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + long getFailureCount(); + + /** + * + * + *
      +   * Total count of
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s that were
      +   * processed.
      +   * 
      + * + * int64 total_count = 5; + * + * @return The totalCount. + */ + long getTotalCount(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesRequest.java new file mode 100644 index 000000000000..92d5c5d95ed7 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesRequest.java @@ -0,0 +1,3156 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ImportSampleQueries]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest} + */ +public final class ImportSampleQueriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest) + ImportSampleQueriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportSampleQueriesRequest.newBuilder() to construct. + private ImportSampleQueriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportSampleQueriesRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportSampleQueriesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.class, + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.Builder.class); + } + + public interface InlineSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getSampleQueriesList(); + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQueries(int index); + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getSampleQueriesCount(); + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getSampleQueriesOrBuilderList(); + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder getSampleQueriesOrBuilder( + int index); + } + /** + * + * + *
      +   * The inline source for
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +   * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource} + */ + public static final class InlineSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) + InlineSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use InlineSource.newBuilder() to construct. + private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InlineSource() { + sampleQueries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InlineSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource.class, + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + .Builder.class); + } + + public static final int SAMPLE_QUERIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List sampleQueries_; + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getSampleQueriesList() { + return sampleQueries_; + } + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getSampleQueriesOrBuilderList() { + return sampleQueries_; + } + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getSampleQueriesCount() { + return sampleQueries_.size(); + } + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQueries(int index) { + return sampleQueries_.get(index); + } + /** + * + * + *
      +     * Required. A list of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +     * import. Max of 1000 items.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder getSampleQueriesOrBuilder( + int index) { + return sampleQueries_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < sampleQueries_.size(); i++) { + output.writeMessage(1, sampleQueries_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sampleQueries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sampleQueries_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource other = + (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) obj; + + if (!getSampleQueriesList().equals(other.getSampleQueriesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSampleQueriesCount() > 0) { + hash = (37 * hash) + SAMPLE_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getSampleQueriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * The inline source for
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + .class, + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sampleQueriesBuilder_ == null) { + sampleQueries_ = java.util.Collections.emptyList(); + } else { + sampleQueries_ = null; + sampleQueriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_InlineSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + build() { + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + buildPartial() { + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource result = + new com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource result) { + if (sampleQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sampleQueries_ = java.util.Collections.unmodifiableList(sampleQueries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sampleQueries_ = sampleQueries_; + } else { + result.sampleQueries_ = sampleQueriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance()) return this; + if (sampleQueriesBuilder_ == null) { + if (!other.sampleQueries_.isEmpty()) { + if (sampleQueries_.isEmpty()) { + sampleQueries_ = other.sampleQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSampleQueriesIsMutable(); + sampleQueries_.addAll(other.sampleQueries_); + } + onChanged(); + } + } else { + if (!other.sampleQueries_.isEmpty()) { + if (sampleQueriesBuilder_.isEmpty()) { + sampleQueriesBuilder_.dispose(); + sampleQueriesBuilder_ = null; + sampleQueries_ = other.sampleQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + sampleQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSampleQueriesFieldBuilder() + : null; + } else { + sampleQueriesBuilder_.addAllMessages(other.sampleQueries_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1beta.SampleQuery m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SampleQuery.parser(), + extensionRegistry); + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.add(m); + } else { + sampleQueriesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List sampleQueries_ = + java.util.Collections.emptyList(); + + private void ensureSampleQueriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sampleQueries_ = + new java.util.ArrayList( + sampleQueries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder> + sampleQueriesBuilder_; + + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSampleQueriesList() { + if (sampleQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sampleQueries_); + } else { + return sampleQueriesBuilder_.getMessageList(); + } + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getSampleQueriesCount() { + if (sampleQueriesBuilder_ == null) { + return sampleQueries_.size(); + } else { + return sampleQueriesBuilder_.getCount(); + } + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQueries(int index) { + if (sampleQueriesBuilder_ == null) { + return sampleQueries_.get(index); + } else { + return sampleQueriesBuilder_.getMessage(index); + } + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQueries( + int index, com.google.cloud.discoveryengine.v1beta.SampleQuery value) { + if (sampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQueriesIsMutable(); + sampleQueries_.set(index, value); + onChanged(); + } else { + sampleQueriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQueries( + int index, com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder builderForValue) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + sampleQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSampleQueries(com.google.cloud.discoveryengine.v1beta.SampleQuery value) { + if (sampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQueriesIsMutable(); + sampleQueries_.add(value); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSampleQueries( + int index, com.google.cloud.discoveryengine.v1beta.SampleQuery value) { + if (sampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQueriesIsMutable(); + sampleQueries_.add(index, value); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSampleQueries( + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder builderForValue) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.add(builderForValue.build()); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSampleQueries( + int index, com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder builderForValue) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllSampleQueries( + java.lang.Iterable + values) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sampleQueries_); + onChanged(); + } else { + sampleQueriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSampleQueries() { + if (sampleQueriesBuilder_ == null) { + sampleQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sampleQueriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeSampleQueries(int index) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.remove(index); + onChanged(); + } else { + sampleQueriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder getSampleQueriesBuilder( + int index) { + return getSampleQueriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder getSampleQueriesOrBuilder( + int index) { + if (sampleQueriesBuilder_ == null) { + return sampleQueries_.get(index); + } else { + return sampleQueriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSampleQueriesOrBuilderList() { + if (sampleQueriesBuilder_ != null) { + return sampleQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sampleQueries_); + } + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder addSampleQueriesBuilder() { + return getSampleQueriesFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance()); + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder addSampleQueriesBuilder( + int index) { + return getSampleQueriesFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance()); + } + /** + * + * + *
      +       * Required. A list of
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
      +       * import. Max of 1000 items.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSampleQueriesBuilderList() { + return getSampleQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder> + getSampleQueriesFieldBuilder() { + if (sampleQueriesBuilder_ == null) { + sampleQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder>( + sampleQueries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sampleQueries_ = null; + } + return sampleQueriesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) + private static final com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest + .InlineSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource(); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INLINE_SOURCE(2), + GCS_SOURCE(3), + BIGQUERY_SOURCE(4), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return INLINE_SOURCE; + case 3: + return GCS_SOURCE; + case 4: + return BIGQUERY_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int INLINE_SOURCE_FIELD_NUMBER = 2; + /** + * + * + *
      +   * The Inline source for sample query entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + /** + * + * + *
      +   * The Inline source for sample query entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + getInlineSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance(); + } + /** + * + * + *
      +   * The Inline source for sample query entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance(); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 3; + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 3; + } + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource() { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); + } + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); + } + + public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 4; + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + * + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return sourceCase_ == 4; + } + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + * + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource() { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); + } + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder + getBigquerySourceOrBuilder() { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + * + * @return Whether the errorConfig field is set. + */ + @java.lang.Override + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + * + * @return The errorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (sourceCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) + source_); + } + if (sourceCase_ == 3) { + output.writeMessage(3, (com.google.cloud.discoveryengine.v1beta.GcsSource) source_); + } + if (sourceCase_ == 4) { + output.writeMessage(4, (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getErrorConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) + source_); + } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.discoveryengine.v1beta.GcsSource) source_); + } + if (sourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getErrorConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest other = + (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasErrorConfig() != other.hasErrorConfig()) return false; + if (hasErrorConfig()) { + if (!getErrorConfig().equals(other.getErrorConfig())) return false; + } + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getInlineSource().equals(other.getInlineSource())) return false; + break; + case 3: + if (!getGcsSource().equals(other.getGcsSource())) return false; + break; + case 4: + if (!getBigquerySource().equals(other.getBigquerySource())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasErrorConfig()) { + hash = (37 * hash) + ERROR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getErrorConfig().hashCode(); + } + switch (sourceCase_) { + case 2: + hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInlineSource().hashCode(); + break; + case 3: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 4: + hash = (37 * hash) + BIGQUERY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBigquerySource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ImportSampleQueries]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest) + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.class, + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getErrorConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (inlineSourceBuilder_ != null) { + inlineSourceBuilder_.clear(); + } + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.clear(); + } + if (bigquerySourceBuilder_ != null) { + bigquerySourceBuilder_.clear(); + } + parent_ = ""; + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest build() { + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest result = + new com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.errorConfig_ = + errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && inlineSourceBuilder_ != null) { + result.source_ = inlineSourceBuilder_.build(); + } + if (sourceCase_ == 3 && gcsSourceBuilder_ != null) { + result.source_ = gcsSourceBuilder_.build(); + } + if (sourceCase_ == 4 && bigquerySourceBuilder_ != null) { + result.source_ = bigquerySourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasErrorConfig()) { + mergeErrorConfig(other.getErrorConfig()); + } + switch (other.getSourceCase()) { + case INLINE_SOURCE: + { + mergeInlineSource(other.getInlineSource()); + break; + } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case BIGQUERY_SOURCE: + { + mergeBigquerySource(other.getBigquerySource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: + { + input.readMessage(getInlineSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getBigquerySourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource, + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource.Builder, + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest + .InlineSourceOrBuilder> + inlineSourceBuilder_; + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + getInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return inlineSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance(); + } + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource value) { + if (inlineSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + inlineSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource.Builder + builderForValue) { + if (inlineSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + inlineSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + public Builder mergeInlineSource( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource value) { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ + != com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + .newBuilder( + (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest + .InlineSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + inlineSourceBuilder_.mergeFrom(value); + } else { + inlineSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + public Builder clearInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + inlineSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource.Builder + getInlineSourceBuilder() { + return getInlineSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { + return inlineSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance(); + } + } + /** + * + * + *
      +     * The Inline source for sample query entries.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource, + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource.Builder, + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest + .InlineSourceOrBuilder> + getInlineSourceFieldBuilder() { + if (inlineSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + .getDefaultInstance(); + } + inlineSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource, + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest + .InlineSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return inlineSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.GcsSource, + com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, + com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 3; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + public Builder setGcsSource(com.google.cloud.discoveryengine.v1beta.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + public Builder setGcsSource( + com.google.cloud.discoveryengine.v1beta.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1beta.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3 + && source_ != com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1beta.GcsSource.newBuilder( + (com.google.cloud.discoveryengine.v1beta.GcsSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + public com.google.cloud.discoveryengine.v1beta.GcsSource.Builder getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if ((sourceCase_ == 3) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * Cloud Storage location for the input content.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.GcsSource, + com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, + com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.GcsSource, + com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, + com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.GcsSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + return gcsSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.BigQuerySource, + com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, + com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder> + bigquerySourceBuilder_; + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + * + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return sourceCase_ == 4; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + * + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); + } else { + if (sourceCase_ == 4) { + return bigquerySourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + public Builder setBigquerySource(com.google.cloud.discoveryengine.v1beta.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(value); + } + sourceCase_ = 4; + return this; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + public Builder setBigquerySource( + com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder builderForValue) { + if (bigquerySourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 4; + return this; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + public Builder mergeBigquerySource( + com.google.cloud.discoveryengine.v1beta.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4 + && source_ + != com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1beta.BigQuerySource.newBuilder( + (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 4) { + bigquerySourceBuilder_.mergeFrom(value); + } else { + bigquerySourceBuilder_.setMessage(value); + } + } + sourceCase_ = 4; + return this; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + public Builder clearBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + } + bigquerySourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + public com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder + getBigquerySourceBuilder() { + return getBigquerySourceFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder + getBigquerySourceOrBuilder() { + if ((sourceCase_ == 4) && (bigquerySourceBuilder_ != null)) { + return bigquerySourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); + } + } + /** + * + * + *
      +     * BigQuery input source.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.BigQuerySource, + com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, + com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder> + getBigquerySourceFieldBuilder() { + if (bigquerySourceBuilder_ == null) { + if (!(sourceCase_ == 4)) { + source_ = com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); + } + bigquerySourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.BigQuerySource, + com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, + com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 4; + onChanged(); + return bigquerySourceBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> + errorConfigBuilder_; + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + * + * @return Whether the errorConfig field is set. + */ + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + * + * @return The errorConfig. + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { + if (errorConfigBuilder_ == null) { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } else { + return errorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + public Builder setErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorConfig_ = value; + } else { + errorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder builderForValue) { + if (errorConfigBuilder_ == null) { + errorConfig_ = builderForValue.build(); + } else { + errorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + public Builder mergeErrorConfig( + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && errorConfig_ != null + && errorConfig_ + != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) { + getErrorConfigBuilder().mergeFrom(value); + } else { + errorConfig_ = value; + } + } else { + errorConfigBuilder_.mergeFrom(value); + } + if (errorConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + public Builder clearErrorConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder + getErrorConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getErrorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + if (errorConfigBuilder_ != null) { + return errorConfigBuilder_.getMessageOrBuilder(); + } else { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> + getErrorConfigFieldBuilder() { + if (errorConfigBuilder_ == null) { + errorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>( + getErrorConfig(), getParentForChildren(), isClean()); + errorConfig_ = null; + } + return errorConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest) + private static final com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportSampleQueriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesRequestOrBuilder.java new file mode 100644 index 000000000000..ad1637d27a58 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesRequestOrBuilder.java @@ -0,0 +1,216 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ImportSampleQueriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The Inline source for sample query entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + boolean hasInlineSource(); + /** + * + * + *
      +   * The Inline source for sample query entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource getInlineSource(); + /** + * + * + *
      +   * The Inline source for sample query entries.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource inline_source = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSourceOrBuilder + getInlineSourceOrBuilder(); + + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + * + * @return The gcsSource. + */ + com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource(); + /** + * + * + *
      +   * Cloud Storage location for the input content.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; + */ + com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + * + * @return Whether the bigquerySource field is set. + */ + boolean hasBigquerySource(); + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + * + * @return The bigquerySource. + */ + com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource(); + /** + * + * + *
      +   * BigQuery input source.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; + */ + com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); + + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + * + * @return Whether the errorConfig field is set. + */ + boolean hasErrorConfig(); + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + * + * @return The errorConfig. + */ + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig(); + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; + */ + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.SourceCase getSourceCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesResponse.java new file mode 100644 index 000000000000..13cd084e8914 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesResponse.java @@ -0,0 +1,1230 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Response of the
      + * [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ImportSampleQueries]
      + * method. If the long running operation is done, this message is returned by
      + * the google.longrunning.Operations.response field if the operation is
      + * successful.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse} + */ +public final class ImportSampleQueriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse) + ImportSampleQueriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportSampleQueriesResponse.newBuilder() to construct. + private ImportSampleQueriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportSampleQueriesResponse() { + errorSamples_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportSampleQueriesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse.class, + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse.Builder.class); + } + + private int bitField0_; + public static final int ERROR_SAMPLES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List errorSamples_; + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List getErrorSamplesList() { + return errorSamples_; + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List getErrorSamplesOrBuilderList() { + return errorSamples_; + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public int getErrorSamplesCount() { + return errorSamples_.size(); + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.Status getErrorSamples(int index) { + return errorSamples_.get(index); + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + return errorSamples_.get(index); + } + + public static final int ERROR_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return Whether the errorConfig field is set. + */ + @java.lang.Override + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return The errorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < errorSamples_.size(); i++) { + output.writeMessage(1, errorSamples_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getErrorConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < errorSamples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errorSamples_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse other = + (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse) obj; + + if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (hasErrorConfig() != other.hasErrorConfig()) return false; + if (hasErrorConfig()) { + if (!getErrorConfig().equals(other.getErrorConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getErrorSamplesCount() > 0) { + hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getErrorSamplesList().hashCode(); + } + if (hasErrorConfig()) { + hash = (37 * hash) + ERROR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getErrorConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Response of the
      +   * [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ImportSampleQueries]
      +   * method. If the long running operation is done, this message is returned by
      +   * the google.longrunning.Operations.response field if the operation is
      +   * successful.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse) + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse.class, + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getErrorSamplesFieldBuilder(); + getErrorConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + } else { + errorSamples_ = null; + errorSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportSampleQueriesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse build() { + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse result = + new com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse result) { + if (errorSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.errorSamples_ = errorSamples_; + } else { + result.errorSamples_ = errorSamplesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorConfig_ = + errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse + .getDefaultInstance()) return this; + if (errorSamplesBuilder_ == null) { + if (!other.errorSamples_.isEmpty()) { + if (errorSamples_.isEmpty()) { + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureErrorSamplesIsMutable(); + errorSamples_.addAll(other.errorSamples_); + } + onChanged(); + } + } else { + if (!other.errorSamples_.isEmpty()) { + if (errorSamplesBuilder_.isEmpty()) { + errorSamplesBuilder_.dispose(); + errorSamplesBuilder_ = null; + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + errorSamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorSamplesFieldBuilder() + : null; + } else { + errorSamplesBuilder_.addAllMessages(other.errorSamples_); + } + } + } + if (other.hasErrorConfig()) { + mergeErrorConfig(other.getErrorConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(m); + } else { + errorSamplesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List errorSamples_ = java.util.Collections.emptyList(); + + private void ensureErrorSamplesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + errorSamples_ = new java.util.ArrayList(errorSamples_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorSamplesBuilder_; + + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesList() { + if (errorSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(errorSamples_); + } else { + return errorSamplesBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public int getErrorSamplesCount() { + if (errorSamplesBuilder_ == null) { + return errorSamples_.size(); + } else { + return errorSamplesBuilder_.getCount(); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status getErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, value); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addAllErrorSamples(java.lang.Iterable values) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); + onChanged(); + } else { + errorSamplesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder clearErrorSamples() { + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + errorSamplesBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder removeErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.remove(index); + onChanged(); + } else { + errorSamplesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesOrBuilderList() { + if (errorSamplesBuilder_ != null) { + return errorSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errorSamples_); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder() { + return getErrorSamplesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesBuilderList() { + return getErrorSamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorSamplesFieldBuilder() { + if (errorSamplesBuilder_ == null) { + errorSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errorSamples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errorSamples_ = null; + } + return errorSamplesBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> + errorConfigBuilder_; + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return Whether the errorConfig field is set. + */ + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return The errorConfig. + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { + if (errorConfigBuilder_ == null) { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } else { + return errorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public Builder setErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorConfig_ = value; + } else { + errorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder builderForValue) { + if (errorConfigBuilder_ == null) { + errorConfig_ = builderForValue.build(); + } else { + errorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public Builder mergeErrorConfig( + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && errorConfig_ != null + && errorConfig_ + != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) { + getErrorConfigBuilder().mergeFrom(value); + } else { + errorConfig_ = value; + } + } else { + errorConfigBuilder_.mergeFrom(value); + } + if (errorConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public Builder clearErrorConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder + getErrorConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getErrorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + if (errorConfigBuilder_ != null) { + return errorConfigBuilder_.getMessageOrBuilder(); + } else { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + } + /** + * + * + *
      +     * The desired location of errors incurred during the Import.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> + getErrorConfigFieldBuilder() { + if (errorConfigBuilder_ == null) { + errorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>( + getErrorConfig(), getParentForChildren(), isClean()); + errorConfig_ = null; + } + return errorConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse) + private static final com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportSampleQueriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesResponseOrBuilder.java new file mode 100644 index 000000000000..1b7b95c5d794 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportSampleQueriesResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ImportSampleQueriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + java.util.List getErrorSamplesList(); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + com.google.rpc.Status getErrorSamples(int index); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + int getErrorSamplesCount(); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + java.util.List getErrorSamplesOrBuilderList(); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 1; + */ + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); + + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return Whether the errorConfig field is set. + */ + boolean hasErrorConfig(); + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return The errorConfig. + */ + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig(); + /** + * + * + *
      +   * The desired location of errors incurred during the Import.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LanguageInfo.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LanguageInfo.java new file mode 100644 index 000000000000..861545956f3d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LanguageInfo.java @@ -0,0 +1,1204 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/data_store.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Language info for DataStore.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.LanguageInfo} + */ +public final class LanguageInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.LanguageInfo) + LanguageInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use LanguageInfo.newBuilder() to construct. + private LanguageInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LanguageInfo() { + languageCode_ = ""; + normalizedLanguageCode_ = ""; + language_ = ""; + region_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LanguageInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.LanguageInfo.class, + com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder.class); + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + /** + * + * + *
      +   * The language code for the DataStore.
      +   * 
      + * + * string language_code = 1; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
      +   * The language code for the DataStore.
      +   * 
      + * + * string language_code = 1; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NORMALIZED_LANGUAGE_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object normalizedLanguageCode_ = ""; + /** + * + * + *
      +   * Output only. This is the normalized form of language_code.
      +   * E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb`
      +   * will have normalized_language_code of `en-GB`.
      +   * 
      + * + * string normalized_language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The normalizedLanguageCode. + */ + @java.lang.Override + public java.lang.String getNormalizedLanguageCode() { + java.lang.Object ref = normalizedLanguageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + normalizedLanguageCode_ = s; + return s; + } + } + /** + * + * + *
      +   * Output only. This is the normalized form of language_code.
      +   * E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb`
      +   * will have normalized_language_code of `en-GB`.
      +   * 
      + * + * string normalized_language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for normalizedLanguageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNormalizedLanguageCodeBytes() { + java.lang.Object ref = normalizedLanguageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + normalizedLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object language_ = ""; + /** + * + * + *
      +   * Output only. Language part of normalized_language_code.
      +   * E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`.
      +   * 
      + * + * string language = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The language. + */ + @java.lang.Override + public java.lang.String getLanguage() { + java.lang.Object ref = language_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + language_ = s; + return s; + } + } + /** + * + * + *
      +   * Output only. Language part of normalized_language_code.
      +   * E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`.
      +   * 
      + * + * string language = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for language. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageBytes() { + java.lang.Object ref = language_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + language_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * + * + *
      +   * Output only. Region part of normalized_language_code, if present.
      +   * E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
      +   * 
      + * + * string region = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } + } + /** + * + * + *
      +   * Output only. Region part of normalized_language_code, if present.
      +   * E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
      +   * 
      + * + * string region = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(normalizedLanguageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, normalizedLanguageCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(language_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, language_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, region_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(normalizedLanguageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, normalizedLanguageCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(language_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, language_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, region_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.LanguageInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.LanguageInfo other = + (com.google.cloud.discoveryengine.v1beta.LanguageInfo) obj; + + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getNormalizedLanguageCode().equals(other.getNormalizedLanguageCode())) return false; + if (!getLanguage().equals(other.getLanguage())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (37 * hash) + NORMALIZED_LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getNormalizedLanguageCode().hashCode(); + hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + getLanguage().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.LanguageInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.LanguageInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.LanguageInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.LanguageInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.LanguageInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.LanguageInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.LanguageInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.LanguageInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.LanguageInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.LanguageInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.LanguageInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.LanguageInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.LanguageInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Language info for DataStore.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.LanguageInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.LanguageInfo) + com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.LanguageInfo.class, + com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.LanguageInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + languageCode_ = ""; + normalizedLanguageCode_ = ""; + language_ = ""; + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LanguageInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LanguageInfo build() { + com.google.cloud.discoveryengine.v1beta.LanguageInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LanguageInfo buildPartial() { + com.google.cloud.discoveryengine.v1beta.LanguageInfo result = + new com.google.cloud.discoveryengine.v1beta.LanguageInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.LanguageInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.normalizedLanguageCode_ = normalizedLanguageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.language_ = language_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.region_ = region_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.LanguageInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.LanguageInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.LanguageInfo other) { + if (other == com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance()) + return this; + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNormalizedLanguageCode().isEmpty()) { + normalizedLanguageCode_ = other.normalizedLanguageCode_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getLanguage().isEmpty()) { + language_ = other.language_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + normalizedLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + language_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
      +     * The language code for the DataStore.
      +     * 
      + * + * string language_code = 1; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * The language code for the DataStore.
      +     * 
      + * + * string language_code = 1; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * The language code for the DataStore.
      +     * 
      + * + * string language_code = 1; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * The language code for the DataStore.
      +     * 
      + * + * string language_code = 1; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * The language code for the DataStore.
      +     * 
      + * + * string language_code = 1; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object normalizedLanguageCode_ = ""; + /** + * + * + *
      +     * Output only. This is the normalized form of language_code.
      +     * E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb`
      +     * will have normalized_language_code of `en-GB`.
      +     * 
      + * + * string normalized_language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The normalizedLanguageCode. + */ + public java.lang.String getNormalizedLanguageCode() { + java.lang.Object ref = normalizedLanguageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + normalizedLanguageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Output only. This is the normalized form of language_code.
      +     * E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb`
      +     * will have normalized_language_code of `en-GB`.
      +     * 
      + * + * string normalized_language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for normalizedLanguageCode. + */ + public com.google.protobuf.ByteString getNormalizedLanguageCodeBytes() { + java.lang.Object ref = normalizedLanguageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + normalizedLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Output only. This is the normalized form of language_code.
      +     * E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb`
      +     * will have normalized_language_code of `en-GB`.
      +     * 
      + * + * string normalized_language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The normalizedLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setNormalizedLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + normalizedLanguageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. This is the normalized form of language_code.
      +     * E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb`
      +     * will have normalized_language_code of `en-GB`.
      +     * 
      + * + * string normalized_language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearNormalizedLanguageCode() { + normalizedLanguageCode_ = getDefaultInstance().getNormalizedLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. This is the normalized form of language_code.
      +     * E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb`
      +     * will have normalized_language_code of `en-GB`.
      +     * 
      + * + * string normalized_language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for normalizedLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setNormalizedLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + normalizedLanguageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object language_ = ""; + /** + * + * + *
      +     * Output only. Language part of normalized_language_code.
      +     * E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`.
      +     * 
      + * + * string language = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The language. + */ + public java.lang.String getLanguage() { + java.lang.Object ref = language_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + language_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Output only. Language part of normalized_language_code.
      +     * E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`.
      +     * 
      + * + * string language = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for language. + */ + public com.google.protobuf.ByteString getLanguageBytes() { + java.lang.Object ref = language_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + language_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Output only. Language part of normalized_language_code.
      +     * E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`.
      +     * 
      + * + * string language = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The language to set. + * @return This builder for chaining. + */ + public Builder setLanguage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + language_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Language part of normalized_language_code.
      +     * E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`.
      +     * 
      + * + * string language = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLanguage() { + language_ = getDefaultInstance().getLanguage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Language part of normalized_language_code.
      +     * E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`.
      +     * 
      + * + * string language = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for language to set. + * @return This builder for chaining. + */ + public Builder setLanguageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + language_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + /** + * + * + *
      +     * Output only. Region part of normalized_language_code, if present.
      +     * E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
      +     * 
      + * + * string region = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Output only. Region part of normalized_language_code, if present.
      +     * E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
      +     * 
      + * + * string region = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Output only. Region part of normalized_language_code, if present.
      +     * E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
      +     * 
      + * + * string region = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Region part of normalized_language_code, if present.
      +     * E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
      +     * 
      + * + * string region = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Region part of normalized_language_code, if present.
      +     * E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
      +     * 
      + * + * string region = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.LanguageInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.LanguageInfo) + private static final com.google.cloud.discoveryengine.v1beta.LanguageInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.LanguageInfo(); + } + + public static com.google.cloud.discoveryengine.v1beta.LanguageInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LanguageInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LanguageInfoOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LanguageInfoOrBuilder.java new file mode 100644 index 000000000000..2dd9a7c7f4bf --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LanguageInfoOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/data_store.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface LanguageInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.LanguageInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The language code for the DataStore.
      +   * 
      + * + * string language_code = 1; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + /** + * + * + *
      +   * The language code for the DataStore.
      +   * 
      + * + * string language_code = 1; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
      +   * Output only. This is the normalized form of language_code.
      +   * E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb`
      +   * will have normalized_language_code of `en-GB`.
      +   * 
      + * + * string normalized_language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The normalizedLanguageCode. + */ + java.lang.String getNormalizedLanguageCode(); + /** + * + * + *
      +   * Output only. This is the normalized form of language_code.
      +   * E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb`
      +   * will have normalized_language_code of `en-GB`.
      +   * 
      + * + * string normalized_language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for normalizedLanguageCode. + */ + com.google.protobuf.ByteString getNormalizedLanguageCodeBytes(); + + /** + * + * + *
      +   * Output only. Language part of normalized_language_code.
      +   * E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`.
      +   * 
      + * + * string language = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The language. + */ + java.lang.String getLanguage(); + /** + * + * + *
      +   * Output only. Language part of normalized_language_code.
      +   * E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`.
      +   * 
      + * + * string language = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for language. + */ + com.google.protobuf.ByteString getLanguageBytes(); + + /** + * + * + *
      +   * Output only. Region part of normalized_language_code, if present.
      +   * E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
      +   * 
      + * + * string region = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
      +   * Output only. Region part of normalized_language_code, if present.
      +   * E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
      +   * 
      + * + * string region = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsRequest.java new file mode 100644 index 000000000000..bf291f8d40d6 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsRequest.java @@ -0,0 +1,1044 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest} + */ +public final class ListEvaluationResultsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest) + ListEvaluationResultsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEvaluationResultsRequest.newBuilder() to construct. + private ListEvaluationResultsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEvaluationResultsRequest() { + evaluation_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEvaluationResultsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.Builder.class); + } + + public static final int EVALUATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object evaluation_ = ""; + /** + * + * + *
      +   * Required. The evaluation resource name, such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to list [EvaluationResult][]
      +   * under this evaluation, regardless of whether or not this evaluation
      +   * set exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The evaluation. + */ + @java.lang.Override + public java.lang.String getEvaluation() { + java.lang.Object ref = evaluation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + evaluation_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The evaluation resource name, such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to list [EvaluationResult][]
      +   * under this evaluation, regardless of whether or not this evaluation
      +   * set exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for evaluation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationBytes() { + java.lang.Object ref = evaluation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
      +   * Maximum number of [EvaluationResult][] to return. If unspecified,
      +   * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
      +   * be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(evaluation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, evaluation_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(evaluation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, evaluation_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest other = + (com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest) obj; + + if (!getEvaluation().equals(other.getEvaluation())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EVALUATION_FIELD_NUMBER; + hash = (53 * hash) + getEvaluation().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest) + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + evaluation_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest build() { + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest result = + new com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.evaluation_ = evaluation_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest + .getDefaultInstance()) return this; + if (!other.getEvaluation().isEmpty()) { + evaluation_ = other.evaluation_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + evaluation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object evaluation_ = ""; + /** + * + * + *
      +     * Required. The evaluation resource name, such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to list [EvaluationResult][]
      +     * under this evaluation, regardless of whether or not this evaluation
      +     * set exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The evaluation. + */ + public java.lang.String getEvaluation() { + java.lang.Object ref = evaluation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + evaluation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The evaluation resource name, such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to list [EvaluationResult][]
      +     * under this evaluation, regardless of whether or not this evaluation
      +     * set exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for evaluation. + */ + public com.google.protobuf.ByteString getEvaluationBytes() { + java.lang.Object ref = evaluation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The evaluation resource name, such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to list [EvaluationResult][]
      +     * under this evaluation, regardless of whether or not this evaluation
      +     * set exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The evaluation to set. + * @return This builder for chaining. + */ + public Builder setEvaluation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evaluation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The evaluation resource name, such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to list [EvaluationResult][]
      +     * under this evaluation, regardless of whether or not this evaluation
      +     * set exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEvaluation() { + evaluation_ = getDefaultInstance().getEvaluation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The evaluation resource name, such as
      +     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +     *
      +     * If the caller does not have permission to list [EvaluationResult][]
      +     * under this evaluation, regardless of whether or not this evaluation
      +     * set exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for evaluation to set. + * @return This builder for chaining. + */ + public Builder setEvaluationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evaluation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
      +     * Maximum number of [EvaluationResult][] to return. If unspecified,
      +     * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
      +     * be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
      +     * Maximum number of [EvaluationResult][] to return. If unspecified,
      +     * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
      +     * be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Maximum number of [EvaluationResult][] to return. If unspecified,
      +     * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
      +     * be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest) + private static final com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEvaluationResultsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsRequestOrBuilder.java new file mode 100644 index 000000000000..3e8c2d11c063 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ListEvaluationResultsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The evaluation resource name, such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to list [EvaluationResult][]
      +   * under this evaluation, regardless of whether or not this evaluation
      +   * set exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The evaluation. + */ + java.lang.String getEvaluation(); + /** + * + * + *
      +   * Required. The evaluation resource name, such as
      +   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
      +   *
      +   * If the caller does not have permission to list [EvaluationResult][]
      +   * under this evaluation, regardless of whether or not this evaluation
      +   * set exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string evaluation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for evaluation. + */ + com.google.protobuf.ByteString getEvaluationBytes(); + + /** + * + * + *
      +   * Maximum number of [EvaluationResult][] to return. If unspecified,
      +   * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
      +   * be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsResponse.java new file mode 100644 index 000000000000..1923940a834a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsResponse.java @@ -0,0 +1,2521 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Response message for
      + * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse} + */ +public final class ListEvaluationResultsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse) + ListEvaluationResultsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEvaluationResultsResponse.newBuilder() to construct. + private ListEvaluationResultsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEvaluationResultsResponse() { + evaluationResults_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEvaluationResultsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.Builder.class); + } + + public interface EvaluationResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Output only. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +     * evaluated.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sampleQuery field is set. + */ + boolean hasSampleQuery(); + /** + * + * + *
      +     * Output only. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +     * evaluated.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sampleQuery. + */ + com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQuery(); + /** + * + * + *
      +     * Output only. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +     * evaluated.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder getSampleQueryOrBuilder(); + + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, for a given
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the qualityMetrics field is set. + */ + boolean hasQualityMetrics(); + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, for a given
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The qualityMetrics. + */ + com.google.cloud.discoveryengine.v1beta.QualityMetrics getQualityMetrics(); + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, for a given
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.QualityMetricsOrBuilder getQualityMetricsOrBuilder(); + } + /** + * + * + *
      +   * Represents the results of an evaluation for a single
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +   * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult} + */ + public static final class EvaluationResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult) + EvaluationResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use EvaluationResult.newBuilder() to construct. + private EvaluationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvaluationResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvaluationResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsResponse_EvaluationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsResponse_EvaluationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + .class, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + .Builder.class); + } + + private int bitField0_; + public static final int SAMPLE_QUERY_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.SampleQuery sampleQuery_; + /** + * + * + *
      +     * Output only. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +     * evaluated.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sampleQuery field is set. + */ + @java.lang.Override + public boolean hasSampleQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * Output only. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +     * evaluated.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sampleQuery. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQuery() { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + /** + * + * + *
      +     * Output only. The
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +     * evaluated.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder getSampleQueryOrBuilder() { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + + public static final int QUALITY_METRICS_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.QualityMetrics qualityMetrics_; + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, for a given
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the qualityMetrics field is set. + */ + @java.lang.Override + public boolean hasQualityMetrics() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, for a given
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The qualityMetrics. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics getQualityMetrics() { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } + /** + * + * + *
      +     * Output only. The metrics produced by the evaluation, for a given
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetricsOrBuilder + getQualityMetricsOrBuilder() { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSampleQuery()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getQualityMetrics()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSampleQuery()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQualityMetrics()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult other = + (com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult) + obj; + + if (hasSampleQuery() != other.hasSampleQuery()) return false; + if (hasSampleQuery()) { + if (!getSampleQuery().equals(other.getSampleQuery())) return false; + } + if (hasQualityMetrics() != other.hasQualityMetrics()) return false; + if (hasQualityMetrics()) { + if (!getQualityMetrics().equals(other.getQualityMetrics())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSampleQuery()) { + hash = (37 * hash) + SAMPLE_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuery().hashCode(); + } + if (hasQualityMetrics()) { + hash = (37 * hash) + QUALITY_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getQualityMetrics().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Represents the results of an evaluation for a single
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult) + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsResponse_EvaluationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsResponse_EvaluationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult.class, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSampleQueryFieldBuilder(); + getQualityMetricsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sampleQuery_ = null; + if (sampleQueryBuilder_ != null) { + sampleQueryBuilder_.dispose(); + sampleQueryBuilder_ = null; + } + qualityMetrics_ = null; + if (qualityMetricsBuilder_ != null) { + qualityMetricsBuilder_.dispose(); + qualityMetricsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsResponse_EvaluationResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + build() { + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + result = + new com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sampleQuery_ = + sampleQueryBuilder_ == null ? sampleQuery_ : sampleQueryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.qualityMetrics_ = + qualityMetricsBuilder_ == null ? qualityMetrics_ : qualityMetricsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult.getDefaultInstance()) return this; + if (other.hasSampleQuery()) { + mergeSampleQuery(other.getSampleQuery()); + } + if (other.hasQualityMetrics()) { + mergeQualityMetrics(other.getQualityMetrics()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSampleQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getQualityMetricsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1beta.SampleQuery sampleQuery_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder> + sampleQueryBuilder_; + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sampleQuery field is set. + */ + public boolean hasSampleQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sampleQuery. + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQuery() { + if (sampleQueryBuilder_ == null) { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance() + : sampleQuery_; + } else { + return sampleQueryBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSampleQuery(com.google.cloud.discoveryengine.v1beta.SampleQuery value) { + if (sampleQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sampleQuery_ = value; + } else { + sampleQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSampleQuery( + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder builderForValue) { + if (sampleQueryBuilder_ == null) { + sampleQuery_ = builderForValue.build(); + } else { + sampleQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSampleQuery(com.google.cloud.discoveryengine.v1beta.SampleQuery value) { + if (sampleQueryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && sampleQuery_ != null + && sampleQuery_ + != com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance()) { + getSampleQueryBuilder().mergeFrom(value); + } else { + sampleQuery_ = value; + } + } else { + sampleQueryBuilder_.mergeFrom(value); + } + if (sampleQuery_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSampleQuery() { + bitField0_ = (bitField0_ & ~0x00000001); + sampleQuery_ = null; + if (sampleQueryBuilder_ != null) { + sampleQueryBuilder_.dispose(); + sampleQueryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder getSampleQueryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSampleQueryFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder + getSampleQueryOrBuilder() { + if (sampleQueryBuilder_ != null) { + return sampleQueryBuilder_.getMessageOrBuilder(); + } else { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + } + /** + * + * + *
      +       * Output only. The
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
      +       * evaluated.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder> + getSampleQueryFieldBuilder() { + if (sampleQueryBuilder_ == null) { + sampleQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder>( + getSampleQuery(), getParentForChildren(), isClean()); + sampleQuery_ = null; + } + return sampleQueryBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.QualityMetrics qualityMetrics_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetricsOrBuilder> + qualityMetricsBuilder_; + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the qualityMetrics field is set. + */ + public boolean hasQualityMetrics() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The qualityMetrics. + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics getQualityMetrics() { + if (qualityMetricsBuilder_ == null) { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } else { + return qualityMetricsBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQualityMetrics( + com.google.cloud.discoveryengine.v1beta.QualityMetrics value) { + if (qualityMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + qualityMetrics_ = value; + } else { + qualityMetricsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQualityMetrics( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.Builder builderForValue) { + if (qualityMetricsBuilder_ == null) { + qualityMetrics_ = builderForValue.build(); + } else { + qualityMetricsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeQualityMetrics( + com.google.cloud.discoveryengine.v1beta.QualityMetrics value) { + if (qualityMetricsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && qualityMetrics_ != null + && qualityMetrics_ + != com.google.cloud.discoveryengine.v1beta.QualityMetrics.getDefaultInstance()) { + getQualityMetricsBuilder().mergeFrom(value); + } else { + qualityMetrics_ = value; + } + } else { + qualityMetricsBuilder_.mergeFrom(value); + } + if (qualityMetrics_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearQualityMetrics() { + bitField0_ = (bitField0_ & ~0x00000002); + qualityMetrics_ = null; + if (qualityMetricsBuilder_ != null) { + qualityMetricsBuilder_.dispose(); + qualityMetricsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.Builder + getQualityMetricsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getQualityMetricsFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetricsOrBuilder + getQualityMetricsOrBuilder() { + if (qualityMetricsBuilder_ != null) { + return qualityMetricsBuilder_.getMessageOrBuilder(); + } else { + return qualityMetrics_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.getDefaultInstance() + : qualityMetrics_; + } + } + /** + * + * + *
      +       * Output only. The metrics produced by the evaluation, for a given
      +       * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics quality_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetricsOrBuilder> + getQualityMetricsFieldBuilder() { + if (qualityMetricsBuilder_ == null) { + qualityMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetricsOrBuilder>( + getQualityMetrics(), getParentForChildren(), isClean()); + qualityMetrics_ = null; + } + return qualityMetricsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult) + private static final com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int EVALUATION_RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult> + evaluationResults_; + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult> + getEvaluationResultsList() { + return evaluationResults_; + } + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResultOrBuilder> + getEvaluationResultsOrBuilderList() { + return evaluationResults_; + } + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + @java.lang.Override + public int getEvaluationResultsCount() { + return evaluationResults_.size(); + } + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + getEvaluationResults(int index) { + return evaluationResults_.get(index); + } + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResultOrBuilder + getEvaluationResultsOrBuilder(int index) { + return evaluationResults_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < evaluationResults_.size(); i++) { + output.writeMessage(1, evaluationResults_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < evaluationResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, evaluationResults_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse other = + (com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse) obj; + + if (!getEvaluationResultsList().equals(other.getEvaluationResultsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEvaluationResultsCount() > 0) { + hash = (37 * hash) + EVALUATION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationResultsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Response message for
      +   * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse) + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (evaluationResultsBuilder_ == null) { + evaluationResults_ = java.util.Collections.emptyList(); + } else { + evaluationResults_ = null; + evaluationResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationResultsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse build() { + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse result = + new com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse result) { + if (evaluationResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + evaluationResults_ = java.util.Collections.unmodifiableList(evaluationResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.evaluationResults_ = evaluationResults_; + } else { + result.evaluationResults_ = evaluationResultsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .getDefaultInstance()) return this; + if (evaluationResultsBuilder_ == null) { + if (!other.evaluationResults_.isEmpty()) { + if (evaluationResults_.isEmpty()) { + evaluationResults_ = other.evaluationResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEvaluationResultsIsMutable(); + evaluationResults_.addAll(other.evaluationResults_); + } + onChanged(); + } + } else { + if (!other.evaluationResults_.isEmpty()) { + if (evaluationResultsBuilder_.isEmpty()) { + evaluationResultsBuilder_.dispose(); + evaluationResultsBuilder_ = null; + evaluationResults_ = other.evaluationResults_; + bitField0_ = (bitField0_ & ~0x00000001); + evaluationResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEvaluationResultsFieldBuilder() + : null; + } else { + evaluationResultsBuilder_.addAllMessages(other.evaluationResults_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult.parser(), + extensionRegistry); + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(m); + } else { + evaluationResultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult> + evaluationResults_ = java.util.Collections.emptyList(); + + private void ensureEvaluationResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + evaluationResults_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult>(evaluationResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + .Builder, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResultOrBuilder> + evaluationResultsBuilder_; + + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult> + getEvaluationResultsList() { + if (evaluationResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(evaluationResults_); + } else { + return evaluationResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public int getEvaluationResultsCount() { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.size(); + } else { + return evaluationResultsBuilder_.getCount(); + } + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + getEvaluationResults(int index) { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.get(index); + } else { + return evaluationResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder setEvaluationResults( + int index, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.set(index, value); + onChanged(); + } else { + evaluationResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder setEvaluationResults( + int index, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + .Builder + builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.set(index, builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder addEvaluationResults( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(value); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder addEvaluationResults( + int index, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(index, value); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder addEvaluationResults( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + .Builder + builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder addEvaluationResults( + int index, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + .Builder + builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(index, builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder addAllEvaluationResults( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult> + values) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluationResults_); + onChanged(); + } else { + evaluationResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder clearEvaluationResults() { + if (evaluationResultsBuilder_ == null) { + evaluationResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + evaluationResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public Builder removeEvaluationResults(int index) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.remove(index); + onChanged(); + } else { + evaluationResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + .Builder + getEvaluationResultsBuilder(int index) { + return getEvaluationResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResultOrBuilder + getEvaluationResultsOrBuilder(int index) { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.get(index); + } else { + return evaluationResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResultOrBuilder> + getEvaluationResultsOrBuilderList() { + if (evaluationResultsBuilder_ != null) { + return evaluationResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(evaluationResults_); + } + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + .Builder + addEvaluationResultsBuilder() { + return getEvaluationResultsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + .getDefaultInstance()); + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + .Builder + addEvaluationResultsBuilder(int index) { + return getEvaluationResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + .getDefaultInstance()); + } + /** + * + * + *
      +     * The
      +     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + .Builder> + getEvaluationResultsBuilderList() { + return getEvaluationResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + .Builder, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResultOrBuilder> + getEvaluationResultsFieldBuilder() { + if (evaluationResultsBuilder_ == null) { + evaluationResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResult.Builder, + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResultOrBuilder>( + evaluationResults_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + return evaluationResultsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse) + private static final com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEvaluationResultsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsResponseOrBuilder.java new file mode 100644 index 000000000000..6520d1ec62c5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsResponseOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ListEvaluationResultsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult> + getEvaluationResultsList(); + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult + getEvaluationResults(int index); + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + int getEvaluationResultsCount(); + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse + .EvaluationResultOrBuilder> + getEvaluationResultsOrBuilderList(); + /** + * + * + *
      +   * The
      +   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
      +   * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult evaluation_results = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResultOrBuilder + getEvaluationResultsOrBuilder(int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsRequest.java new file mode 100644 index 000000000000..c25609557d1f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsRequest.java @@ -0,0 +1,1050 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListEvaluationsRequest} + */ +public final class ListEvaluationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListEvaluationsRequest) + ListEvaluationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEvaluationsRequest.newBuilder() to construct. + private ListEvaluationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEvaluationsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEvaluationsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s under this
      +   * location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s under this
      +   * location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
      +   * Maximum number of
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s to return. If
      +   * unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +   * above 1000 will be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest other = + (com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListEvaluationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListEvaluationsRequest) + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest build() { + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest result = + new com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s under this
      +     * location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s under this
      +     * location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s under this
      +     * location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s under this
      +     * location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s under this
      +     * location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
      +     * Maximum number of
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s to return. If
      +     * unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +     * above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
      +     * Maximum number of
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s to return. If
      +     * unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +     * above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Maximum number of
      +     * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s to return. If
      +     * unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +     * above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
      +     * received from a previous
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListEvaluationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListEvaluationsRequest) + private static final com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEvaluationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsRequestOrBuilder.java new file mode 100644 index 000000000000..edc6ca188481 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ListEvaluationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListEvaluationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s under this
      +   * location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s under this
      +   * location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Maximum number of
      +   * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s to return. If
      +   * unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +   * above 1000 will be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
      +   * A page token
      +   * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
      +   * received from a previous
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsResponse.java new file mode 100644 index 000000000000..13b04ad40488 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsResponse.java @@ -0,0 +1,1162 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Response message for
      + * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListEvaluationsResponse} + */ +public final class ListEvaluationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListEvaluationsResponse) + ListEvaluationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEvaluationsResponse.newBuilder() to construct. + private ListEvaluationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEvaluationsResponse() { + evaluations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEvaluationsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.Builder.class); + } + + public static final int EVALUATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List evaluations_; + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + @java.lang.Override + public java.util.List getEvaluationsList() { + return evaluations_; + } + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + @java.lang.Override + public java.util.List + getEvaluationsOrBuilderList() { + return evaluations_; + } + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + @java.lang.Override + public int getEvaluationsCount() { + return evaluations_.size(); + } + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Evaluation getEvaluations(int index) { + return evaluations_.get(index); + } + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.EvaluationOrBuilder getEvaluationsOrBuilder( + int index) { + return evaluations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < evaluations_.size(); i++) { + output.writeMessage(1, evaluations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < evaluations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, evaluations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse other = + (com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse) obj; + + if (!getEvaluationsList().equals(other.getEvaluationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEvaluationsCount() > 0) { + hash = (37 * hash) + EVALUATIONS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Response message for
      +   * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListEvaluationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListEvaluationsResponse) + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (evaluationsBuilder_ == null) { + evaluations_ = java.util.Collections.emptyList(); + } else { + evaluations_ = null; + evaluationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EvaluationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListEvaluationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse build() { + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse result = + new com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse result) { + if (evaluationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + evaluations_ = java.util.Collections.unmodifiableList(evaluations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.evaluations_ = evaluations_; + } else { + result.evaluations_ = evaluationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.getDefaultInstance()) + return this; + if (evaluationsBuilder_ == null) { + if (!other.evaluations_.isEmpty()) { + if (evaluations_.isEmpty()) { + evaluations_ = other.evaluations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEvaluationsIsMutable(); + evaluations_.addAll(other.evaluations_); + } + onChanged(); + } + } else { + if (!other.evaluations_.isEmpty()) { + if (evaluationsBuilder_.isEmpty()) { + evaluationsBuilder_.dispose(); + evaluationsBuilder_ = null; + evaluations_ = other.evaluations_; + bitField0_ = (bitField0_ & ~0x00000001); + evaluationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEvaluationsFieldBuilder() + : null; + } else { + evaluationsBuilder_.addAllMessages(other.evaluations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1beta.Evaluation m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Evaluation.parser(), + extensionRegistry); + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.add(m); + } else { + evaluationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List evaluations_ = + java.util.Collections.emptyList(); + + private void ensureEvaluationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + evaluations_ = + new java.util.ArrayList( + evaluations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Evaluation, + com.google.cloud.discoveryengine.v1beta.Evaluation.Builder, + com.google.cloud.discoveryengine.v1beta.EvaluationOrBuilder> + evaluationsBuilder_; + + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public java.util.List getEvaluationsList() { + if (evaluationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(evaluations_); + } else { + return evaluationsBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public int getEvaluationsCount() { + if (evaluationsBuilder_ == null) { + return evaluations_.size(); + } else { + return evaluationsBuilder_.getCount(); + } + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Evaluation getEvaluations(int index) { + if (evaluationsBuilder_ == null) { + return evaluations_.get(index); + } else { + return evaluationsBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public Builder setEvaluations( + int index, com.google.cloud.discoveryengine.v1beta.Evaluation value) { + if (evaluationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationsIsMutable(); + evaluations_.set(index, value); + onChanged(); + } else { + evaluationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public Builder setEvaluations( + int index, com.google.cloud.discoveryengine.v1beta.Evaluation.Builder builderForValue) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.set(index, builderForValue.build()); + onChanged(); + } else { + evaluationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public Builder addEvaluations(com.google.cloud.discoveryengine.v1beta.Evaluation value) { + if (evaluationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationsIsMutable(); + evaluations_.add(value); + onChanged(); + } else { + evaluationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public Builder addEvaluations( + int index, com.google.cloud.discoveryengine.v1beta.Evaluation value) { + if (evaluationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationsIsMutable(); + evaluations_.add(index, value); + onChanged(); + } else { + evaluationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public Builder addEvaluations( + com.google.cloud.discoveryengine.v1beta.Evaluation.Builder builderForValue) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.add(builderForValue.build()); + onChanged(); + } else { + evaluationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public Builder addEvaluations( + int index, com.google.cloud.discoveryengine.v1beta.Evaluation.Builder builderForValue) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.add(index, builderForValue.build()); + onChanged(); + } else { + evaluationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public Builder addAllEvaluations( + java.lang.Iterable values) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluations_); + onChanged(); + } else { + evaluationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public Builder clearEvaluations() { + if (evaluationsBuilder_ == null) { + evaluations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + evaluationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public Builder removeEvaluations(int index) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.remove(index); + onChanged(); + } else { + evaluationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Evaluation.Builder getEvaluationsBuilder( + int index) { + return getEvaluationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public com.google.cloud.discoveryengine.v1beta.EvaluationOrBuilder getEvaluationsOrBuilder( + int index) { + if (evaluationsBuilder_ == null) { + return evaluations_.get(index); + } else { + return evaluationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public java.util.List + getEvaluationsOrBuilderList() { + if (evaluationsBuilder_ != null) { + return evaluationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(evaluations_); + } + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Evaluation.Builder addEvaluationsBuilder() { + return getEvaluationsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.Evaluation.getDefaultInstance()); + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Evaluation.Builder addEvaluationsBuilder( + int index) { + return getEvaluationsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.Evaluation.getDefaultInstance()); + } + /** + * + * + *
      +     * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + public java.util.List + getEvaluationsBuilderList() { + return getEvaluationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Evaluation, + com.google.cloud.discoveryengine.v1beta.Evaluation.Builder, + com.google.cloud.discoveryengine.v1beta.EvaluationOrBuilder> + getEvaluationsFieldBuilder() { + if (evaluationsBuilder_ == null) { + evaluationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Evaluation, + com.google.cloud.discoveryengine.v1beta.Evaluation.Builder, + com.google.cloud.discoveryengine.v1beta.EvaluationOrBuilder>( + evaluations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + evaluations_ = null; + } + return evaluationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListEvaluationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListEvaluationsResponse) + private static final com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEvaluationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsResponseOrBuilder.java new file mode 100644 index 000000000000..d1324b553c24 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsResponseOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ListEvaluationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListEvaluationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + java.util.List getEvaluationsList(); + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + com.google.cloud.discoveryengine.v1beta.Evaluation getEvaluations(int index); + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + int getEvaluationsCount(); + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + java.util.List + getEvaluationsOrBuilderList(); + /** + * + * + *
      +   * The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.Evaluation evaluations = 1; + */ + com.google.cloud.discoveryengine.v1beta.EvaluationOrBuilder getEvaluationsOrBuilder(int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQueriesRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQueriesRequest.java new file mode 100644 index 000000000000..a6dd37347879 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQueriesRequest.java @@ -0,0 +1,1051 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest} + */ +public final class ListSampleQueriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest) + ListSampleQueriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSampleQueriesRequest.newBuilder() to construct. + private ListSampleQueriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSampleQueriesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSampleQueriesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.class, + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
      +   * Maximum number of
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to return.
      +   * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +   * above 1000 will be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
      +   * A page token
      +   * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A page token
      +   * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest other = + (com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest) + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.class, + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest build() { + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest result = + new com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent sample query set resource name, such as
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +     * sample query set, regardless of whether or not this sample query set
      +     * exists, a `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
      +     * Maximum number of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to return.
      +     * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +     * above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
      +     * Maximum number of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to return.
      +     * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +     * above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Maximum number of
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to return.
      +     * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +     * above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
      +     * A page token
      +     * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest) + private static final com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSampleQueriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQueriesRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQueriesRequestOrBuilder.java new file mode 100644 index 000000000000..670d7743dcca --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQueriesRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ListSampleQueriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent sample query set resource name, such as
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
      +   * sample query set, regardless of whether or not this sample query set
      +   * exists, a `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Maximum number of
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to return.
      +   * If unspecified, defaults to 100. The maximum allowed value is 1000. Values
      +   * above 1000 will be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * A page token
      +   * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
      +   * A page token
      +   * [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQueriesResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQueriesResponse.java new file mode 100644 index 000000000000..9de15162fdd7 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQueriesResponse.java @@ -0,0 +1,1169 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Response message for
      + * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse} + */ +public final class ListSampleQueriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse) + ListSampleQueriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSampleQueriesResponse.newBuilder() to construct. + private ListSampleQueriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSampleQueriesResponse() { + sampleQueries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSampleQueriesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.class, + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.Builder.class); + } + + public static final int SAMPLE_QUERIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List sampleQueries_; + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + @java.lang.Override + public java.util.List + getSampleQueriesList() { + return sampleQueries_; + } + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + @java.lang.Override + public java.util.List + getSampleQueriesOrBuilderList() { + return sampleQueries_; + } + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + @java.lang.Override + public int getSampleQueriesCount() { + return sampleQueries_.size(); + } + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQueries(int index) { + return sampleQueries_.get(index); + } + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder getSampleQueriesOrBuilder( + int index) { + return sampleQueries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < sampleQueries_.size(); i++) { + output.writeMessage(1, sampleQueries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sampleQueries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sampleQueries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse other = + (com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse) obj; + + if (!getSampleQueriesList().equals(other.getSampleQueriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSampleQueriesCount() > 0) { + hash = (37 * hash) + SAMPLE_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getSampleQueriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Response message for
      +   * [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse) + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.class, + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sampleQueriesBuilder_ == null) { + sampleQueries_ = java.util.Collections.emptyList(); + } else { + sampleQueries_ = null; + sampleQueriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse build() { + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse result = + new com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse result) { + if (sampleQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sampleQueries_ = java.util.Collections.unmodifiableList(sampleQueries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sampleQueries_ = sampleQueries_; + } else { + result.sampleQueries_ = sampleQueriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.getDefaultInstance()) + return this; + if (sampleQueriesBuilder_ == null) { + if (!other.sampleQueries_.isEmpty()) { + if (sampleQueries_.isEmpty()) { + sampleQueries_ = other.sampleQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSampleQueriesIsMutable(); + sampleQueries_.addAll(other.sampleQueries_); + } + onChanged(); + } + } else { + if (!other.sampleQueries_.isEmpty()) { + if (sampleQueriesBuilder_.isEmpty()) { + sampleQueriesBuilder_.dispose(); + sampleQueriesBuilder_ = null; + sampleQueries_ = other.sampleQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + sampleQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSampleQueriesFieldBuilder() + : null; + } else { + sampleQueriesBuilder_.addAllMessages(other.sampleQueries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1beta.SampleQuery m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SampleQuery.parser(), + extensionRegistry); + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.add(m); + } else { + sampleQueriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List sampleQueries_ = + java.util.Collections.emptyList(); + + private void ensureSampleQueriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sampleQueries_ = + new java.util.ArrayList( + sampleQueries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder> + sampleQueriesBuilder_; + + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public java.util.List + getSampleQueriesList() { + if (sampleQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sampleQueries_); + } else { + return sampleQueriesBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public int getSampleQueriesCount() { + if (sampleQueriesBuilder_ == null) { + return sampleQueries_.size(); + } else { + return sampleQueriesBuilder_.getCount(); + } + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQueries(int index) { + if (sampleQueriesBuilder_ == null) { + return sampleQueries_.get(index); + } else { + return sampleQueriesBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public Builder setSampleQueries( + int index, com.google.cloud.discoveryengine.v1beta.SampleQuery value) { + if (sampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQueriesIsMutable(); + sampleQueries_.set(index, value); + onChanged(); + } else { + sampleQueriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public Builder setSampleQueries( + int index, com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder builderForValue) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + sampleQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public Builder addSampleQueries(com.google.cloud.discoveryengine.v1beta.SampleQuery value) { + if (sampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQueriesIsMutable(); + sampleQueries_.add(value); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public Builder addSampleQueries( + int index, com.google.cloud.discoveryengine.v1beta.SampleQuery value) { + if (sampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQueriesIsMutable(); + sampleQueries_.add(index, value); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public Builder addSampleQueries( + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder builderForValue) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.add(builderForValue.build()); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public Builder addSampleQueries( + int index, com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder builderForValue) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + sampleQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public Builder addAllSampleQueries( + java.lang.Iterable values) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sampleQueries_); + onChanged(); + } else { + sampleQueriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public Builder clearSampleQueries() { + if (sampleQueriesBuilder_ == null) { + sampleQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sampleQueriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public Builder removeSampleQueries(int index) { + if (sampleQueriesBuilder_ == null) { + ensureSampleQueriesIsMutable(); + sampleQueries_.remove(index); + onChanged(); + } else { + sampleQueriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder getSampleQueriesBuilder( + int index) { + return getSampleQueriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder getSampleQueriesOrBuilder( + int index) { + if (sampleQueriesBuilder_ == null) { + return sampleQueries_.get(index); + } else { + return sampleQueriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public java.util.List + getSampleQueriesOrBuilderList() { + if (sampleQueriesBuilder_ != null) { + return sampleQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sampleQueries_); + } + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder addSampleQueriesBuilder() { + return getSampleQueriesFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance()); + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder addSampleQueriesBuilder( + int index) { + return getSampleQueriesFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance()); + } + /** + * + * + *
      +     * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + public java.util.List + getSampleQueriesBuilderList() { + return getSampleQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder> + getSampleQueriesFieldBuilder() { + if (sampleQueriesBuilder_ == null) { + sampleQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder>( + sampleQueries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sampleQueries_ = null; + } + return sampleQueriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse) + private static final com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSampleQueriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQueriesResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQueriesResponseOrBuilder.java new file mode 100644 index 000000000000..7c2c5114b840 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQueriesResponseOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ListSampleQueriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + java.util.List getSampleQueriesList(); + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQueries(int index); + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + int getSampleQueriesCount(); + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + java.util.List + getSampleQueriesOrBuilderList(); + /** + * + * + *
      +   * The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1; + */ + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder getSampleQueriesOrBuilder(int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQuerySetsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQuerySetsRequest.java new file mode 100644 index 000000000000..fc65a69ee4a0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQuerySetsRequest.java @@ -0,0 +1,1055 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest} + */ +public final class ListSampleQuerySetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest) + ListSampleQuerySetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSampleQuerySetsRequest.newBuilder() to construct. + private ListSampleQuerySetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSampleQuerySetsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSampleQuerySetsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s under
      +   * this location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s under
      +   * this location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
      +   * Maximum number of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s to
      +   * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
      +   * Values above 1000 will be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
      +   * A page token
      +   * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A page token
      +   * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest other = + (com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest) + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest build() { + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest result = + new com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s under
      +     * this location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s under
      +     * this location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s under
      +     * this location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s under
      +     * this location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent location resource name, such as
      +     * `projects/{project}/locations/{location}`.
      +     *
      +     * If the caller does not have permission to list
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s under
      +     * this location, regardless of whether or not this location exists, a
      +     * `PERMISSION_DENIED` error is returned.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
      +     * Maximum number of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s to
      +     * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
      +     * Values above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
      +     * Maximum number of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s to
      +     * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
      +     * Values above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Maximum number of
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s to
      +     * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
      +     * Values above 1000 will be coerced to 1000.
      +     *
      +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
      +     * A page token
      +     * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * A page token
      +     * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.next_page_token],
      +     * received from a previous
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +     * call. Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to
      +     * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +     * must match the call that provided the page token. Otherwise, an
      +     * `INVALID_ARGUMENT` error is returned.
      +     * 
      + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest) + private static final com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSampleQuerySetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQuerySetsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQuerySetsRequestOrBuilder.java new file mode 100644 index 000000000000..57b1d468308c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQuerySetsRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ListSampleQuerySetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s under
      +   * this location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent location resource name, such as
      +   * `projects/{project}/locations/{location}`.
      +   *
      +   * If the caller does not have permission to list
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s under
      +   * this location, regardless of whether or not this location exists, a
      +   * `PERMISSION_DENIED` error is returned.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Maximum number of
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s to
      +   * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
      +   * Values above 1000 will be coerced to 1000.
      +   *
      +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * A page token
      +   * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
      +   * A page token
      +   * [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.next_page_token],
      +   * received from a previous
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +   * call. Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +   * must match the call that provided the page token. Otherwise, an
      +   * `INVALID_ARGUMENT` error is returned.
      +   * 
      + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQuerySetsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQuerySetsResponse.java new file mode 100644 index 000000000000..7db25cf363ba --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQuerySetsResponse.java @@ -0,0 +1,1197 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Response message for
      + * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse} + */ +public final class ListSampleQuerySetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse) + ListSampleQuerySetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSampleQuerySetsResponse.newBuilder() to construct. + private ListSampleQuerySetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSampleQuerySetsResponse() { + sampleQuerySets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSampleQuerySetsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.Builder.class); + } + + public static final int SAMPLE_QUERY_SETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List sampleQuerySets_; + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + @java.lang.Override + public java.util.List + getSampleQuerySetsList() { + return sampleQuerySets_; + } + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + @java.lang.Override + public java.util.List + getSampleQuerySetsOrBuilderList() { + return sampleQuerySets_; + } + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + @java.lang.Override + public int getSampleQuerySetsCount() { + return sampleQuerySets_.size(); + } + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet getSampleQuerySets(int index) { + return sampleQuerySets_.get(index); + } + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder + getSampleQuerySetsOrBuilder(int index) { + return sampleQuerySets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < sampleQuerySets_.size(); i++) { + output.writeMessage(1, sampleQuerySets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sampleQuerySets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sampleQuerySets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse other = + (com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse) obj; + + if (!getSampleQuerySetsList().equals(other.getSampleQuerySetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSampleQuerySetsCount() > 0) { + hash = (37 * hash) + SAMPLE_QUERY_SETS_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuerySetsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Response message for
      +   * [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse) + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sampleQuerySetsBuilder_ == null) { + sampleQuerySets_ = java.util.Collections.emptyList(); + } else { + sampleQuerySets_ = null; + sampleQuerySetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse build() { + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse result = + new com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse result) { + if (sampleQuerySetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sampleQuerySets_ = java.util.Collections.unmodifiableList(sampleQuerySets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sampleQuerySets_ = sampleQuerySets_; + } else { + result.sampleQuerySets_ = sampleQuerySetsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse + .getDefaultInstance()) return this; + if (sampleQuerySetsBuilder_ == null) { + if (!other.sampleQuerySets_.isEmpty()) { + if (sampleQuerySets_.isEmpty()) { + sampleQuerySets_ = other.sampleQuerySets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.addAll(other.sampleQuerySets_); + } + onChanged(); + } + } else { + if (!other.sampleQuerySets_.isEmpty()) { + if (sampleQuerySetsBuilder_.isEmpty()) { + sampleQuerySetsBuilder_.dispose(); + sampleQuerySetsBuilder_ = null; + sampleQuerySets_ = other.sampleQuerySets_; + bitField0_ = (bitField0_ & ~0x00000001); + sampleQuerySetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSampleQuerySetsFieldBuilder() + : null; + } else { + sampleQuerySetsBuilder_.addAllMessages(other.sampleQuerySets_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1beta.SampleQuerySet m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.parser(), + extensionRegistry); + if (sampleQuerySetsBuilder_ == null) { + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.add(m); + } else { + sampleQuerySetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + sampleQuerySets_ = java.util.Collections.emptyList(); + + private void ensureSampleQuerySetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sampleQuerySets_ = + new java.util.ArrayList( + sampleQuerySets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuerySet, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder> + sampleQuerySetsBuilder_; + + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public java.util.List + getSampleQuerySetsList() { + if (sampleQuerySetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sampleQuerySets_); + } else { + return sampleQuerySetsBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public int getSampleQuerySetsCount() { + if (sampleQuerySetsBuilder_ == null) { + return sampleQuerySets_.size(); + } else { + return sampleQuerySetsBuilder_.getCount(); + } + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet getSampleQuerySets(int index) { + if (sampleQuerySetsBuilder_ == null) { + return sampleQuerySets_.get(index); + } else { + return sampleQuerySetsBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder setSampleQuerySets( + int index, com.google.cloud.discoveryengine.v1beta.SampleQuerySet value) { + if (sampleQuerySetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.set(index, value); + onChanged(); + } else { + sampleQuerySetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder setSampleQuerySets( + int index, com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder builderForValue) { + if (sampleQuerySetsBuilder_ == null) { + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.set(index, builderForValue.build()); + onChanged(); + } else { + sampleQuerySetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder addSampleQuerySets( + com.google.cloud.discoveryengine.v1beta.SampleQuerySet value) { + if (sampleQuerySetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.add(value); + onChanged(); + } else { + sampleQuerySetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder addSampleQuerySets( + int index, com.google.cloud.discoveryengine.v1beta.SampleQuerySet value) { + if (sampleQuerySetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.add(index, value); + onChanged(); + } else { + sampleQuerySetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder addSampleQuerySets( + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder builderForValue) { + if (sampleQuerySetsBuilder_ == null) { + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.add(builderForValue.build()); + onChanged(); + } else { + sampleQuerySetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder addSampleQuerySets( + int index, com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder builderForValue) { + if (sampleQuerySetsBuilder_ == null) { + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.add(index, builderForValue.build()); + onChanged(); + } else { + sampleQuerySetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder addAllSampleQuerySets( + java.lang.Iterable + values) { + if (sampleQuerySetsBuilder_ == null) { + ensureSampleQuerySetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sampleQuerySets_); + onChanged(); + } else { + sampleQuerySetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder clearSampleQuerySets() { + if (sampleQuerySetsBuilder_ == null) { + sampleQuerySets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sampleQuerySetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public Builder removeSampleQuerySets(int index) { + if (sampleQuerySetsBuilder_ == null) { + ensureSampleQuerySetsIsMutable(); + sampleQuerySets_.remove(index); + onChanged(); + } else { + sampleQuerySetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder getSampleQuerySetsBuilder( + int index) { + return getSampleQuerySetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder + getSampleQuerySetsOrBuilder(int index) { + if (sampleQuerySetsBuilder_ == null) { + return sampleQuerySets_.get(index); + } else { + return sampleQuerySetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public java.util.List + getSampleQuerySetsOrBuilderList() { + if (sampleQuerySetsBuilder_ != null) { + return sampleQuerySetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sampleQuerySets_); + } + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder + addSampleQuerySetsBuilder() { + return getSampleQuerySetsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.SampleQuerySet.getDefaultInstance()); + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder addSampleQuerySetsBuilder( + int index) { + return getSampleQuerySetsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.SampleQuerySet.getDefaultInstance()); + } + /** + * + * + *
      +     * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +     * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + public java.util.List + getSampleQuerySetsBuilderList() { + return getSampleQuerySetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuerySet, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder> + getSampleQuerySetsFieldBuilder() { + if (sampleQuerySetsBuilder_ == null) { + sampleQuerySetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuerySet, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder>( + sampleQuerySets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sampleQuerySets_ = null; + } + return sampleQuerySetsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.page_token]
      +     * to retrieve the next page. If this field is omitted, there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse) + private static final com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSampleQuerySetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQuerySetsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQuerySetsResponseOrBuilder.java new file mode 100644 index 000000000000..4c48dcb674f2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSampleQuerySetsResponseOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface ListSampleQuerySetsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + java.util.List getSampleQuerySetsList(); + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.SampleQuerySet getSampleQuerySets(int index); + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + int getSampleQuerySetsCount(); + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + java.util.List + getSampleQuerySetsOrBuilderList(); + /** + * + * + *
      +   * The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder getSampleQuerySetsOrBuilder( + int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.page_token]
      +   * to retrieve the next page. If this field is omitted, there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LocationName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LocationName.java new file mode 100644 index 000000000000..692e2f6944d2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsMetadata.java new file mode 100644 index 000000000000..6147fdb107bc --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsMetadata.java @@ -0,0 +1,1022 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Metadata related to the progress of the PurgeCompletionSuggestions
      + * operation. This is returned by the google.longrunning.Operation.metadata
      + * field.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata} + */ +public final class PurgeCompletionSuggestionsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata) + PurgeCompletionSuggestionsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeCompletionSuggestionsMetadata.newBuilder() to construct. + private PurgeCompletionSuggestionsMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeCompletionSuggestionsMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeCompletionSuggestionsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata.class, + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata.Builder + .class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata other = + (com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Metadata related to the progress of the PurgeCompletionSuggestions
      +   * operation. This is returned by the google.longrunning.Operation.metadata
      +   * field.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata) + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata.class, + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata build() { + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata result = + new com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + .getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata) + private static final com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeCompletionSuggestionsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsMetadataOrBuilder.java new file mode 100644 index 000000000000..502f83fcf3fa --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsMetadataOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface PurgeCompletionSuggestionsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsRequest.java new file mode 100644 index 000000000000..e4aaf620e101 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsRequest.java @@ -0,0 +1,677 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [CompletionService.PurgeCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.PurgeCompletionSuggestions]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest} + */ +public final class PurgeCompletionSuggestionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest) + PurgeCompletionSuggestionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeCompletionSuggestionsRequest.newBuilder() to construct. + private PurgeCompletionSuggestionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeCompletionSuggestionsRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeCompletionSuggestionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest.class, + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The parent data store resource name for which to purge completion
      +   * suggestions. Follows pattern
      +   * projects/*/locations/*/collections/*/dataStores/*.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The parent data store resource name for which to purge completion
      +   * suggestions. Follows pattern
      +   * projects/*/locations/*/collections/*/dataStores/*.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest other = + (com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [CompletionService.PurgeCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.PurgeCompletionSuggestions]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest) + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest.class, + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest build() { + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest + buildPartial() { + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest result = + new com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The parent data store resource name for which to purge completion
      +     * suggestions. Follows pattern
      +     * projects/*/locations/*/collections/*/dataStores/*.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The parent data store resource name for which to purge completion
      +     * suggestions. Follows pattern
      +     * projects/*/locations/*/collections/*/dataStores/*.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The parent data store resource name for which to purge completion
      +     * suggestions. Follows pattern
      +     * projects/*/locations/*/collections/*/dataStores/*.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent data store resource name for which to purge completion
      +     * suggestions. Follows pattern
      +     * projects/*/locations/*/collections/*/dataStores/*.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The parent data store resource name for which to purge completion
      +     * suggestions. Follows pattern
      +     * projects/*/locations/*/collections/*/dataStores/*.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest) + private static final com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeCompletionSuggestionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsRequestOrBuilder.java new file mode 100644 index 000000000000..7327e470c61b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface PurgeCompletionSuggestionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent data store resource name for which to purge completion
      +   * suggestions. Follows pattern
      +   * projects/*/locations/*/collections/*/dataStores/*.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The parent data store resource name for which to purge completion
      +   * suggestions. Follows pattern
      +   * projects/*/locations/*/collections/*/dataStores/*.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsResponse.java new file mode 100644 index 000000000000..857691f451d3 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsResponse.java @@ -0,0 +1,1045 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Response message for
      + * [CompletionService.PurgeCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.PurgeCompletionSuggestions]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse} + */ +public final class PurgeCompletionSuggestionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse) + PurgeCompletionSuggestionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeCompletionSuggestionsResponse.newBuilder() to construct. + private PurgeCompletionSuggestionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeCompletionSuggestionsResponse() { + errorSamples_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeCompletionSuggestionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse.class, + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse.Builder + .class); + } + + public static final int PURGE_SUCCEEDED_FIELD_NUMBER = 1; + private boolean purgeSucceeded_ = false; + /** + * + * + *
      +   * Whether the completion suggestions were successfully purged.
      +   * 
      + * + * bool purge_succeeded = 1; + * + * @return The purgeSucceeded. + */ + @java.lang.Override + public boolean getPurgeSucceeded() { + return purgeSucceeded_; + } + + public static final int ERROR_SAMPLES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List errorSamples_; + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public java.util.List getErrorSamplesList() { + return errorSamples_; + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public java.util.List getErrorSamplesOrBuilderList() { + return errorSamples_; + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public int getErrorSamplesCount() { + return errorSamples_.size(); + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public com.google.rpc.Status getErrorSamples(int index) { + return errorSamples_.get(index); + } + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + return errorSamples_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (purgeSucceeded_ != false) { + output.writeBool(1, purgeSucceeded_); + } + for (int i = 0; i < errorSamples_.size(); i++) { + output.writeMessage(2, errorSamples_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (purgeSucceeded_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, purgeSucceeded_); + } + for (int i = 0; i < errorSamples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errorSamples_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse other = + (com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse) obj; + + if (getPurgeSucceeded() != other.getPurgeSucceeded()) return false; + if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PURGE_SUCCEEDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPurgeSucceeded()); + if (getErrorSamplesCount() > 0) { + hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getErrorSamplesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Response message for
      +   * [CompletionService.PurgeCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.PurgeCompletionSuggestions]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse) + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse.class, + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + purgeSucceeded_ = false; + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + } else { + errorSamples_ = null; + errorSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse build() { + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + buildPartial() { + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse result = + new com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse result) { + if (errorSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errorSamples_ = errorSamples_; + } else { + result.errorSamples_ = errorSamplesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.purgeSucceeded_ = purgeSucceeded_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + .getDefaultInstance()) return this; + if (other.getPurgeSucceeded() != false) { + setPurgeSucceeded(other.getPurgeSucceeded()); + } + if (errorSamplesBuilder_ == null) { + if (!other.errorSamples_.isEmpty()) { + if (errorSamples_.isEmpty()) { + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorSamplesIsMutable(); + errorSamples_.addAll(other.errorSamples_); + } + onChanged(); + } + } else { + if (!other.errorSamples_.isEmpty()) { + if (errorSamplesBuilder_.isEmpty()) { + errorSamplesBuilder_.dispose(); + errorSamplesBuilder_ = null; + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000002); + errorSamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorSamplesFieldBuilder() + : null; + } else { + errorSamplesBuilder_.addAllMessages(other.errorSamples_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + purgeSucceeded_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(m); + } else { + errorSamplesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean purgeSucceeded_; + /** + * + * + *
      +     * Whether the completion suggestions were successfully purged.
      +     * 
      + * + * bool purge_succeeded = 1; + * + * @return The purgeSucceeded. + */ + @java.lang.Override + public boolean getPurgeSucceeded() { + return purgeSucceeded_; + } + /** + * + * + *
      +     * Whether the completion suggestions were successfully purged.
      +     * 
      + * + * bool purge_succeeded = 1; + * + * @param value The purgeSucceeded to set. + * @return This builder for chaining. + */ + public Builder setPurgeSucceeded(boolean value) { + + purgeSucceeded_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Whether the completion suggestions were successfully purged.
      +     * 
      + * + * bool purge_succeeded = 1; + * + * @return This builder for chaining. + */ + public Builder clearPurgeSucceeded() { + bitField0_ = (bitField0_ & ~0x00000001); + purgeSucceeded_ = false; + onChanged(); + return this; + } + + private java.util.List errorSamples_ = java.util.Collections.emptyList(); + + private void ensureErrorSamplesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + errorSamples_ = new java.util.ArrayList(errorSamples_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorSamplesBuilder_; + + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public java.util.List getErrorSamplesList() { + if (errorSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(errorSamples_); + } else { + return errorSamplesBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public int getErrorSamplesCount() { + if (errorSamplesBuilder_ == null) { + return errorSamples_.size(); + } else { + return errorSamplesBuilder_.getCount(); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.Status getErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, value); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addErrorSamples(com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addAllErrorSamples(java.lang.Iterable values) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); + onChanged(); + } else { + errorSamplesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder clearErrorSamples() { + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + errorSamplesBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder removeErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.remove(index); + onChanged(); + } else { + errorSamplesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public java.util.List getErrorSamplesOrBuilderList() { + if (errorSamplesBuilder_ != null) { + return errorSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errorSamples_); + } + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder() { + return getErrorSamplesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
      +     * A sample of errors encountered while processing the request.
      +     * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + public java.util.List getErrorSamplesBuilderList() { + return getErrorSamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorSamplesFieldBuilder() { + if (errorSamplesBuilder_ == null) { + errorSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errorSamples_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + errorSamples_ = null; + } + return errorSamplesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse) + private static final com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeCompletionSuggestionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsResponseOrBuilder.java new file mode 100644 index 000000000000..ac0766bc924a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeCompletionSuggestionsResponseOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface PurgeCompletionSuggestionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Whether the completion suggestions were successfully purged.
      +   * 
      + * + * bool purge_succeeded = 1; + * + * @return The purgeSucceeded. + */ + boolean getPurgeSucceeded(); + + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + java.util.List getErrorSamplesList(); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + com.google.rpc.Status getErrorSamples(int index); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + int getErrorSamplesCount(); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + java.util.List getErrorSamplesOrBuilderList(); + /** + * + * + *
      +   * A sample of errors encountered while processing the request.
      +   * 
      + * + * repeated .google.rpc.Status error_samples = 2; + */ + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java index d4a657c3d705..61ffdc8c5307 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java @@ -28,6 +28,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -52,6 +64,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_PurgeSuggestionDenyListEntriesMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_PurgeSuggestionDenyListEntriesMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -66,34 +90,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "engine.v1beta\032\037google/api/field_behavior" + ".proto\032\031google/api/resource.proto\032\037googl" + "e/protobuf/timestamp.proto\032\027google/rpc/s" - + "tatus.proto\"z\n\025PurgeDocumentsRequest\022=\n\006" - + "parent\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengine.go" - + "ogleapis.com/Branch\022\023\n\006filter\030\002 \001(\tB\003\340A\002" - + "\022\r\n\005force\030\003 \001(\010\"q\n\026PurgeDocumentsRespons" - + "e\022\023\n\013purge_count\030\001 \001(\003\022B\n\014purge_sample\030\002" - + " \003(\tB,\372A)\n\'discoveryengine.googleapis.co" - + "m/Document\"\277\001\n\026PurgeDocumentsMetadata\022/\n" - + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" - + "estamp\022/\n\013update_time\030\002 \001(\0132\032.google.pro" - + "tobuf.Timestamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025" - + "\n\rfailure_count\030\004 \001(\003\022\025\n\rignored_count\030\005" - + " \001(\003\"i\n%PurgeSuggestionDenyListEntriesRe" - + "quest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(discovery" - + "engine.googleapis.com/DataStore\"h\n&Purge" - + "SuggestionDenyListEntriesResponse\022\023\n\013pur" - + "ge_count\030\001 \001(\003\022)\n\rerror_samples\030\002 \003(\0132\022." - + "google.rpc.Status\"\212\001\n&PurgeSuggestionDen" - + "yListEntriesMetadata\022/\n\013create_time\030\001 \001(" - + "\0132\032.google.protobuf.Timestamp\022/\n\013update_" - + "time\030\002 \001(\0132\032.google.protobuf.TimestampB\227" - + "\002\n\'com.google.cloud.discoveryengine.v1be" - + "taB\020PurgeConfigProtoP\001ZQcloud.google.com" - + "/go/discoveryengine/apiv1beta/discoverye" - + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" - + "INE\252\002#Google.Cloud.DiscoveryEngine.V1Bet" - + "a\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352" - + "\002&Google::Cloud::DiscoveryEngine::V1beta" - + "b\006proto3" + + "tatus.proto\"~\n\026PurgeUserEventsRequest\022@\n" + + "\006parent\030\001 \001(\tB0\340A\002\372A*\n(discoveryengine.g" + + "oogleapis.com/DataStore\022\023\n\006filter\030\002 \001(\tB" + + "\003\340A\002\022\r\n\005force\030\003 \001(\010\".\n\027PurgeUserEventsRe" + + "sponse\022\023\n\013purge_count\030\001 \001(\003\"\251\001\n\027PurgeUse" + + "rEventsMetadata\022/\n\013create_time\030\001 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022/\n\013update_time\030" + + "\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n\rsuc" + + "cess_count\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003\"" + + "z\n\025PurgeDocumentsRequest\022=\n\006parent\030\001 \001(\t" + + "B-\340A\002\372A\'\n%discoveryengine.googleapis.com" + + "/Branch\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\r\n\005force\030\003 " + + "\001(\010\"q\n\026PurgeDocumentsResponse\022\023\n\013purge_c" + + "ount\030\001 \001(\003\022B\n\014purge_sample\030\002 \003(\tB,\372A)\n\'d" + + "iscoveryengine.googleapis.com/Document\"\277" + + "\001\n\026PurgeDocumentsMetadata\022/\n\013create_time" + + "\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n\013up" + + "date_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfailure_co" + + "unt\030\004 \001(\003\022\025\n\rignored_count\030\005 \001(\003\"i\n%Purg" + + "eSuggestionDenyListEntriesRequest\022@\n\006par" + + "ent\030\001 \001(\tB0\340A\002\372A*\n(discoveryengine.googl" + + "eapis.com/DataStore\"h\n&PurgeSuggestionDe" + + "nyListEntriesResponse\022\023\n\013purge_count\030\001 \001" + + "(\003\022)\n\rerror_samples\030\002 \003(\0132\022.google.rpc.S" + + "tatus\"\212\001\n&PurgeSuggestionDenyListEntries" + + "Metadata\022/\n\013create_time\030\001 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032" + + ".google.protobuf.Timestamp\"e\n!PurgeCompl" + + "etionSuggestionsRequest\022@\n\006parent\030\001 \001(\tB" + + "0\340A\002\372A*\n(discoveryengine.googleapis.com/" + + "DataStore\"h\n\"PurgeCompletionSuggestionsR" + + "esponse\022\027\n\017purge_succeeded\030\001 \001(\010\022)\n\rerro" + + "r_samples\030\002 \003(\0132\022.google.rpc.Status\"\206\001\n\"" + + "PurgeCompletionSuggestionsMetadata\022/\n\013cr" + + "eate_time\030\001 \001(\0132\032.google.protobuf.Timest" + + "amp\022/\n\013update_time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampB\227\002\n\'com.google.cloud.discov" + + "eryengine.v1betaB\020PurgeConfigProtoP\001ZQcl" + + "oud.google.com/go/discoveryengine/apiv1b" + + "eta/discoveryenginepb;discoveryenginepb\242" + + "\002\017DISCOVERYENGINE\252\002#Google.Cloud.Discove" + + "ryEngine.V1Beta\312\002#Google\\Cloud\\Discovery" + + "Engine\\V1beta\352\002&Google::Cloud::Discovery" + + "Engine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -104,8 +145,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), }); - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsRequest_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "Force", + }); + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsResponse_descriptor, + new java.lang.String[] { + "PurgeCount", + }); + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", + }); + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor, @@ -113,7 +178,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "Force", }); internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_descriptor, @@ -121,7 +186,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PurgeCount", "PurgeSample", }); internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor, @@ -129,7 +194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", "IgnoredCount", }); internal_static_google_cloud_discoveryengine_v1beta_PurgeSuggestionDenyListEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_discoveryengine_v1beta_PurgeSuggestionDenyListEntriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_PurgeSuggestionDenyListEntriesRequest_descriptor, @@ -137,7 +202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", }); internal_static_google_cloud_discoveryengine_v1beta_PurgeSuggestionDenyListEntriesResponse_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_discoveryengine_v1beta_PurgeSuggestionDenyListEntriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_PurgeSuggestionDenyListEntriesResponse_descriptor, @@ -145,13 +210,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PurgeCount", "ErrorSamples", }); internal_static_google_cloud_discoveryengine_v1beta_PurgeSuggestionDenyListEntriesMetadata_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_discoveryengine_v1beta_PurgeSuggestionDenyListEntriesMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_PurgeSuggestionDenyListEntriesMetadata_descriptor, new java.lang.String[] { "CreateTime", "UpdateTime", }); + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsResponse_descriptor, + new java.lang.String[] { + "PurgeSucceeded", "ErrorSamples", + }); + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsMetadata_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_PurgeCompletionSuggestionsMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsMetadata.java new file mode 100644 index 000000000000..80d98c15358c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsMetadata.java @@ -0,0 +1,1189 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Metadata related to the progress of the PurgeUserEvents operation.
      + * This will be returned by the google.longrunning.Operation.metadata field.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata} + */ +public final class PurgeUserEventsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata) + PurgeUserEventsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeUserEventsMetadata.newBuilder() to construct. + private PurgeUserEventsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeUserEventsMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeUserEventsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata.class, + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int SUCCESS_COUNT_FIELD_NUMBER = 3; + private long successCount_ = 0L; + /** + * + * + *
      +   * Count of entries that were deleted successfully.
      +   * 
      + * + * int64 success_count = 3; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + + public static final int FAILURE_COUNT_FIELD_NUMBER = 4; + private long failureCount_ = 0L; + /** + * + * + *
      +   * Count of entries that encountered errors while processing.
      +   * 
      + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + if (successCount_ != 0L) { + output.writeInt64(3, successCount_); + } + if (failureCount_ != 0L) { + output.writeInt64(4, failureCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + if (successCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, successCount_); + } + if (failureCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata other = + (com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (getSuccessCount() != other.getSuccessCount()) return false; + if (getFailureCount() != other.getFailureCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + SUCCESS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessCount()); + hash = (37 * hash) + FAILURE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailureCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Metadata related to the progress of the PurgeUserEvents operation.
      +   * This will be returned by the google.longrunning.Operation.metadata field.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata) + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata.class, + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + successCount_ = 0L; + failureCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata build() { + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata buildPartial() { + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata result = + new com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.successCount_ = successCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failureCount_ = failureCount_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getSuccessCount() != 0L) { + setSuccessCount(other.getSuccessCount()); + } + if (other.getFailureCount() != 0L) { + setFailureCount(other.getFailureCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + successCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + failureCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
      +     * Operation create time.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
      +     * Operation last update time. If the operation is done, this is also the
      +     * finish time.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private long successCount_; + /** + * + * + *
      +     * Count of entries that were deleted successfully.
      +     * 
      + * + * int64 success_count = 3; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + /** + * + * + *
      +     * Count of entries that were deleted successfully.
      +     * 
      + * + * int64 success_count = 3; + * + * @param value The successCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessCount(long value) { + + successCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Count of entries that were deleted successfully.
      +     * 
      + * + * int64 success_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearSuccessCount() { + bitField0_ = (bitField0_ & ~0x00000004); + successCount_ = 0L; + onChanged(); + return this; + } + + private long failureCount_; + /** + * + * + *
      +     * Count of entries that encountered errors while processing.
      +     * 
      + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + /** + * + * + *
      +     * Count of entries that encountered errors while processing.
      +     * 
      + * + * int64 failure_count = 4; + * + * @param value The failureCount to set. + * @return This builder for chaining. + */ + public Builder setFailureCount(long value) { + + failureCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Count of entries that encountered errors while processing.
      +     * 
      + * + * int64 failure_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearFailureCount() { + bitField0_ = (bitField0_ & ~0x00000008); + failureCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata) + private static final com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeUserEventsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsMetadataOrBuilder.java new file mode 100644 index 000000000000..fbc658caa8e7 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsMetadataOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface PurgeUserEventsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
      +   * Operation create time.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
      +   * Operation last update time. If the operation is done, this is also the
      +   * finish time.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
      +   * Count of entries that were deleted successfully.
      +   * 
      + * + * int64 success_count = 3; + * + * @return The successCount. + */ + long getSuccessCount(); + + /** + * + * + *
      +   * Count of entries that encountered errors while processing.
      +   * 
      + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + long getFailureCount(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsRequest.java new file mode 100644 index 000000000000..a7e57c7c5ead --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsRequest.java @@ -0,0 +1,1123 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for PurgeUserEvents method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest} + */ +public final class PurgeUserEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest) + PurgeUserEventsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeUserEventsRequest.newBuilder() to construct. + private PurgeUserEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeUserEventsRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeUserEventsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest.class, + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
      +   * Required. The resource name of the catalog under which the events are
      +   * created. The format is
      +   * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The resource name of the catalog under which the events are
      +   * created. The format is
      +   * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
      +   * Required. The filter string to specify the events to be deleted with a
      +   * length limit of 5,000 characters. The eligible fields for filtering are:
      +   *
      +   * * `eventType`: Double quoted
      +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
      +   * string.
      +   * * `eventTime`: in ISO 8601 "zulu" format.
      +   * * `userPseudoId`: Double quoted string. Specifying this will delete all
      +   *   events associated with a visitor.
      +   * * `userId`: Double quoted string. Specifying this will delete all events
      +   *   associated with a user.
      +   *
      +   * Examples:
      +   *
      +   * * Deleting all events in a time range:
      +   *   `eventTime > "2012-04-23T18:25:43.511Z"
      +   *   eventTime < "2012-04-23T18:30:43.511Z"`
      +   * * Deleting specific eventType:
      +   *   `eventType = "search"`
      +   * * Deleting all events for a specific visitor:
      +   *   `userPseudoId = "visitor1024"`
      +   * * Deleting all events inside a DataStore:
      +   *   `*`
      +   *
      +   * The filtering fields are assumed to have an implicit AND.
      +   * 
      + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The filter string to specify the events to be deleted with a
      +   * length limit of 5,000 characters. The eligible fields for filtering are:
      +   *
      +   * * `eventType`: Double quoted
      +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
      +   * string.
      +   * * `eventTime`: in ISO 8601 "zulu" format.
      +   * * `userPseudoId`: Double quoted string. Specifying this will delete all
      +   *   events associated with a visitor.
      +   * * `userId`: Double quoted string. Specifying this will delete all events
      +   *   associated with a user.
      +   *
      +   * Examples:
      +   *
      +   * * Deleting all events in a time range:
      +   *   `eventTime > "2012-04-23T18:25:43.511Z"
      +   *   eventTime < "2012-04-23T18:30:43.511Z"`
      +   * * Deleting specific eventType:
      +   *   `eventType = "search"`
      +   * * Deleting all events for a specific visitor:
      +   *   `userPseudoId = "visitor1024"`
      +   * * Deleting all events inside a DataStore:
      +   *   `*`
      +   *
      +   * The filtering fields are assumed to have an implicit AND.
      +   * 
      + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + /** + * + * + *
      +   * The `force` field is currently not supported. Purge user event requests
      +   * will permanently delete all purgeable events. Once the development is
      +   * complete:
      +   * If `force` is set to false, the method will return the expected
      +   * purge count without deleting any user events. This field will default to
      +   * false if not included in the request.
      +   * 
      + * + * bool force = 3; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest other = + (com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for PurgeUserEvents method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest) + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest.class, + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest build() { + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest result = + new com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
      +     * Required. The resource name of the catalog under which the events are
      +     * created. The format is
      +     * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The resource name of the catalog under which the events are
      +     * created. The format is
      +     * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The resource name of the catalog under which the events are
      +     * created. The format is
      +     * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The resource name of the catalog under which the events are
      +     * created. The format is
      +     * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The resource name of the catalog under which the events are
      +     * created. The format is
      +     * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
      +     * Required. The filter string to specify the events to be deleted with a
      +     * length limit of 5,000 characters. The eligible fields for filtering are:
      +     *
      +     * * `eventType`: Double quoted
      +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
      +     * string.
      +     * * `eventTime`: in ISO 8601 "zulu" format.
      +     * * `userPseudoId`: Double quoted string. Specifying this will delete all
      +     *   events associated with a visitor.
      +     * * `userId`: Double quoted string. Specifying this will delete all events
      +     *   associated with a user.
      +     *
      +     * Examples:
      +     *
      +     * * Deleting all events in a time range:
      +     *   `eventTime > "2012-04-23T18:25:43.511Z"
      +     *   eventTime < "2012-04-23T18:30:43.511Z"`
      +     * * Deleting specific eventType:
      +     *   `eventType = "search"`
      +     * * Deleting all events for a specific visitor:
      +     *   `userPseudoId = "visitor1024"`
      +     * * Deleting all events inside a DataStore:
      +     *   `*`
      +     *
      +     * The filtering fields are assumed to have an implicit AND.
      +     * 
      + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The filter string to specify the events to be deleted with a
      +     * length limit of 5,000 characters. The eligible fields for filtering are:
      +     *
      +     * * `eventType`: Double quoted
      +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
      +     * string.
      +     * * `eventTime`: in ISO 8601 "zulu" format.
      +     * * `userPseudoId`: Double quoted string. Specifying this will delete all
      +     *   events associated with a visitor.
      +     * * `userId`: Double quoted string. Specifying this will delete all events
      +     *   associated with a user.
      +     *
      +     * Examples:
      +     *
      +     * * Deleting all events in a time range:
      +     *   `eventTime > "2012-04-23T18:25:43.511Z"
      +     *   eventTime < "2012-04-23T18:30:43.511Z"`
      +     * * Deleting specific eventType:
      +     *   `eventType = "search"`
      +     * * Deleting all events for a specific visitor:
      +     *   `userPseudoId = "visitor1024"`
      +     * * Deleting all events inside a DataStore:
      +     *   `*`
      +     *
      +     * The filtering fields are assumed to have an implicit AND.
      +     * 
      + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The filter string to specify the events to be deleted with a
      +     * length limit of 5,000 characters. The eligible fields for filtering are:
      +     *
      +     * * `eventType`: Double quoted
      +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
      +     * string.
      +     * * `eventTime`: in ISO 8601 "zulu" format.
      +     * * `userPseudoId`: Double quoted string. Specifying this will delete all
      +     *   events associated with a visitor.
      +     * * `userId`: Double quoted string. Specifying this will delete all events
      +     *   associated with a user.
      +     *
      +     * Examples:
      +     *
      +     * * Deleting all events in a time range:
      +     *   `eventTime > "2012-04-23T18:25:43.511Z"
      +     *   eventTime < "2012-04-23T18:30:43.511Z"`
      +     * * Deleting specific eventType:
      +     *   `eventType = "search"`
      +     * * Deleting all events for a specific visitor:
      +     *   `userPseudoId = "visitor1024"`
      +     * * Deleting all events inside a DataStore:
      +     *   `*`
      +     *
      +     * The filtering fields are assumed to have an implicit AND.
      +     * 
      + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The filter string to specify the events to be deleted with a
      +     * length limit of 5,000 characters. The eligible fields for filtering are:
      +     *
      +     * * `eventType`: Double quoted
      +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
      +     * string.
      +     * * `eventTime`: in ISO 8601 "zulu" format.
      +     * * `userPseudoId`: Double quoted string. Specifying this will delete all
      +     *   events associated with a visitor.
      +     * * `userId`: Double quoted string. Specifying this will delete all events
      +     *   associated with a user.
      +     *
      +     * Examples:
      +     *
      +     * * Deleting all events in a time range:
      +     *   `eventTime > "2012-04-23T18:25:43.511Z"
      +     *   eventTime < "2012-04-23T18:30:43.511Z"`
      +     * * Deleting specific eventType:
      +     *   `eventType = "search"`
      +     * * Deleting all events for a specific visitor:
      +     *   `userPseudoId = "visitor1024"`
      +     * * Deleting all events inside a DataStore:
      +     *   `*`
      +     *
      +     * The filtering fields are assumed to have an implicit AND.
      +     * 
      + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The filter string to specify the events to be deleted with a
      +     * length limit of 5,000 characters. The eligible fields for filtering are:
      +     *
      +     * * `eventType`: Double quoted
      +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
      +     * string.
      +     * * `eventTime`: in ISO 8601 "zulu" format.
      +     * * `userPseudoId`: Double quoted string. Specifying this will delete all
      +     *   events associated with a visitor.
      +     * * `userId`: Double quoted string. Specifying this will delete all events
      +     *   associated with a user.
      +     *
      +     * Examples:
      +     *
      +     * * Deleting all events in a time range:
      +     *   `eventTime > "2012-04-23T18:25:43.511Z"
      +     *   eventTime < "2012-04-23T18:30:43.511Z"`
      +     * * Deleting specific eventType:
      +     *   `eventType = "search"`
      +     * * Deleting all events for a specific visitor:
      +     *   `userPseudoId = "visitor1024"`
      +     * * Deleting all events inside a DataStore:
      +     *   `*`
      +     *
      +     * The filtering fields are assumed to have an implicit AND.
      +     * 
      + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean force_; + /** + * + * + *
      +     * The `force` field is currently not supported. Purge user event requests
      +     * will permanently delete all purgeable events. Once the development is
      +     * complete:
      +     * If `force` is set to false, the method will return the expected
      +     * purge count without deleting any user events. This field will default to
      +     * false if not included in the request.
      +     * 
      + * + * bool force = 3; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
      +     * The `force` field is currently not supported. Purge user event requests
      +     * will permanently delete all purgeable events. Once the development is
      +     * complete:
      +     * If `force` is set to false, the method will return the expected
      +     * purge count without deleting any user events. This field will default to
      +     * false if not included in the request.
      +     * 
      + * + * bool force = 3; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * The `force` field is currently not supported. Purge user event requests
      +     * will permanently delete all purgeable events. Once the development is
      +     * complete:
      +     * If `force` is set to false, the method will return the expected
      +     * purge count without deleting any user events. This field will default to
      +     * false if not included in the request.
      +     * 
      + * + * bool force = 3; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest) + private static final com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeUserEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsRequestOrBuilder.java new file mode 100644 index 000000000000..b32c590925f8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface PurgeUserEventsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the catalog under which the events are
      +   * created. The format is
      +   * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
      +   * Required. The resource name of the catalog under which the events are
      +   * created. The format is
      +   * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Required. The filter string to specify the events to be deleted with a
      +   * length limit of 5,000 characters. The eligible fields for filtering are:
      +   *
      +   * * `eventType`: Double quoted
      +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
      +   * string.
      +   * * `eventTime`: in ISO 8601 "zulu" format.
      +   * * `userPseudoId`: Double quoted string. Specifying this will delete all
      +   *   events associated with a visitor.
      +   * * `userId`: Double quoted string. Specifying this will delete all events
      +   *   associated with a user.
      +   *
      +   * Examples:
      +   *
      +   * * Deleting all events in a time range:
      +   *   `eventTime > "2012-04-23T18:25:43.511Z"
      +   *   eventTime < "2012-04-23T18:30:43.511Z"`
      +   * * Deleting specific eventType:
      +   *   `eventType = "search"`
      +   * * Deleting all events for a specific visitor:
      +   *   `userPseudoId = "visitor1024"`
      +   * * Deleting all events inside a DataStore:
      +   *   `*`
      +   *
      +   * The filtering fields are assumed to have an implicit AND.
      +   * 
      + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
      +   * Required. The filter string to specify the events to be deleted with a
      +   * length limit of 5,000 characters. The eligible fields for filtering are:
      +   *
      +   * * `eventType`: Double quoted
      +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
      +   * string.
      +   * * `eventTime`: in ISO 8601 "zulu" format.
      +   * * `userPseudoId`: Double quoted string. Specifying this will delete all
      +   *   events associated with a visitor.
      +   * * `userId`: Double quoted string. Specifying this will delete all events
      +   *   associated with a user.
      +   *
      +   * Examples:
      +   *
      +   * * Deleting all events in a time range:
      +   *   `eventTime > "2012-04-23T18:25:43.511Z"
      +   *   eventTime < "2012-04-23T18:30:43.511Z"`
      +   * * Deleting specific eventType:
      +   *   `eventType = "search"`
      +   * * Deleting all events for a specific visitor:
      +   *   `userPseudoId = "visitor1024"`
      +   * * Deleting all events inside a DataStore:
      +   *   `*`
      +   *
      +   * The filtering fields are assumed to have an implicit AND.
      +   * 
      + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
      +   * The `force` field is currently not supported. Purge user event requests
      +   * will permanently delete all purgeable events. Once the development is
      +   * complete:
      +   * If `force` is set to false, the method will return the expected
      +   * purge count without deleting any user events. This field will default to
      +   * false if not included in the request.
      +   * 
      + * + * bool force = 3; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsResponse.java new file mode 100644 index 000000000000..e1f282004128 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsResponse.java @@ -0,0 +1,547 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Response of the PurgeUserEventsRequest. If the long running operation is
      + * successfully done, then this message is returned by the
      + * google.longrunning.Operations.response field.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse} + */ +public final class PurgeUserEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse) + PurgeUserEventsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeUserEventsResponse.newBuilder() to construct. + private PurgeUserEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeUserEventsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeUserEventsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse.class, + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse.Builder.class); + } + + public static final int PURGE_COUNT_FIELD_NUMBER = 1; + private long purgeCount_ = 0L; + /** + * + * + *
      +   * The total count of events purged as a result of the operation.
      +   * 
      + * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (purgeCount_ != 0L) { + output.writeInt64(1, purgeCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (purgeCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, purgeCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse other = + (com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse) obj; + + if (getPurgeCount() != other.getPurgeCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PURGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPurgeCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Response of the PurgeUserEventsRequest. If the long running operation is
      +   * successfully done, then this message is returned by the
      +   * google.longrunning.Operations.response field.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse) + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse.class, + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + purgeCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeUserEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse build() { + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse result = + new com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.purgeCount_ = purgeCount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse.getDefaultInstance()) + return this; + if (other.getPurgeCount() != 0L) { + setPurgeCount(other.getPurgeCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + purgeCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long purgeCount_; + /** + * + * + *
      +     * The total count of events purged as a result of the operation.
      +     * 
      + * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + /** + * + * + *
      +     * The total count of events purged as a result of the operation.
      +     * 
      + * + * int64 purge_count = 1; + * + * @param value The purgeCount to set. + * @return This builder for chaining. + */ + public Builder setPurgeCount(long value) { + + purgeCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * The total count of events purged as a result of the operation.
      +     * 
      + * + * int64 purge_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearPurgeCount() { + bitField0_ = (bitField0_ & ~0x00000001); + purgeCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse) + private static final com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeUserEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RollbackOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsResponseOrBuilder.java similarity index 51% rename from java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RollbackOrBuilder.java rename to java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsResponseOrBuilder.java index 3939459a9ce9..ce7e55e81cd4 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RollbackOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsResponseOrBuilder.java @@ -14,40 +14,26 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto +// source: google/cloud/discoveryengine/v1beta/purge_config.proto // Protobuf Java Version: 3.25.3 -package com.google.cloud.deploy.v1; +package com.google.cloud.discoveryengine.v1beta; -public interface RollbackOrBuilder +public interface PurgeUserEventsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Rollback) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse) com.google.protobuf.MessageOrBuilder { /** * * *
      -   * Optional. The starting phase ID for the `Rollout`. If unspecified, the
      -   * `Rollout` will start in the stable phase.
      +   * The total count of events purged as a result of the operation.
          * 
      * - * string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int64 purge_count = 1; * - * @return The destinationPhase. + * @return The purgeCount. */ - java.lang.String getDestinationPhase(); - /** - * - * - *
      -   * Optional. The starting phase ID for the `Rollout`. If unspecified, the
      -   * `Rollout` will start in the stable phase.
      -   * 
      - * - * string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for destinationPhase. - */ - com.google.protobuf.ByteString getDestinationPhaseBytes(); + long getPurgeCount(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/QualityMetrics.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/QualityMetrics.java new file mode 100644 index 000000000000..20b423c1c5c7 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/QualityMetrics.java @@ -0,0 +1,3461 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Describes the metrics produced by the evaluation.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.QualityMetrics} + */ +public final class QualityMetrics extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.QualityMetrics) + QualityMetricsOrBuilder { + private static final long serialVersionUID = 0L; + // Use QualityMetrics.newBuilder() to construct. + private QualityMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QualityMetrics() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QualityMetrics(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.class, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.Builder.class); + } + + public interface TopkMetricsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * The top-1 value.
      +     * 
      + * + * double top_1 = 1; + * + * @return The top1. + */ + double getTop1(); + + /** + * + * + *
      +     * The top-3 value.
      +     * 
      + * + * double top_3 = 2; + * + * @return The top3. + */ + double getTop3(); + + /** + * + * + *
      +     * The top-5 value.
      +     * 
      + * + * double top_5 = 3; + * + * @return The top5. + */ + double getTop5(); + + /** + * + * + *
      +     * The top-10 value.
      +     * 
      + * + * double top_10 = 4; + * + * @return The top10. + */ + double getTop10(); + } + /** + * + * + *
      +   * Stores the metric values at specific top-k levels.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics} + */ + public static final class TopkMetrics extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics) + TopkMetricsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TopkMetrics.newBuilder() to construct. + private TopkMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TopkMetrics() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TopkMetrics(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_TopkMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_TopkMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.class, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder.class); + } + + public static final int TOP_1_FIELD_NUMBER = 1; + private double top1_ = 0D; + /** + * + * + *
      +     * The top-1 value.
      +     * 
      + * + * double top_1 = 1; + * + * @return The top1. + */ + @java.lang.Override + public double getTop1() { + return top1_; + } + + public static final int TOP_3_FIELD_NUMBER = 2; + private double top3_ = 0D; + /** + * + * + *
      +     * The top-3 value.
      +     * 
      + * + * double top_3 = 2; + * + * @return The top3. + */ + @java.lang.Override + public double getTop3() { + return top3_; + } + + public static final int TOP_5_FIELD_NUMBER = 3; + private double top5_ = 0D; + /** + * + * + *
      +     * The top-5 value.
      +     * 
      + * + * double top_5 = 3; + * + * @return The top5. + */ + @java.lang.Override + public double getTop5() { + return top5_; + } + + public static final int TOP_10_FIELD_NUMBER = 4; + private double top10_ = 0D; + /** + * + * + *
      +     * The top-10 value.
      +     * 
      + * + * double top_10 = 4; + * + * @return The top10. + */ + @java.lang.Override + public double getTop10() { + return top10_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (java.lang.Double.doubleToRawLongBits(top1_) != 0) { + output.writeDouble(1, top1_); + } + if (java.lang.Double.doubleToRawLongBits(top3_) != 0) { + output.writeDouble(2, top3_); + } + if (java.lang.Double.doubleToRawLongBits(top5_) != 0) { + output.writeDouble(3, top5_); + } + if (java.lang.Double.doubleToRawLongBits(top10_) != 0) { + output.writeDouble(4, top10_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(top1_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, top1_); + } + if (java.lang.Double.doubleToRawLongBits(top3_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, top3_); + } + if (java.lang.Double.doubleToRawLongBits(top5_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, top5_); + } + if (java.lang.Double.doubleToRawLongBits(top10_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, top10_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics other = + (com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics) obj; + + if (java.lang.Double.doubleToLongBits(getTop1()) + != java.lang.Double.doubleToLongBits(other.getTop1())) return false; + if (java.lang.Double.doubleToLongBits(getTop3()) + != java.lang.Double.doubleToLongBits(other.getTop3())) return false; + if (java.lang.Double.doubleToLongBits(getTop5()) + != java.lang.Double.doubleToLongBits(other.getTop5())) return false; + if (java.lang.Double.doubleToLongBits(getTop10()) + != java.lang.Double.doubleToLongBits(other.getTop10())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOP_1_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getTop1())); + hash = (37 * hash) + TOP_3_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getTop3())); + hash = (37 * hash) + TOP_5_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getTop5())); + hash = (37 * hash) + TOP_10_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTop10())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Stores the metric values at specific top-k levels.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics) + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_TopkMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_TopkMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.class, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + top1_ = 0D; + top3_ = 0D; + top5_ = 0D; + top10_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_TopkMetrics_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics build() { + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics buildPartial() { + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics result = + new com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.top1_ = top1_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.top3_ = top3_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.top5_ = top5_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.top10_ = top10_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics other) { + if (other + == com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance()) return this; + if (other.getTop1() != 0D) { + setTop1(other.getTop1()); + } + if (other.getTop3() != 0D) { + setTop3(other.getTop3()); + } + if (other.getTop5() != 0D) { + setTop5(other.getTop5()); + } + if (other.getTop10() != 0D) { + setTop10(other.getTop10()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + top1_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: + { + top3_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: + { + top5_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 33: + { + top10_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private double top1_; + /** + * + * + *
      +       * The top-1 value.
      +       * 
      + * + * double top_1 = 1; + * + * @return The top1. + */ + @java.lang.Override + public double getTop1() { + return top1_; + } + /** + * + * + *
      +       * The top-1 value.
      +       * 
      + * + * double top_1 = 1; + * + * @param value The top1 to set. + * @return This builder for chaining. + */ + public Builder setTop1(double value) { + + top1_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * The top-1 value.
      +       * 
      + * + * double top_1 = 1; + * + * @return This builder for chaining. + */ + public Builder clearTop1() { + bitField0_ = (bitField0_ & ~0x00000001); + top1_ = 0D; + onChanged(); + return this; + } + + private double top3_; + /** + * + * + *
      +       * The top-3 value.
      +       * 
      + * + * double top_3 = 2; + * + * @return The top3. + */ + @java.lang.Override + public double getTop3() { + return top3_; + } + /** + * + * + *
      +       * The top-3 value.
      +       * 
      + * + * double top_3 = 2; + * + * @param value The top3 to set. + * @return This builder for chaining. + */ + public Builder setTop3(double value) { + + top3_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * The top-3 value.
      +       * 
      + * + * double top_3 = 2; + * + * @return This builder for chaining. + */ + public Builder clearTop3() { + bitField0_ = (bitField0_ & ~0x00000002); + top3_ = 0D; + onChanged(); + return this; + } + + private double top5_; + /** + * + * + *
      +       * The top-5 value.
      +       * 
      + * + * double top_5 = 3; + * + * @return The top5. + */ + @java.lang.Override + public double getTop5() { + return top5_; + } + /** + * + * + *
      +       * The top-5 value.
      +       * 
      + * + * double top_5 = 3; + * + * @param value The top5 to set. + * @return This builder for chaining. + */ + public Builder setTop5(double value) { + + top5_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +       * The top-5 value.
      +       * 
      + * + * double top_5 = 3; + * + * @return This builder for chaining. + */ + public Builder clearTop5() { + bitField0_ = (bitField0_ & ~0x00000004); + top5_ = 0D; + onChanged(); + return this; + } + + private double top10_; + /** + * + * + *
      +       * The top-10 value.
      +       * 
      + * + * double top_10 = 4; + * + * @return The top10. + */ + @java.lang.Override + public double getTop10() { + return top10_; + } + /** + * + * + *
      +       * The top-10 value.
      +       * 
      + * + * double top_10 = 4; + * + * @param value The top10 to set. + * @return This builder for chaining. + */ + public Builder setTop10(double value) { + + top10_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +       * The top-10 value.
      +       * 
      + * + * double top_10 = 4; + * + * @return This builder for chaining. + */ + public Builder clearTop10() { + bitField0_ = (bitField0_ & ~0x00000008); + top10_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics) + private static final com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics(); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TopkMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DOC_RECALL_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics docRecall_; + /** + * + * + *
      +   * Recall per document, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant documents retrieved out of all
      +   * relevant documents.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +   *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + * + * @return Whether the docRecall field is set. + */ + @java.lang.Override + public boolean hasDocRecall() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Recall per document, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant documents retrieved out of all
      +   * relevant documents.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +   *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + * + * @return The docRecall. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getDocRecall() { + return docRecall_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.getDefaultInstance() + : docRecall_; + } + /** + * + * + *
      +   * Recall per document, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant documents retrieved out of all
      +   * relevant documents.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +   *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder + getDocRecallOrBuilder() { + return docRecall_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.getDefaultInstance() + : docRecall_; + } + + public static final int DOC_PRECISION_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics docPrecision_; + /** + * + * + *
      +   * Precision per document, at various top-k cutoff levels.
      +   *
      +   * Precision is the fraction of retrieved documents that are relevant.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +   *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +   *  0.8
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + * + * @return Whether the docPrecision field is set. + */ + @java.lang.Override + public boolean hasDocPrecision() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * Precision per document, at various top-k cutoff levels.
      +   *
      +   * Precision is the fraction of retrieved documents that are relevant.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +   *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +   *  0.8
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + * + * @return The docPrecision. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getDocPrecision() { + return docPrecision_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.getDefaultInstance() + : docPrecision_; + } + /** + * + * + *
      +   * Precision per document, at various top-k cutoff levels.
      +   *
      +   * Precision is the fraction of retrieved documents that are relevant.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +   *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +   *  0.8
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder + getDocPrecisionOrBuilder() { + return docPrecision_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.getDefaultInstance() + : docPrecision_; + } + + public static final int DOC_NDCG_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics docNdcg_; + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +   *  with three retrieved documents (D1, D2, D3) and binary relevance
      +   *  judgements (1 for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +   *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +   *
      +   *   Calculate NDCG@3 for each
      +   *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + * + * @return Whether the docNdcg field is set. + */ + @java.lang.Override + public boolean hasDocNdcg() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +   *  with three retrieved documents (D1, D2, D3) and binary relevance
      +   *  judgements (1 for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +   *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +   *
      +   *   Calculate NDCG@3 for each
      +   *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + * + * @return The docNdcg. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getDocNdcg() { + return docNdcg_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.getDefaultInstance() + : docNdcg_; + } + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +   *  with three retrieved documents (D1, D2, D3) and binary relevance
      +   *  judgements (1 for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +   *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +   *
      +   *   Calculate NDCG@3 for each
      +   *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder + getDocNdcgOrBuilder() { + return docNdcg_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.getDefaultInstance() + : docNdcg_; + } + + public static final int PAGE_RECALL_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics pageRecall_; + /** + * + * + *
      +   * Recall per page, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant pages retrieved out of all relevant
      +   * pages.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +   *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + * + * @return Whether the pageRecall field is set. + */ + @java.lang.Override + public boolean hasPageRecall() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
      +   * Recall per page, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant pages retrieved out of all relevant
      +   * pages.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +   *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + * + * @return The pageRecall. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getPageRecall() { + return pageRecall_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.getDefaultInstance() + : pageRecall_; + } + /** + * + * + *
      +   * Recall per page, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant pages retrieved out of all relevant
      +   * pages.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +   *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder + getPageRecallOrBuilder() { + return pageRecall_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.getDefaultInstance() + : pageRecall_; + } + + public static final int PAGE_NDCG_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics pageNdcg_; + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +   *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +   *  for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +   *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +   *
      +   *   Calculate NDCG@3 for
      +   *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + * + * @return Whether the pageNdcg field is set. + */ + @java.lang.Override + public boolean hasPageNdcg() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +   *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +   *  for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +   *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +   *
      +   *   Calculate NDCG@3 for
      +   *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + * + * @return The pageNdcg. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getPageNdcg() { + return pageNdcg_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.getDefaultInstance() + : pageNdcg_; + } + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +   *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +   *  for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +   *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +   *
      +   *   Calculate NDCG@3 for
      +   *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder + getPageNdcgOrBuilder() { + return pageNdcg_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.getDefaultInstance() + : pageNdcg_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDocRecall()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDocPrecision()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getDocNdcg()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getPageRecall()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getPageNdcg()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocRecall()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocPrecision()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDocNdcg()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPageRecall()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPageNdcg()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.QualityMetrics)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.QualityMetrics other = + (com.google.cloud.discoveryengine.v1beta.QualityMetrics) obj; + + if (hasDocRecall() != other.hasDocRecall()) return false; + if (hasDocRecall()) { + if (!getDocRecall().equals(other.getDocRecall())) return false; + } + if (hasDocPrecision() != other.hasDocPrecision()) return false; + if (hasDocPrecision()) { + if (!getDocPrecision().equals(other.getDocPrecision())) return false; + } + if (hasDocNdcg() != other.hasDocNdcg()) return false; + if (hasDocNdcg()) { + if (!getDocNdcg().equals(other.getDocNdcg())) return false; + } + if (hasPageRecall() != other.hasPageRecall()) return false; + if (hasPageRecall()) { + if (!getPageRecall().equals(other.getPageRecall())) return false; + } + if (hasPageNdcg() != other.hasPageNdcg()) return false; + if (hasPageNdcg()) { + if (!getPageNdcg().equals(other.getPageNdcg())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocRecall()) { + hash = (37 * hash) + DOC_RECALL_FIELD_NUMBER; + hash = (53 * hash) + getDocRecall().hashCode(); + } + if (hasDocPrecision()) { + hash = (37 * hash) + DOC_PRECISION_FIELD_NUMBER; + hash = (53 * hash) + getDocPrecision().hashCode(); + } + if (hasDocNdcg()) { + hash = (37 * hash) + DOC_NDCG_FIELD_NUMBER; + hash = (53 * hash) + getDocNdcg().hashCode(); + } + if (hasPageRecall()) { + hash = (37 * hash) + PAGE_RECALL_FIELD_NUMBER; + hash = (53 * hash) + getPageRecall().hashCode(); + } + if (hasPageNdcg()) { + hash = (37 * hash) + PAGE_NDCG_FIELD_NUMBER; + hash = (53 * hash) + getPageNdcg().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.QualityMetrics prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Describes the metrics produced by the evaluation.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.QualityMetrics} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.QualityMetrics) + com.google.cloud.discoveryengine.v1beta.QualityMetricsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.class, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.QualityMetrics.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDocRecallFieldBuilder(); + getDocPrecisionFieldBuilder(); + getDocNdcgFieldBuilder(); + getPageRecallFieldBuilder(); + getPageNdcgFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + docRecall_ = null; + if (docRecallBuilder_ != null) { + docRecallBuilder_.dispose(); + docRecallBuilder_ = null; + } + docPrecision_ = null; + if (docPrecisionBuilder_ != null) { + docPrecisionBuilder_.dispose(); + docPrecisionBuilder_ = null; + } + docNdcg_ = null; + if (docNdcgBuilder_ != null) { + docNdcgBuilder_.dispose(); + docNdcgBuilder_ = null; + } + pageRecall_ = null; + if (pageRecallBuilder_ != null) { + pageRecallBuilder_.dispose(); + pageRecallBuilder_ = null; + } + pageNdcg_ = null; + if (pageNdcgBuilder_ != null) { + pageNdcgBuilder_.dispose(); + pageNdcgBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EvaluationProto + .internal_static_google_cloud_discoveryengine_v1beta_QualityMetrics_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.QualityMetrics.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics build() { + com.google.cloud.discoveryengine.v1beta.QualityMetrics result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics buildPartial() { + com.google.cloud.discoveryengine.v1beta.QualityMetrics result = + new com.google.cloud.discoveryengine.v1beta.QualityMetrics(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.QualityMetrics result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.docRecall_ = docRecallBuilder_ == null ? docRecall_ : docRecallBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.docPrecision_ = + docPrecisionBuilder_ == null ? docPrecision_ : docPrecisionBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.docNdcg_ = docNdcgBuilder_ == null ? docNdcg_ : docNdcgBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageRecall_ = pageRecallBuilder_ == null ? pageRecall_ : pageRecallBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageNdcg_ = pageNdcgBuilder_ == null ? pageNdcg_ : pageNdcgBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.QualityMetrics) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.QualityMetrics) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.QualityMetrics other) { + if (other == com.google.cloud.discoveryengine.v1beta.QualityMetrics.getDefaultInstance()) + return this; + if (other.hasDocRecall()) { + mergeDocRecall(other.getDocRecall()); + } + if (other.hasDocPrecision()) { + mergeDocPrecision(other.getDocPrecision()); + } + if (other.hasDocNdcg()) { + mergeDocNdcg(other.getDocNdcg()); + } + if (other.hasPageRecall()) { + mergePageRecall(other.getPageRecall()); + } + if (other.hasPageNdcg()) { + mergePageNdcg(other.getPageNdcg()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getDocRecallFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDocPrecisionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDocNdcgFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getPageRecallFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getPageNdcgFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics docRecall_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder> + docRecallBuilder_; + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + * + * @return Whether the docRecall field is set. + */ + public boolean hasDocRecall() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + * + * @return The docRecall. + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getDocRecall() { + if (docRecallBuilder_ == null) { + return docRecall_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance() + : docRecall_; + } else { + return docRecallBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + */ + public Builder setDocRecall( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics value) { + if (docRecallBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + docRecall_ = value; + } else { + docRecallBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + */ + public Builder setDocRecall( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder + builderForValue) { + if (docRecallBuilder_ == null) { + docRecall_ = builderForValue.build(); + } else { + docRecallBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + */ + public Builder mergeDocRecall( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics value) { + if (docRecallBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && docRecall_ != null + && docRecall_ + != com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance()) { + getDocRecallBuilder().mergeFrom(value); + } else { + docRecall_ = value; + } + } else { + docRecallBuilder_.mergeFrom(value); + } + if (docRecall_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + */ + public Builder clearDocRecall() { + bitField0_ = (bitField0_ & ~0x00000001); + docRecall_ = null; + if (docRecallBuilder_ != null) { + docRecallBuilder_.dispose(); + docRecallBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder + getDocRecallBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDocRecallFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder + getDocRecallOrBuilder() { + if (docRecallBuilder_ != null) { + return docRecallBuilder_.getMessageOrBuilder(); + } else { + return docRecall_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance() + : docRecall_; + } + } + /** + * + * + *
      +     * Recall per document, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant documents retrieved out of all
      +     * relevant documents.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +     *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder> + getDocRecallFieldBuilder() { + if (docRecallBuilder_ == null) { + docRecallBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder>( + getDocRecall(), getParentForChildren(), isClean()); + docRecall_ = null; + } + return docRecallBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics docPrecision_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder> + docPrecisionBuilder_; + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + * + * + * @return Whether the docPrecision field is set. + */ + public boolean hasDocPrecision() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + * + * + * @return The docPrecision. + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getDocPrecision() { + if (docPrecisionBuilder_ == null) { + return docPrecision_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance() + : docPrecision_; + } else { + return docPrecisionBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + public Builder setDocPrecision( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics value) { + if (docPrecisionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + docPrecision_ = value; + } else { + docPrecisionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + public Builder setDocPrecision( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder + builderForValue) { + if (docPrecisionBuilder_ == null) { + docPrecision_ = builderForValue.build(); + } else { + docPrecisionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + public Builder mergeDocPrecision( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics value) { + if (docPrecisionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && docPrecision_ != null + && docPrecision_ + != com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance()) { + getDocPrecisionBuilder().mergeFrom(value); + } else { + docPrecision_ = value; + } + } else { + docPrecisionBuilder_.mergeFrom(value); + } + if (docPrecision_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + public Builder clearDocPrecision() { + bitField0_ = (bitField0_ & ~0x00000002); + docPrecision_ = null; + if (docPrecisionBuilder_ != null) { + docPrecisionBuilder_.dispose(); + docPrecisionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder + getDocPrecisionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDocPrecisionFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder + getDocPrecisionOrBuilder() { + if (docPrecisionBuilder_ != null) { + return docPrecisionBuilder_.getMessageOrBuilder(); + } else { + return docPrecision_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance() + : docPrecision_; + } + } + /** + * + * + *
      +     * Precision per document, at various top-k cutoff levels.
      +     *
      +     * Precision is the fraction of retrieved documents that are relevant.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +     *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +     *  0.8
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder> + getDocPrecisionFieldBuilder() { + if (docPrecisionBuilder_ == null) { + docPrecisionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder>( + getDocPrecision(), getParentForChildren(), isClean()); + docPrecision_ = null; + } + return docPrecisionBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics docNdcg_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder> + docNdcgBuilder_; + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + * + * @return Whether the docNdcg field is set. + */ + public boolean hasDocNdcg() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + * + * @return The docNdcg. + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getDocNdcg() { + if (docNdcgBuilder_ == null) { + return docNdcg_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance() + : docNdcg_; + } else { + return docNdcgBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + public Builder setDocNdcg( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics value) { + if (docNdcgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + docNdcg_ = value; + } else { + docNdcgBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + public Builder setDocNdcg( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder + builderForValue) { + if (docNdcgBuilder_ == null) { + docNdcg_ = builderForValue.build(); + } else { + docNdcgBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + public Builder mergeDocNdcg( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics value) { + if (docNdcgBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && docNdcg_ != null + && docNdcg_ + != com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance()) { + getDocNdcgBuilder().mergeFrom(value); + } else { + docNdcg_ = value; + } + } else { + docNdcgBuilder_.mergeFrom(value); + } + if (docNdcg_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + public Builder clearDocNdcg() { + bitField0_ = (bitField0_ & ~0x00000004); + docNdcg_ = null; + if (docNdcgBuilder_ != null) { + docNdcgBuilder_.dispose(); + docNdcgBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder + getDocNdcgBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDocNdcgFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder + getDocNdcgOrBuilder() { + if (docNdcgBuilder_ != null) { + return docNdcgBuilder_.getMessageOrBuilder(); + } else { + return docNdcg_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance() + : docNdcg_; + } + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved documents (D1, D2, D3) and binary relevance
      +     *  judgements (1 for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +     *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +     *
      +     *   Calculate NDCG@3 for each
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder> + getDocNdcgFieldBuilder() { + if (docNdcgBuilder_ == null) { + docNdcgBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder>( + getDocNdcg(), getParentForChildren(), isClean()); + docNdcg_ = null; + } + return docNdcgBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics pageRecall_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder> + pageRecallBuilder_; + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + * + * @return Whether the pageRecall field is set. + */ + public boolean hasPageRecall() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + * + * @return The pageRecall. + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getPageRecall() { + if (pageRecallBuilder_ == null) { + return pageRecall_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance() + : pageRecall_; + } else { + return pageRecallBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + */ + public Builder setPageRecall( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics value) { + if (pageRecallBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pageRecall_ = value; + } else { + pageRecallBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + */ + public Builder setPageRecall( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder + builderForValue) { + if (pageRecallBuilder_ == null) { + pageRecall_ = builderForValue.build(); + } else { + pageRecallBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + */ + public Builder mergePageRecall( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics value) { + if (pageRecallBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && pageRecall_ != null + && pageRecall_ + != com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance()) { + getPageRecallBuilder().mergeFrom(value); + } else { + pageRecall_ = value; + } + } else { + pageRecallBuilder_.mergeFrom(value); + } + if (pageRecall_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + */ + public Builder clearPageRecall() { + bitField0_ = (bitField0_ & ~0x00000008); + pageRecall_ = null; + if (pageRecallBuilder_ != null) { + pageRecallBuilder_.dispose(); + pageRecallBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder + getPageRecallBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getPageRecallFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder + getPageRecallOrBuilder() { + if (pageRecallBuilder_ != null) { + return pageRecallBuilder_.getMessageOrBuilder(); + } else { + return pageRecall_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance() + : pageRecall_; + } + } + /** + * + * + *
      +     * Recall per page, at various top-k cutoff levels.
      +     *
      +     * Recall is the fraction of relevant pages retrieved out of all relevant
      +     * pages.
      +     *
      +     * Example (top-5):
      +     *  * For a single
      +     *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +     *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder> + getPageRecallFieldBuilder() { + if (pageRecallBuilder_ == null) { + pageRecallBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder>( + getPageRecall(), getParentForChildren(), isClean()); + pageRecall_ = null; + } + return pageRecallBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics pageNdcg_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder> + pageNdcgBuilder_; + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + * + * @return Whether the pageNdcg field is set. + */ + public boolean hasPageNdcg() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + * + * @return The pageNdcg. + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getPageNdcg() { + if (pageNdcgBuilder_ == null) { + return pageNdcg_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance() + : pageNdcg_; + } else { + return pageNdcgBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + public Builder setPageNdcg( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics value) { + if (pageNdcgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pageNdcg_ = value; + } else { + pageNdcgBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + public Builder setPageNdcg( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder + builderForValue) { + if (pageNdcgBuilder_ == null) { + pageNdcg_ = builderForValue.build(); + } else { + pageNdcgBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + public Builder mergePageNdcg( + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics value) { + if (pageNdcgBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && pageNdcg_ != null + && pageNdcg_ + != com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance()) { + getPageNdcgBuilder().mergeFrom(value); + } else { + pageNdcg_ = value; + } + } else { + pageNdcgBuilder_.mergeFrom(value); + } + if (pageNdcg_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + public Builder clearPageNdcg() { + bitField0_ = (bitField0_ & ~0x00000010); + pageNdcg_ = null; + if (pageNdcgBuilder_ != null) { + pageNdcgBuilder_.dispose(); + pageNdcgBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder + getPageNdcgBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getPageNdcgFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + public com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder + getPageNdcgOrBuilder() { + if (pageNdcgBuilder_ != null) { + return pageNdcgBuilder_.getMessageOrBuilder(); + } else { + return pageNdcg_ == null + ? com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics + .getDefaultInstance() + : pageNdcg_; + } + } + /** + * + * + *
      +     * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +     * cutoff levels.
      +     *
      +     * NDCG measures the ranking quality, giving higher relevance to top
      +     * results.
      +     *
      +     * Example (top-3):
      +     *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +     *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +     *  for relevant, 0 for not relevant):
      +     *
      +     *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +     *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +     *
      +     *   Calculate NDCG@3 for
      +     *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +     *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +     *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +     *    * NDCG@3: 1.13/1.63 = 0.693
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder> + getPageNdcgFieldBuilder() { + if (pageNdcgBuilder_ == null) { + pageNdcgBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics.Builder, + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder>( + getPageNdcg(), getParentForChildren(), isClean()); + pageNdcg_ = null; + } + return pageNdcgBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.QualityMetrics) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.QualityMetrics) + private static final com.google.cloud.discoveryengine.v1beta.QualityMetrics DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.QualityMetrics(); + } + + public static com.google.cloud.discoveryengine.v1beta.QualityMetrics getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QualityMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QualityMetrics getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/QualityMetricsOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/QualityMetricsOrBuilder.java new file mode 100644 index 000000000000..4443e3b9fa40 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/QualityMetricsOrBuilder.java @@ -0,0 +1,385 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/evaluation.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface QualityMetricsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.QualityMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Recall per document, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant documents retrieved out of all
      +   * relevant documents.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +   *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + * + * @return Whether the docRecall field is set. + */ + boolean hasDocRecall(); + /** + * + * + *
      +   * Recall per document, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant documents retrieved out of all
      +   * relevant documents.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +   *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + * + * @return The docRecall. + */ + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getDocRecall(); + /** + * + * + *
      +   * Recall per document, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant documents retrieved out of all
      +   * relevant documents.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out
      +   *  of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_recall = 1; + */ + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder + getDocRecallOrBuilder(); + + /** + * + * + *
      +   * Precision per document, at various top-k cutoff levels.
      +   *
      +   * Precision is the fraction of retrieved documents that are relevant.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +   *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +   *  0.8
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + * + * @return Whether the docPrecision field is set. + */ + boolean hasDocPrecision(); + /** + * + * + *
      +   * Precision per document, at various top-k cutoff levels.
      +   *
      +   * Precision is the fraction of retrieved documents that are relevant.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +   *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +   *  0.8
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + * + * @return The docPrecision. + */ + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getDocPrecision(); + /** + * + * + *
      +   * Precision per document, at various top-k cutoff levels.
      +   *
      +   * Precision is the fraction of retrieved documents that are relevant.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out
      +   *  of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 =
      +   *  0.8
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_precision = 2; + */ + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder + getDocPrecisionOrBuilder(); + + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +   *  with three retrieved documents (D1, D2, D3) and binary relevance
      +   *  judgements (1 for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +   *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +   *
      +   *   Calculate NDCG@3 for each
      +   *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + * + * @return Whether the docNdcg field is set. + */ + boolean hasDocNdcg(); + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +   *  with three retrieved documents (D1, D2, D3) and binary relevance
      +   *  judgements (1 for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +   *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +   *
      +   *   Calculate NDCG@3 for each
      +   *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + * + * @return The docNdcg. + */ + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getDocNdcg(); + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per document, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +   *  with three retrieved documents (D1, D2, D3) and binary relevance
      +   *  judgements (1 for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [D3 (0), D1 (1), D2 (1)]
      +   *   Ideal:      [D1 (1), D2 (1), D3 (0)]
      +   *
      +   *   Calculate NDCG@3 for each
      +   *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics doc_ndcg = 3; + */ + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder getDocNdcgOrBuilder(); + + /** + * + * + *
      +   * Recall per page, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant pages retrieved out of all relevant
      +   * pages.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +   *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + * + * @return Whether the pageRecall field is set. + */ + boolean hasPageRecall(); + /** + * + * + *
      +   * Recall per page, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant pages retrieved out of all relevant
      +   * pages.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +   *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + * + * @return The pageRecall. + */ + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getPageRecall(); + /** + * + * + *
      +   * Recall per page, at various top-k cutoff levels.
      +   *
      +   * Recall is the fraction of relevant pages retrieved out of all relevant
      +   * pages.
      +   *
      +   * Example (top-5):
      +   *  * For a single
      +   *  [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out
      +   *  of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_recall = 4; + */ + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder + getPageRecallOrBuilder(); + + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +   *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +   *  for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +   *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +   *
      +   *   Calculate NDCG@3 for
      +   *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + * + * @return Whether the pageNdcg field is set. + */ + boolean hasPageNdcg(); + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +   *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +   *  for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +   *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +   *
      +   *   Calculate NDCG@3 for
      +   *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + * + * @return The pageNdcg. + */ + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics getPageNdcg(); + /** + * + * + *
      +   * Normalized discounted cumulative gain (NDCG) per page, at various top-k
      +   * cutoff levels.
      +   *
      +   * NDCG measures the ranking quality, giving higher relevance to top
      +   * results.
      +   *
      +   * Example (top-3):
      +   *  Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
      +   *  with three retrieved pages (P1, P2, P3) and binary relevance judgements (1
      +   *  for relevant, 0 for not relevant):
      +   *
      +   *   Retrieved:  [P3 (0), P1 (1), P2 (1)]
      +   *   Ideal:      [P1 (1), P2 (1), P3 (0)]
      +   *
      +   *   Calculate NDCG@3 for
      +   *   [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]:
      +   *    * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13
      +   *    * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63
      +   *    * NDCG@3: 1.13/1.63 = 0.693
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics page_ndcg = 5; + */ + com.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetricsOrBuilder + getPageNdcgOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuery.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuery.java new file mode 100644 index 000000000000..0e259be6da4e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuery.java @@ -0,0 +1,3828 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Sample Query captures metadata to be used for evaluation.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SampleQuery} + */ +public final class SampleQuery extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SampleQuery) + SampleQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use SampleQuery.newBuilder() to construct. + private SampleQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SampleQuery() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SampleQuery(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SampleQuery.class, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder.class); + } + + public interface QueryEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. The query.
      +     * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + java.lang.String getQuery(); + /** + * + * + *
      +     * Required. The query.
      +     * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + java.util.List + getTargetsList(); + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target getTargets(int index); + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + int getTargetsCount(); + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.TargetOrBuilder> + getTargetsOrBuilderList(); + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.TargetOrBuilder + getTargetsOrBuilder(int index); + } + /** + * + * + *
      +   * Query Entry captures metadata to be used for search evaluation.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry} + */ + public static final class QueryEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) + QueryEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryEntry.newBuilder() to construct. + private QueryEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryEntry() { + query_ = ""; + targets_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryEntry(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.class, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Builder.class); + } + + public interface TargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * Expected uri of the target.
      +       *
      +       * This field must be a UTF-8 encoded string with a length limit of 2048
      +       * characters.
      +       *
      +       * Example of valid uris: `https://example.com/abc`,
      +       * `gcs://example/example.pdf`.
      +       * 
      + * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
      +       * Expected uri of the target.
      +       *
      +       * This field must be a UTF-8 encoded string with a length limit of 2048
      +       * characters.
      +       *
      +       * Example of valid uris: `https://example.com/abc`,
      +       * `gcs://example/example.pdf`.
      +       * 
      + * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
      +       * Expected page numbers of the target.
      +       *
      +       * Each page number must be non negative.
      +       * 
      + * + * repeated int32 page_numbers = 2; + * + * @return A list containing the pageNumbers. + */ + java.util.List getPageNumbersList(); + /** + * + * + *
      +       * Expected page numbers of the target.
      +       *
      +       * Each page number must be non negative.
      +       * 
      + * + * repeated int32 page_numbers = 2; + * + * @return The count of pageNumbers. + */ + int getPageNumbersCount(); + /** + * + * + *
      +       * Expected page numbers of the target.
      +       *
      +       * Each page number must be non negative.
      +       * 
      + * + * repeated int32 page_numbers = 2; + * + * @param index The index of the element to return. + * @return The pageNumbers at the given index. + */ + int getPageNumbers(int index); + + /** + * + * + *
      +       * Relevance score of the target.
      +       * 
      + * + * optional double score = 3; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
      +       * Relevance score of the target.
      +       * 
      + * + * optional double score = 3; + * + * @return The score. + */ + double getScore(); + } + /** + * + * + *
      +     * Defines the parameters of the query's expected outcome.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target} + */ + public static final class Target extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target) + TargetOrBuilder { + private static final long serialVersionUID = 0L; + // Use Target.newBuilder() to construct. + private Target(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Target() { + uri_ = ""; + pageNumbers_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Target(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_Target_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_Target_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.class, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.Builder + .class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
      +       * Expected uri of the target.
      +       *
      +       * This field must be a UTF-8 encoded string with a length limit of 2048
      +       * characters.
      +       *
      +       * Example of valid uris: `https://example.com/abc`,
      +       * `gcs://example/example.pdf`.
      +       * 
      + * + * string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
      +       * Expected uri of the target.
      +       *
      +       * This field must be a UTF-8 encoded string with a length limit of 2048
      +       * characters.
      +       *
      +       * Example of valid uris: `https://example.com/abc`,
      +       * `gcs://example/example.pdf`.
      +       * 
      + * + * string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_NUMBERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList pageNumbers_ = emptyIntList(); + /** + * + * + *
      +       * Expected page numbers of the target.
      +       *
      +       * Each page number must be non negative.
      +       * 
      + * + * repeated int32 page_numbers = 2; + * + * @return A list containing the pageNumbers. + */ + @java.lang.Override + public java.util.List getPageNumbersList() { + return pageNumbers_; + } + /** + * + * + *
      +       * Expected page numbers of the target.
      +       *
      +       * Each page number must be non negative.
      +       * 
      + * + * repeated int32 page_numbers = 2; + * + * @return The count of pageNumbers. + */ + public int getPageNumbersCount() { + return pageNumbers_.size(); + } + /** + * + * + *
      +       * Expected page numbers of the target.
      +       *
      +       * Each page number must be non negative.
      +       * 
      + * + * repeated int32 page_numbers = 2; + * + * @param index The index of the element to return. + * @return The pageNumbers at the given index. + */ + public int getPageNumbers(int index) { + return pageNumbers_.getInt(index); + } + + private int pageNumbersMemoizedSerializedSize = -1; + + public static final int SCORE_FIELD_NUMBER = 3; + private double score_ = 0D; + /** + * + * + *
      +       * Relevance score of the target.
      +       * 
      + * + * optional double score = 3; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +       * Relevance score of the target.
      +       * 
      + * + * optional double score = 3; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (getPageNumbersList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(pageNumbersMemoizedSerializedSize); + } + for (int i = 0; i < pageNumbers_.size(); i++) { + output.writeInt32NoTag(pageNumbers_.getInt(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(3, score_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + { + int dataSize = 0; + for (int i = 0; i < pageNumbers_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(pageNumbers_.getInt(i)); + } + size += dataSize; + if (!getPageNumbersList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + pageNumbersMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, score_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target other = + (com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getPageNumbersList().equals(other.getPageNumbersList())) return false; + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + if (getPageNumbersCount() > 0) { + hash = (37 * hash) + PAGE_NUMBERS_FIELD_NUMBER; + hash = (53 * hash) + getPageNumbersList().hashCode(); + } + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +       * Defines the parameters of the query's expected outcome.
      +       * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target) + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.TargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_Target_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_Target_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.class, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + pageNumbers_ = emptyIntList(); + score_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_Target_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target build() { + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target result = + new com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + pageNumbers_.makeImmutable(); + result.pageNumbers_ = pageNumbers_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target + .getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.pageNumbers_.isEmpty()) { + if (pageNumbers_.isEmpty()) { + pageNumbers_ = other.pageNumbers_; + pageNumbers_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensurePageNumbersIsMutable(); + pageNumbers_.addAll(other.pageNumbers_); + } + onChanged(); + } + if (other.hasScore()) { + setScore(other.getScore()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + int v = input.readInt32(); + ensurePageNumbersIsMutable(); + pageNumbers_.addInt(v); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensurePageNumbersIsMutable(); + while (input.getBytesUntilLimit() > 0) { + pageNumbers_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 18 + case 25: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + * + * + *
      +         * Expected uri of the target.
      +         *
      +         * This field must be a UTF-8 encoded string with a length limit of 2048
      +         * characters.
      +         *
      +         * Example of valid uris: `https://example.com/abc`,
      +         * `gcs://example/example.pdf`.
      +         * 
      + * + * string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +         * Expected uri of the target.
      +         *
      +         * This field must be a UTF-8 encoded string with a length limit of 2048
      +         * characters.
      +         *
      +         * Example of valid uris: `https://example.com/abc`,
      +         * `gcs://example/example.pdf`.
      +         * 
      + * + * string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +         * Expected uri of the target.
      +         *
      +         * This field must be a UTF-8 encoded string with a length limit of 2048
      +         * characters.
      +         *
      +         * Example of valid uris: `https://example.com/abc`,
      +         * `gcs://example/example.pdf`.
      +         * 
      + * + * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +         * Expected uri of the target.
      +         *
      +         * This field must be a UTF-8 encoded string with a length limit of 2048
      +         * characters.
      +         *
      +         * Example of valid uris: `https://example.com/abc`,
      +         * `gcs://example/example.pdf`.
      +         * 
      + * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +         * Expected uri of the target.
      +         *
      +         * This field must be a UTF-8 encoded string with a length limit of 2048
      +         * characters.
      +         *
      +         * Example of valid uris: `https://example.com/abc`,
      +         * `gcs://example/example.pdf`.
      +         * 
      + * + * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList pageNumbers_ = emptyIntList(); + + private void ensurePageNumbersIsMutable() { + if (!pageNumbers_.isModifiable()) { + pageNumbers_ = makeMutableCopy(pageNumbers_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
      +         * Expected page numbers of the target.
      +         *
      +         * Each page number must be non negative.
      +         * 
      + * + * repeated int32 page_numbers = 2; + * + * @return A list containing the pageNumbers. + */ + public java.util.List getPageNumbersList() { + pageNumbers_.makeImmutable(); + return pageNumbers_; + } + /** + * + * + *
      +         * Expected page numbers of the target.
      +         *
      +         * Each page number must be non negative.
      +         * 
      + * + * repeated int32 page_numbers = 2; + * + * @return The count of pageNumbers. + */ + public int getPageNumbersCount() { + return pageNumbers_.size(); + } + /** + * + * + *
      +         * Expected page numbers of the target.
      +         *
      +         * Each page number must be non negative.
      +         * 
      + * + * repeated int32 page_numbers = 2; + * + * @param index The index of the element to return. + * @return The pageNumbers at the given index. + */ + public int getPageNumbers(int index) { + return pageNumbers_.getInt(index); + } + /** + * + * + *
      +         * Expected page numbers of the target.
      +         *
      +         * Each page number must be non negative.
      +         * 
      + * + * repeated int32 page_numbers = 2; + * + * @param index The index to set the value at. + * @param value The pageNumbers to set. + * @return This builder for chaining. + */ + public Builder setPageNumbers(int index, int value) { + + ensurePageNumbersIsMutable(); + pageNumbers_.setInt(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +         * Expected page numbers of the target.
      +         *
      +         * Each page number must be non negative.
      +         * 
      + * + * repeated int32 page_numbers = 2; + * + * @param value The pageNumbers to add. + * @return This builder for chaining. + */ + public Builder addPageNumbers(int value) { + + ensurePageNumbersIsMutable(); + pageNumbers_.addInt(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +         * Expected page numbers of the target.
      +         *
      +         * Each page number must be non negative.
      +         * 
      + * + * repeated int32 page_numbers = 2; + * + * @param values The pageNumbers to add. + * @return This builder for chaining. + */ + public Builder addAllPageNumbers(java.lang.Iterable values) { + ensurePageNumbersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pageNumbers_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +         * Expected page numbers of the target.
      +         *
      +         * Each page number must be non negative.
      +         * 
      + * + * repeated int32 page_numbers = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageNumbers() { + pageNumbers_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private double score_; + /** + * + * + *
      +         * Relevance score of the target.
      +         * 
      + * + * optional double score = 3; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +         * Relevance score of the target.
      +         * 
      + * + * optional double score = 3; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + /** + * + * + *
      +         * Relevance score of the target.
      +         * 
      + * + * optional double score = 3; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { + + score_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +         * Relevance score of the target.
      +         * 
      + * + * optional double score = 3; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000004); + score_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target) + private static final com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target(); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Target parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int QUERY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + * + * + *
      +     * Required. The query.
      +     * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + /** + * + * + *
      +     * Required. The query.
      +     * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGETS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + targets_; + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + @java.lang.Override + public java.util.List + getTargetsList() { + return targets_; + } + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.TargetOrBuilder> + getTargetsOrBuilderList() { + return targets_; + } + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + @java.lang.Override + public int getTargetsCount() { + return targets_.size(); + } + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target getTargets( + int index) { + return targets_.get(index); + } + /** + * + * + *
      +     * List of targets for the query.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.TargetOrBuilder + getTargetsOrBuilder(int index) { + return targets_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + for (int i = 0; i < targets_.size(); i++) { + output.writeMessage(3, targets_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + for (int i = 0; i < targets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, targets_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry other = + (com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) obj; + + if (!getQuery().equals(other.getQuery())) return false; + if (!getTargetsList().equals(other.getTargetsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getTargetsCount() > 0) { + hash = (37 * hash) + TARGETS_FIELD_NUMBER; + hash = (53 * hash) + getTargetsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Query Entry captures metadata to be used for search evaluation.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.class, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + query_ = ""; + if (targetsBuilder_ == null) { + targets_ = java.util.Collections.emptyList(); + } else { + targets_ = null; + targetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry build() { + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry buildPartial() { + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry result = + new com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry result) { + if (targetsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + targets_ = java.util.Collections.unmodifiableList(targets_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.targets_ = targets_; + } else { + result.targets_ = targetsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.query_ = query_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.getDefaultInstance()) + return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (targetsBuilder_ == null) { + if (!other.targets_.isEmpty()) { + if (targets_.isEmpty()) { + targets_ = other.targets_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTargetsIsMutable(); + targets_.addAll(other.targets_); + } + onChanged(); + } + } else { + if (!other.targets_.isEmpty()) { + if (targetsBuilder_.isEmpty()) { + targetsBuilder_.dispose(); + targetsBuilder_ = null; + targets_ = other.targets_; + bitField0_ = (bitField0_ & ~0x00000002); + targetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTargetsFieldBuilder() + : null; + } else { + targetsBuilder_.addAllMessages(other.targets_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target + .parser(), + extensionRegistry); + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.add(m); + } else { + targetsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object query_ = ""; + /** + * + * + *
      +       * Required. The query.
      +       * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +       * Required. The query.
      +       * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +       * Required. The query.
      +       * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * Required. The query.
      +       * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +       * Required. The query.
      +       * 
      + * + * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + targets_ = java.util.Collections.emptyList(); + + private void ensureTargetsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + targets_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target>(targets_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.TargetOrBuilder> + targetsBuilder_; + + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public java.util.List + getTargetsList() { + if (targetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(targets_); + } else { + return targetsBuilder_.getMessageList(); + } + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public int getTargetsCount() { + if (targetsBuilder_ == null) { + return targets_.size(); + } else { + return targetsBuilder_.getCount(); + } + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target getTargets( + int index) { + if (targetsBuilder_ == null) { + return targets_.get(index); + } else { + return targetsBuilder_.getMessage(index); + } + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder setTargets( + int index, com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target value) { + if (targetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetsIsMutable(); + targets_.set(index, value); + onChanged(); + } else { + targetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder setTargets( + int index, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.Builder + builderForValue) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.set(index, builderForValue.build()); + onChanged(); + } else { + targetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder addTargets( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target value) { + if (targetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetsIsMutable(); + targets_.add(value); + onChanged(); + } else { + targetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder addTargets( + int index, com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target value) { + if (targetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetsIsMutable(); + targets_.add(index, value); + onChanged(); + } else { + targetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder addTargets( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.Builder + builderForValue) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.add(builderForValue.build()); + onChanged(); + } else { + targetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder addTargets( + int index, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.Builder + builderForValue) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.add(index, builderForValue.build()); + onChanged(); + } else { + targetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder addAllTargets( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target> + values) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targets_); + onChanged(); + } else { + targetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder clearTargets() { + if (targetsBuilder_ == null) { + targets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + targetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public Builder removeTargets(int index) { + if (targetsBuilder_ == null) { + ensureTargetsIsMutable(); + targets_.remove(index); + onChanged(); + } else { + targetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.Builder + getTargetsBuilder(int index) { + return getTargetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.TargetOrBuilder + getTargetsOrBuilder(int index) { + if (targetsBuilder_ == null) { + return targets_.get(index); + } else { + return targetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.TargetOrBuilder> + getTargetsOrBuilderList() { + if (targetsBuilder_ != null) { + return targetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(targets_); + } + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.Builder + addTargetsBuilder() { + return getTargetsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target + .getDefaultInstance()); + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.Builder + addTargetsBuilder(int index) { + return getTargetsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target + .getDefaultInstance()); + } + /** + * + * + *
      +       * List of targets for the query.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.Builder> + getTargetsBuilderList() { + return getTargetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.TargetOrBuilder> + getTargetsFieldBuilder() { + if (targetsBuilder_ == null) { + targetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.TargetOrBuilder>( + targets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + targets_ = null; + } + return targetsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) + private static final com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry(); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int contentCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object content_; + + public enum ContentCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + QUERY_ENTRY(2), + CONTENT_NOT_SET(0); + private final int value; + + private ContentCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ContentCase valueOf(int value) { + return forNumber(value); + } + + public static ContentCase forNumber(int value) { + switch (value) { + case 2: + return QUERY_ENTRY; + case 0: + return CONTENT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ContentCase getContentCase() { + return ContentCase.forNumber(contentCase_); + } + + public static final int QUERY_ENTRY_FIELD_NUMBER = 2; + /** + * + * + *
      +   * The query entry.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + * + * @return Whether the queryEntry field is set. + */ + @java.lang.Override + public boolean hasQueryEntry() { + return contentCase_ == 2; + } + /** + * + * + *
      +   * The query entry.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + * + * @return The queryEntry. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry getQueryEntry() { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) content_; + } + return com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.getDefaultInstance(); + } + /** + * + * + *
      +   * The query entry.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntryOrBuilder + getQueryEntryOrBuilder() { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) content_; + } + return com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Identifier. The full resource name of the sample query, in the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Identifier. The full resource name of the sample query, in the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (contentCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) content_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (contentCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) content_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SampleQuery)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SampleQuery other = + (com.google.cloud.discoveryengine.v1beta.SampleQuery) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getContentCase().equals(other.getContentCase())) return false; + switch (contentCase_) { + case 2: + if (!getQueryEntry().equals(other.getQueryEntry())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + switch (contentCase_) { + case 2: + hash = (37 * hash) + QUERY_ENTRY_FIELD_NUMBER; + hash = (53 * hash) + getQueryEntry().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SampleQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Sample Query captures metadata to be used for evaluation.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SampleQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SampleQuery) + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SampleQuery.class, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.SampleQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (queryEntryBuilder_ != null) { + queryEntryBuilder_.clear(); + } + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + contentCase_ = 0; + content_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery build() { + com.google.cloud.discoveryengine.v1beta.SampleQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery buildPartial() { + com.google.cloud.discoveryengine.v1beta.SampleQuery result = + new com.google.cloud.discoveryengine.v1beta.SampleQuery(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SampleQuery result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.SampleQuery result) { + result.contentCase_ = contentCase_; + result.content_ = this.content_; + if (contentCase_ == 2 && queryEntryBuilder_ != null) { + result.content_ = queryEntryBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.SampleQuery) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SampleQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SampleQuery other) { + if (other == com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + switch (other.getContentCase()) { + case QUERY_ENTRY: + { + mergeQueryEntry(other.getQueryEntry()); + break; + } + case CONTENT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage(getQueryEntryFieldBuilder().getBuilder(), extensionRegistry); + contentCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int contentCase_ = 0; + private java.lang.Object content_; + + public ContentCase getContentCase() { + return ContentCase.forNumber(contentCase_); + } + + public Builder clearContent() { + contentCase_ = 0; + content_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntryOrBuilder> + queryEntryBuilder_; + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + * + * @return Whether the queryEntry field is set. + */ + @java.lang.Override + public boolean hasQueryEntry() { + return contentCase_ == 2; + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + * + * @return The queryEntry. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry getQueryEntry() { + if (queryEntryBuilder_ == null) { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) content_; + } + return com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.getDefaultInstance(); + } else { + if (contentCase_ == 2) { + return queryEntryBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.getDefaultInstance(); + } + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + */ + public Builder setQueryEntry( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry value) { + if (queryEntryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + queryEntryBuilder_.setMessage(value); + } + contentCase_ = 2; + return this; + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + */ + public Builder setQueryEntry( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Builder builderForValue) { + if (queryEntryBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + queryEntryBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 2; + return this; + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + */ + public Builder mergeQueryEntry( + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry value) { + if (queryEntryBuilder_ == null) { + if (contentCase_ == 2 + && content_ + != com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry + .getDefaultInstance()) { + content_ = + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.newBuilder( + (com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) content_) + .mergeFrom(value) + .buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 2) { + queryEntryBuilder_.mergeFrom(value); + } else { + queryEntryBuilder_.setMessage(value); + } + } + contentCase_ = 2; + return this; + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + */ + public Builder clearQueryEntry() { + if (queryEntryBuilder_ == null) { + if (contentCase_ == 2) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 2) { + contentCase_ = 0; + content_ = null; + } + queryEntryBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Builder + getQueryEntryBuilder() { + return getQueryEntryFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntryOrBuilder + getQueryEntryOrBuilder() { + if ((contentCase_ == 2) && (queryEntryBuilder_ != null)) { + return queryEntryBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) content_; + } + return com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.getDefaultInstance(); + } + } + /** + * + * + *
      +     * The query entry.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntryOrBuilder> + getQueryEntryFieldBuilder() { + if (queryEntryBuilder_ == null) { + if (!(contentCase_ == 2)) { + content_ = + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.getDefaultInstance(); + } + queryEntryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntryOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 2; + onChanged(); + return queryEntryBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Identifier. The full resource name of the sample query, in the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Identifier. The full resource name of the sample query, in the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Identifier. The full resource name of the sample query, in the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Identifier. The full resource name of the sample query, in the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * Identifier. The full resource name of the sample query, in the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +     * at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SampleQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SampleQuery) + private static final com.google.cloud.discoveryengine.v1beta.SampleQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SampleQuery(); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SampleQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryName.java new file mode 100644 index 000000000000..45331e6ea8cf --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SampleQueryName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SAMPLE_QUERY_SET_SAMPLE_QUERY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String sampleQuerySet; + private final String sampleQuery; + + @Deprecated + protected SampleQueryName() { + project = null; + location = null; + sampleQuerySet = null; + sampleQuery = null; + } + + private SampleQueryName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + sampleQuerySet = Preconditions.checkNotNull(builder.getSampleQuerySet()); + sampleQuery = Preconditions.checkNotNull(builder.getSampleQuery()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSampleQuerySet() { + return sampleQuerySet; + } + + public String getSampleQuery() { + return sampleQuery; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SampleQueryName of( + String project, String location, String sampleQuerySet, String sampleQuery) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSampleQuerySet(sampleQuerySet) + .setSampleQuery(sampleQuery) + .build(); + } + + public static String format( + String project, String location, String sampleQuerySet, String sampleQuery) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSampleQuerySet(sampleQuerySet) + .setSampleQuery(sampleQuery) + .build() + .toString(); + } + + public static SampleQueryName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SAMPLE_QUERY_SET_SAMPLE_QUERY.validatedMatch( + formattedString, "SampleQueryName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("sample_query_set"), + matchMap.get("sample_query")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SampleQueryName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SAMPLE_QUERY_SET_SAMPLE_QUERY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (sampleQuerySet != null) { + fieldMapBuilder.put("sample_query_set", sampleQuerySet); + } + if (sampleQuery != null) { + fieldMapBuilder.put("sample_query", sampleQuery); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SAMPLE_QUERY_SET_SAMPLE_QUERY.instantiate( + "project", + project, + "location", + location, + "sample_query_set", + sampleQuerySet, + "sample_query", + sampleQuery); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SampleQueryName that = ((SampleQueryName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.sampleQuerySet, that.sampleQuerySet) + && Objects.equals(this.sampleQuery, that.sampleQuery); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(sampleQuerySet); + h *= 1000003; + h ^= Objects.hashCode(sampleQuery); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}. + */ + public static class Builder { + private String project; + private String location; + private String sampleQuerySet; + private String sampleQuery; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSampleQuerySet() { + return sampleQuerySet; + } + + public String getSampleQuery() { + return sampleQuery; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSampleQuerySet(String sampleQuerySet) { + this.sampleQuerySet = sampleQuerySet; + return this; + } + + public Builder setSampleQuery(String sampleQuery) { + this.sampleQuery = sampleQuery; + return this; + } + + private Builder(SampleQueryName sampleQueryName) { + this.project = sampleQueryName.project; + this.location = sampleQueryName.location; + this.sampleQuerySet = sampleQueryName.sampleQuerySet; + this.sampleQuery = sampleQueryName.sampleQuery; + } + + public SampleQueryName build() { + return new SampleQueryName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryOrBuilder.java new file mode 100644 index 000000000000..d506e8664ce0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface SampleQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SampleQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The query entry.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + * + * @return Whether the queryEntry field is set. + */ + boolean hasQueryEntry(); + /** + * + * + *
      +   * The query entry.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + * + * @return The queryEntry. + */ + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry getQueryEntry(); + /** + * + * + *
      +   * The query entry.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2; + */ + com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntryOrBuilder getQueryEntryOrBuilder(); + + /** + * + * + *
      +   * Identifier. The full resource name of the sample query, in the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Identifier. The full resource name of the sample query, in the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
      +   * at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.SampleQuery.ContentCase getContentCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryProto.java new file mode 100644 index 000000000000..460e362046fb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryProto.java @@ -0,0 +1,127 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public final class SampleQueryProto { + private SampleQueryProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_Target_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_Target_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/discoveryengine/v1beta/sa" + + "mple_query.proto\022#google.cloud.discovery" + + "engine.v1beta\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\224\004\n\013SampleQue" + + "ry\022R\n\013query_entry\030\002 \001(\0132;.google.cloud.d" + + "iscoveryengine.v1beta.SampleQuery.QueryE" + + "ntryH\000\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013create_time" + + "\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032" + + "\300\001\n\nQueryEntry\022\022\n\005query\030\001 \001(\tB\003\340A\002\022S\n\007ta" + + "rgets\030\003 \003(\0132B.google.cloud.discoveryengi" + + "ne.v1beta.SampleQuery.QueryEntry.Target\032" + + "I\n\006Target\022\013\n\003uri\030\001 \001(\t\022\024\n\014page_numbers\030\002" + + " \003(\005\022\022\n\005score\030\003 \001(\001H\000\210\001\001B\010\n\006_score:\231\001\352A\225" + + "\001\n*discoveryengine.googleapis.com/Sample" + + "Query\022gprojects/{project}/locations/{loc" + + "ation}/sampleQuerySets/{sample_query_set" + + "}/sampleQueries/{sample_query}B\t\n\007conten" + + "tB\227\002\n\'com.google.cloud.discoveryengine.v" + + "1betaB\020SampleQueryProtoP\001ZQcloud.google." + + "com/go/discoveryengine/apiv1beta/discove" + + "ryenginepb;discoveryenginepb\242\002\017DISCOVERY" + + "ENGINE\252\002#Google.Cloud.DiscoveryEngine.V1" + + "Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1be" + + "ta\352\002&Google::Cloud::DiscoveryEngine::V1b" + + "etab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_descriptor, + new java.lang.String[] { + "QueryEntry", "Name", "CreateTime", "Content", + }); + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_descriptor, + new java.lang.String[] { + "Query", "Targets", + }); + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_Target_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_Target_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SampleQuery_QueryEntry_Target_descriptor, + new java.lang.String[] { + "Uri", "PageNumbers", "Score", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceProto.java new file mode 100644 index 000000000000..d472cb6bf19e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceProto.java @@ -0,0 +1,230 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public final class SampleQueryServiceProto { + private SampleQueryServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_GetSampleQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GetSampleQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQueryRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n>google/cloud/discoveryengine/v1beta/sa" + + "mple_query_service.proto\022#google.cloud.d" + + "iscoveryengine.v1beta\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\0327google/cloud/discovery" + + "engine/v1beta/import_config.proto\0326googl" + + "e/cloud/discoveryengine/v1beta/sample_qu" + + "ery.proto\032#google/longrunning/operations" + + ".proto\032\033google/protobuf/empty.proto\032 goo" + + "gle/protobuf/field_mask.proto\"Y\n\025GetSamp" + + "leQueryRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*di" + + "scoveryengine.googleapis.com/SampleQuery" + + "\"\210\001\n\030ListSampleQueriesRequest\022E\n\006parent\030" + + "\001 \001(\tB5\340A\002\372A/\n-discoveryengine.googleapi" + + "s.com/SampleQuerySet\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\"~\n\031ListSampleQueries" + + "Response\022H\n\016sample_queries\030\001 \003(\01320.googl" + + "e.cloud.discoveryengine.v1beta.SampleQue" + + "ry\022\027\n\017next_page_token\030\002 \001(\t\"\314\001\n\030CreateSa" + + "mpleQueryRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/" + + "\n-discoveryengine.googleapis.com/SampleQ" + + "uerySet\022K\n\014sample_query\030\002 \001(\01320.google.c" + + "loud.discoveryengine.v1beta.SampleQueryB" + + "\003\340A\002\022\034\n\017sample_query_id\030\003 \001(\tB\003\340A\002\"\230\001\n\030U" + + "pdateSampleQueryRequest\022K\n\014sample_query\030" + + "\001 \001(\01320.google.cloud.discoveryengine.v1b" + + "eta.SampleQueryB\003\340A\002\022/\n\013update_mask\030\002 \001(" + + "\0132\032.google.protobuf.FieldMask\"\\\n\030DeleteS" + + "ampleQueryRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*discoveryengine.googleapis.com/SampleQu" + + "ery2\353\014\n\022SampleQueryService\022\326\001\n\016GetSample" + + "Query\022:.google.cloud.discoveryengine.v1b" + + "eta.GetSampleQueryRequest\0320.google.cloud" + + ".discoveryengine.v1beta.SampleQuery\"V\332A\004" + + "name\202\323\344\223\002I\022G/v1beta/{name=projects/*/loc" + + "ations/*/sampleQuerySets/*/sampleQueries" + + "/*}\022\354\001\n\021ListSampleQueries\022=.google.cloud" + + ".discoveryengine.v1beta.ListSampleQuerie" + + "sRequest\032>.google.cloud.discoveryengine." + + "v1beta.ListSampleQueriesResponse\"X\332A\006par" + + "ent\202\323\344\223\002I\022G/v1beta/{parent=projects/*/lo" + + "cations/*/sampleQuerySets/*}/sampleQueri" + + "es\022\212\002\n\021CreateSampleQuery\022=.google.cloud." + + "discoveryengine.v1beta.CreateSampleQuery" + + "Request\0320.google.cloud.discoveryengine.v" + + "1beta.SampleQuery\"\203\001\332A#parent,sample_que" + + "ry,sample_query_id\202\323\344\223\002W\"G/v1beta/{paren" + + "t=projects/*/locations/*/sampleQuerySets" + + "/*}/sampleQueries:\014sample_query\022\214\002\n\021Upda" + + "teSampleQuery\022=.google.cloud.discoveryen" + + "gine.v1beta.UpdateSampleQueryRequest\0320.g" + + "oogle.cloud.discoveryengine.v1beta.Sampl" + + "eQuery\"\205\001\332A\030sample_query,update_mask\202\323\344\223" + + "\002d2T/v1beta/{sample_query.name=projects/" + + "*/locations/*/sampleQuerySets/*/sampleQu" + + "eries/*}:\014sample_query\022\302\001\n\021DeleteSampleQ" + + "uery\022=.google.cloud.discoveryengine.v1be" + + "ta.DeleteSampleQueryRequest\032\026.google.pro" + + "tobuf.Empty\"V\332A\004name\202\323\344\223\002I*G/v1beta/{nam" + + "e=projects/*/locations/*/sampleQuerySets" + + "/*/sampleQueries/*}\022\327\002\n\023ImportSampleQuer" + + "ies\022?.google.cloud.discoveryengine.v1bet" + + "a.ImportSampleQueriesRequest\032\035.google.lo" + + "ngrunning.Operation\"\337\001\312A\202\001\n?google.cloud" + + ".discoveryengine.v1beta.ImportSampleQuer" + + "iesResponse\022?google.cloud.discoveryengin" + + "e.v1beta.ImportSampleQueriesMetadata\202\323\344\223" + + "\002S\"N/v1beta/{parent=projects/*/locations" + + "/*/sampleQuerySets/*}/sampleQueries:impo" + + "rt:\001*\032R\312A\036discoveryengine.googleapis.com" + + "\322A.https://www.googleapis.com/auth/cloud" + + "-platformB\236\002\n\'com.google.cloud.discovery" + + "engine.v1betaB\027SampleQueryServiceProtoP\001" + + "ZQcloud.google.com/go/discoveryengine/ap" + + "iv1beta/discoveryenginepb;discoveryengin" + + "epb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.Dis" + + "coveryEngine.V1Beta\312\002#Google\\Cloud\\Disco" + + "veryEngine\\V1beta\352\002&Google::Cloud::Disco" + + "veryEngine::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.ImportConfigProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.SampleQueryProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_GetSampleQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_GetSampleQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GetSampleQueryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQueriesResponse_descriptor, + new java.lang.String[] { + "SampleQueries", "NextPageToken", + }); + internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQueryRequest_descriptor, + new java.lang.String[] { + "Parent", "SampleQuery", "SampleQueryId", + }); + internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQueryRequest_descriptor, + new java.lang.String[] { + "SampleQuery", "UpdateMask", + }); + internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQueryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.ImportConfigProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.SampleQueryProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySet.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySet.java new file mode 100644 index 000000000000..86382b6e1f45 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySet.java @@ -0,0 +1,1382 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * A SampleQuerySet is the parent resource of SampleQuery, and contains the
      + * configurations shared by all SampleQuery under it.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SampleQuerySet} + */ +public final class SampleQuerySet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SampleQuerySet) + SampleQuerySetOrBuilder { + private static final long serialVersionUID = 0L; + // Use SampleQuerySet.newBuilder() to construct. + private SampleQuerySet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SampleQuerySet() { + name_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SampleQuerySet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuerySet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuerySet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.class, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], in
      +   * the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], in
      +   * the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
      +   * Required. The sample query set display name.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 128
      +   * characters.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. The sample query set display name.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 128
      +   * characters.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +   * created at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +   * created at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +   * created at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
      +   * The description of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +   * 
      + * + * string description = 4; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
      +   * The description of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +   * 
      + * + * string description = 4; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SampleQuerySet)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SampleQuerySet other = + (com.google.cloud.discoveryengine.v1beta.SampleQuerySet) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuerySet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuerySet parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuerySet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuerySet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuerySet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuerySet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuerySet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuerySet parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuerySet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuerySet parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuerySet parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuerySet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SampleQuerySet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * A SampleQuerySet is the parent resource of SampleQuery, and contains the
      +   * configurations shared by all SampleQuery under it.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SampleQuerySet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SampleQuerySet) + com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuerySet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuerySet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.class, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.SampleQuerySet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetProto + .internal_static_google_cloud_discoveryengine_v1beta_SampleQuerySet_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet build() { + com.google.cloud.discoveryengine.v1beta.SampleQuerySet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet buildPartial() { + com.google.cloud.discoveryengine.v1beta.SampleQuerySet result = + new com.google.cloud.discoveryengine.v1beta.SampleQuerySet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SampleQuerySet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.SampleQuerySet) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SampleQuerySet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SampleQuerySet other) { + if (other == com.google.cloud.discoveryengine.v1beta.SampleQuerySet.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], in
      +     * the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], in
      +     * the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], in
      +     * the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], in
      +     * the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Identifier. The full resource name of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], in
      +     * the format of
      +     * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 1024
      +     * characters.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
      +     * Required. The sample query set display name.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 128
      +     * characters.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. The sample query set display name.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 128
      +     * characters.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. The sample query set display name.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 128
      +     * characters.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The sample query set display name.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 128
      +     * characters.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The sample query set display name.
      +     *
      +     * This field must be a UTF-8 encoded string with a length limit of 128
      +     * characters.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
      +     * Output only. Timestamp the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +     * created at.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
      +     * The description of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + * + * string description = 4; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * The description of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + * + * string description = 4; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * The description of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + * + * string description = 4; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * The description of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + * + * string description = 4; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
      +     * The description of the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +     * 
      + * + * string description = 4; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SampleQuerySet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SampleQuerySet) + private static final com.google.cloud.discoveryengine.v1beta.SampleQuerySet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SampleQuerySet(); + } + + public static com.google.cloud.discoveryengine.v1beta.SampleQuerySet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SampleQuerySet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetName.java new file mode 100644 index 000000000000..5b4dc586cb99 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SampleQuerySetName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SAMPLE_QUERY_SET = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String sampleQuerySet; + + @Deprecated + protected SampleQuerySetName() { + project = null; + location = null; + sampleQuerySet = null; + } + + private SampleQuerySetName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + sampleQuerySet = Preconditions.checkNotNull(builder.getSampleQuerySet()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSampleQuerySet() { + return sampleQuerySet; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SampleQuerySetName of(String project, String location, String sampleQuerySet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSampleQuerySet(sampleQuerySet) + .build(); + } + + public static String format(String project, String location, String sampleQuerySet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSampleQuerySet(sampleQuerySet) + .build() + .toString(); + } + + public static SampleQuerySetName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SAMPLE_QUERY_SET.validatedMatch( + formattedString, "SampleQuerySetName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("sample_query_set")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SampleQuerySetName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SAMPLE_QUERY_SET.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (sampleQuerySet != null) { + fieldMapBuilder.put("sample_query_set", sampleQuerySet); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SAMPLE_QUERY_SET.instantiate( + "project", project, "location", location, "sample_query_set", sampleQuerySet); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SampleQuerySetName that = ((SampleQuerySetName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.sampleQuerySet, that.sampleQuerySet); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(sampleQuerySet); + return h; + } + + /** Builder for projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}. */ + public static class Builder { + private String project; + private String location; + private String sampleQuerySet; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSampleQuerySet() { + return sampleQuerySet; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSampleQuerySet(String sampleQuerySet) { + this.sampleQuerySet = sampleQuerySet; + return this; + } + + private Builder(SampleQuerySetName sampleQuerySetName) { + this.project = sampleQuerySetName.project; + this.location = sampleQuerySetName.location; + this.sampleQuerySet = sampleQuerySetName.sampleQuerySet; + } + + public SampleQuerySetName build() { + return new SampleQuerySetName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetOrBuilder.java new file mode 100644 index 000000000000..973cafa1c38e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface SampleQuerySetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SampleQuerySet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], in
      +   * the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Identifier. The full resource name of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], in
      +   * the format of
      +   * `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 1024
      +   * characters.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Required. The sample query set display name.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 128
      +   * characters.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
      +   * Required. The sample query set display name.
      +   *
      +   * This field must be a UTF-8 encoded string with a length limit of 128
      +   * characters.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +   * created at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +   * created at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
      +   * Output only. Timestamp the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was
      +   * created at.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * The description of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +   * 
      + * + * string description = 4; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
      +   * The description of the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].
      +   * 
      + * + * string description = 4; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetProto.java new file mode 100644 index 000000000000..ec2a2c621013 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetProto.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public final class SampleQuerySetProto { + private SampleQuerySetProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SampleQuerySet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SampleQuerySet_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/discoveryengine/v1beta/sa" + + "mple_query_set.proto\022#google.cloud.disco" + + "veryengine.v1beta\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\032\037g" + + "oogle/protobuf/timestamp.proto\"\211\002\n\016Sampl" + + "eQuerySet\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\031\n\014display_" + + "name\030\002 \001(\tB\003\340A\002\0224\n\013create_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\023\n\013descrip" + + "tion\030\004 \001(\t:~\352A{\n-discoveryengine.googlea" + + "pis.com/SampleQuerySet\022Jprojects/{projec" + + "t}/locations/{location}/sampleQuerySets/" + + "{sample_query_set}B\232\002\n\'com.google.cloud." + + "discoveryengine.v1betaB\023SampleQuerySetPr" + + "otoP\001ZQcloud.google.com/go/discoveryengi" + + "ne/apiv1beta/discoveryenginepb;discovery" + + "enginepb\242\002\017DISCOVERYENGINE\252\002#Google.Clou" + + "d.DiscoveryEngine.V1Beta\312\002#Google\\Cloud\\" + + "DiscoveryEngine\\V1beta\352\002&Google::Cloud::" + + "DiscoveryEngine::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_SampleQuerySet_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_SampleQuerySet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SampleQuerySet_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "CreateTime", "Description", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceProto.java new file mode 100644 index 000000000000..6a80ee992c43 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceProto.java @@ -0,0 +1,215 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public final class SampleQuerySetServiceProto { + private SampleQuerySetServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_GetSampleQuerySetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GetSampleQuerySetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQuerySetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQuerySetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQuerySetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQuerySetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQuerySetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQuerySetRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/discoveryengine/v1beta/sa" + + "mple_query_set_service.proto\022#google.clo" + + "ud.discoveryengine.v1beta\032\034google/api/an" + + "notations.proto\032\027google/api/client.proto" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\032:google/cloud/disco" + + "veryengine/v1beta/sample_query_set.proto" + + "\032\033google/protobuf/empty.proto\032 google/pr" + + "otobuf/field_mask.proto\"_\n\030GetSampleQuer" + + "ySetRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-disco" + + "veryengine.googleapis.com/SampleQuerySet" + + "\"\204\001\n\032ListSampleQuerySetsRequest\022?\n\006paren" + + "t\030\001 \001(\tB/\340A\002\372A)\n\'discoveryengine.googlea" + + "pis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\"\206\001\n\033ListSampleQuerySetsR" + + "esponse\022N\n\021sample_query_sets\030\001 \003(\01323.goo" + + "gle.cloud.discoveryengine.v1beta.SampleQ" + + "uerySet\022\027\n\017next_page_token\030\002 \001(\t\"\324\001\n\033Cre" + + "ateSampleQuerySetRequest\022?\n\006parent\030\001 \001(\t" + + "B/\340A\002\372A)\n\'discoveryengine.googleapis.com" + + "/Location\022R\n\020sample_query_set\030\002 \001(\01323.go" + + "ogle.cloud.discoveryengine.v1beta.Sample" + + "QuerySetB\003\340A\002\022 \n\023sample_query_set_id\030\003 \001" + + "(\tB\003\340A\002\"\242\001\n\033UpdateSampleQuerySetRequest\022" + + "R\n\020sample_query_set\030\001 \001(\01323.google.cloud" + + ".discoveryengine.v1beta.SampleQuerySetB\003" + + "\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMask\"b\n\033DeleteSampleQuerySetRequ" + + "est\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-discoveryengi" + + "ne.googleapis.com/SampleQuerySet2\202\n\n\025Sam" + + "pleQuerySetService\022\317\001\n\021GetSampleQuerySet" + + "\022=.google.cloud.discoveryengine.v1beta.G" + + "etSampleQuerySetRequest\0323.google.cloud.d" + + "iscoveryengine.v1beta.SampleQuerySet\"F\332A" + + "\004name\202\323\344\223\0029\0227/v1beta/{name=projects/*/lo" + + "cations/*/sampleQuerySets/*}\022\342\001\n\023ListSam" + + "pleQuerySets\022?.google.cloud.discoveryeng" + + "ine.v1beta.ListSampleQuerySetsRequest\032@." + + "google.cloud.discoveryengine.v1beta.List" + + "SampleQuerySetsResponse\"H\332A\006parent\202\323\344\223\0029" + + "\0227/v1beta/{parent=projects/*/locations/*" + + "}/sampleQuerySets\022\216\002\n\024CreateSampleQueryS" + + "et\022@.google.cloud.discoveryengine.v1beta" + + ".CreateSampleQuerySetRequest\0323.google.cl" + + "oud.discoveryengine.v1beta.SampleQuerySe" + + "t\"\177\332A+parent,sample_query_set,sample_que" + + "ry_set_id\202\323\344\223\002K\"7/v1beta/{parent=project" + + "s/*/locations/*}/sampleQuerySets:\020sample" + + "_query_set\022\221\002\n\024UpdateSampleQuerySet\022@.go" + + "ogle.cloud.discoveryengine.v1beta.Update" + + "SampleQuerySetRequest\0323.google.cloud.dis" + + "coveryengine.v1beta.SampleQuerySet\"\201\001\332A\034" + + "sample_query_set,update_mask\202\323\344\223\002\\2H/v1b" + + "eta/{sample_query_set.name=projects/*/lo" + + "cations/*/sampleQuerySets/*}:\020sample_que" + + "ry_set\022\270\001\n\024DeleteSampleQuerySet\022@.google" + + ".cloud.discoveryengine.v1beta.DeleteSamp" + + "leQuerySetRequest\032\026.google.protobuf.Empt" + + "y\"F\332A\004name\202\323\344\223\0029*7/v1beta/{name=projects" + + "/*/locations/*/sampleQuerySets/*}\032R\312A\036di" + + "scoveryengine.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platformB\241\002" + + "\n\'com.google.cloud.discoveryengine.v1bet" + + "aB\032SampleQuerySetServiceProtoP\001ZQcloud.g" + + "oogle.com/go/discoveryengine/apiv1beta/d" + + "iscoveryenginepb;discoveryenginepb\242\002\017DIS" + + "COVERYENGINE\252\002#Google.Cloud.DiscoveryEng" + + "ine.V1Beta\312\002#Google\\Cloud\\DiscoveryEngin" + + "e\\V1beta\352\002&Google::Cloud::DiscoveryEngin" + + "e::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.SampleQuerySetProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_GetSampleQuerySetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_GetSampleQuerySetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GetSampleQuerySetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListSampleQuerySetsResponse_descriptor, + new java.lang.String[] { + "SampleQuerySets", "NextPageToken", + }); + internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQuerySetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQuerySetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_CreateSampleQuerySetRequest_descriptor, + new java.lang.String[] { + "Parent", "SampleQuerySet", "SampleQuerySetId", + }); + internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQuerySetRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQuerySetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQuerySetRequest_descriptor, + new java.lang.String[] { + "SampleQuerySet", "UpdateMask", + }); + internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQuerySetRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQuerySetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DeleteSampleQuerySetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.SampleQuerySetProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java index ae09038f5dd3..33480b52af3b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java @@ -49,9 +49,12 @@ private SearchRequest() { filter_ = ""; canonicalFilter_ = ""; orderBy_ = ""; + languageCode_ = ""; + regionCode_ = ""; facetSpecs_ = java.util.Collections.emptyList(); userPseudoId_ = ""; rankingExpression_ = ""; + session_ = ""; } @java.lang.Override @@ -943,8 +946,8 @@ public interface DataStoreSpecOrBuilder * *
          * A struct to define data stores to filter on in a search call and
      -   * configurations for those data stores. A maximum of 1 DataStoreSpec per
      -   * data_store is allowed. Otherwise, an `INVALID_ARGUMENT` error is returned.
      +   * configurations for those data stores. Otherwise, an `INVALID_ARGUMENT`
      +   * error is returned.
          * 
      * * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec} @@ -1210,8 +1213,8 @@ protected Builder newBuilderForType( * *
            * A struct to define data stores to filter on in a search call and
      -     * configurations for those data stores. A maximum of 1 DataStoreSpec per
      -     * data_store is allowed. Otherwise, an `INVALID_ARGUMENT` error is returned.
      +     * configurations for those data stores. Otherwise, an `INVALID_ARGUMENT`
      +     * error is returned.
            * 
      * * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec} @@ -1647,6 +1650,9 @@ public interface FacetSpecOrBuilder * Maximum facet values that are returned for this facet. If * unspecified, defaults to 20. The maximum allowed value is 300. Values * above 300 are coerced to 300. + * For aggregation in healthcare search, when the [FacetKey.key] is + * "healthcare_aggregation_key", the limit will be overridden to + * 10,000 internally, regardless of the value set here. * * If this field is negative, an `INVALID_ARGUMENT` is returned. * @@ -4937,6 +4943,9 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey * Maximum facet values that are returned for this facet. If * unspecified, defaults to 20. The maximum allowed value is 300. Values * above 300 are coerced to 300. + * For aggregation in healthcare search, when the [FacetKey.key] is + * "healthcare_aggregation_key", the limit will be overridden to + * 10,000 internally, regardless of the value set here. * * If this field is negative, an `INVALID_ARGUMENT` is returned. * @@ -5844,6 +5853,9 @@ public Builder clearFacetKey() { * Maximum facet values that are returned for this facet. If * unspecified, defaults to 20. The maximum allowed value is 300. Values * above 300 are coerced to 300. + * For aggregation in healthcare search, when the [FacetKey.key] is + * "healthcare_aggregation_key", the limit will be overridden to + * 10,000 internally, regardless of the value set here. * * If this field is negative, an `INVALID_ARGUMENT` is returned. * @@ -5863,6 +5875,9 @@ public int getLimit() { * Maximum facet values that are returned for this facet. If * unspecified, defaults to 20. The maximum allowed value is 300. Values * above 300 are coerced to 300. + * For aggregation in healthcare search, when the [FacetKey.key] is + * "healthcare_aggregation_key", the limit will be overridden to + * 10,000 internally, regardless of the value set here. * * If this field is negative, an `INVALID_ARGUMENT` is returned. * @@ -5886,6 +5901,9 @@ public Builder setLimit(int value) { * Maximum facet values that are returned for this facet. If * unspecified, defaults to 20. The maximum allowed value is 300. Values * above 300 are coerced to 300. + * For aggregation in healthcare search, when the [FacetKey.key] is + * "healthcare_aggregation_key", the limit will be overridden to + * 10,000 internally, regardless of the value set here. * * If this field is negative, an `INVALID_ARGUMENT` is returned. * @@ -14226,6 +14244,93 @@ public interface ContentSearchSpecOrBuilder com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec .ExtractiveContentSpecOrBuilder getExtractiveContentSpecOrBuilder(); + + /** + * + * + *
      +     * Specifies the search result mode. If unspecified, the
      +     * search result mode defaults to `DOCUMENTS`.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The enum numeric value on the wire for searchResultMode. + */ + int getSearchResultModeValue(); + /** + * + * + *
      +     * Specifies the search result mode. If unspecified, the
      +     * search result mode defaults to `DOCUMENTS`.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The searchResultMode. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + getSearchResultMode(); + + /** + * + * + *
      +     * Specifies the chunk spec to be returned from the search response.
      +     * Only available if the
      +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +     * is set to
      +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + * + * @return Whether the chunkSpec field is set. + */ + boolean hasChunkSpec(); + /** + * + * + *
      +     * Specifies the chunk spec to be returned from the search response.
      +     * Only available if the
      +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +     * is set to
      +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + * + * @return The chunkSpec. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + getChunkSpec(); + /** + * + * + *
      +     * Specifies the chunk spec to be returned from the search response.
      +     * Only available if the
      +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +     * is set to
      +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpecOrBuilder + getChunkSpecOrBuilder(); } /** * @@ -14246,7 +14351,9 @@ private ContentSearchSpec(com.google.protobuf.GeneratedMessageV3.Builder buil super(builder); } - private ContentSearchSpec() {} + private ContentSearchSpec() { + searchResultMode_ = 0; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -14270,6 +14377,173 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } + /** + * + * + *
      +     * Specifies the search result mode. If unspecified, the
      +     * search result mode defaults to `DOCUMENTS`.
      +     * 
      + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode} + */ + public enum SearchResultMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * Default value.
      +       * 
      + * + * SEARCH_RESULT_MODE_UNSPECIFIED = 0; + */ + SEARCH_RESULT_MODE_UNSPECIFIED(0), + /** + * + * + *
      +       * Returns documents in the search result.
      +       * 
      + * + * DOCUMENTS = 1; + */ + DOCUMENTS(1), + /** + * + * + *
      +       * Returns chunks in the search result. Only available if the
      +       * [DataStore.DocumentProcessingConfig.chunking_config][] is specified.
      +       * 
      + * + * CHUNKS = 2; + */ + CHUNKS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +       * Default value.
      +       * 
      + * + * SEARCH_RESULT_MODE_UNSPECIFIED = 0; + */ + public static final int SEARCH_RESULT_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
      +       * Returns documents in the search result.
      +       * 
      + * + * DOCUMENTS = 1; + */ + public static final int DOCUMENTS_VALUE = 1; + /** + * + * + *
      +       * Returns chunks in the search result. Only available if the
      +       * [DataStore.DocumentProcessingConfig.chunking_config][] is specified.
      +       * 
      + * + * CHUNKS = 2; + */ + public static final int CHUNKS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SearchResultMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SearchResultMode forNumber(int value) { + switch (value) { + case 0: + return SEARCH_RESULT_MODE_UNSPECIFIED; + case 1: + return DOCUMENTS; + case 2: + return CHUNKS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SearchResultMode findValueByNumber(int number) { + return SearchResultMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SearchResultMode[] VALUES = values(); + + public static SearchResultMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SearchResultMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode) + } + public interface SnippetSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec) @@ -14288,7 +14562,7 @@ public interface SnippetSpecOrBuilder * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=402 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=406 * @return The maxSnippetCount. */ @java.lang.Deprecated @@ -14306,7 +14580,7 @@ public interface SnippetSpecOrBuilder * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=406 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=410 * @return The referenceOnly. */ @java.lang.Deprecated @@ -14387,7 +14661,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=402 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=406 * @return The maxSnippetCount. */ @java.lang.Override @@ -14410,7 +14684,7 @@ public int getMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=406 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=410 * @return The referenceOnly. */ @java.lang.Override @@ -14888,7 +15162,7 @@ public Builder mergeFrom( * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=402 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=406 * @return The maxSnippetCount. */ @java.lang.Override @@ -14909,7 +15183,7 @@ public int getMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=402 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=406 * @param value The maxSnippetCount to set. * @return This builder for chaining. */ @@ -14934,7 +15208,7 @@ public Builder setMaxSnippetCount(int value) { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=402 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=406 * @return This builder for chaining. */ @java.lang.Deprecated @@ -14958,7 +15232,7 @@ public Builder clearMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=406 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=410 * @return The referenceOnly. */ @java.lang.Override @@ -14978,7 +15252,7 @@ public boolean getReferenceOnly() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=406 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=410 * @param value The referenceOnly to set. * @return This builder for chaining. */ @@ -15002,7 +15276,7 @@ public Builder setReferenceOnly(boolean value) { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=406 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=410 * @return This builder for chaining. */ @java.lang.Deprecated @@ -15158,8 +15432,9 @@ public interface SummarySpecOrBuilder * * At most 10 results for documents mode, or 50 for chunks mode, can be * used to generate a summary. The chunks mode is used when - * [SearchRequest.ContentSearchSpec.search_result_mode][] is set to - * [CHUNKS][SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. + * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] + * is set to + * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. * * * int32 summary_result_count = 1; @@ -16983,8 +17258,9 @@ public com.google.protobuf.Parser getParserForType() { * * At most 10 results for documents mode, or 50 for chunks mode, can be * used to generate a summary. The chunks mode is used when - * [SearchRequest.ContentSearchSpec.search_result_mode][] is set to - * [CHUNKS][SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. + * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] + * is set to + * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. * * * int32 summary_result_count = 1; @@ -17897,8 +18173,9 @@ public Builder mergeFrom( * * At most 10 results for documents mode, or 50 for chunks mode, can be * used to generate a summary. The chunks mode is used when - * [SearchRequest.ContentSearchSpec.search_result_mode][] is set to - * [CHUNKS][SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. + * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] + * is set to + * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. * * * int32 summary_result_count = 1; @@ -17919,8 +18196,9 @@ public int getSummaryResultCount() { * * At most 10 results for documents mode, or 50 for chunks mode, can be * used to generate a summary. The chunks mode is used when - * [SearchRequest.ContentSearchSpec.search_result_mode][] is set to - * [CHUNKS][SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. + * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] + * is set to + * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. * * * int32 summary_result_count = 1; @@ -17945,8 +18223,9 @@ public Builder setSummaryResultCount(int value) { * * At most 10 results for documents mode, or 50 for chunks mode, can be * used to generate a summary. The chunks mode is used when - * [SearchRequest.ContentSearchSpec.search_result_mode][] is set to - * [CHUNKS][SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. + * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] + * is set to + * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. * * * int32 summary_result_count = 1; @@ -20181,1047 +20460,5767 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - public static final int SNIPPET_SPEC_FIELD_NUMBER = 1; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - snippetSpec_; - /** - * - * - *
      -     * If `snippetSpec` is not specified, snippets are not included in the
      -     * search response.
      -     * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * - * @return Whether the snippetSpec field is set. - */ - @java.lang.Override - public boolean hasSnippetSpec() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
      -     * If `snippetSpec` is not specified, snippets are not included in the
      -     * search response.
      -     * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * - * @return The snippetSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - getSnippetSpec() { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; - } - /** - * - * - *
      -     * If `snippetSpec` is not specified, snippets are not included in the
      -     * search response.
      -     * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder - getSnippetSpecOrBuilder() { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; - } + public interface ChunkSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) + com.google.protobuf.MessageOrBuilder { - public static final int SUMMARY_SPEC_FIELD_NUMBER = 2; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - summarySpec_; - /** - * - * - *
      -     * If `summarySpec` is not specified, summaries are not included in the
      -     * search response.
      -     * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * - * @return Whether the summarySpec field is set. - */ - @java.lang.Override - public boolean hasSummarySpec() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
      -     * If `summarySpec` is not specified, summaries are not included in the
      -     * search response.
      -     * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * - * @return The summarySpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec() { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; - } - /** - * - * - *
      -     * If `summarySpec` is not specified, summaries are not included in the
      -     * search response.
      -     * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder - getSummarySpecOrBuilder() { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; - } + /** + * + * + *
      +       * The number of previous chunks to be returned of the current chunk. The
      +       * maximum allowed value is 3.
      +       * If not specified, no previous chunks will be returned.
      +       * 
      + * + * int32 num_previous_chunks = 1; + * + * @return The numPreviousChunks. + */ + int getNumPreviousChunks(); - public static final int EXTRACTIVE_CONTENT_SPEC_FIELD_NUMBER = 3; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - extractiveContentSpec_; - /** - * - * - *
      -     * If there is no extractive_content_spec provided, there will be no
      -     * extractive answer in the search response.
      -     * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - * - * @return Whether the extractiveContentSpec field is set. - */ - @java.lang.Override - public boolean hasExtractiveContentSpec() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
      -     * If there is no extractive_content_spec provided, there will be no
      -     * extractive answer in the search response.
      -     * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - * - * @return The extractiveContentSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - getExtractiveContentSpec() { - return extractiveContentSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance() - : extractiveContentSpec_; + /** + * + * + *
      +       * The number of next chunks to be returned of the current chunk. The
      +       * maximum allowed value is 3.
      +       * If not specified, no next chunks will be returned.
      +       * 
      + * + * int32 num_next_chunks = 2; + * + * @return The numNextChunks. + */ + int getNumNextChunks(); } /** * * *
      -     * If there is no extractive_content_spec provided, there will be no
      -     * extractive answer in the search response.
      +     * Specifies the chunk spec to be returned from the search response.
      +     * Only available if the
      +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +     * is set to
      +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            * 
      * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec} */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder - getExtractiveContentSpecOrBuilder() { - return extractiveContentSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance() - : extractiveContentSpec_; - } + public static final class ChunkSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) + ChunkSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChunkSpec.newBuilder() to construct. + private ChunkSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - private byte memoizedIsInitialized = -1; + private ChunkSpec() {} - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChunkSpec(); + } - memoizedIsInitialized = 1; - return true; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_descriptor; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getSnippetSpec()); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .Builder.class); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getSummarySpec()); + + public static final int NUM_PREVIOUS_CHUNKS_FIELD_NUMBER = 1; + private int numPreviousChunks_ = 0; + /** + * + * + *
      +       * The number of previous chunks to be returned of the current chunk. The
      +       * maximum allowed value is 3.
      +       * If not specified, no previous chunks will be returned.
      +       * 
      + * + * int32 num_previous_chunks = 1; + * + * @return The numPreviousChunks. + */ + @java.lang.Override + public int getNumPreviousChunks() { + return numPreviousChunks_; } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getExtractiveContentSpec()); + + public static final int NUM_NEXT_CHUNKS_FIELD_NUMBER = 2; + private int numNextChunks_ = 0; + /** + * + * + *
      +       * The number of next chunks to be returned of the current chunk. The
      +       * maximum allowed value is 3.
      +       * If not specified, no next chunks will be returned.
      +       * 
      + * + * int32 num_next_chunks = 2; + * + * @return The numNextChunks. + */ + @java.lang.Override + public int getNumNextChunks() { + return numNextChunks_; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private byte memoizedIsInitialized = -1; - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnippetSpec()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSummarySpec()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExtractiveContentSpec()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { + memoizedIsInitialized = 1; return true; } - if (!(obj - instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) obj; - if (hasSnippetSpec() != other.hasSnippetSpec()) return false; - if (hasSnippetSpec()) { - if (!getSnippetSpec().equals(other.getSnippetSpec())) return false; - } - if (hasSummarySpec() != other.hasSummarySpec()) return false; - if (hasSummarySpec()) { - if (!getSummarySpec().equals(other.getSummarySpec())) return false; - } - if (hasExtractiveContentSpec() != other.hasExtractiveContentSpec()) return false; - if (hasExtractiveContentSpec()) { - if (!getExtractiveContentSpec().equals(other.getExtractiveContentSpec())) return false; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (numPreviousChunks_ != 0) { + output.writeInt32(1, numPreviousChunks_); + } + if (numNextChunks_ != 0) { + output.writeInt32(2, numNextChunks_); + } + getUnknownFields().writeTo(output); } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSnippetSpec()) { - hash = (37 * hash) + SNIPPET_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSnippetSpec().hashCode(); - } - if (hasSummarySpec()) { - hash = (37 * hash) + SUMMARY_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSummarySpec().hashCode(); - } - if (hasExtractiveContentSpec()) { - hash = (37 * hash) + EXTRACTIVE_CONTENT_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getExtractiveContentSpec().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
      -     * A specification for configuring the behavior of content search.
      -     * 
      - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; + size = 0; + if (numPreviousChunks_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, numPreviousChunks_); + } + if (numNextChunks_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numNextChunks_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder - .class); - } - - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) obj; - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + if (getNumPreviousChunks() != other.getNumPreviousChunks()) return false; + if (getNumNextChunks() != other.getNumNextChunks()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSnippetSpecFieldBuilder(); - getSummarySpecFieldBuilder(); - getExtractiveContentSpecFieldBuilder(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NUM_PREVIOUS_CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + getNumPreviousChunks(); + hash = (37 * hash) + NUM_NEXT_CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + getNumNextChunks(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - snippetSpec_ = null; - if (snippetSpecBuilder_ != null) { - snippetSpecBuilder_.dispose(); - snippetSpecBuilder_ = null; - } - summarySpec_ = null; - if (summarySpecBuilder_ != null) { - summarySpecBuilder_.dispose(); - summarySpecBuilder_ = null; - } - extractiveContentSpec_ = null; - if (extractiveContentSpecBuilder_ != null) { - extractiveContentSpecBuilder_.dispose(); - extractiveContentSpecBuilder_ = null; - } - return this; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance(); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.snippetSpec_ = - snippetSpecBuilder_ == null ? snippetSpec_ : snippetSpecBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.summarySpec_ = - summarySpecBuilder_ == null ? summarySpec_ : summarySpecBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.extractiveContentSpec_ = - extractiveContentSpecBuilder_ == null - ? extractiveContentSpec_ - : extractiveContentSpecBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public Builder clone() { - return super.clone(); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) other); - } else { - super.mergeFrom(other); - return this; - } + public Builder newBuilderForType() { + return newBuilder(); } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance()) return this; - if (other.hasSnippetSpec()) { - mergeSnippetSpec(other.getSnippetSpec()); - } - if (other.hasSummarySpec()) { - mergeSummarySpec(other.getSummarySpec()); - } - if (other.hasExtractiveContentSpec()) { - mergeExtractiveContentSpec(other.getExtractiveContentSpec()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - @java.lang.Override - public final boolean isInitialized() { - return true; + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getSnippetSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getSummarySpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getExtractiveContentSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - private int bitField0_; - - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - snippetSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder> - snippetSpecBuilder_; - /** - * - * - *
      -       * If `snippetSpec` is not specified, snippets are not included in the
      -       * search response.
      -       * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * - * @return Whether the snippetSpec field is set. - */ - public boolean hasSnippetSpec() { - return ((bitField0_ & 0x00000001) != 0); + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
      -       * If `snippetSpec` is not specified, snippets are not included in the
      -       * search response.
      +       * Specifies the chunk spec to be returned from the search response.
      +       * Only available if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
              * 
      * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * - * @return The snippetSpec. + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec} */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - getSnippetSpec() { - if (snippetSpecBuilder_ == null) { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; - } else { - return snippetSpecBuilder_.getMessage(); + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_descriptor; } - } - /** - * - * - *
      -       * If `snippetSpec` is not specified, snippets are not included in the
      -       * search response.
      -       * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - */ - public Builder setSnippetSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - value) { - if (snippetSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - snippetSpec_ = value; - } else { - snippetSpecBuilder_.setMessage(value); + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .Builder.class); } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + numPreviousChunks_ = 0; + numNextChunks_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.numPreviousChunks_ = numPreviousChunks_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.numNextChunks_ = numNextChunks_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .getDefaultInstance()) return this; + if (other.getNumPreviousChunks() != 0) { + setNumPreviousChunks(other.getNumPreviousChunks()); + } + if (other.getNumNextChunks() != 0) { + setNumNextChunks(other.getNumNextChunks()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + numPreviousChunks_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + numNextChunks_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int numPreviousChunks_; + /** + * + * + *
      +         * The number of previous chunks to be returned of the current chunk. The
      +         * maximum allowed value is 3.
      +         * If not specified, no previous chunks will be returned.
      +         * 
      + * + * int32 num_previous_chunks = 1; + * + * @return The numPreviousChunks. + */ + @java.lang.Override + public int getNumPreviousChunks() { + return numPreviousChunks_; + } + /** + * + * + *
      +         * The number of previous chunks to be returned of the current chunk. The
      +         * maximum allowed value is 3.
      +         * If not specified, no previous chunks will be returned.
      +         * 
      + * + * int32 num_previous_chunks = 1; + * + * @param value The numPreviousChunks to set. + * @return This builder for chaining. + */ + public Builder setNumPreviousChunks(int value) { + + numPreviousChunks_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +         * The number of previous chunks to be returned of the current chunk. The
      +         * maximum allowed value is 3.
      +         * If not specified, no previous chunks will be returned.
      +         * 
      + * + * int32 num_previous_chunks = 1; + * + * @return This builder for chaining. + */ + public Builder clearNumPreviousChunks() { + bitField0_ = (bitField0_ & ~0x00000001); + numPreviousChunks_ = 0; + onChanged(); + return this; + } + + private int numNextChunks_; + /** + * + * + *
      +         * The number of next chunks to be returned of the current chunk. The
      +         * maximum allowed value is 3.
      +         * If not specified, no next chunks will be returned.
      +         * 
      + * + * int32 num_next_chunks = 2; + * + * @return The numNextChunks. + */ + @java.lang.Override + public int getNumNextChunks() { + return numNextChunks_; + } + /** + * + * + *
      +         * The number of next chunks to be returned of the current chunk. The
      +         * maximum allowed value is 3.
      +         * If not specified, no next chunks will be returned.
      +         * 
      + * + * int32 num_next_chunks = 2; + * + * @param value The numNextChunks to set. + * @return This builder for chaining. + */ + public Builder setNumNextChunks(int value) { + + numNextChunks_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +         * The number of next chunks to be returned of the current chunk. The
      +         * maximum allowed value is 3.
      +         * If not specified, no next chunks will be returned.
      +         * 
      + * + * int32 num_next_chunks = 2; + * + * @return This builder for chaining. + */ + public Builder clearNumNextChunks() { + bitField0_ = (bitField0_ & ~0x00000002); + numNextChunks_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChunkSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SNIPPET_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + snippetSpec_; + /** + * + * + *
      +     * If `snippetSpec` is not specified, snippets are not included in the
      +     * search response.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + * + * @return Whether the snippetSpec field is set. + */ + @java.lang.Override + public boolean hasSnippetSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * If `snippetSpec` is not specified, snippets are not included in the
      +     * search response.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + * + * @return The snippetSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + getSnippetSpec() { + return snippetSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .getDefaultInstance() + : snippetSpec_; + } + /** + * + * + *
      +     * If `snippetSpec` is not specified, snippets are not included in the
      +     * search response.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpecOrBuilder + getSnippetSpecOrBuilder() { + return snippetSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .getDefaultInstance() + : snippetSpec_; + } + + public static final int SUMMARY_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + summarySpec_; + /** + * + * + *
      +     * If `summarySpec` is not specified, summaries are not included in the
      +     * search response.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + * + * @return Whether the summarySpec field is set. + */ + @java.lang.Override + public boolean hasSummarySpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * If `summarySpec` is not specified, summaries are not included in the
      +     * search response.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + * + * @return The summarySpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + getSummarySpec() { + return summarySpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .getDefaultInstance() + : summarySpec_; + } + /** + * + * + *
      +     * If `summarySpec` is not specified, summaries are not included in the
      +     * search response.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpecOrBuilder + getSummarySpecOrBuilder() { + return summarySpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .getDefaultInstance() + : summarySpec_; + } + + public static final int EXTRACTIVE_CONTENT_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + extractiveContentSpec_; + /** + * + * + *
      +     * If there is no extractive_content_spec provided, there will be no
      +     * extractive answer in the search response.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + * + * @return Whether the extractiveContentSpec field is set. + */ + @java.lang.Override + public boolean hasExtractiveContentSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +     * If there is no extractive_content_spec provided, there will be no
      +     * extractive answer in the search response.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + * + * @return The extractiveContentSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + getExtractiveContentSpec() { + return extractiveContentSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.getDefaultInstance() + : extractiveContentSpec_; + } + /** + * + * + *
      +     * If there is no extractive_content_spec provided, there will be no
      +     * extractive answer in the search response.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpecOrBuilder + getExtractiveContentSpecOrBuilder() { + return extractiveContentSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.getDefaultInstance() + : extractiveContentSpec_; + } + + public static final int SEARCH_RESULT_MODE_FIELD_NUMBER = 4; + private int searchResultMode_ = 0; + /** + * + * + *
      +     * Specifies the search result mode. If unspecified, the
      +     * search result mode defaults to `DOCUMENTS`.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The enum numeric value on the wire for searchResultMode. + */ + @java.lang.Override + public int getSearchResultModeValue() { + return searchResultMode_; + } + /** + * + * + *
      +     * Specifies the search result mode. If unspecified, the
      +     * search result mode defaults to `DOCUMENTS`.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The searchResultMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + getSearchResultMode() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.forNumber(searchResultMode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + .UNRECOGNIZED + : result; + } + + public static final int CHUNK_SPEC_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + chunkSpec_; + /** + * + * + *
      +     * Specifies the chunk spec to be returned from the search response.
      +     * Only available if the
      +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +     * is set to
      +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + * + * @return Whether the chunkSpec field is set. + */ + @java.lang.Override + public boolean hasChunkSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
      +     * Specifies the chunk spec to be returned from the search response.
      +     * Only available if the
      +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +     * is set to
      +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + * + * @return The chunkSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + getChunkSpec() { + return chunkSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .getDefaultInstance() + : chunkSpec_; + } + /** + * + * + *
      +     * Specifies the chunk spec to be returned from the search response.
      +     * Only available if the
      +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +     * is set to
      +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpecOrBuilder + getChunkSpecOrBuilder() { + return chunkSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .getDefaultInstance() + : chunkSpec_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSnippetSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSummarySpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getExtractiveContentSpec()); + } + if (searchResultMode_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.SEARCH_RESULT_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, searchResultMode_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getChunkSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnippetSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSummarySpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExtractiveContentSpec()); + } + if (searchResultMode_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.SEARCH_RESULT_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, searchResultMode_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getChunkSpec()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) obj; + + if (hasSnippetSpec() != other.hasSnippetSpec()) return false; + if (hasSnippetSpec()) { + if (!getSnippetSpec().equals(other.getSnippetSpec())) return false; + } + if (hasSummarySpec() != other.hasSummarySpec()) return false; + if (hasSummarySpec()) { + if (!getSummarySpec().equals(other.getSummarySpec())) return false; + } + if (hasExtractiveContentSpec() != other.hasExtractiveContentSpec()) return false; + if (hasExtractiveContentSpec()) { + if (!getExtractiveContentSpec().equals(other.getExtractiveContentSpec())) return false; + } + if (searchResultMode_ != other.searchResultMode_) return false; + if (hasChunkSpec() != other.hasChunkSpec()) return false; + if (hasChunkSpec()) { + if (!getChunkSpec().equals(other.getChunkSpec())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSnippetSpec()) { + hash = (37 * hash) + SNIPPET_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSnippetSpec().hashCode(); + } + if (hasSummarySpec()) { + hash = (37 * hash) + SUMMARY_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSummarySpec().hashCode(); + } + if (hasExtractiveContentSpec()) { + hash = (37 * hash) + EXTRACTIVE_CONTENT_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getExtractiveContentSpec().hashCode(); + } + hash = (37 * hash) + SEARCH_RESULT_MODE_FIELD_NUMBER; + hash = (53 * hash) + searchResultMode_; + if (hasChunkSpec()) { + hash = (37 * hash) + CHUNK_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getChunkSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * A specification for configuring the behavior of content search.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSnippetSpecFieldBuilder(); + getSummarySpecFieldBuilder(); + getExtractiveContentSpecFieldBuilder(); + getChunkSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + snippetSpec_ = null; + if (snippetSpecBuilder_ != null) { + snippetSpecBuilder_.dispose(); + snippetSpecBuilder_ = null; + } + summarySpec_ = null; + if (summarySpecBuilder_ != null) { + summarySpecBuilder_.dispose(); + summarySpecBuilder_ = null; + } + extractiveContentSpec_ = null; + if (extractiveContentSpecBuilder_ != null) { + extractiveContentSpecBuilder_.dispose(); + extractiveContentSpecBuilder_ = null; + } + searchResultMode_ = 0; + chunkSpec_ = null; + if (chunkSpecBuilder_ != null) { + chunkSpecBuilder_.dispose(); + chunkSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snippetSpec_ = + snippetSpecBuilder_ == null ? snippetSpec_ : snippetSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.summarySpec_ = + summarySpecBuilder_ == null ? summarySpec_ : summarySpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.extractiveContentSpec_ = + extractiveContentSpecBuilder_ == null + ? extractiveContentSpec_ + : extractiveContentSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.searchResultMode_ = searchResultMode_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.chunkSpec_ = chunkSpecBuilder_ == null ? chunkSpec_ : chunkSpecBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .getDefaultInstance()) return this; + if (other.hasSnippetSpec()) { + mergeSnippetSpec(other.getSnippetSpec()); + } + if (other.hasSummarySpec()) { + mergeSummarySpec(other.getSummarySpec()); + } + if (other.hasExtractiveContentSpec()) { + mergeExtractiveContentSpec(other.getExtractiveContentSpec()); + } + if (other.searchResultMode_ != 0) { + setSearchResultModeValue(other.getSearchResultModeValue()); + } + if (other.hasChunkSpec()) { + mergeChunkSpec(other.getChunkSpec()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSnippetSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSummarySpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getExtractiveContentSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + searchResultMode_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getChunkSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + snippetSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpecOrBuilder> + snippetSpecBuilder_; + /** + * + * + *
      +       * If `snippetSpec` is not specified, snippets are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + * + * @return Whether the snippetSpec field is set. + */ + public boolean hasSnippetSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +       * If `snippetSpec` is not specified, snippets are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + * + * @return The snippetSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + getSnippetSpec() { + if (snippetSpecBuilder_ == null) { + return snippetSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .getDefaultInstance() + : snippetSpec_; + } else { + return snippetSpecBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * If `snippetSpec` is not specified, snippets are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + public Builder setSnippetSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + value) { + if (snippetSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snippetSpec_ = value; + } else { + snippetSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * If `snippetSpec` is not specified, snippets are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + public Builder setSnippetSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .Builder + builderForValue) { + if (snippetSpecBuilder_ == null) { + snippetSpec_ = builderForValue.build(); + } else { + snippetSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * If `snippetSpec` is not specified, snippets are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + public Builder mergeSnippetSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + value) { + if (snippetSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && snippetSpec_ != null + && snippetSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpec.getDefaultInstance()) { + getSnippetSpecBuilder().mergeFrom(value); + } else { + snippetSpec_ = value; + } + } else { + snippetSpecBuilder_.mergeFrom(value); + } + if (snippetSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * If `snippetSpec` is not specified, snippets are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + public Builder clearSnippetSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + snippetSpec_ = null; + if (snippetSpecBuilder_ != null) { + snippetSpecBuilder_.dispose(); + snippetSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * If `snippetSpec` is not specified, snippets are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .Builder + getSnippetSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSnippetSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * If `snippetSpec` is not specified, snippets are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpecOrBuilder + getSnippetSpecOrBuilder() { + if (snippetSpecBuilder_ != null) { + return snippetSpecBuilder_.getMessageOrBuilder(); + } else { + return snippetSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .getDefaultInstance() + : snippetSpec_; + } + } + /** + * + * + *
      +       * If `snippetSpec` is not specified, snippets are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpecOrBuilder> + getSnippetSpecFieldBuilder() { + if (snippetSpecBuilder_ == null) { + snippetSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpecOrBuilder>(getSnippetSpec(), getParentForChildren(), isClean()); + snippetSpec_ = null; + } + return snippetSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + summarySpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpecOrBuilder> + summarySpecBuilder_; + /** + * + * + *
      +       * If `summarySpec` is not specified, summaries are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + * + * @return Whether the summarySpec field is set. + */ + public boolean hasSummarySpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +       * If `summarySpec` is not specified, summaries are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + * + * @return The summarySpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + getSummarySpec() { + if (summarySpecBuilder_ == null) { + return summarySpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .getDefaultInstance() + : summarySpec_; + } else { + return summarySpecBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * If `summarySpec` is not specified, summaries are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + public Builder setSummarySpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + value) { + if (summarySpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + summarySpec_ = value; + } else { + summarySpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * If `summarySpec` is not specified, summaries are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + public Builder setSummarySpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .Builder + builderForValue) { + if (summarySpecBuilder_ == null) { + summarySpec_ = builderForValue.build(); + } else { + summarySpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * If `summarySpec` is not specified, summaries are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + public Builder mergeSummarySpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + value) { + if (summarySpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && summarySpec_ != null + && summarySpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.getDefaultInstance()) { + getSummarySpecBuilder().mergeFrom(value); + } else { + summarySpec_ = value; + } + } else { + summarySpecBuilder_.mergeFrom(value); + } + if (summarySpec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * If `summarySpec` is not specified, summaries are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + public Builder clearSummarySpec() { + bitField0_ = (bitField0_ & ~0x00000002); + summarySpec_ = null; + if (summarySpecBuilder_ != null) { + summarySpecBuilder_.dispose(); + summarySpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * If `summarySpec` is not specified, summaries are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .Builder + getSummarySpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSummarySpecFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * If `summarySpec` is not specified, summaries are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpecOrBuilder + getSummarySpecOrBuilder() { + if (summarySpecBuilder_ != null) { + return summarySpecBuilder_.getMessageOrBuilder(); + } else { + return summarySpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .getDefaultInstance() + : summarySpec_; + } + } + /** + * + * + *
      +       * If `summarySpec` is not specified, summaries are not included in the
      +       * search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpecOrBuilder> + getSummarySpecFieldBuilder() { + if (summarySpecBuilder_ == null) { + summarySpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpecOrBuilder>(getSummarySpec(), getParentForChildren(), isClean()); + summarySpec_ = null; + } + return summarySpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + extractiveContentSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpecOrBuilder> + extractiveContentSpecBuilder_; + /** + * + * + *
      +       * If there is no extractive_content_spec provided, there will be no
      +       * extractive answer in the search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + * + * @return Whether the extractiveContentSpec field is set. + */ + public boolean hasExtractiveContentSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +       * If there is no extractive_content_spec provided, there will be no
      +       * extractive answer in the search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + * + * @return The extractiveContentSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + getExtractiveContentSpec() { + if (extractiveContentSpecBuilder_ == null) { + return extractiveContentSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.getDefaultInstance() + : extractiveContentSpec_; + } else { + return extractiveContentSpecBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * If there is no extractive_content_spec provided, there will be no
      +       * extractive answer in the search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + public Builder setExtractiveContentSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + value) { + if (extractiveContentSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + extractiveContentSpec_ = value; + } else { + extractiveContentSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +       * If there is no extractive_content_spec provided, there will be no
      +       * extractive answer in the search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + public Builder setExtractiveContentSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.Builder + builderForValue) { + if (extractiveContentSpecBuilder_ == null) { + extractiveContentSpec_ = builderForValue.build(); + } else { + extractiveContentSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +       * If there is no extractive_content_spec provided, there will be no
      +       * extractive answer in the search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + public Builder mergeExtractiveContentSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + value) { + if (extractiveContentSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && extractiveContentSpec_ != null + && extractiveContentSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.getDefaultInstance()) { + getExtractiveContentSpecBuilder().mergeFrom(value); + } else { + extractiveContentSpec_ = value; + } + } else { + extractiveContentSpecBuilder_.mergeFrom(value); + } + if (extractiveContentSpec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * If there is no extractive_content_spec provided, there will be no
      +       * extractive answer in the search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + public Builder clearExtractiveContentSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + extractiveContentSpec_ = null; + if (extractiveContentSpecBuilder_ != null) { + extractiveContentSpecBuilder_.dispose(); + extractiveContentSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * If there is no extractive_content_spec provided, there will be no
      +       * extractive answer in the search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.Builder + getExtractiveContentSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getExtractiveContentSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * If there is no extractive_content_spec provided, there will be no
      +       * extractive answer in the search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpecOrBuilder + getExtractiveContentSpecOrBuilder() { + if (extractiveContentSpecBuilder_ != null) { + return extractiveContentSpecBuilder_.getMessageOrBuilder(); + } else { + return extractiveContentSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.getDefaultInstance() + : extractiveContentSpec_; + } + } + /** + * + * + *
      +       * If there is no extractive_content_spec provided, there will be no
      +       * extractive answer in the search response.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpecOrBuilder> + getExtractiveContentSpecFieldBuilder() { + if (extractiveContentSpecBuilder_ == null) { + extractiveContentSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpecOrBuilder>( + getExtractiveContentSpec(), getParentForChildren(), isClean()); + extractiveContentSpec_ = null; + } + return extractiveContentSpecBuilder_; + } + + private int searchResultMode_ = 0; + /** + * + * + *
      +       * Specifies the search result mode. If unspecified, the
      +       * search result mode defaults to `DOCUMENTS`.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The enum numeric value on the wire for searchResultMode. + */ + @java.lang.Override + public int getSearchResultModeValue() { + return searchResultMode_; + } + /** + * + * + *
      +       * Specifies the search result mode. If unspecified, the
      +       * search result mode defaults to `DOCUMENTS`.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @param value The enum numeric value on the wire for searchResultMode to set. + * @return This builder for chaining. + */ + public Builder setSearchResultModeValue(int value) { + searchResultMode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +       * Specifies the search result mode. If unspecified, the
      +       * search result mode defaults to `DOCUMENTS`.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The searchResultMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode + getSearchResultMode() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.forNumber(searchResultMode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.UNRECOGNIZED + : result; + } + /** + * + * + *
      +       * Specifies the search result mode. If unspecified, the
      +       * search result mode defaults to `DOCUMENTS`.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @param value The searchResultMode to set. + * @return This builder for chaining. + */ + public Builder setSearchResultMode( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + searchResultMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
      +       * Specifies the search result mode. If unspecified, the
      +       * search result mode defaults to `DOCUMENTS`.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearSearchResultMode() { + bitField0_ = (bitField0_ & ~0x00000008); + searchResultMode_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + chunkSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpecOrBuilder> + chunkSpecBuilder_; + /** + * + * + *
      +       * Specifies the chunk spec to be returned from the search response.
      +       * Only available if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + * + * @return Whether the chunkSpec field is set. + */ + public boolean hasChunkSpec() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +       * Specifies the chunk spec to be returned from the search response.
      +       * Only available if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + * + * @return The chunkSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + getChunkSpec() { + if (chunkSpecBuilder_ == null) { + return chunkSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .getDefaultInstance() + : chunkSpec_; + } else { + return chunkSpecBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * Specifies the chunk spec to be returned from the search response.
      +       * Only available if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + public Builder setChunkSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec value) { + if (chunkSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkSpec_ = value; + } else { + chunkSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +       * Specifies the chunk spec to be returned from the search response.
      +       * Only available if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + public Builder setChunkSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.Builder + builderForValue) { + if (chunkSpecBuilder_ == null) { + chunkSpec_ = builderForValue.build(); + } else { + chunkSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +       * Specifies the chunk spec to be returned from the search response.
      +       * Only available if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + public Builder mergeChunkSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec value) { + if (chunkSpecBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && chunkSpec_ != null + && chunkSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec.getDefaultInstance()) { + getChunkSpecBuilder().mergeFrom(value); + } else { + chunkSpec_ = value; + } + } else { + chunkSpecBuilder_.mergeFrom(value); + } + if (chunkSpec_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * Specifies the chunk spec to be returned from the search response.
      +       * Only available if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + public Builder clearChunkSpec() { + bitField0_ = (bitField0_ & ~0x00000010); + chunkSpec_ = null; + if (chunkSpecBuilder_ != null) { + chunkSpecBuilder_.dispose(); + chunkSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * Specifies the chunk spec to be returned from the search response.
      +       * Only available if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .Builder + getChunkSpecBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getChunkSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * Specifies the chunk spec to be returned from the search response.
      +       * Only available if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpecOrBuilder + getChunkSpecOrBuilder() { + if (chunkSpecBuilder_ != null) { + return chunkSpecBuilder_.getMessageOrBuilder(); + } else { + return chunkSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .getDefaultInstance() + : chunkSpec_; + } + } + /** + * + * + *
      +       * Specifies the chunk spec to be returned from the search response.
      +       * Only available if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpecOrBuilder> + getChunkSpecFieldBuilder() { + if (chunkSpecBuilder_ == null) { + chunkSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpecOrBuilder>(getChunkSpec(), getParentForChildren(), isClean()); + chunkSpec_ = null; + } + return chunkSpecBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentSearchSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EmbeddingSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * The embedding vector used for retrieval. Limit to 1.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> + getEmbeddingVectorsList(); + /** + * + * + *
      +     * The embedding vector used for retrieval. Limit to 1.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + getEmbeddingVectors(int index); + /** + * + * + *
      +     * The embedding vector used for retrieval. Limit to 1.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + int getEmbeddingVectorsCount(); + /** + * + * + *
      +     * The embedding vector used for retrieval. Limit to 1.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder> + getEmbeddingVectorsOrBuilderList(); + /** + * + * + *
      +     * The embedding vector used for retrieval. Limit to 1.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder + getEmbeddingVectorsOrBuilder(int index); + } + /** + * + * + *
      +   * The specification that uses customized query embedding vector to do
      +   * semantic document retrieval.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec} + */ + public static final class EmbeddingSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) + EmbeddingSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmbeddingSpec.newBuilder() to construct. + private EmbeddingSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmbeddingSpec() { + embeddingVectors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EmbeddingSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder.class); + } + + public interface EmbeddingVectorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * Embedding field path in schema.
      +       * 
      + * + * string field_path = 1; + * + * @return The fieldPath. + */ + java.lang.String getFieldPath(); + /** + * + * + *
      +       * Embedding field path in schema.
      +       * 
      + * + * string field_path = 1; + * + * @return The bytes for fieldPath. + */ + com.google.protobuf.ByteString getFieldPathBytes(); + + /** + * + * + *
      +       * Query embedding vector.
      +       * 
      + * + * repeated float vector = 2; + * + * @return A list containing the vector. + */ + java.util.List getVectorList(); + /** + * + * + *
      +       * Query embedding vector.
      +       * 
      + * + * repeated float vector = 2; + * + * @return The count of vector. + */ + int getVectorCount(); + /** + * + * + *
      +       * Query embedding vector.
      +       * 
      + * + * repeated float vector = 2; + * + * @param index The index of the element to return. + * @return The vector at the given index. + */ + float getVector(int index); + } + /** + * + * + *
      +     * Embedding vector.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector} + */ + public static final class EmbeddingVector extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) + EmbeddingVectorOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmbeddingVector.newBuilder() to construct. + private EmbeddingVector(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmbeddingVector() { + fieldPath_ = ""; + vector_ = emptyFloatList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EmbeddingVector(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder.class); + } + + public static final int FIELD_PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldPath_ = ""; + /** + * + * + *
      +       * Embedding field path in schema.
      +       * 
      + * + * string field_path = 1; + * + * @return The fieldPath. + */ + @java.lang.Override + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } + } + /** + * + * + *
      +       * Embedding field path in schema.
      +       * 
      + * + * string field_path = 1; + * + * @return The bytes for fieldPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VECTOR_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); + /** + * + * + *
      +       * Query embedding vector.
      +       * 
      + * + * repeated float vector = 2; + * + * @return A list containing the vector. + */ + @java.lang.Override + public java.util.List getVectorList() { + return vector_; + } + /** + * + * + *
      +       * Query embedding vector.
      +       * 
      + * + * repeated float vector = 2; + * + * @return The count of vector. + */ + public int getVectorCount() { + return vector_.size(); + } + /** + * + * + *
      +       * Query embedding vector.
      +       * 
      + * + * repeated float vector = 2; + * + * @param index The index of the element to return. + * @return The vector at the given index. + */ + public float getVector(int index) { + return vector_.getFloat(index); + } + + private int vectorMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_); + } + if (getVectorList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(vectorMemoizedSerializedSize); + } + for (int i = 0; i < vector_.size(); i++) { + output.writeFloatNoTag(vector_.getFloat(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldPath_); + } + { + int dataSize = 0; + dataSize = 4 * getVectorList().size(); + size += dataSize; + if (!getVectorList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + vectorMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) + obj; + + if (!getFieldPath().equals(other.getFieldPath())) return false; + if (!getVectorList().equals(other.getVectorList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFieldPath().hashCode(); + if (getVectorCount() > 0) { + hash = (37 * hash) + VECTOR_FIELD_NUMBER; + hash = (53 * hash) + getVectorList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +       * Embedding vector.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldPath_ = ""; + vector_ = emptyFloatList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldPath_ = fieldPath_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + vector_.makeImmutable(); + result.vector_ = vector_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .getDefaultInstance()) return this; + if (!other.getFieldPath().isEmpty()) { + fieldPath_ = other.fieldPath_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.vector_.isEmpty()) { + if (vector_.isEmpty()) { + vector_ = other.vector_; + vector_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureVectorIsMutable(); + vector_.addAll(other.vector_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + float v = input.readFloat(); + ensureVectorIsMutable(); + vector_.addFloat(v); + break; + } // case 21 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureVectorIsMutable(alloc / 4); + while (input.getBytesUntilLimit() > 0) { + vector_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object fieldPath_ = ""; + /** + * + * + *
      +         * Embedding field path in schema.
      +         * 
      + * + * string field_path = 1; + * + * @return The fieldPath. + */ + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +         * Embedding field path in schema.
      +         * 
      + * + * string field_path = 1; + * + * @return The bytes for fieldPath. + */ + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +         * Embedding field path in schema.
      +         * 
      + * + * string field_path = 1; + * + * @param value The fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +         * Embedding field path in schema.
      +         * 
      + * + * string field_path = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldPath() { + fieldPath_ = getDefaultInstance().getFieldPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +         * Embedding field path in schema.
      +         * 
      + * + * string field_path = 1; + * + * @param value The bytes for fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); + + private void ensureVectorIsMutable() { + if (!vector_.isModifiable()) { + vector_ = makeMutableCopy(vector_); + } + bitField0_ |= 0x00000002; + } + + private void ensureVectorIsMutable(int capacity) { + if (!vector_.isModifiable()) { + vector_ = makeMutableCopy(vector_, capacity); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
      +         * Query embedding vector.
      +         * 
      + * + * repeated float vector = 2; + * + * @return A list containing the vector. + */ + public java.util.List getVectorList() { + vector_.makeImmutable(); + return vector_; + } + /** + * + * + *
      +         * Query embedding vector.
      +         * 
      + * + * repeated float vector = 2; + * + * @return The count of vector. + */ + public int getVectorCount() { + return vector_.size(); + } + /** + * + * + *
      +         * Query embedding vector.
      +         * 
      + * + * repeated float vector = 2; + * + * @param index The index of the element to return. + * @return The vector at the given index. + */ + public float getVector(int index) { + return vector_.getFloat(index); + } + /** + * + * + *
      +         * Query embedding vector.
      +         * 
      + * + * repeated float vector = 2; + * + * @param index The index to set the value at. + * @param value The vector to set. + * @return This builder for chaining. + */ + public Builder setVector(int index, float value) { + + ensureVectorIsMutable(); + vector_.setFloat(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +         * Query embedding vector.
      +         * 
      + * + * repeated float vector = 2; + * + * @param value The vector to add. + * @return This builder for chaining. + */ + public Builder addVector(float value) { + + ensureVectorIsMutable(); + vector_.addFloat(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +         * Query embedding vector.
      +         * 
      + * + * repeated float vector = 2; + * + * @param values The vector to add. + * @return This builder for chaining. + */ + public Builder addAllVector(java.lang.Iterable values) { + ensureVectorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vector_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +         * Query embedding vector.
      +         * 
      + * + * repeated float vector = 2; + * + * @return This builder for chaining. + */ + public Builder clearVector() { + vector_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmbeddingVector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int EMBEDDING_VECTORS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> + embeddingVectors_; + /** + * + * + *
      +     * The embedding vector used for retrieval. Limit to 1.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> + getEmbeddingVectorsList() { + return embeddingVectors_; + } + /** + * + * + *
      +     * The embedding vector used for retrieval. Limit to 1.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder> + getEmbeddingVectorsOrBuilderList() { + return embeddingVectors_; + } + /** + * + * + *
      +     * The embedding vector used for retrieval. Limit to 1.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + @java.lang.Override + public int getEmbeddingVectorsCount() { + return embeddingVectors_.size(); + } + /** + * + * + *
      +     * The embedding vector used for retrieval. Limit to 1.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + getEmbeddingVectors(int index) { + return embeddingVectors_.get(index); + } + /** + * + * + *
      +     * The embedding vector used for retrieval. Limit to 1.
      +     * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder + getEmbeddingVectorsOrBuilder(int index) { + return embeddingVectors_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < embeddingVectors_.size(); i++) { + output.writeMessage(1, embeddingVectors_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < embeddingVectors_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, embeddingVectors_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) obj; + + if (!getEmbeddingVectorsList().equals(other.getEmbeddingVectorsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEmbeddingVectorsCount() > 0) { + hash = (37 * hash) + EMBEDDING_VECTORS_FIELD_NUMBER; + hash = (53 * hash) + getEmbeddingVectorsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * The specification that uses customized query embedding vector to do
      +     * semantic document retrieval.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (embeddingVectorsBuilder_ == null) { + embeddingVectors_ = java.util.Collections.emptyList(); + } else { + embeddingVectors_ = null; + embeddingVectorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result) { + if (embeddingVectorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + embeddingVectors_ = java.util.Collections.unmodifiableList(embeddingVectors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.embeddingVectors_ = embeddingVectors_; + } else { + result.embeddingVectors_ = embeddingVectorsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .getDefaultInstance()) return this; + if (embeddingVectorsBuilder_ == null) { + if (!other.embeddingVectors_.isEmpty()) { + if (embeddingVectors_.isEmpty()) { + embeddingVectors_ = other.embeddingVectors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.addAll(other.embeddingVectors_); + } + onChanged(); + } + } else { + if (!other.embeddingVectors_.isEmpty()) { + if (embeddingVectorsBuilder_.isEmpty()) { + embeddingVectorsBuilder_.dispose(); + embeddingVectorsBuilder_ = null; + embeddingVectors_ = other.embeddingVectors_; + bitField0_ = (bitField0_ & ~0x00000001); + embeddingVectorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEmbeddingVectorsFieldBuilder() + : null; + } else { + embeddingVectorsBuilder_.addAllMessages(other.embeddingVectors_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector.parser(), + extensionRegistry); + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(m); + } else { + embeddingVectorsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> + embeddingVectors_ = java.util.Collections.emptyList(); + + private void ensureEmbeddingVectorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + embeddingVectors_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector>(embeddingVectors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder> + embeddingVectorsBuilder_; + + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> + getEmbeddingVectorsList() { + if (embeddingVectorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(embeddingVectors_); + } else { + return embeddingVectorsBuilder_.getMessageList(); + } + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public int getEmbeddingVectorsCount() { + if (embeddingVectorsBuilder_ == null) { + return embeddingVectors_.size(); + } else { + return embeddingVectorsBuilder_.getCount(); + } + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + getEmbeddingVectors(int index) { + if (embeddingVectorsBuilder_ == null) { + return embeddingVectors_.get(index); + } else { + return embeddingVectorsBuilder_.getMessage(index); + } + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public Builder setEmbeddingVectors( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + value) { + if (embeddingVectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.set(index, value); + onChanged(); + } else { + embeddingVectorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public Builder setEmbeddingVectors( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder + builderForValue) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.set(index, builderForValue.build()); + onChanged(); + } else { + embeddingVectorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public Builder addEmbeddingVectors( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + value) { + if (embeddingVectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(value); + onChanged(); + } else { + embeddingVectorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public Builder addEmbeddingVectors( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + value) { + if (embeddingVectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(index, value); + onChanged(); + } else { + embeddingVectorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public Builder addEmbeddingVectors( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder + builderForValue) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(builderForValue.build()); + onChanged(); + } else { + embeddingVectorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public Builder addEmbeddingVectors( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder + builderForValue) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(index, builderForValue.build()); + onChanged(); + } else { + embeddingVectorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public Builder addAllEmbeddingVectors( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector> + values) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, embeddingVectors_); + onChanged(); + } else { + embeddingVectorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public Builder clearEmbeddingVectors() { + if (embeddingVectorsBuilder_ == null) { + embeddingVectors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + embeddingVectorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public Builder removeEmbeddingVectors(int index) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.remove(index); + onChanged(); + } else { + embeddingVectorsBuilder_.remove(index); + } + return this; + } + /** + * * *
      -       * If `snippetSpec` is not specified, snippets are not included in the
      -       * search response.
      +       * The embedding vector used for retrieval. Limit to 1.
              * 
      * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; * */ - public Builder setSnippetSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder - builderForValue) { - if (snippetSpecBuilder_ == null) { - snippetSpec_ = builderForValue.build(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder + getEmbeddingVectorsBuilder(int index) { + return getEmbeddingVectorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder + getEmbeddingVectorsOrBuilder(int index) { + if (embeddingVectorsBuilder_ == null) { + return embeddingVectors_.get(index); } else { - snippetSpecBuilder_.setMessage(builderForValue.build()); + return embeddingVectorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder> + getEmbeddingVectorsOrBuilderList() { + if (embeddingVectorsBuilder_ != null) { + return embeddingVectorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(embeddingVectors_); + } + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder + addEmbeddingVectorsBuilder() { + return getEmbeddingVectorsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .getDefaultInstance()); + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder + addEmbeddingVectorsBuilder(int index) { + return getEmbeddingVectorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .getDefaultInstance()); + } + /** + * + * + *
      +       * The embedding vector used for retrieval. Limit to 1.
      +       * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder> + getEmbeddingVectorsBuilderList() { + return getEmbeddingVectorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder> + getEmbeddingVectorsFieldBuilder() { + if (embeddingVectorsBuilder_ == null) { + embeddingVectorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder>( + embeddingVectors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + embeddingVectors_ = null; + } + return embeddingVectorsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmbeddingSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NaturalLanguageQueryUnderstandingSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * The condition under which filter extraction should occur.
      +     * Default to [Condition.DISABLED][].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; + * + * + * @return The enum numeric value on the wire for filterExtractionCondition. + */ + int getFilterExtractionConditionValue(); + /** + * + * + *
      +     * The condition under which filter extraction should occur.
      +     * Default to [Condition.DISABLED][].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; + * + * + * @return The filterExtractionCondition. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition + getFilterExtractionCondition(); + + /** + * + * + *
      +     * Field names used for location-based filtering, where geolocation filters
      +     * are detected in natural language search queries.
      +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +     *
      +     * If this field is set, it overrides the field names set in
      +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
      +     * 
      + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return A list containing the geoSearchQueryDetectionFieldNames. + */ + java.util.List getGeoSearchQueryDetectionFieldNamesList(); + /** + * + * + *
      +     * Field names used for location-based filtering, where geolocation filters
      +     * are detected in natural language search queries.
      +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +     *
      +     * If this field is set, it overrides the field names set in
      +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
      +     * 
      + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return The count of geoSearchQueryDetectionFieldNames. + */ + int getGeoSearchQueryDetectionFieldNamesCount(); + /** + * + * + *
      +     * Field names used for location-based filtering, where geolocation filters
      +     * are detected in natural language search queries.
      +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +     *
      +     * If this field is set, it overrides the field names set in
      +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
      +     * 
      + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the element to return. + * @return The geoSearchQueryDetectionFieldNames at the given index. + */ + java.lang.String getGeoSearchQueryDetectionFieldNames(int index); + /** + * + * + *
      +     * Field names used for location-based filtering, where geolocation filters
      +     * are detected in natural language search queries.
      +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +     *
      +     * If this field is set, it overrides the field names set in
      +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
      +     * 
      + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the geoSearchQueryDetectionFieldNames at the given index. + */ + com.google.protobuf.ByteString getGeoSearchQueryDetectionFieldNamesBytes(int index); + } + /** + * + * + *
      +   * Specification to enable natural language understanding capabilities for
      +   * search requests.
      +   * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec} + */ + public static final class NaturalLanguageQueryUnderstandingSpec + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) + NaturalLanguageQueryUnderstandingSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use NaturalLanguageQueryUnderstandingSpec.newBuilder() to construct. + private NaturalLanguageQueryUnderstandingSpec( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NaturalLanguageQueryUnderstandingSpec() { + filterExtractionCondition_ = 0; + geoSearchQueryDetectionFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NaturalLanguageQueryUnderstandingSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder.class); + } + + /** + * + * + *
      +     * Enum describing under which condition filter extraction should occur.
      +     * 
      + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition} + */ + public enum FilterExtractionCondition implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * Server behavior defaults to [Condition.DISABLED][].
      +       * 
      + * + * CONDITION_UNSPECIFIED = 0; + */ + CONDITION_UNSPECIFIED(0), + /** + * + * + *
      +       * Disables NL filter extraction.
      +       * 
      + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
      +       * Enables NL filter extraction.
      +       * 
      + * + * ENABLED = 2; + */ + ENABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +       * Server behavior defaults to [Condition.DISABLED][].
      +       * 
      + * + * CONDITION_UNSPECIFIED = 0; + */ + public static final int CONDITION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
      +       * Disables NL filter extraction.
      +       * 
      + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + * + * + *
      +       * Enables NL filter extraction.
      +       * 
      + * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FilterExtractionCondition valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FilterExtractionCondition forNumber(int value) { + switch (value) { + case 0: + return CONDITION_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FilterExtractionCondition findValueByNumber(int number) { + return FilterExtractionCondition.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final FilterExtractionCondition[] VALUES = values(); + + public static FilterExtractionCondition valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FilterExtractionCondition(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition) + } + + public static final int FILTER_EXTRACTION_CONDITION_FIELD_NUMBER = 1; + private int filterExtractionCondition_ = 0; + /** + * + * + *
      +     * The condition under which filter extraction should occur.
      +     * Default to [Condition.DISABLED][].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; + * + * + * @return The enum numeric value on the wire for filterExtractionCondition. + */ + @java.lang.Override + public int getFilterExtractionConditionValue() { + return filterExtractionCondition_; + } + /** + * + * + *
      +     * The condition under which filter extraction should occur.
      +     * Default to [Condition.DISABLED][].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; + * + * + * @return The filterExtractionCondition. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition + getFilterExtractionCondition() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.forNumber( + filterExtractionCondition_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.UNRECOGNIZED + : result; + } + + public static final int GEO_SEARCH_QUERY_DETECTION_FIELD_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList geoSearchQueryDetectionFieldNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
      +     * Field names used for location-based filtering, where geolocation filters
      +     * are detected in natural language search queries.
      +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +     *
      +     * If this field is set, it overrides the field names set in
      +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
      +     * 
      + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return A list containing the geoSearchQueryDetectionFieldNames. + */ + public com.google.protobuf.ProtocolStringList getGeoSearchQueryDetectionFieldNamesList() { + return geoSearchQueryDetectionFieldNames_; + } + /** + * + * + *
      +     * Field names used for location-based filtering, where geolocation filters
      +     * are detected in natural language search queries.
      +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +     *
      +     * If this field is set, it overrides the field names set in
      +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
      +     * 
      + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return The count of geoSearchQueryDetectionFieldNames. + */ + public int getGeoSearchQueryDetectionFieldNamesCount() { + return geoSearchQueryDetectionFieldNames_.size(); + } + /** + * + * + *
      +     * Field names used for location-based filtering, where geolocation filters
      +     * are detected in natural language search queries.
      +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +     *
      +     * If this field is set, it overrides the field names set in
      +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
      +     * 
      + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the element to return. + * @return The geoSearchQueryDetectionFieldNames at the given index. + */ + public java.lang.String getGeoSearchQueryDetectionFieldNames(int index) { + return geoSearchQueryDetectionFieldNames_.get(index); + } + /** + * + * + *
      +     * Field names used for location-based filtering, where geolocation filters
      +     * are detected in natural language search queries.
      +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +     *
      +     * If this field is set, it overrides the field names set in
      +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
      +     * 
      + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the geoSearchQueryDetectionFieldNames at the given index. + */ + public com.google.protobuf.ByteString getGeoSearchQueryDetectionFieldNamesBytes(int index) { + return geoSearchQueryDetectionFieldNames_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (filterExtractionCondition_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.CONDITION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, filterExtractionCondition_); + } + for (int i = 0; i < geoSearchQueryDetectionFieldNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, geoSearchQueryDetectionFieldNames_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filterExtractionCondition_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.CONDITION_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, filterExtractionCondition_); + } + { + int dataSize = 0; + for (int i = 0; i < geoSearchQueryDetectionFieldNames_.size(); i++) { + dataSize += computeStringSizeNoTag(geoSearchQueryDetectionFieldNames_.getRaw(i)); } - bitField0_ |= 0x00000001; - onChanged(); + size += dataSize; + size += 1 * getGeoSearchQueryDetectionFieldNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec) + obj; + + if (filterExtractionCondition_ != other.filterExtractionCondition_) return false; + if (!getGeoSearchQueryDetectionFieldNamesList() + .equals(other.getGeoSearchQueryDetectionFieldNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FILTER_EXTRACTION_CONDITION_FIELD_NUMBER; + hash = (53 * hash) + filterExtractionCondition_; + if (getGeoSearchQueryDetectionFieldNamesCount() > 0) { + hash = (37 * hash) + GEO_SEARCH_QUERY_DETECTION_FIELD_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getGeoSearchQueryDetectionFieldNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Specification to enable natural language understanding capabilities for
      +     * search requests.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filterExtractionCondition_ = 0; + geoSearchQueryDetectionFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } - /** - * - * - *
      -       * If `snippetSpec` is not specified, snippets are not included in the
      -       * search response.
      -       * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - */ - public Builder mergeSnippetSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - value) { - if (snippetSpecBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && snippetSpec_ != null - && snippetSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec.getDefaultInstance()) { - getSnippetSpecBuilder().mergeFrom(value); - } else { - snippetSpec_ = value; - } - } else { - snippetSpecBuilder_.mergeFrom(value); + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - if (snippetSpec_ != null) { - bitField0_ |= 0x00000001; - onChanged(); + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); } - return this; + onBuilt(); + return result; } - /** - * - * - *
      -       * If `snippetSpec` is not specified, snippets are not included in the
      -       * search response.
      -       * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - */ - public Builder clearSnippetSpec() { - bitField0_ = (bitField0_ & ~0x00000001); - snippetSpec_ = null; - if (snippetSpecBuilder_ != null) { - snippetSpecBuilder_.dispose(); - snippetSpecBuilder_ = null; + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filterExtractionCondition_ = filterExtractionCondition_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + geoSearchQueryDetectionFieldNames_.makeImmutable(); + result.geoSearchQueryDetectionFieldNames_ = geoSearchQueryDetectionFieldNames_; } - onChanged(); - return this; } - /** - * - * - *
      -       * If `snippetSpec` is not specified, snippets are not included in the
      -       * search response.
      -       * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder - getSnippetSpecBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getSnippetSpecFieldBuilder().getBuilder(); + + @java.lang.Override + public Builder clone() { + return super.clone(); } - /** - * - * - *
      -       * If `snippetSpec` is not specified, snippets are not included in the
      -       * search response.
      -       * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder - getSnippetSpecOrBuilder() { - if (snippetSpecBuilder_ != null) { - return snippetSpecBuilder_.getMessageOrBuilder(); - } else { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; - } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); } - /** - * - * - *
      -       * If `snippetSpec` is not specified, snippets are not included in the
      -       * search response.
      -       * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder> - getSnippetSpecFieldBuilder() { - if (snippetSpecBuilder_ == null) { - snippetSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder>(getSnippetSpec(), getParentForChildren(), isClean()); - snippetSpec_ = null; - } - return snippetSpecBuilder_; + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - summarySpec_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder> - summarySpecBuilder_; - /** - * - * - *
      -       * If `summarySpec` is not specified, summaries are not included in the
      -       * search response.
      -       * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * - * @return Whether the summarySpec field is set. - */ - public boolean hasSummarySpec() { - return ((bitField0_ & 0x00000002) != 0); + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - /** - * - * - *
      -       * If `summarySpec` is not specified, summaries are not included in the
      -       * search response.
      -       * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * - * @return The summarySpec. - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec() { - if (summarySpecBuilder_ == null) { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec) + other); } else { - return summarySpecBuilder_.getMessage(); + super.mergeFrom(other); + return this; } } - /** - * - * - *
      -       * If `summarySpec` is not specified, summaries are not included in the
      -       * search response.
      -       * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - */ - public Builder setSummarySpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - value) { - if (summarySpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance()) return this; + if (other.filterExtractionCondition_ != 0) { + setFilterExtractionConditionValue(other.getFilterExtractionConditionValue()); + } + if (!other.geoSearchQueryDetectionFieldNames_.isEmpty()) { + if (geoSearchQueryDetectionFieldNames_.isEmpty()) { + geoSearchQueryDetectionFieldNames_ = other.geoSearchQueryDetectionFieldNames_; + bitField0_ |= 0x00000002; + } else { + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.addAll(other.geoSearchQueryDetectionFieldNames_); } - summarySpec_ = value; - } else { - summarySpecBuilder_.setMessage(value); + onChanged(); } - bitField0_ |= 0x00000002; + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } - /** - * - * - *
      -       * If `summarySpec` is not specified, summaries are not included in the
      -       * search response.
      -       * 
      - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - */ - public Builder setSummarySpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder - builderForValue) { - if (summarySpecBuilder_ == null) { - summarySpec_ = builderForValue.build(); - } else { - summarySpecBuilder_.setMessage(builderForValue.build()); + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - bitField0_ |= 0x00000002; - onChanged(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + filterExtractionCondition_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally return this; } + + private int bitField0_; + + private int filterExtractionCondition_ = 0; /** * * *
      -       * If `summarySpec` is not specified, summaries are not included in the
      -       * search response.
      +       * The condition under which filter extraction should occur.
      +       * Default to [Condition.DISABLED][].
              * 
      * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * + * + * @return The enum numeric value on the wire for filterExtractionCondition. */ - public Builder mergeSummarySpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - value) { - if (summarySpecBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && summarySpec_ != null - && summarySpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.getDefaultInstance()) { - getSummarySpecBuilder().mergeFrom(value); - } else { - summarySpec_ = value; - } - } else { - summarySpecBuilder_.mergeFrom(value); - } - if (summarySpec_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; + @java.lang.Override + public int getFilterExtractionConditionValue() { + return filterExtractionCondition_; } /** * * *
      -       * If `summarySpec` is not specified, summaries are not included in the
      -       * search response.
      +       * The condition under which filter extraction should occur.
      +       * Default to [Condition.DISABLED][].
              * 
      * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * + * + * @param value The enum numeric value on the wire for filterExtractionCondition to set. + * @return This builder for chaining. */ - public Builder clearSummarySpec() { - bitField0_ = (bitField0_ & ~0x00000002); - summarySpec_ = null; - if (summarySpecBuilder_ != null) { - summarySpecBuilder_.dispose(); - summarySpecBuilder_ = null; - } + public Builder setFilterExtractionConditionValue(int value) { + filterExtractionCondition_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -21229,239 +26228,220 @@ public Builder clearSummarySpec() { * * *
      -       * If `summarySpec` is not specified, summaries are not included in the
      -       * search response.
      +       * The condition under which filter extraction should occur.
      +       * Default to [Condition.DISABLED][].
              * 
      * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * + * + * @return The filterExtractionCondition. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder - getSummarySpecBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSummarySpecFieldBuilder().getBuilder(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition + getFilterExtractionCondition() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.forNumber( + filterExtractionCondition_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.UNRECOGNIZED + : result; } /** * * *
      -       * If `summarySpec` is not specified, summaries are not included in the
      -       * search response.
      +       * The condition under which filter extraction should occur.
      +       * Default to [Condition.DISABLED][].
              * 
      * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * + * + * @param value The filterExtractionCondition to set. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder - getSummarySpecOrBuilder() { - if (summarySpecBuilder_ != null) { - return summarySpecBuilder_.getMessageOrBuilder(); - } else { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + public Builder setFilterExtractionCondition( + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition + value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000001; + filterExtractionCondition_ = value.getNumber(); + onChanged(); + return this; } /** * * *
      -       * If `summarySpec` is not specified, summaries are not included in the
      -       * search response.
      +       * The condition under which filter extraction should occur.
      +       * Default to [Condition.DISABLED][].
              * 
      * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder> - getSummarySpecFieldBuilder() { - if (summarySpecBuilder_ == null) { - summarySpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder>(getSummarySpec(), getParentForChildren(), isClean()); - summarySpec_ = null; - } - return summarySpecBuilder_; + public Builder clearFilterExtractionCondition() { + bitField0_ = (bitField0_ & ~0x00000001); + filterExtractionCondition_ = 0; + onChanged(); + return this; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - extractiveContentSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder> - extractiveContentSpecBuilder_; + private com.google.protobuf.LazyStringArrayList geoSearchQueryDetectionFieldNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureGeoSearchQueryDetectionFieldNamesIsMutable() { + if (!geoSearchQueryDetectionFieldNames_.isModifiable()) { + geoSearchQueryDetectionFieldNames_ = + new com.google.protobuf.LazyStringArrayList(geoSearchQueryDetectionFieldNames_); + } + bitField0_ |= 0x00000002; + } /** * * *
      -       * If there is no extractive_content_spec provided, there will be no
      -       * extractive answer in the search response.
      +       * Field names used for location-based filtering, where geolocation filters
      +       * are detected in natural language search queries.
      +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +       *
      +       * If this field is set, it overrides the field names set in
      +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
              * 
      * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * repeated string geo_search_query_detection_field_names = 2; * - * @return Whether the extractiveContentSpec field is set. + * @return A list containing the geoSearchQueryDetectionFieldNames. */ - public boolean hasExtractiveContentSpec() { - return ((bitField0_ & 0x00000004) != 0); + public com.google.protobuf.ProtocolStringList getGeoSearchQueryDetectionFieldNamesList() { + geoSearchQueryDetectionFieldNames_.makeImmutable(); + return geoSearchQueryDetectionFieldNames_; } /** * * *
      -       * If there is no extractive_content_spec provided, there will be no
      -       * extractive answer in the search response.
      +       * Field names used for location-based filtering, where geolocation filters
      +       * are detected in natural language search queries.
      +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +       *
      +       * If this field is set, it overrides the field names set in
      +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
              * 
      * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * repeated string geo_search_query_detection_field_names = 2; * - * @return The extractiveContentSpec. + * @return The count of geoSearchQueryDetectionFieldNames. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - getExtractiveContentSpec() { - if (extractiveContentSpecBuilder_ == null) { - return extractiveContentSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance() - : extractiveContentSpec_; - } else { - return extractiveContentSpecBuilder_.getMessage(); - } + public int getGeoSearchQueryDetectionFieldNamesCount() { + return geoSearchQueryDetectionFieldNames_.size(); } /** * * *
      -       * If there is no extractive_content_spec provided, there will be no
      -       * extractive answer in the search response.
      +       * Field names used for location-based filtering, where geolocation filters
      +       * are detected in natural language search queries.
      +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +       *
      +       * If this field is set, it overrides the field names set in
      +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
              * 
      * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the element to return. + * @return The geoSearchQueryDetectionFieldNames at the given index. */ - public Builder setExtractiveContentSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - value) { - if (extractiveContentSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - extractiveContentSpec_ = value; - } else { - extractiveContentSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; + public java.lang.String getGeoSearchQueryDetectionFieldNames(int index) { + return geoSearchQueryDetectionFieldNames_.get(index); } /** * * *
      -       * If there is no extractive_content_spec provided, there will be no
      -       * extractive answer in the search response.
      +       * Field names used for location-based filtering, where geolocation filters
      +       * are detected in natural language search queries.
      +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +       *
      +       * If this field is set, it overrides the field names set in
      +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
              * 
      * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the geoSearchQueryDetectionFieldNames at the given index. */ - public Builder setExtractiveContentSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder - builderForValue) { - if (extractiveContentSpecBuilder_ == null) { - extractiveContentSpec_ = builderForValue.build(); - } else { - extractiveContentSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.protobuf.ByteString getGeoSearchQueryDetectionFieldNamesBytes(int index) { + return geoSearchQueryDetectionFieldNames_.getByteString(index); } /** * * *
      -       * If there is no extractive_content_spec provided, there will be no
      -       * extractive answer in the search response.
      +       * Field names used for location-based filtering, where geolocation filters
      +       * are detected in natural language search queries.
      +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +       *
      +       * If this field is set, it overrides the field names set in
      +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
              * 
      * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index to set the value at. + * @param value The geoSearchQueryDetectionFieldNames to set. + * @return This builder for chaining. */ - public Builder mergeExtractiveContentSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - value) { - if (extractiveContentSpecBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && extractiveContentSpec_ != null - && extractiveContentSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance()) { - getExtractiveContentSpecBuilder().mergeFrom(value); - } else { - extractiveContentSpec_ = value; - } - } else { - extractiveContentSpecBuilder_.mergeFrom(value); - } - if (extractiveContentSpec_ != null) { - bitField0_ |= 0x00000004; - onChanged(); + public Builder setGeoSearchQueryDetectionFieldNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
      -       * If there is no extractive_content_spec provided, there will be no
      -       * extractive answer in the search response.
      +       * Field names used for location-based filtering, where geolocation filters
      +       * are detected in natural language search queries.
      +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +       *
      +       * If this field is set, it overrides the field names set in
      +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
              * 
      * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param value The geoSearchQueryDetectionFieldNames to add. + * @return This builder for chaining. */ - public Builder clearExtractiveContentSpec() { - bitField0_ = (bitField0_ & ~0x00000004); - extractiveContentSpec_ = null; - if (extractiveContentSpecBuilder_ != null) { - extractiveContentSpecBuilder_.dispose(); - extractiveContentSpecBuilder_ = null; + public Builder addGeoSearchQueryDetectionFieldNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -21469,78 +26449,79 @@ public Builder clearExtractiveContentSpec() { * * *
      -       * If there is no extractive_content_spec provided, there will be no
      -       * extractive answer in the search response.
      +       * Field names used for location-based filtering, where geolocation filters
      +       * are detected in natural language search queries.
      +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +       *
      +       * If this field is set, it overrides the field names set in
      +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
              * 
      * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param values The geoSearchQueryDetectionFieldNames to add. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder - getExtractiveContentSpecBuilder() { - bitField0_ |= 0x00000004; + public Builder addAllGeoSearchQueryDetectionFieldNames( + java.lang.Iterable values) { + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, geoSearchQueryDetectionFieldNames_); + bitField0_ |= 0x00000002; onChanged(); - return getExtractiveContentSpecFieldBuilder().getBuilder(); + return this; } /** * * *
      -       * If there is no extractive_content_spec provided, there will be no
      -       * extractive answer in the search response.
      +       * Field names used for location-based filtering, where geolocation filters
      +       * are detected in natural language search queries.
      +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +       *
      +       * If this field is set, it overrides the field names set in
      +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
              * 
      * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder - getExtractiveContentSpecOrBuilder() { - if (extractiveContentSpecBuilder_ != null) { - return extractiveContentSpecBuilder_.getMessageOrBuilder(); - } else { - return extractiveContentSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance() - : extractiveContentSpec_; - } + public Builder clearGeoSearchQueryDetectionFieldNames() { + geoSearchQueryDetectionFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; } /** * * *
      -       * If there is no extractive_content_spec provided, there will be no
      -       * extractive answer in the search response.
      +       * Field names used for location-based filtering, where geolocation filters
      +       * are detected in natural language search queries.
      +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
      +       *
      +       * If this field is set, it overrides the field names set in
      +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
              * 
      * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param value The bytes of the geoSearchQueryDetectionFieldNames to add. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder> - getExtractiveContentSpecFieldBuilder() { - if (extractiveContentSpecBuilder_ == null) { - extractiveContentSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder>( - getExtractiveContentSpec(), getParentForChildren(), isClean()); - extractiveContentSpec_ = null; + public Builder addGeoSearchQueryDetectionFieldNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return extractiveContentSpecBuilder_; + checkByteStringIsUtf8(value); + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; } @java.lang.Override @@ -21555,27 +26536,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec(); + new com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ContentSearchSpec parsePartialFrom( + public NaturalLanguageQueryUnderstandingSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -21595,1213 +26579,1178 @@ public ContentSearchSpec parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface EmbeddingSpecOrBuilder + public interface SearchAsYouTypeSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) com.google.protobuf.MessageOrBuilder { /** * * - *
      -     * The embedding vector used for retrieval. Limit to 1.
      -     * 
      - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> - getEmbeddingVectorsList(); - /** - * - * - *
      -     * The embedding vector used for retrieval. Limit to 1.
      -     * 
      - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getEmbeddingVectors(int index); - /** - * - * - *
      -     * The embedding vector used for retrieval. Limit to 1.
      -     * 
      - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - int getEmbeddingVectorsCount(); - /** - * - * - *
      -     * The embedding vector used for retrieval. Limit to 1.
      -     * 
      - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder> - getEmbeddingVectorsOrBuilderList(); - /** - * - * - *
      -     * The embedding vector used for retrieval. Limit to 1.
      -     * 
      - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder - getEmbeddingVectorsOrBuilder(int index); - } - /** - * - * - *
      -   * The specification that uses customized query embedding vector to do
      -   * semantic document retrieval.
      -   * 
      - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec} - */ - public static final class EmbeddingSpec extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) - EmbeddingSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use EmbeddingSpec.newBuilder() to construct. - private EmbeddingSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EmbeddingSpec() { - embeddingVectors_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EmbeddingSpec(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder.class); - } - - public interface EmbeddingVectorOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
      -       * Embedding field path in schema.
      -       * 
      - * - * string field_path = 1; - * - * @return The fieldPath. - */ - java.lang.String getFieldPath(); - /** - * - * - *
      -       * Embedding field path in schema.
      -       * 
      - * - * string field_path = 1; - * - * @return The bytes for fieldPath. - */ - com.google.protobuf.ByteString getFieldPathBytes(); - - /** - * - * - *
      -       * Query embedding vector.
      -       * 
      - * - * repeated float vector = 2; - * - * @return A list containing the vector. - */ - java.util.List getVectorList(); - /** - * - * - *
      -       * Query embedding vector.
      -       * 
      - * - * repeated float vector = 2; - * - * @return The count of vector. - */ - int getVectorCount(); - /** - * - * - *
      -       * Query embedding vector.
      -       * 
      - * - * repeated float vector = 2; - * - * @param index The index of the element to return. - * @return The vector at the given index. - */ - float getVector(int index); - } + *
      +     * The condition under which search as you type should occur.
      +     * Default to
      +     * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return The enum numeric value on the wire for condition. + */ + int getConditionValue(); /** * * *
      -     * Embedding vector.
      +     * The condition under which search as you type should occur.
      +     * Default to
      +     * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            * 
      * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector} + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return The condition. */ - public static final class EmbeddingVector extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) - EmbeddingVectorOrBuilder { - private static final long serialVersionUID = 0L; - // Use EmbeddingVector.newBuilder() to construct. - private EmbeddingVector(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EmbeddingVector() { - fieldPath_ = ""; - vector_ = emptyFloatList(); - } + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + getCondition(); + } + /** + * + * + *
      +   * Specification for search as you type in search requests.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec} + */ + public static final class SearchAsYouTypeSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) + SearchAsYouTypeSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchAsYouTypeSpec.newBuilder() to construct. + private SearchAsYouTypeSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EmbeddingVector(); - } + private SearchAsYouTypeSpec() { + condition_ = 0; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchAsYouTypeSpec(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder.class); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_descriptor; + } - public static final int FIELD_PATH_FIELD_NUMBER = 1; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder + .class); + } - @SuppressWarnings("serial") - private volatile java.lang.Object fieldPath_ = ""; + /** + * + * + *
      +     * Enum describing under which condition search as you type should occur.
      +     * 
      + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition} + */ + public enum Condition implements com.google.protobuf.ProtocolMessageEnum { /** * * *
      -       * Embedding field path in schema.
      +       * Server behavior defaults to
      +       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
              * 
      * - * string field_path = 1; - * - * @return The fieldPath. + * CONDITION_UNSPECIFIED = 0; */ - @java.lang.Override - public java.lang.String getFieldPath() { - java.lang.Object ref = fieldPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldPath_ = s; - return s; - } - } + CONDITION_UNSPECIFIED(0), /** * * *
      -       * Embedding field path in schema.
      +       * Disables Search As You Type.
              * 
      * - * string field_path = 1; + * DISABLED = 1; + */ + DISABLED(1), + /** * - * @return The bytes for fieldPath. + * + *
      +       * Enables Search As You Type.
      +       * 
      + * + * ENABLED = 2; */ - @java.lang.Override - public com.google.protobuf.ByteString getFieldPathBytes() { - java.lang.Object ref = fieldPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VECTOR_FIELD_NUMBER = 2; + ENABLED(2), + UNRECOGNIZED(-1), + ; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); /** * * *
      -       * Query embedding vector.
      +       * Server behavior defaults to
      +       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
              * 
      * - * repeated float vector = 2; - * - * @return A list containing the vector. + * CONDITION_UNSPECIFIED = 0; */ - @java.lang.Override - public java.util.List getVectorList() { - return vector_; - } + public static final int CONDITION_UNSPECIFIED_VALUE = 0; /** * * *
      -       * Query embedding vector.
      +       * Disables Search As You Type.
              * 
      * - * repeated float vector = 2; - * - * @return The count of vector. + * DISABLED = 1; */ - public int getVectorCount() { - return vector_.size(); - } + public static final int DISABLED_VALUE = 1; /** * * *
      -       * Query embedding vector.
      +       * Enables Search As You Type.
              * 
      * - * repeated float vector = 2; - * - * @param index The index of the element to return. - * @return The vector at the given index. + * ENABLED = 2; */ - public float getVector(int index) { - return vector_.getFloat(index); - } - - private int vectorMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_); - } - if (getVectorList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(vectorMemoizedSerializedSize); - } - for (int i = 0; i < vector_.size(); i++) { - output.writeFloatNoTag(vector_.getFloat(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static final int ENABLED_VALUE = 2; - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldPath_); - } - { - int dataSize = 0; - dataSize = 4 * getVectorList().size(); - size += dataSize; - if (!getVectorList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); - } - vectorMemoizedSerializedSize = dataSize; + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + return value; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) - obj; - - if (!getFieldPath().equals(other.getFieldPath())) return false; - if (!getVectorList().equals(other.getVectorList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Condition valueOf(int value) { + return forNumber(value); } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; - hash = (53 * hash) + getFieldPath().hashCode(); - if (getVectorCount() > 0) { - hash = (37 * hash) + VECTOR_FIELD_NUMBER; - hash = (53 * hash) + getVectorList().hashCode(); + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Condition forNumber(int value) { + switch (value) { + case 0: + return CONDITION_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + default: + return null; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Condition findValueByNumber(int number) { + return Condition.forNumber(number); + } + }; - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + .getDescriptor() + .getEnumTypes() + .get(0); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private static final Condition[] VALUES = values(); - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static Condition valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + private final int value; - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + private Condition(int value) { + this.value = value; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition) + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int CONDITION_FIELD_NUMBER = 1; + private int condition_ = 0; + /** + * + * + *
      +     * The condition under which search as you type should occur.
      +     * Default to
      +     * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return The enum numeric value on the wire for condition. + */ + @java.lang.Override + public int getConditionValue() { + return condition_; + } + /** + * + * + *
      +     * The condition under which search as you type should occur.
      +     * Default to
      +     * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return The condition. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + getCondition() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + .forNumber(condition_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + .UNRECOGNIZED + : result; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + memoizedIsInitialized = 1; + return true; + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (condition_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + .CONDITION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, condition_); } + getUnknownFields().writeTo(output); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + size = 0; + if (condition_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + .CONDITION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, condition_); } - /** - * - * - *
      -       * Embedding vector.
      -       * 
      - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector.Builder.class); - } - - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - fieldPath_ = ""; - vector_ = emptyFloatList(); - return this; - } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) obj; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .getDefaultInstance(); - } + if (condition_ != other.condition_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + condition_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.fieldPath_ = fieldPath_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - vector_.makeImmutable(); - result.vector_ = vector_; - } - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder clone() { - return super.clone(); - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector) - other); - } else { - super.mergeFrom(other); - return this; - } - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .getDefaultInstance()) return this; - if (!other.getFieldPath().isEmpty()) { - fieldPath_ = other.fieldPath_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.vector_.isEmpty()) { - if (vector_.isEmpty()) { - vector_ = other.vector_; - vector_.makeImmutable(); - bitField0_ |= 0x00000002; - } else { - ensureVectorIsMutable(); - vector_.addAll(other.vector_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder mergeFrom( + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - fieldPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - float v = input.readFloat(); - ensureVectorIsMutable(); - vector_.addFloat(v); - break; - } // case 21 - case 18: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureVectorIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - vector_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - private int bitField0_; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - private java.lang.Object fieldPath_ = ""; - /** - * - * - *
      -         * Embedding field path in schema.
      -         * 
      - * - * string field_path = 1; - * - * @return The fieldPath. - */ - public java.lang.String getFieldPath() { - java.lang.Object ref = fieldPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
      -         * Embedding field path in schema.
      -         * 
      - * - * string field_path = 1; - * - * @return The bytes for fieldPath. - */ - public com.google.protobuf.ByteString getFieldPathBytes() { - java.lang.Object ref = fieldPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
      -         * Embedding field path in schema.
      -         * 
      - * - * string field_path = 1; - * - * @param value The fieldPath to set. - * @return This builder for chaining. - */ - public Builder setFieldPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - fieldPath_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
      -         * Embedding field path in schema.
      -         * 
      - * - * string field_path = 1; - * - * @return This builder for chaining. - */ - public Builder clearFieldPath() { - fieldPath_ = getDefaultInstance().getFieldPath(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
      -         * Embedding field path in schema.
      -         * 
      - * - * string field_path = 1; - * - * @param value The bytes for fieldPath to set. - * @return This builder for chaining. - */ - public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - fieldPath_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private void ensureVectorIsMutable() { - if (!vector_.isModifiable()) { - vector_ = makeMutableCopy(vector_); - } - bitField0_ |= 0x00000002; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - private void ensureVectorIsMutable(int capacity) { - if (!vector_.isModifiable()) { - vector_ = makeMutableCopy(vector_, capacity); - } - bitField0_ |= 0x00000002; - } - /** - * - * - *
      -         * Query embedding vector.
      -         * 
      - * - * repeated float vector = 2; - * - * @return A list containing the vector. - */ - public java.util.List getVectorList() { - vector_.makeImmutable(); - return vector_; - } - /** - * - * - *
      -         * Query embedding vector.
      -         * 
      - * - * repeated float vector = 2; - * - * @return The count of vector. - */ - public int getVectorCount() { - return vector_.size(); - } - /** - * - * - *
      -         * Query embedding vector.
      -         * 
      - * - * repeated float vector = 2; - * - * @param index The index of the element to return. - * @return The vector at the given index. - */ - public float getVector(int index) { - return vector_.getFloat(index); - } - /** - * - * - *
      -         * Query embedding vector.
      -         * 
      - * - * repeated float vector = 2; - * - * @param index The index to set the value at. - * @param value The vector to set. - * @return This builder for chaining. - */ - public Builder setVector(int index, float value) { + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Specification for search as you type in search requests.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_descriptor; + } - ensureVectorIsMutable(); - vector_.setFloat(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
      -         * Query embedding vector.
      -         * 
      - * - * repeated float vector = 2; - * - * @param value The vector to add. - * @return This builder for chaining. - */ - public Builder addVector(float value) { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + condition_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + .getDefaultInstance(); + } - ensureVectorIsMutable(); - vector_.addFloat(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
      -         * Query embedding vector.
      -         * 
      - * - * repeated float vector = 2; - * - * @param values The vector to add. - * @return This builder for chaining. - */ - public Builder addAllVector(java.lang.Iterable values) { - ensureVectorIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vector_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
      -         * Query embedding vector.
      -         * 
      - * - * repeated float vector = 2; - * - * @return This builder for chaining. - */ - public Builder clearVector() { - vector_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.condition_ = condition_; } + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) + @java.lang.Override + public Builder clone() { + return super.clone(); } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - DEFAULT_INSTANCE; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector(); + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - getDefaultInstance() { - return DEFAULT_INSTANCE; + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmbeddingVector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static com.google.protobuf.Parser parser() { - return PARSER; + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + .getDefaultInstance()) return this; + if (other.condition_ != 0) { + setConditionValue(other.getConditionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + condition_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int condition_ = 0; + /** + * + * + *
      +       * The condition under which search as you type should occur.
      +       * Default to
      +       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return The enum numeric value on the wire for condition. + */ + @java.lang.Override + public int getConditionValue() { + return condition_; + } + /** + * + * + *
      +       * The condition under which search as you type should occur.
      +       * Default to
      +       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @param value The enum numeric value on the wire for condition to set. + * @return This builder for chaining. + */ + public Builder setConditionValue(int value) { + condition_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * The condition under which search as you type should occur.
      +       * Default to
      +       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return The condition. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + getCondition() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + .forNumber(condition_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + .UNRECOGNIZED + : result; + } + /** + * + * + *
      +       * The condition under which search as you type should occur.
      +       * Default to
      +       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @param value The condition to set. + * @return This builder for chaining. + */ + public Builder setCondition( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + condition_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
      +       * The condition under which search as you type should occur.
      +       * Default to
      +       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearCondition() { + bitField0_ = (bitField0_ & ~0x00000001); + condition_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) } - public static final int EMBEDDING_VECTORS_FIELD_NUMBER = 1; + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAsYouTypeSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SessionSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> - embeddingVectors_; /** * * *
      -     * The embedding vector used for retrieval. Limit to 1.
      +     * If set, the search result gets stored to the "turn" specified by this
      +     * query ID.
      +     *
      +     * Example: Let's say the session looks like this:
      +     *   session {
      +     *     name: ".../sessions/xxx"
      +     *     turns {
      +     *       query { text: "What is foo?" query_id: ".../questions/yyy" }
      +     *       answer: "Foo is ..."
      +     *     }
      +     *     turns {
      +     *       query { text: "How about bar then?" query_id: ".../questions/zzz" }
      +     *     }
      +     *   }
      +     *
      +     * The user can call /search API with a request like this:
      +     *
      +     *    session: ".../sessions/xxx"
      +     *    session_spec { query_id: ".../questions/zzz" }
      +     *
      +     * Then, the API stores the search result, associated with the last turn.
      +     * The stored search result can be used by a subsequent /answer API call
      +     * (with the session ID and the query ID specified). Also, it is possible
      +     * to call /search and /answer in parallel with the same session ID & query
      +     * ID.
            * 
      * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * string query_id = 1; + * + * @return The queryId. + */ + java.lang.String getQueryId(); + /** + * + * + *
      +     * If set, the search result gets stored to the "turn" specified by this
      +     * query ID.
      +     *
      +     * Example: Let's say the session looks like this:
      +     *   session {
      +     *     name: ".../sessions/xxx"
      +     *     turns {
      +     *       query { text: "What is foo?" query_id: ".../questions/yyy" }
      +     *       answer: "Foo is ..."
      +     *     }
      +     *     turns {
      +     *       query { text: "How about bar then?" query_id: ".../questions/zzz" }
      +     *     }
      +     *   }
      +     *
      +     * The user can call /search API with a request like this:
      +     *
      +     *    session: ".../sessions/xxx"
      +     *    session_spec { query_id: ".../questions/zzz" }
      +     *
      +     * Then, the API stores the search result, associated with the last turn.
      +     * The stored search result can be used by a subsequent /answer API call
      +     * (with the session ID and the query ID specified). Also, it is possible
      +     * to call /search and /answer in parallel with the same session ID & query
      +     * ID.
      +     * 
      + * + * string query_id = 1; + * + * @return The bytes for queryId. + */ + com.google.protobuf.ByteString getQueryIdBytes(); + + /** + * + * + *
      +     * The number of top search results to persist. The persisted search results
      +     * can be used for the subsequent /answer api call.
      +     *
      +     * This field is simliar to the `summary_result_count` field in
      +     * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
      +     *
      +     * At most 10 results for documents mode, or 50 for chunks mode.
      +     * 
      + * + * optional int32 search_result_persistence_count = 2; + * + * @return Whether the searchResultPersistenceCount field is set. */ + boolean hasSearchResultPersistenceCount(); + /** + * + * + *
      +     * The number of top search results to persist. The persisted search results
      +     * can be used for the subsequent /answer api call.
      +     *
      +     * This field is simliar to the `summary_result_count` field in
      +     * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
      +     *
      +     * At most 10 results for documents mode, or 50 for chunks mode.
      +     * 
      + * + * optional int32 search_result_persistence_count = 2; + * + * @return The searchResultPersistenceCount. + */ + int getSearchResultPersistenceCount(); + } + /** + * + * + *
      +   * Session specification.
      +   *
      +   * Multi-turn Search feature is currently at private GA stage. Please use
      +   * v1alpha or v1beta version instead before we launch this feature to public
      +   * GA. Or ask for allowlisting through Google Support team.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec} + */ + public static final class SessionSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) + SessionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use SessionSpec.newBuilder() to construct. + private SessionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SessionSpec() { + queryId_ = ""; + } + @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> - getEmbeddingVectorsList() { - return embeddingVectors_; + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SessionSpec(); } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder.class); + } + + private int bitField0_; + public static final int QUERY_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object queryId_ = ""; /** * * *
      -     * The embedding vector used for retrieval. Limit to 1.
      +     * If set, the search result gets stored to the "turn" specified by this
      +     * query ID.
      +     *
      +     * Example: Let's say the session looks like this:
      +     *   session {
      +     *     name: ".../sessions/xxx"
      +     *     turns {
      +     *       query { text: "What is foo?" query_id: ".../questions/yyy" }
      +     *       answer: "Foo is ..."
      +     *     }
      +     *     turns {
      +     *       query { text: "How about bar then?" query_id: ".../questions/zzz" }
      +     *     }
      +     *   }
      +     *
      +     * The user can call /search API with a request like this:
      +     *
      +     *    session: ".../sessions/xxx"
      +     *    session_spec { query_id: ".../questions/zzz" }
      +     *
      +     * Then, the API stores the search result, associated with the last turn.
      +     * The stored search result can be used by a subsequent /answer API call
      +     * (with the session ID and the query ID specified). Also, it is possible
      +     * to call /search and /answer in parallel with the same session ID & query
      +     * ID.
            * 
      * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * string query_id = 1; + * + * @return The queryId. */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder> - getEmbeddingVectorsOrBuilderList() { - return embeddingVectors_; + public java.lang.String getQueryId() { + java.lang.Object ref = queryId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryId_ = s; + return s; + } } /** * * *
      -     * The embedding vector used for retrieval. Limit to 1.
      +     * If set, the search result gets stored to the "turn" specified by this
      +     * query ID.
      +     *
      +     * Example: Let's say the session looks like this:
      +     *   session {
      +     *     name: ".../sessions/xxx"
      +     *     turns {
      +     *       query { text: "What is foo?" query_id: ".../questions/yyy" }
      +     *       answer: "Foo is ..."
      +     *     }
      +     *     turns {
      +     *       query { text: "How about bar then?" query_id: ".../questions/zzz" }
      +     *     }
      +     *   }
      +     *
      +     * The user can call /search API with a request like this:
      +     *
      +     *    session: ".../sessions/xxx"
      +     *    session_spec { query_id: ".../questions/zzz" }
      +     *
      +     * Then, the API stores the search result, associated with the last turn.
      +     * The stored search result can be used by a subsequent /answer API call
      +     * (with the session ID and the query ID specified). Also, it is possible
      +     * to call /search and /answer in parallel with the same session ID & query
      +     * ID.
            * 
      * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * string query_id = 1; + * + * @return The bytes for queryId. */ @java.lang.Override - public int getEmbeddingVectorsCount() { - return embeddingVectors_.size(); + public com.google.protobuf.ByteString getQueryIdBytes() { + java.lang.Object ref = queryId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + + public static final int SEARCH_RESULT_PERSISTENCE_COUNT_FIELD_NUMBER = 2; + private int searchResultPersistenceCount_ = 0; /** * * *
      -     * The embedding vector used for retrieval. Limit to 1.
      +     * The number of top search results to persist. The persisted search results
      +     * can be used for the subsequent /answer api call.
      +     *
      +     * This field is simliar to the `summary_result_count` field in
      +     * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
      +     *
      +     * At most 10 results for documents mode, or 50 for chunks mode.
            * 
      * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * optional int32 search_result_persistence_count = 2; + * + * @return Whether the searchResultPersistenceCount field is set. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getEmbeddingVectors(int index) { - return embeddingVectors_.get(index); + public boolean hasSearchResultPersistenceCount() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
      -     * The embedding vector used for retrieval. Limit to 1.
      +     * The number of top search results to persist. The persisted search results
      +     * can be used for the subsequent /answer api call.
      +     *
      +     * This field is simliar to the `summary_result_count` field in
      +     * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
      +     *
      +     * At most 10 results for documents mode, or 50 for chunks mode.
            * 
      * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * optional int32 search_result_persistence_count = 2; + * + * @return The searchResultPersistenceCount. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder - getEmbeddingVectorsOrBuilder(int index) { - return embeddingVectors_.get(index); + public int getSearchResultPersistenceCount() { + return searchResultPersistenceCount_; } private byte memoizedIsInitialized = -1; @@ -22818,8 +27767,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < embeddingVectors_.size(); i++) { - output.writeMessage(1, embeddingVectors_.get(i)); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(2, searchResultPersistenceCount_); } getUnknownFields().writeTo(output); } @@ -22830,9 +27782,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < embeddingVectors_.size(); i++) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryId_); + } + if (((bitField0_ & 0x00000001) != 0)) { size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, embeddingVectors_.get(i)); + com.google.protobuf.CodedOutputStream.computeInt32Size( + 2, searchResultPersistenceCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -22844,13 +27800,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) obj; + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) obj; - if (!getEmbeddingVectorsList().equals(other.getEmbeddingVectorsList())) return false; + if (!getQueryId().equals(other.getQueryId())) return false; + if (hasSearchResultPersistenceCount() != other.hasSearchResultPersistenceCount()) + return false; + if (hasSearchResultPersistenceCount()) { + if (getSearchResultPersistenceCount() != other.getSearchResultPersistenceCount()) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -22861,69 +27823,71 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEmbeddingVectorsCount() > 0) { - hash = (37 * hash) + EMBEDDING_VECTORS_FIELD_NUMBER; - hash = (53 * hash) + getEmbeddingVectorsList().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_ID_FIELD_NUMBER; + hash = (53 * hash) + getQueryId().hashCode(); + if (hasSearchResultPersistenceCount()) { + hash = (37 * hash) + SEARCH_RESULT_PERSISTENCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSearchResultPersistenceCount(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -22931,12 +27895,12 @@ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpe PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -22954,7 +27918,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec prototype) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -22973,34 +27937,37 @@ protected Builder newBuilderForType( * * *
      -     * The specification that uses customized query embedding vector to do
      -     * semantic document retrieval.
      +     * Session specification.
      +     *
      +     * Multi-turn Search feature is currently at private GA stage. Please use
      +     * v1alpha or v1beta version instead before we launch this feature to public
      +     * GA. Or ask for allowlisting through Google Support team.
            * 
      * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder.class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.newBuilder() + // com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -23011,32 +27978,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - if (embeddingVectorsBuilder_ == null) { - embeddingVectors_ = java.util.Collections.emptyList(); - } else { - embeddingVectors_ = null; - embeddingVectorsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); + queryId_ = ""; + searchResultPersistenceCount_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + return com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -23044,10 +28006,9 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec build } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec(this); - buildPartialRepeatedFields(result); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -23055,22 +28016,18 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec build return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result) { - if (embeddingVectorsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - embeddingVectors_ = java.util.Collections.unmodifiableList(embeddingVectors_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.embeddingVectors_ = embeddingVectors_; - } else { - result.embeddingVectors_ = embeddingVectorsBuilder_.build(); - } - } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryId_ = queryId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.searchResultPersistenceCount_ = searchResultPersistenceCount_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -23110,9 +28067,9 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) { return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) other); + (com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) other); } else { super.mergeFrom(other); return this; @@ -23120,36 +28077,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec other) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec other) { if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + == com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec .getDefaultInstance()) return this; - if (embeddingVectorsBuilder_ == null) { - if (!other.embeddingVectors_.isEmpty()) { - if (embeddingVectors_.isEmpty()) { - embeddingVectors_ = other.embeddingVectors_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.addAll(other.embeddingVectors_); - } - onChanged(); - } - } else { - if (!other.embeddingVectors_.isEmpty()) { - if (embeddingVectorsBuilder_.isEmpty()) { - embeddingVectorsBuilder_.dispose(); - embeddingVectorsBuilder_ = null; - embeddingVectors_ = other.embeddingVectors_; - bitField0_ = (bitField0_ & ~0x00000001); - embeddingVectorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEmbeddingVectorsFieldBuilder() - : null; - } else { - embeddingVectorsBuilder_.addAllMessages(other.embeddingVectors_); - } - } + if (!other.getQueryId().isEmpty()) { + queryId_ = other.queryId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSearchResultPersistenceCount()) { + setSearchResultPersistenceCount(other.getSearchResultPersistenceCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -23179,21 +28117,16 @@ public Builder mergeFrom( break; case 10: { - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector.parser(), - extensionRegistry); - if (embeddingVectorsBuilder_ == null) { - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.add(m); - } else { - embeddingVectorsBuilder_.addMessage(m); - } + queryId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + searchResultPersistenceCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -23213,445 +28146,322 @@ public Builder mergeFrom( private int bitField0_; - private java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> - embeddingVectors_ = java.util.Collections.emptyList(); - - private void ensureEmbeddingVectorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - embeddingVectors_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector>(embeddingVectors_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder> - embeddingVectorsBuilder_; - + private java.lang.Object queryId_ = ""; /** * * *
      -       * The embedding vector used for retrieval. Limit to 1.
      +       * If set, the search result gets stored to the "turn" specified by this
      +       * query ID.
      +       *
      +       * Example: Let's say the session looks like this:
      +       *   session {
      +       *     name: ".../sessions/xxx"
      +       *     turns {
      +       *       query { text: "What is foo?" query_id: ".../questions/yyy" }
      +       *       answer: "Foo is ..."
      +       *     }
      +       *     turns {
      +       *       query { text: "How about bar then?" query_id: ".../questions/zzz" }
      +       *     }
      +       *   }
      +       *
      +       * The user can call /search API with a request like this:
      +       *
      +       *    session: ".../sessions/xxx"
      +       *    session_spec { query_id: ".../questions/zzz" }
      +       *
      +       * Then, the API stores the search result, associated with the last turn.
      +       * The stored search result can be used by a subsequent /answer API call
      +       * (with the session ID and the query ID specified). Also, it is possible
      +       * to call /search and /answer in parallel with the same session ID & query
      +       * ID.
              * 
      * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> - getEmbeddingVectorsList() { - if (embeddingVectorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(embeddingVectors_); - } else { - return embeddingVectorsBuilder_.getMessageList(); - } - } - /** - * + * string query_id = 1; * - *
      -       * The embedding vector used for retrieval. Limit to 1.
      -       * 
      - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * @return The queryId. */ - public int getEmbeddingVectorsCount() { - if (embeddingVectorsBuilder_ == null) { - return embeddingVectors_.size(); + public java.lang.String getQueryId() { + java.lang.Object ref = queryId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryId_ = s; + return s; } else { - return embeddingVectorsBuilder_.getCount(); + return (java.lang.String) ref; } } /** * * *
      -       * The embedding vector used for retrieval. Limit to 1.
      +       * If set, the search result gets stored to the "turn" specified by this
      +       * query ID.
      +       *
      +       * Example: Let's say the session looks like this:
      +       *   session {
      +       *     name: ".../sessions/xxx"
      +       *     turns {
      +       *       query { text: "What is foo?" query_id: ".../questions/yyy" }
      +       *       answer: "Foo is ..."
      +       *     }
      +       *     turns {
      +       *       query { text: "How about bar then?" query_id: ".../questions/zzz" }
      +       *     }
      +       *   }
      +       *
      +       * The user can call /search API with a request like this:
      +       *
      +       *    session: ".../sessions/xxx"
      +       *    session_spec { query_id: ".../questions/zzz" }
      +       *
      +       * Then, the API stores the search result, associated with the last turn.
      +       * The stored search result can be used by a subsequent /answer API call
      +       * (with the session ID and the query ID specified). Also, it is possible
      +       * to call /search and /answer in parallel with the same session ID & query
      +       * ID.
              * 
      * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getEmbeddingVectors(int index) { - if (embeddingVectorsBuilder_ == null) { - return embeddingVectors_.get(index); - } else { - return embeddingVectorsBuilder_.getMessage(index); - } - } - /** - * - * - *
      -       * The embedding vector used for retrieval. Limit to 1.
      -       * 
      + * string query_id = 1; * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * @return The bytes for queryId. */ - public Builder setEmbeddingVectors( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - value) { - if (embeddingVectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.set(index, value); - onChanged(); + public com.google.protobuf.ByteString getQueryIdBytes() { + java.lang.Object ref = queryId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryId_ = b; + return b; } else { - embeddingVectorsBuilder_.setMessage(index, value); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
      -       * The embedding vector used for retrieval. Limit to 1.
      +       * If set, the search result gets stored to the "turn" specified by this
      +       * query ID.
      +       *
      +       * Example: Let's say the session looks like this:
      +       *   session {
      +       *     name: ".../sessions/xxx"
      +       *     turns {
      +       *       query { text: "What is foo?" query_id: ".../questions/yyy" }
      +       *       answer: "Foo is ..."
      +       *     }
      +       *     turns {
      +       *       query { text: "How about bar then?" query_id: ".../questions/zzz" }
      +       *     }
      +       *   }
      +       *
      +       * The user can call /search API with a request like this:
      +       *
      +       *    session: ".../sessions/xxx"
      +       *    session_spec { query_id: ".../questions/zzz" }
      +       *
      +       * Then, the API stores the search result, associated with the last turn.
      +       * The stored search result can be used by a subsequent /answer API call
      +       * (with the session ID and the query ID specified). Also, it is possible
      +       * to call /search and /answer in parallel with the same session ID & query
      +       * ID.
              * 
      * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public Builder setEmbeddingVectors( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - builderForValue) { - if (embeddingVectorsBuilder_ == null) { - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.set(index, builderForValue.build()); - onChanged(); - } else { - embeddingVectorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
      -       * The embedding vector used for retrieval. Limit to 1.
      -       * 
      + * string query_id = 1; * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * @param value The queryId to set. + * @return This builder for chaining. */ - public Builder addEmbeddingVectors( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - value) { - if (embeddingVectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.add(value); - onChanged(); - } else { - embeddingVectorsBuilder_.addMessage(value); + public Builder setQueryId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + queryId_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } /** * * *
      -       * The embedding vector used for retrieval. Limit to 1.
      +       * If set, the search result gets stored to the "turn" specified by this
      +       * query ID.
      +       *
      +       * Example: Let's say the session looks like this:
      +       *   session {
      +       *     name: ".../sessions/xxx"
      +       *     turns {
      +       *       query { text: "What is foo?" query_id: ".../questions/yyy" }
      +       *       answer: "Foo is ..."
      +       *     }
      +       *     turns {
      +       *       query { text: "How about bar then?" query_id: ".../questions/zzz" }
      +       *     }
      +       *   }
      +       *
      +       * The user can call /search API with a request like this:
      +       *
      +       *    session: ".../sessions/xxx"
      +       *    session_spec { query_id: ".../questions/zzz" }
      +       *
      +       * Then, the API stores the search result, associated with the last turn.
      +       * The stored search result can be used by a subsequent /answer API call
      +       * (with the session ID and the query ID specified). Also, it is possible
      +       * to call /search and /answer in parallel with the same session ID & query
      +       * ID.
              * 
      * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public Builder addEmbeddingVectors( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - value) { - if (embeddingVectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.add(index, value); - onChanged(); - } else { - embeddingVectorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
      -       * The embedding vector used for retrieval. Limit to 1.
      -       * 
      + * string query_id = 1; * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * @return This builder for chaining. */ - public Builder addEmbeddingVectors( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - builderForValue) { - if (embeddingVectorsBuilder_ == null) { - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.add(builderForValue.build()); - onChanged(); - } else { - embeddingVectorsBuilder_.addMessage(builderForValue.build()); - } + public Builder clearQueryId() { + queryId_ = getDefaultInstance().getQueryId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } /** * * *
      -       * The embedding vector used for retrieval. Limit to 1.
      +       * If set, the search result gets stored to the "turn" specified by this
      +       * query ID.
      +       *
      +       * Example: Let's say the session looks like this:
      +       *   session {
      +       *     name: ".../sessions/xxx"
      +       *     turns {
      +       *       query { text: "What is foo?" query_id: ".../questions/yyy" }
      +       *       answer: "Foo is ..."
      +       *     }
      +       *     turns {
      +       *       query { text: "How about bar then?" query_id: ".../questions/zzz" }
      +       *     }
      +       *   }
      +       *
      +       * The user can call /search API with a request like this:
      +       *
      +       *    session: ".../sessions/xxx"
      +       *    session_spec { query_id: ".../questions/zzz" }
      +       *
      +       * Then, the API stores the search result, associated with the last turn.
      +       * The stored search result can be used by a subsequent /answer API call
      +       * (with the session ID and the query ID specified). Also, it is possible
      +       * to call /search and /answer in parallel with the same session ID & query
      +       * ID.
              * 
      * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public Builder addEmbeddingVectors( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - builderForValue) { - if (embeddingVectorsBuilder_ == null) { - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.add(index, builderForValue.build()); - onChanged(); - } else { - embeddingVectorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
      -       * The embedding vector used for retrieval. Limit to 1.
      -       * 
      + * string query_id = 1; * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * @param value The bytes for queryId to set. + * @return This builder for chaining. */ - public Builder addAllEmbeddingVectors( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector> - values) { - if (embeddingVectorsBuilder_ == null) { - ensureEmbeddingVectorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, embeddingVectors_); - onChanged(); - } else { - embeddingVectorsBuilder_.addAllMessages(values); + public Builder setQueryIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + queryId_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } + + private int searchResultPersistenceCount_; /** * * *
      -       * The embedding vector used for retrieval. Limit to 1.
      -       * 
      - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public Builder clearEmbeddingVectors() { - if (embeddingVectorsBuilder_ == null) { - embeddingVectors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - embeddingVectorsBuilder_.clear(); - } - return this; - } - /** + * The number of top search results to persist. The persisted search results + * can be used for the subsequent /answer api call. * + * This field is simliar to the `summary_result_count` field in + * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count]. * - *
      -       * The embedding vector used for retrieval. Limit to 1.
      +       * At most 10 results for documents mode, or 50 for chunks mode.
              * 
      * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * optional int32 search_result_persistence_count = 2; + * + * @return Whether the searchResultPersistenceCount field is set. */ - public Builder removeEmbeddingVectors(int index) { - if (embeddingVectorsBuilder_ == null) { - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.remove(index); - onChanged(); - } else { - embeddingVectorsBuilder_.remove(index); - } - return this; + @java.lang.Override + public boolean hasSearchResultPersistenceCount() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
      -       * The embedding vector used for retrieval. Limit to 1.
      -       * 
      - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - getEmbeddingVectorsBuilder(int index) { - return getEmbeddingVectorsFieldBuilder().getBuilder(index); - } - /** + * The number of top search results to persist. The persisted search results + * can be used for the subsequent /answer api call. * + * This field is simliar to the `summary_result_count` field in + * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count]. * - *
      -       * The embedding vector used for retrieval. Limit to 1.
      +       * At most 10 results for documents mode, or 50 for chunks mode.
              * 
      * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * optional int32 search_result_persistence_count = 2; + * + * @return The searchResultPersistenceCount. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder - getEmbeddingVectorsOrBuilder(int index) { - if (embeddingVectorsBuilder_ == null) { - return embeddingVectors_.get(index); - } else { - return embeddingVectorsBuilder_.getMessageOrBuilder(index); - } + @java.lang.Override + public int getSearchResultPersistenceCount() { + return searchResultPersistenceCount_; } /** * * *
      -       * The embedding vector used for retrieval. Limit to 1.
      -       * 
      - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder> - getEmbeddingVectorsOrBuilderList() { - if (embeddingVectorsBuilder_ != null) { - return embeddingVectorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(embeddingVectors_); - } - } - /** + * The number of top search results to persist. The persisted search results + * can be used for the subsequent /answer api call. * + * This field is simliar to the `summary_result_count` field in + * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count]. * - *
      -       * The embedding vector used for retrieval. Limit to 1.
      +       * At most 10 results for documents mode, or 50 for chunks mode.
              * 
      * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * optional int32 search_result_persistence_count = 2; + * + * @param value The searchResultPersistenceCount to set. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - addEmbeddingVectorsBuilder() { - return getEmbeddingVectorsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .getDefaultInstance()); + public Builder setSearchResultPersistenceCount(int value) { + + searchResultPersistenceCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } /** * * *
      -       * The embedding vector used for retrieval. Limit to 1.
      -       * 
      - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - addEmbeddingVectorsBuilder(int index) { - return getEmbeddingVectorsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .getDefaultInstance()); - } - /** + * The number of top search results to persist. The persisted search results + * can be used for the subsequent /answer api call. * + * This field is simliar to the `summary_result_count` field in + * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count]. * - *
      -       * The embedding vector used for retrieval. Limit to 1.
      +       * At most 10 results for documents mode, or 50 for chunks mode.
              * 
      * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * optional int32 search_result_persistence_count = 2; + * + * @return This builder for chaining. */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder> - getEmbeddingVectorsBuilderList() { - return getEmbeddingVectorsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder> - getEmbeddingVectorsFieldBuilder() { - if (embeddingVectorsBuilder_ == null) { - embeddingVectorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder>( - embeddingVectors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - embeddingVectors_ = null; - } - return embeddingVectorsBuilder_; + public Builder clearSearchResultPersistenceCount() { + bitField0_ = (bitField0_ & ~0x00000002); + searchResultPersistenceCount_ = 0; + onChanged(); + return this; } @java.lang.Override @@ -23666,26 +28476,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public EmbeddingSpec parsePartialFrom( + public SessionSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -23705,17 +28515,17 @@ public EmbeddingSpec parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -24443,6 +29253,122 @@ public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBu : userInfo_; } + public static final int LANGUAGE_CODE_FIELD_NUMBER = 35; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + /** + * + * + *
      +   * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      +   * information, see [Standard
      +   * fields](https://cloud.google.com/apis/design/standard_fields). This field
      +   * helps to better interpret the query. If a value isn't specified, the query
      +   * language code is automatically detected, which may not be accurate.
      +   * 
      + * + * string language_code = 35; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
      +   * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      +   * information, see [Standard
      +   * fields](https://cloud.google.com/apis/design/standard_fields). This field
      +   * helps to better interpret the query. If a value isn't specified, the query
      +   * language code is automatically detected, which may not be accurate.
      +   * 
      + * + * string language_code = 35; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_CODE_FIELD_NUMBER = 36; + + @SuppressWarnings("serial") + private volatile java.lang.Object regionCode_ = ""; + /** + * + * + *
      +   * The Unicode country/region code (CLDR) of a location, such as "US" and
      +   * "419". For more information, see [Standard
      +   * fields](https://cloud.google.com/apis/design/standard_fields). If set,
      +   * then results will be boosted based on the region_code provided.
      +   * 
      + * + * string region_code = 36; + * + * @return The regionCode. + */ + @java.lang.Override + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } + } + /** + * + * + *
      +   * The Unicode country/region code (CLDR) of a location, such as "US" and
      +   * "419". For more information, see [Standard
      +   * fields](https://cloud.google.com/apis/design/standard_fields). If set,
      +   * then results will be boosted based on the region_code provided.
      +   * 
      + * + * string region_code = 36; + * + * @return The bytes for regionCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int FACET_SPECS_FIELD_NUMBER = 9; @SuppressWarnings("serial") @@ -25115,20 +30041,26 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getEm * documents. This overrides * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. * The ranking expression is a single function or multiple functions that are - * joint by "+". + * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * `relevance_score`: pre-defined keywords, used for measure relevance + * + * * `relevance_score`: pre-defined keywords, used for measure relevance * between query and document. - * `embedding_field_path`: the document embedding field + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * `dotProduct`: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * @@ -25157,20 +30089,26 @@ public java.lang.String getRankingExpression() { * documents. This overrides * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. * The ranking expression is a single function or multiple functions that are - * joint by "+". + * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * `relevance_score`: pre-defined keywords, used for measure relevance + * + * * `relevance_score`: pre-defined keywords, used for measure relevance * between query and document. - * `embedding_field_path`: the document embedding field + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * `dotProduct`: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * @@ -25377,6 +30315,297 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER = 28; + private com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + naturalLanguageQueryUnderstandingSpec_; + /** + * + * + *
      +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +   * natural language query understanding will be done.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + * + * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. + */ + @java.lang.Override + public boolean hasNaturalLanguageQueryUnderstandingSpec() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
      +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +   * natural language query understanding will be done.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + * + * @return The naturalLanguageQueryUnderstandingSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + getNaturalLanguageQueryUnderstandingSpec() { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; + } + /** + * + * + *
      +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +   * natural language query understanding will be done.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder + getNaturalLanguageQueryUnderstandingSpecOrBuilder() { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; + } + + public static final int SEARCH_AS_YOU_TYPE_SPEC_FIELD_NUMBER = 31; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + searchAsYouTypeSpec_; + /** + * + * + *
      +   * Search as you type configuration. Only supported for the
      +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +   * vertical.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + * + * @return Whether the searchAsYouTypeSpec field is set. + */ + @java.lang.Override + public boolean hasSearchAsYouTypeSpec() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
      +   * Search as you type configuration. Only supported for the
      +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +   * vertical.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + * + * @return The searchAsYouTypeSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + getSearchAsYouTypeSpec() { + return searchAsYouTypeSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + .getDefaultInstance() + : searchAsYouTypeSpec_; + } + /** + * + * + *
      +   * Search as you type configuration. Only supported for the
      +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +   * vertical.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder + getSearchAsYouTypeSpecOrBuilder() { + return searchAsYouTypeSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + .getDefaultInstance() + : searchAsYouTypeSpec_; + } + + public static final int SESSION_FIELD_NUMBER = 41; + + @SuppressWarnings("serial") + private volatile java.lang.Object session_ = ""; + /** + * + * + *
      +   * The session resource name. Optional.
      +   *
      +   * Session allows users to do multi-turn /search API calls or coordination
      +   * between /search API calls and /answer API calls.
      +   *
      +   * Example #1 (multi-turn /search API calls):
      +   *   1. Call /search API with the auto-session mode (see below).
      +   *   2. Call /search API with the session ID generated in the first call.
      +   *      Here, the previous search query gets considered in query
      +   *      standing. I.e., if the first query is "How did Alphabet do in 2022?"
      +   *      and the current query is "How about 2023?", the current query will
      +   *      be interpreted as "How did Alphabet do in 2023?".
      +   *
      +   * Example #2 (coordination between /search API calls and /answer API calls):
      +   *   1. Call /search API with the auto-session mode (see below).
      +   *   2. Call /answer API with the session ID generated in the first call.
      +   *      Here, the answer generation happens in the context of the search
      +   *      results from the first search call.
      +   *
      +   * Auto-session mode: when `projects/.../sessions/-` is used, a new session
      +   * gets automatically created. Otherwise, users can use the create-session API
      +   * to create a session manually.
      +   *
      +   * Multi-turn Search feature is currently at private GA stage. Please use
      +   * v1alpha or v1beta version instead before we launch this feature to public
      +   * GA. Or ask for allowlisting through Google Support team.
      +   * 
      + * + * string session = 41 [(.google.api.resource_reference) = { ... } + * + * @return The session. + */ + @java.lang.Override + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } + } + /** + * + * + *
      +   * The session resource name. Optional.
      +   *
      +   * Session allows users to do multi-turn /search API calls or coordination
      +   * between /search API calls and /answer API calls.
      +   *
      +   * Example #1 (multi-turn /search API calls):
      +   *   1. Call /search API with the auto-session mode (see below).
      +   *   2. Call /search API with the session ID generated in the first call.
      +   *      Here, the previous search query gets considered in query
      +   *      standing. I.e., if the first query is "How did Alphabet do in 2022?"
      +   *      and the current query is "How about 2023?", the current query will
      +   *      be interpreted as "How did Alphabet do in 2023?".
      +   *
      +   * Example #2 (coordination between /search API calls and /answer API calls):
      +   *   1. Call /search API with the auto-session mode (see below).
      +   *   2. Call /answer API with the session ID generated in the first call.
      +   *      Here, the answer generation happens in the context of the search
      +   *      results from the first search call.
      +   *
      +   * Auto-session mode: when `projects/.../sessions/-` is used, a new session
      +   * gets automatically created. Otherwise, users can use the create-session API
      +   * to create a session manually.
      +   *
      +   * Multi-turn Search feature is currently at private GA stage. Please use
      +   * v1alpha or v1beta version instead before we launch this feature to public
      +   * GA. Or ask for allowlisting through Google Support team.
      +   * 
      + * + * string session = 41 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for session. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SESSION_SPEC_FIELD_NUMBER = 42; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec sessionSpec_; + /** + * + * + *
      +   * Session specification.
      +   *
      +   * Can be used only when `session` is set.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * @return Whether the sessionSpec field is set. + */ + @java.lang.Override + public boolean hasSessionSpec() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
      +   * Session specification.
      +   *
      +   * Can be used only when `session` is set.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * @return The sessionSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec getSessionSpec() { + return sessionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.getDefaultInstance() + : sessionSpec_; + } + /** + * + * + *
      +   * Session specification.
      +   *
      +   * Can be used only when `session` is set.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder + getSessionSpecOrBuilder() { + return sessionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.getDefaultInstance() + : sessionSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -25452,12 +30681,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rankingExpression_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, rankingExpression_); } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(28, getNaturalLanguageQueryUnderstandingSpec()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalFilter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, canonicalFilter_); } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(31, getSearchAsYouTypeSpec()); + } for (int i = 0; i < dataStoreSpecs_.size(); i++) { output.writeMessage(32, dataStoreSpecs_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 35, languageCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 36, regionCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 41, session_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(42, getSessionSpec()); + } getUnknownFields().writeTo(output); } @@ -25545,12 +30792,33 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rankingExpression_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, rankingExpression_); } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, getNaturalLanguageQueryUnderstandingSpec()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalFilter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, canonicalFilter_); } + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(31, getSearchAsYouTypeSpec()); + } for (int i = 0; i < dataStoreSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, dataStoreSpecs_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(35, languageCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, regionCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(41, session_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, getSessionSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -25585,6 +30853,8 @@ public boolean equals(final java.lang.Object obj) { if (hasUserInfo()) { if (!getUserInfo().equals(other.getUserInfo())) return false; } + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getRegionCode().equals(other.getRegionCode())) return false; if (!getFacetSpecsList().equals(other.getFacetSpecsList())) return false; if (hasBoostSpec() != other.hasBoostSpec()) return false; if (hasBoostSpec()) { @@ -25611,6 +30881,21 @@ public boolean equals(final java.lang.Object obj) { if (!getRankingExpression().equals(other.getRankingExpression())) return false; if (getSafeSearch() != other.getSafeSearch()) return false; if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; + if (hasNaturalLanguageQueryUnderstandingSpec() + != other.hasNaturalLanguageQueryUnderstandingSpec()) return false; + if (hasNaturalLanguageQueryUnderstandingSpec()) { + if (!getNaturalLanguageQueryUnderstandingSpec() + .equals(other.getNaturalLanguageQueryUnderstandingSpec())) return false; + } + if (hasSearchAsYouTypeSpec() != other.hasSearchAsYouTypeSpec()) return false; + if (hasSearchAsYouTypeSpec()) { + if (!getSearchAsYouTypeSpec().equals(other.getSearchAsYouTypeSpec())) return false; + } + if (!getSession().equals(other.getSession())) return false; + if (hasSessionSpec() != other.hasSessionSpec()) return false; + if (hasSessionSpec()) { + if (!getSessionSpec().equals(other.getSessionSpec())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -25652,6 +30937,10 @@ public int hashCode() { hash = (37 * hash) + USER_INFO_FIELD_NUMBER; hash = (53 * hash) + getUserInfo().hashCode(); } + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); if (getFacetSpecsCount() > 0) { hash = (37 * hash) + FACET_SPECS_FIELD_NUMBER; hash = (53 * hash) + getFacetSpecsList().hashCode(); @@ -25690,6 +30979,20 @@ public int hashCode() { hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetUserLabels().hashCode(); } + if (hasNaturalLanguageQueryUnderstandingSpec()) { + hash = (37 * hash) + NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getNaturalLanguageQueryUnderstandingSpec().hashCode(); + } + if (hasSearchAsYouTypeSpec()) { + hash = (37 * hash) + SEARCH_AS_YOU_TYPE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSearchAsYouTypeSpec().hashCode(); + } + hash = (37 * hash) + SESSION_FIELD_NUMBER; + hash = (53 * hash) + getSession().hashCode(); + if (hasSessionSpec()) { + hash = (37 * hash) + SESSION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSessionSpec().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -25868,6 +31171,9 @@ private void maybeForceBuilderInitialization() { getSpellCorrectionSpecFieldBuilder(); getContentSearchSpecFieldBuilder(); getEmbeddingSpecFieldBuilder(); + getNaturalLanguageQueryUnderstandingSpecFieldBuilder(); + getSearchAsYouTypeSpecFieldBuilder(); + getSessionSpecFieldBuilder(); } } @@ -25901,13 +31207,15 @@ public Builder clear() { userInfoBuilder_.dispose(); userInfoBuilder_ = null; } + languageCode_ = ""; + regionCode_ = ""; if (facetSpecsBuilder_ == null) { facetSpecs_ = java.util.Collections.emptyList(); } else { facetSpecs_ = null; facetSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00004000); boostSpec_ = null; if (boostSpecBuilder_ != null) { boostSpecBuilder_.dispose(); @@ -25938,6 +31246,22 @@ public Builder clear() { rankingExpression_ = ""; safeSearch_ = false; internalGetMutableUserLabels().clear(); + naturalLanguageQueryUnderstandingSpec_ = null; + if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { + naturalLanguageQueryUnderstandingSpecBuilder_.dispose(); + naturalLanguageQueryUnderstandingSpecBuilder_ = null; + } + searchAsYouTypeSpec_ = null; + if (searchAsYouTypeSpecBuilder_ != null) { + searchAsYouTypeSpecBuilder_.dispose(); + searchAsYouTypeSpecBuilder_ = null; + } + session_ = ""; + sessionSpec_ = null; + if (sessionSpecBuilder_ != null) { + sessionSpecBuilder_.dispose(); + sessionSpecBuilder_ = null; + } return this; } @@ -25985,9 +31309,9 @@ private void buildPartialRepeatedFields( result.dataStoreSpecs_ = dataStoreSpecsBuilder_.build(); } if (facetSpecsBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { facetSpecs_ = java.util.Collections.unmodifiableList(facetSpecs_); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00004000); } result.facetSpecs_ = facetSpecs_; } else { @@ -26033,52 +31357,80 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.languageCode_ = languageCode_; + } if (((from_bitField0_ & 0x00002000) != 0)) { + result.regionCode_ = regionCode_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.params_ = internalGetParams().build(ParamsDefaultEntryHolder.defaultEntry); } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.queryExpansionSpec_ = queryExpansionSpecBuilder_ == null ? queryExpansionSpec_ : queryExpansionSpecBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.spellCorrectionSpec_ = spellCorrectionSpecBuilder_ == null ? spellCorrectionSpec_ : spellCorrectionSpecBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.userPseudoId_ = userPseudoId_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.contentSearchSpec_ = contentSearchSpecBuilder_ == null ? contentSearchSpec_ : contentSearchSpecBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.embeddingSpec_ = embeddingSpecBuilder_ == null ? embeddingSpec_ : embeddingSpecBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { result.rankingExpression_ = rankingExpression_; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.safeSearch_ = safeSearch_; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.userLabels_ = internalGetUserLabels(); result.userLabels_.makeImmutable(); } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.naturalLanguageQueryUnderstandingSpec_ = + naturalLanguageQueryUnderstandingSpecBuilder_ == null + ? naturalLanguageQueryUnderstandingSpec_ + : naturalLanguageQueryUnderstandingSpecBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.searchAsYouTypeSpec_ = + searchAsYouTypeSpecBuilder_ == null + ? searchAsYouTypeSpec_ + : searchAsYouTypeSpecBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.session_ = session_; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.sessionSpec_ = + sessionSpecBuilder_ == null ? sessionSpec_ : sessionSpecBuilder_.build(); + to_bitField0_ |= 0x00000200; + } result.bitField0_ |= to_bitField0_; } @@ -26202,11 +31554,21 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest o if (other.hasUserInfo()) { mergeUserInfo(other.getUserInfo()); } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + bitField0_ |= 0x00002000; + onChanged(); + } if (facetSpecsBuilder_ == null) { if (!other.facetSpecs_.isEmpty()) { if (facetSpecs_.isEmpty()) { facetSpecs_ = other.facetSpecs_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00004000); } else { ensureFacetSpecsIsMutable(); facetSpecs_.addAll(other.facetSpecs_); @@ -26219,7 +31581,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest o facetSpecsBuilder_.dispose(); facetSpecsBuilder_ = null; facetSpecs_ = other.facetSpecs_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00004000); facetSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFacetSpecsFieldBuilder() @@ -26233,7 +31595,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest o mergeBoostSpec(other.getBoostSpec()); } internalGetMutableParams().mergeFrom(other.internalGetParams()); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; if (other.hasQueryExpansionSpec()) { mergeQueryExpansionSpec(other.getQueryExpansionSpec()); } @@ -26242,7 +31604,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest o } if (!other.getUserPseudoId().isEmpty()) { userPseudoId_ = other.userPseudoId_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); } if (other.hasContentSearchSpec()) { @@ -26253,14 +31615,29 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest o } if (!other.getRankingExpression().isEmpty()) { rankingExpression_ = other.rankingExpression_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; onChanged(); } if (other.getSafeSearch() != false) { setSafeSearch(other.getSafeSearch()); } internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; + if (other.hasNaturalLanguageQueryUnderstandingSpec()) { + mergeNaturalLanguageQueryUnderstandingSpec( + other.getNaturalLanguageQueryUnderstandingSpec()); + } + if (other.hasSearchAsYouTypeSpec()) { + mergeSearchAsYouTypeSpec(other.getSearchAsYouTypeSpec()); + } + if (!other.getSession().isEmpty()) { + session_ = other.session_; + bitField0_ |= 0x08000000; + onChanged(); + } + if (other.hasSessionSpec()) { + mergeSessionSpec(other.getSessionSpec()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -26352,7 +31729,7 @@ public Builder mergeFrom( case 82: { input.readMessage(getBoostSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; break; } // case 82 case 90: @@ -26364,27 +31741,27 @@ public Builder mergeFrom( internalGetMutableParams() .ensureBuilderMap() .put(params__.getKey(), params__.getValue()); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; break; } // case 90 case 106: { input.readMessage( getQueryExpansionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; break; } // case 106 case 114: { input.readMessage( getSpellCorrectionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; break; } // case 114 case 122: { userPseudoId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; break; } // case 122 case 154: @@ -26396,7 +31773,7 @@ public Builder mergeFrom( case 160: { safeSearch_ = input.readBool(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; break; } // case 160 case 170: @@ -26414,34 +31791,49 @@ public Builder mergeFrom( internalGetMutableUserLabels() .getMutableMap() .put(userLabels__.getKey(), userLabels__.getValue()); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; break; } // case 178 case 186: { input.readMessage(getEmbeddingSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; break; } // case 186 case 194: { input.readMessage( getContentSearchSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; break; } // case 194 case 210: { rankingExpression_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; break; } // case 210 + case 226: + { + input.readMessage( + getNaturalLanguageQueryUnderstandingSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 226 case 234: { canonicalFilter_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 234 + case 250: + { + input.readMessage( + getSearchAsYouTypeSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 250 case 258: { com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec m = @@ -26457,6 +31849,30 @@ public Builder mergeFrom( } break; } // case 258 + case 282: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 282 + case 290: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 290 + case 330: + { + session_ = input.readStringRequireUtf8(); + bitField0_ |= 0x08000000; + break; + } // case 330 + case 338: + { + input.readMessage(getSessionSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 338 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -28498,15 +33914,262 @@ public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBu return userInfoBuilder_; } + private java.lang.Object languageCode_ = ""; + /** + * + * + *
      +     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      +     * information, see [Standard
      +     * fields](https://cloud.google.com/apis/design/standard_fields). This field
      +     * helps to better interpret the query. If a value isn't specified, the query
      +     * language code is automatically detected, which may not be accurate.
      +     * 
      + * + * string language_code = 35; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      +     * information, see [Standard
      +     * fields](https://cloud.google.com/apis/design/standard_fields). This field
      +     * helps to better interpret the query. If a value isn't specified, the query
      +     * language code is automatically detected, which may not be accurate.
      +     * 
      + * + * string language_code = 35; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      +     * information, see [Standard
      +     * fields](https://cloud.google.com/apis/design/standard_fields). This field
      +     * helps to better interpret the query. If a value isn't specified, the query
      +     * language code is automatically detected, which may not be accurate.
      +     * 
      + * + * string language_code = 35; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
      +     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      +     * information, see [Standard
      +     * fields](https://cloud.google.com/apis/design/standard_fields). This field
      +     * helps to better interpret the query. If a value isn't specified, the query
      +     * language code is automatically detected, which may not be accurate.
      +     * 
      + * + * string language_code = 35; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
      +     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      +     * information, see [Standard
      +     * fields](https://cloud.google.com/apis/design/standard_fields). This field
      +     * helps to better interpret the query. If a value isn't specified, the query
      +     * language code is automatically detected, which may not be accurate.
      +     * 
      + * + * string language_code = 35; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object regionCode_ = ""; + /** + * + * + *
      +     * The Unicode country/region code (CLDR) of a location, such as "US" and
      +     * "419". For more information, see [Standard
      +     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
      +     * then results will be boosted based on the region_code provided.
      +     * 
      + * + * string region_code = 36; + * + * @return The regionCode. + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * The Unicode country/region code (CLDR) of a location, such as "US" and
      +     * "419". For more information, see [Standard
      +     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
      +     * then results will be boosted based on the region_code provided.
      +     * 
      + * + * string region_code = 36; + * + * @return The bytes for regionCode. + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * The Unicode country/region code (CLDR) of a location, such as "US" and
      +     * "419". For more information, see [Standard
      +     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
      +     * then results will be boosted based on the region_code provided.
      +     * 
      + * + * string region_code = 36; + * + * @param value The regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + regionCode_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
      +     * The Unicode country/region code (CLDR) of a location, such as "US" and
      +     * "419". For more information, see [Standard
      +     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
      +     * then results will be boosted based on the region_code provided.
      +     * 
      + * + * string region_code = 36; + * + * @return This builder for chaining. + */ + public Builder clearRegionCode() { + regionCode_ = getDefaultInstance().getRegionCode(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + /** + * + * + *
      +     * The Unicode country/region code (CLDR) of a location, such as "US" and
      +     * "419". For more information, see [Standard
      +     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
      +     * then results will be boosted based on the region_code provided.
      +     * 
      + * + * string region_code = 36; + * + * @param value The bytes for regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + regionCode_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + private java.util.List facetSpecs_ = java.util.Collections.emptyList(); private void ensureFacetSpecsIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { + if (!((bitField0_ & 0x00004000) != 0)) { facetSpecs_ = new java.util.ArrayList< com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec>(facetSpecs_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; } } @@ -28775,7 +34438,7 @@ public Builder addAllFacetSpecs( public Builder clearFacetSpecs() { if (facetSpecsBuilder_ == null) { facetSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { facetSpecsBuilder_.clear(); @@ -28933,7 +34596,7 @@ public Builder removeFacetSpecs(int index) { com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder>( - facetSpecs_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); + facetSpecs_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); facetSpecs_ = null; } return facetSpecsBuilder_; @@ -28959,7 +34622,7 @@ public Builder removeFacetSpecs(int index) { * @return Whether the boostSpec field is set. */ public boolean hasBoostSpec() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -29004,7 +34667,7 @@ public Builder setBoostSpec( } else { boostSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -29026,7 +34689,7 @@ public Builder setBoostSpec( } else { boostSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -29044,7 +34707,7 @@ public Builder setBoostSpec( public Builder mergeBoostSpec( com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { if (boostSpecBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00008000) != 0) && boostSpec_ != null && boostSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec @@ -29057,7 +34720,7 @@ public Builder mergeBoostSpec( boostSpecBuilder_.mergeFrom(value); } if (boostSpec_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -29074,7 +34737,7 @@ public Builder mergeBoostSpec( * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ public Builder clearBoostSpec() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00008000); boostSpec_ = null; if (boostSpecBuilder_ != null) { boostSpecBuilder_.dispose(); @@ -29096,7 +34759,7 @@ public Builder clearBoostSpec() { */ public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder getBoostSpecBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return getBoostSpecFieldBuilder().getBuilder(); } @@ -29197,7 +34860,7 @@ public com.google.protobuf.Value build(com.google.protobuf.ValueOrBuilder val) { if (params_ == null) { params_ = new com.google.protobuf.MapFieldBuilder<>(paramsConverter); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return params_; } @@ -29340,7 +35003,7 @@ public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { } public Builder clearParams() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); internalGetMutableParams().clear(); return this; } @@ -29377,7 +35040,7 @@ public Builder removeParams(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParams() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; return internalGetMutableParams().ensureMessageMap(); } /** @@ -29411,7 +35074,7 @@ public Builder putParams(java.lang.String key, com.google.protobuf.Value value) throw new NullPointerException("map value"); } internalGetMutableParams().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; return this; } /** @@ -29444,7 +35107,7 @@ public Builder putAllParams(java.util.Map */ public Builder clearQueryExpansionSpec() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00020000); queryExpansionSpec_ = null; if (queryExpansionSpecBuilder_ != null) { queryExpansionSpecBuilder_.dispose(); @@ -29653,7 +35316,7 @@ public Builder clearQueryExpansionSpec() { */ public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder getQueryExpansionSpecBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return getQueryExpansionSpecFieldBuilder().getBuilder(); } @@ -29731,7 +35394,7 @@ public Builder clearQueryExpansionSpec() { * @return Whether the spellCorrectionSpec field is set. */ public boolean hasSpellCorrectionSpec() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -29780,7 +35443,7 @@ public Builder setSpellCorrectionSpec( } else { spellCorrectionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -29804,7 +35467,7 @@ public Builder setSpellCorrectionSpec( } else { spellCorrectionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -29823,7 +35486,7 @@ public Builder setSpellCorrectionSpec( public Builder mergeSpellCorrectionSpec( com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec value) { if (spellCorrectionSpecBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00040000) != 0) && spellCorrectionSpec_ != null && spellCorrectionSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec @@ -29836,7 +35499,7 @@ public Builder mergeSpellCorrectionSpec( spellCorrectionSpecBuilder_.mergeFrom(value); } if (spellCorrectionSpec_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -29854,7 +35517,7 @@ public Builder mergeSpellCorrectionSpec( *
      */ public Builder clearSpellCorrectionSpec() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00040000); spellCorrectionSpec_ = null; if (spellCorrectionSpecBuilder_ != null) { spellCorrectionSpecBuilder_.dispose(); @@ -29877,7 +35540,7 @@ public Builder clearSpellCorrectionSpec() { */ public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder getSpellCorrectionSpecBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return getSpellCorrectionSpecFieldBuilder().getBuilder(); } @@ -30034,7 +35697,7 @@ public Builder setUserPseudoId(java.lang.String value) { throw new NullPointerException(); } userPseudoId_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -30064,7 +35727,7 @@ public Builder setUserPseudoId(java.lang.String value) { */ public Builder clearUserPseudoId() { userPseudoId_ = getDefaultInstance().getUserPseudoId(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -30099,7 +35762,7 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); userPseudoId_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -30125,7 +35788,7 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { * @return Whether the contentSearchSpec field is set. */ public boolean hasContentSearchSpec() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -30172,7 +35835,7 @@ public Builder setContentSearchSpec( } else { contentSearchSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -30195,7 +35858,7 @@ public Builder setContentSearchSpec( } else { contentSearchSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -30213,7 +35876,7 @@ public Builder setContentSearchSpec( public Builder mergeContentSearchSpec( com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec value) { if (contentSearchSpecBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) + if (((bitField0_ & 0x00100000) != 0) && contentSearchSpec_ != null && contentSearchSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec @@ -30226,7 +35889,7 @@ public Builder mergeContentSearchSpec( contentSearchSpecBuilder_.mergeFrom(value); } if (contentSearchSpec_ != null) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -30243,7 +35906,7 @@ public Builder mergeContentSearchSpec( *
      */ public Builder clearContentSearchSpec() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00100000); contentSearchSpec_ = null; if (contentSearchSpecBuilder_ != null) { contentSearchSpecBuilder_.dispose(); @@ -30265,7 +35928,7 @@ public Builder clearContentSearchSpec() { */ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder getContentSearchSpecBuilder() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return getContentSearchSpecFieldBuilder().getBuilder(); } @@ -30347,7 +36010,7 @@ public Builder clearContentSearchSpec() { * @return Whether the embeddingSpec field is set. */ public boolean hasEmbeddingSpec() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** * @@ -30409,7 +36072,7 @@ public Builder setEmbeddingSpec( } else { embeddingSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -30440,7 +36103,7 @@ public Builder setEmbeddingSpec( } else { embeddingSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -30466,7 +36129,7 @@ public Builder setEmbeddingSpec( public Builder mergeEmbeddingSpec( com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec value) { if (embeddingSpecBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00200000) != 0) && embeddingSpec_ != null && embeddingSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec @@ -30479,7 +36142,7 @@ public Builder mergeEmbeddingSpec( embeddingSpecBuilder_.mergeFrom(value); } if (embeddingSpec_ != null) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); } return this; @@ -30504,7 +36167,7 @@ public Builder mergeEmbeddingSpec( *
      */ public Builder clearEmbeddingSpec() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00200000); embeddingSpec_ = null; if (embeddingSpecBuilder_ != null) { embeddingSpecBuilder_.dispose(); @@ -30534,7 +36197,7 @@ public Builder clearEmbeddingSpec() { */ public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder getEmbeddingSpecBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return getEmbeddingSpecFieldBuilder().getBuilder(); } @@ -30613,20 +36276,26 @@ public Builder clearEmbeddingSpec() { * documents. This overrides * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. * The ranking expression is a single function or multiple functions that are - * joint by "+". + * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * `relevance_score`: pre-defined keywords, used for measure relevance + * + * * `relevance_score`: pre-defined keywords, used for measure relevance * between query and document. - * `embedding_field_path`: the document embedding field + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * `dotProduct`: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * @@ -30654,20 +36323,26 @@ public java.lang.String getRankingExpression() { * documents. This overrides * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. * The ranking expression is a single function or multiple functions that are - * joint by "+". + * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * `relevance_score`: pre-defined keywords, used for measure relevance + * + * * `relevance_score`: pre-defined keywords, used for measure relevance * between query and document. - * `embedding_field_path`: the document embedding field + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * `dotProduct`: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * @@ -30695,20 +36370,26 @@ public com.google.protobuf.ByteString getRankingExpressionBytes() { * documents. This overrides * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. * The ranking expression is a single function or multiple functions that are - * joint by "+". + * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * `relevance_score`: pre-defined keywords, used for measure relevance + * + * * `relevance_score`: pre-defined keywords, used for measure relevance * between query and document. - * `embedding_field_path`: the document embedding field + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * `dotProduct`: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * @@ -30723,7 +36404,7 @@ public Builder setRankingExpression(java.lang.String value) { throw new NullPointerException(); } rankingExpression_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -30735,20 +36416,26 @@ public Builder setRankingExpression(java.lang.String value) { * documents. This overrides * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. * The ranking expression is a single function or multiple functions that are - * joint by "+". + * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * `relevance_score`: pre-defined keywords, used for measure relevance + * + * * `relevance_score`: pre-defined keywords, used for measure relevance * between query and document. - * `embedding_field_path`: the document embedding field + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * `dotProduct`: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * @@ -30759,7 +36446,7 @@ public Builder setRankingExpression(java.lang.String value) { */ public Builder clearRankingExpression() { rankingExpression_ = getDefaultInstance().getRankingExpression(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } @@ -30771,20 +36458,26 @@ public Builder clearRankingExpression() { * documents. This overrides * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. * The ranking expression is a single function or multiple functions that are - * joint by "+". + * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * `relevance_score`: pre-defined keywords, used for measure relevance + * + * * `relevance_score`: pre-defined keywords, used for measure relevance * between query and document. - * `embedding_field_path`: the document embedding field + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * `dotProduct`: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * @@ -30800,7 +36493,7 @@ public Builder setRankingExpressionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); rankingExpression_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -30838,7 +36531,7 @@ public boolean getSafeSearch() { public Builder setSafeSearch(boolean value) { safeSearch_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -30855,7 +36548,7 @@ public Builder setSafeSearch(boolean value) { * @return This builder for chaining. */ public Builder clearSafeSearch() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00800000); safeSearch_ = false; onChanged(); return this; @@ -30881,7 +36574,7 @@ public Builder clearSafeSearch() { if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; onChanged(); return userLabels_; } @@ -31030,7 +36723,7 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) { } public Builder clearUserLabels() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x01000000); internalGetMutableUserLabels().getMutableMap().clear(); return this; } @@ -31069,7 +36762,7 @@ public Builder removeUserLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableUserLabels() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return internalGetMutableUserLabels().getMutableMap(); } /** @@ -31105,7 +36798,7 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableUserLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return this; } /** @@ -31135,9 +36828,932 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllUserLabels(java.util.Map values) { internalGetMutableUserLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; + return this; + } + + private com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + naturalLanguageQueryUnderstandingSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder> + naturalLanguageQueryUnderstandingSpecBuilder_; + /** + * + * + *
      +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +     * natural language query understanding will be done.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + * + * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. + */ + public boolean hasNaturalLanguageQueryUnderstandingSpec() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + * + * + *
      +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +     * natural language query understanding will be done.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + * + * @return The naturalLanguageQueryUnderstandingSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + getNaturalLanguageQueryUnderstandingSpec() { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; + } else { + return naturalLanguageQueryUnderstandingSpecBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +     * natural language query understanding will be done.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + */ + public Builder setNaturalLanguageQueryUnderstandingSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + value) { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + naturalLanguageQueryUnderstandingSpec_ = value; + } else { + naturalLanguageQueryUnderstandingSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + * + * + *
      +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +     * natural language query understanding will be done.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + */ + public Builder setNaturalLanguageQueryUnderstandingSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .Builder + builderForValue) { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + naturalLanguageQueryUnderstandingSpec_ = builderForValue.build(); + } else { + naturalLanguageQueryUnderstandingSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + * + * + *
      +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +     * natural language query understanding will be done.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + */ + public Builder mergeNaturalLanguageQueryUnderstandingSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + value) { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0) + && naturalLanguageQueryUnderstandingSpec_ != null + && naturalLanguageQueryUnderstandingSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance()) { + getNaturalLanguageQueryUnderstandingSpecBuilder().mergeFrom(value); + } else { + naturalLanguageQueryUnderstandingSpec_ = value; + } + } else { + naturalLanguageQueryUnderstandingSpecBuilder_.mergeFrom(value); + } + if (naturalLanguageQueryUnderstandingSpec_ != null) { + bitField0_ |= 0x02000000; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +     * natural language query understanding will be done.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + */ + public Builder clearNaturalLanguageQueryUnderstandingSpec() { + bitField0_ = (bitField0_ & ~0x02000000); + naturalLanguageQueryUnderstandingSpec_ = null; + if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { + naturalLanguageQueryUnderstandingSpecBuilder_.dispose(); + naturalLanguageQueryUnderstandingSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +     * natural language query understanding will be done.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder + getNaturalLanguageQueryUnderstandingSpecBuilder() { + bitField0_ |= 0x02000000; + onChanged(); + return getNaturalLanguageQueryUnderstandingSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +     * natural language query understanding will be done.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder + getNaturalLanguageQueryUnderstandingSpecOrBuilder() { + if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { + return naturalLanguageQueryUnderstandingSpecBuilder_.getMessageOrBuilder(); + } else { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; + } + } + /** + * + * + *
      +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +     * natural language query understanding will be done.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder> + getNaturalLanguageQueryUnderstandingSpecFieldBuilder() { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + naturalLanguageQueryUnderstandingSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder>( + getNaturalLanguageQueryUnderstandingSpec(), getParentForChildren(), isClean()); + naturalLanguageQueryUnderstandingSpec_ = null; + } + return naturalLanguageQueryUnderstandingSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + searchAsYouTypeSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder> + searchAsYouTypeSpecBuilder_; + /** + * + * + *
      +     * Search as you type configuration. Only supported for the
      +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +     * vertical.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + * + * @return Whether the searchAsYouTypeSpec field is set. + */ + public boolean hasSearchAsYouTypeSpec() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + * + * + *
      +     * Search as you type configuration. Only supported for the
      +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +     * vertical.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + * + * @return The searchAsYouTypeSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + getSearchAsYouTypeSpec() { + if (searchAsYouTypeSpecBuilder_ == null) { + return searchAsYouTypeSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + .getDefaultInstance() + : searchAsYouTypeSpec_; + } else { + return searchAsYouTypeSpecBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Search as you type configuration. Only supported for the
      +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +     * vertical.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + */ + public Builder setSearchAsYouTypeSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec value) { + if (searchAsYouTypeSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchAsYouTypeSpec_ = value; + } else { + searchAsYouTypeSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Search as you type configuration. Only supported for the
      +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +     * vertical.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + */ + public Builder setSearchAsYouTypeSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder + builderForValue) { + if (searchAsYouTypeSpecBuilder_ == null) { + searchAsYouTypeSpec_ = builderForValue.build(); + } else { + searchAsYouTypeSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Search as you type configuration. Only supported for the
      +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +     * vertical.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + */ + public Builder mergeSearchAsYouTypeSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec value) { + if (searchAsYouTypeSpecBuilder_ == null) { + if (((bitField0_ & 0x04000000) != 0) + && searchAsYouTypeSpec_ != null + && searchAsYouTypeSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + .getDefaultInstance()) { + getSearchAsYouTypeSpecBuilder().mergeFrom(value); + } else { + searchAsYouTypeSpec_ = value; + } + } else { + searchAsYouTypeSpecBuilder_.mergeFrom(value); + } + if (searchAsYouTypeSpec_ != null) { + bitField0_ |= 0x04000000; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Search as you type configuration. Only supported for the
      +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +     * vertical.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + */ + public Builder clearSearchAsYouTypeSpec() { + bitField0_ = (bitField0_ & ~0x04000000); + searchAsYouTypeSpec_ = null; + if (searchAsYouTypeSpecBuilder_ != null) { + searchAsYouTypeSpecBuilder_.dispose(); + searchAsYouTypeSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Search as you type configuration. Only supported for the
      +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +     * vertical.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder + getSearchAsYouTypeSpecBuilder() { + bitField0_ |= 0x04000000; + onChanged(); + return getSearchAsYouTypeSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Search as you type configuration. Only supported for the
      +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +     * vertical.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder + getSearchAsYouTypeSpecOrBuilder() { + if (searchAsYouTypeSpecBuilder_ != null) { + return searchAsYouTypeSpecBuilder_.getMessageOrBuilder(); + } else { + return searchAsYouTypeSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + .getDefaultInstance() + : searchAsYouTypeSpec_; + } + } + /** + * + * + *
      +     * Search as you type configuration. Only supported for the
      +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +     * vertical.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder> + getSearchAsYouTypeSpecFieldBuilder() { + if (searchAsYouTypeSpecBuilder_ == null) { + searchAsYouTypeSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder>( + getSearchAsYouTypeSpec(), getParentForChildren(), isClean()); + searchAsYouTypeSpec_ = null; + } + return searchAsYouTypeSpecBuilder_; + } + + private java.lang.Object session_ = ""; + /** + * + * + *
      +     * The session resource name. Optional.
      +     *
      +     * Session allows users to do multi-turn /search API calls or coordination
      +     * between /search API calls and /answer API calls.
      +     *
      +     * Example #1 (multi-turn /search API calls):
      +     *   1. Call /search API with the auto-session mode (see below).
      +     *   2. Call /search API with the session ID generated in the first call.
      +     *      Here, the previous search query gets considered in query
      +     *      standing. I.e., if the first query is "How did Alphabet do in 2022?"
      +     *      and the current query is "How about 2023?", the current query will
      +     *      be interpreted as "How did Alphabet do in 2023?".
      +     *
      +     * Example #2 (coordination between /search API calls and /answer API calls):
      +     *   1. Call /search API with the auto-session mode (see below).
      +     *   2. Call /answer API with the session ID generated in the first call.
      +     *      Here, the answer generation happens in the context of the search
      +     *      results from the first search call.
      +     *
      +     * Auto-session mode: when `projects/.../sessions/-` is used, a new session
      +     * gets automatically created. Otherwise, users can use the create-session API
      +     * to create a session manually.
      +     *
      +     * Multi-turn Search feature is currently at private GA stage. Please use
      +     * v1alpha or v1beta version instead before we launch this feature to public
      +     * GA. Or ask for allowlisting through Google Support team.
      +     * 
      + * + * string session = 41 [(.google.api.resource_reference) = { ... } + * + * @return The session. + */ + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * The session resource name. Optional.
      +     *
      +     * Session allows users to do multi-turn /search API calls or coordination
      +     * between /search API calls and /answer API calls.
      +     *
      +     * Example #1 (multi-turn /search API calls):
      +     *   1. Call /search API with the auto-session mode (see below).
      +     *   2. Call /search API with the session ID generated in the first call.
      +     *      Here, the previous search query gets considered in query
      +     *      standing. I.e., if the first query is "How did Alphabet do in 2022?"
      +     *      and the current query is "How about 2023?", the current query will
      +     *      be interpreted as "How did Alphabet do in 2023?".
      +     *
      +     * Example #2 (coordination between /search API calls and /answer API calls):
      +     *   1. Call /search API with the auto-session mode (see below).
      +     *   2. Call /answer API with the session ID generated in the first call.
      +     *      Here, the answer generation happens in the context of the search
      +     *      results from the first search call.
      +     *
      +     * Auto-session mode: when `projects/.../sessions/-` is used, a new session
      +     * gets automatically created. Otherwise, users can use the create-session API
      +     * to create a session manually.
      +     *
      +     * Multi-turn Search feature is currently at private GA stage. Please use
      +     * v1alpha or v1beta version instead before we launch this feature to public
      +     * GA. Or ask for allowlisting through Google Support team.
      +     * 
      + * + * string session = 41 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for session. + */ + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * The session resource name. Optional.
      +     *
      +     * Session allows users to do multi-turn /search API calls or coordination
      +     * between /search API calls and /answer API calls.
      +     *
      +     * Example #1 (multi-turn /search API calls):
      +     *   1. Call /search API with the auto-session mode (see below).
      +     *   2. Call /search API with the session ID generated in the first call.
      +     *      Here, the previous search query gets considered in query
      +     *      standing. I.e., if the first query is "How did Alphabet do in 2022?"
      +     *      and the current query is "How about 2023?", the current query will
      +     *      be interpreted as "How did Alphabet do in 2023?".
      +     *
      +     * Example #2 (coordination between /search API calls and /answer API calls):
      +     *   1. Call /search API with the auto-session mode (see below).
      +     *   2. Call /answer API with the session ID generated in the first call.
      +     *      Here, the answer generation happens in the context of the search
      +     *      results from the first search call.
      +     *
      +     * Auto-session mode: when `projects/.../sessions/-` is used, a new session
      +     * gets automatically created. Otherwise, users can use the create-session API
      +     * to create a session manually.
      +     *
      +     * Multi-turn Search feature is currently at private GA stage. Please use
      +     * v1alpha or v1beta version instead before we launch this feature to public
      +     * GA. Or ask for allowlisting through Google Support team.
      +     * 
      + * + * string session = 41 [(.google.api.resource_reference) = { ... } + * + * @param value The session to set. + * @return This builder for chaining. + */ + public Builder setSession(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + session_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + * + * + *
      +     * The session resource name. Optional.
      +     *
      +     * Session allows users to do multi-turn /search API calls or coordination
      +     * between /search API calls and /answer API calls.
      +     *
      +     * Example #1 (multi-turn /search API calls):
      +     *   1. Call /search API with the auto-session mode (see below).
      +     *   2. Call /search API with the session ID generated in the first call.
      +     *      Here, the previous search query gets considered in query
      +     *      standing. I.e., if the first query is "How did Alphabet do in 2022?"
      +     *      and the current query is "How about 2023?", the current query will
      +     *      be interpreted as "How did Alphabet do in 2023?".
      +     *
      +     * Example #2 (coordination between /search API calls and /answer API calls):
      +     *   1. Call /search API with the auto-session mode (see below).
      +     *   2. Call /answer API with the session ID generated in the first call.
      +     *      Here, the answer generation happens in the context of the search
      +     *      results from the first search call.
      +     *
      +     * Auto-session mode: when `projects/.../sessions/-` is used, a new session
      +     * gets automatically created. Otherwise, users can use the create-session API
      +     * to create a session manually.
      +     *
      +     * Multi-turn Search feature is currently at private GA stage. Please use
      +     * v1alpha or v1beta version instead before we launch this feature to public
      +     * GA. Or ask for allowlisting through Google Support team.
      +     * 
      + * + * string session = 41 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearSession() { + session_ = getDefaultInstance().getSession(); + bitField0_ = (bitField0_ & ~0x08000000); + onChanged(); + return this; + } + /** + * + * + *
      +     * The session resource name. Optional.
      +     *
      +     * Session allows users to do multi-turn /search API calls or coordination
      +     * between /search API calls and /answer API calls.
      +     *
      +     * Example #1 (multi-turn /search API calls):
      +     *   1. Call /search API with the auto-session mode (see below).
      +     *   2. Call /search API with the session ID generated in the first call.
      +     *      Here, the previous search query gets considered in query
      +     *      standing. I.e., if the first query is "How did Alphabet do in 2022?"
      +     *      and the current query is "How about 2023?", the current query will
      +     *      be interpreted as "How did Alphabet do in 2023?".
      +     *
      +     * Example #2 (coordination between /search API calls and /answer API calls):
      +     *   1. Call /search API with the auto-session mode (see below).
      +     *   2. Call /answer API with the session ID generated in the first call.
      +     *      Here, the answer generation happens in the context of the search
      +     *      results from the first search call.
      +     *
      +     * Auto-session mode: when `projects/.../sessions/-` is used, a new session
      +     * gets automatically created. Otherwise, users can use the create-session API
      +     * to create a session manually.
      +     *
      +     * Multi-turn Search feature is currently at private GA stage. Please use
      +     * v1alpha or v1beta version instead before we launch this feature to public
      +     * GA. Or ask for allowlisting through Google Support team.
      +     * 
      + * + * string session = 41 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for session to set. + * @return This builder for chaining. + */ + public Builder setSessionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + session_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec sessionSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder> + sessionSpecBuilder_; + /** + * + * + *
      +     * Session specification.
      +     *
      +     * Can be used only when `session` is set.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * + * @return Whether the sessionSpec field is set. + */ + public boolean hasSessionSpec() { + return ((bitField0_ & 0x10000000) != 0); + } + /** + * + * + *
      +     * Session specification.
      +     *
      +     * Can be used only when `session` is set.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * + * @return The sessionSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec getSessionSpec() { + if (sessionSpecBuilder_ == null) { + return sessionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.getDefaultInstance() + : sessionSpec_; + } else { + return sessionSpecBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Session specification.
      +     *
      +     * Can be used only when `session` is set.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + */ + public Builder setSessionSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec value) { + if (sessionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sessionSpec_ = value; + } else { + sessionSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Session specification.
      +     *
      +     * Can be used only when `session` is set.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + */ + public Builder setSessionSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder builderForValue) { + if (sessionSpecBuilder_ == null) { + sessionSpec_ = builderForValue.build(); + } else { + sessionSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Session specification.
      +     *
      +     * Can be used only when `session` is set.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + */ + public Builder mergeSessionSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec value) { + if (sessionSpecBuilder_ == null) { + if (((bitField0_ & 0x10000000) != 0) + && sessionSpec_ != null + && sessionSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + .getDefaultInstance()) { + getSessionSpecBuilder().mergeFrom(value); + } else { + sessionSpec_ = value; + } + } else { + sessionSpecBuilder_.mergeFrom(value); + } + if (sessionSpec_ != null) { + bitField0_ |= 0x10000000; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Session specification.
      +     *
      +     * Can be used only when `session` is set.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + */ + public Builder clearSessionSpec() { + bitField0_ = (bitField0_ & ~0x10000000); + sessionSpec_ = null; + if (sessionSpecBuilder_ != null) { + sessionSpecBuilder_.dispose(); + sessionSpecBuilder_ = null; + } + onChanged(); return this; } + /** + * + * + *
      +     * Session specification.
      +     *
      +     * Can be used only when `session` is set.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder + getSessionSpecBuilder() { + bitField0_ |= 0x10000000; + onChanged(); + return getSessionSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Session specification.
      +     *
      +     * Can be used only when `session` is set.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder + getSessionSpecOrBuilder() { + if (sessionSpecBuilder_ != null) { + return sessionSpecBuilder_.getMessageOrBuilder(); + } else { + return sessionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.getDefaultInstance() + : sessionSpec_; + } + } + /** + * + * + *
      +     * Session specification.
      +     *
      +     * Can be used only when `session` is set.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder> + getSessionSpecFieldBuilder() { + if (sessionSpecBuilder_ == null) { + sessionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder>( + getSessionSpec(), getParentForChildren(), isClean()); + sessionSpec_ = null; + } + return sessionSpecBuilder_; + } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java index acfb930e6c22..d4a4ea6b1602 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java @@ -502,6 +502,70 @@ public interface SearchRequestOrBuilder */ com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder(); + /** + * + * + *
      +   * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      +   * information, see [Standard
      +   * fields](https://cloud.google.com/apis/design/standard_fields). This field
      +   * helps to better interpret the query. If a value isn't specified, the query
      +   * language code is automatically detected, which may not be accurate.
      +   * 
      + * + * string language_code = 35; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + /** + * + * + *
      +   * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      +   * information, see [Standard
      +   * fields](https://cloud.google.com/apis/design/standard_fields). This field
      +   * helps to better interpret the query. If a value isn't specified, the query
      +   * language code is automatically detected, which may not be accurate.
      +   * 
      + * + * string language_code = 35; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
      +   * The Unicode country/region code (CLDR) of a location, such as "US" and
      +   * "419". For more information, see [Standard
      +   * fields](https://cloud.google.com/apis/design/standard_fields). If set,
      +   * then results will be boosted based on the region_code provided.
      +   * 
      + * + * string region_code = 36; + * + * @return The regionCode. + */ + java.lang.String getRegionCode(); + /** + * + * + *
      +   * The Unicode country/region code (CLDR) of a location, such as "US" and
      +   * "419". For more information, see [Standard
      +   * fields](https://cloud.google.com/apis/design/standard_fields). If set,
      +   * then results will be boosted based on the region_code provided.
      +   * 
      + * + * string region_code = 36; + * + * @return The bytes for regionCode. + */ + com.google.protobuf.ByteString getRegionCodeBytes(); + /** * * @@ -1003,20 +1067,26 @@ com.google.protobuf.Value getParamsOrDefault( * documents. This overrides * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. * The ranking expression is a single function or multiple functions that are - * joint by "+". + * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * `relevance_score`: pre-defined keywords, used for measure relevance + * + * * `relevance_score`: pre-defined keywords, used for measure relevance * between query and document. - * `embedding_field_path`: the document embedding field + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * `dotProduct`: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * @@ -1034,20 +1104,26 @@ com.google.protobuf.Value getParamsOrDefault( * documents. This overrides * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. * The ranking expression is a single function or multiple functions that are - * joint by "+". + * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * `relevance_score`: pre-defined keywords, used for measure relevance + * + * * `relevance_score`: pre-defined keywords, used for measure relevance * between query and document. - * `embedding_field_path`: the document embedding field + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * `dotProduct`: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * @@ -1209,4 +1285,217 @@ java.lang.String getUserLabelsOrDefault( * map<string, string> user_labels = 22; */ java.lang.String getUserLabelsOrThrow(java.lang.String key); + + /** + * + * + *
      +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +   * natural language query understanding will be done.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + * + * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. + */ + boolean hasNaturalLanguageQueryUnderstandingSpec(); + /** + * + * + *
      +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +   * natural language query understanding will be done.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + * + * @return The naturalLanguageQueryUnderstandingSpec. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + getNaturalLanguageQueryUnderstandingSpec(); + /** + * + * + *
      +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
      +   * natural language query understanding will be done.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder + getNaturalLanguageQueryUnderstandingSpecOrBuilder(); + + /** + * + * + *
      +   * Search as you type configuration. Only supported for the
      +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +   * vertical.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + * + * @return Whether the searchAsYouTypeSpec field is set. + */ + boolean hasSearchAsYouTypeSpec(); + /** + * + * + *
      +   * Search as you type configuration. Only supported for the
      +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +   * vertical.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + * + * @return The searchAsYouTypeSpec. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + getSearchAsYouTypeSpec(); + /** + * + * + *
      +   * Search as you type configuration. Only supported for the
      +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
      +   * vertical.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder + getSearchAsYouTypeSpecOrBuilder(); + + /** + * + * + *
      +   * The session resource name. Optional.
      +   *
      +   * Session allows users to do multi-turn /search API calls or coordination
      +   * between /search API calls and /answer API calls.
      +   *
      +   * Example #1 (multi-turn /search API calls):
      +   *   1. Call /search API with the auto-session mode (see below).
      +   *   2. Call /search API with the session ID generated in the first call.
      +   *      Here, the previous search query gets considered in query
      +   *      standing. I.e., if the first query is "How did Alphabet do in 2022?"
      +   *      and the current query is "How about 2023?", the current query will
      +   *      be interpreted as "How did Alphabet do in 2023?".
      +   *
      +   * Example #2 (coordination between /search API calls and /answer API calls):
      +   *   1. Call /search API with the auto-session mode (see below).
      +   *   2. Call /answer API with the session ID generated in the first call.
      +   *      Here, the answer generation happens in the context of the search
      +   *      results from the first search call.
      +   *
      +   * Auto-session mode: when `projects/.../sessions/-` is used, a new session
      +   * gets automatically created. Otherwise, users can use the create-session API
      +   * to create a session manually.
      +   *
      +   * Multi-turn Search feature is currently at private GA stage. Please use
      +   * v1alpha or v1beta version instead before we launch this feature to public
      +   * GA. Or ask for allowlisting through Google Support team.
      +   * 
      + * + * string session = 41 [(.google.api.resource_reference) = { ... } + * + * @return The session. + */ + java.lang.String getSession(); + /** + * + * + *
      +   * The session resource name. Optional.
      +   *
      +   * Session allows users to do multi-turn /search API calls or coordination
      +   * between /search API calls and /answer API calls.
      +   *
      +   * Example #1 (multi-turn /search API calls):
      +   *   1. Call /search API with the auto-session mode (see below).
      +   *   2. Call /search API with the session ID generated in the first call.
      +   *      Here, the previous search query gets considered in query
      +   *      standing. I.e., if the first query is "How did Alphabet do in 2022?"
      +   *      and the current query is "How about 2023?", the current query will
      +   *      be interpreted as "How did Alphabet do in 2023?".
      +   *
      +   * Example #2 (coordination between /search API calls and /answer API calls):
      +   *   1. Call /search API with the auto-session mode (see below).
      +   *   2. Call /answer API with the session ID generated in the first call.
      +   *      Here, the answer generation happens in the context of the search
      +   *      results from the first search call.
      +   *
      +   * Auto-session mode: when `projects/.../sessions/-` is used, a new session
      +   * gets automatically created. Otherwise, users can use the create-session API
      +   * to create a session manually.
      +   *
      +   * Multi-turn Search feature is currently at private GA stage. Please use
      +   * v1alpha or v1beta version instead before we launch this feature to public
      +   * GA. Or ask for allowlisting through Google Support team.
      +   * 
      + * + * string session = 41 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for session. + */ + com.google.protobuf.ByteString getSessionBytes(); + + /** + * + * + *
      +   * Session specification.
      +   *
      +   * Can be used only when `session` is set.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * @return Whether the sessionSpec field is set. + */ + boolean hasSessionSpec(); + /** + * + * + *
      +   * Session specification.
      +   *
      +   * Can be used only when `session` is set.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * @return The sessionSpec. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec getSessionSpec(); + /** + * + * + *
      +   * Session specification.
      +   *
      +   * Can be used only when `session` is set.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder + getSessionSpecOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java index 555de2ef48f2..82fd1023d7f2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java @@ -142,6 +142,50 @@ public interface SearchResultOrBuilder */ com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBuilder(); + /** + * + * + *
      +     * The chunk data in the search response if the
      +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +     * is set to
      +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + * + * @return Whether the chunk field is set. + */ + boolean hasChunk(); + /** + * + * + *
      +     * The chunk data in the search response if the
      +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +     * is set to
      +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + * + * @return The chunk. + */ + com.google.cloud.discoveryengine.v1beta.Chunk getChunk(); + /** + * + * + *
      +     * The chunk data in the search response if the
      +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +     * is set to
      +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + */ + com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder getChunkOrBuilder(); + /** * * @@ -370,6 +414,65 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu : document_; } + public static final int CHUNK_FIELD_NUMBER = 18; + private com.google.cloud.discoveryengine.v1beta.Chunk chunk_; + /** + * + * + *
      +     * The chunk data in the search response if the
      +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +     * is set to
      +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + * + * @return Whether the chunk field is set. + */ + @java.lang.Override + public boolean hasChunk() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * The chunk data in the search response if the
      +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +     * is set to
      +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + * + * @return The chunk. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk getChunk() { + return chunk_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance() + : chunk_; + } + /** + * + * + *
      +     * The chunk data in the search response if the
      +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +     * is set to
      +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder getChunkOrBuilder() { + return chunk_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance() + : chunk_; + } + public static final int MODEL_SCORES_FIELD_NUMBER = 4; private static final class ModelScoresDefaultEntryHolder { @@ -513,6 +616,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetModelScores(), ModelScoresDefaultEntryHolder.defaultEntry, 4); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(18, getChunk()); + } getUnknownFields().writeTo(output); } @@ -540,6 +646,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, modelScores__); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getChunk()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -561,6 +670,10 @@ public boolean equals(final java.lang.Object obj) { if (hasDocument()) { if (!getDocument().equals(other.getDocument())) return false; } + if (hasChunk() != other.hasChunk()) return false; + if (hasChunk()) { + if (!getChunk().equals(other.getChunk())) return false; + } if (!internalGetModelScores().equals(other.internalGetModelScores())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -579,6 +692,10 @@ public int hashCode() { hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; hash = (53 * hash) + getDocument().hashCode(); } + if (hasChunk()) { + hash = (37 * hash) + CHUNK_FIELD_NUMBER; + hash = (53 * hash) + getChunk().hashCode(); + } if (!internalGetModelScores().getMap().isEmpty()) { hash = (37 * hash) + MODEL_SCORES_FIELD_NUMBER; hash = (53 * hash) + internalGetModelScores().hashCode(); @@ -751,6 +868,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDocumentFieldBuilder(); + getChunkFieldBuilder(); } } @@ -764,6 +882,11 @@ public Builder clear() { documentBuilder_.dispose(); documentBuilder_ = null; } + chunk_ = null; + if (chunkBuilder_ != null) { + chunkBuilder_.dispose(); + chunkBuilder_ = null; + } internalGetMutableModelScores().clear(); return this; } @@ -813,6 +936,10 @@ private void buildPartial0( to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.chunk_ = chunkBuilder_ == null ? chunk_ : chunkBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.modelScores_ = internalGetModelScores().build(ModelScoresDefaultEntryHolder.defaultEntry); } @@ -878,8 +1005,11 @@ public Builder mergeFrom( if (other.hasDocument()) { mergeDocument(other.getDocument()); } + if (other.hasChunk()) { + mergeChunk(other.getChunk()); + } internalGetMutableModelScores().mergeFrom(other.internalGetModelScores()); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -929,9 +1059,15 @@ public Builder mergeFrom( internalGetMutableModelScores() .ensureBuilderMap() .put(modelScores__.getKey(), modelScores__.getValue()); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 34 + case 146: + { + input.readMessage(getChunkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1258,6 +1394,219 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu return documentBuilder_; } + private com.google.cloud.discoveryengine.v1beta.Chunk chunk_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk, + com.google.cloud.discoveryengine.v1beta.Chunk.Builder, + com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder> + chunkBuilder_; + /** + * + * + *
      +       * The chunk data in the search response if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +       * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + * + * @return Whether the chunk field is set. + */ + public boolean hasChunk() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +       * The chunk data in the search response if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +       * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + * + * @return The chunk. + */ + public com.google.cloud.discoveryengine.v1beta.Chunk getChunk() { + if (chunkBuilder_ == null) { + return chunk_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance() + : chunk_; + } else { + return chunkBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * The chunk data in the search response if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +       * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + */ + public Builder setChunk(com.google.cloud.discoveryengine.v1beta.Chunk value) { + if (chunkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunk_ = value; + } else { + chunkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +       * The chunk data in the search response if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +       * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + */ + public Builder setChunk( + com.google.cloud.discoveryengine.v1beta.Chunk.Builder builderForValue) { + if (chunkBuilder_ == null) { + chunk_ = builderForValue.build(); + } else { + chunkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +       * The chunk data in the search response if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +       * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + */ + public Builder mergeChunk(com.google.cloud.discoveryengine.v1beta.Chunk value) { + if (chunkBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && chunk_ != null + && chunk_ != com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance()) { + getChunkBuilder().mergeFrom(value); + } else { + chunk_ = value; + } + } else { + chunkBuilder_.mergeFrom(value); + } + if (chunk_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * The chunk data in the search response if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +       * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + */ + public Builder clearChunk() { + bitField0_ = (bitField0_ & ~0x00000004); + chunk_ = null; + if (chunkBuilder_ != null) { + chunkBuilder_.dispose(); + chunkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * The chunk data in the search response if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +       * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.Builder getChunkBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getChunkFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * The chunk data in the search response if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +       * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + */ + public com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder getChunkOrBuilder() { + if (chunkBuilder_ != null) { + return chunkBuilder_.getMessageOrBuilder(); + } else { + return chunk_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance() + : chunk_; + } + } + /** + * + * + *
      +       * The chunk data in the search response if the
      +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
      +       * is set to
      +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
      +       * 
      + * + * .google.cloud.discoveryengine.v1beta.Chunk chunk = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk, + com.google.cloud.discoveryengine.v1beta.Chunk.Builder, + com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder> + getChunkFieldBuilder() { + if (chunkBuilder_ == null) { + chunkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Chunk, + com.google.cloud.discoveryengine.v1beta.Chunk.Builder, + com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder>( + getChunk(), getParentForChildren(), isClean()); + chunk_ = null; + } + return chunkBuilder_; + } + private static final class ModelScoresConverter implements com.google.protobuf.MapFieldBuilder.Converter< java.lang.String, @@ -1310,7 +1659,7 @@ public com.google.cloud.discoveryengine.v1beta.DoubleList build( if (modelScores_ == null) { modelScores_ = new com.google.protobuf.MapFieldBuilder<>(modelScoresConverter); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return modelScores_; } @@ -1405,7 +1754,7 @@ public com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrThrow( } public Builder clearModelScores() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableModelScores().clear(); return this; } @@ -1430,7 +1779,7 @@ public Builder removeModelScores(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableModelScores() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return internalGetMutableModelScores().ensureMessageMap(); } /** @@ -1452,7 +1801,7 @@ public Builder putModelScores( throw new NullPointerException("map value"); } internalGetMutableModelScores().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return this; } /** @@ -1476,7 +1825,7 @@ public Builder putAllModelScores( } } internalGetMutableModelScores().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return this; } /** @@ -6992,6 +7341,19 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE * LLM_ADDON_NOT_ENABLED = 5; */ LLM_ADDON_NOT_ENABLED(5), + /** + * + * + *
      +       * The no relevant content case.
      +       *
      +       * Google skips the summary if there is no relevant content in the
      +       * retrieved search results.
      +       * 
      + * + * NO_RELEVANT_CONTENT = 6; + */ + NO_RELEVANT_CONTENT(6), UNRECOGNIZED(-1), ; @@ -7072,6 +7434,19 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE * LLM_ADDON_NOT_ENABLED = 5; */ public static final int LLM_ADDON_NOT_ENABLED_VALUE = 5; + /** + * + * + *
      +       * The no relevant content case.
      +       *
      +       * Google skips the summary if there is no relevant content in the
      +       * retrieved search results.
      +       * 
      + * + * NO_RELEVANT_CONTENT = 6; + */ + public static final int NO_RELEVANT_CONTENT_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -7109,6 +7484,8 @@ public static SummarySkippedReason forNumber(int value) { return POTENTIAL_POLICY_VIOLATION; case 5: return LLM_ADDON_NOT_ENABLED; + case 6: + return NO_RELEVANT_CONTENT; default: return null; } @@ -19063,50 +19440,12090 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - public static final int RESULTS_FIELD_NUMBER = 1; + public interface NaturalLanguageQueryUnderstandingInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private java.util.List - results_; - /** - * - * - *
      -   * A list of matched documents. The order represents the ranking.
      -   * 
      - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * - */ - @java.lang.Override - public java.util.List - getResultsList() { - return results_; - } - /** - * - * - *
      -   * A list of matched documents. The order represents the ranking.
      -   * 
      - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> - getResultsOrBuilderList() { - return results_; - } - /** - * - * - *
      -   * A list of matched documents. The order represents the ranking.
      -   * 
      - * + /** + * + * + *
      +     * The filters that were extracted from the input query.
      +     * 
      + * + * string extracted_filters = 1; + * + * @return The extractedFilters. + */ + java.lang.String getExtractedFilters(); + /** + * + * + *
      +     * The filters that were extracted from the input query.
      +     * 
      + * + * string extracted_filters = 1; + * + * @return The bytes for extractedFilters. + */ + com.google.protobuf.ByteString getExtractedFiltersBytes(); + + /** + * + * + *
      +     * Rewritten input query minus the extracted filters.
      +     * 
      + * + * string rewritten_query = 2; + * + * @return The rewrittenQuery. + */ + java.lang.String getRewrittenQuery(); + /** + * + * + *
      +     * Rewritten input query minus the extracted filters.
      +     * 
      + * + * string rewritten_query = 2; + * + * @return The bytes for rewrittenQuery. + */ + com.google.protobuf.ByteString getRewrittenQueryBytes(); + + /** + * + * + *
      +     * The filters that were extracted from the input query represented in a
      +     * structured form.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + * + * @return Whether the structuredExtractedFilter field is set. + */ + boolean hasStructuredExtractedFilter(); + /** + * + * + *
      +     * The filters that were extracted from the input query represented in a
      +     * structured form.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + * + * @return The structuredExtractedFilter. + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter + getStructuredExtractedFilter(); + /** + * + * + *
      +     * The filters that were extracted from the input query represented in a
      +     * structured form.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilterOrBuilder + getStructuredExtractedFilterOrBuilder(); + } + /** + * + * + *
      +   * Information describing what natural language understanding was
      +   * done on the input query.
      +   * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo} + */ + public static final class NaturalLanguageQueryUnderstandingInfo + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo) + NaturalLanguageQueryUnderstandingInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use NaturalLanguageQueryUnderstandingInfo.newBuilder() to construct. + private NaturalLanguageQueryUnderstandingInfo( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NaturalLanguageQueryUnderstandingInfo() { + extractedFilters_ = ""; + rewrittenQuery_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NaturalLanguageQueryUnderstandingInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.Builder.class); + } + + public interface StructuredExtractedFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * The expression denoting the filter that was extracted from the input
      +       * query in a structured form. It can be a simple expression denoting a
      +       * single string, numerical or geolocation constraint or a compound
      +       * expression which is a combination of multiple expressions connected
      +       * using logical (OR and AND) operators.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + * + * @return Whether the expression field is set. + */ + boolean hasExpression(); + /** + * + * + *
      +       * The expression denoting the filter that was extracted from the input
      +       * query in a structured form. It can be a simple expression denoting a
      +       * single string, numerical or geolocation constraint or a compound
      +       * expression which is a combination of multiple expressions connected
      +       * using logical (OR and AND) operators.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + * + * @return The expression. + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression + getExpression(); + /** + * + * + *
      +       * The expression denoting the filter that was extracted from the input
      +       * query in a structured form. It can be a simple expression denoting a
      +       * single string, numerical or geolocation constraint or a compound
      +       * expression which is a combination of multiple expressions connected
      +       * using logical (OR and AND) operators.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.ExpressionOrBuilder + getExpressionOrBuilder(); + } + /** + * + * + *
      +     * The filters that were extracted from the input query represented in a
      +     * structured form.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter} + */ + public static final class StructuredExtractedFilter + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) + StructuredExtractedFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use StructuredExtractedFilter.newBuilder() to construct. + private StructuredExtractedFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StructuredExtractedFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StructuredExtractedFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder.class); + } + + public interface StringConstraintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +         * Name of the string field as defined in the schema.
      +         * 
      + * + * string field_name = 1; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
      +         * Name of the string field as defined in the schema.
      +         * 
      + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + /** + * + * + *
      +         * Values of the string field. The record will only be returned if the
      +         * field value matches one of the values specified here.
      +         * 
      + * + * repeated string values = 2; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
      +         * Values of the string field. The record will only be returned if the
      +         * field value matches one of the values specified here.
      +         * 
      + * + * repeated string values = 2; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
      +         * Values of the string field. The record will only be returned if the
      +         * field value matches one of the values specified here.
      +         * 
      + * + * repeated string values = 2; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
      +         * Values of the string field. The record will only be returned if the
      +         * field value matches one of the values specified here.
      +         * 
      + * + * repeated string values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + } + /** + * + * + *
      +       * Constraint expression of a string field.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint} + */ + public static final class StringConstraint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint) + StringConstraintOrBuilder { + private static final long serialVersionUID = 0L; + // Use StringConstraint.newBuilder() to construct. + private StringConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StringConstraint() { + fieldName_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StringConstraint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.Builder.class); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + /** + * + * + *
      +         * Name of the string field as defined in the schema.
      +         * 
      + * + * string field_name = 1; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + /** + * + * + *
      +         * Name of the string field as defined in the schema.
      +         * 
      + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
      +         * Values of the string field. The record will only be returned if the
      +         * field value matches one of the values specified here.
      +         * 
      + * + * repeated string values = 2; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
      +         * Values of the string field. The record will only be returned if the
      +         * field value matches one of the values specified here.
      +         * 
      + * + * repeated string values = 2; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
      +         * Values of the string field. The record will only be returned if the
      +         * field value matches one of the values specified here.
      +         * 
      + * + * repeated string values = 2; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
      +         * Values of the string field. The record will only be returned if the
      +         * field value matches one of the values specified here.
      +         * 
      + * + * repeated string values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + } + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, values_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + } + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + other = + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +         * Constraint expression of a string field.
      +         * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint) + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldName_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + build() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint + result = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldName_ = fieldName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.getDefaultInstance()) return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000002; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object fieldName_ = ""; + /** + * + * + *
      +           * Name of the string field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +           * Name of the string field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +           * Name of the string field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +           * Name of the string field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +           * Name of the string field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
      +           * Values of the string field. The record will only be returned if the
      +           * field value matches one of the values specified here.
      +           * 
      + * + * repeated string values = 2; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * + * + *
      +           * Values of the string field. The record will only be returned if the
      +           * field value matches one of the values specified here.
      +           * 
      + * + * repeated string values = 2; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
      +           * Values of the string field. The record will only be returned if the
      +           * field value matches one of the values specified here.
      +           * 
      + * + * repeated string values = 2; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
      +           * Values of the string field. The record will only be returned if the
      +           * field value matches one of the values specified here.
      +           * 
      + * + * repeated string values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
      +           * Values of the string field. The record will only be returned if the
      +           * field value matches one of the values specified here.
      +           * 
      + * + * repeated string values = 2; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +           * Values of the string field. The record will only be returned if the
      +           * field value matches one of the values specified here.
      +           * 
      + * + * repeated string values = 2; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +           * Values of the string field. The record will only be returned if the
      +           * field value matches one of the values specified here.
      +           * 
      + * + * repeated string values = 2; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +           * Values of the string field. The record will only be returned if the
      +           * field value matches one of the values specified here.
      +           * 
      + * + * repeated string values = 2; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
      +           * Values of the string field. The record will only be returned if the
      +           * field value matches one of the values specified here.
      +           * 
      + * + * repeated string values = 2; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint) + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NumberConstraintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +         * Name of the numerical field as defined in the schema.
      +         * 
      + * + * string field_name = 1; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
      +         * Name of the numerical field as defined in the schema.
      +         * 
      + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + /** + * + * + *
      +         * The comparison operation performed between the field value and the
      +         * value specified in the constraint.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @return The enum numeric value on the wire for comparison. + */ + int getComparisonValue(); + /** + * + * + *
      +         * The comparison operation performed between the field value and the
      +         * value specified in the constraint.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @return The comparison. + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.NumberConstraint.Comparison + getComparison(); + + /** + * + * + *
      +         * The value specified in the numerical constraint.
      +         * 
      + * + * double value = 3; + * + * @return The value. + */ + double getValue(); + } + /** + * + * + *
      +       * Constraint expression of a number field. Example: price < 100.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint} + */ + public static final class NumberConstraint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint) + NumberConstraintOrBuilder { + private static final long serialVersionUID = 0L; + // Use NumberConstraint.newBuilder() to construct. + private NumberConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NumberConstraint() { + fieldName_ = ""; + comparison_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NumberConstraint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Builder.class); + } + + /** + * + * + *
      +         * The comparison operation that was performed.
      +         * 
      + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison} + */ + public enum Comparison implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +           * Undefined comparison operator.
      +           * 
      + * + * COMPARISON_UNSPECIFIED = 0; + */ + COMPARISON_UNSPECIFIED(0), + /** + * + * + *
      +           * Denotes equality `=` operator.
      +           * 
      + * + * EQUALS = 1; + */ + EQUALS(1), + /** + * + * + *
      +           * Denotes less than or equal to `<=` operator.
      +           * 
      + * + * LESS_THAN_EQUALS = 2; + */ + LESS_THAN_EQUALS(2), + /** + * + * + *
      +           * Denotes less than `<` operator.
      +           * 
      + * + * LESS_THAN = 3; + */ + LESS_THAN(3), + /** + * + * + *
      +           * Denotes greater than or equal to `>=` operator.
      +           * 
      + * + * GREATER_THAN_EQUALS = 4; + */ + GREATER_THAN_EQUALS(4), + /** + * + * + *
      +           * Denotes greater than `>` operator.
      +           * 
      + * + * GREATER_THAN = 5; + */ + GREATER_THAN(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +           * Undefined comparison operator.
      +           * 
      + * + * COMPARISON_UNSPECIFIED = 0; + */ + public static final int COMPARISON_UNSPECIFIED_VALUE = 0; + /** + * + * + *
      +           * Denotes equality `=` operator.
      +           * 
      + * + * EQUALS = 1; + */ + public static final int EQUALS_VALUE = 1; + /** + * + * + *
      +           * Denotes less than or equal to `<=` operator.
      +           * 
      + * + * LESS_THAN_EQUALS = 2; + */ + public static final int LESS_THAN_EQUALS_VALUE = 2; + /** + * + * + *
      +           * Denotes less than `<` operator.
      +           * 
      + * + * LESS_THAN = 3; + */ + public static final int LESS_THAN_VALUE = 3; + /** + * + * + *
      +           * Denotes greater than or equal to `>=` operator.
      +           * 
      + * + * GREATER_THAN_EQUALS = 4; + */ + public static final int GREATER_THAN_EQUALS_VALUE = 4; + /** + * + * + *
      +           * Denotes greater than `>` operator.
      +           * 
      + * + * GREATER_THAN = 5; + */ + public static final int GREATER_THAN_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Comparison valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Comparison forNumber(int value) { + switch (value) { + case 0: + return COMPARISON_UNSPECIFIED; + case 1: + return EQUALS; + case 2: + return LESS_THAN_EQUALS; + case 3: + return LESS_THAN; + case 4: + return GREATER_THAN_EQUALS; + case 5: + return GREATER_THAN; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Comparison findValueByNumber(int number) { + return Comparison.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Comparison[] VALUES = values(); + + public static Comparison valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Comparison(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison) + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + /** + * + * + *
      +         * Name of the numerical field as defined in the schema.
      +         * 
      + * + * string field_name = 1; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + /** + * + * + *
      +         * Name of the numerical field as defined in the schema.
      +         * 
      + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPARISON_FIELD_NUMBER = 2; + private int comparison_ = 0; + /** + * + * + *
      +         * The comparison operation performed between the field value and the
      +         * value specified in the constraint.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @return The enum numeric value on the wire for comparison. + */ + @java.lang.Override + public int getComparisonValue() { + return comparison_; + } + /** + * + * + *
      +         * The comparison operation performed between the field value and the
      +         * value specified in the constraint.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @return The comparison. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .Comparison + getComparison() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .Comparison + result = + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Comparison.forNumber(comparison_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .Comparison.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 3; + private double value_ = 0D; + /** + * + * + *
      +         * The value specified in the numerical constraint.
      +         * 
      + * + * double value = 3; + * + * @return The value. + */ + @java.lang.Override + public double getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + } + if (comparison_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .Comparison.COMPARISON_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, comparison_); + } + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { + output.writeDouble(3, value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + } + if (comparison_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .Comparison.COMPARISON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, comparison_); + } + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, value_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + other = + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (comparison_ != other.comparison_) return false; + if (java.lang.Double.doubleToLongBits(getValue()) + != java.lang.Double.doubleToLongBits(other.getValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + hash = (37 * hash) + COMPARISON_FIELD_NUMBER; + hash = (53 * hash) + comparison_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +         * Constraint expression of a number field. Example: price < 100.
      +         * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint) + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldName_ = ""; + comparison_ = 0; + value_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + build() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint + result = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldName_ = fieldName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.comparison_ = comparison_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.getDefaultInstance()) return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.comparison_ != 0) { + setComparisonValue(other.getComparisonValue()); + } + if (other.getValue() != 0D) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + comparison_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 25: + { + value_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object fieldName_ = ""; + /** + * + * + *
      +           * Name of the numerical field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +           * Name of the numerical field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +           * Name of the numerical field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +           * Name of the numerical field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +           * Name of the numerical field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int comparison_ = 0; + /** + * + * + *
      +           * The comparison operation performed between the field value and the
      +           * value specified in the constraint.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @return The enum numeric value on the wire for comparison. + */ + @java.lang.Override + public int getComparisonValue() { + return comparison_; + } + /** + * + * + *
      +           * The comparison operation performed between the field value and the
      +           * value specified in the constraint.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @param value The enum numeric value on the wire for comparison to set. + * @return This builder for chaining. + */ + public Builder setComparisonValue(int value) { + comparison_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +           * The comparison operation performed between the field value and the
      +           * value specified in the constraint.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @return The comparison. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .Comparison + getComparison() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Comparison + result = + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Comparison.forNumber(comparison_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Comparison.UNRECOGNIZED + : result; + } + /** + * + * + *
      +           * The comparison operation performed between the field value and the
      +           * value specified in the constraint.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @param value The comparison to set. + * @return This builder for chaining. + */ + public Builder setComparison( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Comparison + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + comparison_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
      +           * The comparison operation performed between the field value and the
      +           * value specified in the constraint.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearComparison() { + bitField0_ = (bitField0_ & ~0x00000002); + comparison_ = 0; + onChanged(); + return this; + } + + private double value_; + /** + * + * + *
      +           * The value specified in the numerical constraint.
      +           * 
      + * + * double value = 3; + * + * @return The value. + */ + @java.lang.Override + public double getValue() { + return value_; + } + /** + * + * + *
      +           * The value specified in the numerical constraint.
      +           * 
      + * + * double value = 3; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(double value) { + + value_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +           * The value specified in the numerical constraint.
      +           * 
      + * + * double value = 3; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000004); + value_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint) + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumberConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GeolocationConstraintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +         * The name of the geolocation field as defined in the schema.
      +         * 
      + * + * string field_name = 1; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
      +         * The name of the geolocation field as defined in the schema.
      +         * 
      + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + /** + * + * + *
      +         * The reference address that was inferred from the input query. The
      +         * proximity of the reference address to the geolocation field will be
      +         * used to filter the results.
      +         * 
      + * + * string address = 2; + * + * @return The address. + */ + java.lang.String getAddress(); + /** + * + * + *
      +         * The reference address that was inferred from the input query. The
      +         * proximity of the reference address to the geolocation field will be
      +         * used to filter the results.
      +         * 
      + * + * string address = 2; + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); + + /** + * + * + *
      +         * The radius in meters around the address. The record is returned if
      +         * the location of the geolocation field is within the radius.
      +         * 
      + * + * float radius_in_meters = 3; + * + * @return The radiusInMeters. + */ + float getRadiusInMeters(); + } + /** + * + * + *
      +       * Constraint of a geolocation field.
      +       * Name of the geolocation field as defined in the schema.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint} + */ + public static final class GeolocationConstraint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint) + GeolocationConstraintOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeolocationConstraint.newBuilder() to construct. + private GeolocationConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GeolocationConstraint() { + fieldName_ = ""; + address_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GeolocationConstraint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.Builder.class); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + /** + * + * + *
      +         * The name of the geolocation field as defined in the schema.
      +         * 
      + * + * string field_name = 1; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + /** + * + * + *
      +         * The name of the geolocation field as defined in the schema.
      +         * 
      + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object address_ = ""; + /** + * + * + *
      +         * The reference address that was inferred from the input query. The
      +         * proximity of the reference address to the geolocation field will be
      +         * used to filter the results.
      +         * 
      + * + * string address = 2; + * + * @return The address. + */ + @java.lang.Override + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } + } + /** + * + * + *
      +         * The reference address that was inferred from the input query. The
      +         * proximity of the reference address to the geolocation field will be
      +         * used to filter the results.
      +         * 
      + * + * string address = 2; + * + * @return The bytes for address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RADIUS_IN_METERS_FIELD_NUMBER = 3; + private float radiusInMeters_ = 0F; + /** + * + * + *
      +         * The radius in meters around the address. The record is returned if
      +         * the location of the geolocation field is within the radius.
      +         * 
      + * + * float radius_in_meters = 3; + * + * @return The radiusInMeters. + */ + @java.lang.Override + public float getRadiusInMeters() { + return radiusInMeters_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address_); + } + if (java.lang.Float.floatToRawIntBits(radiusInMeters_) != 0) { + output.writeFloat(3, radiusInMeters_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_); + } + if (java.lang.Float.floatToRawIntBits(radiusInMeters_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, radiusInMeters_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + other = + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (!getAddress().equals(other.getAddress())) return false; + if (java.lang.Float.floatToIntBits(getRadiusInMeters()) + != java.lang.Float.floatToIntBits(other.getRadiusInMeters())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + RADIUS_IN_METERS_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRadiusInMeters()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +         * Constraint of a geolocation field.
      +         * Name of the geolocation field as defined in the schema.
      +         * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint) + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldName_ = ""; + address_ = ""; + radiusInMeters_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + build() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + result = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldName_ = fieldName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.address_ = address_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.radiusInMeters_ = radiusInMeters_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.getDefaultInstance()) return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getRadiusInMeters() != 0F) { + setRadiusInMeters(other.getRadiusInMeters()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + address_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 29: + { + radiusInMeters_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 29 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object fieldName_ = ""; + /** + * + * + *
      +           * The name of the geolocation field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +           * The name of the geolocation field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +           * The name of the geolocation field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +           * The name of the geolocation field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +           * The name of the geolocation field as defined in the schema.
      +           * 
      + * + * string field_name = 1; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object address_ = ""; + /** + * + * + *
      +           * The reference address that was inferred from the input query. The
      +           * proximity of the reference address to the geolocation field will be
      +           * used to filter the results.
      +           * 
      + * + * string address = 2; + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +           * The reference address that was inferred from the input query. The
      +           * proximity of the reference address to the geolocation field will be
      +           * used to filter the results.
      +           * 
      + * + * string address = 2; + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +           * The reference address that was inferred from the input query. The
      +           * proximity of the reference address to the geolocation field will be
      +           * used to filter the results.
      +           * 
      + * + * string address = 2; + * + * @param value The address to set. + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +           * The reference address that was inferred from the input query. The
      +           * proximity of the reference address to the geolocation field will be
      +           * used to filter the results.
      +           * 
      + * + * string address = 2; + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + address_ = getDefaultInstance().getAddress(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +           * The reference address that was inferred from the input query. The
      +           * proximity of the reference address to the geolocation field will be
      +           * used to filter the results.
      +           * 
      + * + * string address = 2; + * + * @param value The bytes for address to set. + * @return This builder for chaining. + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + address_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private float radiusInMeters_; + /** + * + * + *
      +           * The radius in meters around the address. The record is returned if
      +           * the location of the geolocation field is within the radius.
      +           * 
      + * + * float radius_in_meters = 3; + * + * @return The radiusInMeters. + */ + @java.lang.Override + public float getRadiusInMeters() { + return radiusInMeters_; + } + /** + * + * + *
      +           * The radius in meters around the address. The record is returned if
      +           * the location of the geolocation field is within the radius.
      +           * 
      + * + * float radius_in_meters = 3; + * + * @param value The radiusInMeters to set. + * @return This builder for chaining. + */ + public Builder setRadiusInMeters(float value) { + + radiusInMeters_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +           * The radius in meters around the address. The record is returned if
      +           * the location of the geolocation field is within the radius.
      +           * 
      + * + * float radius_in_meters = 3; + * + * @return This builder for chaining. + */ + public Builder clearRadiusInMeters() { + bitField0_ = (bitField0_ & ~0x00000004); + radiusInMeters_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint) + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeolocationConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AndExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +         * The expressions that were ANDed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + getExpressionsList(); + /** + * + * + *
      +         * The expressions that were ANDed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression + getExpressions(int index); + /** + * + * + *
      +         * The expressions that were ANDed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + int getExpressionsCount(); + /** + * + * + *
      +         * The expressions that were ANDed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionsOrBuilderList(); + /** + * + * + *
      +         * The expressions that were ANDed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.ExpressionOrBuilder + getExpressionsOrBuilder(int index); + } + /** + * + * + *
      +       * Logical `And` operator.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression} + */ + public static final class AndExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression) + AndExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AndExpression.newBuilder() to construct. + private AndExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AndExpression() { + expressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AndExpression(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .Builder.class); + } + + public static final int EXPRESSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + expressions_; + /** + * + * + *
      +         * The expressions that were ANDed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + getExpressionsList() { + return expressions_; + } + /** + * + * + *
      +         * The expressions that were ANDed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionsOrBuilderList() { + return expressions_; + } + /** + * + * + *
      +         * The expressions that were ANDed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public int getExpressionsCount() { + return expressions_.size(); + } + /** + * + * + *
      +         * The expressions that were ANDed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getExpressions(int index) { + return expressions_.get(index); + } + /** + * + * + *
      +         * The expressions that were ANDed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.ExpressionOrBuilder + getExpressionsOrBuilder(int index) { + return expressions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < expressions_.size(); i++) { + output.writeMessage(1, expressions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < expressions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + other = + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + obj; + + if (!getExpressionsList().equals(other.getExpressionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getExpressionsCount() > 0) { + hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getExpressionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +         * Logical `And` operator.
      +         * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression) + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + } else { + expressions_ = null; + expressionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + build() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + result = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + result) { + if (expressionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + expressions_ = java.util.Collections.unmodifiableList(expressions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.expressions_ = expressions_; + } else { + result.expressions_ = expressionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .getDefaultInstance()) return this; + if (expressionsBuilder_ == null) { + if (!other.expressions_.isEmpty()) { + if (expressions_.isEmpty()) { + expressions_ = other.expressions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExpressionsIsMutable(); + expressions_.addAll(other.expressions_); + } + onChanged(); + } + } else { + if (!other.expressions_.isEmpty()) { + if (expressionsBuilder_.isEmpty()) { + expressionsBuilder_.dispose(); + expressionsBuilder_ = null; + expressions_ = other.expressions_; + bitField0_ = (bitField0_ & ~0x00000001); + expressionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExpressionsFieldBuilder() + : null; + } else { + expressionsBuilder_.addAllMessages(other.expressions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression.parser(), + extensionRegistry); + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(m); + } else { + expressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + expressions_ = java.util.Collections.emptyList(); + + private void ensureExpressionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + expressions_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression>(expressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + expressionsBuilder_; + + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + getExpressionsList() { + if (expressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(expressions_); + } else { + return expressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public int getExpressionsCount() { + if (expressionsBuilder_ == null) { + return expressions_.size(); + } else { + return expressionsBuilder_.getCount(); + } + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getExpressions(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder setExpressions( + int index, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.set(index, value); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder setExpressions( + int index, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.set(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(value); + onChanged(); + } else { + expressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + int index, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(index, value); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + int index, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addAllExpressions( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression> + values) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_); + onChanged(); + } else { + expressionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder clearExpressions() { + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + expressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder removeExpressions(int index) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.remove(index); + onChanged(); + } else { + expressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + getExpressionsBuilder(int index) { + return getExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder + getExpressionsOrBuilder(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionsOrBuilderList() { + if (expressionsBuilder_ != null) { + return expressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(expressions_); + } + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + addExpressionsBuilder() { + return getExpressionsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance()); + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + addExpressionsBuilder(int index) { + return getExpressionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance()); + } + /** + * + * + *
      +           * The expressions that were ANDed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder> + getExpressionsBuilderList() { + return getExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionsFieldBuilder() { + if (expressionsBuilder_ == null) { + expressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder>( + expressions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + expressions_ = null; + } + return expressionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression) + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AndExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OrExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +         * The expressions that were ORed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + getExpressionsList(); + /** + * + * + *
      +         * The expressions that were ORed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression + getExpressions(int index); + /** + * + * + *
      +         * The expressions that were ORed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + int getExpressionsCount(); + /** + * + * + *
      +         * The expressions that were ORed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionsOrBuilderList(); + /** + * + * + *
      +         * The expressions that were ORed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.ExpressionOrBuilder + getExpressionsOrBuilder(int index); + } + /** + * + * + *
      +       * Logical `Or` operator.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression} + */ + public static final class OrExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) + OrExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use OrExpression.newBuilder() to construct. + private OrExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OrExpression() { + expressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OrExpression(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .Builder.class); + } + + public static final int EXPRESSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + expressions_; + /** + * + * + *
      +         * The expressions that were ORed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + getExpressionsList() { + return expressions_; + } + /** + * + * + *
      +         * The expressions that were ORed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionsOrBuilderList() { + return expressions_; + } + /** + * + * + *
      +         * The expressions that were ORed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public int getExpressionsCount() { + return expressions_.size(); + } + /** + * + * + *
      +         * The expressions that were ORed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getExpressions(int index) { + return expressions_.get(index); + } + /** + * + * + *
      +         * The expressions that were ORed together.
      +         * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.ExpressionOrBuilder + getExpressionsOrBuilder(int index) { + return expressions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < expressions_.size(); i++) { + output.writeMessage(1, expressions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < expressions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + other = + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + obj; + + if (!getExpressionsList().equals(other.getExpressionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getExpressionsCount() > 0) { + hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getExpressionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +         * Logical `Or` operator.
      +         * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + } else { + expressions_ = null; + expressionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + build() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + result = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + result) { + if (expressionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + expressions_ = java.util.Collections.unmodifiableList(expressions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.expressions_ = expressions_; + } else { + result.expressions_ = expressionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .getDefaultInstance()) return this; + if (expressionsBuilder_ == null) { + if (!other.expressions_.isEmpty()) { + if (expressions_.isEmpty()) { + expressions_ = other.expressions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExpressionsIsMutable(); + expressions_.addAll(other.expressions_); + } + onChanged(); + } + } else { + if (!other.expressions_.isEmpty()) { + if (expressionsBuilder_.isEmpty()) { + expressionsBuilder_.dispose(); + expressionsBuilder_ = null; + expressions_ = other.expressions_; + bitField0_ = (bitField0_ & ~0x00000001); + expressionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExpressionsFieldBuilder() + : null; + } else { + expressionsBuilder_.addAllMessages(other.expressions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression.parser(), + extensionRegistry); + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(m); + } else { + expressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + expressions_ = java.util.Collections.emptyList(); + + private void ensureExpressionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + expressions_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression>(expressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + expressionsBuilder_; + + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + getExpressionsList() { + if (expressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(expressions_); + } else { + return expressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public int getExpressionsCount() { + if (expressionsBuilder_ == null) { + return expressions_.size(); + } else { + return expressionsBuilder_.getCount(); + } + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getExpressions(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder setExpressions( + int index, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.set(index, value); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder setExpressions( + int index, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.set(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(value); + onChanged(); + } else { + expressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + int index, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(index, value); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + int index, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addAllExpressions( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression> + values) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_); + onChanged(); + } else { + expressionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder clearExpressions() { + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + expressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder removeExpressions(int index) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.remove(index); + onChanged(); + } else { + expressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + getExpressionsBuilder(int index) { + return getExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder + getExpressionsOrBuilder(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionsOrBuilderList() { + if (expressionsBuilder_ != null) { + return expressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(expressions_); + } + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + addExpressionsBuilder() { + return getExpressionsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance()); + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + addExpressionsBuilder(int index) { + return getExpressionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance()); + } + /** + * + * + *
      +           * The expressions that were ORed together.
      +           * 
      + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder> + getExpressionsBuilderList() { + return getExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionsFieldBuilder() { + if (expressionsBuilder_ == null) { + expressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder>( + expressions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + expressions_ = null; + } + return expressionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +         * String constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + * + * @return Whether the stringConstraint field is set. + */ + boolean hasStringConstraint(); + /** + * + * + *
      +         * String constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + * + * @return The stringConstraint. + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.StringConstraint + getStringConstraint(); + /** + * + * + *
      +         * String constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.StringConstraintOrBuilder + getStringConstraintOrBuilder(); + + /** + * + * + *
      +         * Numerical constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + * + * @return Whether the numberConstraint field is set. + */ + boolean hasNumberConstraint(); + /** + * + * + *
      +         * Numerical constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + * + * @return The numberConstraint. + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.NumberConstraint + getNumberConstraint(); + /** + * + * + *
      +         * Numerical constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.NumberConstraintOrBuilder + getNumberConstraintOrBuilder(); + + /** + * + * + *
      +         * Geolocation constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + * + * @return Whether the geolocationConstraint field is set. + */ + boolean hasGeolocationConstraint(); + /** + * + * + *
      +         * Geolocation constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + * + * @return The geolocationConstraint. + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.GeolocationConstraint + getGeolocationConstraint(); + /** + * + * + *
      +         * Geolocation constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.GeolocationConstraintOrBuilder + getGeolocationConstraintOrBuilder(); + + /** + * + * + *
      +         * Logical "And" compound operator connecting multiple expressions.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + * + * @return Whether the andExpr field is set. + */ + boolean hasAndExpr(); + /** + * + * + *
      +         * Logical "And" compound operator connecting multiple expressions.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + * + * @return The andExpr. + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.AndExpression + getAndExpr(); + /** + * + * + *
      +         * Logical "And" compound operator connecting multiple expressions.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.AndExpressionOrBuilder + getAndExprOrBuilder(); + + /** + * + * + *
      +         * Logical "Or" compound operator connecting multiple expressions.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + * + * @return Whether the orExpr field is set. + */ + boolean hasOrExpr(); + /** + * + * + *
      +         * Logical "Or" compound operator connecting multiple expressions.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + * + * @return The orExpr. + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.OrExpression + getOrExpr(); + /** + * + * + *
      +         * Logical "Or" compound operator connecting multiple expressions.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.OrExpressionOrBuilder + getOrExprOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression.ExprCase + getExprCase(); + } + /** + * + * + *
      +       * The expression denoting the filter that was extracted from the input
      +       * query.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression} + */ + public static final class Expression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression) + ExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Expression.newBuilder() to construct. + private Expression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Expression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Expression(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder.class); + } + + private int exprCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object expr_; + + public enum ExprCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_CONSTRAINT(1), + NUMBER_CONSTRAINT(2), + GEOLOCATION_CONSTRAINT(3), + AND_EXPR(4), + OR_EXPR(5), + EXPR_NOT_SET(0); + private final int value; + + private ExprCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: + return STRING_CONSTRAINT; + case 2: + return NUMBER_CONSTRAINT; + case 3: + return GEOLOCATION_CONSTRAINT; + case 4: + return AND_EXPR; + case 5: + return OR_EXPR; + case 0: + return EXPR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public static final int STRING_CONSTRAINT_FIELD_NUMBER = 1; + /** + * + * + *
      +         * String constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + * + * @return Whether the stringConstraint field is set. + */ + @java.lang.Override + public boolean hasStringConstraint() { + return exprCase_ == 1; + } + /** + * + * + *
      +         * String constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + * + * @return The stringConstraint. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + getStringConstraint() { + if (exprCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + .getDefaultInstance(); + } + /** + * + * + *
      +         * String constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraintOrBuilder + getStringConstraintOrBuilder() { + if (exprCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + .getDefaultInstance(); + } + + public static final int NUMBER_CONSTRAINT_FIELD_NUMBER = 2; + /** + * + * + *
      +         * Numerical constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + * + * @return Whether the numberConstraint field is set. + */ + @java.lang.Override + public boolean hasNumberConstraint() { + return exprCase_ == 2; + } + /** + * + * + *
      +         * Numerical constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + * + * @return The numberConstraint. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + getNumberConstraint() { + if (exprCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .getDefaultInstance(); + } + /** + * + * + *
      +         * Numerical constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraintOrBuilder + getNumberConstraintOrBuilder() { + if (exprCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .getDefaultInstance(); + } + + public static final int GEOLOCATION_CONSTRAINT_FIELD_NUMBER = 3; + /** + * + * + *
      +         * Geolocation constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + * + * @return Whether the geolocationConstraint field is set. + */ + @java.lang.Override + public boolean hasGeolocationConstraint() { + return exprCase_ == 3; + } + /** + * + * + *
      +         * Geolocation constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + * + * @return The geolocationConstraint. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + getGeolocationConstraint() { + if (exprCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint + .getDefaultInstance(); + } + /** + * + * + *
      +         * Geolocation constraint expression.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraintOrBuilder + getGeolocationConstraintOrBuilder() { + if (exprCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint + .getDefaultInstance(); + } + + public static final int AND_EXPR_FIELD_NUMBER = 4; + /** + * + * + *
      +         * Logical "And" compound operator connecting multiple expressions.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + * + * @return Whether the andExpr field is set. + */ + @java.lang.Override + public boolean hasAndExpr() { + return exprCase_ == 4; + } + /** + * + * + *
      +         * Logical "And" compound operator connecting multiple expressions.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + * + * @return The andExpr. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + getAndExpr() { + if (exprCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .getDefaultInstance(); + } + /** + * + * + *
      +         * Logical "And" compound operator connecting multiple expressions.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpressionOrBuilder + getAndExprOrBuilder() { + if (exprCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .getDefaultInstance(); + } + + public static final int OR_EXPR_FIELD_NUMBER = 5; + /** + * + * + *
      +         * Logical "Or" compound operator connecting multiple expressions.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + * + * @return Whether the orExpr field is set. + */ + @java.lang.Override + public boolean hasOrExpr() { + return exprCase_ == 5; + } + /** + * + * + *
      +         * Logical "Or" compound operator connecting multiple expressions.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + * + * @return The orExpr. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + getOrExpr() { + if (exprCase_ == 5) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .getDefaultInstance(); + } + /** + * + * + *
      +         * Logical "Or" compound operator connecting multiple expressions.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpressionOrBuilder + getOrExprOrBuilder() { + if (exprCase_ == 5) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (exprCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_); + } + if (exprCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_); + } + if (exprCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_); + } + if (exprCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + expr_); + } + if (exprCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + expr_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exprCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_); + } + if (exprCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_); + } + if (exprCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_); + } + if (exprCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + expr_); + } + if (exprCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + expr_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + other = + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression) + obj; + + if (!getExprCase().equals(other.getExprCase())) return false; + switch (exprCase_) { + case 1: + if (!getStringConstraint().equals(other.getStringConstraint())) return false; + break; + case 2: + if (!getNumberConstraint().equals(other.getNumberConstraint())) return false; + break; + case 3: + if (!getGeolocationConstraint().equals(other.getGeolocationConstraint())) + return false; + break; + case 4: + if (!getAndExpr().equals(other.getAndExpr())) return false; + break; + case 5: + if (!getOrExpr().equals(other.getOrExpr())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (exprCase_) { + case 1: + hash = (37 * hash) + STRING_CONSTRAINT_FIELD_NUMBER; + hash = (53 * hash) + getStringConstraint().hashCode(); + break; + case 2: + hash = (37 * hash) + NUMBER_CONSTRAINT_FIELD_NUMBER; + hash = (53 * hash) + getNumberConstraint().hashCode(); + break; + case 3: + hash = (37 * hash) + GEOLOCATION_CONSTRAINT_FIELD_NUMBER; + hash = (53 * hash) + getGeolocationConstraint().hashCode(); + break; + case 4: + hash = (37 * hash) + AND_EXPR_FIELD_NUMBER; + hash = (53 * hash) + getAndExpr().hashCode(); + break; + case 5: + hash = (37 * hash) + OR_EXPR_FIELD_NUMBER; + hash = (53 * hash) + getOrExpr().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +         * The expression denoting the filter that was extracted from the input
      +         * query.
      +         * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression) + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (stringConstraintBuilder_ != null) { + stringConstraintBuilder_.clear(); + } + if (numberConstraintBuilder_ != null) { + numberConstraintBuilder_.clear(); + } + if (geolocationConstraintBuilder_ != null) { + geolocationConstraintBuilder_.clear(); + } + if (andExprBuilder_ != null) { + andExprBuilder_.clear(); + } + if (orExprBuilder_ != null) { + orExprBuilder_.clear(); + } + exprCase_ = 0; + expr_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + build() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + result = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + result) { + result.exprCase_ = exprCase_; + result.expr_ = this.expr_; + if (exprCase_ == 1 && stringConstraintBuilder_ != null) { + result.expr_ = stringConstraintBuilder_.build(); + } + if (exprCase_ == 2 && numberConstraintBuilder_ != null) { + result.expr_ = numberConstraintBuilder_.build(); + } + if (exprCase_ == 3 && geolocationConstraintBuilder_ != null) { + result.expr_ = geolocationConstraintBuilder_.build(); + } + if (exprCase_ == 4 && andExprBuilder_ != null) { + result.expr_ = andExprBuilder_.build(); + } + if (exprCase_ == 5 && orExprBuilder_ != null) { + result.expr_ = orExprBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance()) return this; + switch (other.getExprCase()) { + case STRING_CONSTRAINT: + { + mergeStringConstraint(other.getStringConstraint()); + break; + } + case NUMBER_CONSTRAINT: + { + mergeNumberConstraint(other.getNumberConstraint()); + break; + } + case GEOLOCATION_CONSTRAINT: + { + mergeGeolocationConstraint(other.getGeolocationConstraint()); + break; + } + case AND_EXPR: + { + mergeAndExpr(other.getAndExpr()); + break; + } + case OR_EXPR: + { + mergeOrExpr(other.getOrExpr()); + break; + } + case EXPR_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getStringConstraintFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getNumberConstraintFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getGeolocationConstraintFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getAndExprFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getOrExprFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public Builder clearExpr() { + exprCase_ = 0; + expr_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraintOrBuilder> + stringConstraintBuilder_; + /** + * + * + *
      +           * String constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + * + * @return Whether the stringConstraint field is set. + */ + @java.lang.Override + public boolean hasStringConstraint() { + return exprCase_ == 1; + } + /** + * + * + *
      +           * String constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + * + * @return The stringConstraint. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + getStringConstraint() { + if (stringConstraintBuilder_ == null) { + if (exprCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + .getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return stringConstraintBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + .getDefaultInstance(); + } + } + /** + * + * + *
      +           * String constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + public Builder setStringConstraint( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint + value) { + if (stringConstraintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + stringConstraintBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
      +           * String constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + public Builder setStringConstraint( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.Builder + builderForValue) { + if (stringConstraintBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + stringConstraintBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
      +           * String constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + public Builder mergeStringConstraint( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint + value) { + if (stringConstraintBuilder_ == null) { + if (exprCase_ == 1 + && expr_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.getDefaultInstance()) { + expr_ = + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.newBuilder( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + stringConstraintBuilder_.mergeFrom(value); + } else { + stringConstraintBuilder_.setMessage(value); + } + } + exprCase_ = 1; + return this; + } + /** + * + * + *
      +           * String constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + public Builder clearStringConstraint() { + if (stringConstraintBuilder_ == null) { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + } + stringConstraintBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +           * String constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + .Builder + getStringConstraintBuilder() { + return getStringConstraintFieldBuilder().getBuilder(); + } + /** + * + * + *
      +           * String constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraintOrBuilder + getStringConstraintOrBuilder() { + if ((exprCase_ == 1) && (stringConstraintBuilder_ != null)) { + return stringConstraintBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + .getDefaultInstance(); + } + } + /** + * + * + *
      +           * String constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraintOrBuilder> + getStringConstraintFieldBuilder() { + if (stringConstraintBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.getDefaultInstance(); + } + stringConstraintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraintOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged(); + return stringConstraintBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraintOrBuilder> + numberConstraintBuilder_; + /** + * + * + *
      +           * Numerical constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + * + * @return Whether the numberConstraint field is set. + */ + @java.lang.Override + public boolean hasNumberConstraint() { + return exprCase_ == 2; + } + /** + * + * + *
      +           * Numerical constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + * + * @return The numberConstraint. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + getNumberConstraint() { + if (numberConstraintBuilder_ == null) { + if (exprCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return numberConstraintBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .getDefaultInstance(); + } + } + /** + * + * + *
      +           * Numerical constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + public Builder setNumberConstraint( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint + value) { + if (numberConstraintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + numberConstraintBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
      +           * Numerical constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + public Builder setNumberConstraint( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Builder + builderForValue) { + if (numberConstraintBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + numberConstraintBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
      +           * Numerical constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + public Builder mergeNumberConstraint( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint + value) { + if (numberConstraintBuilder_ == null) { + if (exprCase_ == 2 + && expr_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.getDefaultInstance()) { + expr_ = + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.newBuilder( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + numberConstraintBuilder_.mergeFrom(value); + } else { + numberConstraintBuilder_.setMessage(value); + } + } + exprCase_ = 2; + return this; + } + /** + * + * + *
      +           * Numerical constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + public Builder clearNumberConstraint() { + if (numberConstraintBuilder_ == null) { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + } + numberConstraintBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +           * Numerical constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .Builder + getNumberConstraintBuilder() { + return getNumberConstraintFieldBuilder().getBuilder(); + } + /** + * + * + *
      +           * Numerical constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraintOrBuilder + getNumberConstraintOrBuilder() { + if ((exprCase_ == 2) && (numberConstraintBuilder_ != null)) { + return numberConstraintBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .getDefaultInstance(); + } + } + /** + * + * + *
      +           * Numerical constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraintOrBuilder> + getNumberConstraintFieldBuilder() { + if (numberConstraintBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.getDefaultInstance(); + } + numberConstraintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraintOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged(); + return numberConstraintBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraintOrBuilder> + geolocationConstraintBuilder_; + /** + * + * + *
      +           * Geolocation constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + * + * @return Whether the geolocationConstraint field is set. + */ + @java.lang.Override + public boolean hasGeolocationConstraint() { + return exprCase_ == 3; + } + /** + * + * + *
      +           * Geolocation constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + * + * @return The geolocationConstraint. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + getGeolocationConstraint() { + if (geolocationConstraintBuilder_ == null) { + if (exprCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.getDefaultInstance(); + } else { + if (exprCase_ == 3) { + return geolocationConstraintBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.getDefaultInstance(); + } + } + /** + * + * + *
      +           * Geolocation constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + public Builder setGeolocationConstraint( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + value) { + if (geolocationConstraintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + geolocationConstraintBuilder_.setMessage(value); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
      +           * Geolocation constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + public Builder setGeolocationConstraint( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.Builder + builderForValue) { + if (geolocationConstraintBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + geolocationConstraintBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
      +           * Geolocation constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + public Builder mergeGeolocationConstraint( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + value) { + if (geolocationConstraintBuilder_ == null) { + if (exprCase_ == 3 + && expr_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.getDefaultInstance()) { + expr_ = + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.newBuilder( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 3) { + geolocationConstraintBuilder_.mergeFrom(value); + } else { + geolocationConstraintBuilder_.setMessage(value); + } + } + exprCase_ = 3; + return this; + } + /** + * + * + *
      +           * Geolocation constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + public Builder clearGeolocationConstraint() { + if (geolocationConstraintBuilder_ == null) { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + } + geolocationConstraintBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +           * Geolocation constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.Builder + getGeolocationConstraintBuilder() { + return getGeolocationConstraintFieldBuilder().getBuilder(); + } + /** + * + * + *
      +           * Geolocation constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraintOrBuilder + getGeolocationConstraintOrBuilder() { + if ((exprCase_ == 3) && (geolocationConstraintBuilder_ != null)) { + return geolocationConstraintBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.getDefaultInstance(); + } + } + /** + * + * + *
      +           * Geolocation constraint expression.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraintOrBuilder> + getGeolocationConstraintFieldBuilder() { + if (geolocationConstraintBuilder_ == null) { + if (!(exprCase_ == 3)) { + expr_ = + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.getDefaultInstance(); + } + geolocationConstraintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraintOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 3; + onChanged(); + return geolocationConstraintBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpressionOrBuilder> + andExprBuilder_; + /** + * + * + *
      +           * Logical "And" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + * + * @return Whether the andExpr field is set. + */ + @java.lang.Override + public boolean hasAndExpr() { + return exprCase_ == 4; + } + /** + * + * + *
      +           * Logical "And" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + * + * @return The andExpr. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + getAndExpr() { + if (andExprBuilder_ == null) { + if (exprCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .getDefaultInstance(); + } else { + if (exprCase_ == 4) { + return andExprBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .getDefaultInstance(); + } + } + /** + * + * + *
      +           * Logical "And" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + public Builder setAndExpr( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + value) { + if (andExprBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + andExprBuilder_.setMessage(value); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
      +           * Logical "And" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + public Builder setAndExpr( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .Builder + builderForValue) { + if (andExprBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + andExprBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
      +           * Logical "And" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + public Builder mergeAndExpr( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + value) { + if (andExprBuilder_ == null) { + if (exprCase_ == 4 + && expr_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression.getDefaultInstance()) { + expr_ = + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression.newBuilder( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 4) { + andExprBuilder_.mergeFrom(value); + } else { + andExprBuilder_.setMessage(value); + } + } + exprCase_ = 4; + return this; + } + /** + * + * + *
      +           * Logical "And" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + public Builder clearAndExpr() { + if (andExprBuilder_ == null) { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + } + andExprBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +           * Logical "And" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .Builder + getAndExprBuilder() { + return getAndExprFieldBuilder().getBuilder(); + } + /** + * + * + *
      +           * Logical "And" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpressionOrBuilder + getAndExprOrBuilder() { + if ((exprCase_ == 4) && (andExprBuilder_ != null)) { + return andExprBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .getDefaultInstance(); + } + } + /** + * + * + *
      +           * Logical "And" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpressionOrBuilder> + getAndExprFieldBuilder() { + if (andExprBuilder_ == null) { + if (!(exprCase_ == 4)) { + expr_ = + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression.getDefaultInstance(); + } + andExprBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpressionOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 4; + onChanged(); + return andExprBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpressionOrBuilder> + orExprBuilder_; + /** + * + * + *
      +           * Logical "Or" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + * + * @return Whether the orExpr field is set. + */ + @java.lang.Override + public boolean hasOrExpr() { + return exprCase_ == 5; + } + /** + * + * + *
      +           * Logical "Or" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + * + * @return The orExpr. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + getOrExpr() { + if (orExprBuilder_ == null) { + if (exprCase_ == 5) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .getDefaultInstance(); + } else { + if (exprCase_ == 5) { + return orExprBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .getDefaultInstance(); + } + } + /** + * + * + *
      +           * Logical "Or" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + public Builder setOrExpr( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + value) { + if (orExprBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + orExprBuilder_.setMessage(value); + } + exprCase_ = 5; + return this; + } + /** + * + * + *
      +           * Logical "Or" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + public Builder setOrExpr( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .Builder + builderForValue) { + if (orExprBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + orExprBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 5; + return this; + } + /** + * + * + *
      +           * Logical "Or" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + public Builder mergeOrExpr( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + value) { + if (orExprBuilder_ == null) { + if (exprCase_ == 5 + && expr_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression.getDefaultInstance()) { + expr_ = + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression.newBuilder( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 5) { + orExprBuilder_.mergeFrom(value); + } else { + orExprBuilder_.setMessage(value); + } + } + exprCase_ = 5; + return this; + } + /** + * + * + *
      +           * Logical "Or" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + public Builder clearOrExpr() { + if (orExprBuilder_ == null) { + if (exprCase_ == 5) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 5) { + exprCase_ = 0; + expr_ = null; + } + orExprBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +           * Logical "Or" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .Builder + getOrExprBuilder() { + return getOrExprFieldBuilder().getBuilder(); + } + /** + * + * + *
      +           * Logical "Or" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpressionOrBuilder + getOrExprOrBuilder() { + if ((exprCase_ == 5) && (orExprBuilder_ != null)) { + return orExprBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 5) { + return (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .getDefaultInstance(); + } + } + /** + * + * + *
      +           * Logical "Or" compound operator connecting multiple expressions.
      +           * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpressionOrBuilder> + getOrExprFieldBuilder() { + if (orExprBuilder_ == null) { + if (!(exprCase_ == 5)) { + expr_ = + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression.getDefaultInstance(); + } + orExprBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpressionOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 5; + onChanged(); + return orExprBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression) + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Expression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int EXPRESSION_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + expression_; + /** + * + * + *
      +       * The expression denoting the filter that was extracted from the input
      +       * query in a structured form. It can be a simple expression denoting a
      +       * single string, numerical or geolocation constraint or a compound
      +       * expression which is a combination of multiple expressions connected
      +       * using logical (OR and AND) operators.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + * + * @return Whether the expression field is set. + */ + @java.lang.Override + public boolean hasExpression() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +       * The expression denoting the filter that was extracted from the input
      +       * query in a structured form. It can be a simple expression denoting a
      +       * single string, numerical or geolocation constraint or a compound
      +       * expression which is a combination of multiple expressions connected
      +       * using logical (OR and AND) operators.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + * + * @return The expression. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getExpression() { + return expression_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance() + : expression_; + } + /** + * + * + *
      +       * The expression denoting the filter that was extracted from the input
      +       * query in a structured form. It can be a simple expression denoting a
      +       * single string, numerical or geolocation constraint or a compound
      +       * expression which is a combination of multiple expressions connected
      +       * using logical (OR and AND) operators.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.ExpressionOrBuilder + getExpressionOrBuilder() { + return expression_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance() + : expression_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getExpression()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExpression()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter + other = + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) + obj; + + if (hasExpression() != other.hasExpression()) return false; + if (hasExpression()) { + if (!getExpression().equals(other.getExpression())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExpression()) { + hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getExpression().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +       * The filters that were extracted from the input query represented in a
      +       * structured form.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExpressionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + expression_ = null; + if (expressionBuilder_ != null) { + expressionBuilder_.dispose(); + expressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + build() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + result = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.expression_ = + expressionBuilder_ == null ? expression_ : expressionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .getDefaultInstance()) return this; + if (other.hasExpression()) { + mergeExpression(other.getExpression()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getExpressionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + expression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + expressionBuilder_; + /** + * + * + *
      +         * The expression denoting the filter that was extracted from the input
      +         * query in a structured form. It can be a simple expression denoting a
      +         * single string, numerical or geolocation constraint or a compound
      +         * expression which is a combination of multiple expressions connected
      +         * using logical (OR and AND) operators.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + * + * @return Whether the expression field is set. + */ + public boolean hasExpression() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +         * The expression denoting the filter that was extracted from the input
      +         * query in a structured form. It can be a simple expression denoting a
      +         * single string, numerical or geolocation constraint or a compound
      +         * expression which is a combination of multiple expressions connected
      +         * using logical (OR and AND) operators.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + * + * @return The expression. + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getExpression() { + if (expressionBuilder_ == null) { + return expression_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance() + : expression_; + } else { + return expressionBuilder_.getMessage(); + } + } + /** + * + * + *
      +         * The expression denoting the filter that was extracted from the input
      +         * query in a structured form. It can be a simple expression denoting a
      +         * single string, numerical or geolocation constraint or a compound
      +         * expression which is a combination of multiple expressions connected
      +         * using logical (OR and AND) operators.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + public Builder setExpression( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + value) { + if (expressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expression_ = value; + } else { + expressionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +         * The expression denoting the filter that was extracted from the input
      +         * query in a structured form. It can be a simple expression denoting a
      +         * single string, numerical or geolocation constraint or a compound
      +         * expression which is a combination of multiple expressions connected
      +         * using logical (OR and AND) operators.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + public Builder setExpression( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + builderForValue) { + if (expressionBuilder_ == null) { + expression_ = builderForValue.build(); + } else { + expressionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +         * The expression denoting the filter that was extracted from the input
      +         * query in a structured form. It can be a simple expression denoting a
      +         * single string, numerical or geolocation constraint or a compound
      +         * expression which is a combination of multiple expressions connected
      +         * using logical (OR and AND) operators.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + public Builder mergeExpression( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + value) { + if (expressionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && expression_ != null + && expression_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance()) { + getExpressionBuilder().mergeFrom(value); + } else { + expression_ = value; + } + } else { + expressionBuilder_.mergeFrom(value); + } + if (expression_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +         * The expression denoting the filter that was extracted from the input
      +         * query in a structured form. It can be a simple expression denoting a
      +         * single string, numerical or geolocation constraint or a compound
      +         * expression which is a combination of multiple expressions connected
      +         * using logical (OR and AND) operators.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + public Builder clearExpression() { + bitField0_ = (bitField0_ & ~0x00000001); + expression_ = null; + if (expressionBuilder_ != null) { + expressionBuilder_.dispose(); + expressionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +         * The expression denoting the filter that was extracted from the input
      +         * query in a structured form. It can be a simple expression denoting a
      +         * single string, numerical or geolocation constraint or a compound
      +         * expression which is a combination of multiple expressions connected
      +         * using logical (OR and AND) operators.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression.Builder + getExpressionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
      +         * The expression denoting the filter that was extracted from the input
      +         * query in a structured form. It can be a simple expression denoting a
      +         * single string, numerical or geolocation constraint or a compound
      +         * expression which is a combination of multiple expressions connected
      +         * using logical (OR and AND) operators.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.ExpressionOrBuilder + getExpressionOrBuilder() { + if (expressionBuilder_ != null) { + return expressionBuilder_.getMessageOrBuilder(); + } else { + return expression_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance() + : expression_; + } + } + /** + * + * + *
      +         * The expression denoting the filter that was extracted from the input
      +         * query in a structured form. It can be a simple expression denoting a
      +         * single string, numerical or geolocation constraint or a compound
      +         * expression which is a combination of multiple expressions connected
      +         * using logical (OR and AND) operators.
      +         * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionFieldBuilder() { + if (expressionBuilder_ == null) { + expressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder>(getExpression(), getParentForChildren(), isClean()); + expression_ = null; + } + return expressionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StructuredExtractedFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int EXTRACTED_FILTERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object extractedFilters_ = ""; + /** + * + * + *
      +     * The filters that were extracted from the input query.
      +     * 
      + * + * string extracted_filters = 1; + * + * @return The extractedFilters. + */ + @java.lang.Override + public java.lang.String getExtractedFilters() { + java.lang.Object ref = extractedFilters_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + extractedFilters_ = s; + return s; + } + } + /** + * + * + *
      +     * The filters that were extracted from the input query.
      +     * 
      + * + * string extracted_filters = 1; + * + * @return The bytes for extractedFilters. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExtractedFiltersBytes() { + java.lang.Object ref = extractedFilters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + extractedFilters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REWRITTEN_QUERY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rewrittenQuery_ = ""; + /** + * + * + *
      +     * Rewritten input query minus the extracted filters.
      +     * 
      + * + * string rewritten_query = 2; + * + * @return The rewrittenQuery. + */ + @java.lang.Override + public java.lang.String getRewrittenQuery() { + java.lang.Object ref = rewrittenQuery_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rewrittenQuery_ = s; + return s; + } + } + /** + * + * + *
      +     * Rewritten input query minus the extracted filters.
      +     * 
      + * + * string rewritten_query = 2; + * + * @return The bytes for rewrittenQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRewrittenQueryBytes() { + java.lang.Object ref = rewrittenQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rewrittenQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRUCTURED_EXTRACTED_FILTER_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + structuredExtractedFilter_; + /** + * + * + *
      +     * The filters that were extracted from the input query represented in a
      +     * structured form.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + * + * @return Whether the structuredExtractedFilter field is set. + */ + @java.lang.Override + public boolean hasStructuredExtractedFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * The filters that were extracted from the input query represented in a
      +     * structured form.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + * + * @return The structuredExtractedFilter. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + getStructuredExtractedFilter() { + return structuredExtractedFilter_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.getDefaultInstance() + : structuredExtractedFilter_; + } + /** + * + * + *
      +     * The filters that were extracted from the input query represented in a
      +     * structured form.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilterOrBuilder + getStructuredExtractedFilterOrBuilder() { + return structuredExtractedFilter_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.getDefaultInstance() + : structuredExtractedFilter_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(extractedFilters_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, extractedFilters_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewrittenQuery_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rewrittenQuery_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStructuredExtractedFilter()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(extractedFilters_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, extractedFilters_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewrittenQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rewrittenQuery_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getStructuredExtractedFilter()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + other = + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo) + obj; + + if (!getExtractedFilters().equals(other.getExtractedFilters())) return false; + if (!getRewrittenQuery().equals(other.getRewrittenQuery())) return false; + if (hasStructuredExtractedFilter() != other.hasStructuredExtractedFilter()) return false; + if (hasStructuredExtractedFilter()) { + if (!getStructuredExtractedFilter().equals(other.getStructuredExtractedFilter())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXTRACTED_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getExtractedFilters().hashCode(); + hash = (37 * hash) + REWRITTEN_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getRewrittenQuery().hashCode(); + if (hasStructuredExtractedFilter()) { + hash = (37 * hash) + STRUCTURED_EXTRACTED_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStructuredExtractedFilter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Information describing what natural language understanding was
      +     * done on the input query.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo) + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStructuredExtractedFilterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + extractedFilters_ = ""; + rewrittenQuery_ = ""; + structuredExtractedFilter_ = null; + if (structuredExtractedFilterBuilder_ != null) { + structuredExtractedFilterBuilder_.dispose(); + structuredExtractedFilterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + build() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + result = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.extractedFilters_ = extractedFilters_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rewrittenQuery_ = rewrittenQuery_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.structuredExtractedFilter_ = + structuredExtractedFilterBuilder_ == null + ? structuredExtractedFilter_ + : structuredExtractedFilterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.getDefaultInstance()) return this; + if (!other.getExtractedFilters().isEmpty()) { + extractedFilters_ = other.extractedFilters_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRewrittenQuery().isEmpty()) { + rewrittenQuery_ = other.rewrittenQuery_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasStructuredExtractedFilter()) { + mergeStructuredExtractedFilter(other.getStructuredExtractedFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + extractedFilters_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rewrittenQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getStructuredExtractedFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object extractedFilters_ = ""; + /** + * + * + *
      +       * The filters that were extracted from the input query.
      +       * 
      + * + * string extracted_filters = 1; + * + * @return The extractedFilters. + */ + public java.lang.String getExtractedFilters() { + java.lang.Object ref = extractedFilters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + extractedFilters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +       * The filters that were extracted from the input query.
      +       * 
      + * + * string extracted_filters = 1; + * + * @return The bytes for extractedFilters. + */ + public com.google.protobuf.ByteString getExtractedFiltersBytes() { + java.lang.Object ref = extractedFilters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + extractedFilters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +       * The filters that were extracted from the input query.
      +       * 
      + * + * string extracted_filters = 1; + * + * @param value The extractedFilters to set. + * @return This builder for chaining. + */ + public Builder setExtractedFilters(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + extractedFilters_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * The filters that were extracted from the input query.
      +       * 
      + * + * string extracted_filters = 1; + * + * @return This builder for chaining. + */ + public Builder clearExtractedFilters() { + extractedFilters_ = getDefaultInstance().getExtractedFilters(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +       * The filters that were extracted from the input query.
      +       * 
      + * + * string extracted_filters = 1; + * + * @param value The bytes for extractedFilters to set. + * @return This builder for chaining. + */ + public Builder setExtractedFiltersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + extractedFilters_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object rewrittenQuery_ = ""; + /** + * + * + *
      +       * Rewritten input query minus the extracted filters.
      +       * 
      + * + * string rewritten_query = 2; + * + * @return The rewrittenQuery. + */ + public java.lang.String getRewrittenQuery() { + java.lang.Object ref = rewrittenQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rewrittenQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +       * Rewritten input query minus the extracted filters.
      +       * 
      + * + * string rewritten_query = 2; + * + * @return The bytes for rewrittenQuery. + */ + public com.google.protobuf.ByteString getRewrittenQueryBytes() { + java.lang.Object ref = rewrittenQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rewrittenQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +       * Rewritten input query minus the extracted filters.
      +       * 
      + * + * string rewritten_query = 2; + * + * @param value The rewrittenQuery to set. + * @return This builder for chaining. + */ + public Builder setRewrittenQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rewrittenQuery_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * Rewritten input query minus the extracted filters.
      +       * 
      + * + * string rewritten_query = 2; + * + * @return This builder for chaining. + */ + public Builder clearRewrittenQuery() { + rewrittenQuery_ = getDefaultInstance().getRewrittenQuery(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +       * Rewritten input query minus the extracted filters.
      +       * 
      + * + * string rewritten_query = 2; + * + * @param value The bytes for rewrittenQuery to set. + * @return This builder for chaining. + */ + public Builder setRewrittenQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rewrittenQuery_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + structuredExtractedFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilterOrBuilder> + structuredExtractedFilterBuilder_; + /** + * + * + *
      +       * The filters that were extracted from the input query represented in a
      +       * structured form.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + * + * @return Whether the structuredExtractedFilter field is set. + */ + public boolean hasStructuredExtractedFilter() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +       * The filters that were extracted from the input query represented in a
      +       * structured form.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + * + * @return The structuredExtractedFilter. + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + getStructuredExtractedFilter() { + if (structuredExtractedFilterBuilder_ == null) { + return structuredExtractedFilter_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .getDefaultInstance() + : structuredExtractedFilter_; + } else { + return structuredExtractedFilterBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * The filters that were extracted from the input query represented in a
      +       * structured form.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + public Builder setStructuredExtractedFilter( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + value) { + if (structuredExtractedFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structuredExtractedFilter_ = value; + } else { + structuredExtractedFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +       * The filters that were extracted from the input query represented in a
      +       * structured form.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + public Builder setStructuredExtractedFilter( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder + builderForValue) { + if (structuredExtractedFilterBuilder_ == null) { + structuredExtractedFilter_ = builderForValue.build(); + } else { + structuredExtractedFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +       * The filters that were extracted from the input query represented in a
      +       * structured form.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + public Builder mergeStructuredExtractedFilter( + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + value) { + if (structuredExtractedFilterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && structuredExtractedFilter_ != null + && structuredExtractedFilter_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .getDefaultInstance()) { + getStructuredExtractedFilterBuilder().mergeFrom(value); + } else { + structuredExtractedFilter_ = value; + } + } else { + structuredExtractedFilterBuilder_.mergeFrom(value); + } + if (structuredExtractedFilter_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * The filters that were extracted from the input query represented in a
      +       * structured form.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + public Builder clearStructuredExtractedFilter() { + bitField0_ = (bitField0_ & ~0x00000004); + structuredExtractedFilter_ = null; + if (structuredExtractedFilterBuilder_ != null) { + structuredExtractedFilterBuilder_.dispose(); + structuredExtractedFilterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * The filters that were extracted from the input query represented in a
      +       * structured form.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder + getStructuredExtractedFilterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStructuredExtractedFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * The filters that were extracted from the input query represented in a
      +       * structured form.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilterOrBuilder + getStructuredExtractedFilterOrBuilder() { + if (structuredExtractedFilterBuilder_ != null) { + return structuredExtractedFilterBuilder_.getMessageOrBuilder(); + } else { + return structuredExtractedFilter_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .getDefaultInstance() + : structuredExtractedFilter_; + } + } + /** + * + * + *
      +       * The filters that were extracted from the input query represented in a
      +       * structured form.
      +       * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilterOrBuilder> + getStructuredExtractedFilterFieldBuilder() { + if (structuredExtractedFilterBuilder_ == null) { + structuredExtractedFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilterOrBuilder>( + getStructuredExtractedFilter(), getParentForChildren(), isClean()); + structuredExtractedFilter_ = null; + } + return structuredExtractedFilterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo) + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NaturalLanguageQueryUnderstandingInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SessionInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Name of the session.
      +     * If the auto-session mode is used (when
      +     * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +     * ends with "-"), this field holds the newly generated session name.
      +     * 
      + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +     * Name of the session.
      +     * If the auto-session mode is used (when
      +     * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +     * ends with "-"), this field holds the newly generated session name.
      +     * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +     * Query ID that corresponds to this search API call.
      +     * One session can have multiple turns, each with a unique query ID.
      +     *
      +     * By specifying the session name and this query ID in the Answer API call,
      +     * the answer generation happens in the context of the search results from
      +     * this search call.
      +     * 
      + * + * string query_id = 2; + * + * @return The queryId. + */ + java.lang.String getQueryId(); + /** + * + * + *
      +     * Query ID that corresponds to this search API call.
      +     * One session can have multiple turns, each with a unique query ID.
      +     *
      +     * By specifying the session name and this query ID in the Answer API call,
      +     * the answer generation happens in the context of the search results from
      +     * this search call.
      +     * 
      + * + * string query_id = 2; + * + * @return The bytes for queryId. + */ + com.google.protobuf.ByteString getQueryIdBytes(); + } + /** + * + * + *
      +   * Information about the session.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo} + */ + public static final class SessionInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo) + SessionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use SessionInfo.newBuilder() to construct. + private SessionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SessionInfo() { + name_ = ""; + queryId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SessionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SessionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SessionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +     * Name of the session.
      +     * If the auto-session mode is used (when
      +     * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +     * ends with "-"), this field holds the newly generated session name.
      +     * 
      + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
      +     * Name of the session.
      +     * If the auto-session mode is used (when
      +     * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +     * ends with "-"), this field holds the newly generated session name.
      +     * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object queryId_ = ""; + /** + * + * + *
      +     * Query ID that corresponds to this search API call.
      +     * One session can have multiple turns, each with a unique query ID.
      +     *
      +     * By specifying the session name and this query ID in the Answer API call,
      +     * the answer generation happens in the context of the search results from
      +     * this search call.
      +     * 
      + * + * string query_id = 2; + * + * @return The queryId. + */ + @java.lang.Override + public java.lang.String getQueryId() { + java.lang.Object ref = queryId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryId_ = s; + return s; + } + } + /** + * + * + *
      +     * Query ID that corresponds to this search API call.
      +     * One session can have multiple turns, each with a unique query ID.
      +     *
      +     * By specifying the session name and this query ID in the Answer API call,
      +     * the answer generation happens in the context of the search results from
      +     * this search call.
      +     * 
      + * + * string query_id = 2; + * + * @return The bytes for queryId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryIdBytes() { + java.lang.Object ref = queryId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, queryId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, queryId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo other = + (com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo) obj; + + if (!getName().equals(other.getName())) return false; + if (!getQueryId().equals(other.getQueryId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + QUERY_ID_FIELD_NUMBER; + hash = (53 * hash) + getQueryId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +     * Information about the session.
      +     * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo) + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SessionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SessionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + queryId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SessionInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo build() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo result = + new com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryId_ = queryId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQueryId().isEmpty()) { + queryId_ = other.queryId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + queryId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
      +       * Name of the session.
      +       * If the auto-session mode is used (when
      +       * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +       * ends with "-"), this field holds the newly generated session name.
      +       * 
      + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +       * Name of the session.
      +       * If the auto-session mode is used (when
      +       * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +       * ends with "-"), this field holds the newly generated session name.
      +       * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +       * Name of the session.
      +       * If the auto-session mode is used (when
      +       * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +       * ends with "-"), this field holds the newly generated session name.
      +       * 
      + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * Name of the session.
      +       * If the auto-session mode is used (when
      +       * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +       * ends with "-"), this field holds the newly generated session name.
      +       * 
      + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +       * Name of the session.
      +       * If the auto-session mode is used (when
      +       * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +       * ends with "-"), this field holds the newly generated session name.
      +       * 
      + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object queryId_ = ""; + /** + * + * + *
      +       * Query ID that corresponds to this search API call.
      +       * One session can have multiple turns, each with a unique query ID.
      +       *
      +       * By specifying the session name and this query ID in the Answer API call,
      +       * the answer generation happens in the context of the search results from
      +       * this search call.
      +       * 
      + * + * string query_id = 2; + * + * @return The queryId. + */ + public java.lang.String getQueryId() { + java.lang.Object ref = queryId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +       * Query ID that corresponds to this search API call.
      +       * One session can have multiple turns, each with a unique query ID.
      +       *
      +       * By specifying the session name and this query ID in the Answer API call,
      +       * the answer generation happens in the context of the search results from
      +       * this search call.
      +       * 
      + * + * string query_id = 2; + * + * @return The bytes for queryId. + */ + public com.google.protobuf.ByteString getQueryIdBytes() { + java.lang.Object ref = queryId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +       * Query ID that corresponds to this search API call.
      +       * One session can have multiple turns, each with a unique query ID.
      +       *
      +       * By specifying the session name and this query ID in the Answer API call,
      +       * the answer generation happens in the context of the search results from
      +       * this search call.
      +       * 
      + * + * string query_id = 2; + * + * @param value The queryId to set. + * @return This builder for chaining. + */ + public Builder setQueryId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * Query ID that corresponds to this search API call.
      +       * One session can have multiple turns, each with a unique query ID.
      +       *
      +       * By specifying the session name and this query ID in the Answer API call,
      +       * the answer generation happens in the context of the search results from
      +       * this search call.
      +       * 
      + * + * string query_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearQueryId() { + queryId_ = getDefaultInstance().getQueryId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +       * Query ID that corresponds to this search API call.
      +       * One session can have multiple turns, each with a unique query ID.
      +       *
      +       * By specifying the session name and this query ID in the Answer API call,
      +       * the answer generation happens in the context of the search results from
      +       * this search call.
      +       * 
      + * + * string query_id = 2; + * + * @param value The bytes for queryId to set. + * @return This builder for chaining. + */ + public Builder setQueryIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo) + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + results_; + /** + * + * + *
      +   * A list of matched documents. The order represents the ranking.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; + * + */ + @java.lang.Override + public java.util.List + getResultsList() { + return results_; + } + /** + * + * + *
      +   * A list of matched documents. The order represents the ranking.
      +   * 
      + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> + getResultsOrBuilderList() { + return results_; + } + /** + * + * + *
      +   * A list of matched documents. The order represents the ranking.
      +   * 
      + * * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; * */ @@ -19774,6 +32191,133 @@ public boolean hasQueryExpansionInfo() { : queryExpansionInfo_; } + public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_INFO_FIELD_NUMBER = 15; + private com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + naturalLanguageQueryUnderstandingInfo_; + /** + * + * + *
      +   * Natural language query understanding information for the returned results.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + * + * @return Whether the naturalLanguageQueryUnderstandingInfo field is set. + */ + @java.lang.Override + public boolean hasNaturalLanguageQueryUnderstandingInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
      +   * Natural language query understanding information for the returned results.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + * + * @return The naturalLanguageQueryUnderstandingInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + getNaturalLanguageQueryUnderstandingInfo() { + return naturalLanguageQueryUnderstandingInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.getDefaultInstance() + : naturalLanguageQueryUnderstandingInfo_; + } + /** + * + * + *
      +   * Natural language query understanding information for the returned results.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfoOrBuilder + getNaturalLanguageQueryUnderstandingInfoOrBuilder() { + return naturalLanguageQueryUnderstandingInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.getDefaultInstance() + : naturalLanguageQueryUnderstandingInfo_; + } + + public static final int SESSION_INFO_FIELD_NUMBER = 19; + private com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo sessionInfo_; + /** + * + * + *
      +   * Session information.
      +   *
      +   * Only set if
      +   * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +   * is provided. See its description for more details.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + * + * @return Whether the sessionInfo field is set. + */ + @java.lang.Override + public boolean hasSessionInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +   * Session information.
      +   *
      +   * Only set if
      +   * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +   * is provided. See its description for more details.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + * + * @return The sessionInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo getSessionInfo() { + return sessionInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo.getDefaultInstance() + : sessionInfo_; + } + /** + * + * + *
      +   * Session information.
      +   *
      +   * Only set if
      +   * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +   * is provided. See its description for more details.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfoOrBuilder + getSessionInfoOrBuilder() { + return sessionInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo.getDefaultInstance() + : sessionInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -19821,9 +32365,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(14, getQueryExpansionInfo()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(15, getNaturalLanguageQueryUnderstandingInfo()); + } for (int i = 0; i < geoSearchDebugInfo_.size(); i++) { output.writeMessage(16, geoSearchDebugInfo_.get(i)); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(19, getSessionInfo()); + } getUnknownFields().writeTo(output); } @@ -19871,10 +32421,18 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getQueryExpansionInfo()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getNaturalLanguageQueryUnderstandingInfo()); + } for (int i = 0; i < geoSearchDebugInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, geoSearchDebugInfo_.get(i)); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getSessionInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -19912,6 +32470,16 @@ public boolean equals(final java.lang.Object obj) { if (hasQueryExpansionInfo()) { if (!getQueryExpansionInfo().equals(other.getQueryExpansionInfo())) return false; } + if (hasNaturalLanguageQueryUnderstandingInfo() + != other.hasNaturalLanguageQueryUnderstandingInfo()) return false; + if (hasNaturalLanguageQueryUnderstandingInfo()) { + if (!getNaturalLanguageQueryUnderstandingInfo() + .equals(other.getNaturalLanguageQueryUnderstandingInfo())) return false; + } + if (hasSessionInfo() != other.hasSessionInfo()) return false; + if (hasSessionInfo()) { + if (!getSessionInfo().equals(other.getSessionInfo())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -19961,6 +32529,14 @@ public int hashCode() { hash = (37 * hash) + QUERY_EXPANSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getQueryExpansionInfo().hashCode(); } + if (hasNaturalLanguageQueryUnderstandingInfo()) { + hash = (37 * hash) + NATURAL_LANGUAGE_QUERY_UNDERSTANDING_INFO_FIELD_NUMBER; + hash = (53 * hash) + getNaturalLanguageQueryUnderstandingInfo().hashCode(); + } + if (hasSessionInfo()) { + hash = (37 * hash) + SESSION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getSessionInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -20110,6 +32686,8 @@ private void maybeForceBuilderInitialization() { getSummaryFieldBuilder(); getGeoSearchDebugInfoFieldBuilder(); getQueryExpansionInfoFieldBuilder(); + getNaturalLanguageQueryUnderstandingInfoFieldBuilder(); + getSessionInfoFieldBuilder(); } } @@ -20159,6 +32737,16 @@ public Builder clear() { queryExpansionInfoBuilder_.dispose(); queryExpansionInfoBuilder_ = null; } + naturalLanguageQueryUnderstandingInfo_ = null; + if (naturalLanguageQueryUnderstandingInfoBuilder_ != null) { + naturalLanguageQueryUnderstandingInfoBuilder_.dispose(); + naturalLanguageQueryUnderstandingInfoBuilder_ = null; + } + sessionInfo_ = null; + if (sessionInfoBuilder_ != null) { + sessionInfoBuilder_.dispose(); + sessionInfoBuilder_ = null; + } return this; } @@ -20265,6 +32853,18 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRespons : queryExpansionInfoBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.naturalLanguageQueryUnderstandingInfo_ = + naturalLanguageQueryUnderstandingInfoBuilder_ == null + ? naturalLanguageQueryUnderstandingInfo_ + : naturalLanguageQueryUnderstandingInfoBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.sessionInfo_ = + sessionInfoBuilder_ == null ? sessionInfo_ : sessionInfoBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -20437,6 +33037,13 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse if (other.hasQueryExpansionInfo()) { mergeQueryExpansionInfo(other.getQueryExpansionInfo()); } + if (other.hasNaturalLanguageQueryUnderstandingInfo()) { + mergeNaturalLanguageQueryUnderstandingInfo( + other.getNaturalLanguageQueryUnderstandingInfo()); + } + if (other.hasSessionInfo()) { + mergeSessionInfo(other.getSessionInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -20548,7 +33155,15 @@ public Builder mergeFrom( getQueryExpansionInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; - } // case 114 + } // case 114 + case 122: + { + input.readMessage( + getNaturalLanguageQueryUnderstandingInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 122 case 130: { com.google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo m = @@ -20564,6 +33179,12 @@ public Builder mergeFrom( } break; } // case 130 + case 154: + { + input.readMessage(getSessionInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 154 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -23032,6 +35653,477 @@ public Builder clearQueryExpansionInfo() { return queryExpansionInfoBuilder_; } + private com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + naturalLanguageQueryUnderstandingInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfoOrBuilder> + naturalLanguageQueryUnderstandingInfoBuilder_; + /** + * + * + *
      +     * Natural language query understanding information for the returned results.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + * + * @return Whether the naturalLanguageQueryUnderstandingInfo field is set. + */ + public boolean hasNaturalLanguageQueryUnderstandingInfo() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
      +     * Natural language query understanding information for the returned results.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + * + * @return The naturalLanguageQueryUnderstandingInfo. + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + getNaturalLanguageQueryUnderstandingInfo() { + if (naturalLanguageQueryUnderstandingInfoBuilder_ == null) { + return naturalLanguageQueryUnderstandingInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.getDefaultInstance() + : naturalLanguageQueryUnderstandingInfo_; + } else { + return naturalLanguageQueryUnderstandingInfoBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Natural language query understanding information for the returned results.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + */ + public Builder setNaturalLanguageQueryUnderstandingInfo( + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + value) { + if (naturalLanguageQueryUnderstandingInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + naturalLanguageQueryUnderstandingInfo_ = value; + } else { + naturalLanguageQueryUnderstandingInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Natural language query understanding information for the returned results.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + */ + public Builder setNaturalLanguageQueryUnderstandingInfo( + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .Builder + builderForValue) { + if (naturalLanguageQueryUnderstandingInfoBuilder_ == null) { + naturalLanguageQueryUnderstandingInfo_ = builderForValue.build(); + } else { + naturalLanguageQueryUnderstandingInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Natural language query understanding information for the returned results.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + */ + public Builder mergeNaturalLanguageQueryUnderstandingInfo( + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + value) { + if (naturalLanguageQueryUnderstandingInfoBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && naturalLanguageQueryUnderstandingInfo_ != null + && naturalLanguageQueryUnderstandingInfo_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.getDefaultInstance()) { + getNaturalLanguageQueryUnderstandingInfoBuilder().mergeFrom(value); + } else { + naturalLanguageQueryUnderstandingInfo_ = value; + } + } else { + naturalLanguageQueryUnderstandingInfoBuilder_.mergeFrom(value); + } + if (naturalLanguageQueryUnderstandingInfo_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Natural language query understanding information for the returned results.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + */ + public Builder clearNaturalLanguageQueryUnderstandingInfo() { + bitField0_ = (bitField0_ & ~0x00001000); + naturalLanguageQueryUnderstandingInfo_ = null; + if (naturalLanguageQueryUnderstandingInfoBuilder_ != null) { + naturalLanguageQueryUnderstandingInfoBuilder_.dispose(); + naturalLanguageQueryUnderstandingInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Natural language query understanding information for the returned results.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.Builder + getNaturalLanguageQueryUnderstandingInfoBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getNaturalLanguageQueryUnderstandingInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Natural language query understanding information for the returned results.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfoOrBuilder + getNaturalLanguageQueryUnderstandingInfoOrBuilder() { + if (naturalLanguageQueryUnderstandingInfoBuilder_ != null) { + return naturalLanguageQueryUnderstandingInfoBuilder_.getMessageOrBuilder(); + } else { + return naturalLanguageQueryUnderstandingInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.getDefaultInstance() + : naturalLanguageQueryUnderstandingInfo_; + } + } + /** + * + * + *
      +     * Natural language query understanding information for the returned results.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfoOrBuilder> + getNaturalLanguageQueryUnderstandingInfoFieldBuilder() { + if (naturalLanguageQueryUnderstandingInfoBuilder_ == null) { + naturalLanguageQueryUnderstandingInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfoOrBuilder>( + getNaturalLanguageQueryUnderstandingInfo(), getParentForChildren(), isClean()); + naturalLanguageQueryUnderstandingInfo_ = null; + } + return naturalLanguageQueryUnderstandingInfoBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo sessionInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo, + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfoOrBuilder> + sessionInfoBuilder_; + /** + * + * + *
      +     * Session information.
      +     *
      +     * Only set if
      +     * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +     * is provided. See its description for more details.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + * + * + * @return Whether the sessionInfo field is set. + */ + public boolean hasSessionInfo() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
      +     * Session information.
      +     *
      +     * Only set if
      +     * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +     * is provided. See its description for more details.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + * + * + * @return The sessionInfo. + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo getSessionInfo() { + if (sessionInfoBuilder_ == null) { + return sessionInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo + .getDefaultInstance() + : sessionInfo_; + } else { + return sessionInfoBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Session information.
      +     *
      +     * Only set if
      +     * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +     * is provided. See its description for more details.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + * + */ + public Builder setSessionInfo( + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo value) { + if (sessionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sessionInfo_ = value; + } else { + sessionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Session information.
      +     *
      +     * Only set if
      +     * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +     * is provided. See its description for more details.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + * + */ + public Builder setSessionInfo( + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo.Builder + builderForValue) { + if (sessionInfoBuilder_ == null) { + sessionInfo_ = builderForValue.build(); + } else { + sessionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Session information.
      +     *
      +     * Only set if
      +     * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +     * is provided. See its description for more details.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + * + */ + public Builder mergeSessionInfo( + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo value) { + if (sessionInfoBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && sessionInfo_ != null + && sessionInfo_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo + .getDefaultInstance()) { + getSessionInfoBuilder().mergeFrom(value); + } else { + sessionInfo_ = value; + } + } else { + sessionInfoBuilder_.mergeFrom(value); + } + if (sessionInfo_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Session information.
      +     *
      +     * Only set if
      +     * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +     * is provided. See its description for more details.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + * + */ + public Builder clearSessionInfo() { + bitField0_ = (bitField0_ & ~0x00002000); + sessionInfo_ = null; + if (sessionInfoBuilder_ != null) { + sessionInfoBuilder_.dispose(); + sessionInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Session information.
      +     *
      +     * Only set if
      +     * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +     * is provided. See its description for more details.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo.Builder + getSessionInfoBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getSessionInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Session information.
      +     *
      +     * Only set if
      +     * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +     * is provided. See its description for more details.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfoOrBuilder + getSessionInfoOrBuilder() { + if (sessionInfoBuilder_ != null) { + return sessionInfoBuilder_.getMessageOrBuilder(); + } else { + return sessionInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo + .getDefaultInstance() + : sessionInfo_; + } + } + /** + * + * + *
      +     * Session information.
      +     *
      +     * Only set if
      +     * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +     * is provided. See its description for more details.
      +     * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo, + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfoOrBuilder> + getSessionInfoFieldBuilder() { + if (sessionInfoBuilder_ == null) { + sessionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo, + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfoOrBuilder>( + getSessionInfo(), getParentForChildren(), isClean()); + sessionInfo_ = null; + } + return sessionInfoBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java index 9860671eacfc..c93a9856d07f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java @@ -496,4 +496,96 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo getGeo */ com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder(); + + /** + * + * + *
      +   * Natural language query understanding information for the returned results.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + * + * @return Whether the naturalLanguageQueryUnderstandingInfo field is set. + */ + boolean hasNaturalLanguageQueryUnderstandingInfo(); + /** + * + * + *
      +   * Natural language query understanding information for the returned results.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + * + * @return The naturalLanguageQueryUnderstandingInfo. + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo + getNaturalLanguageQueryUnderstandingInfo(); + /** + * + * + *
      +   * Natural language query understanding information for the returned results.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse + .NaturalLanguageQueryUnderstandingInfoOrBuilder + getNaturalLanguageQueryUnderstandingInfoOrBuilder(); + + /** + * + * + *
      +   * Session information.
      +   *
      +   * Only set if
      +   * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +   * is provided. See its description for more details.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + * + * @return Whether the sessionInfo field is set. + */ + boolean hasSessionInfo(); + /** + * + * + *
      +   * Session information.
      +   *
      +   * Only set if
      +   * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +   * is provided. See its description for more details.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + * + * @return The sessionInfo. + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo getSessionInfo(); + /** + * + * + *
      +   * Session information.
      +   *
      +   * Only set if
      +   * [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
      +   * is provided. See its description for more details.
      +   * 
      + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19; + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfoOrBuilder + getSessionInfoOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java index f763a7e1ea70..312116860bf6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java @@ -96,6 +96,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -104,6 +108,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -180,6 +196,42 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SessionInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SessionInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -194,226 +246,324 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ryengine.v1beta\032\034google/api/annotations." + "proto\032\027google/api/client.proto\032\037google/a" + "pi/field_behavior.proto\032\031google/api/reso" - + "urce.proto\0320google/cloud/discoveryengine" - + "/v1beta/common.proto\0322google/cloud/disco" - + "veryengine/v1beta/document.proto\032\034google" - + "/protobuf/struct.proto\"\315$\n\rSearchRequest" - + "\022L\n\016serving_config\030\001 \001(\tB4\340A\002\372A.\n,discov" - + "eryengine.googleapis.com/ServingConfig\022:" - + "\n\006branch\030\002 \001(\tB*\372A\'\n%discoveryengine.goo" - + "gleapis.com/Branch\022\r\n\005query\030\003 \001(\t\022R\n\013ima" - + "ge_query\030\023 \001(\0132=.google.cloud.discoverye" - + "ngine.v1beta.SearchRequest.ImageQuery\022\021\n" - + "\tpage_size\030\004 \001(\005\022\022\n\npage_token\030\005 \001(\t\022\016\n\006" - + "offset\030\006 \001(\005\022Z\n\020data_store_specs\030 \003(\0132@" + + "urce.proto\032/google/cloud/discoveryengine" + + "/v1beta/chunk.proto\0320google/cloud/discov" + + "eryengine/v1beta/common.proto\0322google/cl" + + "oud/discoveryengine/v1beta/document.prot" + + "o\032\034google/protobuf/struct.proto\"\353/\n\rSear" + + "chRequest\022L\n\016serving_config\030\001 \001(\tB4\340A\002\372A" + + ".\n,discoveryengine.googleapis.com/Servin" + + "gConfig\022:\n\006branch\030\002 \001(\tB*\372A\'\n%discoverye" + + "ngine.googleapis.com/Branch\022\r\n\005query\030\003 \001" + + "(\t\022R\n\013image_query\030\023 \001(\0132=.google.cloud.d" + + "iscoveryengine.v1beta.SearchRequest.Imag" + + "eQuery\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_token\030" + + "\005 \001(\t\022\016\n\006offset\030\006 \001(\005\022Z\n\020data_store_spec" + + "s\030 \003(\0132@.google.cloud.discoveryengine.v" + + "1beta.SearchRequest.DataStoreSpec\022\016\n\006fil" + + "ter\030\007 \001(\t\022\030\n\020canonical_filter\030\035 \001(\t\022\020\n\010o" + + "rder_by\030\010 \001(\t\022@\n\tuser_info\030\025 \001(\0132-.googl" + + "e.cloud.discoveryengine.v1beta.UserInfo\022" + + "\025\n\rlanguage_code\030# \001(\t\022\023\n\013region_code\030$ " + + "\001(\t\022Q\n\013facet_specs\030\t \003(\0132<.google.cloud." + + "discoveryengine.v1beta.SearchRequest.Fac" + + "etSpec\022P\n\nboost_spec\030\n \001(\0132<.google.clou" + + "d.discoveryengine.v1beta.SearchRequest.B" + + "oostSpec\022N\n\006params\030\013 \003(\0132>.google.cloud." + + "discoveryengine.v1beta.SearchRequest.Par" + + "amsEntry\022c\n\024query_expansion_spec\030\r \001(\0132E" + ".google.cloud.discoveryengine.v1beta.Sea" - + "rchRequest.DataStoreSpec\022\016\n\006filter\030\007 \001(\t" - + "\022\030\n\020canonical_filter\030\035 \001(\t\022\020\n\010order_by\030\010" - + " \001(\t\022@\n\tuser_info\030\025 \001(\0132-.google.cloud.d" - + "iscoveryengine.v1beta.UserInfo\022Q\n\013facet_" - + "specs\030\t \003(\0132<.google.cloud.discoveryengi" - + "ne.v1beta.SearchRequest.FacetSpec\022P\n\nboo" - + "st_spec\030\n \001(\0132<.google.cloud.discoveryen" - + "gine.v1beta.SearchRequest.BoostSpec\022N\n\006p" - + "arams\030\013 \003(\0132>.google.cloud.discoveryengi" - + "ne.v1beta.SearchRequest.ParamsEntry\022c\n\024q" - + "uery_expansion_spec\030\r \001(\0132E.google.cloud" - + ".discoveryengine.v1beta.SearchRequest.Qu" - + "eryExpansionSpec\022e\n\025spell_correction_spe" - + "c\030\016 \001(\0132F.google.cloud.discoveryengine.v" - + "1beta.SearchRequest.SpellCorrectionSpec\022" - + "\026\n\016user_pseudo_id\030\017 \001(\t\022a\n\023content_searc" - + "h_spec\030\030 \001(\0132D.google.cloud.discoveryeng" - + "ine.v1beta.SearchRequest.ContentSearchSp" - + "ec\022X\n\016embedding_spec\030\027 \001(\0132@.google.clou" - + "d.discoveryengine.v1beta.SearchRequest.E" - + "mbeddingSpec\022\032\n\022ranking_expression\030\032 \001(\t" - + "\022\023\n\013safe_search\030\024 \001(\010\022W\n\013user_labels\030\026 \003" - + "(\0132B.google.cloud.discoveryengine.v1beta" - + ".SearchRequest.UserLabelsEntry\032,\n\nImageQ" - + "uery\022\025\n\013image_bytes\030\001 \001(\tH\000B\007\n\005image\032U\n\r" - + "DataStoreSpec\022D\n\ndata_store\030\001 \001(\tB0\340A\002\372A" - + "*\n(discoveryengine.googleapis.com/DataSt" - + "ore\032\204\003\n\tFacetSpec\022]\n\tfacet_key\030\001 \001(\0132E.g" - + "oogle.cloud.discoveryengine.v1beta.Searc" - + "hRequest.FacetSpec.FacetKeyB\003\340A\002\022\r\n\005limi" - + "t\030\002 \001(\005\022\034\n\024excluded_filter_keys\030\003 \003(\t\022\037\n" - + "\027enable_dynamic_position\030\004 \001(\010\032\311\001\n\010Facet" - + "Key\022\020\n\003key\030\001 \001(\tB\003\340A\002\022@\n\tintervals\030\002 \003(\013" - + "2-.google.cloud.discoveryengine.v1beta.I" - + "nterval\022\031\n\021restricted_values\030\003 \003(\t\022\020\n\010pr" - + "efixes\030\004 \003(\t\022\020\n\010contains\030\005 \003(\t\022\030\n\020case_i" - + "nsensitive\030\006 \001(\010\022\020\n\010order_by\030\007 \001(\t\032\320\007\n\tB" - + "oostSpec\022n\n\025condition_boost_specs\030\001 \003(\0132" - + "O.google.cloud.discoveryengine.v1beta.Se" - + "archRequest.BoostSpec.ConditionBoostSpec" - + "\032\322\006\n\022ConditionBoostSpec\022\021\n\tcondition\030\001 \001" - + "(\t\022\r\n\005boost\030\002 \001(\002\022|\n\022boost_control_spec\030" - + "\003 \001(\0132`.google.cloud.discoveryengine.v1b" - + "eta.SearchRequest.BoostSpec.ConditionBoo" - + "stSpec.BoostControlSpec\032\233\005\n\020BoostControl" - + "Spec\022\022\n\nfield_name\030\001 \001(\t\022\206\001\n\016attribute_t" - + "ype\030\002 \001(\0162n.google.cloud.discoveryengine" - + ".v1beta.SearchRequest.BoostSpec.Conditio" - + "nBoostSpec.BoostControlSpec.AttributeTyp" - + "e\022\216\001\n\022interpolation_type\030\003 \001(\0162r.google." - + "cloud.discoveryengine.v1beta.SearchReque" - + "st.BoostSpec.ConditionBoostSpec.BoostCon" - + "trolSpec.InterpolationType\022\205\001\n\016control_p" - + "oints\030\004 \003(\0132m.google.cloud.discoveryengi" - + "ne.v1beta.SearchRequest.BoostSpec.Condit" - + "ionBoostSpec.BoostControlSpec.ControlPoi" - + "nt\032=\n\014ControlPoint\022\027\n\017attribute_value\030\001 " - + "\001(\t\022\024\n\014boost_amount\030\002 \001(\002\"M\n\rAttributeTy" - + "pe\022\036\n\032ATTRIBUTE_TYPE_UNSPECIFIED\020\000\022\r\n\tNU" - + "MERICAL\020\001\022\r\n\tFRESHNESS\020\002\"C\n\021Interpolatio" - + "nType\022\"\n\036INTERPOLATION_TYPE_UNSPECIFIED\020" - + "\000\022\n\n\006LINEAR\020\001\032\330\001\n\022QueryExpansionSpec\022b\n\t" - + "condition\030\001 \001(\0162O.google.cloud.discovery" - + "engine.v1beta.SearchRequest.QueryExpansi" - + "onSpec.Condition\022\036\n\026pin_unexpanded_resul" - + "ts\030\002 \001(\010\">\n\tCondition\022\031\n\025CONDITION_UNSPE" - + "CIFIED\020\000\022\014\n\010DISABLED\020\001\022\010\n\004AUTO\020\002\032\255\001\n\023Spe" - + "llCorrectionSpec\022Y\n\004mode\030\001 \001(\0162K.google." - + "cloud.discoveryengine.v1beta.SearchReque" - + "st.SpellCorrectionSpec.Mode\";\n\004Mode\022\024\n\020M" - + "ODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTION_ONLY\020\001\022\010" - + "\n\004AUTO\020\002\032\203\t\n\021ContentSearchSpec\022f\n\014snippe" - + "t_spec\030\001 \001(\0132P.google.cloud.discoveryeng" - + "ine.v1beta.SearchRequest.ContentSearchSp" - + "ec.SnippetSpec\022f\n\014summary_spec\030\002 \001(\0132P.g" + + "rchRequest.QueryExpansionSpec\022e\n\025spell_c" + + "orrection_spec\030\016 \001(\0132F.google.cloud.disc" + + "overyengine.v1beta.SearchRequest.SpellCo" + + "rrectionSpec\022\026\n\016user_pseudo_id\030\017 \001(\t\022a\n\023" + + "content_search_spec\030\030 \001(\0132D.google.cloud" + + ".discoveryengine.v1beta.SearchRequest.Co" + + "ntentSearchSpec\022X\n\016embedding_spec\030\027 \001(\0132" + + "@.google.cloud.discoveryengine.v1beta.Se" + + "archRequest.EmbeddingSpec\022\032\n\022ranking_exp" + + "ression\030\032 \001(\t\022\023\n\013safe_search\030\024 \001(\010\022W\n\013us" + + "er_labels\030\026 \003(\0132B.google.cloud.discovery" + + "engine.v1beta.SearchRequest.UserLabelsEn" + + "try\022\213\001\n)natural_language_query_understan" + + "ding_spec\030\034 \001(\0132X.google.cloud.discovery" + + "engine.v1beta.SearchRequest.NaturalLangu" + + "ageQueryUnderstandingSpec\022g\n\027search_as_y" + + "ou_type_spec\030\037 \001(\0132F.google.cloud.discov" + + "eryengine.v1beta.SearchRequest.SearchAsY" + + "ouTypeSpec\022<\n\007session\030) \001(\tB+\372A(\n&discov" + + "eryengine.googleapis.com/Session\022T\n\014sess" + + "ion_spec\030* \001(\0132>.google.cloud.discoverye" + + "ngine.v1beta.SearchRequest.SessionSpec\032," + + "\n\nImageQuery\022\025\n\013image_bytes\030\001 \001(\tH\000B\007\n\005i" + + "mage\032U\n\rDataStoreSpec\022D\n\ndata_store\030\001 \001(" + + "\tB0\340A\002\372A*\n(discoveryengine.googleapis.co" + + "m/DataStore\032\204\003\n\tFacetSpec\022]\n\tfacet_key\030\001" + + " \001(\0132E.google.cloud.discoveryengine.v1be" + + "ta.SearchRequest.FacetSpec.FacetKeyB\003\340A\002" + + "\022\r\n\005limit\030\002 \001(\005\022\034\n\024excluded_filter_keys\030" + + "\003 \003(\t\022\037\n\027enable_dynamic_position\030\004 \001(\010\032\311" + + "\001\n\010FacetKey\022\020\n\003key\030\001 \001(\tB\003\340A\002\022@\n\tinterva" + + "ls\030\002 \003(\0132-.google.cloud.discoveryengine." + + "v1beta.Interval\022\031\n\021restricted_values\030\003 \003" + + "(\t\022\020\n\010prefixes\030\004 \003(\t\022\020\n\010contains\030\005 \003(\t\022\030" + + "\n\020case_insensitive\030\006 \001(\010\022\020\n\010order_by\030\007 \001" + + "(\t\032\320\007\n\tBoostSpec\022n\n\025condition_boost_spec" + + "s\030\001 \003(\0132O.google.cloud.discoveryengine.v" + + "1beta.SearchRequest.BoostSpec.ConditionB" + + "oostSpec\032\322\006\n\022ConditionBoostSpec\022\021\n\tcondi" + + "tion\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\022|\n\022boost_contr" + + "ol_spec\030\003 \001(\0132`.google.cloud.discoveryen" + + "gine.v1beta.SearchRequest.BoostSpec.Cond" + + "itionBoostSpec.BoostControlSpec\032\233\005\n\020Boos" + + "tControlSpec\022\022\n\nfield_name\030\001 \001(\t\022\206\001\n\016att" + + "ribute_type\030\002 \001(\0162n.google.cloud.discove" + + "ryengine.v1beta.SearchRequest.BoostSpec." + + "ConditionBoostSpec.BoostControlSpec.Attr" + + "ibuteType\022\216\001\n\022interpolation_type\030\003 \001(\0162r" + + ".google.cloud.discoveryengine.v1beta.Sea" + + "rchRequest.BoostSpec.ConditionBoostSpec." + + "BoostControlSpec.InterpolationType\022\205\001\n\016c" + + "ontrol_points\030\004 \003(\0132m.google.cloud.disco" + + "veryengine.v1beta.SearchRequest.BoostSpe" + + "c.ConditionBoostSpec.BoostControlSpec.Co" + + "ntrolPoint\032=\n\014ControlPoint\022\027\n\017attribute_" + + "value\030\001 \001(\t\022\024\n\014boost_amount\030\002 \001(\002\"M\n\rAtt" + + "ributeType\022\036\n\032ATTRIBUTE_TYPE_UNSPECIFIED" + + "\020\000\022\r\n\tNUMERICAL\020\001\022\r\n\tFRESHNESS\020\002\"C\n\021Inte" + + "rpolationType\022\"\n\036INTERPOLATION_TYPE_UNSP" + + "ECIFIED\020\000\022\n\n\006LINEAR\020\001\032\330\001\n\022QueryExpansion" + + "Spec\022b\n\tcondition\030\001 \001(\0162O.google.cloud.d" + + "iscoveryengine.v1beta.SearchRequest.Quer" + + "yExpansionSpec.Condition\022\036\n\026pin_unexpand" + + "ed_results\030\002 \001(\010\">\n\tCondition\022\031\n\025CONDITI" + + "ON_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\010\n\004AUTO\020\002" + + "\032\255\001\n\023SpellCorrectionSpec\022Y\n\004mode\030\001 \001(\0162K" + + ".google.cloud.discoveryengine.v1beta.Sea" + + "rchRequest.SpellCorrectionSpec.Mode\";\n\004M" + + "ode\022\024\n\020MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTION_" + + "ONLY\020\001\022\010\n\004AUTO\020\002\032\360\013\n\021ContentSearchSpec\022f" + + "\n\014snippet_spec\030\001 \001(\0132P.google.cloud.disc" + + "overyengine.v1beta.SearchRequest.Content" + + "SearchSpec.SnippetSpec\022f\n\014summary_spec\030\002" + + " \001(\0132P.google.cloud.discoveryengine.v1be" + + "ta.SearchRequest.ContentSearchSpec.Summa" + + "rySpec\022{\n\027extractive_content_spec\030\003 \001(\0132" + + "Z.google.cloud.discoveryengine.v1beta.Se" + + "archRequest.ContentSearchSpec.Extractive" + + "ContentSpec\022q\n\022search_result_mode\030\004 \001(\0162" + + "U.google.cloud.discoveryengine.v1beta.Se" + + "archRequest.ContentSearchSpec.SearchResu" + + "ltMode\022b\n\nchunk_spec\030\005 \001(\0132N.google.clou" + + "d.discoveryengine.v1beta.SearchRequest.C" + + "ontentSearchSpec.ChunkSpec\032`\n\013SnippetSpe" + + "c\022\035\n\021max_snippet_count\030\001 \001(\005B\002\030\001\022\032\n\016refe" + + "rence_only\030\002 \001(\010B\002\030\001\022\026\n\016return_snippet\030\003" + + " \001(\010\032\366\003\n\013SummarySpec\022\034\n\024summary_result_c" + + "ount\030\001 \001(\005\022\031\n\021include_citations\030\002 \001(\010\022 \n" + + "\030ignore_adversarial_query\030\003 \001(\010\022(\n ignor" + + "e_non_summary_seeking_query\030\004 \001(\010\022{\n\021mod" + + "el_prompt_spec\030\005 \001(\0132`.google.cloud.disc" + + "overyengine.v1beta.SearchRequest.Content" + + "SearchSpec.SummarySpec.ModelPromptSpec\022\025" + + "\n\rlanguage_code\030\006 \001(\t\022n\n\nmodel_spec\030\007 \001(" + + "\0132Z.google.cloud.discoveryengine.v1beta." + + "SearchRequest.ContentSearchSpec.SummaryS" + + "pec.ModelSpec\022\033\n\023use_semantic_chunks\030\010 \001" + + "(\010\032#\n\017ModelPromptSpec\022\020\n\010preamble\030\001 \001(\t\032" + + "\034\n\tModelSpec\022\017\n\007version\030\001 \001(\t\032\305\001\n\025Extrac" + + "tiveContentSpec\022#\n\033max_extractive_answer" + + "_count\030\001 \001(\005\022$\n\034max_extractive_segment_c" + + "ount\030\002 \001(\005\022\'\n\037return_extractive_segment_" + + "score\030\003 \001(\010\022\035\n\025num_previous_segments\030\004 \001" + + "(\005\022\031\n\021num_next_segments\030\005 \001(\005\032A\n\tChunkSp" + + "ec\022\033\n\023num_previous_chunks\030\001 \001(\005\022\027\n\017num_n" + + "ext_chunks\030\002 \001(\005\"Q\n\020SearchResultMode\022\"\n\036" + + "SEARCH_RESULT_MODE_UNSPECIFIED\020\000\022\r\n\tDOCU" + + "MENTS\020\001\022\n\n\006CHUNKS\020\002\032\263\001\n\rEmbeddingSpec\022k\n" + + "\021embedding_vectors\030\001 \003(\0132P.google.cloud." + + "discoveryengine.v1beta.SearchRequest.Emb" + + "eddingSpec.EmbeddingVector\0325\n\017EmbeddingV" + + "ector\022\022\n\nfield_path\030\001 \001(\t\022\016\n\006vector\030\002 \003(" + + "\002\032\304\002\n%NaturalLanguageQueryUnderstandingS" + + "pec\022\227\001\n\033filter_extraction_condition\030\001 \001(" + + "\0162r.google.cloud.discoveryengine.v1beta." + + "SearchRequest.NaturalLanguageQueryUnders" + + "tandingSpec.FilterExtractionCondition\022.\n" + + "&geo_search_query_detection_field_names\030" + + "\002 \003(\t\"Q\n\031FilterExtractionCondition\022\031\n\025CO" + + "NDITION_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007E" + + "NABLED\020\002\032\275\001\n\023SearchAsYouTypeSpec\022c\n\tcond" + + "ition\030\001 \001(\0162P.google.cloud.discoveryengi" + + "ne.v1beta.SearchRequest.SearchAsYouTypeS" + + "pec.Condition\"A\n\tCondition\022\031\n\025CONDITION_" + + "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007ENABLED\020\002" + + "\032q\n\013SessionSpec\022\020\n\010query_id\030\001 \001(\t\022,\n\037sea" + + "rch_result_persistence_count\030\002 \001(\005H\000\210\001\001B" + + "\"\n _search_result_persistence_count\032E\n\013P" + + "aramsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026" + + ".google.protobuf.Value:\0028\001\0321\n\017UserLabels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\313+" + + "\n\016SearchResponse\022Q\n\007results\030\001 \003(\0132@.goog" + + "le.cloud.discoveryengine.v1beta.SearchRe" + + "sponse.SearchResult\022I\n\006facets\030\002 \003(\01329.go" + + "ogle.cloud.discoveryengine.v1beta.Search" + + "Response.Facet\022d\n\024guided_search_result\030\010" + + " \001(\0132F.google.cloud.discoveryengine.v1be" + + "ta.SearchResponse.GuidedSearchResult\022\022\n\n" + + "total_size\030\003 \001(\005\022\031\n\021attribution_token\030\004 " + + "\001(\t\022\024\n\014redirect_uri\030\014 \001(\t\022\027\n\017next_page_t" + + "oken\030\005 \001(\t\022\027\n\017corrected_query\030\007 \001(\t\022L\n\007s" + + "ummary\030\t \001(\0132;.google.cloud.discoveryeng" + + "ine.v1beta.SearchResponse.Summary\022\030\n\020app" + + "lied_controls\030\n \003(\t\022e\n\025geo_search_debug_" + + "info\030\020 \003(\0132F.google.cloud.discoveryengin" + + "e.v1beta.SearchResponse.GeoSearchDebugIn" + + "fo\022d\n\024query_expansion_info\030\016 \001(\0132F.googl" + + "e.cloud.discoveryengine.v1beta.SearchRes" + + "ponse.QueryExpansionInfo\022\214\001\n)natural_lan" + + "guage_query_understanding_info\030\017 \001(\0132Y.g" + "oogle.cloud.discoveryengine.v1beta.Searc" - + "hRequest.ContentSearchSpec.SummarySpec\022{" - + "\n\027extractive_content_spec\030\003 \001(\0132Z.google" - + ".cloud.discoveryengine.v1beta.SearchRequ" - + "est.ContentSearchSpec.ExtractiveContentS" - + "pec\032`\n\013SnippetSpec\022\035\n\021max_snippet_count\030" - + "\001 \001(\005B\002\030\001\022\032\n\016reference_only\030\002 \001(\010B\002\030\001\022\026\n" - + "\016return_snippet\030\003 \001(\010\032\366\003\n\013SummarySpec\022\034\n" - + "\024summary_result_count\030\001 \001(\005\022\031\n\021include_c" - + "itations\030\002 \001(\010\022 \n\030ignore_adversarial_que" - + "ry\030\003 \001(\010\022(\n ignore_non_summary_seeking_q" - + "uery\030\004 \001(\010\022{\n\021model_prompt_spec\030\005 \001(\0132`." - + "google.cloud.discoveryengine.v1beta.Sear" - + "chRequest.ContentSearchSpec.SummarySpec." - + "ModelPromptSpec\022\025\n\rlanguage_code\030\006 \001(\t\022n" - + "\n\nmodel_spec\030\007 \001(\0132Z.google.cloud.discov" - + "eryengine.v1beta.SearchRequest.ContentSe" - + "archSpec.SummarySpec.ModelSpec\022\033\n\023use_se" - + "mantic_chunks\030\010 \001(\010\032#\n\017ModelPromptSpec\022\020" - + "\n\010preamble\030\001 \001(\t\032\034\n\tModelSpec\022\017\n\007version" - + "\030\001 \001(\t\032\305\001\n\025ExtractiveContentSpec\022#\n\033max_" - + "extractive_answer_count\030\001 \001(\005\022$\n\034max_ext" - + "ractive_segment_count\030\002 \001(\005\022\'\n\037return_ex" - + "tractive_segment_score\030\003 \001(\010\022\035\n\025num_prev" - + "ious_segments\030\004 \001(\005\022\031\n\021num_next_segments" - + "\030\005 \001(\005\032\263\001\n\rEmbeddingSpec\022k\n\021embedding_ve" - + "ctors\030\001 \003(\0132P.google.cloud.discoveryengi" - + "ne.v1beta.SearchRequest.EmbeddingSpec.Em" - + "beddingVector\0325\n\017EmbeddingVector\022\022\n\nfiel" - + "d_path\030\001 \001(\t\022\016\n\006vector\030\002 \003(\002\032E\n\013ParamsEn" - + "try\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google" - + ".protobuf.Value:\0028\001\0321\n\017UserLabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\261\030\n\016Searc" - + "hResponse\022Q\n\007results\030\001 \003(\0132@.google.clou" + + "hResponse.NaturalLanguageQueryUnderstand" + + "ingInfo\022U\n\014session_info\030\023 \001(\0132?.google.c" + + "loud.discoveryengine.v1beta.SearchRespon" + + "se.SessionInfo\032\344\002\n\014SearchResult\022\n\n\002id\030\001 " + + "\001(\t\022?\n\010document\030\002 \001(\0132-.google.cloud.dis" + + "coveryengine.v1beta.Document\0229\n\005chunk\030\022 " + + "\001(\0132*.google.cloud.discoveryengine.v1bet" + + "a.Chunk\022g\n\014model_scores\030\004 \003(\0132Q.google.c" + + "loud.discoveryengine.v1beta.SearchRespon" + + "se.SearchResult.ModelScoresEntry\032c\n\020Mode" + + "lScoresEntry\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\013" + + "2/.google.cloud.discoveryengine.v1beta.D" + + "oubleList:\0028\001\032\201\002\n\005Facet\022\013\n\003key\030\001 \001(\t\022T\n\006" + + "values\030\002 \003(\0132D.google.cloud.discoveryeng" + + "ine.v1beta.SearchResponse.Facet.FacetVal" + + "ue\022\025\n\rdynamic_facet\030\003 \001(\010\032~\n\nFacetValue\022" + + "\017\n\005value\030\001 \001(\tH\000\022A\n\010interval\030\002 \001(\0132-.goo" + + "gle.cloud.discoveryengine.v1beta.Interva" + + "lH\000\022\r\n\005count\030\003 \001(\003B\r\n\013facet_value\032\363\001\n\022Gu" + + "idedSearchResult\022y\n\025refinement_attribute" + + "s\030\001 \003(\0132Z.google.cloud.discoveryengine.v" + + "1beta.SearchResponse.GuidedSearchResult." + + "RefinementAttribute\022\033\n\023follow_up_questio" + + "ns\030\002 \003(\t\032E\n\023RefinementAttribute\022\025\n\rattri" + + "bute_key\030\001 \001(\t\022\027\n\017attribute_value\030\002 \001(\t\032" + + "\311\013\n\007Summary\022\024\n\014summary_text\030\001 \001(\t\022q\n\027sum" + + "mary_skipped_reasons\030\002 \003(\0162P.google.clou" + "d.discoveryengine.v1beta.SearchResponse." - + "SearchResult\022I\n\006facets\030\002 \003(\01329.google.cl" - + "oud.discoveryengine.v1beta.SearchRespons" - + "e.Facet\022d\n\024guided_search_result\030\010 \001(\0132F." - + "google.cloud.discoveryengine.v1beta.Sear" - + "chResponse.GuidedSearchResult\022\022\n\ntotal_s" - + "ize\030\003 \001(\005\022\031\n\021attribution_token\030\004 \001(\t\022\024\n\014" - + "redirect_uri\030\014 \001(\t\022\027\n\017next_page_token\030\005 " - + "\001(\t\022\027\n\017corrected_query\030\007 \001(\t\022L\n\007summary\030" - + "\t \001(\0132;.google.cloud.discoveryengine.v1b" - + "eta.SearchResponse.Summary\022\030\n\020applied_co" - + "ntrols\030\n \003(\t\022e\n\025geo_search_debug_info\030\020 " - + "\003(\0132F.google.cloud.discoveryengine.v1bet" - + "a.SearchResponse.GeoSearchDebugInfo\022d\n\024q" - + "uery_expansion_info\030\016 \001(\0132F.google.cloud" - + ".discoveryengine.v1beta.SearchResponse.Q" - + "ueryExpansionInfo\032\251\002\n\014SearchResult\022\n\n\002id" - + "\030\001 \001(\t\022?\n\010document\030\002 \001(\0132-.google.cloud." - + "discoveryengine.v1beta.Document\022g\n\014model" - + "_scores\030\004 \003(\0132Q.google.cloud.discoveryen" - + "gine.v1beta.SearchResponse.SearchResult." - + "ModelScoresEntry\032c\n\020ModelScoresEntry\022\013\n\003" - + "key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.google.cloud." - + "discoveryengine.v1beta.DoubleList:\0028\001\032\201\002" - + "\n\005Facet\022\013\n\003key\030\001 \001(\t\022T\n\006values\030\002 \003(\0132D.g" - + "oogle.cloud.discoveryengine.v1beta.Searc" - + "hResponse.Facet.FacetValue\022\025\n\rdynamic_fa" - + "cet\030\003 \001(\010\032~\n\nFacetValue\022\017\n\005value\030\001 \001(\tH\000" - + "\022A\n\010interval\030\002 \001(\0132-.google.cloud.discov" - + "eryengine.v1beta.IntervalH\000\022\r\n\005count\030\003 \001" - + "(\003B\r\n\013facet_value\032\363\001\n\022GuidedSearchResult" - + "\022y\n\025refinement_attributes\030\001 \003(\0132Z.google" - + ".cloud.discoveryengine.v1beta.SearchResp" - + "onse.GuidedSearchResult.RefinementAttrib" - + "ute\022\033\n\023follow_up_questions\030\002 \003(\t\032E\n\023Refi" - + "nementAttribute\022\025\n\rattribute_key\030\001 \001(\t\022\027" - + "\n\017attribute_value\030\002 \001(\t\032\260\013\n\007Summary\022\024\n\014s" - + "ummary_text\030\001 \001(\t\022q\n\027summary_skipped_rea" - + "sons\030\002 \003(\0162P.google.cloud.discoveryengin" - + "e.v1beta.SearchResponse.Summary.SummaryS" - + "kippedReason\022g\n\021safety_attributes\030\003 \001(\0132" - + "L.google.cloud.discoveryengine.v1beta.Se" - + "archResponse.Summary.SafetyAttributes\022n\n" - + "\025summary_with_metadata\030\004 \001(\0132O.google.cl" - + "oud.discoveryengine.v1beta.SearchRespons" - + "e.Summary.SummaryWithMetadata\0326\n\020SafetyA" - + "ttributes\022\022\n\ncategories\030\001 \003(\t\022\016\n\006scores\030" - + "\002 \003(\002\032k\n\020CitationMetadata\022W\n\tcitations\030\001" - + " \003(\0132D.google.cloud.discoveryengine.v1be" - + "ta.SearchResponse.Summary.Citation\032\217\001\n\010C" - + "itation\022\023\n\013start_index\030\001 \001(\003\022\021\n\tend_inde" - + "x\030\002 \001(\003\022[\n\007sources\030\003 \003(\0132J.google.cloud." - + "discoveryengine.v1beta.SearchResponse.Su" - + "mmary.CitationSource\032)\n\016CitationSource\022\027" - + "\n\017reference_index\030\004 \001(\003\032\220\002\n\tReference\022\r\n" - + "\005title\030\001 \001(\t\022A\n\010document\030\002 \001(\tB/\340A\002\372A)\n\'" - + "discoveryengine.googleapis.com/Document\022" - + "\013\n\003uri\030\003 \001(\t\022j\n\016chunk_contents\030\004 \003(\0132R.g" - + "oogle.cloud.discoveryengine.v1beta.Searc" - + "hResponse.Summary.Reference.ChunkContent" - + "\0328\n\014ChunkContent\022\017\n\007content\030\001 \001(\t\022\027\n\017pag" - + "e_identifier\030\002 \001(\t\032\352\001\n\023SummaryWithMetada" - + "ta\022\017\n\007summary\030\001 \001(\t\022g\n\021citation_metadata" - + "\030\002 \001(\0132L.google.cloud.discoveryengine.v1" - + "beta.SearchResponse.Summary.CitationMeta" - + "data\022Y\n\nreferences\030\003 \003(\0132E.google.cloud." - + "discoveryengine.v1beta.SearchResponse.Su" - + "mmary.Reference\"\340\001\n\024SummarySkippedReason" - + "\022&\n\"SUMMARY_SKIPPED_REASON_UNSPECIFIED\020\000" - + "\022\035\n\031ADVERSARIAL_QUERY_IGNORED\020\001\022%\n!NON_S" - + "UMMARY_SEEKING_QUERY_IGNORED\020\002\022\037\n\033OUT_OF" - + "_DOMAIN_QUERY_IGNORED\020\003\022\036\n\032POTENTIAL_POL" - + "ICY_VIOLATION\020\004\022\031\n\025LLM_ADDON_NOT_ENABLED" - + "\020\005\032K\n\022GeoSearchDebugInfo\022\036\n\026original_add" - + "ress_query\030\001 \001(\t\022\025\n\rerror_message\030\002 \001(\t\032" - + "I\n\022QueryExpansionInfo\022\026\n\016expanded_query\030" - + "\001 \001(\010\022\033\n\023pinned_result_count\030\002 \001(\0032\211\004\n\rS" - + "earchService\022\243\003\n\006Search\0222.google.cloud.d" - + "iscoveryengine.v1beta.SearchRequest\0323.go" - + "ogle.cloud.discoveryengine.v1beta.Search" - + "Response\"\257\002\202\323\344\223\002\250\002\"T/v1beta/{serving_con" - + "fig=projects/*/locations/*/dataStores/*/" - + "servingConfigs/*}:search:\001*Zg\"b/v1beta/{" - + "serving_config=projects/*/locations/*/co" - + "llections/*/dataStores/*/servingConfigs/" - + "*}:search:\001*Zd\"_/v1beta/{serving_config=" - + "projects/*/locations/*/collections/*/eng" - + "ines/*/servingConfigs/*}:search:\001*\032R\312A\036d" - + "iscoveryengine.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\231" - + "\002\n\'com.google.cloud.discoveryengine.v1be" - + "taB\022SearchServiceProtoP\001ZQcloud.google.c" - + "om/go/discoveryengine/apiv1beta/discover" - + "yenginepb;discoveryenginepb\242\002\017DISCOVERYE" - + "NGINE\252\002#Google.Cloud.DiscoveryEngine.V1B" - + "eta\312\002#Google\\Cloud\\DiscoveryEngine\\V1bet" - + "a\352\002&Google::Cloud::DiscoveryEngine::V1be" - + "tab\006proto3" + + "Summary.SummarySkippedReason\022g\n\021safety_a" + + "ttributes\030\003 \001(\0132L.google.cloud.discovery" + + "engine.v1beta.SearchResponse.Summary.Saf" + + "etyAttributes\022n\n\025summary_with_metadata\030\004" + + " \001(\0132O.google.cloud.discoveryengine.v1be" + + "ta.SearchResponse.Summary.SummaryWithMet" + + "adata\0326\n\020SafetyAttributes\022\022\n\ncategories\030" + + "\001 \003(\t\022\016\n\006scores\030\002 \003(\002\032k\n\020CitationMetadat" + + "a\022W\n\tcitations\030\001 \003(\0132D.google.cloud.disc" + + "overyengine.v1beta.SearchResponse.Summar" + + "y.Citation\032\217\001\n\010Citation\022\023\n\013start_index\030\001" + + " \001(\003\022\021\n\tend_index\030\002 \001(\003\022[\n\007sources\030\003 \003(\013" + + "2J.google.cloud.discoveryengine.v1beta.S" + + "earchResponse.Summary.CitationSource\032)\n\016" + + "CitationSource\022\027\n\017reference_index\030\004 \001(\003\032" + + "\220\002\n\tReference\022\r\n\005title\030\001 \001(\t\022A\n\010document" + + "\030\002 \001(\tB/\340A\002\372A)\n\'discoveryengine.googleap" + + "is.com/Document\022\013\n\003uri\030\003 \001(\t\022j\n\016chunk_co" + + "ntents\030\004 \003(\0132R.google.cloud.discoveryeng" + + "ine.v1beta.SearchResponse.Summary.Refere" + + "nce.ChunkContent\0328\n\014ChunkContent\022\017\n\007cont" + + "ent\030\001 \001(\t\022\027\n\017page_identifier\030\002 \001(\t\032\352\001\n\023S" + + "ummaryWithMetadata\022\017\n\007summary\030\001 \001(\t\022g\n\021c" + + "itation_metadata\030\002 \001(\0132L.google.cloud.di" + + "scoveryengine.v1beta.SearchResponse.Summ" + + "ary.CitationMetadata\022Y\n\nreferences\030\003 \003(\013" + + "2E.google.cloud.discoveryengine.v1beta.S" + + "earchResponse.Summary.Reference\"\371\001\n\024Summ" + + "arySkippedReason\022&\n\"SUMMARY_SKIPPED_REAS" + + "ON_UNSPECIFIED\020\000\022\035\n\031ADVERSARIAL_QUERY_IG" + + "NORED\020\001\022%\n!NON_SUMMARY_SEEKING_QUERY_IGN" + + "ORED\020\002\022\037\n\033OUT_OF_DOMAIN_QUERY_IGNORED\020\003\022" + + "\036\n\032POTENTIAL_POLICY_VIOLATION\020\004\022\031\n\025LLM_A" + + "DDON_NOT_ENABLED\020\005\022\027\n\023NO_RELEVANT_CONTEN" + + "T\020\006\032K\n\022GeoSearchDebugInfo\022\036\n\026original_ad" + + "dress_query\030\001 \001(\t\022\025\n\rerror_message\030\002 \001(\t" + + "\032I\n\022QueryExpansionInfo\022\026\n\016expanded_query" + + "\030\001 \001(\010\022\033\n\023pinned_result_count\030\002 \001(\003\032\256\020\n%" + + "NaturalLanguageQueryUnderstandingInfo\022\031\n" + + "\021extracted_filters\030\001 \001(\t\022\027\n\017rewritten_qu" + + "ery\030\002 \001(\t\022\230\001\n\033structured_extracted_filte" + + "r\030\003 \001(\0132s.google.cloud.discoveryengine.v" + + "1beta.SearchResponse.NaturalLanguageQuer" + + "yUnderstandingInfo.StructuredExtractedFi" + + "lter\032\265\016\n\031StructuredExtractedFilter\022\222\001\n\ne" + + "xpression\030\001 \001(\0132~.google.cloud.discovery" + + "engine.v1beta.SearchResponse.NaturalLang" + + "uageQueryUnderstandingInfo.StructuredExt" + + "ractedFilter.Expression\0326\n\020StringConstra" + + "int\022\022\n\nfield_name\030\001 \001(\t\022\016\n\006values\030\002 \003(\t\032" + + "\343\002\n\020NumberConstraint\022\022\n\nfield_name\030\001 \001(\t" + + "\022\244\001\n\ncomparison\030\002 \001(\0162\217\001.google.cloud.di" + + "scoveryengine.v1beta.SearchResponse.Natu" + + "ralLanguageQueryUnderstandingInfo.Struct" + + "uredExtractedFilter.NumberConstraint.Com" + + "parison\022\r\n\005value\030\003 \001(\001\"\204\001\n\nComparison\022\032\n" + + "\026COMPARISON_UNSPECIFIED\020\000\022\n\n\006EQUALS\020\001\022\024\n" + + "\020LESS_THAN_EQUALS\020\002\022\r\n\tLESS_THAN\020\003\022\027\n\023GR" + + "EATER_THAN_EQUALS\020\004\022\020\n\014GREATER_THAN\020\005\032V\n" + + "\025GeolocationConstraint\022\022\n\nfield_name\030\001 \001" + + "(\t\022\017\n\007address\030\002 \001(\t\022\030\n\020radius_in_meters\030" + + "\003 \001(\002\032\245\001\n\rAndExpression\022\223\001\n\013expressions\030" + + "\001 \003(\0132~.google.cloud.discoveryengine.v1b" + + "eta.SearchResponse.NaturalLanguageQueryU" + + "nderstandingInfo.StructuredExtractedFilt" + + "er.Expression\032\244\001\n\014OrExpression\022\223\001\n\013expre" + + "ssions\030\001 \003(\0132~.google.cloud.discoveryeng" + + "ine.v1beta.SearchResponse.NaturalLanguag" + + "eQueryUnderstandingInfo.StructuredExtrac" + + "tedFilter.Expression\032\275\006\n\nExpression\022\242\001\n\021" + + "string_constraint\030\001 \001(\0132\204\001.google.cloud." + + "discoveryengine.v1beta.SearchResponse.Na" + + "turalLanguageQueryUnderstandingInfo.Stru" + + "cturedExtractedFilter.StringConstraintH\000" + + "\022\242\001\n\021number_constraint\030\002 \001(\0132\204\001.google.c" + + "loud.discoveryengine.v1beta.SearchRespon" + + "se.NaturalLanguageQueryUnderstandingInfo" + + ".StructuredExtractedFilter.NumberConstra" + + "intH\000\022\254\001\n\026geolocation_constraint\030\003 \001(\0132\211" + + "\001.google.cloud.discoveryengine.v1beta.Se" + + "archResponse.NaturalLanguageQueryUnderst" + + "andingInfo.StructuredExtractedFilter.Geo" + + "locationConstraintH\000\022\226\001\n\010and_expr\030\004 \001(\0132" + + "\201\001.google.cloud.discoveryengine.v1beta.S" + + "earchResponse.NaturalLanguageQueryUnders" + + "tandingInfo.StructuredExtractedFilter.An" + + "dExpressionH\000\022\224\001\n\007or_expr\030\005 \001(\0132\200\001.googl" + + "e.cloud.discoveryengine.v1beta.SearchRes" + + "ponse.NaturalLanguageQueryUnderstandingI" + + "nfo.StructuredExtractedFilter.OrExpressi" + + "onH\000B\006\n\004expr\032-\n\013SessionInfo\022\014\n\004name\030\001 \001(" + + "\t\022\020\n\010query_id\030\002 \001(\t2\211\004\n\rSearchService\022\243\003" + + "\n\006Search\0222.google.cloud.discoveryengine." + + "v1beta.SearchRequest\0323.google.cloud.disc" + + "overyengine.v1beta.SearchResponse\"\257\002\202\323\344\223" + + "\002\250\002\"T/v1beta/{serving_config=projects/*/" + + "locations/*/dataStores/*/servingConfigs/" + + "*}:search:\001*Zg\"b/v1beta/{serving_config=" + + "projects/*/locations/*/collections/*/dat" + + "aStores/*/servingConfigs/*}:search:\001*Zd\"" + + "_/v1beta/{serving_config=projects/*/loca" + + "tions/*/collections/*/engines/*/servingC" + + "onfigs/*}:search:\001*\032R\312A\036discoveryengine." + + "googleapis.com\322A.https://www.googleapis." + + "com/auth/cloud-platformB\231\002\n\'com.google.c" + + "loud.discoveryengine.v1betaB\022SearchServi" + + "ceProtoP\001ZQcloud.google.com/go/discovery" + + "engine/apiv1beta/discoveryenginepb;disco" + + "veryenginepb\242\002\017DISCOVERYENGINE\252\002#Google." + + "Cloud.DiscoveryEngine.V1Beta\312\002#Google\\Cl" + + "oud\\DiscoveryEngine\\V1beta\352\002&Google::Clo" + + "ud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -423,6 +573,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.ChunkProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.DocumentProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), @@ -445,6 +596,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CanonicalFilter", "OrderBy", "UserInfo", + "LanguageCode", + "RegionCode", "FacetSpecs", "BoostSpec", "Params", @@ -456,6 +609,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RankingExpression", "SafeSearch", "UserLabels", + "NaturalLanguageQueryUnderstandingSpec", + "SearchAsYouTypeSpec", + "Session", + "SessionSpec", }); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor @@ -571,7 +728,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor, new java.lang.String[] { - "SnippetSpec", "SummarySpec", "ExtractiveContentSpec", + "SnippetSpec", + "SummarySpec", + "ExtractiveContentSpec", + "SearchResultMode", + "ChunkSpec", }); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor @@ -634,6 +795,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NumPreviousSegments", "NumNextSegments", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_descriptor, + new java.lang.String[] { + "NumPreviousChunks", "NumNextChunks", + }); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor .getNestedTypes() @@ -654,10 +825,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "FieldPath", "Vector", }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor .getNestedTypes() .get(8); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor, + new java.lang.String[] { + "FilterExtractionCondition", "GeoSearchQueryDetectionFieldNames", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor + .getNestedTypes() + .get(9); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_descriptor, + new java.lang.String[] { + "Condition", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor + .getNestedTypes() + .get(10); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor, + new java.lang.String[] { + "QueryId", "SearchResultPersistenceCount", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor + .getNestedTypes() + .get(11); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor, @@ -667,7 +868,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor .getNestedTypes() - .get(9); + .get(12); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_descriptor, @@ -692,6 +893,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AppliedControls", "GeoSearchDebugInfo", "QueryExpansionInfo", + "NaturalLanguageQueryUnderstandingInfo", + "SessionInfo", }); internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor @@ -701,7 +904,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor, new java.lang.String[] { - "Id", "Document", "ModelScores", + "Id", "Document", "Chunk", "ModelScores", }); internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor @@ -853,6 +1056,101 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ExpandedQuery", "PinnedResultCount", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor + .getNestedTypes() + .get(6); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor, + new java.lang.String[] { + "ExtractedFilters", "RewrittenQuery", "StructuredExtractedFilter", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor, + new java.lang.String[] { + "Expression", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_descriptor, + new java.lang.String[] { + "FieldName", "Values", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_descriptor, + new java.lang.String[] { + "FieldName", "Comparison", "Value", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_descriptor, + new java.lang.String[] { + "FieldName", "Address", "RadiusInMeters", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_descriptor, + new java.lang.String[] { + "Expressions", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_descriptor, + new java.lang.String[] { + "Expressions", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor + .getNestedTypes() + .get(5); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_descriptor, + new java.lang.String[] { + "StringConstraint", + "NumberConstraint", + "GeolocationConstraint", + "AndExpr", + "OrExpr", + "Expr", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SessionInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor + .getNestedTypes() + .get(7); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SessionInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SessionInfo_descriptor, + new java.lang.String[] { + "Name", "QueryId", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -866,6 +1164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.ChunkProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.DocumentProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfig.java index 84df75afda72..0569a0598fbf 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfig.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfig.java @@ -2747,21 +2747,27 @@ public com.google.cloud.discoveryengine.v1beta.EmbeddingConfig getEmbeddingConfi * * The ranking expression is a single function or multiple functions that are * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * relevance_score: pre-defined keywords, used for measure relevance between - * query and document. - * embedding_field_path: the document embedding field + * + * * `relevance_score`: pre-defined keywords, used for measure relevance + * between query and document. + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * dotProduct: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression - * could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding). + * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * * * string ranking_expression = 21; @@ -2793,21 +2799,27 @@ public java.lang.String getRankingExpression() { * * The ranking expression is a single function or multiple functions that are * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * relevance_score: pre-defined keywords, used for measure relevance between - * query and document. - * embedding_field_path: the document embedding field + * + * * `relevance_score`: pre-defined keywords, used for measure relevance + * between query and document. + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * dotProduct: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression - * could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding). + * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * * * string ranking_expression = 21; @@ -5979,21 +5991,27 @@ public Builder clearEmbeddingConfig() { * * The ranking expression is a single function or multiple functions that are * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * relevance_score: pre-defined keywords, used for measure relevance between - * query and document. - * embedding_field_path: the document embedding field + * + * * `relevance_score`: pre-defined keywords, used for measure relevance + * between query and document. + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * dotProduct: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression - * could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding). + * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * * * string ranking_expression = 21; @@ -6024,21 +6042,27 @@ public java.lang.String getRankingExpression() { * * The ranking expression is a single function or multiple functions that are * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * relevance_score: pre-defined keywords, used for measure relevance between - * query and document. - * embedding_field_path: the document embedding field + * + * * `relevance_score`: pre-defined keywords, used for measure relevance + * between query and document. + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * dotProduct: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression - * could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding). + * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * * * string ranking_expression = 21; @@ -6069,21 +6093,27 @@ public com.google.protobuf.ByteString getRankingExpressionBytes() { * * The ranking expression is a single function or multiple functions that are * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * relevance_score: pre-defined keywords, used for measure relevance between - * query and document. - * embedding_field_path: the document embedding field + * + * * `relevance_score`: pre-defined keywords, used for measure relevance + * between query and document. + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * dotProduct: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression - * could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding). + * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * * * string ranking_expression = 21; @@ -6113,21 +6143,27 @@ public Builder setRankingExpression(java.lang.String value) { * * The ranking expression is a single function or multiple functions that are * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * relevance_score: pre-defined keywords, used for measure relevance between - * query and document. - * embedding_field_path: the document embedding field + * + * * `relevance_score`: pre-defined keywords, used for measure relevance + * between query and document. + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * dotProduct: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression - * could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding). + * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * * * string ranking_expression = 21; @@ -6153,21 +6189,27 @@ public Builder clearRankingExpression() { * * The ranking expression is a single function or multiple functions that are * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * relevance_score: pre-defined keywords, used for measure relevance between - * query and document. - * embedding_field_path: the document embedding field + * + * * `relevance_score`: pre-defined keywords, used for measure relevance + * between query and document. + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * dotProduct: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression - * could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding). + * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * * * string ranking_expression = 21; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigOrBuilder.java index 4aab9abed60c..756c03e2aedf 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigOrBuilder.java @@ -348,21 +348,27 @@ public interface ServingConfigOrBuilder * * The ranking expression is a single function or multiple functions that are * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * relevance_score: pre-defined keywords, used for measure relevance between - * query and document. - * embedding_field_path: the document embedding field + * + * * `relevance_score`: pre-defined keywords, used for measure relevance + * between query and document. + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * dotProduct: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression - * could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding). + * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * * * string ranking_expression = 21; @@ -383,21 +389,27 @@ public interface ServingConfigOrBuilder * * The ranking expression is a single function or multiple functions that are * joined by "+". + * * * ranking_expression = function, { " + ", function }; + * * Supported functions: + * * * double * relevance_score * * double * dotProduct(embedding_field_path) + * * Function variables: - * relevance_score: pre-defined keywords, used for measure relevance between - * query and document. - * embedding_field_path: the document embedding field + * + * * `relevance_score`: pre-defined keywords, used for measure relevance + * between query and document. + * * `embedding_field_path`: the document embedding field * used with query embedding vector. - * dotProduct: embedding function between embedding_field_path and query + * * `dotProduct`: embedding function between embedding_field_path and query * embedding vector. * * Example ranking expression: + * * If document has an embedding field doc_embedding, the ranking expression - * could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding). + * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * * * string ranking_expression = 21; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSampleQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSampleQueryRequest.java new file mode 100644 index 000000000000..1c52b30bec41 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSampleQueryRequest.java @@ -0,0 +1,1120 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [SampleQueryService.UpdateSampleQuery][google.cloud.discoveryengine.v1beta.SampleQueryService.UpdateSampleQuery]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest} + */ +public final class UpdateSampleQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest) + UpdateSampleQueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSampleQueryRequest.newBuilder() to construct. + private UpdateSampleQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSampleQueryRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSampleQueryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest.Builder.class); + } + + private int bitField0_; + public static final int SAMPLE_QUERY_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.SampleQuery sampleQuery_; + /** + * + * + *
      +   * Required. The simple query to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuery field is set. + */ + @java.lang.Override + public boolean hasSampleQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Required. The simple query to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuery. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQuery() { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + /** + * + * + *
      +   * Required. The simple query to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder getSampleQueryOrBuilder() { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
      +   * Indicates which fields in the provided imported 'simple query' to update.
      +   * If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * Indicates which fields in the provided imported 'simple query' to update.
      +   * If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
      +   * Indicates which fields in the provided imported 'simple query' to update.
      +   * If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSampleQuery()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSampleQuery()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest other = + (com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest) obj; + + if (hasSampleQuery() != other.hasSampleQuery()) return false; + if (hasSampleQuery()) { + if (!getSampleQuery().equals(other.getSampleQuery())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSampleQuery()) { + hash = (37 * hash) + SAMPLE_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuery().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQueryService.UpdateSampleQuery][google.cloud.discoveryengine.v1beta.SampleQueryService.UpdateSampleQuery]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest) + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest.class, + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSampleQueryFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sampleQuery_ = null; + if (sampleQueryBuilder_ != null) { + sampleQueryBuilder_.dispose(); + sampleQueryBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQueryServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest build() { + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest result = + new com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sampleQuery_ = + sampleQueryBuilder_ == null ? sampleQuery_ : sampleQueryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest.getDefaultInstance()) + return this; + if (other.hasSampleQuery()) { + mergeSampleQuery(other.getSampleQuery()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSampleQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1beta.SampleQuery sampleQuery_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder> + sampleQueryBuilder_; + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuery field is set. + */ + public boolean hasSampleQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuery. + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQuery() { + if (sampleQueryBuilder_ == null) { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance() + : sampleQuery_; + } else { + return sampleQueryBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuery(com.google.cloud.discoveryengine.v1beta.SampleQuery value) { + if (sampleQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sampleQuery_ = value; + } else { + sampleQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuery( + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder builderForValue) { + if (sampleQueryBuilder_ == null) { + sampleQuery_ = builderForValue.build(); + } else { + sampleQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSampleQuery(com.google.cloud.discoveryengine.v1beta.SampleQuery value) { + if (sampleQueryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && sampleQuery_ != null + && sampleQuery_ + != com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance()) { + getSampleQueryBuilder().mergeFrom(value); + } else { + sampleQuery_ = value; + } + } else { + sampleQueryBuilder_.mergeFrom(value); + } + if (sampleQuery_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSampleQuery() { + bitField0_ = (bitField0_ & ~0x00000001); + sampleQuery_ = null; + if (sampleQueryBuilder_ != null) { + sampleQueryBuilder_.dispose(); + sampleQueryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder getSampleQueryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSampleQueryFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder getSampleQueryOrBuilder() { + if (sampleQueryBuilder_ != null) { + return sampleQueryBuilder_.getMessageOrBuilder(); + } else { + return sampleQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuery.getDefaultInstance() + : sampleQuery_; + } + } + /** + * + * + *
      +     * Required. The simple query to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +     *
      +     * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +     * update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder> + getSampleQueryFieldBuilder() { + if (sampleQueryBuilder_ == null) { + sampleQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuery, + com.google.cloud.discoveryengine.v1beta.SampleQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder>( + getSampleQuery(), getParentForChildren(), isClean()); + sampleQuery_ = null; + } + return sampleQueryBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'simple query' to update.
      +     * If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest) + private static final com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSampleQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSampleQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSampleQueryRequestOrBuilder.java new file mode 100644 index 000000000000..74bd2c215b5f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSampleQueryRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface UpdateSampleQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The simple query to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuery field is set. + */ + boolean hasSampleQuery(); + /** + * + * + *
      +   * Required. The simple query to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuery. + */ + com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQuery(); + /** + * + * + *
      +   * Required. The simple query to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
      +   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      +   *
      +   * If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to
      +   * update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder getSampleQueryOrBuilder(); + + /** + * + * + *
      +   * Indicates which fields in the provided imported 'simple query' to update.
      +   * If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
      +   * Indicates which fields in the provided imported 'simple query' to update.
      +   * If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
      +   * Indicates which fields in the provided imported 'simple query' to update.
      +   * If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSampleQuerySetRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSampleQuerySetRequest.java new file mode 100644 index 000000000000..3b062289c2bd --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSampleQuerySetRequest.java @@ -0,0 +1,1140 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
      + * Request message for
      + * [SampleQuerySetService.UpdateSampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySetService.UpdateSampleQuerySet]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest} + */ +public final class UpdateSampleQuerySetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest) + UpdateSampleQuerySetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSampleQuerySetRequest.newBuilder() to construct. + private UpdateSampleQuerySetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSampleQuerySetRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSampleQuerySetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest.Builder.class); + } + + private int bitField0_; + public static final int SAMPLE_QUERY_SET_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.SampleQuerySet sampleQuerySet_; + /** + * + * + *
      +   * Required. The sample query set to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +   * to update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuerySet field is set. + */ + @java.lang.Override + public boolean hasSampleQuerySet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Required. The sample query set to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +   * to update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuerySet. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet getSampleQuerySet() { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } + /** + * + * + *
      +   * Required. The sample query set to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +   * to update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder + getSampleQuerySetOrBuilder() { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
      +   * Indicates which fields in the provided imported 'sample query set' to
      +   * update. If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * Indicates which fields in the provided imported 'sample query set' to
      +   * update. If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
      +   * Indicates which fields in the provided imported 'sample query set' to
      +   * update. If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSampleQuerySet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSampleQuerySet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest other = + (com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest) obj; + + if (hasSampleQuerySet() != other.hasSampleQuerySet()) return false; + if (hasSampleQuerySet()) { + if (!getSampleQuerySet().equals(other.getSampleQuerySet())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSampleQuerySet()) { + hash = (37 * hash) + SAMPLE_QUERY_SET_FIELD_NUMBER; + hash = (53 * hash) + getSampleQuerySet().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
      +   * Request message for
      +   * [SampleQuerySetService.UpdateSampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySetService.UpdateSampleQuerySet]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest) + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQuerySetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest.class, + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSampleQuerySetFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sampleQuerySet_ = null; + if (sampleQuerySetBuilder_ != null) { + sampleQuerySetBuilder_.dispose(); + sampleQuerySetBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateSampleQuerySetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest build() { + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest result = + new com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sampleQuerySet_ = + sampleQuerySetBuilder_ == null ? sampleQuerySet_ : sampleQuerySetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest + .getDefaultInstance()) return this; + if (other.hasSampleQuerySet()) { + mergeSampleQuerySet(other.getSampleQuerySet()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSampleQuerySetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1beta.SampleQuerySet sampleQuerySet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuerySet, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder> + sampleQuerySetBuilder_; + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * to update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuerySet field is set. + */ + public boolean hasSampleQuerySet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * to update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuerySet. + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet getSampleQuerySet() { + if (sampleQuerySetBuilder_ == null) { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } else { + return sampleQuerySetBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * to update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuerySet(com.google.cloud.discoveryengine.v1beta.SampleQuerySet value) { + if (sampleQuerySetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sampleQuerySet_ = value; + } else { + sampleQuerySetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * to update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder builderForValue) { + if (sampleQuerySetBuilder_ == null) { + sampleQuerySet_ = builderForValue.build(); + } else { + sampleQuerySetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * to update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSampleQuerySet( + com.google.cloud.discoveryengine.v1beta.SampleQuerySet value) { + if (sampleQuerySetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && sampleQuerySet_ != null + && sampleQuerySet_ + != com.google.cloud.discoveryengine.v1beta.SampleQuerySet.getDefaultInstance()) { + getSampleQuerySetBuilder().mergeFrom(value); + } else { + sampleQuerySet_ = value; + } + } else { + sampleQuerySetBuilder_.mergeFrom(value); + } + if (sampleQuerySet_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * to update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSampleQuerySet() { + bitField0_ = (bitField0_ & ~0x00000001); + sampleQuerySet_ = null; + if (sampleQuerySetBuilder_ != null) { + sampleQuerySetBuilder_.dispose(); + sampleQuerySetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * to update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder + getSampleQuerySetBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSampleQuerySetFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * to update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder + getSampleQuerySetOrBuilder() { + if (sampleQuerySetBuilder_ != null) { + return sampleQuerySetBuilder_.getMessageOrBuilder(); + } else { + return sampleQuerySet_ == null + ? com.google.cloud.discoveryengine.v1beta.SampleQuerySet.getDefaultInstance() + : sampleQuerySet_; + } + } + /** + * + * + *
      +     * Required. The sample query set to update.
      +     *
      +     * If the caller does not have permission to update the
      +     * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +     * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +     * returned.
      +     *
      +     * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +     * to update does not exist a `NOT_FOUND` error is returned.
      +     * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuerySet, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder> + getSampleQuerySetFieldBuilder() { + if (sampleQuerySetBuilder_ == null) { + sampleQuerySetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SampleQuerySet, + com.google.cloud.discoveryengine.v1beta.SampleQuerySet.Builder, + com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder>( + getSampleQuerySet(), getParentForChildren(), isClean()); + sampleQuerySet_ = null; + } + return sampleQuerySetBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
      +     * Indicates which fields in the provided imported 'sample query set' to
      +     * update. If not set, will by default update all fields.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest) + private static final com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSampleQuerySetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSampleQuerySetRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSampleQuerySetRequestOrBuilder.java new file mode 100644 index 000000000000..02135766c363 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSampleQuerySetRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.discoveryengine.v1beta; + +public interface UpdateSampleQuerySetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The sample query set to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +   * to update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleQuerySet field is set. + */ + boolean hasSampleQuerySet(); + /** + * + * + *
      +   * Required. The sample query set to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +   * to update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleQuerySet. + */ + com.google.cloud.discoveryengine.v1beta.SampleQuerySet getSampleQuerySet(); + /** + * + * + *
      +   * Required. The sample query set to update.
      +   *
      +   * If the caller does not have permission to update the
      +   * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet],
      +   * regardless of whether or not it exists, a `PERMISSION_DENIED` error is
      +   * returned.
      +   *
      +   * If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
      +   * to update does not exist a `NOT_FOUND` error is returned.
      +   * 
      + * + * + * .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder getSampleQuerySetOrBuilder(); + + /** + * + * + *
      +   * Indicates which fields in the provided imported 'sample query set' to
      +   * update. If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
      +   * Indicates which fields in the provided imported 'sample query set' to
      +   * update. If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
      +   * Indicates which fields in the provided imported 'sample query set' to
      +   * update. If not set, will by default update all fields.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java index f877ebfef8ce..be9c239bddd2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java @@ -52,56 +52,69 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "le/api/field_behavior.proto\032\031google/api/" + "httpbody.proto\032\031google/api/resource.prot" + "o\0327google/cloud/discoveryengine/v1beta/i" - + "mport_config.proto\0324google/cloud/discove" - + "ryengine/v1beta/user_event.proto\032#google" - + "/longrunning/operations.proto\"\313\001\n\025WriteU" - + "serEventRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n" - + "(discoveryengine.googleapis.com/DataStor" - + "e\022L\n\nuser_event\030\002 \001(\0132..google.cloud.dis" - + "coveryengine.v1beta.UserEventB\003\340A\002H\000\210\001\001\022" - + "\023\n\013write_async\030\003 \001(\010B\r\n\013_user_event\"\250\001\n\027" - + "CollectUserEventRequest\022@\n\006parent\030\001 \001(\tB" - + "0\340A\002\372A*\n(discoveryengine.googleapis.com/" - + "DataStore\022\027\n\nuser_event\030\002 \001(\tB\003\340A\002\022\020\n\003ur" - + "i\030\003 \001(\tH\000\210\001\001\022\020\n\003ets\030\004 \001(\003H\001\210\001\001B\006\n\004_uriB\006" - + "\n\004_ets2\243\t\n\020UserEventService\022\204\003\n\016WriteUse" - + "rEvent\022:.google.cloud.discoveryengine.v1" - + "beta.WriteUserEventRequest\032..google.clou" - + "d.discoveryengine.v1beta.UserEvent\"\205\002\202\323\344" - + "\223\002\376\001\"E/v1beta/{parent=projects/*/locatio" - + "ns/*/dataStores/*}/userEvents:write:\nuse" - + "r_eventZa\"S/v1beta/{parent=projects/*/lo" - + "cations/*/collections/*/dataStores/*}/us" - + "erEvents:write:\nuser_eventZF\"8/v1beta/{p" - + "arent=projects/*/locations/*}/userEvents" - + ":write:\nuser_event\022\222\002\n\020CollectUserEvent\022" - + "<.google.cloud.discoveryengine.v1beta.Co" - + "llectUserEventRequest\032\024.google.api.HttpB" - + "ody\"\251\001\202\323\344\223\002\242\001\022G/v1beta/{parent=projects/" - + "*/locations/*/dataStores/*}/userEvents:c" - + "ollectZW\022U/v1beta/{parent=projects/*/loc" - + "ations/*/collections/*/dataStores/*}/use" - + "rEvents:collect\022\236\003\n\020ImportUserEvents\022<.g" - + "oogle.cloud.discoveryengine.v1beta.Impor" - + "tUserEventsRequest\032\035.google.longrunning." - + "Operation\"\254\002\312A|\n user_labels = 13; } // Response message for @@ -793,8 +818,10 @@ message AnswerQueryRequest { // method. message AnswerQueryResponse { // Answer resource object. - // If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1, - // use [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch + // If + // [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps] + // is greater than 1, use + // [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch // answer information using // [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer] // API. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto index 165d28032d48..cfe0ea1a9a71 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto @@ -56,6 +56,9 @@ message CustomTuningModel { // The model training failed. TRAINING_FAILED = 5; + + // The model training finished successfully but metrics did not improve. + NO_IMPROVEMENT = 6; } // Required. The fully qualified resource name of the model. @@ -80,8 +83,11 @@ message CustomTuningModel { ModelState model_state = 4; // Timestamp the Model was created at. - google.protobuf.Timestamp create_time = 5; + google.protobuf.Timestamp create_time = 5 [deprecated = true]; // Timestamp the model training was initiated. google.protobuf.Timestamp training_start_time = 6; + + // The metrics of the trained model. + map metrics = 7; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store.proto index f45585131f03..d581d9767244 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store.proto @@ -98,6 +98,9 @@ message DataStore { google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Language info for DataStore. + LanguageInfo language_info = 14; + // Configuration for Document understanding and enrichment. DocumentProcessingConfig document_processing_config = 27; @@ -118,3 +121,23 @@ message DataStore { // doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). Schema starting_schema = 28; } + +// Language info for DataStore. +message LanguageInfo { + // The language code for the DataStore. + string language_code = 1; + + // Output only. This is the normalized form of language_code. + // E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb` + // will have normalized_language_code of `en-GB`. + string normalized_language_code = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Language part of normalized_language_code. + // E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`. + string language = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Region part of normalized_language_code, if present. + // E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``. + string region = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store_service.proto index 6709fe6f1a60..0dc197dbb5ec 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store_service.proto @@ -152,6 +152,16 @@ message CreateDataStoreRequest { // search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will // be ignored. bool create_advanced_site_search = 4; + + // A boolean flag indicating whether to skip the default schema creation for + // the data store. Only enable this flag if you are certain that the default + // schema is incompatible with your use case. + // + // If set to true, you must manually create a schema for the data store before + // any documents can be ingested. + // + // This flag cannot be specified if `data_store.starting_schema` is specified. + bool skip_default_schema_creation = 7; } // Request message for diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto index 2e8f82f036b5..3d4e5379062c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto @@ -54,7 +54,7 @@ message Document { // The URI of the content. Only Cloud Storage URIs (e.g. // `gs://bucket-name/path/to/file`) are supported. The maximum file size - // is 2.5 MB for text-based formats, 100 MB for other formats. + // is 2.5 MB for text-based formats, 200 MB for other formats. string uri = 3; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_processing_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_processing_config.proto index eb1ef031ad91..c7a6458a2bd7 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_processing_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_processing_config.proto @@ -41,6 +41,30 @@ message DocumentProcessingConfig { pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig" }; + // Configuration for chunking config. + message ChunkingConfig { + // Configuration for the layout based chunking. + message LayoutBasedChunkingConfig { + // The token size limit for each chunk. + // + // Supported values: 100-500 (inclusive). + // Default value: 500. + int32 chunk_size = 1; + + // Whether to include appending different levels of headings to chunks + // from the middle of the document to prevent context loss. + // + // Default value: False. + bool include_ancestor_headings = 2; + } + + // Additional configs that defines the behavior of the chunking. + oneof chunk_mode { + // Configuration for the layout based chunking. + LayoutBasedChunkingConfig layout_based_chunking_config = 1; + } + } + // Related configurations applied to a specific type of document parser. message ParsingConfig { // The digital parsing configurations for documents. @@ -57,6 +81,9 @@ message DocumentProcessingConfig { bool use_native_text = 2; } + // The layout parsing configurations for documents. + message LayoutParsingConfig {} + // Configs for document processing types. oneof type_dedicated_config { // Configurations applied to digital parser. @@ -65,6 +92,9 @@ message DocumentProcessingConfig { // Configurations applied to OCR parser. Currently it only applies to // PDFs. OcrParsingConfig ocr_parsing_config = 2; + + // Configurations applied to layout parser. + LayoutParsingConfig layout_parsing_config = 3; } } @@ -73,6 +103,9 @@ message DocumentProcessingConfig { // `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. string name = 1; + // Whether chunking mode is enabled. + ChunkingConfig chunking_config = 3; + // Configurations for default Document parser. // If not specified, we will configure it as default DigitalParsingConfig, and // the default parsing config will be applied to all file types for Document @@ -85,8 +118,10 @@ message DocumentProcessingConfig { // * `pdf`: Override parsing config for PDF files, either digital parsing, ocr // parsing or layout parsing is supported. // * `html`: Override parsing config for HTML files, only digital parsing and - // or layout parsing are supported. + // layout parsing are supported. // * `docx`: Override parsing config for DOCX files, only digital parsing and - // or layout parsing are supported. + // layout parsing are supported. + // * `pptx`: Override parsing config for PPTX files, only digital parsing and + // layout parsing are supported. map parsing_config_overrides = 5; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/evaluation.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/evaluation.proto new file mode 100644 index 000000000000..a61db08586ff --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/evaluation.proto @@ -0,0 +1,231 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/search_service.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "EvaluationProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// An evaluation is a single execution (or run) of an evaluation process. It +// encapsulates the state of the evaluation and the resulting data. +message Evaluation { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/Evaluation" + pattern: "projects/{project}/locations/{location}/evaluations/{evaluation}" + }; + + // Describes the specification of the evaluation. + message EvaluationSpec { + // Describes the specification of the query set. + message QuerySetSpec { + // Required. The full resource name of the + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] + // used for the evaluation, in the format of + // `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + string sample_query_set = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuerySet" + } + ]; + } + + // The search specification. + oneof search_spec { + // Required. The search request that is used to perform the evaluation. + // + // Only the following fields within SearchRequest are supported; if any + // other fields are provided, an UNSUPPORTED error will be returned: + // + // * [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config] + // * [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch] + // * [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter] + // * [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec] + // * [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec] + // * [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec] + // * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id] + SearchRequest search_request = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. The specification of the query set. + QuerySetSpec query_set_spec = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Describes the state of an evaluation. + enum State { + // The evaluation is unspecified. + STATE_UNSPECIFIED = 0; + + // The service is preparing to run the evaluation. + PENDING = 1; + + // The evaluation is in progress. + RUNNING = 2; + + // The evaluation completed successfully. + SUCCEEDED = 3; + + // The evaluation failed. + FAILED = 4; + } + + // Identifier. The full resource name of the + // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], in the format + // of `projects/{project}/locations/{location}/evaluations/{evaluation}`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The specification of the evaluation. + EvaluationSpec evaluation_spec = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The metrics produced by the evaluation, averaged across all + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s in the + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + // + // Only populated when the evaluation's state is SUCCEEDED. + QualityMetrics quality_metrics = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the evaluation. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error that occurred during evaluation. Only populated when + // the evaluation's state is FAILED. + google.rpc.Status error = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp the + // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was created + // at. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp the + // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] was completed + // at. + google.protobuf.Timestamp end_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A sample of errors encountered while processing the request. + repeated google.rpc.Status error_samples = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Describes the metrics produced by the evaluation. +message QualityMetrics { + // Stores the metric values at specific top-k levels. + message TopkMetrics { + // The top-1 value. + double top_1 = 1; + + // The top-3 value. + double top_3 = 2; + + // The top-5 value. + double top_5 = 3; + + // The top-10 value. + double top_10 = 4; + } + + // Recall per document, at various top-k cutoff levels. + // + // Recall is the fraction of relevant documents retrieved out of all + // relevant documents. + // + // Example (top-5): + // * For a single + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 3 out + // of 5 relevant documents are retrieved in the top-5, recall@5 = 3/5 = 0.6 + TopkMetrics doc_recall = 1; + + // Precision per document, at various top-k cutoff levels. + // + // Precision is the fraction of retrieved documents that are relevant. + // + // Example (top-5): + // * For a single + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], If 4 out + // of 5 retrieved documents in the top-5 are relevant, precision@5 = 4/5 = + // 0.8 + TopkMetrics doc_precision = 2; + + // Normalized discounted cumulative gain (NDCG) per document, at various top-k + // cutoff levels. + // + // NDCG measures the ranking quality, giving higher relevance to top + // results. + // + // Example (top-3): + // Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] + // with three retrieved documents (D1, D2, D3) and binary relevance + // judgements (1 for relevant, 0 for not relevant): + // + // Retrieved: [D3 (0), D1 (1), D2 (1)] + // Ideal: [D1 (1), D2 (1), D3 (0)] + // + // Calculate NDCG@3 for each + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]: + // * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13 + // * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63 + // * NDCG@3: 1.13/1.63 = 0.693 + TopkMetrics doc_ndcg = 3; + + // Recall per page, at various top-k cutoff levels. + // + // Recall is the fraction of relevant pages retrieved out of all relevant + // pages. + // + // Example (top-5): + // * For a single + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], if 3 out + // of 5 relevant pages are retrieved in the top-5, recall@5 = 3/5 = 0.6 + TopkMetrics page_recall = 4; + + // Normalized discounted cumulative gain (NDCG) per page, at various top-k + // cutoff levels. + // + // NDCG measures the ranking quality, giving higher relevance to top + // results. + // + // Example (top-3): + // Suppose [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] + // with three retrieved pages (P1, P2, P3) and binary relevance judgements (1 + // for relevant, 0 for not relevant): + // + // Retrieved: [P3 (0), P1 (1), P2 (1)] + // Ideal: [P1 (1), P2 (1), P3 (0)] + // + // Calculate NDCG@3 for + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]: + // * DCG@3: 0/log2(1+1) + 1/log2(2+1) + 1/log2(3+1) = 1.13 + // * Ideal DCG@3: 1/log2(1+1) + 1/log2(2+1) + 0/log2(3+1) = 1.63 + // * NDCG@3: 1.13/1.63 = 0.693 + TopkMetrics page_ndcg = 5; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/evaluation_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/evaluation_service.proto new file mode 100644 index 000000000000..0a7a5dec8007 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/evaluation_service.proto @@ -0,0 +1,252 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/evaluation.proto"; +import "google/cloud/discoveryengine/v1beta/sample_query.proto"; +import "google/longrunning/operations.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "EvaluationServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Service for managing +// [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s, +service EvaluationService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + rpc GetEvaluation(GetEvaluationRequest) returns (Evaluation) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/evaluations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets a list of + // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s. + rpc ListEvaluations(ListEvaluationsRequest) + returns (ListEvaluationsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*}/evaluations" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + // + // Upon creation, the evaluation will be automatically triggered and begin + // execution. + rpc CreateEvaluation(CreateEvaluationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*}/evaluations" + body: "evaluation" + }; + option (google.api.method_signature) = "parent,evaluation"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1beta.Evaluation" + metadata_type: "google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata" + }; + } + + // Gets a list of results for a given a + // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. + rpc ListEvaluationResults(ListEvaluationResultsRequest) + returns (ListEvaluationResultsResponse) { + option (google.api.http) = { + get: "/v1beta/{evaluation=projects/*/locations/*/evaluations/*}:listResults" + }; + option (google.api.method_signature) = "evaluation"; + } +} + +// Request message for +// [EvaluationService.GetEvaluation][google.cloud.discoveryengine.v1beta.EvaluationService.GetEvaluation] +// method. +message GetEvaluationRequest { + // Required. Full resource name of + // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], such as + // `projects/{project}/locations/{location}/evaluations/{evaluation}`. + // + // If the caller does not have permission to access the + // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], regardless of + // whether or not it exists, a PERMISSION_DENIED error is returned. + // + // If the requested + // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] does not + // exist, a NOT_FOUND error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Evaluation" + } + ]; +} + +// Request message for +// [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations] +// method. +message ListEvaluationsRequest { + // Required. The parent location resource name, such as + // `projects/{project}/locations/{location}`. + // + // If the caller does not have permission to list + // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s under this + // location, regardless of whether or not this location exists, a + // `PERMISSION_DENIED` error is returned. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Maximum number of + // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s to return. If + // unspecified, defaults to 100. The maximum allowed value is 1000. Values + // above 1000 will be coerced to 1000. + // + // If this field is negative, an `INVALID_ARGUMENT` error is returned. + int32 page_size = 2; + + // A page token + // [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token], + // received from a previous + // [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations] + // must match the call that provided the page token. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string page_token = 3; +} + +// Response message for +// [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations] +// method. +message ListEvaluationsResponse { + // The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s. + repeated Evaluation evaluations = 1; + + // A token that can be sent as + // [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [EvaluationService.CreateEvaluation][google.cloud.discoveryengine.v1beta.EvaluationService.CreateEvaluation] +// method. +message CreateEvaluationRequest { + // Required. The parent resource name, such as + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] + // to create. + Evaluation evaluation = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Metadata for +// [EvaluationService.CreateEvaluation][google.cloud.discoveryengine.v1beta.EvaluationService.CreateEvaluation] +// method. +message CreateEvaluationMetadata {} + +// Request message for +// [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults] +// method. +message ListEvaluationResultsRequest { + // Required. The evaluation resource name, such as + // `projects/{project}/locations/{location}/evaluations/{evaluation}`. + // + // If the caller does not have permission to list [EvaluationResult][] + // under this evaluation, regardless of whether or not this evaluation + // set exists, a `PERMISSION_DENIED` error is returned. + string evaluation = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Evaluation" + } + ]; + + // Maximum number of [EvaluationResult][] to return. If unspecified, + // defaults to 100. The maximum allowed value is 1000. Values above 1000 will + // be coerced to 1000. + // + // If this field is negative, an `INVALID_ARGUMENT` error is returned. + int32 page_size = 2; + + // A page token + // [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token], + // received from a previous + // [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults] + // must match the call that provided the page token. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string page_token = 3; +} + +// Response message for +// [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults] +// method. +message ListEvaluationResultsResponse { + // Represents the results of an evaluation for a single + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + message EvaluationResult { + // Output only. The + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was + // evaluated. + SampleQuery sample_query = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The metrics produced by the evaluation, for a given + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + QualityMetrics quality_metrics = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The + // [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s. + repeated EvaluationResult evaluation_results = 1; + + // A token that can be sent as + // [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto index 22c064010516..8ba4b0bbf86b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1beta/completion.proto"; import "google/cloud/discoveryengine/v1beta/document.proto"; +import "google/cloud/discoveryengine/v1beta/sample_query.proto"; import "google/cloud/discoveryengine/v1beta/user_event.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -326,6 +327,38 @@ message CloudSqlSource { bool offload = 6; } +// AlloyDB source import data from. +message AlloyDbSource { + // The project ID that the AlloyDB source is in + // with a length limit of 128 characters. If not specified, inherits the + // project ID from the parent request. + string project_id = 1; + + // Required. The AlloyDB location to copy the data from with a length limit of + // 256 characters. + string location_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The AlloyDB cluster to copy the data from with a length limit of + // 256 characters. + string cluster_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The AlloyDB database to copy the data from with a length limit of + // 256 characters. + string database_id = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The AlloyDB table to copy the data from with a length limit of + // 256 characters. + string table_id = 5 [(google.api.field_behavior) = REQUIRED]; + + // Intermediate Cloud Storage directory used for the import with a length + // limit of 2,000 characters. Can be specified if one wants to have the + // AlloyDB export to a specific Cloud Storage directory. + // + // Ensure that the AlloyDB service account has the necessary Cloud + // Storage Admin permissions to access the specified Cloud Storage directory. + string gcs_staging_dir = 6; +} + // Firestore source import data from. message FirestoreSource { // The project ID that the Cloud SQL source is in with a length limit of 128 @@ -499,6 +532,9 @@ message ImportDocumentsRequest { // Firestore input source. FirestoreSource firestore_source = 13; + // AlloyDB input source. + AlloyDbSource alloy_db_source = 14; + // Cloud Bigtable input source. BigtableSource bigtable_source = 15; } @@ -663,3 +699,158 @@ message ImportSuggestionDenyListEntriesMetadata { // finish time. google.protobuf.Timestamp update_time = 2; } + +// Request message for +// [CompletionService.ImportCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.ImportCompletionSuggestions] +// method. +message ImportCompletionSuggestionsRequest { + // The inline source for CompletionSuggestions. + message InlineSource { + // Required. A list of all denylist entries to import. Max of 1000 items. + repeated CompletionSuggestion suggestions = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // The source of the autocomplete suggestions. + oneof source { + // The Inline source for suggestion entries. + InlineSource inline_source = 2; + + // Cloud Storage location for the input content. + GcsSource gcs_source = 3; + + // BigQuery input source. + BigQuerySource bigquery_source = 4; + } + + // Required. The parent data store resource name for which to import customer + // autocomplete suggestions. + // + // Follows pattern `projects/*/locations/*/collections/*/dataStores/*` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + + // The desired location of errors incurred during the Import. + ImportErrorConfig error_config = 5; +} + +// Response of the +// [CompletionService.ImportCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.ImportCompletionSuggestions] +// method. If the long running operation is done, this message is returned by +// the google.longrunning.Operations.response field if the operation is +// successful. +message ImportCompletionSuggestionsResponse { + // A sample of errors encountered while processing the request. + repeated google.rpc.Status error_samples = 1; + + // The desired location of errors incurred during the Import. + ImportErrorConfig error_config = 2; +} + +// Metadata related to the progress of the ImportCompletionSuggestions +// operation. This will be returned by the google.longrunning.Operation.metadata +// field. +message ImportCompletionSuggestionsMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; + + // Count of + // [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s + // successfully imported. + int64 success_count = 3; + + // Count of + // [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s + // that failed to be imported. + int64 failure_count = 4; +} + +// Request message for +// [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ImportSampleQueries] +// method. +message ImportSampleQueriesRequest { + // The inline source for + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. + message InlineSource { + // Required. A list of + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to + // import. Max of 1000 items. + repeated SampleQuery sample_queries = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // The source of the sample queries. + oneof source { + // The Inline source for sample query entries. + InlineSource inline_source = 2; + + // Cloud Storage location for the input content. + GcsSource gcs_source = 3; + + // BigQuery input source. + BigQuerySource bigquery_source = 4; + } + + // Required. The parent sample query set resource name, such as + // `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + // + // If the caller does not have permission to list + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this + // sample query set, regardless of whether or not this sample query set + // exists, a `PERMISSION_DENIED` error is returned. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuerySet" + } + ]; + + // The desired location of errors incurred during the Import. + ImportErrorConfig error_config = 5; +} + +// Response of the +// [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ImportSampleQueries] +// method. If the long running operation is done, this message is returned by +// the google.longrunning.Operations.response field if the operation is +// successful. +message ImportSampleQueriesResponse { + // A sample of errors encountered while processing the request. + repeated google.rpc.Status error_samples = 1; + + // The desired location of errors incurred during the Import. + ImportErrorConfig error_config = 2; +} + +// Metadata related to the progress of the ImportSampleQueries +// operation. This will be returned by the google.longrunning.Operation.metadata +// field. +message ImportSampleQueriesMetadata { + // ImportSampleQueries operation create time. + google.protobuf.Timestamp create_time = 1; + + // ImportSampleQueries operation last update time. If the operation is done, + // this is also the finish time. + google.protobuf.Timestamp update_time = 2; + + // Count of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s + // successfully imported. + int64 success_count = 3; + + // Count of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s + // that failed to be imported. + int64 failure_count = 4; + + // Total count of + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s that were + // processed. + int64 total_count = 5; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto index 7c7550bf4190..753d6ade143e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto @@ -30,6 +30,79 @@ option objc_class_prefix = "DISCOVERYENGINE"; option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; +// Request message for PurgeUserEvents method. +message PurgeUserEventsRequest { + // Required. The resource name of the catalog under which the events are + // created. The format is + // `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + + // Required. The filter string to specify the events to be deleted with a + // length limit of 5,000 characters. The eligible fields for filtering are: + // + // * `eventType`: Double quoted + // [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type] + // string. + // * `eventTime`: in ISO 8601 "zulu" format. + // * `userPseudoId`: Double quoted string. Specifying this will delete all + // events associated with a visitor. + // * `userId`: Double quoted string. Specifying this will delete all events + // associated with a user. + // + // Examples: + // + // * Deleting all events in a time range: + // `eventTime > "2012-04-23T18:25:43.511Z" + // eventTime < "2012-04-23T18:30:43.511Z"` + // * Deleting specific eventType: + // `eventType = "search"` + // * Deleting all events for a specific visitor: + // `userPseudoId = "visitor1024"` + // * Deleting all events inside a DataStore: + // `*` + // + // The filtering fields are assumed to have an implicit AND. + string filter = 2 [(google.api.field_behavior) = REQUIRED]; + + // The `force` field is currently not supported. Purge user event requests + // will permanently delete all purgeable events. Once the development is + // complete: + // If `force` is set to false, the method will return the expected + // purge count without deleting any user events. This field will default to + // false if not included in the request. + bool force = 3; +} + +// Response of the PurgeUserEventsRequest. If the long running operation is +// successfully done, then this message is returned by the +// google.longrunning.Operations.response field. +message PurgeUserEventsResponse { + // The total count of events purged as a result of the operation. + int64 purge_count = 1; +} + +// Metadata related to the progress of the PurgeUserEvents operation. +// This will be returned by the google.longrunning.Operation.metadata field. +message PurgeUserEventsMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; + + // Count of entries that were deleted successfully. + int64 success_count = 3; + + // Count of entries that encountered errors while processing. + int64 failure_count = 4; +} + // Request message for // [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1beta.DocumentService.PurgeDocuments] // method. @@ -125,3 +198,41 @@ message PurgeSuggestionDenyListEntriesMetadata { // finish time. google.protobuf.Timestamp update_time = 2; } + +// Request message for +// [CompletionService.PurgeCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.PurgeCompletionSuggestions] +// method. +message PurgeCompletionSuggestionsRequest { + // Required. The parent data store resource name for which to purge completion + // suggestions. Follows pattern + // projects/*/locations/*/collections/*/dataStores/*. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; +} + +// Response message for +// [CompletionService.PurgeCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.PurgeCompletionSuggestions] +// method. +message PurgeCompletionSuggestionsResponse { + // Whether the completion suggestions were successfully purged. + bool purge_succeeded = 1; + + // A sample of errors encountered while processing the request. + repeated google.rpc.Status error_samples = 2; +} + +// Metadata related to the progress of the PurgeCompletionSuggestions +// operation. This is returned by the google.longrunning.Operation.metadata +// field. +message PurgeCompletionSuggestionsMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query.proto new file mode 100644 index 000000000000..5c2d70b5ed92 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query.proto @@ -0,0 +1,86 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "SampleQueryProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Sample Query captures metadata to be used for evaluation. +message SampleQuery { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/SampleQuery" + pattern: "projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}" + }; + + // Query Entry captures metadata to be used for search evaluation. + message QueryEntry { + // Defines the parameters of the query's expected outcome. + message Target { + // Expected uri of the target. + // + // This field must be a UTF-8 encoded string with a length limit of 2048 + // characters. + // + // Example of valid uris: `https://example.com/abc`, + // `gcs://example/example.pdf`. + string uri = 1; + + // Expected page numbers of the target. + // + // Each page number must be non negative. + repeated int32 page_numbers = 2; + + // Relevance score of the target. + optional double score = 3; + } + + // Required. The query. + string query = 1 [(google.api.field_behavior) = REQUIRED]; + + // List of targets for the query. + repeated Target targets = 3; + } + + // The content of the sample query. + oneof content { + // The query entry. + QueryEntry query_entry = 2; + } + + // Identifier. The full resource name of the sample query, in the format of + // `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Timestamp the + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created + // at. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_service.proto new file mode 100644 index 000000000000..d7fc538b190e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_service.proto @@ -0,0 +1,264 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/import_config.proto"; +import "google/cloud/discoveryengine/v1beta/sample_query.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "SampleQueryServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Service for managing +// [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s, +service SampleQueryService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + rpc GetSampleQuery(GetSampleQueryRequest) returns (SampleQuery) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/sampleQueries/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets a list of + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. + rpc ListSampleQueries(ListSampleQueriesRequest) + returns (ListSampleQueriesResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*/sampleQuerySets/*}/sampleQueries" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] + rpc CreateSampleQuery(CreateSampleQueryRequest) returns (SampleQuery) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*/sampleQuerySets/*}/sampleQueries" + body: "sample_query" + }; + option (google.api.method_signature) = + "parent,sample_query,sample_query_id"; + } + + // Updates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + rpc UpdateSampleQuery(UpdateSampleQueryRequest) returns (SampleQuery) { + option (google.api.http) = { + patch: "/v1beta/{sample_query.name=projects/*/locations/*/sampleQuerySets/*/sampleQueries/*}" + body: "sample_query" + }; + option (google.api.method_signature) = "sample_query,update_mask"; + } + + // Deletes a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. + rpc DeleteSampleQuery(DeleteSampleQueryRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/sampleQueries/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Bulk import of multiple + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. Sample + // queries that already exist may be deleted. + // + // Note: It is possible for a subset of the + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to be + // successfully imported. + rpc ImportSampleQueries(ImportSampleQueriesRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*/sampleQuerySets/*}/sampleQueries:import" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse" + metadata_type: "google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata" + }; + } +} + +// Request message for +// [SampleQueryService.GetSampleQuery][google.cloud.discoveryengine.v1beta.SampleQueryService.GetSampleQuery] +// method. +message GetSampleQueryRequest { + // Required. Full resource name of + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as + // `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`. + // + // If the caller does not have permission to access the + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless + // of whether or not it exists, a PERMISSION_DENIED error is returned. + // + // If the requested + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] does not + // exist, a NOT_FOUND error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuery" + } + ]; +} + +// Request message for +// [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries] +// method. +message ListSampleQueriesRequest { + // Required. The parent sample query set resource name, such as + // `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + // + // If the caller does not have permission to list + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this + // sample query set, regardless of whether or not this sample query set + // exists, a `PERMISSION_DENIED` error is returned. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuerySet" + } + ]; + + // Maximum number of + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to return. + // If unspecified, defaults to 100. The maximum allowed value is 1000. Values + // above 1000 will be coerced to 1000. + // + // If this field is negative, an `INVALID_ARGUMENT` error is returned. + int32 page_size = 2; + + // A page token + // [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse.next_page_token], + // received from a previous + // [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries] + // must match the call that provided the page token. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string page_token = 3; +} + +// Response message for +// [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries] +// method. +message ListSampleQueriesResponse { + // The [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. + repeated SampleQuery sample_queries = 1; + + // A token that can be sent as + // [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [SampleQueryService.CreateSampleQuery][google.cloud.discoveryengine.v1beta.SampleQueryService.CreateSampleQuery] +// method. +message CreateSampleQueryRequest { + // Required. The parent resource name, such as + // `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuerySet" + } + ]; + + // Required. The + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create. + SampleQuery sample_query = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will + // become the final component of the + // [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name]. + // + // If the caller does not have permission to create the + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless + // of whether or not it exists, a `PERMISSION_DENIED` error is returned. + // + // This field must be unique among all + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the + // same + // [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent]. + // Otherwise, an `ALREADY_EXISTS` error is returned. + // + // This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) + // standard with a length limit of 63 characters. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string sample_query_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [SampleQueryService.UpdateSampleQuery][google.cloud.discoveryengine.v1beta.SampleQueryService.UpdateSampleQuery] +// method. +message UpdateSampleQueryRequest { + // Required. The simple query to update. + // + // If the caller does not have permission to update the + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless + // of whether or not it exists, a `PERMISSION_DENIED` error is returned. + // + // If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to + // update does not exist a `NOT_FOUND` error is returned. + SampleQuery sample_query = 1 [(google.api.field_behavior) = REQUIRED]; + + // Indicates which fields in the provided imported 'simple query' to update. + // If not set, will by default update all fields. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for +// [SampleQueryService.DeleteSampleQuery][google.cloud.discoveryengine.v1beta.SampleQueryService.DeleteSampleQuery] +// method. +message DeleteSampleQueryRequest { + // Required. Full resource name of + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], such as + // `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`. + // + // If the caller does not have permission to delete the + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless + // of whether or not it exists, a `PERMISSION_DENIED` error is returned. + // + // If the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to + // delete does not exist, a `NOT_FOUND` error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuery" + } + ]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_set.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_set.proto new file mode 100644 index 000000000000..d8562a1dc011 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_set.proto @@ -0,0 +1,64 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "SampleQuerySetProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// A SampleQuerySet is the parent resource of SampleQuery, and contains the +// configurations shared by all SampleQuery under it. +message SampleQuerySet { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/SampleQuerySet" + pattern: "projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}" + }; + + // Identifier. The full resource name of the + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], in + // the format of + // `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The sample query set display name. + // + // This field must be a UTF-8 encoded string with a length limit of 128 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Timestamp the + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] was + // created at. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The description of the + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + string description = 4; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto new file mode 100644 index 000000000000..a2c0ceebe627 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto @@ -0,0 +1,256 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/sample_query_set.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "SampleQuerySetServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Service for managing +// [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s, +service SampleQuerySetService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets a + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + rpc GetSampleQuerySet(GetSampleQuerySetRequest) returns (SampleQuerySet) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets a list of + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s. + rpc ListSampleQuerySets(ListSampleQuerySetsRequest) + returns (ListSampleQuerySetsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*}/sampleQuerySets" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] + rpc CreateSampleQuerySet(CreateSampleQuerySetRequest) + returns (SampleQuerySet) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*}/sampleQuerySets" + body: "sample_query_set" + }; + option (google.api.method_signature) = + "parent,sample_query_set,sample_query_set_id"; + } + + // Updates a + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + rpc UpdateSampleQuerySet(UpdateSampleQuerySetRequest) + returns (SampleQuerySet) { + option (google.api.http) = { + patch: "/v1beta/{sample_query_set.name=projects/*/locations/*/sampleQuerySets/*}" + body: "sample_query_set" + }; + option (google.api.method_signature) = "sample_query_set,update_mask"; + } + + // Deletes a + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. + rpc DeleteSampleQuerySet(DeleteSampleQuerySetRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message for +// [SampleQuerySetService.GetSampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySetService.GetSampleQuerySet] +// method. +message GetSampleQuerySetRequest { + // Required. Full resource name of + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such + // as + // `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`. + // + // If the caller does not have permission to access the + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], + // regardless of whether or not it exists, a PERMISSION_DENIED error is + // returned. + // + // If the requested + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] does + // not exist, a NOT_FOUND error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuerySet" + } + ]; +} + +// Request message for +// [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets] +// method. +message ListSampleQuerySetsRequest { + // Required. The parent location resource name, such as + // `projects/{project}/locations/{location}`. + // + // If the caller does not have permission to list + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s under + // this location, regardless of whether or not this location exists, a + // `PERMISSION_DENIED` error is returned. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Maximum number of + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s to + // return. If unspecified, defaults to 100. The maximum allowed value is 1000. + // Values above 1000 will be coerced to 1000. + // + // If this field is negative, an `INVALID_ARGUMENT` error is returned. + int32 page_size = 2; + + // A page token + // [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse.next_page_token], + // received from a previous + // [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets] + // must match the call that provided the page token. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string page_token = 3; +} + +// Response message for +// [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets] +// method. +message ListSampleQuerySetsResponse { + // The [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s. + repeated SampleQuerySet sample_query_sets = 1; + + // A token that can be sent as + // [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [SampleQuerySetService.CreateSampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySetService.CreateSampleQuerySet] +// method. +message CreateSampleQuerySetRequest { + // Required. The parent resource name, such as + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Required. The + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] to + // create. + SampleQuerySet sample_query_set = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], which + // will become the final component of the + // [SampleQuerySet.name][google.cloud.discoveryengine.v1beta.SampleQuerySet.name]. + // + // If the caller does not have permission to create the + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], + // regardless of whether or not it exists, a `PERMISSION_DENIED` error is + // returned. + // + // This field must be unique among all + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s with + // the same + // [parent][google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest.parent]. + // Otherwise, an `ALREADY_EXISTS` error is returned. + // + // This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) + // standard with a length limit of 63 characters. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string sample_query_set_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [SampleQuerySetService.UpdateSampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySetService.UpdateSampleQuerySet] +// method. +message UpdateSampleQuerySetRequest { + // Required. The sample query set to update. + // + // If the caller does not have permission to update the + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], + // regardless of whether or not it exists, a `PERMISSION_DENIED` error is + // returned. + // + // If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] + // to update does not exist a `NOT_FOUND` error is returned. + SampleQuerySet sample_query_set = 1 [(google.api.field_behavior) = REQUIRED]; + + // Indicates which fields in the provided imported 'sample query set' to + // update. If not set, will by default update all fields. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for +// [SampleQuerySetService.DeleteSampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySetService.DeleteSampleQuerySet] +// method. +message DeleteSampleQuerySetRequest { + // Required. Full resource name of + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], such + // as + // `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`. + // + // If the caller does not have permission to delete the + // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet], + // regardless of whether or not it exists, a `PERMISSION_DENIED` error is + // returned. + // + // If the [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] + // to delete does not exist, a `NOT_FOUND` error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SampleQuerySet" + } + ]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto index 8112eb80302d..96b449f9f5da 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/chunk.proto"; import "google/cloud/discoveryengine/v1beta/common.proto"; import "google/cloud/discoveryengine/v1beta/document.proto"; import "google/protobuf/struct.proto"; @@ -70,8 +71,8 @@ message SearchRequest { } // A struct to define data stores to filter on in a search call and - // configurations for those data stores. A maximum of 1 DataStoreSpec per - // data_store is allowed. Otherwise, an `INVALID_ARGUMENT` error is returned. + // configurations for those data stores. Otherwise, an `INVALID_ARGUMENT` + // error is returned. message DataStoreSpec { // Required. Full resource name of // [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as @@ -150,6 +151,9 @@ message SearchRequest { // Maximum facet values that are returned for this facet. If // unspecified, defaults to 20. The maximum allowed value is 300. Values // above 300 are coerced to 300. + // For aggregation in healthcare search, when the [FacetKey.key] is + // "healthcare_aggregation_key", the limit will be overridden to + // 10,000 internally, regardless of the value set here. // // If this field is negative, an `INVALID_ARGUMENT` is returned. int32 limit = 2; @@ -445,8 +449,9 @@ message SearchRequest { // // At most 10 results for documents mode, or 50 for chunks mode, can be // used to generate a summary. The chunks mode is used when - // [SearchRequest.ContentSearchSpec.search_result_mode][] is set to - // [CHUNKS][SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. + // [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] + // is set to + // [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. int32 summary_result_count = 1; // Specifies whether to include citations in the summary. The default @@ -569,6 +574,37 @@ message SearchRequest { int32 num_next_segments = 5; } + // Specifies the chunk spec to be returned from the search response. + // Only available if the + // [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] + // is set to + // [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS] + message ChunkSpec { + // The number of previous chunks to be returned of the current chunk. The + // maximum allowed value is 3. + // If not specified, no previous chunks will be returned. + int32 num_previous_chunks = 1; + + // The number of next chunks to be returned of the current chunk. The + // maximum allowed value is 3. + // If not specified, no next chunks will be returned. + int32 num_next_chunks = 2; + } + + // Specifies the search result mode. If unspecified, the + // search result mode defaults to `DOCUMENTS`. + enum SearchResultMode { + // Default value. + SEARCH_RESULT_MODE_UNSPECIFIED = 0; + + // Returns documents in the search result. + DOCUMENTS = 1; + + // Returns chunks in the search result. Only available if the + // [DataStore.DocumentProcessingConfig.chunking_config][] is specified. + CHUNKS = 2; + } + // If `snippetSpec` is not specified, snippets are not included in the // search response. SnippetSpec snippet_spec = 1; @@ -580,6 +616,17 @@ message SearchRequest { // If there is no extractive_content_spec provided, there will be no // extractive answer in the search response. ExtractiveContentSpec extractive_content_spec = 3; + + // Specifies the search result mode. If unspecified, the + // search result mode defaults to `DOCUMENTS`. + SearchResultMode search_result_mode = 4; + + // Specifies the chunk spec to be returned from the search response. + // Only available if the + // [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] + // is set to + // [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS] + ChunkSpec chunk_spec = 5; } // The specification that uses customized query embedding vector to do @@ -598,6 +645,98 @@ message SearchRequest { repeated EmbeddingVector embedding_vectors = 1; } + // Specification to enable natural language understanding capabilities for + // search requests. + message NaturalLanguageQueryUnderstandingSpec { + // Enum describing under which condition filter extraction should occur. + enum FilterExtractionCondition { + // Server behavior defaults to [Condition.DISABLED][]. + CONDITION_UNSPECIFIED = 0; + + // Disables NL filter extraction. + DISABLED = 1; + + // Enables NL filter extraction. + ENABLED = 2; + } + + // The condition under which filter extraction should occur. + // Default to [Condition.DISABLED][]. + FilterExtractionCondition filter_extraction_condition = 1; + + // Field names used for location-based filtering, where geolocation filters + // are detected in natural language search queries. + // Only valid when the FilterExtractionCondition is set to `ENABLED`. + // + // If this field is set, it overrides the field names set in + // [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names]. + repeated string geo_search_query_detection_field_names = 2; + } + + // Specification for search as you type in search requests. + message SearchAsYouTypeSpec { + // Enum describing under which condition search as you type should occur. + enum Condition { + // Server behavior defaults to + // [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED]. + CONDITION_UNSPECIFIED = 0; + + // Disables Search As You Type. + DISABLED = 1; + + // Enables Search As You Type. + ENABLED = 2; + } + + // The condition under which search as you type should occur. + // Default to + // [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED]. + Condition condition = 1; + } + + // Session specification. + // + // Multi-turn Search feature is currently at private GA stage. Please use + // v1alpha or v1beta version instead before we launch this feature to public + // GA. Or ask for allowlisting through Google Support team. + message SessionSpec { + // If set, the search result gets stored to the "turn" specified by this + // query ID. + // + // Example: Let's say the session looks like this: + // session { + // name: ".../sessions/xxx" + // turns { + // query { text: "What is foo?" query_id: ".../questions/yyy" } + // answer: "Foo is ..." + // } + // turns { + // query { text: "How about bar then?" query_id: ".../questions/zzz" } + // } + // } + // + // The user can call /search API with a request like this: + // + // session: ".../sessions/xxx" + // session_spec { query_id: ".../questions/zzz" } + // + // Then, the API stores the search result, associated with the last turn. + // The stored search result can be used by a subsequent /answer API call + // (with the session ID and the query ID specified). Also, it is possible + // to call /search and /answer in parallel with the same session ID & query + // ID. + string query_id = 1; + + // The number of top search results to persist. The persisted search results + // can be used for the subsequent /answer api call. + // + // This field is simliar to the `summary_result_count` field in + // [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count]. + // + // At most 10 results for documents mode, or 50 for chunks mode. + optional int32 search_result_persistence_count = 2; + } + // Required. The resource name of the Search serving config, such as // `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, // or @@ -711,6 +850,19 @@ message SearchRequest { // is used to deduce `device_type` for analytics. UserInfo user_info = 21; + // The BCP-47 language code, such as "en-US" or "sr-Latn". For more + // information, see [Standard + // fields](https://cloud.google.com/apis/design/standard_fields). This field + // helps to better interpret the query. If a value isn't specified, the query + // language code is automatically detected, which may not be accurate. + string language_code = 35; + + // The Unicode country/region code (CLDR) of a location, such as "US" and + // "419". For more information, see [Standard + // fields](https://cloud.google.com/apis/design/standard_fields). If set, + // then results will be boosted based on the region_code provided. + string region_code = 36; + // Facet specifications for faceted search. If empty, no facets are returned. // // A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` @@ -782,20 +934,26 @@ message SearchRequest { // documents. This overrides // [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. // The ranking expression is a single function or multiple functions that are - // joint by "+". + // joined by "+". + // // * ranking_expression = function, { " + ", function }; + // // Supported functions: + // // * double * relevance_score // * double * dotProduct(embedding_field_path) + // // Function variables: - // `relevance_score`: pre-defined keywords, used for measure relevance + // + // * `relevance_score`: pre-defined keywords, used for measure relevance // between query and document. - // `embedding_field_path`: the document embedding field + // * `embedding_field_path`: the document embedding field // used with query embedding vector. - // `dotProduct`: embedding function between embedding_field_path and query + // * `dotProduct`: embedding function between embedding_field_path and query // embedding vector. // // Example ranking expression: + // // If document has an embedding field doc_embedding, the ranking expression // could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. string ranking_expression = 26; @@ -822,6 +980,51 @@ message SearchRequest { // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) // for more details. map user_labels = 22; + + // If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional + // natural language query understanding will be done. + NaturalLanguageQueryUnderstandingSpec + natural_language_query_understanding_spec = 28; + + // Search as you type configuration. Only supported for the + // [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA] + // vertical. + SearchAsYouTypeSpec search_as_you_type_spec = 31; + + // The session resource name. Optional. + // + // Session allows users to do multi-turn /search API calls or coordination + // between /search API calls and /answer API calls. + // + // Example #1 (multi-turn /search API calls): + // 1. Call /search API with the auto-session mode (see below). + // 2. Call /search API with the session ID generated in the first call. + // Here, the previous search query gets considered in query + // standing. I.e., if the first query is "How did Alphabet do in 2022?" + // and the current query is "How about 2023?", the current query will + // be interpreted as "How did Alphabet do in 2023?". + // + // Example #2 (coordination between /search API calls and /answer API calls): + // 1. Call /search API with the auto-session mode (see below). + // 2. Call /answer API with the session ID generated in the first call. + // Here, the answer generation happens in the context of the search + // results from the first search call. + // + // Auto-session mode: when `projects/.../sessions/-` is used, a new session + // gets automatically created. Otherwise, users can use the create-session API + // to create a session manually. + // + // Multi-turn Search feature is currently at private GA stage. Please use + // v1alpha or v1beta version instead before we launch this feature to public + // GA. Or ask for allowlisting through Google Support team. + string session = 41 [(google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Session" + }]; + + // Session specification. + // + // Can be used only when `session` is set. + SessionSpec session_spec = 42; } // Response message for @@ -838,6 +1041,12 @@ message SearchResponse { // marked as `retrievable` are populated. Document document = 2; + // The chunk data in the search response if the + // [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] + // is set to + // [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. + Chunk chunk = 18; + // Google provided available scores. map model_scores = 4; } @@ -1011,6 +1220,12 @@ message SearchResponse { // // Google skips the summary if the LLM addon is not enabled. LLM_ADDON_NOT_ENABLED = 5; + + // The no relevant content case. + // + // Google skips the summary if there is no relevant content in the + // retrieved search results. + NO_RELEVANT_CONTENT = 6; } // The summary content. @@ -1051,6 +1266,142 @@ message SearchResponse { int64 pinned_result_count = 2; } + // Information describing what natural language understanding was + // done on the input query. + message NaturalLanguageQueryUnderstandingInfo { + // The filters that were extracted from the input query represented in a + // structured form. + message StructuredExtractedFilter { + // Constraint expression of a string field. + message StringConstraint { + // Name of the string field as defined in the schema. + string field_name = 1; + + // Values of the string field. The record will only be returned if the + // field value matches one of the values specified here. + repeated string values = 2; + } + + // Constraint expression of a number field. Example: price < 100. + message NumberConstraint { + // The comparison operation that was performed. + enum Comparison { + // Undefined comparison operator. + COMPARISON_UNSPECIFIED = 0; + + // Denotes equality `=` operator. + EQUALS = 1; + + // Denotes less than or equal to `<=` operator. + LESS_THAN_EQUALS = 2; + + // Denotes less than `<` operator. + LESS_THAN = 3; + + // Denotes greater than or equal to `>=` operator. + GREATER_THAN_EQUALS = 4; + + // Denotes greater than `>` operator. + GREATER_THAN = 5; + } + + // Name of the numerical field as defined in the schema. + string field_name = 1; + + // The comparison operation performed between the field value and the + // value specified in the constraint. + Comparison comparison = 2; + + // The value specified in the numerical constraint. + double value = 3; + } + + // Constraint of a geolocation field. + // Name of the geolocation field as defined in the schema. + message GeolocationConstraint { + // The name of the geolocation field as defined in the schema. + string field_name = 1; + + // The reference address that was inferred from the input query. The + // proximity of the reference address to the geolocation field will be + // used to filter the results. + string address = 2; + + // The radius in meters around the address. The record is returned if + // the location of the geolocation field is within the radius. + float radius_in_meters = 3; + } + + // Logical `And` operator. + message AndExpression { + // The expressions that were ANDed together. + repeated Expression expressions = 1; + } + + // Logical `Or` operator. + message OrExpression { + // The expressions that were ORed together. + repeated Expression expressions = 1; + } + + // The expression denoting the filter that was extracted from the input + // query. + message Expression { + // The expression type. + oneof expr { + // String constraint expression. + StringConstraint string_constraint = 1; + + // Numerical constraint expression. + NumberConstraint number_constraint = 2; + + // Geolocation constraint expression. + GeolocationConstraint geolocation_constraint = 3; + + // Logical "And" compound operator connecting multiple expressions. + AndExpression and_expr = 4; + + // Logical "Or" compound operator connecting multiple expressions. + OrExpression or_expr = 5; + } + } + + // The expression denoting the filter that was extracted from the input + // query in a structured form. It can be a simple expression denoting a + // single string, numerical or geolocation constraint or a compound + // expression which is a combination of multiple expressions connected + // using logical (OR and AND) operators. + Expression expression = 1; + } + + // The filters that were extracted from the input query. + string extracted_filters = 1; + + // Rewritten input query minus the extracted filters. + string rewritten_query = 2; + + // The filters that were extracted from the input query represented in a + // structured form. + StructuredExtractedFilter structured_extracted_filter = 3; + } + + // Information about the session. + message SessionInfo { + // Name of the session. + // If the auto-session mode is used (when + // [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session] + // ends with "-"), this field holds the newly generated session name. + string name = 1; + + // Query ID that corresponds to this search API call. + // One session can have multiple turns, each with a unique query ID. + // + // By specifying the session name and this query ID in the Answer API call, + // the answer generation happens in the context of the search results from + // this search call. + string query_id = 2; + } + // A list of matched documents. The order represents the ranking. repeated SearchResult results = 1; @@ -1106,4 +1457,15 @@ message SearchResponse { // Query expansion information for the returned results. QueryExpansionInfo query_expansion_info = 14; + + // Natural language query understanding information for the returned results. + NaturalLanguageQueryUnderstandingInfo + natural_language_query_understanding_info = 15; + + // Session information. + // + // Only set if + // [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session] + // is provided. See its description for more details. + SessionInfo session_info = 19; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config.proto index 8194bfee8c69..a83bcf3ab766 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config.proto @@ -171,21 +171,27 @@ message ServingConfig { // // The ranking expression is a single function or multiple functions that are // joined by "+". + // // * ranking_expression = function, { " + ", function }; + // // Supported functions: + // // * double * relevance_score // * double * dotProduct(embedding_field_path) + // // Function variables: - // relevance_score: pre-defined keywords, used for measure relevance between - // query and document. - // embedding_field_path: the document embedding field + // + // * `relevance_score`: pre-defined keywords, used for measure relevance + // between query and document. + // * `embedding_field_path`: the document embedding field // used with query embedding vector. - // dotProduct: embedding function between embedding_field_path and query + // * `dotProduct`: embedding function between embedding_field_path and query // embedding vector. // // Example ranking expression: + // // If document has an embedding field doc_embedding, the ranking expression - // could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding). + // could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. string ranking_expression = 21; // Output only. ServingConfig created timestamp. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event_service.proto index 5ccf0ba19559..9a28618c20a8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event_service.proto @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/httpbody.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1beta/import_config.proto"; +import "google/cloud/discoveryengine/v1beta/purge_config.proto"; import "google/cloud/discoveryengine/v1beta/user_event.proto"; import "google/longrunning/operations.proto"; @@ -67,6 +68,29 @@ service UserEventService { additional_bindings { get: "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:collect" } + additional_bindings { + get: "/v1beta/{parent=projects/*/locations/*}/userEvents:collect" + } + }; + } + + // Deletes permanently all user events specified by the filter provided. + // Depending on the number of events specified by the filter, this operation + // could take hours or days to complete. To test a filter, use the list + // command first. + rpc PurgeUserEvents(PurgeUserEventsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*/dataStores/*}/userEvents:purge" + body: "*" + additional_bindings { + post: "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:purge" + body: "*" + } + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse" + metadata_type: "google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata" }; } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..459650da6865 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // 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 + EvaluationServiceSettings evaluationServiceSettings = + EvaluationServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + EvaluationServiceClient evaluationServiceClient = + EvaluationServiceClient.create(evaluationServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..308c8040c005 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // 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 + EvaluationServiceSettings evaluationServiceSettings = + EvaluationServiceSettings.newHttpJsonBuilder().build(); + EvaluationServiceClient evaluationServiceClient = + EvaluationServiceClient.create(evaluationServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..c52cb8847988 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // 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 + EvaluationServiceSettings evaluationServiceSettings = + EvaluationServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + EvaluationServiceClient evaluationServiceClient = + EvaluationServiceClient.create(evaluationServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/AsyncCreateEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/AsyncCreateEvaluation.java new file mode 100644 index 000000000000..60e769208697 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/AsyncCreateEvaluation.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_CreateEvaluation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest; +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateEvaluation { + + public static void main(String[] args) throws Exception { + asyncCreateEvaluation(); + } + + public static void asyncCreateEvaluation() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEvaluation(Evaluation.newBuilder().build()) + .build(); + ApiFuture future = + evaluationServiceClient.createEvaluationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_CreateEvaluation_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/AsyncCreateEvaluationLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/AsyncCreateEvaluationLRO.java new file mode 100644 index 000000000000..c6ca5357e6b9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/AsyncCreateEvaluationLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_CreateEvaluation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1alpha.CreateEvaluationMetadata; +import com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest; +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.LocationName; + +public class AsyncCreateEvaluationLRO { + + public static void main(String[] args) throws Exception { + asyncCreateEvaluationLRO(); + } + + public static void asyncCreateEvaluationLRO() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEvaluation(Evaluation.newBuilder().build()) + .build(); + OperationFuture future = + evaluationServiceClient.createEvaluationOperationCallable().futureCall(request); + // Do something. + Evaluation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_CreateEvaluation_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/SyncCreateEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/SyncCreateEvaluation.java new file mode 100644 index 000000000000..c76b2d6ffb16 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/SyncCreateEvaluation.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_CreateEvaluation_sync] +import com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest; +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.LocationName; + +public class SyncCreateEvaluation { + + public static void main(String[] args) throws Exception { + syncCreateEvaluation(); + } + + public static void syncCreateEvaluation() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEvaluation(Evaluation.newBuilder().build()) + .build(); + Evaluation response = evaluationServiceClient.createEvaluationAsync(request).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_CreateEvaluation_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/SyncCreateEvaluationLocationnameEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/SyncCreateEvaluationLocationnameEvaluation.java new file mode 100644 index 000000000000..74d232f19f23 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/SyncCreateEvaluationLocationnameEvaluation.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_CreateEvaluation_LocationnameEvaluation_sync] +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.LocationName; + +public class SyncCreateEvaluationLocationnameEvaluation { + + public static void main(String[] args) throws Exception { + syncCreateEvaluationLocationnameEvaluation(); + } + + public static void syncCreateEvaluationLocationnameEvaluation() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + Evaluation response = evaluationServiceClient.createEvaluationAsync(parent, evaluation).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_CreateEvaluation_LocationnameEvaluation_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/SyncCreateEvaluationStringEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/SyncCreateEvaluationStringEvaluation.java new file mode 100644 index 000000000000..a3f0a9133522 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/createevaluation/SyncCreateEvaluationStringEvaluation.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_CreateEvaluation_StringEvaluation_sync] +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.LocationName; + +public class SyncCreateEvaluationStringEvaluation { + + public static void main(String[] args) throws Exception { + syncCreateEvaluationStringEvaluation(); + } + + public static void syncCreateEvaluationStringEvaluation() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Evaluation evaluation = Evaluation.newBuilder().build(); + Evaluation response = evaluationServiceClient.createEvaluationAsync(parent, evaluation).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_CreateEvaluation_StringEvaluation_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/getevaluation/AsyncGetEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/getevaluation/AsyncGetEvaluation.java new file mode 100644 index 000000000000..6a363f78bb62 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/getevaluation/AsyncGetEvaluation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_GetEvaluation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.EvaluationName; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest; + +public class AsyncGetEvaluation { + + public static void main(String[] args) throws Exception { + asyncGetEvaluation(); + } + + public static void asyncGetEvaluation() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + GetEvaluationRequest request = + GetEvaluationRequest.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .build(); + ApiFuture future = + evaluationServiceClient.getEvaluationCallable().futureCall(request); + // Do something. + Evaluation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_GetEvaluation_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/getevaluation/SyncGetEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/getevaluation/SyncGetEvaluation.java new file mode 100644 index 000000000000..83d79d9ae60e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/getevaluation/SyncGetEvaluation.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_GetEvaluation_sync] +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.EvaluationName; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest; + +public class SyncGetEvaluation { + + public static void main(String[] args) throws Exception { + syncGetEvaluation(); + } + + public static void syncGetEvaluation() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + GetEvaluationRequest request = + GetEvaluationRequest.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .build(); + Evaluation response = evaluationServiceClient.getEvaluation(request); + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_GetEvaluation_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/getevaluation/SyncGetEvaluationEvaluationname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/getevaluation/SyncGetEvaluationEvaluationname.java new file mode 100644 index 000000000000..a29096a87306 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/getevaluation/SyncGetEvaluationEvaluationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_GetEvaluation_Evaluationname_sync] +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.EvaluationName; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; + +public class SyncGetEvaluationEvaluationname { + + public static void main(String[] args) throws Exception { + syncGetEvaluationEvaluationname(); + } + + public static void syncGetEvaluationEvaluationname() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + Evaluation response = evaluationServiceClient.getEvaluation(name); + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_GetEvaluation_Evaluationname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/getevaluation/SyncGetEvaluationString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/getevaluation/SyncGetEvaluationString.java new file mode 100644 index 000000000000..ecc69c5432dd --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/getevaluation/SyncGetEvaluationString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_GetEvaluation_String_sync] +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.EvaluationName; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; + +public class SyncGetEvaluationString { + + public static void main(String[] args) throws Exception { + syncGetEvaluationString(); + } + + public static void syncGetEvaluationString() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + String name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString(); + Evaluation response = evaluationServiceClient.getEvaluation(name); + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_GetEvaluation_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/AsyncListEvaluationResults.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/AsyncListEvaluationResults.java new file mode 100644 index 000000000000..5f8f2bb6345f --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/AsyncListEvaluationResults.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_ListEvaluationResults_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.EvaluationName; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse; + +public class AsyncListEvaluationResults { + + public static void main(String[] args) throws Exception { + asyncListEvaluationResults(); + } + + public static void asyncListEvaluationResults() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ListEvaluationResultsRequest request = + ListEvaluationResultsRequest.newBuilder() + .setEvaluation( + EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + evaluationServiceClient.listEvaluationResultsPagedCallable().futureCall(request); + // Do something. + for (ListEvaluationResultsResponse.EvaluationResult element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_ListEvaluationResults_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/AsyncListEvaluationResultsPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/AsyncListEvaluationResultsPaged.java new file mode 100644 index 000000000000..d549ac5fec28 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/AsyncListEvaluationResultsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_ListEvaluationResults_Paged_async] +import com.google.cloud.discoveryengine.v1alpha.EvaluationName; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse; +import com.google.common.base.Strings; + +public class AsyncListEvaluationResultsPaged { + + public static void main(String[] args) throws Exception { + asyncListEvaluationResultsPaged(); + } + + public static void asyncListEvaluationResultsPaged() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ListEvaluationResultsRequest request = + ListEvaluationResultsRequest.newBuilder() + .setEvaluation( + EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListEvaluationResultsResponse response = + evaluationServiceClient.listEvaluationResultsCallable().call(request); + for (ListEvaluationResultsResponse.EvaluationResult element : + response.getEvaluationResultsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_ListEvaluationResults_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/SyncListEvaluationResults.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/SyncListEvaluationResults.java new file mode 100644 index 000000000000..c4a8674cac13 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/SyncListEvaluationResults.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_ListEvaluationResults_sync] +import com.google.cloud.discoveryengine.v1alpha.EvaluationName; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse; + +public class SyncListEvaluationResults { + + public static void main(String[] args) throws Exception { + syncListEvaluationResults(); + } + + public static void syncListEvaluationResults() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ListEvaluationResultsRequest request = + ListEvaluationResultsRequest.newBuilder() + .setEvaluation( + EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (ListEvaluationResultsResponse.EvaluationResult element : + evaluationServiceClient.listEvaluationResults(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_ListEvaluationResults_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/SyncListEvaluationResultsEvaluationname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/SyncListEvaluationResultsEvaluationname.java new file mode 100644 index 000000000000..8674af0e0b40 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/SyncListEvaluationResultsEvaluationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_ListEvaluationResults_Evaluationname_sync] +import com.google.cloud.discoveryengine.v1alpha.EvaluationName; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse; + +public class SyncListEvaluationResultsEvaluationname { + + public static void main(String[] args) throws Exception { + syncListEvaluationResultsEvaluationname(); + } + + public static void syncListEvaluationResultsEvaluationname() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + EvaluationName evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + for (ListEvaluationResultsResponse.EvaluationResult element : + evaluationServiceClient.listEvaluationResults(evaluation).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_ListEvaluationResults_Evaluationname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/SyncListEvaluationResultsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/SyncListEvaluationResultsString.java new file mode 100644 index 000000000000..1ad6e519cfb2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluationresults/SyncListEvaluationResultsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_ListEvaluationResults_String_sync] +import com.google.cloud.discoveryengine.v1alpha.EvaluationName; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse; + +public class SyncListEvaluationResultsString { + + public static void main(String[] args) throws Exception { + syncListEvaluationResultsString(); + } + + public static void syncListEvaluationResultsString() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + String evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString(); + for (ListEvaluationResultsResponse.EvaluationResult element : + evaluationServiceClient.listEvaluationResults(evaluation).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_ListEvaluationResults_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/AsyncListEvaluations.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/AsyncListEvaluations.java new file mode 100644 index 000000000000..9c31148a450a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/AsyncListEvaluations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_ListEvaluations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest; +import com.google.cloud.discoveryengine.v1alpha.LocationName; + +public class AsyncListEvaluations { + + public static void main(String[] args) throws Exception { + asyncListEvaluations(); + } + + public static void asyncListEvaluations() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ListEvaluationsRequest request = + ListEvaluationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + evaluationServiceClient.listEvaluationsPagedCallable().futureCall(request); + // Do something. + for (Evaluation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_ListEvaluations_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/AsyncListEvaluationsPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/AsyncListEvaluationsPaged.java new file mode 100644 index 000000000000..e8ea00ebce6f --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/AsyncListEvaluationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_ListEvaluations_Paged_async] +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse; +import com.google.cloud.discoveryengine.v1alpha.LocationName; +import com.google.common.base.Strings; + +public class AsyncListEvaluationsPaged { + + public static void main(String[] args) throws Exception { + asyncListEvaluationsPaged(); + } + + public static void asyncListEvaluationsPaged() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ListEvaluationsRequest request = + ListEvaluationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListEvaluationsResponse response = + evaluationServiceClient.listEvaluationsCallable().call(request); + for (Evaluation element : response.getEvaluationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_ListEvaluations_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/SyncListEvaluations.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/SyncListEvaluations.java new file mode 100644 index 000000000000..00a768ebe47d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/SyncListEvaluations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_ListEvaluations_sync] +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest; +import com.google.cloud.discoveryengine.v1alpha.LocationName; + +public class SyncListEvaluations { + + public static void main(String[] args) throws Exception { + syncListEvaluations(); + } + + public static void syncListEvaluations() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ListEvaluationsRequest request = + ListEvaluationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Evaluation element : evaluationServiceClient.listEvaluations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_ListEvaluations_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/SyncListEvaluationsLocationname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/SyncListEvaluationsLocationname.java new file mode 100644 index 000000000000..500254324464 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/SyncListEvaluationsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_ListEvaluations_Locationname_sync] +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.LocationName; + +public class SyncListEvaluationsLocationname { + + public static void main(String[] args) throws Exception { + syncListEvaluationsLocationname(); + } + + public static void syncListEvaluationsLocationname() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Evaluation element : evaluationServiceClient.listEvaluations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_ListEvaluations_Locationname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/SyncListEvaluationsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/SyncListEvaluationsString.java new file mode 100644 index 000000000000..c481c9b5dabf --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservice/listevaluations/SyncListEvaluationsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationService_ListEvaluations_String_sync] +import com.google.cloud.discoveryengine.v1alpha.Evaluation; +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.LocationName; + +public class SyncListEvaluationsString { + + public static void main(String[] args) throws Exception { + syncListEvaluationsString(); + } + + public static void syncListEvaluationsString() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Evaluation element : evaluationServiceClient.listEvaluations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_EvaluationService_ListEvaluations_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservicesettings/getevaluation/SyncGetEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservicesettings/getevaluation/SyncGetEvaluation.java new file mode 100644 index 000000000000..1839e2715339 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/evaluationservicesettings/getevaluation/SyncGetEvaluation.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationServiceSettings_GetEvaluation_sync] +import com.google.cloud.discoveryengine.v1alpha.EvaluationServiceSettings; +import java.time.Duration; + +public class SyncGetEvaluation { + + public static void main(String[] args) throws Exception { + syncGetEvaluation(); + } + + public static void syncGetEvaluation() throws Exception { + // 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 + EvaluationServiceSettings.Builder evaluationServiceSettingsBuilder = + EvaluationServiceSettings.newBuilder(); + evaluationServiceSettingsBuilder + .getEvaluationSettings() + .setRetrySettings( + evaluationServiceSettingsBuilder + .getEvaluationSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + EvaluationServiceSettings evaluationServiceSettings = evaluationServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_EvaluationServiceSettings_GetEvaluation_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..fcb54b19319a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // 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 + SampleQueryServiceSettings sampleQueryServiceSettings = + SampleQueryServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SampleQueryServiceClient sampleQueryServiceClient = + SampleQueryServiceClient.create(sampleQueryServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..e07471aac4ab --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // 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 + SampleQueryServiceSettings sampleQueryServiceSettings = + SampleQueryServiceSettings.newHttpJsonBuilder().build(); + SampleQueryServiceClient sampleQueryServiceClient = + SampleQueryServiceClient.create(sampleQueryServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..bb6c16f113f6 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // 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 + SampleQueryServiceSettings sampleQueryServiceSettings = + SampleQueryServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SampleQueryServiceClient sampleQueryServiceClient = + SampleQueryServiceClient.create(sampleQueryServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/createsamplequery/AsyncCreateSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/createsamplequery/AsyncCreateSampleQuery.java new file mode 100644 index 000000000000..e63bf8d60b4d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/createsamplequery/AsyncCreateSampleQuery.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_CreateSampleQuery_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; + +public class AsyncCreateSampleQuery { + + public static void main(String[] args) throws Exception { + asyncCreateSampleQuery(); + } + + public static void asyncCreateSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + CreateSampleQueryRequest request = + CreateSampleQueryRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setSampleQuery(SampleQuery.newBuilder().build()) + .setSampleQueryId("sampleQueryId1739022073") + .build(); + ApiFuture future = + sampleQueryServiceClient.createSampleQueryCallable().futureCall(request); + // Do something. + SampleQuery response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_CreateSampleQuery_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/createsamplequery/SyncCreateSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/createsamplequery/SyncCreateSampleQuery.java new file mode 100644 index 000000000000..35b7b1a232d3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/createsamplequery/SyncCreateSampleQuery.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_CreateSampleQuery_sync] +import com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; + +public class SyncCreateSampleQuery { + + public static void main(String[] args) throws Exception { + syncCreateSampleQuery(); + } + + public static void syncCreateSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + CreateSampleQueryRequest request = + CreateSampleQueryRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setSampleQuery(SampleQuery.newBuilder().build()) + .setSampleQueryId("sampleQueryId1739022073") + .build(); + SampleQuery response = sampleQueryServiceClient.createSampleQuery(request); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_CreateSampleQuery_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/createsamplequery/SyncCreateSampleQuerySamplequerysetnameSamplequeryString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/createsamplequery/SyncCreateSampleQuerySamplequerysetnameSamplequeryString.java new file mode 100644 index 000000000000..fcf3d0f67009 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/createsamplequery/SyncCreateSampleQuerySamplequerysetnameSamplequeryString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_CreateSampleQuery_SamplequerysetnameSamplequeryString_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; + +public class SyncCreateSampleQuerySamplequerysetnameSamplequeryString { + + public static void main(String[] args) throws Exception { + syncCreateSampleQuerySamplequerysetnameSamplequeryString(); + } + + public static void syncCreateSampleQuerySamplequerysetnameSamplequeryString() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + SampleQuery response = + sampleQueryServiceClient.createSampleQuery(parent, sampleQuery, sampleQueryId); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_CreateSampleQuery_SamplequerysetnameSamplequeryString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/createsamplequery/SyncCreateSampleQueryStringSamplequeryString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/createsamplequery/SyncCreateSampleQueryStringSamplequeryString.java new file mode 100644 index 000000000000..5047e9384124 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/createsamplequery/SyncCreateSampleQueryStringSamplequeryString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_CreateSampleQuery_StringSamplequeryString_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; + +public class SyncCreateSampleQueryStringSamplequeryString { + + public static void main(String[] args) throws Exception { + syncCreateSampleQueryStringSamplequeryString(); + } + + public static void syncCreateSampleQueryStringSamplequeryString() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + String parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString(); + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + SampleQuery response = + sampleQueryServiceClient.createSampleQuery(parent, sampleQuery, sampleQueryId); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_CreateSampleQuery_StringSamplequeryString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/deletesamplequery/AsyncDeleteSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/deletesamplequery/AsyncDeleteSampleQuery.java new file mode 100644 index 000000000000..6799145ef2c5 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/deletesamplequery/AsyncDeleteSampleQuery.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_DeleteSampleQuery_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryName; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteSampleQuery { + + public static void main(String[] args) throws Exception { + asyncDeleteSampleQuery(); + } + + public static void asyncDeleteSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + DeleteSampleQueryRequest request = + DeleteSampleQueryRequest.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .build(); + ApiFuture future = + sampleQueryServiceClient.deleteSampleQueryCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_DeleteSampleQuery_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/deletesamplequery/SyncDeleteSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/deletesamplequery/SyncDeleteSampleQuery.java new file mode 100644 index 000000000000..ab653658d741 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/deletesamplequery/SyncDeleteSampleQuery.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_DeleteSampleQuery_sync] +import com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryName; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSampleQuery { + + public static void main(String[] args) throws Exception { + syncDeleteSampleQuery(); + } + + public static void syncDeleteSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + DeleteSampleQueryRequest request = + DeleteSampleQueryRequest.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .build(); + sampleQueryServiceClient.deleteSampleQuery(request); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_DeleteSampleQuery_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/deletesamplequery/SyncDeleteSampleQuerySamplequeryname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/deletesamplequery/SyncDeleteSampleQuerySamplequeryname.java new file mode 100644 index 000000000000..16878c004ec7 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/deletesamplequery/SyncDeleteSampleQuerySamplequeryname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_DeleteSampleQuery_Samplequeryname_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQueryName; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSampleQuerySamplequeryname { + + public static void main(String[] args) throws Exception { + syncDeleteSampleQuerySamplequeryname(); + } + + public static void syncDeleteSampleQuerySamplequeryname() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + sampleQueryServiceClient.deleteSampleQuery(name); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_DeleteSampleQuery_Samplequeryname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/deletesamplequery/SyncDeleteSampleQueryString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/deletesamplequery/SyncDeleteSampleQueryString.java new file mode 100644 index 000000000000..d5c36fa662ab --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/deletesamplequery/SyncDeleteSampleQueryString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_DeleteSampleQuery_String_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQueryName; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSampleQueryString { + + public static void main(String[] args) throws Exception { + syncDeleteSampleQueryString(); + } + + public static void syncDeleteSampleQueryString() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + String name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString(); + sampleQueryServiceClient.deleteSampleQuery(name); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_DeleteSampleQuery_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/getsamplequery/AsyncGetSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/getsamplequery/AsyncGetSampleQuery.java new file mode 100644 index 000000000000..768c82a8246e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/getsamplequery/AsyncGetSampleQuery.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_GetSampleQuery_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryName; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; + +public class AsyncGetSampleQuery { + + public static void main(String[] args) throws Exception { + asyncGetSampleQuery(); + } + + public static void asyncGetSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + GetSampleQueryRequest request = + GetSampleQueryRequest.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .build(); + ApiFuture future = + sampleQueryServiceClient.getSampleQueryCallable().futureCall(request); + // Do something. + SampleQuery response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_GetSampleQuery_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/getsamplequery/SyncGetSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/getsamplequery/SyncGetSampleQuery.java new file mode 100644 index 000000000000..2f7566caf28a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/getsamplequery/SyncGetSampleQuery.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_GetSampleQuery_sync] +import com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryName; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; + +public class SyncGetSampleQuery { + + public static void main(String[] args) throws Exception { + syncGetSampleQuery(); + } + + public static void syncGetSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + GetSampleQueryRequest request = + GetSampleQueryRequest.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .build(); + SampleQuery response = sampleQueryServiceClient.getSampleQuery(request); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_GetSampleQuery_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/getsamplequery/SyncGetSampleQuerySamplequeryname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/getsamplequery/SyncGetSampleQuerySamplequeryname.java new file mode 100644 index 000000000000..f2d245b1fa67 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/getsamplequery/SyncGetSampleQuerySamplequeryname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_GetSampleQuery_Samplequeryname_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryName; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; + +public class SyncGetSampleQuerySamplequeryname { + + public static void main(String[] args) throws Exception { + syncGetSampleQuerySamplequeryname(); + } + + public static void syncGetSampleQuerySamplequeryname() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + SampleQuery response = sampleQueryServiceClient.getSampleQuery(name); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_GetSampleQuery_Samplequeryname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/getsamplequery/SyncGetSampleQueryString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/getsamplequery/SyncGetSampleQueryString.java new file mode 100644 index 000000000000..b1f569f8e940 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/getsamplequery/SyncGetSampleQueryString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_GetSampleQuery_String_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryName; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; + +public class SyncGetSampleQueryString { + + public static void main(String[] args) throws Exception { + syncGetSampleQueryString(); + } + + public static void syncGetSampleQueryString() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + String name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString(); + SampleQuery response = sampleQueryServiceClient.getSampleQuery(name); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_GetSampleQuery_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/importsamplequeries/AsyncImportSampleQueries.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/importsamplequeries/AsyncImportSampleQueries.java new file mode 100644 index 000000000000..d9bc5b1bb356 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/importsamplequeries/AsyncImportSampleQueries.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_ImportSampleQueries_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; +import com.google.longrunning.Operation; + +public class AsyncImportSampleQueries { + + public static void main(String[] args) throws Exception { + asyncImportSampleQueries(); + } + + public static void asyncImportSampleQueries() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + ImportSampleQueriesRequest request = + ImportSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + ApiFuture future = + sampleQueryServiceClient.importSampleQueriesCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_ImportSampleQueries_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/importsamplequeries/AsyncImportSampleQueriesLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/importsamplequeries/AsyncImportSampleQueriesLRO.java new file mode 100644 index 000000000000..d1e095315c42 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/importsamplequeries/AsyncImportSampleQueriesLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_ImportSampleQueries_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; + +public class AsyncImportSampleQueriesLRO { + + public static void main(String[] args) throws Exception { + asyncImportSampleQueriesLRO(); + } + + public static void asyncImportSampleQueriesLRO() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + ImportSampleQueriesRequest request = + ImportSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + OperationFuture future = + sampleQueryServiceClient.importSampleQueriesOperationCallable().futureCall(request); + // Do something. + ImportSampleQueriesResponse response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_ImportSampleQueries_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/importsamplequeries/SyncImportSampleQueries.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/importsamplequeries/SyncImportSampleQueries.java new file mode 100644 index 000000000000..5f4f3a0d14b2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/importsamplequeries/SyncImportSampleQueries.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_ImportSampleQueries_sync] +import com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; + +public class SyncImportSampleQueries { + + public static void main(String[] args) throws Exception { + syncImportSampleQueries(); + } + + public static void syncImportSampleQueries() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + ImportSampleQueriesRequest request = + ImportSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + ImportSampleQueriesResponse response = + sampleQueryServiceClient.importSampleQueriesAsync(request).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_ImportSampleQueries_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/AsyncListSampleQueries.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/AsyncListSampleQueries.java new file mode 100644 index 000000000000..0f4d15fe6247 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/AsyncListSampleQueries.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_ListSampleQueries_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; + +public class AsyncListSampleQueries { + + public static void main(String[] args) throws Exception { + asyncListSampleQueries(); + } + + public static void asyncListSampleQueries() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + ListSampleQueriesRequest request = + ListSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + sampleQueryServiceClient.listSampleQueriesPagedCallable().futureCall(request); + // Do something. + for (SampleQuery element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_ListSampleQueries_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/AsyncListSampleQueriesPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/AsyncListSampleQueriesPaged.java new file mode 100644 index 000000000000..bd33788702bd --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/AsyncListSampleQueriesPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_ListSampleQueries_Paged_async] +import com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; +import com.google.common.base.Strings; + +public class AsyncListSampleQueriesPaged { + + public static void main(String[] args) throws Exception { + asyncListSampleQueriesPaged(); + } + + public static void asyncListSampleQueriesPaged() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + ListSampleQueriesRequest request = + ListSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSampleQueriesResponse response = + sampleQueryServiceClient.listSampleQueriesCallable().call(request); + for (SampleQuery element : response.getSampleQueriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_ListSampleQueries_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/SyncListSampleQueries.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/SyncListSampleQueries.java new file mode 100644 index 000000000000..fee8fcbde50d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/SyncListSampleQueries.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_ListSampleQueries_sync] +import com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; + +public class SyncListSampleQueries { + + public static void main(String[] args) throws Exception { + syncListSampleQueries(); + } + + public static void syncListSampleQueries() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + ListSampleQueriesRequest request = + ListSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (SampleQuery element : sampleQueryServiceClient.listSampleQueries(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_ListSampleQueries_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/SyncListSampleQueriesSamplequerysetname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/SyncListSampleQueriesSamplequerysetname.java new file mode 100644 index 000000000000..62763b716590 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/SyncListSampleQueriesSamplequerysetname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_ListSampleQueries_Samplequerysetname_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; + +public class SyncListSampleQueriesSamplequerysetname { + + public static void main(String[] args) throws Exception { + syncListSampleQueriesSamplequerysetname(); + } + + public static void syncListSampleQueriesSamplequerysetname() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + for (SampleQuery element : sampleQueryServiceClient.listSampleQueries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_ListSampleQueries_Samplequerysetname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/SyncListSampleQueriesString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/SyncListSampleQueriesString.java new file mode 100644 index 000000000000..eb15e705dd04 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/listsamplequeries/SyncListSampleQueriesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_ListSampleQueries_String_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; + +public class SyncListSampleQueriesString { + + public static void main(String[] args) throws Exception { + syncListSampleQueriesString(); + } + + public static void syncListSampleQueriesString() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + String parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString(); + for (SampleQuery element : sampleQueryServiceClient.listSampleQueries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_ListSampleQueries_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/updatesamplequery/AsyncUpdateSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/updatesamplequery/AsyncUpdateSampleQuery.java new file mode 100644 index 000000000000..6d20f12e5289 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/updatesamplequery/AsyncUpdateSampleQuery.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_UpdateSampleQuery_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSampleQuery { + + public static void main(String[] args) throws Exception { + asyncUpdateSampleQuery(); + } + + public static void asyncUpdateSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + UpdateSampleQueryRequest request = + UpdateSampleQueryRequest.newBuilder() + .setSampleQuery(SampleQuery.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + sampleQueryServiceClient.updateSampleQueryCallable().futureCall(request); + // Do something. + SampleQuery response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_UpdateSampleQuery_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/updatesamplequery/SyncUpdateSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/updatesamplequery/SyncUpdateSampleQuery.java new file mode 100644 index 000000000000..588237258fc8 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/updatesamplequery/SyncUpdateSampleQuery.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_UpdateSampleQuery_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSampleQuery { + + public static void main(String[] args) throws Exception { + syncUpdateSampleQuery(); + } + + public static void syncUpdateSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + UpdateSampleQueryRequest request = + UpdateSampleQueryRequest.newBuilder() + .setSampleQuery(SampleQuery.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + SampleQuery response = sampleQueryServiceClient.updateSampleQuery(request); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_UpdateSampleQuery_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/updatesamplequery/SyncUpdateSampleQuerySamplequeryFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/updatesamplequery/SyncUpdateSampleQuerySamplequeryFieldmask.java new file mode 100644 index 000000000000..d79b89d50684 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservice/updatesamplequery/SyncUpdateSampleQuerySamplequeryFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryService_UpdateSampleQuery_SamplequeryFieldmask_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuery; +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSampleQuerySamplequeryFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSampleQuerySamplequeryFieldmask(); + } + + public static void syncUpdateSampleQuerySamplequeryFieldmask() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + SampleQuery response = sampleQueryServiceClient.updateSampleQuery(sampleQuery, updateMask); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryService_UpdateSampleQuery_SamplequeryFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservicesettings/getsamplequery/SyncGetSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservicesettings/getsamplequery/SyncGetSampleQuery.java new file mode 100644 index 000000000000..86a645598c9d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequeryservicesettings/getsamplequery/SyncGetSampleQuery.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryServiceSettings_GetSampleQuery_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQueryServiceSettings; +import java.time.Duration; + +public class SyncGetSampleQuery { + + public static void main(String[] args) throws Exception { + syncGetSampleQuery(); + } + + public static void syncGetSampleQuery() throws Exception { + // 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 + SampleQueryServiceSettings.Builder sampleQueryServiceSettingsBuilder = + SampleQueryServiceSettings.newBuilder(); + sampleQueryServiceSettingsBuilder + .getSampleQuerySettings() + .setRetrySettings( + sampleQueryServiceSettingsBuilder + .getSampleQuerySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SampleQueryServiceSettings sampleQueryServiceSettings = + sampleQueryServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryServiceSettings_GetSampleQuery_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..81914d9b0d67 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // 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 + SampleQuerySetServiceSettings sampleQuerySetServiceSettings = + SampleQuerySetServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..2129091d6732 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // 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 + SampleQuerySetServiceSettings sampleQuerySetServiceSettings = + SampleQuerySetServiceSettings.newHttpJsonBuilder().build(); + SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..d79828699f8a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // 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 + SampleQuerySetServiceSettings sampleQuerySetServiceSettings = + SampleQuerySetServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/createsamplequeryset/AsyncCreateSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/createsamplequeryset/AsyncCreateSampleQuerySet.java new file mode 100644 index 000000000000..102a5cd1c2da --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/createsamplequeryset/AsyncCreateSampleQuerySet.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_CreateSampleQuerySet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.LocationName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; + +public class AsyncCreateSampleQuerySet { + + public static void main(String[] args) throws Exception { + asyncCreateSampleQuerySet(); + } + + public static void asyncCreateSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + CreateSampleQuerySetRequest request = + CreateSampleQuerySetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSampleQuerySet(SampleQuerySet.newBuilder().build()) + .setSampleQuerySetId("sampleQuerySetId1320431231") + .build(); + ApiFuture future = + sampleQuerySetServiceClient.createSampleQuerySetCallable().futureCall(request); + // Do something. + SampleQuerySet response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_CreateSampleQuerySet_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySet.java new file mode 100644 index 000000000000..31c41ae1a501 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySet.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_CreateSampleQuerySet_sync] +import com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.LocationName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; + +public class SyncCreateSampleQuerySet { + + public static void main(String[] args) throws Exception { + syncCreateSampleQuerySet(); + } + + public static void syncCreateSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + CreateSampleQuerySetRequest request = + CreateSampleQuerySetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSampleQuerySet(SampleQuerySet.newBuilder().build()) + .setSampleQuerySetId("sampleQuerySetId1320431231") + .build(); + SampleQuerySet response = sampleQuerySetServiceClient.createSampleQuerySet(request); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_CreateSampleQuerySet_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySetLocationnameSamplequerysetString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySetLocationnameSamplequerysetString.java new file mode 100644 index 000000000000..028ee61a7aa3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySetLocationnameSamplequerysetString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_CreateSampleQuerySet_LocationnameSamplequerysetString_sync] +import com.google.cloud.discoveryengine.v1alpha.LocationName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; + +public class SyncCreateSampleQuerySetLocationnameSamplequerysetString { + + public static void main(String[] args) throws Exception { + syncCreateSampleQuerySetLocationnameSamplequerysetString(); + } + + public static void syncCreateSampleQuerySetLocationnameSamplequerysetString() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + SampleQuerySet response = + sampleQuerySetServiceClient.createSampleQuerySet( + parent, sampleQuerySet, sampleQuerySetId); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_CreateSampleQuerySet_LocationnameSamplequerysetString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySetStringSamplequerysetString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySetStringSamplequerysetString.java new file mode 100644 index 000000000000..939da765c298 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySetStringSamplequerysetString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_CreateSampleQuerySet_StringSamplequerysetString_sync] +import com.google.cloud.discoveryengine.v1alpha.LocationName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; + +public class SyncCreateSampleQuerySetStringSamplequerysetString { + + public static void main(String[] args) throws Exception { + syncCreateSampleQuerySetStringSamplequerysetString(); + } + + public static void syncCreateSampleQuerySetStringSamplequerysetString() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + SampleQuerySet response = + sampleQuerySetServiceClient.createSampleQuerySet( + parent, sampleQuerySet, sampleQuerySetId); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_CreateSampleQuerySet_StringSamplequerysetString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/deletesamplequeryset/AsyncDeleteSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/deletesamplequeryset/AsyncDeleteSampleQuerySet.java new file mode 100644 index 000000000000..31dfc2bebd81 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/deletesamplequeryset/AsyncDeleteSampleQuerySet.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_DeleteSampleQuerySet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteSampleQuerySet { + + public static void main(String[] args) throws Exception { + asyncDeleteSampleQuerySet(); + } + + public static void asyncDeleteSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + DeleteSampleQuerySetRequest request = + DeleteSampleQuerySetRequest.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .build(); + ApiFuture future = + sampleQuerySetServiceClient.deleteSampleQuerySetCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_DeleteSampleQuerySet_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySet.java new file mode 100644 index 000000000000..281fa135152b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_DeleteSampleQuerySet_sync] +import com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSampleQuerySet { + + public static void main(String[] args) throws Exception { + syncDeleteSampleQuerySet(); + } + + public static void syncDeleteSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + DeleteSampleQuerySetRequest request = + DeleteSampleQuerySetRequest.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .build(); + sampleQuerySetServiceClient.deleteSampleQuerySet(request); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_DeleteSampleQuerySet_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySetSamplequerysetname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySetSamplequerysetname.java new file mode 100644 index 000000000000..0b58ab04c58c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySetSamplequerysetname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_DeleteSampleQuerySet_Samplequerysetname_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSampleQuerySetSamplequerysetname { + + public static void main(String[] args) throws Exception { + syncDeleteSampleQuerySetSamplequerysetname(); + } + + public static void syncDeleteSampleQuerySetSamplequerysetname() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + sampleQuerySetServiceClient.deleteSampleQuerySet(name); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_DeleteSampleQuerySet_Samplequerysetname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySetString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySetString.java new file mode 100644 index 000000000000..1a7085d634c4 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySetString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_DeleteSampleQuerySet_String_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSampleQuerySetString { + + public static void main(String[] args) throws Exception { + syncDeleteSampleQuerySetString(); + } + + public static void syncDeleteSampleQuerySetString() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + String name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString(); + sampleQuerySetServiceClient.deleteSampleQuerySet(name); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_DeleteSampleQuerySet_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/getsamplequeryset/AsyncGetSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/getsamplequeryset/AsyncGetSampleQuerySet.java new file mode 100644 index 000000000000..c4f69904eae8 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/getsamplequeryset/AsyncGetSampleQuerySet.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_GetSampleQuerySet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; + +public class AsyncGetSampleQuerySet { + + public static void main(String[] args) throws Exception { + asyncGetSampleQuerySet(); + } + + public static void asyncGetSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + GetSampleQuerySetRequest request = + GetSampleQuerySetRequest.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .build(); + ApiFuture future = + sampleQuerySetServiceClient.getSampleQuerySetCallable().futureCall(request); + // Do something. + SampleQuerySet response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_GetSampleQuerySet_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySet.java new file mode 100644 index 000000000000..febf245fe169 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_GetSampleQuerySet_sync] +import com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; + +public class SyncGetSampleQuerySet { + + public static void main(String[] args) throws Exception { + syncGetSampleQuerySet(); + } + + public static void syncGetSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + GetSampleQuerySetRequest request = + GetSampleQuerySetRequest.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .build(); + SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(request); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_GetSampleQuerySet_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySetSamplequerysetname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySetSamplequerysetname.java new file mode 100644 index 000000000000..e26d31755315 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySetSamplequerysetname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_GetSampleQuerySet_Samplequerysetname_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; + +public class SyncGetSampleQuerySetSamplequerysetname { + + public static void main(String[] args) throws Exception { + syncGetSampleQuerySetSamplequerysetname(); + } + + public static void syncGetSampleQuerySetSamplequerysetname() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(name); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_GetSampleQuerySet_Samplequerysetname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySetString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySetString.java new file mode 100644 index 000000000000..e2bb9c1af238 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySetString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_GetSampleQuerySet_String_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; + +public class SyncGetSampleQuerySetString { + + public static void main(String[] args) throws Exception { + syncGetSampleQuerySetString(); + } + + public static void syncGetSampleQuerySetString() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + String name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString(); + SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(name); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_GetSampleQuerySet_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/AsyncListSampleQuerySets.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/AsyncListSampleQuerySets.java new file mode 100644 index 000000000000..a7046492d83f --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/AsyncListSampleQuerySets.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_ListSampleQuerySets_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest; +import com.google.cloud.discoveryengine.v1alpha.LocationName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; + +public class AsyncListSampleQuerySets { + + public static void main(String[] args) throws Exception { + asyncListSampleQuerySets(); + } + + public static void asyncListSampleQuerySets() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + ListSampleQuerySetsRequest request = + ListSampleQuerySetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + sampleQuerySetServiceClient.listSampleQuerySetsPagedCallable().futureCall(request); + // Do something. + for (SampleQuerySet element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_ListSampleQuerySets_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/AsyncListSampleQuerySetsPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/AsyncListSampleQuerySetsPaged.java new file mode 100644 index 000000000000..c1a41d8b492d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/AsyncListSampleQuerySetsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_ListSampleQuerySets_Paged_async] +import com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse; +import com.google.cloud.discoveryengine.v1alpha.LocationName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; +import com.google.common.base.Strings; + +public class AsyncListSampleQuerySetsPaged { + + public static void main(String[] args) throws Exception { + asyncListSampleQuerySetsPaged(); + } + + public static void asyncListSampleQuerySetsPaged() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + ListSampleQuerySetsRequest request = + ListSampleQuerySetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSampleQuerySetsResponse response = + sampleQuerySetServiceClient.listSampleQuerySetsCallable().call(request); + for (SampleQuerySet element : response.getSampleQuerySetsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_ListSampleQuerySets_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySets.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySets.java new file mode 100644 index 000000000000..e249cea6b389 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySets.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_ListSampleQuerySets_sync] +import com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest; +import com.google.cloud.discoveryengine.v1alpha.LocationName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; + +public class SyncListSampleQuerySets { + + public static void main(String[] args) throws Exception { + syncListSampleQuerySets(); + } + + public static void syncListSampleQuerySets() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + ListSampleQuerySetsRequest request = + ListSampleQuerySetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (SampleQuerySet element : + sampleQuerySetServiceClient.listSampleQuerySets(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_ListSampleQuerySets_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySetsLocationname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySetsLocationname.java new file mode 100644 index 000000000000..7ef0906001ac --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySetsLocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_ListSampleQuerySets_Locationname_sync] +import com.google.cloud.discoveryengine.v1alpha.LocationName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; + +public class SyncListSampleQuerySetsLocationname { + + public static void main(String[] args) throws Exception { + syncListSampleQuerySetsLocationname(); + } + + public static void syncListSampleQuerySetsLocationname() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (SampleQuerySet element : + sampleQuerySetServiceClient.listSampleQuerySets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_ListSampleQuerySets_Locationname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySetsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySetsString.java new file mode 100644 index 000000000000..b476eddedac7 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySetsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_ListSampleQuerySets_String_sync] +import com.google.cloud.discoveryengine.v1alpha.LocationName; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; + +public class SyncListSampleQuerySetsString { + + public static void main(String[] args) throws Exception { + syncListSampleQuerySetsString(); + } + + public static void syncListSampleQuerySetsString() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (SampleQuerySet element : + sampleQuerySetServiceClient.listSampleQuerySets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_ListSampleQuerySets_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/updatesamplequeryset/AsyncUpdateSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/updatesamplequeryset/AsyncUpdateSampleQuerySet.java new file mode 100644 index 000000000000..e233d78f2e79 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/updatesamplequeryset/AsyncUpdateSampleQuerySet.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_UpdateSampleQuerySet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSampleQuerySet { + + public static void main(String[] args) throws Exception { + asyncUpdateSampleQuerySet(); + } + + public static void asyncUpdateSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + UpdateSampleQuerySetRequest request = + UpdateSampleQuerySetRequest.newBuilder() + .setSampleQuerySet(SampleQuerySet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + sampleQuerySetServiceClient.updateSampleQuerySetCallable().futureCall(request); + // Do something. + SampleQuerySet response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_UpdateSampleQuerySet_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/updatesamplequeryset/SyncUpdateSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/updatesamplequeryset/SyncUpdateSampleQuerySet.java new file mode 100644 index 000000000000..23090f9479f1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/updatesamplequeryset/SyncUpdateSampleQuerySet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_UpdateSampleQuerySet_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSampleQuerySet { + + public static void main(String[] args) throws Exception { + syncUpdateSampleQuerySet(); + } + + public static void syncUpdateSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + UpdateSampleQuerySetRequest request = + UpdateSampleQuerySetRequest.newBuilder() + .setSampleQuerySet(SampleQuerySet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + SampleQuerySet response = sampleQuerySetServiceClient.updateSampleQuerySet(request); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_UpdateSampleQuerySet_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/updatesamplequeryset/SyncUpdateSampleQuerySetSamplequerysetFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/updatesamplequeryset/SyncUpdateSampleQuerySetSamplequerysetFieldmask.java new file mode 100644 index 000000000000..8f1b05489e14 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservice/updatesamplequeryset/SyncUpdateSampleQuerySetSamplequerysetFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetService_UpdateSampleQuerySet_SamplequerysetFieldmask_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySet; +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSampleQuerySetSamplequerysetFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSampleQuerySetSamplequerysetFieldmask(); + } + + public static void syncUpdateSampleQuerySetSamplequerysetFieldmask() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + SampleQuerySet response = + sampleQuerySetServiceClient.updateSampleQuerySet(sampleQuerySet, updateMask); + } + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetService_UpdateSampleQuerySet_SamplequerysetFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservicesettings/getsamplequeryset/SyncGetSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservicesettings/getsamplequeryset/SyncGetSampleQuerySet.java new file mode 100644 index 000000000000..47fff1944c0a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/samplequerysetservicesettings/getsamplequeryset/SyncGetSampleQuerySet.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetServiceSettings_GetSampleQuerySet_sync] +import com.google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceSettings; +import java.time.Duration; + +public class SyncGetSampleQuerySet { + + public static void main(String[] args) throws Exception { + syncGetSampleQuerySet(); + } + + public static void syncGetSampleQuerySet() throws Exception { + // 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 + SampleQuerySetServiceSettings.Builder sampleQuerySetServiceSettingsBuilder = + SampleQuerySetServiceSettings.newBuilder(); + sampleQuerySetServiceSettingsBuilder + .getSampleQuerySetSettings() + .setRetrySettings( + sampleQuerySetServiceSettingsBuilder + .getSampleQuerySetSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SampleQuerySetServiceSettings sampleQuerySetServiceSettings = + sampleQuerySetServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetServiceSettings_GetSampleQuerySet_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/evaluationservicestubsettings/getevaluation/SyncGetEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/evaluationservicestubsettings/getevaluation/SyncGetEvaluation.java new file mode 100644 index 000000000000..fc66f7d3b39c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/evaluationservicestubsettings/getevaluation/SyncGetEvaluation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_EvaluationServiceStubSettings_GetEvaluation_sync] +import com.google.cloud.discoveryengine.v1alpha.stub.EvaluationServiceStubSettings; +import java.time.Duration; + +public class SyncGetEvaluation { + + public static void main(String[] args) throws Exception { + syncGetEvaluation(); + } + + public static void syncGetEvaluation() throws Exception { + // 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 + EvaluationServiceStubSettings.Builder evaluationServiceSettingsBuilder = + EvaluationServiceStubSettings.newBuilder(); + evaluationServiceSettingsBuilder + .getEvaluationSettings() + .setRetrySettings( + evaluationServiceSettingsBuilder + .getEvaluationSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + EvaluationServiceStubSettings evaluationServiceSettings = + evaluationServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_EvaluationServiceStubSettings_GetEvaluation_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/samplequeryservicestubsettings/getsamplequery/SyncGetSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/samplequeryservicestubsettings/getsamplequery/SyncGetSampleQuery.java new file mode 100644 index 000000000000..662a3abd55c2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/samplequeryservicestubsettings/getsamplequery/SyncGetSampleQuery.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_SampleQueryServiceStubSettings_GetSampleQuery_sync] +import com.google.cloud.discoveryengine.v1alpha.stub.SampleQueryServiceStubSettings; +import java.time.Duration; + +public class SyncGetSampleQuery { + + public static void main(String[] args) throws Exception { + syncGetSampleQuery(); + } + + public static void syncGetSampleQuery() throws Exception { + // 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 + SampleQueryServiceStubSettings.Builder sampleQueryServiceSettingsBuilder = + SampleQueryServiceStubSettings.newBuilder(); + sampleQueryServiceSettingsBuilder + .getSampleQuerySettings() + .setRetrySettings( + sampleQueryServiceSettingsBuilder + .getSampleQuerySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SampleQueryServiceStubSettings sampleQueryServiceSettings = + sampleQueryServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_SampleQueryServiceStubSettings_GetSampleQuery_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/samplequerysetservicestubsettings/getsamplequeryset/SyncGetSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/samplequerysetservicestubsettings/getsamplequeryset/SyncGetSampleQuerySet.java new file mode 100644 index 000000000000..d9060fc45f11 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/samplequerysetservicestubsettings/getsamplequeryset/SyncGetSampleQuerySet.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_SampleQuerySetServiceStubSettings_GetSampleQuerySet_sync] +import com.google.cloud.discoveryengine.v1alpha.stub.SampleQuerySetServiceStubSettings; +import java.time.Duration; + +public class SyncGetSampleQuerySet { + + public static void main(String[] args) throws Exception { + syncGetSampleQuerySet(); + } + + public static void syncGetSampleQuerySet() throws Exception { + // 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 + SampleQuerySetServiceStubSettings.Builder sampleQuerySetServiceSettingsBuilder = + SampleQuerySetServiceStubSettings.newBuilder(); + sampleQuerySetServiceSettingsBuilder + .getSampleQuerySetSettings() + .setRetrySettings( + sampleQuerySetServiceSettingsBuilder + .getSampleQuerySetSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SampleQuerySetServiceStubSettings sampleQuerySetServiceSettings = + sampleQuerySetServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_SampleQuerySetServiceStubSettings_GetSampleQuerySet_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/importcompletionsuggestions/AsyncImportCompletionSuggestions.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/importcompletionsuggestions/AsyncImportCompletionSuggestions.java new file mode 100644 index 000000000000..6ee80bcda51f --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/importcompletionsuggestions/AsyncImportCompletionSuggestions.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CompletionService_ImportCompletionSuggestions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest; +import com.google.cloud.discoveryengine.v1beta.ImportErrorConfig; +import com.google.longrunning.Operation; + +public class AsyncImportCompletionSuggestions { + + public static void main(String[] args) throws Exception { + asyncImportCompletionSuggestions(); + } + + public static void asyncImportCompletionSuggestions() throws Exception { + // 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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + ImportCompletionSuggestionsRequest request = + ImportCompletionSuggestionsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + ApiFuture future = + completionServiceClient.importCompletionSuggestionsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_CompletionService_ImportCompletionSuggestions_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/importcompletionsuggestions/AsyncImportCompletionSuggestionsLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/importcompletionsuggestions/AsyncImportCompletionSuggestionsLRO.java new file mode 100644 index 000000000000..bf821353b14e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/importcompletionsuggestions/AsyncImportCompletionSuggestionsLRO.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CompletionService_ImportCompletionSuggestions_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1beta.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse; +import com.google.cloud.discoveryengine.v1beta.ImportErrorConfig; + +public class AsyncImportCompletionSuggestionsLRO { + + public static void main(String[] args) throws Exception { + asyncImportCompletionSuggestionsLRO(); + } + + public static void asyncImportCompletionSuggestionsLRO() throws Exception { + // 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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + ImportCompletionSuggestionsRequest request = + ImportCompletionSuggestionsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + OperationFuture + future = + completionServiceClient + .importCompletionSuggestionsOperationCallable() + .futureCall(request); + // Do something. + ImportCompletionSuggestionsResponse response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_CompletionService_ImportCompletionSuggestions_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/importcompletionsuggestions/SyncImportCompletionSuggestions.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/importcompletionsuggestions/SyncImportCompletionSuggestions.java new file mode 100644 index 000000000000..70e82f444570 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/importcompletionsuggestions/SyncImportCompletionSuggestions.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CompletionService_ImportCompletionSuggestions_sync] +import com.google.cloud.discoveryengine.v1beta.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest; +import com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse; +import com.google.cloud.discoveryengine.v1beta.ImportErrorConfig; + +public class SyncImportCompletionSuggestions { + + public static void main(String[] args) throws Exception { + syncImportCompletionSuggestions(); + } + + public static void syncImportCompletionSuggestions() throws Exception { + // 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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + ImportCompletionSuggestionsRequest request = + ImportCompletionSuggestionsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + ImportCompletionSuggestionsResponse response = + completionServiceClient.importCompletionSuggestionsAsync(request).get(); + } + } +} +// [END discoveryengine_v1beta_generated_CompletionService_ImportCompletionSuggestions_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/purgecompletionsuggestions/AsyncPurgeCompletionSuggestions.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/purgecompletionsuggestions/AsyncPurgeCompletionSuggestions.java new file mode 100644 index 000000000000..c04964a37da1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/purgecompletionsuggestions/AsyncPurgeCompletionSuggestions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CompletionService_PurgeCompletionSuggestions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest; +import com.google.longrunning.Operation; + +public class AsyncPurgeCompletionSuggestions { + + public static void main(String[] args) throws Exception { + asyncPurgeCompletionSuggestions(); + } + + public static void asyncPurgeCompletionSuggestions() throws Exception { + // 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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + PurgeCompletionSuggestionsRequest request = + PurgeCompletionSuggestionsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + ApiFuture future = + completionServiceClient.purgeCompletionSuggestionsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_CompletionService_PurgeCompletionSuggestions_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/purgecompletionsuggestions/AsyncPurgeCompletionSuggestionsLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/purgecompletionsuggestions/AsyncPurgeCompletionSuggestionsLRO.java new file mode 100644 index 000000000000..3a800ec53e3a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/purgecompletionsuggestions/AsyncPurgeCompletionSuggestionsLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CompletionService_PurgeCompletionSuggestions_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1beta.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse; + +public class AsyncPurgeCompletionSuggestionsLRO { + + public static void main(String[] args) throws Exception { + asyncPurgeCompletionSuggestionsLRO(); + } + + public static void asyncPurgeCompletionSuggestionsLRO() throws Exception { + // 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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + PurgeCompletionSuggestionsRequest request = + PurgeCompletionSuggestionsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + OperationFuture + future = + completionServiceClient + .purgeCompletionSuggestionsOperationCallable() + .futureCall(request); + // Do something. + PurgeCompletionSuggestionsResponse response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_CompletionService_PurgeCompletionSuggestions_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/purgecompletionsuggestions/SyncPurgeCompletionSuggestions.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/purgecompletionsuggestions/SyncPurgeCompletionSuggestions.java new file mode 100644 index 000000000000..14afdd7f7dc9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/purgecompletionsuggestions/SyncPurgeCompletionSuggestions.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CompletionService_PurgeCompletionSuggestions_sync] +import com.google.cloud.discoveryengine.v1beta.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest; +import com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse; + +public class SyncPurgeCompletionSuggestions { + + public static void main(String[] args) throws Exception { + syncPurgeCompletionSuggestions(); + } + + public static void syncPurgeCompletionSuggestions() throws Exception { + // 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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + PurgeCompletionSuggestionsRequest request = + PurgeCompletionSuggestionsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + PurgeCompletionSuggestionsResponse response = + completionServiceClient.purgeCompletionSuggestionsAsync(request).get(); + } + } +} +// [END discoveryengine_v1beta_generated_CompletionService_PurgeCompletionSuggestions_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/AsyncAnswerQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/AsyncAnswerQuery.java index ff3aa06849d4..288d149dafbe 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/AsyncAnswerQuery.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/AsyncAnswerQuery.java @@ -24,6 +24,7 @@ import com.google.cloud.discoveryengine.v1beta.Query; import com.google.cloud.discoveryengine.v1beta.ServingConfigName; import com.google.cloud.discoveryengine.v1beta.SessionName; +import java.util.HashMap; public class AsyncAnswerQuery { @@ -58,6 +59,7 @@ public static void asyncAnswerQuery() throws Exception { AnswerQueryRequest.QueryUnderstandingSpec.newBuilder().build()) .setAsynchronousMode(true) .setUserPseudoId("userPseudoId-1155274652") + .putAllUserLabels(new HashMap()) .build(); ApiFuture future = conversationalSearchServiceClient.answerQueryCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/SyncAnswerQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/SyncAnswerQuery.java index 70025f8ef432..69a717f9bc60 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/SyncAnswerQuery.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/SyncAnswerQuery.java @@ -23,6 +23,7 @@ import com.google.cloud.discoveryengine.v1beta.Query; import com.google.cloud.discoveryengine.v1beta.ServingConfigName; import com.google.cloud.discoveryengine.v1beta.SessionName; +import java.util.HashMap; public class SyncAnswerQuery { @@ -57,6 +58,7 @@ public static void syncAnswerQuery() throws Exception { AnswerQueryRequest.QueryUnderstandingSpec.newBuilder().build()) .setAsynchronousMode(true) .setUserPseudoId("userPseudoId-1155274652") + .putAllUserLabels(new HashMap()) .build(); AnswerQueryResponse response = conversationalSearchServiceClient.answerQuery(request); } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/createdatastore/AsyncCreateDataStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/createdatastore/AsyncCreateDataStore.java index dc9690c02ae7..b970a5b1d58a 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/createdatastore/AsyncCreateDataStore.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/createdatastore/AsyncCreateDataStore.java @@ -43,6 +43,7 @@ public static void asyncCreateDataStore() throws Exception { .setDataStore(DataStore.newBuilder().build()) .setDataStoreId("dataStoreId929489618") .setCreateAdvancedSiteSearch(true) + .setSkipDefaultSchemaCreation(true) .build(); ApiFuture future = dataStoreServiceClient.createDataStoreCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/createdatastore/AsyncCreateDataStoreLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/createdatastore/AsyncCreateDataStoreLRO.java index 27d82acb9d03..a2c3bbf7b48b 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/createdatastore/AsyncCreateDataStoreLRO.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/createdatastore/AsyncCreateDataStoreLRO.java @@ -43,6 +43,7 @@ public static void asyncCreateDataStoreLRO() throws Exception { .setDataStore(DataStore.newBuilder().build()) .setDataStoreId("dataStoreId929489618") .setCreateAdvancedSiteSearch(true) + .setSkipDefaultSchemaCreation(true) .build(); OperationFuture future = dataStoreServiceClient.createDataStoreOperationCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/createdatastore/SyncCreateDataStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/createdatastore/SyncCreateDataStore.java index e4f0c21992b2..20e0413eca68 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/createdatastore/SyncCreateDataStore.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/datastoreservice/createdatastore/SyncCreateDataStore.java @@ -41,6 +41,7 @@ public static void syncCreateDataStore() throws Exception { .setDataStore(DataStore.newBuilder().build()) .setDataStoreId("dataStoreId929489618") .setCreateAdvancedSiteSearch(true) + .setSkipDefaultSchemaCreation(true) .build(); DataStore response = dataStoreServiceClient.createDataStoreAsync(request).get(); } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..b16fd0e64461 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // 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 + EvaluationServiceSettings evaluationServiceSettings = + EvaluationServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + EvaluationServiceClient evaluationServiceClient = + EvaluationServiceClient.create(evaluationServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..319c40ded4dc --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // 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 + EvaluationServiceSettings evaluationServiceSettings = + EvaluationServiceSettings.newHttpJsonBuilder().build(); + EvaluationServiceClient evaluationServiceClient = + EvaluationServiceClient.create(evaluationServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..a69c3668c433 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // 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 + EvaluationServiceSettings evaluationServiceSettings = + EvaluationServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + EvaluationServiceClient evaluationServiceClient = + EvaluationServiceClient.create(evaluationServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/AsyncCreateEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/AsyncCreateEvaluation.java new file mode 100644 index 000000000000..01171d1225eb --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/AsyncCreateEvaluation.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_CreateEvaluation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest; +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateEvaluation { + + public static void main(String[] args) throws Exception { + asyncCreateEvaluation(); + } + + public static void asyncCreateEvaluation() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEvaluation(Evaluation.newBuilder().build()) + .build(); + ApiFuture future = + evaluationServiceClient.createEvaluationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_CreateEvaluation_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/AsyncCreateEvaluationLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/AsyncCreateEvaluationLRO.java new file mode 100644 index 000000000000..b3d8934fb59c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/AsyncCreateEvaluationLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_CreateEvaluation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata; +import com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest; +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class AsyncCreateEvaluationLRO { + + public static void main(String[] args) throws Exception { + asyncCreateEvaluationLRO(); + } + + public static void asyncCreateEvaluationLRO() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEvaluation(Evaluation.newBuilder().build()) + .build(); + OperationFuture future = + evaluationServiceClient.createEvaluationOperationCallable().futureCall(request); + // Do something. + Evaluation response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_CreateEvaluation_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/SyncCreateEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/SyncCreateEvaluation.java new file mode 100644 index 000000000000..47a2f33f93f7 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/SyncCreateEvaluation.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_CreateEvaluation_sync] +import com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest; +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncCreateEvaluation { + + public static void main(String[] args) throws Exception { + syncCreateEvaluation(); + } + + public static void syncCreateEvaluation() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEvaluation(Evaluation.newBuilder().build()) + .build(); + Evaluation response = evaluationServiceClient.createEvaluationAsync(request).get(); + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_CreateEvaluation_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/SyncCreateEvaluationLocationnameEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/SyncCreateEvaluationLocationnameEvaluation.java new file mode 100644 index 000000000000..30bbbd0c6f58 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/SyncCreateEvaluationLocationnameEvaluation.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_CreateEvaluation_LocationnameEvaluation_sync] +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncCreateEvaluationLocationnameEvaluation { + + public static void main(String[] args) throws Exception { + syncCreateEvaluationLocationnameEvaluation(); + } + + public static void syncCreateEvaluationLocationnameEvaluation() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + Evaluation response = evaluationServiceClient.createEvaluationAsync(parent, evaluation).get(); + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_CreateEvaluation_LocationnameEvaluation_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/SyncCreateEvaluationStringEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/SyncCreateEvaluationStringEvaluation.java new file mode 100644 index 000000000000..52cfc5d563cf --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/createevaluation/SyncCreateEvaluationStringEvaluation.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_CreateEvaluation_StringEvaluation_sync] +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncCreateEvaluationStringEvaluation { + + public static void main(String[] args) throws Exception { + syncCreateEvaluationStringEvaluation(); + } + + public static void syncCreateEvaluationStringEvaluation() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Evaluation evaluation = Evaluation.newBuilder().build(); + Evaluation response = evaluationServiceClient.createEvaluationAsync(parent, evaluation).get(); + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_CreateEvaluation_StringEvaluation_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/getevaluation/AsyncGetEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/getevaluation/AsyncGetEvaluation.java new file mode 100644 index 000000000000..e726239585f6 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/getevaluation/AsyncGetEvaluation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_GetEvaluation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.EvaluationName; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest; + +public class AsyncGetEvaluation { + + public static void main(String[] args) throws Exception { + asyncGetEvaluation(); + } + + public static void asyncGetEvaluation() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + GetEvaluationRequest request = + GetEvaluationRequest.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .build(); + ApiFuture future = + evaluationServiceClient.getEvaluationCallable().futureCall(request); + // Do something. + Evaluation response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_GetEvaluation_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/getevaluation/SyncGetEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/getevaluation/SyncGetEvaluation.java new file mode 100644 index 000000000000..88aac619fdee --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/getevaluation/SyncGetEvaluation.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_GetEvaluation_sync] +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.EvaluationName; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest; + +public class SyncGetEvaluation { + + public static void main(String[] args) throws Exception { + syncGetEvaluation(); + } + + public static void syncGetEvaluation() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + GetEvaluationRequest request = + GetEvaluationRequest.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .build(); + Evaluation response = evaluationServiceClient.getEvaluation(request); + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_GetEvaluation_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/getevaluation/SyncGetEvaluationEvaluationname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/getevaluation/SyncGetEvaluationEvaluationname.java new file mode 100644 index 000000000000..f13598fda723 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/getevaluation/SyncGetEvaluationEvaluationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_GetEvaluation_Evaluationname_sync] +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.EvaluationName; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; + +public class SyncGetEvaluationEvaluationname { + + public static void main(String[] args) throws Exception { + syncGetEvaluationEvaluationname(); + } + + public static void syncGetEvaluationEvaluationname() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + Evaluation response = evaluationServiceClient.getEvaluation(name); + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_GetEvaluation_Evaluationname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/getevaluation/SyncGetEvaluationString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/getevaluation/SyncGetEvaluationString.java new file mode 100644 index 000000000000..d564595cf4af --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/getevaluation/SyncGetEvaluationString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_GetEvaluation_String_sync] +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.EvaluationName; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; + +public class SyncGetEvaluationString { + + public static void main(String[] args) throws Exception { + syncGetEvaluationString(); + } + + public static void syncGetEvaluationString() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + String name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString(); + Evaluation response = evaluationServiceClient.getEvaluation(name); + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_GetEvaluation_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/AsyncListEvaluationResults.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/AsyncListEvaluationResults.java new file mode 100644 index 000000000000..b3a42c70dd6d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/AsyncListEvaluationResults.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_ListEvaluationResults_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.EvaluationName; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse; + +public class AsyncListEvaluationResults { + + public static void main(String[] args) throws Exception { + asyncListEvaluationResults(); + } + + public static void asyncListEvaluationResults() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ListEvaluationResultsRequest request = + ListEvaluationResultsRequest.newBuilder() + .setEvaluation( + EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + evaluationServiceClient.listEvaluationResultsPagedCallable().futureCall(request); + // Do something. + for (ListEvaluationResultsResponse.EvaluationResult element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_ListEvaluationResults_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/AsyncListEvaluationResultsPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/AsyncListEvaluationResultsPaged.java new file mode 100644 index 000000000000..6decc1ec53c6 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/AsyncListEvaluationResultsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_ListEvaluationResults_Paged_async] +import com.google.cloud.discoveryengine.v1beta.EvaluationName; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse; +import com.google.common.base.Strings; + +public class AsyncListEvaluationResultsPaged { + + public static void main(String[] args) throws Exception { + asyncListEvaluationResultsPaged(); + } + + public static void asyncListEvaluationResultsPaged() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ListEvaluationResultsRequest request = + ListEvaluationResultsRequest.newBuilder() + .setEvaluation( + EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListEvaluationResultsResponse response = + evaluationServiceClient.listEvaluationResultsCallable().call(request); + for (ListEvaluationResultsResponse.EvaluationResult element : + response.getEvaluationResultsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_ListEvaluationResults_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/SyncListEvaluationResults.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/SyncListEvaluationResults.java new file mode 100644 index 000000000000..cfddd7f7c965 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/SyncListEvaluationResults.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_ListEvaluationResults_sync] +import com.google.cloud.discoveryengine.v1beta.EvaluationName; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse; + +public class SyncListEvaluationResults { + + public static void main(String[] args) throws Exception { + syncListEvaluationResults(); + } + + public static void syncListEvaluationResults() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ListEvaluationResultsRequest request = + ListEvaluationResultsRequest.newBuilder() + .setEvaluation( + EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (ListEvaluationResultsResponse.EvaluationResult element : + evaluationServiceClient.listEvaluationResults(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_ListEvaluationResults_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/SyncListEvaluationResultsEvaluationname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/SyncListEvaluationResultsEvaluationname.java new file mode 100644 index 000000000000..ccf18488b23d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/SyncListEvaluationResultsEvaluationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_ListEvaluationResults_Evaluationname_sync] +import com.google.cloud.discoveryengine.v1beta.EvaluationName; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse; + +public class SyncListEvaluationResultsEvaluationname { + + public static void main(String[] args) throws Exception { + syncListEvaluationResultsEvaluationname(); + } + + public static void syncListEvaluationResultsEvaluationname() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + EvaluationName evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + for (ListEvaluationResultsResponse.EvaluationResult element : + evaluationServiceClient.listEvaluationResults(evaluation).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_ListEvaluationResults_Evaluationname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/SyncListEvaluationResultsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/SyncListEvaluationResultsString.java new file mode 100644 index 000000000000..43d5ec89fda0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluationresults/SyncListEvaluationResultsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_ListEvaluationResults_String_sync] +import com.google.cloud.discoveryengine.v1beta.EvaluationName; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse; + +public class SyncListEvaluationResultsString { + + public static void main(String[] args) throws Exception { + syncListEvaluationResultsString(); + } + + public static void syncListEvaluationResultsString() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + String evaluation = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString(); + for (ListEvaluationResultsResponse.EvaluationResult element : + evaluationServiceClient.listEvaluationResults(evaluation).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_ListEvaluationResults_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/AsyncListEvaluations.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/AsyncListEvaluations.java new file mode 100644 index 000000000000..2dead84f7bf7 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/AsyncListEvaluations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_ListEvaluations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class AsyncListEvaluations { + + public static void main(String[] args) throws Exception { + asyncListEvaluations(); + } + + public static void asyncListEvaluations() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ListEvaluationsRequest request = + ListEvaluationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + evaluationServiceClient.listEvaluationsPagedCallable().futureCall(request); + // Do something. + for (Evaluation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_ListEvaluations_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/AsyncListEvaluationsPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/AsyncListEvaluationsPaged.java new file mode 100644 index 000000000000..1276a4540973 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/AsyncListEvaluationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_ListEvaluations_Paged_async] +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse; +import com.google.cloud.discoveryengine.v1beta.LocationName; +import com.google.common.base.Strings; + +public class AsyncListEvaluationsPaged { + + public static void main(String[] args) throws Exception { + asyncListEvaluationsPaged(); + } + + public static void asyncListEvaluationsPaged() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ListEvaluationsRequest request = + ListEvaluationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListEvaluationsResponse response = + evaluationServiceClient.listEvaluationsCallable().call(request); + for (Evaluation element : response.getEvaluationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_ListEvaluations_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/SyncListEvaluations.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/SyncListEvaluations.java new file mode 100644 index 000000000000..b7628a2bfffa --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/SyncListEvaluations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_ListEvaluations_sync] +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncListEvaluations { + + public static void main(String[] args) throws Exception { + syncListEvaluations(); + } + + public static void syncListEvaluations() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ListEvaluationsRequest request = + ListEvaluationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Evaluation element : evaluationServiceClient.listEvaluations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_ListEvaluations_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/SyncListEvaluationsLocationname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/SyncListEvaluationsLocationname.java new file mode 100644 index 000000000000..be1f81e96b36 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/SyncListEvaluationsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_ListEvaluations_Locationname_sync] +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncListEvaluationsLocationname { + + public static void main(String[] args) throws Exception { + syncListEvaluationsLocationname(); + } + + public static void syncListEvaluationsLocationname() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Evaluation element : evaluationServiceClient.listEvaluations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_ListEvaluations_Locationname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/SyncListEvaluationsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/SyncListEvaluationsString.java new file mode 100644 index 000000000000..3175eedc4684 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservice/listevaluations/SyncListEvaluationsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationService_ListEvaluations_String_sync] +import com.google.cloud.discoveryengine.v1beta.Evaluation; +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncListEvaluationsString { + + public static void main(String[] args) throws Exception { + syncListEvaluationsString(); + } + + public static void syncListEvaluationsString() throws Exception { + // 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Evaluation element : evaluationServiceClient.listEvaluations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_EvaluationService_ListEvaluations_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservicesettings/getevaluation/SyncGetEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservicesettings/getevaluation/SyncGetEvaluation.java new file mode 100644 index 000000000000..d900981a755e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/evaluationservicesettings/getevaluation/SyncGetEvaluation.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EvaluationServiceSettings_GetEvaluation_sync] +import com.google.cloud.discoveryengine.v1beta.EvaluationServiceSettings; +import java.time.Duration; + +public class SyncGetEvaluation { + + public static void main(String[] args) throws Exception { + syncGetEvaluation(); + } + + public static void syncGetEvaluation() throws Exception { + // 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 + EvaluationServiceSettings.Builder evaluationServiceSettingsBuilder = + EvaluationServiceSettings.newBuilder(); + evaluationServiceSettingsBuilder + .getEvaluationSettings() + .setRetrySettings( + evaluationServiceSettingsBuilder + .getEvaluationSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + EvaluationServiceSettings evaluationServiceSettings = evaluationServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_EvaluationServiceSettings_GetEvaluation_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..8818cb091ea5 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // 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 + SampleQueryServiceSettings sampleQueryServiceSettings = + SampleQueryServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SampleQueryServiceClient sampleQueryServiceClient = + SampleQueryServiceClient.create(sampleQueryServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..5839b0df9739 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // 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 + SampleQueryServiceSettings sampleQueryServiceSettings = + SampleQueryServiceSettings.newHttpJsonBuilder().build(); + SampleQueryServiceClient sampleQueryServiceClient = + SampleQueryServiceClient.create(sampleQueryServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..cbfa9a233710 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // 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 + SampleQueryServiceSettings sampleQueryServiceSettings = + SampleQueryServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SampleQueryServiceClient sampleQueryServiceClient = + SampleQueryServiceClient.create(sampleQueryServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/createsamplequery/AsyncCreateSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/createsamplequery/AsyncCreateSampleQuery.java new file mode 100644 index 000000000000..33c35c7cedc9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/createsamplequery/AsyncCreateSampleQuery.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_CreateSampleQuery_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; + +public class AsyncCreateSampleQuery { + + public static void main(String[] args) throws Exception { + asyncCreateSampleQuery(); + } + + public static void asyncCreateSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + CreateSampleQueryRequest request = + CreateSampleQueryRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setSampleQuery(SampleQuery.newBuilder().build()) + .setSampleQueryId("sampleQueryId1739022073") + .build(); + ApiFuture future = + sampleQueryServiceClient.createSampleQueryCallable().futureCall(request); + // Do something. + SampleQuery response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_CreateSampleQuery_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/createsamplequery/SyncCreateSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/createsamplequery/SyncCreateSampleQuery.java new file mode 100644 index 000000000000..dece7f3cc5fa --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/createsamplequery/SyncCreateSampleQuery.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_CreateSampleQuery_sync] +import com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; + +public class SyncCreateSampleQuery { + + public static void main(String[] args) throws Exception { + syncCreateSampleQuery(); + } + + public static void syncCreateSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + CreateSampleQueryRequest request = + CreateSampleQueryRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setSampleQuery(SampleQuery.newBuilder().build()) + .setSampleQueryId("sampleQueryId1739022073") + .build(); + SampleQuery response = sampleQueryServiceClient.createSampleQuery(request); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_CreateSampleQuery_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/createsamplequery/SyncCreateSampleQuerySamplequerysetnameSamplequeryString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/createsamplequery/SyncCreateSampleQuerySamplequerysetnameSamplequeryString.java new file mode 100644 index 000000000000..280eb952958c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/createsamplequery/SyncCreateSampleQuerySamplequerysetnameSamplequeryString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_CreateSampleQuery_SamplequerysetnameSamplequeryString_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; + +public class SyncCreateSampleQuerySamplequerysetnameSamplequeryString { + + public static void main(String[] args) throws Exception { + syncCreateSampleQuerySamplequerysetnameSamplequeryString(); + } + + public static void syncCreateSampleQuerySamplequerysetnameSamplequeryString() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + SampleQuery response = + sampleQueryServiceClient.createSampleQuery(parent, sampleQuery, sampleQueryId); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_CreateSampleQuery_SamplequerysetnameSamplequeryString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/createsamplequery/SyncCreateSampleQueryStringSamplequeryString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/createsamplequery/SyncCreateSampleQueryStringSamplequeryString.java new file mode 100644 index 000000000000..c6f394b905d3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/createsamplequery/SyncCreateSampleQueryStringSamplequeryString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_CreateSampleQuery_StringSamplequeryString_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; + +public class SyncCreateSampleQueryStringSamplequeryString { + + public static void main(String[] args) throws Exception { + syncCreateSampleQueryStringSamplequeryString(); + } + + public static void syncCreateSampleQueryStringSamplequeryString() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + String parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString(); + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + String sampleQueryId = "sampleQueryId1739022073"; + SampleQuery response = + sampleQueryServiceClient.createSampleQuery(parent, sampleQuery, sampleQueryId); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_CreateSampleQuery_StringSamplequeryString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/deletesamplequery/AsyncDeleteSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/deletesamplequery/AsyncDeleteSampleQuery.java new file mode 100644 index 000000000000..6558bc6b63f0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/deletesamplequery/AsyncDeleteSampleQuery.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_DeleteSampleQuery_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.SampleQueryName; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteSampleQuery { + + public static void main(String[] args) throws Exception { + asyncDeleteSampleQuery(); + } + + public static void asyncDeleteSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + DeleteSampleQueryRequest request = + DeleteSampleQueryRequest.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .build(); + ApiFuture future = + sampleQueryServiceClient.deleteSampleQueryCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_DeleteSampleQuery_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/deletesamplequery/SyncDeleteSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/deletesamplequery/SyncDeleteSampleQuery.java new file mode 100644 index 000000000000..4bc86f92acc1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/deletesamplequery/SyncDeleteSampleQuery.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_DeleteSampleQuery_sync] +import com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.SampleQueryName; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSampleQuery { + + public static void main(String[] args) throws Exception { + syncDeleteSampleQuery(); + } + + public static void syncDeleteSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + DeleteSampleQueryRequest request = + DeleteSampleQueryRequest.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .build(); + sampleQueryServiceClient.deleteSampleQuery(request); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_DeleteSampleQuery_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/deletesamplequery/SyncDeleteSampleQuerySamplequeryname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/deletesamplequery/SyncDeleteSampleQuerySamplequeryname.java new file mode 100644 index 000000000000..f914c537393d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/deletesamplequery/SyncDeleteSampleQuerySamplequeryname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_DeleteSampleQuery_Samplequeryname_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQueryName; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSampleQuerySamplequeryname { + + public static void main(String[] args) throws Exception { + syncDeleteSampleQuerySamplequeryname(); + } + + public static void syncDeleteSampleQuerySamplequeryname() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + sampleQueryServiceClient.deleteSampleQuery(name); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_DeleteSampleQuery_Samplequeryname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/deletesamplequery/SyncDeleteSampleQueryString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/deletesamplequery/SyncDeleteSampleQueryString.java new file mode 100644 index 000000000000..516b50ac0acf --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/deletesamplequery/SyncDeleteSampleQueryString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_DeleteSampleQuery_String_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQueryName; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSampleQueryString { + + public static void main(String[] args) throws Exception { + syncDeleteSampleQueryString(); + } + + public static void syncDeleteSampleQueryString() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + String name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString(); + sampleQueryServiceClient.deleteSampleQuery(name); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_DeleteSampleQuery_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/getsamplequery/AsyncGetSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/getsamplequery/AsyncGetSampleQuery.java new file mode 100644 index 000000000000..b208e35931e0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/getsamplequery/AsyncGetSampleQuery.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_GetSampleQuery_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryName; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; + +public class AsyncGetSampleQuery { + + public static void main(String[] args) throws Exception { + asyncGetSampleQuery(); + } + + public static void asyncGetSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + GetSampleQueryRequest request = + GetSampleQueryRequest.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .build(); + ApiFuture future = + sampleQueryServiceClient.getSampleQueryCallable().futureCall(request); + // Do something. + SampleQuery response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_GetSampleQuery_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/getsamplequery/SyncGetSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/getsamplequery/SyncGetSampleQuery.java new file mode 100644 index 000000000000..1047daeb893d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/getsamplequery/SyncGetSampleQuery.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_GetSampleQuery_sync] +import com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest; +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryName; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; + +public class SyncGetSampleQuery { + + public static void main(String[] args) throws Exception { + syncGetSampleQuery(); + } + + public static void syncGetSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + GetSampleQueryRequest request = + GetSampleQueryRequest.newBuilder() + .setName( + SampleQueryName.of( + "[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString()) + .build(); + SampleQuery response = sampleQueryServiceClient.getSampleQuery(request); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_GetSampleQuery_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/getsamplequery/SyncGetSampleQuerySamplequeryname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/getsamplequery/SyncGetSampleQuerySamplequeryname.java new file mode 100644 index 000000000000..b48c406584ec --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/getsamplequery/SyncGetSampleQuerySamplequeryname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_GetSampleQuery_Samplequeryname_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryName; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; + +public class SyncGetSampleQuerySamplequeryname { + + public static void main(String[] args) throws Exception { + syncGetSampleQuerySamplequeryname(); + } + + public static void syncGetSampleQuerySamplequeryname() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + SampleQueryName name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]"); + SampleQuery response = sampleQueryServiceClient.getSampleQuery(name); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_GetSampleQuery_Samplequeryname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/getsamplequery/SyncGetSampleQueryString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/getsamplequery/SyncGetSampleQueryString.java new file mode 100644 index 000000000000..53f186c7dabc --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/getsamplequery/SyncGetSampleQueryString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_GetSampleQuery_String_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryName; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; + +public class SyncGetSampleQueryString { + + public static void main(String[] args) throws Exception { + syncGetSampleQueryString(); + } + + public static void syncGetSampleQueryString() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + String name = + SampleQueryName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]", "[SAMPLE_QUERY]") + .toString(); + SampleQuery response = sampleQueryServiceClient.getSampleQuery(name); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_GetSampleQuery_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/importsamplequeries/AsyncImportSampleQueries.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/importsamplequeries/AsyncImportSampleQueries.java new file mode 100644 index 000000000000..d97614d89928 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/importsamplequeries/AsyncImportSampleQueries.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_ImportSampleQueries_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.ImportErrorConfig; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; +import com.google.longrunning.Operation; + +public class AsyncImportSampleQueries { + + public static void main(String[] args) throws Exception { + asyncImportSampleQueries(); + } + + public static void asyncImportSampleQueries() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + ImportSampleQueriesRequest request = + ImportSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + ApiFuture future = + sampleQueryServiceClient.importSampleQueriesCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_ImportSampleQueries_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/importsamplequeries/AsyncImportSampleQueriesLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/importsamplequeries/AsyncImportSampleQueriesLRO.java new file mode 100644 index 000000000000..099564ab92d1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/importsamplequeries/AsyncImportSampleQueriesLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_ImportSampleQueries_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1beta.ImportErrorConfig; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; + +public class AsyncImportSampleQueriesLRO { + + public static void main(String[] args) throws Exception { + asyncImportSampleQueriesLRO(); + } + + public static void asyncImportSampleQueriesLRO() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + ImportSampleQueriesRequest request = + ImportSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + OperationFuture future = + sampleQueryServiceClient.importSampleQueriesOperationCallable().futureCall(request); + // Do something. + ImportSampleQueriesResponse response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_ImportSampleQueries_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/importsamplequeries/SyncImportSampleQueries.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/importsamplequeries/SyncImportSampleQueries.java new file mode 100644 index 000000000000..dec8cebe75f0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/importsamplequeries/SyncImportSampleQueries.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_ImportSampleQueries_sync] +import com.google.cloud.discoveryengine.v1beta.ImportErrorConfig; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; + +public class SyncImportSampleQueries { + + public static void main(String[] args) throws Exception { + syncImportSampleQueries(); + } + + public static void syncImportSampleQueries() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + ImportSampleQueriesRequest request = + ImportSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + ImportSampleQueriesResponse response = + sampleQueryServiceClient.importSampleQueriesAsync(request).get(); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_ImportSampleQueries_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/AsyncListSampleQueries.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/AsyncListSampleQueries.java new file mode 100644 index 000000000000..6aad3e683493 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/AsyncListSampleQueries.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_ListSampleQueries_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; + +public class AsyncListSampleQueries { + + public static void main(String[] args) throws Exception { + asyncListSampleQueries(); + } + + public static void asyncListSampleQueries() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + ListSampleQueriesRequest request = + ListSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + sampleQueryServiceClient.listSampleQueriesPagedCallable().futureCall(request); + // Do something. + for (SampleQuery element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_ListSampleQueries_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/AsyncListSampleQueriesPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/AsyncListSampleQueriesPaged.java new file mode 100644 index 000000000000..e9fda1fd6b32 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/AsyncListSampleQueriesPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_ListSampleQueries_Paged_async] +import com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse; +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; +import com.google.common.base.Strings; + +public class AsyncListSampleQueriesPaged { + + public static void main(String[] args) throws Exception { + asyncListSampleQueriesPaged(); + } + + public static void asyncListSampleQueriesPaged() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + ListSampleQueriesRequest request = + ListSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSampleQueriesResponse response = + sampleQueryServiceClient.listSampleQueriesCallable().call(request); + for (SampleQuery element : response.getSampleQueriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_ListSampleQueries_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/SyncListSampleQueries.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/SyncListSampleQueries.java new file mode 100644 index 000000000000..4bd3690d4948 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/SyncListSampleQueries.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_ListSampleQueries_sync] +import com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest; +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; + +public class SyncListSampleQueries { + + public static void main(String[] args) throws Exception { + syncListSampleQueries(); + } + + public static void syncListSampleQueries() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + ListSampleQueriesRequest request = + ListSampleQueriesRequest.newBuilder() + .setParent( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (SampleQuery element : sampleQueryServiceClient.listSampleQueries(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_ListSampleQueries_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/SyncListSampleQueriesSamplequerysetname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/SyncListSampleQueriesSamplequerysetname.java new file mode 100644 index 000000000000..8dc9e8789c66 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/SyncListSampleQueriesSamplequerysetname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_ListSampleQueries_Samplequerysetname_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; + +public class SyncListSampleQueriesSamplequerysetname { + + public static void main(String[] args) throws Exception { + syncListSampleQueriesSamplequerysetname(); + } + + public static void syncListSampleQueriesSamplequerysetname() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + SampleQuerySetName parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + for (SampleQuery element : sampleQueryServiceClient.listSampleQueries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_ListSampleQueries_Samplequerysetname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/SyncListSampleQueriesString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/SyncListSampleQueriesString.java new file mode 100644 index 000000000000..39e3cf660a12 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/listsamplequeries/SyncListSampleQueriesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_ListSampleQueries_String_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; + +public class SyncListSampleQueriesString { + + public static void main(String[] args) throws Exception { + syncListSampleQueriesString(); + } + + public static void syncListSampleQueriesString() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + String parent = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString(); + for (SampleQuery element : sampleQueryServiceClient.listSampleQueries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_ListSampleQueries_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/updatesamplequery/AsyncUpdateSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/updatesamplequery/AsyncUpdateSampleQuery.java new file mode 100644 index 000000000000..f0f66629f44f --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/updatesamplequery/AsyncUpdateSampleQuery.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_UpdateSampleQuery_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSampleQuery { + + public static void main(String[] args) throws Exception { + asyncUpdateSampleQuery(); + } + + public static void asyncUpdateSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + UpdateSampleQueryRequest request = + UpdateSampleQueryRequest.newBuilder() + .setSampleQuery(SampleQuery.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + sampleQueryServiceClient.updateSampleQueryCallable().futureCall(request); + // Do something. + SampleQuery response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_UpdateSampleQuery_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/updatesamplequery/SyncUpdateSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/updatesamplequery/SyncUpdateSampleQuery.java new file mode 100644 index 000000000000..073ecedf42a8 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/updatesamplequery/SyncUpdateSampleQuery.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_UpdateSampleQuery_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSampleQuery { + + public static void main(String[] args) throws Exception { + syncUpdateSampleQuery(); + } + + public static void syncUpdateSampleQuery() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + UpdateSampleQueryRequest request = + UpdateSampleQueryRequest.newBuilder() + .setSampleQuery(SampleQuery.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + SampleQuery response = sampleQueryServiceClient.updateSampleQuery(request); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_UpdateSampleQuery_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/updatesamplequery/SyncUpdateSampleQuerySamplequeryFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/updatesamplequery/SyncUpdateSampleQuerySamplequeryFieldmask.java new file mode 100644 index 000000000000..7fcaee622a95 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservice/updatesamplequery/SyncUpdateSampleQuerySamplequeryFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryService_UpdateSampleQuery_SamplequeryFieldmask_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuery; +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSampleQuerySamplequeryFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSampleQuerySamplequeryFieldmask(); + } + + public static void syncUpdateSampleQuerySamplequeryFieldmask() throws Exception { + // 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 (SampleQueryServiceClient sampleQueryServiceClient = SampleQueryServiceClient.create()) { + SampleQuery sampleQuery = SampleQuery.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + SampleQuery response = sampleQueryServiceClient.updateSampleQuery(sampleQuery, updateMask); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQueryService_UpdateSampleQuery_SamplequeryFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservicesettings/getsamplequery/SyncGetSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservicesettings/getsamplequery/SyncGetSampleQuery.java new file mode 100644 index 000000000000..9da706c9307f --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequeryservicesettings/getsamplequery/SyncGetSampleQuery.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryServiceSettings_GetSampleQuery_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQueryServiceSettings; +import java.time.Duration; + +public class SyncGetSampleQuery { + + public static void main(String[] args) throws Exception { + syncGetSampleQuery(); + } + + public static void syncGetSampleQuery() throws Exception { + // 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 + SampleQueryServiceSettings.Builder sampleQueryServiceSettingsBuilder = + SampleQueryServiceSettings.newBuilder(); + sampleQueryServiceSettingsBuilder + .getSampleQuerySettings() + .setRetrySettings( + sampleQueryServiceSettingsBuilder + .getSampleQuerySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SampleQueryServiceSettings sampleQueryServiceSettings = + sampleQueryServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_SampleQueryServiceSettings_GetSampleQuery_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..ba3782ca7747 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // 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 + SampleQuerySetServiceSettings sampleQuerySetServiceSettings = + SampleQuerySetServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..0021d963b919 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // 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 + SampleQuerySetServiceSettings sampleQuerySetServiceSettings = + SampleQuerySetServiceSettings.newHttpJsonBuilder().build(); + SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..bb594cac9bb7 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // 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 + SampleQuerySetServiceSettings sampleQuerySetServiceSettings = + SampleQuerySetServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create(sampleQuerySetServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/createsamplequeryset/AsyncCreateSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/createsamplequeryset/AsyncCreateSampleQuerySet.java new file mode 100644 index 000000000000..347244a78fc3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/createsamplequeryset/AsyncCreateSampleQuerySet.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_CreateSampleQuerySet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.LocationName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; + +public class AsyncCreateSampleQuerySet { + + public static void main(String[] args) throws Exception { + asyncCreateSampleQuerySet(); + } + + public static void asyncCreateSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + CreateSampleQuerySetRequest request = + CreateSampleQuerySetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSampleQuerySet(SampleQuerySet.newBuilder().build()) + .setSampleQuerySetId("sampleQuerySetId1320431231") + .build(); + ApiFuture future = + sampleQuerySetServiceClient.createSampleQuerySetCallable().futureCall(request); + // Do something. + SampleQuerySet response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_CreateSampleQuerySet_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySet.java new file mode 100644 index 000000000000..cfd3fde3f518 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySet.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_CreateSampleQuerySet_sync] +import com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.LocationName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; + +public class SyncCreateSampleQuerySet { + + public static void main(String[] args) throws Exception { + syncCreateSampleQuerySet(); + } + + public static void syncCreateSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + CreateSampleQuerySetRequest request = + CreateSampleQuerySetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSampleQuerySet(SampleQuerySet.newBuilder().build()) + .setSampleQuerySetId("sampleQuerySetId1320431231") + .build(); + SampleQuerySet response = sampleQuerySetServiceClient.createSampleQuerySet(request); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_CreateSampleQuerySet_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySetLocationnameSamplequerysetString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySetLocationnameSamplequerysetString.java new file mode 100644 index 000000000000..23e6fe74eb87 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySetLocationnameSamplequerysetString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_CreateSampleQuerySet_LocationnameSamplequerysetString_sync] +import com.google.cloud.discoveryengine.v1beta.LocationName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; + +public class SyncCreateSampleQuerySetLocationnameSamplequerysetString { + + public static void main(String[] args) throws Exception { + syncCreateSampleQuerySetLocationnameSamplequerysetString(); + } + + public static void syncCreateSampleQuerySetLocationnameSamplequerysetString() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + SampleQuerySet response = + sampleQuerySetServiceClient.createSampleQuerySet( + parent, sampleQuerySet, sampleQuerySetId); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_CreateSampleQuerySet_LocationnameSamplequerysetString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySetStringSamplequerysetString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySetStringSamplequerysetString.java new file mode 100644 index 000000000000..8676939d6323 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/createsamplequeryset/SyncCreateSampleQuerySetStringSamplequerysetString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_CreateSampleQuerySet_StringSamplequerysetString_sync] +import com.google.cloud.discoveryengine.v1beta.LocationName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; + +public class SyncCreateSampleQuerySetStringSamplequerysetString { + + public static void main(String[] args) throws Exception { + syncCreateSampleQuerySetStringSamplequerysetString(); + } + + public static void syncCreateSampleQuerySetStringSamplequerysetString() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + String sampleQuerySetId = "sampleQuerySetId1320431231"; + SampleQuerySet response = + sampleQuerySetServiceClient.createSampleQuerySet( + parent, sampleQuerySet, sampleQuerySetId); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_CreateSampleQuerySet_StringSamplequerysetString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/deletesamplequeryset/AsyncDeleteSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/deletesamplequeryset/AsyncDeleteSampleQuerySet.java new file mode 100644 index 000000000000..f3afdead9ad3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/deletesamplequeryset/AsyncDeleteSampleQuerySet.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_DeleteSampleQuerySet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteSampleQuerySet { + + public static void main(String[] args) throws Exception { + asyncDeleteSampleQuerySet(); + } + + public static void asyncDeleteSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + DeleteSampleQuerySetRequest request = + DeleteSampleQuerySetRequest.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .build(); + ApiFuture future = + sampleQuerySetServiceClient.deleteSampleQuerySetCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_DeleteSampleQuerySet_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySet.java new file mode 100644 index 000000000000..39d11cfd3822 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_DeleteSampleQuerySet_sync] +import com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSampleQuerySet { + + public static void main(String[] args) throws Exception { + syncDeleteSampleQuerySet(); + } + + public static void syncDeleteSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + DeleteSampleQuerySetRequest request = + DeleteSampleQuerySetRequest.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .build(); + sampleQuerySetServiceClient.deleteSampleQuerySet(request); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_DeleteSampleQuerySet_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySetSamplequerysetname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySetSamplequerysetname.java new file mode 100644 index 000000000000..5ea402cc0704 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySetSamplequerysetname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_DeleteSampleQuerySet_Samplequerysetname_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSampleQuerySetSamplequerysetname { + + public static void main(String[] args) throws Exception { + syncDeleteSampleQuerySetSamplequerysetname(); + } + + public static void syncDeleteSampleQuerySetSamplequerysetname() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + sampleQuerySetServiceClient.deleteSampleQuerySet(name); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_DeleteSampleQuerySet_Samplequerysetname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySetString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySetString.java new file mode 100644 index 000000000000..7f21b808b212 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/deletesamplequeryset/SyncDeleteSampleQuerySetString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_DeleteSampleQuerySet_String_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSampleQuerySetString { + + public static void main(String[] args) throws Exception { + syncDeleteSampleQuerySetString(); + } + + public static void syncDeleteSampleQuerySetString() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + String name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString(); + sampleQuerySetServiceClient.deleteSampleQuerySet(name); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_DeleteSampleQuerySet_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/getsamplequeryset/AsyncGetSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/getsamplequeryset/AsyncGetSampleQuerySet.java new file mode 100644 index 000000000000..465aded2e380 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/getsamplequeryset/AsyncGetSampleQuerySet.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_GetSampleQuerySet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; + +public class AsyncGetSampleQuerySet { + + public static void main(String[] args) throws Exception { + asyncGetSampleQuerySet(); + } + + public static void asyncGetSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + GetSampleQuerySetRequest request = + GetSampleQuerySetRequest.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .build(); + ApiFuture future = + sampleQuerySetServiceClient.getSampleQuerySetCallable().futureCall(request); + // Do something. + SampleQuerySet response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_GetSampleQuerySet_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySet.java new file mode 100644 index 000000000000..23fc201f9ac5 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_GetSampleQuerySet_sync] +import com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; + +public class SyncGetSampleQuerySet { + + public static void main(String[] args) throws Exception { + syncGetSampleQuerySet(); + } + + public static void syncGetSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + GetSampleQuerySetRequest request = + GetSampleQuerySetRequest.newBuilder() + .setName( + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString()) + .build(); + SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(request); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_GetSampleQuerySet_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySetSamplequerysetname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySetSamplequerysetname.java new file mode 100644 index 000000000000..13fdfdedb828 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySetSamplequerysetname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_GetSampleQuerySet_Samplequerysetname_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; + +public class SyncGetSampleQuerySetSamplequerysetname { + + public static void main(String[] args) throws Exception { + syncGetSampleQuerySetSamplequerysetname(); + } + + public static void syncGetSampleQuerySetSamplequerysetname() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + SampleQuerySetName name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]"); + SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(name); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_GetSampleQuerySet_Samplequerysetname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySetString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySetString.java new file mode 100644 index 000000000000..f5aaea01d5e5 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/getsamplequeryset/SyncGetSampleQuerySetString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_GetSampleQuerySet_String_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; + +public class SyncGetSampleQuerySetString { + + public static void main(String[] args) throws Exception { + syncGetSampleQuerySetString(); + } + + public static void syncGetSampleQuerySetString() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + String name = + SampleQuerySetName.of("[PROJECT]", "[LOCATION]", "[SAMPLE_QUERY_SET]").toString(); + SampleQuerySet response = sampleQuerySetServiceClient.getSampleQuerySet(name); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_GetSampleQuerySet_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/AsyncListSampleQuerySets.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/AsyncListSampleQuerySets.java new file mode 100644 index 000000000000..a28ab63cdf5c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/AsyncListSampleQuerySets.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_ListSampleQuerySets_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest; +import com.google.cloud.discoveryengine.v1beta.LocationName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; + +public class AsyncListSampleQuerySets { + + public static void main(String[] args) throws Exception { + asyncListSampleQuerySets(); + } + + public static void asyncListSampleQuerySets() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + ListSampleQuerySetsRequest request = + ListSampleQuerySetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + sampleQuerySetServiceClient.listSampleQuerySetsPagedCallable().futureCall(request); + // Do something. + for (SampleQuerySet element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_ListSampleQuerySets_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/AsyncListSampleQuerySetsPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/AsyncListSampleQuerySetsPaged.java new file mode 100644 index 000000000000..33895ab53347 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/AsyncListSampleQuerySetsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_ListSampleQuerySets_Paged_async] +import com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest; +import com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse; +import com.google.cloud.discoveryengine.v1beta.LocationName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; +import com.google.common.base.Strings; + +public class AsyncListSampleQuerySetsPaged { + + public static void main(String[] args) throws Exception { + asyncListSampleQuerySetsPaged(); + } + + public static void asyncListSampleQuerySetsPaged() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + ListSampleQuerySetsRequest request = + ListSampleQuerySetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSampleQuerySetsResponse response = + sampleQuerySetServiceClient.listSampleQuerySetsCallable().call(request); + for (SampleQuerySet element : response.getSampleQuerySetsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_ListSampleQuerySets_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySets.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySets.java new file mode 100644 index 000000000000..88fc1365b9c5 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySets.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_ListSampleQuerySets_sync] +import com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest; +import com.google.cloud.discoveryengine.v1beta.LocationName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; + +public class SyncListSampleQuerySets { + + public static void main(String[] args) throws Exception { + syncListSampleQuerySets(); + } + + public static void syncListSampleQuerySets() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + ListSampleQuerySetsRequest request = + ListSampleQuerySetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (SampleQuerySet element : + sampleQuerySetServiceClient.listSampleQuerySets(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_ListSampleQuerySets_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySetsLocationname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySetsLocationname.java new file mode 100644 index 000000000000..8a3d114672d8 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySetsLocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_ListSampleQuerySets_Locationname_sync] +import com.google.cloud.discoveryengine.v1beta.LocationName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; + +public class SyncListSampleQuerySetsLocationname { + + public static void main(String[] args) throws Exception { + syncListSampleQuerySetsLocationname(); + } + + public static void syncListSampleQuerySetsLocationname() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (SampleQuerySet element : + sampleQuerySetServiceClient.listSampleQuerySets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_ListSampleQuerySets_Locationname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySetsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySetsString.java new file mode 100644 index 000000000000..5c94776a563b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/listsamplequerysets/SyncListSampleQuerySetsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_ListSampleQuerySets_String_sync] +import com.google.cloud.discoveryengine.v1beta.LocationName; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; + +public class SyncListSampleQuerySetsString { + + public static void main(String[] args) throws Exception { + syncListSampleQuerySetsString(); + } + + public static void syncListSampleQuerySetsString() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (SampleQuerySet element : + sampleQuerySetServiceClient.listSampleQuerySets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_ListSampleQuerySets_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/updatesamplequeryset/AsyncUpdateSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/updatesamplequeryset/AsyncUpdateSampleQuerySet.java new file mode 100644 index 000000000000..f294f26fdeab --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/updatesamplequeryset/AsyncUpdateSampleQuerySet.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_UpdateSampleQuerySet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; +import com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSampleQuerySet { + + public static void main(String[] args) throws Exception { + asyncUpdateSampleQuerySet(); + } + + public static void asyncUpdateSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + UpdateSampleQuerySetRequest request = + UpdateSampleQuerySetRequest.newBuilder() + .setSampleQuerySet(SampleQuerySet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + sampleQuerySetServiceClient.updateSampleQuerySetCallable().futureCall(request); + // Do something. + SampleQuerySet response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_UpdateSampleQuerySet_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/updatesamplequeryset/SyncUpdateSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/updatesamplequeryset/SyncUpdateSampleQuerySet.java new file mode 100644 index 000000000000..6a6896e39af5 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/updatesamplequeryset/SyncUpdateSampleQuerySet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_UpdateSampleQuerySet_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; +import com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSampleQuerySet { + + public static void main(String[] args) throws Exception { + syncUpdateSampleQuerySet(); + } + + public static void syncUpdateSampleQuerySet() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + UpdateSampleQuerySetRequest request = + UpdateSampleQuerySetRequest.newBuilder() + .setSampleQuerySet(SampleQuerySet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + SampleQuerySet response = sampleQuerySetServiceClient.updateSampleQuerySet(request); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_UpdateSampleQuerySet_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/updatesamplequeryset/SyncUpdateSampleQuerySetSamplequerysetFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/updatesamplequeryset/SyncUpdateSampleQuerySetSamplequerysetFieldmask.java new file mode 100644 index 000000000000..fb8198b03206 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservice/updatesamplequeryset/SyncUpdateSampleQuerySetSamplequerysetFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetService_UpdateSampleQuerySet_SamplequerysetFieldmask_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuerySet; +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSampleQuerySetSamplequerysetFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSampleQuerySetSamplequerysetFieldmask(); + } + + public static void syncUpdateSampleQuerySetSamplequerysetFieldmask() throws Exception { + // 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 (SampleQuerySetServiceClient sampleQuerySetServiceClient = + SampleQuerySetServiceClient.create()) { + SampleQuerySet sampleQuerySet = SampleQuerySet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + SampleQuerySet response = + sampleQuerySetServiceClient.updateSampleQuerySet(sampleQuerySet, updateMask); + } + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetService_UpdateSampleQuerySet_SamplequerysetFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservicesettings/getsamplequeryset/SyncGetSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservicesettings/getsamplequeryset/SyncGetSampleQuerySet.java new file mode 100644 index 000000000000..adc141bf90bd --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/samplequerysetservicesettings/getsamplequeryset/SyncGetSampleQuerySet.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetServiceSettings_GetSampleQuerySet_sync] +import com.google.cloud.discoveryengine.v1beta.SampleQuerySetServiceSettings; +import java.time.Duration; + +public class SyncGetSampleQuerySet { + + public static void main(String[] args) throws Exception { + syncGetSampleQuerySet(); + } + + public static void syncGetSampleQuerySet() throws Exception { + // 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 + SampleQuerySetServiceSettings.Builder sampleQuerySetServiceSettingsBuilder = + SampleQuerySetServiceSettings.newBuilder(); + sampleQuerySetServiceSettingsBuilder + .getSampleQuerySetSettings() + .setRetrySettings( + sampleQuerySetServiceSettingsBuilder + .getSampleQuerySetSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SampleQuerySetServiceSettings sampleQuerySetServiceSettings = + sampleQuerySetServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetServiceSettings_GetSampleQuerySet_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java index 2b021a087b99..ec0595835a06 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java @@ -23,6 +23,7 @@ import com.google.cloud.discoveryengine.v1beta.SearchResponse; import com.google.cloud.discoveryengine.v1beta.SearchServiceClient; import com.google.cloud.discoveryengine.v1beta.ServingConfigName; +import com.google.cloud.discoveryengine.v1beta.SessionName; import com.google.cloud.discoveryengine.v1beta.UserInfo; import com.google.protobuf.Value; import java.util.ArrayList; @@ -61,6 +62,8 @@ public static void asyncSearch() throws Exception { .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") .setUserInfo(UserInfo.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .setRegionCode("regionCode-1991004415") .addAllFacetSpecs(new ArrayList()) .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) .putAllParams(new HashMap()) @@ -72,6 +75,14 @@ public static void asyncSearch() throws Exception { .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) + .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .build(); ApiFuture future = searchServiceClient.searchPagedCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java index 83f87be36ce8..7b902c650dc4 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java @@ -22,6 +22,7 @@ import com.google.cloud.discoveryengine.v1beta.SearchResponse; import com.google.cloud.discoveryengine.v1beta.SearchServiceClient; import com.google.cloud.discoveryengine.v1beta.ServingConfigName; +import com.google.cloud.discoveryengine.v1beta.SessionName; import com.google.cloud.discoveryengine.v1beta.UserInfo; import com.google.common.base.Strings; import com.google.protobuf.Value; @@ -61,6 +62,8 @@ public static void asyncSearchPaged() throws Exception { .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") .setUserInfo(UserInfo.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .setRegionCode("regionCode-1991004415") .addAllFacetSpecs(new ArrayList()) .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) .putAllParams(new HashMap()) @@ -72,6 +75,14 @@ public static void asyncSearchPaged() throws Exception { .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) + .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .build(); while (true) { SearchResponse response = searchServiceClient.searchCallable().call(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java index b13a905dddca..245c5b9b2df6 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java @@ -22,6 +22,7 @@ import com.google.cloud.discoveryengine.v1beta.SearchResponse; import com.google.cloud.discoveryengine.v1beta.SearchServiceClient; import com.google.cloud.discoveryengine.v1beta.ServingConfigName; +import com.google.cloud.discoveryengine.v1beta.SessionName; import com.google.cloud.discoveryengine.v1beta.UserInfo; import com.google.protobuf.Value; import java.util.ArrayList; @@ -60,6 +61,8 @@ public static void syncSearch() throws Exception { .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") .setUserInfo(UserInfo.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .setRegionCode("regionCode-1991004415") .addAllFacetSpecs(new ArrayList()) .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) .putAllParams(new HashMap()) @@ -71,6 +74,14 @@ public static void syncSearch() throws Exception { .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) + .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .build(); for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { // doThingsWith(element); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/evaluationservicestubsettings/getevaluation/SyncGetEvaluation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/evaluationservicestubsettings/getevaluation/SyncGetEvaluation.java new file mode 100644 index 000000000000..e372f39870ff --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/evaluationservicestubsettings/getevaluation/SyncGetEvaluation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub.samples; + +// [START discoveryengine_v1beta_generated_EvaluationServiceStubSettings_GetEvaluation_sync] +import com.google.cloud.discoveryengine.v1beta.stub.EvaluationServiceStubSettings; +import java.time.Duration; + +public class SyncGetEvaluation { + + public static void main(String[] args) throws Exception { + syncGetEvaluation(); + } + + public static void syncGetEvaluation() throws Exception { + // 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 + EvaluationServiceStubSettings.Builder evaluationServiceSettingsBuilder = + EvaluationServiceStubSettings.newBuilder(); + evaluationServiceSettingsBuilder + .getEvaluationSettings() + .setRetrySettings( + evaluationServiceSettingsBuilder + .getEvaluationSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + EvaluationServiceStubSettings evaluationServiceSettings = + evaluationServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_EvaluationServiceStubSettings_GetEvaluation_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/samplequeryservicestubsettings/getsamplequery/SyncGetSampleQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/samplequeryservicestubsettings/getsamplequery/SyncGetSampleQuery.java new file mode 100644 index 000000000000..b92aa45d2a3b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/samplequeryservicestubsettings/getsamplequery/SyncGetSampleQuery.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub.samples; + +// [START discoveryengine_v1beta_generated_SampleQueryServiceStubSettings_GetSampleQuery_sync] +import com.google.cloud.discoveryengine.v1beta.stub.SampleQueryServiceStubSettings; +import java.time.Duration; + +public class SyncGetSampleQuery { + + public static void main(String[] args) throws Exception { + syncGetSampleQuery(); + } + + public static void syncGetSampleQuery() throws Exception { + // 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 + SampleQueryServiceStubSettings.Builder sampleQueryServiceSettingsBuilder = + SampleQueryServiceStubSettings.newBuilder(); + sampleQueryServiceSettingsBuilder + .getSampleQuerySettings() + .setRetrySettings( + sampleQueryServiceSettingsBuilder + .getSampleQuerySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SampleQueryServiceStubSettings sampleQueryServiceSettings = + sampleQueryServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_SampleQueryServiceStubSettings_GetSampleQuery_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/samplequerysetservicestubsettings/getsamplequeryset/SyncGetSampleQuerySet.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/samplequerysetservicestubsettings/getsamplequeryset/SyncGetSampleQuerySet.java new file mode 100644 index 000000000000..c924bfdb46fb --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/samplequerysetservicestubsettings/getsamplequeryset/SyncGetSampleQuerySet.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub.samples; + +// [START discoveryengine_v1beta_generated_SampleQuerySetServiceStubSettings_GetSampleQuerySet_sync] +import com.google.cloud.discoveryengine.v1beta.stub.SampleQuerySetServiceStubSettings; +import java.time.Duration; + +public class SyncGetSampleQuerySet { + + public static void main(String[] args) throws Exception { + syncGetSampleQuerySet(); + } + + public static void syncGetSampleQuerySet() throws Exception { + // 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 + SampleQuerySetServiceStubSettings.Builder sampleQuerySetServiceSettingsBuilder = + SampleQuerySetServiceStubSettings.newBuilder(); + sampleQuerySetServiceSettingsBuilder + .getSampleQuerySetSettings() + .setRetrySettings( + sampleQuerySetServiceSettingsBuilder + .getSampleQuerySetSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SampleQuerySetServiceStubSettings sampleQuerySetServiceSettings = + sampleQuerySetServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_SampleQuerySetServiceStubSettings_GetSampleQuerySet_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/purgeuserevents/AsyncPurgeUserEvents.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/purgeuserevents/AsyncPurgeUserEvents.java new file mode 100644 index 000000000000..3f399627a0e0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/purgeuserevents/AsyncPurgeUserEvents.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserEventService_PurgeUserEvents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest; +import com.google.cloud.discoveryengine.v1beta.UserEventServiceClient; +import com.google.longrunning.Operation; + +public class AsyncPurgeUserEvents { + + public static void main(String[] args) throws Exception { + asyncPurgeUserEvents(); + } + + public static void asyncPurgeUserEvents() throws Exception { + // 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 (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + ApiFuture future = + userEventServiceClient.purgeUserEventsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_UserEventService_PurgeUserEvents_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/purgeuserevents/AsyncPurgeUserEventsLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/purgeuserevents/AsyncPurgeUserEventsLRO.java new file mode 100644 index 000000000000..cb65c07072a5 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/purgeuserevents/AsyncPurgeUserEventsLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserEventService_PurgeUserEvents_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse; +import com.google.cloud.discoveryengine.v1beta.UserEventServiceClient; + +public class AsyncPurgeUserEventsLRO { + + public static void main(String[] args) throws Exception { + asyncPurgeUserEventsLRO(); + } + + public static void asyncPurgeUserEventsLRO() throws Exception { + // 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 (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + OperationFuture future = + userEventServiceClient.purgeUserEventsOperationCallable().futureCall(request); + // Do something. + PurgeUserEventsResponse response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_UserEventService_PurgeUserEvents_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/purgeuserevents/SyncPurgeUserEvents.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/purgeuserevents/SyncPurgeUserEvents.java new file mode 100644 index 000000000000..a814a145ef43 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/purgeuserevents/SyncPurgeUserEvents.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserEventService_PurgeUserEvents_sync] +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest; +import com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse; +import com.google.cloud.discoveryengine.v1beta.UserEventServiceClient; + +public class SyncPurgeUserEvents { + + public static void main(String[] args) throws Exception { + syncPurgeUserEvents(); + } + + public static void syncPurgeUserEvents() throws Exception { + // 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 (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + PurgeUserEventsResponse response = userEventServiceClient.purgeUserEventsAsync(request).get(); + } + } +} +// [END discoveryengine_v1beta_generated_UserEventService_PurgeUserEvents_sync] diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 17c60c1e6afe..6f16aa090c54 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/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-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStubSettings.java b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStubSettings.java index 64eebbc73a95..0693e359d24f 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStubSettings.java +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStubSettings.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; @@ -670,6 +671,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "edgecontainer.googleapis.com:443"; } diff --git a/java-dlp/README.md b/java-dlp/README.md index 3a8d9eb17eda..065ab7263ae4 100644 --- a/java-dlp/README.md +++ b/java-dlp/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-dlp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.50.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-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java index 0bed4537c17d..2a0f40506010 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java @@ -48,6 +48,7 @@ import com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest; import com.google.privacy.dlp.v2.DeleteDlpJobRequest; +import com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.DeleteInspectTemplateRequest; import com.google.privacy.dlp.v2.DeleteJobTriggerRequest; import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; @@ -56,12 +57,15 @@ import com.google.privacy.dlp.v2.DiscoveryConfigName; import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.DlpJobName; +import com.google.privacy.dlp.v2.FileStoreDataProfile; +import com.google.privacy.dlp.v2.FileStoreDataProfileName; import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetConnectionRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; +import com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; @@ -87,6 +91,8 @@ import com.google.privacy.dlp.v2.ListDiscoveryConfigsResponse; import com.google.privacy.dlp.v2.ListDlpJobsRequest; import com.google.privacy.dlp.v2.ListDlpJobsResponse; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse; import com.google.privacy.dlp.v2.ListInfoTypesRequest; import com.google.privacy.dlp.v2.ListInfoTypesResponse; import com.google.privacy.dlp.v2.ListInspectTemplatesRequest; @@ -964,6 +970,65 @@ * * * + *

      ListFileStoreDataProfiles + *

      Lists file store data profiles for an organization. + * + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listFileStoreDataProfiles(ListFileStoreDataProfilesRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listFileStoreDataProfiles(LocationName parent) + *

      • listFileStoreDataProfiles(OrganizationLocationName parent) + *

      • listFileStoreDataProfiles(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listFileStoreDataProfilesPagedCallable() + *

      • listFileStoreDataProfilesCallable() + *

      + * + * + * + *

      GetFileStoreDataProfile + *

      Gets a file store data profile. + * + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getFileStoreDataProfile(GetFileStoreDataProfileRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getFileStoreDataProfile(ProjectDataProfileName name) + *

      • getFileStoreDataProfile(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getFileStoreDataProfileCallable() + *

      + * + * + * + *

      DeleteFileStoreDataProfile + *

      Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration. + * + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • deleteFileStoreDataProfile(DeleteFileStoreDataProfileRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • deleteFileStoreDataProfile(FileStoreDataProfileName name) + *

      • deleteFileStoreDataProfile(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • deleteFileStoreDataProfileCallable() + *

      + * + * + * *

      GetTableDataProfile *

      Gets a table data profile. * @@ -1064,6 +1129,7 @@ *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      *
        *
      • createConnection(LocationName parent, Connection connection) + *

      • createConnection(OrganizationLocationName parent, Connection connection) *

      • createConnection(String parent, Connection connection) *

      *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      @@ -1093,7 +1159,7 @@ * * *

      ListConnections - *

      Lists Connections in a parent. + *

      Lists Connections in a parent. Use SearchConnections to see all connections within an organization. * *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      *
        @@ -1102,6 +1168,7 @@ *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        *
          *
        • listConnections(LocationName parent) + *

        • listConnections(OrganizationLocationName parent) *

        • listConnections(String parent) *

        *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        @@ -1122,6 +1189,7 @@ *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        *
          *
        • searchConnections(LocationName parent) + *

        • searchConnections(OrganizationLocationName parent) *

        • searchConnections(String parent) *

        *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        @@ -1611,7 +1679,7 @@ public final ReidentifyContentResponse reidentifyContent(ReidentifyContentReques * * @param parent The parent resource name. *

        The format of this value is as follows: - *

        locations/<var>LOCATION_ID</var> + *

        `locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListInfoTypesResponse listInfoTypes(String parent) { @@ -1708,14 +1776,10 @@ public final UnaryCallable listInfo *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -1757,14 +1821,10 @@ public final InspectTemplate createInspectTemplate( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -1806,14 +1866,10 @@ public final InspectTemplate createInspectTemplate( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -1855,14 +1911,10 @@ public final InspectTemplate createInspectTemplate( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -1904,14 +1956,10 @@ public final InspectTemplate createInspectTemplate( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -2010,8 +2058,8 @@ public final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectTemplateName name = - * InspectTemplateName.ofOrganizationInspectTemplateName( - * "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + * InspectTemplateName.ofProjectLocationInspectTemplateName( + * "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); * InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); * InspectTemplate response = @@ -2097,8 +2145,8 @@ public final InspectTemplate updateInspectTemplate( * UpdateInspectTemplateRequest request = * UpdateInspectTemplateRequest.newBuilder() * .setName( - * InspectTemplateName.ofOrganizationInspectTemplateName( - * "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + * InspectTemplateName.ofProjectLocationInspectTemplateName( + * "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") * .toString()) * .setInspectTemplate(InspectTemplate.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) @@ -2131,8 +2179,8 @@ public final InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest * UpdateInspectTemplateRequest request = * UpdateInspectTemplateRequest.newBuilder() * .setName( - * InspectTemplateName.ofOrganizationInspectTemplateName( - * "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + * InspectTemplateName.ofProjectLocationInspectTemplateName( + * "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") * .toString()) * .setInspectTemplate(InspectTemplate.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) @@ -2164,8 +2212,8 @@ public final InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectTemplateName name = - * InspectTemplateName.ofOrganizationInspectTemplateName( - * "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + * InspectTemplateName.ofProjectLocationInspectTemplateName( + * "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); * InspectTemplate response = dlpServiceClient.getInspectTemplate(name); * } * } @@ -2233,8 +2281,8 @@ public final InspectTemplate getInspectTemplate(String name) { * GetInspectTemplateRequest request = * GetInspectTemplateRequest.newBuilder() * .setName( - * InspectTemplateName.ofOrganizationInspectTemplateName( - * "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + * InspectTemplateName.ofProjectLocationInspectTemplateName( + * "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") * .toString()) * .build(); * InspectTemplate response = dlpServiceClient.getInspectTemplate(request); @@ -2265,8 +2313,8 @@ public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest reques * GetInspectTemplateRequest request = * GetInspectTemplateRequest.newBuilder() * .setName( - * InspectTemplateName.ofOrganizationInspectTemplateName( - * "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + * InspectTemplateName.ofProjectLocationInspectTemplateName( + * "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") * .toString()) * .build(); * ApiFuture future = @@ -2306,14 +2354,10 @@ public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest reques *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -2352,14 +2396,10 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(LocationName *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -2399,14 +2439,10 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -2445,14 +2481,10 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(Organization *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -2491,14 +2523,10 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(ProjectName *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -2640,8 +2668,8 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectTemplateName name = - * InspectTemplateName.ofOrganizationInspectTemplateName( - * "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + * InspectTemplateName.ofProjectLocationInspectTemplateName( + * "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); * dlpServiceClient.deleteInspectTemplate(name); * } * } @@ -2709,8 +2737,8 @@ public final void deleteInspectTemplate(String name) { * DeleteInspectTemplateRequest request = * DeleteInspectTemplateRequest.newBuilder() * .setName( - * InspectTemplateName.ofOrganizationInspectTemplateName( - * "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + * InspectTemplateName.ofProjectLocationInspectTemplateName( + * "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") * .toString()) * .build(); * dlpServiceClient.deleteInspectTemplate(request); @@ -2741,8 +2769,8 @@ public final void deleteInspectTemplate(DeleteInspectTemplateRequest request) { * DeleteInspectTemplateRequest request = * DeleteInspectTemplateRequest.newBuilder() * .setName( - * InspectTemplateName.ofOrganizationInspectTemplateName( - * "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + * InspectTemplateName.ofProjectLocationInspectTemplateName( + * "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") * .toString()) * .build(); * ApiFuture future = @@ -2782,14 +2810,10 @@ public final UnaryCallable deleteInspectTem *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -2832,14 +2856,10 @@ public final DeidentifyTemplate createDeidentifyTemplate( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -2882,14 +2902,10 @@ public final DeidentifyTemplate createDeidentifyTemplate( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -2932,14 +2948,10 @@ public final DeidentifyTemplate createDeidentifyTemplate( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -2982,14 +2994,10 @@ public final DeidentifyTemplate createDeidentifyTemplate( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -3387,14 +3395,10 @@ public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateReque *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -3434,14 +3438,10 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(Locati *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -3482,14 +3482,10 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -3530,14 +3526,10 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -3577,14 +3569,10 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(Projec *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -3868,10 +3856,8 @@ public final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest reque * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -3911,10 +3897,8 @@ public final JobTrigger createJobTrigger(LocationName parent, JobTrigger jobTrig * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -3954,10 +3938,8 @@ public final JobTrigger createJobTrigger(ProjectName parent, JobTrigger jobTrigg * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -4446,10 +4428,8 @@ public final UnaryCallable getJobTriggerCallab * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -4487,10 +4467,8 @@ public final ListJobTriggersPagedResponse listJobTriggers(LocationName parent) { * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -4528,10 +4506,8 @@ public final ListJobTriggersPagedResponse listJobTriggers(ProjectName parent) { * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -4856,8 +4832,10 @@ public final UnaryCallable activateJobTrigger * } * * @param parent Required. Parent resource name. - *

        The format of this value is as follows: - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + *

        The format of this value varies depending on the scope of the request (project or + * organization): + *

        + Projects scope: `projects/{project_id}/locations/{location_id}` + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -4894,8 +4872,10 @@ public final DiscoveryConfig createDiscoveryConfig( * } * * @param parent Required. Parent resource name. - *

        The format of this value is as follows: - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + *

        The format of this value varies depending on the scope of the request (project or + * organization): + *

        + Projects scope: `projects/{project_id}/locations/{location_id}` + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -5258,8 +5238,7 @@ public final DiscoveryConfig getDiscoveryConfig(GetDiscoveryConfigRequest reques * } * * @param parent Required. Parent resource name. - *

        The format of this value is as follows: - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + *

        The format of this value is as follows: `projects/{project_id}/locations/{location_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -5294,8 +5273,7 @@ public final ListDiscoveryConfigsPagedResponse listDiscoveryConfigs(LocationName * } * * @param parent Required. Parent resource name. - *

        The format of this value is as follows: - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> + *

        The format of this value is as follows: `projects/{project_id}/locations/{location_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -5564,10 +5542,8 @@ public final UnaryCallable deleteDiscoveryC * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -5611,10 +5587,8 @@ public final DlpJob createDlpJob(LocationName parent, InspectJobConfig inspectJo * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -5659,10 +5633,8 @@ public final DlpJob createDlpJob(LocationName parent, RiskAnalysisJobConfig risk * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -5706,10 +5678,8 @@ public final DlpJob createDlpJob(ProjectName parent, InspectJobConfig inspectJob * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -5754,10 +5724,8 @@ public final DlpJob createDlpJob(ProjectName parent, RiskAnalysisJobConfig riskJ * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -5798,10 +5766,8 @@ public final DlpJob createDlpJob(String parent, InspectJobConfig inspectJob) { * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -5911,10 +5877,8 @@ public final UnaryCallable createDlpJobCallable() { * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -5953,10 +5917,8 @@ public final ListDlpJobsPagedResponse listDlpJobs(LocationName parent) { * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -5995,10 +5957,8 @@ public final ListDlpJobsPagedResponse listDlpJobs(ProjectName parent) { * @param parent Required. Parent resource name. *

        The format of this value varies depending on whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -6451,14 +6411,10 @@ public final UnaryCallable cancelDlpJobCallable() { *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -6500,14 +6456,10 @@ public final StoredInfoType createStoredInfoType( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -6549,14 +6501,10 @@ public final StoredInfoType createStoredInfoType( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -6598,14 +6546,10 @@ public final StoredInfoType createStoredInfoType( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -6647,14 +6591,10 @@ public final StoredInfoType createStoredInfoType( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + Organizations scope, location - * specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` + + * Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` + + * Organizations scope, no location specified (defaults to global): `organizations/{org_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -7056,10 +6996,8 @@ public final UnaryCallable getStoredIn *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -7099,10 +7037,8 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(LocationName p *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -7143,10 +7079,8 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -7186,10 +7120,8 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(OrganizationNa *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -7229,10 +7161,8 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(ProjectName pa *

        The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - *

        + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + *

        + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + + * Projects scope, no location specified (defaults to global): `projects/{project_id}` *

        The following example `parent` string specifies a parent project with the identifier * `example-project`, and specifies the `europe-west3` location for processing data: *

        parent=projects/example-project/locations/europe-west3 @@ -8251,7 +8181,7 @@ public final ProjectDataProfile getProjectDataProfile(GetProjectDataProfileReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a table data profile. + * Lists file store data profiles for an organization. * *

        Sample code: * @@ -8262,28 +8192,30 @@ public final ProjectDataProfile getProjectDataProfile(GetProjectDataProfileReque * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * TableDataProfileName name = - * TableDataProfileName.ofOrganizationLocationTableDataProfileName( - * "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"); - * TableDataProfile response = dlpServiceClient.getTableDataProfile(name); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (FileStoreDataProfile element : + * dlpServiceClient.listFileStoreDataProfiles(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. Resource name, for example - * `organizations/12345/locations/us/tableDataProfiles/53234423`. + * @param parent Required. Resource name of the organization or project, for example + * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TableDataProfile getTableDataProfile(TableDataProfileName name) { - GetTableDataProfileRequest request = - GetTableDataProfileRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final ListFileStoreDataProfilesPagedResponse listFileStoreDataProfiles( + LocationName parent) { + ListFileStoreDataProfilesRequest request = + ListFileStoreDataProfilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) .build(); - return getTableDataProfile(request); + return listFileStoreDataProfiles(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a table data profile. + * Lists file store data profiles for an organization. * *

        Sample code: * @@ -8294,27 +8226,30 @@ public final TableDataProfile getTableDataProfile(TableDataProfileName name) { * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * String name = - * TableDataProfileName.ofOrganizationLocationTableDataProfileName( - * "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]") - * .toString(); - * TableDataProfile response = dlpServiceClient.getTableDataProfile(name); + * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + * for (FileStoreDataProfile element : + * dlpServiceClient.listFileStoreDataProfiles(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. Resource name, for example - * `organizations/12345/locations/us/tableDataProfiles/53234423`. + * @param parent Required. Resource name of the organization or project, for example + * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TableDataProfile getTableDataProfile(String name) { - GetTableDataProfileRequest request = - GetTableDataProfileRequest.newBuilder().setName(name).build(); - return getTableDataProfile(request); + public final ListFileStoreDataProfilesPagedResponse listFileStoreDataProfiles( + OrganizationLocationName parent) { + ListFileStoreDataProfilesRequest request = + ListFileStoreDataProfilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFileStoreDataProfiles(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a table data profile. + * Lists file store data profiles for an organization. * *

        Sample code: * @@ -8325,27 +8260,63 @@ public final TableDataProfile getTableDataProfile(String name) { * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * GetTableDataProfileRequest request = - * GetTableDataProfileRequest.newBuilder() - * .setName( - * TableDataProfileName.ofOrganizationLocationTableDataProfileName( - * "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]") - * .toString()) + * String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + * for (FileStoreDataProfile element : + * dlpServiceClient.listFileStoreDataProfiles(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * } + * + * @param parent Required. Resource name of the organization or project, for example + * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFileStoreDataProfilesPagedResponse listFileStoreDataProfiles(String parent) { + ListFileStoreDataProfilesRequest request = + ListFileStoreDataProfilesRequest.newBuilder().setParent(parent).build(); + return listFileStoreDataProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists file store data profiles for an organization. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   ListFileStoreDataProfilesRequest request =
        +   *       ListFileStoreDataProfilesRequest.newBuilder()
        +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
        +   *           .setPageToken("pageToken873572522")
        +   *           .setPageSize(883849137)
        +   *           .setOrderBy("orderBy-1207110587")
        +   *           .setFilter("filter-1274492040")
            *           .build();
        -   *   TableDataProfile response = dlpServiceClient.getTableDataProfile(request);
        +   *   for (FileStoreDataProfile element :
        +   *       dlpServiceClient.listFileStoreDataProfiles(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 TableDataProfile getTableDataProfile(GetTableDataProfileRequest request) { - return getTableDataProfileCallable().call(request); + public final ListFileStoreDataProfilesPagedResponse listFileStoreDataProfiles( + ListFileStoreDataProfilesRequest request) { + return listFileStoreDataProfilesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a table data profile. + * Lists file store data profiles for an organization. * *

        Sample code: * @@ -8356,28 +8327,32 @@ public final TableDataProfile getTableDataProfile(GetTableDataProfileRequest req * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * GetTableDataProfileRequest request = - * GetTableDataProfileRequest.newBuilder() - * .setName( - * TableDataProfileName.ofOrganizationLocationTableDataProfileName( - * "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]") - * .toString()) + * ListFileStoreDataProfilesRequest request = + * ListFileStoreDataProfilesRequest.newBuilder() + * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + * .setPageToken("pageToken873572522") + * .setPageSize(883849137) + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dlpServiceClient.getTableDataProfileCallable().futureCall(request); + * ApiFuture future = + * dlpServiceClient.listFileStoreDataProfilesPagedCallable().futureCall(request); * // Do something. - * TableDataProfile response = future.get(); + * for (FileStoreDataProfile element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable - getTableDataProfileCallable() { - return stub.getTableDataProfileCallable(); + public final UnaryCallable< + ListFileStoreDataProfilesRequest, ListFileStoreDataProfilesPagedResponse> + listFileStoreDataProfilesPagedCallable() { + return stub.listFileStoreDataProfilesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a column data profile. + * Lists file store data profiles for an organization. * *

        Sample code: * @@ -8388,28 +8363,70 @@ public final TableDataProfile getTableDataProfile(GetTableDataProfileRequest req * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * ColumnDataProfileName name = - * ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( - * "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]"); - * ColumnDataProfile response = dlpServiceClient.getColumnDataProfile(name); + * ListFileStoreDataProfilesRequest request = + * ListFileStoreDataProfilesRequest.newBuilder() + * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + * .setPageToken("pageToken873572522") + * .setPageSize(883849137) + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") + * .build(); + * while (true) { + * ListFileStoreDataProfilesResponse response = + * dlpServiceClient.listFileStoreDataProfilesCallable().call(request); + * for (FileStoreDataProfile element : response.getFileStoreDataProfilesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * } + */ + public final UnaryCallable + listFileStoreDataProfilesCallable() { + return stub.listFileStoreDataProfilesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a file store data profile. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   ProjectDataProfileName name =
        +   *       ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName(
        +   *           "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]");
        +   *   FileStoreDataProfile response = dlpServiceClient.getFileStoreDataProfile(name);
            * }
            * }
        * * @param name Required. Resource name, for example - * `organizations/12345/locations/us/columnDataProfiles/53234423`. + * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ColumnDataProfile getColumnDataProfile(ColumnDataProfileName name) { - GetColumnDataProfileRequest request = - GetColumnDataProfileRequest.newBuilder() + public final FileStoreDataProfile getFileStoreDataProfile(ProjectDataProfileName name) { + GetFileStoreDataProfileRequest request = + GetFileStoreDataProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return getColumnDataProfile(request); + return getFileStoreDataProfile(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a column data profile. + * Gets a file store data profile. * *

        Sample code: * @@ -8421,26 +8438,26 @@ public final ColumnDataProfile getColumnDataProfile(ColumnDataProfileName name) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = - * ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( - * "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]") + * ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + * "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]") * .toString(); - * ColumnDataProfile response = dlpServiceClient.getColumnDataProfile(name); + * FileStoreDataProfile response = dlpServiceClient.getFileStoreDataProfile(name); * } * } * * @param name Required. Resource name, for example - * `organizations/12345/locations/us/columnDataProfiles/53234423`. + * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ColumnDataProfile getColumnDataProfile(String name) { - GetColumnDataProfileRequest request = - GetColumnDataProfileRequest.newBuilder().setName(name).build(); - return getColumnDataProfile(request); + public final FileStoreDataProfile getFileStoreDataProfile(String name) { + GetFileStoreDataProfileRequest request = + GetFileStoreDataProfileRequest.newBuilder().setName(name).build(); + return getFileStoreDataProfile(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a column data profile. + * Gets a file store data profile. * *

        Sample code: * @@ -8451,27 +8468,28 @@ public final ColumnDataProfile getColumnDataProfile(String name) { * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * GetColumnDataProfileRequest request = - * GetColumnDataProfileRequest.newBuilder() + * GetFileStoreDataProfileRequest request = + * GetFileStoreDataProfileRequest.newBuilder() * .setName( - * ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( - * "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]") + * ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + * "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]") * .toString()) * .build(); - * ColumnDataProfile response = dlpServiceClient.getColumnDataProfile(request); + * FileStoreDataProfile response = dlpServiceClient.getFileStoreDataProfile(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 ColumnDataProfile getColumnDataProfile(GetColumnDataProfileRequest request) { - return getColumnDataProfileCallable().call(request); + public final FileStoreDataProfile getFileStoreDataProfile( + GetFileStoreDataProfileRequest request) { + return getFileStoreDataProfileCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a column data profile. + * Gets a file store data profile. * *

        Sample code: * @@ -8482,29 +8500,29 @@ public final ColumnDataProfile getColumnDataProfile(GetColumnDataProfileRequest * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * GetColumnDataProfileRequest request = - * GetColumnDataProfileRequest.newBuilder() + * GetFileStoreDataProfileRequest request = + * GetFileStoreDataProfileRequest.newBuilder() * .setName( - * ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( - * "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]") + * ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + * "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]") * .toString()) * .build(); - * ApiFuture future = - * dlpServiceClient.getColumnDataProfileCallable().futureCall(request); + * ApiFuture future = + * dlpServiceClient.getFileStoreDataProfileCallable().futureCall(request); * // Do something. - * ColumnDataProfile response = future.get(); + * FileStoreDataProfile response = future.get(); * } * } */ - public final UnaryCallable - getColumnDataProfileCallable() { - return stub.getColumnDataProfileCallable(); + public final UnaryCallable + getFileStoreDataProfileCallable() { + return stub.getFileStoreDataProfileCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is - * still included in a discovery configuration. + * Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the + * resource is still included in a discovery configuration. * *

        Sample code: * @@ -8515,28 +8533,28 @@ public final ColumnDataProfile getColumnDataProfile(GetColumnDataProfileRequest * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * TableDataProfileName name = - * TableDataProfileName.ofOrganizationLocationTableDataProfileName( - * "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"); - * dlpServiceClient.deleteTableDataProfile(name); + * FileStoreDataProfileName name = + * FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + * "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]"); + * dlpServiceClient.deleteFileStoreDataProfile(name); * } * } * - * @param name Required. Resource name of the table data profile. + * @param name Required. Resource name of the file store data profile. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTableDataProfile(TableDataProfileName name) { - DeleteTableDataProfileRequest request = - DeleteTableDataProfileRequest.newBuilder() + public final void deleteFileStoreDataProfile(FileStoreDataProfileName name) { + DeleteFileStoreDataProfileRequest request = + DeleteFileStoreDataProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - deleteTableDataProfile(request); + deleteFileStoreDataProfile(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is - * still included in a discovery configuration. + * Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the + * resource is still included in a discovery configuration. * *

        Sample code: * @@ -8548,26 +8566,26 @@ public final void deleteTableDataProfile(TableDataProfileName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = - * TableDataProfileName.ofOrganizationLocationTableDataProfileName( - * "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]") + * FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + * "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]") * .toString(); - * dlpServiceClient.deleteTableDataProfile(name); + * dlpServiceClient.deleteFileStoreDataProfile(name); * } * } * - * @param name Required. Resource name of the table data profile. + * @param name Required. Resource name of the file store data profile. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTableDataProfile(String name) { - DeleteTableDataProfileRequest request = - DeleteTableDataProfileRequest.newBuilder().setName(name).build(); - deleteTableDataProfile(request); + public final void deleteFileStoreDataProfile(String name) { + DeleteFileStoreDataProfileRequest request = + DeleteFileStoreDataProfileRequest.newBuilder().setName(name).build(); + deleteFileStoreDataProfile(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is - * still included in a discovery configuration. + * Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the + * resource is still included in a discovery configuration. * *

        Sample code: * @@ -8578,21 +8596,401 @@ public final void deleteTableDataProfile(String name) { * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * DeleteTableDataProfileRequest request = - * DeleteTableDataProfileRequest.newBuilder() + * DeleteFileStoreDataProfileRequest request = + * DeleteFileStoreDataProfileRequest.newBuilder() * .setName( - * TableDataProfileName.ofOrganizationLocationTableDataProfileName( - * "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]") + * FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + * "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]") * .toString()) * .build(); - * dlpServiceClient.deleteTableDataProfile(request); + * dlpServiceClient.deleteFileStoreDataProfile(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTableDataProfile(DeleteTableDataProfileRequest request) { + public final void deleteFileStoreDataProfile(DeleteFileStoreDataProfileRequest request) { + deleteFileStoreDataProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the + * resource is still included in a discovery configuration. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   DeleteFileStoreDataProfileRequest request =
        +   *       DeleteFileStoreDataProfileRequest.newBuilder()
        +   *           .setName(
        +   *               FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName(
        +   *                       "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]")
        +   *                   .toString())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       dlpServiceClient.deleteFileStoreDataProfileCallable().futureCall(request);
        +   *   // Do something.
        +   *   future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable + deleteFileStoreDataProfileCallable() { + return stub.deleteFileStoreDataProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a table data profile. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   TableDataProfileName name =
        +   *       TableDataProfileName.ofOrganizationLocationTableDataProfileName(
        +   *           "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]");
        +   *   TableDataProfile response = dlpServiceClient.getTableDataProfile(name);
        +   * }
        +   * }
        + * + * @param name Required. Resource name, for example + * `organizations/12345/locations/us/tableDataProfiles/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TableDataProfile getTableDataProfile(TableDataProfileName name) { + GetTableDataProfileRequest request = + GetTableDataProfileRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getTableDataProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a table data profile. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   String name =
        +   *       TableDataProfileName.ofOrganizationLocationTableDataProfileName(
        +   *               "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]")
        +   *           .toString();
        +   *   TableDataProfile response = dlpServiceClient.getTableDataProfile(name);
        +   * }
        +   * }
        + * + * @param name Required. Resource name, for example + * `organizations/12345/locations/us/tableDataProfiles/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TableDataProfile getTableDataProfile(String name) { + GetTableDataProfileRequest request = + GetTableDataProfileRequest.newBuilder().setName(name).build(); + return getTableDataProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a table data profile. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   GetTableDataProfileRequest request =
        +   *       GetTableDataProfileRequest.newBuilder()
        +   *           .setName(
        +   *               TableDataProfileName.ofOrganizationLocationTableDataProfileName(
        +   *                       "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]")
        +   *                   .toString())
        +   *           .build();
        +   *   TableDataProfile response = dlpServiceClient.getTableDataProfile(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 TableDataProfile getTableDataProfile(GetTableDataProfileRequest request) { + return getTableDataProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a table data profile. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   GetTableDataProfileRequest request =
        +   *       GetTableDataProfileRequest.newBuilder()
        +   *           .setName(
        +   *               TableDataProfileName.ofOrganizationLocationTableDataProfileName(
        +   *                       "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]")
        +   *                   .toString())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       dlpServiceClient.getTableDataProfileCallable().futureCall(request);
        +   *   // Do something.
        +   *   TableDataProfile response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable + getTableDataProfileCallable() { + return stub.getTableDataProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a column data profile. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   ColumnDataProfileName name =
        +   *       ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName(
        +   *           "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]");
        +   *   ColumnDataProfile response = dlpServiceClient.getColumnDataProfile(name);
        +   * }
        +   * }
        + * + * @param name Required. Resource name, for example + * `organizations/12345/locations/us/columnDataProfiles/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ColumnDataProfile getColumnDataProfile(ColumnDataProfileName name) { + GetColumnDataProfileRequest request = + GetColumnDataProfileRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getColumnDataProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a column data profile. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   String name =
        +   *       ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName(
        +   *               "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]")
        +   *           .toString();
        +   *   ColumnDataProfile response = dlpServiceClient.getColumnDataProfile(name);
        +   * }
        +   * }
        + * + * @param name Required. Resource name, for example + * `organizations/12345/locations/us/columnDataProfiles/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ColumnDataProfile getColumnDataProfile(String name) { + GetColumnDataProfileRequest request = + GetColumnDataProfileRequest.newBuilder().setName(name).build(); + return getColumnDataProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a column data profile. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   GetColumnDataProfileRequest request =
        +   *       GetColumnDataProfileRequest.newBuilder()
        +   *           .setName(
        +   *               ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName(
        +   *                       "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]")
        +   *                   .toString())
        +   *           .build();
        +   *   ColumnDataProfile response = dlpServiceClient.getColumnDataProfile(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 ColumnDataProfile getColumnDataProfile(GetColumnDataProfileRequest request) { + return getColumnDataProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a column data profile. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   GetColumnDataProfileRequest request =
        +   *       GetColumnDataProfileRequest.newBuilder()
        +   *           .setName(
        +   *               ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName(
        +   *                       "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]")
        +   *                   .toString())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       dlpServiceClient.getColumnDataProfileCallable().futureCall(request);
        +   *   // Do something.
        +   *   ColumnDataProfile response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable + getColumnDataProfileCallable() { + return stub.getColumnDataProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is + * still included in a discovery configuration. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   TableDataProfileName name =
        +   *       TableDataProfileName.ofOrganizationLocationTableDataProfileName(
        +   *           "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]");
        +   *   dlpServiceClient.deleteTableDataProfile(name);
        +   * }
        +   * }
        + * + * @param name Required. Resource name of the table data profile. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTableDataProfile(TableDataProfileName name) { + DeleteTableDataProfileRequest request = + DeleteTableDataProfileRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteTableDataProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is + * still included in a discovery configuration. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   String name =
        +   *       TableDataProfileName.ofOrganizationLocationTableDataProfileName(
        +   *               "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]")
        +   *           .toString();
        +   *   dlpServiceClient.deleteTableDataProfile(name);
        +   * }
        +   * }
        + * + * @param name Required. Resource name of the table data profile. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTableDataProfile(String name) { + DeleteTableDataProfileRequest request = + DeleteTableDataProfileRequest.newBuilder().setName(name).build(); + deleteTableDataProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is + * still included in a discovery configuration. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   DeleteTableDataProfileRequest request =
        +   *       DeleteTableDataProfileRequest.newBuilder()
        +   *           .setName(
        +   *               TableDataProfileName.ofOrganizationLocationTableDataProfileName(
        +   *                       "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]")
        +   *                   .toString())
        +   *           .build();
        +   *   dlpServiceClient.deleteTableDataProfile(request);
        +   * }
        +   * }
        + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTableDataProfile(DeleteTableDataProfileRequest request) { deleteTableDataProfileCallable().call(request); } @@ -8835,8 +9233,11 @@ public final UnaryCallable finishDlpJobCallable() { * } * } * - * @param parent Required. Parent resource name in the format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent resource name. + *

        The format of this value varies depending on the scope of the request (project or + * organization): + *

        + Projects scope: `projects/{project_id}/locations/{location_id}` + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` * @param connection Required. The connection resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -8849,6 +9250,42 @@ public final Connection createConnection(LocationName parent, Connection connect return createConnection(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a Connection to an external data source. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
        +   *   Connection connection = Connection.newBuilder().build();
        +   *   Connection response = dlpServiceClient.createConnection(parent, connection);
        +   * }
        +   * }
        + * + * @param parent Required. Parent resource name. + *

        The format of this value varies depending on the scope of the request (project or + * organization): + *

        + Projects scope: `projects/{project_id}/locations/{location_id}` + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` + * @param connection Required. The connection resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Connection createConnection(OrganizationLocationName parent, Connection connection) { + CreateConnectionRequest request = + CreateConnectionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConnection(connection) + .build(); + return createConnection(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Create a Connection to an external data source. @@ -8868,8 +9305,11 @@ public final Connection createConnection(LocationName parent, Connection connect * } * } * - * @param parent Required. Parent resource name in the format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent resource name. + *

        The format of this value varies depending on the scope of the request (project or + * organization): + *

        + Projects scope: `projects/{project_id}/locations/{location_id}` + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` * @param connection Required. The connection resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -8950,7 +9390,8 @@ public final UnaryCallable createConnection * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + * ConnectionName name = + * ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * Connection response = dlpServiceClient.getConnection(name); * } * } @@ -8978,7 +9419,9 @@ public final Connection getConnection(ConnectionName name) { * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); + * String name = + * ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]") + * .toString(); * Connection response = dlpServiceClient.getConnection(name); * } * } @@ -9007,7 +9450,10 @@ public final Connection getConnection(String name) { * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetConnectionRequest request = * GetConnectionRequest.newBuilder() - * .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + * .setName( + * ConnectionName.ofProjectLocationConnectionName( + * "[PROJECT]", "[LOCATION]", "[CONNECTION]") + * .toString()) * .build(); * Connection response = dlpServiceClient.getConnection(request); * } @@ -9035,7 +9481,10 @@ public final Connection getConnection(GetConnectionRequest request) { * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetConnectionRequest request = * GetConnectionRequest.newBuilder() - * .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + * .setName( + * ConnectionName.ofProjectLocationConnectionName( + * "[PROJECT]", "[LOCATION]", "[CONNECTION]") + * .toString()) * .build(); * ApiFuture future = dlpServiceClient.getConnectionCallable().futureCall(request); * // Do something. @@ -9049,7 +9498,8 @@ public final UnaryCallable getConnectionCallab // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Connections in a parent. + * Lists Connections in a parent. Use SearchConnections to see all connections within an + * organization. * *

        Sample code: * @@ -9067,7 +9517,8 @@ public final UnaryCallable getConnectionCallab * } * } * - * @param parent Required. Parent name, for example: `projects/project-id/locations/global`. + * @param parent Required. Resource name of the organization or project, for example, + * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListConnectionsPagedResponse listConnections(LocationName parent) { @@ -9080,7 +9531,41 @@ public final ListConnectionsPagedResponse listConnections(LocationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Connections in a parent. + * Lists Connections in a parent. Use SearchConnections to see all connections within an + * organization. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
        +   *   for (Connection element : dlpServiceClient.listConnections(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. Resource name of the organization or project, for example, + * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConnectionsPagedResponse listConnections(OrganizationLocationName parent) { + ListConnectionsRequest request = + ListConnectionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listConnections(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Connections in a parent. Use SearchConnections to see all connections within an + * organization. * *

        Sample code: * @@ -9098,7 +9583,8 @@ public final ListConnectionsPagedResponse listConnections(LocationName parent) { * } * } * - * @param parent Required. Parent name, for example: `projects/project-id/locations/global`. + * @param parent Required. Resource name of the organization or project, for example, + * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListConnectionsPagedResponse listConnections(String parent) { @@ -9108,7 +9594,8 @@ public final ListConnectionsPagedResponse listConnections(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Connections in a parent. + * Lists Connections in a parent. Use SearchConnections to see all connections within an + * organization. * *

        Sample code: * @@ -9141,7 +9628,8 @@ public final ListConnectionsPagedResponse listConnections(ListConnectionsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Connections in a parent. + * Lists Connections in a parent. Use SearchConnections to see all connections within an + * organization. * *

        Sample code: * @@ -9175,7 +9663,8 @@ public final ListConnectionsPagedResponse listConnections(ListConnectionsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Connections in a parent. + * Lists Connections in a parent. Use SearchConnections to see all connections within an + * organization. * *

        Sample code: * @@ -9233,8 +9722,8 @@ public final ListConnectionsPagedResponse listConnections(ListConnectionsRequest * } * } * - * @param parent Required. Parent name, typically an organization, without location. For example: - * `organizations/12345678`. + * @param parent Required. Resource name of the organization or project with a wildcard location, + * for example, `organizations/433245324/locations/-` or `projects/project-id/locations/-`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchConnectionsPagedResponse searchConnections(LocationName parent) { @@ -9245,6 +9734,38 @@ public final SearchConnectionsPagedResponse searchConnections(LocationName paren return searchConnections(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches for Connections in a parent. + * + *

        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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
        +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
        +   *   for (Connection element : dlpServiceClient.searchConnections(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. Resource name of the organization or project with a wildcard location, + * for example, `organizations/433245324/locations/-` or `projects/project-id/locations/-`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchConnectionsPagedResponse searchConnections(OrganizationLocationName parent) { + SearchConnectionsRequest request = + SearchConnectionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return searchConnections(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Searches for Connections in a parent. @@ -9265,8 +9786,8 @@ public final SearchConnectionsPagedResponse searchConnections(LocationName paren * } * } * - * @param parent Required. Parent name, typically an organization, without location. For example: - * `organizations/12345678`. + * @param parent Required. Resource name of the organization or project with a wildcard location, + * for example, `organizations/433245324/locations/-` or `projects/project-id/locations/-`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchConnectionsPagedResponse searchConnections(String parent) { @@ -9396,7 +9917,8 @@ public final SearchConnectionsPagedResponse searchConnections(SearchConnectionsR * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + * ConnectionName name = + * ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * dlpServiceClient.deleteConnection(name); * } * } @@ -9424,7 +9946,9 @@ public final void deleteConnection(ConnectionName name) { * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); + * String name = + * ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]") + * .toString(); * dlpServiceClient.deleteConnection(name); * } * } @@ -9453,7 +9977,10 @@ public final void deleteConnection(String name) { * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteConnectionRequest request = * DeleteConnectionRequest.newBuilder() - * .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + * .setName( + * ConnectionName.ofProjectLocationConnectionName( + * "[PROJECT]", "[LOCATION]", "[CONNECTION]") + * .toString()) * .build(); * dlpServiceClient.deleteConnection(request); * } @@ -9481,7 +10008,10 @@ public final void deleteConnection(DeleteConnectionRequest request) { * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteConnectionRequest request = * DeleteConnectionRequest.newBuilder() - * .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + * .setName( + * ConnectionName.ofProjectLocationConnectionName( + * "[PROJECT]", "[LOCATION]", "[CONNECTION]") + * .toString()) * .build(); * ApiFuture future = dlpServiceClient.deleteConnectionCallable().futureCall(request); * // Do something. @@ -9506,7 +10036,8 @@ public final UnaryCallable deleteConnectionCalla * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + * ConnectionName name = + * ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * Connection response = dlpServiceClient.updateConnection(name); * } * } @@ -9534,7 +10065,9 @@ public final Connection updateConnection(ConnectionName name) { * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); + * String name = + * ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]") + * .toString(); * Connection response = dlpServiceClient.updateConnection(name); * } * } @@ -9563,7 +10096,10 @@ public final Connection updateConnection(String name) { * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateConnectionRequest request = * UpdateConnectionRequest.newBuilder() - * .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + * .setName( + * ConnectionName.ofProjectLocationConnectionName( + * "[PROJECT]", "[LOCATION]", "[CONNECTION]") + * .toString()) * .setConnection(Connection.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -9593,7 +10129,10 @@ public final Connection updateConnection(UpdateConnectionRequest request) { * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateConnectionRequest request = * UpdateConnectionRequest.newBuilder() - * .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + * .setName( + * ConnectionName.ofProjectLocationConnectionName( + * "[PROJECT]", "[LOCATION]", "[CONNECTION]") + * .toString()) * .setConnection(Connection.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -10388,6 +10927,102 @@ protected ListColumnDataProfilesFixedSizeCollection createCollection( } } + public static class ListFileStoreDataProfilesPagedResponse + extends AbstractPagedListResponse< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + FileStoreDataProfile, + ListFileStoreDataProfilesPage, + ListFileStoreDataProfilesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + FileStoreDataProfile> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFileStoreDataProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListFileStoreDataProfilesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListFileStoreDataProfilesPagedResponse(ListFileStoreDataProfilesPage page) { + super(page, ListFileStoreDataProfilesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFileStoreDataProfilesPage + extends AbstractPage< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + FileStoreDataProfile, + ListFileStoreDataProfilesPage> { + + private ListFileStoreDataProfilesPage( + PageContext< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + FileStoreDataProfile> + context, + ListFileStoreDataProfilesResponse response) { + super(context, response); + } + + private static ListFileStoreDataProfilesPage createEmptyPage() { + return new ListFileStoreDataProfilesPage(null, null); + } + + @Override + protected ListFileStoreDataProfilesPage createPage( + PageContext< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + FileStoreDataProfile> + context, + ListFileStoreDataProfilesResponse response) { + return new ListFileStoreDataProfilesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + FileStoreDataProfile> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFileStoreDataProfilesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + FileStoreDataProfile, + ListFileStoreDataProfilesPage, + ListFileStoreDataProfilesFixedSizeCollection> { + + private ListFileStoreDataProfilesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFileStoreDataProfilesFixedSizeCollection createEmptyCollection() { + return new ListFileStoreDataProfilesFixedSizeCollection(null, 0); + } + + @Override + protected ListFileStoreDataProfilesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFileStoreDataProfilesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListConnectionsPagedResponse extends AbstractPagedListResponse< ListConnectionsRequest, diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java index e8894dc7b495..2e2f0c865d16 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java @@ -21,6 +21,7 @@ import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListFileStoreDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListInspectTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListJobTriggersPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListProjectDataProfilesPagedResponse; @@ -59,18 +60,21 @@ import com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest; import com.google.privacy.dlp.v2.DeleteDlpJobRequest; +import com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.DeleteInspectTemplateRequest; import com.google.privacy.dlp.v2.DeleteJobTriggerRequest; import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; import com.google.privacy.dlp.v2.DeleteTableDataProfileRequest; import com.google.privacy.dlp.v2.DiscoveryConfig; import com.google.privacy.dlp.v2.DlpJob; +import com.google.privacy.dlp.v2.FileStoreDataProfile; import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetConnectionRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; +import com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; @@ -93,6 +97,8 @@ import com.google.privacy.dlp.v2.ListDiscoveryConfigsResponse; import com.google.privacy.dlp.v2.ListDlpJobsRequest; import com.google.privacy.dlp.v2.ListDlpJobsResponse; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse; import com.google.privacy.dlp.v2.ListInfoTypesRequest; import com.google.privacy.dlp.v2.ListInfoTypesResponse; import com.google.privacy.dlp.v2.ListInspectTemplatesRequest; @@ -414,6 +420,27 @@ public UnaryCallSettings deleteStoredInfoTyp return ((DlpServiceStubSettings) getStubSettings()).getProjectDataProfileSettings(); } + /** Returns the object with the settings used for calls to listFileStoreDataProfiles. */ + public PagedCallSettings< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + ListFileStoreDataProfilesPagedResponse> + listFileStoreDataProfilesSettings() { + return ((DlpServiceStubSettings) getStubSettings()).listFileStoreDataProfilesSettings(); + } + + /** Returns the object with the settings used for calls to getFileStoreDataProfile. */ + public UnaryCallSettings + getFileStoreDataProfileSettings() { + return ((DlpServiceStubSettings) getStubSettings()).getFileStoreDataProfileSettings(); + } + + /** Returns the object with the settings used for calls to deleteFileStoreDataProfile. */ + public UnaryCallSettings + deleteFileStoreDataProfileSettings() { + return ((DlpServiceStubSettings) getStubSettings()).deleteFileStoreDataProfileSettings(); + } + /** Returns the object with the settings used for calls to getTableDataProfile. */ public UnaryCallSettings getTableDataProfileSettings() { @@ -850,6 +877,27 @@ public UnaryCallSettings.Builder cancelDlpJobSetting return getStubSettingsBuilder().getProjectDataProfileSettings(); } + /** Returns the builder for the settings used for calls to listFileStoreDataProfiles. */ + public PagedCallSettings.Builder< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + ListFileStoreDataProfilesPagedResponse> + listFileStoreDataProfilesSettings() { + return getStubSettingsBuilder().listFileStoreDataProfilesSettings(); + } + + /** Returns the builder for the settings used for calls to getFileStoreDataProfile. */ + public UnaryCallSettings.Builder + getFileStoreDataProfileSettings() { + return getStubSettingsBuilder().getFileStoreDataProfileSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFileStoreDataProfile. */ + public UnaryCallSettings.Builder + deleteFileStoreDataProfileSettings() { + return getStubSettingsBuilder().deleteFileStoreDataProfileSettings(); + } + /** Returns the builder for the settings used for calls to getTableDataProfile. */ public UnaryCallSettings.Builder getTableDataProfileSettings() { diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/gapic_metadata.json b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/gapic_metadata.json index f59e5c9d1cea..cf0ccd305181 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/gapic_metadata.json +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/gapic_metadata.json @@ -17,7 +17,7 @@ "methods": ["cancelDlpJob", "cancelDlpJobCallable"] }, "CreateConnection": { - "methods": ["createConnection", "createConnection", "createConnection", "createConnectionCallable"] + "methods": ["createConnection", "createConnection", "createConnection", "createConnection", "createConnectionCallable"] }, "CreateDeidentifyTemplate": { "methods": ["createDeidentifyTemplate", "createDeidentifyTemplate", "createDeidentifyTemplate", "createDeidentifyTemplate", "createDeidentifyTemplate", "createDeidentifyTemplate", "createDeidentifyTemplateCallable"] @@ -52,6 +52,9 @@ "DeleteDlpJob": { "methods": ["deleteDlpJob", "deleteDlpJob", "deleteDlpJob", "deleteDlpJobCallable"] }, + "DeleteFileStoreDataProfile": { + "methods": ["deleteFileStoreDataProfile", "deleteFileStoreDataProfile", "deleteFileStoreDataProfile", "deleteFileStoreDataProfileCallable"] + }, "DeleteInspectTemplate": { "methods": ["deleteInspectTemplate", "deleteInspectTemplate", "deleteInspectTemplate", "deleteInspectTemplateCallable"] }, @@ -82,6 +85,9 @@ "GetDlpJob": { "methods": ["getDlpJob", "getDlpJob", "getDlpJob", "getDlpJobCallable"] }, + "GetFileStoreDataProfile": { + "methods": ["getFileStoreDataProfile", "getFileStoreDataProfile", "getFileStoreDataProfile", "getFileStoreDataProfileCallable"] + }, "GetInspectTemplate": { "methods": ["getInspectTemplate", "getInspectTemplate", "getInspectTemplate", "getInspectTemplateCallable"] }, @@ -110,7 +116,7 @@ "methods": ["listColumnDataProfiles", "listColumnDataProfiles", "listColumnDataProfiles", "listColumnDataProfiles", "listColumnDataProfilesPagedCallable", "listColumnDataProfilesCallable"] }, "ListConnections": { - "methods": ["listConnections", "listConnections", "listConnections", "listConnectionsPagedCallable", "listConnectionsCallable"] + "methods": ["listConnections", "listConnections", "listConnections", "listConnections", "listConnectionsPagedCallable", "listConnectionsCallable"] }, "ListDeidentifyTemplates": { "methods": ["listDeidentifyTemplates", "listDeidentifyTemplates", "listDeidentifyTemplates", "listDeidentifyTemplates", "listDeidentifyTemplates", "listDeidentifyTemplates", "listDeidentifyTemplatesPagedCallable", "listDeidentifyTemplatesCallable"] @@ -121,6 +127,9 @@ "ListDlpJobs": { "methods": ["listDlpJobs", "listDlpJobs", "listDlpJobs", "listDlpJobs", "listDlpJobsPagedCallable", "listDlpJobsCallable"] }, + "ListFileStoreDataProfiles": { + "methods": ["listFileStoreDataProfiles", "listFileStoreDataProfiles", "listFileStoreDataProfiles", "listFileStoreDataProfiles", "listFileStoreDataProfilesPagedCallable", "listFileStoreDataProfilesCallable"] + }, "ListInfoTypes": { "methods": ["listInfoTypes", "listInfoTypes", "listInfoTypesCallable"] }, @@ -146,7 +155,7 @@ "methods": ["reidentifyContent", "reidentifyContentCallable"] }, "SearchConnections": { - "methods": ["searchConnections", "searchConnections", "searchConnections", "searchConnectionsPagedCallable", "searchConnectionsCallable"] + "methods": ["searchConnections", "searchConnections", "searchConnections", "searchConnections", "searchConnectionsPagedCallable", "searchConnectionsCallable"] }, "UpdateConnection": { "methods": ["updateConnection", "updateConnection", "updateConnection", "updateConnectionCallable"] diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java index 4db92082259f..abea4d1ab7dd 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java @@ -21,6 +21,7 @@ import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListFileStoreDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListInspectTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListJobTriggersPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListProjectDataProfilesPagedResponse; @@ -48,18 +49,21 @@ import com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest; import com.google.privacy.dlp.v2.DeleteDlpJobRequest; +import com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.DeleteInspectTemplateRequest; import com.google.privacy.dlp.v2.DeleteJobTriggerRequest; import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; import com.google.privacy.dlp.v2.DeleteTableDataProfileRequest; import com.google.privacy.dlp.v2.DiscoveryConfig; import com.google.privacy.dlp.v2.DlpJob; +import com.google.privacy.dlp.v2.FileStoreDataProfile; import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetConnectionRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; +import com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; @@ -82,6 +86,8 @@ import com.google.privacy.dlp.v2.ListDiscoveryConfigsResponse; import com.google.privacy.dlp.v2.ListDlpJobsRequest; import com.google.privacy.dlp.v2.ListDlpJobsResponse; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse; import com.google.privacy.dlp.v2.ListInfoTypesRequest; import com.google.privacy.dlp.v2.ListInfoTypesResponse; import com.google.privacy.dlp.v2.ListInspectTemplatesRequest; @@ -351,6 +357,28 @@ public UnaryCallable deleteStoredInfoTypeCal throw new UnsupportedOperationException("Not implemented: getProjectDataProfileCallable()"); } + public UnaryCallable + listFileStoreDataProfilesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listFileStoreDataProfilesPagedCallable()"); + } + + public UnaryCallable + listFileStoreDataProfilesCallable() { + throw new UnsupportedOperationException("Not implemented: listFileStoreDataProfilesCallable()"); + } + + public UnaryCallable + getFileStoreDataProfileCallable() { + throw new UnsupportedOperationException("Not implemented: getFileStoreDataProfileCallable()"); + } + + public UnaryCallable + deleteFileStoreDataProfileCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteFileStoreDataProfileCallable()"); + } + public UnaryCallable getTableDataProfileCallable() { throw new UnsupportedOperationException("Not implemented: getTableDataProfileCallable()"); } diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java index 9e4bbdce0af6..1732be068887 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java @@ -21,6 +21,7 @@ import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListFileStoreDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListInspectTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListJobTriggersPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListProjectDataProfilesPagedResponse; @@ -31,6 +32,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; @@ -75,18 +77,21 @@ import com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest; import com.google.privacy.dlp.v2.DeleteDlpJobRequest; +import com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.DeleteInspectTemplateRequest; import com.google.privacy.dlp.v2.DeleteJobTriggerRequest; import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; import com.google.privacy.dlp.v2.DeleteTableDataProfileRequest; import com.google.privacy.dlp.v2.DiscoveryConfig; import com.google.privacy.dlp.v2.DlpJob; +import com.google.privacy.dlp.v2.FileStoreDataProfile; import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetConnectionRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; +import com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; @@ -109,6 +114,8 @@ import com.google.privacy.dlp.v2.ListDiscoveryConfigsResponse; import com.google.privacy.dlp.v2.ListDlpJobsRequest; import com.google.privacy.dlp.v2.ListDlpJobsResponse; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse; import com.google.privacy.dlp.v2.ListInfoTypesRequest; import com.google.privacy.dlp.v2.ListInfoTypesResponse; import com.google.privacy.dlp.v2.ListInspectTemplatesRequest; @@ -275,6 +282,15 @@ public class DlpServiceStubSettings extends StubSettings listColumnDataProfilesSettings; private final UnaryCallSettings getProjectDataProfileSettings; + private final PagedCallSettings< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + ListFileStoreDataProfilesPagedResponse> + listFileStoreDataProfilesSettings; + private final UnaryCallSettings + getFileStoreDataProfileSettings; + private final UnaryCallSettings + deleteFileStoreDataProfileSettings; private final UnaryCallSettings getTableDataProfileSettings; private final UnaryCallSettings @@ -666,6 +682,53 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListFileStoreDataProfilesRequest, ListFileStoreDataProfilesResponse, FileStoreDataProfile> + LIST_FILE_STORE_DATA_PROFILES_PAGE_STR_DESC = + new PagedListDescriptor< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + FileStoreDataProfile>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFileStoreDataProfilesRequest injectToken( + ListFileStoreDataProfilesRequest payload, String token) { + return ListFileStoreDataProfilesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListFileStoreDataProfilesRequest injectPageSize( + ListFileStoreDataProfilesRequest payload, int pageSize) { + return ListFileStoreDataProfilesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListFileStoreDataProfilesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFileStoreDataProfilesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListFileStoreDataProfilesResponse payload) { + return payload.getFileStoreDataProfilesList() == null + ? ImmutableList.of() + : payload.getFileStoreDataProfilesList(); + } + }; + private static final PagedListDescriptor< ListConnectionsRequest, ListConnectionsResponse, Connection> LIST_CONNECTIONS_PAGE_STR_DESC = @@ -953,6 +1016,34 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + ListFileStoreDataProfilesPagedResponse> + LIST_FILE_STORE_DATA_PROFILES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + ListFileStoreDataProfilesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListFileStoreDataProfilesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + FileStoreDataProfile> + pageContext = + PageContext.create( + callable, LIST_FILE_STORE_DATA_PROFILES_PAGE_STR_DESC, request, context); + return ListFileStoreDataProfilesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListConnectionsRequest, ListConnectionsResponse, ListConnectionsPagedResponse> LIST_CONNECTIONS_PAGE_STR_FACT = @@ -1241,6 +1332,27 @@ public UnaryCallSettings deleteStoredInfoTyp return getProjectDataProfileSettings; } + /** Returns the object with the settings used for calls to listFileStoreDataProfiles. */ + public PagedCallSettings< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + ListFileStoreDataProfilesPagedResponse> + listFileStoreDataProfilesSettings() { + return listFileStoreDataProfilesSettings; + } + + /** Returns the object with the settings used for calls to getFileStoreDataProfile. */ + public UnaryCallSettings + getFileStoreDataProfileSettings() { + return getFileStoreDataProfileSettings; + } + + /** Returns the object with the settings used for calls to deleteFileStoreDataProfile. */ + public UnaryCallSettings + deleteFileStoreDataProfileSettings() { + return deleteFileStoreDataProfileSettings; + } + /** Returns the object with the settings used for calls to getTableDataProfile. */ public UnaryCallSettings getTableDataProfileSettings() { @@ -1331,6 +1443,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "dlp.googleapis.com:443"; } @@ -1454,6 +1567,10 @@ protected DlpServiceStubSettings(Builder settingsBuilder) throws IOException { listTableDataProfilesSettings = settingsBuilder.listTableDataProfilesSettings().build(); listColumnDataProfilesSettings = settingsBuilder.listColumnDataProfilesSettings().build(); getProjectDataProfileSettings = settingsBuilder.getProjectDataProfileSettings().build(); + listFileStoreDataProfilesSettings = settingsBuilder.listFileStoreDataProfilesSettings().build(); + getFileStoreDataProfileSettings = settingsBuilder.getFileStoreDataProfileSettings().build(); + deleteFileStoreDataProfileSettings = + settingsBuilder.deleteFileStoreDataProfileSettings().build(); getTableDataProfileSettings = settingsBuilder.getTableDataProfileSettings().build(); getColumnDataProfileSettings = settingsBuilder.getColumnDataProfileSettings().build(); deleteTableDataProfileSettings = settingsBuilder.deleteTableDataProfileSettings().build(); @@ -1570,6 +1687,15 @@ public static class Builder extends StubSettings.Builder getProjectDataProfileSettings; + private final PagedCallSettings.Builder< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + ListFileStoreDataProfilesPagedResponse> + listFileStoreDataProfilesSettings; + private final UnaryCallSettings.Builder + getFileStoreDataProfileSettings; + private final UnaryCallSettings.Builder + deleteFileStoreDataProfileSettings; private final UnaryCallSettings.Builder getTableDataProfileSettings; private final UnaryCallSettings.Builder @@ -1693,6 +1819,10 @@ protected Builder(ClientContext clientContext) { listColumnDataProfilesSettings = PagedCallSettings.newBuilder(LIST_COLUMN_DATA_PROFILES_PAGE_STR_FACT); getProjectDataProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listFileStoreDataProfilesSettings = + PagedCallSettings.newBuilder(LIST_FILE_STORE_DATA_PROFILES_PAGE_STR_FACT); + getFileStoreDataProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFileStoreDataProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getTableDataProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getColumnDataProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteTableDataProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1748,6 +1878,9 @@ protected Builder(ClientContext clientContext) { listTableDataProfilesSettings, listColumnDataProfilesSettings, getProjectDataProfileSettings, + listFileStoreDataProfilesSettings, + getFileStoreDataProfileSettings, + deleteFileStoreDataProfileSettings, getTableDataProfileSettings, getColumnDataProfileSettings, deleteTableDataProfileSettings, @@ -1806,6 +1939,9 @@ protected Builder(DlpServiceStubSettings settings) { listTableDataProfilesSettings = settings.listTableDataProfilesSettings.toBuilder(); listColumnDataProfilesSettings = settings.listColumnDataProfilesSettings.toBuilder(); getProjectDataProfileSettings = settings.getProjectDataProfileSettings.toBuilder(); + listFileStoreDataProfilesSettings = settings.listFileStoreDataProfilesSettings.toBuilder(); + getFileStoreDataProfileSettings = settings.getFileStoreDataProfileSettings.toBuilder(); + deleteFileStoreDataProfileSettings = settings.deleteFileStoreDataProfileSettings.toBuilder(); getTableDataProfileSettings = settings.getTableDataProfileSettings.toBuilder(); getColumnDataProfileSettings = settings.getColumnDataProfileSettings.toBuilder(); deleteTableDataProfileSettings = settings.deleteTableDataProfileSettings.toBuilder(); @@ -1861,6 +1997,9 @@ protected Builder(DlpServiceStubSettings settings) { listTableDataProfilesSettings, listColumnDataProfilesSettings, getProjectDataProfileSettings, + listFileStoreDataProfilesSettings, + getFileStoreDataProfileSettings, + deleteFileStoreDataProfileSettings, getTableDataProfileSettings, getColumnDataProfileSettings, deleteTableDataProfileSettings, @@ -2104,6 +2243,21 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .listFileStoreDataProfilesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getFileStoreDataProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteFileStoreDataProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .getTableDataProfileSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -2440,6 +2594,27 @@ public UnaryCallSettings.Builder cancelDlpJobSetting return getProjectDataProfileSettings; } + /** Returns the builder for the settings used for calls to listFileStoreDataProfiles. */ + public PagedCallSettings.Builder< + ListFileStoreDataProfilesRequest, + ListFileStoreDataProfilesResponse, + ListFileStoreDataProfilesPagedResponse> + listFileStoreDataProfilesSettings() { + return listFileStoreDataProfilesSettings; + } + + /** Returns the builder for the settings used for calls to getFileStoreDataProfile. */ + public UnaryCallSettings.Builder + getFileStoreDataProfileSettings() { + return getFileStoreDataProfileSettings; + } + + /** Returns the builder for the settings used for calls to deleteFileStoreDataProfile. */ + public UnaryCallSettings.Builder + deleteFileStoreDataProfileSettings() { + return deleteFileStoreDataProfileSettings; + } + /** Returns the builder for the settings used for calls to getTableDataProfile. */ public UnaryCallSettings.Builder getTableDataProfileSettings() { diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java index f24ea310bd0f..af60eaacaff2 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java @@ -21,6 +21,7 @@ import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListFileStoreDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListInspectTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListJobTriggersPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListProjectDataProfilesPagedResponse; @@ -54,18 +55,21 @@ import com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest; import com.google.privacy.dlp.v2.DeleteDlpJobRequest; +import com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.DeleteInspectTemplateRequest; import com.google.privacy.dlp.v2.DeleteJobTriggerRequest; import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; import com.google.privacy.dlp.v2.DeleteTableDataProfileRequest; import com.google.privacy.dlp.v2.DiscoveryConfig; import com.google.privacy.dlp.v2.DlpJob; +import com.google.privacy.dlp.v2.FileStoreDataProfile; import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetConnectionRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; +import com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; @@ -88,6 +92,8 @@ import com.google.privacy.dlp.v2.ListDiscoveryConfigsResponse; import com.google.privacy.dlp.v2.ListDlpJobsRequest; import com.google.privacy.dlp.v2.ListDlpJobsResponse; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse; import com.google.privacy.dlp.v2.ListInfoTypesRequest; import com.google.privacy.dlp.v2.ListInfoTypesResponse; import com.google.privacy.dlp.v2.ListInspectTemplatesRequest; @@ -551,6 +557,40 @@ public class GrpcDlpServiceStub extends DlpServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(ProjectDataProfile.getDefaultInstance())) .build(); + private static final MethodDescriptor< + ListFileStoreDataProfilesRequest, ListFileStoreDataProfilesResponse> + listFileStoreDataProfilesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.privacy.dlp.v2.DlpService/ListFileStoreDataProfiles") + .setRequestMarshaller( + ProtoUtils.marshaller(ListFileStoreDataProfilesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListFileStoreDataProfilesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getFileStoreDataProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.privacy.dlp.v2.DlpService/GetFileStoreDataProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(GetFileStoreDataProfileRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FileStoreDataProfile.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteFileStoreDataProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.privacy.dlp.v2.DlpService/DeleteFileStoreDataProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteFileStoreDataProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor getTableDataProfileMethodDescriptor = MethodDescriptor.newBuilder() @@ -745,6 +785,15 @@ public class GrpcDlpServiceStub extends DlpServiceStub { listColumnDataProfilesPagedCallable; private final UnaryCallable getProjectDataProfileCallable; + private final UnaryCallable + listFileStoreDataProfilesCallable; + private final UnaryCallable< + ListFileStoreDataProfilesRequest, ListFileStoreDataProfilesPagedResponse> + listFileStoreDataProfilesPagedCallable; + private final UnaryCallable + getFileStoreDataProfileCallable; + private final UnaryCallable + deleteFileStoreDataProfileCallable; private final UnaryCallable getTableDataProfileCallable; private final UnaryCallable @@ -1247,6 +1296,40 @@ protected GrpcDlpServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + listFileStoreDataProfilesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listFileStoreDataProfilesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getFileStoreDataProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getFileStoreDataProfileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteFileStoreDataProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFileStoreDataProfileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings getTableDataProfileTransportSettings = GrpcCallSettings.newBuilder() @@ -1583,6 +1666,26 @@ protected GrpcDlpServiceStub( getProjectDataProfileTransportSettings, settings.getProjectDataProfileSettings(), clientContext); + this.listFileStoreDataProfilesCallable = + callableFactory.createUnaryCallable( + listFileStoreDataProfilesTransportSettings, + settings.listFileStoreDataProfilesSettings(), + clientContext); + this.listFileStoreDataProfilesPagedCallable = + callableFactory.createPagedCallable( + listFileStoreDataProfilesTransportSettings, + settings.listFileStoreDataProfilesSettings(), + clientContext); + this.getFileStoreDataProfileCallable = + callableFactory.createUnaryCallable( + getFileStoreDataProfileTransportSettings, + settings.getFileStoreDataProfileSettings(), + clientContext); + this.deleteFileStoreDataProfileCallable = + callableFactory.createUnaryCallable( + deleteFileStoreDataProfileTransportSettings, + settings.deleteFileStoreDataProfileSettings(), + clientContext); this.getTableDataProfileCallable = callableFactory.createUnaryCallable( getTableDataProfileTransportSettings, @@ -1919,6 +2022,30 @@ public UnaryCallable deleteStoredInfoTypeCal return getProjectDataProfileCallable; } + @Override + public UnaryCallable + listFileStoreDataProfilesCallable() { + return listFileStoreDataProfilesCallable; + } + + @Override + public UnaryCallable + listFileStoreDataProfilesPagedCallable() { + return listFileStoreDataProfilesPagedCallable; + } + + @Override + public UnaryCallable + getFileStoreDataProfileCallable() { + return getFileStoreDataProfileCallable; + } + + @Override + public UnaryCallable + deleteFileStoreDataProfileCallable() { + return deleteFileStoreDataProfileCallable; + } + @Override public UnaryCallable getTableDataProfileCallable() { return getTableDataProfileCallable; diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/HttpJsonDlpServiceStub.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/HttpJsonDlpServiceStub.java index fe9905491dfe..e7cfb157d09e 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/HttpJsonDlpServiceStub.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/HttpJsonDlpServiceStub.java @@ -21,6 +21,7 @@ import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListFileStoreDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListInspectTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListJobTriggersPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListProjectDataProfilesPagedResponse; @@ -58,18 +59,21 @@ import com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest; import com.google.privacy.dlp.v2.DeleteDlpJobRequest; +import com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.DeleteInspectTemplateRequest; import com.google.privacy.dlp.v2.DeleteJobTriggerRequest; import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; import com.google.privacy.dlp.v2.DeleteTableDataProfileRequest; import com.google.privacy.dlp.v2.DiscoveryConfig; import com.google.privacy.dlp.v2.DlpJob; +import com.google.privacy.dlp.v2.FileStoreDataProfile; import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetConnectionRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; +import com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; @@ -92,6 +96,8 @@ import com.google.privacy.dlp.v2.ListDiscoveryConfigsResponse; import com.google.privacy.dlp.v2.ListDlpJobsRequest; import com.google.privacy.dlp.v2.ListDlpJobsResponse; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse; import com.google.privacy.dlp.v2.ListInfoTypesRequest; import com.google.privacy.dlp.v2.ListInfoTypesResponse; import com.google.privacy.dlp.v2.ListInspectTemplatesRequest; @@ -339,7 +345,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v2/{parent=organizations/*}/inspectTemplates", + "/v2/{parent=projects/*/locations/*}/inspectTemplates", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = @@ -350,7 +356,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setAdditionalPaths( "/v2/{parent=organizations/*/locations/*}/inspectTemplates", "/v2/{parent=projects/*}/inspectTemplates", - "/v2/{parent=projects/*/locations/*}/inspectTemplates") + "/v2/{parent=organizations/*}/inspectTemplates") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -380,7 +386,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v2/{name=organizations/*/inspectTemplates/*}", + "/v2/{name=projects/*/locations/*/inspectTemplates/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = @@ -391,7 +397,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setAdditionalPaths( "/v2/{name=organizations/*/locations/*/inspectTemplates/*}", "/v2/{name=projects/*/inspectTemplates/*}", - "/v2/{name=projects/*/locations/*/inspectTemplates/*}") + "/v2/{name=organizations/*/inspectTemplates/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -421,7 +427,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v2/{name=organizations/*/inspectTemplates/*}", + "/v2/{name=projects/*/locations/*/inspectTemplates/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = @@ -432,7 +438,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setAdditionalPaths( "/v2/{name=organizations/*/locations/*/inspectTemplates/*}", "/v2/{name=projects/*/inspectTemplates/*}", - "/v2/{name=projects/*/locations/*/inspectTemplates/*}") + "/v2/{name=organizations/*/inspectTemplates/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -461,7 +467,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v2/{parent=organizations/*}/inspectTemplates", + "/v2/{parent=projects/*/locations/*}/inspectTemplates", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = @@ -472,7 +478,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setAdditionalPaths( "/v2/{parent=organizations/*/locations/*}/inspectTemplates", "/v2/{parent=projects/*}/inspectTemplates", - "/v2/{parent=projects/*/locations/*}/inspectTemplates") + "/v2/{parent=organizations/*}/inspectTemplates") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -503,7 +509,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v2/{name=organizations/*/inspectTemplates/*}", + "/v2/{name=projects/*/locations/*/inspectTemplates/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = @@ -514,7 +520,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setAdditionalPaths( "/v2/{name=organizations/*/locations/*/inspectTemplates/*}", "/v2/{name=projects/*/inspectTemplates/*}", - "/v2/{name=projects/*/locations/*/inspectTemplates/*}") + "/v2/{name=organizations/*/inspectTemplates/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -1744,6 +1750,120 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .build()) .build(); + private static final ApiMethodDescriptor< + ListFileStoreDataProfilesRequest, ListFileStoreDataProfilesResponse> + listFileStoreDataProfilesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.privacy.dlp.v2.DlpService/ListFileStoreDataProfiles") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=organizations/*/locations/*}/fileStoreDataProfiles", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v2/{parent=projects/*/locations/*}/fileStoreDataProfiles") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListFileStoreDataProfilesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getFileStoreDataProfileMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.privacy.dlp.v2.DlpService/GetFileStoreDataProfile") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FileStoreDataProfile.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteFileStoreDataProfileMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.privacy.dlp.v2.DlpService/DeleteFileStoreDataProfile") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getTableDataProfileMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1940,6 +2060,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths("/v2/{parent=organizations/*/locations/*}/connections") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -1977,6 +2098,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v2/{name=organizations/*/locations/*/connections/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -2011,6 +2133,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths("/v2/{parent=organizations/*/locations/*}/connections") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -2087,6 +2210,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v2/{name=organizations/*/locations/*/connections/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -2121,6 +2245,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v2/{name=organizations/*/locations/*/connections/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -2224,6 +2349,15 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { listColumnDataProfilesPagedCallable; private final UnaryCallable getProjectDataProfileCallable; + private final UnaryCallable + listFileStoreDataProfilesCallable; + private final UnaryCallable< + ListFileStoreDataProfilesRequest, ListFileStoreDataProfilesPagedResponse> + listFileStoreDataProfilesPagedCallable; + private final UnaryCallable + getFileStoreDataProfileCallable; + private final UnaryCallable + deleteFileStoreDataProfileCallable; private final UnaryCallable getTableDataProfileCallable; private final UnaryCallable @@ -2774,6 +2908,43 @@ protected HttpJsonDlpServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listFileStoreDataProfilesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listFileStoreDataProfilesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getFileStoreDataProfileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getFileStoreDataProfileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteFileStoreDataProfileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteFileStoreDataProfileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings getTableDataProfileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3122,6 +3293,26 @@ protected HttpJsonDlpServiceStub( getProjectDataProfileTransportSettings, settings.getProjectDataProfileSettings(), clientContext); + this.listFileStoreDataProfilesCallable = + callableFactory.createUnaryCallable( + listFileStoreDataProfilesTransportSettings, + settings.listFileStoreDataProfilesSettings(), + clientContext); + this.listFileStoreDataProfilesPagedCallable = + callableFactory.createPagedCallable( + listFileStoreDataProfilesTransportSettings, + settings.listFileStoreDataProfilesSettings(), + clientContext); + this.getFileStoreDataProfileCallable = + callableFactory.createUnaryCallable( + getFileStoreDataProfileTransportSettings, + settings.getFileStoreDataProfileSettings(), + clientContext); + this.deleteFileStoreDataProfileCallable = + callableFactory.createUnaryCallable( + deleteFileStoreDataProfileTransportSettings, + settings.deleteFileStoreDataProfileSettings(), + clientContext); this.getTableDataProfileCallable = callableFactory.createUnaryCallable( getTableDataProfileTransportSettings, @@ -3222,6 +3413,9 @@ public static List getMethodDescriptors() { methodDescriptors.add(listTableDataProfilesMethodDescriptor); methodDescriptors.add(listColumnDataProfilesMethodDescriptor); methodDescriptors.add(getProjectDataProfileMethodDescriptor); + methodDescriptors.add(listFileStoreDataProfilesMethodDescriptor); + methodDescriptors.add(getFileStoreDataProfileMethodDescriptor); + methodDescriptors.add(deleteFileStoreDataProfileMethodDescriptor); methodDescriptors.add(getTableDataProfileMethodDescriptor); methodDescriptors.add(getColumnDataProfileMethodDescriptor); methodDescriptors.add(deleteTableDataProfileMethodDescriptor); @@ -3512,6 +3706,30 @@ public UnaryCallable deleteStoredInfoTypeCal return getProjectDataProfileCallable; } + @Override + public UnaryCallable + listFileStoreDataProfilesCallable() { + return listFileStoreDataProfilesCallable; + } + + @Override + public UnaryCallable + listFileStoreDataProfilesPagedCallable() { + return listFileStoreDataProfilesPagedCallable; + } + + @Override + public UnaryCallable + getFileStoreDataProfileCallable() { + return getFileStoreDataProfileCallable; + } + + @Override + public UnaryCallable + deleteFileStoreDataProfileCallable() { + return deleteFileStoreDataProfileCallable; + } + @Override public UnaryCallable getTableDataProfileCallable() { return getTableDataProfileCallable; diff --git a/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json b/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json index 9e05fdb6915e..a3b66336fab3 100644 --- a/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json +++ b/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json @@ -575,6 +575,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.AllOtherResources", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.AllOtherResources$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails", "queryAllDeclaredConstructors": true, @@ -1295,6 +1313,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.CloudStorageFileSet", "queryAllDeclaredConstructors": true, @@ -1376,6 +1412,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.CloudStorageRegex", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.CloudStorageRegex$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.CloudStorageRegexFileSet", "queryAllDeclaredConstructors": true, @@ -1394,6 +1448,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.CloudStorageResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.CloudStorageResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.Color", "queryAllDeclaredConstructors": true, @@ -2573,6 +2645,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.DeleteInspectTemplateRequest", "queryAllDeclaredConstructors": true, @@ -2834,6 +2924,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions$CloudStorageBucketAttribute", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions$CloudStorageObjectAttribute", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.DiscoveryConfig", "queryAllDeclaredConstructors": true, @@ -2879,6 +3041,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.DiscoveryFileStoreConditions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.DiscoveryFileStoreConditions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.DiscoveryGenerationCadence", "queryAllDeclaredConstructors": true, @@ -2897,6 +3077,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.DiscoverySchemaModifiedCadence", "queryAllDeclaredConstructors": true, @@ -3068,6 +3266,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.Error$ErrorExtraInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.ExcludeByHotword", "queryAllDeclaredConstructors": true, @@ -3158,6 +3365,168 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.FileClusterSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileClusterSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileClusterType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileClusterType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileClusterType$Cluster", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileExtensionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileExtensionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileStoreCollection", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileStoreCollection$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileStoreDataProfile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileStoreDataProfile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileStoreDataProfile$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileStoreInfoTypeSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileStoreInfoTypeSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileStoreRegex", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileStoreRegex$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileStoreRegexes", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.FileStoreRegexes$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.FileType", "queryAllDeclaredConstructors": true, @@ -3311,6 +3680,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.GetInspectTemplateRequest", "queryAllDeclaredConstructors": true, @@ -4391,6 +4778,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.ListInfoTypesRequest", "queryAllDeclaredConstructors": true, diff --git a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientHttpJsonTest.java b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientHttpJsonTest.java index 2fe0dcf81cc5..e95e815f9fbf 100644 --- a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientHttpJsonTest.java +++ b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientHttpJsonTest.java @@ -21,6 +21,7 @@ import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListFileStoreDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListInspectTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListJobTriggersPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListProjectDataProfilesPagedResponse; @@ -66,6 +67,10 @@ import com.google.privacy.dlp.v2.DlpJobType; import com.google.privacy.dlp.v2.EncryptionStatus; import com.google.privacy.dlp.v2.Error; +import com.google.privacy.dlp.v2.FileClusterSummary; +import com.google.privacy.dlp.v2.FileStoreDataProfile; +import com.google.privacy.dlp.v2.FileStoreDataProfileName; +import com.google.privacy.dlp.v2.FileStoreInfoTypeSummary; import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.HybridInspectResponse; import com.google.privacy.dlp.v2.InfoTypeDescription; @@ -84,6 +89,7 @@ import com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse; import com.google.privacy.dlp.v2.ListDiscoveryConfigsResponse; import com.google.privacy.dlp.v2.ListDlpJobsResponse; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse; import com.google.privacy.dlp.v2.ListInfoTypesResponse; import com.google.privacy.dlp.v2.ListInspectTemplatesResponse; import com.google.privacy.dlp.v2.ListJobTriggersResponse; @@ -115,6 +121,7 @@ import com.google.privacy.dlp.v2.TableDataProfileName; import com.google.privacy.dlp.v2.TransformationOverview; import com.google.privacy.dlp.v2.UniquenessScoreLevel; +import com.google.privacy.dlp.v2.Value; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; @@ -686,7 +693,7 @@ public void createInspectTemplateTest5() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "organizations/organization-8287"; + String parent = "projects/project-5833/locations/location-5833"; InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); InspectTemplate actualResponse = client.createInspectTemplate(parent, inspectTemplate); @@ -715,7 +722,7 @@ public void createInspectTemplateExceptionTest5() throws Exception { mockService.addException(exception); try { - String parent = "organizations/organization-8287"; + String parent = "projects/project-5833/locations/location-5833"; InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); client.createInspectTemplate(parent, inspectTemplate); Assert.fail("No exception raised"); @@ -729,8 +736,8 @@ public void updateInspectTemplateTest() throws Exception { InspectTemplate expectedResponse = InspectTemplate.newBuilder() .setName( - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") .toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -741,8 +748,8 @@ public void updateInspectTemplateTest() throws Exception { mockService.addResponse(expectedResponse); InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -774,8 +781,8 @@ public void updateInspectTemplateExceptionTest() throws Exception { try { InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateInspectTemplate(name, inspectTemplate, updateMask); @@ -790,8 +797,8 @@ public void updateInspectTemplateTest2() throws Exception { InspectTemplate expectedResponse = InspectTemplate.newBuilder() .setName( - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") .toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -801,7 +808,8 @@ public void updateInspectTemplateTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); - String name = "organizations/organization-353/inspectTemplates/inspectTemplate-353"; + String name = + "projects/project-5579/locations/location-5579/inspectTemplates/inspectTemplate-5579"; InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -832,7 +840,8 @@ public void updateInspectTemplateExceptionTest2() throws Exception { mockService.addException(exception); try { - String name = "organizations/organization-353/inspectTemplates/inspectTemplate-353"; + String name = + "projects/project-5579/locations/location-5579/inspectTemplates/inspectTemplate-5579"; InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateInspectTemplate(name, inspectTemplate, updateMask); @@ -847,8 +856,8 @@ public void getInspectTemplateTest() throws Exception { InspectTemplate expectedResponse = InspectTemplate.newBuilder() .setName( - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") .toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -859,8 +868,8 @@ public void getInspectTemplateTest() throws Exception { mockService.addResponse(expectedResponse); InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); InspectTemplate actualResponse = client.getInspectTemplate(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -889,8 +898,8 @@ public void getInspectTemplateExceptionTest() throws Exception { try { InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); client.getInspectTemplate(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -903,8 +912,8 @@ public void getInspectTemplateTest2() throws Exception { InspectTemplate expectedResponse = InspectTemplate.newBuilder() .setName( - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") .toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -914,7 +923,8 @@ public void getInspectTemplateTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); - String name = "organizations/organization-353/inspectTemplates/inspectTemplate-353"; + String name = + "projects/project-5579/locations/location-5579/inspectTemplates/inspectTemplate-5579"; InspectTemplate actualResponse = client.getInspectTemplate(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -942,7 +952,8 @@ public void getInspectTemplateExceptionTest2() throws Exception { mockService.addException(exception); try { - String name = "organizations/organization-353/inspectTemplates/inspectTemplate-353"; + String name = + "projects/project-5579/locations/location-5579/inspectTemplates/inspectTemplate-5579"; client.getInspectTemplate(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -1160,7 +1171,7 @@ public void listInspectTemplatesTest5() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "organizations/organization-8287"; + String parent = "projects/project-5833/locations/location-5833"; ListInspectTemplatesPagedResponse pagedListResponse = client.listInspectTemplates(parent); @@ -1192,7 +1203,7 @@ public void listInspectTemplatesExceptionTest5() throws Exception { mockService.addException(exception); try { - String parent = "organizations/organization-8287"; + String parent = "projects/project-5833/locations/location-5833"; client.listInspectTemplates(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -1206,8 +1217,8 @@ public void deleteInspectTemplateTest() throws Exception { mockService.addResponse(expectedResponse); InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); client.deleteInspectTemplate(name); @@ -1235,8 +1246,8 @@ public void deleteInspectTemplateExceptionTest() throws Exception { try { InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); client.deleteInspectTemplate(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -1249,7 +1260,8 @@ public void deleteInspectTemplateTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - String name = "organizations/organization-353/inspectTemplates/inspectTemplate-353"; + String name = + "projects/project-5579/locations/location-5579/inspectTemplates/inspectTemplate-5579"; client.deleteInspectTemplate(name); @@ -1276,7 +1288,8 @@ public void deleteInspectTemplateExceptionTest2() throws Exception { mockService.addException(exception); try { - String name = "organizations/organization-353/inspectTemplates/inspectTemplate-353"; + String name = + "projects/project-5579/locations/location-5579/inspectTemplates/inspectTemplate-5579"; client.deleteInspectTemplate(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -5362,6 +5375,8 @@ public void getProjectDataProfileTest() throws Exception { .setSensitivityScore(SensitivityScore.newBuilder().build()) .setDataRiskLevel(DataRiskLevel.newBuilder().build()) .setProfileStatus(ProfileStatus.newBuilder().build()) + .setTableDataProfileCount(330585909) + .setFileStoreDataProfileCount(-332405595) .build(); mockService.addResponse(expectedResponse); @@ -5418,6 +5433,8 @@ public void getProjectDataProfileTest2() throws Exception { .setSensitivityScore(SensitivityScore.newBuilder().build()) .setDataRiskLevel(DataRiskLevel.newBuilder().build()) .setProfileStatus(ProfileStatus.newBuilder().build()) + .setTableDataProfileCount(330585909) + .setFileStoreDataProfileCount(-332405595) .build(); mockService.addResponse(expectedResponse); @@ -5459,6 +5476,387 @@ public void getProjectDataProfileExceptionTest2() throws Exception { } } + @Test + public void listFileStoreDataProfilesTest() throws Exception { + FileStoreDataProfile responsesElement = FileStoreDataProfile.newBuilder().build(); + ListFileStoreDataProfilesResponse expectedResponse = + ListFileStoreDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllFileStoreDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFileStoreDataProfilesPagedResponse pagedListResponse = + client.listFileStoreDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFileStoreDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listFileStoreDataProfilesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFileStoreDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFileStoreDataProfilesTest2() throws Exception { + FileStoreDataProfile responsesElement = FileStoreDataProfile.newBuilder().build(); + ListFileStoreDataProfilesResponse expectedResponse = + ListFileStoreDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllFileStoreDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListFileStoreDataProfilesPagedResponse pagedListResponse = + client.listFileStoreDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFileStoreDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listFileStoreDataProfilesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listFileStoreDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFileStoreDataProfilesTest3() throws Exception { + FileStoreDataProfile responsesElement = FileStoreDataProfile.newBuilder().build(); + ListFileStoreDataProfilesResponse expectedResponse = + ListFileStoreDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllFileStoreDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListFileStoreDataProfilesPagedResponse pagedListResponse = + client.listFileStoreDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFileStoreDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listFileStoreDataProfilesExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + client.listFileStoreDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFileStoreDataProfileTest() throws Exception { + FileStoreDataProfile expectedResponse = + FileStoreDataProfile.newBuilder() + .setName( + FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]") + .toString()) + .setDataSourceType(DataSourceType.newBuilder().build()) + .setProjectDataProfile("projectDataProfile-1125465658") + .setProjectId("projectId-894832108") + .setFileStoreLocation("fileStoreLocation-896168038") + .addAllDataStorageLocations(new ArrayList()) + .setLocationType("locationType-58277745") + .setFileStorePath("fileStorePath1037045386") + .setFullResource("fullResource-1464972355") + .setConfigSnapshot(DataProfileConfigSnapshot.newBuilder().build()) + .setProfileStatus(ProfileStatus.newBuilder().build()) + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .setResourceVisibility(ResourceVisibility.forNumber(0)) + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLastModifiedTime(Timestamp.newBuilder().build()) + .addAllFileClusterSummaries(new ArrayList()) + .putAllResourceAttributes(new HashMap()) + .putAllResourceLabels(new HashMap()) + .addAllFileStoreInfoTypeSummaries(new ArrayList()) + .setFileStoreIsEmpty(true) + .build(); + mockService.addResponse(expectedResponse); + + ProjectDataProfileName name = + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"); + + FileStoreDataProfile actualResponse = client.getFileStoreDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getFileStoreDataProfileExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectDataProfileName name = + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"); + client.getFileStoreDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFileStoreDataProfileTest2() throws Exception { + FileStoreDataProfile expectedResponse = + FileStoreDataProfile.newBuilder() + .setName( + FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]") + .toString()) + .setDataSourceType(DataSourceType.newBuilder().build()) + .setProjectDataProfile("projectDataProfile-1125465658") + .setProjectId("projectId-894832108") + .setFileStoreLocation("fileStoreLocation-896168038") + .addAllDataStorageLocations(new ArrayList()) + .setLocationType("locationType-58277745") + .setFileStorePath("fileStorePath1037045386") + .setFullResource("fullResource-1464972355") + .setConfigSnapshot(DataProfileConfigSnapshot.newBuilder().build()) + .setProfileStatus(ProfileStatus.newBuilder().build()) + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .setResourceVisibility(ResourceVisibility.forNumber(0)) + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLastModifiedTime(Timestamp.newBuilder().build()) + .addAllFileClusterSummaries(new ArrayList()) + .putAllResourceAttributes(new HashMap()) + .putAllResourceLabels(new HashMap()) + .addAllFileStoreInfoTypeSummaries(new ArrayList()) + .setFileStoreIsEmpty(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "organizations/organization-7105/locations/location-7105/fileStoreDataProfiles/fileStoreDataProfile-7105"; + + FileStoreDataProfile actualResponse = client.getFileStoreDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getFileStoreDataProfileExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-7105/locations/location-7105/fileStoreDataProfiles/fileStoreDataProfile-7105"; + client.getFileStoreDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFileStoreDataProfileTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + FileStoreDataProfileName name = + FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]"); + + client.deleteFileStoreDataProfile(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteFileStoreDataProfileExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FileStoreDataProfileName name = + FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]"); + client.deleteFileStoreDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFileStoreDataProfileTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "organizations/organization-7105/locations/location-7105/fileStoreDataProfiles/fileStoreDataProfile-7105"; + + client.deleteFileStoreDataProfile(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteFileStoreDataProfileExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-7105/locations/location-7105/fileStoreDataProfiles/fileStoreDataProfile-7105"; + client.deleteFileStoreDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getTableDataProfileTest() throws Exception { TableDataProfile expectedResponse = @@ -5963,7 +6361,10 @@ public void finishDlpJobExceptionTest() throws Exception { public void createConnectionTest() throws Exception { Connection expectedResponse = Connection.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .setState(ConnectionState.forNumber(0)) .addAllErrors(new ArrayList()) .build(); @@ -6011,13 +6412,16 @@ public void createConnectionExceptionTest() throws Exception { public void createConnectionTest2() throws Exception { Connection expectedResponse = Connection.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .setState(ConnectionState.forNumber(0)) .addAllErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - String parent = "projects/project-5833/locations/location-5833"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); Connection connection = Connection.newBuilder().build(); Connection actualResponse = client.createConnection(parent, connection); @@ -6045,6 +6449,57 @@ public void createConnectionExceptionTest2() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + Connection connection = Connection.newBuilder().build(); + client.createConnection(parent, connection); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConnectionTest3() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) + .setState(ConnectionState.forNumber(0)) + .addAllErrors(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Connection connection = Connection.newBuilder().build(); + + Connection actualResponse = client.createConnection(parent, connection); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createConnectionExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String parent = "projects/project-5833/locations/location-5833"; Connection connection = Connection.newBuilder().build(); @@ -6059,13 +6514,17 @@ public void createConnectionExceptionTest2() throws Exception { public void getConnectionTest() throws Exception { Connection expectedResponse = Connection.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .setState(ConnectionState.forNumber(0)) .addAllErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); Connection actualResponse = client.getConnection(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -6093,7 +6552,8 @@ public void getConnectionExceptionTest() throws Exception { mockService.addException(exception); try { - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); client.getConnection(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -6105,7 +6565,10 @@ public void getConnectionExceptionTest() throws Exception { public void getConnectionTest2() throws Exception { Connection expectedResponse = Connection.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .setState(ConnectionState.forNumber(0)) .addAllErrors(new ArrayList()) .build(); @@ -6207,7 +6670,7 @@ public void listConnectionsTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "projects/project-5833/locations/location-5833"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); ListConnectionsPagedResponse pagedListResponse = client.listConnections(parent); @@ -6238,6 +6701,56 @@ public void listConnectionsExceptionTest2() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectionsTest3() throws Exception { + Connection responsesElement = Connection.newBuilder().build(); + ListConnectionsResponse expectedResponse = + ListConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllConnections(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListConnectionsPagedResponse pagedListResponse = client.listConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listConnectionsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String parent = "projects/project-5833/locations/location-5833"; client.listConnections(parent); @@ -6307,7 +6820,7 @@ public void searchConnectionsTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "projects/project-5833/locations/location-5833"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); SearchConnectionsPagedResponse pagedListResponse = client.searchConnections(parent); @@ -6338,6 +6851,56 @@ public void searchConnectionsExceptionTest2() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.searchConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchConnectionsTest3() throws Exception { + Connection responsesElement = Connection.newBuilder().build(); + SearchConnectionsResponse expectedResponse = + SearchConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllConnections(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + SearchConnectionsPagedResponse pagedListResponse = client.searchConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchConnectionsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String parent = "projects/project-5833/locations/location-5833"; client.searchConnections(parent); @@ -6352,7 +6915,8 @@ public void deleteConnectionTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); client.deleteConnection(name); @@ -6379,7 +6943,8 @@ public void deleteConnectionExceptionTest() throws Exception { mockService.addException(exception); try { - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); client.deleteConnection(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -6431,13 +6996,17 @@ public void deleteConnectionExceptionTest2() throws Exception { public void updateConnectionTest() throws Exception { Connection expectedResponse = Connection.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .setState(ConnectionState.forNumber(0)) .addAllErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); Connection actualResponse = client.updateConnection(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -6465,7 +7034,8 @@ public void updateConnectionExceptionTest() throws Exception { mockService.addException(exception); try { - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); client.updateConnection(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -6477,7 +7047,10 @@ public void updateConnectionExceptionTest() throws Exception { public void updateConnectionTest2() throws Exception { Connection expectedResponse = Connection.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .setState(ConnectionState.forNumber(0)) .addAllErrors(new ArrayList()) .build(); diff --git a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java index 4989912b0804..8b9d520d746d 100644 --- a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java +++ b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java @@ -21,6 +21,7 @@ import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListFileStoreDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListInspectTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListJobTriggersPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListProjectDataProfilesPagedResponse; @@ -66,6 +67,7 @@ import com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest; import com.google.privacy.dlp.v2.DeleteDlpJobRequest; +import com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.DeleteInspectTemplateRequest; import com.google.privacy.dlp.v2.DeleteJobTriggerRequest; import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; @@ -78,12 +80,17 @@ import com.google.privacy.dlp.v2.DlpJobType; import com.google.privacy.dlp.v2.EncryptionStatus; import com.google.privacy.dlp.v2.Error; +import com.google.privacy.dlp.v2.FileClusterSummary; +import com.google.privacy.dlp.v2.FileStoreDataProfile; +import com.google.privacy.dlp.v2.FileStoreDataProfileName; +import com.google.privacy.dlp.v2.FileStoreInfoTypeSummary; import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetConnectionRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; +import com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; @@ -113,6 +120,8 @@ import com.google.privacy.dlp.v2.ListDiscoveryConfigsResponse; import com.google.privacy.dlp.v2.ListDlpJobsRequest; import com.google.privacy.dlp.v2.ListDlpJobsResponse; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse; import com.google.privacy.dlp.v2.ListInfoTypesRequest; import com.google.privacy.dlp.v2.ListInfoTypesResponse; import com.google.privacy.dlp.v2.ListInspectTemplatesRequest; @@ -157,6 +166,7 @@ import com.google.privacy.dlp.v2.UpdateInspectTemplateRequest; import com.google.privacy.dlp.v2.UpdateJobTriggerRequest; import com.google.privacy.dlp.v2.UpdateStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.Value; import com.google.protobuf.AbstractMessage; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; @@ -752,8 +762,8 @@ public void updateInspectTemplateTest() throws Exception { InspectTemplate expectedResponse = InspectTemplate.newBuilder() .setName( - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") .toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -764,8 +774,8 @@ public void updateInspectTemplateTest() throws Exception { mockDlpService.addResponse(expectedResponse); InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -794,8 +804,8 @@ public void updateInspectTemplateExceptionTest() throws Exception { try { InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateInspectTemplate(name, inspectTemplate, updateMask); @@ -810,8 +820,8 @@ public void updateInspectTemplateTest2() throws Exception { InspectTemplate expectedResponse = InspectTemplate.newBuilder() .setName( - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") .toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -864,8 +874,8 @@ public void getInspectTemplateTest() throws Exception { InspectTemplate expectedResponse = InspectTemplate.newBuilder() .setName( - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") .toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -876,8 +886,8 @@ public void getInspectTemplateTest() throws Exception { mockDlpService.addResponse(expectedResponse); InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); InspectTemplate actualResponse = client.getInspectTemplate(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -900,8 +910,8 @@ public void getInspectTemplateExceptionTest() throws Exception { try { InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); client.getInspectTemplate(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -914,8 +924,8 @@ public void getInspectTemplateTest2() throws Exception { InspectTemplate expectedResponse = InspectTemplate.newBuilder() .setName( - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") .toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -1186,8 +1196,8 @@ public void deleteInspectTemplateTest() throws Exception { mockDlpService.addResponse(expectedResponse); InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); client.deleteInspectTemplate(name); @@ -1210,8 +1220,8 @@ public void deleteInspectTemplateExceptionTest() throws Exception { try { InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); client.deleteInspectTemplate(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -4927,6 +4937,8 @@ public void getProjectDataProfileTest() throws Exception { .setSensitivityScore(SensitivityScore.newBuilder().build()) .setDataRiskLevel(DataRiskLevel.newBuilder().build()) .setProfileStatus(ProfileStatus.newBuilder().build()) + .setTableDataProfileCount(330585909) + .setFileStoreDataProfileCount(-332405595) .build(); mockDlpService.addResponse(expectedResponse); @@ -4978,6 +4990,8 @@ public void getProjectDataProfileTest2() throws Exception { .setSensitivityScore(SensitivityScore.newBuilder().build()) .setDataRiskLevel(DataRiskLevel.newBuilder().build()) .setProfileStatus(ProfileStatus.newBuilder().build()) + .setTableDataProfileCount(330585909) + .setFileStoreDataProfileCount(-332405595) .build(); mockDlpService.addResponse(expectedResponse); @@ -5012,6 +5026,348 @@ public void getProjectDataProfileExceptionTest2() throws Exception { } } + @Test + public void listFileStoreDataProfilesTest() throws Exception { + FileStoreDataProfile responsesElement = FileStoreDataProfile.newBuilder().build(); + ListFileStoreDataProfilesResponse expectedResponse = + ListFileStoreDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllFileStoreDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockDlpService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFileStoreDataProfilesPagedResponse pagedListResponse = + client.listFileStoreDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFileStoreDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFileStoreDataProfilesRequest actualRequest = + ((ListFileStoreDataProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFileStoreDataProfilesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFileStoreDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFileStoreDataProfilesTest2() throws Exception { + FileStoreDataProfile responsesElement = FileStoreDataProfile.newBuilder().build(); + ListFileStoreDataProfilesResponse expectedResponse = + ListFileStoreDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllFileStoreDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockDlpService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListFileStoreDataProfilesPagedResponse pagedListResponse = + client.listFileStoreDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFileStoreDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFileStoreDataProfilesRequest actualRequest = + ((ListFileStoreDataProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFileStoreDataProfilesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listFileStoreDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFileStoreDataProfilesTest3() throws Exception { + FileStoreDataProfile responsesElement = FileStoreDataProfile.newBuilder().build(); + ListFileStoreDataProfilesResponse expectedResponse = + ListFileStoreDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllFileStoreDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockDlpService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListFileStoreDataProfilesPagedResponse pagedListResponse = + client.listFileStoreDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFileStoreDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFileStoreDataProfilesRequest actualRequest = + ((ListFileStoreDataProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFileStoreDataProfilesExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listFileStoreDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFileStoreDataProfileTest() throws Exception { + FileStoreDataProfile expectedResponse = + FileStoreDataProfile.newBuilder() + .setName( + FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]") + .toString()) + .setDataSourceType(DataSourceType.newBuilder().build()) + .setProjectDataProfile("projectDataProfile-1125465658") + .setProjectId("projectId-894832108") + .setFileStoreLocation("fileStoreLocation-896168038") + .addAllDataStorageLocations(new ArrayList()) + .setLocationType("locationType-58277745") + .setFileStorePath("fileStorePath1037045386") + .setFullResource("fullResource-1464972355") + .setConfigSnapshot(DataProfileConfigSnapshot.newBuilder().build()) + .setProfileStatus(ProfileStatus.newBuilder().build()) + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .setResourceVisibility(ResourceVisibility.forNumber(0)) + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLastModifiedTime(Timestamp.newBuilder().build()) + .addAllFileClusterSummaries(new ArrayList()) + .putAllResourceAttributes(new HashMap()) + .putAllResourceLabels(new HashMap()) + .addAllFileStoreInfoTypeSummaries(new ArrayList()) + .setFileStoreIsEmpty(true) + .build(); + mockDlpService.addResponse(expectedResponse); + + ProjectDataProfileName name = + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"); + + FileStoreDataProfile actualResponse = client.getFileStoreDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFileStoreDataProfileRequest actualRequest = + ((GetFileStoreDataProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFileStoreDataProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + ProjectDataProfileName name = + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"); + client.getFileStoreDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFileStoreDataProfileTest2() throws Exception { + FileStoreDataProfile expectedResponse = + FileStoreDataProfile.newBuilder() + .setName( + FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]") + .toString()) + .setDataSourceType(DataSourceType.newBuilder().build()) + .setProjectDataProfile("projectDataProfile-1125465658") + .setProjectId("projectId-894832108") + .setFileStoreLocation("fileStoreLocation-896168038") + .addAllDataStorageLocations(new ArrayList()) + .setLocationType("locationType-58277745") + .setFileStorePath("fileStorePath1037045386") + .setFullResource("fullResource-1464972355") + .setConfigSnapshot(DataProfileConfigSnapshot.newBuilder().build()) + .setProfileStatus(ProfileStatus.newBuilder().build()) + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .setResourceVisibility(ResourceVisibility.forNumber(0)) + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLastModifiedTime(Timestamp.newBuilder().build()) + .addAllFileClusterSummaries(new ArrayList()) + .putAllResourceAttributes(new HashMap()) + .putAllResourceLabels(new HashMap()) + .addAllFileStoreInfoTypeSummaries(new ArrayList()) + .setFileStoreIsEmpty(true) + .build(); + mockDlpService.addResponse(expectedResponse); + + String name = "name3373707"; + + FileStoreDataProfile actualResponse = client.getFileStoreDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFileStoreDataProfileRequest actualRequest = + ((GetFileStoreDataProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFileStoreDataProfileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + String name = "name3373707"; + client.getFileStoreDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFileStoreDataProfileTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDlpService.addResponse(expectedResponse); + + FileStoreDataProfileName name = + FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]"); + + client.deleteFileStoreDataProfile(name); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFileStoreDataProfileRequest actualRequest = + ((DeleteFileStoreDataProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFileStoreDataProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + FileStoreDataProfileName name = + FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]"); + client.deleteFileStoreDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFileStoreDataProfileTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDlpService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteFileStoreDataProfile(name); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFileStoreDataProfileRequest actualRequest = + ((DeleteFileStoreDataProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFileStoreDataProfileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + String name = "name3373707"; + client.deleteFileStoreDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getTableDataProfileTest() throws Exception { TableDataProfile expectedResponse = @@ -5460,7 +5816,10 @@ public void finishDlpJobExceptionTest() throws Exception { public void createConnectionTest() throws Exception { Connection expectedResponse = Connection.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .setState(ConnectionState.forNumber(0)) .addAllErrors(new ArrayList()) .build(); @@ -5503,7 +5862,56 @@ public void createConnectionExceptionTest() throws Exception { public void createConnectionTest2() throws Exception { Connection expectedResponse = Connection.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) + .setState(ConnectionState.forNumber(0)) + .addAllErrors(new ArrayList()) + .build(); + mockDlpService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + Connection connection = Connection.newBuilder().build(); + + Connection actualResponse = client.createConnection(parent, connection); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConnectionRequest actualRequest = ((CreateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(connection, actualRequest.getConnection()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConnectionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + Connection connection = Connection.newBuilder().build(); + client.createConnection(parent, connection); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConnectionTest3() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .setState(ConnectionState.forNumber(0)) .addAllErrors(new ArrayList()) .build(); @@ -5528,7 +5936,7 @@ public void createConnectionTest2() throws Exception { } @Test - public void createConnectionExceptionTest2() throws Exception { + public void createConnectionExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDlpService.addException(exception); @@ -5546,13 +5954,17 @@ public void createConnectionExceptionTest2() throws Exception { public void getConnectionTest() throws Exception { Connection expectedResponse = Connection.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .setState(ConnectionState.forNumber(0)) .addAllErrors(new ArrayList()) .build(); mockDlpService.addResponse(expectedResponse); - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); Connection actualResponse = client.getConnection(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -5574,7 +5986,8 @@ public void getConnectionExceptionTest() throws Exception { mockDlpService.addException(exception); try { - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); client.getConnection(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -5586,7 +5999,10 @@ public void getConnectionExceptionTest() throws Exception { public void getConnectionTest2() throws Exception { Connection expectedResponse = Connection.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .setState(ConnectionState.forNumber(0)) .addAllErrors(new ArrayList()) .build(); @@ -5676,6 +6092,50 @@ public void listConnectionsTest2() throws Exception { .build(); mockDlpService.addResponse(expectedResponse); + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListConnectionsPagedResponse pagedListResponse = client.listConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectionsList().get(0), resources.get(0)); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConnectionsRequest actualRequest = ((ListConnectionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConnectionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectionsTest3() throws Exception { + Connection responsesElement = Connection.newBuilder().build(); + ListConnectionsResponse expectedResponse = + ListConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllConnections(Arrays.asList(responsesElement)) + .build(); + mockDlpService.addResponse(expectedResponse); + String parent = "parent-995424086"; ListConnectionsPagedResponse pagedListResponse = client.listConnections(parent); @@ -5697,7 +6157,7 @@ public void listConnectionsTest2() throws Exception { } @Test - public void listConnectionsExceptionTest2() throws Exception { + public void listConnectionsExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDlpService.addException(exception); @@ -5764,6 +6224,50 @@ public void searchConnectionsTest2() throws Exception { .build(); mockDlpService.addResponse(expectedResponse); + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + SearchConnectionsPagedResponse pagedListResponse = client.searchConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectionsList().get(0), resources.get(0)); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchConnectionsRequest actualRequest = ((SearchConnectionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchConnectionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.searchConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchConnectionsTest3() throws Exception { + Connection responsesElement = Connection.newBuilder().build(); + SearchConnectionsResponse expectedResponse = + SearchConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllConnections(Arrays.asList(responsesElement)) + .build(); + mockDlpService.addResponse(expectedResponse); + String parent = "parent-995424086"; SearchConnectionsPagedResponse pagedListResponse = client.searchConnections(parent); @@ -5785,7 +6289,7 @@ public void searchConnectionsTest2() throws Exception { } @Test - public void searchConnectionsExceptionTest2() throws Exception { + public void searchConnectionsExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDlpService.addException(exception); @@ -5803,7 +6307,8 @@ public void deleteConnectionTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockDlpService.addResponse(expectedResponse); - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); client.deleteConnection(name); @@ -5824,7 +6329,8 @@ public void deleteConnectionExceptionTest() throws Exception { mockDlpService.addException(exception); try { - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); client.deleteConnection(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -5870,13 +6376,17 @@ public void deleteConnectionExceptionTest2() throws Exception { public void updateConnectionTest() throws Exception { Connection expectedResponse = Connection.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .setState(ConnectionState.forNumber(0)) .addAllErrors(new ArrayList()) .build(); mockDlpService.addResponse(expectedResponse); - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); Connection actualResponse = client.updateConnection(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -5898,7 +6408,8 @@ public void updateConnectionExceptionTest() throws Exception { mockDlpService.addException(exception); try { - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); client.updateConnection(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -5910,7 +6421,10 @@ public void updateConnectionExceptionTest() throws Exception { public void updateConnectionTest2() throws Exception { Connection expectedResponse = Connection.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .setState(ConnectionState.forNumber(0)) .addAllErrors(new ArrayList()) .build(); diff --git a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/MockDlpServiceImpl.java b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/MockDlpServiceImpl.java index 159a7dff0523..829c5b15c1dd 100644 --- a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/MockDlpServiceImpl.java +++ b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/MockDlpServiceImpl.java @@ -35,6 +35,7 @@ import com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest; import com.google.privacy.dlp.v2.DeleteDlpJobRequest; +import com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.DeleteInspectTemplateRequest; import com.google.privacy.dlp.v2.DeleteJobTriggerRequest; import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; @@ -42,12 +43,14 @@ import com.google.privacy.dlp.v2.DiscoveryConfig; import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.DlpServiceGrpc.DlpServiceImplBase; +import com.google.privacy.dlp.v2.FileStoreDataProfile; import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetConnectionRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; +import com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; @@ -70,6 +73,8 @@ import com.google.privacy.dlp.v2.ListDiscoveryConfigsResponse; import com.google.privacy.dlp.v2.ListDlpJobsRequest; import com.google.privacy.dlp.v2.ListDlpJobsResponse; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse; import com.google.privacy.dlp.v2.ListInfoTypesRequest; import com.google.privacy.dlp.v2.ListInfoTypesResponse; import com.google.privacy.dlp.v2.ListInspectTemplatesRequest; @@ -1007,6 +1012,71 @@ public void getProjectDataProfile( } } + @Override + public void listFileStoreDataProfiles( + ListFileStoreDataProfilesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListFileStoreDataProfilesResponse) { + requests.add(request); + responseObserver.onNext(((ListFileStoreDataProfilesResponse) 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 ListFileStoreDataProfiles, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListFileStoreDataProfilesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getFileStoreDataProfile( + GetFileStoreDataProfileRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FileStoreDataProfile) { + requests.add(request); + responseObserver.onNext(((FileStoreDataProfile) 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 GetFileStoreDataProfile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FileStoreDataProfile.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteFileStoreDataProfile( + DeleteFileStoreDataProfileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteFileStoreDataProfile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getTableDataProfile( GetTableDataProfileRequest request, StreamObserver responseObserver) { diff --git a/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java b/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java index 419173ce3ced..0410eeb520fa 100644 --- a/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java +++ b/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java @@ -1930,6 +1930,152 @@ private DlpServiceGrpc() {} return getGetProjectDataProfileMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest, + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse> + getListFileStoreDataProfilesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFileStoreDataProfiles", + requestType = com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest.class, + responseType = com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest, + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse> + getListFileStoreDataProfilesMethod() { + io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest, + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse> + getListFileStoreDataProfilesMethod; + if ((getListFileStoreDataProfilesMethod = DlpServiceGrpc.getListFileStoreDataProfilesMethod) + == null) { + synchronized (DlpServiceGrpc.class) { + if ((getListFileStoreDataProfilesMethod = DlpServiceGrpc.getListFileStoreDataProfilesMethod) + == null) { + DlpServiceGrpc.getListFileStoreDataProfilesMethod = + getListFileStoreDataProfilesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListFileStoreDataProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DlpServiceMethodDescriptorSupplier("ListFileStoreDataProfiles")) + .build(); + } + } + } + return getListFileStoreDataProfilesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest, + com.google.privacy.dlp.v2.FileStoreDataProfile> + getGetFileStoreDataProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFileStoreDataProfile", + requestType = com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest.class, + responseType = com.google.privacy.dlp.v2.FileStoreDataProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest, + com.google.privacy.dlp.v2.FileStoreDataProfile> + getGetFileStoreDataProfileMethod() { + io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest, + com.google.privacy.dlp.v2.FileStoreDataProfile> + getGetFileStoreDataProfileMethod; + if ((getGetFileStoreDataProfileMethod = DlpServiceGrpc.getGetFileStoreDataProfileMethod) + == null) { + synchronized (DlpServiceGrpc.class) { + if ((getGetFileStoreDataProfileMethod = DlpServiceGrpc.getGetFileStoreDataProfileMethod) + == null) { + DlpServiceGrpc.getGetFileStoreDataProfileMethod = + getGetFileStoreDataProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetFileStoreDataProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance())) + .setSchemaDescriptor( + new DlpServiceMethodDescriptorSupplier("GetFileStoreDataProfile")) + .build(); + } + } + } + return getGetFileStoreDataProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest, com.google.protobuf.Empty> + getDeleteFileStoreDataProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFileStoreDataProfile", + requestType = com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest, com.google.protobuf.Empty> + getDeleteFileStoreDataProfileMethod() { + io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest, com.google.protobuf.Empty> + getDeleteFileStoreDataProfileMethod; + if ((getDeleteFileStoreDataProfileMethod = DlpServiceGrpc.getDeleteFileStoreDataProfileMethod) + == null) { + synchronized (DlpServiceGrpc.class) { + if ((getDeleteFileStoreDataProfileMethod = + DlpServiceGrpc.getDeleteFileStoreDataProfileMethod) + == null) { + DlpServiceGrpc.getDeleteFileStoreDataProfileMethod = + getDeleteFileStoreDataProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteFileStoreDataProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DlpServiceMethodDescriptorSupplier("DeleteFileStoreDataProfile")) + .build(); + } + } + } + return getDeleteFileStoreDataProfileMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.privacy.dlp.v2.GetTableDataProfileRequest, com.google.privacy.dlp.v2.TableDataProfile> @@ -3197,6 +3343,51 @@ default void getProjectDataProfile( getGetProjectDataProfileMethod(), responseObserver); } + /** + * + * + *
        +     * Lists file store data profiles for an organization.
        +     * 
        + */ + default void listFileStoreDataProfiles( + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFileStoreDataProfilesMethod(), responseObserver); + } + + /** + * + * + *
        +     * Gets a file store data profile.
        +     * 
        + */ + default void getFileStoreDataProfile( + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetFileStoreDataProfileMethod(), responseObserver); + } + + /** + * + * + *
        +     * Delete a FileStoreDataProfile. Will not prevent the profile from being
        +     * regenerated if the resource is still included in a discovery configuration.
        +     * 
        + */ + default void deleteFileStoreDataProfile( + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFileStoreDataProfileMethod(), responseObserver); + } + /** * * @@ -3304,7 +3495,8 @@ default void getConnection( * * *
        -     * Lists Connections in a parent.
        +     * Lists Connections in a parent. Use SearchConnections to see all connections
        +     * within an organization.
              * 
        */ default void listConnections( @@ -4205,6 +4397,57 @@ public void getProjectDataProfile( responseObserver); } + /** + * + * + *
        +     * Lists file store data profiles for an organization.
        +     * 
        + */ + public void listFileStoreDataProfiles( + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFileStoreDataProfilesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Gets a file store data profile.
        +     * 
        + */ + public void getFileStoreDataProfile( + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFileStoreDataProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Delete a FileStoreDataProfile. Will not prevent the profile from being
        +     * regenerated if the resource is still included in a discovery configuration.
        +     * 
        + */ + public void deleteFileStoreDataProfile( + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFileStoreDataProfileMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -4326,7 +4569,8 @@ public void getConnection( * * *
        -     * Lists Connections in a parent.
        +     * Lists Connections in a parent. Use SearchConnections to see all connections
        +     * within an organization.
              * 
        */ public void listConnections( @@ -5075,6 +5319,46 @@ public com.google.privacy.dlp.v2.ProjectDataProfile getProjectDataProfile( getChannel(), getGetProjectDataProfileMethod(), getCallOptions(), request); } + /** + * + * + *
        +     * Lists file store data profiles for an organization.
        +     * 
        + */ + public com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse listFileStoreDataProfiles( + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFileStoreDataProfilesMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Gets a file store data profile.
        +     * 
        + */ + public com.google.privacy.dlp.v2.FileStoreDataProfile getFileStoreDataProfile( + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFileStoreDataProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Delete a FileStoreDataProfile. Will not prevent the profile from being
        +     * regenerated if the resource is still included in a discovery configuration.
        +     * 
        + */ + public com.google.protobuf.Empty deleteFileStoreDataProfile( + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFileStoreDataProfileMethod(), getCallOptions(), request); + } + /** * * @@ -5174,7 +5458,8 @@ public com.google.privacy.dlp.v2.Connection getConnection( * * *
        -     * Lists Connections in a parent.
        +     * Lists Connections in a parent. Use SearchConnections to see all connections
        +     * within an organization.
              * 
        */ public com.google.privacy.dlp.v2.ListConnectionsResponse listConnections( @@ -5939,6 +6224,50 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption getChannel().newCall(getGetProjectDataProfileMethod(), getCallOptions()), request); } + /** + * + * + *
        +     * Lists file store data profiles for an organization.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse> + listFileStoreDataProfiles( + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFileStoreDataProfilesMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Gets a file store data profile.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.privacy.dlp.v2.FileStoreDataProfile> + getFileStoreDataProfile(com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFileStoreDataProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Delete a FileStoreDataProfile. Will not prevent the profile from being
        +     * regenerated if the resource is still included in a discovery configuration.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + deleteFileStoreDataProfile( + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFileStoreDataProfileMethod(), getCallOptions()), request); + } + /** * * @@ -6041,7 +6370,8 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
        -     * Lists Connections in a parent.
        +     * Lists Connections in a parent. Use SearchConnections to see all connections
        +     * within an organization.
              * 
        */ public com.google.common.util.concurrent.ListenableFuture< @@ -6133,17 +6463,20 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_LIST_TABLE_DATA_PROFILES = 38; private static final int METHODID_LIST_COLUMN_DATA_PROFILES = 39; private static final int METHODID_GET_PROJECT_DATA_PROFILE = 40; - private static final int METHODID_GET_TABLE_DATA_PROFILE = 41; - private static final int METHODID_GET_COLUMN_DATA_PROFILE = 42; - private static final int METHODID_DELETE_TABLE_DATA_PROFILE = 43; - private static final int METHODID_HYBRID_INSPECT_DLP_JOB = 44; - private static final int METHODID_FINISH_DLP_JOB = 45; - private static final int METHODID_CREATE_CONNECTION = 46; - private static final int METHODID_GET_CONNECTION = 47; - private static final int METHODID_LIST_CONNECTIONS = 48; - private static final int METHODID_SEARCH_CONNECTIONS = 49; - private static final int METHODID_DELETE_CONNECTION = 50; - private static final int METHODID_UPDATE_CONNECTION = 51; + private static final int METHODID_LIST_FILE_STORE_DATA_PROFILES = 41; + private static final int METHODID_GET_FILE_STORE_DATA_PROFILE = 42; + private static final int METHODID_DELETE_FILE_STORE_DATA_PROFILE = 43; + private static final int METHODID_GET_TABLE_DATA_PROFILE = 44; + private static final int METHODID_GET_COLUMN_DATA_PROFILE = 45; + private static final int METHODID_DELETE_TABLE_DATA_PROFILE = 46; + private static final int METHODID_HYBRID_INSPECT_DLP_JOB = 47; + private static final int METHODID_FINISH_DLP_JOB = 48; + private static final int METHODID_CREATE_CONNECTION = 49; + private static final int METHODID_GET_CONNECTION = 50; + private static final int METHODID_LIST_CONNECTIONS = 51; + private static final int METHODID_SEARCH_CONNECTIONS = 52; + private static final int METHODID_DELETE_CONNECTION = 53; + private static final int METHODID_UPDATE_CONNECTION = 54; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -6398,6 +6731,24 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_FILE_STORE_DATA_PROFILES: + serviceImpl.listFileStoreDataProfiles( + (com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse>) + responseObserver); + break; + case METHODID_GET_FILE_STORE_DATA_PROFILE: + serviceImpl.getFileStoreDataProfile( + (com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_FILE_STORE_DATA_PROFILE: + serviceImpl.deleteFileStoreDataProfile( + (com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_TABLE_DATA_PROFILE: serviceImpl.getTableDataProfile( (com.google.privacy.dlp.v2.GetTableDataProfileRequest) request, @@ -6749,6 +7100,26 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.privacy.dlp.v2.GetProjectDataProfileRequest, com.google.privacy.dlp.v2.ProjectDataProfile>( service, METHODID_GET_PROJECT_DATA_PROFILE))) + .addMethod( + getListFileStoreDataProfilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest, + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse>( + service, METHODID_LIST_FILE_STORE_DATA_PROFILES))) + .addMethod( + getGetFileStoreDataProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest, + com.google.privacy.dlp.v2.FileStoreDataProfile>( + service, METHODID_GET_FILE_STORE_DATA_PROFILE))) + .addMethod( + getDeleteFileStoreDataProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_FILE_STORE_DATA_PROFILE))) .addMethod( getGetTableDataProfileMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -6912,6 +7283,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListTableDataProfilesMethod()) .addMethod(getListColumnDataProfilesMethod()) .addMethod(getGetProjectDataProfileMethod()) + .addMethod(getListFileStoreDataProfilesMethod()) + .addMethod(getGetFileStoreDataProfileMethod()) + .addMethod(getDeleteFileStoreDataProfileMethod()) .addMethod(getGetTableDataProfileMethod()) .addMethod(getGetColumnDataProfileMethod()) .addMethod(getDeleteTableDataProfileMethod()) diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java index f851be3531bb..e05637067ed9 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java @@ -2509,7 +2509,7 @@ public interface DeidentifyOrBuilder * *
              * Required. User settable Cloud Storage bucket and folders to store
        -     * de-identified files. This field must be set for cloud storage
        +     * de-identified files. This field must be set for Cloud Storage
              * deidentification. The output Cloud Storage bucket must be different
              * from the input bucket. De-identified files will overwrite files in the
              * output path.
        @@ -2527,7 +2527,7 @@ public interface DeidentifyOrBuilder
              *
              * 
              * Required. User settable Cloud Storage bucket and folders to store
        -     * de-identified files. This field must be set for cloud storage
        +     * de-identified files. This field must be set for Cloud Storage
              * deidentification. The output Cloud Storage bucket must be different
              * from the input bucket. De-identified files will overwrite files in the
              * output path.
        @@ -2545,7 +2545,7 @@ public interface DeidentifyOrBuilder
              *
              * 
              * Required. User settable Cloud Storage bucket and folders to store
        -     * de-identified files. This field must be set for cloud storage
        +     * de-identified files. This field must be set for Cloud Storage
              * deidentification. The output Cloud Storage bucket must be different
              * from the input bucket. De-identified files will overwrite files in the
              * output path.
        @@ -2564,12 +2564,12 @@ public interface DeidentifyOrBuilder
              *
              * 
              * List of user-specified file type groups to transform. If specified, only
        -     * the files with these filetypes will be transformed. If empty, all
        +     * the files with these file types will be transformed. If empty, all
              * supported files will be transformed. Supported types may be automatically
              * added over time. If a file type is set in this field that isn't supported
              * by the Deidentify action then the job will fail and will not be
        -     * successfully created/started. Currently the only filetypes supported are:
        -     * IMAGES, TEXT_FILES, CSV, TSV.
        +     * successfully created/started. Currently the only file types supported
        +     * are: IMAGES, TEXT_FILES, CSV, TSV.
              * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -2582,12 +2582,12 @@ public interface DeidentifyOrBuilder * *
              * List of user-specified file type groups to transform. If specified, only
        -     * the files with these filetypes will be transformed. If empty, all
        +     * the files with these file types will be transformed. If empty, all
              * supported files will be transformed. Supported types may be automatically
              * added over time. If a file type is set in this field that isn't supported
              * by the Deidentify action then the job will fail and will not be
        -     * successfully created/started. Currently the only filetypes supported are:
        -     * IMAGES, TEXT_FILES, CSV, TSV.
        +     * successfully created/started. Currently the only file types supported
        +     * are: IMAGES, TEXT_FILES, CSV, TSV.
              * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -2600,12 +2600,12 @@ public interface DeidentifyOrBuilder * *
              * List of user-specified file type groups to transform. If specified, only
        -     * the files with these filetypes will be transformed. If empty, all
        +     * the files with these file types will be transformed. If empty, all
              * supported files will be transformed. Supported types may be automatically
              * added over time. If a file type is set in this field that isn't supported
              * by the Deidentify action then the job will fail and will not be
        -     * successfully created/started. Currently the only filetypes supported are:
        -     * IMAGES, TEXT_FILES, CSV, TSV.
        +     * successfully created/started. Currently the only file types supported
        +     * are: IMAGES, TEXT_FILES, CSV, TSV.
              * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -2619,12 +2619,12 @@ public interface DeidentifyOrBuilder * *
              * List of user-specified file type groups to transform. If specified, only
        -     * the files with these filetypes will be transformed. If empty, all
        +     * the files with these file types will be transformed. If empty, all
              * supported files will be transformed. Supported types may be automatically
              * added over time. If a file type is set in this field that isn't supported
              * by the Deidentify action then the job will fail and will not be
        -     * successfully created/started. Currently the only filetypes supported are:
        -     * IMAGES, TEXT_FILES, CSV, TSV.
        +     * successfully created/started. Currently the only file types supported
        +     * are: IMAGES, TEXT_FILES, CSV, TSV.
              * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -2637,12 +2637,12 @@ public interface DeidentifyOrBuilder * *
              * List of user-specified file type groups to transform. If specified, only
        -     * the files with these filetypes will be transformed. If empty, all
        +     * the files with these file types will be transformed. If empty, all
              * supported files will be transformed. Supported types may be automatically
              * added over time. If a file type is set in this field that isn't supported
              * by the Deidentify action then the job will fail and will not be
        -     * successfully created/started. Currently the only filetypes supported are:
        -     * IMAGES, TEXT_FILES, CSV, TSV.
        +     * successfully created/started. Currently the only file types supported
        +     * are: IMAGES, TEXT_FILES, CSV, TSV.
              * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -2895,7 +2895,7 @@ public boolean hasTransformationDetailsStorageConfig() { * *
              * Required. User settable Cloud Storage bucket and folders to store
        -     * de-identified files. This field must be set for cloud storage
        +     * de-identified files. This field must be set for Cloud Storage
              * deidentification. The output Cloud Storage bucket must be different
              * from the input bucket. De-identified files will overwrite files in the
              * output path.
        @@ -2915,7 +2915,7 @@ public boolean hasCloudStorageOutput() {
              *
              * 
              * Required. User settable Cloud Storage bucket and folders to store
        -     * de-identified files. This field must be set for cloud storage
        +     * de-identified files. This field must be set for Cloud Storage
              * deidentification. The output Cloud Storage bucket must be different
              * from the input bucket. De-identified files will overwrite files in the
              * output path.
        @@ -2948,7 +2948,7 @@ public java.lang.String getCloudStorageOutput() {
              *
              * 
              * Required. User settable Cloud Storage bucket and folders to store
        -     * de-identified files. This field must be set for cloud storage
        +     * de-identified files. This field must be set for Cloud Storage
              * deidentification. The output Cloud Storage bucket must be different
              * from the input bucket. De-identified files will overwrite files in the
              * output path.
        @@ -2998,12 +2998,12 @@ public com.google.privacy.dlp.v2.FileType convert(java.lang.Integer from) {
              *
              * 
              * List of user-specified file type groups to transform. If specified, only
        -     * the files with these filetypes will be transformed. If empty, all
        +     * the files with these file types will be transformed. If empty, all
              * supported files will be transformed. Supported types may be automatically
              * added over time. If a file type is set in this field that isn't supported
              * by the Deidentify action then the job will fail and will not be
        -     * successfully created/started. Currently the only filetypes supported are:
        -     * IMAGES, TEXT_FILES, CSV, TSV.
        +     * successfully created/started. Currently the only file types supported
        +     * are: IMAGES, TEXT_FILES, CSV, TSV.
              * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -3021,12 +3021,12 @@ public java.util.List getFileTypesToTransfor * *
              * List of user-specified file type groups to transform. If specified, only
        -     * the files with these filetypes will be transformed. If empty, all
        +     * the files with these file types will be transformed. If empty, all
              * supported files will be transformed. Supported types may be automatically
              * added over time. If a file type is set in this field that isn't supported
              * by the Deidentify action then the job will fail and will not be
        -     * successfully created/started. Currently the only filetypes supported are:
        -     * IMAGES, TEXT_FILES, CSV, TSV.
        +     * successfully created/started. Currently the only file types supported
        +     * are: IMAGES, TEXT_FILES, CSV, TSV.
              * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -3042,12 +3042,12 @@ public int getFileTypesToTransformCount() { * *
              * List of user-specified file type groups to transform. If specified, only
        -     * the files with these filetypes will be transformed. If empty, all
        +     * the files with these file types will be transformed. If empty, all
              * supported files will be transformed. Supported types may be automatically
              * added over time. If a file type is set in this field that isn't supported
              * by the Deidentify action then the job will fail and will not be
        -     * successfully created/started. Currently the only filetypes supported are:
        -     * IMAGES, TEXT_FILES, CSV, TSV.
        +     * successfully created/started. Currently the only file types supported
        +     * are: IMAGES, TEXT_FILES, CSV, TSV.
              * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -3064,12 +3064,12 @@ public com.google.privacy.dlp.v2.FileType getFileTypesToTransform(int index) { * *
              * List of user-specified file type groups to transform. If specified, only
        -     * the files with these filetypes will be transformed. If empty, all
        +     * the files with these file types will be transformed. If empty, all
              * supported files will be transformed. Supported types may be automatically
              * added over time. If a file type is set in this field that isn't supported
              * by the Deidentify action then the job will fail and will not be
        -     * successfully created/started. Currently the only filetypes supported are:
        -     * IMAGES, TEXT_FILES, CSV, TSV.
        +     * successfully created/started. Currently the only file types supported
        +     * are: IMAGES, TEXT_FILES, CSV, TSV.
              * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -3085,12 +3085,12 @@ public java.util.List getFileTypesToTransformValueList() { * *
              * List of user-specified file type groups to transform. If specified, only
        -     * the files with these filetypes will be transformed. If empty, all
        +     * the files with these file types will be transformed. If empty, all
              * supported files will be transformed. Supported types may be automatically
              * added over time. If a file type is set in this field that isn't supported
              * by the Deidentify action then the job will fail and will not be
        -     * successfully created/started. Currently the only filetypes supported are:
        -     * IMAGES, TEXT_FILES, CSV, TSV.
        +     * successfully created/started. Currently the only file types supported
        +     * are: IMAGES, TEXT_FILES, CSV, TSV.
              * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -4130,7 +4130,7 @@ public Builder clearTransformationDetailsStorageConfig() { * *
                * Required. User settable Cloud Storage bucket and folders to store
        -       * de-identified files. This field must be set for cloud storage
        +       * de-identified files. This field must be set for Cloud Storage
                * deidentification. The output Cloud Storage bucket must be different
                * from the input bucket. De-identified files will overwrite files in the
                * output path.
        @@ -4151,7 +4151,7 @@ public boolean hasCloudStorageOutput() {
                *
                * 
                * Required. User settable Cloud Storage bucket and folders to store
        -       * de-identified files. This field must be set for cloud storage
        +       * de-identified files. This field must be set for Cloud Storage
                * deidentification. The output Cloud Storage bucket must be different
                * from the input bucket. De-identified files will overwrite files in the
                * output path.
        @@ -4185,7 +4185,7 @@ public java.lang.String getCloudStorageOutput() {
                *
                * 
                * Required. User settable Cloud Storage bucket and folders to store
        -       * de-identified files. This field must be set for cloud storage
        +       * de-identified files. This field must be set for Cloud Storage
                * deidentification. The output Cloud Storage bucket must be different
                * from the input bucket. De-identified files will overwrite files in the
                * output path.
        @@ -4219,7 +4219,7 @@ public com.google.protobuf.ByteString getCloudStorageOutputBytes() {
                *
                * 
                * Required. User settable Cloud Storage bucket and folders to store
        -       * de-identified files. This field must be set for cloud storage
        +       * de-identified files. This field must be set for Cloud Storage
                * deidentification. The output Cloud Storage bucket must be different
                * from the input bucket. De-identified files will overwrite files in the
                * output path.
        @@ -4246,7 +4246,7 @@ public Builder setCloudStorageOutput(java.lang.String value) {
                *
                * 
                * Required. User settable Cloud Storage bucket and folders to store
        -       * de-identified files. This field must be set for cloud storage
        +       * de-identified files. This field must be set for Cloud Storage
                * deidentification. The output Cloud Storage bucket must be different
                * from the input bucket. De-identified files will overwrite files in the
                * output path.
        @@ -4271,7 +4271,7 @@ public Builder clearCloudStorageOutput() {
                *
                * 
                * Required. User settable Cloud Storage bucket and folders to store
        -       * de-identified files. This field must be set for cloud storage
        +       * de-identified files. This field must be set for Cloud Storage
                * deidentification. The output Cloud Storage bucket must be different
                * from the input bucket. De-identified files will overwrite files in the
                * output path.
        @@ -4309,12 +4309,12 @@ private void ensureFileTypesToTransformIsMutable() {
                *
                * 
                * List of user-specified file type groups to transform. If specified, only
        -       * the files with these filetypes will be transformed. If empty, all
        +       * the files with these file types will be transformed. If empty, all
                * supported files will be transformed. Supported types may be automatically
                * added over time. If a file type is set in this field that isn't supported
                * by the Deidentify action then the job will fail and will not be
        -       * successfully created/started. Currently the only filetypes supported are:
        -       * IMAGES, TEXT_FILES, CSV, TSV.
        +       * successfully created/started. Currently the only file types supported
        +       * are: IMAGES, TEXT_FILES, CSV, TSV.
                * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -4331,12 +4331,12 @@ public java.util.List getFileTypesToTransfor * *
                * List of user-specified file type groups to transform. If specified, only
        -       * the files with these filetypes will be transformed. If empty, all
        +       * the files with these file types will be transformed. If empty, all
                * supported files will be transformed. Supported types may be automatically
                * added over time. If a file type is set in this field that isn't supported
                * by the Deidentify action then the job will fail and will not be
        -       * successfully created/started. Currently the only filetypes supported are:
        -       * IMAGES, TEXT_FILES, CSV, TSV.
        +       * successfully created/started. Currently the only file types supported
        +       * are: IMAGES, TEXT_FILES, CSV, TSV.
                * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -4351,12 +4351,12 @@ public int getFileTypesToTransformCount() { * *
                * List of user-specified file type groups to transform. If specified, only
        -       * the files with these filetypes will be transformed. If empty, all
        +       * the files with these file types will be transformed. If empty, all
                * supported files will be transformed. Supported types may be automatically
                * added over time. If a file type is set in this field that isn't supported
                * by the Deidentify action then the job will fail and will not be
        -       * successfully created/started. Currently the only filetypes supported are:
        -       * IMAGES, TEXT_FILES, CSV, TSV.
        +       * successfully created/started. Currently the only file types supported
        +       * are: IMAGES, TEXT_FILES, CSV, TSV.
                * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -4372,12 +4372,12 @@ public com.google.privacy.dlp.v2.FileType getFileTypesToTransform(int index) { * *
                * List of user-specified file type groups to transform. If specified, only
        -       * the files with these filetypes will be transformed. If empty, all
        +       * the files with these file types will be transformed. If empty, all
                * supported files will be transformed. Supported types may be automatically
                * added over time. If a file type is set in this field that isn't supported
                * by the Deidentify action then the job will fail and will not be
        -       * successfully created/started. Currently the only filetypes supported are:
        -       * IMAGES, TEXT_FILES, CSV, TSV.
        +       * successfully created/started. Currently the only file types supported
        +       * are: IMAGES, TEXT_FILES, CSV, TSV.
                * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -4400,12 +4400,12 @@ public Builder setFileTypesToTransform(int index, com.google.privacy.dlp.v2.File * *
                * List of user-specified file type groups to transform. If specified, only
        -       * the files with these filetypes will be transformed. If empty, all
        +       * the files with these file types will be transformed. If empty, all
                * supported files will be transformed. Supported types may be automatically
                * added over time. If a file type is set in this field that isn't supported
                * by the Deidentify action then the job will fail and will not be
        -       * successfully created/started. Currently the only filetypes supported are:
        -       * IMAGES, TEXT_FILES, CSV, TSV.
        +       * successfully created/started. Currently the only file types supported
        +       * are: IMAGES, TEXT_FILES, CSV, TSV.
                * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -4427,12 +4427,12 @@ public Builder addFileTypesToTransform(com.google.privacy.dlp.v2.FileType value) * *
                * List of user-specified file type groups to transform. If specified, only
        -       * the files with these filetypes will be transformed. If empty, all
        +       * the files with these file types will be transformed. If empty, all
                * supported files will be transformed. Supported types may be automatically
                * added over time. If a file type is set in this field that isn't supported
                * by the Deidentify action then the job will fail and will not be
        -       * successfully created/started. Currently the only filetypes supported are:
        -       * IMAGES, TEXT_FILES, CSV, TSV.
        +       * successfully created/started. Currently the only file types supported
        +       * are: IMAGES, TEXT_FILES, CSV, TSV.
                * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -4454,12 +4454,12 @@ public Builder addAllFileTypesToTransform( * *
                * List of user-specified file type groups to transform. If specified, only
        -       * the files with these filetypes will be transformed. If empty, all
        +       * the files with these file types will be transformed. If empty, all
                * supported files will be transformed. Supported types may be automatically
                * added over time. If a file type is set in this field that isn't supported
                * by the Deidentify action then the job will fail and will not be
        -       * successfully created/started. Currently the only filetypes supported are:
        -       * IMAGES, TEXT_FILES, CSV, TSV.
        +       * successfully created/started. Currently the only file types supported
        +       * are: IMAGES, TEXT_FILES, CSV, TSV.
                * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -4477,12 +4477,12 @@ public Builder clearFileTypesToTransform() { * *
                * List of user-specified file type groups to transform. If specified, only
        -       * the files with these filetypes will be transformed. If empty, all
        +       * the files with these file types will be transformed. If empty, all
                * supported files will be transformed. Supported types may be automatically
                * added over time. If a file type is set in this field that isn't supported
                * by the Deidentify action then the job will fail and will not be
        -       * successfully created/started. Currently the only filetypes supported are:
        -       * IMAGES, TEXT_FILES, CSV, TSV.
        +       * successfully created/started. Currently the only file types supported
        +       * are: IMAGES, TEXT_FILES, CSV, TSV.
                * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -4497,12 +4497,12 @@ public java.util.List getFileTypesToTransformValueList() { * *
                * List of user-specified file type groups to transform. If specified, only
        -       * the files with these filetypes will be transformed. If empty, all
        +       * the files with these file types will be transformed. If empty, all
                * supported files will be transformed. Supported types may be automatically
                * added over time. If a file type is set in this field that isn't supported
                * by the Deidentify action then the job will fail and will not be
        -       * successfully created/started. Currently the only filetypes supported are:
        -       * IMAGES, TEXT_FILES, CSV, TSV.
        +       * successfully created/started. Currently the only file types supported
        +       * are: IMAGES, TEXT_FILES, CSV, TSV.
                * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -4518,12 +4518,12 @@ public int getFileTypesToTransformValue(int index) { * *
                * List of user-specified file type groups to transform. If specified, only
        -       * the files with these filetypes will be transformed. If empty, all
        +       * the files with these file types will be transformed. If empty, all
                * supported files will be transformed. Supported types may be automatically
                * added over time. If a file type is set in this field that isn't supported
                * by the Deidentify action then the job will fail and will not be
        -       * successfully created/started. Currently the only filetypes supported are:
        -       * IMAGES, TEXT_FILES, CSV, TSV.
        +       * successfully created/started. Currently the only file types supported
        +       * are: IMAGES, TEXT_FILES, CSV, TSV.
                * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -4543,12 +4543,12 @@ public Builder setFileTypesToTransformValue(int index, int value) { * *
                * List of user-specified file type groups to transform. If specified, only
        -       * the files with these filetypes will be transformed. If empty, all
        +       * the files with these file types will be transformed. If empty, all
                * supported files will be transformed. Supported types may be automatically
                * added over time. If a file type is set in this field that isn't supported
                * by the Deidentify action then the job will fail and will not be
        -       * successfully created/started. Currently the only filetypes supported are:
        -       * IMAGES, TEXT_FILES, CSV, TSV.
        +       * successfully created/started. Currently the only file types supported
        +       * are: IMAGES, TEXT_FILES, CSV, TSV.
                * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -4567,12 +4567,12 @@ public Builder addFileTypesToTransformValue(int value) { * *
                * List of user-specified file type groups to transform. If specified, only
        -       * the files with these filetypes will be transformed. If empty, all
        +       * the files with these file types will be transformed. If empty, all
                * supported files will be transformed. Supported types may be automatically
                * added over time. If a file type is set in this field that isn't supported
                * by the Deidentify action then the job will fail and will not be
        -       * successfully created/started. Currently the only filetypes supported are:
        -       * IMAGES, TEXT_FILES, CSV, TSV.
        +       * successfully created/started. Currently the only file types supported
        +       * are: IMAGES, TEXT_FILES, CSV, TSV.
                * 
        * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/AllOtherResources.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/AllOtherResources.java new file mode 100644 index 000000000000..2ac35c397d8a --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/AllOtherResources.java @@ -0,0 +1,431 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * Match discovery resources not covered by any other filter.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.AllOtherResources} + */ +public final class AllOtherResources extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.AllOtherResources) + AllOtherResourcesOrBuilder { + private static final long serialVersionUID = 0L; + // Use AllOtherResources.newBuilder() to construct. + private AllOtherResources(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AllOtherResources() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AllOtherResources(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_AllOtherResources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_AllOtherResources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.AllOtherResources.class, + com.google.privacy.dlp.v2.AllOtherResources.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.AllOtherResources)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.AllOtherResources other = + (com.google.privacy.dlp.v2.AllOtherResources) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.AllOtherResources parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.AllOtherResources parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.AllOtherResources parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.AllOtherResources parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.AllOtherResources parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.AllOtherResources parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.AllOtherResources parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.AllOtherResources parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.AllOtherResources parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.AllOtherResources parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.AllOtherResources parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.AllOtherResources parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.privacy.dlp.v2.AllOtherResources prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Match discovery resources not covered by any other filter.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.AllOtherResources} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.AllOtherResources) + com.google.privacy.dlp.v2.AllOtherResourcesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_AllOtherResources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_AllOtherResources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.AllOtherResources.class, + com.google.privacy.dlp.v2.AllOtherResources.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.AllOtherResources.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_AllOtherResources_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.AllOtherResources getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.AllOtherResources.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.AllOtherResources build() { + com.google.privacy.dlp.v2.AllOtherResources result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.AllOtherResources buildPartial() { + com.google.privacy.dlp.v2.AllOtherResources result = + new com.google.privacy.dlp.v2.AllOtherResources(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.AllOtherResources) { + return mergeFrom((com.google.privacy.dlp.v2.AllOtherResources) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.AllOtherResources other) { + if (other == com.google.privacy.dlp.v2.AllOtherResources.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.AllOtherResources) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.AllOtherResources) + private static final com.google.privacy.dlp.v2.AllOtherResources DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.AllOtherResources(); + } + + public static com.google.privacy.dlp.v2.AllOtherResources getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllOtherResources parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.AllOtherResources getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/AllOtherResourcesOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/AllOtherResourcesOrBuilder.java new file mode 100644 index 000000000000..ca0491aab670 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/AllOtherResourcesOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface AllOtherResourcesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.AllOtherResources) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BucketingConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BucketingConfig.java index cbf0aae4a457..7b6d91b6996d 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BucketingConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BucketingConfig.java @@ -25,9 +25,10 @@ *
          * Generalization function that buckets values based on ranges. The ranges and
          * replacement values are dynamically provided by the user for custom behavior,
        - * such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH
        - * This can be used on
        - * data of type: number, long, string, timestamp.
        + * such as 1-30 -> LOW, 31-65 -> MEDIUM, 66-100 -> HIGH.
        + *
        + * This can be used on data of type: number, long, string, timestamp.
        + *
          * If the bound `Value` type differs from the type of data being transformed, we
          * will first attempt converting the type of the data to be transformed to match
          * the type of the bound before comparing.
        @@ -1697,9 +1698,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
            * 
            * Generalization function that buckets values based on ranges. The ranges and
            * replacement values are dynamically provided by the user for custom behavior,
        -   * such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH
        -   * This can be used on
        -   * data of type: number, long, string, timestamp.
        +   * such as 1-30 -> LOW, 31-65 -> MEDIUM, 66-100 -> HIGH.
        +   *
        +   * This can be used on data of type: number, long, string, timestamp.
        +   *
            * If the bound `Value` type differs from the type of data being transformed, we
            * will first attempt converting the type of the data to be transformed to match
            * the type of the bound before comparing.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ByteContentItem.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ByteContentItem.java
        index c36a171e9afa..9b269e99a165 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ByteContentItem.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ByteContentItem.java
        @@ -216,6 +216,36 @@ public enum BytesType implements com.google.protobuf.ProtocolMessageEnum {
              * TSV = 13;
              */
             TSV(13),
        +    /**
        +     *
        +     *
        +     * 
        +     * Audio file types. Only used for profiling.
        +     * 
        + * + * AUDIO = 15; + */ + AUDIO(15), + /** + * + * + *
        +     * Video file types. Only used for profiling.
        +     * 
        + * + * VIDEO = 16; + */ + VIDEO(16), + /** + * + * + *
        +     * Executable file types. Only used for profiling.
        +     * 
        + * + * EXECUTABLE = 17; + */ + EXECUTABLE(17), UNRECOGNIZED(-1), ; @@ -359,6 +389,36 @@ public enum BytesType implements com.google.protobuf.ProtocolMessageEnum { * TSV = 13; */ public static final int TSV_VALUE = 13; + /** + * + * + *
        +     * Audio file types. Only used for profiling.
        +     * 
        + * + * AUDIO = 15; + */ + public static final int AUDIO_VALUE = 15; + /** + * + * + *
        +     * Video file types. Only used for profiling.
        +     * 
        + * + * VIDEO = 16; + */ + public static final int VIDEO_VALUE = 16; + /** + * + * + *
        +     * Executable file types. Only used for profiling.
        +     * 
        + * + * EXECUTABLE = 17; + */ + public static final int EXECUTABLE_VALUE = 17; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -412,6 +472,12 @@ public static BytesType forNumber(int value) { return CSV; case 13: return TSV; + case 15: + return AUDIO; + case 16: + return VIDEO; + case 17: + return EXECUTABLE; default: return null; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageDiscoveryTarget.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageDiscoveryTarget.java new file mode 100644 index 000000000000..a9a72f8c1300 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageDiscoveryTarget.java @@ -0,0 +1,1807 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * Target used to match against for discovery with Cloud Storage buckets.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.CloudStorageDiscoveryTarget} + */ +public final class CloudStorageDiscoveryTarget extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.CloudStorageDiscoveryTarget) + CloudStorageDiscoveryTargetOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudStorageDiscoveryTarget.newBuilder() to construct. + private CloudStorageDiscoveryTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudStorageDiscoveryTarget() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudStorageDiscoveryTarget(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageDiscoveryTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageDiscoveryTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.class, + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.Builder.class); + } + + private int bitField0_; + private int cadenceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object cadence_; + + public enum CadenceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GENERATION_CADENCE(2), + DISABLED(3), + CADENCE_NOT_SET(0); + private final int value; + + private CadenceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CadenceCase valueOf(int value) { + return forNumber(value); + } + + public static CadenceCase forNumber(int value) { + switch (value) { + case 2: + return GENERATION_CADENCE; + case 3: + return DISABLED; + case 0: + return CADENCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CadenceCase getCadenceCase() { + return CadenceCase.forNumber(cadenceCase_); + } + + public static final int FILTER_FIELD_NUMBER = 1; + private com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter_; + /** + * + * + *
        +   * Required. The buckets the generation_cadence applies to. The first target
        +   * with a matching filter will be the one to apply to a bucket.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * Required. The buckets the generation_cadence applies to. The first target
        +   * with a matching filter will be the one to apply to a bucket.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filter. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter getFilter() { + return filter_ == null + ? com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.getDefaultInstance() + : filter_; + } + /** + * + * + *
        +   * Required. The buckets the generation_cadence applies to. The first target
        +   * with a matching filter will be the one to apply to a bucket.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageFilterOrBuilder getFilterOrBuilder() { + return filter_ == null + ? com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.getDefaultInstance() + : filter_; + } + + public static final int CONDITIONS_FIELD_NUMBER = 4; + private com.google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions_; + /** + * + * + *
        +   * Optional. In addition to matching the filter, these conditions must be true
        +   * before a profile is generated.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conditions field is set. + */ + @java.lang.Override + public boolean hasConditions() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +   * Optional. In addition to matching the filter, these conditions must be true
        +   * before a profile is generated.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conditions. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryFileStoreConditions getConditions() { + return conditions_ == null + ? com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.getDefaultInstance() + : conditions_; + } + /** + * + * + *
        +   * Optional. In addition to matching the filter, these conditions must be true
        +   * before a profile is generated.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryFileStoreConditionsOrBuilder getConditionsOrBuilder() { + return conditions_ == null + ? com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.getDefaultInstance() + : conditions_; + } + + public static final int GENERATION_CADENCE_FIELD_NUMBER = 2; + /** + * + * + *
        +   * Optional. How often and when to update profiles. New buckets that match
        +   * both the filter and conditions are scanned as quickly as possible
        +   * depending on system capacity.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationCadence field is set. + */ + @java.lang.Override + public boolean hasGenerationCadence() { + return cadenceCase_ == 2; + } + /** + * + * + *
        +   * Optional. How often and when to update profiles. New buckets that match
        +   * both the filter and conditions are scanned as quickly as possible
        +   * depending on system capacity.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationCadence. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence getGenerationCadence() { + if (cadenceCase_ == 2) { + return (com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) cadence_; + } + return com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.getDefaultInstance(); + } + /** + * + * + *
        +   * Optional. How often and when to update profiles. New buckets that match
        +   * both the filter and conditions are scanned as quickly as possible
        +   * depending on system capacity.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadenceOrBuilder + getGenerationCadenceOrBuilder() { + if (cadenceCase_ == 2) { + return (com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) cadence_; + } + return com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.getDefaultInstance(); + } + + public static final int DISABLED_FIELD_NUMBER = 3; + /** + * + * + *
        +   * Optional. Disable profiling for buckets that match this filter.
        +   * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disabled field is set. + */ + @java.lang.Override + public boolean hasDisabled() { + return cadenceCase_ == 3; + } + /** + * + * + *
        +   * Optional. Disable profiling for buckets that match this filter.
        +   * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disabled. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.Disabled getDisabled() { + if (cadenceCase_ == 3) { + return (com.google.privacy.dlp.v2.Disabled) cadence_; + } + return com.google.privacy.dlp.v2.Disabled.getDefaultInstance(); + } + /** + * + * + *
        +   * Optional. Disable profiling for buckets that match this filter.
        +   * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DisabledOrBuilder getDisabledOrBuilder() { + if (cadenceCase_ == 3) { + return (com.google.privacy.dlp.v2.Disabled) cadence_; + } + return com.google.privacy.dlp.v2.Disabled.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getFilter()); + } + if (cadenceCase_ == 2) { + output.writeMessage( + 2, (com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) cadence_); + } + if (cadenceCase_ == 3) { + output.writeMessage(3, (com.google.privacy.dlp.v2.Disabled) cadence_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getConditions()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFilter()); + } + if (cadenceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) cadence_); + } + if (cadenceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.privacy.dlp.v2.Disabled) cadence_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConditions()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget other = + (com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (hasConditions() != other.hasConditions()) return false; + if (hasConditions()) { + if (!getConditions().equals(other.getConditions())) return false; + } + if (!getCadenceCase().equals(other.getCadenceCase())) return false; + switch (cadenceCase_) { + case 2: + if (!getGenerationCadence().equals(other.getGenerationCadence())) return false; + break; + case 3: + if (!getDisabled().equals(other.getDisabled())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasConditions()) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditions().hashCode(); + } + switch (cadenceCase_) { + case 2: + hash = (37 * hash) + GENERATION_CADENCE_FIELD_NUMBER; + hash = (53 * hash) + getGenerationCadence().hashCode(); + break; + case 3: + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + getDisabled().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Target used to match against for discovery with Cloud Storage buckets.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.CloudStorageDiscoveryTarget} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.CloudStorageDiscoveryTarget) + com.google.privacy.dlp.v2.CloudStorageDiscoveryTargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageDiscoveryTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageDiscoveryTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.class, + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFilterFieldBuilder(); + getConditionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + conditions_ = null; + if (conditionsBuilder_ != null) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + } + if (generationCadenceBuilder_ != null) { + generationCadenceBuilder_.clear(); + } + if (disabledBuilder_ != null) { + disabledBuilder_.clear(); + } + cadenceCase_ = 0; + cadence_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageDiscoveryTarget_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget build() { + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget buildPartial() { + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget result = + new com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.conditions_ = conditionsBuilder_ == null ? conditions_ : conditionsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget result) { + result.cadenceCase_ = cadenceCase_; + result.cadence_ = this.cadence_; + if (cadenceCase_ == 2 && generationCadenceBuilder_ != null) { + result.cadence_ = generationCadenceBuilder_.build(); + } + if (cadenceCase_ == 3 && disabledBuilder_ != null) { + result.cadence_ = disabledBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget) { + return mergeFrom((com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget other) { + if (other == com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.getDefaultInstance()) + return this; + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + if (other.hasConditions()) { + mergeConditions(other.getConditions()); + } + switch (other.getCadenceCase()) { + case GENERATION_CADENCE: + { + mergeGenerationCadence(other.getGenerationCadence()); + break; + } + case DISABLED: + { + mergeDisabled(other.getDisabled()); + break; + } + case CADENCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getGenerationCadenceFieldBuilder().getBuilder(), extensionRegistry); + cadenceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getDisabledFieldBuilder().getBuilder(), extensionRegistry); + cadenceCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getConditionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int cadenceCase_ = 0; + private java.lang.Object cadence_; + + public CadenceCase getCadenceCase() { + return CadenceCase.forNumber(cadenceCase_); + } + + public Builder clearCadence() { + cadenceCase_ = 0; + cadence_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter, + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.Builder, + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilterOrBuilder> + filterBuilder_; + /** + * + * + *
        +     * Required. The buckets the generation_cadence applies to. The first target
        +     * with a matching filter will be the one to apply to a bucket.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * Required. The buckets the generation_cadence applies to. The first target
        +     * with a matching filter will be the one to apply to a bucket.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filter. + */ + public com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null + ? com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.getDefaultInstance() + : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Required. The buckets the generation_cadence applies to. The first target
        +     * with a matching filter will be the one to apply to a bucket.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFilter(com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + } else { + filterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. The buckets the generation_cadence applies to. The first target
        +     * with a matching filter will be the one to apply to a bucket.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFilter( + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. The buckets the generation_cadence applies to. The first target
        +     * with a matching filter will be the one to apply to a bucket.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFilter(com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter value) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && filter_ != null + && filter_ + != com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); + } else { + filter_ = value; + } + } else { + filterBuilder_.mergeFrom(value); + } + if (filter_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Required. The buckets the generation_cadence applies to. The first target
        +     * with a matching filter will be the one to apply to a bucket.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFilter() { + bitField0_ = (bitField0_ & ~0x00000001); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. The buckets the generation_cadence applies to. The first target
        +     * with a matching filter will be the one to apply to a bucket.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.Builder getFilterBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Required. The buckets the generation_cadence applies to. The first target
        +     * with a matching filter will be the one to apply to a bucket.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.privacy.dlp.v2.DiscoveryCloudStorageFilterOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null + ? com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.getDefaultInstance() + : filter_; + } + } + /** + * + * + *
        +     * Required. The buckets the generation_cadence applies to. The first target
        +     * with a matching filter will be the one to apply to a bucket.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter, + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.Builder, + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter, + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.Builder, + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilterOrBuilder>( + getFilter(), getParentForChildren(), isClean()); + filter_ = null; + } + return filterBuilder_; + } + + private com.google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions, + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.Builder, + com.google.privacy.dlp.v2.DiscoveryFileStoreConditionsOrBuilder> + conditionsBuilder_; + /** + * + * + *
        +     * Optional. In addition to matching the filter, these conditions must be true
        +     * before a profile is generated.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conditions field is set. + */ + public boolean hasConditions() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +     * Optional. In addition to matching the filter, these conditions must be true
        +     * before a profile is generated.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conditions. + */ + public com.google.privacy.dlp.v2.DiscoveryFileStoreConditions getConditions() { + if (conditionsBuilder_ == null) { + return conditions_ == null + ? com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.getDefaultInstance() + : conditions_; + } else { + return conditionsBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. In addition to matching the filter, these conditions must be true
        +     * before a profile is generated.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConditions(com.google.privacy.dlp.v2.DiscoveryFileStoreConditions value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conditions_ = value; + } else { + conditionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. In addition to matching the filter, these conditions must be true
        +     * before a profile is generated.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConditions( + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.Builder builderForValue) { + if (conditionsBuilder_ == null) { + conditions_ = builderForValue.build(); + } else { + conditionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. In addition to matching the filter, these conditions must be true
        +     * before a profile is generated.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConditions(com.google.privacy.dlp.v2.DiscoveryFileStoreConditions value) { + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && conditions_ != null + && conditions_ + != com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.getDefaultInstance()) { + getConditionsBuilder().mergeFrom(value); + } else { + conditions_ = value; + } + } else { + conditionsBuilder_.mergeFrom(value); + } + if (conditions_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. In addition to matching the filter, these conditions must be true
        +     * before a profile is generated.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConditions() { + bitField0_ = (bitField0_ & ~0x00000002); + conditions_ = null; + if (conditionsBuilder_ != null) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. In addition to matching the filter, these conditions must be true
        +     * before a profile is generated.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.Builder getConditionsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getConditionsFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. In addition to matching the filter, these conditions must be true
        +     * before a profile is generated.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.privacy.dlp.v2.DiscoveryFileStoreConditionsOrBuilder + getConditionsOrBuilder() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilder(); + } else { + return conditions_ == null + ? com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.getDefaultInstance() + : conditions_; + } + } + /** + * + * + *
        +     * Optional. In addition to matching the filter, these conditions must be true
        +     * before a profile is generated.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions, + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.Builder, + com.google.privacy.dlp.v2.DiscoveryFileStoreConditionsOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions, + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.Builder, + com.google.privacy.dlp.v2.DiscoveryFileStoreConditionsOrBuilder>( + getConditions(), getParentForChildren(), isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence, + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.Builder, + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadenceOrBuilder> + generationCadenceBuilder_; + /** + * + * + *
        +     * Optional. How often and when to update profiles. New buckets that match
        +     * both the filter and conditions are scanned as quickly as possible
        +     * depending on system capacity.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationCadence field is set. + */ + @java.lang.Override + public boolean hasGenerationCadence() { + return cadenceCase_ == 2; + } + /** + * + * + *
        +     * Optional. How often and when to update profiles. New buckets that match
        +     * both the filter and conditions are scanned as quickly as possible
        +     * depending on system capacity.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationCadence. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence getGenerationCadence() { + if (generationCadenceBuilder_ == null) { + if (cadenceCase_ == 2) { + return (com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) cadence_; + } + return com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence + .getDefaultInstance(); + } else { + if (cadenceCase_ == 2) { + return generationCadenceBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence + .getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. How often and when to update profiles. New buckets that match
        +     * both the filter and conditions are scanned as quickly as possible
        +     * depending on system capacity.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerationCadence( + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence value) { + if (generationCadenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cadence_ = value; + onChanged(); + } else { + generationCadenceBuilder_.setMessage(value); + } + cadenceCase_ = 2; + return this; + } + /** + * + * + *
        +     * Optional. How often and when to update profiles. New buckets that match
        +     * both the filter and conditions are scanned as quickly as possible
        +     * depending on system capacity.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerationCadence( + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.Builder builderForValue) { + if (generationCadenceBuilder_ == null) { + cadence_ = builderForValue.build(); + onChanged(); + } else { + generationCadenceBuilder_.setMessage(builderForValue.build()); + } + cadenceCase_ = 2; + return this; + } + /** + * + * + *
        +     * Optional. How often and when to update profiles. New buckets that match
        +     * both the filter and conditions are scanned as quickly as possible
        +     * depending on system capacity.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGenerationCadence( + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence value) { + if (generationCadenceBuilder_ == null) { + if (cadenceCase_ == 2 + && cadence_ + != com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence + .getDefaultInstance()) { + cadence_ = + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.newBuilder( + (com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) cadence_) + .mergeFrom(value) + .buildPartial(); + } else { + cadence_ = value; + } + onChanged(); + } else { + if (cadenceCase_ == 2) { + generationCadenceBuilder_.mergeFrom(value); + } else { + generationCadenceBuilder_.setMessage(value); + } + } + cadenceCase_ = 2; + return this; + } + /** + * + * + *
        +     * Optional. How often and when to update profiles. New buckets that match
        +     * both the filter and conditions are scanned as quickly as possible
        +     * depending on system capacity.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGenerationCadence() { + if (generationCadenceBuilder_ == null) { + if (cadenceCase_ == 2) { + cadenceCase_ = 0; + cadence_ = null; + onChanged(); + } + } else { + if (cadenceCase_ == 2) { + cadenceCase_ = 0; + cadence_ = null; + } + generationCadenceBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Optional. How often and when to update profiles. New buckets that match
        +     * both the filter and conditions are scanned as quickly as possible
        +     * depending on system capacity.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.Builder + getGenerationCadenceBuilder() { + return getGenerationCadenceFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. How often and when to update profiles. New buckets that match
        +     * both the filter and conditions are scanned as quickly as possible
        +     * depending on system capacity.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadenceOrBuilder + getGenerationCadenceOrBuilder() { + if ((cadenceCase_ == 2) && (generationCadenceBuilder_ != null)) { + return generationCadenceBuilder_.getMessageOrBuilder(); + } else { + if (cadenceCase_ == 2) { + return (com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) cadence_; + } + return com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence + .getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. How often and when to update profiles. New buckets that match
        +     * both the filter and conditions are scanned as quickly as possible
        +     * depending on system capacity.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence, + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.Builder, + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadenceOrBuilder> + getGenerationCadenceFieldBuilder() { + if (generationCadenceBuilder_ == null) { + if (!(cadenceCase_ == 2)) { + cadence_ = + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.getDefaultInstance(); + } + generationCadenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence, + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.Builder, + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadenceOrBuilder>( + (com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) cadence_, + getParentForChildren(), + isClean()); + cadence_ = null; + } + cadenceCase_ = 2; + onChanged(); + return generationCadenceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Disabled, + com.google.privacy.dlp.v2.Disabled.Builder, + com.google.privacy.dlp.v2.DisabledOrBuilder> + disabledBuilder_; + /** + * + * + *
        +     * Optional. Disable profiling for buckets that match this filter.
        +     * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disabled field is set. + */ + @java.lang.Override + public boolean hasDisabled() { + return cadenceCase_ == 3; + } + /** + * + * + *
        +     * Optional. Disable profiling for buckets that match this filter.
        +     * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disabled. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.Disabled getDisabled() { + if (disabledBuilder_ == null) { + if (cadenceCase_ == 3) { + return (com.google.privacy.dlp.v2.Disabled) cadence_; + } + return com.google.privacy.dlp.v2.Disabled.getDefaultInstance(); + } else { + if (cadenceCase_ == 3) { + return disabledBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.Disabled.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. Disable profiling for buckets that match this filter.
        +     * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDisabled(com.google.privacy.dlp.v2.Disabled value) { + if (disabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cadence_ = value; + onChanged(); + } else { + disabledBuilder_.setMessage(value); + } + cadenceCase_ = 3; + return this; + } + /** + * + * + *
        +     * Optional. Disable profiling for buckets that match this filter.
        +     * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDisabled(com.google.privacy.dlp.v2.Disabled.Builder builderForValue) { + if (disabledBuilder_ == null) { + cadence_ = builderForValue.build(); + onChanged(); + } else { + disabledBuilder_.setMessage(builderForValue.build()); + } + cadenceCase_ = 3; + return this; + } + /** + * + * + *
        +     * Optional. Disable profiling for buckets that match this filter.
        +     * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDisabled(com.google.privacy.dlp.v2.Disabled value) { + if (disabledBuilder_ == null) { + if (cadenceCase_ == 3 + && cadence_ != com.google.privacy.dlp.v2.Disabled.getDefaultInstance()) { + cadence_ = + com.google.privacy.dlp.v2.Disabled.newBuilder( + (com.google.privacy.dlp.v2.Disabled) cadence_) + .mergeFrom(value) + .buildPartial(); + } else { + cadence_ = value; + } + onChanged(); + } else { + if (cadenceCase_ == 3) { + disabledBuilder_.mergeFrom(value); + } else { + disabledBuilder_.setMessage(value); + } + } + cadenceCase_ = 3; + return this; + } + /** + * + * + *
        +     * Optional. Disable profiling for buckets that match this filter.
        +     * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDisabled() { + if (disabledBuilder_ == null) { + if (cadenceCase_ == 3) { + cadenceCase_ = 0; + cadence_ = null; + onChanged(); + } + } else { + if (cadenceCase_ == 3) { + cadenceCase_ = 0; + cadence_ = null; + } + disabledBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Optional. Disable profiling for buckets that match this filter.
        +     * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.privacy.dlp.v2.Disabled.Builder getDisabledBuilder() { + return getDisabledFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Disable profiling for buckets that match this filter.
        +     * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DisabledOrBuilder getDisabledOrBuilder() { + if ((cadenceCase_ == 3) && (disabledBuilder_ != null)) { + return disabledBuilder_.getMessageOrBuilder(); + } else { + if (cadenceCase_ == 3) { + return (com.google.privacy.dlp.v2.Disabled) cadence_; + } + return com.google.privacy.dlp.v2.Disabled.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. Disable profiling for buckets that match this filter.
        +     * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Disabled, + com.google.privacy.dlp.v2.Disabled.Builder, + com.google.privacy.dlp.v2.DisabledOrBuilder> + getDisabledFieldBuilder() { + if (disabledBuilder_ == null) { + if (!(cadenceCase_ == 3)) { + cadence_ = com.google.privacy.dlp.v2.Disabled.getDefaultInstance(); + } + disabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Disabled, + com.google.privacy.dlp.v2.Disabled.Builder, + com.google.privacy.dlp.v2.DisabledOrBuilder>( + (com.google.privacy.dlp.v2.Disabled) cadence_, getParentForChildren(), isClean()); + cadence_ = null; + } + cadenceCase_ = 3; + onChanged(); + return disabledBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.CloudStorageDiscoveryTarget) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CloudStorageDiscoveryTarget) + private static final com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget(); + } + + public static com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudStorageDiscoveryTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageDiscoveryTargetOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageDiscoveryTargetOrBuilder.java new file mode 100644 index 000000000000..e40842c8f8fb --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageDiscoveryTargetOrBuilder.java @@ -0,0 +1,202 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface CloudStorageDiscoveryTargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.CloudStorageDiscoveryTarget) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The buckets the generation_cadence applies to. The first target
        +   * with a matching filter will be the one to apply to a bucket.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + * + * + *
        +   * Required. The buckets the generation_cadence applies to. The first target
        +   * with a matching filter will be the one to apply to a bucket.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filter. + */ + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter getFilter(); + /** + * + * + *
        +   * Required. The buckets the generation_cadence applies to. The first target
        +   * with a matching filter will be the one to apply to a bucket.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilterOrBuilder getFilterOrBuilder(); + + /** + * + * + *
        +   * Optional. In addition to matching the filter, these conditions must be true
        +   * before a profile is generated.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conditions field is set. + */ + boolean hasConditions(); + /** + * + * + *
        +   * Optional. In addition to matching the filter, these conditions must be true
        +   * before a profile is generated.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conditions. + */ + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions getConditions(); + /** + * + * + *
        +   * Optional. In addition to matching the filter, these conditions must be true
        +   * before a profile is generated.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.privacy.dlp.v2.DiscoveryFileStoreConditionsOrBuilder getConditionsOrBuilder(); + + /** + * + * + *
        +   * Optional. How often and when to update profiles. New buckets that match
        +   * both the filter and conditions are scanned as quickly as possible
        +   * depending on system capacity.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationCadence field is set. + */ + boolean hasGenerationCadence(); + /** + * + * + *
        +   * Optional. How often and when to update profiles. New buckets that match
        +   * both the filter and conditions are scanned as quickly as possible
        +   * depending on system capacity.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationCadence. + */ + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence getGenerationCadence(); + /** + * + * + *
        +   * Optional. How often and when to update profiles. New buckets that match
        +   * both the filter and conditions are scanned as quickly as possible
        +   * depending on system capacity.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadenceOrBuilder + getGenerationCadenceOrBuilder(); + + /** + * + * + *
        +   * Optional. Disable profiling for buckets that match this filter.
        +   * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disabled field is set. + */ + boolean hasDisabled(); + /** + * + * + *
        +   * Optional. Disable profiling for buckets that match this filter.
        +   * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disabled. + */ + com.google.privacy.dlp.v2.Disabled getDisabled(); + /** + * + * + *
        +   * Optional. Disable profiling for buckets that match this filter.
        +   * 
        + * + * .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.privacy.dlp.v2.DisabledOrBuilder getDisabledOrBuilder(); + + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.CadenceCase getCadenceCase(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageRegex.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageRegex.java new file mode 100644 index 000000000000..4517295e3217 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageRegex.java @@ -0,0 +1,826 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * A pattern to match against one or more file stores. At least one
        + * pattern must be specified. Regular expressions use RE2
        + * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
        + * under the google/re2 repository on GitHub.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.CloudStorageRegex} + */ +public final class CloudStorageRegex extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.CloudStorageRegex) + CloudStorageRegexOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudStorageRegex.newBuilder() to construct. + private CloudStorageRegex(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudStorageRegex() { + projectIdRegex_ = ""; + bucketNameRegex_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudStorageRegex(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageRegex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageRegex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.CloudStorageRegex.class, + com.google.privacy.dlp.v2.CloudStorageRegex.Builder.class); + } + + public static final int PROJECT_ID_REGEX_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectIdRegex_ = ""; + /** + * + * + *
        +   * Optional. For organizations, if unset, will match all projects.
        +   * 
        + * + * string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The projectIdRegex. + */ + @java.lang.Override + public java.lang.String getProjectIdRegex() { + java.lang.Object ref = projectIdRegex_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectIdRegex_ = s; + return s; + } + } + /** + * + * + *
        +   * Optional. For organizations, if unset, will match all projects.
        +   * 
        + * + * string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for projectIdRegex. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdRegexBytes() { + java.lang.Object ref = projectIdRegex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectIdRegex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BUCKET_NAME_REGEX_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucketNameRegex_ = ""; + /** + * + * + *
        +   * Optional. Regex to test the bucket name against. If empty, all buckets
        +   * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the
        +   * bucket gs://marketing2021
        +   * 
        + * + * string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucketNameRegex. + */ + @java.lang.Override + public java.lang.String getBucketNameRegex() { + java.lang.Object ref = bucketNameRegex_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucketNameRegex_ = s; + return s; + } + } + /** + * + * + *
        +   * Optional. Regex to test the bucket name against. If empty, all buckets
        +   * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the
        +   * bucket gs://marketing2021
        +   * 
        + * + * string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucketNameRegex. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketNameRegexBytes() { + java.lang.Object ref = bucketNameRegex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucketNameRegex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectIdRegex_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectIdRegex_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketNameRegex_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bucketNameRegex_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectIdRegex_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectIdRegex_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketNameRegex_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bucketNameRegex_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.CloudStorageRegex)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.CloudStorageRegex other = + (com.google.privacy.dlp.v2.CloudStorageRegex) obj; + + if (!getProjectIdRegex().equals(other.getProjectIdRegex())) return false; + if (!getBucketNameRegex().equals(other.getBucketNameRegex())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_REGEX_FIELD_NUMBER; + hash = (53 * hash) + getProjectIdRegex().hashCode(); + hash = (37 * hash) + BUCKET_NAME_REGEX_FIELD_NUMBER; + hash = (53 * hash) + getBucketNameRegex().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.CloudStorageRegex parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.CloudStorageRegex parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageRegex parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.CloudStorageRegex parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageRegex parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.CloudStorageRegex parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageRegex parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.CloudStorageRegex parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageRegex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.CloudStorageRegex parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageRegex parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.CloudStorageRegex parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.privacy.dlp.v2.CloudStorageRegex prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * A pattern to match against one or more file stores. At least one
        +   * pattern must be specified. Regular expressions use RE2
        +   * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
        +   * under the google/re2 repository on GitHub.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.CloudStorageRegex} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.CloudStorageRegex) + com.google.privacy.dlp.v2.CloudStorageRegexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageRegex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageRegex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.CloudStorageRegex.class, + com.google.privacy.dlp.v2.CloudStorageRegex.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.CloudStorageRegex.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectIdRegex_ = ""; + bucketNameRegex_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageRegex_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageRegex getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.CloudStorageRegex.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageRegex build() { + com.google.privacy.dlp.v2.CloudStorageRegex result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageRegex buildPartial() { + com.google.privacy.dlp.v2.CloudStorageRegex result = + new com.google.privacy.dlp.v2.CloudStorageRegex(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.CloudStorageRegex result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectIdRegex_ = projectIdRegex_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bucketNameRegex_ = bucketNameRegex_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.CloudStorageRegex) { + return mergeFrom((com.google.privacy.dlp.v2.CloudStorageRegex) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.CloudStorageRegex other) { + if (other == com.google.privacy.dlp.v2.CloudStorageRegex.getDefaultInstance()) return this; + if (!other.getProjectIdRegex().isEmpty()) { + projectIdRegex_ = other.projectIdRegex_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBucketNameRegex().isEmpty()) { + bucketNameRegex_ = other.bucketNameRegex_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectIdRegex_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + bucketNameRegex_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object projectIdRegex_ = ""; + /** + * + * + *
        +     * Optional. For organizations, if unset, will match all projects.
        +     * 
        + * + * string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The projectIdRegex. + */ + public java.lang.String getProjectIdRegex() { + java.lang.Object ref = projectIdRegex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectIdRegex_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Optional. For organizations, if unset, will match all projects.
        +     * 
        + * + * string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for projectIdRegex. + */ + public com.google.protobuf.ByteString getProjectIdRegexBytes() { + java.lang.Object ref = projectIdRegex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectIdRegex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Optional. For organizations, if unset, will match all projects.
        +     * 
        + * + * string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The projectIdRegex to set. + * @return This builder for chaining. + */ + public Builder setProjectIdRegex(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectIdRegex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. For organizations, if unset, will match all projects.
        +     * 
        + * + * string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProjectIdRegex() { + projectIdRegex_ = getDefaultInstance().getProjectIdRegex(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. For organizations, if unset, will match all projects.
        +     * 
        + * + * string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for projectIdRegex to set. + * @return This builder for chaining. + */ + public Builder setProjectIdRegexBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectIdRegex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object bucketNameRegex_ = ""; + /** + * + * + *
        +     * Optional. Regex to test the bucket name against. If empty, all buckets
        +     * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the
        +     * bucket gs://marketing2021
        +     * 
        + * + * string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucketNameRegex. + */ + public java.lang.String getBucketNameRegex() { + java.lang.Object ref = bucketNameRegex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucketNameRegex_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Optional. Regex to test the bucket name against. If empty, all buckets
        +     * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the
        +     * bucket gs://marketing2021
        +     * 
        + * + * string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucketNameRegex. + */ + public com.google.protobuf.ByteString getBucketNameRegexBytes() { + java.lang.Object ref = bucketNameRegex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucketNameRegex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Optional. Regex to test the bucket name against. If empty, all buckets
        +     * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the
        +     * bucket gs://marketing2021
        +     * 
        + * + * string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bucketNameRegex to set. + * @return This builder for chaining. + */ + public Builder setBucketNameRegex(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucketNameRegex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Regex to test the bucket name against. If empty, all buckets
        +     * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the
        +     * bucket gs://marketing2021
        +     * 
        + * + * string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBucketNameRegex() { + bucketNameRegex_ = getDefaultInstance().getBucketNameRegex(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Regex to test the bucket name against. If empty, all buckets
        +     * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the
        +     * bucket gs://marketing2021
        +     * 
        + * + * string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for bucketNameRegex to set. + * @return This builder for chaining. + */ + public Builder setBucketNameRegexBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucketNameRegex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.CloudStorageRegex) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CloudStorageRegex) + private static final com.google.privacy.dlp.v2.CloudStorageRegex DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.CloudStorageRegex(); + } + + public static com.google.privacy.dlp.v2.CloudStorageRegex getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudStorageRegex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageRegex getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageRegexOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageRegexOrBuilder.java new file mode 100644 index 000000000000..60e8fc6095c2 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageRegexOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface CloudStorageRegexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.CloudStorageRegex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. For organizations, if unset, will match all projects.
        +   * 
        + * + * string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The projectIdRegex. + */ + java.lang.String getProjectIdRegex(); + /** + * + * + *
        +   * Optional. For organizations, if unset, will match all projects.
        +   * 
        + * + * string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for projectIdRegex. + */ + com.google.protobuf.ByteString getProjectIdRegexBytes(); + + /** + * + * + *
        +   * Optional. Regex to test the bucket name against. If empty, all buckets
        +   * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the
        +   * bucket gs://marketing2021
        +   * 
        + * + * string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucketNameRegex. + */ + java.lang.String getBucketNameRegex(); + /** + * + * + *
        +   * Optional. Regex to test the bucket name against. If empty, all buckets
        +   * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the
        +   * bucket gs://marketing2021
        +   * 
        + * + * string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucketNameRegex. + */ + com.google.protobuf.ByteString getBucketNameRegexBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageResourceReference.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageResourceReference.java new file mode 100644 index 000000000000..6f00f06eaf7c --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageResourceReference.java @@ -0,0 +1,815 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * Identifies a single Cloud Storage bucket.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.CloudStorageResourceReference} + */ +public final class CloudStorageResourceReference extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.CloudStorageResourceReference) + CloudStorageResourceReferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudStorageResourceReference.newBuilder() to construct. + private CloudStorageResourceReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudStorageResourceReference() { + bucketName_ = ""; + projectId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudStorageResourceReference(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageResourceReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageResourceReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.CloudStorageResourceReference.class, + com.google.privacy.dlp.v2.CloudStorageResourceReference.Builder.class); + } + + public static final int BUCKET_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucketName_ = ""; + /** + * + * + *
        +   * Required. The bucket to scan.
        +   * 
        + * + * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucketName. + */ + @java.lang.Override + public java.lang.String getBucketName() { + java.lang.Object ref = bucketName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucketName_ = s; + return s; + } + } + /** + * + * + *
        +   * Required. The bucket to scan.
        +   * 
        + * + * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucketName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketNameBytes() { + java.lang.Object ref = bucketName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucketName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + * + * + *
        +   * Required. If within a project-level config, then this must match the
        +   * config's project id.
        +   * 
        + * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
        +   * Required. If within a project-level config, then this must match the
        +   * config's project id.
        +   * 
        + * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucketName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucketName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.CloudStorageResourceReference)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.CloudStorageResourceReference other = + (com.google.privacy.dlp.v2.CloudStorageResourceReference) obj; + + if (!getBucketName().equals(other.getBucketName())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BUCKET_NAME_FIELD_NUMBER; + hash = (53 * hash) + getBucketName().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.CloudStorageResourceReference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.CloudStorageResourceReference parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageResourceReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.CloudStorageResourceReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageResourceReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.CloudStorageResourceReference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageResourceReference parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.CloudStorageResourceReference parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageResourceReference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.CloudStorageResourceReference parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.CloudStorageResourceReference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.CloudStorageResourceReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.privacy.dlp.v2.CloudStorageResourceReference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Identifies a single Cloud Storage bucket.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.CloudStorageResourceReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.CloudStorageResourceReference) + com.google.privacy.dlp.v2.CloudStorageResourceReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageResourceReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageResourceReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.CloudStorageResourceReference.class, + com.google.privacy.dlp.v2.CloudStorageResourceReference.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.CloudStorageResourceReference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bucketName_ = ""; + projectId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_CloudStorageResourceReference_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageResourceReference getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.CloudStorageResourceReference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageResourceReference build() { + com.google.privacy.dlp.v2.CloudStorageResourceReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageResourceReference buildPartial() { + com.google.privacy.dlp.v2.CloudStorageResourceReference result = + new com.google.privacy.dlp.v2.CloudStorageResourceReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.CloudStorageResourceReference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bucketName_ = bucketName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.projectId_ = projectId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.CloudStorageResourceReference) { + return mergeFrom((com.google.privacy.dlp.v2.CloudStorageResourceReference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.CloudStorageResourceReference other) { + if (other == com.google.privacy.dlp.v2.CloudStorageResourceReference.getDefaultInstance()) + return this; + if (!other.getBucketName().isEmpty()) { + bucketName_ = other.bucketName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + bucketName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object bucketName_ = ""; + /** + * + * + *
        +     * Required. The bucket to scan.
        +     * 
        + * + * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucketName. + */ + public java.lang.String getBucketName() { + java.lang.Object ref = bucketName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucketName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Required. The bucket to scan.
        +     * 
        + * + * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucketName. + */ + public com.google.protobuf.ByteString getBucketNameBytes() { + java.lang.Object ref = bucketName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucketName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Required. The bucket to scan.
        +     * 
        + * + * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bucketName to set. + * @return This builder for chaining. + */ + public Builder setBucketName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucketName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. The bucket to scan.
        +     * 
        + * + * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBucketName() { + bucketName_ = getDefaultInstance().getBucketName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. The bucket to scan.
        +     * 
        + * + * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for bucketName to set. + * @return This builder for chaining. + */ + public Builder setBucketNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucketName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
        +     * Required. If within a project-level config, then this must match the
        +     * config's project id.
        +     * 
        + * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Required. If within a project-level config, then this must match the
        +     * config's project id.
        +     * 
        + * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Required. If within a project-level config, then this must match the
        +     * config's project id.
        +     * 
        + * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. If within a project-level config, then this must match the
        +     * config's project id.
        +     * 
        + * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. If within a project-level config, then this must match the
        +     * config's project id.
        +     * 
        + * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.CloudStorageResourceReference) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.CloudStorageResourceReference) + private static final com.google.privacy.dlp.v2.CloudStorageResourceReference DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.CloudStorageResourceReference(); + } + + public static com.google.privacy.dlp.v2.CloudStorageResourceReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudStorageResourceReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageResourceReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageResourceReferenceOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageResourceReferenceOrBuilder.java new file mode 100644 index 000000000000..50a0208e3e38 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageResourceReferenceOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface CloudStorageResourceReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.CloudStorageResourceReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The bucket to scan.
        +   * 
        + * + * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucketName. + */ + java.lang.String getBucketName(); + /** + * + * + *
        +   * Required. The bucket to scan.
        +   * 
        + * + * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucketName. + */ + com.google.protobuf.ByteString getBucketNameBytes(); + + /** + * + * + *
        +   * Required. If within a project-level config, then this must match the
        +   * config's project id.
        +   * 
        + * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * + * + *
        +   * Required. If within a project-level config, then this must match the
        +   * config's project id.
        +   * 
        + * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ConnectionName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ConnectionName.java index bcc8f6f76855..24bf709b319a 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ConnectionName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ConnectionName.java @@ -17,6 +17,7 @@ package com.google.privacy.dlp.v2; import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; import com.google.api.resourcenames.ResourceName; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; @@ -32,22 +33,39 @@ public class ConnectionName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_CONNECTION = PathTemplate.createWithoutUrlEncoding( "projects/{project}/locations/{location}/connections/{connection}"); + private static final PathTemplate ORGANIZATION_LOCATION_CONNECTION = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/connections/{connection}"); private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; private final String project; private final String location; private final String connection; + private final String organization; @Deprecated protected ConnectionName() { project = null; location = null; connection = null; + organization = null; } private ConnectionName(Builder builder) { project = Preconditions.checkNotNull(builder.getProject()); location = Preconditions.checkNotNull(builder.getLocation()); connection = Preconditions.checkNotNull(builder.getConnection()); + organization = null; + pathTemplate = PROJECT_LOCATION_CONNECTION; + } + + private ConnectionName(OrganizationLocationConnectionBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + connection = Preconditions.checkNotNull(builder.getConnection()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_CONNECTION; } public String getProject() { @@ -62,10 +80,22 @@ public String getConnection() { return connection; } + public String getOrganization() { + return organization; + } + public static Builder newBuilder() { return new Builder(); } + public static Builder newProjectLocationConnectionBuilder() { + return new Builder(); + } + + public static OrganizationLocationConnectionBuilder newOrganizationLocationConnectionBuilder() { + return new OrganizationLocationConnectionBuilder(); + } + public Builder toBuilder() { return new Builder(this); } @@ -74,6 +104,20 @@ public static ConnectionName of(String project, String location, String connecti return newBuilder().setProject(project).setLocation(location).setConnection(connection).build(); } + public static ConnectionName ofProjectLocationConnectionName( + String project, String location, String connection) { + return newBuilder().setProject(project).setLocation(location).setConnection(connection).build(); + } + + public static ConnectionName ofOrganizationLocationConnectionName( + String organization, String location, String connection) { + return newOrganizationLocationConnectionBuilder() + .setOrganization(organization) + .setLocation(location) + .setConnection(connection) + .build(); + } + public static String format(String project, String location, String connection) { return newBuilder() .setProject(project) @@ -83,14 +127,40 @@ public static String format(String project, String location, String connection) .toString(); } + public static String formatProjectLocationConnectionName( + String project, String location, String connection) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setConnection(connection) + .build() + .toString(); + } + + public static String formatOrganizationLocationConnectionName( + String organization, String location, String connection) { + return newOrganizationLocationConnectionBuilder() + .setOrganization(organization) + .setLocation(location) + .setConnection(connection) + .build() + .toString(); + } + public static ConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - Map matchMap = - PROJECT_LOCATION_CONNECTION.validatedMatch( - formattedString, "ConnectionName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("connection")); + if (PROJECT_LOCATION_CONNECTION.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_CONNECTION.match(formattedString); + return ofProjectLocationConnectionName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("connection")); + } else if (ORGANIZATION_LOCATION_CONNECTION.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION_CONNECTION.match(formattedString); + return ofOrganizationLocationConnectionName( + matchMap.get("organization"), matchMap.get("location"), matchMap.get("connection")); + } + throw new ValidationException("ConnectionName.parse: formattedString not in valid format"); } public static List parseList(List formattedStrings) { @@ -114,7 +184,8 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_CONNECTION.matches(formattedString); + return PROJECT_LOCATION_CONNECTION.matches(formattedString) + || ORGANIZATION_LOCATION_CONNECTION.matches(formattedString); } @Override @@ -132,6 +203,9 @@ public Map getFieldValuesMap() { if (connection != null) { fieldMapBuilder.put("connection", connection); } + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -145,8 +219,7 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PROJECT_LOCATION_CONNECTION.instantiate( - "project", project, "location", location, "connection", connection); + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); } @Override @@ -158,7 +231,8 @@ public boolean equals(Object o) { ConnectionName that = ((ConnectionName) o); return Objects.equals(this.project, that.project) && Objects.equals(this.location, that.location) - && Objects.equals(this.connection, that.connection); + && Objects.equals(this.connection, that.connection) + && Objects.equals(this.organization, that.organization); } return false; } @@ -167,11 +241,15 @@ public boolean equals(Object o) { public int hashCode() { int h = 1; h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; h ^= Objects.hashCode(project); h *= 1000003; h ^= Objects.hashCode(location); h *= 1000003; h ^= Objects.hashCode(connection); + h *= 1000003; + h ^= Objects.hashCode(organization); return h; } @@ -211,6 +289,9 @@ public Builder setConnection(String connection) { } private Builder(ConnectionName connectionName) { + Preconditions.checkArgument( + Objects.equals(connectionName.pathTemplate, PROJECT_LOCATION_CONNECTION), + "toBuilder is only supported when ConnectionName has the pattern of projects/{project}/locations/{location}/connections/{connection}"); this.project = connectionName.project; this.location = connectionName.location; this.connection = connectionName.connection; @@ -220,4 +301,44 @@ public ConnectionName build() { return new ConnectionName(this); } } + + /** Builder for organizations/{organization}/locations/{location}/connections/{connection}. */ + public static class OrganizationLocationConnectionBuilder { + private String organization; + private String location; + private String connection; + + protected OrganizationLocationConnectionBuilder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getConnection() { + return connection; + } + + public OrganizationLocationConnectionBuilder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public OrganizationLocationConnectionBuilder setLocation(String location) { + this.location = location; + return this; + } + + public OrganizationLocationConnectionBuilder setConnection(String connection) { + this.connection = connection; + return this; + } + + public ConnectionName build() { + return new ConnectionName(this); + } + } } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateConnectionRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateConnectionRequest.java index 7f24e4abd4b7..b919712cf8d2 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateConnectionRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateConnectionRequest.java @@ -72,8 +72,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. Parent resource name in the format:
        -   * `projects/{project}/locations/{location}`.
        +   * Required. Parent resource name.
        +   *
        +   * The format of this value varies depending on the scope of the request
        +   * (project or organization):
        +   *
        +   * + Projects scope:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Organizations scope:
        +   *   `organizations/{org_id}/locations/{location_id}`
            * 
        * * @@ -98,8 +105,15 @@ public java.lang.String getParent() { * * *
        -   * Required. Parent resource name in the format:
        -   * `projects/{project}/locations/{location}`.
        +   * Required. Parent resource name.
        +   *
        +   * The format of this value varies depending on the scope of the request
        +   * (project or organization):
        +   *
        +   * + Projects scope:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Organizations scope:
        +   *   `organizations/{org_id}/locations/{location_id}`
            * 
        * * @@ -567,8 +581,15 @@ public Builder mergeFrom( * * *
        -     * Required. Parent resource name in the format:
        -     * `projects/{project}/locations/{location}`.
        +     * Required. Parent resource name.
        +     *
        +     * The format of this value varies depending on the scope of the request
        +     * (project or organization):
        +     *
        +     * + Projects scope:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Organizations scope:
        +     *   `organizations/{org_id}/locations/{location_id}`
              * 
        * * @@ -592,8 +613,15 @@ public java.lang.String getParent() { * * *
        -     * Required. Parent resource name in the format:
        -     * `projects/{project}/locations/{location}`.
        +     * Required. Parent resource name.
        +     *
        +     * The format of this value varies depending on the scope of the request
        +     * (project or organization):
        +     *
        +     * + Projects scope:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Organizations scope:
        +     *   `organizations/{org_id}/locations/{location_id}`
              * 
        * * @@ -617,8 +645,15 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
        -     * Required. Parent resource name in the format:
        -     * `projects/{project}/locations/{location}`.
        +     * Required. Parent resource name.
        +     *
        +     * The format of this value varies depending on the scope of the request
        +     * (project or organization):
        +     *
        +     * + Projects scope:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Organizations scope:
        +     *   `organizations/{org_id}/locations/{location_id}`
              * 
        * * @@ -641,8 +676,15 @@ public Builder setParent(java.lang.String value) { * * *
        -     * Required. Parent resource name in the format:
        -     * `projects/{project}/locations/{location}`.
        +     * Required. Parent resource name.
        +     *
        +     * The format of this value varies depending on the scope of the request
        +     * (project or organization):
        +     *
        +     * + Projects scope:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Organizations scope:
        +     *   `organizations/{org_id}/locations/{location_id}`
              * 
        * * @@ -661,8 +703,15 @@ public Builder clearParent() { * * *
        -     * Required. Parent resource name in the format:
        -     * `projects/{project}/locations/{location}`.
        +     * Required. Parent resource name.
        +     *
        +     * The format of this value varies depending on the scope of the request
        +     * (project or organization):
        +     *
        +     * + Projects scope:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Organizations scope:
        +     *   `organizations/{org_id}/locations/{location_id}`
              * 
        * * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateConnectionRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateConnectionRequestOrBuilder.java index 819102512709..57c8eb95d809 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateConnectionRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateConnectionRequestOrBuilder.java @@ -28,8 +28,15 @@ public interface CreateConnectionRequestOrBuilder * * *
        -   * Required. Parent resource name in the format:
        -   * `projects/{project}/locations/{location}`.
        +   * Required. Parent resource name.
        +   *
        +   * The format of this value varies depending on the scope of the request
        +   * (project or organization):
        +   *
        +   * + Projects scope:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Organizations scope:
        +   *   `organizations/{org_id}/locations/{location_id}`
            * 
        * * @@ -43,8 +50,15 @@ public interface CreateConnectionRequestOrBuilder * * *
        -   * Required. Parent resource name in the format:
        -   * `projects/{project}/locations/{location}`.
        +   * Required. Parent resource name.
        +   *
        +   * The format of this value varies depending on the scope of the request
        +   * (project or organization):
        +   *
        +   * + Projects scope:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Organizations scope:
        +   *   `organizations/{org_id}/locations/{location_id}`
            * 
        * * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequest.java index 141fca1c20aa..4dd936d2c327 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequest.java @@ -81,14 +81,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> - * + Organizations scope, location specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -125,14 +125,14 @@ public java.lang.String getParent() { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> - * + Organizations scope, location specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -773,14 +773,14 @@ public Builder mergeFrom( * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> - * + Organizations scope, location specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -816,14 +816,14 @@ public java.lang.String getParent() { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> - * + Organizations scope, location specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -859,14 +859,14 @@ public com.google.protobuf.ByteString getParentBytes() { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> - * + Organizations scope, location specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -901,14 +901,14 @@ public Builder setParent(java.lang.String value) { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> - * + Organizations scope, location specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -939,14 +939,14 @@ public Builder clearParent() { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> - * + Organizations scope, location specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequestOrBuilder.java index 5cd75ee2220e..8e0b96c7f18c 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequestOrBuilder.java @@ -34,14 +34,14 @@ public interface CreateDeidentifyTemplateRequestOrBuilder * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> - * + Organizations scope, location specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -67,14 +67,14 @@ public interface CreateDeidentifyTemplateRequestOrBuilder * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> - * + Organizations scope, location specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDiscoveryConfigRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDiscoveryConfigRequest.java index 030c7e6d8eef..6a1c7f4dfc70 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDiscoveryConfigRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDiscoveryConfigRequest.java @@ -75,8 +75,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
            * Required. Parent resource name.
            *
        -   * The format of this value is as follows:
        -   * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +   * The format of this value varies depending on the scope of the request
        +   * (project or organization):
        +   *
        +   * + Projects scope:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Organizations scope:
        +   *   `organizations/{org_id}/locations/{location_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -109,8 +114,13 @@ public java.lang.String getParent() {
            * 
            * Required. Parent resource name.
            *
        -   * The format of this value is as follows:
        -   * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +   * The format of this value varies depending on the scope of the request
        +   * (project or organization):
        +   *
        +   * + Projects scope:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Organizations scope:
        +   *   `organizations/{org_id}/locations/{location_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -669,8 +679,13 @@ public Builder mergeFrom(
              * 
              * Required. Parent resource name.
              *
        -     * The format of this value is as follows:
        -     * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +     * The format of this value varies depending on the scope of the request
        +     * (project or organization):
        +     *
        +     * + Projects scope:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Organizations scope:
        +     *   `organizations/{org_id}/locations/{location_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -702,8 +717,13 @@ public java.lang.String getParent() {
              * 
              * Required. Parent resource name.
              *
        -     * The format of this value is as follows:
        -     * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +     * The format of this value varies depending on the scope of the request
        +     * (project or organization):
        +     *
        +     * + Projects scope:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Organizations scope:
        +     *   `organizations/{org_id}/locations/{location_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -735,8 +755,13 @@ public com.google.protobuf.ByteString getParentBytes() {
              * 
              * Required. Parent resource name.
              *
        -     * The format of this value is as follows:
        -     * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +     * The format of this value varies depending on the scope of the request
        +     * (project or organization):
        +     *
        +     * + Projects scope:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Organizations scope:
        +     *   `organizations/{org_id}/locations/{location_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -767,8 +792,13 @@ public Builder setParent(java.lang.String value) {
              * 
              * Required. Parent resource name.
              *
        -     * The format of this value is as follows:
        -     * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +     * The format of this value varies depending on the scope of the request
        +     * (project or organization):
        +     *
        +     * + Projects scope:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Organizations scope:
        +     *   `organizations/{org_id}/locations/{location_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -795,8 +825,13 @@ public Builder clearParent() {
              * 
              * Required. Parent resource name.
              *
        -     * The format of this value is as follows:
        -     * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +     * The format of this value varies depending on the scope of the request
        +     * (project or organization):
        +     *
        +     * + Projects scope:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Organizations scope:
        +     *   `organizations/{org_id}/locations/{location_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDiscoveryConfigRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDiscoveryConfigRequestOrBuilder.java
        index bfa1cf90a7e2..9f6b5fbedd4e 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDiscoveryConfigRequestOrBuilder.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDiscoveryConfigRequestOrBuilder.java
        @@ -30,8 +30,13 @@ public interface CreateDiscoveryConfigRequestOrBuilder
            * 
            * Required. Parent resource name.
            *
        -   * The format of this value is as follows:
        -   * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +   * The format of this value varies depending on the scope of the request
        +   * (project or organization):
        +   *
        +   * + Projects scope:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Organizations scope:
        +   *   `organizations/{org_id}/locations/{location_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -53,8 +58,13 @@ public interface CreateDiscoveryConfigRequestOrBuilder
            * 
            * Required. Parent resource name.
            *
        -   * The format of this value is as follows:
        -   * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +   * The format of this value varies depending on the scope of the request
        +   * (project or organization):
        +   *
        +   * + Projects scope:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Organizations scope:
        +   *   `organizations/{org_id}/locations/{location_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequest.java
        index f7d98ae40cf4..74ad4e21b3cc 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequest.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequest.java
        @@ -130,10 +130,10 @@ public JobCase getJobCase() {
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -170,10 +170,10 @@ public java.lang.String getParent() {
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -917,10 +917,10 @@ public Builder clearJob() {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -956,10 +956,10 @@ public java.lang.String getParent() {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -995,10 +995,10 @@ public com.google.protobuf.ByteString getParentBytes() {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1033,10 +1033,10 @@ public Builder setParent(java.lang.String value) {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1067,10 +1067,10 @@ public Builder clearParent() {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequestOrBuilder.java
        index 6b7009c03a36..45868a3652a2 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequestOrBuilder.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequestOrBuilder.java
        @@ -34,10 +34,10 @@ public interface CreateDlpJobRequestOrBuilder
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -63,10 +63,10 @@ public interface CreateDlpJobRequestOrBuilder
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequest.java
        index cc8a01161504..1884e7959d47 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequest.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequest.java
        @@ -80,14 +80,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        -   * + Organizations scope, location specified:<br/>
        -   *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Organizations scope, no location specified (defaults to global):<br/>
        -   *   `organizations/`<var>ORG_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
        +   * + Organizations scope, location specified:
        +   *   `organizations/{org_id}/locations/{location_id}`
        +   * + Organizations scope, no location specified (defaults to global):
        +   *   `organizations/{org_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -124,14 +124,14 @@ public java.lang.String getParent() {
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        -   * + Organizations scope, location specified:<br/>
        -   *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Organizations scope, no location specified (defaults to global):<br/>
        -   *   `organizations/`<var>ORG_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
        +   * + Organizations scope, location specified:
        +   *   `organizations/{org_id}/locations/{location_id}`
        +   * + Organizations scope, no location specified (defaults to global):
        +   *   `organizations/{org_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -769,14 +769,14 @@ public Builder mergeFrom(
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -812,14 +812,14 @@ public java.lang.String getParent() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -855,14 +855,14 @@ public com.google.protobuf.ByteString getParentBytes() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -897,14 +897,14 @@ public Builder setParent(java.lang.String value) {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -935,14 +935,14 @@ public Builder clearParent() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequestOrBuilder.java
        index 7d5614b58c06..a74ee2603835 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequestOrBuilder.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequestOrBuilder.java
        @@ -34,14 +34,14 @@ public interface CreateInspectTemplateRequestOrBuilder
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        -   * + Organizations scope, location specified:<br/>
        -   *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Organizations scope, no location specified (defaults to global):<br/>
        -   *   `organizations/`<var>ORG_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
        +   * + Organizations scope, location specified:
        +   *   `organizations/{org_id}/locations/{location_id}`
        +   * + Organizations scope, no location specified (defaults to global):
        +   *   `organizations/{org_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -67,14 +67,14 @@ public interface CreateInspectTemplateRequestOrBuilder
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        -   * + Organizations scope, location specified:<br/>
        -   *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Organizations scope, no location specified (defaults to global):<br/>
        -   *   `organizations/`<var>ORG_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
        +   * + Organizations scope, location specified:
        +   *   `organizations/{org_id}/locations/{location_id}`
        +   * + Organizations scope, no location specified (defaults to global):
        +   *   `organizations/{org_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequest.java
        index 21218201575b..90497b1458a8 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequest.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequest.java
        @@ -80,10 +80,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -120,10 +120,10 @@ public java.lang.String getParent() {
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -759,10 +759,10 @@ public Builder mergeFrom(
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -798,10 +798,10 @@ public java.lang.String getParent() {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -837,10 +837,10 @@ public com.google.protobuf.ByteString getParentBytes() {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -875,10 +875,10 @@ public Builder setParent(java.lang.String value) {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -909,10 +909,10 @@ public Builder clearParent() {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequestOrBuilder.java
        index 165edf3a3497..7daa7ef6438b 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequestOrBuilder.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequestOrBuilder.java
        @@ -34,10 +34,10 @@ public interface CreateJobTriggerRequestOrBuilder
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -63,10 +63,10 @@ public interface CreateJobTriggerRequestOrBuilder
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequest.java
        index 34f20f4ad7fb..7558a49ba81d 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequest.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequest.java
        @@ -80,14 +80,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        -   * + Organizations scope, location specified:<br/>
        -   *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Organizations scope, no location specified (defaults to global):<br/>
        -   *   `organizations/`<var>ORG_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
        +   * + Organizations scope, location specified:
        +   *   `organizations/{org_id}/locations/{location_id}`
        +   * + Organizations scope, no location specified (defaults to global):
        +   *   `organizations/{org_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -124,14 +124,14 @@ public java.lang.String getParent() {
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        -   * + Organizations scope, location specified:<br/>
        -   *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Organizations scope, no location specified (defaults to global):<br/>
        -   *   `organizations/`<var>ORG_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
        +   * + Organizations scope, location specified:
        +   *   `organizations/{org_id}/locations/{location_id}`
        +   * + Organizations scope, no location specified (defaults to global):
        +   *   `organizations/{org_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -768,14 +768,14 @@ public Builder mergeFrom(
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -811,14 +811,14 @@ public java.lang.String getParent() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -854,14 +854,14 @@ public com.google.protobuf.ByteString getParentBytes() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -896,14 +896,14 @@ public Builder setParent(java.lang.String value) {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -934,14 +934,14 @@ public Builder clearParent() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequestOrBuilder.java
        index 8ef39e3a6205..a9c00b32e25c 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequestOrBuilder.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequestOrBuilder.java
        @@ -34,14 +34,14 @@ public interface CreateStoredInfoTypeRequestOrBuilder
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        -   * + Organizations scope, location specified:<br/>
        -   *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Organizations scope, no location specified (defaults to global):<br/>
        -   *   `organizations/`<var>ORG_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
        +   * + Organizations scope, location specified:
        +   *   `organizations/{org_id}/locations/{location_id}`
        +   * + Organizations scope, no location specified (defaults to global):
        +   *   `organizations/{org_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -67,14 +67,14 @@ public interface CreateStoredInfoTypeRequestOrBuilder
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        -   * + Organizations scope, location specified:<br/>
        -   *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Organizations scope, no location specified (defaults to global):<br/>
        -   *   `organizations/`<var>ORG_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
        +   * + Organizations scope, location specified:
        +   *   `organizations/{org_id}/locations/{location_id}`
        +   * + Organizations scope, no location specified (defaults to global):
        +   *   `organizations/{org_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java
        index 540dff92e736..8ba0002fcecc 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java
        @@ -570,8 +570,7 @@ public int getCommonAlphabetValue() {
            * This must be encoded as ASCII.
            * The order of characters does not matter.
            * The full list of allowed characters is:
        -   * <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
        -   * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/</code>
        +   * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/``
            * 
        * * string custom_alphabet = 5; @@ -593,8 +592,7 @@ public boolean hasCustomAlphabet() { * This must be encoded as ASCII. * The order of characters does not matter. * The full list of allowed characters is: - * <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/</code> + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` *
        * * string custom_alphabet = 5; @@ -629,8 +627,7 @@ public java.lang.String getCustomAlphabet() { * This must be encoded as ASCII. * The order of characters does not matter. * The full list of allowed characters is: - * <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/</code> + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` *
        * * string custom_alphabet = 5; @@ -2069,8 +2066,7 @@ public Builder clearCommonAlphabet() { * This must be encoded as ASCII. * The order of characters does not matter. * The full list of allowed characters is: - * <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/</code> + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` *
        * * string custom_alphabet = 5; @@ -2093,8 +2089,7 @@ public boolean hasCustomAlphabet() { * This must be encoded as ASCII. * The order of characters does not matter. * The full list of allowed characters is: - * <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/</code> + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` *
        * * string custom_alphabet = 5; @@ -2130,8 +2125,7 @@ public java.lang.String getCustomAlphabet() { * This must be encoded as ASCII. * The order of characters does not matter. * The full list of allowed characters is: - * <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/</code> + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` *
        * * string custom_alphabet = 5; @@ -2167,8 +2161,7 @@ public com.google.protobuf.ByteString getCustomAlphabetBytes() { * This must be encoded as ASCII. * The order of characters does not matter. * The full list of allowed characters is: - * <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/</code> + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` *
        * * string custom_alphabet = 5; @@ -2197,8 +2190,7 @@ public Builder setCustomAlphabet(java.lang.String value) { * This must be encoded as ASCII. * The order of characters does not matter. * The full list of allowed characters is: - * <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/</code> + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` *
        * * string custom_alphabet = 5; @@ -2225,8 +2217,7 @@ public Builder clearCustomAlphabet() { * This must be encoded as ASCII. * The order of characters does not matter. * The full list of allowed characters is: - * <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/</code> + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` *
        * * string custom_alphabet = 5; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java index a6897b08c764..2730604e8a62 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java @@ -212,8 +212,7 @@ public interface CryptoReplaceFfxFpeConfigOrBuilder * This must be encoded as ASCII. * The order of characters does not matter. * The full list of allowed characters is: - * <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/</code> + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` *
        * * string custom_alphabet = 5; @@ -233,8 +232,7 @@ public interface CryptoReplaceFfxFpeConfigOrBuilder * This must be encoded as ASCII. * The order of characters does not matter. * The full list of allowed characters is: - * <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/</code> + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` *
        * * string custom_alphabet = 5; @@ -254,8 +252,7 @@ public interface CryptoReplaceFfxFpeConfigOrBuilder * This must be encoded as ASCII. * The order of characters does not matter. * The full list of allowed characters is: - * <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/</code> + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` *
        * * string custom_alphabet = 5; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileAction.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileAction.java index e2be8c710fee..74e80746461b 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileAction.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileAction.java @@ -1355,6 +1355,16 @@ public enum DetailLevel implements com.google.protobuf.ProtocolMessageEnum { * RESOURCE_NAME = 2; */ RESOURCE_NAME(2), + /** + * + * + *
        +       * The full file store data profile.
        +       * 
        + * + * FILE_STORE_PROFILE = 3; + */ + FILE_STORE_PROFILE(3), UNRECOGNIZED(-1), ; @@ -1388,6 +1398,16 @@ public enum DetailLevel implements com.google.protobuf.ProtocolMessageEnum { * RESOURCE_NAME = 2; */ public static final int RESOURCE_NAME_VALUE = 2; + /** + * + * + *
        +       * The full file store data profile.
        +       * 
        + * + * FILE_STORE_PROFILE = 3; + */ + public static final int FILE_STORE_PROFILE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -1419,6 +1439,8 @@ public static DetailLevel forNumber(int value) { return TABLE_PROFILE; case 2: return RESOURCE_NAME; + case 3: + return FILE_STORE_PROFILE; default: return null; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileBigQueryRowSchema.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileBigQueryRowSchema.java index 77211ac71a26..2664a12fe5d0 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileBigQueryRowSchema.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileBigQueryRowSchema.java @@ -73,6 +73,7 @@ public enum DataProfileCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { TABLE_PROFILE(1), COLUMN_PROFILE(2), + FILE_STORE_PROFILE(3), DATAPROFILE_NOT_SET(0); private final int value; @@ -95,6 +96,8 @@ public static DataProfileCase forNumber(int value) { return TABLE_PROFILE; case 2: return COLUMN_PROFILE; + case 3: + return FILE_STORE_PROFILE; case 0: return DATAPROFILE_NOT_SET; default: @@ -213,6 +216,57 @@ public com.google.privacy.dlp.v2.ColumnDataProfileOrBuilder getColumnProfileOrBu return com.google.privacy.dlp.v2.ColumnDataProfile.getDefaultInstance(); } + public static final int FILE_STORE_PROFILE_FIELD_NUMBER = 3; + /** + * + * + *
        +   * File store data profile column.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * + * @return Whether the fileStoreProfile field is set. + */ + @java.lang.Override + public boolean hasFileStoreProfile() { + return dataProfileCase_ == 3; + } + /** + * + * + *
        +   * File store data profile column.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * + * @return The fileStoreProfile. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreDataProfile getFileStoreProfile() { + if (dataProfileCase_ == 3) { + return (com.google.privacy.dlp.v2.FileStoreDataProfile) dataProfile_; + } + return com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance(); + } + /** + * + * + *
        +   * File store data profile column.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder getFileStoreProfileOrBuilder() { + if (dataProfileCase_ == 3) { + return (com.google.privacy.dlp.v2.FileStoreDataProfile) dataProfile_; + } + return com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -233,6 +287,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataProfileCase_ == 2) { output.writeMessage(2, (com.google.privacy.dlp.v2.ColumnDataProfile) dataProfile_); } + if (dataProfileCase_ == 3) { + output.writeMessage(3, (com.google.privacy.dlp.v2.FileStoreDataProfile) dataProfile_); + } getUnknownFields().writeTo(output); } @@ -252,6 +309,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.privacy.dlp.v2.ColumnDataProfile) dataProfile_); } + if (dataProfileCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.privacy.dlp.v2.FileStoreDataProfile) dataProfile_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -276,6 +338,9 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getColumnProfile().equals(other.getColumnProfile())) return false; break; + case 3: + if (!getFileStoreProfile().equals(other.getFileStoreProfile())) return false; + break; case 0: default: } @@ -299,6 +364,10 @@ public int hashCode() { hash = (37 * hash) + COLUMN_PROFILE_FIELD_NUMBER; hash = (53 * hash) + getColumnProfile().hashCode(); break; + case 3: + hash = (37 * hash) + FILE_STORE_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getFileStoreProfile().hashCode(); + break; case 0: default: } @@ -449,6 +518,9 @@ public Builder clear() { if (columnProfileBuilder_ != null) { columnProfileBuilder_.clear(); } + if (fileStoreProfileBuilder_ != null) { + fileStoreProfileBuilder_.clear(); + } dataProfileCase_ = 0; dataProfile_ = null; return this; @@ -499,6 +571,9 @@ private void buildPartialOneofs(com.google.privacy.dlp.v2.DataProfileBigQueryRow if (dataProfileCase_ == 2 && columnProfileBuilder_ != null) { result.dataProfile_ = columnProfileBuilder_.build(); } + if (dataProfileCase_ == 3 && fileStoreProfileBuilder_ != null) { + result.dataProfile_ = fileStoreProfileBuilder_.build(); + } } @java.lang.Override @@ -558,6 +633,11 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.DataProfileBigQueryRowSchema mergeColumnProfile(other.getColumnProfile()); break; } + case FILE_STORE_PROFILE: + { + mergeFileStoreProfile(other.getFileStoreProfile()); + break; + } case DATAPROFILE_NOT_SET: { break; @@ -601,6 +681,13 @@ public Builder mergeFrom( dataProfileCase_ = 2; break; } // case 18 + case 26: + { + input.readMessage( + getFileStoreProfileFieldBuilder().getBuilder(), extensionRegistry); + dataProfileCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1052,6 +1139,216 @@ public com.google.privacy.dlp.v2.ColumnDataProfileOrBuilder getColumnProfileOrBu return columnProfileBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreDataProfile, + com.google.privacy.dlp.v2.FileStoreDataProfile.Builder, + com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder> + fileStoreProfileBuilder_; + /** + * + * + *
        +     * File store data profile column.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * + * @return Whether the fileStoreProfile field is set. + */ + @java.lang.Override + public boolean hasFileStoreProfile() { + return dataProfileCase_ == 3; + } + /** + * + * + *
        +     * File store data profile column.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * + * @return The fileStoreProfile. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreDataProfile getFileStoreProfile() { + if (fileStoreProfileBuilder_ == null) { + if (dataProfileCase_ == 3) { + return (com.google.privacy.dlp.v2.FileStoreDataProfile) dataProfile_; + } + return com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance(); + } else { + if (dataProfileCase_ == 3) { + return fileStoreProfileBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance(); + } + } + /** + * + * + *
        +     * File store data profile column.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + public Builder setFileStoreProfile(com.google.privacy.dlp.v2.FileStoreDataProfile value) { + if (fileStoreProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataProfile_ = value; + onChanged(); + } else { + fileStoreProfileBuilder_.setMessage(value); + } + dataProfileCase_ = 3; + return this; + } + /** + * + * + *
        +     * File store data profile column.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + public Builder setFileStoreProfile( + com.google.privacy.dlp.v2.FileStoreDataProfile.Builder builderForValue) { + if (fileStoreProfileBuilder_ == null) { + dataProfile_ = builderForValue.build(); + onChanged(); + } else { + fileStoreProfileBuilder_.setMessage(builderForValue.build()); + } + dataProfileCase_ = 3; + return this; + } + /** + * + * + *
        +     * File store data profile column.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + public Builder mergeFileStoreProfile(com.google.privacy.dlp.v2.FileStoreDataProfile value) { + if (fileStoreProfileBuilder_ == null) { + if (dataProfileCase_ == 3 + && dataProfile_ + != com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance()) { + dataProfile_ = + com.google.privacy.dlp.v2.FileStoreDataProfile.newBuilder( + (com.google.privacy.dlp.v2.FileStoreDataProfile) dataProfile_) + .mergeFrom(value) + .buildPartial(); + } else { + dataProfile_ = value; + } + onChanged(); + } else { + if (dataProfileCase_ == 3) { + fileStoreProfileBuilder_.mergeFrom(value); + } else { + fileStoreProfileBuilder_.setMessage(value); + } + } + dataProfileCase_ = 3; + return this; + } + /** + * + * + *
        +     * File store data profile column.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + public Builder clearFileStoreProfile() { + if (fileStoreProfileBuilder_ == null) { + if (dataProfileCase_ == 3) { + dataProfileCase_ = 0; + dataProfile_ = null; + onChanged(); + } + } else { + if (dataProfileCase_ == 3) { + dataProfileCase_ = 0; + dataProfile_ = null; + } + fileStoreProfileBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * File store data profile column.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + public com.google.privacy.dlp.v2.FileStoreDataProfile.Builder getFileStoreProfileBuilder() { + return getFileStoreProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * File store data profile column.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder getFileStoreProfileOrBuilder() { + if ((dataProfileCase_ == 3) && (fileStoreProfileBuilder_ != null)) { + return fileStoreProfileBuilder_.getMessageOrBuilder(); + } else { + if (dataProfileCase_ == 3) { + return (com.google.privacy.dlp.v2.FileStoreDataProfile) dataProfile_; + } + return com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance(); + } + } + /** + * + * + *
        +     * File store data profile column.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreDataProfile, + com.google.privacy.dlp.v2.FileStoreDataProfile.Builder, + com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder> + getFileStoreProfileFieldBuilder() { + if (fileStoreProfileBuilder_ == null) { + if (!(dataProfileCase_ == 3)) { + dataProfile_ = com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance(); + } + fileStoreProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreDataProfile, + com.google.privacy.dlp.v2.FileStoreDataProfile.Builder, + com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder>( + (com.google.privacy.dlp.v2.FileStoreDataProfile) dataProfile_, + getParentForChildren(), + isClean()); + dataProfile_ = null; + } + dataProfileCase_ = 3; + onChanged(); + return fileStoreProfileBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileBigQueryRowSchemaOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileBigQueryRowSchemaOrBuilder.java index b1f96d110821..861cd24b8f22 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileBigQueryRowSchemaOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileBigQueryRowSchemaOrBuilder.java @@ -94,5 +94,40 @@ public interface DataProfileBigQueryRowSchemaOrBuilder */ com.google.privacy.dlp.v2.ColumnDataProfileOrBuilder getColumnProfileOrBuilder(); + /** + * + * + *
        +   * File store data profile column.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * + * @return Whether the fileStoreProfile field is set. + */ + boolean hasFileStoreProfile(); + /** + * + * + *
        +   * File store data profile column.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * + * @return The fileStoreProfile. + */ + com.google.privacy.dlp.v2.FileStoreDataProfile getFileStoreProfile(); + /** + * + * + *
        +   * File store data profile column.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder getFileStoreProfileOrBuilder(); + com.google.privacy.dlp.v2.DataProfileBigQueryRowSchema.DataProfileCase getDataProfileCase(); } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java index 0cce57d8fb92..bb64750f372d 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java @@ -134,7 +134,7 @@ public com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilde *
        * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=6574 + * google/privacy/dlp/v2/dlp.proto;l=6925 * @return Whether the dataProfileJob field is set. */ @java.lang.Override @@ -157,7 +157,7 @@ public boolean hasDataProfileJob() { *
        * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=6574 + * google/privacy/dlp/v2/dlp.proto;l=6925 * @return The dataProfileJob. */ @java.lang.Override @@ -1050,7 +1050,7 @@ public com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilde * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. - * See google/privacy/dlp/v2/dlp.proto;l=6574 + * See google/privacy/dlp/v2/dlp.proto;l=6925 * @return Whether the dataProfileJob field is set. */ @java.lang.Deprecated @@ -1072,7 +1072,7 @@ public boolean hasDataProfileJob() { * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. - * See google/privacy/dlp/v2/dlp.proto;l=6574 + * See google/privacy/dlp/v2/dlp.proto;l=6925 * @return The dataProfileJob. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java index c25c0fcadded..d44d017eab19 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java @@ -77,7 +77,7 @@ public interface DataProfileConfigSnapshotOrBuilder * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=6574 + * google/privacy/dlp/v2/dlp.proto;l=6925 * @return Whether the dataProfileJob field is set. */ @java.lang.Deprecated @@ -97,7 +97,7 @@ public interface DataProfileConfigSnapshotOrBuilder * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=6574 + * google/privacy/dlp/v2/dlp.proto;l=6925 * @return The dataProfileJob. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileLocation.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileLocation.java index d67014bb2d9c..fcd58308e619 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileLocation.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileLocation.java @@ -150,7 +150,7 @@ public long getOrganizationId() { * * *
        -   * The ID of the Folder within an organization to scan.
        +   * The ID of the folder within an organization to scan.
            * 
        * * int64 folder_id = 2; @@ -165,7 +165,7 @@ public boolean hasFolderId() { * * *
        -   * The ID of the Folder within an organization to scan.
        +   * The ID of the folder within an organization to scan.
            * 
        * * int64 folder_id = 2; @@ -660,7 +660,7 @@ public Builder clearOrganizationId() { * * *
        -     * The ID of the Folder within an organization to scan.
        +     * The ID of the folder within an organization to scan.
              * 
        * * int64 folder_id = 2; @@ -674,7 +674,7 @@ public boolean hasFolderId() { * * *
        -     * The ID of the Folder within an organization to scan.
        +     * The ID of the folder within an organization to scan.
              * 
        * * int64 folder_id = 2; @@ -691,7 +691,7 @@ public long getFolderId() { * * *
        -     * The ID of the Folder within an organization to scan.
        +     * The ID of the folder within an organization to scan.
              * 
        * * int64 folder_id = 2; @@ -710,7 +710,7 @@ public Builder setFolderId(long value) { * * *
        -     * The ID of the Folder within an organization to scan.
        +     * The ID of the folder within an organization to scan.
              * 
        * * int64 folder_id = 2; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileLocationOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileLocationOrBuilder.java index e81126574d85..1ea5f0e5f360 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileLocationOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileLocationOrBuilder.java @@ -53,7 +53,7 @@ public interface DataProfileLocationOrBuilder * * *
        -   * The ID of the Folder within an organization to scan.
        +   * The ID of the folder within an organization to scan.
            * 
        * * int64 folder_id = 2; @@ -65,7 +65,7 @@ public interface DataProfileLocationOrBuilder * * *
        -   * The ID of the Folder within an organization to scan.
        +   * The ID of the folder within an organization to scan.
            * 
        * * int64 folder_id = 2; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java index f6595aba4081..68d7bb7131be 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java @@ -122,6 +122,62 @@ public com.google.privacy.dlp.v2.TableDataProfileOrBuilder getProfileOrBuilder() : profile_; } + public static final int FILE_STORE_PROFILE_FIELD_NUMBER = 3; + private com.google.privacy.dlp.v2.FileStoreDataProfile fileStoreProfile_; + /** + * + * + *
        +   * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +   * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +   * `file_store_path` will be populated.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * + * @return Whether the fileStoreProfile field is set. + */ + @java.lang.Override + public boolean hasFileStoreProfile() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +   * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +   * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +   * `file_store_path` will be populated.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * + * @return The fileStoreProfile. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreDataProfile getFileStoreProfile() { + return fileStoreProfile_ == null + ? com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance() + : fileStoreProfile_; + } + /** + * + * + *
        +   * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +   * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +   * `file_store_path` will be populated.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder getFileStoreProfileOrBuilder() { + return fileStoreProfile_ == null + ? com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance() + : fileStoreProfile_; + } + public static final int EVENT_FIELD_NUMBER = 2; private int event_ = 0; /** @@ -181,6 +237,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(2, event_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getFileStoreProfile()); + } getUnknownFields().writeTo(output); } @@ -198,6 +257,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, event_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFileStoreProfile()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -218,6 +280,10 @@ public boolean equals(final java.lang.Object obj) { if (hasProfile()) { if (!getProfile().equals(other.getProfile())) return false; } + if (hasFileStoreProfile() != other.hasFileStoreProfile()) return false; + if (hasFileStoreProfile()) { + if (!getFileStoreProfile().equals(other.getFileStoreProfile())) return false; + } if (event_ != other.event_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -234,6 +300,10 @@ public int hashCode() { hash = (37 * hash) + PROFILE_FIELD_NUMBER; hash = (53 * hash) + getProfile().hashCode(); } + if (hasFileStoreProfile()) { + hash = (37 * hash) + FILE_STORE_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getFileStoreProfile().hashCode(); + } hash = (37 * hash) + EVENT_FIELD_NUMBER; hash = (53 * hash) + event_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -379,6 +449,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProfileFieldBuilder(); + getFileStoreProfileFieldBuilder(); } } @@ -391,6 +462,11 @@ public Builder clear() { profileBuilder_.dispose(); profileBuilder_ = null; } + fileStoreProfile_ = null; + if (fileStoreProfileBuilder_ != null) { + fileStoreProfileBuilder_.dispose(); + fileStoreProfileBuilder_ = null; + } event_ = 0; return this; } @@ -434,6 +510,11 @@ private void buildPartial0(com.google.privacy.dlp.v2.DataProfilePubSubMessage re to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { + result.fileStoreProfile_ = + fileStoreProfileBuilder_ == null ? fileStoreProfile_ : fileStoreProfileBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { result.event_ = event_; } result.bitField0_ |= to_bitField0_; @@ -488,6 +569,9 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.DataProfilePubSubMessage othe if (other.hasProfile()) { mergeProfile(other.getProfile()); } + if (other.hasFileStoreProfile()) { + mergeFileStoreProfile(other.getFileStoreProfile()); + } if (other.event_ != 0) { setEventValue(other.getEventValue()); } @@ -526,9 +610,16 @@ public Builder mergeFrom( case 16: { event_ = input.readEnum(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 16 + case 26: + { + input.readMessage( + getFileStoreProfileFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -751,6 +842,211 @@ public com.google.privacy.dlp.v2.TableDataProfileOrBuilder getProfileOrBuilder() return profileBuilder_; } + private com.google.privacy.dlp.v2.FileStoreDataProfile fileStoreProfile_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreDataProfile, + com.google.privacy.dlp.v2.FileStoreDataProfile.Builder, + com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder> + fileStoreProfileBuilder_; + /** + * + * + *
        +     * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +     * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +     * `file_store_path` will be populated.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * + * @return Whether the fileStoreProfile field is set. + */ + public boolean hasFileStoreProfile() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +     * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +     * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +     * `file_store_path` will be populated.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * + * @return The fileStoreProfile. + */ + public com.google.privacy.dlp.v2.FileStoreDataProfile getFileStoreProfile() { + if (fileStoreProfileBuilder_ == null) { + return fileStoreProfile_ == null + ? com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance() + : fileStoreProfile_; + } else { + return fileStoreProfileBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +     * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +     * `file_store_path` will be populated.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + public Builder setFileStoreProfile(com.google.privacy.dlp.v2.FileStoreDataProfile value) { + if (fileStoreProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fileStoreProfile_ = value; + } else { + fileStoreProfileBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +     * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +     * `file_store_path` will be populated.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + public Builder setFileStoreProfile( + com.google.privacy.dlp.v2.FileStoreDataProfile.Builder builderForValue) { + if (fileStoreProfileBuilder_ == null) { + fileStoreProfile_ = builderForValue.build(); + } else { + fileStoreProfileBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +     * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +     * `file_store_path` will be populated.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + public Builder mergeFileStoreProfile(com.google.privacy.dlp.v2.FileStoreDataProfile value) { + if (fileStoreProfileBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && fileStoreProfile_ != null + && fileStoreProfile_ + != com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance()) { + getFileStoreProfileBuilder().mergeFrom(value); + } else { + fileStoreProfile_ = value; + } + } else { + fileStoreProfileBuilder_.mergeFrom(value); + } + if (fileStoreProfile_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +     * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +     * `file_store_path` will be populated.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + public Builder clearFileStoreProfile() { + bitField0_ = (bitField0_ & ~0x00000002); + fileStoreProfile_ = null; + if (fileStoreProfileBuilder_ != null) { + fileStoreProfileBuilder_.dispose(); + fileStoreProfileBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +     * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +     * `file_store_path` will be populated.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + public com.google.privacy.dlp.v2.FileStoreDataProfile.Builder getFileStoreProfileBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getFileStoreProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +     * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +     * `file_store_path` will be populated.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + public com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder getFileStoreProfileOrBuilder() { + if (fileStoreProfileBuilder_ != null) { + return fileStoreProfileBuilder_.getMessageOrBuilder(); + } else { + return fileStoreProfile_ == null + ? com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance() + : fileStoreProfile_; + } + } + /** + * + * + *
        +     * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +     * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +     * `file_store_path` will be populated.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreDataProfile, + com.google.privacy.dlp.v2.FileStoreDataProfile.Builder, + com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder> + getFileStoreProfileFieldBuilder() { + if (fileStoreProfileBuilder_ == null) { + fileStoreProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreDataProfile, + com.google.privacy.dlp.v2.FileStoreDataProfile.Builder, + com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder>( + getFileStoreProfile(), getParentForChildren(), isClean()); + fileStoreProfile_ = null; + } + return fileStoreProfileBuilder_; + } + private int event_ = 0; /** * @@ -781,7 +1077,7 @@ public int getEventValue() { */ public Builder setEventValue(int value) { event_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -820,7 +1116,7 @@ public Builder setEvent(com.google.privacy.dlp.v2.DataProfileAction.EventType va if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; event_ = value.getNumber(); onChanged(); return this; @@ -837,7 +1133,7 @@ public Builder setEvent(com.google.privacy.dlp.v2.DataProfileAction.EventType va * @return This builder for chaining. */ public Builder clearEvent() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); event_ = 0; onChanged(); return this; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessageOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessageOrBuilder.java index 430e3b93140b..000f45a25de1 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessageOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessageOrBuilder.java @@ -65,6 +65,47 @@ public interface DataProfilePubSubMessageOrBuilder */ com.google.privacy.dlp.v2.TableDataProfileOrBuilder getProfileOrBuilder(); + /** + * + * + *
        +   * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +   * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +   * `file_store_path` will be populated.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * + * @return Whether the fileStoreProfile field is set. + */ + boolean hasFileStoreProfile(); + /** + * + * + *
        +   * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +   * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +   * `file_store_path` will be populated.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * + * @return The fileStoreProfile. + */ + com.google.privacy.dlp.v2.FileStoreDataProfile getFileStoreProfile(); + /** + * + * + *
        +   * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
        +   * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
        +   * `file_store_path` will be populated.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder getFileStoreProfileOrBuilder(); + /** * * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java index 1697d6e28ecd..da3a05ebab84 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java @@ -96,6 +96,16 @@ public enum DataRiskLevelScore implements com.google.protobuf.ProtocolMessageEnu * RISK_LOW = 10; */ RISK_LOW(10), + /** + * + * + *
        +     * Unable to determine risk.
        +     * 
        + * + * RISK_UNKNOWN = 12; + */ + RISK_UNKNOWN(12), /** * * @@ -145,6 +155,16 @@ public enum DataRiskLevelScore implements com.google.protobuf.ProtocolMessageEnu * RISK_LOW = 10; */ public static final int RISK_LOW_VALUE = 10; + /** + * + * + *
        +     * Unable to determine risk.
        +     * 
        + * + * RISK_UNKNOWN = 12; + */ + public static final int RISK_UNKNOWN_VALUE = 12; /** * * @@ -198,6 +218,8 @@ public static DataRiskLevelScore forNumber(int value) { return RISK_SCORE_UNSPECIFIED; case 10: return RISK_LOW; + case 12: + return RISK_UNKNOWN; case 20: return RISK_MODERATE; case 30: diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java index 36965b54ec1c..5965ed2bc659 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java @@ -81,10 +81,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -119,10 +119,10 @@ public java.lang.String getParent() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -1033,10 +1033,10 @@ public Builder mergeFrom( * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -1070,10 +1070,10 @@ public java.lang.String getParent() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -1107,10 +1107,10 @@ public com.google.protobuf.ByteString getParentBytes() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -1143,10 +1143,10 @@ public Builder setParent(java.lang.String value) { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -1175,10 +1175,10 @@ public Builder clearParent() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequestOrBuilder.java index f5d79a013312..f40e21427b77 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequestOrBuilder.java @@ -34,10 +34,10 @@ public interface DeidentifyContentRequestOrBuilder * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -61,10 +61,10 @@ public interface DeidentifyContentRequestOrBuilder * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteFileStoreDataProfileRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteFileStoreDataProfileRequest.java new file mode 100644 index 000000000000..618637667183 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteFileStoreDataProfileRequest.java @@ -0,0 +1,641 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * Request message for DeleteFileStoreProfile.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest} + */ +public final class DeleteFileStoreDataProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest) + DeleteFileStoreDataProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteFileStoreDataProfileRequest.newBuilder() to construct. + private DeleteFileStoreDataProfileRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteFileStoreDataProfileRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteFileStoreDataProfileRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DeleteFileStoreDataProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DeleteFileStoreDataProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest.class, + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
        +   * Required. Resource name of the file store data profile.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
        +   * Required. Resource name of the file store data profile.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest other = + (com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Request message for DeleteFileStoreProfile.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest) + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DeleteFileStoreDataProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DeleteFileStoreDataProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest.class, + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DeleteFileStoreDataProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest build() { + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest buildPartial() { + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest result = + new com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest) { + return mergeFrom((com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest other) { + if (other == com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
        +     * Required. Resource name of the file store data profile.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Required. Resource name of the file store data profile.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Required. Resource name of the file store data profile.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Resource name of the file store data profile.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Resource name of the file store data profile.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest) + private static final com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest(); + } + + public static com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFileStoreDataProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteFileStoreDataProfileRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteFileStoreDataProfileRequestOrBuilder.java new file mode 100644 index 000000000000..da4a09238174 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteFileStoreDataProfileRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface DeleteFileStoreDataProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. Resource name of the file store data profile.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
        +   * Required. Resource name of the file store data profile.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageConditions.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageConditions.java new file mode 100644 index 000000000000..50563420bb85 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageConditions.java @@ -0,0 +1,1936 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * Requirements that must be true before a Cloud Storage bucket or object is
        + * scanned in discovery for the first time. There is an AND relationship between
        + * the top-level attributes.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.DiscoveryCloudStorageConditions} + */ +public final class DiscoveryCloudStorageConditions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DiscoveryCloudStorageConditions) + DiscoveryCloudStorageConditionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscoveryCloudStorageConditions.newBuilder() to construct. + private DiscoveryCloudStorageConditions( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscoveryCloudStorageConditions() { + includedObjectAttributes_ = java.util.Collections.emptyList(); + includedBucketAttributes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiscoveryCloudStorageConditions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageConditions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageConditions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.class, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.Builder.class); + } + + /** + * + * + *
        +   * The attribute of an object. See
        +   * https://cloud.google.com/storage/docs/storage-classes for more information
        +   * on storage classes.
        +   * 
        + * + * Protobuf enum {@code + * google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute} + */ + public enum CloudStorageObjectAttribute implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * Unused.
        +     * 
        + * + * CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED = 0; + */ + CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED(0), + /** + * + * + *
        +     * Scan objects regardless of the attribute.
        +     * 
        + * + * ALL_SUPPORTED_OBJECTS = 1; + */ + ALL_SUPPORTED_OBJECTS(1), + /** + * + * + *
        +     * Scan objects with the standard storage class.
        +     * 
        + * + * STANDARD = 2; + */ + STANDARD(2), + /** + * + * + *
        +     * Scan objects with the nearline storage class. This will incur retrieval
        +     * fees.
        +     * 
        + * + * NEARLINE = 3; + */ + NEARLINE(3), + /** + * + * + *
        +     * Scan objects with the coldline storage class. This will incur retrieval
        +     * fees.
        +     * 
        + * + * COLDLINE = 4; + */ + COLDLINE(4), + /** + * + * + *
        +     * Scan objects with the archive storage class. This will incur retrieval
        +     * fees.
        +     * 
        + * + * ARCHIVE = 5; + */ + ARCHIVE(5), + /** + * + * + *
        +     * Scan objects with the regional storage class.
        +     * 
        + * + * REGIONAL = 6; + */ + REGIONAL(6), + /** + * + * + *
        +     * Scan objects with the multi-regional storage class.
        +     * 
        + * + * MULTI_REGIONAL = 7; + */ + MULTI_REGIONAL(7), + /** + * + * + *
        +     * Scan objects with the dual-regional storage class. This will incur
        +     * retrieval fees.
        +     * 
        + * + * DURABLE_REDUCED_AVAILABILITY = 8; + */ + DURABLE_REDUCED_AVAILABILITY(8), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * Unused.
        +     * 
        + * + * CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED = 0; + */ + public static final int CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +     * Scan objects regardless of the attribute.
        +     * 
        + * + * ALL_SUPPORTED_OBJECTS = 1; + */ + public static final int ALL_SUPPORTED_OBJECTS_VALUE = 1; + /** + * + * + *
        +     * Scan objects with the standard storage class.
        +     * 
        + * + * STANDARD = 2; + */ + public static final int STANDARD_VALUE = 2; + /** + * + * + *
        +     * Scan objects with the nearline storage class. This will incur retrieval
        +     * fees.
        +     * 
        + * + * NEARLINE = 3; + */ + public static final int NEARLINE_VALUE = 3; + /** + * + * + *
        +     * Scan objects with the coldline storage class. This will incur retrieval
        +     * fees.
        +     * 
        + * + * COLDLINE = 4; + */ + public static final int COLDLINE_VALUE = 4; + /** + * + * + *
        +     * Scan objects with the archive storage class. This will incur retrieval
        +     * fees.
        +     * 
        + * + * ARCHIVE = 5; + */ + public static final int ARCHIVE_VALUE = 5; + /** + * + * + *
        +     * Scan objects with the regional storage class.
        +     * 
        + * + * REGIONAL = 6; + */ + public static final int REGIONAL_VALUE = 6; + /** + * + * + *
        +     * Scan objects with the multi-regional storage class.
        +     * 
        + * + * MULTI_REGIONAL = 7; + */ + public static final int MULTI_REGIONAL_VALUE = 7; + /** + * + * + *
        +     * Scan objects with the dual-regional storage class. This will incur
        +     * retrieval fees.
        +     * 
        + * + * DURABLE_REDUCED_AVAILABILITY = 8; + */ + public static final int DURABLE_REDUCED_AVAILABILITY_VALUE = 8; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CloudStorageObjectAttribute valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CloudStorageObjectAttribute forNumber(int value) { + switch (value) { + case 0: + return CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED; + case 1: + return ALL_SUPPORTED_OBJECTS; + case 2: + return STANDARD; + case 3: + return NEARLINE; + case 4: + return COLDLINE; + case 5: + return ARCHIVE; + case 6: + return REGIONAL; + case 7: + return MULTI_REGIONAL; + case 8: + return DURABLE_REDUCED_AVAILABILITY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CloudStorageObjectAttribute findValueByNumber(int number) { + return CloudStorageObjectAttribute.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CloudStorageObjectAttribute[] VALUES = values(); + + public static CloudStorageObjectAttribute valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CloudStorageObjectAttribute(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute) + } + + /** + * + * + *
        +   * The attribute of a bucket.
        +   * 
        + * + * Protobuf enum {@code + * google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute} + */ + public enum CloudStorageBucketAttribute implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * Unused.
        +     * 
        + * + * CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED = 0; + */ + CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED(0), + /** + * + * + *
        +     * Scan buckets regardless of the attribute.
        +     * 
        + * + * ALL_SUPPORTED_BUCKETS = 1; + */ + ALL_SUPPORTED_BUCKETS(1), + /** + * + * + *
        +     * Buckets with autoclass disabled
        +     * (https://cloud.google.com/storage/docs/autoclass). Only one of
        +     * AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set.
        +     * 
        + * + * AUTOCLASS_DISABLED = 2; + */ + AUTOCLASS_DISABLED(2), + /** + * + * + *
        +     * Buckets with autoclass enabled
        +     * (https://cloud.google.com/storage/docs/autoclass). Only one of
        +     * AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. Scanning
        +     * Autoclass-enabled buckets can affect object storage classes.
        +     * 
        + * + * AUTOCLASS_ENABLED = 3; + */ + AUTOCLASS_ENABLED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * Unused.
        +     * 
        + * + * CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED = 0; + */ + public static final int CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +     * Scan buckets regardless of the attribute.
        +     * 
        + * + * ALL_SUPPORTED_BUCKETS = 1; + */ + public static final int ALL_SUPPORTED_BUCKETS_VALUE = 1; + /** + * + * + *
        +     * Buckets with autoclass disabled
        +     * (https://cloud.google.com/storage/docs/autoclass). Only one of
        +     * AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set.
        +     * 
        + * + * AUTOCLASS_DISABLED = 2; + */ + public static final int AUTOCLASS_DISABLED_VALUE = 2; + /** + * + * + *
        +     * Buckets with autoclass enabled
        +     * (https://cloud.google.com/storage/docs/autoclass). Only one of
        +     * AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. Scanning
        +     * Autoclass-enabled buckets can affect object storage classes.
        +     * 
        + * + * AUTOCLASS_ENABLED = 3; + */ + public static final int AUTOCLASS_ENABLED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CloudStorageBucketAttribute valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CloudStorageBucketAttribute forNumber(int value) { + switch (value) { + case 0: + return CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED; + case 1: + return ALL_SUPPORTED_BUCKETS; + case 2: + return AUTOCLASS_DISABLED; + case 3: + return AUTOCLASS_ENABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CloudStorageBucketAttribute findValueByNumber(int number) { + return CloudStorageBucketAttribute.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final CloudStorageBucketAttribute[] VALUES = values(); + + public static CloudStorageBucketAttribute valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CloudStorageBucketAttribute(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute) + } + + public static final int INCLUDED_OBJECT_ATTRIBUTES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List includedObjectAttributes_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute> + includedObjectAttributes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions + .CloudStorageObjectAttribute>() { + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions + .CloudStorageObjectAttribute + convert(java.lang.Integer from) { + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute + result = + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions + .CloudStorageObjectAttribute.forNumber(from); + return result == null + ? com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions + .CloudStorageObjectAttribute.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned. If an
        +   * object has one of the specified attributes but is inside an excluded
        +   * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +   * profile will be created even if no objects match the
        +   * included_object_attributes.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the includedObjectAttributes. + */ + @java.lang.Override + public java.util.List< + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute> + getIncludedObjectAttributesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute>( + includedObjectAttributes_, includedObjectAttributes_converter_); + } + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned. If an
        +   * object has one of the specified attributes but is inside an excluded
        +   * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +   * profile will be created even if no objects match the
        +   * included_object_attributes.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of includedObjectAttributes. + */ + @java.lang.Override + public int getIncludedObjectAttributesCount() { + return includedObjectAttributes_.size(); + } + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned. If an
        +   * object has one of the specified attributes but is inside an excluded
        +   * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +   * profile will be created even if no objects match the
        +   * included_object_attributes.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The includedObjectAttributes at the given index. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute + getIncludedObjectAttributes(int index) { + return includedObjectAttributes_converter_.convert(includedObjectAttributes_.get(index)); + } + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned. If an
        +   * object has one of the specified attributes but is inside an excluded
        +   * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +   * profile will be created even if no objects match the
        +   * included_object_attributes.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for includedObjectAttributes. + */ + @java.lang.Override + public java.util.List getIncludedObjectAttributesValueList() { + return includedObjectAttributes_; + } + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned. If an
        +   * object has one of the specified attributes but is inside an excluded
        +   * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +   * profile will be created even if no objects match the
        +   * included_object_attributes.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of includedObjectAttributes at the given index. + */ + @java.lang.Override + public int getIncludedObjectAttributesValue(int index) { + return includedObjectAttributes_.get(index); + } + + private int includedObjectAttributesMemoizedSerializedSize; + + public static final int INCLUDED_BUCKET_ATTRIBUTES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List includedBucketAttributes_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute> + includedBucketAttributes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions + .CloudStorageBucketAttribute>() { + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions + .CloudStorageBucketAttribute + convert(java.lang.Integer from) { + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute + result = + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions + .CloudStorageBucketAttribute.forNumber(from); + return result == null + ? com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions + .CloudStorageBucketAttribute.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned.
        +   * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the includedBucketAttributes. + */ + @java.lang.Override + public java.util.List< + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute> + getIncludedBucketAttributesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute>( + includedBucketAttributes_, includedBucketAttributes_converter_); + } + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned.
        +   * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of includedBucketAttributes. + */ + @java.lang.Override + public int getIncludedBucketAttributesCount() { + return includedBucketAttributes_.size(); + } + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned.
        +   * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The includedBucketAttributes at the given index. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute + getIncludedBucketAttributes(int index) { + return includedBucketAttributes_converter_.convert(includedBucketAttributes_.get(index)); + } + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned.
        +   * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for includedBucketAttributes. + */ + @java.lang.Override + public java.util.List getIncludedBucketAttributesValueList() { + return includedBucketAttributes_; + } + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned.
        +   * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of includedBucketAttributes at the given index. + */ + @java.lang.Override + public int getIncludedBucketAttributesValue(int index) { + return includedBucketAttributes_.get(index); + } + + private int includedBucketAttributesMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getIncludedObjectAttributesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(includedObjectAttributesMemoizedSerializedSize); + } + for (int i = 0; i < includedObjectAttributes_.size(); i++) { + output.writeEnumNoTag(includedObjectAttributes_.get(i)); + } + if (getIncludedBucketAttributesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(includedBucketAttributesMemoizedSerializedSize); + } + for (int i = 0; i < includedBucketAttributes_.size(); i++) { + output.writeEnumNoTag(includedBucketAttributes_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < includedObjectAttributes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + includedObjectAttributes_.get(i)); + } + size += dataSize; + if (!getIncludedObjectAttributesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + includedObjectAttributesMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < includedBucketAttributes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + includedBucketAttributes_.get(i)); + } + size += dataSize; + if (!getIncludedBucketAttributesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + includedBucketAttributesMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions other = + (com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions) obj; + + if (!includedObjectAttributes_.equals(other.includedObjectAttributes_)) return false; + if (!includedBucketAttributes_.equals(other.includedBucketAttributes_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getIncludedObjectAttributesCount() > 0) { + hash = (37 * hash) + INCLUDED_OBJECT_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + includedObjectAttributes_.hashCode(); + } + if (getIncludedBucketAttributesCount() > 0) { + hash = (37 * hash) + INCLUDED_BUCKET_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + includedBucketAttributes_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Requirements that must be true before a Cloud Storage bucket or object is
        +   * scanned in discovery for the first time. There is an AND relationship between
        +   * the top-level attributes.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.DiscoveryCloudStorageConditions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DiscoveryCloudStorageConditions) + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageConditions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageConditions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.class, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + includedObjectAttributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + includedBucketAttributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageConditions_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions build() { + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions buildPartial() { + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions result = + new com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions result) { + if (((bitField0_ & 0x00000001) != 0)) { + includedObjectAttributes_ = + java.util.Collections.unmodifiableList(includedObjectAttributes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.includedObjectAttributes_ = includedObjectAttributes_; + if (((bitField0_ & 0x00000002) != 0)) { + includedBucketAttributes_ = + java.util.Collections.unmodifiableList(includedBucketAttributes_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.includedBucketAttributes_ = includedBucketAttributes_; + } + + private void buildPartial0(com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions) { + return mergeFrom((com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions other) { + if (other == com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.getDefaultInstance()) + return this; + if (!other.includedObjectAttributes_.isEmpty()) { + if (includedObjectAttributes_.isEmpty()) { + includedObjectAttributes_ = other.includedObjectAttributes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIncludedObjectAttributesIsMutable(); + includedObjectAttributes_.addAll(other.includedObjectAttributes_); + } + onChanged(); + } + if (!other.includedBucketAttributes_.isEmpty()) { + if (includedBucketAttributes_.isEmpty()) { + includedBucketAttributes_ = other.includedBucketAttributes_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIncludedBucketAttributesIsMutable(); + includedBucketAttributes_.addAll(other.includedBucketAttributes_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int tmpRaw = input.readEnum(); + ensureIncludedObjectAttributesIsMutable(); + includedObjectAttributes_.add(tmpRaw); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureIncludedObjectAttributesIsMutable(); + includedObjectAttributes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + case 16: + { + int tmpRaw = input.readEnum(); + ensureIncludedBucketAttributesIsMutable(); + includedBucketAttributes_.add(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureIncludedBucketAttributesIsMutable(); + includedBucketAttributes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List includedObjectAttributes_ = + java.util.Collections.emptyList(); + + private void ensureIncludedObjectAttributesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + includedObjectAttributes_ = + new java.util.ArrayList(includedObjectAttributes_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned. If an
        +     * object has one of the specified attributes but is inside an excluded
        +     * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +     * profile will be created even if no objects match the
        +     * included_object_attributes.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the includedObjectAttributes. + */ + public java.util.List< + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute> + getIncludedObjectAttributesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute>( + includedObjectAttributes_, includedObjectAttributes_converter_); + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned. If an
        +     * object has one of the specified attributes but is inside an excluded
        +     * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +     * profile will be created even if no objects match the
        +     * included_object_attributes.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of includedObjectAttributes. + */ + public int getIncludedObjectAttributesCount() { + return includedObjectAttributes_.size(); + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned. If an
        +     * object has one of the specified attributes but is inside an excluded
        +     * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +     * profile will be created even if no objects match the
        +     * included_object_attributes.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The includedObjectAttributes at the given index. + */ + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute + getIncludedObjectAttributes(int index) { + return includedObjectAttributes_converter_.convert(includedObjectAttributes_.get(index)); + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned. If an
        +     * object has one of the specified attributes but is inside an excluded
        +     * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +     * profile will be created even if no objects match the
        +     * included_object_attributes.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The includedObjectAttributes to set. + * @return This builder for chaining. + */ + public Builder setIncludedObjectAttributes( + int index, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute + value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedObjectAttributesIsMutable(); + includedObjectAttributes_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned. If an
        +     * object has one of the specified attributes but is inside an excluded
        +     * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +     * profile will be created even if no objects match the
        +     * included_object_attributes.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The includedObjectAttributes to add. + * @return This builder for chaining. + */ + public Builder addIncludedObjectAttributes( + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute + value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedObjectAttributesIsMutable(); + includedObjectAttributes_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned. If an
        +     * object has one of the specified attributes but is inside an excluded
        +     * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +     * profile will be created even if no objects match the
        +     * included_object_attributes.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The includedObjectAttributes to add. + * @return This builder for chaining. + */ + public Builder addAllIncludedObjectAttributes( + java.lang.Iterable< + ? extends + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions + .CloudStorageObjectAttribute> + values) { + ensureIncludedObjectAttributesIsMutable(); + for (com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute + value : values) { + includedObjectAttributes_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned. If an
        +     * object has one of the specified attributes but is inside an excluded
        +     * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +     * profile will be created even if no objects match the
        +     * included_object_attributes.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludedObjectAttributes() { + includedObjectAttributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned. If an
        +     * object has one of the specified attributes but is inside an excluded
        +     * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +     * profile will be created even if no objects match the
        +     * included_object_attributes.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for includedObjectAttributes. + */ + public java.util.List getIncludedObjectAttributesValueList() { + return java.util.Collections.unmodifiableList(includedObjectAttributes_); + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned. If an
        +     * object has one of the specified attributes but is inside an excluded
        +     * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +     * profile will be created even if no objects match the
        +     * included_object_attributes.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of includedObjectAttributes at the given index. + */ + public int getIncludedObjectAttributesValue(int index) { + return includedObjectAttributes_.get(index); + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned. If an
        +     * object has one of the specified attributes but is inside an excluded
        +     * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +     * profile will be created even if no objects match the
        +     * included_object_attributes.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for includedObjectAttributes to set. + * @return This builder for chaining. + */ + public Builder setIncludedObjectAttributesValue(int index, int value) { + ensureIncludedObjectAttributesIsMutable(); + includedObjectAttributes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned. If an
        +     * object has one of the specified attributes but is inside an excluded
        +     * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +     * profile will be created even if no objects match the
        +     * included_object_attributes.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for includedObjectAttributes to add. + * @return This builder for chaining. + */ + public Builder addIncludedObjectAttributesValue(int value) { + ensureIncludedObjectAttributesIsMutable(); + includedObjectAttributes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned. If an
        +     * object has one of the specified attributes but is inside an excluded
        +     * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +     * profile will be created even if no objects match the
        +     * included_object_attributes.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The enum numeric values on the wire for includedObjectAttributes to add. + * @return This builder for chaining. + */ + public Builder addAllIncludedObjectAttributesValue( + java.lang.Iterable values) { + ensureIncludedObjectAttributesIsMutable(); + for (int value : values) { + includedObjectAttributes_.add(value); + } + onChanged(); + return this; + } + + private java.util.List includedBucketAttributes_ = + java.util.Collections.emptyList(); + + private void ensureIncludedBucketAttributesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + includedBucketAttributes_ = + new java.util.ArrayList(includedBucketAttributes_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned.
        +     * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the includedBucketAttributes. + */ + public java.util.List< + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute> + getIncludedBucketAttributesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute>( + includedBucketAttributes_, includedBucketAttributes_converter_); + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned.
        +     * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of includedBucketAttributes. + */ + public int getIncludedBucketAttributesCount() { + return includedBucketAttributes_.size(); + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned.
        +     * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The includedBucketAttributes at the given index. + */ + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute + getIncludedBucketAttributes(int index) { + return includedBucketAttributes_converter_.convert(includedBucketAttributes_.get(index)); + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned.
        +     * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The includedBucketAttributes to set. + * @return This builder for chaining. + */ + public Builder setIncludedBucketAttributes( + int index, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute + value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedBucketAttributesIsMutable(); + includedBucketAttributes_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned.
        +     * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The includedBucketAttributes to add. + * @return This builder for chaining. + */ + public Builder addIncludedBucketAttributes( + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute + value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedBucketAttributesIsMutable(); + includedBucketAttributes_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned.
        +     * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The includedBucketAttributes to add. + * @return This builder for chaining. + */ + public Builder addAllIncludedBucketAttributes( + java.lang.Iterable< + ? extends + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions + .CloudStorageBucketAttribute> + values) { + ensureIncludedBucketAttributesIsMutable(); + for (com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute + value : values) { + includedBucketAttributes_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned.
        +     * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludedBucketAttributes() { + includedBucketAttributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned.
        +     * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for includedBucketAttributes. + */ + public java.util.List getIncludedBucketAttributesValueList() { + return java.util.Collections.unmodifiableList(includedBucketAttributes_); + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned.
        +     * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of includedBucketAttributes at the given index. + */ + public int getIncludedBucketAttributesValue(int index) { + return includedBucketAttributes_.get(index); + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned.
        +     * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for includedBucketAttributes to set. + * @return This builder for chaining. + */ + public Builder setIncludedBucketAttributesValue(int index, int value) { + ensureIncludedBucketAttributesIsMutable(); + includedBucketAttributes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned.
        +     * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for includedBucketAttributes to add. + * @return This builder for chaining. + */ + public Builder addIncludedBucketAttributesValue(int value) { + ensureIncludedBucketAttributesIsMutable(); + includedBucketAttributes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Only objects with the specified attributes will be scanned.
        +     * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The enum numeric values on the wire for includedBucketAttributes to add. + * @return This builder for chaining. + */ + public Builder addAllIncludedBucketAttributesValue( + java.lang.Iterable values) { + ensureIncludedBucketAttributesIsMutable(); + for (int value : values) { + includedBucketAttributes_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DiscoveryCloudStorageConditions) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DiscoveryCloudStorageConditions) + private static final com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions(); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoveryCloudStorageConditions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageConditionsOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageConditionsOrBuilder.java new file mode 100644 index 000000000000..66f298f5767a --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageConditionsOrBuilder.java @@ -0,0 +1,203 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface DiscoveryCloudStorageConditionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DiscoveryCloudStorageConditions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned. If an
        +   * object has one of the specified attributes but is inside an excluded
        +   * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +   * profile will be created even if no objects match the
        +   * included_object_attributes.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the includedObjectAttributes. + */ + java.util.List< + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute> + getIncludedObjectAttributesList(); + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned. If an
        +   * object has one of the specified attributes but is inside an excluded
        +   * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +   * profile will be created even if no objects match the
        +   * included_object_attributes.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of includedObjectAttributes. + */ + int getIncludedObjectAttributesCount(); + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned. If an
        +   * object has one of the specified attributes but is inside an excluded
        +   * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +   * profile will be created even if no objects match the
        +   * included_object_attributes.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The includedObjectAttributes at the given index. + */ + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute + getIncludedObjectAttributes(int index); + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned. If an
        +   * object has one of the specified attributes but is inside an excluded
        +   * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +   * profile will be created even if no objects match the
        +   * included_object_attributes.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for includedObjectAttributes. + */ + java.util.List getIncludedObjectAttributesValueList(); + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned. If an
        +   * object has one of the specified attributes but is inside an excluded
        +   * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
        +   * profile will be created even if no objects match the
        +   * included_object_attributes.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of includedObjectAttributes at the given index. + */ + int getIncludedObjectAttributesValue(int index); + + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned.
        +   * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the includedBucketAttributes. + */ + java.util.List< + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute> + getIncludedBucketAttributesList(); + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned.
        +   * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of includedBucketAttributes. + */ + int getIncludedBucketAttributesCount(); + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned.
        +   * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The includedBucketAttributes at the given index. + */ + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute + getIncludedBucketAttributes(int index); + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned.
        +   * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for includedBucketAttributes. + */ + java.util.List getIncludedBucketAttributesValueList(); + /** + * + * + *
        +   * Required. Only objects with the specified attributes will be scanned.
        +   * Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of includedBucketAttributes at the given index. + */ + int getIncludedBucketAttributesValue(int index); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageFilter.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageFilter.java new file mode 100644 index 000000000000..4d3a91cd5029 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageFilter.java @@ -0,0 +1,1565 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * Determines which buckets will have profiles generated within an organization
        + * or project. Includes the ability to filter by regular expression patterns
        + * on project ID and bucket name.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.DiscoveryCloudStorageFilter} + */ +public final class DiscoveryCloudStorageFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DiscoveryCloudStorageFilter) + DiscoveryCloudStorageFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscoveryCloudStorageFilter.newBuilder() to construct. + private DiscoveryCloudStorageFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscoveryCloudStorageFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiscoveryCloudStorageFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.class, + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.Builder.class); + } + + private int filterCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object filter_; + + public enum FilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + COLLECTION(1), + CLOUD_STORAGE_RESOURCE_REFERENCE(2), + OTHERS(100), + FILTER_NOT_SET(0); + private final int value; + + private FilterCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FilterCase valueOf(int value) { + return forNumber(value); + } + + public static FilterCase forNumber(int value) { + switch (value) { + case 1: + return COLLECTION; + case 2: + return CLOUD_STORAGE_RESOURCE_REFERENCE; + case 100: + return OTHERS; + case 0: + return FILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FilterCase getFilterCase() { + return FilterCase.forNumber(filterCase_); + } + + public static final int COLLECTION_FIELD_NUMBER = 1; + /** + * + * + *
        +   * Optional. A specific set of buckets for this filter to apply to.
        +   * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the collection field is set. + */ + @java.lang.Override + public boolean hasCollection() { + return filterCase_ == 1; + } + /** + * + * + *
        +   * Optional. A specific set of buckets for this filter to apply to.
        +   * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The collection. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreCollection getCollection() { + if (filterCase_ == 1) { + return (com.google.privacy.dlp.v2.FileStoreCollection) filter_; + } + return com.google.privacy.dlp.v2.FileStoreCollection.getDefaultInstance(); + } + /** + * + * + *
        +   * Optional. A specific set of buckets for this filter to apply to.
        +   * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreCollectionOrBuilder getCollectionOrBuilder() { + if (filterCase_ == 1) { + return (com.google.privacy.dlp.v2.FileStoreCollection) filter_; + } + return com.google.privacy.dlp.v2.FileStoreCollection.getDefaultInstance(); + } + + public static final int CLOUD_STORAGE_RESOURCE_REFERENCE_FIELD_NUMBER = 2; + /** + * + * + *
        +   * Optional. The bucket to scan. Targets including this can only include one
        +   * target (the target with this bucket). This enables profiling the contents
        +   * of a single bucket, while the other options allow for easy profiling of
        +   * many bucets within a project or an organization.
        +   * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageResourceReference field is set. + */ + @java.lang.Override + public boolean hasCloudStorageResourceReference() { + return filterCase_ == 2; + } + /** + * + * + *
        +   * Optional. The bucket to scan. Targets including this can only include one
        +   * target (the target with this bucket). This enables profiling the contents
        +   * of a single bucket, while the other options allow for easy profiling of
        +   * many bucets within a project or an organization.
        +   * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageResourceReference. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageResourceReference + getCloudStorageResourceReference() { + if (filterCase_ == 2) { + return (com.google.privacy.dlp.v2.CloudStorageResourceReference) filter_; + } + return com.google.privacy.dlp.v2.CloudStorageResourceReference.getDefaultInstance(); + } + /** + * + * + *
        +   * Optional. The bucket to scan. Targets including this can only include one
        +   * target (the target with this bucket). This enables profiling the contents
        +   * of a single bucket, while the other options allow for easy profiling of
        +   * many bucets within a project or an organization.
        +   * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageResourceReferenceOrBuilder + getCloudStorageResourceReferenceOrBuilder() { + if (filterCase_ == 2) { + return (com.google.privacy.dlp.v2.CloudStorageResourceReference) filter_; + } + return com.google.privacy.dlp.v2.CloudStorageResourceReference.getDefaultInstance(); + } + + public static final int OTHERS_FIELD_NUMBER = 100; + /** + * + * + *
        +   * Optional. Catch-all. This should always be the last target in the list
        +   * because anything above it will apply first. Should only appear once in a
        +   * configuration. If none is specified, a default one will be added
        +   * automatically.
        +   * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the others field is set. + */ + @java.lang.Override + public boolean hasOthers() { + return filterCase_ == 100; + } + /** + * + * + *
        +   * Optional. Catch-all. This should always be the last target in the list
        +   * because anything above it will apply first. Should only appear once in a
        +   * configuration. If none is specified, a default one will be added
        +   * automatically.
        +   * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The others. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.AllOtherResources getOthers() { + if (filterCase_ == 100) { + return (com.google.privacy.dlp.v2.AllOtherResources) filter_; + } + return com.google.privacy.dlp.v2.AllOtherResources.getDefaultInstance(); + } + /** + * + * + *
        +   * Optional. Catch-all. This should always be the last target in the list
        +   * because anything above it will apply first. Should only appear once in a
        +   * configuration. If none is specified, a default one will be added
        +   * automatically.
        +   * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.AllOtherResourcesOrBuilder getOthersOrBuilder() { + if (filterCase_ == 100) { + return (com.google.privacy.dlp.v2.AllOtherResources) filter_; + } + return com.google.privacy.dlp.v2.AllOtherResources.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (filterCase_ == 1) { + output.writeMessage(1, (com.google.privacy.dlp.v2.FileStoreCollection) filter_); + } + if (filterCase_ == 2) { + output.writeMessage(2, (com.google.privacy.dlp.v2.CloudStorageResourceReference) filter_); + } + if (filterCase_ == 100) { + output.writeMessage(100, (com.google.privacy.dlp.v2.AllOtherResources) filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filterCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.privacy.dlp.v2.FileStoreCollection) filter_); + } + if (filterCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.privacy.dlp.v2.CloudStorageResourceReference) filter_); + } + if (filterCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.privacy.dlp.v2.AllOtherResources) filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter other = + (com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter) obj; + + if (!getFilterCase().equals(other.getFilterCase())) return false; + switch (filterCase_) { + case 1: + if (!getCollection().equals(other.getCollection())) return false; + break; + case 2: + if (!getCloudStorageResourceReference().equals(other.getCloudStorageResourceReference())) + return false; + break; + case 100: + if (!getOthers().equals(other.getOthers())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (filterCase_) { + case 1: + hash = (37 * hash) + COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getCollection().hashCode(); + break; + case 2: + hash = (37 * hash) + CLOUD_STORAGE_RESOURCE_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getCloudStorageResourceReference().hashCode(); + break; + case 100: + hash = (37 * hash) + OTHERS_FIELD_NUMBER; + hash = (53 * hash) + getOthers().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Determines which buckets will have profiles generated within an organization
        +   * or project. Includes the ability to filter by regular expression patterns
        +   * on project ID and bucket name.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.DiscoveryCloudStorageFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DiscoveryCloudStorageFilter) + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.class, + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (collectionBuilder_ != null) { + collectionBuilder_.clear(); + } + if (cloudStorageResourceReferenceBuilder_ != null) { + cloudStorageResourceReferenceBuilder_.clear(); + } + if (othersBuilder_ != null) { + othersBuilder_.clear(); + } + filterCase_ = 0; + filter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageFilter_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter build() { + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter buildPartial() { + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter result = + new com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter result) { + result.filterCase_ = filterCase_; + result.filter_ = this.filter_; + if (filterCase_ == 1 && collectionBuilder_ != null) { + result.filter_ = collectionBuilder_.build(); + } + if (filterCase_ == 2 && cloudStorageResourceReferenceBuilder_ != null) { + result.filter_ = cloudStorageResourceReferenceBuilder_.build(); + } + if (filterCase_ == 100 && othersBuilder_ != null) { + result.filter_ = othersBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter) { + return mergeFrom((com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter other) { + if (other == com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.getDefaultInstance()) + return this; + switch (other.getFilterCase()) { + case COLLECTION: + { + mergeCollection(other.getCollection()); + break; + } + case CLOUD_STORAGE_RESOURCE_REFERENCE: + { + mergeCloudStorageResourceReference(other.getCloudStorageResourceReference()); + break; + } + case OTHERS: + { + mergeOthers(other.getOthers()); + break; + } + case FILTER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCollectionFieldBuilder().getBuilder(), extensionRegistry); + filterCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getCloudStorageResourceReferenceFieldBuilder().getBuilder(), extensionRegistry); + filterCase_ = 2; + break; + } // case 18 + case 802: + { + input.readMessage(getOthersFieldBuilder().getBuilder(), extensionRegistry); + filterCase_ = 100; + break; + } // case 802 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int filterCase_ = 0; + private java.lang.Object filter_; + + public FilterCase getFilterCase() { + return FilterCase.forNumber(filterCase_); + } + + public Builder clearFilter() { + filterCase_ = 0; + filter_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreCollection, + com.google.privacy.dlp.v2.FileStoreCollection.Builder, + com.google.privacy.dlp.v2.FileStoreCollectionOrBuilder> + collectionBuilder_; + /** + * + * + *
        +     * Optional. A specific set of buckets for this filter to apply to.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the collection field is set. + */ + @java.lang.Override + public boolean hasCollection() { + return filterCase_ == 1; + } + /** + * + * + *
        +     * Optional. A specific set of buckets for this filter to apply to.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The collection. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreCollection getCollection() { + if (collectionBuilder_ == null) { + if (filterCase_ == 1) { + return (com.google.privacy.dlp.v2.FileStoreCollection) filter_; + } + return com.google.privacy.dlp.v2.FileStoreCollection.getDefaultInstance(); + } else { + if (filterCase_ == 1) { + return collectionBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.FileStoreCollection.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. A specific set of buckets for this filter to apply to.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCollection(com.google.privacy.dlp.v2.FileStoreCollection value) { + if (collectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + collectionBuilder_.setMessage(value); + } + filterCase_ = 1; + return this; + } + /** + * + * + *
        +     * Optional. A specific set of buckets for this filter to apply to.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCollection( + com.google.privacy.dlp.v2.FileStoreCollection.Builder builderForValue) { + if (collectionBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + collectionBuilder_.setMessage(builderForValue.build()); + } + filterCase_ = 1; + return this; + } + /** + * + * + *
        +     * Optional. A specific set of buckets for this filter to apply to.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCollection(com.google.privacy.dlp.v2.FileStoreCollection value) { + if (collectionBuilder_ == null) { + if (filterCase_ == 1 + && filter_ != com.google.privacy.dlp.v2.FileStoreCollection.getDefaultInstance()) { + filter_ = + com.google.privacy.dlp.v2.FileStoreCollection.newBuilder( + (com.google.privacy.dlp.v2.FileStoreCollection) filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + if (filterCase_ == 1) { + collectionBuilder_.mergeFrom(value); + } else { + collectionBuilder_.setMessage(value); + } + } + filterCase_ = 1; + return this; + } + /** + * + * + *
        +     * Optional. A specific set of buckets for this filter to apply to.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCollection() { + if (collectionBuilder_ == null) { + if (filterCase_ == 1) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + } else { + if (filterCase_ == 1) { + filterCase_ = 0; + filter_ = null; + } + collectionBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Optional. A specific set of buckets for this filter to apply to.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.privacy.dlp.v2.FileStoreCollection.Builder getCollectionBuilder() { + return getCollectionFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. A specific set of buckets for this filter to apply to.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreCollectionOrBuilder getCollectionOrBuilder() { + if ((filterCase_ == 1) && (collectionBuilder_ != null)) { + return collectionBuilder_.getMessageOrBuilder(); + } else { + if (filterCase_ == 1) { + return (com.google.privacy.dlp.v2.FileStoreCollection) filter_; + } + return com.google.privacy.dlp.v2.FileStoreCollection.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. A specific set of buckets for this filter to apply to.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreCollection, + com.google.privacy.dlp.v2.FileStoreCollection.Builder, + com.google.privacy.dlp.v2.FileStoreCollectionOrBuilder> + getCollectionFieldBuilder() { + if (collectionBuilder_ == null) { + if (!(filterCase_ == 1)) { + filter_ = com.google.privacy.dlp.v2.FileStoreCollection.getDefaultInstance(); + } + collectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreCollection, + com.google.privacy.dlp.v2.FileStoreCollection.Builder, + com.google.privacy.dlp.v2.FileStoreCollectionOrBuilder>( + (com.google.privacy.dlp.v2.FileStoreCollection) filter_, + getParentForChildren(), + isClean()); + filter_ = null; + } + filterCase_ = 1; + onChanged(); + return collectionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CloudStorageResourceReference, + com.google.privacy.dlp.v2.CloudStorageResourceReference.Builder, + com.google.privacy.dlp.v2.CloudStorageResourceReferenceOrBuilder> + cloudStorageResourceReferenceBuilder_; + /** + * + * + *
        +     * Optional. The bucket to scan. Targets including this can only include one
        +     * target (the target with this bucket). This enables profiling the contents
        +     * of a single bucket, while the other options allow for easy profiling of
        +     * many bucets within a project or an organization.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageResourceReference field is set. + */ + @java.lang.Override + public boolean hasCloudStorageResourceReference() { + return filterCase_ == 2; + } + /** + * + * + *
        +     * Optional. The bucket to scan. Targets including this can only include one
        +     * target (the target with this bucket). This enables profiling the contents
        +     * of a single bucket, while the other options allow for easy profiling of
        +     * many bucets within a project or an organization.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageResourceReference. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageResourceReference + getCloudStorageResourceReference() { + if (cloudStorageResourceReferenceBuilder_ == null) { + if (filterCase_ == 2) { + return (com.google.privacy.dlp.v2.CloudStorageResourceReference) filter_; + } + return com.google.privacy.dlp.v2.CloudStorageResourceReference.getDefaultInstance(); + } else { + if (filterCase_ == 2) { + return cloudStorageResourceReferenceBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.CloudStorageResourceReference.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. The bucket to scan. Targets including this can only include one
        +     * target (the target with this bucket). This enables profiling the contents
        +     * of a single bucket, while the other options allow for easy profiling of
        +     * many bucets within a project or an organization.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorageResourceReference( + com.google.privacy.dlp.v2.CloudStorageResourceReference value) { + if (cloudStorageResourceReferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + cloudStorageResourceReferenceBuilder_.setMessage(value); + } + filterCase_ = 2; + return this; + } + /** + * + * + *
        +     * Optional. The bucket to scan. Targets including this can only include one
        +     * target (the target with this bucket). This enables profiling the contents
        +     * of a single bucket, while the other options allow for easy profiling of
        +     * many bucets within a project or an organization.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorageResourceReference( + com.google.privacy.dlp.v2.CloudStorageResourceReference.Builder builderForValue) { + if (cloudStorageResourceReferenceBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + cloudStorageResourceReferenceBuilder_.setMessage(builderForValue.build()); + } + filterCase_ = 2; + return this; + } + /** + * + * + *
        +     * Optional. The bucket to scan. Targets including this can only include one
        +     * target (the target with this bucket). This enables profiling the contents
        +     * of a single bucket, while the other options allow for easy profiling of
        +     * many bucets within a project or an organization.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCloudStorageResourceReference( + com.google.privacy.dlp.v2.CloudStorageResourceReference value) { + if (cloudStorageResourceReferenceBuilder_ == null) { + if (filterCase_ == 2 + && filter_ + != com.google.privacy.dlp.v2.CloudStorageResourceReference.getDefaultInstance()) { + filter_ = + com.google.privacy.dlp.v2.CloudStorageResourceReference.newBuilder( + (com.google.privacy.dlp.v2.CloudStorageResourceReference) filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + if (filterCase_ == 2) { + cloudStorageResourceReferenceBuilder_.mergeFrom(value); + } else { + cloudStorageResourceReferenceBuilder_.setMessage(value); + } + } + filterCase_ = 2; + return this; + } + /** + * + * + *
        +     * Optional. The bucket to scan. Targets including this can only include one
        +     * target (the target with this bucket). This enables profiling the contents
        +     * of a single bucket, while the other options allow for easy profiling of
        +     * many bucets within a project or an organization.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudStorageResourceReference() { + if (cloudStorageResourceReferenceBuilder_ == null) { + if (filterCase_ == 2) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + } else { + if (filterCase_ == 2) { + filterCase_ = 0; + filter_ = null; + } + cloudStorageResourceReferenceBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Optional. The bucket to scan. Targets including this can only include one
        +     * target (the target with this bucket). This enables profiling the contents
        +     * of a single bucket, while the other options allow for easy profiling of
        +     * many bucets within a project or an organization.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.privacy.dlp.v2.CloudStorageResourceReference.Builder + getCloudStorageResourceReferenceBuilder() { + return getCloudStorageResourceReferenceFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. The bucket to scan. Targets including this can only include one
        +     * target (the target with this bucket). This enables profiling the contents
        +     * of a single bucket, while the other options allow for easy profiling of
        +     * many bucets within a project or an organization.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageResourceReferenceOrBuilder + getCloudStorageResourceReferenceOrBuilder() { + if ((filterCase_ == 2) && (cloudStorageResourceReferenceBuilder_ != null)) { + return cloudStorageResourceReferenceBuilder_.getMessageOrBuilder(); + } else { + if (filterCase_ == 2) { + return (com.google.privacy.dlp.v2.CloudStorageResourceReference) filter_; + } + return com.google.privacy.dlp.v2.CloudStorageResourceReference.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. The bucket to scan. Targets including this can only include one
        +     * target (the target with this bucket). This enables profiling the contents
        +     * of a single bucket, while the other options allow for easy profiling of
        +     * many bucets within a project or an organization.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CloudStorageResourceReference, + com.google.privacy.dlp.v2.CloudStorageResourceReference.Builder, + com.google.privacy.dlp.v2.CloudStorageResourceReferenceOrBuilder> + getCloudStorageResourceReferenceFieldBuilder() { + if (cloudStorageResourceReferenceBuilder_ == null) { + if (!(filterCase_ == 2)) { + filter_ = com.google.privacy.dlp.v2.CloudStorageResourceReference.getDefaultInstance(); + } + cloudStorageResourceReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CloudStorageResourceReference, + com.google.privacy.dlp.v2.CloudStorageResourceReference.Builder, + com.google.privacy.dlp.v2.CloudStorageResourceReferenceOrBuilder>( + (com.google.privacy.dlp.v2.CloudStorageResourceReference) filter_, + getParentForChildren(), + isClean()); + filter_ = null; + } + filterCase_ = 2; + onChanged(); + return cloudStorageResourceReferenceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.AllOtherResources, + com.google.privacy.dlp.v2.AllOtherResources.Builder, + com.google.privacy.dlp.v2.AllOtherResourcesOrBuilder> + othersBuilder_; + /** + * + * + *
        +     * Optional. Catch-all. This should always be the last target in the list
        +     * because anything above it will apply first. Should only appear once in a
        +     * configuration. If none is specified, a default one will be added
        +     * automatically.
        +     * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the others field is set. + */ + @java.lang.Override + public boolean hasOthers() { + return filterCase_ == 100; + } + /** + * + * + *
        +     * Optional. Catch-all. This should always be the last target in the list
        +     * because anything above it will apply first. Should only appear once in a
        +     * configuration. If none is specified, a default one will be added
        +     * automatically.
        +     * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The others. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.AllOtherResources getOthers() { + if (othersBuilder_ == null) { + if (filterCase_ == 100) { + return (com.google.privacy.dlp.v2.AllOtherResources) filter_; + } + return com.google.privacy.dlp.v2.AllOtherResources.getDefaultInstance(); + } else { + if (filterCase_ == 100) { + return othersBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.AllOtherResources.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. Catch-all. This should always be the last target in the list
        +     * because anything above it will apply first. Should only appear once in a
        +     * configuration. If none is specified, a default one will be added
        +     * automatically.
        +     * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOthers(com.google.privacy.dlp.v2.AllOtherResources value) { + if (othersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + othersBuilder_.setMessage(value); + } + filterCase_ = 100; + return this; + } + /** + * + * + *
        +     * Optional. Catch-all. This should always be the last target in the list
        +     * because anything above it will apply first. Should only appear once in a
        +     * configuration. If none is specified, a default one will be added
        +     * automatically.
        +     * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOthers(com.google.privacy.dlp.v2.AllOtherResources.Builder builderForValue) { + if (othersBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + othersBuilder_.setMessage(builderForValue.build()); + } + filterCase_ = 100; + return this; + } + /** + * + * + *
        +     * Optional. Catch-all. This should always be the last target in the list
        +     * because anything above it will apply first. Should only appear once in a
        +     * configuration. If none is specified, a default one will be added
        +     * automatically.
        +     * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOthers(com.google.privacy.dlp.v2.AllOtherResources value) { + if (othersBuilder_ == null) { + if (filterCase_ == 100 + && filter_ != com.google.privacy.dlp.v2.AllOtherResources.getDefaultInstance()) { + filter_ = + com.google.privacy.dlp.v2.AllOtherResources.newBuilder( + (com.google.privacy.dlp.v2.AllOtherResources) filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + if (filterCase_ == 100) { + othersBuilder_.mergeFrom(value); + } else { + othersBuilder_.setMessage(value); + } + } + filterCase_ = 100; + return this; + } + /** + * + * + *
        +     * Optional. Catch-all. This should always be the last target in the list
        +     * because anything above it will apply first. Should only appear once in a
        +     * configuration. If none is specified, a default one will be added
        +     * automatically.
        +     * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOthers() { + if (othersBuilder_ == null) { + if (filterCase_ == 100) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + } else { + if (filterCase_ == 100) { + filterCase_ = 0; + filter_ = null; + } + othersBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Optional. Catch-all. This should always be the last target in the list
        +     * because anything above it will apply first. Should only appear once in a
        +     * configuration. If none is specified, a default one will be added
        +     * automatically.
        +     * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.privacy.dlp.v2.AllOtherResources.Builder getOthersBuilder() { + return getOthersFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Catch-all. This should always be the last target in the list
        +     * because anything above it will apply first. Should only appear once in a
        +     * configuration. If none is specified, a default one will be added
        +     * automatically.
        +     * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.AllOtherResourcesOrBuilder getOthersOrBuilder() { + if ((filterCase_ == 100) && (othersBuilder_ != null)) { + return othersBuilder_.getMessageOrBuilder(); + } else { + if (filterCase_ == 100) { + return (com.google.privacy.dlp.v2.AllOtherResources) filter_; + } + return com.google.privacy.dlp.v2.AllOtherResources.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. Catch-all. This should always be the last target in the list
        +     * because anything above it will apply first. Should only appear once in a
        +     * configuration. If none is specified, a default one will be added
        +     * automatically.
        +     * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.AllOtherResources, + com.google.privacy.dlp.v2.AllOtherResources.Builder, + com.google.privacy.dlp.v2.AllOtherResourcesOrBuilder> + getOthersFieldBuilder() { + if (othersBuilder_ == null) { + if (!(filterCase_ == 100)) { + filter_ = com.google.privacy.dlp.v2.AllOtherResources.getDefaultInstance(); + } + othersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.AllOtherResources, + com.google.privacy.dlp.v2.AllOtherResources.Builder, + com.google.privacy.dlp.v2.AllOtherResourcesOrBuilder>( + (com.google.privacy.dlp.v2.AllOtherResources) filter_, + getParentForChildren(), + isClean()); + filter_ = null; + } + filterCase_ = 100; + onChanged(); + return othersBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DiscoveryCloudStorageFilter) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DiscoveryCloudStorageFilter) + private static final com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter(); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoveryCloudStorageFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageFilterOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageFilterOrBuilder.java new file mode 100644 index 000000000000..ea0cfeeca18b --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageFilterOrBuilder.java @@ -0,0 +1,170 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface DiscoveryCloudStorageFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DiscoveryCloudStorageFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. A specific set of buckets for this filter to apply to.
        +   * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the collection field is set. + */ + boolean hasCollection(); + /** + * + * + *
        +   * Optional. A specific set of buckets for this filter to apply to.
        +   * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The collection. + */ + com.google.privacy.dlp.v2.FileStoreCollection getCollection(); + /** + * + * + *
        +   * Optional. A specific set of buckets for this filter to apply to.
        +   * 
        + * + * + * .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.privacy.dlp.v2.FileStoreCollectionOrBuilder getCollectionOrBuilder(); + + /** + * + * + *
        +   * Optional. The bucket to scan. Targets including this can only include one
        +   * target (the target with this bucket). This enables profiling the contents
        +   * of a single bucket, while the other options allow for easy profiling of
        +   * many bucets within a project or an organization.
        +   * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageResourceReference field is set. + */ + boolean hasCloudStorageResourceReference(); + /** + * + * + *
        +   * Optional. The bucket to scan. Targets including this can only include one
        +   * target (the target with this bucket). This enables profiling the contents
        +   * of a single bucket, while the other options allow for easy profiling of
        +   * many bucets within a project or an organization.
        +   * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageResourceReference. + */ + com.google.privacy.dlp.v2.CloudStorageResourceReference getCloudStorageResourceReference(); + /** + * + * + *
        +   * Optional. The bucket to scan. Targets including this can only include one
        +   * target (the target with this bucket). This enables profiling the contents
        +   * of a single bucket, while the other options allow for easy profiling of
        +   * many bucets within a project or an organization.
        +   * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.privacy.dlp.v2.CloudStorageResourceReferenceOrBuilder + getCloudStorageResourceReferenceOrBuilder(); + + /** + * + * + *
        +   * Optional. Catch-all. This should always be the last target in the list
        +   * because anything above it will apply first. Should only appear once in a
        +   * configuration. If none is specified, a default one will be added
        +   * automatically.
        +   * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the others field is set. + */ + boolean hasOthers(); + /** + * + * + *
        +   * Optional. Catch-all. This should always be the last target in the list
        +   * because anything above it will apply first. Should only appear once in a
        +   * configuration. If none is specified, a default one will be added
        +   * automatically.
        +   * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The others. + */ + com.google.privacy.dlp.v2.AllOtherResources getOthers(); + /** + * + * + *
        +   * Optional. Catch-all. This should always be the last target in the list
        +   * because anything above it will apply first. Should only appear once in a
        +   * configuration. If none is specified, a default one will be added
        +   * automatically.
        +   * 
        + * + * + * .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.privacy.dlp.v2.AllOtherResourcesOrBuilder getOthersOrBuilder(); + + com.google.privacy.dlp.v2.DiscoveryCloudStorageFilter.FilterCase getFilterCase(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageGenerationCadence.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageGenerationCadence.java new file mode 100644 index 000000000000..4517840c9992 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageGenerationCadence.java @@ -0,0 +1,989 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * How often existing buckets should have their profiles refreshed.
        + * New buckets are scanned as quickly as possible depending on system
        + * capacity.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence} + */ +public final class DiscoveryCloudStorageGenerationCadence + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) + DiscoveryCloudStorageGenerationCadenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscoveryCloudStorageGenerationCadence.newBuilder() to construct. + private DiscoveryCloudStorageGenerationCadence( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscoveryCloudStorageGenerationCadence() { + refreshFrequency_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiscoveryCloudStorageGenerationCadence(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageGenerationCadence_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageGenerationCadence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.class, + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.Builder.class); + } + + private int bitField0_; + public static final int REFRESH_FREQUENCY_FIELD_NUMBER = 1; + private int refreshFrequency_ = 0; + /** + * + * + *
        +   * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you
        +   * set this field, profiles are refreshed at this frequency regardless of
        +   * whether the underlying buckets have changed. Defaults to never.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for refreshFrequency. + */ + @java.lang.Override + public int getRefreshFrequencyValue() { + return refreshFrequency_; + } + /** + * + * + *
        +   * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you
        +   * set this field, profiles are refreshed at this frequency regardless of
        +   * whether the underlying buckets have changed. Defaults to never.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The refreshFrequency. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataProfileUpdateFrequency getRefreshFrequency() { + com.google.privacy.dlp.v2.DataProfileUpdateFrequency result = + com.google.privacy.dlp.v2.DataProfileUpdateFrequency.forNumber(refreshFrequency_); + return result == null + ? com.google.privacy.dlp.v2.DataProfileUpdateFrequency.UNRECOGNIZED + : result; + } + + public static final int INSPECT_TEMPLATE_MODIFIED_CADENCE_FIELD_NUMBER = 2; + private com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + inspectTemplateModifiedCadence_; + /** + * + * + *
        +   * Optional. Governs when to update data profiles when the inspection rules
        +   * defined by the `InspectTemplate` change.
        +   * If not set, changing the template will not cause a data profile to update.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inspectTemplateModifiedCadence field is set. + */ + @java.lang.Override + public boolean hasInspectTemplateModifiedCadence() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * Optional. Governs when to update data profiles when the inspection rules
        +   * defined by the `InspectTemplate` change.
        +   * If not set, changing the template will not cause a data profile to update.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inspectTemplateModifiedCadence. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + getInspectTemplateModifiedCadence() { + return inspectTemplateModifiedCadence_ == null + ? com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.getDefaultInstance() + : inspectTemplateModifiedCadence_; + } + /** + * + * + *
        +   * Optional. Governs when to update data profiles when the inspection rules
        +   * defined by the `InspectTemplate` change.
        +   * If not set, changing the template will not cause a data profile to update.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceOrBuilder + getInspectTemplateModifiedCadenceOrBuilder() { + return inspectTemplateModifiedCadence_ == null + ? com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.getDefaultInstance() + : inspectTemplateModifiedCadence_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (refreshFrequency_ + != com.google.privacy.dlp.v2.DataProfileUpdateFrequency.UPDATE_FREQUENCY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, refreshFrequency_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getInspectTemplateModifiedCadence()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (refreshFrequency_ + != com.google.privacy.dlp.v2.DataProfileUpdateFrequency.UPDATE_FREQUENCY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, refreshFrequency_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getInspectTemplateModifiedCadence()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence other = + (com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) obj; + + if (refreshFrequency_ != other.refreshFrequency_) return false; + if (hasInspectTemplateModifiedCadence() != other.hasInspectTemplateModifiedCadence()) + return false; + if (hasInspectTemplateModifiedCadence()) { + if (!getInspectTemplateModifiedCadence().equals(other.getInspectTemplateModifiedCadence())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REFRESH_FREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + refreshFrequency_; + if (hasInspectTemplateModifiedCadence()) { + hash = (37 * hash) + INSPECT_TEMPLATE_MODIFIED_CADENCE_FIELD_NUMBER; + hash = (53 * hash) + getInspectTemplateModifiedCadence().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * How often existing buckets should have their profiles refreshed.
        +   * New buckets are scanned as quickly as possible depending on system
        +   * capacity.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageGenerationCadence_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageGenerationCadence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.class, + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInspectTemplateModifiedCadenceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + refreshFrequency_ = 0; + inspectTemplateModifiedCadence_ = null; + if (inspectTemplateModifiedCadenceBuilder_ != null) { + inspectTemplateModifiedCadenceBuilder_.dispose(); + inspectTemplateModifiedCadenceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageGenerationCadence_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence + getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence build() { + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence buildPartial() { + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence result = + new com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.refreshFrequency_ = refreshFrequency_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inspectTemplateModifiedCadence_ = + inspectTemplateModifiedCadenceBuilder_ == null + ? inspectTemplateModifiedCadence_ + : inspectTemplateModifiedCadenceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) { + return mergeFrom((com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence other) { + if (other + == com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence.getDefaultInstance()) + return this; + if (other.refreshFrequency_ != 0) { + setRefreshFrequencyValue(other.getRefreshFrequencyValue()); + } + if (other.hasInspectTemplateModifiedCadence()) { + mergeInspectTemplateModifiedCadence(other.getInspectTemplateModifiedCadence()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + refreshFrequency_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getInspectTemplateModifiedCadenceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int refreshFrequency_ = 0; + /** + * + * + *
        +     * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you
        +     * set this field, profiles are refreshed at this frequency regardless of
        +     * whether the underlying buckets have changed. Defaults to never.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for refreshFrequency. + */ + @java.lang.Override + public int getRefreshFrequencyValue() { + return refreshFrequency_; + } + /** + * + * + *
        +     * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you
        +     * set this field, profiles are refreshed at this frequency regardless of
        +     * whether the underlying buckets have changed. Defaults to never.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for refreshFrequency to set. + * @return This builder for chaining. + */ + public Builder setRefreshFrequencyValue(int value) { + refreshFrequency_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you
        +     * set this field, profiles are refreshed at this frequency regardless of
        +     * whether the underlying buckets have changed. Defaults to never.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The refreshFrequency. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataProfileUpdateFrequency getRefreshFrequency() { + com.google.privacy.dlp.v2.DataProfileUpdateFrequency result = + com.google.privacy.dlp.v2.DataProfileUpdateFrequency.forNumber(refreshFrequency_); + return result == null + ? com.google.privacy.dlp.v2.DataProfileUpdateFrequency.UNRECOGNIZED + : result; + } + /** + * + * + *
        +     * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you
        +     * set this field, profiles are refreshed at this frequency regardless of
        +     * whether the underlying buckets have changed. Defaults to never.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The refreshFrequency to set. + * @return This builder for chaining. + */ + public Builder setRefreshFrequency(com.google.privacy.dlp.v2.DataProfileUpdateFrequency value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + refreshFrequency_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you
        +     * set this field, profiles are refreshed at this frequency regardless of
        +     * whether the underlying buckets have changed. Defaults to never.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRefreshFrequency() { + bitField0_ = (bitField0_ & ~0x00000001); + refreshFrequency_ = 0; + onChanged(); + return this; + } + + private com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + inspectTemplateModifiedCadence_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence, + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.Builder, + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceOrBuilder> + inspectTemplateModifiedCadenceBuilder_; + /** + * + * + *
        +     * Optional. Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inspectTemplateModifiedCadence field is set. + */ + public boolean hasInspectTemplateModifiedCadence() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +     * Optional. Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inspectTemplateModifiedCadence. + */ + public com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + getInspectTemplateModifiedCadence() { + if (inspectTemplateModifiedCadenceBuilder_ == null) { + return inspectTemplateModifiedCadence_ == null + ? com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.getDefaultInstance() + : inspectTemplateModifiedCadence_; + } else { + return inspectTemplateModifiedCadenceBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInspectTemplateModifiedCadence( + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence value) { + if (inspectTemplateModifiedCadenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inspectTemplateModifiedCadence_ = value; + } else { + inspectTemplateModifiedCadenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInspectTemplateModifiedCadence( + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.Builder builderForValue) { + if (inspectTemplateModifiedCadenceBuilder_ == null) { + inspectTemplateModifiedCadence_ = builderForValue.build(); + } else { + inspectTemplateModifiedCadenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInspectTemplateModifiedCadence( + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence value) { + if (inspectTemplateModifiedCadenceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && inspectTemplateModifiedCadence_ != null + && inspectTemplateModifiedCadence_ + != com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + .getDefaultInstance()) { + getInspectTemplateModifiedCadenceBuilder().mergeFrom(value); + } else { + inspectTemplateModifiedCadence_ = value; + } + } else { + inspectTemplateModifiedCadenceBuilder_.mergeFrom(value); + } + if (inspectTemplateModifiedCadence_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInspectTemplateModifiedCadence() { + bitField0_ = (bitField0_ & ~0x00000002); + inspectTemplateModifiedCadence_ = null; + if (inspectTemplateModifiedCadenceBuilder_ != null) { + inspectTemplateModifiedCadenceBuilder_.dispose(); + inspectTemplateModifiedCadenceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.Builder + getInspectTemplateModifiedCadenceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getInspectTemplateModifiedCadenceFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceOrBuilder + getInspectTemplateModifiedCadenceOrBuilder() { + if (inspectTemplateModifiedCadenceBuilder_ != null) { + return inspectTemplateModifiedCadenceBuilder_.getMessageOrBuilder(); + } else { + return inspectTemplateModifiedCadence_ == null + ? com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.getDefaultInstance() + : inspectTemplateModifiedCadence_; + } + } + /** + * + * + *
        +     * Optional. Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence, + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.Builder, + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceOrBuilder> + getInspectTemplateModifiedCadenceFieldBuilder() { + if (inspectTemplateModifiedCadenceBuilder_ == null) { + inspectTemplateModifiedCadenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence, + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.Builder, + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceOrBuilder>( + getInspectTemplateModifiedCadence(), getParentForChildren(), isClean()); + inspectTemplateModifiedCadence_ = null; + } + return inspectTemplateModifiedCadenceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) + private static final com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence(); + } + + public static com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoveryCloudStorageGenerationCadence parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageGenerationCadenceOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageGenerationCadenceOrBuilder.java new file mode 100644 index 000000000000..f6a4e8c42491 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryCloudStorageGenerationCadenceOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface DiscoveryCloudStorageGenerationCadenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you
        +   * set this field, profiles are refreshed at this frequency regardless of
        +   * whether the underlying buckets have changed. Defaults to never.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for refreshFrequency. + */ + int getRefreshFrequencyValue(); + /** + * + * + *
        +   * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you
        +   * set this field, profiles are refreshed at this frequency regardless of
        +   * whether the underlying buckets have changed. Defaults to never.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The refreshFrequency. + */ + com.google.privacy.dlp.v2.DataProfileUpdateFrequency getRefreshFrequency(); + + /** + * + * + *
        +   * Optional. Governs when to update data profiles when the inspection rules
        +   * defined by the `InspectTemplate` change.
        +   * If not set, changing the template will not cause a data profile to update.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inspectTemplateModifiedCadence field is set. + */ + boolean hasInspectTemplateModifiedCadence(); + /** + * + * + *
        +   * Optional. Governs when to update data profiles when the inspection rules
        +   * defined by the `InspectTemplate` change.
        +   * If not set, changing the template will not cause a data profile to update.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inspectTemplateModifiedCadence. + */ + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + getInspectTemplateModifiedCadence(); + /** + * + * + *
        +   * Optional. Governs when to update data profiles when the inspection rules
        +   * defined by the `InspectTemplate` change.
        +   * If not set, changing the template will not cause a data profile to update.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceOrBuilder + getInspectTemplateModifiedCadenceOrBuilder(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryFileStoreConditions.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryFileStoreConditions.java new file mode 100644 index 000000000000..3e1827995422 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryFileStoreConditions.java @@ -0,0 +1,1431 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * Requirements that must be true before a file store is scanned in discovery
        + * for the first time. There is an AND relationship between the top-level
        + * attributes.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.DiscoveryFileStoreConditions} + */ +public final class DiscoveryFileStoreConditions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DiscoveryFileStoreConditions) + DiscoveryFileStoreConditionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscoveryFileStoreConditions.newBuilder() to construct. + private DiscoveryFileStoreConditions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscoveryFileStoreConditions() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiscoveryFileStoreConditions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryFileStoreConditions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryFileStoreConditions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.class, + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.Builder.class); + } + + private int bitField0_; + private int conditionsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object conditions_; + + public enum ConditionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLOUD_STORAGE_CONDITIONS(3), + CONDITIONS_NOT_SET(0); + private final int value; + + private ConditionsCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConditionsCase valueOf(int value) { + return forNumber(value); + } + + public static ConditionsCase forNumber(int value) { + switch (value) { + case 3: + return CLOUD_STORAGE_CONDITIONS; + case 0: + return CONDITIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConditionsCase getConditionsCase() { + return ConditionsCase.forNumber(conditionsCase_); + } + + public static final int CREATED_AFTER_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createdAfter_; + /** + * + * + *
        +   * Optional. File store must have been created after this date. Used to avoid
        +   * backfilling.
        +   * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the createdAfter field is set. + */ + @java.lang.Override + public boolean hasCreatedAfter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * Optional. File store must have been created after this date. Used to avoid
        +   * backfilling.
        +   * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The createdAfter. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreatedAfter() { + return createdAfter_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createdAfter_; + } + /** + * + * + *
        +   * Optional. File store must have been created after this date. Used to avoid
        +   * backfilling.
        +   * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreatedAfterOrBuilder() { + return createdAfter_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createdAfter_; + } + + public static final int MIN_AGE_FIELD_NUMBER = 2; + private com.google.protobuf.Duration minAge_; + /** + * + * + *
        +   * Optional. Minimum age a file store must have. If set, the value must be 1
        +   * hour or greater.
        +   * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the minAge field is set. + */ + @java.lang.Override + public boolean hasMinAge() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +   * Optional. Minimum age a file store must have. If set, the value must be 1
        +   * hour or greater.
        +   * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minAge. + */ + @java.lang.Override + public com.google.protobuf.Duration getMinAge() { + return minAge_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAge_; + } + /** + * + * + *
        +   * Optional. Minimum age a file store must have. If set, the value must be 1
        +   * hour or greater.
        +   * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMinAgeOrBuilder() { + return minAge_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAge_; + } + + public static final int CLOUD_STORAGE_CONDITIONS_FIELD_NUMBER = 3; + /** + * + * + *
        +   * Optional. Cloud Storage conditions.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageConditions field is set. + */ + @java.lang.Override + public boolean hasCloudStorageConditions() { + return conditionsCase_ == 3; + } + /** + * + * + *
        +   * Optional. Cloud Storage conditions.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageConditions. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions getCloudStorageConditions() { + if (conditionsCase_ == 3) { + return (com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions) conditions_; + } + return com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.getDefaultInstance(); + } + /** + * + * + *
        +   * Optional. Cloud Storage conditions.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditionsOrBuilder + getCloudStorageConditionsOrBuilder() { + if (conditionsCase_ == 3) { + return (com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions) conditions_; + } + return com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreatedAfter()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getMinAge()); + } + if (conditionsCase_ == 3) { + output.writeMessage( + 3, (com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions) conditions_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreatedAfter()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMinAge()); + } + if (conditionsCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions) conditions_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.DiscoveryFileStoreConditions)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions other = + (com.google.privacy.dlp.v2.DiscoveryFileStoreConditions) obj; + + if (hasCreatedAfter() != other.hasCreatedAfter()) return false; + if (hasCreatedAfter()) { + if (!getCreatedAfter().equals(other.getCreatedAfter())) return false; + } + if (hasMinAge() != other.hasMinAge()) return false; + if (hasMinAge()) { + if (!getMinAge().equals(other.getMinAge())) return false; + } + if (!getConditionsCase().equals(other.getConditionsCase())) return false; + switch (conditionsCase_) { + case 3: + if (!getCloudStorageConditions().equals(other.getCloudStorageConditions())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreatedAfter()) { + hash = (37 * hash) + CREATED_AFTER_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAfter().hashCode(); + } + if (hasMinAge()) { + hash = (37 * hash) + MIN_AGE_FIELD_NUMBER; + hash = (53 * hash) + getMinAge().hashCode(); + } + switch (conditionsCase_) { + case 3: + hash = (37 * hash) + CLOUD_STORAGE_CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getCloudStorageConditions().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.DiscoveryFileStoreConditions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryFileStoreConditions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryFileStoreConditions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryFileStoreConditions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryFileStoreConditions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryFileStoreConditions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryFileStoreConditions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryFileStoreConditions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryFileStoreConditions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryFileStoreConditions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryFileStoreConditions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryFileStoreConditions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Requirements that must be true before a file store is scanned in discovery
        +   * for the first time. There is an AND relationship between the top-level
        +   * attributes.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.DiscoveryFileStoreConditions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DiscoveryFileStoreConditions) + com.google.privacy.dlp.v2.DiscoveryFileStoreConditionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryFileStoreConditions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryFileStoreConditions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.class, + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreatedAfterFieldBuilder(); + getMinAgeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createdAfter_ = null; + if (createdAfterBuilder_ != null) { + createdAfterBuilder_.dispose(); + createdAfterBuilder_ = null; + } + minAge_ = null; + if (minAgeBuilder_ != null) { + minAgeBuilder_.dispose(); + minAgeBuilder_ = null; + } + if (cloudStorageConditionsBuilder_ != null) { + cloudStorageConditionsBuilder_.clear(); + } + conditionsCase_ = 0; + conditions_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryFileStoreConditions_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryFileStoreConditions getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryFileStoreConditions build() { + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryFileStoreConditions buildPartial() { + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions result = + new com.google.privacy.dlp.v2.DiscoveryFileStoreConditions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.DiscoveryFileStoreConditions result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createdAfter_ = + createdAfterBuilder_ == null ? createdAfter_ : createdAfterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minAge_ = minAgeBuilder_ == null ? minAge_ : minAgeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.privacy.dlp.v2.DiscoveryFileStoreConditions result) { + result.conditionsCase_ = conditionsCase_; + result.conditions_ = this.conditions_; + if (conditionsCase_ == 3 && cloudStorageConditionsBuilder_ != null) { + result.conditions_ = cloudStorageConditionsBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.DiscoveryFileStoreConditions) { + return mergeFrom((com.google.privacy.dlp.v2.DiscoveryFileStoreConditions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.DiscoveryFileStoreConditions other) { + if (other == com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.getDefaultInstance()) + return this; + if (other.hasCreatedAfter()) { + mergeCreatedAfter(other.getCreatedAfter()); + } + if (other.hasMinAge()) { + mergeMinAge(other.getMinAge()); + } + switch (other.getConditionsCase()) { + case CLOUD_STORAGE_CONDITIONS: + { + mergeCloudStorageConditions(other.getCloudStorageConditions()); + break; + } + case CONDITIONS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreatedAfterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getMinAgeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getCloudStorageConditionsFieldBuilder().getBuilder(), extensionRegistry); + conditionsCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int conditionsCase_ = 0; + private java.lang.Object conditions_; + + public ConditionsCase getConditionsCase() { + return ConditionsCase.forNumber(conditionsCase_); + } + + public Builder clearConditions() { + conditionsCase_ = 0; + conditions_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createdAfter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createdAfterBuilder_; + /** + * + * + *
        +     * Optional. File store must have been created after this date. Used to avoid
        +     * backfilling.
        +     * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the createdAfter field is set. + */ + public boolean hasCreatedAfter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * Optional. File store must have been created after this date. Used to avoid
        +     * backfilling.
        +     * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The createdAfter. + */ + public com.google.protobuf.Timestamp getCreatedAfter() { + if (createdAfterBuilder_ == null) { + return createdAfter_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createdAfter_; + } else { + return createdAfterBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. File store must have been created after this date. Used to avoid
        +     * backfilling.
        +     * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCreatedAfter(com.google.protobuf.Timestamp value) { + if (createdAfterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAfter_ = value; + } else { + createdAfterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. File store must have been created after this date. Used to avoid
        +     * backfilling.
        +     * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCreatedAfter(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAfterBuilder_ == null) { + createdAfter_ = builderForValue.build(); + } else { + createdAfterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. File store must have been created after this date. Used to avoid
        +     * backfilling.
        +     * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCreatedAfter(com.google.protobuf.Timestamp value) { + if (createdAfterBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createdAfter_ != null + && createdAfter_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreatedAfterBuilder().mergeFrom(value); + } else { + createdAfter_ = value; + } + } else { + createdAfterBuilder_.mergeFrom(value); + } + if (createdAfter_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. File store must have been created after this date. Used to avoid
        +     * backfilling.
        +     * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCreatedAfter() { + bitField0_ = (bitField0_ & ~0x00000001); + createdAfter_ = null; + if (createdAfterBuilder_ != null) { + createdAfterBuilder_.dispose(); + createdAfterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. File store must have been created after this date. Used to avoid
        +     * backfilling.
        +     * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreatedAfterBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreatedAfterFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. File store must have been created after this date. Used to avoid
        +     * backfilling.
        +     * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAfterOrBuilder() { + if (createdAfterBuilder_ != null) { + return createdAfterBuilder_.getMessageOrBuilder(); + } else { + return createdAfter_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createdAfter_; + } + } + /** + * + * + *
        +     * Optional. File store must have been created after this date. Used to avoid
        +     * backfilling.
        +     * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreatedAfterFieldBuilder() { + if (createdAfterBuilder_ == null) { + createdAfterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreatedAfter(), getParentForChildren(), isClean()); + createdAfter_ = null; + } + return createdAfterBuilder_; + } + + private com.google.protobuf.Duration minAge_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minAgeBuilder_; + /** + * + * + *
        +     * Optional. Minimum age a file store must have. If set, the value must be 1
        +     * hour or greater.
        +     * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the minAge field is set. + */ + public boolean hasMinAge() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +     * Optional. Minimum age a file store must have. If set, the value must be 1
        +     * hour or greater.
        +     * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minAge. + */ + public com.google.protobuf.Duration getMinAge() { + if (minAgeBuilder_ == null) { + return minAge_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAge_; + } else { + return minAgeBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Minimum age a file store must have. If set, the value must be 1
        +     * hour or greater.
        +     * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setMinAge(com.google.protobuf.Duration value) { + if (minAgeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minAge_ = value; + } else { + minAgeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Minimum age a file store must have. If set, the value must be 1
        +     * hour or greater.
        +     * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setMinAge(com.google.protobuf.Duration.Builder builderForValue) { + if (minAgeBuilder_ == null) { + minAge_ = builderForValue.build(); + } else { + minAgeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Minimum age a file store must have. If set, the value must be 1
        +     * hour or greater.
        +     * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeMinAge(com.google.protobuf.Duration value) { + if (minAgeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && minAge_ != null + && minAge_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMinAgeBuilder().mergeFrom(value); + } else { + minAge_ = value; + } + } else { + minAgeBuilder_.mergeFrom(value); + } + if (minAge_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Minimum age a file store must have. If set, the value must be 1
        +     * hour or greater.
        +     * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearMinAge() { + bitField0_ = (bitField0_ & ~0x00000002); + minAge_ = null; + if (minAgeBuilder_ != null) { + minAgeBuilder_.dispose(); + minAgeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Minimum age a file store must have. If set, the value must be 1
        +     * hour or greater.
        +     * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Duration.Builder getMinAgeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMinAgeFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Minimum age a file store must have. If set, the value must be 1
        +     * hour or greater.
        +     * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.DurationOrBuilder getMinAgeOrBuilder() { + if (minAgeBuilder_ != null) { + return minAgeBuilder_.getMessageOrBuilder(); + } else { + return minAge_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minAge_; + } + } + /** + * + * + *
        +     * Optional. Minimum age a file store must have. If set, the value must be 1
        +     * hour or greater.
        +     * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMinAgeFieldBuilder() { + if (minAgeBuilder_ == null) { + minAgeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinAge(), getParentForChildren(), isClean()); + minAge_ = null; + } + return minAgeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.Builder, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditionsOrBuilder> + cloudStorageConditionsBuilder_; + /** + * + * + *
        +     * Optional. Cloud Storage conditions.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageConditions field is set. + */ + @java.lang.Override + public boolean hasCloudStorageConditions() { + return conditionsCase_ == 3; + } + /** + * + * + *
        +     * Optional. Cloud Storage conditions.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageConditions. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions getCloudStorageConditions() { + if (cloudStorageConditionsBuilder_ == null) { + if (conditionsCase_ == 3) { + return (com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions) conditions_; + } + return com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.getDefaultInstance(); + } else { + if (conditionsCase_ == 3) { + return cloudStorageConditionsBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. Cloud Storage conditions.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorageConditions( + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions value) { + if (cloudStorageConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conditions_ = value; + onChanged(); + } else { + cloudStorageConditionsBuilder_.setMessage(value); + } + conditionsCase_ = 3; + return this; + } + /** + * + * + *
        +     * Optional. Cloud Storage conditions.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorageConditions( + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.Builder builderForValue) { + if (cloudStorageConditionsBuilder_ == null) { + conditions_ = builderForValue.build(); + onChanged(); + } else { + cloudStorageConditionsBuilder_.setMessage(builderForValue.build()); + } + conditionsCase_ = 3; + return this; + } + /** + * + * + *
        +     * Optional. Cloud Storage conditions.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCloudStorageConditions( + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions value) { + if (cloudStorageConditionsBuilder_ == null) { + if (conditionsCase_ == 3 + && conditions_ + != com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.getDefaultInstance()) { + conditions_ = + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.newBuilder( + (com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions) conditions_) + .mergeFrom(value) + .buildPartial(); + } else { + conditions_ = value; + } + onChanged(); + } else { + if (conditionsCase_ == 3) { + cloudStorageConditionsBuilder_.mergeFrom(value); + } else { + cloudStorageConditionsBuilder_.setMessage(value); + } + } + conditionsCase_ = 3; + return this; + } + /** + * + * + *
        +     * Optional. Cloud Storage conditions.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudStorageConditions() { + if (cloudStorageConditionsBuilder_ == null) { + if (conditionsCase_ == 3) { + conditionsCase_ = 0; + conditions_ = null; + onChanged(); + } + } else { + if (conditionsCase_ == 3) { + conditionsCase_ = 0; + conditions_ = null; + } + cloudStorageConditionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Optional. Cloud Storage conditions.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.Builder + getCloudStorageConditionsBuilder() { + return getCloudStorageConditionsFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Cloud Storage conditions.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryCloudStorageConditionsOrBuilder + getCloudStorageConditionsOrBuilder() { + if ((conditionsCase_ == 3) && (cloudStorageConditionsBuilder_ != null)) { + return cloudStorageConditionsBuilder_.getMessageOrBuilder(); + } else { + if (conditionsCase_ == 3) { + return (com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions) conditions_; + } + return com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. Cloud Storage conditions.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.Builder, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditionsOrBuilder> + getCloudStorageConditionsFieldBuilder() { + if (cloudStorageConditionsBuilder_ == null) { + if (!(conditionsCase_ == 3)) { + conditions_ = + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.getDefaultInstance(); + } + cloudStorageConditionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.Builder, + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditionsOrBuilder>( + (com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions) conditions_, + getParentForChildren(), + isClean()); + conditions_ = null; + } + conditionsCase_ = 3; + onChanged(); + return cloudStorageConditionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DiscoveryFileStoreConditions) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DiscoveryFileStoreConditions) + private static final com.google.privacy.dlp.v2.DiscoveryFileStoreConditions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DiscoveryFileStoreConditions(); + } + + public static com.google.privacy.dlp.v2.DiscoveryFileStoreConditions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoveryFileStoreConditions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryFileStoreConditions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryFileStoreConditionsOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryFileStoreConditionsOrBuilder.java new file mode 100644 index 000000000000..14a63b79b025 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryFileStoreConditionsOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface DiscoveryFileStoreConditionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DiscoveryFileStoreConditions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. File store must have been created after this date. Used to avoid
        +   * backfilling.
        +   * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the createdAfter field is set. + */ + boolean hasCreatedAfter(); + /** + * + * + *
        +   * Optional. File store must have been created after this date. Used to avoid
        +   * backfilling.
        +   * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The createdAfter. + */ + com.google.protobuf.Timestamp getCreatedAfter(); + /** + * + * + *
        +   * Optional. File store must have been created after this date. Used to avoid
        +   * backfilling.
        +   * 
        + * + * .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreatedAfterOrBuilder(); + + /** + * + * + *
        +   * Optional. Minimum age a file store must have. If set, the value must be 1
        +   * hour or greater.
        +   * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the minAge field is set. + */ + boolean hasMinAge(); + /** + * + * + *
        +   * Optional. Minimum age a file store must have. If set, the value must be 1
        +   * hour or greater.
        +   * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minAge. + */ + com.google.protobuf.Duration getMinAge(); + /** + * + * + *
        +   * Optional. Minimum age a file store must have. If set, the value must be 1
        +   * hour or greater.
        +   * 
        + * + * .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.DurationOrBuilder getMinAgeOrBuilder(); + + /** + * + * + *
        +   * Optional. Cloud Storage conditions.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageConditions field is set. + */ + boolean hasCloudStorageConditions(); + /** + * + * + *
        +   * Optional. Cloud Storage conditions.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageConditions. + */ + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions getCloudStorageConditions(); + /** + * + * + *
        +   * Optional. Cloud Storage conditions.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.privacy.dlp.v2.DiscoveryCloudStorageConditionsOrBuilder + getCloudStorageConditionsOrBuilder(); + + com.google.privacy.dlp.v2.DiscoveryFileStoreConditions.ConditionsCase getConditionsCase(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryGenerationCadence.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryGenerationCadence.java index 2ccdd9dde7da..26e63889990f 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryGenerationCadence.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryGenerationCadence.java @@ -41,7 +41,9 @@ private DiscoveryGenerationCadence(com.google.protobuf.GeneratedMessageV3.Builde super(builder); } - private DiscoveryGenerationCadence() {} + private DiscoveryGenerationCadence() { + refreshFrequency_ = 0; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -167,6 +169,110 @@ public com.google.privacy.dlp.v2.DiscoveryTableModifiedCadence getTableModifiedC : tableModifiedCadence_; } + public static final int INSPECT_TEMPLATE_MODIFIED_CADENCE_FIELD_NUMBER = 3; + private com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + inspectTemplateModifiedCadence_; + /** + * + * + *
        +   * Governs when to update data profiles when the inspection rules
        +   * defined by the `InspectTemplate` change.
        +   * If not set, changing the template will not cause a data profile to update.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + * + * @return Whether the inspectTemplateModifiedCadence field is set. + */ + @java.lang.Override + public boolean hasInspectTemplateModifiedCadence() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
        +   * Governs when to update data profiles when the inspection rules
        +   * defined by the `InspectTemplate` change.
        +   * If not set, changing the template will not cause a data profile to update.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + * + * @return The inspectTemplateModifiedCadence. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + getInspectTemplateModifiedCadence() { + return inspectTemplateModifiedCadence_ == null + ? com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.getDefaultInstance() + : inspectTemplateModifiedCadence_; + } + /** + * + * + *
        +   * Governs when to update data profiles when the inspection rules
        +   * defined by the `InspectTemplate` change.
        +   * If not set, changing the template will not cause a data profile to update.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceOrBuilder + getInspectTemplateModifiedCadenceOrBuilder() { + return inspectTemplateModifiedCadence_ == null + ? com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.getDefaultInstance() + : inspectTemplateModifiedCadence_; + } + + public static final int REFRESH_FREQUENCY_FIELD_NUMBER = 4; + private int refreshFrequency_ = 0; + /** + * + * + *
        +   * Frequency at which profiles should be updated, regardless of whether the
        +   * underlying resource has changed. Defaults to never.
        +   * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + * + * @return The enum numeric value on the wire for refreshFrequency. + */ + @java.lang.Override + public int getRefreshFrequencyValue() { + return refreshFrequency_; + } + /** + * + * + *
        +   * Frequency at which profiles should be updated, regardless of whether the
        +   * underlying resource has changed. Defaults to never.
        +   * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + * + * @return The refreshFrequency. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataProfileUpdateFrequency getRefreshFrequency() { + com.google.privacy.dlp.v2.DataProfileUpdateFrequency result = + com.google.privacy.dlp.v2.DataProfileUpdateFrequency.forNumber(refreshFrequency_); + return result == null + ? com.google.privacy.dlp.v2.DataProfileUpdateFrequency.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -187,6 +293,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getTableModifiedCadence()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getInspectTemplateModifiedCadence()); + } + if (refreshFrequency_ + != com.google.privacy.dlp.v2.DataProfileUpdateFrequency.UPDATE_FREQUENCY_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, refreshFrequency_); + } getUnknownFields().writeTo(output); } @@ -204,6 +318,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTableModifiedCadence()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getInspectTemplateModifiedCadence()); + } + if (refreshFrequency_ + != com.google.privacy.dlp.v2.DataProfileUpdateFrequency.UPDATE_FREQUENCY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, refreshFrequency_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -228,6 +352,13 @@ public boolean equals(final java.lang.Object obj) { if (hasTableModifiedCadence()) { if (!getTableModifiedCadence().equals(other.getTableModifiedCadence())) return false; } + if (hasInspectTemplateModifiedCadence() != other.hasInspectTemplateModifiedCadence()) + return false; + if (hasInspectTemplateModifiedCadence()) { + if (!getInspectTemplateModifiedCadence().equals(other.getInspectTemplateModifiedCadence())) + return false; + } + if (refreshFrequency_ != other.refreshFrequency_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,6 +378,12 @@ public int hashCode() { hash = (37 * hash) + TABLE_MODIFIED_CADENCE_FIELD_NUMBER; hash = (53 * hash) + getTableModifiedCadence().hashCode(); } + if (hasInspectTemplateModifiedCadence()) { + hash = (37 * hash) + INSPECT_TEMPLATE_MODIFIED_CADENCE_FIELD_NUMBER; + hash = (53 * hash) + getInspectTemplateModifiedCadence().hashCode(); + } + hash = (37 * hash) + REFRESH_FREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + refreshFrequency_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -392,6 +529,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSchemaModifiedCadenceFieldBuilder(); getTableModifiedCadenceFieldBuilder(); + getInspectTemplateModifiedCadenceFieldBuilder(); } } @@ -409,6 +547,12 @@ public Builder clear() { tableModifiedCadenceBuilder_.dispose(); tableModifiedCadenceBuilder_ = null; } + inspectTemplateModifiedCadence_ = null; + if (inspectTemplateModifiedCadenceBuilder_ != null) { + inspectTemplateModifiedCadenceBuilder_.dispose(); + inspectTemplateModifiedCadenceBuilder_ = null; + } + refreshFrequency_ = 0; return this; } @@ -460,6 +604,16 @@ private void buildPartial0(com.google.privacy.dlp.v2.DiscoveryGenerationCadence : tableModifiedCadenceBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.inspectTemplateModifiedCadence_ = + inspectTemplateModifiedCadenceBuilder_ == null + ? inspectTemplateModifiedCadence_ + : inspectTemplateModifiedCadenceBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.refreshFrequency_ = refreshFrequency_; + } result.bitField0_ |= to_bitField0_; } @@ -515,6 +669,12 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.DiscoveryGenerationCadence ot if (other.hasTableModifiedCadence()) { mergeTableModifiedCadence(other.getTableModifiedCadence()); } + if (other.hasInspectTemplateModifiedCadence()) { + mergeInspectTemplateModifiedCadence(other.getInspectTemplateModifiedCadence()); + } + if (other.refreshFrequency_ != 0) { + setRefreshFrequencyValue(other.getRefreshFrequencyValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -555,6 +715,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + input.readMessage( + getInspectTemplateModifiedCadenceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + refreshFrequency_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -965,6 +1139,333 @@ public Builder clearTableModifiedCadence() { return tableModifiedCadenceBuilder_; } + private com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + inspectTemplateModifiedCadence_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence, + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.Builder, + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceOrBuilder> + inspectTemplateModifiedCadenceBuilder_; + /** + * + * + *
        +     * Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + * + * @return Whether the inspectTemplateModifiedCadence field is set. + */ + public boolean hasInspectTemplateModifiedCadence() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
        +     * Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + * + * @return The inspectTemplateModifiedCadence. + */ + public com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + getInspectTemplateModifiedCadence() { + if (inspectTemplateModifiedCadenceBuilder_ == null) { + return inspectTemplateModifiedCadence_ == null + ? com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.getDefaultInstance() + : inspectTemplateModifiedCadence_; + } else { + return inspectTemplateModifiedCadenceBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + */ + public Builder setInspectTemplateModifiedCadence( + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence value) { + if (inspectTemplateModifiedCadenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inspectTemplateModifiedCadence_ = value; + } else { + inspectTemplateModifiedCadenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + */ + public Builder setInspectTemplateModifiedCadence( + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.Builder builderForValue) { + if (inspectTemplateModifiedCadenceBuilder_ == null) { + inspectTemplateModifiedCadence_ = builderForValue.build(); + } else { + inspectTemplateModifiedCadenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + */ + public Builder mergeInspectTemplateModifiedCadence( + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence value) { + if (inspectTemplateModifiedCadenceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && inspectTemplateModifiedCadence_ != null + && inspectTemplateModifiedCadence_ + != com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + .getDefaultInstance()) { + getInspectTemplateModifiedCadenceBuilder().mergeFrom(value); + } else { + inspectTemplateModifiedCadence_ = value; + } + } else { + inspectTemplateModifiedCadenceBuilder_.mergeFrom(value); + } + if (inspectTemplateModifiedCadence_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + */ + public Builder clearInspectTemplateModifiedCadence() { + bitField0_ = (bitField0_ & ~0x00000004); + inspectTemplateModifiedCadence_ = null; + if (inspectTemplateModifiedCadenceBuilder_ != null) { + inspectTemplateModifiedCadenceBuilder_.dispose(); + inspectTemplateModifiedCadenceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + */ + public com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.Builder + getInspectTemplateModifiedCadenceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getInspectTemplateModifiedCadenceFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + */ + public com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceOrBuilder + getInspectTemplateModifiedCadenceOrBuilder() { + if (inspectTemplateModifiedCadenceBuilder_ != null) { + return inspectTemplateModifiedCadenceBuilder_.getMessageOrBuilder(); + } else { + return inspectTemplateModifiedCadence_ == null + ? com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.getDefaultInstance() + : inspectTemplateModifiedCadence_; + } + } + /** + * + * + *
        +     * Governs when to update data profiles when the inspection rules
        +     * defined by the `InspectTemplate` change.
        +     * If not set, changing the template will not cause a data profile to update.
        +     * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence, + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.Builder, + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceOrBuilder> + getInspectTemplateModifiedCadenceFieldBuilder() { + if (inspectTemplateModifiedCadenceBuilder_ == null) { + inspectTemplateModifiedCadenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence, + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.Builder, + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceOrBuilder>( + getInspectTemplateModifiedCadence(), getParentForChildren(), isClean()); + inspectTemplateModifiedCadence_ = null; + } + return inspectTemplateModifiedCadenceBuilder_; + } + + private int refreshFrequency_ = 0; + /** + * + * + *
        +     * Frequency at which profiles should be updated, regardless of whether the
        +     * underlying resource has changed. Defaults to never.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + * + * @return The enum numeric value on the wire for refreshFrequency. + */ + @java.lang.Override + public int getRefreshFrequencyValue() { + return refreshFrequency_; + } + /** + * + * + *
        +     * Frequency at which profiles should be updated, regardless of whether the
        +     * underlying resource has changed. Defaults to never.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + * + * @param value The enum numeric value on the wire for refreshFrequency to set. + * @return This builder for chaining. + */ + public Builder setRefreshFrequencyValue(int value) { + refreshFrequency_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +     * Frequency at which profiles should be updated, regardless of whether the
        +     * underlying resource has changed. Defaults to never.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + * + * @return The refreshFrequency. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataProfileUpdateFrequency getRefreshFrequency() { + com.google.privacy.dlp.v2.DataProfileUpdateFrequency result = + com.google.privacy.dlp.v2.DataProfileUpdateFrequency.forNumber(refreshFrequency_); + return result == null + ? com.google.privacy.dlp.v2.DataProfileUpdateFrequency.UNRECOGNIZED + : result; + } + /** + * + * + *
        +     * Frequency at which profiles should be updated, regardless of whether the
        +     * underlying resource has changed. Defaults to never.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + * + * @param value The refreshFrequency to set. + * @return This builder for chaining. + */ + public Builder setRefreshFrequency(com.google.privacy.dlp.v2.DataProfileUpdateFrequency value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + refreshFrequency_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +     * Frequency at which profiles should be updated, regardless of whether the
        +     * underlying resource has changed. Defaults to never.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + * + * @return This builder for chaining. + */ + public Builder clearRefreshFrequency() { + bitField0_ = (bitField0_ & ~0x00000008); + refreshFrequency_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryGenerationCadenceOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryGenerationCadenceOrBuilder.java index 3c97c17f32ca..9ef4feb11313 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryGenerationCadenceOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryGenerationCadenceOrBuilder.java @@ -95,4 +95,80 @@ public interface DiscoveryGenerationCadenceOrBuilder */ com.google.privacy.dlp.v2.DiscoveryTableModifiedCadenceOrBuilder getTableModifiedCadenceOrBuilder(); + + /** + * + * + *
        +   * Governs when to update data profiles when the inspection rules
        +   * defined by the `InspectTemplate` change.
        +   * If not set, changing the template will not cause a data profile to update.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + * + * @return Whether the inspectTemplateModifiedCadence field is set. + */ + boolean hasInspectTemplateModifiedCadence(); + /** + * + * + *
        +   * Governs when to update data profiles when the inspection rules
        +   * defined by the `InspectTemplate` change.
        +   * If not set, changing the template will not cause a data profile to update.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + * + * @return The inspectTemplateModifiedCadence. + */ + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + getInspectTemplateModifiedCadence(); + /** + * + * + *
        +   * Governs when to update data profiles when the inspection rules
        +   * defined by the `InspectTemplate` change.
        +   * If not set, changing the template will not cause a data profile to update.
        +   * 
        + * + * + * .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * + */ + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceOrBuilder + getInspectTemplateModifiedCadenceOrBuilder(); + + /** + * + * + *
        +   * Frequency at which profiles should be updated, regardless of whether the
        +   * underlying resource has changed. Defaults to never.
        +   * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + * + * @return The enum numeric value on the wire for refreshFrequency. + */ + int getRefreshFrequencyValue(); + /** + * + * + *
        +   * Frequency at which profiles should be updated, regardless of whether the
        +   * underlying resource has changed. Defaults to never.
        +   * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + * + * @return The refreshFrequency. + */ + com.google.privacy.dlp.v2.DataProfileUpdateFrequency getRefreshFrequency(); } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryInspectTemplateModifiedCadence.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryInspectTemplateModifiedCadence.java new file mode 100644 index 000000000000..5e3ff2eee919 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryInspectTemplateModifiedCadence.java @@ -0,0 +1,620 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * The cadence at which to update data profiles when the inspection rules
        + * defined by the `InspectTemplate` change.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence} + */ +public final class DiscoveryInspectTemplateModifiedCadence + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence) + DiscoveryInspectTemplateModifiedCadenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscoveryInspectTemplateModifiedCadence.newBuilder() to construct. + private DiscoveryInspectTemplateModifiedCadence( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscoveryInspectTemplateModifiedCadence() { + frequency_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiscoveryInspectTemplateModifiedCadence(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryInspectTemplateModifiedCadence_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryInspectTemplateModifiedCadence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.class, + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.Builder.class); + } + + public static final int FREQUENCY_FIELD_NUMBER = 1; + private int frequency_ = 0; + /** + * + * + *
        +   * How frequently data profiles can be updated when the template is modified.
        +   * Defaults to never.
        +   * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; + * + * @return The enum numeric value on the wire for frequency. + */ + @java.lang.Override + public int getFrequencyValue() { + return frequency_; + } + /** + * + * + *
        +   * How frequently data profiles can be updated when the template is modified.
        +   * Defaults to never.
        +   * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; + * + * @return The frequency. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataProfileUpdateFrequency getFrequency() { + com.google.privacy.dlp.v2.DataProfileUpdateFrequency result = + com.google.privacy.dlp.v2.DataProfileUpdateFrequency.forNumber(frequency_); + return result == null + ? com.google.privacy.dlp.v2.DataProfileUpdateFrequency.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (frequency_ + != com.google.privacy.dlp.v2.DataProfileUpdateFrequency.UPDATE_FREQUENCY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, frequency_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (frequency_ + != com.google.privacy.dlp.v2.DataProfileUpdateFrequency.UPDATE_FREQUENCY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, frequency_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence other = + (com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence) obj; + + if (frequency_ != other.frequency_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + frequency_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * The cadence at which to update data profiles when the inspection rules
        +   * defined by the `InspectTemplate` change.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence) + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryInspectTemplateModifiedCadence_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryInspectTemplateModifiedCadence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.class, + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.Builder.class); + } + + // Construct using + // com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + frequency_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DiscoveryInspectTemplateModifiedCadence_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence build() { + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence buildPartial() { + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence result = + new com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.frequency_ = frequency_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence) { + return mergeFrom((com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence other) { + if (other + == com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence.getDefaultInstance()) + return this; + if (other.frequency_ != 0) { + setFrequencyValue(other.getFrequencyValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + frequency_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int frequency_ = 0; + /** + * + * + *
        +     * How frequently data profiles can be updated when the template is modified.
        +     * Defaults to never.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; + * + * @return The enum numeric value on the wire for frequency. + */ + @java.lang.Override + public int getFrequencyValue() { + return frequency_; + } + /** + * + * + *
        +     * How frequently data profiles can be updated when the template is modified.
        +     * Defaults to never.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; + * + * @param value The enum numeric value on the wire for frequency to set. + * @return This builder for chaining. + */ + public Builder setFrequencyValue(int value) { + frequency_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * How frequently data profiles can be updated when the template is modified.
        +     * Defaults to never.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; + * + * @return The frequency. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataProfileUpdateFrequency getFrequency() { + com.google.privacy.dlp.v2.DataProfileUpdateFrequency result = + com.google.privacy.dlp.v2.DataProfileUpdateFrequency.forNumber(frequency_); + return result == null + ? com.google.privacy.dlp.v2.DataProfileUpdateFrequency.UNRECOGNIZED + : result; + } + /** + * + * + *
        +     * How frequently data profiles can be updated when the template is modified.
        +     * Defaults to never.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; + * + * @param value The frequency to set. + * @return This builder for chaining. + */ + public Builder setFrequency(com.google.privacy.dlp.v2.DataProfileUpdateFrequency value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + frequency_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +     * How frequently data profiles can be updated when the template is modified.
        +     * Defaults to never.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; + * + * @return This builder for chaining. + */ + public Builder clearFrequency() { + bitField0_ = (bitField0_ & ~0x00000001); + frequency_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence) + private static final com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence(); + } + + public static com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoveryInspectTemplateModifiedCadence parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryInspectTemplateModifiedCadenceOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryInspectTemplateModifiedCadenceOrBuilder.java new file mode 100644 index 000000000000..8e6d9ea19945 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryInspectTemplateModifiedCadenceOrBuilder.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface DiscoveryInspectTemplateModifiedCadenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * How frequently data profiles can be updated when the template is modified.
        +   * Defaults to never.
        +   * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; + * + * @return The enum numeric value on the wire for frequency. + */ + int getFrequencyValue(); + /** + * + * + *
        +   * How frequently data profiles can be updated when the template is modified.
        +   * Defaults to never.
        +   * 
        + * + * .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; + * + * @return The frequency. + */ + com.google.privacy.dlp.v2.DataProfileUpdateFrequency getFrequency(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryStartingLocation.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryStartingLocation.java index 6527fa671463..2539775c44da 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryStartingLocation.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryStartingLocation.java @@ -151,7 +151,7 @@ public long getOrganizationId() { * * *
        -   * The ID of the Folder within an organization to scan.
        +   * The ID of the folder within an organization to be scanned.
            * 
        * * int64 folder_id = 2; @@ -166,7 +166,7 @@ public boolean hasFolderId() { * * *
        -   * The ID of the Folder within an organization to scan.
        +   * The ID of the folder within an organization to be scanned.
            * 
        * * int64 folder_id = 2; @@ -663,7 +663,7 @@ public Builder clearOrganizationId() { * * *
        -     * The ID of the Folder within an organization to scan.
        +     * The ID of the folder within an organization to be scanned.
              * 
        * * int64 folder_id = 2; @@ -677,7 +677,7 @@ public boolean hasFolderId() { * * *
        -     * The ID of the Folder within an organization to scan.
        +     * The ID of the folder within an organization to be scanned.
              * 
        * * int64 folder_id = 2; @@ -694,7 +694,7 @@ public long getFolderId() { * * *
        -     * The ID of the Folder within an organization to scan.
        +     * The ID of the folder within an organization to be scanned.
              * 
        * * int64 folder_id = 2; @@ -713,7 +713,7 @@ public Builder setFolderId(long value) { * * *
        -     * The ID of the Folder within an organization to scan.
        +     * The ID of the folder within an organization to be scanned.
              * 
        * * int64 folder_id = 2; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryStartingLocationOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryStartingLocationOrBuilder.java index 3cbae3a92ff0..cdecee5da22e 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryStartingLocationOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryStartingLocationOrBuilder.java @@ -53,7 +53,7 @@ public interface DiscoveryStartingLocationOrBuilder * * *
        -   * The ID of the Folder within an organization to scan.
        +   * The ID of the folder within an organization to be scanned.
            * 
        * * int64 folder_id = 2; @@ -65,7 +65,7 @@ public interface DiscoveryStartingLocationOrBuilder * * *
        -   * The ID of the Folder within an organization to scan.
        +   * The ID of the folder within an organization to be scanned.
            * 
        * * int64 folder_id = 2; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryTarget.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryTarget.java index 8024834c8200..170f772d238b 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryTarget.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryTarget.java @@ -73,6 +73,7 @@ public enum TargetCase BIG_QUERY_TARGET(1), CLOUD_SQL_TARGET(2), SECRETS_TARGET(3), + CLOUD_STORAGE_TARGET(4), TARGET_NOT_SET(0); private final int value; @@ -97,6 +98,8 @@ public static TargetCase forNumber(int value) { return CLOUD_SQL_TARGET; case 3: return SECRETS_TARGET; + case 4: + return CLOUD_STORAGE_TARGET; case 0: return TARGET_NOT_SET; default: @@ -278,6 +281,61 @@ public com.google.privacy.dlp.v2.SecretsDiscoveryTargetOrBuilder getSecretsTarge return com.google.privacy.dlp.v2.SecretsDiscoveryTarget.getDefaultInstance(); } + public static final int CLOUD_STORAGE_TARGET_FIELD_NUMBER = 4; + /** + * + * + *
        +   * Cloud Storage target for Discovery. The first target to match a table
        +   * will be the one applied.
        +   * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + * + * @return Whether the cloudStorageTarget field is set. + */ + @java.lang.Override + public boolean hasCloudStorageTarget() { + return targetCase_ == 4; + } + /** + * + * + *
        +   * Cloud Storage target for Discovery. The first target to match a table
        +   * will be the one applied.
        +   * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + * + * @return The cloudStorageTarget. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget getCloudStorageTarget() { + if (targetCase_ == 4) { + return (com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget) target_; + } + return com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.getDefaultInstance(); + } + /** + * + * + *
        +   * Cloud Storage target for Discovery. The first target to match a table
        +   * will be the one applied.
        +   * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageDiscoveryTargetOrBuilder + getCloudStorageTargetOrBuilder() { + if (targetCase_ == 4) { + return (com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget) target_; + } + return com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -301,6 +359,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (targetCase_ == 3) { output.writeMessage(3, (com.google.privacy.dlp.v2.SecretsDiscoveryTarget) target_); } + if (targetCase_ == 4) { + output.writeMessage(4, (com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget) target_); + } getUnknownFields().writeTo(output); } @@ -325,6 +386,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.privacy.dlp.v2.SecretsDiscoveryTarget) target_); } + if (targetCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget) target_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -352,6 +418,9 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getSecretsTarget().equals(other.getSecretsTarget())) return false; break; + case 4: + if (!getCloudStorageTarget().equals(other.getCloudStorageTarget())) return false; + break; case 0: default: } @@ -379,6 +448,10 @@ public int hashCode() { hash = (37 * hash) + SECRETS_TARGET_FIELD_NUMBER; hash = (53 * hash) + getSecretsTarget().hashCode(); break; + case 4: + hash = (37 * hash) + CLOUD_STORAGE_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getCloudStorageTarget().hashCode(); + break; case 0: default: } @@ -530,6 +603,9 @@ public Builder clear() { if (secretsTargetBuilder_ != null) { secretsTargetBuilder_.clear(); } + if (cloudStorageTargetBuilder_ != null) { + cloudStorageTargetBuilder_.clear(); + } targetCase_ = 0; target_ = null; return this; @@ -583,6 +659,9 @@ private void buildPartialOneofs(com.google.privacy.dlp.v2.DiscoveryTarget result if (targetCase_ == 3 && secretsTargetBuilder_ != null) { result.target_ = secretsTargetBuilder_.build(); } + if (targetCase_ == 4 && cloudStorageTargetBuilder_ != null) { + result.target_ = cloudStorageTargetBuilder_.build(); + } } @java.lang.Override @@ -646,6 +725,11 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.DiscoveryTarget other) { mergeSecretsTarget(other.getSecretsTarget()); break; } + case CLOUD_STORAGE_TARGET: + { + mergeCloudStorageTarget(other.getCloudStorageTarget()); + break; + } case TARGET_NOT_SET: { break; @@ -695,6 +779,13 @@ public Builder mergeFrom( targetCase_ = 3; break; } // case 26 + case 34: + { + input.readMessage( + getCloudStorageTargetFieldBuilder().getBuilder(), extensionRegistry); + targetCase_ = 4; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1391,6 +1482,229 @@ public com.google.privacy.dlp.v2.SecretsDiscoveryTargetOrBuilder getSecretsTarge return secretsTargetBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget, + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.Builder, + com.google.privacy.dlp.v2.CloudStorageDiscoveryTargetOrBuilder> + cloudStorageTargetBuilder_; + /** + * + * + *
        +     * Cloud Storage target for Discovery. The first target to match a table
        +     * will be the one applied.
        +     * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + * + * @return Whether the cloudStorageTarget field is set. + */ + @java.lang.Override + public boolean hasCloudStorageTarget() { + return targetCase_ == 4; + } + /** + * + * + *
        +     * Cloud Storage target for Discovery. The first target to match a table
        +     * will be the one applied.
        +     * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + * + * @return The cloudStorageTarget. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget getCloudStorageTarget() { + if (cloudStorageTargetBuilder_ == null) { + if (targetCase_ == 4) { + return (com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget) target_; + } + return com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.getDefaultInstance(); + } else { + if (targetCase_ == 4) { + return cloudStorageTargetBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Cloud Storage target for Discovery. The first target to match a table
        +     * will be the one applied.
        +     * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + */ + public Builder setCloudStorageTarget( + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget value) { + if (cloudStorageTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + cloudStorageTargetBuilder_.setMessage(value); + } + targetCase_ = 4; + return this; + } + /** + * + * + *
        +     * Cloud Storage target for Discovery. The first target to match a table
        +     * will be the one applied.
        +     * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + */ + public Builder setCloudStorageTarget( + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.Builder builderForValue) { + if (cloudStorageTargetBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + cloudStorageTargetBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 4; + return this; + } + /** + * + * + *
        +     * Cloud Storage target for Discovery. The first target to match a table
        +     * will be the one applied.
        +     * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + */ + public Builder mergeCloudStorageTarget( + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget value) { + if (cloudStorageTargetBuilder_ == null) { + if (targetCase_ == 4 + && target_ + != com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.getDefaultInstance()) { + target_ = + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.newBuilder( + (com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget) target_) + .mergeFrom(value) + .buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 4) { + cloudStorageTargetBuilder_.mergeFrom(value); + } else { + cloudStorageTargetBuilder_.setMessage(value); + } + } + targetCase_ = 4; + return this; + } + /** + * + * + *
        +     * Cloud Storage target for Discovery. The first target to match a table
        +     * will be the one applied.
        +     * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + */ + public Builder clearCloudStorageTarget() { + if (cloudStorageTargetBuilder_ == null) { + if (targetCase_ == 4) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 4) { + targetCase_ = 0; + target_ = null; + } + cloudStorageTargetBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Cloud Storage target for Discovery. The first target to match a table
        +     * will be the one applied.
        +     * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + */ + public com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.Builder + getCloudStorageTargetBuilder() { + return getCloudStorageTargetFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Cloud Storage target for Discovery. The first target to match a table
        +     * will be the one applied.
        +     * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageDiscoveryTargetOrBuilder + getCloudStorageTargetOrBuilder() { + if ((targetCase_ == 4) && (cloudStorageTargetBuilder_ != null)) { + return cloudStorageTargetBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 4) { + return (com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget) target_; + } + return com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Cloud Storage target for Discovery. The first target to match a table
        +     * will be the one applied.
        +     * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget, + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.Builder, + com.google.privacy.dlp.v2.CloudStorageDiscoveryTargetOrBuilder> + getCloudStorageTargetFieldBuilder() { + if (cloudStorageTargetBuilder_ == null) { + if (!(targetCase_ == 4)) { + target_ = com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.getDefaultInstance(); + } + cloudStorageTargetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget, + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget.Builder, + com.google.privacy.dlp.v2.CloudStorageDiscoveryTargetOrBuilder>( + (com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 4; + onChanged(); + return cloudStorageTargetBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryTargetOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryTargetOrBuilder.java index 66889a37dbc1..77447fd63800 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryTargetOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryTargetOrBuilder.java @@ -141,5 +141,43 @@ public interface DiscoveryTargetOrBuilder */ com.google.privacy.dlp.v2.SecretsDiscoveryTargetOrBuilder getSecretsTargetOrBuilder(); + /** + * + * + *
        +   * Cloud Storage target for Discovery. The first target to match a table
        +   * will be the one applied.
        +   * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + * + * @return Whether the cloudStorageTarget field is set. + */ + boolean hasCloudStorageTarget(); + /** + * + * + *
        +   * Cloud Storage target for Discovery. The first target to match a table
        +   * will be the one applied.
        +   * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + * + * @return The cloudStorageTarget. + */ + com.google.privacy.dlp.v2.CloudStorageDiscoveryTarget getCloudStorageTarget(); + /** + * + * + *
        +   * Cloud Storage target for Discovery. The first target to match a table
        +   * will be the one applied.
        +   * 
        + * + * .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + */ + com.google.privacy.dlp.v2.CloudStorageDiscoveryTargetOrBuilder getCloudStorageTargetOrBuilder(); + com.google.privacy.dlp.v2.DiscoveryTarget.TargetCase getTargetCase(); } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java index 1a241622bb9e..c1f940c00ac8 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java @@ -800,6 +800,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_DiscoverySchemaModifiedCadence_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_DiscoverySchemaModifiedCadence_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_DiscoveryInspectTemplateModifiedCadence_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_DiscoveryInspectTemplateModifiedCadence_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_CloudSqlDiscoveryTarget_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -844,10 +848,54 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_SecretsDiscoveryTarget_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_SecretsDiscoveryTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_CloudStorageDiscoveryTarget_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_CloudStorageDiscoveryTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_FileStoreCollection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_FileStoreCollection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_FileStoreRegexes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_FileStoreRegexes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_FileStoreRegex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_FileStoreRegex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_CloudStorageRegex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_CloudStorageRegex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_CloudStorageResourceReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_CloudStorageResourceReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageGenerationCadence_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageGenerationCadence_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageConditions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageConditions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_DiscoveryFileStoreConditions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_DiscoveryFileStoreConditions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_DiscoveryStartingLocation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_DiscoveryStartingLocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_AllOtherResources_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_AllOtherResources_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_DlpJob_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -1032,10 +1080,50 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_ColumnDataProfile_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_ColumnDataProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_ResourceAttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_ResourceAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_ResourceLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_ResourceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_FileStoreInfoTypeSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_FileStoreInfoTypeSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_FileExtensionInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_FileExtensionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_FileClusterSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_FileClusterSummary_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_GetFileStoreDataProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_GetFileStoreDataProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_DeleteFileStoreDataProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_DeleteFileStoreDataProfileRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -1116,6 +1204,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_DataSourceType_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_DataSourceType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_FileClusterType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_FileClusterType_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -1182,1730 +1274,1919 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".dlp.v2.InspectConfig.FindingLimits.Info" + "TypeLimit\032Y\n\rInfoTypeLimit\0222\n\tinfo_type\030" + "\001 \001(\0132\037.google.privacy.dlp.v2.InfoType\022\024" - + "\n\014max_findings\030\002 \001(\005\"\305\002\n\017ByteContentItem" + + "\n\014max_findings\030\002 \001(\005\"\353\002\n\017ByteContentItem" + "\022>\n\004type\030\001 \001(\01620.google.privacy.dlp.v2.B" - + "yteContentItem.BytesType\022\014\n\004data\030\002 \001(\014\"\343" - + "\001\n\tBytesType\022\032\n\026BYTES_TYPE_UNSPECIFIED\020\000" + + "yteContentItem.BytesType\022\014\n\004data\030\002 \001(\014\"\211" + + "\002\n\tBytesType\022\032\n\026BYTES_TYPE_UNSPECIFIED\020\000" + "\022\t\n\005IMAGE\020\006\022\016\n\nIMAGE_JPEG\020\001\022\r\n\tIMAGE_BMP" + "\020\002\022\r\n\tIMAGE_PNG\020\003\022\r\n\tIMAGE_SVG\020\004\022\r\n\tTEXT" + "_UTF8\020\005\022\021\n\rWORD_DOCUMENT\020\007\022\007\n\003PDF\020\010\022\027\n\023P" + "OWERPOINT_DOCUMENT\020\t\022\022\n\016EXCEL_DOCUMENT\020\n" - + "\022\010\n\004AVRO\020\013\022\007\n\003CSV\020\014\022\007\n\003TSV\020\r\"\227\001\n\013Content" - + "Item\022\017\n\005value\030\003 \001(\tH\000\022-\n\005table\030\004 \001(\0132\034.g" - + "oogle.privacy.dlp.v2.TableH\000\022;\n\tbyte_ite" - + "m\030\005 \001(\0132&.google.privacy.dlp.v2.ByteCont" - + "entItemH\000B\013\n\tdata_item\"\235\001\n\005Table\022/\n\007head" - + "ers\030\001 \003(\0132\036.google.privacy.dlp.v2.FieldI" - + "d\022.\n\004rows\030\002 \003(\0132 .google.privacy.dlp.v2." - + "Table.Row\0323\n\003Row\022,\n\006values\030\001 \003(\0132\034.googl" - + "e.privacy.dlp.v2.Value\"]\n\rInspectResult\022" - + "0\n\010findings\030\001 \003(\0132\036.google.privacy.dlp.v" - + "2.Finding\022\032\n\022findings_truncated\030\002 \001(\010\"\337\005" - + "\n\007Finding\022\014\n\004name\030\016 \001(\t\022\r\n\005quote\030\001 \001(\t\0222" - + "\n\tinfo_type\030\002 \001(\0132\037.google.privacy.dlp.v" - + "2.InfoType\0225\n\nlikelihood\030\003 \001(\0162!.google." - + "privacy.dlp.v2.Likelihood\0221\n\010location\030\004 " - + "\001(\0132\037.google.privacy.dlp.v2.Location\022/\n\013" - + "create_time\030\006 \001(\0132\032.google.protobuf.Time" - + "stamp\0224\n\nquote_info\030\007 \001(\0132 .google.priva" - + "cy.dlp.v2.QuoteInfo\0225\n\rresource_name\030\010 \001" - + "(\tB\036\372A\033\n\031dlp.googleapis.com/DlpJob\0228\n\014tr" - + "igger_name\030\t \001(\tB\"\372A\037\n\035dlp.googleapis.co" - + "m/JobTrigger\022:\n\006labels\030\n \003(\0132*.google.pr" - + "ivacy.dlp.v2.Finding.LabelsEntry\0223\n\017job_" - + "create_time\030\013 \001(\0132\032.google.protobuf.Time" - + "stamp\0220\n\010job_name\030\r \001(\tB\036\372A\033\n\031dlp.google" - + "apis.com/DlpJob\022\022\n\nfinding_id\030\017 \001(\t\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001:[\352AX\n\032dlp.googleapis.com/Finding\022:pro" - + "jects/{project}/locations/{location}/fin" - + "dings/{finding}\"\353\001\n\010Location\0220\n\nbyte_ran" - + "ge\030\001 \001(\0132\034.google.privacy.dlp.v2.Range\0225" - + "\n\017codepoint_range\030\002 \001(\0132\034.google.privacy" - + ".dlp.v2.Range\022A\n\021content_locations\030\007 \003(\013" - + "2&.google.privacy.dlp.v2.ContentLocation" - + "\0223\n\tcontainer\030\010 \001(\0132 .google.privacy.dlp" - + ".v2.Container\"\227\003\n\017ContentLocation\022\026\n\016con" - + "tainer_name\030\001 \001(\t\022@\n\017record_location\030\002 \001" - + "(\0132%.google.privacy.dlp.v2.RecordLocatio" - + "nH\000\022>\n\016image_location\030\003 \001(\0132$.google.pri" - + "vacy.dlp.v2.ImageLocationH\000\022D\n\021document_" - + "location\030\005 \001(\0132\'.google.privacy.dlp.v2.D" - + "ocumentLocationH\000\022D\n\021metadata_location\030\010" - + " \001(\0132\'.google.privacy.dlp.v2.MetadataLoc" - + "ationH\000\0227\n\023container_timestamp\030\006 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022\031\n\021container_ve" - + "rsion\030\007 \001(\tB\n\n\010location\"\224\001\n\020MetadataLoca" - + "tion\0221\n\004type\030\001 \001(\0162#.google.privacy.dlp." - + "v2.MetadataType\022D\n\rstorage_label\030\003 \001(\0132+" - + ".google.privacy.dlp.v2.StorageMetadataLa" - + "belH\000B\007\n\005label\"#\n\024StorageMetadataLabel\022\013" - + "\n\003key\030\001 \001(\t\"\'\n\020DocumentLocation\022\023\n\013file_" - + "offset\030\001 \001(\003\"\266\001\n\016RecordLocation\0224\n\nrecor" - + "d_key\030\001 \001(\0132 .google.privacy.dlp.v2.Reco" - + "rdKey\0220\n\010field_id\030\002 \001(\0132\036.google.privacy" - + ".dlp.v2.FieldId\022<\n\016table_location\030\003 \001(\0132" - + "$.google.privacy.dlp.v2.TableLocation\"\"\n" - + "\rTableLocation\022\021\n\trow_index\030\001 \001(\003\"\254\001\n\tCo" - + "ntainer\022\014\n\004type\030\001 \001(\t\022\022\n\nproject_id\030\002 \001(" - + "\t\022\021\n\tfull_path\030\003 \001(\t\022\021\n\troot_path\030\004 \001(\t\022" - + "\025\n\rrelative_path\030\005 \001(\t\022/\n\013update_time\030\006 " - + "\001(\0132\032.google.protobuf.Timestamp\022\017\n\007versi" - + "on\030\007 \001(\t\"#\n\005Range\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030" - + "\002 \001(\003\"K\n\rImageLocation\022:\n\016bounding_boxes" - + "\030\001 \003(\0132\".google.privacy.dlp.v2.BoundingB" - + "ox\"G\n\013BoundingBox\022\013\n\003top\030\001 \001(\005\022\014\n\004left\030\002" - + " \001(\005\022\r\n\005width\030\003 \001(\005\022\016\n\006height\030\004 \001(\005\"\374\003\n\022" - + "RedactImageRequest\0222\n\006parent\030\001 \001(\tB\"\372A\037\022" - + "\035dlp.googleapis.com/DlpContent\022\023\n\013locati" - + "on_id\030\010 \001(\t\022<\n\016inspect_config\030\002 \001(\0132$.go" - + "ogle.privacy.dlp.v2.InspectConfig\022_\n\027ima" - + "ge_redaction_configs\030\005 \003(\0132>.google.priv" - + "acy.dlp.v2.RedactImageRequest.ImageRedac" - + "tionConfig\022\030\n\020include_findings\030\006 \001(\010\0229\n\t" - + "byte_item\030\007 \001(\0132&.google.privacy.dlp.v2." - + "ByteContentItem\032\250\001\n\024ImageRedactionConfig" - + "\0224\n\tinfo_type\030\001 \001(\0132\037.google.privacy.dlp" - + ".v2.InfoTypeH\000\022\031\n\017redact_all_text\030\002 \001(\010H" - + "\000\0225\n\017redaction_color\030\003 \001(\0132\034.google.priv" - + "acy.dlp.v2.ColorB\010\n\006target\"1\n\005Color\022\013\n\003r" - + "ed\030\001 \001(\002\022\r\n\005green\030\002 \001(\002\022\014\n\004blue\030\003 \001(\002\"\203\001" - + "\n\023RedactImageResponse\022\026\n\016redacted_image\030" - + "\001 \001(\014\022\026\n\016extracted_text\030\002 \001(\t\022<\n\016inspect" - + "_result\030\003 \001(\0132$.google.privacy.dlp.v2.In" - + "spectResult\"\330\002\n\030DeidentifyContentRequest" - + "\0222\n\006parent\030\001 \001(\tB\"\372A\037\022\035dlp.googleapis.co" - + "m/DlpContent\022B\n\021deidentify_config\030\002 \001(\0132" - + "\'.google.privacy.dlp.v2.DeidentifyConfig" - + "\022<\n\016inspect_config\030\003 \001(\0132$.google.privac" - + "y.dlp.v2.InspectConfig\0220\n\004item\030\004 \001(\0132\".g" - + "oogle.privacy.dlp.v2.ContentItem\022\035\n\025insp" - + "ect_template_name\030\005 \001(\t\022 \n\030deidentify_te" - + "mplate_name\030\006 \001(\t\022\023\n\013location_id\030\007 \001(\t\"\216" - + "\001\n\031DeidentifyContentResponse\0220\n\004item\030\001 \001" - + "(\0132\".google.privacy.dlp.v2.ContentItem\022?" - + "\n\010overview\030\002 \001(\0132-.google.privacy.dlp.v2" - + ".TransformationOverview\"\333\002\n\030ReidentifyCo" - + "ntentRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035dl" - + "p.googleapis.com/DlpContent\022B\n\021reidentif" - + "y_config\030\002 \001(\0132\'.google.privacy.dlp.v2.D" - + "eidentifyConfig\022<\n\016inspect_config\030\003 \001(\0132" - + "$.google.privacy.dlp.v2.InspectConfig\0220\n" - + "\004item\030\004 \001(\0132\".google.privacy.dlp.v2.Cont" - + "entItem\022\035\n\025inspect_template_name\030\005 \001(\t\022 " - + "\n\030reidentify_template_name\030\006 \001(\t\022\023\n\013loca" - + "tion_id\030\007 \001(\t\"\216\001\n\031ReidentifyContentRespo" - + "nse\0220\n\004item\030\001 \001(\0132\".google.privacy.dlp.v" - + "2.ContentItem\022?\n\010overview\030\002 \001(\0132-.google" - + ".privacy.dlp.v2.TransformationOverview\"\357" - + "\001\n\025InspectContentRequest\0222\n\006parent\030\001 \001(\t" - + "B\"\372A\037\022\035dlp.googleapis.com/DlpContent\022<\n\016" - + "inspect_config\030\002 \001(\0132$.google.privacy.dl" - + "p.v2.InspectConfig\0220\n\004item\030\003 \001(\0132\".googl" - + "e.privacy.dlp.v2.ContentItem\022\035\n\025inspect_" - + "template_name\030\004 \001(\t\022\023\n\013location_id\030\005 \001(\t" - + "\"N\n\026InspectContentResponse\0224\n\006result\030\001 \001" - + "(\0132$.google.privacy.dlp.v2.InspectResult" - + "\"\267\002\n\023OutputStorageConfig\0225\n\005table\030\001 \001(\0132" - + "$.google.privacy.dlp.v2.BigQueryTableH\000\022" - + "N\n\routput_schema\030\003 \001(\01627.google.privacy." - + "dlp.v2.OutputStorageConfig.OutputSchema\"" - + "\220\001\n\014OutputSchema\022\035\n\031OUTPUT_SCHEMA_UNSPEC" - + "IFIED\020\000\022\021\n\rBASIC_COLUMNS\020\001\022\017\n\013GCS_COLUMN" - + "S\020\002\022\025\n\021DATASTORE_COLUMNS\020\003\022\025\n\021BIG_QUERY_" - + "COLUMNS\020\004\022\017\n\013ALL_COLUMNS\020\005B\006\n\004type\"R\n\rIn" - + "foTypeStats\0222\n\tinfo_type\030\001 \001(\0132\037.google." - + "privacy.dlp.v2.InfoType\022\r\n\005count\030\002 \001(\003\"\300" - + "\004\n\030InspectDataSourceDetails\022[\n\021requested" - + "_options\030\002 \001(\0132@.google.privacy.dlp.v2.I" - + "nspectDataSourceDetails.RequestedOptions" - + "\022F\n\006result\030\003 \001(\01326.google.privacy.dlp.v2" - + ".InspectDataSourceDetails.Result\032\232\001\n\020Req" - + "uestedOptions\022I\n\031snapshot_inspect_templa" - + "te\030\001 \001(\0132&.google.privacy.dlp.v2.Inspect" - + "Template\022;\n\njob_config\030\003 \001(\0132\'.google.pr" - + "ivacy.dlp.v2.InspectJobConfig\032\341\001\n\006Result" - + "\022\027\n\017processed_bytes\030\001 \001(\003\022\035\n\025total_estim" - + "ated_bytes\030\002 \001(\003\022=\n\017info_type_stats\030\003 \003(" - + "\0132$.google.privacy.dlp.v2.InfoTypeStats\022" - + "\032\n\022num_rows_processed\030\005 \001(\003\022D\n\014hybrid_st" - + "ats\030\007 \001(\0132..google.privacy.dlp.v2.Hybrid" - + "InspectStatistics\"\264\001\n\034DataProfileBigQuer" - + "yRowSchema\022@\n\rtable_profile\030\001 \001(\0132\'.goog" - + "le.privacy.dlp.v2.TableDataProfileH\000\022B\n\016" - + "column_profile\030\002 \001(\0132(.google.privacy.dl" - + "p.v2.ColumnDataProfileH\000B\016\n\014data_profile" - + "\"`\n\027HybridInspectStatistics\022\027\n\017processed" - + "_count\030\001 \001(\003\022\025\n\raborted_count\030\002 \001(\003\022\025\n\rp" - + "ending_count\030\003 \001(\003\"l\n\rActionDetails\022P\n\022d" - + "eidentify_details\030\001 \001(\01322.google.privacy" - + ".dlp.v2.DeidentifyDataSourceDetailsH\000B\t\n" - + "\007details\"x\n\031DeidentifyDataSourceStats\022\031\n" - + "\021transformed_bytes\030\001 \001(\003\022\034\n\024transformati" - + "on_count\030\002 \001(\003\022\"\n\032transformation_error_c" - + "ount\030\003 \001(\003\"\362\003\n\033DeidentifyDataSourceDetai" - + "ls\022h\n\021requested_options\030\001 \001(\0132M.google.p" - + "rivacy.dlp.v2.DeidentifyDataSourceDetail" - + "s.RequestedDeidentifyOptions\022J\n\020deidenti" - + "fy_stats\030\002 \001(\01320.google.privacy.dlp.v2.D" - + "eidentifyDataSourceStats\032\234\002\n\032RequestedDe" - + "identifyOptions\022O\n\034snapshot_deidentify_t" - + "emplate\030\001 \001(\0132).google.privacy.dlp.v2.De" - + "identifyTemplate\022Z\n\'snapshot_structured_" - + "deidentify_template\030\002 \001(\0132).google.priva" - + "cy.dlp.v2.DeidentifyTemplate\022Q\n\036snapshot" - + "_image_redact_template\030\003 \001(\0132).google.pr" - + "ivacy.dlp.v2.DeidentifyTemplate\"\316\002\n\023Info" - + "TypeDescription\022\014\n\004name\030\001 \001(\t\022\024\n\014display" - + "_name\030\002 \001(\t\022@\n\014supported_by\030\003 \003(\0162*.goog" - + "le.privacy.dlp.v2.InfoTypeSupportedBy\022\023\n" - + "\013description\030\004 \001(\t\022;\n\010versions\030\t \003(\0132).g" - + "oogle.privacy.dlp.v2.VersionDescription\022" - + ";\n\ncategories\030\n \003(\0132\'.google.privacy.dlp" - + ".v2.InfoTypeCategory\022B\n\021sensitivity_scor" - + "e\030\013 \001(\0132\'.google.privacy.dlp.v2.Sensitiv" - + "ityScore\"\320\t\n\020InfoTypeCategory\022U\n\021locatio" - + "n_category\030\001 \001(\01628.google.privacy.dlp.v2" - + ".InfoTypeCategory.LocationCategoryH\000\022U\n\021" - + "industry_category\030\002 \001(\01628.google.privacy" - + ".dlp.v2.InfoTypeCategory.IndustryCategor" - + "yH\000\022M\n\rtype_category\030\003 \001(\01624.google.priv" - + "acy.dlp.v2.InfoTypeCategory.TypeCategory" - + "H\000\"\273\005\n\020LocationCategory\022\030\n\024LOCATION_UNSP" - + "ECIFIED\020\000\022\n\n\006GLOBAL\020\001\022\r\n\tARGENTINA\020\002\022\r\n\t" - + "AUSTRALIA\020\003\022\016\n\nAZERBAIJAN\0200\022\013\n\007BELGIUM\020\004" - + "\022\n\n\006BRAZIL\020\005\022\n\n\006CANADA\020\006\022\t\n\005CHILE\020\007\022\t\n\005C" - + "HINA\020\010\022\014\n\010COLOMBIA\020\t\022\013\n\007CROATIA\020*\022\013\n\007DEN" - + "MARK\020\n\022\n\n\006FRANCE\020\013\022\013\n\007FINLAND\020\014\022\013\n\007GERMA" - + "NY\020\r\022\r\n\tHONG_KONG\020\016\022\t\n\005INDIA\020\017\022\r\n\tINDONE" - + "SIA\020\020\022\013\n\007IRELAND\020\021\022\n\n\006ISRAEL\020\022\022\t\n\005ITALY\020" - + "\023\022\t\n\005JAPAN\020\024\022\016\n\nKAZAKHSTAN\020/\022\t\n\005KOREA\020\025\022" - + "\n\n\006MEXICO\020\026\022\023\n\017THE_NETHERLANDS\020\027\022\017\n\013NEW_" - + "ZEALAND\020)\022\n\n\006NORWAY\020\030\022\014\n\010PARAGUAY\020\031\022\010\n\004P" - + "ERU\020\032\022\n\n\006POLAND\020\033\022\014\n\010PORTUGAL\020\034\022\n\n\006RUSSI" - + "A\020,\022\r\n\tSINGAPORE\020\035\022\020\n\014SOUTH_AFRICA\020\036\022\t\n\005" - + "SPAIN\020\037\022\n\n\006SWEDEN\020 \022\017\n\013SWITZERLAND\020+\022\n\n\006" - + "TAIWAN\020!\022\014\n\010THAILAND\020\"\022\n\n\006TURKEY\020#\022\013\n\007UK" - + "RAINE\020-\022\022\n\016UNITED_KINGDOM\020$\022\021\n\rUNITED_ST" - + "ATES\020%\022\013\n\007URUGUAY\020&\022\016\n\nUZBEKISTAN\020.\022\r\n\tV" - + "ENEZUELA\020\'\022\014\n\010INTERNAL\020(\"]\n\020IndustryCate" - + "gory\022\030\n\024INDUSTRY_UNSPECIFIED\020\000\022\013\n\007FINANC" - + "E\020\001\022\n\n\006HEALTH\020\002\022\026\n\022TELECOMMUNICATIONS\020\003\"" - + "\225\001\n\014TypeCategory\022\024\n\020TYPE_UNSPECIFIED\020\000\022\007" - + "\n\003PII\020\001\022\010\n\004SPII\020\002\022\017\n\013DEMOGRAPHIC\020\003\022\016\n\nCR" - + "EDENTIAL\020\004\022\021\n\rGOVERNMENT_ID\020\005\022\014\n\010DOCUMEN" - + "T\020\006\022\032\n\026CONTEXTUAL_INFORMATION\020\007B\n\n\010categ" - + "ory\":\n\022VersionDescription\022\017\n\007version\030\001 \001" - + "(\t\022\023\n\013description\030\002 \001(\t\"b\n\024ListInfoTypes" - + "Request\022\016\n\006parent\030\004 \001(\t\022\025\n\rlanguage_code" - + "\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\023\n\013location_id\030\003 " - + "\001(\t\"W\n\025ListInfoTypesResponse\022>\n\ninfo_typ" - + "es\030\001 \003(\0132*.google.privacy.dlp.v2.InfoTyp" - + "eDescription\"\301\001\n\025RiskAnalysisJobConfig\022<" - + "\n\016privacy_metric\030\001 \001(\0132$.google.privacy." - + "dlp.v2.PrivacyMetric\022:\n\014source_table\030\002 \001" - + "(\0132$.google.privacy.dlp.v2.BigQueryTable" - + "\022.\n\007actions\030\003 \003(\0132\035.google.privacy.dlp.v" - + "2.Action\"\274\001\n\007QuasiId\0222\n\005field\030\001 \001(\0132\036.go" + + "\022\010\n\004AVRO\020\013\022\007\n\003CSV\020\014\022\007\n\003TSV\020\r\022\t\n\005AUDIO\020\017\022" + + "\t\n\005VIDEO\020\020\022\016\n\nEXECUTABLE\020\021\"\227\001\n\013ContentIt" + + "em\022\017\n\005value\030\003 \001(\tH\000\022-\n\005table\030\004 \001(\0132\034.goo" + + "gle.privacy.dlp.v2.TableH\000\022;\n\tbyte_item\030" + + "\005 \001(\0132&.google.privacy.dlp.v2.ByteConten" + + "tItemH\000B\013\n\tdata_item\"\235\001\n\005Table\022/\n\007header" + + "s\030\001 \003(\0132\036.google.privacy.dlp.v2.FieldId\022" + + ".\n\004rows\030\002 \003(\0132 .google.privacy.dlp.v2.Ta" + + "ble.Row\0323\n\003Row\022,\n\006values\030\001 \003(\0132\034.google." + + "privacy.dlp.v2.Value\"]\n\rInspectResult\0220\n" + + "\010findings\030\001 \003(\0132\036.google.privacy.dlp.v2." + + "Finding\022\032\n\022findings_truncated\030\002 \001(\010\"\337\005\n\007" + + "Finding\022\014\n\004name\030\016 \001(\t\022\r\n\005quote\030\001 \001(\t\0222\n\t" + + "info_type\030\002 \001(\0132\037.google.privacy.dlp.v2." + + "InfoType\0225\n\nlikelihood\030\003 \001(\0162!.google.pr" + + "ivacy.dlp.v2.Likelihood\0221\n\010location\030\004 \001(" + + "\0132\037.google.privacy.dlp.v2.Location\022/\n\013cr" + + "eate_time\030\006 \001(\0132\032.google.protobuf.Timest" + + "amp\0224\n\nquote_info\030\007 \001(\0132 .google.privacy" + + ".dlp.v2.QuoteInfo\0225\n\rresource_name\030\010 \001(\t" + + "B\036\372A\033\n\031dlp.googleapis.com/DlpJob\0228\n\014trig" + + "ger_name\030\t \001(\tB\"\372A\037\n\035dlp.googleapis.com/" + + "JobTrigger\022:\n\006labels\030\n \003(\0132*.google.priv" + + "acy.dlp.v2.Finding.LabelsEntry\0223\n\017job_cr" + + "eate_time\030\013 \001(\0132\032.google.protobuf.Timest" + + "amp\0220\n\010job_name\030\r \001(\tB\036\372A\033\n\031dlp.googleap" + + "is.com/DlpJob\022\022\n\nfinding_id\030\017 \001(\t\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + ":[\352AX\n\032dlp.googleapis.com/Finding\022:proje" + + "cts/{project}/locations/{location}/findi" + + "ngs/{finding}\"\353\001\n\010Location\0220\n\nbyte_range" + + "\030\001 \001(\0132\034.google.privacy.dlp.v2.Range\0225\n\017" + + "codepoint_range\030\002 \001(\0132\034.google.privacy.d" + + "lp.v2.Range\022A\n\021content_locations\030\007 \003(\0132&" + + ".google.privacy.dlp.v2.ContentLocation\0223" + + "\n\tcontainer\030\010 \001(\0132 .google.privacy.dlp.v" + + "2.Container\"\227\003\n\017ContentLocation\022\026\n\016conta" + + "iner_name\030\001 \001(\t\022@\n\017record_location\030\002 \001(\013" + + "2%.google.privacy.dlp.v2.RecordLocationH" + + "\000\022>\n\016image_location\030\003 \001(\0132$.google.priva" + + "cy.dlp.v2.ImageLocationH\000\022D\n\021document_lo" + + "cation\030\005 \001(\0132\'.google.privacy.dlp.v2.Doc" + + "umentLocationH\000\022D\n\021metadata_location\030\010 \001" + + "(\0132\'.google.privacy.dlp.v2.MetadataLocat" + + "ionH\000\0227\n\023container_timestamp\030\006 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022\031\n\021container_vers" + + "ion\030\007 \001(\tB\n\n\010location\"\224\001\n\020MetadataLocati" + + "on\0221\n\004type\030\001 \001(\0162#.google.privacy.dlp.v2" + + ".MetadataType\022D\n\rstorage_label\030\003 \001(\0132+.g" + + "oogle.privacy.dlp.v2.StorageMetadataLabe" + + "lH\000B\007\n\005label\"#\n\024StorageMetadataLabel\022\013\n\003" + + "key\030\001 \001(\t\"\'\n\020DocumentLocation\022\023\n\013file_of" + + "fset\030\001 \001(\003\"\266\001\n\016RecordLocation\0224\n\nrecord_" + + "key\030\001 \001(\0132 .google.privacy.dlp.v2.Record" + + "Key\0220\n\010field_id\030\002 \001(\0132\036.google.privacy.d" + + "lp.v2.FieldId\022<\n\016table_location\030\003 \001(\0132$." + + "google.privacy.dlp.v2.TableLocation\"\"\n\rT" + + "ableLocation\022\021\n\trow_index\030\001 \001(\003\"\254\001\n\tCont" + + "ainer\022\014\n\004type\030\001 \001(\t\022\022\n\nproject_id\030\002 \001(\t\022" + + "\021\n\tfull_path\030\003 \001(\t\022\021\n\troot_path\030\004 \001(\t\022\025\n" + + "\rrelative_path\030\005 \001(\t\022/\n\013update_time\030\006 \001(" + + "\0132\032.google.protobuf.Timestamp\022\017\n\007version" + + "\030\007 \001(\t\"#\n\005Range\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 " + + "\001(\003\"K\n\rImageLocation\022:\n\016bounding_boxes\030\001" + + " \003(\0132\".google.privacy.dlp.v2.BoundingBox" + + "\"G\n\013BoundingBox\022\013\n\003top\030\001 \001(\005\022\014\n\004left\030\002 \001" + + "(\005\022\r\n\005width\030\003 \001(\005\022\016\n\006height\030\004 \001(\005\"\374\003\n\022Re" + + "dactImageRequest\0222\n\006parent\030\001 \001(\tB\"\372A\037\022\035d" + + "lp.googleapis.com/DlpContent\022\023\n\013location" + + "_id\030\010 \001(\t\022<\n\016inspect_config\030\002 \001(\0132$.goog" + + "le.privacy.dlp.v2.InspectConfig\022_\n\027image" + + "_redaction_configs\030\005 \003(\0132>.google.privac" + + "y.dlp.v2.RedactImageRequest.ImageRedacti" + + "onConfig\022\030\n\020include_findings\030\006 \001(\010\0229\n\tby" + + "te_item\030\007 \001(\0132&.google.privacy.dlp.v2.By" + + "teContentItem\032\250\001\n\024ImageRedactionConfig\0224" + + "\n\tinfo_type\030\001 \001(\0132\037.google.privacy.dlp.v" + + "2.InfoTypeH\000\022\031\n\017redact_all_text\030\002 \001(\010H\000\022" + + "5\n\017redaction_color\030\003 \001(\0132\034.google.privac" + + "y.dlp.v2.ColorB\010\n\006target\"1\n\005Color\022\013\n\003red" + + "\030\001 \001(\002\022\r\n\005green\030\002 \001(\002\022\014\n\004blue\030\003 \001(\002\"\203\001\n\023" + + "RedactImageResponse\022\026\n\016redacted_image\030\001 " + + "\001(\014\022\026\n\016extracted_text\030\002 \001(\t\022<\n\016inspect_r" + + "esult\030\003 \001(\0132$.google.privacy.dlp.v2.Insp" + + "ectResult\"\330\002\n\030DeidentifyContentRequest\0222" + + "\n\006parent\030\001 \001(\tB\"\372A\037\022\035dlp.googleapis.com/" + + "DlpContent\022B\n\021deidentify_config\030\002 \001(\0132\'." + + "google.privacy.dlp.v2.DeidentifyConfig\022<" + + "\n\016inspect_config\030\003 \001(\0132$.google.privacy." + + "dlp.v2.InspectConfig\0220\n\004item\030\004 \001(\0132\".goo" + + "gle.privacy.dlp.v2.ContentItem\022\035\n\025inspec" + + "t_template_name\030\005 \001(\t\022 \n\030deidentify_temp" + + "late_name\030\006 \001(\t\022\023\n\013location_id\030\007 \001(\t\"\216\001\n" + + "\031DeidentifyContentResponse\0220\n\004item\030\001 \001(\013" + + "2\".google.privacy.dlp.v2.ContentItem\022?\n\010" + + "overview\030\002 \001(\0132-.google.privacy.dlp.v2.T" + + "ransformationOverview\"\333\002\n\030ReidentifyCont" + + "entRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035dlp." + + "googleapis.com/DlpContent\022B\n\021reidentify_" + + "config\030\002 \001(\0132\'.google.privacy.dlp.v2.Dei" + + "dentifyConfig\022<\n\016inspect_config\030\003 \001(\0132$." + + "google.privacy.dlp.v2.InspectConfig\0220\n\004i" + + "tem\030\004 \001(\0132\".google.privacy.dlp.v2.Conten" + + "tItem\022\035\n\025inspect_template_name\030\005 \001(\t\022 \n\030" + + "reidentify_template_name\030\006 \001(\t\022\023\n\013locati" + + "on_id\030\007 \001(\t\"\216\001\n\031ReidentifyContentRespons" + + "e\0220\n\004item\030\001 \001(\0132\".google.privacy.dlp.v2." + + "ContentItem\022?\n\010overview\030\002 \001(\0132-.google.p" + + "rivacy.dlp.v2.TransformationOverview\"\357\001\n" + + "\025InspectContentRequest\0222\n\006parent\030\001 \001(\tB\"" + + "\372A\037\022\035dlp.googleapis.com/DlpContent\022<\n\016in" + + "spect_config\030\002 \001(\0132$.google.privacy.dlp." + + "v2.InspectConfig\0220\n\004item\030\003 \001(\0132\".google." + + "privacy.dlp.v2.ContentItem\022\035\n\025inspect_te" + + "mplate_name\030\004 \001(\t\022\023\n\013location_id\030\005 \001(\t\"N" + + "\n\026InspectContentResponse\0224\n\006result\030\001 \001(\013" + + "2$.google.privacy.dlp.v2.InspectResult\"\267" + + "\002\n\023OutputStorageConfig\0225\n\005table\030\001 \001(\0132$." + + "google.privacy.dlp.v2.BigQueryTableH\000\022N\n" + + "\routput_schema\030\003 \001(\01627.google.privacy.dl" + + "p.v2.OutputStorageConfig.OutputSchema\"\220\001" + + "\n\014OutputSchema\022\035\n\031OUTPUT_SCHEMA_UNSPECIF" + + "IED\020\000\022\021\n\rBASIC_COLUMNS\020\001\022\017\n\013GCS_COLUMNS\020" + + "\002\022\025\n\021DATASTORE_COLUMNS\020\003\022\025\n\021BIG_QUERY_CO" + + "LUMNS\020\004\022\017\n\013ALL_COLUMNS\020\005B\006\n\004type\"R\n\rInfo" + + "TypeStats\0222\n\tinfo_type\030\001 \001(\0132\037.google.pr" + + "ivacy.dlp.v2.InfoType\022\r\n\005count\030\002 \001(\003\"\300\004\n" + + "\030InspectDataSourceDetails\022[\n\021requested_o" + + "ptions\030\002 \001(\0132@.google.privacy.dlp.v2.Ins" + + "pectDataSourceDetails.RequestedOptions\022F" + + "\n\006result\030\003 \001(\01326.google.privacy.dlp.v2.I" + + "nspectDataSourceDetails.Result\032\232\001\n\020Reque" + + "stedOptions\022I\n\031snapshot_inspect_template" + + "\030\001 \001(\0132&.google.privacy.dlp.v2.InspectTe" + + "mplate\022;\n\njob_config\030\003 \001(\0132\'.google.priv" + + "acy.dlp.v2.InspectJobConfig\032\341\001\n\006Result\022\027" + + "\n\017processed_bytes\030\001 \001(\003\022\035\n\025total_estimat" + + "ed_bytes\030\002 \001(\003\022=\n\017info_type_stats\030\003 \003(\0132" + + "$.google.privacy.dlp.v2.InfoTypeStats\022\032\n" + + "\022num_rows_processed\030\005 \001(\003\022D\n\014hybrid_stat" + + "s\030\007 \001(\0132..google.privacy.dlp.v2.HybridIn" + + "spectStatistics\"\377\001\n\034DataProfileBigQueryR" + + "owSchema\022@\n\rtable_profile\030\001 \001(\0132\'.google" + + ".privacy.dlp.v2.TableDataProfileH\000\022B\n\016co" + + "lumn_profile\030\002 \001(\0132(.google.privacy.dlp." + + "v2.ColumnDataProfileH\000\022I\n\022file_store_pro" + + "file\030\003 \001(\0132+.google.privacy.dlp.v2.FileS" + + "toreDataProfileH\000B\016\n\014data_profile\"`\n\027Hyb" + + "ridInspectStatistics\022\027\n\017processed_count\030" + + "\001 \001(\003\022\025\n\raborted_count\030\002 \001(\003\022\025\n\rpending_" + + "count\030\003 \001(\003\"l\n\rActionDetails\022P\n\022deidenti" + + "fy_details\030\001 \001(\01322.google.privacy.dlp.v2" + + ".DeidentifyDataSourceDetailsH\000B\t\n\007detail" + + "s\"x\n\031DeidentifyDataSourceStats\022\031\n\021transf" + + "ormed_bytes\030\001 \001(\003\022\034\n\024transformation_coun" + + "t\030\002 \001(\003\022\"\n\032transformation_error_count\030\003 " + + "\001(\003\"\362\003\n\033DeidentifyDataSourceDetails\022h\n\021r" + + "equested_options\030\001 \001(\0132M.google.privacy." + + "dlp.v2.DeidentifyDataSourceDetails.Reque" + + "stedDeidentifyOptions\022J\n\020deidentify_stat" + + "s\030\002 \001(\01320.google.privacy.dlp.v2.Deidenti" + + "fyDataSourceStats\032\234\002\n\032RequestedDeidentif" + + "yOptions\022O\n\034snapshot_deidentify_template" + + "\030\001 \001(\0132).google.privacy.dlp.v2.Deidentif" + + "yTemplate\022Z\n\'snapshot_structured_deident" + + "ify_template\030\002 \001(\0132).google.privacy.dlp." + + "v2.DeidentifyTemplate\022Q\n\036snapshot_image_" + + "redact_template\030\003 \001(\0132).google.privacy.d" + + "lp.v2.DeidentifyTemplate\"\316\002\n\023InfoTypeDes" + + "cription\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002" + + " \001(\t\022@\n\014supported_by\030\003 \003(\0162*.google.priv" + + "acy.dlp.v2.InfoTypeSupportedBy\022\023\n\013descri" + + "ption\030\004 \001(\t\022;\n\010versions\030\t \003(\0132).google.p" + + "rivacy.dlp.v2.VersionDescription\022;\n\ncate" + + "gories\030\n \003(\0132\'.google.privacy.dlp.v2.Inf" + + "oTypeCategory\022B\n\021sensitivity_score\030\013 \001(\013" + + "2\'.google.privacy.dlp.v2.SensitivityScor" + + "e\"\352\t\n\020InfoTypeCategory\022U\n\021location_categ" + + "ory\030\001 \001(\01628.google.privacy.dlp.v2.InfoTy" + + "peCategory.LocationCategoryH\000\022U\n\021industr" + + "y_category\030\002 \001(\01628.google.privacy.dlp.v2" + + ".InfoTypeCategory.IndustryCategoryH\000\022M\n\r" + + "type_category\030\003 \001(\01624.google.privacy.dlp" + + ".v2.InfoTypeCategory.TypeCategoryH\000\"\325\005\n\020" + + "LocationCategory\022\030\n\024LOCATION_UNSPECIFIED" + + "\020\000\022\n\n\006GLOBAL\020\001\022\r\n\tARGENTINA\020\002\022\013\n\007ARMENIA" + + "\0203\022\r\n\tAUSTRALIA\020\003\022\016\n\nAZERBAIJAN\0200\022\013\n\007BEL" + + "ARUS\0202\022\013\n\007BELGIUM\020\004\022\n\n\006BRAZIL\020\005\022\n\n\006CANAD" + + "A\020\006\022\t\n\005CHILE\020\007\022\t\n\005CHINA\020\010\022\014\n\010COLOMBIA\020\t\022" + + "\013\n\007CROATIA\020*\022\013\n\007DENMARK\020\n\022\n\n\006FRANCE\020\013\022\013\n" + + "\007FINLAND\020\014\022\013\n\007GERMANY\020\r\022\r\n\tHONG_KONG\020\016\022\t" + + "\n\005INDIA\020\017\022\r\n\tINDONESIA\020\020\022\013\n\007IRELAND\020\021\022\n\n" + + "\006ISRAEL\020\022\022\t\n\005ITALY\020\023\022\t\n\005JAPAN\020\024\022\016\n\nKAZAK" + + "HSTAN\020/\022\t\n\005KOREA\020\025\022\n\n\006MEXICO\020\026\022\023\n\017THE_NE" + + "THERLANDS\020\027\022\017\n\013NEW_ZEALAND\020)\022\n\n\006NORWAY\020\030" + + "\022\014\n\010PARAGUAY\020\031\022\010\n\004PERU\020\032\022\n\n\006POLAND\020\033\022\014\n\010" + + "PORTUGAL\020\034\022\n\n\006RUSSIA\020,\022\r\n\tSINGAPORE\020\035\022\020\n" + + "\014SOUTH_AFRICA\020\036\022\t\n\005SPAIN\020\037\022\n\n\006SWEDEN\020 \022\017" + + "\n\013SWITZERLAND\020+\022\n\n\006TAIWAN\020!\022\014\n\010THAILAND\020" + + "\"\022\n\n\006TURKEY\020#\022\013\n\007UKRAINE\020-\022\022\n\016UNITED_KIN" + + "GDOM\020$\022\021\n\rUNITED_STATES\020%\022\013\n\007URUGUAY\020&\022\016" + + "\n\nUZBEKISTAN\020.\022\r\n\tVENEZUELA\020\'\022\014\n\010INTERNA" + + "L\020(\"]\n\020IndustryCategory\022\030\n\024INDUSTRY_UNSP" + + "ECIFIED\020\000\022\013\n\007FINANCE\020\001\022\n\n\006HEALTH\020\002\022\026\n\022TE" + + "LECOMMUNICATIONS\020\003\"\225\001\n\014TypeCategory\022\024\n\020T" + + "YPE_UNSPECIFIED\020\000\022\007\n\003PII\020\001\022\010\n\004SPII\020\002\022\017\n\013" + + "DEMOGRAPHIC\020\003\022\016\n\nCREDENTIAL\020\004\022\021\n\rGOVERNM" + + "ENT_ID\020\005\022\014\n\010DOCUMENT\020\006\022\032\n\026CONTEXTUAL_INF" + + "ORMATION\020\007B\n\n\010category\":\n\022VersionDescrip" + + "tion\022\017\n\007version\030\001 \001(\t\022\023\n\013description\030\002 \001" + + "(\t\"b\n\024ListInfoTypesRequest\022\016\n\006parent\030\004 \001" + + "(\t\022\025\n\rlanguage_code\030\001 \001(\t\022\016\n\006filter\030\002 \001(" + + "\t\022\023\n\013location_id\030\003 \001(\t\"W\n\025ListInfoTypesR" + + "esponse\022>\n\ninfo_types\030\001 \003(\0132*.google.pri" + + "vacy.dlp.v2.InfoTypeDescription\"\301\001\n\025Risk" + + "AnalysisJobConfig\022<\n\016privacy_metric\030\001 \001(" + + "\0132$.google.privacy.dlp.v2.PrivacyMetric\022" + + ":\n\014source_table\030\002 \001(\0132$.google.privacy.d" + + "lp.v2.BigQueryTable\022.\n\007actions\030\003 \003(\0132\035.g" + + "oogle.privacy.dlp.v2.Action\"\274\001\n\007QuasiId\022" + + "2\n\005field\030\001 \001(\0132\036.google.privacy.dlp.v2.F" + + "ieldIdB\003\340A\002\0224\n\tinfo_type\030\002 \001(\0132\037.google." + + "privacy.dlp.v2.InfoTypeH\000\022\024\n\ncustom_tag\030" + + "\003 \001(\tH\000\022*\n\010inferred\030\004 \001(\0132\026.google.proto" + + "buf.EmptyH\000B\005\n\003tag\"\276\002\n\020StatisticalTable\022" + + "8\n\005table\030\003 \001(\0132$.google.privacy.dlp.v2.B" + + "igQueryTableB\003\340A\002\022T\n\tquasi_ids\030\001 \003(\0132<.g" + + "oogle.privacy.dlp.v2.StatisticalTable.Qu" + + "asiIdentifierFieldB\003\340A\002\022?\n\022relative_freq" + + "uency\030\002 \001(\0132\036.google.privacy.dlp.v2.Fiel" + + "dIdB\003\340A\002\032Y\n\024QuasiIdentifierField\022-\n\005fiel" + + "d\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldId\022" + + "\022\n\ncustom_tag\030\002 \001(\t\"\223\017\n\rPrivacyMetric\022[\n" + + "\026numerical_stats_config\030\001 \001(\01329.google.p" + + "rivacy.dlp.v2.PrivacyMetric.NumericalSta" + + "tsConfigH\000\022_\n\030categorical_stats_config\030\002" + + " \001(\0132;.google.privacy.dlp.v2.PrivacyMetr" + + "ic.CategoricalStatsConfigH\000\022S\n\022k_anonymi" + + "ty_config\030\003 \001(\01325.google.privacy.dlp.v2." + + "PrivacyMetric.KAnonymityConfigH\000\022S\n\022l_di" + + "versity_config\030\004 \001(\01325.google.privacy.dl" + + "p.v2.PrivacyMetric.LDiversityConfigH\000\022\\\n" + + "\027k_map_estimation_config\030\005 \001(\01329.google." + + "privacy.dlp.v2.PrivacyMetric.KMapEstimat" + + "ionConfigH\000\022n\n delta_presence_estimation" + + "_config\030\006 \001(\0132B.google.privacy.dlp.v2.Pr" + + "ivacyMetric.DeltaPresenceEstimationConfi" + + "gH\000\032E\n\024NumericalStatsConfig\022-\n\005field\030\001 \001" + + "(\0132\036.google.privacy.dlp.v2.FieldId\032G\n\026Ca" + + "tegoricalStatsConfig\022-\n\005field\030\001 \001(\0132\036.go" + + "ogle.privacy.dlp.v2.FieldId\032y\n\020KAnonymit" + + "yConfig\0221\n\tquasi_ids\030\001 \003(\0132\036.google.priv" + + "acy.dlp.v2.FieldId\0222\n\tentity_id\030\002 \001(\0132\037." + + "google.privacy.dlp.v2.EntityId\032\202\001\n\020LDive" + + "rsityConfig\0221\n\tquasi_ids\030\001 \003(\0132\036.google." + + "privacy.dlp.v2.FieldId\022;\n\023sensitive_attr" + + "ibute\030\002 \001(\0132\036.google.privacy.dlp.v2.Fiel" + + "dId\032\201\006\n\024KMapEstimationConfig\022]\n\tquasi_id" + + "s\030\001 \003(\0132E.google.privacy.dlp.v2.PrivacyM" + + "etric.KMapEstimationConfig.TaggedFieldB\003" + + "\340A\002\022\023\n\013region_code\030\002 \001(\t\022b\n\020auxiliary_ta" + + "bles\030\003 \003(\0132H.google.privacy.dlp.v2.Priva" + + "cyMetric.KMapEstimationConfig.AuxiliaryT" + + "able\032\300\001\n\013TaggedField\0222\n\005field\030\001 \001(\0132\036.go" + "ogle.privacy.dlp.v2.FieldIdB\003\340A\002\0224\n\tinfo" + "_type\030\002 \001(\0132\037.google.privacy.dlp.v2.Info" + "TypeH\000\022\024\n\ncustom_tag\030\003 \001(\tH\000\022*\n\010inferred" - + "\030\004 \001(\0132\026.google.protobuf.EmptyH\000B\005\n\003tag\"" - + "\276\002\n\020StatisticalTable\0228\n\005table\030\003 \001(\0132$.go" - + "ogle.privacy.dlp.v2.BigQueryTableB\003\340A\002\022T" - + "\n\tquasi_ids\030\001 \003(\0132<.google.privacy.dlp.v" - + "2.StatisticalTable.QuasiIdentifierFieldB" - + "\003\340A\002\022?\n\022relative_frequency\030\002 \001(\0132\036.googl" - + "e.privacy.dlp.v2.FieldIdB\003\340A\002\032Y\n\024QuasiId" - + "entifierField\022-\n\005field\030\001 \001(\0132\036.google.pr" - + "ivacy.dlp.v2.FieldId\022\022\n\ncustom_tag\030\002 \001(\t" - + "\"\223\017\n\rPrivacyMetric\022[\n\026numerical_stats_co" - + "nfig\030\001 \001(\01329.google.privacy.dlp.v2.Priva" - + "cyMetric.NumericalStatsConfigH\000\022_\n\030categ" - + "orical_stats_config\030\002 \001(\0132;.google.priva" - + "cy.dlp.v2.PrivacyMetric.CategoricalStats" - + "ConfigH\000\022S\n\022k_anonymity_config\030\003 \001(\01325.g" - + "oogle.privacy.dlp.v2.PrivacyMetric.KAnon" - + "ymityConfigH\000\022S\n\022l_diversity_config\030\004 \001(" - + "\01325.google.privacy.dlp.v2.PrivacyMetric." - + "LDiversityConfigH\000\022\\\n\027k_map_estimation_c" - + "onfig\030\005 \001(\01329.google.privacy.dlp.v2.Priv" - + "acyMetric.KMapEstimationConfigH\000\022n\n delt" - + "a_presence_estimation_config\030\006 \001(\0132B.goo" - + "gle.privacy.dlp.v2.PrivacyMetric.DeltaPr" - + "esenceEstimationConfigH\000\032E\n\024NumericalSta" - + "tsConfig\022-\n\005field\030\001 \001(\0132\036.google.privacy" - + ".dlp.v2.FieldId\032G\n\026CategoricalStatsConfi" - + "g\022-\n\005field\030\001 \001(\0132\036.google.privacy.dlp.v2" - + ".FieldId\032y\n\020KAnonymityConfig\0221\n\tquasi_id" - + "s\030\001 \003(\0132\036.google.privacy.dlp.v2.FieldId\022" - + "2\n\tentity_id\030\002 \001(\0132\037.google.privacy.dlp." - + "v2.EntityId\032\202\001\n\020LDiversityConfig\0221\n\tquas" - + "i_ids\030\001 \003(\0132\036.google.privacy.dlp.v2.Fiel" - + "dId\022;\n\023sensitive_attribute\030\002 \001(\0132\036.googl" - + "e.privacy.dlp.v2.FieldId\032\201\006\n\024KMapEstimat" - + "ionConfig\022]\n\tquasi_ids\030\001 \003(\0132E.google.pr" - + "ivacy.dlp.v2.PrivacyMetric.KMapEstimatio" - + "nConfig.TaggedFieldB\003\340A\002\022\023\n\013region_code\030" - + "\002 \001(\t\022b\n\020auxiliary_tables\030\003 \003(\0132H.google" - + ".privacy.dlp.v2.PrivacyMetric.KMapEstima" - + "tionConfig.AuxiliaryTable\032\300\001\n\013TaggedFiel" - + "d\0222\n\005field\030\001 \001(\0132\036.google.privacy.dlp.v2" - + ".FieldIdB\003\340A\002\0224\n\tinfo_type\030\002 \001(\0132\037.googl" - + "e.privacy.dlp.v2.InfoTypeH\000\022\024\n\ncustom_ta" - + "g\030\003 \001(\tH\000\022*\n\010inferred\030\004 \001(\0132\026.google.pro" - + "tobuf.EmptyH\000B\005\n\003tag\032\315\002\n\016AuxiliaryTable\022" - + "8\n\005table\030\003 \001(\0132$.google.privacy.dlp.v2.B" - + "igQueryTableB\003\340A\002\022m\n\tquasi_ids\030\001 \003(\0132U.g" - + "oogle.privacy.dlp.v2.PrivacyMetric.KMapE" - + "stimationConfig.AuxiliaryTable.QuasiIdFi" - + "eldB\003\340A\002\022?\n\022relative_frequency\030\002 \001(\0132\036.g" - + "oogle.privacy.dlp.v2.FieldIdB\003\340A\002\032Q\n\014Qua" - + "siIdField\022-\n\005field\030\001 \001(\0132\036.google.privac" - + "y.dlp.v2.FieldId\022\022\n\ncustom_tag\030\002 \001(\t\032\257\001\n" - + "\035DeltaPresenceEstimationConfig\0226\n\tquasi_" - + "ids\030\001 \003(\0132\036.google.privacy.dlp.v2.QuasiI" - + "dB\003\340A\002\022\023\n\013region_code\030\002 \001(\t\022A\n\020auxiliary" - + "_tables\030\003 \003(\0132\'.google.privacy.dlp.v2.St" - + "atisticalTableB\006\n\004type\"\301\037\n\034AnalyzeDataSo" - + "urceRiskDetails\022F\n\030requested_privacy_met" - + "ric\030\001 \001(\0132$.google.privacy.dlp.v2.Privac" - + "yMetric\022D\n\026requested_source_table\030\002 \001(\0132" - + "$.google.privacy.dlp.v2.BigQueryTable\022j\n" - + "\026numerical_stats_result\030\003 \001(\0132H.google.p" + + "\030\004 \001(\0132\026.google.protobuf.EmptyH\000B\005\n\003tag\032" + + "\315\002\n\016AuxiliaryTable\0228\n\005table\030\003 \001(\0132$.goog" + + "le.privacy.dlp.v2.BigQueryTableB\003\340A\002\022m\n\t" + + "quasi_ids\030\001 \003(\0132U.google.privacy.dlp.v2." + + "PrivacyMetric.KMapEstimationConfig.Auxil" + + "iaryTable.QuasiIdFieldB\003\340A\002\022?\n\022relative_" + + "frequency\030\002 \001(\0132\036.google.privacy.dlp.v2." + + "FieldIdB\003\340A\002\032Q\n\014QuasiIdField\022-\n\005field\030\001 " + + "\001(\0132\036.google.privacy.dlp.v2.FieldId\022\022\n\nc" + + "ustom_tag\030\002 \001(\t\032\257\001\n\035DeltaPresenceEstimat" + + "ionConfig\0226\n\tquasi_ids\030\001 \003(\0132\036.google.pr" + + "ivacy.dlp.v2.QuasiIdB\003\340A\002\022\023\n\013region_code" + + "\030\002 \001(\t\022A\n\020auxiliary_tables\030\003 \003(\0132\'.googl" + + "e.privacy.dlp.v2.StatisticalTableB\006\n\004typ" + + "e\"\301\037\n\034AnalyzeDataSourceRiskDetails\022F\n\030re" + + "quested_privacy_metric\030\001 \001(\0132$.google.pr" + + "ivacy.dlp.v2.PrivacyMetric\022D\n\026requested_" + + "source_table\030\002 \001(\0132$.google.privacy.dlp." + + "v2.BigQueryTable\022j\n\026numerical_stats_resu" + + "lt\030\003 \001(\0132H.google.privacy.dlp.v2.Analyze" + + "DataSourceRiskDetails.NumericalStatsResu" + + "ltH\000\022n\n\030categorical_stats_result\030\004 \001(\0132J" + + ".google.privacy.dlp.v2.AnalyzeDataSource" + + "RiskDetails.CategoricalStatsResultH\000\022b\n\022" + + "k_anonymity_result\030\005 \001(\0132D.google.privac" + + "y.dlp.v2.AnalyzeDataSourceRiskDetails.KA" + + "nonymityResultH\000\022b\n\022l_diversity_result\030\006" + + " \001(\0132D.google.privacy.dlp.v2.AnalyzeData" + + "SourceRiskDetails.LDiversityResultH\000\022k\n\027" + + "k_map_estimation_result\030\007 \001(\0132H.google.p" + "rivacy.dlp.v2.AnalyzeDataSourceRiskDetai" - + "ls.NumericalStatsResultH\000\022n\n\030categorical" - + "_stats_result\030\004 \001(\0132J.google.privacy.dlp" - + ".v2.AnalyzeDataSourceRiskDetails.Categor" - + "icalStatsResultH\000\022b\n\022k_anonymity_result\030" - + "\005 \001(\0132D.google.privacy.dlp.v2.AnalyzeDat" - + "aSourceRiskDetails.KAnonymityResultH\000\022b\n" - + "\022l_diversity_result\030\006 \001(\0132D.google.priva" - + "cy.dlp.v2.AnalyzeDataSourceRiskDetails.L" - + "DiversityResultH\000\022k\n\027k_map_estimation_re" - + "sult\030\007 \001(\0132H.google.privacy.dlp.v2.Analy" - + "zeDataSourceRiskDetails.KMapEstimationRe" - + "sultH\000\022}\n delta_presence_estimation_resu" - + "lt\030\t \001(\0132Q.google.privacy.dlp.v2.Analyze" - + "DataSourceRiskDetails.DeltaPresenceEstim" - + "ationResultH\000\022k\n\021requested_options\030\n \001(\013" - + "2P.google.privacy.dlp.v2.AnalyzeDataSour" - + "ceRiskDetails.RequestedRiskAnalysisOptio" - + "ns\032\257\001\n\024NumericalStatsResult\022/\n\tmin_value" - + "\030\001 \001(\0132\034.google.privacy.dlp.v2.Value\022/\n\t" - + "max_value\030\002 \001(\0132\034.google.privacy.dlp.v2." - + "Value\0225\n\017quantile_values\030\004 \003(\0132\034.google." - + "privacy.dlp.v2.Value\032\215\003\n\026CategoricalStat" - + "sResult\022\225\001\n!value_frequency_histogram_bu" - + "ckets\030\005 \003(\0132j.google.privacy.dlp.v2.Anal" - + "yzeDataSourceRiskDetails.CategoricalStat" - + "sResult.CategoricalStatsHistogramBucket\032" - + "\332\001\n\037CategoricalStatsHistogramBucket\022#\n\033v" - + "alue_frequency_lower_bound\030\001 \001(\003\022#\n\033valu" - + "e_frequency_upper_bound\030\002 \001(\003\022\023\n\013bucket_" - + "size\030\003 \001(\003\022<\n\rbucket_values\030\004 \003(\0132%.goog" - + "le.privacy.dlp.v2.ValueFrequency\022\032\n\022buck" - + "et_value_count\030\005 \001(\003\032\265\004\n\020KAnonymityResul" - + "t\022\213\001\n#equivalence_class_histogram_bucket" - + "s\030\005 \003(\0132^.google.privacy.dlp.v2.AnalyzeD" - + "ataSourceRiskDetails.KAnonymityResult.KA" - + "nonymityHistogramBucket\032t\n\032KAnonymityEqu" - + "ivalenceClass\0226\n\020quasi_ids_values\030\001 \003(\0132" - + "\034.google.privacy.dlp.v2.Value\022\036\n\026equival" - + "ence_class_size\030\002 \001(\003\032\234\002\n\031KAnonymityHist" - + "ogramBucket\022*\n\"equivalence_class_size_lo" - + "wer_bound\030\001 \001(\003\022*\n\"equivalence_class_siz" - + "e_upper_bound\030\002 \001(\003\022\023\n\013bucket_size\030\003 \001(\003" - + "\022v\n\rbucket_values\030\004 \003(\0132_.google.privacy" - + ".dlp.v2.AnalyzeDataSourceRiskDetails.KAn" - + "onymityResult.KAnonymityEquivalenceClass" - + "\022\032\n\022bucket_value_count\030\005 \001(\003\032\260\005\n\020LDivers" - + "ityResult\022\223\001\n+sensitive_value_frequency_" - + "histogram_buckets\030\005 \003(\0132^.google.privacy" - + ".dlp.v2.AnalyzeDataSourceRiskDetails.LDi" - + "versityResult.LDiversityHistogramBucket\032" - + "\340\001\n\032LDiversityEquivalenceClass\0226\n\020quasi_", - "ids_values\030\001 \003(\0132\034.google.privacy.dlp.v2" - + ".Value\022\036\n\026equivalence_class_size\030\002 \001(\003\022%" - + "\n\035num_distinct_sensitive_values\030\003 \001(\003\022C\n" - + "\024top_sensitive_values\030\004 \003(\0132%.google.pri" - + "vacy.dlp.v2.ValueFrequency\032\242\002\n\031LDiversit" - + "yHistogramBucket\022-\n%sensitive_value_freq" - + "uency_lower_bound\030\001 \001(\003\022-\n%sensitive_val" - + "ue_frequency_upper_bound\030\002 \001(\003\022\023\n\013bucket" - + "_size\030\003 \001(\003\022v\n\rbucket_values\030\004 \003(\0132_.goo" + + "ls.KMapEstimationResultH\000\022}\n delta_prese" + + "nce_estimation_result\030\t \001(\0132Q.google.pri" + + "vacy.dlp.v2.AnalyzeDataSourceRiskDetails" + + ".DeltaPresenceEstimationResultH\000\022k\n\021requ" + + "ested_options\030\n \001(\0132P.google.privacy.dlp" + + ".v2.AnalyzeDataSourceRiskDetails.Request" + + "edRiskAnalysisOptions\032\257\001\n\024NumericalStats" + + "Result\022/\n\tmin_value\030\001 \001(\0132\034.google.priva" + + "cy.dlp.v2.Value\022/\n\tmax_value\030\002 \001(\0132\034.goo" + + "gle.privacy.dlp.v2.Value\0225\n\017quantile_val" + + "ues\030\004 \003(\0132\034.google.privacy.dlp.v2.Value\032" + + "\215\003\n\026CategoricalStatsResult\022\225\001\n!value_fre" + + "quency_histogram_buckets\030\005 \003(\0132j.google." + + "privacy.dlp.v2.AnalyzeDataSourceRiskDeta" + + "ils.CategoricalStatsResult.CategoricalSt" + + "atsHistogramBucket\032\332\001\n\037CategoricalStatsH" + + "istogramBucket\022#\n\033value_frequency_lower_" + + "bound\030\001 \001(\003\022#\n\033value_frequency_upper_bou" + + "nd\030\002 \001(\003\022\023\n\013bucket_size\030\003 \001(\003\022<\n\rbucket_" + + "values\030\004 \003(\0132%.google.privacy.dlp.v2.Val" + + "ueFrequency\022\032\n\022bucket_value_count\030\005 \001(\003\032" + + "\265\004\n\020KAnonymityResult\022\213\001\n#equivalence_cla" + + "ss_histogram_buckets\030\005 \003(\0132^.google.priv" + + "acy.dlp.v2.AnalyzeDataSourceRiskDetails." + + "KAnonymityResult.KAnonymityHistogramBuck" + + "et\032t\n\032KAnonymityEquivalenceClass\0226\n\020quas" + + "i_ids_values\030\001 \003(\0132\034.google.privacy.dlp." + + "v2.Value\022\036\n\026equivalence_class_size\030\002 \001(\003" + + "\032\234\002\n\031KAnonymityHistogramBucket\022*\n\"equiva" + + "lence_class_size_lower_bound\030\001 \001(\003\022*\n\"eq" + + "uivalence_class_size_upper_bound\030\002 \001(\003\022\023" + + "\n\013bucket_size\030\003 \001(\003\022v\n\rbucket_values\030\004 \003" + + "(\0132_.google.privacy.dlp.v2.AnalyzeDataSo" + + "urceRiskDetails.KAnonymityResult.KAnonym" + + "ityEquivalenceClass\022\032\n\022bucket_value_coun" + + "t\030\005 \001(\003\032\260\005\n\020LDiversityResult\022\223\001\n+sensiti" + + "ve_value_frequency_histogram_buckets\030\005 \003", + "(\0132^.google.privacy.dlp.v2.AnalyzeDataSo" + + "urceRiskDetails.LDiversityResult.LDivers" + + "ityHistogramBucket\032\340\001\n\032LDiversityEquival" + + "enceClass\0226\n\020quasi_ids_values\030\001 \003(\0132\034.go" + + "ogle.privacy.dlp.v2.Value\022\036\n\026equivalence" + + "_class_size\030\002 \001(\003\022%\n\035num_distinct_sensit" + + "ive_values\030\003 \001(\003\022C\n\024top_sensitive_values" + + "\030\004 \003(\0132%.google.privacy.dlp.v2.ValueFreq" + + "uency\032\242\002\n\031LDiversityHistogramBucket\022-\n%s" + + "ensitive_value_frequency_lower_bound\030\001 \001" + + "(\003\022-\n%sensitive_value_frequency_upper_bo" + + "und\030\002 \001(\003\022\023\n\013bucket_size\030\003 \001(\003\022v\n\rbucket" + + "_values\030\004 \003(\0132_.google.privacy.dlp.v2.An" + + "alyzeDataSourceRiskDetails.LDiversityRes" + + "ult.LDiversityEquivalenceClass\022\032\n\022bucket" + + "_value_count\030\005 \001(\003\032\225\004\n\024KMapEstimationRes" + + "ult\022\212\001\n\032k_map_estimation_histogram\030\001 \003(\013" + + "2f.google.privacy.dlp.v2.AnalyzeDataSour" + + "ceRiskDetails.KMapEstimationResult.KMapE" + + "stimationHistogramBucket\032r\n\033KMapEstimati" + + "onQuasiIdValues\0226\n\020quasi_ids_values\030\001 \003(" + + "\0132\034.google.privacy.dlp.v2.Value\022\033\n\023estim" + + "ated_anonymity\030\002 \001(\003\032\373\001\n\035KMapEstimationH" + + "istogramBucket\022\025\n\rmin_anonymity\030\001 \001(\003\022\025\n" + + "\rmax_anonymity\030\002 \001(\003\022\023\n\013bucket_size\030\005 \001(" + + "\003\022{\n\rbucket_values\030\006 \003(\0132d.google.privac" + + "y.dlp.v2.AnalyzeDataSourceRiskDetails.KM" + + "apEstimationResult.KMapEstimationQuasiId" + + "Values\022\032\n\022bucket_value_count\030\007 \001(\003\032\344\004\n\035D" + + "eltaPresenceEstimationResult\022\245\001\n#delta_p" + + "resence_estimation_histogram\030\001 \003(\0132x.goo" + "gle.privacy.dlp.v2.AnalyzeDataSourceRisk" - + "Details.LDiversityResult.LDiversityEquiv" - + "alenceClass\022\032\n\022bucket_value_count\030\005 \001(\003\032" - + "\225\004\n\024KMapEstimationResult\022\212\001\n\032k_map_estim" - + "ation_histogram\030\001 \003(\0132f.google.privacy.d" - + "lp.v2.AnalyzeDataSourceRiskDetails.KMapE" - + "stimationResult.KMapEstimationHistogramB" - + "ucket\032r\n\033KMapEstimationQuasiIdValues\0226\n\020" + + "Details.DeltaPresenceEstimationResult.De" + + "ltaPresenceEstimationHistogramBucket\032}\n$" + + "DeltaPresenceEstimationQuasiIdValues\0226\n\020" + "quasi_ids_values\030\001 \003(\0132\034.google.privacy." - + "dlp.v2.Value\022\033\n\023estimated_anonymity\030\002 \001(" - + "\003\032\373\001\n\035KMapEstimationHistogramBucket\022\025\n\rm" - + "in_anonymity\030\001 \001(\003\022\025\n\rmax_anonymity\030\002 \001(" - + "\003\022\023\n\013bucket_size\030\005 \001(\003\022{\n\rbucket_values\030" - + "\006 \003(\0132d.google.privacy.dlp.v2.AnalyzeDat" - + "aSourceRiskDetails.KMapEstimationResult." - + "KMapEstimationQuasiIdValues\022\032\n\022bucket_va" - + "lue_count\030\007 \001(\003\032\344\004\n\035DeltaPresenceEstimat" - + "ionResult\022\245\001\n#delta_presence_estimation_" - + "histogram\030\001 \003(\0132x.google.privacy.dlp.v2." - + "AnalyzeDataSourceRiskDetails.DeltaPresen" - + "ceEstimationResult.DeltaPresenceEstimati" - + "onHistogramBucket\032}\n$DeltaPresenceEstima" - + "tionQuasiIdValues\0226\n\020quasi_ids_values\030\001 " - + "\003(\0132\034.google.privacy.dlp.v2.Value\022\035\n\025est" - + "imated_probability\030\002 \001(\001\032\233\002\n&DeltaPresen" - + "ceEstimationHistogramBucket\022\027\n\017min_proba" - + "bility\030\001 \001(\001\022\027\n\017max_probability\030\002 \001(\001\022\023\n" - + "\013bucket_size\030\005 \001(\003\022\215\001\n\rbucket_values\030\006 \003" - + "(\0132v.google.privacy.dlp.v2.AnalyzeDataSo" - + "urceRiskDetails.DeltaPresenceEstimationR" - + "esult.DeltaPresenceEstimationQuasiIdValu" - + "es\022\032\n\022bucket_value_count\030\007 \001(\003\032`\n\034Reques" - + "tedRiskAnalysisOptions\022@\n\njob_config\030\001 \001" - + "(\0132,.google.privacy.dlp.v2.RiskAnalysisJ" - + "obConfigB\010\n\006result\"L\n\016ValueFrequency\022+\n\005" - + "value\030\001 \001(\0132\034.google.privacy.dlp.v2.Valu" - + "e\022\r\n\005count\030\002 \001(\003\"\263\002\n\005Value\022\027\n\rinteger_va" - + "lue\030\001 \001(\003H\000\022\025\n\013float_value\030\002 \001(\001H\000\022\026\n\014st" - + "ring_value\030\003 \001(\tH\000\022\027\n\rboolean_value\030\004 \001(" - + "\010H\000\0225\n\017timestamp_value\030\005 \001(\0132\032.google.pr" - + "otobuf.TimestampH\000\022,\n\ntime_value\030\006 \001(\0132\026" - + ".google.type.TimeOfDayH\000\022\'\n\ndate_value\030\007" - + " \001(\0132\021.google.type.DateH\000\0223\n\021day_of_week" - + "_value\030\010 \001(\0162\026.google.type.DayOfWeekH\000B\006" - + "\n\004type\"Q\n\tQuoteInfo\0224\n\tdate_time\030\002 \001(\0132\037" - + ".google.privacy.dlp.v2.DateTimeH\000B\016\n\014par" - + "sed_quote\"\337\001\n\010DateTime\022\037\n\004date\030\001 \001(\0132\021.g" - + "oogle.type.Date\022+\n\013day_of_week\030\002 \001(\0162\026.g" - + "oogle.type.DayOfWeek\022$\n\004time\030\003 \001(\0132\026.goo" - + "gle.type.TimeOfDay\022;\n\ttime_zone\030\004 \001(\0132(." - + "google.privacy.dlp.v2.DateTime.TimeZone\032" - + "\"\n\010TimeZone\022\026\n\016offset_minutes\030\001 \001(\005\"\362\002\n\020" - + "DeidentifyConfig\022S\n\031info_type_transforma" - + "tions\030\001 \001(\0132..google.privacy.dlp.v2.Info" - + "TypeTransformationsH\000\022N\n\026record_transfor" - + "mations\030\002 \001(\0132,.google.privacy.dlp.v2.Re" - + "cordTransformationsH\000\022L\n\025image_transform" - + "ations\030\004 \001(\0132+.google.privacy.dlp.v2.Ima" - + "geTransformationsH\000\022Y\n\035transformation_er" - + "ror_handling\030\003 \001(\01322.google.privacy.dlp." - + "v2.TransformationErrorHandlingB\020\n\016transf" - + "ormation\"\345\004\n\024ImageTransformations\022S\n\ntra" - + "nsforms\030\002 \003(\0132?.google.privacy.dlp.v2.Im" - + "ageTransformations.ImageTransformation\032\367" - + "\003\n\023ImageTransformation\022p\n\023selected_info_" - + "types\030\004 \001(\0132Q.google.privacy.dlp.v2.Imag" - + "eTransformations.ImageTransformation.Sel" - + "ectedInfoTypesH\000\022f\n\016all_info_types\030\005 \001(\013" - + "2L.google.privacy.dlp.v2.ImageTransforma" - + "tions.ImageTransformation.AllInfoTypesH\000" - + "\022[\n\010all_text\030\006 \001(\0132G.google.privacy.dlp." - + "v2.ImageTransformations.ImageTransformat" - + "ion.AllTextH\000\0225\n\017redaction_color\030\003 \001(\0132\034" - + ".google.privacy.dlp.v2.Color\032M\n\021Selected" - + "InfoTypes\0228\n\ninfo_types\030\005 \003(\0132\037.google.p" - + "rivacy.dlp.v2.InfoTypeB\003\340A\002\032\016\n\014AllInfoTy" - + "pes\032\t\n\007AllTextB\010\n\006target\"\205\002\n\033Transformat" - + "ionErrorHandling\022T\n\013throw_error\030\001 \001(\0132=." + + "dlp.v2.Value\022\035\n\025estimated_probability\030\002 " + + "\001(\001\032\233\002\n&DeltaPresenceEstimationHistogram" + + "Bucket\022\027\n\017min_probability\030\001 \001(\001\022\027\n\017max_p" + + "robability\030\002 \001(\001\022\023\n\013bucket_size\030\005 \001(\003\022\215\001" + + "\n\rbucket_values\030\006 \003(\0132v.google.privacy.d" + + "lp.v2.AnalyzeDataSourceRiskDetails.Delta" + + "PresenceEstimationResult.DeltaPresenceEs" + + "timationQuasiIdValues\022\032\n\022bucket_value_co" + + "unt\030\007 \001(\003\032`\n\034RequestedRiskAnalysisOption" + + "s\022@\n\njob_config\030\001 \001(\0132,.google.privacy.d" + + "lp.v2.RiskAnalysisJobConfigB\010\n\006result\"L\n" + + "\016ValueFrequency\022+\n\005value\030\001 \001(\0132\034.google." + + "privacy.dlp.v2.Value\022\r\n\005count\030\002 \001(\003\"\263\002\n\005" + + "Value\022\027\n\rinteger_value\030\001 \001(\003H\000\022\025\n\013float_" + + "value\030\002 \001(\001H\000\022\026\n\014string_value\030\003 \001(\tH\000\022\027\n" + + "\rboolean_value\030\004 \001(\010H\000\0225\n\017timestamp_valu" + + "e\030\005 \001(\0132\032.google.protobuf.TimestampH\000\022,\n" + + "\ntime_value\030\006 \001(\0132\026.google.type.TimeOfDa" + + "yH\000\022\'\n\ndate_value\030\007 \001(\0132\021.google.type.Da" + + "teH\000\0223\n\021day_of_week_value\030\010 \001(\0162\026.google" + + ".type.DayOfWeekH\000B\006\n\004type\"Q\n\tQuoteInfo\0224" + + "\n\tdate_time\030\002 \001(\0132\037.google.privacy.dlp.v" + + "2.DateTimeH\000B\016\n\014parsed_quote\"\337\001\n\010DateTim" + + "e\022\037\n\004date\030\001 \001(\0132\021.google.type.Date\022+\n\013da" + + "y_of_week\030\002 \001(\0162\026.google.type.DayOfWeek\022" + + "$\n\004time\030\003 \001(\0132\026.google.type.TimeOfDay\022;\n" + + "\ttime_zone\030\004 \001(\0132(.google.privacy.dlp.v2" + + ".DateTime.TimeZone\032\"\n\010TimeZone\022\026\n\016offset" + + "_minutes\030\001 \001(\005\"\362\002\n\020DeidentifyConfig\022S\n\031i" + + "nfo_type_transformations\030\001 \001(\0132..google." + + "privacy.dlp.v2.InfoTypeTransformationsH\000" + + "\022N\n\026record_transformations\030\002 \001(\0132,.googl" + + "e.privacy.dlp.v2.RecordTransformationsH\000" + + "\022L\n\025image_transformations\030\004 \001(\0132+.google" + + ".privacy.dlp.v2.ImageTransformationsH\000\022Y" + + "\n\035transformation_error_handling\030\003 \001(\01322." + "google.privacy.dlp.v2.TransformationErro" - + "rHandling.ThrowErrorH\000\022d\n\023leave_untransf" - + "ormed\030\002 \001(\0132E.google.privacy.dlp.v2.Tran" - + "sformationErrorHandling.LeaveUntransform" - + "edH\000\032\014\n\nThrowError\032\024\n\022LeaveUntransformed" - + "B\006\n\004mode\"\312\007\n\027PrimitiveTransformation\022C\n\016" - + "replace_config\030\001 \001(\0132).google.privacy.dl" - + "p.v2.ReplaceValueConfigH\000\022<\n\rredact_conf" - + "ig\030\002 \001(\0132#.google.privacy.dlp.v2.RedactC" - + "onfigH\000\022K\n\025character_mask_config\030\003 \001(\0132*" - + ".google.privacy.dlp.v2.CharacterMaskConf" - + "igH\000\022Y\n\035crypto_replace_ffx_fpe_config\030\004 " - + "\001(\01320.google.privacy.dlp.v2.CryptoReplac" - + "eFfxFpeConfigH\000\022V\n\033fixed_size_bucketing_" - + "config\030\005 \001(\0132/.google.privacy.dlp.v2.Fix" - + "edSizeBucketingConfigH\000\022B\n\020bucketing_con" - + "fig\030\006 \001(\0132&.google.privacy.dlp.v2.Bucket" - + "ingConfigH\000\022Y\n\035replace_with_info_type_co" - + "nfig\030\007 \001(\01320.google.privacy.dlp.v2.Repla" - + "ceWithInfoTypeConfigH\000\022A\n\020time_part_conf" - + "ig\030\010 \001(\0132%.google.privacy.dlp.v2.TimePar" - + "tConfigH\000\022E\n\022crypto_hash_config\030\t \001(\0132\'." - + "google.privacy.dlp.v2.CryptoHashConfigH\000" - + "\022C\n\021date_shift_config\030\013 \001(\0132&.google.pri" - + "vacy.dlp.v2.DateShiftConfigH\000\022W\n\033crypto_" - + "deterministic_config\030\014 \001(\01320.google.priv" - + "acy.dlp.v2.CryptoDeterministicConfigH\000\022S" - + "\n\031replace_dictionary_config\030\r \001(\0132..goog" - + "le.privacy.dlp.v2.ReplaceDictionaryConfi" - + "gH\000B\020\n\016transformation\"\334\001\n\016TimePartConfig" - + "\022G\n\017part_to_extract\030\001 \001(\0162..google.priva" - + "cy.dlp.v2.TimePartConfig.TimePart\"\200\001\n\010Ti" - + "mePart\022\031\n\025TIME_PART_UNSPECIFIED\020\000\022\010\n\004YEA" - + "R\020\001\022\t\n\005MONTH\020\002\022\020\n\014DAY_OF_MONTH\020\003\022\017\n\013DAY_" - + "OF_WEEK\020\004\022\020\n\014WEEK_OF_YEAR\020\005\022\017\n\013HOUR_OF_D" - + "AY\020\006\"H\n\020CryptoHashConfig\0224\n\ncrypto_key\030\001" - + " \001(\0132 .google.privacy.dlp.v2.CryptoKey\"\300" - + "\001\n\031CryptoDeterministicConfig\0224\n\ncrypto_k" - + "ey\030\001 \001(\0132 .google.privacy.dlp.v2.CryptoK" - + "ey\022<\n\023surrogate_info_type\030\002 \001(\0132\037.google" - + ".privacy.dlp.v2.InfoType\022/\n\007context\030\003 \001(" - + "\0132\036.google.privacy.dlp.v2.FieldId\"E\n\022Rep" - + "laceValueConfig\022/\n\tnew_value\030\001 \001(\0132\034.goo" - + "gle.privacy.dlp.v2.Value\"q\n\027ReplaceDicti" - + "onaryConfig\022N\n\tword_list\030\001 \001(\01329.google." - + "privacy.dlp.v2.CustomInfoType.Dictionary" - + ".WordListH\000B\006\n\004type\"\033\n\031ReplaceWithInfoTy" - + "peConfig\"\016\n\014RedactConfig\"\266\002\n\rCharsToIgno" - + "re\022\034\n\022characters_to_skip\030\001 \001(\tH\000\022_\n\033comm" - + "on_characters_to_ignore\030\002 \001(\01628.google.p" - + "rivacy.dlp.v2.CharsToIgnore.CommonCharsT" - + "oIgnoreH\000\"\227\001\n\023CommonCharsToIgnore\022&\n\"COM" - + "MON_CHARS_TO_IGNORE_UNSPECIFIED\020\000\022\013\n\007NUM" - + "ERIC\020\001\022\024\n\020ALPHA_UPPER_CASE\020\002\022\024\n\020ALPHA_LO" - + "WER_CASE\020\003\022\017\n\013PUNCTUATION\020\004\022\016\n\nWHITESPAC" - + "E\020\005B\014\n\ncharacters\"\243\001\n\023CharacterMaskConfi" - + "g\022\031\n\021masking_character\030\001 \001(\t\022\026\n\016number_t" - + "o_mask\030\002 \001(\005\022\025\n\rreverse_order\030\003 \001(\010\022B\n\024c" - + "haracters_to_ignore\030\004 \003(\0132$.google.priva" - + "cy.dlp.v2.CharsToIgnore\"\244\001\n\030FixedSizeBuc" - + "ketingConfig\0226\n\013lower_bound\030\001 \001(\0132\034.goog" - + "le.privacy.dlp.v2.ValueB\003\340A\002\0226\n\013upper_bo" - + "und\030\002 \001(\0132\034.google.privacy.dlp.v2.ValueB" - + "\003\340A\002\022\030\n\013bucket_size\030\003 \001(\001B\003\340A\002\"\360\001\n\017Bucke" - + "tingConfig\022>\n\007buckets\030\001 \003(\0132-.google.pri" - + "vacy.dlp.v2.BucketingConfig.Bucket\032\234\001\n\006B" - + "ucket\022)\n\003min\030\001 \001(\0132\034.google.privacy.dlp." - + "v2.Value\022)\n\003max\030\002 \001(\0132\034.google.privacy.d" - + "lp.v2.Value\022<\n\021replacement_value\030\003 \001(\0132\034" - + ".google.privacy.dlp.v2.ValueB\003\340A\002\"\371\003\n\031Cr" - + "yptoReplaceFfxFpeConfig\0229\n\ncrypto_key\030\001 " - + "\001(\0132 .google.privacy.dlp.v2.CryptoKeyB\003\340" - + "A\002\022/\n\007context\030\002 \001(\0132\036.google.privacy.dlp" - + ".v2.FieldId\022c\n\017common_alphabet\030\004 \001(\0162H.g" - + "oogle.privacy.dlp.v2.CryptoReplaceFfxFpe" - + "Config.FfxCommonNativeAlphabetH\000\022\031\n\017cust" - + "om_alphabet\030\005 \001(\tH\000\022\017\n\005radix\030\006 \001(\005H\000\022<\n\023" - + "surrogate_info_type\030\010 \001(\0132\037.google.priva" - + "cy.dlp.v2.InfoType\"\224\001\n\027FfxCommonNativeAl" - + "phabet\022*\n&FFX_COMMON_NATIVE_ALPHABET_UNS" - + "PECIFIED\020\000\022\013\n\007NUMERIC\020\001\022\017\n\013HEXADECIMAL\020\002" - + "\022\034\n\030UPPER_CASE_ALPHA_NUMERIC\020\003\022\021\n\rALPHA_" - + "NUMERIC\020\004B\n\n\010alphabet\"\330\001\n\tCryptoKey\022>\n\tt" - + "ransient\030\001 \001(\0132).google.privacy.dlp.v2.T" - + "ransientCryptoKeyH\000\022>\n\tunwrapped\030\002 \001(\0132)" - + ".google.privacy.dlp.v2.UnwrappedCryptoKe" - + "yH\000\022A\n\013kms_wrapped\030\003 \001(\0132*.google.privac" - + "y.dlp.v2.KmsWrappedCryptoKeyH\000B\010\n\006source" - + "\"\'\n\022TransientCryptoKey\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\002\"&\n\022UnwrappedCryptoKey\022\020\n\003key\030\001 \001(\014B\003\340A" - + "\002\"M\n\023KmsWrappedCryptoKey\022\030\n\013wrapped_key\030" - + "\001 \001(\014B\003\340A\002\022\034\n\017crypto_key_name\030\002 \001(\tB\003\340A\002" - + "\"\302\001\n\017DateShiftConfig\022\035\n\020upper_bound_days" - + "\030\001 \001(\005B\003\340A\002\022\035\n\020lower_bound_days\030\002 \001(\005B\003\340" - + "A\002\022/\n\007context\030\003 \001(\0132\036.google.privacy.dlp" - + ".v2.FieldId\0226\n\ncrypto_key\030\004 \001(\0132 .google" - + ".privacy.dlp.v2.CryptoKeyH\000B\010\n\006method\"\245\002" - + "\n\027InfoTypeTransformations\022c\n\017transformat" - + "ions\030\001 \003(\0132E.google.privacy.dlp.v2.InfoT" - + "ypeTransformations.InfoTypeTransformatio" - + "nB\003\340A\002\032\244\001\n\026InfoTypeTransformation\0223\n\ninf" - + "o_types\030\001 \003(\0132\037.google.privacy.dlp.v2.In" - + "foType\022U\n\030primitive_transformation\030\002 \001(\013" - + "2..google.privacy.dlp.v2.PrimitiveTransf" - + "ormationB\003\340A\002\"\300\002\n\023FieldTransformation\0223\n" - + "\006fields\030\001 \003(\0132\036.google.privacy.dlp.v2.Fi" - + "eldIdB\003\340A\002\0229\n\tcondition\030\003 \001(\0132&.google.p" - + "rivacy.dlp.v2.RecordCondition\022R\n\030primiti" - + "ve_transformation\030\004 \001(\0132..google.privacy" - + ".dlp.v2.PrimitiveTransformationH\000\022S\n\031inf" - + "o_type_transformations\030\005 \001(\0132..google.pr" - + "ivacy.dlp.v2.InfoTypeTransformationsH\000B\020" - + "\n\016transformation\"\251\001\n\025RecordTransformatio" - + "ns\022I\n\025field_transformations\030\001 \003(\0132*.goog" - + "le.privacy.dlp.v2.FieldTransformation\022E\n" - + "\023record_suppressions\030\002 \003(\0132(.google.priv" - + "acy.dlp.v2.RecordSuppression\"N\n\021RecordSu" - + "ppression\0229\n\tcondition\030\001 \001(\0132&.google.pr" - + "ivacy.dlp.v2.RecordCondition\"\334\004\n\017RecordC" - + "ondition\022G\n\013expressions\030\003 \001(\01322.google.p" - + "rivacy.dlp.v2.RecordCondition.Expression" - + "s\032\256\001\n\tCondition\0222\n\005field\030\001 \001(\0132\036.google." - + "privacy.dlp.v2.FieldIdB\003\340A\002\022@\n\010operator\030" - + "\003 \001(\0162).google.privacy.dlp.v2.Relational" - + "OperatorB\003\340A\002\022+\n\005value\030\004 \001(\0132\034.google.pr" - + "ivacy.dlp.v2.Value\032R\n\nConditions\022D\n\ncond" - + "itions\030\001 \003(\01320.google.privacy.dlp.v2.Rec" - + "ordCondition.Condition\032\372\001\n\013Expressions\022\\" - + "\n\020logical_operator\030\001 \001(\0162B.google.privac" - + "y.dlp.v2.RecordCondition.Expressions.Log" - + "icalOperator\022G\n\nconditions\030\003 \001(\01321.googl" - + "e.privacy.dlp.v2.RecordCondition.Conditi" - + "onsH\000\"<\n\017LogicalOperator\022 \n\034LOGICAL_OPER" - + "ATOR_UNSPECIFIED\020\000\022\007\n\003AND\020\001B\006\n\004type\"\203\001\n\026" - + "TransformationOverview\022\031\n\021transformed_by" - + "tes\030\002 \001(\003\022N\n\030transformation_summaries\030\003 " - + "\003(\0132,.google.privacy.dlp.v2.Transformati" - + "onSummary\"\237\005\n\025TransformationSummary\0222\n\ti" - + "nfo_type\030\001 \001(\0132\037.google.privacy.dlp.v2.I" - + "nfoType\022-\n\005field\030\002 \001(\0132\036.google.privacy." - + "dlp.v2.FieldId\022F\n\016transformation\030\003 \001(\0132." - + ".google.privacy.dlp.v2.PrimitiveTransfor" - + "mation\022I\n\025field_transformations\030\005 \003(\0132*." - + "google.privacy.dlp.v2.FieldTransformatio" - + "n\022A\n\017record_suppress\030\006 \001(\0132(.google.priv" - + "acy.dlp.v2.RecordSuppression\022K\n\007results\030" - + "\004 \003(\0132:.google.privacy.dlp.v2.Transforma" - + "tionSummary.SummaryResult\022\031\n\021transformed" - + "_bytes\030\007 \001(\003\032\204\001\n\rSummaryResult\022\r\n\005count\030" - + "\001 \001(\003\022S\n\004code\030\002 \001(\0162E.google.privacy.dlp" - + ".v2.TransformationSummary.Transformation" - + "ResultCode\022\017\n\007details\030\003 \001(\t\"^\n\030Transform" - + "ationResultCode\022*\n&TRANSFORMATION_RESULT" - + "_CODE_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERRO" - + "R\020\002\"\260\001\n\031TransformationDescription\0227\n\004typ" - + "e\030\001 \001(\0162).google.privacy.dlp.v2.Transfor" - + "mationType\022\023\n\013description\030\002 \001(\t\022\021\n\tcondi" - + "tion\030\003 \001(\t\0222\n\tinfo_type\030\004 \001(\0132\037.google.p" - + "rivacy.dlp.v2.InfoType\"\306\002\n\025Transformatio" - + "nDetails\022\025\n\rresource_name\030\001 \001(\t\022\026\n\016conta" - + "iner_name\030\002 \001(\t\022H\n\016transformation\030\003 \003(\0132" - + "0.google.privacy.dlp.v2.TransformationDe" - + "scription\022I\n\016status_details\030\004 \001(\01321.goog" - + "le.privacy.dlp.v2.TransformationResultSt" - + "atus\022\031\n\021transformed_bytes\030\005 \001(\003\022N\n\027trans" - + "formation_location\030\006 \001(\0132-.google.privac" - + "y.dlp.v2.TransformationLocation\"\331\001\n\026Tran" - + "sformationLocation\022\024\n\nfinding_id\030\001 \001(\tH\000" - + "\022L\n\025record_transformation\030\002 \001(\0132+.google" - + ".privacy.dlp.v2.RecordTransformationH\000\022J" - + "\n\016container_type\030\003 \001(\01622.google.privacy." - + "dlp.v2.TransformationContainerTypeB\017\n\rlo" - + "cation_type\"\234\001\n\024RecordTransformation\0220\n\010" - + "field_id\030\001 \001(\0132\036.google.privacy.dlp.v2.F" - + "ieldId\0227\n\023container_timestamp\030\002 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022\031\n\021container_ver" - + "sion\030\003 \001(\t\"\224\001\n\032TransformationResultStatu" - + "s\022Q\n\022result_status_type\030\001 \001(\01625.google.p" - + "rivacy.dlp.v2.TransformationResultStatus" - + "Type\022#\n\007details\030\002 \001(\0132\022.google.rpc.Statu" - + "s\"c\n\"TransformationDetailsStorageConfig\022" - + "5\n\005table\030\001 \001(\0132$.google.privacy.dlp.v2.B" - + "igQueryTableH\000B\006\n\004type\"U\n\010Schedule\022?\n\032re" - + "currence_period_duration\030\001 \001(\0132\031.google." - + "protobuf.DurationH\000B\010\n\006option\"\010\n\006Manual\"" - + "\302\004\n\017InspectTemplate\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024" - + "\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(" - + "\t\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022<\n\016inspect" - + "_config\030\006 \001(\0132$.google.privacy.dlp.v2.In" - + "spectConfig:\306\002\352A\302\002\n\"dlp.googleapis.com/I" - + "nspectTemplate\022@organizations/{organizat" - + "ion}/inspectTemplates/{inspect_template}" - + "\0226projects/{project}/inspectTemplates/{i" - + "nspect_template}\022Uorganizations/{organiz" - + "ation}/locations/{location}/inspectTempl" - + "ates/{inspect_template}\022Kprojects/{proje" - + "ct}/locations/{location}/inspectTemplate" - + "s/{inspect_template}\"\346\004\n\022DeidentifyTempl" - + "ate\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002" - + " \001(\t\022\023\n\013description\030\003 \001(\t\0224\n\013create_time" - + "\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "4\n\013update_time\030\005 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\022B\n\021deidentify_config\030\006 \001(\013" - + "2\'.google.privacy.dlp.v2.DeidentifyConfi" - + "g:\341\002\352A\335\002\n%dlp.googleapis.com/DeidentifyT" - + "emplate\022Forganizations/{organization}/de" - + "identifyTemplates/{deidentify_template}\022" - + "\n\013inspect_job\030\004 \001(\0132\'.google.privac" - + "y.dlp.v2.InspectJobConfigH\000\022;\n\010triggers\030" - + "\005 \003(\0132).google.privacy.dlp.v2.JobTrigger" - + ".Trigger\0221\n\006errors\030\006 \003(\0132\034.google.privac" - + "y.dlp.v2.ErrorB\003\340A\003\0224\n\013create_time\030\007 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" - + "ate_time\030\010 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\0226\n\rlast_run_time\030\t \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\022=\n\006status\030\n \001(\0162" - + "(.google.privacy.dlp.v2.JobTrigger.Statu" - + "sB\003\340A\002\032z\n\007Trigger\0223\n\010schedule\030\001 \001(\0132\037.go" - + "ogle.privacy.dlp.v2.ScheduleH\000\022/\n\006manual" - + "\030\002 \001(\0132\035.google.privacy.dlp.v2.ManualH\000B" - + "\t\n\007trigger\"H\n\006Status\022\026\n\022STATUS_UNSPECIFI" - + "ED\020\000\022\013\n\007HEALTHY\020\001\022\n\n\006PAUSED\020\002\022\r\n\tCANCELL" - + "ED\020\003:\224\001\352A\220\001\n\035dlp.googleapis.com/JobTrigg" - + "er\022,projects/{project}/jobTriggers/{job_" - + "trigger}\022Aprojects/{project}/locations/{" - + "location}/jobTriggers/{job_trigger}B\005\n\003j" - + "ob\"\352\010\n\006Action\022C\n\rsave_findings\030\001 \001(\0132*.g" - + "oogle.privacy.dlp.v2.Action.SaveFindings" - + "H\000\022@\n\007pub_sub\030\002 \001(\0132-.google.privacy.dlp" - + ".v2.Action.PublishToPubSubH\000\022U\n\027publish_" - + "summary_to_cscc\030\003 \001(\01322.google.privacy.d" - + "lp.v2.Action.PublishSummaryToCsccH\000\022q\n&p" - + "ublish_findings_to_cloud_data_catalog\030\005 " - + "\001(\0132?.google.privacy.dlp.v2.Action.Publi" - + "shFindingsToCloudDataCatalogH\000\022>\n\ndeiden" - + "tify\030\007 \001(\0132(.google.privacy.dlp.v2.Actio" - + "n.DeidentifyH\000\022V\n\027job_notification_email" - + "s\030\010 \001(\01323.google.privacy.dlp.v2.Action.J" - + "obNotificationEmailsH\000\022T\n\026publish_to_sta" - + "ckdriver\030\t \001(\01322.google.privacy.dlp.v2.A" - + "ction.PublishToStackdriverH\000\032Q\n\014SaveFind" - + "ings\022A\n\routput_config\030\001 \001(\0132*.google.pri" - + "vacy.dlp.v2.OutputStorageConfig\032 \n\017Publi" - + "shToPubSub\022\r\n\005topic\030\001 \001(\t\032\026\n\024PublishSumm" - + "aryToCscc\032#\n!PublishFindingsToCloudDataC" - + "atalog\032\263\002\n\nDeidentify\022J\n\025transformation_" - + "config\030\007 \001(\0132+.google.privacy.dlp.v2.Tra" - + "nsformationConfig\022h\n%transformation_deta" - + "ils_storage_config\030\003 \001(\01329.google.privac" - + "y.dlp.v2.TransformationDetailsStorageCon" - + "fig\022#\n\024cloud_storage_output\030\t \001(\tB\003\340A\002H\000" - + "\022@\n\027file_types_to_transform\030\010 \003(\0162\037.goog" - + "le.privacy.dlp.v2.FileTypeB\010\n\006output\032\027\n\025" - + "JobNotificationEmails\032\026\n\024PublishToStackd" - + "riverB\010\n\006action\"z\n\024TransformationConfig\022" - + "\033\n\023deidentify_template\030\001 \001(\t\022&\n\036structur" - + "ed_deidentify_template\030\002 \001(\t\022\035\n\025image_re" - + "dact_template\030\004 \001(\t\"\313\001\n\034CreateInspectTem" - + "plateRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dl" - + "p.googleapis.com/InspectTemplate\022E\n\020insp" - + "ect_template\030\002 \001(\0132&.google.privacy.dlp." - + "v2.InspectTemplateB\003\340A\002\022\023\n\013template_id\030\003" - + " \001(\t\022\023\n\013location_id\030\004 \001(\t\"\313\001\n\034UpdateInsp" - + "ectTemplateRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$" - + "\n\"dlp.googleapis.com/InspectTemplate\022@\n\020" - + "inspect_template\030\002 \001(\0132&.google.privacy." - + "dlp.v2.InspectTemplate\022/\n\013update_mask\030\003 " - + "\001(\0132\032.google.protobuf.FieldMask\"U\n\031GetIn" - + "spectTemplateRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372" - + "A$\n\"dlp.googleapis.com/InspectTemplate\"\247" - + "\001\n\033ListInspectTemplatesRequest\022:\n\006parent" - + "\030\001 \001(\tB*\340A\002\372A$\022\"dlp.googleapis.com/Inspe" - + "ctTemplate\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_s" - + "ize\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\022\023\n\013location_" - + "id\030\005 \001(\t\"z\n\034ListInspectTemplatesResponse" - + "\022A\n\021inspect_templates\030\001 \003(\0132&.google.pri" - + "vacy.dlp.v2.InspectTemplate\022\027\n\017next_page" - + "_token\030\002 \001(\t\"X\n\034DeleteInspectTemplateReq" - + "uest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dlp.googleap" - + "is.com/InspectTemplate\"\266\001\n\027CreateJobTrig" - + "gerRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035dlp." - + "googleapis.com/JobTrigger\022;\n\013job_trigger" - + "\030\002 \001(\0132!.google.privacy.dlp.v2.JobTrigge" - + "rB\003\340A\002\022\022\n\ntrigger_id\030\003 \001(\t\022\023\n\013location_i" - + "d\030\004 \001(\t\"P\n\031ActivateJobTriggerRequest\0223\n\004" - + "name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.googleapis.com/J" - + "obTrigger\"\267\001\n\027UpdateJobTriggerRequest\0223\n" - + "\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.googleapis.com/" - + "JobTrigger\0226\n\013job_trigger\030\002 \001(\0132!.google" - + ".privacy.dlp.v2.JobTrigger\022/\n\013update_mas" - + "k\030\003 \001(\0132\032.google.protobuf.FieldMask\"K\n\024G" - + "etJobTriggerRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A" - + "\037\n\035dlp.googleapis.com/JobTrigger\"\264\001\n\034Cre" - + "ateDiscoveryConfigRequest\022:\n\006parent\030\001 \001(" - + "\tB*\340A\002\372A$\022\"dlp.googleapis.com/DiscoveryC" - + "onfig\022E\n\020discovery_config\030\002 \001(\0132&.google" - + ".privacy.dlp.v2.DiscoveryConfigB\003\340A\002\022\021\n\t" - + "config_id\030\003 \001(\t\"\320\001\n\034UpdateDiscoveryConfi" - + "gRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dlp.goog" - + "leapis.com/DiscoveryConfig\022E\n\020discovery_" - + "config\030\002 \001(\0132&.google.privacy.dlp.v2.Dis", - "coveryConfigB\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032" - + ".google.protobuf.FieldMask\"U\n\031GetDiscove" - + "ryConfigRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"d" - + "lp.googleapis.com/DiscoveryConfig\"\222\001\n\033Li" - + "stDiscoveryConfigsRequest\022:\n\006parent\030\001 \001(" - + "\tB*\340A\002\372A$\022\"dlp.googleapis.com/DiscoveryC" - + "onfig\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003" - + " \001(\005\022\020\n\010order_by\030\004 \001(\t\"z\n\034ListDiscoveryC" - + "onfigsResponse\022A\n\021discovery_configs\030\001 \003(" + + "rHandlingB\020\n\016transformation\"\345\004\n\024ImageTra" + + "nsformations\022S\n\ntransforms\030\002 \003(\0132?.googl" + + "e.privacy.dlp.v2.ImageTransformations.Im" + + "ageTransformation\032\367\003\n\023ImageTransformatio" + + "n\022p\n\023selected_info_types\030\004 \001(\0132Q.google." + + "privacy.dlp.v2.ImageTransformations.Imag" + + "eTransformation.SelectedInfoTypesH\000\022f\n\016a" + + "ll_info_types\030\005 \001(\0132L.google.privacy.dlp" + + ".v2.ImageTransformations.ImageTransforma" + + "tion.AllInfoTypesH\000\022[\n\010all_text\030\006 \001(\0132G." + + "google.privacy.dlp.v2.ImageTransformatio" + + "ns.ImageTransformation.AllTextH\000\0225\n\017reda" + + "ction_color\030\003 \001(\0132\034.google.privacy.dlp.v" + + "2.Color\032M\n\021SelectedInfoTypes\0228\n\ninfo_typ" + + "es\030\005 \003(\0132\037.google.privacy.dlp.v2.InfoTyp" + + "eB\003\340A\002\032\016\n\014AllInfoTypes\032\t\n\007AllTextB\010\n\006tar" + + "get\"\205\002\n\033TransformationErrorHandling\022T\n\013t" + + "hrow_error\030\001 \001(\0132=.google.privacy.dlp.v2" + + ".TransformationErrorHandling.ThrowErrorH" + + "\000\022d\n\023leave_untransformed\030\002 \001(\0132E.google." + + "privacy.dlp.v2.TransformationErrorHandli" + + "ng.LeaveUntransformedH\000\032\014\n\nThrowError\032\024\n" + + "\022LeaveUntransformedB\006\n\004mode\"\312\007\n\027Primitiv" + + "eTransformation\022C\n\016replace_config\030\001 \001(\0132" + + ").google.privacy.dlp.v2.ReplaceValueConf" + + "igH\000\022<\n\rredact_config\030\002 \001(\0132#.google.pri" + + "vacy.dlp.v2.RedactConfigH\000\022K\n\025character_" + + "mask_config\030\003 \001(\0132*.google.privacy.dlp.v" + + "2.CharacterMaskConfigH\000\022Y\n\035crypto_replac" + + "e_ffx_fpe_config\030\004 \001(\01320.google.privacy." + + "dlp.v2.CryptoReplaceFfxFpeConfigH\000\022V\n\033fi" + + "xed_size_bucketing_config\030\005 \001(\0132/.google" + + ".privacy.dlp.v2.FixedSizeBucketingConfig" + + "H\000\022B\n\020bucketing_config\030\006 \001(\0132&.google.pr" + + "ivacy.dlp.v2.BucketingConfigH\000\022Y\n\035replac" + + "e_with_info_type_config\030\007 \001(\01320.google.p" + + "rivacy.dlp.v2.ReplaceWithInfoTypeConfigH" + + "\000\022A\n\020time_part_config\030\010 \001(\0132%.google.pri" + + "vacy.dlp.v2.TimePartConfigH\000\022E\n\022crypto_h" + + "ash_config\030\t \001(\0132\'.google.privacy.dlp.v2" + + ".CryptoHashConfigH\000\022C\n\021date_shift_config" + + "\030\013 \001(\0132&.google.privacy.dlp.v2.DateShift" + + "ConfigH\000\022W\n\033crypto_deterministic_config\030" + + "\014 \001(\01320.google.privacy.dlp.v2.CryptoDete" + + "rministicConfigH\000\022S\n\031replace_dictionary_" + + "config\030\r \001(\0132..google.privacy.dlp.v2.Rep" + + "laceDictionaryConfigH\000B\020\n\016transformation" + + "\"\334\001\n\016TimePartConfig\022G\n\017part_to_extract\030\001" + + " \001(\0162..google.privacy.dlp.v2.TimePartCon" + + "fig.TimePart\"\200\001\n\010TimePart\022\031\n\025TIME_PART_U" + + "NSPECIFIED\020\000\022\010\n\004YEAR\020\001\022\t\n\005MONTH\020\002\022\020\n\014DAY" + + "_OF_MONTH\020\003\022\017\n\013DAY_OF_WEEK\020\004\022\020\n\014WEEK_OF_" + + "YEAR\020\005\022\017\n\013HOUR_OF_DAY\020\006\"H\n\020CryptoHashCon" + + "fig\0224\n\ncrypto_key\030\001 \001(\0132 .google.privacy" + + ".dlp.v2.CryptoKey\"\300\001\n\031CryptoDeterministi" + + "cConfig\0224\n\ncrypto_key\030\001 \001(\0132 .google.pri" + + "vacy.dlp.v2.CryptoKey\022<\n\023surrogate_info_" + + "type\030\002 \001(\0132\037.google.privacy.dlp.v2.InfoT" + + "ype\022/\n\007context\030\003 \001(\0132\036.google.privacy.dl" + + "p.v2.FieldId\"E\n\022ReplaceValueConfig\022/\n\tne" + + "w_value\030\001 \001(\0132\034.google.privacy.dlp.v2.Va" + + "lue\"q\n\027ReplaceDictionaryConfig\022N\n\tword_l" + + "ist\030\001 \001(\01329.google.privacy.dlp.v2.Custom" + + "InfoType.Dictionary.WordListH\000B\006\n\004type\"\033" + + "\n\031ReplaceWithInfoTypeConfig\"\016\n\014RedactCon" + + "fig\"\266\002\n\rCharsToIgnore\022\034\n\022characters_to_s" + + "kip\030\001 \001(\tH\000\022_\n\033common_characters_to_igno" + + "re\030\002 \001(\01628.google.privacy.dlp.v2.CharsTo" + + "Ignore.CommonCharsToIgnoreH\000\"\227\001\n\023CommonC" + + "harsToIgnore\022&\n\"COMMON_CHARS_TO_IGNORE_U" + + "NSPECIFIED\020\000\022\013\n\007NUMERIC\020\001\022\024\n\020ALPHA_UPPER" + + "_CASE\020\002\022\024\n\020ALPHA_LOWER_CASE\020\003\022\017\n\013PUNCTUA" + + "TION\020\004\022\016\n\nWHITESPACE\020\005B\014\n\ncharacters\"\243\001\n" + + "\023CharacterMaskConfig\022\031\n\021masking_characte" + + "r\030\001 \001(\t\022\026\n\016number_to_mask\030\002 \001(\005\022\025\n\rrever" + + "se_order\030\003 \001(\010\022B\n\024characters_to_ignore\030\004" + + " \003(\0132$.google.privacy.dlp.v2.CharsToIgno" + + "re\"\244\001\n\030FixedSizeBucketingConfig\0226\n\013lower" + + "_bound\030\001 \001(\0132\034.google.privacy.dlp.v2.Val" + + "ueB\003\340A\002\0226\n\013upper_bound\030\002 \001(\0132\034.google.pr" + + "ivacy.dlp.v2.ValueB\003\340A\002\022\030\n\013bucket_size\030\003" + + " \001(\001B\003\340A\002\"\360\001\n\017BucketingConfig\022>\n\007buckets" + + "\030\001 \003(\0132-.google.privacy.dlp.v2.Bucketing" + + "Config.Bucket\032\234\001\n\006Bucket\022)\n\003min\030\001 \001(\0132\034." + + "google.privacy.dlp.v2.Value\022)\n\003max\030\002 \001(\013" + + "2\034.google.privacy.dlp.v2.Value\022<\n\021replac" + + "ement_value\030\003 \001(\0132\034.google.privacy.dlp.v" + + "2.ValueB\003\340A\002\"\371\003\n\031CryptoReplaceFfxFpeConf" + + "ig\0229\n\ncrypto_key\030\001 \001(\0132 .google.privacy." + + "dlp.v2.CryptoKeyB\003\340A\002\022/\n\007context\030\002 \001(\0132\036" + + ".google.privacy.dlp.v2.FieldId\022c\n\017common" + + "_alphabet\030\004 \001(\0162H.google.privacy.dlp.v2." + + "CryptoReplaceFfxFpeConfig.FfxCommonNativ" + + "eAlphabetH\000\022\031\n\017custom_alphabet\030\005 \001(\tH\000\022\017" + + "\n\005radix\030\006 \001(\005H\000\022<\n\023surrogate_info_type\030\010" + + " \001(\0132\037.google.privacy.dlp.v2.InfoType\"\224\001" + + "\n\027FfxCommonNativeAlphabet\022*\n&FFX_COMMON_" + + "NATIVE_ALPHABET_UNSPECIFIED\020\000\022\013\n\007NUMERIC" + + "\020\001\022\017\n\013HEXADECIMAL\020\002\022\034\n\030UPPER_CASE_ALPHA_" + + "NUMERIC\020\003\022\021\n\rALPHA_NUMERIC\020\004B\n\n\010alphabet" + + "\"\330\001\n\tCryptoKey\022>\n\ttransient\030\001 \001(\0132).goog" + + "le.privacy.dlp.v2.TransientCryptoKeyH\000\022>" + + "\n\tunwrapped\030\002 \001(\0132).google.privacy.dlp.v" + + "2.UnwrappedCryptoKeyH\000\022A\n\013kms_wrapped\030\003 " + + "\001(\0132*.google.privacy.dlp.v2.KmsWrappedCr" + + "yptoKeyH\000B\010\n\006source\"\'\n\022TransientCryptoKe" + + "y\022\021\n\004name\030\001 \001(\tB\003\340A\002\"&\n\022UnwrappedCryptoK" + + "ey\022\020\n\003key\030\001 \001(\014B\003\340A\002\"M\n\023KmsWrappedCrypto" + + "Key\022\030\n\013wrapped_key\030\001 \001(\014B\003\340A\002\022\034\n\017crypto_" + + "key_name\030\002 \001(\tB\003\340A\002\"\302\001\n\017DateShiftConfig\022" + + "\035\n\020upper_bound_days\030\001 \001(\005B\003\340A\002\022\035\n\020lower_" + + "bound_days\030\002 \001(\005B\003\340A\002\022/\n\007context\030\003 \001(\0132\036" + + ".google.privacy.dlp.v2.FieldId\0226\n\ncrypto" + + "_key\030\004 \001(\0132 .google.privacy.dlp.v2.Crypt" + + "oKeyH\000B\010\n\006method\"\245\002\n\027InfoTypeTransformat" + + "ions\022c\n\017transformations\030\001 \003(\0132E.google.p" + + "rivacy.dlp.v2.InfoTypeTransformations.In" + + "foTypeTransformationB\003\340A\002\032\244\001\n\026InfoTypeTr" + + "ansformation\0223\n\ninfo_types\030\001 \003(\0132\037.googl" + + "e.privacy.dlp.v2.InfoType\022U\n\030primitive_t" + + "ransformation\030\002 \001(\0132..google.privacy.dlp" + + ".v2.PrimitiveTransformationB\003\340A\002\"\300\002\n\023Fie" + + "ldTransformation\0223\n\006fields\030\001 \003(\0132\036.googl" + + "e.privacy.dlp.v2.FieldIdB\003\340A\002\0229\n\tconditi" + + "on\030\003 \001(\0132&.google.privacy.dlp.v2.RecordC" + + "ondition\022R\n\030primitive_transformation\030\004 \001" + + "(\0132..google.privacy.dlp.v2.PrimitiveTran" + + "sformationH\000\022S\n\031info_type_transformation" + + "s\030\005 \001(\0132..google.privacy.dlp.v2.InfoType" + + "TransformationsH\000B\020\n\016transformation\"\251\001\n\025" + + "RecordTransformations\022I\n\025field_transform" + + "ations\030\001 \003(\0132*.google.privacy.dlp.v2.Fie" + + "ldTransformation\022E\n\023record_suppressions\030" + + "\002 \003(\0132(.google.privacy.dlp.v2.RecordSupp" + + "ression\"N\n\021RecordSuppression\0229\n\tconditio" + + "n\030\001 \001(\0132&.google.privacy.dlp.v2.RecordCo" + + "ndition\"\334\004\n\017RecordCondition\022G\n\013expressio" + + "ns\030\003 \001(\01322.google.privacy.dlp.v2.RecordC" + + "ondition.Expressions\032\256\001\n\tCondition\0222\n\005fi" + + "eld\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldI" + + "dB\003\340A\002\022@\n\010operator\030\003 \001(\0162).google.privac" + + "y.dlp.v2.RelationalOperatorB\003\340A\002\022+\n\005valu" + + "e\030\004 \001(\0132\034.google.privacy.dlp.v2.Value\032R\n" + + "\nConditions\022D\n\nconditions\030\001 \003(\01320.google" + + ".privacy.dlp.v2.RecordCondition.Conditio" + + "n\032\372\001\n\013Expressions\022\\\n\020logical_operator\030\001 " + + "\001(\0162B.google.privacy.dlp.v2.RecordCondit" + + "ion.Expressions.LogicalOperator\022G\n\ncondi" + + "tions\030\003 \001(\01321.google.privacy.dlp.v2.Reco" + + "rdCondition.ConditionsH\000\"<\n\017LogicalOpera" + + "tor\022 \n\034LOGICAL_OPERATOR_UNSPECIFIED\020\000\022\007\n" + + "\003AND\020\001B\006\n\004type\"\203\001\n\026TransformationOvervie" + + "w\022\031\n\021transformed_bytes\030\002 \001(\003\022N\n\030transfor" + + "mation_summaries\030\003 \003(\0132,.google.privacy." + + "dlp.v2.TransformationSummary\"\237\005\n\025Transfo" + + "rmationSummary\0222\n\tinfo_type\030\001 \001(\0132\037.goog" + + "le.privacy.dlp.v2.InfoType\022-\n\005field\030\002 \001(" + + "\0132\036.google.privacy.dlp.v2.FieldId\022F\n\016tra" + + "nsformation\030\003 \001(\0132..google.privacy.dlp.v" + + "2.PrimitiveTransformation\022I\n\025field_trans" + + "formations\030\005 \003(\0132*.google.privacy.dlp.v2" + + ".FieldTransformation\022A\n\017record_suppress\030" + + "\006 \001(\0132(.google.privacy.dlp.v2.RecordSupp" + + "ression\022K\n\007results\030\004 \003(\0132:.google.privac" + + "y.dlp.v2.TransformationSummary.SummaryRe" + + "sult\022\031\n\021transformed_bytes\030\007 \001(\003\032\204\001\n\rSumm" + + "aryResult\022\r\n\005count\030\001 \001(\003\022S\n\004code\030\002 \001(\0162E" + + ".google.privacy.dlp.v2.TransformationSum" + + "mary.TransformationResultCode\022\017\n\007details" + + "\030\003 \001(\t\"^\n\030TransformationResultCode\022*\n&TR" + + "ANSFORMATION_RESULT_CODE_UNSPECIFIED\020\000\022\013" + + "\n\007SUCCESS\020\001\022\t\n\005ERROR\020\002\"\260\001\n\031Transformatio" + + "nDescription\0227\n\004type\030\001 \001(\0162).google.priv" + + "acy.dlp.v2.TransformationType\022\023\n\013descrip" + + "tion\030\002 \001(\t\022\021\n\tcondition\030\003 \001(\t\0222\n\tinfo_ty" + + "pe\030\004 \001(\0132\037.google.privacy.dlp.v2.InfoTyp" + + "e\"\306\002\n\025TransformationDetails\022\025\n\rresource_" + + "name\030\001 \001(\t\022\026\n\016container_name\030\002 \001(\t\022H\n\016tr" + + "ansformation\030\003 \003(\01320.google.privacy.dlp." + + "v2.TransformationDescription\022I\n\016status_d" + + "etails\030\004 \001(\01321.google.privacy.dlp.v2.Tra" + + "nsformationResultStatus\022\031\n\021transformed_b" + + "ytes\030\005 \001(\003\022N\n\027transformation_location\030\006 " + + "\001(\0132-.google.privacy.dlp.v2.Transformati" + + "onLocation\"\331\001\n\026TransformationLocation\022\024\n" + + "\nfinding_id\030\001 \001(\tH\000\022L\n\025record_transforma" + + "tion\030\002 \001(\0132+.google.privacy.dlp.v2.Recor" + + "dTransformationH\000\022J\n\016container_type\030\003 \001(" + + "\01622.google.privacy.dlp.v2.Transformation" + + "ContainerTypeB\017\n\rlocation_type\"\234\001\n\024Recor" + + "dTransformation\0220\n\010field_id\030\001 \001(\0132\036.goog" + + "le.privacy.dlp.v2.FieldId\0227\n\023container_t" + + "imestamp\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mp\022\031\n\021container_version\030\003 \001(\t\"\224\001\n\032Transf" + + "ormationResultStatus\022Q\n\022result_status_ty" + + "pe\030\001 \001(\01625.google.privacy.dlp.v2.Transfo" + + "rmationResultStatusType\022#\n\007details\030\002 \001(\013" + + "2\022.google.rpc.Status\"c\n\"TransformationDe" + + "tailsStorageConfig\0225\n\005table\030\001 \001(\0132$.goog" + + "le.privacy.dlp.v2.BigQueryTableH\000B\006\n\004typ" + + "e\"U\n\010Schedule\022?\n\032recurrence_period_durat" + + "ion\030\001 \001(\0132\031.google.protobuf.DurationH\000B\010" + + "\n\006option\"\010\n\006Manual\"\302\004\n\017InspectTemplate\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\022" + + "\023\n\013description\030\003 \001(\t\0224\n\013create_time\030\004 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\005 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022<\n\016inspect_config\030\006 \001(\0132$.googl" + + "e.privacy.dlp.v2.InspectConfig:\306\002\352A\302\002\n\"d" + + "lp.googleapis.com/InspectTemplate\022@organ" + + "izations/{organization}/inspectTemplates" + + "/{inspect_template}\0226projects/{project}/" + + "inspectTemplates/{inspect_template}\022Uorg" + + "anizations/{organization}/locations/{loc" + + "ation}/inspectTemplates/{inspect_templat" + + "e}\022Kprojects/{project}/locations/{locati" + + "on}/inspectTemplates/{inspect_template}\"" + + "\346\004\n\022DeidentifyTemplate\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\022\024\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003" + + " \001(\t\0224\n\013create_time\030\004 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022B\n\021deid" + + "entify_config\030\006 \001(\0132\'.google.privacy.dlp" + + ".v2.DeidentifyConfig:\341\002\352A\335\002\n%dlp.googlea" + + "pis.com/DeidentifyTemplate\022Forganization" + + "s/{organization}/deidentifyTemplates/{de" + + "identify_template}\022\n\013inspect_job\030\004 \001(\0132\'.google.p" + + "rivacy.dlp.v2.InspectJobConfigH\000\022;\n\010trig" + + "gers\030\005 \003(\0132).google.privacy.dlp.v2.JobTr" + + "igger.Trigger\0221\n\006errors\030\006 \003(\0132\034.google.p" + + "rivacy.dlp.v2.ErrorB\003\340A\003\0224\n\013create_time\030" + + "\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013update_time\030\010 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0226\n\rlast_run_time\030\t \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022=\n\006status\030\n" + + " \001(\0162(.google.privacy.dlp.v2.JobTrigger." + + "StatusB\003\340A\002\032z\n\007Trigger\0223\n\010schedule\030\001 \001(\013" + + "2\037.google.privacy.dlp.v2.ScheduleH\000\022/\n\006m" + + "anual\030\002 \001(\0132\035.google.privacy.dlp.v2.Manu" + + "alH\000B\t\n\007trigger\"H\n\006Status\022\026\n\022STATUS_UNSP" + + "ECIFIED\020\000\022\013\n\007HEALTHY\020\001\022\n\n\006PAUSED\020\002\022\r\n\tCA" + + "NCELLED\020\003:\224\001\352A\220\001\n\035dlp.googleapis.com/Job" + + "Trigger\022,projects/{project}/jobTriggers/" + + "{job_trigger}\022Aprojects/{project}/locati" + + "ons/{location}/jobTriggers/{job_trigger}" + + "B\005\n\003job\"\352\010\n\006Action\022C\n\rsave_findings\030\001 \001(" + + "\0132*.google.privacy.dlp.v2.Action.SaveFin" + + "dingsH\000\022@\n\007pub_sub\030\002 \001(\0132-.google.privac" + + "y.dlp.v2.Action.PublishToPubSubH\000\022U\n\027pub" + + "lish_summary_to_cscc\030\003 \001(\01322.google.priv" + + "acy.dlp.v2.Action.PublishSummaryToCsccH\000" + + "\022q\n&publish_findings_to_cloud_data_catal" + + "og\030\005 \001(\0132?.google.privacy.dlp.v2.Action." + + "PublishFindingsToCloudDataCatalogH\000\022>\n\nd" + + "eidentify\030\007 \001(\0132(.google.privacy.dlp.v2." + + "Action.DeidentifyH\000\022V\n\027job_notification_" + + "emails\030\010 \001(\01323.google.privacy.dlp.v2.Act" + + "ion.JobNotificationEmailsH\000\022T\n\026publish_t" + + "o_stackdriver\030\t \001(\01322.google.privacy.dlp" + + ".v2.Action.PublishToStackdriverH\000\032Q\n\014Sav" + + "eFindings\022A\n\routput_config\030\001 \001(\0132*.googl" + + "e.privacy.dlp.v2.OutputStorageConfig\032 \n\017" + + "PublishToPubSub\022\r\n\005topic\030\001 \001(\t\032\026\n\024Publis" + + "hSummaryToCscc\032#\n!PublishFindingsToCloud" + + "DataCatalog\032\263\002\n\nDeidentify\022J\n\025transforma" + + "tion_config\030\007 \001(\0132+.google.privacy.dlp.v" + + "2.TransformationConfig\022h\n%transformation" + + "_details_storage_config\030\003 \001(\01329.google.p" + + "rivacy.dlp.v2.TransformationDetailsStora" + + "geConfig\022#\n\024cloud_storage_output\030\t \001(\tB\003" + + "\340A\002H\000\022@\n\027file_types_to_transform\030\010 \003(\0162\037" + + ".google.privacy.dlp.v2.FileTypeB\010\n\006outpu" + + "t\032\027\n\025JobNotificationEmails\032\026\n\024PublishToS" + + "tackdriverB\010\n\006action\"z\n\024TransformationCo" + + "nfig\022\033\n\023deidentify_template\030\001 \001(\t\022&\n\036str" + + "uctured_deidentify_template\030\002 \001(\t\022\035\n\025ima" + + "ge_redact_template\030\004 \001(\t\"\313\001\n\034CreateInspe" + + "ctTemplateRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A" + + "$\022\"dlp.googleapis.com/InspectTemplate\022E\n" + + "\020inspect_template\030\002 \001(\0132&.google.privacy" + + ".dlp.v2.InspectTemplateB\003\340A\002\022\023\n\013template" + + "_id\030\003 \001(\t\022\023\n\013location_id\030\004 \001(\t\"\313\001\n\034Updat" + + "eInspectTemplateRequest\0228\n\004name\030\001 \001(\tB*\340" + + "A\002\372A$\n\"dlp.googleapis.com/InspectTemplat" + + "e\022@\n\020inspect_template\030\002 \001(\0132&.google.pri" + + "vacy.dlp.v2.InspectTemplate\022/\n\013update_ma" + + "sk\030\003 \001(\0132\032.google.protobuf.FieldMask\"U\n\031" + + "GetInspectTemplateRequest\0228\n\004name\030\001 \001(\tB" + + "*\340A\002\372A$\n\"dlp.googleapis.com/InspectTempl" + + "ate\"\247\001\n\033ListInspectTemplatesRequest\022:\n\006p" + + "arent\030\001 \001(\tB*\340A\002\372A$\022\"dlp.googleapis.com/" + + "InspectTemplate\022\022\n\npage_token\030\002 \001(\t\022\021\n\tp" + + "age_size\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\022\023\n\013loca" + + "tion_id\030\005 \001(\t\"z\n\034ListInspectTemplatesRes" + + "ponse\022A\n\021inspect_templates\030\001 \003(\0132&.googl" + + "e.privacy.dlp.v2.InspectTemplate\022\027\n\017next" + + "_page_token\030\002 \001(\t\"X\n\034DeleteInspectTempla" + + "teRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dlp.goo" + + "gleapis.com/InspectTemplate\"\266\001\n\027CreateJo" + + "bTriggerRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022" + + "\035dlp.googleapis.com/JobTrigger\022;\n\013job_tr" + + "igger\030\002 \001(\0132!.google.privacy.dlp.v2.JobT" + + "riggerB\003\340A\002\022\022\n\ntrigger_id\030\003 \001(\t\022\023\n\013locat" + + "ion_id\030\004 \001(\t\"P\n\031ActivateJobTriggerReques" + + "t\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.googleapis." + + "com/JobTrigger\"\267\001\n\027UpdateJobTriggerReque" + + "st\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.googleapis" + + ".com/JobTrigger\0226\n\013job_trigger\030\002 \001(\0132!.g" + + "oogle.privacy.dlp.v2.JobTrigger\022/\n\013updat" + + "e_mask\030\003 \001(\0132\032.google.protobuf.FieldMask" + + "\"K\n\024GetJobTriggerRequest\0223\n\004name\030\001 \001(\tB%" + + "\340A\002\372A\037\n\035dlp.googleapis.com/JobTrigger\"\264\001", + "\n\034CreateDiscoveryConfigRequest\022:\n\006parent" + + "\030\001 \001(\tB*\340A\002\372A$\022\"dlp.googleapis.com/Disco" + + "veryConfig\022E\n\020discovery_config\030\002 \001(\0132&.g" + + "oogle.privacy.dlp.v2.DiscoveryConfigB\003\340A" + + "\002\022\021\n\tconfig_id\030\003 \001(\t\"\320\001\n\034UpdateDiscovery" + + "ConfigRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dlp" + + ".googleapis.com/DiscoveryConfig\022E\n\020disco" + + "very_config\030\002 \001(\0132&.google.privacy.dlp.v" + + "2.DiscoveryConfigB\003\340A\002\022/\n\013update_mask\030\003 " + + "\001(\0132\032.google.protobuf.FieldMask\"U\n\031GetDi" + + "scoveryConfigRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372" + + "A$\n\"dlp.googleapis.com/DiscoveryConfig\"\222" + + "\001\n\033ListDiscoveryConfigsRequest\022:\n\006parent" + + "\030\001 \001(\tB*\340A\002\372A$\022\"dlp.googleapis.com/Disco" + + "veryConfig\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_s" + + "ize\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\"z\n\034ListDisco" + + "veryConfigsResponse\022A\n\021discovery_configs" + + "\030\001 \003(\0132&.google.privacy.dlp.v2.Discovery" + + "Config\022\027\n\017next_page_token\030\002 \001(\t\"X\n\034Delet" + + "eDiscoveryConfigRequest\0228\n\004name\030\001 \001(\tB*\340" + + "A\002\372A$\n\"dlp.googleapis.com/DiscoveryConfi" + + "g\"\366\001\n\023CreateDlpJobRequest\0221\n\006parent\030\001 \001(" + + "\tB!\340A\002\372A\033\022\031dlp.googleapis.com/DlpJob\022>\n\013" + + "inspect_job\030\002 \001(\0132\'.google.privacy.dlp.v" + + "2.InspectJobConfigH\000\022@\n\010risk_job\030\003 \001(\0132," + + ".google.privacy.dlp.v2.RiskAnalysisJobCo" + + "nfigH\000\022\016\n\006job_id\030\004 \001(\t\022\023\n\013location_id\030\005 " + + "\001(\tB\005\n\003job\"\336\001\n\026ListJobTriggersRequest\0225\n" + + "\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035dlp.googleapis.co" + + "m/JobTrigger\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage" + + "_size\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\022\016\n\006filter\030" + + "\005 \001(\t\022/\n\004type\030\006 \001(\0162!.google.privacy.dlp" + + ".v2.DlpJobType\022\023\n\013location_id\030\007 \001(\t\"k\n\027L" + + "istJobTriggersResponse\0227\n\014job_triggers\030\001" + + " \003(\0132!.google.privacy.dlp.v2.JobTrigger\022" + + "\027\n\017next_page_token\030\002 \001(\t\"N\n\027DeleteJobTri" + + "ggerRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.g" + + "oogleapis.com/JobTrigger\"\335\001\n\020InspectJobC" + + "onfig\022<\n\016storage_config\030\001 \001(\0132$.google.p" + + "rivacy.dlp.v2.StorageConfig\022<\n\016inspect_c" + + "onfig\030\002 \001(\0132$.google.privacy.dlp.v2.Insp" + + "ectConfig\022\035\n\025inspect_template_name\030\003 \001(\t" + + "\022.\n\007actions\030\004 \003(\0132\035.google.privacy.dlp.v" + + "2.Action\"\205\006\n\021DataProfileAction\022F\n\013export" + + "_data\030\001 \001(\0132/.google.privacy.dlp.v2.Data" + + "ProfileAction.ExportH\000\022[\n\024pub_sub_notifi" + + "cation\030\002 \001(\0132;.google.privacy.dlp.v2.Dat" + + "aProfileAction.PubSubNotificationH\000\032E\n\006E" + + "xport\022;\n\rprofile_table\030\001 \001(\0132$.google.pr" + + "ivacy.dlp.v2.BigQueryTable\032\202\003\n\022PubSubNot" + + "ification\022\r\n\005topic\030\001 \001(\t\022A\n\005event\030\002 \001(\0162" + + "2.google.privacy.dlp.v2.DataProfileActio" + + "n.EventType\022K\n\020pubsub_condition\030\003 \001(\01321." + + "google.privacy.dlp.v2.DataProfilePubSubC" + + "ondition\022b\n\021detail_of_message\030\004 \001(\0162G.go" + + "ogle.privacy.dlp.v2.DataProfileAction.Pu" + + "bSubNotification.DetailLevel\"i\n\013DetailLe" + + "vel\022\034\n\030DETAIL_LEVEL_UNSPECIFIED\020\000\022\021\n\rTAB" + + "LE_PROFILE\020\001\022\021\n\rRESOURCE_NAME\020\002\022\026\n\022FILE_" + + "STORE_PROFILE\020\003\"u\n\tEventType\022\032\n\026EVENT_TY" + + "PE_UNSPECIFIED\020\000\022\017\n\013NEW_PROFILE\020\001\022\023\n\017CHA" + + "NGED_PROFILE\020\002\022\023\n\017SCORE_INCREASED\020\003\022\021\n\rE" + + "RROR_CHANGED\020\004B\010\n\006action\"\313\001\n\024DataProfile" + + "JobConfig\022<\n\010location\030\001 \001(\0132*.google.pri" + + "vacy.dlp.v2.DataProfileLocation\022\022\n\nproje" + + "ct_id\030\005 \001(\t\022\031\n\021inspect_templates\030\007 \003(\t\022F" + + "\n\024data_profile_actions\030\006 \003(\0132(.google.pr" + + "ivacy.dlp.v2.DataProfileAction\"[\n\rBigQue" + + "ryRegex\022\030\n\020project_id_regex\030\001 \001(\t\022\030\n\020dat" + + "aset_id_regex\030\002 \001(\t\022\026\n\016table_id_regex\030\003 " + + "\001(\t\"I\n\017BigQueryRegexes\0226\n\010patterns\030\001 \003(\013" + + "2$.google.privacy.dlp.v2.BigQueryRegex\"M" + + "\n\022BigQueryTableTypes\0227\n\005types\030\001 \003(\0162(.go" + + "ogle.privacy.dlp.v2.BigQueryTableType\"\n\n" + + "\010Disabled\"Q\n\023DataProfileLocation\022\031\n\017orga" + + "nization_id\030\001 \001(\003H\000\022\023\n\tfolder_id\030\002 \001(\003H\000" + + "B\n\n\010location\"\273\006\n\017DiscoveryConfig\022\014\n\004name" + + "\030\001 \001(\t\022\024\n\014display_name\030\013 \001(\t\022D\n\norg_conf" + + "ig\030\002 \001(\01320.google.privacy.dlp.v2.Discove" + + "ryConfig.OrgConfig\022\031\n\021inspect_templates\030" + + "\003 \003(\t\0229\n\007actions\030\004 \003(\0132(.google.privacy." + + "dlp.v2.DataProfileAction\0227\n\007targets\030\005 \003(" + + "\0132&.google.privacy.dlp.v2.DiscoveryTarge" + + "t\0221\n\006errors\030\006 \003(\0132\034.google.privacy.dlp.v" + + "2.ErrorB\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" + + "e\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0226\n\rlast_run_time\030\t \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022B\n\006status\030\n \001(\0162-.googl" + + "e.privacy.dlp.v2.DiscoveryConfig.StatusB" + + "\003\340A\002\032c\n\tOrgConfig\022B\n\010location\030\001 \001(\01320.go" + + "ogle.privacy.dlp.v2.DiscoveryStartingLoc" + + "ation\022\022\n\nproject_id\030\002 \001(\t\"9\n\006Status\022\026\n\022S" + + "TATUS_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\n\n\006PAUS" + + "ED\020\002:t\352Aq\n\"dlp.googleapis.com/DiscoveryC" + + "onfig\022Kprojects/{project}/locations/{loc" + + "ation}/discoveryConfigs/{discovery_confi" + + "g}\"\320\002\n\017DiscoveryTarget\022J\n\020big_query_targ" + + "et\030\001 \001(\0132..google.privacy.dlp.v2.BigQuer" + + "yDiscoveryTargetH\000\022J\n\020cloud_sql_target\030\002" + + " \001(\0132..google.privacy.dlp.v2.CloudSqlDis" + + "coveryTargetH\000\022G\n\016secrets_target\030\003 \001(\0132-" + + ".google.privacy.dlp.v2.SecretsDiscoveryT" + + "argetH\000\022R\n\024cloud_storage_target\030\004 \001(\01322." + + "google.privacy.dlp.v2.CloudStorageDiscov" + + "eryTargetH\000B\010\n\006target\"\256\002\n\027BigQueryDiscov" + + "eryTarget\022C\n\006filter\030\001 \001(\0132..google.priva" + + "cy.dlp.v2.DiscoveryBigQueryFilterB\003\340A\002\022F" + + "\n\nconditions\030\002 \001(\01322.google.privacy.dlp." + + "v2.DiscoveryBigQueryConditions\022D\n\007cadenc" + + "e\030\003 \001(\01321.google.privacy.dlp.v2.Discover" + + "yGenerationCadenceH\000\0223\n\010disabled\030\004 \001(\0132\037" + + ".google.privacy.dlp.v2.DisabledH\000B\013\n\tfre" + + "quency\"\240\002\n\027DiscoveryBigQueryFilter\022@\n\006ta" + + "bles\030\001 \001(\0132..google.privacy.dlp.v2.BigQu" + + "eryTableCollectionH\000\022]\n\014other_tables\030\002 \001" + + "(\0132E.google.privacy.dlp.v2.DiscoveryBigQ" + + "ueryFilter.AllOtherBigQueryTablesH\000\022@\n\017t" + + "able_reference\030\003 \001(\0132%.google.privacy.dl" + + "p.v2.TableReferenceH\000\032\030\n\026AllOtherBigQuer" + + "yTablesB\010\n\006filter\"g\n\027BigQueryTableCollec" + + "tion\022A\n\017include_regexes\030\001 \001(\0132&.google.p" + + "rivacy.dlp.v2.BigQueryRegexesH\000B\t\n\007patte" + + "rn\"\230\003\n\033DiscoveryBigQueryConditions\0221\n\rcr" + + "eated_after\030\001 \001(\0132\032.google.protobuf.Time" + + "stamp\022:\n\005types\030\002 \001(\0132).google.privacy.dl" + + "p.v2.BigQueryTableTypesH\000\022M\n\017type_collec" + + "tion\030\003 \001(\01622.google.privacy.dlp.v2.BigQu" + + "eryTableTypeCollectionH\000\022V\n\ror_condition" + + "s\030\004 \001(\0132?.google.privacy.dlp.v2.Discover" + + "yBigQueryConditions.OrConditions\032Q\n\014OrCo" + + "nditions\022\025\n\rmin_row_count\030\001 \001(\005\022*\n\007min_a" + + "ge\030\002 \001(\0132\031.google.protobuf.DurationB\020\n\016i" + + "ncluded_types\"\203\003\n\032DiscoveryGenerationCad" + + "ence\022V\n\027schema_modified_cadence\030\001 \001(\01325." + + "google.privacy.dlp.v2.DiscoverySchemaMod" + + "ifiedCadence\022T\n\026table_modified_cadence\030\002" + + " \001(\01324.google.privacy.dlp.v2.DiscoveryTa" + + "bleModifiedCadence\022i\n!inspect_template_m" + + "odified_cadence\030\003 \001(\0132>.google.privacy.d" + + "lp.v2.DiscoveryInspectTemplateModifiedCa" + + "dence\022L\n\021refresh_frequency\030\004 \001(\01621.googl" + + "e.privacy.dlp.v2.DataProfileUpdateFreque" + + "ncy\"\246\001\n\035DiscoveryTableModifiedCadence\022?\n" + + "\005types\030\001 \003(\01620.google.privacy.dlp.v2.Big" + + "QueryTableModification\022D\n\tfrequency\030\002 \001(" + + "\01621.google.privacy.dlp.v2.DataProfileUpd" + + "ateFrequency\"\250\001\n\036DiscoverySchemaModified" + + "Cadence\022@\n\005types\030\001 \003(\01621.google.privacy." + + "dlp.v2.BigQuerySchemaModification\022D\n\tfre" + + "quency\030\002 \001(\01621.google.privacy.dlp.v2.Dat" + + "aProfileUpdateFrequency\"o\n\'DiscoveryInsp" + + "ectTemplateModifiedCadence\022D\n\tfrequency\030" + + "\001 \001(\01621.google.privacy.dlp.v2.DataProfil" + + "eUpdateFrequency\"\277\002\n\027CloudSqlDiscoveryTa" + + "rget\022C\n\006filter\030\001 \001(\0132..google.privacy.dl" + + "p.v2.DiscoveryCloudSqlFilterB\003\340A\002\022F\n\ncon" + + "ditions\030\002 \001(\01322.google.privacy.dlp.v2.Di" + + "scoveryCloudSqlConditions\022W\n\022generation_" + + "cadence\030\003 \001(\01329.google.privacy.dlp.v2.Di" + + "scoveryCloudSqlGenerationCadenceH\000\0223\n\010di" + + "sabled\030\004 \001(\0132\037.google.privacy.dlp.v2.Dis" + + "abledH\000B\t\n\007cadence\"\211\002\n\027DiscoveryCloudSql" + + "Filter\022G\n\ncollection\030\001 \001(\01321.google.priv" + + "acy.dlp.v2.DatabaseResourceCollectionH\000\022" + + "B\n\006others\030\002 \001(\01320.google.privacy.dlp.v2." + + "AllOtherDatabaseResourcesH\000\022W\n\033database_" + + "resource_reference\030\003 \001(\01320.google.privac" + + "y.dlp.v2.DatabaseResourceReferenceH\000B\010\n\006" + + "filter\"r\n\032DatabaseResourceCollection\022I\n\017" + + "include_regexes\030\001 \001(\0132..google.privacy.d" + + "lp.v2.DatabaseResourceRegexesH\000B\t\n\007patte" + + "rn\"Y\n\027DatabaseResourceRegexes\022>\n\010pattern" + + "s\030\001 \003(\0132,.google.privacy.dlp.v2.Database" + + "ResourceRegex\"\207\001\n\025DatabaseResourceRegex\022" + + "\030\n\020project_id_regex\030\001 \001(\t\022\026\n\016instance_re" + + "gex\030\002 \001(\t\022\026\n\016database_regex\030\003 \001(\t\022$\n\034dat" + + "abase_resource_name_regex\030\004 \001(\t\"\033\n\031AllOt" + + "herDatabaseResources\"\202\001\n\031DatabaseResourc" + + "eReference\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\025\n\010i" + + "nstance\030\002 \001(\tB\003\340A\002\022\025\n\010database\030\003 \001(\tB\003\340A" + + "\002\022\036\n\021database_resource\030\004 \001(\tB\003\340A\002\"\332\003\n\033Di" + + "scoveryCloudSqlConditions\022`\n\020database_en" + + "gines\030\001 \003(\0162A.google.privacy.dlp.v2.Disc" + + "overyCloudSqlConditions.DatabaseEngineB\003" + + "\340A\001\022V\n\005types\030\003 \003(\0162G.google.privacy.dlp." + + "v2.DiscoveryCloudSqlConditions.DatabaseR" + + "esourceType\"n\n\016DatabaseEngine\022\037\n\033DATABAS" + + "E_ENGINE_UNSPECIFIED\020\000\022\"\n\036ALL_SUPPORTED_" + + "DATABASE_ENGINES\020\001\022\t\n\005MYSQL\020\002\022\014\n\010POSTGRE" + + "S\020\003\"\220\001\n\024DatabaseResourceType\022&\n\"DATABASE" + + "_RESOURCE_TYPE_UNSPECIFIED\020\000\022.\n*DATABASE" + + "_RESOURCE_TYPE_ALL_SUPPORTED_TYPES\020\001\022 \n\034" + + "DATABASE_RESOURCE_TYPE_TABLE\020\002\"\254\004\n\"Disco" + + "veryCloudSqlGenerationCadence\022p\n\027schema_" + + "modified_cadence\030\001 \001(\0132O.google.privacy." + + "dlp.v2.DiscoveryCloudSqlGenerationCadenc" + + "e.SchemaModifiedCadence\022L\n\021refresh_frequ" + + "ency\030\002 \001(\01621.google.privacy.dlp.v2.DataP" + + "rofileUpdateFrequency\032\305\002\n\025SchemaModified" + + "Cadence\022y\n\005types\030\001 \003(\0162j.google.privacy." + + "dlp.v2.DiscoveryCloudSqlGenerationCadenc" + + "e.SchemaModifiedCadence.CloudSqlSchemaMo" + + "dification\022D\n\tfrequency\030\002 \001(\01621.google.p" + + "rivacy.dlp.v2.DataProfileUpdateFrequency" + + "\"k\n\032CloudSqlSchemaModification\022\'\n#SQL_SC" + + "HEMA_MODIFICATION_UNSPECIFIED\020\000\022\017\n\013NEW_C" + + "OLUMNS\020\001\022\023\n\017REMOVED_COLUMNS\020\002\"\030\n\026Secrets" + + "DiscoveryTarget\"\333\002\n\033CloudStorageDiscover" + + "yTarget\022G\n\006filter\030\001 \001(\01322.google.privacy" + + ".dlp.v2.DiscoveryCloudStorageFilterB\003\340A\002" + + "\022L\n\nconditions\030\004 \001(\01323.google.privacy.dl" + + "p.v2.DiscoveryFileStoreConditionsB\003\340A\001\022`" + + "\n\022generation_cadence\030\002 \001(\0132=.google.priv" + + "acy.dlp.v2.DiscoveryCloudStorageGenerati" + + "onCadenceB\003\340A\001H\000\0228\n\010disabled\030\003 \001(\0132\037.goo" + + "gle.privacy.dlp.v2.DisabledB\003\340A\001H\000B\t\n\007ca" + + "dence\"\226\002\n\033DiscoveryCloudStorageFilter\022E\n" + + "\ncollection\030\001 \001(\0132*.google.privacy.dlp.v" + + "2.FileStoreCollectionB\003\340A\001H\000\022e\n cloud_st" + + "orage_resource_reference\030\002 \001(\01324.google." + + "privacy.dlp.v2.CloudStorageResourceRefer" + + "enceB\003\340A\001H\000\022?\n\006others\030d \001(\0132(.google.pri" + + "vacy.dlp.v2.AllOtherResourcesB\003\340A\001H\000B\010\n\006" + + "filter\"i\n\023FileStoreCollection\022G\n\017include" + + "_regexes\030\001 \001(\0132\'.google.privacy.dlp.v2.F" + + "ileStoreRegexesB\003\340A\001H\000B\t\n\007pattern\"P\n\020Fil" + + "eStoreRegexes\022<\n\010patterns\030\001 \003(\0132%.google" + + ".privacy.dlp.v2.FileStoreRegexB\003\340A\002\"p\n\016F" + + "ileStoreRegex\022L\n\023cloud_storage_regex\030\001 \001" + + "(\0132(.google.privacy.dlp.v2.CloudStorageR" + + "egexB\003\340A\001H\000B\020\n\016resource_regex\"R\n\021CloudSt" + + "orageRegex\022\035\n\020project_id_regex\030\001 \001(\tB\003\340A" + + "\001\022\036\n\021bucket_name_regex\030\002 \001(\tB\003\340A\001\"R\n\035Clo" + + "udStorageResourceReference\022\030\n\013bucket_nam" + + "e\030\001 \001(\tB\003\340A\002\022\027\n\nproject_id\030\002 \001(\tB\003\340A\002\"\353\001" + + "\n&DiscoveryCloudStorageGenerationCadence" + + "\022Q\n\021refresh_frequency\030\001 \001(\01621.google.pri" + + "vacy.dlp.v2.DataProfileUpdateFrequencyB\003" + + "\340A\001\022n\n!inspect_template_modified_cadence" + + "\030\002 \001(\0132>.google.privacy.dlp.v2.Discovery" + + "InspectTemplateModifiedCadenceB\003\340A\001\"\233\005\n\037" + + "DiscoveryCloudStorageConditions\022{\n\032inclu" + + "ded_object_attributes\030\001 \003(\0162R.google.pri" + + "vacy.dlp.v2.DiscoveryCloudStorageConditi" + + "ons.CloudStorageObjectAttributeB\003\340A\002\022{\n\032" + + "included_bucket_attributes\030\002 \003(\0162R.googl" + + "e.privacy.dlp.v2.DiscoveryCloudStorageCo" + + "nditions.CloudStorageBucketAttributeB\003\340A" + + "\002\"\343\001\n\033CloudStorageObjectAttribute\022.\n*CLO" + + "UD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED\020" + + "\000\022\031\n\025ALL_SUPPORTED_OBJECTS\020\001\022\014\n\010STANDARD" + + "\020\002\022\014\n\010NEARLINE\020\003\022\014\n\010COLDLINE\020\004\022\013\n\007ARCHIV" + + "E\020\005\022\014\n\010REGIONAL\020\006\022\022\n\016MULTI_REGIONAL\020\007\022 \n" + + "\034DURABLE_REDUCED_AVAILABILITY\020\010\"\227\001\n\033Clou" + + "dStorageBucketAttribute\022.\n*CLOUD_STORAGE" + + "_BUCKET_ATTRIBUTE_UNSPECIFIED\020\000\022\031\n\025ALL_S" + + "UPPORTED_BUCKETS\020\001\022\026\n\022AUTOCLASS_DISABLED" + + "\020\002\022\025\n\021AUTOCLASS_ENABLED\020\003\"\366\001\n\034DiscoveryF" + + "ileStoreConditions\0226\n\rcreated_after\030\001 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\001\022/\n\007mi" + + "n_age\030\002 \001(\0132\031.google.protobuf.DurationB\003" + + "\340A\001\022_\n\030cloud_storage_conditions\030\003 \001(\01326." + + "google.privacy.dlp.v2.DiscoveryCloudStor" + + "ageConditionsB\003\340A\001H\000B\014\n\nconditions\"W\n\031Di" + + "scoveryStartingLocation\022\031\n\017organization_" + + "id\030\001 \001(\003H\000\022\023\n\tfolder_id\030\002 \001(\003H\000B\n\n\010locat" + + "ion\"\023\n\021AllOtherResources\"\334\006\n\006DlpJob\022\014\n\004n" + + "ame\030\001 \001(\t\022/\n\004type\030\002 \001(\0162!.google.privacy" + + ".dlp.v2.DlpJobType\0225\n\005state\030\003 \001(\0162&.goog" + + "le.privacy.dlp.v2.DlpJob.JobState\022K\n\014ris" + + "k_details\030\004 \001(\01323.google.privacy.dlp.v2." + + "AnalyzeDataSourceRiskDetailsH\000\022J\n\017inspec" + + "t_details\030\005 \001(\0132/.google.privacy.dlp.v2." + + "InspectDataSourceDetailsH\000\022/\n\013create_tim" + + "e\030\006 \001(\0132\032.google.protobuf.Timestamp\022.\n\ns" + + "tart_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "amp\022,\n\010end_time\030\010 \001(\0132\032.google.protobuf." + + "Timestamp\0221\n\rlast_modified\030\017 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022\030\n\020job_trigger_name" + + "\030\n \001(\t\022,\n\006errors\030\013 \003(\0132\034.google.privacy." + + "dlp.v2.Error\022<\n\016action_details\030\014 \003(\0132$.g" + + "oogle.privacy.dlp.v2.ActionDetails\"o\n\010Jo" + + "bState\022\031\n\025JOB_STATE_UNSPECIFIED\020\000\022\013\n\007PEN" + + "DING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010CANCELE" + + "D\020\004\022\n\n\006FAILED\020\005\022\n\n\006ACTIVE\020\006:\177\352A|\n\031dlp.go" + + "ogleapis.com/DlpJob\022$projects/{project}/" + + "dlpJobs/{dlp_job}\0229projects/{project}/lo" + + "cations/{location}/dlpJobs/{dlp_job}B\t\n\007" + + "details\"C\n\020GetDlpJobRequest\022/\n\004name\030\001 \001(" + + "\tB!\340A\002\372A\033\n\031dlp.googleapis.com/DlpJob\"\326\001\n" + + "\022ListDlpJobsRequest\0221\n\006parent\030\004 \001(\tB!\340A\002" + + "\372A\033\022\031dlp.googleapis.com/DlpJob\022\016\n\006filter" + + "\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + + "\003 \001(\t\022/\n\004type\030\005 \001(\0162!.google.privacy.dlp" + + ".v2.DlpJobType\022\020\n\010order_by\030\006 \001(\t\022\023\n\013loca" + + "tion_id\030\007 \001(\t\"[\n\023ListDlpJobsResponse\022+\n\004" + + "jobs\030\001 \003(\0132\035.google.privacy.dlp.v2.DlpJo" + + "b\022\027\n\017next_page_token\030\002 \001(\t\"F\n\023CancelDlpJ" + + "obRequest\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.goo" + + "gleapis.com/DlpJob\"F\n\023FinishDlpJobReques" + + "t\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googleapis." + + "com/DlpJob\"F\n\023DeleteDlpJobRequest\022/\n\004nam" + + "e\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googleapis.com/DlpJ" + + "ob\"\327\001\n\037CreateDeidentifyTemplateRequest\022=" + + "\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dlp.googleapis.c" + + "om/DeidentifyTemplate\022K\n\023deidentify_temp" + + "late\030\002 \001(\0132).google.privacy.dlp.v2.Deide" + + "ntifyTemplateB\003\340A\002\022\023\n\013template_id\030\003 \001(\t\022" + + "\023\n\013location_id\030\004 \001(\t\"\327\001\n\037UpdateDeidentif" + + "yTemplateRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%" + + "dlp.googleapis.com/DeidentifyTemplate\022F\n" + + "\023deidentify_template\030\002 \001(\0132).google.priv" + + "acy.dlp.v2.DeidentifyTemplate\022/\n\013update_" + + "mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"[" + + "\n\034GetDeidentifyTemplateRequest\022;\n\004name\030\001" + + " \001(\tB-\340A\002\372A\'\n%dlp.googleapis.com/Deident" + + "ifyTemplate\"\255\001\n\036ListDeidentifyTemplatesR" + + "equest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dlp.goog" + + "leapis.com/DeidentifyTemplate\022\022\n\npage_to" + + "ken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010order_by" + + "\030\004 \001(\t\022\023\n\013location_id\030\005 \001(\t\"\203\001\n\037ListDeid" + + "entifyTemplatesResponse\022G\n\024deidentify_te" + + "mplates\030\001 \003(\0132).google.privacy.dlp.v2.De" + + "identifyTemplate\022\027\n\017next_page_token\030\002 \001(" + + "\t\"^\n\037DeleteDeidentifyTemplateRequest\022;\n\004" + + "name\030\001 \001(\tB-\340A\002\372A\'\n%dlp.googleapis.com/D" + + "eidentifyTemplate\"\364\001\n\033LargeCustomDiction" + + "aryConfig\022<\n\013output_path\030\001 \001(\0132\'.google." + + "privacy.dlp.v2.CloudStoragePath\022L\n\026cloud" + + "_storage_file_set\030\002 \001(\0132*.google.privacy" + + ".dlp.v2.CloudStorageFileSetH\000\022?\n\017big_que" + + "ry_field\030\003 \001(\0132$.google.privacy.dlp.v2.B" + + "igQueryFieldH\000B\010\n\006source\"8\n\032LargeCustomD" + + "ictionaryStats\022\032\n\022approx_num_phrases\030\001 \001" + + "(\003\"\246\002\n\024StoredInfoTypeConfig\022\024\n\014display_n" + + "ame\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022U\n\027large_" + + "custom_dictionary\030\003 \001(\01322.google.privacy" + + ".dlp.v2.LargeCustomDictionaryConfigH\000\022F\n" + + "\ndictionary\030\004 \001(\01320.google.privacy.dlp.v" + + "2.CustomInfoType.DictionaryH\000\022<\n\005regex\030\005" + + " \001(\0132+.google.privacy.dlp.v2.CustomInfoT" + + "ype.RegexH\000B\006\n\004type\"s\n\023StoredInfoTypeSta" + + "ts\022T\n\027large_custom_dictionary\030\001 \001(\01321.go" + + "ogle.privacy.dlp.v2.LargeCustomDictionar" + + "yStatsH\000B\006\n\004type\"\251\002\n\025StoredInfoTypeVersi" + + "on\022;\n\006config\030\001 \001(\0132+.google.privacy.dlp." + + "v2.StoredInfoTypeConfig\022/\n\013create_time\030\002" + + " \001(\0132\032.google.protobuf.Timestamp\0229\n\005stat" + + "e\030\003 \001(\0162*.google.privacy.dlp.v2.StoredIn" + + "foTypeState\022,\n\006errors\030\004 \003(\0132\034.google.pri" + + "vacy.dlp.v2.Error\0229\n\005stats\030\005 \001(\0132*.googl" + + "e.privacy.dlp.v2.StoredInfoTypeStats\"\361\003\n" + + "\016StoredInfoType\022\014\n\004name\030\001 \001(\t\022E\n\017current" + + "_version\030\002 \001(\0132,.google.privacy.dlp.v2.S" + + "toredInfoTypeVersion\022F\n\020pending_versions" + + "\030\003 \003(\0132,.google.privacy.dlp.v2.StoredInf" + + "oTypeVersion:\301\002\352A\275\002\n!dlp.googleapis.com/" + + "StoredInfoType\022?organizations/{organizat" + + "ion}/storedInfoTypes/{stored_info_type}\022" + + "5projects/{project}/storedInfoTypes/{sto" + + "red_info_type}\022Torganizations/{organizat" + + "ion}/locations/{location}/storedInfoType" + + "s/{stored_info_type}\022Jprojects/{project}" + + "/locations/{location}/storedInfoTypes/{s" + + "tored_info_type}\"\314\001\n\033CreateStoredInfoTyp" + + "eRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!dlp.go" + + "ogleapis.com/StoredInfoType\022@\n\006config\030\002 " + + "\001(\0132+.google.privacy.dlp.v2.StoredInfoTy" + + "peConfigB\003\340A\002\022\033\n\023stored_info_type_id\030\003 \001" + + "(\t\022\023\n\013location_id\030\004 \001(\t\"\304\001\n\033UpdateStored" + + "InfoTypeRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!d" + + "lp.googleapis.com/StoredInfoType\022;\n\006conf" + + "ig\030\002 \001(\0132+.google.privacy.dlp.v2.StoredI" + + "nfoTypeConfig\022/\n\013update_mask\030\003 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\"S\n\030GetStoredInfoT" + + "ypeRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dlp.go" + + "ogleapis.com/StoredInfoType\"\245\001\n\032ListStor" + + "edInfoTypesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" + + "A#\022!dlp.googleapis.com/StoredInfoType\022\022\n" + + "\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010" + + "order_by\030\004 \001(\t\022\023\n\013location_id\030\005 \001(\t\"x\n\033L" + + "istStoredInfoTypesResponse\022@\n\021stored_inf" + + "o_types\030\001 \003(\0132%.google.privacy.dlp.v2.St" + + "oredInfoType\022\027\n\017next_page_token\030\002 \001(\t\"V\n" + + "\033DeleteStoredInfoTypeRequest\0227\n\004name\030\001 \001" + + "(\tB)\340A\002\372A#\n!dlp.googleapis.com/StoredInf" + + "oType\"\224\001\n\036HybridInspectJobTriggerRequest" + + "\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.googleapis.c" + + "om/JobTrigger\022=\n\013hybrid_item\030\003 \001(\0132(.goo" + + "gle.privacy.dlp.v2.HybridContentItem\"\214\001\n" + + "\032HybridInspectDlpJobRequest\022/\n\004name\030\001 \001(" + + "\tB!\340A\002\372A\033\n\031dlp.googleapis.com/DlpJob\022=\n\013" + + "hybrid_item\030\003 \001(\0132(.google.privacy.dlp.v" + + "2.HybridContentItem\"\213\001\n\021HybridContentIte" + + "m\0220\n\004item\030\001 \001(\0132\".google.privacy.dlp.v2." + + "ContentItem\022D\n\017finding_details\030\002 \001(\0132+.g" + + "oogle.privacy.dlp.v2.HybridFindingDetail" + + "s\"\260\002\n\024HybridFindingDetails\022;\n\021container_" + + "details\030\001 \001(\0132 .google.privacy.dlp.v2.Co", + "ntainer\022\023\n\013file_offset\030\002 \001(\003\022\022\n\nrow_offs" + + "et\030\003 \001(\003\022:\n\rtable_options\030\004 \001(\0132#.google" + + ".privacy.dlp.v2.TableOptions\022G\n\006labels\030\005" + + " \003(\01327.google.privacy.dlp.v2.HybridFindi" + + "ngDetails.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\027\n\025HybridIn" + + "spectResponse\"\250\001\n\036ListProjectDataProfile" + + "sRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dlp.go" + + "ogleapis.com/ProjectDataProfile\022\022\n\npage_" + + "token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010order_" + + "by\030\004 \001(\t\022\016\n\006filter\030\005 \001(\t\"\204\001\n\037ListProject" + + "DataProfilesResponse\022H\n\025project_data_pro" + + "files\030\001 \003(\0132).google.privacy.dlp.v2.Proj" + + "ectDataProfile\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\244\001\n\034ListTableDataProfilesRequest\022;\n\006pare" + + "nt\030\001 \001(\tB+\340A\002\372A%\022#dlp.googleapis.com/Tab" + + "leDataProfile\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpag" + + "e_size\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\022\016\n\006filter" + + "\030\005 \001(\t\"~\n\035ListTableDataProfilesResponse\022" + + "D\n\023table_data_profiles\030\001 \003(\0132\'.google.pr" + + "ivacy.dlp.v2.TableDataProfile\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"\246\001\n\035ListColumnDataProfile" + + "sRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$dlp.go" + + "ogleapis.com/ColumnDataProfile\022\022\n\npage_t" + + "oken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010order_b" + + "y\030\004 \001(\t\022\016\n\006filter\030\005 \001(\t\"\201\001\n\036ListColumnDa" + + "taProfilesResponse\022F\n\024column_data_profil" + + "es\030\001 \003(\0132(.google.privacy.dlp.v2.ColumnD" + + "ataProfile\022\027\n\017next_page_token\030\002 \001(\t\"\313\001\n\r" + + "DataRiskLevel\022F\n\005score\030\001 \001(\01627.google.pr" + + "ivacy.dlp.v2.DataRiskLevel.DataRiskLevel" + + "Score\"r\n\022DataRiskLevelScore\022\032\n\026RISK_SCOR" + + "E_UNSPECIFIED\020\000\022\014\n\010RISK_LOW\020\n\022\020\n\014RISK_UN" + + "KNOWN\020\014\022\021\n\rRISK_MODERATE\020\024\022\r\n\tRISK_HIGH\020" + + "\036\"\334\004\n\022ProjectDataProfile\022\014\n\004name\030\001 \001(\t\022\022" + + "\n\nproject_id\030\002 \001(\t\022:\n\026profile_last_gener" + + "ated\030\003 \001(\0132\032.google.protobuf.Timestamp\022B" + + "\n\021sensitivity_score\030\004 \001(\0132\'.google.priva" + + "cy.dlp.v2.SensitivityScore\022=\n\017data_risk_" + + "level\030\005 \001(\0132$.google.privacy.dlp.v2.Data" + + "RiskLevel\022<\n\016profile_status\030\007 \001(\0132$.goog" + + "le.privacy.dlp.v2.ProfileStatus\022 \n\030table" + + "_data_profile_count\030\t \001(\003\022%\n\035file_store_" + + "data_profile_count\030\n \001(\003:\335\001\352A\331\001\n%dlp.goo" + + "gleapis.com/ProjectDataProfile\022\\organiza" + + "tions/{organization}/locations/{location" + + "}/projectDataProfiles/{project_data_prof" + + "ile}\022Rprojects/{project}/locations/{loca" + + "tion}/projectDataProfiles/{project_data_" + + "profile}\"\311\002\n\031DataProfileConfigSnapshot\022<" + + "\n\016inspect_config\030\002 \001(\0132$.google.privacy." + + "dlp.v2.InspectConfig\022I\n\020data_profile_job" + + "\030\003 \001(\0132+.google.privacy.dlp.v2.DataProfi" + + "leJobConfigB\002\030\001\022@\n\020discovery_config\030\004 \001(" + "\0132&.google.privacy.dlp.v2.DiscoveryConfi" - + "g\022\027\n\017next_page_token\030\002 \001(\t\"X\n\034DeleteDisc" - + "overyConfigRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$" - + "\n\"dlp.googleapis.com/DiscoveryConfig\"\366\001\n" - + "\023CreateDlpJobRequest\0221\n\006parent\030\001 \001(\tB!\340A" - + "\002\372A\033\022\031dlp.googleapis.com/DlpJob\022>\n\013inspe" - + "ct_job\030\002 \001(\0132\'.google.privacy.dlp.v2.Ins" - + "pectJobConfigH\000\022@\n\010risk_job\030\003 \001(\0132,.goog" - + "le.privacy.dlp.v2.RiskAnalysisJobConfigH" - + "\000\022\016\n\006job_id\030\004 \001(\t\022\023\n\013location_id\030\005 \001(\tB\005" - + "\n\003job\"\336\001\n\026ListJobTriggersRequest\0225\n\006pare" - + "nt\030\001 \001(\tB%\340A\002\372A\037\022\035dlp.googleapis.com/Job" - + "Trigger\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size" - + "\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\022\016\n\006filter\030\005 \001(\t" - + "\022/\n\004type\030\006 \001(\0162!.google.privacy.dlp.v2.D" - + "lpJobType\022\023\n\013location_id\030\007 \001(\t\"k\n\027ListJo" - + "bTriggersResponse\0227\n\014job_triggers\030\001 \003(\0132" - + "!.google.privacy.dlp.v2.JobTrigger\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"N\n\027DeleteJobTriggerR" - + "equest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.google" - + "apis.com/JobTrigger\"\335\001\n\020InspectJobConfig" - + "\022<\n\016storage_config\030\001 \001(\0132$.google.privac" - + "y.dlp.v2.StorageConfig\022<\n\016inspect_config" - + "\030\002 \001(\0132$.google.privacy.dlp.v2.InspectCo" - + "nfig\022\035\n\025inspect_template_name\030\003 \001(\t\022.\n\007a" - + "ctions\030\004 \003(\0132\035.google.privacy.dlp.v2.Act" - + "ion\"\355\005\n\021DataProfileAction\022F\n\013export_data" - + "\030\001 \001(\0132/.google.privacy.dlp.v2.DataProfi" - + "leAction.ExportH\000\022[\n\024pub_sub_notificatio" - + "n\030\002 \001(\0132;.google.privacy.dlp.v2.DataProf" - + "ileAction.PubSubNotificationH\000\032E\n\006Export" - + "\022;\n\rprofile_table\030\001 \001(\0132$.google.privacy" - + ".dlp.v2.BigQueryTable\032\352\002\n\022PubSubNotifica" - + "tion\022\r\n\005topic\030\001 \001(\t\022A\n\005event\030\002 \001(\01622.goo" - + "gle.privacy.dlp.v2.DataProfileAction.Eve" - + "ntType\022K\n\020pubsub_condition\030\003 \001(\01321.googl" - + "e.privacy.dlp.v2.DataProfilePubSubCondit" - + "ion\022b\n\021detail_of_message\030\004 \001(\0162G.google." - + "privacy.dlp.v2.DataProfileAction.PubSubN" - + "otification.DetailLevel\"Q\n\013DetailLevel\022\034" - + "\n\030DETAIL_LEVEL_UNSPECIFIED\020\000\022\021\n\rTABLE_PR" - + "OFILE\020\001\022\021\n\rRESOURCE_NAME\020\002\"u\n\tEventType\022" - + "\032\n\026EVENT_TYPE_UNSPECIFIED\020\000\022\017\n\013NEW_PROFI" - + "LE\020\001\022\023\n\017CHANGED_PROFILE\020\002\022\023\n\017SCORE_INCRE" - + "ASED\020\003\022\021\n\rERROR_CHANGED\020\004B\010\n\006action\"\313\001\n\024" - + "DataProfileJobConfig\022<\n\010location\030\001 \001(\0132*" - + ".google.privacy.dlp.v2.DataProfileLocati" - + "on\022\022\n\nproject_id\030\005 \001(\t\022\031\n\021inspect_templa" - + "tes\030\007 \003(\t\022F\n\024data_profile_actions\030\006 \003(\0132" - + "(.google.privacy.dlp.v2.DataProfileActio" - + "n\"[\n\rBigQueryRegex\022\030\n\020project_id_regex\030\001" - + " \001(\t\022\030\n\020dataset_id_regex\030\002 \001(\t\022\026\n\016table_" - + "id_regex\030\003 \001(\t\"I\n\017BigQueryRegexes\0226\n\010pat" - + "terns\030\001 \003(\0132$.google.privacy.dlp.v2.BigQ" - + "ueryRegex\"M\n\022BigQueryTableTypes\0227\n\005types" - + "\030\001 \003(\0162(.google.privacy.dlp.v2.BigQueryT" - + "ableType\"\n\n\010Disabled\"Q\n\023DataProfileLocat" - + "ion\022\031\n\017organization_id\030\001 \001(\003H\000\022\023\n\tfolder" - + "_id\030\002 \001(\003H\000B\n\n\010location\"\273\006\n\017DiscoveryCon" - + "fig\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\013 \001(\t\022" - + "D\n\norg_config\030\002 \001(\01320.google.privacy.dlp" - + ".v2.DiscoveryConfig.OrgConfig\022\031\n\021inspect" - + "_templates\030\003 \003(\t\0229\n\007actions\030\004 \003(\0132(.goog" - + "le.privacy.dlp.v2.DataProfileAction\0227\n\007t" - + "argets\030\005 \003(\0132&.google.privacy.dlp.v2.Dis" - + "coveryTarget\0221\n\006errors\030\006 \003(\0132\034.google.pr" - + "ivacy.dlp.v2.ErrorB\003\340A\003\0224\n\013create_time\030\007" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\010 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0226\n\rlast_run_time\030\t \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\022B\n\006status\030\n " - + "\001(\0162-.google.privacy.dlp.v2.DiscoveryCon" - + "fig.StatusB\003\340A\002\032c\n\tOrgConfig\022B\n\010location" - + "\030\001 \001(\01320.google.privacy.dlp.v2.Discovery" - + "StartingLocation\022\022\n\nproject_id\030\002 \001(\t\"9\n\006" - + "Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007RUNNIN" - + "G\020\001\022\n\n\006PAUSED\020\002:t\352Aq\n\"dlp.googleapis.com" - + "/DiscoveryConfig\022Kprojects/{project}/loc" - + "ations/{location}/discoveryConfigs/{disc" - + "overy_config}\"\374\001\n\017DiscoveryTarget\022J\n\020big" - + "_query_target\030\001 \001(\0132..google.privacy.dlp" - + ".v2.BigQueryDiscoveryTargetH\000\022J\n\020cloud_s" - + "ql_target\030\002 \001(\0132..google.privacy.dlp.v2." - + "CloudSqlDiscoveryTargetH\000\022G\n\016secrets_tar" - + "get\030\003 \001(\0132-.google.privacy.dlp.v2.Secret" - + "sDiscoveryTargetH\000B\010\n\006target\"\256\002\n\027BigQuer" - + "yDiscoveryTarget\022C\n\006filter\030\001 \001(\0132..googl" - + "e.privacy.dlp.v2.DiscoveryBigQueryFilter" - + "B\003\340A\002\022F\n\nconditions\030\002 \001(\01322.google.priva" - + "cy.dlp.v2.DiscoveryBigQueryConditions\022D\n" - + "\007cadence\030\003 \001(\01321.google.privacy.dlp.v2.D" - + "iscoveryGenerationCadenceH\000\0223\n\010disabled\030" - + "\004 \001(\0132\037.google.privacy.dlp.v2.DisabledH\000" - + "B\013\n\tfrequency\"\240\002\n\027DiscoveryBigQueryFilte" - + "r\022@\n\006tables\030\001 \001(\0132..google.privacy.dlp.v" - + "2.BigQueryTableCollectionH\000\022]\n\014other_tab" - + "les\030\002 \001(\0132E.google.privacy.dlp.v2.Discov" - + "eryBigQueryFilter.AllOtherBigQueryTables" - + "H\000\022@\n\017table_reference\030\003 \001(\0132%.google.pri" - + "vacy.dlp.v2.TableReferenceH\000\032\030\n\026AllOther" - + "BigQueryTablesB\010\n\006filter\"g\n\027BigQueryTabl" - + "eCollection\022A\n\017include_regexes\030\001 \001(\0132&.g" - + "oogle.privacy.dlp.v2.BigQueryRegexesH\000B\t" - + "\n\007pattern\"\230\003\n\033DiscoveryBigQueryCondition" - + "s\0221\n\rcreated_after\030\001 \001(\0132\032.google.protob" - + "uf.Timestamp\022:\n\005types\030\002 \001(\0132).google.pri" - + "vacy.dlp.v2.BigQueryTableTypesH\000\022M\n\017type" - + "_collection\030\003 \001(\01622.google.privacy.dlp.v" - + "2.BigQueryTableTypeCollectionH\000\022V\n\ror_co" - + "nditions\030\004 \001(\0132?.google.privacy.dlp.v2.D" - + "iscoveryBigQueryConditions.OrConditions\032" - + "Q\n\014OrConditions\022\025\n\rmin_row_count\030\001 \001(\005\022*" - + "\n\007min_age\030\002 \001(\0132\031.google.protobuf.Durati" - + "onB\020\n\016included_types\"\312\001\n\032DiscoveryGenera" - + "tionCadence\022V\n\027schema_modified_cadence\030\001" - + " \001(\01325.google.privacy.dlp.v2.DiscoverySc" - + "hemaModifiedCadence\022T\n\026table_modified_ca" - + "dence\030\002 \001(\01324.google.privacy.dlp.v2.Disc" - + "overyTableModifiedCadence\"\246\001\n\035DiscoveryT" - + "ableModifiedCadence\022?\n\005types\030\001 \003(\01620.goo" - + "gle.privacy.dlp.v2.BigQueryTableModifica" - + "tion\022D\n\tfrequency\030\002 \001(\01621.google.privacy" - + ".dlp.v2.DataProfileUpdateFrequency\"\250\001\n\036D" - + "iscoverySchemaModifiedCadence\022@\n\005types\030\001" - + " \003(\01621.google.privacy.dlp.v2.BigQuerySch" - + "emaModification\022D\n\tfrequency\030\002 \001(\01621.goo" - + "gle.privacy.dlp.v2.DataProfileUpdateFreq" - + "uency\"\277\002\n\027CloudSqlDiscoveryTarget\022C\n\006fil" - + "ter\030\001 \001(\0132..google.privacy.dlp.v2.Discov" - + "eryCloudSqlFilterB\003\340A\002\022F\n\nconditions\030\002 \001" - + "(\01322.google.privacy.dlp.v2.DiscoveryClou" - + "dSqlConditions\022W\n\022generation_cadence\030\003 \001" - + "(\01329.google.privacy.dlp.v2.DiscoveryClou" - + "dSqlGenerationCadenceH\000\0223\n\010disabled\030\004 \001(" - + "\0132\037.google.privacy.dlp.v2.DisabledH\000B\t\n\007" - + "cadence\"\211\002\n\027DiscoveryCloudSqlFilter\022G\n\nc" - + "ollection\030\001 \001(\01321.google.privacy.dlp.v2." - + "DatabaseResourceCollectionH\000\022B\n\006others\030\002" - + " \001(\01320.google.privacy.dlp.v2.AllOtherDat" - + "abaseResourcesH\000\022W\n\033database_resource_re" - + "ference\030\003 \001(\01320.google.privacy.dlp.v2.Da" - + "tabaseResourceReferenceH\000B\010\n\006filter\"r\n\032D" - + "atabaseResourceCollection\022I\n\017include_reg" - + "exes\030\001 \001(\0132..google.privacy.dlp.v2.Datab" - + "aseResourceRegexesH\000B\t\n\007pattern\"Y\n\027Datab" - + "aseResourceRegexes\022>\n\010patterns\030\001 \003(\0132,.g" - + "oogle.privacy.dlp.v2.DatabaseResourceReg" - + "ex\"\207\001\n\025DatabaseResourceRegex\022\030\n\020project_" - + "id_regex\030\001 \001(\t\022\026\n\016instance_regex\030\002 \001(\t\022\026" - + "\n\016database_regex\030\003 \001(\t\022$\n\034database_resou" - + "rce_name_regex\030\004 \001(\t\"\033\n\031AllOtherDatabase" - + "Resources\"\202\001\n\031DatabaseResourceReference\022" - + "\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\025\n\010instance\030\002 \001" - + "(\tB\003\340A\002\022\025\n\010database\030\003 \001(\tB\003\340A\002\022\036\n\021databa" - + "se_resource\030\004 \001(\tB\003\340A\002\"\332\003\n\033DiscoveryClou" - + "dSqlConditions\022`\n\020database_engines\030\001 \003(\016" - + "2A.google.privacy.dlp.v2.DiscoveryCloudS" - + "qlConditions.DatabaseEngineB\003\340A\001\022V\n\005type" - + "s\030\003 \003(\0162G.google.privacy.dlp.v2.Discover" - + "yCloudSqlConditions.DatabaseResourceType" - + "\"n\n\016DatabaseEngine\022\037\n\033DATABASE_ENGINE_UN" - + "SPECIFIED\020\000\022\"\n\036ALL_SUPPORTED_DATABASE_EN" - + "GINES\020\001\022\t\n\005MYSQL\020\002\022\014\n\010POSTGRES\020\003\"\220\001\n\024Dat" - + "abaseResourceType\022&\n\"DATABASE_RESOURCE_T" - + "YPE_UNSPECIFIED\020\000\022.\n*DATABASE_RESOURCE_T" - + "YPE_ALL_SUPPORTED_TYPES\020\001\022 \n\034DATABASE_RE" - + "SOURCE_TYPE_TABLE\020\002\"\254\004\n\"DiscoveryCloudSq" - + "lGenerationCadence\022p\n\027schema_modified_ca" - + "dence\030\001 \001(\0132O.google.privacy.dlp.v2.Disc" - + "overyCloudSqlGenerationCadence.SchemaMod" - + "ifiedCadence\022L\n\021refresh_frequency\030\002 \001(\0162" - + "1.google.privacy.dlp.v2.DataProfileUpdat" - + "eFrequency\032\305\002\n\025SchemaModifiedCadence\022y\n\005" - + "types\030\001 \003(\0162j.google.privacy.dlp.v2.Disc" - + "overyCloudSqlGenerationCadence.SchemaMod" - + "ifiedCadence.CloudSqlSchemaModification\022" - + "D\n\tfrequency\030\002 \001(\01621.google.privacy.dlp." - + "v2.DataProfileUpdateFrequency\"k\n\032CloudSq" - + "lSchemaModification\022\'\n#SQL_SCHEMA_MODIFI" - + "CATION_UNSPECIFIED\020\000\022\017\n\013NEW_COLUMNS\020\001\022\023\n" - + "\017REMOVED_COLUMNS\020\002\"\030\n\026SecretsDiscoveryTa" - + "rget\"W\n\031DiscoveryStartingLocation\022\031\n\017org" - + "anization_id\030\001 \001(\003H\000\022\023\n\tfolder_id\030\002 \001(\003H" - + "\000B\n\n\010location\"\334\006\n\006DlpJob\022\014\n\004name\030\001 \001(\t\022/" - + "\n\004type\030\002 \001(\0162!.google.privacy.dlp.v2.Dlp" - + "JobType\0225\n\005state\030\003 \001(\0162&.google.privacy." - + "dlp.v2.DlpJob.JobState\022K\n\014risk_details\030\004" - + " \001(\01323.google.privacy.dlp.v2.AnalyzeData" - + "SourceRiskDetailsH\000\022J\n\017inspect_details\030\005" - + " \001(\0132/.google.privacy.dlp.v2.InspectData" - + "SourceDetailsH\000\022/\n\013create_time\030\006 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022.\n\nstart_time\030\007" - + " \001(\0132\032.google.protobuf.Timestamp\022,\n\010end_" - + "time\030\010 \001(\0132\032.google.protobuf.Timestamp\0221" - + "\n\rlast_modified\030\017 \001(\0132\032.google.protobuf." - + "Timestamp\022\030\n\020job_trigger_name\030\n \001(\t\022,\n\006e" - + "rrors\030\013 \003(\0132\034.google.privacy.dlp.v2.Erro" - + "r\022<\n\016action_details\030\014 \003(\0132$.google.priva" - + "cy.dlp.v2.ActionDetails\"o\n\010JobState\022\031\n\025J" - + "OB_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007R" - + "UNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010CANCELED\020\004\022\n\n\006FAIL" - + "ED\020\005\022\n\n\006ACTIVE\020\006:\177\352A|\n\031dlp.googleapis.co" - + "m/DlpJob\022$projects/{project}/dlpJobs/{dl" - + "p_job}\0229projects/{project}/locations/{lo" - + "cation}/dlpJobs/{dlp_job}B\t\n\007details\"C\n\020" - + "GetDlpJobRequest\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031" - + "dlp.googleapis.com/DlpJob\"\326\001\n\022ListDlpJob" - + "sRequest\0221\n\006parent\030\004 \001(\tB!\340A\002\372A\033\022\031dlp.go" - + "ogleapis.com/DlpJob\022\016\n\006filter\030\001 \001(\t\022\021\n\tp" - + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022/\n\004ty" - + "pe\030\005 \001(\0162!.google.privacy.dlp.v2.DlpJobT" - + "ype\022\020\n\010order_by\030\006 \001(\t\022\023\n\013location_id\030\007 \001" - + "(\t\"[\n\023ListDlpJobsResponse\022+\n\004jobs\030\001 \003(\0132" - + "\035.google.privacy.dlp.v2.DlpJob\022\027\n\017next_p" - + "age_token\030\002 \001(\t\"F\n\023CancelDlpJobRequest\022/" - + "\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googleapis.com" - + "/DlpJob\"F\n\023FinishDlpJobRequest\022/\n\004name\030\001" - + " \001(\tB!\340A\002\372A\033\n\031dlp.googleapis.com/DlpJob\"" - + "F\n\023DeleteDlpJobRequest\022/\n\004name\030\001 \001(\tB!\340A" - + "\002\372A\033\n\031dlp.googleapis.com/DlpJob\"\327\001\n\037Crea" - + "teDeidentifyTemplateRequest\022=\n\006parent\030\001 " - + "\001(\tB-\340A\002\372A\'\022%dlp.googleapis.com/Deidenti" - + "fyTemplate\022K\n\023deidentify_template\030\002 \001(\0132" + + "g\022\035\n\025inspect_template_name\030\005 \001(\t\022B\n\036insp" + + "ect_template_modified_time\030\006 \001(\0132\032.googl" + + "e.protobuf.Timestamp\"\261\014\n\020TableDataProfil" + + "e\022\014\n\004name\030\001 \001(\t\022?\n\020data_source_type\030$ \001(" + + "\0132%.google.privacy.dlp.v2.DataSourceType" + + "\022\034\n\024project_data_profile\030\002 \001(\t\022\032\n\022datase" + + "t_project_id\030\030 \001(\t\022\030\n\020dataset_location\030\035" + + " \001(\t\022\022\n\ndataset_id\030\031 \001(\t\022\020\n\010table_id\030\032 \001" + + "(\t\022\025\n\rfull_resource\030\003 \001(\t\022<\n\016profile_sta" + + "tus\030\025 \001(\0132$.google.privacy.dlp.v2.Profil" + + "eStatus\022<\n\005state\030\026 \001(\0162-.google.privacy." + + "dlp.v2.TableDataProfile.State\022B\n\021sensiti" + + "vity_score\030\005 \001(\0132\'.google.privacy.dlp.v2" + + ".SensitivityScore\022=\n\017data_risk_level\030\006 \001" + + "(\0132$.google.privacy.dlp.v2.DataRiskLevel" + + "\022D\n\024predicted_info_types\030\033 \003(\0132&.google." + + "privacy.dlp.v2.InfoTypeSummary\022E\n\020other_" + + "info_types\030\034 \003(\0132+.google.privacy.dlp.v2" + + ".OtherInfoTypeSummary\022I\n\017config_snapshot" + + "\030\007 \001(\01320.google.privacy.dlp.v2.DataProfi" + + "leConfigSnapshot\0226\n\022last_modified_time\030\010" + + " \001(\0132\032.google.protobuf.Timestamp\0223\n\017expi" + + "ration_time\030\t \001(\0132\032.google.protobuf.Time" + + "stamp\022\034\n\024scanned_column_count\030\n \001(\003\022\033\n\023f" + + "ailed_column_count\030\013 \001(\003\022\030\n\020table_size_b" + + "ytes\030\014 \001(\003\022\021\n\trow_count\030\r \001(\003\022B\n\021encrypt" + + "ion_status\030\016 \001(\0162\'.google.privacy.dlp.v2" + + ".EncryptionStatus\022F\n\023resource_visibility" + + "\030\017 \001(\0162).google.privacy.dlp.v2.ResourceV" + + "isibility\022:\n\026profile_last_generated\030\020 \001(" + + "\0132\032.google.protobuf.Timestamp\022T\n\017resourc" + + "e_labels\030\021 \003(\0132;.google.privacy.dlp.v2.T" + + "ableDataProfile.ResourceLabelsEntry\022/\n\013c" + + "reate_time\030\027 \001(\0132\032.google.protobuf.Times" + + "tamp\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\010\n\004DONE\020\002:\323\001\352A\317" + + "\001\n#dlp.googleapis.com/TableDataProfile\022X" + + "organizations/{organization}/locations/{" + + "location}/tableDataProfiles/{table_data_" + + "profile}\022Nprojects/{project}/locations/{" + + "location}/tableDataProfiles/{table_data_" + + "profile}\"b\n\rProfileStatus\022\"\n\006status\030\001 \001(" + + "\0132\022.google.rpc.Status\022-\n\ttimestamp\030\003 \001(\013" + + "2\032.google.protobuf.Timestamp\"g\n\017InfoType" + + "Summary\0222\n\tinfo_type\030\001 \001(\0132\037.google.priv" + + "acy.dlp.v2.InfoType\022 \n\024estimated_prevale" + + "nce\030\002 \001(\005B\002\030\001\"\210\001\n\024OtherInfoTypeSummary\0222" + + "\n\tinfo_type\030\001 \001(\0132\037.google.privacy.dlp.v" + + "2.InfoType\022\034\n\024estimated_prevalence\030\002 \001(\005" + + "\022\036\n\026excluded_from_analysis\030\003 \001(\010\"\311\r\n\021Col" + + "umnDataProfile\022\014\n\004name\030\001 \001(\t\022<\n\016profile_" + + "status\030\021 \001(\0132$.google.privacy.dlp.v2.Pro" + + "fileStatus\022=\n\005state\030\022 \001(\0162..google.priva" + + "cy.dlp.v2.ColumnDataProfile.State\022:\n\026pro" + + "file_last_generated\030\003 \001(\0132\032.google.proto" + + "buf.Timestamp\022\032\n\022table_data_profile\030\004 \001(" + + "\t\022\033\n\023table_full_resource\030\005 \001(\t\022\032\n\022datase" + + "t_project_id\030\023 \001(\t\022\030\n\020dataset_location\030\024" + + " \001(\t\022\022\n\ndataset_id\030\025 \001(\t\022\020\n\010table_id\030\026 \001" + + "(\t\022\016\n\006column\030\006 \001(\t\022B\n\021sensitivity_score\030" + + "\007 \001(\0132\'.google.privacy.dlp.v2.Sensitivit" + + "yScore\022=\n\017data_risk_level\030\010 \001(\0132$.google" + + ".privacy.dlp.v2.DataRiskLevel\022@\n\020column_" + + "info_type\030\t \001(\0132&.google.privacy.dlp.v2." + + "InfoTypeSummary\022B\n\rother_matches\030\n \003(\0132+" + + ".google.privacy.dlp.v2.OtherInfoTypeSumm" + + "ary\022M\n\031estimated_null_percentage\030\027 \001(\0162*" + + ".google.privacy.dlp.v2.NullPercentageLev" + + "el\022O\n\032estimated_uniqueness_score\030\030 \001(\0162+" + + ".google.privacy.dlp.v2.UniquenessScoreLe" + + "vel\022\027\n\017free_text_score\030\r \001(\001\022L\n\013column_t" + + "ype\030\016 \001(\01627.google.privacy.dlp.v2.Column" + + "DataProfile.ColumnDataType\022P\n\014policy_sta" + + "te\030\017 \001(\0162:.google.privacy.dlp.v2.ColumnD" + + "ataProfile.ColumnPolicyState\"5\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\010\n\004DON" + + "E\020\002\"\377\002\n\016ColumnDataType\022 \n\034COLUMN_DATA_TY" + + "PE_UNSPECIFIED\020\000\022\016\n\nTYPE_INT64\020\001\022\r\n\tTYPE" + + "_BOOL\020\002\022\020\n\014TYPE_FLOAT64\020\003\022\017\n\013TYPE_STRING" + + "\020\004\022\016\n\nTYPE_BYTES\020\005\022\022\n\016TYPE_TIMESTAMP\020\006\022\r" + + "\n\tTYPE_DATE\020\007\022\r\n\tTYPE_TIME\020\010\022\021\n\rTYPE_DAT" + + "ETIME\020\t\022\022\n\016TYPE_GEOGRAPHY\020\n\022\020\n\014TYPE_NUME" + + "RIC\020\013\022\017\n\013TYPE_RECORD\020\014\022\023\n\017TYPE_BIGNUMERI" + + "C\020\r\022\r\n\tTYPE_JSON\020\016\022\021\n\rTYPE_INTERVAL\020\017\022\023\n" + + "\017TYPE_RANGE_DATE\020\020\022\027\n\023TYPE_RANGE_DATETIM" + + "E\020\021\022\030\n\024TYPE_RANGE_TIMESTAMP\020\022\"R\n\021ColumnP" + + "olicyState\022#\n\037COLUMN_POLICY_STATE_UNSPEC" + + "IFIED\020\000\022\030\n\024COLUMN_POLICY_TAGGED\020\001:\330\001\352A\324\001" + + "\n$dlp.googleapis.com/ColumnDataProfile\022Z" + + "organizations/{organization}/locations/{" + + "location}/columnDataProfiles/{column_dat" + + "a_profile}\022Pprojects/{project}/locations" + + "/{location}/columnDataProfiles/{column_d" + + "ata_profile}\"\206\r\n\024FileStoreDataProfile\022\014\n" + + "\004name\030\001 \001(\t\022?\n\020data_source_type\030\002 \001(\0132%." + + "google.privacy.dlp.v2.DataSourceType\022\034\n\024" + + "project_data_profile\030\003 \001(\t\022\022\n\nproject_id" + + "\030\004 \001(\t\022\033\n\023file_store_location\030\005 \001(\t\022\036\n\026d" + + "ata_storage_locations\030\023 \003(\t\022\025\n\rlocation_" + + "type\030\024 \001(\t\022\027\n\017file_store_path\030\006 \001(\t\022\025\n\rf" + + "ull_resource\030\030 \001(\t\022I\n\017config_snapshot\030\007 " + + "\001(\01320.google.privacy.dlp.v2.DataProfileC" + + "onfigSnapshot\022<\n\016profile_status\030\010 \001(\0132$." + + "google.privacy.dlp.v2.ProfileStatus\022@\n\005s" + + "tate\030\t \001(\01621.google.privacy.dlp.v2.FileS" + + "toreDataProfile.State\022:\n\026profile_last_ge" + + "nerated\030\n \001(\0132\032.google.protobuf.Timestam" + + "p\022F\n\023resource_visibility\030\013 \001(\0162).google." + + "privacy.dlp.v2.ResourceVisibility\022B\n\021sen" + + "sitivity_score\030\014 \001(\0132\'.google.privacy.dl" + + "p.v2.SensitivityScore\022=\n\017data_risk_level" + + "\030\r \001(\0132$.google.privacy.dlp.v2.DataRiskL" + + "evel\022/\n\013create_time\030\016 \001(\0132\032.google.proto" + + "buf.Timestamp\0226\n\022last_modified_time\030\017 \001(" + + "\0132\032.google.protobuf.Timestamp\022I\n\026file_cl" + + "uster_summaries\030\020 \003(\0132).google.privacy.d" + + "lp.v2.FileClusterSummary\022`\n\023resource_att" + + "ributes\030\021 \003(\0132C.google.privacy.dlp.v2.Fi" + + "leStoreDataProfile.ResourceAttributesEnt" + + "ry\022X\n\017resource_labels\030\022 \003(\0132?.google.pri" + + "vacy.dlp.v2.FileStoreDataProfile.Resourc" + + "eLabelsEntry\022W\n\036file_store_info_type_sum" + + "maries\030\025 \003(\0132/.google.privacy.dlp.v2.Fil" + + "eStoreInfoTypeSummary\022\033\n\023file_store_is_e" + + "mpty\030\027 \001(\010\032W\n\027ResourceAttributesEntry\022\013\n" + + "\003key\030\001 \001(\t\022+\n\005value\030\002 \001(\0132\034.google.priva" + + "cy.dlp.v2.Value:\0028\001\0325\n\023ResourceLabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022" + + "\010\n\004DONE\020\002:\351\001\352A\345\001\n\'dlp.googleapis.com/Fil" + + "eStoreDataProfile\022aorganizations/{organi" + + "zation}/locations/{location}/fileStoreDa" + + "taProfiles/{file_store_data_profile}\022Wpr" + + "ojects/{project}/locations/{location}/fi" + + "leStoreDataProfiles/{file_store_data_pro" + + "file}\"N\n\030FileStoreInfoTypeSummary\0222\n\tinf" + + "o_type\030\001 \001(\0132\037.google.privacy.dlp.v2.Inf" + + "oType\"+\n\021FileExtensionInfo\022\026\n\016file_exten" + + "sion\030\001 \001(\t\"\214\004\n\022FileClusterSummary\022A\n\021fil" + + "e_cluster_type\030\001 \001(\0132&.google.privacy.dl" + + "p.v2.FileClusterType\022W\n\036file_store_info_" + + "type_summaries\030\002 \003(\0132/.google.privacy.dl" + + "p.v2.FileStoreInfoTypeSummary\022B\n\021sensiti" + + "vity_score\030\003 \001(\0132\'.google.privacy.dlp.v2" + + ".SensitivityScore\022=\n\017data_risk_level\030\004 \001" + + "(\0132$.google.privacy.dlp.v2.DataRiskLevel" + + "\022,\n\006errors\030\006 \003(\0132\034.google.privacy.dlp.v2" + + ".Error\022I\n\027file_extensions_scanned\030\007 \003(\0132" + + "(.google.privacy.dlp.v2.FileExtensionInf" + + "o\022F\n\024file_extensions_seen\030\010 \003(\0132(.google" + + ".privacy.dlp.v2.FileExtensionInfo\022\026\n\016no_" + + "files_exist\030\t \001(\010\"[\n\034GetProjectDataProfi" + + "leRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dlp.goo" + + "gleapis.com/ProjectDataProfile\"]\n\036GetFil" + + "eStoreDataProfileRequest\022;\n\004name\030\001 \001(\tB-" + + "\340A\002\372A\'\n%dlp.googleapis.com/ProjectDataPr" + + "ofile\"\300\001\n ListFileStoreDataProfilesReque" + + "st\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'dlp.googleap" + + "is.com/FileStoreDataProfile\022\027\n\npage_toke" + + "n\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\025\n\010" + + "order_by\030\004 \001(\tB\003\340A\001\022\023\n\006filter\030\005 \001(\tB\003\340A\001" + + "\"\213\001\n!ListFileStoreDataProfilesResponse\022M" + + "\n\030file_store_data_profiles\030\001 \003(\0132+.googl" + + "e.privacy.dlp.v2.FileStoreDataProfile\022\027\n" + + "\017next_page_token\030\002 \001(\t\"b\n!DeleteFileStor" + + "eDataProfileRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A" + + ")\n\'dlp.googleapis.com/FileStoreDataProfi" + + "le\"W\n\032GetTableDataProfileRequest\0229\n\004name" + + "\030\001 \001(\tB+\340A\002\372A%\n#dlp.googleapis.com/Table" + + "DataProfile\"Y\n\033GetColumnDataProfileReque" + + "st\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$dlp.googleapis" + + ".com/ColumnDataProfile\"\352\005\n\032DataProfilePu" + + "bSubCondition\022X\n\013expressions\030\001 \001(\0132C.goo" + + "gle.privacy.dlp.v2.DataProfilePubSubCond" + + "ition.PubSubExpressions\032\351\001\n\017PubSubCondit" + + "ion\022b\n\022minimum_risk_score\030\001 \001(\0162D.google" + + ".privacy.dlp.v2.DataProfilePubSubConditi" + + "on.ProfileScoreBucketH\000\022i\n\031minimum_sensi" + + "tivity_score\030\002 \001(\0162D.google.privacy.dlp." + + "v2.DataProfilePubSubCondition.ProfileSco" + + "reBucketH\000B\007\n\005value\032\253\002\n\021PubSubExpression" + + "s\022s\n\020logical_operator\030\001 \001(\0162Y.google.pri" + + "vacy.dlp.v2.DataProfilePubSubCondition.P" + + "ubSubExpressions.PubSubLogicalOperator\022U" + + "\n\nconditions\030\002 \003(\0132A.google.privacy.dlp." + + "v2.DataProfilePubSubCondition.PubSubCond" + + "ition\"J\n\025PubSubLogicalOperator\022 \n\034LOGICA" + + "L_OPERATOR_UNSPECIFIED\020\000\022\006\n\002OR\020\001\022\007\n\003AND\020" + + "\002\"X\n\022ProfileScoreBucket\022$\n PROFILE_SCORE" + + "_BUCKET_UNSPECIFIED\020\000\022\010\n\004HIGH\020\001\022\022\n\016MEDIU" + + "M_OR_HIGH\020\002\"\340\001\n\030DataProfilePubSubMessage" + + "\0228\n\007profile\030\001 \001(\0132\'.google.privacy.dlp.v" + + "2.TableDataProfile\022G\n\022file_store_profile" + + "\030\003 \001(\0132+.google.privacy.dlp.v2.FileStore" + + "DataProfile\022A\n\005event\030\002 \001(\01622.google.priv" + + "acy.dlp.v2.DataProfileAction.EventType\"\214" + + "\001\n\027CreateConnectionRequest\0225\n\006parent\030\001 \001" + + "(\tB%\340A\002\372A\037\022\035dlp.googleapis.com/Connectio" + + "n\022:\n\nconnection\030\002 \001(\0132!.google.privacy.d" + + "lp.v2.ConnectionB\003\340A\002\"K\n\024GetConnectionRe" + + "quest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.googlea" + + "pis.com/Connection\"\225\001\n\026ListConnectionsRe" + + "quest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035dlp.googl" + + "eapis.com/Connection\022\026\n\tpage_size\030\002 \001(\005B" + + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030" + + "\004 \001(\tB\003\340A\001\"\227\001\n\030SearchConnectionsRequest\022" + + "5\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035dlp.googleapis." + + "com/Connection\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" + + "\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB" + + "\003\340A\001\"j\n\027ListConnectionsResponse\0226\n\013conne" + + "ctions\030\001 \003(\0132!.google.privacy.dlp.v2.Con" + + "nection\022\027\n\017next_page_token\030\002 \001(\t\"l\n\031Sear" + + "chConnectionsResponse\0226\n\013connections\030\001 \003" + + "(\0132!.google.privacy.dlp.v2.Connection\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\300\001\n\027UpdateConnect" + + "ionRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.go" + + "ogleapis.com/Connection\022:\n\nconnection\030\002 " + + "\001(\0132!.google.privacy.dlp.v2.ConnectionB\003" + + "\340A\002\0224\n\013update_mask\030\003 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\001\"N\n\027DeleteConnectionReq" + + "uest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.googleap" + + "is.com/Connection\"\220\003\n\nConnection\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022:\n\005state\030\002 \001(\0162&.google.priv" + + "acy.dlp.v2.ConnectionStateB\003\340A\002\0221\n\006error" + + "s\030\003 \003(\0132\034.google.privacy.dlp.v2.ErrorB\003\340" + + "A\003\022>\n\tcloud_sql\030\004 \001(\0132).google.privacy.d" + + "lp.v2.CloudSqlPropertiesH\000:\261\001\352A\255\001\n\035dlp.g" + + "oogleapis.com/Connection\022@projects/{proj" + + "ect}/locations/{location}/connections/{c" + + "onnection}\022Jorganizations/{organization}" + + "/locations/{location}/connections/{conne" + + "ction}B\014\n\nproperties\"[\n\027SecretManagerCre" + + "dential\022\025\n\010username\030\001 \001(\tB\003\340A\002\022)\n\034passwo" + + "rd_secret_version_name\030\002 \001(\tB\003\340A\002\"\027\n\025Clo" + + "udSqlIamCredential\"\265\003\n\022CloudSqlPropertie" + + "s\022\037\n\017connection_name\030\001 \001(\tB\006\340A\005\340A\001\022K\n\021us" + + "ername_password\030\002 \001(\0132..google.privacy.d" + + "lp.v2.SecretManagerCredentialH\000\022E\n\rcloud" + + "_sql_iam\030\003 \001(\0132,.google.privacy.dlp.v2.C" + + "loudSqlIamCredentialH\000\022\034\n\017max_connection" + + "s\030\004 \001(\005B\003\340A\002\022V\n\017database_engine\030\007 \001(\01628." + + "google.privacy.dlp.v2.CloudSqlProperties" + + ".DatabaseEngineB\003\340A\002\"f\n\016DatabaseEngine\022\033" + + "\n\027DATABASE_ENGINE_UNKNOWN\020\000\022\031\n\025DATABASE_" + + "ENGINE_MYSQL\020\001\022\034\n\030DATABASE_ENGINE_POSTGR" + + "ES\020\002B\014\n\ncredential\"Z\n\035DeleteTableDataPro" + + "fileRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#dlp.g" + + "oogleapis.com/TableDataProfile\"*\n\016DataSo" + + "urceType\022\030\n\013data_source\030\001 \001(\tB\003\340A\003\"\336\002\n\017F" + + "ileClusterType\022A\n\007cluster\030\001 \001(\0162..google" + + ".privacy.dlp.v2.FileClusterType.ClusterH" + + "\000\"\362\001\n\007Cluster\022\027\n\023CLUSTER_UNSPECIFIED\020\000\022\023" + + "\n\017CLUSTER_UNKNOWN\020\001\022\020\n\014CLUSTER_TEXT\020\002\022\033\n" + + "\027CLUSTER_STRUCTURED_DATA\020\003\022\027\n\023CLUSTER_SO" + + "URCE_CODE\020\004\022\031\n\025CLUSTER_RICH_DOCUMENT\020\005\022\021" + + "\n\rCLUSTER_IMAGE\020\006\022\023\n\017CLUSTER_ARCHIVE\020\007\022\026" + + "\n\022CLUSTER_MULTIMEDIA\020\010\022\026\n\022CLUSTER_EXECUT" + + "ABLE\020\tB\023\n\021file_cluster_type*\240\001\n\036Transfor" + + "mationResultStatusType\022\032\n\026STATE_TYPE_UNS" + + "PECIFIED\020\000\022\025\n\021INVALID_TRANSFORM\020\001\022\"\n\036BIG" + + "QUERY_MAX_ROW_SIZE_EXCEEDED\020\002\022\032\n\026METADAT" + + "A_UNRETRIEVABLE\020\003\022\013\n\007SUCCESS\020\004*\177\n\033Transf" + + "ormationContainerType\022\037\n\033TRANSFORM_UNKNO" + + "WN_CONTAINER\020\000\022\022\n\016TRANSFORM_BODY\020\001\022\026\n\022TR" + + "ANSFORM_METADATA\020\002\022\023\n\017TRANSFORM_TABLE\020\003*" + + "\340\002\n\022TransformationType\022#\n\037TRANSFORMATION" + + "_TYPE_UNSPECIFIED\020\000\022\026\n\022RECORD_SUPPRESSIO" + + "N\020\001\022\021\n\rREPLACE_VALUE\020\002\022\026\n\022REPLACE_DICTIO" + + "NARY\020\017\022\n\n\006REDACT\020\003\022\022\n\016CHARACTER_MASK\020\004\022\032" + + "\n\026CRYPTO_REPLACE_FFX_FPE\020\005\022\030\n\024FIXED_SIZE" + + "_BUCKETING\020\006\022\r\n\tBUCKETING\020\007\022\032\n\026REPLACE_W" + + "ITH_INFO_TYPE\020\010\022\r\n\tTIME_PART\020\t\022\017\n\013CRYPTO" + + "_HASH\020\n\022\016\n\nDATE_SHIFT\020\014\022\037\n\033CRYPTO_DETERM" + + "INISTIC_CONFIG\020\r\022\020\n\014REDACT_IMAGE\020\016*\226\001\n\033B" + + "igQueryTableTypeCollection\022$\n BIG_QUERY_" + + "COLLECTION_UNSPECIFIED\020\000\022\"\n\036BIG_QUERY_CO" + + "LLECTION_ALL_TYPES\020\001\022-\n)BIG_QUERY_COLLEC" + + "TION_ONLY_SUPPORTED_TYPES\020\002*\205\001\n\021BigQuery" + + "TableType\022$\n BIG_QUERY_TABLE_TYPE_UNSPEC" + + "IFIED\020\000\022\036\n\032BIG_QUERY_TABLE_TYPE_TABLE\020\001\022" + + "*\n&BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAK" + + "E\020\002*\224\001\n\032DataProfileUpdateFrequency\022 \n\034UP" + + "DATE_FREQUENCY_UNSPECIFIED\020\000\022\032\n\026UPDATE_F" + + "REQUENCY_NEVER\020\001\022\032\n\026UPDATE_FREQUENCY_DAI" + + "LY\020\002\022\034\n\030UPDATE_FREQUENCY_MONTHLY\020\004*]\n\031Bi" + + "gQueryTableModification\022\"\n\036TABLE_MODIFIC" + + "ATION_UNSPECIFIED\020\000\022\034\n\030TABLE_MODIFIED_TI" + + "MESTAMP\020\001*u\n\032BigQuerySchemaModification\022" + + "#\n\037SCHEMA_MODIFICATION_UNSPECIFIED\020\000\022\026\n\022" + + "SCHEMA_NEW_COLUMNS\020\001\022\032\n\026SCHEMA_REMOVED_C" + + "OLUMNS\020\002*\273\001\n\022RelationalOperator\022#\n\037RELAT" + + "IONAL_OPERATOR_UNSPECIFIED\020\000\022\014\n\010EQUAL_TO" + + "\020\001\022\020\n\014NOT_EQUAL_TO\020\002\022\020\n\014GREATER_THAN\020\003\022\r" + + "\n\tLESS_THAN\020\004\022\032\n\026GREATER_THAN_OR_EQUALS\020" + + "\005\022\027\n\023LESS_THAN_OR_EQUALS\020\006\022\n\n\006EXISTS\020\007*\215" + + "\001\n\014MatchingType\022\035\n\031MATCHING_TYPE_UNSPECI" + + "FIED\020\000\022\034\n\030MATCHING_TYPE_FULL_MATCH\020\001\022\037\n\033" + + "MATCHING_TYPE_PARTIAL_MATCH\020\002\022\037\n\033MATCHIN" + + "G_TYPE_INVERSE_MATCH\020\003*M\n\rContentOption\022" + + "\027\n\023CONTENT_UNSPECIFIED\020\000\022\020\n\014CONTENT_TEXT" + + "\020\001\022\021\n\rCONTENT_IMAGE\020\002*B\n\014MetadataType\022\034\n" + + "\030METADATATYPE_UNSPECIFIED\020\000\022\024\n\020STORAGE_M" + + "ETADATA\020\002*P\n\023InfoTypeSupportedBy\022\031\n\025ENUM" + + "_TYPE_UNSPECIFIED\020\000\022\013\n\007INSPECT\020\001\022\021\n\rRISK" + + "_ANALYSIS\020\002*R\n\nDlpJobType\022\034\n\030DLP_JOB_TYP" + + "E_UNSPECIFIED\020\000\022\017\n\013INSPECT_JOB\020\001\022\025\n\021RISK" + + "_ANALYSIS_JOB\020\002*n\n\023StoredInfoTypeState\022&" + + "\n\"STORED_INFO_TYPE_STATE_UNSPECIFIED\020\000\022\013" + + "\n\007PENDING\020\001\022\t\n\005READY\020\002\022\n\n\006FAILED\020\003\022\013\n\007IN" + + "VALID\020\004*\243\001\n\022ResourceVisibility\022#\n\037RESOUR" + + "CE_VISIBILITY_UNSPECIFIED\020\000\022\036\n\032RESOURCE_" + + "VISIBILITY_PUBLIC\020\n\022$\n RESOURCE_VISIBILI" + + "TY_INCONCLUSIVE\020\017\022\"\n\036RESOURCE_VISIBILITY" + + "_RESTRICTED\020\024*u\n\020EncryptionStatus\022!\n\035ENC" + + "RYPTION_STATUS_UNSPECIFIED\020\000\022\035\n\031ENCRYPTI" + + "ON_GOOGLE_MANAGED\020\001\022\037\n\033ENCRYPTION_CUSTOM" + + "ER_MANAGED\020\002*\251\001\n\023NullPercentageLevel\022%\n!" + + "NULL_PERCENTAGE_LEVEL_UNSPECIFIED\020\000\022\034\n\030N" + + "ULL_PERCENTAGE_VERY_LOW\020\001\022\027\n\023NULL_PERCEN" + + "TAGE_LOW\020\002\022\032\n\026NULL_PERCENTAGE_MEDIUM\020\003\022\030" + + "\n\024NULL_PERCENTAGE_HIGH\020\004*\220\001\n\024UniquenessS" + + "coreLevel\022&\n\"UNIQUENESS_SCORE_LEVEL_UNSP" + + "ECIFIED\020\000\022\030\n\024UNIQUENESS_SCORE_LOW\020\001\022\033\n\027U" + + "NIQUENESS_SCORE_MEDIUM\020\002\022\031\n\025UNIQUENESS_S" + + "CORE_HIGH\020\003*f\n\017ConnectionState\022 \n\034CONNEC" + + "TION_STATE_UNSPECIFIED\020\000\022\027\n\023MISSING_CRED" + + "ENTIALS\020\001\022\r\n\tAVAILABLE\020\002\022\t\n\005ERROR\020\0032\364u\n\n" + + "DlpService\022\333\001\n\016InspectContent\022,.google.p" + + "rivacy.dlp.v2.InspectContentRequest\032-.go" + + "ogle.privacy.dlp.v2.InspectContentRespon" + + "se\"l\202\323\344\223\002f\"\'/v2/{parent=projects/*}/cont" + + "ent:inspect:\001*Z8\"3/v2/{parent=projects/*" + + "/locations/*}/content:inspect:\001*\022\314\001\n\013Red" + + "actImage\022).google.privacy.dlp.v2.RedactI" + + "mageRequest\032*.google.privacy.dlp.v2.Reda" + + "ctImageResponse\"f\202\323\344\223\002`\"$/v2/{parent=pro" + + "jects/*}/image:redact:\001*Z5\"0/v2/{parent=" + + "projects/*/locations/*}/image:redact:\001*\022" + + "\352\001\n\021DeidentifyContent\022/.google.privacy.d" + + "lp.v2.DeidentifyContentRequest\0320.google." + + "privacy.dlp.v2.DeidentifyContentResponse" + + "\"r\202\323\344\223\002l\"*/v2/{parent=projects/*}/conten" + + "t:deidentify:\001*Z;\"6/v2/{parent=projects/" + + "*/locations/*}/content:deidentify:\001*\022\352\001\n", + "\021ReidentifyContent\022/.google.privacy.dlp." + + "v2.ReidentifyContentRequest\0320.google.pri" + + "vacy.dlp.v2.ReidentifyContentResponse\"r\202" + + "\323\344\223\002l\"*/v2/{parent=projects/*}/content:r" + + "eidentify:\001*Z;\"6/v2/{parent=projects/*/l" + + "ocations/*}/content:reidentify:\001*\022\260\001\n\rLi" + + "stInfoTypes\022+.google.privacy.dlp.v2.List" + + "InfoTypesRequest\032,.google.privacy.dlp.v2" + + ".ListInfoTypesResponse\"D\332A\006parent\202\323\344\223\0025\022" + + "\r/v2/infoTypesZ$\022\"/v2/{parent=locations/" + + "*}/infoTypes\022\364\002\n\025CreateInspectTemplate\0223" + + ".google.privacy.dlp.v2.CreateInspectTemp" + + "lateRequest\032&.google.privacy.dlp.v2.Insp" + + "ectTemplate\"\375\001\332A\027parent,inspect_template" + + "\202\323\344\223\002\334\001\"4/v2/{parent=projects/*/location" + + "s/*}/inspectTemplates:\001*Z>\"9/v2/{parent=" + + "organizations/*/locations/*}/inspectTemp" + + "lates:\001*Z-\"(/v2/{parent=projects/*}/insp" + + "ectTemplates:\001*Z2\"-/v2/{parent=organizat" + + "ions/*}/inspectTemplates:\001*\022\376\002\n\025UpdateIn" + + "spectTemplate\0223.google.privacy.dlp.v2.Up" + + "dateInspectTemplateRequest\032&.google.priv" + + "acy.dlp.v2.InspectTemplate\"\207\002\332A!name,ins" + + "pect_template,update_mask\202\323\344\223\002\334\00124/v2/{n" + + "ame=projects/*/locations/*/inspectTempla" + + "tes/*}:\001*Z>29/v2/{name=organizations/*/l" + + "ocations/*/inspectTemplates/*}:\001*Z-2(/v2" + + "/{name=projects/*/inspectTemplates/*}:\001*" + + "Z22-/v2/{name=organizations/*/inspectTem" + + "plates/*}:\001*\022\317\002\n\022GetInspectTemplate\0220.go" + + "ogle.privacy.dlp.v2.GetInspectTemplateRe" + + "quest\032&.google.privacy.dlp.v2.InspectTem" + + "plate\"\336\001\332A\004name\202\323\344\223\002\320\001\0224/v2/{name=projec" + + "ts/*/locations/*/inspectTemplates/*}Z;\0229" + + "/v2/{name=organizations/*/locations/*/in" + + "spectTemplates/*}Z*\022(/v2/{name=projects/" + + "*/inspectTemplates/*}Z/\022-/v2/{name=organ" + + "izations/*/inspectTemplates/*}\022\342\002\n\024ListI" + + "nspectTemplates\0222.google.privacy.dlp.v2." + + "ListInspectTemplatesRequest\0323.google.pri" + + "vacy.dlp.v2.ListInspectTemplatesResponse" + + "\"\340\001\332A\006parent\202\323\344\223\002\320\001\0224/v2/{parent=project" + + "s/*/locations/*}/inspectTemplatesZ;\0229/v2" + + "/{parent=organizations/*/locations/*}/in" + + "spectTemplatesZ*\022(/v2/{parent=projects/*" + + "}/inspectTemplatesZ/\022-/v2/{parent=organi" + + "zations/*}/inspectTemplates\022\305\002\n\025DeleteIn" + + "spectTemplate\0223.google.privacy.dlp.v2.De" + + "leteInspectTemplateRequest\032\026.google.prot" + + "obuf.Empty\"\336\001\332A\004name\202\323\344\223\002\320\001*4/v2/{name=p" + + "rojects/*/locations/*/inspectTemplates/*" + + "}Z;*9/v2/{name=organizations/*/locations" + + "/*/inspectTemplates/*}Z**(/v2/{name=proj" + + "ects/*/inspectTemplates/*}Z/*-/v2/{name=" + + "organizations/*/inspectTemplates/*}\022\214\003\n\030" + + "CreateDeidentifyTemplate\0226.google.privac" + + "y.dlp.v2.CreateDeidentifyTemplateRequest" + + "\032).google.privacy.dlp.v2.DeidentifyTempl" + + "ate\"\214\002\332A\032parent,deidentify_template\202\323\344\223\002" + + "\350\001\"0/v2/{parent=organizations/*}/deident" + + "ifyTemplates:\001*ZA\"\n\tcloud_sql\030\004 \001(\0132).google.p" - + "rivacy.dlp.v2.CloudSqlPropertiesH\000:d\352Aa\n" - + "\035dlp.googleapis.com/Connection\022@projects" - + "/{project}/locations/{location}/connecti" - + "ons/{connection}B\014\n\nproperties\"[\n\027Secret" - + "ManagerCredential\022\025\n\010username\030\001 \001(\tB\003\340A\002" - + "\022)\n\034password_secret_version_name\030\002 \001(\tB\003" - + "\340A\002\"\027\n\025CloudSqlIamCredential\"\265\003\n\022CloudSq" - + "lProperties\022\037\n\017connection_name\030\001 \001(\tB\006\340A" - + "\005\340A\001\022K\n\021username_password\030\002 \001(\0132..google" - + ".privacy.dlp.v2.SecretManagerCredentialH" - + "\000\022E\n\rcloud_sql_iam\030\003 \001(\0132,.google.privac" - + "y.dlp.v2.CloudSqlIamCredentialH\000\022\034\n\017max_" - + "connections\030\004 \001(\005B\003\340A\002\022V\n\017database_engin" - + "e\030\007 \001(\01628.google.privacy.dlp.v2.CloudSql" - + "Properties.DatabaseEngineB\003\340A\002\"f\n\016Databa" - + "seEngine\022\033\n\027DATABASE_ENGINE_UNKNOWN\020\000\022\031\n" - + "\025DATABASE_ENGINE_MYSQL\020\001\022\034\n\030DATABASE_ENG" - + "INE_POSTGRES\020\002B\014\n\ncredential\"Z\n\035DeleteTa" - + "bleDataProfileRequest\0229\n\004name\030\001 \001(\tB+\340A\002" - + "\372A%\n#dlp.googleapis.com/TableDataProfile" - + "\"*\n\016DataSourceType\022\030\n\013data_source\030\001 \001(\tB" - + "\003\340A\003*\240\001\n\036TransformationResultStatusType\022" - + "\032\n\026STATE_TYPE_UNSPECIFIED\020\000\022\025\n\021INVALID_T" - + "RANSFORM\020\001\022\"\n\036BIGQUERY_MAX_ROW_SIZE_EXCE" - + "EDED\020\002\022\032\n\026METADATA_UNRETRIEVABLE\020\003\022\013\n\007SU" - + "CCESS\020\004*\177\n\033TransformationContainerType\022\037" - + "\n\033TRANSFORM_UNKNOWN_CONTAINER\020\000\022\022\n\016TRANS" - + "FORM_BODY\020\001\022\026\n\022TRANSFORM_METADATA\020\002\022\023\n\017T" - + "RANSFORM_TABLE\020\003*\340\002\n\022TransformationType\022" - + "#\n\037TRANSFORMATION_TYPE_UNSPECIFIED\020\000\022\026\n\022" - + "RECORD_SUPPRESSION\020\001\022\021\n\rREPLACE_VALUE\020\002\022" - + "\026\n\022REPLACE_DICTIONARY\020\017\022\n\n\006REDACT\020\003\022\022\n\016C" - + "HARACTER_MASK\020\004\022\032\n\026CRYPTO_REPLACE_FFX_FP" - + "E\020\005\022\030\n\024FIXED_SIZE_BUCKETING\020\006\022\r\n\tBUCKETI" - + "NG\020\007\022\032\n\026REPLACE_WITH_INFO_TYPE\020\010\022\r\n\tTIME" - + "_PART\020\t\022\017\n\013CRYPTO_HASH\020\n\022\016\n\nDATE_SHIFT\020\014" - + "\022\037\n\033CRYPTO_DETERMINISTIC_CONFIG\020\r\022\020\n\014RED" - + "ACT_IMAGE\020\016*\226\001\n\033BigQueryTableTypeCollect" - + "ion\022$\n BIG_QUERY_COLLECTION_UNSPECIFIED\020" - + "\000\022\"\n\036BIG_QUERY_COLLECTION_ALL_TYPES\020\001\022-\n" - + ")BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYP" - + "ES\020\002*\205\001\n\021BigQueryTableType\022$\n BIG_QUERY_" - + "TABLE_TYPE_UNSPECIFIED\020\000\022\036\n\032BIG_QUERY_TA" - + "BLE_TYPE_TABLE\020\001\022*\n&BIG_QUERY_TABLE_TYPE" - + "_EXTERNAL_BIG_LAKE\020\002*\224\001\n\032DataProfileUpda" - + "teFrequency\022 \n\034UPDATE_FREQUENCY_UNSPECIF" - + "IED\020\000\022\032\n\026UPDATE_FREQUENCY_NEVER\020\001\022\032\n\026UPD" - + "ATE_FREQUENCY_DAILY\020\002\022\034\n\030UPDATE_FREQUENC" - + "Y_MONTHLY\020\004*]\n\031BigQueryTableModification" - + "\022\"\n\036TABLE_MODIFICATION_UNSPECIFIED\020\000\022\034\n\030" - + "TABLE_MODIFIED_TIMESTAMP\020\001*u\n\032BigQuerySc" - + "hemaModification\022#\n\037SCHEMA_MODIFICATION_" - + "UNSPECIFIED\020\000\022\026\n\022SCHEMA_NEW_COLUMNS\020\001\022\032\n" - + "\026SCHEMA_REMOVED_COLUMNS\020\002*\273\001\n\022Relational" - + "Operator\022#\n\037RELATIONAL_OPERATOR_UNSPECIF" - + "IED\020\000\022\014\n\010EQUAL_TO\020\001\022\020\n\014NOT_EQUAL_TO\020\002\022\020\n" - + "\014GREATER_THAN\020\003\022\r\n\tLESS_THAN\020\004\022\032\n\026GREATE" - + "R_THAN_OR_EQUALS\020\005\022\027\n\023LESS_THAN_OR_EQUAL" - + "S\020\006\022\n\n\006EXISTS\020\007*\215\001\n\014MatchingType\022\035\n\031MATC" - + "HING_TYPE_UNSPECIFIED\020\000\022\034\n\030MATCHING_TYPE" - + "_FULL_MATCH\020\001\022\037\n\033MATCHING_TYPE_PARTIAL_M" - + "ATCH\020\002\022\037\n\033MATCHING_TYPE_INVERSE_MATCH\020\003*" - + "M\n\rContentOption\022\027\n\023CONTENT_UNSPECIFIED\020" - + "\000\022\020\n\014CONTENT_TEXT\020\001\022\021\n\rCONTENT_IMAGE\020\002*B" - + "\n\014MetadataType\022\034\n\030METADATATYPE_UNSPECIFI" - + "ED\020\000\022\024\n\020STORAGE_METADATA\020\002*P\n\023InfoTypeSu" - + "pportedBy\022\031\n\025ENUM_TYPE_UNSPECIFIED\020\000\022\013\n\007" - + "INSPECT\020\001\022\021\n\rRISK_ANALYSIS\020\002*R\n\nDlpJobTy" - + "pe\022\034\n\030DLP_JOB_TYPE_UNSPECIFIED\020\000\022\017\n\013INSP" - + "ECT_JOB\020\001\022\025\n\021RISK_ANALYSIS_JOB\020\002*n\n\023Stor" - + "edInfoTypeState\022&\n\"STORED_INFO_TYPE_STAT" - + "E_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\t\n\005READY\020\002\022" - + "\n\n\006FAILED\020\003\022\013\n\007INVALID\020\004*\243\001\n\022ResourceVis" - + "ibility\022#\n\037RESOURCE_VISIBILITY_UNSPECIFI" - + "ED\020\000\022\036\n\032RESOURCE_VISIBILITY_PUBLIC\020\n\022$\n " - + "RESOURCE_VISIBILITY_INCONCLUSIVE\020\017\022\"\n\036RE" - + "SOURCE_VISIBILITY_RESTRICTED\020\024*u\n\020Encryp" - + "tionStatus\022!\n\035ENCRYPTION_STATUS_UNSPECIF" - + "IED\020\000\022\035\n\031ENCRYPTION_GOOGLE_MANAGED\020\001\022\037\n\033" - + "ENCRYPTION_CUSTOMER_MANAGED\020\002*\251\001\n\023NullPe" - + "rcentageLevel\022%\n!NULL_PERCENTAGE_LEVEL_U" - + "NSPECIFIED\020\000\022\034\n\030NULL_PERCENTAGE_VERY_LOW" - + "\020\001\022\027\n\023NULL_PERCENTAGE_LOW\020\002\022\032\n\026NULL_PERC" - + "ENTAGE_MEDIUM\020\003\022\030\n\024NULL_PERCENTAGE_HIGH\020" - + "\004*\220\001\n\024UniquenessScoreLevel\022&\n\"UNIQUENESS" - + "_SCORE_LEVEL_UNSPECIFIED\020\000\022\030\n\024UNIQUENESS" - + "_SCORE_LOW\020\001\022\033\n\027UNIQUENESS_SCORE_MEDIUM\020" - + "\002\022\031\n\025UNIQUENESS_SCORE_HIGH\020\003*f\n\017Connecti" - + "onState\022 \n\034CONNECTION_STATE_UNSPECIFIED\020" - + "\000\022\027\n\023MISSING_CREDENTIALS\020\001\022\r\n\tAVAILABLE\020" - + "\002\022\t\n\005ERROR\020\0032\252m\n\nDlpService\022\333\001\n\016InspectC" - + "ontent\022,.google.privacy.dlp.v2.InspectCo" - + "ntentRequest\032-.google.privacy.dlp.v2.Ins" - + "pectContentResponse\"l\202\323\344\223\002f\"\'/v2/{parent" - + "=projects/*}/content:inspect:\001*Z8\"3/v2/{" - + "parent=projects/*/locations/*}/content:i" - + "nspect:\001*\022\314\001\n\013RedactImage\022).google.priva" - + "cy.dlp.v2.RedactImageRequest\032*.google.pr" - + "ivacy.dlp.v2.RedactImageResponse\"f\202\323\344\223\002`" - + "\"$/v2/{parent=projects/*}/image:redact:\001" - + "*Z5\"0/v2/{parent=projects/*/locations/*}" - + "/image:redact:\001*\022\352\001\n\021DeidentifyContent\022/" - + ".google.privacy.dlp.v2.DeidentifyContent" - + "Request\0320.google.privacy.dlp.v2.Deidenti" - + "fyContentResponse\"r\202\323\344\223\002l\"*/v2/{parent=p" - + "rojects/*}/content:deidentify:\001*Z;\"6/v2/" - + "{parent=projects/*/locations/*}/content:" - + "deidentify:\001*\022\352\001\n\021ReidentifyContent\022/.go" - + "ogle.privacy.dlp.v2.ReidentifyContentReq" - + "uest\0320.google.privacy.dlp.v2.ReidentifyC" - + "ontentResponse\"r\202\323\344\223\002l\"*/v2/{parent=proj" - + "ects/*}/content:reidentify:\001*Z;\"6/v2/{pa" - + "rent=projects/*/locations/*}/content:rei" - + "dentify:\001*\022\260\001\n\rListInfoTypes\022+.google.pr" - + "ivacy.dlp.v2.ListInfoTypesRequest\032,.goog" - + "le.privacy.dlp.v2.ListInfoTypesResponse\"" - + "D\332A\006parent\202\323\344\223\0025\022\r/v2/infoTypesZ$\022\"/v2/{" - + "parent=locations/*}/infoTypes\022\364\002\n\025Create" - + "InspectTemplate\0223.google.privacy.dlp.v2." - + "CreateInspectTemplateRequest\032&.google.pr" - + "ivacy.dlp.v2.InspectTemplate\"\375\001\332A\027parent" - + ",inspect_template\202\323\344\223\002\334\001\"-/v2/{parent=or" - + "ganizations/*}/inspectTemplates:\001*Z>\"9/v" - + "2/{parent=organizations/*/locations/*}/i" - + "nspectTemplates:\001*Z-\"(/v2/{parent=projec" - + "ts/*}/inspectTemplates:\001*Z9\"4/v2/{parent" - + "=projects/*/locations/*}/inspectTemplate" - + "s:\001*\022\376\002\n\025UpdateInspectTemplate\0223.google." - + "privacy.dlp.v2.UpdateInspectTemplateRequ" - + "est\032&.google.privacy.dlp.v2.InspectTempl" - + "ate\"\207\002\332A!name,inspect_template,update_ma" - + "sk\202\323\344\223\002\334\0012-/v2/{name=organizations/*/ins" - + "pectTemplates/*}:\001*Z>29/v2/{name=organiz" - + "ations/*/locations/*/inspectTemplates/*}" - + ":\001*Z-2(/v2/{name=projects/*/inspectTempl" - + "ates/*}:\001*Z924/v2/{name=projects/*/locat" - + "ions/*/inspectTemplates/*}:\001*\022\317\002\n\022GetIns" - + "pectTemplate\0220.google.privacy.dlp.v2.Get" - + "InspectTemplateRequest\032&.google.privacy." - + "dlp.v2.InspectTemplate\"\336\001\332A\004name\202\323\344\223\002\320\001\022" - + "-/v2/{name=organizations/*/inspectTempla" - + "tes/*}Z;\0229/v2/{name=organizations/*/loca" - + "tions/*/inspectTemplates/*}Z*\022(/v2/{name" - + "=projects/*/inspectTemplates/*}Z6\0224/v2/{" - + "name=projects/*/locations/*/inspectTempl" - + "ates/*}\022\342\002\n\024ListInspectTemplates\0222.googl" - + "e.privacy.dlp.v2.ListInspectTemplatesReq" - + "uest\0323.google.privacy.dlp.v2.ListInspect" - + "TemplatesResponse\"\340\001\332A\006parent\202\323\344\223\002\320\001\022-/v" - + "2/{parent=organizations/*}/inspectTempla" - + "tesZ;\0229/v2/{parent=organizations/*/locat" - + "ions/*}/inspectTemplatesZ*\022(/v2/{parent=" - + "projects/*}/inspectTemplatesZ6\0224/v2/{par" - + "ent=projects/*/locations/*}/inspectTempl" - + "ates\022\305\002\n\025DeleteInspectTemplate\0223.google." - + "privacy.dlp.v2.DeleteInspectTemplateRequ" - + "est\032\026.google.protobuf.Empty\"\336\001\332A\004name\202\323\344" - + "\223\002\320\001*-/v2/{name=organizations/*/inspectT" - + "emplates/*}Z;*9/v2/{name=organizations/*" - + "/locations/*/inspectTemplates/*}Z**(/v2/" - + "{name=projects/*/inspectTemplates/*}Z6*4" - + "/v2/{name=projects/*/locations/*/inspect" - + "Templates/*}\022\214\003\n\030CreateDeidentifyTemplat" - + "e\0226.google.privacy.dlp.v2.CreateDeidenti" - + "fyTemplateRequest\032).google.privacy.dlp.v" - + "2.DeidentifyTemplate\"\214\002\332A\032parent,deident" - + "ify_template\202\323\344\223\002\350\001\"0/v2/{parent=organiz" - + "ations/*}/deidentifyTemplates:\001*ZA\"\022\022*\"9/v2/{parent=organizations/*/loc" - + "ations/*}/discoveryConfigs:\001*\022\232\002\n\025Update" - + "DiscoveryConfig\0223.google.privacy.dlp.v2." - + "UpdateDiscoveryConfigRequest\032&.google.pr" - + "ivacy.dlp.v2.DiscoveryConfig\"\243\001\332A!name,d" - + "iscovery_config,update_mask\202\323\344\223\002y24/v2/{" - + "name=projects/*/locations/*/discoveryCon" - + "figs/*}:\001*Z>29/v2/{name=organizations/*/" - + "locations/*/discoveryConfigs/*}:\001*\022\361\001\n\022G", - "etDiscoveryConfig\0220.google.privacy.dlp.v" - + "2.GetDiscoveryConfigRequest\032&.google.pri" - + "vacy.dlp.v2.DiscoveryConfig\"\200\001\332A\004name\202\323\344" - + "\223\002s\0224/v2/{name=projects/*/locations/*/di" - + "scoveryConfigs/*}Z;\0229/v2/{name=organizat" - + "ions/*/locations/*/discoveryConfigs/*}\022\204" - + "\002\n\024ListDiscoveryConfigs\0222.google.privacy" - + ".dlp.v2.ListDiscoveryConfigsRequest\0323.go" - + "ogle.privacy.dlp.v2.ListDiscoveryConfigs" - + "Response\"\202\001\332A\006parent\202\323\344\223\002s\0224/v2/{parent=" - + "projects/*/locations/*}/discoveryConfigs" - + "Z;\0229/v2/{parent=organizations/*/location" - + "s/*}/discoveryConfigs\022\347\001\n\025DeleteDiscover" - + "yConfig\0223.google.privacy.dlp.v2.DeleteDi" - + "scoveryConfigRequest\032\026.google.protobuf.E" - + "mpty\"\200\001\332A\004name\202\323\344\223\002s*4/v2/{name=projects" - + "/*/locations/*/discoveryConfigs/*}Z;*9/v" - + "2/{name=organizations/*/locations/*/disc" - + "overyConfigs/*}\022\337\001\n\014CreateDlpJob\022*.googl" - + "e.privacy.dlp.v2.CreateDlpJobRequest\032\035.g" - + "oogle.privacy.dlp.v2.DlpJob\"\203\001\332A\022parent," - + "inspect_job\332A\017parent,risk_job\202\323\344\223\002V\"\037/v2" - + "/{parent=projects/*}/dlpJobs:\001*Z0\"+/v2/{" - + "parent=projects/*/locations/*}/dlpJobs:\001" - + "*\022\373\001\n\013ListDlpJobs\022).google.privacy.dlp.v" - + "2.ListDlpJobsRequest\032*.google.privacy.dl" - + "p.v2.ListDlpJobsResponse\"\224\001\332A\006parent\202\323\344\223" - + "\002\204\001\022\037/v2/{parent=projects/*}/dlpJobsZ-\022+" - + "/v2/{parent=projects/*/locations/*}/dlpJ" - + "obsZ2\0220/v2/{parent=organizations/*/locat" - + "ions/*}/dlpJobs\022\262\001\n\tGetDlpJob\022\'.google.p" - + "rivacy.dlp.v2.GetDlpJobRequest\032\035.google." - + "privacy.dlp.v2.DlpJob\"]\332A\004name\202\323\344\223\002P\022\037/v" - + "2/{name=projects/*/dlpJobs/*}Z-\022+/v2/{na" - + "me=projects/*/locations/*/dlpJobs/*}\022\261\001\n" - + "\014DeleteDlpJob\022*.google.privacy.dlp.v2.De" - + "leteDlpJobRequest\032\026.google.protobuf.Empt" - + "y\"]\332A\004name\202\323\344\223\002P*\037/v2/{name=projects/*/d" - + "lpJobs/*}Z-*+/v2/{name=projects/*/locati" - + "ons/*/dlpJobs/*}\022\276\001\n\014CancelDlpJob\022*.goog" - + "le.privacy.dlp.v2.CancelDlpJobRequest\032\026." - + "google.protobuf.Empty\"j\202\323\344\223\002d\"&/v2/{name" - + "=projects/*/dlpJobs/*}:cancel:\001*Z7\"2/v2/" - + "{name=projects/*/locations/*/dlpJobs/*}:" - + "cancel:\001*\022\343\002\n\024CreateStoredInfoType\0222.goo" - + "gle.privacy.dlp.v2.CreateStoredInfoTypeR" - + "equest\032%.google.privacy.dlp.v2.StoredInf" - + "oType\"\357\001\332A\rparent,config\202\323\344\223\002\330\001\",/v2/{pa" - + "rent=organizations/*}/storedInfoTypes:\001*" - + "Z=\"8/v2/{parent=organizations/*/location" - + "s/*}/storedInfoTypes:\001*Z,\"\'/v2/{parent=p" - + "rojects/*}/storedInfoTypes:\001*Z8\"3/v2/{pa" - + "rent=projects/*/locations/*}/storedInfoT" - + "ypes:\001*\022\355\002\n\024UpdateStoredInfoType\0222.googl" - + "e.privacy.dlp.v2.UpdateStoredInfoTypeReq" - + "uest\032%.google.privacy.dlp.v2.StoredInfoT" - + "ype\"\371\001\332A\027name,config,update_mask\202\323\344\223\002\330\0012" - + ",/v2/{name=organizations/*/storedInfoTyp" - + "es/*}:\001*Z=28/v2/{name=organizations/*/lo" - + "cations/*/storedInfoTypes/*}:\001*Z,2\'/v2/{" - + "name=projects/*/storedInfoTypes/*}:\001*Z82" - + "3/v2/{name=projects/*/locations/*/stored" - + "InfoTypes/*}:\001*\022\310\002\n\021GetStoredInfoType\022/." - + "google.privacy.dlp.v2.GetStoredInfoTypeR" - + "equest\032%.google.privacy.dlp.v2.StoredInf" - + "oType\"\332\001\332A\004name\202\323\344\223\002\314\001\022,/v2/{name=organi" - + "zations/*/storedInfoTypes/*}Z:\0228/v2/{nam" - + "e=organizations/*/locations/*/storedInfo" - + "Types/*}Z)\022\'/v2/{name=projects/*/storedI" - + "nfoTypes/*}Z5\0223/v2/{name=projects/*/loca" - + "tions/*/storedInfoTypes/*}\022\333\002\n\023ListStore" - + "dInfoTypes\0221.google.privacy.dlp.v2.ListS" - + "toredInfoTypesRequest\0322.google.privacy.d" - + "lp.v2.ListStoredInfoTypesResponse\"\334\001\332A\006p" - + "arent\202\323\344\223\002\314\001\022,/v2/{parent=organizations/" - + "*}/storedInfoTypesZ:\0228/v2/{parent=organi" - + "zations/*/locations/*}/storedInfoTypesZ)" - + "\022\'/v2/{parent=projects/*}/storedInfoType" - + "sZ5\0223/v2/{parent=projects/*/locations/*}" - + "/storedInfoTypes\022\277\002\n\024DeleteStoredInfoTyp" - + "e\0222.google.privacy.dlp.v2.DeleteStoredIn" - + "foTypeRequest\032\026.google.protobuf.Empty\"\332\001" - + "\332A\004name\202\323\344\223\002\314\001*,/v2/{name=organizations/" - + "*/storedInfoTypes/*}Z:*8/v2/{name=organi" - + "zations/*/locations/*/storedInfoTypes/*}" - + "Z)*\'/v2/{name=projects/*/storedInfoTypes" - + "/*}Z5*3/v2/{name=projects/*/locations/*/" - + "storedInfoTypes/*}\022\223\002\n\027ListProjectDataPr" - + "ofiles\0225.google.privacy.dlp.v2.ListProje" - + "ctDataProfilesRequest\0326.google.privacy.d" - + "lp.v2.ListProjectDataProfilesResponse\"\210\001" - + "\332A\006parent\202\323\344\223\002y\022\022\022*<" + + "/v2/{name=organizations/*/locations/*/de" + + "identifyTemplates/*}Z-*+/v2/{name=projec" + + "ts/*/deidentifyTemplates/*}Z9*7/v2/{name" + + "=projects/*/locations/*/deidentifyTempla" + + "tes/*}\022\235\002\n\020CreateJobTrigger\022..google.pri" + + "vacy.dlp.v2.CreateJobTriggerRequest\032!.go" + + "ogle.privacy.dlp.v2.JobTrigger\"\265\001\332A\022pare" + + "nt,job_trigger\202\323\344\223\002\231\001\"#/v2/{parent=proje" + + "cts/*}/jobTriggers:\001*Z4\"//v2/{parent=pro" + + "jects/*/locations/*}/jobTriggers:\001*Z9\"4/" + + "v2/{parent=organizations/*/locations/*}/" + + "jobTriggers:\001*\022\247\002\n\020UpdateJobTrigger\022..go" + + "ogle.privacy.dlp.v2.UpdateJobTriggerRequ" + + "est\032!.google.privacy.dlp.v2.JobTrigger\"\277" + + "\001\332A\034name,job_trigger,update_mask\202\323\344\223\002\231\0012" + + "#/v2/{name=projects/*/jobTriggers/*}:\001*Z" + + "42//v2/{name=projects/*/locations/*/jobT" + + "riggers/*}:\001*Z924/v2/{name=organizations" + + "/*/locations/*/jobTriggers/*}:\001*\022\317\001\n\027Hyb" + + "ridInspectJobTrigger\0225.google.privacy.dl" + + "p.v2.HybridInspectJobTriggerRequest\032,.go" + + "ogle.privacy.dlp.v2.HybridInspectRespons" + + "e\"O\332A\004name\202\323\344\223\002B\"=/v2/{name=projects/*/l" + + "ocations/*/jobTriggers/*}:hybridInspect:" + + "\001*\022\200\002\n\rGetJobTrigger\022+.google.privacy.dl" + + "p.v2.GetJobTriggerRequest\032!.google.priva" + + "cy.dlp.v2.JobTrigger\"\236\001\332A\004name\202\323\344\223\002\220\001\022#/" + + "v2/{name=projects/*/jobTriggers/*}Z1\022//v" + + "2/{name=projects/*/locations/*/jobTrigge" + + "rs/*}Z6\0224/v2/{name=organizations/*/locat" + + "ions/*/jobTriggers/*}\022\223\002\n\017ListJobTrigger" + + "s\022-.google.privacy.dlp.v2.ListJobTrigger" + + "sRequest\032..google.privacy.dlp.v2.ListJob" + + "TriggersResponse\"\240\001\332A\006parent\202\323\344\223\002\220\001\022#/v2" + + "/{parent=projects/*}/jobTriggersZ1\022//v2/" + + "{parent=projects/*/locations/*}/jobTrigg" + + "ersZ6\0224/v2/{parent=organizations/*/locat" + + "ions/*}/jobTriggers\022\373\001\n\020DeleteJobTrigger" + + "\022..google.privacy.dlp.v2.DeleteJobTrigge" + + "rRequest\032\026.google.protobuf.Empty\"\236\001\332A\004na" + + "me\202\323\344\223\002\220\001*#/v2/{name=projects/*/jobTrigg" + + "ers/*}Z1*//v2/{name=projects/*/locations" + + "/*/jobTriggers/*}Z6*4/v2/{name=organizat" + + "ions/*/locations/*/jobTriggers/*}\022\335\001\n\022Ac" + + "tivateJobTrigger\0220.google.privacy.dlp.v2" + + ".ActivateJobTriggerRequest\032\035.google.priv" + + "acy.dlp.v2.DlpJob\"v\202\323\344\223\002p\",/v2/{name=pro" + + "jects/*/jobTriggers/*}:activate:\001*Z=\"8/v" + + "2/{name=projects/*/locations/*/jobTrigge" + + "rs/*}:activate:\001*\022\220\002\n\025CreateDiscoveryCon" + + "fig\0223.google.privacy.dlp.v2.CreateDiscov" + + "eryConfigRequest\032&.google.privacy.dlp.v2" + + ".DiscoveryConfig\"\231\001\332A\027parent,discovery_c" + + "onfig\202\323\344\223\002y\"4/v2/{parent=projects/*/loca" + + "tions/*}/discoveryConfigs:\001*Z>\"9/v2/{par" + + "ent=organizations/*/locations/*}/discove" + + "ryConfigs:\001*\022\232\002\n\025UpdateDiscoveryConfig\0223" + + ".google.privacy.dlp.v2.UpdateDiscoveryCo" + + "nfigRequest\032&.google.privacy.dlp.v2.Disc" + + "overyConfig\"\243\001\332A!name,discovery_config,u" + + "pdate_mask\202\323\344\223\002y24/v2/{name=projects/*/l" + + "ocations/*/discoveryConfigs/*}:\001*Z>29/v2" + + "/{name=organizations/*/locations/*/disco" + + "veryConfigs/*}:\001*\022\361\001\n\022GetDiscoveryConfig" + + "\0220.google.privacy.dlp.v2.GetDiscoveryCon" + + "figRequest\032&.google.privacy.dlp.v2.Disco" + + "veryConfig\"\200\001\332A\004name\202\323\344\223\002s\0224/v2/{name=pr" + + "ojects/*/locations/*/discoveryConfigs/*}" + + "Z;\0229/v2/{name=organizations/*/locations/" + + "*/discoveryConfigs/*}\022\204\002\n\024ListDiscoveryC" + + "onfigs\0222.google.privacy.dlp.v2.ListDisco" + + "veryConfigsRequest\0323.google.privacy.dlp." + + "v2.ListDiscoveryConfigsResponse\"\202\001\332A\006par" + + "ent\202\323\344\223\002s\0224/v2/{parent=projects/*/locati" + + "ons/*}/discoveryConfigsZ;\0229/v2/{parent=o" + + "rganizations/*/locations/*}/discoveryCon" + + "figs\022\347\001\n\025DeleteDiscoveryConfig\0223.google." + + "privacy.dlp.v2.DeleteDiscoveryConfigRequ" + + "est\032\026.google.protobuf.Empty\"\200\001\332A\004name\202\323\344" + + "\223\002s*4/v2/{name=projects/*/locations/*/di" + + "scoveryConfigs/*}Z;*9/v2/{name=organizat" + + "ions/*/locations/*/discoveryConfigs/*}\022\337" + + "\001\n\014CreateDlpJob\022*.google.privacy.dlp.v2." + + "CreateDlpJobRequest\032\035.google.privacy.dlp" + + ".v2.DlpJob\"\203\001\332A\022parent,inspect_job\332A\017par" + + "ent,risk_job\202\323\344\223\002V\"\037/v2/{parent=projects" + + "/*}/dlpJobs:\001*Z0\"+/v2/{parent=projects/*" + + "/locations/*}/dlpJobs:\001*\022\373\001\n\013ListDlpJobs" + + "\022).google.privacy.dlp.v2.ListDlpJobsRequ" + + "est\032*.google.privacy.dlp.v2.ListDlpJobsR" + + "esponse\"\224\001\332A\006parent\202\323\344\223\002\204\001\022\037/v2/{parent=" + + "projects/*}/dlpJobsZ-\022+/v2/{parent=proje" + + "cts/*/locations/*}/dlpJobsZ2\0220/v2/{paren" + + "t=organizations/*/locations/*}/dlpJobs\022\262" + + "\001\n\tGetDlpJob\022\'.google.privacy.dlp.v2.Get" + + "DlpJobRequest\032\035.google.privacy.dlp.v2.Dl" + + "pJob\"]\332A\004name\202\323\344\223\002P\022\037/v2/{name=projects/" + + "*/dlpJobs/*}Z-\022+/v2/{name=projects/*/loc" + + "ations/*/dlpJobs/*}\022\261\001\n\014DeleteDlpJob\022*.g" + + "oogle.privacy.dlp.v2.DeleteDlpJobRequest" + + "\032\026.google.protobuf.Empty\"]\332A\004name\202\323\344\223\002P*" + + "\037/v2/{name=projects/*/dlpJobs/*}Z-*+/v2/" + + "{name=projects/*/locations/*/dlpJobs/*}\022" + + "\276\001\n\014CancelDlpJob\022*.google.privacy.dlp.v2" + + ".CancelDlpJobRequest\032\026.google.protobuf.E" + + "mpty\"j\202\323\344\223\002d\"&/v2/{name=projects/*/dlpJo" + + "bs/*}:cancel:\001*Z7\"2/v2/{name=projects/*/" + + "locations/*/dlpJobs/*}:cancel:\001*\022\343\002\n\024Cre" + + "ateStoredInfoType\0222.google.privacy.dlp.v" + + "2.CreateStoredInfoTypeRequest\032%.google.p" + + "rivacy.dlp.v2.StoredInfoType\"\357\001\332A\rparent" + + ",config\202\323\344\223\002\330\001\",/v2/{parent=organization" + + "s/*}/storedInfoTypes:\001*Z=\"8/v2/{parent=o" + + "rganizations/*/locations/*}/storedInfoTy" + + "pes:\001*Z,\"\'/v2/{parent=projects/*}/stored" + + "InfoTypes:\001*Z8\"3/v2/{parent=projects/*/l" + + "ocations/*}/storedInfoTypes:\001*\022\355\002\n\024Updat" + + "eStoredInfoType\0222.google.privacy.dlp.v2." + + "UpdateStoredInfoTypeRequest\032%.google.pri" + + "vacy.dlp.v2.StoredInfoType\"\371\001\332A\027name,con" + + "fig,update_mask\202\323\344\223\002\330\0012,/v2/{name=organi" + + "zations/*/storedInfoTypes/*}:\001*Z=28/v2/{" + + "name=organizations/*/locations/*/storedI" + + "nfoTypes/*}:\001*Z,2\'/v2/{name=projects/*/s" + + "toredInfoTypes/*}:\001*Z823/v2/{name=projec" + + "ts/*/locations/*/storedInfoTypes/*}:\001*\022\310" + + "\002\n\021GetStoredInfoType\022/.google.privacy.dl" + + "p.v2.GetStoredInfoTypeRequest\032%.google.p" + + "rivacy.dlp.v2.StoredInfoType\"\332\001\332A\004name\202\323" + + "\344\223\002\314\001\022,/v2/{name=organizations/*/storedI" + + "nfoTypes/*}Z:\0228/v2/{name=organizations/*" + + "/locations/*/storedInfoTypes/*}Z)\022\'/v2/{" + + "name=projects/*/storedInfoTypes/*}Z5\0223/v" + + "2/{name=projects/*/locations/*/storedInf" + + "oTypes/*}\022\333\002\n\023ListStoredInfoTypes\0221.goog" + + "le.privacy.dlp.v2.ListStoredInfoTypesReq" + + "uest\0322.google.privacy.dlp.v2.ListStoredI" + + "nfoTypesResponse\"\334\001\332A\006parent\202\323\344\223\002\314\001\022,/v2" + + "/{parent=organizations/*}/storedInfoType" + + "sZ:\0228/v2/{parent=organizations/*/locatio" + + "ns/*}/storedInfoTypesZ)\022\'/v2/{parent=pro" + + "jects/*}/storedInfoTypesZ5\0223/v2/{parent=" + + "projects/*/locations/*}/storedInfoTypes\022" + + "\277\002\n\024DeleteStoredInfoType\0222.google.privac" + + "y.dlp.v2.DeleteStoredInfoTypeRequest\032\026.g" + + "oogle.protobuf.Empty\"\332\001\332A\004name\202\323\344\223\002\314\001*,/" + + "v2/{name=organizations/*/storedInfoTypes" + + "/*}Z:*8/v2/{name=organizations/*/locatio" + + "ns/*/storedInfoTypes/*}Z)*\'/v2/{name=pro" + + "jects/*/storedInfoTypes/*}Z5*3/v2/{name=" + + "projects/*/locations/*/storedInfoTypes/*" + + "}\022\223\002\n\027ListProjectDataProfiles\0225.google.p" + + "rivacy.dlp.v2.ListProjectDataProfilesReq" + + "uest\0326.google.privacy.dlp.v2.ListProject" + + "DataProfilesResponse\"\210\001\332A\006parent\202\323\344\223\002y\022<" + "/v2/{parent=organizations/*/locations/*}" - + "/columnDataProfilesZ8\0226/v2/{parent=proje" - + "cts/*/locations/*}/columnDataProfiles\022\200\002" - + "\n\025GetProjectDataProfile\0223.google.privacy" - + ".dlp.v2.GetProjectDataProfileRequest\032).g" - + "oogle.privacy.dlp.v2.ProjectDataProfile\"" - + "\206\001\332A\004name\202\323\344\223\002y\022\"9/v2/{name=projects/*/loca" - + "tions/*/dlpJobs/*}:hybridInspect:\001*\022\221\001\n\014" - + "FinishDlpJob\022*.google.privacy.dlp.v2.Fin" - + "ishDlpJobRequest\032\026.google.protobuf.Empty" - + "\"=\202\323\344\223\0027\"2/v2/{name=projects/*/locations" - + "/*/dlpJobs/*}:finish:\001*\022\266\001\n\020CreateConnec" - + "tion\022..google.privacy.dlp.v2.CreateConne" - + "ctionRequest\032!.google.privacy.dlp.v2.Con" - + "nection\"O\332A\022parent, connection\202\323\344\223\0024\"//v" - + "2/{parent=projects/*/locations/*}/connec" - + "tions:\001*\022\237\001\n\rGetConnection\022+.google.priv" - + "acy.dlp.v2.GetConnectionRequest\032!.google" - + ".privacy.dlp.v2.Connection\">\332A\004name\202\323\344\223\002" - + "1\022//v2/{name=projects/*/locations/*/conn" - + "ections/*}\022\262\001\n\017ListConnections\022-.google." - + "privacy.dlp.v2.ListConnectionsRequest\032.." - + "google.privacy.dlp.v2.ListConnectionsRes" - + "ponse\"@\332A\006parent\202\323\344\223\0021\022//v2/{parent=proj" - + "ects/*/locations/*}/connections\022\377\001\n\021Sear" - + "chConnections\022/.google.privacy.dlp.v2.Se" - + "archConnectionsRequest\0320.google.privacy." - + "dlp.v2.SearchConnectionsResponse\"\206\001\332A\006pa" - + "rent\202\323\344\223\002w\0226/v2/{parent=projects/*/locat" - + "ions/*}/connections:searchZ=\022;/v2/{paren" - + "t=organizations/*/locations/*}/connectio" - + "ns:search\022\232\001\n\020DeleteConnection\022..google." - + "privacy.dlp.v2.DeleteConnectionRequest\032\026" - + ".google.protobuf.Empty\">\332A\004name\202\323\344\223\0021*//" - + "v2/{name=projects/*/locations/*/connecti" - + "ons/*}\022\250\001\n\020UpdateConnection\022..google.pri" - + "vacy.dlp.v2.UpdateConnectionRequest\032!.go" - + "ogle.privacy.dlp.v2.Connection\"A\332A\004name\202" - + "\323\344\223\00242//v2/{name=projects/*/locations/*/" - + "connections/*}:\001*\032F\312A\022dlp.googleapis.com" - + "\322A.https://www.googleapis.com/auth/cloud" - + "-platformB\353\002\n\031com.google.privacy.dlp.v2B" - + "\010DlpProtoP\001Z)cloud.google.com/go/dlp/api" - + "v2/dlppb;dlppb\252\002\023Google.Cloud.Dlp.V2\312\002\023G" - + "oogle\\Cloud\\Dlp\\V2\352\002\026Google::Cloud::Dlp:" - + ":V2\352Ar\n\035dlp.googleapis.com/DlpContent\022\035p" - + "rojects/{project}/dlpContent\0222projects/{" - + "project}/locations/{location}/dlpContent" - + "\352A\\\n\'dlp.googleapis.com/OrganizationLoca" - + "tion\0221organizations/{organization}/locat" - + "ions/{location}b\006proto3" + + "/projectDataProfilesZ9\0227/v2/{parent=proj" + + "ects/*/locations/*}/projectDataProfiles\022" + + "\211\002\n\025ListTableDataProfiles\0223.google.priva" + + "cy.dlp.v2.ListTableDataProfilesRequest\0324" + + ".google.privacy.dlp.v2.ListTableDataProf" + + "ilesResponse\"\204\001\332A\006parent\202\323\344\223\002u\022:/v2/{par" + + "ent=organizations/*/locations/*}/tableDa" + + "taProfilesZ7\0225/v2/{parent=projects/*/loc" + + "ations/*}/tableDataProfiles\022\216\002\n\026ListColu" + + "mnDataProfiles\0224.google.privacy.dlp.v2.L" + + "istColumnDataProfilesRequest\0325.google.pr" + + "ivacy.dlp.v2.ListColumnDataProfilesRespo" + + "nse\"\206\001\332A\006parent\202\323\344\223\002w\022;/v2/{parent=organ" + + "izations/*/locations/*}/columnDataProfil" + + "esZ8\0226/v2/{parent=projects/*/locations/*" + + "}/columnDataProfiles\022\200\002\n\025GetProjectDataP" + + "rofile\0223.google.privacy.dlp.v2.GetProjec" + + "tDataProfileRequest\032).google.privacy.dlp" + + ".v2.ProjectDataProfile\"\206\001\332A\004name\202\323\344\223\002y\022<" + + "/v2/{name=organizations/*/locations/*/pr" + + "ojectDataProfiles/*}Z9\0227/v2/{name=projec" + + "ts/*/locations/*/projectDataProfiles/*}\022" + + "\235\002\n\031ListFileStoreDataProfiles\0227.google.p" + + "rivacy.dlp.v2.ListFileStoreDataProfilesR" + + "equest\0328.google.privacy.dlp.v2.ListFileS" + + "toreDataProfilesResponse\"\214\001\332A\006parent\202\323\344\223" + + "\002}\022>/v2/{parent=organizations/*/location" + + "s/*}/fileStoreDataProfilesZ;\0229/v2/{paren" + + "t=projects/*/locations/*}/fileStoreDataP" + + "rofiles\022\212\002\n\027GetFileStoreDataProfile\0225.go" + + "ogle.privacy.dlp.v2.GetFileStoreDataProf" + + "ileRequest\032+.google.privacy.dlp.v2.FileS" + + "toreDataProfile\"\212\001\332A\004name\202\323\344\223\002}\022>/v2/{na" + + "me=organizations/*/locations/*/fileStore" + + "DataProfiles/*}Z;\0229/v2/{name=projects/*/" + + "locations/*/fileStoreDataProfiles/*}\022\373\001\n" + + "\032DeleteFileStoreDataProfile\0228.google.pri" + + "vacy.dlp.v2.DeleteFileStoreDataProfileRe" + + "quest\032\026.google.protobuf.Empty\"\212\001\332A\004name\202" + + "\323\344\223\002}*>/v2/{name=organizations/*/locatio" + + "ns/*/fileStoreDataProfiles/*}Z;*9/v2/{na" + + "me=projects/*/locations/*/fileStoreDataP" + + "rofiles/*}\022\366\001\n\023GetTableDataProfile\0221.goo" + + "gle.privacy.dlp.v2.GetTableDataProfileRe" + + "quest\032\'.google.privacy.dlp.v2.TableDataP" + + "rofile\"\202\001\332A\004name\202\323\344\223\002u\022:/v2/{name=organi" + + "zations/*/locations/*/tableDataProfiles/" + + "*}Z7\0225/v2/{name=projects/*/locations/*/t" + + "ableDataProfiles/*}\022\373\001\n\024GetColumnDataPro" + + "file\0222.google.privacy.dlp.v2.GetColumnDa" + + "taProfileRequest\032(.google.privacy.dlp.v2" + + ".ColumnDataProfile\"\204\001\332A\004name\202\323\344\223\002w\022;/v2/" + + "{name=organizations/*/locations/*/column" + + "DataProfiles/*}Z8\0226/v2/{name=projects/*/" + + "locations/*/columnDataProfiles/*}\022\353\001\n\026De" + + "leteTableDataProfile\0224.google.privacy.dl" + + "p.v2.DeleteTableDataProfileRequest\032\026.goo" + + "gle.protobuf.Empty\"\202\001\332A\004name\202\323\344\223\002u*:/v2/" + + "{name=organizations/*/locations/*/tableD" + + "ataProfiles/*}Z7*5/v2/{name=projects/*/l" + + "ocations/*/tableDataProfiles/*}\022\303\001\n\023Hybr" + + "idInspectDlpJob\0221.google.privacy.dlp.v2." + + "HybridInspectDlpJobRequest\032,.google.priv" + + "acy.dlp.v2.HybridInspectResponse\"K\332A\004nam" + + "e\202\323\344\223\002>\"9/v2/{name=projects/*/locations/" + + "*/dlpJobs/*}:hybridInspect:\001*\022\221\001\n\014Finish" + + "DlpJob\022*.google.privacy.dlp.v2.FinishDlp" + + "JobRequest\032\026.google.protobuf.Empty\"=\202\323\344\223" + + "\0027\"2/v2/{name=projects/*/locations/*/dlp" + + "Jobs/*}:finish:\001*\022\362\001\n\020CreateConnection\022." + + ".google.privacy.dlp.v2.CreateConnectionR" + + "equest\032!.google.privacy.dlp.v2.Connectio" + + "n\"\212\001\332A\022parent, connection\202\323\344\223\002o\"//v2/{pa" + + "rent=projects/*/locations/*}/connections" + + ":\001*Z9\"4/v2/{parent=organizations/*/locat" + + "ions/*}/connections:\001*\022\327\001\n\rGetConnection" + + "\022+.google.privacy.dlp.v2.GetConnectionRe" + + "quest\032!.google.privacy.dlp.v2.Connection" + + "\"v\332A\004name\202\323\344\223\002i\022//v2/{name=projects/*/lo" + + "cations/*/connections/*}Z6\0224/v2/{name=or" + + "ganizations/*/locations/*/connections/*}" + + "\022\352\001\n\017ListConnections\022-.google.privacy.dl" + + "p.v2.ListConnectionsRequest\032..google.pri" + + "vacy.dlp.v2.ListConnectionsResponse\"x\332A\006" + + "parent\202\323\344\223\002i\022//v2/{parent=projects/*/loc" + + "ations/*}/connectionsZ6\0224/v2/{parent=org" + + "anizations/*/locations/*}/connections\022\377\001" + + "\n\021SearchConnections\022/.google.privacy.dlp" + + ".v2.SearchConnectionsRequest\0320.google.pr" + + "ivacy.dlp.v2.SearchConnectionsResponse\"\206" + + "\001\332A\006parent\202\323\344\223\002w\0226/v2/{parent=projects/*" + + "/locations/*}/connections:searchZ=\022;/v2/" + + "{parent=organizations/*/locations/*}/con" + + "nections:search\022\322\001\n\020DeleteConnection\022..g" + + "oogle.privacy.dlp.v2.DeleteConnectionReq" + + "uest\032\026.google.protobuf.Empty\"v\332A\004name\202\323\344" + + "\223\002i*//v2/{name=projects/*/locations/*/co" + + "nnections/*}Z6*4/v2/{name=organizations/" + + "*/locations/*/connections/*}\022\343\001\n\020UpdateC" + + "onnection\022..google.privacy.dlp.v2.Update" + + "ConnectionRequest\032!.google.privacy.dlp.v" + + "2.Connection\"|\332A\004name\202\323\344\223\002o2//v2/{name=p" + + "rojects/*/locations/*/connections/*}:\001*Z" + + "924/v2/{name=organizations/*/locations/*" + + "/connections/*}:\001*\032F\312A\022dlp.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\353\002\n\031com.google.privacy.dlp.v2" + + "B\010DlpProtoP\001Z)cloud.google.com/go/dlp/ap" + + "iv2/dlppb;dlppb\252\002\023Google.Cloud.Dlp.V2\312\002\023" + + "Google\\Cloud\\Dlp\\V2\352\002\026Google::Cloud::Dlp" + + "::V2\352Ar\n\035dlp.googleapis.com/DlpContent\022\035" + + "projects/{project}/dlpContent\0222projects/" + + "{project}/locations/{location}/dlpConten" + + "t\352A\\\n\'dlp.googleapis.com/OrganizationLoc" + + "ation\0221organizations/{organization}/loca" + + "tions/{location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -3321,7 +3602,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfileBigQueryRowSchema_descriptor, new java.lang.String[] { - "TableProfile", "ColumnProfile", "DataProfile", + "TableProfile", "ColumnProfile", "FileStoreProfile", "DataProfile", }); internal_static_google_privacy_dlp_v2_HybridInspectStatistics_descriptor = getDescriptor().getMessageTypes().get(35); @@ -4221,7 +4502,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Error_descriptor, new java.lang.String[] { - "Details", "Timestamps", + "Details", "Timestamps", "ExtraInfo", }); internal_static_google_privacy_dlp_v2_JobTrigger_descriptor = getDescriptor().getMessageTypes().get(92); @@ -4593,7 +4874,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryTarget_descriptor, new java.lang.String[] { - "BigQueryTarget", "CloudSqlTarget", "SecretsTarget", "Target", + "BigQueryTarget", "CloudSqlTarget", "SecretsTarget", "CloudStorageTarget", "Target", }); internal_static_google_privacy_dlp_v2_BigQueryDiscoveryTarget_descriptor = getDescriptor().getMessageTypes().get(125); @@ -4651,7 +4932,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryGenerationCadence_descriptor, new java.lang.String[] { - "SchemaModifiedCadence", "TableModifiedCadence", + "SchemaModifiedCadence", + "TableModifiedCadence", + "InspectTemplateModifiedCadence", + "RefreshFrequency", }); internal_static_google_privacy_dlp_v2_DiscoveryTableModifiedCadence_descriptor = getDescriptor().getMessageTypes().get(130); @@ -4669,8 +4953,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Types", "Frequency", }); - internal_static_google_privacy_dlp_v2_CloudSqlDiscoveryTarget_descriptor = + internal_static_google_privacy_dlp_v2_DiscoveryInspectTemplateModifiedCadence_descriptor = getDescriptor().getMessageTypes().get(132); + internal_static_google_privacy_dlp_v2_DiscoveryInspectTemplateModifiedCadence_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_DiscoveryInspectTemplateModifiedCadence_descriptor, + new java.lang.String[] { + "Frequency", + }); + internal_static_google_privacy_dlp_v2_CloudSqlDiscoveryTarget_descriptor = + getDescriptor().getMessageTypes().get(133); internal_static_google_privacy_dlp_v2_CloudSqlDiscoveryTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CloudSqlDiscoveryTarget_descriptor, @@ -4678,7 +4970,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Filter", "Conditions", "GenerationCadence", "Disabled", "Cadence", }); internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlFilter_descriptor = - getDescriptor().getMessageTypes().get(133); + getDescriptor().getMessageTypes().get(134); internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlFilter_descriptor, @@ -4686,7 +4978,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Collection", "Others", "DatabaseResourceReference", "Filter", }); internal_static_google_privacy_dlp_v2_DatabaseResourceCollection_descriptor = - getDescriptor().getMessageTypes().get(134); + getDescriptor().getMessageTypes().get(135); internal_static_google_privacy_dlp_v2_DatabaseResourceCollection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DatabaseResourceCollection_descriptor, @@ -4694,7 +4986,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IncludeRegexes", "Pattern", }); internal_static_google_privacy_dlp_v2_DatabaseResourceRegexes_descriptor = - getDescriptor().getMessageTypes().get(135); + getDescriptor().getMessageTypes().get(136); internal_static_google_privacy_dlp_v2_DatabaseResourceRegexes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DatabaseResourceRegexes_descriptor, @@ -4702,7 +4994,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Patterns", }); internal_static_google_privacy_dlp_v2_DatabaseResourceRegex_descriptor = - getDescriptor().getMessageTypes().get(136); + getDescriptor().getMessageTypes().get(137); internal_static_google_privacy_dlp_v2_DatabaseResourceRegex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DatabaseResourceRegex_descriptor, @@ -4710,13 +5002,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectIdRegex", "InstanceRegex", "DatabaseRegex", "DatabaseResourceNameRegex", }); internal_static_google_privacy_dlp_v2_AllOtherDatabaseResources_descriptor = - getDescriptor().getMessageTypes().get(137); + getDescriptor().getMessageTypes().get(138); internal_static_google_privacy_dlp_v2_AllOtherDatabaseResources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_AllOtherDatabaseResources_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_DatabaseResourceReference_descriptor = - getDescriptor().getMessageTypes().get(138); + getDescriptor().getMessageTypes().get(139); internal_static_google_privacy_dlp_v2_DatabaseResourceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DatabaseResourceReference_descriptor, @@ -4724,7 +5016,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Instance", "Database", "DatabaseResource", }); internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlConditions_descriptor = - getDescriptor().getMessageTypes().get(139); + getDescriptor().getMessageTypes().get(140); internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlConditions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlConditions_descriptor, @@ -4732,7 +5024,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatabaseEngines", "Types", }); internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlGenerationCadence_descriptor = - getDescriptor().getMessageTypes().get(140); + getDescriptor().getMessageTypes().get(141); internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlGenerationCadence_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlGenerationCadence_descriptor, @@ -4750,21 +5042,107 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Types", "Frequency", }); internal_static_google_privacy_dlp_v2_SecretsDiscoveryTarget_descriptor = - getDescriptor().getMessageTypes().get(141); + getDescriptor().getMessageTypes().get(142); internal_static_google_privacy_dlp_v2_SecretsDiscoveryTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_SecretsDiscoveryTarget_descriptor, new java.lang.String[] {}); + internal_static_google_privacy_dlp_v2_CloudStorageDiscoveryTarget_descriptor = + getDescriptor().getMessageTypes().get(143); + internal_static_google_privacy_dlp_v2_CloudStorageDiscoveryTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_CloudStorageDiscoveryTarget_descriptor, + new java.lang.String[] { + "Filter", "Conditions", "GenerationCadence", "Disabled", "Cadence", + }); + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageFilter_descriptor = + getDescriptor().getMessageTypes().get(144); + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageFilter_descriptor, + new java.lang.String[] { + "Collection", "CloudStorageResourceReference", "Others", "Filter", + }); + internal_static_google_privacy_dlp_v2_FileStoreCollection_descriptor = + getDescriptor().getMessageTypes().get(145); + internal_static_google_privacy_dlp_v2_FileStoreCollection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_FileStoreCollection_descriptor, + new java.lang.String[] { + "IncludeRegexes", "Pattern", + }); + internal_static_google_privacy_dlp_v2_FileStoreRegexes_descriptor = + getDescriptor().getMessageTypes().get(146); + internal_static_google_privacy_dlp_v2_FileStoreRegexes_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_FileStoreRegexes_descriptor, + new java.lang.String[] { + "Patterns", + }); + internal_static_google_privacy_dlp_v2_FileStoreRegex_descriptor = + getDescriptor().getMessageTypes().get(147); + internal_static_google_privacy_dlp_v2_FileStoreRegex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_FileStoreRegex_descriptor, + new java.lang.String[] { + "CloudStorageRegex", "ResourceRegex", + }); + internal_static_google_privacy_dlp_v2_CloudStorageRegex_descriptor = + getDescriptor().getMessageTypes().get(148); + internal_static_google_privacy_dlp_v2_CloudStorageRegex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_CloudStorageRegex_descriptor, + new java.lang.String[] { + "ProjectIdRegex", "BucketNameRegex", + }); + internal_static_google_privacy_dlp_v2_CloudStorageResourceReference_descriptor = + getDescriptor().getMessageTypes().get(149); + internal_static_google_privacy_dlp_v2_CloudStorageResourceReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_CloudStorageResourceReference_descriptor, + new java.lang.String[] { + "BucketName", "ProjectId", + }); + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageGenerationCadence_descriptor = + getDescriptor().getMessageTypes().get(150); + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageGenerationCadence_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageGenerationCadence_descriptor, + new java.lang.String[] { + "RefreshFrequency", "InspectTemplateModifiedCadence", + }); + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageConditions_descriptor = + getDescriptor().getMessageTypes().get(151); + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageConditions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageConditions_descriptor, + new java.lang.String[] { + "IncludedObjectAttributes", "IncludedBucketAttributes", + }); + internal_static_google_privacy_dlp_v2_DiscoveryFileStoreConditions_descriptor = + getDescriptor().getMessageTypes().get(152); + internal_static_google_privacy_dlp_v2_DiscoveryFileStoreConditions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_DiscoveryFileStoreConditions_descriptor, + new java.lang.String[] { + "CreatedAfter", "MinAge", "CloudStorageConditions", "Conditions", + }); internal_static_google_privacy_dlp_v2_DiscoveryStartingLocation_descriptor = - getDescriptor().getMessageTypes().get(142); + getDescriptor().getMessageTypes().get(153); internal_static_google_privacy_dlp_v2_DiscoveryStartingLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryStartingLocation_descriptor, new java.lang.String[] { "OrganizationId", "FolderId", "Location", }); + internal_static_google_privacy_dlp_v2_AllOtherResources_descriptor = + getDescriptor().getMessageTypes().get(154); + internal_static_google_privacy_dlp_v2_AllOtherResources_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_AllOtherResources_descriptor, + new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_DlpJob_descriptor = - getDescriptor().getMessageTypes().get(143); + getDescriptor().getMessageTypes().get(155); internal_static_google_privacy_dlp_v2_DlpJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DlpJob_descriptor, @@ -4784,7 +5162,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Details", }); internal_static_google_privacy_dlp_v2_GetDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(144); + getDescriptor().getMessageTypes().get(156); internal_static_google_privacy_dlp_v2_GetDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetDlpJobRequest_descriptor, @@ -4792,7 +5170,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(145); + getDescriptor().getMessageTypes().get(157); internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_descriptor, @@ -4800,7 +5178,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "Type", "OrderBy", "LocationId", }); internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(146); + getDescriptor().getMessageTypes().get(158); internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_descriptor, @@ -4808,7 +5186,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Jobs", "NextPageToken", }); internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(147); + getDescriptor().getMessageTypes().get(159); internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_descriptor, @@ -4816,7 +5194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(148); + getDescriptor().getMessageTypes().get(160); internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_descriptor, @@ -4824,7 +5202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(149); + getDescriptor().getMessageTypes().get(161); internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_descriptor, @@ -4832,7 +5210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(150); + getDescriptor().getMessageTypes().get(162); internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_descriptor, @@ -4840,7 +5218,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DeidentifyTemplate", "TemplateId", "LocationId", }); internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(151); + getDescriptor().getMessageTypes().get(163); internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_descriptor, @@ -4848,7 +5226,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DeidentifyTemplate", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(152); + getDescriptor().getMessageTypes().get(164); internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_descriptor, @@ -4856,7 +5234,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(153); + getDescriptor().getMessageTypes().get(165); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_descriptor, @@ -4864,7 +5242,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "LocationId", }); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_descriptor = - getDescriptor().getMessageTypes().get(154); + getDescriptor().getMessageTypes().get(166); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_descriptor, @@ -4872,7 +5250,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeidentifyTemplates", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(155); + getDescriptor().getMessageTypes().get(167); internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_descriptor, @@ -4880,7 +5258,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_descriptor = - getDescriptor().getMessageTypes().get(156); + getDescriptor().getMessageTypes().get(168); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_descriptor, @@ -4888,7 +5266,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputPath", "CloudStorageFileSet", "BigQueryField", "Source", }); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_descriptor = - getDescriptor().getMessageTypes().get(157); + getDescriptor().getMessageTypes().get(169); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_descriptor, @@ -4896,7 +5274,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApproxNumPhrases", }); internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_descriptor = - getDescriptor().getMessageTypes().get(158); + getDescriptor().getMessageTypes().get(170); internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_descriptor, @@ -4904,7 +5282,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Description", "LargeCustomDictionary", "Dictionary", "Regex", "Type", }); internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_descriptor = - getDescriptor().getMessageTypes().get(159); + getDescriptor().getMessageTypes().get(171); internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_descriptor, @@ -4912,7 +5290,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LargeCustomDictionary", "Type", }); internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_descriptor = - getDescriptor().getMessageTypes().get(160); + getDescriptor().getMessageTypes().get(172); internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_descriptor, @@ -4920,7 +5298,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "CreateTime", "State", "Errors", "Stats", }); internal_static_google_privacy_dlp_v2_StoredInfoType_descriptor = - getDescriptor().getMessageTypes().get(161); + getDescriptor().getMessageTypes().get(173); internal_static_google_privacy_dlp_v2_StoredInfoType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoType_descriptor, @@ -4928,7 +5306,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "CurrentVersion", "PendingVersions", }); internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(162); + getDescriptor().getMessageTypes().get(174); internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_descriptor, @@ -4936,7 +5314,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Config", "StoredInfoTypeId", "LocationId", }); internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(163); + getDescriptor().getMessageTypes().get(175); internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_descriptor, @@ -4944,7 +5322,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Config", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(164); + getDescriptor().getMessageTypes().get(176); internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_descriptor, @@ -4952,7 +5330,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(165); + getDescriptor().getMessageTypes().get(177); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_descriptor, @@ -4960,7 +5338,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "LocationId", }); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_descriptor = - getDescriptor().getMessageTypes().get(166); + getDescriptor().getMessageTypes().get(178); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_descriptor, @@ -4968,7 +5346,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StoredInfoTypes", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(167); + getDescriptor().getMessageTypes().get(179); internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_descriptor, @@ -4976,7 +5354,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(168); + getDescriptor().getMessageTypes().get(180); internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_descriptor, @@ -4984,7 +5362,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "HybridItem", }); internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(169); + getDescriptor().getMessageTypes().get(181); internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_descriptor, @@ -4992,7 +5370,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "HybridItem", }); internal_static_google_privacy_dlp_v2_HybridContentItem_descriptor = - getDescriptor().getMessageTypes().get(170); + getDescriptor().getMessageTypes().get(182); internal_static_google_privacy_dlp_v2_HybridContentItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridContentItem_descriptor, @@ -5000,7 +5378,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Item", "FindingDetails", }); internal_static_google_privacy_dlp_v2_HybridFindingDetails_descriptor = - getDescriptor().getMessageTypes().get(171); + getDescriptor().getMessageTypes().get(183); internal_static_google_privacy_dlp_v2_HybridFindingDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridFindingDetails_descriptor, @@ -5018,13 +5396,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor = - getDescriptor().getMessageTypes().get(172); + getDescriptor().getMessageTypes().get(184); internal_static_google_privacy_dlp_v2_HybridInspectResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(173); + getDescriptor().getMessageTypes().get(185); internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_descriptor, @@ -5032,7 +5410,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "Filter", }); internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_descriptor = - getDescriptor().getMessageTypes().get(174); + getDescriptor().getMessageTypes().get(186); internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_descriptor, @@ -5040,7 +5418,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectDataProfiles", "NextPageToken", }); internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(175); + getDescriptor().getMessageTypes().get(187); internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_descriptor, @@ -5048,7 +5426,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "Filter", }); internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_descriptor = - getDescriptor().getMessageTypes().get(176); + getDescriptor().getMessageTypes().get(188); internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_descriptor, @@ -5056,7 +5434,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TableDataProfiles", "NextPageToken", }); internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(177); + getDescriptor().getMessageTypes().get(189); internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_descriptor, @@ -5064,7 +5442,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "Filter", }); internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_descriptor = - getDescriptor().getMessageTypes().get(178); + getDescriptor().getMessageTypes().get(190); internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_descriptor, @@ -5072,7 +5450,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ColumnDataProfiles", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor = - getDescriptor().getMessageTypes().get(179); + getDescriptor().getMessageTypes().get(191); internal_static_google_privacy_dlp_v2_DataRiskLevel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor, @@ -5080,7 +5458,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Score", }); internal_static_google_privacy_dlp_v2_ProjectDataProfile_descriptor = - getDescriptor().getMessageTypes().get(180); + getDescriptor().getMessageTypes().get(192); internal_static_google_privacy_dlp_v2_ProjectDataProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ProjectDataProfile_descriptor, @@ -5091,9 +5469,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SensitivityScore", "DataRiskLevel", "ProfileStatus", + "TableDataProfileCount", + "FileStoreDataProfileCount", }); internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_descriptor = - getDescriptor().getMessageTypes().get(181); + getDescriptor().getMessageTypes().get(193); internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_descriptor, @@ -5105,7 +5485,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InspectTemplateModifiedTime", }); internal_static_google_privacy_dlp_v2_TableDataProfile_descriptor = - getDescriptor().getMessageTypes().get(182); + getDescriptor().getMessageTypes().get(194); internal_static_google_privacy_dlp_v2_TableDataProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TableDataProfile_descriptor, @@ -5146,7 +5526,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_privacy_dlp_v2_ProfileStatus_descriptor = - getDescriptor().getMessageTypes().get(183); + getDescriptor().getMessageTypes().get(195); internal_static_google_privacy_dlp_v2_ProfileStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ProfileStatus_descriptor, @@ -5154,7 +5534,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Status", "Timestamp", }); internal_static_google_privacy_dlp_v2_InfoTypeSummary_descriptor = - getDescriptor().getMessageTypes().get(184); + getDescriptor().getMessageTypes().get(196); internal_static_google_privacy_dlp_v2_InfoTypeSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeSummary_descriptor, @@ -5162,7 +5542,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoType", "EstimatedPrevalence", }); internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_descriptor = - getDescriptor().getMessageTypes().get(185); + getDescriptor().getMessageTypes().get(197); internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_descriptor, @@ -5170,7 +5550,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoType", "EstimatedPrevalence", "ExcludedFromAnalysis", }); internal_static_google_privacy_dlp_v2_ColumnDataProfile_descriptor = - getDescriptor().getMessageTypes().get(186); + getDescriptor().getMessageTypes().get(198); internal_static_google_privacy_dlp_v2_ColumnDataProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ColumnDataProfile_descriptor, @@ -5196,16 +5576,129 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ColumnType", "PolicyState", }); + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_descriptor = + getDescriptor().getMessageTypes().get(199); + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_descriptor, + new java.lang.String[] { + "Name", + "DataSourceType", + "ProjectDataProfile", + "ProjectId", + "FileStoreLocation", + "DataStorageLocations", + "LocationType", + "FileStorePath", + "FullResource", + "ConfigSnapshot", + "ProfileStatus", + "State", + "ProfileLastGenerated", + "ResourceVisibility", + "SensitivityScore", + "DataRiskLevel", + "CreateTime", + "LastModifiedTime", + "FileClusterSummaries", + "ResourceAttributes", + "ResourceLabels", + "FileStoreInfoTypeSummaries", + "FileStoreIsEmpty", + }); + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_ResourceAttributesEntry_descriptor = + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_descriptor + .getNestedTypes() + .get(0); + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_ResourceAttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_ResourceAttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_ResourceLabelsEntry_descriptor = + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_descriptor + .getNestedTypes() + .get(1); + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_ResourceLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_FileStoreDataProfile_ResourceLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_privacy_dlp_v2_FileStoreInfoTypeSummary_descriptor = + getDescriptor().getMessageTypes().get(200); + internal_static_google_privacy_dlp_v2_FileStoreInfoTypeSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_FileStoreInfoTypeSummary_descriptor, + new java.lang.String[] { + "InfoType", + }); + internal_static_google_privacy_dlp_v2_FileExtensionInfo_descriptor = + getDescriptor().getMessageTypes().get(201); + internal_static_google_privacy_dlp_v2_FileExtensionInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_FileExtensionInfo_descriptor, + new java.lang.String[] { + "FileExtension", + }); + internal_static_google_privacy_dlp_v2_FileClusterSummary_descriptor = + getDescriptor().getMessageTypes().get(202); + internal_static_google_privacy_dlp_v2_FileClusterSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_FileClusterSummary_descriptor, + new java.lang.String[] { + "FileClusterType", + "FileStoreInfoTypeSummaries", + "SensitivityScore", + "DataRiskLevel", + "Errors", + "FileExtensionsScanned", + "FileExtensionsSeen", + "NoFilesExist", + }); internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(187); + getDescriptor().getMessageTypes().get(203); internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_privacy_dlp_v2_GetFileStoreDataProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(204); + internal_static_google_privacy_dlp_v2_GetFileStoreDataProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_GetFileStoreDataProfileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(205); + internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", "OrderBy", "Filter", + }); + internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(206); + internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesResponse_descriptor, + new java.lang.String[] { + "FileStoreDataProfiles", "NextPageToken", + }); + internal_static_google_privacy_dlp_v2_DeleteFileStoreDataProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(207); + internal_static_google_privacy_dlp_v2_DeleteFileStoreDataProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_DeleteFileStoreDataProfileRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(188); + getDescriptor().getMessageTypes().get(208); internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_descriptor, @@ -5213,7 +5706,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(189); + getDescriptor().getMessageTypes().get(209); internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_descriptor, @@ -5221,7 +5714,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor = - getDescriptor().getMessageTypes().get(190); + getDescriptor().getMessageTypes().get(210); internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor, @@ -5249,15 +5742,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LogicalOperator", "Conditions", }); internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_descriptor = - getDescriptor().getMessageTypes().get(191); + getDescriptor().getMessageTypes().get(211); internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_descriptor, new java.lang.String[] { - "Profile", "Event", + "Profile", "FileStoreProfile", "Event", }); internal_static_google_privacy_dlp_v2_CreateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(192); + getDescriptor().getMessageTypes().get(212); internal_static_google_privacy_dlp_v2_CreateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateConnectionRequest_descriptor, @@ -5265,7 +5758,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Connection", }); internal_static_google_privacy_dlp_v2_GetConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(193); + getDescriptor().getMessageTypes().get(213); internal_static_google_privacy_dlp_v2_GetConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetConnectionRequest_descriptor, @@ -5273,7 +5766,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(194); + getDescriptor().getMessageTypes().get(214); internal_static_google_privacy_dlp_v2_ListConnectionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListConnectionsRequest_descriptor, @@ -5281,7 +5774,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_privacy_dlp_v2_SearchConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(195); + getDescriptor().getMessageTypes().get(215); internal_static_google_privacy_dlp_v2_SearchConnectionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_SearchConnectionsRequest_descriptor, @@ -5289,7 +5782,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_privacy_dlp_v2_ListConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(196); + getDescriptor().getMessageTypes().get(216); internal_static_google_privacy_dlp_v2_ListConnectionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListConnectionsResponse_descriptor, @@ -5297,7 +5790,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Connections", "NextPageToken", }); internal_static_google_privacy_dlp_v2_SearchConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(197); + getDescriptor().getMessageTypes().get(217); internal_static_google_privacy_dlp_v2_SearchConnectionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_SearchConnectionsResponse_descriptor, @@ -5305,7 +5798,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Connections", "NextPageToken", }); internal_static_google_privacy_dlp_v2_UpdateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(198); + getDescriptor().getMessageTypes().get(218); internal_static_google_privacy_dlp_v2_UpdateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateConnectionRequest_descriptor, @@ -5313,7 +5806,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Connection", "UpdateMask", }); internal_static_google_privacy_dlp_v2_DeleteConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(199); + getDescriptor().getMessageTypes().get(219); internal_static_google_privacy_dlp_v2_DeleteConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteConnectionRequest_descriptor, @@ -5321,7 +5814,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_Connection_descriptor = - getDescriptor().getMessageTypes().get(200); + getDescriptor().getMessageTypes().get(220); internal_static_google_privacy_dlp_v2_Connection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Connection_descriptor, @@ -5329,7 +5822,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "State", "Errors", "CloudSql", "Properties", }); internal_static_google_privacy_dlp_v2_SecretManagerCredential_descriptor = - getDescriptor().getMessageTypes().get(201); + getDescriptor().getMessageTypes().get(221); internal_static_google_privacy_dlp_v2_SecretManagerCredential_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_SecretManagerCredential_descriptor, @@ -5337,13 +5830,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Username", "PasswordSecretVersionName", }); internal_static_google_privacy_dlp_v2_CloudSqlIamCredential_descriptor = - getDescriptor().getMessageTypes().get(202); + getDescriptor().getMessageTypes().get(222); internal_static_google_privacy_dlp_v2_CloudSqlIamCredential_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CloudSqlIamCredential_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_CloudSqlProperties_descriptor = - getDescriptor().getMessageTypes().get(203); + getDescriptor().getMessageTypes().get(223); internal_static_google_privacy_dlp_v2_CloudSqlProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CloudSqlProperties_descriptor, @@ -5356,7 +5849,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Credential", }); internal_static_google_privacy_dlp_v2_DeleteTableDataProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(204); + getDescriptor().getMessageTypes().get(224); internal_static_google_privacy_dlp_v2_DeleteTableDataProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteTableDataProfileRequest_descriptor, @@ -5364,13 +5857,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_DataSourceType_descriptor = - getDescriptor().getMessageTypes().get(205); + getDescriptor().getMessageTypes().get(225); internal_static_google_privacy_dlp_v2_DataSourceType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataSourceType_descriptor, new java.lang.String[] { "DataSource", }); + internal_static_google_privacy_dlp_v2_FileClusterType_descriptor = + getDescriptor().getMessageTypes().get(226); + internal_static_google_privacy_dlp_v2_FileClusterType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_FileClusterType_descriptor, + new java.lang.String[] { + "Cluster", "FileClusterType", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpStorage.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpStorage.java index 9aa0e8a88186..5a2c93afcfb8 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpStorage.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpStorage.java @@ -186,142 +186,143 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e.proto\032\037google/protobuf/timestamp.proto" + "\"m\n\010InfoType\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 " + "\001(\t\022B\n\021sensitivity_score\030\003 \001(\0132\'.google." - + "privacy.dlp.v2.SensitivityScore\"\341\001\n\020Sens" + + "privacy.dlp.v2.SensitivityScore\"\373\001\n\020Sens" + "itivityScore\022L\n\005score\030\001 \001(\0162=.google.pri" + "vacy.dlp.v2.SensitivityScore.Sensitivity" - + "ScoreLevel\"\177\n\025SensitivityScoreLevel\022!\n\035S" - + "ENSITIVITY_SCORE_UNSPECIFIED\020\000\022\023\n\017SENSIT" - + "IVITY_LOW\020\n\022\030\n\024SENSITIVITY_MODERATE\020\024\022\024\n" - + "\020SENSITIVITY_HIGH\020\036\"K\n\nStoredType\022\014\n\004nam" - + "e\030\001 \001(\t\022/\n\013create_time\030\002 \001(\0132\032.google.pr" - + "otobuf.Timestamp\"\214\014\n\016CustomInfoType\0222\n\ti" - + "nfo_type\030\001 \001(\0132\037.google.privacy.dlp.v2.I" - + "nfoType\0225\n\nlikelihood\030\006 \001(\0162!.google.pri" - + "vacy.dlp.v2.Likelihood\022F\n\ndictionary\030\002 \001" - + "(\01320.google.privacy.dlp.v2.CustomInfoTyp" - + "e.DictionaryH\000\022<\n\005regex\030\003 \001(\0132+.google.p" - + "rivacy.dlp.v2.CustomInfoType.RegexH\000\022M\n\016" - + "surrogate_type\030\004 \001(\01323.google.privacy.dl" - + "p.v2.CustomInfoType.SurrogateTypeH\000\0228\n\013s" - + "tored_type\030\005 \001(\0132!.google.privacy.dlp.v2" - + ".StoredTypeH\000\022L\n\017detection_rules\030\007 \003(\01323" - + ".google.privacy.dlp.v2.CustomInfoType.De" - + "tectionRule\022K\n\016exclusion_type\030\010 \001(\01623.go" - + "ogle.privacy.dlp.v2.CustomInfoType.Exclu" - + "sionType\022B\n\021sensitivity_score\030\t \001(\0132\'.go" - + "ogle.privacy.dlp.v2.SensitivityScore\032\310\001\n" - + "\nDictionary\022N\n\tword_list\030\001 \001(\01329.google." - + "privacy.dlp.v2.CustomInfoType.Dictionary" - + ".WordListH\000\022E\n\022cloud_storage_path\030\003 \001(\0132" - + "\'.google.privacy.dlp.v2.CloudStoragePath" - + "H\000\032\031\n\010WordList\022\r\n\005words\030\001 \003(\tB\010\n\006source\032" - + "/\n\005Regex\022\017\n\007pattern\030\001 \001(\t\022\025\n\rgroup_index" - + "es\030\002 \003(\005\032\017\n\rSurrogateType\032\276\004\n\rDetectionR" - + "ule\022W\n\014hotword_rule\030\001 \001(\0132?.google.priva" - + "cy.dlp.v2.CustomInfoType.DetectionRule.H" - + "otwordRuleH\000\0328\n\tProximity\022\025\n\rwindow_befo" - + "re\030\001 \001(\005\022\024\n\014window_after\030\002 \001(\005\032\202\001\n\024Likel" - + "ihoodAdjustment\022=\n\020fixed_likelihood\030\001 \001(" - + "\0162!.google.privacy.dlp.v2.LikelihoodH\000\022\035" - + "\n\023relative_likelihood\030\002 \001(\005H\000B\014\n\nadjustm" - + "ent\032\214\002\n\013HotwordRule\022B\n\rhotword_regex\030\001 \001" - + "(\0132+.google.privacy.dlp.v2.CustomInfoTyp" - + "e.Regex\022P\n\tproximity\030\002 \001(\0132=.google.priv" + + "ScoreLevel\"\230\001\n\025SensitivityScoreLevel\022!\n\035" + + "SENSITIVITY_SCORE_UNSPECIFIED\020\000\022\023\n\017SENSI" + + "TIVITY_LOW\020\n\022\027\n\023SENSITIVITY_UNKNOWN\020\014\022\030\n" + + "\024SENSITIVITY_MODERATE\020\024\022\024\n\020SENSITIVITY_H" + + "IGH\020\036\"K\n\nStoredType\022\014\n\004name\030\001 \001(\t\022/\n\013cre" + + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mp\"\214\014\n\016CustomInfoType\0222\n\tinfo_type\030\001 \001(\013" + + "2\037.google.privacy.dlp.v2.InfoType\0225\n\nlik" + + "elihood\030\006 \001(\0162!.google.privacy.dlp.v2.Li" + + "kelihood\022F\n\ndictionary\030\002 \001(\01320.google.pr" + + "ivacy.dlp.v2.CustomInfoType.DictionaryH\000" + + "\022<\n\005regex\030\003 \001(\0132+.google.privacy.dlp.v2." + + "CustomInfoType.RegexH\000\022M\n\016surrogate_type" + + "\030\004 \001(\01323.google.privacy.dlp.v2.CustomInf" + + "oType.SurrogateTypeH\000\0228\n\013stored_type\030\005 \001" + + "(\0132!.google.privacy.dlp.v2.StoredTypeH\000\022" + + "L\n\017detection_rules\030\007 \003(\01323.google.privac" + + "y.dlp.v2.CustomInfoType.DetectionRule\022K\n" + + "\016exclusion_type\030\010 \001(\01623.google.privacy.d" + + "lp.v2.CustomInfoType.ExclusionType\022B\n\021se" + + "nsitivity_score\030\t \001(\0132\'.google.privacy.d" + + "lp.v2.SensitivityScore\032\310\001\n\nDictionary\022N\n" + + "\tword_list\030\001 \001(\01329.google.privacy.dlp.v2" + + ".CustomInfoType.Dictionary.WordListH\000\022E\n" + + "\022cloud_storage_path\030\003 \001(\0132\'.google.priva" + + "cy.dlp.v2.CloudStoragePathH\000\032\031\n\010WordList" + + "\022\r\n\005words\030\001 \003(\tB\010\n\006source\032/\n\005Regex\022\017\n\007pa" + + "ttern\030\001 \001(\t\022\025\n\rgroup_indexes\030\002 \003(\005\032\017\n\rSu" + + "rrogateType\032\276\004\n\rDetectionRule\022W\n\014hotword" + + "_rule\030\001 \001(\0132?.google.privacy.dlp.v2.Cust" + + "omInfoType.DetectionRule.HotwordRuleH\000\0328" + + "\n\tProximity\022\025\n\rwindow_before\030\001 \001(\005\022\024\n\014wi" + + "ndow_after\030\002 \001(\005\032\202\001\n\024LikelihoodAdjustmen" + + "t\022=\n\020fixed_likelihood\030\001 \001(\0162!.google.pri" + + "vacy.dlp.v2.LikelihoodH\000\022\035\n\023relative_lik" + + "elihood\030\002 \001(\005H\000B\014\n\nadjustment\032\214\002\n\013Hotwor" + + "dRule\022B\n\rhotword_regex\030\001 \001(\0132+.google.pr" + + "ivacy.dlp.v2.CustomInfoType.Regex\022P\n\tpro" + + "ximity\030\002 \001(\0132=.google.privacy.dlp.v2.Cus" + + "tomInfoType.DetectionRule.Proximity\022g\n\025l" + + "ikelihood_adjustment\030\003 \001(\0132H.google.priv" + "acy.dlp.v2.CustomInfoType.DetectionRule." - + "Proximity\022g\n\025likelihood_adjustment\030\003 \001(\013" - + "2H.google.privacy.dlp.v2.CustomInfoType." - + "DetectionRule.LikelihoodAdjustmentB\006\n\004ty" - + "pe\"K\n\rExclusionType\022\036\n\032EXCLUSION_TYPE_UN" - + "SPECIFIED\020\000\022\032\n\026EXCLUSION_TYPE_EXCLUDE\020\001B" - + "\006\n\004type\"\027\n\007FieldId\022\014\n\004name\030\001 \001(\t\"7\n\013Part" - + "itionId\022\022\n\nproject_id\030\002 \001(\t\022\024\n\014namespace" - + "_id\030\004 \001(\t\"\036\n\016KindExpression\022\014\n\004name\030\001 \001(" - + "\t\"\201\001\n\020DatastoreOptions\0228\n\014partition_id\030\001" - + " \001(\0132\".google.privacy.dlp.v2.PartitionId" - + "\0223\n\004kind\030\002 \001(\0132%.google.privacy.dlp.v2.K" - + "indExpression\"]\n\030CloudStorageRegexFileSe" - + "t\022\023\n\013bucket_name\030\001 \001(\t\022\025\n\rinclude_regex\030" - + "\002 \003(\t\022\025\n\rexclude_regex\030\003 \003(\t\"\354\003\n\023CloudSt" - + "orageOptions\022D\n\010file_set\030\001 \001(\01322.google." - + "privacy.dlp.v2.CloudStorageOptions.FileS" - + "et\022\034\n\024bytes_limit_per_file\030\004 \001(\003\022$\n\034byte" - + "s_limit_per_file_percent\030\010 \001(\005\0223\n\nfile_t" - + "ypes\030\005 \003(\0162\037.google.privacy.dlp.v2.FileT" - + "ype\022N\n\rsample_method\030\006 \001(\01627.google.priv" - + "acy.dlp.v2.CloudStorageOptions.SampleMet" - + "hod\022\033\n\023files_limit_percent\030\007 \001(\005\032_\n\007File" - + "Set\022\013\n\003url\030\001 \001(\t\022G\n\016regex_file_set\030\002 \001(\013" - + "2/.google.privacy.dlp.v2.CloudStorageReg" - + "exFileSet\"H\n\014SampleMethod\022\035\n\031SAMPLE_METH" - + "OD_UNSPECIFIED\020\000\022\007\n\003TOP\020\001\022\020\n\014RANDOM_STAR" - + "T\020\002\"\"\n\023CloudStorageFileSet\022\013\n\003url\030\001 \001(\t\"" - + " \n\020CloudStoragePath\022\014\n\004path\030\001 \001(\t\"\304\003\n\017Bi" - + "gQueryOptions\022=\n\017table_reference\030\001 \001(\0132$" - + ".google.privacy.dlp.v2.BigQueryTable\022:\n\022" - + "identifying_fields\030\002 \003(\0132\036.google.privac" - + "y.dlp.v2.FieldId\022\022\n\nrows_limit\030\003 \001(\003\022\032\n\022" - + "rows_limit_percent\030\006 \001(\005\022J\n\rsample_metho" - + "d\030\004 \001(\01623.google.privacy.dlp.v2.BigQuery" - + "Options.SampleMethod\0227\n\017excluded_fields\030" - + "\005 \003(\0132\036.google.privacy.dlp.v2.FieldId\0227\n" - + "\017included_fields\030\007 \003(\0132\036.google.privacy." - + "dlp.v2.FieldId\"H\n\014SampleMethod\022\035\n\031SAMPLE" - + "_METHOD_UNSPECIFIED\020\000\022\007\n\003TOP\020\001\022\020\n\014RANDOM" - + "_START\020\002\"\332\004\n\rStorageConfig\022D\n\021datastore_" - + "options\030\002 \001(\0132\'.google.privacy.dlp.v2.Da" - + "tastoreOptionsH\000\022K\n\025cloud_storage_option" - + "s\030\003 \001(\0132*.google.privacy.dlp.v2.CloudSto" - + "rageOptionsH\000\022C\n\021big_query_options\030\004 \001(\013" - + "2&.google.privacy.dlp.v2.BigQueryOptions" - + "H\000\022>\n\016hybrid_options\030\t \001(\0132$.google.priv" - + "acy.dlp.v2.HybridOptionsH\000\022L\n\017timespan_c" - + "onfig\030\006 \001(\01323.google.privacy.dlp.v2.Stor" - + "ageConfig.TimespanConfig\032\332\001\n\016TimespanCon" - + "fig\022.\n\nstart_time\030\001 \001(\0132\032.google.protobu" - + "f.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google.p" - + "rotobuf.Timestamp\0227\n\017timestamp_field\030\003 \001" - + "(\0132\036.google.privacy.dlp.v2.FieldId\0221\n)en" - + "able_auto_population_of_timespan_config\030" - + "\004 \001(\010B\006\n\004type\"\366\001\n\rHybridOptions\022\023\n\013descr" - + "iption\030\001 \001(\t\022#\n\033required_finding_label_k" - + "eys\030\002 \003(\t\022@\n\006labels\030\003 \003(\01320.google.priva" - + "cy.dlp.v2.HybridOptions.LabelsEntry\022:\n\rt" - + "able_options\030\004 \001(\0132#.google.privacy.dlp." - + "v2.TableOptions\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\013BigQueryKey\022=\n" - + "\017table_reference\030\001 \001(\0132$.google.privacy." - + "dlp.v2.BigQueryTable\022\022\n\nrow_number\030\002 \001(\003" - + "\">\n\014DatastoreKey\022.\n\nentity_key\030\001 \001(\0132\032.g" - + "oogle.privacy.dlp.v2.Key\"\273\001\n\003Key\0228\n\014part" - + "ition_id\030\001 \001(\0132\".google.privacy.dlp.v2.P" - + "artitionId\0224\n\004path\030\002 \003(\0132&.google.privac" - + "y.dlp.v2.Key.PathElement\032D\n\013PathElement\022" - + "\014\n\004kind\030\001 \001(\t\022\014\n\002id\030\002 \001(\003H\000\022\016\n\004name\030\003 \001(" - + "\tH\000B\t\n\007id_type\"\241\001\n\tRecordKey\022<\n\rdatastor" - + "e_key\030\002 \001(\0132#.google.privacy.dlp.v2.Data" - + "storeKeyH\000\022;\n\rbig_query_key\030\003 \001(\0132\".goog" - + "le.privacy.dlp.v2.BigQueryKeyH\000\022\021\n\tid_va" - + "lues\030\005 \003(\tB\006\n\004type\"I\n\rBigQueryTable\022\022\n\np" - + "roject_id\030\001 \001(\t\022\022\n\ndataset_id\030\002 \001(\t\022\020\n\010t" - + "able_id\030\003 \001(\t\"6\n\016TableReference\022\022\n\ndatas" - + "et_id\030\001 \001(\t\022\020\n\010table_id\030\002 \001(\t\"s\n\rBigQuer" - + "yField\0223\n\005table\030\001 \001(\0132$.google.privacy.d" - + "lp.v2.BigQueryTable\022-\n\005field\030\002 \001(\0132\036.goo" - + "gle.privacy.dlp.v2.FieldId\"9\n\010EntityId\022-" - + "\n\005field\030\001 \001(\0132\036.google.privacy.dlp.v2.Fi" - + "eldId\"J\n\014TableOptions\022:\n\022identifying_fie" - + "lds\030\001 \003(\0132\036.google.privacy.dlp.v2.FieldI" - + "d*t\n\nLikelihood\022\032\n\026LIKELIHOOD_UNSPECIFIE" - + "D\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010" - + "POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\005*" - + "\232\001\n\010FileType\022\031\n\025FILE_TYPE_UNSPECIFIED\020\000\022" - + "\017\n\013BINARY_FILE\020\001\022\r\n\tTEXT_FILE\020\002\022\t\n\005IMAGE" - + "\020\003\022\010\n\004WORD\020\005\022\007\n\003PDF\020\006\022\010\n\004AVRO\020\007\022\007\n\003CSV\020\010" - + "\022\007\n\003TSV\020\t\022\016\n\nPOWERPOINT\020\013\022\t\n\005EXCEL\020\014B\231\001\n" - + "\031com.google.privacy.dlp.v2B\nDlpStorageP\001" - + "Z)cloud.google.com/go/dlp/apiv2/dlppb;dl" - + "ppb\252\002\023Google.Cloud.Dlp.V2\312\002\023Google\\Cloud" - + "\\Dlp\\V2\352\002\026Google::Cloud::Dlp::V2b\006proto3" + + "LikelihoodAdjustmentB\006\n\004type\"K\n\rExclusio" + + "nType\022\036\n\032EXCLUSION_TYPE_UNSPECIFIED\020\000\022\032\n" + + "\026EXCLUSION_TYPE_EXCLUDE\020\001B\006\n\004type\"\027\n\007Fie" + + "ldId\022\014\n\004name\030\001 \001(\t\"7\n\013PartitionId\022\022\n\npro" + + "ject_id\030\002 \001(\t\022\024\n\014namespace_id\030\004 \001(\t\"\036\n\016K" + + "indExpression\022\014\n\004name\030\001 \001(\t\"\201\001\n\020Datastor" + + "eOptions\0228\n\014partition_id\030\001 \001(\0132\".google." + + "privacy.dlp.v2.PartitionId\0223\n\004kind\030\002 \001(\013" + + "2%.google.privacy.dlp.v2.KindExpression\"" + + "]\n\030CloudStorageRegexFileSet\022\023\n\013bucket_na" + + "me\030\001 \001(\t\022\025\n\rinclude_regex\030\002 \003(\t\022\025\n\rexclu" + + "de_regex\030\003 \003(\t\"\354\003\n\023CloudStorageOptions\022D" + + "\n\010file_set\030\001 \001(\01322.google.privacy.dlp.v2" + + ".CloudStorageOptions.FileSet\022\034\n\024bytes_li" + + "mit_per_file\030\004 \001(\003\022$\n\034bytes_limit_per_fi" + + "le_percent\030\010 \001(\005\0223\n\nfile_types\030\005 \003(\0162\037.g" + + "oogle.privacy.dlp.v2.FileType\022N\n\rsample_" + + "method\030\006 \001(\01627.google.privacy.dlp.v2.Clo" + + "udStorageOptions.SampleMethod\022\033\n\023files_l" + + "imit_percent\030\007 \001(\005\032_\n\007FileSet\022\013\n\003url\030\001 \001" + + "(\t\022G\n\016regex_file_set\030\002 \001(\0132/.google.priv" + + "acy.dlp.v2.CloudStorageRegexFileSet\"H\n\014S" + + "ampleMethod\022\035\n\031SAMPLE_METHOD_UNSPECIFIED" + + "\020\000\022\007\n\003TOP\020\001\022\020\n\014RANDOM_START\020\002\"\"\n\023CloudSt" + + "orageFileSet\022\013\n\003url\030\001 \001(\t\" \n\020CloudStorag" + + "ePath\022\014\n\004path\030\001 \001(\t\"\304\003\n\017BigQueryOptions\022" + + "=\n\017table_reference\030\001 \001(\0132$.google.privac" + + "y.dlp.v2.BigQueryTable\022:\n\022identifying_fi" + + "elds\030\002 \003(\0132\036.google.privacy.dlp.v2.Field" + + "Id\022\022\n\nrows_limit\030\003 \001(\003\022\032\n\022rows_limit_per" + + "cent\030\006 \001(\005\022J\n\rsample_method\030\004 \001(\01623.goog" + + "le.privacy.dlp.v2.BigQueryOptions.Sample" + + "Method\0227\n\017excluded_fields\030\005 \003(\0132\036.google" + + ".privacy.dlp.v2.FieldId\0227\n\017included_fiel" + + "ds\030\007 \003(\0132\036.google.privacy.dlp.v2.FieldId" + + "\"H\n\014SampleMethod\022\035\n\031SAMPLE_METHOD_UNSPEC" + + "IFIED\020\000\022\007\n\003TOP\020\001\022\020\n\014RANDOM_START\020\002\"\332\004\n\rS" + + "torageConfig\022D\n\021datastore_options\030\002 \001(\0132" + + "\'.google.privacy.dlp.v2.DatastoreOptions" + + "H\000\022K\n\025cloud_storage_options\030\003 \001(\0132*.goog" + + "le.privacy.dlp.v2.CloudStorageOptionsH\000\022" + + "C\n\021big_query_options\030\004 \001(\0132&.google.priv" + + "acy.dlp.v2.BigQueryOptionsH\000\022>\n\016hybrid_o" + + "ptions\030\t \001(\0132$.google.privacy.dlp.v2.Hyb" + + "ridOptionsH\000\022L\n\017timespan_config\030\006 \001(\01323." + + "google.privacy.dlp.v2.StorageConfig.Time" + + "spanConfig\032\332\001\n\016TimespanConfig\022.\n\nstart_t" + + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\0227\n\017timestamp_field\030\003 \001(\0132\036.google.pr" + + "ivacy.dlp.v2.FieldId\0221\n)enable_auto_popu" + + "lation_of_timespan_config\030\004 \001(\010B\006\n\004type\"" + + "\366\001\n\rHybridOptions\022\023\n\013description\030\001 \001(\t\022#" + + "\n\033required_finding_label_keys\030\002 \003(\t\022@\n\006l" + + "abels\030\003 \003(\01320.google.privacy.dlp.v2.Hybr" + + "idOptions.LabelsEntry\022:\n\rtable_options\030\004" + + " \001(\0132#.google.privacy.dlp.v2.TableOption" + + "s\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"`\n\013BigQueryKey\022=\n\017table_referen" + + "ce\030\001 \001(\0132$.google.privacy.dlp.v2.BigQuer" + + "yTable\022\022\n\nrow_number\030\002 \001(\003\">\n\014DatastoreK" + + "ey\022.\n\nentity_key\030\001 \001(\0132\032.google.privacy." + + "dlp.v2.Key\"\273\001\n\003Key\0228\n\014partition_id\030\001 \001(\013" + + "2\".google.privacy.dlp.v2.PartitionId\0224\n\004" + + "path\030\002 \003(\0132&.google.privacy.dlp.v2.Key.P" + + "athElement\032D\n\013PathElement\022\014\n\004kind\030\001 \001(\t\022" + + "\014\n\002id\030\002 \001(\003H\000\022\016\n\004name\030\003 \001(\tH\000B\t\n\007id_type" + + "\"\241\001\n\tRecordKey\022<\n\rdatastore_key\030\002 \001(\0132#." + + "google.privacy.dlp.v2.DatastoreKeyH\000\022;\n\r" + + "big_query_key\030\003 \001(\0132\".google.privacy.dlp" + + ".v2.BigQueryKeyH\000\022\021\n\tid_values\030\005 \003(\tB\006\n\004" + + "type\"I\n\rBigQueryTable\022\022\n\nproject_id\030\001 \001(" + + "\t\022\022\n\ndataset_id\030\002 \001(\t\022\020\n\010table_id\030\003 \001(\t\"" + + "6\n\016TableReference\022\022\n\ndataset_id\030\001 \001(\t\022\020\n" + + "\010table_id\030\002 \001(\t\"s\n\rBigQueryField\0223\n\005tabl" + + "e\030\001 \001(\0132$.google.privacy.dlp.v2.BigQuery" + + "Table\022-\n\005field\030\002 \001(\0132\036.google.privacy.dl" + + "p.v2.FieldId\"9\n\010EntityId\022-\n\005field\030\001 \001(\0132" + + "\036.google.privacy.dlp.v2.FieldId\"J\n\014Table" + + "Options\022:\n\022identifying_fields\030\001 \003(\0132\036.go" + + "ogle.privacy.dlp.v2.FieldId*t\n\nLikelihoo" + + "d\022\032\n\026LIKELIHOOD_UNSPECIFIED\020\000\022\021\n\rVERY_UN" + + "LIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006" + + "LIKELY\020\004\022\017\n\013VERY_LIKELY\020\005*\232\001\n\010FileType\022\031" + + "\n\025FILE_TYPE_UNSPECIFIED\020\000\022\017\n\013BINARY_FILE" + + "\020\001\022\r\n\tTEXT_FILE\020\002\022\t\n\005IMAGE\020\003\022\010\n\004WORD\020\005\022\007" + + "\n\003PDF\020\006\022\010\n\004AVRO\020\007\022\007\n\003CSV\020\010\022\007\n\003TSV\020\t\022\016\n\nP" + + "OWERPOINT\020\013\022\t\n\005EXCEL\020\014B\231\001\n\031com.google.pr" + + "ivacy.dlp.v2B\nDlpStorageP\001Z)cloud.google" + + ".com/go/dlp/apiv2/dlppb;dlppb\252\002\023Google.C" + + "loud.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\V2\352\002\026Goog" + + "le::Cloud::Dlp::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Error.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Error.java index 2f7d18fc0321..39b333171002 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Error.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Error.java @@ -41,6 +41,7 @@ private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Error() { timestamps_ = java.util.Collections.emptyList(); + extraInfo_ = 0; } @java.lang.Override @@ -63,6 +64,163 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.privacy.dlp.v2.Error.class, com.google.privacy.dlp.v2.Error.Builder.class); } + /** + * + * + *
        +   * Additional information about the error.
        +   * 
        + * + * Protobuf enum {@code google.privacy.dlp.v2.Error.ErrorExtraInfo} + */ + public enum ErrorExtraInfo implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * Unused.
        +     * 
        + * + * ERROR_INFO_UNSPECIFIED = 0; + */ + ERROR_INFO_UNSPECIFIED(0), + /** + * + * + *
        +     * Image scan is not available in the region.
        +     * 
        + * + * IMAGE_SCAN_UNAVAILABLE_IN_REGION = 1; + */ + IMAGE_SCAN_UNAVAILABLE_IN_REGION(1), + /** + * + * + *
        +     * File store cluster is not supported for profile generation.
        +     * 
        + * + * FILE_STORE_CLUSTER_UNSUPPORTED = 2; + */ + FILE_STORE_CLUSTER_UNSUPPORTED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * Unused.
        +     * 
        + * + * ERROR_INFO_UNSPECIFIED = 0; + */ + public static final int ERROR_INFO_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +     * Image scan is not available in the region.
        +     * 
        + * + * IMAGE_SCAN_UNAVAILABLE_IN_REGION = 1; + */ + public static final int IMAGE_SCAN_UNAVAILABLE_IN_REGION_VALUE = 1; + /** + * + * + *
        +     * File store cluster is not supported for profile generation.
        +     * 
        + * + * FILE_STORE_CLUSTER_UNSUPPORTED = 2; + */ + public static final int FILE_STORE_CLUSTER_UNSUPPORTED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ErrorExtraInfo valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ErrorExtraInfo forNumber(int value) { + switch (value) { + case 0: + return ERROR_INFO_UNSPECIFIED; + case 1: + return IMAGE_SCAN_UNAVAILABLE_IN_REGION; + case 2: + return FILE_STORE_CLUSTER_UNSUPPORTED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ErrorExtraInfo findValueByNumber(int number) { + return ErrorExtraInfo.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.privacy.dlp.v2.Error.getDescriptor().getEnumTypes().get(0); + } + + private static final ErrorExtraInfo[] VALUES = values(); + + public static ErrorExtraInfo valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ErrorExtraInfo(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.Error.ErrorExtraInfo) + } + private int bitField0_; public static final int DETAILS_FIELD_NUMBER = 1; private com.google.rpc.Status details_; @@ -186,6 +344,41 @@ public com.google.protobuf.TimestampOrBuilder getTimestampsOrBuilder(int index) return timestamps_.get(index); } + public static final int EXTRA_INFO_FIELD_NUMBER = 4; + private int extraInfo_ = 0; + /** + * + * + *
        +   * Additional information about the error.
        +   * 
        + * + * .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; + * + * @return The enum numeric value on the wire for extraInfo. + */ + @java.lang.Override + public int getExtraInfoValue() { + return extraInfo_; + } + /** + * + * + *
        +   * Additional information about the error.
        +   * 
        + * + * .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; + * + * @return The extraInfo. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.Error.ErrorExtraInfo getExtraInfo() { + com.google.privacy.dlp.v2.Error.ErrorExtraInfo result = + com.google.privacy.dlp.v2.Error.ErrorExtraInfo.forNumber(extraInfo_); + return result == null ? com.google.privacy.dlp.v2.Error.ErrorExtraInfo.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -206,6 +399,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < timestamps_.size(); i++) { output.writeMessage(2, timestamps_.get(i)); } + if (extraInfo_ + != com.google.privacy.dlp.v2.Error.ErrorExtraInfo.ERROR_INFO_UNSPECIFIED.getNumber()) { + output.writeEnum(4, extraInfo_); + } getUnknownFields().writeTo(output); } @@ -221,6 +418,10 @@ public int getSerializedSize() { for (int i = 0; i < timestamps_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, timestamps_.get(i)); } + if (extraInfo_ + != com.google.privacy.dlp.v2.Error.ErrorExtraInfo.ERROR_INFO_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, extraInfo_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -241,6 +442,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDetails().equals(other.getDetails())) return false; } if (!getTimestampsList().equals(other.getTimestampsList())) return false; + if (extraInfo_ != other.extraInfo_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,6 +462,8 @@ public int hashCode() { hash = (37 * hash) + TIMESTAMPS_FIELD_NUMBER; hash = (53 * hash) + getTimestampsList().hashCode(); } + hash = (37 * hash) + EXTRA_INFO_FIELD_NUMBER; + hash = (53 * hash) + extraInfo_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -420,6 +624,7 @@ public Builder clear() { timestampsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); + extraInfo_ = 0; return this; } @@ -473,6 +678,9 @@ private void buildPartial0(com.google.privacy.dlp.v2.Error result) { result.details_ = detailsBuilder_ == null ? details_ : detailsBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.extraInfo_ = extraInfo_; + } result.bitField0_ |= to_bitField0_; } @@ -551,6 +759,9 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.Error other) { } } } + if (other.extraInfo_ != 0) { + setExtraInfoValue(other.getExtraInfoValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -595,6 +806,12 @@ public Builder mergeFrom( } break; } // case 18 + case 32: + { + extraInfo_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1154,6 +1371,96 @@ public java.util.List getTimestampsBuilde return timestampsBuilder_; } + private int extraInfo_ = 0; + /** + * + * + *
        +     * Additional information about the error.
        +     * 
        + * + * .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; + * + * @return The enum numeric value on the wire for extraInfo. + */ + @java.lang.Override + public int getExtraInfoValue() { + return extraInfo_; + } + /** + * + * + *
        +     * Additional information about the error.
        +     * 
        + * + * .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; + * + * @param value The enum numeric value on the wire for extraInfo to set. + * @return This builder for chaining. + */ + public Builder setExtraInfoValue(int value) { + extraInfo_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Additional information about the error.
        +     * 
        + * + * .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; + * + * @return The extraInfo. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.Error.ErrorExtraInfo getExtraInfo() { + com.google.privacy.dlp.v2.Error.ErrorExtraInfo result = + com.google.privacy.dlp.v2.Error.ErrorExtraInfo.forNumber(extraInfo_); + return result == null ? com.google.privacy.dlp.v2.Error.ErrorExtraInfo.UNRECOGNIZED : result; + } + /** + * + * + *
        +     * Additional information about the error.
        +     * 
        + * + * .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; + * + * @param value The extraInfo to set. + * @return This builder for chaining. + */ + public Builder setExtraInfo(com.google.privacy.dlp.v2.Error.ErrorExtraInfo value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + extraInfo_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +     * Additional information about the error.
        +     * 
        + * + * .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; + * + * @return This builder for chaining. + */ + public Builder clearExtraInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + extraInfo_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ErrorOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ErrorOrBuilder.java index adbb1cd8de66..e3e384cd72cc 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ErrorOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ErrorOrBuilder.java @@ -114,4 +114,29 @@ public interface ErrorOrBuilder * repeated .google.protobuf.Timestamp timestamps = 2; */ com.google.protobuf.TimestampOrBuilder getTimestampsOrBuilder(int index); + + /** + * + * + *
        +   * Additional information about the error.
        +   * 
        + * + * .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; + * + * @return The enum numeric value on the wire for extraInfo. + */ + int getExtraInfoValue(); + /** + * + * + *
        +   * Additional information about the error.
        +   * 
        + * + * .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; + * + * @return The extraInfo. + */ + com.google.privacy.dlp.v2.Error.ErrorExtraInfo getExtraInfo(); } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileClusterSummary.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileClusterSummary.java new file mode 100644 index 000000000000..200ad32ff2d1 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileClusterSummary.java @@ -0,0 +1,3492 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * The file cluster summary.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.FileClusterSummary} + */ +public final class FileClusterSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.FileClusterSummary) + FileClusterSummaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileClusterSummary.newBuilder() to construct. + private FileClusterSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FileClusterSummary() { + fileStoreInfoTypeSummaries_ = java.util.Collections.emptyList(); + errors_ = java.util.Collections.emptyList(); + fileExtensionsScanned_ = java.util.Collections.emptyList(); + fileExtensionsSeen_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FileClusterSummary(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileClusterSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileClusterSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FileClusterSummary.class, + com.google.privacy.dlp.v2.FileClusterSummary.Builder.class); + } + + private int bitField0_; + public static final int FILE_CLUSTER_TYPE_FIELD_NUMBER = 1; + private com.google.privacy.dlp.v2.FileClusterType fileClusterType_; + /** + * + * + *
        +   * The file cluster type.
        +   * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + * + * @return Whether the fileClusterType field is set. + */ + @java.lang.Override + public boolean hasFileClusterType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * The file cluster type.
        +   * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + * + * @return The fileClusterType. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileClusterType getFileClusterType() { + return fileClusterType_ == null + ? com.google.privacy.dlp.v2.FileClusterType.getDefaultInstance() + : fileClusterType_; + } + /** + * + * + *
        +   * The file cluster type.
        +   * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileClusterTypeOrBuilder getFileClusterTypeOrBuilder() { + return fileClusterType_ == null + ? com.google.privacy.dlp.v2.FileClusterType.getDefaultInstance() + : fileClusterType_; + } + + public static final int FILE_STORE_INFO_TYPE_SUMMARIES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + fileStoreInfoTypeSummaries_; + /** + * + * + *
        +   * InfoTypes detected in this cluster.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + @java.lang.Override + public java.util.List + getFileStoreInfoTypeSummariesList() { + return fileStoreInfoTypeSummaries_; + } + /** + * + * + *
        +   * InfoTypes detected in this cluster.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + @java.lang.Override + public java.util.List + getFileStoreInfoTypeSummariesOrBuilderList() { + return fileStoreInfoTypeSummaries_; + } + /** + * + * + *
        +   * InfoTypes detected in this cluster.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + @java.lang.Override + public int getFileStoreInfoTypeSummariesCount() { + return fileStoreInfoTypeSummaries_.size(); + } + /** + * + * + *
        +   * InfoTypes detected in this cluster.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummary getFileStoreInfoTypeSummaries( + int index) { + return fileStoreInfoTypeSummaries_.get(index); + } + /** + * + * + *
        +   * InfoTypes detected in this cluster.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummaryOrBuilder + getFileStoreInfoTypeSummariesOrBuilder(int index) { + return fileStoreInfoTypeSummaries_.get(index); + } + + public static final int SENSITIVITY_SCORE_FIELD_NUMBER = 3; + private com.google.privacy.dlp.v2.SensitivityScore sensitivityScore_; + /** + * + * + *
        +   * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +   * if nothing has been scanned.
        +   * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + * + * @return Whether the sensitivityScore field is set. + */ + @java.lang.Override + public boolean hasSensitivityScore() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +   * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +   * if nothing has been scanned.
        +   * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + * + * @return The sensitivityScore. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore() { + return sensitivityScore_ == null + ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance() + : sensitivityScore_; + } + /** + * + * + *
        +   * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +   * if nothing has been scanned.
        +   * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder() { + return sensitivityScore_ == null + ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance() + : sensitivityScore_; + } + + public static final int DATA_RISK_LEVEL_FIELD_NUMBER = 4; + private com.google.privacy.dlp.v2.DataRiskLevel dataRiskLevel_; + /** + * + * + *
        +   * The data risk level of this cluster. RISK_LOW if nothing has been
        +   * scanned.
        +   * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + * + * @return Whether the dataRiskLevel field is set. + */ + @java.lang.Override + public boolean hasDataRiskLevel() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
        +   * The data risk level of this cluster. RISK_LOW if nothing has been
        +   * scanned.
        +   * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + * + * @return The dataRiskLevel. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataRiskLevel getDataRiskLevel() { + return dataRiskLevel_ == null + ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance() + : dataRiskLevel_; + } + /** + * + * + *
        +   * The data risk level of this cluster. RISK_LOW if nothing has been
        +   * scanned.
        +   * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataRiskLevelOrBuilder getDataRiskLevelOrBuilder() { + return dataRiskLevel_ == null + ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance() + : dataRiskLevel_; + } + + public static final int ERRORS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List errors_; + /** + * + * + *
        +   * A list of errors detected while scanning this cluster. The list is
        +   * truncated to 10 per cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + /** + * + * + *
        +   * A list of errors detected while scanning this cluster. The list is
        +   * truncated to 10 per cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + @java.lang.Override + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + /** + * + * + *
        +   * A list of errors detected while scanning this cluster. The list is
        +   * truncated to 10 per cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + /** + * + * + *
        +   * A list of errors detected while scanning this cluster. The list is
        +   * truncated to 10 per cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.Error getErrors(int index) { + return errors_.get(index); + } + /** + * + * + *
        +   * A list of errors detected while scanning this cluster. The list is
        +   * truncated to 10 per cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ErrorOrBuilder getErrorsOrBuilder(int index) { + return errors_.get(index); + } + + public static final int FILE_EXTENSIONS_SCANNED_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List fileExtensionsScanned_; + /** + * + * + *
        +   * A sample of file types scanned in this cluster. Empty if no files were
        +   * scanned.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + @java.lang.Override + public java.util.List + getFileExtensionsScannedList() { + return fileExtensionsScanned_; + } + /** + * + * + *
        +   * A sample of file types scanned in this cluster. Empty if no files were
        +   * scanned.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + @java.lang.Override + public java.util.List + getFileExtensionsScannedOrBuilderList() { + return fileExtensionsScanned_; + } + /** + * + * + *
        +   * A sample of file types scanned in this cluster. Empty if no files were
        +   * scanned.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + @java.lang.Override + public int getFileExtensionsScannedCount() { + return fileExtensionsScanned_.size(); + } + /** + * + * + *
        +   * A sample of file types scanned in this cluster. Empty if no files were
        +   * scanned.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileExtensionInfo getFileExtensionsScanned(int index) { + return fileExtensionsScanned_.get(index); + } + /** + * + * + *
        +   * A sample of file types scanned in this cluster. Empty if no files were
        +   * scanned.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileExtensionInfoOrBuilder getFileExtensionsScannedOrBuilder( + int index) { + return fileExtensionsScanned_.get(index); + } + + public static final int FILE_EXTENSIONS_SEEN_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List fileExtensionsSeen_; + /** + * + * + *
        +   * A sample of file types seen in this cluster. Empty if no files were seen.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + @java.lang.Override + public java.util.List getFileExtensionsSeenList() { + return fileExtensionsSeen_; + } + /** + * + * + *
        +   * A sample of file types seen in this cluster. Empty if no files were seen.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + @java.lang.Override + public java.util.List + getFileExtensionsSeenOrBuilderList() { + return fileExtensionsSeen_; + } + /** + * + * + *
        +   * A sample of file types seen in this cluster. Empty if no files were seen.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + @java.lang.Override + public int getFileExtensionsSeenCount() { + return fileExtensionsSeen_.size(); + } + /** + * + * + *
        +   * A sample of file types seen in this cluster. Empty if no files were seen.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileExtensionInfo getFileExtensionsSeen(int index) { + return fileExtensionsSeen_.get(index); + } + /** + * + * + *
        +   * A sample of file types seen in this cluster. Empty if no files were seen.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileExtensionInfoOrBuilder getFileExtensionsSeenOrBuilder( + int index) { + return fileExtensionsSeen_.get(index); + } + + public static final int NO_FILES_EXIST_FIELD_NUMBER = 9; + private boolean noFilesExist_ = false; + /** + * + * + *
        +   * True if no files exist in this cluster. If the bucket had more files than
        +   * could be listed, this will be false even if no files for this cluster
        +   * were seen and file_extensions_seen is empty.
        +   * 
        + * + * bool no_files_exist = 9; + * + * @return The noFilesExist. + */ + @java.lang.Override + public boolean getNoFilesExist() { + return noFilesExist_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getFileClusterType()); + } + for (int i = 0; i < fileStoreInfoTypeSummaries_.size(); i++) { + output.writeMessage(2, fileStoreInfoTypeSummaries_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getSensitivityScore()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getDataRiskLevel()); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(6, errors_.get(i)); + } + for (int i = 0; i < fileExtensionsScanned_.size(); i++) { + output.writeMessage(7, fileExtensionsScanned_.get(i)); + } + for (int i = 0; i < fileExtensionsSeen_.size(); i++) { + output.writeMessage(8, fileExtensionsSeen_.get(i)); + } + if (noFilesExist_ != false) { + output.writeBool(9, noFilesExist_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFileClusterType()); + } + for (int i = 0; i < fileStoreInfoTypeSummaries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, fileStoreInfoTypeSummaries_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSensitivityScore()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDataRiskLevel()); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, errors_.get(i)); + } + for (int i = 0; i < fileExtensionsScanned_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, fileExtensionsScanned_.get(i)); + } + for (int i = 0; i < fileExtensionsSeen_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, fileExtensionsSeen_.get(i)); + } + if (noFilesExist_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, noFilesExist_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.FileClusterSummary)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.FileClusterSummary other = + (com.google.privacy.dlp.v2.FileClusterSummary) obj; + + if (hasFileClusterType() != other.hasFileClusterType()) return false; + if (hasFileClusterType()) { + if (!getFileClusterType().equals(other.getFileClusterType())) return false; + } + if (!getFileStoreInfoTypeSummariesList().equals(other.getFileStoreInfoTypeSummariesList())) + return false; + if (hasSensitivityScore() != other.hasSensitivityScore()) return false; + if (hasSensitivityScore()) { + if (!getSensitivityScore().equals(other.getSensitivityScore())) return false; + } + if (hasDataRiskLevel() != other.hasDataRiskLevel()) return false; + if (hasDataRiskLevel()) { + if (!getDataRiskLevel().equals(other.getDataRiskLevel())) return false; + } + if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getFileExtensionsScannedList().equals(other.getFileExtensionsScannedList())) return false; + if (!getFileExtensionsSeenList().equals(other.getFileExtensionsSeenList())) return false; + if (getNoFilesExist() != other.getNoFilesExist()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFileClusterType()) { + hash = (37 * hash) + FILE_CLUSTER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getFileClusterType().hashCode(); + } + if (getFileStoreInfoTypeSummariesCount() > 0) { + hash = (37 * hash) + FILE_STORE_INFO_TYPE_SUMMARIES_FIELD_NUMBER; + hash = (53 * hash) + getFileStoreInfoTypeSummariesList().hashCode(); + } + if (hasSensitivityScore()) { + hash = (37 * hash) + SENSITIVITY_SCORE_FIELD_NUMBER; + hash = (53 * hash) + getSensitivityScore().hashCode(); + } + if (hasDataRiskLevel()) { + hash = (37 * hash) + DATA_RISK_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getDataRiskLevel().hashCode(); + } + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + if (getFileExtensionsScannedCount() > 0) { + hash = (37 * hash) + FILE_EXTENSIONS_SCANNED_FIELD_NUMBER; + hash = (53 * hash) + getFileExtensionsScannedList().hashCode(); + } + if (getFileExtensionsSeenCount() > 0) { + hash = (37 * hash) + FILE_EXTENSIONS_SEEN_FIELD_NUMBER; + hash = (53 * hash) + getFileExtensionsSeenList().hashCode(); + } + hash = (37 * hash) + NO_FILES_EXIST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoFilesExist()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.FileClusterSummary parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileClusterSummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileClusterSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileClusterSummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileClusterSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileClusterSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileClusterSummary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileClusterSummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileClusterSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileClusterSummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileClusterSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileClusterSummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.privacy.dlp.v2.FileClusterSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * The file cluster summary.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.FileClusterSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.FileClusterSummary) + com.google.privacy.dlp.v2.FileClusterSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileClusterSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileClusterSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FileClusterSummary.class, + com.google.privacy.dlp.v2.FileClusterSummary.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.FileClusterSummary.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFileClusterTypeFieldBuilder(); + getFileStoreInfoTypeSummariesFieldBuilder(); + getSensitivityScoreFieldBuilder(); + getDataRiskLevelFieldBuilder(); + getErrorsFieldBuilder(); + getFileExtensionsScannedFieldBuilder(); + getFileExtensionsSeenFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fileClusterType_ = null; + if (fileClusterTypeBuilder_ != null) { + fileClusterTypeBuilder_.dispose(); + fileClusterTypeBuilder_ = null; + } + if (fileStoreInfoTypeSummariesBuilder_ == null) { + fileStoreInfoTypeSummaries_ = java.util.Collections.emptyList(); + } else { + fileStoreInfoTypeSummaries_ = null; + fileStoreInfoTypeSummariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + sensitivityScore_ = null; + if (sensitivityScoreBuilder_ != null) { + sensitivityScoreBuilder_.dispose(); + sensitivityScoreBuilder_ = null; + } + dataRiskLevel_ = null; + if (dataRiskLevelBuilder_ != null) { + dataRiskLevelBuilder_.dispose(); + dataRiskLevelBuilder_ = null; + } + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (fileExtensionsScannedBuilder_ == null) { + fileExtensionsScanned_ = java.util.Collections.emptyList(); + } else { + fileExtensionsScanned_ = null; + fileExtensionsScannedBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (fileExtensionsSeenBuilder_ == null) { + fileExtensionsSeen_ = java.util.Collections.emptyList(); + } else { + fileExtensionsSeen_ = null; + fileExtensionsSeenBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + noFilesExist_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileClusterSummary_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileClusterSummary getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.FileClusterSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileClusterSummary build() { + com.google.privacy.dlp.v2.FileClusterSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileClusterSummary buildPartial() { + com.google.privacy.dlp.v2.FileClusterSummary result = + new com.google.privacy.dlp.v2.FileClusterSummary(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.privacy.dlp.v2.FileClusterSummary result) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + fileStoreInfoTypeSummaries_ = + java.util.Collections.unmodifiableList(fileStoreInfoTypeSummaries_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.fileStoreInfoTypeSummaries_ = fileStoreInfoTypeSummaries_; + } else { + result.fileStoreInfoTypeSummaries_ = fileStoreInfoTypeSummariesBuilder_.build(); + } + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + if (fileExtensionsScannedBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + fileExtensionsScanned_ = java.util.Collections.unmodifiableList(fileExtensionsScanned_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.fileExtensionsScanned_ = fileExtensionsScanned_; + } else { + result.fileExtensionsScanned_ = fileExtensionsScannedBuilder_.build(); + } + if (fileExtensionsSeenBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + fileExtensionsSeen_ = java.util.Collections.unmodifiableList(fileExtensionsSeen_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.fileExtensionsSeen_ = fileExtensionsSeen_; + } else { + result.fileExtensionsSeen_ = fileExtensionsSeenBuilder_.build(); + } + } + + private void buildPartial0(com.google.privacy.dlp.v2.FileClusterSummary result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fileClusterType_ = + fileClusterTypeBuilder_ == null ? fileClusterType_ : fileClusterTypeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sensitivityScore_ = + sensitivityScoreBuilder_ == null ? sensitivityScore_ : sensitivityScoreBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dataRiskLevel_ = + dataRiskLevelBuilder_ == null ? dataRiskLevel_ : dataRiskLevelBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.noFilesExist_ = noFilesExist_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.FileClusterSummary) { + return mergeFrom((com.google.privacy.dlp.v2.FileClusterSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.FileClusterSummary other) { + if (other == com.google.privacy.dlp.v2.FileClusterSummary.getDefaultInstance()) return this; + if (other.hasFileClusterType()) { + mergeFileClusterType(other.getFileClusterType()); + } + if (fileStoreInfoTypeSummariesBuilder_ == null) { + if (!other.fileStoreInfoTypeSummaries_.isEmpty()) { + if (fileStoreInfoTypeSummaries_.isEmpty()) { + fileStoreInfoTypeSummaries_ = other.fileStoreInfoTypeSummaries_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.addAll(other.fileStoreInfoTypeSummaries_); + } + onChanged(); + } + } else { + if (!other.fileStoreInfoTypeSummaries_.isEmpty()) { + if (fileStoreInfoTypeSummariesBuilder_.isEmpty()) { + fileStoreInfoTypeSummariesBuilder_.dispose(); + fileStoreInfoTypeSummariesBuilder_ = null; + fileStoreInfoTypeSummaries_ = other.fileStoreInfoTypeSummaries_; + bitField0_ = (bitField0_ & ~0x00000002); + fileStoreInfoTypeSummariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFileStoreInfoTypeSummariesFieldBuilder() + : null; + } else { + fileStoreInfoTypeSummariesBuilder_.addAllMessages(other.fileStoreInfoTypeSummaries_); + } + } + } + if (other.hasSensitivityScore()) { + mergeSensitivityScore(other.getSensitivityScore()); + } + if (other.hasDataRiskLevel()) { + mergeDataRiskLevel(other.getDataRiskLevel()); + } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000010); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + if (fileExtensionsScannedBuilder_ == null) { + if (!other.fileExtensionsScanned_.isEmpty()) { + if (fileExtensionsScanned_.isEmpty()) { + fileExtensionsScanned_ = other.fileExtensionsScanned_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureFileExtensionsScannedIsMutable(); + fileExtensionsScanned_.addAll(other.fileExtensionsScanned_); + } + onChanged(); + } + } else { + if (!other.fileExtensionsScanned_.isEmpty()) { + if (fileExtensionsScannedBuilder_.isEmpty()) { + fileExtensionsScannedBuilder_.dispose(); + fileExtensionsScannedBuilder_ = null; + fileExtensionsScanned_ = other.fileExtensionsScanned_; + bitField0_ = (bitField0_ & ~0x00000020); + fileExtensionsScannedBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFileExtensionsScannedFieldBuilder() + : null; + } else { + fileExtensionsScannedBuilder_.addAllMessages(other.fileExtensionsScanned_); + } + } + } + if (fileExtensionsSeenBuilder_ == null) { + if (!other.fileExtensionsSeen_.isEmpty()) { + if (fileExtensionsSeen_.isEmpty()) { + fileExtensionsSeen_ = other.fileExtensionsSeen_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureFileExtensionsSeenIsMutable(); + fileExtensionsSeen_.addAll(other.fileExtensionsSeen_); + } + onChanged(); + } + } else { + if (!other.fileExtensionsSeen_.isEmpty()) { + if (fileExtensionsSeenBuilder_.isEmpty()) { + fileExtensionsSeenBuilder_.dispose(); + fileExtensionsSeenBuilder_ = null; + fileExtensionsSeen_ = other.fileExtensionsSeen_; + bitField0_ = (bitField0_ & ~0x00000040); + fileExtensionsSeenBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFileExtensionsSeenFieldBuilder() + : null; + } else { + fileExtensionsSeenBuilder_.addAllMessages(other.fileExtensionsSeen_); + } + } + } + if (other.getNoFilesExist() != false) { + setNoFilesExist(other.getNoFilesExist()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getFileClusterTypeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary m = + input.readMessage( + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.parser(), + extensionRegistry); + if (fileStoreInfoTypeSummariesBuilder_ == null) { + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.add(m); + } else { + fileStoreInfoTypeSummariesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage( + getSensitivityScoreFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getDataRiskLevelFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + com.google.privacy.dlp.v2.Error m = + input.readMessage(com.google.privacy.dlp.v2.Error.parser(), extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + com.google.privacy.dlp.v2.FileExtensionInfo m = + input.readMessage( + com.google.privacy.dlp.v2.FileExtensionInfo.parser(), extensionRegistry); + if (fileExtensionsScannedBuilder_ == null) { + ensureFileExtensionsScannedIsMutable(); + fileExtensionsScanned_.add(m); + } else { + fileExtensionsScannedBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + com.google.privacy.dlp.v2.FileExtensionInfo m = + input.readMessage( + com.google.privacy.dlp.v2.FileExtensionInfo.parser(), extensionRegistry); + if (fileExtensionsSeenBuilder_ == null) { + ensureFileExtensionsSeenIsMutable(); + fileExtensionsSeen_.add(m); + } else { + fileExtensionsSeenBuilder_.addMessage(m); + } + break; + } // case 66 + case 72: + { + noFilesExist_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.privacy.dlp.v2.FileClusterType fileClusterType_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileClusterType, + com.google.privacy.dlp.v2.FileClusterType.Builder, + com.google.privacy.dlp.v2.FileClusterTypeOrBuilder> + fileClusterTypeBuilder_; + /** + * + * + *
        +     * The file cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + * + * @return Whether the fileClusterType field is set. + */ + public boolean hasFileClusterType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * The file cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + * + * @return The fileClusterType. + */ + public com.google.privacy.dlp.v2.FileClusterType getFileClusterType() { + if (fileClusterTypeBuilder_ == null) { + return fileClusterType_ == null + ? com.google.privacy.dlp.v2.FileClusterType.getDefaultInstance() + : fileClusterType_; + } else { + return fileClusterTypeBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The file cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + */ + public Builder setFileClusterType(com.google.privacy.dlp.v2.FileClusterType value) { + if (fileClusterTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fileClusterType_ = value; + } else { + fileClusterTypeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The file cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + */ + public Builder setFileClusterType( + com.google.privacy.dlp.v2.FileClusterType.Builder builderForValue) { + if (fileClusterTypeBuilder_ == null) { + fileClusterType_ = builderForValue.build(); + } else { + fileClusterTypeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The file cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + */ + public Builder mergeFileClusterType(com.google.privacy.dlp.v2.FileClusterType value) { + if (fileClusterTypeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && fileClusterType_ != null + && fileClusterType_ != com.google.privacy.dlp.v2.FileClusterType.getDefaultInstance()) { + getFileClusterTypeBuilder().mergeFrom(value); + } else { + fileClusterType_ = value; + } + } else { + fileClusterTypeBuilder_.mergeFrom(value); + } + if (fileClusterType_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The file cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + */ + public Builder clearFileClusterType() { + bitField0_ = (bitField0_ & ~0x00000001); + fileClusterType_ = null; + if (fileClusterTypeBuilder_ != null) { + fileClusterTypeBuilder_.dispose(); + fileClusterTypeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The file cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + */ + public com.google.privacy.dlp.v2.FileClusterType.Builder getFileClusterTypeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFileClusterTypeFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The file cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + */ + public com.google.privacy.dlp.v2.FileClusterTypeOrBuilder getFileClusterTypeOrBuilder() { + if (fileClusterTypeBuilder_ != null) { + return fileClusterTypeBuilder_.getMessageOrBuilder(); + } else { + return fileClusterType_ == null + ? com.google.privacy.dlp.v2.FileClusterType.getDefaultInstance() + : fileClusterType_; + } + } + /** + * + * + *
        +     * The file cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileClusterType, + com.google.privacy.dlp.v2.FileClusterType.Builder, + com.google.privacy.dlp.v2.FileClusterTypeOrBuilder> + getFileClusterTypeFieldBuilder() { + if (fileClusterTypeBuilder_ == null) { + fileClusterTypeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileClusterType, + com.google.privacy.dlp.v2.FileClusterType.Builder, + com.google.privacy.dlp.v2.FileClusterTypeOrBuilder>( + getFileClusterType(), getParentForChildren(), isClean()); + fileClusterType_ = null; + } + return fileClusterTypeBuilder_; + } + + private java.util.List + fileStoreInfoTypeSummaries_ = java.util.Collections.emptyList(); + + private void ensureFileStoreInfoTypeSummariesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + fileStoreInfoTypeSummaries_ = + new java.util.ArrayList( + fileStoreInfoTypeSummaries_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary, + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder, + com.google.privacy.dlp.v2.FileStoreInfoTypeSummaryOrBuilder> + fileStoreInfoTypeSummariesBuilder_; + + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public java.util.List + getFileStoreInfoTypeSummariesList() { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + return java.util.Collections.unmodifiableList(fileStoreInfoTypeSummaries_); + } else { + return fileStoreInfoTypeSummariesBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public int getFileStoreInfoTypeSummariesCount() { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + return fileStoreInfoTypeSummaries_.size(); + } else { + return fileStoreInfoTypeSummariesBuilder_.getCount(); + } + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummary getFileStoreInfoTypeSummaries( + int index) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + return fileStoreInfoTypeSummaries_.get(index); + } else { + return fileStoreInfoTypeSummariesBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public Builder setFileStoreInfoTypeSummaries( + int index, com.google.privacy.dlp.v2.FileStoreInfoTypeSummary value) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.set(index, value); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public Builder setFileStoreInfoTypeSummaries( + int index, com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder builderForValue) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.set(index, builderForValue.build()); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public Builder addFileStoreInfoTypeSummaries( + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary value) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.add(value); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public Builder addFileStoreInfoTypeSummaries( + int index, com.google.privacy.dlp.v2.FileStoreInfoTypeSummary value) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.add(index, value); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public Builder addFileStoreInfoTypeSummaries( + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder builderForValue) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.add(builderForValue.build()); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public Builder addFileStoreInfoTypeSummaries( + int index, com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder builderForValue) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.add(index, builderForValue.build()); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public Builder addAllFileStoreInfoTypeSummaries( + java.lang.Iterable values) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + ensureFileStoreInfoTypeSummariesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileStoreInfoTypeSummaries_); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public Builder clearFileStoreInfoTypeSummaries() { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + fileStoreInfoTypeSummaries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public Builder removeFileStoreInfoTypeSummaries(int index) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.remove(index); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder + getFileStoreInfoTypeSummariesBuilder(int index) { + return getFileStoreInfoTypeSummariesFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummaryOrBuilder + getFileStoreInfoTypeSummariesOrBuilder(int index) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + return fileStoreInfoTypeSummaries_.get(index); + } else { + return fileStoreInfoTypeSummariesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public java.util.List + getFileStoreInfoTypeSummariesOrBuilderList() { + if (fileStoreInfoTypeSummariesBuilder_ != null) { + return fileStoreInfoTypeSummariesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fileStoreInfoTypeSummaries_); + } + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder + addFileStoreInfoTypeSummariesBuilder() { + return getFileStoreInfoTypeSummariesFieldBuilder() + .addBuilder(com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.getDefaultInstance()); + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder + addFileStoreInfoTypeSummariesBuilder(int index) { + return getFileStoreInfoTypeSummariesFieldBuilder() + .addBuilder( + index, com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.getDefaultInstance()); + } + /** + * + * + *
        +     * InfoTypes detected in this cluster.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + public java.util.List + getFileStoreInfoTypeSummariesBuilderList() { + return getFileStoreInfoTypeSummariesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary, + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder, + com.google.privacy.dlp.v2.FileStoreInfoTypeSummaryOrBuilder> + getFileStoreInfoTypeSummariesFieldBuilder() { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + fileStoreInfoTypeSummariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary, + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder, + com.google.privacy.dlp.v2.FileStoreInfoTypeSummaryOrBuilder>( + fileStoreInfoTypeSummaries_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + fileStoreInfoTypeSummaries_ = null; + } + return fileStoreInfoTypeSummariesBuilder_; + } + + private com.google.privacy.dlp.v2.SensitivityScore sensitivityScore_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.SensitivityScore, + com.google.privacy.dlp.v2.SensitivityScore.Builder, + com.google.privacy.dlp.v2.SensitivityScoreOrBuilder> + sensitivityScoreBuilder_; + /** + * + * + *
        +     * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +     * if nothing has been scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + * + * @return Whether the sensitivityScore field is set. + */ + public boolean hasSensitivityScore() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
        +     * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +     * if nothing has been scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + * + * @return The sensitivityScore. + */ + public com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore() { + if (sensitivityScoreBuilder_ == null) { + return sensitivityScore_ == null + ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance() + : sensitivityScore_; + } else { + return sensitivityScoreBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +     * if nothing has been scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + */ + public Builder setSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore value) { + if (sensitivityScoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sensitivityScore_ = value; + } else { + sensitivityScoreBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +     * if nothing has been scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + */ + public Builder setSensitivityScore( + com.google.privacy.dlp.v2.SensitivityScore.Builder builderForValue) { + if (sensitivityScoreBuilder_ == null) { + sensitivityScore_ = builderForValue.build(); + } else { + sensitivityScoreBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +     * if nothing has been scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + */ + public Builder mergeSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore value) { + if (sensitivityScoreBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && sensitivityScore_ != null + && sensitivityScore_ + != com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance()) { + getSensitivityScoreBuilder().mergeFrom(value); + } else { + sensitivityScore_ = value; + } + } else { + sensitivityScoreBuilder_.mergeFrom(value); + } + if (sensitivityScore_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +     * if nothing has been scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + */ + public Builder clearSensitivityScore() { + bitField0_ = (bitField0_ & ~0x00000004); + sensitivityScore_ = null; + if (sensitivityScoreBuilder_ != null) { + sensitivityScoreBuilder_.dispose(); + sensitivityScoreBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +     * if nothing has been scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + */ + public com.google.privacy.dlp.v2.SensitivityScore.Builder getSensitivityScoreBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSensitivityScoreFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +     * if nothing has been scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + */ + public com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder() { + if (sensitivityScoreBuilder_ != null) { + return sensitivityScoreBuilder_.getMessageOrBuilder(); + } else { + return sensitivityScore_ == null + ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance() + : sensitivityScore_; + } + } + /** + * + * + *
        +     * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +     * if nothing has been scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.SensitivityScore, + com.google.privacy.dlp.v2.SensitivityScore.Builder, + com.google.privacy.dlp.v2.SensitivityScoreOrBuilder> + getSensitivityScoreFieldBuilder() { + if (sensitivityScoreBuilder_ == null) { + sensitivityScoreBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.SensitivityScore, + com.google.privacy.dlp.v2.SensitivityScore.Builder, + com.google.privacy.dlp.v2.SensitivityScoreOrBuilder>( + getSensitivityScore(), getParentForChildren(), isClean()); + sensitivityScore_ = null; + } + return sensitivityScoreBuilder_; + } + + private com.google.privacy.dlp.v2.DataRiskLevel dataRiskLevel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataRiskLevel, + com.google.privacy.dlp.v2.DataRiskLevel.Builder, + com.google.privacy.dlp.v2.DataRiskLevelOrBuilder> + dataRiskLevelBuilder_; + /** + * + * + *
        +     * The data risk level of this cluster. RISK_LOW if nothing has been
        +     * scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + * + * @return Whether the dataRiskLevel field is set. + */ + public boolean hasDataRiskLevel() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
        +     * The data risk level of this cluster. RISK_LOW if nothing has been
        +     * scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + * + * @return The dataRiskLevel. + */ + public com.google.privacy.dlp.v2.DataRiskLevel getDataRiskLevel() { + if (dataRiskLevelBuilder_ == null) { + return dataRiskLevel_ == null + ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance() + : dataRiskLevel_; + } else { + return dataRiskLevelBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The data risk level of this cluster. RISK_LOW if nothing has been
        +     * scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + */ + public Builder setDataRiskLevel(com.google.privacy.dlp.v2.DataRiskLevel value) { + if (dataRiskLevelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataRiskLevel_ = value; + } else { + dataRiskLevelBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +     * The data risk level of this cluster. RISK_LOW if nothing has been
        +     * scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + */ + public Builder setDataRiskLevel( + com.google.privacy.dlp.v2.DataRiskLevel.Builder builderForValue) { + if (dataRiskLevelBuilder_ == null) { + dataRiskLevel_ = builderForValue.build(); + } else { + dataRiskLevelBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +     * The data risk level of this cluster. RISK_LOW if nothing has been
        +     * scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + */ + public Builder mergeDataRiskLevel(com.google.privacy.dlp.v2.DataRiskLevel value) { + if (dataRiskLevelBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && dataRiskLevel_ != null + && dataRiskLevel_ != com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance()) { + getDataRiskLevelBuilder().mergeFrom(value); + } else { + dataRiskLevel_ = value; + } + } else { + dataRiskLevelBuilder_.mergeFrom(value); + } + if (dataRiskLevel_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The data risk level of this cluster. RISK_LOW if nothing has been
        +     * scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + */ + public Builder clearDataRiskLevel() { + bitField0_ = (bitField0_ & ~0x00000008); + dataRiskLevel_ = null; + if (dataRiskLevelBuilder_ != null) { + dataRiskLevelBuilder_.dispose(); + dataRiskLevelBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The data risk level of this cluster. RISK_LOW if nothing has been
        +     * scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + */ + public com.google.privacy.dlp.v2.DataRiskLevel.Builder getDataRiskLevelBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDataRiskLevelFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The data risk level of this cluster. RISK_LOW if nothing has been
        +     * scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + */ + public com.google.privacy.dlp.v2.DataRiskLevelOrBuilder getDataRiskLevelOrBuilder() { + if (dataRiskLevelBuilder_ != null) { + return dataRiskLevelBuilder_.getMessageOrBuilder(); + } else { + return dataRiskLevel_ == null + ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance() + : dataRiskLevel_; + } + } + /** + * + * + *
        +     * The data risk level of this cluster. RISK_LOW if nothing has been
        +     * scanned.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataRiskLevel, + com.google.privacy.dlp.v2.DataRiskLevel.Builder, + com.google.privacy.dlp.v2.DataRiskLevelOrBuilder> + getDataRiskLevelFieldBuilder() { + if (dataRiskLevelBuilder_ == null) { + dataRiskLevelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataRiskLevel, + com.google.privacy.dlp.v2.DataRiskLevel.Builder, + com.google.privacy.dlp.v2.DataRiskLevelOrBuilder>( + getDataRiskLevel(), getParentForChildren(), isClean()); + dataRiskLevel_ = null; + } + return dataRiskLevelBuilder_; + } + + private java.util.List errors_ = + java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + errors_ = new java.util.ArrayList(errors_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.Error, + com.google.privacy.dlp.v2.Error.Builder, + com.google.privacy.dlp.v2.ErrorOrBuilder> + errorsBuilder_; + + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public com.google.privacy.dlp.v2.Error getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public Builder setErrors(int index, com.google.privacy.dlp.v2.Error value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public Builder setErrors(int index, com.google.privacy.dlp.v2.Error.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public Builder addErrors(com.google.privacy.dlp.v2.Error value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public Builder addErrors(int index, com.google.privacy.dlp.v2.Error value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public Builder addErrors(com.google.privacy.dlp.v2.Error.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public Builder addErrors(int index, com.google.privacy.dlp.v2.Error.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public Builder addAllErrors( + java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public com.google.privacy.dlp.v2.Error.Builder getErrorsBuilder(int index) { + return getErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public com.google.privacy.dlp.v2.ErrorOrBuilder getErrorsOrBuilder(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public com.google.privacy.dlp.v2.Error.Builder addErrorsBuilder() { + return getErrorsFieldBuilder() + .addBuilder(com.google.privacy.dlp.v2.Error.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public com.google.privacy.dlp.v2.Error.Builder addErrorsBuilder(int index) { + return getErrorsFieldBuilder() + .addBuilder(index, com.google.privacy.dlp.v2.Error.getDefaultInstance()); + } + /** + * + * + *
        +     * A list of errors detected while scanning this cluster. The list is
        +     * truncated to 10 per cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + public java.util.List getErrorsBuilderList() { + return getErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.Error, + com.google.privacy.dlp.v2.Error.Builder, + com.google.privacy.dlp.v2.ErrorOrBuilder> + getErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.Error, + com.google.privacy.dlp.v2.Error.Builder, + com.google.privacy.dlp.v2.ErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + private java.util.List fileExtensionsScanned_ = + java.util.Collections.emptyList(); + + private void ensureFileExtensionsScannedIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + fileExtensionsScanned_ = + new java.util.ArrayList( + fileExtensionsScanned_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileExtensionInfo, + com.google.privacy.dlp.v2.FileExtensionInfo.Builder, + com.google.privacy.dlp.v2.FileExtensionInfoOrBuilder> + fileExtensionsScannedBuilder_; + + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public java.util.List + getFileExtensionsScannedList() { + if (fileExtensionsScannedBuilder_ == null) { + return java.util.Collections.unmodifiableList(fileExtensionsScanned_); + } else { + return fileExtensionsScannedBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public int getFileExtensionsScannedCount() { + if (fileExtensionsScannedBuilder_ == null) { + return fileExtensionsScanned_.size(); + } else { + return fileExtensionsScannedBuilder_.getCount(); + } + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public com.google.privacy.dlp.v2.FileExtensionInfo getFileExtensionsScanned(int index) { + if (fileExtensionsScannedBuilder_ == null) { + return fileExtensionsScanned_.get(index); + } else { + return fileExtensionsScannedBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public Builder setFileExtensionsScanned( + int index, com.google.privacy.dlp.v2.FileExtensionInfo value) { + if (fileExtensionsScannedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileExtensionsScannedIsMutable(); + fileExtensionsScanned_.set(index, value); + onChanged(); + } else { + fileExtensionsScannedBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public Builder setFileExtensionsScanned( + int index, com.google.privacy.dlp.v2.FileExtensionInfo.Builder builderForValue) { + if (fileExtensionsScannedBuilder_ == null) { + ensureFileExtensionsScannedIsMutable(); + fileExtensionsScanned_.set(index, builderForValue.build()); + onChanged(); + } else { + fileExtensionsScannedBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public Builder addFileExtensionsScanned(com.google.privacy.dlp.v2.FileExtensionInfo value) { + if (fileExtensionsScannedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileExtensionsScannedIsMutable(); + fileExtensionsScanned_.add(value); + onChanged(); + } else { + fileExtensionsScannedBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public Builder addFileExtensionsScanned( + int index, com.google.privacy.dlp.v2.FileExtensionInfo value) { + if (fileExtensionsScannedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileExtensionsScannedIsMutable(); + fileExtensionsScanned_.add(index, value); + onChanged(); + } else { + fileExtensionsScannedBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public Builder addFileExtensionsScanned( + com.google.privacy.dlp.v2.FileExtensionInfo.Builder builderForValue) { + if (fileExtensionsScannedBuilder_ == null) { + ensureFileExtensionsScannedIsMutable(); + fileExtensionsScanned_.add(builderForValue.build()); + onChanged(); + } else { + fileExtensionsScannedBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public Builder addFileExtensionsScanned( + int index, com.google.privacy.dlp.v2.FileExtensionInfo.Builder builderForValue) { + if (fileExtensionsScannedBuilder_ == null) { + ensureFileExtensionsScannedIsMutable(); + fileExtensionsScanned_.add(index, builderForValue.build()); + onChanged(); + } else { + fileExtensionsScannedBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public Builder addAllFileExtensionsScanned( + java.lang.Iterable values) { + if (fileExtensionsScannedBuilder_ == null) { + ensureFileExtensionsScannedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileExtensionsScanned_); + onChanged(); + } else { + fileExtensionsScannedBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public Builder clearFileExtensionsScanned() { + if (fileExtensionsScannedBuilder_ == null) { + fileExtensionsScanned_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + fileExtensionsScannedBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public Builder removeFileExtensionsScanned(int index) { + if (fileExtensionsScannedBuilder_ == null) { + ensureFileExtensionsScannedIsMutable(); + fileExtensionsScanned_.remove(index); + onChanged(); + } else { + fileExtensionsScannedBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public com.google.privacy.dlp.v2.FileExtensionInfo.Builder getFileExtensionsScannedBuilder( + int index) { + return getFileExtensionsScannedFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public com.google.privacy.dlp.v2.FileExtensionInfoOrBuilder getFileExtensionsScannedOrBuilder( + int index) { + if (fileExtensionsScannedBuilder_ == null) { + return fileExtensionsScanned_.get(index); + } else { + return fileExtensionsScannedBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public java.util.List + getFileExtensionsScannedOrBuilderList() { + if (fileExtensionsScannedBuilder_ != null) { + return fileExtensionsScannedBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fileExtensionsScanned_); + } + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public com.google.privacy.dlp.v2.FileExtensionInfo.Builder addFileExtensionsScannedBuilder() { + return getFileExtensionsScannedFieldBuilder() + .addBuilder(com.google.privacy.dlp.v2.FileExtensionInfo.getDefaultInstance()); + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public com.google.privacy.dlp.v2.FileExtensionInfo.Builder addFileExtensionsScannedBuilder( + int index) { + return getFileExtensionsScannedFieldBuilder() + .addBuilder(index, com.google.privacy.dlp.v2.FileExtensionInfo.getDefaultInstance()); + } + /** + * + * + *
        +     * A sample of file types scanned in this cluster. Empty if no files were
        +     * scanned.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + public java.util.List + getFileExtensionsScannedBuilderList() { + return getFileExtensionsScannedFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileExtensionInfo, + com.google.privacy.dlp.v2.FileExtensionInfo.Builder, + com.google.privacy.dlp.v2.FileExtensionInfoOrBuilder> + getFileExtensionsScannedFieldBuilder() { + if (fileExtensionsScannedBuilder_ == null) { + fileExtensionsScannedBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileExtensionInfo, + com.google.privacy.dlp.v2.FileExtensionInfo.Builder, + com.google.privacy.dlp.v2.FileExtensionInfoOrBuilder>( + fileExtensionsScanned_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + fileExtensionsScanned_ = null; + } + return fileExtensionsScannedBuilder_; + } + + private java.util.List fileExtensionsSeen_ = + java.util.Collections.emptyList(); + + private void ensureFileExtensionsSeenIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + fileExtensionsSeen_ = + new java.util.ArrayList( + fileExtensionsSeen_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileExtensionInfo, + com.google.privacy.dlp.v2.FileExtensionInfo.Builder, + com.google.privacy.dlp.v2.FileExtensionInfoOrBuilder> + fileExtensionsSeenBuilder_; + + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public java.util.List getFileExtensionsSeenList() { + if (fileExtensionsSeenBuilder_ == null) { + return java.util.Collections.unmodifiableList(fileExtensionsSeen_); + } else { + return fileExtensionsSeenBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public int getFileExtensionsSeenCount() { + if (fileExtensionsSeenBuilder_ == null) { + return fileExtensionsSeen_.size(); + } else { + return fileExtensionsSeenBuilder_.getCount(); + } + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public com.google.privacy.dlp.v2.FileExtensionInfo getFileExtensionsSeen(int index) { + if (fileExtensionsSeenBuilder_ == null) { + return fileExtensionsSeen_.get(index); + } else { + return fileExtensionsSeenBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public Builder setFileExtensionsSeen( + int index, com.google.privacy.dlp.v2.FileExtensionInfo value) { + if (fileExtensionsSeenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileExtensionsSeenIsMutable(); + fileExtensionsSeen_.set(index, value); + onChanged(); + } else { + fileExtensionsSeenBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public Builder setFileExtensionsSeen( + int index, com.google.privacy.dlp.v2.FileExtensionInfo.Builder builderForValue) { + if (fileExtensionsSeenBuilder_ == null) { + ensureFileExtensionsSeenIsMutable(); + fileExtensionsSeen_.set(index, builderForValue.build()); + onChanged(); + } else { + fileExtensionsSeenBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public Builder addFileExtensionsSeen(com.google.privacy.dlp.v2.FileExtensionInfo value) { + if (fileExtensionsSeenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileExtensionsSeenIsMutable(); + fileExtensionsSeen_.add(value); + onChanged(); + } else { + fileExtensionsSeenBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public Builder addFileExtensionsSeen( + int index, com.google.privacy.dlp.v2.FileExtensionInfo value) { + if (fileExtensionsSeenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileExtensionsSeenIsMutable(); + fileExtensionsSeen_.add(index, value); + onChanged(); + } else { + fileExtensionsSeenBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public Builder addFileExtensionsSeen( + com.google.privacy.dlp.v2.FileExtensionInfo.Builder builderForValue) { + if (fileExtensionsSeenBuilder_ == null) { + ensureFileExtensionsSeenIsMutable(); + fileExtensionsSeen_.add(builderForValue.build()); + onChanged(); + } else { + fileExtensionsSeenBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public Builder addFileExtensionsSeen( + int index, com.google.privacy.dlp.v2.FileExtensionInfo.Builder builderForValue) { + if (fileExtensionsSeenBuilder_ == null) { + ensureFileExtensionsSeenIsMutable(); + fileExtensionsSeen_.add(index, builderForValue.build()); + onChanged(); + } else { + fileExtensionsSeenBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public Builder addAllFileExtensionsSeen( + java.lang.Iterable values) { + if (fileExtensionsSeenBuilder_ == null) { + ensureFileExtensionsSeenIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileExtensionsSeen_); + onChanged(); + } else { + fileExtensionsSeenBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public Builder clearFileExtensionsSeen() { + if (fileExtensionsSeenBuilder_ == null) { + fileExtensionsSeen_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + fileExtensionsSeenBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public Builder removeFileExtensionsSeen(int index) { + if (fileExtensionsSeenBuilder_ == null) { + ensureFileExtensionsSeenIsMutable(); + fileExtensionsSeen_.remove(index); + onChanged(); + } else { + fileExtensionsSeenBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public com.google.privacy.dlp.v2.FileExtensionInfo.Builder getFileExtensionsSeenBuilder( + int index) { + return getFileExtensionsSeenFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public com.google.privacy.dlp.v2.FileExtensionInfoOrBuilder getFileExtensionsSeenOrBuilder( + int index) { + if (fileExtensionsSeenBuilder_ == null) { + return fileExtensionsSeen_.get(index); + } else { + return fileExtensionsSeenBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public java.util.List + getFileExtensionsSeenOrBuilderList() { + if (fileExtensionsSeenBuilder_ != null) { + return fileExtensionsSeenBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fileExtensionsSeen_); + } + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public com.google.privacy.dlp.v2.FileExtensionInfo.Builder addFileExtensionsSeenBuilder() { + return getFileExtensionsSeenFieldBuilder() + .addBuilder(com.google.privacy.dlp.v2.FileExtensionInfo.getDefaultInstance()); + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public com.google.privacy.dlp.v2.FileExtensionInfo.Builder addFileExtensionsSeenBuilder( + int index) { + return getFileExtensionsSeenFieldBuilder() + .addBuilder(index, com.google.privacy.dlp.v2.FileExtensionInfo.getDefaultInstance()); + } + /** + * + * + *
        +     * A sample of file types seen in this cluster. Empty if no files were seen.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + public java.util.List + getFileExtensionsSeenBuilderList() { + return getFileExtensionsSeenFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileExtensionInfo, + com.google.privacy.dlp.v2.FileExtensionInfo.Builder, + com.google.privacy.dlp.v2.FileExtensionInfoOrBuilder> + getFileExtensionsSeenFieldBuilder() { + if (fileExtensionsSeenBuilder_ == null) { + fileExtensionsSeenBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileExtensionInfo, + com.google.privacy.dlp.v2.FileExtensionInfo.Builder, + com.google.privacy.dlp.v2.FileExtensionInfoOrBuilder>( + fileExtensionsSeen_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + fileExtensionsSeen_ = null; + } + return fileExtensionsSeenBuilder_; + } + + private boolean noFilesExist_; + /** + * + * + *
        +     * True if no files exist in this cluster. If the bucket had more files than
        +     * could be listed, this will be false even if no files for this cluster
        +     * were seen and file_extensions_seen is empty.
        +     * 
        + * + * bool no_files_exist = 9; + * + * @return The noFilesExist. + */ + @java.lang.Override + public boolean getNoFilesExist() { + return noFilesExist_; + } + /** + * + * + *
        +     * True if no files exist in this cluster. If the bucket had more files than
        +     * could be listed, this will be false even if no files for this cluster
        +     * were seen and file_extensions_seen is empty.
        +     * 
        + * + * bool no_files_exist = 9; + * + * @param value The noFilesExist to set. + * @return This builder for chaining. + */ + public Builder setNoFilesExist(boolean value) { + + noFilesExist_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
        +     * True if no files exist in this cluster. If the bucket had more files than
        +     * could be listed, this will be false even if no files for this cluster
        +     * were seen and file_extensions_seen is empty.
        +     * 
        + * + * bool no_files_exist = 9; + * + * @return This builder for chaining. + */ + public Builder clearNoFilesExist() { + bitField0_ = (bitField0_ & ~0x00000080); + noFilesExist_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.FileClusterSummary) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FileClusterSummary) + private static final com.google.privacy.dlp.v2.FileClusterSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.FileClusterSummary(); + } + + public static com.google.privacy.dlp.v2.FileClusterSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileClusterSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileClusterSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileClusterSummaryOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileClusterSummaryOrBuilder.java new file mode 100644 index 000000000000..d3801d40cb14 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileClusterSummaryOrBuilder.java @@ -0,0 +1,381 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface FileClusterSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.FileClusterSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The file cluster type.
        +   * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + * + * @return Whether the fileClusterType field is set. + */ + boolean hasFileClusterType(); + /** + * + * + *
        +   * The file cluster type.
        +   * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + * + * @return The fileClusterType. + */ + com.google.privacy.dlp.v2.FileClusterType getFileClusterType(); + /** + * + * + *
        +   * The file cluster type.
        +   * 
        + * + * .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + */ + com.google.privacy.dlp.v2.FileClusterTypeOrBuilder getFileClusterTypeOrBuilder(); + + /** + * + * + *
        +   * InfoTypes detected in this cluster.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + java.util.List + getFileStoreInfoTypeSummariesList(); + /** + * + * + *
        +   * InfoTypes detected in this cluster.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary getFileStoreInfoTypeSummaries(int index); + /** + * + * + *
        +   * InfoTypes detected in this cluster.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + int getFileStoreInfoTypeSummariesCount(); + /** + * + * + *
        +   * InfoTypes detected in this cluster.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + java.util.List + getFileStoreInfoTypeSummariesOrBuilderList(); + /** + * + * + *
        +   * InfoTypes detected in this cluster.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * + */ + com.google.privacy.dlp.v2.FileStoreInfoTypeSummaryOrBuilder + getFileStoreInfoTypeSummariesOrBuilder(int index); + + /** + * + * + *
        +   * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +   * if nothing has been scanned.
        +   * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + * + * @return Whether the sensitivityScore field is set. + */ + boolean hasSensitivityScore(); + /** + * + * + *
        +   * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +   * if nothing has been scanned.
        +   * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + * + * @return The sensitivityScore. + */ + com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore(); + /** + * + * + *
        +   * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
        +   * if nothing has been scanned.
        +   * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + */ + com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder(); + + /** + * + * + *
        +   * The data risk level of this cluster. RISK_LOW if nothing has been
        +   * scanned.
        +   * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + * + * @return Whether the dataRiskLevel field is set. + */ + boolean hasDataRiskLevel(); + /** + * + * + *
        +   * The data risk level of this cluster. RISK_LOW if nothing has been
        +   * scanned.
        +   * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + * + * @return The dataRiskLevel. + */ + com.google.privacy.dlp.v2.DataRiskLevel getDataRiskLevel(); + /** + * + * + *
        +   * The data risk level of this cluster. RISK_LOW if nothing has been
        +   * scanned.
        +   * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + */ + com.google.privacy.dlp.v2.DataRiskLevelOrBuilder getDataRiskLevelOrBuilder(); + + /** + * + * + *
        +   * A list of errors detected while scanning this cluster. The list is
        +   * truncated to 10 per cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + java.util.List getErrorsList(); + /** + * + * + *
        +   * A list of errors detected while scanning this cluster. The list is
        +   * truncated to 10 per cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + com.google.privacy.dlp.v2.Error getErrors(int index); + /** + * + * + *
        +   * A list of errors detected while scanning this cluster. The list is
        +   * truncated to 10 per cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + int getErrorsCount(); + /** + * + * + *
        +   * A list of errors detected while scanning this cluster. The list is
        +   * truncated to 10 per cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + java.util.List getErrorsOrBuilderList(); + /** + * + * + *
        +   * A list of errors detected while scanning this cluster. The list is
        +   * truncated to 10 per cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.Error errors = 6; + */ + com.google.privacy.dlp.v2.ErrorOrBuilder getErrorsOrBuilder(int index); + + /** + * + * + *
        +   * A sample of file types scanned in this cluster. Empty if no files were
        +   * scanned.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + java.util.List getFileExtensionsScannedList(); + /** + * + * + *
        +   * A sample of file types scanned in this cluster. Empty if no files were
        +   * scanned.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + com.google.privacy.dlp.v2.FileExtensionInfo getFileExtensionsScanned(int index); + /** + * + * + *
        +   * A sample of file types scanned in this cluster. Empty if no files were
        +   * scanned.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + int getFileExtensionsScannedCount(); + /** + * + * + *
        +   * A sample of file types scanned in this cluster. Empty if no files were
        +   * scanned.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + java.util.List + getFileExtensionsScannedOrBuilderList(); + /** + * + * + *
        +   * A sample of file types scanned in this cluster. Empty if no files were
        +   * scanned.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + com.google.privacy.dlp.v2.FileExtensionInfoOrBuilder getFileExtensionsScannedOrBuilder(int index); + + /** + * + * + *
        +   * A sample of file types seen in this cluster. Empty if no files were seen.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + java.util.List getFileExtensionsSeenList(); + /** + * + * + *
        +   * A sample of file types seen in this cluster. Empty if no files were seen.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + com.google.privacy.dlp.v2.FileExtensionInfo getFileExtensionsSeen(int index); + /** + * + * + *
        +   * A sample of file types seen in this cluster. Empty if no files were seen.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + int getFileExtensionsSeenCount(); + /** + * + * + *
        +   * A sample of file types seen in this cluster. Empty if no files were seen.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + java.util.List + getFileExtensionsSeenOrBuilderList(); + /** + * + * + *
        +   * A sample of file types seen in this cluster. Empty if no files were seen.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + com.google.privacy.dlp.v2.FileExtensionInfoOrBuilder getFileExtensionsSeenOrBuilder(int index); + + /** + * + * + *
        +   * True if no files exist in this cluster. If the bucket had more files than
        +   * could be listed, this will be false even if no files for this cluster
        +   * were seen and file_extensions_seen is empty.
        +   * 
        + * + * bool no_files_exist = 9; + * + * @return The noFilesExist. + */ + boolean getNoFilesExist(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileClusterType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileClusterType.java new file mode 100644 index 000000000000..24839b773709 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileClusterType.java @@ -0,0 +1,1033 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * Message used to identify file cluster type being profiled.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.FileClusterType} + */ +public final class FileClusterType extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.FileClusterType) + FileClusterTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileClusterType.newBuilder() to construct. + private FileClusterType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FileClusterType() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FileClusterType(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileClusterType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileClusterType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FileClusterType.class, + com.google.privacy.dlp.v2.FileClusterType.Builder.class); + } + + /** + * + * + *
        +   * Cluster type. Each cluster corresponds to a set of file types.
        +   * Over time, new types may be added and files may move between clusters.
        +   * 
        + * + * Protobuf enum {@code google.privacy.dlp.v2.FileClusterType.Cluster} + */ + public enum Cluster implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * Unused.
        +     * 
        + * + * CLUSTER_UNSPECIFIED = 0; + */ + CLUSTER_UNSPECIFIED(0), + /** + * + * + *
        +     * Unsupported files.
        +     * 
        + * + * CLUSTER_UNKNOWN = 1; + */ + CLUSTER_UNKNOWN(1), + /** + * + * + *
        +     * Plain text.
        +     * 
        + * + * CLUSTER_TEXT = 2; + */ + CLUSTER_TEXT(2), + /** + * + * + *
        +     * Structured data like CSV, TSV etc.
        +     * 
        + * + * CLUSTER_STRUCTURED_DATA = 3; + */ + CLUSTER_STRUCTURED_DATA(3), + /** + * + * + *
        +     * Source code.
        +     * 
        + * + * CLUSTER_SOURCE_CODE = 4; + */ + CLUSTER_SOURCE_CODE(4), + /** + * + * + *
        +     * Rich document like docx, xlsx etc.
        +     * 
        + * + * CLUSTER_RICH_DOCUMENT = 5; + */ + CLUSTER_RICH_DOCUMENT(5), + /** + * + * + *
        +     * Images like jpeg, bmp.
        +     * 
        + * + * CLUSTER_IMAGE = 6; + */ + CLUSTER_IMAGE(6), + /** + * + * + *
        +     * Archives and containers like .zip, .tar etc.
        +     * 
        + * + * CLUSTER_ARCHIVE = 7; + */ + CLUSTER_ARCHIVE(7), + /** + * + * + *
        +     * Multimedia like .mp4, .avi etc.
        +     * 
        + * + * CLUSTER_MULTIMEDIA = 8; + */ + CLUSTER_MULTIMEDIA(8), + /** + * + * + *
        +     * Executable files like .exe, .class, .apk etc.
        +     * 
        + * + * CLUSTER_EXECUTABLE = 9; + */ + CLUSTER_EXECUTABLE(9), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * Unused.
        +     * 
        + * + * CLUSTER_UNSPECIFIED = 0; + */ + public static final int CLUSTER_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +     * Unsupported files.
        +     * 
        + * + * CLUSTER_UNKNOWN = 1; + */ + public static final int CLUSTER_UNKNOWN_VALUE = 1; + /** + * + * + *
        +     * Plain text.
        +     * 
        + * + * CLUSTER_TEXT = 2; + */ + public static final int CLUSTER_TEXT_VALUE = 2; + /** + * + * + *
        +     * Structured data like CSV, TSV etc.
        +     * 
        + * + * CLUSTER_STRUCTURED_DATA = 3; + */ + public static final int CLUSTER_STRUCTURED_DATA_VALUE = 3; + /** + * + * + *
        +     * Source code.
        +     * 
        + * + * CLUSTER_SOURCE_CODE = 4; + */ + public static final int CLUSTER_SOURCE_CODE_VALUE = 4; + /** + * + * + *
        +     * Rich document like docx, xlsx etc.
        +     * 
        + * + * CLUSTER_RICH_DOCUMENT = 5; + */ + public static final int CLUSTER_RICH_DOCUMENT_VALUE = 5; + /** + * + * + *
        +     * Images like jpeg, bmp.
        +     * 
        + * + * CLUSTER_IMAGE = 6; + */ + public static final int CLUSTER_IMAGE_VALUE = 6; + /** + * + * + *
        +     * Archives and containers like .zip, .tar etc.
        +     * 
        + * + * CLUSTER_ARCHIVE = 7; + */ + public static final int CLUSTER_ARCHIVE_VALUE = 7; + /** + * + * + *
        +     * Multimedia like .mp4, .avi etc.
        +     * 
        + * + * CLUSTER_MULTIMEDIA = 8; + */ + public static final int CLUSTER_MULTIMEDIA_VALUE = 8; + /** + * + * + *
        +     * Executable files like .exe, .class, .apk etc.
        +     * 
        + * + * CLUSTER_EXECUTABLE = 9; + */ + public static final int CLUSTER_EXECUTABLE_VALUE = 9; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Cluster valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Cluster forNumber(int value) { + switch (value) { + case 0: + return CLUSTER_UNSPECIFIED; + case 1: + return CLUSTER_UNKNOWN; + case 2: + return CLUSTER_TEXT; + case 3: + return CLUSTER_STRUCTURED_DATA; + case 4: + return CLUSTER_SOURCE_CODE; + case 5: + return CLUSTER_RICH_DOCUMENT; + case 6: + return CLUSTER_IMAGE; + case 7: + return CLUSTER_ARCHIVE; + case 8: + return CLUSTER_MULTIMEDIA; + case 9: + return CLUSTER_EXECUTABLE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Cluster findValueByNumber(int number) { + return Cluster.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.privacy.dlp.v2.FileClusterType.getDescriptor().getEnumTypes().get(0); + } + + private static final Cluster[] VALUES = values(); + + public static Cluster valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Cluster(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.FileClusterType.Cluster) + } + + private int fileClusterTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object fileClusterType_; + + public enum FileClusterTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLUSTER(1), + FILECLUSTERTYPE_NOT_SET(0); + private final int value; + + private FileClusterTypeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FileClusterTypeCase valueOf(int value) { + return forNumber(value); + } + + public static FileClusterTypeCase forNumber(int value) { + switch (value) { + case 1: + return CLUSTER; + case 0: + return FILECLUSTERTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FileClusterTypeCase getFileClusterTypeCase() { + return FileClusterTypeCase.forNumber(fileClusterTypeCase_); + } + + public static final int CLUSTER_FIELD_NUMBER = 1; + /** + * + * + *
        +   * Cluster type.
        +   * 
        + * + * .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; + * + * @return Whether the cluster field is set. + */ + public boolean hasCluster() { + return fileClusterTypeCase_ == 1; + } + /** + * + * + *
        +   * Cluster type.
        +   * 
        + * + * .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; + * + * @return The enum numeric value on the wire for cluster. + */ + public int getClusterValue() { + if (fileClusterTypeCase_ == 1) { + return (java.lang.Integer) fileClusterType_; + } + return 0; + } + /** + * + * + *
        +   * Cluster type.
        +   * 
        + * + * .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; + * + * @return The cluster. + */ + public com.google.privacy.dlp.v2.FileClusterType.Cluster getCluster() { + if (fileClusterTypeCase_ == 1) { + com.google.privacy.dlp.v2.FileClusterType.Cluster result = + com.google.privacy.dlp.v2.FileClusterType.Cluster.forNumber( + (java.lang.Integer) fileClusterType_); + return result == null + ? com.google.privacy.dlp.v2.FileClusterType.Cluster.UNRECOGNIZED + : result; + } + return com.google.privacy.dlp.v2.FileClusterType.Cluster.CLUSTER_UNSPECIFIED; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (fileClusterTypeCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) fileClusterType_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fileClusterTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 1, ((java.lang.Integer) fileClusterType_)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.FileClusterType)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.FileClusterType other = + (com.google.privacy.dlp.v2.FileClusterType) obj; + + if (!getFileClusterTypeCase().equals(other.getFileClusterTypeCase())) return false; + switch (fileClusterTypeCase_) { + case 1: + if (getClusterValue() != other.getClusterValue()) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (fileClusterTypeCase_) { + case 1: + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getClusterValue(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.FileClusterType parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileClusterType parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileClusterType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileClusterType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileClusterType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileClusterType parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileClusterType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileClusterType parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileClusterType parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileClusterType parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileClusterType parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileClusterType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.privacy.dlp.v2.FileClusterType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Message used to identify file cluster type being profiled.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.FileClusterType} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.FileClusterType) + com.google.privacy.dlp.v2.FileClusterTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileClusterType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileClusterType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FileClusterType.class, + com.google.privacy.dlp.v2.FileClusterType.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.FileClusterType.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fileClusterTypeCase_ = 0; + fileClusterType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileClusterType_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileClusterType getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.FileClusterType.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileClusterType build() { + com.google.privacy.dlp.v2.FileClusterType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileClusterType buildPartial() { + com.google.privacy.dlp.v2.FileClusterType result = + new com.google.privacy.dlp.v2.FileClusterType(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.FileClusterType result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.privacy.dlp.v2.FileClusterType result) { + result.fileClusterTypeCase_ = fileClusterTypeCase_; + result.fileClusterType_ = this.fileClusterType_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.FileClusterType) { + return mergeFrom((com.google.privacy.dlp.v2.FileClusterType) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.FileClusterType other) { + if (other == com.google.privacy.dlp.v2.FileClusterType.getDefaultInstance()) return this; + switch (other.getFileClusterTypeCase()) { + case CLUSTER: + { + setClusterValue(other.getClusterValue()); + break; + } + case FILECLUSTERTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + fileClusterTypeCase_ = 1; + fileClusterType_ = rawValue; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int fileClusterTypeCase_ = 0; + private java.lang.Object fileClusterType_; + + public FileClusterTypeCase getFileClusterTypeCase() { + return FileClusterTypeCase.forNumber(fileClusterTypeCase_); + } + + public Builder clearFileClusterType() { + fileClusterTypeCase_ = 0; + fileClusterType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
        +     * Cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; + * + * @return Whether the cluster field is set. + */ + @java.lang.Override + public boolean hasCluster() { + return fileClusterTypeCase_ == 1; + } + /** + * + * + *
        +     * Cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; + * + * @return The enum numeric value on the wire for cluster. + */ + @java.lang.Override + public int getClusterValue() { + if (fileClusterTypeCase_ == 1) { + return ((java.lang.Integer) fileClusterType_).intValue(); + } + return 0; + } + /** + * + * + *
        +     * Cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; + * + * @param value The enum numeric value on the wire for cluster to set. + * @return This builder for chaining. + */ + public Builder setClusterValue(int value) { + fileClusterTypeCase_ = 1; + fileClusterType_ = value; + onChanged(); + return this; + } + /** + * + * + *
        +     * Cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; + * + * @return The cluster. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileClusterType.Cluster getCluster() { + if (fileClusterTypeCase_ == 1) { + com.google.privacy.dlp.v2.FileClusterType.Cluster result = + com.google.privacy.dlp.v2.FileClusterType.Cluster.forNumber( + (java.lang.Integer) fileClusterType_); + return result == null + ? com.google.privacy.dlp.v2.FileClusterType.Cluster.UNRECOGNIZED + : result; + } + return com.google.privacy.dlp.v2.FileClusterType.Cluster.CLUSTER_UNSPECIFIED; + } + /** + * + * + *
        +     * Cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; + * + * @param value The cluster to set. + * @return This builder for chaining. + */ + public Builder setCluster(com.google.privacy.dlp.v2.FileClusterType.Cluster value) { + if (value == null) { + throw new NullPointerException(); + } + fileClusterTypeCase_ = 1; + fileClusterType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +     * Cluster type.
        +     * 
        + * + * .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; + * + * @return This builder for chaining. + */ + public Builder clearCluster() { + if (fileClusterTypeCase_ == 1) { + fileClusterTypeCase_ = 0; + fileClusterType_ = null; + onChanged(); + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.FileClusterType) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FileClusterType) + private static final com.google.privacy.dlp.v2.FileClusterType DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.FileClusterType(); + } + + public static com.google.privacy.dlp.v2.FileClusterType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileClusterType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileClusterType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileClusterTypeOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileClusterTypeOrBuilder.java new file mode 100644 index 000000000000..d822c19898a5 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileClusterTypeOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface FileClusterTypeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.FileClusterType) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Cluster type.
        +   * 
        + * + * .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; + * + * @return Whether the cluster field is set. + */ + boolean hasCluster(); + /** + * + * + *
        +   * Cluster type.
        +   * 
        + * + * .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; + * + * @return The enum numeric value on the wire for cluster. + */ + int getClusterValue(); + /** + * + * + *
        +   * Cluster type.
        +   * 
        + * + * .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; + * + * @return The cluster. + */ + com.google.privacy.dlp.v2.FileClusterType.Cluster getCluster(); + + com.google.privacy.dlp.v2.FileClusterType.FileClusterTypeCase getFileClusterTypeCase(); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Rollback.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileExtensionInfo.java similarity index 61% rename from java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Rollback.java rename to java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileExtensionInfo.java index 8d32806261e3..0e39520f25cc 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Rollback.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileExtensionInfo.java @@ -14,80 +14,79 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto +// source: google/privacy/dlp/v2/dlp.proto // Protobuf Java Version: 3.25.3 -package com.google.cloud.deploy.v1; +package com.google.privacy.dlp.v2; /** * * *
        - * Rolls back a `Rollout`.
        + * Information regarding the discovered file extension.
          * 
        * - * Protobuf type {@code google.cloud.deploy.v1.Rollback} + * Protobuf type {@code google.privacy.dlp.v2.FileExtensionInfo} */ -public final class Rollback extends com.google.protobuf.GeneratedMessageV3 +public final class FileExtensionInfo extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Rollback) - RollbackOrBuilder { + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.FileExtensionInfo) + FileExtensionInfoOrBuilder { private static final long serialVersionUID = 0L; - // Use Rollback.newBuilder() to construct. - private Rollback(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use FileExtensionInfo.newBuilder() to construct. + private FileExtensionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Rollback() { - destinationPhase_ = ""; + private FileExtensionInfo() { + fileExtension_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Rollback(); + return new FileExtensionInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_Rollback_descriptor; + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileExtensionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_Rollback_fieldAccessorTable + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileExtensionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Rollback.class, - com.google.cloud.deploy.v1.Rollback.Builder.class); + com.google.privacy.dlp.v2.FileExtensionInfo.class, + com.google.privacy.dlp.v2.FileExtensionInfo.Builder.class); } - public static final int DESTINATION_PHASE_FIELD_NUMBER = 1; + public static final int FILE_EXTENSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object destinationPhase_ = ""; + private volatile java.lang.Object fileExtension_ = ""; /** * * *
        -   * Optional. The starting phase ID for the `Rollout`. If unspecified, the
        -   * `Rollout` will start in the stable phase.
        +   * The file extension if set. (aka .pdf, .jpg, .txt)
            * 
        * - * string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string file_extension = 1; * - * @return The destinationPhase. + * @return The fileExtension. */ @java.lang.Override - public java.lang.String getDestinationPhase() { - java.lang.Object ref = destinationPhase_; + public java.lang.String getFileExtension() { + java.lang.Object ref = fileExtension_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - destinationPhase_ = s; + fileExtension_ = s; return s; } } @@ -95,21 +94,20 @@ public java.lang.String getDestinationPhase() { * * *
        -   * Optional. The starting phase ID for the `Rollout`. If unspecified, the
        -   * `Rollout` will start in the stable phase.
        +   * The file extension if set. (aka .pdf, .jpg, .txt)
            * 
        * - * string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string file_extension = 1; * - * @return The bytes for destinationPhase. + * @return The bytes for fileExtension. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationPhaseBytes() { - java.lang.Object ref = destinationPhase_; + public com.google.protobuf.ByteString getFileExtensionBytes() { + java.lang.Object ref = fileExtension_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - destinationPhase_ = b; + fileExtension_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -130,8 +128,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationPhase_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destinationPhase_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileExtension_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileExtension_); } getUnknownFields().writeTo(output); } @@ -142,8 +140,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationPhase_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destinationPhase_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileExtension_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileExtension_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -155,12 +153,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.deploy.v1.Rollback)) { + if (!(obj instanceof com.google.privacy.dlp.v2.FileExtensionInfo)) { return super.equals(obj); } - com.google.cloud.deploy.v1.Rollback other = (com.google.cloud.deploy.v1.Rollback) obj; + com.google.privacy.dlp.v2.FileExtensionInfo other = + (com.google.privacy.dlp.v2.FileExtensionInfo) obj; - if (!getDestinationPhase().equals(other.getDestinationPhase())) return false; + if (!getFileExtension().equals(other.getFileExtension())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,77 +171,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DESTINATION_PHASE_FIELD_NUMBER; - hash = (53 * hash) + getDestinationPhase().hashCode(); + hash = (37 * hash) + FILE_EXTENSION_FIELD_NUMBER; + hash = (53 * hash) + getFileExtension().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.deploy.v1.Rollback parseFrom(java.nio.ByteBuffer data) + public static com.google.privacy.dlp.v2.FileExtensionInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.deploy.v1.Rollback parseFrom( + public static com.google.privacy.dlp.v2.FileExtensionInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.deploy.v1.Rollback parseFrom(com.google.protobuf.ByteString data) + public static com.google.privacy.dlp.v2.FileExtensionInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.deploy.v1.Rollback parseFrom( + public static com.google.privacy.dlp.v2.FileExtensionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.deploy.v1.Rollback parseFrom(byte[] data) + public static com.google.privacy.dlp.v2.FileExtensionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.deploy.v1.Rollback parseFrom( + public static com.google.privacy.dlp.v2.FileExtensionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.deploy.v1.Rollback parseFrom(java.io.InputStream input) + public static com.google.privacy.dlp.v2.FileExtensionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.deploy.v1.Rollback parseFrom( + public static com.google.privacy.dlp.v2.FileExtensionInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.Rollback parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + public static com.google.privacy.dlp.v2.FileExtensionInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.deploy.v1.Rollback parseDelimitedFrom( + public static com.google.privacy.dlp.v2.FileExtensionInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.Rollback parseFrom( + public static com.google.privacy.dlp.v2.FileExtensionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.deploy.v1.Rollback parseFrom( + public static com.google.privacy.dlp.v2.FileExtensionInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -259,7 +259,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.deploy.v1.Rollback prototype) { + public static Builder newBuilder(com.google.privacy.dlp.v2.FileExtensionInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -277,31 +277,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
        -   * Rolls back a `Rollout`.
        +   * Information regarding the discovered file extension.
            * 
        * - * Protobuf type {@code google.cloud.deploy.v1.Rollback} + * Protobuf type {@code google.privacy.dlp.v2.FileExtensionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Rollback) - com.google.cloud.deploy.v1.RollbackOrBuilder { + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.FileExtensionInfo) + com.google.privacy.dlp.v2.FileExtensionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_Rollback_descriptor; + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileExtensionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_Rollback_fieldAccessorTable + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileExtensionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Rollback.class, - com.google.cloud.deploy.v1.Rollback.Builder.class); + com.google.privacy.dlp.v2.FileExtensionInfo.class, + com.google.privacy.dlp.v2.FileExtensionInfo.Builder.class); } - // Construct using com.google.cloud.deploy.v1.Rollback.newBuilder() + // Construct using com.google.privacy.dlp.v2.FileExtensionInfo.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -312,24 +312,24 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - destinationPhase_ = ""; + fileExtension_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto - .internal_static_google_cloud_deploy_v1_Rollback_descriptor; + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileExtensionInfo_descriptor; } @java.lang.Override - public com.google.cloud.deploy.v1.Rollback getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.Rollback.getDefaultInstance(); + public com.google.privacy.dlp.v2.FileExtensionInfo getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.FileExtensionInfo.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.deploy.v1.Rollback build() { - com.google.cloud.deploy.v1.Rollback result = buildPartial(); + public com.google.privacy.dlp.v2.FileExtensionInfo build() { + com.google.privacy.dlp.v2.FileExtensionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -337,8 +337,9 @@ public com.google.cloud.deploy.v1.Rollback build() { } @java.lang.Override - public com.google.cloud.deploy.v1.Rollback buildPartial() { - com.google.cloud.deploy.v1.Rollback result = new com.google.cloud.deploy.v1.Rollback(this); + public com.google.privacy.dlp.v2.FileExtensionInfo buildPartial() { + com.google.privacy.dlp.v2.FileExtensionInfo result = + new com.google.privacy.dlp.v2.FileExtensionInfo(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -346,10 +347,10 @@ public com.google.cloud.deploy.v1.Rollback buildPartial() { return result; } - private void buildPartial0(com.google.cloud.deploy.v1.Rollback result) { + private void buildPartial0(com.google.privacy.dlp.v2.FileExtensionInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.destinationPhase_ = destinationPhase_; + result.fileExtension_ = fileExtension_; } } @@ -388,18 +389,18 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.Rollback) { - return mergeFrom((com.google.cloud.deploy.v1.Rollback) other); + if (other instanceof com.google.privacy.dlp.v2.FileExtensionInfo) { + return mergeFrom((com.google.privacy.dlp.v2.FileExtensionInfo) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.deploy.v1.Rollback other) { - if (other == com.google.cloud.deploy.v1.Rollback.getDefaultInstance()) return this; - if (!other.getDestinationPhase().isEmpty()) { - destinationPhase_ = other.destinationPhase_; + public Builder mergeFrom(com.google.privacy.dlp.v2.FileExtensionInfo other) { + if (other == com.google.privacy.dlp.v2.FileExtensionInfo.getDefaultInstance()) return this; + if (!other.getFileExtension().isEmpty()) { + fileExtension_ = other.fileExtension_; bitField0_ |= 0x00000001; onChanged(); } @@ -431,7 +432,7 @@ public Builder mergeFrom( break; case 10: { - destinationPhase_ = input.readStringRequireUtf8(); + fileExtension_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 @@ -454,25 +455,24 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object destinationPhase_ = ""; + private java.lang.Object fileExtension_ = ""; /** * * *
        -     * Optional. The starting phase ID for the `Rollout`. If unspecified, the
        -     * `Rollout` will start in the stable phase.
        +     * The file extension if set. (aka .pdf, .jpg, .txt)
              * 
        * - * string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string file_extension = 1; * - * @return The destinationPhase. + * @return The fileExtension. */ - public java.lang.String getDestinationPhase() { - java.lang.Object ref = destinationPhase_; + public java.lang.String getFileExtension() { + java.lang.Object ref = fileExtension_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - destinationPhase_ = s; + fileExtension_ = s; return s; } else { return (java.lang.String) ref; @@ -482,20 +482,19 @@ public java.lang.String getDestinationPhase() { * * *
        -     * Optional. The starting phase ID for the `Rollout`. If unspecified, the
        -     * `Rollout` will start in the stable phase.
        +     * The file extension if set. (aka .pdf, .jpg, .txt)
              * 
        * - * string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string file_extension = 1; * - * @return The bytes for destinationPhase. + * @return The bytes for fileExtension. */ - public com.google.protobuf.ByteString getDestinationPhaseBytes() { - java.lang.Object ref = destinationPhase_; + public com.google.protobuf.ByteString getFileExtensionBytes() { + java.lang.Object ref = fileExtension_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - destinationPhase_ = b; + fileExtension_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -505,20 +504,19 @@ public com.google.protobuf.ByteString getDestinationPhaseBytes() { * * *
        -     * Optional. The starting phase ID for the `Rollout`. If unspecified, the
        -     * `Rollout` will start in the stable phase.
        +     * The file extension if set. (aka .pdf, .jpg, .txt)
              * 
        * - * string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string file_extension = 1; * - * @param value The destinationPhase to set. + * @param value The fileExtension to set. * @return This builder for chaining. */ - public Builder setDestinationPhase(java.lang.String value) { + public Builder setFileExtension(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - destinationPhase_ = value; + fileExtension_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -527,16 +525,15 @@ public Builder setDestinationPhase(java.lang.String value) { * * *
        -     * Optional. The starting phase ID for the `Rollout`. If unspecified, the
        -     * `Rollout` will start in the stable phase.
        +     * The file extension if set. (aka .pdf, .jpg, .txt)
              * 
        * - * string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string file_extension = 1; * * @return This builder for chaining. */ - public Builder clearDestinationPhase() { - destinationPhase_ = getDefaultInstance().getDestinationPhase(); + public Builder clearFileExtension() { + fileExtension_ = getDefaultInstance().getFileExtension(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -545,21 +542,20 @@ public Builder clearDestinationPhase() { * * *
        -     * Optional. The starting phase ID for the `Rollout`. If unspecified, the
        -     * `Rollout` will start in the stable phase.
        +     * The file extension if set. (aka .pdf, .jpg, .txt)
              * 
        * - * string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string file_extension = 1; * - * @param value The bytes for destinationPhase to set. + * @param value The bytes for fileExtension to set. * @return This builder for chaining. */ - public Builder setDestinationPhaseBytes(com.google.protobuf.ByteString value) { + public Builder setFileExtensionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - destinationPhase_ = value; + fileExtension_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -576,24 +572,24 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Rollback) + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.FileExtensionInfo) } - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Rollback) - private static final com.google.cloud.deploy.v1.Rollback DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FileExtensionInfo) + private static final com.google.privacy.dlp.v2.FileExtensionInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Rollback(); + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.FileExtensionInfo(); } - public static com.google.cloud.deploy.v1.Rollback getDefaultInstance() { + public static com.google.privacy.dlp.v2.FileExtensionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public Rollback parsePartialFrom( + public FileExtensionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -612,17 +608,17 @@ public Rollback parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.deploy.v1.Rollback getDefaultInstanceForType() { + public com.google.privacy.dlp.v2.FileExtensionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileExtensionInfoOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileExtensionInfoOrBuilder.java new file mode 100644 index 000000000000..1c32897b5626 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileExtensionInfoOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface FileExtensionInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.FileExtensionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The file extension if set. (aka .pdf, .jpg, .txt)
        +   * 
        + * + * string file_extension = 1; + * + * @return The fileExtension. + */ + java.lang.String getFileExtension(); + /** + * + * + *
        +   * The file extension if set. (aka .pdf, .jpg, .txt)
        +   * 
        + * + * string file_extension = 1; + * + * @return The bytes for fileExtension. + */ + com.google.protobuf.ByteString getFileExtensionBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreCollection.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreCollection.java new file mode 100644 index 000000000000..107c722dfe92 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreCollection.java @@ -0,0 +1,852 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * Match file stores (e.g. buckets) using regex filters.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.FileStoreCollection} + */ +public final class FileStoreCollection extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.FileStoreCollection) + FileStoreCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileStoreCollection.newBuilder() to construct. + private FileStoreCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FileStoreCollection() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FileStoreCollection(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FileStoreCollection.class, + com.google.privacy.dlp.v2.FileStoreCollection.Builder.class); + } + + private int patternCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object pattern_; + + public enum PatternCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INCLUDE_REGEXES(1), + PATTERN_NOT_SET(0); + private final int value; + + private PatternCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PatternCase valueOf(int value) { + return forNumber(value); + } + + public static PatternCase forNumber(int value) { + switch (value) { + case 1: + return INCLUDE_REGEXES; + case 0: + return PATTERN_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PatternCase getPatternCase() { + return PatternCase.forNumber(patternCase_); + } + + public static final int INCLUDE_REGEXES_FIELD_NUMBER = 1; + /** + * + * + *
        +   * Optional. A collection of regular expressions to match a file store
        +   * against.
        +   * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeRegexes field is set. + */ + @java.lang.Override + public boolean hasIncludeRegexes() { + return patternCase_ == 1; + } + /** + * + * + *
        +   * Optional. A collection of regular expressions to match a file store
        +   * against.
        +   * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeRegexes. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreRegexes getIncludeRegexes() { + if (patternCase_ == 1) { + return (com.google.privacy.dlp.v2.FileStoreRegexes) pattern_; + } + return com.google.privacy.dlp.v2.FileStoreRegexes.getDefaultInstance(); + } + /** + * + * + *
        +   * Optional. A collection of regular expressions to match a file store
        +   * against.
        +   * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreRegexesOrBuilder getIncludeRegexesOrBuilder() { + if (patternCase_ == 1) { + return (com.google.privacy.dlp.v2.FileStoreRegexes) pattern_; + } + return com.google.privacy.dlp.v2.FileStoreRegexes.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (patternCase_ == 1) { + output.writeMessage(1, (com.google.privacy.dlp.v2.FileStoreRegexes) pattern_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (patternCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.privacy.dlp.v2.FileStoreRegexes) pattern_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.FileStoreCollection)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.FileStoreCollection other = + (com.google.privacy.dlp.v2.FileStoreCollection) obj; + + if (!getPatternCase().equals(other.getPatternCase())) return false; + switch (patternCase_) { + case 1: + if (!getIncludeRegexes().equals(other.getIncludeRegexes())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (patternCase_) { + case 1: + hash = (37 * hash) + INCLUDE_REGEXES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeRegexes().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.FileStoreCollection parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreCollection parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreCollection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreCollection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreCollection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreCollection parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreCollection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreCollection parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreCollection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreCollection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.privacy.dlp.v2.FileStoreCollection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Match file stores (e.g. buckets) using regex filters.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.FileStoreCollection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.FileStoreCollection) + com.google.privacy.dlp.v2.FileStoreCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FileStoreCollection.class, + com.google.privacy.dlp.v2.FileStoreCollection.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.FileStoreCollection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (includeRegexesBuilder_ != null) { + includeRegexesBuilder_.clear(); + } + patternCase_ = 0; + pattern_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreCollection_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreCollection getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.FileStoreCollection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreCollection build() { + com.google.privacy.dlp.v2.FileStoreCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreCollection buildPartial() { + com.google.privacy.dlp.v2.FileStoreCollection result = + new com.google.privacy.dlp.v2.FileStoreCollection(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.FileStoreCollection result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.privacy.dlp.v2.FileStoreCollection result) { + result.patternCase_ = patternCase_; + result.pattern_ = this.pattern_; + if (patternCase_ == 1 && includeRegexesBuilder_ != null) { + result.pattern_ = includeRegexesBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.FileStoreCollection) { + return mergeFrom((com.google.privacy.dlp.v2.FileStoreCollection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.FileStoreCollection other) { + if (other == com.google.privacy.dlp.v2.FileStoreCollection.getDefaultInstance()) return this; + switch (other.getPatternCase()) { + case INCLUDE_REGEXES: + { + mergeIncludeRegexes(other.getIncludeRegexes()); + break; + } + case PATTERN_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getIncludeRegexesFieldBuilder().getBuilder(), extensionRegistry); + patternCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int patternCase_ = 0; + private java.lang.Object pattern_; + + public PatternCase getPatternCase() { + return PatternCase.forNumber(patternCase_); + } + + public Builder clearPattern() { + patternCase_ = 0; + pattern_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreRegexes, + com.google.privacy.dlp.v2.FileStoreRegexes.Builder, + com.google.privacy.dlp.v2.FileStoreRegexesOrBuilder> + includeRegexesBuilder_; + /** + * + * + *
        +     * Optional. A collection of regular expressions to match a file store
        +     * against.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeRegexes field is set. + */ + @java.lang.Override + public boolean hasIncludeRegexes() { + return patternCase_ == 1; + } + /** + * + * + *
        +     * Optional. A collection of regular expressions to match a file store
        +     * against.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeRegexes. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreRegexes getIncludeRegexes() { + if (includeRegexesBuilder_ == null) { + if (patternCase_ == 1) { + return (com.google.privacy.dlp.v2.FileStoreRegexes) pattern_; + } + return com.google.privacy.dlp.v2.FileStoreRegexes.getDefaultInstance(); + } else { + if (patternCase_ == 1) { + return includeRegexesBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.FileStoreRegexes.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. A collection of regular expressions to match a file store
        +     * against.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeRegexes(com.google.privacy.dlp.v2.FileStoreRegexes value) { + if (includeRegexesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pattern_ = value; + onChanged(); + } else { + includeRegexesBuilder_.setMessage(value); + } + patternCase_ = 1; + return this; + } + /** + * + * + *
        +     * Optional. A collection of regular expressions to match a file store
        +     * against.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeRegexes( + com.google.privacy.dlp.v2.FileStoreRegexes.Builder builderForValue) { + if (includeRegexesBuilder_ == null) { + pattern_ = builderForValue.build(); + onChanged(); + } else { + includeRegexesBuilder_.setMessage(builderForValue.build()); + } + patternCase_ = 1; + return this; + } + /** + * + * + *
        +     * Optional. A collection of regular expressions to match a file store
        +     * against.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIncludeRegexes(com.google.privacy.dlp.v2.FileStoreRegexes value) { + if (includeRegexesBuilder_ == null) { + if (patternCase_ == 1 + && pattern_ != com.google.privacy.dlp.v2.FileStoreRegexes.getDefaultInstance()) { + pattern_ = + com.google.privacy.dlp.v2.FileStoreRegexes.newBuilder( + (com.google.privacy.dlp.v2.FileStoreRegexes) pattern_) + .mergeFrom(value) + .buildPartial(); + } else { + pattern_ = value; + } + onChanged(); + } else { + if (patternCase_ == 1) { + includeRegexesBuilder_.mergeFrom(value); + } else { + includeRegexesBuilder_.setMessage(value); + } + } + patternCase_ = 1; + return this; + } + /** + * + * + *
        +     * Optional. A collection of regular expressions to match a file store
        +     * against.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIncludeRegexes() { + if (includeRegexesBuilder_ == null) { + if (patternCase_ == 1) { + patternCase_ = 0; + pattern_ = null; + onChanged(); + } + } else { + if (patternCase_ == 1) { + patternCase_ = 0; + pattern_ = null; + } + includeRegexesBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Optional. A collection of regular expressions to match a file store
        +     * against.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.privacy.dlp.v2.FileStoreRegexes.Builder getIncludeRegexesBuilder() { + return getIncludeRegexesFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. A collection of regular expressions to match a file store
        +     * against.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreRegexesOrBuilder getIncludeRegexesOrBuilder() { + if ((patternCase_ == 1) && (includeRegexesBuilder_ != null)) { + return includeRegexesBuilder_.getMessageOrBuilder(); + } else { + if (patternCase_ == 1) { + return (com.google.privacy.dlp.v2.FileStoreRegexes) pattern_; + } + return com.google.privacy.dlp.v2.FileStoreRegexes.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. A collection of regular expressions to match a file store
        +     * against.
        +     * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreRegexes, + com.google.privacy.dlp.v2.FileStoreRegexes.Builder, + com.google.privacy.dlp.v2.FileStoreRegexesOrBuilder> + getIncludeRegexesFieldBuilder() { + if (includeRegexesBuilder_ == null) { + if (!(patternCase_ == 1)) { + pattern_ = com.google.privacy.dlp.v2.FileStoreRegexes.getDefaultInstance(); + } + includeRegexesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreRegexes, + com.google.privacy.dlp.v2.FileStoreRegexes.Builder, + com.google.privacy.dlp.v2.FileStoreRegexesOrBuilder>( + (com.google.privacy.dlp.v2.FileStoreRegexes) pattern_, + getParentForChildren(), + isClean()); + pattern_ = null; + } + patternCase_ = 1; + onChanged(); + return includeRegexesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.FileStoreCollection) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FileStoreCollection) + private static final com.google.privacy.dlp.v2.FileStoreCollection DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.FileStoreCollection(); + } + + public static com.google.privacy.dlp.v2.FileStoreCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileStoreCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreCollectionOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreCollectionOrBuilder.java new file mode 100644 index 000000000000..b9b8ddbe2a8d --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreCollectionOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface FileStoreCollectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.FileStoreCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. A collection of regular expressions to match a file store
        +   * against.
        +   * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includeRegexes field is set. + */ + boolean hasIncludeRegexes(); + /** + * + * + *
        +   * Optional. A collection of regular expressions to match a file store
        +   * against.
        +   * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includeRegexes. + */ + com.google.privacy.dlp.v2.FileStoreRegexes getIncludeRegexes(); + /** + * + * + *
        +   * Optional. A collection of regular expressions to match a file store
        +   * against.
        +   * 
        + * + * + * .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.privacy.dlp.v2.FileStoreRegexesOrBuilder getIncludeRegexesOrBuilder(); + + com.google.privacy.dlp.v2.FileStoreCollection.PatternCase getPatternCase(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfile.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfile.java new file mode 100644 index 000000000000..c01049a39472 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfile.java @@ -0,0 +1,6721 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * The profile for a file store.
        + *
        + * * Cloud Storage: maps 1:1 with a bucket.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.FileStoreDataProfile} + */ +public final class FileStoreDataProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.FileStoreDataProfile) + FileStoreDataProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileStoreDataProfile.newBuilder() to construct. + private FileStoreDataProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FileStoreDataProfile() { + name_ = ""; + projectDataProfile_ = ""; + projectId_ = ""; + fileStoreLocation_ = ""; + dataStorageLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + locationType_ = ""; + fileStorePath_ = ""; + fullResource_ = ""; + state_ = 0; + resourceVisibility_ = 0; + fileClusterSummaries_ = java.util.Collections.emptyList(); + fileStoreInfoTypeSummaries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FileStoreDataProfile(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreDataProfile_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 17: + return internalGetResourceAttributes(); + case 18: + return internalGetResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreDataProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FileStoreDataProfile.class, + com.google.privacy.dlp.v2.FileStoreDataProfile.Builder.class); + } + + /** + * + * + *
        +   * Possible states of a profile. New items may be added.
        +   * 
        + * + * Protobuf enum {@code google.privacy.dlp.v2.FileStoreDataProfile.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * Unused.
        +     * 
        + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
        +     * The profile is currently running. Once a profile has finished it will
        +     * transition to DONE.
        +     * 
        + * + * RUNNING = 1; + */ + RUNNING(1), + /** + * + * + *
        +     * The profile is no longer generating.
        +     * If profile_status.status.code is 0, the profile succeeded, otherwise, it
        +     * failed.
        +     * 
        + * + * DONE = 2; + */ + DONE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * Unused.
        +     * 
        + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +     * The profile is currently running. Once a profile has finished it will
        +     * transition to DONE.
        +     * 
        + * + * RUNNING = 1; + */ + public static final int RUNNING_VALUE = 1; + /** + * + * + *
        +     * The profile is no longer generating.
        +     * If profile_status.status.code is 0, the profile succeeded, otherwise, it
        +     * failed.
        +     * 
        + * + * DONE = 2; + */ + public static final int DONE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return DONE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.privacy.dlp.v2.FileStoreDataProfile.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.FileStoreDataProfile.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
        +   * The name of the profile.
        +   * 
        + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
        +   * The name of the profile.
        +   * 
        + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_SOURCE_TYPE_FIELD_NUMBER = 2; + private com.google.privacy.dlp.v2.DataSourceType dataSourceType_; + /** + * + * + *
        +   * The resource type that was profiled.
        +   * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + * + * @return Whether the dataSourceType field is set. + */ + @java.lang.Override + public boolean hasDataSourceType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * The resource type that was profiled.
        +   * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + * + * @return The dataSourceType. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataSourceType getDataSourceType() { + return dataSourceType_ == null + ? com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance() + : dataSourceType_; + } + /** + * + * + *
        +   * The resource type that was profiled.
        +   * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataSourceTypeOrBuilder getDataSourceTypeOrBuilder() { + return dataSourceType_ == null + ? com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance() + : dataSourceType_; + } + + public static final int PROJECT_DATA_PROFILE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectDataProfile_ = ""; + /** + * + * + *
        +   * The resource name of the project data profile for this file store.
        +   * 
        + * + * string project_data_profile = 3; + * + * @return The projectDataProfile. + */ + @java.lang.Override + public java.lang.String getProjectDataProfile() { + java.lang.Object ref = projectDataProfile_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectDataProfile_ = s; + return s; + } + } + /** + * + * + *
        +   * The resource name of the project data profile for this file store.
        +   * 
        + * + * string project_data_profile = 3; + * + * @return The bytes for projectDataProfile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectDataProfileBytes() { + java.lang.Object ref = projectDataProfile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectDataProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + * + * + *
        +   * The Google Cloud project ID that owns the resource.
        +   * 
        + * + * string project_id = 4; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
        +   * The Google Cloud project ID that owns the resource.
        +   * 
        + * + * string project_id = 4; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_STORE_LOCATION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object fileStoreLocation_ = ""; + /** + * + * + *
        +   * The location of the file store.
        +   *
        +   * * Cloud Storage:
        +   * https://cloud.google.com/storage/docs/locations#available-locations
        +   * 
        + * + * string file_store_location = 5; + * + * @return The fileStoreLocation. + */ + @java.lang.Override + public java.lang.String getFileStoreLocation() { + java.lang.Object ref = fileStoreLocation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileStoreLocation_ = s; + return s; + } + } + /** + * + * + *
        +   * The location of the file store.
        +   *
        +   * * Cloud Storage:
        +   * https://cloud.google.com/storage/docs/locations#available-locations
        +   * 
        + * + * string file_store_location = 5; + * + * @return The bytes for fileStoreLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileStoreLocationBytes() { + java.lang.Object ref = fileStoreLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileStoreLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_STORAGE_LOCATIONS_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList dataStorageLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
        +   * For resources that have multiple storage locations, these are those
        +   * regions. For Cloud Storage this is the list of regions chosen for
        +   * dual-region storage. `file_store_location` will normally be the
        +   * corresponding multi-region for the list of individual locations. The first
        +   * region is always picked as the processing and storage location for the data
        +   * profile.
        +   * 
        + * + * repeated string data_storage_locations = 19; + * + * @return A list containing the dataStorageLocations. + */ + public com.google.protobuf.ProtocolStringList getDataStorageLocationsList() { + return dataStorageLocations_; + } + /** + * + * + *
        +   * For resources that have multiple storage locations, these are those
        +   * regions. For Cloud Storage this is the list of regions chosen for
        +   * dual-region storage. `file_store_location` will normally be the
        +   * corresponding multi-region for the list of individual locations. The first
        +   * region is always picked as the processing and storage location for the data
        +   * profile.
        +   * 
        + * + * repeated string data_storage_locations = 19; + * + * @return The count of dataStorageLocations. + */ + public int getDataStorageLocationsCount() { + return dataStorageLocations_.size(); + } + /** + * + * + *
        +   * For resources that have multiple storage locations, these are those
        +   * regions. For Cloud Storage this is the list of regions chosen for
        +   * dual-region storage. `file_store_location` will normally be the
        +   * corresponding multi-region for the list of individual locations. The first
        +   * region is always picked as the processing and storage location for the data
        +   * profile.
        +   * 
        + * + * repeated string data_storage_locations = 19; + * + * @param index The index of the element to return. + * @return The dataStorageLocations at the given index. + */ + public java.lang.String getDataStorageLocations(int index) { + return dataStorageLocations_.get(index); + } + /** + * + * + *
        +   * For resources that have multiple storage locations, these are those
        +   * regions. For Cloud Storage this is the list of regions chosen for
        +   * dual-region storage. `file_store_location` will normally be the
        +   * corresponding multi-region for the list of individual locations. The first
        +   * region is always picked as the processing and storage location for the data
        +   * profile.
        +   * 
        + * + * repeated string data_storage_locations = 19; + * + * @param index The index of the value to return. + * @return The bytes of the dataStorageLocations at the given index. + */ + public com.google.protobuf.ByteString getDataStorageLocationsBytes(int index) { + return dataStorageLocations_.getByteString(index); + } + + public static final int LOCATION_TYPE_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private volatile java.lang.Object locationType_ = ""; + /** + * + * + *
        +   * The location type of the bucket (region, dual-region, multi-region, etc).
        +   * If dual-region, expect data_storage_locations to be populated.
        +   * 
        + * + * string location_type = 20; + * + * @return The locationType. + */ + @java.lang.Override + public java.lang.String getLocationType() { + java.lang.Object ref = locationType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + locationType_ = s; + return s; + } + } + /** + * + * + *
        +   * The location type of the bucket (region, dual-region, multi-region, etc).
        +   * If dual-region, expect data_storage_locations to be populated.
        +   * 
        + * + * string location_type = 20; + * + * @return The bytes for locationType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationTypeBytes() { + java.lang.Object ref = locationType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + locationType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_STORE_PATH_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object fileStorePath_ = ""; + /** + * + * + *
        +   * The file store path.
        +   *
        +   * * Cloud Storage: `gs://{bucket}`
        +   * 
        + * + * string file_store_path = 6; + * + * @return The fileStorePath. + */ + @java.lang.Override + public java.lang.String getFileStorePath() { + java.lang.Object ref = fileStorePath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileStorePath_ = s; + return s; + } + } + /** + * + * + *
        +   * The file store path.
        +   *
        +   * * Cloud Storage: `gs://{bucket}`
        +   * 
        + * + * string file_store_path = 6; + * + * @return The bytes for fileStorePath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileStorePathBytes() { + java.lang.Object ref = fileStorePath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileStorePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FULL_RESOURCE_FIELD_NUMBER = 24; + + @SuppressWarnings("serial") + private volatile java.lang.Object fullResource_ = ""; + /** + * + * + *
        +   * The resource name of the resource profiled.
        +   * https://cloud.google.com/apis/design/resource_names#full_resource_name
        +   * 
        + * + * string full_resource = 24; + * + * @return The fullResource. + */ + @java.lang.Override + public java.lang.String getFullResource() { + java.lang.Object ref = fullResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fullResource_ = s; + return s; + } + } + /** + * + * + *
        +   * The resource name of the resource profiled.
        +   * https://cloud.google.com/apis/design/resource_names#full_resource_name
        +   * 
        + * + * string full_resource = 24; + * + * @return The bytes for fullResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFullResourceBytes() { + java.lang.Object ref = fullResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fullResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIG_SNAPSHOT_FIELD_NUMBER = 7; + private com.google.privacy.dlp.v2.DataProfileConfigSnapshot configSnapshot_; + /** + * + * + *
        +   * The snapshot of the configurations used to generate the profile.
        +   * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + * + * @return Whether the configSnapshot field is set. + */ + @java.lang.Override + public boolean hasConfigSnapshot() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +   * The snapshot of the configurations used to generate the profile.
        +   * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + * + * @return The configSnapshot. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataProfileConfigSnapshot getConfigSnapshot() { + return configSnapshot_ == null + ? com.google.privacy.dlp.v2.DataProfileConfigSnapshot.getDefaultInstance() + : configSnapshot_; + } + /** + * + * + *
        +   * The snapshot of the configurations used to generate the profile.
        +   * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataProfileConfigSnapshotOrBuilder getConfigSnapshotOrBuilder() { + return configSnapshot_ == null + ? com.google.privacy.dlp.v2.DataProfileConfigSnapshot.getDefaultInstance() + : configSnapshot_; + } + + public static final int PROFILE_STATUS_FIELD_NUMBER = 8; + private com.google.privacy.dlp.v2.ProfileStatus profileStatus_; + /** + * + * + *
        +   * Success or error status from the most recent profile generation attempt.
        +   * May be empty if the profile is still being generated.
        +   * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + * + * @return Whether the profileStatus field is set. + */ + @java.lang.Override + public boolean hasProfileStatus() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
        +   * Success or error status from the most recent profile generation attempt.
        +   * May be empty if the profile is still being generated.
        +   * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + * + * @return The profileStatus. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ProfileStatus getProfileStatus() { + return profileStatus_ == null + ? com.google.privacy.dlp.v2.ProfileStatus.getDefaultInstance() + : profileStatus_; + } + /** + * + * + *
        +   * Success or error status from the most recent profile generation attempt.
        +   * May be empty if the profile is still being generated.
        +   * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ProfileStatusOrBuilder getProfileStatusOrBuilder() { + return profileStatus_ == null + ? com.google.privacy.dlp.v2.ProfileStatus.getDefaultInstance() + : profileStatus_; + } + + public static final int STATE_FIELD_NUMBER = 9; + private int state_ = 0; + /** + * + * + *
        +   * State of a profile.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
        +   * State of a profile.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; + * + * @return The state. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreDataProfile.State getState() { + com.google.privacy.dlp.v2.FileStoreDataProfile.State result = + com.google.privacy.dlp.v2.FileStoreDataProfile.State.forNumber(state_); + return result == null + ? com.google.privacy.dlp.v2.FileStoreDataProfile.State.UNRECOGNIZED + : result; + } + + public static final int PROFILE_LAST_GENERATED_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp profileLastGenerated_; + /** + * + * + *
        +   * The last time the profile was generated.
        +   * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + * + * @return Whether the profileLastGenerated field is set. + */ + @java.lang.Override + public boolean hasProfileLastGenerated() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
        +   * The last time the profile was generated.
        +   * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + * + * @return The profileLastGenerated. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getProfileLastGenerated() { + return profileLastGenerated_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : profileLastGenerated_; + } + /** + * + * + *
        +   * The last time the profile was generated.
        +   * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getProfileLastGeneratedOrBuilder() { + return profileLastGenerated_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : profileLastGenerated_; + } + + public static final int RESOURCE_VISIBILITY_FIELD_NUMBER = 11; + private int resourceVisibility_ = 0; + /** + * + * + *
        +   * How broadly a resource has been shared.
        +   * 
        + * + * .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; + * + * @return The enum numeric value on the wire for resourceVisibility. + */ + @java.lang.Override + public int getResourceVisibilityValue() { + return resourceVisibility_; + } + /** + * + * + *
        +   * How broadly a resource has been shared.
        +   * 
        + * + * .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; + * + * @return The resourceVisibility. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ResourceVisibility getResourceVisibility() { + com.google.privacy.dlp.v2.ResourceVisibility result = + com.google.privacy.dlp.v2.ResourceVisibility.forNumber(resourceVisibility_); + return result == null ? com.google.privacy.dlp.v2.ResourceVisibility.UNRECOGNIZED : result; + } + + public static final int SENSITIVITY_SCORE_FIELD_NUMBER = 12; + private com.google.privacy.dlp.v2.SensitivityScore sensitivityScore_; + /** + * + * + *
        +   * The sensitivity score of this resource.
        +   * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + * + * @return Whether the sensitivityScore field is set. + */ + @java.lang.Override + public boolean hasSensitivityScore() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
        +   * The sensitivity score of this resource.
        +   * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + * + * @return The sensitivityScore. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore() { + return sensitivityScore_ == null + ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance() + : sensitivityScore_; + } + /** + * + * + *
        +   * The sensitivity score of this resource.
        +   * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder() { + return sensitivityScore_ == null + ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance() + : sensitivityScore_; + } + + public static final int DATA_RISK_LEVEL_FIELD_NUMBER = 13; + private com.google.privacy.dlp.v2.DataRiskLevel dataRiskLevel_; + /** + * + * + *
        +   * The data risk level of this resource.
        +   * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + * + * @return Whether the dataRiskLevel field is set. + */ + @java.lang.Override + public boolean hasDataRiskLevel() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
        +   * The data risk level of this resource.
        +   * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + * + * @return The dataRiskLevel. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataRiskLevel getDataRiskLevel() { + return dataRiskLevel_ == null + ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance() + : dataRiskLevel_; + } + /** + * + * + *
        +   * The data risk level of this resource.
        +   * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataRiskLevelOrBuilder getDataRiskLevelOrBuilder() { + return dataRiskLevel_ == null + ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance() + : dataRiskLevel_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 14; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
        +   * The time the file store was first created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 14; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
        +   * The time the file store was first created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 14; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
        +   * The time the file store was first created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 14; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int LAST_MODIFIED_TIME_FIELD_NUMBER = 15; + private com.google.protobuf.Timestamp lastModifiedTime_; + /** + * + * + *
        +   * The time the file store was last modified.
        +   * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + * + * @return Whether the lastModifiedTime field is set. + */ + @java.lang.Override + public boolean hasLastModifiedTime() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
        +   * The time the file store was last modified.
        +   * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + * + * @return The lastModifiedTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastModifiedTime() { + return lastModifiedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastModifiedTime_; + } + /** + * + * + *
        +   * The time the file store was last modified.
        +   * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastModifiedTimeOrBuilder() { + return lastModifiedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastModifiedTime_; + } + + public static final int FILE_CLUSTER_SUMMARIES_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private java.util.List fileClusterSummaries_; + /** + * + * + *
        +   * FileClusterSummary per each cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + @java.lang.Override + public java.util.List + getFileClusterSummariesList() { + return fileClusterSummaries_; + } + /** + * + * + *
        +   * FileClusterSummary per each cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + @java.lang.Override + public java.util.List + getFileClusterSummariesOrBuilderList() { + return fileClusterSummaries_; + } + /** + * + * + *
        +   * FileClusterSummary per each cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + @java.lang.Override + public int getFileClusterSummariesCount() { + return fileClusterSummaries_.size(); + } + /** + * + * + *
        +   * FileClusterSummary per each cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileClusterSummary getFileClusterSummaries(int index) { + return fileClusterSummaries_.get(index); + } + /** + * + * + *
        +   * FileClusterSummary per each cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileClusterSummaryOrBuilder getFileClusterSummariesOrBuilder( + int index) { + return fileClusterSummaries_.get(index); + } + + public static final int RESOURCE_ATTRIBUTES_FIELD_NUMBER = 17; + + private static final class ResourceAttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreDataProfile_ResourceAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.privacy.dlp.v2.Value.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField + resourceAttributes_; + + private com.google.protobuf.MapField + internalGetResourceAttributes() { + if (resourceAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceAttributesDefaultEntryHolder.defaultEntry); + } + return resourceAttributes_; + } + + public int getResourceAttributesCount() { + return internalGetResourceAttributes().getMap().size(); + } + /** + * + * + *
        +   * Attributes of the resource being profiled.
        +   * Currently used attributes:
        +   *
        +   * * customer_managed_encryption: boolean
        +   *     - true: the resource is encrypted with a customer-managed key.
        +   *     - false: the resource is encrypted with a provider-managed key.
        +   * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + @java.lang.Override + public boolean containsResourceAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetResourceAttributes().getMap().containsKey(key); + } + /** Use {@link #getResourceAttributesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceAttributes() { + return getResourceAttributesMap(); + } + /** + * + * + *
        +   * Attributes of the resource being profiled.
        +   * Currently used attributes:
        +   *
        +   * * customer_managed_encryption: boolean
        +   *     - true: the resource is encrypted with a customer-managed key.
        +   *     - false: the resource is encrypted with a provider-managed key.
        +   * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + @java.lang.Override + public java.util.Map + getResourceAttributesMap() { + return internalGetResourceAttributes().getMap(); + } + /** + * + * + *
        +   * Attributes of the resource being profiled.
        +   * Currently used attributes:
        +   *
        +   * * customer_managed_encryption: boolean
        +   *     - true: the resource is encrypted with a customer-managed key.
        +   *     - false: the resource is encrypted with a provider-managed key.
        +   * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + @java.lang.Override + public /* nullable */ com.google.privacy.dlp.v2.Value getResourceAttributesOrDefault( + java.lang.String key, + /* nullable */ + com.google.privacy.dlp.v2.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
        +   * Attributes of the resource being profiled.
        +   * Currently used attributes:
        +   *
        +   * * customer_managed_encryption: boolean
        +   *     - true: the resource is encrypted with a customer-managed key.
        +   *     - false: the resource is encrypted with a provider-managed key.
        +   * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.Value getResourceAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int RESOURCE_LABELS_FIELD_NUMBER = 18; + + private static final class ResourceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreDataProfile_ResourceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField resourceLabels_; + + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + * + * + *
        +   * The labels applied to the resource at the time the profile was generated.
        +   * 
        + * + * map<string, string> resource_labels = 18; + */ + @java.lang.Override + public boolean containsResourceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetResourceLabels().getMap().containsKey(key); + } + /** Use {@link #getResourceLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceLabels() { + return getResourceLabelsMap(); + } + /** + * + * + *
        +   * The labels applied to the resource at the time the profile was generated.
        +   * 
        + * + * map<string, string> resource_labels = 18; + */ + @java.lang.Override + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + * + * + *
        +   * The labels applied to the resource at the time the profile was generated.
        +   * 
        + * + * map<string, string> resource_labels = 18; + */ + @java.lang.Override + public /* nullable */ java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
        +   * The labels applied to the resource at the time the profile was generated.
        +   * 
        + * + * map<string, string> resource_labels = 18; + */ + @java.lang.Override + public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int FILE_STORE_INFO_TYPE_SUMMARIES_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private java.util.List + fileStoreInfoTypeSummaries_; + /** + * + * + *
        +   * InfoTypes detected in this file store.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + @java.lang.Override + public java.util.List + getFileStoreInfoTypeSummariesList() { + return fileStoreInfoTypeSummaries_; + } + /** + * + * + *
        +   * InfoTypes detected in this file store.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + @java.lang.Override + public java.util.List + getFileStoreInfoTypeSummariesOrBuilderList() { + return fileStoreInfoTypeSummaries_; + } + /** + * + * + *
        +   * InfoTypes detected in this file store.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + @java.lang.Override + public int getFileStoreInfoTypeSummariesCount() { + return fileStoreInfoTypeSummaries_.size(); + } + /** + * + * + *
        +   * InfoTypes detected in this file store.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummary getFileStoreInfoTypeSummaries( + int index) { + return fileStoreInfoTypeSummaries_.get(index); + } + /** + * + * + *
        +   * InfoTypes detected in this file store.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummaryOrBuilder + getFileStoreInfoTypeSummariesOrBuilder(int index) { + return fileStoreInfoTypeSummaries_.get(index); + } + + public static final int FILE_STORE_IS_EMPTY_FIELD_NUMBER = 23; + private boolean fileStoreIsEmpty_ = false; + /** + * + * + *
        +   * The file store does not have any files.
        +   * 
        + * + * bool file_store_is_empty = 23; + * + * @return The fileStoreIsEmpty. + */ + @java.lang.Override + public boolean getFileStoreIsEmpty() { + return fileStoreIsEmpty_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDataSourceType()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectDataProfile_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, projectDataProfile_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileStoreLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileStoreLocation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileStorePath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, fileStorePath_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getConfigSnapshot()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getProfileStatus()); + } + if (state_ + != com.google.privacy.dlp.v2.FileStoreDataProfile.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(9, state_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getProfileLastGenerated()); + } + if (resourceVisibility_ + != com.google.privacy.dlp.v2.ResourceVisibility.RESOURCE_VISIBILITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(11, resourceVisibility_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(12, getSensitivityScore()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(13, getDataRiskLevel()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(14, getCreateTime()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(15, getLastModifiedTime()); + } + for (int i = 0; i < fileClusterSummaries_.size(); i++) { + output.writeMessage(16, fileClusterSummaries_.get(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetResourceAttributes(), + ResourceAttributesDefaultEntryHolder.defaultEntry, + 17); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 18); + for (int i = 0; i < dataStorageLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 19, dataStorageLocations_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, locationType_); + } + for (int i = 0; i < fileStoreInfoTypeSummaries_.size(); i++) { + output.writeMessage(21, fileStoreInfoTypeSummaries_.get(i)); + } + if (fileStoreIsEmpty_ != false) { + output.writeBool(23, fileStoreIsEmpty_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 24, fullResource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataSourceType()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectDataProfile_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, projectDataProfile_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileStoreLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, fileStoreLocation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileStorePath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, fileStorePath_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getConfigSnapshot()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getProfileStatus()); + } + if (state_ + != com.google.privacy.dlp.v2.FileStoreDataProfile.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getProfileLastGenerated()); + } + if (resourceVisibility_ + != com.google.privacy.dlp.v2.ResourceVisibility.RESOURCE_VISIBILITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, resourceVisibility_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSensitivityScore()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDataRiskLevel()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCreateTime()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getLastModifiedTime()); + } + for (int i = 0; i < fileClusterSummaries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, fileClusterSummaries_.get(i)); + } + for (java.util.Map.Entry entry : + internalGetResourceAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + resourceAttributes__ = + ResourceAttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, resourceAttributes__); + } + for (java.util.Map.Entry entry : + internalGetResourceLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry resourceLabels__ = + ResourceLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, resourceLabels__); + } + { + int dataSize = 0; + for (int i = 0; i < dataStorageLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(dataStorageLocations_.getRaw(i)); + } + size += dataSize; + size += 2 * getDataStorageLocationsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, locationType_); + } + for (int i = 0; i < fileStoreInfoTypeSummaries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, fileStoreInfoTypeSummaries_.get(i)); + } + if (fileStoreIsEmpty_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, fileStoreIsEmpty_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, fullResource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.FileStoreDataProfile)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.FileStoreDataProfile other = + (com.google.privacy.dlp.v2.FileStoreDataProfile) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDataSourceType() != other.hasDataSourceType()) return false; + if (hasDataSourceType()) { + if (!getDataSourceType().equals(other.getDataSourceType())) return false; + } + if (!getProjectDataProfile().equals(other.getProjectDataProfile())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getFileStoreLocation().equals(other.getFileStoreLocation())) return false; + if (!getDataStorageLocationsList().equals(other.getDataStorageLocationsList())) return false; + if (!getLocationType().equals(other.getLocationType())) return false; + if (!getFileStorePath().equals(other.getFileStorePath())) return false; + if (!getFullResource().equals(other.getFullResource())) return false; + if (hasConfigSnapshot() != other.hasConfigSnapshot()) return false; + if (hasConfigSnapshot()) { + if (!getConfigSnapshot().equals(other.getConfigSnapshot())) return false; + } + if (hasProfileStatus() != other.hasProfileStatus()) return false; + if (hasProfileStatus()) { + if (!getProfileStatus().equals(other.getProfileStatus())) return false; + } + if (state_ != other.state_) return false; + if (hasProfileLastGenerated() != other.hasProfileLastGenerated()) return false; + if (hasProfileLastGenerated()) { + if (!getProfileLastGenerated().equals(other.getProfileLastGenerated())) return false; + } + if (resourceVisibility_ != other.resourceVisibility_) return false; + if (hasSensitivityScore() != other.hasSensitivityScore()) return false; + if (hasSensitivityScore()) { + if (!getSensitivityScore().equals(other.getSensitivityScore())) return false; + } + if (hasDataRiskLevel() != other.hasDataRiskLevel()) return false; + if (hasDataRiskLevel()) { + if (!getDataRiskLevel().equals(other.getDataRiskLevel())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasLastModifiedTime() != other.hasLastModifiedTime()) return false; + if (hasLastModifiedTime()) { + if (!getLastModifiedTime().equals(other.getLastModifiedTime())) return false; + } + if (!getFileClusterSummariesList().equals(other.getFileClusterSummariesList())) return false; + if (!internalGetResourceAttributes().equals(other.internalGetResourceAttributes())) + return false; + if (!internalGetResourceLabels().equals(other.internalGetResourceLabels())) return false; + if (!getFileStoreInfoTypeSummariesList().equals(other.getFileStoreInfoTypeSummariesList())) + return false; + if (getFileStoreIsEmpty() != other.getFileStoreIsEmpty()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDataSourceType()) { + hash = (37 * hash) + DATA_SOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDataSourceType().hashCode(); + } + hash = (37 * hash) + PROJECT_DATA_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getProjectDataProfile().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + FILE_STORE_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getFileStoreLocation().hashCode(); + if (getDataStorageLocationsCount() > 0) { + hash = (37 * hash) + DATA_STORAGE_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getDataStorageLocationsList().hashCode(); + } + hash = (37 * hash) + LOCATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getLocationType().hashCode(); + hash = (37 * hash) + FILE_STORE_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFileStorePath().hashCode(); + hash = (37 * hash) + FULL_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getFullResource().hashCode(); + if (hasConfigSnapshot()) { + hash = (37 * hash) + CONFIG_SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getConfigSnapshot().hashCode(); + } + if (hasProfileStatus()) { + hash = (37 * hash) + PROFILE_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getProfileStatus().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasProfileLastGenerated()) { + hash = (37 * hash) + PROFILE_LAST_GENERATED_FIELD_NUMBER; + hash = (53 * hash) + getProfileLastGenerated().hashCode(); + } + hash = (37 * hash) + RESOURCE_VISIBILITY_FIELD_NUMBER; + hash = (53 * hash) + resourceVisibility_; + if (hasSensitivityScore()) { + hash = (37 * hash) + SENSITIVITY_SCORE_FIELD_NUMBER; + hash = (53 * hash) + getSensitivityScore().hashCode(); + } + if (hasDataRiskLevel()) { + hash = (37 * hash) + DATA_RISK_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getDataRiskLevel().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasLastModifiedTime()) { + hash = (37 * hash) + LAST_MODIFIED_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastModifiedTime().hashCode(); + } + if (getFileClusterSummariesCount() > 0) { + hash = (37 * hash) + FILE_CLUSTER_SUMMARIES_FIELD_NUMBER; + hash = (53 * hash) + getFileClusterSummariesList().hashCode(); + } + if (!internalGetResourceAttributes().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceAttributes().hashCode(); + } + if (!internalGetResourceLabels().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceLabels().hashCode(); + } + if (getFileStoreInfoTypeSummariesCount() > 0) { + hash = (37 * hash) + FILE_STORE_INFO_TYPE_SUMMARIES_FIELD_NUMBER; + hash = (53 * hash) + getFileStoreInfoTypeSummariesList().hashCode(); + } + hash = (37 * hash) + FILE_STORE_IS_EMPTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFileStoreIsEmpty()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.FileStoreDataProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreDataProfile parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreDataProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreDataProfile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreDataProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreDataProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreDataProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreDataProfile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreDataProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreDataProfile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreDataProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreDataProfile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.privacy.dlp.v2.FileStoreDataProfile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * The profile for a file store.
        +   *
        +   * * Cloud Storage: maps 1:1 with a bucket.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.FileStoreDataProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.FileStoreDataProfile) + com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreDataProfile_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 17: + return internalGetResourceAttributes(); + case 18: + return internalGetResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 17: + return internalGetMutableResourceAttributes(); + case 18: + return internalGetMutableResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreDataProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FileStoreDataProfile.class, + com.google.privacy.dlp.v2.FileStoreDataProfile.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.FileStoreDataProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDataSourceTypeFieldBuilder(); + getConfigSnapshotFieldBuilder(); + getProfileStatusFieldBuilder(); + getProfileLastGeneratedFieldBuilder(); + getSensitivityScoreFieldBuilder(); + getDataRiskLevelFieldBuilder(); + getCreateTimeFieldBuilder(); + getLastModifiedTimeFieldBuilder(); + getFileClusterSummariesFieldBuilder(); + getFileStoreInfoTypeSummariesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + dataSourceType_ = null; + if (dataSourceTypeBuilder_ != null) { + dataSourceTypeBuilder_.dispose(); + dataSourceTypeBuilder_ = null; + } + projectDataProfile_ = ""; + projectId_ = ""; + fileStoreLocation_ = ""; + dataStorageLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + locationType_ = ""; + fileStorePath_ = ""; + fullResource_ = ""; + configSnapshot_ = null; + if (configSnapshotBuilder_ != null) { + configSnapshotBuilder_.dispose(); + configSnapshotBuilder_ = null; + } + profileStatus_ = null; + if (profileStatusBuilder_ != null) { + profileStatusBuilder_.dispose(); + profileStatusBuilder_ = null; + } + state_ = 0; + profileLastGenerated_ = null; + if (profileLastGeneratedBuilder_ != null) { + profileLastGeneratedBuilder_.dispose(); + profileLastGeneratedBuilder_ = null; + } + resourceVisibility_ = 0; + sensitivityScore_ = null; + if (sensitivityScoreBuilder_ != null) { + sensitivityScoreBuilder_.dispose(); + sensitivityScoreBuilder_ = null; + } + dataRiskLevel_ = null; + if (dataRiskLevelBuilder_ != null) { + dataRiskLevelBuilder_.dispose(); + dataRiskLevelBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + lastModifiedTime_ = null; + if (lastModifiedTimeBuilder_ != null) { + lastModifiedTimeBuilder_.dispose(); + lastModifiedTimeBuilder_ = null; + } + if (fileClusterSummariesBuilder_ == null) { + fileClusterSummaries_ = java.util.Collections.emptyList(); + } else { + fileClusterSummaries_ = null; + fileClusterSummariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00040000); + internalGetMutableResourceAttributes().clear(); + internalGetMutableResourceLabels().clear(); + if (fileStoreInfoTypeSummariesBuilder_ == null) { + fileStoreInfoTypeSummaries_ = java.util.Collections.emptyList(); + } else { + fileStoreInfoTypeSummaries_ = null; + fileStoreInfoTypeSummariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00200000); + fileStoreIsEmpty_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreDataProfile_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreDataProfile getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreDataProfile build() { + com.google.privacy.dlp.v2.FileStoreDataProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreDataProfile buildPartial() { + com.google.privacy.dlp.v2.FileStoreDataProfile result = + new com.google.privacy.dlp.v2.FileStoreDataProfile(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.privacy.dlp.v2.FileStoreDataProfile result) { + if (fileClusterSummariesBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0)) { + fileClusterSummaries_ = java.util.Collections.unmodifiableList(fileClusterSummaries_); + bitField0_ = (bitField0_ & ~0x00040000); + } + result.fileClusterSummaries_ = fileClusterSummaries_; + } else { + result.fileClusterSummaries_ = fileClusterSummariesBuilder_.build(); + } + if (fileStoreInfoTypeSummariesBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0)) { + fileStoreInfoTypeSummaries_ = + java.util.Collections.unmodifiableList(fileStoreInfoTypeSummaries_); + bitField0_ = (bitField0_ & ~0x00200000); + } + result.fileStoreInfoTypeSummaries_ = fileStoreInfoTypeSummaries_; + } else { + result.fileStoreInfoTypeSummaries_ = fileStoreInfoTypeSummariesBuilder_.build(); + } + } + + private void buildPartial0(com.google.privacy.dlp.v2.FileStoreDataProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataSourceType_ = + dataSourceTypeBuilder_ == null ? dataSourceType_ : dataSourceTypeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.projectDataProfile_ = projectDataProfile_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.fileStoreLocation_ = fileStoreLocation_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + dataStorageLocations_.makeImmutable(); + result.dataStorageLocations_ = dataStorageLocations_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.locationType_ = locationType_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.fileStorePath_ = fileStorePath_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.fullResource_ = fullResource_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.configSnapshot_ = + configSnapshotBuilder_ == null ? configSnapshot_ : configSnapshotBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.profileStatus_ = + profileStatusBuilder_ == null ? profileStatus_ : profileStatusBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.profileLastGenerated_ = + profileLastGeneratedBuilder_ == null + ? profileLastGenerated_ + : profileLastGeneratedBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.resourceVisibility_ = resourceVisibility_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.sensitivityScore_ = + sensitivityScoreBuilder_ == null ? sensitivityScore_ : sensitivityScoreBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.dataRiskLevel_ = + dataRiskLevelBuilder_ == null ? dataRiskLevel_ : dataRiskLevelBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.lastModifiedTime_ = + lastModifiedTimeBuilder_ == null ? lastModifiedTime_ : lastModifiedTimeBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.resourceAttributes_ = + internalGetResourceAttributes() + .build(ResourceAttributesDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.fileStoreIsEmpty_ = fileStoreIsEmpty_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.FileStoreDataProfile) { + return mergeFrom((com.google.privacy.dlp.v2.FileStoreDataProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.FileStoreDataProfile other) { + if (other == com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDataSourceType()) { + mergeDataSourceType(other.getDataSourceType()); + } + if (!other.getProjectDataProfile().isEmpty()) { + projectDataProfile_ = other.projectDataProfile_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFileStoreLocation().isEmpty()) { + fileStoreLocation_ = other.fileStoreLocation_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.dataStorageLocations_.isEmpty()) { + if (dataStorageLocations_.isEmpty()) { + dataStorageLocations_ = other.dataStorageLocations_; + bitField0_ |= 0x00000020; + } else { + ensureDataStorageLocationsIsMutable(); + dataStorageLocations_.addAll(other.dataStorageLocations_); + } + onChanged(); + } + if (!other.getLocationType().isEmpty()) { + locationType_ = other.locationType_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getFileStorePath().isEmpty()) { + fileStorePath_ = other.fileStorePath_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getFullResource().isEmpty()) { + fullResource_ = other.fullResource_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasConfigSnapshot()) { + mergeConfigSnapshot(other.getConfigSnapshot()); + } + if (other.hasProfileStatus()) { + mergeProfileStatus(other.getProfileStatus()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasProfileLastGenerated()) { + mergeProfileLastGenerated(other.getProfileLastGenerated()); + } + if (other.resourceVisibility_ != 0) { + setResourceVisibilityValue(other.getResourceVisibilityValue()); + } + if (other.hasSensitivityScore()) { + mergeSensitivityScore(other.getSensitivityScore()); + } + if (other.hasDataRiskLevel()) { + mergeDataRiskLevel(other.getDataRiskLevel()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasLastModifiedTime()) { + mergeLastModifiedTime(other.getLastModifiedTime()); + } + if (fileClusterSummariesBuilder_ == null) { + if (!other.fileClusterSummaries_.isEmpty()) { + if (fileClusterSummaries_.isEmpty()) { + fileClusterSummaries_ = other.fileClusterSummaries_; + bitField0_ = (bitField0_ & ~0x00040000); + } else { + ensureFileClusterSummariesIsMutable(); + fileClusterSummaries_.addAll(other.fileClusterSummaries_); + } + onChanged(); + } + } else { + if (!other.fileClusterSummaries_.isEmpty()) { + if (fileClusterSummariesBuilder_.isEmpty()) { + fileClusterSummariesBuilder_.dispose(); + fileClusterSummariesBuilder_ = null; + fileClusterSummaries_ = other.fileClusterSummaries_; + bitField0_ = (bitField0_ & ~0x00040000); + fileClusterSummariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFileClusterSummariesFieldBuilder() + : null; + } else { + fileClusterSummariesBuilder_.addAllMessages(other.fileClusterSummaries_); + } + } + } + internalGetMutableResourceAttributes().mergeFrom(other.internalGetResourceAttributes()); + bitField0_ |= 0x00080000; + internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); + bitField0_ |= 0x00100000; + if (fileStoreInfoTypeSummariesBuilder_ == null) { + if (!other.fileStoreInfoTypeSummaries_.isEmpty()) { + if (fileStoreInfoTypeSummaries_.isEmpty()) { + fileStoreInfoTypeSummaries_ = other.fileStoreInfoTypeSummaries_; + bitField0_ = (bitField0_ & ~0x00200000); + } else { + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.addAll(other.fileStoreInfoTypeSummaries_); + } + onChanged(); + } + } else { + if (!other.fileStoreInfoTypeSummaries_.isEmpty()) { + if (fileStoreInfoTypeSummariesBuilder_.isEmpty()) { + fileStoreInfoTypeSummariesBuilder_.dispose(); + fileStoreInfoTypeSummariesBuilder_ = null; + fileStoreInfoTypeSummaries_ = other.fileStoreInfoTypeSummaries_; + bitField0_ = (bitField0_ & ~0x00200000); + fileStoreInfoTypeSummariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFileStoreInfoTypeSummariesFieldBuilder() + : null; + } else { + fileStoreInfoTypeSummariesBuilder_.addAllMessages(other.fileStoreInfoTypeSummaries_); + } + } + } + if (other.getFileStoreIsEmpty() != false) { + setFileStoreIsEmpty(other.getFileStoreIsEmpty()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDataSourceTypeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + projectDataProfile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + fileStoreLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + fileStorePath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: + { + input.readMessage(getConfigSnapshotFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 58 + case 66: + { + input.readMessage(getProfileStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 66 + case 72: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 72 + case 82: + { + input.readMessage( + getProfileLastGeneratedFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 82 + case 88: + { + resourceVisibility_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 88 + case 98: + { + input.readMessage( + getSensitivityScoreFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 98 + case 106: + { + input.readMessage(getDataRiskLevelFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 106 + case 114: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 114 + case 122: + { + input.readMessage( + getLastModifiedTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 122 + case 130: + { + com.google.privacy.dlp.v2.FileClusterSummary m = + input.readMessage( + com.google.privacy.dlp.v2.FileClusterSummary.parser(), extensionRegistry); + if (fileClusterSummariesBuilder_ == null) { + ensureFileClusterSummariesIsMutable(); + fileClusterSummaries_.add(m); + } else { + fileClusterSummariesBuilder_.addMessage(m); + } + break; + } // case 130 + case 138: + { + com.google.protobuf.MapEntry + resourceAttributes__ = + input.readMessage( + ResourceAttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableResourceAttributes() + .ensureBuilderMap() + .put(resourceAttributes__.getKey(), resourceAttributes__.getValue()); + bitField0_ |= 0x00080000; + break; + } // case 138 + case 146: + { + com.google.protobuf.MapEntry resourceLabels__ = + input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableResourceLabels() + .getMutableMap() + .put(resourceLabels__.getKey(), resourceLabels__.getValue()); + bitField0_ |= 0x00100000; + break; + } // case 146 + case 154: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDataStorageLocationsIsMutable(); + dataStorageLocations_.add(s); + break; + } // case 154 + case 162: + { + locationType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 162 + case 170: + { + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary m = + input.readMessage( + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.parser(), + extensionRegistry); + if (fileStoreInfoTypeSummariesBuilder_ == null) { + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.add(m); + } else { + fileStoreInfoTypeSummariesBuilder_.addMessage(m); + } + break; + } // case 170 + case 184: + { + fileStoreIsEmpty_ = input.readBool(); + bitField0_ |= 0x00400000; + break; + } // case 184 + case 194: + { + fullResource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 194 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
        +     * The name of the profile.
        +     * 
        + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * The name of the profile.
        +     * 
        + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * The name of the profile.
        +     * 
        + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The name of the profile.
        +     * 
        + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * The name of the profile.
        +     * 
        + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.privacy.dlp.v2.DataSourceType dataSourceType_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataSourceType, + com.google.privacy.dlp.v2.DataSourceType.Builder, + com.google.privacy.dlp.v2.DataSourceTypeOrBuilder> + dataSourceTypeBuilder_; + /** + * + * + *
        +     * The resource type that was profiled.
        +     * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + * + * @return Whether the dataSourceType field is set. + */ + public boolean hasDataSourceType() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +     * The resource type that was profiled.
        +     * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + * + * @return The dataSourceType. + */ + public com.google.privacy.dlp.v2.DataSourceType getDataSourceType() { + if (dataSourceTypeBuilder_ == null) { + return dataSourceType_ == null + ? com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance() + : dataSourceType_; + } else { + return dataSourceTypeBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The resource type that was profiled.
        +     * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + */ + public Builder setDataSourceType(com.google.privacy.dlp.v2.DataSourceType value) { + if (dataSourceTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSourceType_ = value; + } else { + dataSourceTypeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * The resource type that was profiled.
        +     * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + */ + public Builder setDataSourceType( + com.google.privacy.dlp.v2.DataSourceType.Builder builderForValue) { + if (dataSourceTypeBuilder_ == null) { + dataSourceType_ = builderForValue.build(); + } else { + dataSourceTypeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * The resource type that was profiled.
        +     * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + */ + public Builder mergeDataSourceType(com.google.privacy.dlp.v2.DataSourceType value) { + if (dataSourceTypeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && dataSourceType_ != null + && dataSourceType_ != com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance()) { + getDataSourceTypeBuilder().mergeFrom(value); + } else { + dataSourceType_ = value; + } + } else { + dataSourceTypeBuilder_.mergeFrom(value); + } + if (dataSourceType_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The resource type that was profiled.
        +     * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + */ + public Builder clearDataSourceType() { + bitField0_ = (bitField0_ & ~0x00000002); + dataSourceType_ = null; + if (dataSourceTypeBuilder_ != null) { + dataSourceTypeBuilder_.dispose(); + dataSourceTypeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The resource type that was profiled.
        +     * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + */ + public com.google.privacy.dlp.v2.DataSourceType.Builder getDataSourceTypeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDataSourceTypeFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The resource type that was profiled.
        +     * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + */ + public com.google.privacy.dlp.v2.DataSourceTypeOrBuilder getDataSourceTypeOrBuilder() { + if (dataSourceTypeBuilder_ != null) { + return dataSourceTypeBuilder_.getMessageOrBuilder(); + } else { + return dataSourceType_ == null + ? com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance() + : dataSourceType_; + } + } + /** + * + * + *
        +     * The resource type that was profiled.
        +     * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataSourceType, + com.google.privacy.dlp.v2.DataSourceType.Builder, + com.google.privacy.dlp.v2.DataSourceTypeOrBuilder> + getDataSourceTypeFieldBuilder() { + if (dataSourceTypeBuilder_ == null) { + dataSourceTypeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataSourceType, + com.google.privacy.dlp.v2.DataSourceType.Builder, + com.google.privacy.dlp.v2.DataSourceTypeOrBuilder>( + getDataSourceType(), getParentForChildren(), isClean()); + dataSourceType_ = null; + } + return dataSourceTypeBuilder_; + } + + private java.lang.Object projectDataProfile_ = ""; + /** + * + * + *
        +     * The resource name of the project data profile for this file store.
        +     * 
        + * + * string project_data_profile = 3; + * + * @return The projectDataProfile. + */ + public java.lang.String getProjectDataProfile() { + java.lang.Object ref = projectDataProfile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectDataProfile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * The resource name of the project data profile for this file store.
        +     * 
        + * + * string project_data_profile = 3; + * + * @return The bytes for projectDataProfile. + */ + public com.google.protobuf.ByteString getProjectDataProfileBytes() { + java.lang.Object ref = projectDataProfile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectDataProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * The resource name of the project data profile for this file store.
        +     * 
        + * + * string project_data_profile = 3; + * + * @param value The projectDataProfile to set. + * @return This builder for chaining. + */ + public Builder setProjectDataProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectDataProfile_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * The resource name of the project data profile for this file store.
        +     * 
        + * + * string project_data_profile = 3; + * + * @return This builder for chaining. + */ + public Builder clearProjectDataProfile() { + projectDataProfile_ = getDefaultInstance().getProjectDataProfile(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +     * The resource name of the project data profile for this file store.
        +     * 
        + * + * string project_data_profile = 3; + * + * @param value The bytes for projectDataProfile to set. + * @return This builder for chaining. + */ + public Builder setProjectDataProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectDataProfile_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
        +     * The Google Cloud project ID that owns the resource.
        +     * 
        + * + * string project_id = 4; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * The Google Cloud project ID that owns the resource.
        +     * 
        + * + * string project_id = 4; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * The Google Cloud project ID that owns the resource.
        +     * 
        + * + * string project_id = 4; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +     * The Google Cloud project ID that owns the resource.
        +     * 
        + * + * string project_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
        +     * The Google Cloud project ID that owns the resource.
        +     * 
        + * + * string project_id = 4; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object fileStoreLocation_ = ""; + /** + * + * + *
        +     * The location of the file store.
        +     *
        +     * * Cloud Storage:
        +     * https://cloud.google.com/storage/docs/locations#available-locations
        +     * 
        + * + * string file_store_location = 5; + * + * @return The fileStoreLocation. + */ + public java.lang.String getFileStoreLocation() { + java.lang.Object ref = fileStoreLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileStoreLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * The location of the file store.
        +     *
        +     * * Cloud Storage:
        +     * https://cloud.google.com/storage/docs/locations#available-locations
        +     * 
        + * + * string file_store_location = 5; + * + * @return The bytes for fileStoreLocation. + */ + public com.google.protobuf.ByteString getFileStoreLocationBytes() { + java.lang.Object ref = fileStoreLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileStoreLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * The location of the file store.
        +     *
        +     * * Cloud Storage:
        +     * https://cloud.google.com/storage/docs/locations#available-locations
        +     * 
        + * + * string file_store_location = 5; + * + * @param value The fileStoreLocation to set. + * @return This builder for chaining. + */ + public Builder setFileStoreLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fileStoreLocation_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
        +     * The location of the file store.
        +     *
        +     * * Cloud Storage:
        +     * https://cloud.google.com/storage/docs/locations#available-locations
        +     * 
        + * + * string file_store_location = 5; + * + * @return This builder for chaining. + */ + public Builder clearFileStoreLocation() { + fileStoreLocation_ = getDefaultInstance().getFileStoreLocation(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
        +     * The location of the file store.
        +     *
        +     * * Cloud Storage:
        +     * https://cloud.google.com/storage/docs/locations#available-locations
        +     * 
        + * + * string file_store_location = 5; + * + * @param value The bytes for fileStoreLocation to set. + * @return This builder for chaining. + */ + public Builder setFileStoreLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fileStoreLocation_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList dataStorageLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDataStorageLocationsIsMutable() { + if (!dataStorageLocations_.isModifiable()) { + dataStorageLocations_ = new com.google.protobuf.LazyStringArrayList(dataStorageLocations_); + } + bitField0_ |= 0x00000020; + } + /** + * + * + *
        +     * For resources that have multiple storage locations, these are those
        +     * regions. For Cloud Storage this is the list of regions chosen for
        +     * dual-region storage. `file_store_location` will normally be the
        +     * corresponding multi-region for the list of individual locations. The first
        +     * region is always picked as the processing and storage location for the data
        +     * profile.
        +     * 
        + * + * repeated string data_storage_locations = 19; + * + * @return A list containing the dataStorageLocations. + */ + public com.google.protobuf.ProtocolStringList getDataStorageLocationsList() { + dataStorageLocations_.makeImmutable(); + return dataStorageLocations_; + } + /** + * + * + *
        +     * For resources that have multiple storage locations, these are those
        +     * regions. For Cloud Storage this is the list of regions chosen for
        +     * dual-region storage. `file_store_location` will normally be the
        +     * corresponding multi-region for the list of individual locations. The first
        +     * region is always picked as the processing and storage location for the data
        +     * profile.
        +     * 
        + * + * repeated string data_storage_locations = 19; + * + * @return The count of dataStorageLocations. + */ + public int getDataStorageLocationsCount() { + return dataStorageLocations_.size(); + } + /** + * + * + *
        +     * For resources that have multiple storage locations, these are those
        +     * regions. For Cloud Storage this is the list of regions chosen for
        +     * dual-region storage. `file_store_location` will normally be the
        +     * corresponding multi-region for the list of individual locations. The first
        +     * region is always picked as the processing and storage location for the data
        +     * profile.
        +     * 
        + * + * repeated string data_storage_locations = 19; + * + * @param index The index of the element to return. + * @return The dataStorageLocations at the given index. + */ + public java.lang.String getDataStorageLocations(int index) { + return dataStorageLocations_.get(index); + } + /** + * + * + *
        +     * For resources that have multiple storage locations, these are those
        +     * regions. For Cloud Storage this is the list of regions chosen for
        +     * dual-region storage. `file_store_location` will normally be the
        +     * corresponding multi-region for the list of individual locations. The first
        +     * region is always picked as the processing and storage location for the data
        +     * profile.
        +     * 
        + * + * repeated string data_storage_locations = 19; + * + * @param index The index of the value to return. + * @return The bytes of the dataStorageLocations at the given index. + */ + public com.google.protobuf.ByteString getDataStorageLocationsBytes(int index) { + return dataStorageLocations_.getByteString(index); + } + /** + * + * + *
        +     * For resources that have multiple storage locations, these are those
        +     * regions. For Cloud Storage this is the list of regions chosen for
        +     * dual-region storage. `file_store_location` will normally be the
        +     * corresponding multi-region for the list of individual locations. The first
        +     * region is always picked as the processing and storage location for the data
        +     * profile.
        +     * 
        + * + * repeated string data_storage_locations = 19; + * + * @param index The index to set the value at. + * @param value The dataStorageLocations to set. + * @return This builder for chaining. + */ + public Builder setDataStorageLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStorageLocationsIsMutable(); + dataStorageLocations_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
        +     * For resources that have multiple storage locations, these are those
        +     * regions. For Cloud Storage this is the list of regions chosen for
        +     * dual-region storage. `file_store_location` will normally be the
        +     * corresponding multi-region for the list of individual locations. The first
        +     * region is always picked as the processing and storage location for the data
        +     * profile.
        +     * 
        + * + * repeated string data_storage_locations = 19; + * + * @param value The dataStorageLocations to add. + * @return This builder for chaining. + */ + public Builder addDataStorageLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStorageLocationsIsMutable(); + dataStorageLocations_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
        +     * For resources that have multiple storage locations, these are those
        +     * regions. For Cloud Storage this is the list of regions chosen for
        +     * dual-region storage. `file_store_location` will normally be the
        +     * corresponding multi-region for the list of individual locations. The first
        +     * region is always picked as the processing and storage location for the data
        +     * profile.
        +     * 
        + * + * repeated string data_storage_locations = 19; + * + * @param values The dataStorageLocations to add. + * @return This builder for chaining. + */ + public Builder addAllDataStorageLocations(java.lang.Iterable values) { + ensureDataStorageLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStorageLocations_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
        +     * For resources that have multiple storage locations, these are those
        +     * regions. For Cloud Storage this is the list of regions chosen for
        +     * dual-region storage. `file_store_location` will normally be the
        +     * corresponding multi-region for the list of individual locations. The first
        +     * region is always picked as the processing and storage location for the data
        +     * profile.
        +     * 
        + * + * repeated string data_storage_locations = 19; + * + * @return This builder for chaining. + */ + public Builder clearDataStorageLocations() { + dataStorageLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + /** + * + * + *
        +     * For resources that have multiple storage locations, these are those
        +     * regions. For Cloud Storage this is the list of regions chosen for
        +     * dual-region storage. `file_store_location` will normally be the
        +     * corresponding multi-region for the list of individual locations. The first
        +     * region is always picked as the processing and storage location for the data
        +     * profile.
        +     * 
        + * + * repeated string data_storage_locations = 19; + * + * @param value The bytes of the dataStorageLocations to add. + * @return This builder for chaining. + */ + public Builder addDataStorageLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDataStorageLocationsIsMutable(); + dataStorageLocations_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object locationType_ = ""; + /** + * + * + *
        +     * The location type of the bucket (region, dual-region, multi-region, etc).
        +     * If dual-region, expect data_storage_locations to be populated.
        +     * 
        + * + * string location_type = 20; + * + * @return The locationType. + */ + public java.lang.String getLocationType() { + java.lang.Object ref = locationType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + locationType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * The location type of the bucket (region, dual-region, multi-region, etc).
        +     * If dual-region, expect data_storage_locations to be populated.
        +     * 
        + * + * string location_type = 20; + * + * @return The bytes for locationType. + */ + public com.google.protobuf.ByteString getLocationTypeBytes() { + java.lang.Object ref = locationType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + locationType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * The location type of the bucket (region, dual-region, multi-region, etc).
        +     * If dual-region, expect data_storage_locations to be populated.
        +     * 
        + * + * string location_type = 20; + * + * @param value The locationType to set. + * @return This builder for chaining. + */ + public Builder setLocationType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + locationType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
        +     * The location type of the bucket (region, dual-region, multi-region, etc).
        +     * If dual-region, expect data_storage_locations to be populated.
        +     * 
        + * + * string location_type = 20; + * + * @return This builder for chaining. + */ + public Builder clearLocationType() { + locationType_ = getDefaultInstance().getLocationType(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
        +     * The location type of the bucket (region, dual-region, multi-region, etc).
        +     * If dual-region, expect data_storage_locations to be populated.
        +     * 
        + * + * string location_type = 20; + * + * @param value The bytes for locationType to set. + * @return This builder for chaining. + */ + public Builder setLocationTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locationType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object fileStorePath_ = ""; + /** + * + * + *
        +     * The file store path.
        +     *
        +     * * Cloud Storage: `gs://{bucket}`
        +     * 
        + * + * string file_store_path = 6; + * + * @return The fileStorePath. + */ + public java.lang.String getFileStorePath() { + java.lang.Object ref = fileStorePath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileStorePath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * The file store path.
        +     *
        +     * * Cloud Storage: `gs://{bucket}`
        +     * 
        + * + * string file_store_path = 6; + * + * @return The bytes for fileStorePath. + */ + public com.google.protobuf.ByteString getFileStorePathBytes() { + java.lang.Object ref = fileStorePath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileStorePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * The file store path.
        +     *
        +     * * Cloud Storage: `gs://{bucket}`
        +     * 
        + * + * string file_store_path = 6; + * + * @param value The fileStorePath to set. + * @return This builder for chaining. + */ + public Builder setFileStorePath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fileStorePath_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
        +     * The file store path.
        +     *
        +     * * Cloud Storage: `gs://{bucket}`
        +     * 
        + * + * string file_store_path = 6; + * + * @return This builder for chaining. + */ + public Builder clearFileStorePath() { + fileStorePath_ = getDefaultInstance().getFileStorePath(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
        +     * The file store path.
        +     *
        +     * * Cloud Storage: `gs://{bucket}`
        +     * 
        + * + * string file_store_path = 6; + * + * @param value The bytes for fileStorePath to set. + * @return This builder for chaining. + */ + public Builder setFileStorePathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fileStorePath_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object fullResource_ = ""; + /** + * + * + *
        +     * The resource name of the resource profiled.
        +     * https://cloud.google.com/apis/design/resource_names#full_resource_name
        +     * 
        + * + * string full_resource = 24; + * + * @return The fullResource. + */ + public java.lang.String getFullResource() { + java.lang.Object ref = fullResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fullResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * The resource name of the resource profiled.
        +     * https://cloud.google.com/apis/design/resource_names#full_resource_name
        +     * 
        + * + * string full_resource = 24; + * + * @return The bytes for fullResource. + */ + public com.google.protobuf.ByteString getFullResourceBytes() { + java.lang.Object ref = fullResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fullResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * The resource name of the resource profiled.
        +     * https://cloud.google.com/apis/design/resource_names#full_resource_name
        +     * 
        + * + * string full_resource = 24; + * + * @param value The fullResource to set. + * @return This builder for chaining. + */ + public Builder setFullResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fullResource_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
        +     * The resource name of the resource profiled.
        +     * https://cloud.google.com/apis/design/resource_names#full_resource_name
        +     * 
        + * + * string full_resource = 24; + * + * @return This builder for chaining. + */ + public Builder clearFullResource() { + fullResource_ = getDefaultInstance().getFullResource(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
        +     * The resource name of the resource profiled.
        +     * https://cloud.google.com/apis/design/resource_names#full_resource_name
        +     * 
        + * + * string full_resource = 24; + * + * @param value The bytes for fullResource to set. + * @return This builder for chaining. + */ + public Builder setFullResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fullResource_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.privacy.dlp.v2.DataProfileConfigSnapshot configSnapshot_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataProfileConfigSnapshot, + com.google.privacy.dlp.v2.DataProfileConfigSnapshot.Builder, + com.google.privacy.dlp.v2.DataProfileConfigSnapshotOrBuilder> + configSnapshotBuilder_; + /** + * + * + *
        +     * The snapshot of the configurations used to generate the profile.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + * + * @return Whether the configSnapshot field is set. + */ + public boolean hasConfigSnapshot() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
        +     * The snapshot of the configurations used to generate the profile.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + * + * @return The configSnapshot. + */ + public com.google.privacy.dlp.v2.DataProfileConfigSnapshot getConfigSnapshot() { + if (configSnapshotBuilder_ == null) { + return configSnapshot_ == null + ? com.google.privacy.dlp.v2.DataProfileConfigSnapshot.getDefaultInstance() + : configSnapshot_; + } else { + return configSnapshotBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The snapshot of the configurations used to generate the profile.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + */ + public Builder setConfigSnapshot(com.google.privacy.dlp.v2.DataProfileConfigSnapshot value) { + if (configSnapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configSnapshot_ = value; + } else { + configSnapshotBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
        +     * The snapshot of the configurations used to generate the profile.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + */ + public Builder setConfigSnapshot( + com.google.privacy.dlp.v2.DataProfileConfigSnapshot.Builder builderForValue) { + if (configSnapshotBuilder_ == null) { + configSnapshot_ = builderForValue.build(); + } else { + configSnapshotBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
        +     * The snapshot of the configurations used to generate the profile.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + */ + public Builder mergeConfigSnapshot(com.google.privacy.dlp.v2.DataProfileConfigSnapshot value) { + if (configSnapshotBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && configSnapshot_ != null + && configSnapshot_ + != com.google.privacy.dlp.v2.DataProfileConfigSnapshot.getDefaultInstance()) { + getConfigSnapshotBuilder().mergeFrom(value); + } else { + configSnapshot_ = value; + } + } else { + configSnapshotBuilder_.mergeFrom(value); + } + if (configSnapshot_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The snapshot of the configurations used to generate the profile.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + */ + public Builder clearConfigSnapshot() { + bitField0_ = (bitField0_ & ~0x00000200); + configSnapshot_ = null; + if (configSnapshotBuilder_ != null) { + configSnapshotBuilder_.dispose(); + configSnapshotBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The snapshot of the configurations used to generate the profile.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + */ + public com.google.privacy.dlp.v2.DataProfileConfigSnapshot.Builder getConfigSnapshotBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getConfigSnapshotFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The snapshot of the configurations used to generate the profile.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + */ + public com.google.privacy.dlp.v2.DataProfileConfigSnapshotOrBuilder + getConfigSnapshotOrBuilder() { + if (configSnapshotBuilder_ != null) { + return configSnapshotBuilder_.getMessageOrBuilder(); + } else { + return configSnapshot_ == null + ? com.google.privacy.dlp.v2.DataProfileConfigSnapshot.getDefaultInstance() + : configSnapshot_; + } + } + /** + * + * + *
        +     * The snapshot of the configurations used to generate the profile.
        +     * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataProfileConfigSnapshot, + com.google.privacy.dlp.v2.DataProfileConfigSnapshot.Builder, + com.google.privacy.dlp.v2.DataProfileConfigSnapshotOrBuilder> + getConfigSnapshotFieldBuilder() { + if (configSnapshotBuilder_ == null) { + configSnapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataProfileConfigSnapshot, + com.google.privacy.dlp.v2.DataProfileConfigSnapshot.Builder, + com.google.privacy.dlp.v2.DataProfileConfigSnapshotOrBuilder>( + getConfigSnapshot(), getParentForChildren(), isClean()); + configSnapshot_ = null; + } + return configSnapshotBuilder_; + } + + private com.google.privacy.dlp.v2.ProfileStatus profileStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProfileStatus, + com.google.privacy.dlp.v2.ProfileStatus.Builder, + com.google.privacy.dlp.v2.ProfileStatusOrBuilder> + profileStatusBuilder_; + /** + * + * + *
        +     * Success or error status from the most recent profile generation attempt.
        +     * May be empty if the profile is still being generated.
        +     * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + * + * @return Whether the profileStatus field is set. + */ + public boolean hasProfileStatus() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
        +     * Success or error status from the most recent profile generation attempt.
        +     * May be empty if the profile is still being generated.
        +     * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + * + * @return The profileStatus. + */ + public com.google.privacy.dlp.v2.ProfileStatus getProfileStatus() { + if (profileStatusBuilder_ == null) { + return profileStatus_ == null + ? com.google.privacy.dlp.v2.ProfileStatus.getDefaultInstance() + : profileStatus_; + } else { + return profileStatusBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Success or error status from the most recent profile generation attempt.
        +     * May be empty if the profile is still being generated.
        +     * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + */ + public Builder setProfileStatus(com.google.privacy.dlp.v2.ProfileStatus value) { + if (profileStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profileStatus_ = value; + } else { + profileStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
        +     * Success or error status from the most recent profile generation attempt.
        +     * May be empty if the profile is still being generated.
        +     * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + */ + public Builder setProfileStatus( + com.google.privacy.dlp.v2.ProfileStatus.Builder builderForValue) { + if (profileStatusBuilder_ == null) { + profileStatus_ = builderForValue.build(); + } else { + profileStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
        +     * Success or error status from the most recent profile generation attempt.
        +     * May be empty if the profile is still being generated.
        +     * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + */ + public Builder mergeProfileStatus(com.google.privacy.dlp.v2.ProfileStatus value) { + if (profileStatusBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && profileStatus_ != null + && profileStatus_ != com.google.privacy.dlp.v2.ProfileStatus.getDefaultInstance()) { + getProfileStatusBuilder().mergeFrom(value); + } else { + profileStatus_ = value; + } + } else { + profileStatusBuilder_.mergeFrom(value); + } + if (profileStatus_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Success or error status from the most recent profile generation attempt.
        +     * May be empty if the profile is still being generated.
        +     * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + */ + public Builder clearProfileStatus() { + bitField0_ = (bitField0_ & ~0x00000400); + profileStatus_ = null; + if (profileStatusBuilder_ != null) { + profileStatusBuilder_.dispose(); + profileStatusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Success or error status from the most recent profile generation attempt.
        +     * May be empty if the profile is still being generated.
        +     * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + */ + public com.google.privacy.dlp.v2.ProfileStatus.Builder getProfileStatusBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getProfileStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Success or error status from the most recent profile generation attempt.
        +     * May be empty if the profile is still being generated.
        +     * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + */ + public com.google.privacy.dlp.v2.ProfileStatusOrBuilder getProfileStatusOrBuilder() { + if (profileStatusBuilder_ != null) { + return profileStatusBuilder_.getMessageOrBuilder(); + } else { + return profileStatus_ == null + ? com.google.privacy.dlp.v2.ProfileStatus.getDefaultInstance() + : profileStatus_; + } + } + /** + * + * + *
        +     * Success or error status from the most recent profile generation attempt.
        +     * May be empty if the profile is still being generated.
        +     * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProfileStatus, + com.google.privacy.dlp.v2.ProfileStatus.Builder, + com.google.privacy.dlp.v2.ProfileStatusOrBuilder> + getProfileStatusFieldBuilder() { + if (profileStatusBuilder_ == null) { + profileStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProfileStatus, + com.google.privacy.dlp.v2.ProfileStatus.Builder, + com.google.privacy.dlp.v2.ProfileStatusOrBuilder>( + getProfileStatus(), getParentForChildren(), isClean()); + profileStatus_ = null; + } + return profileStatusBuilder_; + } + + private int state_ = 0; + /** + * + * + *
        +     * State of a profile.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
        +     * State of a profile.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
        +     * State of a profile.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; + * + * @return The state. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreDataProfile.State getState() { + com.google.privacy.dlp.v2.FileStoreDataProfile.State result = + com.google.privacy.dlp.v2.FileStoreDataProfile.State.forNumber(state_); + return result == null + ? com.google.privacy.dlp.v2.FileStoreDataProfile.State.UNRECOGNIZED + : result; + } + /** + * + * + *
        +     * State of a profile.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.privacy.dlp.v2.FileStoreDataProfile.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +     * State of a profile.
        +     * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000800); + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp profileLastGenerated_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + profileLastGeneratedBuilder_; + /** + * + * + *
        +     * The last time the profile was generated.
        +     * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + * + * @return Whether the profileLastGenerated field is set. + */ + public boolean hasProfileLastGenerated() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
        +     * The last time the profile was generated.
        +     * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + * + * @return The profileLastGenerated. + */ + public com.google.protobuf.Timestamp getProfileLastGenerated() { + if (profileLastGeneratedBuilder_ == null) { + return profileLastGenerated_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : profileLastGenerated_; + } else { + return profileLastGeneratedBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The last time the profile was generated.
        +     * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + */ + public Builder setProfileLastGenerated(com.google.protobuf.Timestamp value) { + if (profileLastGeneratedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profileLastGenerated_ = value; + } else { + profileLastGeneratedBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
        +     * The last time the profile was generated.
        +     * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + */ + public Builder setProfileLastGenerated(com.google.protobuf.Timestamp.Builder builderForValue) { + if (profileLastGeneratedBuilder_ == null) { + profileLastGenerated_ = builderForValue.build(); + } else { + profileLastGeneratedBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
        +     * The last time the profile was generated.
        +     * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + */ + public Builder mergeProfileLastGenerated(com.google.protobuf.Timestamp value) { + if (profileLastGeneratedBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && profileLastGenerated_ != null + && profileLastGenerated_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getProfileLastGeneratedBuilder().mergeFrom(value); + } else { + profileLastGenerated_ = value; + } + } else { + profileLastGeneratedBuilder_.mergeFrom(value); + } + if (profileLastGenerated_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The last time the profile was generated.
        +     * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + */ + public Builder clearProfileLastGenerated() { + bitField0_ = (bitField0_ & ~0x00001000); + profileLastGenerated_ = null; + if (profileLastGeneratedBuilder_ != null) { + profileLastGeneratedBuilder_.dispose(); + profileLastGeneratedBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The last time the profile was generated.
        +     * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + */ + public com.google.protobuf.Timestamp.Builder getProfileLastGeneratedBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getProfileLastGeneratedFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The last time the profile was generated.
        +     * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + */ + public com.google.protobuf.TimestampOrBuilder getProfileLastGeneratedOrBuilder() { + if (profileLastGeneratedBuilder_ != null) { + return profileLastGeneratedBuilder_.getMessageOrBuilder(); + } else { + return profileLastGenerated_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : profileLastGenerated_; + } + } + /** + * + * + *
        +     * The last time the profile was generated.
        +     * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getProfileLastGeneratedFieldBuilder() { + if (profileLastGeneratedBuilder_ == null) { + profileLastGeneratedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getProfileLastGenerated(), getParentForChildren(), isClean()); + profileLastGenerated_ = null; + } + return profileLastGeneratedBuilder_; + } + + private int resourceVisibility_ = 0; + /** + * + * + *
        +     * How broadly a resource has been shared.
        +     * 
        + * + * .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; + * + * @return The enum numeric value on the wire for resourceVisibility. + */ + @java.lang.Override + public int getResourceVisibilityValue() { + return resourceVisibility_; + } + /** + * + * + *
        +     * How broadly a resource has been shared.
        +     * 
        + * + * .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; + * + * @param value The enum numeric value on the wire for resourceVisibility to set. + * @return This builder for chaining. + */ + public Builder setResourceVisibilityValue(int value) { + resourceVisibility_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
        +     * How broadly a resource has been shared.
        +     * 
        + * + * .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; + * + * @return The resourceVisibility. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ResourceVisibility getResourceVisibility() { + com.google.privacy.dlp.v2.ResourceVisibility result = + com.google.privacy.dlp.v2.ResourceVisibility.forNumber(resourceVisibility_); + return result == null ? com.google.privacy.dlp.v2.ResourceVisibility.UNRECOGNIZED : result; + } + /** + * + * + *
        +     * How broadly a resource has been shared.
        +     * 
        + * + * .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; + * + * @param value The resourceVisibility to set. + * @return This builder for chaining. + */ + public Builder setResourceVisibility(com.google.privacy.dlp.v2.ResourceVisibility value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + resourceVisibility_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +     * How broadly a resource has been shared.
        +     * 
        + * + * .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; + * + * @return This builder for chaining. + */ + public Builder clearResourceVisibility() { + bitField0_ = (bitField0_ & ~0x00002000); + resourceVisibility_ = 0; + onChanged(); + return this; + } + + private com.google.privacy.dlp.v2.SensitivityScore sensitivityScore_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.SensitivityScore, + com.google.privacy.dlp.v2.SensitivityScore.Builder, + com.google.privacy.dlp.v2.SensitivityScoreOrBuilder> + sensitivityScoreBuilder_; + /** + * + * + *
        +     * The sensitivity score of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + * + * @return Whether the sensitivityScore field is set. + */ + public boolean hasSensitivityScore() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
        +     * The sensitivity score of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + * + * @return The sensitivityScore. + */ + public com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore() { + if (sensitivityScoreBuilder_ == null) { + return sensitivityScore_ == null + ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance() + : sensitivityScore_; + } else { + return sensitivityScoreBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The sensitivity score of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + */ + public Builder setSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore value) { + if (sensitivityScoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sensitivityScore_ = value; + } else { + sensitivityScoreBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
        +     * The sensitivity score of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + */ + public Builder setSensitivityScore( + com.google.privacy.dlp.v2.SensitivityScore.Builder builderForValue) { + if (sensitivityScoreBuilder_ == null) { + sensitivityScore_ = builderForValue.build(); + } else { + sensitivityScoreBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
        +     * The sensitivity score of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + */ + public Builder mergeSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore value) { + if (sensitivityScoreBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && sensitivityScore_ != null + && sensitivityScore_ + != com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance()) { + getSensitivityScoreBuilder().mergeFrom(value); + } else { + sensitivityScore_ = value; + } + } else { + sensitivityScoreBuilder_.mergeFrom(value); + } + if (sensitivityScore_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The sensitivity score of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + */ + public Builder clearSensitivityScore() { + bitField0_ = (bitField0_ & ~0x00004000); + sensitivityScore_ = null; + if (sensitivityScoreBuilder_ != null) { + sensitivityScoreBuilder_.dispose(); + sensitivityScoreBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The sensitivity score of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + */ + public com.google.privacy.dlp.v2.SensitivityScore.Builder getSensitivityScoreBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getSensitivityScoreFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The sensitivity score of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + */ + public com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder() { + if (sensitivityScoreBuilder_ != null) { + return sensitivityScoreBuilder_.getMessageOrBuilder(); + } else { + return sensitivityScore_ == null + ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance() + : sensitivityScore_; + } + } + /** + * + * + *
        +     * The sensitivity score of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.SensitivityScore, + com.google.privacy.dlp.v2.SensitivityScore.Builder, + com.google.privacy.dlp.v2.SensitivityScoreOrBuilder> + getSensitivityScoreFieldBuilder() { + if (sensitivityScoreBuilder_ == null) { + sensitivityScoreBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.SensitivityScore, + com.google.privacy.dlp.v2.SensitivityScore.Builder, + com.google.privacy.dlp.v2.SensitivityScoreOrBuilder>( + getSensitivityScore(), getParentForChildren(), isClean()); + sensitivityScore_ = null; + } + return sensitivityScoreBuilder_; + } + + private com.google.privacy.dlp.v2.DataRiskLevel dataRiskLevel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataRiskLevel, + com.google.privacy.dlp.v2.DataRiskLevel.Builder, + com.google.privacy.dlp.v2.DataRiskLevelOrBuilder> + dataRiskLevelBuilder_; + /** + * + * + *
        +     * The data risk level of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + * + * @return Whether the dataRiskLevel field is set. + */ + public boolean hasDataRiskLevel() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
        +     * The data risk level of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + * + * @return The dataRiskLevel. + */ + public com.google.privacy.dlp.v2.DataRiskLevel getDataRiskLevel() { + if (dataRiskLevelBuilder_ == null) { + return dataRiskLevel_ == null + ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance() + : dataRiskLevel_; + } else { + return dataRiskLevelBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The data risk level of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + */ + public Builder setDataRiskLevel(com.google.privacy.dlp.v2.DataRiskLevel value) { + if (dataRiskLevelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataRiskLevel_ = value; + } else { + dataRiskLevelBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
        +     * The data risk level of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + */ + public Builder setDataRiskLevel( + com.google.privacy.dlp.v2.DataRiskLevel.Builder builderForValue) { + if (dataRiskLevelBuilder_ == null) { + dataRiskLevel_ = builderForValue.build(); + } else { + dataRiskLevelBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
        +     * The data risk level of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + */ + public Builder mergeDataRiskLevel(com.google.privacy.dlp.v2.DataRiskLevel value) { + if (dataRiskLevelBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && dataRiskLevel_ != null + && dataRiskLevel_ != com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance()) { + getDataRiskLevelBuilder().mergeFrom(value); + } else { + dataRiskLevel_ = value; + } + } else { + dataRiskLevelBuilder_.mergeFrom(value); + } + if (dataRiskLevel_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The data risk level of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + */ + public Builder clearDataRiskLevel() { + bitField0_ = (bitField0_ & ~0x00008000); + dataRiskLevel_ = null; + if (dataRiskLevelBuilder_ != null) { + dataRiskLevelBuilder_.dispose(); + dataRiskLevelBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The data risk level of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + */ + public com.google.privacy.dlp.v2.DataRiskLevel.Builder getDataRiskLevelBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getDataRiskLevelFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The data risk level of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + */ + public com.google.privacy.dlp.v2.DataRiskLevelOrBuilder getDataRiskLevelOrBuilder() { + if (dataRiskLevelBuilder_ != null) { + return dataRiskLevelBuilder_.getMessageOrBuilder(); + } else { + return dataRiskLevel_ == null + ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance() + : dataRiskLevel_; + } + } + /** + * + * + *
        +     * The data risk level of this resource.
        +     * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataRiskLevel, + com.google.privacy.dlp.v2.DataRiskLevel.Builder, + com.google.privacy.dlp.v2.DataRiskLevelOrBuilder> + getDataRiskLevelFieldBuilder() { + if (dataRiskLevelBuilder_ == null) { + dataRiskLevelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataRiskLevel, + com.google.privacy.dlp.v2.DataRiskLevel.Builder, + com.google.privacy.dlp.v2.DataRiskLevelOrBuilder>( + getDataRiskLevel(), getParentForChildren(), isClean()); + dataRiskLevel_ = null; + } + return dataRiskLevelBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
        +     * The time the file store was first created.
        +     * 
        + * + * .google.protobuf.Timestamp create_time = 14; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
        +     * The time the file store was first created.
        +     * 
        + * + * .google.protobuf.Timestamp create_time = 14; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The time the file store was first created.
        +     * 
        + * + * .google.protobuf.Timestamp create_time = 14; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
        +     * The time the file store was first created.
        +     * 
        + * + * .google.protobuf.Timestamp create_time = 14; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
        +     * The time the file store was first created.
        +     * 
        + * + * .google.protobuf.Timestamp create_time = 14; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The time the file store was first created.
        +     * 
        + * + * .google.protobuf.Timestamp create_time = 14; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00010000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The time the file store was first created.
        +     * 
        + * + * .google.protobuf.Timestamp create_time = 14; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The time the file store was first created.
        +     * 
        + * + * .google.protobuf.Timestamp create_time = 14; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
        +     * The time the file store was first created.
        +     * 
        + * + * .google.protobuf.Timestamp create_time = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp lastModifiedTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastModifiedTimeBuilder_; + /** + * + * + *
        +     * The time the file store was last modified.
        +     * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + * + * @return Whether the lastModifiedTime field is set. + */ + public boolean hasLastModifiedTime() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * + * + *
        +     * The time the file store was last modified.
        +     * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + * + * @return The lastModifiedTime. + */ + public com.google.protobuf.Timestamp getLastModifiedTime() { + if (lastModifiedTimeBuilder_ == null) { + return lastModifiedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastModifiedTime_; + } else { + return lastModifiedTimeBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The time the file store was last modified.
        +     * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + */ + public Builder setLastModifiedTime(com.google.protobuf.Timestamp value) { + if (lastModifiedTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastModifiedTime_ = value; + } else { + lastModifiedTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
        +     * The time the file store was last modified.
        +     * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + */ + public Builder setLastModifiedTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastModifiedTimeBuilder_ == null) { + lastModifiedTime_ = builderForValue.build(); + } else { + lastModifiedTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
        +     * The time the file store was last modified.
        +     * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + */ + public Builder mergeLastModifiedTime(com.google.protobuf.Timestamp value) { + if (lastModifiedTimeBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && lastModifiedTime_ != null + && lastModifiedTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastModifiedTimeBuilder().mergeFrom(value); + } else { + lastModifiedTime_ = value; + } + } else { + lastModifiedTimeBuilder_.mergeFrom(value); + } + if (lastModifiedTime_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The time the file store was last modified.
        +     * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + */ + public Builder clearLastModifiedTime() { + bitField0_ = (bitField0_ & ~0x00020000); + lastModifiedTime_ = null; + if (lastModifiedTimeBuilder_ != null) { + lastModifiedTimeBuilder_.dispose(); + lastModifiedTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The time the file store was last modified.
        +     * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + */ + public com.google.protobuf.Timestamp.Builder getLastModifiedTimeBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getLastModifiedTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The time the file store was last modified.
        +     * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + */ + public com.google.protobuf.TimestampOrBuilder getLastModifiedTimeOrBuilder() { + if (lastModifiedTimeBuilder_ != null) { + return lastModifiedTimeBuilder_.getMessageOrBuilder(); + } else { + return lastModifiedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastModifiedTime_; + } + } + /** + * + * + *
        +     * The time the file store was last modified.
        +     * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLastModifiedTimeFieldBuilder() { + if (lastModifiedTimeBuilder_ == null) { + lastModifiedTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastModifiedTime(), getParentForChildren(), isClean()); + lastModifiedTime_ = null; + } + return lastModifiedTimeBuilder_; + } + + private java.util.List fileClusterSummaries_ = + java.util.Collections.emptyList(); + + private void ensureFileClusterSummariesIsMutable() { + if (!((bitField0_ & 0x00040000) != 0)) { + fileClusterSummaries_ = + new java.util.ArrayList( + fileClusterSummaries_); + bitField0_ |= 0x00040000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileClusterSummary, + com.google.privacy.dlp.v2.FileClusterSummary.Builder, + com.google.privacy.dlp.v2.FileClusterSummaryOrBuilder> + fileClusterSummariesBuilder_; + + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public java.util.List + getFileClusterSummariesList() { + if (fileClusterSummariesBuilder_ == null) { + return java.util.Collections.unmodifiableList(fileClusterSummaries_); + } else { + return fileClusterSummariesBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public int getFileClusterSummariesCount() { + if (fileClusterSummariesBuilder_ == null) { + return fileClusterSummaries_.size(); + } else { + return fileClusterSummariesBuilder_.getCount(); + } + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public com.google.privacy.dlp.v2.FileClusterSummary getFileClusterSummaries(int index) { + if (fileClusterSummariesBuilder_ == null) { + return fileClusterSummaries_.get(index); + } else { + return fileClusterSummariesBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public Builder setFileClusterSummaries( + int index, com.google.privacy.dlp.v2.FileClusterSummary value) { + if (fileClusterSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileClusterSummariesIsMutable(); + fileClusterSummaries_.set(index, value); + onChanged(); + } else { + fileClusterSummariesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public Builder setFileClusterSummaries( + int index, com.google.privacy.dlp.v2.FileClusterSummary.Builder builderForValue) { + if (fileClusterSummariesBuilder_ == null) { + ensureFileClusterSummariesIsMutable(); + fileClusterSummaries_.set(index, builderForValue.build()); + onChanged(); + } else { + fileClusterSummariesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public Builder addFileClusterSummaries(com.google.privacy.dlp.v2.FileClusterSummary value) { + if (fileClusterSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileClusterSummariesIsMutable(); + fileClusterSummaries_.add(value); + onChanged(); + } else { + fileClusterSummariesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public Builder addFileClusterSummaries( + int index, com.google.privacy.dlp.v2.FileClusterSummary value) { + if (fileClusterSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileClusterSummariesIsMutable(); + fileClusterSummaries_.add(index, value); + onChanged(); + } else { + fileClusterSummariesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public Builder addFileClusterSummaries( + com.google.privacy.dlp.v2.FileClusterSummary.Builder builderForValue) { + if (fileClusterSummariesBuilder_ == null) { + ensureFileClusterSummariesIsMutable(); + fileClusterSummaries_.add(builderForValue.build()); + onChanged(); + } else { + fileClusterSummariesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public Builder addFileClusterSummaries( + int index, com.google.privacy.dlp.v2.FileClusterSummary.Builder builderForValue) { + if (fileClusterSummariesBuilder_ == null) { + ensureFileClusterSummariesIsMutable(); + fileClusterSummaries_.add(index, builderForValue.build()); + onChanged(); + } else { + fileClusterSummariesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public Builder addAllFileClusterSummaries( + java.lang.Iterable values) { + if (fileClusterSummariesBuilder_ == null) { + ensureFileClusterSummariesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileClusterSummaries_); + onChanged(); + } else { + fileClusterSummariesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public Builder clearFileClusterSummaries() { + if (fileClusterSummariesBuilder_ == null) { + fileClusterSummaries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + } else { + fileClusterSummariesBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public Builder removeFileClusterSummaries(int index) { + if (fileClusterSummariesBuilder_ == null) { + ensureFileClusterSummariesIsMutable(); + fileClusterSummaries_.remove(index); + onChanged(); + } else { + fileClusterSummariesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public com.google.privacy.dlp.v2.FileClusterSummary.Builder getFileClusterSummariesBuilder( + int index) { + return getFileClusterSummariesFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public com.google.privacy.dlp.v2.FileClusterSummaryOrBuilder getFileClusterSummariesOrBuilder( + int index) { + if (fileClusterSummariesBuilder_ == null) { + return fileClusterSummaries_.get(index); + } else { + return fileClusterSummariesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public java.util.List + getFileClusterSummariesOrBuilderList() { + if (fileClusterSummariesBuilder_ != null) { + return fileClusterSummariesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fileClusterSummaries_); + } + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public com.google.privacy.dlp.v2.FileClusterSummary.Builder addFileClusterSummariesBuilder() { + return getFileClusterSummariesFieldBuilder() + .addBuilder(com.google.privacy.dlp.v2.FileClusterSummary.getDefaultInstance()); + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public com.google.privacy.dlp.v2.FileClusterSummary.Builder addFileClusterSummariesBuilder( + int index) { + return getFileClusterSummariesFieldBuilder() + .addBuilder(index, com.google.privacy.dlp.v2.FileClusterSummary.getDefaultInstance()); + } + /** + * + * + *
        +     * FileClusterSummary per each cluster.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + public java.util.List + getFileClusterSummariesBuilderList() { + return getFileClusterSummariesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileClusterSummary, + com.google.privacy.dlp.v2.FileClusterSummary.Builder, + com.google.privacy.dlp.v2.FileClusterSummaryOrBuilder> + getFileClusterSummariesFieldBuilder() { + if (fileClusterSummariesBuilder_ == null) { + fileClusterSummariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileClusterSummary, + com.google.privacy.dlp.v2.FileClusterSummary.Builder, + com.google.privacy.dlp.v2.FileClusterSummaryOrBuilder>( + fileClusterSummaries_, + ((bitField0_ & 0x00040000) != 0), + getParentForChildren(), + isClean()); + fileClusterSummaries_ = null; + } + return fileClusterSummariesBuilder_; + } + + private static final class ResourceAttributesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.privacy.dlp.v2.ValueOrBuilder, + com.google.privacy.dlp.v2.Value> { + @java.lang.Override + public com.google.privacy.dlp.v2.Value build(com.google.privacy.dlp.v2.ValueOrBuilder val) { + if (val instanceof com.google.privacy.dlp.v2.Value) { + return (com.google.privacy.dlp.v2.Value) val; + } + return ((com.google.privacy.dlp.v2.Value.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry + defaultEntry() { + return ResourceAttributesDefaultEntryHolder.defaultEntry; + } + }; + + private static final ResourceAttributesConverter resourceAttributesConverter = + new ResourceAttributesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.privacy.dlp.v2.ValueOrBuilder, + com.google.privacy.dlp.v2.Value, + com.google.privacy.dlp.v2.Value.Builder> + resourceAttributes_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.privacy.dlp.v2.ValueOrBuilder, + com.google.privacy.dlp.v2.Value, + com.google.privacy.dlp.v2.Value.Builder> + internalGetResourceAttributes() { + if (resourceAttributes_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(resourceAttributesConverter); + } + return resourceAttributes_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.privacy.dlp.v2.ValueOrBuilder, + com.google.privacy.dlp.v2.Value, + com.google.privacy.dlp.v2.Value.Builder> + internalGetMutableResourceAttributes() { + if (resourceAttributes_ == null) { + resourceAttributes_ = + new com.google.protobuf.MapFieldBuilder<>(resourceAttributesConverter); + } + bitField0_ |= 0x00080000; + onChanged(); + return resourceAttributes_; + } + + public int getResourceAttributesCount() { + return internalGetResourceAttributes().ensureBuilderMap().size(); + } + /** + * + * + *
        +     * Attributes of the resource being profiled.
        +     * Currently used attributes:
        +     *
        +     * * customer_managed_encryption: boolean
        +     *     - true: the resource is encrypted with a customer-managed key.
        +     *     - false: the resource is encrypted with a provider-managed key.
        +     * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + @java.lang.Override + public boolean containsResourceAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetResourceAttributes().ensureBuilderMap().containsKey(key); + } + /** Use {@link #getResourceAttributesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getResourceAttributes() { + return getResourceAttributesMap(); + } + /** + * + * + *
        +     * Attributes of the resource being profiled.
        +     * Currently used attributes:
        +     *
        +     * * customer_managed_encryption: boolean
        +     *     - true: the resource is encrypted with a customer-managed key.
        +     *     - false: the resource is encrypted with a provider-managed key.
        +     * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + @java.lang.Override + public java.util.Map + getResourceAttributesMap() { + return internalGetResourceAttributes().getImmutableMap(); + } + /** + * + * + *
        +     * Attributes of the resource being profiled.
        +     * Currently used attributes:
        +     *
        +     * * customer_managed_encryption: boolean
        +     *     - true: the resource is encrypted with a customer-managed key.
        +     *     - false: the resource is encrypted with a provider-managed key.
        +     * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + @java.lang.Override + public /* nullable */ com.google.privacy.dlp.v2.Value getResourceAttributesOrDefault( + java.lang.String key, + /* nullable */ + com.google.privacy.dlp.v2.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableResourceAttributes().ensureBuilderMap(); + return map.containsKey(key) ? resourceAttributesConverter.build(map.get(key)) : defaultValue; + } + /** + * + * + *
        +     * Attributes of the resource being profiled.
        +     * Currently used attributes:
        +     *
        +     * * customer_managed_encryption: boolean
        +     *     - true: the resource is encrypted with a customer-managed key.
        +     *     - false: the resource is encrypted with a provider-managed key.
        +     * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.Value getResourceAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableResourceAttributes().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return resourceAttributesConverter.build(map.get(key)); + } + + public Builder clearResourceAttributes() { + bitField0_ = (bitField0_ & ~0x00080000); + internalGetMutableResourceAttributes().clear(); + return this; + } + /** + * + * + *
        +     * Attributes of the resource being profiled.
        +     * Currently used attributes:
        +     *
        +     * * customer_managed_encryption: boolean
        +     *     - true: the resource is encrypted with a customer-managed key.
        +     *     - false: the resource is encrypted with a provider-managed key.
        +     * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + public Builder removeResourceAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableResourceAttributes().ensureBuilderMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableResourceAttributes() { + bitField0_ |= 0x00080000; + return internalGetMutableResourceAttributes().ensureMessageMap(); + } + /** + * + * + *
        +     * Attributes of the resource being profiled.
        +     * Currently used attributes:
        +     *
        +     * * customer_managed_encryption: boolean
        +     *     - true: the resource is encrypted with a customer-managed key.
        +     *     - false: the resource is encrypted with a provider-managed key.
        +     * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + public Builder putResourceAttributes( + java.lang.String key, com.google.privacy.dlp.v2.Value value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableResourceAttributes().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00080000; + return this; + } + /** + * + * + *
        +     * Attributes of the resource being profiled.
        +     * Currently used attributes:
        +     *
        +     * * customer_managed_encryption: boolean
        +     *     - true: the resource is encrypted with a customer-managed key.
        +     *     - false: the resource is encrypted with a provider-managed key.
        +     * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + public Builder putAllResourceAttributes( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableResourceAttributes().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00080000; + return this; + } + /** + * + * + *
        +     * Attributes of the resource being profiled.
        +     * Currently used attributes:
        +     *
        +     * * customer_managed_encryption: boolean
        +     *     - true: the resource is encrypted with a customer-managed key.
        +     *     - false: the resource is encrypted with a provider-managed key.
        +     * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + public com.google.privacy.dlp.v2.Value.Builder putResourceAttributesBuilderIfAbsent( + java.lang.String key) { + java.util.Map builderMap = + internalGetMutableResourceAttributes().ensureBuilderMap(); + com.google.privacy.dlp.v2.ValueOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.privacy.dlp.v2.Value.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.privacy.dlp.v2.Value) { + entry = ((com.google.privacy.dlp.v2.Value) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.privacy.dlp.v2.Value.Builder) entry; + } + + private com.google.protobuf.MapField resourceLabels_; + + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + if (resourceLabels_ == null) { + resourceLabels_ = + com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + bitField0_ |= 0x00100000; + onChanged(); + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + * + * + *
        +     * The labels applied to the resource at the time the profile was generated.
        +     * 
        + * + * map<string, string> resource_labels = 18; + */ + @java.lang.Override + public boolean containsResourceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetResourceLabels().getMap().containsKey(key); + } + /** Use {@link #getResourceLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceLabels() { + return getResourceLabelsMap(); + } + /** + * + * + *
        +     * The labels applied to the resource at the time the profile was generated.
        +     * 
        + * + * map<string, string> resource_labels = 18; + */ + @java.lang.Override + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + * + * + *
        +     * The labels applied to the resource at the time the profile was generated.
        +     * 
        + * + * map<string, string> resource_labels = 18; + */ + @java.lang.Override + public /* nullable */ java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
        +     * The labels applied to the resource at the time the profile was generated.
        +     * 
        + * + * map<string, string> resource_labels = 18; + */ + @java.lang.Override + public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearResourceLabels() { + bitField0_ = (bitField0_ & ~0x00100000); + internalGetMutableResourceLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
        +     * The labels applied to the resource at the time the profile was generated.
        +     * 
        + * + * map<string, string> resource_labels = 18; + */ + public Builder removeResourceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableResourceLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableResourceLabels() { + bitField0_ |= 0x00100000; + return internalGetMutableResourceLabels().getMutableMap(); + } + /** + * + * + *
        +     * The labels applied to the resource at the time the profile was generated.
        +     * 
        + * + * map<string, string> resource_labels = 18; + */ + public Builder putResourceLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableResourceLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00100000; + return this; + } + /** + * + * + *
        +     * The labels applied to the resource at the time the profile was generated.
        +     * 
        + * + * map<string, string> resource_labels = 18; + */ + public Builder putAllResourceLabels(java.util.Map values) { + internalGetMutableResourceLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00100000; + return this; + } + + private java.util.List + fileStoreInfoTypeSummaries_ = java.util.Collections.emptyList(); + + private void ensureFileStoreInfoTypeSummariesIsMutable() { + if (!((bitField0_ & 0x00200000) != 0)) { + fileStoreInfoTypeSummaries_ = + new java.util.ArrayList( + fileStoreInfoTypeSummaries_); + bitField0_ |= 0x00200000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary, + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder, + com.google.privacy.dlp.v2.FileStoreInfoTypeSummaryOrBuilder> + fileStoreInfoTypeSummariesBuilder_; + + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public java.util.List + getFileStoreInfoTypeSummariesList() { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + return java.util.Collections.unmodifiableList(fileStoreInfoTypeSummaries_); + } else { + return fileStoreInfoTypeSummariesBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public int getFileStoreInfoTypeSummariesCount() { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + return fileStoreInfoTypeSummaries_.size(); + } else { + return fileStoreInfoTypeSummariesBuilder_.getCount(); + } + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummary getFileStoreInfoTypeSummaries( + int index) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + return fileStoreInfoTypeSummaries_.get(index); + } else { + return fileStoreInfoTypeSummariesBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public Builder setFileStoreInfoTypeSummaries( + int index, com.google.privacy.dlp.v2.FileStoreInfoTypeSummary value) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.set(index, value); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public Builder setFileStoreInfoTypeSummaries( + int index, com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder builderForValue) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.set(index, builderForValue.build()); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public Builder addFileStoreInfoTypeSummaries( + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary value) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.add(value); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public Builder addFileStoreInfoTypeSummaries( + int index, com.google.privacy.dlp.v2.FileStoreInfoTypeSummary value) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.add(index, value); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public Builder addFileStoreInfoTypeSummaries( + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder builderForValue) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.add(builderForValue.build()); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public Builder addFileStoreInfoTypeSummaries( + int index, com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder builderForValue) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.add(index, builderForValue.build()); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public Builder addAllFileStoreInfoTypeSummaries( + java.lang.Iterable values) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + ensureFileStoreInfoTypeSummariesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileStoreInfoTypeSummaries_); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public Builder clearFileStoreInfoTypeSummaries() { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + fileStoreInfoTypeSummaries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public Builder removeFileStoreInfoTypeSummaries(int index) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + ensureFileStoreInfoTypeSummariesIsMutable(); + fileStoreInfoTypeSummaries_.remove(index); + onChanged(); + } else { + fileStoreInfoTypeSummariesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder + getFileStoreInfoTypeSummariesBuilder(int index) { + return getFileStoreInfoTypeSummariesFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummaryOrBuilder + getFileStoreInfoTypeSummariesOrBuilder(int index) { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + return fileStoreInfoTypeSummaries_.get(index); + } else { + return fileStoreInfoTypeSummariesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public java.util.List + getFileStoreInfoTypeSummariesOrBuilderList() { + if (fileStoreInfoTypeSummariesBuilder_ != null) { + return fileStoreInfoTypeSummariesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fileStoreInfoTypeSummaries_); + } + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder + addFileStoreInfoTypeSummariesBuilder() { + return getFileStoreInfoTypeSummariesFieldBuilder() + .addBuilder(com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.getDefaultInstance()); + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder + addFileStoreInfoTypeSummariesBuilder(int index) { + return getFileStoreInfoTypeSummariesFieldBuilder() + .addBuilder( + index, com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.getDefaultInstance()); + } + /** + * + * + *
        +     * InfoTypes detected in this file store.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + public java.util.List + getFileStoreInfoTypeSummariesBuilderList() { + return getFileStoreInfoTypeSummariesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary, + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder, + com.google.privacy.dlp.v2.FileStoreInfoTypeSummaryOrBuilder> + getFileStoreInfoTypeSummariesFieldBuilder() { + if (fileStoreInfoTypeSummariesBuilder_ == null) { + fileStoreInfoTypeSummariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary, + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder, + com.google.privacy.dlp.v2.FileStoreInfoTypeSummaryOrBuilder>( + fileStoreInfoTypeSummaries_, + ((bitField0_ & 0x00200000) != 0), + getParentForChildren(), + isClean()); + fileStoreInfoTypeSummaries_ = null; + } + return fileStoreInfoTypeSummariesBuilder_; + } + + private boolean fileStoreIsEmpty_; + /** + * + * + *
        +     * The file store does not have any files.
        +     * 
        + * + * bool file_store_is_empty = 23; + * + * @return The fileStoreIsEmpty. + */ + @java.lang.Override + public boolean getFileStoreIsEmpty() { + return fileStoreIsEmpty_; + } + /** + * + * + *
        +     * The file store does not have any files.
        +     * 
        + * + * bool file_store_is_empty = 23; + * + * @param value The fileStoreIsEmpty to set. + * @return This builder for chaining. + */ + public Builder setFileStoreIsEmpty(boolean value) { + + fileStoreIsEmpty_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
        +     * The file store does not have any files.
        +     * 
        + * + * bool file_store_is_empty = 23; + * + * @return This builder for chaining. + */ + public Builder clearFileStoreIsEmpty() { + bitField0_ = (bitField0_ & ~0x00400000); + fileStoreIsEmpty_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.FileStoreDataProfile) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FileStoreDataProfile) + private static final com.google.privacy.dlp.v2.FileStoreDataProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.FileStoreDataProfile(); + } + + public static com.google.privacy.dlp.v2.FileStoreDataProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileStoreDataProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreDataProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfileName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfileName.java new file mode 100644 index 000000000000..180a258650cf --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfileName.java @@ -0,0 +1,369 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.privacy.dlp.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class FileStoreDataProfileName implements ResourceName { + private static final PathTemplate ORGANIZATION_LOCATION_FILE_STORE_DATA_PROFILE = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}"); + private static final PathTemplate PROJECT_LOCATION_FILE_STORE_DATA_PROFILE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String organization; + private final String location; + private final String fileStoreDataProfile; + private final String project; + + @Deprecated + protected FileStoreDataProfileName() { + organization = null; + location = null; + fileStoreDataProfile = null; + project = null; + } + + private FileStoreDataProfileName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + fileStoreDataProfile = Preconditions.checkNotNull(builder.getFileStoreDataProfile()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_FILE_STORE_DATA_PROFILE; + } + + private FileStoreDataProfileName(ProjectLocationFileStoreDataProfileBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + fileStoreDataProfile = Preconditions.checkNotNull(builder.getFileStoreDataProfile()); + organization = null; + pathTemplate = PROJECT_LOCATION_FILE_STORE_DATA_PROFILE; + } + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getFileStoreDataProfile() { + return fileStoreDataProfile; + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newOrganizationLocationFileStoreDataProfileBuilder() { + return new Builder(); + } + + public static ProjectLocationFileStoreDataProfileBuilder + newProjectLocationFileStoreDataProfileBuilder() { + return new ProjectLocationFileStoreDataProfileBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FileStoreDataProfileName of( + String organization, String location, String fileStoreDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setFileStoreDataProfile(fileStoreDataProfile) + .build(); + } + + public static FileStoreDataProfileName ofOrganizationLocationFileStoreDataProfileName( + String organization, String location, String fileStoreDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setFileStoreDataProfile(fileStoreDataProfile) + .build(); + } + + public static FileStoreDataProfileName ofProjectLocationFileStoreDataProfileName( + String project, String location, String fileStoreDataProfile) { + return newProjectLocationFileStoreDataProfileBuilder() + .setProject(project) + .setLocation(location) + .setFileStoreDataProfile(fileStoreDataProfile) + .build(); + } + + public static String format(String organization, String location, String fileStoreDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setFileStoreDataProfile(fileStoreDataProfile) + .build() + .toString(); + } + + public static String formatOrganizationLocationFileStoreDataProfileName( + String organization, String location, String fileStoreDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setFileStoreDataProfile(fileStoreDataProfile) + .build() + .toString(); + } + + public static String formatProjectLocationFileStoreDataProfileName( + String project, String location, String fileStoreDataProfile) { + return newProjectLocationFileStoreDataProfileBuilder() + .setProject(project) + .setLocation(location) + .setFileStoreDataProfile(fileStoreDataProfile) + .build() + .toString(); + } + + public static FileStoreDataProfileName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (ORGANIZATION_LOCATION_FILE_STORE_DATA_PROFILE.matches(formattedString)) { + Map matchMap = + ORGANIZATION_LOCATION_FILE_STORE_DATA_PROFILE.match(formattedString); + return ofOrganizationLocationFileStoreDataProfileName( + matchMap.get("organization"), + matchMap.get("location"), + matchMap.get("file_store_data_profile")); + } else if (PROJECT_LOCATION_FILE_STORE_DATA_PROFILE.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_FILE_STORE_DATA_PROFILE.match(formattedString); + return ofProjectLocationFileStoreDataProfileName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("file_store_data_profile")); + } + throw new ValidationException( + "FileStoreDataProfileName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (FileStoreDataProfileName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_LOCATION_FILE_STORE_DATA_PROFILE.matches(formattedString) + || PROJECT_LOCATION_FILE_STORE_DATA_PROFILE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (fileStoreDataProfile != null) { + fieldMapBuilder.put("file_store_data_profile", fileStoreDataProfile); + } + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FileStoreDataProfileName that = ((FileStoreDataProfileName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.location, that.location) + && Objects.equals(this.fileStoreDataProfile, that.fileStoreDataProfile) + && Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(fileStoreDataProfile); + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** + * Builder for + * organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}. + */ + public static class Builder { + private String organization; + private String location; + private String fileStoreDataProfile; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getFileStoreDataProfile() { + return fileStoreDataProfile; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFileStoreDataProfile(String fileStoreDataProfile) { + this.fileStoreDataProfile = fileStoreDataProfile; + return this; + } + + private Builder(FileStoreDataProfileName fileStoreDataProfileName) { + Preconditions.checkArgument( + Objects.equals( + fileStoreDataProfileName.pathTemplate, ORGANIZATION_LOCATION_FILE_STORE_DATA_PROFILE), + "toBuilder is only supported when FileStoreDataProfileName has the pattern of organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}"); + this.organization = fileStoreDataProfileName.organization; + this.location = fileStoreDataProfileName.location; + this.fileStoreDataProfile = fileStoreDataProfileName.fileStoreDataProfile; + } + + public FileStoreDataProfileName build() { + return new FileStoreDataProfileName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}. + */ + public static class ProjectLocationFileStoreDataProfileBuilder { + private String project; + private String location; + private String fileStoreDataProfile; + + protected ProjectLocationFileStoreDataProfileBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFileStoreDataProfile() { + return fileStoreDataProfile; + } + + public ProjectLocationFileStoreDataProfileBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationFileStoreDataProfileBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationFileStoreDataProfileBuilder setFileStoreDataProfile( + String fileStoreDataProfile) { + this.fileStoreDataProfile = fileStoreDataProfile; + return this; + } + + public FileStoreDataProfileName build() { + return new FileStoreDataProfileName(this); + } + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfileOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfileOrBuilder.java new file mode 100644 index 000000000000..fa05f8deb479 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfileOrBuilder.java @@ -0,0 +1,889 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface FileStoreDataProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.FileStoreDataProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The name of the profile.
        +   * 
        + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
        +   * The name of the profile.
        +   * 
        + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
        +   * The resource type that was profiled.
        +   * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + * + * @return Whether the dataSourceType field is set. + */ + boolean hasDataSourceType(); + /** + * + * + *
        +   * The resource type that was profiled.
        +   * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + * + * @return The dataSourceType. + */ + com.google.privacy.dlp.v2.DataSourceType getDataSourceType(); + /** + * + * + *
        +   * The resource type that was profiled.
        +   * 
        + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + */ + com.google.privacy.dlp.v2.DataSourceTypeOrBuilder getDataSourceTypeOrBuilder(); + + /** + * + * + *
        +   * The resource name of the project data profile for this file store.
        +   * 
        + * + * string project_data_profile = 3; + * + * @return The projectDataProfile. + */ + java.lang.String getProjectDataProfile(); + /** + * + * + *
        +   * The resource name of the project data profile for this file store.
        +   * 
        + * + * string project_data_profile = 3; + * + * @return The bytes for projectDataProfile. + */ + com.google.protobuf.ByteString getProjectDataProfileBytes(); + + /** + * + * + *
        +   * The Google Cloud project ID that owns the resource.
        +   * 
        + * + * string project_id = 4; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * + * + *
        +   * The Google Cloud project ID that owns the resource.
        +   * 
        + * + * string project_id = 4; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
        +   * The location of the file store.
        +   *
        +   * * Cloud Storage:
        +   * https://cloud.google.com/storage/docs/locations#available-locations
        +   * 
        + * + * string file_store_location = 5; + * + * @return The fileStoreLocation. + */ + java.lang.String getFileStoreLocation(); + /** + * + * + *
        +   * The location of the file store.
        +   *
        +   * * Cloud Storage:
        +   * https://cloud.google.com/storage/docs/locations#available-locations
        +   * 
        + * + * string file_store_location = 5; + * + * @return The bytes for fileStoreLocation. + */ + com.google.protobuf.ByteString getFileStoreLocationBytes(); + + /** + * + * + *
        +   * For resources that have multiple storage locations, these are those
        +   * regions. For Cloud Storage this is the list of regions chosen for
        +   * dual-region storage. `file_store_location` will normally be the
        +   * corresponding multi-region for the list of individual locations. The first
        +   * region is always picked as the processing and storage location for the data
        +   * profile.
        +   * 
        + * + * repeated string data_storage_locations = 19; + * + * @return A list containing the dataStorageLocations. + */ + java.util.List getDataStorageLocationsList(); + /** + * + * + *
        +   * For resources that have multiple storage locations, these are those
        +   * regions. For Cloud Storage this is the list of regions chosen for
        +   * dual-region storage. `file_store_location` will normally be the
        +   * corresponding multi-region for the list of individual locations. The first
        +   * region is always picked as the processing and storage location for the data
        +   * profile.
        +   * 
        + * + * repeated string data_storage_locations = 19; + * + * @return The count of dataStorageLocations. + */ + int getDataStorageLocationsCount(); + /** + * + * + *
        +   * For resources that have multiple storage locations, these are those
        +   * regions. For Cloud Storage this is the list of regions chosen for
        +   * dual-region storage. `file_store_location` will normally be the
        +   * corresponding multi-region for the list of individual locations. The first
        +   * region is always picked as the processing and storage location for the data
        +   * profile.
        +   * 
        + * + * repeated string data_storage_locations = 19; + * + * @param index The index of the element to return. + * @return The dataStorageLocations at the given index. + */ + java.lang.String getDataStorageLocations(int index); + /** + * + * + *
        +   * For resources that have multiple storage locations, these are those
        +   * regions. For Cloud Storage this is the list of regions chosen for
        +   * dual-region storage. `file_store_location` will normally be the
        +   * corresponding multi-region for the list of individual locations. The first
        +   * region is always picked as the processing and storage location for the data
        +   * profile.
        +   * 
        + * + * repeated string data_storage_locations = 19; + * + * @param index The index of the value to return. + * @return The bytes of the dataStorageLocations at the given index. + */ + com.google.protobuf.ByteString getDataStorageLocationsBytes(int index); + + /** + * + * + *
        +   * The location type of the bucket (region, dual-region, multi-region, etc).
        +   * If dual-region, expect data_storage_locations to be populated.
        +   * 
        + * + * string location_type = 20; + * + * @return The locationType. + */ + java.lang.String getLocationType(); + /** + * + * + *
        +   * The location type of the bucket (region, dual-region, multi-region, etc).
        +   * If dual-region, expect data_storage_locations to be populated.
        +   * 
        + * + * string location_type = 20; + * + * @return The bytes for locationType. + */ + com.google.protobuf.ByteString getLocationTypeBytes(); + + /** + * + * + *
        +   * The file store path.
        +   *
        +   * * Cloud Storage: `gs://{bucket}`
        +   * 
        + * + * string file_store_path = 6; + * + * @return The fileStorePath. + */ + java.lang.String getFileStorePath(); + /** + * + * + *
        +   * The file store path.
        +   *
        +   * * Cloud Storage: `gs://{bucket}`
        +   * 
        + * + * string file_store_path = 6; + * + * @return The bytes for fileStorePath. + */ + com.google.protobuf.ByteString getFileStorePathBytes(); + + /** + * + * + *
        +   * The resource name of the resource profiled.
        +   * https://cloud.google.com/apis/design/resource_names#full_resource_name
        +   * 
        + * + * string full_resource = 24; + * + * @return The fullResource. + */ + java.lang.String getFullResource(); + /** + * + * + *
        +   * The resource name of the resource profiled.
        +   * https://cloud.google.com/apis/design/resource_names#full_resource_name
        +   * 
        + * + * string full_resource = 24; + * + * @return The bytes for fullResource. + */ + com.google.protobuf.ByteString getFullResourceBytes(); + + /** + * + * + *
        +   * The snapshot of the configurations used to generate the profile.
        +   * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + * + * @return Whether the configSnapshot field is set. + */ + boolean hasConfigSnapshot(); + /** + * + * + *
        +   * The snapshot of the configurations used to generate the profile.
        +   * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + * + * @return The configSnapshot. + */ + com.google.privacy.dlp.v2.DataProfileConfigSnapshot getConfigSnapshot(); + /** + * + * + *
        +   * The snapshot of the configurations used to generate the profile.
        +   * 
        + * + * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + */ + com.google.privacy.dlp.v2.DataProfileConfigSnapshotOrBuilder getConfigSnapshotOrBuilder(); + + /** + * + * + *
        +   * Success or error status from the most recent profile generation attempt.
        +   * May be empty if the profile is still being generated.
        +   * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + * + * @return Whether the profileStatus field is set. + */ + boolean hasProfileStatus(); + /** + * + * + *
        +   * Success or error status from the most recent profile generation attempt.
        +   * May be empty if the profile is still being generated.
        +   * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + * + * @return The profileStatus. + */ + com.google.privacy.dlp.v2.ProfileStatus getProfileStatus(); + /** + * + * + *
        +   * Success or error status from the most recent profile generation attempt.
        +   * May be empty if the profile is still being generated.
        +   * 
        + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + */ + com.google.privacy.dlp.v2.ProfileStatusOrBuilder getProfileStatusOrBuilder(); + + /** + * + * + *
        +   * State of a profile.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
        +   * State of a profile.
        +   * 
        + * + * .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; + * + * @return The state. + */ + com.google.privacy.dlp.v2.FileStoreDataProfile.State getState(); + + /** + * + * + *
        +   * The last time the profile was generated.
        +   * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + * + * @return Whether the profileLastGenerated field is set. + */ + boolean hasProfileLastGenerated(); + /** + * + * + *
        +   * The last time the profile was generated.
        +   * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + * + * @return The profileLastGenerated. + */ + com.google.protobuf.Timestamp getProfileLastGenerated(); + /** + * + * + *
        +   * The last time the profile was generated.
        +   * 
        + * + * .google.protobuf.Timestamp profile_last_generated = 10; + */ + com.google.protobuf.TimestampOrBuilder getProfileLastGeneratedOrBuilder(); + + /** + * + * + *
        +   * How broadly a resource has been shared.
        +   * 
        + * + * .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; + * + * @return The enum numeric value on the wire for resourceVisibility. + */ + int getResourceVisibilityValue(); + /** + * + * + *
        +   * How broadly a resource has been shared.
        +   * 
        + * + * .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; + * + * @return The resourceVisibility. + */ + com.google.privacy.dlp.v2.ResourceVisibility getResourceVisibility(); + + /** + * + * + *
        +   * The sensitivity score of this resource.
        +   * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + * + * @return Whether the sensitivityScore field is set. + */ + boolean hasSensitivityScore(); + /** + * + * + *
        +   * The sensitivity score of this resource.
        +   * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + * + * @return The sensitivityScore. + */ + com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore(); + /** + * + * + *
        +   * The sensitivity score of this resource.
        +   * 
        + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + */ + com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder(); + + /** + * + * + *
        +   * The data risk level of this resource.
        +   * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + * + * @return Whether the dataRiskLevel field is set. + */ + boolean hasDataRiskLevel(); + /** + * + * + *
        +   * The data risk level of this resource.
        +   * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + * + * @return The dataRiskLevel. + */ + com.google.privacy.dlp.v2.DataRiskLevel getDataRiskLevel(); + /** + * + * + *
        +   * The data risk level of this resource.
        +   * 
        + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + */ + com.google.privacy.dlp.v2.DataRiskLevelOrBuilder getDataRiskLevelOrBuilder(); + + /** + * + * + *
        +   * The time the file store was first created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 14; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
        +   * The time the file store was first created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 14; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
        +   * The time the file store was first created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 14; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
        +   * The time the file store was last modified.
        +   * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + * + * @return Whether the lastModifiedTime field is set. + */ + boolean hasLastModifiedTime(); + /** + * + * + *
        +   * The time the file store was last modified.
        +   * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + * + * @return The lastModifiedTime. + */ + com.google.protobuf.Timestamp getLastModifiedTime(); + /** + * + * + *
        +   * The time the file store was last modified.
        +   * 
        + * + * .google.protobuf.Timestamp last_modified_time = 15; + */ + com.google.protobuf.TimestampOrBuilder getLastModifiedTimeOrBuilder(); + + /** + * + * + *
        +   * FileClusterSummary per each cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + java.util.List getFileClusterSummariesList(); + /** + * + * + *
        +   * FileClusterSummary per each cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + com.google.privacy.dlp.v2.FileClusterSummary getFileClusterSummaries(int index); + /** + * + * + *
        +   * FileClusterSummary per each cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + int getFileClusterSummariesCount(); + /** + * + * + *
        +   * FileClusterSummary per each cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + java.util.List + getFileClusterSummariesOrBuilderList(); + /** + * + * + *
        +   * FileClusterSummary per each cluster.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + com.google.privacy.dlp.v2.FileClusterSummaryOrBuilder getFileClusterSummariesOrBuilder(int index); + + /** + * + * + *
        +   * Attributes of the resource being profiled.
        +   * Currently used attributes:
        +   *
        +   * * customer_managed_encryption: boolean
        +   *     - true: the resource is encrypted with a customer-managed key.
        +   *     - false: the resource is encrypted with a provider-managed key.
        +   * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + int getResourceAttributesCount(); + /** + * + * + *
        +   * Attributes of the resource being profiled.
        +   * Currently used attributes:
        +   *
        +   * * customer_managed_encryption: boolean
        +   *     - true: the resource is encrypted with a customer-managed key.
        +   *     - false: the resource is encrypted with a provider-managed key.
        +   * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + boolean containsResourceAttributes(java.lang.String key); + /** Use {@link #getResourceAttributesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getResourceAttributes(); + /** + * + * + *
        +   * Attributes of the resource being profiled.
        +   * Currently used attributes:
        +   *
        +   * * customer_managed_encryption: boolean
        +   *     - true: the resource is encrypted with a customer-managed key.
        +   *     - false: the resource is encrypted with a provider-managed key.
        +   * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + java.util.Map getResourceAttributesMap(); + /** + * + * + *
        +   * Attributes of the resource being profiled.
        +   * Currently used attributes:
        +   *
        +   * * customer_managed_encryption: boolean
        +   *     - true: the resource is encrypted with a customer-managed key.
        +   *     - false: the resource is encrypted with a provider-managed key.
        +   * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + /* nullable */ + com.google.privacy.dlp.v2.Value getResourceAttributesOrDefault( + java.lang.String key, + /* nullable */ + com.google.privacy.dlp.v2.Value defaultValue); + /** + * + * + *
        +   * Attributes of the resource being profiled.
        +   * Currently used attributes:
        +   *
        +   * * customer_managed_encryption: boolean
        +   *     - true: the resource is encrypted with a customer-managed key.
        +   *     - false: the resource is encrypted with a provider-managed key.
        +   * 
        + * + * map<string, .google.privacy.dlp.v2.Value> resource_attributes = 17; + */ + com.google.privacy.dlp.v2.Value getResourceAttributesOrThrow(java.lang.String key); + + /** + * + * + *
        +   * The labels applied to the resource at the time the profile was generated.
        +   * 
        + * + * map<string, string> resource_labels = 18; + */ + int getResourceLabelsCount(); + /** + * + * + *
        +   * The labels applied to the resource at the time the profile was generated.
        +   * 
        + * + * map<string, string> resource_labels = 18; + */ + boolean containsResourceLabels(java.lang.String key); + /** Use {@link #getResourceLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getResourceLabels(); + /** + * + * + *
        +   * The labels applied to the resource at the time the profile was generated.
        +   * 
        + * + * map<string, string> resource_labels = 18; + */ + java.util.Map getResourceLabelsMap(); + /** + * + * + *
        +   * The labels applied to the resource at the time the profile was generated.
        +   * 
        + * + * map<string, string> resource_labels = 18; + */ + /* nullable */ + java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
        +   * The labels applied to the resource at the time the profile was generated.
        +   * 
        + * + * map<string, string> resource_labels = 18; + */ + java.lang.String getResourceLabelsOrThrow(java.lang.String key); + + /** + * + * + *
        +   * InfoTypes detected in this file store.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + java.util.List + getFileStoreInfoTypeSummariesList(); + /** + * + * + *
        +   * InfoTypes detected in this file store.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary getFileStoreInfoTypeSummaries(int index); + /** + * + * + *
        +   * InfoTypes detected in this file store.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + int getFileStoreInfoTypeSummariesCount(); + /** + * + * + *
        +   * InfoTypes detected in this file store.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + java.util.List + getFileStoreInfoTypeSummariesOrBuilderList(); + /** + * + * + *
        +   * InfoTypes detected in this file store.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * + */ + com.google.privacy.dlp.v2.FileStoreInfoTypeSummaryOrBuilder + getFileStoreInfoTypeSummariesOrBuilder(int index); + + /** + * + * + *
        +   * The file store does not have any files.
        +   * 
        + * + * bool file_store_is_empty = 23; + * + * @return The fileStoreIsEmpty. + */ + boolean getFileStoreIsEmpty(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreInfoTypeSummary.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreInfoTypeSummary.java new file mode 100644 index 000000000000..4fdbec6ed3c7 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreInfoTypeSummary.java @@ -0,0 +1,717 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * Information regarding the discovered InfoType.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.FileStoreInfoTypeSummary} + */ +public final class FileStoreInfoTypeSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.FileStoreInfoTypeSummary) + FileStoreInfoTypeSummaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileStoreInfoTypeSummary.newBuilder() to construct. + private FileStoreInfoTypeSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FileStoreInfoTypeSummary() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FileStoreInfoTypeSummary(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreInfoTypeSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreInfoTypeSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.class, + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder.class); + } + + private int bitField0_; + public static final int INFO_TYPE_FIELD_NUMBER = 1; + private com.google.privacy.dlp.v2.InfoType infoType_; + /** + * + * + *
        +   * The InfoType seen.
        +   * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + * + * @return Whether the infoType field is set. + */ + @java.lang.Override + public boolean hasInfoType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * The InfoType seen.
        +   * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + * + * @return The infoType. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.InfoType getInfoType() { + return infoType_ == null ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance() : infoType_; + } + /** + * + * + *
        +   * The InfoType seen.
        +   * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { + return infoType_ == null ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance() : infoType_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInfoType()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfoType()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.FileStoreInfoTypeSummary)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary other = + (com.google.privacy.dlp.v2.FileStoreInfoTypeSummary) obj; + + if (hasInfoType() != other.hasInfoType()) return false; + if (hasInfoType()) { + if (!getInfoType().equals(other.getInfoType())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInfoType()) { + hash = (37 * hash) + INFO_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getInfoType().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.FileStoreInfoTypeSummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreInfoTypeSummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreInfoTypeSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreInfoTypeSummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreInfoTypeSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreInfoTypeSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreInfoTypeSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreInfoTypeSummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreInfoTypeSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreInfoTypeSummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreInfoTypeSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreInfoTypeSummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.privacy.dlp.v2.FileStoreInfoTypeSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Information regarding the discovered InfoType.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.FileStoreInfoTypeSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.FileStoreInfoTypeSummary) + com.google.privacy.dlp.v2.FileStoreInfoTypeSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreInfoTypeSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreInfoTypeSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.class, + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInfoTypeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + infoType_ = null; + if (infoTypeBuilder_ != null) { + infoTypeBuilder_.dispose(); + infoTypeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreInfoTypeSummary_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummary getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummary build() { + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummary buildPartial() { + com.google.privacy.dlp.v2.FileStoreInfoTypeSummary result = + new com.google.privacy.dlp.v2.FileStoreInfoTypeSummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.FileStoreInfoTypeSummary result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.infoType_ = infoTypeBuilder_ == null ? infoType_ : infoTypeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.FileStoreInfoTypeSummary) { + return mergeFrom((com.google.privacy.dlp.v2.FileStoreInfoTypeSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.FileStoreInfoTypeSummary other) { + if (other == com.google.privacy.dlp.v2.FileStoreInfoTypeSummary.getDefaultInstance()) + return this; + if (other.hasInfoType()) { + mergeInfoType(other.getInfoType()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getInfoTypeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.privacy.dlp.v2.InfoType infoType_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.InfoType, + com.google.privacy.dlp.v2.InfoType.Builder, + com.google.privacy.dlp.v2.InfoTypeOrBuilder> + infoTypeBuilder_; + /** + * + * + *
        +     * The InfoType seen.
        +     * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + * + * @return Whether the infoType field is set. + */ + public boolean hasInfoType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * The InfoType seen.
        +     * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + * + * @return The infoType. + */ + public com.google.privacy.dlp.v2.InfoType getInfoType() { + if (infoTypeBuilder_ == null) { + return infoType_ == null + ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance() + : infoType_; + } else { + return infoTypeBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The InfoType seen.
        +     * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + */ + public Builder setInfoType(com.google.privacy.dlp.v2.InfoType value) { + if (infoTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + infoType_ = value; + } else { + infoTypeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The InfoType seen.
        +     * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + */ + public Builder setInfoType(com.google.privacy.dlp.v2.InfoType.Builder builderForValue) { + if (infoTypeBuilder_ == null) { + infoType_ = builderForValue.build(); + } else { + infoTypeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * The InfoType seen.
        +     * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + */ + public Builder mergeInfoType(com.google.privacy.dlp.v2.InfoType value) { + if (infoTypeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && infoType_ != null + && infoType_ != com.google.privacy.dlp.v2.InfoType.getDefaultInstance()) { + getInfoTypeBuilder().mergeFrom(value); + } else { + infoType_ = value; + } + } else { + infoTypeBuilder_.mergeFrom(value); + } + if (infoType_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The InfoType seen.
        +     * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + */ + public Builder clearInfoType() { + bitField0_ = (bitField0_ & ~0x00000001); + infoType_ = null; + if (infoTypeBuilder_ != null) { + infoTypeBuilder_.dispose(); + infoTypeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The InfoType seen.
        +     * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + */ + public com.google.privacy.dlp.v2.InfoType.Builder getInfoTypeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInfoTypeFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The InfoType seen.
        +     * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + */ + public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { + if (infoTypeBuilder_ != null) { + return infoTypeBuilder_.getMessageOrBuilder(); + } else { + return infoType_ == null + ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance() + : infoType_; + } + } + /** + * + * + *
        +     * The InfoType seen.
        +     * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.InfoType, + com.google.privacy.dlp.v2.InfoType.Builder, + com.google.privacy.dlp.v2.InfoTypeOrBuilder> + getInfoTypeFieldBuilder() { + if (infoTypeBuilder_ == null) { + infoTypeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.InfoType, + com.google.privacy.dlp.v2.InfoType.Builder, + com.google.privacy.dlp.v2.InfoTypeOrBuilder>( + getInfoType(), getParentForChildren(), isClean()); + infoType_ = null; + } + return infoTypeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.FileStoreInfoTypeSummary) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FileStoreInfoTypeSummary) + private static final com.google.privacy.dlp.v2.FileStoreInfoTypeSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.FileStoreInfoTypeSummary(); + } + + public static com.google.privacy.dlp.v2.FileStoreInfoTypeSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileStoreInfoTypeSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreInfoTypeSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreInfoTypeSummaryOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreInfoTypeSummaryOrBuilder.java new file mode 100644 index 000000000000..a342c62547ed --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreInfoTypeSummaryOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface FileStoreInfoTypeSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.FileStoreInfoTypeSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The InfoType seen.
        +   * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + * + * @return Whether the infoType field is set. + */ + boolean hasInfoType(); + /** + * + * + *
        +   * The InfoType seen.
        +   * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + * + * @return The infoType. + */ + com.google.privacy.dlp.v2.InfoType getInfoType(); + /** + * + * + *
        +   * The InfoType seen.
        +   * 
        + * + * .google.privacy.dlp.v2.InfoType info_type = 1; + */ + com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreRegex.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreRegex.java new file mode 100644 index 000000000000..9b33bebdc0d3 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreRegex.java @@ -0,0 +1,840 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * A pattern to match against one or more file stores.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.FileStoreRegex} + */ +public final class FileStoreRegex extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.FileStoreRegex) + FileStoreRegexOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileStoreRegex.newBuilder() to construct. + private FileStoreRegex(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FileStoreRegex() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FileStoreRegex(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreRegex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreRegex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FileStoreRegex.class, + com.google.privacy.dlp.v2.FileStoreRegex.Builder.class); + } + + private int resourceRegexCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object resourceRegex_; + + public enum ResourceRegexCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLOUD_STORAGE_REGEX(1), + RESOURCEREGEX_NOT_SET(0); + private final int value; + + private ResourceRegexCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResourceRegexCase valueOf(int value) { + return forNumber(value); + } + + public static ResourceRegexCase forNumber(int value) { + switch (value) { + case 1: + return CLOUD_STORAGE_REGEX; + case 0: + return RESOURCEREGEX_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResourceRegexCase getResourceRegexCase() { + return ResourceRegexCase.forNumber(resourceRegexCase_); + } + + public static final int CLOUD_STORAGE_REGEX_FIELD_NUMBER = 1; + /** + * + * + *
        +   * Optional. Regex for Cloud Storage.
        +   * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageRegex field is set. + */ + @java.lang.Override + public boolean hasCloudStorageRegex() { + return resourceRegexCase_ == 1; + } + /** + * + * + *
        +   * Optional. Regex for Cloud Storage.
        +   * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageRegex. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageRegex getCloudStorageRegex() { + if (resourceRegexCase_ == 1) { + return (com.google.privacy.dlp.v2.CloudStorageRegex) resourceRegex_; + } + return com.google.privacy.dlp.v2.CloudStorageRegex.getDefaultInstance(); + } + /** + * + * + *
        +   * Optional. Regex for Cloud Storage.
        +   * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageRegexOrBuilder getCloudStorageRegexOrBuilder() { + if (resourceRegexCase_ == 1) { + return (com.google.privacy.dlp.v2.CloudStorageRegex) resourceRegex_; + } + return com.google.privacy.dlp.v2.CloudStorageRegex.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (resourceRegexCase_ == 1) { + output.writeMessage(1, (com.google.privacy.dlp.v2.CloudStorageRegex) resourceRegex_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceRegexCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.privacy.dlp.v2.CloudStorageRegex) resourceRegex_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.FileStoreRegex)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.FileStoreRegex other = (com.google.privacy.dlp.v2.FileStoreRegex) obj; + + if (!getResourceRegexCase().equals(other.getResourceRegexCase())) return false; + switch (resourceRegexCase_) { + case 1: + if (!getCloudStorageRegex().equals(other.getCloudStorageRegex())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (resourceRegexCase_) { + case 1: + hash = (37 * hash) + CLOUD_STORAGE_REGEX_FIELD_NUMBER; + hash = (53 * hash) + getCloudStorageRegex().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.FileStoreRegex parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreRegex parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreRegex parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreRegex parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreRegex parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreRegex parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreRegex parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreRegex parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreRegex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreRegex parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreRegex parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreRegex parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.privacy.dlp.v2.FileStoreRegex prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * A pattern to match against one or more file stores.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.FileStoreRegex} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.FileStoreRegex) + com.google.privacy.dlp.v2.FileStoreRegexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreRegex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreRegex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FileStoreRegex.class, + com.google.privacy.dlp.v2.FileStoreRegex.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.FileStoreRegex.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cloudStorageRegexBuilder_ != null) { + cloudStorageRegexBuilder_.clear(); + } + resourceRegexCase_ = 0; + resourceRegex_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreRegex_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreRegex getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.FileStoreRegex.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreRegex build() { + com.google.privacy.dlp.v2.FileStoreRegex result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreRegex buildPartial() { + com.google.privacy.dlp.v2.FileStoreRegex result = + new com.google.privacy.dlp.v2.FileStoreRegex(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.FileStoreRegex result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.privacy.dlp.v2.FileStoreRegex result) { + result.resourceRegexCase_ = resourceRegexCase_; + result.resourceRegex_ = this.resourceRegex_; + if (resourceRegexCase_ == 1 && cloudStorageRegexBuilder_ != null) { + result.resourceRegex_ = cloudStorageRegexBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.FileStoreRegex) { + return mergeFrom((com.google.privacy.dlp.v2.FileStoreRegex) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.FileStoreRegex other) { + if (other == com.google.privacy.dlp.v2.FileStoreRegex.getDefaultInstance()) return this; + switch (other.getResourceRegexCase()) { + case CLOUD_STORAGE_REGEX: + { + mergeCloudStorageRegex(other.getCloudStorageRegex()); + break; + } + case RESOURCEREGEX_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getCloudStorageRegexFieldBuilder().getBuilder(), extensionRegistry); + resourceRegexCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int resourceRegexCase_ = 0; + private java.lang.Object resourceRegex_; + + public ResourceRegexCase getResourceRegexCase() { + return ResourceRegexCase.forNumber(resourceRegexCase_); + } + + public Builder clearResourceRegex() { + resourceRegexCase_ = 0; + resourceRegex_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CloudStorageRegex, + com.google.privacy.dlp.v2.CloudStorageRegex.Builder, + com.google.privacy.dlp.v2.CloudStorageRegexOrBuilder> + cloudStorageRegexBuilder_; + /** + * + * + *
        +     * Optional. Regex for Cloud Storage.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageRegex field is set. + */ + @java.lang.Override + public boolean hasCloudStorageRegex() { + return resourceRegexCase_ == 1; + } + /** + * + * + *
        +     * Optional. Regex for Cloud Storage.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageRegex. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageRegex getCloudStorageRegex() { + if (cloudStorageRegexBuilder_ == null) { + if (resourceRegexCase_ == 1) { + return (com.google.privacy.dlp.v2.CloudStorageRegex) resourceRegex_; + } + return com.google.privacy.dlp.v2.CloudStorageRegex.getDefaultInstance(); + } else { + if (resourceRegexCase_ == 1) { + return cloudStorageRegexBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.CloudStorageRegex.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. Regex for Cloud Storage.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorageRegex(com.google.privacy.dlp.v2.CloudStorageRegex value) { + if (cloudStorageRegexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceRegex_ = value; + onChanged(); + } else { + cloudStorageRegexBuilder_.setMessage(value); + } + resourceRegexCase_ = 1; + return this; + } + /** + * + * + *
        +     * Optional. Regex for Cloud Storage.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorageRegex( + com.google.privacy.dlp.v2.CloudStorageRegex.Builder builderForValue) { + if (cloudStorageRegexBuilder_ == null) { + resourceRegex_ = builderForValue.build(); + onChanged(); + } else { + cloudStorageRegexBuilder_.setMessage(builderForValue.build()); + } + resourceRegexCase_ = 1; + return this; + } + /** + * + * + *
        +     * Optional. Regex for Cloud Storage.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCloudStorageRegex(com.google.privacy.dlp.v2.CloudStorageRegex value) { + if (cloudStorageRegexBuilder_ == null) { + if (resourceRegexCase_ == 1 + && resourceRegex_ != com.google.privacy.dlp.v2.CloudStorageRegex.getDefaultInstance()) { + resourceRegex_ = + com.google.privacy.dlp.v2.CloudStorageRegex.newBuilder( + (com.google.privacy.dlp.v2.CloudStorageRegex) resourceRegex_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceRegex_ = value; + } + onChanged(); + } else { + if (resourceRegexCase_ == 1) { + cloudStorageRegexBuilder_.mergeFrom(value); + } else { + cloudStorageRegexBuilder_.setMessage(value); + } + } + resourceRegexCase_ = 1; + return this; + } + /** + * + * + *
        +     * Optional. Regex for Cloud Storage.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudStorageRegex() { + if (cloudStorageRegexBuilder_ == null) { + if (resourceRegexCase_ == 1) { + resourceRegexCase_ = 0; + resourceRegex_ = null; + onChanged(); + } + } else { + if (resourceRegexCase_ == 1) { + resourceRegexCase_ = 0; + resourceRegex_ = null; + } + cloudStorageRegexBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Optional. Regex for Cloud Storage.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.privacy.dlp.v2.CloudStorageRegex.Builder getCloudStorageRegexBuilder() { + return getCloudStorageRegexFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Regex for Cloud Storage.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.CloudStorageRegexOrBuilder getCloudStorageRegexOrBuilder() { + if ((resourceRegexCase_ == 1) && (cloudStorageRegexBuilder_ != null)) { + return cloudStorageRegexBuilder_.getMessageOrBuilder(); + } else { + if (resourceRegexCase_ == 1) { + return (com.google.privacy.dlp.v2.CloudStorageRegex) resourceRegex_; + } + return com.google.privacy.dlp.v2.CloudStorageRegex.getDefaultInstance(); + } + } + /** + * + * + *
        +     * Optional. Regex for Cloud Storage.
        +     * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CloudStorageRegex, + com.google.privacy.dlp.v2.CloudStorageRegex.Builder, + com.google.privacy.dlp.v2.CloudStorageRegexOrBuilder> + getCloudStorageRegexFieldBuilder() { + if (cloudStorageRegexBuilder_ == null) { + if (!(resourceRegexCase_ == 1)) { + resourceRegex_ = com.google.privacy.dlp.v2.CloudStorageRegex.getDefaultInstance(); + } + cloudStorageRegexBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CloudStorageRegex, + com.google.privacy.dlp.v2.CloudStorageRegex.Builder, + com.google.privacy.dlp.v2.CloudStorageRegexOrBuilder>( + (com.google.privacy.dlp.v2.CloudStorageRegex) resourceRegex_, + getParentForChildren(), + isClean()); + resourceRegex_ = null; + } + resourceRegexCase_ = 1; + onChanged(); + return cloudStorageRegexBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.FileStoreRegex) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FileStoreRegex) + private static final com.google.privacy.dlp.v2.FileStoreRegex DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.FileStoreRegex(); + } + + public static com.google.privacy.dlp.v2.FileStoreRegex getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileStoreRegex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreRegex getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreRegexOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreRegexOrBuilder.java new file mode 100644 index 000000000000..fe37c078016b --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreRegexOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface FileStoreRegexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.FileStoreRegex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. Regex for Cloud Storage.
        +   * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageRegex field is set. + */ + boolean hasCloudStorageRegex(); + /** + * + * + *
        +   * Optional. Regex for Cloud Storage.
        +   * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageRegex. + */ + com.google.privacy.dlp.v2.CloudStorageRegex getCloudStorageRegex(); + /** + * + * + *
        +   * Optional. Regex for Cloud Storage.
        +   * 
        + * + * + * .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.privacy.dlp.v2.CloudStorageRegexOrBuilder getCloudStorageRegexOrBuilder(); + + com.google.privacy.dlp.v2.FileStoreRegex.ResourceRegexCase getResourceRegexCase(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreRegexes.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreRegexes.java new file mode 100644 index 000000000000..d26879eef8c9 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreRegexes.java @@ -0,0 +1,1028 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * A collection of regular expressions to determine what file store to match
        + * against.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.FileStoreRegexes} + */ +public final class FileStoreRegexes extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.FileStoreRegexes) + FileStoreRegexesOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileStoreRegexes.newBuilder() to construct. + private FileStoreRegexes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FileStoreRegexes() { + patterns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FileStoreRegexes(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreRegexes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreRegexes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FileStoreRegexes.class, + com.google.privacy.dlp.v2.FileStoreRegexes.Builder.class); + } + + public static final int PATTERNS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List patterns_; + /** + * + * + *
        +   * Required. The group of regular expression patterns to match against one or
        +   * more file stores. Maximum of 100 entries. The sum of all regular
        +   * expression's length can't exceed 10 KiB.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getPatternsList() { + return patterns_; + } + /** + * + * + *
        +   * Required. The group of regular expression patterns to match against one or
        +   * more file stores. Maximum of 100 entries. The sum of all regular
        +   * expression's length can't exceed 10 KiB.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getPatternsOrBuilderList() { + return patterns_; + } + /** + * + * + *
        +   * Required. The group of regular expression patterns to match against one or
        +   * more file stores. Maximum of 100 entries. The sum of all regular
        +   * expression's length can't exceed 10 KiB.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getPatternsCount() { + return patterns_.size(); + } + /** + * + * + *
        +   * Required. The group of regular expression patterns to match against one or
        +   * more file stores. Maximum of 100 entries. The sum of all regular
        +   * expression's length can't exceed 10 KiB.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreRegex getPatterns(int index) { + return patterns_.get(index); + } + /** + * + * + *
        +   * Required. The group of regular expression patterns to match against one or
        +   * more file stores. Maximum of 100 entries. The sum of all regular
        +   * expression's length can't exceed 10 KiB.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreRegexOrBuilder getPatternsOrBuilder(int index) { + return patterns_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < patterns_.size(); i++) { + output.writeMessage(1, patterns_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < patterns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, patterns_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.FileStoreRegexes)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.FileStoreRegexes other = + (com.google.privacy.dlp.v2.FileStoreRegexes) obj; + + if (!getPatternsList().equals(other.getPatternsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPatternsCount() > 0) { + hash = (37 * hash) + PATTERNS_FIELD_NUMBER; + hash = (53 * hash) + getPatternsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.FileStoreRegexes parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreRegexes parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreRegexes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreRegexes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreRegexes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FileStoreRegexes parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreRegexes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreRegexes parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreRegexes parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreRegexes parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.FileStoreRegexes parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FileStoreRegexes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.privacy.dlp.v2.FileStoreRegexes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * A collection of regular expressions to determine what file store to match
        +   * against.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.FileStoreRegexes} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.FileStoreRegexes) + com.google.privacy.dlp.v2.FileStoreRegexesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreRegexes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreRegexes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FileStoreRegexes.class, + com.google.privacy.dlp.v2.FileStoreRegexes.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.FileStoreRegexes.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (patternsBuilder_ == null) { + patterns_ = java.util.Collections.emptyList(); + } else { + patterns_ = null; + patternsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FileStoreRegexes_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreRegexes getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.FileStoreRegexes.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreRegexes build() { + com.google.privacy.dlp.v2.FileStoreRegexes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreRegexes buildPartial() { + com.google.privacy.dlp.v2.FileStoreRegexes result = + new com.google.privacy.dlp.v2.FileStoreRegexes(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.privacy.dlp.v2.FileStoreRegexes result) { + if (patternsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + patterns_ = java.util.Collections.unmodifiableList(patterns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.patterns_ = patterns_; + } else { + result.patterns_ = patternsBuilder_.build(); + } + } + + private void buildPartial0(com.google.privacy.dlp.v2.FileStoreRegexes result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.FileStoreRegexes) { + return mergeFrom((com.google.privacy.dlp.v2.FileStoreRegexes) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.FileStoreRegexes other) { + if (other == com.google.privacy.dlp.v2.FileStoreRegexes.getDefaultInstance()) return this; + if (patternsBuilder_ == null) { + if (!other.patterns_.isEmpty()) { + if (patterns_.isEmpty()) { + patterns_ = other.patterns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePatternsIsMutable(); + patterns_.addAll(other.patterns_); + } + onChanged(); + } + } else { + if (!other.patterns_.isEmpty()) { + if (patternsBuilder_.isEmpty()) { + patternsBuilder_.dispose(); + patternsBuilder_ = null; + patterns_ = other.patterns_; + bitField0_ = (bitField0_ & ~0x00000001); + patternsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPatternsFieldBuilder() + : null; + } else { + patternsBuilder_.addAllMessages(other.patterns_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.privacy.dlp.v2.FileStoreRegex m = + input.readMessage( + com.google.privacy.dlp.v2.FileStoreRegex.parser(), extensionRegistry); + if (patternsBuilder_ == null) { + ensurePatternsIsMutable(); + patterns_.add(m); + } else { + patternsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List patterns_ = + java.util.Collections.emptyList(); + + private void ensurePatternsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + patterns_ = new java.util.ArrayList(patterns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreRegex, + com.google.privacy.dlp.v2.FileStoreRegex.Builder, + com.google.privacy.dlp.v2.FileStoreRegexOrBuilder> + patternsBuilder_; + + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getPatternsList() { + if (patternsBuilder_ == null) { + return java.util.Collections.unmodifiableList(patterns_); + } else { + return patternsBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getPatternsCount() { + if (patternsBuilder_ == null) { + return patterns_.size(); + } else { + return patternsBuilder_.getCount(); + } + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.privacy.dlp.v2.FileStoreRegex getPatterns(int index) { + if (patternsBuilder_ == null) { + return patterns_.get(index); + } else { + return patternsBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPatterns(int index, com.google.privacy.dlp.v2.FileStoreRegex value) { + if (patternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatternsIsMutable(); + patterns_.set(index, value); + onChanged(); + } else { + patternsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPatterns( + int index, com.google.privacy.dlp.v2.FileStoreRegex.Builder builderForValue) { + if (patternsBuilder_ == null) { + ensurePatternsIsMutable(); + patterns_.set(index, builderForValue.build()); + onChanged(); + } else { + patternsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addPatterns(com.google.privacy.dlp.v2.FileStoreRegex value) { + if (patternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatternsIsMutable(); + patterns_.add(value); + onChanged(); + } else { + patternsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addPatterns(int index, com.google.privacy.dlp.v2.FileStoreRegex value) { + if (patternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatternsIsMutable(); + patterns_.add(index, value); + onChanged(); + } else { + patternsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addPatterns(com.google.privacy.dlp.v2.FileStoreRegex.Builder builderForValue) { + if (patternsBuilder_ == null) { + ensurePatternsIsMutable(); + patterns_.add(builderForValue.build()); + onChanged(); + } else { + patternsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addPatterns( + int index, com.google.privacy.dlp.v2.FileStoreRegex.Builder builderForValue) { + if (patternsBuilder_ == null) { + ensurePatternsIsMutable(); + patterns_.add(index, builderForValue.build()); + onChanged(); + } else { + patternsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllPatterns( + java.lang.Iterable values) { + if (patternsBuilder_ == null) { + ensurePatternsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, patterns_); + onChanged(); + } else { + patternsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPatterns() { + if (patternsBuilder_ == null) { + patterns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + patternsBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removePatterns(int index) { + if (patternsBuilder_ == null) { + ensurePatternsIsMutable(); + patterns_.remove(index); + onChanged(); + } else { + patternsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.privacy.dlp.v2.FileStoreRegex.Builder getPatternsBuilder(int index) { + return getPatternsFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.privacy.dlp.v2.FileStoreRegexOrBuilder getPatternsOrBuilder(int index) { + if (patternsBuilder_ == null) { + return patterns_.get(index); + } else { + return patternsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getPatternsOrBuilderList() { + if (patternsBuilder_ != null) { + return patternsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(patterns_); + } + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.privacy.dlp.v2.FileStoreRegex.Builder addPatternsBuilder() { + return getPatternsFieldBuilder() + .addBuilder(com.google.privacy.dlp.v2.FileStoreRegex.getDefaultInstance()); + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.privacy.dlp.v2.FileStoreRegex.Builder addPatternsBuilder(int index) { + return getPatternsFieldBuilder() + .addBuilder(index, com.google.privacy.dlp.v2.FileStoreRegex.getDefaultInstance()); + } + /** + * + * + *
        +     * Required. The group of regular expression patterns to match against one or
        +     * more file stores. Maximum of 100 entries. The sum of all regular
        +     * expression's length can't exceed 10 KiB.
        +     * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getPatternsBuilderList() { + return getPatternsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreRegex, + com.google.privacy.dlp.v2.FileStoreRegex.Builder, + com.google.privacy.dlp.v2.FileStoreRegexOrBuilder> + getPatternsFieldBuilder() { + if (patternsBuilder_ == null) { + patternsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreRegex, + com.google.privacy.dlp.v2.FileStoreRegex.Builder, + com.google.privacy.dlp.v2.FileStoreRegexOrBuilder>( + patterns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + patterns_ = null; + } + return patternsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.FileStoreRegexes) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FileStoreRegexes) + private static final com.google.privacy.dlp.v2.FileStoreRegexes DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.FileStoreRegexes(); + } + + public static com.google.privacy.dlp.v2.FileStoreRegexes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileStoreRegexes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreRegexes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreRegexesOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreRegexesOrBuilder.java new file mode 100644 index 000000000000..ee2a027aa27e --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreRegexesOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface FileStoreRegexesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.FileStoreRegexes) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The group of regular expression patterns to match against one or
        +   * more file stores. Maximum of 100 entries. The sum of all regular
        +   * expression's length can't exceed 10 KiB.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getPatternsList(); + /** + * + * + *
        +   * Required. The group of regular expression patterns to match against one or
        +   * more file stores. Maximum of 100 entries. The sum of all regular
        +   * expression's length can't exceed 10 KiB.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.privacy.dlp.v2.FileStoreRegex getPatterns(int index); + /** + * + * + *
        +   * Required. The group of regular expression patterns to match against one or
        +   * more file stores. Maximum of 100 entries. The sum of all regular
        +   * expression's length can't exceed 10 KiB.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getPatternsCount(); + /** + * + * + *
        +   * Required. The group of regular expression patterns to match against one or
        +   * more file stores. Maximum of 100 entries. The sum of all regular
        +   * expression's length can't exceed 10 KiB.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getPatternsOrBuilderList(); + /** + * + * + *
        +   * Required. The group of regular expression patterns to match against one or
        +   * more file stores. Maximum of 100 entries. The sum of all regular
        +   * expression's length can't exceed 10 KiB.
        +   * 
        + * + * + * repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.privacy.dlp.v2.FileStoreRegexOrBuilder getPatternsOrBuilder(int index); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Finding.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Finding.java index 4991d3f242b6..144bcc559477 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Finding.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Finding.java @@ -571,6 +571,7 @@ public int getLabelsCount() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` *
        @@ -605,6 +606,7 @@ public java.util.Map getLabels() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` *
        @@ -630,6 +632,7 @@ public java.util.Map getLabelsMap() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` *
        @@ -662,6 +665,7 @@ public java.util.Map getLabelsMap() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` *
        @@ -2897,6 +2901,7 @@ public int getLabelsCount() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` *
        @@ -2931,6 +2936,7 @@ public java.util.Map getLabels() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` *
        @@ -2956,6 +2962,7 @@ public java.util.Map getLabelsMap() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` *
        @@ -2988,6 +2995,7 @@ public java.util.Map getLabelsMap() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` *
        @@ -3026,6 +3034,7 @@ public Builder clearLabels() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` *
        @@ -3060,6 +3069,7 @@ public java.util.Map getMutableLabels() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` *
        @@ -3092,6 +3102,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` *
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FindingOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FindingOrBuilder.java index 2ed5ada2b339..91255c4e14f1 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FindingOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FindingOrBuilder.java @@ -325,6 +325,7 @@ public interface FindingOrBuilder * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -347,6 +348,7 @@ public interface FindingOrBuilder * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -372,6 +374,7 @@ public interface FindingOrBuilder * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -394,6 +397,7 @@ public interface FindingOrBuilder * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -420,6 +424,7 @@ java.lang.String getLabelsOrDefault( * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetFileStoreDataProfileRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetFileStoreDataProfileRequest.java new file mode 100644 index 000000000000..5bf895b2a143 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetFileStoreDataProfileRequest.java @@ -0,0 +1,648 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * Request to get a file store data profile.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.GetFileStoreDataProfileRequest} + */ +public final class GetFileStoreDataProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.GetFileStoreDataProfileRequest) + GetFileStoreDataProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetFileStoreDataProfileRequest.newBuilder() to construct. + private GetFileStoreDataProfileRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetFileStoreDataProfileRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetFileStoreDataProfileRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetFileStoreDataProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetFileStoreDataProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest.class, + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
        +   * Required. Resource name, for example
        +   * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
        +   * Required. Resource name, for example
        +   * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest other = + (com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Request to get a file store data profile.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.GetFileStoreDataProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.GetFileStoreDataProfileRequest) + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetFileStoreDataProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetFileStoreDataProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest.class, + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetFileStoreDataProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest build() { + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest buildPartial() { + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest result = + new com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest) { + return mergeFrom((com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest other) { + if (other == com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
        +     * Required. Resource name, for example
        +     * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Required. Resource name, for example
        +     * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Required. Resource name, for example
        +     * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Resource name, for example
        +     * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Resource name, for example
        +     * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.GetFileStoreDataProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.GetFileStoreDataProfileRequest) + private static final com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest(); + } + + public static com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFileStoreDataProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetFileStoreDataProfileRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetFileStoreDataProfileRequestOrBuilder.java new file mode 100644 index 000000000000..640c76b78263 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetFileStoreDataProfileRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface GetFileStoreDataProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.GetFileStoreDataProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. Resource name, for example
        +   * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
        +   * Required. Resource name, for example
        +   * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridFindingDetails.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridFindingDetails.java index e3bb183ffef0..f57cf6ab849d 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridFindingDetails.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridFindingDetails.java @@ -271,6 +271,7 @@ public int getLabelsCount() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -308,6 +309,7 @@ public java.util.Map getLabels() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -336,6 +338,7 @@ public java.util.Map getLabelsMap() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -371,6 +374,7 @@ public java.util.Map getLabelsMap() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -1458,6 +1462,7 @@ public int getLabelsCount() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -1495,6 +1500,7 @@ public java.util.Map getLabels() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -1523,6 +1529,7 @@ public java.util.Map getLabelsMap() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -1558,6 +1565,7 @@ public java.util.Map getLabelsMap() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -1599,6 +1607,7 @@ public Builder clearLabels() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -1636,6 +1645,7 @@ public java.util.Map getMutableLabels() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -1671,6 +1681,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridFindingDetailsOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridFindingDetailsOrBuilder.java index b013346d4329..e6d440054784 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridFindingDetailsOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridFindingDetailsOrBuilder.java @@ -155,6 +155,7 @@ public interface HybridFindingDetailsOrBuilder * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -180,6 +181,7 @@ public interface HybridFindingDetailsOrBuilder * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -208,6 +210,7 @@ public interface HybridFindingDetailsOrBuilder * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -233,6 +236,7 @@ public interface HybridFindingDetailsOrBuilder * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -262,6 +266,7 @@ java.lang.String getLabelsOrDefault( * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridOptions.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridOptions.java index 1fe9400f9ede..ff4e876f0545 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridOptions.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridOptions.java @@ -264,6 +264,7 @@ public int getLabelsCount() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -298,6 +299,7 @@ public java.util.Map getLabels() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -323,6 +325,7 @@ public java.util.Map getLabelsMap() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -355,6 +358,7 @@ public java.util.Map getLabelsMap() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -1298,6 +1302,7 @@ public int getLabelsCount() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -1332,6 +1337,7 @@ public java.util.Map getLabels() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -1357,6 +1363,7 @@ public java.util.Map getLabelsMap() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -1389,6 +1396,7 @@ public java.util.Map getLabelsMap() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -1427,6 +1435,7 @@ public Builder clearLabels() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -1461,6 +1470,7 @@ public java.util.Map getMutableLabels() { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -1493,6 +1503,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridOptionsOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridOptionsOrBuilder.java index af1b35078649..67656186c74e 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridOptionsOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridOptionsOrBuilder.java @@ -145,6 +145,7 @@ public interface HybridOptionsOrBuilder * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -167,6 +168,7 @@ public interface HybridOptionsOrBuilder * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -192,6 +194,7 @@ public interface HybridOptionsOrBuilder * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -214,6 +217,7 @@ public interface HybridOptionsOrBuilder * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * @@ -240,6 +244,7 @@ java.lang.String getLabelsOrDefault( * No more than 10 labels can be associated with a given finding. * * Examples: + * * * `"environment" : "production"` * * `"pipeline" : "etl"` * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeCategory.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeCategory.java index d4bd42a82f86..7c309f650d9c 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeCategory.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeCategory.java @@ -104,6 +104,16 @@ public enum LocationCategory implements com.google.protobuf.ProtocolMessageEnum * ARGENTINA = 2; */ ARGENTINA(2), + /** + * + * + *
        +     * The infoType is typically used in Armenia.
        +     * 
        + * + * ARMENIA = 51; + */ + ARMENIA(51), /** * * @@ -124,6 +134,16 @@ public enum LocationCategory implements com.google.protobuf.ProtocolMessageEnum * AZERBAIJAN = 48; */ AZERBAIJAN(48), + /** + * + * + *
        +     * The infoType is typically used in Belarus.
        +     * 
        + * + * BELARUS = 50; + */ + BELARUS(50), /** * * @@ -598,6 +618,16 @@ public enum LocationCategory implements com.google.protobuf.ProtocolMessageEnum * ARGENTINA = 2; */ public static final int ARGENTINA_VALUE = 2; + /** + * + * + *
        +     * The infoType is typically used in Armenia.
        +     * 
        + * + * ARMENIA = 51; + */ + public static final int ARMENIA_VALUE = 51; /** * * @@ -618,6 +648,16 @@ public enum LocationCategory implements com.google.protobuf.ProtocolMessageEnum * AZERBAIJAN = 48; */ public static final int AZERBAIJAN_VALUE = 48; + /** + * + * + *
        +     * The infoType is typically used in Belarus.
        +     * 
        + * + * BELARUS = 50; + */ + public static final int BELARUS_VALUE = 50; /** * * @@ -1089,10 +1129,14 @@ public static LocationCategory forNumber(int value) { return GLOBAL; case 2: return ARGENTINA; + case 51: + return ARMENIA; case 3: return AUSTRALIA; case 48: return AZERBAIJAN; + case 50: + return BELARUS; case 4: return BELGIUM; case 5: diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java index 6e39a7534ccc..a63123424147 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java @@ -120,7 +120,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=6721 + * google/privacy/dlp/v2/dlp.proto;l=7072 * @return The estimatedPrevalence. */ @java.lang.Override @@ -707,7 +707,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=6721 + * google/privacy/dlp/v2/dlp.proto;l=7072 * @return The estimatedPrevalence. */ @java.lang.Override @@ -725,7 +725,7 @@ public int getEstimatedPrevalence() { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=6721 + * google/privacy/dlp/v2/dlp.proto;l=7072 * @param value The estimatedPrevalence to set. * @return This builder for chaining. */ @@ -747,7 +747,7 @@ public Builder setEstimatedPrevalence(int value) { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=6721 + * google/privacy/dlp/v2/dlp.proto;l=7072 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java index 3f91bb59ab99..3533e83e848a 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java @@ -69,7 +69,7 @@ public interface InfoTypeSummaryOrBuilder * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=6721 + * google/privacy/dlp/v2/dlp.proto;l=7072 * @return The estimatedPrevalence. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequest.java index 1dc4cf8f1c2f..dbc6fa65b0e4 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequest.java @@ -80,10 +80,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -118,10 +118,10 @@ public java.lang.String getParent() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -834,10 +834,10 @@ public Builder mergeFrom( * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -871,10 +871,10 @@ public java.lang.String getParent() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -908,10 +908,10 @@ public com.google.protobuf.ByteString getParentBytes() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -944,10 +944,10 @@ public Builder setParent(java.lang.String value) { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -976,10 +976,10 @@ public Builder clearParent() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequestOrBuilder.java index 07f340dfbc5e..9fb529a344e4 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequestOrBuilder.java @@ -34,10 +34,10 @@ public interface InspectContentRequestOrBuilder * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -61,10 +61,10 @@ public interface InspectContentRequestOrBuilder * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesRequest.java index 584a648739cc..f89a0d3804c3 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesRequest.java @@ -203,12 +203,13 @@ public int getPageSize() { * * *
        -   * Comma separated list of fields to order by, followed by `asc` or `desc`
        +   * Comma-separated list of fields to order by, followed by `asc` or `desc`
            * postfix. This list is case insensitive. The default sorting order is
            * ascending. Redundant space characters are insignificant. Only one order
            * field at a time is allowed.
            *
            * Examples:
        +   *
            * * `project_id asc`
            * * `table_id`
            * * `sensitivity_level desc`
        @@ -244,12 +245,13 @@ public java.lang.String getOrderBy() {
            *
            *
            * 
        -   * Comma separated list of fields to order by, followed by `asc` or `desc`
        +   * Comma-separated list of fields to order by, followed by `asc` or `desc`
            * postfix. This list is case insensitive. The default sorting order is
            * ascending. Redundant space characters are insignificant. Only one order
            * field at a time is allowed.
            *
            * Examples:
        +   *
            * * `project_id asc`
            * * `table_id`
            * * `sensitivity_level desc`
        @@ -1121,12 +1123,13 @@ public Builder clearPageSize() {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
              *
              * Examples:
        +     *
              * * `project_id asc`
              * * `table_id`
              * * `sensitivity_level desc`
        @@ -1161,12 +1164,13 @@ public java.lang.String getOrderBy() {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
              *
              * Examples:
        +     *
              * * `project_id asc`
              * * `table_id`
              * * `sensitivity_level desc`
        @@ -1201,12 +1205,13 @@ public com.google.protobuf.ByteString getOrderByBytes() {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
              *
              * Examples:
        +     *
              * * `project_id asc`
              * * `table_id`
              * * `sensitivity_level desc`
        @@ -1240,12 +1245,13 @@ public Builder setOrderBy(java.lang.String value) {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
              *
              * Examples:
        +     *
              * * `project_id asc`
              * * `table_id`
              * * `sensitivity_level desc`
        @@ -1275,12 +1281,13 @@ public Builder clearOrderBy() {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
              *
              * Examples:
        +     *
              * * `project_id asc`
              * * `table_id`
              * * `sensitivity_level desc`
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesRequestOrBuilder.java
        index 4ff7a55cd200..0b2577a471fe 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesRequestOrBuilder.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesRequestOrBuilder.java
        @@ -100,12 +100,13 @@ public interface ListColumnDataProfilesRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of fields to order by, followed by `asc` or `desc`
        +   * Comma-separated list of fields to order by, followed by `asc` or `desc`
            * postfix. This list is case insensitive. The default sorting order is
            * ascending. Redundant space characters are insignificant. Only one order
            * field at a time is allowed.
            *
            * Examples:
        +   *
            * * `project_id asc`
            * * `table_id`
            * * `sensitivity_level desc`
        @@ -130,12 +131,13 @@ public interface ListColumnDataProfilesRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of fields to order by, followed by `asc` or `desc`
        +   * Comma-separated list of fields to order by, followed by `asc` or `desc`
            * postfix. This list is case insensitive. The default sorting order is
            * ascending. Redundant space characters are insignificant. Only one order
            * field at a time is allowed.
            *
            * Examples:
        +   *
            * * `project_id asc`
            * * `table_id`
            * * `sensitivity_level desc`
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListConnectionsRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListConnectionsRequest.java
        index 6af9a88b11df..3aa4f0d8daa5 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListConnectionsRequest.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListConnectionsRequest.java
        @@ -73,8 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            *
            *
            * 
        -   * Required. Parent name, for example:
        -   * `projects/project-id/locations/global`.
        +   * Required. Resource name of the organization or project, for
        +   * example, `organizations/433245324/locations/europe` or
        +   * `projects/project-id/locations/asia`.
            * 
        * * @@ -99,8 +100,9 @@ public java.lang.String getParent() { * * *
        -   * Required. Parent name, for example:
        -   * `projects/project-id/locations/global`.
        +   * Required. Resource name of the organization or project, for
        +   * example, `organizations/433245324/locations/europe` or
        +   * `projects/project-id/locations/asia`.
            * 
        * * @@ -661,8 +663,9 @@ public Builder mergeFrom( * * *
        -     * Required. Parent name, for example:
        -     * `projects/project-id/locations/global`.
        +     * Required. Resource name of the organization or project, for
        +     * example, `organizations/433245324/locations/europe` or
        +     * `projects/project-id/locations/asia`.
              * 
        * * @@ -686,8 +689,9 @@ public java.lang.String getParent() { * * *
        -     * Required. Parent name, for example:
        -     * `projects/project-id/locations/global`.
        +     * Required. Resource name of the organization or project, for
        +     * example, `organizations/433245324/locations/europe` or
        +     * `projects/project-id/locations/asia`.
              * 
        * * @@ -711,8 +715,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
        -     * Required. Parent name, for example:
        -     * `projects/project-id/locations/global`.
        +     * Required. Resource name of the organization or project, for
        +     * example, `organizations/433245324/locations/europe` or
        +     * `projects/project-id/locations/asia`.
              * 
        * * @@ -735,8 +740,9 @@ public Builder setParent(java.lang.String value) { * * *
        -     * Required. Parent name, for example:
        -     * `projects/project-id/locations/global`.
        +     * Required. Resource name of the organization or project, for
        +     * example, `organizations/433245324/locations/europe` or
        +     * `projects/project-id/locations/asia`.
              * 
        * * @@ -755,8 +761,9 @@ public Builder clearParent() { * * *
        -     * Required. Parent name, for example:
        -     * `projects/project-id/locations/global`.
        +     * Required. Resource name of the organization or project, for
        +     * example, `organizations/433245324/locations/europe` or
        +     * `projects/project-id/locations/asia`.
              * 
        * * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListConnectionsRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListConnectionsRequestOrBuilder.java index d79c7a06918f..6a347b98fa3e 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListConnectionsRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListConnectionsRequestOrBuilder.java @@ -28,8 +28,9 @@ public interface ListConnectionsRequestOrBuilder * * *
        -   * Required. Parent name, for example:
        -   * `projects/project-id/locations/global`.
        +   * Required. Resource name of the organization or project, for
        +   * example, `organizations/433245324/locations/europe` or
        +   * `projects/project-id/locations/asia`.
            * 
        * * @@ -43,8 +44,9 @@ public interface ListConnectionsRequestOrBuilder * * *
        -   * Required. Parent name, for example:
        -   * `projects/project-id/locations/global`.
        +   * Required. Resource name of the organization or project, for
        +   * example, `organizations/433245324/locations/europe` or
        +   * `projects/project-id/locations/asia`.
            * 
        * * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java index 99f27f28cf09..f75972384742 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java @@ -81,14 +81,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> - * + Organizations scope, location specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -125,14 +125,14 @@ public java.lang.String getParent() { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> - * + Organizations scope, location specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -240,7 +240,7 @@ public int getPageSize() { * * *
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -275,7 +275,7 @@ public java.lang.String getOrderBy() {
            *
            *
            * 
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -806,14 +806,14 @@ public Builder mergeFrom(
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -849,14 +849,14 @@ public java.lang.String getParent() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -892,14 +892,14 @@ public com.google.protobuf.ByteString getParentBytes() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -934,14 +934,14 @@ public Builder setParent(java.lang.String value) {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -972,14 +972,14 @@ public Builder clearParent() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1178,7 +1178,7 @@ public Builder clearPageSize() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1212,7 +1212,7 @@ public java.lang.String getOrderBy() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1246,7 +1246,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1279,7 +1279,7 @@ public Builder setOrderBy(java.lang.String value) {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1308,7 +1308,7 @@ public Builder clearOrderBy() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java
        index d115b34dfa58..a5c526f13d49 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java
        @@ -34,14 +34,14 @@ public interface ListDeidentifyTemplatesRequestOrBuilder
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        -   * + Organizations scope, location specified:<br/>
        -   *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Organizations scope, no location specified (defaults to global):<br/>
        -   *   `organizations/`<var>ORG_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
        +   * + Organizations scope, location specified:
        +   *   `organizations/{org_id}/locations/{location_id}`
        +   * + Organizations scope, no location specified (defaults to global):
        +   *   `organizations/{org_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -67,14 +67,14 @@ public interface ListDeidentifyTemplatesRequestOrBuilder
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        -   * + Organizations scope, location specified:<br/>
        -   *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Organizations scope, no location specified (defaults to global):<br/>
        -   *   `organizations/`<var>ORG_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
        +   * + Organizations scope, location specified:
        +   *   `organizations/{org_id}/locations/{location_id}`
        +   * + Organizations scope, no location specified (defaults to global):
        +   *   `organizations/{org_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -136,7 +136,7 @@ public interface ListDeidentifyTemplatesRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -160,7 +160,7 @@ public interface ListDeidentifyTemplatesRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDiscoveryConfigsRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDiscoveryConfigsRequest.java
        index 12b140bc5144..c7a900b51fe5 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDiscoveryConfigsRequest.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDiscoveryConfigsRequest.java
        @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            * Required. Parent resource name.
            *
            * The format of this value is as follows:
        -   * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +   * `projects/{project_id}/locations/{location_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -110,7 +110,7 @@ public java.lang.String getParent() {
            * Required. Parent resource name.
            *
            * The format of this value is as follows:
        -   * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +   * `projects/{project_id}/locations/{location_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -219,7 +219,7 @@ public int getPageSize() {
            *
            *
            * 
        -   * Comma separated list of config fields to order by,
        +   * Comma-separated list of config fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -253,7 +253,7 @@ public java.lang.String getOrderBy() {
            *
            *
            * 
        -   * Comma separated list of config fields to order by,
        +   * Comma-separated list of config fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -705,7 +705,7 @@ public Builder mergeFrom(
              * Required. Parent resource name.
              *
              * The format of this value is as follows:
        -     * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +     * `projects/{project_id}/locations/{location_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -738,7 +738,7 @@ public java.lang.String getParent() {
              * Required. Parent resource name.
              *
              * The format of this value is as follows:
        -     * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +     * `projects/{project_id}/locations/{location_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -771,7 +771,7 @@ public com.google.protobuf.ByteString getParentBytes() {
              * Required. Parent resource name.
              *
              * The format of this value is as follows:
        -     * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +     * `projects/{project_id}/locations/{location_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -803,7 +803,7 @@ public Builder setParent(java.lang.String value) {
              * Required. Parent resource name.
              *
              * The format of this value is as follows:
        -     * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +     * `projects/{project_id}/locations/{location_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -831,7 +831,7 @@ public Builder clearParent() {
              * Required. Parent resource name.
              *
              * The format of this value is as follows:
        -     * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +     * `projects/{project_id}/locations/{location_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1032,7 +1032,7 @@ public Builder clearPageSize() {
              *
              *
              * 
        -     * Comma separated list of config fields to order by,
        +     * Comma-separated list of config fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1065,7 +1065,7 @@ public java.lang.String getOrderBy() {
              *
              *
              * 
        -     * Comma separated list of config fields to order by,
        +     * Comma-separated list of config fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1098,7 +1098,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
              *
              *
              * 
        -     * Comma separated list of config fields to order by,
        +     * Comma-separated list of config fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1130,7 +1130,7 @@ public Builder setOrderBy(java.lang.String value) {
              *
              *
              * 
        -     * Comma separated list of config fields to order by,
        +     * Comma-separated list of config fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1158,7 +1158,7 @@ public Builder clearOrderBy() {
              *
              *
              * 
        -     * Comma separated list of config fields to order by,
        +     * Comma-separated list of config fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDiscoveryConfigsRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDiscoveryConfigsRequestOrBuilder.java
        index 209935f55b05..e14c63bf7152 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDiscoveryConfigsRequestOrBuilder.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDiscoveryConfigsRequestOrBuilder.java
        @@ -31,7 +31,7 @@ public interface ListDiscoveryConfigsRequestOrBuilder
            * Required. Parent resource name.
            *
            * The format of this value is as follows:
        -   * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +   * `projects/{project_id}/locations/{location_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -54,7 +54,7 @@ public interface ListDiscoveryConfigsRequestOrBuilder
            * Required. Parent resource name.
            *
            * The format of this value is as follows:
        -   * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        +   * `projects/{project_id}/locations/{location_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -117,7 +117,7 @@ public interface ListDiscoveryConfigsRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of config fields to order by,
        +   * Comma-separated list of config fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -140,7 +140,7 @@ public interface ListDiscoveryConfigsRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of config fields to order by,
        +   * Comma-separated list of config fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java
        index 63fd1c7e3a41..c3be57603056 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java
        @@ -82,10 +82,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -122,10 +122,10 @@ public java.lang.String getParent() {
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -370,7 +370,7 @@ public com.google.privacy.dlp.v2.DlpJobType getType() {
            *
            *
            * 
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -405,7 +405,7 @@ public java.lang.String getOrderBy() {
            *
            *
            * 
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -980,10 +980,10 @@ public Builder mergeFrom(
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1019,10 +1019,10 @@ public java.lang.String getParent() {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1058,10 +1058,10 @@ public com.google.protobuf.ByteString getParentBytes() {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1096,10 +1096,10 @@ public Builder setParent(java.lang.String value) {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1130,10 +1130,10 @@ public Builder clearParent() {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1655,7 +1655,7 @@ public Builder clearType() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1689,7 +1689,7 @@ public java.lang.String getOrderBy() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1723,7 +1723,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1756,7 +1756,7 @@ public Builder setOrderBy(java.lang.String value) {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1785,7 +1785,7 @@ public Builder clearOrderBy() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java
        index f4451a9af052..af05d39e4a42 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java
        @@ -34,10 +34,10 @@ public interface ListDlpJobsRequestOrBuilder
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -63,10 +63,10 @@ public interface ListDlpJobsRequestOrBuilder
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -229,7 +229,7 @@ public interface ListDlpJobsRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -253,7 +253,7 @@ public interface ListDlpJobsRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesRequest.java
        new file mode 100644
        index 000000000000..2e6c16c97ecb
        --- /dev/null
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesRequest.java
        @@ -0,0 +1,1622 @@
        +/*
        + * Copyright 2024 Google LLC
        + *
        + * Licensed under the Apache License, Version 2.0 (the "License");
        + * you may not use this file except in compliance with the License.
        + * You may obtain a copy of the License at
        + *
        + *     https://www.apache.org/licenses/LICENSE-2.0
        + *
        + * Unless required by applicable law or agreed to in writing, software
        + * distributed under the License is distributed on an "AS IS" BASIS,
        + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        + * See the License for the specific language governing permissions and
        + * limitations under the License.
        + */
        +// Generated by the protocol buffer compiler.  DO NOT EDIT!
        +// source: google/privacy/dlp/v2/dlp.proto
        +
        +// Protobuf Java Version: 3.25.3
        +package com.google.privacy.dlp.v2;
        +
        +/**
        + *
        + *
        + * 
        + * Request to list the file store profiles generated for a given organization or
        + * project.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.ListFileStoreDataProfilesRequest} + */ +public final class ListFileStoreDataProfilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ListFileStoreDataProfilesRequest) + ListFileStoreDataProfilesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFileStoreDataProfilesRequest.newBuilder() to construct. + private ListFileStoreDataProfilesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFileStoreDataProfilesRequest() { + parent_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFileStoreDataProfilesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest.class, + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
        +   * Required. Resource name of the organization or project, for
        +   * example `organizations/433245324/locations/europe` or
        +   * `projects/project-id/locations/asia`.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
        +   * Required. Resource name of the organization or project, for
        +   * example `organizations/433245324/locations/europe` or
        +   * `projects/project-id/locations/asia`.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
        +   * Optional. Page token to continue retrieval.
        +   * 
        + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
        +   * Optional. Page token to continue retrieval.
        +   * 
        + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
        +   * Optional. Size of the page. This value can be limited by the server. If
        +   * zero, server returns a page of max size 100.
        +   * 
        + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
        +   * Optional. Comma-separated list of fields to order by, followed by `asc` or
        +   * `desc` postfix. This list is case insensitive. The default sorting order is
        +   * ascending. Redundant space characters are insignificant. Only one order
        +   * field at a time is allowed.
        +   *
        +   * Examples:
        +   *
        +   * * `project_id asc`
        +   * * `name`
        +   * * `sensitivity_level desc`
        +   *
        +   * Supported fields are:
        +   *
        +   * - `project_id`: The Google Cloud project ID.
        +   * - `sensitivity_level`: How sensitive the data in a table is, at most.
        +   * - `data_risk_level`: How much risk is associated with this data.
        +   * - `profile_last_generated`: When the profile was last updated in epoch
        +   * seconds.
        +   * - `last_modified`: The last time the resource was modified.
        +   * - `resource_visibility`: Visibility restriction for this resource.
        +   * - `name`: The name of the profile.
        +   * - `create_time`: The time the file store was first created.
        +   * 
        + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
        +   * Optional. Comma-separated list of fields to order by, followed by `asc` or
        +   * `desc` postfix. This list is case insensitive. The default sorting order is
        +   * ascending. Redundant space characters are insignificant. Only one order
        +   * field at a time is allowed.
        +   *
        +   * Examples:
        +   *
        +   * * `project_id asc`
        +   * * `name`
        +   * * `sensitivity_level desc`
        +   *
        +   * Supported fields are:
        +   *
        +   * - `project_id`: The Google Cloud project ID.
        +   * - `sensitivity_level`: How sensitive the data in a table is, at most.
        +   * - `data_risk_level`: How much risk is associated with this data.
        +   * - `profile_last_generated`: When the profile was last updated in epoch
        +   * seconds.
        +   * - `last_modified`: The last time the resource was modified.
        +   * - `resource_visibility`: Visibility restriction for this resource.
        +   * - `name`: The name of the profile.
        +   * - `create_time`: The time the file store was first created.
        +   * 
        + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
        +   * Optional. Allows filtering.
        +   *
        +   * Supported syntax:
        +   *
        +   * * Filter expressions are made up of one or more restrictions.
        +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
        +   * sequence of restrictions implicitly uses `AND`.
        +   * * A restriction has the form of `{field} {operator} {value}`.
        +   * * Supported fields/values:
        +   *     - `project_id` - The Google Cloud project ID.
        +   *     - `file_store_path` - The path like "gs://bucket".
        +   *     - `sensitivity_level` - HIGH|MODERATE|LOW
        +   *     - `data_risk_level` - HIGH|MODERATE|LOW
        +   *     - `resource_visibility`: PUBLIC|RESTRICTED
        +   *     - `status_code` - an RPC status code as defined in
        +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
        +   * * The operator must be `=` or `!=`.
        +   *
        +   * Examples:
        +   *
        +   * * `project_id = 12345 AND status_code = 1`
        +   * * `project_id = 12345 AND sensitivity_level = HIGH`
        +   * * `project_id = 12345 AND resource_visibility = PUBLIC`
        +   * * `file_store_path = "gs://mybucket"`
        +   *
        +   * The length of this field should be no more than 500 characters.
        +   * 
        + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
        +   * Optional. Allows filtering.
        +   *
        +   * Supported syntax:
        +   *
        +   * * Filter expressions are made up of one or more restrictions.
        +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
        +   * sequence of restrictions implicitly uses `AND`.
        +   * * A restriction has the form of `{field} {operator} {value}`.
        +   * * Supported fields/values:
        +   *     - `project_id` - The Google Cloud project ID.
        +   *     - `file_store_path` - The path like "gs://bucket".
        +   *     - `sensitivity_level` - HIGH|MODERATE|LOW
        +   *     - `data_risk_level` - HIGH|MODERATE|LOW
        +   *     - `resource_visibility`: PUBLIC|RESTRICTED
        +   *     - `status_code` - an RPC status code as defined in
        +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
        +   * * The operator must be `=` or `!=`.
        +   *
        +   * Examples:
        +   *
        +   * * `project_id = 12345 AND status_code = 1`
        +   * * `project_id = 12345 AND sensitivity_level = HIGH`
        +   * * `project_id = 12345 AND resource_visibility = PUBLIC`
        +   * * `file_store_path = "gs://mybucket"`
        +   *
        +   * The length of this field should be no more than 500 characters.
        +   * 
        + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest other = + (com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Request to list the file store profiles generated for a given organization or
        +   * project.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.ListFileStoreDataProfilesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ListFileStoreDataProfilesRequest) + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest.class, + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesRequest_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest build() { + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest buildPartial() { + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest result = + new com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest) { + return mergeFrom((com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest other) { + if (other == com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
        +     * Required. Resource name of the organization or project, for
        +     * example `organizations/433245324/locations/europe` or
        +     * `projects/project-id/locations/asia`.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Required. Resource name of the organization or project, for
        +     * example `organizations/433245324/locations/europe` or
        +     * `projects/project-id/locations/asia`.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Required. Resource name of the organization or project, for
        +     * example `organizations/433245324/locations/europe` or
        +     * `projects/project-id/locations/asia`.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Resource name of the organization or project, for
        +     * example `organizations/433245324/locations/europe` or
        +     * `projects/project-id/locations/asia`.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. Resource name of the organization or project, for
        +     * example `organizations/433245324/locations/europe` or
        +     * `projects/project-id/locations/asia`.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
        +     * Optional. Page token to continue retrieval.
        +     * 
        + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Optional. Page token to continue retrieval.
        +     * 
        + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Optional. Page token to continue retrieval.
        +     * 
        + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Page token to continue retrieval.
        +     * 
        + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Page token to continue retrieval.
        +     * 
        + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
        +     * Optional. Size of the page. This value can be limited by the server. If
        +     * zero, server returns a page of max size 100.
        +     * 
        + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
        +     * Optional. Size of the page. This value can be limited by the server. If
        +     * zero, server returns a page of max size 100.
        +     * 
        + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Size of the page. This value can be limited by the server. If
        +     * zero, server returns a page of max size 100.
        +     * 
        + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
        +     * Optional. Comma-separated list of fields to order by, followed by `asc` or
        +     * `desc` postfix. This list is case insensitive. The default sorting order is
        +     * ascending. Redundant space characters are insignificant. Only one order
        +     * field at a time is allowed.
        +     *
        +     * Examples:
        +     *
        +     * * `project_id asc`
        +     * * `name`
        +     * * `sensitivity_level desc`
        +     *
        +     * Supported fields are:
        +     *
        +     * - `project_id`: The Google Cloud project ID.
        +     * - `sensitivity_level`: How sensitive the data in a table is, at most.
        +     * - `data_risk_level`: How much risk is associated with this data.
        +     * - `profile_last_generated`: When the profile was last updated in epoch
        +     * seconds.
        +     * - `last_modified`: The last time the resource was modified.
        +     * - `resource_visibility`: Visibility restriction for this resource.
        +     * - `name`: The name of the profile.
        +     * - `create_time`: The time the file store was first created.
        +     * 
        + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Optional. Comma-separated list of fields to order by, followed by `asc` or
        +     * `desc` postfix. This list is case insensitive. The default sorting order is
        +     * ascending. Redundant space characters are insignificant. Only one order
        +     * field at a time is allowed.
        +     *
        +     * Examples:
        +     *
        +     * * `project_id asc`
        +     * * `name`
        +     * * `sensitivity_level desc`
        +     *
        +     * Supported fields are:
        +     *
        +     * - `project_id`: The Google Cloud project ID.
        +     * - `sensitivity_level`: How sensitive the data in a table is, at most.
        +     * - `data_risk_level`: How much risk is associated with this data.
        +     * - `profile_last_generated`: When the profile was last updated in epoch
        +     * seconds.
        +     * - `last_modified`: The last time the resource was modified.
        +     * - `resource_visibility`: Visibility restriction for this resource.
        +     * - `name`: The name of the profile.
        +     * - `create_time`: The time the file store was first created.
        +     * 
        + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Optional. Comma-separated list of fields to order by, followed by `asc` or
        +     * `desc` postfix. This list is case insensitive. The default sorting order is
        +     * ascending. Redundant space characters are insignificant. Only one order
        +     * field at a time is allowed.
        +     *
        +     * Examples:
        +     *
        +     * * `project_id asc`
        +     * * `name`
        +     * * `sensitivity_level desc`
        +     *
        +     * Supported fields are:
        +     *
        +     * - `project_id`: The Google Cloud project ID.
        +     * - `sensitivity_level`: How sensitive the data in a table is, at most.
        +     * - `data_risk_level`: How much risk is associated with this data.
        +     * - `profile_last_generated`: When the profile was last updated in epoch
        +     * seconds.
        +     * - `last_modified`: The last time the resource was modified.
        +     * - `resource_visibility`: Visibility restriction for this resource.
        +     * - `name`: The name of the profile.
        +     * - `create_time`: The time the file store was first created.
        +     * 
        + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Comma-separated list of fields to order by, followed by `asc` or
        +     * `desc` postfix. This list is case insensitive. The default sorting order is
        +     * ascending. Redundant space characters are insignificant. Only one order
        +     * field at a time is allowed.
        +     *
        +     * Examples:
        +     *
        +     * * `project_id asc`
        +     * * `name`
        +     * * `sensitivity_level desc`
        +     *
        +     * Supported fields are:
        +     *
        +     * - `project_id`: The Google Cloud project ID.
        +     * - `sensitivity_level`: How sensitive the data in a table is, at most.
        +     * - `data_risk_level`: How much risk is associated with this data.
        +     * - `profile_last_generated`: When the profile was last updated in epoch
        +     * seconds.
        +     * - `last_modified`: The last time the resource was modified.
        +     * - `resource_visibility`: Visibility restriction for this resource.
        +     * - `name`: The name of the profile.
        +     * - `create_time`: The time the file store was first created.
        +     * 
        + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Comma-separated list of fields to order by, followed by `asc` or
        +     * `desc` postfix. This list is case insensitive. The default sorting order is
        +     * ascending. Redundant space characters are insignificant. Only one order
        +     * field at a time is allowed.
        +     *
        +     * Examples:
        +     *
        +     * * `project_id asc`
        +     * * `name`
        +     * * `sensitivity_level desc`
        +     *
        +     * Supported fields are:
        +     *
        +     * - `project_id`: The Google Cloud project ID.
        +     * - `sensitivity_level`: How sensitive the data in a table is, at most.
        +     * - `data_risk_level`: How much risk is associated with this data.
        +     * - `profile_last_generated`: When the profile was last updated in epoch
        +     * seconds.
        +     * - `last_modified`: The last time the resource was modified.
        +     * - `resource_visibility`: Visibility restriction for this resource.
        +     * - `name`: The name of the profile.
        +     * - `create_time`: The time the file store was first created.
        +     * 
        + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
        +     * Optional. Allows filtering.
        +     *
        +     * Supported syntax:
        +     *
        +     * * Filter expressions are made up of one or more restrictions.
        +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
        +     * sequence of restrictions implicitly uses `AND`.
        +     * * A restriction has the form of `{field} {operator} {value}`.
        +     * * Supported fields/values:
        +     *     - `project_id` - The Google Cloud project ID.
        +     *     - `file_store_path` - The path like "gs://bucket".
        +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
        +     *     - `data_risk_level` - HIGH|MODERATE|LOW
        +     *     - `resource_visibility`: PUBLIC|RESTRICTED
        +     *     - `status_code` - an RPC status code as defined in
        +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
        +     * * The operator must be `=` or `!=`.
        +     *
        +     * Examples:
        +     *
        +     * * `project_id = 12345 AND status_code = 1`
        +     * * `project_id = 12345 AND sensitivity_level = HIGH`
        +     * * `project_id = 12345 AND resource_visibility = PUBLIC`
        +     * * `file_store_path = "gs://mybucket"`
        +     *
        +     * The length of this field should be no more than 500 characters.
        +     * 
        + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Optional. Allows filtering.
        +     *
        +     * Supported syntax:
        +     *
        +     * * Filter expressions are made up of one or more restrictions.
        +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
        +     * sequence of restrictions implicitly uses `AND`.
        +     * * A restriction has the form of `{field} {operator} {value}`.
        +     * * Supported fields/values:
        +     *     - `project_id` - The Google Cloud project ID.
        +     *     - `file_store_path` - The path like "gs://bucket".
        +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
        +     *     - `data_risk_level` - HIGH|MODERATE|LOW
        +     *     - `resource_visibility`: PUBLIC|RESTRICTED
        +     *     - `status_code` - an RPC status code as defined in
        +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
        +     * * The operator must be `=` or `!=`.
        +     *
        +     * Examples:
        +     *
        +     * * `project_id = 12345 AND status_code = 1`
        +     * * `project_id = 12345 AND sensitivity_level = HIGH`
        +     * * `project_id = 12345 AND resource_visibility = PUBLIC`
        +     * * `file_store_path = "gs://mybucket"`
        +     *
        +     * The length of this field should be no more than 500 characters.
        +     * 
        + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Optional. Allows filtering.
        +     *
        +     * Supported syntax:
        +     *
        +     * * Filter expressions are made up of one or more restrictions.
        +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
        +     * sequence of restrictions implicitly uses `AND`.
        +     * * A restriction has the form of `{field} {operator} {value}`.
        +     * * Supported fields/values:
        +     *     - `project_id` - The Google Cloud project ID.
        +     *     - `file_store_path` - The path like "gs://bucket".
        +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
        +     *     - `data_risk_level` - HIGH|MODERATE|LOW
        +     *     - `resource_visibility`: PUBLIC|RESTRICTED
        +     *     - `status_code` - an RPC status code as defined in
        +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
        +     * * The operator must be `=` or `!=`.
        +     *
        +     * Examples:
        +     *
        +     * * `project_id = 12345 AND status_code = 1`
        +     * * `project_id = 12345 AND sensitivity_level = HIGH`
        +     * * `project_id = 12345 AND resource_visibility = PUBLIC`
        +     * * `file_store_path = "gs://mybucket"`
        +     *
        +     * The length of this field should be no more than 500 characters.
        +     * 
        + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Allows filtering.
        +     *
        +     * Supported syntax:
        +     *
        +     * * Filter expressions are made up of one or more restrictions.
        +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
        +     * sequence of restrictions implicitly uses `AND`.
        +     * * A restriction has the form of `{field} {operator} {value}`.
        +     * * Supported fields/values:
        +     *     - `project_id` - The Google Cloud project ID.
        +     *     - `file_store_path` - The path like "gs://bucket".
        +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
        +     *     - `data_risk_level` - HIGH|MODERATE|LOW
        +     *     - `resource_visibility`: PUBLIC|RESTRICTED
        +     *     - `status_code` - an RPC status code as defined in
        +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
        +     * * The operator must be `=` or `!=`.
        +     *
        +     * Examples:
        +     *
        +     * * `project_id = 12345 AND status_code = 1`
        +     * * `project_id = 12345 AND sensitivity_level = HIGH`
        +     * * `project_id = 12345 AND resource_visibility = PUBLIC`
        +     * * `file_store_path = "gs://mybucket"`
        +     *
        +     * The length of this field should be no more than 500 characters.
        +     * 
        + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Allows filtering.
        +     *
        +     * Supported syntax:
        +     *
        +     * * Filter expressions are made up of one or more restrictions.
        +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
        +     * sequence of restrictions implicitly uses `AND`.
        +     * * A restriction has the form of `{field} {operator} {value}`.
        +     * * Supported fields/values:
        +     *     - `project_id` - The Google Cloud project ID.
        +     *     - `file_store_path` - The path like "gs://bucket".
        +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
        +     *     - `data_risk_level` - HIGH|MODERATE|LOW
        +     *     - `resource_visibility`: PUBLIC|RESTRICTED
        +     *     - `status_code` - an RPC status code as defined in
        +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
        +     * * The operator must be `=` or `!=`.
        +     *
        +     * Examples:
        +     *
        +     * * `project_id = 12345 AND status_code = 1`
        +     * * `project_id = 12345 AND sensitivity_level = HIGH`
        +     * * `project_id = 12345 AND resource_visibility = PUBLIC`
        +     * * `file_store_path = "gs://mybucket"`
        +     *
        +     * The length of this field should be no more than 500 characters.
        +     * 
        + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.ListFileStoreDataProfilesRequest) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListFileStoreDataProfilesRequest) + private static final com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest(); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFileStoreDataProfilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesRequestOrBuilder.java new file mode 100644 index 000000000000..0a56bf470b9e --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesRequestOrBuilder.java @@ -0,0 +1,240 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface ListFileStoreDataProfilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ListFileStoreDataProfilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. Resource name of the organization or project, for
        +   * example `organizations/433245324/locations/europe` or
        +   * `projects/project-id/locations/asia`.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
        +   * Required. Resource name of the organization or project, for
        +   * example `organizations/433245324/locations/europe` or
        +   * `projects/project-id/locations/asia`.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
        +   * Optional. Page token to continue retrieval.
        +   * 
        + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
        +   * Optional. Page token to continue retrieval.
        +   * 
        + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
        +   * Optional. Size of the page. This value can be limited by the server. If
        +   * zero, server returns a page of max size 100.
        +   * 
        + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
        +   * Optional. Comma-separated list of fields to order by, followed by `asc` or
        +   * `desc` postfix. This list is case insensitive. The default sorting order is
        +   * ascending. Redundant space characters are insignificant. Only one order
        +   * field at a time is allowed.
        +   *
        +   * Examples:
        +   *
        +   * * `project_id asc`
        +   * * `name`
        +   * * `sensitivity_level desc`
        +   *
        +   * Supported fields are:
        +   *
        +   * - `project_id`: The Google Cloud project ID.
        +   * - `sensitivity_level`: How sensitive the data in a table is, at most.
        +   * - `data_risk_level`: How much risk is associated with this data.
        +   * - `profile_last_generated`: When the profile was last updated in epoch
        +   * seconds.
        +   * - `last_modified`: The last time the resource was modified.
        +   * - `resource_visibility`: Visibility restriction for this resource.
        +   * - `name`: The name of the profile.
        +   * - `create_time`: The time the file store was first created.
        +   * 
        + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
        +   * Optional. Comma-separated list of fields to order by, followed by `asc` or
        +   * `desc` postfix. This list is case insensitive. The default sorting order is
        +   * ascending. Redundant space characters are insignificant. Only one order
        +   * field at a time is allowed.
        +   *
        +   * Examples:
        +   *
        +   * * `project_id asc`
        +   * * `name`
        +   * * `sensitivity_level desc`
        +   *
        +   * Supported fields are:
        +   *
        +   * - `project_id`: The Google Cloud project ID.
        +   * - `sensitivity_level`: How sensitive the data in a table is, at most.
        +   * - `data_risk_level`: How much risk is associated with this data.
        +   * - `profile_last_generated`: When the profile was last updated in epoch
        +   * seconds.
        +   * - `last_modified`: The last time the resource was modified.
        +   * - `resource_visibility`: Visibility restriction for this resource.
        +   * - `name`: The name of the profile.
        +   * - `create_time`: The time the file store was first created.
        +   * 
        + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
        +   * Optional. Allows filtering.
        +   *
        +   * Supported syntax:
        +   *
        +   * * Filter expressions are made up of one or more restrictions.
        +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
        +   * sequence of restrictions implicitly uses `AND`.
        +   * * A restriction has the form of `{field} {operator} {value}`.
        +   * * Supported fields/values:
        +   *     - `project_id` - The Google Cloud project ID.
        +   *     - `file_store_path` - The path like "gs://bucket".
        +   *     - `sensitivity_level` - HIGH|MODERATE|LOW
        +   *     - `data_risk_level` - HIGH|MODERATE|LOW
        +   *     - `resource_visibility`: PUBLIC|RESTRICTED
        +   *     - `status_code` - an RPC status code as defined in
        +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
        +   * * The operator must be `=` or `!=`.
        +   *
        +   * Examples:
        +   *
        +   * * `project_id = 12345 AND status_code = 1`
        +   * * `project_id = 12345 AND sensitivity_level = HIGH`
        +   * * `project_id = 12345 AND resource_visibility = PUBLIC`
        +   * * `file_store_path = "gs://mybucket"`
        +   *
        +   * The length of this field should be no more than 500 characters.
        +   * 
        + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
        +   * Optional. Allows filtering.
        +   *
        +   * Supported syntax:
        +   *
        +   * * Filter expressions are made up of one or more restrictions.
        +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
        +   * sequence of restrictions implicitly uses `AND`.
        +   * * A restriction has the form of `{field} {operator} {value}`.
        +   * * Supported fields/values:
        +   *     - `project_id` - The Google Cloud project ID.
        +   *     - `file_store_path` - The path like "gs://bucket".
        +   *     - `sensitivity_level` - HIGH|MODERATE|LOW
        +   *     - `data_risk_level` - HIGH|MODERATE|LOW
        +   *     - `resource_visibility`: PUBLIC|RESTRICTED
        +   *     - `status_code` - an RPC status code as defined in
        +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
        +   * * The operator must be `=` or `!=`.
        +   *
        +   * Examples:
        +   *
        +   * * `project_id = 12345 AND status_code = 1`
        +   * * `project_id = 12345 AND sensitivity_level = HIGH`
        +   * * `project_id = 12345 AND resource_visibility = PUBLIC`
        +   * * `file_store_path = "gs://mybucket"`
        +   *
        +   * The length of this field should be no more than 500 characters.
        +   * 
        + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesResponse.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesResponse.java new file mode 100644 index 000000000000..956fa017eae5 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesResponse.java @@ -0,0 +1,1157 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +/** + * + * + *
        + * List of file store data profiles generated for a given organization or
        + * project.
        + * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.ListFileStoreDataProfilesResponse} + */ +public final class ListFileStoreDataProfilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ListFileStoreDataProfilesResponse) + ListFileStoreDataProfilesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFileStoreDataProfilesResponse.newBuilder() to construct. + private ListFileStoreDataProfilesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFileStoreDataProfilesResponse() { + fileStoreDataProfiles_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFileStoreDataProfilesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse.class, + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse.Builder.class); + } + + public static final int FILE_STORE_DATA_PROFILES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List fileStoreDataProfiles_; + /** + * + * + *
        +   * List of data profiles.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + */ + @java.lang.Override + public java.util.List + getFileStoreDataProfilesList() { + return fileStoreDataProfiles_; + } + /** + * + * + *
        +   * List of data profiles.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + */ + @java.lang.Override + public java.util.List + getFileStoreDataProfilesOrBuilderList() { + return fileStoreDataProfiles_; + } + /** + * + * + *
        +   * List of data profiles.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + */ + @java.lang.Override + public int getFileStoreDataProfilesCount() { + return fileStoreDataProfiles_.size(); + } + /** + * + * + *
        +   * List of data profiles.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreDataProfile getFileStoreDataProfiles(int index) { + return fileStoreDataProfiles_.get(index); + } + /** + * + * + *
        +   * List of data profiles.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder getFileStoreDataProfilesOrBuilder( + int index) { + return fileStoreDataProfiles_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
        +   * The next page token.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
        +   * The next page token.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < fileStoreDataProfiles_.size(); i++) { + output.writeMessage(1, fileStoreDataProfiles_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < fileStoreDataProfiles_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, fileStoreDataProfiles_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse other = + (com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse) obj; + + if (!getFileStoreDataProfilesList().equals(other.getFileStoreDataProfilesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFileStoreDataProfilesCount() > 0) { + hash = (37 * hash) + FILE_STORE_DATA_PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getFileStoreDataProfilesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * List of file store data profiles generated for a given organization or
        +   * project.
        +   * 
        + * + * Protobuf type {@code google.privacy.dlp.v2.ListFileStoreDataProfilesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ListFileStoreDataProfilesResponse) + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse.class, + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (fileStoreDataProfilesBuilder_ == null) { + fileStoreDataProfiles_ = java.util.Collections.emptyList(); + } else { + fileStoreDataProfiles_ = null; + fileStoreDataProfilesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesResponse_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse build() { + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse buildPartial() { + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse result = + new com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse result) { + if (fileStoreDataProfilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fileStoreDataProfiles_ = java.util.Collections.unmodifiableList(fileStoreDataProfiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fileStoreDataProfiles_ = fileStoreDataProfiles_; + } else { + result.fileStoreDataProfiles_ = fileStoreDataProfilesBuilder_.build(); + } + } + + private void buildPartial0(com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse) { + return mergeFrom((com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse other) { + if (other == com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse.getDefaultInstance()) + return this; + if (fileStoreDataProfilesBuilder_ == null) { + if (!other.fileStoreDataProfiles_.isEmpty()) { + if (fileStoreDataProfiles_.isEmpty()) { + fileStoreDataProfiles_ = other.fileStoreDataProfiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFileStoreDataProfilesIsMutable(); + fileStoreDataProfiles_.addAll(other.fileStoreDataProfiles_); + } + onChanged(); + } + } else { + if (!other.fileStoreDataProfiles_.isEmpty()) { + if (fileStoreDataProfilesBuilder_.isEmpty()) { + fileStoreDataProfilesBuilder_.dispose(); + fileStoreDataProfilesBuilder_ = null; + fileStoreDataProfiles_ = other.fileStoreDataProfiles_; + bitField0_ = (bitField0_ & ~0x00000001); + fileStoreDataProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFileStoreDataProfilesFieldBuilder() + : null; + } else { + fileStoreDataProfilesBuilder_.addAllMessages(other.fileStoreDataProfiles_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.privacy.dlp.v2.FileStoreDataProfile m = + input.readMessage( + com.google.privacy.dlp.v2.FileStoreDataProfile.parser(), extensionRegistry); + if (fileStoreDataProfilesBuilder_ == null) { + ensureFileStoreDataProfilesIsMutable(); + fileStoreDataProfiles_.add(m); + } else { + fileStoreDataProfilesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List fileStoreDataProfiles_ = + java.util.Collections.emptyList(); + + private void ensureFileStoreDataProfilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fileStoreDataProfiles_ = + new java.util.ArrayList( + fileStoreDataProfiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreDataProfile, + com.google.privacy.dlp.v2.FileStoreDataProfile.Builder, + com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder> + fileStoreDataProfilesBuilder_; + + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public java.util.List + getFileStoreDataProfilesList() { + if (fileStoreDataProfilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(fileStoreDataProfiles_); + } else { + return fileStoreDataProfilesBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public int getFileStoreDataProfilesCount() { + if (fileStoreDataProfilesBuilder_ == null) { + return fileStoreDataProfiles_.size(); + } else { + return fileStoreDataProfilesBuilder_.getCount(); + } + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public com.google.privacy.dlp.v2.FileStoreDataProfile getFileStoreDataProfiles(int index) { + if (fileStoreDataProfilesBuilder_ == null) { + return fileStoreDataProfiles_.get(index); + } else { + return fileStoreDataProfilesBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public Builder setFileStoreDataProfiles( + int index, com.google.privacy.dlp.v2.FileStoreDataProfile value) { + if (fileStoreDataProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileStoreDataProfilesIsMutable(); + fileStoreDataProfiles_.set(index, value); + onChanged(); + } else { + fileStoreDataProfilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public Builder setFileStoreDataProfiles( + int index, com.google.privacy.dlp.v2.FileStoreDataProfile.Builder builderForValue) { + if (fileStoreDataProfilesBuilder_ == null) { + ensureFileStoreDataProfilesIsMutable(); + fileStoreDataProfiles_.set(index, builderForValue.build()); + onChanged(); + } else { + fileStoreDataProfilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public Builder addFileStoreDataProfiles(com.google.privacy.dlp.v2.FileStoreDataProfile value) { + if (fileStoreDataProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileStoreDataProfilesIsMutable(); + fileStoreDataProfiles_.add(value); + onChanged(); + } else { + fileStoreDataProfilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public Builder addFileStoreDataProfiles( + int index, com.google.privacy.dlp.v2.FileStoreDataProfile value) { + if (fileStoreDataProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileStoreDataProfilesIsMutable(); + fileStoreDataProfiles_.add(index, value); + onChanged(); + } else { + fileStoreDataProfilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public Builder addFileStoreDataProfiles( + com.google.privacy.dlp.v2.FileStoreDataProfile.Builder builderForValue) { + if (fileStoreDataProfilesBuilder_ == null) { + ensureFileStoreDataProfilesIsMutable(); + fileStoreDataProfiles_.add(builderForValue.build()); + onChanged(); + } else { + fileStoreDataProfilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public Builder addFileStoreDataProfiles( + int index, com.google.privacy.dlp.v2.FileStoreDataProfile.Builder builderForValue) { + if (fileStoreDataProfilesBuilder_ == null) { + ensureFileStoreDataProfilesIsMutable(); + fileStoreDataProfiles_.add(index, builderForValue.build()); + onChanged(); + } else { + fileStoreDataProfilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public Builder addAllFileStoreDataProfiles( + java.lang.Iterable values) { + if (fileStoreDataProfilesBuilder_ == null) { + ensureFileStoreDataProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileStoreDataProfiles_); + onChanged(); + } else { + fileStoreDataProfilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public Builder clearFileStoreDataProfiles() { + if (fileStoreDataProfilesBuilder_ == null) { + fileStoreDataProfiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fileStoreDataProfilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public Builder removeFileStoreDataProfiles(int index) { + if (fileStoreDataProfilesBuilder_ == null) { + ensureFileStoreDataProfilesIsMutable(); + fileStoreDataProfiles_.remove(index); + onChanged(); + } else { + fileStoreDataProfilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public com.google.privacy.dlp.v2.FileStoreDataProfile.Builder getFileStoreDataProfilesBuilder( + int index) { + return getFileStoreDataProfilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder + getFileStoreDataProfilesOrBuilder(int index) { + if (fileStoreDataProfilesBuilder_ == null) { + return fileStoreDataProfiles_.get(index); + } else { + return fileStoreDataProfilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public java.util.List + getFileStoreDataProfilesOrBuilderList() { + if (fileStoreDataProfilesBuilder_ != null) { + return fileStoreDataProfilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fileStoreDataProfiles_); + } + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public com.google.privacy.dlp.v2.FileStoreDataProfile.Builder + addFileStoreDataProfilesBuilder() { + return getFileStoreDataProfilesFieldBuilder() + .addBuilder(com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance()); + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public com.google.privacy.dlp.v2.FileStoreDataProfile.Builder addFileStoreDataProfilesBuilder( + int index) { + return getFileStoreDataProfilesFieldBuilder() + .addBuilder(index, com.google.privacy.dlp.v2.FileStoreDataProfile.getDefaultInstance()); + } + /** + * + * + *
        +     * List of data profiles.
        +     * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * + */ + public java.util.List + getFileStoreDataProfilesBuilderList() { + return getFileStoreDataProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreDataProfile, + com.google.privacy.dlp.v2.FileStoreDataProfile.Builder, + com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder> + getFileStoreDataProfilesFieldBuilder() { + if (fileStoreDataProfilesBuilder_ == null) { + fileStoreDataProfilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FileStoreDataProfile, + com.google.privacy.dlp.v2.FileStoreDataProfile.Builder, + com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder>( + fileStoreDataProfiles_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + fileStoreDataProfiles_ = null; + } + return fileStoreDataProfilesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
        +     * The next page token.
        +     * 
        + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * The next page token.
        +     * 
        + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * The next page token.
        +     * 
        + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * The next page token.
        +     * 
        + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
        +     * The next page token.
        +     * 
        + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.ListFileStoreDataProfilesResponse) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListFileStoreDataProfilesResponse) + private static final com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse(); + } + + public static com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFileStoreDataProfilesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesResponseOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesResponseOrBuilder.java new file mode 100644 index 000000000000..6a006c3880c4 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.3 +package com.google.privacy.dlp.v2; + +public interface ListFileStoreDataProfilesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ListFileStoreDataProfilesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * List of data profiles.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + */ + java.util.List getFileStoreDataProfilesList(); + /** + * + * + *
        +   * List of data profiles.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + */ + com.google.privacy.dlp.v2.FileStoreDataProfile getFileStoreDataProfiles(int index); + /** + * + * + *
        +   * List of data profiles.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + */ + int getFileStoreDataProfilesCount(); + /** + * + * + *
        +   * List of data profiles.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + */ + java.util.List + getFileStoreDataProfilesOrBuilderList(); + /** + * + * + *
        +   * List of data profiles.
        +   * 
        + * + * repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + */ + com.google.privacy.dlp.v2.FileStoreDataProfileOrBuilder getFileStoreDataProfilesOrBuilder( + int index); + + /** + * + * + *
        +   * The next page token.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
        +   * The next page token.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInfoTypesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInfoTypesRequest.java index 9e279219aa66..868d875f9f74 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInfoTypesRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInfoTypesRequest.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The format of this value is as follows: * - * locations/<var>LOCATION_ID</var> + * `locations/{location_id}` *
        * * string parent = 4; @@ -105,7 +105,7 @@ public java.lang.String getParent() { * * The format of this value is as follows: * - * locations/<var>LOCATION_ID</var> + * `locations/{location_id}` *
        * * string parent = 4; @@ -706,7 +706,7 @@ public Builder mergeFrom( * * The format of this value is as follows: * - * locations/<var>LOCATION_ID</var> + * `locations/{location_id}` *
        * * string parent = 4; @@ -732,7 +732,7 @@ public java.lang.String getParent() { * * The format of this value is as follows: * - * locations/<var>LOCATION_ID</var> + * `locations/{location_id}` *
        * * string parent = 4; @@ -758,7 +758,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value is as follows: * - * locations/<var>LOCATION_ID</var> + * `locations/{location_id}` *
        * * string parent = 4; @@ -783,7 +783,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value is as follows: * - * locations/<var>LOCATION_ID</var> + * `locations/{location_id}` *
        * * string parent = 4; @@ -804,7 +804,7 @@ public Builder clearParent() { * * The format of this value is as follows: * - * locations/<var>LOCATION_ID</var> + * `locations/{location_id}` *
        * * string parent = 4; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInfoTypesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInfoTypesRequestOrBuilder.java index 194e1221a936..2dfdde454cdc 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInfoTypesRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInfoTypesRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface ListInfoTypesRequestOrBuilder * * The format of this value is as follows: * - * locations/<var>LOCATION_ID</var> + * `locations/{location_id}` *
        * * string parent = 4; @@ -48,7 +48,7 @@ public interface ListInfoTypesRequestOrBuilder * * The format of this value is as follows: * - * locations/<var>LOCATION_ID</var> + * `locations/{location_id}` *
        * * string parent = 4; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java index 65eab5fb975b..963834931529 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java @@ -80,14 +80,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> - * + Organizations scope, location specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -124,14 +124,14 @@ public java.lang.String getParent() { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> - * + Organizations scope, location specified:<br/> - * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Organizations scope, no location specified (defaults to global):<br/> - * `organizations/`<var>ORG_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -239,7 +239,7 @@ public int getPageSize() { * * *
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -274,7 +274,7 @@ public java.lang.String getOrderBy() {
            *
            *
            * 
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -805,14 +805,14 @@ public Builder mergeFrom(
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -848,14 +848,14 @@ public java.lang.String getParent() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -891,14 +891,14 @@ public com.google.protobuf.ByteString getParentBytes() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -933,14 +933,14 @@ public Builder setParent(java.lang.String value) {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -971,14 +971,14 @@ public Builder clearParent() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        -     * + Organizations scope, location specified:<br/>
        -     *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Organizations scope, no location specified (defaults to global):<br/>
        -     *   `organizations/`<var>ORG_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
        +     * + Organizations scope, location specified:
        +     *   `organizations/{org_id}/locations/{location_id}`
        +     * + Organizations scope, no location specified (defaults to global):
        +     *   `organizations/{org_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1177,7 +1177,7 @@ public Builder clearPageSize() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1211,7 +1211,7 @@ public java.lang.String getOrderBy() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1245,7 +1245,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1278,7 +1278,7 @@ public Builder setOrderBy(java.lang.String value) {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1307,7 +1307,7 @@ public Builder clearOrderBy() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java
        index 30e2be2be3cb..13de9b617578 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java
        @@ -34,14 +34,14 @@ public interface ListInspectTemplatesRequestOrBuilder
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        -   * + Organizations scope, location specified:<br/>
        -   *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Organizations scope, no location specified (defaults to global):<br/>
        -   *   `organizations/`<var>ORG_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
        +   * + Organizations scope, location specified:
        +   *   `organizations/{org_id}/locations/{location_id}`
        +   * + Organizations scope, no location specified (defaults to global):
        +   *   `organizations/{org_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -67,14 +67,14 @@ public interface ListInspectTemplatesRequestOrBuilder
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        -   * + Organizations scope, location specified:<br/>
        -   *   `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Organizations scope, no location specified (defaults to global):<br/>
        -   *   `organizations/`<var>ORG_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
        +   * + Organizations scope, location specified:
        +   *   `organizations/{org_id}/locations/{location_id}`
        +   * + Organizations scope, no location specified (defaults to global):
        +   *   `organizations/{org_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -136,7 +136,7 @@ public interface ListInspectTemplatesRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -160,7 +160,7 @@ public interface ListInspectTemplatesRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java
        index 4316b73547ae..f89e85a1052a 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java
        @@ -82,10 +82,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -122,10 +122,10 @@ public java.lang.String getParent() {
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -234,7 +234,7 @@ public int getPageSize() {
            *
            *
            * 
        -   * Comma separated list of triggeredJob fields to order by,
        +   * Comma-separated list of triggeredJob fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -271,7 +271,7 @@ public java.lang.String getOrderBy() {
            *
            *
            * 
        -   * Comma separated list of triggeredJob fields to order by,
        +   * Comma-separated list of triggeredJob fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -981,10 +981,10 @@ public Builder mergeFrom(
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1020,10 +1020,10 @@ public java.lang.String getParent() {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1059,10 +1059,10 @@ public com.google.protobuf.ByteString getParentBytes() {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1097,10 +1097,10 @@ public Builder setParent(java.lang.String value) {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1131,10 +1131,10 @@ public Builder clearParent() {
              * processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1335,7 +1335,7 @@ public Builder clearPageSize() {
              *
              *
              * 
        -     * Comma separated list of triggeredJob fields to order by,
        +     * Comma-separated list of triggeredJob fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1371,7 +1371,7 @@ public java.lang.String getOrderBy() {
              *
              *
              * 
        -     * Comma separated list of triggeredJob fields to order by,
        +     * Comma-separated list of triggeredJob fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1407,7 +1407,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
              *
              *
              * 
        -     * Comma separated list of triggeredJob fields to order by,
        +     * Comma-separated list of triggeredJob fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1442,7 +1442,7 @@ public Builder setOrderBy(java.lang.String value) {
              *
              *
              * 
        -     * Comma separated list of triggeredJob fields to order by,
        +     * Comma-separated list of triggeredJob fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1473,7 +1473,7 @@ public Builder clearOrderBy() {
              *
              *
              * 
        -     * Comma separated list of triggeredJob fields to order by,
        +     * Comma-separated list of triggeredJob fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java
        index 0c830203859e..fd60ecaada6e 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java
        @@ -34,10 +34,10 @@ public interface ListJobTriggersRequestOrBuilder
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -63,10 +63,10 @@ public interface ListJobTriggersRequestOrBuilder
            * processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -129,7 +129,7 @@ public interface ListJobTriggersRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of triggeredJob fields to order by,
        +   * Comma-separated list of triggeredJob fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -155,7 +155,7 @@ public interface ListJobTriggersRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of triggeredJob fields to order by,
        +   * Comma-separated list of triggeredJob fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesRequest.java
        index 92acdd12a7f5..4b78c037fb70 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesRequest.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesRequest.java
        @@ -200,7 +200,7 @@ public int getPageSize() {
            *
            *
            * 
        -   * Comma separated list of fields to order by, followed by `asc` or `desc`
        +   * Comma-separated list of fields to order by, followed by `asc` or `desc`
            * postfix. This list is case insensitive. The default sorting order is
            * ascending. Redundant space characters are insignificant. Only one order
            * field at a time is allowed.
        @@ -238,7 +238,7 @@ public java.lang.String getOrderBy() {
            *
            *
            * 
        -   * Comma separated list of fields to order by, followed by `asc` or `desc`
        +   * Comma-separated list of fields to order by, followed by `asc` or `desc`
            * postfix. This list is case insensitive. The default sorting order is
            * ascending. Redundant space characters are insignificant. Only one order
            * field at a time is allowed.
        @@ -1084,7 +1084,7 @@ public Builder clearPageSize() {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
        @@ -1121,7 +1121,7 @@ public java.lang.String getOrderBy() {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
        @@ -1158,7 +1158,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
        @@ -1194,7 +1194,7 @@ public Builder setOrderBy(java.lang.String value) {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
        @@ -1226,7 +1226,7 @@ public Builder clearOrderBy() {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesRequestOrBuilder.java
        index 60110e5d902b..a1d629cc39d6 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesRequestOrBuilder.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesRequestOrBuilder.java
        @@ -96,7 +96,7 @@ public interface ListProjectDataProfilesRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of fields to order by, followed by `asc` or `desc`
        +   * Comma-separated list of fields to order by, followed by `asc` or `desc`
            * postfix. This list is case insensitive. The default sorting order is
            * ascending. Redundant space characters are insignificant. Only one order
            * field at a time is allowed.
        @@ -123,7 +123,7 @@ public interface ListProjectDataProfilesRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of fields to order by, followed by `asc` or `desc`
        +   * Comma-separated list of fields to order by, followed by `asc` or `desc`
            * postfix. This list is case insensitive. The default sorting order is
            * ascending. Redundant space characters are insignificant. Only one order
            * field at a time is allowed.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java
        index 503667d745ac..63cdf807d3f5 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java
        @@ -80,10 +80,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -120,10 +120,10 @@ public java.lang.String getParent() {
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -231,7 +231,7 @@ public int getPageSize() {
            *
            *
            * 
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -267,7 +267,7 @@ public java.lang.String getOrderBy() {
            *
            *
            * 
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -798,10 +798,10 @@ public Builder mergeFrom(
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -837,10 +837,10 @@ public java.lang.String getParent() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -876,10 +876,10 @@ public com.google.protobuf.ByteString getParentBytes() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -914,10 +914,10 @@ public Builder setParent(java.lang.String value) {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -948,10 +948,10 @@ public Builder clearParent() {
              * (project or organization) and whether you have [specified a processing
              * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
              *
        -     * + Projects scope, location specified:<br/>
        -     *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -     * + Projects scope, no location specified (defaults to global):<br/>
        -     *   `projects/`<var>PROJECT_ID</var>
        +     * + Projects scope, location specified:
        +     *   `projects/{project_id}/locations/{location_id}`
        +     * + Projects scope, no location specified (defaults to global):
        +     *   `projects/{project_id}`
              *
              * The following example `parent` string specifies a parent project with the
              * identifier `example-project`, and specifies the `europe-west3` location
        @@ -1150,7 +1150,7 @@ public Builder clearPageSize() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1185,7 +1185,7 @@ public java.lang.String getOrderBy() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1220,7 +1220,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1254,7 +1254,7 @@ public Builder setOrderBy(java.lang.String value) {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        @@ -1284,7 +1284,7 @@ public Builder clearOrderBy() {
              *
              *
              * 
        -     * Comma separated list of fields to order by,
        +     * Comma-separated list of fields to order by,
              * followed by `asc` or `desc` postfix. This list is case insensitive. The
              * default sorting order is ascending. Redundant space characters are
              * insignificant.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java
        index c41f7de5aa5d..0a93e7baf341 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java
        @@ -34,10 +34,10 @@ public interface ListStoredInfoTypesRequestOrBuilder
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -63,10 +63,10 @@ public interface ListStoredInfoTypesRequestOrBuilder
            * (project or organization) and whether you have [specified a processing
            * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
            *
        -   * + Projects scope, location specified:<br/>
        -   *   `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
        -   * + Projects scope, no location specified (defaults to global):<br/>
        -   *   `projects/`<var>PROJECT_ID</var>
        +   * + Projects scope, location specified:
        +   *   `projects/{project_id}/locations/{location_id}`
        +   * + Projects scope, no location specified (defaults to global):
        +   *   `projects/{project_id}`
            *
            * The following example `parent` string specifies a parent project with the
            * identifier `example-project`, and specifies the `europe-west3` location
        @@ -128,7 +128,7 @@ public interface ListStoredInfoTypesRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        @@ -153,7 +153,7 @@ public interface ListStoredInfoTypesRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of fields to order by,
        +   * Comma-separated list of fields to order by,
            * followed by `asc` or `desc` postfix. This list is case insensitive. The
            * default sorting order is ascending. Redundant space characters are
            * insignificant.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequest.java
        index c4901a0cc2f5..1c3881444114 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequest.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequest.java
        @@ -203,7 +203,7 @@ public int getPageSize() {
            *
            *
            * 
        -   * Comma separated list of fields to order by, followed by `asc` or `desc`
        +   * Comma-separated list of fields to order by, followed by `asc` or `desc`
            * postfix. This list is case insensitive. The default sorting order is
            * ascending. Redundant space characters are insignificant. Only one order
            * field at a time is allowed.
        @@ -247,7 +247,7 @@ public java.lang.String getOrderBy() {
            *
            *
            * 
        -   * Comma separated list of fields to order by, followed by `asc` or `desc`
        +   * Comma-separated list of fields to order by, followed by `asc` or `desc`
            * postfix. This list is case insensitive. The default sorting order is
            * ascending. Redundant space characters are insignificant. Only one order
            * field at a time is allowed.
        @@ -1119,7 +1119,7 @@ public Builder clearPageSize() {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
        @@ -1162,7 +1162,7 @@ public java.lang.String getOrderBy() {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
        @@ -1205,7 +1205,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
        @@ -1247,7 +1247,7 @@ public Builder setOrderBy(java.lang.String value) {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
        @@ -1285,7 +1285,7 @@ public Builder clearOrderBy() {
              *
              *
              * 
        -     * Comma separated list of fields to order by, followed by `asc` or `desc`
        +     * Comma-separated list of fields to order by, followed by `asc` or `desc`
              * postfix. This list is case insensitive. The default sorting order is
              * ascending. Redundant space characters are insignificant. Only one order
              * field at a time is allowed.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequestOrBuilder.java
        index 0a591e08ac83..1ae8d398a230 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequestOrBuilder.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequestOrBuilder.java
        @@ -100,7 +100,7 @@ public interface ListTableDataProfilesRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of fields to order by, followed by `asc` or `desc`
        +   * Comma-separated list of fields to order by, followed by `asc` or `desc`
            * postfix. This list is case insensitive. The default sorting order is
            * ascending. Redundant space characters are insignificant. Only one order
            * field at a time is allowed.
        @@ -133,7 +133,7 @@ public interface ListTableDataProfilesRequestOrBuilder
            *
            *
            * 
        -   * Comma separated list of fields to order by, followed by `asc` or `desc`
        +   * Comma-separated list of fields to order by, followed by `asc` or `desc`
            * postfix. This list is case insensitive. The default sorting order is
            * ascending. Redundant space characters are insignificant. Only one order
            * field at a time is allowed.
        diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfile.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfile.java
        index f150d834fb8f..03d7a585ef20 100644
        --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfile.java
        +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfile.java
        @@ -368,6 +368,42 @@ public com.google.privacy.dlp.v2.ProfileStatusOrBuilder getProfileStatusOrBuilde
                 : profileStatus_;
           }
         
        +  public static final int TABLE_DATA_PROFILE_COUNT_FIELD_NUMBER = 9;
        +  private long tableDataProfileCount_ = 0L;
        +  /**
        +   *
        +   *
        +   * 
        +   * The number of table data profiles generated for this project.
        +   * 
        + * + * int64 table_data_profile_count = 9; + * + * @return The tableDataProfileCount. + */ + @java.lang.Override + public long getTableDataProfileCount() { + return tableDataProfileCount_; + } + + public static final int FILE_STORE_DATA_PROFILE_COUNT_FIELD_NUMBER = 10; + private long fileStoreDataProfileCount_ = 0L; + /** + * + * + *
        +   * The number of file store data profiles generated for this project.
        +   * 
        + * + * int64 file_store_data_profile_count = 10; + * + * @return The fileStoreDataProfileCount. + */ + @java.lang.Override + public long getFileStoreDataProfileCount() { + return fileStoreDataProfileCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -400,6 +436,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(7, getProfileStatus()); } + if (tableDataProfileCount_ != 0L) { + output.writeInt64(9, tableDataProfileCount_); + } + if (fileStoreDataProfileCount_ != 0L) { + output.writeInt64(10, fileStoreDataProfileCount_); + } getUnknownFields().writeTo(output); } @@ -428,6 +470,13 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getProfileStatus()); } + if (tableDataProfileCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, tableDataProfileCount_); + } + if (fileStoreDataProfileCount_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(10, fileStoreDataProfileCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -462,6 +511,8 @@ public boolean equals(final java.lang.Object obj) { if (hasProfileStatus()) { if (!getProfileStatus().equals(other.getProfileStatus())) return false; } + if (getTableDataProfileCount() != other.getTableDataProfileCount()) return false; + if (getFileStoreDataProfileCount() != other.getFileStoreDataProfileCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -493,6 +544,10 @@ public int hashCode() { hash = (37 * hash) + PROFILE_STATUS_FIELD_NUMBER; hash = (53 * hash) + getProfileStatus().hashCode(); } + hash = (37 * hash) + TABLE_DATA_PROFILE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTableDataProfileCount()); + hash = (37 * hash) + FILE_STORE_DATA_PROFILE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFileStoreDataProfileCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -667,6 +722,8 @@ public Builder clear() { profileStatusBuilder_.dispose(); profileStatusBuilder_ = null; } + tableDataProfileCount_ = 0L; + fileStoreDataProfileCount_ = 0L; return this; } @@ -732,6 +789,12 @@ private void buildPartial0(com.google.privacy.dlp.v2.ProjectDataProfile result) profileStatusBuilder_ == null ? profileStatus_ : profileStatusBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.tableDataProfileCount_ = tableDataProfileCount_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.fileStoreDataProfileCount_ = fileStoreDataProfileCount_; + } result.bitField0_ |= to_bitField0_; } @@ -802,6 +865,12 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.ProjectDataProfile other) { if (other.hasProfileStatus()) { mergeProfileStatus(other.getProfileStatus()); } + if (other.getTableDataProfileCount() != 0L) { + setTableDataProfileCount(other.getTableDataProfileCount()); + } + if (other.getFileStoreDataProfileCount() != 0L) { + setFileStoreDataProfileCount(other.getFileStoreDataProfileCount()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -866,6 +935,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 58 + case 72: + { + tableDataProfileCount_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 72 + case 80: + { + fileStoreDataProfileCount_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1841,6 +1922,112 @@ public com.google.privacy.dlp.v2.ProfileStatusOrBuilder getProfileStatusOrBuilde return profileStatusBuilder_; } + private long tableDataProfileCount_; + /** + * + * + *
        +     * The number of table data profiles generated for this project.
        +     * 
        + * + * int64 table_data_profile_count = 9; + * + * @return The tableDataProfileCount. + */ + @java.lang.Override + public long getTableDataProfileCount() { + return tableDataProfileCount_; + } + /** + * + * + *
        +     * The number of table data profiles generated for this project.
        +     * 
        + * + * int64 table_data_profile_count = 9; + * + * @param value The tableDataProfileCount to set. + * @return This builder for chaining. + */ + public Builder setTableDataProfileCount(long value) { + + tableDataProfileCount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
        +     * The number of table data profiles generated for this project.
        +     * 
        + * + * int64 table_data_profile_count = 9; + * + * @return This builder for chaining. + */ + public Builder clearTableDataProfileCount() { + bitField0_ = (bitField0_ & ~0x00000040); + tableDataProfileCount_ = 0L; + onChanged(); + return this; + } + + private long fileStoreDataProfileCount_; + /** + * + * + *
        +     * The number of file store data profiles generated for this project.
        +     * 
        + * + * int64 file_store_data_profile_count = 10; + * + * @return The fileStoreDataProfileCount. + */ + @java.lang.Override + public long getFileStoreDataProfileCount() { + return fileStoreDataProfileCount_; + } + /** + * + * + *
        +     * The number of file store data profiles generated for this project.
        +     * 
        + * + * int64 file_store_data_profile_count = 10; + * + * @param value The fileStoreDataProfileCount to set. + * @return This builder for chaining. + */ + public Builder setFileStoreDataProfileCount(long value) { + + fileStoreDataProfileCount_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
        +     * The number of file store data profiles generated for this project.
        +     * 
        + * + * int64 file_store_data_profile_count = 10; + * + * @return This builder for chaining. + */ + public Builder clearFileStoreDataProfileCount() { + bitField0_ = (bitField0_ & ~0x00000080); + fileStoreDataProfileCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfileOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfileOrBuilder.java index cbc27c0a990e..56b3ccbaacf3 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfileOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfileOrBuilder.java @@ -213,4 +213,30 @@ public interface ProjectDataProfileOrBuilder * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; */ com.google.privacy.dlp.v2.ProfileStatusOrBuilder getProfileStatusOrBuilder(); + + /** + * + * + *
        +   * The number of table data profiles generated for this project.
        +   * 
        + * + * int64 table_data_profile_count = 9; + * + * @return The tableDataProfileCount. + */ + long getTableDataProfileCount(); + + /** + * + * + *
        +   * The number of file store data profiles generated for this project.
        +   * 
        + * + * int64 file_store_data_profile_count = 10; + * + * @return The fileStoreDataProfileCount. + */ + long getFileStoreDataProfileCount(); } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequest.java index abc4b815a1f2..3a304d1a3f12 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequest.java @@ -1479,10 +1479,10 @@ public com.google.protobuf.Parser getParserForType() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -1517,10 +1517,10 @@ public java.lang.String getParent() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -2353,10 +2353,10 @@ public Builder mergeFrom( * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -2390,10 +2390,10 @@ public java.lang.String getParent() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -2427,10 +2427,10 @@ public com.google.protobuf.ByteString getParentBytes() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -2463,10 +2463,10 @@ public Builder setParent(java.lang.String value) { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -2495,10 +2495,10 @@ public Builder clearParent() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequestOrBuilder.java index bc9e62f9d571..7784582d8354 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequestOrBuilder.java @@ -34,10 +34,10 @@ public interface RedactImageRequestOrBuilder * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -61,10 +61,10 @@ public interface RedactImageRequestOrBuilder * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequest.java index 697684d2fb55..0af047e23edc 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequest.java @@ -81,10 +81,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -121,10 +121,10 @@ public java.lang.String getParent() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -1035,10 +1035,10 @@ public Builder mergeFrom( * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -1074,10 +1074,10 @@ public java.lang.String getParent() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -1113,10 +1113,10 @@ public com.google.protobuf.ByteString getParentBytes() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -1151,10 +1151,10 @@ public Builder setParent(java.lang.String value) { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -1185,10 +1185,10 @@ public Builder clearParent() { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequestOrBuilder.java index ef8b37c5a97d..ef80a4897110 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequestOrBuilder.java @@ -34,10 +34,10 @@ public interface ReidentifyContentRequestOrBuilder * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -63,10 +63,10 @@ public interface ReidentifyContentRequestOrBuilder * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * - * + Projects scope, location specified:<br/> - * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> - * + Projects scope, no location specified (defaults to global):<br/> - * `projects/`<var>PROJECT_ID</var> + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java index 99253ef917bd..ac7ca5e45f55 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java @@ -56,7 +56,7 @@ public enum ResourceVisibility implements com.google.protobuf.ProtocolMessageEnu *
            * May contain public items.
            * For example, if a Cloud Storage bucket has uniform bucket level access
        -   * disabled, some objects inside it may be public.
        +   * disabled, some objects inside it may be public, but none are known yet.
            * 
        * * RESOURCE_VISIBILITY_INCONCLUSIVE = 15; @@ -101,7 +101,7 @@ public enum ResourceVisibility implements com.google.protobuf.ProtocolMessageEnu *
            * May contain public items.
            * For example, if a Cloud Storage bucket has uniform bucket level access
        -   * disabled, some objects inside it may be public.
        +   * disabled, some objects inside it may be public, but none are known yet.
            * 
        * * RESOURCE_VISIBILITY_INCONCLUSIVE = 15; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SearchConnectionsRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SearchConnectionsRequest.java index b2db394056d0..484b44a97d35 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SearchConnectionsRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SearchConnectionsRequest.java @@ -73,8 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. Parent name, typically an organization, without location.
        -   * For example: `organizations/12345678`.
        +   * Required. Resource name of the organization or project with a wildcard
        +   * location, for example, `organizations/433245324/locations/-` or
        +   * `projects/project-id/locations/-`.
            * 
        * * @@ -99,8 +100,9 @@ public java.lang.String getParent() { * * *
        -   * Required. Parent name, typically an organization, without location.
        -   * For example: `organizations/12345678`.
        +   * Required. Resource name of the organization or project with a wildcard
        +   * location, for example, `organizations/433245324/locations/-` or
        +   * `projects/project-id/locations/-`.
            * 
        * * @@ -661,8 +663,9 @@ public Builder mergeFrom( * * *
        -     * Required. Parent name, typically an organization, without location.
        -     * For example: `organizations/12345678`.
        +     * Required. Resource name of the organization or project with a wildcard
        +     * location, for example, `organizations/433245324/locations/-` or
        +     * `projects/project-id/locations/-`.
              * 
        * * @@ -686,8 +689,9 @@ public java.lang.String getParent() { * * *
        -     * Required. Parent name, typically an organization, without location.
        -     * For example: `organizations/12345678`.
        +     * Required. Resource name of the organization or project with a wildcard
        +     * location, for example, `organizations/433245324/locations/-` or
        +     * `projects/project-id/locations/-`.
              * 
        * * @@ -711,8 +715,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
        -     * Required. Parent name, typically an organization, without location.
        -     * For example: `organizations/12345678`.
        +     * Required. Resource name of the organization or project with a wildcard
        +     * location, for example, `organizations/433245324/locations/-` or
        +     * `projects/project-id/locations/-`.
              * 
        * * @@ -735,8 +740,9 @@ public Builder setParent(java.lang.String value) { * * *
        -     * Required. Parent name, typically an organization, without location.
        -     * For example: `organizations/12345678`.
        +     * Required. Resource name of the organization or project with a wildcard
        +     * location, for example, `organizations/433245324/locations/-` or
        +     * `projects/project-id/locations/-`.
              * 
        * * @@ -755,8 +761,9 @@ public Builder clearParent() { * * *
        -     * Required. Parent name, typically an organization, without location.
        -     * For example: `organizations/12345678`.
        +     * Required. Resource name of the organization or project with a wildcard
        +     * location, for example, `organizations/433245324/locations/-` or
        +     * `projects/project-id/locations/-`.
              * 
        * * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SearchConnectionsRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SearchConnectionsRequestOrBuilder.java index 9e1bdbb921aa..b0442cc5f193 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SearchConnectionsRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SearchConnectionsRequestOrBuilder.java @@ -28,8 +28,9 @@ public interface SearchConnectionsRequestOrBuilder * * *
        -   * Required. Parent name, typically an organization, without location.
        -   * For example: `organizations/12345678`.
        +   * Required. Resource name of the organization or project with a wildcard
        +   * location, for example, `organizations/433245324/locations/-` or
        +   * `projects/project-id/locations/-`.
            * 
        * * @@ -43,8 +44,9 @@ public interface SearchConnectionsRequestOrBuilder * * *
        -   * Required. Parent name, typically an organization, without location.
        -   * For example: `organizations/12345678`.
        +   * Required. Resource name of the organization or project with a wildcard
        +   * location, for example, `organizations/433245324/locations/-` or
        +   * `projects/project-id/locations/-`.
            * 
        * * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScore.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScore.java index bb77a75a03ab..e02f9034fdcd 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScore.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScore.java @@ -95,6 +95,16 @@ public enum SensitivityScoreLevel implements com.google.protobuf.ProtocolMessage * SENSITIVITY_LOW = 10; */ SENSITIVITY_LOW(10), + /** + * + * + *
        +     * Unable to determine sensitivity.
        +     * 
        + * + * SENSITIVITY_UNKNOWN = 12; + */ + SENSITIVITY_UNKNOWN(12), /** * * @@ -145,6 +155,16 @@ public enum SensitivityScoreLevel implements com.google.protobuf.ProtocolMessage * SENSITIVITY_LOW = 10; */ public static final int SENSITIVITY_LOW_VALUE = 10; + /** + * + * + *
        +     * Unable to determine sensitivity.
        +     * 
        + * + * SENSITIVITY_UNKNOWN = 12; + */ + public static final int SENSITIVITY_UNKNOWN_VALUE = 12; /** * * @@ -200,6 +220,8 @@ public static SensitivityScoreLevel forNumber(int value) { return SENSITIVITY_SCORE_UNSPECIFIED; case 10: return SENSITIVITY_LOW; + case 12: + return SENSITIVITY_UNKNOWN; case 20: return SENSITIVITY_MODERATE; case 30: diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java index 688e64221022..7e5d054e4550 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java @@ -149,7 +149,7 @@ public interface TimespanConfigOrBuilder * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -164,13 +164,11 @@ public interface TimespanConfigOrBuilder * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp @@ -195,7 +193,7 @@ public interface TimespanConfigOrBuilder * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -210,13 +208,11 @@ public interface TimespanConfigOrBuilder * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp @@ -241,7 +237,7 @@ public interface TimespanConfigOrBuilder * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -256,13 +252,11 @@ public interface TimespanConfigOrBuilder * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp @@ -458,7 +452,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -473,13 +467,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp @@ -507,7 +499,7 @@ public boolean hasTimestampField() { * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -522,13 +514,11 @@ public boolean hasTimestampField() { * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp @@ -558,7 +548,7 @@ public com.google.privacy.dlp.v2.FieldId getTimestampField() { * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -573,13 +563,11 @@ public com.google.privacy.dlp.v2.FieldId getTimestampField() { * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp @@ -1493,7 +1481,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -1508,13 +1496,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp @@ -1541,7 +1527,7 @@ public boolean hasTimestampField() { * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -1556,13 +1542,11 @@ public boolean hasTimestampField() { * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp @@ -1595,7 +1579,7 @@ public com.google.privacy.dlp.v2.FieldId getTimestampField() { * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -1610,13 +1594,11 @@ public com.google.privacy.dlp.v2.FieldId getTimestampField() { * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp @@ -1651,7 +1633,7 @@ public Builder setTimestampField(com.google.privacy.dlp.v2.FieldId value) { * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -1666,13 +1648,11 @@ public Builder setTimestampField(com.google.privacy.dlp.v2.FieldId value) { * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp @@ -1704,7 +1684,7 @@ public Builder setTimestampField(com.google.privacy.dlp.v2.FieldId.Builder build * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -1719,13 +1699,11 @@ public Builder setTimestampField(com.google.privacy.dlp.v2.FieldId.Builder build * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp @@ -1765,7 +1743,7 @@ public Builder mergeTimestampField(com.google.privacy.dlp.v2.FieldId value) { * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -1780,13 +1758,11 @@ public Builder mergeTimestampField(com.google.privacy.dlp.v2.FieldId value) { * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp @@ -1818,7 +1794,7 @@ public Builder clearTimestampField() { * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -1833,13 +1809,11 @@ public Builder clearTimestampField() { * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp @@ -1866,7 +1840,7 @@ public com.google.privacy.dlp.v2.FieldId.Builder getTimestampFieldBuilder() { * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -1881,13 +1855,11 @@ public com.google.privacy.dlp.v2.FieldId.Builder getTimestampFieldBuilder() { * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp @@ -1918,7 +1890,7 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getTimestampFieldOrBuilder() { * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. * - * <b>For BigQuery</b> + * **For BigQuery** * * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this @@ -1933,13 +1905,11 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getTimestampFieldOrBuilder() { * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. * - * <ul> - * <li><code>_PARTITIONTIME</code></li> - * <li><code>_PARTITIONDATE</code></li> - * <li><code>_PARTITION_LOAD_TIME</code></li> - * </ul> + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` * - * <b>For Datastore</b> + * **For Datastore** * * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java index 745042fb8a86..16d7f23cf76a 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java @@ -359,7 +359,7 @@ public com.google.privacy.dlp.v2.DataSourceTypeOrBuilder getDataSourceTypeOrBuil * * *
        -   * The resource name to the project data profile for this table.
        +   * The resource name of the project data profile for this table.
            * 
        * * string project_data_profile = 2; @@ -382,7 +382,7 @@ public java.lang.String getProjectDataProfile() { * * *
        -   * The resource name to the project data profile for this table.
        +   * The resource name of the project data profile for this table.
            * 
        * * string project_data_profile = 2; @@ -2950,7 +2950,7 @@ public com.google.privacy.dlp.v2.DataSourceTypeOrBuilder getDataSourceTypeOrBuil * * *
        -     * The resource name to the project data profile for this table.
        +     * The resource name of the project data profile for this table.
              * 
        * * string project_data_profile = 2; @@ -2972,7 +2972,7 @@ public java.lang.String getProjectDataProfile() { * * *
        -     * The resource name to the project data profile for this table.
        +     * The resource name of the project data profile for this table.
              * 
        * * string project_data_profile = 2; @@ -2994,7 +2994,7 @@ public com.google.protobuf.ByteString getProjectDataProfileBytes() { * * *
        -     * The resource name to the project data profile for this table.
        +     * The resource name of the project data profile for this table.
              * 
        * * string project_data_profile = 2; @@ -3015,7 +3015,7 @@ public Builder setProjectDataProfile(java.lang.String value) { * * *
        -     * The resource name to the project data profile for this table.
        +     * The resource name of the project data profile for this table.
              * 
        * * string project_data_profile = 2; @@ -3032,7 +3032,7 @@ public Builder clearProjectDataProfile() { * * *
        -     * The resource name to the project data profile for this table.
        +     * The resource name of the project data profile for this table.
              * 
        * * string project_data_profile = 2; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java index b3dfd791b80e..eb239075916e 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java @@ -88,7 +88,7 @@ public interface TableDataProfileOrBuilder * * *
        -   * The resource name to the project data profile for this table.
        +   * The resource name of the project data profile for this table.
            * 
        * * string project_data_profile = 2; @@ -100,7 +100,7 @@ public interface TableDataProfileOrBuilder * * *
        -   * The resource name to the project data profile for this table.
        +   * The resource name of the project data profile for this table.
            * 
        * * string project_data_profile = 2; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto index 775f80696ef5..148f5ca098ab 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto @@ -160,7 +160,7 @@ service DlpService { rpc CreateInspectTemplate(CreateInspectTemplateRequest) returns (InspectTemplate) { option (google.api.http) = { - post: "/v2/{parent=organizations/*}/inspectTemplates" + post: "/v2/{parent=projects/*/locations/*}/inspectTemplates" body: "*" additional_bindings { post: "/v2/{parent=organizations/*/locations/*}/inspectTemplates" @@ -171,7 +171,7 @@ service DlpService { body: "*" } additional_bindings { - post: "/v2/{parent=projects/*/locations/*}/inspectTemplates" + post: "/v2/{parent=organizations/*}/inspectTemplates" body: "*" } }; @@ -185,7 +185,7 @@ service DlpService { rpc UpdateInspectTemplate(UpdateInspectTemplateRequest) returns (InspectTemplate) { option (google.api.http) = { - patch: "/v2/{name=organizations/*/inspectTemplates/*}" + patch: "/v2/{name=projects/*/locations/*/inspectTemplates/*}" body: "*" additional_bindings { patch: "/v2/{name=organizations/*/locations/*/inspectTemplates/*}" @@ -196,7 +196,7 @@ service DlpService { body: "*" } additional_bindings { - patch: "/v2/{name=projects/*/locations/*/inspectTemplates/*}" + patch: "/v2/{name=organizations/*/inspectTemplates/*}" body: "*" } }; @@ -209,13 +209,13 @@ service DlpService { // to learn more. rpc GetInspectTemplate(GetInspectTemplateRequest) returns (InspectTemplate) { option (google.api.http) = { - get: "/v2/{name=organizations/*/inspectTemplates/*}" + get: "/v2/{name=projects/*/locations/*/inspectTemplates/*}" additional_bindings { get: "/v2/{name=organizations/*/locations/*/inspectTemplates/*}" } additional_bindings { get: "/v2/{name=projects/*/inspectTemplates/*}" } additional_bindings { - get: "/v2/{name=projects/*/locations/*/inspectTemplates/*}" + get: "/v2/{name=organizations/*/inspectTemplates/*}" } }; option (google.api.method_signature) = "name"; @@ -228,13 +228,13 @@ service DlpService { rpc ListInspectTemplates(ListInspectTemplatesRequest) returns (ListInspectTemplatesResponse) { option (google.api.http) = { - get: "/v2/{parent=organizations/*}/inspectTemplates" + get: "/v2/{parent=projects/*/locations/*}/inspectTemplates" additional_bindings { get: "/v2/{parent=organizations/*/locations/*}/inspectTemplates" } additional_bindings { get: "/v2/{parent=projects/*}/inspectTemplates" } additional_bindings { - get: "/v2/{parent=projects/*/locations/*}/inspectTemplates" + get: "/v2/{parent=organizations/*}/inspectTemplates" } }; option (google.api.method_signature) = "parent"; @@ -247,13 +247,13 @@ service DlpService { rpc DeleteInspectTemplate(DeleteInspectTemplateRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - delete: "/v2/{name=organizations/*/inspectTemplates/*}" + delete: "/v2/{name=projects/*/locations/*/inspectTemplates/*}" additional_bindings { delete: "/v2/{name=organizations/*/locations/*/inspectTemplates/*}" } additional_bindings { delete: "/v2/{name=projects/*/inspectTemplates/*}" } additional_bindings { - delete: "/v2/{name=projects/*/locations/*/inspectTemplates/*}" + delete: "/v2/{name=organizations/*/inspectTemplates/*}" } }; option (google.api.method_signature) = "name"; @@ -798,6 +798,43 @@ service DlpService { option (google.api.method_signature) = "name"; } + // Lists file store data profiles for an organization. + rpc ListFileStoreDataProfiles(ListFileStoreDataProfilesRequest) + returns (ListFileStoreDataProfilesResponse) { + option (google.api.http) = { + get: "/v2/{parent=organizations/*/locations/*}/fileStoreDataProfiles" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*}/fileStoreDataProfiles" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a file store data profile. + rpc GetFileStoreDataProfile(GetFileStoreDataProfileRequest) + returns (FileStoreDataProfile) { + option (google.api.http) = { + get: "/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}" + additional_bindings { + get: "/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Delete a FileStoreDataProfile. Will not prevent the profile from being + // regenerated if the resource is still included in a discovery configuration. + rpc DeleteFileStoreDataProfile(DeleteFileStoreDataProfileRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}" + additional_bindings { + delete: "/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}" + } + }; + option (google.api.method_signature) = "name"; + } + // Gets a table data profile. rpc GetTableDataProfile(GetTableDataProfileRequest) returns (TableDataProfile) { @@ -861,6 +898,10 @@ service DlpService { option (google.api.http) = { post: "/v2/{parent=projects/*/locations/*}/connections" body: "*" + additional_bindings { + post: "/v2/{parent=organizations/*/locations/*}/connections" + body: "*" + } }; option (google.api.method_signature) = "parent, connection"; } @@ -869,15 +910,22 @@ service DlpService { rpc GetConnection(GetConnectionRequest) returns (Connection) { option (google.api.http) = { get: "/v2/{name=projects/*/locations/*/connections/*}" + additional_bindings { + get: "/v2/{name=organizations/*/locations/*/connections/*}" + } }; option (google.api.method_signature) = "name"; } - // Lists Connections in a parent. + // Lists Connections in a parent. Use SearchConnections to see all connections + // within an organization. rpc ListConnections(ListConnectionsRequest) returns (ListConnectionsResponse) { option (google.api.http) = { get: "/v2/{parent=projects/*/locations/*}/connections" + additional_bindings { + get: "/v2/{parent=organizations/*/locations/*}/connections" + } }; option (google.api.method_signature) = "parent"; } @@ -899,6 +947,9 @@ service DlpService { returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=projects/*/locations/*/connections/*}" + additional_bindings { + delete: "/v2/{name=organizations/*/locations/*/connections/*}" + } }; option (google.api.method_signature) = "name"; } @@ -908,6 +959,10 @@ service DlpService { option (google.api.http) = { patch: "/v2/{name=projects/*/locations/*/connections/*}" body: "*" + additional_bindings { + patch: "/v2/{name=organizations/*/locations/*/connections/*}" + body: "*" + } }; option (google.api.method_signature) = "name"; } @@ -1174,6 +1229,15 @@ message ByteContentItem { // tsv TSV = 13; + + // Audio file types. Only used for profiling. + AUDIO = 15; + + // Video file types. Only used for profiling. + VIDEO = 16; + + // Executable file types. Only used for profiling. + EXECUTABLE = 17; } // The type of data stored in the bytes string. Default will be TEXT_UTF8. @@ -1288,6 +1352,7 @@ message Finding { // No more than 10 labels can be associated with a given finding. // // Examples: + // // * `"environment" : "production"` // * `"pipeline" : "etl"` map labels = 10; @@ -1519,10 +1584,10 @@ message RedactImageRequest { // processing // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // - // + Projects scope, location specified:
        - // `projects/`PROJECT_ID`/locations/`LOCATION_ID - // + Projects scope, no location specified (defaults to global):
        - // `projects/`PROJECT_ID + // + Projects scope, location specified: + // `projects/{project_id}/locations/{location_id}` + // + Projects scope, no location specified (defaults to global): + // `projects/{project_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -1584,10 +1649,10 @@ message DeidentifyContentRequest { // processing // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // - // + Projects scope, location specified:
        - // `projects/`PROJECT_ID`/locations/`LOCATION_ID - // + Projects scope, no location specified (defaults to global):
        - // `projects/`PROJECT_ID + // + Projects scope, location specified: + // `projects/{project_id}/locations/{location_id}` + // + Projects scope, no location specified (defaults to global): + // `projects/{project_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -1653,10 +1718,10 @@ message ReidentifyContentRequest { // processing // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // - // + Projects scope, location specified:
        - // `projects/`PROJECT_ID`/locations/`LOCATION_ID - // + Projects scope, no location specified (defaults to global):
        - // `projects/`PROJECT_ID + // + Projects scope, location specified: + // `projects/{project_id}/locations/{location_id}` + // + Projects scope, no location specified (defaults to global): + // `projects/{project_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -1725,10 +1790,10 @@ message InspectContentRequest { // processing // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // - // + Projects scope, location specified:
        - // `projects/`PROJECT_ID`/locations/`LOCATION_ID - // + Projects scope, no location specified (defaults to global):
        - // `projects/`PROJECT_ID + // + Projects scope, location specified: + // `projects/{project_id}/locations/{location_id}` + // + Projects scope, no location specified (defaults to global): + // `projects/{project_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -1878,6 +1943,9 @@ message DataProfileBigQueryRowSchema { // Column data profile column ColumnDataProfile column_profile = 2; + + // File store data profile column. + FileStoreDataProfile file_store_profile = 3; } } @@ -1986,12 +2054,18 @@ message InfoTypeCategory { // The infoType is typically used in Argentina. ARGENTINA = 2; + // The infoType is typically used in Armenia. + ARMENIA = 51; + // The infoType is typically used in Australia. AUSTRALIA = 3; // The infoType is typically used in Azerbaijan. AZERBAIJAN = 48; + // The infoType is typically used in Belarus. + BELARUS = 50; + // The infoType is typically used in Belgium. BELGIUM = 4; @@ -2202,7 +2276,7 @@ message ListInfoTypesRequest { // // The format of this value is as follows: // - // locations/LOCATION_ID + // `locations/{location_id}` string parent = 4; // BCP-47 language code for localized infoType friendly @@ -3200,9 +3274,10 @@ message FixedSizeBucketingConfig { // Generalization function that buckets values based on ranges. The ranges and // replacement values are dynamically provided by the user for custom behavior, -// such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH -// This can be used on -// data of type: number, long, string, timestamp. +// such as 1-30 -> LOW, 31-65 -> MEDIUM, 66-100 -> HIGH. +// +// This can be used on data of type: number, long, string, timestamp. +// // If the bound `Value` type differs from the type of data being transformed, we // will first attempt converting the type of the data to be transformed to match // the type of the bound before comparing. @@ -3300,8 +3375,7 @@ message CryptoReplaceFfxFpeConfig { // This must be encoded as ASCII. // The order of characters does not matter. // The full list of allowed characters is: - // 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - // ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/ + // ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` string custom_alphabet = 5; // The native way to select the alphabet. Must be in the range [2, 95]. @@ -3933,12 +4007,27 @@ message DeidentifyTemplate { // Details information about an error encountered during job execution or // the results of an unsuccessful activation of the JobTrigger. message Error { + // Additional information about the error. + enum ErrorExtraInfo { + // Unused. + ERROR_INFO_UNSPECIFIED = 0; + + // Image scan is not available in the region. + IMAGE_SCAN_UNAVAILABLE_IN_REGION = 1; + + // File store cluster is not supported for profile generation. + FILE_STORE_CLUSTER_UNSUPPORTED = 2; + } + // Detailed error codes and messages. google.rpc.Status details = 1; // The times the error occurred. List includes the oldest timestamp and the // last 9 timestamps. repeated google.protobuf.Timestamp timestamps = 2; + + // Additional information about the error. + ErrorExtraInfo extra_info = 4; } // Contains a configuration to make API calls on a repeating basis. @@ -4114,7 +4203,7 @@ message Action { // Where to store the output. oneof output { // Required. User settable Cloud Storage bucket and folders to store - // de-identified files. This field must be set for cloud storage + // de-identified files. This field must be set for Cloud Storage // deidentification. The output Cloud Storage bucket must be different // from the input bucket. De-identified files will overwrite files in the // output path. @@ -4124,12 +4213,12 @@ message Action { } // List of user-specified file type groups to transform. If specified, only - // the files with these filetypes will be transformed. If empty, all + // the files with these file types will be transformed. If empty, all // supported files will be transformed. Supported types may be automatically // added over time. If a file type is set in this field that isn't supported // by the Deidentify action then the job will fail and will not be - // successfully created/started. Currently the only filetypes supported are: - // IMAGES, TEXT_FILES, CSV, TSV. + // successfully created/started. Currently the only file types supported + // are: IMAGES, TEXT_FILES, CSV, TSV. repeated FileType file_types_to_transform = 8; } @@ -4208,14 +4297,14 @@ message CreateInspectTemplateRequest { // (project or organization) and whether you have [specified a processing // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // - // + Projects scope, location specified:
        - // `projects/`PROJECT_ID`/locations/`LOCATION_ID - // + Projects scope, no location specified (defaults to global):
        - // `projects/`PROJECT_ID - // + Organizations scope, location specified:
        - // `organizations/`ORG_ID`/locations/`LOCATION_ID - // + Organizations scope, no location specified (defaults to global):
        - // `organizations/`ORG_ID + // + Projects scope, location specified: + // `projects/{project_id}/locations/{location_id}` + // + Projects scope, no location specified (defaults to global): + // `projects/{project_id}` + // + Organizations scope, location specified: + // `organizations/{org_id}/locations/{location_id}` + // + Organizations scope, no location specified (defaults to global): + // `organizations/{org_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -4282,14 +4371,14 @@ message ListInspectTemplatesRequest { // (project or organization) and whether you have [specified a processing // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // - // + Projects scope, location specified:
        - // `projects/`PROJECT_ID`/locations/`LOCATION_ID - // + Projects scope, no location specified (defaults to global):
        - // `projects/`PROJECT_ID - // + Organizations scope, location specified:
        - // `organizations/`ORG_ID`/locations/`LOCATION_ID - // + Organizations scope, no location specified (defaults to global):
        - // `organizations/`ORG_ID + // + Projects scope, location specified: + // `projects/{project_id}/locations/{location_id}` + // + Projects scope, no location specified (defaults to global): + // `projects/{project_id}` + // + Organizations scope, location specified: + // `organizations/{org_id}/locations/{location_id}` + // + Organizations scope, no location specified (defaults to global): + // `organizations/{org_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -4311,7 +4400,7 @@ message ListInspectTemplatesRequest { // returns a page of max size 100. int32 page_size = 3; - // Comma separated list of fields to order by, + // Comma-separated list of fields to order by, // followed by `asc` or `desc` postfix. This list is case insensitive. The // default sorting order is ascending. Redundant space characters are // insignificant. @@ -4361,10 +4450,10 @@ message CreateJobTriggerRequest { // processing // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // - // + Projects scope, location specified:
        - // `projects/`PROJECT_ID`/locations/`LOCATION_ID - // + Projects scope, no location specified (defaults to global):
        - // `projects/`PROJECT_ID + // + Projects scope, location specified: + // `projects/{project_id}/locations/{location_id}` + // + Projects scope, no location specified (defaults to global): + // `projects/{project_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -4431,8 +4520,13 @@ message GetJobTriggerRequest { message CreateDiscoveryConfigRequest { // Required. Parent resource name. // - // The format of this value is as follows: - // `projects/`PROJECT_ID`/locations/`LOCATION_ID + // The format of this value varies depending on the scope of the request + // (project or organization): + // + // + Projects scope: + // `projects/{project_id}/locations/{location_id}` + // + Organizations scope: + // `organizations/{org_id}/locations/{location_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -4491,7 +4585,7 @@ message ListDiscoveryConfigsRequest { // Required. Parent resource name. // // The format of this value is as follows: - // `projects/`PROJECT_ID`/locations/`LOCATION_ID + // `projects/{project_id}/locations/{location_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -4513,7 +4607,7 @@ message ListDiscoveryConfigsRequest { // Size of the page. This value can be limited by a server. int32 page_size = 3; - // Comma separated list of config fields to order by, + // Comma-separated list of config fields to order by, // followed by `asc` or `desc` postfix. This list is case insensitive. The // default sorting order is ascending. Redundant space characters are // insignificant. @@ -4560,10 +4654,10 @@ message CreateDlpJobRequest { // processing // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // - // + Projects scope, location specified:
        - // `projects/`PROJECT_ID`/locations/`LOCATION_ID - // + Projects scope, no location specified (defaults to global):
        - // `projects/`PROJECT_ID + // + Projects scope, location specified: + // `projects/{project_id}/locations/{location_id}` + // + Projects scope, no location specified (defaults to global): + // `projects/{project_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -4605,10 +4699,10 @@ message ListJobTriggersRequest { // processing // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // - // + Projects scope, location specified:
        - // `projects/`PROJECT_ID`/locations/`LOCATION_ID - // + Projects scope, no location specified (defaults to global):
        - // `projects/`PROJECT_ID + // + Projects scope, location specified: + // `projects/{project_id}/locations/{location_id}` + // + Projects scope, no location specified (defaults to global): + // `projects/{project_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -4630,7 +4724,7 @@ message ListJobTriggersRequest { // Size of the page. This value can be limited by a server. int32 page_size = 3; - // Comma separated list of triggeredJob fields to order by, + // Comma-separated list of triggeredJob fields to order by, // followed by `asc` or `desc` postfix. This list is case insensitive. The // default sorting order is ascending. Redundant space characters are // insignificant. @@ -4748,6 +4842,9 @@ message DataProfileAction { // The name of the profiled resource. RESOURCE_NAME = 2; + + // The full file store data profile. + FILE_STORE_PROFILE = 3; } // Cloud Pub/Sub topic to send notifications to. @@ -4925,7 +5022,7 @@ message DataProfileLocation { // The ID of an organization to scan. int64 organization_id = 1; - // The ID of the Folder within an organization to scan. + // The ID of the folder within an organization to scan. int64 folder_id = 2; } } @@ -5040,6 +5137,10 @@ message DiscoveryTarget { // resource metadata and reports them as vulnerabilities to Security Command // Center. Only one target of this type is allowed. SecretsDiscoveryTarget secrets_target = 3; + + // Cloud Storage target for Discovery. The first target to match a table + // will be the one applied. + CloudStorageDiscoveryTarget cloud_storage_target = 4; } } @@ -5157,6 +5258,15 @@ message DiscoveryGenerationCadence { // Governs when to update data profiles when a table is modified. DiscoveryTableModifiedCadence table_modified_cadence = 2; + + // Governs when to update data profiles when the inspection rules + // defined by the `InspectTemplate` change. + // If not set, changing the template will not cause a data profile to update. + DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + + // Frequency at which profiles should be updated, regardless of whether the + // underlying resource has changed. Defaults to never. + DataProfileUpdateFrequency refresh_frequency = 4; } // The cadence at which to update data profiles when a table is modified. @@ -5208,6 +5318,14 @@ enum BigQuerySchemaModification { SCHEMA_REMOVED_COLUMNS = 2; } +// The cadence at which to update data profiles when the inspection rules +// defined by the `InspectTemplate` change. +message DiscoveryInspectTemplateModifiedCadence { + // How frequently data profiles can be updated when the template is modified. + // Defaults to never. + DataProfileUpdateFrequency frequency = 1; +} + // Target used to match against for discovery with Cloud SQL tables. message CloudSqlDiscoveryTarget { // Required. The tables the discovery cadence applies to. The first target @@ -5410,6 +5528,225 @@ message DiscoveryCloudSqlGenerationCadence { // Security Command Center. message SecretsDiscoveryTarget {} +// Target used to match against for discovery with Cloud Storage buckets. +message CloudStorageDiscoveryTarget { + // Required. The buckets the generation_cadence applies to. The first target + // with a matching filter will be the one to apply to a bucket. + DiscoveryCloudStorageFilter filter = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. In addition to matching the filter, these conditions must be true + // before a profile is generated. + DiscoveryFileStoreConditions conditions = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // How often and when to update profiles. + oneof cadence { + // Optional. How often and when to update profiles. New buckets that match + // both the filter and conditions are scanned as quickly as possible + // depending on system capacity. + DiscoveryCloudStorageGenerationCadence generation_cadence = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Disable profiling for buckets that match this filter. + Disabled disabled = 3 [(google.api.field_behavior) = OPTIONAL]; + } +} + +// Determines which buckets will have profiles generated within an organization +// or project. Includes the ability to filter by regular expression patterns +// on project ID and bucket name. +message DiscoveryCloudStorageFilter { + // Whether the filter applies to a specific set of buckets or all + // other buckets within the location being profiled. The first + // filter to match will be applied, regardless of the condition. If none is + // set, will default to `others`. + oneof filter { + // Optional. A specific set of buckets for this filter to apply to. + FileStoreCollection collection = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The bucket to scan. Targets including this can only include one + // target (the target with this bucket). This enables profiling the contents + // of a single bucket, while the other options allow for easy profiling of + // many bucets within a project or an organization. + CloudStorageResourceReference cloud_storage_resource_reference = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Catch-all. This should always be the last target in the list + // because anything above it will apply first. Should only appear once in a + // configuration. If none is specified, a default one will be added + // automatically. + AllOtherResources others = 100 [(google.api.field_behavior) = OPTIONAL]; + } +} + +// Match file stores (e.g. buckets) using regex filters. +message FileStoreCollection { + // The first filter containing a pattern that matches a file store will + // be used. + oneof pattern { + // Optional. A collection of regular expressions to match a file store + // against. + FileStoreRegexes include_regexes = 1 + [(google.api.field_behavior) = OPTIONAL]; + } +} + +// A collection of regular expressions to determine what file store to match +// against. +message FileStoreRegexes { + // Required. The group of regular expression patterns to match against one or + // more file stores. Maximum of 100 entries. The sum of all regular + // expression's length can't exceed 10 KiB. + repeated FileStoreRegex patterns = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// A pattern to match against one or more file stores. +message FileStoreRegex { + // The type of resource regex to use. + oneof resource_regex { + // Optional. Regex for Cloud Storage. + CloudStorageRegex cloud_storage_regex = 1 + [(google.api.field_behavior) = OPTIONAL]; + } +} + +// A pattern to match against one or more file stores. At least one +// pattern must be specified. Regular expressions use RE2 +// [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found +// under the google/re2 repository on GitHub. +message CloudStorageRegex { + // Optional. For organizations, if unset, will match all projects. + string project_id_regex = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Regex to test the bucket name against. If empty, all buckets + // match. Example: "marketing2021" or "(marketing)\d{4}" will both match the + // bucket gs://marketing2021 + string bucket_name_regex = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Identifies a single Cloud Storage bucket. +message CloudStorageResourceReference { + // Required. The bucket to scan. + string bucket_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. If within a project-level config, then this must match the + // config's project id. + string project_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// How often existing buckets should have their profiles refreshed. +// New buckets are scanned as quickly as possible depending on system +// capacity. +message DiscoveryCloudStorageGenerationCadence { + // Optional. Data changes in Cloud Storage can't trigger reprofiling. If you + // set this field, profiles are refreshed at this frequency regardless of + // whether the underlying buckets have changed. Defaults to never. + DataProfileUpdateFrequency refresh_frequency = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Governs when to update data profiles when the inspection rules + // defined by the `InspectTemplate` change. + // If not set, changing the template will not cause a data profile to update. + DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Requirements that must be true before a Cloud Storage bucket or object is +// scanned in discovery for the first time. There is an AND relationship between +// the top-level attributes. +message DiscoveryCloudStorageConditions { + // The attribute of an object. See + // https://cloud.google.com/storage/docs/storage-classes for more information + // on storage classes. + enum CloudStorageObjectAttribute { + // Unused. + CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED = 0; + + // Scan objects regardless of the attribute. + ALL_SUPPORTED_OBJECTS = 1; + + // Scan objects with the standard storage class. + STANDARD = 2; + + // Scan objects with the nearline storage class. This will incur retrieval + // fees. + NEARLINE = 3; + + // Scan objects with the coldline storage class. This will incur retrieval + // fees. + COLDLINE = 4; + + // Scan objects with the archive storage class. This will incur retrieval + // fees. + ARCHIVE = 5; + + // Scan objects with the regional storage class. + REGIONAL = 6; + + // Scan objects with the multi-regional storage class. + MULTI_REGIONAL = 7; + + // Scan objects with the dual-regional storage class. This will incur + // retrieval fees. + DURABLE_REDUCED_AVAILABILITY = 8; + } + + // The attribute of a bucket. + enum CloudStorageBucketAttribute { + // Unused. + CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED = 0; + + // Scan buckets regardless of the attribute. + ALL_SUPPORTED_BUCKETS = 1; + + // Buckets with autoclass disabled + // (https://cloud.google.com/storage/docs/autoclass). Only one of + // AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. + AUTOCLASS_DISABLED = 2; + + // Buckets with autoclass enabled + // (https://cloud.google.com/storage/docs/autoclass). Only one of + // AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. Scanning + // Autoclass-enabled buckets can affect object storage classes. + AUTOCLASS_ENABLED = 3; + } + + // Required. Only objects with the specified attributes will be scanned. If an + // object has one of the specified attributes but is inside an excluded + // bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A + // profile will be created even if no objects match the + // included_object_attributes. + repeated CloudStorageObjectAttribute included_object_attributes = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Only objects with the specified attributes will be scanned. + // Defaults to [ALL_SUPPORTED_BUCKETS] if unset. + repeated CloudStorageBucketAttribute included_bucket_attributes = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Requirements that must be true before a file store is scanned in discovery +// for the first time. There is an AND relationship between the top-level +// attributes. +message DiscoveryFileStoreConditions { + // Optional. File store must have been created after this date. Used to avoid + // backfilling. + google.protobuf.Timestamp created_after = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Minimum age a file store must have. If set, the value must be 1 + // hour or greater. + google.protobuf.Duration min_age = 2 [(google.api.field_behavior) = OPTIONAL]; + + // File store specific conditions. + oneof conditions { + // Optional. Cloud Storage conditions. + DiscoveryCloudStorageConditions cloud_storage_conditions = 3 + [(google.api.field_behavior) = OPTIONAL]; + } +} + // The location to begin a discovery scan. Denotes an organization ID or folder // ID within an organization. message DiscoveryStartingLocation { @@ -5418,11 +5755,14 @@ message DiscoveryStartingLocation { // The ID of an organization to scan. int64 organization_id = 1; - // The ID of the Folder within an organization to scan. + // The ID of the folder within an organization to be scanned. int64 folder_id = 2; } } +// Match discovery resources not covered by any other filter. +message AllOtherResources {} + // Combines all of the information about a DLP job. message DlpJob { option (google.api.resource) = { @@ -5517,10 +5857,10 @@ message ListDlpJobsRequest { // processing // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // - // + Projects scope, location specified:
        - // `projects/`PROJECT_ID`/locations/`LOCATION_ID - // + Projects scope, no location specified (defaults to global):
        - // `projects/`PROJECT_ID + // + Projects scope, location specified: + // `projects/{project_id}/locations/{location_id}` + // + Projects scope, no location specified (defaults to global): + // `projects/{project_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -5573,7 +5913,7 @@ message ListDlpJobsRequest { // The type of job. Defaults to `DlpJobType.INSPECT` DlpJobType type = 5; - // Comma separated list of fields to order by, + // Comma-separated list of fields to order by, // followed by `asc` or `desc` postfix. This list is case insensitive. The // default sorting order is ascending. Redundant space characters are // insignificant. @@ -5636,14 +5976,14 @@ message CreateDeidentifyTemplateRequest { // (project or organization) and whether you have [specified a processing // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // - // + Projects scope, location specified:
        - // `projects/`PROJECT_ID`/locations/`LOCATION_ID - // + Projects scope, no location specified (defaults to global):
        - // `projects/`PROJECT_ID - // + Organizations scope, location specified:
        - // `organizations/`ORG_ID`/locations/`LOCATION_ID - // + Organizations scope, no location specified (defaults to global):
        - // `organizations/`ORG_ID + // + Projects scope, location specified: + // `projects/{project_id}/locations/{location_id}` + // + Projects scope, no location specified (defaults to global): + // `projects/{project_id}` + // + Organizations scope, location specified: + // `organizations/{org_id}/locations/{location_id}` + // + Organizations scope, no location specified (defaults to global): + // `organizations/{org_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -5712,14 +6052,14 @@ message ListDeidentifyTemplatesRequest { // (project or organization) and whether you have [specified a processing // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // - // + Projects scope, location specified:
        - // `projects/`PROJECT_ID`/locations/`LOCATION_ID - // + Projects scope, no location specified (defaults to global):
        - // `projects/`PROJECT_ID - // + Organizations scope, location specified:
        - // `organizations/`ORG_ID`/locations/`LOCATION_ID - // + Organizations scope, no location specified (defaults to global):
        - // `organizations/`ORG_ID + // + Projects scope, location specified: + // `projects/{project_id}/locations/{location_id}` + // + Projects scope, no location specified (defaults to global): + // `projects/{project_id}` + // + Organizations scope, location specified: + // `organizations/{org_id}/locations/{location_id}` + // + Organizations scope, no location specified (defaults to global): + // `organizations/{org_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -5741,7 +6081,7 @@ message ListDeidentifyTemplatesRequest { // returns a page of max size 100. int32 page_size = 3; - // Comma separated list of fields to order by, + // Comma-separated list of fields to order by, // followed by `asc` or `desc` postfix. This list is case insensitive. The // default sorting order is ascending. Redundant space characters are // insignificant. @@ -5909,14 +6249,14 @@ message CreateStoredInfoTypeRequest { // (project or organization) and whether you have [specified a processing // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // - // + Projects scope, location specified:
        - // `projects/`PROJECT_ID`/locations/`LOCATION_ID - // + Projects scope, no location specified (defaults to global):
        - // `projects/`PROJECT_ID - // + Organizations scope, location specified:
        - // `organizations/`ORG_ID`/locations/`LOCATION_ID - // + Organizations scope, no location specified (defaults to global):
        - // `organizations/`ORG_ID + // + Projects scope, location specified: + // `projects/{project_id}/locations/{location_id}` + // + Projects scope, no location specified (defaults to global): + // `projects/{project_id}` + // + Organizations scope, location specified: + // `organizations/{org_id}/locations/{location_id}` + // + Organizations scope, no location specified (defaults to global): + // `organizations/{org_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -5985,10 +6325,10 @@ message ListStoredInfoTypesRequest { // (project or organization) and whether you have [specified a processing // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // - // + Projects scope, location specified:
        - // `projects/`PROJECT_ID`/locations/`LOCATION_ID - // + Projects scope, no location specified (defaults to global):
        - // `projects/`PROJECT_ID + // + Projects scope, location specified: + // `projects/{project_id}/locations/{location_id}` + // + Projects scope, no location specified (defaults to global): + // `projects/{project_id}` // // The following example `parent` string specifies a parent project with the // identifier `example-project`, and specifies the `europe-west3` location @@ -6010,7 +6350,7 @@ message ListStoredInfoTypesRequest { // returns a page of max size 100. int32 page_size = 3; - // Comma separated list of fields to order by, + // Comma-separated list of fields to order by, // followed by `asc` or `desc` postfix. This list is case insensitive. The // default sorting order is ascending. Redundant space characters are // insignificant. @@ -6126,6 +6466,7 @@ message HybridFindingDetails { // No more than 10 labels can be associated with a given finding. // // Examples: + // // * `"environment" : "production"` // * `"pipeline" : "etl"` map labels = 5; @@ -6273,7 +6614,7 @@ message ListProjectDataProfilesRequest { // returns a page of max size 100. int32 page_size = 3; - // Comma separated list of fields to order by, followed by `asc` or `desc` + // Comma-separated list of fields to order by, followed by `asc` or `desc` // postfix. This list is case insensitive. The default sorting order is // ascending. Redundant space characters are insignificant. Only one order // field at a time is allowed. @@ -6343,7 +6684,7 @@ message ListTableDataProfilesRequest { // returns a page of max size 100. int32 page_size = 3; - // Comma separated list of fields to order by, followed by `asc` or `desc` + // Comma-separated list of fields to order by, followed by `asc` or `desc` // postfix. This list is case insensitive. The default sorting order is // ascending. Redundant space characters are insignificant. Only one order // field at a time is allowed. @@ -6424,12 +6765,13 @@ message ListColumnDataProfilesRequest { // returns a page of max size 100. int32 page_size = 3; - // Comma separated list of fields to order by, followed by `asc` or `desc` + // Comma-separated list of fields to order by, followed by `asc` or `desc` // postfix. This list is case insensitive. The default sorting order is // ascending. Redundant space characters are insignificant. Only one order // field at a time is allowed. // // Examples: + // // * `project_id asc` // * `table_id` // * `sensitivity_level desc` @@ -6500,6 +6842,9 @@ message DataRiskLevel { // data found. RISK_LOW = 10; + // Unable to determine risk. + RISK_UNKNOWN = 12; + // Medium risk - Sensitive data may be present but additional access or fine // grain access restrictions appear to be present. Consider limiting // access even further or transform data to mask. @@ -6541,6 +6886,12 @@ message ProjectDataProfile { // Success or error status of the last attempt to profile the project. ProfileStatus profile_status = 7; + + // The number of table data profiles generated for this project. + int64 table_data_profile_count = 9; + + // The number of file store data profiles generated for this project. + int64 file_store_data_profile_count = 10; } // How broadly the data in the resource has been shared. New items may be added @@ -6554,7 +6905,7 @@ enum ResourceVisibility { // May contain public items. // For example, if a Cloud Storage bucket has uniform bucket level access - // disabled, some objects inside it may be public. + // disabled, some objects inside it may be public, but none are known yet. RESOURCE_VISIBILITY_INCONCLUSIVE = 15; // Visible only to specific users. @@ -6613,7 +6964,7 @@ message TableDataProfile { // The resource type that was profiled. DataSourceType data_source_type = 36; - // The resource name to the project data profile for this table. + // The resource name of the project data profile for this table. string project_data_profile = 2; // The Google Cloud project ID that owns the resource. @@ -6936,6 +7287,164 @@ message ColumnDataProfile { ColumnPolicyState policy_state = 15; } +// The profile for a file store. +// +// * Cloud Storage: maps 1:1 with a bucket. +message FileStoreDataProfile { + option (google.api.resource) = { + type: "dlp.googleapis.com/FileStoreDataProfile" + pattern: "organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}" + pattern: "projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}" + }; + + // Possible states of a profile. New items may be added. + enum State { + // Unused. + STATE_UNSPECIFIED = 0; + + // The profile is currently running. Once a profile has finished it will + // transition to DONE. + RUNNING = 1; + + // The profile is no longer generating. + // If profile_status.status.code is 0, the profile succeeded, otherwise, it + // failed. + DONE = 2; + } + + // The name of the profile. + string name = 1; + + // The resource type that was profiled. + DataSourceType data_source_type = 2; + + // The resource name of the project data profile for this file store. + string project_data_profile = 3; + + // The Google Cloud project ID that owns the resource. + string project_id = 4; + + // The location of the file store. + // + // * Cloud Storage: + // https://cloud.google.com/storage/docs/locations#available-locations + string file_store_location = 5; + + // For resources that have multiple storage locations, these are those + // regions. For Cloud Storage this is the list of regions chosen for + // dual-region storage. `file_store_location` will normally be the + // corresponding multi-region for the list of individual locations. The first + // region is always picked as the processing and storage location for the data + // profile. + repeated string data_storage_locations = 19; + + // The location type of the bucket (region, dual-region, multi-region, etc). + // If dual-region, expect data_storage_locations to be populated. + string location_type = 20; + + // The file store path. + // + // * Cloud Storage: `gs://{bucket}` + string file_store_path = 6; + + // The resource name of the resource profiled. + // https://cloud.google.com/apis/design/resource_names#full_resource_name + string full_resource = 24; + + // The snapshot of the configurations used to generate the profile. + DataProfileConfigSnapshot config_snapshot = 7; + + // Success or error status from the most recent profile generation attempt. + // May be empty if the profile is still being generated. + ProfileStatus profile_status = 8; + + // State of a profile. + State state = 9; + + // The last time the profile was generated. + google.protobuf.Timestamp profile_last_generated = 10; + + // How broadly a resource has been shared. + ResourceVisibility resource_visibility = 11; + + // The sensitivity score of this resource. + SensitivityScore sensitivity_score = 12; + + // The data risk level of this resource. + DataRiskLevel data_risk_level = 13; + + // The time the file store was first created. + google.protobuf.Timestamp create_time = 14; + + // The time the file store was last modified. + google.protobuf.Timestamp last_modified_time = 15; + + // FileClusterSummary per each cluster. + repeated FileClusterSummary file_cluster_summaries = 16; + + // Attributes of the resource being profiled. + // Currently used attributes: + // + // * customer_managed_encryption: boolean + // - true: the resource is encrypted with a customer-managed key. + // - false: the resource is encrypted with a provider-managed key. + map resource_attributes = 17; + + // The labels applied to the resource at the time the profile was generated. + map resource_labels = 18; + + // InfoTypes detected in this file store. + repeated FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + + // The file store does not have any files. + bool file_store_is_empty = 23; +} + +// Information regarding the discovered InfoType. +message FileStoreInfoTypeSummary { + // The InfoType seen. + InfoType info_type = 1; +} + +// Information regarding the discovered file extension. +message FileExtensionInfo { + // The file extension if set. (aka .pdf, .jpg, .txt) + string file_extension = 1; +} + +// The file cluster summary. +message FileClusterSummary { + // The file cluster type. + FileClusterType file_cluster_type = 1; + + // InfoTypes detected in this cluster. + repeated FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + + // The sensitivity score of this cluster. The score will be SENSITIVITY_LOW + // if nothing has been scanned. + SensitivityScore sensitivity_score = 3; + + // The data risk level of this cluster. RISK_LOW if nothing has been + // scanned. + DataRiskLevel data_risk_level = 4; + + // A list of errors detected while scanning this cluster. The list is + // truncated to 10 per cluster. + repeated Error errors = 6; + + // A sample of file types scanned in this cluster. Empty if no files were + // scanned. + repeated FileExtensionInfo file_extensions_scanned = 7; + + // A sample of file types seen in this cluster. Empty if no files were seen. + repeated FileExtensionInfo file_extensions_seen = 8; + + // True if no files exist in this cluster. If the bucket had more files than + // could be listed, this will be false even if no files for this cluster + // were seen and file_extensions_seen is empty. + bool no_files_exist = 9; +} + // Request to get a project data profile. message GetProjectDataProfileRequest { // Required. Resource name, for example @@ -6948,6 +7457,112 @@ message GetProjectDataProfileRequest { ]; } +// Request to get a file store data profile. +message GetFileStoreDataProfileRequest { + // Required. Resource name, for example + // `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dlp.googleapis.com/ProjectDataProfile" + } + ]; +} + +// Request to list the file store profiles generated for a given organization or +// project. +message ListFileStoreDataProfilesRequest { + // Required. Resource name of the organization or project, for + // example `organizations/433245324/locations/europe` or + // `projects/project-id/locations/asia`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dlp.googleapis.com/FileStoreDataProfile" + } + ]; + + // Optional. Page token to continue retrieval. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Size of the page. This value can be limited by the server. If + // zero, server returns a page of max size 100. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Comma-separated list of fields to order by, followed by `asc` or + // `desc` postfix. This list is case insensitive. The default sorting order is + // ascending. Redundant space characters are insignificant. Only one order + // field at a time is allowed. + // + // Examples: + // + // * `project_id asc` + // * `name` + // * `sensitivity_level desc` + // + // Supported fields are: + // + // - `project_id`: The Google Cloud project ID. + // - `sensitivity_level`: How sensitive the data in a table is, at most. + // - `data_risk_level`: How much risk is associated with this data. + // - `profile_last_generated`: When the profile was last updated in epoch + // seconds. + // - `last_modified`: The last time the resource was modified. + // - `resource_visibility`: Visibility restriction for this resource. + // - `name`: The name of the profile. + // - `create_time`: The time the file store was first created. + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Allows filtering. + // + // Supported syntax: + // + // * Filter expressions are made up of one or more restrictions. + // * Restrictions can be combined by `AND` or `OR` logical operators. A + // sequence of restrictions implicitly uses `AND`. + // * A restriction has the form of `{field} {operator} {value}`. + // * Supported fields/values: + // - `project_id` - The Google Cloud project ID. + // - `file_store_path` - The path like "gs://bucket". + // - `sensitivity_level` - HIGH|MODERATE|LOW + // - `data_risk_level` - HIGH|MODERATE|LOW + // - `resource_visibility`: PUBLIC|RESTRICTED + // - `status_code` - an RPC status code as defined in + // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + // * The operator must be `=` or `!=`. + // + // Examples: + // + // * `project_id = 12345 AND status_code = 1` + // * `project_id = 12345 AND sensitivity_level = HIGH` + // * `project_id = 12345 AND resource_visibility = PUBLIC` + // * `file_store_path = "gs://mybucket"` + // + // The length of this field should be no more than 500 characters. + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of file store data profiles generated for a given organization or +// project. +message ListFileStoreDataProfilesResponse { + // List of data profiles. + repeated FileStoreDataProfile file_store_data_profiles = 1; + + // The next page token. + string next_page_token = 2; +} + +// Request message for DeleteFileStoreProfile. +message DeleteFileStoreDataProfileRequest { + // Required. Resource name of the file store data profile. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dlp.googleapis.com/FileStoreDataProfile" + } + ]; +} + // Request to get a table data profile. message GetTableDataProfileRequest { // Required. Resource name, for example @@ -7032,14 +7647,26 @@ message DataProfilePubSubMessage { // `full_resource` will be populated. TableDataProfile profile = 1; + // If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated. + // Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + // `file_store_path` will be populated. + FileStoreDataProfile file_store_profile = 3; + // The event that caused the Pub/Sub message to be sent. DataProfileAction.EventType event = 2; } // Request message for CreateConnection. message CreateConnectionRequest { - // Required. Parent resource name in the format: - // `projects/{project}/locations/{location}`. + // Required. Parent resource name. + // + // The format of this value varies depending on the scope of the request + // (project or organization): + // + // + Projects scope: + // `projects/{project_id}/locations/{location_id}` + // + Organizations scope: + // `organizations/{org_id}/locations/{location_id}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -7063,8 +7690,9 @@ message GetConnectionRequest { // Request message for ListConnections. message ListConnectionsRequest { - // Required. Parent name, for example: - // `projects/project-id/locations/global`. + // Required. Resource name of the organization or project, for + // example, `organizations/433245324/locations/europe` or + // `projects/project-id/locations/asia`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -7085,8 +7713,9 @@ message ListConnectionsRequest { // Request message for SearchConnections. message SearchConnectionsRequest { - // Required. Parent name, typically an organization, without location. - // For example: `organizations/12345678`. + // Required. Resource name of the organization or project with a wildcard + // location, for example, `organizations/433245324/locations/-` or + // `projects/project-id/locations/-`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -7160,6 +7789,7 @@ message Connection { option (google.api.resource) = { type: "dlp.googleapis.com/Connection" pattern: "projects/{project}/locations/{location}/connections/{connection}" + pattern: "organizations/{organization}/locations/{location}/connections/{connection}" }; // Output only. Name of the connection: @@ -7288,3 +7918,46 @@ message DataSourceType { // Current values: google/bigquery/table, google/project string data_source = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Message used to identify file cluster type being profiled. +message FileClusterType { + // Cluster type. Each cluster corresponds to a set of file types. + // Over time, new types may be added and files may move between clusters. + enum Cluster { + // Unused. + CLUSTER_UNSPECIFIED = 0; + + // Unsupported files. + CLUSTER_UNKNOWN = 1; + + // Plain text. + CLUSTER_TEXT = 2; + + // Structured data like CSV, TSV etc. + CLUSTER_STRUCTURED_DATA = 3; + + // Source code. + CLUSTER_SOURCE_CODE = 4; + + // Rich document like docx, xlsx etc. + CLUSTER_RICH_DOCUMENT = 5; + + // Images like jpeg, bmp. + CLUSTER_IMAGE = 6; + + // Archives and containers like .zip, .tar etc. + CLUSTER_ARCHIVE = 7; + + // Multimedia like .mp4, .avi etc. + CLUSTER_MULTIMEDIA = 8; + + // Executable files like .exe, .class, .apk etc. + CLUSTER_EXECUTABLE = 9; + } + + // File cluster type. + oneof file_cluster_type { + // Cluster type. + Cluster cluster = 1; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto index a8c03fd8862b..db3dad755b3a 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto @@ -58,6 +58,9 @@ message SensitivityScore { // accessible. SENSITIVITY_LOW = 10; + // Unable to determine sensitivity. + SENSITIVITY_UNKNOWN = 12; + // Medium risk. Contains personally identifiable information (PII), // potentially sensitive data, or fields with free-text data that are at a // higher risk of having intermittent sensitive data. Consider limiting @@ -650,7 +653,7 @@ message StorageConfig { // Specification of the field containing the timestamp of scanned items. // Used for data sources like Datastore and BigQuery. // - // For BigQuery + // **For BigQuery** // // If this value is not specified and the table was modified between the // given start and end times, the entire table will be scanned. If this @@ -665,13 +668,11 @@ message StorageConfig { // you can use any of the following pseudo-columns as your timestamp field. // When used with Cloud DLP, these pseudo-column names are case sensitive. // - //
          - //
        • _PARTITIONTIME
        • - //
        • _PARTITIONDATE
        • - //
        • _PARTITION_LOAD_TIME
        • - //
        + // - `_PARTITIONTIME` + // - `_PARTITIONDATE` + // - `_PARTITION_LOAD_TIME` // - // For Datastore + // **For Datastore** // // If this value is specified, then entities are filtered based on the given // start and end times. If an entity does not contain the provided timestamp @@ -750,6 +751,7 @@ message HybridOptions { // No more than 10 labels can be associated with a given finding. // // Examples: + // // * `"environment" : "production"` // * `"pipeline" : "etl"` map labels = 3; diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/createconnection/SyncCreateConnectionOrganizationlocationnameConnection.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/createconnection/SyncCreateConnectionOrganizationlocationnameConnection.java new file mode 100644 index 000000000000..58b6f600ea0c --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/createconnection/SyncCreateConnectionOrganizationlocationnameConnection.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_CreateConnection_OrganizationlocationnameConnection_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.Connection; +import com.google.privacy.dlp.v2.OrganizationLocationName; + +public class SyncCreateConnectionOrganizationlocationnameConnection { + + public static void main(String[] args) throws Exception { + syncCreateConnectionOrganizationlocationnameConnection(); + } + + public static void syncCreateConnectionOrganizationlocationnameConnection() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + Connection connection = Connection.newBuilder().build(); + Connection response = dlpServiceClient.createConnection(parent, connection); + } + } +} +// [END dlp_v2_generated_DlpService_CreateConnection_OrganizationlocationnameConnection_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/AsyncDeleteConnection.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/AsyncDeleteConnection.java index 8d9bbd663060..4dede877973f 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/AsyncDeleteConnection.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/AsyncDeleteConnection.java @@ -38,7 +38,10 @@ public static void asyncDeleteConnection() throws Exception { try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { DeleteConnectionRequest request = DeleteConnectionRequest.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .build(); ApiFuture future = dlpServiceClient.deleteConnectionCallable().futureCall(request); // Do something. diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/SyncDeleteConnection.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/SyncDeleteConnection.java index 3271fe1a52fc..190d6836260b 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/SyncDeleteConnection.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/SyncDeleteConnection.java @@ -37,7 +37,10 @@ public static void syncDeleteConnection() throws Exception { try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { DeleteConnectionRequest request = DeleteConnectionRequest.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .build(); dlpServiceClient.deleteConnection(request); } diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/SyncDeleteConnectionConnectionname.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/SyncDeleteConnectionConnectionname.java index 7e22aad41558..72a68c9cafcb 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/SyncDeleteConnectionConnectionname.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/SyncDeleteConnectionConnectionname.java @@ -34,7 +34,8 @@ public static void syncDeleteConnectionConnectionname() throws Exception { // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); dlpServiceClient.deleteConnection(name); } } diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/SyncDeleteConnectionString.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/SyncDeleteConnectionString.java index 71736f0c0226..14a33b365e3f 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/SyncDeleteConnectionString.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteconnection/SyncDeleteConnectionString.java @@ -34,7 +34,9 @@ public static void syncDeleteConnectionString() throws Exception { // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); + String name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString(); dlpServiceClient.deleteConnection(name); } } diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deletefilestoredataprofile/AsyncDeleteFileStoreDataProfile.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deletefilestoredataprofile/AsyncDeleteFileStoreDataProfile.java new file mode 100644 index 000000000000..77edf91e5551 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deletefilestoredataprofile/AsyncDeleteFileStoreDataProfile.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_DeleteFileStoreDataProfile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest; +import com.google.privacy.dlp.v2.FileStoreDataProfileName; +import com.google.protobuf.Empty; + +public class AsyncDeleteFileStoreDataProfile { + + public static void main(String[] args) throws Exception { + asyncDeleteFileStoreDataProfile(); + } + + public static void asyncDeleteFileStoreDataProfile() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + DeleteFileStoreDataProfileRequest request = + DeleteFileStoreDataProfileRequest.newBuilder() + .setName( + FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]") + .toString()) + .build(); + ApiFuture future = + dlpServiceClient.deleteFileStoreDataProfileCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dlp_v2_generated_DlpService_DeleteFileStoreDataProfile_async] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deletefilestoredataprofile/SyncDeleteFileStoreDataProfile.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deletefilestoredataprofile/SyncDeleteFileStoreDataProfile.java new file mode 100644 index 000000000000..78a5d830825d --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deletefilestoredataprofile/SyncDeleteFileStoreDataProfile.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_DeleteFileStoreDataProfile_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest; +import com.google.privacy.dlp.v2.FileStoreDataProfileName; +import com.google.protobuf.Empty; + +public class SyncDeleteFileStoreDataProfile { + + public static void main(String[] args) throws Exception { + syncDeleteFileStoreDataProfile(); + } + + public static void syncDeleteFileStoreDataProfile() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + DeleteFileStoreDataProfileRequest request = + DeleteFileStoreDataProfileRequest.newBuilder() + .setName( + FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]") + .toString()) + .build(); + dlpServiceClient.deleteFileStoreDataProfile(request); + } + } +} +// [END dlp_v2_generated_DlpService_DeleteFileStoreDataProfile_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deletefilestoredataprofile/SyncDeleteFileStoreDataProfileFilestoredataprofilename.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deletefilestoredataprofile/SyncDeleteFileStoreDataProfileFilestoredataprofilename.java new file mode 100644 index 000000000000..c526af29e42b --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deletefilestoredataprofile/SyncDeleteFileStoreDataProfileFilestoredataprofilename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_DeleteFileStoreDataProfile_Filestoredataprofilename_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.FileStoreDataProfileName; +import com.google.protobuf.Empty; + +public class SyncDeleteFileStoreDataProfileFilestoredataprofilename { + + public static void main(String[] args) throws Exception { + syncDeleteFileStoreDataProfileFilestoredataprofilename(); + } + + public static void syncDeleteFileStoreDataProfileFilestoredataprofilename() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + FileStoreDataProfileName name = + FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]"); + dlpServiceClient.deleteFileStoreDataProfile(name); + } + } +} +// [END dlp_v2_generated_DlpService_DeleteFileStoreDataProfile_Filestoredataprofilename_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deletefilestoredataprofile/SyncDeleteFileStoreDataProfileString.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deletefilestoredataprofile/SyncDeleteFileStoreDataProfileString.java new file mode 100644 index 000000000000..c92b7adc6c53 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deletefilestoredataprofile/SyncDeleteFileStoreDataProfileString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_DeleteFileStoreDataProfile_String_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.FileStoreDataProfileName; +import com.google.protobuf.Empty; + +public class SyncDeleteFileStoreDataProfileString { + + public static void main(String[] args) throws Exception { + syncDeleteFileStoreDataProfileString(); + } + + public static void syncDeleteFileStoreDataProfileString() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + String name = + FileStoreDataProfileName.ofOrganizationLocationFileStoreDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[FILE_STORE_DATA_PROFILE]") + .toString(); + dlpServiceClient.deleteFileStoreDataProfile(name); + } + } +} +// [END dlp_v2_generated_DlpService_DeleteFileStoreDataProfile_String_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteinspecttemplate/AsyncDeleteInspectTemplate.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteinspecttemplate/AsyncDeleteInspectTemplate.java index f47fdde98a63..5d59d55cb4de 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteinspecttemplate/AsyncDeleteInspectTemplate.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteinspecttemplate/AsyncDeleteInspectTemplate.java @@ -39,8 +39,8 @@ public static void asyncDeleteInspectTemplate() throws Exception { DeleteInspectTemplateRequest request = DeleteInspectTemplateRequest.newBuilder() .setName( - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") .toString()) .build(); ApiFuture future = diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteinspecttemplate/SyncDeleteInspectTemplate.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteinspecttemplate/SyncDeleteInspectTemplate.java index 94cb023d2cc7..312ecfd5d163 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteinspecttemplate/SyncDeleteInspectTemplate.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteinspecttemplate/SyncDeleteInspectTemplate.java @@ -38,8 +38,8 @@ public static void syncDeleteInspectTemplate() throws Exception { DeleteInspectTemplateRequest request = DeleteInspectTemplateRequest.newBuilder() .setName( - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") .toString()) .build(); dlpServiceClient.deleteInspectTemplate(request); diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteinspecttemplate/SyncDeleteInspectTemplateInspecttemplatename.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteinspecttemplate/SyncDeleteInspectTemplateInspecttemplatename.java index 6d883d7c040e..986f772ef0ba 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteinspecttemplate/SyncDeleteInspectTemplateInspecttemplatename.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/deleteinspecttemplate/SyncDeleteInspectTemplateInspecttemplatename.java @@ -35,8 +35,8 @@ public static void syncDeleteInspectTemplateInspecttemplatename() throws Excepti // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); dlpServiceClient.deleteInspectTemplate(name); } } diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/AsyncGetConnection.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/AsyncGetConnection.java index 6ff57c061836..3f69c776af47 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/AsyncGetConnection.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/AsyncGetConnection.java @@ -38,7 +38,10 @@ public static void asyncGetConnection() throws Exception { try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { GetConnectionRequest request = GetConnectionRequest.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .build(); ApiFuture future = dlpServiceClient.getConnectionCallable().futureCall(request); // Do something. diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/SyncGetConnection.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/SyncGetConnection.java index add09346ed50..644fb8824415 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/SyncGetConnection.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/SyncGetConnection.java @@ -37,7 +37,10 @@ public static void syncGetConnection() throws Exception { try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { GetConnectionRequest request = GetConnectionRequest.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .build(); Connection response = dlpServiceClient.getConnection(request); } diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/SyncGetConnectionConnectionname.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/SyncGetConnectionConnectionname.java index cea6fa014355..528f43df7c34 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/SyncGetConnectionConnectionname.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/SyncGetConnectionConnectionname.java @@ -34,7 +34,8 @@ public static void syncGetConnectionConnectionname() throws Exception { // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); Connection response = dlpServiceClient.getConnection(name); } } diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/SyncGetConnectionString.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/SyncGetConnectionString.java index 1931a4abc4d7..89b4f0e7900f 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/SyncGetConnectionString.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getconnection/SyncGetConnectionString.java @@ -34,7 +34,9 @@ public static void syncGetConnectionString() throws Exception { // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); + String name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString(); Connection response = dlpServiceClient.getConnection(name); } } diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getfilestoredataprofile/AsyncGetFileStoreDataProfile.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getfilestoredataprofile/AsyncGetFileStoreDataProfile.java new file mode 100644 index 000000000000..0de599577450 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getfilestoredataprofile/AsyncGetFileStoreDataProfile.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetFileStoreDataProfile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.FileStoreDataProfile; +import com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest; +import com.google.privacy.dlp.v2.ProjectDataProfileName; + +public class AsyncGetFileStoreDataProfile { + + public static void main(String[] args) throws Exception { + asyncGetFileStoreDataProfile(); + } + + public static void asyncGetFileStoreDataProfile() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + GetFileStoreDataProfileRequest request = + GetFileStoreDataProfileRequest.newBuilder() + .setName( + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]") + .toString()) + .build(); + ApiFuture future = + dlpServiceClient.getFileStoreDataProfileCallable().futureCall(request); + // Do something. + FileStoreDataProfile response = future.get(); + } + } +} +// [END dlp_v2_generated_DlpService_GetFileStoreDataProfile_async] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getfilestoredataprofile/SyncGetFileStoreDataProfile.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getfilestoredataprofile/SyncGetFileStoreDataProfile.java new file mode 100644 index 000000000000..366114bf5263 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getfilestoredataprofile/SyncGetFileStoreDataProfile.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetFileStoreDataProfile_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.FileStoreDataProfile; +import com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest; +import com.google.privacy.dlp.v2.ProjectDataProfileName; + +public class SyncGetFileStoreDataProfile { + + public static void main(String[] args) throws Exception { + syncGetFileStoreDataProfile(); + } + + public static void syncGetFileStoreDataProfile() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + GetFileStoreDataProfileRequest request = + GetFileStoreDataProfileRequest.newBuilder() + .setName( + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]") + .toString()) + .build(); + FileStoreDataProfile response = dlpServiceClient.getFileStoreDataProfile(request); + } + } +} +// [END dlp_v2_generated_DlpService_GetFileStoreDataProfile_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getfilestoredataprofile/SyncGetFileStoreDataProfileProjectdataprofilename.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getfilestoredataprofile/SyncGetFileStoreDataProfileProjectdataprofilename.java new file mode 100644 index 000000000000..a050f35c1606 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getfilestoredataprofile/SyncGetFileStoreDataProfileProjectdataprofilename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetFileStoreDataProfile_Projectdataprofilename_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.FileStoreDataProfile; +import com.google.privacy.dlp.v2.ProjectDataProfileName; + +public class SyncGetFileStoreDataProfileProjectdataprofilename { + + public static void main(String[] args) throws Exception { + syncGetFileStoreDataProfileProjectdataprofilename(); + } + + public static void syncGetFileStoreDataProfileProjectdataprofilename() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ProjectDataProfileName name = + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"); + FileStoreDataProfile response = dlpServiceClient.getFileStoreDataProfile(name); + } + } +} +// [END dlp_v2_generated_DlpService_GetFileStoreDataProfile_Projectdataprofilename_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getfilestoredataprofile/SyncGetFileStoreDataProfileString.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getfilestoredataprofile/SyncGetFileStoreDataProfileString.java new file mode 100644 index 000000000000..74bd5ba98e4b --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getfilestoredataprofile/SyncGetFileStoreDataProfileString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetFileStoreDataProfile_String_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.FileStoreDataProfile; +import com.google.privacy.dlp.v2.ProjectDataProfileName; + +public class SyncGetFileStoreDataProfileString { + + public static void main(String[] args) throws Exception { + syncGetFileStoreDataProfileString(); + } + + public static void syncGetFileStoreDataProfileString() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + String name = + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]") + .toString(); + FileStoreDataProfile response = dlpServiceClient.getFileStoreDataProfile(name); + } + } +} +// [END dlp_v2_generated_DlpService_GetFileStoreDataProfile_String_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getinspecttemplate/AsyncGetInspectTemplate.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getinspecttemplate/AsyncGetInspectTemplate.java index 58c81e84da2b..e3a0bf1e2190 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getinspecttemplate/AsyncGetInspectTemplate.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getinspecttemplate/AsyncGetInspectTemplate.java @@ -39,8 +39,8 @@ public static void asyncGetInspectTemplate() throws Exception { GetInspectTemplateRequest request = GetInspectTemplateRequest.newBuilder() .setName( - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") .toString()) .build(); ApiFuture future = diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getinspecttemplate/SyncGetInspectTemplate.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getinspecttemplate/SyncGetInspectTemplate.java index 3fb5cbc034d7..55d1067639d7 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getinspecttemplate/SyncGetInspectTemplate.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getinspecttemplate/SyncGetInspectTemplate.java @@ -38,8 +38,8 @@ public static void syncGetInspectTemplate() throws Exception { GetInspectTemplateRequest request = GetInspectTemplateRequest.newBuilder() .setName( - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") .toString()) .build(); InspectTemplate response = dlpServiceClient.getInspectTemplate(request); diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getinspecttemplate/SyncGetInspectTemplateInspecttemplatename.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getinspecttemplate/SyncGetInspectTemplateInspecttemplatename.java index 1cd23048b87e..5f4f1743adb8 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getinspecttemplate/SyncGetInspectTemplateInspecttemplatename.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getinspecttemplate/SyncGetInspectTemplateInspecttemplatename.java @@ -35,8 +35,8 @@ public static void syncGetInspectTemplateInspecttemplatename() throws Exception // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); InspectTemplate response = dlpServiceClient.getInspectTemplate(name); } } diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listconnections/SyncListConnectionsOrganizationlocationname.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listconnections/SyncListConnectionsOrganizationlocationname.java new file mode 100644 index 000000000000..44ec9ce1c03a --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listconnections/SyncListConnectionsOrganizationlocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListConnections_Organizationlocationname_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.Connection; +import com.google.privacy.dlp.v2.OrganizationLocationName; + +public class SyncListConnectionsOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListConnectionsOrganizationlocationname(); + } + + public static void syncListConnectionsOrganizationlocationname() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (Connection element : dlpServiceClient.listConnections(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListConnections_Organizationlocationname_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/AsyncListFileStoreDataProfiles.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/AsyncListFileStoreDataProfiles.java new file mode 100644 index 000000000000..9cda13f958dd --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/AsyncListFileStoreDataProfiles.java @@ -0,0 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListFileStoreDataProfiles_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.FileStoreDataProfile; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest; +import com.google.privacy.dlp.v2.OrganizationLocationName; + +public class AsyncListFileStoreDataProfiles { + + public static void main(String[] args) throws Exception { + asyncListFileStoreDataProfiles(); + } + + public static void asyncListFileStoreDataProfiles() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ListFileStoreDataProfilesRequest request = + ListFileStoreDataProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dlpServiceClient.listFileStoreDataProfilesPagedCallable().futureCall(request); + // Do something. + for (FileStoreDataProfile element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListFileStoreDataProfiles_async] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/AsyncListFileStoreDataProfilesPaged.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/AsyncListFileStoreDataProfilesPaged.java new file mode 100644 index 000000000000..1bf9355c387a --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/AsyncListFileStoreDataProfilesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListFileStoreDataProfiles_Paged_async] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.common.base.Strings; +import com.google.privacy.dlp.v2.FileStoreDataProfile; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse; +import com.google.privacy.dlp.v2.OrganizationLocationName; + +public class AsyncListFileStoreDataProfilesPaged { + + public static void main(String[] args) throws Exception { + asyncListFileStoreDataProfilesPaged(); + } + + public static void asyncListFileStoreDataProfilesPaged() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ListFileStoreDataProfilesRequest request = + ListFileStoreDataProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListFileStoreDataProfilesResponse response = + dlpServiceClient.listFileStoreDataProfilesCallable().call(request); + for (FileStoreDataProfile element : response.getFileStoreDataProfilesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dlp_v2_generated_DlpService_ListFileStoreDataProfiles_Paged_async] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/SyncListFileStoreDataProfiles.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/SyncListFileStoreDataProfiles.java new file mode 100644 index 000000000000..4978194784ed --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/SyncListFileStoreDataProfiles.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListFileStoreDataProfiles_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.FileStoreDataProfile; +import com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest; +import com.google.privacy.dlp.v2.OrganizationLocationName; + +public class SyncListFileStoreDataProfiles { + + public static void main(String[] args) throws Exception { + syncListFileStoreDataProfiles(); + } + + public static void syncListFileStoreDataProfiles() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ListFileStoreDataProfilesRequest request = + ListFileStoreDataProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (FileStoreDataProfile element : + dlpServiceClient.listFileStoreDataProfiles(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListFileStoreDataProfiles_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/SyncListFileStoreDataProfilesLocationname.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/SyncListFileStoreDataProfilesLocationname.java new file mode 100644 index 000000000000..7497500a1996 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/SyncListFileStoreDataProfilesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListFileStoreDataProfiles_Locationname_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.FileStoreDataProfile; +import com.google.privacy.dlp.v2.LocationName; + +public class SyncListFileStoreDataProfilesLocationname { + + public static void main(String[] args) throws Exception { + syncListFileStoreDataProfilesLocationname(); + } + + public static void syncListFileStoreDataProfilesLocationname() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (FileStoreDataProfile element : + dlpServiceClient.listFileStoreDataProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListFileStoreDataProfiles_Locationname_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/SyncListFileStoreDataProfilesOrganizationlocationname.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/SyncListFileStoreDataProfilesOrganizationlocationname.java new file mode 100644 index 000000000000..8c52dc6b1c2b --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/SyncListFileStoreDataProfilesOrganizationlocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListFileStoreDataProfiles_Organizationlocationname_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.FileStoreDataProfile; +import com.google.privacy.dlp.v2.OrganizationLocationName; + +public class SyncListFileStoreDataProfilesOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListFileStoreDataProfilesOrganizationlocationname(); + } + + public static void syncListFileStoreDataProfilesOrganizationlocationname() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (FileStoreDataProfile element : + dlpServiceClient.listFileStoreDataProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListFileStoreDataProfiles_Organizationlocationname_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/SyncListFileStoreDataProfilesString.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/SyncListFileStoreDataProfilesString.java new file mode 100644 index 000000000000..d9c6de71fd76 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listfilestoredataprofiles/SyncListFileStoreDataProfilesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListFileStoreDataProfiles_String_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.FileStoreDataProfile; +import com.google.privacy.dlp.v2.OrganizationLocationName; + +public class SyncListFileStoreDataProfilesString { + + public static void main(String[] args) throws Exception { + syncListFileStoreDataProfilesString(); + } + + public static void syncListFileStoreDataProfilesString() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + for (FileStoreDataProfile element : + dlpServiceClient.listFileStoreDataProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListFileStoreDataProfiles_String_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/searchconnections/SyncSearchConnectionsOrganizationlocationname.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/searchconnections/SyncSearchConnectionsOrganizationlocationname.java new file mode 100644 index 000000000000..f3dbebdca20f --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/searchconnections/SyncSearchConnectionsOrganizationlocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_SearchConnections_Organizationlocationname_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.Connection; +import com.google.privacy.dlp.v2.OrganizationLocationName; + +public class SyncSearchConnectionsOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncSearchConnectionsOrganizationlocationname(); + } + + public static void syncSearchConnectionsOrganizationlocationname() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (Connection element : dlpServiceClient.searchConnections(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_SearchConnections_Organizationlocationname_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/AsyncUpdateConnection.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/AsyncUpdateConnection.java index 69255c3cd153..8f6b1e65f7ae 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/AsyncUpdateConnection.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/AsyncUpdateConnection.java @@ -39,7 +39,10 @@ public static void asyncUpdateConnection() throws Exception { try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { UpdateConnectionRequest request = UpdateConnectionRequest.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .setConnection(Connection.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/SyncUpdateConnection.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/SyncUpdateConnection.java index d89486c085c0..d0176a127bdf 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/SyncUpdateConnection.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/SyncUpdateConnection.java @@ -38,7 +38,10 @@ public static void syncUpdateConnection() throws Exception { try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { UpdateConnectionRequest request = UpdateConnectionRequest.newBuilder() - .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setName( + ConnectionName.ofProjectLocationConnectionName( + "[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString()) .setConnection(Connection.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/SyncUpdateConnectionConnectionname.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/SyncUpdateConnectionConnectionname.java index e5dc58192f8e..d26c9016abc8 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/SyncUpdateConnectionConnectionname.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/SyncUpdateConnectionConnectionname.java @@ -34,7 +34,8 @@ public static void syncUpdateConnectionConnectionname() throws Exception { // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionName name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]"); Connection response = dlpServiceClient.updateConnection(name); } } diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/SyncUpdateConnectionString.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/SyncUpdateConnectionString.java index 0a5d10b637a6..c6bd1eaece3c 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/SyncUpdateConnectionString.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateconnection/SyncUpdateConnectionString.java @@ -34,7 +34,9 @@ public static void syncUpdateConnectionString() throws Exception { // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); + String name = + ConnectionName.ofProjectLocationConnectionName("[PROJECT]", "[LOCATION]", "[CONNECTION]") + .toString(); Connection response = dlpServiceClient.updateConnection(name); } } diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateinspecttemplate/AsyncUpdateInspectTemplate.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateinspecttemplate/AsyncUpdateInspectTemplate.java index 38061412bf08..1e311746c69e 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateinspecttemplate/AsyncUpdateInspectTemplate.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateinspecttemplate/AsyncUpdateInspectTemplate.java @@ -40,8 +40,8 @@ public static void asyncUpdateInspectTemplate() throws Exception { UpdateInspectTemplateRequest request = UpdateInspectTemplateRequest.newBuilder() .setName( - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") .toString()) .setInspectTemplate(InspectTemplate.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateinspecttemplate/SyncUpdateInspectTemplate.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateinspecttemplate/SyncUpdateInspectTemplate.java index 1174352efe11..0db40929a6c3 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateinspecttemplate/SyncUpdateInspectTemplate.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateinspecttemplate/SyncUpdateInspectTemplate.java @@ -39,8 +39,8 @@ public static void syncUpdateInspectTemplate() throws Exception { UpdateInspectTemplateRequest request = UpdateInspectTemplateRequest.newBuilder() .setName( - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]") + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]") .toString()) .setInspectTemplate(InspectTemplate.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateinspecttemplate/SyncUpdateInspectTemplateInspecttemplatenameInspecttemplateFieldmask.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateinspecttemplate/SyncUpdateInspectTemplateInspecttemplatenameInspecttemplateFieldmask.java index 6bbc5a99425e..de86e04de444 100644 --- a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateinspecttemplate/SyncUpdateInspectTemplateInspecttemplatenameInspecttemplateFieldmask.java +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/updateinspecttemplate/SyncUpdateInspectTemplateInspecttemplatenameInspecttemplateFieldmask.java @@ -37,8 +37,8 @@ public static void syncUpdateInspectTemplateInspecttemplatenameInspecttemplateFi // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { InspectTemplateName name = - InspectTemplateName.ofOrganizationInspectTemplateName( - "[ORGANIZATION]", "[INSPECT_TEMPLATE]"); + InspectTemplateName.ofProjectLocationInspectTemplateName( + "[PROJECT]", "[LOCATION]", "[INSPECT_TEMPLATE]"); InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); InspectTemplate response = diff --git a/java-dms/README.md b/java-dms/README.md index 7d3a846d9d0b..969a30335a2c 100644 --- a/java-dms/README.md +++ b/java-dms/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-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.45.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-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java index 1b80c3ef1ccd..c2854a799d5b 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.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; @@ -1184,6 +1185,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "datamigration.googleapis.com:443"; } diff --git a/java-document-ai/README.md b/java-document-ai/README.md index 3ec10fce5130..4c67f4456d26 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/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-document-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.50.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-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java index a65ede04afc2..fdd0eda74abe 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.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; @@ -790,6 +791,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "documentai.googleapis.com:443"; } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java index 16859765941b..826ca35e9f92 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -136,6 +137,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "documentai.googleapis.com:443"; } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java index f1c15a9865f0..2edbbfbd05f0 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.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 "documentai.googleapis.com:443"; } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java index f3988a5ab4c0..72b0e6ba693e 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.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; @@ -816,6 +817,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "documentai.googleapis.com:443"; } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java index 5f31288f8933..6a7885cf6ca2 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.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; @@ -351,6 +352,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "documentai.googleapis.com:443"; } diff --git a/java-domains/README.md b/java-domains/README.md index 92dab6ca6f3c..53c2f2ac554a 100644 --- a/java-domains/README.md +++ b/java-domains/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-domains.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.43.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-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java index 34e9b8d07675..289a23e7787e 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.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; @@ -388,6 +389,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "domains.googleapis.com:443"; } diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java index e7cae80a855b..ad096b5030ac 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.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; @@ -389,6 +390,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "domains.googleapis.com:443"; } diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java index a02e2a763097..f242c7d82a62 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.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; @@ -389,6 +390,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "domains.googleapis.com:443"; } diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index 6f96a1edce1f..8d2bcbd654fd 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/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-edgenetwork.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.14.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-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStubSettings.java b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStubSettings.java index 3176d559c462..029623bd2370 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStubSettings.java +++ b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStubSettings.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; @@ -883,6 +884,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "edgenetwork.googleapis.com:443"; } diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index f038a9a0877e..5e9071c24ae3 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/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.cloud/google-cloud-enterpriseknowledgegraph.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java index ec46ef3901ef..847fc60f0c54 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.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; @@ -297,6 +298,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "enterpriseknowledgegraph.googleapis.com:443"; } diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index a44defa3492d..57e3ef2a8cde 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/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.cloud/google-cloud-errorreporting.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.166.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.167.0-beta [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-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java index 1fdcac9b5fc9..7ba27566bebe 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java @@ -251,11 +251,20 @@ public final ErrorGroup getGroup(GroupName groupName) { * } * }
        * - * @param groupName Required. The group resource name. Written as - * `projects/{projectID}/groups/{group_name}`. Call - * [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list) - * to return a list of groups belonging to this project. - *

        Example: `projects/my-project-123/groups/my-group` + * @param groupName Required. The group resource name. Written as either + * `projects/{projectID}/groups/{group_id}` or + * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call [groupStats.list] + * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats] to return a + * list of groups belonging to this project. + *

        Examples: `projects/my-project-123/groups/my-group`, + * `projects/my-project-123/locations/global/groups/my-group` + *

        In the group resource name, the `group_id` is a unique identifier for a particular error + * group. The identifier is derived from key parts of the error-log content and is treated as + * Service Data. For information about how Service Data is handled, see [Google Cloud Privacy + * Notice](https://cloud.google.com/terms/cloud-privacy-notice). + *

        For a list of supported locations, see [Supported + * Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default + * when unspecified. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ErrorGroup getGroup(ErrorGroupName groupName) { @@ -284,11 +293,20 @@ public final ErrorGroup getGroup(ErrorGroupName groupName) { * } * }

        * - * @param groupName Required. The group resource name. Written as - * `projects/{projectID}/groups/{group_name}`. Call - * [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list) - * to return a list of groups belonging to this project. - *

        Example: `projects/my-project-123/groups/my-group` + * @param groupName Required. The group resource name. Written as either + * `projects/{projectID}/groups/{group_id}` or + * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call [groupStats.list] + * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats] to return a + * list of groups belonging to this project. + *

        Examples: `projects/my-project-123/groups/my-group`, + * `projects/my-project-123/locations/global/groups/my-group` + *

        In the group resource name, the `group_id` is a unique identifier for a particular error + * group. The identifier is derived from key parts of the error-log content and is treated as + * Service Data. For information about how Service Data is handled, see [Google Cloud Privacy + * Notice](https://cloud.google.com/terms/cloud-privacy-notice). + *

        For a list of supported locations, see [Supported + * Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default + * when unspecified. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ErrorGroup getGroup(String groupName) { diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java index fce8a6d9e4f6..3ec7992e3781 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java @@ -257,14 +257,23 @@ public ErrorStatsServiceStub getStub() { * @param projectName Required. The resource name of the Google Cloud Platform project. Written as * `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}` and * `{projectNumber}` can be found in the [Google Cloud - * Console](https://support.google.com/cloud/answer/6158840). - *

        Examples: `projects/my-project-123`, `projects/5551234`. + * console](https://support.google.com/cloud/answer/6158840). It may also include a location, + * such as `projects/{projectID}/locations/{location}` where `{location}` is a cloud region. + *

        Examples: `projects/my-project-123`, `projects/5551234`, + * `projects/my-project-123/locations/us-central1`, `projects/5551234/locations/us-central1`. + *

        For a list of supported locations, see [Supported + * Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default + * when unspecified. Use `-` as a wildcard to request group stats from all regions. * @param timeRange Optional. List data for the given time range. If not set, a default time range - * is used. The field <code>time_range_begin</code> in the response will specify - * the beginning of this time range. Only <code>ErrorGroupStats</code> with a - * non-zero count in the given time range are returned, unless the request contains an - * explicit <code>group_id</code> list. If a <code>group_id</code> - * list is given, also <code>ErrorGroupStats</code> with zero occurrences are + * is used. The field [time_range_begin] + * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin] in + * the response will specify the beginning of this time range. Only [ErrorGroupStats] + * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a non-zero count in the + * given time range are returned, unless the request contains an explicit [group_id] + * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] list. If a + * [group_id] [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] + * list is given, also [ErrorGroupStats] + * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero occurrences are * returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -303,14 +312,23 @@ public final ListGroupStatsPagedResponse listGroupStats( * @param projectName Required. The resource name of the Google Cloud Platform project. Written as * `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}` and * `{projectNumber}` can be found in the [Google Cloud - * Console](https://support.google.com/cloud/answer/6158840). - *

        Examples: `projects/my-project-123`, `projects/5551234`. + * console](https://support.google.com/cloud/answer/6158840). It may also include a location, + * such as `projects/{projectID}/locations/{location}` where `{location}` is a cloud region. + *

        Examples: `projects/my-project-123`, `projects/5551234`, + * `projects/my-project-123/locations/us-central1`, `projects/5551234/locations/us-central1`. + *

        For a list of supported locations, see [Supported + * Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default + * when unspecified. Use `-` as a wildcard to request group stats from all regions. * @param timeRange Optional. List data for the given time range. If not set, a default time range - * is used. The field <code>time_range_begin</code> in the response will specify - * the beginning of this time range. Only <code>ErrorGroupStats</code> with a - * non-zero count in the given time range are returned, unless the request contains an - * explicit <code>group_id</code> list. If a <code>group_id</code> - * list is given, also <code>ErrorGroupStats</code> with zero occurrences are + * is used. The field [time_range_begin] + * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin] in + * the response will specify the beginning of this time range. Only [ErrorGroupStats] + * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a non-zero count in the + * given time range are returned, unless the request contains an explicit [group_id] + * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] list. If a + * [group_id] [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] + * list is given, also [ErrorGroupStats] + * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero occurrences are * returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -473,10 +491,18 @@ public final ListGroupStatsPagedResponse listGroupStats(ListGroupStatsRequest re * }

        * * @param projectName Required. The resource name of the Google Cloud Platform project. Written as - * `projects/{projectID}`, where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840). - *

        Example: `projects/my-project-123`. - * @param groupId Required. The group for which events shall be returned. + * `projects/{projectID}` or `projects/{projectID}/locations/{location}`, where `{projectID}` + * is the [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840) + * and `{location}` is a Cloud region. + *

        Examples: `projects/my-project-123`, `projects/my-project-123/locations/global`. + *

        For a list of supported locations, see [Supported + * Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default + * when unspecified. + * @param groupId Required. The group for which events shall be returned. The `group_id` is a + * unique identifier for a particular error group. The identifier is derived from key parts of + * the error-log content and is treated as Service Data. For information about how Service + * Data is handled, see [Google Cloud Privacy + * Notice](https://cloud.google.com/terms/cloud-privacy-notice). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEventsPagedResponse listEvents(ProjectName projectName, String groupId) { @@ -511,10 +537,18 @@ public final ListEventsPagedResponse listEvents(ProjectName projectName, String * }

        * * @param projectName Required. The resource name of the Google Cloud Platform project. Written as - * `projects/{projectID}`, where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840). - *

        Example: `projects/my-project-123`. - * @param groupId Required. The group for which events shall be returned. + * `projects/{projectID}` or `projects/{projectID}/locations/{location}`, where `{projectID}` + * is the [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840) + * and `{location}` is a Cloud region. + *

        Examples: `projects/my-project-123`, `projects/my-project-123/locations/global`. + *

        For a list of supported locations, see [Supported + * Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default + * when unspecified. + * @param groupId Required. The group for which events shall be returned. The `group_id` is a + * unique identifier for a particular error group. The identifier is derived from key parts of + * the error-log content and is treated as Service Data. For information about how Service + * Data is handled, see [Google Cloud Privacy + * Notice](https://cloud.google.com/terms/cloud-privacy-notice). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEventsPagedResponse listEvents(String projectName, String groupId) { @@ -653,9 +687,13 @@ public final UnaryCallable listEventsCall * }

        * * @param projectName Required. The resource name of the Google Cloud Platform project. Written as - * `projects/{projectID}`, where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840). - *

        Example: `projects/my-project-123`. + * `projects/{projectID}` or `projects/{projectID}/locations/{location}`, where `{projectID}` + * is the [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840) + * and `{location}` is a Cloud region. + *

        Examples: `projects/my-project-123`, `projects/my-project-123/locations/global`. + *

        For a list of supported locations, see [Supported + * Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default + * when unspecified. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DeleteEventsResponse deleteEvents(ProjectName projectName) { @@ -685,9 +723,13 @@ public final DeleteEventsResponse deleteEvents(ProjectName projectName) { * }

        * * @param projectName Required. The resource name of the Google Cloud Platform project. Written as - * `projects/{projectID}`, where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840). - *

        Example: `projects/my-project-123`. + * `projects/{projectID}` or `projects/{projectID}/locations/{location}`, where `{projectID}` + * is the [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840) + * and `{location}` is a Cloud region. + *

        Examples: `projects/my-project-123`, `projects/my-project-123/locations/global`. + *

        For a list of supported locations, see [Supported + * Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default + * when unspecified. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DeleteEventsResponse deleteEvents(String projectName) { diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java index 2ec509794b6c..bae3d2a54c24 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java @@ -65,7 +65,11 @@ *

      • *or** an [API key](https://support.google.com/cloud/answer/6158862) for authentication. To use an API key, append it to the URL as the value of a `key` parameter. For example: *
      *

      `POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` - *

      **Note:** [Error Reporting](/error-reporting) is a global service built on Cloud Logging and doesn't analyze logs stored in regional log buckets or logs routed to other Google Cloud projects. + *

      **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) is a service built on Cloud Logging and can analyze log entries when all of the following are true: + *

        + *
      • Customer-managed encryption keys (CMEK) are disabled on the log bucket. + *
      • The log bucket satisfies one of the following: * The log bucket is stored in the same project where the logs originated. * The logs were routed to a project, and then that project stored those logs in a log bucket that it owns. + *
      * *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      *
        @@ -206,9 +210,15 @@ public ReportErrorsServiceStub getStub() { *

        `POST * https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` * - *

        **Note:** [Error Reporting](/error-reporting) is a global service built on - * Cloud Logging and doesn't analyze logs stored in regional log buckets or logs routed to other - * Google Cloud projects. + *

        **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) is a + * service built on Cloud Logging and can analyze log entries when all of the following are true: + * + *

          + *
        • Customer-managed encryption keys (CMEK) are disabled on the log bucket. + *
        • The log bucket satisfies one of the following: * The log bucket is stored in the same + * project where the logs originated. * The logs were routed to a project, and then that + * project stored those logs in a log bucket that it owns. + *
        * *

        Sample code: * @@ -258,9 +268,15 @@ public final ReportErrorEventResponse reportErrorEvent( *

        `POST * https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` * - *

        **Note:** [Error Reporting](/error-reporting) is a global service built on - * Cloud Logging and doesn't analyze logs stored in regional log buckets or logs routed to other - * Google Cloud projects. + *

        **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) is a + * service built on Cloud Logging and can analyze log entries when all of the following are true: + * + *

          + *
        • Customer-managed encryption keys (CMEK) are disabled on the log bucket. + *
        • The log bucket satisfies one of the following: * The log bucket is stored in the same + * project where the logs originated. * The logs were routed to a project, and then that + * project stored those logs in a log bucket that it owns. + *
        * *

        Sample code: * @@ -307,9 +323,15 @@ public final ReportErrorEventResponse reportErrorEvent( *

        `POST * https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` * - *

        **Note:** [Error Reporting](/error-reporting) is a global service built on - * Cloud Logging and doesn't analyze logs stored in regional log buckets or logs routed to other - * Google Cloud projects. + *

        **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) is a + * service built on Cloud Logging and can analyze log entries when all of the following are true: + * + *

          + *
        • Customer-managed encryption keys (CMEK) are disabled on the log bucket. + *
        • The log bucket satisfies one of the following: * The log bucket is stored in the same + * project where the logs originated. * The logs were routed to a project, and then that + * project stored those logs in a log bucket that it owns. + *
        * *

        Sample code: * @@ -351,9 +373,15 @@ public final ReportErrorEventResponse reportErrorEvent(ReportErrorEventRequest r *

        `POST * https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` * - *

        **Note:** [Error Reporting](/error-reporting) is a global service built on - * Cloud Logging and doesn't analyze logs stored in regional log buckets or logs routed to other - * Google Cloud projects. + *

        **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) is a + * service built on Cloud Logging and can analyze log entries when all of the following are true: + * + *

          + *
        • Customer-managed encryption keys (CMEK) are disabled on the log bucket. + *
        • The log bucket satisfies one of the following: * The log bucket is stored in the same + * project where the logs originated. * The logs were routed to a project, and then that + * project stored those logs in a log bucket that it owns. + *
        * *

        Sample code: * diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java index a426b9bf8add..13ab8f959213 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -133,6 +134,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "clouderrorreporting.googleapis.com:443"; } diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java index e4df51000194..51c6d5ad9505 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.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; @@ -271,6 +272,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "clouderrorreporting.googleapis.com:443"; } diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorGroupServiceStub.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorGroupServiceStub.java index cd639b21fa21..238945af699c 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorGroupServiceStub.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorGroupServiceStub.java @@ -69,6 +69,7 @@ public class HttpJsonErrorGroupServiceStub extends ErrorGroupServiceStub { serializer.putPathParam(fields, "groupName", request.getGroupName()); return fields; }) + .setAdditionalPaths("/v1beta1/{groupName=projects/*/locations/*/groups/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -105,6 +106,7 @@ public class HttpJsonErrorGroupServiceStub extends ErrorGroupServiceStub { fields, "group.name", request.getGroup().getName()); return fields; }) + .setAdditionalPaths("/v1beta1/{group.name=projects/*/locations/*/groups/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorStatsServiceStub.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorStatsServiceStub.java index cfeab2e69f34..7882ba3fc8f5 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorStatsServiceStub.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorStatsServiceStub.java @@ -77,6 +77,8 @@ public class HttpJsonErrorStatsServiceStub extends ErrorStatsServiceStub { fields, "projectName", request.getProjectName()); return fields; }) + .setAdditionalPaths( + "/v1beta1/{projectName=projects/*/locations/*}/groupStats") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -126,6 +128,7 @@ public class HttpJsonErrorStatsServiceStub extends ErrorStatsServiceStub { fields, "projectName", request.getProjectName()); return fields; }) + .setAdditionalPaths("/v1beta1/{projectName=projects/*/locations/*}/events") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -168,6 +171,7 @@ public class HttpJsonErrorStatsServiceStub extends ErrorStatsServiceStub { fields, "projectName", request.getProjectName()); return fields; }) + .setAdditionalPaths("/v1beta1/{projectName=projects/*/locations/*}/events") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java index 4c1c33172bc3..11dbd3dad25d 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -128,6 +129,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "clouderrorreporting.googleapis.com:443"; } diff --git a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceGrpc.java b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceGrpc.java index a6f086838ebd..5ef1feb87a5d 100644 --- a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceGrpc.java +++ b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceGrpc.java @@ -145,9 +145,15 @@ public interface AsyncService { * a `key` parameter. For example: * `POST * https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` - * **Note:** [Error Reporting](/error-reporting) is a global service built - * on Cloud Logging and doesn't analyze logs stored - * in regional log buckets or logs routed to other Google Cloud projects. + * **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) + * is a service built on Cloud Logging and can analyze log entries when all of + * the following are true: + * * Customer-managed encryption keys (CMEK) are disabled on the log bucket. + * * The log bucket satisfies one of the following: + * * The log bucket is stored in the same project where the logs + * originated. + * * The logs were routed to a project, and then that project stored those + * logs in a log bucket that it owns. * */ default void reportErrorEvent( @@ -206,9 +212,15 @@ protected ReportErrorsServiceStub build( * a `key` parameter. For example: * `POST * https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` - * **Note:** [Error Reporting](/error-reporting) is a global service built - * on Cloud Logging and doesn't analyze logs stored - * in regional log buckets or logs routed to other Google Cloud projects. + * **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) + * is a service built on Cloud Logging and can analyze log entries when all of + * the following are true: + * * Customer-managed encryption keys (CMEK) are disabled on the log bucket. + * * The log bucket satisfies one of the following: + * * The log bucket is stored in the same project where the logs + * originated. + * * The logs were routed to a project, and then that project stored those + * logs in a log bucket that it owns. * */ public void reportErrorEvent( @@ -254,9 +266,15 @@ protected ReportErrorsServiceBlockingStub build( * a `key` parameter. For example: * `POST * https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` - * **Note:** [Error Reporting](/error-reporting) is a global service built - * on Cloud Logging and doesn't analyze logs stored - * in regional log buckets or logs routed to other Google Cloud projects. + * **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) + * is a service built on Cloud Logging and can analyze log entries when all of + * the following are true: + * * Customer-managed encryption keys (CMEK) are disabled on the log bucket. + * * The log bucket satisfies one of the following: + * * The log bucket is stored in the same project where the logs + * originated. + * * The logs were routed to a project, and then that project stored those + * logs in a log bucket that it owns. * */ public com.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse @@ -298,9 +316,15 @@ protected ReportErrorsServiceFutureStub build( * a `key` parameter. For example: * `POST * https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` - * **Note:** [Error Reporting](/error-reporting) is a global service built - * on Cloud Logging and doesn't analyze logs stored - * in regional log buckets or logs routed to other Google Cloud projects. + * **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) + * is a service built on Cloud Logging and can analyze log entries when all of + * the following are true: + * * Customer-managed encryption keys (CMEK) are disabled on the log bucket. + * * The log bucket satisfies one of the following: + * * The log bucket is stored in the same project where the logs + * originated. + * * The logs were routed to a project, and then that project stored those + * logs in a log bucket that it owns. * */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/DeleteEventsRequest.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/DeleteEventsRequest.java index c98876edb539..68ff07d587ca 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/DeleteEventsRequest.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/DeleteEventsRequest.java @@ -72,11 +72,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *

            * Required. The resource name of the Google Cloud Platform project. Written
        -   * as `projects/{projectID}`, where `{projectID}` is the
        -   * [Google Cloud Platform project
        -   * ID](https://support.google.com/cloud/answer/6158840).
        +   * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +   * where `{projectID}` is the [Google Cloud Platform project
        +   * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +   * a Cloud region.
            *
        -   * Example: `projects/my-project-123`.
        +   * Examples: `projects/my-project-123`,
        +   * `projects/my-project-123/locations/global`.
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * @@ -102,11 +108,17 @@ public java.lang.String getProjectName() { * *
            * Required. The resource name of the Google Cloud Platform project. Written
        -   * as `projects/{projectID}`, where `{projectID}` is the
        -   * [Google Cloud Platform project
        -   * ID](https://support.google.com/cloud/answer/6158840).
        +   * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +   * where `{projectID}` is the [Google Cloud Platform project
        +   * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +   * a Cloud region.
        +   *
        +   * Examples: `projects/my-project-123`,
        +   * `projects/my-project-123/locations/global`.
            *
        -   * Example: `projects/my-project-123`.
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * @@ -485,11 +497,17 @@ public Builder mergeFrom( * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}`, where `{projectID}` is the
        -     * [Google Cloud Platform project
        -     * ID](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +     * where `{projectID}` is the [Google Cloud Platform project
        +     * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +     * a Cloud region.
              *
        -     * Example: `projects/my-project-123`.
        +     * Examples: `projects/my-project-123`,
        +     * `projects/my-project-123/locations/global`.
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * @@ -514,11 +532,17 @@ public java.lang.String getProjectName() { * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}`, where `{projectID}` is the
        -     * [Google Cloud Platform project
        -     * ID](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +     * where `{projectID}` is the [Google Cloud Platform project
        +     * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +     * a Cloud region.
        +     *
        +     * Examples: `projects/my-project-123`,
        +     * `projects/my-project-123/locations/global`.
              *
        -     * Example: `projects/my-project-123`.
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * @@ -543,11 +567,17 @@ public com.google.protobuf.ByteString getProjectNameBytes() { * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}`, where `{projectID}` is the
        -     * [Google Cloud Platform project
        -     * ID](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +     * where `{projectID}` is the [Google Cloud Platform project
        +     * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +     * a Cloud region.
              *
        -     * Example: `projects/my-project-123`.
        +     * Examples: `projects/my-project-123`,
        +     * `projects/my-project-123/locations/global`.
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * @@ -571,11 +601,17 @@ public Builder setProjectName(java.lang.String value) { * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}`, where `{projectID}` is the
        -     * [Google Cloud Platform project
        -     * ID](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +     * where `{projectID}` is the [Google Cloud Platform project
        +     * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +     * a Cloud region.
        +     *
        +     * Examples: `projects/my-project-123`,
        +     * `projects/my-project-123/locations/global`.
              *
        -     * Example: `projects/my-project-123`.
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * @@ -595,11 +631,17 @@ public Builder clearProjectName() { * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}`, where `{projectID}` is the
        -     * [Google Cloud Platform project
        -     * ID](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +     * where `{projectID}` is the [Google Cloud Platform project
        +     * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +     * a Cloud region.
        +     *
        +     * Examples: `projects/my-project-123`,
        +     * `projects/my-project-123/locations/global`.
              *
        -     * Example: `projects/my-project-123`.
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/DeleteEventsRequestOrBuilder.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/DeleteEventsRequestOrBuilder.java index a239668f31ec..f9925ee57d44 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/DeleteEventsRequestOrBuilder.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/DeleteEventsRequestOrBuilder.java @@ -29,11 +29,17 @@ public interface DeleteEventsRequestOrBuilder * *
            * Required. The resource name of the Google Cloud Platform project. Written
        -   * as `projects/{projectID}`, where `{projectID}` is the
        -   * [Google Cloud Platform project
        -   * ID](https://support.google.com/cloud/answer/6158840).
        +   * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +   * where `{projectID}` is the [Google Cloud Platform project
        +   * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +   * a Cloud region.
            *
        -   * Example: `projects/my-project-123`.
        +   * Examples: `projects/my-project-123`,
        +   * `projects/my-project-123/locations/global`.
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * @@ -48,11 +54,17 @@ public interface DeleteEventsRequestOrBuilder * *
            * Required. The resource name of the Google Cloud Platform project. Written
        -   * as `projects/{projectID}`, where `{projectID}` is the
        -   * [Google Cloud Platform project
        -   * ID](https://support.google.com/cloud/answer/6158840).
        +   * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +   * where `{projectID}` is the [Google Cloud Platform project
        +   * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +   * a Cloud region.
        +   *
        +   * Examples: `projects/my-project-123`,
        +   * `projects/my-project-123/locations/global`.
            *
        -   * Example: `projects/my-project-123`.
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroup.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroup.java index a9827b53b27c..bd7c27ac70c5 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroup.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroup.java @@ -75,7 +75,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
            * The group resource name.
        -   * Example: <code>projects/my-project-123/groups/CNSgkpnppqKCUw</code>
        +   * Written as `projects/{projectID}/groups/{group_id}` or
        +   * `projects/{projectID}/locations/{location}/groups/{group_id}`
        +   *
        +   * Examples: `projects/my-project-123/groups/my-group`,
        +   * `projects/my-project-123/locations/us-central1/groups/my-group`
        +   *
        +   * In the group resource name, the `group_id` is a unique identifier for a
        +   * particular error group. The identifier is derived from key parts of the
        +   * error-log content and is treated as Service Data. For information about
        +   * how Service Data is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * string name = 1; @@ -99,7 +113,21 @@ public java.lang.String getName() { * *
            * The group resource name.
        -   * Example: <code>projects/my-project-123/groups/CNSgkpnppqKCUw</code>
        +   * Written as `projects/{projectID}/groups/{group_id}` or
        +   * `projects/{projectID}/locations/{location}/groups/{group_id}`
        +   *
        +   * Examples: `projects/my-project-123/groups/my-group`,
        +   * `projects/my-project-123/locations/us-central1/groups/my-group`
        +   *
        +   * In the group resource name, the `group_id` is a unique identifier for a
        +   * particular error group. The identifier is derived from key parts of the
        +   * error-log content and is treated as Service Data. For information about
        +   * how Service Data is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * string name = 1; @@ -127,8 +155,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -   * Group IDs are unique for a given project. If the same kind of error
        -   * occurs in different service contexts, it will receive the same group ID.
        +   * An opaque identifier of the group. This field is assigned by the Error
        +   * Reporting system and always populated.
        +   *
        +   * In the group resource name, the `group_id` is a unique identifier for a
        +   * particular error group. The identifier is derived from key parts of the
        +   * error-log content and is treated as Service Data. For information about
        +   * how Service Data is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * string group_id = 2; @@ -151,8 +185,14 @@ public java.lang.String getGroupId() { * * *
        -   * Group IDs are unique for a given project. If the same kind of error
        -   * occurs in different service contexts, it will receive the same group ID.
        +   * An opaque identifier of the group. This field is assigned by the Error
        +   * Reporting system and always populated.
        +   *
        +   * In the group resource name, the `group_id` is a unique identifier for a
        +   * particular error group. The identifier is derived from key parts of the
        +   * error-log content and is treated as Service Data. For information about
        +   * how Service Data is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * string group_id = 2; @@ -260,6 +300,7 @@ public com.google.devtools.clouderrorreporting.v1beta1.TrackingIssue getTracking * *
            * Error group's resolution status.
        +   *
            * An unspecified resolution status will be interpreted as OPEN
            * 
        * @@ -277,6 +318,7 @@ public int getResolutionStatusValue() { * *
            * Error group's resolution status.
        +   *
            * An unspecified resolution status will be interpreted as OPEN
            * 
        * @@ -769,7 +811,21 @@ public Builder mergeFrom( * *
              * The group resource name.
        -     * Example: <code>projects/my-project-123/groups/CNSgkpnppqKCUw</code>
        +     * Written as `projects/{projectID}/groups/{group_id}` or
        +     * `projects/{projectID}/locations/{location}/groups/{group_id}`
        +     *
        +     * Examples: `projects/my-project-123/groups/my-group`,
        +     * `projects/my-project-123/locations/us-central1/groups/my-group`
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * string name = 1; @@ -792,7 +848,21 @@ public java.lang.String getName() { * *
              * The group resource name.
        -     * Example: <code>projects/my-project-123/groups/CNSgkpnppqKCUw</code>
        +     * Written as `projects/{projectID}/groups/{group_id}` or
        +     * `projects/{projectID}/locations/{location}/groups/{group_id}`
        +     *
        +     * Examples: `projects/my-project-123/groups/my-group`,
        +     * `projects/my-project-123/locations/us-central1/groups/my-group`
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * string name = 1; @@ -815,7 +885,21 @@ public com.google.protobuf.ByteString getNameBytes() { * *
              * The group resource name.
        -     * Example: <code>projects/my-project-123/groups/CNSgkpnppqKCUw</code>
        +     * Written as `projects/{projectID}/groups/{group_id}` or
        +     * `projects/{projectID}/locations/{location}/groups/{group_id}`
        +     *
        +     * Examples: `projects/my-project-123/groups/my-group`,
        +     * `projects/my-project-123/locations/us-central1/groups/my-group`
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * string name = 1; @@ -837,7 +921,21 @@ public Builder setName(java.lang.String value) { * *
              * The group resource name.
        -     * Example: <code>projects/my-project-123/groups/CNSgkpnppqKCUw</code>
        +     * Written as `projects/{projectID}/groups/{group_id}` or
        +     * `projects/{projectID}/locations/{location}/groups/{group_id}`
        +     *
        +     * Examples: `projects/my-project-123/groups/my-group`,
        +     * `projects/my-project-123/locations/us-central1/groups/my-group`
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * string name = 1; @@ -855,7 +953,21 @@ public Builder clearName() { * *
              * The group resource name.
        -     * Example: <code>projects/my-project-123/groups/CNSgkpnppqKCUw</code>
        +     * Written as `projects/{projectID}/groups/{group_id}` or
        +     * `projects/{projectID}/locations/{location}/groups/{group_id}`
        +     *
        +     * Examples: `projects/my-project-123/groups/my-group`,
        +     * `projects/my-project-123/locations/us-central1/groups/my-group`
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * string name = 1; @@ -879,8 +991,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
        -     * Group IDs are unique for a given project. If the same kind of error
        -     * occurs in different service contexts, it will receive the same group ID.
        +     * An opaque identifier of the group. This field is assigned by the Error
        +     * Reporting system and always populated.
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * string group_id = 2; @@ -902,8 +1020,14 @@ public java.lang.String getGroupId() { * * *
        -     * Group IDs are unique for a given project. If the same kind of error
        -     * occurs in different service contexts, it will receive the same group ID.
        +     * An opaque identifier of the group. This field is assigned by the Error
        +     * Reporting system and always populated.
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * string group_id = 2; @@ -925,8 +1049,14 @@ public com.google.protobuf.ByteString getGroupIdBytes() { * * *
        -     * Group IDs are unique for a given project. If the same kind of error
        -     * occurs in different service contexts, it will receive the same group ID.
        +     * An opaque identifier of the group. This field is assigned by the Error
        +     * Reporting system and always populated.
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * string group_id = 2; @@ -947,8 +1077,14 @@ public Builder setGroupId(java.lang.String value) { * * *
        -     * Group IDs are unique for a given project. If the same kind of error
        -     * occurs in different service contexts, it will receive the same group ID.
        +     * An opaque identifier of the group. This field is assigned by the Error
        +     * Reporting system and always populated.
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * string group_id = 2; @@ -965,8 +1101,14 @@ public Builder clearGroupId() { * * *
        -     * Group IDs are unique for a given project. If the same kind of error
        -     * occurs in different service contexts, it will receive the same group ID.
        +     * An opaque identifier of the group. This field is assigned by the Error
        +     * Reporting system and always populated.
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * string group_id = 2; @@ -1398,6 +1540,7 @@ public Builder removeTrackingIssues(int index) { * *
              * Error group's resolution status.
        +     *
              * An unspecified resolution status will be interpreted as OPEN
              * 
        * @@ -1415,6 +1558,7 @@ public int getResolutionStatusValue() { * *
              * Error group's resolution status.
        +     *
              * An unspecified resolution status will be interpreted as OPEN
              * 
        * @@ -1435,6 +1579,7 @@ public Builder setResolutionStatusValue(int value) { * *
              * Error group's resolution status.
        +     *
              * An unspecified resolution status will be interpreted as OPEN
              * 
        * @@ -1457,6 +1602,7 @@ public com.google.devtools.clouderrorreporting.v1beta1.ResolutionStatus getResol * *
              * Error group's resolution status.
        +     *
              * An unspecified resolution status will be interpreted as OPEN
              * 
        * @@ -1481,6 +1627,7 @@ public Builder setResolutionStatus( * *
              * Error group's resolution status.
        +     *
              * An unspecified resolution status will be interpreted as OPEN
              * 
        * diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupOrBuilder.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupOrBuilder.java index d2bfede017e8..dbe4845b8ce5 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupOrBuilder.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupOrBuilder.java @@ -29,7 +29,21 @@ public interface ErrorGroupOrBuilder * *
            * The group resource name.
        -   * Example: <code>projects/my-project-123/groups/CNSgkpnppqKCUw</code>
        +   * Written as `projects/{projectID}/groups/{group_id}` or
        +   * `projects/{projectID}/locations/{location}/groups/{group_id}`
        +   *
        +   * Examples: `projects/my-project-123/groups/my-group`,
        +   * `projects/my-project-123/locations/us-central1/groups/my-group`
        +   *
        +   * In the group resource name, the `group_id` is a unique identifier for a
        +   * particular error group. The identifier is derived from key parts of the
        +   * error-log content and is treated as Service Data. For information about
        +   * how Service Data is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * string name = 1; @@ -42,7 +56,21 @@ public interface ErrorGroupOrBuilder * *
            * The group resource name.
        -   * Example: <code>projects/my-project-123/groups/CNSgkpnppqKCUw</code>
        +   * Written as `projects/{projectID}/groups/{group_id}` or
        +   * `projects/{projectID}/locations/{location}/groups/{group_id}`
        +   *
        +   * Examples: `projects/my-project-123/groups/my-group`,
        +   * `projects/my-project-123/locations/us-central1/groups/my-group`
        +   *
        +   * In the group resource name, the `group_id` is a unique identifier for a
        +   * particular error group. The identifier is derived from key parts of the
        +   * error-log content and is treated as Service Data. For information about
        +   * how Service Data is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * string name = 1; @@ -55,8 +83,14 @@ public interface ErrorGroupOrBuilder * * *
        -   * Group IDs are unique for a given project. If the same kind of error
        -   * occurs in different service contexts, it will receive the same group ID.
        +   * An opaque identifier of the group. This field is assigned by the Error
        +   * Reporting system and always populated.
        +   *
        +   * In the group resource name, the `group_id` is a unique identifier for a
        +   * particular error group. The identifier is derived from key parts of the
        +   * error-log content and is treated as Service Data. For information about
        +   * how Service Data is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * string group_id = 2; @@ -68,8 +102,14 @@ public interface ErrorGroupOrBuilder * * *
        -   * Group IDs are unique for a given project. If the same kind of error
        -   * occurs in different service contexts, it will receive the same group ID.
        +   * An opaque identifier of the group. This field is assigned by the Error
        +   * Reporting system and always populated.
        +   *
        +   * In the group resource name, the `group_id` is a unique identifier for a
        +   * particular error group. The identifier is derived from key parts of the
        +   * error-log content and is treated as Service Data. For information about
        +   * how Service Data is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * string group_id = 2; @@ -142,6 +182,7 @@ com.google.devtools.clouderrorreporting.v1beta1.TrackingIssueOrBuilder getTracki * *
            * Error group's resolution status.
        +   *
            * An unspecified resolution status will be interpreted as OPEN
            * 
        * @@ -156,6 +197,7 @@ com.google.devtools.clouderrorreporting.v1beta1.TrackingIssueOrBuilder getTracki * *
            * Error group's resolution status.
        +   *
            * An unspecified resolution status will be interpreted as OPEN
            * 
        * diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceProto.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceProto.java index f54c614fe3cf..9c600f8b1691 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceProto.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceProto.java @@ -57,26 +57,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogleapis.com/ErrorGroup\"a\n\022UpdateGroupRe" + "quest\022K\n\005group\030\001 \001(\01327.google.devtools.c" + "louderrorreporting.v1beta1.ErrorGroupB\003\340" - + "A\0022\373\003\n\021ErrorGroupService\022\301\001\n\010GetGroup\022<." + + "A\0022\365\004\n\021ErrorGroupService\022\372\001\n\010GetGroup\022<." + "google.devtools.clouderrorreporting.v1be" + "ta1.GetGroupRequest\0327.google.devtools.cl" - + "ouderrorreporting.v1beta1.ErrorGroup\">\332A" - + "\ngroup_name\202\323\344\223\002+\022)/v1beta1/{group_name=" - + "projects/*/groups/*}\022\311\001\n\013UpdateGroup\022?.g" - + "oogle.devtools.clouderrorreporting.v1bet" - + "a1.UpdateGroupRequest\0327.google.devtools." - + "clouderrorreporting.v1beta1.ErrorGroup\"@" - + "\332A\005group\202\323\344\223\0022\032)/v1beta1/{group.name=pro" - + "jects/*/groups/*}:\005group\032V\312A\"clouderrorr" - + "eporting.googleapis.com\322A.https://www.go" - + "ogleapis.com/auth/cloud-platformB\224\002\n/com" + + "ouderrorreporting.v1beta1.ErrorGroup\"w\332A" + + "\ngroup_name\202\323\344\223\002d\022)/v1beta1/{group_name=" + + "projects/*/groups/*}Z7\0225/v1beta1/{group_" + + "name=projects/*/locations/*/groups/*}\022\212\002" + + "\n\013UpdateGroup\022?.google.devtools.clouderr" + + "orreporting.v1beta1.UpdateGroupRequest\0327" + ".google.devtools.clouderrorreporting.v1b" - + "eta1B\026ErrorGroupServiceProtoP\001ZOcloud.go" - + "ogle.com/go/errorreporting/apiv1beta1/er" - + "rorreportingpb;errorreportingpb\370\001\001\252\002#Goo" - + "gle.Cloud.ErrorReporting.V1Beta1\312\002#Googl" - + "e\\Cloud\\ErrorReporting\\V1beta1\352\002&Google:" - + ":Cloud::ErrorReporting::V1beta1b\006proto3" + + "eta1.ErrorGroup\"\200\001\332A\005group\202\323\344\223\002r\032)/v1bet" + + "a1/{group.name=projects/*/groups/*}:\005gro" + + "upZ>\0325/v1beta1/{group.name=projects/*/lo" + + "cations/*/groups/*}:\005group\032V\312A\"clouderro" + + "rreporting.googleapis.com\322A.https://www." + + "googleapis.com/auth/cloud-platformB\224\002\n/c" + + "om.google.devtools.clouderrorreporting.v" + + "1beta1B\026ErrorGroupServiceProtoP\001ZOcloud." + + "google.com/go/errorreporting/apiv1beta1/" + + "errorreportingpb;errorreportingpb\370\001\001\252\002#G" + + "oogle.Cloud.ErrorReporting.V1Beta1\312\002#Goo" + + "gle\\Cloud\\ErrorReporting\\V1beta1\352\002&Googl" + + "e::Cloud::ErrorReporting::V1beta1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupStats.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupStats.java index aaf0b4ba857f..b156afe7a5f8 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupStats.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupStats.java @@ -143,7 +143,8 @@ public long getCount() { *
            * Approximate number of affected users in the given group that
            * match the filter criteria.
        -   * Users are distinguished by data in the `ErrorContext` of the
        +   * Users are distinguished by data in the [ErrorContext]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorContext] of the
            * individual error events, such as their login name or their remote
            * IP address in case of HTTP requests.
            * The number of affected users can be zero even if the number of
        @@ -1482,7 +1483,8 @@ public Builder clearCount() {
              * 
              * Approximate number of affected users in the given group that
              * match the filter criteria.
        -     * Users are distinguished by data in the `ErrorContext` of the
        +     * Users are distinguished by data in the [ErrorContext]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorContext] of the
              * individual error events, such as their login name or their remote
              * IP address in case of HTTP requests.
              * The number of affected users can be zero even if the number of
        @@ -1508,7 +1510,8 @@ public long getAffectedUsersCount() {
              * 
              * Approximate number of affected users in the given group that
              * match the filter criteria.
        -     * Users are distinguished by data in the `ErrorContext` of the
        +     * Users are distinguished by data in the [ErrorContext]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorContext] of the
              * individual error events, such as their login name or their remote
              * IP address in case of HTTP requests.
              * The number of affected users can be zero even if the number of
        @@ -1538,7 +1541,8 @@ public Builder setAffectedUsersCount(long value) {
              * 
              * Approximate number of affected users in the given group that
              * match the filter criteria.
        -     * Users are distinguished by data in the `ErrorContext` of the
        +     * Users are distinguished by data in the [ErrorContext]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorContext] of the
              * individual error events, such as their login name or their remote
              * IP address in case of HTTP requests.
              * The number of affected users can be zero even if the number of
        diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupStatsOrBuilder.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupStatsOrBuilder.java
        index a15bd5733542..f26b06e9acb3 100644
        --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupStatsOrBuilder.java
        +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupStatsOrBuilder.java
        @@ -79,7 +79,8 @@ public interface ErrorGroupStatsOrBuilder
            * 
            * Approximate number of affected users in the given group that
            * match the filter criteria.
        -   * Users are distinguished by data in the `ErrorContext` of the
        +   * Users are distinguished by data in the [ErrorContext]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorContext] of the
            * individual error events, such as their login name or their remote
            * IP address in case of HTTP requests.
            * The number of affected users can be zero even if the number of
        diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceProto.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceProto.java
        index 08036c75d6ce..d52ca3bf03bd 100644
        --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceProto.java
        +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceProto.java
        @@ -153,34 +153,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   + "IGNMENT_EQUAL_AT_END\020\002*}\n\017ErrorGroupOrde"
                   + "r\022\033\n\027GROUP_ORDER_UNSPECIFIED\020\000\022\016\n\nCOUNT_"
                   + "DESC\020\001\022\022\n\016LAST_SEEN_DESC\020\002\022\020\n\014CREATED_DE"
        -          + "SC\020\003\022\027\n\023AFFECTED_USERS_DESC\020\0042\213\006\n\021ErrorS"
        -          + "tatsService\022\352\001\n\016ListGroupStats\022B.google."
        +          + "SC\020\003\022\027\n\023AFFECTED_USERS_DESC\020\0042\274\007\n\021ErrorS"
        +          + "tatsService\022\250\002\n\016ListGroupStats\022B.google."
                   + "devtools.clouderrorreporting.v1beta1.Lis"
                   + "tGroupStatsRequest\032C.google.devtools.clo"
                   + "uderrorreporting.v1beta1.ListGroupStatsR"
        -          + "esponse\"O\332A\027project_name,time_range\202\323\344\223\002"
        -          + "/\022-/v1beta1/{project_name=projects/*}/gr"
        -          + "oupStats\022\330\001\n\nListEvents\022>.google.devtool"
        -          + "s.clouderrorreporting.v1beta1.ListEvents"
        -          + "Request\032?.google.devtools.clouderrorrepo"
        -          + "rting.v1beta1.ListEventsResponse\"I\332A\025pro"
        -          + "ject_name,group_id\202\323\344\223\002+\022)/v1beta1/{proj"
        -          + "ect_name=projects/*}/events\022\325\001\n\014DeleteEv"
        +          + "esponse\"\214\001\332A\027project_name,time_range\202\323\344\223"
        +          + "\002l\022-/v1beta1/{project_name=projects/*}/g"
        +          + "roupStatsZ;\0229/v1beta1/{project_name=proj"
        +          + "ects/*/locations/*}/groupStats\022\222\002\n\nListE"
        +          + "vents\022>.google.devtools.clouderrorreport"
        +          + "ing.v1beta1.ListEventsRequest\032?.google.d"
        +          + "evtools.clouderrorreporting.v1beta1.List"
        +          + "EventsResponse\"\202\001\332A\025project_name,group_i"
        +          + "d\202\323\344\223\002d\022)/v1beta1/{project_name=projects"
        +          + "/*}/eventsZ7\0225/v1beta1/{project_name=pro"
        +          + "jects/*/locations/*}/events\022\216\002\n\014DeleteEv"
                   + "ents\022@.google.devtools.clouderrorreporti"
                   + "ng.v1beta1.DeleteEventsRequest\032A.google."
                   + "devtools.clouderrorreporting.v1beta1.Del"
        -          + "eteEventsResponse\"@\332A\014project_name\202\323\344\223\002+"
        +          + "eteEventsResponse\"y\332A\014project_name\202\323\344\223\002d"
                   + "*)/v1beta1/{project_name=projects/*}/eve"
        -          + "nts\032V\312A\"clouderrorreporting.googleapis.c"
        -          + "om\322A.https://www.googleapis.com/auth/clo"
        -          + "ud-platformB\224\002\n/com.google.devtools.clou"
        -          + "derrorreporting.v1beta1B\026ErrorStatsServi"
        -          + "ceProtoP\001ZOcloud.google.com/go/errorrepo"
        -          + "rting/apiv1beta1/errorreportingpb;errorr"
        -          + "eportingpb\370\001\001\252\002#Google.Cloud.ErrorReport"
        -          + "ing.V1Beta1\312\002#Google\\Cloud\\ErrorReportin"
        -          + "g\\V1beta1\352\002&Google::Cloud::ErrorReportin"
        -          + "g::V1beta1b\006proto3"
        +          + "ntsZ7*5/v1beta1/{project_name=projects/*"
        +          + "/locations/*}/events\032V\312A\"clouderrorrepor"
        +          + "ting.googleapis.com\322A.https://www.google"
        +          + "apis.com/auth/cloud-platformB\224\002\n/com.goo"
        +          + "gle.devtools.clouderrorreporting.v1beta1"
        +          + "B\026ErrorStatsServiceProtoP\001ZOcloud.google"
        +          + ".com/go/errorreporting/apiv1beta1/errorr"
        +          + "eportingpb;errorreportingpb\370\001\001\252\002#Google."
        +          + "Cloud.ErrorReporting.V1Beta1\312\002#Google\\Cl"
        +          + "oud\\ErrorReporting\\V1beta1\352\002&Google::Clo"
        +          + "ud::ErrorReporting::V1beta1b\006proto3"
             };
             descriptor =
                 com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
        diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/GetGroupRequest.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/GetGroupRequest.java
        index f02f08062428..98fec4fa0974 100644
        --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/GetGroupRequest.java
        +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/GetGroupRequest.java
        @@ -71,12 +71,25 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            *
            *
            * 
        -   * Required. The group resource name. Written as
        -   * `projects/{projectID}/groups/{group_name}`. Call
        -   * [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
        +   * Required. The group resource name. Written as either
        +   * `projects/{projectID}/groups/{group_id}` or
        +   * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call
        +   * [groupStats.list]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats]
            * to return a list of groups belonging to this project.
            *
        -   * Example: `projects/my-project-123/groups/my-group`
        +   * Examples: `projects/my-project-123/groups/my-group`,
        +   * `projects/my-project-123/locations/global/groups/my-group`
        +   *
        +   * In the group resource name, the `group_id` is a unique identifier for a
        +   * particular error group. The identifier is derived from key parts of the
        +   * error-log content and is treated as Service Data. For information about
        +   * how Service Data is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * @@ -101,12 +114,25 @@ public java.lang.String getGroupName() { * * *
        -   * Required. The group resource name. Written as
        -   * `projects/{projectID}/groups/{group_name}`. Call
        -   * [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
        +   * Required. The group resource name. Written as either
        +   * `projects/{projectID}/groups/{group_id}` or
        +   * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call
        +   * [groupStats.list]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats]
            * to return a list of groups belonging to this project.
            *
        -   * Example: `projects/my-project-123/groups/my-group`
        +   * Examples: `projects/my-project-123/groups/my-group`,
        +   * `projects/my-project-123/locations/global/groups/my-group`
        +   *
        +   * In the group resource name, the `group_id` is a unique identifier for a
        +   * particular error group. The identifier is derived from key parts of the
        +   * error-log content and is treated as Service Data. For information about
        +   * how Service Data is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * @@ -480,12 +506,25 @@ public Builder mergeFrom( * * *
        -     * Required. The group resource name. Written as
        -     * `projects/{projectID}/groups/{group_name}`. Call
        -     * [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
        +     * Required. The group resource name. Written as either
        +     * `projects/{projectID}/groups/{group_id}` or
        +     * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call
        +     * [groupStats.list]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats]
              * to return a list of groups belonging to this project.
              *
        -     * Example: `projects/my-project-123/groups/my-group`
        +     * Examples: `projects/my-project-123/groups/my-group`,
        +     * `projects/my-project-123/locations/global/groups/my-group`
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * @@ -509,12 +548,25 @@ public java.lang.String getGroupName() { * * *
        -     * Required. The group resource name. Written as
        -     * `projects/{projectID}/groups/{group_name}`. Call
        -     * [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
        +     * Required. The group resource name. Written as either
        +     * `projects/{projectID}/groups/{group_id}` or
        +     * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call
        +     * [groupStats.list]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats]
              * to return a list of groups belonging to this project.
              *
        -     * Example: `projects/my-project-123/groups/my-group`
        +     * Examples: `projects/my-project-123/groups/my-group`,
        +     * `projects/my-project-123/locations/global/groups/my-group`
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * @@ -538,12 +590,25 @@ public com.google.protobuf.ByteString getGroupNameBytes() { * * *
        -     * Required. The group resource name. Written as
        -     * `projects/{projectID}/groups/{group_name}`. Call
        -     * [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
        +     * Required. The group resource name. Written as either
        +     * `projects/{projectID}/groups/{group_id}` or
        +     * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call
        +     * [groupStats.list]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats]
              * to return a list of groups belonging to this project.
              *
        -     * Example: `projects/my-project-123/groups/my-group`
        +     * Examples: `projects/my-project-123/groups/my-group`,
        +     * `projects/my-project-123/locations/global/groups/my-group`
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * @@ -566,12 +631,25 @@ public Builder setGroupName(java.lang.String value) { * * *
        -     * Required. The group resource name. Written as
        -     * `projects/{projectID}/groups/{group_name}`. Call
        -     * [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
        +     * Required. The group resource name. Written as either
        +     * `projects/{projectID}/groups/{group_id}` or
        +     * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call
        +     * [groupStats.list]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats]
              * to return a list of groups belonging to this project.
              *
        -     * Example: `projects/my-project-123/groups/my-group`
        +     * Examples: `projects/my-project-123/groups/my-group`,
        +     * `projects/my-project-123/locations/global/groups/my-group`
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * @@ -590,12 +668,25 @@ public Builder clearGroupName() { * * *
        -     * Required. The group resource name. Written as
        -     * `projects/{projectID}/groups/{group_name}`. Call
        -     * [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
        +     * Required. The group resource name. Written as either
        +     * `projects/{projectID}/groups/{group_id}` or
        +     * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call
        +     * [groupStats.list]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats]
              * to return a list of groups belonging to this project.
              *
        -     * Example: `projects/my-project-123/groups/my-group`
        +     * Examples: `projects/my-project-123/groups/my-group`,
        +     * `projects/my-project-123/locations/global/groups/my-group`
        +     *
        +     * In the group resource name, the `group_id` is a unique identifier for a
        +     * particular error group. The identifier is derived from key parts of the
        +     * error-log content and is treated as Service Data. For information about
        +     * how Service Data is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/GetGroupRequestOrBuilder.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/GetGroupRequestOrBuilder.java index 9b2a442d12fc..0f3420505f10 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/GetGroupRequestOrBuilder.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/GetGroupRequestOrBuilder.java @@ -28,12 +28,25 @@ public interface GetGroupRequestOrBuilder * * *
        -   * Required. The group resource name. Written as
        -   * `projects/{projectID}/groups/{group_name}`. Call
        -   * [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
        +   * Required. The group resource name. Written as either
        +   * `projects/{projectID}/groups/{group_id}` or
        +   * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call
        +   * [groupStats.list]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats]
            * to return a list of groups belonging to this project.
            *
        -   * Example: `projects/my-project-123/groups/my-group`
        +   * Examples: `projects/my-project-123/groups/my-group`,
        +   * `projects/my-project-123/locations/global/groups/my-group`
        +   *
        +   * In the group resource name, the `group_id` is a unique identifier for a
        +   * particular error group. The identifier is derived from key parts of the
        +   * error-log content and is treated as Service Data. For information about
        +   * how Service Data is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * @@ -47,12 +60,25 @@ public interface GetGroupRequestOrBuilder * * *
        -   * Required. The group resource name. Written as
        -   * `projects/{projectID}/groups/{group_name}`. Call
        -   * [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
        +   * Required. The group resource name. Written as either
        +   * `projects/{projectID}/groups/{group_id}` or
        +   * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call
        +   * [groupStats.list]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats]
            * to return a list of groups belonging to this project.
            *
        -   * Example: `projects/my-project-123/groups/my-group`
        +   * Examples: `projects/my-project-123/groups/my-group`,
        +   * `projects/my-project-123/locations/global/groups/my-group`
        +   *
        +   * In the group resource name, the `group_id` is a unique identifier for a
        +   * particular error group. The identifier is derived from key parts of the
        +   * error-log content and is treated as Service Data. For information about
        +   * how Service Data is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListEventsRequest.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListEventsRequest.java index 7a32ccb7f765..72e68fa60caa 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListEventsRequest.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListEventsRequest.java @@ -75,11 +75,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
            * Required. The resource name of the Google Cloud Platform project. Written
        -   * as `projects/{projectID}`, where `{projectID}` is the
        -   * [Google Cloud Platform project
        -   * ID](https://support.google.com/cloud/answer/6158840).
        +   * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +   * where `{projectID}` is the [Google Cloud Platform project
        +   * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +   * a Cloud region.
            *
        -   * Example: `projects/my-project-123`.
        +   * Examples: `projects/my-project-123`,
        +   * `projects/my-project-123/locations/global`.
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * @@ -105,11 +111,17 @@ public java.lang.String getProjectName() { * *
            * Required. The resource name of the Google Cloud Platform project. Written
        -   * as `projects/{projectID}`, where `{projectID}` is the
        -   * [Google Cloud Platform project
        -   * ID](https://support.google.com/cloud/answer/6158840).
        +   * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +   * where `{projectID}` is the [Google Cloud Platform project
        +   * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +   * a Cloud region.
        +   *
        +   * Examples: `projects/my-project-123`,
        +   * `projects/my-project-123/locations/global`.
            *
        -   * Example: `projects/my-project-123`.
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * @@ -140,6 +152,11 @@ public com.google.protobuf.ByteString getProjectNameBytes() { * *
            * Required. The group for which events shall be returned.
        +   * The `group_id` is a unique identifier for a particular error group. The
        +   * identifier is derived from key parts of the error-log content and is
        +   * treated as Service Data. For information about how Service Data
        +   * is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * string group_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -163,6 +180,11 @@ public java.lang.String getGroupId() { * *
            * Required. The group for which events shall be returned.
        +   * The `group_id` is a unique identifier for a particular error group. The
        +   * identifier is derived from key parts of the error-log content and is
        +   * treated as Service Data. For information about how Service Data
        +   * is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * string group_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -879,11 +901,17 @@ public Builder mergeFrom( * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}`, where `{projectID}` is the
        -     * [Google Cloud Platform project
        -     * ID](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +     * where `{projectID}` is the [Google Cloud Platform project
        +     * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +     * a Cloud region.
              *
        -     * Example: `projects/my-project-123`.
        +     * Examples: `projects/my-project-123`,
        +     * `projects/my-project-123/locations/global`.
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * @@ -908,11 +936,17 @@ public java.lang.String getProjectName() { * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}`, where `{projectID}` is the
        -     * [Google Cloud Platform project
        -     * ID](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +     * where `{projectID}` is the [Google Cloud Platform project
        +     * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +     * a Cloud region.
        +     *
        +     * Examples: `projects/my-project-123`,
        +     * `projects/my-project-123/locations/global`.
              *
        -     * Example: `projects/my-project-123`.
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * @@ -937,11 +971,17 @@ public com.google.protobuf.ByteString getProjectNameBytes() { * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}`, where `{projectID}` is the
        -     * [Google Cloud Platform project
        -     * ID](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +     * where `{projectID}` is the [Google Cloud Platform project
        +     * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +     * a Cloud region.
              *
        -     * Example: `projects/my-project-123`.
        +     * Examples: `projects/my-project-123`,
        +     * `projects/my-project-123/locations/global`.
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * @@ -965,11 +1005,17 @@ public Builder setProjectName(java.lang.String value) { * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}`, where `{projectID}` is the
        -     * [Google Cloud Platform project
        -     * ID](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +     * where `{projectID}` is the [Google Cloud Platform project
        +     * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +     * a Cloud region.
        +     *
        +     * Examples: `projects/my-project-123`,
        +     * `projects/my-project-123/locations/global`.
              *
        -     * Example: `projects/my-project-123`.
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * @@ -989,11 +1035,17 @@ public Builder clearProjectName() { * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}`, where `{projectID}` is the
        -     * [Google Cloud Platform project
        -     * ID](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +     * where `{projectID}` is the [Google Cloud Platform project
        +     * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +     * a Cloud region.
        +     *
        +     * Examples: `projects/my-project-123`,
        +     * `projects/my-project-123/locations/global`.
              *
        -     * Example: `projects/my-project-123`.
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified.
              * 
        * * @@ -1020,6 +1072,11 @@ public Builder setProjectNameBytes(com.google.protobuf.ByteString value) { * *
              * Required. The group for which events shall be returned.
        +     * The `group_id` is a unique identifier for a particular error group. The
        +     * identifier is derived from key parts of the error-log content and is
        +     * treated as Service Data. For information about how Service Data
        +     * is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * string group_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1042,6 +1099,11 @@ public java.lang.String getGroupId() { * *
              * Required. The group for which events shall be returned.
        +     * The `group_id` is a unique identifier for a particular error group. The
        +     * identifier is derived from key parts of the error-log content and is
        +     * treated as Service Data. For information about how Service Data
        +     * is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * string group_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1064,6 +1126,11 @@ public com.google.protobuf.ByteString getGroupIdBytes() { * *
              * Required. The group for which events shall be returned.
        +     * The `group_id` is a unique identifier for a particular error group. The
        +     * identifier is derived from key parts of the error-log content and is
        +     * treated as Service Data. For information about how Service Data
        +     * is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * string group_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1085,6 +1152,11 @@ public Builder setGroupId(java.lang.String value) { * *
              * Required. The group for which events shall be returned.
        +     * The `group_id` is a unique identifier for a particular error group. The
        +     * identifier is derived from key parts of the error-log content and is
        +     * treated as Service Data. For information about how Service Data
        +     * is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * string group_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1102,6 +1174,11 @@ public Builder clearGroupId() { * *
              * Required. The group for which events shall be returned.
        +     * The `group_id` is a unique identifier for a particular error group. The
        +     * identifier is derived from key parts of the error-log content and is
        +     * treated as Service Data. For information about how Service Data
        +     * is handled, see [Google Cloud Privacy
        +     * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * string group_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListEventsRequestOrBuilder.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListEventsRequestOrBuilder.java index c9827826cf96..9adaf2effbe5 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListEventsRequestOrBuilder.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListEventsRequestOrBuilder.java @@ -29,11 +29,17 @@ public interface ListEventsRequestOrBuilder * *
            * Required. The resource name of the Google Cloud Platform project. Written
        -   * as `projects/{projectID}`, where `{projectID}` is the
        -   * [Google Cloud Platform project
        -   * ID](https://support.google.com/cloud/answer/6158840).
        +   * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +   * where `{projectID}` is the [Google Cloud Platform project
        +   * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +   * a Cloud region.
            *
        -   * Example: `projects/my-project-123`.
        +   * Examples: `projects/my-project-123`,
        +   * `projects/my-project-123/locations/global`.
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * @@ -48,11 +54,17 @@ public interface ListEventsRequestOrBuilder * *
            * Required. The resource name of the Google Cloud Platform project. Written
        -   * as `projects/{projectID}`, where `{projectID}` is the
        -   * [Google Cloud Platform project
        -   * ID](https://support.google.com/cloud/answer/6158840).
        +   * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
        +   * where `{projectID}` is the [Google Cloud Platform project
        +   * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
        +   * a Cloud region.
        +   *
        +   * Examples: `projects/my-project-123`,
        +   * `projects/my-project-123/locations/global`.
            *
        -   * Example: `projects/my-project-123`.
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified.
            * 
        * * @@ -68,6 +80,11 @@ public interface ListEventsRequestOrBuilder * *
            * Required. The group for which events shall be returned.
        +   * The `group_id` is a unique identifier for a particular error group. The
        +   * identifier is derived from key parts of the error-log content and is
        +   * treated as Service Data. For information about how Service Data
        +   * is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * string group_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -80,6 +97,11 @@ public interface ListEventsRequestOrBuilder * *
            * Required. The group for which events shall be returned.
        +   * The `group_id` is a unique identifier for a particular error group. The
        +   * identifier is derived from key parts of the error-log content and is
        +   * treated as Service Data. For information about how Service Data
        +   * is handled, see [Google Cloud Privacy
        +   * Notice](https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * string group_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListGroupStatsRequest.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListGroupStatsRequest.java index 04cf95fce256..383fa36207f6 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListGroupStatsRequest.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListGroupStatsRequest.java @@ -77,11 +77,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
            * Required. The resource name of the Google Cloud Platform project. Written
        -   * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
        -   * and `{projectNumber}` can be found in the
        -   * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
        -   *
        -   * Examples: `projects/my-project-123`, `projects/5551234`.
        +   * as `projects/{projectID}` or `projects/{projectNumber}`, where
        +   * `{projectID}` and `{projectNumber}` can be found in the
        +   * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
        +   * It may also include a location, such as
        +   * `projects/{projectID}/locations/{location}` where `{location}` is a cloud
        +   * region.
        +   *
        +   * Examples: `projects/my-project-123`, `projects/5551234`,
        +   * `projects/my-project-123/locations/us-central1`,
        +   * `projects/5551234/locations/us-central1`.
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified. Use `-` as a wildcard to request group stats
        +   * from all regions.
            * 
        * * @@ -107,11 +117,21 @@ public java.lang.String getProjectName() { * *
            * Required. The resource name of the Google Cloud Platform project. Written
        -   * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
        -   * and `{projectNumber}` can be found in the
        -   * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
        -   *
        -   * Examples: `projects/my-project-123`, `projects/5551234`.
        +   * as `projects/{projectID}` or `projects/{projectNumber}`, where
        +   * `{projectID}` and `{projectNumber}` can be found in the
        +   * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
        +   * It may also include a location, such as
        +   * `projects/{projectID}/locations/{location}` where `{location}` is a cloud
        +   * region.
        +   *
        +   * Examples: `projects/my-project-123`, `projects/5551234`,
        +   * `projects/my-project-123/locations/us-central1`,
        +   * `projects/5551234/locations/us-central1`.
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified. Use `-` as a wildcard to request group stats
        +   * from all regions.
            * 
        * * @@ -142,7 +162,13 @@ public com.google.protobuf.ByteString getProjectNameBytes() { * * *
        -   * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +   * Optional. List all [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +   * IDs. The `group_id` is a unique identifier for a particular error group.
        +   * The identifier is derived from key parts of the error-log content and is
        +   * treated as Service Data. For information about how Service Data
        +   * is handled, see [Google Cloud Privacy Notice]
        +   * (https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -156,7 +182,13 @@ public com.google.protobuf.ProtocolStringList getGroupIdList() { * * *
        -   * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +   * Optional. List all [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +   * IDs. The `group_id` is a unique identifier for a particular error group.
        +   * The identifier is derived from key parts of the error-log content and is
        +   * treated as Service Data. For information about how Service Data
        +   * is handled, see [Google Cloud Privacy Notice]
        +   * (https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -170,7 +202,13 @@ public int getGroupIdCount() { * * *
        -   * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +   * Optional. List all [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +   * IDs. The `group_id` is a unique identifier for a particular error group.
        +   * The identifier is derived from key parts of the error-log content and is
        +   * treated as Service Data. For information about how Service Data
        +   * is handled, see [Google Cloud Privacy Notice]
        +   * (https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -185,7 +223,13 @@ public java.lang.String getGroupId(int index) { * * *
        -   * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +   * Optional. List all [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +   * IDs. The `group_id` is a unique identifier for a particular error group.
        +   * The identifier is derived from key parts of the error-log content and is
        +   * treated as Service Data. For information about how Service Data
        +   * is handled, see [Google Cloud Privacy Notice]
        +   * (https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -203,9 +247,10 @@ public com.google.protobuf.ByteString getGroupIdBytes(int index) { * * *
        -   * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -   * context that matches the filter.
        -   * Data for all service contexts is returned if this field is not specified.
        +   * Optional. List only [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +   * to a service context that matches the filter. Data for all service contexts
        +   * is returned if this field is not specified.
            * 
        * * @@ -222,9 +267,10 @@ public boolean hasServiceFilter() { * * *
        -   * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -   * context that matches the filter.
        -   * Data for all service contexts is returned if this field is not specified.
        +   * Optional. List only [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +   * to a service context that matches the filter. Data for all service contexts
        +   * is returned if this field is not specified.
            * 
        * * @@ -243,9 +289,10 @@ public com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter getS * * *
        -   * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -   * context that matches the filter.
        -   * Data for all service contexts is returned if this field is not specified.
        +   * Optional. List only [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +   * to a service context that matches the filter. Data for all service contexts
        +   * is returned if this field is not specified.
            * 
        * * @@ -268,12 +315,19 @@ public com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter getS *
            * Optional. List data for the given time range.
            * If not set, a default time range is used. The field
        -   * <code>time_range_begin</code> in the response will specify the beginning
        -   * of this time range.
        -   * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -   * range are returned, unless the request contains an explicit
        -   * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -   * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +   * [time_range_begin]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +   * in the response will specify the beginning of this time range. Only
        +   * [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +   * non-zero count in the given time range are returned, unless the request
        +   * contains an explicit [group_id]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +   * list. If a [group_id]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +   * list is given, also [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +   * occurrences are returned.
            * 
        * * @@ -292,12 +346,19 @@ public boolean hasTimeRange() { *
            * Optional. List data for the given time range.
            * If not set, a default time range is used. The field
        -   * <code>time_range_begin</code> in the response will specify the beginning
        -   * of this time range.
        -   * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -   * range are returned, unless the request contains an explicit
        -   * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -   * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +   * [time_range_begin]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +   * in the response will specify the beginning of this time range. Only
        +   * [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +   * non-zero count in the given time range are returned, unless the request
        +   * contains an explicit [group_id]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +   * list. If a [group_id]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +   * list is given, also [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +   * occurrences are returned.
            * 
        * * @@ -318,12 +379,19 @@ public com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange getTimeRan *
            * Optional. List data for the given time range.
            * If not set, a default time range is used. The field
        -   * <code>time_range_begin</code> in the response will specify the beginning
        -   * of this time range.
        -   * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -   * range are returned, unless the request contains an explicit
        -   * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -   * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +   * [time_range_begin]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +   * in the response will specify the beginning of this time range. Only
        +   * [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +   * non-zero count in the given time range are returned, unless the request
        +   * contains an explicit [group_id]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +   * list. If a [group_id]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +   * list is given, also [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +   * occurrences are returned.
            * 
        * * @@ -344,8 +412,9 @@ public com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange getTimeRan * * *
        -   * Optional. The preferred duration for a single returned `TimedCount`.
        -   * If not set, no timed counts are returned.
        +   * Optional. The preferred duration for a single returned [TimedCount]
        +   * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +   * timed counts are returned.
            * 
        * * @@ -362,8 +431,9 @@ public boolean hasTimedCountDuration() { * * *
        -   * Optional. The preferred duration for a single returned `TimedCount`.
        -   * If not set, no timed counts are returned.
        +   * Optional. The preferred duration for a single returned [TimedCount]
        +   * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +   * timed counts are returned.
            * 
        * * @@ -382,8 +452,9 @@ public com.google.protobuf.Duration getTimedCountDuration() { * * *
        -   * Optional. The preferred duration for a single returned `TimedCount`.
        -   * If not set, no timed counts are returned.
        +   * Optional. The preferred duration for a single returned [TimedCount]
        +   * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +   * timed counts are returned.
            * 
        * * @@ -566,9 +637,10 @@ public int getPageSize() { * * *
        -   * Optional. A `next_page_token` provided by a previous response. To view
        -   * additional results, pass this token along with the identical query
        -   * parameters as the first request.
        +   * Optional. A [next_page_token]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token]
        +   * provided by a previous response. To view additional results, pass this
        +   * token along with the identical query parameters as the first request.
            * 
        * * string page_token = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -591,9 +663,10 @@ public java.lang.String getPageToken() { * * *
        -   * Optional. A `next_page_token` provided by a previous response. To view
        -   * additional results, pass this token along with the identical query
        -   * parameters as the first request.
        +   * Optional. A [next_page_token]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token]
        +   * provided by a previous response. To view additional results, pass this
        +   * token along with the identical query parameters as the first request.
            * 
        * * string page_token = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -1256,11 +1329,21 @@ public Builder mergeFrom( * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
        -     * and `{projectNumber}` can be found in the
        -     * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectNumber}`, where
        +     * `{projectID}` and `{projectNumber}` can be found in the
        +     * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
        +     * It may also include a location, such as
        +     * `projects/{projectID}/locations/{location}` where `{location}` is a cloud
        +     * region.
              *
        -     * Examples: `projects/my-project-123`, `projects/5551234`.
        +     * Examples: `projects/my-project-123`, `projects/5551234`,
        +     * `projects/my-project-123/locations/us-central1`,
        +     * `projects/5551234/locations/us-central1`.
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified. Use `-` as a wildcard to request group stats
        +     * from all regions.
              * 
        * * @@ -1285,11 +1368,21 @@ public java.lang.String getProjectName() { * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
        -     * and `{projectNumber}` can be found in the
        -     * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectNumber}`, where
        +     * `{projectID}` and `{projectNumber}` can be found in the
        +     * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
        +     * It may also include a location, such as
        +     * `projects/{projectID}/locations/{location}` where `{location}` is a cloud
        +     * region.
        +     *
        +     * Examples: `projects/my-project-123`, `projects/5551234`,
        +     * `projects/my-project-123/locations/us-central1`,
        +     * `projects/5551234/locations/us-central1`.
              *
        -     * Examples: `projects/my-project-123`, `projects/5551234`.
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified. Use `-` as a wildcard to request group stats
        +     * from all regions.
              * 
        * * @@ -1314,11 +1407,21 @@ public com.google.protobuf.ByteString getProjectNameBytes() { * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
        -     * and `{projectNumber}` can be found in the
        -     * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectNumber}`, where
        +     * `{projectID}` and `{projectNumber}` can be found in the
        +     * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
        +     * It may also include a location, such as
        +     * `projects/{projectID}/locations/{location}` where `{location}` is a cloud
        +     * region.
              *
        -     * Examples: `projects/my-project-123`, `projects/5551234`.
        +     * Examples: `projects/my-project-123`, `projects/5551234`,
        +     * `projects/my-project-123/locations/us-central1`,
        +     * `projects/5551234/locations/us-central1`.
        +     *
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified. Use `-` as a wildcard to request group stats
        +     * from all regions.
              * 
        * * @@ -1342,11 +1445,21 @@ public Builder setProjectName(java.lang.String value) { * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
        -     * and `{projectNumber}` can be found in the
        -     * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectNumber}`, where
        +     * `{projectID}` and `{projectNumber}` can be found in the
        +     * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
        +     * It may also include a location, such as
        +     * `projects/{projectID}/locations/{location}` where `{location}` is a cloud
        +     * region.
        +     *
        +     * Examples: `projects/my-project-123`, `projects/5551234`,
        +     * `projects/my-project-123/locations/us-central1`,
        +     * `projects/5551234/locations/us-central1`.
              *
        -     * Examples: `projects/my-project-123`, `projects/5551234`.
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified. Use `-` as a wildcard to request group stats
        +     * from all regions.
              * 
        * * @@ -1366,11 +1479,21 @@ public Builder clearProjectName() { * *
              * Required. The resource name of the Google Cloud Platform project. Written
        -     * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
        -     * and `{projectNumber}` can be found in the
        -     * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
        +     * as `projects/{projectID}` or `projects/{projectNumber}`, where
        +     * `{projectID}` and `{projectNumber}` can be found in the
        +     * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
        +     * It may also include a location, such as
        +     * `projects/{projectID}/locations/{location}` where `{location}` is a cloud
        +     * region.
        +     *
        +     * Examples: `projects/my-project-123`, `projects/5551234`,
        +     * `projects/my-project-123/locations/us-central1`,
        +     * `projects/5551234/locations/us-central1`.
              *
        -     * Examples: `projects/my-project-123`, `projects/5551234`.
        +     * For a list of supported locations, see [Supported
        +     * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +     * the default when unspecified. Use `-` as a wildcard to request group stats
        +     * from all regions.
              * 
        * * @@ -1404,7 +1527,13 @@ private void ensureGroupIdIsMutable() { * * *
        -     * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +     * Optional. List all [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +     * IDs. The `group_id` is a unique identifier for a particular error group.
        +     * The identifier is derived from key parts of the error-log content and is
        +     * treated as Service Data. For information about how Service Data
        +     * is handled, see [Google Cloud Privacy Notice]
        +     * (https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1419,7 +1548,13 @@ public com.google.protobuf.ProtocolStringList getGroupIdList() { * * *
        -     * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +     * Optional. List all [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +     * IDs. The `group_id` is a unique identifier for a particular error group.
        +     * The identifier is derived from key parts of the error-log content and is
        +     * treated as Service Data. For information about how Service Data
        +     * is handled, see [Google Cloud Privacy Notice]
        +     * (https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1433,7 +1568,13 @@ public int getGroupIdCount() { * * *
        -     * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +     * Optional. List all [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +     * IDs. The `group_id` is a unique identifier for a particular error group.
        +     * The identifier is derived from key parts of the error-log content and is
        +     * treated as Service Data. For information about how Service Data
        +     * is handled, see [Google Cloud Privacy Notice]
        +     * (https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1448,7 +1589,13 @@ public java.lang.String getGroupId(int index) { * * *
        -     * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +     * Optional. List all [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +     * IDs. The `group_id` is a unique identifier for a particular error group.
        +     * The identifier is derived from key parts of the error-log content and is
        +     * treated as Service Data. For information about how Service Data
        +     * is handled, see [Google Cloud Privacy Notice]
        +     * (https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1463,7 +1610,13 @@ public com.google.protobuf.ByteString getGroupIdBytes(int index) { * * *
        -     * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +     * Optional. List all [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +     * IDs. The `group_id` is a unique identifier for a particular error group.
        +     * The identifier is derived from key parts of the error-log content and is
        +     * treated as Service Data. For information about how Service Data
        +     * is handled, see [Google Cloud Privacy Notice]
        +     * (https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1486,7 +1639,13 @@ public Builder setGroupId(int index, java.lang.String value) { * * *
        -     * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +     * Optional. List all [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +     * IDs. The `group_id` is a unique identifier for a particular error group.
        +     * The identifier is derived from key parts of the error-log content and is
        +     * treated as Service Data. For information about how Service Data
        +     * is handled, see [Google Cloud Privacy Notice]
        +     * (https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1508,7 +1667,13 @@ public Builder addGroupId(java.lang.String value) { * * *
        -     * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +     * Optional. List all [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +     * IDs. The `group_id` is a unique identifier for a particular error group.
        +     * The identifier is derived from key parts of the error-log content and is
        +     * treated as Service Data. For information about how Service Data
        +     * is handled, see [Google Cloud Privacy Notice]
        +     * (https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1527,7 +1692,13 @@ public Builder addAllGroupId(java.lang.Iterable values) { * * *
        -     * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +     * Optional. List all [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +     * IDs. The `group_id` is a unique identifier for a particular error group.
        +     * The identifier is derived from key parts of the error-log content and is
        +     * treated as Service Data. For information about how Service Data
        +     * is handled, see [Google Cloud Privacy Notice]
        +     * (https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1545,7 +1716,13 @@ public Builder clearGroupId() { * * *
        -     * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +     * Optional. List all [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +     * IDs. The `group_id` is a unique identifier for a particular error group.
        +     * The identifier is derived from key parts of the error-log content and is
        +     * treated as Service Data. For information about how Service Data
        +     * is handled, see [Google Cloud Privacy Notice]
        +     * (https://cloud.google.com/terms/cloud-privacy-notice).
              * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1575,9 +1752,10 @@ public Builder addGroupIdBytes(com.google.protobuf.ByteString value) { * * *
        -     * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -     * context that matches the filter.
        -     * Data for all service contexts is returned if this field is not specified.
        +     * Optional. List only [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +     * to a service context that matches the filter. Data for all service contexts
        +     * is returned if this field is not specified.
              * 
        * * @@ -1593,9 +1771,10 @@ public boolean hasServiceFilter() { * * *
        -     * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -     * context that matches the filter.
        -     * Data for all service contexts is returned if this field is not specified.
        +     * Optional. List only [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +     * to a service context that matches the filter. Data for all service contexts
        +     * is returned if this field is not specified.
              * 
        * * @@ -1618,9 +1797,10 @@ public com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter getS * * *
        -     * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -     * context that matches the filter.
        -     * Data for all service contexts is returned if this field is not specified.
        +     * Optional. List only [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +     * to a service context that matches the filter. Data for all service contexts
        +     * is returned if this field is not specified.
              * 
        * * @@ -1645,9 +1825,10 @@ public Builder setServiceFilter( * * *
        -     * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -     * context that matches the filter.
        -     * Data for all service contexts is returned if this field is not specified.
        +     * Optional. List only [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +     * to a service context that matches the filter. Data for all service contexts
        +     * is returned if this field is not specified.
              * 
        * * @@ -1670,9 +1851,10 @@ public Builder setServiceFilter( * * *
        -     * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -     * context that matches the filter.
        -     * Data for all service contexts is returned if this field is not specified.
        +     * Optional. List only [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +     * to a service context that matches the filter. Data for all service contexts
        +     * is returned if this field is not specified.
              * 
        * * @@ -1704,9 +1886,10 @@ public Builder mergeServiceFilter( * * *
        -     * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -     * context that matches the filter.
        -     * Data for all service contexts is returned if this field is not specified.
        +     * Optional. List only [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +     * to a service context that matches the filter. Data for all service contexts
        +     * is returned if this field is not specified.
              * 
        * * @@ -1727,9 +1910,10 @@ public Builder clearServiceFilter() { * * *
        -     * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -     * context that matches the filter.
        -     * Data for all service contexts is returned if this field is not specified.
        +     * Optional. List only [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +     * to a service context that matches the filter. Data for all service contexts
        +     * is returned if this field is not specified.
              * 
        * * @@ -1746,9 +1930,10 @@ public Builder clearServiceFilter() { * * *
        -     * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -     * context that matches the filter.
        -     * Data for all service contexts is returned if this field is not specified.
        +     * Optional. List only [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +     * to a service context that matches the filter. Data for all service contexts
        +     * is returned if this field is not specified.
              * 
        * * @@ -1770,9 +1955,10 @@ public Builder clearServiceFilter() { * * *
        -     * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -     * context that matches the filter.
        -     * Data for all service contexts is returned if this field is not specified.
        +     * Optional. List only [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +     * to a service context that matches the filter. Data for all service contexts
        +     * is returned if this field is not specified.
              * 
        * * @@ -1808,12 +1994,19 @@ public Builder clearServiceFilter() { *
              * Optional. List data for the given time range.
              * If not set, a default time range is used. The field
        -     * <code>time_range_begin</code> in the response will specify the beginning
        -     * of this time range.
        -     * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -     * range are returned, unless the request contains an explicit
        -     * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -     * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +     * [time_range_begin]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +     * in the response will specify the beginning of this time range. Only
        +     * [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +     * non-zero count in the given time range are returned, unless the request
        +     * contains an explicit [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list. If a [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list is given, also [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +     * occurrences are returned.
              * 
        * * @@ -1831,12 +2024,19 @@ public boolean hasTimeRange() { *
              * Optional. List data for the given time range.
              * If not set, a default time range is used. The field
        -     * <code>time_range_begin</code> in the response will specify the beginning
        -     * of this time range.
        -     * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -     * range are returned, unless the request contains an explicit
        -     * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -     * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +     * [time_range_begin]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +     * in the response will specify the beginning of this time range. Only
        +     * [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +     * non-zero count in the given time range are returned, unless the request
        +     * contains an explicit [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list. If a [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list is given, also [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +     * occurrences are returned.
              * 
        * * @@ -1860,12 +2060,19 @@ public com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange getTimeRan *
              * Optional. List data for the given time range.
              * If not set, a default time range is used. The field
        -     * <code>time_range_begin</code> in the response will specify the beginning
        -     * of this time range.
        -     * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -     * range are returned, unless the request contains an explicit
        -     * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -     * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +     * [time_range_begin]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +     * in the response will specify the beginning of this time range. Only
        +     * [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +     * non-zero count in the given time range are returned, unless the request
        +     * contains an explicit [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list. If a [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list is given, also [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +     * occurrences are returned.
              * 
        * * @@ -1892,12 +2099,19 @@ public Builder setTimeRange( *
              * Optional. List data for the given time range.
              * If not set, a default time range is used. The field
        -     * <code>time_range_begin</code> in the response will specify the beginning
        -     * of this time range.
        -     * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -     * range are returned, unless the request contains an explicit
        -     * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -     * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +     * [time_range_begin]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +     * in the response will specify the beginning of this time range. Only
        +     * [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +     * non-zero count in the given time range are returned, unless the request
        +     * contains an explicit [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list. If a [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list is given, also [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +     * occurrences are returned.
              * 
        * * @@ -1921,12 +2135,19 @@ public Builder setTimeRange( *
              * Optional. List data for the given time range.
              * If not set, a default time range is used. The field
        -     * <code>time_range_begin</code> in the response will specify the beginning
        -     * of this time range.
        -     * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -     * range are returned, unless the request contains an explicit
        -     * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -     * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +     * [time_range_begin]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +     * in the response will specify the beginning of this time range. Only
        +     * [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +     * non-zero count in the given time range are returned, unless the request
        +     * contains an explicit [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list. If a [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list is given, also [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +     * occurrences are returned.
              * 
        * * @@ -1960,12 +2181,19 @@ public Builder mergeTimeRange( *
              * Optional. List data for the given time range.
              * If not set, a default time range is used. The field
        -     * <code>time_range_begin</code> in the response will specify the beginning
        -     * of this time range.
        -     * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -     * range are returned, unless the request contains an explicit
        -     * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -     * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +     * [time_range_begin]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +     * in the response will specify the beginning of this time range. Only
        +     * [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +     * non-zero count in the given time range are returned, unless the request
        +     * contains an explicit [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list. If a [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list is given, also [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +     * occurrences are returned.
              * 
        * * @@ -1988,12 +2216,19 @@ public Builder clearTimeRange() { *
              * Optional. List data for the given time range.
              * If not set, a default time range is used. The field
        -     * <code>time_range_begin</code> in the response will specify the beginning
        -     * of this time range.
        -     * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -     * range are returned, unless the request contains an explicit
        -     * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -     * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +     * [time_range_begin]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +     * in the response will specify the beginning of this time range. Only
        +     * [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +     * non-zero count in the given time range are returned, unless the request
        +     * contains an explicit [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list. If a [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list is given, also [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +     * occurrences are returned.
              * 
        * * @@ -2012,12 +2247,19 @@ public Builder clearTimeRange() { *
              * Optional. List data for the given time range.
              * If not set, a default time range is used. The field
        -     * <code>time_range_begin</code> in the response will specify the beginning
        -     * of this time range.
        -     * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -     * range are returned, unless the request contains an explicit
        -     * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -     * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +     * [time_range_begin]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +     * in the response will specify the beginning of this time range. Only
        +     * [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +     * non-zero count in the given time range are returned, unless the request
        +     * contains an explicit [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list. If a [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list is given, also [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +     * occurrences are returned.
              * 
        * * @@ -2040,12 +2282,19 @@ public Builder clearTimeRange() { *
              * Optional. List data for the given time range.
              * If not set, a default time range is used. The field
        -     * <code>time_range_begin</code> in the response will specify the beginning
        -     * of this time range.
        -     * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -     * range are returned, unless the request contains an explicit
        -     * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -     * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +     * [time_range_begin]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +     * in the response will specify the beginning of this time range. Only
        +     * [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +     * non-zero count in the given time range are returned, unless the request
        +     * contains an explicit [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list. If a [group_id]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +     * list is given, also [ErrorGroupStats]
        +     * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +     * occurrences are returned.
              * 
        * * @@ -2079,8 +2328,9 @@ public Builder clearTimeRange() { * * *
        -     * Optional. The preferred duration for a single returned `TimedCount`.
        -     * If not set, no timed counts are returned.
        +     * Optional. The preferred duration for a single returned [TimedCount]
        +     * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +     * timed counts are returned.
              * 
        * * @@ -2096,8 +2346,9 @@ public boolean hasTimedCountDuration() { * * *
        -     * Optional. The preferred duration for a single returned `TimedCount`.
        -     * If not set, no timed counts are returned.
        +     * Optional. The preferred duration for a single returned [TimedCount]
        +     * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +     * timed counts are returned.
              * 
        * * @@ -2119,8 +2370,9 @@ public com.google.protobuf.Duration getTimedCountDuration() { * * *
        -     * Optional. The preferred duration for a single returned `TimedCount`.
        -     * If not set, no timed counts are returned.
        +     * Optional. The preferred duration for a single returned [TimedCount]
        +     * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +     * timed counts are returned.
              * 
        * * @@ -2144,8 +2396,9 @@ public Builder setTimedCountDuration(com.google.protobuf.Duration value) { * * *
        -     * Optional. The preferred duration for a single returned `TimedCount`.
        -     * If not set, no timed counts are returned.
        +     * Optional. The preferred duration for a single returned [TimedCount]
        +     * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +     * timed counts are returned.
              * 
        * * @@ -2166,8 +2419,9 @@ public Builder setTimedCountDuration(com.google.protobuf.Duration.Builder builde * * *
        -     * Optional. The preferred duration for a single returned `TimedCount`.
        -     * If not set, no timed counts are returned.
        +     * Optional. The preferred duration for a single returned [TimedCount]
        +     * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +     * timed counts are returned.
              * 
        * * @@ -2196,8 +2450,9 @@ public Builder mergeTimedCountDuration(com.google.protobuf.Duration value) { * * *
        -     * Optional. The preferred duration for a single returned `TimedCount`.
        -     * If not set, no timed counts are returned.
        +     * Optional. The preferred duration for a single returned [TimedCount]
        +     * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +     * timed counts are returned.
              * 
        * * @@ -2218,8 +2473,9 @@ public Builder clearTimedCountDuration() { * * *
        -     * Optional. The preferred duration for a single returned `TimedCount`.
        -     * If not set, no timed counts are returned.
        +     * Optional. The preferred duration for a single returned [TimedCount]
        +     * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +     * timed counts are returned.
              * 
        * * @@ -2235,8 +2491,9 @@ public com.google.protobuf.Duration.Builder getTimedCountDurationBuilder() { * * *
        -     * Optional. The preferred duration for a single returned `TimedCount`.
        -     * If not set, no timed counts are returned.
        +     * Optional. The preferred duration for a single returned [TimedCount]
        +     * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +     * timed counts are returned.
              * 
        * * @@ -2256,8 +2513,9 @@ public com.google.protobuf.DurationOrBuilder getTimedCountDurationOrBuilder() { * * *
        -     * Optional. The preferred duration for a single returned `TimedCount`.
        -     * If not set, no timed counts are returned.
        +     * Optional. The preferred duration for a single returned [TimedCount]
        +     * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +     * timed counts are returned.
              * 
        * * @@ -2769,9 +3027,10 @@ public Builder clearPageSize() { * * *
        -     * Optional. A `next_page_token` provided by a previous response. To view
        -     * additional results, pass this token along with the identical query
        -     * parameters as the first request.
        +     * Optional. A [next_page_token]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token]
        +     * provided by a previous response. To view additional results, pass this
        +     * token along with the identical query parameters as the first request.
              * 
        * * string page_token = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -2793,9 +3052,10 @@ public java.lang.String getPageToken() { * * *
        -     * Optional. A `next_page_token` provided by a previous response. To view
        -     * additional results, pass this token along with the identical query
        -     * parameters as the first request.
        +     * Optional. A [next_page_token]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token]
        +     * provided by a previous response. To view additional results, pass this
        +     * token along with the identical query parameters as the first request.
              * 
        * * string page_token = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -2817,9 +3077,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
        -     * Optional. A `next_page_token` provided by a previous response. To view
        -     * additional results, pass this token along with the identical query
        -     * parameters as the first request.
        +     * Optional. A [next_page_token]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token]
        +     * provided by a previous response. To view additional results, pass this
        +     * token along with the identical query parameters as the first request.
              * 
        * * string page_token = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -2840,9 +3101,10 @@ public Builder setPageToken(java.lang.String value) { * * *
        -     * Optional. A `next_page_token` provided by a previous response. To view
        -     * additional results, pass this token along with the identical query
        -     * parameters as the first request.
        +     * Optional. A [next_page_token]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token]
        +     * provided by a previous response. To view additional results, pass this
        +     * token along with the identical query parameters as the first request.
              * 
        * * string page_token = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -2859,9 +3121,10 @@ public Builder clearPageToken() { * * *
        -     * Optional. A `next_page_token` provided by a previous response. To view
        -     * additional results, pass this token along with the identical query
        -     * parameters as the first request.
        +     * Optional. A [next_page_token]
        +     * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token]
        +     * provided by a previous response. To view additional results, pass this
        +     * token along with the identical query parameters as the first request.
              * 
        * * string page_token = 12 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListGroupStatsRequestOrBuilder.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListGroupStatsRequestOrBuilder.java index f5267283d368..f425eca8b43d 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListGroupStatsRequestOrBuilder.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ListGroupStatsRequestOrBuilder.java @@ -29,11 +29,21 @@ public interface ListGroupStatsRequestOrBuilder * *
            * Required. The resource name of the Google Cloud Platform project. Written
        -   * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
        -   * and `{projectNumber}` can be found in the
        -   * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
        -   *
        -   * Examples: `projects/my-project-123`, `projects/5551234`.
        +   * as `projects/{projectID}` or `projects/{projectNumber}`, where
        +   * `{projectID}` and `{projectNumber}` can be found in the
        +   * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
        +   * It may also include a location, such as
        +   * `projects/{projectID}/locations/{location}` where `{location}` is a cloud
        +   * region.
        +   *
        +   * Examples: `projects/my-project-123`, `projects/5551234`,
        +   * `projects/my-project-123/locations/us-central1`,
        +   * `projects/5551234/locations/us-central1`.
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified. Use `-` as a wildcard to request group stats
        +   * from all regions.
            * 
        * * @@ -48,11 +58,21 @@ public interface ListGroupStatsRequestOrBuilder * *
            * Required. The resource name of the Google Cloud Platform project. Written
        -   * as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
        -   * and `{projectNumber}` can be found in the
        -   * [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
        -   *
        -   * Examples: `projects/my-project-123`, `projects/5551234`.
        +   * as `projects/{projectID}` or `projects/{projectNumber}`, where
        +   * `{projectID}` and `{projectNumber}` can be found in the
        +   * [Google Cloud console](https://support.google.com/cloud/answer/6158840).
        +   * It may also include a location, such as
        +   * `projects/{projectID}/locations/{location}` where `{location}` is a cloud
        +   * region.
        +   *
        +   * Examples: `projects/my-project-123`, `projects/5551234`,
        +   * `projects/my-project-123/locations/us-central1`,
        +   * `projects/5551234/locations/us-central1`.
        +   *
        +   * For a list of supported locations, see [Supported
        +   * Regions](https://cloud.google.com/logging/docs/region-support). `global` is
        +   * the default when unspecified. Use `-` as a wildcard to request group stats
        +   * from all regions.
            * 
        * * @@ -67,7 +87,13 @@ public interface ListGroupStatsRequestOrBuilder * * *
        -   * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +   * Optional. List all [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +   * IDs. The `group_id` is a unique identifier for a particular error group.
        +   * The identifier is derived from key parts of the error-log content and is
        +   * treated as Service Data. For information about how Service Data
        +   * is handled, see [Google Cloud Privacy Notice]
        +   * (https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -79,7 +105,13 @@ public interface ListGroupStatsRequestOrBuilder * * *
        -   * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +   * Optional. List all [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +   * IDs. The `group_id` is a unique identifier for a particular error group.
        +   * The identifier is derived from key parts of the error-log content and is
        +   * treated as Service Data. For information about how Service Data
        +   * is handled, see [Google Cloud Privacy Notice]
        +   * (https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -91,7 +123,13 @@ public interface ListGroupStatsRequestOrBuilder * * *
        -   * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +   * Optional. List all [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +   * IDs. The `group_id` is a unique identifier for a particular error group.
        +   * The identifier is derived from key parts of the error-log content and is
        +   * treated as Service Data. For information about how Service Data
        +   * is handled, see [Google Cloud Privacy Notice]
        +   * (https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -104,7 +142,13 @@ public interface ListGroupStatsRequestOrBuilder * * *
        -   * Optional. List all <code>ErrorGroupStats</code> with these IDs.
        +   * Optional. List all [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
        +   * IDs. The `group_id` is a unique identifier for a particular error group.
        +   * The identifier is derived from key parts of the error-log content and is
        +   * treated as Service Data. For information about how Service Data
        +   * is handled, see [Google Cloud Privacy Notice]
        +   * (https://cloud.google.com/terms/cloud-privacy-notice).
            * 
        * * repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -118,9 +162,10 @@ public interface ListGroupStatsRequestOrBuilder * * *
        -   * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -   * context that matches the filter.
        -   * Data for all service contexts is returned if this field is not specified.
        +   * Optional. List only [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +   * to a service context that matches the filter. Data for all service contexts
        +   * is returned if this field is not specified.
            * 
        * * @@ -134,9 +179,10 @@ public interface ListGroupStatsRequestOrBuilder * * *
        -   * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -   * context that matches the filter.
        -   * Data for all service contexts is returned if this field is not specified.
        +   * Optional. List only [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +   * to a service context that matches the filter. Data for all service contexts
        +   * is returned if this field is not specified.
            * 
        * * @@ -150,9 +196,10 @@ public interface ListGroupStatsRequestOrBuilder * * *
        -   * Optional. List only <code>ErrorGroupStats</code> which belong to a service
        -   * context that matches the filter.
        -   * Data for all service contexts is returned if this field is not specified.
        +   * Optional. List only [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
        +   * to a service context that matches the filter. Data for all service contexts
        +   * is returned if this field is not specified.
            * 
        * * @@ -168,12 +215,19 @@ public interface ListGroupStatsRequestOrBuilder *
            * Optional. List data for the given time range.
            * If not set, a default time range is used. The field
        -   * <code>time_range_begin</code> in the response will specify the beginning
        -   * of this time range.
        -   * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -   * range are returned, unless the request contains an explicit
        -   * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -   * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +   * [time_range_begin]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +   * in the response will specify the beginning of this time range. Only
        +   * [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +   * non-zero count in the given time range are returned, unless the request
        +   * contains an explicit [group_id]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +   * list. If a [group_id]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +   * list is given, also [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +   * occurrences are returned.
            * 
        * * @@ -189,12 +243,19 @@ public interface ListGroupStatsRequestOrBuilder *
            * Optional. List data for the given time range.
            * If not set, a default time range is used. The field
        -   * <code>time_range_begin</code> in the response will specify the beginning
        -   * of this time range.
        -   * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -   * range are returned, unless the request contains an explicit
        -   * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -   * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +   * [time_range_begin]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +   * in the response will specify the beginning of this time range. Only
        +   * [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +   * non-zero count in the given time range are returned, unless the request
        +   * contains an explicit [group_id]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +   * list. If a [group_id]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +   * list is given, also [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +   * occurrences are returned.
            * 
        * * @@ -210,12 +271,19 @@ public interface ListGroupStatsRequestOrBuilder *
            * Optional. List data for the given time range.
            * If not set, a default time range is used. The field
        -   * <code>time_range_begin</code> in the response will specify the beginning
        -   * of this time range.
        -   * Only <code>ErrorGroupStats</code> with a non-zero count in the given time
        -   * range are returned, unless the request contains an explicit
        -   * <code>group_id</code> list. If a <code>group_id</code> list is given, also
        -   * <code>ErrorGroupStats</code> with zero occurrences are returned.
        +   * [time_range_begin]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
        +   * in the response will specify the beginning of this time range. Only
        +   * [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
        +   * non-zero count in the given time range are returned, unless the request
        +   * contains an explicit [group_id]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +   * list. If a [group_id]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
        +   * list is given, also [ErrorGroupStats]
        +   * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
        +   * occurrences are returned.
            * 
        * * @@ -228,8 +296,9 @@ public interface ListGroupStatsRequestOrBuilder * * *
        -   * Optional. The preferred duration for a single returned `TimedCount`.
        -   * If not set, no timed counts are returned.
        +   * Optional. The preferred duration for a single returned [TimedCount]
        +   * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +   * timed counts are returned.
            * 
        * * @@ -243,8 +312,9 @@ public interface ListGroupStatsRequestOrBuilder * * *
        -   * Optional. The preferred duration for a single returned `TimedCount`.
        -   * If not set, no timed counts are returned.
        +   * Optional. The preferred duration for a single returned [TimedCount]
        +   * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +   * timed counts are returned.
            * 
        * * @@ -258,8 +328,9 @@ public interface ListGroupStatsRequestOrBuilder * * *
        -   * Optional. The preferred duration for a single returned `TimedCount`.
        -   * If not set, no timed counts are returned.
        +   * Optional. The preferred duration for a single returned [TimedCount]
        +   * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
        +   * timed counts are returned.
            * 
        * * @@ -389,9 +460,10 @@ public interface ListGroupStatsRequestOrBuilder * * *
        -   * Optional. A `next_page_token` provided by a previous response. To view
        -   * additional results, pass this token along with the identical query
        -   * parameters as the first request.
        +   * Optional. A [next_page_token]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token]
        +   * provided by a previous response. To view additional results, pass this
        +   * token along with the identical query parameters as the first request.
            * 
        * * string page_token = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -403,9 +475,10 @@ public interface ListGroupStatsRequestOrBuilder * * *
        -   * Optional. A `next_page_token` provided by a previous response. To view
        -   * additional results, pass this token along with the identical query
        -   * parameters as the first request.
        +   * Optional. A [next_page_token]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token]
        +   * provided by a previous response. To view additional results, pass this
        +   * token along with the identical query parameters as the first request.
            * 
        * * string page_token = 12 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/QueryTimeRange.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/QueryTimeRange.java index 4b5df287b120..b537988c2cec 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/QueryTimeRange.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/QueryTimeRange.java @@ -23,6 +23,12 @@ * * *
        + * A time range for which error group data shall be displayed.
        + * Query time ranges end at 'now'.
        + * When longer time ranges are selected, the resolution of the data decreases.
        + * The description of each time range below indicates the suggested minimum
        + * timed count duration for that range.
        + *
          * Requests might be rejected or the resulting timed count durations might be
          * adjusted for lower durations.
          * 
        @@ -504,6 +510,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
        +   * A time range for which error group data shall be displayed.
        +   * Query time ranges end at 'now'.
        +   * When longer time ranges are selected, the resolution of the data decreases.
        +   * The description of each time range below indicates the suggested minimum
        +   * timed count duration for that range.
        +   *
            * Requests might be rejected or the resulting timed count durations might be
            * adjusted for lower durations.
            * 
        diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportedErrorEvent.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportedErrorEvent.java index e12021901a9c..4f4c7c131774 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportedErrorEvent.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportedErrorEvent.java @@ -72,7 +72,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
            * Optional. Time when the event occurred.
            * If not provided, the time when the event was received by the
        -   * Error Reporting system will be used.
        +   * Error Reporting system is used. If provided, the time must not
        +   * exceed the [logs retention
        +   * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +   * the past, or be more than 24 hours in the future.
        +   * If an invalid time is provided, then an error is returned.
            * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -90,7 +94,11 @@ public boolean hasEventTime() { *
            * Optional. Time when the event occurred.
            * If not provided, the time when the event was received by the
        -   * Error Reporting system will be used.
        +   * Error Reporting system is used. If provided, the time must not
        +   * exceed the [logs retention
        +   * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +   * the past, or be more than 24 hours in the future.
        +   * If an invalid time is provided, then an error is returned.
            * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -108,7 +116,11 @@ public com.google.protobuf.Timestamp getEventTime() { *
            * Optional. Time when the event occurred.
            * If not provided, the time when the event was received by the
        -   * Error Reporting system will be used.
        +   * Error Reporting system is used. If provided, the time must not
        +   * exceed the [logs retention
        +   * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +   * the past, or be more than 24 hours in the future.
        +   * If an invalid time is provided, then an error is returned.
            * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -203,9 +215,9 @@ public com.google.devtools.clouderrorreporting.v1beta1.ServiceContext getService * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace). * * **C#**: Must be the return value of * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). - * * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` - * and contain the result of - * [`(string)$exception`](http://php.net/manual/en/exception.tostring.php). + * * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal + * error|Warning): "` and contain the result of + * [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). * * **Go**: Must be the return value of * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). *
        @@ -249,9 +261,9 @@ public java.lang.String getMessage() { * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace). * * **C#**: Must be the return value of * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). - * * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` - * and contain the result of - * [`(string)$exception`](http://php.net/manual/en/exception.tostring.php). + * * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal + * error|Warning): "` and contain the result of + * [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). * * **Go**: Must be the return value of * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). *
        @@ -803,7 +815,11 @@ public Builder mergeFrom( *
              * Optional. Time when the event occurred.
              * If not provided, the time when the event was received by the
        -     * Error Reporting system will be used.
        +     * Error Reporting system is used. If provided, the time must not
        +     * exceed the [logs retention
        +     * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +     * the past, or be more than 24 hours in the future.
        +     * If an invalid time is provided, then an error is returned.
              * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -820,7 +836,11 @@ public boolean hasEventTime() { *
              * Optional. Time when the event occurred.
              * If not provided, the time when the event was received by the
        -     * Error Reporting system will be used.
        +     * Error Reporting system is used. If provided, the time must not
        +     * exceed the [logs retention
        +     * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +     * the past, or be more than 24 hours in the future.
        +     * If an invalid time is provided, then an error is returned.
              * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -841,7 +861,11 @@ public com.google.protobuf.Timestamp getEventTime() { *
              * Optional. Time when the event occurred.
              * If not provided, the time when the event was received by the
        -     * Error Reporting system will be used.
        +     * Error Reporting system is used. If provided, the time must not
        +     * exceed the [logs retention
        +     * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +     * the past, or be more than 24 hours in the future.
        +     * If an invalid time is provided, then an error is returned.
              * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -866,7 +890,11 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { *
              * Optional. Time when the event occurred.
              * If not provided, the time when the event was received by the
        -     * Error Reporting system will be used.
        +     * Error Reporting system is used. If provided, the time must not
        +     * exceed the [logs retention
        +     * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +     * the past, or be more than 24 hours in the future.
        +     * If an invalid time is provided, then an error is returned.
              * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -888,7 +916,11 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu *
              * Optional. Time when the event occurred.
              * If not provided, the time when the event was received by the
        -     * Error Reporting system will be used.
        +     * Error Reporting system is used. If provided, the time must not
        +     * exceed the [logs retention
        +     * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +     * the past, or be more than 24 hours in the future.
        +     * If an invalid time is provided, then an error is returned.
              * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -918,7 +950,11 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { *
              * Optional. Time when the event occurred.
              * If not provided, the time when the event was received by the
        -     * Error Reporting system will be used.
        +     * Error Reporting system is used. If provided, the time must not
        +     * exceed the [logs retention
        +     * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +     * the past, or be more than 24 hours in the future.
        +     * If an invalid time is provided, then an error is returned.
              * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -940,7 +976,11 @@ public Builder clearEventTime() { *
              * Optional. Time when the event occurred.
              * If not provided, the time when the event was received by the
        -     * Error Reporting system will be used.
        +     * Error Reporting system is used. If provided, the time must not
        +     * exceed the [logs retention
        +     * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +     * the past, or be more than 24 hours in the future.
        +     * If an invalid time is provided, then an error is returned.
              * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -957,7 +997,11 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { *
              * Optional. Time when the event occurred.
              * If not provided, the time when the event was received by the
        -     * Error Reporting system will be used.
        +     * Error Reporting system is used. If provided, the time must not
        +     * exceed the [logs retention
        +     * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +     * the past, or be more than 24 hours in the future.
        +     * If an invalid time is provided, then an error is returned.
              * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -976,7 +1020,11 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { *
              * Optional. Time when the event occurred.
              * If not provided, the time when the event was received by the
        -     * Error Reporting system will be used.
        +     * Error Reporting system is used. If provided, the time must not
        +     * exceed the [logs retention
        +     * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +     * the past, or be more than 24 hours in the future.
        +     * If an invalid time is provided, then an error is returned.
              * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1233,9 +1281,9 @@ public Builder clearServiceContext() { * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace). * * **C#**: Must be the return value of * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). - * * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` - * and contain the result of - * [`(string)$exception`](http://php.net/manual/en/exception.tostring.php). + * * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal + * error|Warning): "` and contain the result of + * [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). * * **Go**: Must be the return value of * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). *
        @@ -1278,9 +1326,9 @@ public java.lang.String getMessage() { * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace). * * **C#**: Must be the return value of * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). - * * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` - * and contain the result of - * [`(string)$exception`](http://php.net/manual/en/exception.tostring.php). + * * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal + * error|Warning): "` and contain the result of + * [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). * * **Go**: Must be the return value of * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). *
        @@ -1323,9 +1371,9 @@ public com.google.protobuf.ByteString getMessageBytes() { * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace). * * **C#**: Must be the return value of * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). - * * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` - * and contain the result of - * [`(string)$exception`](http://php.net/manual/en/exception.tostring.php). + * * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal + * error|Warning): "` and contain the result of + * [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). * * **Go**: Must be the return value of * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). *
        @@ -1367,9 +1415,9 @@ public Builder setMessage(java.lang.String value) { * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace). * * **C#**: Must be the return value of * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). - * * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` - * and contain the result of - * [`(string)$exception`](http://php.net/manual/en/exception.tostring.php). + * * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal + * error|Warning): "` and contain the result of + * [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). * * **Go**: Must be the return value of * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). * @@ -1407,9 +1455,9 @@ public Builder clearMessage() { * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace). * * **C#**: Must be the return value of * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). - * * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` - * and contain the result of - * [`(string)$exception`](http://php.net/manual/en/exception.tostring.php). + * * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal + * error|Warning): "` and contain the result of + * [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). * * **Go**: Must be the return value of * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). * diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportedErrorEventOrBuilder.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportedErrorEventOrBuilder.java index bf523f602d3e..db9fb93c7b6c 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportedErrorEventOrBuilder.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportedErrorEventOrBuilder.java @@ -30,7 +30,11 @@ public interface ReportedErrorEventOrBuilder *
            * Optional. Time when the event occurred.
            * If not provided, the time when the event was received by the
        -   * Error Reporting system will be used.
        +   * Error Reporting system is used. If provided, the time must not
        +   * exceed the [logs retention
        +   * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +   * the past, or be more than 24 hours in the future.
        +   * If an invalid time is provided, then an error is returned.
            * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -45,7 +49,11 @@ public interface ReportedErrorEventOrBuilder *
            * Optional. Time when the event occurred.
            * If not provided, the time when the event was received by the
        -   * Error Reporting system will be used.
        +   * Error Reporting system is used. If provided, the time must not
        +   * exceed the [logs retention
        +   * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +   * the past, or be more than 24 hours in the future.
        +   * If an invalid time is provided, then an error is returned.
            * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -60,7 +68,11 @@ public interface ReportedErrorEventOrBuilder *
            * Optional. Time when the event occurred.
            * If not provided, the time when the event was received by the
        -   * Error Reporting system will be used.
        +   * Error Reporting system is used. If provided, the time must not
        +   * exceed the [logs retention
        +   * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
        +   * the past, or be more than 24 hours in the future.
        +   * If an invalid time is provided, then an error is returned.
            * 
        * * .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -133,9 +145,9 @@ public interface ReportedErrorEventOrBuilder * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace). * * **C#**: Must be the return value of * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). - * * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` - * and contain the result of - * [`(string)$exception`](http://php.net/manual/en/exception.tostring.php). + * * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal + * error|Warning): "` and contain the result of + * [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). * * **Go**: Must be the return value of * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). * @@ -168,9 +180,9 @@ public interface ReportedErrorEventOrBuilder * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace). * * **C#**: Must be the return value of * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). - * * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` - * and contain the result of - * [`(string)$exception`](http://php.net/manual/en/exception.tostring.php). + * * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal + * error|Warning): "` and contain the result of + * [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). * * **Go**: Must be the return value of * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). * diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/TimedCountAlignment.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/TimedCountAlignment.java index d46f1b2dc893..810aeef48080 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/TimedCountAlignment.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/TimedCountAlignment.java @@ -44,13 +44,18 @@ public enum TimedCountAlignment implements com.google.protobuf.ProtocolMessageEn * *
            * The time periods shall be consecutive, have width equal to the
        -   * requested duration, and be aligned at the `alignment_time` provided in
        -   * the request.
        -   * The `alignment_time` does not have to be inside the query period but
        -   * even if it is outside, only time periods are returned which overlap
        -   * with the query period.
        -   * A rounded alignment will typically result in a
        -   * different size of the first or the last time period.
        +   * requested duration, and be aligned at the
        +   * [alignment_time]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time]
        +   * provided in the request.
        +   *
        +   * The [alignment_time]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time]
        +   * does not have to be inside the query period but even if it is outside, only
        +   * time periods are returned which overlap with the query period.
        +   *
        +   * A rounded alignment will typically result in a different size of the first
        +   * or the last time period.
            * 
        * * ALIGNMENT_EQUAL_ROUNDED = 1; @@ -87,13 +92,18 @@ public enum TimedCountAlignment implements com.google.protobuf.ProtocolMessageEn * *
            * The time periods shall be consecutive, have width equal to the
        -   * requested duration, and be aligned at the `alignment_time` provided in
        -   * the request.
        -   * The `alignment_time` does not have to be inside the query period but
        -   * even if it is outside, only time periods are returned which overlap
        -   * with the query period.
        -   * A rounded alignment will typically result in a
        -   * different size of the first or the last time period.
        +   * requested duration, and be aligned at the
        +   * [alignment_time]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time]
        +   * provided in the request.
        +   *
        +   * The [alignment_time]
        +   * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time]
        +   * does not have to be inside the query period but even if it is outside, only
        +   * time periods are returned which overlap with the query period.
        +   *
        +   * A rounded alignment will typically result in a different size of the first
        +   * or the last time period.
            * 
        * * ALIGNMENT_EQUAL_ROUNDED = 1; diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/common.proto b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/common.proto index 711abfc97cab..38cb56cdea46 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/common.proto +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/common.proto @@ -36,17 +36,38 @@ message ErrorGroup { }; // The group resource name. - // Example: projects/my-project-123/groups/CNSgkpnppqKCUw + // Written as `projects/{projectID}/groups/{group_id}` or + // `projects/{projectID}/locations/{location}/groups/{group_id}` + // + // Examples: `projects/my-project-123/groups/my-group`, + // `projects/my-project-123/locations/us-central1/groups/my-group` + // + // In the group resource name, the `group_id` is a unique identifier for a + // particular error group. The identifier is derived from key parts of the + // error-log content and is treated as Service Data. For information about + // how Service Data is handled, see [Google Cloud Privacy + // Notice](https://cloud.google.com/terms/cloud-privacy-notice). + // + // For a list of supported locations, see [Supported + // Regions](https://cloud.google.com/logging/docs/region-support). `global` is + // the default when unspecified. string name = 1; - // Group IDs are unique for a given project. If the same kind of error - // occurs in different service contexts, it will receive the same group ID. + // An opaque identifier of the group. This field is assigned by the Error + // Reporting system and always populated. + // + // In the group resource name, the `group_id` is a unique identifier for a + // particular error group. The identifier is derived from key parts of the + // error-log content and is treated as Service Data. For information about + // how Service Data is handled, see [Google Cloud Privacy + // Notice](https://cloud.google.com/terms/cloud-privacy-notice). string group_id = 2; // Associated tracking issues. repeated TrackingIssue tracking_issues = 3; // Error group's resolution status. + // // An unspecified resolution status will be interpreted as OPEN ResolutionStatus resolution_status = 5; } diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/error_group_service.proto b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/error_group_service.proto index b37cdc106876..af86a8d60801 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/error_group_service.proto +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/error_group_service.proto @@ -34,12 +34,16 @@ option ruby_package = "Google::Cloud::ErrorReporting::V1beta1"; // Service for retrieving and updating individual error groups. service ErrorGroupService { option (google.api.default_host) = "clouderrorreporting.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Get the specified group. rpc GetGroup(GetGroupRequest) returns (ErrorGroup) { option (google.api.http) = { get: "/v1beta1/{group_name=projects/*/groups/*}" + additional_bindings { + get: "/v1beta1/{group_name=projects/*/locations/*/groups/*}" + } }; option (google.api.method_signature) = "group_name"; } @@ -50,6 +54,10 @@ service ErrorGroupService { option (google.api.http) = { put: "/v1beta1/{group.name=projects/*/groups/*}" body: "group" + additional_bindings { + put: "/v1beta1/{group.name=projects/*/locations/*/groups/*}" + body: "group" + } }; option (google.api.method_signature) = "group"; } @@ -57,12 +65,25 @@ service ErrorGroupService { // A request to return an individual group. message GetGroupRequest { - // Required. The group resource name. Written as - // `projects/{projectID}/groups/{group_name}`. Call - // [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list) + // Required. The group resource name. Written as either + // `projects/{projectID}/groups/{group_id}` or + // `projects/{projectID}/locations/{location}/groups/{group_id}`. Call + // [groupStats.list] + // [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats] // to return a list of groups belonging to this project. // - // Example: `projects/my-project-123/groups/my-group` + // Examples: `projects/my-project-123/groups/my-group`, + // `projects/my-project-123/locations/global/groups/my-group` + // + // In the group resource name, the `group_id` is a unique identifier for a + // particular error group. The identifier is derived from key parts of the + // error-log content and is treated as Service Data. For information about + // how Service Data is handled, see [Google Cloud Privacy + // Notice](https://cloud.google.com/terms/cloud-privacy-notice). + // + // For a list of supported locations, see [Supported + // Regions](https://cloud.google.com/logging/docs/region-support). `global` is + // the default when unspecified. string group_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto index 016e05bfd687..7e8a1720d10e 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto @@ -37,12 +37,16 @@ option ruby_package = "Google::Cloud::ErrorReporting::V1beta1"; // individual events. service ErrorStatsService { option (google.api.default_host) = "clouderrorreporting.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Lists the specified groups. rpc ListGroupStats(ListGroupStatsRequest) returns (ListGroupStatsResponse) { option (google.api.http) = { get: "/v1beta1/{project_name=projects/*}/groupStats" + additional_bindings { + get: "/v1beta1/{project_name=projects/*/locations/*}/groupStats" + } }; option (google.api.method_signature) = "project_name,time_range"; } @@ -51,6 +55,9 @@ service ErrorStatsService { rpc ListEvents(ListEventsRequest) returns (ListEventsResponse) { option (google.api.http) = { get: "/v1beta1/{project_name=projects/*}/events" + additional_bindings { + get: "/v1beta1/{project_name=projects/*/locations/*}/events" + } }; option (google.api.method_signature) = "project_name,group_id"; } @@ -59,6 +66,9 @@ service ErrorStatsService { rpc DeleteEvents(DeleteEventsRequest) returns (DeleteEventsResponse) { option (google.api.http) = { delete: "/v1beta1/{project_name=projects/*}/events" + additional_bindings { + delete: "/v1beta1/{project_name=projects/*/locations/*}/events" + } }; option (google.api.method_signature) = "project_name"; } @@ -67,11 +77,21 @@ service ErrorStatsService { // Specifies a set of `ErrorGroupStats` to return. message ListGroupStatsRequest { // Required. The resource name of the Google Cloud Platform project. Written - // as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}` - // and `{projectNumber}` can be found in the - // [Google Cloud Console](https://support.google.com/cloud/answer/6158840). + // as `projects/{projectID}` or `projects/{projectNumber}`, where + // `{projectID}` and `{projectNumber}` can be found in the + // [Google Cloud console](https://support.google.com/cloud/answer/6158840). + // It may also include a location, such as + // `projects/{projectID}/locations/{location}` where `{location}` is a cloud + // region. // - // Examples: `projects/my-project-123`, `projects/5551234`. + // Examples: `projects/my-project-123`, `projects/5551234`, + // `projects/my-project-123/locations/us-central1`, + // `projects/5551234/locations/us-central1`. + // + // For a list of supported locations, see [Supported + // Regions](https://cloud.google.com/logging/docs/region-support). `global` is + // the default when unspecified. Use `-` as a wildcard to request group stats + // from all regions. string project_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -79,27 +99,44 @@ message ListGroupStatsRequest { } ]; - // Optional. List all ErrorGroupStats with these IDs. + // Optional. List all [ErrorGroupStats] + // [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these + // IDs. The `group_id` is a unique identifier for a particular error group. + // The identifier is derived from key parts of the error-log content and is + // treated as Service Data. For information about how Service Data + // is handled, see [Google Cloud Privacy Notice] + // (https://cloud.google.com/terms/cloud-privacy-notice). repeated string group_id = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List only ErrorGroupStats which belong to a service - // context that matches the filter. - // Data for all service contexts is returned if this field is not specified. - ServiceContextFilter service_filter = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. List only [ErrorGroupStats] + // [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong + // to a service context that matches the filter. Data for all service contexts + // is returned if this field is not specified. + ServiceContextFilter service_filter = 3 + [(google.api.field_behavior) = OPTIONAL]; // Optional. List data for the given time range. // If not set, a default time range is used. The field - // time_range_begin in the response will specify the beginning - // of this time range. - // Only ErrorGroupStats with a non-zero count in the given time - // range are returned, unless the request contains an explicit - // group_id list. If a group_id list is given, also - // ErrorGroupStats with zero occurrences are returned. + // [time_range_begin] + // [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin] + // in the response will specify the beginning of this time range. Only + // [ErrorGroupStats] + // [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a + // non-zero count in the given time range are returned, unless the request + // contains an explicit [group_id] + // [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] + // list. If a [group_id] + // [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] + // list is given, also [ErrorGroupStats] + // [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero + // occurrences are returned. QueryTimeRange time_range = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The preferred duration for a single returned `TimedCount`. - // If not set, no timed counts are returned. - google.protobuf.Duration timed_count_duration = 6 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The preferred duration for a single returned [TimedCount] + // [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no + // timed counts are returned. + google.protobuf.Duration timed_count_duration = 6 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The alignment of the timed counts to be returned. // Default is `ALIGNMENT_EQUAL_AT_END`. @@ -107,7 +144,8 @@ message ListGroupStatsRequest { // Optional. Time where the timed counts shall be aligned if rounded // alignment is chosen. Default is 00:00 UTC. - google.protobuf.Timestamp alignment_time = 8 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Timestamp alignment_time = 8 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The sort order in which the results are returned. // Default is `COUNT_DESC`. @@ -117,9 +155,10 @@ message ListGroupStatsRequest { // Default is 20. int32 page_size = 11 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A `next_page_token` provided by a previous response. To view - // additional results, pass this token along with the identical query - // parameters as the first request. + // Optional. A [next_page_token] + // [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token] + // provided by a previous response. To view additional results, pass this + // token along with the identical query parameters as the first request. string page_token = 12 [(google.api.field_behavior) = OPTIONAL]; } @@ -140,6 +179,52 @@ message ListGroupStatsResponse { google.protobuf.Timestamp time_range_begin = 4; } +// Specifies how the time periods of error group counts are aligned. +enum TimedCountAlignment { + // No alignment specified. + ERROR_COUNT_ALIGNMENT_UNSPECIFIED = 0; + + // The time periods shall be consecutive, have width equal to the + // requested duration, and be aligned at the + // [alignment_time] + // [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time] + // provided in the request. + // + // The [alignment_time] + // [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time] + // does not have to be inside the query period but even if it is outside, only + // time periods are returned which overlap with the query period. + // + // A rounded alignment will typically result in a different size of the first + // or the last time period. + ALIGNMENT_EQUAL_ROUNDED = 1; + + // The time periods shall be consecutive, have width equal to the + // requested duration, and be aligned at the end of the requested time + // period. This can result in a different size of the + // first time period. + ALIGNMENT_EQUAL_AT_END = 2; +} + +// A sorting order of error groups. +enum ErrorGroupOrder { + // No group order specified. + GROUP_ORDER_UNSPECIFIED = 0; + + // Total count of errors in the given time window in descending order. + COUNT_DESC = 1; + + // Timestamp when the group was last seen in the given time window + // in descending order. + LAST_SEEN_DESC = 2; + + // Timestamp when the group was created in descending order. + CREATED_DESC = 3; + + // Number of affected users in the given time window in descending order. + AFFECTED_USERS_DESC = 4; +} + // Data extracted for a specific group based on certain filter criteria, // such as a given time period and/or service filter. message ErrorGroupStats { @@ -152,7 +237,8 @@ message ErrorGroupStats { // Approximate number of affected users in the given group that // match the filter criteria. - // Users are distinguished by data in the `ErrorContext` of the + // Users are distinguished by data in the [ErrorContext] + // [google.devtools.clouderrorreporting.v1beta1.ErrorContext] of the // individual error events, such as their login name or their remote // IP address in case of HTTP requests. // The number of affected users can be zero even if the number of @@ -213,55 +299,20 @@ message TimedCount { google.protobuf.Timestamp end_time = 3; } -// Specifies how the time periods of error group counts are aligned. -enum TimedCountAlignment { - // No alignment specified. - ERROR_COUNT_ALIGNMENT_UNSPECIFIED = 0; - - // The time periods shall be consecutive, have width equal to the - // requested duration, and be aligned at the `alignment_time` provided in - // the request. - // The `alignment_time` does not have to be inside the query period but - // even if it is outside, only time periods are returned which overlap - // with the query period. - // A rounded alignment will typically result in a - // different size of the first or the last time period. - ALIGNMENT_EQUAL_ROUNDED = 1; - - // The time periods shall be consecutive, have width equal to the - // requested duration, and be aligned at the end of the requested time - // period. This can result in a different size of the - // first time period. - ALIGNMENT_EQUAL_AT_END = 2; -} - -// A sorting order of error groups. -enum ErrorGroupOrder { - // No group order specified. - GROUP_ORDER_UNSPECIFIED = 0; - - // Total count of errors in the given time window in descending order. - COUNT_DESC = 1; - - // Timestamp when the group was last seen in the given time window - // in descending order. - LAST_SEEN_DESC = 2; - - // Timestamp when the group was created in descending order. - CREATED_DESC = 3; - - // Number of affected users in the given time window in descending order. - AFFECTED_USERS_DESC = 4; -} - // Specifies a set of error events to return. message ListEventsRequest { // Required. The resource name of the Google Cloud Platform project. Written - // as `projects/{projectID}`, where `{projectID}` is the - // [Google Cloud Platform project - // ID](https://support.google.com/cloud/answer/6158840). + // as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, + // where `{projectID}` is the [Google Cloud Platform project + // ID](https://support.google.com/cloud/answer/6158840) and `{location}` is + // a Cloud region. + // + // Examples: `projects/my-project-123`, + // `projects/my-project-123/locations/global`. // - // Example: `projects/my-project-123`. + // For a list of supported locations, see [Supported + // Regions](https://cloud.google.com/logging/docs/region-support). `global` is + // the default when unspecified. string project_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -270,12 +321,18 @@ message ListEventsRequest { ]; // Required. The group for which events shall be returned. + // The `group_id` is a unique identifier for a particular error group. The + // identifier is derived from key parts of the error-log content and is + // treated as Service Data. For information about how Service Data + // is handled, see [Google Cloud Privacy + // Notice](https://cloud.google.com/terms/cloud-privacy-notice). string group_id = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. List only ErrorGroups which belong to a service context that // matches the filter. // Data for all service contexts is returned if this field is not specified. - ServiceContextFilter service_filter = 3 [(google.api.field_behavior) = OPTIONAL]; + ServiceContextFilter service_filter = 3 + [(google.api.field_behavior) = OPTIONAL]; // Optional. List only data for the given time range. // If not set a default time range is used. The field time_range_begin @@ -303,6 +360,12 @@ message ListEventsResponse { google.protobuf.Timestamp time_range_begin = 4; } +// A time range for which error group data shall be displayed. +// Query time ranges end at 'now'. +// When longer time ranges are selected, the resolution of the data decreases. +// The description of each time range below indicates the suggested minimum +// timed count duration for that range. +// // Requests might be rejected or the resulting timed count durations might be // adjusted for lower durations. message QueryTimeRange { @@ -357,11 +420,17 @@ message ServiceContextFilter { // Deletes all events in the project. message DeleteEventsRequest { // Required. The resource name of the Google Cloud Platform project. Written - // as `projects/{projectID}`, where `{projectID}` is the - // [Google Cloud Platform project - // ID](https://support.google.com/cloud/answer/6158840). + // as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, + // where `{projectID}` is the [Google Cloud Platform project + // ID](https://support.google.com/cloud/answer/6158840) and `{location}` is + // a Cloud region. + // + // Examples: `projects/my-project-123`, + // `projects/my-project-123/locations/global`. // - // Example: `projects/my-project-123`. + // For a list of supported locations, see [Supported + // Regions](https://cloud.google.com/logging/docs/region-support). `global` is + // the default when unspecified. string project_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -371,6 +440,4 @@ message DeleteEventsRequest { } // Response message for deleting error events. -message DeleteEventsResponse { - -} +message DeleteEventsResponse {} diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto index 7e3d5f4e1684..43cfc00fa8f9 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/proto/google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto @@ -48,10 +48,16 @@ service ReportErrorsService { // `POST // https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` // - // **Note:** [Error Reporting](/error-reporting) is a global service built - // on Cloud Logging and doesn't analyze logs stored - // in regional log buckets or logs routed to other Google Cloud projects. + // **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) + // is a service built on Cloud Logging and can analyze log entries when all of + // the following are true: // + // * Customer-managed encryption keys (CMEK) are disabled on the log bucket. + // * The log bucket satisfies one of the following: + // * The log bucket is stored in the same project where the logs + // originated. + // * The logs were routed to a project, and then that project stored those + // logs in a log bucket that it owns. rpc ReportErrorEvent(ReportErrorEventRequest) returns (ReportErrorEventResponse) { option (google.api.http) = { @@ -89,7 +95,11 @@ message ReportErrorEventResponse {} message ReportedErrorEvent { // Optional. Time when the event occurred. // If not provided, the time when the event was received by the - // Error Reporting system will be used. + // Error Reporting system is used. If provided, the time must not + // exceed the [logs retention + // period](https://cloud.google.com/logging/quotas#logs_retention_periods) in + // the past, or be more than 24 hours in the future. + // If an invalid time is provided, then an error is returned. google.protobuf.Timestamp event_time = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -115,9 +125,9 @@ message ReportedErrorEvent { // [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace). // * **C#**: Must be the return value of // [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). - // * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` - // and contain the result of - // [`(string)$exception`](http://php.net/manual/en/exception.tostring.php). + // * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal + // error|Warning): "` and contain the result of + // [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). // * **Go**: Must be the return value of // [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). string message = 3 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index 5fd71c88bca3..6a2e40b7c007 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/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-essential-contacts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.46.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-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java b/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java index 49902ef5cd90..c874667be0d2 100644 --- a/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java +++ b/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.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; @@ -296,6 +297,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "essentialcontacts.googleapis.com:443"; } diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index 1fbbb98f860d..d55d686e1e33 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/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.cloud/google-cloud-eventarc-publishing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.46.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-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java index 0cfbed02135a..8ad5884c41f5 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -136,6 +137,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "eventarcpublishing.googleapis.com:443"; } diff --git a/java-eventarc/README.md b/java-eventarc/README.md index 9d2f5f1048af..b95d01ed5ce6 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/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-eventarc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.46.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-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStubSettings.java b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStubSettings.java index 4c284f863a39..348efa78ba07 100644 --- a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStubSettings.java +++ b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStubSettings.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; @@ -687,6 +688,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "eventarc.googleapis.com:443"; } diff --git a/java-filestore/README.md b/java-filestore/README.md index e52b622ea209..e4366cc7e589 100644 --- a/java-filestore/README.md +++ b/java-filestore/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-filestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/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-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java index c6f140a93591..bbf320d737c4 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.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; @@ -515,6 +516,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "file.googleapis.com:443"; } diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java index 4047020a4c6b..7f95365f5c29 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.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; @@ -633,6 +634,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "file.googleapis.com:443"; } diff --git a/java-functions/README.md b/java-functions/README.md index b451211a2a82..34d7211dd3bb 100644 --- a/java-functions/README.md +++ b/java-functions/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-functions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.48.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-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java index bbfe41c02a01..82d6e4849c67 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.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; @@ -371,6 +372,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudfunctions.googleapis.com:443"; } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java index 390faa0b89b6..0943bbcae5ea 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.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; @@ -368,6 +369,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudfunctions.googleapis.com:443"; } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java index 7959fdcc182e..97eb77882e35 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.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; @@ -369,6 +370,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudfunctions.googleapis.com:443"; } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java index 89b56e513294..3a5eee53a534 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.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; @@ -369,6 +370,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudfunctions.googleapis.com:443"; } diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index 9e1fd05135aa..2f1913d5e503 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/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.cloud/google-cloud-gdchardwaremanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.1.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-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java index 45957a3ad14e..07d0e9e68372 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.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; @@ -1069,6 +1070,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "gdchardwaremanagement.googleapis.com:443"; } diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json index fa4b51d078ba..2974ccdc6d59 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry", "queryAllDeclaredConstructors": true, diff --git a/java-gdchardwaremanagement/pom.xml b/java-gdchardwaremanagement/pom.xml index 44c0eb65e4ab..f6168ee4214a 100644 --- a/java-gdchardwaremanagement/pom.xml +++ b/java-gdchardwaremanagement/pom.xml @@ -52,4 +52,4 @@ google-cloud-gdchardwaremanagement-bom - + diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index b920f7d11b11..bd7478b85da7 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/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.cloud/google-cloud-gke-backup.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.45.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-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java index c909abe387d6..24da98bda2a5 100644 --- a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java +++ b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.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; @@ -885,6 +886,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "gkebackup.googleapis.com:443"; } diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index fd2dc991e26d..336ddb9a271e 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/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-gke-connect-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.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-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/GatewayServiceStubSettings.java b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/GatewayServiceStubSettings.java index 3e99e653c1d7..ca38dfc08dd8 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/GatewayServiceStubSettings.java +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/GatewayServiceStubSettings.java @@ -19,6 +19,7 @@ import com.google.api.HttpBody; import com.google.api.core.ApiFunction; 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; @@ -139,6 +140,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "connectgateway.googleapis.com:443"; } diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 680feecf19ff..75cb96e3e3bc 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/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.cloud/google-cloud-gke-multi-cloud.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.45.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-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.java index e7c56e22e7ca..54559cc4cb26 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.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; @@ -331,6 +332,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "gkemulticloud.googleapis.com:443"; } diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java index 8c3e9b52acc7..f42ff2e8f730 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.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; @@ -446,6 +447,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "gkemulticloud.googleapis.com:443"; } diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java index 35b912f080b4..7d405a1f5777 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.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; @@ -549,6 +550,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "gkemulticloud.googleapis.com:443"; } diff --git a/java-gkehub/README.md b/java-gkehub/README.md index f44730aba206..32b6f4c19977 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/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-gkehub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.46.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-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java index 89ad265d903b..226a45031f32 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.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; @@ -379,6 +380,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "gkehub.googleapis.com:443"; } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java index d44aeee6511f..ae3ad557372e 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.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 "gkehub.googleapis.com:443"; } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java index 88fbbb1dcb2f..3003cf56f2e9 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.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 "gkehub.googleapis.com:443"; } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java index 270418ec609c..4dd512638e1c 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.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; @@ -384,6 +385,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "gkehub.googleapis.com:443"; } diff --git a/java-grafeas/README.md b/java-grafeas/README.md index ac9233ae8780..aeb39e0671b6 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -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/io.grafeas/grafeas.svg -[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/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-grafeas/src/main/java/io/grafeas/v1/Compliance.java b/java-grafeas/src/main/java/io/grafeas/v1/Compliance.java index d7ed633a5390..7e350f9476be 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Compliance.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Compliance.java @@ -71,14 +71,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "yB\021\n\017compliance_typeB\022\n\020potential_impact" + "\"Q\n\021ComplianceVersion\022\017\n\007cpe_uri\030\001 \001(\t\022\032" + "\n\022benchmark_document\030\003 \001(\t\022\017\n\007version\030\002 " - + "\001(\t\"p\n\024ComplianceOccurrence\0229\n\023non_compl" - + "iant_files\030\002 \003(\0132\034.grafeas.v1.NonComplia" - + "ntFile\022\035\n\025non_compliance_reason\030\003 \001(\t\"I\n" - + "\020NonCompliantFile\022\014\n\004path\030\001 \001(\t\022\027\n\017displ" - + "ay_command\030\002 \001(\t\022\016\n\006reason\030\003 \001(\tBQ\n\rio.g" - + "rafeas.v1P\001Z8google.golang.org/genproto/" - + "googleapis/grafeas/v1;grafeas\242\002\003GRAb\006pro" - + "to3" + + "\001(\t\"\240\001\n\024ComplianceOccurrence\0229\n\023non_comp" + + "liant_files\030\002 \003(\0132\034.grafeas.v1.NonCompli" + + "antFile\022\035\n\025non_compliance_reason\030\003 \001(\t\022." + + "\n\007version\030\004 \001(\0132\035.grafeas.v1.ComplianceV" + + "ersion\"I\n\020NonCompliantFile\022\014\n\004path\030\001 \001(\t" + + "\022\027\n\017display_command\030\002 \001(\t\022\016\n\006reason\030\003 \001(" + + "\tBQ\n\rio.grafeas.v1P\001Z8google.golang.org/" + + "genproto/googleapis/grafeas/v1;grafeas\242\002" + + "\003GRAb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -124,7 +125,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grafeas_v1_ComplianceOccurrence_descriptor, new java.lang.String[] { - "NonCompliantFiles", "NonComplianceReason", + "NonCompliantFiles", "NonComplianceReason", "Version", }); internal_static_grafeas_v1_NonCompliantFile_descriptor = getDescriptor().getMessageTypes().get(3); diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrence.java index 3670a56a3fd7..4997c7f8454a 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrence.java @@ -65,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { io.grafeas.v1.ComplianceOccurrence.Builder.class); } + private int bitField0_; public static final int NON_COMPLIANT_FILES_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -135,6 +136,52 @@ public com.google.protobuf.ByteString getNonComplianceReasonBytes() { } } + public static final int VERSION_FIELD_NUMBER = 4; + private io.grafeas.v1.ComplianceVersion version_; + /** + * + * + *
        +   * The OS and config version the benchmark was run on.
        +   * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + * + * @return Whether the version field is set. + */ + @java.lang.Override + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +   * The OS and config version the benchmark was run on.
        +   * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + * + * @return The version. + */ + @java.lang.Override + public io.grafeas.v1.ComplianceVersion getVersion() { + return version_ == null ? io.grafeas.v1.ComplianceVersion.getDefaultInstance() : version_; + } + /** + * + * + *
        +   * The OS and config version the benchmark was run on.
        +   * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + */ + @java.lang.Override + public io.grafeas.v1.ComplianceVersionOrBuilder getVersionOrBuilder() { + return version_ == null ? io.grafeas.v1.ComplianceVersion.getDefaultInstance() : version_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -155,6 +202,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nonComplianceReason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nonComplianceReason_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getVersion()); + } getUnknownFields().writeTo(output); } @@ -171,6 +221,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nonComplianceReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nonComplianceReason_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getVersion()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -188,6 +241,10 @@ public boolean equals(final java.lang.Object obj) { if (!getNonCompliantFilesList().equals(other.getNonCompliantFilesList())) return false; if (!getNonComplianceReason().equals(other.getNonComplianceReason())) return false; + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (!getVersion().equals(other.getVersion())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -205,6 +262,10 @@ public int hashCode() { } hash = (37 * hash) + NON_COMPLIANCE_REASON_FIELD_NUMBER; hash = (53 * hash) + getNonComplianceReason().hashCode(); + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -333,10 +394,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using io.grafeas.v1.ComplianceOccurrence.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) { + getNonCompliantFilesFieldBuilder(); + getVersionFieldBuilder(); + } } @java.lang.Override @@ -351,6 +422,11 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nonComplianceReason_ = ""; + version_ = null; + if (versionBuilder_ != null) { + versionBuilder_.dispose(); + versionBuilder_ = null; + } return this; } @@ -401,6 +477,12 @@ private void buildPartial0(io.grafeas.v1.ComplianceOccurrence result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.nonComplianceReason_ = nonComplianceReason_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.version_ = versionBuilder_ == null ? version_ : versionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -480,6 +562,9 @@ public Builder mergeFrom(io.grafeas.v1.ComplianceOccurrence other) { bitField0_ |= 0x00000002; onChanged(); } + if (other.hasVersion()) { + mergeVersion(other.getVersion()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -524,6 +609,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 26 + case 34: + { + input.readMessage(getVersionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -828,6 +919,187 @@ public Builder setNonComplianceReasonBytes(com.google.protobuf.ByteString value) return this; } + private io.grafeas.v1.ComplianceVersion version_; + private com.google.protobuf.SingleFieldBuilderV3< + io.grafeas.v1.ComplianceVersion, + io.grafeas.v1.ComplianceVersion.Builder, + io.grafeas.v1.ComplianceVersionOrBuilder> + versionBuilder_; + /** + * + * + *
        +     * The OS and config version the benchmark was run on.
        +     * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + * + * @return Whether the version field is set. + */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
        +     * The OS and config version the benchmark was run on.
        +     * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + * + * @return The version. + */ + public io.grafeas.v1.ComplianceVersion getVersion() { + if (versionBuilder_ == null) { + return version_ == null ? io.grafeas.v1.ComplianceVersion.getDefaultInstance() : version_; + } else { + return versionBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The OS and config version the benchmark was run on.
        +     * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + */ + public Builder setVersion(io.grafeas.v1.ComplianceVersion value) { + if (versionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + } else { + versionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * The OS and config version the benchmark was run on.
        +     * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + */ + public Builder setVersion(io.grafeas.v1.ComplianceVersion.Builder builderForValue) { + if (versionBuilder_ == null) { + version_ = builderForValue.build(); + } else { + versionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * The OS and config version the benchmark was run on.
        +     * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + */ + public Builder mergeVersion(io.grafeas.v1.ComplianceVersion value) { + if (versionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && version_ != null + && version_ != io.grafeas.v1.ComplianceVersion.getDefaultInstance()) { + getVersionBuilder().mergeFrom(value); + } else { + version_ = value; + } + } else { + versionBuilder_.mergeFrom(value); + } + if (version_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The OS and config version the benchmark was run on.
        +     * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000004); + version_ = null; + if (versionBuilder_ != null) { + versionBuilder_.dispose(); + versionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The OS and config version the benchmark was run on.
        +     * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + */ + public io.grafeas.v1.ComplianceVersion.Builder getVersionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getVersionFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The OS and config version the benchmark was run on.
        +     * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + */ + public io.grafeas.v1.ComplianceVersionOrBuilder getVersionOrBuilder() { + if (versionBuilder_ != null) { + return versionBuilder_.getMessageOrBuilder(); + } else { + return version_ == null ? io.grafeas.v1.ComplianceVersion.getDefaultInstance() : version_; + } + } + /** + * + * + *
        +     * The OS and config version the benchmark was run on.
        +     * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.grafeas.v1.ComplianceVersion, + io.grafeas.v1.ComplianceVersion.Builder, + io.grafeas.v1.ComplianceVersionOrBuilder> + getVersionFieldBuilder() { + if (versionBuilder_ == null) { + versionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + io.grafeas.v1.ComplianceVersion, + io.grafeas.v1.ComplianceVersion.Builder, + io.grafeas.v1.ComplianceVersionOrBuilder>( + getVersion(), getParentForChildren(), isClean()); + version_ = null; + } + return versionBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrenceOrBuilder.java index 15b4f74b7045..8d513f3f86ba 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrenceOrBuilder.java @@ -49,4 +49,39 @@ public interface ComplianceOccurrenceOrBuilder * @return The bytes for nonComplianceReason. */ com.google.protobuf.ByteString getNonComplianceReasonBytes(); + + /** + * + * + *
        +   * The OS and config version the benchmark was run on.
        +   * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + * + * @return Whether the version field is set. + */ + boolean hasVersion(); + /** + * + * + *
        +   * The OS and config version the benchmark was run on.
        +   * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + * + * @return The version. + */ + io.grafeas.v1.ComplianceVersion getVersion(); + /** + * + * + *
        +   * The OS and config version the benchmark was run on.
        +   * 
        + * + * .grafeas.v1.ComplianceVersion version = 4; + */ + io.grafeas.v1.ComplianceVersionOrBuilder getVersionOrBuilder(); } diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Discovery.java b/java-grafeas/src/main/java/io/grafeas/v1/Discovery.java index a117300b0664..b00904da3fea 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Discovery.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Discovery.java @@ -45,6 +45,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_grafeas_v1_DiscoveryOccurrence_SBOMStatus_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grafeas_v1_DiscoveryOccurrence_SBOMStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_grafeas_v1_DiscoveryOccurrence_VulnerabilityAttestation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_grafeas_v1_DiscoveryOccurrence_VulnerabilityAttestation_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -59,7 +63,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e/protobuf/timestamp.proto\032\027google/rpc/s" + "tatus.proto\032\027grafeas/v1/common.proto\"<\n\r" + "DiscoveryNote\022+\n\ranalysis_kind\030\001 \001(\0162\024.g" - + "rafeas.v1.NoteKind\"\351\007\n\023DiscoveryOccurren" + + "rafeas.v1.NoteKind\"\374\n\n\023DiscoveryOccurren" + "ce\022O\n\023continuous_analysis\030\001 \001(\01622.grafea" + "s.v1.DiscoveryOccurrence.ContinuousAnaly" + "sis\022G\n\017analysis_status\030\002 \001(\0162..grafeas.v" @@ -72,21 +76,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e\030\005 \001(\0132\032.google.protobuf.Timestamp\0225\n\014a" + "rchive_time\030\006 \001(\0132\032.google.protobuf.Time" + "stampB\003\340A\003\022?\n\013sbom_status\030\t \001(\0132*.grafea" - + "s.v1.DiscoveryOccurrence.SBOMStatus\032*\n\021A" - + "nalysisCompleted\022\025\n\ranalysis_type\030\001 \003(\t\032" - + "\251\001\n\nSBOMStatus\022H\n\nsbom_state\030\001 \001(\01624.gra" - + "feas.v1.DiscoveryOccurrence.SBOMStatus.S" - + "BOMState\022\r\n\005error\030\002 \001(\t\"B\n\tSBOMState\022\032\n\026" - + "SBOM_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\014\n" - + "\010COMPLETE\020\002\"S\n\022ContinuousAnalysis\022#\n\037CON" - + "TINUOUS_ANALYSIS_UNSPECIFIED\020\000\022\n\n\006ACTIVE" - + "\020\001\022\014\n\010INACTIVE\020\002\"\243\001\n\016AnalysisStatus\022\037\n\033A" - + "NALYSIS_STATUS_UNSPECIFIED\020\000\022\013\n\007PENDING\020" - + "\001\022\014\n\010SCANNING\020\002\022\024\n\020FINISHED_SUCCESS\020\003\022\014\n" - + "\010COMPLETE\020\003\022\023\n\017FINISHED_FAILED\020\004\022\030\n\024FINI" - + "SHED_UNSUPPORTED\020\005\032\002\020\001BQ\n\rio.grafeas.v1P" - + "\001Z8google.golang.org/genproto/googleapis" - + "/grafeas/v1;grafeas\242\002\003GRAb\006proto3" + + "s.v1.DiscoveryOccurrence.SBOMStatus\022[\n\031v" + + "ulnerability_attestation\030\n \001(\01328.grafeas" + + ".v1.DiscoveryOccurrence.VulnerabilityAtt" + + "estation\032*\n\021AnalysisCompleted\022\025\n\ranalysi" + + "s_type\030\001 \003(\t\032\251\001\n\nSBOMStatus\022H\n\nsbom_stat" + + "e\030\001 \001(\01624.grafeas.v1.DiscoveryOccurrence" + + ".SBOMStatus.SBOMState\022\r\n\005error\030\002 \001(\t\"B\n\t" + + "SBOMState\022\032\n\026SBOM_STATE_UNSPECIFIED\020\000\022\013\n" + + "\007PENDING\020\001\022\014\n\010COMPLETE\020\002\032\263\002\n\030Vulnerabili" + + "tyAttestation\0225\n\021last_attempt_time\030\001 \001(\013" + + "2\032.google.protobuf.Timestamp\022e\n\005state\030\002 " + + "\001(\0162V.grafeas.v1.DiscoveryOccurrence.Vul" + + "nerabilityAttestation.VulnerabilityAttes" + + "tationState\022\r\n\005error\030\003 \001(\t\"j\n\035Vulnerabil" + + "ityAttestationState\022/\n+VULNERABILITY_ATT" + + "ESTATION_STATE_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020" + + "\001\022\013\n\007FAILURE\020\002\"S\n\022ContinuousAnalysis\022#\n\037" + + "CONTINUOUS_ANALYSIS_UNSPECIFIED\020\000\022\n\n\006ACT" + + "IVE\020\001\022\014\n\010INACTIVE\020\002\"\243\001\n\016AnalysisStatus\022\037" + + "\n\033ANALYSIS_STATUS_UNSPECIFIED\020\000\022\013\n\007PENDI" + + "NG\020\001\022\014\n\010SCANNING\020\002\022\024\n\020FINISHED_SUCCESS\020\003" + + "\022\014\n\010COMPLETE\020\003\022\023\n\017FINISHED_FAILED\020\004\022\030\n\024F" + + "INISHED_UNSUPPORTED\020\005\032\002\020\001BQ\n\rio.grafeas." + + "v1P\001Z8google.golang.org/genproto/googlea" + + "pis/grafeas/v1;grafeas\242\002\003GRAb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -119,6 +133,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LastScanTime", "ArchiveTime", "SbomStatus", + "VulnerabilityAttestation", }); internal_static_grafeas_v1_DiscoveryOccurrence_AnalysisCompleted_descriptor = internal_static_grafeas_v1_DiscoveryOccurrence_descriptor.getNestedTypes().get(0); @@ -136,6 +151,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "SbomState", "Error", }); + internal_static_grafeas_v1_DiscoveryOccurrence_VulnerabilityAttestation_descriptor = + internal_static_grafeas_v1_DiscoveryOccurrence_descriptor.getNestedTypes().get(2); + internal_static_grafeas_v1_DiscoveryOccurrence_VulnerabilityAttestation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_grafeas_v1_DiscoveryOccurrence_VulnerabilityAttestation_descriptor, + new java.lang.String[] { + "LastAttemptTime", "State", "Error", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrence.java index 3a196d03a290..89ef6604c056 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrence.java @@ -2135,6 +2135,1344 @@ public io.grafeas.v1.DiscoveryOccurrence.SBOMStatus getDefaultInstanceForType() } } + public interface VulnerabilityAttestationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * The last time we attempted to generate an attestation.
        +     * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + * + * @return Whether the lastAttemptTime field is set. + */ + boolean hasLastAttemptTime(); + /** + * + * + *
        +     * The last time we attempted to generate an attestation.
        +     * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + * + * @return The lastAttemptTime. + */ + com.google.protobuf.Timestamp getLastAttemptTime(); + /** + * + * + *
        +     * The last time we attempted to generate an attestation.
        +     * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getLastAttemptTimeOrBuilder(); + + /** + * + * + *
        +     * The success/failure state of the latest attestation attempt.
        +     * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
        +     * The success/failure state of the latest attestation attempt.
        +     * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; + * + * + * @return The state. + */ + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState + getState(); + + /** + * + * + *
        +     * If failure, the error reason for why the attestation generation failed.
        +     * 
        + * + * string error = 3; + * + * @return The error. + */ + java.lang.String getError(); + /** + * + * + *
        +     * If failure, the error reason for why the attestation generation failed.
        +     * 
        + * + * string error = 3; + * + * @return The bytes for error. + */ + com.google.protobuf.ByteString getErrorBytes(); + } + /** + * + * + *
        +   * The status of an vulnerability attestation generation.
        +   * 
        + * + * Protobuf type {@code grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation} + */ + public static final class VulnerabilityAttestation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation) + VulnerabilityAttestationOrBuilder { + private static final long serialVersionUID = 0L; + // Use VulnerabilityAttestation.newBuilder() to construct. + private VulnerabilityAttestation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VulnerabilityAttestation() { + state_ = 0; + error_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VulnerabilityAttestation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return io.grafeas.v1.Discovery + .internal_static_grafeas_v1_DiscoveryOccurrence_VulnerabilityAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grafeas.v1.Discovery + .internal_static_grafeas_v1_DiscoveryOccurrence_VulnerabilityAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.class, + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.Builder.class); + } + + /** + * + * + *
        +     * An enum indicating the state of the attestation generation.
        +     * 
        + * + * Protobuf enum {@code + * grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState} + */ + public enum VulnerabilityAttestationState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +       * Default unknown state.
        +       * 
        + * + * VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0; + */ + VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED(0), + /** + * + * + *
        +       * Attestation was successfully generated and stored.
        +       * 
        + * + * SUCCESS = 1; + */ + SUCCESS(1), + /** + * + * + *
        +       * Attestation was unsuccessfully generated and stored.
        +       * 
        + * + * FAILURE = 2; + */ + FAILURE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +       * Default unknown state.
        +       * 
        + * + * VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0; + */ + public static final int VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +       * Attestation was successfully generated and stored.
        +       * 
        + * + * SUCCESS = 1; + */ + public static final int SUCCESS_VALUE = 1; + /** + * + * + *
        +       * Attestation was unsuccessfully generated and stored.
        +       * 
        + * + * FAILURE = 2; + */ + public static final int FAILURE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static VulnerabilityAttestationState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static VulnerabilityAttestationState forNumber(int value) { + switch (value) { + case 0: + return VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED; + case 1: + return SUCCESS; + case 2: + return FAILURE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VulnerabilityAttestationState findValueByNumber(int number) { + return VulnerabilityAttestationState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final VulnerabilityAttestationState[] VALUES = values(); + + public static VulnerabilityAttestationState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private VulnerabilityAttestationState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState) + } + + private int bitField0_; + public static final int LAST_ATTEMPT_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp lastAttemptTime_; + /** + * + * + *
        +     * The last time we attempted to generate an attestation.
        +     * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + * + * @return Whether the lastAttemptTime field is set. + */ + @java.lang.Override + public boolean hasLastAttemptTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +     * The last time we attempted to generate an attestation.
        +     * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + * + * @return The lastAttemptTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastAttemptTime() { + return lastAttemptTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAttemptTime_; + } + /** + * + * + *
        +     * The last time we attempted to generate an attestation.
        +     * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastAttemptTimeOrBuilder() { + return lastAttemptTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAttemptTime_; + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + /** + * + * + *
        +     * The success/failure state of the latest attestation attempt.
        +     * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
        +     * The success/failure state of the latest attestation attempt.
        +     * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; + * + * + * @return The state. + */ + @java.lang.Override + public io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState + getState() { + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState + result = + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation + .VulnerabilityAttestationState.forNumber(state_); + return result == null + ? io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState + .UNRECOGNIZED + : result; + } + + public static final int ERROR_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object error_ = ""; + /** + * + * + *
        +     * If failure, the error reason for why the attestation generation failed.
        +     * 
        + * + * string error = 3; + * + * @return The error. + */ + @java.lang.Override + public java.lang.String getError() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } + } + /** + * + * + *
        +     * If failure, the error reason for why the attestation generation failed.
        +     * 
        + * + * string error = 3; + * + * @return The bytes for error. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getLastAttemptTime()); + } + if (state_ + != io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation + .VulnerabilityAttestationState.VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, error_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLastAttemptTime()); + } + if (state_ + != io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation + .VulnerabilityAttestationState.VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, error_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation)) { + return super.equals(obj); + } + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation other = + (io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation) obj; + + if (hasLastAttemptTime() != other.hasLastAttemptTime()) return false; + if (hasLastAttemptTime()) { + if (!getLastAttemptTime().equals(other.getLastAttemptTime())) return false; + } + if (state_ != other.state_) return false; + if (!getError().equals(other.getError())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLastAttemptTime()) { + hash = (37 * hash) + LAST_ATTEMPT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastAttemptTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +     * The status of an vulnerability attestation generation.
        +     * 
        + * + * Protobuf type {@code grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation) + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return io.grafeas.v1.Discovery + .internal_static_grafeas_v1_DiscoveryOccurrence_VulnerabilityAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.grafeas.v1.Discovery + .internal_static_grafeas_v1_DiscoveryOccurrence_VulnerabilityAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.class, + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.Builder.class); + } + + // Construct using io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLastAttemptTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lastAttemptTime_ = null; + if (lastAttemptTimeBuilder_ != null) { + lastAttemptTimeBuilder_.dispose(); + lastAttemptTimeBuilder_ = null; + } + state_ = 0; + error_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return io.grafeas.v1.Discovery + .internal_static_grafeas_v1_DiscoveryOccurrence_VulnerabilityAttestation_descriptor; + } + + @java.lang.Override + public io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation + getDefaultInstanceForType() { + return io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.getDefaultInstance(); + } + + @java.lang.Override + public io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation build() { + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation buildPartial() { + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation result = + new io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lastAttemptTime_ = + lastAttemptTimeBuilder_ == null ? lastAttemptTime_ : lastAttemptTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.error_ = error_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation) { + return mergeFrom((io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation other) { + if (other + == io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.getDefaultInstance()) + return this; + if (other.hasLastAttemptTime()) { + mergeLastAttemptTime(other.getLastAttemptTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getLastAttemptTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + error_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp lastAttemptTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastAttemptTimeBuilder_; + /** + * + * + *
        +       * The last time we attempted to generate an attestation.
        +       * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + * + * @return Whether the lastAttemptTime field is set. + */ + public boolean hasLastAttemptTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
        +       * The last time we attempted to generate an attestation.
        +       * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + * + * @return The lastAttemptTime. + */ + public com.google.protobuf.Timestamp getLastAttemptTime() { + if (lastAttemptTimeBuilder_ == null) { + return lastAttemptTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAttemptTime_; + } else { + return lastAttemptTimeBuilder_.getMessage(); + } + } + /** + * + * + *
        +       * The last time we attempted to generate an attestation.
        +       * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + */ + public Builder setLastAttemptTime(com.google.protobuf.Timestamp value) { + if (lastAttemptTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastAttemptTime_ = value; + } else { + lastAttemptTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * The last time we attempted to generate an attestation.
        +       * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + */ + public Builder setLastAttemptTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastAttemptTimeBuilder_ == null) { + lastAttemptTime_ = builderForValue.build(); + } else { + lastAttemptTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +       * The last time we attempted to generate an attestation.
        +       * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + */ + public Builder mergeLastAttemptTime(com.google.protobuf.Timestamp value) { + if (lastAttemptTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && lastAttemptTime_ != null + && lastAttemptTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastAttemptTimeBuilder().mergeFrom(value); + } else { + lastAttemptTime_ = value; + } + } else { + lastAttemptTimeBuilder_.mergeFrom(value); + } + if (lastAttemptTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
        +       * The last time we attempted to generate an attestation.
        +       * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + */ + public Builder clearLastAttemptTime() { + bitField0_ = (bitField0_ & ~0x00000001); + lastAttemptTime_ = null; + if (lastAttemptTimeBuilder_ != null) { + lastAttemptTimeBuilder_.dispose(); + lastAttemptTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +       * The last time we attempted to generate an attestation.
        +       * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getLastAttemptTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getLastAttemptTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
        +       * The last time we attempted to generate an attestation.
        +       * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getLastAttemptTimeOrBuilder() { + if (lastAttemptTimeBuilder_ != null) { + return lastAttemptTimeBuilder_.getMessageOrBuilder(); + } else { + return lastAttemptTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAttemptTime_; + } + } + /** + * + * + *
        +       * The last time we attempted to generate an attestation.
        +       * 
        + * + * .google.protobuf.Timestamp last_attempt_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLastAttemptTimeFieldBuilder() { + if (lastAttemptTimeBuilder_ == null) { + lastAttemptTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastAttemptTime(), getParentForChildren(), isClean()); + lastAttemptTime_ = null; + } + return lastAttemptTimeBuilder_; + } + + private int state_ = 0; + /** + * + * + *
        +       * The success/failure state of the latest attestation attempt.
        +       * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
        +       * The success/failure state of the latest attestation attempt.
        +       * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +       * The success/failure state of the latest attestation attempt.
        +       * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; + * + * + * @return The state. + */ + @java.lang.Override + public io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation + .VulnerabilityAttestationState + getState() { + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState + result = + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation + .VulnerabilityAttestationState.forNumber(state_); + return result == null + ? io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation + .VulnerabilityAttestationState.UNRECOGNIZED + : result; + } + /** + * + * + *
        +       * The success/failure state of the latest attestation attempt.
        +       * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +       * The success/failure state of the latest attestation attempt.
        +       * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object error_ = ""; + /** + * + * + *
        +       * If failure, the error reason for why the attestation generation failed.
        +       * 
        + * + * string error = 3; + * + * @return The error. + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +       * If failure, the error reason for why the attestation generation failed.
        +       * 
        + * + * string error = 3; + * + * @return The bytes for error. + */ + public com.google.protobuf.ByteString getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +       * If failure, the error reason for why the attestation generation failed.
        +       * 
        + * + * string error = 3; + * + * @param value The error to set. + * @return This builder for chaining. + */ + public Builder setError(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +       * If failure, the error reason for why the attestation generation failed.
        +       * 
        + * + * string error = 3; + * + * @return This builder for chaining. + */ + public Builder clearError() { + error_ = getDefaultInstance().getError(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +       * If failure, the error reason for why the attestation generation failed.
        +       * 
        + * + * string error = 3; + * + * @param value The bytes for error to set. + * @return This builder for chaining. + */ + public Builder setErrorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + error_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation) + } + + // @@protoc_insertion_point(class_scope:grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation) + private static final io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation(); + } + + public static io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerabilityAttestation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int CONTINUOUS_ANALYSIS_FIELD_NUMBER = 1; private int continuousAnalysis_ = 0; @@ -2570,6 +3908,60 @@ public io.grafeas.v1.DiscoveryOccurrence.SBOMStatusOrBuilder getSbomStatusOrBuil : sbomStatus_; } + public static final int VULNERABILITY_ATTESTATION_FIELD_NUMBER = 10; + private io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerabilityAttestation_; + /** + * + * + *
        +   * The status of an vulnerability attestation generation.
        +   * 
        + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + * + * @return Whether the vulnerabilityAttestation field is set. + */ + @java.lang.Override + public boolean hasVulnerabilityAttestation() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
        +   * The status of an vulnerability attestation generation.
        +   * 
        + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + * + * @return The vulnerabilityAttestation. + */ + @java.lang.Override + public io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation getVulnerabilityAttestation() { + return vulnerabilityAttestation_ == null + ? io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.getDefaultInstance() + : vulnerabilityAttestation_; + } + /** + * + * + *
        +   * The status of an vulnerability attestation generation.
        +   * 
        + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + */ + @java.lang.Override + public io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestationOrBuilder + getVulnerabilityAttestationOrBuilder() { + return vulnerabilityAttestation_ == null + ? io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.getDefaultInstance() + : vulnerabilityAttestation_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2615,6 +4007,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(9, getSbomStatus()); } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(10, getVulnerabilityAttestation()); + } getUnknownFields().writeTo(output); } @@ -2655,6 +4050,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSbomStatus()); } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getVulnerabilityAttestation()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2694,6 +4094,10 @@ public boolean equals(final java.lang.Object obj) { if (hasSbomStatus()) { if (!getSbomStatus().equals(other.getSbomStatus())) return false; } + if (hasVulnerabilityAttestation() != other.hasVulnerabilityAttestation()) return false; + if (hasVulnerabilityAttestation()) { + if (!getVulnerabilityAttestation().equals(other.getVulnerabilityAttestation())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2735,6 +4139,10 @@ public int hashCode() { hash = (37 * hash) + SBOM_STATUS_FIELD_NUMBER; hash = (53 * hash) + getSbomStatus().hashCode(); } + if (hasVulnerabilityAttestation()) { + hash = (37 * hash) + VULNERABILITY_ATTESTATION_FIELD_NUMBER; + hash = (53 * hash) + getVulnerabilityAttestation().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2879,6 +4287,7 @@ private void maybeForceBuilderInitialization() { getLastScanTimeFieldBuilder(); getArchiveTimeFieldBuilder(); getSbomStatusFieldBuilder(); + getVulnerabilityAttestationFieldBuilder(); } } @@ -2921,6 +4330,11 @@ public Builder clear() { sbomStatusBuilder_.dispose(); sbomStatusBuilder_ = null; } + vulnerabilityAttestation_ = null; + if (vulnerabilityAttestationBuilder_ != null) { + vulnerabilityAttestationBuilder_.dispose(); + vulnerabilityAttestationBuilder_ = null; + } return this; } @@ -3006,6 +4420,13 @@ private void buildPartial0(io.grafeas.v1.DiscoveryOccurrence result) { result.sbomStatus_ = sbomStatusBuilder_ == null ? sbomStatus_ : sbomStatusBuilder_.build(); to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.vulnerabilityAttestation_ = + vulnerabilityAttestationBuilder_ == null + ? vulnerabilityAttestation_ + : vulnerabilityAttestationBuilder_.build(); + to_bitField0_ |= 0x00000020; + } result.bitField0_ |= to_bitField0_; } @@ -3107,6 +4528,9 @@ public Builder mergeFrom(io.grafeas.v1.DiscoveryOccurrence other) { if (other.hasSbomStatus()) { mergeSbomStatus(other.getSbomStatus()); } + if (other.hasVulnerabilityAttestation()) { + mergeVulnerabilityAttestation(other.getVulnerabilityAttestation()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3195,6 +4619,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 74 + case 82: + { + input.readMessage( + getVulnerabilityAttestationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4761,6 +6192,217 @@ public io.grafeas.v1.DiscoveryOccurrence.SBOMStatusOrBuilder getSbomStatusOrBuil return sbomStatusBuilder_; } + private io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerabilityAttestation_; + private com.google.protobuf.SingleFieldBuilderV3< + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation, + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.Builder, + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestationOrBuilder> + vulnerabilityAttestationBuilder_; + /** + * + * + *
        +     * The status of an vulnerability attestation generation.
        +     * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + * + * @return Whether the vulnerabilityAttestation field is set. + */ + public boolean hasVulnerabilityAttestation() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
        +     * The status of an vulnerability attestation generation.
        +     * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + * + * @return The vulnerabilityAttestation. + */ + public io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation + getVulnerabilityAttestation() { + if (vulnerabilityAttestationBuilder_ == null) { + return vulnerabilityAttestation_ == null + ? io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.getDefaultInstance() + : vulnerabilityAttestation_; + } else { + return vulnerabilityAttestationBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * The status of an vulnerability attestation generation.
        +     * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + */ + public Builder setVulnerabilityAttestation( + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation value) { + if (vulnerabilityAttestationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vulnerabilityAttestation_ = value; + } else { + vulnerabilityAttestationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
        +     * The status of an vulnerability attestation generation.
        +     * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + */ + public Builder setVulnerabilityAttestation( + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.Builder builderForValue) { + if (vulnerabilityAttestationBuilder_ == null) { + vulnerabilityAttestation_ = builderForValue.build(); + } else { + vulnerabilityAttestationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
        +     * The status of an vulnerability attestation generation.
        +     * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + */ + public Builder mergeVulnerabilityAttestation( + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation value) { + if (vulnerabilityAttestationBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && vulnerabilityAttestation_ != null + && vulnerabilityAttestation_ + != io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation + .getDefaultInstance()) { + getVulnerabilityAttestationBuilder().mergeFrom(value); + } else { + vulnerabilityAttestation_ = value; + } + } else { + vulnerabilityAttestationBuilder_.mergeFrom(value); + } + if (vulnerabilityAttestation_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * The status of an vulnerability attestation generation.
        +     * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + */ + public Builder clearVulnerabilityAttestation() { + bitField0_ = (bitField0_ & ~0x00000200); + vulnerabilityAttestation_ = null; + if (vulnerabilityAttestationBuilder_ != null) { + vulnerabilityAttestationBuilder_.dispose(); + vulnerabilityAttestationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * The status of an vulnerability attestation generation.
        +     * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + */ + public io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.Builder + getVulnerabilityAttestationBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getVulnerabilityAttestationFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * The status of an vulnerability attestation generation.
        +     * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + */ + public io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestationOrBuilder + getVulnerabilityAttestationOrBuilder() { + if (vulnerabilityAttestationBuilder_ != null) { + return vulnerabilityAttestationBuilder_.getMessageOrBuilder(); + } else { + return vulnerabilityAttestation_ == null + ? io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.getDefaultInstance() + : vulnerabilityAttestation_; + } + } + /** + * + * + *
        +     * The status of an vulnerability attestation generation.
        +     * 
        + * + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation, + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.Builder, + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestationOrBuilder> + getVulnerabilityAttestationFieldBuilder() { + if (vulnerabilityAttestationBuilder_ == null) { + vulnerabilityAttestationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation, + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.Builder, + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestationOrBuilder>( + getVulnerabilityAttestation(), getParentForChildren(), isClean()); + vulnerabilityAttestation_ = null; + } + return vulnerabilityAttestationBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrenceOrBuilder.java index e56045d5048c..b7cbb640e837 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrenceOrBuilder.java @@ -319,4 +319,43 @@ public interface DiscoveryOccurrenceOrBuilder * .grafeas.v1.DiscoveryOccurrence.SBOMStatus sbom_status = 9; */ io.grafeas.v1.DiscoveryOccurrence.SBOMStatusOrBuilder getSbomStatusOrBuilder(); + + /** + * + * + *
        +   * The status of an vulnerability attestation generation.
        +   * 
        + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + * + * @return Whether the vulnerabilityAttestation field is set. + */ + boolean hasVulnerabilityAttestation(); + /** + * + * + *
        +   * The status of an vulnerability attestation generation.
        +   * 
        + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + * + * @return The vulnerabilityAttestation. + */ + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation getVulnerabilityAttestation(); + /** + * + * + *
        +   * The status of an vulnerability attestation generation.
        +   * 
        + * + * .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * + */ + io.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestationOrBuilder + getVulnerabilityAttestationOrBuilder(); } diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasOuterClass.java b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasOuterClass.java index c0f5bfaae80e..7792d5800cce 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasOuterClass.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasOuterClass.java @@ -240,7 +240,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rafeas.io/Project\0220\n\013occurrences\030\002 \003(\0132\026" + ".grafeas.v1.OccurrenceB\003\340A\002\"M\n\036BatchCrea" + "teOccurrencesResponse\022+\n\013occurrences\030\001 \003" - + "(\0132\026.grafeas.v1.Occurrence2\307\022\n\007Grafeas\022\260" + + "(\0132\026.grafeas.v1.Occurrence2\215\026\n\007Grafeas\022\260" + "\001\n\rGetOccurrence\022 .grafeas.v1.GetOccurre" + "nceRequest\032\026.grafeas.v1.Occurrence\"e\332A\004n" + "ame\202\323\344\223\002X\022#/v1/{name=projects/*/occurren" @@ -250,60 +250,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "eas.v1.ListOccurrencesResponse\"n\332A\rparen" + "t,filter\202\323\344\223\002X\022#/v1/{parent=projects/*}/" + "occurrencesZ1\022//v1/{parent=projects/*/lo" - + "cations/*}/occurrences\022\203\001\n\020DeleteOccurre" + + "cations/*}/occurrences\022\266\001\n\020DeleteOccurre" + "nce\022#.grafeas.v1.DeleteOccurrenceRequest" - + "\032\026.google.protobuf.Empty\"2\332A\004name\202\323\344\223\002%*" - + "#/v1/{name=projects/*/occurrences/*}\022\234\001\n" - + "\020CreateOccurrence\022#.grafeas.v1.CreateOcc" - + "urrenceRequest\032\026.grafeas.v1.Occurrence\"K" - + "\332A\021parent,occurrence\202\323\344\223\0021\"#/v1/{parent=" - + "projects/*}/occurrences:\noccurrence\022\300\001\n\026" - + "BatchCreateOccurrences\022).grafeas.v1.Batc" - + "hCreateOccurrencesRequest\032*.grafeas.v1.B" - + "atchCreateOccurrencesResponse\"O\332A\022parent" - + ",occurrences\202\323\344\223\0024\"//v1/{parent=projects" - + "/*}/occurrences:batchCreate:\001*\022\246\001\n\020Updat" - + "eOccurrence\022#.grafeas.v1.UpdateOccurrenc" - + "eRequest\032\026.grafeas.v1.Occurrence\"U\332A\033nam" - + "e,occurrence,update_mask\202\323\344\223\00212#/v1/{nam" - + "e=projects/*/occurrences/*}:\noccurrence\022" - + "\276\001\n\021GetOccurrenceNote\022$.grafeas.v1.GetOc" - + "currenceNoteRequest\032\020.grafeas.v1.Note\"q\332" - + "A\004name\202\323\344\223\002d\022)/v1/{name=projects/*/occur" - + "rences/*}/notesZ7\0225/v1/{name=projects/*/" - + "locations/*/occurrences/*}/notes\022\222\001\n\007Get" - + "Note\022\032.grafeas.v1.GetNoteRequest\032\020.grafe" - + "as.v1.Note\"Y\332A\004name\202\323\344\223\002L\022\035/v1/{name=pro" - + "jects/*/notes/*}Z+\022)/v1/{name=projects/*" - + "/locations/*/notes/*}\022\254\001\n\tListNotes\022\034.gr" - + "afeas.v1.ListNotesRequest\032\035.grafeas.v1.L" - + "istNotesResponse\"b\332A\rparent,filter\202\323\344\223\002L" - + "\022\035/v1/{parent=projects/*}/notesZ+\022)/v1/{" - + "parent=projects/*/locations/*}/notes\022q\n\n" - + "DeleteNote\022\035.grafeas.v1.DeleteNoteReques" - + "t\032\026.google.protobuf.Empty\",\332A\004name\202\323\344\223\002\037" - + "*\035/v1/{name=projects/*/notes/*}\022\200\001\n\nCrea" - + "teNote\022\035.grafeas.v1.CreateNoteRequest\032\020." - + "grafeas.v1.Note\"A\332A\023parent,note_id,note\202" - + "\323\344\223\002%\"\035/v1/{parent=projects/*}/notes:\004no" - + "te\022\242\001\n\020BatchCreateNotes\022#.grafeas.v1.Bat" - + "chCreateNotesRequest\032$.grafeas.v1.BatchC" - + "reateNotesResponse\"C\332A\014parent,notes\202\323\344\223\002" - + ".\")/v1/{parent=projects/*}/notes:batchCr" - + "eate:\001*\022\202\001\n\nUpdateNote\022\035.grafeas.v1.Upda" - + "teNoteRequest\032\020.grafeas.v1.Note\"C\332A\025name" - + ",note,update_mask\202\323\344\223\002%2\035/v1/{name=proje" - + "cts/*/notes/*}:\004note\022\340\001\n\023ListNoteOccurre" - + "nces\022&.grafeas.v1.ListNoteOccurrencesReq" - + "uest\032\'.grafeas.v1.ListNoteOccurrencesRes" - + "ponse\"x\332A\013name,filter\202\323\344\223\002d\022)/v1/{name=p" - + "rojects/*/notes/*}/occurrencesZ7\0225/v1/{n" - + "ame=projects/*/locations/*/notes/*}/occu" - + "rrences\032#\312A containeranalysis.googleapis" - + ".comB|\n\rio.grafeas.v1P\001Z8google.golang.o" - + "rg/genproto/googleapis/grafeas/v1;grafea" - + "s\242\002\003GRA\352A(\n\022grafeas.io/Project\022\022projects" - + "/{project}b\006proto3" + + "\032\026.google.protobuf.Empty\"e\332A\004name\202\323\344\223\002X*" + + "#/v1/{name=projects/*/occurrences/*}Z1*/" + + "/v1/{name=projects/*/locations/*/occurre" + + "nces/*}\022\334\001\n\020CreateOccurrence\022#.grafeas.v" + + "1.CreateOccurrenceRequest\032\026.grafeas.v1.O" + + "ccurrence\"\212\001\332A\021parent,occurrence\202\323\344\223\002p\"#" + + "/v1/{parent=projects/*}/occurrences:\nocc" + + "urrenceZ=\"//v1/{parent=projects/*/locati" + + "ons/*}/occurrences:\noccurrence\022\203\002\n\026Batch" + + "CreateOccurrences\022).grafeas.v1.BatchCrea" + + "teOccurrencesRequest\032*.grafeas.v1.BatchC" + + "reateOccurrencesResponse\"\221\001\332A\022parent,occ" + + "urrences\202\323\344\223\002v\"//v1/{parent=projects/*}/" + + "occurrences:batchCreate:\001*Z@\";/v1/{paren" + + "t=projects/*/locations/*}/occurrences:ba" + + "tchCreate:\001*\022\346\001\n\020UpdateOccurrence\022#.graf" + + "eas.v1.UpdateOccurrenceRequest\032\026.grafeas" + + ".v1.Occurrence\"\224\001\332A\033name,occurrence,upda" + + "te_mask\202\323\344\223\002p2#/v1/{name=projects/*/occu" + + "rrences/*}:\noccurrenceZ=2//v1/{name=proj" + + "ects/*/locations/*/occurrences/*}:\noccur" + + "rence\022\276\001\n\021GetOccurrenceNote\022$.grafeas.v1" + + ".GetOccurrenceNoteRequest\032\020.grafeas.v1.N" + + "ote\"q\332A\004name\202\323\344\223\002d\022)/v1/{name=projects/*" + + "/occurrences/*}/notesZ7\0225/v1/{name=proje" + + "cts/*/locations/*/occurrences/*}/notes\022\222" + + "\001\n\007GetNote\022\032.grafeas.v1.GetNoteRequest\032\020" + + ".grafeas.v1.Note\"Y\332A\004name\202\323\344\223\002L\022\035/v1/{na" + + "me=projects/*/notes/*}Z+\022)/v1/{name=proj" + + "ects/*/locations/*/notes/*}\022\254\001\n\tListNote" + + "s\022\034.grafeas.v1.ListNotesRequest\032\035.grafea" + + "s.v1.ListNotesResponse\"b\332A\rparent,filter" + + "\202\323\344\223\002L\022\035/v1/{parent=projects/*}/notesZ+\022" + + ")/v1/{parent=projects/*/locations/*}/not" + + "es\022\236\001\n\nDeleteNote\022\035.grafeas.v1.DeleteNot" + + "eRequest\032\026.google.protobuf.Empty\"Y\332A\004nam" + + "e\202\323\344\223\002L*\035/v1/{name=projects/*/notes/*}Z+" + + "*)/v1/{name=projects/*/locations/*/notes" + + "/*}\022\263\001\n\nCreateNote\022\035.grafeas.v1.CreateNo" + + "teRequest\032\020.grafeas.v1.Note\"t\332A\023parent,n" + + "ote_id,note\202\323\344\223\002X\"\035/v1/{parent=projects/" + + "*}/notes:\004noteZ1\")/v1/{parent=projects/*" + + "/locations/*}/notes:\004note\022\336\001\n\020BatchCreat" + + "eNotes\022#.grafeas.v1.BatchCreateNotesRequ" + + "est\032$.grafeas.v1.BatchCreateNotesRespons" + + "e\"\177\332A\014parent,notes\202\323\344\223\002j\")/v1/{parent=pr" + + "ojects/*}/notes:batchCreate:\001*Z:\"5/v1/{p" + + "arent=projects/*/locations/*}/notes:batc" + + "hCreate:\001*\022\265\001\n\nUpdateNote\022\035.grafeas.v1.U" + + "pdateNoteRequest\032\020.grafeas.v1.Note\"v\332A\025n" + + "ame,note,update_mask\202\323\344\223\002X2\035/v1/{name=pr" + + "ojects/*/notes/*}:\004noteZ12)/v1/{name=pro" + + "jects/*/locations/*/notes/*}:\004note\022\340\001\n\023L" + + "istNoteOccurrences\022&.grafeas.v1.ListNote" + + "OccurrencesRequest\032\'.grafeas.v1.ListNote" + + "OccurrencesResponse\"x\332A\013name,filter\202\323\344\223\002" + + "d\022)/v1/{name=projects/*/notes/*}/occurre" + + "ncesZ7\0225/v1/{name=projects/*/locations/*" + + "/notes/*}/occurrences\032#\312A containeranaly" + + "sis.googleapis.comB|\n\rio.grafeas.v1P\001Z8g" + + "oogle.golang.org/genproto/googleapis/gra" + + "feas/v1;grafeas\242\002\003GRA\352A(\n\022grafeas.io/Pro" + + "ject\022\022projects/{project}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-grafeas/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java b/java-grafeas/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java index ae23c0aefc1a..2068c62a7349 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.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; @@ -405,6 +406,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return null; } diff --git a/java-grafeas/src/main/proto/grafeas/v1/compliance.proto b/java-grafeas/src/main/proto/grafeas/v1/compliance.proto index 0c14dad68d5d..4a620edd3e0f 100644 --- a/java-grafeas/src/main/proto/grafeas/v1/compliance.proto +++ b/java-grafeas/src/main/proto/grafeas/v1/compliance.proto @@ -69,6 +69,8 @@ message ComplianceVersion { message ComplianceOccurrence { repeated NonCompliantFile non_compliant_files = 2; string non_compliance_reason = 3; + // The OS and config version the benchmark was run on. + grafeas.v1.ComplianceVersion version = 4; } // Details about files that caused a compliance check to fail. diff --git a/java-grafeas/src/main/proto/grafeas/v1/discovery.proto b/java-grafeas/src/main/proto/grafeas/v1/discovery.proto index bd37ac214a83..9e9bd184802e 100644 --- a/java-grafeas/src/main/proto/grafeas/v1/discovery.proto +++ b/java-grafeas/src/main/proto/grafeas/v1/discovery.proto @@ -123,4 +123,29 @@ message DiscoveryOccurrence { // The status of an SBOM generation. SBOMStatus sbom_status = 9; + + // The status of an vulnerability attestation generation. + message VulnerabilityAttestation { + // An enum indicating the state of the attestation generation. + enum VulnerabilityAttestationState { + // Default unknown state. + VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0; + // Attestation was successfully generated and stored. + SUCCESS = 1; + // Attestation was unsuccessfully generated and stored. + FAILURE = 2; + } + + // The last time we attempted to generate an attestation. + google.protobuf.Timestamp last_attempt_time = 1; + + // The success/failure state of the latest attestation attempt. + VulnerabilityAttestationState state = 2; + + // If failure, the error reason for why the attestation generation failed. + string error = 3; + } + + // The status of an vulnerability attestation generation. + VulnerabilityAttestation vulnerability_attestation = 10; } diff --git a/java-grafeas/src/main/proto/grafeas/v1/grafeas.proto b/java-grafeas/src/main/proto/grafeas/v1/grafeas.proto index 84d3f7a24ca9..06f117f42faa 100644 --- a/java-grafeas/src/main/proto/grafeas/v1/grafeas.proto +++ b/java-grafeas/src/main/proto/grafeas/v1/grafeas.proto @@ -93,6 +93,9 @@ service Grafeas { returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=projects/*/occurrences/*}" + additional_bindings { + delete: "/v1/{name=projects/*/locations/*/occurrences/*}" + } }; option (google.api.method_signature) = "name"; } @@ -102,6 +105,10 @@ service Grafeas { option (google.api.http) = { post: "/v1/{parent=projects/*}/occurrences" body: "occurrence" + additional_bindings { + post: "/v1/{parent=projects/*/locations/*}/occurrences" + body: "occurrence" + } }; option (google.api.method_signature) = "parent,occurrence"; } @@ -112,6 +119,10 @@ service Grafeas { option (google.api.http) = { post: "/v1/{parent=projects/*}/occurrences:batchCreate" body: "*" + additional_bindings { + post: "/v1/{parent=projects/*/locations/*}/occurrences:batchCreate" + body: "*" + } }; option (google.api.method_signature) = "parent,occurrences"; } @@ -121,6 +132,10 @@ service Grafeas { option (google.api.http) = { patch: "/v1/{name=projects/*/occurrences/*}" body: "occurrence" + additional_bindings { + patch: "/v1/{name=projects/*/locations/*/occurrences/*}" + body: "occurrence" + } }; option (google.api.method_signature) = "name,occurrence,update_mask"; } @@ -159,6 +174,9 @@ service Grafeas { rpc DeleteNote(DeleteNoteRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=projects/*/notes/*}" + additional_bindings { + delete: "/v1/{name=projects/*/locations/*/notes/*}" + } }; option (google.api.method_signature) = "name"; } @@ -168,6 +186,10 @@ service Grafeas { option (google.api.http) = { post: "/v1/{parent=projects/*}/notes" body: "note" + additional_bindings { + post: "/v1/{parent=projects/*/locations/*}/notes" + body: "note" + } }; option (google.api.method_signature) = "parent,note_id,note"; } @@ -178,6 +200,10 @@ service Grafeas { option (google.api.http) = { post: "/v1/{parent=projects/*}/notes:batchCreate" body: "*" + additional_bindings { + post: "/v1/{parent=projects/*/locations/*}/notes:batchCreate" + body: "*" + } }; option (google.api.method_signature) = "parent,notes"; } @@ -187,6 +213,10 @@ service Grafeas { option (google.api.http) = { patch: "/v1/{name=projects/*/notes/*}" body: "note" + additional_bindings { + patch: "/v1/{name=projects/*/locations/*/notes/*}" + body: "note" + } }; option (google.api.method_signature) = "name,note,update_mask"; } diff --git a/java-grafeas/src/main/resources/META-INF/native-image/io.grafeas.v1/reflect-config.json b/java-grafeas/src/main/resources/META-INF/native-image/io.grafeas.v1/reflect-config.json index ef91d93d2f56..bc21b1557e93 100644 --- a/java-grafeas/src/main/resources/META-INF/native-image/io.grafeas.v1/reflect-config.json +++ b/java-grafeas/src/main/resources/META-INF/native-image/io.grafeas.v1/reflect-config.json @@ -2105,6 +2105,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "io.grafeas.v1.DiscoveryOccurrence$VulnerabilityAttestation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "io.grafeas.v1.DiscoveryOccurrence$VulnerabilityAttestation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "io.grafeas.v1.DiscoveryOccurrence$VulnerabilityAttestation$VulnerabilityAttestationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "io.grafeas.v1.Distribution", "queryAllDeclaredConstructors": true, diff --git a/java-gsuite-addons/README.md b/java-gsuite-addons/README.md index c8a211e13221..55d7d16e00d4 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/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-gsuite-addons.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.46.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-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java index e8e7e79c77ec..3d41eba8e638 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.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; @@ -252,6 +253,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "gsuiteaddons.googleapis.com:443"; } diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index 36a8f95e7375..68c1611bc840 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/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-iam-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.41.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-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java index 90bc8c98926e..625b23ca2cad 100644 --- a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java +++ b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.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; @@ -647,6 +648,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "iam.googleapis.com:443"; } diff --git a/java-iam/README.md b/java-iam/README.md index 05f5f977ade3..ed3f40f46148 100644 --- a/java-iam/README.md +++ b/java-iam/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-iam-policy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.44.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-iam/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStubSettings.java b/java-iam/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStubSettings.java index d190c75565e2..c3d6f8bd36c7 100644 --- a/java-iam/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStubSettings.java +++ b/java-iam/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStubSettings.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; @@ -246,6 +247,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "iam.googleapis.com:443"; } diff --git a/java-iam/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStubSettings.java b/java-iam/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStubSettings.java index 9413898218a8..20305d0c5d7c 100644 --- a/java-iam/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStubSettings.java +++ b/java-iam/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStubSettings.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; @@ -247,6 +248,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "iam.googleapis.com:443"; } diff --git a/java-iamcredentials/README.md b/java-iamcredentials/README.md index 5b436e9b4763..475cb65b37b8 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/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-iamcredentials.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.46.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-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java b/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java index d8b9ff9466bc..c6bf0a10b00e 100644 --- a/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java +++ b/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -152,6 +153,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "iamcredentials.googleapis.com:443"; } diff --git a/java-iap/README.md b/java-iap/README.md index 29c18da605e9..9da50a6b893f 100644 --- a/java-iap/README.md +++ b/java-iap/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-iap.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.2.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-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyAdminServiceStubSettings.java b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyAdminServiceStubSettings.java index 7da5e8d1c8e4..6306ed586b3a 100644 --- a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyAdminServiceStubSettings.java +++ b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyAdminServiceStubSettings.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; @@ -285,6 +286,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "iap.googleapis.com:443"; } diff --git a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyOAuthServiceStubSettings.java b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyOAuthServiceStubSettings.java index 8d1b3139c46d..94c705e85021 100644 --- a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyOAuthServiceStubSettings.java +++ b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyOAuthServiceStubSettings.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; @@ -286,6 +287,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "iap.googleapis.com:443"; } diff --git a/java-ids/README.md b/java-ids/README.md index 232f7f682650..fa79ddefd8c8 100644 --- a/java-ids/README.md +++ b/java-ids/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-ids.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.45.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-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStubSettings.java b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStubSettings.java index 96662c8b218e..b12d7931a705 100644 --- a/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStubSettings.java +++ b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStubSettings.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 "ids.googleapis.com:443"; } diff --git a/java-infra-manager/README.md b/java-infra-manager/README.md index e85d2cddbfdd..af0994ce0ea4 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/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-infra-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.23.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-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java index 2d6ec2d9bd27..3fc10cbd30fb 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.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; @@ -771,6 +772,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "config.googleapis.com:443"; } diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json b/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json index d2f0be0a32be..6411b30ba2d7 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json +++ b/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.config.v1.ApplyResults", "queryAllDeclaredConstructors": true, diff --git a/java-iot/README.md b/java-iot/README.md index 0b70c7c046fe..933ab647d35f 100644 --- a/java-iot/README.md +++ b/java-iot/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-iot.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.46.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-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java b/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java index 846f6e6e0d46..8374cdac6481 100644 --- a/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java +++ b/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.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; @@ -419,6 +420,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudiot.googleapis.com:443"; } diff --git a/java-kms/README.md b/java-kms/README.md index 69a7017972f7..1e41825b63ae 100644 --- a/java-kms/README.md +++ b/java-kms/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-kms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.49.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-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyAdminStubSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyAdminStubSettings.java index 2483df4e97f4..e23e1a1933f0 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyAdminStubSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyAdminStubSettings.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; @@ -252,6 +253,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudkms.googleapis.com:443"; } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyStubSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyStubSettings.java index 8642e5dea5fe..71e9cad4dff9 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyStubSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyStubSettings.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; @@ -261,6 +262,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudkms.googleapis.com:443"; } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java index 08e73fcf4307..90d3d4d1f068 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.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; @@ -348,6 +349,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudkms.googleapis.com:443"; } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java index b0d9a6a04198..de2d17a48c6f 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.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; @@ -708,6 +709,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudkms.googleapis.com:443"; } diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index 1d9a27f0ce40..c085dd2d4879 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/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.cloud/google-cloud-kmsinventory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/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-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java index 5f1bc78c0567..a971f24b5200 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.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; @@ -192,6 +193,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "kmsinventory.googleapis.com:443"; } diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java index 80127e6df7cf..52daecb7e7ac 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.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 "kmsinventory.googleapis.com:443"; } diff --git a/java-language/README.md b/java-language/README.md index cb27f0260347..72b4fed7ac80 100644 --- a/java-language/README.md +++ b/java-language/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 @@ -227,7 +227,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-language.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/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-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java index 2a48105d553b..3315d8f2f23d 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -181,6 +182,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "language.googleapis.com:443"; } diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java index adbf8671de25..0e6dada8ea51 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -182,6 +183,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "language.googleapis.com:443"; } diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/LanguageServiceStubSettings.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/LanguageServiceStubSettings.java index c10c3a35eb3d..695802f2f9ea 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/LanguageServiceStubSettings.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/LanguageServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -162,6 +163,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "language.googleapis.com:443"; } diff --git a/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v2/reflect-config.json b/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v2/reflect-config.json index d907303239c1..09b7ade2bc6d 100644 --- a/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v2/reflect-config.json +++ b/java-language/google-cloud-language/src/main/resources/META-INF/native-image/com.google.cloud.language.v2/reflect-config.json @@ -665,6 +665,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.language.v2.ModerateTextRequest$ModelVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.language.v2.ModerateTextResponse", "queryAllDeclaredConstructors": true, diff --git a/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ClassificationCategory.java b/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ClassificationCategory.java index f038ab2ecc96..fe331df89134 100644 --- a/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ClassificationCategory.java +++ b/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ClassificationCategory.java @@ -133,6 +133,26 @@ public float getConfidence() { return confidence_; } + public static final int SEVERITY_FIELD_NUMBER = 3; + private float severity_ = 0F; + /** + * + * + *
        +   * Optional. The classifier's severity of the category. This is only present
        +   * when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and
        +   * the corresponding category has a severity score.
        +   * 
        + * + * float severity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The severity. + */ + @java.lang.Override + public float getSeverity() { + return severity_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -153,6 +173,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { output.writeFloat(2, confidence_); } + if (java.lang.Float.floatToRawIntBits(severity_) != 0) { + output.writeFloat(3, severity_); + } getUnknownFields().writeTo(output); } @@ -168,6 +191,9 @@ public int getSerializedSize() { if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } + if (java.lang.Float.floatToRawIntBits(severity_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, severity_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -187,6 +213,8 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + if (java.lang.Float.floatToIntBits(getSeverity()) + != java.lang.Float.floatToIntBits(other.getSeverity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,6 +230,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getSeverity()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -343,6 +373,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; confidence_ = 0F; + severity_ = 0F; return this; } @@ -385,6 +416,9 @@ private void buildPartial0(com.google.cloud.language.v2.ClassificationCategory r if (((from_bitField0_ & 0x00000002) != 0)) { result.confidence_ = confidence_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.severity_ = severity_; + } } @java.lang.Override @@ -441,6 +475,9 @@ public Builder mergeFrom(com.google.cloud.language.v2.ClassificationCategory oth if (other.getConfidence() != 0F) { setConfidence(other.getConfidence()); } + if (other.getSeverity() != 0F) { + setSeverity(other.getSeverity()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -479,6 +516,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 21 + case 29: + { + severity_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 29 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -660,6 +703,65 @@ public Builder clearConfidence() { return this; } + private float severity_; + /** + * + * + *
        +     * Optional. The classifier's severity of the category. This is only present
        +     * when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and
        +     * the corresponding category has a severity score.
        +     * 
        + * + * float severity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The severity. + */ + @java.lang.Override + public float getSeverity() { + return severity_; + } + /** + * + * + *
        +     * Optional. The classifier's severity of the category. This is only present
        +     * when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and
        +     * the corresponding category has a severity score.
        +     * 
        + * + * float severity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(float value) { + + severity_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. The classifier's severity of the category. This is only present
        +     * when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and
        +     * the corresponding category has a severity score.
        +     * 
        + * + * float severity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000004); + severity_ = 0F; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ClassificationCategoryOrBuilder.java b/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ClassificationCategoryOrBuilder.java index 30da579110ab..fb6e07b07556 100644 --- a/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ClassificationCategoryOrBuilder.java +++ b/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ClassificationCategoryOrBuilder.java @@ -62,4 +62,19 @@ public interface ClassificationCategoryOrBuilder * @return The confidence. */ float getConfidence(); + + /** + * + * + *
        +   * Optional. The classifier's severity of the category. This is only present
        +   * when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and
        +   * the corresponding category has a severity score.
        +   * 
        + * + * float severity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The severity. + */ + float getSeverity(); } diff --git a/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/Entity.java b/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/Entity.java index c04ef161fb4e..8886d37a2ed2 100644 --- a/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/Entity.java +++ b/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/Entity.java @@ -83,8 +83,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
        -   * The type of the entity. For most entity types, the associated metadata is a
        -   * Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`). The table
        +   * The type of the entity. The table
            * below lists the associated fields for entities that have different
            * metadata.
            * 
        @@ -205,7 +204,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * * `locality` - city or town * * `street_name` - street/route name, if detected * * `postal_code` - postal code, if detected - * * `country` - country, if detected< + * * `country` - country, if detected * * `broad_region` - administrative area, such as the state, if detected * * `narrow_region` - smaller administrative area, such as county, if * detected @@ -372,7 +371,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * * `locality` - city or town * * `street_name` - street/route name, if detected * * `postal_code` - postal code, if detected - * * `country` - country, if detected< + * * `country` - country, if detected * * `broad_region` - administrative area, such as the state, if detected * * `narrow_region` - smaller administrative area, such as county, if * detected @@ -646,8 +645,7 @@ public int getMetadataCount() { *
            * Metadata associated with the entity.
            *
        -   * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -   * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +   * For the metadata
            * associated with other entity types, see the Type table below.
            * 
        * @@ -672,8 +670,7 @@ public java.util.Map getMetadata() { *
            * Metadata associated with the entity.
            *
        -   * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -   * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +   * For the metadata
            * associated with other entity types, see the Type table below.
            * 
        * @@ -689,8 +686,7 @@ public java.util.Map getMetadataMap() { *
            * Metadata associated with the entity.
            *
        -   * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -   * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +   * For the metadata
            * associated with other entity types, see the Type table below.
            * 
        * @@ -713,8 +709,7 @@ public java.util.Map getMetadataMap() { *
            * Metadata associated with the entity.
            *
        -   * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -   * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +   * For the metadata
            * associated with other entity types, see the Type table below.
            * 
        * @@ -1630,8 +1625,7 @@ public int getMetadataCount() { *
              * Metadata associated with the entity.
              *
        -     * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -     * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +     * For the metadata
              * associated with other entity types, see the Type table below.
              * 
        * @@ -1656,8 +1650,7 @@ public java.util.Map getMetadata() { *
              * Metadata associated with the entity.
              *
        -     * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -     * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +     * For the metadata
              * associated with other entity types, see the Type table below.
              * 
        * @@ -1673,8 +1666,7 @@ public java.util.Map getMetadataMap() { *
              * Metadata associated with the entity.
              *
        -     * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -     * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +     * For the metadata
              * associated with other entity types, see the Type table below.
              * 
        * @@ -1697,8 +1689,7 @@ public java.util.Map getMetadataMap() { *
              * Metadata associated with the entity.
              *
        -     * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -     * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +     * For the metadata
              * associated with other entity types, see the Type table below.
              * 
        * @@ -1727,8 +1718,7 @@ public Builder clearMetadata() { *
              * Metadata associated with the entity.
              *
        -     * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -     * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +     * For the metadata
              * associated with other entity types, see the Type table below.
              * 
        * @@ -1753,8 +1743,7 @@ public java.util.Map getMutableMetadata() { *
              * Metadata associated with the entity.
              *
        -     * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -     * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +     * For the metadata
              * associated with other entity types, see the Type table below.
              * 
        * @@ -1777,8 +1766,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { *
              * Metadata associated with the entity.
              *
        -     * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -     * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +     * For the metadata
              * associated with other entity types, see the Type table below.
              * 
        * diff --git a/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/EntityOrBuilder.java b/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/EntityOrBuilder.java index bd2c5a49fe84..eb613a725220 100644 --- a/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/EntityOrBuilder.java +++ b/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/EntityOrBuilder.java @@ -80,8 +80,7 @@ public interface EntityOrBuilder *
            * Metadata associated with the entity.
            *
        -   * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -   * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +   * For the metadata
            * associated with other entity types, see the Type table below.
            * 
        * @@ -94,8 +93,7 @@ public interface EntityOrBuilder *
            * Metadata associated with the entity.
            *
        -   * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -   * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +   * For the metadata
            * associated with other entity types, see the Type table below.
            * 
        * @@ -111,8 +109,7 @@ public interface EntityOrBuilder *
            * Metadata associated with the entity.
            *
        -   * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -   * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +   * For the metadata
            * associated with other entity types, see the Type table below.
            * 
        * @@ -125,8 +122,7 @@ public interface EntityOrBuilder *
            * Metadata associated with the entity.
            *
        -   * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -   * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +   * For the metadata
            * associated with other entity types, see the Type table below.
            * 
        * @@ -143,8 +139,7 @@ java.lang.String getMetadataOrDefault( *
            * Metadata associated with the entity.
            *
        -   * For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`)
        -   * and Knowledge Graph MID (`mid`), if they are available. For the metadata
        +   * For the metadata
            * associated with other entity types, see the Type table below.
            * 
        * diff --git a/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/LanguageServiceProto.java b/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/LanguageServiceProto.java index b592a24148a9..f01784d15273 100644 --- a/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/LanguageServiceProto.java +++ b/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/LanguageServiceProto.java @@ -146,86 +146,91 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "age.v2.Sentiment\022\023\n\013probability\030\004 \001(\002\"0\n" + "\004Type\022\020\n\014TYPE_UNKNOWN\020\000\022\n\n\006PROPER\020\001\022\n\n\006C" + "OMMON\020\002\"1\n\010TextSpan\022\017\n\007content\030\001 \001(\t\022\024\n\014" - + "begin_offset\030\002 \001(\005\":\n\026ClassificationCate" - + "gory\022\014\n\004name\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\"\223" - + "\001\n\027AnalyzeSentimentRequest\0229\n\010document\030\001" - + " \001(\0132\".google.cloud.language.v2.Document" - + "B\003\340A\002\022=\n\rencoding_type\030\002 \001(\0162&.google.cl" - + "oud.language.v2.EncodingType\"\305\001\n\030Analyze" - + "SentimentResponse\022?\n\022document_sentiment\030" - + "\001 \001(\0132#.google.cloud.language.v2.Sentime" - + "nt\022\025\n\rlanguage_code\030\002 \001(\t\0225\n\tsentences\030\003" - + " \003(\0132\".google.cloud.language.v2.Sentence" - + "\022\032\n\022language_supported\030\004 \001(\010\"\222\001\n\026Analyze" - + "EntitiesRequest\0229\n\010document\030\001 \001(\0132\".goog" - + "le.cloud.language.v2.DocumentB\003\340A\002\022=\n\ren" - + "coding_type\030\002 \001(\0162&.google.cloud.languag" - + "e.v2.EncodingType\"\200\001\n\027AnalyzeEntitiesRes" - + "ponse\0222\n\010entities\030\001 \003(\0132 .google.cloud.l" - + "anguage.v2.Entity\022\025\n\rlanguage_code\030\002 \001(\t" - + "\022\032\n\022language_supported\030\003 \001(\010\"P\n\023Classify" - + "TextRequest\0229\n\010document\030\001 \001(\0132\".google.c" - + "loud.language.v2.DocumentB\003\340A\002\"\217\001\n\024Class" - + "ifyTextResponse\022D\n\ncategories\030\001 \003(\01320.go" + + "begin_offset\030\002 \001(\005\"Q\n\026ClassificationCate" + + "gory\022\014\n\004name\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022\025" + + "\n\010severity\030\003 \001(\002B\003\340A\001\"\223\001\n\027AnalyzeSentime" + + "ntRequest\0229\n\010document\030\001 \001(\0132\".google.clo" + + "ud.language.v2.DocumentB\003\340A\002\022=\n\rencoding" + + "_type\030\002 \001(\0162&.google.cloud.language.v2.E" + + "ncodingType\"\305\001\n\030AnalyzeSentimentResponse" + + "\022?\n\022document_sentiment\030\001 \001(\0132#.google.cl" + + "oud.language.v2.Sentiment\022\025\n\rlanguage_co" + + "de\030\002 \001(\t\0225\n\tsentences\030\003 \003(\0132\".google.clo" + + "ud.language.v2.Sentence\022\032\n\022language_supp" + + "orted\030\004 \001(\010\"\222\001\n\026AnalyzeEntitiesRequest\0229" + + "\n\010document\030\001 \001(\0132\".google.cloud.language" + + ".v2.DocumentB\003\340A\002\022=\n\rencoding_type\030\002 \001(\016" + + "2&.google.cloud.language.v2.EncodingType" + + "\"\200\001\n\027AnalyzeEntitiesResponse\0222\n\010entities" + + "\030\001 \003(\0132 .google.cloud.language.v2.Entity" + + "\022\025\n\rlanguage_code\030\002 \001(\t\022\032\n\022language_supp" + + "orted\030\003 \001(\010\"P\n\023ClassifyTextRequest\0229\n\010do" + + "cument\030\001 \001(\0132\".google.cloud.language.v2." + + "DocumentB\003\340A\002\"\217\001\n\024ClassifyTextResponse\022D" + + "\n\ncategories\030\001 \003(\01320.google.cloud.langua" + + "ge.v2.ClassificationCategory\022\025\n\rlanguage" + + "_code\030\002 \001(\t\022\032\n\022language_supported\030\003 \001(\010\"" + + "\201\002\n\023ModerateTextRequest\0229\n\010document\030\001 \001(" + + "\0132\".google.cloud.language.v2.DocumentB\003\340" + + "A\002\022V\n\rmodel_version\030\002 \001(\0162:.google.cloud" + + ".language.v2.ModerateTextRequest.ModelVe" + + "rsionB\003\340A\001\"W\n\014ModelVersion\022\035\n\031MODEL_VERS" + + "ION_UNSPECIFIED\020\000\022\023\n\017MODEL_VERSION_1\020\001\022\023" + + "\n\017MODEL_VERSION_2\020\002\"\232\001\n\024ModerateTextResp" + + "onse\022O\n\025moderation_categories\030\001 \003(\01320.go" + "ogle.cloud.language.v2.ClassificationCat" + "egory\022\025\n\rlanguage_code\030\002 \001(\t\022\032\n\022language" - + "_supported\030\003 \001(\010\"P\n\023ModerateTextRequest\022" - + "9\n\010document\030\001 \001(\0132\".google.cloud.languag" - + "e.v2.DocumentB\003\340A\002\"\232\001\n\024ModerateTextRespo" - + "nse\022O\n\025moderation_categories\030\001 \003(\01320.goo" - + "gle.cloud.language.v2.ClassificationCate" - + "gory\022\025\n\rlanguage_code\030\002 \001(\t\022\032\n\022language_" - + "supported\030\003 \001(\010\"\353\002\n\023AnnotateTextRequest\022" - + "9\n\010document\030\001 \001(\0132\".google.cloud.languag" - + "e.v2.DocumentB\003\340A\002\022M\n\010features\030\002 \001(\01326.g" - + "oogle.cloud.language.v2.AnnotateTextRequ" - + "est.FeaturesB\003\340A\002\022=\n\rencoding_type\030\003 \001(\016" - + "2&.google.cloud.language.v2.EncodingType" - + "\032\212\001\n\010Features\022\035\n\020extract_entities\030\001 \001(\010B" - + "\003\340A\001\022\'\n\032extract_document_sentiment\030\002 \001(\010" - + "B\003\340A\001\022\032\n\rclassify_text\030\004 \001(\010B\003\340A\001\022\032\n\rmod" - + "erate_text\030\005 \001(\010B\003\340A\001\"\214\003\n\024AnnotateTextRe" - + "sponse\0225\n\tsentences\030\001 \003(\0132\".google.cloud" - + ".language.v2.Sentence\0222\n\010entities\030\002 \003(\0132" - + " .google.cloud.language.v2.Entity\022?\n\022doc" - + "ument_sentiment\030\003 \001(\0132#.google.cloud.lan" - + "guage.v2.Sentiment\022\025\n\rlanguage_code\030\004 \001(" - + "\t\022D\n\ncategories\030\005 \003(\01320.google.cloud.lan" - + "guage.v2.ClassificationCategory\022O\n\025moder" - + "ation_categories\030\006 \003(\01320.google.cloud.la" - + "nguage.v2.ClassificationCategory\022\032\n\022lang" - + "uage_supported\030\007 \001(\010*8\n\014EncodingType\022\010\n\004" - + "NONE\020\000\022\010\n\004UTF8\020\001\022\t\n\005UTF16\020\002\022\t\n\005UTF32\020\0032\260" - + "\010\n\017LanguageService\022\310\001\n\020AnalyzeSentiment\022" - + "1.google.cloud.language.v2.AnalyzeSentim" - + "entRequest\0322.google.cloud.language.v2.An" - + "alyzeSentimentResponse\"M\332A\026document,enco" - + "ding_type\332A\010document\202\323\344\223\002#\"\036/v2/document" - + "s:analyzeSentiment:\001*\022\304\001\n\017AnalyzeEntitie" - + "s\0220.google.cloud.language.v2.AnalyzeEnti" - + "tiesRequest\0321.google.cloud.language.v2.A" - + "nalyzeEntitiesResponse\"L\332A\026document,enco" - + "ding_type\332A\010document\202\323\344\223\002\"\"\035/v2/document" - + "s:analyzeEntities:\001*\022\237\001\n\014ClassifyText\022-." - + "google.cloud.language.v2.ClassifyTextReq" - + "uest\032..google.cloud.language.v2.Classify" - + "TextResponse\"0\332A\010document\202\323\344\223\002\037\"\032/v2/doc" - + "uments:classifyText:\001*\022\237\001\n\014ModerateText\022" - + "-.google.cloud.language.v2.ModerateTextR" - + "equest\032..google.cloud.language.v2.Modera" - + "teTextResponse\"0\332A\010document\202\323\344\223\002\037\"\032/v2/d" - + "ocuments:moderateText:\001*\022\312\001\n\014AnnotateTex" - + "t\022-.google.cloud.language.v2.AnnotateTex" - + "tRequest\032..google.cloud.language.v2.Anno" - + "tateTextResponse\"[\332A\037document,features,e" - + "ncoding_type\332A\021document,features\202\323\344\223\002\037\"\032" - + "/v2/documents:annotateText:\001*\032z\312A\027langua" - + "ge.googleapis.com\322A]https://www.googleap" - + "is.com/auth/cloud-language,https://www.g" - + "oogleapis.com/auth/cloud-platformBp\n\034com" - + ".google.cloud.language.v2B\024LanguageServi" - + "ceProtoP\001Z8cloud.google.com/go/language/" - + "apiv2/languagepb;languagepbb\006proto3" + + "_supported\030\003 \001(\010\"\353\002\n\023AnnotateTextRequest" + + "\0229\n\010document\030\001 \001(\0132\".google.cloud.langua" + + "ge.v2.DocumentB\003\340A\002\022M\n\010features\030\002 \001(\01326." + + "google.cloud.language.v2.AnnotateTextReq" + + "uest.FeaturesB\003\340A\002\022=\n\rencoding_type\030\003 \001(" + + "\0162&.google.cloud.language.v2.EncodingTyp" + + "e\032\212\001\n\010Features\022\035\n\020extract_entities\030\001 \001(\010" + + "B\003\340A\001\022\'\n\032extract_document_sentiment\030\002 \001(" + + "\010B\003\340A\001\022\032\n\rclassify_text\030\004 \001(\010B\003\340A\001\022\032\n\rmo" + + "derate_text\030\005 \001(\010B\003\340A\001\"\214\003\n\024AnnotateTextR" + + "esponse\0225\n\tsentences\030\001 \003(\0132\".google.clou" + + "d.language.v2.Sentence\0222\n\010entities\030\002 \003(\013" + + "2 .google.cloud.language.v2.Entity\022?\n\022do" + + "cument_sentiment\030\003 \001(\0132#.google.cloud.la" + + "nguage.v2.Sentiment\022\025\n\rlanguage_code\030\004 \001" + + "(\t\022D\n\ncategories\030\005 \003(\01320.google.cloud.la" + + "nguage.v2.ClassificationCategory\022O\n\025mode" + + "ration_categories\030\006 \003(\01320.google.cloud.l" + + "anguage.v2.ClassificationCategory\022\032\n\022lan" + + "guage_supported\030\007 \001(\010*8\n\014EncodingType\022\010\n" + + "\004NONE\020\000\022\010\n\004UTF8\020\001\022\t\n\005UTF16\020\002\022\t\n\005UTF32\020\0032" + + "\260\010\n\017LanguageService\022\310\001\n\020AnalyzeSentiment" + + "\0221.google.cloud.language.v2.AnalyzeSenti" + + "mentRequest\0322.google.cloud.language.v2.A" + + "nalyzeSentimentResponse\"M\332A\026document,enc" + + "oding_type\332A\010document\202\323\344\223\002#\"\036/v2/documen" + + "ts:analyzeSentiment:\001*\022\304\001\n\017AnalyzeEntiti" + + "es\0220.google.cloud.language.v2.AnalyzeEnt" + + "itiesRequest\0321.google.cloud.language.v2." + + "AnalyzeEntitiesResponse\"L\332A\026document,enc" + + "oding_type\332A\010document\202\323\344\223\002\"\"\035/v2/documen" + + "ts:analyzeEntities:\001*\022\237\001\n\014ClassifyText\022-" + + ".google.cloud.language.v2.ClassifyTextRe" + + "quest\032..google.cloud.language.v2.Classif" + + "yTextResponse\"0\332A\010document\202\323\344\223\002\037\"\032/v2/do" + + "cuments:classifyText:\001*\022\237\001\n\014ModerateText" + + "\022-.google.cloud.language.v2.ModerateText" + + "Request\032..google.cloud.language.v2.Moder" + + "ateTextResponse\"0\332A\010document\202\323\344\223\002\037\"\032/v2/" + + "documents:moderateText:\001*\022\312\001\n\014AnnotateTe" + + "xt\022-.google.cloud.language.v2.AnnotateTe" + + "xtRequest\032..google.cloud.language.v2.Ann" + + "otateTextResponse\"[\332A\037document,features," + + "encoding_type\332A\021document,features\202\323\344\223\002\037\"" + + "\032/v2/documents:annotateText:\001*\032z\312A\027langu" + + "age.googleapis.com\322A]https://www.googlea" + + "pis.com/auth/cloud-language,https://www." + + "googleapis.com/auth/cloud-platformBp\n\034co" + + "m.google.cloud.language.v2B\024LanguageServ" + + "iceProtoP\001Z8cloud.google.com/go/language" + + "/apiv2/languagepb;languagepbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -297,7 +302,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_language_v2_ClassificationCategory_descriptor, new java.lang.String[] { - "Name", "Confidence", + "Name", "Confidence", "Severity", }); internal_static_google_cloud_language_v2_AnalyzeSentimentRequest_descriptor = getDescriptor().getMessageTypes().get(7); @@ -353,7 +358,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_language_v2_ModerateTextRequest_descriptor, new java.lang.String[] { - "Document", + "Document", "ModelVersion", }); internal_static_google_cloud_language_v2_ModerateTextResponse_descriptor = getDescriptor().getMessageTypes().get(14); diff --git a/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ModerateTextRequest.java b/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ModerateTextRequest.java index 5b78867af271..fe6889c31be6 100644 --- a/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ModerateTextRequest.java +++ b/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ModerateTextRequest.java @@ -38,7 +38,9 @@ private ModerateTextRequest(com.google.protobuf.GeneratedMessageV3.Builder bu super(builder); } - private ModerateTextRequest() {} + private ModerateTextRequest() { + modelVersion_ = 0; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -61,6 +63,171 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.language.v2.ModerateTextRequest.Builder.class); } + /** + * + * + *
        +   * The model version to use for ModerateText.
        +   * 
        + * + * Protobuf enum {@code google.cloud.language.v2.ModerateTextRequest.ModelVersion} + */ + public enum ModelVersion implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * The default model version.
        +     * 
        + * + * MODEL_VERSION_UNSPECIFIED = 0; + */ + MODEL_VERSION_UNSPECIFIED(0), + /** + * + * + *
        +     * Use the v1 model, this model is used by default when not provided.
        +     * The v1 model only returns probability (confidence) score for each
        +     * category.
        +     * 
        + * + * MODEL_VERSION_1 = 1; + */ + MODEL_VERSION_1(1), + /** + * + * + *
        +     * Use the v2 model.
        +     * The v2 model only returns probability (confidence) score for each
        +     * category, and returns severity score for a subset of the categories.
        +     * 
        + * + * MODEL_VERSION_2 = 2; + */ + MODEL_VERSION_2(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * The default model version.
        +     * 
        + * + * MODEL_VERSION_UNSPECIFIED = 0; + */ + public static final int MODEL_VERSION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +     * Use the v1 model, this model is used by default when not provided.
        +     * The v1 model only returns probability (confidence) score for each
        +     * category.
        +     * 
        + * + * MODEL_VERSION_1 = 1; + */ + public static final int MODEL_VERSION_1_VALUE = 1; + /** + * + * + *
        +     * Use the v2 model.
        +     * The v2 model only returns probability (confidence) score for each
        +     * category, and returns severity score for a subset of the categories.
        +     * 
        + * + * MODEL_VERSION_2 = 2; + */ + public static final int MODEL_VERSION_2_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ModelVersion valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ModelVersion forNumber(int value) { + switch (value) { + case 0: + return MODEL_VERSION_UNSPECIFIED; + case 1: + return MODEL_VERSION_1; + case 2: + return MODEL_VERSION_2; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ModelVersion findValueByNumber(int number) { + return ModelVersion.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.language.v2.ModerateTextRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final ModelVersion[] VALUES = values(); + + public static ModelVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ModelVersion(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.language.v2.ModerateTextRequest.ModelVersion) + } + private int bitField0_; public static final int DOCUMENT_FIELD_NUMBER = 1; private com.google.cloud.language.v2.Document document_; @@ -118,6 +285,47 @@ public com.google.cloud.language.v2.DocumentOrBuilder getDocumentOrBuilder() { : document_; } + public static final int MODEL_VERSION_FIELD_NUMBER = 2; + private int modelVersion_ = 0; + /** + * + * + *
        +   * Optional. The model version to use for ModerateText.
        +   * 
        + * + * + * .google.cloud.language.v2.ModerateTextRequest.ModelVersion model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modelVersion. + */ + @java.lang.Override + public int getModelVersionValue() { + return modelVersion_; + } + /** + * + * + *
        +   * Optional. The model version to use for ModerateText.
        +   * 
        + * + * + * .google.cloud.language.v2.ModerateTextRequest.ModelVersion model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelVersion. + */ + @java.lang.Override + public com.google.cloud.language.v2.ModerateTextRequest.ModelVersion getModelVersion() { + com.google.cloud.language.v2.ModerateTextRequest.ModelVersion result = + com.google.cloud.language.v2.ModerateTextRequest.ModelVersion.forNumber(modelVersion_); + return result == null + ? com.google.cloud.language.v2.ModerateTextRequest.ModelVersion.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -135,6 +343,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDocument()); } + if (modelVersion_ + != com.google.cloud.language.v2.ModerateTextRequest.ModelVersion.MODEL_VERSION_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, modelVersion_); + } getUnknownFields().writeTo(output); } @@ -147,6 +360,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocument()); } + if (modelVersion_ + != com.google.cloud.language.v2.ModerateTextRequest.ModelVersion.MODEL_VERSION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, modelVersion_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -167,6 +385,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDocument()) { if (!getDocument().equals(other.getDocument())) return false; } + if (modelVersion_ != other.modelVersion_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,6 +401,8 @@ public int hashCode() { hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; hash = (53 * hash) + getDocument().hashCode(); } + hash = (37 * hash) + MODEL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + modelVersion_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -335,6 +556,7 @@ public Builder clear() { documentBuilder_.dispose(); documentBuilder_ = null; } + modelVersion_ = 0; return this; } @@ -376,6 +598,9 @@ private void buildPartial0(com.google.cloud.language.v2.ModerateTextRequest resu result.document_ = documentBuilder_ == null ? document_ : documentBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelVersion_ = modelVersion_; + } result.bitField0_ |= to_bitField0_; } @@ -428,6 +653,9 @@ public Builder mergeFrom(com.google.cloud.language.v2.ModerateTextRequest other) if (other.hasDocument()) { mergeDocument(other.getDocument()); } + if (other.modelVersion_ != 0) { + setModelVersionValue(other.getModelVersionValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -460,6 +688,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + modelVersion_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -682,6 +916,109 @@ public com.google.cloud.language.v2.DocumentOrBuilder getDocumentOrBuilder() { return documentBuilder_; } + private int modelVersion_ = 0; + /** + * + * + *
        +     * Optional. The model version to use for ModerateText.
        +     * 
        + * + * + * .google.cloud.language.v2.ModerateTextRequest.ModelVersion model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modelVersion. + */ + @java.lang.Override + public int getModelVersionValue() { + return modelVersion_; + } + /** + * + * + *
        +     * Optional. The model version to use for ModerateText.
        +     * 
        + * + * + * .google.cloud.language.v2.ModerateTextRequest.ModelVersion model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersionValue(int value) { + modelVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. The model version to use for ModerateText.
        +     * 
        + * + * + * .google.cloud.language.v2.ModerateTextRequest.ModelVersion model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelVersion. + */ + @java.lang.Override + public com.google.cloud.language.v2.ModerateTextRequest.ModelVersion getModelVersion() { + com.google.cloud.language.v2.ModerateTextRequest.ModelVersion result = + com.google.cloud.language.v2.ModerateTextRequest.ModelVersion.forNumber(modelVersion_); + return result == null + ? com.google.cloud.language.v2.ModerateTextRequest.ModelVersion.UNRECOGNIZED + : result; + } + /** + * + * + *
        +     * Optional. The model version to use for ModerateText.
        +     * 
        + * + * + * .google.cloud.language.v2.ModerateTextRequest.ModelVersion model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersion( + com.google.cloud.language.v2.ModerateTextRequest.ModelVersion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + modelVersion_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. The model version to use for ModerateText.
        +     * 
        + * + * + * .google.cloud.language.v2.ModerateTextRequest.ModelVersion model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearModelVersion() { + bitField0_ = (bitField0_ & ~0x00000002); + modelVersion_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ModerateTextRequestOrBuilder.java b/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ModerateTextRequestOrBuilder.java index a9567e21f442..779becb8db51 100644 --- a/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ModerateTextRequestOrBuilder.java +++ b/java-language/proto-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/ModerateTextRequestOrBuilder.java @@ -64,4 +64,33 @@ public interface ModerateTextRequestOrBuilder *
        */ com.google.cloud.language.v2.DocumentOrBuilder getDocumentOrBuilder(); + + /** + * + * + *
        +   * Optional. The model version to use for ModerateText.
        +   * 
        + * + * + * .google.cloud.language.v2.ModerateTextRequest.ModelVersion model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modelVersion. + */ + int getModelVersionValue(); + /** + * + * + *
        +   * Optional. The model version to use for ModerateText.
        +   * 
        + * + * + * .google.cloud.language.v2.ModerateTextRequest.ModelVersion model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelVersion. + */ + com.google.cloud.language.v2.ModerateTextRequest.ModelVersion getModelVersion(); } diff --git a/java-language/proto-google-cloud-language-v2/src/main/proto/google/cloud/language/v2/language_service.proto b/java-language/proto-google-cloud-language-v2/src/main/proto/google/cloud/language/v2/language_service.proto index 826fee68ea31..b8d735d19d67 100644 --- a/java-language/proto-google-cloud-language-v2/src/main/proto/google/cloud/language/v2/language_service.proto +++ b/java-language/proto-google-cloud-language-v2/src/main/proto/google/cloud/language/v2/language_service.proto @@ -170,8 +170,7 @@ enum EncodingType { // a person, an organization, or location. The API associates information, such // as probability and mentions, with entities. message Entity { - // The type of the entity. For most entity types, the associated metadata is a - // Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`). The table + // The type of the entity. The table // below lists the associated fields for entities that have different // metadata. enum Type { @@ -221,7 +220,7 @@ message Entity { // * `locality` - city or town // * `street_name` - street/route name, if detected // * `postal_code` - postal code, if detected - // * `country` - country, if detected< + // * `country` - country, if detected // * `broad_region` - administrative area, such as the state, if detected // * `narrow_region` - smaller administrative area, such as county, if // detected @@ -257,8 +256,7 @@ message Entity { // Metadata associated with the entity. // - // For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) - // and Knowledge Graph MID (`mid`), if they are available. For the metadata + // For the metadata // associated with other entity types, see the Type table below. map metadata = 3; @@ -340,6 +338,11 @@ message ClassificationCategory { // The classifier's confidence of the category. Number represents how certain // the classifier is that this category represents the given text. float confidence = 2; + + // Optional. The classifier's severity of the category. This is only present + // when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and + // the corresponding category has a severity score. + float severity = 3 [(google.api.field_behavior) = OPTIONAL]; } // The sentiment analysis request message. @@ -419,8 +422,27 @@ message ClassifyTextResponse { // The document moderation request message. message ModerateTextRequest { + // The model version to use for ModerateText. + enum ModelVersion { + // The default model version. + MODEL_VERSION_UNSPECIFIED = 0; + + // Use the v1 model, this model is used by default when not provided. + // The v1 model only returns probability (confidence) score for each + // category. + MODEL_VERSION_1 = 1; + + // Use the v2 model. + // The v2 model only returns probability (confidence) score for each + // category, and returns severity score for a subset of the categories. + MODEL_VERSION_2 = 2; + } + // Required. Input document. Document document = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The model version to use for ModerateText. + ModelVersion model_version = 2 [(google.api.field_behavior) = OPTIONAL]; } // The document moderation response message. diff --git a/java-life-sciences/README.md b/java-life-sciences/README.md index d84aa5963d93..f9bce72c9995 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/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.cloud/google-cloud-life-sciences.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.48.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-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStubSettings.java b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStubSettings.java index f5e0b674cded..8549cb65a7e1 100644 --- a/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStubSettings.java +++ b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStubSettings.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; @@ -221,6 +222,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "lifesciences.googleapis.com:443"; } diff --git a/java-managed-identities/README.md b/java-managed-identities/README.md index f0f7ae13ed30..985b2ae34572 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/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-managed-identities.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.44.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-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStubSettings.java b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStubSettings.java index 70be0aefd9ec..8ffaea804b1b 100644 --- a/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStubSettings.java +++ b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStubSettings.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; @@ -313,6 +314,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "managedidentities.googleapis.com:443"; } diff --git a/java-managedkafka/README.md b/java-managedkafka/README.md index 98cacbb891fc..10f151b8ea25 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/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.cloud/google-cloud-managedkafka.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.2.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-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaStubSettings.java b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaStubSettings.java index a7265e635d14..7a172307b988 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaStubSettings.java +++ b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaStubSettings.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; @@ -512,6 +513,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "managedkafka.googleapis.com:443"; } diff --git a/java-managedkafka/google-cloud-managedkafka/src/main/resources/META-INF/native-image/com.google.cloud.managedkafka.v1/reflect-config.json b/java-managedkafka/google-cloud-managedkafka/src/main/resources/META-INF/native-image/com.google.cloud.managedkafka.v1/reflect-config.json index ef1317bed689..f44c7b6eb45a 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/main/resources/META-INF/native-image/com.google.cloud.managedkafka.v1/reflect-config.json +++ b/java-managedkafka/google-cloud-managedkafka/src/main/resources/META-INF/native-image/com.google.cloud.managedkafka.v1/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/GcpConfig.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/GcpConfig.java index 2e0f6d898cf0..5766eb571a9e 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/GcpConfig.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/GcpConfig.java @@ -133,8 +133,6 @@ public com.google.cloud.managedkafka.v1.AccessConfigOrBuilder getAccessConfigOrB * must be located in the same region as the cluster and cannot be changed. * Structured like: * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. - * Note that the project component only accepts a project ID, and not a - * project number. * * * @@ -163,8 +161,6 @@ public java.lang.String getKmsKey() { * must be located in the same region as the cluster and cannot be changed. * Structured like: * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. - * Note that the project component only accepts a project ID, and not a - * project number. * * * @@ -786,8 +782,6 @@ public com.google.cloud.managedkafka.v1.AccessConfigOrBuilder getAccessConfigOrB * must be located in the same region as the cluster and cannot be changed. * Structured like: * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. - * Note that the project component only accepts a project ID, and not a - * project number. * * * @@ -815,8 +809,6 @@ public java.lang.String getKmsKey() { * must be located in the same region as the cluster and cannot be changed. * Structured like: * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. - * Note that the project component only accepts a project ID, and not a - * project number. * * * @@ -844,8 +836,6 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { * must be located in the same region as the cluster and cannot be changed. * Structured like: * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. - * Note that the project component only accepts a project ID, and not a - * project number. * * * @@ -872,8 +862,6 @@ public Builder setKmsKey(java.lang.String value) { * must be located in the same region as the cluster and cannot be changed. * Structured like: * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. - * Note that the project component only accepts a project ID, and not a - * project number. * * * @@ -896,8 +884,6 @@ public Builder clearKmsKey() { * must be located in the same region as the cluster and cannot be changed. * Structured like: * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. - * Note that the project component only accepts a project ID, and not a - * project number. * * * diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/GcpConfigOrBuilder.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/GcpConfigOrBuilder.java index a5027de4aa38..596ad2a16dcd 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/GcpConfigOrBuilder.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/GcpConfigOrBuilder.java @@ -73,8 +73,6 @@ public interface GcpConfigOrBuilder * must be located in the same region as the cluster and cannot be changed. * Structured like: * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. - * Note that the project component only accepts a project ID, and not a - * project number. * * * @@ -92,8 +90,6 @@ public interface GcpConfigOrBuilder * must be located in the same region as the cluster and cannot be changed. * Structured like: * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. - * Note that the project component only accepts a project ID, and not a - * project number. * * * diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/proto/google/cloud/managedkafka/v1/resources.proto b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/proto/google/cloud/managedkafka/v1/resources.proto index 321391380e19..85ace994e75f 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/proto/google/cloud/managedkafka/v1/resources.proto +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/proto/google/cloud/managedkafka/v1/resources.proto @@ -154,8 +154,6 @@ message GcpConfig { // must be located in the same region as the cluster and cannot be changed. // Structured like: // projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. - // Note that the project component only accepts a project ID, and not a - // project number. string kms_key = 2 [ (google.api.field_behavior) = OPTIONAL, (google.api.field_behavior) = IMMUTABLE, diff --git a/java-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index 2c166413bf8b..bc001b6b7240 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/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.maps/google-maps-addressvalidation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.40.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-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/AddressValidationStubSettings.java b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/AddressValidationStubSettings.java index cce373fe01e5..fe56406d3aa8 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/AddressValidationStubSettings.java +++ b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/AddressValidationStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -138,6 +139,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "addressvalidation.googleapis.com:443"; } diff --git a/java-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index 5dee3f251b00..4b2574a31465 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/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 @@ -202,7 +202,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.maps/google-maps-mapsplatformdatasets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/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-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClient.java b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClient.java index a1fa87e62ef4..4e2faab24372 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClient.java +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClient.java @@ -29,6 +29,7 @@ import com.google.maps.mapsplatformdatasets.v1.stub.MapsPlatformDatasetsStubSettings; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; +import com.google.rpc.Status; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -123,6 +124,26 @@ * * * + *

        FetchDatasetErrors + *

        Gets all the errors of a dataset. + * + *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        + *
          + *
        • fetchDatasetErrors(FetchDatasetErrorsRequest request) + *

        + *

        "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

        + *
          + *
        • fetchDatasetErrors(DatasetName dataset) + *

        • fetchDatasetErrors(String dataset) + *

        + *

        Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

        + *
          + *
        • fetchDatasetErrorsPagedCallable() + *

        • fetchDatasetErrorsCallable() + *

        + * + * + * *

        ListDatasets *

        Lists all the datasets for the specified project. * @@ -609,6 +630,179 @@ public final UnaryCallable getDatasetCallable() { return stub.getDatasetCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets all the errors of a dataset. + * + *

        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 (MapsPlatformDatasetsClient mapsPlatformDatasetsClient =
        +   *     MapsPlatformDatasetsClient.create()) {
        +   *   DatasetName dataset = DatasetName.of("[PROJECT]", "[DATASET]");
        +   *   for (Status element : mapsPlatformDatasetsClient.fetchDatasetErrors(dataset).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param dataset Required. The name of the dataset to list all the errors for. Format: + * projects/{project}/datasets/{dataset_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchDatasetErrorsPagedResponse fetchDatasetErrors(DatasetName dataset) { + FetchDatasetErrorsRequest request = + FetchDatasetErrorsRequest.newBuilder() + .setDataset(dataset == null ? null : dataset.toString()) + .build(); + return fetchDatasetErrors(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets all the errors of a dataset. + * + *

        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 (MapsPlatformDatasetsClient mapsPlatformDatasetsClient =
        +   *     MapsPlatformDatasetsClient.create()) {
        +   *   String dataset = DatasetName.of("[PROJECT]", "[DATASET]").toString();
        +   *   for (Status element : mapsPlatformDatasetsClient.fetchDatasetErrors(dataset).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param dataset Required. The name of the dataset to list all the errors for. Format: + * projects/{project}/datasets/{dataset_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchDatasetErrorsPagedResponse fetchDatasetErrors(String dataset) { + FetchDatasetErrorsRequest request = + FetchDatasetErrorsRequest.newBuilder().setDataset(dataset).build(); + return fetchDatasetErrors(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets all the errors of a dataset. + * + *

        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 (MapsPlatformDatasetsClient mapsPlatformDatasetsClient =
        +   *     MapsPlatformDatasetsClient.create()) {
        +   *   FetchDatasetErrorsRequest request =
        +   *       FetchDatasetErrorsRequest.newBuilder()
        +   *           .setDataset(DatasetName.of("[PROJECT]", "[DATASET]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   for (Status element : mapsPlatformDatasetsClient.fetchDatasetErrors(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 FetchDatasetErrorsPagedResponse fetchDatasetErrors( + FetchDatasetErrorsRequest request) { + return fetchDatasetErrorsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets all the errors of a dataset. + * + *

        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 (MapsPlatformDatasetsClient mapsPlatformDatasetsClient =
        +   *     MapsPlatformDatasetsClient.create()) {
        +   *   FetchDatasetErrorsRequest request =
        +   *       FetchDatasetErrorsRequest.newBuilder()
        +   *           .setDataset(DatasetName.of("[PROJECT]", "[DATASET]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       mapsPlatformDatasetsClient.fetchDatasetErrorsPagedCallable().futureCall(request);
        +   *   // Do something.
        +   *   for (Status element : future.get().iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + fetchDatasetErrorsPagedCallable() { + return stub.fetchDatasetErrorsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets all the errors of a dataset. + * + *

        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 (MapsPlatformDatasetsClient mapsPlatformDatasetsClient =
        +   *     MapsPlatformDatasetsClient.create()) {
        +   *   FetchDatasetErrorsRequest request =
        +   *       FetchDatasetErrorsRequest.newBuilder()
        +   *           .setDataset(DatasetName.of("[PROJECT]", "[DATASET]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   while (true) {
        +   *     FetchDatasetErrorsResponse response =
        +   *         mapsPlatformDatasetsClient.fetchDatasetErrorsCallable().call(request);
        +   *     for (Status element : response.getErrorsList()) {
        +   *       // doThingsWith(element);
        +   *     }
        +   *     String nextPageToken = response.getNextPageToken();
        +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
        +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
        +   *     } else {
        +   *       break;
        +   *     }
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + fetchDatasetErrorsCallable() { + return stub.fetchDatasetErrorsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all the datasets for the specified project. @@ -927,6 +1121,83 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted return stub.awaitTermination(duration, unit); } + public static class FetchDatasetErrorsPagedResponse + extends AbstractPagedListResponse< + FetchDatasetErrorsRequest, + FetchDatasetErrorsResponse, + Status, + FetchDatasetErrorsPage, + FetchDatasetErrorsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + FetchDatasetErrorsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new FetchDatasetErrorsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private FetchDatasetErrorsPagedResponse(FetchDatasetErrorsPage page) { + super(page, FetchDatasetErrorsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class FetchDatasetErrorsPage + extends AbstractPage< + FetchDatasetErrorsRequest, FetchDatasetErrorsResponse, Status, FetchDatasetErrorsPage> { + + private FetchDatasetErrorsPage( + PageContext context, + FetchDatasetErrorsResponse response) { + super(context, response); + } + + private static FetchDatasetErrorsPage createEmptyPage() { + return new FetchDatasetErrorsPage(null, null); + } + + @Override + protected FetchDatasetErrorsPage createPage( + PageContext context, + FetchDatasetErrorsResponse response) { + return new FetchDatasetErrorsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class FetchDatasetErrorsFixedSizeCollection + extends AbstractFixedSizeCollection< + FetchDatasetErrorsRequest, + FetchDatasetErrorsResponse, + Status, + FetchDatasetErrorsPage, + FetchDatasetErrorsFixedSizeCollection> { + + private FetchDatasetErrorsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static FetchDatasetErrorsFixedSizeCollection createEmptyCollection() { + return new FetchDatasetErrorsFixedSizeCollection(null, 0); + } + + @Override + protected FetchDatasetErrorsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new FetchDatasetErrorsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListDatasetsPagedResponse extends AbstractPagedListResponse< ListDatasetsRequest, diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsSettings.java b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsSettings.java index 750085657014..10c74872e0fc 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsSettings.java +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsSettings.java @@ -16,6 +16,7 @@ package com.google.maps.mapsplatformdatasets.v1; +import static com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient.FetchDatasetErrorsPagedResponse; import static com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient.ListDatasetsPagedResponse; import com.google.api.core.ApiFunction; @@ -93,6 +94,13 @@ public UnaryCallSettings getDatasetSettings() { return ((MapsPlatformDatasetsStubSettings) getStubSettings()).getDatasetSettings(); } + /** Returns the object with the settings used for calls to fetchDatasetErrors. */ + public PagedCallSettings< + FetchDatasetErrorsRequest, FetchDatasetErrorsResponse, FetchDatasetErrorsPagedResponse> + fetchDatasetErrorsSettings() { + return ((MapsPlatformDatasetsStubSettings) getStubSettings()).fetchDatasetErrorsSettings(); + } + /** Returns the object with the settings used for calls to listDatasets. */ public PagedCallSettings listDatasetsSettings() { @@ -233,6 +241,13 @@ public UnaryCallSettings.Builder getDatasetSettings( return getStubSettingsBuilder().getDatasetSettings(); } + /** Returns the builder for the settings used for calls to fetchDatasetErrors. */ + public PagedCallSettings.Builder< + FetchDatasetErrorsRequest, FetchDatasetErrorsResponse, FetchDatasetErrorsPagedResponse> + fetchDatasetErrorsSettings() { + return getStubSettingsBuilder().fetchDatasetErrorsSettings(); + } + /** Returns the builder for the settings used for calls to listDatasets. */ public PagedCallSettings.Builder< ListDatasetsRequest, ListDatasetsResponse, ListDatasetsPagedResponse> diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/gapic_metadata.json b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/gapic_metadata.json index ad16755ca6e0..3f687698f45a 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/gapic_metadata.json +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/gapic_metadata.json @@ -16,6 +16,9 @@ "DeleteDataset": { "methods": ["deleteDataset", "deleteDataset", "deleteDataset", "deleteDatasetCallable"] }, + "FetchDatasetErrors": { + "methods": ["fetchDatasetErrors", "fetchDatasetErrors", "fetchDatasetErrors", "fetchDatasetErrorsPagedCallable", "fetchDatasetErrorsCallable"] + }, "GetDataset": { "methods": ["getDataset", "getDataset", "getDataset", "getDatasetCallable"] }, diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/GrpcMapsPlatformDatasetsStub.java b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/GrpcMapsPlatformDatasetsStub.java index c361c9ebd8ff..febd35f6f5ff 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/GrpcMapsPlatformDatasetsStub.java +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/GrpcMapsPlatformDatasetsStub.java @@ -16,6 +16,7 @@ package com.google.maps.mapsplatformdatasets.v1.stub; +import static com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient.FetchDatasetErrorsPagedResponse; import static com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient.ListDatasetsPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -29,6 +30,8 @@ import com.google.maps.mapsplatformdatasets.v1.CreateDatasetRequest; import com.google.maps.mapsplatformdatasets.v1.Dataset; import com.google.maps.mapsplatformdatasets.v1.DeleteDatasetRequest; +import com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest; +import com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse; import com.google.maps.mapsplatformdatasets.v1.GetDatasetRequest; import com.google.maps.mapsplatformdatasets.v1.ListDatasetsRequest; import com.google.maps.mapsplatformdatasets.v1.ListDatasetsResponse; @@ -78,6 +81,18 @@ public class GrpcMapsPlatformDatasetsStub extends MapsPlatformDatasetsStub { .setResponseMarshaller(ProtoUtils.marshaller(Dataset.getDefaultInstance())) .build(); + private static final MethodDescriptor + fetchDatasetErrorsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets/FetchDatasetErrors") + .setRequestMarshaller( + ProtoUtils.marshaller(FetchDatasetErrorsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FetchDatasetErrorsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor listDatasetsMethodDescriptor = MethodDescriptor.newBuilder() @@ -101,6 +116,10 @@ public class GrpcMapsPlatformDatasetsStub extends MapsPlatformDatasetsStub { private final UnaryCallable createDatasetCallable; private final UnaryCallable updateDatasetMetadataCallable; private final UnaryCallable getDatasetCallable; + private final UnaryCallable + fetchDatasetErrorsCallable; + private final UnaryCallable + fetchDatasetErrorsPagedCallable; private final UnaryCallable listDatasetsCallable; private final UnaryCallable listDatasetsPagedCallable; @@ -180,6 +199,17 @@ protected GrpcMapsPlatformDatasetsStub( return builder.build(); }) .build(); + GrpcCallSettings + fetchDatasetErrorsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(fetchDatasetErrorsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("dataset", String.valueOf(request.getDataset())); + return builder.build(); + }) + .build(); GrpcCallSettings listDatasetsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listDatasetsMethodDescriptor) @@ -212,6 +242,16 @@ protected GrpcMapsPlatformDatasetsStub( this.getDatasetCallable = callableFactory.createUnaryCallable( getDatasetTransportSettings, settings.getDatasetSettings(), clientContext); + this.fetchDatasetErrorsCallable = + callableFactory.createUnaryCallable( + fetchDatasetErrorsTransportSettings, + settings.fetchDatasetErrorsSettings(), + clientContext); + this.fetchDatasetErrorsPagedCallable = + callableFactory.createPagedCallable( + fetchDatasetErrorsTransportSettings, + settings.fetchDatasetErrorsSettings(), + clientContext); this.listDatasetsCallable = callableFactory.createUnaryCallable( listDatasetsTransportSettings, settings.listDatasetsSettings(), clientContext); @@ -245,6 +285,18 @@ public UnaryCallable getDatasetCallable() { return getDatasetCallable; } + @Override + public UnaryCallable + fetchDatasetErrorsCallable() { + return fetchDatasetErrorsCallable; + } + + @Override + public UnaryCallable + fetchDatasetErrorsPagedCallable() { + return fetchDatasetErrorsPagedCallable; + } + @Override public UnaryCallable listDatasetsCallable() { return listDatasetsCallable; diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/HttpJsonMapsPlatformDatasetsStub.java b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/HttpJsonMapsPlatformDatasetsStub.java index f0198578eeb9..79700e96d7c3 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/HttpJsonMapsPlatformDatasetsStub.java +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/HttpJsonMapsPlatformDatasetsStub.java @@ -16,6 +16,7 @@ package com.google.maps.mapsplatformdatasets.v1.stub; +import static com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient.FetchDatasetErrorsPagedResponse; import static com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient.ListDatasetsPagedResponse; import com.google.api.core.InternalApi; @@ -33,6 +34,8 @@ import com.google.maps.mapsplatformdatasets.v1.CreateDatasetRequest; import com.google.maps.mapsplatformdatasets.v1.Dataset; import com.google.maps.mapsplatformdatasets.v1.DeleteDatasetRequest; +import com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest; +import com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse; import com.google.maps.mapsplatformdatasets.v1.GetDatasetRequest; import com.google.maps.mapsplatformdatasets.v1.ListDatasetsRequest; import com.google.maps.mapsplatformdatasets.v1.ListDatasetsResponse; @@ -168,6 +171,43 @@ public class HttpJsonMapsPlatformDatasetsStub extends MapsPlatformDatasetsStub { .build()) .build(); + private static final ApiMethodDescriptor + fetchDatasetErrorsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets/FetchDatasetErrors") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{dataset=projects/*/datasets/*}:fetchDatasetErrors", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "dataset", request.getDataset()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FetchDatasetErrorsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listDatasetsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -244,6 +284,10 @@ public class HttpJsonMapsPlatformDatasetsStub extends MapsPlatformDatasetsStub { private final UnaryCallable createDatasetCallable; private final UnaryCallable updateDatasetMetadataCallable; private final UnaryCallable getDatasetCallable; + private final UnaryCallable + fetchDatasetErrorsCallable; + private final UnaryCallable + fetchDatasetErrorsPagedCallable; private final UnaryCallable listDatasetsCallable; private final UnaryCallable listDatasetsPagedCallable; @@ -327,6 +371,18 @@ protected HttpJsonMapsPlatformDatasetsStub( return builder.build(); }) .build(); + HttpJsonCallSettings + fetchDatasetErrorsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(fetchDatasetErrorsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("dataset", String.valueOf(request.getDataset())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listDatasetsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listDatasetsMethodDescriptor) @@ -361,6 +417,16 @@ protected HttpJsonMapsPlatformDatasetsStub( this.getDatasetCallable = callableFactory.createUnaryCallable( getDatasetTransportSettings, settings.getDatasetSettings(), clientContext); + this.fetchDatasetErrorsCallable = + callableFactory.createUnaryCallable( + fetchDatasetErrorsTransportSettings, + settings.fetchDatasetErrorsSettings(), + clientContext); + this.fetchDatasetErrorsPagedCallable = + callableFactory.createPagedCallable( + fetchDatasetErrorsTransportSettings, + settings.fetchDatasetErrorsSettings(), + clientContext); this.listDatasetsCallable = callableFactory.createUnaryCallable( listDatasetsTransportSettings, settings.listDatasetsSettings(), clientContext); @@ -381,6 +447,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(createDatasetMethodDescriptor); methodDescriptors.add(updateDatasetMetadataMethodDescriptor); methodDescriptors.add(getDatasetMethodDescriptor); + methodDescriptors.add(fetchDatasetErrorsMethodDescriptor); methodDescriptors.add(listDatasetsMethodDescriptor); methodDescriptors.add(deleteDatasetMethodDescriptor); return methodDescriptors; @@ -401,6 +468,18 @@ public UnaryCallable getDatasetCallable() { return getDatasetCallable; } + @Override + public UnaryCallable + fetchDatasetErrorsCallable() { + return fetchDatasetErrorsCallable; + } + + @Override + public UnaryCallable + fetchDatasetErrorsPagedCallable() { + return fetchDatasetErrorsPagedCallable; + } + @Override public UnaryCallable listDatasetsCallable() { return listDatasetsCallable; diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/MapsPlatformDatasetsStub.java b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/MapsPlatformDatasetsStub.java index aa77bcec0b35..0f3801fd347a 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/MapsPlatformDatasetsStub.java +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/MapsPlatformDatasetsStub.java @@ -16,6 +16,7 @@ package com.google.maps.mapsplatformdatasets.v1.stub; +import static com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient.FetchDatasetErrorsPagedResponse; import static com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient.ListDatasetsPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -23,6 +24,8 @@ import com.google.maps.mapsplatformdatasets.v1.CreateDatasetRequest; import com.google.maps.mapsplatformdatasets.v1.Dataset; import com.google.maps.mapsplatformdatasets.v1.DeleteDatasetRequest; +import com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest; +import com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse; import com.google.maps.mapsplatformdatasets.v1.GetDatasetRequest; import com.google.maps.mapsplatformdatasets.v1.ListDatasetsRequest; import com.google.maps.mapsplatformdatasets.v1.ListDatasetsResponse; @@ -51,6 +54,16 @@ public UnaryCallable getDatasetCallable() { throw new UnsupportedOperationException("Not implemented: getDatasetCallable()"); } + public UnaryCallable + fetchDatasetErrorsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: fetchDatasetErrorsPagedCallable()"); + } + + public UnaryCallable + fetchDatasetErrorsCallable() { + throw new UnsupportedOperationException("Not implemented: fetchDatasetErrorsCallable()"); + } + public UnaryCallable listDatasetsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listDatasetsPagedCallable()"); } diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/MapsPlatformDatasetsStubSettings.java b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/MapsPlatformDatasetsStubSettings.java index 7fc3a241b9d8..6805ff3acfc8 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/MapsPlatformDatasetsStubSettings.java +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/MapsPlatformDatasetsStubSettings.java @@ -16,11 +16,13 @@ package com.google.maps.mapsplatformdatasets.v1.stub; +import static com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient.FetchDatasetErrorsPagedResponse; import static com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient.ListDatasetsPagedResponse; 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; @@ -50,11 +52,14 @@ import com.google.maps.mapsplatformdatasets.v1.CreateDatasetRequest; import com.google.maps.mapsplatformdatasets.v1.Dataset; import com.google.maps.mapsplatformdatasets.v1.DeleteDatasetRequest; +import com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest; +import com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse; import com.google.maps.mapsplatformdatasets.v1.GetDatasetRequest; import com.google.maps.mapsplatformdatasets.v1.ListDatasetsRequest; import com.google.maps.mapsplatformdatasets.v1.ListDatasetsResponse; import com.google.maps.mapsplatformdatasets.v1.UpdateDatasetMetadataRequest; import com.google.protobuf.Empty; +import com.google.rpc.Status; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -110,11 +115,53 @@ public class MapsPlatformDatasetsStubSettings private final UnaryCallSettings updateDatasetMetadataSettings; private final UnaryCallSettings getDatasetSettings; + private final PagedCallSettings< + FetchDatasetErrorsRequest, FetchDatasetErrorsResponse, FetchDatasetErrorsPagedResponse> + fetchDatasetErrorsSettings; private final PagedCallSettings< ListDatasetsRequest, ListDatasetsResponse, ListDatasetsPagedResponse> listDatasetsSettings; private final UnaryCallSettings deleteDatasetSettings; + private static final PagedListDescriptor< + FetchDatasetErrorsRequest, FetchDatasetErrorsResponse, Status> + FETCH_DATASET_ERRORS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public FetchDatasetErrorsRequest injectToken( + FetchDatasetErrorsRequest payload, String token) { + return FetchDatasetErrorsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public FetchDatasetErrorsRequest injectPageSize( + FetchDatasetErrorsRequest payload, int pageSize) { + return FetchDatasetErrorsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(FetchDatasetErrorsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(FetchDatasetErrorsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(FetchDatasetErrorsResponse payload) { + return payload.getErrorsList() == null + ? ImmutableList.of() + : payload.getErrorsList(); + } + }; + private static final PagedListDescriptor LIST_DATASETS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -151,6 +198,27 @@ public Iterable extractResources(ListDatasetsResponse payload) { } }; + private static final PagedListResponseFactory< + FetchDatasetErrorsRequest, FetchDatasetErrorsResponse, FetchDatasetErrorsPagedResponse> + FETCH_DATASET_ERRORS_PAGE_STR_FACT = + new PagedListResponseFactory< + FetchDatasetErrorsRequest, + FetchDatasetErrorsResponse, + FetchDatasetErrorsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + FetchDatasetErrorsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, FETCH_DATASET_ERRORS_PAGE_STR_DESC, request, context); + return FetchDatasetErrorsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListDatasetsRequest, ListDatasetsResponse, ListDatasetsPagedResponse> LIST_DATASETS_PAGE_STR_FACT = @@ -183,6 +251,13 @@ public UnaryCallSettings getDatasetSettings() { return getDatasetSettings; } + /** Returns the object with the settings used for calls to fetchDatasetErrors. */ + public PagedCallSettings< + FetchDatasetErrorsRequest, FetchDatasetErrorsResponse, FetchDatasetErrorsPagedResponse> + fetchDatasetErrorsSettings() { + return fetchDatasetErrorsSettings; + } + /** Returns the object with the settings used for calls to listDatasets. */ public PagedCallSettings listDatasetsSettings() { @@ -222,6 +297,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "mapsplatformdatasets.googleapis.com:443"; } @@ -307,6 +383,7 @@ protected MapsPlatformDatasetsStubSettings(Builder settingsBuilder) throws IOExc createDatasetSettings = settingsBuilder.createDatasetSettings().build(); updateDatasetMetadataSettings = settingsBuilder.updateDatasetMetadataSettings().build(); getDatasetSettings = settingsBuilder.getDatasetSettings().build(); + fetchDatasetErrorsSettings = settingsBuilder.fetchDatasetErrorsSettings().build(); listDatasetsSettings = settingsBuilder.listDatasetsSettings().build(); deleteDatasetSettings = settingsBuilder.deleteDatasetSettings().build(); } @@ -319,6 +396,9 @@ public static class Builder private final UnaryCallSettings.Builder updateDatasetMetadataSettings; private final UnaryCallSettings.Builder getDatasetSettings; + private final PagedCallSettings.Builder< + FetchDatasetErrorsRequest, FetchDatasetErrorsResponse, FetchDatasetErrorsPagedResponse> + fetchDatasetErrorsSettings; private final PagedCallSettings.Builder< ListDatasetsRequest, ListDatasetsResponse, ListDatasetsPagedResponse> listDatasetsSettings; @@ -374,6 +454,7 @@ protected Builder(ClientContext clientContext) { createDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateDatasetMetadataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + fetchDatasetErrorsSettings = PagedCallSettings.newBuilder(FETCH_DATASET_ERRORS_PAGE_STR_FACT); listDatasetsSettings = PagedCallSettings.newBuilder(LIST_DATASETS_PAGE_STR_FACT); deleteDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -382,6 +463,7 @@ protected Builder(ClientContext clientContext) { createDatasetSettings, updateDatasetMetadataSettings, getDatasetSettings, + fetchDatasetErrorsSettings, listDatasetsSettings, deleteDatasetSettings); initDefaults(this); @@ -393,6 +475,7 @@ protected Builder(MapsPlatformDatasetsStubSettings settings) { createDatasetSettings = settings.createDatasetSettings.toBuilder(); updateDatasetMetadataSettings = settings.updateDatasetMetadataSettings.toBuilder(); getDatasetSettings = settings.getDatasetSettings.toBuilder(); + fetchDatasetErrorsSettings = settings.fetchDatasetErrorsSettings.toBuilder(); listDatasetsSettings = settings.listDatasetsSettings.toBuilder(); deleteDatasetSettings = settings.deleteDatasetSettings.toBuilder(); @@ -401,6 +484,7 @@ protected Builder(MapsPlatformDatasetsStubSettings settings) { createDatasetSettings, updateDatasetMetadataSettings, getDatasetSettings, + fetchDatasetErrorsSettings, listDatasetsSettings, deleteDatasetSettings); } @@ -445,6 +529,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder + .fetchDatasetErrorsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder .listDatasetsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) @@ -489,6 +578,13 @@ public UnaryCallSettings.Builder getDatasetSettings( return getDatasetSettings; } + /** Returns the builder for the settings used for calls to fetchDatasetErrors. */ + public PagedCallSettings.Builder< + FetchDatasetErrorsRequest, FetchDatasetErrorsResponse, FetchDatasetErrorsPagedResponse> + fetchDatasetErrorsSettings() { + return fetchDatasetErrorsSettings; + } + /** Returns the builder for the settings used for calls to listDatasets. */ public PagedCallSettings.Builder< ListDatasetsRequest, ListDatasetsResponse, ListDatasetsPagedResponse> diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/resources/META-INF/native-image/com.google.maps.mapsplatformdatasets.v1/reflect-config.json b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/resources/META-INF/native-image/com.google.maps.mapsplatformdatasets.v1/reflect-config.json index ffc75f161f72..9e105fc2a878 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/resources/META-INF/native-image/com.google.maps.mapsplatformdatasets.v1/reflect-config.json +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/resources/META-INF/native-image/com.google.maps.mapsplatformdatasets.v1/reflect-config.json @@ -431,6 +431,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.mapsplatformdatasets.v1.FileFormat", "queryAllDeclaredConstructors": true, @@ -584,6 +620,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, @@ -1384,5 +1438,23 @@ "allPublicMethods": true, "allDeclaredClasses": true, "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true } ] \ No newline at end of file diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/test/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClientHttpJsonTest.java b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/test/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClientHttpJsonTest.java index c24cf988d550..1bd6a2909d2d 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/test/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClientHttpJsonTest.java +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/test/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClientHttpJsonTest.java @@ -16,6 +16,7 @@ package com.google.maps.mapsplatformdatasets.v1; +import static com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient.FetchDatasetErrorsPagedResponse; import static com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient.ListDatasetsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -32,6 +33,7 @@ import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; +import com.google.rpc.Status; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -88,7 +90,7 @@ public void createDatasetTest() throws Exception { .setDescription("description-1724546052") .setVersionId("versionId-1407102957") .addAllUsage(new ArrayList()) - .setStatus(Status.newBuilder().build()) + .setStatus(com.google.maps.mapsplatformdatasets.v1.Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setVersionCreateTime(Timestamp.newBuilder().build()) @@ -143,7 +145,7 @@ public void createDatasetTest2() throws Exception { .setDescription("description-1724546052") .setVersionId("versionId-1407102957") .addAllUsage(new ArrayList()) - .setStatus(Status.newBuilder().build()) + .setStatus(com.google.maps.mapsplatformdatasets.v1.Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setVersionCreateTime(Timestamp.newBuilder().build()) @@ -198,7 +200,7 @@ public void updateDatasetMetadataTest() throws Exception { .setDescription("description-1724546052") .setVersionId("versionId-1407102957") .addAllUsage(new ArrayList()) - .setStatus(Status.newBuilder().build()) + .setStatus(com.google.maps.mapsplatformdatasets.v1.Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setVersionCreateTime(Timestamp.newBuilder().build()) @@ -213,7 +215,7 @@ public void updateDatasetMetadataTest() throws Exception { .setDescription("description-1724546052") .setVersionId("versionId-1407102957") .addAllUsage(new ArrayList()) - .setStatus(Status.newBuilder().build()) + .setStatus(com.google.maps.mapsplatformdatasets.v1.Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setVersionCreateTime(Timestamp.newBuilder().build()) @@ -254,7 +256,7 @@ public void updateDatasetMetadataExceptionTest() throws Exception { .setDescription("description-1724546052") .setVersionId("versionId-1407102957") .addAllUsage(new ArrayList()) - .setStatus(Status.newBuilder().build()) + .setStatus(com.google.maps.mapsplatformdatasets.v1.Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setVersionCreateTime(Timestamp.newBuilder().build()) @@ -277,7 +279,7 @@ public void getDatasetTest() throws Exception { .setDescription("description-1724546052") .setVersionId("versionId-1407102957") .addAllUsage(new ArrayList()) - .setStatus(Status.newBuilder().build()) + .setStatus(com.google.maps.mapsplatformdatasets.v1.Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setVersionCreateTime(Timestamp.newBuilder().build()) @@ -330,7 +332,7 @@ public void getDatasetTest2() throws Exception { .setDescription("description-1724546052") .setVersionId("versionId-1407102957") .addAllUsage(new ArrayList()) - .setStatus(Status.newBuilder().build()) + .setStatus(com.google.maps.mapsplatformdatasets.v1.Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setVersionCreateTime(Timestamp.newBuilder().build()) @@ -374,6 +376,106 @@ public void getDatasetExceptionTest2() throws Exception { } } + @Test + public void fetchDatasetErrorsTest() throws Exception { + Status responsesElement = Status.newBuilder().build(); + FetchDatasetErrorsResponse expectedResponse = + FetchDatasetErrorsResponse.newBuilder() + .setNextPageToken("") + .addAllErrors(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DatasetName dataset = DatasetName.of("[PROJECT]", "[DATASET]"); + + FetchDatasetErrorsPagedResponse pagedListResponse = client.fetchDatasetErrors(dataset); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getErrorsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchDatasetErrorsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DatasetName dataset = DatasetName.of("[PROJECT]", "[DATASET]"); + client.fetchDatasetErrors(dataset); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchDatasetErrorsTest2() throws Exception { + Status responsesElement = Status.newBuilder().build(); + FetchDatasetErrorsResponse expectedResponse = + FetchDatasetErrorsResponse.newBuilder() + .setNextPageToken("") + .addAllErrors(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String dataset = "projects/project-7384/datasets/dataset-7384"; + + FetchDatasetErrorsPagedResponse pagedListResponse = client.fetchDatasetErrors(dataset); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getErrorsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchDatasetErrorsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String dataset = "projects/project-7384/datasets/dataset-7384"; + client.fetchDatasetErrors(dataset); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listDatasetsTest() throws Exception { Dataset responsesElement = Dataset.newBuilder().build(); diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/test/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClientTest.java b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/test/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClientTest.java index eca31ae2a9c3..74654a3fb395 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/test/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClientTest.java +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/test/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClientTest.java @@ -16,6 +16,7 @@ package com.google.maps.mapsplatformdatasets.v1; +import static com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient.FetchDatasetErrorsPagedResponse; import static com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient.ListDatasetsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -30,6 +31,7 @@ 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; @@ -91,7 +93,7 @@ public void createDatasetTest() throws Exception { .setDescription("description-1724546052") .setVersionId("versionId-1407102957") .addAllUsage(new ArrayList()) - .setStatus(Status.newBuilder().build()) + .setStatus(com.google.maps.mapsplatformdatasets.v1.Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setVersionCreateTime(Timestamp.newBuilder().build()) @@ -141,7 +143,7 @@ public void createDatasetTest2() throws Exception { .setDescription("description-1724546052") .setVersionId("versionId-1407102957") .addAllUsage(new ArrayList()) - .setStatus(Status.newBuilder().build()) + .setStatus(com.google.maps.mapsplatformdatasets.v1.Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setVersionCreateTime(Timestamp.newBuilder().build()) @@ -191,7 +193,7 @@ public void updateDatasetMetadataTest() throws Exception { .setDescription("description-1724546052") .setVersionId("versionId-1407102957") .addAllUsage(new ArrayList()) - .setStatus(Status.newBuilder().build()) + .setStatus(com.google.maps.mapsplatformdatasets.v1.Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setVersionCreateTime(Timestamp.newBuilder().build()) @@ -242,7 +244,7 @@ public void getDatasetTest() throws Exception { .setDescription("description-1724546052") .setVersionId("versionId-1407102957") .addAllUsage(new ArrayList()) - .setStatus(Status.newBuilder().build()) + .setStatus(com.google.maps.mapsplatformdatasets.v1.Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setVersionCreateTime(Timestamp.newBuilder().build()) @@ -289,7 +291,7 @@ public void getDatasetTest2() throws Exception { .setDescription("description-1724546052") .setVersionId("versionId-1407102957") .addAllUsage(new ArrayList()) - .setStatus(Status.newBuilder().build()) + .setStatus(com.google.maps.mapsplatformdatasets.v1.Status.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setVersionCreateTime(Timestamp.newBuilder().build()) @@ -327,6 +329,94 @@ public void getDatasetExceptionTest2() throws Exception { } } + @Test + public void fetchDatasetErrorsTest() throws Exception { + Status responsesElement = Status.newBuilder().build(); + FetchDatasetErrorsResponse expectedResponse = + FetchDatasetErrorsResponse.newBuilder() + .setNextPageToken("") + .addAllErrors(Arrays.asList(responsesElement)) + .build(); + mockMapsPlatformDatasets.addResponse(expectedResponse); + + DatasetName dataset = DatasetName.of("[PROJECT]", "[DATASET]"); + + FetchDatasetErrorsPagedResponse pagedListResponse = client.fetchDatasetErrors(dataset); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getErrorsList().get(0), resources.get(0)); + + List actualRequests = mockMapsPlatformDatasets.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchDatasetErrorsRequest actualRequest = ((FetchDatasetErrorsRequest) actualRequests.get(0)); + + Assert.assertEquals(dataset.toString(), actualRequest.getDataset()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchDatasetErrorsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapsPlatformDatasets.addException(exception); + + try { + DatasetName dataset = DatasetName.of("[PROJECT]", "[DATASET]"); + client.fetchDatasetErrors(dataset); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchDatasetErrorsTest2() throws Exception { + Status responsesElement = Status.newBuilder().build(); + FetchDatasetErrorsResponse expectedResponse = + FetchDatasetErrorsResponse.newBuilder() + .setNextPageToken("") + .addAllErrors(Arrays.asList(responsesElement)) + .build(); + mockMapsPlatformDatasets.addResponse(expectedResponse); + + String dataset = "dataset1443214456"; + + FetchDatasetErrorsPagedResponse pagedListResponse = client.fetchDatasetErrors(dataset); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getErrorsList().get(0), resources.get(0)); + + List actualRequests = mockMapsPlatformDatasets.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchDatasetErrorsRequest actualRequest = ((FetchDatasetErrorsRequest) actualRequests.get(0)); + + Assert.assertEquals(dataset, actualRequest.getDataset()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchDatasetErrorsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMapsPlatformDatasets.addException(exception); + + try { + String dataset = "dataset1443214456"; + client.fetchDatasetErrors(dataset); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listDatasetsTest() throws Exception { Dataset responsesElement = Dataset.newBuilder().build(); diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/test/java/com/google/maps/mapsplatformdatasets/v1/MockMapsPlatformDatasetsImpl.java b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/test/java/com/google/maps/mapsplatformdatasets/v1/MockMapsPlatformDatasetsImpl.java index 86c8f295562d..e8bd63b3bed3 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/test/java/com/google/maps/mapsplatformdatasets/v1/MockMapsPlatformDatasetsImpl.java +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/test/java/com/google/maps/mapsplatformdatasets/v1/MockMapsPlatformDatasetsImpl.java @@ -121,6 +121,28 @@ public void getDataset(GetDatasetRequest request, StreamObserver respon } } + @Override + public void fetchDatasetErrors( + FetchDatasetErrorsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FetchDatasetErrorsResponse) { + requests.add(request); + responseObserver.onNext(((FetchDatasetErrorsResponse) 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 FetchDatasetErrors, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FetchDatasetErrorsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listDatasets( ListDatasetsRequest request, StreamObserver responseObserver) { diff --git a/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsGrpc.java b/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsGrpc.java index f77de41db24e..7ec1c2ad1e5a 100644 --- a/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsGrpc.java +++ b/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsGrpc.java @@ -178,6 +178,55 @@ private MapsPlatformDatasetsGrpc() {} return getGetDatasetMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest, + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse> + getFetchDatasetErrorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchDatasetErrors", + requestType = com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest.class, + responseType = com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest, + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse> + getFetchDatasetErrorsMethod() { + io.grpc.MethodDescriptor< + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest, + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse> + getFetchDatasetErrorsMethod; + if ((getFetchDatasetErrorsMethod = MapsPlatformDatasetsGrpc.getFetchDatasetErrorsMethod) + == null) { + synchronized (MapsPlatformDatasetsGrpc.class) { + if ((getFetchDatasetErrorsMethod = MapsPlatformDatasetsGrpc.getFetchDatasetErrorsMethod) + == null) { + MapsPlatformDatasetsGrpc.getFetchDatasetErrorsMethod = + getFetchDatasetErrorsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchDatasetErrors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MapsPlatformDatasetsMethodDescriptorSupplier("FetchDatasetErrors")) + .build(); + } + } + } + return getFetchDatasetErrorsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.maps.mapsplatformdatasets.v1.ListDatasetsRequest, com.google.maps.mapsplatformdatasets.v1.ListDatasetsResponse> @@ -362,6 +411,22 @@ default void getDataset( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); } + /** + * + * + *
        +     * Gets all the errors of a dataset.
        +     * 
        + */ + default void fetchDatasetErrors( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest request, + io.grpc.stub.StreamObserver< + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchDatasetErrorsMethod(), responseObserver); + } + /** * * @@ -476,6 +541,24 @@ public void getDataset( getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
        +     * Gets all the errors of a dataset.
        +     * 
        + */ + public void fetchDatasetErrors( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest request, + io.grpc.stub.StreamObserver< + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchDatasetErrorsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -569,6 +652,19 @@ public com.google.maps.mapsplatformdatasets.v1.Dataset getDataset( getChannel(), getGetDatasetMethod(), getCallOptions(), request); } + /** + * + * + *
        +     * Gets all the errors of a dataset.
        +     * 
        + */ + public com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse fetchDatasetErrors( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchDatasetErrorsMethod(), getCallOptions(), request); + } + /** * * @@ -659,6 +755,21 @@ protected MapsPlatformDatasetsFutureStub build( getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); } + /** + * + * + *
        +     * Gets all the errors of a dataset.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse> + fetchDatasetErrors( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchDatasetErrorsMethod(), getCallOptions()), request); + } + /** * * @@ -690,8 +801,9 @@ protected MapsPlatformDatasetsFutureStub build( private static final int METHODID_CREATE_DATASET = 0; private static final int METHODID_UPDATE_DATASET_METADATA = 1; private static final int METHODID_GET_DATASET = 2; - private static final int METHODID_LIST_DATASETS = 3; - private static final int METHODID_DELETE_DATASET = 4; + private static final int METHODID_FETCH_DATASET_ERRORS = 3; + private static final int METHODID_LIST_DATASETS = 4; + private static final int METHODID_DELETE_DATASET = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -728,6 +840,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_FETCH_DATASET_ERRORS: + serviceImpl.fetchDatasetErrors( + (com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse>) + responseObserver); + break; case METHODID_LIST_DATASETS: serviceImpl.listDatasets( (com.google.maps.mapsplatformdatasets.v1.ListDatasetsRequest) request, @@ -779,6 +898,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.maps.mapsplatformdatasets.v1.GetDatasetRequest, com.google.maps.mapsplatformdatasets.v1.Dataset>( service, METHODID_GET_DATASET))) + .addMethod( + getFetchDatasetErrorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest, + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse>( + service, METHODID_FETCH_DATASET_ERRORS))) .addMethod( getListDatasetsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -847,6 +973,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateDatasetMethod()) .addMethod(getUpdateDatasetMetadataMethod()) .addMethod(getGetDatasetMethod()) + .addMethod(getFetchDatasetErrorsMethod()) .addMethod(getListDatasetsMethod()) .addMethod(getDeleteDatasetMethod()) .build(); diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/FetchDatasetErrorsRequest.java b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/FetchDatasetErrorsRequest.java new file mode 100644 index 000000000000..171f9659e70c --- /dev/null +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/FetchDatasetErrorsRequest.java @@ -0,0 +1,954 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/mapsplatformdatasets/v1/maps_platform_datasets.proto + +// Protobuf Java Version: 3.25.3 +package com.google.maps.mapsplatformdatasets.v1; + +/** + * + * + *
        + * Request to list detailed errors belonging to a dataset.
        + * 
        + * + * Protobuf type {@code google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest} + */ +public final class FetchDatasetErrorsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest) + FetchDatasetErrorsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use FetchDatasetErrorsRequest.newBuilder() to construct. + private FetchDatasetErrorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchDatasetErrorsRequest() { + dataset_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchDatasetErrorsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsProto + .internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsProto + .internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest.class, + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest.Builder.class); + } + + public static final int DATASET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataset_ = ""; + /** + * + * + *
        +   * Required. The name of the dataset to list all the errors for.
        +   * Format: projects/{project}/datasets/{dataset_id}
        +   * 
        + * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataset. + */ + @java.lang.Override + public java.lang.String getDataset() { + java.lang.Object ref = dataset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataset_ = s; + return s; + } + } + /** + * + * + *
        +   * Required. The name of the dataset to list all the errors for.
        +   * Format: projects/{project}/datasets/{dataset_id}
        +   * 
        + * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = dataset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
        +   * The maximum number of errors to return per page.
        +   *
        +   * The maximum value is 500; values above 500 will be capped to 500.
        +   *
        +   * If unspecified, at most 50 errors will be returned.
        +   * 
        + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
        +   * The page token, received from a previous ListDatasetErrors call.
        +   * Provide this to retrieve the subsequent page.
        +   * 
        + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
        +   * The page token, received from a previous ListDatasetErrors call.
        +   * Provide this to retrieve the subsequent page.
        +   * 
        + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest)) { + return super.equals(obj); + } + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest other = + (com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest) obj; + + if (!getDataset().equals(other.getDataset())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Request to list detailed errors belonging to a dataset.
        +   * 
        + * + * Protobuf type {@code google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest) + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsProto + .internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsProto + .internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest.class, + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest.Builder.class); + } + + // Construct using + // com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataset_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsProto + .internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsRequest_descriptor; + } + + @java.lang.Override + public com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest + getDefaultInstanceForType() { + return com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest build() { + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest buildPartial() { + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest result = + new com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = dataset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest) { + return mergeFrom((com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest other) { + if (other + == com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest.getDefaultInstance()) + return this; + if (!other.getDataset().isEmpty()) { + dataset_ = other.dataset_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dataset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object dataset_ = ""; + /** + * + * + *
        +     * Required. The name of the dataset to list all the errors for.
        +     * Format: projects/{project}/datasets/{dataset_id}
        +     * 
        + * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataset. + */ + public java.lang.String getDataset() { + java.lang.Object ref = dataset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Required. The name of the dataset to list all the errors for.
        +     * Format: projects/{project}/datasets/{dataset_id}
        +     * 
        + * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataset. + */ + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = dataset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Required. The name of the dataset to list all the errors for.
        +     * Format: projects/{project}/datasets/{dataset_id}
        +     * 
        + * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataset to set. + * @return This builder for chaining. + */ + public Builder setDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. The name of the dataset to list all the errors for.
        +     * Format: projects/{project}/datasets/{dataset_id}
        +     * 
        + * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataset() { + dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * Required. The name of the dataset to list all the errors for.
        +     * Format: projects/{project}/datasets/{dataset_id}
        +     * 
        + * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for dataset to set. + * @return This builder for chaining. + */ + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
        +     * The maximum number of errors to return per page.
        +     *
        +     * The maximum value is 500; values above 500 will be capped to 500.
        +     *
        +     * If unspecified, at most 50 errors will be returned.
        +     * 
        + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
        +     * The maximum number of errors to return per page.
        +     *
        +     * The maximum value is 500; values above 500 will be capped to 500.
        +     *
        +     * If unspecified, at most 50 errors will be returned.
        +     * 
        + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * The maximum number of errors to return per page.
        +     *
        +     * The maximum value is 500; values above 500 will be capped to 500.
        +     *
        +     * If unspecified, at most 50 errors will be returned.
        +     * 
        + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
        +     * The page token, received from a previous ListDatasetErrors call.
        +     * Provide this to retrieve the subsequent page.
        +     * 
        + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * The page token, received from a previous ListDatasetErrors call.
        +     * Provide this to retrieve the subsequent page.
        +     * 
        + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * The page token, received from a previous ListDatasetErrors call.
        +     * Provide this to retrieve the subsequent page.
        +     * 
        + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * The page token, received from a previous ListDatasetErrors call.
        +     * Provide this to retrieve the subsequent page.
        +     * 
        + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +     * The page token, received from a previous ListDatasetErrors call.
        +     * Provide this to retrieve the subsequent page.
        +     * 
        + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest) + private static final com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest(); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchDatasetErrorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/FetchDatasetErrorsRequestOrBuilder.java b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/FetchDatasetErrorsRequestOrBuilder.java new file mode 100644 index 000000000000..6cf8890d45cf --- /dev/null +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/FetchDatasetErrorsRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/mapsplatformdatasets/v1/maps_platform_datasets.proto + +// Protobuf Java Version: 3.25.3 +package com.google.maps.mapsplatformdatasets.v1; + +public interface FetchDatasetErrorsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The name of the dataset to list all the errors for.
        +   * Format: projects/{project}/datasets/{dataset_id}
        +   * 
        + * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataset. + */ + java.lang.String getDataset(); + /** + * + * + *
        +   * Required. The name of the dataset to list all the errors for.
        +   * Format: projects/{project}/datasets/{dataset_id}
        +   * 
        + * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataset. + */ + com.google.protobuf.ByteString getDatasetBytes(); + + /** + * + * + *
        +   * The maximum number of errors to return per page.
        +   *
        +   * The maximum value is 500; values above 500 will be capped to 500.
        +   *
        +   * If unspecified, at most 50 errors will be returned.
        +   * 
        + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
        +   * The page token, received from a previous ListDatasetErrors call.
        +   * Provide this to retrieve the subsequent page.
        +   * 
        + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
        +   * The page token, received from a previous ListDatasetErrors call.
        +   * Provide this to retrieve the subsequent page.
        +   * 
        + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/FetchDatasetErrorsResponse.java b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/FetchDatasetErrorsResponse.java new file mode 100644 index 000000000000..d163fda33e02 --- /dev/null +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/FetchDatasetErrorsResponse.java @@ -0,0 +1,1130 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/mapsplatformdatasets/v1/maps_platform_datasets.proto + +// Protobuf Java Version: 3.25.3 +package com.google.maps.mapsplatformdatasets.v1; + +/** + * + * + *
        + * Response object of FetchDatasetErrors.
        + * 
        + * + * Protobuf type {@code google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse} + */ +public final class FetchDatasetErrorsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse) + FetchDatasetErrorsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use FetchDatasetErrorsResponse.newBuilder() to construct. + private FetchDatasetErrorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchDatasetErrorsResponse() { + nextPageToken_ = ""; + errors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchDatasetErrorsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsProto + .internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsProto + .internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse.class, + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse.Builder.class); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
        +   * A token that can be sent as `page_token` to retrieve the next page.
        +   *
        +   * If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
        +   * A token that can be sent as `page_token` to retrieve the next page.
        +   *
        +   * If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERRORS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List errors_; + /** + * + * + *
        +   * The errors associated with a dataset.
        +   * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + /** + * + * + *
        +   * The errors associated with a dataset.
        +   * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + @java.lang.Override + public java.util.List getErrorsOrBuilderList() { + return errors_; + } + /** + * + * + *
        +   * The errors associated with a dataset.
        +   * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + /** + * + * + *
        +   * The errors associated with a dataset.
        +   * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + @java.lang.Override + public com.google.rpc.Status getErrors(int index) { + return errors_.get(index); + } + /** + * + * + *
        +   * The errors associated with a dataset.
        +   * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index) { + return errors_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(3, errors_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errors_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse)) { + return super.equals(obj); + } + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse other = + (com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse) obj; + + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Response object of FetchDatasetErrors.
        +   * 
        + * + * Protobuf type {@code google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse) + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsProto + .internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsProto + .internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse.class, + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse.Builder.class); + } + + // Construct using + // com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nextPageToken_ = ""; + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsProto + .internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsResponse_descriptor; + } + + @java.lang.Override + public com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse + getDefaultInstanceForType() { + return com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse build() { + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse buildPartial() { + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse result = + new com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse result) { + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse) { + return mergeFrom( + (com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse other) { + if (other + == com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse + .getDefaultInstance()) return this; + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
        +     * A token that can be sent as `page_token` to retrieve the next page.
        +     *
        +     * If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * A token that can be sent as `page_token` to retrieve the next page.
        +     *
        +     * If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * A token that can be sent as `page_token` to retrieve the next page.
        +     *
        +     * If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * A token that can be sent as `page_token` to retrieve the next page.
        +     *
        +     * If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * A token that can be sent as `page_token` to retrieve the next page.
        +     *
        +     * If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List errors_ = java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + errors_ = new java.util.ArrayList(errors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorsBuilder_; + + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public com.google.rpc.Status getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public Builder setErrors(int index, com.google.rpc.Status value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public Builder setErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public Builder addErrors(com.google.rpc.Status value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public Builder addErrors(int index, com.google.rpc.Status value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public Builder addErrors(com.google.rpc.Status.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public Builder addErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public Builder addAllErrors(java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public com.google.rpc.Status.Builder getErrorsBuilder(int index) { + return getErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public java.util.List getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public com.google.rpc.Status.Builder addErrorsBuilder() { + return getErrorsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public com.google.rpc.Status.Builder addErrorsBuilder(int index) { + return getErrorsFieldBuilder().addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
        +     * The errors associated with a dataset.
        +     * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + public java.util.List getErrorsBuilderList() { + return getErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse) + } + + // @@protoc_insertion_point(class_scope:google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse) + private static final com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse(); + } + + public static com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchDatasetErrorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/FetchDatasetErrorsResponseOrBuilder.java b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/FetchDatasetErrorsResponseOrBuilder.java new file mode 100644 index 000000000000..69ef73124bf7 --- /dev/null +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/FetchDatasetErrorsResponseOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/mapsplatformdatasets/v1/maps_platform_datasets.proto + +// Protobuf Java Version: 3.25.3 +package com.google.maps.mapsplatformdatasets.v1; + +public interface FetchDatasetErrorsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * A token that can be sent as `page_token` to retrieve the next page.
        +   *
        +   * If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
        +   * A token that can be sent as `page_token` to retrieve the next page.
        +   *
        +   * If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
        +   * The errors associated with a dataset.
        +   * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + java.util.List getErrorsList(); + /** + * + * + *
        +   * The errors associated with a dataset.
        +   * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + com.google.rpc.Status getErrors(int index); + /** + * + * + *
        +   * The errors associated with a dataset.
        +   * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + int getErrorsCount(); + /** + * + * + *
        +   * The errors associated with a dataset.
        +   * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + java.util.List getErrorsOrBuilderList(); + /** + * + * + *
        +   * The errors associated with a dataset.
        +   * 
        + * + * repeated .google.rpc.Status errors = 3; + */ + com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index); +} diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsProto.java b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsProto.java index bb9df37e79dc..530e9e4b8463 100644 --- a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsProto.java +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsProto.java @@ -48,6 +48,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_maps_mapsplatformdatasets_v1_ListDatasetsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_maps_mapsplatformdatasets_v1_ListDatasetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_maps_mapsplatformdatasets_v1_DeleteDatasetRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -67,32 +75,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "d_behavior.proto\032\031google/api/resource.pr" + "oto\0321google/maps/mapsplatformdatasets/v1" + "/dataset.proto\032 google/protobuf/field_ma" - + "sk.proto\"\237\001\n\024CreateDatasetRequest\022C\n\006par" - + "ent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager." - + "googleapis.com/Project\022B\n\007dataset\030\002 \001(\0132" - + ",.google.maps.mapsplatformdatasets.v1.Da" - + "tasetB\003\340A\002\"\223\001\n\034UpdateDatasetMetadataRequ" - + "est\022B\n\007dataset\030\001 \001(\0132,.google.maps.mapsp" - + "latformdatasets.v1.DatasetB\003\340A\002\022/\n\013updat" - + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" - + "\"V\n\021GetDatasetRequest\022A\n\004name\030\001 \001(\tB3\340A\002" - + "\372A-\n+mapsplatformdatasets.googleapis.com" - + "/Dataset\"\216\001\n\023ListDatasetsRequest\022C\n\006pare" - + "nt\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.g" - + "oogleapis.com/Project\022\021\n\tpage_size\030\002 \001(\005" - + "\022\022\n\npage_token\030\003 \001(\t\022\013\n\003tag\030\004 \001(\t\"o\n\024Lis" - + "tDatasetsResponse\022>\n\010datasets\030\001 \003(\0132,.go" - + "ogle.maps.mapsplatformdatasets.v1.Datase" - + "t\022\027\n\017next_page_token\030\002 \001(\t\"Y\n\024DeleteData" - + "setRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+mapspl" - + "atformdatasets.googleapis.com/DatasetB\374\001" - + "\n\'com.google.maps.mapsplatformdatasets.v" - + "1B\031MapsPlatformDatasetsProtoP\001Zacloud.go" - + "ogle.com/go/maps/mapsplatformdatasets/ap" - + "iv1/mapsplatformdatasetspb;mapsplatformd" - + "atasetspb\242\002\004MDV1\252\002#Google.Maps.MapsPlatf" - + "ormDatasets.V1\312\002#Google\\Maps\\MapsPlatfor" - + "mDatasets\\V1b\006proto3" + + "sk.proto\032\027google/rpc/status.proto\"\237\001\n\024Cr" + + "eateDatasetRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372" + + "A-\n+cloudresourcemanager.googleapis.com/" + + "Project\022B\n\007dataset\030\002 \001(\0132,.google.maps.m" + + "apsplatformdatasets.v1.DatasetB\003\340A\002\"\223\001\n\034" + + "UpdateDatasetMetadataRequest\022B\n\007dataset\030" + + "\001 \001(\0132,.google.maps.mapsplatformdatasets" + + ".v1.DatasetB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032." + + "google.protobuf.FieldMask\"V\n\021GetDatasetR" + + "equest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+mapsplatfo" + + "rmdatasets.googleapis.com/Dataset\"\216\001\n\023Li" + + "stDatasetsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" + + "-\n+cloudresourcemanager.googleapis.com/P" + + "roject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + + "\003 \001(\t\022\013\n\003tag\030\004 \001(\t\"o\n\024ListDatasetsRespon" + + "se\022>\n\010datasets\030\001 \003(\0132,.google.maps.mapsp" + + "latformdatasets.v1.Dataset\022\027\n\017next_page_" + + "token\030\002 \001(\t\"\210\001\n\031FetchDatasetErrorsReques" + + "t\022D\n\007dataset\030\001 \001(\tB3\340A\002\372A-\n+mapsplatform" + + "datasets.googleapis.com/Dataset\022\021\n\tpage_" + + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"Y\n\032FetchD" + + "atasetErrorsResponse\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\"\n\006errors\030\003 \003(\0132\022.google.rpc.Statu" + + "s\"Y\n\024DeleteDatasetRequest\022A\n\004name\030\001 \001(\tB" + + "3\340A\002\372A-\n+mapsplatformdatasets.googleapis" + + ".com/DatasetB\374\001\n\'com.google.maps.mapspla" + + "tformdatasets.v1B\031MapsPlatformDatasetsPr" + + "otoP\001Zacloud.google.com/go/maps/mapsplat" + + "formdatasets/apiv1/mapsplatformdatasetsp" + + "b;mapsplatformdatasetspb\242\002\004MDV1\252\002#Google" + + ".Maps.MapsPlatformDatasets.V1\312\002#Google\\M" + + "aps\\MapsPlatformDatasets\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -102,6 +116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.maps.mapsplatformdatasets.v1.DatasetProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }); internal_static_google_maps_mapsplatformdatasets_v1_CreateDatasetRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -143,8 +158,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Datasets", "NextPageToken", }); - internal_static_google_maps_mapsplatformdatasets_v1_DeleteDatasetRequest_descriptor = + internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsRequest_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsRequest_descriptor, + new java.lang.String[] { + "Dataset", "PageSize", "PageToken", + }); + internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_mapsplatformdatasets_v1_FetchDatasetErrorsResponse_descriptor, + new java.lang.String[] { + "NextPageToken", "Errors", + }); + internal_static_google_maps_mapsplatformdatasets_v1_DeleteDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(7); internal_static_google_maps_mapsplatformdatasets_v1_DeleteDatasetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_maps_mapsplatformdatasets_v1_DeleteDatasetRequest_descriptor, @@ -161,6 +192,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.maps.mapsplatformdatasets.v1.DatasetProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsServiceProto.java b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsServiceProto.java index 9d102397415a..927cece4082c 100644 --- a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsServiceProto.java +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsServiceProto.java @@ -43,7 +43,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".proto\0321google/maps/mapsplatformdatasets" + "/v1/dataset.proto\032@google/maps/mapsplatf" + "ormdatasets/v1/maps_platform_datasets.pr" - + "oto\032\033google/protobuf/empty.proto2\377\007\n\024Map" + + "oto\032\033google/protobuf/empty.proto2\341\t\n\024Map" + "sPlatformDatasets\022\274\001\n\rCreateDataset\0229.go" + "ogle.maps.mapsplatformdatasets.v1.Create" + "DatasetRequest\032,.google.maps.mapsplatfor" @@ -58,25 +58,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "set\0226.google.maps.mapsplatformdatasets.v" + "1.GetDatasetRequest\032,.google.maps.mapspl" + "atformdatasets.v1.Dataset\"/\332A\004name\202\323\344\223\002\"" - + "\022 /v1/{name=projects/*/datasets/*}\022\266\001\n\014L" - + "istDatasets\0228.google.maps.mapsplatformda" - + "tasets.v1.ListDatasetsRequest\0329.google.m" - + "aps.mapsplatformdatasets.v1.ListDatasets" - + "Response\"1\332A\006parent\202\323\344\223\002\"\022 /v1/{parent=p" - + "rojects/*}/datasets\022\223\001\n\rDeleteDataset\0229." - + "google.maps.mapsplatformdatasets.v1.Dele" - + "teDatasetRequest\032\026.google.protobuf.Empty" - + "\"/\332A\004name\202\323\344\223\002\"* /v1/{name=projects/*/da" - + "tasets/*}\032W\312A#mapsplatformdatasets.googl" - + "eapis.com\322A.https://www.googleapis.com/a" - + "uth/cloud-platformB\206\002\n\'com.google.maps.m" - + "apsplatformdatasets.v1B MapsPlatformData" - + "setsServiceProtoP\001Zacloud.google.com/go/" - + "maps/mapsplatformdatasets/apiv1/mapsplat" - + "formdatasetspb;mapsplatformdatasetspb\370\001\001" - + "\242\002\004MDV1\252\002#Google.Maps.MapsPlatformDatase" - + "ts.V1\312\002#Google\\Maps\\MapsPlatformDatasets" - + "\\V1b\006proto3" + + "\022 /v1/{name=projects/*/datasets/*}\022\337\001\n\022F" + + "etchDatasetErrors\022>.google.maps.mapsplat" + + "formdatasets.v1.FetchDatasetErrorsReques" + + "t\032?.google.maps.mapsplatformdatasets.v1." + + "FetchDatasetErrorsResponse\"H\332A\007dataset\202\323" + + "\344\223\0028\0226/v1/{dataset=projects/*/datasets/*" + + "}:fetchDatasetErrors\022\266\001\n\014ListDatasets\0228." + + "google.maps.mapsplatformdatasets.v1.List" + + "DatasetsRequest\0329.google.maps.mapsplatfo" + + "rmdatasets.v1.ListDatasetsResponse\"1\332A\006p" + + "arent\202\323\344\223\002\"\022 /v1/{parent=projects/*}/dat" + + "asets\022\223\001\n\rDeleteDataset\0229.google.maps.ma" + + "psplatformdatasets.v1.DeleteDatasetReque" + + "st\032\026.google.protobuf.Empty\"/\332A\004name\202\323\344\223\002" + + "\"* /v1/{name=projects/*/datasets/*}\032W\312A#" + + "mapsplatformdatasets.googleapis.com\322A.ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "formB\206\002\n\'com.google.maps.mapsplatformdat" + + "asets.v1B MapsPlatformDatasetsServicePro" + + "toP\001Zacloud.google.com/go/maps/mapsplatf" + + "ormdatasets/apiv1/mapsplatformdatasetspb" + + ";mapsplatformdatasetspb\370\001\001\242\002\004MDV1\252\002#Goog" + + "le.Maps.MapsPlatformDatasets.V1\312\002#Google" + + "\\Maps\\MapsPlatformDatasets\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/proto/google/maps/mapsplatformdatasets/v1/maps_platform_datasets.proto b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/proto/google/maps/mapsplatformdatasets/v1/maps_platform_datasets.proto index af76bab23c24..1ca5317f2844 100644 --- a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/proto/google/maps/mapsplatformdatasets/v1/maps_platform_datasets.proto +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/proto/google/maps/mapsplatformdatasets/v1/maps_platform_datasets.proto @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/maps/mapsplatformdatasets/v1/dataset.proto"; import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; option csharp_namespace = "Google.Maps.MapsPlatformDatasets.V1"; option go_package = "cloud.google.com/go/maps/mapsplatformdatasets/apiv1/mapsplatformdatasetspb;mapsplatformdatasetspb"; @@ -118,6 +119,40 @@ message ListDatasetsResponse { string next_page_token = 2; } +// Request to list detailed errors belonging to a dataset. +message FetchDatasetErrorsRequest { + // Required. The name of the dataset to list all the errors for. + // Format: projects/{project}/datasets/{dataset_id} + string dataset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapsplatformdatasets.googleapis.com/Dataset" + } + ]; + + // The maximum number of errors to return per page. + // + // The maximum value is 500; values above 500 will be capped to 500. + // + // If unspecified, at most 50 errors will be returned. + int32 page_size = 2; + + // The page token, received from a previous ListDatasetErrors call. + // Provide this to retrieve the subsequent page. + string page_token = 3; +} + +// Response object of FetchDatasetErrors. +message FetchDatasetErrorsResponse { + // A token that can be sent as `page_token` to retrieve the next page. + // + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // The errors associated with a dataset. + repeated google.rpc.Status errors = 3; +} + // Request to delete a dataset. message DeleteDatasetRequest { // Required. The name of the dataset to delete. diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/proto/google/maps/mapsplatformdatasets/v1/maps_platform_datasets_service.proto b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/proto/google/maps/mapsplatformdatasets/v1/maps_platform_datasets_service.proto index d96b1b3cdad3..4b52ed68178c 100644 --- a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/proto/google/maps/mapsplatformdatasets/v1/maps_platform_datasets_service.proto +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/proto/google/maps/mapsplatformdatasets/v1/maps_platform_datasets_service.proto @@ -63,6 +63,15 @@ service MapsPlatformDatasets { option (google.api.method_signature) = "name"; } + // Gets all the errors of a dataset. + rpc FetchDatasetErrors(FetchDatasetErrorsRequest) + returns (FetchDatasetErrorsResponse) { + option (google.api.http) = { + get: "/v1/{dataset=projects/*/datasets/*}:fetchDatasetErrors" + }; + option (google.api.method_signature) = "dataset"; + } + // Lists all the datasets for the specified project. rpc ListDatasets(ListDatasetsRequest) returns (ListDatasetsResponse) { option (google.api.http) = { diff --git a/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/AsyncFetchDatasetErrors.java b/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/AsyncFetchDatasetErrors.java new file mode 100644 index 000000000000..dc3132b59b0b --- /dev/null +++ b/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/AsyncFetchDatasetErrors.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapsplatformdatasets.v1.samples; + +// [START mapsplatformdatasets_v1_generated_MapsPlatformDatasets_FetchDatasetErrors_async] +import com.google.api.core.ApiFuture; +import com.google.maps.mapsplatformdatasets.v1.DatasetName; +import com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest; +import com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient; +import com.google.rpc.Status; + +public class AsyncFetchDatasetErrors { + + public static void main(String[] args) throws Exception { + asyncFetchDatasetErrors(); + } + + public static void asyncFetchDatasetErrors() throws Exception { + // 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 (MapsPlatformDatasetsClient mapsPlatformDatasetsClient = + MapsPlatformDatasetsClient.create()) { + FetchDatasetErrorsRequest request = + FetchDatasetErrorsRequest.newBuilder() + .setDataset(DatasetName.of("[PROJECT]", "[DATASET]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + mapsPlatformDatasetsClient.fetchDatasetErrorsPagedCallable().futureCall(request); + // Do something. + for (Status element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapsplatformdatasets_v1_generated_MapsPlatformDatasets_FetchDatasetErrors_async] diff --git a/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/AsyncFetchDatasetErrorsPaged.java b/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/AsyncFetchDatasetErrorsPaged.java new file mode 100644 index 000000000000..a6ff627f1d92 --- /dev/null +++ b/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/AsyncFetchDatasetErrorsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapsplatformdatasets.v1.samples; + +// [START mapsplatformdatasets_v1_generated_MapsPlatformDatasets_FetchDatasetErrors_Paged_async] +import com.google.common.base.Strings; +import com.google.maps.mapsplatformdatasets.v1.DatasetName; +import com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest; +import com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse; +import com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient; +import com.google.rpc.Status; + +public class AsyncFetchDatasetErrorsPaged { + + public static void main(String[] args) throws Exception { + asyncFetchDatasetErrorsPaged(); + } + + public static void asyncFetchDatasetErrorsPaged() throws Exception { + // 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 (MapsPlatformDatasetsClient mapsPlatformDatasetsClient = + MapsPlatformDatasetsClient.create()) { + FetchDatasetErrorsRequest request = + FetchDatasetErrorsRequest.newBuilder() + .setDataset(DatasetName.of("[PROJECT]", "[DATASET]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + FetchDatasetErrorsResponse response = + mapsPlatformDatasetsClient.fetchDatasetErrorsCallable().call(request); + for (Status element : response.getErrorsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END mapsplatformdatasets_v1_generated_MapsPlatformDatasets_FetchDatasetErrors_Paged_async] diff --git a/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/SyncFetchDatasetErrors.java b/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/SyncFetchDatasetErrors.java new file mode 100644 index 000000000000..5bed746ff3c4 --- /dev/null +++ b/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/SyncFetchDatasetErrors.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapsplatformdatasets.v1.samples; + +// [START mapsplatformdatasets_v1_generated_MapsPlatformDatasets_FetchDatasetErrors_sync] +import com.google.maps.mapsplatformdatasets.v1.DatasetName; +import com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest; +import com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient; +import com.google.rpc.Status; + +public class SyncFetchDatasetErrors { + + public static void main(String[] args) throws Exception { + syncFetchDatasetErrors(); + } + + public static void syncFetchDatasetErrors() throws Exception { + // 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 (MapsPlatformDatasetsClient mapsPlatformDatasetsClient = + MapsPlatformDatasetsClient.create()) { + FetchDatasetErrorsRequest request = + FetchDatasetErrorsRequest.newBuilder() + .setDataset(DatasetName.of("[PROJECT]", "[DATASET]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Status element : mapsPlatformDatasetsClient.fetchDatasetErrors(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapsplatformdatasets_v1_generated_MapsPlatformDatasets_FetchDatasetErrors_sync] diff --git a/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/SyncFetchDatasetErrorsDatasetname.java b/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/SyncFetchDatasetErrorsDatasetname.java new file mode 100644 index 000000000000..090d91930921 --- /dev/null +++ b/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/SyncFetchDatasetErrorsDatasetname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapsplatformdatasets.v1.samples; + +// [START mapsplatformdatasets_v1_generated_MapsPlatformDatasets_FetchDatasetErrors_Datasetname_sync] +import com.google.maps.mapsplatformdatasets.v1.DatasetName; +import com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient; +import com.google.rpc.Status; + +public class SyncFetchDatasetErrorsDatasetname { + + public static void main(String[] args) throws Exception { + syncFetchDatasetErrorsDatasetname(); + } + + public static void syncFetchDatasetErrorsDatasetname() throws Exception { + // 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 (MapsPlatformDatasetsClient mapsPlatformDatasetsClient = + MapsPlatformDatasetsClient.create()) { + DatasetName dataset = DatasetName.of("[PROJECT]", "[DATASET]"); + for (Status element : mapsPlatformDatasetsClient.fetchDatasetErrors(dataset).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapsplatformdatasets_v1_generated_MapsPlatformDatasets_FetchDatasetErrors_Datasetname_sync] diff --git a/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/SyncFetchDatasetErrorsString.java b/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/SyncFetchDatasetErrorsString.java new file mode 100644 index 000000000000..39d9dbd8715c --- /dev/null +++ b/java-maps-mapsplatformdatasets/samples/snippets/generated/com/google/maps/mapsplatformdatasets/v1/mapsplatformdatasets/fetchdataseterrors/SyncFetchDatasetErrorsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.mapsplatformdatasets.v1.samples; + +// [START mapsplatformdatasets_v1_generated_MapsPlatformDatasets_FetchDatasetErrors_String_sync] +import com.google.maps.mapsplatformdatasets.v1.DatasetName; +import com.google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient; +import com.google.rpc.Status; + +public class SyncFetchDatasetErrorsString { + + public static void main(String[] args) throws Exception { + syncFetchDatasetErrorsString(); + } + + public static void syncFetchDatasetErrorsString() throws Exception { + // 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 (MapsPlatformDatasetsClient mapsPlatformDatasetsClient = + MapsPlatformDatasetsClient.create()) { + String dataset = DatasetName.of("[PROJECT]", "[DATASET]").toString(); + for (Status element : mapsPlatformDatasetsClient.fetchDatasetErrors(dataset).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END mapsplatformdatasets_v1_generated_MapsPlatformDatasets_FetchDatasetErrors_String_sync] diff --git a/java-maps-places/README.md b/java-maps-places/README.md index 6cec7e96139e..a455fb200754 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/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.maps/google-maps-places.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.17.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-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/PlacesStubSettings.java b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/PlacesStubSettings.java index 650e4f5b7af7..39f376fbb392 100644 --- a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/PlacesStubSettings.java +++ b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/PlacesStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -155,6 +156,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "places.googleapis.com:443"; } diff --git a/java-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index 7cc0ecddc493..a423364778ca 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/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.maps/google-maps-routeoptimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.4.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-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/RouteOptimizationStubSettings.java b/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/RouteOptimizationStubSettings.java index b47dca234edd..3490bc36411e 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/RouteOptimizationStubSettings.java +++ b/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/RouteOptimizationStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -150,6 +151,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "routeoptimization.googleapis.com:443"; } diff --git a/java-maps-routing/README.md b/java-maps-routing/README.md index 2b4d8b21e16e..6f76639c02d3 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/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.maps/google-maps-routing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.31.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-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java index 2753b2b72571..7cc5ef06cf7e 100644 --- a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java +++ b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -133,6 +134,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "routes.googleapis.com:443"; } diff --git a/java-maps-solar/README.md b/java-maps-solar/README.md index c0d54388ebba..b255f6ea7e7c 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/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.maps/google-maps-solar.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/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-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/stub/SolarStubSettings.java b/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/stub/SolarStubSettings.java index 3e3ae63a7d2e..d0dc40677a92 100644 --- a/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/stub/SolarStubSettings.java +++ b/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/stub/SolarStubSettings.java @@ -19,6 +19,7 @@ import com.google.api.HttpBody; import com.google.api.core.ApiFunction; 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; @@ -140,6 +141,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "solar.googleapis.com:443"; } diff --git a/java-mediatranslation/README.md b/java-mediatranslation/README.md index 2c8ab73eec31..ff57ea0d8895 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/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.cloud/google-cloud-mediatranslation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.52.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-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java index f23b151f1e67..695423eb7116 100644 --- a/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java +++ b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -123,6 +124,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "mediatranslation.googleapis.com:443"; } diff --git a/java-meet/README.md b/java-meet/README.md index 076c04b66944..095c5cf80e6d 100644 --- a/java-meet/README.md +++ b/java-meet/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.cloud/google-cloud-meet.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.13.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-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStubSettings.java index fed64fbc3b30..778c3aaca0ab 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStubSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStubSettings.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; @@ -643,6 +644,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "meet.googleapis.com:443"; } diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java index c0690d6be237..36c1482a1503 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -148,6 +149,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "meet.googleapis.com:443"; } diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java index 0d7ea4acffd5..d96bf4fac759 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.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; @@ -641,6 +642,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "meet.googleapis.com:443"; } diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java index 4fc6d1132128..05265a199f19 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -146,6 +147,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "meet.googleapis.com:443"; } diff --git a/java-memcache/README.md b/java-memcache/README.md index 2c684ec7b870..fda72eaebe6c 100644 --- a/java-memcache/README.md +++ b/java-memcache/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-memcache.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.46.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-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java index 2ecdb36c36c8..fa1efbf665f7 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.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; @@ -368,6 +369,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "memcache.googleapis.com:443"; } diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java index fe63117ace34..887613056a7b 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.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; @@ -385,6 +386,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "memcache.googleapis.com:443"; } diff --git a/java-migrationcenter/README.md b/java-migrationcenter/README.md index 5e3e1c9fc4b0..e645c6f53073 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/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.cloud/google-cloud-migrationcenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.28.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-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/MigrationCenterStubSettings.java b/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/MigrationCenterStubSettings.java index 066b68bd9765..56d3fb6199e5 100644 --- a/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/MigrationCenterStubSettings.java +++ b/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/MigrationCenterStubSettings.java @@ -30,6 +30,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; @@ -1303,6 +1304,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "migrationcenter.googleapis.com:443"; } diff --git a/java-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index 4de4c64f49a2..1e41bb397649 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/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-monitoring-dashboard.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.48.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-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java index 5aa7c9974495..f00fd2ad644b 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.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 "monitoring.googleapis.com:443"; } diff --git a/java-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index 50484c136c32..407eb79b87de 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/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.cloud/google-cloud-monitoring-metricsscope.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.40.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-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/MetricsScopesStubSettings.java b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/MetricsScopesStubSettings.java index f0872648e96e..d11e49264676 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/MetricsScopesStubSettings.java +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/MetricsScopesStubSettings.java @@ -17,6 +17,7 @@ package com.google.monitoring.metricsscope.v1.stub; 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; @@ -174,6 +175,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "monitoring.googleapis.com:443"; } diff --git a/java-monitoring/README.md b/java-monitoring/README.md index 4fdc740674ec..474956d21c66 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/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-monitoring.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.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-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java index b8daca9aaae6..352291450574 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.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; @@ -223,6 +224,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "monitoring.googleapis.com:443"; } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java index 00c7f8402efb..c58c33e8ae99 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java @@ -22,6 +22,7 @@ import com.google.api.MonitoredResource; 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; @@ -285,6 +286,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "monitoring.googleapis.com:443"; } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java index 72de977a2abf..2d4cb8432167 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java @@ -24,6 +24,7 @@ import com.google.api.MonitoredResourceDescriptor; 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; @@ -421,6 +422,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "monitoring.googleapis.com:443"; } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java index f9397862e0f1..12d752112332 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.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; @@ -396,6 +397,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "monitoring.googleapis.com:443"; } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java index f19baa56ecda..74ab7071b597 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.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; @@ -190,6 +191,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "monitoring.googleapis.com:443"; } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java index e77f3963c4c1..27a1205c3527 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.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; @@ -346,6 +347,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "monitoring.googleapis.com:443"; } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java index 5dd51a60981b..750437b56d0e 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.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; @@ -204,6 +205,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "monitoring.googleapis.com:443"; } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java index eaf7c535be32..f2d07944ce99 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.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; @@ -319,6 +320,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "monitoring.googleapis.com:443"; } diff --git a/java-netapp/README.md b/java-netapp/README.md index 6c29334dbf6d..9c5f9eb1443e 100644 --- a/java-netapp/README.md +++ b/java-netapp/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.cloud/google-cloud-netapp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.25.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-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java index c75fab8dcb96..3298dfc5eace 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java @@ -1391,8 +1391,10 @@ public final ListStoragePoolsPagedResponse listStoragePools(ListStoragePoolsRequ * * @param parent Required. Value for parent. * @param storagePool Required. The required parameters to create a new storage pool. - * @param storagePoolId Required. Id of the requesting storage pool If auto-generating Id - * server-side, remove this field and id from the method_signature of Create RPC + * @param storagePoolId Required. Id of the requesting storage pool. Must be unique within the + * parent resource. Must contain only letters, numbers, underscore and hyphen, with the first + * character a letter or underscore, the last a letter or underscore or a number, and a 63 + * character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createStoragePoolAsync( @@ -1429,8 +1431,10 @@ public final OperationFuture createStoragePoolAs * * @param parent Required. Value for parent. * @param storagePool Required. The required parameters to create a new storage pool. - * @param storagePoolId Required. Id of the requesting storage pool If auto-generating Id - * server-side, remove this field and id from the method_signature of Create RPC + * @param storagePoolId Required. Id of the requesting storage pool. Must be unique within the + * parent resource. Must contain only letters, numbers, underscore and hyphen, with the first + * character a letter or underscore, the last a letter or underscore or a number, and a 63 + * character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createStoragePoolAsync( @@ -2205,8 +2209,10 @@ public final UnaryCallable getVolumeCallable() { * * @param parent Required. Value for parent. * @param volume Required. The volume being created. - * @param volumeId Required. Id of the requesting volume If auto-generating Id server-side, remove - * this field and Id from the method_signature of Create RPC + * @param volumeId Required. Id of the requesting volume. Must be unique within the parent + * resource. Must contain only letters, numbers, underscore and hyphen, with the first + * character a letter or underscore, the last a letter or underscore or a number, and a 63 + * character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVolumeAsync( @@ -2242,8 +2248,10 @@ public final OperationFuture createVolumeAsync( * * @param parent Required. Value for parent. * @param volume Required. The volume being created. - * @param volumeId Required. Id of the requesting volume If auto-generating Id server-side, remove - * this field and Id from the method_signature of Create RPC + * @param volumeId Required. Id of the requesting volume. Must be unique within the parent + * resource. Must contain only letters, numbers, underscore and hyphen, with the first + * character a letter or underscore, the last a letter or underscore or a number, and a 63 + * character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVolumeAsync( @@ -3005,9 +3013,10 @@ public final UnaryCallable getSnapshotCallable() { * @param parent Required. The NetApp volume to create the snapshots of, in the format * `projects/{project_id}/locations/{location}/volumes/{volume_id}` * @param snapshot Required. A snapshot resource - * @param snapshotId Required. ID of the snapshot to create. This value must start with a - * lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot - * end with a hyphen. + * @param snapshotId Required. ID of the snapshot to create. Must be unique within the parent + * resource. Must contain only letters, numbers, underscore and hyphen, with the first + * character a letter or underscore, the last a letter or underscore or a number, and a 63 + * character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSnapshotAsync( @@ -3044,9 +3053,10 @@ public final OperationFuture createSnapshotAsync( * @param parent Required. The NetApp volume to create the snapshots of, in the format * `projects/{project_id}/locations/{location}/volumes/{volume_id}` * @param snapshot Required. A snapshot resource - * @param snapshotId Required. ID of the snapshot to create. This value must start with a - * lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot - * end with a hyphen. + * @param snapshotId Required. ID of the snapshot to create. Must be unique within the parent + * resource. Must contain only letters, numbers, underscore and hyphen, with the first + * character a letter or underscore, the last a letter or underscore or a number, and a 63 + * character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSnapshotAsync( @@ -3727,7 +3737,10 @@ public final ActiveDirectory getActiveDirectory(GetActiveDirectoryRequest reques * * @param parent Required. Value for parent. * @param activeDirectory Required. Fields of the to be created active directory. - * @param activeDirectoryId Required. ID of the active directory to create. + * @param activeDirectoryId Required. ID of the active directory to create. Must be unique within + * the parent resource. Must contain only letters, numbers, underscore and hyphen, with the + * first character a letter or underscore, the last a letter or underscore or a number, and a + * 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createActiveDirectoryAsync( @@ -3764,7 +3777,10 @@ public final OperationFuture createActiveDir * * @param parent Required. Value for parent. * @param activeDirectory Required. Fields of the to be created active directory. - * @param activeDirectoryId Required. ID of the active directory to create. + * @param activeDirectoryId Required. ID of the active directory to create. Must be unique within + * the parent resource. Must contain only letters, numbers, underscore and hyphen, with the + * first character a letter or underscore, the last a letter or underscore or a number, and a + * 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createActiveDirectoryAsync( @@ -4340,8 +4356,10 @@ public final ListKmsConfigsPagedResponse listKmsConfigs(ListKmsConfigsRequest re * * @param parent Required. Value for parent. * @param kmsConfig Required. The required parameters to create a new KmsConfig. - * @param kmsConfigId Required. Id of the requesting KmsConfig If auto-generating Id server-side, - * remove this field and id from the method_signature of Create RPC + * @param kmsConfigId Required. Id of the requesting KmsConfig. Must be unique within the parent + * resource. Must contain only letters, numbers, underscore and hyphen, with the first + * character a letter or underscore, the last a letter or underscore or a number, and a 63 + * character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createKmsConfigAsync( @@ -4377,8 +4395,10 @@ public final OperationFuture createKmsConfigAsync( * * @param parent Required. Value for parent. * @param kmsConfig Required. The required parameters to create a new KmsConfig. - * @param kmsConfigId Required. Id of the requesting KmsConfig If auto-generating Id server-side, - * remove this field and id from the method_signature of Create RPC + * @param kmsConfigId Required. Id of the requesting KmsConfig. Must be unique within the parent + * resource. Must contain only letters, numbers, underscore and hyphen, with the first + * character a letter or underscore, the last a letter or underscore or a number, and a 63 + * character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createKmsConfigAsync( @@ -5310,9 +5330,10 @@ public final UnaryCallable getReplicationCal * @param parent Required. The NetApp volume to create the replications of, in the format * `projects/{project_id}/locations/{location}/volumes/{volume_id}` * @param replication Required. A replication resource - * @param replicationId Required. ID of the replication to create. This value must start with a - * lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot - * end with a hyphen. + * @param replicationId Required. ID of the replication to create. Must be unique within the + * parent resource. Must contain only letters, numbers, underscore and hyphen, with the first + * character a letter or underscore, the last a letter or underscore or a number, and a 63 + * character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createReplicationAsync( @@ -5350,9 +5371,10 @@ public final OperationFuture createReplicationAs * @param parent Required. The NetApp volume to create the replications of, in the format * `projects/{project_id}/locations/{location}/volumes/{volume_id}` * @param replication Required. A replication resource - * @param replicationId Required. ID of the replication to create. This value must start with a - * lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot - * end with a hyphen. + * @param replicationId Required. ID of the replication to create. Must be unique within the + * parent resource. Must contain only letters, numbers, underscore and hyphen, with the first + * character a letter or underscore, the last a letter or underscore or a number, and a 63 + * character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createReplicationAsync( @@ -6033,10 +6055,9 @@ public final OperationFuture reverseReplicationD * `projects/{project_id}/locations/{location}` * @param backupVault Required. A backupVault resource * @param backupVaultId Required. The ID to use for the backupVault. The ID must be unique within - * the specified location. The max supported length is 63 characters. This value must start - * with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and - * cannot end with a hyphen. Values that do not match this pattern will trigger an - * INVALID_ARGUMENT error. + * the specified location. Must contain only letters, numbers, underscore and hyphen, with the + * first character a letter or underscore, the last a letter or underscore or a number, and a + * 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupVaultAsync( @@ -6075,10 +6096,9 @@ public final OperationFuture createBackupVaultAs * `projects/{project_id}/locations/{location}` * @param backupVault Required. A backupVault resource * @param backupVaultId Required. The ID to use for the backupVault. The ID must be unique within - * the specified location. The max supported length is 63 characters. This value must start - * with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and - * cannot end with a hyphen. Values that do not match this pattern will trigger an - * INVALID_ARGUMENT error. + * the specified location. Must contain only letters, numbers, underscore and hyphen, with the + * first character a letter or underscore, the last a letter or underscore or a number, and a + * 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupVaultAsync( @@ -6758,9 +6778,9 @@ public final UnaryCallable deleteBackupVaul * `projects/*/locations/*/backupVaults/{backup_vault_id}` * @param backup Required. A backup resource * @param backupId Required. The ID to use for the backup. The ID must be unique within the - * specified backupVault. This value must start with a lowercase letter followed by up to 62 - * lowercase letters, numbers, or hyphens, and cannot end with a hyphen. Values that do not - * match this pattern will trigger an INVALID_ARGUMENT error. + * specified backupVault. Must contain only letters, numbers, underscore and hyphen, with the + * first character a letter or underscore, the last a letter or underscore or a number, and a + * 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( @@ -6800,9 +6820,9 @@ public final OperationFuture createBackupAsync( * `projects/*/locations/*/backupVaults/{backup_vault_id}` * @param backup Required. A backup resource * @param backupId Required. The ID to use for the backup. The ID must be unique within the - * specified backupVault. This value must start with a lowercase letter followed by up to 62 - * lowercase letters, numbers, or hyphens, and cannot end with a hyphen. Values that do not - * match this pattern will trigger an INVALID_ARGUMENT error. + * specified backupVault. Must contain only letters, numbers, underscore and hyphen, with the + * first character a letter or underscore, the last a letter or underscore or a number, and a + * 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( @@ -7493,8 +7513,9 @@ public final UnaryCallable updateBackupCallable( * `projects/{project_id}/locations/{location}` * @param backupPolicy Required. A backupPolicy resource * @param backupPolicyId Required. The ID to use for the backup policy. The ID must be unique - * within the specified location. This value must start with a lowercase letter followed by up - * to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. + * within the specified location. Must contain only letters, numbers, underscore and hyphen, + * with the first character a letter or underscore, the last a letter or underscore or a + * number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupPolicyAsync( @@ -7533,8 +7554,9 @@ public final OperationFuture createBackupPolicy * `projects/{project_id}/locations/{location}` * @param backupPolicy Required. A backupPolicy resource * @param backupPolicyId Required. The ID to use for the backup policy. The ID must be unique - * within the specified location. This value must start with a lowercase letter followed by up - * to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. + * within the specified location. Must contain only letters, numbers, underscore and hyphen, + * with the first character a letter or underscore, the last a letter or underscore or a + * number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupPolicyAsync( diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java index 7444b377604a..01ff0ae5c747 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java @@ -30,6 +30,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; @@ -1409,6 +1410,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "netapp.googleapis.com:443"; } diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java index 900b5a3ce6db..a10867ef174e 100644 --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java @@ -216,6 +216,8 @@ public void createStoragePoolTest() throws Exception { .setPsaRange("psaRange-534274785") .setEncryptionType(EncryptionType.forNumber(0)) .setGlobalAccessAllowed(true) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); Operation resultOperation = Operation.newBuilder() @@ -286,6 +288,8 @@ public void createStoragePoolTest2() throws Exception { .setPsaRange("psaRange-534274785") .setEncryptionType(EncryptionType.forNumber(0)) .setGlobalAccessAllowed(true) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); Operation resultOperation = Operation.newBuilder() @@ -356,6 +360,8 @@ public void getStoragePoolTest() throws Exception { .setPsaRange("psaRange-534274785") .setEncryptionType(EncryptionType.forNumber(0)) .setGlobalAccessAllowed(true) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); mockService.addResponse(expectedResponse); @@ -416,6 +422,8 @@ public void getStoragePoolTest2() throws Exception { .setPsaRange("psaRange-534274785") .setEncryptionType(EncryptionType.forNumber(0)) .setGlobalAccessAllowed(true) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); mockService.addResponse(expectedResponse); @@ -476,6 +484,8 @@ public void updateStoragePoolTest() throws Exception { .setPsaRange("psaRange-534274785") .setEncryptionType(EncryptionType.forNumber(0)) .setGlobalAccessAllowed(true) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); Operation resultOperation = Operation.newBuilder() @@ -504,6 +514,8 @@ public void updateStoragePoolTest() throws Exception { .setPsaRange("psaRange-534274785") .setEncryptionType(EncryptionType.forNumber(0)) .setGlobalAccessAllowed(true) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -553,6 +565,8 @@ public void updateStoragePoolExceptionTest() throws Exception { .setPsaRange("psaRange-534274785") .setEncryptionType(EncryptionType.forNumber(0)) .setGlobalAccessAllowed(true) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateStoragePoolAsync(storagePool, updateMask).get(); @@ -787,7 +801,11 @@ public void getVolumeTest() throws Exception { .setHasReplication(true) .setBackupConfig(BackupConfig.newBuilder().build()) .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); mockService.addResponse(expectedResponse); @@ -863,7 +881,11 @@ public void getVolumeTest2() throws Exception { .setHasReplication(true) .setBackupConfig(BackupConfig.newBuilder().build()) .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); mockService.addResponse(expectedResponse); @@ -939,7 +961,11 @@ public void createVolumeTest() throws Exception { .setHasReplication(true) .setBackupConfig(BackupConfig.newBuilder().build()) .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); Operation resultOperation = Operation.newBuilder() @@ -1024,7 +1050,11 @@ public void createVolumeTest2() throws Exception { .setHasReplication(true) .setBackupConfig(BackupConfig.newBuilder().build()) .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); Operation resultOperation = Operation.newBuilder() @@ -1109,7 +1139,11 @@ public void updateVolumeTest() throws Exception { .setHasReplication(true) .setBackupConfig(BackupConfig.newBuilder().build()) .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); Operation resultOperation = Operation.newBuilder() @@ -1153,7 +1187,11 @@ public void updateVolumeTest() throws Exception { .setHasReplication(true) .setBackupConfig(BackupConfig.newBuilder().build()) .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1218,7 +1256,11 @@ public void updateVolumeExceptionTest() throws Exception { .setHasReplication(true) .setBackupConfig(BackupConfig.newBuilder().build()) .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateVolumeAsync(volume, updateMask).get(); @@ -1353,7 +1395,11 @@ public void revertVolumeTest() throws Exception { .setHasReplication(true) .setBackupConfig(BackupConfig.newBuilder().build()) .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); Operation resultOperation = Operation.newBuilder() @@ -2009,6 +2055,7 @@ public void getActiveDirectoryTest() throws Exception { .setUsername("username-265713450") .setPassword("password1216985755") .addAllBackupOperators(new ArrayList()) + .addAllAdministrators(new ArrayList()) .addAllSecurityOperators(new ArrayList()) .setKdcHostname("kdcHostname-256273283") .setKdcIp("kdcIp101893361") @@ -2075,6 +2122,7 @@ public void getActiveDirectoryTest2() throws Exception { .setUsername("username-265713450") .setPassword("password1216985755") .addAllBackupOperators(new ArrayList()) + .addAllAdministrators(new ArrayList()) .addAllSecurityOperators(new ArrayList()) .setKdcHostname("kdcHostname-256273283") .setKdcIp("kdcIp101893361") @@ -2141,6 +2189,7 @@ public void createActiveDirectoryTest() throws Exception { .setUsername("username-265713450") .setPassword("password1216985755") .addAllBackupOperators(new ArrayList()) + .addAllAdministrators(new ArrayList()) .addAllSecurityOperators(new ArrayList()) .setKdcHostname("kdcHostname-256273283") .setKdcIp("kdcIp101893361") @@ -2215,6 +2264,7 @@ public void createActiveDirectoryTest2() throws Exception { .setUsername("username-265713450") .setPassword("password1216985755") .addAllBackupOperators(new ArrayList()) + .addAllAdministrators(new ArrayList()) .addAllSecurityOperators(new ArrayList()) .setKdcHostname("kdcHostname-256273283") .setKdcIp("kdcIp101893361") @@ -2289,6 +2339,7 @@ public void updateActiveDirectoryTest() throws Exception { .setUsername("username-265713450") .setPassword("password1216985755") .addAllBackupOperators(new ArrayList()) + .addAllAdministrators(new ArrayList()) .addAllSecurityOperators(new ArrayList()) .setKdcHostname("kdcHostname-256273283") .setKdcIp("kdcIp101893361") @@ -2321,6 +2372,7 @@ public void updateActiveDirectoryTest() throws Exception { .setUsername("username-265713450") .setPassword("password1216985755") .addAllBackupOperators(new ArrayList()) + .addAllAdministrators(new ArrayList()) .addAllSecurityOperators(new ArrayList()) .setKdcHostname("kdcHostname-256273283") .setKdcIp("kdcIp101893361") @@ -2375,6 +2427,7 @@ public void updateActiveDirectoryExceptionTest() throws Exception { .setUsername("username-265713450") .setPassword("password1216985755") .addAllBackupOperators(new ArrayList()) + .addAllAdministrators(new ArrayList()) .addAllSecurityOperators(new ArrayList()) .setKdcHostname("kdcHostname-256273283") .setKdcIp("kdcIp101893361") diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java index fc9e6e6ed826..2228174b5a58 100644 --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java @@ -212,6 +212,8 @@ public void createStoragePoolTest() throws Exception { .setPsaRange("psaRange-534274785") .setEncryptionType(EncryptionType.forNumber(0)) .setGlobalAccessAllowed(true) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); Operation resultOperation = Operation.newBuilder() @@ -281,6 +283,8 @@ public void createStoragePoolTest2() throws Exception { .setPsaRange("psaRange-534274785") .setEncryptionType(EncryptionType.forNumber(0)) .setGlobalAccessAllowed(true) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); Operation resultOperation = Operation.newBuilder() @@ -350,6 +354,8 @@ public void getStoragePoolTest() throws Exception { .setPsaRange("psaRange-534274785") .setEncryptionType(EncryptionType.forNumber(0)) .setGlobalAccessAllowed(true) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); mockNetApp.addResponse(expectedResponse); @@ -404,6 +410,8 @@ public void getStoragePoolTest2() throws Exception { .setPsaRange("psaRange-534274785") .setEncryptionType(EncryptionType.forNumber(0)) .setGlobalAccessAllowed(true) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); mockNetApp.addResponse(expectedResponse); @@ -458,6 +466,8 @@ public void updateStoragePoolTest() throws Exception { .setPsaRange("psaRange-534274785") .setEncryptionType(EncryptionType.forNumber(0)) .setGlobalAccessAllowed(true) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); Operation resultOperation = Operation.newBuilder() @@ -710,7 +720,11 @@ public void getVolumeTest() throws Exception { .setHasReplication(true) .setBackupConfig(BackupConfig.newBuilder().build()) .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); mockNetApp.addResponse(expectedResponse); @@ -780,7 +794,11 @@ public void getVolumeTest2() throws Exception { .setHasReplication(true) .setBackupConfig(BackupConfig.newBuilder().build()) .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); mockNetApp.addResponse(expectedResponse); @@ -850,7 +868,11 @@ public void createVolumeTest() throws Exception { .setHasReplication(true) .setBackupConfig(BackupConfig.newBuilder().build()) .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); Operation resultOperation = Operation.newBuilder() @@ -934,7 +956,11 @@ public void createVolumeTest2() throws Exception { .setHasReplication(true) .setBackupConfig(BackupConfig.newBuilder().build()) .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); Operation resultOperation = Operation.newBuilder() @@ -1018,7 +1044,11 @@ public void updateVolumeTest() throws Exception { .setHasReplication(true) .setBackupConfig(BackupConfig.newBuilder().build()) .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); Operation resultOperation = Operation.newBuilder() @@ -1183,7 +1213,11 @@ public void revertVolumeTest() throws Exception { .setHasReplication(true) .setBackupConfig(BackupConfig.newBuilder().build()) .addAllRestrictedActions(new ArrayList()) + .setLargeCapacity(true) + .setMultipleEndpoints(true) .setTieringPolicy(TieringPolicy.newBuilder().build()) + .setReplicaZone("replicaZone-1063236476") + .setZone("zone3744684") .build(); Operation resultOperation = Operation.newBuilder() @@ -1771,6 +1805,7 @@ public void getActiveDirectoryTest() throws Exception { .setUsername("username-265713450") .setPassword("password1216985755") .addAllBackupOperators(new ArrayList()) + .addAllAdministrators(new ArrayList()) .addAllSecurityOperators(new ArrayList()) .setKdcHostname("kdcHostname-256273283") .setKdcIp("kdcIp101893361") @@ -1831,6 +1866,7 @@ public void getActiveDirectoryTest2() throws Exception { .setUsername("username-265713450") .setPassword("password1216985755") .addAllBackupOperators(new ArrayList()) + .addAllAdministrators(new ArrayList()) .addAllSecurityOperators(new ArrayList()) .setKdcHostname("kdcHostname-256273283") .setKdcIp("kdcIp101893361") @@ -1889,6 +1925,7 @@ public void createActiveDirectoryTest() throws Exception { .setUsername("username-265713450") .setPassword("password1216985755") .addAllBackupOperators(new ArrayList()) + .addAllAdministrators(new ArrayList()) .addAllSecurityOperators(new ArrayList()) .setKdcHostname("kdcHostname-256273283") .setKdcIp("kdcIp101893361") @@ -1963,6 +2000,7 @@ public void createActiveDirectoryTest2() throws Exception { .setUsername("username-265713450") .setPassword("password1216985755") .addAllBackupOperators(new ArrayList()) + .addAllAdministrators(new ArrayList()) .addAllSecurityOperators(new ArrayList()) .setKdcHostname("kdcHostname-256273283") .setKdcIp("kdcIp101893361") @@ -2037,6 +2075,7 @@ public void updateActiveDirectoryTest() throws Exception { .setUsername("username-265713450") .setPassword("password1216985755") .addAllBackupOperators(new ArrayList()) + .addAllAdministrators(new ArrayList()) .addAllSecurityOperators(new ArrayList()) .setKdcHostname("kdcHostname-256273283") .setKdcIp("kdcIp101893361") diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectory.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectory.java index 825c11e28261..66b33b96ab71 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectory.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectory.java @@ -49,6 +49,7 @@ private ActiveDirectory() { username_ = ""; password_ = ""; backupOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); + administrators_ = com.google.protobuf.LazyStringArrayList.emptyList(); securityOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); kdcHostname_ = ""; kdcIp_ = ""; @@ -927,6 +928,70 @@ public com.google.protobuf.ByteString getBackupOperatorsBytes(int index) { return backupOperators_.getByteString(index); } + public static final int ADMINISTRATORS_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList administrators_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
        +   * Optional. Users to be added to the Built-in Admininstrators group.
        +   * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the administrators. + */ + public com.google.protobuf.ProtocolStringList getAdministratorsList() { + return administrators_; + } + /** + * + * + *
        +   * Optional. Users to be added to the Built-in Admininstrators group.
        +   * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of administrators. + */ + public int getAdministratorsCount() { + return administrators_.size(); + } + /** + * + * + *
        +   * Optional. Users to be added to the Built-in Admininstrators group.
        +   * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The administrators at the given index. + */ + public java.lang.String getAdministrators(int index) { + return administrators_.get(index); + } + /** + * + * + *
        +   * Optional. Users to be added to the Built-in Admininstrators group.
        +   * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the administrators at the given index. + */ + public com.google.protobuf.ByteString getAdministratorsBytes(int index) { + return administrators_.getByteString(index); + } + public static final int SECURITY_OPERATORS_FIELD_NUMBER = 13; @SuppressWarnings("serial") @@ -1431,6 +1496,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateDetails_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, stateDetails_); } + for (int i = 0; i < administrators_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, administrators_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -1520,6 +1588,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateDetails_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, stateDetails_); } + { + int dataSize = 0; + for (int i = 0; i < administrators_.size(); i++) { + dataSize += computeStringSizeNoTag(administrators_.getRaw(i)); + } + size += dataSize; + size += 2 * getAdministratorsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1551,6 +1627,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUsername().equals(other.getUsername())) return false; if (!getPassword().equals(other.getPassword())) return false; if (!getBackupOperatorsList().equals(other.getBackupOperatorsList())) return false; + if (!getAdministratorsList().equals(other.getAdministratorsList())) return false; if (!getSecurityOperatorsList().equals(other.getSecurityOperatorsList())) return false; if (!getKdcHostname().equals(other.getKdcHostname())) return false; if (!getKdcIp().equals(other.getKdcIp())) return false; @@ -1599,6 +1676,10 @@ public int hashCode() { hash = (37 * hash) + BACKUP_OPERATORS_FIELD_NUMBER; hash = (53 * hash) + getBackupOperatorsList().hashCode(); } + if (getAdministratorsCount() > 0) { + hash = (37 * hash) + ADMINISTRATORS_FIELD_NUMBER; + hash = (53 * hash) + getAdministratorsList().hashCode(); + } if (getSecurityOperatorsCount() > 0) { hash = (37 * hash) + SECURITY_OPERATORS_FIELD_NUMBER; hash = (53 * hash) + getSecurityOperatorsList().hashCode(); @@ -1807,6 +1888,7 @@ public Builder clear() { username_ = ""; password_ = ""; backupOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); + administrators_ = com.google.protobuf.LazyStringArrayList.emptyList(); securityOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); kdcHostname_ = ""; kdcIp_ = ""; @@ -1892,32 +1974,36 @@ private void buildPartial0(com.google.cloud.netapp.v1.ActiveDirectory result) { result.backupOperators_ = backupOperators_; } if (((from_bitField0_ & 0x00001000) != 0)) { + administrators_.makeImmutable(); + result.administrators_ = administrators_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { securityOperators_.makeImmutable(); result.securityOperators_ = securityOperators_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.kdcHostname_ = kdcHostname_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.kdcIp_ = kdcIp_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.nfsUsersWithLdap_ = nfsUsersWithLdap_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.description_ = description_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.ldapSigning_ = ldapSigning_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.encryptDcConnections_ = encryptDcConnections_; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.stateDetails_ = stateDetails_; } result.bitField0_ |= to_bitField0_; @@ -2027,10 +2113,20 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.ActiveDirectory other) { } onChanged(); } + if (!other.administrators_.isEmpty()) { + if (administrators_.isEmpty()) { + administrators_ = other.administrators_; + bitField0_ |= 0x00001000; + } else { + ensureAdministratorsIsMutable(); + administrators_.addAll(other.administrators_); + } + onChanged(); + } if (!other.securityOperators_.isEmpty()) { if (securityOperators_.isEmpty()) { securityOperators_ = other.securityOperators_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } else { ensureSecurityOperatorsIsMutable(); securityOperators_.addAll(other.securityOperators_); @@ -2039,12 +2135,12 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.ActiveDirectory other) { } if (!other.getKdcHostname().isEmpty()) { kdcHostname_ = other.kdcHostname_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (!other.getKdcIp().isEmpty()) { kdcIp_ = other.kdcIp_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (other.getNfsUsersWithLdap() != false) { @@ -2052,7 +2148,7 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.ActiveDirectory other) { } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } if (other.getLdapSigning() != false) { @@ -2062,10 +2158,10 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.ActiveDirectory other) { setEncryptDcConnections(other.getEncryptDcConnections()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; if (!other.getStateDetails().isEmpty()) { stateDetails_ = other.stateDetails_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2177,37 +2273,37 @@ public Builder mergeFrom( case 114: { kdcHostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 114 case 122: { kdcIp_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 122 case 128: { nfsUsersWithLdap_ = input.readBool(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 128 case 138: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 138 case 144: { ldapSigning_ = input.readBool(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 144 case 152: { encryptDcConnections_ = input.readBool(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 152 case 162: @@ -2219,15 +2315,22 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 162 case 170: { stateDetails_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 170 + case 178: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAdministratorsIsMutable(); + administrators_.add(s); + break; + } // case 178 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3661,6 +3764,180 @@ public Builder addBackupOperatorsBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList administrators_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAdministratorsIsMutable() { + if (!administrators_.isModifiable()) { + administrators_ = new com.google.protobuf.LazyStringArrayList(administrators_); + } + bitField0_ |= 0x00001000; + } + /** + * + * + *
        +     * Optional. Users to be added to the Built-in Admininstrators group.
        +     * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the administrators. + */ + public com.google.protobuf.ProtocolStringList getAdministratorsList() { + administrators_.makeImmutable(); + return administrators_; + } + /** + * + * + *
        +     * Optional. Users to be added to the Built-in Admininstrators group.
        +     * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of administrators. + */ + public int getAdministratorsCount() { + return administrators_.size(); + } + /** + * + * + *
        +     * Optional. Users to be added to the Built-in Admininstrators group.
        +     * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The administrators at the given index. + */ + public java.lang.String getAdministrators(int index) { + return administrators_.get(index); + } + /** + * + * + *
        +     * Optional. Users to be added to the Built-in Admininstrators group.
        +     * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the administrators at the given index. + */ + public com.google.protobuf.ByteString getAdministratorsBytes(int index) { + return administrators_.getByteString(index); + } + /** + * + * + *
        +     * Optional. Users to be added to the Built-in Admininstrators group.
        +     * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The administrators to set. + * @return This builder for chaining. + */ + public Builder setAdministrators(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdministratorsIsMutable(); + administrators_.set(index, value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Users to be added to the Built-in Admininstrators group.
        +     * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The administrators to add. + * @return This builder for chaining. + */ + public Builder addAdministrators(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdministratorsIsMutable(); + administrators_.add(value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Users to be added to the Built-in Admininstrators group.
        +     * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The administrators to add. + * @return This builder for chaining. + */ + public Builder addAllAdministrators(java.lang.Iterable values) { + ensureAdministratorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, administrators_); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Users to be added to the Built-in Admininstrators group.
        +     * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAdministrators() { + administrators_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + ; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Users to be added to the Built-in Admininstrators group.
        +     * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the administrators to add. + * @return This builder for chaining. + */ + public Builder addAdministratorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdministratorsIsMutable(); + administrators_.add(value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + private com.google.protobuf.LazyStringArrayList securityOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -3668,7 +3945,7 @@ private void ensureSecurityOperatorsIsMutable() { if (!securityOperators_.isModifiable()) { securityOperators_ = new com.google.protobuf.LazyStringArrayList(securityOperators_); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } /** * @@ -3753,7 +4030,7 @@ public Builder setSecurityOperators(int index, java.lang.String value) { } ensureSecurityOperatorsIsMutable(); securityOperators_.set(index, value); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3776,7 +4053,7 @@ public Builder addSecurityOperators(java.lang.String value) { } ensureSecurityOperatorsIsMutable(); securityOperators_.add(value); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3796,7 +4073,7 @@ public Builder addSecurityOperators(java.lang.String value) { public Builder addAllSecurityOperators(java.lang.Iterable values) { ensureSecurityOperatorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, securityOperators_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3814,7 +4091,7 @@ public Builder addAllSecurityOperators(java.lang.Iterable valu */ public Builder clearSecurityOperators() { securityOperators_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); ; onChanged(); return this; @@ -3839,7 +4116,7 @@ public Builder addSecurityOperatorsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureSecurityOperatorsIsMutable(); securityOperators_.add(value); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3909,7 +4186,7 @@ public Builder setKdcHostname(java.lang.String value) { throw new NullPointerException(); } kdcHostname_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -3927,7 +4204,7 @@ public Builder setKdcHostname(java.lang.String value) { */ public Builder clearKdcHostname() { kdcHostname_ = getDefaultInstance().getKdcHostname(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -3950,7 +4227,7 @@ public Builder setKdcHostnameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kdcHostname_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4017,7 +4294,7 @@ public Builder setKdcIp(java.lang.String value) { throw new NullPointerException(); } kdcIp_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4034,7 +4311,7 @@ public Builder setKdcIp(java.lang.String value) { */ public Builder clearKdcIp() { kdcIp_ = getDefaultInstance().getKdcIp(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4056,7 +4333,7 @@ public Builder setKdcIpBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kdcIp_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4094,7 +4371,7 @@ public boolean getNfsUsersWithLdap() { public Builder setNfsUsersWithLdap(boolean value) { nfsUsersWithLdap_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4111,7 +4388,7 @@ public Builder setNfsUsersWithLdap(boolean value) { * @return This builder for chaining. */ public Builder clearNfsUsersWithLdap() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); nfsUsersWithLdap_ = false; onChanged(); return this; @@ -4179,7 +4456,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -4196,7 +4473,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -4218,7 +4495,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -4254,7 +4531,7 @@ public boolean getLdapSigning() { public Builder setLdapSigning(boolean value) { ldapSigning_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -4270,7 +4547,7 @@ public Builder setLdapSigning(boolean value) { * @return This builder for chaining. */ public Builder clearLdapSigning() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); ldapSigning_ = false; onChanged(); return this; @@ -4309,7 +4586,7 @@ public boolean getEncryptDcConnections() { public Builder setEncryptDcConnections(boolean value) { encryptDcConnections_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -4326,7 +4603,7 @@ public Builder setEncryptDcConnections(boolean value) { * @return This builder for chaining. */ public Builder clearEncryptDcConnections() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); encryptDcConnections_ = false; onChanged(); return this; @@ -4349,7 +4626,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return labels_; } @@ -4434,7 +4711,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -4457,7 +4734,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; return internalGetMutableLabels().getMutableMap(); } /** @@ -4477,7 +4754,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; return this; } /** @@ -4491,7 +4768,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; return this; } @@ -4557,7 +4834,7 @@ public Builder setStateDetails(java.lang.String value) { throw new NullPointerException(); } stateDetails_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -4574,7 +4851,7 @@ public Builder setStateDetails(java.lang.String value) { */ public Builder clearStateDetails() { stateDetails_ = getDefaultInstance().getStateDetails(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -4596,7 +4873,7 @@ public Builder setStateDetailsBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); stateDetails_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryOrBuilder.java index e5f325f77a5e..763b03ebc0c4 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryOrBuilder.java @@ -369,6 +369,57 @@ public interface ActiveDirectoryOrBuilder */ com.google.protobuf.ByteString getBackupOperatorsBytes(int index); + /** + * + * + *
        +   * Optional. Users to be added to the Built-in Admininstrators group.
        +   * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the administrators. + */ + java.util.List getAdministratorsList(); + /** + * + * + *
        +   * Optional. Users to be added to the Built-in Admininstrators group.
        +   * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of administrators. + */ + int getAdministratorsCount(); + /** + * + * + *
        +   * Optional. Users to be added to the Built-in Admininstrators group.
        +   * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The administrators at the given index. + */ + java.lang.String getAdministrators(int index); + /** + * + * + *
        +   * Optional. Users to be added to the Built-in Admininstrators group.
        +   * 
        + * + * repeated string administrators = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the administrators at the given index. + */ + com.google.protobuf.ByteString getAdministratorsBytes(int index); + /** * * diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryProto.java index 893e4c3432fb..fc2d744be2d9 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryProto.java @@ -95,7 +95,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\0132\'.google.cloud.netapp.v1.ActiveDirecto" + "ryB\003\340A\002\"[\n\034DeleteActiveDirectoryRequest\022" + ";\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%netapp.googleapis" - + ".com/ActiveDirectory\"\275\007\n\017ActiveDirectory" + + ".com/ActiveDirectory\"\332\007\n\017ActiveDirectory" + "\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013create_time\030\002 \001(\013" + "2\032.google.protobuf.TimestampB\003\340A\003\022A\n\005sta" + "te\030\003 \001(\0162-.google.cloud.netapp.v1.Active" @@ -104,27 +104,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_bios_prefix\030\007 \001(\tB\003\340A\002\022\033\n\023organizationa" + "l_unit\030\010 \001(\t\022\026\n\016aes_encryption\030\t \001(\010\022\025\n\010" + "username\030\n \001(\tB\003\340A\002\022\025\n\010password\030\013 \001(\tB\003\340" - + "A\002\022\035\n\020backup_operators\030\014 \003(\tB\003\340A\001\022\037\n\022sec" - + "urity_operators\030\r \003(\tB\003\340A\001\022\024\n\014kdc_hostna" - + "me\030\016 \001(\t\022\016\n\006kdc_ip\030\017 \001(\t\022\033\n\023nfs_users_wi" - + "th_ldap\030\020 \001(\010\022\023\n\013description\030\021 \001(\t\022\024\n\014ld" - + "ap_signing\030\022 \001(\010\022\036\n\026encrypt_dc_connectio" - + "ns\030\023 \001(\010\022C\n\006labels\030\024 \003(\01323.google.cloud." - + "netapp.v1.ActiveDirectory.LabelsEntry\022\032\n" - + "\rstate_details\030\025 \001(\tB\003\340A\003\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"j\n\005Stat" - + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t" - + "\n\005READY\020\002\022\014\n\010UPDATING\020\003\022\n\n\006IN_USE\020\004\022\014\n\010D" - + "ELETING\020\005\022\t\n\005ERROR\020\006:\235\001\352A\231\001\n%netapp.goog" - + "leapis.com/ActiveDirectory\022Lprojects/{pr" - + "oject}/locations/{location}/activeDirect" - + "ories/{active_directory}*\021activeDirector" - + "ies2\017activeDirectoryB\266\001\n\032com.google.clou" - + "d.netapp.v1B\024ActiveDirectoryProtoP\001Z2clo" - + "ud.google.com/go/netapp/apiv1/netapppb;n" - + "etapppb\252\002\026Google.Cloud.NetApp.V1\312\002\026Googl" - + "e\\Cloud\\NetApp\\V1\352\002\031Google::Cloud::NetAp" - + "p::V1b\006proto3" + + "A\002\022\035\n\020backup_operators\030\014 \003(\tB\003\340A\001\022\033\n\016adm" + + "inistrators\030\026 \003(\tB\003\340A\001\022\037\n\022security_opera" + + "tors\030\r \003(\tB\003\340A\001\022\024\n\014kdc_hostname\030\016 \001(\t\022\016\n" + + "\006kdc_ip\030\017 \001(\t\022\033\n\023nfs_users_with_ldap\030\020 \001" + + "(\010\022\023\n\013description\030\021 \001(\t\022\024\n\014ldap_signing\030" + + "\022 \001(\010\022\036\n\026encrypt_dc_connections\030\023 \001(\010\022C\n" + + "\006labels\030\024 \003(\01323.google.cloud.netapp.v1.A" + + "ctiveDirectory.LabelsEntry\022\032\n\rstate_deta" + + "ils\030\025 \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"j\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\014" + + "\n\010UPDATING\020\003\022\n\n\006IN_USE\020\004\022\014\n\010DELETING\020\005\022\t" + + "\n\005ERROR\020\006:\235\001\352A\231\001\n%netapp.googleapis.com/" + + "ActiveDirectory\022Lprojects/{project}/loca" + + "tions/{location}/activeDirectories/{acti" + + "ve_directory}*\021activeDirectories2\017active" + + "DirectoryB\266\001\n\032com.google.cloud.netapp.v1" + + "B\024ActiveDirectoryProtoP\001Z2cloud.google.c" + + "om/go/netapp/apiv1/netapppb;netapppb\252\002\026G" + + "oogle.Cloud.NetApp.V1\312\002\026Google\\Cloud\\Net" + + "App\\V1\352\002\031Google::Cloud::NetApp::V1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -201,6 +202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Username", "Password", "BackupOperators", + "Administrators", "SecurityOperators", "KdcHostname", "KdcIp", diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequest.java index 1d5bb6576bef..50b8e1ad7185 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequest.java @@ -184,7 +184,10 @@ public com.google.cloud.netapp.v1.ActiveDirectoryOrBuilder getActiveDirectoryOrB * * *
        -   * Required. ID of the active directory to create.
        +   * Required. ID of the active directory to create. Must be unique within the
        +   * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +   * with the first character a letter or underscore, the last a letter or
        +   * underscore or a number, and a 63 character maximum.
            * 
        * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -207,7 +210,10 @@ public java.lang.String getActiveDirectoryId() { * * *
        -   * Required. ID of the active directory to create.
        +   * Required. ID of the active directory to create. Must be unique within the
        +   * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +   * with the first character a letter or underscore, the last a letter or
        +   * underscore or a number, and a 63 character maximum.
            * 
        * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -964,7 +970,10 @@ public com.google.cloud.netapp.v1.ActiveDirectoryOrBuilder getActiveDirectoryOrB * * *
        -     * Required. ID of the active directory to create.
        +     * Required. ID of the active directory to create. Must be unique within the
        +     * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +     * with the first character a letter or underscore, the last a letter or
        +     * underscore or a number, and a 63 character maximum.
              * 
        * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -986,7 +995,10 @@ public java.lang.String getActiveDirectoryId() { * * *
        -     * Required. ID of the active directory to create.
        +     * Required. ID of the active directory to create. Must be unique within the
        +     * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +     * with the first character a letter or underscore, the last a letter or
        +     * underscore or a number, and a 63 character maximum.
              * 
        * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1008,7 +1020,10 @@ public com.google.protobuf.ByteString getActiveDirectoryIdBytes() { * * *
        -     * Required. ID of the active directory to create.
        +     * Required. ID of the active directory to create. Must be unique within the
        +     * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +     * with the first character a letter or underscore, the last a letter or
        +     * underscore or a number, and a 63 character maximum.
              * 
        * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1029,7 +1044,10 @@ public Builder setActiveDirectoryId(java.lang.String value) { * * *
        -     * Required. ID of the active directory to create.
        +     * Required. ID of the active directory to create. Must be unique within the
        +     * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +     * with the first character a letter or underscore, the last a letter or
        +     * underscore or a number, and a 63 character maximum.
              * 
        * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1046,7 +1064,10 @@ public Builder clearActiveDirectoryId() { * * *
        -     * Required. ID of the active directory to create.
        +     * Required. ID of the active directory to create. Must be unique within the
        +     * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +     * with the first character a letter or underscore, the last a letter or
        +     * underscore or a number, and a 63 character maximum.
              * 
        * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequestOrBuilder.java index ca79cd9ca8e5..2bf017cbfd62 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequestOrBuilder.java @@ -98,7 +98,10 @@ public interface CreateActiveDirectoryRequestOrBuilder * * *
        -   * Required. ID of the active directory to create.
        +   * Required. ID of the active directory to create. Must be unique within the
        +   * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +   * with the first character a letter or underscore, the last a letter or
        +   * underscore or a number, and a 63 character maximum.
            * 
        * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -110,7 +113,10 @@ public interface CreateActiveDirectoryRequestOrBuilder * * *
        -   * Required. ID of the active directory to create.
        +   * Required. ID of the active directory to create. Must be unique within the
        +   * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +   * with the first character a letter or underscore, the last a letter or
        +   * underscore or a number, and a 63 character maximum.
            * 
        * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequest.java index 92ca28c99f5a..bcf0ed4980f0 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequest.java @@ -188,8 +188,9 @@ public com.google.cloud.netapp.v1.BackupPolicyOrBuilder getBackupPolicyOrBuilder *
            * Required. The ID to use for the backup policy.
            * The ID must be unique within the specified location.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +   * Must contain only letters, numbers, underscore and hyphen, with the first
        +   * character a letter or underscore, the last a letter or underscore or a
        +   * number, and a 63 character maximum.
            * 
        * * string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -214,8 +215,9 @@ public java.lang.String getBackupPolicyId() { *
            * Required. The ID to use for the backup policy.
            * The ID must be unique within the specified location.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +   * Must contain only letters, numbers, underscore and hyphen, with the first
        +   * character a letter or underscore, the last a letter or underscore or a
        +   * number, and a 63 character maximum.
            * 
        * * string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -977,8 +979,9 @@ public com.google.cloud.netapp.v1.BackupPolicyOrBuilder getBackupPolicyOrBuilder *
              * Required. The ID to use for the backup policy.
              * The ID must be unique within the specified location.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1002,8 +1005,9 @@ public java.lang.String getBackupPolicyId() { *
              * Required. The ID to use for the backup policy.
              * The ID must be unique within the specified location.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1027,8 +1031,9 @@ public com.google.protobuf.ByteString getBackupPolicyIdBytes() { *
              * Required. The ID to use for the backup policy.
              * The ID must be unique within the specified location.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1051,8 +1056,9 @@ public Builder setBackupPolicyId(java.lang.String value) { *
              * Required. The ID to use for the backup policy.
              * The ID must be unique within the specified location.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1071,8 +1077,9 @@ public Builder clearBackupPolicyId() { *
              * Required. The ID to use for the backup policy.
              * The ID must be unique within the specified location.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequestOrBuilder.java index d3538ed24a9c..d947c5174b74 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequestOrBuilder.java @@ -102,8 +102,9 @@ public interface CreateBackupPolicyRequestOrBuilder *
            * Required. The ID to use for the backup policy.
            * The ID must be unique within the specified location.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +   * Must contain only letters, numbers, underscore and hyphen, with the first
        +   * character a letter or underscore, the last a letter or underscore or a
        +   * number, and a 63 character maximum.
            * 
        * * string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -117,8 +118,9 @@ public interface CreateBackupPolicyRequestOrBuilder *
            * Required. The ID to use for the backup policy.
            * The ID must be unique within the specified location.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +   * Must contain only letters, numbers, underscore and hyphen, with the first
        +   * character a letter or underscore, the last a letter or underscore or a
        +   * number, and a 63 character maximum.
            * 
        * * string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequest.java index b53dc92ef257..4195cbca9344 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequest.java @@ -132,10 +132,9 @@ public com.google.protobuf.ByteString getParentBytes() { *
            * Required. The ID to use for the backup.
            * The ID must be unique within the specified backupVault.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -   * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -   * error.
        +   * Must contain only letters, numbers, underscore and hyphen, with the first
        +   * character a letter or underscore, the last a letter or underscore or a
        +   * number, and a 63 character maximum.
            * 
        * * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -160,10 +159,9 @@ public java.lang.String getBackupId() { *
            * Required. The ID to use for the backup.
            * The ID must be unique within the specified backupVault.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -   * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -   * error.
        +   * Must contain only letters, numbers, underscore and hyphen, with the first
        +   * character a letter or underscore, the last a letter or underscore or a
        +   * number, and a 63 character maximum.
            * 
        * * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -768,10 +766,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
              * Required. The ID to use for the backup.
              * The ID must be unique within the specified backupVault.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -     * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -     * error.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -795,10 +792,9 @@ public java.lang.String getBackupId() { *
              * Required. The ID to use for the backup.
              * The ID must be unique within the specified backupVault.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -     * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -     * error.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -822,10 +818,9 @@ public com.google.protobuf.ByteString getBackupIdBytes() { *
              * Required. The ID to use for the backup.
              * The ID must be unique within the specified backupVault.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -     * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -     * error.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -848,10 +843,9 @@ public Builder setBackupId(java.lang.String value) { *
              * Required. The ID to use for the backup.
              * The ID must be unique within the specified backupVault.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -     * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -     * error.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -870,10 +864,9 @@ public Builder clearBackupId() { *
              * Required. The ID to use for the backup.
              * The ID must be unique within the specified backupVault.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -     * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -     * error.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequestOrBuilder.java index bb63afafc07d..da7516079d6a 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequestOrBuilder.java @@ -61,10 +61,9 @@ public interface CreateBackupRequestOrBuilder *
            * Required. The ID to use for the backup.
            * The ID must be unique within the specified backupVault.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -   * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -   * error.
        +   * Must contain only letters, numbers, underscore and hyphen, with the first
        +   * character a letter or underscore, the last a letter or underscore or a
        +   * number, and a 63 character maximum.
            * 
        * * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -78,10 +77,9 @@ public interface CreateBackupRequestOrBuilder *
            * Required. The ID to use for the backup.
            * The ID must be unique within the specified backupVault.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -   * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -   * error.
        +   * Must contain only letters, numbers, underscore and hyphen, with the first
        +   * character a letter or underscore, the last a letter or underscore or a
        +   * number, and a 63 character maximum.
            * 
        * * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequest.java index d0dc9df2e4d9..c76d9f1c81fa 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequest.java @@ -132,11 +132,9 @@ public com.google.protobuf.ByteString getParentBytes() { *
            * Required. The ID to use for the backupVault.
            * The ID must be unique within the specified location.
        -   * The max supported length is 63 characters.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -   * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -   * error.
        +   * Must contain only letters, numbers, underscore and hyphen, with the first
        +   * character a letter or underscore, the last a letter or underscore or a
        +   * number, and a 63 character maximum.
            * 
        * * string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -161,11 +159,9 @@ public java.lang.String getBackupVaultId() { *
            * Required. The ID to use for the backupVault.
            * The ID must be unique within the specified location.
        -   * The max supported length is 63 characters.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -   * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -   * error.
        +   * Must contain only letters, numbers, underscore and hyphen, with the first
        +   * character a letter or underscore, the last a letter or underscore or a
        +   * number, and a 63 character maximum.
            * 
        * * string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -779,11 +775,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
              * Required. The ID to use for the backupVault.
              * The ID must be unique within the specified location.
        -     * The max supported length is 63 characters.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -     * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -     * error.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -807,11 +801,9 @@ public java.lang.String getBackupVaultId() { *
              * Required. The ID to use for the backupVault.
              * The ID must be unique within the specified location.
        -     * The max supported length is 63 characters.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -     * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -     * error.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -835,11 +827,9 @@ public com.google.protobuf.ByteString getBackupVaultIdBytes() { *
              * Required. The ID to use for the backupVault.
              * The ID must be unique within the specified location.
        -     * The max supported length is 63 characters.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -     * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -     * error.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -862,11 +852,9 @@ public Builder setBackupVaultId(java.lang.String value) { *
              * Required. The ID to use for the backupVault.
              * The ID must be unique within the specified location.
        -     * The max supported length is 63 characters.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -     * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -     * error.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -885,11 +873,9 @@ public Builder clearBackupVaultId() { *
              * Required. The ID to use for the backupVault.
              * The ID must be unique within the specified location.
        -     * The max supported length is 63 characters.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -     * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -     * error.
        +     * Must contain only letters, numbers, underscore and hyphen, with the first
        +     * character a letter or underscore, the last a letter or underscore or a
        +     * number, and a 63 character maximum.
              * 
        * * string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequestOrBuilder.java index 14273bc34357..0d72968a291f 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequestOrBuilder.java @@ -61,11 +61,9 @@ public interface CreateBackupVaultRequestOrBuilder *
            * Required. The ID to use for the backupVault.
            * The ID must be unique within the specified location.
        -   * The max supported length is 63 characters.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -   * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -   * error.
        +   * Must contain only letters, numbers, underscore and hyphen, with the first
        +   * character a letter or underscore, the last a letter or underscore or a
        +   * number, and a 63 character maximum.
            * 
        * * string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -79,11 +77,9 @@ public interface CreateBackupVaultRequestOrBuilder *
            * Required. The ID to use for the backupVault.
            * The ID must be unique within the specified location.
        -   * The max supported length is 63 characters.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        -   * Values that do not match this pattern will trigger an INVALID_ARGUMENT
        -   * error.
        +   * Must contain only letters, numbers, underscore and hyphen, with the first
        +   * character a letter or underscore, the last a letter or underscore or a
        +   * number, and a 63 character maximum.
            * 
        * * string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequest.java index 68858c85211d..50a095647a7d 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequest.java @@ -128,9 +128,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
        -   * Required. Id of the requesting KmsConfig
        -   * If auto-generating Id server-side, remove this field and
        -   * id from the method_signature of Create RPC
        +   * Required. Id of the requesting KmsConfig. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -153,9 +154,10 @@ public java.lang.String getKmsConfigId() { * * *
        -   * Required. Id of the requesting KmsConfig
        -   * If auto-generating Id server-side, remove this field and
        -   * id from the method_signature of Create RPC
        +   * Required. Id of the requesting KmsConfig. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -761,9 +763,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
        -     * Required. Id of the requesting KmsConfig
        -     * If auto-generating Id server-side, remove this field and
        -     * id from the method_signature of Create RPC
        +     * Required. Id of the requesting KmsConfig. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -785,9 +788,10 @@ public java.lang.String getKmsConfigId() { * * *
        -     * Required. Id of the requesting KmsConfig
        -     * If auto-generating Id server-side, remove this field and
        -     * id from the method_signature of Create RPC
        +     * Required. Id of the requesting KmsConfig. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -809,9 +813,10 @@ public com.google.protobuf.ByteString getKmsConfigIdBytes() { * * *
        -     * Required. Id of the requesting KmsConfig
        -     * If auto-generating Id server-side, remove this field and
        -     * id from the method_signature of Create RPC
        +     * Required. Id of the requesting KmsConfig. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -832,9 +837,10 @@ public Builder setKmsConfigId(java.lang.String value) { * * *
        -     * Required. Id of the requesting KmsConfig
        -     * If auto-generating Id server-side, remove this field and
        -     * id from the method_signature of Create RPC
        +     * Required. Id of the requesting KmsConfig. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -851,9 +857,10 @@ public Builder clearKmsConfigId() { * * *
        -     * Required. Id of the requesting KmsConfig
        -     * If auto-generating Id server-side, remove this field and
        -     * id from the method_signature of Create RPC
        +     * Required. Id of the requesting KmsConfig. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequestOrBuilder.java index cfefdbfded8a..03dc31fdbafb 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequestOrBuilder.java @@ -57,9 +57,10 @@ public interface CreateKmsConfigRequestOrBuilder * * *
        -   * Required. Id of the requesting KmsConfig
        -   * If auto-generating Id server-side, remove this field and
        -   * id from the method_signature of Create RPC
        +   * Required. Id of the requesting KmsConfig. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -71,9 +72,10 @@ public interface CreateKmsConfigRequestOrBuilder * * *
        -   * Required. Id of the requesting KmsConfig
        -   * If auto-generating Id server-side, remove this field and
        -   * id from the method_signature of Create RPC
        +   * Required. Id of the requesting KmsConfig. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequest.java index 48e1094e9e02..2639c3420761 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequest.java @@ -186,9 +186,10 @@ public com.google.cloud.netapp.v1.ReplicationOrBuilder getReplicationOrBuilder() * * *
        -   * Required. ID of the replication to create.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +   * Required. ID of the replication to create. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -211,9 +212,10 @@ public java.lang.String getReplicationId() { * * *
        -   * Required. ID of the replication to create.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +   * Required. ID of the replication to create. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -972,9 +974,10 @@ public com.google.cloud.netapp.v1.ReplicationOrBuilder getReplicationOrBuilder() * * *
        -     * Required. ID of the replication to create.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Required. ID of the replication to create. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -996,9 +999,10 @@ public java.lang.String getReplicationId() { * * *
        -     * Required. ID of the replication to create.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Required. ID of the replication to create. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1020,9 +1024,10 @@ public com.google.protobuf.ByteString getReplicationIdBytes() { * * *
        -     * Required. ID of the replication to create.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Required. ID of the replication to create. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1043,9 +1048,10 @@ public Builder setReplicationId(java.lang.String value) { * * *
        -     * Required. ID of the replication to create.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Required. ID of the replication to create. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1062,9 +1068,10 @@ public Builder clearReplicationId() { * * *
        -     * Required. ID of the replication to create.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Required. ID of the replication to create. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequestOrBuilder.java index 709b07ccc041..6c5bedbb8fa2 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequestOrBuilder.java @@ -100,9 +100,10 @@ public interface CreateReplicationRequestOrBuilder * * *
        -   * Required. ID of the replication to create.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +   * Required. ID of the replication to create. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -114,9 +115,10 @@ public interface CreateReplicationRequestOrBuilder * * *
        -   * Required. ID of the replication to create.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +   * Required. ID of the replication to create. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequest.java index 4bc78dc7cf9e..561f088394af 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequest.java @@ -179,9 +179,10 @@ public com.google.cloud.netapp.v1.SnapshotOrBuilder getSnapshotOrBuilder() { * * *
        -   * Required. ID of the snapshot to create.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +   * Required. ID of the snapshot to create. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -204,9 +205,10 @@ public java.lang.String getSnapshotId() { * * *
        -   * Required. ID of the snapshot to create.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +   * Required. ID of the snapshot to create. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -964,9 +966,10 @@ public com.google.cloud.netapp.v1.SnapshotOrBuilder getSnapshotOrBuilder() { * * *
        -     * Required. ID of the snapshot to create.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Required. ID of the snapshot to create. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -988,9 +991,10 @@ public java.lang.String getSnapshotId() { * * *
        -     * Required. ID of the snapshot to create.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Required. ID of the snapshot to create. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1012,9 +1016,10 @@ public com.google.protobuf.ByteString getSnapshotIdBytes() { * * *
        -     * Required. ID of the snapshot to create.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Required. ID of the snapshot to create. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1035,9 +1040,10 @@ public Builder setSnapshotId(java.lang.String value) { * * *
        -     * Required. ID of the snapshot to create.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Required. ID of the snapshot to create. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1054,9 +1060,10 @@ public Builder clearSnapshotId() { * * *
        -     * Required. ID of the snapshot to create.
        -     * This value must start with a lowercase letter followed by up to 62
        -     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +     * Required. ID of the snapshot to create. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequestOrBuilder.java index a80cd6e083b6..bb8c7fae8002 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequestOrBuilder.java @@ -97,9 +97,10 @@ public interface CreateSnapshotRequestOrBuilder * * *
        -   * Required. ID of the snapshot to create.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +   * Required. ID of the snapshot to create. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -111,9 +112,10 @@ public interface CreateSnapshotRequestOrBuilder * * *
        -   * Required. ID of the snapshot to create.
        -   * This value must start with a lowercase letter followed by up to 62
        -   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
        +   * Required. ID of the snapshot to create. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequest.java index 9c446bcee65b..ba4360b5b8c6 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequest.java @@ -128,9 +128,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
        -   * Required. Id of the requesting storage pool
        -   * If auto-generating Id server-side, remove this field and
        -   * id from the method_signature of Create RPC
        +   * Required. Id of the requesting storage pool. Must be unique within the
        +   * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +   * with the first character a letter or underscore, the last a letter or
        +   * underscore or a number, and a 63 character maximum.
            * 
        * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -153,9 +154,10 @@ public java.lang.String getStoragePoolId() { * * *
        -   * Required. Id of the requesting storage pool
        -   * If auto-generating Id server-side, remove this field and
        -   * id from the method_signature of Create RPC
        +   * Required. Id of the requesting storage pool. Must be unique within the
        +   * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +   * with the first character a letter or underscore, the last a letter or
        +   * underscore or a number, and a 63 character maximum.
            * 
        * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -762,9 +764,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
        -     * Required. Id of the requesting storage pool
        -     * If auto-generating Id server-side, remove this field and
        -     * id from the method_signature of Create RPC
        +     * Required. Id of the requesting storage pool. Must be unique within the
        +     * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +     * with the first character a letter or underscore, the last a letter or
        +     * underscore or a number, and a 63 character maximum.
              * 
        * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -786,9 +789,10 @@ public java.lang.String getStoragePoolId() { * * *
        -     * Required. Id of the requesting storage pool
        -     * If auto-generating Id server-side, remove this field and
        -     * id from the method_signature of Create RPC
        +     * Required. Id of the requesting storage pool. Must be unique within the
        +     * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +     * with the first character a letter or underscore, the last a letter or
        +     * underscore or a number, and a 63 character maximum.
              * 
        * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -810,9 +814,10 @@ public com.google.protobuf.ByteString getStoragePoolIdBytes() { * * *
        -     * Required. Id of the requesting storage pool
        -     * If auto-generating Id server-side, remove this field and
        -     * id from the method_signature of Create RPC
        +     * Required. Id of the requesting storage pool. Must be unique within the
        +     * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +     * with the first character a letter or underscore, the last a letter or
        +     * underscore or a number, and a 63 character maximum.
              * 
        * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -833,9 +838,10 @@ public Builder setStoragePoolId(java.lang.String value) { * * *
        -     * Required. Id of the requesting storage pool
        -     * If auto-generating Id server-side, remove this field and
        -     * id from the method_signature of Create RPC
        +     * Required. Id of the requesting storage pool. Must be unique within the
        +     * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +     * with the first character a letter or underscore, the last a letter or
        +     * underscore or a number, and a 63 character maximum.
              * 
        * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -852,9 +858,10 @@ public Builder clearStoragePoolId() { * * *
        -     * Required. Id of the requesting storage pool
        -     * If auto-generating Id server-side, remove this field and
        -     * id from the method_signature of Create RPC
        +     * Required. Id of the requesting storage pool. Must be unique within the
        +     * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +     * with the first character a letter or underscore, the last a letter or
        +     * underscore or a number, and a 63 character maximum.
              * 
        * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequestOrBuilder.java index 46eb96073caa..eb1fd2fa7b81 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequestOrBuilder.java @@ -57,9 +57,10 @@ public interface CreateStoragePoolRequestOrBuilder * * *
        -   * Required. Id of the requesting storage pool
        -   * If auto-generating Id server-side, remove this field and
        -   * id from the method_signature of Create RPC
        +   * Required. Id of the requesting storage pool. Must be unique within the
        +   * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +   * with the first character a letter or underscore, the last a letter or
        +   * underscore or a number, and a 63 character maximum.
            * 
        * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -71,9 +72,10 @@ public interface CreateStoragePoolRequestOrBuilder * * *
        -   * Required. Id of the requesting storage pool
        -   * If auto-generating Id server-side, remove this field and
        -   * id from the method_signature of Create RPC
        +   * Required. Id of the requesting storage pool. Must be unique within the
        +   * parent resource. Must contain only letters, numbers, underscore and hyphen,
        +   * with the first character a letter or underscore, the last a letter or
        +   * underscore or a number, and a 63 character maximum.
            * 
        * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequest.java index a038f71f02d8..34cac1391e85 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequest.java @@ -128,9 +128,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
        -   * Required. Id of the requesting volume
        -   * If auto-generating Id server-side, remove this field and
        -   * Id from the method_signature of Create RPC
        +   * Required. Id of the requesting volume. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -153,9 +154,10 @@ public java.lang.String getVolumeId() { * * *
        -   * Required. Id of the requesting volume
        -   * If auto-generating Id server-side, remove this field and
        -   * Id from the method_signature of Create RPC
        +   * Required. Id of the requesting volume. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -753,9 +755,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
        -     * Required. Id of the requesting volume
        -     * If auto-generating Id server-side, remove this field and
        -     * Id from the method_signature of Create RPC
        +     * Required. Id of the requesting volume. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -777,9 +780,10 @@ public java.lang.String getVolumeId() { * * *
        -     * Required. Id of the requesting volume
        -     * If auto-generating Id server-side, remove this field and
        -     * Id from the method_signature of Create RPC
        +     * Required. Id of the requesting volume. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -801,9 +805,10 @@ public com.google.protobuf.ByteString getVolumeIdBytes() { * * *
        -     * Required. Id of the requesting volume
        -     * If auto-generating Id server-side, remove this field and
        -     * Id from the method_signature of Create RPC
        +     * Required. Id of the requesting volume. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -824,9 +829,10 @@ public Builder setVolumeId(java.lang.String value) { * * *
        -     * Required. Id of the requesting volume
        -     * If auto-generating Id server-side, remove this field and
        -     * Id from the method_signature of Create RPC
        +     * Required. Id of the requesting volume. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -843,9 +849,10 @@ public Builder clearVolumeId() { * * *
        -     * Required. Id of the requesting volume
        -     * If auto-generating Id server-side, remove this field and
        -     * Id from the method_signature of Create RPC
        +     * Required. Id of the requesting volume. Must be unique within the parent
        +     * resource. Must contain only letters, numbers, underscore and hyphen, with
        +     * the first character a letter or underscore, the last a letter or underscore
        +     * or a number, and a 63 character maximum.
              * 
        * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequestOrBuilder.java index e9809819f0ce..c5835196329f 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequestOrBuilder.java @@ -57,9 +57,10 @@ public interface CreateVolumeRequestOrBuilder * * *
        -   * Required. Id of the requesting volume
        -   * If auto-generating Id server-side, remove this field and
        -   * Id from the method_signature of Create RPC
        +   * Required. Id of the requesting volume. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -71,9 +72,10 @@ public interface CreateVolumeRequestOrBuilder * * *
        -   * Required. Id of the requesting volume
        -   * If auto-generating Id server-side, remove this field and
        -   * Id from the method_signature of Create RPC
        +   * Required. Id of the requesting volume. Must be unique within the parent
        +   * resource. Must contain only letters, numbers, underscore and hyphen, with
        +   * the first character a letter or underscore, the last a letter or underscore
        +   * or a number, and a 63 character maximum.
            * 
        * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Replication.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Replication.java index 062d4e48e613..46dd21299181 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Replication.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Replication.java @@ -709,7 +709,7 @@ public enum MirrorState implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Replication is in progress.
        +     * Incremental replication is in progress.
              * 
        * * TRANSFERRING = 4; @@ -763,7 +763,7 @@ public enum MirrorState implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Replication is in progress.
        +     * Incremental replication is in progress.
              * 
        * * TRANSFERRING = 4; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java index 5979058eb646..23a41311c6cc 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java @@ -51,6 +51,8 @@ private StoragePool() { kmsConfig_ = ""; psaRange_ = ""; encryptionType_ = 0; + replicaZone_ = ""; + zone_ = ""; } @java.lang.Override @@ -1082,7 +1084,7 @@ public com.google.cloud.netapp.v1.EncryptionType getEncryptionType() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=230 + * google/cloud/netapp/v1/storage_pool.proto;l=231 * @return Whether the globalAccessAllowed field is set. */ @java.lang.Override @@ -1101,7 +1103,7 @@ public boolean hasGlobalAccessAllowed() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=230 + * google/cloud/netapp/v1/storage_pool.proto;l=231 * @return The globalAccessAllowed. */ @java.lang.Override @@ -1110,6 +1112,108 @@ public boolean getGlobalAccessAllowed() { return globalAccessAllowed_; } + public static final int REPLICA_ZONE_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private volatile java.lang.Object replicaZone_ = ""; + /** + * + * + *
        +   * Optional. Specifies the replica zone for regional storagePool.
        +   * 
        + * + * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The replicaZone. + */ + @java.lang.Override + public java.lang.String getReplicaZone() { + java.lang.Object ref = replicaZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + replicaZone_ = s; + return s; + } + } + /** + * + * + *
        +   * Optional. Specifies the replica zone for regional storagePool.
        +   * 
        + * + * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for replicaZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReplicaZoneBytes() { + java.lang.Object ref = replicaZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + replicaZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + * + * + *
        +   * Optional. Specifies the active zone for regional storagePool.
        +   * 
        + * + * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
        +   * Optional. Specifies the active zone for regional storagePool.
        +   * 
        + * + * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1176,6 +1280,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(17, globalAccessAllowed_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicaZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, replicaZone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 21, zone_); + } getUnknownFields().writeTo(output); } @@ -1245,6 +1355,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, globalAccessAllowed_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicaZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, replicaZone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, zone_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1283,6 +1399,8 @@ public boolean equals(final java.lang.Object obj) { if (hasGlobalAccessAllowed()) { if (getGlobalAccessAllowed() != other.getGlobalAccessAllowed()) return false; } + if (!getReplicaZone().equals(other.getReplicaZone())) return false; + if (!getZone().equals(other.getZone())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1334,6 +1452,10 @@ public int hashCode() { hash = (37 * hash) + GLOBAL_ACCESS_ALLOWED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGlobalAccessAllowed()); } + hash = (37 * hash) + REPLICA_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getReplicaZone().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1527,6 +1649,8 @@ public Builder clear() { psaRange_ = ""; encryptionType_ = 0; globalAccessAllowed_ = false; + replicaZone_ = ""; + zone_ = ""; return this; } @@ -1618,6 +1742,12 @@ private void buildPartial0(com.google.cloud.netapp.v1.StoragePool result) { result.globalAccessAllowed_ = globalAccessAllowed_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.replicaZone_ = replicaZone_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.zone_ = zone_; + } result.bitField0_ |= to_bitField0_; } @@ -1730,6 +1860,16 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.StoragePool other) { if (other.hasGlobalAccessAllowed()) { setGlobalAccessAllowed(other.getGlobalAccessAllowed()); } + if (!other.getReplicaZone().isEmpty()) { + replicaZone_ = other.replicaZone_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00040000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1864,6 +2004,18 @@ public Builder mergeFrom( bitField0_ |= 0x00010000; break; } // case 136 + case 162: + { + replicaZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 162 + case 170: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3560,7 +3712,7 @@ public Builder clearEncryptionType() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=230 + * google/cloud/netapp/v1/storage_pool.proto;l=231 * @return Whether the globalAccessAllowed field is set. */ @java.lang.Override @@ -3579,7 +3731,7 @@ public boolean hasGlobalAccessAllowed() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=230 + * google/cloud/netapp/v1/storage_pool.proto;l=231 * @return The globalAccessAllowed. */ @java.lang.Override @@ -3598,7 +3750,7 @@ public boolean getGlobalAccessAllowed() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=230 + * google/cloud/netapp/v1/storage_pool.proto;l=231 * @param value The globalAccessAllowed to set. * @return This builder for chaining. */ @@ -3621,7 +3773,7 @@ public Builder setGlobalAccessAllowed(boolean value) { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=230 + * google/cloud/netapp/v1/storage_pool.proto;l=231 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3632,6 +3784,218 @@ public Builder clearGlobalAccessAllowed() { return this; } + private java.lang.Object replicaZone_ = ""; + /** + * + * + *
        +     * Optional. Specifies the replica zone for regional storagePool.
        +     * 
        + * + * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The replicaZone. + */ + public java.lang.String getReplicaZone() { + java.lang.Object ref = replicaZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + replicaZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Optional. Specifies the replica zone for regional storagePool.
        +     * 
        + * + * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for replicaZone. + */ + public com.google.protobuf.ByteString getReplicaZoneBytes() { + java.lang.Object ref = replicaZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + replicaZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Optional. Specifies the replica zone for regional storagePool.
        +     * 
        + * + * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The replicaZone to set. + * @return This builder for chaining. + */ + public Builder setReplicaZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + replicaZone_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Specifies the replica zone for regional storagePool.
        +     * 
        + * + * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReplicaZone() { + replicaZone_ = getDefaultInstance().getReplicaZone(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Specifies the replica zone for regional storagePool.
        +     * 
        + * + * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for replicaZone to set. + * @return This builder for chaining. + */ + public Builder setReplicaZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + replicaZone_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
        +     * Optional. Specifies the active zone for regional storagePool.
        +     * 
        + * + * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Optional. Specifies the active zone for regional storagePool.
        +     * 
        + * + * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Optional. Specifies the active zone for regional storagePool.
        +     * 
        + * + * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Specifies the active zone for regional storagePool.
        +     * 
        + * + * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Specifies the active zone for regional storagePool.
        +     * 
        + * + * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java index cc00a5e318a2..d44ade337d36 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java @@ -463,7 +463,7 @@ java.lang.String getLabelsOrDefault( * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=230 + * google/cloud/netapp/v1/storage_pool.proto;l=231 * @return Whether the globalAccessAllowed field is set. */ @java.lang.Deprecated @@ -479,9 +479,59 @@ java.lang.String getLabelsOrDefault( * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=230 + * google/cloud/netapp/v1/storage_pool.proto;l=231 * @return The globalAccessAllowed. */ @java.lang.Deprecated boolean getGlobalAccessAllowed(); + + /** + * + * + *
        +   * Optional. Specifies the replica zone for regional storagePool.
        +   * 
        + * + * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The replicaZone. + */ + java.lang.String getReplicaZone(); + /** + * + * + *
        +   * Optional. Specifies the replica zone for regional storagePool.
        +   * 
        + * + * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for replicaZone. + */ + com.google.protobuf.ByteString getReplicaZoneBytes(); + + /** + * + * + *
        +   * Optional. Specifies the active zone for regional storagePool.
        +   * 
        + * + * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + java.lang.String getZone(); + /** + * + * + *
        +   * Optional. Specifies the active zone for regional storagePool.
        +   * 
        + * + * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java index a1bac925ae79..0687764ed8ff 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java @@ -95,7 +95,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle.cloud.netapp.v1.StoragePoolB\003\340A\002\"S\n" + "\030DeleteStoragePoolRequest\0227\n\004name\030\001 \001(\tB" + ")\340A\002\372A#\n!netapp.googleapis.com/StoragePo" - + "ol\"\333\010\n\013StoragePool\022\021\n\004name\030\001 \001(\tB\003\340A\010\022@\n" + + "ol\"\211\t\n\013StoragePool\022\021\n\004name\030\001 \001(\tB\003\340A\010\022@\n" + "\rservice_level\030\002 \001(\0162$.google.cloud.neta" + "pp.v1.ServiceLevelB\003\340A\002\022\031\n\014capacity_gib\030" + "\003 \001(\003B\003\340A\002\022 \n\023volume_capacity_gib\030\004 \001(\003B" @@ -114,20 +114,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016 \001(\010B\003\340A\001\022\026\n\tpsa_range\030\017 \001(\tB\003\340A\001\022D\n\017en" + "cryption_type\030\020 \001(\0162&.google.cloud.netap" + "p.v1.EncryptionTypeB\003\340A\003\022&\n\025global_acces" - + "s_allowed\030\021 \001(\010B\002\030\001H\000\210\001\001\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"{\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005READY\020\001\022\014\n\010CR" - + "EATING\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDATING\020\004\022\r\n\t" - + "RESTORING\020\005\022\014\n\010DISABLED\020\006\022\t\n\005ERROR\020\007:\207\001\352" - + "A\203\001\n!netapp.googleapis.com/StoragePool\022C" - + "projects/{project}/locations/{location}/" - + "storagePools/{storage_pool}*\014storagePool" - + "s2\013storagePoolB\030\n\026_global_access_allowed" - + "B\262\001\n\032com.google.cloud.netapp.v1B\020Storage" - + "PoolProtoP\001Z2cloud.google.com/go/netapp/" - + "apiv1/netapppb;netapppb\252\002\026Google.Cloud.N" - + "etApp.V1\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031Goog" - + "le::Cloud::NetApp::V1b\006proto3" + + "s_allowed\030\021 \001(\010B\002\030\001H\000\210\001\001\022\031\n\014replica_zone" + + "\030\024 \001(\tB\003\340A\001\022\021\n\004zone\030\025 \001(\tB\003\340A\001\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"{\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005READY\020\001" + + "\022\014\n\010CREATING\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDATING" + + "\020\004\022\r\n\tRESTORING\020\005\022\014\n\010DISABLED\020\006\022\t\n\005ERROR" + + "\020\007:\207\001\352A\203\001\n!netapp.googleapis.com/Storage" + + "Pool\022Cprojects/{project}/locations/{loca" + + "tion}/storagePools/{storage_pool}*\014stora" + + "gePools2\013storagePoolB\030\n\026_global_access_a" + + "llowedB\262\001\n\032com.google.cloud.netapp.v1B\020S" + + "toragePoolProtoP\001Z2cloud.google.com/go/n" + + "etapp/apiv1/netapppb;netapppb\252\002\026Google.C" + + "loud.NetApp.V1\312\002\026Google\\Cloud\\NetApp\\V1\352" + + "\002\031Google::Cloud::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -210,6 +211,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PsaRange", "EncryptionType", "GlobalAccessAllowed", + "ReplicaZone", + "Zone", }); internal_static_google_cloud_netapp_v1_StoragePool_LabelsEntry_descriptor = internal_static_google_cloud_netapp_v1_StoragePool_descriptor.getNestedTypes().get(0); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TransferStats.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TransferStats.java index 8df292f75701..4d9b5a3f6aa2 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TransferStats.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TransferStats.java @@ -70,7 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * bytes trasferred so far in current transfer.
        +   * Cumulative bytes trasferred so far for the replication relatinonship.
            * 
        * * optional int64 transfer_bytes = 1; @@ -85,7 +85,7 @@ public boolean hasTransferBytes() { * * *
        -   * bytes trasferred so far in current transfer.
        +   * Cumulative bytes trasferred so far for the replication relatinonship.
            * 
        * * optional int64 transfer_bytes = 1; @@ -103,7 +103,8 @@ public long getTransferBytes() { * * *
        -   * Total time taken during transfer.
        +   * Cumulative time taken across all transfers for the replication
        +   * relationship.
            * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; @@ -118,7 +119,8 @@ public boolean hasTotalTransferDuration() { * * *
        -   * Total time taken during transfer.
        +   * Cumulative time taken across all transfers for the replication
        +   * relationship.
            * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; @@ -135,7 +137,8 @@ public com.google.protobuf.Duration getTotalTransferDuration() { * * *
        -   * Total time taken during transfer.
        +   * Cumulative time taken across all transfers for the replication
        +   * relationship.
            * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; @@ -1038,7 +1041,7 @@ public Builder mergeFrom( * * *
        -     * bytes trasferred so far in current transfer.
        +     * Cumulative bytes trasferred so far for the replication relatinonship.
              * 
        * * optional int64 transfer_bytes = 1; @@ -1053,7 +1056,7 @@ public boolean hasTransferBytes() { * * *
        -     * bytes trasferred so far in current transfer.
        +     * Cumulative bytes trasferred so far for the replication relatinonship.
              * 
        * * optional int64 transfer_bytes = 1; @@ -1068,7 +1071,7 @@ public long getTransferBytes() { * * *
        -     * bytes trasferred so far in current transfer.
        +     * Cumulative bytes trasferred so far for the replication relatinonship.
              * 
        * * optional int64 transfer_bytes = 1; @@ -1087,7 +1090,7 @@ public Builder setTransferBytes(long value) { * * *
        -     * bytes trasferred so far in current transfer.
        +     * Cumulative bytes trasferred so far for the replication relatinonship.
              * 
        * * optional int64 transfer_bytes = 1; @@ -1111,7 +1114,8 @@ public Builder clearTransferBytes() { * * *
        -     * Total time taken during transfer.
        +     * Cumulative time taken across all transfers for the replication
        +     * relationship.
              * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; @@ -1125,7 +1129,8 @@ public boolean hasTotalTransferDuration() { * * *
        -     * Total time taken during transfer.
        +     * Cumulative time taken across all transfers for the replication
        +     * relationship.
              * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; @@ -1145,7 +1150,8 @@ public com.google.protobuf.Duration getTotalTransferDuration() { * * *
        -     * Total time taken during transfer.
        +     * Cumulative time taken across all transfers for the replication
        +     * relationship.
              * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; @@ -1167,7 +1173,8 @@ public Builder setTotalTransferDuration(com.google.protobuf.Duration value) { * * *
        -     * Total time taken during transfer.
        +     * Cumulative time taken across all transfers for the replication
        +     * relationship.
              * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; @@ -1186,7 +1193,8 @@ public Builder setTotalTransferDuration(com.google.protobuf.Duration.Builder bui * * *
        -     * Total time taken during transfer.
        +     * Cumulative time taken across all transfers for the replication
        +     * relationship.
              * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; @@ -1213,7 +1221,8 @@ public Builder mergeTotalTransferDuration(com.google.protobuf.Duration value) { * * *
        -     * Total time taken during transfer.
        +     * Cumulative time taken across all transfers for the replication
        +     * relationship.
              * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; @@ -1232,7 +1241,8 @@ public Builder clearTotalTransferDuration() { * * *
        -     * Total time taken during transfer.
        +     * Cumulative time taken across all transfers for the replication
        +     * relationship.
              * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; @@ -1246,7 +1256,8 @@ public com.google.protobuf.Duration.Builder getTotalTransferDurationBuilder() { * * *
        -     * Total time taken during transfer.
        +     * Cumulative time taken across all transfers for the replication
        +     * relationship.
              * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; @@ -1264,7 +1275,8 @@ public com.google.protobuf.DurationOrBuilder getTotalTransferDurationOrBuilder() * * *
        -     * Total time taken during transfer.
        +     * Cumulative time taken across all transfers for the replication
        +     * relationship.
              * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TransferStatsOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TransferStatsOrBuilder.java index f4313b32ba44..77d964a04c4e 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TransferStatsOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TransferStatsOrBuilder.java @@ -28,7 +28,7 @@ public interface TransferStatsOrBuilder * * *
        -   * bytes trasferred so far in current transfer.
        +   * Cumulative bytes trasferred so far for the replication relatinonship.
            * 
        * * optional int64 transfer_bytes = 1; @@ -40,7 +40,7 @@ public interface TransferStatsOrBuilder * * *
        -   * bytes trasferred so far in current transfer.
        +   * Cumulative bytes trasferred so far for the replication relatinonship.
            * 
        * * optional int64 transfer_bytes = 1; @@ -53,7 +53,8 @@ public interface TransferStatsOrBuilder * * *
        -   * Total time taken during transfer.
        +   * Cumulative time taken across all transfers for the replication
        +   * relationship.
            * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; @@ -65,7 +66,8 @@ public interface TransferStatsOrBuilder * * *
        -   * Total time taken during transfer.
        +   * Cumulative time taken across all transfers for the replication
        +   * relationship.
            * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; @@ -77,7 +79,8 @@ public interface TransferStatsOrBuilder * * *
        -   * Total time taken during transfer.
        +   * Cumulative time taken across all transfers for the replication
        +   * relationship.
            * 
        * * optional .google.protobuf.Duration total_transfer_duration = 2; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java index 8b6ffaf00453..a508097c41b4 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java @@ -57,6 +57,8 @@ private Volume() { kmsConfig_ = ""; encryptionType_ = 0; restrictedActions_ = java.util.Collections.emptyList(); + replicaZone_ = ""; + zone_ = ""; } @java.lang.Override @@ -1955,6 +1957,45 @@ public int getRestrictedActionsValue(int index) { private int restrictedActionsMemoizedSerializedSize; + public static final int LARGE_CAPACITY_FIELD_NUMBER = 32; + private boolean largeCapacity_ = false; + /** + * + * + *
        +   * Optional. Flag indicating if the volume will be a large capacity volume or
        +   * a regular volume.
        +   * 
        + * + * bool large_capacity = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The largeCapacity. + */ + @java.lang.Override + public boolean getLargeCapacity() { + return largeCapacity_; + } + + public static final int MULTIPLE_ENDPOINTS_FIELD_NUMBER = 33; + private boolean multipleEndpoints_ = false; + /** + * + * + *
        +   * Optional. Flag indicating if the volume will have an IP address per node
        +   * for volumes supporting multiple IP endpoints. Only the volume with
        +   * large_capacity will be allowed to have multiple endpoints.
        +   * 
        + * + * bool multiple_endpoints = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The multipleEndpoints. + */ + @java.lang.Override + public boolean getMultipleEndpoints() { + return multipleEndpoints_; + } + public static final int TIERING_POLICY_FIELD_NUMBER = 34; private com.google.cloud.netapp.v1.TieringPolicy tieringPolicy_; /** @@ -2005,6 +2046,108 @@ public com.google.cloud.netapp.v1.TieringPolicyOrBuilder getTieringPolicyOrBuild : tieringPolicy_; } + public static final int REPLICA_ZONE_FIELD_NUMBER = 36; + + @SuppressWarnings("serial") + private volatile java.lang.Object replicaZone_ = ""; + /** + * + * + *
        +   * Output only. Specifies the replica zone for regional volume.
        +   * 
        + * + * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The replicaZone. + */ + @java.lang.Override + public java.lang.String getReplicaZone() { + java.lang.Object ref = replicaZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + replicaZone_ = s; + return s; + } + } + /** + * + * + *
        +   * Output only. Specifies the replica zone for regional volume.
        +   * 
        + * + * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for replicaZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReplicaZoneBytes() { + java.lang.Object ref = replicaZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + replicaZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 37; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + * + * + *
        +   * Output only. Specifies the active zone for regional volume.
        +   * 
        + * + * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
        +   * Output only. Specifies the active zone for regional volume.
        +   * 
        + * + * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2127,9 +2270,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < restrictedActions_.size(); i++) { output.writeEnumNoTag(restrictedActions_.get(i)); } + if (largeCapacity_ != false) { + output.writeBool(32, largeCapacity_); + } + if (multipleEndpoints_ != false) { + output.writeBool(33, multipleEndpoints_); + } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(34, getTieringPolicy()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicaZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 36, replicaZone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 37, zone_); + } getUnknownFields().writeTo(output); } @@ -2270,9 +2425,21 @@ public int getSerializedSize() { } restrictedActionsMemoizedSerializedSize = dataSize; } + if (largeCapacity_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(32, largeCapacity_); + } + if (multipleEndpoints_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(33, multipleEndpoints_); + } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, getTieringPolicy()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicaZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, replicaZone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, zone_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2335,10 +2502,14 @@ public boolean equals(final java.lang.Object obj) { if (!getBackupConfig().equals(other.getBackupConfig())) return false; } if (!restrictedActions_.equals(other.restrictedActions_)) return false; + if (getLargeCapacity() != other.getLargeCapacity()) return false; + if (getMultipleEndpoints() != other.getMultipleEndpoints()) return false; if (hasTieringPolicy() != other.hasTieringPolicy()) return false; if (hasTieringPolicy()) { if (!getTieringPolicy().equals(other.getTieringPolicy())) return false; } + if (!getReplicaZone().equals(other.getReplicaZone())) return false; + if (!getZone().equals(other.getZone())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2435,10 +2606,18 @@ public int hashCode() { hash = (37 * hash) + RESTRICTED_ACTIONS_FIELD_NUMBER; hash = (53 * hash) + restrictedActions_.hashCode(); } + hash = (37 * hash) + LARGE_CAPACITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLargeCapacity()); + hash = (37 * hash) + MULTIPLE_ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultipleEndpoints()); if (hasTieringPolicy()) { hash = (37 * hash) + TIERING_POLICY_FIELD_NUMBER; hash = (53 * hash) + getTieringPolicy().hashCode(); } + hash = (37 * hash) + REPLICA_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getReplicaZone().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2614,6 +2793,7 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + bitField1_ = 0; name_ = ""; state_ = 0; stateDetails_ = ""; @@ -2674,11 +2854,15 @@ public Builder clear() { } restrictedActions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x40000000); + largeCapacity_ = false; + multipleEndpoints_ = false; tieringPolicy_ = null; if (tieringPolicyBuilder_ != null) { tieringPolicyBuilder_.dispose(); tieringPolicyBuilder_ = null; } + replicaZone_ = ""; + zone_ = ""; return this; } @@ -2709,6 +2893,9 @@ public com.google.cloud.netapp.v1.Volume buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { + buildPartial1(result); + } onBuilt(); return result; } @@ -2837,10 +3024,28 @@ private void buildPartial0(com.google.cloud.netapp.v1.Volume result) { to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x80000000) != 0)) { + result.largeCapacity_ = largeCapacity_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(com.google.cloud.netapp.v1.Volume result) { + int from_bitField1_ = bitField1_; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.multipleEndpoints_ = multipleEndpoints_; + } + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000002) != 0)) { result.tieringPolicy_ = tieringPolicyBuilder_ == null ? tieringPolicy_ : tieringPolicyBuilder_.build(); to_bitField0_ |= 0x00000020; } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.replicaZone_ = replicaZone_; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.zone_ = zone_; + } result.bitField0_ |= to_bitField0_; } @@ -3046,9 +3251,25 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.Volume other) { } onChanged(); } + if (other.getLargeCapacity() != false) { + setLargeCapacity(other.getLargeCapacity()); + } + if (other.getMultipleEndpoints() != false) { + setMultipleEndpoints(other.getMultipleEndpoints()); + } if (other.hasTieringPolicy()) { mergeTieringPolicy(other.getTieringPolicy()); } + if (!other.getReplicaZone().isEmpty()) { + replicaZone_ = other.replicaZone_; + bitField1_ |= 0x00000004; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField1_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3314,12 +3535,36 @@ public Builder mergeFrom( input.popLimit(oldLimit); break; } // case 250 + case 256: + { + largeCapacity_ = input.readBool(); + bitField0_ |= 0x80000000; + break; + } // case 256 + case 264: + { + multipleEndpoints_ = input.readBool(); + bitField1_ |= 0x00000001; + break; + } // case 264 case 274: { input.readMessage(getTieringPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; break; } // case 274 + case 290: + { + replicaZone_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000004; + break; + } // case 290 + case 298: + { + zone_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000008; + break; + } // case 298 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3338,6 +3583,7 @@ public Builder mergeFrom( } private int bitField0_; + private int bitField1_; private java.lang.Object name_ = ""; /** @@ -7531,6 +7777,121 @@ public Builder addAllRestrictedActionsValue(java.lang.Iterable + * Optional. Flag indicating if the volume will be a large capacity volume or + * a regular volume. + * + * + * bool large_capacity = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The largeCapacity. + */ + @java.lang.Override + public boolean getLargeCapacity() { + return largeCapacity_; + } + /** + * + * + *
        +     * Optional. Flag indicating if the volume will be a large capacity volume or
        +     * a regular volume.
        +     * 
        + * + * bool large_capacity = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The largeCapacity to set. + * @return This builder for chaining. + */ + public Builder setLargeCapacity(boolean value) { + + largeCapacity_ = value; + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Flag indicating if the volume will be a large capacity volume or
        +     * a regular volume.
        +     * 
        + * + * bool large_capacity = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLargeCapacity() { + bitField0_ = (bitField0_ & ~0x80000000); + largeCapacity_ = false; + onChanged(); + return this; + } + + private boolean multipleEndpoints_; + /** + * + * + *
        +     * Optional. Flag indicating if the volume will have an IP address per node
        +     * for volumes supporting multiple IP endpoints. Only the volume with
        +     * large_capacity will be allowed to have multiple endpoints.
        +     * 
        + * + * bool multiple_endpoints = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The multipleEndpoints. + */ + @java.lang.Override + public boolean getMultipleEndpoints() { + return multipleEndpoints_; + } + /** + * + * + *
        +     * Optional. Flag indicating if the volume will have an IP address per node
        +     * for volumes supporting multiple IP endpoints. Only the volume with
        +     * large_capacity will be allowed to have multiple endpoints.
        +     * 
        + * + * bool multiple_endpoints = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The multipleEndpoints to set. + * @return This builder for chaining. + */ + public Builder setMultipleEndpoints(boolean value) { + + multipleEndpoints_ = value; + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Flag indicating if the volume will have an IP address per node
        +     * for volumes supporting multiple IP endpoints. Only the volume with
        +     * large_capacity will be allowed to have multiple endpoints.
        +     * 
        + * + * bool multiple_endpoints = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMultipleEndpoints() { + bitField1_ = (bitField1_ & ~0x00000001); + multipleEndpoints_ = false; + onChanged(); + return this; + } + private com.google.cloud.netapp.v1.TieringPolicy tieringPolicy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.TieringPolicy, @@ -7549,7 +7910,7 @@ public Builder addAllRestrictedActionsValue(java.lang.Iterableoptional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34;
        */ public Builder clearTieringPolicy() { - bitField0_ = (bitField0_ & ~0x80000000); + bitField1_ = (bitField1_ & ~0x00000002); tieringPolicy_ = null; if (tieringPolicyBuilder_ != null) { tieringPolicyBuilder_.dispose(); @@ -7669,7 +8030,7 @@ public Builder clearTieringPolicy() { * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34; */ public com.google.cloud.netapp.v1.TieringPolicy.Builder getTieringPolicyBuilder() { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; onChanged(); return getTieringPolicyFieldBuilder().getBuilder(); } @@ -7717,6 +8078,218 @@ public com.google.cloud.netapp.v1.TieringPolicyOrBuilder getTieringPolicyOrBuild return tieringPolicyBuilder_; } + private java.lang.Object replicaZone_ = ""; + /** + * + * + *
        +     * Output only. Specifies the replica zone for regional volume.
        +     * 
        + * + * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The replicaZone. + */ + public java.lang.String getReplicaZone() { + java.lang.Object ref = replicaZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + replicaZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Output only. Specifies the replica zone for regional volume.
        +     * 
        + * + * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for replicaZone. + */ + public com.google.protobuf.ByteString getReplicaZoneBytes() { + java.lang.Object ref = replicaZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + replicaZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Output only. Specifies the replica zone for regional volume.
        +     * 
        + * + * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The replicaZone to set. + * @return This builder for chaining. + */ + public Builder setReplicaZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + replicaZone_ = value; + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Output only. Specifies the replica zone for regional volume.
        +     * 
        + * + * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReplicaZone() { + replicaZone_ = getDefaultInstance().getReplicaZone(); + bitField1_ = (bitField1_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
        +     * Output only. Specifies the replica zone for regional volume.
        +     * 
        + * + * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for replicaZone to set. + * @return This builder for chaining. + */ + public Builder setReplicaZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + replicaZone_ = value; + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
        +     * Output only. Specifies the active zone for regional volume.
        +     * 
        + * + * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Output only. Specifies the active zone for regional volume.
        +     * 
        + * + * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Output only. Specifies the active zone for regional volume.
        +     * 
        + * + * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
        +     * Output only. Specifies the active zone for regional volume.
        +     * 
        + * + * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField1_ = (bitField1_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
        +     * Output only. Specifies the active zone for regional volume.
        +     * 
        + * + * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java index 236b415d6b39..72eccb1ba7a6 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java @@ -1044,6 +1044,35 @@ java.lang.String getLabelsOrDefault( */ int getRestrictedActionsValue(int index); + /** + * + * + *
        +   * Optional. Flag indicating if the volume will be a large capacity volume or
        +   * a regular volume.
        +   * 
        + * + * bool large_capacity = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The largeCapacity. + */ + boolean getLargeCapacity(); + + /** + * + * + *
        +   * Optional. Flag indicating if the volume will have an IP address per node
        +   * for volumes supporting multiple IP endpoints. Only the volume with
        +   * large_capacity will be allowed to have multiple endpoints.
        +   * 
        + * + * bool multiple_endpoints = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The multipleEndpoints. + */ + boolean getMultipleEndpoints(); + /** * * @@ -1078,4 +1107,54 @@ java.lang.String getLabelsOrDefault( * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34; */ com.google.cloud.netapp.v1.TieringPolicyOrBuilder getTieringPolicyOrBuilder(); + + /** + * + * + *
        +   * Output only. Specifies the replica zone for regional volume.
        +   * 
        + * + * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The replicaZone. + */ + java.lang.String getReplicaZone(); + /** + * + * + *
        +   * Output only. Specifies the replica zone for regional volume.
        +   * 
        + * + * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for replicaZone. + */ + com.google.protobuf.ByteString getReplicaZoneBytes(); + + /** + * + * + *
        +   * Output only. Specifies the active zone for regional volume.
        +   * 
        + * + * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The zone. + */ + java.lang.String getZone(); + /** + * + * + *
        +   * Output only. Specifies the active zone for regional volume.
        +   * 
        + * + * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java index 2a8c788f396d..cd40b112e9b8 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java @@ -143,7 +143,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Volume\022\r\n\005force\030\002 \001(\010\"c\n\023RevertVolumeReq" + "uest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034netapp.googl" + "eapis.com/Volume\022\030\n\013snapshot_id\030\002 \001(\tB\003\340" - + "A\002\"\204\017\n\006Volume\022\021\n\004name\030\001 \001(\tB\003\340A\010\0228\n\005stat" + + "A\002\"\360\017\n\006Volume\022\021\n\004name\030\001 \001(\tB\003\340A\010\0228\n\005stat" + "e\030\002 \001(\0162$.google.cloud.netapp.v1.Volume." + "StateB\003\340A\003\022\032\n\rstate_details\030\003 \001(\tB\003\340A\003\0224" + "\n\013create_time\030\004 \001(\0132\032.google.protobuf.Ti" @@ -181,96 +181,99 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003\022@\n\rbackup_config\030\036 \001(\0132$.google.cloud." + "netapp.v1.BackupConfigH\000\210\001\001\022I\n\022restricte" + "d_actions\030\037 \003(\0162(.google.cloud.netapp.v1" - + ".RestrictedActionB\003\340A\001\022B\n\016tiering_policy" - + "\030\" \001(\0132%.google.cloud.netapp.v1.TieringP" - + "olicyH\001\210\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"{\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DE" - + "LETING\020\003\022\014\n\010UPDATING\020\004\022\r\n\tRESTORING\020\005\022\014\n" - + "\010DISABLED\020\006\022\t\n\005ERROR\020\007:l\352Ai\n\034netapp.goog" - + "leapis.com/Volume\0228projects/{project}/lo" - + "cations/{location}/volumes/{volume}*\007vol" - + "umes2\006volumeB\020\n\016_backup_configB\021\n\017_tieri" - + "ng_policy\"R\n\014ExportPolicy\022B\n\005rules\030\001 \003(\013" - + "2..google.cloud.netapp.v1.SimpleExportPo" - + "licyRuleB\003\340A\002\"\374\004\n\026SimpleExportPolicyRule" - + "\022\034\n\017allowed_clients\030\001 \001(\tH\000\210\001\001\022\034\n\017has_ro" - + "ot_access\030\002 \001(\tH\001\210\001\001\022<\n\013access_type\030\003 \001(" - + "\0162\".google.cloud.netapp.v1.AccessTypeH\002\210" - + "\001\001\022\022\n\005nfsv3\030\004 \001(\010H\003\210\001\001\022\022\n\005nfsv4\030\005 \001(\010H\004\210" - + "\001\001\022!\n\024kerberos_5_read_only\030\006 \001(\010H\005\210\001\001\022\"\n" - + "\025kerberos_5_read_write\030\007 \001(\010H\006\210\001\001\022\"\n\025ker" - + "beros_5i_read_only\030\010 \001(\010H\007\210\001\001\022#\n\026kerbero" - + "s_5i_read_write\030\t \001(\010H\010\210\001\001\022\"\n\025kerberos_5" - + "p_read_only\030\n \001(\010H\t\210\001\001\022#\n\026kerberos_5p_re" - + "ad_write\030\013 \001(\010H\n\210\001\001B\022\n\020_allowed_clientsB" - + "\022\n\020_has_root_accessB\016\n\014_access_typeB\010\n\006_" - + "nfsv3B\010\n\006_nfsv4B\027\n\025_kerberos_5_read_only" - + "B\030\n\026_kerberos_5_read_writeB\030\n\026_kerberos_" - + "5i_read_onlyB\031\n\027_kerberos_5i_read_writeB" - + "\030\n\026_kerberos_5p_read_onlyB\031\n\027_kerberos_5" - + "p_read_write\"\232\003\n\016SnapshotPolicy\022\024\n\007enabl" - + "ed\030\001 \001(\010H\000\210\001\001\022D\n\017hourly_schedule\030\002 \001(\0132&" - + ".google.cloud.netapp.v1.HourlyScheduleH\001" - + "\210\001\001\022B\n\016daily_schedule\030\003 \001(\0132%.google.clo" - + "ud.netapp.v1.DailyScheduleH\002\210\001\001\022D\n\017weekl" - + "y_schedule\030\004 \001(\0132&.google.cloud.netapp.v" - + "1.WeeklyScheduleH\003\210\001\001\022F\n\020monthly_schedul" - + "e\030\005 \001(\0132\'.google.cloud.netapp.v1.Monthly" - + "ScheduleH\004\210\001\001B\n\n\010_enabledB\022\n\020_hourly_sch" - + "eduleB\021\n\017_daily_scheduleB\022\n\020_weekly_sche" - + "duleB\023\n\021_monthly_schedule\"f\n\016HourlySched" - + "ule\022\036\n\021snapshots_to_keep\030\001 \001(\001H\000\210\001\001\022\023\n\006m" - + "inute\030\002 \001(\001H\001\210\001\001B\024\n\022_snapshots_to_keepB\t" - + "\n\007_minute\"\201\001\n\rDailySchedule\022\036\n\021snapshots" - + "_to_keep\030\001 \001(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001\001" - + "\022\021\n\004hour\030\003 \001(\001H\002\210\001\001B\024\n\022_snapshots_to_kee" - + "pB\t\n\007_minuteB\007\n\005_hour\"\234\001\n\016WeeklySchedule" - + "\022\036\n\021snapshots_to_keep\030\001 \001(\001H\000\210\001\001\022\023\n\006minu" - + "te\030\002 \001(\001H\001\210\001\001\022\021\n\004hour\030\003 \001(\001H\002\210\001\001\022\020\n\003day\030" - + "\004 \001(\tH\003\210\001\001B\024\n\022_snapshots_to_keepB\t\n\007_min" - + "uteB\007\n\005_hourB\006\n\004_day\"\261\001\n\017MonthlySchedule" - + "\022\036\n\021snapshots_to_keep\030\001 \001(\001H\000\210\001\001\022\023\n\006minu" - + "te\030\002 \001(\001H\001\210\001\001\022\021\n\004hour\030\003 \001(\001H\002\210\001\001\022\032\n\rdays" - + "_of_month\030\004 \001(\tH\003\210\001\001B\024\n\022_snapshots_to_ke" - + "epB\t\n\007_minuteB\007\n\005_hourB\020\n\016_days_of_month" - + "\"}\n\013MountOption\022\016\n\006export\030\001 \001(\t\022\023\n\013expor" - + "t_full\030\002 \001(\t\0223\n\010protocol\030\003 \001(\0162!.google." - + "cloud.netapp.v1.Protocols\022\024\n\014instruction" - + "s\030\004 \001(\t\"Q\n\021RestoreParameters\022\031\n\017source_s" - + "napshot\030\001 \001(\tH\000\022\027\n\rsource_backup\030\002 \001(\tH\000" - + "B\010\n\006source\"\232\002\n\014BackupConfig\022C\n\017backup_po" - + "licies\030\001 \003(\tB*\340A\001\372A$\n\"netapp.googleapis." - + "com/BackupPolicy\022?\n\014backup_vault\030\002 \001(\tB)" - + "\340A\001\372A#\n!netapp.googleapis.com/BackupVaul" - + "t\022*\n\030scheduled_backup_enabled\030\003 \001(\010B\003\340A\001" - + "H\000\210\001\001\022$\n\022backup_chain_bytes\030\004 \001(\003B\003\340A\003H\001" - + "\210\001\001B\033\n\031_scheduled_backup_enabledB\025\n\023_bac" - + "kup_chain_bytes\"\371\001\n\rTieringPolicy\022O\n\013tie" - + "r_action\030\001 \001(\01620.google.cloud.netapp.v1." - + "TieringPolicy.TierActionB\003\340A\001H\000\210\001\001\022(\n\026co" - + "oling_threshold_days\030\002 \001(\005B\003\340A\001H\001\210\001\001\"B\n\n" - + "TierAction\022\033\n\027TIER_ACTION_UNSPECIFIED\020\000\022" - + "\013\n\007ENABLED\020\001\022\n\n\006PAUSED\020\002B\016\n\014_tier_action" - + "B\031\n\027_cooling_threshold_days*E\n\tProtocols" - + "\022\031\n\025PROTOCOLS_UNSPECIFIED\020\000\022\t\n\005NFSV3\020\001\022\t" - + "\n\005NFSV4\020\002\022\007\n\003SMB\020\003*W\n\nAccessType\022\033\n\027ACCE" - + "SS_TYPE_UNSPECIFIED\020\000\022\r\n\tREAD_ONLY\020\001\022\016\n\n" - + "READ_WRITE\020\002\022\r\n\tREAD_NONE\020\003*\350\001\n\013SMBSetti" - + "ngs\022\034\n\030SMB_SETTINGS_UNSPECIFIED\020\000\022\020\n\014ENC" - + "RYPT_DATA\020\001\022\r\n\tBROWSABLE\020\002\022\021\n\rCHANGE_NOT" - + "IFY\020\003\022\021\n\rNON_BROWSABLE\020\004\022\013\n\007OPLOCKS\020\005\022\021\n" - + "\rSHOW_SNAPSHOT\020\006\022\032\n\026SHOW_PREVIOUS_VERSIO" - + "NS\020\007\022\034\n\030ACCESS_BASED_ENUMERATION\020\010\022\032\n\026CO" - + "NTINUOUSLY_AVAILABLE\020\t*C\n\rSecurityStyle\022" - + "\036\n\032SECURITY_STYLE_UNSPECIFIED\020\000\022\010\n\004NTFS\020" - + "\001\022\010\n\004UNIX\020\002*A\n\020RestrictedAction\022!\n\035RESTR" - + "ICTED_ACTION_UNSPECIFIED\020\000\022\n\n\006DELETE\020\001B\255" - + "\001\n\032com.google.cloud.netapp.v1B\013VolumePro" - + "toP\001Z2cloud.google.com/go/netapp/apiv1/n" - + "etapppb;netapppb\252\002\026Google.Cloud.NetApp.V" - + "1\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031Google::Clo" - + "ud::NetApp::V1b\006proto3" + + ".RestrictedActionB\003\340A\001\022\033\n\016large_capacity" + + "\030 \001(\010B\003\340A\001\022\037\n\022multiple_endpoints\030! \001(\010B" + + "\003\340A\001\022B\n\016tiering_policy\030\" \001(\0132%.google.cl" + + "oud.netapp.v1.TieringPolicyH\001\210\001\001\022\031\n\014repl" + + "ica_zone\030$ \001(\tB\003\340A\003\022\021\n\004zone\030% \001(\tB\003\340A\003\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"{\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n" + + "\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELETING\020\003\022\014\n\010" + + "UPDATING\020\004\022\r\n\tRESTORING\020\005\022\014\n\010DISABLED\020\006\022" + + "\t\n\005ERROR\020\007:l\352Ai\n\034netapp.googleapis.com/V" + + "olume\0228projects/{project}/locations/{loc" + + "ation}/volumes/{volume}*\007volumes2\006volume" + + "B\020\n\016_backup_configB\021\n\017_tiering_policy\"R\n" + + "\014ExportPolicy\022B\n\005rules\030\001 \003(\0132..google.cl" + + "oud.netapp.v1.SimpleExportPolicyRuleB\003\340A" + + "\002\"\374\004\n\026SimpleExportPolicyRule\022\034\n\017allowed_" + + "clients\030\001 \001(\tH\000\210\001\001\022\034\n\017has_root_access\030\002 " + + "\001(\tH\001\210\001\001\022<\n\013access_type\030\003 \001(\0162\".google.c" + + "loud.netapp.v1.AccessTypeH\002\210\001\001\022\022\n\005nfsv3\030" + + "\004 \001(\010H\003\210\001\001\022\022\n\005nfsv4\030\005 \001(\010H\004\210\001\001\022!\n\024kerber" + + "os_5_read_only\030\006 \001(\010H\005\210\001\001\022\"\n\025kerberos_5_" + + "read_write\030\007 \001(\010H\006\210\001\001\022\"\n\025kerberos_5i_rea" + + "d_only\030\010 \001(\010H\007\210\001\001\022#\n\026kerberos_5i_read_wr" + + "ite\030\t \001(\010H\010\210\001\001\022\"\n\025kerberos_5p_read_only\030" + + "\n \001(\010H\t\210\001\001\022#\n\026kerberos_5p_read_write\030\013 \001" + + "(\010H\n\210\001\001B\022\n\020_allowed_clientsB\022\n\020_has_root" + + "_accessB\016\n\014_access_typeB\010\n\006_nfsv3B\010\n\006_nf" + + "sv4B\027\n\025_kerberos_5_read_onlyB\030\n\026_kerbero" + + "s_5_read_writeB\030\n\026_kerberos_5i_read_only" + + "B\031\n\027_kerberos_5i_read_writeB\030\n\026_kerberos" + + "_5p_read_onlyB\031\n\027_kerberos_5p_read_write" + + "\"\232\003\n\016SnapshotPolicy\022\024\n\007enabled\030\001 \001(\010H\000\210\001" + + "\001\022D\n\017hourly_schedule\030\002 \001(\0132&.google.clou" + + "d.netapp.v1.HourlyScheduleH\001\210\001\001\022B\n\016daily" + + "_schedule\030\003 \001(\0132%.google.cloud.netapp.v1" + + ".DailyScheduleH\002\210\001\001\022D\n\017weekly_schedule\030\004" + + " \001(\0132&.google.cloud.netapp.v1.WeeklySche" + + "duleH\003\210\001\001\022F\n\020monthly_schedule\030\005 \001(\0132\'.go" + + "ogle.cloud.netapp.v1.MonthlyScheduleH\004\210\001" + + "\001B\n\n\010_enabledB\022\n\020_hourly_scheduleB\021\n\017_da" + + "ily_scheduleB\022\n\020_weekly_scheduleB\023\n\021_mon" + + "thly_schedule\"f\n\016HourlySchedule\022\036\n\021snaps" + + "hots_to_keep\030\001 \001(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H" + + "\001\210\001\001B\024\n\022_snapshots_to_keepB\t\n\007_minute\"\201\001" + + "\n\rDailySchedule\022\036\n\021snapshots_to_keep\030\001 \001" + + "(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001\001\022\021\n\004hour\030\003 \001" + + "(\001H\002\210\001\001B\024\n\022_snapshots_to_keepB\t\n\007_minute" + + "B\007\n\005_hour\"\234\001\n\016WeeklySchedule\022\036\n\021snapshot" + + "s_to_keep\030\001 \001(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001" + + "\001\022\021\n\004hour\030\003 \001(\001H\002\210\001\001\022\020\n\003day\030\004 \001(\tH\003\210\001\001B\024" + + "\n\022_snapshots_to_keepB\t\n\007_minuteB\007\n\005_hour" + + "B\006\n\004_day\"\261\001\n\017MonthlySchedule\022\036\n\021snapshot" + + "s_to_keep\030\001 \001(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001" + + "\001\022\021\n\004hour\030\003 \001(\001H\002\210\001\001\022\032\n\rdays_of_month\030\004 " + + "\001(\tH\003\210\001\001B\024\n\022_snapshots_to_keepB\t\n\007_minut" + + "eB\007\n\005_hourB\020\n\016_days_of_month\"}\n\013MountOpt" + + "ion\022\016\n\006export\030\001 \001(\t\022\023\n\013export_full\030\002 \001(\t" + + "\0223\n\010protocol\030\003 \001(\0162!.google.cloud.netapp" + + ".v1.Protocols\022\024\n\014instructions\030\004 \001(\t\"Q\n\021R" + + "estoreParameters\022\031\n\017source_snapshot\030\001 \001(" + + "\tH\000\022\027\n\rsource_backup\030\002 \001(\tH\000B\010\n\006source\"\232" + + "\002\n\014BackupConfig\022C\n\017backup_policies\030\001 \003(\t" + + "B*\340A\001\372A$\n\"netapp.googleapis.com/BackupPo" + + "licy\022?\n\014backup_vault\030\002 \001(\tB)\340A\001\372A#\n!neta" + + "pp.googleapis.com/BackupVault\022*\n\030schedul" + + "ed_backup_enabled\030\003 \001(\010B\003\340A\001H\000\210\001\001\022$\n\022bac" + + "kup_chain_bytes\030\004 \001(\003B\003\340A\003H\001\210\001\001B\033\n\031_sche" + + "duled_backup_enabledB\025\n\023_backup_chain_by" + + "tes\"\371\001\n\rTieringPolicy\022O\n\013tier_action\030\001 \001" + + "(\01620.google.cloud.netapp.v1.TieringPolic" + + "y.TierActionB\003\340A\001H\000\210\001\001\022(\n\026cooling_thresh" + + "old_days\030\002 \001(\005B\003\340A\001H\001\210\001\001\"B\n\nTierAction\022\033" + + "\n\027TIER_ACTION_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001" + + "\022\n\n\006PAUSED\020\002B\016\n\014_tier_actionB\031\n\027_cooling" + + "_threshold_days*E\n\tProtocols\022\031\n\025PROTOCOL" + + "S_UNSPECIFIED\020\000\022\t\n\005NFSV3\020\001\022\t\n\005NFSV4\020\002\022\007\n" + + "\003SMB\020\003*W\n\nAccessType\022\033\n\027ACCESS_TYPE_UNSP" + + "ECIFIED\020\000\022\r\n\tREAD_ONLY\020\001\022\016\n\nREAD_WRITE\020\002" + + "\022\r\n\tREAD_NONE\020\003*\350\001\n\013SMBSettings\022\034\n\030SMB_S" + + "ETTINGS_UNSPECIFIED\020\000\022\020\n\014ENCRYPT_DATA\020\001\022" + + "\r\n\tBROWSABLE\020\002\022\021\n\rCHANGE_NOTIFY\020\003\022\021\n\rNON" + + "_BROWSABLE\020\004\022\013\n\007OPLOCKS\020\005\022\021\n\rSHOW_SNAPSH" + + "OT\020\006\022\032\n\026SHOW_PREVIOUS_VERSIONS\020\007\022\034\n\030ACCE" + + "SS_BASED_ENUMERATION\020\010\022\032\n\026CONTINUOUSLY_A" + + "VAILABLE\020\t*C\n\rSecurityStyle\022\036\n\032SECURITY_" + + "STYLE_UNSPECIFIED\020\000\022\010\n\004NTFS\020\001\022\010\n\004UNIX\020\002*" + + "A\n\020RestrictedAction\022!\n\035RESTRICTED_ACTION" + + "_UNSPECIFIED\020\000\022\n\n\006DELETE\020\001B\255\001\n\032com.googl" + + "e.cloud.netapp.v1B\013VolumeProtoP\001Z2cloud." + + "google.com/go/netapp/apiv1/netapppb;neta" + + "pppb\252\002\026Google.Cloud.NetApp.V1\312\002\026Google\\C" + + "loud\\NetApp\\V1\352\002\031Google::Cloud::NetApp::" + + "V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -375,7 +378,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HasReplication", "BackupConfig", "RestrictedActions", + "LargeCapacity", + "MultipleEndpoints", "TieringPolicy", + "ReplicaZone", + "Zone", }); internal_static_google_cloud_netapp_v1_Volume_LabelsEntry_descriptor = internal_static_google_cloud_netapp_v1_Volume_descriptor.getNestedTypes().get(0); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/active_directory.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/active_directory.proto index 5877d214578f..9f3d30273345 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/active_directory.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/active_directory.proto @@ -89,7 +89,10 @@ message CreateActiveDirectoryRequest { // Required. Fields of the to be created active directory. ActiveDirectory active_directory = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. ID of the active directory to create. + // Required. ID of the active directory to create. Must be unique within the + // parent resource. Must contain only letters, numbers, underscore and hyphen, + // with the first character a letter or underscore, the last a letter or + // underscore or a number, and a 63 character maximum. string active_directory_id = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -195,6 +198,9 @@ message ActiveDirectory { repeated string backup_operators = 12 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Users to be added to the Built-in Admininstrators group. + repeated string administrators = 22 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Domain users to be given the SeSecurityPrivilege. repeated string security_operators = 13 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto index 222f650c92be..4ee25fbb3fcf 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto @@ -199,10 +199,9 @@ message CreateBackupRequest { // Required. The ID to use for the backup. // The ID must be unique within the specified backupVault. - // This value must start with a lowercase letter followed by up to 62 - // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. - // Values that do not match this pattern will trigger an INVALID_ARGUMENT - // error. + // Must contain only letters, numbers, underscore and hyphen, with the first + // character a letter or underscore, the last a letter or underscore or a + // number, and a 63 character maximum. string backup_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. A backup resource diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_policy.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_policy.proto index 0e235fc74797..3bba8049a7b2 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_policy.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_policy.proto @@ -114,8 +114,9 @@ message CreateBackupPolicyRequest { // Required. The ID to use for the backup policy. // The ID must be unique within the specified location. - // This value must start with a lowercase letter followed by up to 62 - // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. + // Must contain only letters, numbers, underscore and hyphen, with the first + // character a letter or underscore, the last a letter or underscore or a + // number, and a 63 character maximum. string backup_policy_id = 3 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto index cb66f5060050..b59464908c06 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto @@ -142,11 +142,9 @@ message CreateBackupVaultRequest { // Required. The ID to use for the backupVault. // The ID must be unique within the specified location. - // The max supported length is 63 characters. - // This value must start with a lowercase letter followed by up to 62 - // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. - // Values that do not match this pattern will trigger an INVALID_ARGUMENT - // error. + // Must contain only letters, numbers, underscore and hyphen, with the first + // character a letter or underscore, the last a letter or underscore or a + // number, and a 63 character maximum. string backup_vault_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. A backupVault resource diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto index be50b5661f14..dc993d8910dc 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto @@ -86,9 +86,10 @@ message CreateKmsConfigRequest { } ]; - // Required. Id of the requesting KmsConfig - // If auto-generating Id server-side, remove this field and - // id from the method_signature of Create RPC + // Required. Id of the requesting KmsConfig. Must be unique within the parent + // resource. Must contain only letters, numbers, underscore and hyphen, with + // the first character a letter or underscore, the last a letter or underscore + // or a number, and a 63 character maximum. string kms_config_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The required parameters to create a new KmsConfig. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/replication.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/replication.proto index a8b626d68206..ea5be5f731b7 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/replication.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/replication.proto @@ -32,10 +32,11 @@ option ruby_package = "Google::Cloud::NetApp::V1"; // TransferStats reports all statistics related to replication transfer. message TransferStats { - // bytes trasferred so far in current transfer. + // Cumulative bytes trasferred so far for the replication relatinonship. optional int64 transfer_bytes = 1; - // Total time taken during transfer. + // Cumulative time taken across all transfers for the replication + // relationship. optional google.protobuf.Duration total_transfer_duration = 2; // Last transfer size in bytes. @@ -137,7 +138,7 @@ message Replication { // Destination volume is not receiving replication transfers. STOPPED = 3; - // Replication is in progress. + // Incremental replication is in progress. TRANSFERRING = 4; } @@ -293,9 +294,10 @@ message CreateReplicationRequest { // Required. A replication resource Replication replication = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. ID of the replication to create. - // This value must start with a lowercase letter followed by up to 62 - // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. + // Required. ID of the replication to create. Must be unique within the parent + // resource. Must contain only letters, numbers, underscore and hyphen, with + // the first character a letter or underscore, the last a letter or underscore + // or a number, and a 63 character maximum. string replication_id = 3 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/snapshot.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/snapshot.proto index 1c94af37a00e..9cdfa5a09ee5 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/snapshot.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/snapshot.proto @@ -92,9 +92,10 @@ message CreateSnapshotRequest { // Required. A snapshot resource Snapshot snapshot = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. ID of the snapshot to create. - // This value must start with a lowercase letter followed by up to 62 - // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. + // Required. ID of the snapshot to create. Must be unique within the parent + // resource. Must contain only letters, numbers, underscore and hyphen, with + // the first character a letter or underscore, the last a letter or underscore + // or a number, and a 63 character maximum. string snapshot_id = 3 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto index 6e12eeb7f688..0b2dc8c4da2a 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto @@ -88,9 +88,10 @@ message CreateStoragePoolRequest { } ]; - // Required. Id of the requesting storage pool - // If auto-generating Id server-side, remove this field and - // id from the method_signature of Create RPC + // Required. Id of the requesting storage pool. Must be unique within the + // parent resource. Must contain only letters, numbers, underscore and hyphen, + // with the first character a letter or underscore, the last a letter or + // underscore or a number, and a 63 character maximum. string storage_pool_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The required parameters to create a new storage pool. @@ -229,4 +230,10 @@ message StoragePool { // Deprecated. Used to allow SO pool to access AD or DNS server from other // regions. optional bool global_access_allowed = 17 [deprecated = true]; + + // Optional. Specifies the replica zone for regional storagePool. + string replica_zone = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the active zone for regional storagePool. + string zone = 21 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto index 49f3b11bf0ca..eaa25362d219 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto @@ -170,9 +170,10 @@ message CreateVolumeRequest { } ]; - // Required. Id of the requesting volume - // If auto-generating Id server-side, remove this field and - // Id from the method_signature of Create RPC + // Required. Id of the requesting volume. Must be unique within the parent + // resource. Must contain only letters, numbers, underscore and hyphen, with + // the first character a letter or underscore, the last a letter or underscore + // or a number, and a 63 character maximum. string volume_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The volume being created. @@ -384,8 +385,23 @@ message Volume { repeated RestrictedAction restricted_actions = 31 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Flag indicating if the volume will be a large capacity volume or + // a regular volume. + bool large_capacity = 32 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Flag indicating if the volume will have an IP address per node + // for volumes supporting multiple IP endpoints. Only the volume with + // large_capacity will be allowed to have multiple endpoints. + bool multiple_endpoints = 33 [(google.api.field_behavior) = OPTIONAL]; + // Tiering policy for the volume. optional TieringPolicy tiering_policy = 34; + + // Output only. Specifies the replica zone for regional volume. + string replica_zone = 36 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Specifies the active zone for regional volume. + string zone = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Defines the export policy for the volume. diff --git a/java-network-management/README.md b/java-network-management/README.md index c8e00928c149..d1558779706d 100644 --- a/java-network-management/README.md +++ b/java-network-management/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-network-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/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-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/ReachabilityServiceStubSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/ReachabilityServiceStubSettings.java index 02b345aa5dbc..5257940e61d3 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/ReachabilityServiceStubSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/ReachabilityServiceStubSettings.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; @@ -393,6 +394,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "networkmanagement.googleapis.com:443"; } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/ReachabilityServiceStubSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/ReachabilityServiceStubSettings.java index 2a796185676d..57559567526f 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/ReachabilityServiceStubSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/ReachabilityServiceStubSettings.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; @@ -394,6 +395,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "networkmanagement.googleapis.com:443"; } diff --git a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json index ec6d3524a311..989661d02d51 100644 --- a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json +++ b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json index 5ede347cfde2..7074c0a93e85 100644 --- a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json +++ b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-network-security/README.md b/java-network-security/README.md index c867fd62b1ca..bd711ef02b88 100644 --- a/java-network-security/README.md +++ b/java-network-security/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-network-security.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.49.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-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java index 8d728cf82826..d0fa3e8ae347 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.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; @@ -667,6 +668,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "networksecurity.googleapis.com:443"; } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java index 3e05d8965cee..a114d675ffb9 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.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; @@ -677,6 +678,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "networksecurity.googleapis.com:443"; } diff --git a/java-networkconnectivity/README.md b/java-networkconnectivity/README.md index f12ec6aeb0a3..d56e4d2cae55 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/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-networkconnectivity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.45.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-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java index 7fee6a075e29..cc805c3e7320 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.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; @@ -772,6 +773,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "networkconnectivity.googleapis.com:443"; } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java index aab705224ba6..31d4cc052662 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.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; @@ -349,6 +350,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "networkconnectivity.googleapis.com:443"; } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java index 4331bb2d2a60..a12579a3d03f 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.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; @@ -356,6 +357,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "networkconnectivity.googleapis.com:443"; } diff --git a/java-networkservices/README.md b/java-networkservices/README.md index 1c3993e61061..d161a6d2c509 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/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.cloud/google-cloud-networkservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.2.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-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStubSettings.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStubSettings.java index 70186bd9f970..bac111b40363 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStubSettings.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStubSettings.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; @@ -527,6 +528,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "networkservices.googleapis.com:443"; } diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java index 8c9b1b0c6801..cefc2d3e8965 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.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; @@ -1195,6 +1196,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "networkservices.googleapis.com:443"; } diff --git a/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json b/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json index 16327c0471ce..494868198f20 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json +++ b/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-notebooks/README.md b/java-notebooks/README.md index a043345fbf18..60123a404c17 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/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-notebooks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.44.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-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java index f1c06bc8c627..f2e063b6f10f 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.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; @@ -455,6 +456,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "notebooks.googleapis.com:443"; } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java index 1dcf68a7282a..b002c331c0a9 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.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; @@ -906,6 +907,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "notebooks.googleapis.com:443"; } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java index 8d896a9ebb29..af2d0e483a05 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.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; @@ -615,6 +616,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "notebooks.googleapis.com:443"; } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/NotebookServiceStubSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/NotebookServiceStubSettings.java index 9a1fc0014316..5cf9e75b4952 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/NotebookServiceStubSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/NotebookServiceStubSettings.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; @@ -447,6 +448,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "notebooks.googleapis.com:443"; } diff --git a/java-optimization/README.md b/java-optimization/README.md index 3d47acd55f56..857a72cf81ab 100644 --- a/java-optimization/README.md +++ b/java-optimization/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-optimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.44.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-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java index fba03a828276..5dd32a90517d 100644 --- a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java +++ b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -149,6 +150,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudoptimization.googleapis.com:443"; } diff --git a/java-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index 2783dcdde7b4..0d2718a201b7 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/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-orchestration-airflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.46.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-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/EnvironmentsStubSettings.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/EnvironmentsStubSettings.java index 87970ee38008..0c50f867ab89 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/EnvironmentsStubSettings.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/EnvironmentsStubSettings.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; @@ -681,6 +682,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "composer.googleapis.com:443"; } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/ImageVersionsStubSettings.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/ImageVersionsStubSettings.java index e3b59fe6d746..d8c692534419 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/ImageVersionsStubSettings.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/ImageVersionsStubSettings.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; @@ -197,6 +198,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "composer.googleapis.com:443"; } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/EnvironmentsStubSettings.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/EnvironmentsStubSettings.java index 92a22ea678c2..1208d7a71108 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/EnvironmentsStubSettings.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/EnvironmentsStubSettings.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; @@ -713,6 +714,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "composer.googleapis.com:443"; } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/ImageVersionsStubSettings.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/ImageVersionsStubSettings.java index c1cd10033770..268cc69be5e0 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/ImageVersionsStubSettings.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/ImageVersionsStubSettings.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; @@ -198,6 +199,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "composer.googleapis.com:443"; } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/resources/META-INF/native-image/com.google.cloud.orchestration.airflow.service.v1beta1/reflect-config.json b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/resources/META-INF/native-image/com.google.cloud.orchestration.airflow.service.v1beta1/reflect-config.json index db7e06abe5cf..99640192a1b6 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/resources/META-INF/native-image/com.google.cloud.orchestration.airflow.service.v1beta1/reflect-config.json +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/resources/META-INF/native-image/com.google.cloud.orchestration.airflow.service.v1beta1/reflect-config.json @@ -377,6 +377,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig$RetentionMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest", "queryAllDeclaredConstructors": true, diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/AirflowMetadataRetentionPolicyConfig.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/AirflowMetadataRetentionPolicyConfig.java new file mode 100644 index 000000000000..1ad19c48013d --- /dev/null +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/AirflowMetadataRetentionPolicyConfig.java @@ -0,0 +1,948 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/orchestration/airflow/service/v1beta1/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.orchestration.airflow.service.v1beta1; + +/** + * + * + *
        + * The policy for airflow metadata database retention.
        + * 
        + * + * Protobuf type {@code + * google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig} + */ +public final class AirflowMetadataRetentionPolicyConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig) + AirflowMetadataRetentionPolicyConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AirflowMetadataRetentionPolicyConfig.newBuilder() to construct. + private AirflowMetadataRetentionPolicyConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AirflowMetadataRetentionPolicyConfig() { + retentionMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AirflowMetadataRetentionPolicyConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsOuterClass + .internal_static_google_cloud_orchestration_airflow_service_v1beta1_AirflowMetadataRetentionPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsOuterClass + .internal_static_google_cloud_orchestration_airflow_service_v1beta1_AirflowMetadataRetentionPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.class, + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.Builder.class); + } + + /** + * + * + *
        +   * Describes retention policy.
        +   * 
        + * + * Protobuf enum {@code + * google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode} + */ + public enum RetentionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * Default mode doesn't change environment parameters.
        +     * 
        + * + * RETENTION_MODE_UNSPECIFIED = 0; + */ + RETENTION_MODE_UNSPECIFIED(0), + /** + * + * + *
        +     * Retention policy is enabled.
        +     * 
        + * + * RETENTION_MODE_ENABLED = 1; + */ + RETENTION_MODE_ENABLED(1), + /** + * + * + *
        +     * Retention policy is disabled.
        +     * 
        + * + * RETENTION_MODE_DISABLED = 2; + */ + RETENTION_MODE_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * Default mode doesn't change environment parameters.
        +     * 
        + * + * RETENTION_MODE_UNSPECIFIED = 0; + */ + public static final int RETENTION_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +     * Retention policy is enabled.
        +     * 
        + * + * RETENTION_MODE_ENABLED = 1; + */ + public static final int RETENTION_MODE_ENABLED_VALUE = 1; + /** + * + * + *
        +     * Retention policy is disabled.
        +     * 
        + * + * RETENTION_MODE_DISABLED = 2; + */ + public static final int RETENTION_MODE_DISABLED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RetentionMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RetentionMode forNumber(int value) { + switch (value) { + case 0: + return RETENTION_MODE_UNSPECIFIED; + case 1: + return RETENTION_MODE_ENABLED; + case 2: + return RETENTION_MODE_DISABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RetentionMode findValueByNumber(int number) { + return RetentionMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RetentionMode[] VALUES = values(); + + public static RetentionMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RetentionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode) + } + + public static final int RETENTION_MODE_FIELD_NUMBER = 1; + private int retentionMode_ = 0; + /** + * + * + *
        +   * Optional. Retention can be either enabled or disabled.
        +   * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode retention_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for retentionMode. + */ + @java.lang.Override + public int getRetentionModeValue() { + return retentionMode_; + } + /** + * + * + *
        +   * Optional. Retention can be either enabled or disabled.
        +   * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode retention_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionMode. + */ + @java.lang.Override + public com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + .RetentionMode + getRetentionMode() { + com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + .RetentionMode + result = + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.RetentionMode.forNumber(retentionMode_); + return result == null + ? com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.RetentionMode.UNRECOGNIZED + : result; + } + + public static final int RETENTION_DAYS_FIELD_NUMBER = 2; + private int retentionDays_ = 0; + /** + * + * + *
        +   * Optional. How many days data should be retained for.
        +   * 
        + * + * int32 retention_days = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The retentionDays. + */ + @java.lang.Override + public int getRetentionDays() { + return retentionDays_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (retentionMode_ + != com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.RetentionMode.RETENTION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, retentionMode_); + } + if (retentionDays_ != 0) { + output.writeInt32(2, retentionDays_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retentionMode_ + != com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.RetentionMode.RETENTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, retentionMode_); + } + if (retentionDays_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, retentionDays_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig)) { + return super.equals(obj); + } + com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + other = + (com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig) + obj; + + if (retentionMode_ != other.retentionMode_) return false; + if (getRetentionDays() != other.getRetentionDays()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RETENTION_MODE_FIELD_NUMBER; + hash = (53 * hash) + retentionMode_; + hash = (37 * hash) + RETENTION_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getRetentionDays(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * The policy for airflow metadata database retention.
        +   * 
        + * + * Protobuf type {@code + * google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig) + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsOuterClass + .internal_static_google_cloud_orchestration_airflow_service_v1beta1_AirflowMetadataRetentionPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsOuterClass + .internal_static_google_cloud_orchestration_airflow_service_v1beta1_AirflowMetadataRetentionPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.class, + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.Builder.class); + } + + // Construct using + // com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + retentionMode_ = 0; + retentionDays_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsOuterClass + .internal_static_google_cloud_orchestration_airflow_service_v1beta1_AirflowMetadataRetentionPolicyConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + getDefaultInstanceForType() { + return com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + build() { + com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + buildPartial() { + com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + result = + new com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.retentionMode_ = retentionMode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.retentionDays_ = retentionDays_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig) { + return mergeFrom( + (com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + other) { + if (other + == com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.getDefaultInstance()) return this; + if (other.retentionMode_ != 0) { + setRetentionModeValue(other.getRetentionModeValue()); + } + if (other.getRetentionDays() != 0) { + setRetentionDays(other.getRetentionDays()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + retentionMode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + retentionDays_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int retentionMode_ = 0; + /** + * + * + *
        +     * Optional. Retention can be either enabled or disabled.
        +     * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode retention_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for retentionMode. + */ + @java.lang.Override + public int getRetentionModeValue() { + return retentionMode_; + } + /** + * + * + *
        +     * Optional. Retention can be either enabled or disabled.
        +     * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode retention_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for retentionMode to set. + * @return This builder for chaining. + */ + public Builder setRetentionModeValue(int value) { + retentionMode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Retention can be either enabled or disabled.
        +     * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode retention_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionMode. + */ + @java.lang.Override + public com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.RetentionMode + getRetentionMode() { + com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + .RetentionMode + result = + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.RetentionMode.forNumber(retentionMode_); + return result == null + ? com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.RetentionMode.UNRECOGNIZED + : result; + } + /** + * + * + *
        +     * Optional. Retention can be either enabled or disabled.
        +     * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode retention_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The retentionMode to set. + * @return This builder for chaining. + */ + public Builder setRetentionMode( + com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + .RetentionMode + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + retentionMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Retention can be either enabled or disabled.
        +     * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode retention_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRetentionMode() { + bitField0_ = (bitField0_ & ~0x00000001); + retentionMode_ = 0; + onChanged(); + return this; + } + + private int retentionDays_; + /** + * + * + *
        +     * Optional. How many days data should be retained for.
        +     * 
        + * + * int32 retention_days = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The retentionDays. + */ + @java.lang.Override + public int getRetentionDays() { + return retentionDays_; + } + /** + * + * + *
        +     * Optional. How many days data should be retained for.
        +     * 
        + * + * int32 retention_days = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The retentionDays to set. + * @return This builder for chaining. + */ + public Builder setRetentionDays(int value) { + + retentionDays_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. How many days data should be retained for.
        +     * 
        + * + * int32 retention_days = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRetentionDays() { + bitField0_ = (bitField0_ & ~0x00000002); + retentionDays_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig) + private static final com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig(); + } + + public static com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AirflowMetadataRetentionPolicyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/AirflowMetadataRetentionPolicyConfigOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/AirflowMetadataRetentionPolicyConfigOrBuilder.java new file mode 100644 index 000000000000..e72ac3cf69b7 --- /dev/null +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/AirflowMetadataRetentionPolicyConfigOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/orchestration/airflow/service/v1beta1/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.orchestration.airflow.service.v1beta1; + +public interface AirflowMetadataRetentionPolicyConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. Retention can be either enabled or disabled.
        +   * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode retention_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for retentionMode. + */ + int getRetentionModeValue(); + /** + * + * + *
        +   * Optional. Retention can be either enabled or disabled.
        +   * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode retention_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionMode. + */ + com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + .RetentionMode + getRetentionMode(); + + /** + * + * + *
        +   * Optional. How many days data should be retained for.
        +   * 
        + * + * int32 retention_days = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The retentionDays. + */ + int getRetentionDays(); +} diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfig.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfig.java index a9666c20e9d2..d2215996aa6b 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfig.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfig.java @@ -63,6 +63,33 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; + public static final int AIRFLOW_DATABASE_RETENTION_DAYS_FIELD_NUMBER = 1; + private int airflowDatabaseRetentionDays_ = 0; + /** + * + * + *
        +   * Optional. The number of days describing for how long to store event-based
        +   * records in airflow database. If the retention mechanism is enabled this
        +   * value must be a positive integer otherwise, value should be set to 0.
        +   * 
        + * + * + * int32 airflow_database_retention_days = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.airflow_database_retention_days + * is deprecated. See + * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1889 + * @return The airflowDatabaseRetentionDays. + */ + @java.lang.Override + @java.lang.Deprecated + public int getAirflowDatabaseRetentionDays() { + return airflowDatabaseRetentionDays_; + } + public static final int TASK_LOGS_RETENTION_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig taskLogsRetentionConfig_; @@ -124,6 +151,69 @@ public boolean hasTaskLogsRetentionConfig() { : taskLogsRetentionConfig_; } + public static final int AIRFLOW_METADATA_RETENTION_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + airflowMetadataRetentionConfig_; + /** + * + * + *
        +   * Optional. The retention policy for airflow metadata database.
        +   * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the airflowMetadataRetentionConfig field is set. + */ + @java.lang.Override + public boolean hasAirflowMetadataRetentionConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +   * Optional. The retention policy for airflow metadata database.
        +   * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The airflowMetadataRetentionConfig. + */ + @java.lang.Override + public com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + getAirflowMetadataRetentionConfig() { + return airflowMetadataRetentionConfig_ == null + ? com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.getDefaultInstance() + : airflowMetadataRetentionConfig_; + } + /** + * + * + *
        +   * Optional. The retention policy for airflow metadata database.
        +   * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfigOrBuilder + getAirflowMetadataRetentionConfigOrBuilder() { + return airflowMetadataRetentionConfig_ == null + ? com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.getDefaultInstance() + : airflowMetadataRetentionConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -138,9 +228,15 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (airflowDatabaseRetentionDays_ != 0) { + output.writeInt32(1, airflowDatabaseRetentionDays_); + } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getTaskLogsRetentionConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getAirflowMetadataRetentionConfig()); + } getUnknownFields().writeTo(output); } @@ -150,10 +246,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (airflowDatabaseRetentionDays_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(1, airflowDatabaseRetentionDays_); + } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTaskLogsRetentionConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getAirflowMetadataRetentionConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -171,10 +276,17 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig other = (com.google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig) obj; + if (getAirflowDatabaseRetentionDays() != other.getAirflowDatabaseRetentionDays()) return false; if (hasTaskLogsRetentionConfig() != other.hasTaskLogsRetentionConfig()) return false; if (hasTaskLogsRetentionConfig()) { if (!getTaskLogsRetentionConfig().equals(other.getTaskLogsRetentionConfig())) return false; } + if (hasAirflowMetadataRetentionConfig() != other.hasAirflowMetadataRetentionConfig()) + return false; + if (hasAirflowMetadataRetentionConfig()) { + if (!getAirflowMetadataRetentionConfig().equals(other.getAirflowMetadataRetentionConfig())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,10 +298,16 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AIRFLOW_DATABASE_RETENTION_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getAirflowDatabaseRetentionDays(); if (hasTaskLogsRetentionConfig()) { hash = (37 * hash) + TASK_LOGS_RETENTION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getTaskLogsRetentionConfig().hashCode(); } + if (hasAirflowMetadataRetentionConfig()) { + hash = (37 * hash) + AIRFLOW_METADATA_RETENTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAirflowMetadataRetentionConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -340,6 +458,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTaskLogsRetentionConfigFieldBuilder(); + getAirflowMetadataRetentionConfigFieldBuilder(); } } @@ -347,11 +466,17 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + airflowDatabaseRetentionDays_ = 0; taskLogsRetentionConfig_ = null; if (taskLogsRetentionConfigBuilder_ != null) { taskLogsRetentionConfigBuilder_.dispose(); taskLogsRetentionConfigBuilder_ = null; } + airflowMetadataRetentionConfig_ = null; + if (airflowMetadataRetentionConfigBuilder_ != null) { + airflowMetadataRetentionConfigBuilder_.dispose(); + airflowMetadataRetentionConfigBuilder_ = null; + } return this; } @@ -393,14 +518,24 @@ public com.google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfi private void buildPartial0( com.google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig result) { int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { + result.airflowDatabaseRetentionDays_ = airflowDatabaseRetentionDays_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { result.taskLogsRetentionConfig_ = taskLogsRetentionConfigBuilder_ == null ? taskLogsRetentionConfig_ : taskLogsRetentionConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.airflowMetadataRetentionConfig_ = + airflowMetadataRetentionConfigBuilder_ == null + ? airflowMetadataRetentionConfig_ + : airflowMetadataRetentionConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -454,9 +589,15 @@ public Builder mergeFrom( if (other == com.google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig .getDefaultInstance()) return this; + if (other.getAirflowDatabaseRetentionDays() != 0) { + setAirflowDatabaseRetentionDays(other.getAirflowDatabaseRetentionDays()); + } if (other.hasTaskLogsRetentionConfig()) { mergeTaskLogsRetentionConfig(other.getTaskLogsRetentionConfig()); } + if (other.hasAirflowMetadataRetentionConfig()) { + mergeAirflowMetadataRetentionConfig(other.getAirflowMetadataRetentionConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -483,13 +624,27 @@ public Builder mergeFrom( case 0: done = true; break; + case 8: + { + airflowDatabaseRetentionDays_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 case 34: { input.readMessage( getTaskLogsRetentionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case 34 + case 42: + { + input.readMessage( + getAirflowMetadataRetentionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -509,6 +664,86 @@ public Builder mergeFrom( private int bitField0_; + private int airflowDatabaseRetentionDays_; + /** + * + * + *
        +     * Optional. The number of days describing for how long to store event-based
        +     * records in airflow database. If the retention mechanism is enabled this
        +     * value must be a positive integer otherwise, value should be set to 0.
        +     * 
        + * + * + * int32 airflow_database_retention_days = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.airflow_database_retention_days + * is deprecated. See + * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1889 + * @return The airflowDatabaseRetentionDays. + */ + @java.lang.Override + @java.lang.Deprecated + public int getAirflowDatabaseRetentionDays() { + return airflowDatabaseRetentionDays_; + } + /** + * + * + *
        +     * Optional. The number of days describing for how long to store event-based
        +     * records in airflow database. If the retention mechanism is enabled this
        +     * value must be a positive integer otherwise, value should be set to 0.
        +     * 
        + * + * + * int32 airflow_database_retention_days = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.airflow_database_retention_days + * is deprecated. See + * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1889 + * @param value The airflowDatabaseRetentionDays to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setAirflowDatabaseRetentionDays(int value) { + + airflowDatabaseRetentionDays_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. The number of days describing for how long to store event-based
        +     * records in airflow database. If the retention mechanism is enabled this
        +     * value must be a positive integer otherwise, value should be set to 0.
        +     * 
        + * + * + * int32 airflow_database_retention_days = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.airflow_database_retention_days + * is deprecated. See + * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1889 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearAirflowDatabaseRetentionDays() { + bitField0_ = (bitField0_ & ~0x00000001); + airflowDatabaseRetentionDays_ = 0; + onChanged(); + return this; + } + private com.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig taskLogsRetentionConfig_; private com.google.protobuf.SingleFieldBuilderV3< @@ -530,7 +765,7 @@ public Builder mergeFrom( * @return Whether the taskLogsRetentionConfig field is set. */ public boolean hasTaskLogsRetentionConfig() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -577,7 +812,7 @@ public Builder setTaskLogsRetentionConfig( } else { taskLogsRetentionConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -600,7 +835,7 @@ public Builder setTaskLogsRetentionConfig( } else { taskLogsRetentionConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -618,7 +853,7 @@ public Builder setTaskLogsRetentionConfig( public Builder mergeTaskLogsRetentionConfig( com.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig value) { if (taskLogsRetentionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) + if (((bitField0_ & 0x00000002) != 0) && taskLogsRetentionConfig_ != null && taskLogsRetentionConfig_ != com.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig @@ -631,7 +866,7 @@ public Builder mergeTaskLogsRetentionConfig( taskLogsRetentionConfigBuilder_.mergeFrom(value); } if (taskLogsRetentionConfig_ != null) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); } return this; @@ -648,7 +883,7 @@ public Builder mergeTaskLogsRetentionConfig( *
        */ public Builder clearTaskLogsRetentionConfig() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); taskLogsRetentionConfig_ = null; if (taskLogsRetentionConfigBuilder_ != null) { taskLogsRetentionConfigBuilder_.dispose(); @@ -670,7 +905,7 @@ public Builder clearTaskLogsRetentionConfig() { */ public com.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig.Builder getTaskLogsRetentionConfigBuilder() { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return getTaskLogsRetentionConfigFieldBuilder().getBuilder(); } @@ -726,6 +961,237 @@ public Builder clearTaskLogsRetentionConfig() { return taskLogsRetentionConfigBuilder_; } + private com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + airflowMetadataRetentionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig, + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.Builder, + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfigOrBuilder> + airflowMetadataRetentionConfigBuilder_; + /** + * + * + *
        +     * Optional. The retention policy for airflow metadata database.
        +     * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the airflowMetadataRetentionConfig field is set. + */ + public boolean hasAirflowMetadataRetentionConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
        +     * Optional. The retention policy for airflow metadata database.
        +     * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The airflowMetadataRetentionConfig. + */ + public com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig + getAirflowMetadataRetentionConfig() { + if (airflowMetadataRetentionConfigBuilder_ == null) { + return airflowMetadataRetentionConfig_ == null + ? com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.getDefaultInstance() + : airflowMetadataRetentionConfig_; + } else { + return airflowMetadataRetentionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. The retention policy for airflow metadata database.
        +     * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAirflowMetadataRetentionConfig( + com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + value) { + if (airflowMetadataRetentionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + airflowMetadataRetentionConfig_ = value; + } else { + airflowMetadataRetentionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. The retention policy for airflow metadata database.
        +     * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAirflowMetadataRetentionConfig( + com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + .Builder + builderForValue) { + if (airflowMetadataRetentionConfigBuilder_ == null) { + airflowMetadataRetentionConfig_ = builderForValue.build(); + } else { + airflowMetadataRetentionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. The retention policy for airflow metadata database.
        +     * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAirflowMetadataRetentionConfig( + com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + value) { + if (airflowMetadataRetentionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && airflowMetadataRetentionConfig_ != null + && airflowMetadataRetentionConfig_ + != com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.getDefaultInstance()) { + getAirflowMetadataRetentionConfigBuilder().mergeFrom(value); + } else { + airflowMetadataRetentionConfig_ = value; + } + } else { + airflowMetadataRetentionConfigBuilder_.mergeFrom(value); + } + if (airflowMetadataRetentionConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. The retention policy for airflow metadata database.
        +     * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAirflowMetadataRetentionConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + airflowMetadataRetentionConfig_ = null; + if (airflowMetadataRetentionConfigBuilder_ != null) { + airflowMetadataRetentionConfigBuilder_.dispose(); + airflowMetadataRetentionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. The retention policy for airflow metadata database.
        +     * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.Builder + getAirflowMetadataRetentionConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAirflowMetadataRetentionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. The retention policy for airflow metadata database.
        +     * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfigOrBuilder + getAirflowMetadataRetentionConfigOrBuilder() { + if (airflowMetadataRetentionConfigBuilder_ != null) { + return airflowMetadataRetentionConfigBuilder_.getMessageOrBuilder(); + } else { + return airflowMetadataRetentionConfig_ == null + ? com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.getDefaultInstance() + : airflowMetadataRetentionConfig_; + } + } + /** + * + * + *
        +     * Optional. The retention policy for airflow metadata database.
        +     * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig, + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.Builder, + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfigOrBuilder> + getAirflowMetadataRetentionConfigFieldBuilder() { + if (airflowMetadataRetentionConfigBuilder_ == null) { + airflowMetadataRetentionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig, + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfig.Builder, + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfigOrBuilder>( + getAirflowMetadataRetentionConfig(), getParentForChildren(), isClean()); + airflowMetadataRetentionConfig_ = null; + } + return airflowMetadataRetentionConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfigOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfigOrBuilder.java index 34723467b8ac..1be6a07d4fad 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfigOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfigOrBuilder.java @@ -24,6 +24,28 @@ public interface DataRetentionConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
        +   * Optional. The number of days describing for how long to store event-based
        +   * records in airflow database. If the retention mechanism is enabled this
        +   * value must be a positive integer otherwise, value should be set to 0.
        +   * 
        + * + * + * int32 airflow_database_retention_days = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.airflow_database_retention_days + * is deprecated. See + * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1889 + * @return The airflowDatabaseRetentionDays. + */ + @java.lang.Deprecated + int getAirflowDatabaseRetentionDays(); + /** * * @@ -66,4 +88,48 @@ public interface DataRetentionConfigOrBuilder */ com.google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfigOrBuilder getTaskLogsRetentionConfigOrBuilder(); + + /** + * + * + *
        +   * Optional. The retention policy for airflow metadata database.
        +   * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the airflowMetadataRetentionConfig field is set. + */ + boolean hasAirflowMetadataRetentionConfig(); + /** + * + * + *
        +   * Optional. The retention policy for airflow metadata database.
        +   * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The airflowMetadataRetentionConfig. + */ + com.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig + getAirflowMetadataRetentionConfig(); + /** + * + * + *
        +   * Optional. The retention policy for airflow metadata database.
        +   * 
        + * + * + * .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.orchestration.airflow.service.v1beta1 + .AirflowMetadataRetentionPolicyConfigOrBuilder + getAirflowMetadataRetentionConfigOrBuilder(); } diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfig.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfig.java index 32dff0e87d3e..246468ddaeb1 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfig.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfig.java @@ -1087,8 +1087,9 @@ public boolean hasEncryptionConfig() { * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * @@ -1117,8 +1118,9 @@ public boolean hasMaintenanceWindow() { * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * @@ -1151,8 +1153,9 @@ public boolean hasMaintenanceWindow() { * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * @@ -4617,8 +4620,9 @@ public Builder clearEncryptionConfig() { * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * @@ -4646,8 +4650,9 @@ public boolean hasMaintenanceWindow() { * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * @@ -4683,8 +4688,9 @@ public boolean hasMaintenanceWindow() { * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * @@ -4721,8 +4727,9 @@ public Builder setMaintenanceWindow( * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * @@ -4757,8 +4764,9 @@ public Builder setMaintenanceWindow( * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * @@ -4802,8 +4810,9 @@ public Builder mergeMaintenanceWindow( * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * @@ -4836,8 +4845,9 @@ public Builder clearMaintenanceWindow() { * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * @@ -4866,8 +4876,9 @@ public Builder clearMaintenanceWindow() { * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * @@ -4901,8 +4912,9 @@ public Builder clearMaintenanceWindow() { * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfigOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfigOrBuilder.java index 3475c497a08a..f502577f40f4 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfigOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfigOrBuilder.java @@ -488,8 +488,9 @@ public interface EnvironmentConfigOrBuilder * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * @@ -515,8 +516,9 @@ public interface EnvironmentConfigOrBuilder * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * @@ -542,8 +544,9 @@ public interface EnvironmentConfigOrBuilder * This may be split into multiple chunks, each with a size of * at least 4 hours. * - * If this value is omitted, Cloud Composer components may be subject to - * maintenance at any time. + * If this value is omitted, the default value for maintenance window is + * applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + * (GMT) on Friday, Saturday, and Sunday every week. * * * diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsOuterClass.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsOuterClass.java index d1eff9420bb2..dd85bcac7a90 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsOuterClass.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsOuterClass.java @@ -296,6 +296,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_orchestration_airflow_service_v1beta1_TaskLogsRetentionConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_orchestration_airflow_service_v1beta1_TaskLogsRetentionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_orchestration_airflow_service_v1beta1_AirflowMetadataRetentionPolicyConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_orchestration_airflow_service_v1beta1_AirflowMetadataRetentionPolicyConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_orchestration_airflow_service_v1beta1_StorageConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -664,262 +668,275 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002B\003\340A\001\022\026\n\tmemory_gb\030\003 \001(\002B\003\340A\001\032m\n\024DagPro" + "cessorResource\022\020\n\003cpu\030\001 \001(\002B\003\340A\001\022\026\n\tmemo" + "ry_gb\030\002 \001(\002B\003\340A\001\022\027\n\nstorage_gb\030\003 \001(\002B\003\340A" - + "\001\022\022\n\005count\030\004 \001(\005B\003\340A\001\"\213\001\n\023DataRetentionC" - + "onfig\022t\n\032task_logs_retention_config\030\004 \001(" - + "\0132K.google.cloud.orchestration.airflow.s" - + "ervice.v1beta1.TaskLogsRetentionConfigB\003" - + "\340A\001\"\221\002\n\027TaskLogsRetentionConfig\022z\n\014stora" - + "ge_mode\030\002 \001(\0162_.google.cloud.orchestrati" - + "on.airflow.service.v1beta1.TaskLogsReten" - + "tionConfig.TaskLogsStorageModeB\003\340A\001\"z\n\023T" - + "askLogsStorageMode\022&\n\"TASK_LOGS_STORAGE_" - + "MODE_UNSPECIFIED\020\000\022#\n\037CLOUD_LOGGING_AND_" - + "CLOUD_STORAGE\020\001\022\026\n\022CLOUD_LOGGING_ONLY\020\002\"" - + "$\n\rStorageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\001\"\207\001" - + "\n\016RecoveryConfig\022u\n\032scheduled_snapshots_" - + "config\030\001 \001(\0132L.google.cloud.orchestratio" - + "n.airflow.service.v1beta1.ScheduledSnaps" - + "hotsConfigB\003\340A\001\"\221\001\n\030ScheduledSnapshotsCo" - + "nfig\022\024\n\007enabled\030\001 \001(\010B\003\340A\001\022\036\n\021snapshot_l" - + "ocation\030\006 \001(\tB\003\340A\001\022\'\n\032snapshot_creation_" - + "schedule\030\003 \001(\tB\003\340A\001\022\026\n\ttime_zone\030\005 \001(\tB\003" - + "\340A\001\"\333\001\n\036MasterAuthorizedNetworksConfig\022\017" - + "\n\007enabled\030\001 \001(\010\022q\n\013cidr_blocks\030\002 \003(\0132\\.g" - + "oogle.cloud.orchestration.airflow.servic" - + "e.v1beta1.MasterAuthorizedNetworksConfig" - + ".CidrBlock\0325\n\tCidrBlock\022\024\n\014display_name\030" - + "\001 \001(\t\022\022\n\ncidr_block\030\002 \001(\t\"3\n\033CloudDataLi" - + "neageIntegration\022\024\n\007enabled\030\001 \001(\010B\003\340A\001\"\244" - + "\006\n\013Environment\022\014\n\004name\030\001 \001(\t\022U\n\006config\030\002" - + " \001(\0132E.google.cloud.orchestration.airflo" - + "w.service.v1beta1.EnvironmentConfig\022\021\n\004u" - + "uid\030\003 \001(\tB\003\340A\003\022T\n\005state\030\004 \001(\0162E.google.c" + + "\001\022\022\n\005count\030\004 \001(\005B\003\340A\001\"\306\002\n\023DataRetentionC" + + "onfig\022.\n\037airflow_database_retention_days" + + "\030\001 \001(\005B\005\030\001\340A\001\022t\n\032task_logs_retention_con" + + "fig\030\004 \001(\0132K.google.cloud.orchestration.a" + + "irflow.service.v1beta1.TaskLogsRetention" + + "ConfigB\003\340A\001\022\210\001\n!airflow_metadata_retenti" + + "on_config\030\005 \001(\0132X.google.cloud.orchestra" + + "tion.airflow.service.v1beta1.AirflowMeta" + + "dataRetentionPolicyConfigB\003\340A\001\"\221\002\n\027TaskL" + + "ogsRetentionConfig\022z\n\014storage_mode\030\002 \001(\016" + + "2_.google.cloud.orchestration.airflow.se" + + "rvice.v1beta1.TaskLogsRetentionConfig.Ta" + + "skLogsStorageModeB\003\340A\001\"z\n\023TaskLogsStorag" + + "eMode\022&\n\"TASK_LOGS_STORAGE_MODE_UNSPECIF" + + "IED\020\000\022#\n\037CLOUD_LOGGING_AND_CLOUD_STORAGE" + + "\020\001\022\026\n\022CLOUD_LOGGING_ONLY\020\002\"\263\002\n$AirflowMe" + + "tadataRetentionPolicyConfig\022\203\001\n\016retentio" + + "n_mode\030\001 \001(\0162f.google.cloud.orchestratio" + + "n.airflow.service.v1beta1.AirflowMetadat" + + "aRetentionPolicyConfig.RetentionModeB\003\340A" + + "\001\022\033\n\016retention_days\030\002 \001(\005B\003\340A\001\"h\n\rRetent" + + "ionMode\022\036\n\032RETENTION_MODE_UNSPECIFIED\020\000\022" + + "\032\n\026RETENTION_MODE_ENABLED\020\001\022\033\n\027RETENTION" + + "_MODE_DISABLED\020\002\"$\n\rStorageConfig\022\023\n\006buc" + + "ket\030\001 \001(\tB\003\340A\001\"\207\001\n\016RecoveryConfig\022u\n\032sch" + + "eduled_snapshots_config\030\001 \001(\0132L.google.c" + "loud.orchestration.airflow.service.v1bet" - + "a1.Environment.State\0224\n\013create_time\030\005 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" - + "date_time\030\006 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\022`\n\006labels\030\007 \003(\0132K.google.cloud." - + "orchestration.airflow.service.v1beta1.En" - + "vironment.LabelsEntryB\003\340A\001\022\032\n\rsatisfies_" - + "pzs\030\010 \001(\010B\003\340A\003\022^\n\016storage_config\030\t \001(\0132A" - + ".google.cloud.orchestration.airflow.serv" - + "ice.v1beta1.StorageConfigB\003\340A\001\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATIN" - + "G\020\001\022\013\n\007RUNNING\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETI" - + "NG\020\004\022\t\n\005ERROR\020\005:l\352Ai\n#composer.googleapi" - + "s.com/Environment\022Bprojects/{project}/lo" - + "cations/{location}/environments/{environ" - + "ment}\"A\n\023CheckUpgradeRequest\022\023\n\013environm" - + "ent\030\001 \001(\t\022\025\n\rimage_version\030\002 \001(\t\"\204\004\n\024Che" - + "ckUpgradeResponse\022\032\n\rbuild_log_uri\030\001 \001(\t" - + "B\003\340A\003\022\204\001\n\036contains_pypi_modules_conflict" - + "\030\004 \001(\0162W.google.cloud.orchestration.airf" - + "low.service.v1beta1.CheckUpgradeResponse" - + ".ConflictResultB\003\340A\003\022,\n\037pypi_conflict_bu" - + "ild_log_extract\030\003 \001(\tB\003\340A\003\022\025\n\rimage_vers" - + "ion\030\005 \001(\t\022y\n\021pypi_dependencies\030\006 \003(\0132^.g" - + "oogle.cloud.orchestration.airflow.servic" - + "e.v1beta1.CheckUpgradeResponse.PypiDepen" - + "denciesEntry\0327\n\025PypiDependenciesEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"P\n\016Conflic" - + "tResult\022\037\n\033CONFLICT_RESULT_UNSPECIFIED\020\000" - + "\022\014\n\010CONFLICT\020\001\022\017\n\013NO_CONFLICT\020\0022\345;\n\014Envi" - + "ronments\022\270\002\n\021CreateEnvironment\022L.google." + + "a1.ScheduledSnapshotsConfigB\003\340A\001\"\221\001\n\030Sch" + + "eduledSnapshotsConfig\022\024\n\007enabled\030\001 \001(\010B\003" + + "\340A\001\022\036\n\021snapshot_location\030\006 \001(\tB\003\340A\001\022\'\n\032s" + + "napshot_creation_schedule\030\003 \001(\tB\003\340A\001\022\026\n\t" + + "time_zone\030\005 \001(\tB\003\340A\001\"\333\001\n\036MasterAuthorize" + + "dNetworksConfig\022\017\n\007enabled\030\001 \001(\010\022q\n\013cidr" + + "_blocks\030\002 \003(\0132\\.google.cloud.orchestrati" + + "on.airflow.service.v1beta1.MasterAuthori" + + "zedNetworksConfig.CidrBlock\0325\n\tCidrBlock" + + "\022\024\n\014display_name\030\001 \001(\t\022\022\n\ncidr_block\030\002 \001" + + "(\t\"3\n\033CloudDataLineageIntegration\022\024\n\007ena" + + "bled\030\001 \001(\010B\003\340A\001\"\244\006\n\013Environment\022\014\n\004name\030" + + "\001 \001(\t\022U\n\006config\030\002 \001(\0132E.google.cloud.orc" + + "hestration.airflow.service.v1beta1.Envir" + + "onmentConfig\022\021\n\004uuid\030\003 \001(\tB\003\340A\003\022T\n\005state" + + "\030\004 \001(\0162E.google.cloud.orchestration.airf" + + "low.service.v1beta1.Environment.State\0224\n" + + "\013create_time\030\005 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022`\n\006labels\030\007 \003(" + + "\0132K.google.cloud.orchestration.airflow.s" + + "ervice.v1beta1.Environment.LabelsEntryB\003" + + "\340A\001\022\032\n\rsatisfies_pzs\030\010 \001(\010B\003\340A\003\022^\n\016stora" + + "ge_config\030\t \001(\0132A.google.cloud.orchestra" + + "tion.airflow.service.v1beta1.StorageConf" + + "igB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"`\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\014\n\010UPD" + + "ATING\020\003\022\014\n\010DELETING\020\004\022\t\n\005ERROR\020\005:l\352Ai\n#c" + + "omposer.googleapis.com/Environment\022Bproj" + + "ects/{project}/locations/{location}/envi" + + "ronments/{environment}\"A\n\023CheckUpgradeRe" + + "quest\022\023\n\013environment\030\001 \001(\t\022\025\n\rimage_vers" + + "ion\030\002 \001(\t\"\204\004\n\024CheckUpgradeResponse\022\032\n\rbu" + + "ild_log_uri\030\001 \001(\tB\003\340A\003\022\204\001\n\036contains_pypi" + + "_modules_conflict\030\004 \001(\0162W.google.cloud.o" + + "rchestration.airflow.service.v1beta1.Che" + + "ckUpgradeResponse.ConflictResultB\003\340A\003\022,\n" + + "\037pypi_conflict_build_log_extract\030\003 \001(\tB\003" + + "\340A\003\022\025\n\rimage_version\030\005 \001(\t\022y\n\021pypi_depen" + + "dencies\030\006 \003(\0132^.google.cloud.orchestrati" + + "on.airflow.service.v1beta1.CheckUpgradeR" + + "esponse.PypiDependenciesEntry\0327\n\025PypiDep" + + "endenciesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"P\n\016ConflictResult\022\037\n\033CONFLICT_RES" + + "ULT_UNSPECIFIED\020\000\022\014\n\010CONFLICT\020\001\022\017\n\013NO_CO" + + "NFLICT\020\0022\345;\n\014Environments\022\270\002\n\021CreateEnvi" + + "ronment\022L.google.cloud.orchestration.air" + + "flow.service.v1beta1.CreateEnvironmentRe" + + "quest\032\035.google.longrunning.Operation\"\265\001\312" + + "AS\n\013Environment\022Dgoogle.cloud.orchestrat" + + "ion.airflow.service.v1beta1.OperationMet" + + "adata\332A\022parent,environment\202\323\344\223\002D\"5/v1bet" + + "a1/{parent=projects/*/locations/*}/envir" + + "onments:\013environment\022\342\001\n\016GetEnvironment\022" + + "I.google.cloud.orchestration.airflow.ser" + + "vice.v1beta1.GetEnvironmentRequest\032?.goo" + + "gle.cloud.orchestration.airflow.service.", + "v1beta1.Environment\"D\332A\004name\202\323\344\223\0027\0225/v1b" + + "eta1/{name=projects/*/locations/*/enviro" + + "nments/*}\022\365\001\n\020ListEnvironments\022K.google." + "cloud.orchestration.airflow.service.v1be" - + "ta1.CreateEnvironmentRequest\032\035.google.lo" - + "ngrunning.Operation\"\265\001\312AS\n\013Environment\022D" - + "google.cloud.orchestration.airflow.servi" - + "ce.v1beta1.OperationMetadata\332A\022parent,en" - + "vironment\202\323\344\223\002D\"5/v1beta1/{parent=projec" - + "ts/*/locations/*}/environments:\013environm" - + "ent\022\342\001\n\016GetEnvironment\022I.google.cloud.or" - + "chestration.airflow.service.v1beta1.GetE" - + "nvironmentRequest\032?.google.cloud.orchest" - + "ration.airflow.service.v1beta1.Environme" - + "nt\"D\332A\004name\202\323\344\223\0027\0225/v1beta1/{name=projec" - + "ts/*/locations/*/environments/*}\022\365\001\n\020Lis" - + "tEnvironments\022K.google.cloud.orchestrati" - + "on.airflow.service.v1beta1.ListEnvironme" - + "ntsRequest\032L.google.cloud.orchestration." - + "airflow.service.v1beta1.ListEnvironments" - + "Response\"F\332A\006parent\202\323\344\223\0027\0225/v1beta1/{par" - + "ent=projects/*/locations/*}/environments" - + "\022\302\002\n\021UpdateEnvironment\022L.google.cloud.or" - + "chestration.airflow.service.v1beta1.Upda" - + "teEnvironmentRequest\032\035.google.longrunnin" - + "g.Operation\"\277\001\312AS\n\013Environment\022Dgoogle.c", - "loud.orchestration.airflow.service.v1bet" - + "a1.OperationMetadata\332A\034name,environment," - + "update_mask\202\323\344\223\002D25/v1beta1/{name=projec" - + "ts/*/locations/*/environments/*}:\013enviro" - + "nment\022\247\002\n\021DeleteEnvironment\022L.google.clo" + + "ta1.ListEnvironmentsRequest\032L.google.clo" + "ud.orchestration.airflow.service.v1beta1" - + ".DeleteEnvironmentRequest\032\035.google.longr" - + "unning.Operation\"\244\001\312A]\n\025google.protobuf." - + "Empty\022Dgoogle.cloud.orchestration.airflo" - + "w.service.v1beta1.OperationMetadata\332A\004na" - + "me\202\323\344\223\0027*5/v1beta1/{name=projects/*/loca" - + "tions/*/environments/*}\022\250\002\n\020RestartWebSe" - + "rver\022K.google.cloud.orchestration.airflo" - + "w.service.v1beta1.RestartWebServerReques" - + "t\032\035.google.longrunning.Operation\"\247\001\312AS\n\013" - + "Environment\022Dgoogle.cloud.orchestration." - + "airflow.service.v1beta1.OperationMetadat" - + "a\202\323\344\223\002K\"F/v1beta1/{name=projects/*/locat" - + "ions/*/environments/*}:restartWebServer:" - + "\001*\022\340\002\n\014CheckUpgrade\022G.google.cloud.orche" - + "stration.airflow.service.v1beta1.CheckUp" - + "gradeRequest\032\035.google.longrunning.Operat" - + "ion\"\347\001\312A\217\001\nGgoogle.cloud.orchestration.a" - + "irflow.service.v1beta1.CheckUpgradeRespo" - + "nse\022Dgoogle.cloud.orchestration.airflow." - + "service.v1beta1.OperationMetadata\202\323\344\223\002N\"" - + "I/v1beta1/{environment=projects/*/locati" - + "ons/*/environments/*}:checkUpgrade:\001*\022\233\002" - + "\n\025ExecuteAirflowCommand\022P.google.cloud.o" - + "rchestration.airflow.service.v1beta1.Exe" - + "cuteAirflowCommandRequest\032Q.google.cloud" - + ".orchestration.airflow.service.v1beta1.E" - + "xecuteAirflowCommandResponse\"]\202\323\344\223\002W\"R/v" - + "1beta1/{environment=projects/*/locations" - + "/*/environments/*}:executeAirflowCommand" - + ":\001*\022\217\002\n\022StopAirflowCommand\022M.google.clou" + + ".ListEnvironmentsResponse\"F\332A\006parent\202\323\344\223" + + "\0027\0225/v1beta1/{parent=projects/*/location" + + "s/*}/environments\022\302\002\n\021UpdateEnvironment\022" + + "L.google.cloud.orchestration.airflow.ser" + + "vice.v1beta1.UpdateEnvironmentRequest\032\035." + + "google.longrunning.Operation\"\277\001\312AS\n\013Envi" + + "ronment\022Dgoogle.cloud.orchestration.airf" + + "low.service.v1beta1.OperationMetadata\332A\034" + + "name,environment,update_mask\202\323\344\223\002D25/v1b" + + "eta1/{name=projects/*/locations/*/enviro" + + "nments/*}:\013environment\022\247\002\n\021DeleteEnviron" + + "ment\022L.google.cloud.orchestration.airflo" + + "w.service.v1beta1.DeleteEnvironmentReque" + + "st\032\035.google.longrunning.Operation\"\244\001\312A]\n" + + "\025google.protobuf.Empty\022Dgoogle.cloud.orc" + + "hestration.airflow.service.v1beta1.Opera" + + "tionMetadata\332A\004name\202\323\344\223\0027*5/v1beta1/{nam" + + "e=projects/*/locations/*/environments/*}" + + "\022\250\002\n\020RestartWebServer\022K.google.cloud.orc" + + "hestration.airflow.service.v1beta1.Resta" + + "rtWebServerRequest\032\035.google.longrunning." + + "Operation\"\247\001\312AS\n\013Environment\022Dgoogle.clo" + + "ud.orchestration.airflow.service.v1beta1" + + ".OperationMetadata\202\323\344\223\002K\"F/v1beta1/{name" + + "=projects/*/locations/*/environments/*}:" + + "restartWebServer:\001*\022\340\002\n\014CheckUpgrade\022G.g" + + "oogle.cloud.orchestration.airflow.servic" + + "e.v1beta1.CheckUpgradeRequest\032\035.google.l" + + "ongrunning.Operation\"\347\001\312A\217\001\nGgoogle.clou" + "d.orchestration.airflow.service.v1beta1." - + "StopAirflowCommandRequest\032N.google.cloud" - + ".orchestration.airflow.service.v1beta1.S" - + "topAirflowCommandResponse\"Z\202\323\344\223\002T\"O/v1be" - + "ta1/{environment=projects/*/locations/*/" - + "environments/*}:stopAirflowCommand:\001*\022\217\002" - + "\n\022PollAirflowCommand\022M.google.cloud.orch" - + "estration.airflow.service.v1beta1.PollAi" - + "rflowCommandRequest\032N.google.cloud.orche" - + "stration.airflow.service.v1beta1.PollAir" - + "flowCommandResponse\"Z\202\323\344\223\002T\"O/v1beta1/{e" - + "nvironment=projects/*/locations/*/enviro" - + "nments/*}:pollAirflowCommand:\001*\022\370\001\n\rList" - + "Workloads\022H.google.cloud.orchestration.a" - + "irflow.service.v1beta1.ListWorkloadsRequ" - + "est\032I.google.cloud.orchestration.airflow" - + ".service.v1beta1.ListWorkloadsResponse\"R" - + "\332A\006parent\202\323\344\223\002C\022A/v1beta1/{parent=projec" - + "ts/*/locations/*/environments/*}/workloa" - + "ds\022\307\002\n\031CreateUserWorkloadsSecret\022T.googl" - + "e.cloud.orchestration.airflow.service.v1" - + "beta1.CreateUserWorkloadsSecretRequest\032G" - + ".google.cloud.orchestration.airflow.serv" - + "ice.v1beta1.UserWorkloadsSecret\"\212\001\332A\034par" - + "ent,user_workloads_secret\202\323\344\223\002e\"L/v1beta" - + "1/{parent=projects/*/locations/*/environ" - + "ments/*}/userWorkloadsSecrets:\025user_work" - + "loads_secret\022\221\002\n\026GetUserWorkloadsSecret\022" - + "Q.google.cloud.orchestration.airflow.ser" - + "vice.v1beta1.GetUserWorkloadsSecretReque" - + "st\032G.google.cloud.orchestration.airflow." - + "service.v1beta1.UserWorkloadsSecret\"[\332A\004" - + "name\202\323\344\223\002N\022L/v1beta1/{name=projects/*/lo" - + "cations/*/environments/*/userWorkloadsSe" - + "crets/*}\022\244\002\n\030ListUserWorkloadsSecrets\022S." + + "CheckUpgradeResponse\022Dgoogle.cloud.orche" + + "stration.airflow.service.v1beta1.Operati" + + "onMetadata\202\323\344\223\002N\"I/v1beta1/{environment=" + + "projects/*/locations/*/environments/*}:c" + + "heckUpgrade:\001*\022\233\002\n\025ExecuteAirflowCommand" + + "\022P.google.cloud.orchestration.airflow.se" + + "rvice.v1beta1.ExecuteAirflowCommandReque" + + "st\032Q.google.cloud.orchestration.airflow." + + "service.v1beta1.ExecuteAirflowCommandRes" + + "ponse\"]\202\323\344\223\002W\"R/v1beta1/{environment=pro" + + "jects/*/locations/*/environments/*}:exec" + + "uteAirflowCommand:\001*\022\217\002\n\022StopAirflowComm" + + "and\022M.google.cloud.orchestration.airflow" + + ".service.v1beta1.StopAirflowCommandReque" + + "st\032N.google.cloud.orchestration.airflow." + + "service.v1beta1.StopAirflowCommandRespon" + + "se\"Z\202\323\344\223\002T\"O/v1beta1/{environment=projec" + + "ts/*/locations/*/environments/*}:stopAir" + + "flowCommand:\001*\022\217\002\n\022PollAirflowCommand\022M." + "google.cloud.orchestration.airflow.servi" - + "ce.v1beta1.ListUserWorkloadsSecretsReque" - + "st\032T.google.cloud.orchestration.airflow." - + "service.v1beta1.ListUserWorkloadsSecrets" - + "Response\"]\332A\006parent\202\323\344\223\002N\022L/v1beta1/{par" - + "ent=projects/*/locations/*/environments/" - + "*}/userWorkloadsSecrets\022\326\002\n\031UpdateUserWo" - + "rkloadsSecret\022T.google.cloud.orchestrati" - + "on.airflow.service.v1beta1.UpdateUserWor" + + "ce.v1beta1.PollAirflowCommandRequest\032N.g" + + "oogle.cloud.orchestration.airflow.servic" + + "e.v1beta1.PollAirflowCommandResponse\"Z\202\323" + + "\344\223\002T\"O/v1beta1/{environment=projects/*/l" + + "ocations/*/environments/*}:pollAirflowCo" + + "mmand:\001*\022\370\001\n\rListWorkloads\022H.google.clou" + + "d.orchestration.airflow.service.v1beta1." + + "ListWorkloadsRequest\032I.google.cloud.orch" + + "estration.airflow.service.v1beta1.ListWo" + + "rkloadsResponse\"R\332A\006parent\202\323\344\223\002C\022A/v1bet" + + "a1/{parent=projects/*/locations/*/enviro" + + "nments/*}/workloads\022\307\002\n\031CreateUserWorklo" + + "adsSecret\022T.google.cloud.orchestration.a" + + "irflow.service.v1beta1.CreateUserWorkloa" + + "dsSecretRequest\032G.google.cloud.orchestra" + + "tion.airflow.service.v1beta1.UserWorkloa" + + "dsSecret\"\212\001\332A\034parent,user_workloads_secr" + + "et\202\323\344\223\002e\"L/v1beta1/{parent=projects/*/lo" + + "cations/*/environments/*}/userWorkloadsS" + + "ecrets:\025user_workloads_secret\022\221\002\n\026GetUse" + + "rWorkloadsSecret\022Q.google.cloud.orchestr" + + "ation.airflow.service.v1beta1.GetUserWor" + "kloadsSecretRequest\032G.google.cloud.orche" + "stration.airflow.service.v1beta1.UserWor" - + "kloadsSecret\"\231\001\332A\025user_workloads_secret\202" - + "\323\344\223\002{\032b/v1beta1/{user_workloads_secret.n" + + "kloadsSecret\"[\332A\004name\202\323\344\223\002N\022L/v1beta1/{n" + "ame=projects/*/locations/*/environments/" - + "*/userWorkloadsSecrets/*}:\025user_workload" - + "s_secret\022\346\001\n\031DeleteUserWorkloadsSecret\022T" + + "*/userWorkloadsSecrets/*}\022\244\002\n\030ListUserWo" + + "rkloadsSecrets\022S.google.cloud.orchestrat" + + "ion.airflow.service.v1beta1.ListUserWork" + + "loadsSecretsRequest\032T.google.cloud.orche" + + "stration.airflow.service.v1beta1.ListUse" + + "rWorkloadsSecretsResponse\"]\332A\006parent\202\323\344\223" + + "\002N\022L/v1beta1/{parent=projects/*/location" + + "s/*/environments/*}/userWorkloadsSecrets" + + "\022\326\002\n\031UpdateUserWorkloadsSecret\022T.google." + + "cloud.orchestration.airflow.service.v1be" + + "ta1.UpdateUserWorkloadsSecretRequest\032G.g" + + "oogle.cloud.orchestration.airflow.servic" + + "e.v1beta1.UserWorkloadsSecret\"\231\001\332A\025user_" + + "workloads_secret\202\323\344\223\002{\032b/v1beta1/{user_w" + + "orkloads_secret.name=projects/*/location" + + "s/*/environments/*/userWorkloadsSecrets/" + + "*}:\025user_workloads_secret\022\346\001\n\031DeleteUser" + + "WorkloadsSecret\022T.google.cloud.orchestra" + + "tion.airflow.service.v1beta1.DeleteUserW" + + "orkloadsSecretRequest\032\026.google.protobuf." + + "Empty\"[\332A\004name\202\323\344\223\002N*L/v1beta1/{name=pro" + + "jects/*/locations/*/environments/*/userW" + + "orkloadsSecrets/*}\022\333\002\n\034CreateUserWorkloa" + + "dsConfigMap\022W.google.cloud.orchestration" + + ".airflow.service.v1beta1.CreateUserWorkl" + + "oadsConfigMapRequest\032J.google.cloud.orch" + + "estration.airflow.service.v1beta1.UserWo" + + "rkloadsConfigMap\"\225\001\332A parent,user_worklo" + + "ads_config_map\202\323\344\223\002l\"O/v1beta1/{parent=p" + + "rojects/*/locations/*/environments/*}/us" + + "erWorkloadsConfigMaps:\031user_workloads_co" + + "nfig_map\022\235\002\n\031GetUserWorkloadsConfigMap\022T" + ".google.cloud.orchestration.airflow.serv" - + "ice.v1beta1.DeleteUserWorkloadsSecretReq" - + "uest\032\026.google.protobuf.Empty\"[\332A\004name\202\323\344" - + "\223\002N*L/v1beta1/{name=projects/*/locations" - + "/*/environments/*/userWorkloadsSecrets/*" - + "}\022\333\002\n\034CreateUserWorkloadsConfigMap\022W.goo" - + "gle.cloud.orchestration.airflow.service." - + "v1beta1.CreateUserWorkloadsConfigMapRequ" - + "est\032J.google.cloud.orchestration.airflow" - + ".service.v1beta1.UserWorkloadsConfigMap\"" - + "\225\001\332A parent,user_workloads_config_map\202\323\344" - + "\223\002l\"O/v1beta1/{parent=projects/*/locatio" - + "ns/*/environments/*}/userWorkloadsConfig" - + "Maps:\031user_workloads_config_map\022\235\002\n\031GetU" - + "serWorkloadsConfigMap\022T.google.cloud.orc" - + "hestration.airflow.service.v1beta1.GetUs" - + "erWorkloadsConfigMapRequest\032J.google.clo" - + "ud.orchestration.airflow.service.v1beta1" - + ".UserWorkloadsConfigMap\"^\332A\004name\202\323\344\223\002Q\022O" - + "/v1beta1/{name=projects/*/locations/*/en" - + "vironments/*/userWorkloadsConfigMaps/*}\022" - + "\260\002\n\033ListUserWorkloadsConfigMaps\022V.google" - + ".cloud.orchestration.airflow.service.v1b" - + "eta1.ListUserWorkloadsConfigMapsRequest\032" - + "W.google.cloud.orchestration.airflow.ser" - + "vice.v1beta1.ListUserWorkloadsConfigMaps" - + "Response\"`\332A\006parent\202\323\344\223\002Q\022O/v1beta1/{par" - + "ent=projects/*/locations/*/environments/" - + "*}/userWorkloadsConfigMaps\022\357\002\n\034UpdateUse" - + "rWorkloadsConfigMap\022W.google.cloud.orche" - + "stration.airflow.service.v1beta1.UpdateU" - + "serWorkloadsConfigMapRequest\032J.google.cl" - + "oud.orchestration.airflow.service.v1beta" - + "1.UserWorkloadsConfigMap\"\251\001\332A\031user_workl" - + "oads_config_map\202\323\344\223\002\206\001\032i/v1beta1/{user_w" - + "orkloads_config_map.name=projects/*/loca" - + "tions/*/environments/*/userWorkloadsConf" - + "igMaps/*}:\031user_workloads_config_map\022\357\001\n" - + "\034DeleteUserWorkloadsConfigMap\022W.google.c" - + "loud.orchestration.airflow.service.v1bet" - + "a1.DeleteUserWorkloadsConfigMapRequest\032\026" - + ".google.protobuf.Empty\"^\332A\004name\202\323\344\223\002Q*O/" - + "v1beta1/{name=projects/*/locations/*/env" - + "ironments/*/userWorkloadsConfigMaps/*}\022\340" - + "\002\n\014SaveSnapshot\022G.google.cloud.orchestra" - + "tion.airflow.service.v1beta1.SaveSnapsho" - + "tRequest\032\035.google.longrunning.Operation\"" - + "\347\001\312A\217\001\nGgoogle.cloud.orchestration.airfl" - + "ow.service.v1beta1.SaveSnapshotResponse\022" - + "Dgoogle.cloud.orchestration.airflow.serv" - + "ice.v1beta1.OperationMetadata\202\323\344\223\002N\"I/v1" - + "beta1/{environment=projects/*/locations/" - + "*/environments/*}:saveSnapshot:\001*\022\340\002\n\014Lo" - + "adSnapshot\022G.google.cloud.orchestration." - + "airflow.service.v1beta1.LoadSnapshotRequ" - + "est\032\035.google.longrunning.Operation\"\347\001\312A\217" - + "\001\nGgoogle.cloud.orchestration.airflow.se" - + "rvice.v1beta1.LoadSnapshotResponse\022Dgoog" - + "le.cloud.orchestration.airflow.service.v" - + "1beta1.OperationMetadata\202\323\344\223\002N\"I/v1beta1" - + "/{environment=projects/*/locations/*/env" - + "ironments/*}:loadSnapshot:\001*\022\360\002\n\020Databas" - + "eFailover\022K.google.cloud.orchestration.a" - + "irflow.service.v1beta1.DatabaseFailoverR" - + "equest\032\035.google.longrunning.Operation\"\357\001" - + "\312A\223\001\nKgoogle.cloud.orchestration.airflow" - + ".service.v1beta1.DatabaseFailoverRespons" - + "e\022Dgoogle.cloud.orchestration.airflow.se" - + "rvice.v1beta1.OperationMetadata\202\323\344\223\002R\"M/" - + "v1beta1/{environment=projects/*/location" - + "s/*/environments/*}:databaseFailover:\001*\022" - + "\240\002\n\027FetchDatabaseProperties\022R.google.clo" + + "ice.v1beta1.GetUserWorkloadsConfigMapReq" + + "uest\032J.google.cloud.orchestration.airflo" + + "w.service.v1beta1.UserWorkloadsConfigMap" + + "\"^\332A\004name\202\323\344\223\002Q\022O/v1beta1/{name=projects" + + "/*/locations/*/environments/*/userWorklo" + + "adsConfigMaps/*}\022\260\002\n\033ListUserWorkloadsCo" + + "nfigMaps\022V.google.cloud.orchestration.ai" + + "rflow.service.v1beta1.ListUserWorkloadsC" + + "onfigMapsRequest\032W.google.cloud.orchestr" + + "ation.airflow.service.v1beta1.ListUserWo" + + "rkloadsConfigMapsResponse\"`\332A\006parent\202\323\344\223" + + "\002Q\022O/v1beta1/{parent=projects/*/location" + + "s/*/environments/*}/userWorkloadsConfigM" + + "aps\022\357\002\n\034UpdateUserWorkloadsConfigMap\022W.g" + + "oogle.cloud.orchestration.airflow.servic" + + "e.v1beta1.UpdateUserWorkloadsConfigMapRe" + + "quest\032J.google.cloud.orchestration.airfl" + + "ow.service.v1beta1.UserWorkloadsConfigMa" + + "p\"\251\001\332A\031user_workloads_config_map\202\323\344\223\002\206\001\032" + + "i/v1beta1/{user_workloads_config_map.nam" + + "e=projects/*/locations/*/environments/*/" + + "userWorkloadsConfigMaps/*}:\031user_workloa" + + "ds_config_map\022\357\001\n\034DeleteUserWorkloadsCon" + + "figMap\022W.google.cloud.orchestration.airf" + + "low.service.v1beta1.DeleteUserWorkloadsC" + + "onfigMapRequest\032\026.google.protobuf.Empty\"" + + "^\332A\004name\202\323\344\223\002Q*O/v1beta1/{name=projects/" + + "*/locations/*/environments/*/userWorkloa" + + "dsConfigMaps/*}\022\340\002\n\014SaveSnapshot\022G.googl" + + "e.cloud.orchestration.airflow.service.v1" + + "beta1.SaveSnapshotRequest\032\035.google.longr" + + "unning.Operation\"\347\001\312A\217\001\nGgoogle.cloud.or" + + "chestration.airflow.service.v1beta1.Save" + + "SnapshotResponse\022Dgoogle.cloud.orchestra" + + "tion.airflow.service.v1beta1.OperationMe" + + "tadata\202\323\344\223\002N\"I/v1beta1/{environment=proj" + + "ects/*/locations/*/environments/*}:saveS" + + "napshot:\001*\022\340\002\n\014LoadSnapshot\022G.google.clo" + "ud.orchestration.airflow.service.v1beta1" - + ".FetchDatabasePropertiesRequest\032S.google" - + ".cloud.orchestration.airflow.service.v1b" - + "eta1.FetchDatabasePropertiesResponse\"\\\202\323" - + "\344\223\002V\022T/v1beta1/{environment=projects/*/l" - + "ocations/*/environments/*}:fetchDatabase" - + "Properties\032K\312A\027composer.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-p" - + "latformB\214\001\n6com.google.cloud.orchestrati" - + "on.airflow.service.v1beta1P\001ZPcloud.goog" - + "le.com/go/orchestration/airflow/service/" - + "apiv1beta1/servicepb;servicepbb\006proto3" + + ".LoadSnapshotRequest\032\035.google.longrunnin" + + "g.Operation\"\347\001\312A\217\001\nGgoogle.cloud.orchest" + + "ration.airflow.service.v1beta1.LoadSnaps" + + "hotResponse\022Dgoogle.cloud.orchestration." + + "airflow.service.v1beta1.OperationMetadat" + + "a\202\323\344\223\002N\"I/v1beta1/{environment=projects/" + + "*/locations/*/environments/*}:loadSnapsh" + + "ot:\001*\022\360\002\n\020DatabaseFailover\022K.google.clou" + + "d.orchestration.airflow.service.v1beta1." + + "DatabaseFailoverRequest\032\035.google.longrun" + + "ning.Operation\"\357\001\312A\223\001\nKgoogle.cloud.orch" + + "estration.airflow.service.v1beta1.Databa" + + "seFailoverResponse\022Dgoogle.cloud.orchest" + + "ration.airflow.service.v1beta1.Operation" + + "Metadata\202\323\344\223\002R\"M/v1beta1/{environment=pr" + + "ojects/*/locations/*/environments/*}:dat" + + "abaseFailover:\001*\022\240\002\n\027FetchDatabaseProper" + + "ties\022R.google.cloud.orchestration.airflo" + + "w.service.v1beta1.FetchDatabasePropertie" + + "sRequest\032S.google.cloud.orchestration.ai" + + "rflow.service.v1beta1.FetchDatabasePrope" + + "rtiesResponse\"\\\202\323\344\223\002V\022T/v1beta1/{environ" + + "ment=projects/*/locations/*/environments" + + "/*}:fetchDatabaseProperties\032K\312A\027composer" + + ".googleapis.com\322A.https://www.googleapis" + + ".com/auth/cloud-platformB\214\001\n6com.google." + + "cloud.orchestration.airflow.service.v1be" + + "ta1P\001ZPcloud.google.com/go/orchestration" + + "/airflow/service/apiv1beta1/servicepb;se" + + "rvicepbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1544,7 +1561,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_orchestration_airflow_service_v1beta1_DataRetentionConfig_descriptor, new java.lang.String[] { + "AirflowDatabaseRetentionDays", "TaskLogsRetentionConfig", + "AirflowMetadataRetentionConfig", }); internal_static_google_cloud_orchestration_airflow_service_v1beta1_TaskLogsRetentionConfig_descriptor = getDescriptor().getMessageTypes().get(51); @@ -1554,8 +1573,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "StorageMode", }); - internal_static_google_cloud_orchestration_airflow_service_v1beta1_StorageConfig_descriptor = + internal_static_google_cloud_orchestration_airflow_service_v1beta1_AirflowMetadataRetentionPolicyConfig_descriptor = getDescriptor().getMessageTypes().get(52); + internal_static_google_cloud_orchestration_airflow_service_v1beta1_AirflowMetadataRetentionPolicyConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_orchestration_airflow_service_v1beta1_AirflowMetadataRetentionPolicyConfig_descriptor, + new java.lang.String[] { + "RetentionMode", "RetentionDays", + }); + internal_static_google_cloud_orchestration_airflow_service_v1beta1_StorageConfig_descriptor = + getDescriptor().getMessageTypes().get(53); internal_static_google_cloud_orchestration_airflow_service_v1beta1_StorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_orchestration_airflow_service_v1beta1_StorageConfig_descriptor, @@ -1563,7 +1590,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Bucket", }); internal_static_google_cloud_orchestration_airflow_service_v1beta1_RecoveryConfig_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(54); internal_static_google_cloud_orchestration_airflow_service_v1beta1_RecoveryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_orchestration_airflow_service_v1beta1_RecoveryConfig_descriptor, @@ -1571,7 +1598,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ScheduledSnapshotsConfig", }); internal_static_google_cloud_orchestration_airflow_service_v1beta1_ScheduledSnapshotsConfig_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(55); internal_static_google_cloud_orchestration_airflow_service_v1beta1_ScheduledSnapshotsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_orchestration_airflow_service_v1beta1_ScheduledSnapshotsConfig_descriptor, @@ -1579,7 +1606,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", "SnapshotLocation", "SnapshotCreationSchedule", "TimeZone", }); internal_static_google_cloud_orchestration_airflow_service_v1beta1_MasterAuthorizedNetworksConfig_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(56); internal_static_google_cloud_orchestration_airflow_service_v1beta1_MasterAuthorizedNetworksConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_orchestration_airflow_service_v1beta1_MasterAuthorizedNetworksConfig_descriptor, @@ -1597,7 +1624,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "CidrBlock", }); internal_static_google_cloud_orchestration_airflow_service_v1beta1_CloudDataLineageIntegration_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(57); internal_static_google_cloud_orchestration_airflow_service_v1beta1_CloudDataLineageIntegration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_orchestration_airflow_service_v1beta1_CloudDataLineageIntegration_descriptor, @@ -1605,7 +1632,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_cloud_orchestration_airflow_service_v1beta1_Environment_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(58); internal_static_google_cloud_orchestration_airflow_service_v1beta1_Environment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_orchestration_airflow_service_v1beta1_Environment_descriptor, @@ -1631,7 +1658,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_orchestration_airflow_service_v1beta1_CheckUpgradeRequest_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(59); internal_static_google_cloud_orchestration_airflow_service_v1beta1_CheckUpgradeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_orchestration_airflow_service_v1beta1_CheckUpgradeRequest_descriptor, @@ -1639,7 +1666,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Environment", "ImageVersion", }); internal_static_google_cloud_orchestration_airflow_service_v1beta1_CheckUpgradeResponse_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(60); internal_static_google_cloud_orchestration_airflow_service_v1beta1_CheckUpgradeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_orchestration_airflow_service_v1beta1_CheckUpgradeResponse_descriptor, diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/TaskLogsRetentionConfig.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/TaskLogsRetentionConfig.java index 375b9f737377..38799c52b987 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/TaskLogsRetentionConfig.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/TaskLogsRetentionConfig.java @@ -236,8 +236,7 @@ private TaskLogsStorageMode(int value) { * * *
        -   * Optional. The mode of storage for Airflow workers task logs. For details,
        -   * see go/composer-store-task-logs-in-cloud-logging-only-design-doc
        +   * Optional. The mode of storage for Airflow workers task logs.
            * 
        * * @@ -254,8 +253,7 @@ public int getStorageModeValue() { * * *
        -   * Optional. The mode of storage for Airflow workers task logs. For details,
        -   * see go/composer-store-task-logs-in-cloud-logging-only-design-doc
        +   * Optional. The mode of storage for Airflow workers task logs.
            * 
        * * @@ -652,8 +650,7 @@ public Builder mergeFrom( * * *
        -     * Optional. The mode of storage for Airflow workers task logs. For details,
        -     * see go/composer-store-task-logs-in-cloud-logging-only-design-doc
        +     * Optional. The mode of storage for Airflow workers task logs.
              * 
        * * @@ -670,8 +667,7 @@ public int getStorageModeValue() { * * *
        -     * Optional. The mode of storage for Airflow workers task logs. For details,
        -     * see go/composer-store-task-logs-in-cloud-logging-only-design-doc
        +     * Optional. The mode of storage for Airflow workers task logs.
              * 
        * * @@ -691,8 +687,7 @@ public Builder setStorageModeValue(int value) { * * *
        -     * Optional. The mode of storage for Airflow workers task logs. For details,
        -     * see go/composer-store-task-logs-in-cloud-logging-only-design-doc
        +     * Optional. The mode of storage for Airflow workers task logs.
              * 
        * * @@ -719,8 +714,7 @@ public Builder setStorageModeValue(int value) { * * *
        -     * Optional. The mode of storage for Airflow workers task logs. For details,
        -     * see go/composer-store-task-logs-in-cloud-logging-only-design-doc
        +     * Optional. The mode of storage for Airflow workers task logs.
              * 
        * * @@ -746,8 +740,7 @@ public Builder setStorageMode( * * *
        -     * Optional. The mode of storage for Airflow workers task logs. For details,
        -     * see go/composer-store-task-logs-in-cloud-logging-only-design-doc
        +     * Optional. The mode of storage for Airflow workers task logs.
              * 
        * * diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/TaskLogsRetentionConfigOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/TaskLogsRetentionConfigOrBuilder.java index a328e95ebc41..3bb8d6bf3f02 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/TaskLogsRetentionConfigOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/TaskLogsRetentionConfigOrBuilder.java @@ -28,8 +28,7 @@ public interface TaskLogsRetentionConfigOrBuilder * * *
        -   * Optional. The mode of storage for Airflow workers task logs. For details,
        -   * see go/composer-store-task-logs-in-cloud-logging-only-design-doc
        +   * Optional. The mode of storage for Airflow workers task logs.
            * 
        * * @@ -43,8 +42,7 @@ public interface TaskLogsRetentionConfigOrBuilder * * *
        -   * Optional. The mode of storage for Airflow workers task logs. For details,
        -   * see go/composer-store-task-logs-in-cloud-logging-only-design-doc
        +   * Optional. The mode of storage for Airflow workers task logs.
            * 
        * * diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/WorkloadsConfig.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/WorkloadsConfig.java index 3ea19776c94e..61fd7e158ccb 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/WorkloadsConfig.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/WorkloadsConfig.java @@ -3728,6 +3728,9 @@ public interface DagProcessorResourceOrBuilder * *
            * Configuration for resources used by Airflow DAG processors.
        +   *
        +   * This field is supported for Cloud Composer environments in versions
        +   * composer-3.*.*-airflow-*.*.* and newer.
            * 
        * * Protobuf type {@code @@ -4065,6 +4068,9 @@ protected Builder newBuilderForType( * *
              * Configuration for resources used by Airflow DAG processors.
        +     *
        +     * This field is supported for Cloud Composer environments in versions
        +     * composer-3.*.*-airflow-*.*.* and newer.
              * 
        * * Protobuf type {@code diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/proto/google/cloud/orchestration/airflow/service/v1beta1/environments.proto b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/proto/google/cloud/orchestration/airflow/service/v1beta1/environments.proto index 4c663637bd60..ba6e5ec763a6 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/proto/google/cloud/orchestration/airflow/service/v1beta1/environments.proto +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/proto/google/cloud/orchestration/airflow/service/v1beta1/environments.proto @@ -1156,8 +1156,9 @@ message EnvironmentConfig { // This may be split into multiple chunks, each with a size of // at least 4 hours. // - // If this value is omitted, Cloud Composer components may be subject to - // maintenance at any time. + // If this value is omitted, the default value for maintenance window is + // applied. By default, maintenance windows are from 00:00:00 to 04:00:00 + // (GMT) on Friday, Saturday, and Sunday every week. MaintenanceWindow maintenance_window = 13 [(google.api.field_behavior) = OPTIONAL]; @@ -1840,6 +1841,9 @@ message WorkloadsConfig { } // Configuration for resources used by Airflow DAG processors. + // + // This field is supported for Cloud Composer environments in versions + // composer-3.*.*-airflow-*.*.* and newer. message DagProcessorResource { // Optional. CPU request and limit for a single Airflow DAG processor // replica. @@ -1880,9 +1884,19 @@ message WorkloadsConfig { // The configuration setting for Airflow database data retention mechanism. message DataRetentionConfig { + // Optional. The number of days describing for how long to store event-based + // records in airflow database. If the retention mechanism is enabled this + // value must be a positive integer otherwise, value should be set to 0. + int32 airflow_database_retention_days = 1 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + // Optional. The configuration settings for task logs retention TaskLogsRetentionConfig task_logs_retention_config = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The retention policy for airflow metadata database. + AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 + [(google.api.field_behavior) = OPTIONAL]; } // The configuration setting for Task Logs. @@ -1900,11 +1914,31 @@ message TaskLogsRetentionConfig { CLOUD_LOGGING_ONLY = 2; } - // Optional. The mode of storage for Airflow workers task logs. For details, - // see go/composer-store-task-logs-in-cloud-logging-only-design-doc + // Optional. The mode of storage for Airflow workers task logs. TaskLogsStorageMode storage_mode = 2 [(google.api.field_behavior) = OPTIONAL]; } +// The policy for airflow metadata database retention. +message AirflowMetadataRetentionPolicyConfig { + // Describes retention policy. + enum RetentionMode { + // Default mode doesn't change environment parameters. + RETENTION_MODE_UNSPECIFIED = 0; + + // Retention policy is enabled. + RETENTION_MODE_ENABLED = 1; + + // Retention policy is disabled. + RETENTION_MODE_DISABLED = 2; + } + + // Optional. Retention can be either enabled or disabled. + RetentionMode retention_mode = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How many days data should be retained for. + int32 retention_days = 2 [(google.api.field_behavior) = OPTIONAL]; +} + // The configuration for data storage in the environment. message StorageConfig { // Optional. The name of the Cloud Storage bucket used by the environment. No diff --git a/java-orgpolicy/README.md b/java-orgpolicy/README.md index 5b91c6acd437..dccc47979404 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/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-orgpolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.46.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-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/OrgPolicyStubSettings.java b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/OrgPolicyStubSettings.java index 72891bbdae4b..dc946289f4fd 100644 --- a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/OrgPolicyStubSettings.java +++ b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/OrgPolicyStubSettings.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; @@ -412,6 +413,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "orgpolicy.googleapis.com:443"; } diff --git a/java-os-config/README.md b/java-os-config/README.md index a2de9312a061..06b4771cd33a 100644 --- a/java-os-config/README.md +++ b/java-os-config/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-os-config.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.48.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-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigServiceStubSettings.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigServiceStubSettings.java index 557418e92968..a2a3f32c996a 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigServiceStubSettings.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigServiceStubSettings.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; @@ -483,6 +484,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "osconfig.googleapis.com:443"; } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigZonalServiceStubSettings.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigZonalServiceStubSettings.java index 4d1151ba980f..2527dd09bf50 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigZonalServiceStubSettings.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigZonalServiceStubSettings.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 "osconfig.googleapis.com:443"; } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/OsConfigZonalServiceStubSettings.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/OsConfigZonalServiceStubSettings.java index 15460c3bfb0c..6f2d72fff97b 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/OsConfigZonalServiceStubSettings.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/OsConfigZonalServiceStubSettings.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; @@ -794,6 +795,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "osconfig.googleapis.com:443"; } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/OsConfigServiceStubSettings.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/OsConfigServiceStubSettings.java index 9a94751e8c8f..34b532cf1e5e 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/OsConfigServiceStubSettings.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/OsConfigServiceStubSettings.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; @@ -620,6 +621,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "osconfig.googleapis.com:443"; } diff --git a/java-os-login/README.md b/java-os-login/README.md index 60b5b871ce0b..6363756b6779 100644 --- a/java-os-login/README.md +++ b/java-os-login/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-os-login.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.45.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-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java index 8ab36a4f6275..734419225126 100644 --- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java +++ b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -181,6 +182,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "oslogin.googleapis.com:443"; } diff --git a/java-parallelstore/README.md b/java-parallelstore/README.md index 6ce342aaf329..4ab9681e58d6 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/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 diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/ParallelstoreStubSettings.java b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/ParallelstoreStubSettings.java index c7d2ec1ad941..eba482a46beb 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/ParallelstoreStubSettings.java +++ b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/ParallelstoreStubSettings.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; @@ -356,6 +357,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "parallelstore.googleapis.com:443"; } diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1beta/reflect-config.json b/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1beta/reflect-config.json index 602e897f6cef..5aca1a38f62f 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1beta/reflect-config.json +++ b/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1beta/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-phishingprotection/README.md b/java-phishingprotection/README.md index c9669a235976..4bb665356f79 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/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.cloud/google-cloud-phishingprotection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.77.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-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/PhishingProtectionServiceV1Beta1StubSettings.java b/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/PhishingProtectionServiceV1Beta1StubSettings.java index 932cb2eda252..6edd6b568191 100644 --- a/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/PhishingProtectionServiceV1Beta1StubSettings.java +++ b/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/PhishingProtectionServiceV1Beta1StubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -129,6 +130,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "phishingprotection.googleapis.com:443"; } diff --git a/java-policy-troubleshooter/README.md b/java-policy-troubleshooter/README.md index bc05862891cb..5cfd829a0b7d 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/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-policy-troubleshooter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.45.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-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/stub/PolicyTroubleshooterStubSettings.java b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/stub/PolicyTroubleshooterStubSettings.java index 7756a61a1ae1..629bf424b7ba 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/stub/PolicyTroubleshooterStubSettings.java +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/stub/PolicyTroubleshooterStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -128,6 +129,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "policytroubleshooter.googleapis.com:443"; } diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java index 884cb51fc63a..a5f6dca22289 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -125,6 +126,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "policytroubleshooter.googleapis.com:443"; } diff --git a/java-policysimulator/README.md b/java-policysimulator/README.md index e96d95209047..5214cc483e13 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/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.cloud/google-cloud-policysimulator.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.25.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-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/SimulatorStubSettings.java b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/SimulatorStubSettings.java index c62f2fddfe44..78450ecbd59e 100644 --- a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/SimulatorStubSettings.java +++ b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/SimulatorStubSettings.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; @@ -227,6 +228,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "policysimulator.googleapis.com:443"; } diff --git a/java-private-catalog/README.md b/java-private-catalog/README.md index f999d9d86ed6..e5ed5424c004 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/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.cloud/google-cloud-private-catalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.48.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-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/PrivateCatalogStubSettings.java b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/PrivateCatalogStubSettings.java index 68c43335dea7..d342236c20e9 100644 --- a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/PrivateCatalogStubSettings.java +++ b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/PrivateCatalogStubSettings.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; @@ -328,6 +329,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudprivatecatalog.googleapis.com:443"; } diff --git a/java-profiler/README.md b/java-profiler/README.md index 004770998cdf..0a2802a6ceae 100644 --- a/java-profiler/README.md +++ b/java-profiler/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-profiler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.46.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-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ExportServiceStubSettings.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ExportServiceStubSettings.java index 67f2c941dde5..0d3d92983b58 100644 --- a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ExportServiceStubSettings.java +++ b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ExportServiceStubSettings.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; @@ -193,6 +194,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudprofiler.googleapis.com:443"; } diff --git a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java index bc01a6b7ae0a..b32e7c92b586 100644 --- a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java +++ b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -142,6 +143,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudprofiler.googleapis.com:443"; } diff --git a/java-publicca/README.md b/java-publicca/README.md index 389a92632183..3fa0ca9fdbea 100644 --- a/java-publicca/README.md +++ b/java-publicca/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-publicca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.43.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-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/PublicCertificateAuthorityServiceStubSettings.java b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/PublicCertificateAuthorityServiceStubSettings.java index 4bfb8ff00f4a..36bbc647e4f5 100644 --- a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/PublicCertificateAuthorityServiceStubSettings.java +++ b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/PublicCertificateAuthorityServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -128,6 +129,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "publicca.googleapis.com:443"; } diff --git a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/stub/PublicCertificateAuthorityServiceStubSettings.java b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/stub/PublicCertificateAuthorityServiceStubSettings.java index e3af55a2babc..ec920e86d89e 100644 --- a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/stub/PublicCertificateAuthorityServiceStubSettings.java +++ b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/stub/PublicCertificateAuthorityServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -129,6 +130,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "publicca.googleapis.com:443"; } diff --git a/java-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index ec4b1136b63d..181fd19bfc17 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/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.cloud/google-cloud-rapidmigrationassessment.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.29.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-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/RapidMigrationAssessmentStubSettings.java b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/RapidMigrationAssessmentStubSettings.java index 8c03fb75d522..3d14e0651630 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/RapidMigrationAssessmentStubSettings.java +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/RapidMigrationAssessmentStubSettings.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; @@ -393,6 +394,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "rapidmigrationassessment.googleapis.com:443"; } diff --git a/java-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index d85d7104ed6c..22d8a9888497 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/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-recaptchaenterprise.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.43.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-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java index 0c9854196e6c..e48fe9b62b8f 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.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; @@ -672,6 +673,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "recaptchaenterprise.googleapis.com:443"; } diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java index 85113d2bf3f5..5a2a25c8b966 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -138,6 +139,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "recaptchaenterprise.googleapis.com:443"; } diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json index 2602a19c0609..5d3de94f6459 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Any", "queryAllDeclaredConstructors": true, diff --git a/java-recommendations-ai/README.md b/java-recommendations-ai/README.md index 63d7cc6575e5..c7022656bc3f 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -24,7 +24,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 @@ -202,7 +202,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.cloud/google-cloud-recommendations-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.53.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-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java index 93829d941357..c52c283d69ea 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.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; @@ -251,6 +252,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "recommendationengine.googleapis.com:443"; } diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java index 52b854ccabdb..c78b68c2f1c9 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.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; @@ -247,6 +248,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "recommendationengine.googleapis.com:443"; } diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java index d187cef13a6d..cf6456807b33 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.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; @@ -193,6 +194,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "recommendationengine.googleapis.com:443"; } diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java index 23d4b537334f..034ad87921ed 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.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; @@ -250,6 +251,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "recommendationengine.googleapis.com:443"; } diff --git a/java-recommender/README.md b/java-recommender/README.md index 5d8bef6f80eb..b2c17ca0d0ef 100644 --- a/java-recommender/README.md +++ b/java-recommender/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-recommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.48.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-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/RecommenderStubSettings.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/RecommenderStubSettings.java index abb1374c81fd..37a2c6f39453 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/RecommenderStubSettings.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/RecommenderStubSettings.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 "recommender.googleapis.com:443"; } diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/RecommenderStubSettings.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/RecommenderStubSettings.java index 25a8511d09ae..5a3d7a047fed 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/RecommenderStubSettings.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/RecommenderStubSettings.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; @@ -498,6 +499,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "recommender.googleapis.com:443"; } diff --git a/java-redis-cluster/README.md b/java-redis-cluster/README.md index bfa1d1cd4519..4044d1a2a04a 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/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.cloud/google-cloud-redis-cluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.18.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-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java index 74ed5d7a6cf2..40b8fe7152c3 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.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; @@ -331,6 +332,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "redis.googleapis.com:443"; } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java index d0b8819a60fb..3292a16ee11c 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.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; @@ -332,6 +333,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "redis.googleapis.com:443"; } diff --git a/java-redis/README.md b/java-redis/README.md index b46df590dfb2..248aabdc8976 100644 --- a/java-redis/README.md +++ b/java-redis/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-redis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.49.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-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java index 94903ae1dcde..be9d845a2428 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.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; @@ -407,6 +408,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "redis.googleapis.com:443"; } diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java index 1d5130e20bc8..4644cd4e8c80 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.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; @@ -335,6 +336,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "redis.googleapis.com:443"; } diff --git a/java-resource-settings/README.md b/java-resource-settings/README.md index 331cec6eb968..b7572e48e598 100644 --- a/java-resource-settings/README.md +++ b/java-resource-settings/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-resource-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resource-settings/1.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resource-settings/1.46.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-resource-settings/google-cloud-resource-settings/src/main/java/com/google/cloud/resourcesettings/v1/stub/ResourceSettingsServiceStubSettings.java b/java-resource-settings/google-cloud-resource-settings/src/main/java/com/google/cloud/resourcesettings/v1/stub/ResourceSettingsServiceStubSettings.java index f9c61fbb769b..9e3d5db3298c 100644 --- a/java-resource-settings/google-cloud-resource-settings/src/main/java/com/google/cloud/resourcesettings/v1/stub/ResourceSettingsServiceStubSettings.java +++ b/java-resource-settings/google-cloud-resource-settings/src/main/java/com/google/cloud/resourcesettings/v1/stub/ResourceSettingsServiceStubSettings.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; @@ -209,6 +210,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "resourcesettings.googleapis.com:443"; } diff --git a/java-resourcemanager/README.md b/java-resourcemanager/README.md index 9de3205c135c..18df322b2eea 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/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 @@ -336,7 +336,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-resourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.48.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-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/FoldersStubSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/FoldersStubSettings.java index 717e05fb320e..d135ba2443c3 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/FoldersStubSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/FoldersStubSettings.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; @@ -373,6 +374,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudresourcemanager.googleapis.com:443"; } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/OrganizationsStubSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/OrganizationsStubSettings.java index 0bfdcca5c576..734f1a1fab84 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/OrganizationsStubSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/OrganizationsStubSettings.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 "cloudresourcemanager.googleapis.com:443"; } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/ProjectsStubSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/ProjectsStubSettings.java index d0fbf71c3152..3531ea082164 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/ProjectsStubSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/ProjectsStubSettings.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; @@ -376,6 +377,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudresourcemanager.googleapis.com:443"; } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagBindingsStubSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagBindingsStubSettings.java index 7bc00b4672dd..daa7944a287f 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagBindingsStubSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagBindingsStubSettings.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; @@ -310,6 +311,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudresourcemanager.googleapis.com:443"; } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagHoldsStubSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagHoldsStubSettings.java index 1bbed1d932f0..79589574c52e 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagHoldsStubSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagHoldsStubSettings.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; @@ -230,6 +231,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudresourcemanager.googleapis.com:443"; } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagKeysStubSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagKeysStubSettings.java index d3e640120381..7d02078121db 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagKeysStubSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagKeysStubSettings.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; @@ -283,6 +284,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudresourcemanager.googleapis.com:443"; } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagValuesStubSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagValuesStubSettings.java index 7df71c18f74c..57202154d1a5 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagValuesStubSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagValuesStubSettings.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; @@ -285,6 +286,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudresourcemanager.googleapis.com:443"; } diff --git a/java-retail/README.md b/java-retail/README.md index 01c1667463bb..afb9cbeacac5 100644 --- a/java-retail/README.md +++ b/java-retail/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-retail.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.48.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-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java index 28974b2e9b94..a4fda475833c 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -141,6 +142,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CatalogServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CatalogServiceStubSettings.java index a2dbf5ae933f..6d95683fed69 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CatalogServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CatalogServiceStubSettings.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; @@ -279,6 +280,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStubSettings.java index d66249c23d1f..cfaa8a122783 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -150,6 +151,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ControlServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ControlServiceStubSettings.java index ec22b876d8bb..b51c7a65c1c3 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ControlServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ControlServiceStubSettings.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; @@ -217,6 +218,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStubSettings.java index 7bf28aa5a0a0..7ca21c870e5b 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStubSettings.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; @@ -262,6 +263,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/PredictionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/PredictionServiceStubSettings.java index 004399a26195..82653fb83858 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/PredictionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/PredictionServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -124,6 +125,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java index 732f8852ff89..bb32fc12b093 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.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; @@ -366,6 +367,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/SearchServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/SearchServiceStubSettings.java index d0aa9bc7cb7a..4b5035cf2634 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/SearchServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/SearchServiceStubSettings.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; @@ -185,6 +186,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ServingConfigServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ServingConfigServiceStubSettings.java index e3d8799cdc7b..2f41ea45d1f9 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ServingConfigServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ServingConfigServiceStubSettings.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; @@ -246,6 +247,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java index b199104e8771..9340941ab015 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java @@ -19,6 +19,7 @@ import com.google.api.HttpBody; import com.google.api.core.ApiFunction; 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; @@ -191,6 +192,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStubSettings.java index 08589b9c7c89..ecfa8a34a299 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -142,6 +143,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStubSettings.java index 66d308ae78f5..d6942e3b86f1 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -132,6 +133,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CatalogServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CatalogServiceStubSettings.java index d620fc368928..ea009f2ee470 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CatalogServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CatalogServiceStubSettings.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; @@ -292,6 +293,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CompletionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CompletionServiceStubSettings.java index ebad04e0ff88..28c5a872c19b 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CompletionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CompletionServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -151,6 +152,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ControlServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ControlServiceStubSettings.java index a8328dcbcf83..14f3e6205c79 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ControlServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ControlServiceStubSettings.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; @@ -218,6 +219,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/MerchantCenterAccountLinkServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/MerchantCenterAccountLinkServiceStubSettings.java index e36e784ed566..b332613b7a7a 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/MerchantCenterAccountLinkServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/MerchantCenterAccountLinkServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -171,6 +172,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStubSettings.java index 665cb8f7caaa..5d131ff5570e 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStubSettings.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; @@ -263,6 +264,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/PredictionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/PredictionServiceStubSettings.java index 96d8215121db..2a36b3cae7b7 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/PredictionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/PredictionServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -125,6 +126,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStubSettings.java index 421ec3708760..db446fc372b4 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStubSettings.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; @@ -367,6 +368,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStubSettings.java index 1fd382a9ae04..9778a466cb3d 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -197,6 +198,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/SearchServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/SearchServiceStubSettings.java index bde08ee9f060..6ed91285e5ce 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/SearchServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/SearchServiceStubSettings.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; @@ -186,6 +187,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ServingConfigServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ServingConfigServiceStubSettings.java index 21aa39e051c8..54b696ca9379 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ServingConfigServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ServingConfigServiceStubSettings.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; @@ -247,6 +248,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStubSettings.java index 029443a433a2..f259a7ed2839 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStubSettings.java @@ -19,6 +19,7 @@ import com.google.api.HttpBody; import com.google.api.core.ApiFunction; 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; @@ -192,6 +193,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStubSettings.java index dc04ed4774a5..e6b1c282efc2 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -142,6 +143,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CatalogServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CatalogServiceStubSettings.java index b78d7ca33ff5..c030fd36f346 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CatalogServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CatalogServiceStubSettings.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; @@ -292,6 +293,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CompletionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CompletionServiceStubSettings.java index aafcf666fd8f..0874c04ed7d7 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CompletionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CompletionServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -151,6 +152,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ControlServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ControlServiceStubSettings.java index 5413140232af..6d3a1cf436dd 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ControlServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ControlServiceStubSettings.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; @@ -218,6 +219,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStubSettings.java index 21e50cd77eb4..4397b8949a5b 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStubSettings.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; @@ -263,6 +264,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/PredictionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/PredictionServiceStubSettings.java index 2d0c32ba24a3..18fb1ed6e923 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/PredictionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/PredictionServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -125,6 +126,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStubSettings.java index a89dfbc76b18..9c892eb4e96e 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStubSettings.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; @@ -367,6 +368,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/SearchServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/SearchServiceStubSettings.java index e6044d90952f..8879f8e6abe7 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/SearchServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/SearchServiceStubSettings.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; @@ -186,6 +187,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ServingConfigServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ServingConfigServiceStubSettings.java index f6f5da36b870..3a7668cff261 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ServingConfigServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ServingConfigServiceStubSettings.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; @@ -247,6 +248,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStubSettings.java index f3d5a590f7a7..5ba8030298c8 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStubSettings.java @@ -19,6 +19,7 @@ import com.google.api.HttpBody; import com.google.api.core.ApiFunction; 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; @@ -192,6 +193,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "retail.googleapis.com:443"; } diff --git a/java-run/README.md b/java-run/README.md index ef19faabd733..132b7d5d7d3b 100644 --- a/java-run/README.md +++ b/java-run/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.cloud/google-cloud-run.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.46.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-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java index 66198b100204..1904a7037f28 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java @@ -87,7 +87,7 @@ * * *

        ListExecutions - *

        Lists Executions from a Job. + *

        Lists Executions from a Job. Results are sorted by creation time, descending. * *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        *
          @@ -388,7 +388,7 @@ public final UnaryCallable getExecutionCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Executions from a Job. + * Lists Executions from a Job. Results are sorted by creation time, descending. * *

          Sample code: * @@ -422,7 +422,7 @@ public final ListExecutionsPagedResponse listExecutions(JobName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Executions from a Job. + * Lists Executions from a Job. Results are sorted by creation time, descending. * *

          Sample code: * @@ -453,7 +453,7 @@ public final ListExecutionsPagedResponse listExecutions(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Executions from a Job. + * Lists Executions from a Job. Results are sorted by creation time, descending. * *

          Sample code: * @@ -486,7 +486,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Executions from a Job. + * Lists Executions from a Job. Results are sorted by creation time, descending. * *

          Sample code: * @@ -520,7 +520,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Executions from a Job. + * Lists Executions from a Job. Results are sorted by creation time, descending. * *

          Sample code: * diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java index 86c1e2c185f8..e55e1800d962 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java @@ -112,7 +112,7 @@ * * *

          ListJobs - *

          Lists Jobs. + *

          Lists Jobs. Results are sorted by creation time, descending. * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          *
            @@ -635,7 +635,7 @@ public final UnaryCallable getJobCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Jobs. + * Lists Jobs. Results are sorted by creation time, descending. * *

            Sample code: * @@ -665,7 +665,7 @@ public final ListJobsPagedResponse listJobs(LocationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Jobs. + * Lists Jobs. Results are sorted by creation time, descending. * *

            Sample code: * @@ -694,7 +694,7 @@ public final ListJobsPagedResponse listJobs(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Jobs. + * Lists Jobs. Results are sorted by creation time, descending. * *

            Sample code: * @@ -727,7 +727,7 @@ public final ListJobsPagedResponse listJobs(ListJobsRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Jobs. + * Lists Jobs. Results are sorted by creation time, descending. * *

            Sample code: * @@ -759,7 +759,7 @@ public final UnaryCallable listJobsPaged // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Jobs. + * Lists Jobs. Results are sorted by creation time, descending. * *

            Sample code: * diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java index f0c9020add3c..1d10efb10497 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java @@ -87,7 +87,7 @@ * * *

            ListRevisions - *

            Lists Revisions from a given Service, or from a given location. + *

            Lists Revisions from a given Service, or from a given location. Results are sorted by creation time, descending. * *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            *
              @@ -367,7 +367,8 @@ public final UnaryCallable getRevisionCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Revisions from a given Service, or from a given location. + * Lists Revisions from a given Service, or from a given location. Results are sorted by creation + * time, descending. * *

              Sample code: * @@ -400,7 +401,8 @@ public final ListRevisionsPagedResponse listRevisions(ServiceName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Revisions from a given Service, or from a given location. + * Lists Revisions from a given Service, or from a given location. Results are sorted by creation + * time, descending. * *

              Sample code: * @@ -430,7 +432,8 @@ public final ListRevisionsPagedResponse listRevisions(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Revisions from a given Service, or from a given location. + * Lists Revisions from a given Service, or from a given location. Results are sorted by creation + * time, descending. * *

              Sample code: * @@ -463,7 +466,8 @@ public final ListRevisionsPagedResponse listRevisions(ListRevisionsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Revisions from a given Service, or from a given location. + * Lists Revisions from a given Service, or from a given location. Results are sorted by creation + * time, descending. * *

              Sample code: * @@ -496,7 +500,8 @@ public final ListRevisionsPagedResponse listRevisions(ListRevisionsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Revisions from a given Service, or from a given location. + * Lists Revisions from a given Service, or from a given location. Results are sorted by creation + * time, descending. * *

              Sample code: * diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java index 3e4011b3be03..2f46d7afcca8 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java @@ -37,6 +37,7 @@ import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -112,7 +113,7 @@ * * *

              ListServices - *

              Lists Services. + *

              Lists Services. Results are sorted by creation time, descending. * *

              Request object method variants only take one parameter, a request object, which must be constructed before the call.

              *
                @@ -141,6 +142,7 @@ *

                Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                *
                  *
                • updateServiceAsync(Service service) + *

                • updateServiceAsync(Service service, FieldMask updateMask) *

                *

                Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                *
                  @@ -626,7 +628,7 @@ public final UnaryCallable getServiceCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Services. + * Lists Services. Results are sorted by creation time, descending. * *

                  Sample code: * @@ -659,7 +661,7 @@ public final ListServicesPagedResponse listServices(LocationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Services. + * Lists Services. Results are sorted by creation time, descending. * *

                  Sample code: * @@ -689,7 +691,7 @@ public final ListServicesPagedResponse listServices(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Services. + * Lists Services. Results are sorted by creation time, descending. * *

                  Sample code: * @@ -722,7 +724,7 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Services. + * Lists Services. Results are sorted by creation time, descending. * *

                  Sample code: * @@ -755,7 +757,7 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Services. + * Lists Services. Results are sorted by creation time, descending. * *

                  Sample code: * @@ -818,6 +820,36 @@ public final OperationFuture updateServiceAsync(Service servic return updateServiceAsync(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a 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 (ServicesClient servicesClient = ServicesClient.create()) {
                  +   *   Service service = Service.newBuilder().build();
                  +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                  +   *   Service response = servicesClient.updateServiceAsync(service, updateMask).get();
                  +   * }
                  +   * }
                  + * + * @param service Required. The Service to be updated. + * @param updateMask Optional. The list of fields to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateServiceAsync( + Service service, FieldMask updateMask) { + UpdateServiceRequest request = + UpdateServiceRequest.newBuilder().setService(service).setUpdateMask(updateMask).build(); + return updateServiceAsync(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a Service. @@ -833,6 +865,7 @@ public final OperationFuture updateServiceAsync(Service servic * try (ServicesClient servicesClient = ServicesClient.create()) { * UpdateServiceRequest request = * UpdateServiceRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) * .setService(Service.newBuilder().build()) * .setValidateOnly(true) * .setAllowMissing(true) @@ -863,6 +896,7 @@ public final OperationFuture updateServiceAsync(UpdateServiceR * try (ServicesClient servicesClient = ServicesClient.create()) { * UpdateServiceRequest request = * UpdateServiceRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) * .setService(Service.newBuilder().build()) * .setValidateOnly(true) * .setAllowMissing(true) @@ -894,6 +928,7 @@ public final OperationFuture updateServiceAsync(UpdateServiceR * try (ServicesClient servicesClient = ServicesClient.create()) { * UpdateServiceRequest request = * UpdateServiceRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) * .setService(Service.newBuilder().build()) * .setValidateOnly(true) * .setAllowMissing(true) diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json index 680fcbdea585..aa0bfa60d0aa 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json @@ -107,7 +107,7 @@ "methods": ["testIamPermissions", "testIamPermissionsCallable"] }, "UpdateService": { - "methods": ["updateServiceAsync", "updateServiceAsync", "updateServiceOperationCallable", "updateServiceCallable"] + "methods": ["updateServiceAsync", "updateServiceAsync", "updateServiceAsync", "updateServiceOperationCallable", "updateServiceCallable"] } } } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java index 86dc7fadd464..71b7df914cbb 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.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 "run.googleapis.com:443"; } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java index 121e88ff768d..a40b38df33f7 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java @@ -208,6 +208,7 @@ public class HttpJsonServicesStub extends ServicesStub { ProtoRestSerializer.create(); serializer.putQueryParam( fields, "allowMissing", request.getAllowMissing()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam( fields, "validateOnly", request.getValidateOnly()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java index fc1a1c5bd4e0..73e6c79a5475 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.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; @@ -276,6 +277,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "run.googleapis.com:443"; } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java index 3a43935777bf..f9345038f5c4 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.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; @@ -215,6 +216,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "run.googleapis.com:443"; } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java index ca51e4d3e3b4..43ad8d559b59 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.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; @@ -270,6 +271,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "run.googleapis.com:443"; } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java index 727fca723980..09cdae79461e 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.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; @@ -193,6 +194,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "run.googleapis.com:443"; } diff --git a/java-run/google-cloud-run/src/main/resources/META-INF/native-image/com.google.cloud.run.v2/reflect-config.json b/java-run/google-cloud-run/src/main/resources/META-INF/native-image/com.google.cloud.run.v2/reflect-config.json index 0ae4b8eb7ea4..7d80724f46ea 100644 --- a/java-run/google-cloud-run/src/main/resources/META-INF/native-image/com.google.cloud.run.v2/reflect-config.json +++ b/java-run/google-cloud-run/src/main/resources/META-INF/native-image/com.google.cloud.run.v2/reflect-config.json @@ -863,6 +863,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.run.v2.ExecutionReference$CompletionStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.run.v2.ExecutionTemplate", "queryAllDeclaredConstructors": true, diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java index a7d74058920f..1cdd59c3b775 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java @@ -671,6 +671,162 @@ public void updateServiceExceptionTest() throws Exception { } } + @Test + public void updateServiceTest2() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDescription("description-1724546052") + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setIngress(IngressTraffic.forNumber(0)) + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(RevisionTemplate.newBuilder().build()) + .addAllTraffic(new ArrayList()) + .setScaling(ServiceScaling.newBuilder().build()) + .setDefaultUriDisabled(true) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setLatestReadyRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setLatestCreatedRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .addAllTrafficStatuses(new ArrayList()) + .setUri("uri116076") + .addAllCustomAudiences(new ArrayList()) + .setSatisfiesPzs(true) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Service service = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDescription("description-1724546052") + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setIngress(IngressTraffic.forNumber(0)) + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(RevisionTemplate.newBuilder().build()) + .addAllTraffic(new ArrayList()) + .setScaling(ServiceScaling.newBuilder().build()) + .setDefaultUriDisabled(true) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setLatestReadyRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setLatestCreatedRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .addAllTrafficStatuses(new ArrayList()) + .setUri("uri116076") + .addAllCustomAudiences(new ArrayList()) + .setSatisfiesPzs(true) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Service actualResponse = client.updateServiceAsync(service, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateServiceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Service service = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDescription("description-1724546052") + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setIngress(IngressTraffic.forNumber(0)) + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(RevisionTemplate.newBuilder().build()) + .addAllTraffic(new ArrayList()) + .setScaling(ServiceScaling.newBuilder().build()) + .setDefaultUriDisabled(true) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setLatestReadyRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setLatestCreatedRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .addAllTrafficStatuses(new ArrayList()) + .setUri("uri116076") + .addAllCustomAudiences(new ArrayList()) + .setSatisfiesPzs(true) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateServiceAsync(service, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void deleteServiceTest() throws Exception { Service expectedResponse = diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java index 84355708a450..149c04954810 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java @@ -578,6 +578,88 @@ public void updateServiceExceptionTest() throws Exception { } } + @Test + public void updateServiceTest2() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDescription("description-1724546052") + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setIngress(IngressTraffic.forNumber(0)) + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(RevisionTemplate.newBuilder().build()) + .addAllTraffic(new ArrayList()) + .setScaling(ServiceScaling.newBuilder().build()) + .setDefaultUriDisabled(true) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setLatestReadyRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .setLatestCreatedRevision( + RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) + .addAllTrafficStatuses(new ArrayList()) + .setUri("uri116076") + .addAllCustomAudiences(new ArrayList()) + .setSatisfiesPzs(true) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockServices.addResponse(resultOperation); + + Service service = Service.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Service actualResponse = client.updateServiceAsync(service, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateServiceRequest actualRequest = ((UpdateServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(service, actualRequest.getService()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateServiceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServices.addException(exception); + + try { + Service service = Service.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateServiceAsync(service, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void deleteServiceTest() throws Exception { Service expectedResponse = diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java index e12d31041e74..58a330d9b67d 100644 --- a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java +++ b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java @@ -271,7 +271,8 @@ default void getExecution( * * *
                  -     * Lists Executions from a Job.
                  +     * Lists Executions from a Job. Results are sorted by creation time,
                  +     * descending.
                        * 
                  */ default void listExecutions( @@ -363,7 +364,8 @@ public void getExecution( * * *
                  -     * Lists Executions from a Job.
                  +     * Lists Executions from a Job. Results are sorted by creation time,
                  +     * descending.
                        * 
                  */ public void listExecutions( @@ -445,7 +447,8 @@ public com.google.cloud.run.v2.Execution getExecution( * * *
                  -     * Lists Executions from a Job.
                  +     * Lists Executions from a Job. Results are sorted by creation time,
                  +     * descending.
                        * 
                  */ public com.google.cloud.run.v2.ListExecutionsResponse listExecutions( @@ -516,7 +519,8 @@ protected ExecutionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
                  -     * Lists Executions from a Job.
                  +     * Lists Executions from a Job. Results are sorted by creation time,
                  +     * descending.
                        * 
                  */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java index 44b7de9ebc22..d0dc6206d9f3 100644 --- a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java +++ b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java @@ -471,7 +471,7 @@ default void getJob( * * *
                  -     * Lists Jobs.
                  +     * Lists Jobs. Results are sorted by creation time, descending.
                        * 
                  */ default void listJobs( @@ -630,7 +630,7 @@ public void getJob( * * *
                  -     * Lists Jobs.
                  +     * Lists Jobs. Results are sorted by creation time, descending.
                        * 
                  */ public void listJobs( @@ -782,7 +782,7 @@ public com.google.cloud.run.v2.Job getJob(com.google.cloud.run.v2.GetJobRequest * * *
                  -     * Lists Jobs.
                  +     * Lists Jobs. Results are sorted by creation time, descending.
                        * 
                  */ public com.google.cloud.run.v2.ListJobsResponse listJobs( @@ -917,7 +917,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Lists Jobs. + * Lists Jobs. Results are sorted by creation time, descending. * */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java index 820d4070a5e0..99432869451f 100644 --- a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java +++ b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java @@ -228,7 +228,8 @@ default void getRevision( * * *
                  -     * Lists Revisions from a given Service, or from a given location.
                  +     * Lists Revisions from a given Service, or from a given location.  Results
                  +     * are sorted by creation time, descending.
                        * 
                  */ default void listRevisions( @@ -306,7 +307,8 @@ public void getRevision( * * *
                  -     * Lists Revisions from a given Service, or from a given location.
                  +     * Lists Revisions from a given Service, or from a given location.  Results
                  +     * are sorted by creation time, descending.
                        * 
                  */ public void listRevisions( @@ -372,7 +374,8 @@ public com.google.cloud.run.v2.Revision getRevision( * * *
                  -     * Lists Revisions from a given Service, or from a given location.
                  +     * Lists Revisions from a given Service, or from a given location.  Results
                  +     * are sorted by creation time, descending.
                        * 
                  */ public com.google.cloud.run.v2.ListRevisionsResponse listRevisions( @@ -430,7 +433,8 @@ protected RevisionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
                  -     * Lists Revisions from a given Service, or from a given location.
                  +     * Lists Revisions from a given Service, or from a given location.  Results
                  +     * are sorted by creation time, descending.
                        * 
                  */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java index eb70a807eed7..09098c8dea46 100644 --- a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java +++ b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java @@ -439,7 +439,7 @@ default void getService( * * *
                  -     * Lists Services.
                  +     * Lists Services. Results are sorted by creation time, descending.
                        * 
                  */ default void listServices( @@ -593,7 +593,7 @@ public void getService( * * *
                  -     * Lists Services.
                  +     * Lists Services. Results are sorted by creation time, descending.
                        * 
                  */ public void listServices( @@ -741,7 +741,7 @@ public com.google.cloud.run.v2.Service getService( * * *
                  -     * Lists Services.
                  +     * Lists Services. Results are sorted by creation time, descending.
                        * 
                  */ public com.google.cloud.run.v2.ListServicesResponse listServices( @@ -867,7 +867,7 @@ protected ServicesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
                  -     * Lists Services.
                  +     * Lists Services. Results are sorted by creation time, descending.
                        * 
                  */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java index dd55f9255414..77d42701f263 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java @@ -73,6 +73,7 @@ public enum BinauthzMethodCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { USE_DEFAULT(1), + POLICY(3), BINAUTHZMETHOD_NOT_SET(0); private final int value; @@ -93,6 +94,8 @@ public static BinauthzMethodCase forNumber(int value) { switch (value) { case 1: return USE_DEFAULT; + case 3: + return POLICY; case 0: return BINAUTHZMETHOD_NOT_SET; default: @@ -114,11 +117,11 @@ public BinauthzMethodCase getBinauthzMethodCase() { * * *
                  -   * If True, indicates to use the default project's binary authorization
                  -   * policy. If False, binary authorization will be disabled.
                  +   * Optional. If True, indicates to use the default project's binary
                  +   * authorization policy. If False, binary authorization will be disabled.
                      * 
                  * - * bool use_default = 1; + * bool use_default = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the useDefault field is set. */ @@ -130,11 +133,11 @@ public boolean hasUseDefault() { * * *
                  -   * If True, indicates to use the default project's binary authorization
                  -   * policy. If False, binary authorization will be disabled.
                  +   * Optional. If True, indicates to use the default project's binary
                  +   * authorization policy. If False, binary authorization will be disabled.
                      * 
                  * - * bool use_default = 1; + * bool use_default = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useDefault. */ @@ -146,6 +149,79 @@ public boolean getUseDefault() { return false; } + public static final int POLICY_FIELD_NUMBER = 3; + /** + * + * + *
                  +   * Optional. The path to a binary authorization policy.
                  +   * Format: projects/{project}/platforms/cloudRun/{policy-name}
                  +   * 
                  + * + * string policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policy field is set. + */ + public boolean hasPolicy() { + return binauthzMethodCase_ == 3; + } + /** + * + * + *
                  +   * Optional. The path to a binary authorization policy.
                  +   * Format: projects/{project}/platforms/cloudRun/{policy-name}
                  +   * 
                  + * + * string policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policy. + */ + public java.lang.String getPolicy() { + java.lang.Object ref = ""; + if (binauthzMethodCase_ == 3) { + ref = binauthzMethod_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (binauthzMethodCase_ == 3) { + binauthzMethod_ = s; + } + return s; + } + } + /** + * + * + *
                  +   * Optional. The path to a binary authorization policy.
                  +   * Format: projects/{project}/platforms/cloudRun/{policy-name}
                  +   * 
                  + * + * string policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policy. + */ + public com.google.protobuf.ByteString getPolicyBytes() { + java.lang.Object ref = ""; + if (binauthzMethodCase_ == 3) { + ref = binauthzMethod_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (binauthzMethodCase_ == 3) { + binauthzMethod_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int BREAKGLASS_JUSTIFICATION_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -154,13 +230,13 @@ public boolean getUseDefault() { * * *
                  -   * If present, indicates to use Breakglass using this justification.
                  +   * Optional. If present, indicates to use Breakglass using this justification.
                      * If use_default is False, then it must be empty.
                      * For more information on breakglass, see
                      * https://cloud.google.com/binary-authorization/docs/using-breakglass
                      * 
                  * - * string breakglass_justification = 2; + * string breakglass_justification = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The breakglassJustification. */ @@ -180,13 +256,13 @@ public java.lang.String getBreakglassJustification() { * * *
                  -   * If present, indicates to use Breakglass using this justification.
                  +   * Optional. If present, indicates to use Breakglass using this justification.
                      * If use_default is False, then it must be empty.
                      * For more information on breakglass, see
                      * https://cloud.google.com/binary-authorization/docs/using-breakglass
                      * 
                  * - * string breakglass_justification = 2; + * string breakglass_justification = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for breakglassJustification. */ @@ -223,6 +299,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breakglassJustification_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, breakglassJustification_); } + if (binauthzMethodCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, binauthzMethod_); + } getUnknownFields().writeTo(output); } @@ -240,6 +319,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(breakglassJustification_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, breakglassJustification_); } + if (binauthzMethodCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, binauthzMethod_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -262,6 +344,9 @@ public boolean equals(final java.lang.Object obj) { case 1: if (getUseDefault() != other.getUseDefault()) return false; break; + case 3: + if (!getPolicy().equals(other.getPolicy())) return false; + break; case 0: default: } @@ -283,6 +368,10 @@ public int hashCode() { hash = (37 * hash) + USE_DEFAULT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseDefault()); break; + case 3: + hash = (37 * hash) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + getPolicy().hashCode(); + break; case 0: default: } @@ -465,7 +554,7 @@ public com.google.cloud.run.v2.BinaryAuthorization buildPartial() { private void buildPartial0(com.google.cloud.run.v2.BinaryAuthorization result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.breakglassJustification_ = breakglassJustification_; } } @@ -522,7 +611,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.BinaryAuthorization other) { if (other == com.google.cloud.run.v2.BinaryAuthorization.getDefaultInstance()) return this; if (!other.getBreakglassJustification().isEmpty()) { breakglassJustification_ = other.breakglassJustification_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } switch (other.getBinauthzMethodCase()) { @@ -531,6 +620,13 @@ public Builder mergeFrom(com.google.cloud.run.v2.BinaryAuthorization other) { setUseDefault(other.getUseDefault()); break; } + case POLICY: + { + binauthzMethodCase_ = 3; + binauthzMethod_ = other.binauthzMethod_; + onChanged(); + break; + } case BINAUTHZMETHOD_NOT_SET: { break; @@ -571,9 +667,16 @@ public Builder mergeFrom( case 18: { breakglassJustification_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + binauthzMethodCase_ = 3; + binauthzMethod_ = s; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -611,11 +714,11 @@ public Builder clearBinauthzMethod() { * * *
                  -     * If True, indicates to use the default project's binary authorization
                  -     * policy. If False, binary authorization will be disabled.
                  +     * Optional. If True, indicates to use the default project's binary
                  +     * authorization policy. If False, binary authorization will be disabled.
                        * 
                  * - * bool use_default = 1; + * bool use_default = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the useDefault field is set. */ @@ -626,11 +729,11 @@ public boolean hasUseDefault() { * * *
                  -     * If True, indicates to use the default project's binary authorization
                  -     * policy. If False, binary authorization will be disabled.
                  +     * Optional. If True, indicates to use the default project's binary
                  +     * authorization policy. If False, binary authorization will be disabled.
                        * 
                  * - * bool use_default = 1; + * bool use_default = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useDefault. */ @@ -644,11 +747,11 @@ public boolean getUseDefault() { * * *
                  -     * If True, indicates to use the default project's binary authorization
                  -     * policy. If False, binary authorization will be disabled.
                  +     * Optional. If True, indicates to use the default project's binary
                  +     * authorization policy. If False, binary authorization will be disabled.
                        * 
                  * - * bool use_default = 1; + * bool use_default = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The useDefault to set. * @return This builder for chaining. @@ -664,11 +767,11 @@ public Builder setUseDefault(boolean value) { * * *
                  -     * If True, indicates to use the default project's binary authorization
                  -     * policy. If False, binary authorization will be disabled.
                  +     * Optional. If True, indicates to use the default project's binary
                  +     * authorization policy. If False, binary authorization will be disabled.
                        * 
                  * - * bool use_default = 1; + * bool use_default = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -681,18 +784,158 @@ public Builder clearUseDefault() { return this; } + /** + * + * + *
                  +     * Optional. The path to a binary authorization policy.
                  +     * Format: projects/{project}/platforms/cloudRun/{policy-name}
                  +     * 
                  + * + * string policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policy field is set. + */ + @java.lang.Override + public boolean hasPolicy() { + return binauthzMethodCase_ == 3; + } + /** + * + * + *
                  +     * Optional. The path to a binary authorization policy.
                  +     * Format: projects/{project}/platforms/cloudRun/{policy-name}
                  +     * 
                  + * + * string policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policy. + */ + @java.lang.Override + public java.lang.String getPolicy() { + java.lang.Object ref = ""; + if (binauthzMethodCase_ == 3) { + ref = binauthzMethod_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (binauthzMethodCase_ == 3) { + binauthzMethod_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * Optional. The path to a binary authorization policy.
                  +     * Format: projects/{project}/platforms/cloudRun/{policy-name}
                  +     * 
                  + * + * string policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyBytes() { + java.lang.Object ref = ""; + if (binauthzMethodCase_ == 3) { + ref = binauthzMethod_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (binauthzMethodCase_ == 3) { + binauthzMethod_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * Optional. The path to a binary authorization policy.
                  +     * Format: projects/{project}/platforms/cloudRun/{policy-name}
                  +     * 
                  + * + * string policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The policy to set. + * @return This builder for chaining. + */ + public Builder setPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + binauthzMethodCase_ = 3; + binauthzMethod_ = value; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. The path to a binary authorization policy.
                  +     * Format: projects/{project}/platforms/cloudRun/{policy-name}
                  +     * 
                  + * + * string policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPolicy() { + if (binauthzMethodCase_ == 3) { + binauthzMethodCase_ = 0; + binauthzMethod_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Optional. The path to a binary authorization policy.
                  +     * Format: projects/{project}/platforms/cloudRun/{policy-name}
                  +     * 
                  + * + * string policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for policy to set. + * @return This builder for chaining. + */ + public Builder setPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + binauthzMethodCase_ = 3; + binauthzMethod_ = value; + onChanged(); + return this; + } + private java.lang.Object breakglassJustification_ = ""; /** * * *
                  -     * If present, indicates to use Breakglass using this justification.
                  +     * Optional. If present, indicates to use Breakglass using this justification.
                        * If use_default is False, then it must be empty.
                        * For more information on breakglass, see
                        * https://cloud.google.com/binary-authorization/docs/using-breakglass
                        * 
                  * - * string breakglass_justification = 2; + * string breakglass_justification = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The breakglassJustification. */ @@ -711,13 +954,13 @@ public java.lang.String getBreakglassJustification() { * * *
                  -     * If present, indicates to use Breakglass using this justification.
                  +     * Optional. If present, indicates to use Breakglass using this justification.
                        * If use_default is False, then it must be empty.
                        * For more information on breakglass, see
                        * https://cloud.google.com/binary-authorization/docs/using-breakglass
                        * 
                  * - * string breakglass_justification = 2; + * string breakglass_justification = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for breakglassJustification. */ @@ -736,13 +979,13 @@ public com.google.protobuf.ByteString getBreakglassJustificationBytes() { * * *
                  -     * If present, indicates to use Breakglass using this justification.
                  +     * Optional. If present, indicates to use Breakglass using this justification.
                        * If use_default is False, then it must be empty.
                        * For more information on breakglass, see
                        * https://cloud.google.com/binary-authorization/docs/using-breakglass
                        * 
                  * - * string breakglass_justification = 2; + * string breakglass_justification = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The breakglassJustification to set. * @return This builder for chaining. @@ -752,7 +995,7 @@ public Builder setBreakglassJustification(java.lang.String value) { throw new NullPointerException(); } breakglassJustification_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -760,19 +1003,19 @@ public Builder setBreakglassJustification(java.lang.String value) { * * *
                  -     * If present, indicates to use Breakglass using this justification.
                  +     * Optional. If present, indicates to use Breakglass using this justification.
                        * If use_default is False, then it must be empty.
                        * For more information on breakglass, see
                        * https://cloud.google.com/binary-authorization/docs/using-breakglass
                        * 
                  * - * string breakglass_justification = 2; + * string breakglass_justification = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearBreakglassJustification() { breakglassJustification_ = getDefaultInstance().getBreakglassJustification(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -780,13 +1023,13 @@ public Builder clearBreakglassJustification() { * * *
                  -     * If present, indicates to use Breakglass using this justification.
                  +     * Optional. If present, indicates to use Breakglass using this justification.
                        * If use_default is False, then it must be empty.
                        * For more information on breakglass, see
                        * https://cloud.google.com/binary-authorization/docs/using-breakglass
                        * 
                  * - * string breakglass_justification = 2; + * string breakglass_justification = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for breakglassJustification to set. * @return This builder for chaining. @@ -797,7 +1040,7 @@ public Builder setBreakglassJustificationBytes(com.google.protobuf.ByteString va } checkByteStringIsUtf8(value); breakglassJustification_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java index 1f5a49f26ad3..5a5d2764d808 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java @@ -28,11 +28,11 @@ public interface BinaryAuthorizationOrBuilder * * *
                  -   * If True, indicates to use the default project's binary authorization
                  -   * policy. If False, binary authorization will be disabled.
                  +   * Optional. If True, indicates to use the default project's binary
                  +   * authorization policy. If False, binary authorization will be disabled.
                      * 
                  * - * bool use_default = 1; + * bool use_default = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the useDefault field is set. */ @@ -41,11 +41,11 @@ public interface BinaryAuthorizationOrBuilder * * *
                  -   * If True, indicates to use the default project's binary authorization
                  -   * policy. If False, binary authorization will be disabled.
                  +   * Optional. If True, indicates to use the default project's binary
                  +   * authorization policy. If False, binary authorization will be disabled.
                      * 
                  * - * bool use_default = 1; + * bool use_default = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useDefault. */ @@ -55,13 +55,53 @@ public interface BinaryAuthorizationOrBuilder * * *
                  -   * If present, indicates to use Breakglass using this justification.
                  +   * Optional. The path to a binary authorization policy.
                  +   * Format: projects/{project}/platforms/cloudRun/{policy-name}
                  +   * 
                  + * + * string policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policy field is set. + */ + boolean hasPolicy(); + /** + * + * + *
                  +   * Optional. The path to a binary authorization policy.
                  +   * Format: projects/{project}/platforms/cloudRun/{policy-name}
                  +   * 
                  + * + * string policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policy. + */ + java.lang.String getPolicy(); + /** + * + * + *
                  +   * Optional. The path to a binary authorization policy.
                  +   * Format: projects/{project}/platforms/cloudRun/{policy-name}
                  +   * 
                  + * + * string policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policy. + */ + com.google.protobuf.ByteString getPolicyBytes(); + + /** + * + * + *
                  +   * Optional. If present, indicates to use Breakglass using this justification.
                      * If use_default is False, then it must be empty.
                      * For more information on breakglass, see
                      * https://cloud.google.com/binary-authorization/docs/using-breakglass
                      * 
                  * - * string breakglass_justification = 2; + * string breakglass_justification = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The breakglassJustification. */ @@ -70,13 +110,13 @@ public interface BinaryAuthorizationOrBuilder * * *
                  -   * If present, indicates to use Breakglass using this justification.
                  +   * Optional. If present, indicates to use Breakglass using this justification.
                      * If use_default is False, then it must be empty.
                      * For more information on breakglass, see
                      * https://cloud.google.com/binary-authorization/docs/using-breakglass
                      * 
                  * - * string breakglass_justification = 2; + * string breakglass_justification = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for breakglassJustification. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java index af8272855bf8..a61cac36e1e1 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java @@ -1773,10 +1773,12 @@ public com.google.cloud.run.v2.Condition.Severity getSeverity() { * * *
                  -   * A common (service-level) reason for this condition.
                  +   * Output only. A common (service-level) reason for this condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * + * .google.cloud.run.v2.Condition.CommonReason reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the reason field is set. */ @@ -1787,10 +1789,12 @@ public boolean hasReason() { * * *
                  -   * A common (service-level) reason for this condition.
                  +   * Output only. A common (service-level) reason for this condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * + * .google.cloud.run.v2.Condition.CommonReason reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for reason. */ @@ -1804,10 +1808,12 @@ public int getReasonValue() { * * *
                  -   * A common (service-level) reason for this condition.
                  +   * Output only. A common (service-level) reason for this condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * + * .google.cloud.run.v2.Condition.CommonReason reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The reason. */ @@ -1825,10 +1831,12 @@ public com.google.cloud.run.v2.Condition.CommonReason getReason() { * * *
                  -   * A reason for the revision condition.
                  +   * Output only. A reason for the revision condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * + * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the revisionReason field is set. */ @@ -1839,10 +1847,12 @@ public boolean hasRevisionReason() { * * *
                  -   * A reason for the revision condition.
                  +   * Output only. A reason for the revision condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * + * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for revisionReason. */ @@ -1856,10 +1866,12 @@ public int getRevisionReasonValue() { * * *
                  -   * A reason for the revision condition.
                  +   * Output only. A reason for the revision condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * + * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The revisionReason. */ @@ -1879,10 +1891,12 @@ public com.google.cloud.run.v2.Condition.RevisionReason getRevisionReason() { * * *
                  -   * A reason for the execution condition.
                  +   * Output only. A reason for the execution condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * + * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the executionReason field is set. */ @@ -1893,10 +1907,12 @@ public boolean hasExecutionReason() { * * *
                  -   * A reason for the execution condition.
                  +   * Output only. A reason for the execution condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * + * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for executionReason. */ @@ -1910,10 +1926,12 @@ public int getExecutionReasonValue() { * * *
                  -   * A reason for the execution condition.
                  +   * Output only. A reason for the execution condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * + * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The executionReason. */ @@ -3097,10 +3115,12 @@ public Builder clearSeverity() { * * *
                  -     * A common (service-level) reason for this condition.
                  +     * Output only. A common (service-level) reason for this condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * + * .google.cloud.run.v2.Condition.CommonReason reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the reason field is set. */ @@ -3112,10 +3132,12 @@ public boolean hasReason() { * * *
                  -     * A common (service-level) reason for this condition.
                  +     * Output only. A common (service-level) reason for this condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * + * .google.cloud.run.v2.Condition.CommonReason reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for reason. */ @@ -3130,10 +3152,12 @@ public int getReasonValue() { * * *
                  -     * A common (service-level) reason for this condition.
                  +     * Output only. A common (service-level) reason for this condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * + * .google.cloud.run.v2.Condition.CommonReason reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. @@ -3148,10 +3172,12 @@ public Builder setReasonValue(int value) { * * *
                  -     * A common (service-level) reason for this condition.
                  +     * Output only. A common (service-level) reason for this condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * + * .google.cloud.run.v2.Condition.CommonReason reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The reason. */ @@ -3170,10 +3196,12 @@ public com.google.cloud.run.v2.Condition.CommonReason getReason() { * * *
                  -     * A common (service-level) reason for this condition.
                  +     * Output only. A common (service-level) reason for this condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * + * .google.cloud.run.v2.Condition.CommonReason reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The reason to set. * @return This builder for chaining. @@ -3191,10 +3219,12 @@ public Builder setReason(com.google.cloud.run.v2.Condition.CommonReason value) { * * *
                  -     * A common (service-level) reason for this condition.
                  +     * Output only. A common (service-level) reason for this condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * + * .google.cloud.run.v2.Condition.CommonReason reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -3211,10 +3241,12 @@ public Builder clearReason() { * * *
                  -     * A reason for the revision condition.
                  +     * Output only. A reason for the revision condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * + * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the revisionReason field is set. */ @@ -3226,10 +3258,12 @@ public boolean hasRevisionReason() { * * *
                  -     * A reason for the revision condition.
                  +     * Output only. A reason for the revision condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * + * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for revisionReason. */ @@ -3244,10 +3278,12 @@ public int getRevisionReasonValue() { * * *
                  -     * A reason for the revision condition.
                  +     * Output only. A reason for the revision condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * + * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for revisionReason to set. * @return This builder for chaining. @@ -3262,10 +3298,12 @@ public Builder setRevisionReasonValue(int value) { * * *
                  -     * A reason for the revision condition.
                  +     * Output only. A reason for the revision condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * + * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The revisionReason. */ @@ -3285,10 +3323,12 @@ public com.google.cloud.run.v2.Condition.RevisionReason getRevisionReason() { * * *
                  -     * A reason for the revision condition.
                  +     * Output only. A reason for the revision condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * + * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The revisionReason to set. * @return This builder for chaining. @@ -3306,10 +3346,12 @@ public Builder setRevisionReason(com.google.cloud.run.v2.Condition.RevisionReaso * * *
                  -     * A reason for the revision condition.
                  +     * Output only. A reason for the revision condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * + * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -3326,10 +3368,12 @@ public Builder clearRevisionReason() { * * *
                  -     * A reason for the execution condition.
                  +     * Output only. A reason for the execution condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * + * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the executionReason field is set. */ @@ -3341,10 +3385,12 @@ public boolean hasExecutionReason() { * * *
                  -     * A reason for the execution condition.
                  +     * Output only. A reason for the execution condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * + * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for executionReason. */ @@ -3359,10 +3405,12 @@ public int getExecutionReasonValue() { * * *
                  -     * A reason for the execution condition.
                  +     * Output only. A reason for the execution condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * + * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for executionReason to set. * @return This builder for chaining. @@ -3377,10 +3425,12 @@ public Builder setExecutionReasonValue(int value) { * * *
                  -     * A reason for the execution condition.
                  +     * Output only. A reason for the execution condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * + * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The executionReason. */ @@ -3400,10 +3450,12 @@ public com.google.cloud.run.v2.Condition.ExecutionReason getExecutionReason() { * * *
                  -     * A reason for the execution condition.
                  +     * Output only. A reason for the execution condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * + * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The executionReason to set. * @return This builder for chaining. @@ -3421,10 +3473,12 @@ public Builder setExecutionReason(com.google.cloud.run.v2.Condition.ExecutionRea * * *
                  -     * A reason for the execution condition.
                  +     * Output only. A reason for the execution condition.
                        * 
                  * - * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * + * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java index d9a660ac9330..ddf5d4ceb002 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java @@ -171,10 +171,12 @@ public interface ConditionOrBuilder * * *
                  -   * A common (service-level) reason for this condition.
                  +   * Output only. A common (service-level) reason for this condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * + * .google.cloud.run.v2.Condition.CommonReason reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the reason field is set. */ @@ -183,10 +185,12 @@ public interface ConditionOrBuilder * * *
                  -   * A common (service-level) reason for this condition.
                  +   * Output only. A common (service-level) reason for this condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * + * .google.cloud.run.v2.Condition.CommonReason reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for reason. */ @@ -195,10 +199,12 @@ public interface ConditionOrBuilder * * *
                  -   * A common (service-level) reason for this condition.
                  +   * Output only. A common (service-level) reason for this condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * + * .google.cloud.run.v2.Condition.CommonReason reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The reason. */ @@ -208,10 +214,12 @@ public interface ConditionOrBuilder * * *
                  -   * A reason for the revision condition.
                  +   * Output only. A reason for the revision condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * + * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the revisionReason field is set. */ @@ -220,10 +228,12 @@ public interface ConditionOrBuilder * * *
                  -   * A reason for the revision condition.
                  +   * Output only. A reason for the revision condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * + * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for revisionReason. */ @@ -232,10 +242,12 @@ public interface ConditionOrBuilder * * *
                  -   * A reason for the revision condition.
                  +   * Output only. A reason for the revision condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * + * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The revisionReason. */ @@ -245,10 +257,12 @@ public interface ConditionOrBuilder * * *
                  -   * A reason for the execution condition.
                  +   * Output only. A reason for the execution condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * + * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the executionReason field is set. */ @@ -257,10 +271,12 @@ public interface ConditionOrBuilder * * *
                  -   * A reason for the execution condition.
                  +   * Output only. A reason for the execution condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * + * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for executionReason. */ @@ -269,10 +285,12 @@ public interface ConditionOrBuilder * * *
                  -   * A reason for the execution condition.
                  +   * Output only. A reason for the execution condition.
                      * 
                  * - * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * + * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The executionReason. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java index 4d56b0595d28..804d887ed061 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java @@ -42,54 +42,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n#google/cloud/run/v2/condition.proto\022\023g" - + "oogle.cloud.run.v2\032\037google/protobuf/time" - + "stamp.proto\"\235\014\n\tCondition\022\014\n\004type\030\001 \001(\t\022" - + "3\n\005state\030\002 \001(\0162$.google.cloud.run.v2.Con" - + "dition.State\022\017\n\007message\030\003 \001(\t\0228\n\024last_tr" - + "ansition_time\030\004 \001(\0132\032.google.protobuf.Ti" - + "mestamp\0229\n\010severity\030\005 \001(\0162\'.google.cloud" - + ".run.v2.Condition.Severity\022=\n\006reason\030\006 \001" - + "(\0162+.google.cloud.run.v2.Condition.Commo" - + "nReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goo" - + "gle.cloud.run.v2.Condition.RevisionReaso" - + "nH\000\022J\n\020execution_reason\030\013 \001(\0162..google.c" - + "loud.run.v2.Condition.ExecutionReasonH\000\"" - + "\177\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDI" - + "TION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020" - + "\002\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUC" - + "CEEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECI" - + "FIED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003" - + "\"\262\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEF" - + "INED\020\000\022\013\n\007UNKNOWN\020\001\022\023\n\017REVISION_FAILED\020\003" - + "\022\036\n\032PROGRESS_DEADLINE_EXCEEDED\020\004\022\025\n\021CONT" - + "AINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION_" - + "DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZED" - + "\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHEC" - + "K_FAILED\020\t\022$\n ENCRYPTION_KEY_PERMISSION_" - + "DENIED\020\n\022\037\n\033ENCRYPTION_KEY_CHECK_FAILED\020" - + "\013\022\037\n\033SECRETS_ACCESS_CHECK_FAILED\020\014\022\031\n\025WA" - + "ITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETRY" - + "\020\016\022\023\n\017POSTPONED_RETRY\020\017\022\014\n\010INTERNAL\020\020\"\312\002" - + "\n\016RevisionReason\022\035\n\031REVISION_REASON_UNDE" - + "FINED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RESERVE\020\002\022\013\n\007RET" - + "IRED\020\003\022\014\n\010RETIRING\020\004\022\016\n\nRECREATING\020\005\022 \n\034" - + "HEALTH_CHECK_CONTAINER_ERROR\020\006\022$\n CUSTOM" - + "IZED_PATH_RESPONSE_PENDING\020\007\022!\n\035MIN_INST" - + "ANCES_NOT_PROVISIONED\020\010\022!\n\035ACTIVE_REVISI" - + "ON_LIMIT_REACHED\020\t\022\021\n\rNO_DEPLOYMENT\020\n\022\030\n" - + "\024HEALTH_CHECK_SKIPPED\020\013\022\031\n\025MIN_INSTANCES" - + "_WARMING\020\014\"\233\001\n\017ExecutionReason\022\036\n\032EXECUT" - + "ION_REASON_UNDEFINED\020\000\022$\n JOB_STATUS_SER" - + "VICE_POLLING_ERROR\020\001\022\026\n\022NON_ZERO_EXIT_CO" - + "DE\020\002\022\r\n\tCANCELLED\020\003\022\016\n\nCANCELLING\020\004\022\013\n\007D" - + "ELETED\020\005B\t\n\007reasonsBV\n\027com.google.cloud." - + "run.v2B\016ConditionProtoP\001Z)cloud.google.c" - + "om/go/run/apiv2/runpb;runpbb\006proto3" + + "oogle.cloud.run.v2\032\037google/api/field_beh" + + "avior.proto\032\037google/protobuf/timestamp.p" + + "roto\"\254\014\n\tCondition\022\014\n\004type\030\001 \001(\t\0223\n\005stat" + + "e\030\002 \001(\0162$.google.cloud.run.v2.Condition." + + "State\022\017\n\007message\030\003 \001(\t\0228\n\024last_transitio" + + "n_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "\0229\n\010severity\030\005 \001(\0162\'.google.cloud.run.v2" + + ".Condition.Severity\022B\n\006reason\030\006 \001(\0162+.go" + + "ogle.cloud.run.v2.Condition.CommonReason" + + "B\003\340A\003H\000\022M\n\017revision_reason\030\t \001(\0162-.googl" + + "e.cloud.run.v2.Condition.RevisionReasonB" + + "\003\340A\003H\000\022O\n\020execution_reason\030\013 \001(\0162..googl" + + "e.cloud.run.v2.Condition.ExecutionReason" + + "B\003\340A\003H\000\"\177\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\025\n\021CONDITION_PENDING\020\001\022\031\n\025CONDITION_RECO" + + "NCILING\020\002\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDI" + + "TION_SUCCEEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY" + + "_UNSPECIFIED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010" + + "\n\004INFO\020\003\"\262\003\n\014CommonReason\022\033\n\027COMMON_REAS" + + "ON_UNDEFINED\020\000\022\013\n\007UNKNOWN\020\001\022\023\n\017REVISION_" + + "FAILED\020\003\022\036\n\032PROGRESS_DEADLINE_EXCEEDED\020\004" + + "\022\025\n\021CONTAINER_MISSING\020\006\022\037\n\033CONTAINER_PER" + + "MISSION_DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAU" + + "THORIZED\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZAT" + + "ION_CHECK_FAILED\020\t\022$\n ENCRYPTION_KEY_PER" + + "MISSION_DENIED\020\n\022\037\n\033ENCRYPTION_KEY_CHECK" + + "_FAILED\020\013\022\037\n\033SECRETS_ACCESS_CHECK_FAILED" + + "\020\014\022\031\n\025WAITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIA" + + "TE_RETRY\020\016\022\023\n\017POSTPONED_RETRY\020\017\022\014\n\010INTER" + + "NAL\020\020\"\312\002\n\016RevisionReason\022\035\n\031REVISION_REA" + + "SON_UNDEFINED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RESERVE\020" + + "\002\022\013\n\007RETIRED\020\003\022\014\n\010RETIRING\020\004\022\016\n\nRECREATI" + + "NG\020\005\022 \n\034HEALTH_CHECK_CONTAINER_ERROR\020\006\022$" + + "\n CUSTOMIZED_PATH_RESPONSE_PENDING\020\007\022!\n\035" + + "MIN_INSTANCES_NOT_PROVISIONED\020\010\022!\n\035ACTIV" + + "E_REVISION_LIMIT_REACHED\020\t\022\021\n\rNO_DEPLOYM" + + "ENT\020\n\022\030\n\024HEALTH_CHECK_SKIPPED\020\013\022\031\n\025MIN_I" + + "NSTANCES_WARMING\020\014\"\233\001\n\017ExecutionReason\022\036" + + "\n\032EXECUTION_REASON_UNDEFINED\020\000\022$\n JOB_ST" + + "ATUS_SERVICE_POLLING_ERROR\020\001\022\026\n\022NON_ZERO" + + "_EXIT_CODE\020\002\022\r\n\tCANCELLED\020\003\022\016\n\nCANCELLIN" + + "G\020\004\022\013\n\007DELETED\020\005B\t\n\007reasonsBV\n\027com.googl" + + "e.cloud.run.v2B\016ConditionProtoP\001Z)cloud." + + "google.com/go/run/apiv2/runpb;runpbb\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_run_v2_Condition_descriptor = @@ -108,6 +111,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionReason", "Reasons", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.java index be011fa97bba..cbbcf15c79a9 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.java @@ -41,6 +41,7 @@ private ExecutionReference(com.google.protobuf.GeneratedMessageV3.Builder bui private ExecutionReference() { name_ = ""; + completionStatus_ = 0; } @java.lang.Override @@ -64,6 +65,231 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.run.v2.ExecutionReference.Builder.class); } + /** + * + * + *
                  +   * Possible execution completion status.
                  +   * 
                  + * + * Protobuf enum {@code google.cloud.run.v2.ExecutionReference.CompletionStatus} + */ + public enum CompletionStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                  +     * The default value. This value is used if the state is omitted.
                  +     * 
                  + * + * COMPLETION_STATUS_UNSPECIFIED = 0; + */ + COMPLETION_STATUS_UNSPECIFIED(0), + /** + * + * + *
                  +     * Job execution has succeeded.
                  +     * 
                  + * + * EXECUTION_SUCCEEDED = 1; + */ + EXECUTION_SUCCEEDED(1), + /** + * + * + *
                  +     * Job execution has failed.
                  +     * 
                  + * + * EXECUTION_FAILED = 2; + */ + EXECUTION_FAILED(2), + /** + * + * + *
                  +     * Job execution is running normally.
                  +     * 
                  + * + * EXECUTION_RUNNING = 3; + */ + EXECUTION_RUNNING(3), + /** + * + * + *
                  +     * Waiting for backing resources to be provisioned.
                  +     * 
                  + * + * EXECUTION_PENDING = 4; + */ + EXECUTION_PENDING(4), + /** + * + * + *
                  +     * Job execution has been cancelled by the user.
                  +     * 
                  + * + * EXECUTION_CANCELLED = 5; + */ + EXECUTION_CANCELLED(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                  +     * The default value. This value is used if the state is omitted.
                  +     * 
                  + * + * COMPLETION_STATUS_UNSPECIFIED = 0; + */ + public static final int COMPLETION_STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
                  +     * Job execution has succeeded.
                  +     * 
                  + * + * EXECUTION_SUCCEEDED = 1; + */ + public static final int EXECUTION_SUCCEEDED_VALUE = 1; + /** + * + * + *
                  +     * Job execution has failed.
                  +     * 
                  + * + * EXECUTION_FAILED = 2; + */ + public static final int EXECUTION_FAILED_VALUE = 2; + /** + * + * + *
                  +     * Job execution is running normally.
                  +     * 
                  + * + * EXECUTION_RUNNING = 3; + */ + public static final int EXECUTION_RUNNING_VALUE = 3; + /** + * + * + *
                  +     * Waiting for backing resources to be provisioned.
                  +     * 
                  + * + * EXECUTION_PENDING = 4; + */ + public static final int EXECUTION_PENDING_VALUE = 4; + /** + * + * + *
                  +     * Job execution has been cancelled by the user.
                  +     * 
                  + * + * EXECUTION_CANCELLED = 5; + */ + public static final int EXECUTION_CANCELLED_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CompletionStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CompletionStatus forNumber(int value) { + switch (value) { + case 0: + return COMPLETION_STATUS_UNSPECIFIED; + case 1: + return EXECUTION_SUCCEEDED; + case 2: + return EXECUTION_FAILED; + case 3: + return EXECUTION_RUNNING; + case 4: + return EXECUTION_PENDING; + case 5: + return EXECUTION_CANCELLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompletionStatus findValueByNumber(int number) { + return CompletionStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.run.v2.ExecutionReference.getDescriptor().getEnumTypes().get(0); + } + + private static final CompletionStatus[] VALUES = values(); + + public static CompletionStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CompletionStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.ExecutionReference.CompletionStatus) + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -212,6 +438,92 @@ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { : completionTime_; } + public static final int DELETE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp deleteTime_; + /** + * + * + *
                  +   * The deletion time of the execution. It is only
                  +   * populated as a response to a Delete request.
                  +   * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                  +   * The deletion time of the execution. It is only
                  +   * populated as a response to a Delete request.
                  +   * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + /** + * + * + *
                  +   * The deletion time of the execution. It is only
                  +   * populated as a response to a Delete request.
                  +   * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int COMPLETION_STATUS_FIELD_NUMBER = 4; + private int completionStatus_ = 0; + /** + * + * + *
                  +   * Status for the execution completion.
                  +   * 
                  + * + * .google.cloud.run.v2.ExecutionReference.CompletionStatus completion_status = 4; + * + * @return The enum numeric value on the wire for completionStatus. + */ + @java.lang.Override + public int getCompletionStatusValue() { + return completionStatus_; + } + /** + * + * + *
                  +   * Status for the execution completion.
                  +   * 
                  + * + * .google.cloud.run.v2.ExecutionReference.CompletionStatus completion_status = 4; + * + * @return The completionStatus. + */ + @java.lang.Override + public com.google.cloud.run.v2.ExecutionReference.CompletionStatus getCompletionStatus() { + com.google.cloud.run.v2.ExecutionReference.CompletionStatus result = + com.google.cloud.run.v2.ExecutionReference.CompletionStatus.forNumber(completionStatus_); + return result == null + ? com.google.cloud.run.v2.ExecutionReference.CompletionStatus.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -235,6 +547,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getCompletionTime()); } + if (completionStatus_ + != com.google.cloud.run.v2.ExecutionReference.CompletionStatus.COMPLETION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, completionStatus_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getDeleteTime()); + } getUnknownFields().writeTo(output); } @@ -253,6 +573,14 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCompletionTime()); } + if (completionStatus_ + != com.google.cloud.run.v2.ExecutionReference.CompletionStatus.COMPLETION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, completionStatus_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDeleteTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -278,6 +606,11 @@ public boolean equals(final java.lang.Object obj) { if (hasCompletionTime()) { if (!getCompletionTime().equals(other.getCompletionTime())) return false; } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (completionStatus_ != other.completionStatus_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,6 +632,12 @@ public int hashCode() { hash = (37 * hash) + COMPLETION_TIME_FIELD_NUMBER; hash = (53 * hash) + getCompletionTime().hashCode(); } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + hash = (37 * hash) + COMPLETION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + completionStatus_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -442,6 +781,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getCompletionTimeFieldBuilder(); + getDeleteTimeFieldBuilder(); } } @@ -460,6 +800,12 @@ public Builder clear() { completionTimeBuilder_.dispose(); completionTimeBuilder_ = null; } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + completionStatus_ = 0; return this; } @@ -509,6 +855,13 @@ private void buildPartial0(com.google.cloud.run.v2.ExecutionReference result) { completionTimeBuilder_ == null ? completionTime_ : completionTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.completionStatus_ = completionStatus_; + } result.bitField0_ |= to_bitField0_; } @@ -568,6 +921,12 @@ public Builder mergeFrom(com.google.cloud.run.v2.ExecutionReference other) { if (other.hasCompletionTime()) { mergeCompletionTime(other.getCompletionTime()); } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.completionStatus_ != 0) { + setCompletionStatusValue(other.getCompletionStatusValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -612,6 +971,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 32: + { + completionStatus_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1107,6 +1478,293 @@ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { return completionTimeBuilder_; } + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + /** + * + * + *
                  +     * The deletion time of the execution. It is only
                  +     * populated as a response to a Delete request.
                  +     * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                  +     * The deletion time of the execution. It is only
                  +     * populated as a response to a Delete request.
                  +     * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * The deletion time of the execution. It is only
                  +     * populated as a response to a Delete request.
                  +     * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                  +     * The deletion time of the execution. It is only
                  +     * populated as a response to a Delete request.
                  +     * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                  +     * The deletion time of the execution. It is only
                  +     * populated as a response to a Delete request.
                  +     * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + if (deleteTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * The deletion time of the execution. It is only
                  +     * populated as a response to a Delete request.
                  +     * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000008); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * The deletion time of the execution. It is only
                  +     * populated as a response to a Delete request.
                  +     * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDeleteTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * The deletion time of the execution. It is only
                  +     * populated as a response to a Delete request.
                  +     * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + /** + * + * + *
                  +     * The deletion time of the execution. It is only
                  +     * populated as a response to a Delete request.
                  +     * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private int completionStatus_ = 0; + /** + * + * + *
                  +     * Status for the execution completion.
                  +     * 
                  + * + * .google.cloud.run.v2.ExecutionReference.CompletionStatus completion_status = 4; + * + * @return The enum numeric value on the wire for completionStatus. + */ + @java.lang.Override + public int getCompletionStatusValue() { + return completionStatus_; + } + /** + * + * + *
                  +     * Status for the execution completion.
                  +     * 
                  + * + * .google.cloud.run.v2.ExecutionReference.CompletionStatus completion_status = 4; + * + * @param value The enum numeric value on the wire for completionStatus to set. + * @return This builder for chaining. + */ + public Builder setCompletionStatusValue(int value) { + completionStatus_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Status for the execution completion.
                  +     * 
                  + * + * .google.cloud.run.v2.ExecutionReference.CompletionStatus completion_status = 4; + * + * @return The completionStatus. + */ + @java.lang.Override + public com.google.cloud.run.v2.ExecutionReference.CompletionStatus getCompletionStatus() { + com.google.cloud.run.v2.ExecutionReference.CompletionStatus result = + com.google.cloud.run.v2.ExecutionReference.CompletionStatus.forNumber(completionStatus_); + return result == null + ? com.google.cloud.run.v2.ExecutionReference.CompletionStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
                  +     * Status for the execution completion.
                  +     * 
                  + * + * .google.cloud.run.v2.ExecutionReference.CompletionStatus completion_status = 4; + * + * @param value The completionStatus to set. + * @return This builder for chaining. + */ + public Builder setCompletionStatus( + com.google.cloud.run.v2.ExecutionReference.CompletionStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + completionStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Status for the execution completion.
                  +     * 
                  + * + * .google.cloud.run.v2.ExecutionReference.CompletionStatus completion_status = 4; + * + * @return This builder for chaining. + */ + public Builder clearCompletionStatus() { + bitField0_ = (bitField0_ & ~0x00000010); + completionStatus_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java index c3d56fb8073d..51546aa45346 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java @@ -118,4 +118,67 @@ public interface ExecutionReferenceOrBuilder * .google.protobuf.Timestamp completion_time = 3; */ com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder(); + + /** + * + * + *
                  +   * The deletion time of the execution. It is only
                  +   * populated as a response to a Delete request.
                  +   * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + /** + * + * + *
                  +   * The deletion time of the execution. It is only
                  +   * populated as a response to a Delete request.
                  +   * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + /** + * + * + *
                  +   * The deletion time of the execution. It is only
                  +   * populated as a response to a Delete request.
                  +   * 
                  + * + * .google.protobuf.Timestamp delete_time = 5; + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
                  +   * Status for the execution completion.
                  +   * 
                  + * + * .google.cloud.run.v2.ExecutionReference.CompletionStatus completion_status = 4; + * + * @return The enum numeric value on the wire for completionStatus. + */ + int getCompletionStatusValue(); + /** + * + * + *
                  +   * Status for the execution completion.
                  +   * 
                  + * + * .google.cloud.run.v2.ExecutionReference.CompletionStatus completion_status = 4; + * + * @return The completionStatus. + */ + com.google.cloud.run.v2.ExecutionReference.CompletionStatus getCompletionStatus(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GCSVolumeSource.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GCSVolumeSource.java index 345800127f57..46ec60d6f01a 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GCSVolumeSource.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GCSVolumeSource.java @@ -23,7 +23,8 @@ * * *
                  - * Represents a GCS Bucket mounted as a volume.
                  + * Represents a volume backed by a Cloud Storage bucket using Cloud Storage
                  + * FUSE.
                    * 
                  * * Protobuf type {@code google.cloud.run.v2.GCSVolumeSource} @@ -71,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                  -   * GCS Bucket name
                  +   * Cloud Storage Bucket name.
                      * 
                  * * string bucket = 1; @@ -94,7 +95,7 @@ public java.lang.String getBucket() { * * *
                  -   * GCS Bucket name
                  +   * Cloud Storage Bucket name.
                      * 
                  * * string bucket = 1; @@ -120,7 +121,7 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
                  -   * If true, mount the GCS bucket as read-only
                  +   * If true, the volume will be mounted as read only for all mounts.
                      * 
                  * * bool read_only = 2; @@ -303,7 +304,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                  -   * Represents a GCS Bucket mounted as a volume.
                  +   * Represents a volume backed by a Cloud Storage bucket using Cloud Storage
                  +   * FUSE.
                      * 
                  * * Protobuf type {@code google.cloud.run.v2.GCSVolumeSource} @@ -499,7 +501,7 @@ public Builder mergeFrom( * * *
                  -     * GCS Bucket name
                  +     * Cloud Storage Bucket name.
                        * 
                  * * string bucket = 1; @@ -521,7 +523,7 @@ public java.lang.String getBucket() { * * *
                  -     * GCS Bucket name
                  +     * Cloud Storage Bucket name.
                        * 
                  * * string bucket = 1; @@ -543,7 +545,7 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
                  -     * GCS Bucket name
                  +     * Cloud Storage Bucket name.
                        * 
                  * * string bucket = 1; @@ -564,7 +566,7 @@ public Builder setBucket(java.lang.String value) { * * *
                  -     * GCS Bucket name
                  +     * Cloud Storage Bucket name.
                        * 
                  * * string bucket = 1; @@ -581,7 +583,7 @@ public Builder clearBucket() { * * *
                  -     * GCS Bucket name
                  +     * Cloud Storage Bucket name.
                        * 
                  * * string bucket = 1; @@ -605,7 +607,7 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { * * *
                  -     * If true, mount the GCS bucket as read-only
                  +     * If true, the volume will be mounted as read only for all mounts.
                        * 
                  * * bool read_only = 2; @@ -620,7 +622,7 @@ public boolean getReadOnly() { * * *
                  -     * If true, mount the GCS bucket as read-only
                  +     * If true, the volume will be mounted as read only for all mounts.
                        * 
                  * * bool read_only = 2; @@ -639,7 +641,7 @@ public Builder setReadOnly(boolean value) { * * *
                  -     * If true, mount the GCS bucket as read-only
                  +     * If true, the volume will be mounted as read only for all mounts.
                        * 
                  * * bool read_only = 2; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GCSVolumeSourceOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GCSVolumeSourceOrBuilder.java index 4fbe875d4d97..0af8531f65a2 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GCSVolumeSourceOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GCSVolumeSourceOrBuilder.java @@ -28,7 +28,7 @@ public interface GCSVolumeSourceOrBuilder * * *
                  -   * GCS Bucket name
                  +   * Cloud Storage Bucket name.
                      * 
                  * * string bucket = 1; @@ -40,7 +40,7 @@ public interface GCSVolumeSourceOrBuilder * * *
                  -   * GCS Bucket name
                  +   * Cloud Storage Bucket name.
                      * 
                  * * string bucket = 1; @@ -53,7 +53,7 @@ public interface GCSVolumeSourceOrBuilder * * *
                  -   * If true, mount the GCS bucket as read-only
                  +   * If true, the volume will be mounted as read only for all mounts.
                      * 
                  * * bool read_only = 2; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCAction.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCAction.java index 4d300fc02b89..f97dd1353777 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCAction.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCAction.java @@ -69,12 +69,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                  -   * Port number of the gRPC service. Number must be in the range 1 to 65535.
                  -   * If not specified, defaults to the exposed port of the container, which is
                  -   * the value of container.ports[0].containerPort.
                  +   * Optional. Port number of the gRPC service. Number must be in the range 1 to
                  +   * 65535. If not specified, defaults to the exposed port of the container,
                  +   * which is the value of container.ports[0].containerPort.
                      * 
                  * - * int32 port = 1; + * int32 port = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The port. */ @@ -91,12 +91,13 @@ public int getPort() { * * *
                  -   * Service is the name of the service to place in the gRPC HealthCheckRequest
                  -   * (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If
                  -   * this is not specified, the default behavior is defined by gRPC.
                  +   * Optional. Service is the name of the service to place in the gRPC
                  +   * HealthCheckRequest (see
                  +   * https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
                  +   * is not specified, the default behavior is defined by gRPC.
                      * 
                  * - * string service = 2; + * string service = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The service. */ @@ -116,12 +117,13 @@ public java.lang.String getService() { * * *
                  -   * Service is the name of the service to place in the gRPC HealthCheckRequest
                  -   * (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If
                  -   * this is not specified, the default behavior is defined by gRPC.
                  +   * Optional. Service is the name of the service to place in the gRPC
                  +   * HealthCheckRequest (see
                  +   * https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
                  +   * is not specified, the default behavior is defined by gRPC.
                      * 
                  * - * string service = 2; + * string service = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for service. */ @@ -503,12 +505,12 @@ public Builder mergeFrom( * * *
                  -     * Port number of the gRPC service. Number must be in the range 1 to 65535.
                  -     * If not specified, defaults to the exposed port of the container, which is
                  -     * the value of container.ports[0].containerPort.
                  +     * Optional. Port number of the gRPC service. Number must be in the range 1 to
                  +     * 65535. If not specified, defaults to the exposed port of the container,
                  +     * which is the value of container.ports[0].containerPort.
                        * 
                  * - * int32 port = 1; + * int32 port = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The port. */ @@ -520,12 +522,12 @@ public int getPort() { * * *
                  -     * Port number of the gRPC service. Number must be in the range 1 to 65535.
                  -     * If not specified, defaults to the exposed port of the container, which is
                  -     * the value of container.ports[0].containerPort.
                  +     * Optional. Port number of the gRPC service. Number must be in the range 1 to
                  +     * 65535. If not specified, defaults to the exposed port of the container,
                  +     * which is the value of container.ports[0].containerPort.
                        * 
                  * - * int32 port = 1; + * int32 port = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The port to set. * @return This builder for chaining. @@ -541,12 +543,12 @@ public Builder setPort(int value) { * * *
                  -     * Port number of the gRPC service. Number must be in the range 1 to 65535.
                  -     * If not specified, defaults to the exposed port of the container, which is
                  -     * the value of container.ports[0].containerPort.
                  +     * Optional. Port number of the gRPC service. Number must be in the range 1 to
                  +     * 65535. If not specified, defaults to the exposed port of the container,
                  +     * which is the value of container.ports[0].containerPort.
                        * 
                  * - * int32 port = 1; + * int32 port = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -562,12 +564,13 @@ public Builder clearPort() { * * *
                  -     * Service is the name of the service to place in the gRPC HealthCheckRequest
                  -     * (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If
                  -     * this is not specified, the default behavior is defined by gRPC.
                  +     * Optional. Service is the name of the service to place in the gRPC
                  +     * HealthCheckRequest (see
                  +     * https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
                  +     * is not specified, the default behavior is defined by gRPC.
                        * 
                  * - * string service = 2; + * string service = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The service. */ @@ -586,12 +589,13 @@ public java.lang.String getService() { * * *
                  -     * Service is the name of the service to place in the gRPC HealthCheckRequest
                  -     * (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If
                  -     * this is not specified, the default behavior is defined by gRPC.
                  +     * Optional. Service is the name of the service to place in the gRPC
                  +     * HealthCheckRequest (see
                  +     * https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
                  +     * is not specified, the default behavior is defined by gRPC.
                        * 
                  * - * string service = 2; + * string service = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for service. */ @@ -610,12 +614,13 @@ public com.google.protobuf.ByteString getServiceBytes() { * * *
                  -     * Service is the name of the service to place in the gRPC HealthCheckRequest
                  -     * (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If
                  -     * this is not specified, the default behavior is defined by gRPC.
                  +     * Optional. Service is the name of the service to place in the gRPC
                  +     * HealthCheckRequest (see
                  +     * https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
                  +     * is not specified, the default behavior is defined by gRPC.
                        * 
                  * - * string service = 2; + * string service = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The service to set. * @return This builder for chaining. @@ -633,12 +638,13 @@ public Builder setService(java.lang.String value) { * * *
                  -     * Service is the name of the service to place in the gRPC HealthCheckRequest
                  -     * (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If
                  -     * this is not specified, the default behavior is defined by gRPC.
                  +     * Optional. Service is the name of the service to place in the gRPC
                  +     * HealthCheckRequest (see
                  +     * https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
                  +     * is not specified, the default behavior is defined by gRPC.
                        * 
                  * - * string service = 2; + * string service = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -652,12 +658,13 @@ public Builder clearService() { * * *
                  -     * Service is the name of the service to place in the gRPC HealthCheckRequest
                  -     * (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If
                  -     * this is not specified, the default behavior is defined by gRPC.
                  +     * Optional. Service is the name of the service to place in the gRPC
                  +     * HealthCheckRequest (see
                  +     * https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
                  +     * is not specified, the default behavior is defined by gRPC.
                        * 
                  * - * string service = 2; + * string service = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for service to set. * @return This builder for chaining. diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCActionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCActionOrBuilder.java index d63a091cb578..30e3e9cc0197 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCActionOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCActionOrBuilder.java @@ -28,12 +28,12 @@ public interface GRPCActionOrBuilder * * *
                  -   * Port number of the gRPC service. Number must be in the range 1 to 65535.
                  -   * If not specified, defaults to the exposed port of the container, which is
                  -   * the value of container.ports[0].containerPort.
                  +   * Optional. Port number of the gRPC service. Number must be in the range 1 to
                  +   * 65535. If not specified, defaults to the exposed port of the container,
                  +   * which is the value of container.ports[0].containerPort.
                      * 
                  * - * int32 port = 1; + * int32 port = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The port. */ @@ -43,12 +43,13 @@ public interface GRPCActionOrBuilder * * *
                  -   * Service is the name of the service to place in the gRPC HealthCheckRequest
                  -   * (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If
                  -   * this is not specified, the default behavior is defined by gRPC.
                  +   * Optional. Service is the name of the service to place in the gRPC
                  +   * HealthCheckRequest (see
                  +   * https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
                  +   * is not specified, the default behavior is defined by gRPC.
                      * 
                  * - * string service = 2; + * string service = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The service. */ @@ -57,12 +58,13 @@ public interface GRPCActionOrBuilder * * *
                  -   * Service is the name of the service to place in the gRPC HealthCheckRequest
                  -   * (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If
                  -   * this is not specified, the default behavior is defined by gRPC.
                  +   * Optional. Service is the name of the service to place in the gRPC
                  +   * HealthCheckRequest (see
                  +   * https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
                  +   * is not specified, the default behavior is defined by gRPC.
                      * 
                  * - * string service = 2; + * string service = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for service. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java index d7eb86859f0b..b39e594ac444 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java @@ -72,10 +72,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                  -   * Path to access on the HTTP server. Defaults to '/'.
                  +   * Optional. Path to access on the HTTP server. Defaults to '/'.
                      * 
                  * - * string path = 1; + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The path. */ @@ -95,10 +95,10 @@ public java.lang.String getPath() { * * *
                  -   * Path to access on the HTTP server. Defaults to '/'.
                  +   * Optional. Path to access on the HTTP server. Defaults to '/'.
                      * 
                  * - * string path = 1; + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for path. */ @@ -123,10 +123,13 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
                  -   * Custom headers to set in the request. HTTP allows repeated headers.
                  +   * Optional. Custom headers to set in the request. HTTP allows repeated
                  +   * headers.
                      * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getHttpHeadersList() { @@ -136,10 +139,13 @@ public java.util.List getHttpHeadersList() { * * *
                  -   * Custom headers to set in the request. HTTP allows repeated headers.
                  +   * Optional. Custom headers to set in the request. HTTP allows repeated
                  +   * headers.
                      * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -150,10 +156,13 @@ public java.util.List getHttpHeadersList() { * * *
                  -   * Custom headers to set in the request. HTTP allows repeated headers.
                  +   * Optional. Custom headers to set in the request. HTTP allows repeated
                  +   * headers.
                      * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getHttpHeadersCount() { @@ -163,10 +172,13 @@ public int getHttpHeadersCount() { * * *
                  -   * Custom headers to set in the request. HTTP allows repeated headers.
                  +   * Optional. Custom headers to set in the request. HTTP allows repeated
                  +   * headers.
                      * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.HTTPHeader getHttpHeaders(int index) { @@ -176,10 +188,13 @@ public com.google.cloud.run.v2.HTTPHeader getHttpHeaders(int index) { * * *
                  -   * Custom headers to set in the request. HTTP allows repeated headers.
                  +   * Optional. Custom headers to set in the request. HTTP allows repeated
                  +   * headers.
                      * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index) { @@ -192,12 +207,12 @@ public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int i * * *
                  -   * Port number to access on the container. Must be in the range 1 to 65535.
                  -   * If not specified, defaults to the exposed port of the container, which is
                  -   * the value of container.ports[0].containerPort.
                  +   * Optional. Port number to access on the container. Must be in the range 1 to
                  +   * 65535. If not specified, defaults to the exposed port of the container,
                  +   * which is the value of container.ports[0].containerPort.
                      * 
                  * - * int32 port = 5; + * int32 port = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The port. */ @@ -643,10 +658,10 @@ public Builder mergeFrom( * * *
                  -     * Path to access on the HTTP server. Defaults to '/'.
                  +     * Optional. Path to access on the HTTP server. Defaults to '/'.
                        * 
                  * - * string path = 1; + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The path. */ @@ -665,10 +680,10 @@ public java.lang.String getPath() { * * *
                  -     * Path to access on the HTTP server. Defaults to '/'.
                  +     * Optional. Path to access on the HTTP server. Defaults to '/'.
                        * 
                  * - * string path = 1; + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for path. */ @@ -687,10 +702,10 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
                  -     * Path to access on the HTTP server. Defaults to '/'.
                  +     * Optional. Path to access on the HTTP server. Defaults to '/'.
                        * 
                  * - * string path = 1; + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The path to set. * @return This builder for chaining. @@ -708,10 +723,10 @@ public Builder setPath(java.lang.String value) { * * *
                  -     * Path to access on the HTTP server. Defaults to '/'.
                  +     * Optional. Path to access on the HTTP server. Defaults to '/'.
                        * 
                  * - * string path = 1; + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -725,10 +740,10 @@ public Builder clearPath() { * * *
                  -     * Path to access on the HTTP server. Defaults to '/'.
                  +     * Optional. Path to access on the HTTP server. Defaults to '/'.
                        * 
                  * - * string path = 1; + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for path to set. * @return This builder for chaining. @@ -764,10 +779,13 @@ private void ensureHttpHeadersIsMutable() { * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getHttpHeadersList() { if (httpHeadersBuilder_ == null) { @@ -780,10 +798,13 @@ public java.util.List getHttpHeadersList() { * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getHttpHeadersCount() { if (httpHeadersBuilder_ == null) { @@ -796,10 +817,13 @@ public int getHttpHeadersCount() { * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.HTTPHeader getHttpHeaders(int index) { if (httpHeadersBuilder_ == null) { @@ -812,10 +836,13 @@ public com.google.cloud.run.v2.HTTPHeader getHttpHeaders(int index) { * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setHttpHeaders(int index, com.google.cloud.run.v2.HTTPHeader value) { if (httpHeadersBuilder_ == null) { @@ -834,10 +861,13 @@ public Builder setHttpHeaders(int index, com.google.cloud.run.v2.HTTPHeader valu * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setHttpHeaders( int index, com.google.cloud.run.v2.HTTPHeader.Builder builderForValue) { @@ -854,10 +884,13 @@ public Builder setHttpHeaders( * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addHttpHeaders(com.google.cloud.run.v2.HTTPHeader value) { if (httpHeadersBuilder_ == null) { @@ -876,10 +909,13 @@ public Builder addHttpHeaders(com.google.cloud.run.v2.HTTPHeader value) { * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addHttpHeaders(int index, com.google.cloud.run.v2.HTTPHeader value) { if (httpHeadersBuilder_ == null) { @@ -898,10 +934,13 @@ public Builder addHttpHeaders(int index, com.google.cloud.run.v2.HTTPHeader valu * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addHttpHeaders(com.google.cloud.run.v2.HTTPHeader.Builder builderForValue) { if (httpHeadersBuilder_ == null) { @@ -917,10 +956,13 @@ public Builder addHttpHeaders(com.google.cloud.run.v2.HTTPHeader.Builder builder * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addHttpHeaders( int index, com.google.cloud.run.v2.HTTPHeader.Builder builderForValue) { @@ -937,10 +979,13 @@ public Builder addHttpHeaders( * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllHttpHeaders( java.lang.Iterable values) { @@ -957,10 +1002,13 @@ public Builder addAllHttpHeaders( * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearHttpHeaders() { if (httpHeadersBuilder_ == null) { @@ -976,10 +1024,13 @@ public Builder clearHttpHeaders() { * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeHttpHeaders(int index) { if (httpHeadersBuilder_ == null) { @@ -995,10 +1046,13 @@ public Builder removeHttpHeaders(int index) { * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.HTTPHeader.Builder getHttpHeadersBuilder(int index) { return getHttpHeadersFieldBuilder().getBuilder(index); @@ -1007,10 +1061,13 @@ public com.google.cloud.run.v2.HTTPHeader.Builder getHttpHeadersBuilder(int inde * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index) { if (httpHeadersBuilder_ == null) { @@ -1023,10 +1080,13 @@ public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int i * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getHttpHeadersOrBuilderList() { @@ -1040,10 +1100,13 @@ public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int i * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.HTTPHeader.Builder addHttpHeadersBuilder() { return getHttpHeadersFieldBuilder() @@ -1053,10 +1116,13 @@ public com.google.cloud.run.v2.HTTPHeader.Builder addHttpHeadersBuilder() { * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.HTTPHeader.Builder addHttpHeadersBuilder(int index) { return getHttpHeadersFieldBuilder() @@ -1066,10 +1132,13 @@ public com.google.cloud.run.v2.HTTPHeader.Builder addHttpHeadersBuilder(int inde * * *
                  -     * Custom headers to set in the request. HTTP allows repeated headers.
                  +     * Optional. Custom headers to set in the request. HTTP allows repeated
                  +     * headers.
                        * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getHttpHeadersBuilderList() { return getHttpHeadersFieldBuilder().getBuilderList(); @@ -1097,12 +1166,12 @@ public java.util.List getHttpHeaders * * *
                  -     * Port number to access on the container. Must be in the range 1 to 65535.
                  -     * If not specified, defaults to the exposed port of the container, which is
                  -     * the value of container.ports[0].containerPort.
                  +     * Optional. Port number to access on the container. Must be in the range 1 to
                  +     * 65535. If not specified, defaults to the exposed port of the container,
                  +     * which is the value of container.ports[0].containerPort.
                        * 
                  * - * int32 port = 5; + * int32 port = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The port. */ @@ -1114,12 +1183,12 @@ public int getPort() { * * *
                  -     * Port number to access on the container. Must be in the range 1 to 65535.
                  -     * If not specified, defaults to the exposed port of the container, which is
                  -     * the value of container.ports[0].containerPort.
                  +     * Optional. Port number to access on the container. Must be in the range 1 to
                  +     * 65535. If not specified, defaults to the exposed port of the container,
                  +     * which is the value of container.ports[0].containerPort.
                        * 
                  * - * int32 port = 5; + * int32 port = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The port to set. * @return This builder for chaining. @@ -1135,12 +1204,12 @@ public Builder setPort(int value) { * * *
                  -     * Port number to access on the container. Must be in the range 1 to 65535.
                  -     * If not specified, defaults to the exposed port of the container, which is
                  -     * the value of container.ports[0].containerPort.
                  +     * Optional. Port number to access on the container. Must be in the range 1 to
                  +     * 65535. If not specified, defaults to the exposed port of the container,
                  +     * which is the value of container.ports[0].containerPort.
                        * 
                  * - * int32 port = 5; + * int32 port = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java index 2b9a9aab158d..6b2d3b11dda1 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java @@ -28,10 +28,10 @@ public interface HTTPGetActionOrBuilder * * *
                  -   * Path to access on the HTTP server. Defaults to '/'.
                  +   * Optional. Path to access on the HTTP server. Defaults to '/'.
                      * 
                  * - * string path = 1; + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The path. */ @@ -40,10 +40,10 @@ public interface HTTPGetActionOrBuilder * * *
                  -   * Path to access on the HTTP server. Defaults to '/'.
                  +   * Optional. Path to access on the HTTP server. Defaults to '/'.
                      * 
                  * - * string path = 1; + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for path. */ @@ -53,40 +53,52 @@ public interface HTTPGetActionOrBuilder * * *
                  -   * Custom headers to set in the request. HTTP allows repeated headers.
                  +   * Optional. Custom headers to set in the request. HTTP allows repeated
                  +   * headers.
                      * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getHttpHeadersList(); /** * * *
                  -   * Custom headers to set in the request. HTTP allows repeated headers.
                  +   * Optional. Custom headers to set in the request. HTTP allows repeated
                  +   * headers.
                      * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.HTTPHeader getHttpHeaders(int index); /** * * *
                  -   * Custom headers to set in the request. HTTP allows repeated headers.
                  +   * Optional. Custom headers to set in the request. HTTP allows repeated
                  +   * headers.
                      * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getHttpHeadersCount(); /** * * *
                  -   * Custom headers to set in the request. HTTP allows repeated headers.
                  +   * Optional. Custom headers to set in the request. HTTP allows repeated
                  +   * headers.
                      * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getHttpHeadersOrBuilderList(); @@ -94,10 +106,13 @@ public interface HTTPGetActionOrBuilder * * *
                  -   * Custom headers to set in the request. HTTP allows repeated headers.
                  +   * Optional. Custom headers to set in the request. HTTP allows repeated
                  +   * headers.
                      * 
                  * - * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; + * + * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index); @@ -105,12 +120,12 @@ public interface HTTPGetActionOrBuilder * * *
                  -   * Port number to access on the container. Must be in the range 1 to 65535.
                  -   * If not specified, defaults to the exposed port of the container, which is
                  -   * the value of container.ports[0].containerPort.
                  +   * Optional. Port number to access on the container. Must be in the range 1 to
                  +   * 65535. If not specified, defaults to the exposed port of the container,
                  +   * which is the value of container.ports[0].containerPort.
                      * 
                  * - * int32 port = 5; + * int32 port = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The port. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java index b5645c2cbb64..8475a31ac63f 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java @@ -123,10 +123,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                  -   * The header field value
                  +   * Optional. The header field value
                      * 
                  * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The value. */ @@ -146,10 +146,10 @@ public java.lang.String getValue() { * * *
                  -   * The header field value
                  +   * Optional. The header field value
                      * 
                  * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for value. */ @@ -639,10 +639,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
                  -     * The header field value
                  +     * Optional. The header field value
                        * 
                  * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The value. */ @@ -661,10 +661,10 @@ public java.lang.String getValue() { * * *
                  -     * The header field value
                  +     * Optional. The header field value
                        * 
                  * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for value. */ @@ -683,10 +683,10 @@ public com.google.protobuf.ByteString getValueBytes() { * * *
                  -     * The header field value
                  +     * Optional. The header field value
                        * 
                  * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The value to set. * @return This builder for chaining. @@ -704,10 +704,10 @@ public Builder setValue(java.lang.String value) { * * *
                  -     * The header field value
                  +     * Optional. The header field value
                        * 
                  * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -721,10 +721,10 @@ public Builder clearValue() { * * *
                  -     * The header field value
                  +     * Optional. The header field value
                        * 
                  * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for value to set. * @return This builder for chaining. diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java index fdbec846a389..e3df2f8e00d2 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java @@ -53,10 +53,10 @@ public interface HTTPHeaderOrBuilder * * *
                  -   * The header field value
                  +   * Optional. The header field value
                      * 
                  * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The value. */ @@ -65,10 +65,10 @@ public interface HTTPHeaderOrBuilder * * *
                  -   * The header field value
                  +   * Optional. The header field value
                      * 
                  * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for value. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java index 0852d147506c..109f7e1a512c 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java @@ -85,6 +85,55 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } private int bitField0_; + private int createExecutionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object createExecution_; + + public enum CreateExecutionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + START_EXECUTION_TOKEN(26), + RUN_EXECUTION_TOKEN(27), + CREATEEXECUTION_NOT_SET(0); + private final int value; + + private CreateExecutionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CreateExecutionCase valueOf(int value) { + return forNumber(value); + } + + public static CreateExecutionCase forNumber(int value) { + switch (value) { + case 26: + return START_EXECUTION_TOKEN; + case 27: + return RUN_EXECUTION_TOKEN; + case 0: + return CREATEEXECUTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CreateExecutionCase getCreateExecutionCase() { + return CreateExecutionCase.forNumber(createExecutionCase_); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -613,7 +662,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
                  -   * Output only. The deletion time.
                  +   * Output only. The deletion time. It is only populated as a response to a
                  +   * Delete request.
                      * 
                  * * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -629,7 +679,8 @@ public boolean hasDeleteTime() { * * *
                  -   * Output only. The deletion time.
                  +   * Output only. The deletion time. It is only populated as a response to a
                  +   * Delete request.
                      * 
                  * * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -645,7 +696,8 @@ public com.google.protobuf.Timestamp getDeleteTime() { * * *
                  -   * Output only. The deletion time.
                  +   * Output only. The deletion time. It is only populated as a response to a
                  +   * Delete request.
                      * 
                  * * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1374,6 +1426,158 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } + public static final int START_EXECUTION_TOKEN_FIELD_NUMBER = 26; + /** + * + * + *
                  +   * A unique string used as a suffix creating a new execution. The Job will
                  +   * become ready when the execution is successfully started.
                  +   * The sum of job name and token length must be fewer than 63 characters.
                  +   * 
                  + * + * string start_execution_token = 26; + * + * @return Whether the startExecutionToken field is set. + */ + public boolean hasStartExecutionToken() { + return createExecutionCase_ == 26; + } + /** + * + * + *
                  +   * A unique string used as a suffix creating a new execution. The Job will
                  +   * become ready when the execution is successfully started.
                  +   * The sum of job name and token length must be fewer than 63 characters.
                  +   * 
                  + * + * string start_execution_token = 26; + * + * @return The startExecutionToken. + */ + public java.lang.String getStartExecutionToken() { + java.lang.Object ref = ""; + if (createExecutionCase_ == 26) { + ref = createExecution_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (createExecutionCase_ == 26) { + createExecution_ = s; + } + return s; + } + } + /** + * + * + *
                  +   * A unique string used as a suffix creating a new execution. The Job will
                  +   * become ready when the execution is successfully started.
                  +   * The sum of job name and token length must be fewer than 63 characters.
                  +   * 
                  + * + * string start_execution_token = 26; + * + * @return The bytes for startExecutionToken. + */ + public com.google.protobuf.ByteString getStartExecutionTokenBytes() { + java.lang.Object ref = ""; + if (createExecutionCase_ == 26) { + ref = createExecution_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (createExecutionCase_ == 26) { + createExecution_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RUN_EXECUTION_TOKEN_FIELD_NUMBER = 27; + /** + * + * + *
                  +   * A unique string used as a suffix for creating a new execution. The Job
                  +   * will become ready when the execution is successfully completed.
                  +   * The sum of job name and token length must be fewer than 63 characters.
                  +   * 
                  + * + * string run_execution_token = 27; + * + * @return Whether the runExecutionToken field is set. + */ + public boolean hasRunExecutionToken() { + return createExecutionCase_ == 27; + } + /** + * + * + *
                  +   * A unique string used as a suffix for creating a new execution. The Job
                  +   * will become ready when the execution is successfully completed.
                  +   * The sum of job name and token length must be fewer than 63 characters.
                  +   * 
                  + * + * string run_execution_token = 27; + * + * @return The runExecutionToken. + */ + public java.lang.String getRunExecutionToken() { + java.lang.Object ref = ""; + if (createExecutionCase_ == 27) { + ref = createExecution_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (createExecutionCase_ == 27) { + createExecution_ = s; + } + return s; + } + } + /** + * + * + *
                  +   * A unique string used as a suffix for creating a new execution. The Job
                  +   * will become ready when the execution is successfully completed.
                  +   * The sum of job name and token length must be fewer than 63 characters.
                  +   * 
                  + * + * string run_execution_token = 27; + * + * @return The bytes for runExecutionToken. + */ + public com.google.protobuf.ByteString getRunExecutionTokenBytes() { + java.lang.Object ref = ""; + if (createExecutionCase_ == 27) { + ref = createExecution_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (createExecutionCase_ == 27) { + createExecution_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ETAG_FIELD_NUMBER = 99; @SuppressWarnings("serial") @@ -1508,6 +1712,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (satisfiesPzs_ != false) { output.writeBool(25, satisfiesPzs_); } + if (createExecutionCase_ == 26) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 26, createExecution_); + } + if (createExecutionCase_ == 27) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 27, createExecution_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 99, etag_); } @@ -1605,6 +1815,12 @@ public int getSerializedSize() { if (satisfiesPzs_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, satisfiesPzs_); } + if (createExecutionCase_ == 26) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, createExecution_); + } + if (createExecutionCase_ == 27) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, createExecution_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); } @@ -1671,6 +1887,17 @@ public boolean equals(final java.lang.Object obj) { if (getReconciling() != other.getReconciling()) return false; if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; if (!getEtag().equals(other.getEtag())) return false; + if (!getCreateExecutionCase().equals(other.getCreateExecutionCase())) return false; + switch (createExecutionCase_) { + case 26: + if (!getStartExecutionToken().equals(other.getStartExecutionToken())) return false; + break; + case 27: + if (!getRunExecutionToken().equals(other.getRunExecutionToken())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1752,6 +1979,18 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); + switch (createExecutionCase_) { + case 26: + hash = (37 * hash) + START_EXECUTION_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getStartExecutionToken().hashCode(); + break; + case 27: + hash = (37 * hash) + RUN_EXECUTION_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getRunExecutionToken().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1994,6 +2233,8 @@ public Builder clear() { reconciling_ = false; satisfiesPzs_ = false; etag_ = ""; + createExecutionCase_ = 0; + createExecution_ = null; return this; } @@ -2023,6 +2264,7 @@ public com.google.cloud.run.v2.Job buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -2127,12 +2369,17 @@ private void buildPartial0(com.google.cloud.run.v2.Job result) { if (((from_bitField0_ & 0x00400000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.etag_ = etag_; } result.bitField0_ |= to_bitField0_; } + private void buildPartialOneofs(com.google.cloud.run.v2.Job result) { + result.createExecutionCase_ = createExecutionCase_; + result.createExecution_ = this.createExecution_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2283,9 +2530,29 @@ public Builder mergeFrom(com.google.cloud.run.v2.Job other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); } + switch (other.getCreateExecutionCase()) { + case START_EXECUTION_TOKEN: + { + createExecutionCase_ = 26; + createExecution_ = other.createExecution_; + onChanged(); + break; + } + case RUN_EXECUTION_TOKEN: + { + createExecutionCase_ = 27; + createExecution_ = other.createExecution_; + onChanged(); + break; + } + case CREATEEXECUTION_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2472,10 +2739,24 @@ public Builder mergeFrom( bitField0_ |= 0x00400000; break; } // case 200 + case 210: + { + java.lang.String s = input.readStringRequireUtf8(); + createExecutionCase_ = 26; + createExecution_ = s; + break; + } // case 210 + case 218: + { + java.lang.String s = input.readStringRequireUtf8(); + createExecutionCase_ = 27; + createExecution_ = s; + break; + } // case 218 case 794: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; break; } // case 794 default: @@ -2495,6 +2776,20 @@ public Builder mergeFrom( return this; } + private int createExecutionCase_ = 0; + private java.lang.Object createExecution_; + + public CreateExecutionCase getCreateExecutionCase() { + return CreateExecutionCase.forNumber(createExecutionCase_); + } + + public Builder clearCreateExecution() { + createExecutionCase_ = 0; + createExecution_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object name_ = ""; @@ -3689,7 +3984,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -3705,7 +4001,8 @@ public boolean hasDeleteTime() { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -3727,7 +4024,8 @@ public com.google.protobuf.Timestamp getDeleteTime() { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -3751,7 +4049,8 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -3772,7 +4071,8 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -3801,7 +4101,8 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -3822,7 +4123,8 @@ public Builder clearDeleteTime() { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -3838,7 +4140,8 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -3858,7 +4161,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -6173,6 +6477,298 @@ public Builder clearSatisfiesPzs() { return this; } + /** + * + * + *
                  +     * A unique string used as a suffix creating a new execution. The Job will
                  +     * become ready when the execution is successfully started.
                  +     * The sum of job name and token length must be fewer than 63 characters.
                  +     * 
                  + * + * string start_execution_token = 26; + * + * @return Whether the startExecutionToken field is set. + */ + @java.lang.Override + public boolean hasStartExecutionToken() { + return createExecutionCase_ == 26; + } + /** + * + * + *
                  +     * A unique string used as a suffix creating a new execution. The Job will
                  +     * become ready when the execution is successfully started.
                  +     * The sum of job name and token length must be fewer than 63 characters.
                  +     * 
                  + * + * string start_execution_token = 26; + * + * @return The startExecutionToken. + */ + @java.lang.Override + public java.lang.String getStartExecutionToken() { + java.lang.Object ref = ""; + if (createExecutionCase_ == 26) { + ref = createExecution_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (createExecutionCase_ == 26) { + createExecution_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * A unique string used as a suffix creating a new execution. The Job will
                  +     * become ready when the execution is successfully started.
                  +     * The sum of job name and token length must be fewer than 63 characters.
                  +     * 
                  + * + * string start_execution_token = 26; + * + * @return The bytes for startExecutionToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartExecutionTokenBytes() { + java.lang.Object ref = ""; + if (createExecutionCase_ == 26) { + ref = createExecution_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (createExecutionCase_ == 26) { + createExecution_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * A unique string used as a suffix creating a new execution. The Job will
                  +     * become ready when the execution is successfully started.
                  +     * The sum of job name and token length must be fewer than 63 characters.
                  +     * 
                  + * + * string start_execution_token = 26; + * + * @param value The startExecutionToken to set. + * @return This builder for chaining. + */ + public Builder setStartExecutionToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + createExecutionCase_ = 26; + createExecution_ = value; + onChanged(); + return this; + } + /** + * + * + *
                  +     * A unique string used as a suffix creating a new execution. The Job will
                  +     * become ready when the execution is successfully started.
                  +     * The sum of job name and token length must be fewer than 63 characters.
                  +     * 
                  + * + * string start_execution_token = 26; + * + * @return This builder for chaining. + */ + public Builder clearStartExecutionToken() { + if (createExecutionCase_ == 26) { + createExecutionCase_ = 0; + createExecution_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * A unique string used as a suffix creating a new execution. The Job will
                  +     * become ready when the execution is successfully started.
                  +     * The sum of job name and token length must be fewer than 63 characters.
                  +     * 
                  + * + * string start_execution_token = 26; + * + * @param value The bytes for startExecutionToken to set. + * @return This builder for chaining. + */ + public Builder setStartExecutionTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + createExecutionCase_ = 26; + createExecution_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                  +     * A unique string used as a suffix for creating a new execution. The Job
                  +     * will become ready when the execution is successfully completed.
                  +     * The sum of job name and token length must be fewer than 63 characters.
                  +     * 
                  + * + * string run_execution_token = 27; + * + * @return Whether the runExecutionToken field is set. + */ + @java.lang.Override + public boolean hasRunExecutionToken() { + return createExecutionCase_ == 27; + } + /** + * + * + *
                  +     * A unique string used as a suffix for creating a new execution. The Job
                  +     * will become ready when the execution is successfully completed.
                  +     * The sum of job name and token length must be fewer than 63 characters.
                  +     * 
                  + * + * string run_execution_token = 27; + * + * @return The runExecutionToken. + */ + @java.lang.Override + public java.lang.String getRunExecutionToken() { + java.lang.Object ref = ""; + if (createExecutionCase_ == 27) { + ref = createExecution_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (createExecutionCase_ == 27) { + createExecution_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * A unique string used as a suffix for creating a new execution. The Job
                  +     * will become ready when the execution is successfully completed.
                  +     * The sum of job name and token length must be fewer than 63 characters.
                  +     * 
                  + * + * string run_execution_token = 27; + * + * @return The bytes for runExecutionToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRunExecutionTokenBytes() { + java.lang.Object ref = ""; + if (createExecutionCase_ == 27) { + ref = createExecution_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (createExecutionCase_ == 27) { + createExecution_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * A unique string used as a suffix for creating a new execution. The Job
                  +     * will become ready when the execution is successfully completed.
                  +     * The sum of job name and token length must be fewer than 63 characters.
                  +     * 
                  + * + * string run_execution_token = 27; + * + * @param value The runExecutionToken to set. + * @return This builder for chaining. + */ + public Builder setRunExecutionToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + createExecutionCase_ = 27; + createExecution_ = value; + onChanged(); + return this; + } + /** + * + * + *
                  +     * A unique string used as a suffix for creating a new execution. The Job
                  +     * will become ready when the execution is successfully completed.
                  +     * The sum of job name and token length must be fewer than 63 characters.
                  +     * 
                  + * + * string run_execution_token = 27; + * + * @return This builder for chaining. + */ + public Builder clearRunExecutionToken() { + if (createExecutionCase_ == 27) { + createExecutionCase_ = 0; + createExecution_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * A unique string used as a suffix for creating a new execution. The Job
                  +     * will become ready when the execution is successfully completed.
                  +     * The sum of job name and token length must be fewer than 63 characters.
                  +     * 
                  + * + * string run_execution_token = 27; + * + * @param value The bytes for runExecutionToken to set. + * @return This builder for chaining. + */ + public Builder setRunExecutionTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + createExecutionCase_ = 27; + createExecution_ = value; + onChanged(); + return this; + } + private java.lang.Object etag_ = ""; /** * @@ -6238,7 +6834,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -6256,7 +6852,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x02000000); onChanged(); return this; } @@ -6279,7 +6875,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); return this; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java index 2361430b4dda..cb0cb867a737 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java @@ -404,7 +404,8 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Output only. The deletion time.
                  +   * Output only. The deletion time. It is only populated as a response to a
                  +   * Delete request.
                      * 
                  * * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -417,7 +418,8 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Output only. The deletion time.
                  +   * Output only. The deletion time. It is only populated as a response to a
                  +   * Delete request.
                      * 
                  * * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -430,7 +432,8 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Output only. The deletion time.
                  +   * Output only. The deletion time. It is only populated as a response to a
                  +   * Delete request.
                      * 
                  * * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -932,6 +935,92 @@ java.lang.String getAnnotationsOrDefault( */ boolean getSatisfiesPzs(); + /** + * + * + *
                  +   * A unique string used as a suffix creating a new execution. The Job will
                  +   * become ready when the execution is successfully started.
                  +   * The sum of job name and token length must be fewer than 63 characters.
                  +   * 
                  + * + * string start_execution_token = 26; + * + * @return Whether the startExecutionToken field is set. + */ + boolean hasStartExecutionToken(); + /** + * + * + *
                  +   * A unique string used as a suffix creating a new execution. The Job will
                  +   * become ready when the execution is successfully started.
                  +   * The sum of job name and token length must be fewer than 63 characters.
                  +   * 
                  + * + * string start_execution_token = 26; + * + * @return The startExecutionToken. + */ + java.lang.String getStartExecutionToken(); + /** + * + * + *
                  +   * A unique string used as a suffix creating a new execution. The Job will
                  +   * become ready when the execution is successfully started.
                  +   * The sum of job name and token length must be fewer than 63 characters.
                  +   * 
                  + * + * string start_execution_token = 26; + * + * @return The bytes for startExecutionToken. + */ + com.google.protobuf.ByteString getStartExecutionTokenBytes(); + + /** + * + * + *
                  +   * A unique string used as a suffix for creating a new execution. The Job
                  +   * will become ready when the execution is successfully completed.
                  +   * The sum of job name and token length must be fewer than 63 characters.
                  +   * 
                  + * + * string run_execution_token = 27; + * + * @return Whether the runExecutionToken field is set. + */ + boolean hasRunExecutionToken(); + /** + * + * + *
                  +   * A unique string used as a suffix for creating a new execution. The Job
                  +   * will become ready when the execution is successfully completed.
                  +   * The sum of job name and token length must be fewer than 63 characters.
                  +   * 
                  + * + * string run_execution_token = 27; + * + * @return The runExecutionToken. + */ + java.lang.String getRunExecutionToken(); + /** + * + * + *
                  +   * A unique string used as a suffix for creating a new execution. The Job
                  +   * will become ready when the execution is successfully completed.
                  +   * The sum of job name and token length must be fewer than 63 characters.
                  +   * 
                  + * + * string run_execution_token = 27; + * + * @return The bytes for runExecutionToken. + */ + com.google.protobuf.ByteString getRunExecutionTokenBytes(); + /** * * @@ -958,4 +1047,6 @@ java.lang.String getAnnotationsOrDefault( * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); + + com.google.cloud.run.v2.Job.CreateExecutionCase getCreateExecutionCase(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java index 3d58aab83e00..8ba2525a7143 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java @@ -95,77 +95,86 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "field_behavior.proto\032\035google/api/launch_" + "stage.proto\032\031google/api/resource.proto\032\030" + "google/api/routing.proto\032#google/cloud/r" - + "un/v2/condition.proto\032#google/cloud/run/" - + "v2/execution.proto\032,google/cloud/run/v2/" - + "execution_template.proto\032!google/cloud/r" - + "un/v2/k8s.min.proto\032)google/cloud/run/v2" - + "/vendor_settings.proto\032\036google/iam/v1/ia" - + "m_policy.proto\032\032google/iam/v1/policy.pro" - + "to\032#google/longrunning/operations.proto\032" - + "\036google/protobuf/duration.proto\032\037google/" - + "protobuf/timestamp.proto\"\232\001\n\020CreateJobRe" - + "quest\022.\n\006parent\030\001 \001(\tB\036\340A\002\372A\030\022\026run.googl" - + "eapis.com/Job\022*\n\003job\030\002 \001(\0132\030.google.clou" - + "d.run.v2.JobB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\022\025" - + "\n\rvalidate_only\030\004 \001(\010\"=\n\rGetJobRequest\022," - + "\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n\026run.googleapis.com" - + "/Job\"l\n\020UpdateJobRequest\022*\n\003job\030\001 \001(\0132\030." - + "google.cloud.run.v2.JobB\003\340A\002\022\025\n\rvalidate" - + "_only\030\003 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\"~\n\017Li" - + "stJobsRequest\022.\n\006parent\030\001 \001(\tB\036\340A\002\372A\030\022\026r" - + "un.googleapis.com/Job\022\021\n\tpage_size\030\002 \001(\005" - + "\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001" - + "(\010\"S\n\020ListJobsResponse\022&\n\004jobs\030\001 \003(\0132\030.g" - + "oogle.cloud.run.v2.Job\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"e\n\020DeleteJobRequest\022,\n\004name\030\001 \001(" - + "\tB\036\340A\002\372A\030\n\026run.googleapis.com/Job\022\025\n\rval" - + "idate_only\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"\314\003\n\rRunJo" - + "bRequest\022,\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n\026run.goog" - + "leapis.com/Job\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n" - + "\004etag\030\003 \001(\t\022?\n\toverrides\030\004 \001(\0132,.google." - + "cloud.run.v2.RunJobRequest.Overrides\032\246\002\n" - + "\tOverrides\022[\n\023container_overrides\030\001 \003(\0132" - + ">.google.cloud.run.v2.RunJobRequest.Over" - + "rides.ContainerOverride\022\027\n\ntask_count\030\002 " - + "\001(\005B\003\340A\001\022*\n\007timeout\030\004 \001(\0132\031.google.proto" - + "buf.Duration\032w\n\021ContainerOverride\022\014\n\004nam" - + "e\030\001 \001(\t\022\021\n\004args\030\002 \003(\tB\003\340A\001\022(\n\003env\030\003 \003(\0132" - + "\033.google.cloud.run.v2.EnvVar\022\027\n\nclear_ar" - + "gs\030\004 \001(\010B\003\340A\001\"\246\t\n\003Job\022\014\n\004name\030\001 \001(\t\022\020\n\003u" - + "id\030\002 \001(\tB\003\340A\003\022\027\n\ngeneration\030\003 \001(\003B\003\340A\003\0224" - + "\n\006labels\030\004 \003(\0132$.google.cloud.run.v2.Job" - + ".LabelsEntry\022>\n\013annotations\030\005 \003(\0132).goog" - + "le.cloud.run.v2.Job.AnnotationsEntry\0224\n\013" - + "create_time\030\006 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030" - + "\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" - + "\n\013expire_time\030\t \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\022\024\n\007creator\030\n \001(\tB\003\340A\003\022\032\n\rla" - + "st_modifier\030\013 \001(\tB\003\340A\003\022\016\n\006client\030\014 \001(\t\022\026" - + "\n\016client_version\030\r \001(\t\022-\n\014launch_stage\030\016" - + " \001(\0162\027.google.api.LaunchStage\022F\n\024binary_" - + "authorization\030\017 \001(\0132(.google.cloud.run.v" - + "2.BinaryAuthorization\022=\n\010template\030\020 \001(\0132" - + "&.google.cloud.run.v2.ExecutionTemplateB" - + "\003\340A\002\022 \n\023observed_generation\030\021 \001(\003B\003\340A\003\022?" - + "\n\022terminal_condition\030\022 \001(\0132\036.google.clou" - + "d.run.v2.ConditionB\003\340A\003\0227\n\nconditions\030\023 " - + "\003(\0132\036.google.cloud.run.v2.ConditionB\003\340A\003" - + "\022\034\n\017execution_count\030\024 \001(\005B\003\340A\003\022N\n\030latest" - + "_created_execution\030\026 \001(\0132\'.google.cloud." - + "run.v2.ExecutionReferenceB\003\340A\003\022\030\n\013reconc" - + "iling\030\027 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzs\030\031 \001(\010B" - + "\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annota" - + "tionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001:R\352AO\n\026run.googleapis.com/Job\0222project" - + "s/{project}/locations/{location}/jobs/{j" - + "ob}R\001\001\"\253\001\n\022ExecutionReference\022/\n\004name\030\001 " - + "\001(\tB!\372A\036\n\034run.googleapis.com/Execution\022/" - + "\n\013create_time\030\002 \001(\0132\032.google.protobuf.Ti" - + "mestamp\0223\n\017completion_time\030\003 \001(\0132\032.googl" - + "e.protobuf.Timestamp2\212\016\n\004Jobs\022\335\001\n\tCreate" + + "un/v2/condition.proto\032,google/cloud/run/" + + "v2/execution_template.proto\032!google/clou" + + "d/run/v2/k8s.min.proto\032)google/cloud/run" + + "/v2/vendor_settings.proto\032\036google/iam/v1" + + "/iam_policy.proto\032\032google/iam/v1/policy." + + "proto\032#google/longrunning/operations.pro" + + "to\032\036google/protobuf/duration.proto\032\037goog" + + "le/protobuf/timestamp.proto\"\232\001\n\020CreateJo" + + "bRequest\022.\n\006parent\030\001 \001(\tB\036\340A\002\372A\030\022\026run.go" + + "ogleapis.com/Job\022*\n\003job\030\002 \001(\0132\030.google.c" + + "loud.run.v2.JobB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A" + + "\002\022\025\n\rvalidate_only\030\004 \001(\010\"=\n\rGetJobReques" + + "t\022,\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n\026run.googleapis." + + "com/Job\"q\n\020UpdateJobRequest\022*\n\003job\030\001 \001(\013" + + "2\030.google.cloud.run.v2.JobB\003\340A\002\022\025\n\rvalid" + + "ate_only\030\003 \001(\010\022\032\n\rallow_missing\030\004 \001(\010B\003\340" + + "A\001\"~\n\017ListJobsRequest\022.\n\006parent\030\001 \001(\tB\036\340" + + "A\002\372A\030\022\026run.googleapis.com/Job\022\021\n\tpage_si" + + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_del" + + "eted\030\004 \001(\010\"S\n\020ListJobsResponse\022&\n\004jobs\030\001" + + " \003(\0132\030.google.cloud.run.v2.Job\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"e\n\020DeleteJobRequest\022,\n\004n" + + "ame\030\001 \001(\tB\036\340A\002\372A\030\n\026run.googleapis.com/Jo" + + "b\022\025\n\rvalidate_only\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"\314" + + "\003\n\rRunJobRequest\022,\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n\026" + + "run.googleapis.com/Job\022\025\n\rvalidate_only\030" + + "\002 \001(\010\022\014\n\004etag\030\003 \001(\t\022?\n\toverrides\030\004 \001(\0132," + + ".google.cloud.run.v2.RunJobRequest.Overr" + + "ides\032\246\002\n\tOverrides\022[\n\023container_override" + + "s\030\001 \003(\0132>.google.cloud.run.v2.RunJobRequ" + + "est.Overrides.ContainerOverride\022\027\n\ntask_" + + "count\030\002 \001(\005B\003\340A\001\022*\n\007timeout\030\004 \001(\0132\031.goog" + + "le.protobuf.Duration\032w\n\021ContainerOverrid" + + "e\022\014\n\004name\030\001 \001(\t\022\021\n\004args\030\002 \003(\tB\003\340A\001\022(\n\003en" + + "v\030\003 \003(\0132\033.google.cloud.run.v2.EnvVar\022\027\n\n" + + "clear_args\030\004 \001(\010B\003\340A\001\"\372\t\n\003Job\022\014\n\004name\030\001 " + + "\001(\t\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\027\n\ngeneration\030\003 \001(" + + "\003B\003\340A\003\0224\n\006labels\030\004 \003(\0132$.google.cloud.ru" + + "n.v2.Job.LabelsEntry\022>\n\013annotations\030\005 \003(" + + "\0132).google.cloud.run.v2.Job.AnnotationsE" + + "ntry\0224\n\013create_time\030\006 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013dele" + + "te_time\030\010 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022\024\n\007creator\030\n \001(\tB\003\340" + + "A\003\022\032\n\rlast_modifier\030\013 \001(\tB\003\340A\003\022\016\n\006client" + + "\030\014 \001(\t\022\026\n\016client_version\030\r \001(\t\022-\n\014launch" + + "_stage\030\016 \001(\0162\027.google.api.LaunchStage\022F\n" + + "\024binary_authorization\030\017 \001(\0132(.google.clo" + + "ud.run.v2.BinaryAuthorization\022=\n\010templat" + + "e\030\020 \001(\0132&.google.cloud.run.v2.ExecutionT" + + "emplateB\003\340A\002\022 \n\023observed_generation\030\021 \001(" + + "\003B\003\340A\003\022?\n\022terminal_condition\030\022 \001(\0132\036.goo" + + "gle.cloud.run.v2.ConditionB\003\340A\003\0227\n\ncondi" + + "tions\030\023 \003(\0132\036.google.cloud.run.v2.Condit" + + "ionB\003\340A\003\022\034\n\017execution_count\030\024 \001(\005B\003\340A\003\022N" + + "\n\030latest_created_execution\030\026 \001(\0132\'.googl" + + "e.cloud.run.v2.ExecutionReferenceB\003\340A\003\022\030" + + "\n\013reconciling\030\027 \001(\010B\003\340A\003\022\032\n\rsatisfies_pz" + + "s\030\031 \001(\010B\003\340A\003\022\037\n\025start_execution_token\030\032 " + + "\001(\tH\000\022\035\n\023run_execution_token\030\033 \001(\tH\000\022\021\n\004" + + "etag\030c \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:R\352AO\n" + + "\026run.googleapis.com/Job\0222projects/{proje" + + "ct}/locations/{location}/jobs/{job}R\001\001B\022" + + "\n\020create_execution\"\337\003\n\022ExecutionReferenc" + + "e\022/\n\004name\030\001 \001(\tB!\372A\036\n\034run.googleapis.com" + + "/Execution\022/\n\013create_time\030\002 \001(\0132\032.google" + + ".protobuf.Timestamp\0223\n\017completion_time\030\003" + + " \001(\0132\032.google.protobuf.Timestamp\022/\n\013dele" + + "te_time\030\005 \001(\0132\032.google.protobuf.Timestam" + + "p\022S\n\021completion_status\030\004 \001(\01628.google.cl" + + "oud.run.v2.ExecutionReference.Completion" + + "Status\"\253\001\n\020CompletionStatus\022!\n\035COMPLETIO" + + "N_STATUS_UNSPECIFIED\020\000\022\027\n\023EXECUTION_SUCC" + + "EEDED\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021EXECUTI" + + "ON_RUNNING\020\003\022\025\n\021EXECUTION_PENDING\020\004\022\027\n\023E" + + "XECUTION_CANCELLED\020\0052\212\016\n\004Jobs\022\335\001\n\tCreate" + "Job\022%.google.cloud.run.v2.CreateJobReque" + "st\032\035.google.longrunning.Operation\"\211\001\312A\n\n" + "\003Job\022\003Job\332A\021parent,job,job_id\202\323\344\223\002/\"(/v2" @@ -225,7 +234,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.api.RoutingProto.getDescriptor(), com.google.cloud.run.v2.ConditionProto.getDescriptor(), - com.google.cloud.run.v2.ExecutionProto.getDescriptor(), com.google.cloud.run.v2.ExecutionTemplateProto.getDescriptor(), com.google.cloud.run.v2.K8sMinProto.getDescriptor(), com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), @@ -337,7 +345,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LatestCreatedExecution", "Reconciling", "SatisfiesPzs", + "StartExecutionToken", + "RunExecutionToken", "Etag", + "CreateExecution", }); internal_static_google_cloud_run_v2_Job_LabelsEntry_descriptor = internal_static_google_cloud_run_v2_Job_descriptor.getNestedTypes().get(0); @@ -361,7 +372,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_run_v2_ExecutionReference_descriptor, new java.lang.String[] { - "Name", "CreateTime", "CompletionTime", + "Name", "CreateTime", "CompletionTime", "DeleteTime", "CompletionStatus", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -383,7 +394,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.api.RoutingProto.getDescriptor(); com.google.cloud.run.v2.ConditionProto.getDescriptor(); - com.google.cloud.run.v2.ExecutionProto.getDescriptor(); com.google.cloud.run.v2.ExecutionTemplateProto.getDescriptor(); com.google.cloud.run.v2.K8sMinProto.getDescriptor(); com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java index c156c03761c8..0dcd854843e5 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java @@ -168,32 +168,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "B\n\017NFSVolumeSource\022\016\n\006server\030\001 \001(\t\022\014\n\004pa" + "th\030\002 \001(\t\022\021\n\tread_only\030\003 \001(\010\"4\n\017GCSVolume" + "Source\022\016\n\006bucket\030\001 \001(\t\022\021\n\tread_only\030\002 \001(" - + "\010\"\245\002\n\005Probe\022\035\n\025initial_delay_seconds\030\001 \001" - + "(\005\022\027\n\017timeout_seconds\030\002 \001(\005\022\026\n\016period_se" - + "conds\030\003 \001(\005\022\031\n\021failure_threshold\030\004 \001(\005\0226" - + "\n\010http_get\030\005 \001(\0132\".google.cloud.run.v2.H" - + "TTPGetActionH\000\022:\n\ntcp_socket\030\006 \001(\0132$.goo" - + "gle.cloud.run.v2.TCPSocketActionH\000\022/\n\004gr" - + "pc\030\007 \001(\0132\037.google.cloud.run.v2.GRPCActio" - + "nH\000B\014\n\nprobe_type\"b\n\rHTTPGetAction\022\014\n\004pa" - + "th\030\001 \001(\t\0225\n\014http_headers\030\004 \003(\0132\037.google." - + "cloud.run.v2.HTTPHeader\022\014\n\004port\030\005 \001(\005\".\n" - + "\nHTTPHeader\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\r\n\005value\030" - + "\002 \001(\t\"\037\n\017TCPSocketAction\022\014\n\004port\030\001 \001(\005\"+" - + "\n\nGRPCAction\022\014\n\004port\030\001 \001(\005\022\017\n\007service\030\002 " - + "\001(\tB\351\003\n\027com.google.cloud.run.v2B\013K8sMinP" - + "rotoP\001Z)cloud.google.com/go/run/apiv2/ru" - + "npb;runpb\352Ax\n!cloudkms.googleapis.com/Cr" - + "yptoKey\022Sprojects/{project}/locations/{l" - + "ocation}/keyRings/{key_ring}/cryptoKeys/" - + "{crypto_key}\352AJ\n#secretmanager.googleapi" - + "s.com/Secret\022#projects/{project}/secrets" - + "/{secret}\352Ad\n*secretmanager.googleapis.c" - + "om/SecretVersion\0226projects/{project}/sec" - + "rets/{secret}/versions/{version}\352Ad\n\"vpc" - + "access.googleapis.com/Connector\022>project" - + "s/{project}/locations/{location}/connect" - + "ors/{connector}b\006proto3" + + "\010\"\310\002\n\005Probe\022\"\n\025initial_delay_seconds\030\001 \001" + + "(\005B\003\340A\001\022\034\n\017timeout_seconds\030\002 \001(\005B\003\340A\001\022\033\n" + + "\016period_seconds\030\003 \001(\005B\003\340A\001\022\036\n\021failure_th" + + "reshold\030\004 \001(\005B\003\340A\001\022;\n\010http_get\030\005 \001(\0132\".g" + + "oogle.cloud.run.v2.HTTPGetActionB\003\340A\001H\000\022" + + "?\n\ntcp_socket\030\006 \001(\0132$.google.cloud.run.v" + + "2.TCPSocketActionB\003\340A\001H\000\0224\n\004grpc\030\007 \001(\0132\037" + + ".google.cloud.run.v2.GRPCActionB\003\340A\001H\000B\014" + + "\n\nprobe_type\"q\n\rHTTPGetAction\022\021\n\004path\030\001 " + + "\001(\tB\003\340A\001\022:\n\014http_headers\030\004 \003(\0132\037.google." + + "cloud.run.v2.HTTPHeaderB\003\340A\001\022\021\n\004port\030\005 \001" + + "(\005B\003\340A\001\"3\n\nHTTPHeader\022\021\n\004name\030\001 \001(\tB\003\340A\002" + + "\022\022\n\005value\030\002 \001(\tB\003\340A\001\"$\n\017TCPSocketAction\022" + + "\021\n\004port\030\001 \001(\005B\003\340A\001\"5\n\nGRPCAction\022\021\n\004port" + + "\030\001 \001(\005B\003\340A\001\022\024\n\007service\030\002 \001(\tB\003\340A\001B\351\003\n\027co" + + "m.google.cloud.run.v2B\013K8sMinProtoP\001Z)cl" + + "oud.google.com/go/run/apiv2/runpb;runpb\352" + + "Ax\n!cloudkms.googleapis.com/CryptoKey\022Sp" + + "rojects/{project}/locations/{location}/k" + + "eyRings/{key_ring}/cryptoKeys/{crypto_ke" + + "y}\352AJ\n#secretmanager.googleapis.com/Secr" + + "et\022#projects/{project}/secrets/{secret}\352" + + "Ad\n*secretmanager.googleapis.com/SecretV" + + "ersion\0226projects/{project}/secrets/{secr" + + "et}/versions/{version}\352Ad\n\"vpcaccess.goo" + + "gleapis.com/Connector\022>projects/{project" + + "}/locations/{location}/connectors/{conne" + + "ctor}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/NFSVolumeSource.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/NFSVolumeSource.java index d40548961285..eb62835dfe34 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/NFSVolumeSource.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/NFSVolumeSource.java @@ -172,7 +172,7 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
                  -   * If true, mount the NFS volume as read only
                  +   * If true, the volume will be mounted as read only for all mounts.
                      * 
                  * * bool read_only = 3; @@ -787,7 +787,7 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { * * *
                  -     * If true, mount the NFS volume as read only
                  +     * If true, the volume will be mounted as read only for all mounts.
                        * 
                  * * bool read_only = 3; @@ -802,7 +802,7 @@ public boolean getReadOnly() { * * *
                  -     * If true, mount the NFS volume as read only
                  +     * If true, the volume will be mounted as read only for all mounts.
                        * 
                  * * bool read_only = 3; @@ -821,7 +821,7 @@ public Builder setReadOnly(boolean value) { * * *
                  -     * If true, mount the NFS volume as read only
                  +     * If true, the volume will be mounted as read only for all mounts.
                        * 
                  * * bool read_only = 3; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/NFSVolumeSourceOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/NFSVolumeSourceOrBuilder.java index e2ff2bf929f5..8aa6e630e5d1 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/NFSVolumeSourceOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/NFSVolumeSourceOrBuilder.java @@ -78,7 +78,7 @@ public interface NFSVolumeSourceOrBuilder * * *
                  -   * If true, mount the NFS volume as read only
                  +   * If true, the volume will be mounted as read only for all mounts.
                      * 
                  * * bool read_only = 3; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java index bfbf59ea3c5c..c53c51abec2d 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java @@ -118,13 +118,12 @@ public ProbeTypeCase getProbeTypeCase() { * * *
                  -   * Number of seconds after the container has started before the probe is
                  -   * initiated.
                  -   * Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe
                  -   * is 3600. Maximum value for startup probe is 240.
                  +   * Optional. Number of seconds after the container has started before the
                  +   * probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum
                  +   * value for liveness probe is 3600. Maximum value for startup probe is 240.
                      * 
                  * - * int32 initial_delay_seconds = 1; + * int32 initial_delay_seconds = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The initialDelaySeconds. */ @@ -139,12 +138,12 @@ public int getInitialDelaySeconds() { * * *
                  -   * Number of seconds after which the probe times out.
                  +   * Optional. Number of seconds after which the probe times out.
                      * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
                      * Must be smaller than period_seconds.
                      * 
                  * - * int32 timeout_seconds = 2; + * int32 timeout_seconds = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The timeoutSeconds. */ @@ -159,13 +158,13 @@ public int getTimeoutSeconds() { * * *
                  -   * How often (in seconds) to perform the probe.
                  +   * Optional. How often (in seconds) to perform the probe.
                      * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
                      * is 3600. Maximum value for startup probe is 240.
                      * Must be greater or equal than timeout_seconds.
                      * 
                  * - * int32 period_seconds = 3; + * int32 period_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The periodSeconds. */ @@ -180,11 +179,11 @@ public int getPeriodSeconds() { * * *
                  -   * Minimum consecutive failures for the probe to be considered failed after
                  -   * having succeeded. Defaults to 3. Minimum value is 1.
                  +   * Optional. Minimum consecutive failures for the probe to be considered
                  +   * failed after having succeeded. Defaults to 3. Minimum value is 1.
                      * 
                  * - * int32 failure_threshold = 4; + * int32 failure_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The failureThreshold. */ @@ -198,11 +197,13 @@ public int getFailureThreshold() { * * *
                  -   * HTTPGet specifies the http request to perform.
                  +   * Optional. HTTPGet specifies the http request to perform.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the httpGet field is set. */ @@ -214,11 +215,13 @@ public boolean hasHttpGet() { * * *
                  -   * HTTPGet specifies the http request to perform.
                  +   * Optional. HTTPGet specifies the http request to perform.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The httpGet. */ @@ -233,11 +236,13 @@ public com.google.cloud.run.v2.HTTPGetAction getHttpGet() { * * *
                  -   * HTTPGet specifies the http request to perform.
                  +   * Optional. HTTPGet specifies the http request to perform.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.HTTPGetActionOrBuilder getHttpGetOrBuilder() { @@ -252,11 +257,13 @@ public com.google.cloud.run.v2.HTTPGetActionOrBuilder getHttpGetOrBuilder() { * * *
                  -   * TCPSocket specifies an action involving a TCP port.
                  +   * Optional. TCPSocket specifies an action involving a TCP port.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the tcpSocket field is set. */ @@ -268,11 +275,13 @@ public boolean hasTcpSocket() { * * *
                  -   * TCPSocket specifies an action involving a TCP port.
                  +   * Optional. TCPSocket specifies an action involving a TCP port.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The tcpSocket. */ @@ -287,11 +296,13 @@ public com.google.cloud.run.v2.TCPSocketAction getTcpSocket() { * * *
                  -   * TCPSocket specifies an action involving a TCP port.
                  +   * Optional. TCPSocket specifies an action involving a TCP port.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.TCPSocketActionOrBuilder getTcpSocketOrBuilder() { @@ -306,11 +317,12 @@ public com.google.cloud.run.v2.TCPSocketActionOrBuilder getTcpSocketOrBuilder() * * *
                  -   * GRPC specifies an action involving a gRPC port.
                  +   * Optional. GRPC specifies an action involving a gRPC port.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the grpc field is set. */ @@ -322,11 +334,12 @@ public boolean hasGrpc() { * * *
                  -   * GRPC specifies an action involving a gRPC port.
                  +   * Optional. GRPC specifies an action involving a gRPC port.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The grpc. */ @@ -341,11 +354,12 @@ public com.google.cloud.run.v2.GRPCAction getGrpc() { * * *
                  -   * GRPC specifies an action involving a gRPC port.
                  +   * Optional. GRPC specifies an action involving a gRPC port.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.GRPCActionOrBuilder getGrpcOrBuilder() { @@ -895,13 +909,12 @@ public Builder clearProbeType() { * * *
                  -     * Number of seconds after the container has started before the probe is
                  -     * initiated.
                  -     * Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe
                  -     * is 3600. Maximum value for startup probe is 240.
                  +     * Optional. Number of seconds after the container has started before the
                  +     * probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum
                  +     * value for liveness probe is 3600. Maximum value for startup probe is 240.
                        * 
                  * - * int32 initial_delay_seconds = 1; + * int32 initial_delay_seconds = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The initialDelaySeconds. */ @@ -913,13 +926,12 @@ public int getInitialDelaySeconds() { * * *
                  -     * Number of seconds after the container has started before the probe is
                  -     * initiated.
                  -     * Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe
                  -     * is 3600. Maximum value for startup probe is 240.
                  +     * Optional. Number of seconds after the container has started before the
                  +     * probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum
                  +     * value for liveness probe is 3600. Maximum value for startup probe is 240.
                        * 
                  * - * int32 initial_delay_seconds = 1; + * int32 initial_delay_seconds = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The initialDelaySeconds to set. * @return This builder for chaining. @@ -935,13 +947,12 @@ public Builder setInitialDelaySeconds(int value) { * * *
                  -     * Number of seconds after the container has started before the probe is
                  -     * initiated.
                  -     * Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe
                  -     * is 3600. Maximum value for startup probe is 240.
                  +     * Optional. Number of seconds after the container has started before the
                  +     * probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum
                  +     * value for liveness probe is 3600. Maximum value for startup probe is 240.
                        * 
                  * - * int32 initial_delay_seconds = 1; + * int32 initial_delay_seconds = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -957,12 +968,12 @@ public Builder clearInitialDelaySeconds() { * * *
                  -     * Number of seconds after which the probe times out.
                  +     * Optional. Number of seconds after which the probe times out.
                        * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
                        * Must be smaller than period_seconds.
                        * 
                  * - * int32 timeout_seconds = 2; + * int32 timeout_seconds = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The timeoutSeconds. */ @@ -974,12 +985,12 @@ public int getTimeoutSeconds() { * * *
                  -     * Number of seconds after which the probe times out.
                  +     * Optional. Number of seconds after which the probe times out.
                        * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
                        * Must be smaller than period_seconds.
                        * 
                  * - * int32 timeout_seconds = 2; + * int32 timeout_seconds = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The timeoutSeconds to set. * @return This builder for chaining. @@ -995,12 +1006,12 @@ public Builder setTimeoutSeconds(int value) { * * *
                  -     * Number of seconds after which the probe times out.
                  +     * Optional. Number of seconds after which the probe times out.
                        * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
                        * Must be smaller than period_seconds.
                        * 
                  * - * int32 timeout_seconds = 2; + * int32 timeout_seconds = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1016,13 +1027,13 @@ public Builder clearTimeoutSeconds() { * * *
                  -     * How often (in seconds) to perform the probe.
                  +     * Optional. How often (in seconds) to perform the probe.
                        * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
                        * is 3600. Maximum value for startup probe is 240.
                        * Must be greater or equal than timeout_seconds.
                        * 
                  * - * int32 period_seconds = 3; + * int32 period_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The periodSeconds. */ @@ -1034,13 +1045,13 @@ public int getPeriodSeconds() { * * *
                  -     * How often (in seconds) to perform the probe.
                  +     * Optional. How often (in seconds) to perform the probe.
                        * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
                        * is 3600. Maximum value for startup probe is 240.
                        * Must be greater or equal than timeout_seconds.
                        * 
                  * - * int32 period_seconds = 3; + * int32 period_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The periodSeconds to set. * @return This builder for chaining. @@ -1056,13 +1067,13 @@ public Builder setPeriodSeconds(int value) { * * *
                  -     * How often (in seconds) to perform the probe.
                  +     * Optional. How often (in seconds) to perform the probe.
                        * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
                        * is 3600. Maximum value for startup probe is 240.
                        * Must be greater or equal than timeout_seconds.
                        * 
                  * - * int32 period_seconds = 3; + * int32 period_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1078,11 +1089,11 @@ public Builder clearPeriodSeconds() { * * *
                  -     * Minimum consecutive failures for the probe to be considered failed after
                  -     * having succeeded. Defaults to 3. Minimum value is 1.
                  +     * Optional. Minimum consecutive failures for the probe to be considered
                  +     * failed after having succeeded. Defaults to 3. Minimum value is 1.
                        * 
                  * - * int32 failure_threshold = 4; + * int32 failure_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The failureThreshold. */ @@ -1094,11 +1105,11 @@ public int getFailureThreshold() { * * *
                  -     * Minimum consecutive failures for the probe to be considered failed after
                  -     * having succeeded. Defaults to 3. Minimum value is 1.
                  +     * Optional. Minimum consecutive failures for the probe to be considered
                  +     * failed after having succeeded. Defaults to 3. Minimum value is 1.
                        * 
                  * - * int32 failure_threshold = 4; + * int32 failure_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The failureThreshold to set. * @return This builder for chaining. @@ -1114,11 +1125,11 @@ public Builder setFailureThreshold(int value) { * * *
                  -     * Minimum consecutive failures for the probe to be considered failed after
                  -     * having succeeded. Defaults to 3. Minimum value is 1.
                  +     * Optional. Minimum consecutive failures for the probe to be considered
                  +     * failed after having succeeded. Defaults to 3. Minimum value is 1.
                        * 
                  * - * int32 failure_threshold = 4; + * int32 failure_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1138,11 +1149,13 @@ public Builder clearFailureThreshold() { * * *
                  -     * HTTPGet specifies the http request to perform.
                  +     * Optional. HTTPGet specifies the http request to perform.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the httpGet field is set. */ @@ -1154,11 +1167,13 @@ public boolean hasHttpGet() { * * *
                  -     * HTTPGet specifies the http request to perform.
                  +     * Optional. HTTPGet specifies the http request to perform.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The httpGet. */ @@ -1180,11 +1195,13 @@ public com.google.cloud.run.v2.HTTPGetAction getHttpGet() { * * *
                  -     * HTTPGet specifies the http request to perform.
                  +     * Optional. HTTPGet specifies the http request to perform.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setHttpGet(com.google.cloud.run.v2.HTTPGetAction value) { if (httpGetBuilder_ == null) { @@ -1203,11 +1220,13 @@ public Builder setHttpGet(com.google.cloud.run.v2.HTTPGetAction value) { * * *
                  -     * HTTPGet specifies the http request to perform.
                  +     * Optional. HTTPGet specifies the http request to perform.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setHttpGet(com.google.cloud.run.v2.HTTPGetAction.Builder builderForValue) { if (httpGetBuilder_ == null) { @@ -1223,11 +1242,13 @@ public Builder setHttpGet(com.google.cloud.run.v2.HTTPGetAction.Builder builderF * * *
                  -     * HTTPGet specifies the http request to perform.
                  +     * Optional. HTTPGet specifies the http request to perform.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeHttpGet(com.google.cloud.run.v2.HTTPGetAction value) { if (httpGetBuilder_ == null) { @@ -1256,11 +1277,13 @@ public Builder mergeHttpGet(com.google.cloud.run.v2.HTTPGetAction value) { * * *
                  -     * HTTPGet specifies the http request to perform.
                  +     * Optional. HTTPGet specifies the http request to perform.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearHttpGet() { if (httpGetBuilder_ == null) { @@ -1282,11 +1305,13 @@ public Builder clearHttpGet() { * * *
                  -     * HTTPGet specifies the http request to perform.
                  +     * Optional. HTTPGet specifies the http request to perform.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.HTTPGetAction.Builder getHttpGetBuilder() { return getHttpGetFieldBuilder().getBuilder(); @@ -1295,11 +1320,13 @@ public com.google.cloud.run.v2.HTTPGetAction.Builder getHttpGetBuilder() { * * *
                  -     * HTTPGet specifies the http request to perform.
                  +     * Optional. HTTPGet specifies the http request to perform.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.HTTPGetActionOrBuilder getHttpGetOrBuilder() { @@ -1316,11 +1343,13 @@ public com.google.cloud.run.v2.HTTPGetActionOrBuilder getHttpGetOrBuilder() { * * *
                  -     * HTTPGet specifies the http request to perform.
                  +     * Optional. HTTPGet specifies the http request to perform.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.run.v2.HTTPGetAction, @@ -1355,11 +1384,13 @@ public com.google.cloud.run.v2.HTTPGetActionOrBuilder getHttpGetOrBuilder() { * * *
                  -     * TCPSocket specifies an action involving a TCP port.
                  +     * Optional. TCPSocket specifies an action involving a TCP port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the tcpSocket field is set. */ @@ -1371,11 +1402,13 @@ public boolean hasTcpSocket() { * * *
                  -     * TCPSocket specifies an action involving a TCP port.
                  +     * Optional. TCPSocket specifies an action involving a TCP port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The tcpSocket. */ @@ -1397,11 +1430,13 @@ public com.google.cloud.run.v2.TCPSocketAction getTcpSocket() { * * *
                  -     * TCPSocket specifies an action involving a TCP port.
                  +     * Optional. TCPSocket specifies an action involving a TCP port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTcpSocket(com.google.cloud.run.v2.TCPSocketAction value) { if (tcpSocketBuilder_ == null) { @@ -1420,11 +1455,13 @@ public Builder setTcpSocket(com.google.cloud.run.v2.TCPSocketAction value) { * * *
                  -     * TCPSocket specifies an action involving a TCP port.
                  +     * Optional. TCPSocket specifies an action involving a TCP port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTcpSocket(com.google.cloud.run.v2.TCPSocketAction.Builder builderForValue) { if (tcpSocketBuilder_ == null) { @@ -1440,11 +1477,13 @@ public Builder setTcpSocket(com.google.cloud.run.v2.TCPSocketAction.Builder buil * * *
                  -     * TCPSocket specifies an action involving a TCP port.
                  +     * Optional. TCPSocket specifies an action involving a TCP port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeTcpSocket(com.google.cloud.run.v2.TCPSocketAction value) { if (tcpSocketBuilder_ == null) { @@ -1473,11 +1512,13 @@ public Builder mergeTcpSocket(com.google.cloud.run.v2.TCPSocketAction value) { * * *
                  -     * TCPSocket specifies an action involving a TCP port.
                  +     * Optional. TCPSocket specifies an action involving a TCP port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTcpSocket() { if (tcpSocketBuilder_ == null) { @@ -1499,11 +1540,13 @@ public Builder clearTcpSocket() { * * *
                  -     * TCPSocket specifies an action involving a TCP port.
                  +     * Optional. TCPSocket specifies an action involving a TCP port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.TCPSocketAction.Builder getTcpSocketBuilder() { return getTcpSocketFieldBuilder().getBuilder(); @@ -1512,11 +1555,13 @@ public com.google.cloud.run.v2.TCPSocketAction.Builder getTcpSocketBuilder() { * * *
                  -     * TCPSocket specifies an action involving a TCP port.
                  +     * Optional. TCPSocket specifies an action involving a TCP port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.TCPSocketActionOrBuilder getTcpSocketOrBuilder() { @@ -1533,11 +1578,13 @@ public com.google.cloud.run.v2.TCPSocketActionOrBuilder getTcpSocketOrBuilder() * * *
                  -     * TCPSocket specifies an action involving a TCP port.
                  +     * Optional. TCPSocket specifies an action involving a TCP port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.run.v2.TCPSocketAction, @@ -1572,11 +1619,12 @@ public com.google.cloud.run.v2.TCPSocketActionOrBuilder getTcpSocketOrBuilder() * * *
                  -     * GRPC specifies an action involving a gRPC port.
                  +     * Optional. GRPC specifies an action involving a gRPC port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the grpc field is set. */ @@ -1588,11 +1636,12 @@ public boolean hasGrpc() { * * *
                  -     * GRPC specifies an action involving a gRPC port.
                  +     * Optional. GRPC specifies an action involving a gRPC port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The grpc. */ @@ -1614,11 +1663,12 @@ public com.google.cloud.run.v2.GRPCAction getGrpc() { * * *
                  -     * GRPC specifies an action involving a gRPC port.
                  +     * Optional. GRPC specifies an action involving a gRPC port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGrpc(com.google.cloud.run.v2.GRPCAction value) { if (grpcBuilder_ == null) { @@ -1637,11 +1687,12 @@ public Builder setGrpc(com.google.cloud.run.v2.GRPCAction value) { * * *
                  -     * GRPC specifies an action involving a gRPC port.
                  +     * Optional. GRPC specifies an action involving a gRPC port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGrpc(com.google.cloud.run.v2.GRPCAction.Builder builderForValue) { if (grpcBuilder_ == null) { @@ -1657,11 +1708,12 @@ public Builder setGrpc(com.google.cloud.run.v2.GRPCAction.Builder builderForValu * * *
                  -     * GRPC specifies an action involving a gRPC port.
                  +     * Optional. GRPC specifies an action involving a gRPC port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeGrpc(com.google.cloud.run.v2.GRPCAction value) { if (grpcBuilder_ == null) { @@ -1690,11 +1742,12 @@ public Builder mergeGrpc(com.google.cloud.run.v2.GRPCAction value) { * * *
                  -     * GRPC specifies an action involving a gRPC port.
                  +     * Optional. GRPC specifies an action involving a gRPC port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGrpc() { if (grpcBuilder_ == null) { @@ -1716,11 +1769,12 @@ public Builder clearGrpc() { * * *
                  -     * GRPC specifies an action involving a gRPC port.
                  +     * Optional. GRPC specifies an action involving a gRPC port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.GRPCAction.Builder getGrpcBuilder() { return getGrpcFieldBuilder().getBuilder(); @@ -1729,11 +1783,12 @@ public com.google.cloud.run.v2.GRPCAction.Builder getGrpcBuilder() { * * *
                  -     * GRPC specifies an action involving a gRPC port.
                  +     * Optional. GRPC specifies an action involving a gRPC port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.GRPCActionOrBuilder getGrpcOrBuilder() { @@ -1750,11 +1805,12 @@ public com.google.cloud.run.v2.GRPCActionOrBuilder getGrpcOrBuilder() { * * *
                  -     * GRPC specifies an action involving a gRPC port.
                  +     * Optional. GRPC specifies an action involving a gRPC port.
                        * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                        * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.run.v2.GRPCAction, diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java index 00f3c65db59e..7f26ee9b8f4e 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java @@ -28,13 +28,12 @@ public interface ProbeOrBuilder * * *
                  -   * Number of seconds after the container has started before the probe is
                  -   * initiated.
                  -   * Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe
                  -   * is 3600. Maximum value for startup probe is 240.
                  +   * Optional. Number of seconds after the container has started before the
                  +   * probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum
                  +   * value for liveness probe is 3600. Maximum value for startup probe is 240.
                      * 
                  * - * int32 initial_delay_seconds = 1; + * int32 initial_delay_seconds = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The initialDelaySeconds. */ @@ -44,12 +43,12 @@ public interface ProbeOrBuilder * * *
                  -   * Number of seconds after which the probe times out.
                  +   * Optional. Number of seconds after which the probe times out.
                      * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
                      * Must be smaller than period_seconds.
                      * 
                  * - * int32 timeout_seconds = 2; + * int32 timeout_seconds = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The timeoutSeconds. */ @@ -59,13 +58,13 @@ public interface ProbeOrBuilder * * *
                  -   * How often (in seconds) to perform the probe.
                  +   * Optional. How often (in seconds) to perform the probe.
                      * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
                      * is 3600. Maximum value for startup probe is 240.
                      * Must be greater or equal than timeout_seconds.
                      * 
                  * - * int32 period_seconds = 3; + * int32 period_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The periodSeconds. */ @@ -75,11 +74,11 @@ public interface ProbeOrBuilder * * *
                  -   * Minimum consecutive failures for the probe to be considered failed after
                  -   * having succeeded. Defaults to 3. Minimum value is 1.
                  +   * Optional. Minimum consecutive failures for the probe to be considered
                  +   * failed after having succeeded. Defaults to 3. Minimum value is 1.
                      * 
                  * - * int32 failure_threshold = 4; + * int32 failure_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The failureThreshold. */ @@ -89,11 +88,13 @@ public interface ProbeOrBuilder * * *
                  -   * HTTPGet specifies the http request to perform.
                  +   * Optional. HTTPGet specifies the http request to perform.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the httpGet field is set. */ @@ -102,11 +103,13 @@ public interface ProbeOrBuilder * * *
                  -   * HTTPGet specifies the http request to perform.
                  +   * Optional. HTTPGet specifies the http request to perform.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The httpGet. */ @@ -115,11 +118,13 @@ public interface ProbeOrBuilder * * *
                  -   * HTTPGet specifies the http request to perform.
                  +   * Optional. HTTPGet specifies the http request to perform.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * + * .google.cloud.run.v2.HTTPGetAction http_get = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.HTTPGetActionOrBuilder getHttpGetOrBuilder(); @@ -127,11 +132,13 @@ public interface ProbeOrBuilder * * *
                  -   * TCPSocket specifies an action involving a TCP port.
                  +   * Optional. TCPSocket specifies an action involving a TCP port.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the tcpSocket field is set. */ @@ -140,11 +147,13 @@ public interface ProbeOrBuilder * * *
                  -   * TCPSocket specifies an action involving a TCP port.
                  +   * Optional. TCPSocket specifies an action involving a TCP port.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The tcpSocket. */ @@ -153,11 +162,13 @@ public interface ProbeOrBuilder * * *
                  -   * TCPSocket specifies an action involving a TCP port.
                  +   * Optional. TCPSocket specifies an action involving a TCP port.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * + * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.TCPSocketActionOrBuilder getTcpSocketOrBuilder(); @@ -165,11 +176,12 @@ public interface ProbeOrBuilder * * *
                  -   * GRPC specifies an action involving a gRPC port.
                  +   * Optional. GRPC specifies an action involving a gRPC port.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the grpc field is set. */ @@ -178,11 +190,12 @@ public interface ProbeOrBuilder * * *
                  -   * GRPC specifies an action involving a gRPC port.
                  +   * Optional. GRPC specifies an action involving a gRPC port.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The grpc. */ @@ -191,11 +204,12 @@ public interface ProbeOrBuilder * * *
                  -   * GRPC specifies an action involving a gRPC port.
                  +   * Optional. GRPC specifies an action involving a gRPC port.
                      * Exactly one of httpGet, tcpSocket, or grpc must be specified.
                      * 
                  * - * .google.cloud.run.v2.GRPCAction grpc = 7; + * .google.cloud.run.v2.GRPCAction grpc = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.GRPCActionOrBuilder getGrpcOrBuilder(); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java index b0864f2eb01b..6d7f85a10f11 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java @@ -67,10 +67,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                  -   * Minimum number of serving instances that this resource should have.
                  +   * Optional. Minimum number of serving instances that this resource should
                  +   * have.
                      * 
                  * - * int32 min_instance_count = 1; + * int32 min_instance_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The minInstanceCount. */ @@ -85,10 +86,11 @@ public int getMinInstanceCount() { * * *
                  -   * Maximum number of serving instances that this resource should have.
                  +   * Optional. Maximum number of serving instances that this resource should
                  +   * have.
                      * 
                  * - * int32 max_instance_count = 2; + * int32 max_instance_count = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxInstanceCount. */ @@ -462,10 +464,11 @@ public Builder mergeFrom( * * *
                  -     * Minimum number of serving instances that this resource should have.
                  +     * Optional. Minimum number of serving instances that this resource should
                  +     * have.
                        * 
                  * - * int32 min_instance_count = 1; + * int32 min_instance_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The minInstanceCount. */ @@ -477,10 +480,11 @@ public int getMinInstanceCount() { * * *
                  -     * Minimum number of serving instances that this resource should have.
                  +     * Optional. Minimum number of serving instances that this resource should
                  +     * have.
                        * 
                  * - * int32 min_instance_count = 1; + * int32 min_instance_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The minInstanceCount to set. * @return This builder for chaining. @@ -496,10 +500,11 @@ public Builder setMinInstanceCount(int value) { * * *
                  -     * Minimum number of serving instances that this resource should have.
                  +     * Optional. Minimum number of serving instances that this resource should
                  +     * have.
                        * 
                  * - * int32 min_instance_count = 1; + * int32 min_instance_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -515,10 +520,11 @@ public Builder clearMinInstanceCount() { * * *
                  -     * Maximum number of serving instances that this resource should have.
                  +     * Optional. Maximum number of serving instances that this resource should
                  +     * have.
                        * 
                  * - * int32 max_instance_count = 2; + * int32 max_instance_count = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxInstanceCount. */ @@ -530,10 +536,11 @@ public int getMaxInstanceCount() { * * *
                  -     * Maximum number of serving instances that this resource should have.
                  +     * Optional. Maximum number of serving instances that this resource should
                  +     * have.
                        * 
                  * - * int32 max_instance_count = 2; + * int32 max_instance_count = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The maxInstanceCount to set. * @return This builder for chaining. @@ -549,10 +556,11 @@ public Builder setMaxInstanceCount(int value) { * * *
                  -     * Maximum number of serving instances that this resource should have.
                  +     * Optional. Maximum number of serving instances that this resource should
                  +     * have.
                        * 
                  * - * int32 max_instance_count = 2; + * int32 max_instance_count = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java index 53e3528feaa9..fa4014e67450 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java @@ -28,10 +28,11 @@ public interface RevisionScalingOrBuilder * * *
                  -   * Minimum number of serving instances that this resource should have.
                  +   * Optional. Minimum number of serving instances that this resource should
                  +   * have.
                      * 
                  * - * int32 min_instance_count = 1; + * int32 min_instance_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The minInstanceCount. */ @@ -41,10 +42,11 @@ public interface RevisionScalingOrBuilder * * *
                  -   * Maximum number of serving instances that this resource should have.
                  +   * Optional. Maximum number of serving instances that this resource should
                  +   * have.
                      * 
                  * - * int32 max_instance_count = 2; + * int32 max_instance_count = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxInstanceCount. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java index df0652cd44c0..a53472162906 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java @@ -92,11 +92,13 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
                  -   * The unique name for the revision. If this field is omitted, it will be
                  -   * automatically generated based on the Service name.
                  +   * Optional. The unique name for the revision. If this field is omitted, it
                  +   * will be automatically generated based on the Service name.
                      * 
                  * - * string revision = 1 [(.google.api.resource_reference) = { ... } + * + * string revision = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The revision. */ @@ -116,11 +118,13 @@ public java.lang.String getRevision() { * * *
                  -   * The unique name for the revision. If this field is omitted, it will be
                  -   * automatically generated based on the Service name.
                  +   * Optional. The unique name for the revision. If this field is omitted, it
                  +   * will be automatically generated based on the Service name.
                      * 
                  * - * string revision = 1 [(.google.api.resource_reference) = { ... } + * + * string revision = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for revision. */ @@ -167,11 +171,10 @@ public int getLabelsCount() { * * *
                  -   * Unstructured key value map that can be used to organize and categorize
                  -   * objects.
                  -   * User-provided labels are shared with Google's billing system, so they can
                  -   * be used to filter, or break down billing charges by team, component,
                  -   * environment, state, etc. For more information, visit
                  +   * Optional. Unstructured key value map that can be used to organize and
                  +   * categorize objects. User-provided labels are shared with Google's billing
                  +   * system, so they can be used to filter, or break down billing charges by
                  +   * team, component, environment, state, etc. For more information, visit
                      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                      * https://cloud.google.com/run/docs/configuring/labels.
                      *
                  @@ -181,7 +184,7 @@ public int getLabelsCount() {
                      * corresponding field in v2 RevisionTemplate.
                      * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -200,11 +203,10 @@ public java.util.Map getLabels() { * * *
                  -   * Unstructured key value map that can be used to organize and categorize
                  -   * objects.
                  -   * User-provided labels are shared with Google's billing system, so they can
                  -   * be used to filter, or break down billing charges by team, component,
                  -   * environment, state, etc. For more information, visit
                  +   * Optional. Unstructured key value map that can be used to organize and
                  +   * categorize objects. User-provided labels are shared with Google's billing
                  +   * system, so they can be used to filter, or break down billing charges by
                  +   * team, component, environment, state, etc. For more information, visit
                      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                      * https://cloud.google.com/run/docs/configuring/labels.
                      *
                  @@ -214,7 +216,7 @@ public java.util.Map getLabels() {
                      * corresponding field in v2 RevisionTemplate.
                      * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -224,11 +226,10 @@ public java.util.Map getLabelsMap() { * * *
                  -   * Unstructured key value map that can be used to organize and categorize
                  -   * objects.
                  -   * User-provided labels are shared with Google's billing system, so they can
                  -   * be used to filter, or break down billing charges by team, component,
                  -   * environment, state, etc. For more information, visit
                  +   * Optional. Unstructured key value map that can be used to organize and
                  +   * categorize objects. User-provided labels are shared with Google's billing
                  +   * system, so they can be used to filter, or break down billing charges by
                  +   * team, component, environment, state, etc. For more information, visit
                      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                      * https://cloud.google.com/run/docs/configuring/labels.
                      *
                  @@ -238,7 +239,7 @@ public java.util.Map getLabelsMap() {
                      * corresponding field in v2 RevisionTemplate.
                      * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -255,11 +256,10 @@ public java.util.Map getLabelsMap() { * * *
                  -   * Unstructured key value map that can be used to organize and categorize
                  -   * objects.
                  -   * User-provided labels are shared with Google's billing system, so they can
                  -   * be used to filter, or break down billing charges by team, component,
                  -   * environment, state, etc. For more information, visit
                  +   * Optional. Unstructured key value map that can be used to organize and
                  +   * categorize objects. User-provided labels are shared with Google's billing
                  +   * system, so they can be used to filter, or break down billing charges by
                  +   * team, component, environment, state, etc. For more information, visit
                      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                      * https://cloud.google.com/run/docs/configuring/labels.
                      *
                  @@ -269,7 +269,7 @@ public java.util.Map getLabelsMap() {
                      * corresponding field in v2 RevisionTemplate.
                      * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -314,9 +314,9 @@ public int getAnnotationsCount() { * * *
                  -   * Unstructured key value map that may be set by external tools to store and
                  -   * arbitrary metadata. They are not queryable and should be preserved
                  -   * when modifying objects.
                  +   * Optional. Unstructured key value map that may be set by external tools to
                  +   * store and arbitrary metadata. They are not queryable and should be
                  +   * preserved when modifying objects.
                      *
                      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -327,7 +327,8 @@ public int getAnnotationsCount() {
                      * rules.
                      * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsAnnotations(java.lang.String key) { @@ -346,9 +347,9 @@ public java.util.Map getAnnotations() { * * *
                  -   * Unstructured key value map that may be set by external tools to store and
                  -   * arbitrary metadata. They are not queryable and should be preserved
                  -   * when modifying objects.
                  +   * Optional. Unstructured key value map that may be set by external tools to
                  +   * store and arbitrary metadata. They are not queryable and should be
                  +   * preserved when modifying objects.
                      *
                      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -359,7 +360,8 @@ public java.util.Map getAnnotations() {
                      * rules.
                      * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { @@ -369,9 +371,9 @@ public java.util.Map getAnnotationsMap() { * * *
                  -   * Unstructured key value map that may be set by external tools to store and
                  -   * arbitrary metadata. They are not queryable and should be preserved
                  -   * when modifying objects.
                  +   * Optional. Unstructured key value map that may be set by external tools to
                  +   * store and arbitrary metadata. They are not queryable and should be
                  +   * preserved when modifying objects.
                      *
                      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -382,7 +384,8 @@ public java.util.Map getAnnotationsMap() {
                      * rules.
                      * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAnnotationsOrDefault( @@ -399,9 +402,9 @@ public java.util.Map getAnnotationsMap() { * * *
                  -   * Unstructured key value map that may be set by external tools to store and
                  -   * arbitrary metadata. They are not queryable and should be preserved
                  -   * when modifying objects.
                  +   * Optional. Unstructured key value map that may be set by external tools to
                  +   * store and arbitrary metadata. They are not queryable and should be
                  +   * preserved when modifying objects.
                      *
                      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -412,7 +415,8 @@ public java.util.Map getAnnotationsMap() {
                      * rules.
                      * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { @@ -432,10 +436,12 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { * * *
                  -   * Scaling settings for this Revision.
                  +   * Optional. Scaling settings for this Revision.
                      * 
                  * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the scaling field is set. */ @@ -447,10 +453,12 @@ public boolean hasScaling() { * * *
                  -   * Scaling settings for this Revision.
                  +   * Optional. Scaling settings for this Revision.
                      * 
                  * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The scaling. */ @@ -464,10 +472,12 @@ public com.google.cloud.run.v2.RevisionScaling getScaling() { * * *
                  -   * Scaling settings for this Revision.
                  +   * Optional. Scaling settings for this Revision.
                      * 
                  * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { @@ -482,11 +492,13 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { * * *
                  -   * VPC Access configuration to use for this Revision. For more information,
                  -   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +   * Optional. VPC Access configuration to use for this Revision. For more
                  +   * information, visit
                  +   * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the vpcAccess field is set. */ @@ -498,11 +510,13 @@ public boolean hasVpcAccess() { * * *
                  -   * VPC Access configuration to use for this Revision. For more information,
                  -   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +   * Optional. VPC Access configuration to use for this Revision. For more
                  +   * information, visit
                  +   * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The vpcAccess. */ @@ -514,11 +528,13 @@ public com.google.cloud.run.v2.VpcAccess getVpcAccess() { * * *
                  -   * VPC Access configuration to use for this Revision. For more information,
                  -   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +   * Optional. VPC Access configuration to use for this Revision. For more
                  +   * information, visit
                  +   * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { @@ -531,10 +547,10 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { * * *
                  -   * Max allowed time for an instance to respond to a request.
                  +   * Optional. Max allowed time for an instance to respond to a request.
                      * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the timeout field is set. */ @@ -546,10 +562,10 @@ public boolean hasTimeout() { * * *
                  -   * Max allowed time for an instance to respond to a request.
                  +   * Optional. Max allowed time for an instance to respond to a request.
                      * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The timeout. */ @@ -561,10 +577,10 @@ public com.google.protobuf.Duration getTimeout() { * * *
                  -   * Max allowed time for an instance to respond to a request.
                  +   * Optional. Max allowed time for an instance to respond to a request.
                      * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { @@ -579,13 +595,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * * *
                  -   * Email address of the IAM service account associated with the revision of
                  -   * the service. The service account represents the identity of the running
                  -   * revision, and determines what permissions the revision has. If not
                  +   * Optional. Email address of the IAM service account associated with the
                  +   * revision of the service. The service account represents the identity of the
                  +   * running revision, and determines what permissions the revision has. If not
                      * provided, the revision will use the project's default service account.
                      * 
                  * - * string service_account = 9; + * string service_account = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccount. */ @@ -605,13 +621,13 @@ public java.lang.String getServiceAccount() { * * *
                  -   * Email address of the IAM service account associated with the revision of
                  -   * the service. The service account represents the identity of the running
                  -   * revision, and determines what permissions the revision has. If not
                  +   * Optional. Email address of the IAM service account associated with the
                  +   * revision of the service. The service account represents the identity of the
                  +   * running revision, and determines what permissions the revision has. If not
                      * provided, the revision will use the project's default service account.
                      * 
                  * - * string service_account = 9; + * string service_account = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccount. */ @@ -712,10 +728,12 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int ind * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getVolumesList() { @@ -725,10 +743,12 @@ public java.util.List getVolumesList() { * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -739,10 +759,12 @@ public java.util.List getVolumesList() { * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getVolumesCount() { @@ -752,10 +774,12 @@ public int getVolumesCount() { * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.Volume getVolumes(int index) { @@ -765,10 +789,12 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { @@ -781,10 +807,12 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { * * *
                  -   * The sandbox environment to host this Revision.
                  +   * Optional. The sandbox environment to host this Revision.
                      * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for executionEnvironment. */ @@ -796,10 +824,12 @@ public int getExecutionEnvironmentValue() { * * *
                  -   * The sandbox environment to host this Revision.
                  +   * Optional. The sandbox environment to host this Revision.
                      * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The executionEnvironment. */ @@ -871,10 +901,12 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() { * * *
                  -   * Sets the maximum number of requests that each serving instance can receive.
                  +   * Optional. Sets the maximum number of requests that each serving instance
                  +   * can receive.
                      * 
                  * - * int32 max_instance_request_concurrency = 15; + * int32 max_instance_request_concurrency = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maxInstanceRequestConcurrency. */ @@ -1754,11 +1786,13 @@ public Builder mergeFrom( * * *
                  -     * The unique name for the revision. If this field is omitted, it will be
                  -     * automatically generated based on the Service name.
                  +     * Optional. The unique name for the revision. If this field is omitted, it
                  +     * will be automatically generated based on the Service name.
                        * 
                  * - * string revision = 1 [(.google.api.resource_reference) = { ... } + * + * string revision = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The revision. */ @@ -1777,11 +1811,13 @@ public java.lang.String getRevision() { * * *
                  -     * The unique name for the revision. If this field is omitted, it will be
                  -     * automatically generated based on the Service name.
                  +     * Optional. The unique name for the revision. If this field is omitted, it
                  +     * will be automatically generated based on the Service name.
                        * 
                  * - * string revision = 1 [(.google.api.resource_reference) = { ... } + * + * string revision = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for revision. */ @@ -1800,11 +1836,13 @@ public com.google.protobuf.ByteString getRevisionBytes() { * * *
                  -     * The unique name for the revision. If this field is omitted, it will be
                  -     * automatically generated based on the Service name.
                  +     * Optional. The unique name for the revision. If this field is omitted, it
                  +     * will be automatically generated based on the Service name.
                        * 
                  * - * string revision = 1 [(.google.api.resource_reference) = { ... } + * + * string revision = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The revision to set. * @return This builder for chaining. @@ -1822,11 +1860,13 @@ public Builder setRevision(java.lang.String value) { * * *
                  -     * The unique name for the revision. If this field is omitted, it will be
                  -     * automatically generated based on the Service name.
                  +     * Optional. The unique name for the revision. If this field is omitted, it
                  +     * will be automatically generated based on the Service name.
                        * 
                  * - * string revision = 1 [(.google.api.resource_reference) = { ... } + * + * string revision = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1840,11 +1880,13 @@ public Builder clearRevision() { * * *
                  -     * The unique name for the revision. If this field is omitted, it will be
                  -     * automatically generated based on the Service name.
                  +     * Optional. The unique name for the revision. If this field is omitted, it
                  +     * will be automatically generated based on the Service name.
                        * 
                  * - * string revision = 1 [(.google.api.resource_reference) = { ... } + * + * string revision = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for revision to set. * @return This builder for chaining. @@ -1889,11 +1931,10 @@ public int getLabelsCount() { * * *
                  -     * Unstructured key value map that can be used to organize and categorize
                  -     * objects.
                  -     * User-provided labels are shared with Google's billing system, so they can
                  -     * be used to filter, or break down billing charges by team, component,
                  -     * environment, state, etc. For more information, visit
                  +     * Optional. Unstructured key value map that can be used to organize and
                  +     * categorize objects. User-provided labels are shared with Google's billing
                  +     * system, so they can be used to filter, or break down billing charges by
                  +     * team, component, environment, state, etc. For more information, visit
                        * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                        * https://cloud.google.com/run/docs/configuring/labels.
                        *
                  @@ -1903,7 +1944,7 @@ public int getLabelsCount() {
                        * corresponding field in v2 RevisionTemplate.
                        * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -1922,11 +1963,10 @@ public java.util.Map getLabels() { * * *
                  -     * Unstructured key value map that can be used to organize and categorize
                  -     * objects.
                  -     * User-provided labels are shared with Google's billing system, so they can
                  -     * be used to filter, or break down billing charges by team, component,
                  -     * environment, state, etc. For more information, visit
                  +     * Optional. Unstructured key value map that can be used to organize and
                  +     * categorize objects. User-provided labels are shared with Google's billing
                  +     * system, so they can be used to filter, or break down billing charges by
                  +     * team, component, environment, state, etc. For more information, visit
                        * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                        * https://cloud.google.com/run/docs/configuring/labels.
                        *
                  @@ -1936,7 +1976,7 @@ public java.util.Map getLabels() {
                        * corresponding field in v2 RevisionTemplate.
                        * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -1946,11 +1986,10 @@ public java.util.Map getLabelsMap() { * * *
                  -     * Unstructured key value map that can be used to organize and categorize
                  -     * objects.
                  -     * User-provided labels are shared with Google's billing system, so they can
                  -     * be used to filter, or break down billing charges by team, component,
                  -     * environment, state, etc. For more information, visit
                  +     * Optional. Unstructured key value map that can be used to organize and
                  +     * categorize objects. User-provided labels are shared with Google's billing
                  +     * system, so they can be used to filter, or break down billing charges by
                  +     * team, component, environment, state, etc. For more information, visit
                        * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                        * https://cloud.google.com/run/docs/configuring/labels.
                        *
                  @@ -1960,7 +1999,7 @@ public java.util.Map getLabelsMap() {
                        * corresponding field in v2 RevisionTemplate.
                        * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -1977,11 +2016,10 @@ public java.util.Map getLabelsMap() { * * *
                  -     * Unstructured key value map that can be used to organize and categorize
                  -     * objects.
                  -     * User-provided labels are shared with Google's billing system, so they can
                  -     * be used to filter, or break down billing charges by team, component,
                  -     * environment, state, etc. For more information, visit
                  +     * Optional. Unstructured key value map that can be used to organize and
                  +     * categorize objects. User-provided labels are shared with Google's billing
                  +     * system, so they can be used to filter, or break down billing charges by
                  +     * team, component, environment, state, etc. For more information, visit
                        * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                        * https://cloud.google.com/run/docs/configuring/labels.
                        *
                  @@ -1991,7 +2029,7 @@ public java.util.Map getLabelsMap() {
                        * corresponding field in v2 RevisionTemplate.
                        * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -2014,11 +2052,10 @@ public Builder clearLabels() { * * *
                  -     * Unstructured key value map that can be used to organize and categorize
                  -     * objects.
                  -     * User-provided labels are shared with Google's billing system, so they can
                  -     * be used to filter, or break down billing charges by team, component,
                  -     * environment, state, etc. For more information, visit
                  +     * Optional. Unstructured key value map that can be used to organize and
                  +     * categorize objects. User-provided labels are shared with Google's billing
                  +     * system, so they can be used to filter, or break down billing charges by
                  +     * team, component, environment, state, etc. For more information, visit
                        * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                        * https://cloud.google.com/run/docs/configuring/labels.
                        *
                  @@ -2028,7 +2065,7 @@ public Builder clearLabels() {
                        * corresponding field in v2 RevisionTemplate.
                        * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -2047,11 +2084,10 @@ public java.util.Map getMutableLabels() { * * *
                  -     * Unstructured key value map that can be used to organize and categorize
                  -     * objects.
                  -     * User-provided labels are shared with Google's billing system, so they can
                  -     * be used to filter, or break down billing charges by team, component,
                  -     * environment, state, etc. For more information, visit
                  +     * Optional. Unstructured key value map that can be used to organize and
                  +     * categorize objects. User-provided labels are shared with Google's billing
                  +     * system, so they can be used to filter, or break down billing charges by
                  +     * team, component, environment, state, etc. For more information, visit
                        * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                        * https://cloud.google.com/run/docs/configuring/labels.
                        *
                  @@ -2061,7 +2097,7 @@ public java.util.Map getMutableLabels() {
                        * corresponding field in v2 RevisionTemplate.
                        * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -2078,11 +2114,10 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
                  -     * Unstructured key value map that can be used to organize and categorize
                  -     * objects.
                  -     * User-provided labels are shared with Google's billing system, so they can
                  -     * be used to filter, or break down billing charges by team, component,
                  -     * environment, state, etc. For more information, visit
                  +     * Optional. Unstructured key value map that can be used to organize and
                  +     * categorize objects. User-provided labels are shared with Google's billing
                  +     * system, so they can be used to filter, or break down billing charges by
                  +     * team, component, environment, state, etc. For more information, visit
                        * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                        * https://cloud.google.com/run/docs/configuring/labels.
                        *
                  @@ -2092,7 +2127,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
                        * corresponding field in v2 RevisionTemplate.
                        * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); @@ -2132,9 +2167,9 @@ public int getAnnotationsCount() { * * *
                  -     * Unstructured key value map that may be set by external tools to store and
                  -     * arbitrary metadata. They are not queryable and should be preserved
                  -     * when modifying objects.
                  +     * Optional. Unstructured key value map that may be set by external tools to
                  +     * store and arbitrary metadata. They are not queryable and should be
                  +     * preserved when modifying objects.
                        *
                        * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                        * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -2145,7 +2180,8 @@ public int getAnnotationsCount() {
                        * rules.
                        * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsAnnotations(java.lang.String key) { @@ -2164,9 +2200,9 @@ public java.util.Map getAnnotations() { * * *
                  -     * Unstructured key value map that may be set by external tools to store and
                  -     * arbitrary metadata. They are not queryable and should be preserved
                  -     * when modifying objects.
                  +     * Optional. Unstructured key value map that may be set by external tools to
                  +     * store and arbitrary metadata. They are not queryable and should be
                  +     * preserved when modifying objects.
                        *
                        * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                        * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -2177,7 +2213,8 @@ public java.util.Map getAnnotations() {
                        * rules.
                        * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { @@ -2187,9 +2224,9 @@ public java.util.Map getAnnotationsMap() { * * *
                  -     * Unstructured key value map that may be set by external tools to store and
                  -     * arbitrary metadata. They are not queryable and should be preserved
                  -     * when modifying objects.
                  +     * Optional. Unstructured key value map that may be set by external tools to
                  +     * store and arbitrary metadata. They are not queryable and should be
                  +     * preserved when modifying objects.
                        *
                        * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                        * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -2200,7 +2237,8 @@ public java.util.Map getAnnotationsMap() {
                        * rules.
                        * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAnnotationsOrDefault( @@ -2217,9 +2255,9 @@ public java.util.Map getAnnotationsMap() { * * *
                  -     * Unstructured key value map that may be set by external tools to store and
                  -     * arbitrary metadata. They are not queryable and should be preserved
                  -     * when modifying objects.
                  +     * Optional. Unstructured key value map that may be set by external tools to
                  +     * store and arbitrary metadata. They are not queryable and should be
                  +     * preserved when modifying objects.
                        *
                        * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                        * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -2230,7 +2268,8 @@ public java.util.Map getAnnotationsMap() {
                        * rules.
                        * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { @@ -2253,9 +2292,9 @@ public Builder clearAnnotations() { * * *
                  -     * Unstructured key value map that may be set by external tools to store and
                  -     * arbitrary metadata. They are not queryable and should be preserved
                  -     * when modifying objects.
                  +     * Optional. Unstructured key value map that may be set by external tools to
                  +     * store and arbitrary metadata. They are not queryable and should be
                  +     * preserved when modifying objects.
                        *
                        * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                        * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -2266,7 +2305,8 @@ public Builder clearAnnotations() {
                        * rules.
                        * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAnnotations(java.lang.String key) { if (key == null) { @@ -2285,9 +2325,9 @@ public java.util.Map getMutableAnnotations() * * *
                  -     * Unstructured key value map that may be set by external tools to store and
                  -     * arbitrary metadata. They are not queryable and should be preserved
                  -     * when modifying objects.
                  +     * Optional. Unstructured key value map that may be set by external tools to
                  +     * store and arbitrary metadata. They are not queryable and should be
                  +     * preserved when modifying objects.
                        *
                        * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                        * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -2298,7 +2338,8 @@ public java.util.Map getMutableAnnotations()
                        * rules.
                        * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAnnotations(java.lang.String key, java.lang.String value) { if (key == null) { @@ -2315,9 +2356,9 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { * * *
                  -     * Unstructured key value map that may be set by external tools to store and
                  -     * arbitrary metadata. They are not queryable and should be preserved
                  -     * when modifying objects.
                  +     * Optional. Unstructured key value map that may be set by external tools to
                  +     * store and arbitrary metadata. They are not queryable and should be
                  +     * preserved when modifying objects.
                        *
                        * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                        * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -2328,7 +2369,8 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) {
                        * rules.
                        * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllAnnotations(java.util.Map values) { internalGetMutableAnnotations().getMutableMap().putAll(values); @@ -2346,10 +2388,12 @@ public Builder putAllAnnotations(java.util.Map - * Scaling settings for this Revision. + * Optional. Scaling settings for this Revision. * * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the scaling field is set. */ @@ -2360,10 +2404,12 @@ public boolean hasScaling() { * * *
                  -     * Scaling settings for this Revision.
                  +     * Optional. Scaling settings for this Revision.
                        * 
                  * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The scaling. */ @@ -2380,10 +2426,12 @@ public com.google.cloud.run.v2.RevisionScaling getScaling() { * * *
                  -     * Scaling settings for this Revision.
                  +     * Optional. Scaling settings for this Revision.
                        * 
                  * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setScaling(com.google.cloud.run.v2.RevisionScaling value) { if (scalingBuilder_ == null) { @@ -2402,10 +2450,12 @@ public Builder setScaling(com.google.cloud.run.v2.RevisionScaling value) { * * *
                  -     * Scaling settings for this Revision.
                  +     * Optional. Scaling settings for this Revision.
                        * 
                  * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setScaling(com.google.cloud.run.v2.RevisionScaling.Builder builderForValue) { if (scalingBuilder_ == null) { @@ -2421,10 +2471,12 @@ public Builder setScaling(com.google.cloud.run.v2.RevisionScaling.Builder builde * * *
                  -     * Scaling settings for this Revision.
                  +     * Optional. Scaling settings for this Revision.
                        * 
                  * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { if (scalingBuilder_ == null) { @@ -2448,10 +2500,12 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { * * *
                  -     * Scaling settings for this Revision.
                  +     * Optional. Scaling settings for this Revision.
                        * 
                  * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearScaling() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2467,10 +2521,12 @@ public Builder clearScaling() { * * *
                  -     * Scaling settings for this Revision.
                  +     * Optional. Scaling settings for this Revision.
                        * 
                  * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.RevisionScaling.Builder getScalingBuilder() { bitField0_ |= 0x00000008; @@ -2481,10 +2537,12 @@ public com.google.cloud.run.v2.RevisionScaling.Builder getScalingBuilder() { * * *
                  -     * Scaling settings for this Revision.
                  +     * Optional. Scaling settings for this Revision.
                        * 
                  * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { if (scalingBuilder_ != null) { @@ -2499,10 +2557,12 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { * * *
                  -     * Scaling settings for this Revision.
                  +     * Optional. Scaling settings for this Revision.
                        * 
                  * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.run.v2.RevisionScaling, @@ -2531,11 +2591,14 @@ public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() { * * *
                  -     * VPC Access configuration to use for this Revision. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Revision. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the vpcAccess field is set. */ @@ -2546,11 +2609,14 @@ public boolean hasVpcAccess() { * * *
                  -     * VPC Access configuration to use for this Revision. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Revision. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The vpcAccess. */ @@ -2567,11 +2633,14 @@ public com.google.cloud.run.v2.VpcAccess getVpcAccess() { * * *
                  -     * VPC Access configuration to use for this Revision. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Revision. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) { if (vpcAccessBuilder_ == null) { @@ -2590,11 +2659,14 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) { * * *
                  -     * VPC Access configuration to use for this Revision. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Revision. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess.Builder builderForValue) { if (vpcAccessBuilder_ == null) { @@ -2610,11 +2682,14 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess.Builder builderFor * * *
                  -     * VPC Access configuration to use for this Revision. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Revision. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) { if (vpcAccessBuilder_ == null) { @@ -2638,11 +2713,14 @@ public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) { * * *
                  -     * VPC Access configuration to use for this Revision. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Revision. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearVpcAccess() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2658,11 +2736,14 @@ public Builder clearVpcAccess() { * * *
                  -     * VPC Access configuration to use for this Revision. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Revision. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.VpcAccess.Builder getVpcAccessBuilder() { bitField0_ |= 0x00000010; @@ -2673,11 +2754,14 @@ public com.google.cloud.run.v2.VpcAccess.Builder getVpcAccessBuilder() { * * *
                  -     * VPC Access configuration to use for this Revision. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Revision. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { if (vpcAccessBuilder_ != null) { @@ -2692,11 +2776,14 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { * * *
                  -     * VPC Access configuration to use for this Revision. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Revision. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.run.v2.VpcAccess, @@ -2725,10 +2812,10 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { * * *
                  -     * Max allowed time for an instance to respond to a request.
                  +     * Optional. Max allowed time for an instance to respond to a request.
                        * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the timeout field is set. */ @@ -2739,10 +2826,10 @@ public boolean hasTimeout() { * * *
                  -     * Max allowed time for an instance to respond to a request.
                  +     * Optional. Max allowed time for an instance to respond to a request.
                        * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The timeout. */ @@ -2757,10 +2844,10 @@ public com.google.protobuf.Duration getTimeout() { * * *
                  -     * Max allowed time for an instance to respond to a request.
                  +     * Optional. Max allowed time for an instance to respond to a request.
                        * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { @@ -2779,10 +2866,10 @@ public Builder setTimeout(com.google.protobuf.Duration value) { * * *
                  -     * Max allowed time for an instance to respond to a request.
                  +     * Optional. Max allowed time for an instance to respond to a request.
                        * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (timeoutBuilder_ == null) { @@ -2798,10 +2885,10 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) * * *
                  -     * Max allowed time for an instance to respond to a request.
                  +     * Optional. Max allowed time for an instance to respond to a request.
                        * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { @@ -2825,10 +2912,10 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { * * *
                  -     * Max allowed time for an instance to respond to a request.
                  +     * Optional. Max allowed time for an instance to respond to a request.
                        * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTimeout() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2844,10 +2931,10 @@ public Builder clearTimeout() { * * *
                  -     * Max allowed time for an instance to respond to a request.
                  +     * Optional. Max allowed time for an instance to respond to a request.
                        * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { bitField0_ |= 0x00000020; @@ -2858,10 +2945,10 @@ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { * * *
                  -     * Max allowed time for an instance to respond to a request.
                  +     * Optional. Max allowed time for an instance to respond to a request.
                        * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { if (timeoutBuilder_ != null) { @@ -2874,10 +2961,10 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * * *
                  -     * Max allowed time for an instance to respond to a request.
                  +     * Optional. Max allowed time for an instance to respond to a request.
                        * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -2901,13 +2988,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * * *
                  -     * Email address of the IAM service account associated with the revision of
                  -     * the service. The service account represents the identity of the running
                  -     * revision, and determines what permissions the revision has. If not
                  +     * Optional. Email address of the IAM service account associated with the
                  +     * revision of the service. The service account represents the identity of the
                  +     * running revision, and determines what permissions the revision has. If not
                        * provided, the revision will use the project's default service account.
                        * 
                  * - * string service_account = 9; + * string service_account = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccount. */ @@ -2926,13 +3013,13 @@ public java.lang.String getServiceAccount() { * * *
                  -     * Email address of the IAM service account associated with the revision of
                  -     * the service. The service account represents the identity of the running
                  -     * revision, and determines what permissions the revision has. If not
                  +     * Optional. Email address of the IAM service account associated with the
                  +     * revision of the service. The service account represents the identity of the
                  +     * running revision, and determines what permissions the revision has. If not
                        * provided, the revision will use the project's default service account.
                        * 
                  * - * string service_account = 9; + * string service_account = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccount. */ @@ -2951,13 +3038,13 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
                  -     * Email address of the IAM service account associated with the revision of
                  -     * the service. The service account represents the identity of the running
                  -     * revision, and determines what permissions the revision has. If not
                  +     * Optional. Email address of the IAM service account associated with the
                  +     * revision of the service. The service account represents the identity of the
                  +     * running revision, and determines what permissions the revision has. If not
                        * provided, the revision will use the project's default service account.
                        * 
                  * - * string service_account = 9; + * string service_account = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The serviceAccount to set. * @return This builder for chaining. @@ -2975,13 +3062,13 @@ public Builder setServiceAccount(java.lang.String value) { * * *
                  -     * Email address of the IAM service account associated with the revision of
                  -     * the service. The service account represents the identity of the running
                  -     * revision, and determines what permissions the revision has. If not
                  +     * Optional. Email address of the IAM service account associated with the
                  +     * revision of the service. The service account represents the identity of the
                  +     * running revision, and determines what permissions the revision has. If not
                        * provided, the revision will use the project's default service account.
                        * 
                  * - * string service_account = 9; + * string service_account = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2995,13 +3082,13 @@ public Builder clearServiceAccount() { * * *
                  -     * Email address of the IAM service account associated with the revision of
                  -     * the service. The service account represents the identity of the running
                  -     * revision, and determines what permissions the revision has. If not
                  +     * Optional. Email address of the IAM service account associated with the
                  +     * revision of the service. The service account represents the identity of the
                  +     * running revision, and determines what permissions the revision has. If not
                        * provided, the revision will use the project's default service account.
                        * 
                  * - * string service_account = 9; + * string service_account = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. @@ -3403,10 +3490,12 @@ private void ensureVolumesIsMutable() { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getVolumesList() { if (volumesBuilder_ == null) { @@ -3419,10 +3508,12 @@ public java.util.List getVolumesList() { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getVolumesCount() { if (volumesBuilder_ == null) { @@ -3435,10 +3526,12 @@ public int getVolumesCount() { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.Volume getVolumes(int index) { if (volumesBuilder_ == null) { @@ -3451,10 +3544,12 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVolumes(int index, com.google.cloud.run.v2.Volume value) { if (volumesBuilder_ == null) { @@ -3473,10 +3568,12 @@ public Builder setVolumes(int index, com.google.cloud.run.v2.Volume value) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { @@ -3492,10 +3589,12 @@ public Builder setVolumes(int index, com.google.cloud.run.v2.Volume.Builder buil * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addVolumes(com.google.cloud.run.v2.Volume value) { if (volumesBuilder_ == null) { @@ -3514,10 +3613,12 @@ public Builder addVolumes(com.google.cloud.run.v2.Volume value) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addVolumes(int index, com.google.cloud.run.v2.Volume value) { if (volumesBuilder_ == null) { @@ -3536,10 +3637,12 @@ public Builder addVolumes(int index, com.google.cloud.run.v2.Volume value) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addVolumes(com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { @@ -3555,10 +3658,12 @@ public Builder addVolumes(com.google.cloud.run.v2.Volume.Builder builderForValue * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { @@ -3574,10 +3679,12 @@ public Builder addVolumes(int index, com.google.cloud.run.v2.Volume.Builder buil * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllVolumes( java.lang.Iterable values) { @@ -3594,10 +3701,12 @@ public Builder addAllVolumes( * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearVolumes() { if (volumesBuilder_ == null) { @@ -3613,10 +3722,12 @@ public Builder clearVolumes() { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeVolumes(int index) { if (volumesBuilder_ == null) { @@ -3632,10 +3743,12 @@ public Builder removeVolumes(int index) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.Volume.Builder getVolumesBuilder(int index) { return getVolumesFieldBuilder().getBuilder(index); @@ -3644,10 +3757,12 @@ public com.google.cloud.run.v2.Volume.Builder getVolumesBuilder(int index) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { if (volumesBuilder_ == null) { @@ -3660,10 +3775,12 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getVolumesOrBuilderList() { @@ -3677,10 +3794,12 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() { return getVolumesFieldBuilder() @@ -3690,10 +3809,12 @@ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder(int index) { return getVolumesFieldBuilder() @@ -3703,10 +3824,12 @@ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder(int index) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); @@ -3734,10 +3857,12 @@ public java.util.List getVolumesBuilderL * * *
                  -     * The sandbox environment to host this Revision.
                  +     * Optional. The sandbox environment to host this Revision.
                        * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for executionEnvironment. */ @@ -3749,10 +3874,12 @@ public int getExecutionEnvironmentValue() { * * *
                  -     * The sandbox environment to host this Revision.
                  +     * Optional. The sandbox environment to host this Revision.
                        * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The enum numeric value on the wire for executionEnvironment to set. * @return This builder for chaining. @@ -3767,10 +3894,12 @@ public Builder setExecutionEnvironmentValue(int value) { * * *
                  -     * The sandbox environment to host this Revision.
                  +     * Optional. The sandbox environment to host this Revision.
                        * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The executionEnvironment. */ @@ -3784,10 +3913,12 @@ public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { * * *
                  -     * The sandbox environment to host this Revision.
                  +     * Optional. The sandbox environment to host this Revision.
                        * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The executionEnvironment to set. * @return This builder for chaining. @@ -3805,10 +3936,12 @@ public Builder setExecutionEnvironment(com.google.cloud.run.v2.ExecutionEnvironm * * *
                  -     * The sandbox environment to host this Revision.
                  +     * Optional. The sandbox environment to host this Revision.
                        * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -3940,10 +4073,12 @@ public Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value) { * * *
                  -     * Sets the maximum number of requests that each serving instance can receive.
                  +     * Optional. Sets the maximum number of requests that each serving instance
                  +     * can receive.
                        * 
                  * - * int32 max_instance_request_concurrency = 15; + * int32 max_instance_request_concurrency = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maxInstanceRequestConcurrency. */ @@ -3955,10 +4090,12 @@ public int getMaxInstanceRequestConcurrency() { * * *
                  -     * Sets the maximum number of requests that each serving instance can receive.
                  +     * Optional. Sets the maximum number of requests that each serving instance
                  +     * can receive.
                        * 
                  * - * int32 max_instance_request_concurrency = 15; + * int32 max_instance_request_concurrency = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The maxInstanceRequestConcurrency to set. * @return This builder for chaining. @@ -3974,10 +4111,12 @@ public Builder setMaxInstanceRequestConcurrency(int value) { * * *
                  -     * Sets the maximum number of requests that each serving instance can receive.
                  +     * Optional. Sets the maximum number of requests that each serving instance
                  +     * can receive.
                        * 
                  * - * int32 max_instance_request_concurrency = 15; + * int32 max_instance_request_concurrency = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java index 0b16013d1273..0854263ef319 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java @@ -28,11 +28,13 @@ public interface RevisionTemplateOrBuilder * * *
                  -   * The unique name for the revision. If this field is omitted, it will be
                  -   * automatically generated based on the Service name.
                  +   * Optional. The unique name for the revision. If this field is omitted, it
                  +   * will be automatically generated based on the Service name.
                      * 
                  * - * string revision = 1 [(.google.api.resource_reference) = { ... } + * + * string revision = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The revision. */ @@ -41,11 +43,13 @@ public interface RevisionTemplateOrBuilder * * *
                  -   * The unique name for the revision. If this field is omitted, it will be
                  -   * automatically generated based on the Service name.
                  +   * Optional. The unique name for the revision. If this field is omitted, it
                  +   * will be automatically generated based on the Service name.
                      * 
                  * - * string revision = 1 [(.google.api.resource_reference) = { ... } + * + * string revision = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for revision. */ @@ -55,11 +59,10 @@ public interface RevisionTemplateOrBuilder * * *
                  -   * Unstructured key value map that can be used to organize and categorize
                  -   * objects.
                  -   * User-provided labels are shared with Google's billing system, so they can
                  -   * be used to filter, or break down billing charges by team, component,
                  -   * environment, state, etc. For more information, visit
                  +   * Optional. Unstructured key value map that can be used to organize and
                  +   * categorize objects. User-provided labels are shared with Google's billing
                  +   * system, so they can be used to filter, or break down billing charges by
                  +   * team, component, environment, state, etc. For more information, visit
                      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                      * https://cloud.google.com/run/docs/configuring/labels.
                      *
                  @@ -69,18 +72,17 @@ public interface RevisionTemplateOrBuilder
                      * corresponding field in v2 RevisionTemplate.
                      * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** * * *
                  -   * Unstructured key value map that can be used to organize and categorize
                  -   * objects.
                  -   * User-provided labels are shared with Google's billing system, so they can
                  -   * be used to filter, or break down billing charges by team, component,
                  -   * environment, state, etc. For more information, visit
                  +   * Optional. Unstructured key value map that can be used to organize and
                  +   * categorize objects. User-provided labels are shared with Google's billing
                  +   * system, so they can be used to filter, or break down billing charges by
                  +   * team, component, environment, state, etc. For more information, visit
                      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                      * https://cloud.google.com/run/docs/configuring/labels.
                      *
                  @@ -90,7 +92,7 @@ public interface RevisionTemplateOrBuilder
                      * corresponding field in v2 RevisionTemplate.
                      * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -100,11 +102,10 @@ public interface RevisionTemplateOrBuilder * * *
                  -   * Unstructured key value map that can be used to organize and categorize
                  -   * objects.
                  -   * User-provided labels are shared with Google's billing system, so they can
                  -   * be used to filter, or break down billing charges by team, component,
                  -   * environment, state, etc. For more information, visit
                  +   * Optional. Unstructured key value map that can be used to organize and
                  +   * categorize objects. User-provided labels are shared with Google's billing
                  +   * system, so they can be used to filter, or break down billing charges by
                  +   * team, component, environment, state, etc. For more information, visit
                      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                      * https://cloud.google.com/run/docs/configuring/labels.
                      *
                  @@ -114,18 +115,17 @@ public interface RevisionTemplateOrBuilder
                      * corresponding field in v2 RevisionTemplate.
                      * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); /** * * *
                  -   * Unstructured key value map that can be used to organize and categorize
                  -   * objects.
                  -   * User-provided labels are shared with Google's billing system, so they can
                  -   * be used to filter, or break down billing charges by team, component,
                  -   * environment, state, etc. For more information, visit
                  +   * Optional. Unstructured key value map that can be used to organize and
                  +   * categorize objects. User-provided labels are shared with Google's billing
                  +   * system, so they can be used to filter, or break down billing charges by
                  +   * team, component, environment, state, etc. For more information, visit
                      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                      * https://cloud.google.com/run/docs/configuring/labels.
                      *
                  @@ -135,7 +135,7 @@ public interface RevisionTemplateOrBuilder
                      * corresponding field in v2 RevisionTemplate.
                      * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -146,11 +146,10 @@ java.lang.String getLabelsOrDefault( * * *
                  -   * Unstructured key value map that can be used to organize and categorize
                  -   * objects.
                  -   * User-provided labels are shared with Google's billing system, so they can
                  -   * be used to filter, or break down billing charges by team, component,
                  -   * environment, state, etc. For more information, visit
                  +   * Optional. Unstructured key value map that can be used to organize and
                  +   * categorize objects. User-provided labels are shared with Google's billing
                  +   * system, so they can be used to filter, or break down billing charges by
                  +   * team, component, environment, state, etc. For more information, visit
                      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
                      * https://cloud.google.com/run/docs/configuring/labels.
                      *
                  @@ -160,7 +159,7 @@ java.lang.String getLabelsOrDefault(
                      * corresponding field in v2 RevisionTemplate.
                      * 
                  * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); @@ -168,9 +167,9 @@ java.lang.String getLabelsOrDefault( * * *
                  -   * Unstructured key value map that may be set by external tools to store and
                  -   * arbitrary metadata. They are not queryable and should be preserved
                  -   * when modifying objects.
                  +   * Optional. Unstructured key value map that may be set by external tools to
                  +   * store and arbitrary metadata. They are not queryable and should be
                  +   * preserved when modifying objects.
                      *
                      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -181,16 +180,17 @@ java.lang.String getLabelsOrDefault(
                      * rules.
                      * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAnnotationsCount(); /** * * *
                  -   * Unstructured key value map that may be set by external tools to store and
                  -   * arbitrary metadata. They are not queryable and should be preserved
                  -   * when modifying objects.
                  +   * Optional. Unstructured key value map that may be set by external tools to
                  +   * store and arbitrary metadata. They are not queryable and should be
                  +   * preserved when modifying objects.
                      *
                      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -201,7 +201,8 @@ java.lang.String getLabelsOrDefault(
                      * rules.
                      * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ boolean containsAnnotations(java.lang.String key); /** Use {@link #getAnnotationsMap()} instead. */ @@ -211,9 +212,9 @@ java.lang.String getLabelsOrDefault( * * *
                  -   * Unstructured key value map that may be set by external tools to store and
                  -   * arbitrary metadata. They are not queryable and should be preserved
                  -   * when modifying objects.
                  +   * Optional. Unstructured key value map that may be set by external tools to
                  +   * store and arbitrary metadata. They are not queryable and should be
                  +   * preserved when modifying objects.
                      *
                      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -224,16 +225,17 @@ java.lang.String getLabelsOrDefault(
                      * rules.
                      * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map getAnnotationsMap(); /** * * *
                  -   * Unstructured key value map that may be set by external tools to store and
                  -   * arbitrary metadata. They are not queryable and should be preserved
                  -   * when modifying objects.
                  +   * Optional. Unstructured key value map that may be set by external tools to
                  +   * store and arbitrary metadata. They are not queryable and should be
                  +   * preserved when modifying objects.
                      *
                      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -244,7 +246,8 @@ java.lang.String getLabelsOrDefault(
                      * rules.
                      * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ java.lang.String getAnnotationsOrDefault( @@ -255,9 +258,9 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Unstructured key value map that may be set by external tools to store and
                  -   * arbitrary metadata. They are not queryable and should be preserved
                  -   * when modifying objects.
                  +   * Optional. Unstructured key value map that may be set by external tools to
                  +   * store and arbitrary metadata. They are not queryable and should be
                  +   * preserved when modifying objects.
                      *
                      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
                      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
                  @@ -268,7 +271,8 @@ java.lang.String getAnnotationsOrDefault(
                      * rules.
                      * 
                  * - * map<string, string> annotations = 3; + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.lang.String getAnnotationsOrThrow(java.lang.String key); @@ -276,10 +280,12 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Scaling settings for this Revision.
                  +   * Optional. Scaling settings for this Revision.
                      * 
                  * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the scaling field is set. */ @@ -288,10 +294,12 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Scaling settings for this Revision.
                  +   * Optional. Scaling settings for this Revision.
                      * 
                  * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The scaling. */ @@ -300,10 +308,12 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Scaling settings for this Revision.
                  +   * Optional. Scaling settings for this Revision.
                      * 
                  * - * .google.cloud.run.v2.RevisionScaling scaling = 4; + * + * .google.cloud.run.v2.RevisionScaling scaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder(); @@ -311,11 +321,13 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * VPC Access configuration to use for this Revision. For more information,
                  -   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +   * Optional. VPC Access configuration to use for this Revision. For more
                  +   * information, visit
                  +   * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the vpcAccess field is set. */ @@ -324,11 +336,13 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * VPC Access configuration to use for this Revision. For more information,
                  -   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +   * Optional. VPC Access configuration to use for this Revision. For more
                  +   * information, visit
                  +   * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The vpcAccess. */ @@ -337,11 +351,13 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * VPC Access configuration to use for this Revision. For more information,
                  -   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +   * Optional. VPC Access configuration to use for this Revision. For more
                  +   * information, visit
                  +   * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * .google.cloud.run.v2.VpcAccess vpc_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder(); @@ -349,10 +365,10 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Max allowed time for an instance to respond to a request.
                  +   * Optional. Max allowed time for an instance to respond to a request.
                      * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the timeout field is set. */ @@ -361,10 +377,10 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Max allowed time for an instance to respond to a request.
                  +   * Optional. Max allowed time for an instance to respond to a request.
                      * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The timeout. */ @@ -373,10 +389,10 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Max allowed time for an instance to respond to a request.
                  +   * Optional. Max allowed time for an instance to respond to a request.
                      * 
                  * - * .google.protobuf.Duration timeout = 8; + * .google.protobuf.Duration timeout = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); @@ -384,13 +400,13 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Email address of the IAM service account associated with the revision of
                  -   * the service. The service account represents the identity of the running
                  -   * revision, and determines what permissions the revision has. If not
                  +   * Optional. Email address of the IAM service account associated with the
                  +   * revision of the service. The service account represents the identity of the
                  +   * running revision, and determines what permissions the revision has. If not
                      * provided, the revision will use the project's default service account.
                      * 
                  * - * string service_account = 9; + * string service_account = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccount. */ @@ -399,13 +415,13 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Email address of the IAM service account associated with the revision of
                  -   * the service. The service account represents the identity of the running
                  -   * revision, and determines what permissions the revision has. If not
                  +   * Optional. Email address of the IAM service account associated with the
                  +   * revision of the service. The service account represents the identity of the
                  +   * running revision, and determines what permissions the revision has. If not
                      * provided, the revision will use the project's default service account.
                      * 
                  * - * string service_account = 9; + * string service_account = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccount. */ @@ -471,50 +487,60 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getVolumesList(); /** * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.Volume getVolumes(int index); /** * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getVolumesCount(); /** * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getVolumesOrBuilderList(); /** * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 11; + * + * repeated .google.cloud.run.v2.Volume volumes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index); @@ -522,10 +548,12 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * The sandbox environment to host this Revision.
                  +   * Optional. The sandbox environment to host this Revision.
                      * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for executionEnvironment. */ @@ -534,10 +562,12 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * The sandbox environment to host this Revision.
                  +   * Optional. The sandbox environment to host this Revision.
                      * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The executionEnvironment. */ @@ -576,10 +606,12 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Sets the maximum number of requests that each serving instance can receive.
                  +   * Optional. Sets the maximum number of requests that each serving instance
                  +   * can receive.
                      * 
                  * - * int32 max_instance_request_concurrency = 15; + * int32 max_instance_request_concurrency = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maxInstanceRequestConcurrency. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java index 998f624c66f6..f9a9cb04f329 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java @@ -54,31 +54,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ield_behavior.proto\032\031google/api/resource" + ".proto\032!google/cloud/run/v2/k8s.min.prot" + "o\032)google/cloud/run/v2/vendor_settings.p" - + "roto\032\036google/protobuf/duration.proto\"\302\006\n" - + "\020RevisionTemplate\0222\n\010revision\030\001 \001(\tB \372A\035" - + "\n\033run.googleapis.com/Revision\022A\n\006labels\030" - + "\002 \003(\01321.google.cloud.run.v2.RevisionTemp" - + "late.LabelsEntry\022K\n\013annotations\030\003 \003(\01326." - + "google.cloud.run.v2.RevisionTemplate.Ann" - + "otationsEntry\0225\n\007scaling\030\004 \001(\0132$.google." - + "cloud.run.v2.RevisionScaling\0222\n\nvpc_acce" - + "ss\030\006 \001(\0132\036.google.cloud.run.v2.VpcAccess" - + "\022*\n\007timeout\030\010 \001(\0132\031.google.protobuf.Dura" - + "tion\022\027\n\017service_account\030\t \001(\t\0222\n\ncontain" - + "ers\030\n \003(\0132\036.google.cloud.run.v2.Containe" - + "r\022,\n\007volumes\030\013 \003(\0132\033.google.cloud.run.v2" - + ".Volume\022H\n\025execution_environment\030\r \001(\0162)" - + ".google.cloud.run.v2.ExecutionEnvironmen" - + "t\022>\n\016encryption_key\030\016 \001(\tB&\372A#\n!cloudkms" - + ".googleapis.com/CryptoKey\022(\n max_instanc" - + "e_request_concurrency\030\017 \001(\005\022\035\n\020session_a" - + "ffinity\030\023 \001(\010B\003\340A\001\022\"\n\025health_check_disab" - + "led\030\024 \001(\010B\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B]\n\027com" - + ".google.cloud.run.v2B\025RevisionTemplatePr" - + "otoP\001Z)cloud.google.com/go/run/apiv2/run" - + "pb;runpbb\006proto3" + + "roto\032\036google/protobuf/duration.proto\"\362\006\n" + + "\020RevisionTemplate\0225\n\010revision\030\001 \001(\tB#\340A\001" + + "\372A\035\n\033run.googleapis.com/Revision\022F\n\006labe" + + "ls\030\002 \003(\01321.google.cloud.run.v2.RevisionT" + + "emplate.LabelsEntryB\003\340A\001\022P\n\013annotations\030" + + "\003 \003(\01326.google.cloud.run.v2.RevisionTemp" + + "late.AnnotationsEntryB\003\340A\001\022:\n\007scaling\030\004 " + + "\001(\0132$.google.cloud.run.v2.RevisionScalin" + + "gB\003\340A\001\0227\n\nvpc_access\030\006 \001(\0132\036.google.clou" + + "d.run.v2.VpcAccessB\003\340A\001\022/\n\007timeout\030\010 \001(\013" + + "2\031.google.protobuf.DurationB\003\340A\001\022\034\n\017serv" + + "ice_account\030\t \001(\tB\003\340A\001\0222\n\ncontainers\030\n \003" + + "(\0132\036.google.cloud.run.v2.Container\0221\n\007vo" + + "lumes\030\013 \003(\0132\033.google.cloud.run.v2.Volume" + + "B\003\340A\001\022M\n\025execution_environment\030\r \001(\0162).g" + + "oogle.cloud.run.v2.ExecutionEnvironmentB" + + "\003\340A\001\022>\n\016encryption_key\030\016 \001(\tB&\372A#\n!cloud" + + "kms.googleapis.com/CryptoKey\022-\n max_inst" + + "ance_request_concurrency\030\017 \001(\005B\003\340A\001\022\035\n\020s" + + "ession_affinity\030\023 \001(\010B\003\340A\001\022\"\n\025health_che" + + "ck_disabled\030\024 \001(\010B\003\340A\001\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotat" + + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001B]\n\027com.google.cloud.run.v2B\025RevisionTe" + + "mplateProtoP\001Z)cloud.google.com/go/run/a" + + "piv2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java index fd7246c64528..b41fb978c8d4 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java @@ -680,7 +680,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
                  -   * Output only. The deletion time.
                  +   * Output only. The deletion time. It is only populated as a response to a
                  +   * Delete request.
                      * 
                  * * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -696,7 +697,8 @@ public boolean hasDeleteTime() { * * *
                  -   * Output only. The deletion time.
                  +   * Output only. The deletion time. It is only populated as a response to a
                  +   * Delete request.
                      * 
                  * * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -712,7 +714,8 @@ public com.google.protobuf.Timestamp getDeleteTime() { * * *
                  -   * Output only. The deletion time.
                  +   * Output only. The deletion time. It is only populated as a response to a
                  +   * Delete request.
                      * 
                  * * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -985,12 +988,14 @@ public com.google.protobuf.ByteString getClientVersionBytes() { * * *
                  -   * Provides the ingress settings for this Service. On output, returns the
                  -   * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
                  -   * revision is active.
                  +   * Optional. Provides the ingress settings for this Service. On output,
                  +   * returns the currently observed ingress settings, or
                  +   * INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
                      * 
                  * - * .google.cloud.run.v2.IngressTraffic ingress = 15; + * + * .google.cloud.run.v2.IngressTraffic ingress = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for ingress. */ @@ -1002,12 +1007,14 @@ public int getIngressValue() { * * *
                  -   * Provides the ingress settings for this Service. On output, returns the
                  -   * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
                  -   * revision is active.
                  +   * Optional. Provides the ingress settings for this Service. On output,
                  +   * returns the currently observed ingress settings, or
                  +   * INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
                      * 
                  * - * .google.cloud.run.v2.IngressTraffic ingress = 15; + * + * .google.cloud.run.v2.IngressTraffic ingress = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The ingress. */ @@ -1024,7 +1031,7 @@ public com.google.cloud.run.v2.IngressTraffic getIngress() { * * *
                  -   * The launch stage as defined by [Google Cloud Platform
                  +   * Optional. The launch stage as defined by [Google Cloud Platform
                      * Launch Stages](https://cloud.google.com/terms/launch-stages).
                      * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
                      * is assumed.
                  @@ -1036,7 +1043,8 @@ public com.google.cloud.run.v2.IngressTraffic getIngress() {
                      * features are used, this field will be BETA on output.
                      * 
                  * - * .google.api.LaunchStage launch_stage = 16; + * .google.api.LaunchStage launch_stage = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for launchStage. */ @@ -1048,7 +1056,7 @@ public int getLaunchStageValue() { * * *
                  -   * The launch stage as defined by [Google Cloud Platform
                  +   * Optional. The launch stage as defined by [Google Cloud Platform
                      * Launch Stages](https://cloud.google.com/terms/launch-stages).
                      * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
                      * is assumed.
                  @@ -1060,7 +1068,8 @@ public int getLaunchStageValue() {
                      * features are used, this field will be BETA on output.
                      * 
                  * - * .google.api.LaunchStage launch_stage = 16; + * .google.api.LaunchStage launch_stage = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The launchStage. */ @@ -1076,10 +1085,12 @@ public com.google.api.LaunchStage getLaunchStage() { * * *
                  -   * Settings for the Binary Authorization feature.
                  +   * Optional. Settings for the Binary Authorization feature.
                      * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the binaryAuthorization field is set. */ @@ -1091,10 +1102,12 @@ public boolean hasBinaryAuthorization() { * * *
                  -   * Settings for the Binary Authorization feature.
                  +   * Optional. Settings for the Binary Authorization feature.
                      * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The binaryAuthorization. */ @@ -1108,10 +1121,12 @@ public com.google.cloud.run.v2.BinaryAuthorization getBinaryAuthorization() { * * *
                  -   * Settings for the Binary Authorization feature.
                  +   * Optional. Settings for the Binary Authorization feature.
                      * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { @@ -1184,12 +1199,14 @@ public com.google.cloud.run.v2.RevisionTemplateOrBuilder getTemplateOrBuilder() * * *
                  -   * Specifies how to distribute traffic over a collection of Revisions
                  -   * belonging to the Service. If traffic is empty or not provided, defaults to
                  -   * 100% traffic to the latest `Ready` Revision.
                  +   * Optional. Specifies how to distribute traffic over a collection of
                  +   * Revisions belonging to the Service. If traffic is empty or not provided,
                  +   * defaults to 100% traffic to the latest `Ready` Revision.
                      * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getTrafficList() { @@ -1199,12 +1216,14 @@ public java.util.List getTrafficList() { * * *
                  -   * Specifies how to distribute traffic over a collection of Revisions
                  -   * belonging to the Service. If traffic is empty or not provided, defaults to
                  -   * 100% traffic to the latest `Ready` Revision.
                  +   * Optional. Specifies how to distribute traffic over a collection of
                  +   * Revisions belonging to the Service. If traffic is empty or not provided,
                  +   * defaults to 100% traffic to the latest `Ready` Revision.
                      * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -1215,12 +1234,14 @@ public java.util.List getTrafficList() { * * *
                  -   * Specifies how to distribute traffic over a collection of Revisions
                  -   * belonging to the Service. If traffic is empty or not provided, defaults to
                  -   * 100% traffic to the latest `Ready` Revision.
                  +   * Optional. Specifies how to distribute traffic over a collection of
                  +   * Revisions belonging to the Service. If traffic is empty or not provided,
                  +   * defaults to 100% traffic to the latest `Ready` Revision.
                      * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getTrafficCount() { @@ -1230,12 +1251,14 @@ public int getTrafficCount() { * * *
                  -   * Specifies how to distribute traffic over a collection of Revisions
                  -   * belonging to the Service. If traffic is empty or not provided, defaults to
                  -   * 100% traffic to the latest `Ready` Revision.
                  +   * Optional. Specifies how to distribute traffic over a collection of
                  +   * Revisions belonging to the Service. If traffic is empty or not provided,
                  +   * defaults to 100% traffic to the latest `Ready` Revision.
                      * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.TrafficTarget getTraffic(int index) { @@ -1245,12 +1268,14 @@ public com.google.cloud.run.v2.TrafficTarget getTraffic(int index) { * * *
                  -   * Specifies how to distribute traffic over a collection of Revisions
                  -   * belonging to the Service. If traffic is empty or not provided, defaults to
                  -   * 100% traffic to the latest `Ready` Revision.
                  +   * Optional. Specifies how to distribute traffic over a collection of
                  +   * Revisions belonging to the Service. If traffic is empty or not provided,
                  +   * defaults to 100% traffic to the latest `Ready` Revision.
                      * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int index) { @@ -4641,7 +4666,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -4657,7 +4683,8 @@ public boolean hasDeleteTime() { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -4679,7 +4706,8 @@ public com.google.protobuf.Timestamp getDeleteTime() { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -4703,7 +4731,8 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -4724,7 +4753,8 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -4753,7 +4783,8 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -4774,7 +4805,8 @@ public Builder clearDeleteTime() { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -4790,7 +4822,8 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -4810,7 +4843,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { * * *
                  -     * Output only. The deletion time.
                  +     * Output only. The deletion time. It is only populated as a response to a
                  +     * Delete request.
                        * 
                  * * @@ -5475,12 +5509,14 @@ public Builder setClientVersionBytes(com.google.protobuf.ByteString value) { * * *
                  -     * Provides the ingress settings for this Service. On output, returns the
                  -     * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
                  -     * revision is active.
                  +     * Optional. Provides the ingress settings for this Service. On output,
                  +     * returns the currently observed ingress settings, or
                  +     * INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
                        * 
                  * - * .google.cloud.run.v2.IngressTraffic ingress = 15; + * + * .google.cloud.run.v2.IngressTraffic ingress = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for ingress. */ @@ -5492,12 +5528,14 @@ public int getIngressValue() { * * *
                  -     * Provides the ingress settings for this Service. On output, returns the
                  -     * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
                  -     * revision is active.
                  +     * Optional. Provides the ingress settings for this Service. On output,
                  +     * returns the currently observed ingress settings, or
                  +     * INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
                        * 
                  * - * .google.cloud.run.v2.IngressTraffic ingress = 15; + * + * .google.cloud.run.v2.IngressTraffic ingress = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The enum numeric value on the wire for ingress to set. * @return This builder for chaining. @@ -5512,12 +5550,14 @@ public Builder setIngressValue(int value) { * * *
                  -     * Provides the ingress settings for this Service. On output, returns the
                  -     * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
                  -     * revision is active.
                  +     * Optional. Provides the ingress settings for this Service. On output,
                  +     * returns the currently observed ingress settings, or
                  +     * INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
                        * 
                  * - * .google.cloud.run.v2.IngressTraffic ingress = 15; + * + * .google.cloud.run.v2.IngressTraffic ingress = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The ingress. */ @@ -5531,12 +5571,14 @@ public com.google.cloud.run.v2.IngressTraffic getIngress() { * * *
                  -     * Provides the ingress settings for this Service. On output, returns the
                  -     * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
                  -     * revision is active.
                  +     * Optional. Provides the ingress settings for this Service. On output,
                  +     * returns the currently observed ingress settings, or
                  +     * INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
                        * 
                  * - * .google.cloud.run.v2.IngressTraffic ingress = 15; + * + * .google.cloud.run.v2.IngressTraffic ingress = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The ingress to set. * @return This builder for chaining. @@ -5554,12 +5596,14 @@ public Builder setIngress(com.google.cloud.run.v2.IngressTraffic value) { * * *
                  -     * Provides the ingress settings for this Service. On output, returns the
                  -     * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
                  -     * revision is active.
                  +     * Optional. Provides the ingress settings for this Service. On output,
                  +     * returns the currently observed ingress settings, or
                  +     * INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
                        * 
                  * - * .google.cloud.run.v2.IngressTraffic ingress = 15; + * + * .google.cloud.run.v2.IngressTraffic ingress = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -5575,7 +5619,7 @@ public Builder clearIngress() { * * *
                  -     * The launch stage as defined by [Google Cloud Platform
                  +     * Optional. The launch stage as defined by [Google Cloud Platform
                        * Launch Stages](https://cloud.google.com/terms/launch-stages).
                        * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
                        * is assumed.
                  @@ -5587,7 +5631,8 @@ public Builder clearIngress() {
                        * features are used, this field will be BETA on output.
                        * 
                  * - * .google.api.LaunchStage launch_stage = 16; + * .google.api.LaunchStage launch_stage = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for launchStage. */ @@ -5599,7 +5644,7 @@ public int getLaunchStageValue() { * * *
                  -     * The launch stage as defined by [Google Cloud Platform
                  +     * Optional. The launch stage as defined by [Google Cloud Platform
                        * Launch Stages](https://cloud.google.com/terms/launch-stages).
                        * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
                        * is assumed.
                  @@ -5611,7 +5656,8 @@ public int getLaunchStageValue() {
                        * features are used, this field will be BETA on output.
                        * 
                  * - * .google.api.LaunchStage launch_stage = 16; + * .google.api.LaunchStage launch_stage = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The enum numeric value on the wire for launchStage to set. * @return This builder for chaining. @@ -5626,7 +5672,7 @@ public Builder setLaunchStageValue(int value) { * * *
                  -     * The launch stage as defined by [Google Cloud Platform
                  +     * Optional. The launch stage as defined by [Google Cloud Platform
                        * Launch Stages](https://cloud.google.com/terms/launch-stages).
                        * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
                        * is assumed.
                  @@ -5638,7 +5684,8 @@ public Builder setLaunchStageValue(int value) {
                        * features are used, this field will be BETA on output.
                        * 
                  * - * .google.api.LaunchStage launch_stage = 16; + * .google.api.LaunchStage launch_stage = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The launchStage. */ @@ -5651,7 +5698,7 @@ public com.google.api.LaunchStage getLaunchStage() { * * *
                  -     * The launch stage as defined by [Google Cloud Platform
                  +     * Optional. The launch stage as defined by [Google Cloud Platform
                        * Launch Stages](https://cloud.google.com/terms/launch-stages).
                        * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
                        * is assumed.
                  @@ -5663,7 +5710,8 @@ public com.google.api.LaunchStage getLaunchStage() {
                        * features are used, this field will be BETA on output.
                        * 
                  * - * .google.api.LaunchStage launch_stage = 16; + * .google.api.LaunchStage launch_stage = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The launchStage to set. * @return This builder for chaining. @@ -5681,7 +5729,7 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) { * * *
                  -     * The launch stage as defined by [Google Cloud Platform
                  +     * Optional. The launch stage as defined by [Google Cloud Platform
                        * Launch Stages](https://cloud.google.com/terms/launch-stages).
                        * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
                        * is assumed.
                  @@ -5693,7 +5741,8 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
                        * features are used, this field will be BETA on output.
                        * 
                  * - * .google.api.LaunchStage launch_stage = 16; + * .google.api.LaunchStage launch_stage = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -5714,10 +5763,12 @@ public Builder clearLaunchStage() { * * *
                  -     * Settings for the Binary Authorization feature.
                  +     * Optional. Settings for the Binary Authorization feature.
                        * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the binaryAuthorization field is set. */ @@ -5728,10 +5779,12 @@ public boolean hasBinaryAuthorization() { * * *
                  -     * Settings for the Binary Authorization feature.
                  +     * Optional. Settings for the Binary Authorization feature.
                        * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The binaryAuthorization. */ @@ -5748,10 +5801,12 @@ public com.google.cloud.run.v2.BinaryAuthorization getBinaryAuthorization() { * * *
                  -     * Settings for the Binary Authorization feature.
                  +     * Optional. Settings for the Binary Authorization feature.
                        * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorization value) { if (binaryAuthorizationBuilder_ == null) { @@ -5770,10 +5825,12 @@ public Builder setBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizatio * * *
                  -     * Settings for the Binary Authorization feature.
                  +     * Optional. Settings for the Binary Authorization feature.
                        * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBinaryAuthorization( com.google.cloud.run.v2.BinaryAuthorization.Builder builderForValue) { @@ -5790,10 +5847,12 @@ public Builder setBinaryAuthorization( * * *
                  -     * Settings for the Binary Authorization feature.
                  +     * Optional. Settings for the Binary Authorization feature.
                        * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorization value) { if (binaryAuthorizationBuilder_ == null) { @@ -5818,10 +5877,12 @@ public Builder mergeBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizat * * *
                  -     * Settings for the Binary Authorization feature.
                  +     * Optional. Settings for the Binary Authorization feature.
                        * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBinaryAuthorization() { bitField0_ = (bitField0_ & ~0x00010000); @@ -5837,10 +5898,12 @@ public Builder clearBinaryAuthorization() { * * *
                  -     * Settings for the Binary Authorization feature.
                  +     * Optional. Settings for the Binary Authorization feature.
                        * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { bitField0_ |= 0x00010000; @@ -5851,10 +5914,12 @@ public com.google.cloud.run.v2.BinaryAuthorization.Builder getBinaryAuthorizatio * * *
                  -     * Settings for the Binary Authorization feature.
                  +     * Optional. Settings for the Binary Authorization feature.
                        * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { if (binaryAuthorizationBuilder_ != null) { @@ -5869,10 +5934,12 @@ public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizati * * *
                  -     * Settings for the Binary Authorization feature.
                  +     * Optional. Settings for the Binary Authorization feature.
                        * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.run.v2.BinaryAuthorization, @@ -6114,12 +6181,14 @@ private void ensureTrafficIsMutable() { * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getTrafficList() { if (trafficBuilder_ == null) { @@ -6132,12 +6201,14 @@ public java.util.List getTrafficList() { * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getTrafficCount() { if (trafficBuilder_ == null) { @@ -6150,12 +6221,14 @@ public int getTrafficCount() { * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.TrafficTarget getTraffic(int index) { if (trafficBuilder_ == null) { @@ -6168,12 +6241,14 @@ public com.google.cloud.run.v2.TrafficTarget getTraffic(int index) { * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTraffic(int index, com.google.cloud.run.v2.TrafficTarget value) { if (trafficBuilder_ == null) { @@ -6192,12 +6267,14 @@ public Builder setTraffic(int index, com.google.cloud.run.v2.TrafficTarget value * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTraffic( int index, com.google.cloud.run.v2.TrafficTarget.Builder builderForValue) { @@ -6214,12 +6291,14 @@ public Builder setTraffic( * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTraffic(com.google.cloud.run.v2.TrafficTarget value) { if (trafficBuilder_ == null) { @@ -6238,12 +6317,14 @@ public Builder addTraffic(com.google.cloud.run.v2.TrafficTarget value) { * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTraffic(int index, com.google.cloud.run.v2.TrafficTarget value) { if (trafficBuilder_ == null) { @@ -6262,12 +6343,14 @@ public Builder addTraffic(int index, com.google.cloud.run.v2.TrafficTarget value * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTraffic(com.google.cloud.run.v2.TrafficTarget.Builder builderForValue) { if (trafficBuilder_ == null) { @@ -6283,12 +6366,14 @@ public Builder addTraffic(com.google.cloud.run.v2.TrafficTarget.Builder builderF * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTraffic( int index, com.google.cloud.run.v2.TrafficTarget.Builder builderForValue) { @@ -6305,12 +6390,14 @@ public Builder addTraffic( * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllTraffic( java.lang.Iterable values) { @@ -6327,12 +6414,14 @@ public Builder addAllTraffic( * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTraffic() { if (trafficBuilder_ == null) { @@ -6348,12 +6437,14 @@ public Builder clearTraffic() { * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeTraffic(int index) { if (trafficBuilder_ == null) { @@ -6369,12 +6460,14 @@ public Builder removeTraffic(int index) { * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.TrafficTarget.Builder getTrafficBuilder(int index) { return getTrafficFieldBuilder().getBuilder(index); @@ -6383,12 +6476,14 @@ public com.google.cloud.run.v2.TrafficTarget.Builder getTrafficBuilder(int index * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int index) { if (trafficBuilder_ == null) { @@ -6401,12 +6496,14 @@ public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int in * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getTrafficOrBuilderList() { @@ -6420,12 +6517,14 @@ public com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int in * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder() { return getTrafficFieldBuilder() @@ -6435,12 +6534,14 @@ public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder() { * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder(int index) { return getTrafficFieldBuilder() @@ -6450,12 +6551,14 @@ public com.google.cloud.run.v2.TrafficTarget.Builder addTrafficBuilder(int index * * *
                  -     * Specifies how to distribute traffic over a collection of Revisions
                  -     * belonging to the Service. If traffic is empty or not provided, defaults to
                  -     * 100% traffic to the latest `Ready` Revision.
                  +     * Optional. Specifies how to distribute traffic over a collection of
                  +     * Revisions belonging to the Service. If traffic is empty or not provided,
                  +     * defaults to 100% traffic to the latest `Ready` Revision.
                        * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getTrafficBuilderList() { return getTrafficFieldBuilder().getBuilderList(); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java index ac6c554c6fa4..8f2ea855117e 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java @@ -432,7 +432,8 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Output only. The deletion time.
                  +   * Output only. The deletion time. It is only populated as a response to a
                  +   * Delete request.
                      * 
                  * * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -445,7 +446,8 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Output only. The deletion time.
                  +   * Output only. The deletion time. It is only populated as a response to a
                  +   * Delete request.
                      * 
                  * * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -458,7 +460,8 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Output only. The deletion time.
                  +   * Output only. The deletion time. It is only populated as a response to a
                  +   * Delete request.
                      * 
                  * * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -611,12 +614,14 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Provides the ingress settings for this Service. On output, returns the
                  -   * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
                  -   * revision is active.
                  +   * Optional. Provides the ingress settings for this Service. On output,
                  +   * returns the currently observed ingress settings, or
                  +   * INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
                      * 
                  * - * .google.cloud.run.v2.IngressTraffic ingress = 15; + * + * .google.cloud.run.v2.IngressTraffic ingress = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for ingress. */ @@ -625,12 +630,14 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Provides the ingress settings for this Service. On output, returns the
                  -   * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
                  -   * revision is active.
                  +   * Optional. Provides the ingress settings for this Service. On output,
                  +   * returns the currently observed ingress settings, or
                  +   * INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
                      * 
                  * - * .google.cloud.run.v2.IngressTraffic ingress = 15; + * + * .google.cloud.run.v2.IngressTraffic ingress = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The ingress. */ @@ -640,7 +647,7 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * The launch stage as defined by [Google Cloud Platform
                  +   * Optional. The launch stage as defined by [Google Cloud Platform
                      * Launch Stages](https://cloud.google.com/terms/launch-stages).
                      * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
                      * is assumed.
                  @@ -652,7 +659,8 @@ java.lang.String getAnnotationsOrDefault(
                      * features are used, this field will be BETA on output.
                      * 
                  * - * .google.api.LaunchStage launch_stage = 16; + * .google.api.LaunchStage launch_stage = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for launchStage. */ @@ -661,7 +669,7 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * The launch stage as defined by [Google Cloud Platform
                  +   * Optional. The launch stage as defined by [Google Cloud Platform
                      * Launch Stages](https://cloud.google.com/terms/launch-stages).
                      * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
                      * is assumed.
                  @@ -673,7 +681,8 @@ java.lang.String getAnnotationsOrDefault(
                      * features are used, this field will be BETA on output.
                      * 
                  * - * .google.api.LaunchStage launch_stage = 16; + * .google.api.LaunchStage launch_stage = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The launchStage. */ @@ -683,10 +692,12 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Settings for the Binary Authorization feature.
                  +   * Optional. Settings for the Binary Authorization feature.
                      * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the binaryAuthorization field is set. */ @@ -695,10 +706,12 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Settings for the Binary Authorization feature.
                  +   * Optional. Settings for the Binary Authorization feature.
                      * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The binaryAuthorization. */ @@ -707,10 +720,12 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Settings for the Binary Authorization feature.
                  +   * Optional. Settings for the Binary Authorization feature.
                      * 
                  * - * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder(); @@ -759,48 +774,56 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Specifies how to distribute traffic over a collection of Revisions
                  -   * belonging to the Service. If traffic is empty or not provided, defaults to
                  -   * 100% traffic to the latest `Ready` Revision.
                  +   * Optional. Specifies how to distribute traffic over a collection of
                  +   * Revisions belonging to the Service. If traffic is empty or not provided,
                  +   * defaults to 100% traffic to the latest `Ready` Revision.
                      * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getTrafficList(); /** * * *
                  -   * Specifies how to distribute traffic over a collection of Revisions
                  -   * belonging to the Service. If traffic is empty or not provided, defaults to
                  -   * 100% traffic to the latest `Ready` Revision.
                  +   * Optional. Specifies how to distribute traffic over a collection of
                  +   * Revisions belonging to the Service. If traffic is empty or not provided,
                  +   * defaults to 100% traffic to the latest `Ready` Revision.
                      * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.TrafficTarget getTraffic(int index); /** * * *
                  -   * Specifies how to distribute traffic over a collection of Revisions
                  -   * belonging to the Service. If traffic is empty or not provided, defaults to
                  -   * 100% traffic to the latest `Ready` Revision.
                  +   * Optional. Specifies how to distribute traffic over a collection of
                  +   * Revisions belonging to the Service. If traffic is empty or not provided,
                  +   * defaults to 100% traffic to the latest `Ready` Revision.
                      * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getTrafficCount(); /** * * *
                  -   * Specifies how to distribute traffic over a collection of Revisions
                  -   * belonging to the Service. If traffic is empty or not provided, defaults to
                  -   * 100% traffic to the latest `Ready` Revision.
                  +   * Optional. Specifies how to distribute traffic over a collection of
                  +   * Revisions belonging to the Service. If traffic is empty or not provided,
                  +   * defaults to 100% traffic to the latest `Ready` Revision.
                      * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getTrafficOrBuilderList(); @@ -808,12 +831,14 @@ java.lang.String getAnnotationsOrDefault( * * *
                  -   * Specifies how to distribute traffic over a collection of Revisions
                  -   * belonging to the Service. If traffic is empty or not provided, defaults to
                  -   * 100% traffic to the latest `Ready` Revision.
                  +   * Optional. Specifies how to distribute traffic over a collection of
                  +   * Revisions belonging to the Service. If traffic is empty or not provided,
                  +   * defaults to 100% traffic to the latest `Ready` Revision.
                      * 
                  * - * repeated .google.cloud.run.v2.TrafficTarget traffic = 19; + * + * repeated .google.cloud.run.v2.TrafficTarget traffic = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int index); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java index d615898f8675..292b75853304 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java @@ -85,111 +85,114 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/cloud/run/v2/vendor_settings.proto\032\036goo" + "gle/iam/v1/iam_policy.proto\032\032google/iam/" + "v1/policy.proto\032#google/longrunning/oper" - + "ations.proto\032\037google/protobuf/timestamp." - + "proto\"\256\001\n\024CreateServiceRequest\0222\n\006parent" - + "\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.com/Servi" - + "ce\0222\n\007service\030\002 \001(\0132\034.google.cloud.run.v" - + "2.ServiceB\003\340A\002\022\027\n\nservice_id\030\003 \001(\tB\003\340A\002\022" - + "\025\n\rvalidate_only\030\004 \001(\010\"x\n\024UpdateServiceR" - + "equest\0222\n\007service\030\001 \001(\0132\034.google.cloud.r" - + "un.v2.ServiceB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(" - + "\010\022\025\n\rallow_missing\030\004 \001(\010\"\206\001\n\023ListService" - + "sRequest\0222\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.go" - + "ogleapis.com/Service\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" - + "\010\"_\n\024ListServicesResponse\022.\n\010services\030\001 " - + "\003(\0132\034.google.cloud.run.v2.Service\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"E\n\021GetServiceRequest\022" - + "0\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.co" - + "m/Service\"m\n\024DeleteServiceRequest\0220\n\004nam" - + "e\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.com/Serv" - + "ice\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t" - + "\"\266\014\n\007Service\022\014\n\004name\030\001 \001(\t\022\023\n\013descriptio" - + "n\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\027\n\ngeneration\030" - + "\004 \001(\003B\003\340A\003\022=\n\006labels\030\005 \003(\0132(.google.clou" - + "d.run.v2.Service.LabelsEntryB\003\340A\001\022G\n\013ann" - + "otations\030\006 \003(\0132-.google.cloud.run.v2.Ser" - + "vice.AnnotationsEntryB\003\340A\001\0224\n\013create_tim" - + "e\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0224\n\013update_time\030\010 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0224\n\013delete_time\030\t \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013expire_t" - + "ime\030\n \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022\024\n\007creator\030\013 \001(\tB\003\340A\003\022\032\n\rlast_modifie" - + "r\030\014 \001(\tB\003\340A\003\022\016\n\006client\030\r \001(\t\022\026\n\016client_v" - + "ersion\030\016 \001(\t\0224\n\007ingress\030\017 \001(\0162#.google.c" - + "loud.run.v2.IngressTraffic\022-\n\014launch_sta" - + "ge\030\020 \001(\0162\027.google.api.LaunchStage\022F\n\024bin" - + "ary_authorization\030\021 \001(\0132(.google.cloud.r" - + "un.v2.BinaryAuthorization\022<\n\010template\030\022 " - + "\001(\0132%.google.cloud.run.v2.RevisionTempla" - + "teB\003\340A\002\0223\n\007traffic\030\023 \003(\0132\".google.cloud." - + "run.v2.TrafficTarget\0229\n\007scaling\030\024 \001(\0132#." - + "google.cloud.run.v2.ServiceScalingB\003\340A\001\022" - + "!\n\024default_uri_disabled\030\026 \001(\010B\003\340A\001\022 \n\023ob" - + "served_generation\030\036 \001(\003B\003\340A\003\022?\n\022terminal" - + "_condition\030\037 \001(\0132\036.google.cloud.run.v2.C" - + "onditionB\003\340A\003\0227\n\nconditions\030 \003(\0132\036.goog" - + "le.cloud.run.v2.ConditionB\003\340A\003\022B\n\025latest" - + "_ready_revision\030! \001(\tB#\340A\003\372A\035\n\033run.googl" - + "eapis.com/Revision\022D\n\027latest_created_rev" - + "ision\030\" \001(\tB#\340A\003\372A\035\n\033run.googleapis.com/" - + "Revision\022G\n\020traffic_statuses\030# \003(\0132(.goo" - + "gle.cloud.run.v2.TrafficTargetStatusB\003\340A" - + "\003\022\020\n\003uri\030$ \001(\tB\003\340A\003\022\030\n\020custom_audiences\030" - + "% \003(\t\022\032\n\rsatisfies_pzs\030& \001(\010B\003\340A\003\022\030\n\013rec" - + "onciling\030b \001(\010B\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003\032-" - + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001:^\352A[\n\032run.googleapis.c" - + "om/Service\022:projects/{project}/locations" - + "/{location}/services/{service}R\001\0012\267\r\n\010Se" - + "rvices\022\375\001\n\rCreateService\022).google.cloud." - + "run.v2.CreateServiceRequest\032\035.google.lon" - + "grunning.Operation\"\241\001\312A\022\n\007Service\022\007Servi" - + "ce\332A\031parent,service,service_id\202\323\344\223\0027\",/v" - + "2/{parent=projects/*/locations/*}/servic" - + "es:\007service\212\323\344\223\002-\022+\n\006parent\022!projects/*/" - + "locations/{location=*}\022\303\001\n\nGetService\022&." - + "google.cloud.run.v2.GetServiceRequest\032\034." - + "google.cloud.run.v2.Service\"o\332A\004name\202\323\344\223" - + "\002.\022,/v2/{name=projects/*/locations/*/ser" - + "vices/*}\212\323\344\223\002.\022,\n\004name\022$projects/*/locat" - + "ions/{location=*}/**\022\325\001\n\014ListServices\022(." - + "google.cloud.run.v2.ListServicesRequest\032" - + ").google.cloud.run.v2.ListServicesRespon" - + "se\"p\332A\006parent\202\323\344\223\002.\022,/v2/{parent=project" - + "s/*/locations/*}/services\212\323\344\223\002-\022+\n\006paren" - + "t\022!projects/*/locations/{location=*}\022\374\001\n" - + "\rUpdateService\022).google.cloud.run.v2.Upd" - + "ateServiceRequest\032\035.google.longrunning.O" - + "peration\"\240\001\312A\022\n\007Service\022\007Service\332A\007servi" - + "ce\202\323\344\223\002?24/v2/{service.name=projects/*/l" - + "ocations/*/services/*}:\007service\212\323\344\223\0026\0224\n" - + "\014service.name\022$projects/*/locations/{loc" - + "ation=*}/**\022\340\001\n\rDeleteService\022).google.c" - + "loud.run.v2.DeleteServiceRequest\032\035.googl" - + "e.longrunning.Operation\"\204\001\312A\022\n\007Service\022\007" - + "Service\332A\004name\202\323\344\223\002.*,/v2/{name=projects" - + "/*/locations/*/services/*}\212\323\344\223\002.\022,\n\004name" - + "\022$projects/*/locations/{location=*}/**\022\220" - + "\001\n\014GetIamPolicy\022\".google.iam.v1.GetIamPo" - + "licyRequest\032\025.google.iam.v1.Policy\"E\202\323\344\223" - + "\002?\022=/v2/{resource=projects/*/locations/*" - + "/services/*}:getIamPolicy\022\223\001\n\014SetIamPoli" - + "cy\022\".google.iam.v1.SetIamPolicyRequest\032\025" - + ".google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{reso" - + "urce=projects/*/locations/*/services/*}:" - + "setIamPolicy:\001*\022\271\001\n\022TestIamPermissions\022(" - + ".google.iam.v1.TestIamPermissionsRequest" - + "\032).google.iam.v1.TestIamPermissionsRespo" - + "nse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*/lo" - + "cations/*/services/*}:testIamPermissions" - + ":\001*\032F\312A\022run.googleapis.com\322A.https://www" - + ".googleapis.com/auth/cloud-platformBT\n\027c" - + "om.google.cloud.run.v2B\014ServiceProtoP\001Z)" - + "cloud.google.com/go/run/apiv2/runpb;runp" - + "bb\006proto3" + + "ations.proto\032 google/protobuf/field_mask" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "\256\001\n\024CreateServiceRequest\0222\n\006parent\030\001 \001(\t" + + "B\"\340A\002\372A\034\022\032run.googleapis.com/Service\0222\n\007" + + "service\030\002 \001(\0132\034.google.cloud.run.v2.Serv" + + "iceB\003\340A\002\022\027\n\nservice_id\030\003 \001(\tB\003\340A\002\022\025\n\rval" + + "idate_only\030\004 \001(\010\"\263\001\n\024UpdateServiceReques" + + "t\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + + ".FieldMaskB\003\340A\001\0222\n\007service\030\001 \001(\0132\034.googl" + + "e.cloud.run.v2.ServiceB\003\340A\002\022\025\n\rvalidate_" + + "only\030\003 \001(\010\022\032\n\rallow_missing\030\004 \001(\010B\003\340A\001\"\206" + + "\001\n\023ListServicesRequest\0222\n\006parent\030\001 \001(\tB\"" + + "\340A\002\372A\034\022\032run.googleapis.com/Service\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014sho" + + "w_deleted\030\004 \001(\010\"_\n\024ListServicesResponse\022" + + ".\n\010services\030\001 \003(\0132\034.google.cloud.run.v2." + + "Service\022\027\n\017next_page_token\030\002 \001(\t\"E\n\021GetS" + + "erviceRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run" + + ".googleapis.com/Service\"m\n\024DeleteService" + + "Request\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googl" + + "eapis.com/Service\022\025\n\rvalidate_only\030\002 \001(\010" + + "\022\014\n\004etag\030\003 \001(\t\"\312\014\n\007Service\022\014\n\004name\030\001 \001(\t" + + "\022\023\n\013description\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022" + + "\027\n\ngeneration\030\004 \001(\003B\003\340A\003\022=\n\006labels\030\005 \003(\013" + + "2(.google.cloud.run.v2.Service.LabelsEnt" + + "ryB\003\340A\001\022G\n\013annotations\030\006 \003(\0132-.google.cl" + + "oud.run.v2.Service.AnnotationsEntryB\003\340A\001" + + "\0224\n\013create_time\030\007 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013delete_t" + + "ime\030\t \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0224\n\013expire_time\030\n \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022\024\n\007creator\030\013 \001(\tB\003\340A\003\022\032" + + "\n\rlast_modifier\030\014 \001(\tB\003\340A\003\022\016\n\006client\030\r \001" + + "(\t\022\026\n\016client_version\030\016 \001(\t\0229\n\007ingress\030\017 " + + "\001(\0162#.google.cloud.run.v2.IngressTraffic" + + "B\003\340A\001\0222\n\014launch_stage\030\020 \001(\0162\027.google.api" + + ".LaunchStageB\003\340A\001\022K\n\024binary_authorizatio" + + "n\030\021 \001(\0132(.google.cloud.run.v2.BinaryAuth" + + "orizationB\003\340A\001\022<\n\010template\030\022 \001(\0132%.googl" + + "e.cloud.run.v2.RevisionTemplateB\003\340A\002\0228\n\007" + + "traffic\030\023 \003(\0132\".google.cloud.run.v2.Traf" + + "ficTargetB\003\340A\001\0229\n\007scaling\030\024 \001(\0132#.google" + + ".cloud.run.v2.ServiceScalingB\003\340A\001\022!\n\024def" + + "ault_uri_disabled\030\026 \001(\010B\003\340A\001\022 \n\023observed" + + "_generation\030\036 \001(\003B\003\340A\003\022?\n\022terminal_condi" + + "tion\030\037 \001(\0132\036.google.cloud.run.v2.Conditi" + + "onB\003\340A\003\0227\n\nconditions\030 \003(\0132\036.google.clo" + + "ud.run.v2.ConditionB\003\340A\003\022B\n\025latest_ready" + + "_revision\030! \001(\tB#\340A\003\372A\035\n\033run.googleapis." + + "com/Revision\022D\n\027latest_created_revision\030" + + "\" \001(\tB#\340A\003\372A\035\n\033run.googleapis.com/Revisi" + + "on\022G\n\020traffic_statuses\030# \003(\0132(.google.cl" + + "oud.run.v2.TrafficTargetStatusB\003\340A\003\022\020\n\003u" + + "ri\030$ \001(\tB\003\340A\003\022\030\n\020custom_audiences\030% \003(\t\022" + + "\032\n\rsatisfies_pzs\030& \001(\010B\003\340A\003\022\030\n\013reconcili" + + "ng\030b \001(\010B\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003\032-\n\013Labe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032" + + "2\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001:^\352A[\n\032run.googleapis.com/Ser" + + "vice\022:projects/{project}/locations/{loca" + + "tion}/services/{service}R\001\0012\315\r\n\010Services" + + "\022\375\001\n\rCreateService\022).google.cloud.run.v2" + + ".CreateServiceRequest\032\035.google.longrunni" + + "ng.Operation\"\241\001\312A\022\n\007Service\022\007Service\332A\031p" + + "arent,service,service_id\202\323\344\223\0027\",/v2/{par" + + "ent=projects/*/locations/*}/services:\007se" + + "rvice\212\323\344\223\002-\022+\n\006parent\022!projects/*/locati" + + "ons/{location=*}\022\303\001\n\nGetService\022&.google" + + ".cloud.run.v2.GetServiceRequest\032\034.google" + + ".cloud.run.v2.Service\"o\332A\004name\202\323\344\223\002.\022,/v" + + "2/{name=projects/*/locations/*/services/" + + "*}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{" + + "location=*}/**\022\325\001\n\014ListServices\022(.google" + + ".cloud.run.v2.ListServicesRequest\032).goog" + + "le.cloud.run.v2.ListServicesResponse\"p\332A" + + "\006parent\202\323\344\223\002.\022,/v2/{parent=projects/*/lo" + + "cations/*}/services\212\323\344\223\002-\022+\n\006parent\022!pro" + + "jects/*/locations/{location=*}\022\222\002\n\rUpdat" + + "eService\022).google.cloud.run.v2.UpdateSer" + + "viceRequest\032\035.google.longrunning.Operati" + + "on\"\266\001\312A\022\n\007Service\022\007Service\332A\007service\332A\023s" + + "ervice,update_mask\202\323\344\223\002?24/v2/{service.n" + + "ame=projects/*/locations/*/services/*}:\007" + + "service\212\323\344\223\0026\0224\n\014service.name\022$projects/" + + "*/locations/{location=*}/**\022\340\001\n\rDeleteSe" + + "rvice\022).google.cloud.run.v2.DeleteServic" + + "eRequest\032\035.google.longrunning.Operation\"" + + "\204\001\312A\022\n\007Service\022\007Service\332A\004name\202\323\344\223\002.*,/v" + + "2/{name=projects/*/locations/*/services/" + + "*}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{" + + "location=*}/**\022\220\001\n\014GetIamPolicy\022\".google" + + ".iam.v1.GetIamPolicyRequest\032\025.google.iam" + + ".v1.Policy\"E\202\323\344\223\002?\022=/v2/{resource=projec" + + "ts/*/locations/*/services/*}:getIamPolic" + + "y\022\223\001\n\014SetIamPolicy\022\".google.iam.v1.SetIa" + + "mPolicyRequest\032\025.google.iam.v1.Policy\"H\202" + + "\323\344\223\002B\"=/v2/{resource=projects/*/location" + + "s/*/services/*}:setIamPolicy:\001*\022\271\001\n\022Test" + + "IamPermissions\022(.google.iam.v1.TestIamPe" + + "rmissionsRequest\032).google.iam.v1.TestIam" + + "PermissionsResponse\"N\202\323\344\223\002H\"C/v2/{resour" + + "ce=projects/*/locations/*/services/*}:te" + + "stIamPermissions:\001*\032F\312A\022run.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformBT\n\027com.google.cloud.run.v2B\014" + + "ServiceProtoP\001Z)cloud.google.com/go/run/" + + "apiv2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -208,6 +211,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.iam.v1.IamPolicyProto.getDescriptor(), com.google.iam.v1.PolicyProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor = @@ -224,7 +228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor, new java.lang.String[] { - "Service", "ValidateOnly", "AllowMissing", + "UpdateMask", "Service", "ValidateOnly", "AllowMissing", }); internal_static_google_cloud_run_v2_ListServicesRequest_descriptor = getDescriptor().getMessageTypes().get(2); @@ -339,6 +343,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.iam.v1.IamPolicyProto.getDescriptor(); com.google.iam.v1.PolicyProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java index 98fc5f873759..ca10ff20202f 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java @@ -68,12 +68,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                  -   * total min instances for the service. This number of instances is
                  +   * Optional. total min instances for the service. This number of instances is
                      * divided among all revisions with specified traffic based on the percent
                      * of traffic they are receiving. (BETA)
                      * 
                  * - * int32 min_instance_count = 1; + * int32 min_instance_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The minInstanceCount. */ @@ -426,12 +426,12 @@ public Builder mergeFrom( * * *
                  -     * total min instances for the service. This number of instances is
                  +     * Optional. total min instances for the service. This number of instances is
                        * divided among all revisions with specified traffic based on the percent
                        * of traffic they are receiving. (BETA)
                        * 
                  * - * int32 min_instance_count = 1; + * int32 min_instance_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The minInstanceCount. */ @@ -443,12 +443,12 @@ public int getMinInstanceCount() { * * *
                  -     * total min instances for the service. This number of instances is
                  +     * Optional. total min instances for the service. This number of instances is
                        * divided among all revisions with specified traffic based on the percent
                        * of traffic they are receiving. (BETA)
                        * 
                  * - * int32 min_instance_count = 1; + * int32 min_instance_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The minInstanceCount to set. * @return This builder for chaining. @@ -464,12 +464,12 @@ public Builder setMinInstanceCount(int value) { * * *
                  -     * total min instances for the service. This number of instances is
                  +     * Optional. total min instances for the service. This number of instances is
                        * divided among all revisions with specified traffic based on the percent
                        * of traffic they are receiving. (BETA)
                        * 
                  * - * int32 min_instance_count = 1; + * int32 min_instance_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java index d664030a8f81..5e24353df677 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java @@ -28,12 +28,12 @@ public interface ServiceScalingOrBuilder * * *
                  -   * total min instances for the service. This number of instances is
                  +   * Optional. total min instances for the service. This number of instances is
                      * divided among all revisions with specified traffic based on the percent
                      * of traffic they are receiving. (BETA)
                      * 
                  * - * int32 min_instance_count = 1; + * int32 min_instance_count = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The minInstanceCount. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java index 23e7ce111659..7cc33930f284 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java @@ -67,12 +67,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                  -   * Port number to access on the container. Must be in the range 1 to 65535.
                  -   * If not specified, defaults to the exposed port of the container, which is
                  -   * the value of container.ports[0].containerPort.
                  +   * Optional. Port number to access on the container. Must be in the range 1 to
                  +   * 65535. If not specified, defaults to the exposed port of the container,
                  +   * which is the value of container.ports[0].containerPort.
                      * 
                  * - * int32 port = 1; + * int32 port = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The port. */ @@ -424,12 +424,12 @@ public Builder mergeFrom( * * *
                  -     * Port number to access on the container. Must be in the range 1 to 65535.
                  -     * If not specified, defaults to the exposed port of the container, which is
                  -     * the value of container.ports[0].containerPort.
                  +     * Optional. Port number to access on the container. Must be in the range 1 to
                  +     * 65535. If not specified, defaults to the exposed port of the container,
                  +     * which is the value of container.ports[0].containerPort.
                        * 
                  * - * int32 port = 1; + * int32 port = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The port. */ @@ -441,12 +441,12 @@ public int getPort() { * * *
                  -     * Port number to access on the container. Must be in the range 1 to 65535.
                  -     * If not specified, defaults to the exposed port of the container, which is
                  -     * the value of container.ports[0].containerPort.
                  +     * Optional. Port number to access on the container. Must be in the range 1 to
                  +     * 65535. If not specified, defaults to the exposed port of the container,
                  +     * which is the value of container.ports[0].containerPort.
                        * 
                  * - * int32 port = 1; + * int32 port = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The port to set. * @return This builder for chaining. @@ -462,12 +462,12 @@ public Builder setPort(int value) { * * *
                  -     * Port number to access on the container. Must be in the range 1 to 65535.
                  -     * If not specified, defaults to the exposed port of the container, which is
                  -     * the value of container.ports[0].containerPort.
                  +     * Optional. Port number to access on the container. Must be in the range 1 to
                  +     * 65535. If not specified, defaults to the exposed port of the container,
                  +     * which is the value of container.ports[0].containerPort.
                        * 
                  * - * int32 port = 1; + * int32 port = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java index f2a08c149a7a..d6a3f7b0d0a3 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java @@ -28,12 +28,12 @@ public interface TCPSocketActionOrBuilder * * *
                  -   * Port number to access on the container. Must be in the range 1 to 65535.
                  -   * If not specified, defaults to the exposed port of the container, which is
                  -   * the value of container.ports[0].containerPort.
                  +   * Optional. Port number to access on the container. Must be in the range 1 to
                  +   * 65535. If not specified, defaults to the exposed port of the container,
                  +   * which is the value of container.ports[0].containerPort.
                      * 
                  * - * int32 port = 1; + * int32 port = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The port. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java index ede1e46c1c5c..64c4222cc8a7 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java @@ -199,10 +199,12 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int ind * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getVolumesList() { @@ -212,10 +214,12 @@ public java.util.List getVolumesList() { * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -226,10 +230,12 @@ public java.util.List getVolumesList() { * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getVolumesCount() { @@ -239,10 +245,12 @@ public int getVolumesCount() { * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.Volume getVolumes(int index) { @@ -252,10 +260,12 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { @@ -305,13 +315,13 @@ public int getMaxRetries() { * * *
                  -   * Max allowed time duration the Task may be active before the system will
                  -   * actively try to mark it failed and kill associated containers. This applies
                  -   * per attempt of a task, meaning each retry can run for the full timeout.
                  -   * Defaults to 600 seconds.
                  +   * Optional. Max allowed time duration the Task may be active before the
                  +   * system will actively try to mark it failed and kill associated containers.
                  +   * This applies per attempt of a task, meaning each retry can run for the full
                  +   * timeout. Defaults to 600 seconds.
                      * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the timeout field is set. */ @@ -323,13 +333,13 @@ public boolean hasTimeout() { * * *
                  -   * Max allowed time duration the Task may be active before the system will
                  -   * actively try to mark it failed and kill associated containers. This applies
                  -   * per attempt of a task, meaning each retry can run for the full timeout.
                  -   * Defaults to 600 seconds.
                  +   * Optional. Max allowed time duration the Task may be active before the
                  +   * system will actively try to mark it failed and kill associated containers.
                  +   * This applies per attempt of a task, meaning each retry can run for the full
                  +   * timeout. Defaults to 600 seconds.
                      * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The timeout. */ @@ -341,13 +351,13 @@ public com.google.protobuf.Duration getTimeout() { * * *
                  -   * Max allowed time duration the Task may be active before the system will
                  -   * actively try to mark it failed and kill associated containers. This applies
                  -   * per attempt of a task, meaning each retry can run for the full timeout.
                  -   * Defaults to 600 seconds.
                  +   * Optional. Max allowed time duration the Task may be active before the
                  +   * system will actively try to mark it failed and kill associated containers.
                  +   * This applies per attempt of a task, meaning each retry can run for the full
                  +   * timeout. Defaults to 600 seconds.
                      * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { @@ -362,13 +372,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * * *
                  -   * Email address of the IAM service account associated with the Task of a
                  -   * Job. The service account represents the identity of the
                  -   * running task, and determines what permissions the task has. If
                  -   * not provided, the task will use the project's default service account.
                  +   * Optional. Email address of the IAM service account associated with the Task
                  +   * of a Job. The service account represents the identity of the running task,
                  +   * and determines what permissions the task has. If not provided, the task
                  +   * will use the project's default service account.
                      * 
                  * - * string service_account = 5; + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccount. */ @@ -388,13 +398,13 @@ public java.lang.String getServiceAccount() { * * *
                  -   * Email address of the IAM service account associated with the Task of a
                  -   * Job. The service account represents the identity of the
                  -   * running task, and determines what permissions the task has. If
                  -   * not provided, the task will use the project's default service account.
                  +   * Optional. Email address of the IAM service account associated with the Task
                  +   * of a Job. The service account represents the identity of the running task,
                  +   * and determines what permissions the task has. If not provided, the task
                  +   * will use the project's default service account.
                      * 
                  * - * string service_account = 5; + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccount. */ @@ -417,10 +427,12 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
                  -   * The execution environment being used to host this Task.
                  +   * Optional. The execution environment being used to host this Task.
                      * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for executionEnvironment. */ @@ -432,10 +444,12 @@ public int getExecutionEnvironmentValue() { * * *
                  -   * The execution environment being used to host this Task.
                  +   * Optional. The execution environment being used to host this Task.
                      * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The executionEnvironment. */ @@ -507,11 +521,13 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() { * * *
                  -   * VPC Access configuration to use for this Task. For more information,
                  -   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +   * Optional. VPC Access configuration to use for this Task. For more
                  +   * information, visit
                  +   * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the vpcAccess field is set. */ @@ -523,11 +539,13 @@ public boolean hasVpcAccess() { * * *
                  -   * VPC Access configuration to use for this Task. For more information,
                  -   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +   * Optional. VPC Access configuration to use for this Task. For more
                  +   * information, visit
                  +   * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The vpcAccess. */ @@ -539,11 +557,13 @@ public com.google.cloud.run.v2.VpcAccess getVpcAccess() { * * *
                  -   * VPC Access configuration to use for this Task. For more information,
                  -   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +   * Optional. VPC Access configuration to use for this Task. For more
                  +   * information, visit
                  +   * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { @@ -1603,10 +1623,12 @@ private void ensureVolumesIsMutable() { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getVolumesList() { if (volumesBuilder_ == null) { @@ -1619,10 +1641,12 @@ public java.util.List getVolumesList() { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getVolumesCount() { if (volumesBuilder_ == null) { @@ -1635,10 +1659,12 @@ public int getVolumesCount() { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.Volume getVolumes(int index) { if (volumesBuilder_ == null) { @@ -1651,10 +1677,12 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVolumes(int index, com.google.cloud.run.v2.Volume value) { if (volumesBuilder_ == null) { @@ -1673,10 +1701,12 @@ public Builder setVolumes(int index, com.google.cloud.run.v2.Volume value) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { @@ -1692,10 +1722,12 @@ public Builder setVolumes(int index, com.google.cloud.run.v2.Volume.Builder buil * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addVolumes(com.google.cloud.run.v2.Volume value) { if (volumesBuilder_ == null) { @@ -1714,10 +1746,12 @@ public Builder addVolumes(com.google.cloud.run.v2.Volume value) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addVolumes(int index, com.google.cloud.run.v2.Volume value) { if (volumesBuilder_ == null) { @@ -1736,10 +1770,12 @@ public Builder addVolumes(int index, com.google.cloud.run.v2.Volume value) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addVolumes(com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { @@ -1755,10 +1791,12 @@ public Builder addVolumes(com.google.cloud.run.v2.Volume.Builder builderForValue * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { @@ -1774,10 +1812,12 @@ public Builder addVolumes(int index, com.google.cloud.run.v2.Volume.Builder buil * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllVolumes( java.lang.Iterable values) { @@ -1794,10 +1834,12 @@ public Builder addAllVolumes( * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearVolumes() { if (volumesBuilder_ == null) { @@ -1813,10 +1855,12 @@ public Builder clearVolumes() { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeVolumes(int index) { if (volumesBuilder_ == null) { @@ -1832,10 +1876,12 @@ public Builder removeVolumes(int index) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.Volume.Builder getVolumesBuilder(int index) { return getVolumesFieldBuilder().getBuilder(index); @@ -1844,10 +1890,12 @@ public com.google.cloud.run.v2.Volume.Builder getVolumesBuilder(int index) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { if (volumesBuilder_ == null) { @@ -1860,10 +1908,12 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getVolumesOrBuilderList() { @@ -1877,10 +1927,12 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() { return getVolumesFieldBuilder() @@ -1890,10 +1942,12 @@ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder(int index) { return getVolumesFieldBuilder() @@ -1903,10 +1957,12 @@ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder(int index) { * * *
                  -     * A list of Volumes to make available to containers.
                  +     * Optional. A list of Volumes to make available to containers.
                        * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); @@ -2013,13 +2069,13 @@ public Builder clearMaxRetries() { * * *
                  -     * Max allowed time duration the Task may be active before the system will
                  -     * actively try to mark it failed and kill associated containers. This applies
                  -     * per attempt of a task, meaning each retry can run for the full timeout.
                  -     * Defaults to 600 seconds.
                  +     * Optional. Max allowed time duration the Task may be active before the
                  +     * system will actively try to mark it failed and kill associated containers.
                  +     * This applies per attempt of a task, meaning each retry can run for the full
                  +     * timeout. Defaults to 600 seconds.
                        * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the timeout field is set. */ @@ -2030,13 +2086,13 @@ public boolean hasTimeout() { * * *
                  -     * Max allowed time duration the Task may be active before the system will
                  -     * actively try to mark it failed and kill associated containers. This applies
                  -     * per attempt of a task, meaning each retry can run for the full timeout.
                  -     * Defaults to 600 seconds.
                  +     * Optional. Max allowed time duration the Task may be active before the
                  +     * system will actively try to mark it failed and kill associated containers.
                  +     * This applies per attempt of a task, meaning each retry can run for the full
                  +     * timeout. Defaults to 600 seconds.
                        * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The timeout. */ @@ -2051,13 +2107,13 @@ public com.google.protobuf.Duration getTimeout() { * * *
                  -     * Max allowed time duration the Task may be active before the system will
                  -     * actively try to mark it failed and kill associated containers. This applies
                  -     * per attempt of a task, meaning each retry can run for the full timeout.
                  -     * Defaults to 600 seconds.
                  +     * Optional. Max allowed time duration the Task may be active before the
                  +     * system will actively try to mark it failed and kill associated containers.
                  +     * This applies per attempt of a task, meaning each retry can run for the full
                  +     * timeout. Defaults to 600 seconds.
                        * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { @@ -2076,13 +2132,13 @@ public Builder setTimeout(com.google.protobuf.Duration value) { * * *
                  -     * Max allowed time duration the Task may be active before the system will
                  -     * actively try to mark it failed and kill associated containers. This applies
                  -     * per attempt of a task, meaning each retry can run for the full timeout.
                  -     * Defaults to 600 seconds.
                  +     * Optional. Max allowed time duration the Task may be active before the
                  +     * system will actively try to mark it failed and kill associated containers.
                  +     * This applies per attempt of a task, meaning each retry can run for the full
                  +     * timeout. Defaults to 600 seconds.
                        * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (timeoutBuilder_ == null) { @@ -2098,13 +2154,13 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) * * *
                  -     * Max allowed time duration the Task may be active before the system will
                  -     * actively try to mark it failed and kill associated containers. This applies
                  -     * per attempt of a task, meaning each retry can run for the full timeout.
                  -     * Defaults to 600 seconds.
                  +     * Optional. Max allowed time duration the Task may be active before the
                  +     * system will actively try to mark it failed and kill associated containers.
                  +     * This applies per attempt of a task, meaning each retry can run for the full
                  +     * timeout. Defaults to 600 seconds.
                        * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { @@ -2128,13 +2184,13 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { * * *
                  -     * Max allowed time duration the Task may be active before the system will
                  -     * actively try to mark it failed and kill associated containers. This applies
                  -     * per attempt of a task, meaning each retry can run for the full timeout.
                  -     * Defaults to 600 seconds.
                  +     * Optional. Max allowed time duration the Task may be active before the
                  +     * system will actively try to mark it failed and kill associated containers.
                  +     * This applies per attempt of a task, meaning each retry can run for the full
                  +     * timeout. Defaults to 600 seconds.
                        * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTimeout() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2150,13 +2206,13 @@ public Builder clearTimeout() { * * *
                  -     * Max allowed time duration the Task may be active before the system will
                  -     * actively try to mark it failed and kill associated containers. This applies
                  -     * per attempt of a task, meaning each retry can run for the full timeout.
                  -     * Defaults to 600 seconds.
                  +     * Optional. Max allowed time duration the Task may be active before the
                  +     * system will actively try to mark it failed and kill associated containers.
                  +     * This applies per attempt of a task, meaning each retry can run for the full
                  +     * timeout. Defaults to 600 seconds.
                        * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { bitField0_ |= 0x00000008; @@ -2167,13 +2223,13 @@ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { * * *
                  -     * Max allowed time duration the Task may be active before the system will
                  -     * actively try to mark it failed and kill associated containers. This applies
                  -     * per attempt of a task, meaning each retry can run for the full timeout.
                  -     * Defaults to 600 seconds.
                  +     * Optional. Max allowed time duration the Task may be active before the
                  +     * system will actively try to mark it failed and kill associated containers.
                  +     * This applies per attempt of a task, meaning each retry can run for the full
                  +     * timeout. Defaults to 600 seconds.
                        * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { if (timeoutBuilder_ != null) { @@ -2186,13 +2242,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * * *
                  -     * Max allowed time duration the Task may be active before the system will
                  -     * actively try to mark it failed and kill associated containers. This applies
                  -     * per attempt of a task, meaning each retry can run for the full timeout.
                  -     * Defaults to 600 seconds.
                  +     * Optional. Max allowed time duration the Task may be active before the
                  +     * system will actively try to mark it failed and kill associated containers.
                  +     * This applies per attempt of a task, meaning each retry can run for the full
                  +     * timeout. Defaults to 600 seconds.
                        * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -2216,13 +2272,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * * *
                  -     * Email address of the IAM service account associated with the Task of a
                  -     * Job. The service account represents the identity of the
                  -     * running task, and determines what permissions the task has. If
                  -     * not provided, the task will use the project's default service account.
                  +     * Optional. Email address of the IAM service account associated with the Task
                  +     * of a Job. The service account represents the identity of the running task,
                  +     * and determines what permissions the task has. If not provided, the task
                  +     * will use the project's default service account.
                        * 
                  * - * string service_account = 5; + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccount. */ @@ -2241,13 +2297,13 @@ public java.lang.String getServiceAccount() { * * *
                  -     * Email address of the IAM service account associated with the Task of a
                  -     * Job. The service account represents the identity of the
                  -     * running task, and determines what permissions the task has. If
                  -     * not provided, the task will use the project's default service account.
                  +     * Optional. Email address of the IAM service account associated with the Task
                  +     * of a Job. The service account represents the identity of the running task,
                  +     * and determines what permissions the task has. If not provided, the task
                  +     * will use the project's default service account.
                        * 
                  * - * string service_account = 5; + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccount. */ @@ -2266,13 +2322,13 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
                  -     * Email address of the IAM service account associated with the Task of a
                  -     * Job. The service account represents the identity of the
                  -     * running task, and determines what permissions the task has. If
                  -     * not provided, the task will use the project's default service account.
                  +     * Optional. Email address of the IAM service account associated with the Task
                  +     * of a Job. The service account represents the identity of the running task,
                  +     * and determines what permissions the task has. If not provided, the task
                  +     * will use the project's default service account.
                        * 
                  * - * string service_account = 5; + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The serviceAccount to set. * @return This builder for chaining. @@ -2290,13 +2346,13 @@ public Builder setServiceAccount(java.lang.String value) { * * *
                  -     * Email address of the IAM service account associated with the Task of a
                  -     * Job. The service account represents the identity of the
                  -     * running task, and determines what permissions the task has. If
                  -     * not provided, the task will use the project's default service account.
                  +     * Optional. Email address of the IAM service account associated with the Task
                  +     * of a Job. The service account represents the identity of the running task,
                  +     * and determines what permissions the task has. If not provided, the task
                  +     * will use the project's default service account.
                        * 
                  * - * string service_account = 5; + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2310,13 +2366,13 @@ public Builder clearServiceAccount() { * * *
                  -     * Email address of the IAM service account associated with the Task of a
                  -     * Job. The service account represents the identity of the
                  -     * running task, and determines what permissions the task has. If
                  -     * not provided, the task will use the project's default service account.
                  +     * Optional. Email address of the IAM service account associated with the Task
                  +     * of a Job. The service account represents the identity of the running task,
                  +     * and determines what permissions the task has. If not provided, the task
                  +     * will use the project's default service account.
                        * 
                  * - * string service_account = 5; + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. @@ -2337,10 +2393,12 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { * * *
                  -     * The execution environment being used to host this Task.
                  +     * Optional. The execution environment being used to host this Task.
                        * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for executionEnvironment. */ @@ -2352,10 +2410,12 @@ public int getExecutionEnvironmentValue() { * * *
                  -     * The execution environment being used to host this Task.
                  +     * Optional. The execution environment being used to host this Task.
                        * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The enum numeric value on the wire for executionEnvironment to set. * @return This builder for chaining. @@ -2370,10 +2430,12 @@ public Builder setExecutionEnvironmentValue(int value) { * * *
                  -     * The execution environment being used to host this Task.
                  +     * Optional. The execution environment being used to host this Task.
                        * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The executionEnvironment. */ @@ -2387,10 +2449,12 @@ public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { * * *
                  -     * The execution environment being used to host this Task.
                  +     * Optional. The execution environment being used to host this Task.
                        * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The executionEnvironment to set. * @return This builder for chaining. @@ -2408,10 +2472,12 @@ public Builder setExecutionEnvironment(com.google.cloud.run.v2.ExecutionEnvironm * * *
                  -     * The execution environment being used to host this Task.
                  +     * Optional. The execution environment being used to host this Task.
                        * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -2548,11 +2614,14 @@ public Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value) { * * *
                  -     * VPC Access configuration to use for this Task. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Task. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the vpcAccess field is set. */ @@ -2563,11 +2632,14 @@ public boolean hasVpcAccess() { * * *
                  -     * VPC Access configuration to use for this Task. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Task. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The vpcAccess. */ @@ -2584,11 +2656,14 @@ public com.google.cloud.run.v2.VpcAccess getVpcAccess() { * * *
                  -     * VPC Access configuration to use for this Task. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Task. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) { if (vpcAccessBuilder_ == null) { @@ -2607,11 +2682,14 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) { * * *
                  -     * VPC Access configuration to use for this Task. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Task. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess.Builder builderForValue) { if (vpcAccessBuilder_ == null) { @@ -2627,11 +2705,14 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess.Builder builderFor * * *
                  -     * VPC Access configuration to use for this Task. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Task. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) { if (vpcAccessBuilder_ == null) { @@ -2655,11 +2736,14 @@ public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) { * * *
                  -     * VPC Access configuration to use for this Task. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Task. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearVpcAccess() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2675,11 +2759,14 @@ public Builder clearVpcAccess() { * * *
                  -     * VPC Access configuration to use for this Task. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Task. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.VpcAccess.Builder getVpcAccessBuilder() { bitField0_ |= 0x00000080; @@ -2690,11 +2777,14 @@ public com.google.cloud.run.v2.VpcAccess.Builder getVpcAccessBuilder() { * * *
                  -     * VPC Access configuration to use for this Task. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Task. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { if (vpcAccessBuilder_ != null) { @@ -2709,11 +2799,14 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { * * *
                  -     * VPC Access configuration to use for this Task. For more information,
                  -     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +     * Optional. VPC Access configuration to use for this Task. For more
                  +     * information, visit
                  +     * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.run.v2.VpcAccess, diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java index ce49695925b0..c9cc49c269bc 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java @@ -84,50 +84,60 @@ public interface TaskTemplateOrBuilder * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getVolumesList(); /** * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.Volume getVolumes(int index); /** * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getVolumesCount(); /** * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getVolumesOrBuilderList(); /** * * *
                  -   * A list of Volumes to make available to containers.
                  +   * Optional. A list of Volumes to make available to containers.
                      * 
                  * - * repeated .google.cloud.run.v2.Volume volumes = 2; + * + * repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index); @@ -162,13 +172,13 @@ public interface TaskTemplateOrBuilder * * *
                  -   * Max allowed time duration the Task may be active before the system will
                  -   * actively try to mark it failed and kill associated containers. This applies
                  -   * per attempt of a task, meaning each retry can run for the full timeout.
                  -   * Defaults to 600 seconds.
                  +   * Optional. Max allowed time duration the Task may be active before the
                  +   * system will actively try to mark it failed and kill associated containers.
                  +   * This applies per attempt of a task, meaning each retry can run for the full
                  +   * timeout. Defaults to 600 seconds.
                      * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the timeout field is set. */ @@ -177,13 +187,13 @@ public interface TaskTemplateOrBuilder * * *
                  -   * Max allowed time duration the Task may be active before the system will
                  -   * actively try to mark it failed and kill associated containers. This applies
                  -   * per attempt of a task, meaning each retry can run for the full timeout.
                  -   * Defaults to 600 seconds.
                  +   * Optional. Max allowed time duration the Task may be active before the
                  +   * system will actively try to mark it failed and kill associated containers.
                  +   * This applies per attempt of a task, meaning each retry can run for the full
                  +   * timeout. Defaults to 600 seconds.
                      * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The timeout. */ @@ -192,13 +202,13 @@ public interface TaskTemplateOrBuilder * * *
                  -   * Max allowed time duration the Task may be active before the system will
                  -   * actively try to mark it failed and kill associated containers. This applies
                  -   * per attempt of a task, meaning each retry can run for the full timeout.
                  -   * Defaults to 600 seconds.
                  +   * Optional. Max allowed time duration the Task may be active before the
                  +   * system will actively try to mark it failed and kill associated containers.
                  +   * This applies per attempt of a task, meaning each retry can run for the full
                  +   * timeout. Defaults to 600 seconds.
                      * 
                  * - * .google.protobuf.Duration timeout = 4; + * .google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); @@ -206,13 +216,13 @@ public interface TaskTemplateOrBuilder * * *
                  -   * Email address of the IAM service account associated with the Task of a
                  -   * Job. The service account represents the identity of the
                  -   * running task, and determines what permissions the task has. If
                  -   * not provided, the task will use the project's default service account.
                  +   * Optional. Email address of the IAM service account associated with the Task
                  +   * of a Job. The service account represents the identity of the running task,
                  +   * and determines what permissions the task has. If not provided, the task
                  +   * will use the project's default service account.
                      * 
                  * - * string service_account = 5; + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccount. */ @@ -221,13 +231,13 @@ public interface TaskTemplateOrBuilder * * *
                  -   * Email address of the IAM service account associated with the Task of a
                  -   * Job. The service account represents the identity of the
                  -   * running task, and determines what permissions the task has. If
                  -   * not provided, the task will use the project's default service account.
                  +   * Optional. Email address of the IAM service account associated with the Task
                  +   * of a Job. The service account represents the identity of the running task,
                  +   * and determines what permissions the task has. If not provided, the task
                  +   * will use the project's default service account.
                      * 
                  * - * string service_account = 5; + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccount. */ @@ -237,10 +247,12 @@ public interface TaskTemplateOrBuilder * * *
                  -   * The execution environment being used to host this Task.
                  +   * Optional. The execution environment being used to host this Task.
                      * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for executionEnvironment. */ @@ -249,10 +261,12 @@ public interface TaskTemplateOrBuilder * * *
                  -   * The execution environment being used to host this Task.
                  +   * Optional. The execution environment being used to host this Task.
                      * 
                  * - * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The executionEnvironment. */ @@ -291,11 +305,13 @@ public interface TaskTemplateOrBuilder * * *
                  -   * VPC Access configuration to use for this Task. For more information,
                  -   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +   * Optional. VPC Access configuration to use for this Task. For more
                  +   * information, visit
                  +   * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the vpcAccess field is set. */ @@ -304,11 +320,13 @@ public interface TaskTemplateOrBuilder * * *
                  -   * VPC Access configuration to use for this Task. For more information,
                  -   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +   * Optional. VPC Access configuration to use for this Task. For more
                  +   * information, visit
                  +   * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The vpcAccess. */ @@ -317,11 +335,13 @@ public interface TaskTemplateOrBuilder * * *
                  -   * VPC Access configuration to use for this Task. For more information,
                  -   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
                  +   * Optional. VPC Access configuration to use for this Task. For more
                  +   * information, visit
                  +   * https://cloud.google.com/run/docs/configuring/connecting-vpc.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * .google.cloud.run.v2.VpcAccess vpc_access = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder(); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java index 2e902a98ad2b..dd25ebcc5f9a 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java @@ -42,28 +42,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\'google/cloud/run/v2/task_template.prot" - + "o\022\023google.cloud.run.v2\032\031google/api/resou" - + "rce.proto\032!google/cloud/run/v2/k8s.min.p" - + "roto\032)google/cloud/run/v2/vendor_setting" - + "s.proto\032\036google/protobuf/duration.proto\"" - + "\225\003\n\014TaskTemplate\0222\n\ncontainers\030\001 \003(\0132\036.g" - + "oogle.cloud.run.v2.Container\022,\n\007volumes\030" - + "\002 \003(\0132\033.google.cloud.run.v2.Volume\022\025\n\013ma" - + "x_retries\030\003 \001(\005H\000\022*\n\007timeout\030\004 \001(\0132\031.goo" - + "gle.protobuf.Duration\022\027\n\017service_account" - + "\030\005 \001(\t\022H\n\025execution_environment\030\006 \001(\0162)." - + "google.cloud.run.v2.ExecutionEnvironment" - + "\022>\n\016encryption_key\030\007 \001(\tB&\372A#\n!cloudkms." - + "googleapis.com/CryptoKey\0222\n\nvpc_access\030\010" - + " \001(\0132\036.google.cloud.run.v2.VpcAccessB\t\n\007" - + "retriesBY\n\027com.google.cloud.run.v2B\021Task" - + "TemplateProtoP\001Z)cloud.google.com/go/run" - + "/apiv2/runpb;runpbb\006proto3" + + "o\022\023google.cloud.run.v2\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032!google/cloud/run/v2/k8s.min.proto\032)g" + + "oogle/cloud/run/v2/vendor_settings.proto" + + "\032\036google/protobuf/duration.proto\"\256\003\n\014Tas" + + "kTemplate\0222\n\ncontainers\030\001 \003(\0132\036.google.c" + + "loud.run.v2.Container\0221\n\007volumes\030\002 \003(\0132\033" + + ".google.cloud.run.v2.VolumeB\003\340A\001\022\025\n\013max_" + + "retries\030\003 \001(\005H\000\022/\n\007timeout\030\004 \001(\0132\031.googl" + + "e.protobuf.DurationB\003\340A\001\022\034\n\017service_acco" + + "unt\030\005 \001(\tB\003\340A\001\022M\n\025execution_environment\030" + + "\006 \001(\0162).google.cloud.run.v2.ExecutionEnv" + + "ironmentB\003\340A\001\022>\n\016encryption_key\030\007 \001(\tB&\372" + + "A#\n!cloudkms.googleapis.com/CryptoKey\0227\n" + + "\nvpc_access\030\010 \001(\0132\036.google.cloud.run.v2." + + "VpcAccessB\003\340A\001B\t\n\007retriesBY\n\027com.google." + + "cloud.run.v2B\021TaskTemplateProtoP\001Z)cloud" + + ".google.com/go/run/apiv2/runpb;runpbb\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.run.v2.K8sMinProto.getDescriptor(), com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), @@ -87,9 +90,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.run.v2.K8sMinProto.getDescriptor(); com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java index 713c71e429f0..ab163db231b4 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java @@ -133,12 +133,12 @@ public boolean getValidateOnly() { * * *
                  -   * If set to true, and if the Job does not exist, it will create a new
                  -   * one. Caller must have both create and update permissions for this call if
                  -   * this is set to true.
                  +   * Optional. If set to true, and if the Job does not exist, it will create a
                  +   * new one. Caller must have both create and update permissions for this call
                  +   * if this is set to true.
                      * 
                  * - * bool allow_missing = 4; + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMissing. */ @@ -791,12 +791,12 @@ public Builder clearValidateOnly() { * * *
                  -     * If set to true, and if the Job does not exist, it will create a new
                  -     * one. Caller must have both create and update permissions for this call if
                  -     * this is set to true.
                  +     * Optional. If set to true, and if the Job does not exist, it will create a
                  +     * new one. Caller must have both create and update permissions for this call
                  +     * if this is set to true.
                        * 
                  * - * bool allow_missing = 4; + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMissing. */ @@ -808,12 +808,12 @@ public boolean getAllowMissing() { * * *
                  -     * If set to true, and if the Job does not exist, it will create a new
                  -     * one. Caller must have both create and update permissions for this call if
                  -     * this is set to true.
                  +     * Optional. If set to true, and if the Job does not exist, it will create a
                  +     * new one. Caller must have both create and update permissions for this call
                  +     * if this is set to true.
                        * 
                  * - * bool allow_missing = 4; + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The allowMissing to set. * @return This builder for chaining. @@ -829,12 +829,12 @@ public Builder setAllowMissing(boolean value) { * * *
                  -     * If set to true, and if the Job does not exist, it will create a new
                  -     * one. Caller must have both create and update permissions for this call if
                  -     * this is set to true.
                  +     * Optional. If set to true, and if the Job does not exist, it will create a
                  +     * new one. Caller must have both create and update permissions for this call
                  +     * if this is set to true.
                        * 
                  * - * bool allow_missing = 4; + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.java index ffb8c1728232..406ab733a098 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.java @@ -77,12 +77,12 @@ public interface UpdateJobRequestOrBuilder * * *
                  -   * If set to true, and if the Job does not exist, it will create a new
                  -   * one. Caller must have both create and update permissions for this call if
                  -   * this is set to true.
                  +   * Optional. If set to true, and if the Job does not exist, it will create a
                  +   * new one. Caller must have both create and update permissions for this call
                  +   * if this is set to true.
                      * 
                  * - * bool allow_missing = 4; + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMissing. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java index f4a299e13132..8bf5a4a6adbc 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java @@ -62,6 +62,55 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
                  +   * Optional. The list of fields to be updated.
                  +   * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                  +   * Optional. The list of fields to be updated.
                  +   * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
                  +   * Optional. The list of fields to be updated.
                  +   * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + public static final int SERVICE_FIELD_NUMBER = 1; private com.google.cloud.run.v2.Service service_; /** @@ -78,7 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasService() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -136,12 +185,12 @@ public boolean getValidateOnly() { * * *
                  -   * If set to true, and if the Service does not exist, it will create a new
                  -   * one. The caller must have 'run.services.create' permissions if this is set
                  -   * to true and the Service does not exist.
                  +   * Optional. If set to true, and if the Service does not exist, it will create
                  +   * a new one. The caller must have 'run.services.create' permissions if this
                  +   * is set to true and the Service does not exist.
                      * 
                  * - * bool allow_missing = 4; + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMissing. */ @@ -164,9 +213,12 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(1, getService()); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getUpdateMask()); + } if (validateOnly_ != false) { output.writeBool(3, validateOnly_); } @@ -182,9 +234,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getService()); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } if (validateOnly_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } @@ -207,6 +262,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.run.v2.UpdateServiceRequest other = (com.google.cloud.run.v2.UpdateServiceRequest) obj; + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } if (hasService() != other.hasService()) return false; if (hasService()) { if (!getService().equals(other.getService())) return false; @@ -224,6 +283,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } if (hasService()) { hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); @@ -372,6 +435,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); getServiceFieldBuilder(); } } @@ -380,6 +444,11 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } service_ = null; if (serviceBuilder_ != null) { serviceBuilder_.dispose(); @@ -425,13 +494,17 @@ private void buildPartial0(com.google.cloud.run.v2.UpdateServiceRequest result) int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.service_ = serviceBuilder_ == null ? service_ : serviceBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.validateOnly_ = validateOnly_; + result.service_ = serviceBuilder_ == null ? service_ : serviceBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.allowMissing_ = allowMissing_; } result.bitField0_ |= to_bitField0_; @@ -482,6 +555,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.run.v2.UpdateServiceRequest other) { if (other == com.google.cloud.run.v2.UpdateServiceRequest.getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } if (other.hasService()) { mergeService(other.getService()); } @@ -520,19 +596,25 @@ public Builder mergeFrom( case 10: { input.readMessage(getServiceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 case 24: { validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 24 case 32: { allowMissing_ = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 32 default: @@ -554,6 +636,200 @@ public Builder mergeFrom( private int bitField0_; + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
                  +     * Optional. The list of fields to be updated.
                  +     * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                  +     * Optional. The list of fields to be updated.
                  +     * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * Optional. The list of fields to be updated.
                  +     * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. The list of fields to be updated.
                  +     * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. The list of fields to be updated.
                  +     * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Optional. The list of fields to be updated.
                  +     * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. The list of fields to be updated.
                  +     * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * Optional. The list of fields to be updated.
                  +     * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
                  +     * Optional. The list of fields to be updated.
                  +     * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + private com.google.cloud.run.v2.Service service_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.run.v2.Service, @@ -573,7 +849,7 @@ public Builder mergeFrom( * @return Whether the service field is set. */ public boolean hasService() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -613,7 +889,7 @@ public Builder setService(com.google.cloud.run.v2.Service value) { } else { serviceBuilder_.setMessage(value); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -633,7 +909,7 @@ public Builder setService(com.google.cloud.run.v2.Service.Builder builderForValu } else { serviceBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -649,7 +925,7 @@ public Builder setService(com.google.cloud.run.v2.Service.Builder builderForValu */ public Builder mergeService(com.google.cloud.run.v2.Service value) { if (serviceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) + if (((bitField0_ & 0x00000002) != 0) && service_ != null && service_ != com.google.cloud.run.v2.Service.getDefaultInstance()) { getServiceBuilder().mergeFrom(value); @@ -660,7 +936,7 @@ public Builder mergeService(com.google.cloud.run.v2.Service value) { serviceBuilder_.mergeFrom(value); } if (service_ != null) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); } return this; @@ -676,7 +952,7 @@ public Builder mergeService(com.google.cloud.run.v2.Service value) { *
                  */ public Builder clearService() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); service_ = null; if (serviceBuilder_ != null) { serviceBuilder_.dispose(); @@ -696,7 +972,7 @@ public Builder clearService() { *
                  */ public com.google.cloud.run.v2.Service.Builder getServiceBuilder() { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return getServiceFieldBuilder().getBuilder(); } @@ -777,7 +1053,7 @@ public boolean getValidateOnly() { public Builder setValidateOnly(boolean value) { validateOnly_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -794,7 +1070,7 @@ public Builder setValidateOnly(boolean value) { * @return This builder for chaining. */ public Builder clearValidateOnly() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); validateOnly_ = false; onChanged(); return this; @@ -805,12 +1081,12 @@ public Builder clearValidateOnly() { * * *
                  -     * If set to true, and if the Service does not exist, it will create a new
                  -     * one. The caller must have 'run.services.create' permissions if this is set
                  -     * to true and the Service does not exist.
                  +     * Optional. If set to true, and if the Service does not exist, it will create
                  +     * a new one. The caller must have 'run.services.create' permissions if this
                  +     * is set to true and the Service does not exist.
                        * 
                  * - * bool allow_missing = 4; + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMissing. */ @@ -822,12 +1098,12 @@ public boolean getAllowMissing() { * * *
                  -     * If set to true, and if the Service does not exist, it will create a new
                  -     * one. The caller must have 'run.services.create' permissions if this is set
                  -     * to true and the Service does not exist.
                  +     * Optional. If set to true, and if the Service does not exist, it will create
                  +     * a new one. The caller must have 'run.services.create' permissions if this
                  +     * is set to true and the Service does not exist.
                        * 
                  * - * bool allow_missing = 4; + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The allowMissing to set. * @return This builder for chaining. @@ -835,7 +1111,7 @@ public boolean getAllowMissing() { public Builder setAllowMissing(boolean value) { allowMissing_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -843,17 +1119,17 @@ public Builder setAllowMissing(boolean value) { * * *
                  -     * If set to true, and if the Service does not exist, it will create a new
                  -     * one. The caller must have 'run.services.create' permissions if this is set
                  -     * to true and the Service does not exist.
                  +     * Optional. If set to true, and if the Service does not exist, it will create
                  +     * a new one. The caller must have 'run.services.create' permissions if this
                  +     * is set to true and the Service does not exist.
                        * 
                  * - * bool allow_missing = 4; + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearAllowMissing() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); allowMissing_ = false; onChanged(); return this; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java index d65c088093e2..bcae94b3a4e7 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java @@ -24,6 +24,44 @@ public interface UpdateServiceRequestOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.UpdateServiceRequest) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                  +   * Optional. The list of fields to be updated.
                  +   * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
                  +   * Optional. The list of fields to be updated.
                  +   * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
                  +   * Optional. The list of fields to be updated.
                  +   * 
                  + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + /** * * @@ -80,12 +118,12 @@ public interface UpdateServiceRequestOrBuilder * * *
                  -   * If set to true, and if the Service does not exist, it will create a new
                  -   * one. The caller must have 'run.services.create' permissions if this is set
                  -   * to true and the Service does not exist.
                  +   * Optional. If set to true, and if the Service does not exist, it will create
                  +   * a new one. The caller must have 'run.services.create' permissions if this
                  +   * is set to true and the Service does not exist.
                      * 
                  * - * bool allow_missing = 4; + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMissing. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java index afb4527a4f28..3651915d1b50 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java @@ -58,40 +58,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n)google/cloud/run/v2/vendor_settings.pr" - + "oto\022\023google.cloud.run.v2\032\031google/api/res" - + "ource.proto\"\350\002\n\tVpcAccess\022:\n\tconnector\030\001" - + " \001(\tB\'\372A$\n\"vpcaccess.googleapis.com/Conn" - + "ector\0228\n\006egress\030\002 \001(\0162(.google.cloud.run" - + ".v2.VpcAccess.VpcEgress\022K\n\022network_inter" - + "faces\030\003 \003(\0132/.google.cloud.run.v2.VpcAcc" - + "ess.NetworkInterface\032E\n\020NetworkInterface" - + "\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022\014\n" - + "\004tags\030\003 \003(\t\"Q\n\tVpcEgress\022\032\n\026VPC_EGRESS_U" - + "NSPECIFIED\020\000\022\017\n\013ALL_TRAFFIC\020\001\022\027\n\023PRIVATE" - + "_RANGES_ONLY\020\002\"a\n\023BinaryAuthorization\022\025\n" - + "\013use_default\030\001 \001(\010H\000\022 \n\030breakglass_justi" - + "fication\030\002 \001(\tB\021\n\017binauthz_method\"I\n\017Rev" - + "isionScaling\022\032\n\022min_instance_count\030\001 \001(\005" - + "\022\032\n\022max_instance_count\030\002 \001(\005\",\n\016ServiceS" - + "caling\022\032\n\022min_instance_count\030\001 \001(\005*\231\001\n\016I" - + "ngressTraffic\022\037\n\033INGRESS_TRAFFIC_UNSPECI" - + "FIED\020\000\022\027\n\023INGRESS_TRAFFIC_ALL\020\001\022!\n\035INGRE" - + "SS_TRAFFIC_INTERNAL_ONLY\020\002\022*\n&INGRESS_TR" - + "AFFIC_INTERNAL_LOAD_BALANCER\020\003*}\n\024Execut" - + "ionEnvironment\022%\n!EXECUTION_ENVIRONMENT_" - + "UNSPECIFIED\020\000\022\036\n\032EXECUTION_ENVIRONMENT_G" - + "EN1\020\001\022\036\n\032EXECUTION_ENVIRONMENT_GEN2\020\002*p\n" - + "\035EncryptionKeyRevocationAction\0220\n,ENCRYP" - + "TION_KEY_REVOCATION_ACTION_UNSPECIFIED\020\000" - + "\022\017\n\013PREVENT_NEW\020\001\022\014\n\010SHUTDOWN\020\002B[\n\027com.g" - + "oogle.cloud.run.v2B\023VendorSettingsProtoP" - + "\001Z)cloud.google.com/go/run/apiv2/runpb;r" - + "unpbb\006proto3" + + "oto\022\023google.cloud.run.v2\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\"\201\003\n\tVpcAccess\022:\n\tconnector\030\001 \001(\tB\'\372" + + "A$\n\"vpcaccess.googleapis.com/Connector\022=" + + "\n\006egress\030\002 \001(\0162(.google.cloud.run.v2.Vpc" + + "Access.VpcEgressB\003\340A\001\022P\n\022network_interfa" + + "ces\030\003 \003(\0132/.google.cloud.run.v2.VpcAcces" + + "s.NetworkInterfaceB\003\340A\001\032T\n\020NetworkInterf" + + "ace\022\024\n\007network\030\001 \001(\tB\003\340A\001\022\027\n\nsubnetwork\030" + + "\002 \001(\tB\003\340A\001\022\021\n\004tags\030\003 \003(\tB\003\340A\001\"Q\n\tVpcEgre" + + "ss\022\032\n\026VPC_EGRESS_UNSPECIFIED\020\000\022\017\n\013ALL_TR" + + "AFFIC\020\001\022\027\n\023PRIVATE_RANGES_ONLY\020\002\"\202\001\n\023Bin" + + "aryAuthorization\022\032\n\013use_default\030\001 \001(\010B\003\340" + + "A\001H\000\022\025\n\006policy\030\003 \001(\tB\003\340A\001H\000\022%\n\030breakglas" + + "s_justification\030\002 \001(\tB\003\340A\001B\021\n\017binauthz_m" + + "ethod\"S\n\017RevisionScaling\022\037\n\022min_instance" + + "_count\030\001 \001(\005B\003\340A\001\022\037\n\022max_instance_count\030" + + "\002 \001(\005B\003\340A\001\"1\n\016ServiceScaling\022\037\n\022min_inst" + + "ance_count\030\001 \001(\005B\003\340A\001*\231\001\n\016IngressTraffic" + + "\022\037\n\033INGRESS_TRAFFIC_UNSPECIFIED\020\000\022\027\n\023ING" + + "RESS_TRAFFIC_ALL\020\001\022!\n\035INGRESS_TRAFFIC_IN" + + "TERNAL_ONLY\020\002\022*\n&INGRESS_TRAFFIC_INTERNA" + + "L_LOAD_BALANCER\020\003*}\n\024ExecutionEnvironmen" + + "t\022%\n!EXECUTION_ENVIRONMENT_UNSPECIFIED\020\000" + + "\022\036\n\032EXECUTION_ENVIRONMENT_GEN1\020\001\022\036\n\032EXEC" + + "UTION_ENVIRONMENT_GEN2\020\002*p\n\035EncryptionKe" + + "yRevocationAction\0220\n,ENCRYPTION_KEY_REVO" + + "CATION_ACTION_UNSPECIFIED\020\000\022\017\n\013PREVENT_N" + + "EW\020\001\022\014\n\010SHUTDOWN\020\002B[\n\027com.google.cloud.r" + + "un.v2B\023VendorSettingsProtoP\001Z)cloud.goog" + + "le.com/go/run/apiv2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), }); internal_static_google_cloud_run_v2_VpcAccess_descriptor = @@ -116,7 +119,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor, new java.lang.String[] { - "UseDefault", "BreakglassJustification", "BinauthzMethod", + "UseDefault", "Policy", "BreakglassJustification", "BinauthzMethod", }); internal_static_google_cloud_run_v2_RevisionScaling_descriptor = getDescriptor().getMessageTypes().get(2); @@ -136,9 +139,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java index 233da5a44be8..727c593e7530 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java @@ -232,14 +232,14 @@ public interface NetworkInterfaceOrBuilder * * *
                  -     * The VPC network that the Cloud Run resource will be able to send traffic
                  -     * to. At least one of network or subnetwork must be specified. If both
                  -     * network and subnetwork are specified, the given VPC subnetwork must
                  -     * belong to the given VPC network. If network is not specified, it will be
                  -     * looked up from the subnetwork.
                  +     * Optional. The VPC network that the Cloud Run resource will be able to
                  +     * send traffic to. At least one of network or subnetwork must be specified.
                  +     * If both network and subnetwork are specified, the given VPC subnetwork
                  +     * must belong to the given VPC network. If network is not specified, it
                  +     * will be looked up from the subnetwork.
                        * 
                  * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The network. */ @@ -248,14 +248,14 @@ public interface NetworkInterfaceOrBuilder * * *
                  -     * The VPC network that the Cloud Run resource will be able to send traffic
                  -     * to. At least one of network or subnetwork must be specified. If both
                  -     * network and subnetwork are specified, the given VPC subnetwork must
                  -     * belong to the given VPC network. If network is not specified, it will be
                  -     * looked up from the subnetwork.
                  +     * Optional. The VPC network that the Cloud Run resource will be able to
                  +     * send traffic to. At least one of network or subnetwork must be specified.
                  +     * If both network and subnetwork are specified, the given VPC subnetwork
                  +     * must belong to the given VPC network. If network is not specified, it
                  +     * will be looked up from the subnetwork.
                        * 
                  * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for network. */ @@ -265,14 +265,14 @@ public interface NetworkInterfaceOrBuilder * * *
                  -     * The VPC subnetwork that the Cloud Run resource will get IPs from. At
                  -     * least one of network or subnetwork must be specified. If both
                  +     * Optional. The VPC subnetwork that the Cloud Run resource will get IPs
                  +     * from. At least one of network or subnetwork must be specified. If both
                        * network and subnetwork are specified, the given VPC subnetwork must
                        * belong to the given VPC network. If subnetwork is not specified, the
                        * subnetwork with the same name with the network will be used.
                        * 
                  * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The subnetwork. */ @@ -281,14 +281,14 @@ public interface NetworkInterfaceOrBuilder * * *
                  -     * The VPC subnetwork that the Cloud Run resource will get IPs from. At
                  -     * least one of network or subnetwork must be specified. If both
                  +     * Optional. The VPC subnetwork that the Cloud Run resource will get IPs
                  +     * from. At least one of network or subnetwork must be specified. If both
                        * network and subnetwork are specified, the given VPC subnetwork must
                        * belong to the given VPC network. If subnetwork is not specified, the
                        * subnetwork with the same name with the network will be used.
                        * 
                  * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for subnetwork. */ @@ -298,10 +298,10 @@ public interface NetworkInterfaceOrBuilder * * *
                  -     * Network tags applied to this Cloud Run resource.
                  +     * Optional. Network tags applied to this Cloud Run resource.
                        * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the tags. */ @@ -310,10 +310,10 @@ public interface NetworkInterfaceOrBuilder * * *
                  -     * Network tags applied to this Cloud Run resource.
                  +     * Optional. Network tags applied to this Cloud Run resource.
                        * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of tags. */ @@ -322,10 +322,10 @@ public interface NetworkInterfaceOrBuilder * * *
                  -     * Network tags applied to this Cloud Run resource.
                  +     * Optional. Network tags applied to this Cloud Run resource.
                        * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The tags at the given index. @@ -335,10 +335,10 @@ public interface NetworkInterfaceOrBuilder * * *
                  -     * Network tags applied to this Cloud Run resource.
                  +     * Optional. Network tags applied to this Cloud Run resource.
                        * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the tags at the given index. @@ -399,14 +399,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                  -     * The VPC network that the Cloud Run resource will be able to send traffic
                  -     * to. At least one of network or subnetwork must be specified. If both
                  -     * network and subnetwork are specified, the given VPC subnetwork must
                  -     * belong to the given VPC network. If network is not specified, it will be
                  -     * looked up from the subnetwork.
                  +     * Optional. The VPC network that the Cloud Run resource will be able to
                  +     * send traffic to. At least one of network or subnetwork must be specified.
                  +     * If both network and subnetwork are specified, the given VPC subnetwork
                  +     * must belong to the given VPC network. If network is not specified, it
                  +     * will be looked up from the subnetwork.
                        * 
                  * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The network. */ @@ -426,14 +426,14 @@ public java.lang.String getNetwork() { * * *
                  -     * The VPC network that the Cloud Run resource will be able to send traffic
                  -     * to. At least one of network or subnetwork must be specified. If both
                  -     * network and subnetwork are specified, the given VPC subnetwork must
                  -     * belong to the given VPC network. If network is not specified, it will be
                  -     * looked up from the subnetwork.
                  +     * Optional. The VPC network that the Cloud Run resource will be able to
                  +     * send traffic to. At least one of network or subnetwork must be specified.
                  +     * If both network and subnetwork are specified, the given VPC subnetwork
                  +     * must belong to the given VPC network. If network is not specified, it
                  +     * will be looked up from the subnetwork.
                        * 
                  * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for network. */ @@ -458,14 +458,14 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
                  -     * The VPC subnetwork that the Cloud Run resource will get IPs from. At
                  -     * least one of network or subnetwork must be specified. If both
                  +     * Optional. The VPC subnetwork that the Cloud Run resource will get IPs
                  +     * from. At least one of network or subnetwork must be specified. If both
                        * network and subnetwork are specified, the given VPC subnetwork must
                        * belong to the given VPC network. If subnetwork is not specified, the
                        * subnetwork with the same name with the network will be used.
                        * 
                  * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The subnetwork. */ @@ -485,14 +485,14 @@ public java.lang.String getSubnetwork() { * * *
                  -     * The VPC subnetwork that the Cloud Run resource will get IPs from. At
                  -     * least one of network or subnetwork must be specified. If both
                  +     * Optional. The VPC subnetwork that the Cloud Run resource will get IPs
                  +     * from. At least one of network or subnetwork must be specified. If both
                        * network and subnetwork are specified, the given VPC subnetwork must
                        * belong to the given VPC network. If subnetwork is not specified, the
                        * subnetwork with the same name with the network will be used.
                        * 
                  * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for subnetwork. */ @@ -518,10 +518,10 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * * *
                  -     * Network tags applied to this Cloud Run resource.
                  +     * Optional. Network tags applied to this Cloud Run resource.
                        * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the tags. */ @@ -532,10 +532,10 @@ public com.google.protobuf.ProtocolStringList getTagsList() { * * *
                  -     * Network tags applied to this Cloud Run resource.
                  +     * Optional. Network tags applied to this Cloud Run resource.
                        * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of tags. */ @@ -546,10 +546,10 @@ public int getTagsCount() { * * *
                  -     * Network tags applied to this Cloud Run resource.
                  +     * Optional. Network tags applied to this Cloud Run resource.
                        * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The tags at the given index. @@ -561,10 +561,10 @@ public java.lang.String getTags(int index) { * * *
                  -     * Network tags applied to this Cloud Run resource.
                  +     * Optional. Network tags applied to this Cloud Run resource.
                        * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the tags at the given index. @@ -986,14 +986,14 @@ public Builder mergeFrom( * * *
                  -       * The VPC network that the Cloud Run resource will be able to send traffic
                  -       * to. At least one of network or subnetwork must be specified. If both
                  -       * network and subnetwork are specified, the given VPC subnetwork must
                  -       * belong to the given VPC network. If network is not specified, it will be
                  -       * looked up from the subnetwork.
                  +       * Optional. The VPC network that the Cloud Run resource will be able to
                  +       * send traffic to. At least one of network or subnetwork must be specified.
                  +       * If both network and subnetwork are specified, the given VPC subnetwork
                  +       * must belong to the given VPC network. If network is not specified, it
                  +       * will be looked up from the subnetwork.
                          * 
                  * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The network. */ @@ -1012,14 +1012,14 @@ public java.lang.String getNetwork() { * * *
                  -       * The VPC network that the Cloud Run resource will be able to send traffic
                  -       * to. At least one of network or subnetwork must be specified. If both
                  -       * network and subnetwork are specified, the given VPC subnetwork must
                  -       * belong to the given VPC network. If network is not specified, it will be
                  -       * looked up from the subnetwork.
                  +       * Optional. The VPC network that the Cloud Run resource will be able to
                  +       * send traffic to. At least one of network or subnetwork must be specified.
                  +       * If both network and subnetwork are specified, the given VPC subnetwork
                  +       * must belong to the given VPC network. If network is not specified, it
                  +       * will be looked up from the subnetwork.
                          * 
                  * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for network. */ @@ -1038,14 +1038,14 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
                  -       * The VPC network that the Cloud Run resource will be able to send traffic
                  -       * to. At least one of network or subnetwork must be specified. If both
                  -       * network and subnetwork are specified, the given VPC subnetwork must
                  -       * belong to the given VPC network. If network is not specified, it will be
                  -       * looked up from the subnetwork.
                  +       * Optional. The VPC network that the Cloud Run resource will be able to
                  +       * send traffic to. At least one of network or subnetwork must be specified.
                  +       * If both network and subnetwork are specified, the given VPC subnetwork
                  +       * must belong to the given VPC network. If network is not specified, it
                  +       * will be looked up from the subnetwork.
                          * 
                  * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The network to set. * @return This builder for chaining. @@ -1063,14 +1063,14 @@ public Builder setNetwork(java.lang.String value) { * * *
                  -       * The VPC network that the Cloud Run resource will be able to send traffic
                  -       * to. At least one of network or subnetwork must be specified. If both
                  -       * network and subnetwork are specified, the given VPC subnetwork must
                  -       * belong to the given VPC network. If network is not specified, it will be
                  -       * looked up from the subnetwork.
                  +       * Optional. The VPC network that the Cloud Run resource will be able to
                  +       * send traffic to. At least one of network or subnetwork must be specified.
                  +       * If both network and subnetwork are specified, the given VPC subnetwork
                  +       * must belong to the given VPC network. If network is not specified, it
                  +       * will be looked up from the subnetwork.
                          * 
                  * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1084,14 +1084,14 @@ public Builder clearNetwork() { * * *
                  -       * The VPC network that the Cloud Run resource will be able to send traffic
                  -       * to. At least one of network or subnetwork must be specified. If both
                  -       * network and subnetwork are specified, the given VPC subnetwork must
                  -       * belong to the given VPC network. If network is not specified, it will be
                  -       * looked up from the subnetwork.
                  +       * Optional. The VPC network that the Cloud Run resource will be able to
                  +       * send traffic to. At least one of network or subnetwork must be specified.
                  +       * If both network and subnetwork are specified, the given VPC subnetwork
                  +       * must belong to the given VPC network. If network is not specified, it
                  +       * will be looked up from the subnetwork.
                          * 
                  * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for network to set. * @return This builder for chaining. @@ -1112,14 +1112,14 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * * *
                  -       * The VPC subnetwork that the Cloud Run resource will get IPs from. At
                  -       * least one of network or subnetwork must be specified. If both
                  +       * Optional. The VPC subnetwork that the Cloud Run resource will get IPs
                  +       * from. At least one of network or subnetwork must be specified. If both
                          * network and subnetwork are specified, the given VPC subnetwork must
                          * belong to the given VPC network. If subnetwork is not specified, the
                          * subnetwork with the same name with the network will be used.
                          * 
                  * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The subnetwork. */ @@ -1138,14 +1138,14 @@ public java.lang.String getSubnetwork() { * * *
                  -       * The VPC subnetwork that the Cloud Run resource will get IPs from. At
                  -       * least one of network or subnetwork must be specified. If both
                  +       * Optional. The VPC subnetwork that the Cloud Run resource will get IPs
                  +       * from. At least one of network or subnetwork must be specified. If both
                          * network and subnetwork are specified, the given VPC subnetwork must
                          * belong to the given VPC network. If subnetwork is not specified, the
                          * subnetwork with the same name with the network will be used.
                          * 
                  * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for subnetwork. */ @@ -1164,14 +1164,14 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * * *
                  -       * The VPC subnetwork that the Cloud Run resource will get IPs from. At
                  -       * least one of network or subnetwork must be specified. If both
                  +       * Optional. The VPC subnetwork that the Cloud Run resource will get IPs
                  +       * from. At least one of network or subnetwork must be specified. If both
                          * network and subnetwork are specified, the given VPC subnetwork must
                          * belong to the given VPC network. If subnetwork is not specified, the
                          * subnetwork with the same name with the network will be used.
                          * 
                  * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The subnetwork to set. * @return This builder for chaining. @@ -1189,14 +1189,14 @@ public Builder setSubnetwork(java.lang.String value) { * * *
                  -       * The VPC subnetwork that the Cloud Run resource will get IPs from. At
                  -       * least one of network or subnetwork must be specified. If both
                  +       * Optional. The VPC subnetwork that the Cloud Run resource will get IPs
                  +       * from. At least one of network or subnetwork must be specified. If both
                          * network and subnetwork are specified, the given VPC subnetwork must
                          * belong to the given VPC network. If subnetwork is not specified, the
                          * subnetwork with the same name with the network will be used.
                          * 
                  * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1210,14 +1210,14 @@ public Builder clearSubnetwork() { * * *
                  -       * The VPC subnetwork that the Cloud Run resource will get IPs from. At
                  -       * least one of network or subnetwork must be specified. If both
                  +       * Optional. The VPC subnetwork that the Cloud Run resource will get IPs
                  +       * from. At least one of network or subnetwork must be specified. If both
                          * network and subnetwork are specified, the given VPC subnetwork must
                          * belong to the given VPC network. If subnetwork is not specified, the
                          * subnetwork with the same name with the network will be used.
                          * 
                  * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for subnetwork to set. * @return This builder for chaining. @@ -1246,10 +1246,10 @@ private void ensureTagsIsMutable() { * * *
                  -       * Network tags applied to this Cloud Run resource.
                  +       * Optional. Network tags applied to this Cloud Run resource.
                          * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the tags. */ @@ -1261,10 +1261,10 @@ public com.google.protobuf.ProtocolStringList getTagsList() { * * *
                  -       * Network tags applied to this Cloud Run resource.
                  +       * Optional. Network tags applied to this Cloud Run resource.
                          * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of tags. */ @@ -1275,10 +1275,10 @@ public int getTagsCount() { * * *
                  -       * Network tags applied to this Cloud Run resource.
                  +       * Optional. Network tags applied to this Cloud Run resource.
                          * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The tags at the given index. @@ -1290,10 +1290,10 @@ public java.lang.String getTags(int index) { * * *
                  -       * Network tags applied to this Cloud Run resource.
                  +       * Optional. Network tags applied to this Cloud Run resource.
                          * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the tags at the given index. @@ -1305,10 +1305,10 @@ public com.google.protobuf.ByteString getTagsBytes(int index) { * * *
                  -       * Network tags applied to this Cloud Run resource.
                  +       * Optional. Network tags applied to this Cloud Run resource.
                          * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The tags to set. @@ -1328,10 +1328,10 @@ public Builder setTags(int index, java.lang.String value) { * * *
                  -       * Network tags applied to this Cloud Run resource.
                  +       * Optional. Network tags applied to this Cloud Run resource.
                          * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The tags to add. * @return This builder for chaining. @@ -1350,10 +1350,10 @@ public Builder addTags(java.lang.String value) { * * *
                  -       * Network tags applied to this Cloud Run resource.
                  +       * Optional. Network tags applied to this Cloud Run resource.
                          * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The tags to add. * @return This builder for chaining. @@ -1369,10 +1369,10 @@ public Builder addAllTags(java.lang.Iterable values) { * * *
                  -       * Network tags applied to this Cloud Run resource.
                  +       * Optional. Network tags applied to this Cloud Run resource.
                          * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1387,10 +1387,10 @@ public Builder clearTags() { * * *
                  -       * Network tags applied to this Cloud Run resource.
                  +       * Optional. Network tags applied to this Cloud Run resource.
                          * 
                  * - * repeated string tags = 3; + * repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the tags to add. * @return This builder for chaining. @@ -1536,11 +1536,13 @@ public com.google.protobuf.ByteString getConnectorBytes() { * * *
                  -   * Traffic VPC egress settings. If not provided, it defaults to
                  +   * Optional. Traffic VPC egress settings. If not provided, it defaults to
                      * PRIVATE_RANGES_ONLY.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * + * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for egress. */ @@ -1552,11 +1554,13 @@ public int getEgressValue() { * * *
                  -   * Traffic VPC egress settings. If not provided, it defaults to
                  +   * Optional. Traffic VPC egress settings. If not provided, it defaults to
                      * PRIVATE_RANGES_ONLY.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * + * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The egress. */ @@ -1575,11 +1579,13 @@ public com.google.cloud.run.v2.VpcAccess.VpcEgress getEgress() { * * *
                  -   * Direct VPC egress settings. Currently only single network interface is
                  -   * supported.
                  +   * Optional. Direct VPC egress settings. Currently only single network
                  +   * interface is supported.
                      * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -1590,11 +1596,13 @@ public com.google.cloud.run.v2.VpcAccess.VpcEgress getEgress() { * * *
                  -   * Direct VPC egress settings. Currently only single network interface is
                  -   * supported.
                  +   * Optional. Direct VPC egress settings. Currently only single network
                  +   * interface is supported.
                      * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -1605,11 +1613,13 @@ public com.google.cloud.run.v2.VpcAccess.VpcEgress getEgress() { * * *
                  -   * Direct VPC egress settings. Currently only single network interface is
                  -   * supported.
                  +   * Optional. Direct VPC egress settings. Currently only single network
                  +   * interface is supported.
                      * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getNetworkInterfacesCount() { @@ -1619,11 +1629,13 @@ public int getNetworkInterfacesCount() { * * *
                  -   * Direct VPC egress settings. Currently only single network interface is
                  -   * supported.
                  +   * Optional. Direct VPC egress settings. Currently only single network
                  +   * interface is supported.
                      * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.VpcAccess.NetworkInterface getNetworkInterfaces(int index) { @@ -1633,11 +1645,13 @@ public com.google.cloud.run.v2.VpcAccess.NetworkInterface getNetworkInterfaces(i * * *
                  -   * Direct VPC egress settings. Currently only single network interface is
                  -   * supported.
                  +   * Optional. Direct VPC egress settings. Currently only single network
                  +   * interface is supported.
                      * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.run.v2.VpcAccess.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder( @@ -2210,11 +2224,13 @@ public Builder setConnectorBytes(com.google.protobuf.ByteString value) { * * *
                  -     * Traffic VPC egress settings. If not provided, it defaults to
                  +     * Optional. Traffic VPC egress settings. If not provided, it defaults to
                        * PRIVATE_RANGES_ONLY.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * + * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for egress. */ @@ -2226,11 +2242,13 @@ public int getEgressValue() { * * *
                  -     * Traffic VPC egress settings. If not provided, it defaults to
                  +     * Optional. Traffic VPC egress settings. If not provided, it defaults to
                        * PRIVATE_RANGES_ONLY.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * + * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The enum numeric value on the wire for egress to set. * @return This builder for chaining. @@ -2245,11 +2263,13 @@ public Builder setEgressValue(int value) { * * *
                  -     * Traffic VPC egress settings. If not provided, it defaults to
                  +     * Optional. Traffic VPC egress settings. If not provided, it defaults to
                        * PRIVATE_RANGES_ONLY.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * + * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The egress. */ @@ -2263,11 +2283,13 @@ public com.google.cloud.run.v2.VpcAccess.VpcEgress getEgress() { * * *
                  -     * Traffic VPC egress settings. If not provided, it defaults to
                  +     * Optional. Traffic VPC egress settings. If not provided, it defaults to
                        * PRIVATE_RANGES_ONLY.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * + * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The egress to set. * @return This builder for chaining. @@ -2285,11 +2307,13 @@ public Builder setEgress(com.google.cloud.run.v2.VpcAccess.VpcEgress value) { * * *
                  -     * Traffic VPC egress settings. If not provided, it defaults to
                  +     * Optional. Traffic VPC egress settings. If not provided, it defaults to
                        * PRIVATE_RANGES_ONLY.
                        * 
                  * - * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * + * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -2322,11 +2346,13 @@ private void ensureNetworkInterfacesIsMutable() { * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getNetworkInterfacesList() { @@ -2340,11 +2366,13 @@ private void ensureNetworkInterfacesIsMutable() { * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getNetworkInterfacesCount() { if (networkInterfacesBuilder_ == null) { @@ -2357,11 +2385,13 @@ public int getNetworkInterfacesCount() { * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.VpcAccess.NetworkInterface getNetworkInterfaces(int index) { if (networkInterfacesBuilder_ == null) { @@ -2374,11 +2404,13 @@ public com.google.cloud.run.v2.VpcAccess.NetworkInterface getNetworkInterfaces(i * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNetworkInterfaces( int index, com.google.cloud.run.v2.VpcAccess.NetworkInterface value) { @@ -2398,11 +2430,13 @@ public Builder setNetworkInterfaces( * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNetworkInterfaces( int index, com.google.cloud.run.v2.VpcAccess.NetworkInterface.Builder builderForValue) { @@ -2419,11 +2453,13 @@ public Builder setNetworkInterfaces( * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addNetworkInterfaces(com.google.cloud.run.v2.VpcAccess.NetworkInterface value) { if (networkInterfacesBuilder_ == null) { @@ -2442,11 +2478,13 @@ public Builder addNetworkInterfaces(com.google.cloud.run.v2.VpcAccess.NetworkInt * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addNetworkInterfaces( int index, com.google.cloud.run.v2.VpcAccess.NetworkInterface value) { @@ -2466,11 +2504,13 @@ public Builder addNetworkInterfaces( * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addNetworkInterfaces( com.google.cloud.run.v2.VpcAccess.NetworkInterface.Builder builderForValue) { @@ -2487,11 +2527,13 @@ public Builder addNetworkInterfaces( * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addNetworkInterfaces( int index, com.google.cloud.run.v2.VpcAccess.NetworkInterface.Builder builderForValue) { @@ -2508,11 +2550,13 @@ public Builder addNetworkInterfaces( * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllNetworkInterfaces( java.lang.Iterable values) { @@ -2529,11 +2573,13 @@ public Builder addAllNetworkInterfaces( * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearNetworkInterfaces() { if (networkInterfacesBuilder_ == null) { @@ -2549,11 +2595,13 @@ public Builder clearNetworkInterfaces() { * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeNetworkInterfaces(int index) { if (networkInterfacesBuilder_ == null) { @@ -2569,11 +2617,13 @@ public Builder removeNetworkInterfaces(int index) { * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.VpcAccess.NetworkInterface.Builder getNetworkInterfacesBuilder( int index) { @@ -2583,11 +2633,13 @@ public com.google.cloud.run.v2.VpcAccess.NetworkInterface.Builder getNetworkInte * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.VpcAccess.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index) { @@ -2601,11 +2653,13 @@ public com.google.cloud.run.v2.VpcAccess.NetworkInterface.Builder getNetworkInte * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getNetworkInterfacesOrBuilderList() { @@ -2619,11 +2673,13 @@ public com.google.cloud.run.v2.VpcAccess.NetworkInterface.Builder getNetworkInte * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.VpcAccess.NetworkInterface.Builder addNetworkInterfacesBuilder() { @@ -2634,11 +2690,13 @@ public com.google.cloud.run.v2.VpcAccess.NetworkInterface.Builder getNetworkInte * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.run.v2.VpcAccess.NetworkInterface.Builder addNetworkInterfacesBuilder( int index) { @@ -2650,11 +2708,13 @@ public com.google.cloud.run.v2.VpcAccess.NetworkInterface.Builder addNetworkInte * * *
                  -     * Direct VPC egress settings. Currently only single network interface is
                  -     * supported.
                  +     * Optional. Direct VPC egress settings. Currently only single network
                  +     * interface is supported.
                        * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getNetworkInterfacesBuilderList() { diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java index d535e15bd1be..59ad98e37266 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java @@ -61,11 +61,13 @@ public interface VpcAccessOrBuilder * * *
                  -   * Traffic VPC egress settings. If not provided, it defaults to
                  +   * Optional. Traffic VPC egress settings. If not provided, it defaults to
                      * PRIVATE_RANGES_ONLY.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * + * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for egress. */ @@ -74,11 +76,13 @@ public interface VpcAccessOrBuilder * * *
                  -   * Traffic VPC egress settings. If not provided, it defaults to
                  +   * Optional. Traffic VPC egress settings. If not provided, it defaults to
                      * PRIVATE_RANGES_ONLY.
                      * 
                  * - * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2; + * + * .google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The egress. */ @@ -88,44 +92,52 @@ public interface VpcAccessOrBuilder * * *
                  -   * Direct VPC egress settings. Currently only single network interface is
                  -   * supported.
                  +   * Optional. Direct VPC egress settings. Currently only single network
                  +   * interface is supported.
                      * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getNetworkInterfacesList(); /** * * *
                  -   * Direct VPC egress settings. Currently only single network interface is
                  -   * supported.
                  +   * Optional. Direct VPC egress settings. Currently only single network
                  +   * interface is supported.
                      * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.VpcAccess.NetworkInterface getNetworkInterfaces(int index); /** * * *
                  -   * Direct VPC egress settings. Currently only single network interface is
                  -   * supported.
                  +   * Optional. Direct VPC egress settings. Currently only single network
                  +   * interface is supported.
                      * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getNetworkInterfacesCount(); /** * * *
                  -   * Direct VPC egress settings. Currently only single network interface is
                  -   * supported.
                  +   * Optional. Direct VPC egress settings. Currently only single network
                  +   * interface is supported.
                      * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getNetworkInterfacesOrBuilderList(); @@ -133,11 +145,13 @@ public interface VpcAccessOrBuilder * * *
                  -   * Direct VPC egress settings. Currently only single network interface is
                  -   * supported.
                  +   * Optional. Direct VPC egress settings. Currently only single network
                  +   * interface is supported.
                      * 
                  * - * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3; + * + * repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.run.v2.VpcAccess.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder( int index); diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto index dd66b15f9bdc..64b78b095430 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.cloud.run.v2; +import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; @@ -200,13 +201,15 @@ message Condition { // it will populate one of these fields. // Successful conditions cannot have a reason. oneof reasons { - // A common (service-level) reason for this condition. - CommonReason reason = 6; + // Output only. A common (service-level) reason for this condition. + CommonReason reason = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // A reason for the revision condition. - RevisionReason revision_reason = 9; + // Output only. A reason for the revision condition. + RevisionReason revision_reason = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // A reason for the execution condition. - ExecutionReason execution_reason = 11; + // Output only. A reason for the execution condition. + ExecutionReason execution_reason = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; } } diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto index 6461789efa95..f7b961203d02 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto @@ -45,7 +45,8 @@ service Executions { option (google.api.method_signature) = "name"; } - // Lists Executions from a Job. + // Lists Executions from a Job. Results are sorted by creation time, + // descending. rpc ListExecutions(ListExecutionsRequest) returns (ListExecutionsResponse) { option (google.api.http) = { get: "/v2/{parent=projects/*/locations/*/jobs/*}/executions" diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto index e0661d3e87c4..4ead8a2e730d 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto @@ -23,7 +23,6 @@ import "google/api/launch_stage.proto"; import "google/api/resource.proto"; import "google/api/routing.proto"; import "google/cloud/run/v2/condition.proto"; -import "google/cloud/run/v2/execution.proto"; import "google/cloud/run/v2/execution_template.proto"; import "google/cloud/run/v2/k8s.min.proto"; import "google/cloud/run/v2/vendor_settings.proto"; @@ -77,7 +76,7 @@ service Jobs { option (google.api.method_signature) = "name"; } - // Lists Jobs. + // Lists Jobs. Results are sorted by creation time, descending. rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) { option (google.api.http) = { get: "/v2/{parent=projects/*/locations/*}/jobs" @@ -220,10 +219,10 @@ message UpdateJobRequest { // populated, without persisting the request or updating any resources. bool validate_only = 3; - // If set to true, and if the Job does not exist, it will create a new - // one. Caller must have both create and update permissions for this call if - // this is set to true. - bool allow_missing = 4; + // Optional. If set to true, and if the Job does not exist, it will create a + // new one. Caller must have both create and update permissions for this call + // if this is set to true. + bool allow_missing = 4 [(google.api.field_behavior) = OPTIONAL]; } // Request message for retrieving a list of Jobs. @@ -391,7 +390,8 @@ message Job { google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The deletion time. + // Output only. The deletion time. It is only populated as a response to a + // Delete request. google.protobuf.Timestamp delete_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -478,6 +478,18 @@ message Job { // Output only. Reserved for future use. bool satisfies_pzs = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + oneof create_execution { + // A unique string used as a suffix creating a new execution. The Job will + // become ready when the execution is successfully started. + // The sum of job name and token length must be fewer than 63 characters. + string start_execution_token = 26; + + // A unique string used as a suffix for creating a new execution. The Job + // will become ready when the execution is successfully completed. + // The sum of job name and token length must be fewer than 63 characters. + string run_execution_token = 27; + } + // Output only. A system-generated fingerprint for this version of the // resource. May be used to detect modification conflict during updates. string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -486,6 +498,27 @@ message Job { // Reference to an Execution. Use /Executions.GetExecution with the given name // to get full execution including the latest status. message ExecutionReference { + // Possible execution completion status. + enum CompletionStatus { + // The default value. This value is used if the state is omitted. + COMPLETION_STATUS_UNSPECIFIED = 0; + + // Job execution has succeeded. + EXECUTION_SUCCEEDED = 1; + + // Job execution has failed. + EXECUTION_FAILED = 2; + + // Job execution is running normally. + EXECUTION_RUNNING = 3; + + // Waiting for backing resources to be provisioned. + EXECUTION_PENDING = 4; + + // Job execution has been cancelled by the user. + EXECUTION_CANCELLED = 5; + } + // Name of the execution. string name = 1 [ (google.api.resource_reference) = { type: "run.googleapis.com/Execution" } @@ -496,4 +529,11 @@ message ExecutionReference { // Creation timestamp of the execution. google.protobuf.Timestamp completion_time = 3; + + // The deletion time of the execution. It is only + // populated as a response to a Delete request. + google.protobuf.Timestamp delete_time = 5; + + // Status for the execution completion. + CompletionStatus completion_status = 4; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto index 7d19482aeada..a2489a4788a6 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto @@ -338,70 +338,71 @@ message NFSVolumeSource { // Path that is exported by the NFS server. string path = 2; - // If true, mount the NFS volume as read only + // If true, the volume will be mounted as read only for all mounts. bool read_only = 3; } -// Represents a GCS Bucket mounted as a volume. +// Represents a volume backed by a Cloud Storage bucket using Cloud Storage +// FUSE. message GCSVolumeSource { - // GCS Bucket name + // Cloud Storage Bucket name. string bucket = 1; - // If true, mount the GCS bucket as read-only + // If true, the volume will be mounted as read only for all mounts. bool read_only = 2; } // Probe describes a health check to be performed against a container to // determine whether it is alive or ready to receive traffic. message Probe { - // Number of seconds after the container has started before the probe is - // initiated. - // Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe - // is 3600. Maximum value for startup probe is 240. - int32 initial_delay_seconds = 1; + // Optional. Number of seconds after the container has started before the + // probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum + // value for liveness probe is 3600. Maximum value for startup probe is 240. + int32 initial_delay_seconds = 1 [(google.api.field_behavior) = OPTIONAL]; - // Number of seconds after which the probe times out. + // Optional. Number of seconds after which the probe times out. // Defaults to 1 second. Minimum value is 1. Maximum value is 3600. // Must be smaller than period_seconds. - int32 timeout_seconds = 2; + int32 timeout_seconds = 2 [(google.api.field_behavior) = OPTIONAL]; - // How often (in seconds) to perform the probe. + // Optional. How often (in seconds) to perform the probe. // Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe // is 3600. Maximum value for startup probe is 240. // Must be greater or equal than timeout_seconds. - int32 period_seconds = 3; + int32 period_seconds = 3 [(google.api.field_behavior) = OPTIONAL]; - // Minimum consecutive failures for the probe to be considered failed after - // having succeeded. Defaults to 3. Minimum value is 1. - int32 failure_threshold = 4; + // Optional. Minimum consecutive failures for the probe to be considered + // failed after having succeeded. Defaults to 3. Minimum value is 1. + int32 failure_threshold = 4 [(google.api.field_behavior) = OPTIONAL]; oneof probe_type { - // HTTPGet specifies the http request to perform. + // Optional. HTTPGet specifies the http request to perform. // Exactly one of httpGet, tcpSocket, or grpc must be specified. - HTTPGetAction http_get = 5; + HTTPGetAction http_get = 5 [(google.api.field_behavior) = OPTIONAL]; - // TCPSocket specifies an action involving a TCP port. + // Optional. TCPSocket specifies an action involving a TCP port. // Exactly one of httpGet, tcpSocket, or grpc must be specified. - TCPSocketAction tcp_socket = 6; + TCPSocketAction tcp_socket = 6 [(google.api.field_behavior) = OPTIONAL]; - // GRPC specifies an action involving a gRPC port. + // Optional. GRPC specifies an action involving a gRPC port. // Exactly one of httpGet, tcpSocket, or grpc must be specified. - GRPCAction grpc = 7; + GRPCAction grpc = 7 [(google.api.field_behavior) = OPTIONAL]; } } // HTTPGetAction describes an action based on HTTP Get requests. message HTTPGetAction { - // Path to access on the HTTP server. Defaults to '/'. - string path = 1; + // Optional. Path to access on the HTTP server. Defaults to '/'. + string path = 1 [(google.api.field_behavior) = OPTIONAL]; - // Custom headers to set in the request. HTTP allows repeated headers. - repeated HTTPHeader http_headers = 4; + // Optional. Custom headers to set in the request. HTTP allows repeated + // headers. + repeated HTTPHeader http_headers = 4 [(google.api.field_behavior) = OPTIONAL]; - // Port number to access on the container. Must be in the range 1 to 65535. - // If not specified, defaults to the exposed port of the container, which is - // the value of container.ports[0].containerPort. - int32 port = 5; + // Optional. Port number to access on the container. Must be in the range 1 to + // 65535. If not specified, defaults to the exposed port of the container, + // which is the value of container.ports[0].containerPort. + int32 port = 5 [(google.api.field_behavior) = OPTIONAL]; } // HTTPHeader describes a custom header to be used in HTTP probes @@ -409,27 +410,28 @@ message HTTPHeader { // Required. The header field name string name = 1 [(google.api.field_behavior) = REQUIRED]; - // The header field value - string value = 2; + // Optional. The header field value + string value = 2 [(google.api.field_behavior) = OPTIONAL]; } // TCPSocketAction describes an action based on opening a socket message TCPSocketAction { - // Port number to access on the container. Must be in the range 1 to 65535. - // If not specified, defaults to the exposed port of the container, which is - // the value of container.ports[0].containerPort. - int32 port = 1; + // Optional. Port number to access on the container. Must be in the range 1 to + // 65535. If not specified, defaults to the exposed port of the container, + // which is the value of container.ports[0].containerPort. + int32 port = 1 [(google.api.field_behavior) = OPTIONAL]; } // GRPCAction describes an action involving a GRPC port. message GRPCAction { - // Port number of the gRPC service. Number must be in the range 1 to 65535. - // If not specified, defaults to the exposed port of the container, which is - // the value of container.ports[0].containerPort. - int32 port = 1; - - // Service is the name of the service to place in the gRPC HealthCheckRequest - // (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If - // this is not specified, the default behavior is defined by gRPC. - string service = 2; + // Optional. Port number of the gRPC service. Number must be in the range 1 to + // 65535. If not specified, defaults to the exposed port of the container, + // which is the value of container.ports[0].containerPort. + int32 port = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Service is the name of the service to place in the gRPC + // HealthCheckRequest (see + // https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this + // is not specified, the default behavior is defined by gRPC. + string service = 2 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto index 90fc55678917..00b59aea7929 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto @@ -55,7 +55,8 @@ service Revisions { option (google.api.method_signature) = "name"; } - // Lists Revisions from a given Service, or from a given location. + // Lists Revisions from a given Service, or from a given location. Results + // are sorted by creation time, descending. rpc ListRevisions(ListRevisionsRequest) returns (ListRevisionsResponse) { option (google.api.http) = { get: "/v2/{parent=projects/*/locations/*/services/*}/revisions" diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto index 126b26ac2746..a06786314d3b 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto @@ -30,17 +30,17 @@ option java_package = "com.google.cloud.run.v2"; // RevisionTemplate describes the data a revision should have when created from // a template. message RevisionTemplate { - // The unique name for the revision. If this field is omitted, it will be - // automatically generated based on the Service name. + // Optional. The unique name for the revision. If this field is omitted, it + // will be automatically generated based on the Service name. string revision = 1 [ + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "run.googleapis.com/Revision" } ]; - // Unstructured key value map that can be used to organize and categorize - // objects. - // User-provided labels are shared with Google's billing system, so they can - // be used to filter, or break down billing charges by team, component, - // environment, state, etc. For more information, visit + // Optional. Unstructured key value map that can be used to organize and + // categorize objects. User-provided labels are shared with Google's billing + // system, so they can be used to filter, or break down billing charges by + // team, component, environment, state, etc. For more information, visit // https://cloud.google.com/resource-manager/docs/creating-managing-labels or // https://cloud.google.com/run/docs/configuring/labels. // @@ -48,11 +48,11 @@ message RevisionTemplate { // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` // namespaces, and they will be rejected. All system labels in v1 now have a // corresponding field in v2 RevisionTemplate. - map labels = 2; + map labels = 2 [(google.api.field_behavior) = OPTIONAL]; - // Unstructured key value map that may be set by external tools to store and - // arbitrary metadata. They are not queryable and should be preserved - // when modifying objects. + // Optional. Unstructured key value map that may be set by external tools to + // store and arbitrary metadata. They are not queryable and should be + // preserved when modifying objects. // //

                  Cloud Run API v2 does not support annotations with `run.googleapis.com`, // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` @@ -61,33 +61,35 @@ message RevisionTemplate { // //

                  This field follows Kubernetes annotations' namespacing, limits, and // rules. - map annotations = 3; + map annotations = 3 [(google.api.field_behavior) = OPTIONAL]; - // Scaling settings for this Revision. - RevisionScaling scaling = 4; + // Optional. Scaling settings for this Revision. + RevisionScaling scaling = 4 [(google.api.field_behavior) = OPTIONAL]; - // VPC Access configuration to use for this Revision. For more information, - // visit https://cloud.google.com/run/docs/configuring/connecting-vpc. - VpcAccess vpc_access = 6; + // Optional. VPC Access configuration to use for this Revision. For more + // information, visit + // https://cloud.google.com/run/docs/configuring/connecting-vpc. + VpcAccess vpc_access = 6 [(google.api.field_behavior) = OPTIONAL]; - // Max allowed time for an instance to respond to a request. - google.protobuf.Duration timeout = 8; + // Optional. Max allowed time for an instance to respond to a request. + google.protobuf.Duration timeout = 8 [(google.api.field_behavior) = OPTIONAL]; - // Email address of the IAM service account associated with the revision of - // the service. The service account represents the identity of the running - // revision, and determines what permissions the revision has. If not + // Optional. Email address of the IAM service account associated with the + // revision of the service. The service account represents the identity of the + // running revision, and determines what permissions the revision has. If not // provided, the revision will use the project's default service account. - string service_account = 9; + string service_account = 9 [(google.api.field_behavior) = OPTIONAL]; // Holds the single container that defines the unit of execution for this // Revision. repeated Container containers = 10; - // A list of Volumes to make available to containers. - repeated Volume volumes = 11; + // Optional. A list of Volumes to make available to containers. + repeated Volume volumes = 11 [(google.api.field_behavior) = OPTIONAL]; - // The sandbox environment to host this Revision. - ExecutionEnvironment execution_environment = 13; + // Optional. The sandbox environment to host this Revision. + ExecutionEnvironment execution_environment = 13 + [(google.api.field_behavior) = OPTIONAL]; // A reference to a customer managed encryption key (CMEK) to use to encrypt // this container image. For more information, go to @@ -96,8 +98,10 @@ message RevisionTemplate { type: "cloudkms.googleapis.com/CryptoKey" }]; - // Sets the maximum number of requests that each serving instance can receive. - int32 max_instance_request_concurrency = 15; + // Optional. Sets the maximum number of requests that each serving instance + // can receive. + int32 max_instance_request_concurrency = 15 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Enable session affinity. bool session_affinity = 19 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto index be749d03923f..0f37f6593305 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto @@ -29,6 +29,7 @@ import "google/cloud/run/v2/vendor_settings.proto"; import "google/iam/v1/iam_policy.proto"; import "google/iam/v1/policy.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; @@ -76,7 +77,7 @@ service Services { option (google.api.method_signature) = "name"; } - // Lists Services. + // Lists Services. Results are sorted by creation time, descending. rpc ListServices(ListServicesRequest) returns (ListServicesResponse) { option (google.api.http) = { get: "/v2/{parent=projects/*/locations/*}/services" @@ -104,6 +105,7 @@ service Services { } }; option (google.api.method_signature) = "service"; + option (google.api.method_signature) = "service,update_mask"; option (google.longrunning.operation_info) = { response_type: "Service" metadata_type: "Service" @@ -189,6 +191,10 @@ message CreateServiceRequest { // Request message for updating a service. message UpdateServiceRequest { + // Optional. The list of fields to be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; + // Required. The Service to be updated. Service service = 1 [(google.api.field_behavior) = REQUIRED]; @@ -196,10 +202,10 @@ message UpdateServiceRequest { // populated, without persisting the request or updating any resources. bool validate_only = 3; - // If set to true, and if the Service does not exist, it will create a new - // one. The caller must have 'run.services.create' permissions if this is set - // to true and the Service does not exist. - bool allow_missing = 4; + // Optional. If set to true, and if the Service does not exist, it will create + // a new one. The caller must have 'run.services.create' permissions if this + // is set to true and the Service does not exist. + bool allow_missing = 4 [(google.api.field_behavior) = OPTIONAL]; } // Request message for retrieving a list of Services. @@ -335,7 +341,8 @@ message Service { google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The deletion time. + // Output only. The deletion time. It is only populated as a response to a + // Delete request. google.protobuf.Timestamp delete_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -356,12 +363,12 @@ message Service { // Arbitrary version identifier for the API client. string client_version = 14; - // Provides the ingress settings for this Service. On output, returns the - // currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no - // revision is active. - IngressTraffic ingress = 15; + // Optional. Provides the ingress settings for this Service. On output, + // returns the currently observed ingress settings, or + // INGRESS_TRAFFIC_UNSPECIFIED if no revision is active. + IngressTraffic ingress = 15 [(google.api.field_behavior) = OPTIONAL]; - // The launch stage as defined by [Google Cloud Platform + // Optional. The launch stage as defined by [Google Cloud Platform // Launch Stages](https://cloud.google.com/terms/launch-stages). // Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA // is assumed. @@ -371,18 +378,20 @@ message Service { //

                  // For example, if ALPHA is provided as input, but only BETA and GA-level // features are used, this field will be BETA on output. - google.api.LaunchStage launch_stage = 16; + google.api.LaunchStage launch_stage = 16 + [(google.api.field_behavior) = OPTIONAL]; - // Settings for the Binary Authorization feature. - BinaryAuthorization binary_authorization = 17; + // Optional. Settings for the Binary Authorization feature. + BinaryAuthorization binary_authorization = 17 + [(google.api.field_behavior) = OPTIONAL]; // Required. The template used to create revisions for this Service. RevisionTemplate template = 18 [(google.api.field_behavior) = REQUIRED]; - // Specifies how to distribute traffic over a collection of Revisions - // belonging to the Service. If traffic is empty or not provided, defaults to - // 100% traffic to the latest `Ready` Revision. - repeated TrafficTarget traffic = 19; + // Optional. Specifies how to distribute traffic over a collection of + // Revisions belonging to the Service. If traffic is empty or not provided, + // defaults to 100% traffic to the latest `Ready` Revision. + repeated TrafficTarget traffic = 19 [(google.api.field_behavior) = OPTIONAL]; // Optional. Specifies service-level scaling settings ServiceScaling scaling = 20 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto index 0ac500709e70..a0552d1ed116 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.cloud.run.v2; +import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/run/v2/k8s.min.proto"; import "google/cloud/run/v2/vendor_settings.proto"; @@ -33,8 +34,8 @@ message TaskTemplate { // task. repeated Container containers = 1; - // A list of Volumes to make available to containers. - repeated Volume volumes = 2; + // Optional. A list of Volumes to make available to containers. + repeated Volume volumes = 2 [(google.api.field_behavior) = OPTIONAL]; oneof retries { // Number of retries allowed per Task, before marking this Task failed. @@ -42,20 +43,21 @@ message TaskTemplate { int32 max_retries = 3; } - // Max allowed time duration the Task may be active before the system will - // actively try to mark it failed and kill associated containers. This applies - // per attempt of a task, meaning each retry can run for the full timeout. - // Defaults to 600 seconds. - google.protobuf.Duration timeout = 4; + // Optional. Max allowed time duration the Task may be active before the + // system will actively try to mark it failed and kill associated containers. + // This applies per attempt of a task, meaning each retry can run for the full + // timeout. Defaults to 600 seconds. + google.protobuf.Duration timeout = 4 [(google.api.field_behavior) = OPTIONAL]; - // Email address of the IAM service account associated with the Task of a - // Job. The service account represents the identity of the - // running task, and determines what permissions the task has. If - // not provided, the task will use the project's default service account. - string service_account = 5; + // Optional. Email address of the IAM service account associated with the Task + // of a Job. The service account represents the identity of the running task, + // and determines what permissions the task has. If not provided, the task + // will use the project's default service account. + string service_account = 5 [(google.api.field_behavior) = OPTIONAL]; - // The execution environment being used to host this Task. - ExecutionEnvironment execution_environment = 6; + // Optional. The execution environment being used to host this Task. + ExecutionEnvironment execution_environment = 6 + [(google.api.field_behavior) = OPTIONAL]; // A reference to a customer managed encryption key (CMEK) to use to encrypt // this container image. For more information, go to @@ -64,7 +66,8 @@ message TaskTemplate { type: "cloudkms.googleapis.com/CryptoKey" }]; - // VPC Access configuration to use for this Task. For more information, - // visit https://cloud.google.com/run/docs/configuring/connecting-vpc. - VpcAccess vpc_access = 8; + // Optional. VPC Access configuration to use for this Task. For more + // information, visit + // https://cloud.google.com/run/docs/configuring/connecting-vpc. + VpcAccess vpc_access = 8 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto index a069332387b8..7162623f6a77 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.cloud.run.v2; +import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; @@ -40,22 +41,22 @@ message VpcAccess { // Direct VPC egress settings. message NetworkInterface { - // The VPC network that the Cloud Run resource will be able to send traffic - // to. At least one of network or subnetwork must be specified. If both - // network and subnetwork are specified, the given VPC subnetwork must - // belong to the given VPC network. If network is not specified, it will be - // looked up from the subnetwork. - string network = 1; - - // The VPC subnetwork that the Cloud Run resource will get IPs from. At - // least one of network or subnetwork must be specified. If both + // Optional. The VPC network that the Cloud Run resource will be able to + // send traffic to. At least one of network or subnetwork must be specified. + // If both network and subnetwork are specified, the given VPC subnetwork + // must belong to the given VPC network. If network is not specified, it + // will be looked up from the subnetwork. + string network = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The VPC subnetwork that the Cloud Run resource will get IPs + // from. At least one of network or subnetwork must be specified. If both // network and subnetwork are specified, the given VPC subnetwork must // belong to the given VPC network. If subnetwork is not specified, the // subnetwork with the same name with the network will be used. - string subnetwork = 2; + string subnetwork = 2 [(google.api.field_behavior) = OPTIONAL]; - // Network tags applied to this Cloud Run resource. - repeated string tags = 3; + // Optional. Network tags applied to this Cloud Run resource. + repeated string tags = 3 [(google.api.field_behavior) = OPTIONAL]; } // VPC Access connector name. @@ -67,37 +68,53 @@ message VpcAccess { type: "vpcaccess.googleapis.com/Connector" }]; - // Traffic VPC egress settings. If not provided, it defaults to + // Optional. Traffic VPC egress settings. If not provided, it defaults to // PRIVATE_RANGES_ONLY. - VpcEgress egress = 2; + VpcEgress egress = 2 [(google.api.field_behavior) = OPTIONAL]; - // Direct VPC egress settings. Currently only single network interface is - // supported. - repeated NetworkInterface network_interfaces = 3; + // Optional. Direct VPC egress settings. Currently only single network + // interface is supported. + repeated NetworkInterface network_interfaces = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Settings for Binary Authorization feature. message BinaryAuthorization { oneof binauthz_method { - // If True, indicates to use the default project's binary authorization - // policy. If False, binary authorization will be disabled. - bool use_default = 1; + // Optional. If True, indicates to use the default project's binary + // authorization policy. If False, binary authorization will be disabled. + bool use_default = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The path to a binary authorization policy. + // Format: projects/{project}/platforms/cloudRun/{policy-name} + string policy = 3 [(google.api.field_behavior) = OPTIONAL]; } - // If present, indicates to use Breakglass using this justification. + // Optional. If present, indicates to use Breakglass using this justification. // If use_default is False, then it must be empty. // For more information on breakglass, see // https://cloud.google.com/binary-authorization/docs/using-breakglass - string breakglass_justification = 2; + string breakglass_justification = 2 [(google.api.field_behavior) = OPTIONAL]; } // Settings for revision-level scaling settings. message RevisionScaling { - // Minimum number of serving instances that this resource should have. - int32 min_instance_count = 1; + // Optional. Minimum number of serving instances that this resource should + // have. + int32 min_instance_count = 1 [(google.api.field_behavior) = OPTIONAL]; - // Maximum number of serving instances that this resource should have. - int32 max_instance_count = 2; + // Optional. Maximum number of serving instances that this resource should + // have. + int32 max_instance_count = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Scaling settings applied at the service level rather than +// at the revision level. +message ServiceScaling { + // Optional. total min instances for the service. This number of instances is + // divided among all revisions with specified traffic based on the percent + // of traffic they are receiving. (BETA) + int32 min_instance_count = 1 [(google.api.field_behavior) = OPTIONAL]; } // Allowed ingress traffic for the Container. @@ -138,12 +155,3 @@ enum EncryptionKeyRevocationAction { // Shuts down existing instances, and prevents creation of new ones. SHUTDOWN = 2; } - -// Scaling settings applied at the service level rather than -// at the revision level. -message ServiceScaling { - // total min instances for the service. This number of instances is - // divided among all revisions with specified traffic based on the percent - // of traffic they are receiving. (BETA) - int32 min_instance_count = 1; -} diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateService.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateService.java index f1b2826812b3..50e140330494 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateService.java +++ b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateService.java @@ -22,6 +22,7 @@ import com.google.cloud.run.v2.ServicesClient; import com.google.cloud.run.v2.UpdateServiceRequest; import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; public class AsyncUpdateService { @@ -38,6 +39,7 @@ public static void asyncUpdateService() throws Exception { try (ServicesClient servicesClient = ServicesClient.create()) { UpdateServiceRequest request = UpdateServiceRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) .setService(Service.newBuilder().build()) .setValidateOnly(true) .setAllowMissing(true) diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateServiceLRO.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateServiceLRO.java index 450da7c9d28c..4d0f6ac85663 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateServiceLRO.java +++ b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateServiceLRO.java @@ -21,6 +21,7 @@ import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServicesClient; import com.google.cloud.run.v2.UpdateServiceRequest; +import com.google.protobuf.FieldMask; public class AsyncUpdateServiceLRO { @@ -37,6 +38,7 @@ public static void asyncUpdateServiceLRO() throws Exception { try (ServicesClient servicesClient = ServicesClient.create()) { UpdateServiceRequest request = UpdateServiceRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) .setService(Service.newBuilder().build()) .setValidateOnly(true) .setAllowMissing(true) diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateService.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateService.java index 946cf62c4780..d9b78c8ae365 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateService.java +++ b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateService.java @@ -20,6 +20,7 @@ import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServicesClient; import com.google.cloud.run.v2.UpdateServiceRequest; +import com.google.protobuf.FieldMask; public class SyncUpdateService { @@ -36,6 +37,7 @@ public static void syncUpdateService() throws Exception { try (ServicesClient servicesClient = ServicesClient.create()) { UpdateServiceRequest request = UpdateServiceRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) .setService(Service.newBuilder().build()) .setValidateOnly(true) .setAllowMissing(true) diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateServiceServiceFieldmask.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateServiceServiceFieldmask.java new file mode 100644 index 000000000000..c5d1341e83c6 --- /dev/null +++ b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateServiceServiceFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Services_UpdateService_ServiceFieldmask_sync] +import com.google.cloud.run.v2.Service; +import com.google.cloud.run.v2.ServicesClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateServiceServiceFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateServiceServiceFieldmask(); + } + + public static void syncUpdateServiceServiceFieldmask() throws Exception { + // 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 (ServicesClient servicesClient = ServicesClient.create()) { + Service service = Service.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Service response = servicesClient.updateServiceAsync(service, updateMask).get(); + } + } +} +// [END run_v2_generated_Services_UpdateService_ServiceFieldmask_sync] diff --git a/java-scheduler/README.md b/java-scheduler/README.md index abeffd66a4c1..cffd69232c9b 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/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-scheduler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.46.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-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java index 805259ad7e72..2675d63c7ce5 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java +++ b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.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; @@ -311,6 +312,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudscheduler.googleapis.com:443"; } diff --git a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/CloudSchedulerStubSettings.java b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/CloudSchedulerStubSettings.java index d947163e92af..d42255cc3fb3 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/CloudSchedulerStubSettings.java +++ b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/CloudSchedulerStubSettings.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; @@ -312,6 +313,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudscheduler.googleapis.com:443"; } diff --git a/java-secretmanager/README.md b/java-secretmanager/README.md index 5c10f9640d51..806c459c11c5 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/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-secretmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.46.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-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java index ddc7cdcb87d4..2c05e7fd02df 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.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; @@ -370,6 +371,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "secretmanager.googleapis.com:443"; } diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/stub/SecretManagerServiceStubSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/stub/SecretManagerServiceStubSettings.java index 14f50d5bf309..ed7fad9e2a38 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/stub/SecretManagerServiceStubSettings.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/stub/SecretManagerServiceStubSettings.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; @@ -444,6 +445,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "secretmanager.googleapis.com:443"; } diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index 60730ebf88b0..4732e4bd2e7e 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/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 @@ -196,7 +196,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-securesourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.16.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-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java index 84b5e18dd604..272d100237e0 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.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; @@ -462,6 +463,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "securesourcemanager.googleapis.com:443"; } diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json index db79375ff53c..4dabb707f339 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json @@ -593,6 +593,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securesourcemanager.v1.Instance$PrivateConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securesourcemanager.v1.Instance$PrivateConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securesourcemanager.v1.Instance$State", "queryAllDeclaredConstructors": true, diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java index 1b1b5de3ac73..cc43fe6d521c 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java @@ -207,6 +207,7 @@ public void getInstanceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setPrivateConfig(Instance.PrivateConfig.newBuilder().build()) .setKmsKey("kmsKey-1127483058") .setHostConfig(Instance.HostConfig.newBuilder().build()) .build(); @@ -256,6 +257,7 @@ public void getInstanceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setPrivateConfig(Instance.PrivateConfig.newBuilder().build()) .setKmsKey("kmsKey-1127483058") .setHostConfig(Instance.HostConfig.newBuilder().build()) .build(); @@ -305,6 +307,7 @@ public void createInstanceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setPrivateConfig(Instance.PrivateConfig.newBuilder().build()) .setKmsKey("kmsKey-1127483058") .setHostConfig(Instance.HostConfig.newBuilder().build()) .build(); @@ -363,6 +366,7 @@ public void createInstanceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setPrivateConfig(Instance.PrivateConfig.newBuilder().build()) .setKmsKey("kmsKey-1127483058") .setHostConfig(Instance.HostConfig.newBuilder().build()) .build(); diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java index df5b1fa9be2d..83869a57777c 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java @@ -204,6 +204,7 @@ public void getInstanceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setPrivateConfig(Instance.PrivateConfig.newBuilder().build()) .setKmsKey("kmsKey-1127483058") .setHostConfig(Instance.HostConfig.newBuilder().build()) .build(); @@ -247,6 +248,7 @@ public void getInstanceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setPrivateConfig(Instance.PrivateConfig.newBuilder().build()) .setKmsKey("kmsKey-1127483058") .setHostConfig(Instance.HostConfig.newBuilder().build()) .build(); @@ -290,6 +292,7 @@ public void createInstanceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setPrivateConfig(Instance.PrivateConfig.newBuilder().build()) .setKmsKey("kmsKey-1127483058") .setHostConfig(Instance.HostConfig.newBuilder().build()) .build(); @@ -347,6 +350,7 @@ public void createInstanceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setPrivateConfig(Instance.PrivateConfig.newBuilder().build()) .setKmsKey("kmsKey-1127483058") .setHostConfig(Instance.HostConfig.newBuilder().build()) .build(); diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Instance.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Instance.java index daf26587dbd2..4e380517a5c3 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Instance.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Instance.java @@ -138,6 +138,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PAUSED = 4; */ PAUSED(4), + /** + * + * + *

                  +     * Instance is unknown, we are not sure if it's functioning.
                  +     * 
                  + * + * UNKNOWN = 6; + */ + UNKNOWN(6), UNRECOGNIZED(-1), ; @@ -191,6 +201,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PAUSED = 4; */ public static final int PAUSED_VALUE = 4; + /** + * + * + *
                  +     * Instance is unknown, we are not sure if it's functioning.
                  +     * 
                  + * + * UNKNOWN = 6; + */ + public static final int UNKNOWN_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -226,6 +246,8 @@ public static State forNumber(int value) { return DELETING; case 4: return PAUSED; + case 6: + return UNKNOWN; default: return null; } @@ -1549,19 +1571,1265 @@ public Builder setGitHttpBytes(com.google.protobuf.ByteString value) { * * *
                  -       * Output only. Git SSH hostname.
                  +       * Output only. Git SSH hostname.
                  +       * 
                  + * + * string git_ssh = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gitSsh. + */ + public java.lang.String getGitSsh() { + java.lang.Object ref = gitSsh_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitSsh_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +       * Output only. Git SSH hostname.
                  +       * 
                  + * + * string git_ssh = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gitSsh. + */ + public com.google.protobuf.ByteString getGitSshBytes() { + java.lang.Object ref = gitSsh_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitSsh_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +       * Output only. Git SSH hostname.
                  +       * 
                  + * + * string git_ssh = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The gitSsh to set. + * @return This builder for chaining. + */ + public Builder setGitSsh(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gitSsh_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Output only. Git SSH hostname.
                  +       * 
                  + * + * string git_ssh = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGitSsh() { + gitSsh_ = getDefaultInstance().getGitSsh(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                  +       * Output only. Git SSH hostname.
                  +       * 
                  + * + * string git_ssh = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for gitSsh to set. + * @return This builder for chaining. + */ + public Builder setGitSshBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitSsh_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.Instance.HostConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securesourcemanager.v1.Instance.HostConfig) + private static final com.google.cloud.securesourcemanager.v1.Instance.HostConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securesourcemanager.v1.Instance.HostConfig(); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.HostConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HostConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Instance.HostConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PrivateConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securesourcemanager.v1.Instance.PrivateConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +     * Required. Immutable. Indicate if it's private instance.
                  +     * 
                  + * + * + * bool is_private = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The isPrivate. + */ + boolean getIsPrivate(); + + /** + * + * + *
                  +     * Required. Immutable. CA pool resource, resource must in the format of
                  +     * `projects/{project}/locations/{location}/caPools/{ca_pool}`.
                  +     * 
                  + * + * + * string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The caPool. + */ + java.lang.String getCaPool(); + /** + * + * + *
                  +     * Required. Immutable. CA pool resource, resource must in the format of
                  +     * `projects/{project}/locations/{location}/caPools/{ca_pool}`.
                  +     * 
                  + * + * + * string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for caPool. + */ + com.google.protobuf.ByteString getCaPoolBytes(); + + /** + * + * + *
                  +     * Output only. Service Attachment for HTTP, resource is in the format of
                  +     * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                  +     * 
                  + * + * + * string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The httpServiceAttachment. + */ + java.lang.String getHttpServiceAttachment(); + /** + * + * + *
                  +     * Output only. Service Attachment for HTTP, resource is in the format of
                  +     * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                  +     * 
                  + * + * + * string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for httpServiceAttachment. + */ + com.google.protobuf.ByteString getHttpServiceAttachmentBytes(); + + /** + * + * + *
                  +     * Output only. Service Attachment for SSH, resource is in the format of
                  +     * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                  +     * 
                  + * + * + * string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The sshServiceAttachment. + */ + java.lang.String getSshServiceAttachment(); + /** + * + * + *
                  +     * Output only. Service Attachment for SSH, resource is in the format of
                  +     * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                  +     * 
                  + * + * + * string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sshServiceAttachment. + */ + com.google.protobuf.ByteString getSshServiceAttachmentBytes(); + } + /** + * + * + *
                  +   * PrivateConfig includes settings for private instance.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.securesourcemanager.v1.Instance.PrivateConfig} + */ + public static final class PrivateConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securesourcemanager.v1.Instance.PrivateConfig) + PrivateConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateConfig.newBuilder() to construct. + private PrivateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateConfig() { + caPool_ = ""; + httpServiceAttachment_ = ""; + sshServiceAttachment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.class, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.Builder.class); + } + + public static final int IS_PRIVATE_FIELD_NUMBER = 1; + private boolean isPrivate_ = false; + /** + * + * + *
                  +     * Required. Immutable. Indicate if it's private instance.
                  +     * 
                  + * + * + * bool is_private = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The isPrivate. + */ + @java.lang.Override + public boolean getIsPrivate() { + return isPrivate_; + } + + public static final int CA_POOL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object caPool_ = ""; + /** + * + * + *
                  +     * Required. Immutable. CA pool resource, resource must in the format of
                  +     * `projects/{project}/locations/{location}/caPools/{ca_pool}`.
                  +     * 
                  + * + * + * string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The caPool. + */ + @java.lang.Override + public java.lang.String getCaPool() { + java.lang.Object ref = caPool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caPool_ = s; + return s; + } + } + /** + * + * + *
                  +     * Required. Immutable. CA pool resource, resource must in the format of
                  +     * `projects/{project}/locations/{location}/caPools/{ca_pool}`.
                  +     * 
                  + * + * + * string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for caPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCaPoolBytes() { + java.lang.Object ref = caPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HTTP_SERVICE_ATTACHMENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object httpServiceAttachment_ = ""; + /** + * + * + *
                  +     * Output only. Service Attachment for HTTP, resource is in the format of
                  +     * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                  +     * 
                  + * + * + * string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The httpServiceAttachment. + */ + @java.lang.Override + public java.lang.String getHttpServiceAttachment() { + java.lang.Object ref = httpServiceAttachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + httpServiceAttachment_ = s; + return s; + } + } + /** + * + * + *
                  +     * Output only. Service Attachment for HTTP, resource is in the format of
                  +     * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                  +     * 
                  + * + * + * string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for httpServiceAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHttpServiceAttachmentBytes() { + java.lang.Object ref = httpServiceAttachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + httpServiceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SSH_SERVICE_ATTACHMENT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object sshServiceAttachment_ = ""; + /** + * + * + *
                  +     * Output only. Service Attachment for SSH, resource is in the format of
                  +     * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                  +     * 
                  + * + * + * string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The sshServiceAttachment. + */ + @java.lang.Override + public java.lang.String getSshServiceAttachment() { + java.lang.Object ref = sshServiceAttachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sshServiceAttachment_ = s; + return s; + } + } + /** + * + * + *
                  +     * Output only. Service Attachment for SSH, resource is in the format of
                  +     * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                  +     * 
                  + * + * + * string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sshServiceAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSshServiceAttachmentBytes() { + java.lang.Object ref = sshServiceAttachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sshServiceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (isPrivate_ != false) { + output.writeBool(1, isPrivate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caPool_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, caPool_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpServiceAttachment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, httpServiceAttachment_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sshServiceAttachment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sshServiceAttachment_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (isPrivate_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isPrivate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caPool_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, caPool_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpServiceAttachment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, httpServiceAttachment_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sshServiceAttachment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sshServiceAttachment_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig)) { + return super.equals(obj); + } + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig other = + (com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig) obj; + + if (getIsPrivate() != other.getIsPrivate()) return false; + if (!getCaPool().equals(other.getCaPool())) return false; + if (!getHttpServiceAttachment().equals(other.getHttpServiceAttachment())) return false; + if (!getSshServiceAttachment().equals(other.getSshServiceAttachment())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IS_PRIVATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPrivate()); + hash = (37 * hash) + CA_POOL_FIELD_NUMBER; + hash = (53 * hash) + getCaPool().hashCode(); + hash = (37 * hash) + HTTP_SERVICE_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getHttpServiceAttachment().hashCode(); + hash = (37 * hash) + SSH_SERVICE_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getSshServiceAttachment().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +     * PrivateConfig includes settings for private instance.
                  +     * 
                  + * + * Protobuf type {@code google.cloud.securesourcemanager.v1.Instance.PrivateConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securesourcemanager.v1.Instance.PrivateConfig) + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.class, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.Builder.class); + } + + // Construct using com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + isPrivate_ = false; + caPool_ = ""; + httpServiceAttachment_ = ""; + sshServiceAttachment_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig + getDefaultInstanceForType() { + return com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig build() { + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig buildPartial() { + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig result = + new com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isPrivate_ = isPrivate_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.caPool_ = caPool_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.httpServiceAttachment_ = httpServiceAttachment_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sshServiceAttachment_ = sshServiceAttachment_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig) { + return mergeFrom((com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig other) { + if (other + == com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.getDefaultInstance()) + return this; + if (other.getIsPrivate() != false) { + setIsPrivate(other.getIsPrivate()); + } + if (!other.getCaPool().isEmpty()) { + caPool_ = other.caPool_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getHttpServiceAttachment().isEmpty()) { + httpServiceAttachment_ = other.httpServiceAttachment_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getSshServiceAttachment().isEmpty()) { + sshServiceAttachment_ = other.sshServiceAttachment_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + isPrivate_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + caPool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + httpServiceAttachment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + sshServiceAttachment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean isPrivate_; + /** + * + * + *
                  +       * Required. Immutable. Indicate if it's private instance.
                  +       * 
                  + * + * + * bool is_private = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The isPrivate. + */ + @java.lang.Override + public boolean getIsPrivate() { + return isPrivate_; + } + /** + * + * + *
                  +       * Required. Immutable. Indicate if it's private instance.
                  +       * 
                  + * + * + * bool is_private = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The isPrivate to set. + * @return This builder for chaining. + */ + public Builder setIsPrivate(boolean value) { + + isPrivate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Required. Immutable. Indicate if it's private instance.
                  +       * 
                  + * + * + * bool is_private = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearIsPrivate() { + bitField0_ = (bitField0_ & ~0x00000001); + isPrivate_ = false; + onChanged(); + return this; + } + + private java.lang.Object caPool_ = ""; + /** + * + * + *
                  +       * Required. Immutable. CA pool resource, resource must in the format of
                  +       * `projects/{project}/locations/{location}/caPools/{ca_pool}`.
                  +       * 
                  + * + * + * string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The caPool. + */ + public java.lang.String getCaPool() { + java.lang.Object ref = caPool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +       * Required. Immutable. CA pool resource, resource must in the format of
                  +       * `projects/{project}/locations/{location}/caPools/{ca_pool}`.
                  +       * 
                  + * + * + * string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for caPool. + */ + public com.google.protobuf.ByteString getCaPoolBytes() { + java.lang.Object ref = caPool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +       * Required. Immutable. CA pool resource, resource must in the format of
                  +       * `projects/{project}/locations/{location}/caPools/{ca_pool}`.
                  +       * 
                  + * + * + * string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The caPool to set. + * @return This builder for chaining. + */ + public Builder setCaPool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + caPool_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Required. Immutable. CA pool resource, resource must in the format of
                  +       * `projects/{project}/locations/{location}/caPools/{ca_pool}`.
                  +       * 
                  + * + * + * string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCaPool() { + caPool_ = getDefaultInstance().getCaPool(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                  +       * Required. Immutable. CA pool resource, resource must in the format of
                  +       * `projects/{project}/locations/{location}/caPools/{ca_pool}`.
                  +       * 
                  + * + * + * string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for caPool to set. + * @return This builder for chaining. + */ + public Builder setCaPoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caPool_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object httpServiceAttachment_ = ""; + /** + * + * + *
                  +       * Output only. Service Attachment for HTTP, resource is in the format of
                  +       * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                  +       * 
                  + * + * + * string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The httpServiceAttachment. + */ + public java.lang.String getHttpServiceAttachment() { + java.lang.Object ref = httpServiceAttachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + httpServiceAttachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +       * Output only. Service Attachment for HTTP, resource is in the format of
                  +       * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                  +       * 
                  + * + * + * string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for httpServiceAttachment. + */ + public com.google.protobuf.ByteString getHttpServiceAttachmentBytes() { + java.lang.Object ref = httpServiceAttachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + httpServiceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +       * Output only. Service Attachment for HTTP, resource is in the format of
                  +       * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                  +       * 
                  + * + * + * string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The httpServiceAttachment to set. + * @return This builder for chaining. + */ + public Builder setHttpServiceAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + httpServiceAttachment_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Output only. Service Attachment for HTTP, resource is in the format of
                  +       * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                  +       * 
                  + * + * + * string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearHttpServiceAttachment() { + httpServiceAttachment_ = getDefaultInstance().getHttpServiceAttachment(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                  +       * Output only. Service Attachment for HTTP, resource is in the format of
                  +       * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                  +       * 
                  + * + * + * string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for httpServiceAttachment to set. + * @return This builder for chaining. + */ + public Builder setHttpServiceAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpServiceAttachment_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object sshServiceAttachment_ = ""; + /** + * + * + *
                  +       * Output only. Service Attachment for SSH, resource is in the format of
                  +       * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                          * 
                  * - * string git_ssh = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * - * @return The gitSsh. + * @return The sshServiceAttachment. */ - public java.lang.String getGitSsh() { - java.lang.Object ref = gitSsh_; + public java.lang.String getSshServiceAttachment() { + java.lang.Object ref = sshServiceAttachment_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - gitSsh_ = s; + sshServiceAttachment_ = s; return s; } else { return (java.lang.String) ref; @@ -1571,19 +2839,22 @@ public java.lang.String getGitSsh() { * * *
                  -       * Output only. Git SSH hostname.
                  +       * Output only. Service Attachment for SSH, resource is in the format of
                  +       * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                          * 
                  * - * string git_ssh = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for gitSsh. + * @return The bytes for sshServiceAttachment. */ - public com.google.protobuf.ByteString getGitSshBytes() { - java.lang.Object ref = gitSsh_; + public com.google.protobuf.ByteString getSshServiceAttachmentBytes() { + java.lang.Object ref = sshServiceAttachment_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gitSsh_ = b; + sshServiceAttachment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1593,19 +2864,22 @@ public com.google.protobuf.ByteString getGitSshBytes() { * * *
                  -       * Output only. Git SSH hostname.
                  +       * Output only. Service Attachment for SSH, resource is in the format of
                  +       * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                          * 
                  * - * string git_ssh = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * - * @param value The gitSsh to set. + * @param value The sshServiceAttachment to set. * @return This builder for chaining. */ - public Builder setGitSsh(java.lang.String value) { + public Builder setSshServiceAttachment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - gitSsh_ = value; + sshServiceAttachment_ = value; bitField0_ |= 0x00000008; onChanged(); return this; @@ -1614,15 +2888,18 @@ public Builder setGitSsh(java.lang.String value) { * * *
                  -       * Output only. Git SSH hostname.
                  +       * Output only. Service Attachment for SSH, resource is in the format of
                  +       * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                          * 
                  * - * string git_ssh = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ - public Builder clearGitSsh() { - gitSsh_ = getDefaultInstance().getGitSsh(); + public Builder clearSshServiceAttachment() { + sshServiceAttachment_ = getDefaultInstance().getSshServiceAttachment(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; @@ -1631,20 +2908,23 @@ public Builder clearGitSsh() { * * *
                  -       * Output only. Git SSH hostname.
                  +       * Output only. Service Attachment for SSH, resource is in the format of
                  +       * `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
                          * 
                  * - * string git_ssh = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * - * @param value The bytes for gitSsh to set. + * @param value The bytes for sshServiceAttachment to set. * @return This builder for chaining. */ - public Builder setGitSshBytes(com.google.protobuf.ByteString value) { + public Builder setSshServiceAttachmentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - gitSsh_ = value; + sshServiceAttachment_ = value; bitField0_ |= 0x00000008; onChanged(); return this; @@ -1662,25 +2942,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.Instance.HostConfig) + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.Instance.PrivateConfig) } - // @@protoc_insertion_point(class_scope:google.cloud.securesourcemanager.v1.Instance.HostConfig) - private static final com.google.cloud.securesourcemanager.v1.Instance.HostConfig + // @@protoc_insertion_point(class_scope:google.cloud.securesourcemanager.v1.Instance.PrivateConfig) + private static final com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.securesourcemanager.v1.Instance.HostConfig(); + DEFAULT_INSTANCE = new com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig(); } - public static com.google.cloud.securesourcemanager.v1.Instance.HostConfig getDefaultInstance() { + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public HostConfig parsePartialFrom( + public PrivateConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1700,17 +2981,18 @@ public HostConfig parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.securesourcemanager.v1.Instance.HostConfig getDefaultInstanceForType() { + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -1989,6 +3271,63 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int PRIVATE_CONFIG_FIELD_NUMBER = 13; + private com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig privateConfig_; + /** + * + * + *
                  +   * Optional. Private settings for private instance.
                  +   * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the privateConfig field is set. + */ + @java.lang.Override + public boolean hasPrivateConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                  +   * Optional. Private settings for private instance.
                  +   * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateConfig. + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig getPrivateConfig() { + return privateConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.getDefaultInstance() + : privateConfig_; + } + /** + * + * + *
                  +   * Optional. Private settings for private instance.
                  +   * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfigOrBuilder + getPrivateConfigOrBuilder() { + return privateConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.getDefaultInstance() + : privateConfig_; + } + public static final int STATE_FIELD_NUMBER = 5; private int state_ = 0; /** @@ -2147,7 +3486,7 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { */ @java.lang.Override public boolean hasHostConfig() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2216,7 +3555,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.securesourcemanager.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(9, getHostConfig()); } if (stateNote_ @@ -2227,6 +3566,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, kmsKey_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(13, getPrivateConfig()); + } getUnknownFields().writeTo(output); } @@ -2259,7 +3601,7 @@ public int getSerializedSize() { != com.google.cloud.securesourcemanager.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getHostConfig()); } if (stateNote_ @@ -2270,6 +3612,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, kmsKey_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getPrivateConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2296,6 +3641,10 @@ public boolean equals(final java.lang.Object obj) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasPrivateConfig() != other.hasPrivateConfig()) return false; + if (hasPrivateConfig()) { + if (!getPrivateConfig().equals(other.getPrivateConfig())) return false; + } if (state_ != other.state_) return false; if (stateNote_ != other.stateNote_) return false; if (!getKmsKey().equals(other.getKmsKey())) return false; @@ -2328,6 +3677,10 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + if (hasPrivateConfig()) { + hash = (37 * hash) + PRIVATE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConfig().hashCode(); + } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + STATE_NOTE_FIELD_NUMBER; @@ -2502,6 +3855,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); + getPrivateConfigFieldBuilder(); getHostConfigFieldBuilder(); } } @@ -2522,6 +3876,11 @@ public Builder clear() { updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); + privateConfig_ = null; + if (privateConfigBuilder_ != null) { + privateConfigBuilder_.dispose(); + privateConfigBuilder_ = null; + } state_ = 0; stateNote_ = 0; kmsKey_ = ""; @@ -2583,17 +3942,22 @@ private void buildPartial0(com.google.cloud.securesourcemanager.v1.Instance resu result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.state_ = state_; + result.privateConfig_ = + privateConfigBuilder_ == null ? privateConfig_ : privateConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.stateNote_ = stateNote_; + result.state_ = state_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.kmsKey_ = kmsKey_; + result.stateNote_ = stateNote_; } if (((from_bitField0_ & 0x00000080) != 0)) { + result.kmsKey_ = kmsKey_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.hostConfig_ = hostConfigBuilder_ == null ? hostConfig_ : hostConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @@ -2657,6 +4021,9 @@ public Builder mergeFrom(com.google.cloud.securesourcemanager.v1.Instance other) } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000008; + if (other.hasPrivateConfig()) { + mergePrivateConfig(other.getPrivateConfig()); + } if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -2665,7 +4032,7 @@ public Builder mergeFrom(com.google.cloud.securesourcemanager.v1.Instance other) } if (!other.getKmsKey().isEmpty()) { kmsKey_ = other.kmsKey_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasHostConfig()) { @@ -2730,27 +4097,33 @@ public Builder mergeFrom( case 40: { state_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 40 case 74: { input.readMessage(getHostConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 74 case 80: { stateNote_ = input.readEnum(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 80 case 90: { kmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 90 + case 106: + { + input.readMessage(getPrivateConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3500,6 +4873,216 @@ public Builder putAllLabels(java.util.Map va return this; } + private com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig privateConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.Builder, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfigOrBuilder> + privateConfigBuilder_; + /** + * + * + *
                  +     * Optional. Private settings for private instance.
                  +     * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the privateConfig field is set. + */ + public boolean hasPrivateConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
                  +     * Optional. Private settings for private instance.
                  +     * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateConfig. + */ + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig getPrivateConfig() { + if (privateConfigBuilder_ == null) { + return privateConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.getDefaultInstance() + : privateConfig_; + } else { + return privateConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * Optional. Private settings for private instance.
                  +     * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrivateConfig( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig value) { + if (privateConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateConfig_ = value; + } else { + privateConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Private settings for private instance.
                  +     * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrivateConfig( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.Builder builderForValue) { + if (privateConfigBuilder_ == null) { + privateConfig_ = builderForValue.build(); + } else { + privateConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Private settings for private instance.
                  +     * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePrivateConfig( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig value) { + if (privateConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && privateConfig_ != null + && privateConfig_ + != com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig + .getDefaultInstance()) { + getPrivateConfigBuilder().mergeFrom(value); + } else { + privateConfig_ = value; + } + } else { + privateConfigBuilder_.mergeFrom(value); + } + if (privateConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Optional. Private settings for private instance.
                  +     * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPrivateConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + privateConfig_ = null; + if (privateConfigBuilder_ != null) { + privateConfigBuilder_.dispose(); + privateConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Private settings for private instance.
                  +     * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.Builder + getPrivateConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getPrivateConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * Optional. Private settings for private instance.
                  +     * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfigOrBuilder + getPrivateConfigOrBuilder() { + if (privateConfigBuilder_ != null) { + return privateConfigBuilder_.getMessageOrBuilder(); + } else { + return privateConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.getDefaultInstance() + : privateConfig_; + } + } + /** + * + * + *
                  +     * Optional. Private settings for private instance.
                  +     * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.Builder, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfigOrBuilder> + getPrivateConfigFieldBuilder() { + if (privateConfigBuilder_ == null) { + privateConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.Builder, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfigOrBuilder>( + getPrivateConfig(), getParentForChildren(), isClean()); + privateConfig_ = null; + } + return privateConfigBuilder_; + } + private int state_ = 0; /** * @@ -3534,7 +5117,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3577,7 +5160,7 @@ public Builder setState(com.google.cloud.securesourcemanager.v1.Instance.State v if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; state_ = value.getNumber(); onChanged(); return this; @@ -3596,7 +5179,7 @@ public Builder setState(com.google.cloud.securesourcemanager.v1.Instance.State v * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); state_ = 0; onChanged(); return this; @@ -3638,7 +5221,7 @@ public int getStateNoteValue() { */ public Builder setStateNoteValue(int value) { stateNote_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3683,7 +5266,7 @@ public Builder setStateNote(com.google.cloud.securesourcemanager.v1.Instance.Sta if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; stateNote_ = value.getNumber(); onChanged(); return this; @@ -3703,7 +5286,7 @@ public Builder setStateNote(com.google.cloud.securesourcemanager.v1.Instance.Sta * @return This builder for chaining. */ public Builder clearStateNote() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); stateNote_ = 0; onChanged(); return this; @@ -3780,7 +5363,7 @@ public Builder setKmsKey(java.lang.String value) { throw new NullPointerException(); } kmsKey_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3800,7 +5383,7 @@ public Builder setKmsKey(java.lang.String value) { */ public Builder clearKmsKey() { kmsKey_ = getDefaultInstance().getKmsKey(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3825,7 +5408,7 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kmsKey_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3850,7 +5433,7 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { * @return Whether the hostConfig field is set. */ public boolean hasHostConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -3895,7 +5478,7 @@ public Builder setHostConfig( } else { hostConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3917,7 +5500,7 @@ public Builder setHostConfig( } else { hostConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3935,7 +5518,7 @@ public Builder setHostConfig( public Builder mergeHostConfig( com.google.cloud.securesourcemanager.v1.Instance.HostConfig value) { if (hostConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && hostConfig_ != null && hostConfig_ != com.google.cloud.securesourcemanager.v1.Instance.HostConfig @@ -3948,7 +5531,7 @@ public Builder mergeHostConfig( hostConfigBuilder_.mergeFrom(value); } if (hostConfig_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -3965,7 +5548,7 @@ public Builder mergeHostConfig( * */ public Builder clearHostConfig() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); hostConfig_ = null; if (hostConfigBuilder_ != null) { hostConfigBuilder_.dispose(); @@ -3987,7 +5570,7 @@ public Builder clearHostConfig() { */ public com.google.cloud.securesourcemanager.v1.Instance.HostConfig.Builder getHostConfigBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getHostConfigFieldBuilder().getBuilder(); } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/InstanceOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/InstanceOrBuilder.java index 0593682178e2..262e3d654a0e 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/InstanceOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/InstanceOrBuilder.java @@ -205,6 +205,48 @@ java.lang.String getLabelsOrDefault( */ java.lang.String getLabelsOrThrow(java.lang.String key); + /** + * + * + *
                  +   * Optional. Private settings for private instance.
                  +   * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the privateConfig field is set. + */ + boolean hasPrivateConfig(); + /** + * + * + *
                  +   * Optional. Private settings for private instance.
                  +   * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateConfig. + */ + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig getPrivateConfig(); + /** + * + * + *
                  +   * Optional. Private settings for private instance.
                  +   * 
                  + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig private_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfigOrBuilder + getPrivateConfigOrBuilder(); + /** * * diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java index f31f9122f9aa..2ad7df59135b 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java @@ -4016,12 +4016,14 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
                  -   * Output only. The name of the instance in which the repository is hosted,
                  +   * Optional. The name of the instance in which the repository is hosted,
                      * formatted as
                      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                  +   * For data plane CreateRepository requests, this field is output only.
                  +   * For control plane CreateRepository requests, this field is used as input.
                      * 
                  * - * string instance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The instance. */ @@ -4041,12 +4043,14 @@ public java.lang.String getInstance() { * * *
                  -   * Output only. The name of the instance in which the repository is hosted,
                  +   * Optional. The name of the instance in which the repository is hosted,
                      * formatted as
                      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                  +   * For data plane CreateRepository requests, this field is output only.
                  +   * For control plane CreateRepository requests, this field is used as input.
                      * 
                  * - * string instance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for instance. */ @@ -5193,12 +5197,14 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
                  -     * Output only. The name of the instance in which the repository is hosted,
                  +     * Optional. The name of the instance in which the repository is hosted,
                        * formatted as
                        * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                  +     * For data plane CreateRepository requests, this field is output only.
                  +     * For control plane CreateRepository requests, this field is used as input.
                        * 
                  * - * string instance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The instance. */ @@ -5217,12 +5223,14 @@ public java.lang.String getInstance() { * * *
                  -     * Output only. The name of the instance in which the repository is hosted,
                  +     * Optional. The name of the instance in which the repository is hosted,
                        * formatted as
                        * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                  +     * For data plane CreateRepository requests, this field is output only.
                  +     * For control plane CreateRepository requests, this field is used as input.
                        * 
                  * - * string instance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for instance. */ @@ -5241,12 +5249,14 @@ public com.google.protobuf.ByteString getInstanceBytes() { * * *
                  -     * Output only. The name of the instance in which the repository is hosted,
                  +     * Optional. The name of the instance in which the repository is hosted,
                        * formatted as
                        * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                  +     * For data plane CreateRepository requests, this field is output only.
                  +     * For control plane CreateRepository requests, this field is used as input.
                        * 
                  * - * string instance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The instance to set. * @return This builder for chaining. @@ -5264,12 +5274,14 @@ public Builder setInstance(java.lang.String value) { * * *
                  -     * Output only. The name of the instance in which the repository is hosted,
                  +     * Optional. The name of the instance in which the repository is hosted,
                        * formatted as
                        * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                  +     * For data plane CreateRepository requests, this field is output only.
                  +     * For control plane CreateRepository requests, this field is used as input.
                        * 
                  * - * string instance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -5283,12 +5295,14 @@ public Builder clearInstance() { * * *
                  -     * Output only. The name of the instance in which the repository is hosted,
                  +     * Optional. The name of the instance in which the repository is hosted,
                        * formatted as
                        * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                  +     * For data plane CreateRepository requests, this field is output only.
                  +     * For control plane CreateRepository requests, this field is used as input.
                        * 
                  * - * string instance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for instance to set. * @return This builder for chaining. diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java index d7d5149a9f5b..077e513681da 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java @@ -84,12 +84,14 @@ public interface RepositoryOrBuilder * * *
                  -   * Output only. The name of the instance in which the repository is hosted,
                  +   * Optional. The name of the instance in which the repository is hosted,
                      * formatted as
                      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                  +   * For data plane CreateRepository requests, this field is output only.
                  +   * For control plane CreateRepository requests, this field is used as input.
                      * 
                  * - * string instance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The instance. */ @@ -98,12 +100,14 @@ public interface RepositoryOrBuilder * * *
                  -   * Output only. The name of the instance in which the repository is hosted,
                  +   * Optional. The name of the instance in which the repository is hosted,
                      * formatted as
                      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                  +   * For data plane CreateRepository requests, this field is output only.
                  +   * For control plane CreateRepository requests, this field is used as input.
                      * 
                  * - * string instance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for instance. */ diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java index 12c74be34f2e..e0f77f2b89a0 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securesourcemanager_v1_Instance_HostConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securesourcemanager_v1_Instance_HostConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_securesourcemanager_v1_Instance_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -114,165 +118,174 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "icy.proto\032\032google/iam/v1/policy.proto\032#g" + "oogle/longrunning/operations.proto\032\033goog" + "le/protobuf/empty.proto\032\037google/protobuf" - + "/timestamp.proto\"\273\007\n\010Instance\022\021\n\004name\030\001 " + + "/timestamp.proto\"\262\n\n\010Instance\022\021\n\004name\030\001 " + "\001(\tB\003\340A\001\0224\n\013create_time\030\002 \001(\0132\032.google.p" + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 " + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022N\n\006" + "labels\030\004 \003(\01329.google.cloud.securesource" - + "manager.v1.Instance.LabelsEntryB\003\340A\001\022G\n\005" - + "state\030\005 \001(\01623.google.cloud.securesourcem" - + "anager.v1.Instance.StateB\003\340A\003\022P\n\nstate_n" - + "ote\030\n \001(\01627.google.cloud.securesourceman" - + "ager.v1.Instance.StateNoteB\003\340A\003\022:\n\007kms_k" - + "ey\030\013 \001(\tB)\340A\005\372A#\n!cloudkms.googleapis.co" - + "m/CryptoKey\022R\n\013host_config\030\t \001(\01328.googl" - + "e.cloud.securesourcemanager.v1.Instance." - + "HostConfigB\003\340A\003\032^\n\nHostConfig\022\021\n\004html\030\001 " - + "\001(\tB\003\340A\003\022\020\n\003api\030\002 \001(\tB\003\340A\003\022\025\n\010git_http\030\003" - + " \001(\tB\003\340A\003\022\024\n\007git_ssh\030\004 \001(\tB\003\340A\003\032-\n\013Label" - + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"R" - + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATI" - + "NG\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003\022\n\n\006PAUSED" - + "\020\004\"_\n\tStateNote\022\032\n\026STATE_NOTE_UNSPECIFIE" - + "D\020\000\022\033\n\027PAUSED_CMEK_UNAVAILABLE\020\001\022\031\n\021INST" - + "ANCE_RESUMING\020\002\032\002\010\001:q\352An\n+securesourcema" - + "nager.googleapis.com/Instance\022\332A\006parent\202\323\344\223\002/\022" - + "-/v1/{parent=projects/*/locations/*}/ins" - + "tances\022\263\001\n\013GetInstance\0227.google.cloud.se" - + "curesourcemanager.v1.GetInstanceRequest\032" - + "-.google.cloud.securesourcemanager.v1.In" - + "stance\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=project" - + "s/*/locations/*/instances/*}\022\352\001\n\016CreateI" - + "nstance\022:.google.cloud.securesourcemanag" - + "er.v1.CreateInstanceRequest\032\035.google.lon" - + "grunning.Operation\"}\312A\035\n\010Instance\022\021Opera" - + "tionMetadata\332A\033parent,instance,instance_" - + "id\202\323\344\223\0029\"-/v1/{parent=projects/*/locatio" - + "ns/*}/instances:\010instance\022\326\001\n\016DeleteInst" - + "ance\022:.google.cloud.securesourcemanager." - + "v1.DeleteInstanceRequest\032\035.google.longru" - + "nning.Operation\"i\312A*\n\025google.protobuf.Em" - + "pty\022\021OperationMetadata\332A\004name\202\323\344\223\002/*-/v1" - + "/{name=projects/*/locations/*/instances/" - + "*}\022\322\001\n\020ListRepositories\022<.google.cloud.s" - + "ecuresourcemanager.v1.ListRepositoriesRe" - + "quest\032=.google.cloud.securesourcemanager" - + ".v1.ListRepositoriesResponse\"A\332A\006parent\202" - + "\323\344\223\0022\0220/v1/{parent=projects/*/locations/" - + "*}/repositories\022\274\001\n\rGetRepository\0229.goog" - + "le.cloud.securesourcemanager.v1.GetRepos" - + "itoryRequest\032/.google.cloud.securesource" - + "manager.v1.Repository\"?\332A\004name\202\323\344\223\0022\0220/v" - + "1/{name=projects/*/locations/*/repositor" - + "ies/*}\022\372\001\n\020CreateRepository\022<.google.clo" - + "ud.securesourcemanager.v1.CreateReposito" - + "ryRequest\032\035.google.longrunning.Operation" - + "\"\210\001\312A\037\n\nRepository\022\021OperationMetadata\332A\037" - + "parent,repository,repository_id\202\323\344\223\002>\"0/" - + "v1/{parent=projects/*/locations/*}/repos" - + "itories:\nrepository\022\335\001\n\020DeleteRepository" - + "\022<.google.cloud.securesourcemanager.v1.D" - + "eleteRepositoryRequest\032\035.google.longrunn" - + "ing.Operation\"l\312A*\n\025google.protobuf.Empt" - + "y\022\021OperationMetadata\332A\004name\202\323\344\223\0022*0/v1/{" - + "name=projects/*/locations/*/repositories" - + "/*}\022\243\001\n\020GetIamPolicyRepo\022\".google.iam.v1" - + ".GetIamPolicyRequest\032\025.google.iam.v1.Pol" - + "icy\"T\332A\010resource\202\323\344\223\002C\022A/v1/{resource=pr" - + "ojects/*/locations/*/repositories/*}:get" - + "IamPolicy\022\246\001\n\020SetIamPolicyRepo\022\".google." - + "iam.v1.SetIamPolicyRequest\032\025.google.iam." - + "v1.Policy\"W\332A\010resource\202\323\344\223\002F\"A/v1/{resou" - + "rce=projects/*/locations/*/repositories/" - + "*}:setIamPolicy:\001*\022\314\001\n\026TestIamPermission" - + "sRepo\022(.google.iam.v1.TestIamPermissions" - + "Request\032).google.iam.v1.TestIamPermissio" - + "nsResponse\"]\332A\010resource\202\323\344\223\002L\"G/v1/{reso" - + "urce=projects/*/locations/*/repositories" - + "/*}:testIamPermissions:\001*\032V\312A\"securesour" - + "cemanager.googleapis.com\322A.https://www.g" - + "oogleapis.com/auth/cloud-platformB\351\004\n\'co" - + "m.google.cloud.securesourcemanager.v1B\030S" - + "ecureSourceManagerProtoP\001ZYcloud.google." - + "com/go/securesourcemanager/apiv1/secures" - + "ourcemanagerpb;securesourcemanagerpb\252\002#G" - + "oogle.Cloud.SecureSourceManager.V1\312\002#Goo" - + "gle\\Cloud\\SecureSourceManager\\V1\352\002&Googl" - + "e::Cloud::SecureSourceManager::V1\352Ax\n!cl" - + "oudkms.googleapis.com/CryptoKey\022Sproject" - + "s/{project}/locations/{location}/keyRing" - + "s/{key_ring}/cryptoKeys/{crypto_key}\352A\\\n" - + "\037privateca.googleapis.com/CaPool\0229projec" - + "ts/{project}/locations/{location}/caPool" - + "s/{ca_pool}\352Aw\n(compute.googleapis.com/S" - + "erviceAttachment\022Kprojects/{project}/reg" - + "ions/{region}/serviceAttachments/{servic" - + "e_attachment}b\006proto3" + + "manager.v1.Instance.LabelsEntryB\003\340A\001\022X\n\016" + + "private_config\030\r \001(\0132;.google.cloud.secu" + + "resourcemanager.v1.Instance.PrivateConfi" + + "gB\003\340A\001\022G\n\005state\030\005 \001(\01623.google.cloud.sec" + + "uresourcemanager.v1.Instance.StateB\003\340A\003\022" + + "P\n\nstate_note\030\n \001(\01627.google.cloud.secur" + + "esourcemanager.v1.Instance.StateNoteB\003\340A" + + "\003\022:\n\007kms_key\030\013 \001(\tB)\340A\005\372A#\n!cloudkms.goo" + + "gleapis.com/CryptoKey\022R\n\013host_config\030\t \001" + + "(\01328.google.cloud.securesourcemanager.v1" + + ".Instance.HostConfigB\003\340A\003\032^\n\nHostConfig\022" + + "\021\n\004html\030\001 \001(\tB\003\340A\003\022\020\n\003api\030\002 \001(\tB\003\340A\003\022\025\n\010" + + "git_http\030\003 \001(\tB\003\340A\003\022\024\n\007git_ssh\030\004 \001(\tB\003\340A" + + "\003\032\215\002\n\rPrivateConfig\022\032\n\nis_private\030\001 \001(\010B" + + "\006\340A\005\340A\002\022;\n\007ca_pool\030\002 \001(\tB*\340A\005\340A\002\372A!\n\037pri" + + "vateca.googleapis.com/CaPool\022Q\n\027http_ser" + + "vice_attachment\030\003 \001(\tB0\340A\003\372A*\n(compute.g" + + "oogleapis.com/ServiceAttachment\022P\n\026ssh_s" + + "ervice_attachment\030\004 \001(\tB0\340A\003\372A*\n(compute" + + ".googleapis.com/ServiceAttachment\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"_\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREA" + + "TING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003\022\n\n\006PAUS" + + "ED\020\004\022\013\n\007UNKNOWN\020\006\"_\n\tStateNote\022\032\n\026STATE_" + + "NOTE_UNSPECIFIED\020\000\022\033\n\027PAUSED_CMEK_UNAVAI" + + "LABLE\020\001\022\031\n\021INSTANCE_RESUMING\020\002\032\002\010\001:q\352An\n" + + "+securesourcemanager.googleapis.com/Inst" + + "ance\022\332" + + "A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/l" + + "ocations/*}/instances\022\263\001\n\013GetInstance\0227." + + "google.cloud.securesourcemanager.v1.GetI" + + "nstanceRequest\032-.google.cloud.securesour" + + "cemanager.v1.Instance\"<\332A\004name\202\323\344\223\002/\022-/v" + + "1/{name=projects/*/locations/*/instances" + + "/*}\022\352\001\n\016CreateInstance\022:.google.cloud.se" + + "curesourcemanager.v1.CreateInstanceReque" + + "st\032\035.google.longrunning.Operation\"}\312A\035\n\010" + + "Instance\022\021OperationMetadata\332A\033parent,ins" + + "tance,instance_id\202\323\344\223\0029\"-/v1/{parent=pro" + + "jects/*/locations/*}/instances:\010instance" + + "\022\326\001\n\016DeleteInstance\022:.google.cloud.secur" + + "esourcemanager.v1.DeleteInstanceRequest\032" + + "\035.google.longrunning.Operation\"i\312A*\n\025goo" + + "gle.protobuf.Empty\022\021OperationMetadata\332A\004" + + "name\202\323\344\223\002/*-/v1/{name=projects/*/locatio" + + "ns/*/instances/*}\022\322\001\n\020ListRepositories\022<" + + ".google.cloud.securesourcemanager.v1.Lis" + + "tRepositoriesRequest\032=.google.cloud.secu" + + "resourcemanager.v1.ListRepositoriesRespo" + + "nse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=projec" + + "ts/*/locations/*}/repositories\022\274\001\n\rGetRe" + + "pository\0229.google.cloud.securesourcemana" + + "ger.v1.GetRepositoryRequest\032/.google.clo" + + "ud.securesourcemanager.v1.Repository\"?\332A" + + "\004name\202\323\344\223\0022\0220/v1/{name=projects/*/locati" + + "ons/*/repositories/*}\022\372\001\n\020CreateReposito" + + "ry\022<.google.cloud.securesourcemanager.v1" + + ".CreateRepositoryRequest\032\035.google.longru" + + "nning.Operation\"\210\001\312A\037\n\nRepository\022\021Opera" + + "tionMetadata\332A\037parent,repository,reposit" + + "ory_id\202\323\344\223\002>\"0/v1/{parent=projects/*/loc" + + "ations/*}/repositories:\nrepository\022\335\001\n\020D" + + "eleteRepository\022<.google.cloud.securesou" + + "rcemanager.v1.DeleteRepositoryRequest\032\035." + + "google.longrunning.Operation\"l\312A*\n\025googl" + + "e.protobuf.Empty\022\021OperationMetadata\332A\004na" + + "me\202\323\344\223\0022*0/v1/{name=projects/*/locations" + + "/*/repositories/*}\022\243\001\n\020GetIamPolicyRepo\022" + + "\".google.iam.v1.GetIamPolicyRequest\032\025.go" + + "ogle.iam.v1.Policy\"T\332A\010resource\202\323\344\223\002C\022A/" + + "v1/{resource=projects/*/locations/*/repo" + + "sitories/*}:getIamPolicy\022\246\001\n\020SetIamPolic" + + "yRepo\022\".google.iam.v1.SetIamPolicyReques" + + "t\032\025.google.iam.v1.Policy\"W\332A\010resource\202\323\344" + + "\223\002F\"A/v1/{resource=projects/*/locations/" + + "*/repositories/*}:setIamPolicy:\001*\022\314\001\n\026Te" + + "stIamPermissionsRepo\022(.google.iam.v1.Tes" + + "tIamPermissionsRequest\032).google.iam.v1.T" + + "estIamPermissionsResponse\"]\332A\010resource\202\323" + + "\344\223\002L\"G/v1/{resource=projects/*/locations" + + "/*/repositories/*}:testIamPermissions:\001*" + + "\032V\312A\"securesourcemanager.googleapis.com\322" + + "A.https://www.googleapis.com/auth/cloud-" + + "platformB\351\004\n\'com.google.cloud.securesour" + + "cemanager.v1B\030SecureSourceManagerProtoP\001" + + "ZYcloud.google.com/go/securesourcemanage" + + "r/apiv1/securesourcemanagerpb;securesour" + + "cemanagerpb\252\002#Google.Cloud.SecureSourceM" + + "anager.V1\312\002#Google\\Cloud\\SecureSourceMan" + + "ager\\V1\352\002&Google::Cloud::SecureSourceMan" + + "ager::V1\352Ax\n!cloudkms.googleapis.com/Cry" + + "ptoKey\022Sprojects/{project}/locations/{lo" + + "cation}/keyRings/{key_ring}/cryptoKeys/{" + + "crypto_key}\352A\\\n\037privateca.googleapis.com" + + "/CaPool\0229projects/{project}/locations/{l" + + "ocation}/caPools/{ca_pool}\352Aw\n(compute.g" + + "oogleapis.com/ServiceAttachment\022Kproject" + + "s/{project}/regions/{region}/serviceAtta" + + "chments/{service_attachment}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -298,6 +311,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "Labels", + "PrivateConfig", "State", "StateNote", "KmsKey", @@ -313,10 +327,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Html", "Api", "GitHttp", "GitSsh", }); - internal_static_google_cloud_securesourcemanager_v1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_descriptor = internal_static_google_cloud_securesourcemanager_v1_Instance_descriptor .getNestedTypes() .get(1); + internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_descriptor, + new java.lang.String[] { + "IsPrivate", "CaPool", "HttpServiceAttachment", "SshServiceAttachment", + }); + internal_static_google_cloud_securesourcemanager_v1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_securesourcemanager_v1_Instance_descriptor + .getNestedTypes() + .get(2); internal_static_google_cloud_securesourcemanager_v1_Instance_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securesourcemanager_v1_Instance_LabelsEntry_descriptor, diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto index 15db185cfa97..61da4c2bc699 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto @@ -221,6 +221,9 @@ message Instance { // Instance is paused. PAUSED = 4; + + // Instance is unknown, we are not sure if it's functioning. + UNKNOWN = 6; } // Provides information about the current instance state. @@ -252,6 +255,43 @@ message Instance { string git_ssh = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } + // PrivateConfig includes settings for private instance. + message PrivateConfig { + // Required. Immutable. Indicate if it's private instance. + bool is_private = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED + ]; + + // Required. Immutable. CA pool resource, resource must in the format of + // `projects/{project}/locations/{location}/caPools/{ca_pool}`. + string ca_pool = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "privateca.googleapis.com/CaPool" + } + ]; + + // Output only. Service Attachment for HTTP, resource is in the format of + // `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`. + string http_service_attachment = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "compute.googleapis.com/ServiceAttachment" + } + ]; + + // Output only. Service Attachment for SSH, resource is in the format of + // `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`. + string ssh_service_attachment = 4 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "compute.googleapis.com/ServiceAttachment" + } + ]; + } + // Optional. A unique identifier for an instance. The name should be of the // format: // `projects/{project_number}/locations/{location_id}/instances/{instance_id}` @@ -277,6 +317,9 @@ message Instance { // Optional. Labels as key value pairs. map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Private settings for private instance. + PrivateConfig private_config = 13 [(google.api.field_behavior) = OPTIONAL]; + // Output only. Current state of the instance. State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -465,10 +508,12 @@ message Repository { // characters. string description = 2 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The name of the instance in which the repository is hosted, + // Optional. The name of the instance in which the repository is hosted, // formatted as // `projects/{project_number}/locations/{location_id}/instances/{instance_id}` - string instance = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + // For data plane CreateRepository requests, this field is output only. + // For control plane CreateRepository requests, this field is used as input. + string instance = 3 [(google.api.field_behavior) = OPTIONAL]; // Output only. Unique identifier of the repository. string uid = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-security-private-ca/README.md b/java-security-private-ca/README.md index 78d11914ef5d..3b32f6887382 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/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-security-private-ca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.48.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-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java index a2700a572bee..906ffe1ba514 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.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; @@ -989,6 +990,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "privateca.googleapis.com:443"; } diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java index 5cc6cbd9180e..525a75bc454a 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.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; @@ -693,6 +694,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "privateca.googleapis.com:443"; } diff --git a/java-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index 9d50f79dda51..b93414593ca7 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/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.cloud/google-cloud-securitycenter-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.49.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-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/SecurityCenterSettingsServiceStubSettings.java b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/SecurityCenterSettingsServiceStubSettings.java index 1e3e911072e7..f9bf1b15b798 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/SecurityCenterSettingsServiceStubSettings.java +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/SecurityCenterSettingsServiceStubSettings.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; @@ -351,6 +352,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "securitycenter.googleapis.com:443"; } diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index bf0781949984..e2329e17c41b 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/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-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java index a992ac7e311d..4f7e44c66b34 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java @@ -37,6 +37,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; @@ -2056,6 +2057,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "securitycenter.googleapis.com:443"; } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java index 705d9f587975..fd578ab2e17f 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.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; @@ -572,6 +573,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "securitycenter.googleapis.com:443"; } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java index ff1f71959a58..3eedf864e260 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.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; @@ -708,6 +709,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "securitycenter.googleapis.com:443"; } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/SecurityCenterStubSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/SecurityCenterStubSettings.java index 95738af80d60..6485953ee785 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/SecurityCenterStubSettings.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/SecurityCenterStubSettings.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; @@ -1070,6 +1071,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "securitycenter.googleapis.com:443"; } diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index 6bec4db0a131..12bf46ee0761 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/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-securitycentermanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.14.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-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java index afc8ea3f8f83..25ac4aaaea60 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java @@ -28,6 +28,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; @@ -1116,6 +1117,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "securitycentermanagement.googleapis.com:443"; } diff --git a/java-securityposture/README.md b/java-securityposture/README.md index a35456806aa1..a2fb1ccd45dc 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/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-securityposture.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.11.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-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/SecurityPostureStubSettings.java b/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/SecurityPostureStubSettings.java index 26a55826d7c5..adb6926ff6b3 100644 --- a/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/SecurityPostureStubSettings.java +++ b/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/SecurityPostureStubSettings.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; @@ -659,6 +660,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "securityposture.googleapis.com:443"; } diff --git a/java-service-control/README.md b/java-service-control/README.md index f5210984de87..e479c42a945f 100644 --- a/java-service-control/README.md +++ b/java-service-control/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-service-control.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.46.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-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/QuotaControllerStubSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/QuotaControllerStubSettings.java index 992ab0eaef96..6039cddd26b3 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/QuotaControllerStubSettings.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/QuotaControllerStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -127,6 +128,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "servicecontrol.googleapis.com:443"; } diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/ServiceControllerStubSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/ServiceControllerStubSettings.java index 6b432544e168..3dc1353d5388 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/ServiceControllerStubSettings.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/ServiceControllerStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -136,6 +137,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "servicecontrol.googleapis.com:443"; } diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/ServiceControllerStubSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/ServiceControllerStubSettings.java index fdc39ed657cc..fad3c3abf925 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/ServiceControllerStubSettings.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/ServiceControllerStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -136,6 +137,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "servicecontrol.googleapis.com:443"; } diff --git a/java-service-management/README.md b/java-service-management/README.md index 168ad0e7727b..27466df41514 100644 --- a/java-service-management/README.md +++ b/java-service-management/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-service-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.44.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-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/ServiceManagerStubSettings.java b/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/ServiceManagerStubSettings.java index 24adbba5d2ca..8441955881fc 100644 --- a/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/ServiceManagerStubSettings.java +++ b/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/ServiceManagerStubSettings.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; @@ -497,6 +498,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "servicemanagement.googleapis.com:443"; } diff --git a/java-service-usage/README.md b/java-service-usage/README.md index 8f22fe4393d4..adbd0410efe3 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/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-service-usage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.46.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-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStubSettings.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStubSettings.java index 9974042373e2..d86ef150bdaa 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStubSettings.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStubSettings.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; @@ -269,6 +270,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "serviceusage.googleapis.com:443"; } diff --git a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStubSettings.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStubSettings.java index 498ba43ba6ec..53fd02eefa1c 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStubSettings.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStubSettings.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; @@ -710,6 +711,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "serviceusage.googleapis.com:443"; } diff --git a/java-servicedirectory/README.md b/java-servicedirectory/README.md index 065347d012fb..6391091a61fa 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/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-servicedirectory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/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-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java index 589f48c7c2d4..47f12380e919 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.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; @@ -206,6 +207,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "servicedirectory.googleapis.com:443"; } diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java index 3744a0fbcc6a..3fd799c02cfa 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.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; @@ -508,6 +509,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "servicedirectory.googleapis.com:443"; } diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java index 1241f0fbfacd..a49700ce43c1 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.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; @@ -207,6 +208,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "servicedirectory.googleapis.com:443"; } diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java index 64d26f3ed75c..0f40b995b8c4 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.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; @@ -509,6 +510,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "servicedirectory.googleapis.com:443"; } diff --git a/java-servicehealth/README.md b/java-servicehealth/README.md index 324b5d8c4c27..6ccd0e97a115 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/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.cloud/google-cloud-servicehealth.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.13.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-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStubSettings.java b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStubSettings.java index 87e76d6c3651..289c56f99300 100644 --- a/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStubSettings.java +++ b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStubSettings.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; @@ -464,6 +465,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "servicehealth.googleapis.com:443"; } diff --git a/java-shell/README.md b/java-shell/README.md index 3bc8f1fec27c..e61b0140588e 100644 --- a/java-shell/README.md +++ b/java-shell/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-shell.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.45.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-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java index b72672d39f92..3b30258cbfbe 100644 --- a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java +++ b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -205,6 +206,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudshell.googleapis.com:443"; } diff --git a/java-shopping-css/README.md b/java-shopping-css/README.md index 873bef7be7a5..8c7429876c1b 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/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.shopping/google-shopping-css.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.14.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-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountLabelsServiceStubSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountLabelsServiceStubSettings.java index 62ab8b0f8f52..62dcebe8f31c 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountLabelsServiceStubSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountLabelsServiceStubSettings.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; @@ -224,6 +225,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "css.googleapis.com:443"; } diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountsServiceStubSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountsServiceStubSettings.java index 994a6942b759..ed76dcfe9b7f 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountsServiceStubSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountsServiceStubSettings.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; @@ -211,6 +212,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "css.googleapis.com:443"; } diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductInputsServiceStubSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductInputsServiceStubSettings.java index 2bdd4f256604..c0815c439609 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductInputsServiceStubSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductInputsServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -136,6 +137,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "css.googleapis.com:443"; } diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductsServiceStubSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductsServiceStubSettings.java index 74214d4c85a8..44f736eec6f1 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductsServiceStubSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductsServiceStubSettings.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; @@ -201,6 +202,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "css.googleapis.com:443"; } diff --git a/java-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index 0ea4b902ceeb..d2c3ed667533 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/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.shopping/google-shopping-merchant-accounts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/0.2.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-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountIssueServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountIssueServiceStubSettings.java index 3a9cdc29dae9..8bd2a42a95e4 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountIssueServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountIssueServiceStubSettings.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; @@ -199,6 +200,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountTaxServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountTaxServiceStubSettings.java index 0c0deaa88c70..7433a941c428 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountTaxServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountTaxServiceStubSettings.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; @@ -207,6 +208,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountsServiceStubSettings.java index e8eb806ec2d4..b5d324af50f7 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountsServiceStubSettings.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; @@ -289,6 +290,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessIdentityServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessIdentityServiceStubSettings.java index 70c9e680c92d..5454354128d9 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessIdentityServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessIdentityServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -136,6 +137,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessInfoServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessInfoServiceStubSettings.java index 169ff4a35e68..553be5106330 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessInfoServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessInfoServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -132,6 +133,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/EmailPreferencesServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/EmailPreferencesServiceStubSettings.java index b126a79531e1..104419d99a9a 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/EmailPreferencesServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/EmailPreferencesServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -136,6 +137,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/HomepageServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/HomepageServiceStubSettings.java index aa96bc3a68f3..9cf1444c3de2 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/HomepageServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/HomepageServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -144,6 +145,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/OnlineReturnPolicyServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/OnlineReturnPolicyServiceStubSettings.java index b5b6d27ff619..483ba3e97fe7 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/OnlineReturnPolicyServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/OnlineReturnPolicyServiceStubSettings.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; @@ -227,6 +228,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ProgramsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ProgramsServiceStubSettings.java index 7e991677ea72..115a80639925 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ProgramsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ProgramsServiceStubSettings.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; @@ -210,6 +211,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/RegionsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/RegionsServiceStubSettings.java index 42138a17ec28..bb5ffd2e7129 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/RegionsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/RegionsServiceStubSettings.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; @@ -217,6 +218,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ShippingSettingsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ShippingSettingsServiceStubSettings.java index a7612d7e7ce1..4ed71e83a8c7 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ShippingSettingsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ShippingSettingsServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -136,6 +137,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceAgreementStateServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceAgreementStateServiceStubSettings.java index 103744f53348..9115660d020e 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceAgreementStateServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceAgreementStateServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -143,6 +144,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceServiceStubSettings.java index 9843f61c964b..0cf0ace72e40 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -144,6 +145,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/UserServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/UserServiceStubSettings.java index f2e54d45c8db..be3294edf9c5 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/UserServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/UserServiceStubSettings.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; @@ -217,6 +218,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index 07e4b7fdd29f..508eb858a086 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/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.shopping/google-shopping-merchant-conversions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/0.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/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-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/stub/ConversionSourcesServiceStubSettings.java b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/stub/ConversionSourcesServiceStubSettings.java index 3862b81e53ab..8ae84489991a 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/stub/ConversionSourcesServiceStubSettings.java +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/stub/ConversionSourcesServiceStubSettings.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; @@ -254,6 +255,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index 2feb1568a524..5af63e5f9916 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/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.shopping/google-shopping-merchant-datasources.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/0.2.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-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/DataSourcesServiceStubSettings.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/DataSourcesServiceStubSettings.java index afcbea8dabdc..2f8e14b5fbe2 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/DataSourcesServiceStubSettings.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/DataSourcesServiceStubSettings.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; @@ -231,6 +232,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index b0f3cfd7c269..c1bf38a16539 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/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.shopping/google-shopping-merchant-inventories.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.22.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-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java index a92eaffb7f0a..9b0d230a1203 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.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; @@ -224,6 +225,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java index 48f846e36760..43317ac6134e 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.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; @@ -235,6 +236,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index 5bb59bbb8346..c978fb04b256 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/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.shopping/google-shopping-merchant-lfp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/0.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/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-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpInventoryServiceStubSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpInventoryServiceStubSettings.java index deac3f4f4d23..b1d1b5b96fde 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpInventoryServiceStubSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpInventoryServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -126,6 +127,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpSaleServiceStubSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpSaleServiceStubSettings.java index 304d17a1aec3..0cfbcef69f4c 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpSaleServiceStubSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpSaleServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -124,6 +125,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpStoreServiceStubSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpStoreServiceStubSettings.java index 4d785bf6b181..ef6e19b6c17d 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpStoreServiceStubSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpStoreServiceStubSettings.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; @@ -212,6 +213,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/resources/META-INF/native-image/com.google.shopping.merchant.lfp.v1beta/reflect-config.json b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/resources/META-INF/native-image/com.google.shopping.merchant.lfp.v1beta/reflect-config.json index e818472d4494..b6f56e32fabb 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/resources/META-INF/native-image/com.google.shopping.merchant.lfp.v1beta/reflect-config.json +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/resources/META-INF/native-image/com.google.shopping.merchant.lfp.v1beta/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index 43cf72aae2bc..4ee523fb285e 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/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.shopping/google-shopping-merchant-products.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/0.2.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-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductInputsServiceStubSettings.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductInputsServiceStubSettings.java index 8bdec69b009f..503c9ea8065b 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductInputsServiceStubSettings.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductInputsServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -135,6 +136,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductsServiceStubSettings.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductsServiceStubSettings.java index ebb034744347..0ca48d8dc51f 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductsServiceStubSettings.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductsServiceStubSettings.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; @@ -197,6 +198,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index b2cda0e535ae..63164828e610 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/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.shopping/google-shopping-merchant-promotions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/0.2.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-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/stub/PromotionsServiceStubSettings.java b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/stub/PromotionsServiceStubSettings.java index c27f103c79a0..22bf8e00d470 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/stub/PromotionsServiceStubSettings.java +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/stub/PromotionsServiceStubSettings.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; @@ -207,6 +208,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index 672559312aaf..16bf3cc7822a 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/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.shopping/google-shopping-merchant-quota.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/0.9.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-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/stub/QuotaServiceStubSettings.java b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/stub/QuotaServiceStubSettings.java index 90caea2381f6..c420c85b6381 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/stub/QuotaServiceStubSettings.java +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/stub/QuotaServiceStubSettings.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; @@ -194,6 +195,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index d6c99edcf2dd..9a912d5ed95f 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/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.shopping/google-shopping-merchant-reports.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.22.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-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/ReportServiceStubSettings.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/ReportServiceStubSettings.java index f9e14cf488a1..554057397f30 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/ReportServiceStubSettings.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/ReportServiceStubSettings.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; @@ -186,6 +187,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "merchantapi.googleapis.com:443"; } diff --git a/java-speech/README.md b/java-speech/README.md index efdfc5893420..aa79fec55acf 100644 --- a/java-speech/README.md +++ b/java-speech/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 @@ -231,7 +231,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-speech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.41.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-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java index f589bc17ee60..009c22869c02 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.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; @@ -319,6 +320,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "speech.googleapis.com:443"; } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java index 6f09560317c6..e0fc7757bb5d 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -158,6 +159,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "speech.googleapis.com:443"; } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java index cb328650161b..82f98d5f8b00 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.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; @@ -320,6 +321,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "speech.googleapis.com:443"; } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java index 5a0220f47ef4..201ee5dc6d56 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -159,6 +160,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "speech.googleapis.com:443"; } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java index c5cfdf335ec6..00ff8158212e 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java @@ -1934,7 +1934,7 @@ public final UnaryCallable recognizeCallabl * completely overrides and replaces the config in the recognizer for this recognition * request. * @param files Audio files with file metadata for ASR. The maximum number of files allowed to be - * specified is 5. + * specified is 15. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchRecognizeAsync( @@ -1996,7 +1996,7 @@ public final OperationFuture batchRec * completely overrides and replaces the config in the recognizer for this recognition * request. * @param files Audio files with file metadata for ASR. The maximum number of files allowed to be - * specified is 5. + * specified is 15. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchRecognizeAsync( diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java index 03855d8b2f1b..aeb60074759b 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.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; @@ -667,6 +668,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "speech.googleapis.com:443"; } diff --git a/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v2/reflect-config.json b/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v2/reflect-config.json index 8b4f5c83fc09..3994361db17f 100644 --- a/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v2/reflect-config.json +++ b/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v2/reflect-config.json @@ -116,6 +116,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, @@ -377,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, @@ -449,6 +494,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.speech.v2.AccessMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.speech.v2.AccessMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.speech.v2.AccessMetadata$ConstraintType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.speech.v2.AutoDetectDecodingConfig", "queryAllDeclaredConstructors": true, @@ -944,6 +1016,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.speech.v2.LanguageMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.speech.v2.LanguageMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.speech.v2.ListCustomClassesRequest", "queryAllDeclaredConstructors": true, @@ -1052,6 +1142,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.speech.v2.LocationsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.speech.v2.LocationsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.speech.v2.ModelFeature", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.speech.v2.ModelFeature$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.speech.v2.ModelFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.speech.v2.ModelFeatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.speech.v2.ModelMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.speech.v2.ModelMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.speech.v2.NativeOutputFileFormatConfig", "queryAllDeclaredConstructors": true, diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AccessMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AccessMetadata.java new file mode 100644 index 000000000000..461b80201f2f --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AccessMetadata.java @@ -0,0 +1,737 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/locations_metadata.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.speech.v2; + +/** + * + * + *
                  + * The access metadata for a particular region. This can be applied if the org
                  + * policy for the given project disallows a particular region.
                  + * 
                  + * + * Protobuf type {@code google.cloud.speech.v2.AccessMetadata} + */ +public final class AccessMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.AccessMetadata) + AccessMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessMetadata.newBuilder() to construct. + private AccessMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessMetadata() { + constraintType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_AccessMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_AccessMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v2.AccessMetadata.class, + com.google.cloud.speech.v2.AccessMetadata.Builder.class); + } + + /** + * + * + *
                  +   * Describes the different types of constraints that can be applied on a
                  +   * region.
                  +   * 
                  + * + * Protobuf enum {@code google.cloud.speech.v2.AccessMetadata.ConstraintType} + */ + public enum ConstraintType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                  +     * Unspecified constraint applied.
                  +     * 
                  + * + * CONSTRAINT_TYPE_UNSPECIFIED = 0; + */ + CONSTRAINT_TYPE_UNSPECIFIED(0), + /** + * + * + *
                  +     * The project's org policy disallows the given region.
                  +     * 
                  + * + * RESOURCE_LOCATIONS_ORG_POLICY_CREATE_CONSTRAINT = 1; + */ + RESOURCE_LOCATIONS_ORG_POLICY_CREATE_CONSTRAINT(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                  +     * Unspecified constraint applied.
                  +     * 
                  + * + * CONSTRAINT_TYPE_UNSPECIFIED = 0; + */ + public static final int CONSTRAINT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
                  +     * The project's org policy disallows the given region.
                  +     * 
                  + * + * RESOURCE_LOCATIONS_ORG_POLICY_CREATE_CONSTRAINT = 1; + */ + public static final int RESOURCE_LOCATIONS_ORG_POLICY_CREATE_CONSTRAINT_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConstraintType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ConstraintType forNumber(int value) { + switch (value) { + case 0: + return CONSTRAINT_TYPE_UNSPECIFIED; + case 1: + return RESOURCE_LOCATIONS_ORG_POLICY_CREATE_CONSTRAINT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConstraintType findValueByNumber(int number) { + return ConstraintType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.speech.v2.AccessMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final ConstraintType[] VALUES = values(); + + public static ConstraintType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ConstraintType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.speech.v2.AccessMetadata.ConstraintType) + } + + public static final int CONSTRAINT_TYPE_FIELD_NUMBER = 1; + private int constraintType_ = 0; + /** + * + * + *
                  +   * Describes the different types of constraints that are applied.
                  +   * 
                  + * + * .google.cloud.speech.v2.AccessMetadata.ConstraintType constraint_type = 1; + * + * @return The enum numeric value on the wire for constraintType. + */ + @java.lang.Override + public int getConstraintTypeValue() { + return constraintType_; + } + /** + * + * + *
                  +   * Describes the different types of constraints that are applied.
                  +   * 
                  + * + * .google.cloud.speech.v2.AccessMetadata.ConstraintType constraint_type = 1; + * + * @return The constraintType. + */ + @java.lang.Override + public com.google.cloud.speech.v2.AccessMetadata.ConstraintType getConstraintType() { + com.google.cloud.speech.v2.AccessMetadata.ConstraintType result = + com.google.cloud.speech.v2.AccessMetadata.ConstraintType.forNumber(constraintType_); + return result == null + ? com.google.cloud.speech.v2.AccessMetadata.ConstraintType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (constraintType_ + != com.google.cloud.speech.v2.AccessMetadata.ConstraintType.CONSTRAINT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, constraintType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (constraintType_ + != com.google.cloud.speech.v2.AccessMetadata.ConstraintType.CONSTRAINT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, constraintType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.speech.v2.AccessMetadata)) { + return super.equals(obj); + } + com.google.cloud.speech.v2.AccessMetadata other = + (com.google.cloud.speech.v2.AccessMetadata) obj; + + if (constraintType_ != other.constraintType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONSTRAINT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + constraintType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.speech.v2.AccessMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.AccessMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.AccessMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.AccessMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.AccessMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.AccessMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.AccessMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.AccessMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v2.AccessMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.AccessMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v2.AccessMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.AccessMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.speech.v2.AccessMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * The access metadata for a particular region. This can be applied if the org
                  +   * policy for the given project disallows a particular region.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.speech.v2.AccessMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.speech.v2.AccessMetadata) + com.google.cloud.speech.v2.AccessMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_AccessMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_AccessMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v2.AccessMetadata.class, + com.google.cloud.speech.v2.AccessMetadata.Builder.class); + } + + // Construct using com.google.cloud.speech.v2.AccessMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + constraintType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_AccessMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.speech.v2.AccessMetadata getDefaultInstanceForType() { + return com.google.cloud.speech.v2.AccessMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.speech.v2.AccessMetadata build() { + com.google.cloud.speech.v2.AccessMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.speech.v2.AccessMetadata buildPartial() { + com.google.cloud.speech.v2.AccessMetadata result = + new com.google.cloud.speech.v2.AccessMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.speech.v2.AccessMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.constraintType_ = constraintType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.speech.v2.AccessMetadata) { + return mergeFrom((com.google.cloud.speech.v2.AccessMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.speech.v2.AccessMetadata other) { + if (other == com.google.cloud.speech.v2.AccessMetadata.getDefaultInstance()) return this; + if (other.constraintType_ != 0) { + setConstraintTypeValue(other.getConstraintTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + constraintType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int constraintType_ = 0; + /** + * + * + *
                  +     * Describes the different types of constraints that are applied.
                  +     * 
                  + * + * .google.cloud.speech.v2.AccessMetadata.ConstraintType constraint_type = 1; + * + * @return The enum numeric value on the wire for constraintType. + */ + @java.lang.Override + public int getConstraintTypeValue() { + return constraintType_; + } + /** + * + * + *
                  +     * Describes the different types of constraints that are applied.
                  +     * 
                  + * + * .google.cloud.speech.v2.AccessMetadata.ConstraintType constraint_type = 1; + * + * @param value The enum numeric value on the wire for constraintType to set. + * @return This builder for chaining. + */ + public Builder setConstraintTypeValue(int value) { + constraintType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Describes the different types of constraints that are applied.
                  +     * 
                  + * + * .google.cloud.speech.v2.AccessMetadata.ConstraintType constraint_type = 1; + * + * @return The constraintType. + */ + @java.lang.Override + public com.google.cloud.speech.v2.AccessMetadata.ConstraintType getConstraintType() { + com.google.cloud.speech.v2.AccessMetadata.ConstraintType result = + com.google.cloud.speech.v2.AccessMetadata.ConstraintType.forNumber(constraintType_); + return result == null + ? com.google.cloud.speech.v2.AccessMetadata.ConstraintType.UNRECOGNIZED + : result; + } + /** + * + * + *
                  +     * Describes the different types of constraints that are applied.
                  +     * 
                  + * + * .google.cloud.speech.v2.AccessMetadata.ConstraintType constraint_type = 1; + * + * @param value The constraintType to set. + * @return This builder for chaining. + */ + public Builder setConstraintType( + com.google.cloud.speech.v2.AccessMetadata.ConstraintType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + constraintType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Describes the different types of constraints that are applied.
                  +     * 
                  + * + * .google.cloud.speech.v2.AccessMetadata.ConstraintType constraint_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearConstraintType() { + bitField0_ = (bitField0_ & ~0x00000001); + constraintType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.AccessMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.AccessMetadata) + private static final com.google.cloud.speech.v2.AccessMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.speech.v2.AccessMetadata(); + } + + public static com.google.cloud.speech.v2.AccessMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.speech.v2.AccessMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AccessMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AccessMetadataOrBuilder.java new file mode 100644 index 000000000000..344cd1589ce0 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AccessMetadataOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/locations_metadata.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.speech.v2; + +public interface AccessMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.AccessMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Describes the different types of constraints that are applied.
                  +   * 
                  + * + * .google.cloud.speech.v2.AccessMetadata.ConstraintType constraint_type = 1; + * + * @return The enum numeric value on the wire for constraintType. + */ + int getConstraintTypeValue(); + /** + * + * + *
                  +   * Describes the different types of constraints that are applied.
                  +   * 
                  + * + * .google.cloud.speech.v2.AccessMetadata.ConstraintType constraint_type = 1; + * + * @return The constraintType. + */ + com.google.cloud.speech.v2.AccessMetadata.ConstraintType getConstraintType(); +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java index 8eb119acf05c..cd1acf659b0f 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java @@ -44,7 +44,11 @@ * * * WEBM_OPUS: Opus audio frames in a WebM container. * - * * M4A: M4A audio format. + * * MP4_AAC: AAC audio frames in an MP4 container. + * + * * M4A_AAC: AAC audio frames in an M4A container. + * + * * MOV_AAC: AAC audio frames in an MOV container. * * * Protobuf type {@code google.cloud.speech.v2.AutoDetectDecodingConfig} @@ -257,7 +261,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * * WEBM_OPUS: Opus audio frames in a WebM container. * - * * M4A: M4A audio format. + * * MP4_AAC: AAC audio frames in an MP4 container. + * + * * M4A_AAC: AAC audio frames in an M4A container. + * + * * MOV_AAC: AAC audio frames in an MOV container. * * * Protobuf type {@code google.cloud.speech.v2.AutoDetectDecodingConfig} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java index 53af542f37c2..72c586dc9361 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java @@ -326,7 +326,7 @@ public com.google.cloud.speech.v2.InlineResultOrBuilder getInlineResultOrBuilder * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1418 + * google/cloud/speech/v2/cloud_speech.proto;l=1426 * @return The uri. */ @java.lang.Override @@ -352,7 +352,7 @@ public java.lang.String getUri() { * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1418 + * google/cloud/speech/v2/cloud_speech.proto;l=1426 * @return The bytes for uri. */ @java.lang.Override @@ -381,7 +381,7 @@ public com.google.protobuf.ByteString getUriBytes() { * .google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1421 + * google/cloud/speech/v2/cloud_speech.proto;l=1429 * @return Whether the transcript field is set. */ @java.lang.Override @@ -399,7 +399,7 @@ public boolean hasTranscript() { * .google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1421 + * google/cloud/speech/v2/cloud_speech.proto;l=1429 * @return The transcript. */ @java.lang.Override @@ -1766,7 +1766,7 @@ public com.google.cloud.speech.v2.InlineResultOrBuilder getInlineResultOrBuilder * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1418 + * google/cloud/speech/v2/cloud_speech.proto;l=1426 * @return The uri. */ @java.lang.Deprecated @@ -1791,7 +1791,7 @@ public java.lang.String getUri() { * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1418 + * google/cloud/speech/v2/cloud_speech.proto;l=1426 * @return The bytes for uri. */ @java.lang.Deprecated @@ -1816,7 +1816,7 @@ public com.google.protobuf.ByteString getUriBytes() { * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1418 + * google/cloud/speech/v2/cloud_speech.proto;l=1426 * @param value The uri to set. * @return This builder for chaining. */ @@ -1840,7 +1840,7 @@ public Builder setUri(java.lang.String value) { * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1418 + * google/cloud/speech/v2/cloud_speech.proto;l=1426 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1860,7 +1860,7 @@ public Builder clearUri() { * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1418 + * google/cloud/speech/v2/cloud_speech.proto;l=1426 * @param value The bytes for uri to set. * @return This builder for chaining. */ @@ -1893,7 +1893,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1421 + * google/cloud/speech/v2/cloud_speech.proto;l=1429 * @return Whether the transcript field is set. */ @java.lang.Deprecated @@ -1911,7 +1911,7 @@ public boolean hasTranscript() { * * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1421 + * google/cloud/speech/v2/cloud_speech.proto;l=1429 * @return The transcript. */ @java.lang.Deprecated diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java index 1ca3449720ac..d25adda0a335 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java @@ -175,7 +175,7 @@ public interface BatchRecognizeFileResultOrBuilder * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1418 + * google/cloud/speech/v2/cloud_speech.proto;l=1426 * @return The uri. */ @java.lang.Deprecated @@ -190,7 +190,7 @@ public interface BatchRecognizeFileResultOrBuilder * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1418 + * google/cloud/speech/v2/cloud_speech.proto;l=1426 * @return The bytes for uri. */ @java.lang.Deprecated @@ -206,7 +206,7 @@ public interface BatchRecognizeFileResultOrBuilder * .google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1421 + * google/cloud/speech/v2/cloud_speech.proto;l=1429 * @return Whether the transcript field is set. */ @java.lang.Deprecated @@ -221,7 +221,7 @@ public interface BatchRecognizeFileResultOrBuilder * .google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1421 + * google/cloud/speech/v2/cloud_speech.proto;l=1429 * @return The transcript. */ @java.lang.Deprecated diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java index 99776b1b5d65..dc02e22c3a49 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java @@ -427,7 +427,7 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() { * *
                      * Audio files with file metadata for ASR.
                  -   * The maximum number of files allowed to be specified is 5.
                  +   * The maximum number of files allowed to be specified is 15.
                      * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -441,7 +441,7 @@ public java.util.List get * *
                      * Audio files with file metadata for ASR.
                  -   * The maximum number of files allowed to be specified is 5.
                  +   * The maximum number of files allowed to be specified is 15.
                      * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -456,7 +456,7 @@ public java.util.List get * *
                      * Audio files with file metadata for ASR.
                  -   * The maximum number of files allowed to be specified is 5.
                  +   * The maximum number of files allowed to be specified is 15.
                      * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -470,7 +470,7 @@ public int getFilesCount() { * *
                      * Audio files with file metadata for ASR.
                  -   * The maximum number of files allowed to be specified is 5.
                  +   * The maximum number of files allowed to be specified is 15.
                      * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -484,7 +484,7 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata getFiles(int index) * *
                      * Audio files with file metadata for ASR.
                  -   * The maximum number of files allowed to be specified is 5.
                  +   * The maximum number of files allowed to be specified is 15.
                      * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -1823,7 +1823,7 @@ private void ensureFilesIsMutable() { * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -1840,7 +1840,7 @@ public java.util.List get * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -1857,7 +1857,7 @@ public int getFilesCount() { * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -1874,7 +1874,7 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata getFiles(int index) * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -1898,7 +1898,7 @@ public Builder setFiles( * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -1919,7 +1919,7 @@ public Builder setFiles( * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -1942,7 +1942,7 @@ public Builder addFiles(com.google.cloud.speech.v2.BatchRecognizeFileMetadata va * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -1966,7 +1966,7 @@ public Builder addFiles( * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -1987,7 +1987,7 @@ public Builder addFiles( * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -2008,7 +2008,7 @@ public Builder addFiles( * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -2030,7 +2030,7 @@ public Builder addAllFiles( * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -2050,7 +2050,7 @@ public Builder clearFiles() { * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -2070,7 +2070,7 @@ public Builder removeFiles(int index) { * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -2084,7 +2084,7 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder getFilesBui * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -2102,7 +2102,7 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOr * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -2120,7 +2120,7 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOr * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -2134,7 +2134,7 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder addFilesBui * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -2150,7 +2150,7 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder addFilesBui * *
                        * Audio files with file metadata for ASR.
                  -     * The maximum number of files allowed to be specified is 5.
                  +     * The maximum number of files allowed to be specified is 15.
                        * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java index 46478a7758f7..00b7a55afbf3 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java @@ -185,7 +185,7 @@ public interface BatchRecognizeRequestOrBuilder * *
                      * Audio files with file metadata for ASR.
                  -   * The maximum number of files allowed to be specified is 5.
                  +   * The maximum number of files allowed to be specified is 15.
                      * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -196,7 +196,7 @@ public interface BatchRecognizeRequestOrBuilder * *
                      * Audio files with file metadata for ASR.
                  -   * The maximum number of files allowed to be specified is 5.
                  +   * The maximum number of files allowed to be specified is 15.
                      * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -207,7 +207,7 @@ public interface BatchRecognizeRequestOrBuilder * *
                      * Audio files with file metadata for ASR.
                  -   * The maximum number of files allowed to be specified is 5.
                  +   * The maximum number of files allowed to be specified is 15.
                      * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -218,7 +218,7 @@ public interface BatchRecognizeRequestOrBuilder * *
                      * Audio files with file metadata for ASR.
                  -   * The maximum number of files allowed to be specified is 5.
                  +   * The maximum number of files allowed to be specified is 15.
                      * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; @@ -230,7 +230,7 @@ public interface BatchRecognizeRequestOrBuilder * *
                      * Audio files with file metadata for ASR.
                  -   * The maximum number of files allowed to be specified is 5.
                  +   * The maximum number of files allowed to be specified is 15.
                      * 
                  * * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java index fe643dcfe8ff..00e2877db7a9 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java @@ -332,516 +332,517 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n)google/cloud/speech/v2/cloud_speech.pr" + "oto\022\026google.cloud.speech.v2\032\034google/api/" + "annotations.proto\032\027google/api/client.pro" - + "to\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\032#google/longrunni" - + "ng/operations.proto\032\036google/protobuf/dur" - + "ation.proto\032 google/protobuf/field_mask." - + "proto\032\037google/protobuf/timestamp.proto\032\027" - + "google/rpc/status.proto\"\276\001\n\027CreateRecogn" + + "to\032\037google/api/field_behavior.proto\032\033goo" + + "gle/api/field_info.proto\032\031google/api/res" + + "ource.proto\032#google/longrunning/operatio" + + "ns.proto\032\036google/protobuf/duration.proto" + + "\032 google/protobuf/field_mask.proto\032\037goog" + + "le/protobuf/timestamp.proto\032\027google/rpc/" + + "status.proto\"\276\001\n\027CreateRecognizerRequest" + + "\022;\n\nrecognizer\030\001 \001(\0132\".google.cloud.spee" + + "ch.v2.RecognizerB\003\340A\002\022\025\n\rvalidate_only\030\002" + + " \001(\010\022\025\n\rrecognizer_id\030\003 \001(\t\0228\n\006parent\030\004 " + + "\001(\tB(\340A\002\372A\"\022 speech.googleapis.com/Recog" + + "nizer\"\347\014\n\021OperationMetadata\022/\n\013create_ti" + + "me\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n\013" + + "update_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stamp\022\020\n\010resource\030\003 \001(\t\022\016\n\006method\030\004 \001(\t\022" + + "<\n\014kms_key_name\030\006 \001(\tB&\372A#\n!cloudkms.goo" + + "gleapis.com/CryptoKey\022K\n\024kms_key_version" + + "_name\030\007 \001(\tB-\372A*\n(cloudkms.googleapis.co" + + "m/CryptoKeyVersion\022P\n\027batch_recognize_re" + + "quest\030\010 \001(\0132-.google.cloud.speech.v2.Bat" + + "chRecognizeRequestH\000\022T\n\031create_recognize" + + "r_request\030\t \001(\0132/.google.cloud.speech.v2" + + ".CreateRecognizerRequestH\000\022T\n\031update_rec" + + "ognizer_request\030\n \001(\0132/.google.cloud.spe" + + "ech.v2.UpdateRecognizerRequestH\000\022T\n\031dele" + + "te_recognizer_request\030\013 \001(\0132/.google.clo" + + "ud.speech.v2.DeleteRecognizerRequestH\000\022X" + + "\n\033undelete_recognizer_request\030\014 \001(\01321.go" + + "ogle.cloud.speech.v2.UndeleteRecognizerR" + + "equestH\000\022W\n\033create_custom_class_request\030" + + "\r \001(\01320.google.cloud.speech.v2.CreateCus" + + "tomClassRequestH\000\022W\n\033update_custom_class" + + "_request\030\016 \001(\01320.google.cloud.speech.v2." + + "UpdateCustomClassRequestH\000\022W\n\033delete_cus" + + "tom_class_request\030\017 \001(\01320.google.cloud.s" + + "peech.v2.DeleteCustomClassRequestH\000\022[\n\035u" + + "ndelete_custom_class_request\030\020 \001(\01322.goo" + + "gle.cloud.speech.v2.UndeleteCustomClassR" + + "equestH\000\022S\n\031create_phrase_set_request\030\021 " + + "\001(\0132..google.cloud.speech.v2.CreatePhras" + + "eSetRequestH\000\022S\n\031update_phrase_set_reque" + + "st\030\022 \001(\0132..google.cloud.speech.v2.Update" + + "PhraseSetRequestH\000\022S\n\031delete_phrase_set_" + + "request\030\023 \001(\0132..google.cloud.speech.v2.D" + + "eletePhraseSetRequestH\000\022W\n\033undelete_phra" + + "se_set_request\030\024 \001(\01320.google.cloud.spee" + + "ch.v2.UndeletePhraseSetRequestH\000\022P\n\025upda" + + "te_config_request\030\025 \001(\0132+.google.cloud.s" + + "peech.v2.UpdateConfigRequestB\002\030\001H\000\022\030\n\020pr" + + "ogress_percent\030\026 \001(\005\022R\n\030batch_recognize_" + + "metadata\030\027 \001(\0132..google.cloud.speech.v2." + + "BatchRecognizeMetadataH\001B\t\n\007requestB\n\n\010m" + + "etadata\"\220\001\n\026ListRecognizersRequest\0229\n\006pa" + + "rent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis" + + ".com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"k\n\027Li" + + "stRecognizersResponse\0227\n\013recognizers\030\001 \003" + + "(\0132\".google.cloud.speech.v2.Recognizer\022\027" + + "\n\017next_page_token\030\002 \001(\t\"N\n\024GetRecognizer" + + "Request\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n speech.go" + + "ogleapis.com/Recognizer\"\236\001\n\027UpdateRecogn" + "izerRequest\022;\n\nrecognizer\030\001 \001(\0132\".google" - + ".cloud.speech.v2.RecognizerB\003\340A\002\022\025\n\rvali" - + "date_only\030\002 \001(\010\022\025\n\rrecognizer_id\030\003 \001(\t\0228" - + "\n\006parent\030\004 \001(\tB(\340A\002\372A\"\022 speech.googleapi" - + "s.com/Recognizer\"\347\014\n\021OperationMetadata\022/" - + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022/\n\013update_time\030\002 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022\020\n\010resource\030\003 \001(\t\022\016\n\006me" - + "thod\030\004 \001(\t\022<\n\014kms_key_name\030\006 \001(\tB&\372A#\n!c" - + "loudkms.googleapis.com/CryptoKey\022K\n\024kms_" - + "key_version_name\030\007 \001(\tB-\372A*\n(cloudkms.go" - + "ogleapis.com/CryptoKeyVersion\022P\n\027batch_r" - + "ecognize_request\030\010 \001(\0132-.google.cloud.sp" - + "eech.v2.BatchRecognizeRequestH\000\022T\n\031creat" - + "e_recognizer_request\030\t \001(\0132/.google.clou" - + "d.speech.v2.CreateRecognizerRequestH\000\022T\n" - + "\031update_recognizer_request\030\n \001(\0132/.googl" - + "e.cloud.speech.v2.UpdateRecognizerReques" - + "tH\000\022T\n\031delete_recognizer_request\030\013 \001(\0132/" - + ".google.cloud.speech.v2.DeleteRecognizer" - + "RequestH\000\022X\n\033undelete_recognizer_request" - + "\030\014 \001(\01321.google.cloud.speech.v2.Undelete" - + "RecognizerRequestH\000\022W\n\033create_custom_cla" - + "ss_request\030\r \001(\01320.google.cloud.speech.v" - + "2.CreateCustomClassRequestH\000\022W\n\033update_c" - + "ustom_class_request\030\016 \001(\01320.google.cloud" - + ".speech.v2.UpdateCustomClassRequestH\000\022W\n" - + "\033delete_custom_class_request\030\017 \001(\01320.goo" - + "gle.cloud.speech.v2.DeleteCustomClassReq" - + "uestH\000\022[\n\035undelete_custom_class_request\030" - + "\020 \001(\01322.google.cloud.speech.v2.UndeleteC" - + "ustomClassRequestH\000\022S\n\031create_phrase_set" - + "_request\030\021 \001(\0132..google.cloud.speech.v2." - + "CreatePhraseSetRequestH\000\022S\n\031update_phras" - + "e_set_request\030\022 \001(\0132..google.cloud.speec" - + "h.v2.UpdatePhraseSetRequestH\000\022S\n\031delete_" - + "phrase_set_request\030\023 \001(\0132..google.cloud." - + "speech.v2.DeletePhraseSetRequestH\000\022W\n\033un" - + "delete_phrase_set_request\030\024 \001(\01320.google" - + ".cloud.speech.v2.UndeletePhraseSetReques" - + "tH\000\022P\n\025update_config_request\030\025 \001(\0132+.goo" - + "gle.cloud.speech.v2.UpdateConfigRequestB" - + "\002\030\001H\000\022\030\n\020progress_percent\030\026 \001(\005\022R\n\030batch" - + "_recognize_metadata\030\027 \001(\0132..google.cloud" - + ".speech.v2.BatchRecognizeMetadataH\001B\t\n\007r" - + "equestB\n\n\010metadata\"\220\001\n\026ListRecognizersRe" - + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" - + ".googleapis.com/Location\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030" - + "\004 \001(\010\"k\n\027ListRecognizersResponse\0227\n\013reco" - + "gnizers\030\001 \003(\0132\".google.cloud.speech.v2.R" - + "ecognizer\022\027\n\017next_page_token\030\002 \001(\t\"N\n\024Ge" - + "tRecognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"" - + "\n speech.googleapis.com/Recognizer\"\236\001\n\027U" - + "pdateRecognizerRequest\022;\n\nrecognizer\030\001 \001" - + "(\0132\".google.cloud.speech.v2.RecognizerB\003" - + "\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\215\001\n\027" - + "DeleteRecognizerRequest\0226\n\004name\030\001 \001(\tB(\340" - + "A\002\372A\"\n speech.googleapis.com/Recognizer\022" - + "\025\n\rvalidate_only\030\002 \001(\010\022\025\n\rallow_missing\030" - + "\004 \001(\010\022\014\n\004etag\030\003 \001(\t\"x\n\031UndeleteRecognize" - + "rRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n speech.g" - + "oogleapis.com/Recognizer\022\025\n\rvalidate_onl" - + "y\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"\305\007\n\nRecognizer\022\024\n\004" - + "name\030\001 \001(\tB\006\340A\003\340A\010\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014" - + "display_name\030\003 \001(\t\022\024\n\005model\030\004 \001(\tB\005\030\001\340A\001" - + "\022\035\n\016language_codes\030\021 \003(\tB\005\030\001\340A\001\022M\n\032defau" - + "lt_recognition_config\030\006 \001(\0132).google.clo" - + "ud.speech.v2.RecognitionConfig\022H\n\013annota" - + "tions\030\007 \003(\01323.google.cloud.speech.v2.Rec" - + "ognizer.AnnotationsEntry\022<\n\005state\030\010 \001(\0162" - + "(.google.cloud.speech.v2.Recognizer.Stat" - + "eB\003\340A\003\0224\n\013create_time\030\t \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\n \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013de" - + "lete_time\030\013 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013expire_time\030\016 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022\021\n\004etag\030\014 \001(\tB\003\340A" - + "\003\022\030\n\013reconciling\030\r \001(\010B\003\340A\003\022?\n\014kms_key_n" - + "ame\030\017 \001(\tB)\340A\003\372A#\n!cloudkms.googleapis.c" - + "om/CryptoKey\022N\n\024kms_key_version_name\030\020 \001" - + "(\tB0\340A\003\372A*\n(cloudkms.googleapis.com/Cryp" - + "toKeyVersion\0322\n\020AnnotationsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020" - + "\004:j\352Ag\n speech.googleapis.com/Recognizer" - + "\022@projects/{project}/locations/{location" - + "}/recognizers/{recognizer}R\001\001\"\032\n\030AutoDet" - + "ectDecodingConfig\"\371\001\n\026ExplicitDecodingCo" - + "nfig\022S\n\010encoding\030\001 \001(\0162<.google.cloud.sp" - + "eech.v2.ExplicitDecodingConfig.AudioEnco" - + "dingB\003\340A\002\022\031\n\021sample_rate_hertz\030\002 \001(\005\022\033\n\023" - + "audio_channel_count\030\003 \001(\005\"R\n\rAudioEncodi" - + "ng\022\036\n\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\014\n\010LI" - + "NEAR16\020\001\022\t\n\005MULAW\020\002\022\010\n\004ALAW\020\003\"Z\n\030Speaker" - + "DiarizationConfig\022\036\n\021min_speaker_count\030\002" - + " \001(\005B\003\340A\002\022\036\n\021max_speaker_count\030\003 \001(\005B\003\340A" - + "\002\"\370\003\n\023RecognitionFeatures\022\030\n\020profanity_f" - + "ilter\030\001 \001(\010\022 \n\030enable_word_time_offsets\030" - + "\002 \001(\010\022\036\n\026enable_word_confidence\030\003 \001(\010\022$\n" - + "\034enable_automatic_punctuation\030\004 \001(\010\022!\n\031e" - + "nable_spoken_punctuation\030\016 \001(\010\022\034\n\024enable" - + "_spoken_emojis\030\017 \001(\010\022X\n\022multi_channel_mo" - + "de\030\021 \001(\0162<.google.cloud.speech.v2.Recogn" - + "itionFeatures.MultiChannelMode\022L\n\022diariz" - + "ation_config\030\t \001(\01320.google.cloud.speech" - + ".v2.SpeakerDiarizationConfig\022\030\n\020max_alte" - + "rnatives\030\020 \001(\005\"\\\n\020MultiChannelMode\022\"\n\036MU" - + "LTI_CHANNEL_MODE_UNSPECIFIED\020\000\022$\n SEPARA" - + "TE_RECOGNITION_PER_CHANNEL\020\001\"\243\001\n\027Transcr" - + "iptNormalization\022F\n\007entries\030\001 \003(\01325.goog" - + "le.cloud.speech.v2.TranscriptNormalizati" - + "on.Entry\032@\n\005Entry\022\016\n\006search\030\001 \001(\t\022\017\n\007rep" - + "lace\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010\"1\n\021Tr" - + "anslationConfig\022\034\n\017target_language\030\001 \001(\t" - + "B\003\340A\002\"\277\002\n\020SpeechAdaptation\022Q\n\013phrase_set" - + "s\030\001 \003(\0132<.google.cloud.speech.v2.SpeechA" - + "daptation.AdaptationPhraseSet\022;\n\016custom_" - + "classes\030\002 \003(\0132#.google.cloud.speech.v2.C" - + "ustomClass\032\232\001\n\023AdaptationPhraseSet\022:\n\nph" - + "rase_set\030\001 \001(\tB$\372A!\n\037speech.googleapis.c" - + "om/PhraseSetH\000\022>\n\021inline_phrase_set\030\002 \001(" - + "\0132!.google.cloud.speech.v2.PhraseSetH\000B\007" - + "\n\005value\"\236\004\n\021RecognitionConfig\022P\n\024auto_de" - + "coding_config\030\007 \001(\01320.google.cloud.speec" - + "h.v2.AutoDetectDecodingConfigH\000\022R\n\030expli" - + "cit_decoding_config\030\010 \001(\0132..google.cloud" - + ".speech.v2.ExplicitDecodingConfigH\000\022\022\n\005m" - + "odel\030\t \001(\tB\003\340A\001\022\033\n\016language_codes\030\n \003(\tB" - + "\003\340A\001\022=\n\010features\030\002 \001(\0132+.google.cloud.sp" - + "eech.v2.RecognitionFeatures\022<\n\nadaptatio" - + "n\030\006 \001(\0132(.google.cloud.speech.v2.SpeechA" - + "daptation\022V\n\030transcript_normalization\030\013 " - + "\001(\0132/.google.cloud.speech.v2.TranscriptN" - + "ormalizationB\003\340A\001\022J\n\022translation_config\030" - + "\017 \001(\0132).google.cloud.speech.v2.Translati" - + "onConfigB\003\340A\001B\021\n\017decoding_config\"\356\001\n\020Rec" - + "ognizeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A" - + "\"\n speech.googleapis.com/Recognizer\0229\n\006c" - + "onfig\030\001 \001(\0132).google.cloud.speech.v2.Rec" - + "ognitionConfig\022/\n\013config_mask\030\010 \001(\0132\032.go" - + "ogle.protobuf.FieldMask\022\021\n\007content\030\005 \001(\014" - + "H\000\022\r\n\003uri\030\006 \001(\tH\000B\016\n\014audio_source\"W\n\033Rec" - + "ognitionResponseMetadata\0228\n\025total_billed" - + "_duration\030\006 \001(\0132\031.google.protobuf.Durati" - + "on\"w\n\034SpeechRecognitionAlternative\022\022\n\ntr" - + "anscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wo" - + "rds\030\003 \003(\0132 .google.cloud.speech.v2.WordI" - + "nfo\"\243\001\n\010WordInfo\022/\n\014start_offset\030\001 \001(\0132\031" - + ".google.protobuf.Duration\022-\n\nend_offset\030" - + "\002 \001(\0132\031.google.protobuf.Duration\022\014\n\004word" - + "\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\025\n\rspeaker_la" - + "bel\030\006 \001(\t\"\314\001\n\027SpeechRecognitionResult\022J\n" - + "\014alternatives\030\001 \003(\01324.google.cloud.speec" - + "h.v2.SpeechRecognitionAlternative\022\023\n\013cha" - + "nnel_tag\030\002 \001(\005\0224\n\021result_end_offset\030\004 \001(" - + "\0132\031.google.protobuf.Duration\022\032\n\rlanguage" - + "_code\030\005 \001(\tB\003\340A\003\"\234\001\n\021RecognizeResponse\022@" - + "\n\007results\030\003 \003(\0132/.google.cloud.speech.v2" - + ".SpeechRecognitionResult\022E\n\010metadata\030\002 \001" - + "(\01323.google.cloud.speech.v2.RecognitionR" - + "esponseMetadata\"\321\002\n\034StreamingRecognition" - + "Features\022$\n\034enable_voice_activity_events" - + "\030\001 \001(\010\022\027\n\017interim_results\030\002 \001(\010\022i\n\026voice" - + "_activity_timeout\030\003 \001(\0132I.google.cloud.s" - + "peech.v2.StreamingRecognitionFeatures.Vo" - + "iceActivityTimeout\032\206\001\n\024VoiceActivityTime" - + "out\0227\n\024speech_start_timeout\030\001 \001(\0132\031.goog" - + "le.protobuf.Duration\0225\n\022speech_end_timeo" - + "ut\030\002 \001(\0132\031.google.protobuf.Duration\"\337\001\n\032" - + "StreamingRecognitionConfig\022>\n\006config\030\001 \001" - + "(\0132).google.cloud.speech.v2.RecognitionC" - + "onfigB\003\340A\002\022/\n\013config_mask\030\003 \001(\0132\032.google" - + ".protobuf.FieldMask\022P\n\022streaming_feature" - + "s\030\002 \001(\01324.google.cloud.speech.v2.Streami" - + "ngRecognitionFeatures\"\317\001\n\031StreamingRecog" - + "nizeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"\n" - + " speech.googleapis.com/Recognizer\022N\n\020str" - + "eaming_config\030\006 \001(\01322.google.cloud.speec" - + "h.v2.StreamingRecognitionConfigH\000\022\017\n\005aud" - + "io\030\005 \001(\014H\000B\023\n\021streaming_request\"\210\004\n\025Batc" - + "hRecognizeRequest\022<\n\nrecognizer\030\001 \001(\tB(\340" - + "A\002\372A\"\n speech.googleapis.com/Recognizer\022" - + "9\n\006config\030\004 \001(\0132).google.cloud.speech.v2" - + ".RecognitionConfig\022/\n\013config_mask\030\005 \001(\0132" - + "\032.google.protobuf.FieldMask\022A\n\005files\030\003 \003" - + "(\01322.google.cloud.speech.v2.BatchRecogni" - + "zeFileMetadata\022R\n\031recognition_output_con" - + "fig\030\006 \001(\0132/.google.cloud.speech.v2.Recog" - + "nitionOutputConfig\022]\n\023processing_strateg" - + "y\030\007 \001(\0162@.google.cloud.speech.v2.BatchRe" - + "cognizeRequest.ProcessingStrategy\"O\n\022Pro" - + "cessingStrategy\022#\n\037PROCESSING_STRATEGY_U" - + "NSPECIFIED\020\000\022\024\n\020DYNAMIC_BATCHING\020\001\"\036\n\017Gc" - + "sOutputConfig\022\013\n\003uri\030\001 \001(\t\"\024\n\022InlineOutp" - + "utConfig\"\036\n\034NativeOutputFileFormatConfig" - + "\"\033\n\031VttOutputFileFormatConfig\"\033\n\031SrtOutp" - + "utFileFormatConfig\"\332\001\n\022OutputFormatConfi" - + "g\022D\n\006native\030\001 \001(\01324.google.cloud.speech." - + "v2.NativeOutputFileFormatConfig\022>\n\003vtt\030\002" - + " \001(\01321.google.cloud.speech.v2.VttOutputF" - + "ileFormatConfig\022>\n\003srt\030\003 \001(\01321.google.cl" - + "oud.speech.v2.SrtOutputFileFormatConfig\"" - + "\206\002\n\027RecognitionOutputConfig\022D\n\021gcs_outpu" - + "t_config\030\001 \001(\0132\'.google.cloud.speech.v2." - + "GcsOutputConfigH\000\022L\n\026inline_response_con" - + "fig\030\002 \001(\0132*.google.cloud.speech.v2.Inlin" - + "eOutputConfigH\000\022M\n\024output_format_config\030" - + "\003 \001(\0132*.google.cloud.speech.v2.OutputFor" - + "matConfigB\003\340A\001B\010\n\006output\"\202\002\n\026BatchRecogn" - + "izeResponse\022L\n\007results\030\001 \003(\0132;.google.cl" - + "oud.speech.v2.BatchRecognizeResponse.Res" - + "ultsEntry\0228\n\025total_billed_duration\030\002 \001(\013" - + "2\031.google.protobuf.Duration\032`\n\014ResultsEn" - + "try\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.google" - + ".cloud.speech.v2.BatchRecognizeFileResul" - + "t:\0028\001\"\240\001\n\025BatchRecognizeResults\022@\n\007resul" - + "ts\030\001 \003(\0132/.google.cloud.speech.v2.Speech" - + "RecognitionResult\022E\n\010metadata\030\002 \001(\01323.go" - + "ogle.cloud.speech.v2.RecognitionResponse" - + "Metadata\"Q\n\022CloudStorageResult\022\013\n\003uri\030\001 " - + "\001(\t\022\026\n\016vtt_format_uri\030\002 \001(\t\022\026\n\016srt_forma" - + "t_uri\030\003 \001(\t\"}\n\014InlineResult\022A\n\ntranscrip" - + "t\030\001 \001(\0132-.google.cloud.speech.v2.BatchRe" - + "cognizeResults\022\024\n\014vtt_captions\030\002 \001(\t\022\024\n\014" - + "srt_captions\030\003 \001(\t\"\361\002\n\030BatchRecognizeFil" - + "eResult\022!\n\005error\030\002 \001(\0132\022.google.rpc.Stat" - + "us\022E\n\010metadata\030\003 \001(\01323.google.cloud.spee" - + "ch.v2.RecognitionResponseMetadata\022J\n\024clo" - + "ud_storage_result\030\005 \001(\0132*.google.cloud.s" - + "peech.v2.CloudStorageResultH\000\022=\n\rinline_" - + "result\030\006 \001(\0132$.google.cloud.speech.v2.In" - + "lineResultH\000\022\017\n\003uri\030\001 \001(\tB\002\030\001\022E\n\ntranscr" - + "ipt\030\004 \001(\0132-.google.cloud.speech.v2.Batch" - + "RecognizeResultsB\002\030\001B\010\n\006result\"o\n#BatchR" - + "ecognizeTranscriptionMetadata\022\030\n\020progres" - + "s_percent\030\001 \001(\005\022!\n\005error\030\002 \001(\0132\022.google." - + "rpc.Status\022\013\n\003uri\030\003 \001(\t\"\376\001\n\026BatchRecogni" - + "zeMetadata\022i\n\026transcription_metadata\030\001 \003" - + "(\0132I.google.cloud.speech.v2.BatchRecogni" - + "zeMetadata.TranscriptionMetadataEntry\032y\n" - + "\032TranscriptionMetadataEntry\022\013\n\003key\030\001 \001(\t" - + "\022J\n\005value\030\002 \001(\0132;.google.cloud.speech.v2" - + ".BatchRecognizeTranscriptionMetadata:\0028\001" - + "\"\247\001\n\032BatchRecognizeFileMetadata\022\r\n\003uri\030\001" - + " \001(\tH\000\0229\n\006config\030\004 \001(\0132).google.cloud.sp" - + "eech.v2.RecognitionConfig\022/\n\013config_mask" - + "\030\005 \001(\0132\032.google.protobuf.FieldMaskB\016\n\014au" - + "dio_source\"\364\001\n\032StreamingRecognitionResul" - + "t\022J\n\014alternatives\030\001 \003(\01324.google.cloud.s" - + "peech.v2.SpeechRecognitionAlternative\022\020\n" - + "\010is_final\030\002 \001(\010\022\021\n\tstability\030\003 \001(\002\0224\n\021re" - + "sult_end_offset\030\004 \001(\0132\031.google.protobuf." - + "Duration\022\023\n\013channel_tag\030\005 \001(\005\022\032\n\rlanguag" - + "e_code\030\006 \001(\tB\003\340A\003\"\307\003\n\032StreamingRecognize" - + "Response\022C\n\007results\030\006 \003(\01322.google.cloud" - + ".speech.v2.StreamingRecognitionResult\022]\n" - + "\021speech_event_type\030\003 \001(\0162B.google.cloud." - + "speech.v2.StreamingRecognizeResponse.Spe" - + "echEventType\0226\n\023speech_event_offset\030\007 \001(" - + "\0132\031.google.protobuf.Duration\022E\n\010metadata" - + "\030\005 \001(\01323.google.cloud.speech.v2.Recognit" - + "ionResponseMetadata\"\205\001\n\017SpeechEventType\022" - + "!\n\035SPEECH_EVENT_TYPE_UNSPECIFIED\020\000\022\033\n\027EN" - + "D_OF_SINGLE_UTTERANCE\020\001\022\031\n\025SPEECH_ACTIVI" - + "TY_BEGIN\020\002\022\027\n\023SPEECH_ACTIVITY_END\020\003\"\350\001\n\006" - + "Config\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\010\022?\n\014kms_key_" - + "name\030\002 \001(\tB)\340A\001\372A#\n!cloudkms.googleapis." - + "com/CryptoKey\0224\n\013update_time\030\003 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003:Q\352AN\n\034speech" - + ".googleapis.com/Config\022.projects/{projec" - + "t}/locations/{location}/config\"F\n\020GetCon" - + "figRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034speech" - + ".googleapis.com/Config\"{\n\023UpdateConfigRe" - + "quest\0223\n\006config\030\001 \001(\0132\036.google.cloud.spe" - + "ech.v2.ConfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMask\"\255\007\n\013CustomCl" - + "ass\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\010\022\020\n\003uid\030\002 \001(\tB\003" - + "\340A\003\022\031\n\014display_name\030\004 \001(\tB\003\340A\001\022<\n\005items\030" - + "\005 \003(\0132-.google.cloud.speech.v2.CustomCla" - + "ss.ClassItem\022=\n\005state\030\017 \001(\0162).google.clo" - + "ud.speech.v2.CustomClass.StateB\003\340A\003\0224\n\013c" - + "reate_time\030\006 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\010" + + ".cloud.speech.v2.RecognizerB\003\340A\002\022/\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "k\022\025\n\rvalidate_only\030\004 \001(\010\"\215\001\n\027DeleteRecog" + + "nizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n spee" + + "ch.googleapis.com/Recognizer\022\025\n\rvalidate" + + "_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\022\014\n\004et" + + "ag\030\003 \001(\t\"x\n\031UndeleteRecognizerRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n speech.googleapis.c" + + "om/Recognizer\022\025\n\rvalidate_only\030\003 \001(\010\022\014\n\004" + + "etag\030\004 \001(\t\"\305\007\n\nRecognizer\022\024\n\004name\030\001 \001(\tB" + + "\006\340A\003\340A\010\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display_nam" + + "e\030\003 \001(\t\022\024\n\005model\030\004 \001(\tB\005\030\001\340A\001\022\035\n\016languag" + + "e_codes\030\021 \003(\tB\005\030\001\340A\001\022M\n\032default_recognit" + + "ion_config\030\006 \001(\0132).google.cloud.speech.v" + + "2.RecognitionConfig\022H\n\013annotations\030\007 \003(\013" + + "23.google.cloud.speech.v2.Recognizer.Ann" + + "otationsEntry\022<\n\005state\030\010 \001(\0162(.google.cl" + + "oud.speech.v2.Recognizer.StateB\003\340A\003\0224\n\013c" + + "reate_time\030\t \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\013" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013expire_time\030\t \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\022N\n\013annotations\030\n \003(\01324.googl" - + "e.cloud.speech.v2.CustomClass.Annotation" - + "sEntryB\003\340A\001\022\021\n\004etag\030\013 \001(\tB\003\340A\003\022\030\n\013reconc" - + "iling\030\014 \001(\010B\003\340A\003\022?\n\014kms_key_name\030\r \001(\tB)" + + "\013expire_time\030\016 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\022\021\n\004etag\030\014 \001(\tB\003\340A\003\022\030\n\013reconc" + + "iling\030\r \001(\010B\003\340A\003\022?\n\014kms_key_name\030\017 \001(\tB)" + "\340A\003\372A#\n!cloudkms.googleapis.com/CryptoKe" - + "y\022N\n\024kms_key_version_name\030\016 \001(\tB0\340A\003\372A*\n" + + "y\022N\n\024kms_key_version_name\030\020 \001(\tB0\340A\003\372A*\n" + "(cloudkms.googleapis.com/CryptoKeyVersio" - + "n\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t\0322\n\020Annotat" - + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"7\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACT" - + "IVE\020\002\022\013\n\007DELETED\020\004:o\352Al\n!speech.googleap" - + "is.com/CustomClass\022Dprojects/{project}/l" - + "ocations/{location}/customClasses/{custo" - + "m_class}R\001\001\"\256\007\n\tPhraseSet\022\024\n\004name\030\001 \001(\tB" - + "\006\340A\003\340A\010\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0229\n\007phrases\030\003 \003" - + "(\0132(.google.cloud.speech.v2.PhraseSet.Ph" - + "rase\022\r\n\005boost\030\004 \001(\002\022\024\n\014display_name\030\005 \001(" - + "\t\022;\n\005state\030\017 \001(\0162\'.google.cloud.speech.v" - + "2.PhraseSet.StateB\003\340A\003\0224\n\013create_time\030\006 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" - + "update_time\030\007 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013expire_time\030" - + "\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022G" - + "\n\013annotations\030\n \003(\01322.google.cloud.speec" - + "h.v2.PhraseSet.AnnotationsEntry\022\021\n\004etag\030" - + "\013 \001(\tB\003\340A\003\022\030\n\013reconciling\030\014 \001(\010B\003\340A\003\022?\n\014" - + "kms_key_name\030\r \001(\tB)\340A\003\372A#\n!cloudkms.goo" - + "gleapis.com/CryptoKey\022N\n\024kms_key_version" - + "_name\030\016 \001(\tB0\340A\003\372A*\n(cloudkms.googleapis" - + ".com/CryptoKeyVersion\032&\n\006Phrase\022\r\n\005value" - + "\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\0322\n\020AnnotationsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005Sta" - + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\002\022\013\n" - + "\007DELETED\020\004:h\352Ae\n\037speech.googleapis.com/P" - + "hraseSet\022?projects/{project}/locations/{" - + "location}/phraseSets/{phrase_set}R\001\001\"\305\001\n" - + "\030CreateCustomClassRequest\022>\n\014custom_clas" - + "s\030\001 \001(\0132#.google.cloud.speech.v2.CustomC" - + "lassB\003\340A\002\022\025\n\rvalidate_only\030\002 \001(\010\022\027\n\017cust" - + "om_class_id\030\003 \001(\t\0229\n\006parent\030\004 \001(\tB)\340A\002\372A" - + "#\022!speech.googleapis.com/CustomClass\"\222\001\n" - + "\030ListCustomClassesRequest\0229\n\006parent\030\001 \001(" - + "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" - + "tion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\022\024\n\014show_deleted\030\004 \001(\010\"q\n\031ListCustomC" - + "lassesResponse\022;\n\016custom_classes\030\001 \003(\0132#" - + ".google.cloud.speech.v2.CustomClass\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"P\n\025GetCustomClassRe" - + "quest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goog" - + "leapis.com/CustomClass\"\242\001\n\030UpdateCustomC" - + "lassRequest\022>\n\014custom_class\030\001 \001(\0132#.goog" - + "le.cloud.speech.v2.CustomClassB\003\340A\002\022/\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "Mask\022\025\n\rvalidate_only\030\004 \001(\010\"\217\001\n\030DeleteCu" - + "stomClassRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!" - + "speech.googleapis.com/CustomClass\022\025\n\rval" - + "idate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\022" - + "\014\n\004etag\030\003 \001(\t\"z\n\032UndeleteCustomClassRequ" - + "est\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.google" - + "apis.com/CustomClass\022\025\n\rvalidate_only\030\003 " - + "\001(\010\022\014\n\004etag\030\004 \001(\t\"\273\001\n\026CreatePhraseSetReq" - + "uest\022:\n\nphrase_set\030\001 \001(\0132!.google.cloud." - + "speech.v2.PhraseSetB\003\340A\002\022\025\n\rvalidate_onl" - + "y\030\002 \001(\010\022\025\n\rphrase_set_id\030\003 \001(\t\0227\n\006parent" - + "\030\004 \001(\tB\'\340A\002\372A!\022\037speech.googleapis.com/Ph" - + "raseSet\"\217\001\n\025ListPhraseSetsRequest\0229\n\006par" - + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." - + "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" - + "token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"i\n\026Lis" - + "tPhraseSetsResponse\0226\n\013phrase_sets\030\001 \003(\013" - + "2!.google.cloud.speech.v2.PhraseSet\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"L\n\023GetPhraseSetRequ" - + "est\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.google" - + "apis.com/PhraseSet\"\234\001\n\026UpdatePhraseSetRe" - + "quest\022:\n\nphrase_set\030\001 \001(\0132!.google.cloud" - + ".speech.v2.PhraseSetB\003\340A\002\022/\n\013update_mask" - + "\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n\rva" - + "lidate_only\030\004 \001(\010\"\213\001\n\026DeletePhraseSetReq" - + "uest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.googl" - + "eapis.com/PhraseSet\022\025\n\rvalidate_only\030\002 \001" - + "(\010\022\025\n\rallow_missing\030\004 \001(\010\022\014\n\004etag\030\003 \001(\t\"" - + "v\n\030UndeletePhraseSetRequest\0225\n\004name\030\001 \001(" - + "\tB\'\340A\002\372A!\n\037speech.googleapis.com/PhraseS" - + "et\022\025\n\rvalidate_only\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t2" - + "\277%\n\006Speech\022\354\001\n\020CreateRecognizer\022/.google" - + ".cloud.speech.v2.CreateRecognizerRequest" - + "\032\035.google.longrunning.Operation\"\207\001\312A\037\n\nR" - + "ecognizer\022\021OperationMetadata\332A\037parent,re" - + "cognizer,recognizer_id\202\323\344\223\002=\"//v2/{paren" - + "t=projects/*/locations/*}/recognizers:\nr" - + "ecognizer\022\264\001\n\017ListRecognizers\022..google.c" - + "loud.speech.v2.ListRecognizersRequest\032/." - + "google.cloud.speech.v2.ListRecognizersRe" - + "sponse\"@\332A\006parent\202\323\344\223\0021\022//v2/{parent=pro" - + "jects/*/locations/*}/recognizers\022\241\001\n\rGet" - + "Recognizer\022,.google.cloud.speech.v2.GetR" - + "ecognizerRequest\032\".google.cloud.speech.v" - + "2.Recognizer\">\332A\004name\202\323\344\223\0021\022//v2/{name=p" - + "rojects/*/locations/*/recognizers/*}\022\356\001\n" - + "\020UpdateRecognizer\022/.google.cloud.speech." - + "v2.UpdateRecognizerRequest\032\035.google.long" - + "running.Operation\"\211\001\312A\037\n\nRecognizer\022\021Ope", - "rationMetadata\332A\026recognizer,update_mask\202" - + "\323\344\223\002H2:/v2/{recognizer.name=projects/*/l" - + "ocations/*/recognizers/*}:\nrecognizer\022\304\001" - + "\n\020DeleteRecognizer\022/.google.cloud.speech" - + ".v2.DeleteRecognizerRequest\032\035.google.lon" - + "grunning.Operation\"`\312A\037\n\nRecognizer\022\021Ope" - + "rationMetadata\332A\004name\202\323\344\223\0021*//v2/{name=p" - + "rojects/*/locations/*/recognizers/*}\022\324\001\n" - + "\022UndeleteRecognizer\0221.google.cloud.speec" - + "h.v2.UndeleteRecognizerRequest\032\035.google." - + "longrunning.Operation\"l\312A\037\n\nRecognizer\022\021" - + "OperationMetadata\332A\004name\202\323\344\223\002=\"8/v2/{nam" - + "e=projects/*/locations/*/recognizers/*}:" - + "undelete:\001*\022\371\001\n\tRecognize\022(.google.cloud" - + ".speech.v2.RecognizeRequest\032).google.clo" - + "ud.speech.v2.RecognizeResponse\"\226\001\332A%reco" - + "gnizer,config,config_mask,content\332A!reco" - + "gnizer,config,config_mask,uri\202\323\344\223\002D\"?/v2" - + "/{recognizer=projects/*/locations/*/reco" - + "gnizers/*}:recognize:\001*\022\201\001\n\022StreamingRec" - + "ognize\0221.google.cloud.speech.v2.Streamin" - + "gRecognizeRequest\0322.google.cloud.speech." - + "v2.StreamingRecognizeResponse\"\000(\0010\001\022\204\002\n\016" - + "BatchRecognize\022-.google.cloud.speech.v2." - + "BatchRecognizeRequest\032\035.google.longrunni" - + "ng.Operation\"\243\001\312A+\n\026BatchRecognizeRespon" - + "se\022\021OperationMetadata\332A#recognizer,confi" - + "g,config_mask,files\202\323\344\223\002I\"D/v2/{recogniz" - + "er=projects/*/locations/*/recognizers/*}" - + ":batchRecognize:\001*\022\216\001\n\tGetConfig\022(.googl" - + "e.cloud.speech.v2.GetConfigRequest\032\036.goo" - + "gle.cloud.speech.v2.Config\"7\332A\004name\202\323\344\223\002" - + "*\022(/v2/{name=projects/*/locations/*/conf" - + "ig}\022\261\001\n\014UpdateConfig\022+.google.cloud.spee" - + "ch.v2.UpdateConfigRequest\032\036.google.cloud" - + ".speech.v2.Config\"T\332A\022config,update_mask" - + "\202\323\344\223\00292//v2/{config.name=projects/*/loca" - + "tions/*/config}:\006config\022\367\001\n\021CreateCustom" - + "Class\0220.google.cloud.speech.v2.CreateCus" - + "tomClassRequest\032\035.google.longrunning.Ope" - + "ration\"\220\001\312A \n\013CustomClass\022\021OperationMeta" - + "data\332A#parent,custom_class,custom_class_" - + "id\202\323\344\223\002A\"1/v2/{parent=projects/*/locatio" - + "ns/*}/customClasses:\014custom_class\022\274\001\n\021Li" - + "stCustomClasses\0220.google.cloud.speech.v2" - + ".ListCustomClassesRequest\0321.google.cloud" - + ".speech.v2.ListCustomClassesResponse\"B\332A" - + "\006parent\202\323\344\223\0023\0221/v2/{parent=projects/*/lo" - + "cations/*}/customClasses\022\246\001\n\016GetCustomCl" - + "ass\022-.google.cloud.speech.v2.GetCustomCl" - + "assRequest\032#.google.cloud.speech.v2.Cust" - + "omClass\"@\332A\004name\202\323\344\223\0023\0221/v2/{name=projec" - + "ts/*/locations/*/customClasses/*}\022\371\001\n\021Up" - + "dateCustomClass\0220.google.cloud.speech.v2" - + ".UpdateCustomClassRequest\032\035.google.longr" - + "unning.Operation\"\222\001\312A \n\013CustomClass\022\021Ope" - + "rationMetadata\332A\030custom_class,update_mas" - + "k\202\323\344\223\002N2>/v2/{custom_class.name=projects" - + "/*/locations/*/customClasses/*}:\014custom_" - + "class\022\311\001\n\021DeleteCustomClass\0220.google.clo" - + "ud.speech.v2.DeleteCustomClassRequest\032\035." - + "google.longrunning.Operation\"c\312A \n\013Custo" - + "mClass\022\021OperationMetadata\332A\004name\202\323\344\223\0023*1" - + "/v2/{name=projects/*/locations/*/customC" - + "lasses/*}\022\331\001\n\023UndeleteCustomClass\0222.goog" - + "le.cloud.speech.v2.UndeleteCustomClassRe" - + "quest\032\035.google.longrunning.Operation\"o\312A" - + " \n\013CustomClass\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\002?\":/v2/{name=projects/*/locations/*" - + "/customClasses/*}:undelete:\001*\022\350\001\n\017Create" - + "PhraseSet\022..google.cloud.speech.v2.Creat" - + "ePhraseSetRequest\032\035.google.longrunning.O" - + "peration\"\205\001\312A\036\n\tPhraseSet\022\021OperationMeta" - + "data\332A\037parent,phrase_set,phrase_set_id\202\323" - + "\344\223\002<\"./v2/{parent=projects/*/locations/*" - + "}/phraseSets:\nphrase_set\022\260\001\n\016ListPhraseS" - + "ets\022-.google.cloud.speech.v2.ListPhraseS" - + "etsRequest\032..google.cloud.speech.v2.List" - + "PhraseSetsResponse\"?\332A\006parent\202\323\344\223\0020\022./v2" - + "/{parent=projects/*/locations/*}/phraseS" - + "ets\022\235\001\n\014GetPhraseSet\022+.google.cloud.spee" - + "ch.v2.GetPhraseSetRequest\032!.google.cloud" - + ".speech.v2.PhraseSet\"=\332A\004name\202\323\344\223\0020\022./v2" - + "/{name=projects/*/locations/*/phraseSets" - + "/*}\022\352\001\n\017UpdatePhraseSet\022..google.cloud.s" - + "peech.v2.UpdatePhraseSetRequest\032\035.google" - + ".longrunning.Operation\"\207\001\312A\036\n\tPhraseSet\022" - + "\021OperationMetadata\332A\026phrase_set,update_m" - + "ask\202\323\344\223\002G29/v2/{phrase_set.name=projects" - + "/*/locations/*/phraseSets/*}:\nphrase_set" - + "\022\300\001\n\017DeletePhraseSet\022..google.cloud.spee" - + "ch.v2.DeletePhraseSetRequest\032\035.google.lo" - + "ngrunning.Operation\"^\312A\036\n\tPhraseSet\022\021Ope" - + "rationMetadata\332A\004name\202\323\344\223\0020*./v2/{name=p" - + "rojects/*/locations/*/phraseSets/*}\022\320\001\n\021" - + "UndeletePhraseSet\0220.google.cloud.speech." - + "v2.UndeletePhraseSetRequest\032\035.google.lon" - + "grunning.Operation\"j\312A\036\n\tPhraseSet\022\021Oper" - + "ationMetadata\332A\004name\202\323\344\223\002<\"7/v2/{name=pr" - + "ojects/*/locations/*/phraseSets/*}:undel" - + "ete:\001*\032I\312A\025speech.googleapis.com\322A.https" - + "://www.googleapis.com/auth/cloud-platfor" - + "mB\211\003\n\032com.google.cloud.speech.v2B\020CloudS" - + "peechProtoP\001Z2cloud.google.com/go/speech" - + "/apiv2/speechpb;speechpb\352Ax\n!cloudkms.go" - + "ogleapis.com/CryptoKey\022Sprojects/{projec" - + "t}/locations/{location}/keyRings/{key_ri" - + "ng}/cryptoKeys/{crypto_key}\352A\246\001\n(cloudkm" - + "s.googleapis.com/CryptoKeyVersion\022zproje" - + "cts/{project}/locations/{location}/keyRi" - + "ngs/{key_ring}/cryptoKeys/{crypto_key}/c" - + "ryptoKeyVersions/{crypto_key_version}b\006p" - + "roto3" + + "n\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:j\352Ag\n spe" + + "ech.googleapis.com/Recognizer\022@projects/" + + "{project}/locations/{location}/recognize" + + "rs/{recognizer}R\001\001\"\032\n\030AutoDetectDecoding" + + "Config\"\371\001\n\026ExplicitDecodingConfig\022S\n\010enc" + + "oding\030\001 \001(\0162<.google.cloud.speech.v2.Exp" + + "licitDecodingConfig.AudioEncodingB\003\340A\002\022\031" + + "\n\021sample_rate_hertz\030\002 \001(\005\022\033\n\023audio_chann" + + "el_count\030\003 \001(\005\"R\n\rAudioEncoding\022\036\n\032AUDIO" + + "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\t\n" + + "\005MULAW\020\002\022\010\n\004ALAW\020\003\"Z\n\030SpeakerDiarization" + + "Config\022\036\n\021min_speaker_count\030\002 \001(\005B\003\340A\002\022\036" + + "\n\021max_speaker_count\030\003 \001(\005B\003\340A\002\"\370\003\n\023Recog" + + "nitionFeatures\022\030\n\020profanity_filter\030\001 \001(\010" + + "\022 \n\030enable_word_time_offsets\030\002 \001(\010\022\036\n\026en" + + "able_word_confidence\030\003 \001(\010\022$\n\034enable_aut" + + "omatic_punctuation\030\004 \001(\010\022!\n\031enable_spoke" + + "n_punctuation\030\016 \001(\010\022\034\n\024enable_spoken_emo" + + "jis\030\017 \001(\010\022X\n\022multi_channel_mode\030\021 \001(\0162<." + + "google.cloud.speech.v2.RecognitionFeatur" + + "es.MultiChannelMode\022L\n\022diarization_confi" + + "g\030\t \001(\01320.google.cloud.speech.v2.Speaker" + + "DiarizationConfig\022\030\n\020max_alternatives\030\020 " + + "\001(\005\"\\\n\020MultiChannelMode\022\"\n\036MULTI_CHANNEL" + + "_MODE_UNSPECIFIED\020\000\022$\n SEPARATE_RECOGNIT" + + "ION_PER_CHANNEL\020\001\"\243\001\n\027TranscriptNormaliz" + + "ation\022F\n\007entries\030\001 \003(\01325.google.cloud.sp" + + "eech.v2.TranscriptNormalization.Entry\032@\n" + + "\005Entry\022\016\n\006search\030\001 \001(\t\022\017\n\007replace\030\002 \001(\t\022" + + "\026\n\016case_sensitive\030\003 \001(\010\"1\n\021TranslationCo" + + "nfig\022\034\n\017target_language\030\001 \001(\tB\003\340A\002\"\277\002\n\020S" + + "peechAdaptation\022Q\n\013phrase_sets\030\001 \003(\0132<.g" + + "oogle.cloud.speech.v2.SpeechAdaptation.A" + + "daptationPhraseSet\022;\n\016custom_classes\030\002 \003" + + "(\0132#.google.cloud.speech.v2.CustomClass\032" + + "\232\001\n\023AdaptationPhraseSet\022:\n\nphrase_set\030\001 " + + "\001(\tB$\372A!\n\037speech.googleapis.com/PhraseSe" + + "tH\000\022>\n\021inline_phrase_set\030\002 \001(\0132!.google." + + "cloud.speech.v2.PhraseSetH\000B\007\n\005value\"\236\004\n" + + "\021RecognitionConfig\022P\n\024auto_decoding_conf" + + "ig\030\007 \001(\01320.google.cloud.speech.v2.AutoDe" + + "tectDecodingConfigH\000\022R\n\030explicit_decodin" + + "g_config\030\010 \001(\0132..google.cloud.speech.v2." + + "ExplicitDecodingConfigH\000\022\022\n\005model\030\t \001(\tB" + + "\003\340A\001\022\033\n\016language_codes\030\n \003(\tB\003\340A\001\022=\n\010fea" + + "tures\030\002 \001(\0132+.google.cloud.speech.v2.Rec" + + "ognitionFeatures\022<\n\nadaptation\030\006 \001(\0132(.g" + + "oogle.cloud.speech.v2.SpeechAdaptation\022V" + + "\n\030transcript_normalization\030\013 \001(\0132/.googl" + + "e.cloud.speech.v2.TranscriptNormalizatio" + + "nB\003\340A\001\022J\n\022translation_config\030\017 \001(\0132).goo" + + "gle.cloud.speech.v2.TranslationConfigB\003\340" + + "A\001B\021\n\017decoding_config\"\356\001\n\020RecognizeReque" + + "st\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"\n speech.g" + + "oogleapis.com/Recognizer\0229\n\006config\030\001 \001(\013" + + "2).google.cloud.speech.v2.RecognitionCon" + + "fig\022/\n\013config_mask\030\010 \001(\0132\032.google.protob" + + "uf.FieldMask\022\021\n\007content\030\005 \001(\014H\000\022\r\n\003uri\030\006" + + " \001(\tH\000B\016\n\014audio_source\"u\n\033RecognitionRes" + + "ponseMetadata\022\034\n\nrequest_id\030\t \001(\tB\010\342\214\317\327\010" + + "\002\010\001\0228\n\025total_billed_duration\030\006 \001(\0132\031.goo" + + "gle.protobuf.Duration\"w\n\034SpeechRecogniti" + + "onAlternative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\ncon" + + "fidence\030\002 \001(\002\022/\n\005words\030\003 \003(\0132 .google.cl" + + "oud.speech.v2.WordInfo\"\243\001\n\010WordInfo\022/\n\014s" + + "tart_offset\030\001 \001(\0132\031.google.protobuf.Dura" + + "tion\022-\n\nend_offset\030\002 \001(\0132\031.google.protob" + + "uf.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfidence\030" + + "\004 \001(\002\022\025\n\rspeaker_label\030\006 \001(\t\"\314\001\n\027SpeechR" + + "ecognitionResult\022J\n\014alternatives\030\001 \003(\01324" + + ".google.cloud.speech.v2.SpeechRecognitio" + + "nAlternative\022\023\n\013channel_tag\030\002 \001(\005\0224\n\021res" + + "ult_end_offset\030\004 \001(\0132\031.google.protobuf.D" + + "uration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A\003\"\234\001\n\021" + + "RecognizeResponse\022@\n\007results\030\003 \003(\0132/.goo" + + "gle.cloud.speech.v2.SpeechRecognitionRes" + + "ult\022E\n\010metadata\030\002 \001(\01323.google.cloud.spe" + + "ech.v2.RecognitionResponseMetadata\"\321\002\n\034S" + + "treamingRecognitionFeatures\022$\n\034enable_vo" + + "ice_activity_events\030\001 \001(\010\022\027\n\017interim_res" + + "ults\030\002 \001(\010\022i\n\026voice_activity_timeout\030\003 \001" + + "(\0132I.google.cloud.speech.v2.StreamingRec" + + "ognitionFeatures.VoiceActivityTimeout\032\206\001" + + "\n\024VoiceActivityTimeout\0227\n\024speech_start_t" + + "imeout\030\001 \001(\0132\031.google.protobuf.Duration\022" + + "5\n\022speech_end_timeout\030\002 \001(\0132\031.google.pro" + + "tobuf.Duration\"\337\001\n\032StreamingRecognitionC" + + "onfig\022>\n\006config\030\001 \001(\0132).google.cloud.spe" + + "ech.v2.RecognitionConfigB\003\340A\002\022/\n\013config_" + + "mask\030\003 \001(\0132\032.google.protobuf.FieldMask\022P" + + "\n\022streaming_features\030\002 \001(\01324.google.clou" + + "d.speech.v2.StreamingRecognitionFeatures" + + "\"\317\001\n\031StreamingRecognizeRequest\022<\n\nrecogn" + + "izer\030\003 \001(\tB(\340A\002\372A\"\n speech.googleapis.co" + + "m/Recognizer\022N\n\020streaming_config\030\006 \001(\01322" + + ".google.cloud.speech.v2.StreamingRecogni" + + "tionConfigH\000\022\017\n\005audio\030\005 \001(\014H\000B\023\n\021streami" + + "ng_request\"\210\004\n\025BatchRecognizeRequest\022<\n\n" + + "recognizer\030\001 \001(\tB(\340A\002\372A\"\n speech.googlea" + + "pis.com/Recognizer\0229\n\006config\030\004 \001(\0132).goo" + + "gle.cloud.speech.v2.RecognitionConfig\022/\n" + + "\013config_mask\030\005 \001(\0132\032.google.protobuf.Fie" + + "ldMask\022A\n\005files\030\003 \003(\01322.google.cloud.spe" + + "ech.v2.BatchRecognizeFileMetadata\022R\n\031rec" + + "ognition_output_config\030\006 \001(\0132/.google.cl" + + "oud.speech.v2.RecognitionOutputConfig\022]\n" + + "\023processing_strategy\030\007 \001(\0162@.google.clou" + + "d.speech.v2.BatchRecognizeRequest.Proces" + + "singStrategy\"O\n\022ProcessingStrategy\022#\n\037PR" + + "OCESSING_STRATEGY_UNSPECIFIED\020\000\022\024\n\020DYNAM" + + "IC_BATCHING\020\001\"\036\n\017GcsOutputConfig\022\013\n\003uri\030" + + "\001 \001(\t\"\024\n\022InlineOutputConfig\"\036\n\034NativeOut" + + "putFileFormatConfig\"\033\n\031VttOutputFileForm" + + "atConfig\"\033\n\031SrtOutputFileFormatConfig\"\332\001" + + "\n\022OutputFormatConfig\022D\n\006native\030\001 \001(\01324.g" + + "oogle.cloud.speech.v2.NativeOutputFileFo" + + "rmatConfig\022>\n\003vtt\030\002 \001(\01321.google.cloud.s" + + "peech.v2.VttOutputFileFormatConfig\022>\n\003sr" + + "t\030\003 \001(\01321.google.cloud.speech.v2.SrtOutp" + + "utFileFormatConfig\"\206\002\n\027RecognitionOutput" + + "Config\022D\n\021gcs_output_config\030\001 \001(\0132\'.goog" + + "le.cloud.speech.v2.GcsOutputConfigH\000\022L\n\026" + + "inline_response_config\030\002 \001(\0132*.google.cl" + + "oud.speech.v2.InlineOutputConfigH\000\022M\n\024ou" + + "tput_format_config\030\003 \001(\0132*.google.cloud." + + "speech.v2.OutputFormatConfigB\003\340A\001B\010\n\006out" + + "put\"\202\002\n\026BatchRecognizeResponse\022L\n\007result" + + "s\030\001 \003(\0132;.google.cloud.speech.v2.BatchRe" + + "cognizeResponse.ResultsEntry\0228\n\025total_bi" + + "lled_duration\030\002 \001(\0132\031.google.protobuf.Du" + + "ration\032`\n\014ResultsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005v" + + "alue\030\002 \001(\01320.google.cloud.speech.v2.Batc" + + "hRecognizeFileResult:\0028\001\"\240\001\n\025BatchRecogn" + + "izeResults\022@\n\007results\030\001 \003(\0132/.google.clo" + + "ud.speech.v2.SpeechRecognitionResult\022E\n\010" + + "metadata\030\002 \001(\01323.google.cloud.speech.v2." + + "RecognitionResponseMetadata\"Q\n\022CloudStor" + + "ageResult\022\013\n\003uri\030\001 \001(\t\022\026\n\016vtt_format_uri" + + "\030\002 \001(\t\022\026\n\016srt_format_uri\030\003 \001(\t\"}\n\014Inline" + + "Result\022A\n\ntranscript\030\001 \001(\0132-.google.clou" + + "d.speech.v2.BatchRecognizeResults\022\024\n\014vtt" + + "_captions\030\002 \001(\t\022\024\n\014srt_captions\030\003 \001(\t\"\361\002" + + "\n\030BatchRecognizeFileResult\022!\n\005error\030\002 \001(" + + "\0132\022.google.rpc.Status\022E\n\010metadata\030\003 \001(\0132" + + "3.google.cloud.speech.v2.RecognitionResp" + + "onseMetadata\022J\n\024cloud_storage_result\030\005 \001" + + "(\0132*.google.cloud.speech.v2.CloudStorage" + + "ResultH\000\022=\n\rinline_result\030\006 \001(\0132$.google" + + ".cloud.speech.v2.InlineResultH\000\022\017\n\003uri\030\001" + + " \001(\tB\002\030\001\022E\n\ntranscript\030\004 \001(\0132-.google.cl" + + "oud.speech.v2.BatchRecognizeResultsB\002\030\001B" + + "\010\n\006result\"o\n#BatchRecognizeTranscription" + + "Metadata\022\030\n\020progress_percent\030\001 \001(\005\022!\n\005er" + + "ror\030\002 \001(\0132\022.google.rpc.Status\022\013\n\003uri\030\003 \001" + + "(\t\"\376\001\n\026BatchRecognizeMetadata\022i\n\026transcr" + + "iption_metadata\030\001 \003(\0132I.google.cloud.spe" + + "ech.v2.BatchRecognizeMetadata.Transcript" + + "ionMetadataEntry\032y\n\032TranscriptionMetadat" + + "aEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;.goo" + + "gle.cloud.speech.v2.BatchRecognizeTransc" + + "riptionMetadata:\0028\001\"\247\001\n\032BatchRecognizeFi" + + "leMetadata\022\r\n\003uri\030\001 \001(\tH\000\0229\n\006config\030\004 \001(" + + "\0132).google.cloud.speech.v2.RecognitionCo" + + "nfig\022/\n\013config_mask\030\005 \001(\0132\032.google.proto" + + "buf.FieldMaskB\016\n\014audio_source\"\364\001\n\032Stream" + + "ingRecognitionResult\022J\n\014alternatives\030\001 \003" + + "(\01324.google.cloud.speech.v2.SpeechRecogn" + + "itionAlternative\022\020\n\010is_final\030\002 \001(\010\022\021\n\tst" + + "ability\030\003 \001(\002\0224\n\021result_end_offset\030\004 \001(\013" + + "2\031.google.protobuf.Duration\022\023\n\013channel_t" + + "ag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"\307\003\n" + + "\032StreamingRecognizeResponse\022C\n\007results\030\006" + + " \003(\01322.google.cloud.speech.v2.StreamingR" + + "ecognitionResult\022]\n\021speech_event_type\030\003 " + + "\001(\0162B.google.cloud.speech.v2.StreamingRe" + + "cognizeResponse.SpeechEventType\0226\n\023speec" + + "h_event_offset\030\007 \001(\0132\031.google.protobuf.D" + + "uration\022E\n\010metadata\030\005 \001(\01323.google.cloud" + + ".speech.v2.RecognitionResponseMetadata\"\205" + + "\001\n\017SpeechEventType\022!\n\035SPEECH_EVENT_TYPE_" + + "UNSPECIFIED\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE" + + "\020\001\022\031\n\025SPEECH_ACTIVITY_BEGIN\020\002\022\027\n\023SPEECH_" + + "ACTIVITY_END\020\003\"\350\001\n\006Config\022\024\n\004name\030\001 \001(\tB" + + "\006\340A\003\340A\010\022?\n\014kms_key_name\030\002 \001(\tB)\340A\001\372A#\n!c" + + "loudkms.googleapis.com/CryptoKey\0224\n\013upda" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003:Q\352AN\n\034speech.googleapis.com/Confi" + + "g\022.projects/{project}/locations/{locatio" + + "n}/config\"F\n\020GetConfigRequest\0222\n\004name\030\001 " + + "\001(\tB$\340A\002\372A\036\n\034speech.googleapis.com/Confi" + + "g\"{\n\023UpdateConfigRequest\0223\n\006config\030\001 \001(\013" + + "2\036.google.cloud.speech.v2.ConfigB\003\340A\002\022/\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMask\"\255\007\n\013CustomClass\022\024\n\004name\030\001 \001(\tB\006\340A" + + "\003\340A\010\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\031\n\014display_name\030\004" + + " \001(\tB\003\340A\001\022<\n\005items\030\005 \003(\0132-.google.cloud." + + "speech.v2.CustomClass.ClassItem\022=\n\005state" + + "\030\017 \001(\0162).google.cloud.speech.v2.CustomCl" + + "ass.StateB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0224\n\013delete_time\030\010 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022N\n\013annota" + + "tions\030\n \003(\01324.google.cloud.speech.v2.Cus" + + "tomClass.AnnotationsEntryB\003\340A\001\022\021\n\004etag\030\013" + + " \001(\tB\003\340A\003\022\030\n\013reconciling\030\014 \001(\010B\003\340A\003\022?\n\014k" + + "ms_key_name\030\r \001(\tB)\340A\003\372A#\n!cloudkms.goog" + + "leapis.com/CryptoKey\022N\n\024kms_key_version_" + + "name\030\016 \001(\tB0\340A\003\372A*\n(cloudkms.googleapis." + + "com/CryptoKeyVersion\032\032\n\tClassItem\022\r\n\005val" + + "ue\030\001 \001(\t\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:o\352" + + "Al\n!speech.googleapis.com/CustomClass\022Dp" + + "rojects/{project}/locations/{location}/c" + + "ustomClasses/{custom_class}R\001\001\"\256\007\n\tPhras" + + "eSet\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\010\022\020\n\003uid\030\002 \001(\tB" + + "\003\340A\003\0229\n\007phrases\030\003 \003(\0132(.google.cloud.spe" + + "ech.v2.PhraseSet.Phrase\022\r\n\005boost\030\004 \001(\002\022\024" + + "\n\014display_name\030\005 \001(\t\022;\n\005state\030\017 \001(\0162\'.go" + + "ogle.cloud.speech.v2.PhraseSet.StateB\003\340A" + + "\003\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013delete_" + + "time\030\010 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\022G\n\013annotations\030\n \003(\01322" + + ".google.cloud.speech.v2.PhraseSet.Annota" + + "tionsEntry\022\021\n\004etag\030\013 \001(\tB\003\340A\003\022\030\n\013reconci" + + "ling\030\014 \001(\010B\003\340A\003\022?\n\014kms_key_name\030\r \001(\tB)\340" + + "A\003\372A#\n!cloudkms.googleapis.com/CryptoKey" + + "\022N\n\024kms_key_version_name\030\016 \001(\tB0\340A\003\372A*\n(" + + "cloudkms.googleapis.com/CryptoKeyVersion" + + "\032&\n\006Phrase\022\r\n\005value\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002" + + "\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIFI" + + "ED\020\000\022\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:h\352Ae\n\037spee" + + "ch.googleapis.com/PhraseSet\022?projects/{p" + + "roject}/locations/{location}/phraseSets/" + + "{phrase_set}R\001\001\"\305\001\n\030CreateCustomClassReq" + + "uest\022>\n\014custom_class\030\001 \001(\0132#.google.clou" + + "d.speech.v2.CustomClassB\003\340A\002\022\025\n\rvalidate" + + "_only\030\002 \001(\010\022\027\n\017custom_class_id\030\003 \001(\t\0229\n\006" + + "parent\030\004 \001(\tB)\340A\002\372A#\022!speech.googleapis." + + "com/CustomClass\"\222\001\n\030ListCustomClassesReq" + + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + + "googleapis.com/Location\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004" + + " \001(\010\"q\n\031ListCustomClassesResponse\022;\n\016cus" + + "tom_classes\030\001 \003(\0132#.google.cloud.speech." + + "v2.CustomClass\022\027\n\017next_page_token\030\002 \001(\t\"" + + "P\n\025GetCustomClassRequest\0227\n\004name\030\001 \001(\tB)" + + "\340A\002\372A#\n!speech.googleapis.com/CustomClas" + + "s\"\242\001\n\030UpdateCustomClassRequest\022>\n\014custom" + + "_class\030\001 \001(\0132#.google.cloud.speech.v2.Cu" + + "stomClassB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMask\022\025\n\rvalidate_only" + + "\030\004 \001(\010\"\217\001\n\030DeleteCustomClassRequest\0227\n\004n" + + "ame\030\001 \001(\tB)\340A\002\372A#\n!speech.googleapis.com" + + "/CustomClass\022\025\n\rvalidate_only\030\002 \001(\010\022\025\n\ra" + + "llow_missing\030\004 \001(\010\022\014\n\004etag\030\003 \001(\t\"z\n\032Unde" + + "leteCustomClassRequest\0227\n\004name\030\001 \001(\tB)\340A" + + "\002\372A#\n!speech.googleapis.com/CustomClass\022" + + "\025\n\rvalidate_only\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"\273\001\n" + + "\026CreatePhraseSetRequest\022:\n\nphrase_set\030\001 " + + "\001(\0132!.google.cloud.speech.v2.PhraseSetB\003" + + "\340A\002\022\025\n\rvalidate_only\030\002 \001(\010\022\025\n\rphrase_set" + + "_id\030\003 \001(\t\0227\n\006parent\030\004 \001(\tB\'\340A\002\372A!\022\037speec" + + "h.googleapis.com/PhraseSet\"\217\001\n\025ListPhras" + + "eSetsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!lo" + + "cations.googleapis.com/Location\022\021\n\tpage_" + + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_d" + + "eleted\030\004 \001(\010\"i\n\026ListPhraseSetsResponse\0226" + + "\n\013phrase_sets\030\001 \003(\0132!.google.cloud.speec" + + "h.v2.PhraseSet\022\027\n\017next_page_token\030\002 \001(\t\"" + + "L\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A" + + "\002\372A!\n\037speech.googleapis.com/PhraseSet\"\234\001" + + "\n\026UpdatePhraseSetRequest\022:\n\nphrase_set\030\001" + + " \001(\0132!.google.cloud.speech.v2.PhraseSetB" + + "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\213\001\n" + + "\026DeletePhraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340" + + "A\002\372A!\n\037speech.googleapis.com/PhraseSet\022\025" + + "\n\rvalidate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004" + + " \001(\010\022\014\n\004etag\030\003 \001(\t\"v\n\030UndeletePhraseSetR" + + "equest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.goo" + + "gleapis.com/PhraseSet\022\025\n\rvalidate_only\030\003" + + " \001(\010\022\014\n\004etag\030\004 \001(\t2\277%\n\006Speech\022\354\001\n\020Create" + + "Recognizer\022/.google.cloud.speech.v2.Crea" + + "teRecognizerRequest\032\035.google.longrunning" + + ".Operation\"\207\001\312A\037\n\nRecognizer\022\021OperationM" + + "etadata\332A\037parent,recognizer,recognizer_i" + + "d\202\323\344\223\002=\"//v2/{parent=projects/*/location" + + "s/*}/recognizers:\nrecognizer\022\264\001\n\017ListRec" + + "ognizers\022..google.cloud.speech.v2.ListRe" + + "cognizersRequest\032/.google.cloud.speech.v" + + "2.ListRecognizersResponse\"@\332A\006parent\202\323\344\223" + + "\0021\022//v2/{parent=projects/*/locations/*}/" + + "recognizers\022\241\001\n\rGetRecognizer\022,.google.c" + + "loud.speech.v2.GetRecognizerRequest\032\".go" + + "ogle.cloud.speech.v2.Recognizer\">\332A\004name" + + "\202\323\344\223\0021\022//v2/{name=projects/*/locations/*" + + "/recognizers/*}\022\356\001\n\020UpdateRecognizer\022/.g" + + "oogle.cloud.speech.v2.UpdateRecognizerRe", + "quest\032\035.google.longrunning.Operation\"\211\001\312" + + "A\037\n\nRecognizer\022\021OperationMetadata\332A\026reco" + + "gnizer,update_mask\202\323\344\223\002H2:/v2/{recognize" + + "r.name=projects/*/locations/*/recognizer" + + "s/*}:\nrecognizer\022\304\001\n\020DeleteRecognizer\022/." + + "google.cloud.speech.v2.DeleteRecognizerR" + + "equest\032\035.google.longrunning.Operation\"`\312" + + "A\037\n\nRecognizer\022\021OperationMetadata\332A\004name" + + "\202\323\344\223\0021*//v2/{name=projects/*/locations/*" + + "/recognizers/*}\022\324\001\n\022UndeleteRecognizer\0221" + + ".google.cloud.speech.v2.UndeleteRecogniz" + + "erRequest\032\035.google.longrunning.Operation" + + "\"l\312A\037\n\nRecognizer\022\021OperationMetadata\332A\004n" + + "ame\202\323\344\223\002=\"8/v2/{name=projects/*/location" + + "s/*/recognizers/*}:undelete:\001*\022\371\001\n\tRecog" + + "nize\022(.google.cloud.speech.v2.RecognizeR" + + "equest\032).google.cloud.speech.v2.Recogniz" + + "eResponse\"\226\001\332A%recognizer,config,config_" + + "mask,content\332A!recognizer,config,config_" + + "mask,uri\202\323\344\223\002D\"?/v2/{recognizer=projects" + + "/*/locations/*/recognizers/*}:recognize:" + + "\001*\022\201\001\n\022StreamingRecognize\0221.google.cloud" + + ".speech.v2.StreamingRecognizeRequest\0322.g" + + "oogle.cloud.speech.v2.StreamingRecognize" + + "Response\"\000(\0010\001\022\204\002\n\016BatchRecognize\022-.goog" + + "le.cloud.speech.v2.BatchRecognizeRequest" + + "\032\035.google.longrunning.Operation\"\243\001\312A+\n\026B" + + "atchRecognizeResponse\022\021OperationMetadata" + + "\332A#recognizer,config,config_mask,files\202\323" + + "\344\223\002I\"D/v2/{recognizer=projects/*/locatio" + + "ns/*/recognizers/*}:batchRecognize:\001*\022\216\001" + + "\n\tGetConfig\022(.google.cloud.speech.v2.Get" + + "ConfigRequest\032\036.google.cloud.speech.v2.C" + + "onfig\"7\332A\004name\202\323\344\223\002*\022(/v2/{name=projects" + + "/*/locations/*/config}\022\261\001\n\014UpdateConfig\022" + + "+.google.cloud.speech.v2.UpdateConfigReq" + + "uest\032\036.google.cloud.speech.v2.Config\"T\332A" + + "\022config,update_mask\202\323\344\223\00292//v2/{config.n" + + "ame=projects/*/locations/*/config}:\006conf" + + "ig\022\367\001\n\021CreateCustomClass\0220.google.cloud." + + "speech.v2.CreateCustomClassRequest\032\035.goo" + + "gle.longrunning.Operation\"\220\001\312A \n\013CustomC" + + "lass\022\021OperationMetadata\332A#parent,custom_" + + "class,custom_class_id\202\323\344\223\002A\"1/v2/{parent" + + "=projects/*/locations/*}/customClasses:\014" + + "custom_class\022\274\001\n\021ListCustomClasses\0220.goo" + + "gle.cloud.speech.v2.ListCustomClassesReq" + + "uest\0321.google.cloud.speech.v2.ListCustom" + + "ClassesResponse\"B\332A\006parent\202\323\344\223\0023\0221/v2/{p" + + "arent=projects/*/locations/*}/customClas" + + "ses\022\246\001\n\016GetCustomClass\022-.google.cloud.sp" + + "eech.v2.GetCustomClassRequest\032#.google.c" + + "loud.speech.v2.CustomClass\"@\332A\004name\202\323\344\223\002" + + "3\0221/v2/{name=projects/*/locations/*/cust" + + "omClasses/*}\022\371\001\n\021UpdateCustomClass\0220.goo" + + "gle.cloud.speech.v2.UpdateCustomClassReq" + + "uest\032\035.google.longrunning.Operation\"\222\001\312A" + + " \n\013CustomClass\022\021OperationMetadata\332A\030cust" + + "om_class,update_mask\202\323\344\223\002N2>/v2/{custom_" + + "class.name=projects/*/locations/*/custom" + + "Classes/*}:\014custom_class\022\311\001\n\021DeleteCusto" + + "mClass\0220.google.cloud.speech.v2.DeleteCu" + + "stomClassRequest\032\035.google.longrunning.Op" + + "eration\"c\312A \n\013CustomClass\022\021OperationMeta" + + "data\332A\004name\202\323\344\223\0023*1/v2/{name=projects/*/" + + "locations/*/customClasses/*}\022\331\001\n\023Undelet" + + "eCustomClass\0222.google.cloud.speech.v2.Un" + + "deleteCustomClassRequest\032\035.google.longru" + + "nning.Operation\"o\312A \n\013CustomClass\022\021Opera" + + "tionMetadata\332A\004name\202\323\344\223\002?\":/v2/{name=pro" + + "jects/*/locations/*/customClasses/*}:und" + + "elete:\001*\022\350\001\n\017CreatePhraseSet\022..google.cl" + + "oud.speech.v2.CreatePhraseSetRequest\032\035.g" + + "oogle.longrunning.Operation\"\205\001\312A\036\n\tPhras" + + "eSet\022\021OperationMetadata\332A\037parent,phrase_" + + "set,phrase_set_id\202\323\344\223\002<\"./v2/{parent=pro" + + "jects/*/locations/*}/phraseSets:\nphrase_" + + "set\022\260\001\n\016ListPhraseSets\022-.google.cloud.sp" + + "eech.v2.ListPhraseSetsRequest\032..google.c" + + "loud.speech.v2.ListPhraseSetsResponse\"?\332" + + "A\006parent\202\323\344\223\0020\022./v2/{parent=projects/*/l" + + "ocations/*}/phraseSets\022\235\001\n\014GetPhraseSet\022" + + "+.google.cloud.speech.v2.GetPhraseSetReq" + + "uest\032!.google.cloud.speech.v2.PhraseSet\"" + + "=\332A\004name\202\323\344\223\0020\022./v2/{name=projects/*/loc" + + "ations/*/phraseSets/*}\022\352\001\n\017UpdatePhraseS" + + "et\022..google.cloud.speech.v2.UpdatePhrase" + + "SetRequest\032\035.google.longrunning.Operatio" + + "n\"\207\001\312A\036\n\tPhraseSet\022\021OperationMetadata\332A\026" + + "phrase_set,update_mask\202\323\344\223\002G29/v2/{phras" + + "e_set.name=projects/*/locations/*/phrase" + + "Sets/*}:\nphrase_set\022\300\001\n\017DeletePhraseSet\022" + + "..google.cloud.speech.v2.DeletePhraseSet" + + "Request\032\035.google.longrunning.Operation\"^" + + "\312A\036\n\tPhraseSet\022\021OperationMetadata\332A\004name" + + "\202\323\344\223\0020*./v2/{name=projects/*/locations/*" + + "/phraseSets/*}\022\320\001\n\021UndeletePhraseSet\0220.g" + + "oogle.cloud.speech.v2.UndeletePhraseSetR" + + "equest\032\035.google.longrunning.Operation\"j\312" + + "A\036\n\tPhraseSet\022\021OperationMetadata\332A\004name\202" + + "\323\344\223\002<\"7/v2/{name=projects/*/locations/*/" + + "phraseSets/*}:undelete:\001*\032I\312A\025speech.goo" + + "gleapis.com\322A.https://www.googleapis.com" + + "/auth/cloud-platformB\211\003\n\032com.google.clou" + + "d.speech.v2B\020CloudSpeechProtoP\001Z2cloud.g" + + "oogle.com/go/speech/apiv2/speechpb;speec" + + "hpb\352Ax\n!cloudkms.googleapis.com/CryptoKe" + + "y\022Sprojects/{project}/locations/{locatio" + + "n}/keyRings/{key_ring}/cryptoKeys/{crypt" + + "o_key}\352A\246\001\n(cloudkms.googleapis.com/Cryp" + + "toKeyVersion\022zprojects/{project}/locatio" + + "ns/{location}/keyRings/{key_ring}/crypto" + + "Keys/{crypto_key}/cryptoKeyVersions/{cry" + + "pto_key_version}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -850,6 +851,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), @@ -1085,7 +1087,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor, new java.lang.String[] { - "TotalBilledDuration", + "RequestId", "TotalBilledDuration", }); internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor = getDescriptor().getMessageTypes().get(19); @@ -1540,6 +1542,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); @@ -1552,6 +1555,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LanguageMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LanguageMetadata.java new file mode 100644 index 000000000000..a80b8da90554 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LanguageMetadata.java @@ -0,0 +1,857 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/locations_metadata.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.speech.v2; + +/** + * + * + *
                  + * The metadata about locales available in a given region. Currently this is
                  + * just the models that are available for each locale
                  + * 
                  + * + * Protobuf type {@code google.cloud.speech.v2.LanguageMetadata} + */ +public final class LanguageMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.LanguageMetadata) + LanguageMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LanguageMetadata.newBuilder() to construct. + private LanguageMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LanguageMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LanguageMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_LanguageMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetModels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_LanguageMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v2.LanguageMetadata.class, + com.google.cloud.speech.v2.LanguageMetadata.Builder.class); + } + + public static final int MODELS_FIELD_NUMBER = 1; + + private static final class ModelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.speech.v2.ModelMetadata> + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_LanguageMetadata_ModelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.speech.v2.ModelMetadata.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField + models_; + + private com.google.protobuf.MapField + internalGetModels() { + if (models_ == null) { + return com.google.protobuf.MapField.emptyMapField(ModelsDefaultEntryHolder.defaultEntry); + } + return models_; + } + + public int getModelsCount() { + return internalGetModels().getMap().size(); + } + /** + * + * + *
                  +   * Map of locale (language code) -> models
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + @java.lang.Override + public boolean containsModels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetModels().getMap().containsKey(key); + } + /** Use {@link #getModelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getModels() { + return getModelsMap(); + } + /** + * + * + *
                  +   * Map of locale (language code) -> models
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + @java.lang.Override + public java.util.Map getModelsMap() { + return internalGetModels().getMap(); + } + /** + * + * + *
                  +   * Map of locale (language code) -> models
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + @java.lang.Override + public /* nullable */ com.google.cloud.speech.v2.ModelMetadata getModelsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.speech.v2.ModelMetadata defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetModels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
                  +   * Map of locale (language code) -> models
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + @java.lang.Override + public com.google.cloud.speech.v2.ModelMetadata getModelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetModels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetModels(), ModelsDefaultEntryHolder.defaultEntry, 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetModels().getMap().entrySet()) { + com.google.protobuf.MapEntry + models__ = + ModelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, models__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.speech.v2.LanguageMetadata)) { + return super.equals(obj); + } + com.google.cloud.speech.v2.LanguageMetadata other = + (com.google.cloud.speech.v2.LanguageMetadata) obj; + + if (!internalGetModels().equals(other.internalGetModels())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetModels().getMap().isEmpty()) { + hash = (37 * hash) + MODELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetModels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.speech.v2.LanguageMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.LanguageMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.LanguageMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.LanguageMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.LanguageMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.LanguageMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.LanguageMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.LanguageMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v2.LanguageMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.LanguageMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v2.LanguageMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.LanguageMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.speech.v2.LanguageMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * The metadata about locales available in a given region. Currently this is
                  +   * just the models that are available for each locale
                  +   * 
                  + * + * Protobuf type {@code google.cloud.speech.v2.LanguageMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.speech.v2.LanguageMetadata) + com.google.cloud.speech.v2.LanguageMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_LanguageMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetModels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableModels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_LanguageMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v2.LanguageMetadata.class, + com.google.cloud.speech.v2.LanguageMetadata.Builder.class); + } + + // Construct using com.google.cloud.speech.v2.LanguageMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableModels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_LanguageMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.speech.v2.LanguageMetadata getDefaultInstanceForType() { + return com.google.cloud.speech.v2.LanguageMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.speech.v2.LanguageMetadata build() { + com.google.cloud.speech.v2.LanguageMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.speech.v2.LanguageMetadata buildPartial() { + com.google.cloud.speech.v2.LanguageMetadata result = + new com.google.cloud.speech.v2.LanguageMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.speech.v2.LanguageMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.models_ = internalGetModels().build(ModelsDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.speech.v2.LanguageMetadata) { + return mergeFrom((com.google.cloud.speech.v2.LanguageMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.speech.v2.LanguageMetadata other) { + if (other == com.google.cloud.speech.v2.LanguageMetadata.getDefaultInstance()) return this; + internalGetMutableModels().mergeFrom(other.internalGetModels()); + bitField0_ |= 0x00000001; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.speech.v2.ModelMetadata> + models__ = + input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModels() + .ensureBuilderMap() + .put(models__.getKey(), models__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private static final class ModelsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.speech.v2.ModelMetadataOrBuilder, + com.google.cloud.speech.v2.ModelMetadata> { + @java.lang.Override + public com.google.cloud.speech.v2.ModelMetadata build( + com.google.cloud.speech.v2.ModelMetadataOrBuilder val) { + if (val instanceof com.google.cloud.speech.v2.ModelMetadata) { + return (com.google.cloud.speech.v2.ModelMetadata) val; + } + return ((com.google.cloud.speech.v2.ModelMetadata.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.speech.v2.ModelMetadata> + defaultEntry() { + return ModelsDefaultEntryHolder.defaultEntry; + } + }; + + private static final ModelsConverter modelsConverter = new ModelsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.speech.v2.ModelMetadataOrBuilder, + com.google.cloud.speech.v2.ModelMetadata, + com.google.cloud.speech.v2.ModelMetadata.Builder> + models_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.speech.v2.ModelMetadataOrBuilder, + com.google.cloud.speech.v2.ModelMetadata, + com.google.cloud.speech.v2.ModelMetadata.Builder> + internalGetModels() { + if (models_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(modelsConverter); + } + return models_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.speech.v2.ModelMetadataOrBuilder, + com.google.cloud.speech.v2.ModelMetadata, + com.google.cloud.speech.v2.ModelMetadata.Builder> + internalGetMutableModels() { + if (models_ == null) { + models_ = new com.google.protobuf.MapFieldBuilder<>(modelsConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return models_; + } + + public int getModelsCount() { + return internalGetModels().ensureBuilderMap().size(); + } + /** + * + * + *
                  +     * Map of locale (language code) -> models
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + @java.lang.Override + public boolean containsModels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetModels().ensureBuilderMap().containsKey(key); + } + /** Use {@link #getModelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getModels() { + return getModelsMap(); + } + /** + * + * + *
                  +     * Map of locale (language code) -> models
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + @java.lang.Override + public java.util.Map + getModelsMap() { + return internalGetModels().getImmutableMap(); + } + /** + * + * + *
                  +     * Map of locale (language code) -> models
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + @java.lang.Override + public /* nullable */ com.google.cloud.speech.v2.ModelMetadata getModelsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.speech.v2.ModelMetadata defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableModels().ensureBuilderMap(); + return map.containsKey(key) ? modelsConverter.build(map.get(key)) : defaultValue; + } + /** + * + * + *
                  +     * Map of locale (language code) -> models
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + @java.lang.Override + public com.google.cloud.speech.v2.ModelMetadata getModelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableModels().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return modelsConverter.build(map.get(key)); + } + + public Builder clearModels() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableModels().clear(); + return this; + } + /** + * + * + *
                  +     * Map of locale (language code) -> models
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + public Builder removeModels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableModels().ensureBuilderMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableModels() { + bitField0_ |= 0x00000001; + return internalGetMutableModels().ensureMessageMap(); + } + /** + * + * + *
                  +     * Map of locale (language code) -> models
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + public Builder putModels(java.lang.String key, com.google.cloud.speech.v2.ModelMetadata value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableModels().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
                  +     * Map of locale (language code) -> models
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + public Builder putAllModels( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableModels().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
                  +     * Map of locale (language code) -> models
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + public com.google.cloud.speech.v2.ModelMetadata.Builder putModelsBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableModels().ensureBuilderMap(); + com.google.cloud.speech.v2.ModelMetadataOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.speech.v2.ModelMetadata.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.speech.v2.ModelMetadata) { + entry = ((com.google.cloud.speech.v2.ModelMetadata) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.speech.v2.ModelMetadata.Builder) entry; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.LanguageMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.LanguageMetadata) + private static final com.google.cloud.speech.v2.LanguageMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.speech.v2.LanguageMetadata(); + } + + public static com.google.cloud.speech.v2.LanguageMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.speech.v2.LanguageMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LanguageMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LanguageMetadataOrBuilder.java new file mode 100644 index 000000000000..fb43984da947 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LanguageMetadataOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/locations_metadata.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.speech.v2; + +public interface LanguageMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.LanguageMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Map of locale (language code) -> models
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + int getModelsCount(); + /** + * + * + *
                  +   * Map of locale (language code) -> models
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + boolean containsModels(java.lang.String key); + /** Use {@link #getModelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getModels(); + /** + * + * + *
                  +   * Map of locale (language code) -> models
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + java.util.Map getModelsMap(); + /** + * + * + *
                  +   * Map of locale (language code) -> models
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + /* nullable */ + com.google.cloud.speech.v2.ModelMetadata getModelsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.speech.v2.ModelMetadata defaultValue); + /** + * + * + *
                  +   * Map of locale (language code) -> models
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelMetadata> models = 1; + */ + com.google.cloud.speech.v2.ModelMetadata getModelsOrThrow(java.lang.String key); +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationsMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationsMetadata.java new file mode 100644 index 000000000000..1cc91d4bc9fe --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationsMetadata.java @@ -0,0 +1,1005 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/locations_metadata.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.speech.v2; + +/** + * + * + *
                  + * Main metadata for the Locations API for STT V2. Currently this is just the
                  + * metadata about locales, models, and features
                  + * 
                  + * + * Protobuf type {@code google.cloud.speech.v2.LocationsMetadata} + */ +public final class LocationsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.LocationsMetadata) + LocationsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LocationsMetadata.newBuilder() to construct. + private LocationsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LocationsMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LocationsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_LocationsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_LocationsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v2.LocationsMetadata.class, + com.google.cloud.speech.v2.LocationsMetadata.Builder.class); + } + + private int bitField0_; + public static final int LANGUAGES_FIELD_NUMBER = 1; + private com.google.cloud.speech.v2.LanguageMetadata languages_; + /** + * + * + *
                  +   * Information about available locales, models, and features represented in
                  +   * the hierarchical structure of locales -> models -> features
                  +   * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + * + * @return Whether the languages field is set. + */ + @java.lang.Override + public boolean hasLanguages() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                  +   * Information about available locales, models, and features represented in
                  +   * the hierarchical structure of locales -> models -> features
                  +   * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + * + * @return The languages. + */ + @java.lang.Override + public com.google.cloud.speech.v2.LanguageMetadata getLanguages() { + return languages_ == null + ? com.google.cloud.speech.v2.LanguageMetadata.getDefaultInstance() + : languages_; + } + /** + * + * + *
                  +   * Information about available locales, models, and features represented in
                  +   * the hierarchical structure of locales -> models -> features
                  +   * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + */ + @java.lang.Override + public com.google.cloud.speech.v2.LanguageMetadataOrBuilder getLanguagesOrBuilder() { + return languages_ == null + ? com.google.cloud.speech.v2.LanguageMetadata.getDefaultInstance() + : languages_; + } + + public static final int ACCESS_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.speech.v2.AccessMetadata accessMetadata_; + /** + * + * + *
                  +   * Information about access metadata for the region and given project.
                  +   * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + * + * @return Whether the accessMetadata field is set. + */ + @java.lang.Override + public boolean hasAccessMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                  +   * Information about access metadata for the region and given project.
                  +   * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + * + * @return The accessMetadata. + */ + @java.lang.Override + public com.google.cloud.speech.v2.AccessMetadata getAccessMetadata() { + return accessMetadata_ == null + ? com.google.cloud.speech.v2.AccessMetadata.getDefaultInstance() + : accessMetadata_; + } + /** + * + * + *
                  +   * Information about access metadata for the region and given project.
                  +   * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + */ + @java.lang.Override + public com.google.cloud.speech.v2.AccessMetadataOrBuilder getAccessMetadataOrBuilder() { + return accessMetadata_ == null + ? com.google.cloud.speech.v2.AccessMetadata.getDefaultInstance() + : accessMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getLanguages()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAccessMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLanguages()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAccessMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.speech.v2.LocationsMetadata)) { + return super.equals(obj); + } + com.google.cloud.speech.v2.LocationsMetadata other = + (com.google.cloud.speech.v2.LocationsMetadata) obj; + + if (hasLanguages() != other.hasLanguages()) return false; + if (hasLanguages()) { + if (!getLanguages().equals(other.getLanguages())) return false; + } + if (hasAccessMetadata() != other.hasAccessMetadata()) return false; + if (hasAccessMetadata()) { + if (!getAccessMetadata().equals(other.getAccessMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLanguages()) { + hash = (37 * hash) + LANGUAGES_FIELD_NUMBER; + hash = (53 * hash) + getLanguages().hashCode(); + } + if (hasAccessMetadata()) { + hash = (37 * hash) + ACCESS_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getAccessMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.speech.v2.LocationsMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.LocationsMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.LocationsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.LocationsMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.LocationsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.LocationsMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.LocationsMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.LocationsMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v2.LocationsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.LocationsMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v2.LocationsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.LocationsMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.speech.v2.LocationsMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * Main metadata for the Locations API for STT V2. Currently this is just the
                  +   * metadata about locales, models, and features
                  +   * 
                  + * + * Protobuf type {@code google.cloud.speech.v2.LocationsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.speech.v2.LocationsMetadata) + com.google.cloud.speech.v2.LocationsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_LocationsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_LocationsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v2.LocationsMetadata.class, + com.google.cloud.speech.v2.LocationsMetadata.Builder.class); + } + + // Construct using com.google.cloud.speech.v2.LocationsMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLanguagesFieldBuilder(); + getAccessMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + languages_ = null; + if (languagesBuilder_ != null) { + languagesBuilder_.dispose(); + languagesBuilder_ = null; + } + accessMetadata_ = null; + if (accessMetadataBuilder_ != null) { + accessMetadataBuilder_.dispose(); + accessMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_LocationsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.speech.v2.LocationsMetadata getDefaultInstanceForType() { + return com.google.cloud.speech.v2.LocationsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.speech.v2.LocationsMetadata build() { + com.google.cloud.speech.v2.LocationsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.speech.v2.LocationsMetadata buildPartial() { + com.google.cloud.speech.v2.LocationsMetadata result = + new com.google.cloud.speech.v2.LocationsMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.speech.v2.LocationsMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.languages_ = languagesBuilder_ == null ? languages_ : languagesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.accessMetadata_ = + accessMetadataBuilder_ == null ? accessMetadata_ : accessMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.speech.v2.LocationsMetadata) { + return mergeFrom((com.google.cloud.speech.v2.LocationsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.speech.v2.LocationsMetadata other) { + if (other == com.google.cloud.speech.v2.LocationsMetadata.getDefaultInstance()) return this; + if (other.hasLanguages()) { + mergeLanguages(other.getLanguages()); + } + if (other.hasAccessMetadata()) { + mergeAccessMetadata(other.getAccessMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getLanguagesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAccessMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.speech.v2.LanguageMetadata languages_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.LanguageMetadata, + com.google.cloud.speech.v2.LanguageMetadata.Builder, + com.google.cloud.speech.v2.LanguageMetadataOrBuilder> + languagesBuilder_; + /** + * + * + *
                  +     * Information about available locales, models, and features represented in
                  +     * the hierarchical structure of locales -> models -> features
                  +     * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + * + * @return Whether the languages field is set. + */ + public boolean hasLanguages() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                  +     * Information about available locales, models, and features represented in
                  +     * the hierarchical structure of locales -> models -> features
                  +     * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + * + * @return The languages. + */ + public com.google.cloud.speech.v2.LanguageMetadata getLanguages() { + if (languagesBuilder_ == null) { + return languages_ == null + ? com.google.cloud.speech.v2.LanguageMetadata.getDefaultInstance() + : languages_; + } else { + return languagesBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * Information about available locales, models, and features represented in
                  +     * the hierarchical structure of locales -> models -> features
                  +     * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + */ + public Builder setLanguages(com.google.cloud.speech.v2.LanguageMetadata value) { + if (languagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + languages_ = value; + } else { + languagesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Information about available locales, models, and features represented in
                  +     * the hierarchical structure of locales -> models -> features
                  +     * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + */ + public Builder setLanguages( + com.google.cloud.speech.v2.LanguageMetadata.Builder builderForValue) { + if (languagesBuilder_ == null) { + languages_ = builderForValue.build(); + } else { + languagesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Information about available locales, models, and features represented in
                  +     * the hierarchical structure of locales -> models -> features
                  +     * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + */ + public Builder mergeLanguages(com.google.cloud.speech.v2.LanguageMetadata value) { + if (languagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && languages_ != null + && languages_ != com.google.cloud.speech.v2.LanguageMetadata.getDefaultInstance()) { + getLanguagesBuilder().mergeFrom(value); + } else { + languages_ = value; + } + } else { + languagesBuilder_.mergeFrom(value); + } + if (languages_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Information about available locales, models, and features represented in
                  +     * the hierarchical structure of locales -> models -> features
                  +     * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + */ + public Builder clearLanguages() { + bitField0_ = (bitField0_ & ~0x00000001); + languages_ = null; + if (languagesBuilder_ != null) { + languagesBuilder_.dispose(); + languagesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * Information about available locales, models, and features represented in
                  +     * the hierarchical structure of locales -> models -> features
                  +     * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + */ + public com.google.cloud.speech.v2.LanguageMetadata.Builder getLanguagesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getLanguagesFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * Information about available locales, models, and features represented in
                  +     * the hierarchical structure of locales -> models -> features
                  +     * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + */ + public com.google.cloud.speech.v2.LanguageMetadataOrBuilder getLanguagesOrBuilder() { + if (languagesBuilder_ != null) { + return languagesBuilder_.getMessageOrBuilder(); + } else { + return languages_ == null + ? com.google.cloud.speech.v2.LanguageMetadata.getDefaultInstance() + : languages_; + } + } + /** + * + * + *
                  +     * Information about available locales, models, and features represented in
                  +     * the hierarchical structure of locales -> models -> features
                  +     * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.LanguageMetadata, + com.google.cloud.speech.v2.LanguageMetadata.Builder, + com.google.cloud.speech.v2.LanguageMetadataOrBuilder> + getLanguagesFieldBuilder() { + if (languagesBuilder_ == null) { + languagesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.LanguageMetadata, + com.google.cloud.speech.v2.LanguageMetadata.Builder, + com.google.cloud.speech.v2.LanguageMetadataOrBuilder>( + getLanguages(), getParentForChildren(), isClean()); + languages_ = null; + } + return languagesBuilder_; + } + + private com.google.cloud.speech.v2.AccessMetadata accessMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.AccessMetadata, + com.google.cloud.speech.v2.AccessMetadata.Builder, + com.google.cloud.speech.v2.AccessMetadataOrBuilder> + accessMetadataBuilder_; + /** + * + * + *
                  +     * Information about access metadata for the region and given project.
                  +     * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + * + * @return Whether the accessMetadata field is set. + */ + public boolean hasAccessMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                  +     * Information about access metadata for the region and given project.
                  +     * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + * + * @return The accessMetadata. + */ + public com.google.cloud.speech.v2.AccessMetadata getAccessMetadata() { + if (accessMetadataBuilder_ == null) { + return accessMetadata_ == null + ? com.google.cloud.speech.v2.AccessMetadata.getDefaultInstance() + : accessMetadata_; + } else { + return accessMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * Information about access metadata for the region and given project.
                  +     * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + */ + public Builder setAccessMetadata(com.google.cloud.speech.v2.AccessMetadata value) { + if (accessMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accessMetadata_ = value; + } else { + accessMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Information about access metadata for the region and given project.
                  +     * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + */ + public Builder setAccessMetadata( + com.google.cloud.speech.v2.AccessMetadata.Builder builderForValue) { + if (accessMetadataBuilder_ == null) { + accessMetadata_ = builderForValue.build(); + } else { + accessMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Information about access metadata for the region and given project.
                  +     * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + */ + public Builder mergeAccessMetadata(com.google.cloud.speech.v2.AccessMetadata value) { + if (accessMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && accessMetadata_ != null + && accessMetadata_ != com.google.cloud.speech.v2.AccessMetadata.getDefaultInstance()) { + getAccessMetadataBuilder().mergeFrom(value); + } else { + accessMetadata_ = value; + } + } else { + accessMetadataBuilder_.mergeFrom(value); + } + if (accessMetadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Information about access metadata for the region and given project.
                  +     * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + */ + public Builder clearAccessMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + accessMetadata_ = null; + if (accessMetadataBuilder_ != null) { + accessMetadataBuilder_.dispose(); + accessMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * Information about access metadata for the region and given project.
                  +     * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + */ + public com.google.cloud.speech.v2.AccessMetadata.Builder getAccessMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAccessMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * Information about access metadata for the region and given project.
                  +     * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + */ + public com.google.cloud.speech.v2.AccessMetadataOrBuilder getAccessMetadataOrBuilder() { + if (accessMetadataBuilder_ != null) { + return accessMetadataBuilder_.getMessageOrBuilder(); + } else { + return accessMetadata_ == null + ? com.google.cloud.speech.v2.AccessMetadata.getDefaultInstance() + : accessMetadata_; + } + } + /** + * + * + *
                  +     * Information about access metadata for the region and given project.
                  +     * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.AccessMetadata, + com.google.cloud.speech.v2.AccessMetadata.Builder, + com.google.cloud.speech.v2.AccessMetadataOrBuilder> + getAccessMetadataFieldBuilder() { + if (accessMetadataBuilder_ == null) { + accessMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.AccessMetadata, + com.google.cloud.speech.v2.AccessMetadata.Builder, + com.google.cloud.speech.v2.AccessMetadataOrBuilder>( + getAccessMetadata(), getParentForChildren(), isClean()); + accessMetadata_ = null; + } + return accessMetadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.LocationsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.LocationsMetadata) + private static final com.google.cloud.speech.v2.LocationsMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.speech.v2.LocationsMetadata(); + } + + public static com.google.cloud.speech.v2.LocationsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.speech.v2.LocationsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationsMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationsMetadataOrBuilder.java new file mode 100644 index 000000000000..73c9f304df90 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationsMetadataOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/locations_metadata.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.speech.v2; + +public interface LocationsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.LocationsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Information about available locales, models, and features represented in
                  +   * the hierarchical structure of locales -> models -> features
                  +   * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + * + * @return Whether the languages field is set. + */ + boolean hasLanguages(); + /** + * + * + *
                  +   * Information about available locales, models, and features represented in
                  +   * the hierarchical structure of locales -> models -> features
                  +   * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + * + * @return The languages. + */ + com.google.cloud.speech.v2.LanguageMetadata getLanguages(); + /** + * + * + *
                  +   * Information about available locales, models, and features represented in
                  +   * the hierarchical structure of locales -> models -> features
                  +   * 
                  + * + * .google.cloud.speech.v2.LanguageMetadata languages = 1; + */ + com.google.cloud.speech.v2.LanguageMetadataOrBuilder getLanguagesOrBuilder(); + + /** + * + * + *
                  +   * Information about access metadata for the region and given project.
                  +   * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + * + * @return Whether the accessMetadata field is set. + */ + boolean hasAccessMetadata(); + /** + * + * + *
                  +   * Information about access metadata for the region and given project.
                  +   * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + * + * @return The accessMetadata. + */ + com.google.cloud.speech.v2.AccessMetadata getAccessMetadata(); + /** + * + * + *
                  +   * Information about access metadata for the region and given project.
                  +   * 
                  + * + * .google.cloud.speech.v2.AccessMetadata access_metadata = 2; + */ + com.google.cloud.speech.v2.AccessMetadataOrBuilder getAccessMetadataOrBuilder(); +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationsMetadataProto.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationsMetadataProto.java new file mode 100644 index 000000000000..8fd04468070d --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationsMetadataProto.java @@ -0,0 +1,170 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/locations_metadata.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.speech.v2; + +public final class LocationsMetadataProto { + private LocationsMetadataProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ModelFeature_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ModelFeature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ModelFeatures_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ModelFeatures_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ModelMetadata_ModelFeaturesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ModelMetadata_ModelFeaturesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_LanguageMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_LanguageMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_LanguageMetadata_ModelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_LanguageMetadata_ModelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_AccessMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_AccessMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_LocationsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_LocationsMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/speech/v2/locations_metad" + + "ata.proto\022\026google.cloud.speech.v2\"6\n\014Mod" + + "elFeature\022\017\n\007feature\030\001 \001(\t\022\025\n\rrelease_st" + + "ate\030\002 \001(\t\"L\n\rModelFeatures\022;\n\rmodel_feat" + + "ure\030\001 \003(\0132$.google.cloud.speech.v2.Model" + + "Feature\"\276\001\n\rModelMetadata\022P\n\016model_featu" + + "res\030\001 \003(\01328.google.cloud.speech.v2.Model" + + "Metadata.ModelFeaturesEntry\032[\n\022ModelFeat" + + "uresEntry\022\013\n\003key\030\001 \001(\t\0224\n\005value\030\002 \001(\0132%." + + "google.cloud.speech.v2.ModelFeatures:\0028\001" + + "\"\256\001\n\020LanguageMetadata\022D\n\006models\030\001 \003(\01324." + + "google.cloud.speech.v2.LanguageMetadata." + + "ModelsEntry\032T\n\013ModelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "4\n\005value\030\002 \001(\0132%.google.cloud.speech.v2." + + "ModelMetadata:\0028\001\"\310\001\n\016AccessMetadata\022N\n\017" + + "constraint_type\030\001 \001(\01625.google.cloud.spe" + + "ech.v2.AccessMetadata.ConstraintType\"f\n\016" + + "ConstraintType\022\037\n\033CONSTRAINT_TYPE_UNSPEC" + + "IFIED\020\000\0223\n/RESOURCE_LOCATIONS_ORG_POLICY" + + "_CREATE_CONSTRAINT\020\001\"\221\001\n\021LocationsMetada" + + "ta\022;\n\tlanguages\030\001 \001(\0132(.google.cloud.spe" + + "ech.v2.LanguageMetadata\022?\n\017access_metada" + + "ta\030\002 \001(\0132&.google.cloud.speech.v2.Access" + + "MetadataBj\n\032com.google.cloud.speech.v2B\026" + + "LocationsMetadataProtoP\001Z2cloud.google.c" + + "om/go/speech/apiv2/speechpb;speechpbb\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_speech_v2_ModelFeature_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_speech_v2_ModelFeature_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v2_ModelFeature_descriptor, + new java.lang.String[] { + "Feature", "ReleaseState", + }); + internal_static_google_cloud_speech_v2_ModelFeatures_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_speech_v2_ModelFeatures_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v2_ModelFeatures_descriptor, + new java.lang.String[] { + "ModelFeature", + }); + internal_static_google_cloud_speech_v2_ModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_speech_v2_ModelMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v2_ModelMetadata_descriptor, + new java.lang.String[] { + "ModelFeatures", + }); + internal_static_google_cloud_speech_v2_ModelMetadata_ModelFeaturesEntry_descriptor = + internal_static_google_cloud_speech_v2_ModelMetadata_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_speech_v2_ModelMetadata_ModelFeaturesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v2_ModelMetadata_ModelFeaturesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_speech_v2_LanguageMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_speech_v2_LanguageMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v2_LanguageMetadata_descriptor, + new java.lang.String[] { + "Models", + }); + internal_static_google_cloud_speech_v2_LanguageMetadata_ModelsEntry_descriptor = + internal_static_google_cloud_speech_v2_LanguageMetadata_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_speech_v2_LanguageMetadata_ModelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v2_LanguageMetadata_ModelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_speech_v2_AccessMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_speech_v2_AccessMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v2_AccessMetadata_descriptor, + new java.lang.String[] { + "ConstraintType", + }); + internal_static_google_cloud_speech_v2_LocationsMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_speech_v2_LocationsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v2_LocationsMetadata_descriptor, + new java.lang.String[] { + "Languages", "AccessMetadata", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelFeature.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelFeature.java new file mode 100644 index 000000000000..a7052fa36074 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelFeature.java @@ -0,0 +1,807 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/locations_metadata.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.speech.v2; + +/** + * + * + *
                  + * Representes a singular feature of a model. If the feature is `recognizer`,
                  + * the release_state of the feature represents the release_state of the model
                  + * 
                  + * + * Protobuf type {@code google.cloud.speech.v2.ModelFeature} + */ +public final class ModelFeature extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ModelFeature) + ModelFeatureOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelFeature.newBuilder() to construct. + private ModelFeature(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelFeature() { + feature_ = ""; + releaseState_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelFeature(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelFeature_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelFeature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v2.ModelFeature.class, + com.google.cloud.speech.v2.ModelFeature.Builder.class); + } + + public static final int FEATURE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object feature_ = ""; + /** + * + * + *
                  +   * The name of the feature (Note: the feature can be `recognizer`)
                  +   * 
                  + * + * string feature = 1; + * + * @return The feature. + */ + @java.lang.Override + public java.lang.String getFeature() { + java.lang.Object ref = feature_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + feature_ = s; + return s; + } + } + /** + * + * + *
                  +   * The name of the feature (Note: the feature can be `recognizer`)
                  +   * 
                  + * + * string feature = 1; + * + * @return The bytes for feature. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFeatureBytes() { + java.lang.Object ref = feature_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + feature_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELEASE_STATE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object releaseState_ = ""; + /** + * + * + *
                  +   * The release state of the feature
                  +   * 
                  + * + * string release_state = 2; + * + * @return The releaseState. + */ + @java.lang.Override + public java.lang.String getReleaseState() { + java.lang.Object ref = releaseState_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseState_ = s; + return s; + } + } + /** + * + * + *
                  +   * The release state of the feature
                  +   * 
                  + * + * string release_state = 2; + * + * @return The bytes for releaseState. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseStateBytes() { + java.lang.Object ref = releaseState_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseState_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feature_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, feature_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseState_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, releaseState_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feature_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, feature_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseState_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, releaseState_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.speech.v2.ModelFeature)) { + return super.equals(obj); + } + com.google.cloud.speech.v2.ModelFeature other = (com.google.cloud.speech.v2.ModelFeature) obj; + + if (!getFeature().equals(other.getFeature())) return false; + if (!getReleaseState().equals(other.getReleaseState())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FEATURE_FIELD_NUMBER; + hash = (53 * hash) + getFeature().hashCode(); + hash = (37 * hash) + RELEASE_STATE_FIELD_NUMBER; + hash = (53 * hash) + getReleaseState().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.speech.v2.ModelFeature parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.ModelFeature parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelFeature parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.ModelFeature parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelFeature parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.ModelFeature parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelFeature parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.ModelFeature parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelFeature parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.ModelFeature parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelFeature parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.ModelFeature parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.speech.v2.ModelFeature prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * Representes a singular feature of a model. If the feature is `recognizer`,
                  +   * the release_state of the feature represents the release_state of the model
                  +   * 
                  + * + * Protobuf type {@code google.cloud.speech.v2.ModelFeature} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.speech.v2.ModelFeature) + com.google.cloud.speech.v2.ModelFeatureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelFeature_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelFeature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v2.ModelFeature.class, + com.google.cloud.speech.v2.ModelFeature.Builder.class); + } + + // Construct using com.google.cloud.speech.v2.ModelFeature.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + feature_ = ""; + releaseState_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelFeature_descriptor; + } + + @java.lang.Override + public com.google.cloud.speech.v2.ModelFeature getDefaultInstanceForType() { + return com.google.cloud.speech.v2.ModelFeature.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.speech.v2.ModelFeature build() { + com.google.cloud.speech.v2.ModelFeature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.speech.v2.ModelFeature buildPartial() { + com.google.cloud.speech.v2.ModelFeature result = + new com.google.cloud.speech.v2.ModelFeature(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.speech.v2.ModelFeature result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.feature_ = feature_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.releaseState_ = releaseState_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.speech.v2.ModelFeature) { + return mergeFrom((com.google.cloud.speech.v2.ModelFeature) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.speech.v2.ModelFeature other) { + if (other == com.google.cloud.speech.v2.ModelFeature.getDefaultInstance()) return this; + if (!other.getFeature().isEmpty()) { + feature_ = other.feature_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getReleaseState().isEmpty()) { + releaseState_ = other.releaseState_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + feature_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + releaseState_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object feature_ = ""; + /** + * + * + *
                  +     * The name of the feature (Note: the feature can be `recognizer`)
                  +     * 
                  + * + * string feature = 1; + * + * @return The feature. + */ + public java.lang.String getFeature() { + java.lang.Object ref = feature_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + feature_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * The name of the feature (Note: the feature can be `recognizer`)
                  +     * 
                  + * + * string feature = 1; + * + * @return The bytes for feature. + */ + public com.google.protobuf.ByteString getFeatureBytes() { + java.lang.Object ref = feature_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + feature_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * The name of the feature (Note: the feature can be `recognizer`)
                  +     * 
                  + * + * string feature = 1; + * + * @param value The feature to set. + * @return This builder for chaining. + */ + public Builder setFeature(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + feature_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * The name of the feature (Note: the feature can be `recognizer`)
                  +     * 
                  + * + * string feature = 1; + * + * @return This builder for chaining. + */ + public Builder clearFeature() { + feature_ = getDefaultInstance().getFeature(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                  +     * The name of the feature (Note: the feature can be `recognizer`)
                  +     * 
                  + * + * string feature = 1; + * + * @param value The bytes for feature to set. + * @return This builder for chaining. + */ + public Builder setFeatureBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + feature_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object releaseState_ = ""; + /** + * + * + *
                  +     * The release state of the feature
                  +     * 
                  + * + * string release_state = 2; + * + * @return The releaseState. + */ + public java.lang.String getReleaseState() { + java.lang.Object ref = releaseState_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseState_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * The release state of the feature
                  +     * 
                  + * + * string release_state = 2; + * + * @return The bytes for releaseState. + */ + public com.google.protobuf.ByteString getReleaseStateBytes() { + java.lang.Object ref = releaseState_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseState_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * The release state of the feature
                  +     * 
                  + * + * string release_state = 2; + * + * @param value The releaseState to set. + * @return This builder for chaining. + */ + public Builder setReleaseState(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + releaseState_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +     * The release state of the feature
                  +     * 
                  + * + * string release_state = 2; + * + * @return This builder for chaining. + */ + public Builder clearReleaseState() { + releaseState_ = getDefaultInstance().getReleaseState(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                  +     * The release state of the feature
                  +     * 
                  + * + * string release_state = 2; + * + * @param value The bytes for releaseState to set. + * @return This builder for chaining. + */ + public Builder setReleaseStateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + releaseState_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ModelFeature) + } + + // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ModelFeature) + private static final com.google.cloud.speech.v2.ModelFeature DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ModelFeature(); + } + + public static com.google.cloud.speech.v2.ModelFeature getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelFeature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.speech.v2.ModelFeature getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelFeatureOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelFeatureOrBuilder.java new file mode 100644 index 000000000000..6bffe993c2d8 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelFeatureOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/locations_metadata.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.speech.v2; + +public interface ModelFeatureOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ModelFeature) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * The name of the feature (Note: the feature can be `recognizer`)
                  +   * 
                  + * + * string feature = 1; + * + * @return The feature. + */ + java.lang.String getFeature(); + /** + * + * + *
                  +   * The name of the feature (Note: the feature can be `recognizer`)
                  +   * 
                  + * + * string feature = 1; + * + * @return The bytes for feature. + */ + com.google.protobuf.ByteString getFeatureBytes(); + + /** + * + * + *
                  +   * The release state of the feature
                  +   * 
                  + * + * string release_state = 2; + * + * @return The releaseState. + */ + java.lang.String getReleaseState(); + /** + * + * + *
                  +   * The release state of the feature
                  +   * 
                  + * + * string release_state = 2; + * + * @return The bytes for releaseState. + */ + com.google.protobuf.ByteString getReleaseStateBytes(); +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelFeatures.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelFeatures.java new file mode 100644 index 000000000000..65ef2ba50f3a --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelFeatures.java @@ -0,0 +1,935 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/locations_metadata.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.speech.v2; + +/** + * + * + *
                  + * Represents the collection of features belonging to a model
                  + * 
                  + * + * Protobuf type {@code google.cloud.speech.v2.ModelFeatures} + */ +public final class ModelFeatures extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ModelFeatures) + ModelFeaturesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelFeatures.newBuilder() to construct. + private ModelFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelFeatures() { + modelFeature_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelFeatures(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v2.ModelFeatures.class, + com.google.cloud.speech.v2.ModelFeatures.Builder.class); + } + + public static final int MODEL_FEATURE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List modelFeature_; + /** + * + * + *
                  +   * Repeated field that contains all features of the model
                  +   * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + @java.lang.Override + public java.util.List getModelFeatureList() { + return modelFeature_; + } + /** + * + * + *
                  +   * Repeated field that contains all features of the model
                  +   * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + @java.lang.Override + public java.util.List + getModelFeatureOrBuilderList() { + return modelFeature_; + } + /** + * + * + *
                  +   * Repeated field that contains all features of the model
                  +   * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + @java.lang.Override + public int getModelFeatureCount() { + return modelFeature_.size(); + } + /** + * + * + *
                  +   * Repeated field that contains all features of the model
                  +   * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + @java.lang.Override + public com.google.cloud.speech.v2.ModelFeature getModelFeature(int index) { + return modelFeature_.get(index); + } + /** + * + * + *
                  +   * Repeated field that contains all features of the model
                  +   * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + @java.lang.Override + public com.google.cloud.speech.v2.ModelFeatureOrBuilder getModelFeatureOrBuilder(int index) { + return modelFeature_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < modelFeature_.size(); i++) { + output.writeMessage(1, modelFeature_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < modelFeature_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, modelFeature_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.speech.v2.ModelFeatures)) { + return super.equals(obj); + } + com.google.cloud.speech.v2.ModelFeatures other = (com.google.cloud.speech.v2.ModelFeatures) obj; + + if (!getModelFeatureList().equals(other.getModelFeatureList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getModelFeatureCount() > 0) { + hash = (37 * hash) + MODEL_FEATURE_FIELD_NUMBER; + hash = (53 * hash) + getModelFeatureList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.speech.v2.ModelFeatures parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.ModelFeatures parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelFeatures parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.ModelFeatures parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelFeatures parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.ModelFeatures parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelFeatures parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.ModelFeatures parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelFeatures parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.ModelFeatures parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelFeatures parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.ModelFeatures parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.speech.v2.ModelFeatures prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * Represents the collection of features belonging to a model
                  +   * 
                  + * + * Protobuf type {@code google.cloud.speech.v2.ModelFeatures} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.speech.v2.ModelFeatures) + com.google.cloud.speech.v2.ModelFeaturesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v2.ModelFeatures.class, + com.google.cloud.speech.v2.ModelFeatures.Builder.class); + } + + // Construct using com.google.cloud.speech.v2.ModelFeatures.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (modelFeatureBuilder_ == null) { + modelFeature_ = java.util.Collections.emptyList(); + } else { + modelFeature_ = null; + modelFeatureBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelFeatures_descriptor; + } + + @java.lang.Override + public com.google.cloud.speech.v2.ModelFeatures getDefaultInstanceForType() { + return com.google.cloud.speech.v2.ModelFeatures.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.speech.v2.ModelFeatures build() { + com.google.cloud.speech.v2.ModelFeatures result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.speech.v2.ModelFeatures buildPartial() { + com.google.cloud.speech.v2.ModelFeatures result = + new com.google.cloud.speech.v2.ModelFeatures(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.speech.v2.ModelFeatures result) { + if (modelFeatureBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + modelFeature_ = java.util.Collections.unmodifiableList(modelFeature_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.modelFeature_ = modelFeature_; + } else { + result.modelFeature_ = modelFeatureBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.speech.v2.ModelFeatures result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.speech.v2.ModelFeatures) { + return mergeFrom((com.google.cloud.speech.v2.ModelFeatures) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.speech.v2.ModelFeatures other) { + if (other == com.google.cloud.speech.v2.ModelFeatures.getDefaultInstance()) return this; + if (modelFeatureBuilder_ == null) { + if (!other.modelFeature_.isEmpty()) { + if (modelFeature_.isEmpty()) { + modelFeature_ = other.modelFeature_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureModelFeatureIsMutable(); + modelFeature_.addAll(other.modelFeature_); + } + onChanged(); + } + } else { + if (!other.modelFeature_.isEmpty()) { + if (modelFeatureBuilder_.isEmpty()) { + modelFeatureBuilder_.dispose(); + modelFeatureBuilder_ = null; + modelFeature_ = other.modelFeature_; + bitField0_ = (bitField0_ & ~0x00000001); + modelFeatureBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getModelFeatureFieldBuilder() + : null; + } else { + modelFeatureBuilder_.addAllMessages(other.modelFeature_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.speech.v2.ModelFeature m = + input.readMessage( + com.google.cloud.speech.v2.ModelFeature.parser(), extensionRegistry); + if (modelFeatureBuilder_ == null) { + ensureModelFeatureIsMutable(); + modelFeature_.add(m); + } else { + modelFeatureBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List modelFeature_ = + java.util.Collections.emptyList(); + + private void ensureModelFeatureIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + modelFeature_ = + new java.util.ArrayList(modelFeature_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.ModelFeature, + com.google.cloud.speech.v2.ModelFeature.Builder, + com.google.cloud.speech.v2.ModelFeatureOrBuilder> + modelFeatureBuilder_; + + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public java.util.List getModelFeatureList() { + if (modelFeatureBuilder_ == null) { + return java.util.Collections.unmodifiableList(modelFeature_); + } else { + return modelFeatureBuilder_.getMessageList(); + } + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public int getModelFeatureCount() { + if (modelFeatureBuilder_ == null) { + return modelFeature_.size(); + } else { + return modelFeatureBuilder_.getCount(); + } + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public com.google.cloud.speech.v2.ModelFeature getModelFeature(int index) { + if (modelFeatureBuilder_ == null) { + return modelFeature_.get(index); + } else { + return modelFeatureBuilder_.getMessage(index); + } + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public Builder setModelFeature(int index, com.google.cloud.speech.v2.ModelFeature value) { + if (modelFeatureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelFeatureIsMutable(); + modelFeature_.set(index, value); + onChanged(); + } else { + modelFeatureBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public Builder setModelFeature( + int index, com.google.cloud.speech.v2.ModelFeature.Builder builderForValue) { + if (modelFeatureBuilder_ == null) { + ensureModelFeatureIsMutable(); + modelFeature_.set(index, builderForValue.build()); + onChanged(); + } else { + modelFeatureBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public Builder addModelFeature(com.google.cloud.speech.v2.ModelFeature value) { + if (modelFeatureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelFeatureIsMutable(); + modelFeature_.add(value); + onChanged(); + } else { + modelFeatureBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public Builder addModelFeature(int index, com.google.cloud.speech.v2.ModelFeature value) { + if (modelFeatureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelFeatureIsMutable(); + modelFeature_.add(index, value); + onChanged(); + } else { + modelFeatureBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public Builder addModelFeature( + com.google.cloud.speech.v2.ModelFeature.Builder builderForValue) { + if (modelFeatureBuilder_ == null) { + ensureModelFeatureIsMutable(); + modelFeature_.add(builderForValue.build()); + onChanged(); + } else { + modelFeatureBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public Builder addModelFeature( + int index, com.google.cloud.speech.v2.ModelFeature.Builder builderForValue) { + if (modelFeatureBuilder_ == null) { + ensureModelFeatureIsMutable(); + modelFeature_.add(index, builderForValue.build()); + onChanged(); + } else { + modelFeatureBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public Builder addAllModelFeature( + java.lang.Iterable values) { + if (modelFeatureBuilder_ == null) { + ensureModelFeatureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modelFeature_); + onChanged(); + } else { + modelFeatureBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public Builder clearModelFeature() { + if (modelFeatureBuilder_ == null) { + modelFeature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + modelFeatureBuilder_.clear(); + } + return this; + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public Builder removeModelFeature(int index) { + if (modelFeatureBuilder_ == null) { + ensureModelFeatureIsMutable(); + modelFeature_.remove(index); + onChanged(); + } else { + modelFeatureBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public com.google.cloud.speech.v2.ModelFeature.Builder getModelFeatureBuilder(int index) { + return getModelFeatureFieldBuilder().getBuilder(index); + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public com.google.cloud.speech.v2.ModelFeatureOrBuilder getModelFeatureOrBuilder(int index) { + if (modelFeatureBuilder_ == null) { + return modelFeature_.get(index); + } else { + return modelFeatureBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public java.util.List + getModelFeatureOrBuilderList() { + if (modelFeatureBuilder_ != null) { + return modelFeatureBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(modelFeature_); + } + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public com.google.cloud.speech.v2.ModelFeature.Builder addModelFeatureBuilder() { + return getModelFeatureFieldBuilder() + .addBuilder(com.google.cloud.speech.v2.ModelFeature.getDefaultInstance()); + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public com.google.cloud.speech.v2.ModelFeature.Builder addModelFeatureBuilder(int index) { + return getModelFeatureFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v2.ModelFeature.getDefaultInstance()); + } + /** + * + * + *
                  +     * Repeated field that contains all features of the model
                  +     * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + public java.util.List + getModelFeatureBuilderList() { + return getModelFeatureFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.ModelFeature, + com.google.cloud.speech.v2.ModelFeature.Builder, + com.google.cloud.speech.v2.ModelFeatureOrBuilder> + getModelFeatureFieldBuilder() { + if (modelFeatureBuilder_ == null) { + modelFeatureBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.ModelFeature, + com.google.cloud.speech.v2.ModelFeature.Builder, + com.google.cloud.speech.v2.ModelFeatureOrBuilder>( + modelFeature_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + modelFeature_ = null; + } + return modelFeatureBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ModelFeatures) + } + + // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ModelFeatures) + private static final com.google.cloud.speech.v2.ModelFeatures DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ModelFeatures(); + } + + public static com.google.cloud.speech.v2.ModelFeatures getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.speech.v2.ModelFeatures getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelFeaturesOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelFeaturesOrBuilder.java new file mode 100644 index 000000000000..b777996a7069 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelFeaturesOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/locations_metadata.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.speech.v2; + +public interface ModelFeaturesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ModelFeatures) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Repeated field that contains all features of the model
                  +   * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + java.util.List getModelFeatureList(); + /** + * + * + *
                  +   * Repeated field that contains all features of the model
                  +   * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + com.google.cloud.speech.v2.ModelFeature getModelFeature(int index); + /** + * + * + *
                  +   * Repeated field that contains all features of the model
                  +   * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + int getModelFeatureCount(); + /** + * + * + *
                  +   * Repeated field that contains all features of the model
                  +   * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + java.util.List + getModelFeatureOrBuilderList(); + /** + * + * + *
                  +   * Repeated field that contains all features of the model
                  +   * 
                  + * + * repeated .google.cloud.speech.v2.ModelFeature model_feature = 1; + */ + com.google.cloud.speech.v2.ModelFeatureOrBuilder getModelFeatureOrBuilder(int index); +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelMetadata.java new file mode 100644 index 000000000000..2d4fb5076fd2 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelMetadata.java @@ -0,0 +1,863 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/locations_metadata.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.speech.v2; + +/** + * + * + *
                  + * The metadata about the models in a given region for a specific locale.
                  + * Currently this is just the features of the model
                  + * 
                  + * + * Protobuf type {@code google.cloud.speech.v2.ModelMetadata} + */ +public final class ModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ModelMetadata) + ModelMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelMetadata.newBuilder() to construct. + private ModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetModelFeatures(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v2.ModelMetadata.class, + com.google.cloud.speech.v2.ModelMetadata.Builder.class); + } + + public static final int MODEL_FEATURES_FIELD_NUMBER = 1; + + private static final class ModelFeaturesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.speech.v2.ModelFeatures> + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelMetadata_ModelFeaturesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.speech.v2.ModelFeatures.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField + modelFeatures_; + + private com.google.protobuf.MapField + internalGetModelFeatures() { + if (modelFeatures_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ModelFeaturesDefaultEntryHolder.defaultEntry); + } + return modelFeatures_; + } + + public int getModelFeaturesCount() { + return internalGetModelFeatures().getMap().size(); + } + /** + * + * + *
                  +   * Map of the model name -> features of that model
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + @java.lang.Override + public boolean containsModelFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetModelFeatures().getMap().containsKey(key); + } + /** Use {@link #getModelFeaturesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getModelFeatures() { + return getModelFeaturesMap(); + } + /** + * + * + *
                  +   * Map of the model name -> features of that model
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + @java.lang.Override + public java.util.Map + getModelFeaturesMap() { + return internalGetModelFeatures().getMap(); + } + /** + * + * + *
                  +   * Map of the model name -> features of that model
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + @java.lang.Override + public /* nullable */ com.google.cloud.speech.v2.ModelFeatures getModelFeaturesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.speech.v2.ModelFeatures defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetModelFeatures().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
                  +   * Map of the model name -> features of that model
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + @java.lang.Override + public com.google.cloud.speech.v2.ModelFeatures getModelFeaturesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetModelFeatures().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetModelFeatures(), ModelFeaturesDefaultEntryHolder.defaultEntry, 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetModelFeatures().getMap().entrySet()) { + com.google.protobuf.MapEntry + modelFeatures__ = + ModelFeaturesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, modelFeatures__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.speech.v2.ModelMetadata)) { + return super.equals(obj); + } + com.google.cloud.speech.v2.ModelMetadata other = (com.google.cloud.speech.v2.ModelMetadata) obj; + + if (!internalGetModelFeatures().equals(other.internalGetModelFeatures())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetModelFeatures().getMap().isEmpty()) { + hash = (37 * hash) + MODEL_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + internalGetModelFeatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.speech.v2.ModelMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.ModelMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.ModelMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.ModelMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.ModelMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.ModelMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v2.ModelMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.ModelMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.speech.v2.ModelMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * The metadata about the models in a given region for a specific locale.
                  +   * Currently this is just the features of the model
                  +   * 
                  + * + * Protobuf type {@code google.cloud.speech.v2.ModelMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.speech.v2.ModelMetadata) + com.google.cloud.speech.v2.ModelMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetModelFeatures(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableModelFeatures(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v2.ModelMetadata.class, + com.google.cloud.speech.v2.ModelMetadata.Builder.class); + } + + // Construct using com.google.cloud.speech.v2.ModelMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableModelFeatures().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.LocationsMetadataProto + .internal_static_google_cloud_speech_v2_ModelMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.speech.v2.ModelMetadata getDefaultInstanceForType() { + return com.google.cloud.speech.v2.ModelMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.speech.v2.ModelMetadata build() { + com.google.cloud.speech.v2.ModelMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.speech.v2.ModelMetadata buildPartial() { + com.google.cloud.speech.v2.ModelMetadata result = + new com.google.cloud.speech.v2.ModelMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.speech.v2.ModelMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelFeatures_ = + internalGetModelFeatures().build(ModelFeaturesDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.speech.v2.ModelMetadata) { + return mergeFrom((com.google.cloud.speech.v2.ModelMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.speech.v2.ModelMetadata other) { + if (other == com.google.cloud.speech.v2.ModelMetadata.getDefaultInstance()) return this; + internalGetMutableModelFeatures().mergeFrom(other.internalGetModelFeatures()); + bitField0_ |= 0x00000001; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.speech.v2.ModelFeatures> + modelFeatures__ = + input.readMessage( + ModelFeaturesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModelFeatures() + .ensureBuilderMap() + .put(modelFeatures__.getKey(), modelFeatures__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private static final class ModelFeaturesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.speech.v2.ModelFeaturesOrBuilder, + com.google.cloud.speech.v2.ModelFeatures> { + @java.lang.Override + public com.google.cloud.speech.v2.ModelFeatures build( + com.google.cloud.speech.v2.ModelFeaturesOrBuilder val) { + if (val instanceof com.google.cloud.speech.v2.ModelFeatures) { + return (com.google.cloud.speech.v2.ModelFeatures) val; + } + return ((com.google.cloud.speech.v2.ModelFeatures.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.speech.v2.ModelFeatures> + defaultEntry() { + return ModelFeaturesDefaultEntryHolder.defaultEntry; + } + }; + + private static final ModelFeaturesConverter modelFeaturesConverter = + new ModelFeaturesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.speech.v2.ModelFeaturesOrBuilder, + com.google.cloud.speech.v2.ModelFeatures, + com.google.cloud.speech.v2.ModelFeatures.Builder> + modelFeatures_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.speech.v2.ModelFeaturesOrBuilder, + com.google.cloud.speech.v2.ModelFeatures, + com.google.cloud.speech.v2.ModelFeatures.Builder> + internalGetModelFeatures() { + if (modelFeatures_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(modelFeaturesConverter); + } + return modelFeatures_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.speech.v2.ModelFeaturesOrBuilder, + com.google.cloud.speech.v2.ModelFeatures, + com.google.cloud.speech.v2.ModelFeatures.Builder> + internalGetMutableModelFeatures() { + if (modelFeatures_ == null) { + modelFeatures_ = new com.google.protobuf.MapFieldBuilder<>(modelFeaturesConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return modelFeatures_; + } + + public int getModelFeaturesCount() { + return internalGetModelFeatures().ensureBuilderMap().size(); + } + /** + * + * + *
                  +     * Map of the model name -> features of that model
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + @java.lang.Override + public boolean containsModelFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetModelFeatures().ensureBuilderMap().containsKey(key); + } + /** Use {@link #getModelFeaturesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getModelFeatures() { + return getModelFeaturesMap(); + } + /** + * + * + *
                  +     * Map of the model name -> features of that model
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + @java.lang.Override + public java.util.Map + getModelFeaturesMap() { + return internalGetModelFeatures().getImmutableMap(); + } + /** + * + * + *
                  +     * Map of the model name -> features of that model
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + @java.lang.Override + public /* nullable */ com.google.cloud.speech.v2.ModelFeatures getModelFeaturesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.speech.v2.ModelFeatures defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableModelFeatures().ensureBuilderMap(); + return map.containsKey(key) ? modelFeaturesConverter.build(map.get(key)) : defaultValue; + } + /** + * + * + *
                  +     * Map of the model name -> features of that model
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + @java.lang.Override + public com.google.cloud.speech.v2.ModelFeatures getModelFeaturesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableModelFeatures().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return modelFeaturesConverter.build(map.get(key)); + } + + public Builder clearModelFeatures() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableModelFeatures().clear(); + return this; + } + /** + * + * + *
                  +     * Map of the model name -> features of that model
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + public Builder removeModelFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableModelFeatures().ensureBuilderMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableModelFeatures() { + bitField0_ |= 0x00000001; + return internalGetMutableModelFeatures().ensureMessageMap(); + } + /** + * + * + *
                  +     * Map of the model name -> features of that model
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + public Builder putModelFeatures( + java.lang.String key, com.google.cloud.speech.v2.ModelFeatures value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableModelFeatures().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
                  +     * Map of the model name -> features of that model
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + public Builder putAllModelFeatures( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableModelFeatures().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
                  +     * Map of the model name -> features of that model
                  +     * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + public com.google.cloud.speech.v2.ModelFeatures.Builder putModelFeaturesBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableModelFeatures().ensureBuilderMap(); + com.google.cloud.speech.v2.ModelFeaturesOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.speech.v2.ModelFeatures.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.speech.v2.ModelFeatures) { + entry = ((com.google.cloud.speech.v2.ModelFeatures) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.speech.v2.ModelFeatures.Builder) entry; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ModelMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ModelMetadata) + private static final com.google.cloud.speech.v2.ModelMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ModelMetadata(); + } + + public static com.google.cloud.speech.v2.ModelMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.speech.v2.ModelMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelMetadataOrBuilder.java new file mode 100644 index 000000000000..335c88b8dca0 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ModelMetadataOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/locations_metadata.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.speech.v2; + +public interface ModelMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ModelMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Map of the model name -> features of that model
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + int getModelFeaturesCount(); + /** + * + * + *
                  +   * Map of the model name -> features of that model
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + boolean containsModelFeatures(java.lang.String key); + /** Use {@link #getModelFeaturesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getModelFeatures(); + /** + * + * + *
                  +   * Map of the model name -> features of that model
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + java.util.Map getModelFeaturesMap(); + /** + * + * + *
                  +   * Map of the model name -> features of that model
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + /* nullable */ + com.google.cloud.speech.v2.ModelFeatures getModelFeaturesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.speech.v2.ModelFeatures defaultValue); + /** + * + * + *
                  +   * Map of the model name -> features of that model
                  +   * 
                  + * + * map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1; + */ + com.google.cloud.speech.v2.ModelFeatures getModelFeaturesOrThrow(java.lang.String key); +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java index 199c726e0954..80048319b468 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java @@ -1202,7 +1202,7 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetR * * * @deprecated google.cloud.speech.v2.OperationMetadata.update_config_request is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=419 + * google/cloud/speech/v2/cloud_speech.proto;l=420 * @return Whether the updateConfigRequest field is set. */ @java.lang.Override @@ -1222,7 +1222,7 @@ public boolean hasUpdateConfigRequest() { * * * @deprecated google.cloud.speech.v2.OperationMetadata.update_config_request is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=419 + * google/cloud/speech/v2/cloud_speech.proto;l=420 * @return The updateConfigRequest. */ @java.lang.Override @@ -6079,7 +6079,7 @@ public Builder clearUndeletePhraseSetRequest() { * * * @deprecated google.cloud.speech.v2.OperationMetadata.update_config_request is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=419 + * google/cloud/speech/v2/cloud_speech.proto;l=420 * @return Whether the updateConfigRequest field is set. */ @java.lang.Override @@ -6099,7 +6099,7 @@ public boolean hasUpdateConfigRequest() { * * * @deprecated google.cloud.speech.v2.OperationMetadata.update_config_request is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=419 + * google/cloud/speech/v2/cloud_speech.proto;l=420 * @return The updateConfigRequest. */ @java.lang.Override diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java index 1347b02c94d0..948866a1e3a4 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java @@ -685,7 +685,7 @@ public interface OperationMetadataOrBuilder * * * @deprecated google.cloud.speech.v2.OperationMetadata.update_config_request is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=419 + * google/cloud/speech/v2/cloud_speech.proto;l=420 * @return Whether the updateConfigRequest field is set. */ @java.lang.Deprecated @@ -702,7 +702,7 @@ public interface OperationMetadataOrBuilder * * * @deprecated google.cloud.speech.v2.OperationMetadata.update_config_request is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=419 + * google/cloud/speech/v2/cloud_speech.proto;l=420 * @return The updateConfigRequest. */ @java.lang.Deprecated diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java index b38ee1d933ac..55acd504a3e8 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java @@ -38,7 +38,9 @@ private RecognitionResponseMetadata(com.google.protobuf.GeneratedMessageV3.Build super(builder); } - private RecognitionResponseMetadata() {} + private RecognitionResponseMetadata() { + requestId_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -62,6 +64,57 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; + public static final int REQUEST_ID_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
                  +   * Global request identifier auto-generated by the API.
                  +   * 
                  + * + * string request_id = 9 [(.google.api.field_info) = { ... } + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
                  +   * Global request identifier auto-generated by the API.
                  +   * 
                  + * + * string request_id = 9 [(.google.api.field_info) = { ... } + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int TOTAL_BILLED_DURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration totalBilledDuration_; /** @@ -129,6 +182,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getTotalBilledDuration()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, requestId_); + } getUnknownFields().writeTo(output); } @@ -141,6 +197,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTotalBilledDuration()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, requestId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -157,6 +216,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.speech.v2.RecognitionResponseMetadata other = (com.google.cloud.speech.v2.RecognitionResponseMetadata) obj; + if (!getRequestId().equals(other.getRequestId())) return false; if (hasTotalBilledDuration() != other.hasTotalBilledDuration()) return false; if (hasTotalBilledDuration()) { if (!getTotalBilledDuration().equals(other.getTotalBilledDuration())) return false; @@ -172,6 +232,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); if (hasTotalBilledDuration()) { hash = (37 * hash) + TOTAL_BILLED_DURATION_FIELD_NUMBER; hash = (53 * hash) + getTotalBilledDuration().hashCode(); @@ -325,6 +387,7 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + requestId_ = ""; totalBilledDuration_ = null; if (totalBilledDurationBuilder_ != null) { totalBilledDurationBuilder_.dispose(); @@ -366,8 +429,11 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.RecognitionResponseMetadata result) { int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { + result.requestId_ = requestId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { result.totalBilledDuration_ = totalBilledDurationBuilder_ == null ? totalBilledDuration_ @@ -423,6 +489,11 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.speech.v2.RecognitionResponseMetadata other) { if (other == com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000001; + onChanged(); + } if (other.hasTotalBilledDuration()) { mergeTotalBilledDuration(other.getTotalBilledDuration()); } @@ -456,9 +527,15 @@ public Builder mergeFrom( { input.readMessage( getTotalBilledDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case 50 + case 74: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -478,6 +555,112 @@ public Builder mergeFrom( private int bitField0_; + private java.lang.Object requestId_ = ""; + /** + * + * + *
                  +     * Global request identifier auto-generated by the API.
                  +     * 
                  + * + * string request_id = 9 [(.google.api.field_info) = { ... } + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * Global request identifier auto-generated by the API.
                  +     * 
                  + * + * string request_id = 9 [(.google.api.field_info) = { ... } + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * Global request identifier auto-generated by the API.
                  +     * 
                  + * + * string request_id = 9 [(.google.api.field_info) = { ... } + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Global request identifier auto-generated by the API.
                  +     * 
                  + * + * string request_id = 9 [(.google.api.field_info) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Global request identifier auto-generated by the API.
                  +     * 
                  + * + * string request_id = 9 [(.google.api.field_info) = { ... } + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + private com.google.protobuf.Duration totalBilledDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -496,7 +679,7 @@ public Builder mergeFrom( * @return Whether the totalBilledDuration field is set. */ public boolean hasTotalBilledDuration() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -536,7 +719,7 @@ public Builder setTotalBilledDuration(com.google.protobuf.Duration value) { } else { totalBilledDurationBuilder_.setMessage(value); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -555,7 +738,7 @@ public Builder setTotalBilledDuration(com.google.protobuf.Duration.Builder build } else { totalBilledDurationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -570,7 +753,7 @@ public Builder setTotalBilledDuration(com.google.protobuf.Duration.Builder build */ public Builder mergeTotalBilledDuration(com.google.protobuf.Duration value) { if (totalBilledDurationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) + if (((bitField0_ & 0x00000002) != 0) && totalBilledDuration_ != null && totalBilledDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledDurationBuilder().mergeFrom(value); @@ -581,7 +764,7 @@ public Builder mergeTotalBilledDuration(com.google.protobuf.Duration value) { totalBilledDurationBuilder_.mergeFrom(value); } if (totalBilledDuration_ != null) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); } return this; @@ -596,7 +779,7 @@ public Builder mergeTotalBilledDuration(com.google.protobuf.Duration value) { * .google.protobuf.Duration total_billed_duration = 6; */ public Builder clearTotalBilledDuration() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); totalBilledDuration_ = null; if (totalBilledDurationBuilder_ != null) { totalBilledDurationBuilder_.dispose(); @@ -615,7 +798,7 @@ public Builder clearTotalBilledDuration() { * .google.protobuf.Duration total_billed_duration = 6; */ public com.google.protobuf.Duration.Builder getTotalBilledDurationBuilder() { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return getTotalBilledDurationFieldBuilder().getBuilder(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java index 6b1eef13a433..b811cbdb96ee 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java @@ -24,6 +24,31 @@ public interface RecognitionResponseMetadataOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognitionResponseMetadata) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                  +   * Global request identifier auto-generated by the API.
                  +   * 
                  + * + * string request_id = 9 [(.google.api.field_info) = { ... } + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
                  +   * Global request identifier auto-generated by the API.
                  +   * 
                  + * + * string request_id = 9 [(.google.api.field_info) = { ... } + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + /** * * diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java index e163632076aa..1993af39d99f 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java @@ -428,7 +428,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * string model = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.speech.v2.Recognizer.model is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=603 + * google/cloud/speech/v2/cloud_speech.proto;l=604 * @return The model. */ @java.lang.Override @@ -466,7 +466,7 @@ public java.lang.String getModel() { * string model = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.speech.v2.Recognizer.model is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=603 + * google/cloud/speech/v2/cloud_speech.proto;l=604 * @return The bytes for model. */ @java.lang.Override @@ -516,7 +516,7 @@ public com.google.protobuf.ByteString getModelBytes() { * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @return A list containing the languageCodes. */ @java.lang.Deprecated @@ -551,7 +551,7 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() { * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @return The count of languageCodes. */ @java.lang.Deprecated @@ -586,7 +586,7 @@ public int getLanguageCodesCount() { * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -622,7 +622,7 @@ public java.lang.String getLanguageCodes(int index) { * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ @@ -2398,7 +2398,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * string model = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.speech.v2.Recognizer.model is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=603 + * google/cloud/speech/v2/cloud_speech.proto;l=604 * @return The model. */ @java.lang.Deprecated @@ -2435,7 +2435,7 @@ public java.lang.String getModel() { * string model = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.speech.v2.Recognizer.model is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=603 + * google/cloud/speech/v2/cloud_speech.proto;l=604 * @return The bytes for model. */ @java.lang.Deprecated @@ -2472,7 +2472,7 @@ public com.google.protobuf.ByteString getModelBytes() { * string model = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.speech.v2.Recognizer.model is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=603 + * google/cloud/speech/v2/cloud_speech.proto;l=604 * @param value The model to set. * @return This builder for chaining. */ @@ -2508,7 +2508,7 @@ public Builder setModel(java.lang.String value) { * string model = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.speech.v2.Recognizer.model is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=603 + * google/cloud/speech/v2/cloud_speech.proto;l=604 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2540,7 +2540,7 @@ public Builder clearModel() { * string model = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.speech.v2.Recognizer.model is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=603 + * google/cloud/speech/v2/cloud_speech.proto;l=604 * @param value The bytes for model to set. * @return This builder for chaining. */ @@ -2593,7 +2593,7 @@ private void ensureLanguageCodesIsMutable() { * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @return A list containing the languageCodes. */ @java.lang.Deprecated @@ -2629,7 +2629,7 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() { * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @return The count of languageCodes. */ @java.lang.Deprecated @@ -2664,7 +2664,7 @@ public int getLanguageCodesCount() { * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -2700,7 +2700,7 @@ public java.lang.String getLanguageCodes(int index) { * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ @@ -2736,7 +2736,7 @@ public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. @@ -2780,7 +2780,7 @@ public Builder setLanguageCodes(int index, java.lang.String value) { * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @param value The languageCodes to add. * @return This builder for chaining. */ @@ -2823,7 +2823,7 @@ public Builder addLanguageCodes(java.lang.String value) { * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @param values The languageCodes to add. * @return This builder for chaining. */ @@ -2863,7 +2863,7 @@ public Builder addAllLanguageCodes(java.lang.Iterable values) * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2902,7 +2902,7 @@ public Builder clearLanguageCodes() { * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java index 3b5f5dc7edb4..acc8070c369d 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java @@ -129,7 +129,7 @@ public interface RecognizerOrBuilder * string model = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.speech.v2.Recognizer.model is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=603 + * google/cloud/speech/v2/cloud_speech.proto;l=604 * @return The model. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface RecognizerOrBuilder * string model = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.speech.v2.Recognizer.model is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=603 + * google/cloud/speech/v2/cloud_speech.proto;l=604 * @return The bytes for model. */ @java.lang.Deprecated @@ -190,7 +190,7 @@ public interface RecognizerOrBuilder * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @return A list containing the languageCodes. */ @java.lang.Deprecated @@ -223,7 +223,7 @@ public interface RecognizerOrBuilder * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @return The count of languageCodes. */ @java.lang.Deprecated @@ -256,7 +256,7 @@ public interface RecognizerOrBuilder * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -290,7 +290,7 @@ public interface RecognizerOrBuilder * * * @deprecated google.cloud.speech.v2.Recognizer.language_codes is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=622 + * google/cloud/speech/v2/cloud_speech.proto;l=623 * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto b/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto index 50d2757c6dc2..9dde42f2d9aa 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto +++ b/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto @@ -19,6 +19,7 @@ package google.cloud.speech.v2; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; @@ -706,7 +707,11 @@ message Recognizer { // // * WEBM_OPUS: Opus audio frames in a WebM container. // -// * M4A: M4A audio format. +// * MP4_AAC: AAC audio frames in an MP4 container. +// +// * M4A_AAC: AAC audio frames in an M4A container. +// +// * MOV_AAC: AAC audio frames in an MOV container. message AutoDetectDecodingConfig {} // Explicitly specified decoding parameters. @@ -1020,6 +1025,9 @@ message RecognizeRequest { // Metadata about the recognition request and response. message RecognitionResponseMetadata { + // Global request identifier auto-generated by the API. + string request_id = 9 [(google.api.field_info).format = UUID4]; + // When available, billed audio seconds for the corresponding request. google.protobuf.Duration total_billed_duration = 6; } @@ -1273,7 +1281,7 @@ message BatchRecognizeRequest { google.protobuf.FieldMask config_mask = 5; // Audio files with file metadata for ASR. - // The maximum number of files allowed to be specified is 5. + // The maximum number of files allowed to be specified is 15. repeated BatchRecognizeFileMetadata files = 3; // Configuration options for where to output the transcripts of each file. diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/locations_metadata.proto b/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/locations_metadata.proto new file mode 100644 index 000000000000..ef4d844c2cb1 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/locations_metadata.proto @@ -0,0 +1,80 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.speech.v2; + +option go_package = "cloud.google.com/go/speech/apiv2/speechpb;speechpb"; +option java_multiple_files = true; +option java_outer_classname = "LocationsMetadataProto"; +option java_package = "com.google.cloud.speech.v2"; + +// Representes a singular feature of a model. If the feature is `recognizer`, +// the release_state of the feature represents the release_state of the model +message ModelFeature { + // The name of the feature (Note: the feature can be `recognizer`) + string feature = 1; + + // The release state of the feature + string release_state = 2; +} + +// Represents the collection of features belonging to a model +message ModelFeatures { + // Repeated field that contains all features of the model + repeated ModelFeature model_feature = 1; +} + +// The metadata about the models in a given region for a specific locale. +// Currently this is just the features of the model +message ModelMetadata { + // Map of the model name -> features of that model + map model_features = 1; +} + +// The metadata about locales available in a given region. Currently this is +// just the models that are available for each locale +message LanguageMetadata { + // Map of locale (language code) -> models + map models = 1; +} + +// The access metadata for a particular region. This can be applied if the org +// policy for the given project disallows a particular region. +message AccessMetadata { + // Describes the different types of constraints that can be applied on a + // region. + enum ConstraintType { + // Unspecified constraint applied. + CONSTRAINT_TYPE_UNSPECIFIED = 0; + + // The project's org policy disallows the given region. + RESOURCE_LOCATIONS_ORG_POLICY_CREATE_CONSTRAINT = 1; + } + + // Describes the different types of constraints that are applied. + ConstraintType constraint_type = 1; +} + +// Main metadata for the Locations API for STT V2. Currently this is just the +// metadata about locales, models, and features +message LocationsMetadata { + // Information about available locales, models, and features represented in + // the hierarchical structure of locales -> models -> features + LanguageMetadata languages = 1; + + // Information about access metadata for the region and given project. + AccessMetadata access_metadata = 2; +} diff --git a/java-storage-transfer/README.md b/java-storage-transfer/README.md index 0bbdf2c39959..db0c6bd4dc81 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/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-storage-transfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.46.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-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStubSettings.java b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStubSettings.java index a3a6396ee337..51d49a64a456 100644 --- a/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStubSettings.java +++ b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStubSettings.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; @@ -426,6 +427,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "storagetransfer.googleapis.com:443"; } diff --git a/java-storageinsights/README.md b/java-storageinsights/README.md index a6a18760861e..c499899d7c95 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/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.cloud/google-cloud-storageinsights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.31.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-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStubSettings.java b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStubSettings.java index 99b8d4562379..90623181012b 100644 --- a/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStubSettings.java +++ b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStubSettings.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; @@ -385,6 +386,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "storageinsights.googleapis.com:443"; } diff --git a/java-talent/README.md b/java-talent/README.md index bba2df425b84..637aadf4b73f 100644 --- a/java-talent/README.md +++ b/java-talent/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-talent.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/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-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java index b3084237521a..198b8bb53346 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.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; @@ -221,6 +222,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "jobs.googleapis.com:443"; } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java index dd13d8ff34cc..69485477d657 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -126,6 +127,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "jobs.googleapis.com:443"; } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java index e8910c848633..9e49651d454d 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -126,6 +127,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "jobs.googleapis.com:443"; } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java index 6b2972fb4a9a..9da475678ffb 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.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; @@ -292,6 +293,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "jobs.googleapis.com:443"; } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java index d3bd6e7ad53d..e407859f677c 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.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; @@ -220,6 +221,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "jobs.googleapis.com:443"; } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java index 97ccbebe56b4..f72cb407ed6f 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.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; @@ -222,6 +223,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "jobs.googleapis.com:443"; } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java index dcdc7b51c9f6..86f759202b3e 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -127,6 +128,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "jobs.googleapis.com:443"; } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java index 0275130898a8..5806d377cb09 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -127,6 +128,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "jobs.googleapis.com:443"; } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java index 5ed8ef65561d..1b75ac5eb8e9 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.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; @@ -401,6 +402,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "jobs.googleapis.com:443"; } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java index 635675b68887..372cb0dccc9e 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.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; @@ -221,6 +222,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "jobs.googleapis.com:443"; } diff --git a/java-tasks/README.md b/java-tasks/README.md index 153a0a5c6be9..fb52ad5efd0f 100644 --- a/java-tasks/README.md +++ b/java-tasks/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-tasks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.46.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-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java index d25a64fd6128..21c507024724 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.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; @@ -428,6 +429,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudtasks.googleapis.com:443"; } diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java index 16ae5f0a5a11..eb4a1625f9ba 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.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; @@ -465,6 +466,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudtasks.googleapis.com:443"; } diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java index 418e64a8bcc1..8e7c31fe9164 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.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; @@ -429,6 +430,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudtasks.googleapis.com:443"; } diff --git a/java-telcoautomation/README.md b/java-telcoautomation/README.md index 9628f8b0f25c..a4d28afe3546 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/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-telcoautomation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.16.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-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java index 100044f10070..6ec79456f6fe 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java @@ -31,6 +31,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; @@ -1256,6 +1257,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "telcoautomation.googleapis.com:443"; } diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java index 6a295e6393bc..5909bb1c79ff 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java @@ -31,6 +31,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; @@ -1257,6 +1258,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "telcoautomation.googleapis.com:443"; } diff --git a/java-texttospeech/README.md b/java-texttospeech/README.md index 80f33dba3d73..869904a618f7 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/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-texttospeech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/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-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java index c2268b040be5..c83984ea8c9c 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -143,6 +144,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "texttospeech.googleapis.com:443"; } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java index 5871c6f79aee..0a5c2c27ae91 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -133,6 +134,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "texttospeech.googleapis.com:443"; } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java index 0f3683104d03..d791f0ad5ea8 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -144,6 +145,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "texttospeech.googleapis.com:443"; } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java index d795fca689db..b8d1e014afec 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -134,6 +135,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "texttospeech.googleapis.com:443"; } diff --git a/java-tpu/README.md b/java-tpu/README.md index d25653d30065..c94c446ba728 100644 --- a/java-tpu/README.md +++ b/java-tpu/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-tpu.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/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-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java index ca106b6a66cc..d37edbd73cb1 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.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; @@ -528,6 +529,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "tpu.googleapis.com:443"; } diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java index ea234ea5f39e..0f50de980dbf 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.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; @@ -544,6 +545,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "tpu.googleapis.com:443"; } diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java index fd91cb244111..34096bd1ae4c 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.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; @@ -687,6 +688,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "tpu.googleapis.com:443"; } diff --git a/java-trace/README.md b/java-trace/README.md index af1b8fb37438..70325d4fd608 100644 --- a/java-trace/README.md +++ b/java-trace/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-trace.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.46.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-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/TraceServiceStubSettings.java b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/TraceServiceStubSettings.java index 59072efff754..206c7e9aff34 100644 --- a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/TraceServiceStubSettings.java +++ b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/TraceServiceStubSettings.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; @@ -207,6 +208,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudtrace.googleapis.com:443"; } diff --git a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/TraceServiceStubSettings.java b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/TraceServiceStubSettings.java index 0db42d81cc6d..4b21a8e8ef98 100644 --- a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/TraceServiceStubSettings.java +++ b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/TraceServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -133,6 +134,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "cloudtrace.googleapis.com:443"; } diff --git a/java-translate/README.md b/java-translate/README.md index 12282b359d6b..2ebfb2ff7091 100644 --- a/java-translate/README.md +++ b/java-translate/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 @@ -272,7 +272,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-translate.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.46.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-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java index fc10f6850e30..b42886a173a6 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.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; @@ -640,6 +641,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "translate.googleapis.com:443"; } diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java index 0b46ac7aace2..e7209230a599 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.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; @@ -325,6 +326,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "translate.googleapis.com:443"; } diff --git a/java-video-intelligence/README.md b/java-video-intelligence/README.md index 03e4a5a8eb74..1e67b0c00ec1 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/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-video-intelligence.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.45.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-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStubSettings.java index 0a35f0c71ee4..cca693d40baa 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -141,6 +142,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "videointelligence.googleapis.com:443"; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStubSettings.java index 7266225ebea0..3784eabd55aa 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -142,6 +143,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "videointelligence.googleapis.com:443"; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStubSettings.java index 131a4f2b4176..ab8c17a2a5cc 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -142,6 +143,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "videointelligence.googleapis.com:443"; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java index c4be0998ed0a..d9dbb2efc333 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -142,6 +143,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "videointelligence.googleapis.com:443"; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java index 20e67db89a3f..6ebcf98c3fc5 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -123,6 +124,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "videointelligence.googleapis.com:443"; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java index e5435eeeb9ac..05f06ba92a5f 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -142,6 +143,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "videointelligence.googleapis.com:443"; } diff --git a/java-video-live-stream/README.md b/java-video-live-stream/README.md index 525cabdc4c8d..19a24f2660d4 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/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.cloud/google-cloud-live-stream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.48.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-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java index 76a1ca35f6af..1b0bc946d280 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java +++ b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java @@ -390,6 +390,85 @@ * * * + *

                  ListClips + *

                  Returns a list of all clips in the specified channel. + * + *

                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                  + *
                    + *
                  • listClips(ListClipsRequest request) + *

                  + *

                  "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                  + *
                    + *
                  • listClips(ChannelName parent) + *

                  • listClips(String parent) + *

                  + *

                  Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                  + *
                    + *
                  • listClipsPagedCallable() + *

                  • listClipsCallable() + *

                  + * + * + * + *

                  GetClip + *

                  Returns the specified clip. + * + *

                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                  + *
                    + *
                  • getClip(GetClipRequest request) + *

                  + *

                  "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                  + *
                    + *
                  • getClip(ClipName name) + *

                  • getClip(String name) + *

                  + *

                  Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                  + *
                    + *
                  • getClipCallable() + *

                  + * + * + * + *

                  CreateClip + *

                  Creates a clip with the provided clip ID in the specified channel. + * + *

                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                  + *
                    + *
                  • createClipAsync(CreateClipRequest request) + *

                  + *

                  Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                  + *
                    + *
                  • createClipAsync(ChannelName parent, Clip clip, String clipId) + *

                  • createClipAsync(String parent, Clip clip, String clipId) + *

                  + *

                  Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                  + *
                    + *
                  • createClipOperationCallable() + *

                  • createClipCallable() + *

                  + * + * + * + *

                  DeleteClip + *

                  Deletes the specified clip job resource. This method only deletes the clip job and does not delete the VOD clip stored in the GCS. + * + *

                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                  + *
                    + *
                  • deleteClipAsync(DeleteClipRequest request) + *

                  + *

                  Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                  + *
                    + *
                  • deleteClipAsync(ClipName name) + *

                  • deleteClipAsync(String name) + *

                  + *

                  Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                  + *
                    + *
                  • deleteClipOperationCallable() + *

                  • deleteClipCallable() + *

                  + * + * + * *

                  CreateAsset *

                  Creates a Asset with the provided unique ID in the specified region. * @@ -2959,6 +3038,597 @@ public final UnaryCallable deleteEventCallable() { return stub.deleteEventCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all clips in the specified channel. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]");
                  +   *   for (Clip element : livestreamServiceClient.listClips(parent).iterateAll()) {
                  +   *     // doThingsWith(element);
                  +   *   }
                  +   * }
                  +   * }
                  + * + * @param parent Required. Parent value for ListClipsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListClipsPagedResponse listClips(ChannelName parent) { + ListClipsRequest request = + ListClipsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listClips(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all clips in the specified channel. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   String parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString();
                  +   *   for (Clip element : livestreamServiceClient.listClips(parent).iterateAll()) {
                  +   *     // doThingsWith(element);
                  +   *   }
                  +   * }
                  +   * }
                  + * + * @param parent Required. Parent value for ListClipsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListClipsPagedResponse listClips(String parent) { + ListClipsRequest request = ListClipsRequest.newBuilder().setParent(parent).build(); + return listClips(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all clips in the specified channel. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   ListClipsRequest request =
                  +   *       ListClipsRequest.newBuilder()
                  +   *           .setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
                  +   *           .setPageSize(883849137)
                  +   *           .setPageToken("pageToken873572522")
                  +   *           .setFilter("filter-1274492040")
                  +   *           .setOrderBy("orderBy-1207110587")
                  +   *           .build();
                  +   *   for (Clip element : livestreamServiceClient.listClips(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 ListClipsPagedResponse listClips(ListClipsRequest request) { + return listClipsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all clips in the specified channel. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   ListClipsRequest request =
                  +   *       ListClipsRequest.newBuilder()
                  +   *           .setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
                  +   *           .setPageSize(883849137)
                  +   *           .setPageToken("pageToken873572522")
                  +   *           .setFilter("filter-1274492040")
                  +   *           .setOrderBy("orderBy-1207110587")
                  +   *           .build();
                  +   *   ApiFuture future = livestreamServiceClient.listClipsPagedCallable().futureCall(request);
                  +   *   // Do something.
                  +   *   for (Clip element : future.get().iterateAll()) {
                  +   *     // doThingsWith(element);
                  +   *   }
                  +   * }
                  +   * }
                  + */ + public final UnaryCallable listClipsPagedCallable() { + return stub.listClipsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all clips in the specified channel. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   ListClipsRequest request =
                  +   *       ListClipsRequest.newBuilder()
                  +   *           .setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
                  +   *           .setPageSize(883849137)
                  +   *           .setPageToken("pageToken873572522")
                  +   *           .setFilter("filter-1274492040")
                  +   *           .setOrderBy("orderBy-1207110587")
                  +   *           .build();
                  +   *   while (true) {
                  +   *     ListClipsResponse response = livestreamServiceClient.listClipsCallable().call(request);
                  +   *     for (Clip element : response.getClipsList()) {
                  +   *       // doThingsWith(element);
                  +   *     }
                  +   *     String nextPageToken = response.getNextPageToken();
                  +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                  +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                  +   *     } else {
                  +   *       break;
                  +   *     }
                  +   *   }
                  +   * }
                  +   * }
                  + */ + public final UnaryCallable listClipsCallable() { + return stub.listClipsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified clip. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   ClipName name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]");
                  +   *   Clip response = livestreamServiceClient.getClip(name);
                  +   * }
                  +   * }
                  + * + * @param name Required. Name of the resource, in the following form: + * `projects/{project}/locations/{location}/channels/{channel}/clips/{clip}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Clip getClip(ClipName name) { + GetClipRequest request = + GetClipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getClip(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified clip. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   String name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString();
                  +   *   Clip response = livestreamServiceClient.getClip(name);
                  +   * }
                  +   * }
                  + * + * @param name Required. Name of the resource, in the following form: + * `projects/{project}/locations/{location}/channels/{channel}/clips/{clip}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Clip getClip(String name) { + GetClipRequest request = GetClipRequest.newBuilder().setName(name).build(); + return getClip(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified clip. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   GetClipRequest request =
                  +   *       GetClipRequest.newBuilder()
                  +   *           .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString())
                  +   *           .build();
                  +   *   Clip response = livestreamServiceClient.getClip(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 Clip getClip(GetClipRequest request) { + return getClipCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified clip. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   GetClipRequest request =
                  +   *       GetClipRequest.newBuilder()
                  +   *           .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString())
                  +   *           .build();
                  +   *   ApiFuture future = livestreamServiceClient.getClipCallable().futureCall(request);
                  +   *   // Do something.
                  +   *   Clip response = future.get();
                  +   * }
                  +   * }
                  + */ + public final UnaryCallable getClipCallable() { + return stub.getClipCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a clip with the provided clip ID in the specified channel. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]");
                  +   *   Clip clip = Clip.newBuilder().build();
                  +   *   String clipId = "clipId-1357703029";
                  +   *   Clip response = livestreamServiceClient.createClipAsync(parent, clip, clipId).get();
                  +   * }
                  +   * }
                  + * + * @param parent Required. The parent resource name, in the following form: + * `projects/{project}/locations/{location}/channels/{channel}`. + * @param clip Required. The resource being created + * @param clipId Required. Id of the requesting object in the following form: + *

                  1. 1 character minimum, 63 characters maximum 2. Only contains letters, digits, + * underscores, and hyphens + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createClipAsync( + ChannelName parent, Clip clip, String clipId) { + CreateClipRequest request = + CreateClipRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setClip(clip) + .setClipId(clipId) + .build(); + return createClipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a clip with the provided clip ID in the specified channel. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   String parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString();
                  +   *   Clip clip = Clip.newBuilder().build();
                  +   *   String clipId = "clipId-1357703029";
                  +   *   Clip response = livestreamServiceClient.createClipAsync(parent, clip, clipId).get();
                  +   * }
                  +   * }
                  + * + * @param parent Required. The parent resource name, in the following form: + * `projects/{project}/locations/{location}/channels/{channel}`. + * @param clip Required. The resource being created + * @param clipId Required. Id of the requesting object in the following form: + *

                  1. 1 character minimum, 63 characters maximum 2. Only contains letters, digits, + * underscores, and hyphens + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createClipAsync( + String parent, Clip clip, String clipId) { + CreateClipRequest request = + CreateClipRequest.newBuilder().setParent(parent).setClip(clip).setClipId(clipId).build(); + return createClipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a clip with the provided clip ID in the specified channel. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   CreateClipRequest request =
                  +   *       CreateClipRequest.newBuilder()
                  +   *           .setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
                  +   *           .setClipId("clipId-1357703029")
                  +   *           .setClip(Clip.newBuilder().build())
                  +   *           .setRequestId("requestId693933066")
                  +   *           .build();
                  +   *   Clip response = livestreamServiceClient.createClipAsync(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 createClipAsync(CreateClipRequest request) { + return createClipOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a clip with the provided clip ID in the specified channel. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   CreateClipRequest request =
                  +   *       CreateClipRequest.newBuilder()
                  +   *           .setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
                  +   *           .setClipId("clipId-1357703029")
                  +   *           .setClip(Clip.newBuilder().build())
                  +   *           .setRequestId("requestId693933066")
                  +   *           .build();
                  +   *   OperationFuture future =
                  +   *       livestreamServiceClient.createClipOperationCallable().futureCall(request);
                  +   *   // Do something.
                  +   *   Clip response = future.get();
                  +   * }
                  +   * }
                  + */ + public final OperationCallable + createClipOperationCallable() { + return stub.createClipOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a clip with the provided clip ID in the specified channel. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   CreateClipRequest request =
                  +   *       CreateClipRequest.newBuilder()
                  +   *           .setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
                  +   *           .setClipId("clipId-1357703029")
                  +   *           .setClip(Clip.newBuilder().build())
                  +   *           .setRequestId("requestId693933066")
                  +   *           .build();
                  +   *   ApiFuture future =
                  +   *       livestreamServiceClient.createClipCallable().futureCall(request);
                  +   *   // Do something.
                  +   *   Operation response = future.get();
                  +   * }
                  +   * }
                  + */ + public final UnaryCallable createClipCallable() { + return stub.createClipCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified clip job resource. This method only deletes the clip job and does not + * delete the VOD clip stored in the GCS. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   ClipName name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]");
                  +   *   livestreamServiceClient.deleteClipAsync(name).get();
                  +   * }
                  +   * }
                  + * + * @param name Required. The name of the clip resource, in the form of: + * `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteClipAsync(ClipName name) { + DeleteClipRequest request = + DeleteClipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteClipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified clip job resource. This method only deletes the clip job and does not + * delete the VOD clip stored in the GCS. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   String name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString();
                  +   *   livestreamServiceClient.deleteClipAsync(name).get();
                  +   * }
                  +   * }
                  + * + * @param name Required. The name of the clip resource, in the form of: + * `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteClipAsync(String name) { + DeleteClipRequest request = DeleteClipRequest.newBuilder().setName(name).build(); + return deleteClipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified clip job resource. This method only deletes the clip job and does not + * delete the VOD clip stored in the GCS. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   DeleteClipRequest request =
                  +   *       DeleteClipRequest.newBuilder()
                  +   *           .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString())
                  +   *           .setRequestId("requestId693933066")
                  +   *           .build();
                  +   *   livestreamServiceClient.deleteClipAsync(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 deleteClipAsync( + DeleteClipRequest request) { + return deleteClipOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified clip job resource. This method only deletes the clip job and does not + * delete the VOD clip stored in the GCS. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   DeleteClipRequest request =
                  +   *       DeleteClipRequest.newBuilder()
                  +   *           .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString())
                  +   *           .setRequestId("requestId693933066")
                  +   *           .build();
                  +   *   OperationFuture future =
                  +   *       livestreamServiceClient.deleteClipOperationCallable().futureCall(request);
                  +   *   // Do something.
                  +   *   future.get();
                  +   * }
                  +   * }
                  + */ + public final OperationCallable + deleteClipOperationCallable() { + return stub.deleteClipOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified clip job resource. This method only deletes the clip job and does not + * delete the VOD clip stored in the GCS. + * + *

                  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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
                  +   *   DeleteClipRequest request =
                  +   *       DeleteClipRequest.newBuilder()
                  +   *           .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString())
                  +   *           .setRequestId("requestId693933066")
                  +   *           .build();
                  +   *   ApiFuture future =
                  +   *       livestreamServiceClient.deleteClipCallable().futureCall(request);
                  +   *   // Do something.
                  +   *   future.get();
                  +   * }
                  +   * }
                  + */ + public final UnaryCallable deleteClipCallable() { + return stub.deleteClipCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a Asset with the provided unique ID in the specified region. @@ -4196,6 +4866,71 @@ protected ListEventsFixedSizeCollection createCollection( } } + public static class ListClipsPagedResponse + extends AbstractPagedListResponse< + ListClipsRequest, ListClipsResponse, Clip, ListClipsPage, ListClipsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListClipsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListClipsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListClipsPagedResponse(ListClipsPage page) { + super(page, ListClipsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListClipsPage + extends AbstractPage { + + private ListClipsPage( + PageContext context, + ListClipsResponse response) { + super(context, response); + } + + private static ListClipsPage createEmptyPage() { + return new ListClipsPage(null, null); + } + + @Override + protected ListClipsPage createPage( + PageContext context, + ListClipsResponse response) { + return new ListClipsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListClipsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListClipsRequest, ListClipsResponse, Clip, ListClipsPage, ListClipsFixedSizeCollection> { + + private ListClipsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListClipsFixedSizeCollection createEmptyCollection() { + return new ListClipsFixedSizeCollection(null, 0); + } + + @Override + protected ListClipsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListClipsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListAssetsPagedResponse extends AbstractPagedListResponse< ListAssetsRequest, diff --git a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceSettings.java b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceSettings.java index abbde85c9183..5946f439888d 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceSettings.java +++ b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListAssetsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListChannelsPagedResponse; +import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListClipsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListEventsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListInputsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListLocationsPagedResponse; @@ -217,6 +218,39 @@ public UnaryCallSettings deleteEventSettings() { return ((LivestreamServiceStubSettings) getStubSettings()).deleteEventSettings(); } + /** Returns the object with the settings used for calls to listClips. */ + public PagedCallSettings + listClipsSettings() { + return ((LivestreamServiceStubSettings) getStubSettings()).listClipsSettings(); + } + + /** Returns the object with the settings used for calls to getClip. */ + public UnaryCallSettings getClipSettings() { + return ((LivestreamServiceStubSettings) getStubSettings()).getClipSettings(); + } + + /** Returns the object with the settings used for calls to createClip. */ + public UnaryCallSettings createClipSettings() { + return ((LivestreamServiceStubSettings) getStubSettings()).createClipSettings(); + } + + /** Returns the object with the settings used for calls to createClip. */ + public OperationCallSettings + createClipOperationSettings() { + return ((LivestreamServiceStubSettings) getStubSettings()).createClipOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteClip. */ + public UnaryCallSettings deleteClipSettings() { + return ((LivestreamServiceStubSettings) getStubSettings()).deleteClipSettings(); + } + + /** Returns the object with the settings used for calls to deleteClip. */ + public OperationCallSettings + deleteClipOperationSettings() { + return ((LivestreamServiceStubSettings) getStubSettings()).deleteClipOperationSettings(); + } + /** Returns the object with the settings used for calls to createAsset. */ public UnaryCallSettings createAssetSettings() { return ((LivestreamServiceStubSettings) getStubSettings()).createAssetSettings(); @@ -523,6 +557,39 @@ public UnaryCallSettings.Builder deleteEventSettings( return getStubSettingsBuilder().deleteEventSettings(); } + /** Returns the builder for the settings used for calls to listClips. */ + public PagedCallSettings.Builder + listClipsSettings() { + return getStubSettingsBuilder().listClipsSettings(); + } + + /** Returns the builder for the settings used for calls to getClip. */ + public UnaryCallSettings.Builder getClipSettings() { + return getStubSettingsBuilder().getClipSettings(); + } + + /** Returns the builder for the settings used for calls to createClip. */ + public UnaryCallSettings.Builder createClipSettings() { + return getStubSettingsBuilder().createClipSettings(); + } + + /** Returns the builder for the settings used for calls to createClip. */ + public OperationCallSettings.Builder + createClipOperationSettings() { + return getStubSettingsBuilder().createClipOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteClip. */ + public UnaryCallSettings.Builder deleteClipSettings() { + return getStubSettingsBuilder().deleteClipSettings(); + } + + /** Returns the builder for the settings used for calls to deleteClip. */ + public OperationCallSettings.Builder + deleteClipOperationSettings() { + return getStubSettingsBuilder().deleteClipOperationSettings(); + } + /** Returns the builder for the settings used for calls to createAsset. */ public UnaryCallSettings.Builder createAssetSettings() { return getStubSettingsBuilder().createAssetSettings(); diff --git a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/gapic_metadata.json b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/gapic_metadata.json index 38506d0deb4d..d2df0eea0668 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/gapic_metadata.json +++ b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/gapic_metadata.json @@ -16,6 +16,9 @@ "CreateChannel": { "methods": ["createChannelAsync", "createChannelAsync", "createChannelAsync", "createChannelOperationCallable", "createChannelCallable"] }, + "CreateClip": { + "methods": ["createClipAsync", "createClipAsync", "createClipAsync", "createClipOperationCallable", "createClipCallable"] + }, "CreateEvent": { "methods": ["createEvent", "createEvent", "createEvent", "createEventCallable"] }, @@ -28,6 +31,9 @@ "DeleteChannel": { "methods": ["deleteChannelAsync", "deleteChannelAsync", "deleteChannelAsync", "deleteChannelOperationCallable", "deleteChannelCallable"] }, + "DeleteClip": { + "methods": ["deleteClipAsync", "deleteClipAsync", "deleteClipAsync", "deleteClipOperationCallable", "deleteClipCallable"] + }, "DeleteEvent": { "methods": ["deleteEvent", "deleteEvent", "deleteEvent", "deleteEventCallable"] }, @@ -40,6 +46,9 @@ "GetChannel": { "methods": ["getChannel", "getChannel", "getChannel", "getChannelCallable"] }, + "GetClip": { + "methods": ["getClip", "getClip", "getClip", "getClipCallable"] + }, "GetEvent": { "methods": ["getEvent", "getEvent", "getEvent", "getEventCallable"] }, @@ -58,6 +67,9 @@ "ListChannels": { "methods": ["listChannels", "listChannels", "listChannels", "listChannelsPagedCallable", "listChannelsCallable"] }, + "ListClips": { + "methods": ["listClips", "listClips", "listClips", "listClipsPagedCallable", "listClipsCallable"] + }, "ListEvents": { "methods": ["listEvents", "listEvents", "listEvents", "listEventsPagedCallable", "listEventsCallable"] }, diff --git a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/GrpcLivestreamServiceStub.java b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/GrpcLivestreamServiceStub.java index 7e2eb3e54c2b..be6b1af1e3d2 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/GrpcLivestreamServiceStub.java +++ b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/GrpcLivestreamServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListAssetsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListChannelsPagedResponse; +import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListClipsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListEventsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListInputsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListLocationsPagedResponse; @@ -37,17 +38,21 @@ import com.google.cloud.video.livestream.v1.Asset; import com.google.cloud.video.livestream.v1.Channel; import com.google.cloud.video.livestream.v1.ChannelOperationResponse; +import com.google.cloud.video.livestream.v1.Clip; import com.google.cloud.video.livestream.v1.CreateAssetRequest; import com.google.cloud.video.livestream.v1.CreateChannelRequest; +import com.google.cloud.video.livestream.v1.CreateClipRequest; import com.google.cloud.video.livestream.v1.CreateEventRequest; import com.google.cloud.video.livestream.v1.CreateInputRequest; import com.google.cloud.video.livestream.v1.DeleteAssetRequest; import com.google.cloud.video.livestream.v1.DeleteChannelRequest; +import com.google.cloud.video.livestream.v1.DeleteClipRequest; import com.google.cloud.video.livestream.v1.DeleteEventRequest; import com.google.cloud.video.livestream.v1.DeleteInputRequest; import com.google.cloud.video.livestream.v1.Event; import com.google.cloud.video.livestream.v1.GetAssetRequest; import com.google.cloud.video.livestream.v1.GetChannelRequest; +import com.google.cloud.video.livestream.v1.GetClipRequest; import com.google.cloud.video.livestream.v1.GetEventRequest; import com.google.cloud.video.livestream.v1.GetInputRequest; import com.google.cloud.video.livestream.v1.GetPoolRequest; @@ -56,6 +61,8 @@ import com.google.cloud.video.livestream.v1.ListAssetsResponse; import com.google.cloud.video.livestream.v1.ListChannelsRequest; import com.google.cloud.video.livestream.v1.ListChannelsResponse; +import com.google.cloud.video.livestream.v1.ListClipsRequest; +import com.google.cloud.video.livestream.v1.ListClipsResponse; import com.google.cloud.video.livestream.v1.ListEventsRequest; import com.google.cloud.video.livestream.v1.ListEventsResponse; import com.google.cloud.video.livestream.v1.ListInputsRequest; @@ -223,6 +230,39 @@ public class GrpcLivestreamServiceStub extends LivestreamServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + listClipsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.video.livestream.v1.LivestreamService/ListClips") + .setRequestMarshaller(ProtoUtils.marshaller(ListClipsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListClipsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getClipMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.video.livestream.v1.LivestreamService/GetClip") + .setRequestMarshaller(ProtoUtils.marshaller(GetClipRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Clip.getDefaultInstance())) + .build(); + + private static final MethodDescriptor createClipMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.video.livestream.v1.LivestreamService/CreateClip") + .setRequestMarshaller(ProtoUtils.marshaller(CreateClipRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteClipMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.video.livestream.v1.LivestreamService/DeleteClip") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteClipRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor createAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -327,6 +367,15 @@ public class GrpcLivestreamServiceStub extends LivestreamServiceStub { private final UnaryCallable listEventsPagedCallable; private final UnaryCallable getEventCallable; private final UnaryCallable deleteEventCallable; + private final UnaryCallable listClipsCallable; + private final UnaryCallable listClipsPagedCallable; + private final UnaryCallable getClipCallable; + private final UnaryCallable createClipCallable; + private final OperationCallable + createClipOperationCallable; + private final UnaryCallable deleteClipCallable; + private final OperationCallable + deleteClipOperationCallable; private final UnaryCallable createAssetCallable; private final OperationCallable createAssetOperationCallable; @@ -549,6 +598,46 @@ protected GrpcLivestreamServiceStub( return builder.build(); }) .build(); + GrpcCallSettings listClipsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listClipsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getClipTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getClipMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createClipTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createClipMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteClipTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteClipMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings createAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createAssetMethodDescriptor) @@ -735,6 +824,33 @@ protected GrpcLivestreamServiceStub( this.deleteEventCallable = callableFactory.createUnaryCallable( deleteEventTransportSettings, settings.deleteEventSettings(), clientContext); + this.listClipsCallable = + callableFactory.createUnaryCallable( + listClipsTransportSettings, settings.listClipsSettings(), clientContext); + this.listClipsPagedCallable = + callableFactory.createPagedCallable( + listClipsTransportSettings, settings.listClipsSettings(), clientContext); + this.getClipCallable = + callableFactory.createUnaryCallable( + getClipTransportSettings, settings.getClipSettings(), clientContext); + this.createClipCallable = + callableFactory.createUnaryCallable( + createClipTransportSettings, settings.createClipSettings(), clientContext); + this.createClipOperationCallable = + callableFactory.createOperationCallable( + createClipTransportSettings, + settings.createClipOperationSettings(), + clientContext, + operationsStub); + this.deleteClipCallable = + callableFactory.createUnaryCallable( + deleteClipTransportSettings, settings.deleteClipSettings(), clientContext); + this.deleteClipOperationCallable = + callableFactory.createOperationCallable( + deleteClipTransportSettings, + settings.deleteClipOperationSettings(), + clientContext, + operationsStub); this.createAssetCallable = callableFactory.createUnaryCallable( createAssetTransportSettings, settings.createAssetSettings(), clientContext); @@ -935,6 +1051,43 @@ public UnaryCallable deleteEventCallable() { return deleteEventCallable; } + @Override + public UnaryCallable listClipsCallable() { + return listClipsCallable; + } + + @Override + public UnaryCallable listClipsPagedCallable() { + return listClipsPagedCallable; + } + + @Override + public UnaryCallable getClipCallable() { + return getClipCallable; + } + + @Override + public UnaryCallable createClipCallable() { + return createClipCallable; + } + + @Override + public OperationCallable + createClipOperationCallable() { + return createClipOperationCallable; + } + + @Override + public UnaryCallable deleteClipCallable() { + return deleteClipCallable; + } + + @Override + public OperationCallable + deleteClipOperationCallable() { + return deleteClipOperationCallable; + } + @Override public UnaryCallable createAssetCallable() { return createAssetCallable; diff --git a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/HttpJsonLivestreamServiceStub.java b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/HttpJsonLivestreamServiceStub.java index 5b71c3ad00c9..3d984fd9044e 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/HttpJsonLivestreamServiceStub.java +++ b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/HttpJsonLivestreamServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListAssetsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListChannelsPagedResponse; +import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListClipsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListEventsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListInputsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListLocationsPagedResponse; @@ -45,17 +46,21 @@ import com.google.cloud.video.livestream.v1.Asset; import com.google.cloud.video.livestream.v1.Channel; import com.google.cloud.video.livestream.v1.ChannelOperationResponse; +import com.google.cloud.video.livestream.v1.Clip; import com.google.cloud.video.livestream.v1.CreateAssetRequest; import com.google.cloud.video.livestream.v1.CreateChannelRequest; +import com.google.cloud.video.livestream.v1.CreateClipRequest; import com.google.cloud.video.livestream.v1.CreateEventRequest; import com.google.cloud.video.livestream.v1.CreateInputRequest; import com.google.cloud.video.livestream.v1.DeleteAssetRequest; import com.google.cloud.video.livestream.v1.DeleteChannelRequest; +import com.google.cloud.video.livestream.v1.DeleteClipRequest; import com.google.cloud.video.livestream.v1.DeleteEventRequest; import com.google.cloud.video.livestream.v1.DeleteInputRequest; import com.google.cloud.video.livestream.v1.Event; import com.google.cloud.video.livestream.v1.GetAssetRequest; import com.google.cloud.video.livestream.v1.GetChannelRequest; +import com.google.cloud.video.livestream.v1.GetClipRequest; import com.google.cloud.video.livestream.v1.GetEventRequest; import com.google.cloud.video.livestream.v1.GetInputRequest; import com.google.cloud.video.livestream.v1.GetPoolRequest; @@ -64,6 +69,8 @@ import com.google.cloud.video.livestream.v1.ListAssetsResponse; import com.google.cloud.video.livestream.v1.ListChannelsRequest; import com.google.cloud.video.livestream.v1.ListChannelsResponse; +import com.google.cloud.video.livestream.v1.ListClipsRequest; +import com.google.cloud.video.livestream.v1.ListClipsResponse; import com.google.cloud.video.livestream.v1.ListEventsRequest; import com.google.cloud.video.livestream.v1.ListEventsResponse; import com.google.cloud.video.livestream.v1.ListInputsRequest; @@ -102,6 +109,7 @@ public class HttpJsonLivestreamServiceStub extends LivestreamServiceStub { .add(Channel.getDescriptor()) .add(Input.getDescriptor()) .add(Asset.getDescriptor()) + .add(Clip.getDescriptor()) .add(Pool.getDescriptor()) .add(ChannelOperationResponse.getDescriptor()) .build(); @@ -717,6 +725,156 @@ public class HttpJsonLivestreamServiceStub extends LivestreamServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + listClipsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.video.livestream.v1.LivestreamService/ListClips") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/channels/*}/clips", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListClipsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getClipMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.video.livestream.v1.LivestreamService/GetClip") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/channels/*/clips/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Clip.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createClipMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.video.livestream.v1.LivestreamService/CreateClip") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/channels/*}/clips", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "clipId", request.getClipId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("clip", request.getClip(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateClipRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteClipMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.video.livestream.v1.LivestreamService/DeleteClip") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/channels/*/clips/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteClipRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor createAssetMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1047,6 +1205,15 @@ public class HttpJsonLivestreamServiceStub extends LivestreamServiceStub { private final UnaryCallable listEventsPagedCallable; private final UnaryCallable getEventCallable; private final UnaryCallable deleteEventCallable; + private final UnaryCallable listClipsCallable; + private final UnaryCallable listClipsPagedCallable; + private final UnaryCallable getClipCallable; + private final UnaryCallable createClipCallable; + private final OperationCallable + createClipOperationCallable; + private final UnaryCallable deleteClipCallable; + private final OperationCallable + deleteClipOperationCallable; private final UnaryCallable createAssetCallable; private final OperationCallable createAssetOperationCallable; @@ -1311,6 +1478,50 @@ protected HttpJsonLivestreamServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings listClipsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listClipsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getClipTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getClipMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createClipTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createClipMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteClipTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteClipMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings createAssetTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createAssetMethodDescriptor) @@ -1506,6 +1717,33 @@ protected HttpJsonLivestreamServiceStub( this.deleteEventCallable = callableFactory.createUnaryCallable( deleteEventTransportSettings, settings.deleteEventSettings(), clientContext); + this.listClipsCallable = + callableFactory.createUnaryCallable( + listClipsTransportSettings, settings.listClipsSettings(), clientContext); + this.listClipsPagedCallable = + callableFactory.createPagedCallable( + listClipsTransportSettings, settings.listClipsSettings(), clientContext); + this.getClipCallable = + callableFactory.createUnaryCallable( + getClipTransportSettings, settings.getClipSettings(), clientContext); + this.createClipCallable = + callableFactory.createUnaryCallable( + createClipTransportSettings, settings.createClipSettings(), clientContext); + this.createClipOperationCallable = + callableFactory.createOperationCallable( + createClipTransportSettings, + settings.createClipOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteClipCallable = + callableFactory.createUnaryCallable( + deleteClipTransportSettings, settings.deleteClipSettings(), clientContext); + this.deleteClipOperationCallable = + callableFactory.createOperationCallable( + deleteClipTransportSettings, + settings.deleteClipOperationSettings(), + clientContext, + httpJsonOperationsStub); this.createAssetCallable = callableFactory.createUnaryCallable( createAssetTransportSettings, settings.createAssetSettings(), clientContext); @@ -1578,6 +1816,10 @@ public static List getMethodDescriptors() { methodDescriptors.add(listEventsMethodDescriptor); methodDescriptors.add(getEventMethodDescriptor); methodDescriptors.add(deleteEventMethodDescriptor); + methodDescriptors.add(listClipsMethodDescriptor); + methodDescriptors.add(getClipMethodDescriptor); + methodDescriptors.add(createClipMethodDescriptor); + methodDescriptors.add(deleteClipMethodDescriptor); methodDescriptors.add(createAssetMethodDescriptor); methodDescriptors.add(deleteAssetMethodDescriptor); methodDescriptors.add(getAssetMethodDescriptor); @@ -1736,6 +1978,43 @@ public UnaryCallable deleteEventCallable() { return deleteEventCallable; } + @Override + public UnaryCallable listClipsCallable() { + return listClipsCallable; + } + + @Override + public UnaryCallable listClipsPagedCallable() { + return listClipsPagedCallable; + } + + @Override + public UnaryCallable getClipCallable() { + return getClipCallable; + } + + @Override + public UnaryCallable createClipCallable() { + return createClipCallable; + } + + @Override + public OperationCallable + createClipOperationCallable() { + return createClipOperationCallable; + } + + @Override + public UnaryCallable deleteClipCallable() { + return deleteClipCallable; + } + + @Override + public OperationCallable + deleteClipOperationCallable() { + return deleteClipOperationCallable; + } + @Override public UnaryCallable createAssetCallable() { return createAssetCallable; diff --git a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStub.java b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStub.java index 66e049648a86..fb190c4ba00c 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStub.java +++ b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListAssetsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListChannelsPagedResponse; +import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListClipsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListEventsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListInputsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListLocationsPagedResponse; @@ -32,17 +33,21 @@ import com.google.cloud.video.livestream.v1.Asset; import com.google.cloud.video.livestream.v1.Channel; import com.google.cloud.video.livestream.v1.ChannelOperationResponse; +import com.google.cloud.video.livestream.v1.Clip; import com.google.cloud.video.livestream.v1.CreateAssetRequest; import com.google.cloud.video.livestream.v1.CreateChannelRequest; +import com.google.cloud.video.livestream.v1.CreateClipRequest; import com.google.cloud.video.livestream.v1.CreateEventRequest; import com.google.cloud.video.livestream.v1.CreateInputRequest; import com.google.cloud.video.livestream.v1.DeleteAssetRequest; import com.google.cloud.video.livestream.v1.DeleteChannelRequest; +import com.google.cloud.video.livestream.v1.DeleteClipRequest; import com.google.cloud.video.livestream.v1.DeleteEventRequest; import com.google.cloud.video.livestream.v1.DeleteInputRequest; import com.google.cloud.video.livestream.v1.Event; import com.google.cloud.video.livestream.v1.GetAssetRequest; import com.google.cloud.video.livestream.v1.GetChannelRequest; +import com.google.cloud.video.livestream.v1.GetClipRequest; import com.google.cloud.video.livestream.v1.GetEventRequest; import com.google.cloud.video.livestream.v1.GetInputRequest; import com.google.cloud.video.livestream.v1.GetPoolRequest; @@ -51,6 +56,8 @@ import com.google.cloud.video.livestream.v1.ListAssetsResponse; import com.google.cloud.video.livestream.v1.ListChannelsRequest; import com.google.cloud.video.livestream.v1.ListChannelsResponse; +import com.google.cloud.video.livestream.v1.ListClipsRequest; +import com.google.cloud.video.livestream.v1.ListClipsResponse; import com.google.cloud.video.livestream.v1.ListEventsRequest; import com.google.cloud.video.livestream.v1.ListEventsResponse; import com.google.cloud.video.livestream.v1.ListInputsRequest; @@ -200,6 +207,36 @@ public UnaryCallable deleteEventCallable() { throw new UnsupportedOperationException("Not implemented: deleteEventCallable()"); } + public UnaryCallable listClipsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listClipsPagedCallable()"); + } + + public UnaryCallable listClipsCallable() { + throw new UnsupportedOperationException("Not implemented: listClipsCallable()"); + } + + public UnaryCallable getClipCallable() { + throw new UnsupportedOperationException("Not implemented: getClipCallable()"); + } + + public OperationCallable + createClipOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createClipOperationCallable()"); + } + + public UnaryCallable createClipCallable() { + throw new UnsupportedOperationException("Not implemented: createClipCallable()"); + } + + public OperationCallable + deleteClipOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteClipOperationCallable()"); + } + + public UnaryCallable deleteClipCallable() { + throw new UnsupportedOperationException("Not implemented: deleteClipCallable()"); + } + public OperationCallable createAssetOperationCallable() { throw new UnsupportedOperationException("Not implemented: createAssetOperationCallable()"); diff --git a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java index cc7cc2fd4088..cd02bda6aae8 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java +++ b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListAssetsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListChannelsPagedResponse; +import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListClipsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListEventsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListInputsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListLocationsPagedResponse; @@ -25,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; @@ -58,17 +60,21 @@ import com.google.cloud.video.livestream.v1.Asset; import com.google.cloud.video.livestream.v1.Channel; import com.google.cloud.video.livestream.v1.ChannelOperationResponse; +import com.google.cloud.video.livestream.v1.Clip; import com.google.cloud.video.livestream.v1.CreateAssetRequest; import com.google.cloud.video.livestream.v1.CreateChannelRequest; +import com.google.cloud.video.livestream.v1.CreateClipRequest; import com.google.cloud.video.livestream.v1.CreateEventRequest; import com.google.cloud.video.livestream.v1.CreateInputRequest; import com.google.cloud.video.livestream.v1.DeleteAssetRequest; import com.google.cloud.video.livestream.v1.DeleteChannelRequest; +import com.google.cloud.video.livestream.v1.DeleteClipRequest; import com.google.cloud.video.livestream.v1.DeleteEventRequest; import com.google.cloud.video.livestream.v1.DeleteInputRequest; import com.google.cloud.video.livestream.v1.Event; import com.google.cloud.video.livestream.v1.GetAssetRequest; import com.google.cloud.video.livestream.v1.GetChannelRequest; +import com.google.cloud.video.livestream.v1.GetClipRequest; import com.google.cloud.video.livestream.v1.GetEventRequest; import com.google.cloud.video.livestream.v1.GetInputRequest; import com.google.cloud.video.livestream.v1.GetPoolRequest; @@ -77,6 +83,8 @@ import com.google.cloud.video.livestream.v1.ListAssetsResponse; import com.google.cloud.video.livestream.v1.ListChannelsRequest; import com.google.cloud.video.livestream.v1.ListChannelsResponse; +import com.google.cloud.video.livestream.v1.ListClipsRequest; +import com.google.cloud.video.livestream.v1.ListClipsResponse; import com.google.cloud.video.livestream.v1.ListEventsRequest; import com.google.cloud.video.livestream.v1.ListEventsResponse; import com.google.cloud.video.livestream.v1.ListInputsRequest; @@ -181,6 +189,15 @@ public class LivestreamServiceStubSettings extends StubSettings getEventSettings; private final UnaryCallSettings deleteEventSettings; + private final PagedCallSettings + listClipsSettings; + private final UnaryCallSettings getClipSettings; + private final UnaryCallSettings createClipSettings; + private final OperationCallSettings + createClipOperationSettings; + private final UnaryCallSettings deleteClipSettings; + private final OperationCallSettings + deleteClipOperationSettings; private final UnaryCallSettings createAssetSettings; private final OperationCallSettings createAssetOperationSettings; @@ -307,6 +324,42 @@ public Iterable extractResources(ListEventsResponse payload) { } }; + private static final PagedListDescriptor + LIST_CLIPS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListClipsRequest injectToken(ListClipsRequest payload, String token) { + return ListClipsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListClipsRequest injectPageSize(ListClipsRequest payload, int pageSize) { + return ListClipsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListClipsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListClipsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListClipsResponse payload) { + return payload.getClipsList() == null + ? ImmutableList.of() + : payload.getClipsList(); + } + }; + private static final PagedListDescriptor LIST_ASSETS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -430,6 +483,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListClipsRequest, ListClipsResponse, ListClipsPagedResponse> + LIST_CLIPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListClipsRequest, ListClipsResponse, ListClipsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListClipsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_CLIPS_PAGE_STR_DESC, request, context); + return ListClipsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListAssetsRequest, ListAssetsResponse, ListAssetsPagedResponse> LIST_ASSETS_PAGE_STR_FACT = @@ -595,6 +665,39 @@ public UnaryCallSettings deleteEventSettings() { return deleteEventSettings; } + /** Returns the object with the settings used for calls to listClips. */ + public PagedCallSettings + listClipsSettings() { + return listClipsSettings; + } + + /** Returns the object with the settings used for calls to getClip. */ + public UnaryCallSettings getClipSettings() { + return getClipSettings; + } + + /** Returns the object with the settings used for calls to createClip. */ + public UnaryCallSettings createClipSettings() { + return createClipSettings; + } + + /** Returns the object with the settings used for calls to createClip. */ + public OperationCallSettings + createClipOperationSettings() { + return createClipOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteClip. */ + public UnaryCallSettings deleteClipSettings() { + return deleteClipSettings; + } + + /** Returns the object with the settings used for calls to deleteClip. */ + public OperationCallSettings + deleteClipOperationSettings() { + return deleteClipOperationSettings; + } + /** Returns the object with the settings used for calls to createAsset. */ public UnaryCallSettings createAssetSettings() { return createAssetSettings; @@ -683,6 +786,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "livestream.googleapis.com:443"; } @@ -789,6 +893,12 @@ protected LivestreamServiceStubSettings(Builder settingsBuilder) throws IOExcept listEventsSettings = settingsBuilder.listEventsSettings().build(); getEventSettings = settingsBuilder.getEventSettings().build(); deleteEventSettings = settingsBuilder.deleteEventSettings().build(); + listClipsSettings = settingsBuilder.listClipsSettings().build(); + getClipSettings = settingsBuilder.getClipSettings().build(); + createClipSettings = settingsBuilder.createClipSettings().build(); + createClipOperationSettings = settingsBuilder.createClipOperationSettings().build(); + deleteClipSettings = settingsBuilder.deleteClipSettings().build(); + deleteClipOperationSettings = settingsBuilder.deleteClipOperationSettings().build(); createAssetSettings = settingsBuilder.createAssetSettings().build(); createAssetOperationSettings = settingsBuilder.createAssetOperationSettings().build(); deleteAssetSettings = settingsBuilder.deleteAssetSettings().build(); @@ -845,6 +955,16 @@ public static class Builder extends StubSettings.Builder getEventSettings; private final UnaryCallSettings.Builder deleteEventSettings; + private final PagedCallSettings.Builder< + ListClipsRequest, ListClipsResponse, ListClipsPagedResponse> + listClipsSettings; + private final UnaryCallSettings.Builder getClipSettings; + private final UnaryCallSettings.Builder createClipSettings; + private final OperationCallSettings.Builder + createClipOperationSettings; + private final UnaryCallSettings.Builder deleteClipSettings; + private final OperationCallSettings.Builder + deleteClipOperationSettings; private final UnaryCallSettings.Builder createAssetSettings; private final OperationCallSettings.Builder createAssetOperationSettings; @@ -938,6 +1058,12 @@ protected Builder(ClientContext clientContext) { listEventsSettings = PagedCallSettings.newBuilder(LIST_EVENTS_PAGE_STR_FACT); getEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listClipsSettings = PagedCallSettings.newBuilder(LIST_CLIPS_PAGE_STR_FACT); + getClipSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createClipSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createClipOperationSettings = OperationCallSettings.newBuilder(); + deleteClipSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteClipOperationSettings = OperationCallSettings.newBuilder(); createAssetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createAssetOperationSettings = OperationCallSettings.newBuilder(); deleteAssetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -968,6 +1094,10 @@ protected Builder(ClientContext clientContext) { listEventsSettings, getEventSettings, deleteEventSettings, + listClipsSettings, + getClipSettings, + createClipSettings, + deleteClipSettings, createAssetSettings, deleteAssetSettings, getAssetSettings, @@ -1006,6 +1136,12 @@ protected Builder(LivestreamServiceStubSettings settings) { listEventsSettings = settings.listEventsSettings.toBuilder(); getEventSettings = settings.getEventSettings.toBuilder(); deleteEventSettings = settings.deleteEventSettings.toBuilder(); + listClipsSettings = settings.listClipsSettings.toBuilder(); + getClipSettings = settings.getClipSettings.toBuilder(); + createClipSettings = settings.createClipSettings.toBuilder(); + createClipOperationSettings = settings.createClipOperationSettings.toBuilder(); + deleteClipSettings = settings.deleteClipSettings.toBuilder(); + deleteClipOperationSettings = settings.deleteClipOperationSettings.toBuilder(); createAssetSettings = settings.createAssetSettings.toBuilder(); createAssetOperationSettings = settings.createAssetOperationSettings.toBuilder(); deleteAssetSettings = settings.deleteAssetSettings.toBuilder(); @@ -1036,6 +1172,10 @@ protected Builder(LivestreamServiceStubSettings settings) { listEventsSettings, getEventSettings, deleteEventSettings, + listClipsSettings, + getClipSettings, + createClipSettings, + deleteClipSettings, createAssetSettings, deleteAssetSettings, getAssetSettings, @@ -1151,6 +1291,26 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .listClipsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getClipSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createClipSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteClipSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createAssetSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1379,6 +1539,51 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .createClipOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Clip.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.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 + .deleteClipOperationSettings() + .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(OperationMetadata.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 .createAssetOperationSettings() .setInitialCallSettings( @@ -1599,6 +1804,39 @@ public UnaryCallSettings.Builder deleteEventSettings( return deleteEventSettings; } + /** Returns the builder for the settings used for calls to listClips. */ + public PagedCallSettings.Builder + listClipsSettings() { + return listClipsSettings; + } + + /** Returns the builder for the settings used for calls to getClip. */ + public UnaryCallSettings.Builder getClipSettings() { + return getClipSettings; + } + + /** Returns the builder for the settings used for calls to createClip. */ + public UnaryCallSettings.Builder createClipSettings() { + return createClipSettings; + } + + /** Returns the builder for the settings used for calls to createClip. */ + public OperationCallSettings.Builder + createClipOperationSettings() { + return createClipOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteClip. */ + public UnaryCallSettings.Builder deleteClipSettings() { + return deleteClipSettings; + } + + /** Returns the builder for the settings used for calls to deleteClip. */ + public OperationCallSettings.Builder + deleteClipOperationSettings() { + return deleteClipOperationSettings; + } + /** Returns the builder for the settings used for calls to createAsset. */ public UnaryCallSettings.Builder createAssetSettings() { return createAssetSettings; diff --git a/java-video-live-stream/google-cloud-live-stream/src/main/resources/META-INF/native-image/com.google.cloud.video.livestream.v1/reflect-config.json b/java-video-live-stream/google-cloud-live-stream/src/main/resources/META-INF/native-image/com.google.cloud.video.livestream.v1/reflect-config.json index 4ef153035a43..84273aee1259 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/resources/META-INF/native-image/com.google.cloud.video.livestream.v1/reflect-config.json +++ b/java-video-live-stream/google-cloud-live-stream/src/main/resources/META-INF/native-image/com.google.cloud.video.livestream.v1/reflect-config.json @@ -116,6 +116,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, @@ -377,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, @@ -647,6 +692,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.livestream.v1.Clip", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.Clip$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.Clip$ClipManifest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.Clip$ClipManifest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.Clip$Slice", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.Clip$Slice$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.Clip$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.Clip$TimeSlice", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.Clip$TimeSlice$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.livestream.v1.CreateAssetRequest", "queryAllDeclaredConstructors": true, @@ -683,6 +809,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.livestream.v1.CreateClipRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.CreateClipRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.livestream.v1.CreateEventRequest", "queryAllDeclaredConstructors": true, @@ -755,6 +899,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.livestream.v1.DeleteClipRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.DeleteClipRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.livestream.v1.DeleteEventRequest", "queryAllDeclaredConstructors": true, @@ -1160,6 +1322,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.livestream.v1.GetClipRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.GetClipRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.livestream.v1.GetEventRequest", "queryAllDeclaredConstructors": true, @@ -1421,6 +1601,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.livestream.v1.ListClipsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.ListClipsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.ListClipsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.ListClipsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.livestream.v1.ListEventsRequest", "queryAllDeclaredConstructors": true, @@ -1565,6 +1781,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.livestream.v1.NormalizedCoordinate", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.NormalizedCoordinate$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.NormalizedResolution", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.NormalizedResolution$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.livestream.v1.OperationMetadata", "queryAllDeclaredConstructors": true, @@ -1691,6 +1943,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.livestream.v1.RetentionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.RetentionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.livestream.v1.SegmentSettings", "queryAllDeclaredConstructors": true, @@ -1745,6 +2015,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.livestream.v1.StaticOverlay", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.livestream.v1.StaticOverlay$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.livestream.v1.StopChannelRequest", "queryAllDeclaredConstructors": true, diff --git a/java-video-live-stream/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/LivestreamServiceClientHttpJsonTest.java b/java-video-live-stream/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/LivestreamServiceClientHttpJsonTest.java index c119b42ce7a7..31ea1af8df35 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/LivestreamServiceClientHttpJsonTest.java +++ b/java-video-live-stream/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/LivestreamServiceClientHttpJsonTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListAssetsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListChannelsPagedResponse; +import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListClipsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListEventsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListInputsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListLocationsPagedResponse; @@ -112,6 +113,8 @@ public void createChannelTest() throws Exception { .setTimecodeConfig(TimecodeConfig.newBuilder().build()) .addAllEncryptions(new ArrayList()) .setInputConfig(InputConfig.newBuilder().build()) + .setRetentionConfig(RetentionConfig.newBuilder().build()) + .addAllStaticOverlays(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -180,6 +183,8 @@ public void createChannelTest2() throws Exception { .setTimecodeConfig(TimecodeConfig.newBuilder().build()) .addAllEncryptions(new ArrayList()) .setInputConfig(InputConfig.newBuilder().build()) + .setRetentionConfig(RetentionConfig.newBuilder().build()) + .addAllStaticOverlays(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -348,6 +353,8 @@ public void getChannelTest() throws Exception { .setTimecodeConfig(TimecodeConfig.newBuilder().build()) .addAllEncryptions(new ArrayList()) .setInputConfig(InputConfig.newBuilder().build()) + .setRetentionConfig(RetentionConfig.newBuilder().build()) + .addAllStaticOverlays(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -407,6 +414,8 @@ public void getChannelTest2() throws Exception { .setTimecodeConfig(TimecodeConfig.newBuilder().build()) .addAllEncryptions(new ArrayList()) .setInputConfig(InputConfig.newBuilder().build()) + .setRetentionConfig(RetentionConfig.newBuilder().build()) + .addAllStaticOverlays(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -556,6 +565,8 @@ public void updateChannelTest() throws Exception { .setTimecodeConfig(TimecodeConfig.newBuilder().build()) .addAllEncryptions(new ArrayList()) .setInputConfig(InputConfig.newBuilder().build()) + .setRetentionConfig(RetentionConfig.newBuilder().build()) + .addAllStaticOverlays(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -583,6 +594,8 @@ public void updateChannelTest() throws Exception { .setTimecodeConfig(TimecodeConfig.newBuilder().build()) .addAllEncryptions(new ArrayList()) .setInputConfig(InputConfig.newBuilder().build()) + .setRetentionConfig(RetentionConfig.newBuilder().build()) + .addAllStaticOverlays(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -630,6 +643,8 @@ public void updateChannelExceptionTest() throws Exception { .setTimecodeConfig(TimecodeConfig.newBuilder().build()) .addAllEncryptions(new ArrayList()) .setInputConfig(InputConfig.newBuilder().build()) + .setRetentionConfig(RetentionConfig.newBuilder().build()) + .addAllStaticOverlays(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateChannelAsync(channel, updateMask).get(); @@ -1704,6 +1719,426 @@ public void deleteEventExceptionTest2() throws Exception { } } + @Test + public void listClipsTest() throws Exception { + Clip responsesElement = Clip.newBuilder().build(); + ListClipsResponse expectedResponse = + ListClipsResponse.newBuilder() + .setNextPageToken("") + .addAllClips(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); + + ListClipsPagedResponse pagedListResponse = client.listClips(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getClipsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listClipsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); + client.listClips(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listClipsTest2() throws Exception { + Clip responsesElement = Clip.newBuilder().build(); + ListClipsResponse expectedResponse = + ListClipsResponse.newBuilder() + .setNextPageToken("") + .addAllClips(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-367/locations/location-367/channels/channel-367"; + + ListClipsPagedResponse pagedListResponse = client.listClips(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getClipsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listClipsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-367/locations/location-367/channels/channel-367"; + client.listClips(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClipTest() throws Exception { + Clip expectedResponse = + Clip.newBuilder() + .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOutputUri("outputUri-2119300949") + .setError(Status.newBuilder().build()) + .addAllSlices(new ArrayList()) + .addAllClipManifests(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + ClipName name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]"); + + Clip actualResponse = client.getClip(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getClipExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClipName name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]"); + client.getClip(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClipTest2() throws Exception { + Clip expectedResponse = + Clip.newBuilder() + .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOutputUri("outputUri-2119300949") + .setError(Status.newBuilder().build()) + .addAllSlices(new ArrayList()) + .addAllClipManifests(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7679/locations/location-7679/channels/channel-7679/clips/clip-7679"; + + Clip actualResponse = client.getClip(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getClipExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7679/locations/location-7679/channels/channel-7679/clips/clip-7679"; + client.getClip(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createClipTest() throws Exception { + Clip expectedResponse = + Clip.newBuilder() + .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOutputUri("outputUri-2119300949") + .setError(Status.newBuilder().build()) + .addAllSlices(new ArrayList()) + .addAllClipManifests(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createClipTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); + Clip clip = Clip.newBuilder().build(); + String clipId = "clipId-1357703029"; + + Clip actualResponse = client.createClipAsync(parent, clip, clipId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createClipExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); + Clip clip = Clip.newBuilder().build(); + String clipId = "clipId-1357703029"; + client.createClipAsync(parent, clip, clipId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createClipTest2() throws Exception { + Clip expectedResponse = + Clip.newBuilder() + .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOutputUri("outputUri-2119300949") + .setError(Status.newBuilder().build()) + .addAllSlices(new ArrayList()) + .addAllClipManifests(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createClipTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-367/locations/location-367/channels/channel-367"; + Clip clip = Clip.newBuilder().build(); + String clipId = "clipId-1357703029"; + + Clip actualResponse = client.createClipAsync(parent, clip, clipId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createClipExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-367/locations/location-367/channels/channel-367"; + Clip clip = Clip.newBuilder().build(); + String clipId = "clipId-1357703029"; + client.createClipAsync(parent, clip, clipId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteClipTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteClipTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClipName name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]"); + + client.deleteClipAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteClipExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClipName name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]"); + client.deleteClipAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteClipTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteClipTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-7679/locations/location-7679/channels/channel-7679/clips/clip-7679"; + + client.deleteClipAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteClipExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7679/locations/location-7679/channels/channel-7679/clips/clip-7679"; + client.deleteClipAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void createAssetTest() throws Exception { Asset expectedResponse = diff --git a/java-video-live-stream/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/LivestreamServiceClientTest.java b/java-video-live-stream/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/LivestreamServiceClientTest.java index 3e0e0d2e979e..3de4efd31220 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/LivestreamServiceClientTest.java +++ b/java-video-live-stream/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/LivestreamServiceClientTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListAssetsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListChannelsPagedResponse; +import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListClipsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListEventsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListInputsPagedResponse; import static com.google.cloud.video.livestream.v1.LivestreamServiceClient.ListLocationsPagedResponse; @@ -119,6 +120,8 @@ public void createChannelTest() throws Exception { .setTimecodeConfig(TimecodeConfig.newBuilder().build()) .addAllEncryptions(new ArrayList()) .setInputConfig(InputConfig.newBuilder().build()) + .setRetentionConfig(RetentionConfig.newBuilder().build()) + .addAllStaticOverlays(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -186,6 +189,8 @@ public void createChannelTest2() throws Exception { .setTimecodeConfig(TimecodeConfig.newBuilder().build()) .addAllEncryptions(new ArrayList()) .setInputConfig(InputConfig.newBuilder().build()) + .setRetentionConfig(RetentionConfig.newBuilder().build()) + .addAllStaticOverlays(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -341,6 +346,8 @@ public void getChannelTest() throws Exception { .setTimecodeConfig(TimecodeConfig.newBuilder().build()) .addAllEncryptions(new ArrayList()) .setInputConfig(InputConfig.newBuilder().build()) + .setRetentionConfig(RetentionConfig.newBuilder().build()) + .addAllStaticOverlays(new ArrayList()) .build(); mockLivestreamService.addResponse(expectedResponse); @@ -394,6 +401,8 @@ public void getChannelTest2() throws Exception { .setTimecodeConfig(TimecodeConfig.newBuilder().build()) .addAllEncryptions(new ArrayList()) .setInputConfig(InputConfig.newBuilder().build()) + .setRetentionConfig(RetentionConfig.newBuilder().build()) + .addAllStaticOverlays(new ArrayList()) .build(); mockLivestreamService.addResponse(expectedResponse); @@ -531,6 +540,8 @@ public void updateChannelTest() throws Exception { .setTimecodeConfig(TimecodeConfig.newBuilder().build()) .addAllEncryptions(new ArrayList()) .setInputConfig(InputConfig.newBuilder().build()) + .setRetentionConfig(RetentionConfig.newBuilder().build()) + .addAllStaticOverlays(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1527,6 +1538,390 @@ public void deleteEventExceptionTest2() throws Exception { } } + @Test + public void listClipsTest() throws Exception { + Clip responsesElement = Clip.newBuilder().build(); + ListClipsResponse expectedResponse = + ListClipsResponse.newBuilder() + .setNextPageToken("") + .addAllClips(Arrays.asList(responsesElement)) + .build(); + mockLivestreamService.addResponse(expectedResponse); + + ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); + + ListClipsPagedResponse pagedListResponse = client.listClips(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getClipsList().get(0), resources.get(0)); + + List actualRequests = mockLivestreamService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListClipsRequest actualRequest = ((ListClipsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listClipsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLivestreamService.addException(exception); + + try { + ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); + client.listClips(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listClipsTest2() throws Exception { + Clip responsesElement = Clip.newBuilder().build(); + ListClipsResponse expectedResponse = + ListClipsResponse.newBuilder() + .setNextPageToken("") + .addAllClips(Arrays.asList(responsesElement)) + .build(); + mockLivestreamService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListClipsPagedResponse pagedListResponse = client.listClips(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getClipsList().get(0), resources.get(0)); + + List actualRequests = mockLivestreamService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListClipsRequest actualRequest = ((ListClipsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listClipsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLivestreamService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listClips(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClipTest() throws Exception { + Clip expectedResponse = + Clip.newBuilder() + .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOutputUri("outputUri-2119300949") + .setError(Status.newBuilder().build()) + .addAllSlices(new ArrayList()) + .addAllClipManifests(new ArrayList()) + .build(); + mockLivestreamService.addResponse(expectedResponse); + + ClipName name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]"); + + Clip actualResponse = client.getClip(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLivestreamService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetClipRequest actualRequest = ((GetClipRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getClipExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLivestreamService.addException(exception); + + try { + ClipName name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]"); + client.getClip(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClipTest2() throws Exception { + Clip expectedResponse = + Clip.newBuilder() + .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOutputUri("outputUri-2119300949") + .setError(Status.newBuilder().build()) + .addAllSlices(new ArrayList()) + .addAllClipManifests(new ArrayList()) + .build(); + mockLivestreamService.addResponse(expectedResponse); + + String name = "name3373707"; + + Clip actualResponse = client.getClip(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLivestreamService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetClipRequest actualRequest = ((GetClipRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getClipExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLivestreamService.addException(exception); + + try { + String name = "name3373707"; + client.getClip(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createClipTest() throws Exception { + Clip expectedResponse = + Clip.newBuilder() + .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOutputUri("outputUri-2119300949") + .setError(Status.newBuilder().build()) + .addAllSlices(new ArrayList()) + .addAllClipManifests(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createClipTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockLivestreamService.addResponse(resultOperation); + + ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); + Clip clip = Clip.newBuilder().build(); + String clipId = "clipId-1357703029"; + + Clip actualResponse = client.createClipAsync(parent, clip, clipId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLivestreamService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateClipRequest actualRequest = ((CreateClipRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(clip, actualRequest.getClip()); + Assert.assertEquals(clipId, actualRequest.getClipId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createClipExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLivestreamService.addException(exception); + + try { + ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); + Clip clip = Clip.newBuilder().build(); + String clipId = "clipId-1357703029"; + client.createClipAsync(parent, clip, clipId).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 createClipTest2() throws Exception { + Clip expectedResponse = + Clip.newBuilder() + .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOutputUri("outputUri-2119300949") + .setError(Status.newBuilder().build()) + .addAllSlices(new ArrayList()) + .addAllClipManifests(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createClipTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockLivestreamService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Clip clip = Clip.newBuilder().build(); + String clipId = "clipId-1357703029"; + + Clip actualResponse = client.createClipAsync(parent, clip, clipId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLivestreamService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateClipRequest actualRequest = ((CreateClipRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(clip, actualRequest.getClip()); + Assert.assertEquals(clipId, actualRequest.getClipId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createClipExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLivestreamService.addException(exception); + + try { + String parent = "parent-995424086"; + Clip clip = Clip.newBuilder().build(); + String clipId = "clipId-1357703029"; + client.createClipAsync(parent, clip, clipId).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 deleteClipTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteClipTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockLivestreamService.addResponse(resultOperation); + + ClipName name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]"); + + client.deleteClipAsync(name).get(); + + List actualRequests = mockLivestreamService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteClipRequest actualRequest = ((DeleteClipRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteClipExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLivestreamService.addException(exception); + + try { + ClipName name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]"); + client.deleteClipAsync(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 deleteClipTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteClipTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockLivestreamService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteClipAsync(name).get(); + + List actualRequests = mockLivestreamService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteClipRequest actualRequest = ((DeleteClipRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteClipExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLivestreamService.addException(exception); + + try { + String name = "name3373707"; + client.deleteClipAsync(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 createAssetTest() throws Exception { Asset expectedResponse = diff --git a/java-video-live-stream/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/MockLivestreamServiceImpl.java b/java-video-live-stream/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/MockLivestreamServiceImpl.java index 794739049c14..12d205f55a3d 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/MockLivestreamServiceImpl.java +++ b/java-video-live-stream/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/MockLivestreamServiceImpl.java @@ -387,6 +387,87 @@ public void deleteEvent(DeleteEventRequest request, StreamObserver respon } } + @Override + public void listClips( + ListClipsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListClipsResponse) { + requests.add(request); + responseObserver.onNext(((ListClipsResponse) 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 ListClips, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListClipsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getClip(GetClipRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Clip) { + requests.add(request); + responseObserver.onNext(((Clip) 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 GetClip, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Clip.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createClip(CreateClipRequest 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 CreateClip, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteClip(DeleteClipRequest 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 DeleteClip, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createAsset(CreateAssetRequest request, StreamObserver responseObserver) { Object response = responses.poll(); diff --git a/java-video-live-stream/grpc-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceGrpc.java b/java-video-live-stream/grpc-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceGrpc.java index 8e39190703ea..6c91f746f591 100644 --- a/java-video-live-stream/grpc-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceGrpc.java +++ b/java-video-live-stream/grpc-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceGrpc.java @@ -768,6 +768,186 @@ private LivestreamServiceGrpc() {} return getDeleteEventMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.video.livestream.v1.ListClipsRequest, + com.google.cloud.video.livestream.v1.ListClipsResponse> + getListClipsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListClips", + requestType = com.google.cloud.video.livestream.v1.ListClipsRequest.class, + responseType = com.google.cloud.video.livestream.v1.ListClipsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.video.livestream.v1.ListClipsRequest, + com.google.cloud.video.livestream.v1.ListClipsResponse> + getListClipsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.video.livestream.v1.ListClipsRequest, + com.google.cloud.video.livestream.v1.ListClipsResponse> + getListClipsMethod; + if ((getListClipsMethod = LivestreamServiceGrpc.getListClipsMethod) == null) { + synchronized (LivestreamServiceGrpc.class) { + if ((getListClipsMethod = LivestreamServiceGrpc.getListClipsMethod) == null) { + LivestreamServiceGrpc.getListClipsMethod = + getListClipsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListClips")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.video.livestream.v1.ListClipsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.video.livestream.v1.ListClipsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new LivestreamServiceMethodDescriptorSupplier("ListClips")) + .build(); + } + } + } + return getListClipsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.video.livestream.v1.GetClipRequest, + com.google.cloud.video.livestream.v1.Clip> + getGetClipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetClip", + requestType = com.google.cloud.video.livestream.v1.GetClipRequest.class, + responseType = com.google.cloud.video.livestream.v1.Clip.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.video.livestream.v1.GetClipRequest, + com.google.cloud.video.livestream.v1.Clip> + getGetClipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.video.livestream.v1.GetClipRequest, + com.google.cloud.video.livestream.v1.Clip> + getGetClipMethod; + if ((getGetClipMethod = LivestreamServiceGrpc.getGetClipMethod) == null) { + synchronized (LivestreamServiceGrpc.class) { + if ((getGetClipMethod = LivestreamServiceGrpc.getGetClipMethod) == null) { + LivestreamServiceGrpc.getGetClipMethod = + getGetClipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetClip")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.video.livestream.v1.GetClipRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.video.livestream.v1.Clip.getDefaultInstance())) + .setSchemaDescriptor(new LivestreamServiceMethodDescriptorSupplier("GetClip")) + .build(); + } + } + } + return getGetClipMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.video.livestream.v1.CreateClipRequest, com.google.longrunning.Operation> + getCreateClipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateClip", + requestType = com.google.cloud.video.livestream.v1.CreateClipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.video.livestream.v1.CreateClipRequest, com.google.longrunning.Operation> + getCreateClipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.video.livestream.v1.CreateClipRequest, + com.google.longrunning.Operation> + getCreateClipMethod; + if ((getCreateClipMethod = LivestreamServiceGrpc.getCreateClipMethod) == null) { + synchronized (LivestreamServiceGrpc.class) { + if ((getCreateClipMethod = LivestreamServiceGrpc.getCreateClipMethod) == null) { + LivestreamServiceGrpc.getCreateClipMethod = + getCreateClipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateClip")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.video.livestream.v1.CreateClipRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new LivestreamServiceMethodDescriptorSupplier("CreateClip")) + .build(); + } + } + } + return getCreateClipMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.video.livestream.v1.DeleteClipRequest, com.google.longrunning.Operation> + getDeleteClipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteClip", + requestType = com.google.cloud.video.livestream.v1.DeleteClipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.video.livestream.v1.DeleteClipRequest, com.google.longrunning.Operation> + getDeleteClipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.video.livestream.v1.DeleteClipRequest, + com.google.longrunning.Operation> + getDeleteClipMethod; + if ((getDeleteClipMethod = LivestreamServiceGrpc.getDeleteClipMethod) == null) { + synchronized (LivestreamServiceGrpc.class) { + if ((getDeleteClipMethod = LivestreamServiceGrpc.getDeleteClipMethod) == null) { + LivestreamServiceGrpc.getDeleteClipMethod = + getDeleteClipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteClip")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.video.livestream.v1.DeleteClipRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new LivestreamServiceMethodDescriptorSupplier("DeleteClip")) + .build(); + } + } + } + return getDeleteClipMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.video.livestream.v1.CreateAssetRequest, com.google.longrunning.Operation> getCreateAssetMethod; @@ -1318,6 +1498,60 @@ default void deleteEvent( getDeleteEventMethod(), responseObserver); } + /** + * + * + *
                  +     * Returns a list of all clips in the specified channel.
                  +     * 
                  + */ + default void listClips( + com.google.cloud.video.livestream.v1.ListClipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListClipsMethod(), responseObserver); + } + + /** + * + * + *
                  +     * Returns the specified clip.
                  +     * 
                  + */ + default void getClip( + com.google.cloud.video.livestream.v1.GetClipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClipMethod(), responseObserver); + } + + /** + * + * + *
                  +     * Creates a clip with the provided clip ID in the specified channel.
                  +     * 
                  + */ + default void createClip( + com.google.cloud.video.livestream.v1.CreateClipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateClipMethod(), responseObserver); + } + + /** + * + * + *
                  +     * Deletes the specified clip job resource. This method only deletes the clip
                  +     * job and does not delete the VOD clip stored in the GCS.
                  +     * 
                  + */ + default void deleteClip( + com.google.cloud.video.livestream.v1.DeleteClipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteClipMethod(), responseObserver); + } + /** * * @@ -1697,6 +1931,64 @@ public void deleteEvent( responseObserver); } + /** + * + * + *
                  +     * Returns a list of all clips in the specified channel.
                  +     * 
                  + */ + public void listClips( + com.google.cloud.video.livestream.v1.ListClipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListClipsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
                  +     * Returns the specified clip.
                  +     * 
                  + */ + public void getClip( + com.google.cloud.video.livestream.v1.GetClipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClipMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
                  +     * Creates a clip with the provided clip ID in the specified channel.
                  +     * 
                  + */ + public void createClip( + com.google.cloud.video.livestream.v1.CreateClipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateClipMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
                  +     * Deletes the specified clip job resource. This method only deletes the clip
                  +     * job and does not delete the VOD clip stored in the GCS.
                  +     * 
                  + */ + public void deleteClip( + com.google.cloud.video.livestream.v1.DeleteClipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteClipMethod(), getCallOptions()), request, responseObserver); + } + /** * * @@ -2023,6 +2315,59 @@ public com.google.protobuf.Empty deleteEvent( getChannel(), getDeleteEventMethod(), getCallOptions(), request); } + /** + * + * + *
                  +     * Returns a list of all clips in the specified channel.
                  +     * 
                  + */ + public com.google.cloud.video.livestream.v1.ListClipsResponse listClips( + com.google.cloud.video.livestream.v1.ListClipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListClipsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                  +     * Returns the specified clip.
                  +     * 
                  + */ + public com.google.cloud.video.livestream.v1.Clip getClip( + com.google.cloud.video.livestream.v1.GetClipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetClipMethod(), getCallOptions(), request); + } + + /** + * + * + *
                  +     * Creates a clip with the provided clip ID in the specified channel.
                  +     * 
                  + */ + public com.google.longrunning.Operation createClip( + com.google.cloud.video.livestream.v1.CreateClipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateClipMethod(), getCallOptions(), request); + } + + /** + * + * + *
                  +     * Deletes the specified clip job resource. This method only deletes the clip
                  +     * job and does not delete the VOD clip stored in the GCS.
                  +     * 
                  + */ + public com.google.longrunning.Operation deleteClip( + com.google.cloud.video.livestream.v1.DeleteClipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteClipMethod(), getCallOptions(), request); + } + /** * * @@ -2344,6 +2689,61 @@ protected LivestreamServiceFutureStub build( getChannel().newCall(getDeleteEventMethod(), getCallOptions()), request); } + /** + * + * + *
                  +     * Returns a list of all clips in the specified channel.
                  +     * 
                  + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.video.livestream.v1.ListClipsResponse> + listClips(com.google.cloud.video.livestream.v1.ListClipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListClipsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                  +     * Returns the specified clip.
                  +     * 
                  + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.video.livestream.v1.Clip> + getClip(com.google.cloud.video.livestream.v1.GetClipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetClipMethod(), getCallOptions()), request); + } + + /** + * + * + *
                  +     * Creates a clip with the provided clip ID in the specified channel.
                  +     * 
                  + */ + public com.google.common.util.concurrent.ListenableFuture + createClip(com.google.cloud.video.livestream.v1.CreateClipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateClipMethod(), getCallOptions()), request); + } + + /** + * + * + *
                  +     * Deletes the specified clip job resource. This method only deletes the clip
                  +     * job and does not delete the VOD clip stored in the GCS.
                  +     * 
                  + */ + public com.google.common.util.concurrent.ListenableFuture + deleteClip(com.google.cloud.video.livestream.v1.DeleteClipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteClipMethod(), getCallOptions()), request); + } + /** * * @@ -2443,12 +2843,16 @@ protected LivestreamServiceFutureStub build( private static final int METHODID_LIST_EVENTS = 13; private static final int METHODID_GET_EVENT = 14; private static final int METHODID_DELETE_EVENT = 15; - private static final int METHODID_CREATE_ASSET = 16; - private static final int METHODID_DELETE_ASSET = 17; - private static final int METHODID_GET_ASSET = 18; - private static final int METHODID_LIST_ASSETS = 19; - private static final int METHODID_GET_POOL = 20; - private static final int METHODID_UPDATE_POOL = 21; + private static final int METHODID_LIST_CLIPS = 16; + private static final int METHODID_GET_CLIP = 17; + private static final int METHODID_CREATE_CLIP = 18; + private static final int METHODID_DELETE_CLIP = 19; + private static final int METHODID_CREATE_ASSET = 20; + private static final int METHODID_DELETE_ASSET = 21; + private static final int METHODID_GET_ASSET = 22; + private static final int METHODID_LIST_ASSETS = 23; + private static final int METHODID_GET_POOL = 24; + private static final int METHODID_UPDATE_POOL = 25; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2555,6 +2959,28 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.video.livestream.v1.DeleteEventRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_CLIPS: + serviceImpl.listClips( + (com.google.cloud.video.livestream.v1.ListClipsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CLIP: + serviceImpl.getClip( + (com.google.cloud.video.livestream.v1.GetClipRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_CLIP: + serviceImpl.createClip( + (com.google.cloud.video.livestream.v1.CreateClipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CLIP: + serviceImpl.deleteClip( + (com.google.cloud.video.livestream.v1.DeleteClipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_CREATE_ASSET: serviceImpl.createAsset( (com.google.cloud.video.livestream.v1.CreateAssetRequest) request, @@ -2705,6 +3131,31 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.video.livestream.v1.DeleteEventRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_EVENT))) + .addMethod( + getListClipsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.video.livestream.v1.ListClipsRequest, + com.google.cloud.video.livestream.v1.ListClipsResponse>( + service, METHODID_LIST_CLIPS))) + .addMethod( + getGetClipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.video.livestream.v1.GetClipRequest, + com.google.cloud.video.livestream.v1.Clip>(service, METHODID_GET_CLIP))) + .addMethod( + getCreateClipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.video.livestream.v1.CreateClipRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_CLIP))) + .addMethod( + getDeleteClipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.video.livestream.v1.DeleteClipRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_CLIP))) .addMethod( getCreateAssetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2809,6 +3260,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListEventsMethod()) .addMethod(getGetEventMethod()) .addMethod(getDeleteEventMethod()) + .addMethod(getListClipsMethod()) + .addMethod(getGetClipMethod()) + .addMethod(getCreateClipMethod()) + .addMethod(getDeleteClipMethod()) .addMethod(getCreateAssetMethod()) .addMethod(getDeleteAssetMethod()) .addMethod(getGetAssetMethod()) diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Asset.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Asset.java index 9a3c9c0bdb27..5a6002d64552 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Asset.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Asset.java @@ -958,7 +958,7 @@ public interface ImageAssetOrBuilder * * *
                  -   * Image represents an image. The supported format is JPEG.
                  +   * Image represents an image. The supported formats are JPEG, PNG.
                      * 
                  * * Protobuf type {@code google.cloud.video.livestream.v1.Asset.ImageAsset} @@ -1214,7 +1214,7 @@ protected Builder newBuilderForType( * * *
                  -     * Image represents an image. The supported format is JPEG.
                  +     * Image represents an image. The supported formats are JPEG, PNG.
                        * 
                  * * Protobuf type {@code google.cloud.video.livestream.v1.Asset.ImageAsset} @@ -1984,10 +1984,12 @@ public com.google.cloud.video.livestream.v1.Asset.ImageAssetOrBuilder getImageOr * resource](https://cloud.google.com/storage/docs/json_api/v1/objects). * If crc32c is omitted or left empty when the asset is created, this field is * filled by the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. - * If crc32c is set, the asset can't be created if the crc32c value does not + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. If + * crc32c is set, the asset can't be created if the crc32c value does not * match with the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. * * * string crc32c = 7; @@ -2015,10 +2017,12 @@ public java.lang.String getCrc32C() { * resource](https://cloud.google.com/storage/docs/json_api/v1/objects). * If crc32c is omitted or left empty when the asset is created, this field is * filled by the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. - * If crc32c is set, the asset can't be created if the crc32c value does not + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. If + * crc32c is set, the asset can't be created if the crc32c value does not * match with the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. * * * string crc32c = 7; @@ -3891,10 +3895,12 @@ public com.google.cloud.video.livestream.v1.Asset.ImageAssetOrBuilder getImageOr * resource](https://cloud.google.com/storage/docs/json_api/v1/objects). * If crc32c is omitted or left empty when the asset is created, this field is * filled by the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. - * If crc32c is set, the asset can't be created if the crc32c value does not + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. If + * crc32c is set, the asset can't be created if the crc32c value does not * match with the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. * * * string crc32c = 7; @@ -3921,10 +3927,12 @@ public java.lang.String getCrc32C() { * resource](https://cloud.google.com/storage/docs/json_api/v1/objects). * If crc32c is omitted or left empty when the asset is created, this field is * filled by the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. - * If crc32c is set, the asset can't be created if the crc32c value does not + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. If + * crc32c is set, the asset can't be created if the crc32c value does not * match with the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. * * * string crc32c = 7; @@ -3951,10 +3959,12 @@ public com.google.protobuf.ByteString getCrc32CBytes() { * resource](https://cloud.google.com/storage/docs/json_api/v1/objects). * If crc32c is omitted or left empty when the asset is created, this field is * filled by the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. - * If crc32c is set, the asset can't be created if the crc32c value does not + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. If + * crc32c is set, the asset can't be created if the crc32c value does not * match with the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. * * * string crc32c = 7; @@ -3980,10 +3990,12 @@ public Builder setCrc32C(java.lang.String value) { * resource](https://cloud.google.com/storage/docs/json_api/v1/objects). * If crc32c is omitted or left empty when the asset is created, this field is * filled by the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. - * If crc32c is set, the asset can't be created if the crc32c value does not + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. If + * crc32c is set, the asset can't be created if the crc32c value does not * match with the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. * * * string crc32c = 7; @@ -4005,10 +4017,12 @@ public Builder clearCrc32C() { * resource](https://cloud.google.com/storage/docs/json_api/v1/objects). * If crc32c is omitted or left empty when the asset is created, this field is * filled by the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. - * If crc32c is set, the asset can't be created if the crc32c value does not + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. If + * crc32c is set, the asset can't be created if the crc32c value does not * match with the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. * * * string crc32c = 7; diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AssetOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AssetOrBuilder.java index d6ca83086502..e760bca769b7 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AssetOrBuilder.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AssetOrBuilder.java @@ -264,10 +264,12 @@ java.lang.String getLabelsOrDefault( * resource](https://cloud.google.com/storage/docs/json_api/v1/objects). * If crc32c is omitted or left empty when the asset is created, this field is * filled by the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. - * If crc32c is set, the asset can't be created if the crc32c value does not + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. If + * crc32c is set, the asset can't be created if the crc32c value does not * match with the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. * * * string crc32c = 7; @@ -284,10 +286,12 @@ java.lang.String getLabelsOrDefault( * resource](https://cloud.google.com/storage/docs/json_api/v1/objects). * If crc32c is omitted or left empty when the asset is created, this field is * filled by the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. - * If crc32c is set, the asset can't be created if the crc32c value does not + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. If + * crc32c is set, the asset can't be created if the crc32c value does not * match with the crc32c checksum of the Cloud Storage object indicated by - * [VideoAsset.uri] or [ImageAsset.uri]. + * [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + * [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. * * * string crc32c = 7; diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Channel.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Channel.java index 9529b567c9f8..286c0d35ba87 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Channel.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Channel.java @@ -52,6 +52,7 @@ private Channel() { spriteSheets_ = java.util.Collections.emptyList(); streamingState_ = 0; encryptions_ = java.util.Collections.emptyList(); + staticOverlays_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -2090,6 +2091,151 @@ public com.google.cloud.video.livestream.v1.InputConfigOrBuilder getInputConfigO : inputConfig_; } + public static final int RETENTION_CONFIG_FIELD_NUMBER = 26; + private com.google.cloud.video.livestream.v1.RetentionConfig retentionConfig_; + /** + * + * + *
                  +   * Optional. Configuration for retention of output files for this channel.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retentionConfig field is set. + */ + @java.lang.Override + public boolean hasRetentionConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
                  +   * Optional. Configuration for retention of output files for this channel.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionConfig. + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.RetentionConfig getRetentionConfig() { + return retentionConfig_ == null + ? com.google.cloud.video.livestream.v1.RetentionConfig.getDefaultInstance() + : retentionConfig_; + } + /** + * + * + *
                  +   * Optional. Configuration for retention of output files for this channel.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.RetentionConfigOrBuilder + getRetentionConfigOrBuilder() { + return retentionConfig_ == null + ? com.google.cloud.video.livestream.v1.RetentionConfig.getDefaultInstance() + : retentionConfig_; + } + + public static final int STATIC_OVERLAYS_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private java.util.List staticOverlays_; + /** + * + * + *
                  +   * Optional. List of static overlay images. Those images display over the
                  +   * output content for the whole duration of the live stream.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getStaticOverlaysList() { + return staticOverlays_; + } + /** + * + * + *
                  +   * Optional. List of static overlay images. Those images display over the
                  +   * output content for the whole duration of the live stream.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getStaticOverlaysOrBuilderList() { + return staticOverlays_; + } + /** + * + * + *
                  +   * Optional. List of static overlay images. Those images display over the
                  +   * output content for the whole duration of the live stream.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getStaticOverlaysCount() { + return staticOverlays_.size(); + } + /** + * + * + *
                  +   * Optional. List of static overlay images. Those images display over the
                  +   * output content for the whole duration of the live stream.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.StaticOverlay getStaticOverlays(int index) { + return staticOverlays_.get(index); + } + /** + * + * + *
                  +   * Optional. List of static overlay images. Those images display over the
                  +   * output content for the whole duration of the live stream.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.StaticOverlayOrBuilder getStaticOverlaysOrBuilder( + int index) { + return staticOverlays_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2156,6 +2302,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(25, getInputConfig()); } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(26, getRetentionConfig()); + } + for (int i = 0; i < staticOverlays_.size(); i++) { + output.writeMessage(27, staticOverlays_.get(i)); + } getUnknownFields().writeTo(output); } @@ -2227,6 +2379,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getInputConfig()); } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getRetentionConfig()); + } + for (int i = 0; i < staticOverlays_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, staticOverlays_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2281,6 +2439,11 @@ public boolean equals(final java.lang.Object obj) { if (hasInputConfig()) { if (!getInputConfig().equals(other.getInputConfig())) return false; } + if (hasRetentionConfig() != other.hasRetentionConfig()) return false; + if (hasRetentionConfig()) { + if (!getRetentionConfig().equals(other.getRetentionConfig())) return false; + } + if (!getStaticOverlaysList().equals(other.getStaticOverlaysList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2354,6 +2517,14 @@ public int hashCode() { hash = (37 * hash) + INPUT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getInputConfig().hashCode(); } + if (hasRetentionConfig()) { + hash = (37 * hash) + RETENTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRetentionConfig().hashCode(); + } + if (getStaticOverlaysCount() > 0) { + hash = (37 * hash) + STATIC_OVERLAYS_FIELD_NUMBER; + hash = (53 * hash) + getStaticOverlaysList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2533,6 +2704,8 @@ private void maybeForceBuilderInitialization() { getTimecodeConfigFieldBuilder(); getEncryptionsFieldBuilder(); getInputConfigFieldBuilder(); + getRetentionConfigFieldBuilder(); + getStaticOverlaysFieldBuilder(); } } @@ -2621,6 +2794,18 @@ public Builder clear() { inputConfigBuilder_.dispose(); inputConfigBuilder_ = null; } + retentionConfig_ = null; + if (retentionConfigBuilder_ != null) { + retentionConfigBuilder_.dispose(); + retentionConfigBuilder_ = null; + } + if (staticOverlaysBuilder_ == null) { + staticOverlays_ = java.util.Collections.emptyList(); + } else { + staticOverlays_ = null; + staticOverlaysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00040000); return this; } @@ -2711,6 +2896,15 @@ private void buildPartialRepeatedFields(com.google.cloud.video.livestream.v1.Cha } else { result.encryptions_ = encryptionsBuilder_.build(); } + if (staticOverlaysBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0)) { + staticOverlays_ = java.util.Collections.unmodifiableList(staticOverlays_); + bitField0_ = (bitField0_ & ~0x00040000); + } + result.staticOverlays_ = staticOverlays_; + } else { + result.staticOverlays_ = staticOverlaysBuilder_.build(); + } } private void buildPartial0(com.google.cloud.video.livestream.v1.Channel result) { @@ -2760,6 +2954,11 @@ private void buildPartial0(com.google.cloud.video.livestream.v1.Channel result) inputConfigBuilder_ == null ? inputConfig_ : inputConfigBuilder_.build(); to_bitField0_ |= 0x00000040; } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.retentionConfig_ = + retentionConfigBuilder_ == null ? retentionConfig_ : retentionConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } result.bitField0_ |= to_bitField0_; } @@ -3006,6 +3205,36 @@ public Builder mergeFrom(com.google.cloud.video.livestream.v1.Channel other) { if (other.hasInputConfig()) { mergeInputConfig(other.getInputConfig()); } + if (other.hasRetentionConfig()) { + mergeRetentionConfig(other.getRetentionConfig()); + } + if (staticOverlaysBuilder_ == null) { + if (!other.staticOverlays_.isEmpty()) { + if (staticOverlays_.isEmpty()) { + staticOverlays_ = other.staticOverlays_; + bitField0_ = (bitField0_ & ~0x00040000); + } else { + ensureStaticOverlaysIsMutable(); + staticOverlays_.addAll(other.staticOverlays_); + } + onChanged(); + } + } else { + if (!other.staticOverlays_.isEmpty()) { + if (staticOverlaysBuilder_.isEmpty()) { + staticOverlaysBuilder_.dispose(); + staticOverlaysBuilder_ = null; + staticOverlays_ = other.staticOverlays_; + bitField0_ = (bitField0_ & ~0x00040000); + staticOverlaysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStaticOverlaysFieldBuilder() + : null; + } else { + staticOverlaysBuilder_.addAllMessages(other.staticOverlays_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3186,6 +3415,26 @@ public Builder mergeFrom( bitField0_ |= 0x00010000; break; } // case 202 + case 210: + { + input.readMessage(getRetentionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 210 + case 218: + { + com.google.cloud.video.livestream.v1.StaticOverlay m = + input.readMessage( + com.google.cloud.video.livestream.v1.StaticOverlay.parser(), + extensionRegistry); + if (staticOverlaysBuilder_ == null) { + ensureStaticOverlaysIsMutable(); + staticOverlays_.add(m); + } else { + staticOverlaysBuilder_.addMessage(m); + } + break; + } // case 218 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7376,6 +7625,630 @@ public com.google.cloud.video.livestream.v1.InputConfigOrBuilder getInputConfigO return inputConfigBuilder_; } + private com.google.cloud.video.livestream.v1.RetentionConfig retentionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.RetentionConfig, + com.google.cloud.video.livestream.v1.RetentionConfig.Builder, + com.google.cloud.video.livestream.v1.RetentionConfigOrBuilder> + retentionConfigBuilder_; + /** + * + * + *
                  +     * Optional. Configuration for retention of output files for this channel.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retentionConfig field is set. + */ + public boolean hasRetentionConfig() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * + * + *
                  +     * Optional. Configuration for retention of output files for this channel.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionConfig. + */ + public com.google.cloud.video.livestream.v1.RetentionConfig getRetentionConfig() { + if (retentionConfigBuilder_ == null) { + return retentionConfig_ == null + ? com.google.cloud.video.livestream.v1.RetentionConfig.getDefaultInstance() + : retentionConfig_; + } else { + return retentionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * Optional. Configuration for retention of output files for this channel.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetentionConfig(com.google.cloud.video.livestream.v1.RetentionConfig value) { + if (retentionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retentionConfig_ = value; + } else { + retentionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Configuration for retention of output files for this channel.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetentionConfig( + com.google.cloud.video.livestream.v1.RetentionConfig.Builder builderForValue) { + if (retentionConfigBuilder_ == null) { + retentionConfig_ = builderForValue.build(); + } else { + retentionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Configuration for retention of output files for this channel.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRetentionConfig( + com.google.cloud.video.livestream.v1.RetentionConfig value) { + if (retentionConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && retentionConfig_ != null + && retentionConfig_ + != com.google.cloud.video.livestream.v1.RetentionConfig.getDefaultInstance()) { + getRetentionConfigBuilder().mergeFrom(value); + } else { + retentionConfig_ = value; + } + } else { + retentionConfigBuilder_.mergeFrom(value); + } + if (retentionConfig_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Optional. Configuration for retention of output files for this channel.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRetentionConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + retentionConfig_ = null; + if (retentionConfigBuilder_ != null) { + retentionConfigBuilder_.dispose(); + retentionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Configuration for retention of output files for this channel.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.livestream.v1.RetentionConfig.Builder + getRetentionConfigBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getRetentionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * Optional. Configuration for retention of output files for this channel.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.livestream.v1.RetentionConfigOrBuilder + getRetentionConfigOrBuilder() { + if (retentionConfigBuilder_ != null) { + return retentionConfigBuilder_.getMessageOrBuilder(); + } else { + return retentionConfig_ == null + ? com.google.cloud.video.livestream.v1.RetentionConfig.getDefaultInstance() + : retentionConfig_; + } + } + /** + * + * + *
                  +     * Optional. Configuration for retention of output files for this channel.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.RetentionConfig, + com.google.cloud.video.livestream.v1.RetentionConfig.Builder, + com.google.cloud.video.livestream.v1.RetentionConfigOrBuilder> + getRetentionConfigFieldBuilder() { + if (retentionConfigBuilder_ == null) { + retentionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.RetentionConfig, + com.google.cloud.video.livestream.v1.RetentionConfig.Builder, + com.google.cloud.video.livestream.v1.RetentionConfigOrBuilder>( + getRetentionConfig(), getParentForChildren(), isClean()); + retentionConfig_ = null; + } + return retentionConfigBuilder_; + } + + private java.util.List staticOverlays_ = + java.util.Collections.emptyList(); + + private void ensureStaticOverlaysIsMutable() { + if (!((bitField0_ & 0x00040000) != 0)) { + staticOverlays_ = + new java.util.ArrayList( + staticOverlays_); + bitField0_ |= 0x00040000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.livestream.v1.StaticOverlay, + com.google.cloud.video.livestream.v1.StaticOverlay.Builder, + com.google.cloud.video.livestream.v1.StaticOverlayOrBuilder> + staticOverlaysBuilder_; + + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getStaticOverlaysList() { + if (staticOverlaysBuilder_ == null) { + return java.util.Collections.unmodifiableList(staticOverlays_); + } else { + return staticOverlaysBuilder_.getMessageList(); + } + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getStaticOverlaysCount() { + if (staticOverlaysBuilder_ == null) { + return staticOverlays_.size(); + } else { + return staticOverlaysBuilder_.getCount(); + } + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.livestream.v1.StaticOverlay getStaticOverlays(int index) { + if (staticOverlaysBuilder_ == null) { + return staticOverlays_.get(index); + } else { + return staticOverlaysBuilder_.getMessage(index); + } + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStaticOverlays( + int index, com.google.cloud.video.livestream.v1.StaticOverlay value) { + if (staticOverlaysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStaticOverlaysIsMutable(); + staticOverlays_.set(index, value); + onChanged(); + } else { + staticOverlaysBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStaticOverlays( + int index, com.google.cloud.video.livestream.v1.StaticOverlay.Builder builderForValue) { + if (staticOverlaysBuilder_ == null) { + ensureStaticOverlaysIsMutable(); + staticOverlays_.set(index, builderForValue.build()); + onChanged(); + } else { + staticOverlaysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addStaticOverlays(com.google.cloud.video.livestream.v1.StaticOverlay value) { + if (staticOverlaysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStaticOverlaysIsMutable(); + staticOverlays_.add(value); + onChanged(); + } else { + staticOverlaysBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addStaticOverlays( + int index, com.google.cloud.video.livestream.v1.StaticOverlay value) { + if (staticOverlaysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStaticOverlaysIsMutable(); + staticOverlays_.add(index, value); + onChanged(); + } else { + staticOverlaysBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addStaticOverlays( + com.google.cloud.video.livestream.v1.StaticOverlay.Builder builderForValue) { + if (staticOverlaysBuilder_ == null) { + ensureStaticOverlaysIsMutable(); + staticOverlays_.add(builderForValue.build()); + onChanged(); + } else { + staticOverlaysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addStaticOverlays( + int index, com.google.cloud.video.livestream.v1.StaticOverlay.Builder builderForValue) { + if (staticOverlaysBuilder_ == null) { + ensureStaticOverlaysIsMutable(); + staticOverlays_.add(index, builderForValue.build()); + onChanged(); + } else { + staticOverlaysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllStaticOverlays( + java.lang.Iterable values) { + if (staticOverlaysBuilder_ == null) { + ensureStaticOverlaysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, staticOverlays_); + onChanged(); + } else { + staticOverlaysBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStaticOverlays() { + if (staticOverlaysBuilder_ == null) { + staticOverlays_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + } else { + staticOverlaysBuilder_.clear(); + } + return this; + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeStaticOverlays(int index) { + if (staticOverlaysBuilder_ == null) { + ensureStaticOverlaysIsMutable(); + staticOverlays_.remove(index); + onChanged(); + } else { + staticOverlaysBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.livestream.v1.StaticOverlay.Builder getStaticOverlaysBuilder( + int index) { + return getStaticOverlaysFieldBuilder().getBuilder(index); + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.livestream.v1.StaticOverlayOrBuilder getStaticOverlaysOrBuilder( + int index) { + if (staticOverlaysBuilder_ == null) { + return staticOverlays_.get(index); + } else { + return staticOverlaysBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getStaticOverlaysOrBuilderList() { + if (staticOverlaysBuilder_ != null) { + return staticOverlaysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(staticOverlays_); + } + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.livestream.v1.StaticOverlay.Builder addStaticOverlaysBuilder() { + return getStaticOverlaysFieldBuilder() + .addBuilder(com.google.cloud.video.livestream.v1.StaticOverlay.getDefaultInstance()); + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.livestream.v1.StaticOverlay.Builder addStaticOverlaysBuilder( + int index) { + return getStaticOverlaysFieldBuilder() + .addBuilder( + index, com.google.cloud.video.livestream.v1.StaticOverlay.getDefaultInstance()); + } + /** + * + * + *
                  +     * Optional. List of static overlay images. Those images display over the
                  +     * output content for the whole duration of the live stream.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getStaticOverlaysBuilderList() { + return getStaticOverlaysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.livestream.v1.StaticOverlay, + com.google.cloud.video.livestream.v1.StaticOverlay.Builder, + com.google.cloud.video.livestream.v1.StaticOverlayOrBuilder> + getStaticOverlaysFieldBuilder() { + if (staticOverlaysBuilder_ == null) { + staticOverlaysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.livestream.v1.StaticOverlay, + com.google.cloud.video.livestream.v1.StaticOverlay.Builder, + com.google.cloud.video.livestream.v1.StaticOverlayOrBuilder>( + staticOverlays_, + ((bitField0_ & 0x00040000) != 0), + getParentForChildren(), + isClean()); + staticOverlays_ = null; + } + return staticOverlaysBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelOrBuilder.java index 1ee30eaf17e9..3c28464c1b80 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelOrBuilder.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelOrBuilder.java @@ -787,4 +787,112 @@ com.google.cloud.video.livestream.v1.ElementaryStreamOrBuilder getElementaryStre * .google.cloud.video.livestream.v1.InputConfig input_config = 25; */ com.google.cloud.video.livestream.v1.InputConfigOrBuilder getInputConfigOrBuilder(); + + /** + * + * + *
                  +   * Optional. Configuration for retention of output files for this channel.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retentionConfig field is set. + */ + boolean hasRetentionConfig(); + /** + * + * + *
                  +   * Optional. Configuration for retention of output files for this channel.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionConfig. + */ + com.google.cloud.video.livestream.v1.RetentionConfig getRetentionConfig(); + /** + * + * + *
                  +   * Optional. Configuration for retention of output files for this channel.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.RetentionConfig retention_config = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.video.livestream.v1.RetentionConfigOrBuilder getRetentionConfigOrBuilder(); + + /** + * + * + *
                  +   * Optional. List of static overlay images. Those images display over the
                  +   * output content for the whole duration of the live stream.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getStaticOverlaysList(); + /** + * + * + *
                  +   * Optional. List of static overlay images. Those images display over the
                  +   * output content for the whole duration of the live stream.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.video.livestream.v1.StaticOverlay getStaticOverlays(int index); + /** + * + * + *
                  +   * Optional. List of static overlay images. Those images display over the
                  +   * output content for the whole duration of the live stream.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getStaticOverlaysCount(); + /** + * + * + *
                  +   * Optional. List of static overlay images. Those images display over the
                  +   * output content for the whole duration of the live stream.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getStaticOverlaysOrBuilderList(); + /** + * + * + *
                  +   * Optional. List of static overlay images. Those images display over the
                  +   * output content for the whole duration of the live stream.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.StaticOverlay static_overlays = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.video.livestream.v1.StaticOverlayOrBuilder getStaticOverlaysOrBuilder(int index); } diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Clip.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Clip.java new file mode 100644 index 000000000000..d2ac10feaf30 --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Clip.java @@ -0,0 +1,6605 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +/** + * + * + *
                  + * Clip is a sub-resource under channel. Each clip represents a clipping
                  + * operation that generates a VOD playlist from its channel given a set of
                  + * timestamp ranges.
                  + * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.Clip} + */ +public final class Clip extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Clip) + ClipOrBuilder { + private static final long serialVersionUID = 0L; + // Use Clip.newBuilder() to construct. + private Clip(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Clip() { + name_ = ""; + state_ = 0; + outputUri_ = ""; + slices_ = java.util.Collections.emptyList(); + clipManifests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Clip(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.Clip.class, + com.google.cloud.video.livestream.v1.Clip.Builder.class); + } + + /** + * + * + *
                  +   * State of clipping operation.
                  +   * 
                  + * + * Protobuf enum {@code google.cloud.video.livestream.v1.Clip.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                  +     * State is not specified.
                  +     * 
                  + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                  +     * The operation is pending to be picked up by the server.
                  +     * 
                  + * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
                  +     * The server admitted this create clip request, and
                  +     * outputs are under processing.
                  +     * 
                  + * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
                  +     * Outputs are available in the specified Cloud Storage bucket. For
                  +     * additional information, see the `outputs` field.
                  +     * 
                  + * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * + * + *
                  +     * The operation has failed. For additional information, see the `error`
                  +     * field.
                  +     * 
                  + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                  +     * State is not specified.
                  +     * 
                  + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
                  +     * The operation is pending to be picked up by the server.
                  +     * 
                  + * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + /** + * + * + *
                  +     * The server admitted this create clip request, and
                  +     * outputs are under processing.
                  +     * 
                  + * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + /** + * + * + *
                  +     * Outputs are available in the specified Cloud Storage bucket. For
                  +     * additional information, see the `outputs` field.
                  +     * 
                  + * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + /** + * + * + *
                  +     * The operation has failed. For additional information, see the `error`
                  +     * field.
                  +     * 
                  + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return CREATING; + case 3: + return SUCCEEDED; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.Clip.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.video.livestream.v1.Clip.State) + } + + public interface TimeSliceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.Clip.TimeSlice) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +     * The mark-in Unix epoch time in the original live stream manifest.
                  +     * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + * + * @return Whether the markinTime field is set. + */ + boolean hasMarkinTime(); + /** + * + * + *
                  +     * The mark-in Unix epoch time in the original live stream manifest.
                  +     * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + * + * @return The markinTime. + */ + com.google.protobuf.Timestamp getMarkinTime(); + /** + * + * + *
                  +     * The mark-in Unix epoch time in the original live stream manifest.
                  +     * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getMarkinTimeOrBuilder(); + + /** + * + * + *
                  +     * The mark-out Unix epoch time in the original live stream manifest.
                  +     * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + * + * @return Whether the markoutTime field is set. + */ + boolean hasMarkoutTime(); + /** + * + * + *
                  +     * The mark-out Unix epoch time in the original live stream manifest.
                  +     * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + * + * @return The markoutTime. + */ + com.google.protobuf.Timestamp getMarkoutTime(); + /** + * + * + *
                  +     * The mark-out Unix epoch time in the original live stream manifest.
                  +     * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getMarkoutTimeOrBuilder(); + } + /** + * + * + *
                  +   * TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
                  +   * range.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.Clip.TimeSlice} + */ + public static final class TimeSlice extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Clip.TimeSlice) + TimeSliceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimeSlice.newBuilder() to construct. + private TimeSlice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimeSlice() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimeSlice(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.Clip.TimeSlice.class, + com.google.cloud.video.livestream.v1.Clip.TimeSlice.Builder.class); + } + + private int bitField0_; + public static final int MARKIN_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp markinTime_; + /** + * + * + *
                  +     * The mark-in Unix epoch time in the original live stream manifest.
                  +     * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + * + * @return Whether the markinTime field is set. + */ + @java.lang.Override + public boolean hasMarkinTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                  +     * The mark-in Unix epoch time in the original live stream manifest.
                  +     * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + * + * @return The markinTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getMarkinTime() { + return markinTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : markinTime_; + } + /** + * + * + *
                  +     * The mark-in Unix epoch time in the original live stream manifest.
                  +     * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getMarkinTimeOrBuilder() { + return markinTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : markinTime_; + } + + public static final int MARKOUT_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp markoutTime_; + /** + * + * + *
                  +     * The mark-out Unix epoch time in the original live stream manifest.
                  +     * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + * + * @return Whether the markoutTime field is set. + */ + @java.lang.Override + public boolean hasMarkoutTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                  +     * The mark-out Unix epoch time in the original live stream manifest.
                  +     * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + * + * @return The markoutTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getMarkoutTime() { + return markoutTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : markoutTime_; + } + /** + * + * + *
                  +     * The mark-out Unix epoch time in the original live stream manifest.
                  +     * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getMarkoutTimeOrBuilder() { + return markoutTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : markoutTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMarkinTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getMarkoutTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMarkinTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMarkoutTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.livestream.v1.Clip.TimeSlice)) { + return super.equals(obj); + } + com.google.cloud.video.livestream.v1.Clip.TimeSlice other = + (com.google.cloud.video.livestream.v1.Clip.TimeSlice) obj; + + if (hasMarkinTime() != other.hasMarkinTime()) return false; + if (hasMarkinTime()) { + if (!getMarkinTime().equals(other.getMarkinTime())) return false; + } + if (hasMarkoutTime() != other.hasMarkoutTime()) return false; + if (hasMarkoutTime()) { + if (!getMarkoutTime().equals(other.getMarkoutTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMarkinTime()) { + hash = (37 * hash) + MARKIN_TIME_FIELD_NUMBER; + hash = (53 * hash) + getMarkinTime().hashCode(); + } + if (hasMarkoutTime()) { + hash = (37 * hash) + MARKOUT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getMarkoutTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.livestream.v1.Clip.TimeSlice prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +     * TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
                  +     * range.
                  +     * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.Clip.TimeSlice} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Clip.TimeSlice) + com.google.cloud.video.livestream.v1.Clip.TimeSliceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.Clip.TimeSlice.class, + com.google.cloud.video.livestream.v1.Clip.TimeSlice.Builder.class); + } + + // Construct using com.google.cloud.video.livestream.v1.Clip.TimeSlice.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMarkinTimeFieldBuilder(); + getMarkoutTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + markinTime_ = null; + if (markinTimeBuilder_ != null) { + markinTimeBuilder_.dispose(); + markinTimeBuilder_ = null; + } + markoutTime_ = null; + if (markoutTimeBuilder_ != null) { + markoutTimeBuilder_.dispose(); + markoutTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.TimeSlice getDefaultInstanceForType() { + return com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.TimeSlice build() { + com.google.cloud.video.livestream.v1.Clip.TimeSlice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.TimeSlice buildPartial() { + com.google.cloud.video.livestream.v1.Clip.TimeSlice result = + new com.google.cloud.video.livestream.v1.Clip.TimeSlice(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.livestream.v1.Clip.TimeSlice result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.markinTime_ = + markinTimeBuilder_ == null ? markinTime_ : markinTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.markoutTime_ = + markoutTimeBuilder_ == null ? markoutTime_ : markoutTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.livestream.v1.Clip.TimeSlice) { + return mergeFrom((com.google.cloud.video.livestream.v1.Clip.TimeSlice) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.livestream.v1.Clip.TimeSlice other) { + if (other == com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance()) + return this; + if (other.hasMarkinTime()) { + mergeMarkinTime(other.getMarkinTime()); + } + if (other.hasMarkoutTime()) { + mergeMarkoutTime(other.getMarkoutTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getMarkinTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getMarkoutTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp markinTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + markinTimeBuilder_; + /** + * + * + *
                  +       * The mark-in Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + * + * @return Whether the markinTime field is set. + */ + public boolean hasMarkinTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                  +       * The mark-in Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + * + * @return The markinTime. + */ + public com.google.protobuf.Timestamp getMarkinTime() { + if (markinTimeBuilder_ == null) { + return markinTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : markinTime_; + } else { + return markinTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                  +       * The mark-in Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + */ + public Builder setMarkinTime(com.google.protobuf.Timestamp value) { + if (markinTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + markinTime_ = value; + } else { + markinTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +       * The mark-in Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + */ + public Builder setMarkinTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (markinTimeBuilder_ == null) { + markinTime_ = builderForValue.build(); + } else { + markinTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +       * The mark-in Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + */ + public Builder mergeMarkinTime(com.google.protobuf.Timestamp value) { + if (markinTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && markinTime_ != null + && markinTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getMarkinTimeBuilder().mergeFrom(value); + } else { + markinTime_ = value; + } + } else { + markinTimeBuilder_.mergeFrom(value); + } + if (markinTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
                  +       * The mark-in Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + */ + public Builder clearMarkinTime() { + bitField0_ = (bitField0_ & ~0x00000001); + markinTime_ = null; + if (markinTimeBuilder_ != null) { + markinTimeBuilder_.dispose(); + markinTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +       * The mark-in Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getMarkinTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMarkinTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +       * The mark-in Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getMarkinTimeOrBuilder() { + if (markinTimeBuilder_ != null) { + return markinTimeBuilder_.getMessageOrBuilder(); + } else { + return markinTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : markinTime_; + } + } + /** + * + * + *
                  +       * The mark-in Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markin_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getMarkinTimeFieldBuilder() { + if (markinTimeBuilder_ == null) { + markinTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getMarkinTime(), getParentForChildren(), isClean()); + markinTime_ = null; + } + return markinTimeBuilder_; + } + + private com.google.protobuf.Timestamp markoutTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + markoutTimeBuilder_; + /** + * + * + *
                  +       * The mark-out Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + * + * @return Whether the markoutTime field is set. + */ + public boolean hasMarkoutTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                  +       * The mark-out Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + * + * @return The markoutTime. + */ + public com.google.protobuf.Timestamp getMarkoutTime() { + if (markoutTimeBuilder_ == null) { + return markoutTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : markoutTime_; + } else { + return markoutTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                  +       * The mark-out Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + */ + public Builder setMarkoutTime(com.google.protobuf.Timestamp value) { + if (markoutTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + markoutTime_ = value; + } else { + markoutTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +       * The mark-out Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + */ + public Builder setMarkoutTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (markoutTimeBuilder_ == null) { + markoutTime_ = builderForValue.build(); + } else { + markoutTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +       * The mark-out Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + */ + public Builder mergeMarkoutTime(com.google.protobuf.Timestamp value) { + if (markoutTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && markoutTime_ != null + && markoutTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getMarkoutTimeBuilder().mergeFrom(value); + } else { + markoutTime_ = value; + } + } else { + markoutTimeBuilder_.mergeFrom(value); + } + if (markoutTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                  +       * The mark-out Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + */ + public Builder clearMarkoutTime() { + bitField0_ = (bitField0_ & ~0x00000002); + markoutTime_ = null; + if (markoutTimeBuilder_ != null) { + markoutTimeBuilder_.dispose(); + markoutTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +       * The mark-out Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getMarkoutTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMarkoutTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +       * The mark-out Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getMarkoutTimeOrBuilder() { + if (markoutTimeBuilder_ != null) { + return markoutTimeBuilder_.getMessageOrBuilder(); + } else { + return markoutTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : markoutTime_; + } + } + /** + * + * + *
                  +       * The mark-out Unix epoch time in the original live stream manifest.
                  +       * 
                  + * + * .google.protobuf.Timestamp markout_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getMarkoutTimeFieldBuilder() { + if (markoutTimeBuilder_ == null) { + markoutTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getMarkoutTime(), getParentForChildren(), isClean()); + markoutTime_ = null; + } + return markoutTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.Clip.TimeSlice) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Clip.TimeSlice) + private static final com.google.cloud.video.livestream.v1.Clip.TimeSlice DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Clip.TimeSlice(); + } + + public static com.google.cloud.video.livestream.v1.Clip.TimeSlice getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSlice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.TimeSlice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SliceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.Clip.Slice) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +     * A slice in form of a tuple of Unix epoch time.
                  +     * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + * + * @return Whether the timeSlice field is set. + */ + boolean hasTimeSlice(); + /** + * + * + *
                  +     * A slice in form of a tuple of Unix epoch time.
                  +     * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + * + * @return The timeSlice. + */ + com.google.cloud.video.livestream.v1.Clip.TimeSlice getTimeSlice(); + /** + * + * + *
                  +     * A slice in form of a tuple of Unix epoch time.
                  +     * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + */ + com.google.cloud.video.livestream.v1.Clip.TimeSliceOrBuilder getTimeSliceOrBuilder(); + + com.google.cloud.video.livestream.v1.Clip.Slice.KindCase getKindCase(); + } + /** + * + * + *
                  +   * Slice represents a slice of the requested clip.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.Clip.Slice} + */ + public static final class Slice extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Clip.Slice) + SliceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Slice.newBuilder() to construct. + private Slice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Slice() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Slice(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_Slice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_Slice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.Clip.Slice.class, + com.google.cloud.video.livestream.v1.Clip.Slice.Builder.class); + } + + private int kindCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object kind_; + + public enum KindCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TIME_SLICE(1), + KIND_NOT_SET(0); + private final int value; + + private KindCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KindCase valueOf(int value) { + return forNumber(value); + } + + public static KindCase forNumber(int value) { + switch (value) { + case 1: + return TIME_SLICE; + case 0: + return KIND_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public KindCase getKindCase() { + return KindCase.forNumber(kindCase_); + } + + public static final int TIME_SLICE_FIELD_NUMBER = 1; + /** + * + * + *
                  +     * A slice in form of a tuple of Unix epoch time.
                  +     * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + * + * @return Whether the timeSlice field is set. + */ + @java.lang.Override + public boolean hasTimeSlice() { + return kindCase_ == 1; + } + /** + * + * + *
                  +     * A slice in form of a tuple of Unix epoch time.
                  +     * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + * + * @return The timeSlice. + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.TimeSlice getTimeSlice() { + if (kindCase_ == 1) { + return (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_; + } + return com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance(); + } + /** + * + * + *
                  +     * A slice in form of a tuple of Unix epoch time.
                  +     * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.TimeSliceOrBuilder getTimeSliceOrBuilder() { + if (kindCase_ == 1) { + return (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_; + } + return com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (kindCase_ == 1) { + output.writeMessage(1, (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (kindCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.livestream.v1.Clip.Slice)) { + return super.equals(obj); + } + com.google.cloud.video.livestream.v1.Clip.Slice other = + (com.google.cloud.video.livestream.v1.Clip.Slice) obj; + + if (!getKindCase().equals(other.getKindCase())) return false; + switch (kindCase_) { + case 1: + if (!getTimeSlice().equals(other.getTimeSlice())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (kindCase_) { + case 1: + hash = (37 * hash) + TIME_SLICE_FIELD_NUMBER; + hash = (53 * hash) + getTimeSlice().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.livestream.v1.Clip.Slice parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.Clip.Slice parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.Slice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.Clip.Slice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.Slice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.Clip.Slice parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.Slice parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.Clip.Slice parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.Slice parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.Clip.Slice parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.Slice parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.Clip.Slice parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.video.livestream.v1.Clip.Slice prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +     * Slice represents a slice of the requested clip.
                  +     * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.Clip.Slice} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Clip.Slice) + com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_Slice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_Slice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.Clip.Slice.class, + com.google.cloud.video.livestream.v1.Clip.Slice.Builder.class); + } + + // Construct using com.google.cloud.video.livestream.v1.Clip.Slice.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (timeSliceBuilder_ != null) { + timeSliceBuilder_.clear(); + } + kindCase_ = 0; + kind_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_Slice_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.Slice getDefaultInstanceForType() { + return com.google.cloud.video.livestream.v1.Clip.Slice.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.Slice build() { + com.google.cloud.video.livestream.v1.Clip.Slice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.Slice buildPartial() { + com.google.cloud.video.livestream.v1.Clip.Slice result = + new com.google.cloud.video.livestream.v1.Clip.Slice(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.livestream.v1.Clip.Slice result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.video.livestream.v1.Clip.Slice result) { + result.kindCase_ = kindCase_; + result.kind_ = this.kind_; + if (kindCase_ == 1 && timeSliceBuilder_ != null) { + result.kind_ = timeSliceBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.livestream.v1.Clip.Slice) { + return mergeFrom((com.google.cloud.video.livestream.v1.Clip.Slice) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.livestream.v1.Clip.Slice other) { + if (other == com.google.cloud.video.livestream.v1.Clip.Slice.getDefaultInstance()) + return this; + switch (other.getKindCase()) { + case TIME_SLICE: + { + mergeTimeSlice(other.getTimeSlice()); + break; + } + case KIND_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getTimeSliceFieldBuilder().getBuilder(), extensionRegistry); + kindCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int kindCase_ = 0; + private java.lang.Object kind_; + + public KindCase getKindCase() { + return KindCase.forNumber(kindCase_); + } + + public Builder clearKind() { + kindCase_ = 0; + kind_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip.TimeSlice, + com.google.cloud.video.livestream.v1.Clip.TimeSlice.Builder, + com.google.cloud.video.livestream.v1.Clip.TimeSliceOrBuilder> + timeSliceBuilder_; + /** + * + * + *
                  +       * A slice in form of a tuple of Unix epoch time.
                  +       * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + * + * @return Whether the timeSlice field is set. + */ + @java.lang.Override + public boolean hasTimeSlice() { + return kindCase_ == 1; + } + /** + * + * + *
                  +       * A slice in form of a tuple of Unix epoch time.
                  +       * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + * + * @return The timeSlice. + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.TimeSlice getTimeSlice() { + if (timeSliceBuilder_ == null) { + if (kindCase_ == 1) { + return (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_; + } + return com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance(); + } else { + if (kindCase_ == 1) { + return timeSliceBuilder_.getMessage(); + } + return com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance(); + } + } + /** + * + * + *
                  +       * A slice in form of a tuple of Unix epoch time.
                  +       * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + */ + public Builder setTimeSlice(com.google.cloud.video.livestream.v1.Clip.TimeSlice value) { + if (timeSliceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + timeSliceBuilder_.setMessage(value); + } + kindCase_ = 1; + return this; + } + /** + * + * + *
                  +       * A slice in form of a tuple of Unix epoch time.
                  +       * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + */ + public Builder setTimeSlice( + com.google.cloud.video.livestream.v1.Clip.TimeSlice.Builder builderForValue) { + if (timeSliceBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + timeSliceBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 1; + return this; + } + /** + * + * + *
                  +       * A slice in form of a tuple of Unix epoch time.
                  +       * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + */ + public Builder mergeTimeSlice(com.google.cloud.video.livestream.v1.Clip.TimeSlice value) { + if (timeSliceBuilder_ == null) { + if (kindCase_ == 1 + && kind_ + != com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance()) { + kind_ = + com.google.cloud.video.livestream.v1.Clip.TimeSlice.newBuilder( + (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_) + .mergeFrom(value) + .buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 1) { + timeSliceBuilder_.mergeFrom(value); + } else { + timeSliceBuilder_.setMessage(value); + } + } + kindCase_ = 1; + return this; + } + /** + * + * + *
                  +       * A slice in form of a tuple of Unix epoch time.
                  +       * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + */ + public Builder clearTimeSlice() { + if (timeSliceBuilder_ == null) { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + } + timeSliceBuilder_.clear(); + } + return this; + } + /** + * + * + *
                  +       * A slice in form of a tuple of Unix epoch time.
                  +       * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + */ + public com.google.cloud.video.livestream.v1.Clip.TimeSlice.Builder getTimeSliceBuilder() { + return getTimeSliceFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +       * A slice in form of a tuple of Unix epoch time.
                  +       * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.TimeSliceOrBuilder getTimeSliceOrBuilder() { + if ((kindCase_ == 1) && (timeSliceBuilder_ != null)) { + return timeSliceBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 1) { + return (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_; + } + return com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance(); + } + } + /** + * + * + *
                  +       * A slice in form of a tuple of Unix epoch time.
                  +       * 
                  + * + * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip.TimeSlice, + com.google.cloud.video.livestream.v1.Clip.TimeSlice.Builder, + com.google.cloud.video.livestream.v1.Clip.TimeSliceOrBuilder> + getTimeSliceFieldBuilder() { + if (timeSliceBuilder_ == null) { + if (!(kindCase_ == 1)) { + kind_ = com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance(); + } + timeSliceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip.TimeSlice, + com.google.cloud.video.livestream.v1.Clip.TimeSlice.Builder, + com.google.cloud.video.livestream.v1.Clip.TimeSliceOrBuilder>( + (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 1; + onChanged(); + return timeSliceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.Clip.Slice) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Clip.Slice) + private static final com.google.cloud.video.livestream.v1.Clip.Slice DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Clip.Slice(); + } + + public static com.google.cloud.video.livestream.v1.Clip.Slice getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Slice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.Slice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ClipManifestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.Clip.ClipManifest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +     * Required. A unique key that identifies a manifest config in the parent
                  +     * channel. This key is the same as `channel.manifests.key` for the selected
                  +     * manifest.
                  +     * 
                  + * + * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The manifestKey. + */ + java.lang.String getManifestKey(); + /** + * + * + *
                  +     * Required. A unique key that identifies a manifest config in the parent
                  +     * channel. This key is the same as `channel.manifests.key` for the selected
                  +     * manifest.
                  +     * 
                  + * + * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for manifestKey. + */ + com.google.protobuf.ByteString getManifestKeyBytes(); + + /** + * + * + *
                  +     * Output only. The output URI of the generated clip manifest. This field
                  +     * will be populated when the CreateClip request is accepted. Current output
                  +     * format is provided below but may change in the future. Please read this
                  +     * field to get the uri to the generated clip manifest. Format:
                  +     * {clip.output_uri}/{channel.manifest.fileName} Example:
                  +     * gs://my-bucket/clip-outputs/main.m3u8
                  +     * 
                  + * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The outputUri. + */ + java.lang.String getOutputUri(); + /** + * + * + *
                  +     * Output only. The output URI of the generated clip manifest. This field
                  +     * will be populated when the CreateClip request is accepted. Current output
                  +     * format is provided below but may change in the future. Please read this
                  +     * field to get the uri to the generated clip manifest. Format:
                  +     * {clip.output_uri}/{channel.manifest.fileName} Example:
                  +     * gs://my-bucket/clip-outputs/main.m3u8
                  +     * 
                  + * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for outputUri. + */ + com.google.protobuf.ByteString getOutputUriBytes(); + } + /** + * + * + *
                  +   * ClipManifest identifies a source manifest for the generated clip manifest.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.Clip.ClipManifest} + */ + public static final class ClipManifest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Clip.ClipManifest) + ClipManifestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClipManifest.newBuilder() to construct. + private ClipManifest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClipManifest() { + manifestKey_ = ""; + outputUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClipManifest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.Clip.ClipManifest.class, + com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder.class); + } + + public static final int MANIFEST_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object manifestKey_ = ""; + /** + * + * + *
                  +     * Required. A unique key that identifies a manifest config in the parent
                  +     * channel. This key is the same as `channel.manifests.key` for the selected
                  +     * manifest.
                  +     * 
                  + * + * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The manifestKey. + */ + @java.lang.Override + public java.lang.String getManifestKey() { + java.lang.Object ref = manifestKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + manifestKey_ = s; + return s; + } + } + /** + * + * + *
                  +     * Required. A unique key that identifies a manifest config in the parent
                  +     * channel. This key is the same as `channel.manifests.key` for the selected
                  +     * manifest.
                  +     * 
                  + * + * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for manifestKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getManifestKeyBytes() { + java.lang.Object ref = manifestKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + manifestKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputUri_ = ""; + /** + * + * + *
                  +     * Output only. The output URI of the generated clip manifest. This field
                  +     * will be populated when the CreateClip request is accepted. Current output
                  +     * format is provided below but may change in the future. Please read this
                  +     * field to get the uri to the generated clip manifest. Format:
                  +     * {clip.output_uri}/{channel.manifest.fileName} Example:
                  +     * gs://my-bucket/clip-outputs/main.m3u8
                  +     * 
                  + * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The outputUri. + */ + @java.lang.Override + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } + } + /** + * + * + *
                  +     * Output only. The output URI of the generated clip manifest. This field
                  +     * will be populated when the CreateClip request is accepted. Current output
                  +     * format is provided below but may change in the future. Please read this
                  +     * field to get the uri to the generated clip manifest. Format:
                  +     * {clip.output_uri}/{channel.manifest.fileName} Example:
                  +     * gs://my-bucket/clip-outputs/main.m3u8
                  +     * 
                  + * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for outputUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifestKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, manifestKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifestKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, manifestKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.livestream.v1.Clip.ClipManifest)) { + return super.equals(obj); + } + com.google.cloud.video.livestream.v1.Clip.ClipManifest other = + (com.google.cloud.video.livestream.v1.Clip.ClipManifest) obj; + + if (!getManifestKey().equals(other.getManifestKey())) return false; + if (!getOutputUri().equals(other.getOutputUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MANIFEST_KEY_FIELD_NUMBER; + hash = (53 * hash) + getManifestKey().hashCode(); + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.livestream.v1.Clip.ClipManifest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +     * ClipManifest identifies a source manifest for the generated clip manifest.
                  +     * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.Clip.ClipManifest} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Clip.ClipManifest) + com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.Clip.ClipManifest.class, + com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder.class); + } + + // Construct using com.google.cloud.video.livestream.v1.Clip.ClipManifest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + manifestKey_ = ""; + outputUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.ClipManifest getDefaultInstanceForType() { + return com.google.cloud.video.livestream.v1.Clip.ClipManifest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.ClipManifest build() { + com.google.cloud.video.livestream.v1.Clip.ClipManifest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.ClipManifest buildPartial() { + com.google.cloud.video.livestream.v1.Clip.ClipManifest result = + new com.google.cloud.video.livestream.v1.Clip.ClipManifest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.livestream.v1.Clip.ClipManifest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.manifestKey_ = manifestKey_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputUri_ = outputUri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.livestream.v1.Clip.ClipManifest) { + return mergeFrom((com.google.cloud.video.livestream.v1.Clip.ClipManifest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.livestream.v1.Clip.ClipManifest other) { + if (other == com.google.cloud.video.livestream.v1.Clip.ClipManifest.getDefaultInstance()) + return this; + if (!other.getManifestKey().isEmpty()) { + manifestKey_ = other.manifestKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOutputUri().isEmpty()) { + outputUri_ = other.outputUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + manifestKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + outputUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object manifestKey_ = ""; + /** + * + * + *
                  +       * Required. A unique key that identifies a manifest config in the parent
                  +       * channel. This key is the same as `channel.manifests.key` for the selected
                  +       * manifest.
                  +       * 
                  + * + * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The manifestKey. + */ + public java.lang.String getManifestKey() { + java.lang.Object ref = manifestKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + manifestKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +       * Required. A unique key that identifies a manifest config in the parent
                  +       * channel. This key is the same as `channel.manifests.key` for the selected
                  +       * manifest.
                  +       * 
                  + * + * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for manifestKey. + */ + public com.google.protobuf.ByteString getManifestKeyBytes() { + java.lang.Object ref = manifestKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + manifestKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +       * Required. A unique key that identifies a manifest config in the parent
                  +       * channel. This key is the same as `channel.manifests.key` for the selected
                  +       * manifest.
                  +       * 
                  + * + * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The manifestKey to set. + * @return This builder for chaining. + */ + public Builder setManifestKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + manifestKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Required. A unique key that identifies a manifest config in the parent
                  +       * channel. This key is the same as `channel.manifests.key` for the selected
                  +       * manifest.
                  +       * 
                  + * + * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearManifestKey() { + manifestKey_ = getDefaultInstance().getManifestKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                  +       * Required. A unique key that identifies a manifest config in the parent
                  +       * channel. This key is the same as `channel.manifests.key` for the selected
                  +       * manifest.
                  +       * 
                  + * + * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for manifestKey to set. + * @return This builder for chaining. + */ + public Builder setManifestKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manifestKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object outputUri_ = ""; + /** + * + * + *
                  +       * Output only. The output URI of the generated clip manifest. This field
                  +       * will be populated when the CreateClip request is accepted. Current output
                  +       * format is provided below but may change in the future. Please read this
                  +       * field to get the uri to the generated clip manifest. Format:
                  +       * {clip.output_uri}/{channel.manifest.fileName} Example:
                  +       * gs://my-bucket/clip-outputs/main.m3u8
                  +       * 
                  + * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The outputUri. + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +       * Output only. The output URI of the generated clip manifest. This field
                  +       * will be populated when the CreateClip request is accepted. Current output
                  +       * format is provided below but may change in the future. Please read this
                  +       * field to get the uri to the generated clip manifest. Format:
                  +       * {clip.output_uri}/{channel.manifest.fileName} Example:
                  +       * gs://my-bucket/clip-outputs/main.m3u8
                  +       * 
                  + * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for outputUri. + */ + public com.google.protobuf.ByteString getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +       * Output only. The output URI of the generated clip manifest. This field
                  +       * will be populated when the CreateClip request is accepted. Current output
                  +       * format is provided below but may change in the future. Please read this
                  +       * field to get the uri to the generated clip manifest. Format:
                  +       * {clip.output_uri}/{channel.manifest.fileName} Example:
                  +       * gs://my-bucket/clip-outputs/main.m3u8
                  +       * 
                  + * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The outputUri to set. + * @return This builder for chaining. + */ + public Builder setOutputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Output only. The output URI of the generated clip manifest. This field
                  +       * will be populated when the CreateClip request is accepted. Current output
                  +       * format is provided below but may change in the future. Please read this
                  +       * field to get the uri to the generated clip manifest. Format:
                  +       * {clip.output_uri}/{channel.manifest.fileName} Example:
                  +       * gs://my-bucket/clip-outputs/main.m3u8
                  +       * 
                  + * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOutputUri() { + outputUri_ = getDefaultInstance().getOutputUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                  +       * Output only. The output URI of the generated clip manifest. This field
                  +       * will be populated when the CreateClip request is accepted. Current output
                  +       * format is provided below but may change in the future. Please read this
                  +       * field to get the uri to the generated clip manifest. Format:
                  +       * {clip.output_uri}/{channel.manifest.fileName} Example:
                  +       * gs://my-bucket/clip-outputs/main.m3u8
                  +       * 
                  + * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for outputUri to set. + * @return This builder for chaining. + */ + public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.Clip.ClipManifest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Clip.ClipManifest) + private static final com.google.cloud.video.livestream.v1.Clip.ClipManifest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Clip.ClipManifest(); + } + + public static com.google.cloud.video.livestream.v1.Clip.ClipManifest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClipManifest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.ClipManifest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                  +   * The resource name of the clip, in the following format:
                  +   * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
                  +   * `{clipId}` is a user-specified resource id that conforms to the following
                  +   * criteria:
                  +   *
                  +   * 1. 1 character minimum, 63 characters maximum
                  +   * 2. Only contains letters, digits, underscores, and hyphens
                  +   * 
                  + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                  +   * The resource name of the clip, in the following format:
                  +   * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
                  +   * `{clipId}` is a user-specified resource id that conforms to the following
                  +   * criteria:
                  +   *
                  +   * 1. 1 character minimum, 63 characters maximum
                  +   * 2. Only contains letters, digits, underscores, and hyphens
                  +   * 
                  + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
                  +   * Output only. The creation timestamp of the clip resource.
                  +   * 
                  + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                  +   * Output only. The creation timestamp of the clip resource.
                  +   * 
                  + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
                  +   * Output only. The creation timestamp of the clip resource.
                  +   * 
                  + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
                  +   * Output only. The timestamp when the clip request starts to be processed.
                  +   * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                  +   * Output only. The timestamp when the clip request starts to be processed.
                  +   * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
                  +   * Output only. The timestamp when the clip request starts to be processed.
                  +   * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
                  +   * Output only. The update timestamp of the clip resource.
                  +   * 
                  + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                  +   * Output only. The update timestamp of the clip resource.
                  +   * 
                  + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
                  +   * Output only. The update timestamp of the clip resource.
                  +   * 
                  + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 5; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
                  +   * The labels associated with this resource. Each label is a key-value pair.
                  +   * 
                  + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
                  +   * The labels associated with this resource. Each label is a key-value pair.
                  +   * 
                  + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
                  +   * The labels associated with this resource. Each label is a key-value pair.
                  +   * 
                  + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
                  +   * The labels associated with this resource. Each label is a key-value pair.
                  +   * 
                  + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + /** + * + * + *
                  +   * Output only. The state of the clip.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
                  +   * Output only. The state of the clip.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.State getState() { + com.google.cloud.video.livestream.v1.Clip.State result = + com.google.cloud.video.livestream.v1.Clip.State.forNumber(state_); + return result == null ? com.google.cloud.video.livestream.v1.Clip.State.UNRECOGNIZED : result; + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputUri_ = ""; + /** + * + * + *
                  +   * Specify the `output_uri` to determine where to place the clip segments and
                  +   * clip manifest files in Cloud Storage. The manifests specified in
                  +   * `clip_manifests` fields will be placed under this URI. The exact URI of the
                  +   * generated manifests will be provided in `clip_manifests.output_uri` for
                  +   * each manifest.
                  +   * Example:
                  +   * "output_uri": "gs://my-bucket/clip-outputs"
                  +   * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
                  +   * 
                  + * + * string output_uri = 7; + * + * @return The outputUri. + */ + @java.lang.Override + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } + } + /** + * + * + *
                  +   * Specify the `output_uri` to determine where to place the clip segments and
                  +   * clip manifest files in Cloud Storage. The manifests specified in
                  +   * `clip_manifests` fields will be placed under this URI. The exact URI of the
                  +   * generated manifests will be provided in `clip_manifests.output_uri` for
                  +   * each manifest.
                  +   * Example:
                  +   * "output_uri": "gs://my-bucket/clip-outputs"
                  +   * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
                  +   * 
                  + * + * string output_uri = 7; + * + * @return The bytes for outputUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 9; + private com.google.rpc.Status error_; + /** + * + * + *
                  +   * Output only. An error object that describes the reason for the failure.
                  +   * This property only presents when `state` is `FAILED`.
                  +   * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                  +   * Output only. An error object that describes the reason for the failure.
                  +   * This property only presents when `state` is `FAILED`.
                  +   * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + * + * + *
                  +   * Output only. An error object that describes the reason for the failure.
                  +   * This property only presents when `state` is `FAILED`.
                  +   * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + public static final int SLICES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List slices_; + /** + * + * + *
                  +   * The specified ranges of segments to generate a clip.
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + @java.lang.Override + public java.util.List getSlicesList() { + return slices_; + } + /** + * + * + *
                  +   * The specified ranges of segments to generate a clip.
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + @java.lang.Override + public java.util.List + getSlicesOrBuilderList() { + return slices_; + } + /** + * + * + *
                  +   * The specified ranges of segments to generate a clip.
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + @java.lang.Override + public int getSlicesCount() { + return slices_.size(); + } + /** + * + * + *
                  +   * The specified ranges of segments to generate a clip.
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.Slice getSlices(int index) { + return slices_.get(index); + } + /** + * + * + *
                  +   * The specified ranges of segments to generate a clip.
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder getSlicesOrBuilder(int index) { + return slices_.get(index); + } + + public static final int CLIP_MANIFESTS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List clipManifests_; + /** + * + * + *
                  +   * Required. A list of clip manifests. Currently only one clip manifest is
                  +   * allowed.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getClipManifestsList() { + return clipManifests_; + } + /** + * + * + *
                  +   * Required. A list of clip manifests. Currently only one clip manifest is
                  +   * allowed.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getClipManifestsOrBuilderList() { + return clipManifests_; + } + /** + * + * + *
                  +   * Required. A list of clip manifests. Currently only one clip manifest is
                  +   * allowed.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getClipManifestsCount() { + return clipManifests_.size(); + } + /** + * + * + *
                  +   * Required. A list of clip manifests. Currently only one clip manifest is
                  +   * allowed.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.ClipManifest getClipManifests(int index) { + return clipManifests_.get(index); + } + /** + * + * + *
                  +   * Required. A list of clip manifests. Currently only one clip manifest is
                  +   * allowed.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder getClipManifestsOrBuilder( + int index) { + return clipManifests_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + if (state_ != com.google.cloud.video.livestream.v1.Clip.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, outputUri_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(9, getError()); + } + for (int i = 0; i < slices_.size(); i++) { + output.writeMessage(10, slices_.get(i)); + } + for (int i = 0; i < clipManifests_.size(); i++) { + output.writeMessage(12, clipManifests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + } + if (state_ != com.google.cloud.video.livestream.v1.Clip.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, outputUri_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError()); + } + for (int i = 0; i < slices_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, slices_.get(i)); + } + for (int i = 0; i < clipManifests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, clipManifests_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.livestream.v1.Clip)) { + return super.equals(obj); + } + com.google.cloud.video.livestream.v1.Clip other = + (com.google.cloud.video.livestream.v1.Clip) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (state_ != other.state_) return false; + if (!getOutputUri().equals(other.getOutputUri())) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (!getSlicesList().equals(other.getSlicesList())) return false; + if (!getClipManifestsList().equals(other.getClipManifestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + if (getSlicesCount() > 0) { + hash = (37 * hash) + SLICES_FIELD_NUMBER; + hash = (53 * hash) + getSlicesList().hashCode(); + } + if (getClipManifestsCount() > 0) { + hash = (37 * hash) + CLIP_MANIFESTS_FIELD_NUMBER; + hash = (53 * hash) + getClipManifestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.livestream.v1.Clip parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.Clip parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.Clip parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.Clip parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.Clip parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.Clip parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.Clip parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.Clip parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.video.livestream.v1.Clip prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * Clip is a sub-resource under channel. Each clip represents a clipping
                  +   * operation that generates a VOD playlist from its channel given a set of
                  +   * timestamp ranges.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.Clip} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Clip) + com.google.cloud.video.livestream.v1.ClipOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.Clip.class, + com.google.cloud.video.livestream.v1.Clip.Builder.class); + } + + // Construct using com.google.cloud.video.livestream.v1.Clip.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getStartTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getErrorFieldBuilder(); + getSlicesFieldBuilder(); + getClipManifestsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + state_ = 0; + outputUri_ = ""; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + if (slicesBuilder_ == null) { + slices_ = java.util.Collections.emptyList(); + } else { + slices_ = null; + slicesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + if (clipManifestsBuilder_ == null) { + clipManifests_ = java.util.Collections.emptyList(); + } else { + clipManifests_ = null; + clipManifestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_Clip_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip getDefaultInstanceForType() { + return com.google.cloud.video.livestream.v1.Clip.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip build() { + com.google.cloud.video.livestream.v1.Clip result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip buildPartial() { + com.google.cloud.video.livestream.v1.Clip result = + new com.google.cloud.video.livestream.v1.Clip(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.video.livestream.v1.Clip result) { + if (slicesBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + slices_ = java.util.Collections.unmodifiableList(slices_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.slices_ = slices_; + } else { + result.slices_ = slicesBuilder_.build(); + } + if (clipManifestsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + clipManifests_ = java.util.Collections.unmodifiableList(clipManifests_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.clipManifests_ = clipManifests_; + } else { + result.clipManifests_ = clipManifestsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.video.livestream.v1.Clip result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.outputUri_ = outputUri_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.livestream.v1.Clip) { + return mergeFrom((com.google.cloud.video.livestream.v1.Clip) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.livestream.v1.Clip other) { + if (other == com.google.cloud.video.livestream.v1.Clip.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getOutputUri().isEmpty()) { + outputUri_ = other.outputUri_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasError()) { + mergeError(other.getError()); + } + if (slicesBuilder_ == null) { + if (!other.slices_.isEmpty()) { + if (slices_.isEmpty()) { + slices_ = other.slices_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureSlicesIsMutable(); + slices_.addAll(other.slices_); + } + onChanged(); + } + } else { + if (!other.slices_.isEmpty()) { + if (slicesBuilder_.isEmpty()) { + slicesBuilder_.dispose(); + slicesBuilder_ = null; + slices_ = other.slices_; + bitField0_ = (bitField0_ & ~0x00000100); + slicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSlicesFieldBuilder() + : null; + } else { + slicesBuilder_.addAllMessages(other.slices_); + } + } + } + if (clipManifestsBuilder_ == null) { + if (!other.clipManifests_.isEmpty()) { + if (clipManifests_.isEmpty()) { + clipManifests_ = other.clipManifests_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureClipManifestsIsMutable(); + clipManifests_.addAll(other.clipManifests_); + } + onChanged(); + } + } else { + if (!other.clipManifests_.isEmpty()) { + if (clipManifestsBuilder_.isEmpty()) { + clipManifestsBuilder_.dispose(); + clipManifestsBuilder_ = null; + clipManifests_ = other.clipManifests_; + bitField0_ = (bitField0_ & ~0x00000200); + clipManifestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClipManifestsFieldBuilder() + : null; + } else { + clipManifestsBuilder_.addAllMessages(other.clipManifests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + outputUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 74: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 82: + { + com.google.cloud.video.livestream.v1.Clip.Slice m = + input.readMessage( + com.google.cloud.video.livestream.v1.Clip.Slice.parser(), + extensionRegistry); + if (slicesBuilder_ == null) { + ensureSlicesIsMutable(); + slices_.add(m); + } else { + slicesBuilder_.addMessage(m); + } + break; + } // case 82 + case 98: + { + com.google.cloud.video.livestream.v1.Clip.ClipManifest m = + input.readMessage( + com.google.cloud.video.livestream.v1.Clip.ClipManifest.parser(), + extensionRegistry); + if (clipManifestsBuilder_ == null) { + ensureClipManifestsIsMutable(); + clipManifests_.add(m); + } else { + clipManifestsBuilder_.addMessage(m); + } + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
                  +     * The resource name of the clip, in the following format:
                  +     * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
                  +     * `{clipId}` is a user-specified resource id that conforms to the following
                  +     * criteria:
                  +     *
                  +     * 1. 1 character minimum, 63 characters maximum
                  +     * 2. Only contains letters, digits, underscores, and hyphens
                  +     * 
                  + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * The resource name of the clip, in the following format:
                  +     * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
                  +     * `{clipId}` is a user-specified resource id that conforms to the following
                  +     * criteria:
                  +     *
                  +     * 1. 1 character minimum, 63 characters maximum
                  +     * 2. Only contains letters, digits, underscores, and hyphens
                  +     * 
                  + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * The resource name of the clip, in the following format:
                  +     * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
                  +     * `{clipId}` is a user-specified resource id that conforms to the following
                  +     * criteria:
                  +     *
                  +     * 1. 1 character minimum, 63 characters maximum
                  +     * 2. Only contains letters, digits, underscores, and hyphens
                  +     * 
                  + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * The resource name of the clip, in the following format:
                  +     * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
                  +     * `{clipId}` is a user-specified resource id that conforms to the following
                  +     * criteria:
                  +     *
                  +     * 1. 1 character minimum, 63 characters maximum
                  +     * 2. Only contains letters, digits, underscores, and hyphens
                  +     * 
                  + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                  +     * The resource name of the clip, in the following format:
                  +     * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
                  +     * `{clipId}` is a user-specified resource id that conforms to the following
                  +     * criteria:
                  +     *
                  +     * 1. 1 character minimum, 63 characters maximum
                  +     * 2. Only contains letters, digits, underscores, and hyphens
                  +     * 
                  + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
                  +     * Output only. The creation timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                  +     * Output only. The creation timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * Output only. The creation timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Output only. The creation timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Output only. The creation timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Output only. The creation timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * Output only. The creation timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * Output only. The creation timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
                  +     * Output only. The creation timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
                  +     * Output only. The timestamp when the clip request starts to be processed.
                  +     * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                  +     * Output only. The timestamp when the clip request starts to be processed.
                  +     * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * Output only. The timestamp when the clip request starts to be processed.
                  +     * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Output only. The timestamp when the clip request starts to be processed.
                  +     * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Output only. The timestamp when the clip request starts to be processed.
                  +     * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Output only. The timestamp when the clip request starts to be processed.
                  +     * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000004); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * Output only. The timestamp when the clip request starts to be processed.
                  +     * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * Output only. The timestamp when the clip request starts to be processed.
                  +     * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
                  +     * Output only. The timestamp when the clip request starts to be processed.
                  +     * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
                  +     * Output only. The update timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                  +     * Output only. The update timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * Output only. The update timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Output only. The update timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Output only. The update timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Output only. The update timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * Output only. The update timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * Output only. The update timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
                  +     * Output only. The update timestamp of the clip resource.
                  +     * 
                  + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
                  +     * The labels associated with this resource. Each label is a key-value pair.
                  +     * 
                  + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
                  +     * The labels associated with this resource. Each label is a key-value pair.
                  +     * 
                  + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
                  +     * The labels associated with this resource. Each label is a key-value pair.
                  +     * 
                  + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
                  +     * The labels associated with this resource. Each label is a key-value pair.
                  +     * 
                  + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
                  +     * The labels associated with this resource. Each label is a key-value pair.
                  +     * 
                  + * + * map<string, string> labels = 5; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
                  +     * The labels associated with this resource. Each label is a key-value pair.
                  +     * 
                  + * + * map<string, string> labels = 5; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + /** + * + * + *
                  +     * The labels associated with this resource. Each label is a key-value pair.
                  +     * 
                  + * + * map<string, string> labels = 5; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private int state_ = 0; + /** + * + * + *
                  +     * Output only. The state of the clip.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
                  +     * Output only. The state of the clip.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Output only. The state of the clip.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip.State getState() { + com.google.cloud.video.livestream.v1.Clip.State result = + com.google.cloud.video.livestream.v1.Clip.State.forNumber(state_); + return result == null ? com.google.cloud.video.livestream.v1.Clip.State.UNRECOGNIZED : result; + } + /** + * + * + *
                  +     * Output only. The state of the clip.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.video.livestream.v1.Clip.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Output only. The state of the clip.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object outputUri_ = ""; + /** + * + * + *
                  +     * Specify the `output_uri` to determine where to place the clip segments and
                  +     * clip manifest files in Cloud Storage. The manifests specified in
                  +     * `clip_manifests` fields will be placed under this URI. The exact URI of the
                  +     * generated manifests will be provided in `clip_manifests.output_uri` for
                  +     * each manifest.
                  +     * Example:
                  +     * "output_uri": "gs://my-bucket/clip-outputs"
                  +     * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
                  +     * 
                  + * + * string output_uri = 7; + * + * @return The outputUri. + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * Specify the `output_uri` to determine where to place the clip segments and
                  +     * clip manifest files in Cloud Storage. The manifests specified in
                  +     * `clip_manifests` fields will be placed under this URI. The exact URI of the
                  +     * generated manifests will be provided in `clip_manifests.output_uri` for
                  +     * each manifest.
                  +     * Example:
                  +     * "output_uri": "gs://my-bucket/clip-outputs"
                  +     * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
                  +     * 
                  + * + * string output_uri = 7; + * + * @return The bytes for outputUri. + */ + public com.google.protobuf.ByteString getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * Specify the `output_uri` to determine where to place the clip segments and
                  +     * clip manifest files in Cloud Storage. The manifests specified in
                  +     * `clip_manifests` fields will be placed under this URI. The exact URI of the
                  +     * generated manifests will be provided in `clip_manifests.output_uri` for
                  +     * each manifest.
                  +     * Example:
                  +     * "output_uri": "gs://my-bucket/clip-outputs"
                  +     * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
                  +     * 
                  + * + * string output_uri = 7; + * + * @param value The outputUri to set. + * @return This builder for chaining. + */ + public Builder setOutputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Specify the `output_uri` to determine where to place the clip segments and
                  +     * clip manifest files in Cloud Storage. The manifests specified in
                  +     * `clip_manifests` fields will be placed under this URI. The exact URI of the
                  +     * generated manifests will be provided in `clip_manifests.output_uri` for
                  +     * each manifest.
                  +     * Example:
                  +     * "output_uri": "gs://my-bucket/clip-outputs"
                  +     * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
                  +     * 
                  + * + * string output_uri = 7; + * + * @return This builder for chaining. + */ + public Builder clearOutputUri() { + outputUri_ = getDefaultInstance().getOutputUri(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Specify the `output_uri` to determine where to place the clip segments and
                  +     * clip manifest files in Cloud Storage. The manifests specified in
                  +     * `clip_manifests` fields will be placed under this URI. The exact URI of the
                  +     * generated manifests will be provided in `clip_manifests.output_uri` for
                  +     * each manifest.
                  +     * Example:
                  +     * "output_uri": "gs://my-bucket/clip-outputs"
                  +     * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
                  +     * 
                  + * + * string output_uri = 7; + * + * @param value The bytes for outputUri to set. + * @return This builder for chaining. + */ + public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
                  +     * Output only. An error object that describes the reason for the failure.
                  +     * This property only presents when `state` is `FAILED`.
                  +     * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
                  +     * Output only. An error object that describes the reason for the failure.
                  +     * This property only presents when `state` is `FAILED`.
                  +     * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * Output only. An error object that describes the reason for the failure.
                  +     * This property only presents when `state` is `FAILED`.
                  +     * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Output only. An error object that describes the reason for the failure.
                  +     * This property only presents when `state` is `FAILED`.
                  +     * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Output only. An error object that describes the reason for the failure.
                  +     * This property only presents when `state` is `FAILED`.
                  +     * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Output only. An error object that describes the reason for the failure.
                  +     * This property only presents when `state` is `FAILED`.
                  +     * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000080); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * Output only. An error object that describes the reason for the failure.
                  +     * This property only presents when `state` is `FAILED`.
                  +     * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * Output only. An error object that describes the reason for the failure.
                  +     * This property only presents when `state` is `FAILED`.
                  +     * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
                  +     * Output only. An error object that describes the reason for the failure.
                  +     * This property only presents when `state` is `FAILED`.
                  +     * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + private java.util.List slices_ = + java.util.Collections.emptyList(); + + private void ensureSlicesIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + slices_ = new java.util.ArrayList(slices_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip.Slice, + com.google.cloud.video.livestream.v1.Clip.Slice.Builder, + com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder> + slicesBuilder_; + + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public java.util.List getSlicesList() { + if (slicesBuilder_ == null) { + return java.util.Collections.unmodifiableList(slices_); + } else { + return slicesBuilder_.getMessageList(); + } + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public int getSlicesCount() { + if (slicesBuilder_ == null) { + return slices_.size(); + } else { + return slicesBuilder_.getCount(); + } + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public com.google.cloud.video.livestream.v1.Clip.Slice getSlices(int index) { + if (slicesBuilder_ == null) { + return slices_.get(index); + } else { + return slicesBuilder_.getMessage(index); + } + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public Builder setSlices(int index, com.google.cloud.video.livestream.v1.Clip.Slice value) { + if (slicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSlicesIsMutable(); + slices_.set(index, value); + onChanged(); + } else { + slicesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public Builder setSlices( + int index, com.google.cloud.video.livestream.v1.Clip.Slice.Builder builderForValue) { + if (slicesBuilder_ == null) { + ensureSlicesIsMutable(); + slices_.set(index, builderForValue.build()); + onChanged(); + } else { + slicesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public Builder addSlices(com.google.cloud.video.livestream.v1.Clip.Slice value) { + if (slicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSlicesIsMutable(); + slices_.add(value); + onChanged(); + } else { + slicesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public Builder addSlices(int index, com.google.cloud.video.livestream.v1.Clip.Slice value) { + if (slicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSlicesIsMutable(); + slices_.add(index, value); + onChanged(); + } else { + slicesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public Builder addSlices( + com.google.cloud.video.livestream.v1.Clip.Slice.Builder builderForValue) { + if (slicesBuilder_ == null) { + ensureSlicesIsMutable(); + slices_.add(builderForValue.build()); + onChanged(); + } else { + slicesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public Builder addSlices( + int index, com.google.cloud.video.livestream.v1.Clip.Slice.Builder builderForValue) { + if (slicesBuilder_ == null) { + ensureSlicesIsMutable(); + slices_.add(index, builderForValue.build()); + onChanged(); + } else { + slicesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public Builder addAllSlices( + java.lang.Iterable values) { + if (slicesBuilder_ == null) { + ensureSlicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, slices_); + onChanged(); + } else { + slicesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public Builder clearSlices() { + if (slicesBuilder_ == null) { + slices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + slicesBuilder_.clear(); + } + return this; + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public Builder removeSlices(int index) { + if (slicesBuilder_ == null) { + ensureSlicesIsMutable(); + slices_.remove(index); + onChanged(); + } else { + slicesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public com.google.cloud.video.livestream.v1.Clip.Slice.Builder getSlicesBuilder(int index) { + return getSlicesFieldBuilder().getBuilder(index); + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder getSlicesOrBuilder(int index) { + if (slicesBuilder_ == null) { + return slices_.get(index); + } else { + return slicesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public java.util.List + getSlicesOrBuilderList() { + if (slicesBuilder_ != null) { + return slicesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(slices_); + } + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public com.google.cloud.video.livestream.v1.Clip.Slice.Builder addSlicesBuilder() { + return getSlicesFieldBuilder() + .addBuilder(com.google.cloud.video.livestream.v1.Clip.Slice.getDefaultInstance()); + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public com.google.cloud.video.livestream.v1.Clip.Slice.Builder addSlicesBuilder(int index) { + return getSlicesFieldBuilder() + .addBuilder(index, com.google.cloud.video.livestream.v1.Clip.Slice.getDefaultInstance()); + } + /** + * + * + *
                  +     * The specified ranges of segments to generate a clip.
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + public java.util.List + getSlicesBuilderList() { + return getSlicesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip.Slice, + com.google.cloud.video.livestream.v1.Clip.Slice.Builder, + com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder> + getSlicesFieldBuilder() { + if (slicesBuilder_ == null) { + slicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip.Slice, + com.google.cloud.video.livestream.v1.Clip.Slice.Builder, + com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder>( + slices_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + slices_ = null; + } + return slicesBuilder_; + } + + private java.util.List clipManifests_ = + java.util.Collections.emptyList(); + + private void ensureClipManifestsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + clipManifests_ = + new java.util.ArrayList( + clipManifests_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip.ClipManifest, + com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder, + com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder> + clipManifestsBuilder_; + + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getClipManifestsList() { + if (clipManifestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(clipManifests_); + } else { + return clipManifestsBuilder_.getMessageList(); + } + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getClipManifestsCount() { + if (clipManifestsBuilder_ == null) { + return clipManifests_.size(); + } else { + return clipManifestsBuilder_.getCount(); + } + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.livestream.v1.Clip.ClipManifest getClipManifests(int index) { + if (clipManifestsBuilder_ == null) { + return clipManifests_.get(index); + } else { + return clipManifestsBuilder_.getMessage(index); + } + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setClipManifests( + int index, com.google.cloud.video.livestream.v1.Clip.ClipManifest value) { + if (clipManifestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClipManifestsIsMutable(); + clipManifests_.set(index, value); + onChanged(); + } else { + clipManifestsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setClipManifests( + int index, com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder builderForValue) { + if (clipManifestsBuilder_ == null) { + ensureClipManifestsIsMutable(); + clipManifests_.set(index, builderForValue.build()); + onChanged(); + } else { + clipManifestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addClipManifests(com.google.cloud.video.livestream.v1.Clip.ClipManifest value) { + if (clipManifestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClipManifestsIsMutable(); + clipManifests_.add(value); + onChanged(); + } else { + clipManifestsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addClipManifests( + int index, com.google.cloud.video.livestream.v1.Clip.ClipManifest value) { + if (clipManifestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClipManifestsIsMutable(); + clipManifests_.add(index, value); + onChanged(); + } else { + clipManifestsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addClipManifests( + com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder builderForValue) { + if (clipManifestsBuilder_ == null) { + ensureClipManifestsIsMutable(); + clipManifests_.add(builderForValue.build()); + onChanged(); + } else { + clipManifestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addClipManifests( + int index, com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder builderForValue) { + if (clipManifestsBuilder_ == null) { + ensureClipManifestsIsMutable(); + clipManifests_.add(index, builderForValue.build()); + onChanged(); + } else { + clipManifestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllClipManifests( + java.lang.Iterable + values) { + if (clipManifestsBuilder_ == null) { + ensureClipManifestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clipManifests_); + onChanged(); + } else { + clipManifestsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearClipManifests() { + if (clipManifestsBuilder_ == null) { + clipManifests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + clipManifestsBuilder_.clear(); + } + return this; + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeClipManifests(int index) { + if (clipManifestsBuilder_ == null) { + ensureClipManifestsIsMutable(); + clipManifests_.remove(index); + onChanged(); + } else { + clipManifestsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder getClipManifestsBuilder( + int index) { + return getClipManifestsFieldBuilder().getBuilder(index); + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder + getClipManifestsOrBuilder(int index) { + if (clipManifestsBuilder_ == null) { + return clipManifests_.get(index); + } else { + return clipManifestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getClipManifestsOrBuilderList() { + if (clipManifestsBuilder_ != null) { + return clipManifestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clipManifests_); + } + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder + addClipManifestsBuilder() { + return getClipManifestsFieldBuilder() + .addBuilder(com.google.cloud.video.livestream.v1.Clip.ClipManifest.getDefaultInstance()); + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder addClipManifestsBuilder( + int index) { + return getClipManifestsFieldBuilder() + .addBuilder( + index, com.google.cloud.video.livestream.v1.Clip.ClipManifest.getDefaultInstance()); + } + /** + * + * + *
                  +     * Required. A list of clip manifests. Currently only one clip manifest is
                  +     * allowed.
                  +     * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getClipManifestsBuilderList() { + return getClipManifestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip.ClipManifest, + com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder, + com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder> + getClipManifestsFieldBuilder() { + if (clipManifestsBuilder_ == null) { + clipManifestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip.ClipManifest, + com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder, + com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder>( + clipManifests_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + clipManifests_ = null; + } + return clipManifestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.Clip) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Clip) + private static final com.google.cloud.video.livestream.v1.Clip DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Clip(); + } + + public static com.google.cloud.video.livestream.v1.Clip getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Clip parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ClipName.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ClipName.java new file mode 100644 index 000000000000..e0402c8807a7 --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ClipName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ClipName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CHANNEL_CLIP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/channels/{channel}/clips/{clip}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String channel; + private final String clip; + + @Deprecated + protected ClipName() { + project = null; + location = null; + channel = null; + clip = null; + } + + private ClipName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + channel = Preconditions.checkNotNull(builder.getChannel()); + clip = Preconditions.checkNotNull(builder.getClip()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getChannel() { + return channel; + } + + public String getClip() { + return clip; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ClipName of(String project, String location, String channel, String clip) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setChannel(channel) + .setClip(clip) + .build(); + } + + public static String format(String project, String location, String channel, String clip) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setChannel(channel) + .setClip(clip) + .build() + .toString(); + } + + public static ClipName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CHANNEL_CLIP.validatedMatch( + formattedString, "ClipName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("channel"), + matchMap.get("clip")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ClipName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CHANNEL_CLIP.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (channel != null) { + fieldMapBuilder.put("channel", channel); + } + if (clip != null) { + fieldMapBuilder.put("clip", clip); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CHANNEL_CLIP.instantiate( + "project", project, "location", location, "channel", channel, "clip", clip); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ClipName that = ((ClipName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.channel, that.channel) + && Objects.equals(this.clip, that.clip); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(channel); + h *= 1000003; + h ^= Objects.hashCode(clip); + return h; + } + + /** Builder for projects/{project}/locations/{location}/channels/{channel}/clips/{clip}. */ + public static class Builder { + private String project; + private String location; + private String channel; + private String clip; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getChannel() { + return channel; + } + + public String getClip() { + return clip; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setChannel(String channel) { + this.channel = channel; + return this; + } + + public Builder setClip(String clip) { + this.clip = clip; + return this; + } + + private Builder(ClipName clipName) { + this.project = clipName.project; + this.location = clipName.location; + this.channel = clipName.channel; + this.clip = clipName.clip; + } + + public ClipName build() { + return new ClipName(this); + } + } +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ClipOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ClipOrBuilder.java new file mode 100644 index 000000000000..2c434c1cf9f5 --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ClipOrBuilder.java @@ -0,0 +1,461 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +public interface ClipOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.Clip) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * The resource name of the clip, in the following format:
                  +   * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
                  +   * `{clipId}` is a user-specified resource id that conforms to the following
                  +   * criteria:
                  +   *
                  +   * 1. 1 character minimum, 63 characters maximum
                  +   * 2. Only contains letters, digits, underscores, and hyphens
                  +   * 
                  + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                  +   * The resource name of the clip, in the following format:
                  +   * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
                  +   * `{clipId}` is a user-specified resource id that conforms to the following
                  +   * criteria:
                  +   *
                  +   * 1. 1 character minimum, 63 characters maximum
                  +   * 2. Only contains letters, digits, underscores, and hyphens
                  +   * 
                  + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                  +   * Output only. The creation timestamp of the clip resource.
                  +   * 
                  + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
                  +   * Output only. The creation timestamp of the clip resource.
                  +   * 
                  + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
                  +   * Output only. The creation timestamp of the clip resource.
                  +   * 
                  + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                  +   * Output only. The timestamp when the clip request starts to be processed.
                  +   * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
                  +   * Output only. The timestamp when the clip request starts to be processed.
                  +   * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
                  +   * Output only. The timestamp when the clip request starts to be processed.
                  +   * 
                  + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
                  +   * Output only. The update timestamp of the clip resource.
                  +   * 
                  + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
                  +   * Output only. The update timestamp of the clip resource.
                  +   * 
                  + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
                  +   * Output only. The update timestamp of the clip resource.
                  +   * 
                  + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                  +   * The labels associated with this resource. Each label is a key-value pair.
                  +   * 
                  + * + * map<string, string> labels = 5; + */ + int getLabelsCount(); + /** + * + * + *
                  +   * The labels associated with this resource. Each label is a key-value pair.
                  +   * 
                  + * + * map<string, string> labels = 5; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
                  +   * The labels associated with this resource. Each label is a key-value pair.
                  +   * 
                  + * + * map<string, string> labels = 5; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
                  +   * The labels associated with this resource. Each label is a key-value pair.
                  +   * 
                  + * + * map<string, string> labels = 5; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
                  +   * The labels associated with this resource. Each label is a key-value pair.
                  +   * 
                  + * + * map<string, string> labels = 5; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                  +   * Output only. The state of the clip.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
                  +   * Output only. The state of the clip.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.video.livestream.v1.Clip.State getState(); + + /** + * + * + *
                  +   * Specify the `output_uri` to determine where to place the clip segments and
                  +   * clip manifest files in Cloud Storage. The manifests specified in
                  +   * `clip_manifests` fields will be placed under this URI. The exact URI of the
                  +   * generated manifests will be provided in `clip_manifests.output_uri` for
                  +   * each manifest.
                  +   * Example:
                  +   * "output_uri": "gs://my-bucket/clip-outputs"
                  +   * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
                  +   * 
                  + * + * string output_uri = 7; + * + * @return The outputUri. + */ + java.lang.String getOutputUri(); + /** + * + * + *
                  +   * Specify the `output_uri` to determine where to place the clip segments and
                  +   * clip manifest files in Cloud Storage. The manifests specified in
                  +   * `clip_manifests` fields will be placed under this URI. The exact URI of the
                  +   * generated manifests will be provided in `clip_manifests.output_uri` for
                  +   * each manifest.
                  +   * Example:
                  +   * "output_uri": "gs://my-bucket/clip-outputs"
                  +   * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
                  +   * 
                  + * + * string output_uri = 7; + * + * @return The bytes for outputUri. + */ + com.google.protobuf.ByteString getOutputUriBytes(); + + /** + * + * + *
                  +   * Output only. An error object that describes the reason for the failure.
                  +   * This property only presents when `state` is `FAILED`.
                  +   * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + boolean hasError(); + /** + * + * + *
                  +   * Output only. An error object that describes the reason for the failure.
                  +   * This property only presents when `state` is `FAILED`.
                  +   * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + com.google.rpc.Status getError(); + /** + * + * + *
                  +   * Output only. An error object that describes the reason for the failure.
                  +   * This property only presents when `state` is `FAILED`.
                  +   * 
                  + * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
                  +   * The specified ranges of segments to generate a clip.
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + java.util.List getSlicesList(); + /** + * + * + *
                  +   * The specified ranges of segments to generate a clip.
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + com.google.cloud.video.livestream.v1.Clip.Slice getSlices(int index); + /** + * + * + *
                  +   * The specified ranges of segments to generate a clip.
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + int getSlicesCount(); + /** + * + * + *
                  +   * The specified ranges of segments to generate a clip.
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + java.util.List + getSlicesOrBuilderList(); + /** + * + * + *
                  +   * The specified ranges of segments to generate a clip.
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; + */ + com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder getSlicesOrBuilder(int index); + + /** + * + * + *
                  +   * Required. A list of clip manifests. Currently only one clip manifest is
                  +   * allowed.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getClipManifestsList(); + /** + * + * + *
                  +   * Required. A list of clip manifests. Currently only one clip manifest is
                  +   * allowed.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.video.livestream.v1.Clip.ClipManifest getClipManifests(int index); + /** + * + * + *
                  +   * Required. A list of clip manifests. Currently only one clip manifest is
                  +   * allowed.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getClipManifestsCount(); + /** + * + * + *
                  +   * Required. A list of clip manifests. Currently only one clip manifest is
                  +   * allowed.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getClipManifestsOrBuilderList(); + /** + * + * + *
                  +   * Required. A list of clip manifests. Currently only one clip manifest is
                  +   * allowed.
                  +   * 
                  + * + * + * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder getClipManifestsOrBuilder( + int index); +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateClipRequest.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateClipRequest.java new file mode 100644 index 000000000000..930c80f9326f --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateClipRequest.java @@ -0,0 +1,1415 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +/** + * + * + *
                  + * Request message for "LivestreamService.CreateClip".
                  + * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.CreateClipRequest} + */ +public final class CreateClipRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.CreateClipRequest) + CreateClipRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateClipRequest.newBuilder() to construct. + private CreateClipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateClipRequest() { + parent_ = ""; + clipId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateClipRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_CreateClipRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_CreateClipRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.CreateClipRequest.class, + com.google.cloud.video.livestream.v1.CreateClipRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
                  +   * Required. The parent resource name, in the following form:
                  +   * `projects/{project}/locations/{location}/channels/{channel}`.
                  +   * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
                  +   * Required. The parent resource name, in the following form:
                  +   * `projects/{project}/locations/{location}/channels/{channel}`.
                  +   * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clipId_ = ""; + /** + * + * + *
                  +   * Required. Id of the requesting object in the following form:
                  +   *
                  +   * 1. 1 character minimum, 63 characters maximum
                  +   * 2. Only contains letters, digits, underscores, and hyphens
                  +   * 
                  + * + * string clip_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clipId. + */ + @java.lang.Override + public java.lang.String getClipId() { + java.lang.Object ref = clipId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clipId_ = s; + return s; + } + } + /** + * + * + *
                  +   * Required. Id of the requesting object in the following form:
                  +   *
                  +   * 1. 1 character minimum, 63 characters maximum
                  +   * 2. Only contains letters, digits, underscores, and hyphens
                  +   * 
                  + * + * string clip_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clipId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClipIdBytes() { + java.lang.Object ref = clipId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clipId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIP_FIELD_NUMBER = 3; + private com.google.cloud.video.livestream.v1.Clip clip_; + /** + * + * + *
                  +   * Required. The resource being created
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the clip field is set. + */ + @java.lang.Override + public boolean hasClip() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                  +   * Required. The resource being created
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clip. + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip getClip() { + return clip_ == null ? com.google.cloud.video.livestream.v1.Clip.getDefaultInstance() : clip_; + } + /** + * + * + *
                  +   * Required. The resource being created
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.ClipOrBuilder getClipOrBuilder() { + return clip_ == null ? com.google.cloud.video.livestream.v1.Clip.getDefaultInstance() : clip_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
                  +   * Optional. An optional request ID to identify requests. Specify a unique
                  +   * request ID so that if you must retry your request, the server will know to
                  +   * ignore the request if it has already been completed. The server will
                  +   * guarantee that for at least 60 minutes since the first request.
                  +   *
                  +   * For example, consider a situation where you make an initial request and
                  +   * the request times out. If you make the request again with the same request
                  +   * ID, the server can check if original operation with the same request ID
                  +   * was received, and if so, will ignore the second request. This prevents
                  +   * clients from accidentally creating duplicate commitments.
                  +   *
                  +   * The request ID must be a valid UUID with the exception that zero UUID is
                  +   * not supported (00000000-0000-0000-0000-000000000000).
                  +   * 
                  + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
                  +   * Optional. An optional request ID to identify requests. Specify a unique
                  +   * request ID so that if you must retry your request, the server will know to
                  +   * ignore the request if it has already been completed. The server will
                  +   * guarantee that for at least 60 minutes since the first request.
                  +   *
                  +   * For example, consider a situation where you make an initial request and
                  +   * the request times out. If you make the request again with the same request
                  +   * ID, the server can check if original operation with the same request ID
                  +   * was received, and if so, will ignore the second request. This prevents
                  +   * clients from accidentally creating duplicate commitments.
                  +   *
                  +   * The request ID must be a valid UUID with the exception that zero UUID is
                  +   * not supported (00000000-0000-0000-0000-000000000000).
                  +   * 
                  + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clipId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clipId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getClip()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clipId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clipId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getClip()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.livestream.v1.CreateClipRequest)) { + return super.equals(obj); + } + com.google.cloud.video.livestream.v1.CreateClipRequest other = + (com.google.cloud.video.livestream.v1.CreateClipRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getClipId().equals(other.getClipId())) return false; + if (hasClip() != other.hasClip()) return false; + if (hasClip()) { + if (!getClip().equals(other.getClip())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CLIP_ID_FIELD_NUMBER; + hash = (53 * hash) + getClipId().hashCode(); + if (hasClip()) { + hash = (37 * hash) + CLIP_FIELD_NUMBER; + hash = (53 * hash) + getClip().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.livestream.v1.CreateClipRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.CreateClipRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.CreateClipRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.CreateClipRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.CreateClipRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.CreateClipRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.CreateClipRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.CreateClipRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.CreateClipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.CreateClipRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.CreateClipRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.CreateClipRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.livestream.v1.CreateClipRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * Request message for "LivestreamService.CreateClip".
                  +   * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.CreateClipRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.CreateClipRequest) + com.google.cloud.video.livestream.v1.CreateClipRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_CreateClipRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_CreateClipRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.CreateClipRequest.class, + com.google.cloud.video.livestream.v1.CreateClipRequest.Builder.class); + } + + // Construct using com.google.cloud.video.livestream.v1.CreateClipRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getClipFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + clipId_ = ""; + clip_ = null; + if (clipBuilder_ != null) { + clipBuilder_.dispose(); + clipBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_CreateClipRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.CreateClipRequest getDefaultInstanceForType() { + return com.google.cloud.video.livestream.v1.CreateClipRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.CreateClipRequest build() { + com.google.cloud.video.livestream.v1.CreateClipRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.CreateClipRequest buildPartial() { + com.google.cloud.video.livestream.v1.CreateClipRequest result = + new com.google.cloud.video.livestream.v1.CreateClipRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.livestream.v1.CreateClipRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clipId_ = clipId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clip_ = clipBuilder_ == null ? clip_ : clipBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.livestream.v1.CreateClipRequest) { + return mergeFrom((com.google.cloud.video.livestream.v1.CreateClipRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.livestream.v1.CreateClipRequest other) { + if (other == com.google.cloud.video.livestream.v1.CreateClipRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getClipId().isEmpty()) { + clipId_ = other.clipId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasClip()) { + mergeClip(other.getClip()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + clipId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getClipFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
                  +     * Required. The parent resource name, in the following form:
                  +     * `projects/{project}/locations/{location}/channels/{channel}`.
                  +     * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * Required. The parent resource name, in the following form:
                  +     * `projects/{project}/locations/{location}/channels/{channel}`.
                  +     * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * Required. The parent resource name, in the following form:
                  +     * `projects/{project}/locations/{location}/channels/{channel}`.
                  +     * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. The parent resource name, in the following form:
                  +     * `projects/{project}/locations/{location}/channels/{channel}`.
                  +     * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. The parent resource name, in the following form:
                  +     * `projects/{project}/locations/{location}/channels/{channel}`.
                  +     * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object clipId_ = ""; + /** + * + * + *
                  +     * Required. Id of the requesting object in the following form:
                  +     *
                  +     * 1. 1 character minimum, 63 characters maximum
                  +     * 2. Only contains letters, digits, underscores, and hyphens
                  +     * 
                  + * + * string clip_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clipId. + */ + public java.lang.String getClipId() { + java.lang.Object ref = clipId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clipId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * Required. Id of the requesting object in the following form:
                  +     *
                  +     * 1. 1 character minimum, 63 characters maximum
                  +     * 2. Only contains letters, digits, underscores, and hyphens
                  +     * 
                  + * + * string clip_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clipId. + */ + public com.google.protobuf.ByteString getClipIdBytes() { + java.lang.Object ref = clipId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clipId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * Required. Id of the requesting object in the following form:
                  +     *
                  +     * 1. 1 character minimum, 63 characters maximum
                  +     * 2. Only contains letters, digits, underscores, and hyphens
                  +     * 
                  + * + * string clip_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clipId to set. + * @return This builder for chaining. + */ + public Builder setClipId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clipId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. Id of the requesting object in the following form:
                  +     *
                  +     * 1. 1 character minimum, 63 characters maximum
                  +     * 2. Only contains letters, digits, underscores, and hyphens
                  +     * 
                  + * + * string clip_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClipId() { + clipId_ = getDefaultInstance().getClipId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. Id of the requesting object in the following form:
                  +     *
                  +     * 1. 1 character minimum, 63 characters maximum
                  +     * 2. Only contains letters, digits, underscores, and hyphens
                  +     * 
                  + * + * string clip_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clipId to set. + * @return This builder for chaining. + */ + public Builder setClipIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clipId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.video.livestream.v1.Clip clip_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip, + com.google.cloud.video.livestream.v1.Clip.Builder, + com.google.cloud.video.livestream.v1.ClipOrBuilder> + clipBuilder_; + /** + * + * + *
                  +     * Required. The resource being created
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the clip field is set. + */ + public boolean hasClip() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                  +     * Required. The resource being created
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clip. + */ + public com.google.cloud.video.livestream.v1.Clip getClip() { + if (clipBuilder_ == null) { + return clip_ == null + ? com.google.cloud.video.livestream.v1.Clip.getDefaultInstance() + : clip_; + } else { + return clipBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * Required. The resource being created
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setClip(com.google.cloud.video.livestream.v1.Clip value) { + if (clipBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clip_ = value; + } else { + clipBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. The resource being created
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setClip(com.google.cloud.video.livestream.v1.Clip.Builder builderForValue) { + if (clipBuilder_ == null) { + clip_ = builderForValue.build(); + } else { + clipBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. The resource being created
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeClip(com.google.cloud.video.livestream.v1.Clip value) { + if (clipBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && clip_ != null + && clip_ != com.google.cloud.video.livestream.v1.Clip.getDefaultInstance()) { + getClipBuilder().mergeFrom(value); + } else { + clip_ = value; + } + } else { + clipBuilder_.mergeFrom(value); + } + if (clip_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Required. The resource being created
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearClip() { + bitField0_ = (bitField0_ & ~0x00000004); + clip_ = null; + if (clipBuilder_ != null) { + clipBuilder_.dispose(); + clipBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. The resource being created
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.livestream.v1.Clip.Builder getClipBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getClipFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * Required. The resource being created
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.livestream.v1.ClipOrBuilder getClipOrBuilder() { + if (clipBuilder_ != null) { + return clipBuilder_.getMessageOrBuilder(); + } else { + return clip_ == null + ? com.google.cloud.video.livestream.v1.Clip.getDefaultInstance() + : clip_; + } + } + /** + * + * + *
                  +     * Required. The resource being created
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip, + com.google.cloud.video.livestream.v1.Clip.Builder, + com.google.cloud.video.livestream.v1.ClipOrBuilder> + getClipFieldBuilder() { + if (clipBuilder_ == null) { + clipBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip, + com.google.cloud.video.livestream.v1.Clip.Builder, + com.google.cloud.video.livestream.v1.ClipOrBuilder>( + getClip(), getParentForChildren(), isClean()); + clip_ = null; + } + return clipBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
                  +     * Optional. An optional request ID to identify requests. Specify a unique
                  +     * request ID so that if you must retry your request, the server will know to
                  +     * ignore the request if it has already been completed. The server will
                  +     * guarantee that for at least 60 minutes since the first request.
                  +     *
                  +     * For example, consider a situation where you make an initial request and
                  +     * the request times out. If you make the request again with the same request
                  +     * ID, the server can check if original operation with the same request ID
                  +     * was received, and if so, will ignore the second request. This prevents
                  +     * clients from accidentally creating duplicate commitments.
                  +     *
                  +     * The request ID must be a valid UUID with the exception that zero UUID is
                  +     * not supported (00000000-0000-0000-0000-000000000000).
                  +     * 
                  + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * Optional. An optional request ID to identify requests. Specify a unique
                  +     * request ID so that if you must retry your request, the server will know to
                  +     * ignore the request if it has already been completed. The server will
                  +     * guarantee that for at least 60 minutes since the first request.
                  +     *
                  +     * For example, consider a situation where you make an initial request and
                  +     * the request times out. If you make the request again with the same request
                  +     * ID, the server can check if original operation with the same request ID
                  +     * was received, and if so, will ignore the second request. This prevents
                  +     * clients from accidentally creating duplicate commitments.
                  +     *
                  +     * The request ID must be a valid UUID with the exception that zero UUID is
                  +     * not supported (00000000-0000-0000-0000-000000000000).
                  +     * 
                  + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * Optional. An optional request ID to identify requests. Specify a unique
                  +     * request ID so that if you must retry your request, the server will know to
                  +     * ignore the request if it has already been completed. The server will
                  +     * guarantee that for at least 60 minutes since the first request.
                  +     *
                  +     * For example, consider a situation where you make an initial request and
                  +     * the request times out. If you make the request again with the same request
                  +     * ID, the server can check if original operation with the same request ID
                  +     * was received, and if so, will ignore the second request. This prevents
                  +     * clients from accidentally creating duplicate commitments.
                  +     *
                  +     * The request ID must be a valid UUID with the exception that zero UUID is
                  +     * not supported (00000000-0000-0000-0000-000000000000).
                  +     * 
                  + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. An optional request ID to identify requests. Specify a unique
                  +     * request ID so that if you must retry your request, the server will know to
                  +     * ignore the request if it has already been completed. The server will
                  +     * guarantee that for at least 60 minutes since the first request.
                  +     *
                  +     * For example, consider a situation where you make an initial request and
                  +     * the request times out. If you make the request again with the same request
                  +     * ID, the server can check if original operation with the same request ID
                  +     * was received, and if so, will ignore the second request. This prevents
                  +     * clients from accidentally creating duplicate commitments.
                  +     *
                  +     * The request ID must be a valid UUID with the exception that zero UUID is
                  +     * not supported (00000000-0000-0000-0000-000000000000).
                  +     * 
                  + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. An optional request ID to identify requests. Specify a unique
                  +     * request ID so that if you must retry your request, the server will know to
                  +     * ignore the request if it has already been completed. The server will
                  +     * guarantee that for at least 60 minutes since the first request.
                  +     *
                  +     * For example, consider a situation where you make an initial request and
                  +     * the request times out. If you make the request again with the same request
                  +     * ID, the server can check if original operation with the same request ID
                  +     * was received, and if so, will ignore the second request. This prevents
                  +     * clients from accidentally creating duplicate commitments.
                  +     *
                  +     * The request ID must be a valid UUID with the exception that zero UUID is
                  +     * not supported (00000000-0000-0000-0000-000000000000).
                  +     * 
                  + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.CreateClipRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.CreateClipRequest) + private static final com.google.cloud.video.livestream.v1.CreateClipRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.CreateClipRequest(); + } + + public static com.google.cloud.video.livestream.v1.CreateClipRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.CreateClipRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateClipRequestOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateClipRequestOrBuilder.java new file mode 100644 index 000000000000..ebc945355246 --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateClipRequestOrBuilder.java @@ -0,0 +1,178 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +public interface CreateClipRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.CreateClipRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Required. The parent resource name, in the following form:
                  +   * `projects/{project}/locations/{location}/channels/{channel}`.
                  +   * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
                  +   * Required. The parent resource name, in the following form:
                  +   * `projects/{project}/locations/{location}/channels/{channel}`.
                  +   * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                  +   * Required. Id of the requesting object in the following form:
                  +   *
                  +   * 1. 1 character minimum, 63 characters maximum
                  +   * 2. Only contains letters, digits, underscores, and hyphens
                  +   * 
                  + * + * string clip_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clipId. + */ + java.lang.String getClipId(); + /** + * + * + *
                  +   * Required. Id of the requesting object in the following form:
                  +   *
                  +   * 1. 1 character minimum, 63 characters maximum
                  +   * 2. Only contains letters, digits, underscores, and hyphens
                  +   * 
                  + * + * string clip_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clipId. + */ + com.google.protobuf.ByteString getClipIdBytes(); + + /** + * + * + *
                  +   * Required. The resource being created
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the clip field is set. + */ + boolean hasClip(); + /** + * + * + *
                  +   * Required. The resource being created
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clip. + */ + com.google.cloud.video.livestream.v1.Clip getClip(); + /** + * + * + *
                  +   * Required. The resource being created
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.Clip clip = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.video.livestream.v1.ClipOrBuilder getClipOrBuilder(); + + /** + * + * + *
                  +   * Optional. An optional request ID to identify requests. Specify a unique
                  +   * request ID so that if you must retry your request, the server will know to
                  +   * ignore the request if it has already been completed. The server will
                  +   * guarantee that for at least 60 minutes since the first request.
                  +   *
                  +   * For example, consider a situation where you make an initial request and
                  +   * the request times out. If you make the request again with the same request
                  +   * ID, the server can check if original operation with the same request ID
                  +   * was received, and if so, will ignore the second request. This prevents
                  +   * clients from accidentally creating duplicate commitments.
                  +   *
                  +   * The request ID must be a valid UUID with the exception that zero UUID is
                  +   * not supported (00000000-0000-0000-0000-000000000000).
                  +   * 
                  + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
                  +   * Optional. An optional request ID to identify requests. Specify a unique
                  +   * request ID so that if you must retry your request, the server will know to
                  +   * ignore the request if it has already been completed. The server will
                  +   * guarantee that for at least 60 minutes since the first request.
                  +   *
                  +   * For example, consider a situation where you make an initial request and
                  +   * the request times out. If you make the request again with the same request
                  +   * ID, the server can check if original operation with the same request ID
                  +   * was received, and if so, will ignore the second request. This prevents
                  +   * clients from accidentally creating duplicate commitments.
                  +   *
                  +   * The request ID must be a valid UUID with the exception that zero UUID is
                  +   * not supported (00000000-0000-0000-0000-000000000000).
                  +   * 
                  + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteClipRequest.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteClipRequest.java new file mode 100644 index 000000000000..0ab7c0d14123 --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteClipRequest.java @@ -0,0 +1,927 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +/** + * + * + *
                  + * Request message for "LivestreamService.DeleteClip".
                  + * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.DeleteClipRequest} + */ +public final class DeleteClipRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.DeleteClipRequest) + DeleteClipRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteClipRequest.newBuilder() to construct. + private DeleteClipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteClipRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteClipRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_DeleteClipRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_DeleteClipRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.DeleteClipRequest.class, + com.google.cloud.video.livestream.v1.DeleteClipRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                  +   * Required. The name of the clip resource, in the form of:
                  +   * `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`.
                  +   * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                  +   * Required. The name of the clip resource, in the form of:
                  +   * `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`.
                  +   * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
                  +   * Optional. A request ID to identify requests. Specify a unique request ID
                  +   * so that if you must retry your request, the server will know to ignore
                  +   * the request if it has already been completed. The server will guarantee
                  +   * that for at least 60 minutes since the first request.
                  +   *
                  +   * For example, consider a situation where you make an initial request and the
                  +   * request times out. If you make the request again with the same request ID,
                  +   * the server can check if original operation with the same request ID was
                  +   * received, and if so, will ignore the second request. This prevents clients
                  +   * from accidentally creating duplicate commitments.
                  +   *
                  +   * The request ID must be a valid UUID with the exception that zero UUID is
                  +   * not supported `(00000000-0000-0000-0000-000000000000)`.
                  +   * 
                  + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
                  +   * Optional. A request ID to identify requests. Specify a unique request ID
                  +   * so that if you must retry your request, the server will know to ignore
                  +   * the request if it has already been completed. The server will guarantee
                  +   * that for at least 60 minutes since the first request.
                  +   *
                  +   * For example, consider a situation where you make an initial request and the
                  +   * request times out. If you make the request again with the same request ID,
                  +   * the server can check if original operation with the same request ID was
                  +   * received, and if so, will ignore the second request. This prevents clients
                  +   * from accidentally creating duplicate commitments.
                  +   *
                  +   * The request ID must be a valid UUID with the exception that zero UUID is
                  +   * not supported `(00000000-0000-0000-0000-000000000000)`.
                  +   * 
                  + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.livestream.v1.DeleteClipRequest)) { + return super.equals(obj); + } + com.google.cloud.video.livestream.v1.DeleteClipRequest other = + (com.google.cloud.video.livestream.v1.DeleteClipRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.livestream.v1.DeleteClipRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.DeleteClipRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.DeleteClipRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.DeleteClipRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.DeleteClipRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.DeleteClipRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.DeleteClipRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.DeleteClipRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.DeleteClipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.DeleteClipRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.DeleteClipRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.DeleteClipRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.livestream.v1.DeleteClipRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * Request message for "LivestreamService.DeleteClip".
                  +   * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.DeleteClipRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.DeleteClipRequest) + com.google.cloud.video.livestream.v1.DeleteClipRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_DeleteClipRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_DeleteClipRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.DeleteClipRequest.class, + com.google.cloud.video.livestream.v1.DeleteClipRequest.Builder.class); + } + + // Construct using com.google.cloud.video.livestream.v1.DeleteClipRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_DeleteClipRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.DeleteClipRequest getDefaultInstanceForType() { + return com.google.cloud.video.livestream.v1.DeleteClipRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.DeleteClipRequest build() { + com.google.cloud.video.livestream.v1.DeleteClipRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.DeleteClipRequest buildPartial() { + com.google.cloud.video.livestream.v1.DeleteClipRequest result = + new com.google.cloud.video.livestream.v1.DeleteClipRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.livestream.v1.DeleteClipRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.livestream.v1.DeleteClipRequest) { + return mergeFrom((com.google.cloud.video.livestream.v1.DeleteClipRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.livestream.v1.DeleteClipRequest other) { + if (other == com.google.cloud.video.livestream.v1.DeleteClipRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
                  +     * Required. The name of the clip resource, in the form of:
                  +     * `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`.
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * Required. The name of the clip resource, in the form of:
                  +     * `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`.
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * Required. The name of the clip resource, in the form of:
                  +     * `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`.
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. The name of the clip resource, in the form of:
                  +     * `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`.
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. The name of the clip resource, in the form of:
                  +     * `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`.
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
                  +     * Optional. A request ID to identify requests. Specify a unique request ID
                  +     * so that if you must retry your request, the server will know to ignore
                  +     * the request if it has already been completed. The server will guarantee
                  +     * that for at least 60 minutes since the first request.
                  +     *
                  +     * For example, consider a situation where you make an initial request and the
                  +     * request times out. If you make the request again with the same request ID,
                  +     * the server can check if original operation with the same request ID was
                  +     * received, and if so, will ignore the second request. This prevents clients
                  +     * from accidentally creating duplicate commitments.
                  +     *
                  +     * The request ID must be a valid UUID with the exception that zero UUID is
                  +     * not supported `(00000000-0000-0000-0000-000000000000)`.
                  +     * 
                  + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * Optional. A request ID to identify requests. Specify a unique request ID
                  +     * so that if you must retry your request, the server will know to ignore
                  +     * the request if it has already been completed. The server will guarantee
                  +     * that for at least 60 minutes since the first request.
                  +     *
                  +     * For example, consider a situation where you make an initial request and the
                  +     * request times out. If you make the request again with the same request ID,
                  +     * the server can check if original operation with the same request ID was
                  +     * received, and if so, will ignore the second request. This prevents clients
                  +     * from accidentally creating duplicate commitments.
                  +     *
                  +     * The request ID must be a valid UUID with the exception that zero UUID is
                  +     * not supported `(00000000-0000-0000-0000-000000000000)`.
                  +     * 
                  + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * Optional. A request ID to identify requests. Specify a unique request ID
                  +     * so that if you must retry your request, the server will know to ignore
                  +     * the request if it has already been completed. The server will guarantee
                  +     * that for at least 60 minutes since the first request.
                  +     *
                  +     * For example, consider a situation where you make an initial request and the
                  +     * request times out. If you make the request again with the same request ID,
                  +     * the server can check if original operation with the same request ID was
                  +     * received, and if so, will ignore the second request. This prevents clients
                  +     * from accidentally creating duplicate commitments.
                  +     *
                  +     * The request ID must be a valid UUID with the exception that zero UUID is
                  +     * not supported `(00000000-0000-0000-0000-000000000000)`.
                  +     * 
                  + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. A request ID to identify requests. Specify a unique request ID
                  +     * so that if you must retry your request, the server will know to ignore
                  +     * the request if it has already been completed. The server will guarantee
                  +     * that for at least 60 minutes since the first request.
                  +     *
                  +     * For example, consider a situation where you make an initial request and the
                  +     * request times out. If you make the request again with the same request ID,
                  +     * the server can check if original operation with the same request ID was
                  +     * received, and if so, will ignore the second request. This prevents clients
                  +     * from accidentally creating duplicate commitments.
                  +     *
                  +     * The request ID must be a valid UUID with the exception that zero UUID is
                  +     * not supported `(00000000-0000-0000-0000-000000000000)`.
                  +     * 
                  + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. A request ID to identify requests. Specify a unique request ID
                  +     * so that if you must retry your request, the server will know to ignore
                  +     * the request if it has already been completed. The server will guarantee
                  +     * that for at least 60 minutes since the first request.
                  +     *
                  +     * For example, consider a situation where you make an initial request and the
                  +     * request times out. If you make the request again with the same request ID,
                  +     * the server can check if original operation with the same request ID was
                  +     * received, and if so, will ignore the second request. This prevents clients
                  +     * from accidentally creating duplicate commitments.
                  +     *
                  +     * The request ID must be a valid UUID with the exception that zero UUID is
                  +     * not supported `(00000000-0000-0000-0000-000000000000)`.
                  +     * 
                  + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.DeleteClipRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.DeleteClipRequest) + private static final com.google.cloud.video.livestream.v1.DeleteClipRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.DeleteClipRequest(); + } + + public static com.google.cloud.video.livestream.v1.DeleteClipRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteClipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.DeleteClipRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteClipRequestOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteClipRequestOrBuilder.java new file mode 100644 index 000000000000..02feabc5b003 --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteClipRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +public interface DeleteClipRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.DeleteClipRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Required. The name of the clip resource, in the form of:
                  +   * `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`.
                  +   * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                  +   * Required. The name of the clip resource, in the form of:
                  +   * `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`.
                  +   * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                  +   * Optional. A request ID to identify requests. Specify a unique request ID
                  +   * so that if you must retry your request, the server will know to ignore
                  +   * the request if it has already been completed. The server will guarantee
                  +   * that for at least 60 minutes since the first request.
                  +   *
                  +   * For example, consider a situation where you make an initial request and the
                  +   * request times out. If you make the request again with the same request ID,
                  +   * the server can check if original operation with the same request ID was
                  +   * received, and if so, will ignore the second request. This prevents clients
                  +   * from accidentally creating duplicate commitments.
                  +   *
                  +   * The request ID must be a valid UUID with the exception that zero UUID is
                  +   * not supported `(00000000-0000-0000-0000-000000000000)`.
                  +   * 
                  + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
                  +   * Optional. A request ID to identify requests. Specify a unique request ID
                  +   * so that if you must retry your request, the server will know to ignore
                  +   * the request if it has already been completed. The server will guarantee
                  +   * that for at least 60 minutes since the first request.
                  +   *
                  +   * For example, consider a situation where you make an initial request and the
                  +   * request times out. If you make the request again with the same request ID,
                  +   * the server can check if original operation with the same request ID was
                  +   * received, and if so, will ignore the second request. This prevents clients
                  +   * from accidentally creating duplicate commitments.
                  +   *
                  +   * The request ID must be a valid UUID with the exception that zero UUID is
                  +   * not supported `(00000000-0000-0000-0000-000000000000)`.
                  +   * 
                  + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ElementaryStream.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ElementaryStream.java index e8ee119637a2..d46c88767165 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ElementaryStream.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ElementaryStream.java @@ -125,7 +125,9 @@ public ElementaryStreamCase getElementaryStreamCase() { * * *
                  -   * A unique key for this elementary stream.
                  +   * A unique key for this elementary stream. The key must be 1-63
                  +   * characters in length. The key must begin and end with a letter (regardless
                  +   * of case) or a number, but can contain dashes or underscores in between.
                      * 
                  * * string key = 4; @@ -148,7 +150,9 @@ public java.lang.String getKey() { * * *
                  -   * A unique key for this elementary stream.
                  +   * A unique key for this elementary stream. The key must be 1-63
                  +   * characters in length. The key must begin and end with a letter (regardless
                  +   * of case) or a number, but can contain dashes or underscores in between.
                      * 
                  * * string key = 4; @@ -804,7 +808,9 @@ public Builder clearElementaryStream() { * * *
                  -     * A unique key for this elementary stream.
                  +     * A unique key for this elementary stream. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 4; @@ -826,7 +832,9 @@ public java.lang.String getKey() { * * *
                  -     * A unique key for this elementary stream.
                  +     * A unique key for this elementary stream. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 4; @@ -848,7 +856,9 @@ public com.google.protobuf.ByteString getKeyBytes() { * * *
                  -     * A unique key for this elementary stream.
                  +     * A unique key for this elementary stream. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 4; @@ -869,7 +879,9 @@ public Builder setKey(java.lang.String value) { * * *
                  -     * A unique key for this elementary stream.
                  +     * A unique key for this elementary stream. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 4; @@ -886,7 +898,9 @@ public Builder clearKey() { * * *
                  -     * A unique key for this elementary stream.
                  +     * A unique key for this elementary stream. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 4; diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ElementaryStreamOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ElementaryStreamOrBuilder.java index 0cfecc682f92..1bcc70c60f2e 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ElementaryStreamOrBuilder.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ElementaryStreamOrBuilder.java @@ -28,7 +28,9 @@ public interface ElementaryStreamOrBuilder * * *
                  -   * A unique key for this elementary stream.
                  +   * A unique key for this elementary stream. The key must be 1-63
                  +   * characters in length. The key must begin and end with a letter (regardless
                  +   * of case) or a number, but can contain dashes or underscores in between.
                      * 
                  * * string key = 4; @@ -40,7 +42,9 @@ public interface ElementaryStreamOrBuilder * * *
                  -   * A unique key for this elementary stream.
                  +   * A unique key for this elementary stream. The key must be 1-63
                  +   * characters in length. The key must begin and end with a letter (regardless
                  +   * of case) or a number, but can contain dashes or underscores in between.
                      * 
                  * * string key = 4; diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Encryption.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Encryption.java index d8f4ee8a09e5..77212b4ca52d 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Encryption.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Encryption.java @@ -5765,7 +5765,10 @@ public EncryptionModeCase getEncryptionModeCase() { * * *
                  -   * Required. Identifier for this set of encryption options.
                  +   * Required. Identifier for this set of encryption options. The ID must be
                  +   * 1-63 characters in length. The ID must begin and end with a letter
                  +   * (regardless of case) or a number, but can contain dashes or underscores in
                  +   * between.
                      * 
                  * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -5788,7 +5791,10 @@ public java.lang.String getId() { * * *
                  -   * Required. Identifier for this set of encryption options.
                  +   * Required. Identifier for this set of encryption options. The ID must be
                  +   * 1-63 characters in length. The ID must begin and end with a letter
                  +   * (regardless of case) or a number, but can contain dashes or underscores in
                  +   * between.
                      * 
                  * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -6682,7 +6688,10 @@ public Builder clearEncryptionMode() { * * *
                  -     * Required. Identifier for this set of encryption options.
                  +     * Required. Identifier for this set of encryption options. The ID must be
                  +     * 1-63 characters in length. The ID must begin and end with a letter
                  +     * (regardless of case) or a number, but can contain dashes or underscores in
                  +     * between.
                        * 
                  * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -6704,7 +6713,10 @@ public java.lang.String getId() { * * *
                  -     * Required. Identifier for this set of encryption options.
                  +     * Required. Identifier for this set of encryption options. The ID must be
                  +     * 1-63 characters in length. The ID must begin and end with a letter
                  +     * (regardless of case) or a number, but can contain dashes or underscores in
                  +     * between.
                        * 
                  * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -6726,7 +6738,10 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
                  -     * Required. Identifier for this set of encryption options.
                  +     * Required. Identifier for this set of encryption options. The ID must be
                  +     * 1-63 characters in length. The ID must begin and end with a letter
                  +     * (regardless of case) or a number, but can contain dashes or underscores in
                  +     * between.
                        * 
                  * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -6747,7 +6762,10 @@ public Builder setId(java.lang.String value) { * * *
                  -     * Required. Identifier for this set of encryption options.
                  +     * Required. Identifier for this set of encryption options. The ID must be
                  +     * 1-63 characters in length. The ID must begin and end with a letter
                  +     * (regardless of case) or a number, but can contain dashes or underscores in
                  +     * between.
                        * 
                  * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -6764,7 +6782,10 @@ public Builder clearId() { * * *
                  -     * Required. Identifier for this set of encryption options.
                  +     * Required. Identifier for this set of encryption options. The ID must be
                  +     * 1-63 characters in length. The ID must begin and end with a letter
                  +     * (regardless of case) or a number, but can contain dashes or underscores in
                  +     * between.
                        * 
                  * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EncryptionOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EncryptionOrBuilder.java index c191870ac9e5..2f5c9b77394f 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EncryptionOrBuilder.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EncryptionOrBuilder.java @@ -28,7 +28,10 @@ public interface EncryptionOrBuilder * * *
                  -   * Required. Identifier for this set of encryption options.
                  +   * Required. Identifier for this set of encryption options. The ID must be
                  +   * 1-63 characters in length. The ID must begin and end with a letter
                  +   * (regardless of case) or a number, but can contain dashes or underscores in
                  +   * between.
                      * 
                  * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -40,7 +43,10 @@ public interface EncryptionOrBuilder * * *
                  -   * Required. Identifier for this set of encryption options.
                  +   * Required. Identifier for this set of encryption options. The ID must be
                  +   * 1-63 characters in length. The ID must begin and end with a letter
                  +   * (regardless of case) or a number, but can contain dashes or underscores in
                  +   * between.
                      * 
                  * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Event.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Event.java index d96d0498a8ab..4388a12181ab 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Event.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Event.java @@ -1774,7 +1774,7 @@ public interface SlateTaskOrBuilder * *
                        * Slate asset to use for the duration. If its duration is less than the
                  -     * duration of the SlateTask, then it will be looped. The slate must be
                  +     * duration of the SlateTask, then the slate loops. The slate must be
                        * represented in the form of:
                        * `projects/{project}/locations/{location}/assets/{assetId}`.
                        * 
                  @@ -1789,7 +1789,7 @@ public interface SlateTaskOrBuilder * *
                        * Slate asset to use for the duration. If its duration is less than the
                  -     * duration of the SlateTask, then it will be looped. The slate must be
                  +     * duration of the SlateTask, then the slate loops. The slate must be
                        * represented in the form of:
                        * `projects/{project}/locations/{location}/assets/{assetId}`.
                        * 
                  @@ -1903,7 +1903,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { * *
                        * Slate asset to use for the duration. If its duration is less than the
                  -     * duration of the SlateTask, then it will be looped. The slate must be
                  +     * duration of the SlateTask, then the slate loops. The slate must be
                        * represented in the form of:
                        * `projects/{project}/locations/{location}/assets/{assetId}`.
                        * 
                  @@ -1929,7 +1929,7 @@ public java.lang.String getAsset() { * *
                        * Slate asset to use for the duration. If its duration is less than the
                  -     * duration of the SlateTask, then it will be looped. The slate must be
                  +     * duration of the SlateTask, then the slate loops. The slate must be
                        * represented in the form of:
                        * `projects/{project}/locations/{location}/assets/{assetId}`.
                        * 
                  @@ -2537,7 +2537,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { * *
                          * Slate asset to use for the duration. If its duration is less than the
                  -       * duration of the SlateTask, then it will be looped. The slate must be
                  +       * duration of the SlateTask, then the slate loops. The slate must be
                          * represented in the form of:
                          * `projects/{project}/locations/{location}/assets/{assetId}`.
                          * 
                  @@ -2562,7 +2562,7 @@ public java.lang.String getAsset() { * *
                          * Slate asset to use for the duration. If its duration is less than the
                  -       * duration of the SlateTask, then it will be looped. The slate must be
                  +       * duration of the SlateTask, then the slate loops. The slate must be
                          * represented in the form of:
                          * `projects/{project}/locations/{location}/assets/{assetId}`.
                          * 
                  @@ -2587,7 +2587,7 @@ public com.google.protobuf.ByteString getAssetBytes() { * *
                          * Slate asset to use for the duration. If its duration is less than the
                  -       * duration of the SlateTask, then it will be looped. The slate must be
                  +       * duration of the SlateTask, then the slate loops. The slate must be
                          * represented in the form of:
                          * `projects/{project}/locations/{location}/assets/{assetId}`.
                          * 
                  @@ -2611,7 +2611,7 @@ public Builder setAsset(java.lang.String value) { * *
                          * Slate asset to use for the duration. If its duration is less than the
                  -       * duration of the SlateTask, then it will be looped. The slate must be
                  +       * duration of the SlateTask, then the slate loops. The slate must be
                          * represented in the form of:
                          * `projects/{project}/locations/{location}/assets/{assetId}`.
                          * 
                  @@ -2631,7 +2631,7 @@ public Builder clearAsset() { * *
                          * Slate asset to use for the duration. If its duration is less than the
                  -       * duration of the SlateTask, then it will be looped. The slate must be
                  +       * duration of the SlateTask, then the slate loops. The slate must be
                          * represented in the form of:
                          * `projects/{project}/locations/{location}/assets/{assetId}`.
                          * 
                  @@ -3910,8 +3910,7 @@ public interface UnmuteTaskOrBuilder * * *
                  -   * Unmutes the stream. The task will fail if the stream is not
                  -   * currently muted.
                  +   * Unmutes the stream. The task fails if the stream is not currently muted.
                      * 
                  * * Protobuf type {@code google.cloud.video.livestream.v1.Event.UnmuteTask} @@ -4105,8 +4104,7 @@ protected Builder newBuilderForType( * * *
                  -     * Unmutes the stream. The task will fail if the stream is not
                  -     * currently muted.
                  +     * Unmutes the stream. The task fails if the stream is not currently muted.
                        * 
                  * * Protobuf type {@code google.cloud.video.livestream.v1.Event.UnmuteTask} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetClipRequest.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetClipRequest.java new file mode 100644 index 000000000000..e30806bd9555 --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetClipRequest.java @@ -0,0 +1,646 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +/** + * + * + *
                  + * Request message for "LivestreamService.GetClip".
                  + * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.GetClipRequest} + */ +public final class GetClipRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.GetClipRequest) + GetClipRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetClipRequest.newBuilder() to construct. + private GetClipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetClipRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetClipRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_GetClipRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_GetClipRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.GetClipRequest.class, + com.google.cloud.video.livestream.v1.GetClipRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                  +   * Required. Name of the resource, in the following form:
                  +   * `projects/{project}/locations/{location}/channels/{channel}/clips/{clip}`.
                  +   * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                  +   * Required. Name of the resource, in the following form:
                  +   * `projects/{project}/locations/{location}/channels/{channel}/clips/{clip}`.
                  +   * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.livestream.v1.GetClipRequest)) { + return super.equals(obj); + } + com.google.cloud.video.livestream.v1.GetClipRequest other = + (com.google.cloud.video.livestream.v1.GetClipRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.livestream.v1.GetClipRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.GetClipRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.GetClipRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.GetClipRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.GetClipRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.GetClipRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.GetClipRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.GetClipRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.GetClipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.GetClipRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.GetClipRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.GetClipRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.video.livestream.v1.GetClipRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * Request message for "LivestreamService.GetClip".
                  +   * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.GetClipRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.GetClipRequest) + com.google.cloud.video.livestream.v1.GetClipRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_GetClipRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_GetClipRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.GetClipRequest.class, + com.google.cloud.video.livestream.v1.GetClipRequest.Builder.class); + } + + // Construct using com.google.cloud.video.livestream.v1.GetClipRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_GetClipRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.GetClipRequest getDefaultInstanceForType() { + return com.google.cloud.video.livestream.v1.GetClipRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.GetClipRequest build() { + com.google.cloud.video.livestream.v1.GetClipRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.GetClipRequest buildPartial() { + com.google.cloud.video.livestream.v1.GetClipRequest result = + new com.google.cloud.video.livestream.v1.GetClipRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.livestream.v1.GetClipRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.livestream.v1.GetClipRequest) { + return mergeFrom((com.google.cloud.video.livestream.v1.GetClipRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.livestream.v1.GetClipRequest other) { + if (other == com.google.cloud.video.livestream.v1.GetClipRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
                  +     * Required. Name of the resource, in the following form:
                  +     * `projects/{project}/locations/{location}/channels/{channel}/clips/{clip}`.
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * Required. Name of the resource, in the following form:
                  +     * `projects/{project}/locations/{location}/channels/{channel}/clips/{clip}`.
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * Required. Name of the resource, in the following form:
                  +     * `projects/{project}/locations/{location}/channels/{channel}/clips/{clip}`.
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. Name of the resource, in the following form:
                  +     * `projects/{project}/locations/{location}/channels/{channel}/clips/{clip}`.
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. Name of the resource, in the following form:
                  +     * `projects/{project}/locations/{location}/channels/{channel}/clips/{clip}`.
                  +     * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.GetClipRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.GetClipRequest) + private static final com.google.cloud.video.livestream.v1.GetClipRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.GetClipRequest(); + } + + public static com.google.cloud.video.livestream.v1.GetClipRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.GetClipRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetClipRequestOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetClipRequestOrBuilder.java new file mode 100644 index 000000000000..336df676272c --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetClipRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +public interface GetClipRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.GetClipRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Required. Name of the resource, in the following form:
                  +   * `projects/{project}/locations/{location}/channels/{channel}/clips/{clip}`.
                  +   * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                  +   * Required. Name of the resource, in the following form:
                  +   * `projects/{project}/locations/{location}/channels/{channel}/clips/{clip}`.
                  +   * 
                  + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputAttachment.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputAttachment.java index bffd835d6c17..e4032e683fee 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputAttachment.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputAttachment.java @@ -903,7 +903,9 @@ public com.google.protobuf.Parser getParserForType() { * * *
                  -   * A unique key for this input attachment.
                  +   * A unique key for this input attachment. The key must be 1-63
                  +   * characters in length. The key must begin and end with a letter (regardless
                  +   * of case) or a number, but can contain dashes or underscores in between.
                      * 
                  * * string key = 1; @@ -926,7 +928,9 @@ public java.lang.String getKey() { * * *
                  -   * A unique key for this input attachment.
                  +   * A unique key for this input attachment. The key must be 1-63
                  +   * characters in length. The key must begin and end with a letter (regardless
                  +   * of case) or a number, but can contain dashes or underscores in between.
                      * 
                  * * string key = 1; @@ -1477,7 +1481,9 @@ public Builder mergeFrom( * * *
                  -     * A unique key for this input attachment.
                  +     * A unique key for this input attachment. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 1; @@ -1499,7 +1505,9 @@ public java.lang.String getKey() { * * *
                  -     * A unique key for this input attachment.
                  +     * A unique key for this input attachment. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 1; @@ -1521,7 +1529,9 @@ public com.google.protobuf.ByteString getKeyBytes() { * * *
                  -     * A unique key for this input attachment.
                  +     * A unique key for this input attachment. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 1; @@ -1542,7 +1552,9 @@ public Builder setKey(java.lang.String value) { * * *
                  -     * A unique key for this input attachment.
                  +     * A unique key for this input attachment. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 1; @@ -1559,7 +1571,9 @@ public Builder clearKey() { * * *
                  -     * A unique key for this input attachment.
                  +     * A unique key for this input attachment. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 1; diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputAttachmentOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputAttachmentOrBuilder.java index c8cf3dc964f7..053d69e5cde8 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputAttachmentOrBuilder.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputAttachmentOrBuilder.java @@ -28,7 +28,9 @@ public interface InputAttachmentOrBuilder * * *
                  -   * A unique key for this input attachment.
                  +   * A unique key for this input attachment. The key must be 1-63
                  +   * characters in length. The key must begin and end with a letter (regardless
                  +   * of case) or a number, but can contain dashes or underscores in between.
                      * 
                  * * string key = 1; @@ -40,7 +42,9 @@ public interface InputAttachmentOrBuilder * * *
                  -   * A unique key for this input attachment.
                  +   * A unique key for this input attachment. The key must be 1-63
                  +   * characters in length. The key must begin and end with a letter (regardless
                  +   * of case) or a number, but can contain dashes or underscores in between.
                      * 
                  * * string key = 1; diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListClipsRequest.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListClipsRequest.java new file mode 100644 index 000000000000..04c1ec35de97 --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListClipsRequest.java @@ -0,0 +1,1283 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +/** + * + * + *
                  + * Request message for "LivestreamService.ListClips".
                  + * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.ListClipsRequest} + */ +public final class ListClipsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.ListClipsRequest) + ListClipsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListClipsRequest.newBuilder() to construct. + private ListClipsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListClipsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListClipsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_ListClipsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_ListClipsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.ListClipsRequest.class, + com.google.cloud.video.livestream.v1.ListClipsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
                  +   * Required. Parent value for ListClipsRequest
                  +   * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
                  +   * Required. Parent value for ListClipsRequest
                  +   * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
                  +   * Requested page size. Server may return fewer items than requested.
                  +   * If unspecified, server will pick an appropriate default.
                  +   * 
                  + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
                  +   * A token identifying a page of results the server should return.
                  +   * 
                  + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
                  +   * A token identifying a page of results the server should return.
                  +   * 
                  + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
                  +   * Filtering results
                  +   * 
                  + * + * string filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
                  +   * Filtering results
                  +   * 
                  + * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
                  +   * Hint for how to order the results
                  +   * 
                  + * + * string order_by = 5; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
                  +   * Hint for how to order the results
                  +   * 
                  + * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.livestream.v1.ListClipsRequest)) { + return super.equals(obj); + } + com.google.cloud.video.livestream.v1.ListClipsRequest other = + (com.google.cloud.video.livestream.v1.ListClipsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.livestream.v1.ListClipsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.ListClipsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.ListClipsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.ListClipsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.ListClipsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.ListClipsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.ListClipsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.ListClipsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.ListClipsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.ListClipsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.ListClipsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.ListClipsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.livestream.v1.ListClipsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * Request message for "LivestreamService.ListClips".
                  +   * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.ListClipsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.ListClipsRequest) + com.google.cloud.video.livestream.v1.ListClipsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_ListClipsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_ListClipsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.ListClipsRequest.class, + com.google.cloud.video.livestream.v1.ListClipsRequest.Builder.class); + } + + // Construct using com.google.cloud.video.livestream.v1.ListClipsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_ListClipsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.ListClipsRequest getDefaultInstanceForType() { + return com.google.cloud.video.livestream.v1.ListClipsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.ListClipsRequest build() { + com.google.cloud.video.livestream.v1.ListClipsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.ListClipsRequest buildPartial() { + com.google.cloud.video.livestream.v1.ListClipsRequest result = + new com.google.cloud.video.livestream.v1.ListClipsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.livestream.v1.ListClipsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.livestream.v1.ListClipsRequest) { + return mergeFrom((com.google.cloud.video.livestream.v1.ListClipsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.livestream.v1.ListClipsRequest other) { + if (other == com.google.cloud.video.livestream.v1.ListClipsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
                  +     * Required. Parent value for ListClipsRequest
                  +     * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * Required. Parent value for ListClipsRequest
                  +     * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * Required. Parent value for ListClipsRequest
                  +     * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. Parent value for ListClipsRequest
                  +     * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. Parent value for ListClipsRequest
                  +     * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
                  +     * Requested page size. Server may return fewer items than requested.
                  +     * If unspecified, server will pick an appropriate default.
                  +     * 
                  + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
                  +     * Requested page size. Server may return fewer items than requested.
                  +     * If unspecified, server will pick an appropriate default.
                  +     * 
                  + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Requested page size. Server may return fewer items than requested.
                  +     * If unspecified, server will pick an appropriate default.
                  +     * 
                  + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
                  +     * A token identifying a page of results the server should return.
                  +     * 
                  + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * A token identifying a page of results the server should return.
                  +     * 
                  + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * A token identifying a page of results the server should return.
                  +     * 
                  + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                  +     * A token identifying a page of results the server should return.
                  +     * 
                  + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                  +     * A token identifying a page of results the server should return.
                  +     * 
                  + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
                  +     * Filtering results
                  +     * 
                  + * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * Filtering results
                  +     * 
                  + * + * string filter = 4; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * Filtering results
                  +     * 
                  + * + * string filter = 4; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Filtering results
                  +     * 
                  + * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Filtering results
                  +     * 
                  + * + * string filter = 4; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
                  +     * Hint for how to order the results
                  +     * 
                  + * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * Hint for how to order the results
                  +     * 
                  + * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * Hint for how to order the results
                  +     * 
                  + * + * string order_by = 5; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Hint for how to order the results
                  +     * 
                  + * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Hint for how to order the results
                  +     * 
                  + * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.ListClipsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.ListClipsRequest) + private static final com.google.cloud.video.livestream.v1.ListClipsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.ListClipsRequest(); + } + + public static com.google.cloud.video.livestream.v1.ListClipsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClipsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.ListClipsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListClipsRequestOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListClipsRequestOrBuilder.java new file mode 100644 index 000000000000..ecd44d15584e --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListClipsRequestOrBuilder.java @@ -0,0 +1,144 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +public interface ListClipsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.ListClipsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Required. Parent value for ListClipsRequest
                  +   * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
                  +   * Required. Parent value for ListClipsRequest
                  +   * 
                  + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                  +   * Requested page size. Server may return fewer items than requested.
                  +   * If unspecified, server will pick an appropriate default.
                  +   * 
                  + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                  +   * A token identifying a page of results the server should return.
                  +   * 
                  + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
                  +   * A token identifying a page of results the server should return.
                  +   * 
                  + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                  +   * Filtering results
                  +   * 
                  + * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
                  +   * Filtering results
                  +   * 
                  + * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                  +   * Hint for how to order the results
                  +   * 
                  + * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
                  +   * Hint for how to order the results
                  +   * 
                  + * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListClipsResponse.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListClipsResponse.java new file mode 100644 index 000000000000..6ce798bb28f2 --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListClipsResponse.java @@ -0,0 +1,1395 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +/** + * + * + *
                  + * Response message for "LivestreamService.ListClips".
                  + * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.ListClipsResponse} + */ +public final class ListClipsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.ListClipsResponse) + ListClipsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListClipsResponse.newBuilder() to construct. + private ListClipsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListClipsResponse() { + clips_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListClipsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_ListClipsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_ListClipsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.ListClipsResponse.class, + com.google.cloud.video.livestream.v1.ListClipsResponse.Builder.class); + } + + public static final int CLIPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List clips_; + /** + * + * + *
                  +   * The list of Clip
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + @java.lang.Override + public java.util.List getClipsList() { + return clips_; + } + /** + * + * + *
                  +   * The list of Clip
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + @java.lang.Override + public java.util.List + getClipsOrBuilderList() { + return clips_; + } + /** + * + * + *
                  +   * The list of Clip
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + @java.lang.Override + public int getClipsCount() { + return clips_.size(); + } + /** + * + * + *
                  +   * The list of Clip
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.Clip getClips(int index) { + return clips_.get(index); + } + /** + * + * + *
                  +   * The list of Clip
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.ClipOrBuilder getClipsOrBuilder(int index) { + return clips_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
                  +   * A token identifying a page of results the server should return.
                  +   * 
                  + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
                  +   * A token identifying a page of results the server should return.
                  +   * 
                  + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
                  +   * Locations that could not be reached.
                  +   * 
                  + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
                  +   * Locations that could not be reached.
                  +   * 
                  + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
                  +   * Locations that could not be reached.
                  +   * 
                  + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
                  +   * Locations that could not be reached.
                  +   * 
                  + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < clips_.size(); i++) { + output.writeMessage(1, clips_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < clips_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, clips_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.livestream.v1.ListClipsResponse)) { + return super.equals(obj); + } + com.google.cloud.video.livestream.v1.ListClipsResponse other = + (com.google.cloud.video.livestream.v1.ListClipsResponse) obj; + + if (!getClipsList().equals(other.getClipsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getClipsCount() > 0) { + hash = (37 * hash) + CLIPS_FIELD_NUMBER; + hash = (53 * hash) + getClipsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.livestream.v1.ListClipsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.ListClipsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.ListClipsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.ListClipsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.ListClipsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.ListClipsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.ListClipsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.ListClipsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.ListClipsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.ListClipsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.ListClipsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.ListClipsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.livestream.v1.ListClipsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * Response message for "LivestreamService.ListClips".
                  +   * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.ListClipsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.ListClipsResponse) + com.google.cloud.video.livestream.v1.ListClipsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_ListClipsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_ListClipsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.ListClipsResponse.class, + com.google.cloud.video.livestream.v1.ListClipsResponse.Builder.class); + } + + // Construct using com.google.cloud.video.livestream.v1.ListClipsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (clipsBuilder_ == null) { + clips_ = java.util.Collections.emptyList(); + } else { + clips_ = null; + clipsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.livestream.v1.ServiceProto + .internal_static_google_cloud_video_livestream_v1_ListClipsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.ListClipsResponse getDefaultInstanceForType() { + return com.google.cloud.video.livestream.v1.ListClipsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.ListClipsResponse build() { + com.google.cloud.video.livestream.v1.ListClipsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.ListClipsResponse buildPartial() { + com.google.cloud.video.livestream.v1.ListClipsResponse result = + new com.google.cloud.video.livestream.v1.ListClipsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.video.livestream.v1.ListClipsResponse result) { + if (clipsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + clips_ = java.util.Collections.unmodifiableList(clips_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.clips_ = clips_; + } else { + result.clips_ = clipsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.video.livestream.v1.ListClipsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.livestream.v1.ListClipsResponse) { + return mergeFrom((com.google.cloud.video.livestream.v1.ListClipsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.livestream.v1.ListClipsResponse other) { + if (other == com.google.cloud.video.livestream.v1.ListClipsResponse.getDefaultInstance()) + return this; + if (clipsBuilder_ == null) { + if (!other.clips_.isEmpty()) { + if (clips_.isEmpty()) { + clips_ = other.clips_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureClipsIsMutable(); + clips_.addAll(other.clips_); + } + onChanged(); + } + } else { + if (!other.clips_.isEmpty()) { + if (clipsBuilder_.isEmpty()) { + clipsBuilder_.dispose(); + clipsBuilder_ = null; + clips_ = other.clips_; + bitField0_ = (bitField0_ & ~0x00000001); + clipsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClipsFieldBuilder() + : null; + } else { + clipsBuilder_.addAllMessages(other.clips_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.video.livestream.v1.Clip m = + input.readMessage( + com.google.cloud.video.livestream.v1.Clip.parser(), extensionRegistry); + if (clipsBuilder_ == null) { + ensureClipsIsMutable(); + clips_.add(m); + } else { + clipsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List clips_ = + java.util.Collections.emptyList(); + + private void ensureClipsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + clips_ = new java.util.ArrayList(clips_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip, + com.google.cloud.video.livestream.v1.Clip.Builder, + com.google.cloud.video.livestream.v1.ClipOrBuilder> + clipsBuilder_; + + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public java.util.List getClipsList() { + if (clipsBuilder_ == null) { + return java.util.Collections.unmodifiableList(clips_); + } else { + return clipsBuilder_.getMessageList(); + } + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public int getClipsCount() { + if (clipsBuilder_ == null) { + return clips_.size(); + } else { + return clipsBuilder_.getCount(); + } + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public com.google.cloud.video.livestream.v1.Clip getClips(int index) { + if (clipsBuilder_ == null) { + return clips_.get(index); + } else { + return clipsBuilder_.getMessage(index); + } + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public Builder setClips(int index, com.google.cloud.video.livestream.v1.Clip value) { + if (clipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClipsIsMutable(); + clips_.set(index, value); + onChanged(); + } else { + clipsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public Builder setClips( + int index, com.google.cloud.video.livestream.v1.Clip.Builder builderForValue) { + if (clipsBuilder_ == null) { + ensureClipsIsMutable(); + clips_.set(index, builderForValue.build()); + onChanged(); + } else { + clipsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public Builder addClips(com.google.cloud.video.livestream.v1.Clip value) { + if (clipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClipsIsMutable(); + clips_.add(value); + onChanged(); + } else { + clipsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public Builder addClips(int index, com.google.cloud.video.livestream.v1.Clip value) { + if (clipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClipsIsMutable(); + clips_.add(index, value); + onChanged(); + } else { + clipsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public Builder addClips(com.google.cloud.video.livestream.v1.Clip.Builder builderForValue) { + if (clipsBuilder_ == null) { + ensureClipsIsMutable(); + clips_.add(builderForValue.build()); + onChanged(); + } else { + clipsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public Builder addClips( + int index, com.google.cloud.video.livestream.v1.Clip.Builder builderForValue) { + if (clipsBuilder_ == null) { + ensureClipsIsMutable(); + clips_.add(index, builderForValue.build()); + onChanged(); + } else { + clipsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public Builder addAllClips( + java.lang.Iterable values) { + if (clipsBuilder_ == null) { + ensureClipsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clips_); + onChanged(); + } else { + clipsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public Builder clearClips() { + if (clipsBuilder_ == null) { + clips_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + clipsBuilder_.clear(); + } + return this; + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public Builder removeClips(int index) { + if (clipsBuilder_ == null) { + ensureClipsIsMutable(); + clips_.remove(index); + onChanged(); + } else { + clipsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public com.google.cloud.video.livestream.v1.Clip.Builder getClipsBuilder(int index) { + return getClipsFieldBuilder().getBuilder(index); + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public com.google.cloud.video.livestream.v1.ClipOrBuilder getClipsOrBuilder(int index) { + if (clipsBuilder_ == null) { + return clips_.get(index); + } else { + return clipsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public java.util.List + getClipsOrBuilderList() { + if (clipsBuilder_ != null) { + return clipsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clips_); + } + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public com.google.cloud.video.livestream.v1.Clip.Builder addClipsBuilder() { + return getClipsFieldBuilder() + .addBuilder(com.google.cloud.video.livestream.v1.Clip.getDefaultInstance()); + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public com.google.cloud.video.livestream.v1.Clip.Builder addClipsBuilder(int index) { + return getClipsFieldBuilder() + .addBuilder(index, com.google.cloud.video.livestream.v1.Clip.getDefaultInstance()); + } + /** + * + * + *
                  +     * The list of Clip
                  +     * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + public java.util.List getClipsBuilderList() { + return getClipsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip, + com.google.cloud.video.livestream.v1.Clip.Builder, + com.google.cloud.video.livestream.v1.ClipOrBuilder> + getClipsFieldBuilder() { + if (clipsBuilder_ == null) { + clipsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.livestream.v1.Clip, + com.google.cloud.video.livestream.v1.Clip.Builder, + com.google.cloud.video.livestream.v1.ClipOrBuilder>( + clips_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + clips_ = null; + } + return clipsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
                  +     * A token identifying a page of results the server should return.
                  +     * 
                  + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * A token identifying a page of results the server should return.
                  +     * 
                  + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * A token identifying a page of results the server should return.
                  +     * 
                  + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +     * A token identifying a page of results the server should return.
                  +     * 
                  + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                  +     * A token identifying a page of results the server should return.
                  +     * 
                  + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
                  +     * Locations that could not be reached.
                  +     * 
                  + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
                  +     * Locations that could not be reached.
                  +     * 
                  + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
                  +     * Locations that could not be reached.
                  +     * 
                  + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
                  +     * Locations that could not be reached.
                  +     * 
                  + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
                  +     * Locations that could not be reached.
                  +     * 
                  + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Locations that could not be reached.
                  +     * 
                  + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Locations that could not be reached.
                  +     * 
                  + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Locations that could not be reached.
                  +     * 
                  + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Locations that could not be reached.
                  +     * 
                  + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.ListClipsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.ListClipsResponse) + private static final com.google.cloud.video.livestream.v1.ListClipsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.ListClipsResponse(); + } + + public static com.google.cloud.video.livestream.v1.ListClipsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClipsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.ListClipsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListClipsResponseOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListClipsResponseOrBuilder.java new file mode 100644 index 000000000000..a15f553d570e --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListClipsResponseOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +public interface ListClipsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.ListClipsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * The list of Clip
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + java.util.List getClipsList(); + /** + * + * + *
                  +   * The list of Clip
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + com.google.cloud.video.livestream.v1.Clip getClips(int index); + /** + * + * + *
                  +   * The list of Clip
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + int getClipsCount(); + /** + * + * + *
                  +   * The list of Clip
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + java.util.List + getClipsOrBuilderList(); + /** + * + * + *
                  +   * The list of Clip
                  +   * 
                  + * + * repeated .google.cloud.video.livestream.v1.Clip clips = 1; + */ + com.google.cloud.video.livestream.v1.ClipOrBuilder getClipsOrBuilder(int index); + + /** + * + * + *
                  +   * A token identifying a page of results the server should return.
                  +   * 
                  + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
                  +   * A token identifying a page of results the server should return.
                  +   * 
                  + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                  +   * Locations that could not be reached.
                  +   * 
                  + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
                  +   * Locations that could not be reached.
                  +   * 
                  + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
                  +   * Locations that could not be reached.
                  +   * 
                  + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
                  +   * Locations that could not be reached.
                  +   * 
                  + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Manifest.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Manifest.java index 9205448452af..779199a1b92c 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Manifest.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Manifest.java @@ -42,6 +42,7 @@ private Manifest() { fileName_ = ""; type_ = 0; muxStreams_ = com.google.protobuf.LazyStringArrayList.emptyList(); + key_ = ""; } @java.lang.Override @@ -442,6 +443,12 @@ public int getMaxSegmentCount() { * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -462,6 +469,12 @@ public boolean hasSegmentKeepDuration() { * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -484,6 +497,12 @@ public com.google.protobuf.Duration getSegmentKeepDuration() { * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -519,6 +538,57 @@ public boolean getUseTimecodeAsTimeline() { return useTimecodeAsTimeline_; } + public static final int KEY_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + /** + * + * + *
                  +   * Optional. A unique key for this manifest.
                  +   * 
                  + * + * string key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * + * + *
                  +   * Optional. A unique key for this manifest.
                  +   * 
                  + * + * string key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -553,6 +623,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (useTimecodeAsTimeline_ != false) { output.writeBool(6, useTimecodeAsTimeline_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, key_); + } getUnknownFields().writeTo(output); } @@ -587,6 +660,9 @@ public int getSerializedSize() { if (useTimecodeAsTimeline_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, useTimecodeAsTimeline_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, key_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -612,6 +688,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSegmentKeepDuration().equals(other.getSegmentKeepDuration())) return false; } if (getUseTimecodeAsTimeline() != other.getUseTimecodeAsTimeline()) return false; + if (!getKey().equals(other.getKey())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -639,6 +716,8 @@ public int hashCode() { } hash = (37 * hash) + USE_TIMECODE_AS_TIMELINE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseTimecodeAsTimeline()); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -797,6 +876,7 @@ public Builder clear() { segmentKeepDurationBuilder_ = null; } useTimecodeAsTimeline_ = false; + key_ = ""; return this; } @@ -857,6 +937,9 @@ private void buildPartial0(com.google.cloud.video.livestream.v1.Manifest result) if (((from_bitField0_ & 0x00000020) != 0)) { result.useTimecodeAsTimeline_ = useTimecodeAsTimeline_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.key_ = key_; + } result.bitField0_ |= to_bitField0_; } @@ -932,6 +1015,11 @@ public Builder mergeFrom(com.google.cloud.video.livestream.v1.Manifest other) { if (other.getUseTimecodeAsTimeline() != false) { setUseTimecodeAsTimeline(other.getUseTimecodeAsTimeline()); } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -996,6 +1084,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 58: + { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1544,6 +1638,12 @@ public Builder clearMaxSegmentCount() { * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -1563,6 +1663,12 @@ public boolean hasSegmentKeepDuration() { * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -1588,6 +1694,12 @@ public com.google.protobuf.Duration getSegmentKeepDuration() { * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -1615,6 +1727,12 @@ public Builder setSegmentKeepDuration(com.google.protobuf.Duration value) { * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -1639,6 +1757,12 @@ public Builder setSegmentKeepDuration(com.google.protobuf.Duration.Builder build * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -1671,6 +1795,12 @@ public Builder mergeSegmentKeepDuration(com.google.protobuf.Duration value) { * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -1695,6 +1825,12 @@ public Builder clearSegmentKeepDuration() { * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -1714,6 +1850,12 @@ public com.google.protobuf.Duration.Builder getSegmentKeepDurationBuilder() { * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -1737,6 +1879,12 @@ public com.google.protobuf.DurationOrBuilder getSegmentKeepDurationOrBuilder() { * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -1829,6 +1977,112 @@ public Builder clearUseTimecodeAsTimeline() { return this; } + private java.lang.Object key_ = ""; + /** + * + * + *
                  +     * Optional. A unique key for this manifest.
                  +     * 
                  + * + * string key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * Optional. A unique key for this manifest.
                  +     * 
                  + * + * string key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * Optional. A unique key for this manifest.
                  +     * 
                  + * + * string key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. A unique key for this manifest.
                  +     * 
                  + * + * string key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. A unique key for this manifest.
                  +     * 
                  + * + * string key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ManifestOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ManifestOrBuilder.java index 9ae6f1768085..e788ef7e51b3 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ManifestOrBuilder.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ManifestOrBuilder.java @@ -185,6 +185,12 @@ public interface ManifestOrBuilder * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -202,6 +208,12 @@ public interface ManifestOrBuilder * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -219,6 +231,12 @@ public interface ManifestOrBuilder * errors while accessing segments which are listed in the manifest that the * player has, but were already deleted from the output Google Cloud Storage * bucket. Default value is `60s`. + * + * If both segment_keep_duration and + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * are set, + * [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + * is used and segment_keep_duration is ignored. * * * .google.protobuf.Duration segment_keep_duration = 5; @@ -243,4 +261,29 @@ public interface ManifestOrBuilder * @return The useTimecodeAsTimeline. */ boolean getUseTimecodeAsTimeline(); + + /** + * + * + *
                  +   * Optional. A unique key for this manifest.
                  +   * 
                  + * + * string key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + java.lang.String getKey(); + /** + * + * + *
                  +   * Optional. A unique key for this manifest.
                  +   * 
                  + * + * string key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); } diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/MuxStream.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/MuxStream.java index dfb9164cdabb..f0e73b31b020 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/MuxStream.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/MuxStream.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                  -   * A unique key for this multiplexed stream.
                  +   * A unique key for this multiplexed stream. The key must be 1-63
                  +   * characters in length. The key must begin and end with a letter (regardless
                  +   * of case) or a number, but can contain dashes or underscores in between.
                      * 
                  * * string key = 1; @@ -98,7 +100,9 @@ public java.lang.String getKey() { * * *
                  -   * A unique key for this multiplexed stream.
                  +   * A unique key for this multiplexed stream. The key must be 1-63
                  +   * characters in length. The key must begin and end with a letter (regardless
                  +   * of case) or a number, but can contain dashes or underscores in between.
                      * 
                  * * string key = 1; @@ -847,7 +851,9 @@ public Builder mergeFrom( * * *
                  -     * A unique key for this multiplexed stream.
                  +     * A unique key for this multiplexed stream. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 1; @@ -869,7 +875,9 @@ public java.lang.String getKey() { * * *
                  -     * A unique key for this multiplexed stream.
                  +     * A unique key for this multiplexed stream. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 1; @@ -891,7 +899,9 @@ public com.google.protobuf.ByteString getKeyBytes() { * * *
                  -     * A unique key for this multiplexed stream.
                  +     * A unique key for this multiplexed stream. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 1; @@ -912,7 +922,9 @@ public Builder setKey(java.lang.String value) { * * *
                  -     * A unique key for this multiplexed stream.
                  +     * A unique key for this multiplexed stream. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 1; @@ -929,7 +941,9 @@ public Builder clearKey() { * * *
                  -     * A unique key for this multiplexed stream.
                  +     * A unique key for this multiplexed stream. The key must be 1-63
                  +     * characters in length. The key must begin and end with a letter (regardless
                  +     * of case) or a number, but can contain dashes or underscores in between.
                        * 
                  * * string key = 1; diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/MuxStreamOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/MuxStreamOrBuilder.java index 51753d2cb921..7ff8cc4682cf 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/MuxStreamOrBuilder.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/MuxStreamOrBuilder.java @@ -28,7 +28,9 @@ public interface MuxStreamOrBuilder * * *
                  -   * A unique key for this multiplexed stream.
                  +   * A unique key for this multiplexed stream. The key must be 1-63
                  +   * characters in length. The key must begin and end with a letter (regardless
                  +   * of case) or a number, but can contain dashes or underscores in between.
                      * 
                  * * string key = 1; @@ -40,7 +42,9 @@ public interface MuxStreamOrBuilder * * *
                  -   * A unique key for this multiplexed stream.
                  +   * A unique key for this multiplexed stream. The key must be 1-63
                  +   * characters in length. The key must begin and end with a letter (regardless
                  +   * of case) or a number, but can contain dashes or underscores in between.
                      * 
                  * * string key = 1; diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/NormalizedCoordinate.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/NormalizedCoordinate.java new file mode 100644 index 000000000000..3720a8e9574b --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/NormalizedCoordinate.java @@ -0,0 +1,635 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +/** + * + * + *
                  + * 2D normalized coordinates.
                  + * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.NormalizedCoordinate} + */ +public final class NormalizedCoordinate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.NormalizedCoordinate) + NormalizedCoordinateOrBuilder { + private static final long serialVersionUID = 0L; + // Use NormalizedCoordinate.newBuilder() to construct. + private NormalizedCoordinate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NormalizedCoordinate() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NormalizedCoordinate(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_NormalizedCoordinate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_NormalizedCoordinate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.NormalizedCoordinate.class, + com.google.cloud.video.livestream.v1.NormalizedCoordinate.Builder.class); + } + + public static final int X_FIELD_NUMBER = 1; + private double x_ = 0D; + /** + * + * + *
                  +   * Optional. Normalized x coordinate. Valid range is [0.0, 1.0]. Default is 0.
                  +   * 
                  + * + * double x = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The x. + */ + @java.lang.Override + public double getX() { + return x_; + } + + public static final int Y_FIELD_NUMBER = 2; + private double y_ = 0D; + /** + * + * + *
                  +   * Optional. Normalized y coordinate. Valid range is [0.0, 1.0]. Default is 0.
                  +   * 
                  + * + * double y = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The y. + */ + @java.lang.Override + public double getY() { + return y_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (java.lang.Double.doubleToRawLongBits(x_) != 0) { + output.writeDouble(1, x_); + } + if (java.lang.Double.doubleToRawLongBits(y_) != 0) { + output.writeDouble(2, y_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(x_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, x_); + } + if (java.lang.Double.doubleToRawLongBits(y_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, y_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.livestream.v1.NormalizedCoordinate)) { + return super.equals(obj); + } + com.google.cloud.video.livestream.v1.NormalizedCoordinate other = + (com.google.cloud.video.livestream.v1.NormalizedCoordinate) obj; + + if (java.lang.Double.doubleToLongBits(getX()) + != java.lang.Double.doubleToLongBits(other.getX())) return false; + if (java.lang.Double.doubleToLongBits(getY()) + != java.lang.Double.doubleToLongBits(other.getY())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + X_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getX())); + hash = (37 * hash) + Y_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getY())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.livestream.v1.NormalizedCoordinate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.NormalizedCoordinate parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.NormalizedCoordinate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.NormalizedCoordinate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.NormalizedCoordinate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.NormalizedCoordinate parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.NormalizedCoordinate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.NormalizedCoordinate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.NormalizedCoordinate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.NormalizedCoordinate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.NormalizedCoordinate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.NormalizedCoordinate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.livestream.v1.NormalizedCoordinate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * 2D normalized coordinates.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.NormalizedCoordinate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.NormalizedCoordinate) + com.google.cloud.video.livestream.v1.NormalizedCoordinateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_NormalizedCoordinate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_NormalizedCoordinate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.NormalizedCoordinate.class, + com.google.cloud.video.livestream.v1.NormalizedCoordinate.Builder.class); + } + + // Construct using com.google.cloud.video.livestream.v1.NormalizedCoordinate.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + x_ = 0D; + y_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_NormalizedCoordinate_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.NormalizedCoordinate getDefaultInstanceForType() { + return com.google.cloud.video.livestream.v1.NormalizedCoordinate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.NormalizedCoordinate build() { + com.google.cloud.video.livestream.v1.NormalizedCoordinate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.NormalizedCoordinate buildPartial() { + com.google.cloud.video.livestream.v1.NormalizedCoordinate result = + new com.google.cloud.video.livestream.v1.NormalizedCoordinate(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.livestream.v1.NormalizedCoordinate result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.x_ = x_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.y_ = y_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.livestream.v1.NormalizedCoordinate) { + return mergeFrom((com.google.cloud.video.livestream.v1.NormalizedCoordinate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.livestream.v1.NormalizedCoordinate other) { + if (other == com.google.cloud.video.livestream.v1.NormalizedCoordinate.getDefaultInstance()) + return this; + if (other.getX() != 0D) { + setX(other.getX()); + } + if (other.getY() != 0D) { + setY(other.getY()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + x_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: + { + y_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private double x_; + /** + * + * + *
                  +     * Optional. Normalized x coordinate. Valid range is [0.0, 1.0]. Default is 0.
                  +     * 
                  + * + * double x = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The x. + */ + @java.lang.Override + public double getX() { + return x_; + } + /** + * + * + *
                  +     * Optional. Normalized x coordinate. Valid range is [0.0, 1.0]. Default is 0.
                  +     * 
                  + * + * double x = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The x to set. + * @return This builder for chaining. + */ + public Builder setX(double value) { + + x_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Normalized x coordinate. Valid range is [0.0, 1.0]. Default is 0.
                  +     * 
                  + * + * double x = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearX() { + bitField0_ = (bitField0_ & ~0x00000001); + x_ = 0D; + onChanged(); + return this; + } + + private double y_; + /** + * + * + *
                  +     * Optional. Normalized y coordinate. Valid range is [0.0, 1.0]. Default is 0.
                  +     * 
                  + * + * double y = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The y. + */ + @java.lang.Override + public double getY() { + return y_; + } + /** + * + * + *
                  +     * Optional. Normalized y coordinate. Valid range is [0.0, 1.0]. Default is 0.
                  +     * 
                  + * + * double y = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The y to set. + * @return This builder for chaining. + */ + public Builder setY(double value) { + + y_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Normalized y coordinate. Valid range is [0.0, 1.0]. Default is 0.
                  +     * 
                  + * + * double y = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearY() { + bitField0_ = (bitField0_ & ~0x00000002); + y_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.NormalizedCoordinate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.NormalizedCoordinate) + private static final com.google.cloud.video.livestream.v1.NormalizedCoordinate DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.NormalizedCoordinate(); + } + + public static com.google.cloud.video.livestream.v1.NormalizedCoordinate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedCoordinate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.NormalizedCoordinate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/NormalizedCoordinateOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/NormalizedCoordinateOrBuilder.java new file mode 100644 index 000000000000..b80ce76c535d --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/NormalizedCoordinateOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +public interface NormalizedCoordinateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.NormalizedCoordinate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Optional. Normalized x coordinate. Valid range is [0.0, 1.0]. Default is 0.
                  +   * 
                  + * + * double x = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The x. + */ + double getX(); + + /** + * + * + *
                  +   * Optional. Normalized y coordinate. Valid range is [0.0, 1.0]. Default is 0.
                  +   * 
                  + * + * double y = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The y. + */ + double getY(); +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/NormalizedResolution.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/NormalizedResolution.java new file mode 100644 index 000000000000..438709aef8dc --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/NormalizedResolution.java @@ -0,0 +1,635 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +/** + * + * + *
                  + * Normalized resolution.
                  + * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.NormalizedResolution} + */ +public final class NormalizedResolution extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.NormalizedResolution) + NormalizedResolutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use NormalizedResolution.newBuilder() to construct. + private NormalizedResolution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NormalizedResolution() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NormalizedResolution(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_NormalizedResolution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_NormalizedResolution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.NormalizedResolution.class, + com.google.cloud.video.livestream.v1.NormalizedResolution.Builder.class); + } + + public static final int W_FIELD_NUMBER = 1; + private double w_ = 0D; + /** + * + * + *
                  +   * Optional. Normalized width. Valid range is [0.0, 1.0]. Default is 0.
                  +   * 
                  + * + * double w = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The w. + */ + @java.lang.Override + public double getW() { + return w_; + } + + public static final int H_FIELD_NUMBER = 2; + private double h_ = 0D; + /** + * + * + *
                  +   * Optional. Normalized height. Valid range is [0.0, 1.0]. Default is 0.
                  +   * 
                  + * + * double h = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The h. + */ + @java.lang.Override + public double getH() { + return h_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (java.lang.Double.doubleToRawLongBits(w_) != 0) { + output.writeDouble(1, w_); + } + if (java.lang.Double.doubleToRawLongBits(h_) != 0) { + output.writeDouble(2, h_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(w_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, w_); + } + if (java.lang.Double.doubleToRawLongBits(h_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, h_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.livestream.v1.NormalizedResolution)) { + return super.equals(obj); + } + com.google.cloud.video.livestream.v1.NormalizedResolution other = + (com.google.cloud.video.livestream.v1.NormalizedResolution) obj; + + if (java.lang.Double.doubleToLongBits(getW()) + != java.lang.Double.doubleToLongBits(other.getW())) return false; + if (java.lang.Double.doubleToLongBits(getH()) + != java.lang.Double.doubleToLongBits(other.getH())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + W_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getW())); + hash = (37 * hash) + H_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getH())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.livestream.v1.NormalizedResolution parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.NormalizedResolution parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.NormalizedResolution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.NormalizedResolution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.NormalizedResolution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.NormalizedResolution parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.NormalizedResolution parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.NormalizedResolution parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.NormalizedResolution parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.NormalizedResolution parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.NormalizedResolution parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.NormalizedResolution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.livestream.v1.NormalizedResolution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * Normalized resolution.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.NormalizedResolution} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.NormalizedResolution) + com.google.cloud.video.livestream.v1.NormalizedResolutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_NormalizedResolution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_NormalizedResolution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.NormalizedResolution.class, + com.google.cloud.video.livestream.v1.NormalizedResolution.Builder.class); + } + + // Construct using com.google.cloud.video.livestream.v1.NormalizedResolution.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + w_ = 0D; + h_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_NormalizedResolution_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.NormalizedResolution getDefaultInstanceForType() { + return com.google.cloud.video.livestream.v1.NormalizedResolution.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.NormalizedResolution build() { + com.google.cloud.video.livestream.v1.NormalizedResolution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.NormalizedResolution buildPartial() { + com.google.cloud.video.livestream.v1.NormalizedResolution result = + new com.google.cloud.video.livestream.v1.NormalizedResolution(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.livestream.v1.NormalizedResolution result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.w_ = w_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.h_ = h_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.livestream.v1.NormalizedResolution) { + return mergeFrom((com.google.cloud.video.livestream.v1.NormalizedResolution) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.livestream.v1.NormalizedResolution other) { + if (other == com.google.cloud.video.livestream.v1.NormalizedResolution.getDefaultInstance()) + return this; + if (other.getW() != 0D) { + setW(other.getW()); + } + if (other.getH() != 0D) { + setH(other.getH()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + w_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: + { + h_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private double w_; + /** + * + * + *
                  +     * Optional. Normalized width. Valid range is [0.0, 1.0]. Default is 0.
                  +     * 
                  + * + * double w = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The w. + */ + @java.lang.Override + public double getW() { + return w_; + } + /** + * + * + *
                  +     * Optional. Normalized width. Valid range is [0.0, 1.0]. Default is 0.
                  +     * 
                  + * + * double w = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The w to set. + * @return This builder for chaining. + */ + public Builder setW(double value) { + + w_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Normalized width. Valid range is [0.0, 1.0]. Default is 0.
                  +     * 
                  + * + * double w = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearW() { + bitField0_ = (bitField0_ & ~0x00000001); + w_ = 0D; + onChanged(); + return this; + } + + private double h_; + /** + * + * + *
                  +     * Optional. Normalized height. Valid range is [0.0, 1.0]. Default is 0.
                  +     * 
                  + * + * double h = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The h. + */ + @java.lang.Override + public double getH() { + return h_; + } + /** + * + * + *
                  +     * Optional. Normalized height. Valid range is [0.0, 1.0]. Default is 0.
                  +     * 
                  + * + * double h = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The h to set. + * @return This builder for chaining. + */ + public Builder setH(double value) { + + h_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Normalized height. Valid range is [0.0, 1.0]. Default is 0.
                  +     * 
                  + * + * double h = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearH() { + bitField0_ = (bitField0_ & ~0x00000002); + h_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.NormalizedResolution) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.NormalizedResolution) + private static final com.google.cloud.video.livestream.v1.NormalizedResolution DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.NormalizedResolution(); + } + + public static com.google.cloud.video.livestream.v1.NormalizedResolution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedResolution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.NormalizedResolution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/NormalizedResolutionOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/NormalizedResolutionOrBuilder.java new file mode 100644 index 000000000000..6e3404f50036 --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/NormalizedResolutionOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +public interface NormalizedResolutionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.NormalizedResolution) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Optional. Normalized width. Valid range is [0.0, 1.0]. Default is 0.
                  +   * 
                  + * + * double w = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The w. + */ + double getW(); + + /** + * + * + *
                  +   * Optional. Normalized height. Valid range is [0.0, 1.0]. Default is 0.
                  +   * 
                  + * + * double h = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The h. + */ + double getH(); +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/OutputsProto.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/OutputsProto.java index d2218e2a3caa..b6ca844f26f5 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/OutputsProto.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/OutputsProto.java @@ -112,70 +112,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "r\030\003 \001(\t\022\032\n\022elementary_streams\030\004 \003(\t\022K\n\020s" + "egment_settings\030\005 \001(\01321.google.cloud.vid" + "eo.livestream.v1.SegmentSettings\022\025\n\rencr" - + "yption_id\030\006 \001(\t\"\274\002\n\010Manifest\022\021\n\tfile_nam" + + "yption_id\030\006 \001(\t\"\316\002\n\010Manifest\022\021\n\tfile_nam" + "e\030\001 \001(\t\022J\n\004type\030\002 \001(\01627.google.cloud.vid" + "eo.livestream.v1.Manifest.ManifestTypeB\003" + "\340A\002\022\030\n\013mux_streams\030\003 \003(\tB\003\340A\002\022\031\n\021max_seg" + "ment_count\030\004 \001(\005\0228\n\025segment_keep_duratio" + "n\030\005 \001(\0132\031.google.protobuf.Duration\022 \n\030us" - + "e_timecode_as_timeline\030\006 \001(\010\"@\n\014Manifest" - + "Type\022\035\n\031MANIFEST_TYPE_UNSPECIFIED\020\000\022\007\n\003H" - + "LS\020\001\022\010\n\004DASH\020\002\"\343\001\n\013SpriteSheet\022\016\n\006format" - + "\030\001 \001(\t\022\030\n\013file_prefix\030\002 \001(\tB\003\340A\002\022 \n\023spri" - + "te_width_pixels\030\003 \001(\005B\003\340A\002\022!\n\024sprite_hei" - + "ght_pixels\030\004 \001(\005B\003\340A\002\022\024\n\014column_count\030\005 " - + "\001(\005\022\021\n\trow_count\030\006 \001(\005\022+\n\010interval\030\007 \001(\013" - + "2\031.google.protobuf.Duration\022\017\n\007quality\030\010" - + " \001(\005\"\305\003\n\023PreprocessingConfig\022J\n\005audio\030\001 " - + "\001(\0132;.google.cloud.video.livestream.v1.P" - + "reprocessingConfig.Audio\022H\n\004crop\030\002 \001(\0132:" - + ".google.cloud.video.livestream.v1.Prepro" - + "cessingConfig.Crop\022F\n\003pad\030\003 \001(\01329.google" - + ".cloud.video.livestream.v1.Preprocessing" - + "Config.Pad\032\025\n\005Audio\022\014\n\004lufs\030\001 \001(\001\032\\\n\004Cro" - + "p\022\022\n\ntop_pixels\030\001 \001(\005\022\025\n\rbottom_pixels\030\002" - + " \001(\005\022\023\n\013left_pixels\030\003 \001(\005\022\024\n\014right_pixel" - + "s\030\004 \001(\005\032[\n\003Pad\022\022\n\ntop_pixels\030\001 \001(\005\022\025\n\rbo" - + "ttom_pixels\030\002 \001(\005\022\023\n\013left_pixels\030\003 \001(\005\022\024" - + "\n\014right_pixels\030\004 \001(\005\"\377\003\n\013VideoStream\022O\n\004" - + "h264\030\024 \001(\0132?.google.cloud.video.livestre" - + "am.v1.VideoStream.H264CodecSettingsH\000\032\214\003" - + "\n\021H264CodecSettings\022\024\n\014width_pixels\030\001 \001(" - + "\005\022\025\n\rheight_pixels\030\002 \001(\005\022\027\n\nframe_rate\030\003" - + " \001(\001B\003\340A\002\022\030\n\013bitrate_bps\030\004 \001(\005B\003\340A\002\022\026\n\016a" - + "llow_open_gop\030\006 \001(\010\022\031\n\017gop_frame_count\030\007" - + " \001(\005H\000\0221\n\014gop_duration\030\010 \001(\0132\031.google.pr" - + "otobuf.DurationH\000\022\025\n\rvbv_size_bits\030\t \001(\005" - + "\022\031\n\021vbv_fullness_bits\030\n \001(\005\022\025\n\rentropy_c" - + "oder\030\013 \001(\t\022\021\n\tb_pyramid\030\014 \001(\010\022\025\n\rb_frame" - + "_count\030\r \001(\005\022\023\n\013aq_strength\030\016 \001(\001\022\017\n\007pro" - + "file\030\017 \001(\t\022\014\n\004tune\030\020 \001(\tB\n\n\010gop_modeB\020\n\016" - + "codec_settings\"\354\002\n\013AudioStream\022\020\n\010transm" - + "ux\030\010 \001(\010\022\r\n\005codec\030\001 \001(\t\022\030\n\013bitrate_bps\030\002" - + " \001(\005B\003\340A\002\022\025\n\rchannel_count\030\003 \001(\005\022\026\n\016chan" - + "nel_layout\030\004 \003(\t\022K\n\007mapping\030\005 \003(\0132:.goog" - + "le.cloud.video.livestream.v1.AudioStream" - + ".AudioMapping\022\031\n\021sample_rate_hertz\030\006 \001(\005" - + "\032\212\001\n\014AudioMapping\022\026\n\tinput_key\030\006 \001(\tB\003\340A" - + "\002\022\030\n\013input_track\030\002 \001(\005B\003\340A\002\022\032\n\rinput_cha" - + "nnel\030\003 \001(\005B\003\340A\002\022\033\n\016output_channel\030\004 \001(\005B" - + "\003\340A\002\022\017\n\007gain_db\030\005 \001(\001\" \n\nTextStream\022\022\n\005c" - + "odec\030\001 \001(\tB\003\340A\002\"F\n\017SegmentSettings\0223\n\020se" - + "gment_duration\030\001 \001(\0132\031.google.protobuf.D" - + "uration\"\254\002\n\016TimecodeConfig\022O\n\006source\030\001 \001" - + "(\0162?.google.cloud.video.livestream.v1.Ti" - + "mecodeConfig.TimecodeSource\022/\n\nutc_offse" - + "t\030\002 \001(\0132\031.google.protobuf.DurationH\000\022*\n\t" - + "time_zone\030\003 \001(\0132\025.google.type.TimeZoneH\000" - + "\"]\n\016TimecodeSource\022\037\n\033TIMECODE_SOURCE_UN" - + "SPECIFIED\020\000\022\023\n\017MEDIA_TIMESTAMP\020\001\022\025\n\021EMBE" - + "DDED_TIMECODE\020\002B\r\n\013time_offsetB\351\001\n$com.g" - + "oogle.cloud.video.livestream.v1B\014Outputs" - + "ProtoP\001ZDcloud.google.com/go/video/lives" - + "tream/apiv1/livestreampb;livestreampb\252\002 " - + "Google.Cloud.Video.LiveStream.V1\312\002 Googl" - + "e\\Cloud\\Video\\LiveStream\\V1\352\002$Google::Cl" - + "oud::Video::LiveStream::V1b\006proto3" + + "e_timecode_as_timeline\030\006 \001(\010\022\020\n\003key\030\007 \001(" + + "\tB\003\340A\001\"@\n\014ManifestType\022\035\n\031MANIFEST_TYPE_" + + "UNSPECIFIED\020\000\022\007\n\003HLS\020\001\022\010\n\004DASH\020\002\"\343\001\n\013Spr" + + "iteSheet\022\016\n\006format\030\001 \001(\t\022\030\n\013file_prefix\030" + + "\002 \001(\tB\003\340A\002\022 \n\023sprite_width_pixels\030\003 \001(\005B" + + "\003\340A\002\022!\n\024sprite_height_pixels\030\004 \001(\005B\003\340A\002\022" + + "\024\n\014column_count\030\005 \001(\005\022\021\n\trow_count\030\006 \001(\005" + + "\022+\n\010interval\030\007 \001(\0132\031.google.protobuf.Dur" + + "ation\022\017\n\007quality\030\010 \001(\005\"\305\003\n\023Preprocessing" + + "Config\022J\n\005audio\030\001 \001(\0132;.google.cloud.vid" + + "eo.livestream.v1.PreprocessingConfig.Aud" + + "io\022H\n\004crop\030\002 \001(\0132:.google.cloud.video.li" + + "vestream.v1.PreprocessingConfig.Crop\022F\n\003" + + "pad\030\003 \001(\01329.google.cloud.video.livestrea" + + "m.v1.PreprocessingConfig.Pad\032\025\n\005Audio\022\014\n" + + "\004lufs\030\001 \001(\001\032\\\n\004Crop\022\022\n\ntop_pixels\030\001 \001(\005\022" + + "\025\n\rbottom_pixels\030\002 \001(\005\022\023\n\013left_pixels\030\003 " + + "\001(\005\022\024\n\014right_pixels\030\004 \001(\005\032[\n\003Pad\022\022\n\ntop_" + + "pixels\030\001 \001(\005\022\025\n\rbottom_pixels\030\002 \001(\005\022\023\n\013l" + + "eft_pixels\030\003 \001(\005\022\024\n\014right_pixels\030\004 \001(\005\"\377" + + "\003\n\013VideoStream\022O\n\004h264\030\024 \001(\0132?.google.cl" + + "oud.video.livestream.v1.VideoStream.H264" + + "CodecSettingsH\000\032\214\003\n\021H264CodecSettings\022\024\n" + + "\014width_pixels\030\001 \001(\005\022\025\n\rheight_pixels\030\002 \001" + + "(\005\022\027\n\nframe_rate\030\003 \001(\001B\003\340A\002\022\030\n\013bitrate_b" + + "ps\030\004 \001(\005B\003\340A\002\022\026\n\016allow_open_gop\030\006 \001(\010\022\031\n" + + "\017gop_frame_count\030\007 \001(\005H\000\0221\n\014gop_duration" + + "\030\010 \001(\0132\031.google.protobuf.DurationH\000\022\025\n\rv" + + "bv_size_bits\030\t \001(\005\022\031\n\021vbv_fullness_bits\030" + + "\n \001(\005\022\025\n\rentropy_coder\030\013 \001(\t\022\021\n\tb_pyrami" + + "d\030\014 \001(\010\022\025\n\rb_frame_count\030\r \001(\005\022\023\n\013aq_str" + + "ength\030\016 \001(\001\022\017\n\007profile\030\017 \001(\t\022\014\n\004tune\030\020 \001" + + "(\tB\n\n\010gop_modeB\020\n\016codec_settings\"\354\002\n\013Aud" + + "ioStream\022\020\n\010transmux\030\010 \001(\010\022\r\n\005codec\030\001 \001(" + + "\t\022\030\n\013bitrate_bps\030\002 \001(\005B\003\340A\002\022\025\n\rchannel_c" + + "ount\030\003 \001(\005\022\026\n\016channel_layout\030\004 \003(\t\022K\n\007ma" + + "pping\030\005 \003(\0132:.google.cloud.video.livestr" + + "eam.v1.AudioStream.AudioMapping\022\031\n\021sampl" + + "e_rate_hertz\030\006 \001(\005\032\212\001\n\014AudioMapping\022\026\n\ti" + + "nput_key\030\006 \001(\tB\003\340A\002\022\030\n\013input_track\030\002 \001(\005" + + "B\003\340A\002\022\032\n\rinput_channel\030\003 \001(\005B\003\340A\002\022\033\n\016out" + + "put_channel\030\004 \001(\005B\003\340A\002\022\017\n\007gain_db\030\005 \001(\001\"" + + " \n\nTextStream\022\022\n\005codec\030\001 \001(\tB\003\340A\002\"F\n\017Seg" + + "mentSettings\0223\n\020segment_duration\030\001 \001(\0132\031" + + ".google.protobuf.Duration\"\254\002\n\016TimecodeCo" + + "nfig\022O\n\006source\030\001 \001(\0162?.google.cloud.vide" + + "o.livestream.v1.TimecodeConfig.TimecodeS" + + "ource\022/\n\nutc_offset\030\002 \001(\0132\031.google.proto" + + "buf.DurationH\000\022*\n\ttime_zone\030\003 \001(\0132\025.goog" + + "le.type.TimeZoneH\000\"]\n\016TimecodeSource\022\037\n\033" + + "TIMECODE_SOURCE_UNSPECIFIED\020\000\022\023\n\017MEDIA_T" + + "IMESTAMP\020\001\022\025\n\021EMBEDDED_TIMECODE\020\002B\r\n\013tim" + + "e_offsetB\351\001\n$com.google.cloud.video.live" + + "stream.v1B\014OutputsProtoP\001ZDcloud.google." + + "com/go/video/livestream/apiv1/livestream" + + "pb;livestreampb\252\002 Google.Cloud.Video.Liv" + + "eStream.V1\312\002 Google\\Cloud\\Video\\LiveStre" + + "am\\V1\352\002$Google::Cloud::Video::LiveStream" + + "::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -213,6 +214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxSegmentCount", "SegmentKeepDuration", "UseTimecodeAsTimeline", + "Key", }); internal_static_google_cloud_video_livestream_v1_SpriteSheet_descriptor = getDescriptor().getMessageTypes().get(3); diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ResourcesProto.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ResourcesProto.java index 21df8348be69..7cc9524ccf15 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ResourcesProto.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ResourcesProto.java @@ -52,6 +52,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_video_livestream_v1_Channel_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_video_livestream_v1_Channel_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_livestream_v1_NormalizedCoordinate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_livestream_v1_NormalizedCoordinate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_livestream_v1_NormalizedResolution_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_livestream_v1_NormalizedResolution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_livestream_v1_StaticOverlay_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_livestream_v1_StaticOverlay_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_video_livestream_v1_InputConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -60,6 +72,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_video_livestream_v1_LogConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_video_livestream_v1_LogConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_livestream_v1_RetentionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_livestream_v1_RetentionConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_video_livestream_v1_InputStreamProperty_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -120,6 +136,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_video_livestream_v1_Event_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_video_livestream_v1_Event_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_livestream_v1_Clip_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_livestream_v1_Clip_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_livestream_v1_Clip_Slice_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_livestream_v1_Clip_Slice_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_livestream_v1_Clip_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_livestream_v1_Clip_LabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_video_livestream_v1_Asset_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -226,7 +262,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "FIED\020\000\022\006\n\002SD\020\001\022\006\n\002HD\020\002\022\007\n\003UHD\020\003:\\\352AY\n\037li" + "vestream.googleapis.com/Input\0226projects/" + "{project}/locations/{location}/inputs/{i" - + "nput}\"\206\013\n\007Channel\022\014\n\004name\030\001 \001(\t\0224\n\013creat" + + "nput}\"\247\014\n\007Channel\022\014\n\004name\030\001 \001(\t\0224\n\013creat" + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + "B\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.prot" + "obuf.TimestampB\003\340A\003\022E\n\006labels\030\004 \003(\01325.go" @@ -252,146 +288,187 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tream.v1.TimecodeConfig\022A\n\013encryptions\030\030" + " \003(\0132,.google.cloud.video.livestream.v1." + "Encryption\022C\n\014input_config\030\031 \001(\0132-.googl" - + "e.cloud.video.livestream.v1.InputConfig\032" - + "\025\n\006Output\022\013\n\003uri\030\001 \001(\t\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\016Stream" - + "ingState\022\037\n\033STREAMING_STATE_UNSPECIFIED\020" - + "\000\022\r\n\tSTREAMING\020\001\022\022\n\016AWAITING_INPUT\020\002\022\023\n\017" - + "STREAMING_ERROR\020\004\022\026\n\022STREAMING_NO_INPUT\020" - + "\005\022\013\n\007STOPPED\020\006\022\014\n\010STARTING\020\007\022\014\n\010STOPPING" - + "\020\010:b\352A_\n!livestream.googleapis.com/Chann" - + "el\022:projects/{project}/locations/{locati" - + "on}/channels/{channel}\"\306\001\n\013InputConfig\022X" - + "\n\021input_switch_mode\030\001 \001(\0162=.google.cloud" - + ".video.livestream.v1.InputConfig.InputSw" - + "itchMode\"]\n\017InputSwitchMode\022!\n\035INPUT_SWI" - + "TCH_MODE_UNSPECIFIED\020\000\022\033\n\027FAILOVER_PREFE" - + "R_PRIMARY\020\001\022\n\n\006MANUAL\020\003\"\300\001\n\tLogConfig\022M\n" - + "\014log_severity\030\001 \001(\01627.google.cloud.video" - + ".livestream.v1.LogConfig.LogSeverity\"d\n\013" - + "LogSeverity\022\034\n\030LOG_SEVERITY_UNSPECIFIED\020" - + "\000\022\007\n\003OFF\020\001\022\t\n\005DEBUG\020d\022\t\n\004INFO\020\310\001\022\014\n\007WARN" - + "ING\020\220\003\022\n\n\005ERROR\020\364\003\"\352\001\n\023InputStreamProper" - + "ty\0227\n\023last_establish_time\030\001 \001(\0132\032.google" - + ".protobuf.Timestamp\022L\n\rvideo_streams\030\002 \003" - + "(\01325.google.cloud.video.livestream.v1.Vi" - + "deoStreamProperty\022L\n\raudio_streams\030\003 \003(\013" - + "25.google.cloud.video.livestream.v1.Audi" - + "oStreamProperty\"i\n\023VideoStreamProperty\022\r" - + "\n\005index\030\001 \001(\005\022C\n\014video_format\030\002 \001(\0132-.go" - + "ogle.cloud.video.livestream.v1.VideoForm" - + "at\"]\n\013VideoFormat\022\r\n\005codec\030\001 \001(\t\022\024\n\014widt" - + "h_pixels\030\002 \001(\005\022\025\n\rheight_pixels\030\003 \001(\005\022\022\n" - + "\nframe_rate\030\004 \001(\001\"i\n\023AudioStreamProperty" - + "\022\r\n\005index\030\001 \001(\005\022C\n\014audio_format\030\002 \001(\0132-." - + "google.cloud.video.livestream.v1.AudioFo" - + "rmat\"K\n\013AudioFormat\022\r\n\005codec\030\001 \001(\t\022\025\n\rch" - + "annel_count\030\002 \001(\005\022\026\n\016channel_layout\030\003 \003(" - + "\t\"\335\001\n\017InputAttachment\022\013\n\003key\030\001 \001(\t\0223\n\005in" - + "put\030\002 \001(\tB$\372A!\n\037livestream.googleapis.co" - + "m/Input\022_\n\022automatic_failover\030\003 \001(\0132C.go" - + "ogle.cloud.video.livestream.v1.InputAtta" - + "chment.AutomaticFailover\032\'\n\021AutomaticFai" - + "lover\022\022\n\ninput_keys\030\001 \003(\t\"\202\013\n\005Event\022\014\n\004n" - + "ame\030\001 \001(\t\0224\n\013create_time\030\002 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C\n" - + "\006labels\030\004 \003(\01323.google.cloud.video.lives" - + "tream.v1.Event.LabelsEntry\022O\n\014input_swit" - + "ch\030\005 \001(\01327.google.cloud.video.livestream" - + ".v1.Event.InputSwitchTaskH\000\022G\n\010ad_break\030" - + "\006 \001(\01323.google.cloud.video.livestream.v1" - + ".Event.AdBreakTaskH\000\022X\n\021return_to_progra" - + "m\030\r \001(\0132;.google.cloud.video.livestream." - + "v1.Event.ReturnToProgramTaskH\000\022B\n\005slate\030" - + "\016 \001(\01321.google.cloud.video.livestream.v1" - + ".Event.SlateTaskH\000\022@\n\004mute\030\017 \001(\01320.googl" - + "e.cloud.video.livestream.v1.Event.MuteTa" - + "skH\000\022D\n\006unmute\030\020 \001(\01322.google.cloud.vide" - + "o.livestream.v1.Event.UnmuteTaskH\000\022\023\n\013ex" - + "ecute_now\030\t \001(\010\0222\n\016execution_time\030\n \001(\0132" - + "\032.google.protobuf.Timestamp\022A\n\005state\030\013 \001" - + "(\0162-.google.cloud.video.livestream.v1.Ev" - + "ent.StateB\003\340A\003\022&\n\005error\030\014 \001(\0132\022.google.r" - + "pc.StatusB\003\340A\003\032$\n\017InputSwitchTask\022\021\n\tinp" - + "ut_key\030\001 \001(\t\032:\n\013AdBreakTask\022+\n\010duration\030" - + "\001 \001(\0132\031.google.protobuf.Duration\032m\n\tSlat" - + "eTask\022+\n\010duration\030\001 \001(\0132\031.google.protobu" - + "f.Duration\0223\n\005asset\030\002 \001(\tB$\372A!\n\037livestre" - + "am.googleapis.com/Asset\032\025\n\023ReturnToProgr" - + "amTask\0327\n\010MuteTask\022+\n\010duration\030\001 \001(\0132\031.g" - + "oogle.protobuf.Duration\032\014\n\nUnmuteTask\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\"o\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\t" - + "SCHEDULED\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022" - + "\n\n\006FAILED\020\004\022\013\n\007PENDING\020\005\022\013\n\007STOPPED\020\006:o\352" - + "Al\n\037livestream.googleapis.com/Event\022Ipro" - + "jects/{project}/locations/{location}/cha" - + "nnels/{channel}/events/{event}B\006\n\004task\"\355" - + "\005\n\005Asset\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" - + "update_time\030\003 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022C\n\006labels\030\004 \003(\01323.google.clou" - + "d.video.livestream.v1.Asset.LabelsEntry\022" - + "C\n\005video\030\005 \001(\01322.google.cloud.video.live" - + "stream.v1.Asset.VideoAssetH\000\022C\n\005image\030\006 " - + "\001(\01322.google.cloud.video.livestream.v1.A" - + "sset.ImageAssetH\000\022\016\n\006crc32c\030\007 \001(\t\022A\n\005sta" - + "te\030\010 \001(\0162-.google.cloud.video.livestream" - + ".v1.Asset.StateB\003\340A\003\022&\n\005error\030\t \001(\0132\022.go" - + "ogle.rpc.StatusB\003\340A\003\032\031\n\nVideoAsset\022\013\n\003ur" - + "i\030\001 \001(\t\032\031\n\nImageAsset\022\013\n\003uri\030\001 \001(\t\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"Q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CRE" - + "ATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003\022\t\n\005ERR" - + "OR\020\004:\\\352AY\n\037livestream.googleapis.com/Ass" - + "et\0226projects/{project}/locations/{locati" - + "on}/assets/{asset}B\n\n\010resource\"\235\010\n\nEncry" - + "ption\022\017\n\002id\030\001 \001(\tB\003\340A\002\022e\n\031secret_manager" - + "_key_source\030\007 \001(\0132@.google.cloud.video.l" - + "ivestream.v1.Encryption.SecretManagerSou" - + "rceH\000\022Q\n\013drm_systems\030\003 \001(\01327.google.clou" - + "d.video.livestream.v1.Encryption.DrmSyst" - + "emsB\003\340A\002\022O\n\006aes128\030\004 \001(\0132=.google.cloud." - + "video.livestream.v1.Encryption.Aes128Enc" - + "ryptionH\001\022V\n\nsample_aes\030\005 \001(\0132@.google.c" - + "loud.video.livestream.v1.Encryption.Samp" - + "leAesEncryptionH\001\022V\n\tmpeg_cenc\030\006 \001(\0132A.g" - + "oogle.cloud.video.livestream.v1.Encrypti" - + "on.MpegCommonEncryptionH\001\032a\n\023SecretManag" - + "erSource\022J\n\016secret_version\030\001 \001(\tB2\340A\002\372A," - + "\n*secretmanager.googleapis.com/SecretVer" - + "sion\032\n\n\010Widevine\032\n\n\010Fairplay\032\013\n\tPlayread" - + "y\032\n\n\010Clearkey\032\262\002\n\nDrmSystems\022G\n\010widevine" - + "\030\001 \001(\01325.google.cloud.video.livestream.v" - + "1.Encryption.Widevine\022G\n\010fairplay\030\002 \001(\0132" - + "5.google.cloud.video.livestream.v1.Encry" - + "ption.Fairplay\022I\n\tplayready\030\003 \001(\01326.goog" + + "e.cloud.video.livestream.v1.InputConfig\022" + + "P\n\020retention_config\030\032 \001(\01321.google.cloud" + + ".video.livestream.v1.RetentionConfigB\003\340A" + + "\001\022M\n\017static_overlays\030\033 \003(\0132/.google.clou" + + "d.video.livestream.v1.StaticOverlayB\003\340A\001" + + "\032\025\n\006Output\022\013\n\003uri\030\001 \001(\t\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\016Strea" + + "mingState\022\037\n\033STREAMING_STATE_UNSPECIFIED" + + "\020\000\022\r\n\tSTREAMING\020\001\022\022\n\016AWAITING_INPUT\020\002\022\023\n" + + "\017STREAMING_ERROR\020\004\022\026\n\022STREAMING_NO_INPUT" + + "\020\005\022\013\n\007STOPPED\020\006\022\014\n\010STARTING\020\007\022\014\n\010STOPPIN" + + "G\020\010:b\352A_\n!livestream.googleapis.com/Chan" + + "nel\022:projects/{project}/locations/{locat" + + "ion}/channels/{channel}\"6\n\024NormalizedCoo" + + "rdinate\022\016\n\001x\030\001 \001(\001B\003\340A\001\022\016\n\001y\030\002 \001(\001B\003\340A\001\"" + + "6\n\024NormalizedResolution\022\016\n\001w\030\001 \001(\001B\003\340A\001\022" + + "\016\n\001h\030\002 \001(\001B\003\340A\001\"\375\001\n\rStaticOverlay\0226\n\005ass" + + "et\030\001 \001(\tB\'\340A\002\372A!\n\037livestream.googleapis." + + "com/Asset\022O\n\nresolution\030\002 \001(\01326.google.c" + + "loud.video.livestream.v1.NormalizedResol" + + "utionB\003\340A\001\022M\n\010position\030\003 \001(\01326.google.cl" + + "oud.video.livestream.v1.NormalizedCoordi" + + "nateB\003\340A\001\022\024\n\007opacity\030\004 \001(\001B\003\340A\001\"\306\001\n\013Inpu" + + "tConfig\022X\n\021input_switch_mode\030\001 \001(\0162=.goo" + + "gle.cloud.video.livestream.v1.InputConfi" + + "g.InputSwitchMode\"]\n\017InputSwitchMode\022!\n\035" + + "INPUT_SWITCH_MODE_UNSPECIFIED\020\000\022\033\n\027FAILO" + + "VER_PREFER_PRIMARY\020\001\022\n\n\006MANUAL\020\003\"\300\001\n\tLog" + + "Config\022M\n\014log_severity\030\001 \001(\01627.google.cl" + + "oud.video.livestream.v1.LogConfig.LogSev" + + "erity\"d\n\013LogSeverity\022\034\n\030LOG_SEVERITY_UNS" + + "PECIFIED\020\000\022\007\n\003OFF\020\001\022\t\n\005DEBUG\020d\022\t\n\004INFO\020\310" + + "\001\022\014\n\007WARNING\020\220\003\022\n\n\005ERROR\020\364\003\"O\n\017Retention" + + "Config\022<\n\031retention_window_duration\030\001 \001(" + + "\0132\031.google.protobuf.Duration\"\352\001\n\023InputSt" + + "reamProperty\0227\n\023last_establish_time\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\022L\n\rvideo_s" + + "treams\030\002 \003(\01325.google.cloud.video.livest" + + "ream.v1.VideoStreamProperty\022L\n\raudio_str" + + "eams\030\003 \003(\01325.google.cloud.video.livestre" + + "am.v1.AudioStreamProperty\"i\n\023VideoStream" + + "Property\022\r\n\005index\030\001 \001(\005\022C\n\014video_format\030" + + "\002 \001(\0132-.google.cloud.video.livestream.v1" + + ".VideoFormat\"]\n\013VideoFormat\022\r\n\005codec\030\001 \001" + + "(\t\022\024\n\014width_pixels\030\002 \001(\005\022\025\n\rheight_pixel" + + "s\030\003 \001(\005\022\022\n\nframe_rate\030\004 \001(\001\"i\n\023AudioStre" + + "amProperty\022\r\n\005index\030\001 \001(\005\022C\n\014audio_forma" + + "t\030\002 \001(\0132-.google.cloud.video.livestream." + + "v1.AudioFormat\"K\n\013AudioFormat\022\r\n\005codec\030\001" + + " \001(\t\022\025\n\rchannel_count\030\002 \001(\005\022\026\n\016channel_l" + + "ayout\030\003 \003(\t\"\335\001\n\017InputAttachment\022\013\n\003key\030\001" + + " \001(\t\0223\n\005input\030\002 \001(\tB$\372A!\n\037livestream.goo" + + "gleapis.com/Input\022_\n\022automatic_failover\030" + + "\003 \001(\0132C.google.cloud.video.livestream.v1" + + ".InputAttachment.AutomaticFailover\032\'\n\021Au" + + "tomaticFailover\022\022\n\ninput_keys\030\001 \003(\t\"\202\013\n\005" + + "Event\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022C\n\006labels\030\004 \003(\01323.google.cloud.v" + + "ideo.livestream.v1.Event.LabelsEntry\022O\n\014" + + "input_switch\030\005 \001(\01327.google.cloud.video." + + "livestream.v1.Event.InputSwitchTaskH\000\022G\n" + + "\010ad_break\030\006 \001(\01323.google.cloud.video.liv" + + "estream.v1.Event.AdBreakTaskH\000\022X\n\021return" + + "_to_program\030\r \001(\0132;.google.cloud.video.l" + + "ivestream.v1.Event.ReturnToProgramTaskH\000" + + "\022B\n\005slate\030\016 \001(\01321.google.cloud.video.liv" + + "estream.v1.Event.SlateTaskH\000\022@\n\004mute\030\017 \001" + + "(\01320.google.cloud.video.livestream.v1.Ev" + + "ent.MuteTaskH\000\022D\n\006unmute\030\020 \001(\01322.google." + + "cloud.video.livestream.v1.Event.UnmuteTa" + + "skH\000\022\023\n\013execute_now\030\t \001(\010\0222\n\016execution_t" + + "ime\030\n \001(\0132\032.google.protobuf.Timestamp\022A\n" + + "\005state\030\013 \001(\0162-.google.cloud.video.livest" + + "ream.v1.Event.StateB\003\340A\003\022&\n\005error\030\014 \001(\0132" + + "\022.google.rpc.StatusB\003\340A\003\032$\n\017InputSwitchT" + + "ask\022\021\n\tinput_key\030\001 \001(\t\032:\n\013AdBreakTask\022+\n" + + "\010duration\030\001 \001(\0132\031.google.protobuf.Durati" + + "on\032m\n\tSlateTask\022+\n\010duration\030\001 \001(\0132\031.goog" + + "le.protobuf.Duration\0223\n\005asset\030\002 \001(\tB$\372A!" + + "\n\037livestream.googleapis.com/Asset\032\025\n\023Ret" + + "urnToProgramTask\0327\n\010MuteTask\022+\n\010duration" + + "\030\001 \001(\0132\031.google.protobuf.Duration\032\014\n\nUnm" + + "uteTask\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"o\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\r\n\tSCHEDULED\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSU" + + "CCEEDED\020\003\022\n\n\006FAILED\020\004\022\013\n\007PENDING\020\005\022\013\n\007ST" + + "OPPED\020\006:o\352Al\n\037livestream.googleapis.com/" + + "Event\022Iprojects/{project}/locations/{loc" + + "ation}/channels/{channel}/events/{event}" + + "B\006\n\004task\"\207\010\n\004Clip\022\014\n\004name\030\001 \001(\t\0224\n\013creat" + + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0223\n\nstart_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022B\n\006labe" + + "ls\030\005 \003(\01322.google.cloud.video.livestream" + + ".v1.Clip.LabelsEntry\022@\n\005state\030\006 \001(\0162,.go" + + "ogle.cloud.video.livestream.v1.Clip.Stat" + + "eB\003\340A\003\022\022\n\noutput_uri\030\007 \001(\t\022&\n\005error\030\t \001(" + + "\0132\022.google.rpc.StatusB\003\340A\003\022<\n\006slices\030\n \003" + + "(\0132,.google.cloud.video.livestream.v1.Cl" + + "ip.Slice\022P\n\016clip_manifests\030\014 \003(\01323.googl" + + "e.cloud.video.livestream.v1.Clip.ClipMan" + + "ifestB\003\340A\002\032n\n\tTimeSlice\022/\n\013markin_time\030\001" + + " \001(\0132\032.google.protobuf.Timestamp\0220\n\014mark" + + "out_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mp\032W\n\005Slice\022F\n\ntime_slice\030\001 \001(\01320.google" + + ".cloud.video.livestream.v1.Clip.TimeSlic" + + "eH\000B\006\n\004kind\032B\n\014ClipManifest\022\031\n\014manifest_" + + "key\030\001 \001(\tB\003\340A\002\022\027\n\noutput_uri\030\002 \001(\tB\003\340A\003\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013" + + "\n\007PENDING\020\001\022\014\n\010CREATING\020\002\022\r\n\tSUCCEEDED\020\003" + + "\022\n\n\006FAILED\020\004:l\352Ai\n\036livestream.googleapis" + + ".com/Clip\022Gprojects/{project}/locations/" + + "{location}/channels/{channel}/clips/{cli" + + "p}\"\355\005\n\005Asset\022\014\n\004name\030\001 \001(\t\0224\n\013create_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022C\n\006labels\030\004 \003(\01323.google." + + "cloud.video.livestream.v1.Asset.LabelsEn" + + "try\022C\n\005video\030\005 \001(\01322.google.cloud.video." + + "livestream.v1.Asset.VideoAssetH\000\022C\n\005imag" + + "e\030\006 \001(\01322.google.cloud.video.livestream." + + "v1.Asset.ImageAssetH\000\022\016\n\006crc32c\030\007 \001(\t\022A\n" + + "\005state\030\010 \001(\0162-.google.cloud.video.livest" + + "ream.v1.Asset.StateB\003\340A\003\022&\n\005error\030\t \001(\0132" + + "\022.google.rpc.StatusB\003\340A\003\032\031\n\nVideoAsset\022\013" + + "\n\003uri\030\001 \001(\t\032\031\n\nImageAsset\022\013\n\003uri\030\001 \001(\t\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"Q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003\022\t\n" + + "\005ERROR\020\004:\\\352AY\n\037livestream.googleapis.com" + + "/Asset\0226projects/{project}/locations/{lo" + + "cation}/assets/{asset}B\n\n\010resource\"\235\010\n\nE" + + "ncryption\022\017\n\002id\030\001 \001(\tB\003\340A\002\022e\n\031secret_man" + + "ager_key_source\030\007 \001(\0132@.google.cloud.vid" + + "eo.livestream.v1.Encryption.SecretManage" + + "rSourceH\000\022Q\n\013drm_systems\030\003 \001(\01327.google." + + "cloud.video.livestream.v1.Encryption.Drm" + + "SystemsB\003\340A\002\022O\n\006aes128\030\004 \001(\0132=.google.cl" + + "oud.video.livestream.v1.Encryption.Aes12" + + "8EncryptionH\001\022V\n\nsample_aes\030\005 \001(\0132@.goog" + "le.cloud.video.livestream.v1.Encryption." - + "Playready\022G\n\010clearkey\030\004 \001(\01325.google.clo" - + "ud.video.livestream.v1.Encryption.Cleark" - + "ey\032\022\n\020Aes128Encryption\032\025\n\023SampleAesEncry" - + "ption\032+\n\024MpegCommonEncryption\022\023\n\006scheme\030" - + "\001 \001(\tB\003\340A\002B\017\n\rsecret_sourceB\021\n\017encryptio" - + "n_mode\"\352\003\n\004Pool\022\014\n\004name\030\001 \001(\t\0224\n\013create_" - + "time\030\002 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\022B\n\006labels\030\004 \003(\01322.goog" - + "le.cloud.video.livestream.v1.Pool.Labels" - + "Entry\022L\n\016network_config\030\005 \001(\01324.google.c" - + "loud.video.livestream.v1.Pool.NetworkCon" - + "fig\032L\n\rNetworkConfig\022;\n\016peered_network\030\001" - + " \001(\tB#\372A \n\036compute.googleapis.com/Networ" - + "k\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001:Y\352AV\n\036livestream.googleapis.com" - + "/Pool\0224projects/{project}/locations/{loc" - + "ation}/pools/{pool}B\353\001\n$com.google.cloud" - + ".video.livestream.v1B\016ResourcesProtoP\001ZD" - + "cloud.google.com/go/video/livestream/api" - + "v1/livestreampb;livestreampb\252\002 Google.Cl" - + "oud.Video.LiveStream.V1\312\002 Google\\Cloud\\V" - + "ideo\\LiveStream\\V1\352\002$Google::Cloud::Vide" - + "o::LiveStream::V1b\006proto3" + + "SampleAesEncryptionH\001\022V\n\tmpeg_cenc\030\006 \001(\013" + + "2A.google.cloud.video.livestream.v1.Encr" + + "yption.MpegCommonEncryptionH\001\032a\n\023SecretM" + + "anagerSource\022J\n\016secret_version\030\001 \001(\tB2\340A" + + "\002\372A,\n*secretmanager.googleapis.com/Secre" + + "tVersion\032\n\n\010Widevine\032\n\n\010Fairplay\032\013\n\tPlay" + + "ready\032\n\n\010Clearkey\032\262\002\n\nDrmSystems\022G\n\010wide" + + "vine\030\001 \001(\01325.google.cloud.video.livestre" + + "am.v1.Encryption.Widevine\022G\n\010fairplay\030\002 " + + "\001(\01325.google.cloud.video.livestream.v1.E" + + "ncryption.Fairplay\022I\n\tplayready\030\003 \001(\01326." + + "google.cloud.video.livestream.v1.Encrypt" + + "ion.Playready\022G\n\010clearkey\030\004 \001(\01325.google" + + ".cloud.video.livestream.v1.Encryption.Cl" + + "earkey\032\022\n\020Aes128Encryption\032\025\n\023SampleAesE" + + "ncryption\032+\n\024MpegCommonEncryption\022\023\n\006sch" + + "eme\030\001 \001(\tB\003\340A\002B\017\n\rsecret_sourceB\021\n\017encry" + + "ption_mode\"\352\003\n\004Pool\022\014\n\004name\030\001 \001(\t\0224\n\013cre" + + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022B\n\006labels\030\004 \003(\01322." + + "google.cloud.video.livestream.v1.Pool.La" + + "belsEntry\022L\n\016network_config\030\005 \001(\01324.goog" + + "le.cloud.video.livestream.v1.Pool.Networ" + + "kConfig\032L\n\rNetworkConfig\022;\n\016peered_netwo" + + "rk\030\001 \001(\tB#\372A \n\036compute.googleapis.com/Ne" + + "twork\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001:Y\352AV\n\036livestream.googleapis" + + ".com/Pool\0224projects/{project}/locations/" + + "{location}/pools/{pool}B\353\001\n$com.google.c" + + "loud.video.livestream.v1B\016ResourcesProto" + + "P\001ZDcloud.google.com/go/video/livestream" + + "/apiv1/livestreampb;livestreampb\252\002 Googl" + + "e.Cloud.Video.LiveStream.V1\312\002 Google\\Clo" + + "ud\\Video\\LiveStream\\V1\352\002$Google::Cloud::" + + "Video::LiveStream::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -460,6 +537,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimecodeConfig", "Encryptions", "InputConfig", + "RetentionConfig", + "StaticOverlays", }); internal_static_google_cloud_video_livestream_v1_Channel_Output_descriptor = internal_static_google_cloud_video_livestream_v1_Channel_descriptor.getNestedTypes().get(0); @@ -477,8 +556,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_video_livestream_v1_InputConfig_descriptor = + internal_static_google_cloud_video_livestream_v1_NormalizedCoordinate_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_video_livestream_v1_NormalizedCoordinate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_livestream_v1_NormalizedCoordinate_descriptor, + new java.lang.String[] { + "X", "Y", + }); + internal_static_google_cloud_video_livestream_v1_NormalizedResolution_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_video_livestream_v1_NormalizedResolution_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_livestream_v1_NormalizedResolution_descriptor, + new java.lang.String[] { + "W", "H", + }); + internal_static_google_cloud_video_livestream_v1_StaticOverlay_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_video_livestream_v1_StaticOverlay_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_livestream_v1_StaticOverlay_descriptor, + new java.lang.String[] { + "Asset", "Resolution", "Position", "Opacity", + }); + internal_static_google_cloud_video_livestream_v1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_video_livestream_v1_InputConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_InputConfig_descriptor, @@ -486,15 +589,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InputSwitchMode", }); internal_static_google_cloud_video_livestream_v1_LogConfig_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_video_livestream_v1_LogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_LogConfig_descriptor, new java.lang.String[] { "LogSeverity", }); + internal_static_google_cloud_video_livestream_v1_RetentionConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_video_livestream_v1_RetentionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_livestream_v1_RetentionConfig_descriptor, + new java.lang.String[] { + "RetentionWindowDuration", + }); internal_static_google_cloud_video_livestream_v1_InputStreamProperty_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_video_livestream_v1_InputStreamProperty_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_InputStreamProperty_descriptor, @@ -502,7 +613,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LastEstablishTime", "VideoStreams", "AudioStreams", }); internal_static_google_cloud_video_livestream_v1_VideoStreamProperty_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_video_livestream_v1_VideoStreamProperty_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_VideoStreamProperty_descriptor, @@ -510,7 +621,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Index", "VideoFormat", }); internal_static_google_cloud_video_livestream_v1_VideoFormat_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_video_livestream_v1_VideoFormat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_VideoFormat_descriptor, @@ -518,7 +629,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Codec", "WidthPixels", "HeightPixels", "FrameRate", }); internal_static_google_cloud_video_livestream_v1_AudioStreamProperty_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_video_livestream_v1_AudioStreamProperty_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_AudioStreamProperty_descriptor, @@ -526,7 +637,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Index", "AudioFormat", }); internal_static_google_cloud_video_livestream_v1_AudioFormat_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_video_livestream_v1_AudioFormat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_AudioFormat_descriptor, @@ -534,7 +645,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Codec", "ChannelCount", "ChannelLayout", }); internal_static_google_cloud_video_livestream_v1_InputAttachment_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_video_livestream_v1_InputAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_InputAttachment_descriptor, @@ -552,7 +663,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InputKeys", }); internal_static_google_cloud_video_livestream_v1_Event_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_video_livestream_v1_Event_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_Event_descriptor, @@ -625,8 +736,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_video_livestream_v1_Clip_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_video_livestream_v1_Clip_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_livestream_v1_Clip_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "StartTime", + "UpdateTime", + "Labels", + "State", + "OutputUri", + "Error", + "Slices", + "ClipManifests", + }); + internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_descriptor = + internal_static_google_cloud_video_livestream_v1_Clip_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_descriptor, + new java.lang.String[] { + "MarkinTime", "MarkoutTime", + }); + internal_static_google_cloud_video_livestream_v1_Clip_Slice_descriptor = + internal_static_google_cloud_video_livestream_v1_Clip_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_video_livestream_v1_Clip_Slice_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_livestream_v1_Clip_Slice_descriptor, + new java.lang.String[] { + "TimeSlice", "Kind", + }); + internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_descriptor = + internal_static_google_cloud_video_livestream_v1_Clip_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_descriptor, + new java.lang.String[] { + "ManifestKey", "OutputUri", + }); + internal_static_google_cloud_video_livestream_v1_Clip_LabelsEntry_descriptor = + internal_static_google_cloud_video_livestream_v1_Clip_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_video_livestream_v1_Clip_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_livestream_v1_Clip_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_video_livestream_v1_Asset_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_video_livestream_v1_Asset_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_Asset_descriptor, @@ -667,7 +827,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_video_livestream_v1_Encryption_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_video_livestream_v1_Encryption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_Encryption_descriptor, @@ -760,7 +920,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Scheme", }); internal_static_google_cloud_video_livestream_v1_Pool_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_video_livestream_v1_Pool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_Pool_descriptor, diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/RetentionConfig.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/RetentionConfig.java new file mode 100644 index 000000000000..06261fea3656 --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/RetentionConfig.java @@ -0,0 +1,919 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +/** + * + * + *
                  + * Configuration for retention of output files.
                  + * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.RetentionConfig} + */ +public final class RetentionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.RetentionConfig) + RetentionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetentionConfig.newBuilder() to construct. + private RetentionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RetentionConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RetentionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_RetentionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_RetentionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.RetentionConfig.class, + com.google.cloud.video.livestream.v1.RetentionConfig.Builder.class); + } + + private int bitField0_; + public static final int RETENTION_WINDOW_DURATION_FIELD_NUMBER = 1; + private com.google.protobuf.Duration retentionWindowDuration_; + /** + * + * + *
                  +   * The minimum duration for which the output files from the channel will
                  +   * remain in the output bucket. After this duration, output files are
                  +   * deleted asynchronously.
                  +   *
                  +   * When the channel is deleted, all output files are deleted from the output
                  +   * bucket asynchronously.
                  +   *
                  +   * If omitted or set to zero, output files will remain in the output bucket
                  +   * based on
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +   * which defaults to 60s.
                  +   *
                  +   * If both retention_window_duration and
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +   * are set, retention_window_duration is used and
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +   * is ignored.
                  +   * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + * + * @return Whether the retentionWindowDuration field is set. + */ + @java.lang.Override + public boolean hasRetentionWindowDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                  +   * The minimum duration for which the output files from the channel will
                  +   * remain in the output bucket. After this duration, output files are
                  +   * deleted asynchronously.
                  +   *
                  +   * When the channel is deleted, all output files are deleted from the output
                  +   * bucket asynchronously.
                  +   *
                  +   * If omitted or set to zero, output files will remain in the output bucket
                  +   * based on
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +   * which defaults to 60s.
                  +   *
                  +   * If both retention_window_duration and
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +   * are set, retention_window_duration is used and
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +   * is ignored.
                  +   * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + * + * @return The retentionWindowDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getRetentionWindowDuration() { + return retentionWindowDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindowDuration_; + } + /** + * + * + *
                  +   * The minimum duration for which the output files from the channel will
                  +   * remain in the output bucket. After this duration, output files are
                  +   * deleted asynchronously.
                  +   *
                  +   * When the channel is deleted, all output files are deleted from the output
                  +   * bucket asynchronously.
                  +   *
                  +   * If omitted or set to zero, output files will remain in the output bucket
                  +   * based on
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +   * which defaults to 60s.
                  +   *
                  +   * If both retention_window_duration and
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +   * are set, retention_window_duration is used and
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +   * is ignored.
                  +   * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getRetentionWindowDurationOrBuilder() { + return retentionWindowDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindowDuration_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRetentionWindowDuration()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRetentionWindowDuration()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.livestream.v1.RetentionConfig)) { + return super.equals(obj); + } + com.google.cloud.video.livestream.v1.RetentionConfig other = + (com.google.cloud.video.livestream.v1.RetentionConfig) obj; + + if (hasRetentionWindowDuration() != other.hasRetentionWindowDuration()) return false; + if (hasRetentionWindowDuration()) { + if (!getRetentionWindowDuration().equals(other.getRetentionWindowDuration())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRetentionWindowDuration()) { + hash = (37 * hash) + RETENTION_WINDOW_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getRetentionWindowDuration().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.livestream.v1.RetentionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.RetentionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.RetentionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.RetentionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.RetentionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.RetentionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.RetentionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.RetentionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.RetentionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.RetentionConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.RetentionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.RetentionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.video.livestream.v1.RetentionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * Configuration for retention of output files.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.RetentionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.RetentionConfig) + com.google.cloud.video.livestream.v1.RetentionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_RetentionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_RetentionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.RetentionConfig.class, + com.google.cloud.video.livestream.v1.RetentionConfig.Builder.class); + } + + // Construct using com.google.cloud.video.livestream.v1.RetentionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRetentionWindowDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + retentionWindowDuration_ = null; + if (retentionWindowDurationBuilder_ != null) { + retentionWindowDurationBuilder_.dispose(); + retentionWindowDurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_RetentionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.RetentionConfig getDefaultInstanceForType() { + return com.google.cloud.video.livestream.v1.RetentionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.RetentionConfig build() { + com.google.cloud.video.livestream.v1.RetentionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.RetentionConfig buildPartial() { + com.google.cloud.video.livestream.v1.RetentionConfig result = + new com.google.cloud.video.livestream.v1.RetentionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.livestream.v1.RetentionConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.retentionWindowDuration_ = + retentionWindowDurationBuilder_ == null + ? retentionWindowDuration_ + : retentionWindowDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.livestream.v1.RetentionConfig) { + return mergeFrom((com.google.cloud.video.livestream.v1.RetentionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.livestream.v1.RetentionConfig other) { + if (other == com.google.cloud.video.livestream.v1.RetentionConfig.getDefaultInstance()) + return this; + if (other.hasRetentionWindowDuration()) { + mergeRetentionWindowDuration(other.getRetentionWindowDuration()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getRetentionWindowDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Duration retentionWindowDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + retentionWindowDurationBuilder_; + /** + * + * + *
                  +     * The minimum duration for which the output files from the channel will
                  +     * remain in the output bucket. After this duration, output files are
                  +     * deleted asynchronously.
                  +     *
                  +     * When the channel is deleted, all output files are deleted from the output
                  +     * bucket asynchronously.
                  +     *
                  +     * If omitted or set to zero, output files will remain in the output bucket
                  +     * based on
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +     * which defaults to 60s.
                  +     *
                  +     * If both retention_window_duration and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * are set, retention_window_duration is used and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * is ignored.
                  +     * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + * + * @return Whether the retentionWindowDuration field is set. + */ + public boolean hasRetentionWindowDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                  +     * The minimum duration for which the output files from the channel will
                  +     * remain in the output bucket. After this duration, output files are
                  +     * deleted asynchronously.
                  +     *
                  +     * When the channel is deleted, all output files are deleted from the output
                  +     * bucket asynchronously.
                  +     *
                  +     * If omitted or set to zero, output files will remain in the output bucket
                  +     * based on
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +     * which defaults to 60s.
                  +     *
                  +     * If both retention_window_duration and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * are set, retention_window_duration is used and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * is ignored.
                  +     * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + * + * @return The retentionWindowDuration. + */ + public com.google.protobuf.Duration getRetentionWindowDuration() { + if (retentionWindowDurationBuilder_ == null) { + return retentionWindowDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindowDuration_; + } else { + return retentionWindowDurationBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * The minimum duration for which the output files from the channel will
                  +     * remain in the output bucket. After this duration, output files are
                  +     * deleted asynchronously.
                  +     *
                  +     * When the channel is deleted, all output files are deleted from the output
                  +     * bucket asynchronously.
                  +     *
                  +     * If omitted or set to zero, output files will remain in the output bucket
                  +     * based on
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +     * which defaults to 60s.
                  +     *
                  +     * If both retention_window_duration and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * are set, retention_window_duration is used and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * is ignored.
                  +     * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + */ + public Builder setRetentionWindowDuration(com.google.protobuf.Duration value) { + if (retentionWindowDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retentionWindowDuration_ = value; + } else { + retentionWindowDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * The minimum duration for which the output files from the channel will
                  +     * remain in the output bucket. After this duration, output files are
                  +     * deleted asynchronously.
                  +     *
                  +     * When the channel is deleted, all output files are deleted from the output
                  +     * bucket asynchronously.
                  +     *
                  +     * If omitted or set to zero, output files will remain in the output bucket
                  +     * based on
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +     * which defaults to 60s.
                  +     *
                  +     * If both retention_window_duration and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * are set, retention_window_duration is used and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * is ignored.
                  +     * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + */ + public Builder setRetentionWindowDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (retentionWindowDurationBuilder_ == null) { + retentionWindowDuration_ = builderForValue.build(); + } else { + retentionWindowDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * The minimum duration for which the output files from the channel will
                  +     * remain in the output bucket. After this duration, output files are
                  +     * deleted asynchronously.
                  +     *
                  +     * When the channel is deleted, all output files are deleted from the output
                  +     * bucket asynchronously.
                  +     *
                  +     * If omitted or set to zero, output files will remain in the output bucket
                  +     * based on
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +     * which defaults to 60s.
                  +     *
                  +     * If both retention_window_duration and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * are set, retention_window_duration is used and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * is ignored.
                  +     * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + */ + public Builder mergeRetentionWindowDuration(com.google.protobuf.Duration value) { + if (retentionWindowDurationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && retentionWindowDuration_ != null + && retentionWindowDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getRetentionWindowDurationBuilder().mergeFrom(value); + } else { + retentionWindowDuration_ = value; + } + } else { + retentionWindowDurationBuilder_.mergeFrom(value); + } + if (retentionWindowDuration_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * The minimum duration for which the output files from the channel will
                  +     * remain in the output bucket. After this duration, output files are
                  +     * deleted asynchronously.
                  +     *
                  +     * When the channel is deleted, all output files are deleted from the output
                  +     * bucket asynchronously.
                  +     *
                  +     * If omitted or set to zero, output files will remain in the output bucket
                  +     * based on
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +     * which defaults to 60s.
                  +     *
                  +     * If both retention_window_duration and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * are set, retention_window_duration is used and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * is ignored.
                  +     * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + */ + public Builder clearRetentionWindowDuration() { + bitField0_ = (bitField0_ & ~0x00000001); + retentionWindowDuration_ = null; + if (retentionWindowDurationBuilder_ != null) { + retentionWindowDurationBuilder_.dispose(); + retentionWindowDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * The minimum duration for which the output files from the channel will
                  +     * remain in the output bucket. After this duration, output files are
                  +     * deleted asynchronously.
                  +     *
                  +     * When the channel is deleted, all output files are deleted from the output
                  +     * bucket asynchronously.
                  +     *
                  +     * If omitted or set to zero, output files will remain in the output bucket
                  +     * based on
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +     * which defaults to 60s.
                  +     *
                  +     * If both retention_window_duration and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * are set, retention_window_duration is used and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * is ignored.
                  +     * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + */ + public com.google.protobuf.Duration.Builder getRetentionWindowDurationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRetentionWindowDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * The minimum duration for which the output files from the channel will
                  +     * remain in the output bucket. After this duration, output files are
                  +     * deleted asynchronously.
                  +     *
                  +     * When the channel is deleted, all output files are deleted from the output
                  +     * bucket asynchronously.
                  +     *
                  +     * If omitted or set to zero, output files will remain in the output bucket
                  +     * based on
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +     * which defaults to 60s.
                  +     *
                  +     * If both retention_window_duration and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * are set, retention_window_duration is used and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * is ignored.
                  +     * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + */ + public com.google.protobuf.DurationOrBuilder getRetentionWindowDurationOrBuilder() { + if (retentionWindowDurationBuilder_ != null) { + return retentionWindowDurationBuilder_.getMessageOrBuilder(); + } else { + return retentionWindowDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindowDuration_; + } + } + /** + * + * + *
                  +     * The minimum duration for which the output files from the channel will
                  +     * remain in the output bucket. After this duration, output files are
                  +     * deleted asynchronously.
                  +     *
                  +     * When the channel is deleted, all output files are deleted from the output
                  +     * bucket asynchronously.
                  +     *
                  +     * If omitted or set to zero, output files will remain in the output bucket
                  +     * based on
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +     * which defaults to 60s.
                  +     *
                  +     * If both retention_window_duration and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * are set, retention_window_duration is used and
                  +     * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +     * is ignored.
                  +     * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getRetentionWindowDurationFieldBuilder() { + if (retentionWindowDurationBuilder_ == null) { + retentionWindowDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRetentionWindowDuration(), getParentForChildren(), isClean()); + retentionWindowDuration_ = null; + } + return retentionWindowDurationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.RetentionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.RetentionConfig) + private static final com.google.cloud.video.livestream.v1.RetentionConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.RetentionConfig(); + } + + public static com.google.cloud.video.livestream.v1.RetentionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetentionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.RetentionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/RetentionConfigOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/RetentionConfigOrBuilder.java new file mode 100644 index 000000000000..64ceb7b7623c --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/RetentionConfigOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +public interface RetentionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.RetentionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * The minimum duration for which the output files from the channel will
                  +   * remain in the output bucket. After this duration, output files are
                  +   * deleted asynchronously.
                  +   *
                  +   * When the channel is deleted, all output files are deleted from the output
                  +   * bucket asynchronously.
                  +   *
                  +   * If omitted or set to zero, output files will remain in the output bucket
                  +   * based on
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +   * which defaults to 60s.
                  +   *
                  +   * If both retention_window_duration and
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +   * are set, retention_window_duration is used and
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +   * is ignored.
                  +   * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + * + * @return Whether the retentionWindowDuration field is set. + */ + boolean hasRetentionWindowDuration(); + /** + * + * + *
                  +   * The minimum duration for which the output files from the channel will
                  +   * remain in the output bucket. After this duration, output files are
                  +   * deleted asynchronously.
                  +   *
                  +   * When the channel is deleted, all output files are deleted from the output
                  +   * bucket asynchronously.
                  +   *
                  +   * If omitted or set to zero, output files will remain in the output bucket
                  +   * based on
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +   * which defaults to 60s.
                  +   *
                  +   * If both retention_window_duration and
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +   * are set, retention_window_duration is used and
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +   * is ignored.
                  +   * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + * + * @return The retentionWindowDuration. + */ + com.google.protobuf.Duration getRetentionWindowDuration(); + /** + * + * + *
                  +   * The minimum duration for which the output files from the channel will
                  +   * remain in the output bucket. After this duration, output files are
                  +   * deleted asynchronously.
                  +   *
                  +   * When the channel is deleted, all output files are deleted from the output
                  +   * bucket asynchronously.
                  +   *
                  +   * If omitted or set to zero, output files will remain in the output bucket
                  +   * based on
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration],
                  +   * which defaults to 60s.
                  +   *
                  +   * If both retention_window_duration and
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +   * are set, retention_window_duration is used and
                  +   * [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration]
                  +   * is ignored.
                  +   * 
                  + * + * .google.protobuf.Duration retention_window_duration = 1; + */ + com.google.protobuf.DurationOrBuilder getRetentionWindowDurationOrBuilder(); +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ServiceProto.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ServiceProto.java index 185e0b5ce1db..c9e4ea5e748a 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ServiceProto.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ServiceProto.java @@ -128,6 +128,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_video_livestream_v1_ChannelOperationResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_video_livestream_v1_ChannelOperationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_livestream_v1_ListClipsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_livestream_v1_ListClipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_livestream_v1_ListClipsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_livestream_v1_ListClipsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_livestream_v1_GetClipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_livestream_v1_GetClipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_livestream_v1_CreateClipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_livestream_v1_CreateClipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_livestream_v1_DeleteClipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_livestream_v1_DeleteClipRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_video_livestream_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -153,222 +173,259 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ce.proto\022 google.cloud.video.livestream." + "v1\032\034google/api/annotations.proto\032\027google" + "/api/client.proto\032\037google/api/field_beha" - + "vior.proto\032\031google/api/resource.proto\0320g" - + "oogle/cloud/video/livestream/v1/resource" - + "s.proto\032#google/longrunning/operations.p" - + "roto\032\033google/protobuf/empty.proto\032 googl" - + "e/protobuf/field_mask.proto\032\037google/prot" - + "obuf/timestamp.proto\"\265\001\n\022CreateAssetRequ" - + "est\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037livestream." - + "googleapis.com/Asset\022;\n\005asset\030\002 \001(\0132\'.go" - + "ogle.cloud.video.livestream.v1.AssetB\003\340A" - + "\002\022\025\n\010asset_id\030\003 \001(\tB\003\340A\002\022\022\n\nrequest_id\030\004" - + " \001(\t\"_\n\022DeleteAssetRequest\0225\n\004name\030\001 \001(\t" + + "vior.proto\032\033google/api/field_info.proto\032" + + "\031google/api/resource.proto\0320google/cloud" + + "/video/livestream/v1/resources.proto\032#go" + + "ogle/longrunning/operations.proto\032\033googl" + + "e/protobuf/empty.proto\032 google/protobuf/" + + "field_mask.proto\032\037google/protobuf/timest" + + "amp.proto\"\265\001\n\022CreateAssetRequest\0227\n\006pare" + + "nt\030\001 \001(\tB\'\340A\002\372A!\022\037livestream.googleapis." + + "com/Asset\022;\n\005asset\030\002 \001(\0132\'.google.cloud." + + "video.livestream.v1.AssetB\003\340A\002\022\025\n\010asset_" + + "id\030\003 \001(\tB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"_\n\022Del" + + "eteAssetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037l" + + "ivestream.googleapis.com/Asset\022\022\n\nreques" + + "t_id\030\002 \001(\t\"\225\001\n\021ListAssetsRequest\0227\n\006pare" + + "nt\030\001 \001(\tB\'\340A\002\372A!\022\037livestream.googleapis." + + "com/Asset\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001" + + "(\t\"{\n\022ListAssetsResponse\0227\n\006assets\030\001 \003(\013" + + "2\'.google.cloud.video.livestream.v1.Asse" + + "t\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" + + "e\030\003 \003(\t\"H\n\017GetAssetRequest\0225\n\004name\030\001 \001(\t" + "B\'\340A\002\372A!\n\037livestream.googleapis.com/Asse" - + "t\022\022\n\nrequest_id\030\002 \001(\t\"\225\001\n\021ListAssetsRequ" + + "t\"\277\001\n\024CreateChannelRequest\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\022!livestream.googleapis.com/Ch" + + "annel\022?\n\007channel\030\002 \001(\0132).google.cloud.vi" + + "deo.livestream.v1.ChannelB\003\340A\002\022\027\n\nchanne" + + "l_id\030\003 \001(\tB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"\231\001\n\023" + + "ListChannelsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" + + "\372A#\022!livestream.googleapis.com/Channel\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n" + + "\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\201\001\n\024List" + + "ChannelsResponse\022;\n\010channels\030\001 \003(\0132).goo" + + "gle.cloud.video.livestream.v1.Channel\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 " + + "\003(\t\"L\n\021GetChannelRequest\0227\n\004name\030\001 \001(\tB)" + + "\340A\002\372A#\n!livestream.googleapis.com/Channe" + + "l\"r\n\024DeleteChannelRequest\0227\n\004name\030\001 \001(\tB" + + ")\340A\002\372A#\n!livestream.googleapis.com/Chann" + + "el\022\022\n\nrequest_id\030\002 \001(\t\022\r\n\005force\030\003 \001(\010\"\234\001" + + "\n\024UpdateChannelRequest\022/\n\013update_mask\030\001 " + + "\001(\0132\032.google.protobuf.FieldMask\022?\n\007chann" + + "el\030\002 \001(\0132).google.cloud.video.livestream" + + ".v1.ChannelB\003\340A\002\022\022\n\nrequest_id\030\003 \001(\t\"b\n\023" + + "StartChannelRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" + + "#\n!livestream.googleapis.com/Channel\022\022\n\n" + + "request_id\030\002 \001(\t\"a\n\022StopChannelRequest\0227" + + "\n\004name\030\001 \001(\tB)\340A\002\372A#\n!livestream.googlea" + + "pis.com/Channel\022\022\n\nrequest_id\030\002 \001(\t\"\265\001\n\022" + + "CreateInputRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372" + + "A!\022\037livestream.googleapis.com/Input\022;\n\005i" + + "nput\030\002 \001(\0132\'.google.cloud.video.livestre" + + "am.v1.InputB\003\340A\002\022\025\n\010input_id\030\003 \001(\tB\003\340A\002\022" + + "\022\n\nrequest_id\030\004 \001(\t\"\225\001\n\021ListInputsReques" + + "t\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037livestream.go" + + "ogleapis.com/Input\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + + "\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010ord" + + "er_by\030\005 \001(\t\"{\n\022ListInputsResponse\0227\n\006inp" + + "uts\030\001 \003(\0132\'.google.cloud.video.livestrea" + + "m.v1.Input\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + + "nreachable\030\003 \003(\t\"H\n\017GetInputRequest\0225\n\004n" + + "ame\030\001 \001(\tB\'\340A\002\372A!\n\037livestream.googleapis" + + ".com/Input\"_\n\022DeleteInputRequest\0225\n\004name" + + "\030\001 \001(\tB\'\340A\002\372A!\n\037livestream.googleapis.co" + + "m/Input\022\022\n\nrequest_id\030\002 \001(\t\"\226\001\n\022UpdateIn" + + "putRequest\022/\n\013update_mask\030\001 \001(\0132\032.google" + + ".protobuf.FieldMask\022;\n\005input\030\002 \001(\0132\'.goo" + + "gle.cloud.video.livestream.v1.InputB\003\340A\002" + + "\022\022\n\nrequest_id\030\003 \001(\t\"\265\001\n\022CreateEventRequ" + "est\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037livestream." - + "googleapis.com/Asset\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010o" - + "rder_by\030\005 \001(\t\"{\n\022ListAssetsResponse\0227\n\006a" - + "ssets\030\001 \003(\0132\'.google.cloud.video.livestr" - + "eam.v1.Asset\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"H\n\017GetAssetRequest\0225\n" - + "\004name\030\001 \001(\tB\'\340A\002\372A!\n\037livestream.googleap" - + "is.com/Asset\"\277\001\n\024CreateChannelRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A\002\372A#\022!livestream.google" - + "apis.com/Channel\022?\n\007channel\030\002 \001(\0132).goog" - + "le.cloud.video.livestream.v1.ChannelB\003\340A" - + "\002\022\027\n\nchannel_id\030\003 \001(\tB\003\340A\002\022\022\n\nrequest_id" - + "\030\004 \001(\t\"\231\001\n\023ListChannelsRequest\0229\n\006parent" - + "\030\001 \001(\tB)\340A\002\372A#\022!livestream.googleapis.co" - + "m/Channel\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001" - + "(\t\"\201\001\n\024ListChannelsResponse\022;\n\010channels\030" - + "\001 \003(\0132).google.cloud.video.livestream.v1" - + ".Channel\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unr" - + "eachable\030\003 \003(\t\"L\n\021GetChannelRequest\0227\n\004n" - + "ame\030\001 \001(\tB)\340A\002\372A#\n!livestream.googleapis" - + ".com/Channel\"r\n\024DeleteChannelRequest\0227\n\004" - + "name\030\001 \001(\tB)\340A\002\372A#\n!livestream.googleapi" - + "s.com/Channel\022\022\n\nrequest_id\030\002 \001(\t\022\r\n\005for" - + "ce\030\003 \001(\010\"\234\001\n\024UpdateChannelRequest\022/\n\013upd" - + "ate_mask\030\001 \001(\0132\032.google.protobuf.FieldMa" - + "sk\022?\n\007channel\030\002 \001(\0132).google.cloud.video" - + ".livestream.v1.ChannelB\003\340A\002\022\022\n\nrequest_i" - + "d\030\003 \001(\t\"b\n\023StartChannelRequest\0227\n\004name\030\001" - + " \001(\tB)\340A\002\372A#\n!livestream.googleapis.com/" - + "Channel\022\022\n\nrequest_id\030\002 \001(\t\"a\n\022StopChann" - + "elRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!livestr" - + "eam.googleapis.com/Channel\022\022\n\nrequest_id" - + "\030\002 \001(\t\"\265\001\n\022CreateInputRequest\0227\n\006parent\030" - + "\001 \001(\tB\'\340A\002\372A!\022\037livestream.googleapis.com" - + "/Input\022;\n\005input\030\002 \001(\0132\'.google.cloud.vid" - + "eo.livestream.v1.InputB\003\340A\002\022\025\n\010input_id\030" - + "\003 \001(\tB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"\225\001\n\021ListI" - + "nputsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037li" - + "vestream.googleapis.com/Input\022\021\n\tpage_si" - + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004" - + " \001(\t\022\020\n\010order_by\030\005 \001(\t\"{\n\022ListInputsResp" - + "onse\0227\n\006inputs\030\001 \003(\0132\'.google.cloud.vide" - + "o.livestream.v1.Input\022\027\n\017next_page_token" - + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"H\n\017GetInputR" - + "equest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037livestream" - + ".googleapis.com/Input\"_\n\022DeleteInputRequ" - + "est\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037livestream.go" - + "ogleapis.com/Input\022\022\n\nrequest_id\030\002 \001(\t\"\226" - + "\001\n\022UpdateInputRequest\022/\n\013update_mask\030\001 \001" - + "(\0132\032.google.protobuf.FieldMask\022;\n\005input\030" - + "\002 \001(\0132\'.google.cloud.video.livestream.v1" - + ".InputB\003\340A\002\022\022\n\nrequest_id\030\003 \001(\t\"\265\001\n\022Crea" - + "teEventRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037" - + "livestream.googleapis.com/Event\022;\n\005event" - + "\030\002 \001(\0132\'.google.cloud.video.livestream.v" - + "1.EventB\003\340A\002\022\025\n\010event_id\030\003 \001(\tB\003\340A\002\022\022\n\nr" - + "equest_id\030\004 \001(\t\"\225\001\n\021ListEventsRequest\0227\n" - + "\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037livestream.google" - + "apis.com/Event\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" - + "e_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_b" - + "y\030\005 \001(\t\"{\n\022ListEventsResponse\0227\n\006events\030" - + "\001 \003(\0132\'.google.cloud.video.livestream.v1" - + ".Event\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" - + "chable\030\003 \003(\t\"H\n\017GetEventRequest\0225\n\004name\030" - + "\001 \001(\tB\'\340A\002\372A!\n\037livestream.googleapis.com" - + "/Event\"_\n\022DeleteEventRequest\0225\n\004name\030\001 \001" - + "(\tB\'\340A\002\372A!\n\037livestream.googleapis.com/Ev" - + "ent\022\022\n\nrequest_id\030\002 \001(\t\"\032\n\030ChannelOperat" - + "ionResponse\"\343\001\n\021OperationMetadata\0224\n\013cre" - + "ate_time\030\001 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022" - + "\021\n\004verb\030\004 \001(\tB\003\340A\003\022#\n\026requested_cancella" - + "tion\030\005 \001(\010B\003\340A\003\022\030\n\013api_version\030\006 \001(\tB\003\340A" - + "\003\"F\n\016GetPoolRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A" - + " \n\036livestream.googleapis.com/Pool\"\223\001\n\021Up" - + "datePoolRequest\022/\n\013update_mask\030\001 \001(\0132\032.g" - + "oogle.protobuf.FieldMask\0229\n\004pool\030\002 \001(\0132&" - + ".google.cloud.video.livestream.v1.PoolB\003" - + "\340A\002\022\022\n\nrequest_id\030\003 \001(\t2\302\"\n\021LivestreamSe" - + "rvice\022\340\001\n\rCreateChannel\0226.google.cloud.v" - + "ideo.livestream.v1.CreateChannelRequest\032" - + "\035.google.longrunning.Operation\"x\312A\034\n\007Cha" - + "nnel\022\021OperationMetadata\332A\031parent,channel" - + ",channel_id\202\323\344\223\0027\",/v1/{parent=projects/" - + "*/locations/*}/channels:\007channel\022\274\001\n\014Lis" - + "tChannels\0225.google.cloud.video.livestrea" - + "m.v1.ListChannelsRequest\0326.google.cloud." - + "video.livestream.v1.ListChannelsResponse" - + "\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/" - + "*/locations/*}/channels\022\251\001\n\nGetChannel\0223" - + ".google.cloud.video.livestream.v1.GetCha" - + "nnelRequest\032).google.cloud.video.livestr" - + "eam.v1.Channel\";\332A\004name\202\323\344\223\002.\022,/v1/{name" - + "=projects/*/locations/*/channels/*}\022\320\001\n\r" - + "DeleteChannel\0226.google.cloud.video.lives" - + "tream.v1.DeleteChannelRequest\032\035.google.l" - + "ongrunning.Operation\"h\312A*\n\025google.protob" - + "uf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002." - + "*,/v1/{name=projects/*/locations/*/chann" - + "els/*}\022\342\001\n\rUpdateChannel\0226.google.cloud." - + "video.livestream.v1.UpdateChannelRequest" - + "\032\035.google.longrunning.Operation\"z\312A\034\n\007Ch" - + "annel\022\021OperationMetadata\332A\023channel,updat" - + "e_mask\202\323\344\223\002?24/v1/{channel.name=projects" - + "/*/locations/*/channels/*}:\007channel\022\332\001\n\014" - + "StartChannel\0225.google.cloud.video.livest" - + "ream.v1.StartChannelRequest\032\035.google.lon" - + "grunning.Operation\"t\312A-\n\030ChannelOperatio" - + "nResponse\022\021OperationMetadata\332A\004name\202\323\344\223\002" - + "7\"2/v1/{name=projects/*/locations/*/chan" - + "nels/*}:start:\001*\022\327\001\n\013StopChannel\0224.googl" - + "e.cloud.video.livestream.v1.StopChannelR" - + "equest\032\035.google.longrunning.Operation\"s\312" - + "A-\n\030ChannelOperationResponse\022\021OperationM" - + "etadata\332A\004name\202\323\344\223\0026\"1/v1/{name=projects" - + "/*/locations/*/channels/*}:stop:\001*\022\322\001\n\013C" - + "reateInput\0224.google.cloud.video.livestre" - + "am.v1.CreateInputRequest\032\035.google.longru" - + "nning.Operation\"n\312A\032\n\005Input\022\021OperationMe" - + "tadata\332A\025parent,input,input_id\202\323\344\223\0023\"*/v" - + "1/{parent=projects/*/locations/*}/inputs" - + ":\005input\022\264\001\n\nListInputs\0223.google.cloud.vi" - + "deo.livestream.v1.ListInputsRequest\0324.go" - + "ogle.cloud.video.livestream.v1.ListInput" - + "sResponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=" - + "projects/*/locations/*}/inputs\022\241\001\n\010GetIn" - + "put\0221.google.cloud.video.livestream.v1.G" - + "etInputRequest\032\'.google.cloud.video.live" - + "stream.v1.Input\"9\332A\004name\202\323\344\223\002,\022*/v1/{nam" - + "e=projects/*/locations/*/inputs/*}\022\312\001\n\013D" - + "eleteInput\0224.google.cloud.video.livestre" - + "am.v1.DeleteInputRequest\032\035.google.longru" - + "nning.Operation\"f\312A*\n\025google.protobuf.Em" - + "pty\022\021OperationMetadata\332A\004name\202\323\344\223\002,**/v1" - + "/{name=projects/*/locations/*/inputs/*}\022" - + "\324\001\n\013UpdateInput\0224.google.cloud.video.liv" - + "estream.v1.UpdateInputRequest\032\035.google.l" - + "ongrunning.Operation\"p\312A\032\n\005Input\022\021Operat" - + "ionMetadata\332A\021input,update_mask\202\323\344\223\002920/" - + "v1/{input.name=projects/*/locations/*/in" - + "puts/*}:\005input\022\312\001\n\013CreateEvent\0224.google." - + "cloud.video.livestream.v1.CreateEventReq" - + "uest\032\'.google.cloud.video.livestream.v1." - + "Event\"\\\332A\025parent,event,event_id\202\323\344\223\002>\"5/" - + "v1/{parent=projects/*/locations/*/channe" - + "ls/*}/events:\005event\022\277\001\n\nListEvents\0223.goo" - + "gle.cloud.video.livestream.v1.ListEvents" - + "Request\0324.google.cloud.video.livestream." - + "v1.ListEventsResponse\"F\332A\006parent\202\323\344\223\0027\0225" - + "/v1/{parent=projects/*/locations/*/chann" - + "els/*}/events\022\254\001\n\010GetEvent\0221.google.clou" - + "d.video.livestream.v1.GetEventRequest\032\'." - + "google.cloud.video.livestream.v1.Event\"D" - + "\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/loca" - + "tions/*/channels/*/events/*}\022\241\001\n\013DeleteE" - + "vent\0224.google.cloud.video.livestream.v1." - + "DeleteEventRequest\032\026.google.protobuf.Emp" - + "ty\"D\332A\004name\202\323\344\223\0027*5/v1/{name=projects/*/" - + "locations/*/channels/*/events/*}\022\322\001\n\013Cre" - + "ateAsset\0224.google.cloud.video.livestream" - + ".v1.CreateAssetRequest\032\035.google.longrunn" - + "ing.Operation\"n\312A\032\n\005Asset\022\021OperationMeta" - + "data\332A\025parent,asset,asset_id\202\323\344\223\0023\"*/v1/" - + "{parent=projects/*/locations/*}/assets:\005" - + "asset\022\312\001\n\013DeleteAsset\0224.google.cloud.vid" - + "eo.livestream.v1.DeleteAssetRequest\032\035.go" - + "ogle.longrunning.Operation\"f\312A*\n\025google." - + "protobuf.Empty\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\002,**/v1/{name=projects/*/locations/*" - + "/assets/*}\022\241\001\n\010GetAsset\0221.google.cloud.v" - + "ideo.livestream.v1.GetAssetRequest\032\'.goo" - + "gle.cloud.video.livestream.v1.Asset\"9\332A\004" - + "name\202\323\344\223\002,\022*/v1/{name=projects/*/locatio" - + "ns/*/assets/*}\022\264\001\n\nListAssets\0223.google.c" - + "loud.video.livestream.v1.ListAssetsReque" - + "st\0324.google.cloud.video.livestream.v1.Li" - + "stAssetsResponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{" - + "parent=projects/*/locations/*}/assets\022\235\001" - + "\n\007GetPool\0220.google.cloud.video.livestrea" - + "m.v1.GetPoolRequest\032&.google.cloud.video" - + ".livestream.v1.Pool\"8\332A\004name\202\323\344\223\002+\022)/v1/" - + "{name=projects/*/locations/*/pools/*}\022\315\001" - + "\n\nUpdatePool\0223.google.cloud.video.livest" - + "ream.v1.UpdatePoolRequest\032\035.google.longr" - + "unning.Operation\"k\312A\031\n\004Pool\022\021OperationMe" - + "tadata\332A\020pool,update_mask\202\323\344\223\00262./v1/{po" - + "ol.name=projects/*/locations/*/pools/*}:" - + "\004pool\032M\312A\031livestream.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "formB\241\003\n$com.google.cloud.video.livestre" - + "am.v1B\014ServiceProtoP\001ZDcloud.google.com/" - + "go/video/livestream/apiv1/livestreampb;l" - + "ivestreampb\252\002 Google.Cloud.Video.LiveStr" - + "eam.V1\312\002 Google\\Cloud\\Video\\LiveStream\\V" - + "1\352\002$Google::Cloud::Video::LiveStream::V1" - + "\352Ad\n*secretmanager.googleapis.com/Secret" - + "Version\0226projects/{project}/secrets/{sec" - + "ret}/versions/{version}\352AN\n\036compute.goog" - + "leapis.com/Network\022,projects/{project}/g" - + "lobal/networks/{network}b\006proto3" + + "googleapis.com/Event\022;\n\005event\030\002 \001(\0132\'.go" + + "ogle.cloud.video.livestream.v1.EventB\003\340A" + + "\002\022\025\n\010event_id\030\003 \001(\tB\003\340A\002\022\022\n\nrequest_id\030\004" + + " \001(\t\"\225\001\n\021ListEventsRequest\0227\n\006parent\030\001 \001" + + "(\tB\'\340A\002\372A!\022\037livestream.googleapis.com/Ev" + + "ent\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"{\n\022" + + "ListEventsResponse\0227\n\006events\030\001 \003(\0132\'.goo" + + "gle.cloud.video.livestream.v1.Event\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" + + "\t\"H\n\017GetEventRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372" + + "A!\n\037livestream.googleapis.com/Event\"_\n\022D" + + "eleteEventRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037livestream.googleapis.com/Event\022\022\n\nrequ" + + "est_id\030\002 \001(\t\"\032\n\030ChannelOperationResponse" + + "\"\223\001\n\020ListClipsRequest\0226\n\006parent\030\001 \001(\tB&\340" + + "A\002\372A \022\036livestream.googleapis.com/Clip\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006" + + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\021ListCl" + + "ipsResponse\0225\n\005clips\030\001 \003(\0132&.google.clou" + + "d.video.livestream.v1.Clip\022\027\n\017next_page_" + + "token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"F\n\016GetC" + + "lipRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036livest" + + "ream.googleapis.com/Clip\"\265\001\n\021CreateClipR" + + "equest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036livestre" + + "am.googleapis.com/Clip\022\024\n\007clip_id\030\002 \001(\tB" + + "\003\340A\002\0229\n\004clip\030\003 \001(\0132&.google.cloud.video." + + "livestream.v1.ClipB\003\340A\002\022\027\n\nrequest_id\030\004 " + + "\001(\tB\003\340A\001\"j\n\021DeleteClipRequest\0224\n\004name\030\001 " + + "\001(\tB&\340A\002\372A \n\036livestream.googleapis.com/C" + + "lip\022\037\n\nrequest_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\343\001\n" + + "\021OperationMetadata\0224\n\013create_time\030\001 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end_" + + "time\030\002 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003" + + "\340A\003\022#\n\026requested_cancellation\030\005 \001(\010B\003\340A\003" + + "\022\030\n\013api_version\030\006 \001(\tB\003\340A\003\"F\n\016GetPoolReq" + + "uest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036livestream.g" + + "oogleapis.com/Pool\"\223\001\n\021UpdatePoolRequest" + + "\022/\n\013update_mask\030\001 \001(\0132\032.google.protobuf." + + "FieldMask\0229\n\004pool\030\002 \001(\0132&.google.cloud.v" + + "ideo.livestream.v1.PoolB\003\340A\002\022\022\n\nrequest_" + + "id\030\003 \001(\t2\331(\n\021LivestreamService\022\340\001\n\rCreat" + + "eChannel\0226.google.cloud.video.livestream" + + ".v1.CreateChannelRequest\032\035.google.longru" + + "nning.Operation\"x\312A\034\n\007Channel\022\021Operation" + + "Metadata\332A\031parent,channel,channel_id\202\323\344\223" + + "\0027\",/v1/{parent=projects/*/locations/*}/" + + "channels:\007channel\022\274\001\n\014ListChannels\0225.goo" + + "gle.cloud.video.livestream.v1.ListChanne" + + "lsRequest\0326.google.cloud.video.livestrea" + + "m.v1.ListChannelsResponse\"=\332A\006parent\202\323\344\223" + + "\002.\022,/v1/{parent=projects/*/locations/*}/" + + "channels\022\251\001\n\nGetChannel\0223.google.cloud.v" + + "ideo.livestream.v1.GetChannelRequest\032).g" + + "oogle.cloud.video.livestream.v1.Channel\"" + + ";\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/loc" + + "ations/*/channels/*}\022\320\001\n\rDeleteChannel\0226" + + ".google.cloud.video.livestream.v1.Delete" + + "ChannelRequest\032\035.google.longrunning.Oper" + + "ation\"h\312A*\n\025google.protobuf.Empty\022\021Opera" + + "tionMetadata\332A\004name\202\323\344\223\002.*,/v1/{name=pro" + + "jects/*/locations/*/channels/*}\022\342\001\n\rUpda" + + "teChannel\0226.google.cloud.video.livestrea" + + "m.v1.UpdateChannelRequest\032\035.google.longr" + + "unning.Operation\"z\312A\034\n\007Channel\022\021Operatio" + + "nMetadata\332A\023channel,update_mask\202\323\344\223\002?24/" + + "v1/{channel.name=projects/*/locations/*/" + + "channels/*}:\007channel\022\332\001\n\014StartChannel\0225." + + "google.cloud.video.livestream.v1.StartCh" + + "annelRequest\032\035.google.longrunning.Operat" + + "ion\"t\312A-\n\030ChannelOperationResponse\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\0027\"2/v1/{name=pr" + + "ojects/*/locations/*/channels/*}:start:\001" + + "*\022\327\001\n\013StopChannel\0224.google.cloud.video.l" + + "ivestream.v1.StopChannelRequest\032\035.google" + + ".longrunning.Operation\"s\312A-\n\030ChannelOper" + + "ationResponse\022\021OperationMetadata\332A\004name\202" + + "\323\344\223\0026\"1/v1/{name=projects/*/locations/*/" + + "channels/*}:stop:\001*\022\322\001\n\013CreateInput\0224.go" + + "ogle.cloud.video.livestream.v1.CreateInp" + + "utRequest\032\035.google.longrunning.Operation" + + "\"n\312A\032\n\005Input\022\021OperationMetadata\332A\025parent" + + ",input,input_id\202\323\344\223\0023\"*/v1/{parent=proje" + + "cts/*/locations/*}/inputs:\005input\022\264\001\n\nLis" + + "tInputs\0223.google.cloud.video.livestream." + + "v1.ListInputsRequest\0324.google.cloud.vide" + + "o.livestream.v1.ListInputsResponse\";\332A\006p" + + "arent\202\323\344\223\002,\022*/v1/{parent=projects/*/loca" + + "tions/*}/inputs\022\241\001\n\010GetInput\0221.google.cl" + + "oud.video.livestream.v1.GetInputRequest\032" + + "\'.google.cloud.video.livestream.v1.Input" + + "\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=projects/*/lo" + + "cations/*/inputs/*}\022\312\001\n\013DeleteInput\0224.go" + + "ogle.cloud.video.livestream.v1.DeleteInp" + + "utRequest\032\035.google.longrunning.Operation" + + "\"f\312A*\n\025google.protobuf.Empty\022\021OperationM" + + "etadata\332A\004name\202\323\344\223\002,**/v1/{name=projects" + + "/*/locations/*/inputs/*}\022\324\001\n\013UpdateInput" + + "\0224.google.cloud.video.livestream.v1.Upda" + + "teInputRequest\032\035.google.longrunning.Oper" + + "ation\"p\312A\032\n\005Input\022\021OperationMetadata\332A\021i" + + "nput,update_mask\202\323\344\223\002920/v1/{input.name=" + + "projects/*/locations/*/inputs/*}:\005input\022" + + "\312\001\n\013CreateEvent\0224.google.cloud.video.liv" + + "estream.v1.CreateEventRequest\032\'.google.c" + + "loud.video.livestream.v1.Event\"\\\332A\025paren" + + "t,event,event_id\202\323\344\223\002>\"5/v1/{parent=proj" + + "ects/*/locations/*/channels/*}/events:\005e" + + "vent\022\277\001\n\nListEvents\0223.google.cloud.video" + + ".livestream.v1.ListEventsRequest\0324.googl" + + "e.cloud.video.livestream.v1.ListEventsRe" + + "sponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=pro" + + "jects/*/locations/*/channels/*}/events\022\254" + + "\001\n\010GetEvent\0221.google.cloud.video.livestr" + + "eam.v1.GetEventRequest\032\'.google.cloud.vi" + + "deo.livestream.v1.Event\"D\332A\004name\202\323\344\223\0027\0225" + + "/v1/{name=projects/*/locations/*/channel" + + "s/*/events/*}\022\241\001\n\013DeleteEvent\0224.google.c" + + "loud.video.livestream.v1.DeleteEventRequ" + + "est\032\026.google.protobuf.Empty\"D\332A\004name\202\323\344\223" + + "\0027*5/v1/{name=projects/*/locations/*/cha" + + "nnels/*/events/*}\022\273\001\n\tListClips\0222.google" + + ".cloud.video.livestream.v1.ListClipsRequ" + + "est\0323.google.cloud.video.livestream.v1.L" + + "istClipsResponse\"E\332A\006parent\202\323\344\223\0026\0224/v1/{" + + "parent=projects/*/locations/*/channels/*" + + "}/clips\022\250\001\n\007GetClip\0220.google.cloud.video" + + ".livestream.v1.GetClipRequest\032&.google.c" + + "loud.video.livestream.v1.Clip\"C\332A\004name\202\323" + + "\344\223\0026\0224/v1/{name=projects/*/locations/*/c" + + "hannels/*/clips/*}\022\326\001\n\nCreateClip\0223.goog" + + "le.cloud.video.livestream.v1.CreateClipR" + + "equest\032\035.google.longrunning.Operation\"t\312" + + "A\031\n\004Clip\022\021OperationMetadata\332A\023parent,cli" + + "p,clip_id\202\323\344\223\002<\"4/v1/{parent=projects/*/" + + "locations/*/channels/*}/clips:\004clip\022\322\001\n\n" + + "DeleteClip\0223.google.cloud.video.livestre" + + "am.v1.DeleteClipRequest\032\035.google.longrun" + + "ning.Operation\"p\312A*\n\025google.protobuf.Emp" + + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\0026*4/v1/" + + "{name=projects/*/locations/*/channels/*/" + + "clips/*}\022\322\001\n\013CreateAsset\0224.google.cloud." + + "video.livestream.v1.CreateAssetRequest\032\035" + + ".google.longrunning.Operation\"n\312A\032\n\005Asse" + + "t\022\021OperationMetadata\332A\025parent,asset,asse" + + "t_id\202\323\344\223\0023\"*/v1/{parent=projects/*/locat" + + "ions/*}/assets:\005asset\022\312\001\n\013DeleteAsset\0224." + + "google.cloud.video.livestream.v1.DeleteA" + + "ssetRequest\032\035.google.longrunning.Operati" + + "on\"f\312A*\n\025google.protobuf.Empty\022\021Operatio" + + "nMetadata\332A\004name\202\323\344\223\002,**/v1/{name=projec" + + "ts/*/locations/*/assets/*}\022\241\001\n\010GetAsset\022" + + "1.google.cloud.video.livestream.v1.GetAs" + + "setRequest\032\'.google.cloud.video.livestre" + + "am.v1.Asset\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=pr" + + "ojects/*/locations/*/assets/*}\022\264\001\n\nListA" + + "ssets\0223.google.cloud.video.livestream.v1" + + ".ListAssetsRequest\0324.google.cloud.video." + + "livestream.v1.ListAssetsResponse\";\332A\006par" + + "ent\202\323\344\223\002,\022*/v1/{parent=projects/*/locati" + + "ons/*}/assets\022\235\001\n\007GetPool\0220.google.cloud" + + ".video.livestream.v1.GetPoolRequest\032&.go" + + "ogle.cloud.video.livestream.v1.Pool\"8\332A\004" + + "name\202\323\344\223\002+\022)/v1/{name=projects/*/locatio" + + "ns/*/pools/*}\022\315\001\n\nUpdatePool\0223.google.cl" + + "oud.video.livestream.v1.UpdatePoolReques" + + "t\032\035.google.longrunning.Operation\"k\312A\031\n\004P" + + "ool\022\021OperationMetadata\332A\020pool,update_mas" + + "k\202\323\344\223\00262./v1/{pool.name=projects/*/locat" + + "ions/*/pools/*}:\004pool\032M\312A\031livestream.goo" + + "gleapis.com\322A.https://www.googleapis.com" + + "/auth/cloud-platformB\241\003\n$com.google.clou" + + "d.video.livestream.v1B\014ServiceProtoP\001ZDc" + + "loud.google.com/go/video/livestream/apiv" + + "1/livestreampb;livestreampb\252\002 Google.Clo" + + "ud.Video.LiveStream.V1\312\002 Google\\Cloud\\Vi" + + "deo\\LiveStream\\V1\352\002$Google::Cloud::Video" + + "::LiveStream::V1\352Ad\n*secretmanager.googl" + + "eapis.com/SecretVersion\0226projects/{proje" + + "ct}/secrets/{secret}/versions/{version}\352" + + "AN\n\036compute.googleapis.com/Network\022,proj" + + "ects/{project}/global/networks/{network}" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -377,6 +434,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.video.livestream.v1.ResourcesProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), @@ -582,8 +640,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_ChannelOperationResponse_descriptor, new java.lang.String[] {}); - internal_static_google_cloud_video_livestream_v1_OperationMetadata_descriptor = + internal_static_google_cloud_video_livestream_v1_ListClipsRequest_descriptor = getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_video_livestream_v1_ListClipsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_livestream_v1_ListClipsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_video_livestream_v1_ListClipsResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_video_livestream_v1_ListClipsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_livestream_v1_ListClipsResponse_descriptor, + new java.lang.String[] { + "Clips", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_video_livestream_v1_GetClipRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_video_livestream_v1_GetClipRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_livestream_v1_GetClipRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_video_livestream_v1_CreateClipRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_video_livestream_v1_CreateClipRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_livestream_v1_CreateClipRequest_descriptor, + new java.lang.String[] { + "Parent", "ClipId", "Clip", "RequestId", + }); + internal_static_google_cloud_video_livestream_v1_DeleteClipRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_video_livestream_v1_DeleteClipRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_livestream_v1_DeleteClipRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_video_livestream_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_video_livestream_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_OperationMetadata_descriptor, @@ -591,7 +689,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Target", "Verb", "RequestedCancellation", "ApiVersion", }); internal_static_google_cloud_video_livestream_v1_GetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_video_livestream_v1_GetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_GetPoolRequest_descriptor, @@ -599,7 +697,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_video_livestream_v1_UpdatePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_video_livestream_v1_UpdatePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_livestream_v1_UpdatePoolRequest_descriptor, @@ -610,6 +708,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); @@ -621,6 +720,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.video.livestream.v1.ResourcesProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/StaticOverlay.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/StaticOverlay.java new file mode 100644 index 000000000000..0d3c736927af --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/StaticOverlay.java @@ -0,0 +1,1441 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +/** + * + * + *
                  + * Configuration for the static overlay.
                  + * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.StaticOverlay} + */ +public final class StaticOverlay extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.StaticOverlay) + StaticOverlayOrBuilder { + private static final long serialVersionUID = 0L; + // Use StaticOverlay.newBuilder() to construct. + private StaticOverlay(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StaticOverlay() { + asset_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StaticOverlay(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_StaticOverlay_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_StaticOverlay_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.StaticOverlay.class, + com.google.cloud.video.livestream.v1.StaticOverlay.Builder.class); + } + + private int bitField0_; + public static final int ASSET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object asset_ = ""; + /** + * + * + *
                  +   * Required. Asset to use for the overlaid image.
                  +   * The asset must be represented in the form of:
                  +   * `projects/{project}/locations/{location}/assets/{assetId}`.
                  +   * The asset's resource type must be image.
                  +   * 
                  + * + * + * string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The asset. + */ + @java.lang.Override + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } + } + /** + * + * + *
                  +   * Required. Asset to use for the overlaid image.
                  +   * The asset must be represented in the form of:
                  +   * `projects/{project}/locations/{location}/assets/{assetId}`.
                  +   * The asset's resource type must be image.
                  +   * 
                  + * + * + * string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for asset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOLUTION_FIELD_NUMBER = 2; + private com.google.cloud.video.livestream.v1.NormalizedResolution resolution_; + /** + * + * + *
                  +   * Optional. Normalized image resolution, based on output video resolution.
                  +   * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +   * set either `w` or `h` to 0. To use the original image resolution, set both
                  +   * `w` and `h` to 0. The default is {0, 0}.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the resolution field is set. + */ + @java.lang.Override + public boolean hasResolution() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                  +   * Optional. Normalized image resolution, based on output video resolution.
                  +   * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +   * set either `w` or `h` to 0. To use the original image resolution, set both
                  +   * `w` and `h` to 0. The default is {0, 0}.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The resolution. + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.NormalizedResolution getResolution() { + return resolution_ == null + ? com.google.cloud.video.livestream.v1.NormalizedResolution.getDefaultInstance() + : resolution_; + } + /** + * + * + *
                  +   * Optional. Normalized image resolution, based on output video resolution.
                  +   * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +   * set either `w` or `h` to 0. To use the original image resolution, set both
                  +   * `w` and `h` to 0. The default is {0, 0}.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.NormalizedResolutionOrBuilder + getResolutionOrBuilder() { + return resolution_ == null + ? com.google.cloud.video.livestream.v1.NormalizedResolution.getDefaultInstance() + : resolution_; + } + + public static final int POSITION_FIELD_NUMBER = 3; + private com.google.cloud.video.livestream.v1.NormalizedCoordinate position_; + /** + * + * + *
                  +   * Optional. Position of the image in terms of normalized coordinates of the
                  +   * upper-left corner of the image, based on output video resolution. For
                  +   * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +   * of the overlay animation in the top-left corner of the output video.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the position field is set. + */ + @java.lang.Override + public boolean hasPosition() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                  +   * Optional. Position of the image in terms of normalized coordinates of the
                  +   * upper-left corner of the image, based on output video resolution. For
                  +   * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +   * of the overlay animation in the top-left corner of the output video.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The position. + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.NormalizedCoordinate getPosition() { + return position_ == null + ? com.google.cloud.video.livestream.v1.NormalizedCoordinate.getDefaultInstance() + : position_; + } + /** + * + * + *
                  +   * Optional. Position of the image in terms of normalized coordinates of the
                  +   * upper-left corner of the image, based on output video resolution. For
                  +   * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +   * of the overlay animation in the top-left corner of the output video.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.video.livestream.v1.NormalizedCoordinateOrBuilder getPositionOrBuilder() { + return position_ == null + ? com.google.cloud.video.livestream.v1.NormalizedCoordinate.getDefaultInstance() + : position_; + } + + public static final int OPACITY_FIELD_NUMBER = 4; + private double opacity_ = 0D; + /** + * + * + *
                  +   * Optional. Target image opacity. Valid values are from `1.0` (solid,
                  +   * default) to `0.0` (transparent), exclusive. Set this to a value greater
                  +   * than `0.0`.
                  +   * 
                  + * + * double opacity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The opacity. + */ + @java.lang.Override + public double getOpacity() { + return opacity_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, asset_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getResolution()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getPosition()); + } + if (java.lang.Double.doubleToRawLongBits(opacity_) != 0) { + output.writeDouble(4, opacity_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, asset_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResolution()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPosition()); + } + if (java.lang.Double.doubleToRawLongBits(opacity_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, opacity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.livestream.v1.StaticOverlay)) { + return super.equals(obj); + } + com.google.cloud.video.livestream.v1.StaticOverlay other = + (com.google.cloud.video.livestream.v1.StaticOverlay) obj; + + if (!getAsset().equals(other.getAsset())) return false; + if (hasResolution() != other.hasResolution()) return false; + if (hasResolution()) { + if (!getResolution().equals(other.getResolution())) return false; + } + if (hasPosition() != other.hasPosition()) return false; + if (hasPosition()) { + if (!getPosition().equals(other.getPosition())) return false; + } + if (java.lang.Double.doubleToLongBits(getOpacity()) + != java.lang.Double.doubleToLongBits(other.getOpacity())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAsset().hashCode(); + if (hasResolution()) { + hash = (37 * hash) + RESOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getResolution().hashCode(); + } + if (hasPosition()) { + hash = (37 * hash) + POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPosition().hashCode(); + } + hash = (37 * hash) + OPACITY_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getOpacity())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.livestream.v1.StaticOverlay parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.StaticOverlay parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.StaticOverlay parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.StaticOverlay parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.StaticOverlay parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.livestream.v1.StaticOverlay parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.StaticOverlay parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.StaticOverlay parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.StaticOverlay parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.StaticOverlay parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.video.livestream.v1.StaticOverlay parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.livestream.v1.StaticOverlay parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.video.livestream.v1.StaticOverlay prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * Configuration for the static overlay.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.video.livestream.v1.StaticOverlay} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.StaticOverlay) + com.google.cloud.video.livestream.v1.StaticOverlayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_StaticOverlay_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_StaticOverlay_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.livestream.v1.StaticOverlay.class, + com.google.cloud.video.livestream.v1.StaticOverlay.Builder.class); + } + + // Construct using com.google.cloud.video.livestream.v1.StaticOverlay.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getResolutionFieldBuilder(); + getPositionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + asset_ = ""; + resolution_ = null; + if (resolutionBuilder_ != null) { + resolutionBuilder_.dispose(); + resolutionBuilder_ = null; + } + position_ = null; + if (positionBuilder_ != null) { + positionBuilder_.dispose(); + positionBuilder_ = null; + } + opacity_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.livestream.v1.ResourcesProto + .internal_static_google_cloud_video_livestream_v1_StaticOverlay_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.StaticOverlay getDefaultInstanceForType() { + return com.google.cloud.video.livestream.v1.StaticOverlay.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.StaticOverlay build() { + com.google.cloud.video.livestream.v1.StaticOverlay result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.StaticOverlay buildPartial() { + com.google.cloud.video.livestream.v1.StaticOverlay result = + new com.google.cloud.video.livestream.v1.StaticOverlay(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.livestream.v1.StaticOverlay result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.asset_ = asset_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resolution_ = resolutionBuilder_ == null ? resolution_ : resolutionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.position_ = positionBuilder_ == null ? position_ : positionBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.opacity_ = opacity_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.livestream.v1.StaticOverlay) { + return mergeFrom((com.google.cloud.video.livestream.v1.StaticOverlay) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.livestream.v1.StaticOverlay other) { + if (other == com.google.cloud.video.livestream.v1.StaticOverlay.getDefaultInstance()) + return this; + if (!other.getAsset().isEmpty()) { + asset_ = other.asset_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasResolution()) { + mergeResolution(other.getResolution()); + } + if (other.hasPosition()) { + mergePosition(other.getPosition()); + } + if (other.getOpacity() != 0D) { + setOpacity(other.getOpacity()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + asset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getResolutionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getPositionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 33: + { + opacity_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object asset_ = ""; + /** + * + * + *
                  +     * Required. Asset to use for the overlaid image.
                  +     * The asset must be represented in the form of:
                  +     * `projects/{project}/locations/{location}/assets/{assetId}`.
                  +     * The asset's resource type must be image.
                  +     * 
                  + * + * + * string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The asset. + */ + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +     * Required. Asset to use for the overlaid image.
                  +     * The asset must be represented in the form of:
                  +     * `projects/{project}/locations/{location}/assets/{assetId}`.
                  +     * The asset's resource type must be image.
                  +     * 
                  + * + * + * string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for asset. + */ + public com.google.protobuf.ByteString getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +     * Required. Asset to use for the overlaid image.
                  +     * The asset must be represented in the form of:
                  +     * `projects/{project}/locations/{location}/assets/{assetId}`.
                  +     * The asset's resource type must be image.
                  +     * 
                  + * + * + * string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The asset to set. + * @return This builder for chaining. + */ + public Builder setAsset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + asset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. Asset to use for the overlaid image.
                  +     * The asset must be represented in the form of:
                  +     * `projects/{project}/locations/{location}/assets/{assetId}`.
                  +     * The asset's resource type must be image.
                  +     * 
                  + * + * + * string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAsset() { + asset_ = getDefaultInstance().getAsset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                  +     * Required. Asset to use for the overlaid image.
                  +     * The asset must be represented in the form of:
                  +     * `projects/{project}/locations/{location}/assets/{assetId}`.
                  +     * The asset's resource type must be image.
                  +     * 
                  + * + * + * string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for asset to set. + * @return This builder for chaining. + */ + public Builder setAssetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + asset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.video.livestream.v1.NormalizedResolution resolution_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.NormalizedResolution, + com.google.cloud.video.livestream.v1.NormalizedResolution.Builder, + com.google.cloud.video.livestream.v1.NormalizedResolutionOrBuilder> + resolutionBuilder_; + /** + * + * + *
                  +     * Optional. Normalized image resolution, based on output video resolution.
                  +     * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +     * set either `w` or `h` to 0. To use the original image resolution, set both
                  +     * `w` and `h` to 0. The default is {0, 0}.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the resolution field is set. + */ + public boolean hasResolution() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                  +     * Optional. Normalized image resolution, based on output video resolution.
                  +     * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +     * set either `w` or `h` to 0. To use the original image resolution, set both
                  +     * `w` and `h` to 0. The default is {0, 0}.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The resolution. + */ + public com.google.cloud.video.livestream.v1.NormalizedResolution getResolution() { + if (resolutionBuilder_ == null) { + return resolution_ == null + ? com.google.cloud.video.livestream.v1.NormalizedResolution.getDefaultInstance() + : resolution_; + } else { + return resolutionBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * Optional. Normalized image resolution, based on output video resolution.
                  +     * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +     * set either `w` or `h` to 0. To use the original image resolution, set both
                  +     * `w` and `h` to 0. The default is {0, 0}.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResolution(com.google.cloud.video.livestream.v1.NormalizedResolution value) { + if (resolutionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resolution_ = value; + } else { + resolutionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Normalized image resolution, based on output video resolution.
                  +     * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +     * set either `w` or `h` to 0. To use the original image resolution, set both
                  +     * `w` and `h` to 0. The default is {0, 0}.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResolution( + com.google.cloud.video.livestream.v1.NormalizedResolution.Builder builderForValue) { + if (resolutionBuilder_ == null) { + resolution_ = builderForValue.build(); + } else { + resolutionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Normalized image resolution, based on output video resolution.
                  +     * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +     * set either `w` or `h` to 0. To use the original image resolution, set both
                  +     * `w` and `h` to 0. The default is {0, 0}.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeResolution( + com.google.cloud.video.livestream.v1.NormalizedResolution value) { + if (resolutionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && resolution_ != null + && resolution_ + != com.google.cloud.video.livestream.v1.NormalizedResolution.getDefaultInstance()) { + getResolutionBuilder().mergeFrom(value); + } else { + resolution_ = value; + } + } else { + resolutionBuilder_.mergeFrom(value); + } + if (resolution_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Optional. Normalized image resolution, based on output video resolution.
                  +     * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +     * set either `w` or `h` to 0. To use the original image resolution, set both
                  +     * `w` and `h` to 0. The default is {0, 0}.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearResolution() { + bitField0_ = (bitField0_ & ~0x00000002); + resolution_ = null; + if (resolutionBuilder_ != null) { + resolutionBuilder_.dispose(); + resolutionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Normalized image resolution, based on output video resolution.
                  +     * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +     * set either `w` or `h` to 0. To use the original image resolution, set both
                  +     * `w` and `h` to 0. The default is {0, 0}.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.livestream.v1.NormalizedResolution.Builder + getResolutionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getResolutionFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * Optional. Normalized image resolution, based on output video resolution.
                  +     * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +     * set either `w` or `h` to 0. To use the original image resolution, set both
                  +     * `w` and `h` to 0. The default is {0, 0}.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.livestream.v1.NormalizedResolutionOrBuilder + getResolutionOrBuilder() { + if (resolutionBuilder_ != null) { + return resolutionBuilder_.getMessageOrBuilder(); + } else { + return resolution_ == null + ? com.google.cloud.video.livestream.v1.NormalizedResolution.getDefaultInstance() + : resolution_; + } + } + /** + * + * + *
                  +     * Optional. Normalized image resolution, based on output video resolution.
                  +     * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +     * set either `w` or `h` to 0. To use the original image resolution, set both
                  +     * `w` and `h` to 0. The default is {0, 0}.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.NormalizedResolution, + com.google.cloud.video.livestream.v1.NormalizedResolution.Builder, + com.google.cloud.video.livestream.v1.NormalizedResolutionOrBuilder> + getResolutionFieldBuilder() { + if (resolutionBuilder_ == null) { + resolutionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.NormalizedResolution, + com.google.cloud.video.livestream.v1.NormalizedResolution.Builder, + com.google.cloud.video.livestream.v1.NormalizedResolutionOrBuilder>( + getResolution(), getParentForChildren(), isClean()); + resolution_ = null; + } + return resolutionBuilder_; + } + + private com.google.cloud.video.livestream.v1.NormalizedCoordinate position_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.NormalizedCoordinate, + com.google.cloud.video.livestream.v1.NormalizedCoordinate.Builder, + com.google.cloud.video.livestream.v1.NormalizedCoordinateOrBuilder> + positionBuilder_; + /** + * + * + *
                  +     * Optional. Position of the image in terms of normalized coordinates of the
                  +     * upper-left corner of the image, based on output video resolution. For
                  +     * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +     * of the overlay animation in the top-left corner of the output video.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the position field is set. + */ + public boolean hasPosition() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                  +     * Optional. Position of the image in terms of normalized coordinates of the
                  +     * upper-left corner of the image, based on output video resolution. For
                  +     * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +     * of the overlay animation in the top-left corner of the output video.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The position. + */ + public com.google.cloud.video.livestream.v1.NormalizedCoordinate getPosition() { + if (positionBuilder_ == null) { + return position_ == null + ? com.google.cloud.video.livestream.v1.NormalizedCoordinate.getDefaultInstance() + : position_; + } else { + return positionBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * Optional. Position of the image in terms of normalized coordinates of the
                  +     * upper-left corner of the image, based on output video resolution. For
                  +     * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +     * of the overlay animation in the top-left corner of the output video.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPosition(com.google.cloud.video.livestream.v1.NormalizedCoordinate value) { + if (positionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + position_ = value; + } else { + positionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Position of the image in terms of normalized coordinates of the
                  +     * upper-left corner of the image, based on output video resolution. For
                  +     * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +     * of the overlay animation in the top-left corner of the output video.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPosition( + com.google.cloud.video.livestream.v1.NormalizedCoordinate.Builder builderForValue) { + if (positionBuilder_ == null) { + position_ = builderForValue.build(); + } else { + positionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Position of the image in terms of normalized coordinates of the
                  +     * upper-left corner of the image, based on output video resolution. For
                  +     * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +     * of the overlay animation in the top-left corner of the output video.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePosition(com.google.cloud.video.livestream.v1.NormalizedCoordinate value) { + if (positionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && position_ != null + && position_ + != com.google.cloud.video.livestream.v1.NormalizedCoordinate.getDefaultInstance()) { + getPositionBuilder().mergeFrom(value); + } else { + position_ = value; + } + } else { + positionBuilder_.mergeFrom(value); + } + if (position_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Optional. Position of the image in terms of normalized coordinates of the
                  +     * upper-left corner of the image, based on output video resolution. For
                  +     * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +     * of the overlay animation in the top-left corner of the output video.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPosition() { + bitField0_ = (bitField0_ & ~0x00000004); + position_ = null; + if (positionBuilder_ != null) { + positionBuilder_.dispose(); + positionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Position of the image in terms of normalized coordinates of the
                  +     * upper-left corner of the image, based on output video resolution. For
                  +     * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +     * of the overlay animation in the top-left corner of the output video.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.livestream.v1.NormalizedCoordinate.Builder getPositionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPositionFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * Optional. Position of the image in terms of normalized coordinates of the
                  +     * upper-left corner of the image, based on output video resolution. For
                  +     * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +     * of the overlay animation in the top-left corner of the output video.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.livestream.v1.NormalizedCoordinateOrBuilder + getPositionOrBuilder() { + if (positionBuilder_ != null) { + return positionBuilder_.getMessageOrBuilder(); + } else { + return position_ == null + ? com.google.cloud.video.livestream.v1.NormalizedCoordinate.getDefaultInstance() + : position_; + } + } + /** + * + * + *
                  +     * Optional. Position of the image in terms of normalized coordinates of the
                  +     * upper-left corner of the image, based on output video resolution. For
                  +     * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +     * of the overlay animation in the top-left corner of the output video.
                  +     * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.NormalizedCoordinate, + com.google.cloud.video.livestream.v1.NormalizedCoordinate.Builder, + com.google.cloud.video.livestream.v1.NormalizedCoordinateOrBuilder> + getPositionFieldBuilder() { + if (positionBuilder_ == null) { + positionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.livestream.v1.NormalizedCoordinate, + com.google.cloud.video.livestream.v1.NormalizedCoordinate.Builder, + com.google.cloud.video.livestream.v1.NormalizedCoordinateOrBuilder>( + getPosition(), getParentForChildren(), isClean()); + position_ = null; + } + return positionBuilder_; + } + + private double opacity_; + /** + * + * + *
                  +     * Optional. Target image opacity. Valid values are from `1.0` (solid,
                  +     * default) to `0.0` (transparent), exclusive. Set this to a value greater
                  +     * than `0.0`.
                  +     * 
                  + * + * double opacity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The opacity. + */ + @java.lang.Override + public double getOpacity() { + return opacity_; + } + /** + * + * + *
                  +     * Optional. Target image opacity. Valid values are from `1.0` (solid,
                  +     * default) to `0.0` (transparent), exclusive. Set this to a value greater
                  +     * than `0.0`.
                  +     * 
                  + * + * double opacity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The opacity to set. + * @return This builder for chaining. + */ + public Builder setOpacity(double value) { + + opacity_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Target image opacity. Valid values are from `1.0` (solid,
                  +     * default) to `0.0` (transparent), exclusive. Set this to a value greater
                  +     * than `0.0`.
                  +     * 
                  + * + * double opacity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOpacity() { + bitField0_ = (bitField0_ & ~0x00000008); + opacity_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.livestream.v1.StaticOverlay) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.StaticOverlay) + private static final com.google.cloud.video.livestream.v1.StaticOverlay DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.StaticOverlay(); + } + + public static com.google.cloud.video.livestream.v1.StaticOverlay getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StaticOverlay parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.livestream.v1.StaticOverlay getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/StaticOverlayOrBuilder.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/StaticOverlayOrBuilder.java new file mode 100644 index 000000000000..9f959f4e6524 --- /dev/null +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/StaticOverlayOrBuilder.java @@ -0,0 +1,176 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/livestream/v1/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.livestream.v1; + +public interface StaticOverlayOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.StaticOverlay) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Required. Asset to use for the overlaid image.
                  +   * The asset must be represented in the form of:
                  +   * `projects/{project}/locations/{location}/assets/{assetId}`.
                  +   * The asset's resource type must be image.
                  +   * 
                  + * + * + * string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The asset. + */ + java.lang.String getAsset(); + /** + * + * + *
                  +   * Required. Asset to use for the overlaid image.
                  +   * The asset must be represented in the form of:
                  +   * `projects/{project}/locations/{location}/assets/{assetId}`.
                  +   * The asset's resource type must be image.
                  +   * 
                  + * + * + * string asset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for asset. + */ + com.google.protobuf.ByteString getAssetBytes(); + + /** + * + * + *
                  +   * Optional. Normalized image resolution, based on output video resolution.
                  +   * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +   * set either `w` or `h` to 0. To use the original image resolution, set both
                  +   * `w` and `h` to 0. The default is {0, 0}.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the resolution field is set. + */ + boolean hasResolution(); + /** + * + * + *
                  +   * Optional. Normalized image resolution, based on output video resolution.
                  +   * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +   * set either `w` or `h` to 0. To use the original image resolution, set both
                  +   * `w` and `h` to 0. The default is {0, 0}.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The resolution. + */ + com.google.cloud.video.livestream.v1.NormalizedResolution getResolution(); + /** + * + * + *
                  +   * Optional. Normalized image resolution, based on output video resolution.
                  +   * Valid values are [0.0, 1.0]. To respect the original image aspect ratio,
                  +   * set either `w` or `h` to 0. To use the original image resolution, set both
                  +   * `w` and `h` to 0. The default is {0, 0}.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedResolution resolution = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.video.livestream.v1.NormalizedResolutionOrBuilder getResolutionOrBuilder(); + + /** + * + * + *
                  +   * Optional. Position of the image in terms of normalized coordinates of the
                  +   * upper-left corner of the image, based on output video resolution. For
                  +   * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +   * of the overlay animation in the top-left corner of the output video.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the position field is set. + */ + boolean hasPosition(); + /** + * + * + *
                  +   * Optional. Position of the image in terms of normalized coordinates of the
                  +   * upper-left corner of the image, based on output video resolution. For
                  +   * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +   * of the overlay animation in the top-left corner of the output video.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The position. + */ + com.google.cloud.video.livestream.v1.NormalizedCoordinate getPosition(); + /** + * + * + *
                  +   * Optional. Position of the image in terms of normalized coordinates of the
                  +   * upper-left corner of the image, based on output video resolution. For
                  +   * example, use the x and y coordinates {0, 0} to position the top-left corner
                  +   * of the overlay animation in the top-left corner of the output video.
                  +   * 
                  + * + * + * .google.cloud.video.livestream.v1.NormalizedCoordinate position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.video.livestream.v1.NormalizedCoordinateOrBuilder getPositionOrBuilder(); + + /** + * + * + *
                  +   * Optional. Target image opacity. Valid values are from `1.0` (solid,
                  +   * default) to `0.0` (transparent), exclusive. Set this to a value greater
                  +   * than `0.0`.
                  +   * 
                  + * + * double opacity = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The opacity. + */ + double getOpacity(); +} diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/proto/google/cloud/video/livestream/v1/outputs.proto b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/proto/google/cloud/video/livestream/v1/outputs.proto index ffecc3908fd5..0ba04fc89ea1 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/proto/google/cloud/video/livestream/v1/outputs.proto +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/proto/google/cloud/video/livestream/v1/outputs.proto @@ -32,7 +32,9 @@ option ruby_package = "Google::Cloud::Video::LiveStream::V1"; // Elementary streams must be packaged before mapping and sharing between // different output formats. message ElementaryStream { - // A unique key for this elementary stream. + // A unique key for this elementary stream. The key must be 1-63 + // characters in length. The key must begin and end with a letter (regardless + // of case) or a number, but can contain dashes or underscores in between. string key = 4; // Required. Encoding of an audio, video, or text track. @@ -50,7 +52,9 @@ message ElementaryStream { // Multiplexing settings for output stream. message MuxStream { - // A unique key for this multiplexed stream. + // A unique key for this multiplexed stream. The key must be 1-63 + // characters in length. The key must begin and end with a letter (regardless + // of case) or a number, but can contain dashes or underscores in between. string key = 1; // The container format. The default is `fmp4`. @@ -122,6 +126,12 @@ message Manifest { // errors while accessing segments which are listed in the manifest that the // player has, but were already deleted from the output Google Cloud Storage // bucket. Default value is `60s`. + // + // If both segment_keep_duration and + // [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + // are set, + // [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] + // is used and segment_keep_duration is ignored. google.protobuf.Duration segment_keep_duration = 5; // Whether to use the timecode, as specified in timecode config, when setting: @@ -132,6 +142,9 @@ message Manifest { // If false, ignore the input timecode and use the time from system clock // when the manifest is first generated. This is the default behavior. bool use_timecode_as_timeline = 6; + + // Optional. A unique key for this manifest. + string key = 7 [(google.api.field_behavior) = OPTIONAL]; } // Sprite sheet configuration. diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/proto/google/cloud/video/livestream/v1/resources.proto b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/proto/google/cloud/video/livestream/v1/resources.proto index 682959ad35df..4fb3ceeea806 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/proto/google/cloud/video/livestream/v1/resources.proto +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/proto/google/cloud/video/livestream/v1/resources.proto @@ -238,6 +238,64 @@ message Channel { // The configuration for input sources defined in // [input_attachments][google.cloud.video.livestream.v1.Channel.input_attachments]. InputConfig input_config = 25; + + // Optional. Configuration for retention of output files for this channel. + RetentionConfig retention_config = 26 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of static overlay images. Those images display over the + // output content for the whole duration of the live stream. + repeated StaticOverlay static_overlays = 27 + [(google.api.field_behavior) = OPTIONAL]; +} + +// 2D normalized coordinates. +message NormalizedCoordinate { + // Optional. Normalized x coordinate. Valid range is [0.0, 1.0]. Default is 0. + double x = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Normalized y coordinate. Valid range is [0.0, 1.0]. Default is 0. + double y = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Normalized resolution. +message NormalizedResolution { + // Optional. Normalized width. Valid range is [0.0, 1.0]. Default is 0. + double w = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Normalized height. Valid range is [0.0, 1.0]. Default is 0. + double h = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for the static overlay. +message StaticOverlay { + // Required. Asset to use for the overlaid image. + // The asset must be represented in the form of: + // `projects/{project}/locations/{location}/assets/{assetId}`. + // The asset's resource type must be image. + string asset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "livestream.googleapis.com/Asset" + } + ]; + + // Optional. Normalized image resolution, based on output video resolution. + // Valid values are [0.0, 1.0]. To respect the original image aspect ratio, + // set either `w` or `h` to 0. To use the original image resolution, set both + // `w` and `h` to 0. The default is {0, 0}. + NormalizedResolution resolution = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Position of the image in terms of normalized coordinates of the + // upper-left corner of the image, based on output video resolution. For + // example, use the x and y coordinates {0, 0} to position the top-left corner + // of the overlay animation in the top-left corner of the output video. + NormalizedCoordinate position = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Target image opacity. Valid values are from `1.0` (solid, + // default) to `0.0` (transparent), exclusive. Set this to a value greater + // than `0.0`. + double opacity = 4 [(google.api.field_behavior) = OPTIONAL]; } // Configuration for the input sources of a channel. @@ -303,6 +361,28 @@ message LogConfig { LogSeverity log_severity = 1; } +// Configuration for retention of output files. +message RetentionConfig { + // The minimum duration for which the output files from the channel will + // remain in the output bucket. After this duration, output files are + // deleted asynchronously. + // + // When the channel is deleted, all output files are deleted from the output + // bucket asynchronously. + // + // If omitted or set to zero, output files will remain in the output bucket + // based on + // [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration], + // which defaults to 60s. + // + // If both retention_window_duration and + // [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] + // are set, retention_window_duration is used and + // [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] + // is ignored. + google.protobuf.Duration retention_window_duration = 1; +} + // Properties of the input stream. message InputStreamProperty { // The time that the current input stream is accepted and the connection is @@ -372,7 +452,9 @@ message InputAttachment { repeated string input_keys = 1; } - // A unique key for this input attachment. + // A unique key for this input attachment. The key must be 1-63 + // characters in length. The key must begin and end with a letter (regardless + // of case) or a number, but can contain dashes or underscores in between. string key = 1; // The resource name of an existing input, in the form of: @@ -414,7 +496,7 @@ message Event { google.protobuf.Duration duration = 1; // Slate asset to use for the duration. If its duration is less than the - // duration of the SlateTask, then it will be looped. The slate must be + // duration of the SlateTask, then the slate loops. The slate must be // represented in the form of: // `projects/{project}/locations/{location}/assets/{assetId}`. string asset = 2 [(google.api.resource_reference) = { @@ -433,8 +515,7 @@ message Event { google.protobuf.Duration duration = 1; } - // Unmutes the stream. The task will fail if the stream is not - // currently muted. + // Unmutes the stream. The task fails if the stream is not currently muted. message UnmuteTask {} // State of the event @@ -521,6 +602,121 @@ message Event { google.rpc.Status error = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Clip is a sub-resource under channel. Each clip represents a clipping +// operation that generates a VOD playlist from its channel given a set of +// timestamp ranges. +message Clip { + option (google.api.resource) = { + type: "livestream.googleapis.com/Clip" + pattern: "projects/{project}/locations/{location}/channels/{channel}/clips/{clip}" + }; + + // State of clipping operation. + enum State { + // State is not specified. + STATE_UNSPECIFIED = 0; + + // The operation is pending to be picked up by the server. + PENDING = 1; + + // The server admitted this create clip request, and + // outputs are under processing. + CREATING = 2; + + // Outputs are available in the specified Cloud Storage bucket. For + // additional information, see the `outputs` field. + SUCCEEDED = 3; + + // The operation has failed. For additional information, see the `error` + // field. + FAILED = 4; + } + + // TimeSlice represents a tuple of Unix epoch timestamps that specifies a time + // range. + message TimeSlice { + // The mark-in Unix epoch time in the original live stream manifest. + google.protobuf.Timestamp markin_time = 1; + + // The mark-out Unix epoch time in the original live stream manifest. + google.protobuf.Timestamp markout_time = 2; + } + + // Slice represents a slice of the requested clip. + message Slice { + // The allowlist forms of a slice. + oneof kind { + // A slice in form of a tuple of Unix epoch time. + TimeSlice time_slice = 1; + } + } + + // ClipManifest identifies a source manifest for the generated clip manifest. + message ClipManifest { + // Required. A unique key that identifies a manifest config in the parent + // channel. This key is the same as `channel.manifests.key` for the selected + // manifest. + string manifest_key = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The output URI of the generated clip manifest. This field + // will be populated when the CreateClip request is accepted. Current output + // format is provided below but may change in the future. Please read this + // field to get the uri to the generated clip manifest. Format: + // {clip.output_uri}/{channel.manifest.fileName} Example: + // gs://my-bucket/clip-outputs/main.m3u8 + string output_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The resource name of the clip, in the following format: + // `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`. + // `{clipId}` is a user-specified resource id that conforms to the following + // criteria: + // + // 1. 1 character minimum, 63 characters maximum + // 2. Only contains letters, digits, underscores, and hyphens + string name = 1; + + // Output only. The creation timestamp of the clip resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the clip request starts to be processed. + google.protobuf.Timestamp start_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The update timestamp of the clip resource. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels associated with this resource. Each label is a key-value pair. + map labels = 5; + + // Output only. The state of the clip. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Specify the `output_uri` to determine where to place the clip segments and + // clip manifest files in Cloud Storage. The manifests specified in + // `clip_manifests` fields will be placed under this URI. The exact URI of the + // generated manifests will be provided in `clip_manifests.output_uri` for + // each manifest. + // Example: + // "output_uri": "gs://my-bucket/clip-outputs" + // "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8" + string output_uri = 7; + + // Output only. An error object that describes the reason for the failure. + // This property only presents when `state` is `FAILED`. + google.rpc.Status error = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The specified ranges of segments to generate a clip. + repeated Slice slices = 10; + + // Required. A list of clip manifests. Currently only one clip manifest is + // allowed. + repeated ClipManifest clip_manifests = 12 + [(google.api.field_behavior) = REQUIRED]; +} + // An asset represents a video or an image. message Asset { option (google.api.resource) = { @@ -536,7 +732,7 @@ message Asset { string uri = 1; } - // Image represents an image. The supported format is JPEG. + // Image represents an image. The supported formats are JPEG, PNG. message ImageAsset { // Cloud Storage URI of the image. The format is `gs://my-bucket/my-object`. string uri = 1; @@ -590,10 +786,12 @@ message Asset { // resource](https://cloud.google.com/storage/docs/json_api/v1/objects). // If crc32c is omitted or left empty when the asset is created, this field is // filled by the crc32c checksum of the Cloud Storage object indicated by - // [VideoAsset.uri] or [ImageAsset.uri]. - // If crc32c is set, the asset can't be created if the crc32c value does not + // [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + // [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. If + // crc32c is set, the asset can't be created if the crc32c value does not // match with the crc32c checksum of the Cloud Storage object indicated by - // [VideoAsset.uri] or [ImageAsset.uri]. + // [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or + // [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. string crc32c = 7; // Output only. The state of the asset resource. @@ -660,7 +858,10 @@ message Encryption { string scheme = 1 [(google.api.field_behavior) = REQUIRED]; } - // Required. Identifier for this set of encryption options. + // Required. Identifier for this set of encryption options. The ID must be + // 1-63 characters in length. The ID must begin and end with a letter + // (regardless of case) or a number, but can contain dashes or underscores in + // between. string id = 1 [(google.api.field_behavior) = REQUIRED]; // Defines where content keys are stored. diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/proto/google/cloud/video/livestream/v1/service.proto b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/proto/google/cloud/video/livestream/v1/service.proto index 074e5bfa55f3..f888549d8c35 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/proto/google/cloud/video/livestream/v1/service.proto +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/proto/google/cloud/video/livestream/v1/service.proto @@ -19,6 +19,7 @@ package google.cloud.video.livestream.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/cloud/video/livestream/v1/resources.proto"; import "google/longrunning/operations.proto"; @@ -225,6 +226,48 @@ service LivestreamService { option (google.api.method_signature) = "name"; } + // Returns a list of all clips in the specified channel. + rpc ListClips(ListClipsRequest) returns (ListClipsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/channels/*}/clips" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the specified clip. + rpc GetClip(GetClipRequest) returns (Clip) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/channels/*/clips/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a clip with the provided clip ID in the specified channel. + rpc CreateClip(CreateClipRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/channels/*}/clips" + body: "clip" + }; + option (google.api.method_signature) = "parent,clip,clip_id"; + option (google.longrunning.operation_info) = { + response_type: "Clip" + metadata_type: "OperationMetadata" + }; + } + + // Deletes the specified clip job resource. This method only deletes the clip + // job and does not delete the VOD clip stored in the GCS. + rpc DeleteClip(DeleteClipRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/channels/*/clips/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + // Creates a Asset with the provided unique ID in the specified // region. rpc CreateAsset(CreateAssetRequest) returns (google.longrunning.Operation) { @@ -889,6 +932,116 @@ message DeleteEventRequest { // Response message for Start/Stop Channel long-running operations. message ChannelOperationResponse {} +// Request message for "LivestreamService.ListClips". +message ListClipsRequest { + // Required. Parent value for ListClipsRequest + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "livestream.googleapis.com/Clip" + } + ]; + + // Requested page size. Server may return fewer items than requested. + // If unspecified, server will pick an appropriate default. + int32 page_size = 2; + + // A token identifying a page of results the server should return. + string page_token = 3; + + // Filtering results + string filter = 4; + + // Hint for how to order the results + string order_by = 5; +} + +// Response message for "LivestreamService.ListClips". +message ListClipsResponse { + // The list of Clip + repeated Clip clips = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message for "LivestreamService.GetClip". +message GetClipRequest { + // Required. Name of the resource, in the following form: + // `projects/{project}/locations/{location}/channels/{channel}/clips/{clip}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "livestream.googleapis.com/Clip" } + ]; +} + +// Request message for "LivestreamService.CreateClip". +message CreateClipRequest { + // Required. The parent resource name, in the following form: + // `projects/{project}/locations/{location}/channels/{channel}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "livestream.googleapis.com/Clip" + } + ]; + + // Required. Id of the requesting object in the following form: + // + // 1. 1 character minimum, 63 characters maximum + // 2. Only contains letters, digits, underscores, and hyphens + string clip_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created + Clip clip = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for "LivestreamService.DeleteClip". +message DeleteClipRequest { + // Required. The name of the clip resource, in the form of: + // `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "livestream.googleapis.com/Clip" } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported `(00000000-0000-0000-0000-000000000000)`. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + // Represents the metadata of the long-running operation. message OperationMetadata { // Output only. The time the operation was created. diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/AsyncCreateClip.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/AsyncCreateClip.java new file mode 100644 index 000000000000..935bd28bb810 --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/AsyncCreateClip.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_CreateClip_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.video.livestream.v1.ChannelName; +import com.google.cloud.video.livestream.v1.Clip; +import com.google.cloud.video.livestream.v1.CreateClipRequest; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateClip { + + public static void main(String[] args) throws Exception { + asyncCreateClip(); + } + + public static void asyncCreateClip() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + CreateClipRequest request = + CreateClipRequest.newBuilder() + .setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString()) + .setClipId("clipId-1357703029") + .setClip(Clip.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + livestreamServiceClient.createClipCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END livestream_v1_generated_LivestreamService_CreateClip_async] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/AsyncCreateClipLRO.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/AsyncCreateClipLRO.java new file mode 100644 index 000000000000..3dfa6ce48d0f --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/AsyncCreateClipLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_CreateClip_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.video.livestream.v1.ChannelName; +import com.google.cloud.video.livestream.v1.Clip; +import com.google.cloud.video.livestream.v1.CreateClipRequest; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; +import com.google.cloud.video.livestream.v1.OperationMetadata; + +public class AsyncCreateClipLRO { + + public static void main(String[] args) throws Exception { + asyncCreateClipLRO(); + } + + public static void asyncCreateClipLRO() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + CreateClipRequest request = + CreateClipRequest.newBuilder() + .setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString()) + .setClipId("clipId-1357703029") + .setClip(Clip.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + livestreamServiceClient.createClipOperationCallable().futureCall(request); + // Do something. + Clip response = future.get(); + } + } +} +// [END livestream_v1_generated_LivestreamService_CreateClip_LRO_async] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/SyncCreateClip.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/SyncCreateClip.java new file mode 100644 index 000000000000..5ba33a32b2c6 --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/SyncCreateClip.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_CreateClip_sync] +import com.google.cloud.video.livestream.v1.ChannelName; +import com.google.cloud.video.livestream.v1.Clip; +import com.google.cloud.video.livestream.v1.CreateClipRequest; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; + +public class SyncCreateClip { + + public static void main(String[] args) throws Exception { + syncCreateClip(); + } + + public static void syncCreateClip() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + CreateClipRequest request = + CreateClipRequest.newBuilder() + .setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString()) + .setClipId("clipId-1357703029") + .setClip(Clip.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Clip response = livestreamServiceClient.createClipAsync(request).get(); + } + } +} +// [END livestream_v1_generated_LivestreamService_CreateClip_sync] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/SyncCreateClipChannelnameClipString.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/SyncCreateClipChannelnameClipString.java new file mode 100644 index 000000000000..5fa580747d8a --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/SyncCreateClipChannelnameClipString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_CreateClip_ChannelnameClipString_sync] +import com.google.cloud.video.livestream.v1.ChannelName; +import com.google.cloud.video.livestream.v1.Clip; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; + +public class SyncCreateClipChannelnameClipString { + + public static void main(String[] args) throws Exception { + syncCreateClipChannelnameClipString(); + } + + public static void syncCreateClipChannelnameClipString() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); + Clip clip = Clip.newBuilder().build(); + String clipId = "clipId-1357703029"; + Clip response = livestreamServiceClient.createClipAsync(parent, clip, clipId).get(); + } + } +} +// [END livestream_v1_generated_LivestreamService_CreateClip_ChannelnameClipString_sync] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/SyncCreateClipStringClipString.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/SyncCreateClipStringClipString.java new file mode 100644 index 000000000000..4e18803f8206 --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/createclip/SyncCreateClipStringClipString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_CreateClip_StringClipString_sync] +import com.google.cloud.video.livestream.v1.ChannelName; +import com.google.cloud.video.livestream.v1.Clip; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; + +public class SyncCreateClipStringClipString { + + public static void main(String[] args) throws Exception { + syncCreateClipStringClipString(); + } + + public static void syncCreateClipStringClipString() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + String parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString(); + Clip clip = Clip.newBuilder().build(); + String clipId = "clipId-1357703029"; + Clip response = livestreamServiceClient.createClipAsync(parent, clip, clipId).get(); + } + } +} +// [END livestream_v1_generated_LivestreamService_CreateClip_StringClipString_sync] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/AsyncDeleteClip.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/AsyncDeleteClip.java new file mode 100644 index 000000000000..2aa290770369 --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/AsyncDeleteClip.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_DeleteClip_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.video.livestream.v1.ClipName; +import com.google.cloud.video.livestream.v1.DeleteClipRequest; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteClip { + + public static void main(String[] args) throws Exception { + asyncDeleteClip(); + } + + public static void asyncDeleteClip() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + DeleteClipRequest request = + DeleteClipRequest.newBuilder() + .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + livestreamServiceClient.deleteClipCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END livestream_v1_generated_LivestreamService_DeleteClip_async] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/AsyncDeleteClipLRO.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/AsyncDeleteClipLRO.java new file mode 100644 index 000000000000..bee542108e55 --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/AsyncDeleteClipLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_DeleteClip_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.video.livestream.v1.ClipName; +import com.google.cloud.video.livestream.v1.DeleteClipRequest; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; +import com.google.cloud.video.livestream.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteClipLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteClipLRO(); + } + + public static void asyncDeleteClipLRO() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + DeleteClipRequest request = + DeleteClipRequest.newBuilder() + .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + livestreamServiceClient.deleteClipOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END livestream_v1_generated_LivestreamService_DeleteClip_LRO_async] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/SyncDeleteClip.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/SyncDeleteClip.java new file mode 100644 index 000000000000..6296f1461ea0 --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/SyncDeleteClip.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_DeleteClip_sync] +import com.google.cloud.video.livestream.v1.ClipName; +import com.google.cloud.video.livestream.v1.DeleteClipRequest; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteClip { + + public static void main(String[] args) throws Exception { + syncDeleteClip(); + } + + public static void syncDeleteClip() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + DeleteClipRequest request = + DeleteClipRequest.newBuilder() + .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString()) + .setRequestId("requestId693933066") + .build(); + livestreamServiceClient.deleteClipAsync(request).get(); + } + } +} +// [END livestream_v1_generated_LivestreamService_DeleteClip_sync] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/SyncDeleteClipClipname.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/SyncDeleteClipClipname.java new file mode 100644 index 000000000000..85b95e2e211b --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/SyncDeleteClipClipname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_DeleteClip_Clipname_sync] +import com.google.cloud.video.livestream.v1.ClipName; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteClipClipname { + + public static void main(String[] args) throws Exception { + syncDeleteClipClipname(); + } + + public static void syncDeleteClipClipname() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + ClipName name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]"); + livestreamServiceClient.deleteClipAsync(name).get(); + } + } +} +// [END livestream_v1_generated_LivestreamService_DeleteClip_Clipname_sync] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/SyncDeleteClipString.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/SyncDeleteClipString.java new file mode 100644 index 000000000000..23c057da18f4 --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/deleteclip/SyncDeleteClipString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_DeleteClip_String_sync] +import com.google.cloud.video.livestream.v1.ClipName; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteClipString { + + public static void main(String[] args) throws Exception { + syncDeleteClipString(); + } + + public static void syncDeleteClipString() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + String name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString(); + livestreamServiceClient.deleteClipAsync(name).get(); + } + } +} +// [END livestream_v1_generated_LivestreamService_DeleteClip_String_sync] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/getclip/AsyncGetClip.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/getclip/AsyncGetClip.java new file mode 100644 index 000000000000..2b67838048bd --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/getclip/AsyncGetClip.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_GetClip_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.video.livestream.v1.Clip; +import com.google.cloud.video.livestream.v1.ClipName; +import com.google.cloud.video.livestream.v1.GetClipRequest; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; + +public class AsyncGetClip { + + public static void main(String[] args) throws Exception { + asyncGetClip(); + } + + public static void asyncGetClip() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + GetClipRequest request = + GetClipRequest.newBuilder() + .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString()) + .build(); + ApiFuture future = livestreamServiceClient.getClipCallable().futureCall(request); + // Do something. + Clip response = future.get(); + } + } +} +// [END livestream_v1_generated_LivestreamService_GetClip_async] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/getclip/SyncGetClip.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/getclip/SyncGetClip.java new file mode 100644 index 000000000000..53630d9ee56a --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/getclip/SyncGetClip.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_GetClip_sync] +import com.google.cloud.video.livestream.v1.Clip; +import com.google.cloud.video.livestream.v1.ClipName; +import com.google.cloud.video.livestream.v1.GetClipRequest; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; + +public class SyncGetClip { + + public static void main(String[] args) throws Exception { + syncGetClip(); + } + + public static void syncGetClip() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + GetClipRequest request = + GetClipRequest.newBuilder() + .setName(ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString()) + .build(); + Clip response = livestreamServiceClient.getClip(request); + } + } +} +// [END livestream_v1_generated_LivestreamService_GetClip_sync] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/getclip/SyncGetClipClipname.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/getclip/SyncGetClipClipname.java new file mode 100644 index 000000000000..3ac4c440c4ae --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/getclip/SyncGetClipClipname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_GetClip_Clipname_sync] +import com.google.cloud.video.livestream.v1.Clip; +import com.google.cloud.video.livestream.v1.ClipName; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; + +public class SyncGetClipClipname { + + public static void main(String[] args) throws Exception { + syncGetClipClipname(); + } + + public static void syncGetClipClipname() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + ClipName name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]"); + Clip response = livestreamServiceClient.getClip(name); + } + } +} +// [END livestream_v1_generated_LivestreamService_GetClip_Clipname_sync] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/getclip/SyncGetClipString.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/getclip/SyncGetClipString.java new file mode 100644 index 000000000000..ca6540985aa2 --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/getclip/SyncGetClipString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_GetClip_String_sync] +import com.google.cloud.video.livestream.v1.Clip; +import com.google.cloud.video.livestream.v1.ClipName; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; + +public class SyncGetClipString { + + public static void main(String[] args) throws Exception { + syncGetClipString(); + } + + public static void syncGetClipString() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + String name = ClipName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[CLIP]").toString(); + Clip response = livestreamServiceClient.getClip(name); + } + } +} +// [END livestream_v1_generated_LivestreamService_GetClip_String_sync] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/AsyncListClips.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/AsyncListClips.java new file mode 100644 index 000000000000..6d927d175a74 --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/AsyncListClips.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_ListClips_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.video.livestream.v1.ChannelName; +import com.google.cloud.video.livestream.v1.Clip; +import com.google.cloud.video.livestream.v1.ListClipsRequest; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; + +public class AsyncListClips { + + public static void main(String[] args) throws Exception { + asyncListClips(); + } + + public static void asyncListClips() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + ListClipsRequest request = + ListClipsRequest.newBuilder() + .setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = livestreamServiceClient.listClipsPagedCallable().futureCall(request); + // Do something. + for (Clip element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END livestream_v1_generated_LivestreamService_ListClips_async] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/AsyncListClipsPaged.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/AsyncListClipsPaged.java new file mode 100644 index 000000000000..a90485211576 --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/AsyncListClipsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_ListClips_Paged_async] +import com.google.cloud.video.livestream.v1.ChannelName; +import com.google.cloud.video.livestream.v1.Clip; +import com.google.cloud.video.livestream.v1.ListClipsRequest; +import com.google.cloud.video.livestream.v1.ListClipsResponse; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; +import com.google.common.base.Strings; + +public class AsyncListClipsPaged { + + public static void main(String[] args) throws Exception { + asyncListClipsPaged(); + } + + public static void asyncListClipsPaged() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + ListClipsRequest request = + ListClipsRequest.newBuilder() + .setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListClipsResponse response = livestreamServiceClient.listClipsCallable().call(request); + for (Clip element : response.getClipsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END livestream_v1_generated_LivestreamService_ListClips_Paged_async] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/SyncListClips.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/SyncListClips.java new file mode 100644 index 000000000000..bb8250879924 --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/SyncListClips.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_ListClips_sync] +import com.google.cloud.video.livestream.v1.ChannelName; +import com.google.cloud.video.livestream.v1.Clip; +import com.google.cloud.video.livestream.v1.ListClipsRequest; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; + +public class SyncListClips { + + public static void main(String[] args) throws Exception { + syncListClips(); + } + + public static void syncListClips() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + ListClipsRequest request = + ListClipsRequest.newBuilder() + .setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Clip element : livestreamServiceClient.listClips(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END livestream_v1_generated_LivestreamService_ListClips_sync] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/SyncListClipsChannelname.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/SyncListClipsChannelname.java new file mode 100644 index 000000000000..cb375d28fcc8 --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/SyncListClipsChannelname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_ListClips_Channelname_sync] +import com.google.cloud.video.livestream.v1.ChannelName; +import com.google.cloud.video.livestream.v1.Clip; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; + +public class SyncListClipsChannelname { + + public static void main(String[] args) throws Exception { + syncListClipsChannelname(); + } + + public static void syncListClipsChannelname() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); + for (Clip element : livestreamServiceClient.listClips(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END livestream_v1_generated_LivestreamService_ListClips_Channelname_sync] diff --git a/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/SyncListClipsString.java b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/SyncListClipsString.java new file mode 100644 index 000000000000..683c01e48a3a --- /dev/null +++ b/java-video-live-stream/samples/snippets/generated/com/google/cloud/video/livestream/v1/livestreamservice/listclips/SyncListClipsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.livestream.v1.samples; + +// [START livestream_v1_generated_LivestreamService_ListClips_String_sync] +import com.google.cloud.video.livestream.v1.ChannelName; +import com.google.cloud.video.livestream.v1.Clip; +import com.google.cloud.video.livestream.v1.LivestreamServiceClient; + +public class SyncListClipsString { + + public static void main(String[] args) throws Exception { + syncListClipsString(); + } + + public static void syncListClipsString() throws Exception { + // 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { + String parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString(); + for (Clip element : livestreamServiceClient.listClips(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END livestream_v1_generated_LivestreamService_ListClips_String_sync] diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index 1d94ba0d6c48..9fb580156e8d 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/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-video-stitcher.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.46.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-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java index e7e194d964c1..dcb94864696b 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.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; @@ -896,6 +897,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "videostitcher.googleapis.com:443"; } diff --git a/java-video-transcoder/README.md b/java-video-transcoder/README.md index 81f9f628d9d8..202233932935 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/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-video-transcoder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.45.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-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java b/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java index ea5598aba03e..d7f0b3cc051b 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java +++ b/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.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 "transcoder.googleapis.com:443"; } diff --git a/java-vision/README.md b/java-vision/README.md index 23730065573b..1dacc3688608 100644 --- a/java-vision/README.md +++ b/java-vision/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-vision.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.44.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-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java index 4b6532dd76f5..456dca5e79a1 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -184,6 +185,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "vision.googleapis.com:443"; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java index f79ca3d49a73..8a794ca1acb6 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.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; @@ -560,6 +561,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "vision.googleapis.com:443"; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java index 9d30ef65c45f..7540e7961c80 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -129,6 +130,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "vision.googleapis.com:443"; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java index 2aca095388ec..13905dd0e8c6 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -155,6 +156,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "vision.googleapis.com:443"; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java index 0a3da15e34b9..f7ee8ba30532 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -155,6 +156,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "vision.googleapis.com:443"; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java index 0ceff098d276..4c7c5480c61a 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.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; @@ -546,6 +547,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "vision.googleapis.com:443"; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java index b7eb8574f629..9eee93960510 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -185,6 +186,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "vision.googleapis.com:443"; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java index 549fc2fec095..212fa0093f00 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.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; @@ -561,6 +562,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "vision.googleapis.com:443"; } diff --git a/java-visionai/README.md b/java-visionai/README.md index 1d355a388361..654a09541bdb 100644 --- a/java-visionai/README.md +++ b/java-visionai/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.cloud/google-cloud-visionai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.3.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-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/AppPlatformStubSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/AppPlatformStubSettings.java index 31e0002a34d0..db8e5565097a 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/AppPlatformStubSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/AppPlatformStubSettings.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; @@ -738,6 +739,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "visionai.googleapis.com:443"; } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/HealthCheckServiceStubSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/HealthCheckServiceStubSettings.java index f99fdfdf61f9..a109a4f7570e 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/HealthCheckServiceStubSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/HealthCheckServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -123,6 +124,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "visionai.googleapis.com:443"; } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/LiveVideoAnalyticsStubSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/LiveVideoAnalyticsStubSettings.java index 1e7bc2cbc7a4..f43824f8e63f 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/LiveVideoAnalyticsStubSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/LiveVideoAnalyticsStubSettings.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; @@ -586,6 +587,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "visionai.googleapis.com:443"; } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamingServiceStubSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamingServiceStubSettings.java index 339e62225002..8cf4610c333f 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamingServiceStubSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamingServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -166,6 +167,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "visionai.googleapis.com:443"; } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamsServiceStubSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamsServiceStubSettings.java index 3cf78e3feb84..7798cdf2226a 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamsServiceStubSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamsServiceStubSettings.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; @@ -643,6 +644,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "visionai.googleapis.com:443"; } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/WarehouseStubSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/WarehouseStubSettings.java index c5dce1302009..898373869e9f 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/WarehouseStubSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/WarehouseStubSettings.java @@ -33,6 +33,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; @@ -1605,6 +1606,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "visionai.googleapis.com:443"; } diff --git a/java-vmmigration/README.md b/java-vmmigration/README.md index bd25747021b1..248744087736 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/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-vmmigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.46.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-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java index e67ad7b8e87c..5a364ea631ed 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java @@ -30,6 +30,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; @@ -1399,6 +1400,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "vmmigration.googleapis.com:443"; } diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index 8c072261ed13..66b4e11d5059 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/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.cloud/google-cloud-vmwareengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.40.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-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java index 9a517cb909a5..22bad4dfc4de 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java @@ -38,6 +38,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; @@ -2409,6 +2410,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "vmwareengine.googleapis.com:443"; } diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/resources/META-INF/native-image/com.google.cloud.vmwareengine.v1/reflect-config.json b/java-vmwareengine/google-cloud-vmwareengine/src/main/resources/META-INF/native-image/com.google.cloud.vmwareengine.v1/reflect-config.json index 7fb39f1a56ef..0feda37e3dbe 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/src/main/resources/META-INF/native-image/com.google.cloud.vmwareengine.v1/reflect-config.json +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/resources/META-INF/native-image/com.google.cloud.vmwareengine.v1/reflect-config.json @@ -404,6 +404,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, @@ -476,6 +494,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.vmwareengine.v1.AutoscalingSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.AutoscalingSettings$AutoscalingPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.AutoscalingSettings$AutoscalingPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.AutoscalingSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.AutoscalingSettings$Thresholds", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vmwareengine.v1.AutoscalingSettings$Thresholds$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vmwareengine.v1.Cluster", "queryAllDeclaredConstructors": true, diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientHttpJsonTest.java b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientHttpJsonTest.java index b4449c6a0ea9..f2aa7f9d5758 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientHttpJsonTest.java +++ b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientHttpJsonTest.java @@ -894,6 +894,7 @@ public void getClusterTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setManagement(true) + .setAutoscalingSettings(AutoscalingSettings.newBuilder().build()) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) @@ -946,6 +947,7 @@ public void getClusterTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setManagement(true) + .setAutoscalingSettings(AutoscalingSettings.newBuilder().build()) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) @@ -1000,6 +1002,7 @@ public void createClusterTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setManagement(true) + .setAutoscalingSettings(AutoscalingSettings.newBuilder().build()) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) @@ -1061,6 +1064,7 @@ public void createClusterTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setManagement(true) + .setAutoscalingSettings(AutoscalingSettings.newBuilder().build()) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) @@ -1123,6 +1127,7 @@ public void updateClusterTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setManagement(true) + .setAutoscalingSettings(AutoscalingSettings.newBuilder().build()) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) @@ -1143,6 +1148,7 @@ public void updateClusterTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setManagement(true) + .setAutoscalingSettings(AutoscalingSettings.newBuilder().build()) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) @@ -1183,6 +1189,7 @@ public void updateClusterExceptionTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setManagement(true) + .setAutoscalingSettings(AutoscalingSettings.newBuilder().build()) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientTest.java b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientTest.java index cd0cb1c72d9b..40b32c93a729 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientTest.java +++ b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientTest.java @@ -824,6 +824,7 @@ public void getClusterTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setManagement(true) + .setAutoscalingSettings(AutoscalingSettings.newBuilder().build()) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) @@ -870,6 +871,7 @@ public void getClusterTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setManagement(true) + .setAutoscalingSettings(AutoscalingSettings.newBuilder().build()) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) @@ -916,6 +918,7 @@ public void createClusterTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setManagement(true) + .setAutoscalingSettings(AutoscalingSettings.newBuilder().build()) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) @@ -976,6 +979,7 @@ public void createClusterTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setManagement(true) + .setAutoscalingSettings(AutoscalingSettings.newBuilder().build()) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) @@ -1036,6 +1040,7 @@ public void updateClusterTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setManagement(true) + .setAutoscalingSettings(AutoscalingSettings.newBuilder().build()) .setUid("uid115792") .putAllNodeTypeConfigs(new HashMap()) .setStretchedClusterConfig(StretchedClusterConfig.newBuilder().build()) diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/AutoscalingSettings.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/AutoscalingSettings.java new file mode 100644 index 000000000000..51260543d627 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/AutoscalingSettings.java @@ -0,0 +1,4492 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine_resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
                  + * Autoscaling settings define the rules used by VMware Engine to
                  + * automatically scale-out and scale-in the clusters in a private cloud.
                  + * 
                  + * + * Protobuf type {@code google.cloud.vmwareengine.v1.AutoscalingSettings} + */ +public final class AutoscalingSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.AutoscalingSettings) + AutoscalingSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutoscalingSettings.newBuilder() to construct. + private AutoscalingSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutoscalingSettings() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutoscalingSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetAutoscalingPolicies(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.class, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Builder.class); + } + + public interface ThresholdsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +     * Required. The utilization triggering the scale-out operation in percent.
                  +     * 
                  + * + * int32 scale_out = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scaleOut. + */ + int getScaleOut(); + + /** + * + * + *
                  +     * Required. The utilization triggering the scale-in operation in percent.
                  +     * 
                  + * + * int32 scale_in = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scaleIn. + */ + int getScaleIn(); + } + /** + * + * + *
                  +   * Thresholds define the utilization of resources triggering
                  +   * scale-out and scale-in operations.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds} + */ + public static final class Thresholds extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds) + ThresholdsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Thresholds.newBuilder() to construct. + private Thresholds(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Thresholds() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Thresholds(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_Thresholds_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_Thresholds_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.class, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder.class); + } + + public static final int SCALE_OUT_FIELD_NUMBER = 1; + private int scaleOut_ = 0; + /** + * + * + *
                  +     * Required. The utilization triggering the scale-out operation in percent.
                  +     * 
                  + * + * int32 scale_out = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scaleOut. + */ + @java.lang.Override + public int getScaleOut() { + return scaleOut_; + } + + public static final int SCALE_IN_FIELD_NUMBER = 2; + private int scaleIn_ = 0; + /** + * + * + *
                  +     * Required. The utilization triggering the scale-in operation in percent.
                  +     * 
                  + * + * int32 scale_in = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scaleIn. + */ + @java.lang.Override + public int getScaleIn() { + return scaleIn_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (scaleOut_ != 0) { + output.writeInt32(1, scaleOut_); + } + if (scaleIn_ != 0) { + output.writeInt32(2, scaleIn_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scaleOut_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, scaleOut_); + } + if (scaleIn_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, scaleIn_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds other = + (com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds) obj; + + if (getScaleOut() != other.getScaleOut()) return false; + if (getScaleIn() != other.getScaleIn()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCALE_OUT_FIELD_NUMBER; + hash = (53 * hash) + getScaleOut(); + hash = (37 * hash) + SCALE_IN_FIELD_NUMBER; + hash = (53 * hash) + getScaleIn(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +     * Thresholds define the utilization of resources triggering
                  +     * scale-out and scale-in operations.
                  +     * 
                  + * + * Protobuf type {@code google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds) + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_Thresholds_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_Thresholds_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.class, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder.class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scaleOut_ = 0; + scaleIn_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_Thresholds_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds build() { + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds buildPartial() { + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds result = + new com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scaleOut_ = scaleOut_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scaleIn_ = scaleIn_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds) { + return mergeFrom((com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds other) { + if (other + == com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance()) + return this; + if (other.getScaleOut() != 0) { + setScaleOut(other.getScaleOut()); + } + if (other.getScaleIn() != 0) { + setScaleIn(other.getScaleIn()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + scaleOut_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + scaleIn_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int scaleOut_; + /** + * + * + *
                  +       * Required. The utilization triggering the scale-out operation in percent.
                  +       * 
                  + * + * int32 scale_out = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scaleOut. + */ + @java.lang.Override + public int getScaleOut() { + return scaleOut_; + } + /** + * + * + *
                  +       * Required. The utilization triggering the scale-out operation in percent.
                  +       * 
                  + * + * int32 scale_out = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The scaleOut to set. + * @return This builder for chaining. + */ + public Builder setScaleOut(int value) { + + scaleOut_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Required. The utilization triggering the scale-out operation in percent.
                  +       * 
                  + * + * int32 scale_out = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearScaleOut() { + bitField0_ = (bitField0_ & ~0x00000001); + scaleOut_ = 0; + onChanged(); + return this; + } + + private int scaleIn_; + /** + * + * + *
                  +       * Required. The utilization triggering the scale-in operation in percent.
                  +       * 
                  + * + * int32 scale_in = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scaleIn. + */ + @java.lang.Override + public int getScaleIn() { + return scaleIn_; + } + /** + * + * + *
                  +       * Required. The utilization triggering the scale-in operation in percent.
                  +       * 
                  + * + * int32 scale_in = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The scaleIn to set. + * @return This builder for chaining. + */ + public Builder setScaleIn(int value) { + + scaleIn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Required. The utilization triggering the scale-in operation in percent.
                  +       * 
                  + * + * int32 scale_in = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearScaleIn() { + bitField0_ = (bitField0_ & ~0x00000002); + scaleIn_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds) + private static final com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds(); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Thresholds parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AutoscalingPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +     * Required. The canonical identifier of the node type to add or remove.
                  +     * Corresponds to the `NodeType`.
                  +     * 
                  + * + * string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeTypeId. + */ + java.lang.String getNodeTypeId(); + /** + * + * + *
                  +     * Required. The canonical identifier of the node type to add or remove.
                  +     * Corresponds to the `NodeType`.
                  +     * 
                  + * + * string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeTypeId. + */ + com.google.protobuf.ByteString getNodeTypeIdBytes(); + + /** + * + * + *
                  +     * Required. Number of nodes to add to a cluster during a scale-out
                  +     * operation. Must be divisible by 2 for stretched clusters. During a
                  +     * scale-in operation only one node (or 2 for stretched clusters) are
                  +     * removed in a single iteration.
                  +     * 
                  + * + * int32 scale_out_size = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scaleOutSize. + */ + int getScaleOutSize(); + + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to CPU utilization.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cpuThresholds field is set. + */ + boolean hasCpuThresholds(); + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to CPU utilization.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cpuThresholds. + */ + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds getCpuThresholds(); + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to CPU utilization.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder + getCpuThresholdsOrBuilder(); + + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the grantedMemoryThresholds field is set. + */ + boolean hasGrantedMemoryThresholds(); + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The grantedMemoryThresholds. + */ + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds getGrantedMemoryThresholds(); + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder + getGrantedMemoryThresholdsOrBuilder(); + + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the consumedMemoryThresholds field is set. + */ + boolean hasConsumedMemoryThresholds(); + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The consumedMemoryThresholds. + */ + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds getConsumedMemoryThresholds(); + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder + getConsumedMemoryThresholdsOrBuilder(); + + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of consumed
                  +     * storage.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the storageThresholds field is set. + */ + boolean hasStorageThresholds(); + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of consumed
                  +     * storage.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The storageThresholds. + */ + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds getStorageThresholds(); + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of consumed
                  +     * storage.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder + getStorageThresholdsOrBuilder(); + } + /** + * + * + *
                  +   * Autoscaling policy describes the behavior of the autoscaling
                  +   * with respect to the resource utilization.
                  +   * The scale-out operation is initiated if the utilization
                  +   * exceeds ANY of the respective thresholds.
                  +   * The scale-in operation is initiated if the utilization
                  +   * is below ALL of the respective thresholds.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy} + */ + public static final class AutoscalingPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy) + AutoscalingPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutoscalingPolicy.newBuilder() to construct. + private AutoscalingPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutoscalingPolicy() { + nodeTypeId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutoscalingPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy.class, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy.Builder.class); + } + + private int bitField0_; + public static final int NODE_TYPE_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object nodeTypeId_ = ""; + /** + * + * + *
                  +     * Required. The canonical identifier of the node type to add or remove.
                  +     * Corresponds to the `NodeType`.
                  +     * 
                  + * + * string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeTypeId. + */ + @java.lang.Override + public java.lang.String getNodeTypeId() { + java.lang.Object ref = nodeTypeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeTypeId_ = s; + return s; + } + } + /** + * + * + *
                  +     * Required. The canonical identifier of the node type to add or remove.
                  +     * Corresponds to the `NodeType`.
                  +     * 
                  + * + * string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeTypeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeTypeIdBytes() { + java.lang.Object ref = nodeTypeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeTypeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCALE_OUT_SIZE_FIELD_NUMBER = 2; + private int scaleOutSize_ = 0; + /** + * + * + *
                  +     * Required. Number of nodes to add to a cluster during a scale-out
                  +     * operation. Must be divisible by 2 for stretched clusters. During a
                  +     * scale-in operation only one node (or 2 for stretched clusters) are
                  +     * removed in a single iteration.
                  +     * 
                  + * + * int32 scale_out_size = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scaleOutSize. + */ + @java.lang.Override + public int getScaleOutSize() { + return scaleOutSize_; + } + + public static final int CPU_THRESHOLDS_FIELD_NUMBER = 11; + private com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpuThresholds_; + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to CPU utilization.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cpuThresholds field is set. + */ + @java.lang.Override + public boolean hasCpuThresholds() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to CPU utilization.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cpuThresholds. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds getCpuThresholds() { + return cpuThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : cpuThresholds_; + } + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to CPU utilization.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder + getCpuThresholdsOrBuilder() { + return cpuThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : cpuThresholds_; + } + + public static final int GRANTED_MEMORY_THRESHOLDS_FIELD_NUMBER = 12; + private com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + grantedMemoryThresholds_; + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the grantedMemoryThresholds field is set. + */ + @java.lang.Override + public boolean hasGrantedMemoryThresholds() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The grantedMemoryThresholds. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + getGrantedMemoryThresholds() { + return grantedMemoryThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : grantedMemoryThresholds_; + } + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder + getGrantedMemoryThresholdsOrBuilder() { + return grantedMemoryThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : grantedMemoryThresholds_; + } + + public static final int CONSUMED_MEMORY_THRESHOLDS_FIELD_NUMBER = 13; + private com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + consumedMemoryThresholds_; + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the consumedMemoryThresholds field is set. + */ + @java.lang.Override + public boolean hasConsumedMemoryThresholds() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The consumedMemoryThresholds. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + getConsumedMemoryThresholds() { + return consumedMemoryThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : consumedMemoryThresholds_; + } + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder + getConsumedMemoryThresholdsOrBuilder() { + return consumedMemoryThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : consumedMemoryThresholds_; + } + + public static final int STORAGE_THRESHOLDS_FIELD_NUMBER = 14; + private com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storageThresholds_; + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of consumed
                  +     * storage.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the storageThresholds field is set. + */ + @java.lang.Override + public boolean hasStorageThresholds() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of consumed
                  +     * storage.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The storageThresholds. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds getStorageThresholds() { + return storageThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : storageThresholds_; + } + /** + * + * + *
                  +     * Optional. Utilization thresholds pertaining to amount of consumed
                  +     * storage.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder + getStorageThresholdsOrBuilder() { + return storageThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : storageThresholds_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeTypeId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeTypeId_); + } + if (scaleOutSize_ != 0) { + output.writeInt32(2, scaleOutSize_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(11, getCpuThresholds()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(12, getGrantedMemoryThresholds()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(13, getConsumedMemoryThresholds()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(14, getStorageThresholds()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeTypeId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeTypeId_); + } + if (scaleOutSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, scaleOutSize_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCpuThresholds()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, getGrantedMemoryThresholds()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, getConsumedMemoryThresholds()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, getStorageThresholds()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy other = + (com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy) obj; + + if (!getNodeTypeId().equals(other.getNodeTypeId())) return false; + if (getScaleOutSize() != other.getScaleOutSize()) return false; + if (hasCpuThresholds() != other.hasCpuThresholds()) return false; + if (hasCpuThresholds()) { + if (!getCpuThresholds().equals(other.getCpuThresholds())) return false; + } + if (hasGrantedMemoryThresholds() != other.hasGrantedMemoryThresholds()) return false; + if (hasGrantedMemoryThresholds()) { + if (!getGrantedMemoryThresholds().equals(other.getGrantedMemoryThresholds())) return false; + } + if (hasConsumedMemoryThresholds() != other.hasConsumedMemoryThresholds()) return false; + if (hasConsumedMemoryThresholds()) { + if (!getConsumedMemoryThresholds().equals(other.getConsumedMemoryThresholds())) + return false; + } + if (hasStorageThresholds() != other.hasStorageThresholds()) return false; + if (hasStorageThresholds()) { + if (!getStorageThresholds().equals(other.getStorageThresholds())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NODE_TYPE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeTypeId().hashCode(); + hash = (37 * hash) + SCALE_OUT_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getScaleOutSize(); + if (hasCpuThresholds()) { + hash = (37 * hash) + CPU_THRESHOLDS_FIELD_NUMBER; + hash = (53 * hash) + getCpuThresholds().hashCode(); + } + if (hasGrantedMemoryThresholds()) { + hash = (37 * hash) + GRANTED_MEMORY_THRESHOLDS_FIELD_NUMBER; + hash = (53 * hash) + getGrantedMemoryThresholds().hashCode(); + } + if (hasConsumedMemoryThresholds()) { + hash = (37 * hash) + CONSUMED_MEMORY_THRESHOLDS_FIELD_NUMBER; + hash = (53 * hash) + getConsumedMemoryThresholds().hashCode(); + } + if (hasStorageThresholds()) { + hash = (37 * hash) + STORAGE_THRESHOLDS_FIELD_NUMBER; + hash = (53 * hash) + getStorageThresholds().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +     * Autoscaling policy describes the behavior of the autoscaling
                  +     * with respect to the resource utilization.
                  +     * The scale-out operation is initiated if the utilization
                  +     * exceeds ANY of the respective thresholds.
                  +     * The scale-in operation is initiated if the utilization
                  +     * is below ALL of the respective thresholds.
                  +     * 
                  + * + * Protobuf type {@code google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy) + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy.class, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy.Builder + .class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCpuThresholdsFieldBuilder(); + getGrantedMemoryThresholdsFieldBuilder(); + getConsumedMemoryThresholdsFieldBuilder(); + getStorageThresholdsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nodeTypeId_ = ""; + scaleOutSize_ = 0; + cpuThresholds_ = null; + if (cpuThresholdsBuilder_ != null) { + cpuThresholdsBuilder_.dispose(); + cpuThresholdsBuilder_ = null; + } + grantedMemoryThresholds_ = null; + if (grantedMemoryThresholdsBuilder_ != null) { + grantedMemoryThresholdsBuilder_.dispose(); + grantedMemoryThresholdsBuilder_ = null; + } + consumedMemoryThresholds_ = null; + if (consumedMemoryThresholdsBuilder_ != null) { + consumedMemoryThresholdsBuilder_.dispose(); + consumedMemoryThresholdsBuilder_ = null; + } + storageThresholds_ = null; + if (storageThresholdsBuilder_ != null) { + storageThresholdsBuilder_.dispose(); + storageThresholdsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy build() { + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy buildPartial() { + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy result = + new com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nodeTypeId_ = nodeTypeId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scaleOutSize_ = scaleOutSize_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cpuThresholds_ = + cpuThresholdsBuilder_ == null ? cpuThresholds_ : cpuThresholdsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.grantedMemoryThresholds_ = + grantedMemoryThresholdsBuilder_ == null + ? grantedMemoryThresholds_ + : grantedMemoryThresholdsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.consumedMemoryThresholds_ = + consumedMemoryThresholdsBuilder_ == null + ? consumedMemoryThresholds_ + : consumedMemoryThresholdsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.storageThresholds_ = + storageThresholdsBuilder_ == null + ? storageThresholds_ + : storageThresholdsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy) { + return mergeFrom( + (com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy other) { + if (other + == com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + .getDefaultInstance()) return this; + if (!other.getNodeTypeId().isEmpty()) { + nodeTypeId_ = other.nodeTypeId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getScaleOutSize() != 0) { + setScaleOutSize(other.getScaleOutSize()); + } + if (other.hasCpuThresholds()) { + mergeCpuThresholds(other.getCpuThresholds()); + } + if (other.hasGrantedMemoryThresholds()) { + mergeGrantedMemoryThresholds(other.getGrantedMemoryThresholds()); + } + if (other.hasConsumedMemoryThresholds()) { + mergeConsumedMemoryThresholds(other.getConsumedMemoryThresholds()); + } + if (other.hasStorageThresholds()) { + mergeStorageThresholds(other.getStorageThresholds()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + nodeTypeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + scaleOutSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 90: + { + input.readMessage(getCpuThresholdsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 90 + case 98: + { + input.readMessage( + getGrantedMemoryThresholdsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 98 + case 106: + { + input.readMessage( + getConsumedMemoryThresholdsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 106 + case 114: + { + input.readMessage( + getStorageThresholdsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object nodeTypeId_ = ""; + /** + * + * + *
                  +       * Required. The canonical identifier of the node type to add or remove.
                  +       * Corresponds to the `NodeType`.
                  +       * 
                  + * + * string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeTypeId. + */ + public java.lang.String getNodeTypeId() { + java.lang.Object ref = nodeTypeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeTypeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                  +       * Required. The canonical identifier of the node type to add or remove.
                  +       * Corresponds to the `NodeType`.
                  +       * 
                  + * + * string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeTypeId. + */ + public com.google.protobuf.ByteString getNodeTypeIdBytes() { + java.lang.Object ref = nodeTypeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeTypeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                  +       * Required. The canonical identifier of the node type to add or remove.
                  +       * Corresponds to the `NodeType`.
                  +       * 
                  + * + * string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The nodeTypeId to set. + * @return This builder for chaining. + */ + public Builder setNodeTypeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nodeTypeId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Required. The canonical identifier of the node type to add or remove.
                  +       * Corresponds to the `NodeType`.
                  +       * 
                  + * + * string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNodeTypeId() { + nodeTypeId_ = getDefaultInstance().getNodeTypeId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                  +       * Required. The canonical identifier of the node type to add or remove.
                  +       * Corresponds to the `NodeType`.
                  +       * 
                  + * + * string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for nodeTypeId to set. + * @return This builder for chaining. + */ + public Builder setNodeTypeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeTypeId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int scaleOutSize_; + /** + * + * + *
                  +       * Required. Number of nodes to add to a cluster during a scale-out
                  +       * operation. Must be divisible by 2 for stretched clusters. During a
                  +       * scale-in operation only one node (or 2 for stretched clusters) are
                  +       * removed in a single iteration.
                  +       * 
                  + * + * int32 scale_out_size = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scaleOutSize. + */ + @java.lang.Override + public int getScaleOutSize() { + return scaleOutSize_; + } + /** + * + * + *
                  +       * Required. Number of nodes to add to a cluster during a scale-out
                  +       * operation. Must be divisible by 2 for stretched clusters. During a
                  +       * scale-in operation only one node (or 2 for stretched clusters) are
                  +       * removed in a single iteration.
                  +       * 
                  + * + * int32 scale_out_size = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The scaleOutSize to set. + * @return This builder for chaining. + */ + public Builder setScaleOutSize(int value) { + + scaleOutSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Required. Number of nodes to add to a cluster during a scale-out
                  +       * operation. Must be divisible by 2 for stretched clusters. During a
                  +       * scale-in operation only one node (or 2 for stretched clusters) are
                  +       * removed in a single iteration.
                  +       * 
                  + * + * int32 scale_out_size = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearScaleOutSize() { + bitField0_ = (bitField0_ & ~0x00000002); + scaleOutSize_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpuThresholds_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder> + cpuThresholdsBuilder_; + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to CPU utilization.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cpuThresholds field is set. + */ + public boolean hasCpuThresholds() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to CPU utilization.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cpuThresholds. + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds getCpuThresholds() { + if (cpuThresholdsBuilder_ == null) { + return cpuThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : cpuThresholds_; + } else { + return cpuThresholdsBuilder_.getMessage(); + } + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to CPU utilization.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCpuThresholds( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds value) { + if (cpuThresholdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cpuThresholds_ = value; + } else { + cpuThresholdsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to CPU utilization.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCpuThresholds( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder builderForValue) { + if (cpuThresholdsBuilder_ == null) { + cpuThresholds_ = builderForValue.build(); + } else { + cpuThresholdsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to CPU utilization.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCpuThresholds( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds value) { + if (cpuThresholdsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && cpuThresholds_ != null + && cpuThresholds_ + != com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + .getDefaultInstance()) { + getCpuThresholdsBuilder().mergeFrom(value); + } else { + cpuThresholds_ = value; + } + } else { + cpuThresholdsBuilder_.mergeFrom(value); + } + if (cpuThresholds_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to CPU utilization.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCpuThresholds() { + bitField0_ = (bitField0_ & ~0x00000004); + cpuThresholds_ = null; + if (cpuThresholdsBuilder_ != null) { + cpuThresholdsBuilder_.dispose(); + cpuThresholdsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to CPU utilization.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder + getCpuThresholdsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCpuThresholdsFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to CPU utilization.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder + getCpuThresholdsOrBuilder() { + if (cpuThresholdsBuilder_ != null) { + return cpuThresholdsBuilder_.getMessageOrBuilder(); + } else { + return cpuThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : cpuThresholds_; + } + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to CPU utilization.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder> + getCpuThresholdsFieldBuilder() { + if (cpuThresholdsBuilder_ == null) { + cpuThresholdsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder>( + getCpuThresholds(), getParentForChildren(), isClean()); + cpuThresholds_ = null; + } + return cpuThresholdsBuilder_; + } + + private com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + grantedMemoryThresholds_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder> + grantedMemoryThresholdsBuilder_; + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the grantedMemoryThresholds field is set. + */ + public boolean hasGrantedMemoryThresholds() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The grantedMemoryThresholds. + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + getGrantedMemoryThresholds() { + if (grantedMemoryThresholdsBuilder_ == null) { + return grantedMemoryThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : grantedMemoryThresholds_; + } else { + return grantedMemoryThresholdsBuilder_.getMessage(); + } + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGrantedMemoryThresholds( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds value) { + if (grantedMemoryThresholdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + grantedMemoryThresholds_ = value; + } else { + grantedMemoryThresholdsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGrantedMemoryThresholds( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder builderForValue) { + if (grantedMemoryThresholdsBuilder_ == null) { + grantedMemoryThresholds_ = builderForValue.build(); + } else { + grantedMemoryThresholdsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGrantedMemoryThresholds( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds value) { + if (grantedMemoryThresholdsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && grantedMemoryThresholds_ != null + && grantedMemoryThresholds_ + != com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + .getDefaultInstance()) { + getGrantedMemoryThresholdsBuilder().mergeFrom(value); + } else { + grantedMemoryThresholds_ = value; + } + } else { + grantedMemoryThresholdsBuilder_.mergeFrom(value); + } + if (grantedMemoryThresholds_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGrantedMemoryThresholds() { + bitField0_ = (bitField0_ & ~0x00000008); + grantedMemoryThresholds_ = null; + if (grantedMemoryThresholdsBuilder_ != null) { + grantedMemoryThresholdsBuilder_.dispose(); + grantedMemoryThresholdsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder + getGrantedMemoryThresholdsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getGrantedMemoryThresholdsFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder + getGrantedMemoryThresholdsOrBuilder() { + if (grantedMemoryThresholdsBuilder_ != null) { + return grantedMemoryThresholdsBuilder_.getMessageOrBuilder(); + } else { + return grantedMemoryThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : grantedMemoryThresholds_; + } + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of granted memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder> + getGrantedMemoryThresholdsFieldBuilder() { + if (grantedMemoryThresholdsBuilder_ == null) { + grantedMemoryThresholdsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder>( + getGrantedMemoryThresholds(), getParentForChildren(), isClean()); + grantedMemoryThresholds_ = null; + } + return grantedMemoryThresholdsBuilder_; + } + + private com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + consumedMemoryThresholds_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder> + consumedMemoryThresholdsBuilder_; + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the consumedMemoryThresholds field is set. + */ + public boolean hasConsumedMemoryThresholds() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The consumedMemoryThresholds. + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + getConsumedMemoryThresholds() { + if (consumedMemoryThresholdsBuilder_ == null) { + return consumedMemoryThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : consumedMemoryThresholds_; + } else { + return consumedMemoryThresholdsBuilder_.getMessage(); + } + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConsumedMemoryThresholds( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds value) { + if (consumedMemoryThresholdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + consumedMemoryThresholds_ = value; + } else { + consumedMemoryThresholdsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConsumedMemoryThresholds( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder builderForValue) { + if (consumedMemoryThresholdsBuilder_ == null) { + consumedMemoryThresholds_ = builderForValue.build(); + } else { + consumedMemoryThresholdsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConsumedMemoryThresholds( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds value) { + if (consumedMemoryThresholdsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && consumedMemoryThresholds_ != null + && consumedMemoryThresholds_ + != com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + .getDefaultInstance()) { + getConsumedMemoryThresholdsBuilder().mergeFrom(value); + } else { + consumedMemoryThresholds_ = value; + } + } else { + consumedMemoryThresholdsBuilder_.mergeFrom(value); + } + if (consumedMemoryThresholds_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConsumedMemoryThresholds() { + bitField0_ = (bitField0_ & ~0x00000010); + consumedMemoryThresholds_ = null; + if (consumedMemoryThresholdsBuilder_ != null) { + consumedMemoryThresholdsBuilder_.dispose(); + consumedMemoryThresholdsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder + getConsumedMemoryThresholdsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getConsumedMemoryThresholdsFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder + getConsumedMemoryThresholdsOrBuilder() { + if (consumedMemoryThresholdsBuilder_ != null) { + return consumedMemoryThresholdsBuilder_.getMessageOrBuilder(); + } else { + return consumedMemoryThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : consumedMemoryThresholds_; + } + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed memory.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder> + getConsumedMemoryThresholdsFieldBuilder() { + if (consumedMemoryThresholdsBuilder_ == null) { + consumedMemoryThresholdsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder>( + getConsumedMemoryThresholds(), getParentForChildren(), isClean()); + consumedMemoryThresholds_ = null; + } + return consumedMemoryThresholdsBuilder_; + } + + private com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storageThresholds_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder> + storageThresholdsBuilder_; + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed
                  +       * storage.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the storageThresholds field is set. + */ + public boolean hasStorageThresholds() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed
                  +       * storage.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The storageThresholds. + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + getStorageThresholds() { + if (storageThresholdsBuilder_ == null) { + return storageThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : storageThresholds_; + } else { + return storageThresholdsBuilder_.getMessage(); + } + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed
                  +       * storage.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStorageThresholds( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds value) { + if (storageThresholdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + storageThresholds_ = value; + } else { + storageThresholdsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed
                  +       * storage.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStorageThresholds( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder builderForValue) { + if (storageThresholdsBuilder_ == null) { + storageThresholds_ = builderForValue.build(); + } else { + storageThresholdsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed
                  +       * storage.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStorageThresholds( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds value) { + if (storageThresholdsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && storageThresholds_ != null + && storageThresholds_ + != com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + .getDefaultInstance()) { + getStorageThresholdsBuilder().mergeFrom(value); + } else { + storageThresholds_ = value; + } + } else { + storageThresholdsBuilder_.mergeFrom(value); + } + if (storageThresholds_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed
                  +       * storage.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStorageThresholds() { + bitField0_ = (bitField0_ & ~0x00000020); + storageThresholds_ = null; + if (storageThresholdsBuilder_ != null) { + storageThresholdsBuilder_.dispose(); + storageThresholdsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed
                  +       * storage.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder + getStorageThresholdsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getStorageThresholdsFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed
                  +       * storage.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder + getStorageThresholdsOrBuilder() { + if (storageThresholdsBuilder_ != null) { + return storageThresholdsBuilder_.getMessageOrBuilder(); + } else { + return storageThresholds_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.getDefaultInstance() + : storageThresholds_; + } + } + /** + * + * + *
                  +       * Optional. Utilization thresholds pertaining to amount of consumed
                  +       * storage.
                  +       * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder> + getStorageThresholdsFieldBuilder() { + if (storageThresholdsBuilder_ == null) { + storageThresholdsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.ThresholdsOrBuilder>( + getStorageThresholds(), getParentForChildren(), isClean()); + storageThresholds_ = null; + } + return storageThresholdsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy) + private static final com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy(); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoscalingPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int AUTOSCALING_POLICIES_FIELD_NUMBER = 1; + + private static final class AutoscalingPoliciesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPoliciesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + autoscalingPolicies_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + internalGetAutoscalingPolicies() { + if (autoscalingPolicies_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AutoscalingPoliciesDefaultEntryHolder.defaultEntry); + } + return autoscalingPolicies_; + } + + public int getAutoscalingPoliciesCount() { + return internalGetAutoscalingPolicies().getMap().size(); + } + /** + * + * + *
                  +   * Required. The map with autoscaling policies applied to the cluster.
                  +   * The key is the identifier of the policy.
                  +   * It must meet the following requirements:
                  +   *
                  +   * * Only contains 1-63 alphanumeric characters and hyphens
                  +   * * Begins with an alphabetical character
                  +   * * Ends with a non-hyphen character
                  +   * * Not formatted as a UUID
                  +   * * Complies with [RFC
                  +   * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +   *
                  +   * Currently there map must contain only one element
                  +   * that describes the autoscaling policy for compute nodes.
                  +   * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsAutoscalingPolicies(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAutoscalingPolicies().getMap().containsKey(key); + } + /** Use {@link #getAutoscalingPoliciesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + getAutoscalingPolicies() { + return getAutoscalingPoliciesMap(); + } + /** + * + * + *
                  +   * Required. The map with autoscaling policies applied to the cluster.
                  +   * The key is the identifier of the policy.
                  +   * It must meet the following requirements:
                  +   *
                  +   * * Only contains 1-63 alphanumeric characters and hyphens
                  +   * * Begins with an alphabetical character
                  +   * * Ends with a non-hyphen character
                  +   * * Not formatted as a UUID
                  +   * * Complies with [RFC
                  +   * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +   *
                  +   * Currently there map must contain only one element
                  +   * that describes the autoscaling policy for compute nodes.
                  +   * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + getAutoscalingPoliciesMap() { + return internalGetAutoscalingPolicies().getMap(); + } + /** + * + * + *
                  +   * Required. The map with autoscaling policies applied to the cluster.
                  +   * The key is the identifier of the policy.
                  +   * It must meet the following requirements:
                  +   *
                  +   * * Only contains 1-63 alphanumeric characters and hyphens
                  +   * * Begins with an alphabetical character
                  +   * * Ends with a non-hyphen character
                  +   * * Not formatted as a UUID
                  +   * * Complies with [RFC
                  +   * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +   *
                  +   * Currently there map must contain only one element
                  +   * that describes the autoscaling policy for compute nodes.
                  +   * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + getAutoscalingPoliciesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + map = internalGetAutoscalingPolicies().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
                  +   * Required. The map with autoscaling policies applied to the cluster.
                  +   * The key is the identifier of the policy.
                  +   * It must meet the following requirements:
                  +   *
                  +   * * Only contains 1-63 alphanumeric characters and hyphens
                  +   * * Begins with an alphabetical character
                  +   * * Ends with a non-hyphen character
                  +   * * Not formatted as a UUID
                  +   * * Complies with [RFC
                  +   * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +   *
                  +   * Currently there map must contain only one element
                  +   * that describes the autoscaling policy for compute nodes.
                  +   * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + getAutoscalingPoliciesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + map = internalGetAutoscalingPolicies().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int MIN_CLUSTER_NODE_COUNT_FIELD_NUMBER = 2; + private int minClusterNodeCount_ = 0; + /** + * + * + *
                  +   * Optional. Minimum number of nodes of any type in a cluster.
                  +   * If not specified the default limits apply.
                  +   * 
                  + * + * int32 min_cluster_node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minClusterNodeCount. + */ + @java.lang.Override + public int getMinClusterNodeCount() { + return minClusterNodeCount_; + } + + public static final int MAX_CLUSTER_NODE_COUNT_FIELD_NUMBER = 3; + private int maxClusterNodeCount_ = 0; + /** + * + * + *
                  +   * Optional. Maximum number of nodes of any type in a cluster.
                  +   * If not specified the default limits apply.
                  +   * 
                  + * + * int32 max_cluster_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxClusterNodeCount. + */ + @java.lang.Override + public int getMaxClusterNodeCount() { + return maxClusterNodeCount_; + } + + public static final int COOL_DOWN_PERIOD_FIELD_NUMBER = 4; + private com.google.protobuf.Duration coolDownPeriod_; + /** + * + * + *
                  +   * Optional. The minimum duration between consecutive autoscale operations.
                  +   * It starts once addition or removal of nodes is fully completed.
                  +   * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +   * minutes (for example, 30, 31, 50, 180 minutes).
                  +   * 
                  + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the coolDownPeriod field is set. + */ + @java.lang.Override + public boolean hasCoolDownPeriod() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                  +   * Optional. The minimum duration between consecutive autoscale operations.
                  +   * It starts once addition or removal of nodes is fully completed.
                  +   * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +   * minutes (for example, 30, 31, 50, 180 minutes).
                  +   * 
                  + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The coolDownPeriod. + */ + @java.lang.Override + public com.google.protobuf.Duration getCoolDownPeriod() { + return coolDownPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : coolDownPeriod_; + } + /** + * + * + *
                  +   * Optional. The minimum duration between consecutive autoscale operations.
                  +   * It starts once addition or removal of nodes is fully completed.
                  +   * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +   * minutes (for example, 30, 31, 50, 180 minutes).
                  +   * 
                  + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getCoolDownPeriodOrBuilder() { + return coolDownPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : coolDownPeriod_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetAutoscalingPolicies(), + AutoscalingPoliciesDefaultEntryHolder.defaultEntry, + 1); + if (minClusterNodeCount_ != 0) { + output.writeInt32(2, minClusterNodeCount_); + } + if (maxClusterNodeCount_ != 0) { + output.writeInt32(3, maxClusterNodeCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCoolDownPeriod()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + entry : internalGetAutoscalingPolicies().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + autoscalingPolicies__ = + AutoscalingPoliciesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, autoscalingPolicies__); + } + if (minClusterNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minClusterNodeCount_); + } + if (maxClusterNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxClusterNodeCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCoolDownPeriod()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.AutoscalingSettings)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.AutoscalingSettings other = + (com.google.cloud.vmwareengine.v1.AutoscalingSettings) obj; + + if (!internalGetAutoscalingPolicies().equals(other.internalGetAutoscalingPolicies())) + return false; + if (getMinClusterNodeCount() != other.getMinClusterNodeCount()) return false; + if (getMaxClusterNodeCount() != other.getMaxClusterNodeCount()) return false; + if (hasCoolDownPeriod() != other.hasCoolDownPeriod()) return false; + if (hasCoolDownPeriod()) { + if (!getCoolDownPeriod().equals(other.getCoolDownPeriod())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetAutoscalingPolicies().getMap().isEmpty()) { + hash = (37 * hash) + AUTOSCALING_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + internalGetAutoscalingPolicies().hashCode(); + } + hash = (37 * hash) + MIN_CLUSTER_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMinClusterNodeCount(); + hash = (37 * hash) + MAX_CLUSTER_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxClusterNodeCount(); + if (hasCoolDownPeriod()) { + hash = (37 * hash) + COOL_DOWN_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + getCoolDownPeriod().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.AutoscalingSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                  +   * Autoscaling settings define the rules used by VMware Engine to
                  +   * automatically scale-out and scale-in the clusters in a private cloud.
                  +   * 
                  + * + * Protobuf type {@code google.cloud.vmwareengine.v1.AutoscalingSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.AutoscalingSettings) + com.google.cloud.vmwareengine.v1.AutoscalingSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetAutoscalingPolicies(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableAutoscalingPolicies(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.class, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.AutoscalingSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCoolDownPeriodFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableAutoscalingPolicies().clear(); + minClusterNodeCount_ = 0; + maxClusterNodeCount_ = 0; + coolDownPeriod_ = null; + if (coolDownPeriodBuilder_ != null) { + coolDownPeriodBuilder_.dispose(); + coolDownPeriodBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto + .internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.AutoscalingSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings build() { + com.google.cloud.vmwareengine.v1.AutoscalingSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings buildPartial() { + com.google.cloud.vmwareengine.v1.AutoscalingSettings result = + new com.google.cloud.vmwareengine.v1.AutoscalingSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmwareengine.v1.AutoscalingSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.autoscalingPolicies_ = + internalGetAutoscalingPolicies() + .build(AutoscalingPoliciesDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minClusterNodeCount_ = minClusterNodeCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxClusterNodeCount_ = maxClusterNodeCount_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.coolDownPeriod_ = + coolDownPeriodBuilder_ == null ? coolDownPeriod_ : coolDownPeriodBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.AutoscalingSettings) { + return mergeFrom((com.google.cloud.vmwareengine.v1.AutoscalingSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.AutoscalingSettings other) { + if (other == com.google.cloud.vmwareengine.v1.AutoscalingSettings.getDefaultInstance()) + return this; + internalGetMutableAutoscalingPolicies().mergeFrom(other.internalGetAutoscalingPolicies()); + bitField0_ |= 0x00000001; + if (other.getMinClusterNodeCount() != 0) { + setMinClusterNodeCount(other.getMinClusterNodeCount()); + } + if (other.getMaxClusterNodeCount() != 0) { + setMaxClusterNodeCount(other.getMaxClusterNodeCount()); + } + if (other.hasCoolDownPeriod()) { + mergeCoolDownPeriod(other.getCoolDownPeriod()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + autoscalingPolicies__ = + input.readMessage( + AutoscalingPoliciesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAutoscalingPolicies() + .ensureBuilderMap() + .put(autoscalingPolicies__.getKey(), autoscalingPolicies__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + minClusterNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + maxClusterNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getCoolDownPeriodFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private static final class AutoscalingPoliciesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicyOrBuilder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> { + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy build( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicyOrBuilder val) { + if (val instanceof com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy) { + return (com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy) val; + } + return ((com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy.Builder) + val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + defaultEntry() { + return AutoscalingPoliciesDefaultEntryHolder.defaultEntry; + } + }; + + private static final AutoscalingPoliciesConverter autoscalingPoliciesConverter = + new AutoscalingPoliciesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicyOrBuilder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy.Builder> + autoscalingPolicies_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicyOrBuilder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy.Builder> + internalGetAutoscalingPolicies() { + if (autoscalingPolicies_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(autoscalingPoliciesConverter); + } + return autoscalingPolicies_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicyOrBuilder, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy.Builder> + internalGetMutableAutoscalingPolicies() { + if (autoscalingPolicies_ == null) { + autoscalingPolicies_ = + new com.google.protobuf.MapFieldBuilder<>(autoscalingPoliciesConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return autoscalingPolicies_; + } + + public int getAutoscalingPoliciesCount() { + return internalGetAutoscalingPolicies().ensureBuilderMap().size(); + } + /** + * + * + *
                  +     * Required. The map with autoscaling policies applied to the cluster.
                  +     * The key is the identifier of the policy.
                  +     * It must meet the following requirements:
                  +     *
                  +     * * Only contains 1-63 alphanumeric characters and hyphens
                  +     * * Begins with an alphabetical character
                  +     * * Ends with a non-hyphen character
                  +     * * Not formatted as a UUID
                  +     * * Complies with [RFC
                  +     * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +     *
                  +     * Currently there map must contain only one element
                  +     * that describes the autoscaling policy for compute nodes.
                  +     * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsAutoscalingPolicies(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAutoscalingPolicies().ensureBuilderMap().containsKey(key); + } + /** Use {@link #getAutoscalingPoliciesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + getAutoscalingPolicies() { + return getAutoscalingPoliciesMap(); + } + /** + * + * + *
                  +     * Required. The map with autoscaling policies applied to the cluster.
                  +     * The key is the identifier of the policy.
                  +     * It must meet the following requirements:
                  +     *
                  +     * * Only contains 1-63 alphanumeric characters and hyphens
                  +     * * Begins with an alphabetical character
                  +     * * Ends with a non-hyphen character
                  +     * * Not formatted as a UUID
                  +     * * Complies with [RFC
                  +     * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +     *
                  +     * Currently there map must contain only one element
                  +     * that describes the autoscaling policy for compute nodes.
                  +     * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + getAutoscalingPoliciesMap() { + return internalGetAutoscalingPolicies().getImmutableMap(); + } + /** + * + * + *
                  +     * Required. The map with autoscaling policies applied to the cluster.
                  +     * The key is the identifier of the policy.
                  +     * It must meet the following requirements:
                  +     *
                  +     * * Only contains 1-63 alphanumeric characters and hyphens
                  +     * * Begins with an alphabetical character
                  +     * * Ends with a non-hyphen character
                  +     * * Not formatted as a UUID
                  +     * * Complies with [RFC
                  +     * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +     *
                  +     * Currently there map must contain only one element
                  +     * that describes the autoscaling policy for compute nodes.
                  +     * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + getAutoscalingPoliciesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicyOrBuilder> + map = internalGetMutableAutoscalingPolicies().ensureBuilderMap(); + return map.containsKey(key) ? autoscalingPoliciesConverter.build(map.get(key)) : defaultValue; + } + /** + * + * + *
                  +     * Required. The map with autoscaling policies applied to the cluster.
                  +     * The key is the identifier of the policy.
                  +     * It must meet the following requirements:
                  +     *
                  +     * * Only contains 1-63 alphanumeric characters and hyphens
                  +     * * Begins with an alphabetical character
                  +     * * Ends with a non-hyphen character
                  +     * * Not formatted as a UUID
                  +     * * Complies with [RFC
                  +     * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +     *
                  +     * Currently there map must contain only one element
                  +     * that describes the autoscaling policy for compute nodes.
                  +     * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + getAutoscalingPoliciesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicyOrBuilder> + map = internalGetMutableAutoscalingPolicies().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return autoscalingPoliciesConverter.build(map.get(key)); + } + + public Builder clearAutoscalingPolicies() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableAutoscalingPolicies().clear(); + return this; + } + /** + * + * + *
                  +     * Required. The map with autoscaling policies applied to the cluster.
                  +     * The key is the identifier of the policy.
                  +     * It must meet the following requirements:
                  +     *
                  +     * * Only contains 1-63 alphanumeric characters and hyphens
                  +     * * Begins with an alphabetical character
                  +     * * Ends with a non-hyphen character
                  +     * * Not formatted as a UUID
                  +     * * Complies with [RFC
                  +     * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +     *
                  +     * Currently there map must contain only one element
                  +     * that describes the autoscaling policy for compute nodes.
                  +     * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeAutoscalingPolicies(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAutoscalingPolicies().ensureBuilderMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + getMutableAutoscalingPolicies() { + bitField0_ |= 0x00000001; + return internalGetMutableAutoscalingPolicies().ensureMessageMap(); + } + /** + * + * + *
                  +     * Required. The map with autoscaling policies applied to the cluster.
                  +     * The key is the identifier of the policy.
                  +     * It must meet the following requirements:
                  +     *
                  +     * * Only contains 1-63 alphanumeric characters and hyphens
                  +     * * Begins with an alphabetical character
                  +     * * Ends with a non-hyphen character
                  +     * * Not formatted as a UUID
                  +     * * Complies with [RFC
                  +     * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +     *
                  +     * Currently there map must contain only one element
                  +     * that describes the autoscaling policy for compute nodes.
                  +     * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putAutoscalingPolicies( + java.lang.String key, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAutoscalingPolicies().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
                  +     * Required. The map with autoscaling policies applied to the cluster.
                  +     * The key is the identifier of the policy.
                  +     * It must meet the following requirements:
                  +     *
                  +     * * Only contains 1-63 alphanumeric characters and hyphens
                  +     * * Begins with an alphabetical character
                  +     * * Ends with a non-hyphen character
                  +     * * Not formatted as a UUID
                  +     * * Complies with [RFC
                  +     * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +     *
                  +     * Currently there map must contain only one element
                  +     * that describes the autoscaling policy for compute nodes.
                  +     * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putAllAutoscalingPolicies( + java.util.Map< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + values) { + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableAutoscalingPolicies().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
                  +     * Required. The map with autoscaling policies applied to the cluster.
                  +     * The key is the identifier of the policy.
                  +     * It must meet the following requirements:
                  +     *
                  +     * * Only contains 1-63 alphanumeric characters and hyphens
                  +     * * Begins with an alphabetical character
                  +     * * Ends with a non-hyphen character
                  +     * * Not formatted as a UUID
                  +     * * Complies with [RFC
                  +     * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +     *
                  +     * Currently there map must contain only one element
                  +     * that describes the autoscaling policy for compute nodes.
                  +     * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy.Builder + putAutoscalingPoliciesBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicyOrBuilder> + builderMap = internalGetMutableAutoscalingPolicies().ensureBuilderMap(); + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicyOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy) { + entry = + ((com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy) entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy.Builder) entry; + } + + private int minClusterNodeCount_; + /** + * + * + *
                  +     * Optional. Minimum number of nodes of any type in a cluster.
                  +     * If not specified the default limits apply.
                  +     * 
                  + * + * int32 min_cluster_node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minClusterNodeCount. + */ + @java.lang.Override + public int getMinClusterNodeCount() { + return minClusterNodeCount_; + } + /** + * + * + *
                  +     * Optional. Minimum number of nodes of any type in a cluster.
                  +     * If not specified the default limits apply.
                  +     * 
                  + * + * int32 min_cluster_node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The minClusterNodeCount to set. + * @return This builder for chaining. + */ + public Builder setMinClusterNodeCount(int value) { + + minClusterNodeCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Minimum number of nodes of any type in a cluster.
                  +     * If not specified the default limits apply.
                  +     * 
                  + * + * int32 min_cluster_node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMinClusterNodeCount() { + bitField0_ = (bitField0_ & ~0x00000002); + minClusterNodeCount_ = 0; + onChanged(); + return this; + } + + private int maxClusterNodeCount_; + /** + * + * + *
                  +     * Optional. Maximum number of nodes of any type in a cluster.
                  +     * If not specified the default limits apply.
                  +     * 
                  + * + * int32 max_cluster_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxClusterNodeCount. + */ + @java.lang.Override + public int getMaxClusterNodeCount() { + return maxClusterNodeCount_; + } + /** + * + * + *
                  +     * Optional. Maximum number of nodes of any type in a cluster.
                  +     * If not specified the default limits apply.
                  +     * 
                  + * + * int32 max_cluster_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxClusterNodeCount to set. + * @return This builder for chaining. + */ + public Builder setMaxClusterNodeCount(int value) { + + maxClusterNodeCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Maximum number of nodes of any type in a cluster.
                  +     * If not specified the default limits apply.
                  +     * 
                  + * + * int32 max_cluster_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxClusterNodeCount() { + bitField0_ = (bitField0_ & ~0x00000004); + maxClusterNodeCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration coolDownPeriod_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + coolDownPeriodBuilder_; + /** + * + * + *
                  +     * Optional. The minimum duration between consecutive autoscale operations.
                  +     * It starts once addition or removal of nodes is fully completed.
                  +     * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +     * minutes (for example, 30, 31, 50, 180 minutes).
                  +     * 
                  + * + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the coolDownPeriod field is set. + */ + public boolean hasCoolDownPeriod() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                  +     * Optional. The minimum duration between consecutive autoscale operations.
                  +     * It starts once addition or removal of nodes is fully completed.
                  +     * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +     * minutes (for example, 30, 31, 50, 180 minutes).
                  +     * 
                  + * + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The coolDownPeriod. + */ + public com.google.protobuf.Duration getCoolDownPeriod() { + if (coolDownPeriodBuilder_ == null) { + return coolDownPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : coolDownPeriod_; + } else { + return coolDownPeriodBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * Optional. The minimum duration between consecutive autoscale operations.
                  +     * It starts once addition or removal of nodes is fully completed.
                  +     * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +     * minutes (for example, 30, 31, 50, 180 minutes).
                  +     * 
                  + * + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCoolDownPeriod(com.google.protobuf.Duration value) { + if (coolDownPeriodBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + coolDownPeriod_ = value; + } else { + coolDownPeriodBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. The minimum duration between consecutive autoscale operations.
                  +     * It starts once addition or removal of nodes is fully completed.
                  +     * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +     * minutes (for example, 30, 31, 50, 180 minutes).
                  +     * 
                  + * + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCoolDownPeriod(com.google.protobuf.Duration.Builder builderForValue) { + if (coolDownPeriodBuilder_ == null) { + coolDownPeriod_ = builderForValue.build(); + } else { + coolDownPeriodBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. The minimum duration between consecutive autoscale operations.
                  +     * It starts once addition or removal of nodes is fully completed.
                  +     * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +     * minutes (for example, 30, 31, 50, 180 minutes).
                  +     * 
                  + * + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCoolDownPeriod(com.google.protobuf.Duration value) { + if (coolDownPeriodBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && coolDownPeriod_ != null + && coolDownPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { + getCoolDownPeriodBuilder().mergeFrom(value); + } else { + coolDownPeriod_ = value; + } + } else { + coolDownPeriodBuilder_.mergeFrom(value); + } + if (coolDownPeriod_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Optional. The minimum duration between consecutive autoscale operations.
                  +     * It starts once addition or removal of nodes is fully completed.
                  +     * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +     * minutes (for example, 30, 31, 50, 180 minutes).
                  +     * 
                  + * + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCoolDownPeriod() { + bitField0_ = (bitField0_ & ~0x00000008); + coolDownPeriod_ = null; + if (coolDownPeriodBuilder_ != null) { + coolDownPeriodBuilder_.dispose(); + coolDownPeriodBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. The minimum duration between consecutive autoscale operations.
                  +     * It starts once addition or removal of nodes is fully completed.
                  +     * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +     * minutes (for example, 30, 31, 50, 180 minutes).
                  +     * 
                  + * + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getCoolDownPeriodBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCoolDownPeriodFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * Optional. The minimum duration between consecutive autoscale operations.
                  +     * It starts once addition or removal of nodes is fully completed.
                  +     * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +     * minutes (for example, 30, 31, 50, 180 minutes).
                  +     * 
                  + * + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getCoolDownPeriodOrBuilder() { + if (coolDownPeriodBuilder_ != null) { + return coolDownPeriodBuilder_.getMessageOrBuilder(); + } else { + return coolDownPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : coolDownPeriod_; + } + } + /** + * + * + *
                  +     * Optional. The minimum duration between consecutive autoscale operations.
                  +     * It starts once addition or removal of nodes is fully completed.
                  +     * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +     * minutes (for example, 30, 31, 50, 180 minutes).
                  +     * 
                  + * + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getCoolDownPeriodFieldBuilder() { + if (coolDownPeriodBuilder_ == null) { + coolDownPeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getCoolDownPeriod(), getParentForChildren(), isClean()); + coolDownPeriod_ = null; + } + return coolDownPeriodBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.AutoscalingSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.AutoscalingSettings) + private static final com.google.cloud.vmwareengine.v1.AutoscalingSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.AutoscalingSettings(); + } + + public static com.google.cloud.vmwareengine.v1.AutoscalingSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoscalingSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/AutoscalingSettingsOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/AutoscalingSettingsOrBuilder.java new file mode 100644 index 000000000000..f43e79286a1d --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/AutoscalingSettingsOrBuilder.java @@ -0,0 +1,235 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine_resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vmwareengine.v1; + +public interface AutoscalingSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.AutoscalingSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                  +   * Required. The map with autoscaling policies applied to the cluster.
                  +   * The key is the identifier of the policy.
                  +   * It must meet the following requirements:
                  +   *
                  +   * * Only contains 1-63 alphanumeric characters and hyphens
                  +   * * Begins with an alphabetical character
                  +   * * Ends with a non-hyphen character
                  +   * * Not formatted as a UUID
                  +   * * Complies with [RFC
                  +   * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +   *
                  +   * Currently there map must contain only one element
                  +   * that describes the autoscaling policy for compute nodes.
                  +   * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getAutoscalingPoliciesCount(); + /** + * + * + *
                  +   * Required. The map with autoscaling policies applied to the cluster.
                  +   * The key is the identifier of the policy.
                  +   * It must meet the following requirements:
                  +   *
                  +   * * Only contains 1-63 alphanumeric characters and hyphens
                  +   * * Begins with an alphabetical character
                  +   * * Ends with a non-hyphen character
                  +   * * Not formatted as a UUID
                  +   * * Complies with [RFC
                  +   * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +   *
                  +   * Currently there map must contain only one element
                  +   * that describes the autoscaling policy for compute nodes.
                  +   * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + boolean containsAutoscalingPolicies(java.lang.String key); + /** Use {@link #getAutoscalingPoliciesMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + getAutoscalingPolicies(); + /** + * + * + *
                  +   * Required. The map with autoscaling policies applied to the cluster.
                  +   * The key is the identifier of the policy.
                  +   * It must meet the following requirements:
                  +   *
                  +   * * Only contains 1-63 alphanumeric characters and hyphens
                  +   * * Begins with an alphabetical character
                  +   * * Ends with a non-hyphen character
                  +   * * Not formatted as a UUID
                  +   * * Complies with [RFC
                  +   * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +   *
                  +   * Currently there map must contain only one element
                  +   * that describes the autoscaling policy for compute nodes.
                  +   * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.Map< + java.lang.String, com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> + getAutoscalingPoliciesMap(); + /** + * + * + *
                  +   * Required. The map with autoscaling policies applied to the cluster.
                  +   * The key is the identifier of the policy.
                  +   * It must meet the following requirements:
                  +   *
                  +   * * Only contains 1-63 alphanumeric characters and hyphens
                  +   * * Begins with an alphabetical character
                  +   * * Ends with a non-hyphen character
                  +   * * Not formatted as a UUID
                  +   * * Complies with [RFC
                  +   * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +   *
                  +   * Currently there map must contain only one element
                  +   * that describes the autoscaling policy for compute nodes.
                  +   * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + /* nullable */ + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + getAutoscalingPoliciesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy defaultValue); + /** + * + * + *
                  +   * Required. The map with autoscaling policies applied to the cluster.
                  +   * The key is the identifier of the policy.
                  +   * It must meet the following requirements:
                  +   *
                  +   * * Only contains 1-63 alphanumeric characters and hyphens
                  +   * * Begins with an alphabetical character
                  +   * * Ends with a non-hyphen character
                  +   * * Not formatted as a UUID
                  +   * * Complies with [RFC
                  +   * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
                  +   *
                  +   * Currently there map must contain only one element
                  +   * that describes the autoscaling policy for compute nodes.
                  +   * 
                  + * + * + * map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + getAutoscalingPoliciesOrThrow(java.lang.String key); + + /** + * + * + *
                  +   * Optional. Minimum number of nodes of any type in a cluster.
                  +   * If not specified the default limits apply.
                  +   * 
                  + * + * int32 min_cluster_node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minClusterNodeCount. + */ + int getMinClusterNodeCount(); + + /** + * + * + *
                  +   * Optional. Maximum number of nodes of any type in a cluster.
                  +   * If not specified the default limits apply.
                  +   * 
                  + * + * int32 max_cluster_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxClusterNodeCount. + */ + int getMaxClusterNodeCount(); + + /** + * + * + *
                  +   * Optional. The minimum duration between consecutive autoscale operations.
                  +   * It starts once addition or removal of nodes is fully completed.
                  +   * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +   * minutes (for example, 30, 31, 50, 180 minutes).
                  +   * 
                  + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the coolDownPeriod field is set. + */ + boolean hasCoolDownPeriod(); + /** + * + * + *
                  +   * Optional. The minimum duration between consecutive autoscale operations.
                  +   * It starts once addition or removal of nodes is fully completed.
                  +   * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +   * minutes (for example, 30, 31, 50, 180 minutes).
                  +   * 
                  + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The coolDownPeriod. + */ + com.google.protobuf.Duration getCoolDownPeriod(); + /** + * + * + *
                  +   * Optional. The minimum duration between consecutive autoscale operations.
                  +   * It starts once addition or removal of nodes is fully completed.
                  +   * Defaults to 30 minutes if not specified. Cool down period must be in whole
                  +   * minutes (for example, 30, 31, 50, 180 minutes).
                  +   * 
                  + * + * .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getCoolDownPeriodOrBuilder(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Cluster.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Cluster.java index 61792a4a641a..e1e5230198b8 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Cluster.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Cluster.java @@ -521,6 +521,63 @@ public boolean getManagement() { return management_; } + public static final int AUTOSCALING_SETTINGS_FIELD_NUMBER = 18; + private com.google.cloud.vmwareengine.v1.AutoscalingSettings autoscalingSettings_; + /** + * + * + *
                  +   * Optional. Configuration of the autoscaling applied to this cluster.
                  +   * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoscalingSettings field is set. + */ + @java.lang.Override + public boolean hasAutoscalingSettings() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                  +   * Optional. Configuration of the autoscaling applied to this cluster.
                  +   * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoscalingSettings. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettings getAutoscalingSettings() { + return autoscalingSettings_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.getDefaultInstance() + : autoscalingSettings_; + } + /** + * + * + *
                  +   * Optional. Configuration of the autoscaling applied to this cluster.
                  +   * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.AutoscalingSettingsOrBuilder + getAutoscalingSettingsOrBuilder() { + return autoscalingSettings_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.getDefaultInstance() + : autoscalingSettings_; + } + public static final int UID_FIELD_NUMBER = 14; @SuppressWarnings("serial") @@ -718,7 +775,7 @@ public com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrThrow */ @java.lang.Override public boolean hasStretchedClusterConfig() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -794,9 +851,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetNodeTypeConfigs(), NodeTypeConfigsDefaultEntryHolder.defaultEntry, 16); - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(17, getStretchedClusterConfig()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(18, getAutoscalingSettings()); + } getUnknownFields().writeTo(output); } @@ -836,10 +896,14 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, nodeTypeConfigs__); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getStretchedClusterConfig()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(18, getAutoscalingSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -866,6 +930,10 @@ public boolean equals(final java.lang.Object obj) { } if (state_ != other.state_) return false; if (getManagement() != other.getManagement()) return false; + if (hasAutoscalingSettings() != other.hasAutoscalingSettings()) return false; + if (hasAutoscalingSettings()) { + if (!getAutoscalingSettings().equals(other.getAutoscalingSettings())) return false; + } if (!getUid().equals(other.getUid())) return false; if (!internalGetNodeTypeConfigs().equals(other.internalGetNodeTypeConfigs())) return false; if (hasStretchedClusterConfig() != other.hasStretchedClusterConfig()) return false; @@ -897,6 +965,10 @@ public int hashCode() { hash = (53 * hash) + state_; hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManagement()); + if (hasAutoscalingSettings()) { + hash = (37 * hash) + AUTOSCALING_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getAutoscalingSettings().hashCode(); + } hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); if (!internalGetNodeTypeConfigs().getMap().isEmpty()) { @@ -1071,6 +1143,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); + getAutoscalingSettingsFieldBuilder(); getStretchedClusterConfigFieldBuilder(); } } @@ -1092,6 +1165,11 @@ public Builder clear() { } state_ = 0; management_ = false; + autoscalingSettings_ = null; + if (autoscalingSettingsBuilder_ != null) { + autoscalingSettingsBuilder_.dispose(); + autoscalingSettingsBuilder_ = null; + } uid_ = ""; internalGetMutableNodeTypeConfigs().clear(); stretchedClusterConfig_ = null; @@ -1154,18 +1232,25 @@ private void buildPartial0(com.google.cloud.vmwareengine.v1.Cluster result) { result.management_ = management_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.uid_ = uid_; + result.autoscalingSettings_ = + autoscalingSettingsBuilder_ == null + ? autoscalingSettings_ + : autoscalingSettingsBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { result.nodeTypeConfigs_ = internalGetNodeTypeConfigs().build(NodeTypeConfigsDefaultEntryHolder.defaultEntry); } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.stretchedClusterConfig_ = stretchedClusterConfigBuilder_ == null ? stretchedClusterConfig_ : stretchedClusterConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @@ -1232,13 +1317,16 @@ public Builder mergeFrom(com.google.cloud.vmwareengine.v1.Cluster other) { if (other.getManagement() != false) { setManagement(other.getManagement()); } + if (other.hasAutoscalingSettings()) { + mergeAutoscalingSettings(other.getAutoscalingSettings()); + } if (!other.getUid().isEmpty()) { uid_ = other.uid_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } internalGetMutableNodeTypeConfigs().mergeFrom(other.internalGetNodeTypeConfigs()); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; if (other.hasStretchedClusterConfig()) { mergeStretchedClusterConfig(other.getStretchedClusterConfig()); } @@ -1301,7 +1389,7 @@ public Builder mergeFrom( case 114: { uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 114 case 130: @@ -1315,16 +1403,23 @@ public Builder mergeFrom( internalGetMutableNodeTypeConfigs() .ensureBuilderMap() .put(nodeTypeConfigs__.getKey(), nodeTypeConfigs__.getValue()); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 130 case 138: { input.readMessage( getStretchedClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 138 + case 146: + { + input.readMessage( + getAutoscalingSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2035,6 +2130,215 @@ public Builder clearManagement() { return this; } + private com.google.cloud.vmwareengine.v1.AutoscalingSettings autoscalingSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettingsOrBuilder> + autoscalingSettingsBuilder_; + /** + * + * + *
                  +     * Optional. Configuration of the autoscaling applied to this cluster.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoscalingSettings field is set. + */ + public boolean hasAutoscalingSettings() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
                  +     * Optional. Configuration of the autoscaling applied to this cluster.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoscalingSettings. + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings getAutoscalingSettings() { + if (autoscalingSettingsBuilder_ == null) { + return autoscalingSettings_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.getDefaultInstance() + : autoscalingSettings_; + } else { + return autoscalingSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
                  +     * Optional. Configuration of the autoscaling applied to this cluster.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoscalingSettings( + com.google.cloud.vmwareengine.v1.AutoscalingSettings value) { + if (autoscalingSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscalingSettings_ = value; + } else { + autoscalingSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Configuration of the autoscaling applied to this cluster.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoscalingSettings( + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Builder builderForValue) { + if (autoscalingSettingsBuilder_ == null) { + autoscalingSettings_ = builderForValue.build(); + } else { + autoscalingSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Configuration of the autoscaling applied to this cluster.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAutoscalingSettings( + com.google.cloud.vmwareengine.v1.AutoscalingSettings value) { + if (autoscalingSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && autoscalingSettings_ != null + && autoscalingSettings_ + != com.google.cloud.vmwareengine.v1.AutoscalingSettings.getDefaultInstance()) { + getAutoscalingSettingsBuilder().mergeFrom(value); + } else { + autoscalingSettings_ = value; + } + } else { + autoscalingSettingsBuilder_.mergeFrom(value); + } + if (autoscalingSettings_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
                  +     * Optional. Configuration of the autoscaling applied to this cluster.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAutoscalingSettings() { + bitField0_ = (bitField0_ & ~0x00000020); + autoscalingSettings_ = null; + if (autoscalingSettingsBuilder_ != null) { + autoscalingSettingsBuilder_.dispose(); + autoscalingSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                  +     * Optional. Configuration of the autoscaling applied to this cluster.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettings.Builder + getAutoscalingSettingsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getAutoscalingSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
                  +     * Optional. Configuration of the autoscaling applied to this cluster.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmwareengine.v1.AutoscalingSettingsOrBuilder + getAutoscalingSettingsOrBuilder() { + if (autoscalingSettingsBuilder_ != null) { + return autoscalingSettingsBuilder_.getMessageOrBuilder(); + } else { + return autoscalingSettings_ == null + ? com.google.cloud.vmwareengine.v1.AutoscalingSettings.getDefaultInstance() + : autoscalingSettings_; + } + } + /** + * + * + *
                  +     * Optional. Configuration of the autoscaling applied to this cluster.
                  +     * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettingsOrBuilder> + getAutoscalingSettingsFieldBuilder() { + if (autoscalingSettingsBuilder_ == null) { + autoscalingSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.AutoscalingSettings, + com.google.cloud.vmwareengine.v1.AutoscalingSettings.Builder, + com.google.cloud.vmwareengine.v1.AutoscalingSettingsOrBuilder>( + getAutoscalingSettings(), getParentForChildren(), isClean()); + autoscalingSettings_ = null; + } + return autoscalingSettingsBuilder_; + } + private java.lang.Object uid_ = ""; /** * @@ -2097,7 +2401,7 @@ public Builder setUid(java.lang.String value) { throw new NullPointerException(); } uid_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2114,7 +2418,7 @@ public Builder setUid(java.lang.String value) { */ public Builder clearUid() { uid_ = getDefaultInstance().getUid(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2136,7 +2440,7 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); uid_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2194,7 +2498,7 @@ public com.google.cloud.vmwareengine.v1.NodeTypeConfig build( if (nodeTypeConfigs_ == null) { nodeTypeConfigs_ = new com.google.protobuf.MapFieldBuilder<>(nodeTypeConfigsConverter); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return nodeTypeConfigs_; } @@ -2297,7 +2601,7 @@ public com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrThrow } public Builder clearNodeTypeConfigs() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableNodeTypeConfigs().clear(); return this; } @@ -2324,7 +2628,7 @@ public Builder removeNodeTypeConfigs(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableNodeTypeConfigs() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; return internalGetMutableNodeTypeConfigs().ensureMessageMap(); } /** @@ -2348,7 +2652,7 @@ public Builder putNodeTypeConfigs( throw new NullPointerException("map value"); } internalGetMutableNodeTypeConfigs().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; return this; } /** @@ -2372,7 +2676,7 @@ public Builder putAllNodeTypeConfigs( } } internalGetMutableNodeTypeConfigs().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; return this; } /** @@ -2424,7 +2728,7 @@ public Builder putAllNodeTypeConfigs( * @return Whether the stretchedClusterConfig field is set. */ public boolean hasStretchedClusterConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -2471,7 +2775,7 @@ public Builder setStretchedClusterConfig( } else { stretchedClusterConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2494,7 +2798,7 @@ public Builder setStretchedClusterConfig( } else { stretchedClusterConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2513,7 +2817,7 @@ public Builder setStretchedClusterConfig( public Builder mergeStretchedClusterConfig( com.google.cloud.vmwareengine.v1.StretchedClusterConfig value) { if (stretchedClusterConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && stretchedClusterConfig_ != null && stretchedClusterConfig_ != com.google.cloud.vmwareengine.v1.StretchedClusterConfig.getDefaultInstance()) { @@ -2525,7 +2829,7 @@ public Builder mergeStretchedClusterConfig( stretchedClusterConfigBuilder_.mergeFrom(value); } if (stretchedClusterConfig_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2543,7 +2847,7 @@ public Builder mergeStretchedClusterConfig( * */ public Builder clearStretchedClusterConfig() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); stretchedClusterConfig_ = null; if (stretchedClusterConfigBuilder_ != null) { stretchedClusterConfigBuilder_.dispose(); @@ -2566,7 +2870,7 @@ public Builder clearStretchedClusterConfig() { */ public com.google.cloud.vmwareengine.v1.StretchedClusterConfig.Builder getStretchedClusterConfigBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getStretchedClusterConfigFieldBuilder().getBuilder(); } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterOrBuilder.java index a5c5f5b31041..c445c8ab2065 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterOrBuilder.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterOrBuilder.java @@ -177,6 +177,47 @@ public interface ClusterOrBuilder */ boolean getManagement(); + /** + * + * + *
                  +   * Optional. Configuration of the autoscaling applied to this cluster.
                  +   * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoscalingSettings field is set. + */ + boolean hasAutoscalingSettings(); + /** + * + * + *
                  +   * Optional. Configuration of the autoscaling applied to this cluster.
                  +   * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoscalingSettings. + */ + com.google.cloud.vmwareengine.v1.AutoscalingSettings getAutoscalingSettings(); + /** + * + * + *
                  +   * Optional. Configuration of the autoscaling applied to this cluster.
                  +   * 
                  + * + * + * .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmwareengine.v1.AutoscalingSettingsOrBuilder getAutoscalingSettingsOrBuilder(); + /** * * diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Hcx.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Hcx.java index ffc0621c5d64..f79e5357f267 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Hcx.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Hcx.java @@ -106,6 +106,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * CREATING = 2; */ CREATING(2), + /** + * + * + *
                  +     * The appliance is being activated.
                  +     * 
                  + * + * ACTIVATING = 3; + */ + ACTIVATING(3), UNRECOGNIZED(-1), ; @@ -139,6 +149,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * CREATING = 2; */ public static final int CREATING_VALUE = 2; + /** + * + * + *
                  +     * The appliance is being activated.
                  +     * 
                  + * + * ACTIVATING = 3; + */ + public static final int ACTIVATING_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -170,6 +190,8 @@ public static State forNumber(int value) { return ACTIVE; case 2: return CREATING; + case 3: + return ACTIVATING; default: return null; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServer.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServer.java index ff7d4229f30e..814803a411ac 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServer.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServer.java @@ -108,6 +108,36 @@ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { * TCP = 2; */ TCP(2), + /** + * + * + *
                  +     * TLS
                  +     * 
                  + * + * TLS = 3; + */ + TLS(3), + /** + * + * + *
                  +     * SSL
                  +     * 
                  + * + * SSL = 4; + */ + SSL(4), + /** + * + * + *
                  +     * RELP
                  +     * 
                  + * + * RELP = 5; + */ + RELP(5), UNRECOGNIZED(-1), ; @@ -141,6 +171,36 @@ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { * TCP = 2; */ public static final int TCP_VALUE = 2; + /** + * + * + *
                  +     * TLS
                  +     * 
                  + * + * TLS = 3; + */ + public static final int TLS_VALUE = 3; + /** + * + * + *
                  +     * SSL
                  +     * 
                  + * + * SSL = 4; + */ + public static final int SSL_VALUE = 4; + /** + * + * + *
                  +     * RELP
                  +     * 
                  + * + * RELP = 5; + */ + public static final int RELP_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -172,6 +232,12 @@ public static Protocol forNumber(int value) { return UDP; case 2: return TCP; + case 3: + return TLS; + case 4: + return SSL; + case 5: + return RELP; default: return null; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeering.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeering.java index ab055616fed2..b90e4c44465a 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeering.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeering.java @@ -356,6 +356,16 @@ public enum PeerNetworkType implements com.google.protobuf.ProtocolMessageEnum { * DELL_POWERSCALE = 6; */ DELL_POWERSCALE(6), + /** + * + * + *
                  +     * Peering connection used for connecting to Google Cloud NetApp Volumes.
                  +     * 
                  + * + * GOOGLE_CLOUD_NETAPP_VOLUMES = 7; + */ + GOOGLE_CLOUD_NETAPP_VOLUMES(7), UNRECOGNIZED(-1), ; @@ -434,6 +444,16 @@ public enum PeerNetworkType implements com.google.protobuf.ProtocolMessageEnum { * DELL_POWERSCALE = 6; */ public static final int DELL_POWERSCALE_VALUE = 6; + /** + * + * + *
                  +     * Peering connection used for connecting to Google Cloud NetApp Volumes.
                  +     * 
                  + * + * GOOGLE_CLOUD_NETAPP_VOLUMES = 7; + */ + public static final int GOOGLE_CLOUD_NETAPP_VOLUMES_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -473,6 +493,8 @@ public static PeerNetworkType forNumber(int value) { return THIRD_PARTY_SERVICE; case 6: return DELL_POWERSCALE; + case 7: + return GOOGLE_CLOUD_NETAPP_VOLUMES; default: return null; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineProto.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineProto.java index 38d594f7a517..26f8cd24c550 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineProto.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineProto.java @@ -407,15 +407,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n/google/cloud/vmwareengine/v1/vmwareeng" + "ine.proto\022\034google.cloud.vmwareengine.v1\032" - + "#google/longrunning/operations.proto\032\037go" - + "ogle/protobuf/timestamp.proto\032 google/pr" - + "otobuf/field_mask.proto\032\034google/api/anno" - + "tations.proto\032\027google/api/client.proto\032\037" - + "google/api/field_behavior.proto\032\033google/" - + "api/field_info.proto\032\031google/api/resourc" - + "e.proto\0329google/cloud/vmwareengine/v1/vm" - + "wareengine_resources.proto\032\033google/proto" - + "buf/empty.proto\"\236\001\n\030ListPrivateCloudsReq" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032\037google/api/field_behavio" + + "r.proto\032\033google/api/field_info.proto\032\031go" + + "ogle/api/resource.proto\0329google/cloud/vm" + + "wareengine/v1/vmwareengine_resources.pro" + + "to\032#google/longrunning/operations.proto\032" + + "\033google/protobuf/empty.proto\032 google/pro" + + "tobuf/field_mask.proto\032\037google/protobuf/" + + "timestamp.proto\"\236\001\n\030ListPrivateCloudsReq" + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + "googleapis.com/Location\022\021\n\tpage_size\030\002 \001" + "(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020" @@ -1244,16 +1244,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -2009,16 +2009,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.vmwareengine.v1.VmwareengineResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineResourcesProto.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineResourcesProto.java index a5b4d7893f29..61c016f6f249 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineResourcesProto.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineResourcesProto.java @@ -108,6 +108,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmwareengine_v1_Vcenter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmwareengine_v1_Vcenter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_Thresholds_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_Thresholds_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPoliciesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPoliciesEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmwareengine_v1_DnsForwarding_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -172,374 +188,405 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n9google/cloud/vmwareengine/v1/vmwareeng" + "ine_resources.proto\022\034google.cloud.vmware" + "engine.v1\032\037google/api/field_behavior.pro" - + "to\032\031google/api/resource.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\266\002\n\rNetworkConfig" - + "\022\034\n\017management_cidr\030\004 \001(\tB\003\340A\002\022V\n\025vmware" - + "_engine_network\030\005 \001(\tB7\340A\001\372A1\n/vmwareeng" - + "ine.googleapis.com/VmwareEngineNetwork\022`" - + "\n\037vmware_engine_network_canonical\030\006 \001(\tB" - + "7\340A\003\372A1\n/vmwareengine.googleapis.com/Vmw" - + "areEngineNetwork\0221\n$management_ip_addres" - + "s_layout_version\030\010 \001(\005B\003\340A\003\022\032\n\rdns_serve" - + "r_ip\030\t \001(\tB\003\340A\003\"I\n\016NodeTypeConfig\022\027\n\nnod" - + "e_count\030\001 \001(\005B\003\340A\002\022\036\n\021custom_core_count\030" - + "\002 \001(\005B\003\340A\001\"\246\001\n\026StretchedClusterConfig\022E\n" - + "\022preferred_location\030\001 \001(\tB)\340A\002\372A#\n!locat" - + "ions.googleapis.com/Location\022E\n\022secondar" - + "y_location\030\002 \001(\tB)\340A\002\372A#\n!locations.goog" - + "leapis.com/Location\"\375\n\n\014PrivateCloud\022\021\n\004" - + "name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" - + "time\030\003 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\0224\n\013delete_time\030\004 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0224\n\013expire_time\030\005 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\022D\n\005state" - + "\030\010 \001(\01620.google.cloud.vmwareengine.v1.Pr" - + "ivateCloud.StateB\003\340A\003\022H\n\016network_config\030" - + "\t \001(\0132+.google.cloud.vmwareengine.v1.Net" - + "workConfigB\003\340A\002\022`\n\022management_cluster\030\n " - + "\001(\0132<.google.cloud.vmwareengine.v1.Priva" - + "teCloud.ManagementClusterB\006\340A\004\340A\002\022\023\n\013des" - + "cription\030\013 \001(\t\0223\n\003hcx\030\021 \001(\0132!.google.clo" - + "ud.vmwareengine.v1.HcxB\003\340A\003\0223\n\003nsx\030\022 \001(\013" - + "2!.google.cloud.vmwareengine.v1.NsxB\003\340A\003" - + "\022;\n\007vcenter\030\023 \001(\0132%.google.cloud.vmwaree" - + "ngine.v1.VcenterB\003\340A\003\022\020\n\003uid\030\024 \001(\tB\003\340A\003\022" - + "B\n\004type\030\026 \001(\0162/.google.cloud.vmwareengin" - + "e.v1.PrivateCloud.TypeB\003\340A\001\032\342\002\n\021Manageme" - + "ntCluster\022\027\n\ncluster_id\030\001 \001(\tB\003\340A\002\022q\n\021no" - + "de_type_configs\030\007 \003(\0132Q.google.cloud.vmw" - + "areengine.v1.PrivateCloud.ManagementClus" - + "ter.NodeTypeConfigsEntryB\003\340A\002\022[\n\030stretch" - + "ed_cluster_config\030\010 \001(\01324.google.cloud.v" - + "mwareengine.v1.StretchedClusterConfigB\003\340" - + "A\001\032d\n\024NodeTypeConfigsEntry\022\013\n\003key\030\001 \001(\t\022" - + ";\n\005value\030\002 \001(\0132,.google.cloud.vmwareengi" - + "ne.v1.NodeTypeConfig:\0028\001\"l\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING" - + "\020\002\022\014\n\010UPDATING\020\003\022\n\n\006FAILED\020\005\022\013\n\007DELETED\020" - + "\006\022\013\n\007PURGING\020\007\"5\n\004Type\022\014\n\010STANDARD\020\000\022\020\n\014" - + "TIME_LIMITED\020\001\022\r\n\tSTRETCHED\020\002:t\352Aq\n(vmwa" - + "reengine.googleapis.com/PrivateCloud\022Epr" - + "ojects/{project}/locations/{location}/pr" - + "ivateClouds/{private_cloud}\"\375\005\n\007Cluster\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" - + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\022?\n\005state\030\006 \001(\0162+.google.cloud.vmw" - + "areengine.v1.Cluster.StateB\003\340A\003\022\027\n\nmanag" - + "ement\030\007 \001(\010B\003\340A\003\022\020\n\003uid\030\016 \001(\tB\003\340A\003\022Z\n\021no" - + "de_type_configs\030\020 \003(\0132:.google.cloud.vmw" - + "areengine.v1.Cluster.NodeTypeConfigsEntr" - + "yB\003\340A\002\022[\n\030stretched_cluster_config\030\021 \001(\013" - + "24.google.cloud.vmwareengine.v1.Stretche" - + "dClusterConfigB\003\340A\001\032d\n\024NodeTypeConfigsEn" - + "try\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google" - + ".cloud.vmwareengine.v1.NodeTypeConfig:\0028" - + "\001\"c\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACT" - + "IVE\020\001\022\014\n\010CREATING\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DEL" - + "ETING\020\004\022\r\n\tREPAIRING\020\005:\202\001\352A\177\n#vmwareengi" - + "ne.googleapis.com/Cluster\022Xprojects/{pro" - + "ject}/locations/{location}/privateClouds" - + "/{private_cloud}/clusters/{cluster}\"\272\003\n\004" - + "Node\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\021\n\004fqdn\030\002 \001(\tB\003\340" - + "A\003\022\030\n\013internal_ip\030\003 \001(\tB\003\340A\003\022\031\n\014node_typ" - + "e_id\030\004 \001(\tB\003\340A\003\022\024\n\007version\030\005 \001(\tB\003\340A\003\022\036\n" - + "\021custom_core_count\030\006 \001(\003B\003\340A\003\022<\n\005state\030\007" - + " \001(\0162(.google.cloud.vmwareengine.v1.Node" - + ".StateB\003\340A\003\"S\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002\022\n\n\006FAILED\020" - + "\003\022\r\n\tUPGRADING\020\004:\215\001\352A\211\001\n vmwareengine.go" - + "ogleapis.com/Node\022eprojects/{project}/lo" + + "to\032\033google/api/field_info.proto\032\031google/" + + "api/resource.proto\032\036google/protobuf/dura" + + "tion.proto\032\037google/protobuf/timestamp.pr" + + "oto\"\266\002\n\rNetworkConfig\022\034\n\017management_cidr" + + "\030\004 \001(\tB\003\340A\002\022V\n\025vmware_engine_network\030\005 \001" + + "(\tB7\340A\001\372A1\n/vmwareengine.googleapis.com/" + + "VmwareEngineNetwork\022`\n\037vmware_engine_net" + + "work_canonical\030\006 \001(\tB7\340A\003\372A1\n/vmwareengi" + + "ne.googleapis.com/VmwareEngineNetwork\0221\n" + + "$management_ip_address_layout_version\030\010 " + + "\001(\005B\003\340A\003\022\032\n\rdns_server_ip\030\t \001(\tB\003\340A\003\"I\n\016" + + "NodeTypeConfig\022\027\n\nnode_count\030\001 \001(\005B\003\340A\002\022" + + "\036\n\021custom_core_count\030\002 \001(\005B\003\340A\001\"\246\001\n\026Stre" + + "tchedClusterConfig\022E\n\022preferred_location" + + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" + + "/Location\022E\n\022secondary_location\030\002 \001(\tB)\340" + + "A\002\372A#\n!locations.googleapis.com/Location" + + "\"\375\n\n\014PrivateCloud\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013" + + "create_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030" + + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013expire_time\030\005 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022D\n\005state\030\010 \001(\01620.google.clo" + + "ud.vmwareengine.v1.PrivateCloud.StateB\003\340" + + "A\003\022H\n\016network_config\030\t \001(\0132+.google.clou" + + "d.vmwareengine.v1.NetworkConfigB\003\340A\002\022`\n\022" + + "management_cluster\030\n \001(\0132<.google.cloud." + + "vmwareengine.v1.PrivateCloud.ManagementC" + + "lusterB\006\340A\004\340A\002\022\023\n\013description\030\013 \001(\t\0223\n\003h" + + "cx\030\021 \001(\0132!.google.cloud.vmwareengine.v1." + + "HcxB\003\340A\003\0223\n\003nsx\030\022 \001(\0132!.google.cloud.vmw" + + "areengine.v1.NsxB\003\340A\003\022;\n\007vcenter\030\023 \001(\0132%" + + ".google.cloud.vmwareengine.v1.VcenterB\003\340" + + "A\003\022\020\n\003uid\030\024 \001(\tB\003\340A\003\022B\n\004type\030\026 \001(\0162/.goo" + + "gle.cloud.vmwareengine.v1.PrivateCloud.T" + + "ypeB\003\340A\001\032\342\002\n\021ManagementCluster\022\027\n\ncluste" + + "r_id\030\001 \001(\tB\003\340A\002\022q\n\021node_type_configs\030\007 \003" + + "(\0132Q.google.cloud.vmwareengine.v1.Privat" + + "eCloud.ManagementCluster.NodeTypeConfigs" + + "EntryB\003\340A\002\022[\n\030stretched_cluster_config\030\010" + + " \001(\01324.google.cloud.vmwareengine.v1.Stre" + + "tchedClusterConfigB\003\340A\001\032d\n\024NodeTypeConfi" + + "gsEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.go" + + "ogle.cloud.vmwareengine.v1.NodeTypeConfi" + + "g:\0028\001\"l\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\014\n\010CREATING\020\002\022\014\n\010UPDATING\020\003\022\n\n" + + "\006FAILED\020\005\022\013\n\007DELETED\020\006\022\013\n\007PURGING\020\007\"5\n\004T" + + "ype\022\014\n\010STANDARD\020\000\022\020\n\014TIME_LIMITED\020\001\022\r\n\tS" + + "TRETCHED\020\002:t\352Aq\n(vmwareengine.googleapis" + + ".com/PrivateCloud\022Eprojects/{project}/lo" + "cations/{location}/privateClouds/{privat" - + "e_cloud}/clusters/{cluster}/nodes/{node}" - + "\"\245\004\n\017ExternalAddress\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" + + "e_cloud}\"\323\006\n\007Cluster\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" + "4\n\013create_time\030\002 \001(\0132\032.google.protobuf.T" + "imestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\022\023\n\013internal_" - + "ip\030\006 \001(\t\022\030\n\013external_ip\030\007 \001(\tB\003\340A\003\022G\n\005st" - + "ate\030\010 \001(\01623.google.cloud.vmwareengine.v1" - + ".ExternalAddress.StateB\003\340A\003\022\020\n\003uid\030\t \001(\t" - + "B\003\340A\003\022\023\n\013description\030\013 \001(\t\"T\n\005State\022\025\n\021S" - + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATI" - + "NG\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004:\235\001\352A\231\001\n" - + "+vmwareengine.googleapis.com/ExternalAdd" - + "ress\022jprojects/{project}/locations/{loca" - + "tion}/privateClouds/{private_cloud}/exte" - + "rnalAddresses/{external_address}\"\243\003\n\006Sub" - + "net\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\025\n\rip_cidr_range\030" - + "\007 \001(\t\022\022\n\ngateway_ip\030\010 \001(\t\022\021\n\004type\030\013 \001(\tB" - + "\003\340A\003\022>\n\005state\030\r \001(\0162*.google.cloud.vmwar" - + "eengine.v1.Subnet.StateB\003\340A\003\022\024\n\007vlan_id\030" - + "\020 \001(\005B\003\340A\003\"q\n\005State\022\025\n\021STATE_UNSPECIFIED" - + "\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002\022\014\n\010UPDATING" - + "\020\003\022\014\n\010DELETING\020\004\022\017\n\013RECONCILING\020\005\022\n\n\006FAI" - + "LED\020\006:\177\352A|\n\"vmwareengine.googleapis.com/" - + "Subnet\022Vprojects/{project}/locations/{lo" - + "cation}/privateClouds/{private_cloud}/su" - + "bnets/{subnet}\"\245\010\n\022ExternalAccessRule\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" - + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022\023\n\013description\030\005 \001(\t\022\020\n\010priority\030\006 " - + "\001(\005\022G\n\006action\030\007 \001(\01627.google.cloud.vmwar" - + "eengine.v1.ExternalAccessRule.Action\022\023\n\013" - + "ip_protocol\030\010 \001(\t\022R\n\020source_ip_ranges\030\t " - + "\003(\01328.google.cloud.vmwareengine.v1.Exter" - + "nalAccessRule.IpRange\022\024\n\014source_ports\030\n " - + "\003(\t\022W\n\025destination_ip_ranges\030\013 \003(\01328.goo" - + "gle.cloud.vmwareengine.v1.ExternalAccess" - + "Rule.IpRange\022\031\n\021destination_ports\030\014 \003(\t\022" - + "J\n\005state\030\r \001(\01626.google.cloud.vmwareengi" - + "ne.v1.ExternalAccessRule.StateB\003\340A\003\022\020\n\003u" - + "id\030\016 \001(\tB\003\340A\003\032\225\001\n\007IpRange\022\024\n\nip_address\030" - + "\001 \001(\tH\000\022\032\n\020ip_address_range\030\002 \001(\tH\000\022L\n\020e" - + "xternal_address\030\003 \001(\tB0\372A-\n+vmwareengine" - + ".googleapis.com/ExternalAddressH\000B\n\n\010ip_" - + "range\"5\n\006Action\022\026\n\022ACTION_UNSPECIFIED\020\000\022" - + "\t\n\005ALLOW\020\001\022\010\n\004DENY\020\002\"T\n\005State\022\025\n\021STATE_U" - + "NSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002\022\014" - + "\n\010UPDATING\020\003\022\014\n\010DELETING\020\004:\251\001\352A\245\001\n.vmwar" - + "eengine.googleapis.com/ExternalAccessRul" - + "e\022sprojects/{project}/locations/{locatio" - + "n}/networkPolicies/{network_policy}/exte" - + "rnalAccessRules/{external_access_rule}\"\371" - + "\004\n\rLoggingServer\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013c" - + "reate_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\022\025\n\010hostname\030\005 \001(" - + "\tB\003\340A\002\022\021\n\004port\030\007 \001(\005B\003\340A\002\022K\n\010protocol\030\006 " - + "\001(\01624.google.cloud.vmwareengine.v1.Loggi" - + "ngServer.ProtocolB\003\340A\002\022P\n\013source_type\030\n " - + "\001(\01626.google.cloud.vmwareengine.v1.Loggi" - + "ngServer.SourceTypeB\003\340A\002\022\020\n\003uid\030\010 \001(\tB\003\340" - + "A\003\"6\n\010Protocol\022\030\n\024PROTOCOL_UNSPECIFIED\020\000" - + "\022\007\n\003UDP\020\001\022\007\n\003TCP\020\002\"=\n\nSourceType\022\033\n\027SOUR" - + "CE_TYPE_UNSPECIFIED\020\000\022\010\n\004ESXI\020\001\022\010\n\004VCSA\020" - + "\002:\226\001\352A\222\001\n)vmwareengine.googleapis.com/Lo" - + "ggingServer\022eprojects/{project}/location" - + "s/{location}/privateClouds/{private_clou" - + "d}/loggingServers/{logging_server}\"\377\004\n\010N" - + "odeType\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014node_type_" - + "id\030\002 \001(\tB\003\340A\003\022\031\n\014display_name\030\003 \001(\tB\003\340A\003" - + "\022\036\n\021virtual_cpu_count\030\004 \001(\005B\003\340A\003\022\035\n\020tota" - + "l_core_count\030\005 \001(\005B\003\340A\003\022\026\n\tmemory_gb\030\007 \001" - + "(\005B\003\340A\003\022\031\n\014disk_size_gb\030\010 \001(\005B\003\340A\003\022)\n\034av" - + "ailable_custom_core_counts\030\013 \003(\005B\003\340A\003\022>\n" - + "\004kind\030\014 \001(\0162+.google.cloud.vmwareengine." - + "v1.NodeType.KindB\003\340A\003\022\025\n\010families\030\r \003(\tB" - + "\003\340A\003\022L\n\014capabilities\030\016 \003(\01621.google.clou" - + "d.vmwareengine.v1.NodeType.CapabilityB\003\340" - + "A\003\"<\n\004Kind\022\024\n\020KIND_UNSPECIFIED\020\000\022\014\n\010STAN" - + "DARD\020\001\022\020\n\014STORAGE_ONLY\020\002\"@\n\nCapability\022\032" - + "\n\026CAPABILITY_UNSPECIFIED\020\000\022\026\n\022STRETCHED_" - + "CLUSTERS\020\001:h\352Ae\n$vmwareengine.googleapis" - + ".com/NodeType\022=projects/{project}/locati" - + "ons/{location}/nodeTypes/{node_type}\"1\n\013" - + "Credentials\022\020\n\010username\030\001 \001(\t\022\020\n\010passwor" - + "d\030\002 \001(\t\"\302\003\n\020HcxActivationKey\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022H\n\005state\030\003 \001(\01624.g" - + "oogle.cloud.vmwareengine.v1.HcxActivatio" - + "nKey.StateB\003\340A\003\022\033\n\016activation_key\030\004 \001(\tB" - + "\003\340A\003\022\020\n\003uid\030\005 \001(\tB\003\340A\003\"I\n\005State\022\025\n\021STATE" - + "_UNSPECIFIED\020\000\022\r\n\tAVAILABLE\020\001\022\014\n\010CONSUME" - + "D\020\002\022\014\n\010CREATING\020\003:\240\001\352A\234\001\n,vmwareengine.g" - + "oogleapis.com/HcxActivationKey\022lprojects" - + "/{project}/locations/{location}/privateC" - + "louds/{private_cloud}/hcxActivationKeys/" - + "{hcx_activation_key}\"\260\001\n\003Hcx\022\023\n\013internal" - + "_ip\030\002 \001(\t\022\017\n\007version\030\004 \001(\t\022;\n\005state\030\005 \001(" - + "\0162\'.google.cloud.vmwareengine.v1.Hcx.Sta" - + "teB\003\340A\003\022\014\n\004fqdn\030\006 \001(\t\"8\n\005State\022\025\n\021STATE_" - + "UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002\"" - + "\260\001\n\003Nsx\022\023\n\013internal_ip\030\002 \001(\t\022\017\n\007version\030" - + "\004 \001(\t\022;\n\005state\030\005 \001(\0162\'.google.cloud.vmwa" - + "reengine.v1.Nsx.StateB\003\340A\003\022\014\n\004fqdn\030\006 \001(\t" - + "\"8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTI" - + "VE\020\001\022\014\n\010CREATING\020\002\"\270\001\n\007Vcenter\022\023\n\013intern" - + "al_ip\030\002 \001(\t\022\017\n\007version\030\004 \001(\t\022?\n\005state\030\005 " - + "\001(\0162+.google.cloud.vmwareengine.v1.Vcent" - + "er.StateB\003\340A\003\022\014\n\004fqdn\030\006 \001(\t\"8\n\005State\022\025\n\021" - + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREAT" - + "ING\020\002\"\262\003\n\rDnsForwarding\022\021\n\004name\030\001 \001(\tB\003\340" - + "A\003\0224\n\013create_time\030\002 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\022Y\n\020forwar" - + "ding_rules\030\004 \003(\0132:.google.cloud.vmwareen" - + "gine.v1.DnsForwarding.ForwardingRuleB\003\340A" - + "\002\032@\n\016ForwardingRule\022\023\n\006domain\030\001 \001(\tB\003\340A\002" - + "\022\031\n\014name_servers\030\002 \003(\tB\003\340A\002:\204\001\352A\200\001\n)vmwa" - + "reengine.googleapis.com/DnsForwarding\022Sp" - + "rojects/{project}/locations/{location}/p" - + "rivateClouds/{private_cloud}/dnsForwardi" - + "ng\"\243\n\n\016NetworkPeering\022\021\n\004name\030\001 \001(\tB\003\340A\003" - + "\0224\n\013create_time\030\002 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022\031\n\014peer_net" - + "work\030\005 \001(\tB\003\340A\002\022&\n\024export_custom_routes\030" - + "\010 \001(\010B\003\340A\001H\000\210\001\001\022&\n\024import_custom_routes\030" - + "\t \001(\010B\003\340A\001H\001\210\001\001\022(\n\026exchange_subnet_route" - + "s\030\n \001(\010B\003\340A\001H\002\210\001\001\0225\n#export_custom_route" - + "s_with_public_ip\030\013 \001(\010B\003\340A\001H\003\210\001\001\0225\n#impo" - + "rt_custom_routes_with_public_ip\030\014 \001(\010B\003\340" - + "A\001H\004\210\001\001\022F\n\005state\030\r \001(\01622.google.cloud.vm" - + "wareengine.v1.NetworkPeering.StateB\003\340A\003\022" - + "\032\n\rstate_details\030\007 \001(\tB\003\340A\003\022\025\n\010peer_mtu\030" - + "\016 \001(\005B\003\340A\001\022\\\n\021peer_network_type\030\020 \001(\0162<." - + "google.cloud.vmwareengine.v1.NetworkPeer" - + "ing.PeerNetworkTypeB\003\340A\002\022\020\n\003uid\030\021 \001(\tB\003\340" - + "A\003\022V\n\025vmware_engine_network\030\024 \001(\tB7\340A\002\372A" - + "1\n/vmwareengine.googleapis.com/VmwareEng" - + "ineNetwork\022\030\n\013description\030\025 \001(\tB\003\340A\001\"T\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010INACTIVE" - + "\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010CREATING\020\003\022\014\n\010DELETING" - + "\020\004\"\302\001\n\017PeerNetworkType\022!\n\035PEER_NETWORK_T" - + "YPE_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\031\n\025VMWAR" - + "E_ENGINE_NETWORK\020\002\022\033\n\027PRIVATE_SERVICES_A" - + "CCESS\020\003\022\030\n\024NETAPP_CLOUD_VOLUMES\020\004\022\027\n\023THI" - + "RD_PARTY_SERVICE\020\005\022\023\n\017DELL_POWERSCALE\020\006:" - + "z\352Aw\n*vmwareengine.googleapis.com/Networ" - + "kPeering\022Iprojects/{project}/locations/{" - + "location}/networkPeerings/{network_peeri" - + "ng}B\027\n\025_export_custom_routesB\027\n\025_import_" - + "custom_routesB\031\n\027_exchange_subnet_routes" - + "B&\n$_export_custom_routes_with_public_ip" - + "B&\n$_import_custom_routes_with_public_ip" - + "\"\266\003\n\014PeeringRoute\022\027\n\ndest_range\030\001 \001(\tB\003\340" - + "A\003\022B\n\004type\030\002 \001(\0162/.google.cloud.vmwareen" - + "gine.v1.PeeringRoute.TypeB\003\340A\003\022\034\n\017next_h" - + "op_region\030\003 \001(\tB\003\340A\003\022\025\n\010priority\030\004 \001(\003B\003" - + "\340A\003\022\025\n\010imported\030\005 \001(\010B\003\340A\003\022L\n\tdirection\030" - + "\006 \001(\01624.google.cloud.vmwareengine.v1.Pee" - + "ringRoute.DirectionB\003\340A\003\"k\n\004Type\022\024\n\020TYPE" - + "_UNSPECIFIED\020\000\022\031\n\025DYNAMIC_PEERING_ROUTE\020" - + "\001\022\030\n\024STATIC_PEERING_ROUTE\020\002\022\030\n\024SUBNET_PE" - + "ERING_ROUTE\020\003\"B\n\tDirection\022\031\n\025DIRECTION_" - + "UNSPECIFIED\020\000\022\014\n\010INCOMING\020\001\022\014\n\010OUTGOING\020" - + "\002\"\377\006\n\rNetworkPolicy\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224" - + "\n\013create_time\030\002 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\022S\n\017internet_a" - + "ccess\030\006 \001(\0132:.google.cloud.vmwareengine." - + "v1.NetworkPolicy.NetworkService\022O\n\013exter" - + "nal_ip\030\007 \001(\0132:.google.cloud.vmwareengine" - + ".v1.NetworkPolicy.NetworkService\022\037\n\022edge" - + "_services_cidr\030\t \001(\tB\003\340A\002\022\020\n\003uid\030\n \001(\tB\003" - + "\340A\003\022V\n\025vmware_engine_network\030\014 \001(\tB7\340A\001\372" - + "A1\n/vmwareengine.googleapis.com/VmwareEn" - + "gineNetwork\022\030\n\013description\030\r \001(\tB\003\340A\001\022`\n" - + "\037vmware_engine_network_canonical\030\016 \001(\tB7" - + "\340A\003\372A1\n/vmwareengine.googleapis.com/Vmwa" - + "reEngineNetwork\032\307\001\n\016NetworkService\022\017\n\007en" - + "abled\030\001 \001(\010\022T\n\005state\030\002 \001(\0162@.google.clou" - + "d.vmwareengine.v1.NetworkPolicy.NetworkS" - + "ervice.StateB\003\340A\003\"N\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\021\n\rUNPROVISIONED\020\001\022\017\n\013RECONCIL" - + "ING\020\002\022\n\n\006ACTIVE\020\003:x\352Au\n)vmwareengine.goo" - + "gleapis.com/NetworkPolicy\022Hprojects/{pro" - + "ject}/locations/{location}/networkPolici" - + "es/{network_policy}\"\323\005\n\030ManagementDnsZon" - + "eBinding\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_ti" - + "me\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022P\n\005state\030\010 \001(\0162<.google." - + "cloud.vmwareengine.v1.ManagementDnsZoneB" - + "inding.StateB\003\340A\003\022\023\n\013description\030\r \001(\t\022:" - + "\n\013vpc_network\030\016 \001(\tB#\372A \n\036compute.google" - + "apis.com/NetworkH\000\022U\n\025vmware_engine_netw" - + "ork\030\017 \001(\tB4\372A1\n/vmwareengine.googleapis." - + "com/VmwareEngineNetworkH\000\022\020\n\003uid\030\t \001(\tB\003" - + "\340A\003\"`\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006A" - + "CTIVE\020\001\022\014\n\010CREATING\020\002\022\014\n\010UPDATING\020\003\022\014\n\010D" - + "ELETING\020\004\022\n\n\006FAILED\020\005:\271\001\352A\265\001\n4vmwareengi" - + "ne.googleapis.com/ManagementDnsZoneBindi" - + "ng\022}projects/{project}/locations/{locati" - + "on}/privateClouds/{private_cloud}/manage" - + "mentDnsZoneBindings/{management_dns_zone" - + "_binding}B\016\n\014bind_network\"\300\007\n\023VmwareEngi" - + "neNetwork\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_t" + + "gle.protobuf.TimestampB\003\340A\003\022?\n\005state\030\006 \001" + + "(\0162+.google.cloud.vmwareengine.v1.Cluste" + + "r.StateB\003\340A\003\022\027\n\nmanagement\030\007 \001(\010B\003\340A\003\022T\n" + + "\024autoscaling_settings\030\022 \001(\01321.google.clo" + + "ud.vmwareengine.v1.AutoscalingSettingsB\003" + + "\340A\001\022\020\n\003uid\030\016 \001(\tB\003\340A\003\022Z\n\021node_type_confi" + + "gs\030\020 \003(\0132:.google.cloud.vmwareengine.v1." + + "Cluster.NodeTypeConfigsEntryB\003\340A\002\022[\n\030str" + + "etched_cluster_config\030\021 \001(\01324.google.clo" + + "ud.vmwareengine.v1.StretchedClusterConfi" + + "gB\003\340A\001\032d\n\024NodeTypeConfigsEntry\022\013\n\003key\030\001 " + + "\001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.vmware" + + "engine.v1.NodeTypeConfig:\0028\001\"c\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREA" + + "TING\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022\r\n\tRE" + + "PAIRING\020\005:\202\001\352A\177\n#vmwareengine.googleapis" + + ".com/Cluster\022Xprojects/{project}/locatio" + + "ns/{location}/privateClouds/{private_clo" + + "ud}/clusters/{cluster}\"\272\003\n\004Node\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022\021\n\004fqdn\030\002 \001(\tB\003\340A\003\022\030\n\013interna" + + "l_ip\030\003 \001(\tB\003\340A\003\022\031\n\014node_type_id\030\004 \001(\tB\003\340" + + "A\003\022\024\n\007version\030\005 \001(\tB\003\340A\003\022\036\n\021custom_core_" + + "count\030\006 \001(\003B\003\340A\003\022<\n\005state\030\007 \001(\0162(.google" + + ".cloud.vmwareengine.v1.Node.StateB\003\340A\003\"S" + + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE" + + "\020\001\022\014\n\010CREATING\020\002\022\n\n\006FAILED\020\003\022\r\n\tUPGRADIN" + + "G\020\004:\215\001\352A\211\001\n vmwareengine.googleapis.com/" + + "Node\022eprojects/{project}/locations/{loca" + + "tion}/privateClouds/{private_cloud}/clus" + + "ters/{cluster}/nodes/{node}\"\245\004\n\017External" + + "Address\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022\023\n\013internal_ip\030\006 \001(\t\022\030\n\013e" + + "xternal_ip\030\007 \001(\tB\003\340A\003\022G\n\005state\030\010 \001(\01623.g" + + "oogle.cloud.vmwareengine.v1.ExternalAddr" + + "ess.StateB\003\340A\003\022\020\n\003uid\030\t \001(\tB\003\340A\003\022\023\n\013desc" + + "ription\030\013 \001(\t\"T\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002\022\014\n\010UPDAT" + + "ING\020\003\022\014\n\010DELETING\020\004:\235\001\352A\231\001\n+vmwareengine" + + ".googleapis.com/ExternalAddress\022jproject" + + "s/{project}/locations/{location}/private" + + "Clouds/{private_cloud}/externalAddresses" + + "/{external_address}\"\243\003\n\006Subnet\022\021\n\004name\030\001" + + " \001(\tB\003\340A\003\022\025\n\rip_cidr_range\030\007 \001(\t\022\022\n\ngate" + + "way_ip\030\010 \001(\t\022\021\n\004type\030\013 \001(\tB\003\340A\003\022>\n\005state" + + "\030\r \001(\0162*.google.cloud.vmwareengine.v1.Su" + + "bnet.StateB\003\340A\003\022\024\n\007vlan_id\030\020 \001(\005B\003\340A\003\"q\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020" + + "\001\022\014\n\010CREATING\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETIN" + + "G\020\004\022\017\n\013RECONCILING\020\005\022\n\n\006FAILED\020\006:\177\352A|\n\"v" + + "mwareengine.googleapis.com/Subnet\022Vproje" + + "cts/{project}/locations/{location}/priva" + + "teClouds/{private_cloud}/subnets/{subnet" + + "}\"\245\010\n\022ExternalAccessRule\022\021\n\004name\030\001 \001(\tB\003" + + "\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\022\023\n\013descr" + + "iption\030\005 \001(\t\022\020\n\010priority\030\006 \001(\005\022G\n\006action" + + "\030\007 \001(\01627.google.cloud.vmwareengine.v1.Ex" + + "ternalAccessRule.Action\022\023\n\013ip_protocol\030\010" + + " \001(\t\022R\n\020source_ip_ranges\030\t \003(\01328.google." + + "cloud.vmwareengine.v1.ExternalAccessRule" + + ".IpRange\022\024\n\014source_ports\030\n \003(\t\022W\n\025destin" + + "ation_ip_ranges\030\013 \003(\01328.google.cloud.vmw" + + "areengine.v1.ExternalAccessRule.IpRange\022" + + "\031\n\021destination_ports\030\014 \003(\t\022J\n\005state\030\r \001(" + + "\01626.google.cloud.vmwareengine.v1.Externa" + + "lAccessRule.StateB\003\340A\003\022\020\n\003uid\030\016 \001(\tB\003\340A\003" + + "\032\225\001\n\007IpRange\022\024\n\nip_address\030\001 \001(\tH\000\022\032\n\020ip" + + "_address_range\030\002 \001(\tH\000\022L\n\020external_addre" + + "ss\030\003 \001(\tB0\372A-\n+vmwareengine.googleapis.c" + + "om/ExternalAddressH\000B\n\n\010ip_range\"5\n\006Acti" + + "on\022\026\n\022ACTION_UNSPECIFIED\020\000\022\t\n\005ALLOW\020\001\022\010\n" + + "\004DENY\020\002\"T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002\022\014\n\010UPDATING\020\003\022" + + "\014\n\010DELETING\020\004:\251\001\352A\245\001\n.vmwareengine.googl" + + "eapis.com/ExternalAccessRule\022sprojects/{" + + "project}/locations/{location}/networkPol" + + "icies/{network_policy}/externalAccessRul" + + "es/{external_access_rule}\"\225\005\n\rLoggingSer" + + "ver\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "update_time\030\003 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022\025\n\010hostname\030\005 \001(\tB\003\340A\002\022\021\n\004por" + + "t\030\007 \001(\005B\003\340A\002\022K\n\010protocol\030\006 \001(\01624.google." + + "cloud.vmwareengine.v1.LoggingServer.Prot" + + "ocolB\003\340A\002\022P\n\013source_type\030\n \001(\01626.google." + + "cloud.vmwareengine.v1.LoggingServer.Sour" + + "ceTypeB\003\340A\002\022\020\n\003uid\030\010 \001(\tB\003\340A\003\"R\n\010Protoco" + + "l\022\030\n\024PROTOCOL_UNSPECIFIED\020\000\022\007\n\003UDP\020\001\022\007\n\003" + + "TCP\020\002\022\007\n\003TLS\020\003\022\007\n\003SSL\020\004\022\010\n\004RELP\020\005\"=\n\nSou" + + "rceType\022\033\n\027SOURCE_TYPE_UNSPECIFIED\020\000\022\010\n\004" + + "ESXI\020\001\022\010\n\004VCSA\020\002:\226\001\352A\222\001\n)vmwareengine.go" + + "ogleapis.com/LoggingServer\022eprojects/{pr" + + "oject}/locations/{location}/privateCloud" + + "s/{private_cloud}/loggingServers/{loggin" + + "g_server}\"\377\004\n\010NodeType\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\022\031\n\014node_type_id\030\002 \001(\tB\003\340A\003\022\031\n\014display_" + + "name\030\003 \001(\tB\003\340A\003\022\036\n\021virtual_cpu_count\030\004 \001" + + "(\005B\003\340A\003\022\035\n\020total_core_count\030\005 \001(\005B\003\340A\003\022\026" + + "\n\tmemory_gb\030\007 \001(\005B\003\340A\003\022\031\n\014disk_size_gb\030\010" + + " \001(\005B\003\340A\003\022)\n\034available_custom_core_count" + + "s\030\013 \003(\005B\003\340A\003\022>\n\004kind\030\014 \001(\0162+.google.clou" + + "d.vmwareengine.v1.NodeType.KindB\003\340A\003\022\025\n\010" + + "families\030\r \003(\tB\003\340A\003\022L\n\014capabilities\030\016 \003(" + + "\01621.google.cloud.vmwareengine.v1.NodeTyp" + + "e.CapabilityB\003\340A\003\"<\n\004Kind\022\024\n\020KIND_UNSPEC" + + "IFIED\020\000\022\014\n\010STANDARD\020\001\022\020\n\014STORAGE_ONLY\020\002\"" + + "@\n\nCapability\022\032\n\026CAPABILITY_UNSPECIFIED\020" + + "\000\022\026\n\022STRETCHED_CLUSTERS\020\001:h\352Ae\n$vmwareen" + + "gine.googleapis.com/NodeType\022=projects/{" + + "project}/locations/{location}/nodeTypes/" + + "{node_type}\"1\n\013Credentials\022\020\n\010username\030\001" + + " \001(\t\022\020\n\010password\030\002 \001(\t\"\302\003\n\020HcxActivation" + + "Key\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022H\n\005" + + "state\030\003 \001(\01624.google.cloud.vmwareengine." + + "v1.HcxActivationKey.StateB\003\340A\003\022\033\n\016activa" + + "tion_key\030\004 \001(\tB\003\340A\003\022\020\n\003uid\030\005 \001(\tB\003\340A\003\"I\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\tAVAILAB" + + "LE\020\001\022\014\n\010CONSUMED\020\002\022\014\n\010CREATING\020\003:\240\001\352A\234\001\n" + + ",vmwareengine.googleapis.com/HcxActivati" + + "onKey\022lprojects/{project}/locations/{loc" + + "ation}/privateClouds/{private_cloud}/hcx" + + "ActivationKeys/{hcx_activation_key}\"\300\001\n\003" + + "Hcx\022\023\n\013internal_ip\030\002 \001(\t\022\017\n\007version\030\004 \001(" + + "\t\022;\n\005state\030\005 \001(\0162\'.google.cloud.vmwareen" + + "gine.v1.Hcx.StateB\003\340A\003\022\014\n\004fqdn\030\006 \001(\t\"H\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001" + + "\022\014\n\010CREATING\020\002\022\016\n\nACTIVATING\020\003\"\260\001\n\003Nsx\022\023" + + "\n\013internal_ip\030\002 \001(\t\022\017\n\007version\030\004 \001(\t\022;\n\005" + + "state\030\005 \001(\0162\'.google.cloud.vmwareengine." + + "v1.Nsx.StateB\003\340A\003\022\014\n\004fqdn\030\006 \001(\t\"8\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010C" + + "REATING\020\002\"\270\001\n\007Vcenter\022\023\n\013internal_ip\030\002 \001" + + "(\t\022\017\n\007version\030\004 \001(\t\022?\n\005state\030\005 \001(\0162+.goo" + + "gle.cloud.vmwareengine.v1.Vcenter.StateB" + + "\003\340A\003\022\014\n\004fqdn\030\006 \001(\t\"8\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002\"\233\007\n" + + "\023AutoscalingSettings\022m\n\024autoscaling_poli" + + "cies\030\001 \003(\0132J.google.cloud.vmwareengine.v" + + "1.AutoscalingSettings.AutoscalingPolicie" + + "sEntryB\003\340A\002\022#\n\026min_cluster_node_count\030\002 " + + "\001(\005B\003\340A\001\022#\n\026max_cluster_node_count\030\003 \001(\005" + + "B\003\340A\001\0228\n\020cool_down_period\030\004 \001(\0132\031.google" + + ".protobuf.DurationB\003\340A\001\032;\n\nThresholds\022\026\n" + + "\tscale_out\030\001 \001(\005B\003\340A\002\022\025\n\010scale_in\030\002 \001(\005B" + + "\003\340A\002\032\322\003\n\021AutoscalingPolicy\022\031\n\014node_type_" + + "id\030\001 \001(\tB\003\340A\002\022\033\n\016scale_out_size\030\002 \001(\005B\003\340" + + "A\002\022Y\n\016cpu_thresholds\030\013 \001(\0132<.google.clou" + + "d.vmwareengine.v1.AutoscalingSettings.Th" + + "resholdsB\003\340A\001\022d\n\031granted_memory_threshol" + + "ds\030\014 \001(\0132<.google.cloud.vmwareengine.v1." + + "AutoscalingSettings.ThresholdsB\003\340A\001\022e\n\032c" + + "onsumed_memory_thresholds\030\r \001(\0132<.google" + + ".cloud.vmwareengine.v1.AutoscalingSettin" + + "gs.ThresholdsB\003\340A\001\022]\n\022storage_thresholds" + + "\030\016 \001(\0132<.google.cloud.vmwareengine.v1.Au" + + "toscalingSettings.ThresholdsB\003\340A\001\032\177\n\030Aut" + + "oscalingPoliciesEntry\022\013\n\003key\030\001 \001(\t\022R\n\005va" + + "lue\030\002 \001(\0132C.google.cloud.vmwareengine.v1" + + ".AutoscalingSettings.AutoscalingPolicy:\002" + + "8\001\"\262\003\n\rDnsForwarding\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" + + "4\n\013create_time\030\002 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\022Y\n\020forwardin" + + "g_rules\030\004 \003(\0132:.google.cloud.vmwareengin" + + "e.v1.DnsForwarding.ForwardingRuleB\003\340A\002\032@" + + "\n\016ForwardingRule\022\023\n\006domain\030\001 \001(\tB\003\340A\002\022\031\n" + + "\014name_servers\030\002 \003(\tB\003\340A\002:\204\001\352A\200\001\n)vmwaree" + + "ngine.googleapis.com/DnsForwarding\022Sproj" + + "ects/{project}/locations/{location}/priv" + + "ateClouds/{private_cloud}/dnsForwarding\"" + + "\304\n\n\016NetworkPeering\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022\031\n\014peer_networ" + + "k\030\005 \001(\tB\003\340A\002\022&\n\024export_custom_routes\030\010 \001" + + "(\010B\003\340A\001H\000\210\001\001\022&\n\024import_custom_routes\030\t \001" + + "(\010B\003\340A\001H\001\210\001\001\022(\n\026exchange_subnet_routes\030\n" + + " \001(\010B\003\340A\001H\002\210\001\001\0225\n#export_custom_routes_w" + + "ith_public_ip\030\013 \001(\010B\003\340A\001H\003\210\001\001\0225\n#import_" + + "custom_routes_with_public_ip\030\014 \001(\010B\003\340A\001H" + + "\004\210\001\001\022F\n\005state\030\r \001(\01622.google.cloud.vmwar" + + "eengine.v1.NetworkPeering.StateB\003\340A\003\022\032\n\r" + + "state_details\030\007 \001(\tB\003\340A\003\022\025\n\010peer_mtu\030\016 \001" + + "(\005B\003\340A\001\022\\\n\021peer_network_type\030\020 \001(\0162<.goo" + + "gle.cloud.vmwareengine.v1.NetworkPeering" + + ".PeerNetworkTypeB\003\340A\002\022\020\n\003uid\030\021 \001(\tB\003\340A\003\022" + + "V\n\025vmware_engine_network\030\024 \001(\tB7\340A\002\372A1\n/" + + "vmwareengine.googleapis.com/VmwareEngine" + + "Network\022\030\n\013description\030\025 \001(\tB\003\340A\001\"T\n\005Sta" + + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010INACTIVE\020\001\022" + + "\n\n\006ACTIVE\020\002\022\014\n\010CREATING\020\003\022\014\n\010DELETING\020\004\"" + + "\343\001\n\017PeerNetworkType\022!\n\035PEER_NETWORK_TYPE" + + "_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\031\n\025VMWARE_E" + + "NGINE_NETWORK\020\002\022\033\n\027PRIVATE_SERVICES_ACCE" + + "SS\020\003\022\030\n\024NETAPP_CLOUD_VOLUMES\020\004\022\027\n\023THIRD_" + + "PARTY_SERVICE\020\005\022\023\n\017DELL_POWERSCALE\020\006\022\037\n\033" + + "GOOGLE_CLOUD_NETAPP_VOLUMES\020\007:z\352Aw\n*vmwa" + + "reengine.googleapis.com/NetworkPeering\022I" + + "projects/{project}/locations/{location}/" + + "networkPeerings/{network_peering}B\027\n\025_ex" + + "port_custom_routesB\027\n\025_import_custom_rou" + + "tesB\031\n\027_exchange_subnet_routesB&\n$_expor" + + "t_custom_routes_with_public_ipB&\n$_impor" + + "t_custom_routes_with_public_ip\"\266\003\n\014Peeri" + + "ngRoute\022\027\n\ndest_range\030\001 \001(\tB\003\340A\003\022B\n\004type" + + "\030\002 \001(\0162/.google.cloud.vmwareengine.v1.Pe" + + "eringRoute.TypeB\003\340A\003\022\034\n\017next_hop_region\030" + + "\003 \001(\tB\003\340A\003\022\025\n\010priority\030\004 \001(\003B\003\340A\003\022\025\n\010imp" + + "orted\030\005 \001(\010B\003\340A\003\022L\n\tdirection\030\006 \001(\01624.go" + + "ogle.cloud.vmwareengine.v1.PeeringRoute." + + "DirectionB\003\340A\003\"k\n\004Type\022\024\n\020TYPE_UNSPECIFI" + + "ED\020\000\022\031\n\025DYNAMIC_PEERING_ROUTE\020\001\022\030\n\024STATI" + + "C_PEERING_ROUTE\020\002\022\030\n\024SUBNET_PEERING_ROUT" + + "E\020\003\"B\n\tDirection\022\031\n\025DIRECTION_UNSPECIFIE" + + "D\020\000\022\014\n\010INCOMING\020\001\022\014\n\010OUTGOING\020\002\"\377\006\n\rNetw" + + "orkPolicy\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_t" + "ime\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340" + "A\003\0224\n\013update_time\030\003 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\022\023\n\013description\030\005 \001(\t\022W\n" - + "\014vpc_networks\030\006 \003(\0132<.google.cloud.vmwar" - + "eengine.v1.VmwareEngineNetwork.VpcNetwor" - + "kB\003\340A\003\022K\n\005state\030\007 \001(\01627.google.cloud.vmw" - + "areengine.v1.VmwareEngineNetwork.StateB\003" - + "\340A\003\022I\n\004type\030\010 \001(\01626.google.cloud.vmwaree" - + "ngine.v1.VmwareEngineNetwork.TypeB\003\340A\002\022\020" - + "\n\003uid\030\t \001(\tB\003\340A\003\022\014\n\004etag\030\n \001(\t\032\347\001\n\nVpcNe" - + "twork\022T\n\004type\030\001 \001(\0162A.google.cloud.vmwar" - + "eengine.v1.VmwareEngineNetwork.VpcNetwor" - + "k.TypeB\003\340A\003\0227\n\007network\030\002 \001(\tB&\340A\003\372A \n\036co" - + "mpute.googleapis.com/Network\"J\n\004Type\022\024\n\020" - + "TYPE_UNSPECIFIED\020\000\022\014\n\010INTRANET\020\001\022\014\n\010INTE" - + "RNET\020\002\022\020\n\014GOOGLE_CLOUD\020\003\"T\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE" - + "\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\"6\n\004Type\022\024" - + "\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006LEGACY\020\001\022\014\n\010STAN" - + "DARD\020\002:\213\001\352A\207\001\n/vmwareengine.googleapis.c" - + "om/VmwareEngineNetwork\022Tprojects/{projec" - + "t}/locations/{location}/vmwareEngineNetw" - + "orks/{vmware_engine_network}\"\267\n\n\021Private" - + "Connection\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_" - + "time\030\002 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\022\030\n\013description\030\004 \001(\tB\003" - + "\340A\001\022I\n\005state\030\005 \001(\01625.google.cloud.vmware" - + "engine.v1.PrivateConnection.StateB\003\340A\003\022V" - + "\n\025vmware_engine_network\030\010 \001(\tB7\340A\002\372A1\n/v" - + "mwareengine.googleapis.com/VmwareEngineN" - + "etwork\022`\n\037vmware_engine_network_canonica" - + "l\030\t \001(\tB7\340A\003\372A1\n/vmwareengine.googleapis" - + ".com/VmwareEngineNetwork\022G\n\004type\030\n \001(\01624" - + ".google.cloud.vmwareengine.v1.PrivateCon" - + "nection.TypeB\003\340A\002\022\027\n\npeering_id\030\014 \001(\tB\003\340" - + "A\003\022V\n\014routing_mode\030\r \001(\0162;.google.cloud." - + "vmwareengine.v1.PrivateConnection.Routin" - + "gModeB\003\340A\001\022\020\n\003uid\030\016 \001(\tB\003\340A\003\022?\n\017service_" - + "network\030\020 \001(\tB&\340A\002\372A \n\036compute.googleapi" - + "s.com/Network\022X\n\rpeering_state\030\021 \001(\0162<.g" - + "oogle.cloud.vmwareengine.v1.PrivateConne" - + "ction.PeeringStateB\003\340A\003\"s\n\005State\022\025\n\021STAT" - + "E_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020" - + "\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022\021\n\rUNPROVI" - + "SIONED\020\005\022\n\n\006FAILED\020\006\"\200\001\n\004Type\022\024\n\020TYPE_UN" - + "SPECIFIED\020\000\022\032\n\026PRIVATE_SERVICE_ACCESS\020\001\022" - + "\030\n\024NETAPP_CLOUD_VOLUMES\020\002\022\023\n\017DELL_POWERS" - + "CALE\020\003\022\027\n\023THIRD_PARTY_SERVICE\020\004\"E\n\013Routi" - + "ngMode\022\034\n\030ROUTING_MODE_UNSPECIFIED\020\000\022\n\n\006" - + "GLOBAL\020\001\022\014\n\010REGIONAL\020\002\"W\n\014PeeringState\022\035" - + "\n\031PEERING_STATE_UNSPECIFIED\020\000\022\022\n\016PEERING" - + "_ACTIVE\020\001\022\024\n\020PEERING_INACTIVE\020\002:\204\001\352A\200\001\n-" - + "vmwareengine.googleapis.com/PrivateConne" - + "ction\022Oprojects/{project}/locations/{loc" - + "ation}/privateConnections/{private_conne" - + "ction}\"\252\001\n\020LocationMetadata\022T\n\014capabilit" - + "ies\030\001 \003(\01629.google.cloud.vmwareengine.v1" - + ".LocationMetadata.CapabilityB\003\340A\003\"@\n\nCap" - + "ability\022\032\n\026CAPABILITY_UNSPECIFIED\020\000\022\026\n\022S" - + "TRETCHED_CLUSTERS\020\001\"\327\001\n\021DnsBindPermissio" - + "n\022\021\n\004name\030\001 \001(\tB\003\340A\003\022@\n\nprincipals\030\002 \003(\013" - + "2\'.google.cloud.vmwareengine.v1.Principa" - + "lB\003\340A\003:m\352Aj\n-vmwareengine.googleapis.com" - + "/DnsBindPermission\0229projects/{project}/l" - + "ocations/{location}/dnsBindPermission\"C\n" - + "\tPrincipal\022\016\n\004user\030\001 \001(\tH\000\022\031\n\017service_ac" - + "count\030\002 \001(\tH\000B\013\n\tprincipalB\346\001\n com.googl" - + "e.cloud.vmwareengine.v1B\032VmwareengineRes" - + "ourcesProtoP\001ZDcloud.google.com/go/vmwar" - + "eengine/apiv1/vmwareenginepb;vmwareengin" - + "epb\252\002\034Google.Cloud.VmwareEngine.V1\312\002\034Goo" - + "gle\\Cloud\\VmwareEngine\\V1\352\002\037Google::Clou" - + "d::VmwareEngine::V1b\006proto3" + + "f.TimestampB\003\340A\003\022S\n\017internet_access\030\006 \001(" + + "\0132:.google.cloud.vmwareengine.v1.Network" + + "Policy.NetworkService\022O\n\013external_ip\030\007 \001" + + "(\0132:.google.cloud.vmwareengine.v1.Networ" + + "kPolicy.NetworkService\022\037\n\022edge_services_" + + "cidr\030\t \001(\tB\003\340A\002\022\020\n\003uid\030\n \001(\tB\003\340A\003\022V\n\025vmw" + + "are_engine_network\030\014 \001(\tB7\340A\001\372A1\n/vmware" + + "engine.googleapis.com/VmwareEngineNetwor" + + "k\022\030\n\013description\030\r \001(\tB\003\340A\001\022`\n\037vmware_en" + + "gine_network_canonical\030\016 \001(\tB7\340A\003\372A1\n/vm" + + "wareengine.googleapis.com/VmwareEngineNe" + + "twork\032\307\001\n\016NetworkService\022\017\n\007enabled\030\001 \001(" + + "\010\022T\n\005state\030\002 \001(\0162@.google.cloud.vmwareen" + + "gine.v1.NetworkPolicy.NetworkService.Sta" + + "teB\003\340A\003\"N\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\021\n\rUNPROVISIONED\020\001\022\017\n\013RECONCILING\020\002\022\n\n\006A" + + "CTIVE\020\003:x\352Au\n)vmwareengine.googleapis.co" + + "m/NetworkPolicy\022Hprojects/{project}/loca" + + "tions/{location}/networkPolicies/{networ" + + "k_policy}\"\323\005\n\030ManagementDnsZoneBinding\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022P\n\005state\030\010 \001(\0162<.google.cloud.vmwa" + + "reengine.v1.ManagementDnsZoneBinding.Sta" + + "teB\003\340A\003\022\023\n\013description\030\r \001(\t\022:\n\013vpc_netw" + + "ork\030\016 \001(\tB#\372A \n\036compute.googleapis.com/N" + + "etworkH\000\022U\n\025vmware_engine_network\030\017 \001(\tB" + + "4\372A1\n/vmwareengine.googleapis.com/Vmware" + + "EngineNetworkH\000\022\020\n\003uid\030\t \001(\tB\003\340A\003\"`\n\005Sta" + + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n" + + "\010CREATING\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022" + + "\n\n\006FAILED\020\005:\271\001\352A\265\001\n4vmwareengine.googlea" + + "pis.com/ManagementDnsZoneBinding\022}projec" + + "ts/{project}/locations/{location}/privat" + + "eClouds/{private_cloud}/managementDnsZon" + + "eBindings/{management_dns_zone_binding}B" + + "\016\n\014bind_network\"\300\007\n\023VmwareEngineNetwork\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\022\023\n\013description\030\005 \001(\t\022W\n\014vpc_netwo" + + "rks\030\006 \003(\0132<.google.cloud.vmwareengine.v1" + + ".VmwareEngineNetwork.VpcNetworkB\003\340A\003\022K\n\005" + + "state\030\007 \001(\01627.google.cloud.vmwareengine." + + "v1.VmwareEngineNetwork.StateB\003\340A\003\022I\n\004typ" + + "e\030\010 \001(\01626.google.cloud.vmwareengine.v1.V" + + "mwareEngineNetwork.TypeB\003\340A\002\022\020\n\003uid\030\t \001(" + + "\tB\003\340A\003\022\014\n\004etag\030\n \001(\t\032\347\001\n\nVpcNetwork\022T\n\004t" + + "ype\030\001 \001(\0162A.google.cloud.vmwareengine.v1" + + ".VmwareEngineNetwork.VpcNetwork.TypeB\003\340A" + + "\003\0227\n\007network\030\002 \001(\tB&\340A\003\372A \n\036compute.goog" + + "leapis.com/Network\"J\n\004Type\022\024\n\020TYPE_UNSPE" + + "CIFIED\020\000\022\014\n\010INTRANET\020\001\022\014\n\010INTERNET\020\002\022\020\n\014" + + "GOOGLE_CLOUD\020\003\"T\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010UPDA" + + "TING\020\003\022\014\n\010DELETING\020\004\"6\n\004Type\022\024\n\020TYPE_UNS" + + "PECIFIED\020\000\022\n\n\006LEGACY\020\001\022\014\n\010STANDARD\020\002:\213\001\352" + + "A\207\001\n/vmwareengine.googleapis.com/VmwareE" + + "ngineNetwork\022Tprojects/{project}/locatio" + + "ns/{location}/vmwareEngineNetworks/{vmwa" + + "re_engine_network}\"\267\n\n\021PrivateConnection" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022\030\n\013description\030\004 \001(\tB\003\340A\001\022I\n\005sta" + + "te\030\005 \001(\01625.google.cloud.vmwareengine.v1." + + "PrivateConnection.StateB\003\340A\003\022V\n\025vmware_e" + + "ngine_network\030\010 \001(\tB7\340A\002\372A1\n/vmwareengin" + + "e.googleapis.com/VmwareEngineNetwork\022`\n\037" + + "vmware_engine_network_canonical\030\t \001(\tB7\340" + + "A\003\372A1\n/vmwareengine.googleapis.com/Vmwar" + + "eEngineNetwork\022G\n\004type\030\n \001(\01624.google.cl" + + "oud.vmwareengine.v1.PrivateConnection.Ty" + + "peB\003\340A\002\022\027\n\npeering_id\030\014 \001(\tB\003\340A\003\022V\n\014rout" + + "ing_mode\030\r \001(\0162;.google.cloud.vmwareengi" + + "ne.v1.PrivateConnection.RoutingModeB\003\340A\001" + + "\022\020\n\003uid\030\016 \001(\tB\003\340A\003\022?\n\017service_network\030\020 " + + "\001(\tB&\340A\002\372A \n\036compute.googleapis.com/Netw" + + "ork\022X\n\rpeering_state\030\021 \001(\0162<.google.clou" + + "d.vmwareengine.v1.PrivateConnection.Peer" + + "ingStateB\003\340A\003\"s\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010UPDAT" + + "ING\020\003\022\014\n\010DELETING\020\004\022\021\n\rUNPROVISIONED\020\005\022\n" + + "\n\006FAILED\020\006\"\200\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020" + + "\000\022\032\n\026PRIVATE_SERVICE_ACCESS\020\001\022\030\n\024NETAPP_" + + "CLOUD_VOLUMES\020\002\022\023\n\017DELL_POWERSCALE\020\003\022\027\n\023" + + "THIRD_PARTY_SERVICE\020\004\"E\n\013RoutingMode\022\034\n\030" + + "ROUTING_MODE_UNSPECIFIED\020\000\022\n\n\006GLOBAL\020\001\022\014" + + "\n\010REGIONAL\020\002\"W\n\014PeeringState\022\035\n\031PEERING_" + + "STATE_UNSPECIFIED\020\000\022\022\n\016PEERING_ACTIVE\020\001\022" + + "\024\n\020PEERING_INACTIVE\020\002:\204\001\352A\200\001\n-vmwareengi" + + "ne.googleapis.com/PrivateConnection\022Opro" + + "jects/{project}/locations/{location}/pri" + + "vateConnections/{private_connection}\"\252\001\n" + + "\020LocationMetadata\022T\n\014capabilities\030\001 \003(\0162" + + "9.google.cloud.vmwareengine.v1.LocationM" + + "etadata.CapabilityB\003\340A\003\"@\n\nCapability\022\032\n" + + "\026CAPABILITY_UNSPECIFIED\020\000\022\026\n\022STRETCHED_C" + + "LUSTERS\020\001\"\327\001\n\021DnsBindPermission\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022@\n\nprincipals\030\002 \003(\0132\'.google." + + "cloud.vmwareengine.v1.PrincipalB\003\340A\003:m\352A" + + "j\n-vmwareengine.googleapis.com/DnsBindPe" + + "rmission\0229projects/{project}/locations/{" + + "location}/dnsBindPermission\"C\n\tPrincipal" + + "\022\016\n\004user\030\001 \001(\tH\000\022\031\n\017service_account\030\002 \001(" + + "\tH\000B\013\n\tprincipalB\346\001\n com.google.cloud.vm" + + "wareengine.v1B\032VmwareengineResourcesProt" + + "oP\001ZDcloud.google.com/go/vmwareengine/ap" + + "iv1/vmwareenginepb;vmwareenginepb\252\002\034Goog" + + "le.Cloud.VmwareEngine.V1\312\002\034Google\\Cloud\\" + + "VmwareEngine\\V1\352\002\037Google::Cloud::VmwareE" + + "ngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_vmwareengine_v1_NetworkConfig_descriptor = @@ -622,6 +669,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "State", "Management", + "AutoscalingSettings", "Uid", "NodeTypeConfigs", "StretchedClusterConfig", @@ -768,8 +816,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "InternalIp", "Version", "State", "Fqdn", }); - internal_static_google_cloud_vmwareengine_v1_DnsForwarding_descriptor = + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_descriptor = getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_descriptor, + new java.lang.String[] { + "AutoscalingPolicies", "MinClusterNodeCount", "MaxClusterNodeCount", "CoolDownPeriod", + }); + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_Thresholds_descriptor = + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_Thresholds_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_Thresholds_descriptor, + new java.lang.String[] { + "ScaleOut", "ScaleIn", + }); + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPolicy_descriptor = + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPolicy_descriptor, + new java.lang.String[] { + "NodeTypeId", + "ScaleOutSize", + "CpuThresholds", + "GrantedMemoryThresholds", + "ConsumedMemoryThresholds", + "StorageThresholds", + }); + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPoliciesEntry_descriptor = + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPoliciesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_AutoscalingSettings_AutoscalingPoliciesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_vmwareengine_v1_DnsForwarding_descriptor = + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_vmwareengine_v1_DnsForwarding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_DnsForwarding_descriptor, @@ -787,7 +878,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Domain", "NameServers", }); internal_static_google_cloud_vmwareengine_v1_NetworkPeering_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_vmwareengine_v1_NetworkPeering_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_NetworkPeering_descriptor, @@ -810,7 +901,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Description", }); internal_static_google_cloud_vmwareengine_v1_PeeringRoute_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_vmwareengine_v1_PeeringRoute_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_PeeringRoute_descriptor, @@ -818,7 +909,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestRange", "Type", "NextHopRegion", "Priority", "Imported", "Direction", }); internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor, @@ -845,7 +936,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", "State", }); internal_static_google_cloud_vmwareengine_v1_ManagementDnsZoneBinding_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_vmwareengine_v1_ManagementDnsZoneBinding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_ManagementDnsZoneBinding_descriptor, @@ -861,7 +952,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BindNetwork", }); internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_descriptor, @@ -887,7 +978,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", "Network", }); internal_static_google_cloud_vmwareengine_v1_PrivateConnection_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_vmwareengine_v1_PrivateConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_PrivateConnection_descriptor, @@ -907,7 +998,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PeeringState", }); internal_static_google_cloud_vmwareengine_v1_LocationMetadata_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_vmwareengine_v1_LocationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_LocationMetadata_descriptor, @@ -915,7 +1006,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Capabilities", }); internal_static_google_cloud_vmwareengine_v1_DnsBindPermission_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_vmwareengine_v1_DnsBindPermission_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_DnsBindPermission_descriptor, @@ -923,7 +1014,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Principals", }); internal_static_google_cloud_vmwareengine_v1_Principal_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_vmwareengine_v1_Principal_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vmwareengine_v1_Principal_descriptor, @@ -938,7 +1029,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine.proto b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine.proto index d77ac7c265d1..6611559364a0 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine.proto +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine.proto @@ -16,16 +16,16 @@ syntax = "proto3"; package google.cloud.vmwareengine.v1; -import "google/longrunning/operations.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/field_mask.proto"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/cloud/vmwareengine/v1/vmwareengine_resources.proto"; +import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.VmwareEngine.V1"; option go_package = "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb;vmwareenginepb"; diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine_resources.proto b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine_resources.proto index b773c00c9c69..69dfa5ee77fa 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine_resources.proto +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine_resources.proto @@ -17,7 +17,9 @@ syntax = "proto3"; package google.cloud.vmwareengine.v1; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.VmwareEngine.V1"; @@ -299,6 +301,10 @@ message Cluster { // and it has to be the first one. bool management = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Configuration of the autoscaling applied to this cluster. + AutoscalingSettings autoscaling_settings = 18 + [(google.api.field_behavior) = OPTIONAL]; + // Output only. System-generated unique identifier for the resource. string uid = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -633,6 +639,15 @@ message LoggingServer { // TCP TCP = 2; + + // TLS + TLS = 3; + + // SSL + SSL = 4; + + // RELP + RELP = 5; } // Defines possible types of component that produces logs. @@ -824,6 +839,9 @@ message Hcx { // The appliance is being deployed. CREATING = 2; + + // The appliance is being activated. + ACTIVATING = 3; } // Internal IP address of the appliance. @@ -893,6 +911,84 @@ message Vcenter { string fqdn = 6; } +// Autoscaling settings define the rules used by VMware Engine to +// automatically scale-out and scale-in the clusters in a private cloud. +message AutoscalingSettings { + // Thresholds define the utilization of resources triggering + // scale-out and scale-in operations. + message Thresholds { + // Required. The utilization triggering the scale-out operation in percent. + int32 scale_out = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The utilization triggering the scale-in operation in percent. + int32 scale_in = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Autoscaling policy describes the behavior of the autoscaling + // with respect to the resource utilization. + // The scale-out operation is initiated if the utilization + // exceeds ANY of the respective thresholds. + // The scale-in operation is initiated if the utilization + // is below ALL of the respective thresholds. + message AutoscalingPolicy { + // Required. The canonical identifier of the node type to add or remove. + // Corresponds to the `NodeType`. + string node_type_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Number of nodes to add to a cluster during a scale-out + // operation. Must be divisible by 2 for stretched clusters. During a + // scale-in operation only one node (or 2 for stretched clusters) are + // removed in a single iteration. + int32 scale_out_size = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Utilization thresholds pertaining to CPU utilization. + Thresholds cpu_thresholds = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Utilization thresholds pertaining to amount of granted memory. + Thresholds granted_memory_thresholds = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Utilization thresholds pertaining to amount of consumed memory. + Thresholds consumed_memory_thresholds = 13 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Utilization thresholds pertaining to amount of consumed + // storage. + Thresholds storage_thresholds = 14 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The map with autoscaling policies applied to the cluster. + // The key is the identifier of the policy. + // It must meet the following requirements: + // + // * Only contains 1-63 alphanumeric characters and hyphens + // * Begins with an alphabetical character + // * Ends with a non-hyphen character + // * Not formatted as a UUID + // * Complies with [RFC + // 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + // + // Currently there map must contain only one element + // that describes the autoscaling policy for compute nodes. + map autoscaling_policies = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Minimum number of nodes of any type in a cluster. + // If not specified the default limits apply. + int32 min_cluster_node_count = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum number of nodes of any type in a cluster. + // If not specified the default limits apply. + int32 max_cluster_node_count = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The minimum duration between consecutive autoscale operations. + // It starts once addition or removal of nodes is fully completed. + // Defaults to 30 minutes if not specified. Cool down period must be in whole + // minutes (for example, 30, 31, 50, 180 minutes). + google.protobuf.Duration cool_down_period = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + // DNS forwarding config. // This config defines a list of domain to name server mappings, // and is attached to the private cloud for custom domain resolution. @@ -986,6 +1082,9 @@ message NetworkPeering { // Peering connection used for connecting to Dell PowerScale Filers DELL_POWERSCALE = 6; + + // Peering connection used for connecting to Google Cloud NetApp Volumes. + GOOGLE_CLOUD_NETAPP_VOLUMES = 7; } // Output only. The resource name of the network peering. NetworkPeering is a diff --git a/java-vpcaccess/README.md b/java-vpcaccess/README.md index 91f01f4b202b..3c946456eb37 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/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-vpcaccess.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/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-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java b/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java index d25c71d047b0..fc4db02a39ba 100644 --- a/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java +++ b/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.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; @@ -301,6 +302,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "vpcaccess.googleapis.com:443"; } diff --git a/java-webrisk/README.md b/java-webrisk/README.md index b02596650051..006469d7cd2e 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/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-webrisk.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.45.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-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java index dbfd706755bd..3efabc476cea 100644 --- a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java +++ b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -170,6 +171,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "webrisk.googleapis.com:443"; } diff --git a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java index 696d3f6c6602..da06a1aacf06 100644 --- a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java +++ b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFunction; 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; @@ -144,6 +145,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "webrisk.googleapis.com:443"; } diff --git a/java-websecurityscanner/README.md b/java-websecurityscanner/README.md index f8a77cc2e21a..1e1070dcd7c4 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/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-websecurityscanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.46.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-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java index 2813318c7dd5..e4bf3c7955e5 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.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; @@ -464,6 +465,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "websecurityscanner.googleapis.com:443"; } diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java index c387c805cd77..ec7c297d92af 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.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; @@ -465,6 +466,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "websecurityscanner.googleapis.com:443"; } diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java index f30a7c571e5e..bed0154d9b6a 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.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; @@ -465,6 +466,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "websecurityscanner.googleapis.com:443"; } diff --git a/java-workflow-executions/README.md b/java-workflow-executions/README.md index 861f286ef1a6..175413437ff1 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/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-workflow-executions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.46.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-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java index d1c124702d44..6c8387d4d2db 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.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; @@ -211,6 +212,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "workflowexecutions.googleapis.com:443"; } diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java index f4dcd5594a71..69dcf9e218f9 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.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; @@ -212,6 +213,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "workflowexecutions.googleapis.com:443"; } diff --git a/java-workflows/README.md b/java-workflows/README.md index baeb3776a772..28f6150a9af9 100644 --- a/java-workflows/README.md +++ b/java-workflows/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-workflows.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.46.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-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java index 4a7efb64aabc..d8106e272f4c 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.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; @@ -320,6 +321,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "workflows.googleapis.com:443"; } diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java index de1beb8b6bc2..572eaf9fb525 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.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 "workflows.googleapis.com:443"; } diff --git a/java-workspaceevents/README.md b/java-workspaceevents/README.md index 0588b8099148..904408d8dfdb 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/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.cloud/google-cloud-workspaceevents.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.10.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-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStubSettings.java b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStubSettings.java index 302a9f37dda0..f7284d71edb4 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStubSettings.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStubSettings.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; @@ -296,6 +297,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "workspaceevents.googleapis.com:443"; } diff --git a/java-workstations/README.md b/java-workstations/README.md index 23ef81808302..983f4d79ec9e 100644 --- a/java-workstations/README.md +++ b/java-workstations/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-workstations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.34.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-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java index 939dd15b207c..1e4be7086830 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.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; @@ -808,6 +809,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "workstations.googleapis.com:443"; } diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java index 78774474bf6a..5030050f9730 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.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; @@ -809,6 +810,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "workstations.googleapis.com:443"; }